From 484dbe736ce886cd856383d08a7c1010f8951541 Mon Sep 17 00:00:00 2001 From: Mark Siazon <67873853+Iron-Mark@users.noreply.github.com> Date: Mon, 6 Apr 2026 08:16:09 +0800 Subject: [PATCH 1/3] build: update production build assets and index.html --- build/assets/index-DT5mDXdi.js | 257 ++++++++++++++++++++++++++++++++ build/assets/index-Dto82EVv.css | 1 + build/assets/index-DwkcK0Xe.css | 1 - build/assets/index-uPNZIqFO.js | 242 ------------------------------ build/index.html | 8 +- 5 files changed, 264 insertions(+), 245 deletions(-) create mode 100644 build/assets/index-DT5mDXdi.js create mode 100644 build/assets/index-Dto82EVv.css delete mode 100644 build/assets/index-DwkcK0Xe.css delete mode 100644 build/assets/index-uPNZIqFO.js diff --git a/build/assets/index-DT5mDXdi.js b/build/assets/index-DT5mDXdi.js new file mode 100644 index 0000000..edfeb1c --- /dev/null +++ b/build/assets/index-DT5mDXdi.js @@ -0,0 +1,257 @@ +function Wh(n,a){for(var l=0;lc[d]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))c(d);new MutationObserver(d=>{for(const f of d)if(f.type==="childList")for(const p of f.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&c(p)}).observe(document,{childList:!0,subtree:!0});function l(d){const f={};return d.integrity&&(f.integrity=d.integrity),d.referrerPolicy&&(f.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?f.credentials="include":d.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function c(d){if(d.ep)return;d.ep=!0;const f=l(d);fetch(d.href,f)}})();function Gh(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Is={exports:{}},fa={},As={exports:{}},Le={};/** + * @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 Wd;function Qh(){if(Wd)return Le;Wd=1;var n=Symbol.for("react.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),p=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),b=Symbol.iterator;function P(E){return E===null||typeof E!="object"?null:(E=b&&E[b]||E["@@iterator"],typeof E=="function"?E:null)}var L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},I=Object.assign,A={};function y(E,O,le){this.props=E,this.context=O,this.refs=A,this.updater=le||L}y.prototype.isReactComponent={},y.prototype.setState=function(E,O){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,O,"setState")},y.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function F(){}F.prototype=y.prototype;function H(E,O,le){this.props=E,this.context=O,this.refs=A,this.updater=le||L}var Y=H.prototype=new F;Y.constructor=H,I(Y,y.prototype),Y.isPureReactComponent=!0;var xe=Array.isArray,me=Object.prototype.hasOwnProperty,we={current:null},Ee={key:!0,ref:!0,__self:!0,__source:!0};function k(E,O,le){var de,se={},ae=null,_e=null;if(O!=null)for(de in O.ref!==void 0&&(_e=O.ref),O.key!==void 0&&(ae=""+O.key),O)me.call(O,de)&&!Ee.hasOwnProperty(de)&&(se[de]=O[de]);var Te=arguments.length-2;if(Te===1)se.children=le;else if(1>>1,O=W[E];if(0>>1;Ed(se,D))aed(_e,se)?(W[E]=_e,W[ae]=D,E=ae):(W[E]=se,W[de]=D,E=de);else if(aed(_e,D))W[E]=_e,W[ae]=D,E=ae;else break e}}return K}function d(W,K){var D=W.sortIndex-K.sortIndex;return D!==0?D:W.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var p=Date,h=p.now();n.unstable_now=function(){return p.now()-h}}var g=[],v=[],S=1,b=null,P=3,L=!1,I=!1,A=!1,y=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Y(W){for(var K=l(v);K!==null;){if(K.callback===null)c(v);else if(K.startTime<=W)c(v),K.sortIndex=K.expirationTime,a(g,K);else break;K=l(v)}}function xe(W){if(A=!1,Y(W),!I)if(l(g)!==null)I=!0,ke(me);else{var K=l(v);K!==null&&Se(xe,K.startTime-W)}}function me(W,K){I=!1,A&&(A=!1,F(k),k=-1),L=!0;var D=P;try{for(Y(K),b=l(g);b!==null&&(!(b.expirationTime>K)||W&&!Ve());){var E=b.callback;if(typeof E=="function"){b.callback=null,P=b.priorityLevel;var O=E(b.expirationTime<=K);K=n.unstable_now(),typeof O=="function"?b.callback=O:b===l(g)&&c(g),Y(K)}else c(g);b=l(g)}if(b!==null)var le=!0;else{var de=l(v);de!==null&&Se(xe,de.startTime-K),le=!1}return le}finally{b=null,P=D,L=!1}}var we=!1,Ee=null,k=-1,ye=5,Re=-1;function Ve(){return!(n.unstable_now()-ReW||125E?(W.sortIndex=D,a(v,W),l(g)===null&&W===l(v)&&(A?(F(k),k=-1):A=!0,Se(xe,D-E))):(W.sortIndex=O,a(g,W),I||L||(I=!0,ke(me))),W},n.unstable_shouldYield=Ve,n.unstable_wrapCallback=function(W){var K=P;return function(){var D=P;P=K;try{return W.apply(this,arguments)}finally{P=D}}}})($s)),$s}var qd;function Xh(){return qd||(qd=1,Fs.exports=qh()),Fs.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 Xd;function Jh(){if(Xd)return Lt;Xd=1;var n=ou(),a=Xh();function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g=Object.prototype.hasOwnProperty,v=/^[: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]*$/,S={},b={};function P(e){return g.call(b,e)?!0:g.call(S,e)?!1:v.test(e)?b[e]=!0:(S[e]=!0,!1)}function L(e,t,r,o){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function I(e,t,r,o){if(t===null||typeof t>"u"||L(e,t,r,o))return!0;if(o)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function A(e,t,r,o,i,u,m){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=m}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){y[e]=new A(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];y[t]=new A(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){y[e]=new A(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){y[e]=new A(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){y[e]=new A(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){y[e]=new A(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){y[e]=new A(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){y[e]=new A(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){y[e]=new A(e,5,!1,e.toLowerCase(),null,!1,!1)});var F=/[\-:]([a-z])/g;function H(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(F,H);y[t]=new A(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(F,H);y[t]=new A(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(F,H);y[t]=new A(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){y[e]=new A(e,1,!1,e.toLowerCase(),null,!1,!1)}),y.xlinkHref=new A("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){y[e]=new A(e,1,!1,e.toLowerCase(),null,!0,!0)});function Y(e,t,r,o){var i=y.hasOwnProperty(t)?y[t]:null;(i!==null?i.type!==0:o||!(2x||i[m]!==u[x]){var N=` +`+i[m].replace(" at new "," at ");return e.displayName&&N.includes("")&&(N=N.replace("",e.displayName)),N}while(1<=m&&0<=x);break}}}finally{le=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?O(e):""}function se(e){switch(e.tag){case 5:return O(e.type);case 16:return O("Lazy");case 13:return O("Suspense");case 19:return O("SuspenseList");case 0:case 2:case 15:return e=de(e.type,!1),e;case 11:return e=de(e.type.render,!1),e;case 1:return e=de(e.type,!0),e;default:return""}}function ae(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ee:return"Fragment";case we:return"Portal";case ye:return"Profiler";case k:return"StrictMode";case Ue:return"Suspense";case Pe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ve:return(e.displayName||"Context")+".Consumer";case Re:return(e._context.displayName||"Context")+".Provider";case je:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case he:return t=e.displayName||null,t!==null?t:ae(e.type)||"Memo";case ke:t=e._payload,e=e._init;try{return ae(e(t))}catch{}}return null}function _e(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ae(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Te(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function be(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function st(e){var t=be(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,u=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(m){o=""+m,u.call(this,m)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return o},setValue:function(m){o=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jt(e){e._valueTracker||(e._valueTracker=st(e))}function gr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=be(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function Ke(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function bt(e,t){var r=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Co(e,t){var r=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;r=Te(t.value!=null?t.value:r),e._wrapperState={initialChecked:o,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function _a(e,t){t=t.checked,t!=null&&Y(e,"checked",t,!1)}function Zt(e,t){_a(e,t);var r=Te(t.value),o=t.type;if(r!=null)o==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Eo(e,t.type,r):t.hasOwnProperty("defaultValue")&&Eo(e,t.type,Te(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ma(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Eo(e,t,r){(t!=="number"||Ke(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Dr=Array.isArray;function Ir(e,t,r,o){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Or.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function kt(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Fr={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},ri=["Webkit","ms","Moz","O"];Object.keys(Fr).forEach(function(e){ri.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Fr[t]=Fr[e]})});function Vn(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Fr.hasOwnProperty(e)&&Fr[e]?(""+t).trim():t+"px"}function Ta(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var o=r.indexOf("--")===0,i=Vn(r,t[r],o);r==="float"&&(r="cssFloat"),o?e.setProperty(r,i):e[r]=i}}var er=D({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 Wn(e,t){if(t){if(er[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(l(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(l(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(l(61))}if(t.style!=null&&typeof t.style!="object")throw Error(l(62))}}function Gn(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Qn=null;function Po(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Kn=null,tr=null,vr=null;function Yn(e){if(e=Xo(e)){if(typeof Kn!="function")throw Error(l(280));var t=e.stateNode;t&&(t=Ja(t),Kn(e.stateNode,e.type,t))}}function Da(e){tr?vr?vr.push(e):vr=[e]:tr=e}function _o(){if(tr){var e=tr,t=vr;if(vr=tr=null,Yn(e),t)for(e=0;e>>=0,e===0?32:31-(ut(e)/Hr|0)|0}var We=64,br=4194304;function Vr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Xn(e,t){var r=e.pendingLanes;if(r===0)return 0;var o=0,i=e.suspendedLanes,u=e.pingedLanes,m=r&268435455;if(m!==0){var x=m&~i;x!==0?o=Vr(x):(u&=m,u!==0&&(o=Vr(u)))}else m=r&~i,m!==0?o=Vr(m):u!==0&&(o=Vr(u));if(o===0)return 0;if(t!==0&&t!==o&&(t&i)===0&&(i=o&-o,u=t&-t,i>=u||i===16&&(u&4194240)!==0))return t;if((o&4)!==0&&(o|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0r;r++)t.push(e);return t}function To(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ce(t),e[t]=r}function fm(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0=Bo),Ou=" ",Fu=!1;function $u(e,t){switch(e){case"keyup":return $m.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Uu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var eo=!1;function Bm(e,t){switch(e){case"compositionend":return Uu(t);case"keypress":return t.which!==32?null:(Fu=!0,Ou);case"textInput":return e=t.data,e===Ou&&Fu?null:e;default:return null}}function Hm(e,t){if(eo)return e==="compositionend"||!gi&&$u(e,t)?(e=Lu(),Ua=ci=Yr=null,eo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Ku(r)}}function qu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xu(){for(var e=window,t=Ke();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Ke(e.document)}return t}function xi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Jm(e){var t=Xu(),r=e.focusedElem,o=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&qu(r.ownerDocument.documentElement,r)){if(o!==null&&xi(r)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,u=Math.min(o.start,i);o=o.end===void 0?u:Math.min(o.end,i),!e.extend&&u>o&&(i=o,o=u,u=i),i=Yu(r,u);var m=Yu(r,o);i&&m&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==m.node||e.focusOffset!==m.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),u>o?(e.addRange(t),e.extend(m.node,m.offset)):(t.setEnd(m.node,m.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,to=null,wi=null,Go=null,bi=!1;function Ju(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;bi||to==null||to!==Ke(o)||(o=to,"selectionStart"in o&&xi(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Go&&Wo(Go,o)||(Go=o,o=Ya(wi,"onSelect"),0lo||(e.current=zi[lo],zi[lo]=null,lo--)}function Qe(e,t){lo++,zi[lo]=e.current,e.current=t}var Zr={},gt=Jr(Zr),Et=Jr(!1),kn=Zr;function io(e,t){var r=e.type.contextTypes;if(!r)return Zr;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var i={},u;for(u in r)i[u]=t[u];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Rt(e){return e=e.childContextTypes,e!=null}function Za(){qe(Et),qe(gt)}function pc(e,t,r){if(gt.current!==Zr)throw Error(l(168));Qe(gt,t),Qe(Et,r)}function mc(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return r;o=o.getChildContext();for(var i in o)if(!(i in t))throw Error(l(108,_e(e)||"Unknown",i));return D({},r,o)}function el(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zr,kn=gt.current,Qe(gt,e),Qe(Et,Et.current),!0}function hc(e,t,r){var o=e.stateNode;if(!o)throw Error(l(169));r?(e=mc(e,t,kn),o.__reactInternalMemoizedMergedChildContext=e,qe(Et),qe(gt),Qe(gt,e)):qe(Et),Qe(Et,r)}var Nr=null,tl=!1,Ti=!1;function gc(e){Nr===null?Nr=[e]:Nr.push(e)}function ch(e){tl=!0,gc(e)}function en(){if(!Ti&&Nr!==null){Ti=!0;var e=0,t=He;try{var r=Nr;for(He=1;e>=m,i-=m,jr=1<<32-Ce(t)+i|r<Ne?(ft=ve,ve=null):ft=ve.sibling;var $e=$(_,ve,M[Ne],Q);if($e===null){ve===null&&(ve=ft);break}e&&ve&&$e.alternate===null&&t(_,ve),j=u($e,j,Ne),ge===null?oe=$e:ge.sibling=$e,ge=$e,ve=ft}if(Ne===M.length)return r(_,ve),Xe&&jn(_,Ne),oe;if(ve===null){for(;NeNe?(ft=ve,ve=null):ft=ve.sibling;var cn=$(_,ve,$e.value,Q);if(cn===null){ve===null&&(ve=ft);break}e&&ve&&cn.alternate===null&&t(_,ve),j=u(cn,j,Ne),ge===null?oe=cn:ge.sibling=cn,ge=cn,ve=ft}if($e.done)return r(_,ve),Xe&&jn(_,Ne),oe;if(ve===null){for(;!$e.done;Ne++,$e=M.next())$e=V(_,$e.value,Q),$e!==null&&(j=u($e,j,Ne),ge===null?oe=$e:ge.sibling=$e,ge=$e);return Xe&&jn(_,Ne),oe}for(ve=o(_,ve);!$e.done;Ne++,$e=M.next())$e=q(ve,_,Ne,$e.value,Q),$e!==null&&(e&&$e.alternate!==null&&ve.delete($e.key===null?Ne:$e.key),j=u($e,j,Ne),ge===null?oe=$e:ge.sibling=$e,ge=$e);return e&&ve.forEach(function(Vh){return t(_,Vh)}),Xe&&jn(_,Ne),oe}function rt(_,j,M,Q){if(typeof M=="object"&&M!==null&&M.type===Ee&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case me:e:{for(var oe=M.key,ge=j;ge!==null;){if(ge.key===oe){if(oe=M.type,oe===Ee){if(ge.tag===7){r(_,ge.sibling),j=i(ge,M.props.children),j.return=_,_=j;break e}}else if(ge.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===ke&&kc(oe)===ge.type){r(_,ge.sibling),j=i(ge,M.props),j.ref=Jo(_,ge,M),j.return=_,_=j;break e}r(_,ge);break}else t(_,ge);ge=ge.sibling}M.type===Ee?(j=Ln(M.props.children,_.mode,Q,M.key),j.return=_,_=j):(Q=Pl(M.type,M.key,M.props,null,_.mode,Q),Q.ref=Jo(_,j,M),Q.return=_,_=Q)}return m(_);case we:e:{for(ge=M.key;j!==null;){if(j.key===ge)if(j.tag===4&&j.stateNode.containerInfo===M.containerInfo&&j.stateNode.implementation===M.implementation){r(_,j.sibling),j=i(j,M.children||[]),j.return=_,_=j;break e}else{r(_,j);break}else t(_,j);j=j.sibling}j=Ms(M,_.mode,Q),j.return=_,_=j}return m(_);case ke:return ge=M._init,rt(_,j,ge(M._payload),Q)}if(Dr(M))return ee(_,j,M,Q);if(K(M))return ne(_,j,M,Q);al(_,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,j!==null&&j.tag===6?(r(_,j.sibling),j=i(j,M),j.return=_,_=j):(r(_,j),j=_s(M,_.mode,Q),j.return=_,_=j),m(_)):r(_,j)}return rt}var fo=Nc(!0),jc=Nc(!1),ll=Jr(null),il=null,po=null,$i=null;function Ui(){$i=po=il=null}function Bi(e){var t=ll.current;qe(ll),e._currentValue=t}function Hi(e,t,r){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===r)break;e=e.return}}function mo(e,t){il=e,$i=po=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Pt=!0),e.firstContext=null)}function Wt(e){var t=e._currentValue;if($i!==e)if(e={context:e,memoizedValue:t,next:null},po===null){if(il===null)throw Error(l(308));po=e,il.dependencies={lanes:0,firstContext:e}}else po=po.next=e;return t}var Sn=null;function Vi(e){Sn===null?Sn=[e]:Sn.push(e)}function Sc(e,t,r,o){var i=t.interleaved;return i===null?(r.next=r,Vi(t)):(r.next=i.next,i.next=r),t.interleaved=r,Cr(e,o)}function Cr(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var tn=!1;function Wi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Cc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Er(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function rn(e,t,r){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Oe&2)!==0){var i=o.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),o.pending=t,Cr(e,r)}return i=o.interleaved,i===null?(t.next=t,Vi(o)):(t.next=i.next,i.next=t),o.interleaved=t,Cr(e,r)}function sl(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,ai(e,r)}}function Ec(e,t){var r=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,r===o)){var i=null,u=null;if(r=r.firstBaseUpdate,r!==null){do{var m={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};u===null?i=u=m:u=u.next=m,r=r.next}while(r!==null);u===null?i=u=t:u=u.next=t}else i=u=t;r={baseState:o.baseState,firstBaseUpdate:i,lastBaseUpdate:u,shared:o.shared,effects:o.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function ul(e,t,r,o){var i=e.updateQueue;tn=!1;var u=i.firstBaseUpdate,m=i.lastBaseUpdate,x=i.shared.pending;if(x!==null){i.shared.pending=null;var N=x,T=N.next;N.next=null,m===null?u=T:m.next=T,m=N;var U=e.alternate;U!==null&&(U=U.updateQueue,x=U.lastBaseUpdate,x!==m&&(x===null?U.firstBaseUpdate=T:x.next=T,U.lastBaseUpdate=N))}if(u!==null){var V=i.baseState;m=0,U=T=N=null,x=u;do{var $=x.lane,q=x.eventTime;if((o&$)===$){U!==null&&(U=U.next={eventTime:q,lane:0,tag:x.tag,payload:x.payload,callback:x.callback,next:null});e:{var ee=e,ne=x;switch($=t,q=r,ne.tag){case 1:if(ee=ne.payload,typeof ee=="function"){V=ee.call(q,V,$);break e}V=ee;break e;case 3:ee.flags=ee.flags&-65537|128;case 0:if(ee=ne.payload,$=typeof ee=="function"?ee.call(q,V,$):ee,$==null)break e;V=D({},V,$);break e;case 2:tn=!0}}x.callback!==null&&x.lane!==0&&(e.flags|=64,$=i.effects,$===null?i.effects=[x]:$.push(x))}else q={eventTime:q,lane:$,tag:x.tag,payload:x.payload,callback:x.callback,next:null},U===null?(T=U=q,N=V):U=U.next=q,m|=$;if(x=x.next,x===null){if(x=i.shared.pending,x===null)break;$=x,x=$.next,$.next=null,i.lastBaseUpdate=$,i.shared.pending=null}}while(!0);if(U===null&&(N=V),i.baseState=N,i.firstBaseUpdate=T,i.lastBaseUpdate=U,t=i.shared.interleaved,t!==null){i=t;do m|=i.lane,i=i.next;while(i!==t)}else u===null&&(i.shared.lanes=0);Rn|=m,e.lanes=m,e.memoizedState=V}}function Rc(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var o=qi.transition;qi.transition={};try{e(!1),t()}finally{He=r,qi.transition=o}}function Qc(){return Gt().memoizedState}function mh(e,t,r){var o=ln(e);if(r={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null},Kc(e))Yc(t,r);else if(r=Sc(e,t,r,o),r!==null){var i=Ct();sr(r,e,o,i),qc(r,t,o)}}function hh(e,t,r){var o=ln(e),i={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null};if(Kc(e))Yc(t,i);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var m=t.lastRenderedState,x=u(m,r);if(i.hasEagerState=!0,i.eagerState=x,nr(x,m)){var N=t.interleaved;N===null?(i.next=i,Vi(t)):(i.next=N.next,N.next=i),t.interleaved=i;return}}catch{}finally{}r=Sc(e,t,i,o),r!==null&&(i=Ct(),sr(r,e,o,i),qc(r,t,o))}}function Kc(e){var t=e.alternate;return e===Ze||t!==null&&t===Ze}function Yc(e,t){ra=fl=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function qc(e,t,r){if((r&4194240)!==0){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,ai(e,r)}}var hl={readContext:Wt,useCallback:vt,useContext:vt,useEffect:vt,useImperativeHandle:vt,useInsertionEffect:vt,useLayoutEffect:vt,useMemo:vt,useReducer:vt,useRef:vt,useState:vt,useDebugValue:vt,useDeferredValue:vt,useTransition:vt,useMutableSource:vt,useSyncExternalStore:vt,useId:vt,unstable_isNewReconciler:!1},gh={readContext:Wt,useCallback:function(e,t){return pr().memoizedState=[e,t===void 0?null:t],e},useContext:Wt,useEffect:Fc,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,pl(4194308,4,Bc.bind(null,t,e),r)},useLayoutEffect:function(e,t){return pl(4194308,4,e,t)},useInsertionEffect:function(e,t){return pl(4,2,e,t)},useMemo:function(e,t){var r=pr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var o=pr();return t=r!==void 0?r(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=mh.bind(null,Ze,e),[o.memoizedState,e]},useRef:function(e){var t=pr();return e={current:e},t.memoizedState=e},useState:Ac,useDebugValue:ns,useDeferredValue:function(e){return pr().memoizedState=e},useTransition:function(){var e=Ac(!1),t=e[0];return e=ph.bind(null,e[1]),pr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=Ze,i=pr();if(Xe){if(r===void 0)throw Error(l(407));r=r()}else{if(r=t(),dt===null)throw Error(l(349));(En&30)!==0||Lc(o,t,r)}i.memoizedState=r;var u={value:r,getSnapshot:t};return i.queue=u,Fc(Tc.bind(null,o,u,e),[e]),o.flags|=2048,aa(9,zc.bind(null,o,u,r,t),void 0,null),r},useId:function(){var e=pr(),t=dt.identifierPrefix;if(Xe){var r=Sr,o=jr;r=(o&~(1<<32-Ce(o)-1)).toString(32)+r,t=":"+t+"R"+r,r=na++,0<\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=m.createElement(r,{is:o.is}):(e=m.createElement(r),r==="select"&&(m=e,o.multiple?m.multiple=!0:o.size&&(m.size=o.size))):e=m.createElementNS(e,r),e[dr]=t,e[qo]=o,gd(e,t,!1,!1),t.stateNode=e;e:{switch(m=Gn(r,o),r){case"dialog":Ye("cancel",e),Ye("close",e),i=o;break;case"iframe":case"object":case"embed":Ye("load",e),i=o;break;case"video":case"audio":for(i=0;ixo&&(t.flags|=128,o=!0,la(u,!1),t.lanes=4194304)}else{if(!o)if(e=cl(m),e!==null){if(t.flags|=128,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),la(u,!0),u.tail===null&&u.tailMode==="hidden"&&!m.alternate&&!Xe)return yt(t),null}else 2*Ae()-u.renderingStartTime>xo&&r!==1073741824&&(t.flags|=128,o=!0,la(u,!1),t.lanes=4194304);u.isBackwards?(m.sibling=t.child,t.child=m):(r=u.last,r!==null?r.sibling=m:t.child=m,u.last=m)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Ae(),t.sibling=null,r=Je.current,Qe(Je,o?r&1|2:r&1),t):(yt(t),null);case 22:case 23:return Es(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(Ot&1073741824)!==0&&(yt(t),t.subtreeFlags&6&&(t.flags|=8192)):yt(t),null;case 24:return null;case 25:return null}throw Error(l(156,t.tag))}function jh(e,t){switch(Ii(t),t.tag){case 1:return Rt(t.type)&&Za(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ho(),qe(Et),qe(gt),Yi(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Qi(t),null;case 13:if(qe(Je),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));co()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return qe(Je),null;case 4:return ho(),null;case 10:return Bi(t.type._context),null;case 22:case 23:return Es(),null;case 24:return null;default:return null}}var xl=!1,xt=!1,Sh=typeof WeakSet=="function"?WeakSet:Set,Z=null;function vo(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(o){et(e,t,o)}else r.current=null}function hs(e,t,r){try{r()}catch(o){et(e,t,o)}}var xd=!1;function Ch(e,t){if(Ei=Fa,e=Xu(),xi(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var i=o.anchorOffset,u=o.focusNode;o=o.focusOffset;try{r.nodeType,u.nodeType}catch{r=null;break e}var m=0,x=-1,N=-1,T=0,U=0,V=e,$=null;t:for(;;){for(var q;V!==r||i!==0&&V.nodeType!==3||(x=m+i),V!==u||o!==0&&V.nodeType!==3||(N=m+o),V.nodeType===3&&(m+=V.nodeValue.length),(q=V.firstChild)!==null;)$=V,V=q;for(;;){if(V===e)break t;if($===r&&++T===i&&(x=m),$===u&&++U===o&&(N=m),(q=V.nextSibling)!==null)break;V=$,$=V.parentNode}V=q}r=x===-1||N===-1?null:{start:x,end:N}}else r=null}r=r||{start:0,end:0}}else r=null;for(Ri={focusedElem:e,selectionRange:r},Fa=!1,Z=t;Z!==null;)if(t=Z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Z=e;else for(;Z!==null;){t=Z;try{var ee=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(ee!==null){var ne=ee.memoizedProps,rt=ee.memoizedState,_=t.stateNode,j=_.getSnapshotBeforeUpdate(t.elementType===t.type?ne:ar(t.type,ne),rt);_.__reactInternalSnapshotBeforeUpdate=j}break;case 3:var M=t.stateNode.containerInfo;M.nodeType===1?M.textContent="":M.nodeType===9&&M.documentElement&&M.removeChild(M.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(l(163))}}catch(Q){et(t,t.return,Q)}if(e=t.sibling,e!==null){e.return=t.return,Z=e;break}Z=t.return}return ee=xd,xd=!1,ee}function ia(e,t,r){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var i=o=o.next;do{if((i.tag&e)===e){var u=i.destroy;i.destroy=void 0,u!==void 0&&hs(t,r,u)}i=i.next}while(i!==o)}}function wl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var o=r.create;r.destroy=o()}r=r.next}while(r!==t)}}function gs(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function wd(e){var t=e.alternate;t!==null&&(e.alternate=null,wd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dr],delete t[qo],delete t[Li],delete t[sh],delete t[uh])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function bd(e){return e.tag===5||e.tag===3||e.tag===4}function kd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function vs(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Xa));else if(o!==4&&(e=e.child,e!==null))for(vs(e,t,r),e=e.sibling;e!==null;)vs(e,t,r),e=e.sibling}function ys(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(ys(e,t,r),e=e.sibling;e!==null;)ys(e,t,r),e=e.sibling}var mt=null,lr=!1;function nn(e,t,r){for(r=r.child;r!==null;)Nd(e,t,r),r=r.sibling}function Nd(e,t,r){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(Bt,r)}catch{}switch(r.tag){case 5:xt||vo(r,t);case 6:var o=mt,i=lr;mt=null,nn(e,t,r),mt=o,lr=i,mt!==null&&(lr?(e=mt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):mt.removeChild(r.stateNode));break;case 18:mt!==null&&(lr?(e=mt,r=r.stateNode,e.nodeType===8?Mi(e.parentNode,r):e.nodeType===1&&Mi(e,r),Fo(e)):Mi(mt,r.stateNode));break;case 4:o=mt,i=lr,mt=r.stateNode.containerInfo,lr=!0,nn(e,t,r),mt=o,lr=i;break;case 0:case 11:case 14:case 15:if(!xt&&(o=r.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){i=o=o.next;do{var u=i,m=u.destroy;u=u.tag,m!==void 0&&((u&2)!==0||(u&4)!==0)&&hs(r,t,m),i=i.next}while(i!==o)}nn(e,t,r);break;case 1:if(!xt&&(vo(r,t),o=r.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=r.memoizedProps,o.state=r.memoizedState,o.componentWillUnmount()}catch(x){et(r,t,x)}nn(e,t,r);break;case 21:nn(e,t,r);break;case 22:r.mode&1?(xt=(o=xt)||r.memoizedState!==null,nn(e,t,r),xt=o):nn(e,t,r);break;default:nn(e,t,r)}}function jd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Sh),t.forEach(function(o){var i=Dh.bind(null,e,o);r.has(o)||(r.add(o),o.then(i,i))})}}function ir(e,t){var r=t.deletions;if(r!==null)for(var o=0;oi&&(i=m),o&=~u}if(o=i,o=Ae()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Rh(o/1960))-o,10e?16:e,an===null)var o=!1;else{if(e=an,an=null,Sl=0,(Oe&6)!==0)throw Error(l(331));var i=Oe;for(Oe|=4,Z=e.current;Z!==null;){var u=Z,m=u.child;if((Z.flags&16)!==0){var x=u.deletions;if(x!==null){for(var N=0;NAe()-bs?_n(e,0):ws|=r),Mt(e,t)}function Ad(e,t){t===0&&((e.mode&1)===0?t=1:(t=br,br<<=1,(br&130023424)===0&&(br=4194304)));var r=Ct();e=Cr(e,t),e!==null&&(To(e,t,r),Mt(e,r))}function Th(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Ad(e,r)}function Dh(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(l(314))}o!==null&&o.delete(t),Ad(e,r)}var Od;Od=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Et.current)Pt=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Pt=!1,kh(e,t,r);Pt=(e.flags&131072)!==0}else Pt=!1,Xe&&(t.flags&1048576)!==0&&vc(t,nl,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;yl(e,t),e=t.pendingProps;var i=io(t,gt.current);mo(t,r),i=Ji(null,t,o,e,i,r);var u=Zi();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Rt(o)?(u=!0,el(t)):u=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Wi(t),i.updater=gl,t.stateNode=i,i._reactInternals=t,as(t,o,e,r),t=us(null,t,o,!0,u,r)):(t.tag=0,Xe&&u&&Di(t),St(null,t,i,r),t=t.child),t;case 16:o=t.elementType;e:{switch(yl(e,t),e=t.pendingProps,i=o._init,o=i(o._payload),t.type=o,i=t.tag=Ah(o),e=ar(o,e),i){case 0:t=ss(null,t,o,e,r);break e;case 1:t=cd(null,t,o,e,r);break e;case 11:t=ad(null,t,o,e,r);break e;case 14:t=ld(null,t,o,ar(o.type,e),r);break e}throw Error(l(306,o,""))}return t;case 0:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:ar(o,i),ss(e,t,o,i,r);case 1:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:ar(o,i),cd(e,t,o,i,r);case 3:e:{if(dd(t),e===null)throw Error(l(387));o=t.pendingProps,u=t.memoizedState,i=u.element,Cc(e,t),ul(t,o,null,r);var m=t.memoizedState;if(o=m.element,u.isDehydrated)if(u={element:o,isDehydrated:!1,cache:m.cache,pendingSuspenseBoundaries:m.pendingSuspenseBoundaries,transitions:m.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){i=go(Error(l(423)),t),t=fd(e,t,o,r,i);break e}else if(o!==i){i=go(Error(l(424)),t),t=fd(e,t,o,r,i);break e}else for(At=Xr(t.stateNode.containerInfo.firstChild),It=t,Xe=!0,or=null,r=jc(t,null,o,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(co(),o===i){t=Rr(e,t,r);break e}St(e,t,o,r)}t=t.child}return t;case 5:return Pc(t),e===null&&Oi(t),o=t.type,i=t.pendingProps,u=e!==null?e.memoizedProps:null,m=i.children,Pi(o,i)?m=null:u!==null&&Pi(o,u)&&(t.flags|=32),ud(e,t),St(e,t,m,r),t.child;case 6:return e===null&&Oi(t),null;case 13:return pd(e,t,r);case 4:return Gi(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=fo(t,null,o,r):St(e,t,o,r),t.child;case 11:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:ar(o,i),ad(e,t,o,i,r);case 7:return St(e,t,t.pendingProps,r),t.child;case 8:return St(e,t,t.pendingProps.children,r),t.child;case 12:return St(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,i=t.pendingProps,u=t.memoizedProps,m=i.value,Qe(ll,o._currentValue),o._currentValue=m,u!==null)if(nr(u.value,m)){if(u.children===i.children&&!Et.current){t=Rr(e,t,r);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var x=u.dependencies;if(x!==null){m=u.child;for(var N=x.firstContext;N!==null;){if(N.context===o){if(u.tag===1){N=Er(-1,r&-r),N.tag=2;var T=u.updateQueue;if(T!==null){T=T.shared;var U=T.pending;U===null?N.next=N:(N.next=U.next,U.next=N),T.pending=N}}u.lanes|=r,N=u.alternate,N!==null&&(N.lanes|=r),Hi(u.return,r,t),x.lanes|=r;break}N=N.next}}else if(u.tag===10)m=u.type===t.type?null:u.child;else if(u.tag===18){if(m=u.return,m===null)throw Error(l(341));m.lanes|=r,x=m.alternate,x!==null&&(x.lanes|=r),Hi(m,r,t),m=u.sibling}else m=u.child;if(m!==null)m.return=u;else for(m=u;m!==null;){if(m===t){m=null;break}if(u=m.sibling,u!==null){u.return=m.return,m=u;break}m=m.return}u=m}St(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps.children,mo(t,r),i=Wt(i),o=o(i),t.flags|=1,St(e,t,o,r),t.child;case 14:return o=t.type,i=ar(o,t.pendingProps),i=ar(o.type,i),ld(e,t,o,i,r);case 15:return id(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:ar(o,i),yl(e,t),t.tag=1,Rt(o)?(e=!0,el(t)):e=!1,mo(t,r),Jc(t,o,i),as(t,o,i,r),us(null,t,o,!0,e,r);case 19:return hd(e,t,r);case 22:return sd(e,t,r)}throw Error(l(156,t.tag))};function Fd(e,t){return Ge(e,t)}function Ih(e,t,r,o){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Kt(e,t,r,o){return new Ih(e,t,r,o)}function Ps(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ah(e){if(typeof e=="function")return Ps(e)?1:0;if(e!=null){if(e=e.$$typeof,e===je)return 11;if(e===he)return 14}return 2}function un(e,t){var r=e.alternate;return r===null?(r=Kt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Pl(e,t,r,o,i,u){var m=2;if(o=e,typeof e=="function")Ps(e)&&(m=1);else if(typeof e=="string")m=5;else e:switch(e){case Ee:return Ln(r.children,i,u,t);case k:m=8,i|=8;break;case ye:return e=Kt(12,r,t,i|2),e.elementType=ye,e.lanes=u,e;case Ue:return e=Kt(13,r,t,i),e.elementType=Ue,e.lanes=u,e;case Pe:return e=Kt(19,r,t,i),e.elementType=Pe,e.lanes=u,e;case Se:return _l(r,i,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Re:m=10;break e;case Ve:m=9;break e;case je:m=11;break e;case he:m=14;break e;case ke:m=16,o=null;break e}throw Error(l(130,e==null?e:typeof e,""))}return t=Kt(m,r,t,i),t.elementType=e,t.type=o,t.lanes=u,t}function Ln(e,t,r,o){return e=Kt(7,e,o,t),e.lanes=r,e}function _l(e,t,r,o){return e=Kt(22,e,o,t),e.elementType=Se,e.lanes=r,e.stateNode={isHidden:!1},e}function _s(e,t,r){return e=Kt(6,e,null,t),e.lanes=r,e}function Ms(e,t,r){return t=Kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Oh(e,t,r,o,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=oi(0),this.expirationTimes=oi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oi(0),this.identifierPrefix=o,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ls(e,t,r,o,i,u,m,x,N){return e=new Oh(e,t,r,x,N),t===1?(t=1,u===!0&&(t|=8)):t=0,u=Kt(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:o,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Wi(u),e}function Fh(e,t,r){var o=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Os.exports=Jh(),Os.exports}var Zd;function Zh(){if(Zd)return Al;Zd=1;var n=Qf();return Al.createRoot=n.createRoot,Al.hydrateRoot=n.hydrateRoot,Al}var e0=Zh(),C=ou();const t0=Gh(C),Kf=Wh({__proto__:null,default:t0},[C]);/** + * react-router v7.13.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */var Yf=n=>{throw TypeError(n)},r0=(n,a,l)=>a.has(n)||Yf("Cannot "+l),Us=(n,a,l)=>(r0(n,a,"read from private field"),l?l.call(n):a.get(n)),n0=(n,a,l)=>a.has(n)?Yf("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(n):a.set(n,l),ef="popstate";function tf(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function o0(n={}){function a(c,d){let f=d.state?.masked,{pathname:p,search:h,hash:g}=f||c.location;return wa("",{pathname:p,search:h,hash:g},d.state&&d.state.usr||null,d.state&&d.state.key||"default",f?{pathname:c.location.pathname,search:c.location.search,hash:c.location.hash}:void 0)}function l(c,d){return typeof d=="string"?d:hr(d)}return l0(a,l,null,n)}function ze(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function ot(n,a){if(!n){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function a0(){return Math.random().toString(36).substring(2,10)}function rf(n,a){return{usr:n.state,key:n.key,idx:a,masked:n.unstable_mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function wa(n,a,l=null,c,d){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof a=="string"?zr(a):a,state:l,key:a&&a.key||c||a0(),unstable_mask:d}}function hr({pathname:n="/",search:a="",hash:l=""}){return a&&a!=="?"&&(n+=a.charAt(0)==="?"?a:"?"+a),l&&l!=="#"&&(n+=l.charAt(0)==="#"?l:"#"+l),n}function zr(n){let a={};if(n){let l=n.indexOf("#");l>=0&&(a.hash=n.substring(l),n=n.substring(0,l));let c=n.indexOf("?");c>=0&&(a.search=n.substring(c),n=n.substring(0,c)),n&&(a.pathname=n)}return a}function l0(n,a,l,c={}){let{window:d=document.defaultView,v5Compat:f=!1}=c,p=d.history,h="POP",g=null,v=S();v==null&&(v=0,p.replaceState({...p.state,idx:v},""));function S(){return(p.state||{idx:null}).idx}function b(){h="POP";let y=S(),F=y==null?null:y-v;v=y,g&&g({action:h,location:A.location,delta:F})}function P(y,F){h="PUSH";let H=tf(y)?y:wa(A.location,y,F);v=S()+1;let Y=rf(H,v),xe=A.createHref(H.unstable_mask||H);try{p.pushState(Y,"",xe)}catch(me){if(me instanceof DOMException&&me.name==="DataCloneError")throw me;d.location.assign(xe)}f&&g&&g({action:h,location:A.location,delta:1})}function L(y,F){h="REPLACE";let H=tf(y)?y:wa(A.location,y,F);v=S();let Y=rf(H,v),xe=A.createHref(H.unstable_mask||H);p.replaceState(Y,"",xe),f&&g&&g({action:h,location:A.location,delta:0})}function I(y){return qf(y)}let A={get action(){return h},get location(){return n(d,p)},listen(y){if(g)throw new Error("A history only accepts one active listener");return d.addEventListener(ef,b),g=y,()=>{d.removeEventListener(ef,b),g=null}},createHref(y){return a(d,y)},createURL:I,encodeLocation(y){let F=I(y);return{pathname:F.pathname,search:F.search,hash:F.hash}},push:P,replace:L,go(y){return p.go(y)}};return A}function qf(n,a=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),ze(l,"No window.location.(origin|href) available to create URL");let c=typeof n=="string"?n:hr(n);return c=c.replace(/ $/,"%20"),!a&&c.startsWith("//")&&(c=l+c),new URL(c,l)}var va,nf=class{constructor(n){if(n0(this,va,new Map),n)for(let[a,l]of n)this.set(a,l)}get(n){if(Us(this,va).has(n))return Us(this,va).get(n);if(n.defaultValue!==void 0)return n.defaultValue;throw new Error("No value found for context")}set(n,a){Us(this,va).set(n,a)}};va=new WeakMap;var i0=new Set(["lazy","caseSensitive","path","id","index","children"]);function s0(n){return i0.has(n)}var u0=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function c0(n){return u0.has(n)}function d0(n){return n.index===!0}function ba(n,a,l=[],c={},d=!1){return n.map((f,p)=>{let h=[...l,String(p)],g=typeof f.id=="string"?f.id:h.join("-");if(ze(f.index!==!0||!f.children,"Cannot specify children on an index route"),ze(d||!c[g],`Found a route id collision on id "${g}". Route id's must be globally unique within Data Router usages`),d0(f)){let v={...f,id:g};return c[g]=of(v,a(v)),v}else{let v={...f,id:g,children:void 0};return c[g]=of(v,a(v)),f.children&&(v.children=ba(f.children,a,h,c,d)),v}})}function of(n,a){return Object.assign(n,{...a,...typeof a.lazy=="object"&&a.lazy!=null?{lazy:{...n.lazy,...a.lazy}}:{}})}function pn(n,a,l="/"){return ya(n,a,l,!1)}function ya(n,a,l,c){let d=typeof a=="string"?zr(a):a,f=qt(d.pathname||"/",l);if(f==null)return null;let p=Xf(n);p0(p);let h=null;for(let g=0;h==null&&g{let S={relativePath:v===void 0?p.path||"":v,caseSensitive:p.caseSensitive===!0,childrenIndex:h,route:p};if(S.relativePath.startsWith("/")){if(!S.relativePath.startsWith(c)&&g)return;ze(S.relativePath.startsWith(c),`Absolute route path "${S.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),S.relativePath=S.relativePath.slice(c.length)}let b=ur([c,S.relativePath]),P=l.concat(S);p.children&&p.children.length>0&&(ze(p.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),Xf(p.children,a,P,b,g)),!(p.path==null&&!p.index)&&a.push({path:b,score:w0(b,p.index),routesMeta:P})};return n.forEach((p,h)=>{if(p.path===""||!p.path?.includes("?"))f(p,h);else for(let g of Jf(p.path))f(p,h,!0,g)}),a}function Jf(n){let a=n.split("/");if(a.length===0)return[];let[l,...c]=a,d=l.endsWith("?"),f=l.replace(/\?$/,"");if(c.length===0)return d?[f,""]:[f];let p=Jf(c.join("/")),h=[];return h.push(...p.map(g=>g===""?f:[f,g].join("/"))),d&&h.push(...p),h.map(g=>n.startsWith("/")&&g===""?"/":g)}function p0(n){n.sort((a,l)=>a.score!==l.score?l.score-a.score:b0(a.routesMeta.map(c=>c.childrenIndex),l.routesMeta.map(c=>c.childrenIndex)))}var m0=/^:[\w-]+$/,h0=3,g0=2,v0=1,y0=10,x0=-2,af=n=>n==="*";function w0(n,a){let l=n.split("/"),c=l.length;return l.some(af)&&(c+=x0),a&&(c+=g0),l.filter(d=>!af(d)).reduce((d,f)=>d+(m0.test(f)?h0:f===""?v0:y0),c)}function b0(n,a){return n.length===a.length&&n.slice(0,-1).every((c,d)=>c===a[d])?n[n.length-1]-a[a.length-1]:0}function k0(n,a,l=!1){let{routesMeta:c}=n,d={},f="/",p=[];for(let h=0;h{if(S==="*"){let I=h[P]||"";p=f.slice(0,f.length-I.length).replace(/(.)\/+$/,"$1")}const L=h[P];return b&&!L?v[S]=void 0:v[S]=(L||"").replace(/%2F/g,"/"),v},{}),pathname:f,pathnameBase:p,pattern:n}}function N0(n,a=!1,l=!0){ot(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let c=[],d="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,h,g,v,S)=>{if(c.push({paramName:h,isOptional:g!=null}),g){let b=S.charAt(v+p.length);return b&&b!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(c.push({paramName:"*"}),d+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?d+="\\/*$":n!==""&&n!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,a?void 0:"i"),c]}function j0(n){try{return n.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return ot(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),n}}function qt(n,a){if(a==="/")return n;if(!n.toLowerCase().startsWith(a.toLowerCase()))return null;let l=a.endsWith("/")?a.length-1:a.length,c=n.charAt(l);return c&&c!=="/"?null:n.slice(l)||"/"}function S0({basename:n,pathname:a}){return a==="/"?n:ur([n,a])}var Zf=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,au=n=>Zf.test(n);function C0(n,a="/"){let{pathname:l,search:c="",hash:d=""}=typeof n=="string"?zr(n):n,f;return l?(l=l.replace(/\/\/+/g,"/"),l.startsWith("/")?f=lf(l.substring(1),"/"):f=lf(l,a)):f=a,{pathname:f,search:R0(c),hash:P0(d)}}function lf(n,a){let l=a.replace(/\/+$/,"").split("/");return n.split("/").forEach(d=>{d===".."?l.length>1&&l.pop():d!=="."&&l.push(d)}),l.length>1?l.join("/"):"/"}function Bs(n,a,l,c){return`Cannot include a '${n}' character in a manually specified \`to.${a}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${l}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function ep(n){return n.filter((a,l)=>l===0||a.route.path&&a.route.path.length>0)}function lu(n){let a=ep(n);return a.map((l,c)=>c===a.length-1?l.pathname:l.pathnameBase)}function Jl(n,a,l,c=!1){let d;typeof n=="string"?d=zr(n):(d={...n},ze(!d.pathname||!d.pathname.includes("?"),Bs("?","pathname","search",d)),ze(!d.pathname||!d.pathname.includes("#"),Bs("#","pathname","hash",d)),ze(!d.search||!d.search.includes("#"),Bs("#","search","hash",d)));let f=n===""||d.pathname==="",p=f?"/":d.pathname,h;if(p==null)h=l;else{let b=a.length-1;if(!c&&p.startsWith("..")){let P=p.split("/");for(;P[0]==="..";)P.shift(),b-=1;d.pathname=P.join("/")}h=b>=0?a[b]:"/"}let g=C0(d,h),v=p&&p!=="/"&&p.endsWith("/"),S=(f||p===".")&&l.endsWith("/");return!g.pathname.endsWith("/")&&(v||S)&&(g.pathname+="/"),g}var ur=n=>n.join("/").replace(/\/\/+/g,"/"),E0=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),R0=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,P0=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,Sa=class{constructor(n,a,l,c=!1){this.status=n,this.statusText=a||"",this.internal=c,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function ka(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function Ca(n){return n.map(a=>a.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var tp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function rp(n,a){let l=n;if(typeof l!="string"||!Zf.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let c=l,d=!1;if(tp)try{let f=new URL(window.location.href),p=l.startsWith("//")?new URL(f.protocol+l):new URL(l),h=qt(p.pathname,a);p.origin===f.origin&&h!=null?l=h+p.search+p.hash:d=!0}catch{ot(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:d,to:l}}var gn=Symbol("Uninstrumented");function _0(n,a){let l={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};n.forEach(d=>d({id:a.id,index:a.index,path:a.path,instrument(f){let p=Object.keys(l);for(let h of p)f[h]&&l[h].push(f[h])}}));let c={};if(typeof a.lazy=="function"&&l.lazy.length>0){let d=No(l.lazy,a.lazy,()=>{});d&&(c.lazy=d)}if(typeof a.lazy=="object"){let d=a.lazy;["middleware","loader","action"].forEach(f=>{let p=d[f],h=l[`lazy.${f}`];if(typeof p=="function"&&h.length>0){let g=No(h,p,()=>{});g&&(c.lazy=Object.assign(c.lazy||{},{[f]:g}))}})}return["loader","action"].forEach(d=>{let f=a[d];if(typeof f=="function"&&l[d].length>0){let p=f[gn]??f,h=No(l[d],p,(...g)=>sf(g[0]));h&&(d==="loader"&&p.hydrate===!0&&(h.hydrate=!0),h[gn]=p,c[d]=h)}}),a.middleware&&a.middleware.length>0&&l.middleware.length>0&&(c.middleware=a.middleware.map(d=>{let f=d[gn]??d,p=No(l.middleware,f,(...h)=>sf(h[0]));return p?(p[gn]=f,p):d})),c}function M0(n,a){let l={navigate:[],fetch:[]};if(a.forEach(c=>c({instrument(d){let f=Object.keys(d);for(let p of f)d[p]&&l[p].push(d[p])}})),l.navigate.length>0){let c=n.navigate[gn]??n.navigate,d=No(l.navigate,c,(...f)=>{let[p,h]=f;return{to:typeof p=="number"||typeof p=="string"?p:p?hr(p):".",...uf(n,h??{})}});d&&(d[gn]=c,n.navigate=d)}if(l.fetch.length>0){let c=n.fetch[gn]??n.fetch,d=No(l.fetch,c,(...f)=>{let[p,,h,g]=f;return{href:h??".",fetcherKey:p,...uf(n,g??{})}});d&&(d[gn]=c,n.fetch=d)}return n}function No(n,a,l){return n.length===0?null:async(...c)=>{let d=await np(n,l(...c),()=>a(...c),n.length-1);if(d.type==="error")throw d.value;return d.value}}async function np(n,a,l,c){let d=n[c],f;if(d){let p,h=async()=>(p?console.error("You cannot call instrumented handlers more than once"):p=np(n,a,l,c-1),f=await p,ze(f,"Expected a result"),f.type==="error"&&f.value instanceof Error?{status:"error",error:f.value}:{status:"success",error:void 0});try{await d(h,a)}catch(g){console.error("An instrumentation function threw an error:",g)}p||await h(),await p}else try{f={type:"success",value:await l()}}catch(p){f={type:"error",value:p}}return f||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function sf(n){let{request:a,context:l,params:c,unstable_pattern:d}=n;return{request:L0(a),params:{...c},unstable_pattern:d,context:z0(l)}}function uf(n,a){return{currentUrl:hr(n.state.location),..."formMethod"in a?{formMethod:a.formMethod}:{},..."formEncType"in a?{formEncType:a.formEncType}:{},..."formData"in a?{formData:a.formData}:{},..."body"in a?{body:a.body}:{}}}function L0(n){return{method:n.method,url:n.url,headers:{get:(...a)=>n.headers.get(...a)}}}function z0(n){if(D0(n)){let a={...n};return Object.freeze(a),a}else return{get:a=>n.get(a)}}var T0=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function D0(n){if(n===null||typeof n!="object")return!1;const a=Object.getPrototypeOf(n);return a===Object.prototype||a===null||Object.getOwnPropertyNames(a).sort().join("\0")===T0}var op=["POST","PUT","PATCH","DELETE"],I0=new Set(op),A0=["GET",...op],O0=new Set(A0),ap=new Set([301,302,303,307,308]),F0=new Set([307,308]),Hs={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},$0={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},pa={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},U0=n=>({hasErrorBoundary:!!n.hasErrorBoundary}),lp="remix-router-transitions",ip=Symbol("ResetLoaderData");function B0(n){const a=n.window?n.window:typeof window<"u"?window:void 0,l=typeof a<"u"&&typeof a.document<"u"&&typeof a.document.createElement<"u";ze(n.routes.length>0,"You must provide a non-empty routes array to createRouter");let c=n.hydrationRouteProperties||[],d=n.mapRouteProperties||U0,f=d;if(n.unstable_instrumentations){let w=n.unstable_instrumentations;f=R=>({...d(R),..._0(w.map(z=>z.route).filter(Boolean),R)})}let p={},h=ba(n.routes,f,void 0,p),g,v=n.basename||"/";v.startsWith("/")||(v=`/${v}`);let S=n.dataStrategy||Q0,b={...n.future},P=null,L=new Set,I=null,A=null,y=null,F=n.hydrationData!=null,H=pn(h,n.history.location,v),Y=!1,xe=null,me,we;if(H==null&&!n.patchRoutesOnNavigation){let w=Yt(404,{pathname:n.history.location.pathname}),{matches:R,route:z}=Ol(h);me=!0,we=!me,H=R,xe={[z.id]:w}}else if(H&&!n.hydrationData&&$r(H,h,n.history.location.pathname).active&&(H=null),H)if(H.some(w=>w.route.lazy))me=!1,we=!me;else if(!H.some(w=>iu(w.route)))me=!0,we=!me;else{let w=n.hydrationData?n.hydrationData.loaderData:null,R=n.hydrationData?n.hydrationData.errors:null,z=H;if(R){let B=H.findIndex(G=>R[G.route.id]!==void 0);z=z.slice(0,B+1)}we=!1,me=z.every(B=>{let G=sp(B.route,w,R);return we=we||G.renderFallback,!G.shouldLoad})}else{me=!1,we=!me,H=[];let w=$r(null,h,n.history.location.pathname);w.active&&w.matches&&(Y=!0,H=w.matches)}let Ee,k={historyAction:n.history.action,location:n.history.location,matches:H,initialized:me,renderFallback:we,navigation:Hs,restoreScrollPosition:n.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:n.hydrationData&&n.hydrationData.loaderData||{},actionData:n.hydrationData&&n.hydrationData.actionData||null,errors:n.hydrationData&&n.hydrationData.errors||xe,fetchers:new Map,blockers:new Map},ye="POP",Re=null,Ve=!1,je,Ue=!1,Pe=new Map,he=null,ke=!1,Se=!1,W=new Set,K=new Map,D=0,E=-1,O=new Map,le=new Set,de=new Map,se=new Map,ae=new Set,_e=new Map,Te,be=null;function st(){if(P=n.history.listen(({action:w,location:R,delta:z})=>{if(Te){Te(),Te=void 0;return}ot(_e.size===0||z!=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 B=vr({currentLocation:k.location,nextLocation:R,historyAction:w});if(B&&z!=null){let G=new Promise(ie=>{Te=ie});n.history.go(z*-1),tr(B,{state:"blocked",location:R,proceed(){tr(B,{state:"proceeding",proceed:void 0,reset:void 0,location:R}),G.then(()=>n.history.go(z))},reset(){let ie=new Map(k.blockers);ie.set(B,pa),Ke({blockers:ie})}}),Re?.resolve(),Re=null;return}return Zt(w,R)}),l){dg(a,Pe);let w=()=>fg(a,Pe);a.addEventListener("pagehide",w),he=()=>a.removeEventListener("pagehide",w)}return k.initialized||Zt("POP",k.location,{initialHydration:!0}),Ee}function Jt(){P&&P(),he&&he(),L.clear(),je&&je.abort(),k.fetchers.forEach((w,R)=>Vn(R)),k.blockers.forEach((w,R)=>Kn(R))}function gr(w){return L.add(w),()=>L.delete(w)}function Ke(w,R={}){w.matches&&(w.matches=w.matches.map(G=>{let ie=p[G.route.id],J=G.route;return J.element!==ie.element||J.errorElement!==ie.errorElement||J.hydrateFallbackElement!==ie.hydrateFallbackElement?{...G,route:ie}:G})),k={...k,...w};let z=[],B=[];k.fetchers.forEach((G,ie)=>{G.state==="idle"&&(ae.has(ie)?z.push(ie):B.push(ie))}),ae.forEach(G=>{!k.fetchers.has(G)&&!K.has(G)&&z.push(G)}),[...L].forEach(G=>G(k,{deletedFetchers:z,newErrors:w.errors??null,viewTransitionOpts:R.viewTransitionOpts,flushSync:R.flushSync===!0})),z.forEach(G=>Vn(G)),B.forEach(G=>k.fetchers.delete(G))}function bt(w,R,{flushSync:z}={}){let B=k.actionData!=null&&k.navigation.formMethod!=null&&wt(k.navigation.formMethod)&&k.navigation.state==="loading"&&w.state?._isRedirect!==!0,G;R.actionData?Object.keys(R.actionData).length>0?G=R.actionData:G=null:B?G=k.actionData:G=null;let ie=R.loaderData?xf(k.loaderData,R.loaderData,R.matches||[],R.errors):k.loaderData,J=k.blockers;J.size>0&&(J=new Map(J),J.forEach((pe,ue)=>J.set(ue,pa)));let ce=ke?!1:Mo(w,R.matches||k.matches),X=Ve===!0||k.navigation.formMethod!=null&&wt(k.navigation.formMethod)&&w.state?._isRedirect!==!0;g&&(h=g,g=void 0),ke||ye==="POP"||(ye==="PUSH"?n.history.push(w,w.state):ye==="REPLACE"&&n.history.replace(w,w.state));let fe;if(ye==="POP"){let pe=Pe.get(k.location.pathname);pe&&pe.has(w.pathname)?fe={currentLocation:k.location,nextLocation:w}:Pe.has(w.pathname)&&(fe={currentLocation:w,nextLocation:k.location})}else if(Ue){let pe=Pe.get(k.location.pathname);pe?pe.add(w.pathname):(pe=new Set([w.pathname]),Pe.set(k.location.pathname,pe)),fe={currentLocation:k.location,nextLocation:w}}Ke({...R,actionData:G,loaderData:ie,historyAction:ye,location:w,initialized:!0,renderFallback:!1,navigation:Hs,revalidation:"idle",restoreScrollPosition:ce,preventScrollReset:X,blockers:J},{viewTransitionOpts:fe,flushSync:z===!0}),ye="POP",Ve=!1,Ue=!1,ke=!1,Se=!1,Re?.resolve(),Re=null,be?.resolve(),be=null}async function Co(w,R){if(Re?.resolve(),Re=null,typeof w=="number"){Re||(Re=Nf());let Ge=Re.promise;return n.history.go(w),Ge}let z=Xs(k.location,k.matches,v,w,R?.fromRouteId,R?.relative),{path:B,submission:G,error:ie}=cf(!1,z,R),J;R?.unstable_mask&&(J={pathname:"",search:"",hash:"",...typeof R.unstable_mask=="string"?zr(R.unstable_mask):{...k.location.unstable_mask,...R.unstable_mask}});let ce=k.location,X=wa(ce,B,R&&R.state,void 0,J);X={...X,...n.history.encodeLocation(X)};let fe=R&&R.replace!=null?R.replace:void 0,pe="PUSH";fe===!0?pe="REPLACE":fe===!1||G!=null&&wt(G.formMethod)&&G.formAction===k.location.pathname+k.location.search&&(pe="REPLACE");let ue=R&&"preventScrollReset"in R?R.preventScrollReset===!0:void 0,Fe=(R&&R.flushSync)===!0,De=vr({currentLocation:ce,nextLocation:X,historyAction:pe});if(De){tr(De,{state:"blocked",location:X,proceed(){tr(De,{state:"proceeding",proceed:void 0,reset:void 0,location:X}),Co(w,R)},reset(){let Ge=new Map(k.blockers);Ge.set(De,pa),Ke({blockers:Ge})}});return}await Zt(pe,X,{submission:G,pendingError:ie,preventScrollReset:ue,replace:R&&R.replace,enableViewTransition:R&&R.viewTransition,flushSync:Fe,callSiteDefaultShouldRevalidate:R&&R.unstable_defaultShouldRevalidate})}function _a(){be||(be=Nf()),Or(),Ke({revalidation:"loading"});let w=be.promise;return k.navigation.state==="submitting"?w:k.navigation.state==="idle"?(Zt(k.historyAction,k.location,{startUninterruptedRevalidation:!0}),w):(Zt(ye||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation,enableViewTransition:Ue===!0}),w)}async function Zt(w,R,z){je&&je.abort(),je=null,ye=w,ke=(z&&z.startUninterruptedRevalidation)===!0,Ia(k.location,k.matches),Ve=(z&&z.preventScrollReset)===!0,Ue=(z&&z.enableViewTransition)===!0;let B=g||h,G=z&&z.overrideNavigation,ie=z?.initialHydration&&k.matches&&k.matches.length>0&&!Y?k.matches:pn(B,R,v),J=(z&&z.flushSync)===!0;if(ie&&k.initialized&&!Se&&tg(k.location,R)&&!(z&&z.submission&&wt(z.submission.formMethod))){bt(R,{matches:ie},{flushSync:J});return}let ce=$r(ie,B,R.pathname);if(ce.active&&ce.matches&&(ie=ce.matches),!ie){let{error:tt,notFoundMatches:pt,route:Be}=Yn(R.pathname);bt(R,{matches:pt,loaderData:{},errors:{[Be.id]:tt}},{flushSync:J});return}je=new AbortController;let X=ko(n.history,R,je.signal,z&&z.submission),fe=n.getContext?await n.getContext():new nf,pe;if(z&&z.pendingError)pe=[mn(ie).route.id,{type:"error",error:z.pendingError}];else if(z&&z.submission&&wt(z.submission.formMethod)){let tt=await Ma(X,R,z.submission,ie,fe,ce.active,z&&z.initialHydration===!0,{replace:z.replace,flushSync:J});if(tt.shortCircuited)return;if(tt.pendingActionResult){let[pt,Be]=tt.pendingActionResult;if(Ft(Be)&&ka(Be.error)&&Be.error.status===404){je=null,bt(R,{matches:tt.matches,loaderData:{},errors:{[pt]:Be.error}});return}}ie=tt.matches||ie,pe=tt.pendingActionResult,G=Vs(R,z.submission),J=!1,ce.active=!1,X=ko(n.history,X.url,X.signal)}let{shortCircuited:ue,matches:Fe,loaderData:De,errors:Ge}=await Eo(X,R,ie,fe,ce.active,G,z&&z.submission,z&&z.fetcherSubmission,z&&z.replace,z&&z.initialHydration===!0,J,pe,z&&z.callSiteDefaultShouldRevalidate);ue||(je=null,bt(R,{matches:Fe||ie,...wf(pe),loaderData:De,errors:Ge}))}async function Ma(w,R,z,B,G,ie,J,ce={}){Or();let X=ug(R,z);if(Ke({navigation:X},{flushSync:ce.flushSync===!0}),ie){let ue=await xn(B,R.pathname,w.signal);if(ue.type==="aborted")return{shortCircuited:!0};if(ue.type==="error"){if(ue.partialMatches.length===0){let{matches:De,route:Ge}=Ol(h);return{matches:De,pendingActionResult:[Ge.id,{type:"error",error:ue.error}]}}let Fe=mn(ue.partialMatches).route.id;return{matches:ue.partialMatches,pendingActionResult:[Fe,{type:"error",error:ue.error}]}}else if(ue.matches)B=ue.matches;else{let{notFoundMatches:Fe,error:De,route:Ge}=Yn(R.pathname);return{matches:Fe,pendingActionResult:[Ge.id,{type:"error",error:De}]}}}let fe,pe=Hl(B,R);if(!pe.route.action&&!pe.route.lazy)fe={type:"error",error:Yt(405,{method:w.method,pathname:R.pathname,routeId:pe.route.id})};else{let ue=jo(f,p,w,B,pe,J?[]:c,G),Fe=await Ar(w,ue,G,null);if(fe=Fe[pe.route.id],!fe){for(let De of B)if(Fe[De.route.id]){fe=Fe[De.route.id];break}}if(w.signal.aborted)return{shortCircuited:!0}}if(Fn(fe)){let ue;return ce&&ce.replace!=null?ue=ce.replace:ue=gf(fe.response.headers.get("Location"),new URL(w.url),v,n.history)===k.location.pathname+k.location.search,await cr(w,fe,!0,{submission:z,replace:ue}),{shortCircuited:!0}}if(Ft(fe)){let ue=mn(B,pe.route.id);return(ce&&ce.replace)!==!0&&(ye="PUSH"),{matches:B,pendingActionResult:[ue.route.id,fe,pe.route.id]}}return{matches:B,pendingActionResult:[pe.route.id,fe]}}async function Eo(w,R,z,B,G,ie,J,ce,X,fe,pe,ue,Fe){let De=ie||Vs(R,J),Ge=J||ce||kf(De),tt=!ke&&!fe;if(G){if(tt){let ut=Dr(ue);Ke({navigation:De,...ut!==void 0?{actionData:ut}:{}},{flushSync:pe})}let Ce=await xn(z,R.pathname,w.signal);if(Ce.type==="aborted")return{shortCircuited:!0};if(Ce.type==="error"){if(Ce.partialMatches.length===0){let{matches:Hr,route:wr}=Ol(h);return{matches:Hr,loaderData:{},errors:{[wr.id]:Ce.error}}}let ut=mn(Ce.partialMatches).route.id;return{matches:Ce.partialMatches,loaderData:{},errors:{[ut]:Ce.error}}}else if(Ce.matches)z=Ce.matches;else{let{error:ut,notFoundMatches:Hr,route:wr}=Yn(R.pathname);return{matches:Hr,loaderData:{},errors:{[wr.id]:ut}}}}let pt=g||h,{dsMatches:Be,revalidatingFetchers:Ae}=df(w,B,f,p,n.history,k,z,Ge,R,fe?[]:c,fe===!0,Se,W,ae,de,le,pt,v,n.patchRoutesOnNavigation!=null,ue,Fe);if(E=++D,!n.dataStrategy&&!Be.some(Ce=>Ce.shouldLoad)&&!Be.some(Ce=>Ce.route.middleware&&Ce.route.middleware.length>0)&&Ae.length===0){let Ce=Gn();return bt(R,{matches:z,loaderData:{},errors:ue&&Ft(ue[1])?{[ue[0]]:ue[1].error}:null,...wf(ue),...Ce?{fetchers:new Map(k.fetchers)}:{}},{flushSync:pe}),{shortCircuited:!0}}if(tt){let Ce={};if(!G){Ce.navigation=De;let ut=Dr(ue);ut!==void 0&&(Ce.actionData=ut)}Ae.length>0&&(Ce.fetchers=Ir(Ae)),Ke(Ce,{flushSync:pe})}Ae.forEach(Ce=>{er(Ce.key),Ce.controller&&K.set(Ce.key,Ce.controller)});let yr=()=>Ae.forEach(Ce=>er(Ce.key));je&&je.signal.addEventListener("abort",yr);let{loaderResults:xr,fetcherResults:rr}=await Hn(Be,Ae,w,B);if(w.signal.aborted)return{shortCircuited:!0};je&&je.signal.removeEventListener("abort",yr),Ae.forEach(Ce=>K.delete(Ce.key));let Nt=Fl(xr);if(Nt)return await cr(w,Nt.result,!0,{replace:X}),{shortCircuited:!0};if(Nt=Fl(rr),Nt)return le.add(Nt.key),await cr(w,Nt.result,!0,{replace:X}),{shortCircuited:!0};let{loaderData:zo,errors:Br}=yf(k,z,xr,ue,Ae,rr);fe&&k.errors&&(Br={...k.errors,...Br});let Bt=Gn(),jt=Qn(E),qn=Bt||jt||Ae.length>0;return{matches:z,loaderData:zo,errors:Br,...qn?{fetchers:new Map(k.fetchers)}:{}}}function Dr(w){if(w&&!Ft(w[1]))return{[w[0]]:w[1].data};if(k.actionData)return Object.keys(k.actionData).length===0?null:k.actionData}function Ir(w){return w.forEach(R=>{let z=k.fetchers.get(R.key),B=ma(void 0,z?z.data:void 0);k.fetchers.set(R.key,B)}),new Map(k.fetchers)}async function Ro(w,R,z,B){er(w);let G=(B&&B.flushSync)===!0,ie=g||h,J=Xs(k.location,k.matches,v,z,R,B?.relative),ce=pn(ie,J,v),X=$r(ce,ie,J);if(X.active&&X.matches&&(ce=X.matches),!ce){kt(w,R,Yt(404,{pathname:J}),{flushSync:G});return}let{path:fe,submission:pe,error:ue}=cf(!0,J,B);if(ue){kt(w,R,ue,{flushSync:G});return}let Fe=n.getContext?await n.getContext():new nf,De=(B&&B.preventScrollReset)===!0;if(pe&&wt(pe.formMethod)){await La(w,R,fe,ce,Fe,X.active,G,De,pe,B&&B.unstable_defaultShouldRevalidate);return}de.set(w,{routeId:R,path:fe}),await za(w,R,fe,ce,Fe,X.active,G,De,pe)}async function La(w,R,z,B,G,ie,J,ce,X,fe){Or(),de.delete(w);let pe=k.fetchers.get(w);Ut(w,cg(X,pe),{flushSync:J});let ue=new AbortController,Fe=ko(n.history,z,ue.signal,X);if(ie){let We=await xn(B,new URL(Fe.url).pathname,Fe.signal,w);if(We.type==="aborted")return;if(We.type==="error"){kt(w,R,We.error,{flushSync:J});return}else if(We.matches)B=We.matches;else{kt(w,R,Yt(404,{pathname:z}),{flushSync:J});return}}let De=Hl(B,z);if(!De.route.action&&!De.route.lazy){let We=Yt(405,{method:X.formMethod,pathname:z,routeId:R});kt(w,R,We,{flushSync:J});return}K.set(w,ue);let Ge=D,tt=jo(f,p,Fe,B,De,c,G),pt=await Ar(Fe,tt,G,w),Be=pt[De.route.id];if(!Be){for(let We of tt)if(pt[We.route.id]){Be=pt[We.route.id];break}}if(Fe.signal.aborted){K.get(w)===ue&&K.delete(w);return}if(ae.has(w)){if(Fn(Be)||Ft(Be)){Ut(w,Mr(void 0));return}}else{if(Fn(Be))if(K.delete(w),E>Ge){Ut(w,Mr(void 0));return}else return le.add(w),Ut(w,ma(X)),cr(Fe,Be,!1,{fetcherSubmission:X,preventScrollReset:ce});if(Ft(Be)){kt(w,R,Be.error);return}}let Ae=k.navigation.location||k.location,yr=ko(n.history,Ae,ue.signal),xr=g||h,rr=k.navigation.state!=="idle"?pn(xr,k.navigation.location,v):k.matches;ze(rr,"Didn't find any matches after fetcher action");let Nt=++D;O.set(w,Nt);let zo=ma(X,Be.data);k.fetchers.set(w,zo);let{dsMatches:Br,revalidatingFetchers:Bt}=df(yr,G,f,p,n.history,k,rr,X,Ae,c,!1,Se,W,ae,de,le,xr,v,n.patchRoutesOnNavigation!=null,[De.route.id,Be],fe);Bt.filter(We=>We.key!==w).forEach(We=>{let br=We.key,Vr=k.fetchers.get(br),Xn=ma(void 0,Vr?Vr.data:void 0);k.fetchers.set(br,Xn),er(br),We.controller&&K.set(br,We.controller)}),Ke({fetchers:new Map(k.fetchers)});let jt=()=>Bt.forEach(We=>er(We.key));ue.signal.addEventListener("abort",jt);let{loaderResults:qn,fetcherResults:Ce}=await Hn(Br,Bt,yr,G);if(ue.signal.aborted)return;if(ue.signal.removeEventListener("abort",jt),O.delete(w),K.delete(w),Bt.forEach(We=>K.delete(We.key)),k.fetchers.has(w)){let We=Mr(Be.data);k.fetchers.set(w,We)}let ut=Fl(qn);if(ut)return cr(yr,ut.result,!1,{preventScrollReset:ce});if(ut=Fl(Ce),ut)return le.add(ut.key),cr(yr,ut.result,!1,{preventScrollReset:ce});let{loaderData:Hr,errors:wr}=yf(k,rr,qn,void 0,Bt,Ce);Qn(Nt),k.navigation.state==="loading"&&Nt>E?(ze(ye,"Expected pending action"),je&&je.abort(),bt(k.navigation.location,{matches:rr,loaderData:Hr,errors:wr,fetchers:new Map(k.fetchers)})):(Ke({errors:wr,loaderData:xf(k.loaderData,Hr,rr,wr),fetchers:new Map(k.fetchers)}),Se=!1)}async function za(w,R,z,B,G,ie,J,ce,X){let fe=k.fetchers.get(w);Ut(w,ma(X,fe?fe.data:void 0),{flushSync:J});let pe=new AbortController,ue=ko(n.history,z,pe.signal);if(ie){let Be=await xn(B,new URL(ue.url).pathname,ue.signal,w);if(Be.type==="aborted")return;if(Be.type==="error"){kt(w,R,Be.error,{flushSync:J});return}else if(Be.matches)B=Be.matches;else{kt(w,R,Yt(404,{pathname:z}),{flushSync:J});return}}let Fe=Hl(B,z);K.set(w,pe);let De=D,Ge=jo(f,p,ue,B,Fe,c,G),pt=(await Ar(ue,Ge,G,w))[Fe.route.id];if(K.get(w)===pe&&K.delete(w),!ue.signal.aborted){if(ae.has(w)){Ut(w,Mr(void 0));return}if(Fn(pt))if(E>De){Ut(w,Mr(void 0));return}else{le.add(w),await cr(ue,pt,!1,{preventScrollReset:ce});return}if(Ft(pt)){kt(w,R,pt.error);return}Ut(w,Mr(pt.data))}}async function cr(w,R,z,{submission:B,fetcherSubmission:G,preventScrollReset:ie,replace:J}={}){z||(Re?.resolve(),Re=null),R.response.headers.has("X-Remix-Revalidate")&&(Se=!0);let ce=R.response.headers.get("Location");ze(ce,"Expected a Location header on the redirect Response"),ce=gf(ce,new URL(w.url),v,n.history);let X=wa(k.location,ce,{_isRedirect:!0});if(l){let Ge=!1;if(R.response.headers.has("X-Remix-Reload-Document"))Ge=!0;else if(au(ce)){const tt=qf(ce,!0);Ge=tt.origin!==a.location.origin||qt(tt.pathname,v)==null}if(Ge){J?a.location.replace(ce):a.location.assign(ce);return}}je=null;let fe=J===!0||R.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:pe,formAction:ue,formEncType:Fe}=k.navigation;!B&&!G&&pe&&ue&&Fe&&(B=kf(k.navigation));let De=B||G;if(F0.has(R.response.status)&&De&&wt(De.formMethod))await Zt(fe,X,{submission:{...De,formAction:ce},preventScrollReset:ie||Ve,enableViewTransition:z?Ue:void 0});else{let Ge=Vs(X,B);await Zt(fe,X,{overrideNavigation:Ge,fetcherSubmission:G,preventScrollReset:ie||Ve,enableViewTransition:z?Ue:void 0})}}async function Ar(w,R,z,B){let G,ie={};try{G=await Y0(S,w,R,B,z,!1)}catch(J){return R.filter(ce=>ce.shouldLoad).forEach(ce=>{ie[ce.route.id]={type:"error",error:J}}),ie}if(w.signal.aborted)return ie;if(!wt(w.method))for(let J of R){if(G[J.route.id]?.type==="error")break;!G.hasOwnProperty(J.route.id)&&!k.loaderData.hasOwnProperty(J.route.id)&&(!k.errors||!k.errors.hasOwnProperty(J.route.id))&&J.shouldCallHandler()&&(G[J.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${J.route.id}`)})}for(let[J,ce]of Object.entries(G))if(ag(ce)){let X=ce.result;ie[J]={type:"redirect",response:Z0(X,w,J,R,v)}}else ie[J]=await J0(ce);return ie}async function Hn(w,R,z,B){let G=Ar(z,w,B,null),ie=Promise.all(R.map(async X=>{if(X.matches&&X.match&&X.request&&X.controller){let pe=(await Ar(X.request,X.matches,B,X.key))[X.match.route.id];return{[X.key]:pe}}else return Promise.resolve({[X.key]:{type:"error",error:Yt(404,{pathname:X.path})}})})),J=await G,ce=(await ie).reduce((X,fe)=>Object.assign(X,fe),{});return{loaderResults:J,fetcherResults:ce}}function Or(){Se=!0,de.forEach((w,R)=>{K.has(R)&&W.add(R),er(R)})}function Ut(w,R,z={}){k.fetchers.set(w,R),Ke({fetchers:new Map(k.fetchers)},{flushSync:(z&&z.flushSync)===!0})}function kt(w,R,z,B={}){let G=mn(k.matches,R);Vn(w),Ke({errors:{[G.route.id]:z},fetchers:new Map(k.fetchers)},{flushSync:(B&&B.flushSync)===!0})}function Fr(w){return se.set(w,(se.get(w)||0)+1),ae.has(w)&&ae.delete(w),k.fetchers.get(w)||$0}function ri(w,R){er(w,R?.reason),Ut(w,Mr(null))}function Vn(w){let R=k.fetchers.get(w);K.has(w)&&!(R&&R.state==="loading"&&O.has(w))&&er(w),de.delete(w),O.delete(w),le.delete(w),ae.delete(w),W.delete(w),k.fetchers.delete(w)}function Ta(w){let R=(se.get(w)||0)-1;R<=0?(se.delete(w),ae.add(w)):se.set(w,R),Ke({fetchers:new Map(k.fetchers)})}function er(w,R){let z=K.get(w);z&&(z.abort(R),K.delete(w))}function Wn(w){for(let R of w){let z=Fr(R),B=Mr(z.data);k.fetchers.set(R,B)}}function Gn(){let w=[],R=!1;for(let z of le){let B=k.fetchers.get(z);ze(B,`Expected fetcher: ${z}`),B.state==="loading"&&(le.delete(z),w.push(z),R=!0)}return Wn(w),R}function Qn(w){let R=[];for(let[z,B]of O)if(B0}function Po(w,R){let z=k.blockers.get(w)||pa;return _e.get(w)!==R&&_e.set(w,R),z}function Kn(w){k.blockers.delete(w),_e.delete(w)}function tr(w,R){let z=k.blockers.get(w)||pa;ze(z.state==="unblocked"&&R.state==="blocked"||z.state==="blocked"&&R.state==="blocked"||z.state==="blocked"&&R.state==="proceeding"||z.state==="blocked"&&R.state==="unblocked"||z.state==="proceeding"&&R.state==="unblocked",`Invalid blocker state transition: ${z.state} -> ${R.state}`);let B=new Map(k.blockers);B.set(w,R),Ke({blockers:B})}function vr({currentLocation:w,nextLocation:R,historyAction:z}){if(_e.size===0)return;_e.size>1&&ot(!1,"A router only supports one blocker at a time");let B=Array.from(_e.entries()),[G,ie]=B[B.length-1],J=k.blockers.get(G);if(!(J&&J.state==="proceeding")&&ie({currentLocation:w,nextLocation:R,historyAction:z}))return G}function Yn(w){let R=Yt(404,{pathname:w}),z=g||h,{matches:B,route:G}=Ol(z);return{notFoundMatches:B,route:G,error:R}}function Da(w,R,z){if(I=w,y=R,A=z||null,!F&&k.navigation===Hs){F=!0;let B=Mo(k.location,k.matches);B!=null&&Ke({restoreScrollPosition:B})}return()=>{I=null,y=null,A=null}}function _o(w,R){return A&&A(w,R.map(B=>f0(B,k.loaderData)))||w.key}function Ia(w,R){if(I&&y){let z=_o(w,R);I[z]=y()}}function Mo(w,R){if(I){let z=_o(w,R),B=I[z];if(typeof B=="number")return B}return null}function $r(w,R,z){if(n.patchRoutesOnNavigation)if(w){if(Object.keys(w[0].params).length>0)return{active:!0,matches:ya(R,z,v,!0)}}else return{active:!0,matches:ya(R,z,v,!0)||[]};return{active:!1,matches:null}}async function xn(w,R,z,B){if(!n.patchRoutesOnNavigation)return{type:"success",matches:w};let G=w;for(;;){let ie=g==null,J=g||h,ce=p;try{await n.patchRoutesOnNavigation({signal:z,path:R,matches:G,fetcherKey:B,patch:(pe,ue)=>{z.aborted||ff(pe,ue,J,ce,f,!1)}})}catch(pe){return{type:"error",error:pe,partialMatches:G}}finally{ie&&!z.aborted&&(h=[...h])}if(z.aborted)return{type:"aborted"};let X=pn(J,R,v),fe=null;if(X){if(Object.keys(X[0].params).length===0)return{type:"success",matches:X};if(fe=ya(J,R,v,!0),!(fe&&G.lengthz.route.id===R[B].route.id)}function Lo(w){p={},g=ba(w,f,void 0,p)}function wn(w,R,z=!1){let B=g==null;ff(w,R,g||h,p,f,z),B&&(h=[...h],Ke({}))}return Ee={get basename(){return v},get future(){return b},get state(){return k},get routes(){return h},get window(){return a},initialize:st,subscribe:gr,enableScrollRestoration:Da,navigate:Co,fetch:Ro,revalidate:_a,createHref:w=>n.history.createHref(w),encodeLocation:w=>n.history.encodeLocation(w),getFetcher:Fr,resetFetcher:ri,deleteFetcher:Ta,dispose:Jt,getBlocker:Po,deleteBlocker:Kn,patchRoutes:wn,_internalFetchControllers:K,_internalSetRoutes:Lo,_internalSetStateDoNotUseOrYouWillBreakYourApp(w){Ke(w)}},n.unstable_instrumentations&&(Ee=M0(Ee,n.unstable_instrumentations.map(w=>w.router).filter(Boolean))),Ee}function H0(n){return n!=null&&("formData"in n&&n.formData!=null||"body"in n&&n.body!==void 0)}function Xs(n,a,l,c,d,f){let p,h;if(d){p=[];for(let v of a)if(p.push(v),v.route.id===d){h=v;break}}else p=a,h=a[a.length-1];let g=Jl(c||".",lu(p),qt(n.pathname,l)||n.pathname,f==="path");if(c==null&&(g.search=n.search,g.hash=n.hash),(c==null||c===""||c===".")&&h){let v=uu(g.search);if(h.route.index&&!v)g.search=g.search?g.search.replace(/^\?/,"?index&"):"?index";else if(!h.route.index&&v){let S=new URLSearchParams(g.search),b=S.getAll("index");S.delete("index"),b.filter(L=>L).forEach(L=>S.append("index",L));let P=S.toString();g.search=P?`?${P}`:""}}return l!=="/"&&(g.pathname=S0({basename:l,pathname:g.pathname})),hr(g)}function cf(n,a,l){if(!l||!H0(l))return{path:a};if(l.formMethod&&!sg(l.formMethod))return{path:a,error:Yt(405,{method:l.formMethod})};let c=()=>({path:a,error:Yt(400,{type:"invalid-body"})}),f=(l.formMethod||"get").toUpperCase(),p=mp(a);if(l.body!==void 0){if(l.formEncType==="text/plain"){if(!wt(f))return c();let b=typeof l.body=="string"?l.body:l.body instanceof FormData||l.body instanceof URLSearchParams?Array.from(l.body.entries()).reduce((P,[L,I])=>`${P}${L}=${I} +`,""):String(l.body);return{path:a,submission:{formMethod:f,formAction:p,formEncType:l.formEncType,formData:void 0,json:void 0,text:b}}}else if(l.formEncType==="application/json"){if(!wt(f))return c();try{let b=typeof l.body=="string"?JSON.parse(l.body):l.body;return{path:a,submission:{formMethod:f,formAction:p,formEncType:l.formEncType,formData:void 0,json:b,text:void 0}}}catch{return c()}}}ze(typeof FormData=="function","FormData is not available in this environment");let h,g;if(l.formData)h=Zs(l.formData),g=l.formData;else if(l.body instanceof FormData)h=Zs(l.body),g=l.body;else if(l.body instanceof URLSearchParams)h=l.body,g=vf(h);else if(l.body==null)h=new URLSearchParams,g=new FormData;else try{h=new URLSearchParams(l.body),g=vf(h)}catch{return c()}let v={formMethod:f,formAction:p,formEncType:l&&l.formEncType||"application/x-www-form-urlencoded",formData:g,json:void 0,text:void 0};if(wt(v.formMethod))return{path:a,submission:v};let S=zr(a);return n&&S.search&&uu(S.search)&&h.append("index",""),S.search=`?${h}`,{path:hr(S),submission:v}}function df(n,a,l,c,d,f,p,h,g,v,S,b,P,L,I,A,y,F,H,Y,xe){let me=Y?Ft(Y[1])?Y[1].error:Y[1].data:void 0,we=d.createURL(f.location),Ee=d.createURL(g),k;if(S&&f.errors){let he=Object.keys(f.errors)[0];k=p.findIndex(ke=>ke.route.id===he)}else if(Y&&Ft(Y[1])){let he=Y[0];k=p.findIndex(ke=>ke.route.id===he)-1}let ye=Y?Y[1].statusCode:void 0,Re=ye&&ye>=400,Ve={currentUrl:we,currentParams:f.matches[0]?.params||{},nextUrl:Ee,nextParams:p[0].params,...h,actionResult:me,actionStatus:ye},je=Ca(p),Ue=p.map((he,ke)=>{let{route:Se}=he,W=null;if(k!=null&&ke>k)W=!1;else if(Se.lazy)W=!0;else if(!iu(Se))W=!1;else if(S){let{shouldLoad:O}=sp(Se,f.loaderData,f.errors);W=O}else V0(f.loaderData,f.matches[ke],he)&&(W=!0);if(W!==null)return Js(l,c,n,je,he,v,a,W);let K=!1;typeof xe=="boolean"?K=xe:Re?K=!1:(b||we.pathname+we.search===Ee.pathname+Ee.search||we.search!==Ee.search||W0(f.matches[ke],he))&&(K=!0);let D={...Ve,defaultShouldRevalidate:K},E=xa(he,D);return Js(l,c,n,je,he,v,a,E,D,xe)}),Pe=[];return I.forEach((he,ke)=>{if(S||!p.some(de=>de.route.id===he.routeId)||L.has(ke))return;let Se=f.fetchers.get(ke),W=Se&&Se.state!=="idle"&&Se.data===void 0,K=pn(y,he.path,F);if(!K){if(H&&W)return;Pe.push({key:ke,routeId:he.routeId,path:he.path,matches:null,match:null,request:null,controller:null});return}if(A.has(ke))return;let D=Hl(K,he.path),E=new AbortController,O=ko(d,he.path,E.signal),le=null;if(P.has(ke))P.delete(ke),le=jo(l,c,O,K,D,v,a);else if(W)b&&(le=jo(l,c,O,K,D,v,a));else{let de;typeof xe=="boolean"?de=xe:Re?de=!1:de=b;let se={...Ve,defaultShouldRevalidate:de};xa(D,se)&&(le=jo(l,c,O,K,D,v,a,se))}le&&Pe.push({key:ke,routeId:he.routeId,path:he.path,matches:le,match:D,request:O,controller:E})}),{dsMatches:Ue,revalidatingFetchers:Pe}}function iu(n){return n.loader!=null||n.middleware!=null&&n.middleware.length>0}function sp(n,a,l){if(n.lazy)return{shouldLoad:!0,renderFallback:!0};if(!iu(n))return{shouldLoad:!1,renderFallback:!1};let c=a!=null&&n.id in a,d=l!=null&&l[n.id]!==void 0;if(!c&&d)return{shouldLoad:!1,renderFallback:!1};if(typeof n.loader=="function"&&n.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!c};let f=!c&&!d;return{shouldLoad:f,renderFallback:f}}function V0(n,a,l){let c=!a||l.route.id!==a.route.id,d=!n.hasOwnProperty(l.route.id);return c||d}function W0(n,a){let l=n.route.path;return n.pathname!==a.pathname||l!=null&&l.endsWith("*")&&n.params["*"]!==a.params["*"]}function xa(n,a){if(n.route.shouldRevalidate){let l=n.route.shouldRevalidate(a);if(typeof l=="boolean")return l}return a.defaultShouldRevalidate}function ff(n,a,l,c,d,f){let p;if(n){let v=c[n];ze(v,`No route found to patch children into: routeId = ${n}`),v.children||(v.children=[]),p=v.children}else p=l;let h=[],g=[];if(a.forEach(v=>{let S=p.find(b=>up(v,b));S?g.push({existingRoute:S,newRoute:v}):h.push(v)}),h.length>0){let v=ba(h,d,[n||"_","patch",String(p?.length||"0")],c);p.push(...v)}if(f&&g.length>0)for(let v=0;va.children?.some(d=>up(l,d)))??!1:!1}var pf=new WeakMap,cp=({key:n,route:a,manifest:l,mapRouteProperties:c})=>{let d=l[a.id];if(ze(d,"No route found in manifest"),!d.lazy||typeof d.lazy!="object")return;let f=d.lazy[n];if(!f)return;let p=pf.get(d);p||(p={},pf.set(d,p));let h=p[n];if(h)return h;let g=(async()=>{let v=s0(n),b=d[n]!==void 0&&n!=="hasErrorBoundary";if(v)ot(!v,"Route property "+n+" is not a supported lazy route property. This property will be ignored."),p[n]=Promise.resolve();else if(b)ot(!1,`Route "${d.id}" has a static property "${n}" defined. The lazy property will be ignored.`);else{let P=await f();P!=null&&(Object.assign(d,{[n]:P}),Object.assign(d,c(d)))}typeof d.lazy=="object"&&(d.lazy[n]=void 0,Object.values(d.lazy).every(P=>P===void 0)&&(d.lazy=void 0))})();return p[n]=g,g},mf=new WeakMap;function G0(n,a,l,c,d){let f=l[n.id];if(ze(f,"No route found in manifest"),!n.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof n.lazy=="function"){let S=mf.get(f);if(S)return{lazyRoutePromise:S,lazyHandlerPromise:S};let b=(async()=>{ze(typeof n.lazy=="function","No lazy route function found");let P=await n.lazy(),L={};for(let I in P){let A=P[I];if(A===void 0)continue;let y=c0(I),H=f[I]!==void 0&&I!=="hasErrorBoundary";y?ot(!y,"Route property "+I+" is not a supported property to be returned from a lazy route function. This property will be ignored."):H?ot(!H,`Route "${f.id}" has a static property "${I}" defined but its lazy function is also returning a value for this property. The lazy route property "${I}" will be ignored.`):L[I]=A}Object.assign(f,L),Object.assign(f,{...c(f),lazy:void 0})})();return mf.set(f,b),b.catch(()=>{}),{lazyRoutePromise:b,lazyHandlerPromise:b}}let p=Object.keys(n.lazy),h=[],g;for(let S of p){if(d&&d.includes(S))continue;let b=cp({key:S,route:n,manifest:l,mapRouteProperties:c});b&&(h.push(b),S===a&&(g=b))}let v=h.length>0?Promise.all(h).then(()=>{}):void 0;return v?.catch(()=>{}),g?.catch(()=>{}),{lazyRoutePromise:v,lazyHandlerPromise:g}}async function hf(n){let a=n.matches.filter(d=>d.shouldLoad),l={};return(await Promise.all(a.map(d=>d.resolve()))).forEach((d,f)=>{l[a[f].route.id]=d}),l}async function Q0(n){return n.matches.some(a=>a.route.middleware)?dp(n,()=>hf(n)):hf(n)}function dp(n,a){return K0(n,a,c=>{if(ig(c))throw c;return c},ng,l);function l(c,d,f){if(f)return Promise.resolve(Object.assign(f.value,{[d]:{type:"error",result:c}}));{let{matches:p}=n,h=Math.min(Math.max(p.findIndex(v=>v.route.id===d),0),Math.max(p.findIndex(v=>v.shouldCallHandler()),0)),g=mn(p,p[h].route.id).route.id;return Promise.resolve({[g]:{type:"error",result:c}})}}}async function K0(n,a,l,c,d){let{matches:f,request:p,params:h,context:g,unstable_pattern:v}=n,S=f.flatMap(P=>P.route.middleware?P.route.middleware.map(L=>[P.route.id,L]):[]);return await fp({request:p,params:h,context:g,unstable_pattern:v},S,a,l,c,d)}async function fp(n,a,l,c,d,f,p=0){let{request:h}=n;if(h.signal.aborted)throw h.signal.reason??new Error(`Request aborted: ${h.method} ${h.url}`);let g=a[p];if(!g)return await l();let[v,S]=g,b,P=async()=>{if(b)throw new Error("You may only call `next()` once per middleware");try{return b={value:await fp(n,a,l,c,d,f,p+1)},b.value}catch(L){return b={value:await f(L,v,b)},b.value}};try{let L=await S(n,P),I=L!=null?c(L):void 0;return d(I)?I:b?I??b.value:(b={value:await P()},b.value)}catch(L){return await f(L,v,b)}}function pp(n,a,l,c,d){let f=cp({key:"middleware",route:c.route,manifest:a,mapRouteProperties:n}),p=G0(c.route,wt(l.method)?"action":"loader",a,n,d);return{middleware:f,route:p.lazyRoutePromise,handler:p.lazyHandlerPromise}}function Js(n,a,l,c,d,f,p,h,g=null,v){let S=!1,b=pp(n,a,l,d,f);return{...d,_lazyPromises:b,shouldLoad:h,shouldRevalidateArgs:g,shouldCallHandler(P){return S=!0,g?typeof v=="boolean"?xa(d,{...g,defaultShouldRevalidate:v}):typeof P=="boolean"?xa(d,{...g,defaultShouldRevalidate:P}):xa(d,g):h},resolve(P){let{lazy:L,loader:I,middleware:A}=d.route,y=S||h||P&&!wt(l.method)&&(L||I),F=A&&A.length>0&&!I&&!L;return y&&(wt(l.method)||!F)?q0({request:l,unstable_pattern:c,match:d,lazyHandlerPromise:b?.handler,lazyRoutePromise:b?.route,handlerOverride:P,scopedContext:p}):Promise.resolve({type:"data",result:void 0})}}}function jo(n,a,l,c,d,f,p,h=null){return c.map(g=>g.route.id!==d.route.id?{...g,shouldLoad:!1,shouldRevalidateArgs:h,shouldCallHandler:()=>!1,_lazyPromises:pp(n,a,l,g,f),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Js(n,a,l,Ca(c),g,f,p,!0,h))}async function Y0(n,a,l,c,d,f){l.some(v=>v._lazyPromises?.middleware)&&await Promise.all(l.map(v=>v._lazyPromises?.middleware));let p={request:a,unstable_pattern:Ca(l),params:l[0].params,context:d,matches:l},g=await n({...p,fetcherKey:c,runClientMiddleware:v=>{let S=p;return dp(S,()=>v({...S,fetcherKey:c,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(l.flatMap(v=>[v._lazyPromises?.handler,v._lazyPromises?.route]))}catch{}return g}async function q0({request:n,unstable_pattern:a,match:l,lazyHandlerPromise:c,lazyRoutePromise:d,handlerOverride:f,scopedContext:p}){let h,g,v=wt(n.method),S=v?"action":"loader",b=P=>{let L,I=new Promise((F,H)=>L=H);g=()=>L(),n.signal.addEventListener("abort",g);let A=F=>typeof P!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${S}" [routeId: ${l.route.id}]`)):P({request:n,unstable_pattern:a,params:l.params,context:p},...F!==void 0?[F]:[]),y=(async()=>{try{return{type:"data",result:await(f?f(H=>A(H)):A())}}catch(F){return{type:"error",result:F}}})();return Promise.race([y,I])};try{let P=v?l.route.action:l.route.loader;if(c||d)if(P){let L,[I]=await Promise.all([b(P).catch(A=>{L=A}),c,d]);if(L!==void 0)throw L;h=I}else{await c;let L=v?l.route.action:l.route.loader;if(L)[h]=await Promise.all([b(L),d]);else if(S==="action"){let I=new URL(n.url),A=I.pathname+I.search;throw Yt(405,{method:n.method,pathname:A,routeId:l.route.id})}else return{type:"data",result:void 0}}else if(P)h=await b(P);else{let L=new URL(n.url),I=L.pathname+L.search;throw Yt(404,{pathname:I})}}catch(P){return{type:"error",result:P}}finally{g&&n.signal.removeEventListener("abort",g)}return h}async function X0(n){let a=n.headers.get("Content-Type");return a&&/\bapplication\/json\b/.test(a)?n.body==null?null:n.json():n.text()}async function J0(n){let{result:a,type:l}=n;if(su(a)){let c;try{c=await X0(a)}catch(d){return{type:"error",error:d}}return l==="error"?{type:"error",error:new Sa(a.status,a.statusText,c),statusCode:a.status,headers:a.headers}:{type:"data",data:c,statusCode:a.status,headers:a.headers}}return l==="error"?bf(a)?a.data instanceof Error?{type:"error",error:a.data,statusCode:a.init?.status,headers:a.init?.headers?new Headers(a.init.headers):void 0}:{type:"error",error:rg(a),statusCode:ka(a)?a.status:void 0,headers:a.init?.headers?new Headers(a.init.headers):void 0}:{type:"error",error:a,statusCode:ka(a)?a.status:void 0}:bf(a)?{type:"data",data:a.data,statusCode:a.init?.status,headers:a.init?.headers?new Headers(a.init.headers):void 0}:{type:"data",data:a}}function Z0(n,a,l,c,d){let f=n.headers.get("Location");if(ze(f,"Redirects returned/thrown from loaders/actions must have a Location header"),!au(f)){let p=c.slice(0,c.findIndex(h=>h.route.id===l)+1);f=Xs(new URL(a.url),p,d,f),n.headers.set("Location",f)}return n}function gf(n,a,l,c){let d=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(au(n)){let f=n,p=f.startsWith("//")?new URL(a.protocol+f):new URL(f);if(d.includes(p.protocol))throw new Error("Invalid redirect location");let h=qt(p.pathname,l)!=null;if(p.origin===a.origin&&h)return p.pathname+p.search+p.hash}try{let f=c.createURL(n);if(d.includes(f.protocol))throw new Error("Invalid redirect location")}catch{}return n}function ko(n,a,l,c){let d=n.createURL(mp(a)).toString(),f={signal:l};if(c&&wt(c.formMethod)){let{formMethod:p,formEncType:h}=c;f.method=p.toUpperCase(),h==="application/json"?(f.headers=new Headers({"Content-Type":h}),f.body=JSON.stringify(c.json)):h==="text/plain"?f.body=c.text:h==="application/x-www-form-urlencoded"&&c.formData?f.body=Zs(c.formData):f.body=c.formData}return new Request(d,f)}function Zs(n){let a=new URLSearchParams;for(let[l,c]of n.entries())a.append(l,typeof c=="string"?c:c.name);return a}function vf(n){let a=new FormData;for(let[l,c]of n.entries())a.append(l,c);return a}function eg(n,a,l,c=!1,d=!1){let f={},p=null,h,g=!1,v={},S=l&&Ft(l[1])?l[1].error:void 0;return n.forEach(b=>{if(!(b.route.id in a))return;let P=b.route.id,L=a[P];if(ze(!Fn(L),"Cannot handle redirect results in processLoaderData"),Ft(L)){let I=L.error;if(S!==void 0&&(I=S,S=void 0),p=p||{},d)p[P]=I;else{let A=mn(n,P);p[A.route.id]==null&&(p[A.route.id]=I)}c||(f[P]=ip),g||(g=!0,h=ka(L.error)?L.error.status:500),L.headers&&(v[P]=L.headers)}else f[P]=L.data,L.statusCode&&L.statusCode!==200&&!g&&(h=L.statusCode),L.headers&&(v[P]=L.headers)}),S!==void 0&&l&&(p={[l[0]]:S},l[2]&&(f[l[2]]=void 0)),{loaderData:f,errors:p,statusCode:h||200,loaderHeaders:v}}function yf(n,a,l,c,d,f){let{loaderData:p,errors:h}=eg(a,l,c);return d.filter(g=>!g.matches||g.matches.some(v=>v.shouldLoad)).forEach(g=>{let{key:v,match:S,controller:b}=g;if(b&&b.signal.aborted)return;let P=f[v];if(ze(P,"Did not find corresponding fetcher result"),Ft(P)){let L=mn(n.matches,S?.route.id);h&&h[L.route.id]||(h={...h,[L.route.id]:P.error}),n.fetchers.delete(v)}else if(Fn(P))ze(!1,"Unhandled fetcher revalidation redirect");else{let L=Mr(P.data);n.fetchers.set(v,L)}}),{loaderData:p,errors:h}}function xf(n,a,l,c){let d=Object.entries(a).filter(([,f])=>f!==ip).reduce((f,[p,h])=>(f[p]=h,f),{});for(let f of l){let p=f.route.id;if(!a.hasOwnProperty(p)&&n.hasOwnProperty(p)&&f.route.loader&&(d[p]=n[p]),c&&c.hasOwnProperty(p))break}return d}function wf(n){return n?Ft(n[1])?{actionData:{}}:{actionData:{[n[0]]:n[1].data}}:{}}function mn(n,a){return(a?n.slice(0,n.findIndex(c=>c.route.id===a)+1):[...n]).reverse().find(c=>c.route.hasErrorBoundary===!0)||n[0]}function Ol(n){let a=n.length===1?n[0]:n.find(l=>l.index||!l.path||l.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:a}],route:a}}function Yt(n,{pathname:a,routeId:l,method:c,type:d,message:f}={}){let p="Unknown Server Error",h="Unknown @remix-run/router error";return n===400?(p="Bad Request",c&&a&&l?h=`You made a ${c} request to "${a}" but did not provide a \`loader\` for route "${l}", so there is no way to handle the request.`:d==="invalid-body"&&(h="Unable to encode submission body")):n===403?(p="Forbidden",h=`Route "${l}" does not match URL "${a}"`):n===404?(p="Not Found",h=`No route matches URL "${a}"`):n===405&&(p="Method Not Allowed",c&&a&&l?h=`You made a ${c.toUpperCase()} request to "${a}" but did not provide an \`action\` for route "${l}", so there is no way to handle the request.`:c&&(h=`Invalid request method "${c.toUpperCase()}"`)),new Sa(n||500,p,new Error(h),!0)}function Fl(n){let a=Object.entries(n);for(let l=a.length-1;l>=0;l--){let[c,d]=a[l];if(Fn(d))return{key:c,result:d}}}function mp(n){let a=typeof n=="string"?zr(n):n;return hr({...a,hash:""})}function tg(n,a){return n.pathname!==a.pathname||n.search!==a.search?!1:n.hash===""?a.hash!=="":n.hash===a.hash?!0:a.hash!==""}function rg(n){return new Sa(n.init?.status??500,n.init?.statusText??"Internal Server Error",n.data)}function ng(n){return n!=null&&typeof n=="object"&&Object.entries(n).every(([a,l])=>typeof a=="string"&&og(l))}function og(n){return n!=null&&typeof n=="object"&&"type"in n&&"result"in n&&(n.type==="data"||n.type==="error")}function ag(n){return su(n.result)&&ap.has(n.result.status)}function Ft(n){return n.type==="error"}function Fn(n){return(n&&n.type)==="redirect"}function bf(n){return typeof n=="object"&&n!=null&&"type"in n&&"data"in n&&"init"in n&&n.type==="DataWithResponseInit"}function su(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.headers=="object"&&typeof n.body<"u"}function lg(n){return ap.has(n)}function ig(n){return su(n)&&lg(n.status)&&n.headers.has("Location")}function sg(n){return O0.has(n.toUpperCase())}function wt(n){return I0.has(n.toUpperCase())}function uu(n){return new URLSearchParams(n).getAll("index").some(a=>a==="")}function Hl(n,a){let l=typeof a=="string"?zr(a).search:a.search;if(n[n.length-1].route.index&&uu(l||""))return n[n.length-1];let c=ep(n);return c[c.length-1]}function kf(n){let{formMethod:a,formAction:l,formEncType:c,text:d,formData:f,json:p}=n;if(!(!a||!l||!c)){if(d!=null)return{formMethod:a,formAction:l,formEncType:c,formData:void 0,json:void 0,text:d};if(f!=null)return{formMethod:a,formAction:l,formEncType:c,formData:f,json:void 0,text:void 0};if(p!==void 0)return{formMethod:a,formAction:l,formEncType:c,formData:void 0,json:p,text:void 0}}}function Vs(n,a){return a?{state:"loading",location:n,formMethod:a.formMethod,formAction:a.formAction,formEncType:a.formEncType,formData:a.formData,json:a.json,text:a.text}:{state:"loading",location:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function ug(n,a){return{state:"submitting",location:n,formMethod:a.formMethod,formAction:a.formAction,formEncType:a.formEncType,formData:a.formData,json:a.json,text:a.text}}function ma(n,a){return n?{state:"loading",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:a}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:a}}function cg(n,a){return{state:"submitting",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:a?a.data:void 0}}function Mr(n){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function dg(n,a){try{let l=n.sessionStorage.getItem(lp);if(l){let c=JSON.parse(l);for(let[d,f]of Object.entries(c||{}))f&&Array.isArray(f)&&a.set(d,new Set(f||[]))}}catch{}}function fg(n,a){if(a.size>0){let l={};for(let[c,d]of a)l[c]=[...d];try{n.sessionStorage.setItem(lp,JSON.stringify(l))}catch(c){ot(!1,`Failed to save applied view transitions in sessionStorage (${c}).`)}}}function Nf(){let n,a,l=new Promise((c,d)=>{n=async f=>{c(f);try{await l}catch{}},a=async f=>{d(f);try{await l}catch{}}});return{promise:l,resolve:n,reject:a}}var $n=C.createContext(null);$n.displayName="DataRouter";var Ea=C.createContext(null);Ea.displayName="DataRouterState";var hp=C.createContext(!1);function pg(){return C.useContext(hp)}var cu=C.createContext({isTransitioning:!1});cu.displayName="ViewTransition";var gp=C.createContext(new Map);gp.displayName="Fetchers";var mg=C.createContext(null);mg.displayName="Await";var Xt=C.createContext(null);Xt.displayName="Navigation";var Zl=C.createContext(null);Zl.displayName="Location";var Tr=C.createContext({outlet:null,matches:[],isDataRoute:!1});Tr.displayName="Route";var du=C.createContext(null);du.displayName="RouteError";var vp="REACT_ROUTER_ERROR",hg="REDIRECT",gg="ROUTE_ERROR_RESPONSE";function vg(n){if(n.startsWith(`${vp}:${hg}:{`))try{let a=JSON.parse(n.slice(28));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.location=="string"&&typeof a.reloadDocument=="boolean"&&typeof a.replace=="boolean")return a}catch{}}function yg(n){if(n.startsWith(`${vp}:${gg}:{`))try{let a=JSON.parse(n.slice(40));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string")return new Sa(a.status,a.statusText,a.data)}catch{}}function xg(n,{relative:a}={}){ze(Ra(),"useHref() may be used only in the context of a component.");let{basename:l,navigator:c}=C.useContext(Xt),{hash:d,pathname:f,search:p}=Pa(n,{relative:a}),h=f;return l!=="/"&&(h=f==="/"?l:ur([l,f])),c.createHref({pathname:h,search:p,hash:d})}function Ra(){return C.useContext(Zl)!=null}function vn(){return ze(Ra(),"useLocation() may be used only in the context of a component."),C.useContext(Zl).location}var yp="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function xp(n){C.useContext(Xt).static||C.useLayoutEffect(n)}function wg(){let{isDataRoute:n}=C.useContext(Tr);return n?zg():bg()}function bg(){ze(Ra(),"useNavigate() may be used only in the context of a component.");let n=C.useContext($n),{basename:a,navigator:l}=C.useContext(Xt),{matches:c}=C.useContext(Tr),{pathname:d}=vn(),f=JSON.stringify(lu(c)),p=C.useRef(!1);return xp(()=>{p.current=!0}),C.useCallback((g,v={})=>{if(ot(p.current,yp),!p.current)return;if(typeof g=="number"){l.go(g);return}let S=Jl(g,JSON.parse(f),d,v.relative==="path");n==null&&a!=="/"&&(S.pathname=S.pathname==="/"?a:ur([a,S.pathname])),(v.replace?l.replace:l.push)(S,v.state,v)},[a,l,f,d,n])}C.createContext(null);function Pa(n,{relative:a}={}){let{matches:l}=C.useContext(Tr),{pathname:c}=vn(),d=JSON.stringify(lu(l));return C.useMemo(()=>Jl(n,JSON.parse(d),c,a==="path"),[n,d,c,a])}function kg(n,a,l){ze(Ra(),"useRoutes() may be used only in the context of a component.");let{navigator:c}=C.useContext(Xt),{matches:d}=C.useContext(Tr),f=d[d.length-1],p=f?f.params:{},h=f?f.pathname:"/",g=f?f.pathnameBase:"/",v=f&&f.route;{let y=v&&v.path||"";bp(h,!v||y.endsWith("*")||y.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${h}" (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 S=vn(),b;b=S;let P=b.pathname||"/",L=P;if(g!=="/"){let y=g.replace(/^\//,"").split("/");L="/"+P.replace(/^\//,"").split("/").slice(y.length).join("/")}let I=pn(n,{pathname:L});return ot(v||I!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),ot(I==null||I[I.length-1].route.element!==void 0||I[I.length-1].route.Component!==void 0||I[I.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.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.`),Eg(I&&I.map(y=>Object.assign({},y,{params:Object.assign({},p,y.params),pathname:ur([g,c.encodeLocation?c.encodeLocation(y.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?g:ur([g,c.encodeLocation?c.encodeLocation(y.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathnameBase])})),d,l)}function Ng(){let n=Lg(),a=ka(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),l=n instanceof Error?n.stack:null,c="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:c},f={padding:"2px 4px",backgroundColor:c},p=null;return console.error("Error handled by React Router default ErrorBoundary:",n),p=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:f},"ErrorBoundary")," or"," ",C.createElement("code",{style:f},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},a),l?C.createElement("pre",{style:d},l):null,p)}var jg=C.createElement(Ng,null),wp=class extends C.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,a){return a.location!==n.location||a.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:a.error,location:a.location,revalidation:n.revalidation||a.revalidation}}componentDidCatch(n,a){this.props.onError?this.props.onError(n,a):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const l=yg(n.digest);l&&(n=l)}let a=n!==void 0?C.createElement(Tr.Provider,{value:this.props.routeContext},C.createElement(du.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?C.createElement(Sg,{error:n},a):a}};wp.contextType=hp;var Ws=new WeakMap;function Sg({children:n,error:a}){let{basename:l}=C.useContext(Xt);if(typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){let c=vg(a.digest);if(c){let d=Ws.get(a);if(d)throw d;let f=rp(c.location,l);if(tp&&!Ws.get(a))if(f.isExternal||c.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const p=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:c.replace}));throw Ws.set(a,p),p}return C.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return n}function Cg({routeContext:n,match:a,children:l}){let c=C.useContext($n);return c&&c.static&&c.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=a.route.id),C.createElement(Tr.Provider,{value:n},l)}function Eg(n,a=[],l){let c=l?.state;if(n==null){if(!c)return null;if(c.errors)n=c.matches;else if(a.length===0&&!c.initialized&&c.matches.length>0)n=c.matches;else return null}let d=n,f=c?.errors;if(f!=null){let S=d.findIndex(b=>b.route.id&&f?.[b.route.id]!==void 0);ze(S>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),d=d.slice(0,Math.min(d.length,S+1))}let p=!1,h=-1;if(l&&c){p=c.renderFallback;for(let S=0;S=0?d=d.slice(0,h+1):d=[d[0]];break}}}}let g=l?.onError,v=c&&g?(S,b)=>{g(S,{location:c.location,params:c.matches?.[0]?.params??{},unstable_pattern:Ca(c.matches),errorInfo:b})}:void 0;return d.reduceRight((S,b,P)=>{let L,I=!1,A=null,y=null;c&&(L=f&&b.route.id?f[b.route.id]:void 0,A=b.route.errorElement||jg,p&&(h<0&&P===0?(bp("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),I=!0,y=null):h===P&&(I=!0,y=b.route.hydrateFallbackElement||null)));let F=a.concat(d.slice(0,P+1)),H=()=>{let Y;return L?Y=A:I?Y=y:b.route.Component?Y=C.createElement(b.route.Component,null):b.route.element?Y=b.route.element:Y=S,C.createElement(Cg,{match:b,routeContext:{outlet:S,matches:F,isDataRoute:c!=null},children:Y})};return c&&(b.route.ErrorBoundary||b.route.errorElement||P===0)?C.createElement(wp,{location:c.location,revalidation:c.revalidation,component:A,error:L,children:H(),routeContext:{outlet:null,matches:F,isDataRoute:!0},onError:v}):H()},null)}function fu(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Rg(n){let a=C.useContext($n);return ze(a,fu(n)),a}function Pg(n){let a=C.useContext(Ea);return ze(a,fu(n)),a}function _g(n){let a=C.useContext(Tr);return ze(a,fu(n)),a}function pu(n){let a=_g(n),l=a.matches[a.matches.length-1];return ze(l.route.id,`${n} can only be used on routes that contain a unique "id"`),l.route.id}function Mg(){return pu("useRouteId")}function Lg(){let n=C.useContext(du),a=Pg("useRouteError"),l=pu("useRouteError");return n!==void 0?n:a.errors?.[l]}function zg(){let{router:n}=Rg("useNavigate"),a=pu("useNavigate"),l=C.useRef(!1);return xp(()=>{l.current=!0}),C.useCallback(async(d,f={})=>{ot(l.current,yp),l.current&&(typeof d=="number"?await n.navigate(d):await n.navigate(d,{fromRouteId:a,...f}))},[n,a])}var jf={};function bp(n,a,l){!a&&!jf[n]&&(jf[n]=!0,ot(!1,l))}var Sf={};function Cf(n,a){!n&&!Sf[a]&&(Sf[a]=!0,console.warn(a))}var Tg="useOptimistic",Ef=Kf[Tg],Dg=()=>{};function Ig(n){return Ef?Ef(n):[n,Dg]}function Ag(n){let a={hasErrorBoundary:n.hasErrorBoundary||n.ErrorBoundary!=null||n.errorElement!=null};return n.Component&&(n.element&&ot(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(a,{element:C.createElement(n.Component),Component:void 0})),n.HydrateFallback&&(n.hydrateFallbackElement&&ot(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(a,{hydrateFallbackElement:C.createElement(n.HydrateFallback),HydrateFallback:void 0})),n.ErrorBoundary&&(n.errorElement&&ot(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(a,{errorElement:C.createElement(n.ErrorBoundary),ErrorBoundary:void 0})),a}var Og=["HydrateFallback","hydrateFallbackElement"],Fg=class{constructor(){this.status="pending",this.promise=new Promise((n,a)=>{this.resolve=l=>{this.status==="pending"&&(this.status="resolved",n(l))},this.reject=l=>{this.status==="pending"&&(this.status="rejected",a(l))}})}};function $g({router:n,flushSync:a,onError:l,unstable_useTransitions:c}){c=pg()||c;let[f,p]=C.useState(n.state),[h,g]=Ig(f),[v,S]=C.useState(),[b,P]=C.useState({isTransitioning:!1}),[L,I]=C.useState(),[A,y]=C.useState(),[F,H]=C.useState(),Y=C.useRef(new Map),xe=C.useCallback((k,{deletedFetchers:ye,newErrors:Re,flushSync:Ve,viewTransitionOpts:je})=>{Re&&l&&Object.values(Re).forEach(Pe=>l(Pe,{location:k.location,params:k.matches[0]?.params??{},unstable_pattern:Ca(k.matches)})),k.fetchers.forEach((Pe,he)=>{Pe.data!==void 0&&Y.current.set(he,Pe.data)}),ye.forEach(Pe=>Y.current.delete(Pe)),Cf(Ve===!1||a!=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 Ue=n.window!=null&&n.window.document!=null&&typeof n.window.document.startViewTransition=="function";if(Cf(je==null||Ue,"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."),!je||!Ue){a&&Ve?a(()=>p(k)):c===!1?p(k):C.startTransition(()=>{c===!0&&g(Pe=>Rf(Pe,k)),p(k)});return}if(a&&Ve){a(()=>{A&&(L?.resolve(),A.skipTransition()),P({isTransitioning:!0,flushSync:!0,currentLocation:je.currentLocation,nextLocation:je.nextLocation})});let Pe=n.window.document.startViewTransition(()=>{a(()=>p(k))});Pe.finished.finally(()=>{a(()=>{I(void 0),y(void 0),S(void 0),P({isTransitioning:!1})})}),a(()=>y(Pe));return}A?(L?.resolve(),A.skipTransition(),H({state:k,currentLocation:je.currentLocation,nextLocation:je.nextLocation})):(S(k),P({isTransitioning:!0,flushSync:!1,currentLocation:je.currentLocation,nextLocation:je.nextLocation}))},[n.window,a,A,L,c,g,l]);C.useLayoutEffect(()=>n.subscribe(xe),[n,xe]),C.useEffect(()=>{b.isTransitioning&&!b.flushSync&&I(new Fg)},[b]),C.useEffect(()=>{if(L&&v&&n.window){let k=v,ye=L.promise,Re=n.window.document.startViewTransition(async()=>{c===!1?p(k):C.startTransition(()=>{c===!0&&g(Ve=>Rf(Ve,k)),p(k)}),await ye});Re.finished.finally(()=>{I(void 0),y(void 0),S(void 0),P({isTransitioning:!1})}),y(Re)}},[v,L,n.window,c,g]),C.useEffect(()=>{L&&v&&h.location.key===v.location.key&&L.resolve()},[L,A,h.location,v]),C.useEffect(()=>{!b.isTransitioning&&F&&(S(F.state),P({isTransitioning:!0,flushSync:!1,currentLocation:F.currentLocation,nextLocation:F.nextLocation}),H(void 0))},[b.isTransitioning,F]);let me=C.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:k=>n.navigate(k),push:(k,ye,Re)=>n.navigate(k,{state:ye,preventScrollReset:Re?.preventScrollReset}),replace:(k,ye,Re)=>n.navigate(k,{replace:!0,state:ye,preventScrollReset:Re?.preventScrollReset})}),[n]),we=n.basename||"/",Ee=C.useMemo(()=>({router:n,navigator:me,static:!1,basename:we,onError:l}),[n,me,we,l]);return C.createElement(C.Fragment,null,C.createElement($n.Provider,{value:Ee},C.createElement(Ea.Provider,{value:h},C.createElement(gp.Provider,{value:Y.current},C.createElement(cu.Provider,{value:b},C.createElement(Hg,{basename:we,location:h.location,navigationType:h.historyAction,navigator:me,unstable_useTransitions:c},C.createElement(Ug,{routes:n.routes,future:n.future,state:h,isStatic:!1,onError:l})))))),null)}function Rf(n,a){return{...n,navigation:a.navigation.state!=="idle"?a.navigation:n.navigation,revalidation:a.revalidation!=="idle"?a.revalidation:n.revalidation,actionData:a.navigation.state!=="submitting"?a.actionData:n.actionData,fetchers:a.fetchers}}var Ug=C.memo(Bg);function Bg({routes:n,future:a,state:l,isStatic:c,onError:d}){return kg(n,void 0,{state:l,isStatic:c,onError:d})}function Hg({basename:n="/",children:a=null,location:l,navigationType:c="POP",navigator:d,static:f=!1,unstable_useTransitions:p}){ze(!Ra(),"You cannot render a inside another . You should never have more than one in your app.");let h=n.replace(/^\/*/,"/"),g=C.useMemo(()=>({basename:h,navigator:d,static:f,unstable_useTransitions:p,future:{}}),[h,d,f,p]);typeof l=="string"&&(l=zr(l));let{pathname:v="/",search:S="",hash:b="",state:P=null,key:L="default",unstable_mask:I}=l,A=C.useMemo(()=>{let y=qt(v,h);return y==null?null:{location:{pathname:y,search:S,hash:b,state:P,key:L,unstable_mask:I},navigationType:c}},[h,v,S,b,P,L,c,I]);return ot(A!=null,` is not able to match the URL "${v}${S}${b}" because it does not start with the basename, so the won't render anything.`),A==null?null:C.createElement(Xt.Provider,{value:g},C.createElement(Zl.Provider,{children:a,value:A}))}var Vl="get",Wl="application/x-www-form-urlencoded";function ei(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function Vg(n){return ei(n)&&n.tagName.toLowerCase()==="button"}function Wg(n){return ei(n)&&n.tagName.toLowerCase()==="form"}function Gg(n){return ei(n)&&n.tagName.toLowerCase()==="input"}function Qg(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function Kg(n,a){return n.button===0&&(!a||a==="_self")&&!Qg(n)}var $l=null;function Yg(){if($l===null)try{new FormData(document.createElement("form"),0),$l=!1}catch{$l=!0}return $l}var qg=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Gs(n){return n!=null&&!qg.has(n)?(ot(!1,`"${n}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Wl}"`),null):n}function Xg(n,a){let l,c,d,f,p;if(Wg(n)){let h=n.getAttribute("action");c=h?qt(h,a):null,l=n.getAttribute("method")||Vl,d=Gs(n.getAttribute("enctype"))||Wl,f=new FormData(n)}else if(Vg(n)||Gg(n)&&(n.type==="submit"||n.type==="image")){let h=n.form;if(h==null)throw new Error('Cannot submit a