var j0=Object.defineProperty;var k0=(i,n,r)=>n in i?j0(i,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[n]=r;var np=(i,n,r)=>k0(i,typeof n!="symbol"?n+"":n,r);(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))s(u);new MutationObserver(u=>{for(const c of u)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&s(f)}).observe(document,{childList:!0,subtree:!0});function r(u){const c={};return u.integrity&&(c.integrity=u.integrity),u.referrerPolicy&&(c.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?c.credentials="include":u.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function s(u){if(u.ep)return;u.ep=!0;const c=r(u);fetch(u.href,c)}})();var dc={exports:{}},Cr={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ap;function N0(){if(ap)return Cr;ap=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(s,u,c){var f=null;if(c!==void 0&&(f=""+c),u.key!==void 0&&(f=""+u.key),"key"in u){c={};for(var d in u)d!=="key"&&(c[d]=u[d])}else c=u;return u=c.ref,{$$typeof:i,type:s,key:f,ref:u!==void 0?u:null,props:c}}return Cr.Fragment=n,Cr.jsx=r,Cr.jsxs=r,Cr}var ip;function U0(){return ip||(ip=1,dc.exports=N0()),dc.exports}var w=U0(),mc={exports:{}},ie={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var rp;function D0(){if(rp)return ie;rp=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),_=Symbol.iterator;function S(x){return x===null||typeof x!="object"?null:(x=_&&x[_]||x["@@iterator"],typeof x=="function"?x:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,U={};function L(x,q,P){this.props=x,this.context=q,this.refs=U,this.updater=P||R}L.prototype.isReactComponent={},L.prototype.setState=function(x,q){if(typeof x!="object"&&typeof x!="function"&&x!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,x,q,"setState")},L.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function G(){}G.prototype=L.prototype;function $(x,q,P){this.props=x,this.context=q,this.refs=U,this.updater=P||R}var J=$.prototype=new G;J.constructor=$,O(J,L.prototype),J.isPureReactComponent=!0;var ae=Array.isArray;function W(){}var Y={H:null,A:null,T:null,S:null},Te=Object.prototype.hasOwnProperty;function Re(x,q,P){var Q=P.ref;return{$$typeof:i,type:x,key:q,ref:Q!==void 0?Q:null,props:P}}function Wt(x,q){return Re(x.type,q,x.props)}function Ct(x){return typeof x=="object"&&x!==null&&x.$$typeof===i}function nt(x){var q={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(P){return q[P]})}var Ft=/\/+/g;function jt(x,q){return typeof x=="object"&&x!==null&&x.key!=null?nt(""+x.key):q.toString(36)}function He(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(W,W):(x.status="pending",x.then(function(q){x.status==="pending"&&(x.status="fulfilled",x.value=q)},function(q){x.status==="pending"&&(x.status="rejected",x.reason=q)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function M(x,q,P,Q,re){var ue=typeof x;(ue==="undefined"||ue==="boolean")&&(x=null);var ye=!1;if(x===null)ye=!0;else switch(ue){case"bigint":case"string":case"number":ye=!0;break;case"object":switch(x.$$typeof){case i:case n:ye=!0;break;case y:return ye=x._init,M(ye(x._payload),q,P,Q,re)}}if(ye)return re=re(x),ye=Q===""?"."+jt(x,0):Q,ae(re)?(P="",ye!=null&&(P=ye.replace(Ft,"$&/")+"/"),M(re,q,P,"",function(zi){return zi})):re!=null&&(Ct(re)&&(re=Wt(re,P+(re.key==null||x&&x.key===re.key?"":(""+re.key).replace(Ft,"$&/")+"/")+ye)),q.push(re)),1;ye=0;var rt=Q===""?".":Q+":";if(ae(x))for(var ze=0;ze>>1,xe=M[_e];if(0>>1;_eu(P,ne))Qu(re,P)?(M[_e]=re,M[Q]=ne,_e=Q):(M[_e]=P,M[q]=ne,_e=q);else if(Qu(re,ne))M[_e]=re,M[Q]=ne,_e=Q;else break e}}return K}function u(M,K){var ne=M.sortIndex-K.sortIndex;return ne!==0?ne:M.id-K.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;i.unstable_now=function(){return c.now()}}else{var f=Date,d=f.now();i.unstable_now=function(){return f.now()-d}}var m=[],p=[],y=1,v=null,_=3,S=!1,R=!1,O=!1,U=!1,L=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function J(M){for(var K=r(p);K!==null;){if(K.callback===null)s(p);else if(K.startTime<=M)s(p),K.sortIndex=K.expirationTime,n(m,K);else break;K=r(p)}}function ae(M){if(O=!1,J(M),!R)if(r(m)!==null)R=!0,W||(W=!0,nt());else{var K=r(p);K!==null&&He(ae,K.startTime-M)}}var W=!1,Y=-1,Te=5,Re=-1;function Wt(){return U?!0:!(i.unstable_now()-ReM&&Wt());){var _e=v.callback;if(typeof _e=="function"){v.callback=null,_=v.priorityLevel;var xe=_e(v.expirationTime<=M);if(M=i.unstable_now(),typeof xe=="function"){v.callback=xe,J(M),K=!0;break t}v===r(m)&&s(m),J(M)}else s(m);v=r(m)}if(v!==null)K=!0;else{var x=r(p);x!==null&&He(ae,x.startTime-M),K=!1}}break e}finally{v=null,_=ne,S=!1}K=void 0}}finally{K?nt():W=!1}}}var nt;if(typeof $=="function")nt=function(){$(Ct)};else if(typeof MessageChannel<"u"){var Ft=new MessageChannel,jt=Ft.port2;Ft.port1.onmessage=Ct,nt=function(){jt.postMessage(null)}}else nt=function(){L(Ct,0)};function He(M,K){Y=L(function(){M(i.unstable_now())},K)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(M){M.callback=null},i.unstable_forceFrameRate=function(M){0>M||125_e?(M.sortIndex=ne,n(p,M),r(m)===null&&M===r(p)&&(O?(G(Y),Y=-1):O=!0,He(ae,ne-_e))):(M.sortIndex=xe,n(m,M),R||S||(R=!0,W||(W=!0,nt()))),M},i.unstable_shouldYield=Wt,i.unstable_wrapCallback=function(M){var K=_;return function(){var ne=_;_=K;try{return M.apply(this,arguments)}finally{_=ne}}}})(yc)),yc}var up;function z0(){return up||(up=1,gc.exports=L0()),gc.exports}var vc={exports:{}},at={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var op;function M0(){if(op)return at;op=1;var i=Vc();function n(m){var p="https://react.dev/errors/"+m;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(n){console.error(n)}}return i(),vc.exports=M0(),vc.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var hp;function H0(){if(hp)return jr;hp=1;var i=z0(),n=Vc(),r=B0();function s(e){var t="https://react.dev/errors/"+e;if(1xe||(e.current=_e[xe],_e[xe]=null,xe--)}function P(e,t){xe++,_e[xe]=e.current,e.current=t}var Q=x(null),re=x(null),ue=x(null),ye=x(null);function rt(e,t){switch(P(ue,t),P(re,e),P(Q,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?xm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=xm(t),e=Am(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(Q),P(Q,e)}function ze(){q(Q),q(re),q(ue)}function zi(e){e.memoizedState!==null&&P(ye,e);var t=Q.current,a=Am(t,e.type);t!==a&&(P(re,e),P(Q,a))}function Qr(e){re.current===e&&(q(Q),q(re)),ye.current===e&&(q(ye),xr._currentValue=ne)}var Jl,eh;function ca(e){if(Jl===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Jl=t&&t[1]||"",eh=-1)":-1o||E[l]!==j[o]){var z=` `+E[l].replace(" at new "," at ");return e.displayName&&z.includes("")&&(z=z.replace("",e.displayName)),z}while(1<=l&&0<=o);break}}}finally{Xl=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?ca(a):""}function ly(e,t){switch(e.tag){case 26:case 27:case 5:return ca(e.type);case 16:return ca("Lazy");case 13:return e.child!==t&&t!==null?ca("Suspense Fallback"):ca("Suspense");case 19:return ca("SuspenseList");case 0:case 15:return Ql(e.type,!1);case 11:return Ql(e.type.render,!1);case 1:return Ql(e.type,!0);case 31:return ca("Activity");default:return""}}function th(e){try{var t="",a=null;do t+=ly(e,a),a=e,e=e.return;while(e);return t}catch(l){return` Error generating stack: `+l.message+` `+l.stack}}var Zl=Object.prototype.hasOwnProperty,Wl=i.unstable_scheduleCallback,Fl=i.unstable_cancelCallback,uy=i.unstable_shouldYield,oy=i.unstable_requestPaint,yt=i.unstable_now,cy=i.unstable_getCurrentPriorityLevel,nh=i.unstable_ImmediatePriority,ah=i.unstable_UserBlockingPriority,Zr=i.unstable_NormalPriority,hy=i.unstable_LowPriority,ih=i.unstable_IdlePriority,fy=i.log,dy=i.unstable_setDisableYieldValue,Mi=null,vt=null;function Ln(e){if(typeof fy=="function"&&dy(e),vt&&typeof vt.setStrictMode=="function")try{vt.setStrictMode(Mi,e)}catch{}}var bt=Math.clz32?Math.clz32:gy,my=Math.log,py=Math.LN2;function gy(e){return e>>>=0,e===0?32:31-(my(e)/py|0)|0}var Wr=256,Fr=262144,es=4194304;function ha(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ts(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var o=0,h=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var b=l&134217727;return b!==0?(l=b&~h,l!==0?o=ha(l):(g&=b,g!==0?o=ha(g):a||(a=b&~e,a!==0&&(o=ha(a))))):(b=l&~h,b!==0?o=ha(b):g!==0?o=ha(g):a||(a=l&~e,a!==0&&(o=ha(a)))),o===0?0:t!==0&&t!==o&&(t&h)===0&&(h=o&-o,a=t&-t,h>=a||h===32&&(a&4194048)!==0)?t:o}function Bi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function yy(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function rh(){var e=es;return es<<=1,(es&62914560)===0&&(es=4194304),e}function eu(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Hi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function vy(e,t,a,l,o,h){var g=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var b=e.entanglements,E=e.expirationTimes,j=e.hiddenUpdates;for(a=g&~a;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Ty=/[\n"\\]/g;function Nt(e){return e.replace(Ty,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function su(e,t,a,l,o,h,g,b){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+kt(t)):e.value!==""+kt(t)&&(e.value=""+kt(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?lu(e,g,kt(t)):a!=null?lu(e,g,kt(a)):l!=null&&e.removeAttribute("value"),o==null&&h!=null&&(e.defaultChecked=!!h),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+kt(b):e.removeAttribute("name")}function vh(e,t,a,l,o,h,g,b){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),t!=null||a!=null){if(!(h!=="submit"&&h!=="reset"||t!=null)){ru(e);return}a=a!=null?""+kt(a):"",t=t!=null?""+kt(t):a,b||t===e.value||(e.value=t),e.defaultValue=t}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=b?e.checked:!!l,e.defaultChecked=!!l,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),ru(e)}function lu(e,t,a){t==="number"&&is(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ha(e,t,a,l){if(e=e.options,t){t={};for(var o=0;o"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fu=!1;if(fn)try{var Vi={};Object.defineProperty(Vi,"passive",{get:function(){fu=!0}}),window.addEventListener("test",Vi,Vi),window.removeEventListener("test",Vi,Vi)}catch{fu=!1}var Mn=null,du=null,ss=null;function xh(){if(ss)return ss;var e,t=du,a=t.length,l,o="value"in Mn?Mn.value:Mn.textContent,h=o.length;for(e=0;e=Yi),kh=" ",Nh=!1;function Uh(e,t){switch(e){case"keyup":return Wy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Va=!1;function ev(e,t){switch(e){case"compositionend":return Dh(t);case"keypress":return t.which!==32?null:(Nh=!0,kh);case"textInput":return e=t.data,e===kh&&Nh?null:e;default:return null}}function tv(e,t){if(Va)return e==="compositionend"||!vu&&Uh(e,t)?(e=xh(),ss=du=Mn=null,Va=!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:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Gh(a)}}function Kh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Kh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ph(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=is(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=is(e.document)}return t}function wu(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")}var ov=fn&&"documentMode"in document&&11>=document.documentMode,Ka=null,Su=null,Qi=null,Eu=!1;function Yh(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Eu||Ka==null||Ka!==is(l)||(l=Ka,"selectionStart"in l&&wu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Qi&&Xi(Qi,l)||(Qi=l,l=Fs(Su,"onSelect"),0>=g,o-=g,en=1<<32-bt(t)+o|a<le?(fe=Z,Z=null):fe=Z.sibling;var pe=N(A,Z,C[le],B);if(pe===null){Z===null&&(Z=fe);break}e&&Z&&pe.alternate===null&&t(A,Z),T=h(pe,T,le),me===null?F=pe:me.sibling=pe,me=pe,Z=fe}if(le===C.length)return a(A,Z),de&&mn(A,le),F;if(Z===null){for(;lele?(fe=Z,Z=null):fe=Z.sibling;var ra=N(A,Z,pe.value,B);if(ra===null){Z===null&&(Z=fe);break}e&&Z&&ra.alternate===null&&t(A,Z),T=h(ra,T,le),me===null?F=ra:me.sibling=ra,me=ra,Z=fe}if(pe.done)return a(A,Z),de&&mn(A,le),F;if(Z===null){for(;!pe.done;le++,pe=C.next())pe=H(A,pe.value,B),pe!==null&&(T=h(pe,T,le),me===null?F=pe:me.sibling=pe,me=pe);return de&&mn(A,le),F}for(Z=l(Z);!pe.done;le++,pe=C.next())pe=D(Z,A,le,pe.value,B),pe!==null&&(e&&pe.alternate!==null&&Z.delete(pe.key===null?le:pe.key),T=h(pe,T,le),me===null?F=pe:me.sibling=pe,me=pe);return e&&Z.forEach(function(C0){return t(A,C0)}),de&&mn(A,le),F}function Ee(A,T,C,B){if(typeof C=="object"&&C!==null&&C.type===O&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case S:e:{for(var F=C.key;T!==null;){if(T.key===F){if(F=C.type,F===O){if(T.tag===7){a(A,T.sibling),B=o(T,C.props.children),B.return=A,A=B;break e}}else if(T.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===Te&&Sa(F)===T.type){a(A,T.sibling),B=o(T,C.props),nr(B,C),B.return=A,A=B;break e}a(A,T);break}else t(A,T);T=T.sibling}C.type===O?(B=ya(C.props.children,A.mode,B,C.key),B.return=A,A=B):(B=gs(C.type,C.key,C.props,null,A.mode,B),nr(B,C),B.return=A,A=B)}return g(A);case R:e:{for(F=C.key;T!==null;){if(T.key===F)if(T.tag===4&&T.stateNode.containerInfo===C.containerInfo&&T.stateNode.implementation===C.implementation){a(A,T.sibling),B=o(T,C.children||[]),B.return=A,A=B;break e}else{a(A,T);break}else t(A,T);T=T.sibling}B=ju(C,A.mode,B),B.return=A,A=B}return g(A);case Te:return C=Sa(C),Ee(A,T,C,B)}if(He(C))return I(A,T,C,B);if(nt(C)){if(F=nt(C),typeof F!="function")throw Error(s(150));return C=F.call(C),te(A,T,C,B)}if(typeof C.then=="function")return Ee(A,T,Es(C),B);if(C.$$typeof===$)return Ee(A,T,bs(A,C),B);Ts(A,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,T!==null&&T.tag===6?(a(A,T.sibling),B=o(T,C),B.return=A,A=B):(a(A,T),B=Cu(C,A.mode,B),B.return=A,A=B),g(A)):a(A,T)}return function(A,T,C,B){try{tr=0;var F=Ee(A,T,C,B);return ti=null,F}catch(Z){if(Z===ei||Z===ws)throw Z;var me=wt(29,Z,null,A.mode);return me.lanes=B,me.return=A,me}finally{}}}var Ta=gf(!0),yf=gf(!1),Gn=!1;function Gu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Vu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Vn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Kn(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(ge&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=ps(e),Fh(e,null,a),t}return ms(e,l,t,a),ps(e)}function ar(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,lh(e,a)}}function Ku(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var o=null,h=null;if(a=a.firstBaseUpdate,a!==null){do{var g={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};h===null?o=h=g:h=h.next=g,a=a.next}while(a!==null);h===null?o=h=t:h=h.next=t}else o=h=t;a={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:h,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Pu=!1;function ir(){if(Pu){var e=Fa;if(e!==null)throw e}}function rr(e,t,a,l){Pu=!1;var o=e.updateQueue;Gn=!1;var h=o.firstBaseUpdate,g=o.lastBaseUpdate,b=o.shared.pending;if(b!==null){o.shared.pending=null;var E=b,j=E.next;E.next=null,g===null?h=j:g.next=j,g=E;var z=e.alternate;z!==null&&(z=z.updateQueue,b=z.lastBaseUpdate,b!==g&&(b===null?z.firstBaseUpdate=j:b.next=j,z.lastBaseUpdate=E))}if(h!==null){var H=o.baseState;g=0,z=j=E=null,b=h;do{var N=b.lane&-536870913,D=N!==b.lane;if(D?(he&N)===N:(l&N)===N){N!==0&&N===Wa&&(Pu=!0),z!==null&&(z=z.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var I=e,te=b;N=t;var Ee=a;switch(te.tag){case 1:if(I=te.payload,typeof I=="function"){H=I.call(Ee,H,N);break e}H=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=te.payload,N=typeof I=="function"?I.call(Ee,H,N):I,N==null)break e;H=v({},H,N);break e;case 2:Gn=!0}}N=b.callback,N!==null&&(e.flags|=64,D&&(e.flags|=8192),D=o.callbacks,D===null?o.callbacks=[N]:D.push(N))}else D={lane:N,tag:b.tag,payload:b.payload,callback:b.callback,next:null},z===null?(j=z=D,E=H):z=z.next=D,g|=N;if(b=b.next,b===null){if(b=o.shared.pending,b===null)break;D=b,b=D.next,D.next=null,o.lastBaseUpdate=D,o.shared.pending=null}}while(!0);z===null&&(E=H),o.baseState=E,o.firstBaseUpdate=j,o.lastBaseUpdate=z,h===null&&(o.shared.lanes=0),Xn|=g,e.lanes=g,e.memoizedState=H}}function vf(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function bf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;eh?h:8;var g=M.T,b={};M.T=b,co(e,!1,t,a);try{var E=o(),j=M.S;if(j!==null&&j(b,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var z=vv(E,l);ur(e,t,z,At(e))}else ur(e,t,l,At(e))}catch(H){ur(e,t,{then:function(){},status:"rejected",reason:H},At())}finally{K.p=h,g!==null&&b.types!==null&&(g.types=b.types),M.T=g}}function Tv(){}function uo(e,t,a,l){if(e.tag!==5)throw Error(s(476));var o=Zf(e).queue;Qf(e,o,t,ne,a===null?Tv:function(){return Wf(e),a(l)})}function Zf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vn,lastRenderedState:ne},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Wf(e){var t=Zf(e);t.next===null&&(t=e.alternate.memoizedState),ur(e,t.next.queue,{},At())}function oo(){return We(xr)}function Ff(){return Be().memoizedState}function ed(){return Be().memoizedState}function xv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=At();e=Vn(a);var l=Kn(t,e,a);l!==null&&(dt(l,t,a),ar(l,t,a)),t={cache:Bu()},e.payload=t;return}t=t.return}}function Av(e,t,a){var l=At();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ds(e)?nd(t,a):(a=Ru(e,t,a,l),a!==null&&(dt(a,e,l),ad(a,t,l)))}function td(e,t,a){var l=At();ur(e,t,a,l)}function ur(e,t,a,l){var o={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ds(e))nd(t,o);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=t.lastRenderedReducer,h!==null))try{var g=t.lastRenderedState,b=h(g,a);if(o.hasEagerState=!0,o.eagerState=b,_t(b,g))return ms(e,t,o,0),Ae===null&&ds(),!1}catch{}finally{}if(a=Ru(e,t,o,l),a!==null)return dt(a,e,l),ad(a,t,l),!0}return!1}function co(e,t,a,l){if(l={lane:2,revertLane:Vo(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ds(e)){if(t)throw Error(s(479))}else t=Ru(e,a,l,2),t!==null&&dt(t,e,2)}function Ds(e){var t=e.alternate;return e===se||t!==null&&t===se}function nd(e,t){ai=Rs=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function ad(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,lh(e,a)}}var or={readContext:We,use:js,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useLayoutEffect:Ue,useInsertionEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useSyncExternalStore:Ue,useId:Ue,useHostTransitionStatus:Ue,useFormState:Ue,useActionState:Ue,useOptimistic:Ue,useMemoCache:Ue,useCacheRefresh:Ue};or.useEffectEvent=Ue;var id={readContext:We,use:js,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:We,useEffect:qf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ns(4194308,4,Pf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ns(4194308,4,e,t)},useInsertionEffect:function(e,t){Ns(4,2,e,t)},useMemo:function(e,t){var a=st();t=t===void 0?null:t;var l=e();if(xa){Ln(!0);try{e()}finally{Ln(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=st();if(a!==void 0){var o=a(t);if(xa){Ln(!0);try{a(t)}finally{Ln(!1)}}}else o=t;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=Av.bind(null,se,e),[l.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:function(e){e=ao(e);var t=e.queue,a=td.bind(null,se,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:so,useDeferredValue:function(e,t){var a=st();return lo(a,e,t)},useTransition:function(){var e=ao(!1);return e=Qf.bind(null,se,e.queue,!0,!1),st().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=se,o=st();if(de){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Ae===null)throw Error(s(349));(he&127)!==0||xf(l,t,a)}o.memoizedState=a;var h={value:a,getSnapshot:t};return o.queue=h,qf(Rf.bind(null,l,h,e),[e]),l.flags|=2048,ri(9,{destroy:void 0},Af.bind(null,l,h,a,t),null),a},useId:function(){var e=st(),t=Ae.identifierPrefix;if(de){var a=tn,l=en;a=(l&~(1<<32-bt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Os++,0<\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof l.is=="string"?g.createElement("select",{is:l.is}):g.createElement("select"),l.multiple?h.multiple=!0:l.size&&(h.size=l.size);break;default:h=typeof l.is=="string"?g.createElement(o,{is:l.is}):g.createElement(o)}}h[Qe]=t,h[lt]=l;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)h.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=h;e:switch(et(h,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&_n(t)}}return je(t),xo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&_n(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=ue.current,Qa(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,o=Ze,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[Qe]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Em(e.nodeValue,a)),e||$n(t,!0)}else e=el(e).createTextNode(l),e[Qe]=t,t.stateNode=e}return je(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Qa(t),a!==null){if(e===null){if(!l)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[Qe]=t}else va(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;je(t),e=!1}else a=Du(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Et(t),t):(Et(t),null);if((t.flags&128)!==0)throw Error(s(558))}return je(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Qa(t),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[Qe]=t}else va(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;je(t),o=!1}else o=Du(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Et(t),t):(Et(t),null)}return Et(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),h=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),h!==o&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Hs(t,t.updateQueue),je(t),null);case 4:return ze(),e===null&&Io(t.stateNode.containerInfo),je(t),null;case 10:return gn(t.type),je(t),null;case 19:if(q(Me),l=t.memoizedState,l===null)return je(t),null;if(o=(t.flags&128)!==0,h=l.rendering,h===null)if(o)hr(l,!1);else{if(De!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(h=As(e),h!==null){for(t.flags|=128,hr(l,!1),e=h.updateQueue,t.updateQueue=e,Hs(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)ef(a,e),a=a.sibling;return P(Me,Me.current&1|2),de&&mn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&yt()>Ks&&(t.flags|=128,o=!0,hr(l,!1),t.lanes=4194304)}else{if(!o)if(e=As(h),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Hs(t,e),hr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!h.alternate&&!de)return je(t),null}else 2*yt()-l.renderingStartTime>Ks&&a!==536870912&&(t.flags|=128,o=!0,hr(l,!1),t.lanes=4194304);l.isBackwards?(h.sibling=t.child,t.child=h):(e=l.last,e!==null?e.sibling=h:t.child=h,l.last=h)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=yt(),e.sibling=null,a=Me.current,P(Me,o?a&1|2:a&1),de&&mn(t,l.treeForkCount),e):(je(t),null);case 22:case 23:return Et(t),Iu(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(je(t),t.subtreeFlags&6&&(t.flags|=8192)):je(t),a=t.updateQueue,a!==null&&Hs(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&q(wa),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),gn($e),je(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function kv(e,t){switch(Nu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return gn($e),ze(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Qr(t),null;case 31:if(t.memoizedState!==null){if(Et(t),t.alternate===null)throw Error(s(340));va()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Et(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));va()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Me),null;case 4:return ze(),null;case 10:return gn(t.type),null;case 22:case 23:return Et(t),Iu(),e!==null&&q(wa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return gn($e),null;case 25:return null;default:return null}}function Od(e,t){switch(Nu(t),t.tag){case 3:gn($e),ze();break;case 26:case 27:case 5:Qr(t);break;case 4:ze();break;case 31:t.memoizedState!==null&&Et(t);break;case 13:Et(t);break;case 19:q(Me);break;case 10:gn(t.type);break;case 22:case 23:Et(t),Iu(),e!==null&&q(wa);break;case 24:gn($e)}}function fr(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var o=l.next;a=o;do{if((a.tag&e)===e){l=void 0;var h=a.create,g=a.inst;l=h(),g.destroy=l}a=a.next}while(a!==o)}}catch(b){be(t,t.return,b)}}function In(e,t,a){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var h=o.next;l=h;do{if((l.tag&e)===e){var g=l.inst,b=g.destroy;if(b!==void 0){g.destroy=void 0,o=t;var E=a,j=b;try{j()}catch(z){be(o,E,z)}}}l=l.next}while(l!==h)}}catch(z){be(t,t.return,z)}}function Cd(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{bf(t,a)}catch(l){be(e,e.return,l)}}}function jd(e,t,a){a.props=Aa(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){be(e,t,l)}}function dr(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(o){be(e,t,o)}}function nn(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(o){be(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){be(e,t,o)}else a.current=null}function kd(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(o){be(e,e.return,o)}}function Ao(e,t,a){try{var l=e.stateNode;Fv(l,e.type,a,t),l[lt]=t}catch(o){be(e,e.return,o)}}function Nd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ea(e.type)||e.tag===4}function Ro(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Nd(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.tag===27&&ea(e.type)||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 Oo(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=hn));else if(l!==4&&(l===27&&ea(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Oo(e,t,a),e=e.sibling;e!==null;)Oo(e,t,a),e=e.sibling}function $s(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&ea(e.type)&&(a=e.stateNode),e=e.child,e!==null))for($s(e,t,a),e=e.sibling;e!==null;)$s(e,t,a),e=e.sibling}function Ud(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);et(t,l,a),t[Qe]=e,t[lt]=a}catch(h){be(e,e.return,h)}}var wn=!1,Ve=!1,Co=!1,Dd=typeof WeakSet=="function"?WeakSet:Set,Je=null;function Nv(e,t){if(e=e.containerInfo,Qo=ll,e=Ph(e),wu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var o=l.anchorOffset,h=l.focusNode;l=l.focusOffset;try{a.nodeType,h.nodeType}catch{a=null;break e}var g=0,b=-1,E=-1,j=0,z=0,H=e,N=null;t:for(;;){for(var D;H!==a||o!==0&&H.nodeType!==3||(b=g+o),H!==h||l!==0&&H.nodeType!==3||(E=g+l),H.nodeType===3&&(g+=H.nodeValue.length),(D=H.firstChild)!==null;)N=H,H=D;for(;;){if(H===e)break t;if(N===a&&++j===o&&(b=g),N===h&&++z===l&&(E=g),(D=H.nextSibling)!==null)break;H=N,N=H.parentNode}H=D}a=b===-1||E===-1?null:{start:b,end:E}}else a=null}a=a||{start:0,end:0}}else a=null;for(Zo={focusedElem:e,selectionRange:a},ll=!1,Je=t;Je!==null;)if(t=Je,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Je=e;else for(;Je!==null;){switch(t=Je,h=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a title"))),et(h,l,a),h[Qe]=e,Ie(h),l=h;break e;case"link":var g=$m("link","href",o).get(l+(a.href||""));if(g){for(var b=0;bEe&&(g=Ee,Ee=te,te=g);var A=Vh(b,te),T=Vh(b,Ee);if(A&&T&&(D.rangeCount!==1||D.anchorNode!==A.node||D.anchorOffset!==A.offset||D.focusNode!==T.node||D.focusOffset!==T.offset)){var C=H.createRange();C.setStart(A.node,A.offset),D.removeAllRanges(),te>Ee?(D.addRange(C),D.extend(T.node,T.offset)):(C.setEnd(T.node,T.offset),D.addRange(C))}}}}for(H=[],D=b;D=D.parentNode;)D.nodeType===1&&H.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;ba?32:a,M.T=null,a=zo,zo=null;var h=Zn,g=An;if(Pe=0,ci=Zn=null,An=0,(ge&6)!==0)throw Error(s(331));var b=ge;if(ge|=4,Pd(h.current),Gd(h,h.current,g,a),ge=b,br(0,!1),vt&&typeof vt.onPostCommitFiberRoot=="function")try{vt.onPostCommitFiberRoot(Mi,h)}catch{}return!0}finally{K.p=o,M.T=l,om(e,t)}}function hm(e,t,a){t=Dt(a,t),t=po(e.stateNode,t,2),e=Kn(e,t,2),e!==null&&(Hi(e,2),an(e))}function be(e,t,a){if(e.tag===3)hm(e,e,a);else for(;t!==null;){if(t.tag===3){hm(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Qn===null||!Qn.has(l))){e=Dt(a,e),a=fd(2),l=Kn(t,a,2),l!==null&&(dd(a,l,t,e),Hi(l,2),an(l));break}}t=t.return}}function $o(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new Lv;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(a)||(No=!0,o.add(a),e=$v.bind(null,e,t,a),t.then(e,e))}function $v(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ae===e&&(he&a)===a&&(De===4||De===3&&(he&62914560)===he&&300>yt()-Vs?(ge&2)===0&&hi(e,0):Uo|=a,oi===he&&(oi=0)),an(e)}function fm(e,t){t===0&&(t=rh()),e=ga(e,t),e!==null&&(Hi(e,t),an(e))}function qv(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),fm(e,a)}function Gv(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),fm(e,a)}function Vv(e,t){return Wl(e,t)}var Qs=null,di=null,qo=!1,Zs=!1,Go=!1,Fn=0;function an(e){e!==di&&e.next===null&&(di===null?Qs=di=e:di=di.next=e),Zs=!0,qo||(qo=!0,Pv())}function br(e,t){if(!Go&&Zs){Go=!0;do for(var a=!1,l=Qs;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var h=0;else{var g=l.suspendedLanes,b=l.pingedLanes;h=(1<<31-bt(42|e)+1)-1,h&=o&~(g&~b),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(a=!0,gm(l,h))}else h=he,h=ts(l,l===Ae?h:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(h&3)===0||Bi(l,h)||(a=!0,gm(l,h));l=l.next}while(a);Go=!1}}function Kv(){dm()}function dm(){Zs=qo=!1;var e=0;Fn!==0&&t0()&&(e=Fn);for(var t=yt(),a=null,l=Qs;l!==null;){var o=l.next,h=mm(l,t);h===0?(l.next=null,a===null?Qs=o:a.next=o,o===null&&(di=a)):(a=l,(e!==0||(h&3)!==0)&&(Zs=!0)),l=o}Pe!==0&&Pe!==5||br(e),Fn!==0&&(Fn=0)}function mm(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,h=e.pendingLanes&-62914561;0b)break;var z=E.transferSize,H=E.initiatorType;z&&Tm(H)&&(E=E.responseEnd,g+=z*(E"u"?null:document;function zm(e,t,a){var l=mi;if(l&&typeof t=="string"&&t){var o=Nt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),Lm.has(o)||(Lm.add(o),e={rel:e,crossOrigin:a,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),et(t,"link",e),Ie(t),l.head.appendChild(t)))}}function c0(e){Rn.D(e),zm("dns-prefetch",e,null)}function h0(e,t){Rn.C(e,t),zm("preconnect",e,t)}function f0(e,t,a){Rn.L(e,t,a);var l=mi;if(l&&e&&t){var o='link[rel="preload"][as="'+Nt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+Nt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+Nt(a.imageSizes)+'"]')):o+='[href="'+Nt(e)+'"]';var h=o;switch(t){case"style":h=pi(e);break;case"script":h=gi(e)}$t.has(h)||(e=v({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),$t.set(h,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(Er(h))||t==="script"&&l.querySelector(Tr(h))||(t=l.createElement("link"),et(t,"link",e),Ie(t),l.head.appendChild(t)))}}function d0(e,t){Rn.m(e,t);var a=mi;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Nt(l)+'"][href="'+Nt(e)+'"]',h=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=gi(e)}if(!$t.has(h)&&(e=v({rel:"modulepreload",href:e},t),$t.set(h,e),a.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Tr(h)))return}l=a.createElement("link"),et(l,"link",e),Ie(l),a.head.appendChild(l)}}}function m0(e,t,a){Rn.S(e,t,a);var l=mi;if(l&&e){var o=Ma(l).hoistableStyles,h=pi(e);t=t||"default";var g=o.get(h);if(!g){var b={loading:0,preload:null};if(g=l.querySelector(Er(h)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},a),(a=$t.get(h))&&ic(e,a);var E=g=l.createElement("link");Ie(E),et(E,"link",e),E._p=new Promise(function(j,z){E.onload=j,E.onerror=z}),E.addEventListener("load",function(){b.loading|=1}),E.addEventListener("error",function(){b.loading|=2}),b.loading|=4,nl(g,t,l)}g={type:"stylesheet",instance:g,count:1,state:b},o.set(h,g)}}}function p0(e,t){Rn.X(e,t);var a=mi;if(a&&e){var l=Ma(a).hoistableScripts,o=gi(e),h=l.get(o);h||(h=a.querySelector(Tr(o)),h||(e=v({src:e,async:!0},t),(t=$t.get(o))&&rc(e,t),h=a.createElement("script"),Ie(h),et(h,"link",e),a.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(o,h))}}function g0(e,t){Rn.M(e,t);var a=mi;if(a&&e){var l=Ma(a).hoistableScripts,o=gi(e),h=l.get(o);h||(h=a.querySelector(Tr(o)),h||(e=v({src:e,async:!0,type:"module"},t),(t=$t.get(o))&&rc(e,t),h=a.createElement("script"),Ie(h),et(h,"link",e),a.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(o,h))}}function Mm(e,t,a,l){var o=(o=ue.current)?tl(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=pi(a.href),a=Ma(o).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=pi(a.href);var h=Ma(o).hoistableStyles,g=h.get(e);if(g||(o=o.ownerDocument||o,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,g),(h=o.querySelector(Er(e)))&&!h._p&&(g.instance=h,g.state.loading=5),$t.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},$t.set(e,a),h||y0(o,e,a,g.state))),t&&l===null)throw Error(s(528,""));return g}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=gi(a),a=Ma(o).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function pi(e){return'href="'+Nt(e)+'"'}function Er(e){return'link[rel="stylesheet"]['+e+"]"}function Bm(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function y0(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),et(t,"link",a),Ie(t),e.head.appendChild(t))}function gi(e){return'[src="'+Nt(e)+'"]'}function Tr(e){return"script[async]"+e}function Hm(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Nt(a.href)+'"]');if(l)return t.instance=l,Ie(l),l;var o=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Ie(l),et(l,"style",o),nl(l,a.precedence,e),t.instance=l;case"stylesheet":o=pi(a.href);var h=e.querySelector(Er(o));if(h)return t.state.loading|=4,t.instance=h,Ie(h),h;l=Bm(a),(o=$t.get(o))&&ic(l,o),h=(e.ownerDocument||e).createElement("link"),Ie(h);var g=h;return g._p=new Promise(function(b,E){g.onload=b,g.onerror=E}),et(h,"link",l),t.state.loading|=4,nl(h,a.precedence,e),t.instance=h;case"script":return h=gi(a.src),(o=e.querySelector(Tr(h)))?(t.instance=o,Ie(o),o):(l=a,(o=$t.get(h))&&(l=v({},a),rc(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),Ie(o),et(o,"link",l),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,nl(l,a.precedence,e));return t.instance}function nl(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,h=o,g=0;g title"):null)}function v0(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Gm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function b0(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=pi(l.href),h=t.querySelector(Er(o));if(h){t=h._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=il.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=h,Ie(h);return}h=t.ownerDocument||t,l=Bm(l),(o=$t.get(o))&&ic(l,o),h=h.createElement("link"),Ie(h);var g=h;g._p=new Promise(function(b,E){g.onload=b,g.onerror=E}),et(h,"link",l),a.instance=h}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=il.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var sc=0;function _0(e,t){return e.stylesheets&&e.count===0&&sl(e,e.stylesheets),0sc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function il(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)sl(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var rl=null;function sl(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,rl=new Map,t.forEach(w0,e),rl=null,il.call(e))}function w0(e,t){if(!(t.state.loading&4)){var a=rl.get(e);if(a)var l=a.get(null);else{a=new Map,rl.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(n){console.error(n)}}return i(),pc.exports=H0(),pc.exports}var q0=$0();/** * react-router v7.18.2 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */var Kc=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,lg=/^[\\/]{2}/;function G0(i,n){return n+i.replace(/\\/g,"/")}var dp="popstate";function mp(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function V0(i={}){function n(s,u){var p;let c=(p=u.state)==null?void 0:p.masked,{pathname:f,search:d,hash:m}=c||s.location;return jc("",{pathname:f,search:d,hash:m},u.state&&u.state.usr||null,u.state&&u.state.key||"default",c?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function r(s,u){return typeof u=="string"?u:Mr(u)}return P0(n,r,null,i)}function Ne(i,n){if(i===!1||i===null||typeof i>"u")throw new Error(n)}function Zt(i,n){if(!i){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function K0(){return Math.random().toString(36).substring(2,10)}function pp(i,n){return{usr:i.state,key:i.key,idx:n,masked:i.mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function jc(i,n,r=null,s,u){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof n=="string"?ji(n):n,state:r,key:n&&n.key||s||K0(),mask:u}}function Mr({pathname:i="/",search:n="",hash:r=""}){return n&&n!=="?"&&(i+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(i+=r.charAt(0)==="#"?r:"#"+r),i}function ji(i){let n={};if(i){let r=i.indexOf("#");r>=0&&(n.hash=i.substring(r),i=i.substring(0,r));let s=i.indexOf("?");s>=0&&(n.search=i.substring(s),i=i.substring(0,s)),i&&(n.pathname=i)}return n}function P0(i,n,r,s={}){let{window:u=document.defaultView,v5Compat:c=!1}=s,f=u.history,d="POP",m=null,p=y();p==null&&(p=0,f.replaceState({...f.state,idx:p},""));function y(){return(f.state||{idx:null}).idx}function v(){d="POP";let U=y(),L=U==null?null:U-p;p=U,m&&m({action:d,location:O.location,delta:L})}function _(U,L){d="PUSH";let G=mp(U)?U:jc(O.location,U,L);p=y()+1;let $=pp(G,p),J=O.createHref(G.mask||G);try{f.pushState($,"",J)}catch(ae){if(ae instanceof DOMException&&ae.name==="DataCloneError")throw ae;u.location.assign(J)}c&&m&&m({action:d,location:O.location,delta:1})}function S(U,L){d="REPLACE";let G=mp(U)?U:jc(O.location,U,L);p=y();let $=pp(G,p),J=O.createHref(G.mask||G);f.replaceState($,"",J),c&&m&&m({action:d,location:O.location,delta:0})}function R(U){return Y0(u,U)}let O={get action(){return d},get location(){return i(u,f)},listen(U){if(m)throw new Error("A history only accepts one active listener");return u.addEventListener(dp,v),m=U,()=>{u.removeEventListener(dp,v),m=null}},createHref(U){return n(u,U)},createURL:R,encodeLocation(U){let L=R(U);return{pathname:L.pathname,search:L.search,hash:L.hash}},push:_,replace:S,go(U){return f.go(U)}};return O}function Y0(i,n,r=!1){let s="http://localhost";i&&(s=i.location.origin!=="null"?i.location.origin:i.location.href),Ne(s,"No window.location.(origin|href) available to create URL");let u=typeof n=="string"?n:Mr(n);return u=u.replace(/ $/,"%20"),!r&&lg.test(u)&&(u=s+u),new URL(u,s)}function ug(i,n,r="/"){return I0(i,n,r,!1)}function I0(i,n,r,s,u){let c=typeof n=="string"?ji(n):n,f=Dn(c.pathname||"/",r);if(f==null)return null;let d=J0(i),m=null,p=rb(f);for(let y=0;m==null&&y{let y={relativePath:p===void 0?f.path||"":p,caseSensitive:f.caseSensitive===!0,childrenIndex:d,route:f};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(s)&&m)return;Ne(y.relativePath.startsWith(s),`Absolute route path "${y.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(s.length)}let v=Qt([s,y.relativePath]),_=r.concat(y);f.children&&f.children.length>0&&(Ne(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),og(f.children,n,_,v,m)),!(f.path==null&&!f.index)&&n.push({path:v,score:nb(v,f.index),routesMeta:_.map((S,R)=>{let[O,U]=fg(S.relativePath,S.caseSensitive,R===_.length-1);return{...S,matcher:O,compiledParams:U}})})};return i.forEach((f,d)=>{var m;if(f.path===""||!((m=f.path)!=null&&m.includes("?")))c(f,d);else for(let p of cg(f.path))c(f,d,!0,p)}),n}function cg(i){let n=i.split("/");if(n.length===0)return[];let[r,...s]=n,u=r.endsWith("?"),c=r.replace(/\?$/,"");if(s.length===0)return u?[c,""]:[c];let f=cg(s.join("/")),d=[];return d.push(...f.map(m=>m===""?c:[c,m].join("/"))),u&&d.push(...f),d.map(m=>i.startsWith("/")&&m===""?"/":m)}function X0(i){i.sort((n,r)=>n.score!==r.score?r.score-n.score:ab(n.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}var Q0=/^:[\w-]+$/,Z0=3,W0=2,F0=1,eb=10,tb=-2,gp=i=>i==="*";function nb(i,n){let r=i.split("/"),s=r.length;return r.some(gp)&&(s+=tb),n&&(s+=W0),r.filter(u=>!gp(u)).reduce((u,c)=>u+(Q0.test(c)?Z0:c===""?F0:eb),s)}function ab(i,n){return i.length===n.length&&i.slice(0,-1).every((s,u)=>s===n[u])?i[i.length-1]-n[n.length-1]:0}function ib(i,n,r=!1){let{routesMeta:s}=i,u={},c="/",f=[];for(let d=0;d{if(y==="*"){let R=d[_]||"";f=c.slice(0,c.length-R.length).replace(/(.)\/+$/,"$1")}const S=d[_];return v&&!S?p[y]=void 0:p[y]=(S||"").replace(/%2F/g,"/"),p},{}),pathname:c,pathnameBase:f,pattern:i}}function fg(i,n=!1,r=!0){Zt(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let s=[],u="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,d,m,p,y)=>{if(s.push({paramName:d,isOptional:m!=null}),m){let v=y.charAt(p+f.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(s.push({paramName:"*"}),u+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?u+="\\/*$":i!==""&&i!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,n?void 0:"i"),s]}function rb(i){try{return i.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return Zt(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),i}}function Dn(i,n){if(n==="/")return i;if(!i.toLowerCase().startsWith(n.toLowerCase()))return null;let r=n.endsWith("/")?n.length-1:n.length,s=i.charAt(r);return s&&s!=="/"?null:i.slice(r)||"/"}function sb(i,n="/"){let{pathname:r,search:s="",hash:u=""}=typeof i=="string"?ji(i):i,c;return r?(r=dg(r),r.startsWith("/")?c=yp(r.substring(1),"/"):c=yp(r,n)):c=n,{pathname:c,search:ob(s),hash:cb(u)}}function yp(i,n){let r=Cl(n).split("/");return i.split("/").forEach(u=>{u===".."?r.length>1&&r.pop():u!=="."&&r.push(u)}),r.length>1?r.join("/"):"/"}function bc(i,n,r,s){return`Cannot include a '${i}' character in a manually specified \`to.${n}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function lb(i){return i.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function Pc(i){let n=lb(i);return n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase)}function $l(i,n,r,s=!1){let u;typeof i=="string"?u=ji(i):(u={...i},Ne(!u.pathname||!u.pathname.includes("?"),bc("?","pathname","search",u)),Ne(!u.pathname||!u.pathname.includes("#"),bc("#","pathname","hash",u)),Ne(!u.search||!u.search.includes("#"),bc("#","search","hash",u)));let c=i===""||u.pathname==="",f=c?"/":u.pathname,d;if(f==null)d=r;else{let v=n.length-1;if(!s&&f.startsWith("..")){let _=f.split("/");for(;_[0]==="..";)_.shift(),v-=1;u.pathname=_.join("/")}d=v>=0?n[v]:"/"}let m=sb(u,d),p=f&&f!=="/"&&f.endsWith("/"),y=(c||f===".")&&r.endsWith("/");return!m.pathname.endsWith("/")&&(p||y)&&(m.pathname+="/"),m}var dg=i=>i.replace(/[\\/]{2,}/g,"/"),Qt=i=>dg(i.join("/")),Cl=i=>i.replace(/\/+$/,""),ub=i=>Cl(i).replace(/^\/*/,"/"),ob=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,cb=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,hb=class{constructor(i,n,r,s=!1){this.status=i,this.statusText=n||"",this.internal=s,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function fb(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function db(i){let n=i.map(r=>r.route.path).filter(Boolean);return Qt(n)||"/"}var mg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function pg(i,n){let r=i;if(typeof r!="string"||!Kc.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let s=r,u=!1;if(mg)try{let c=new URL(window.location.href),f=lg.test(r)?new URL(G0(r,c.protocol)):new URL(r),d=Dn(f.pathname,n);f.origin===c.origin&&d!=null?r=d+f.search+f.hash:u=!0}catch{Zt(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:u,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var gg=["POST","PUT","PATCH","DELETE"];new Set(gg);var mb=["GET",...gg];new Set(mb);var pb=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function gb(i){try{return pb.includes(new URL(i).protocol)}catch{return!1}}var ki=k.createContext(null);ki.displayName="DataRouter";var ql=k.createContext(null);ql.displayName="DataRouterState";var yg=k.createContext(!1);function yb(){return k.useContext(yg)}var vg=k.createContext({isTransitioning:!1});vg.displayName="ViewTransition";var vb=k.createContext(new Map);vb.displayName="Fetchers";var bb=k.createContext(null);bb.displayName="Await";var Ot=k.createContext(null);Ot.displayName="Navigation";var Ir=k.createContext(null);Ir.displayName="Location";var Gt=k.createContext({outlet:null,matches:[],isDataRoute:!1});Gt.displayName="Route";var Yc=k.createContext(null);Yc.displayName="RouteError";var bg="REACT_ROUTER_ERROR",_b="REDIRECT",wb="ROUTE_ERROR_RESPONSE";function Sb(i){if(i.startsWith(`${bg}:${_b}:{`))try{let n=JSON.parse(i.slice(28));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.location=="string"&&typeof n.reloadDocument=="boolean"&&typeof n.replace=="boolean")return n}catch{}}function Eb(i){if(i.startsWith(`${bg}:${wb}:{`))try{let n=JSON.parse(i.slice(40));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string")return new hb(n.status,n.statusText,n.data)}catch{}}function Tb(i,{relative:n}={}){Ne(Ni(),"useHref() may be used only in the context of a component.");let{basename:r,navigator:s}=k.useContext(Ot),{hash:u,pathname:c,search:f}=Jr(i,{relative:n}),d=c;return r!=="/"&&(d=c==="/"?r:Qt([r,c])),s.createHref({pathname:d,search:f,hash:u})}function Ni(){return k.useContext(Ir)!=null}function un(){return Ne(Ni(),"useLocation() may be used only in the context of a component."),k.useContext(Ir).location}var _g="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function wg(i){k.useContext(Ot).static||k.useLayoutEffect(i)}function Sg(){let{isDataRoute:i}=k.useContext(Gt);return i?$b():xb()}function xb(){Ne(Ni(),"useNavigate() may be used only in the context of a component.");let i=k.useContext(ki),{basename:n,navigator:r}=k.useContext(Ot),{matches:s}=k.useContext(Gt),{pathname:u}=un(),c=JSON.stringify(Pc(s)),f=k.useRef(!1);return wg(()=>{f.current=!0}),k.useCallback((m,p={})=>{if(Zt(f.current,_g),!f.current)return;if(typeof m=="number"){r.go(m);return}let y=$l(m,JSON.parse(c),u,p.relative==="path");i==null&&n!=="/"&&(y.pathname=y.pathname==="/"?n:Qt([n,y.pathname])),(p.replace?r.replace:r.push)(y,p.state,p)},[n,r,c,u,i])}var Ab=k.createContext(null);function Rb(i){let n=k.useContext(Gt).outlet;return k.useMemo(()=>n&&k.createElement(Ab.Provider,{value:i},n),[n,i])}function Ob(){let{matches:i}=k.useContext(Gt),n=i[i.length-1];return(n==null?void 0:n.params)??{}}function Jr(i,{relative:n}={}){let{matches:r}=k.useContext(Gt),{pathname:s}=un(),u=JSON.stringify(Pc(r));return k.useMemo(()=>$l(i,JSON.parse(u),s,n==="path"),[i,u,s,n])}function Cb(i,n){return Eg(i,n)}function Eg(i,n,r){var U;Ne(Ni(),"useRoutes() may be used only in the context of a component.");let{navigator:s}=k.useContext(Ot),{matches:u}=k.useContext(Gt),c=u[u.length-1],f=c?c.params:{},d=c?c.pathname:"/",m=c?c.pathnameBase:"/",p=c&&c.route;{let L=p&&p.path||"";xg(d,!p||L.endsWith("*")||L.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${d}" (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 y=un(),v;if(n){let L=typeof n=="string"?ji(n):n;Ne(m==="/"||((U=L.pathname)==null?void 0:U.startsWith(m)),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${L.pathname}" was given in the \`location\` prop.`),v=L}else v=y;let _=v.pathname||"/",S=_;if(m!=="/"){let L=m.replace(/^\//,"").split("/");S="/"+_.replace(/^\//,"").split("/").slice(L.length).join("/")}let R=r&&r.state.matches.length?r.state.matches.map(L=>Object.assign(L,{route:r.manifest[L.route.id]||L.route})):ug(i,{pathname:S});Zt(p||R!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),Zt(R==null||R[R.length-1].route.element!==void 0||R[R.length-1].route.Component!==void 0||R[R.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.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.`);let O=Db(R&&R.map(L=>Object.assign({},L,{params:Object.assign({},f,L.params),pathname:Qt([m,s.encodeLocation?s.encodeLocation(L.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathname]),pathnameBase:L.pathnameBase==="/"?m:Qt([m,s.encodeLocation?s.encodeLocation(L.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathnameBase])})),u,r);return n&&O?k.createElement(Ir.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...v},navigationType:"POP"}},O):O}function jb(){let i=Hb(),n=fb(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),r=i instanceof Error?i.stack:null,s="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:s},c={padding:"2px 4px",backgroundColor:s},f=null;return console.error("Error handled by React Router default ErrorBoundary:",i),f=k.createElement(k.Fragment,null,k.createElement("p",null,"💿 Hey developer 👋"),k.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",k.createElement("code",{style:c},"ErrorBoundary")," or"," ",k.createElement("code",{style:c},"errorElement")," prop on your route.")),k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},n),r?k.createElement("pre",{style:u},r):null,f)}var kb=k.createElement(jb,null),Tg=class extends k.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,n){return n.location!==i.location||n.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:n.error,location:n.location,revalidation:i.revalidation||n.revalidation}}componentDidCatch(i,n){this.props.onError?this.props.onError(i,n):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const r=Eb(i.digest);r&&(i=r)}let n=i!==void 0?k.createElement(Gt.Provider,{value:this.props.routeContext},k.createElement(Yc.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?k.createElement(Nb,{error:i},n):n}};Tg.contextType=yg;var _c=new WeakMap;function Nb({children:i,error:n}){let{basename:r}=k.useContext(Ot);if(typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){let s=Sb(n.digest);if(s){let u=_c.get(n);if(u)throw u;let c=pg(s.location,r),f=c.absoluteURL||c.to;if(gb(f))throw new Error("Invalid redirect location");if(mg&&!_c.get(n))if(c.isExternal||s.reloadDocument)window.location.href=f;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:s.replace}));throw _c.set(n,d),d}return k.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f}`})}}return i}function Ub({routeContext:i,match:n,children:r}){let s=k.useContext(ki);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(Gt.Provider,{value:i},r)}function Db(i,n=[],r){let s=r==null?void 0:r.state;if(i==null){if(!s)return null;if(s.errors)i=s.matches;else if(n.length===0&&!s.initialized&&s.matches.length>0)i=s.matches;else return null}let u=i,c=s==null?void 0:s.errors;if(c!=null){let y=u.findIndex(v=>v.route.id&&(c==null?void 0:c[v.route.id])!==void 0);Ne(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),u=u.slice(0,Math.min(u.length,y+1))}let f=!1,d=-1;if(r&&s){f=s.renderFallback;for(let y=0;y=0?u=u.slice(0,d+1):u=[u[0]];break}}}}let m=r==null?void 0:r.onError,p=s&&m?(y,v)=>{var _,S;m(y,{location:s.location,params:((S=(_=s.matches)==null?void 0:_[0])==null?void 0:S.params)??{},pattern:db(s.matches),errorInfo:v})}:void 0;return u.reduceRight((y,v,_)=>{let S,R=!1,O=null,U=null;s&&(S=c&&v.route.id?c[v.route.id]:void 0,O=v.route.errorElement||kb,f&&(d<0&&_===0?(xg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),R=!0,U=null):d===_&&(R=!0,U=v.route.hydrateFallbackElement||null)));let L=n.concat(u.slice(0,_+1)),G=()=>{let $;return S?$=O:R?$=U:v.route.Component?$=k.createElement(v.route.Component,null):v.route.element?$=v.route.element:$=y,k.createElement(Ub,{match:v,routeContext:{outlet:y,matches:L,isDataRoute:s!=null},children:$})};return s&&(v.route.ErrorBoundary||v.route.errorElement||_===0)?k.createElement(Tg,{location:s.location,revalidation:s.revalidation,component:O,error:S,children:G(),routeContext:{outlet:null,matches:L,isDataRoute:!0},onError:p}):G()},null)}function Ic(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Lb(i){let n=k.useContext(ki);return Ne(n,Ic(i)),n}function zb(i){let n=k.useContext(ql);return Ne(n,Ic(i)),n}function Mb(i){let n=k.useContext(Gt);return Ne(n,Ic(i)),n}function Jc(i){let n=Mb(i),r=n.matches[n.matches.length-1];return Ne(r.route.id,`${i} can only be used on routes that contain a unique "id"`),r.route.id}function Bb(){return Jc("useRouteId")}function Hb(){var s;let i=k.useContext(Yc),n=zb("useRouteError"),r=Jc("useRouteError");return i!==void 0?i:(s=n.errors)==null?void 0:s[r]}function $b(){let{router:i}=Lb("useNavigate"),n=Jc("useNavigate"),r=k.useRef(!1);return wg(()=>{r.current=!0}),k.useCallback(async(u,c={})=>{Zt(r.current,_g),r.current&&(typeof u=="number"?await i.navigate(u):await i.navigate(u,{fromRouteId:n,...c}))},[i,n])}var vp={};function xg(i,n,r){!n&&!vp[i]&&(vp[i]=!0,Zt(!1,r))}k.memo(qb);function qb({routes:i,manifest:n,future:r,state:s,isStatic:u,onError:c}){return Eg(i,void 0,{manifest:n,state:s,isStatic:u,onError:c})}function Ag({to:i,replace:n,state:r,relative:s}){Ne(Ni()," may be used only in the context of a component.");let{static:u}=k.useContext(Ot);Zt(!u," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:c}=k.useContext(Gt),{pathname:f}=un(),d=Sg(),m=$l(i,Pc(c),f,s==="path"),p=JSON.stringify(m);return k.useEffect(()=>{d(JSON.parse(p),{replace:n,state:r,relative:s})},[d,p,s,n,r]),null}function Gb(i){return Rb(i.context)}function rn(i){Ne(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function Vb({basename:i="/",children:n=null,location:r,navigationType:s="POP",navigator:u,static:c=!1,useTransitions:f}){Ne(!Ni(),"You cannot render a inside another . You should never have more than one in your app.");let d=i.replace(/^\/*/,"/"),m=k.useMemo(()=>({basename:d,navigator:u,static:c,useTransitions:f,future:{}}),[d,u,c,f]);typeof r=="string"&&(r=ji(r));let{pathname:p="/",search:y="",hash:v="",state:_=null,key:S="default",mask:R}=r,O=k.useMemo(()=>{let U=Dn(p,d);return U==null?null:{location:{pathname:U,search:y,hash:v,state:_,key:S,mask:R},navigationType:s}},[d,p,y,v,_,S,s,R]);return Zt(O!=null,` is not able to match the URL "${p}${y}${v}" because it does not start with the basename, so the won't render anything.`),O==null?null:k.createElement(Ot.Provider,{value:m},k.createElement(Ir.Provider,{children:n,value:O}))}function Kb({children:i,location:n}){return Cb(kc(i),n)}function kc(i,n=[]){let r=[];return k.Children.forEach(i,(s,u)=>{if(!k.isValidElement(s))return;let c=[...n,u];if(s.type===k.Fragment){r.push.apply(r,kc(s.props.children,c));return}Ne(s.type===rn,`[${typeof s.type=="string"?s.type:s.type.name}] is not a component. All component children of must be a or `),Ne(!s.props.index||!s.props.children,"An index route cannot have child routes.");let f={id:s.props.id||c.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(f.children=kc(s.props.children,c)),r.push(f)}),r}var El="get",Tl="application/x-www-form-urlencoded";function Gl(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function Pb(i){return Gl(i)&&i.tagName.toLowerCase()==="button"}function Yb(i){return Gl(i)&&i.tagName.toLowerCase()==="form"}function Ib(i){return Gl(i)&&i.tagName.toLowerCase()==="input"}function Jb(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function Xb(i,n){return i.button===0&&(!n||n==="_self")&&!Jb(i)}var ml=null;function Qb(){if(ml===null)try{new FormData(document.createElement("form"),0),ml=!1}catch{ml=!0}return ml}var Zb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function wc(i){return i!=null&&!Zb.has(i)?(Zt(!1,`"${i}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Tl}"`),null):i}function Wb(i,n){let r,s,u,c,f;if(Yb(i)){let d=i.getAttribute("action");s=d?Dn(d,n):null,r=i.getAttribute("method")||El,u=wc(i.getAttribute("enctype"))||Tl,c=new FormData(i)}else if(Pb(i)||Ib(i)&&(i.type==="submit"||i.type==="image")){let d=i.form;if(d==null)throw new Error('Cannot submit a