(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();var Td=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function it(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ev={exports:{}},wu={};/** * @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 tT;function t8(){if(tT)return wu;tT=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,o){var l=null;if(o!==void 0&&(l=""+o),a.key!==void 0&&(l=""+a.key),"key"in a){o={};for(var c in a)c!=="key"&&(o[c]=a[c])}else o=a;return a=o.ref,{$$typeof:e,type:r,key:l,ref:a!==void 0?a:null,props:o}}return wu.Fragment=t,wu.jsx=n,wu.jsxs=n,wu}var nT;function n8(){return nT||(nT=1,Ev.exports=t8()),Ev.exports}var d=n8(),Nv={exports:{}},Me={};/** * @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 rT;function r8(){if(rT)return Me;rT=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),g=Symbol.iterator;function j(z){return z===null||typeof z!="object"?null:(z=g&&z[g]||z["@@iterator"],typeof z=="function"?z:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,b={};function A(z,F,re){this.props=z,this.context=F,this.refs=b,this.updater=re||S}A.prototype.isReactComponent={},A.prototype.setState=function(z,F){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,F,"setState")},A.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function _(){}_.prototype=A.prototype;function T(z,F,re){this.props=z,this.context=F,this.refs=b,this.updater=re||S}var C=T.prototype=new _;C.constructor=T,w(C,A.prototype),C.isPureReactComponent=!0;var O=Array.isArray;function E(){}var M={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function D(z,F,re){var fe=re.ref;return{$$typeof:e,type:z,key:F,ref:fe!==void 0?fe:null,props:re}}function B(z,F){return D(z.type,F,z.props)}function I(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function $(z){var F={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(re){return F[re]})}var G=/\/+/g;function X(z,F){return typeof z=="object"&&z!==null&&z.key!=null?$(""+z.key):F.toString(36)}function Y(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(E,E):(z.status="pending",z.then(function(F){z.status==="pending"&&(z.status="fulfilled",z.value=F)},function(F){z.status==="pending"&&(z.status="rejected",z.reason=F)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function L(z,F,re,fe,pe){var we=typeof z;(we==="undefined"||we==="boolean")&&(z=null);var ze=!1;if(z===null)ze=!0;else switch(we){case"bigint":case"string":case"number":ze=!0;break;case"object":switch(z.$$typeof){case e:case t:ze=!0;break;case m:return ze=z._init,L(ze(z._payload),F,re,fe,pe)}}if(ze)return pe=pe(z),ze=fe===""?"."+X(z,0):fe,O(pe)?(re="",ze!=null&&(re=ze.replace(G,"$&/")+"/"),L(pe,F,re,"",function(Ee){return Ee})):pe!=null&&(I(pe)&&(pe=B(pe,re+(pe.key==null||z&&z.key===pe.key?"":(""+pe.key).replace(G,"$&/")+"/")+ze)),F.push(pe)),1;ze=0;var Ze=fe===""?".":fe+":";if(O(z))for(var ce=0;ce>>1,oe=L[ie];if(0>>1;iea(re,Q))fea(pe,re)?(L[ie]=pe,L[fe]=Q,ie=fe):(L[ie]=re,L[F]=Q,ie=F);else if(fea(pe,Q))L[ie]=pe,L[fe]=Q,ie=fe;else break e}}return H}function a(L,H){var Q=L.sortIndex-H.sortIndex;return Q!==0?Q:L.id-H.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var f=[],h=[],m=1,y=null,g=3,j=!1,S=!1,w=!1,b=!1,A=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function C(L){for(var H=n(h);H!==null;){if(H.callback===null)r(h);else if(H.startTime<=L)r(h),H.sortIndex=H.expirationTime,t(f,H);else break;H=n(h)}}function O(L){if(w=!1,C(L),!S)if(n(f)!==null)S=!0,E||(E=!0,$());else{var H=n(h);H!==null&&Y(O,H.startTime-L)}}var E=!1,M=-1,k=5,D=-1;function B(){return b?!0:!(e.unstable_now()-DL&&B());){var ie=y.callback;if(typeof ie=="function"){y.callback=null,g=y.priorityLevel;var oe=ie(y.expirationTime<=L);if(L=e.unstable_now(),typeof oe=="function"){y.callback=oe,C(L),H=!0;break t}y===n(f)&&r(f),C(L)}else r(f);y=n(f)}if(y!==null)H=!0;else{var z=n(h);z!==null&&Y(O,z.startTime-L),H=!1}}break e}finally{y=null,g=Q,j=!1}H=void 0}}finally{H?$():E=!1}}}var $;if(typeof T=="function")$=function(){T(I)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,X=G.port2;G.port1.onmessage=I,$=function(){X.postMessage(null)}}else $=function(){A(I,0)};function Y(L,H){M=A(function(){L(e.unstable_now())},H)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_forceFrameRate=function(L){0>L||125ie?(L.sortIndex=Q,t(h,L),n(f)===null&&L===n(h)&&(w?(_(M),M=-1):w=!0,Y(O,Q-ie))):(L.sortIndex=oe,t(f,L),S||j||(S=!0,E||(E=!0,$()))),L},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(L){var H=g;return function(){var Q=g;g=H;try{return L.apply(this,arguments)}finally{g=Q}}}})(Pv)),Pv}var sT;function a8(){return sT||(sT=1,Mv.exports=i8()),Mv.exports}var Rv={exports:{}},dn={};/** * @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 oT;function s8(){if(oT)return dn;oT=1;var e=sS();function t(f){var h="https://react.dev/errors/"+f;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Rv.exports=s8(),Rv.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 uT;function l8(){if(uT)return Au;uT=1;var e=a8(),t=sS(),n=o8();function r(i){var s="https://react.dev/errors/"+i;if(1oe||(i.current=ie[oe],ie[oe]=null,oe--)}function re(i,s){oe++,ie[oe]=i.current,i.current=s}var fe=z(null),pe=z(null),we=z(null),ze=z(null);function Ze(i,s){switch(re(we,s),re(pe,i),re(fe,null),s.nodeType){case 9:case 11:i=(i=s.documentElement)&&(i=i.namespaceURI)?A_(i):0;break;default:if(i=s.tagName,s=s.namespaceURI)s=A_(s),i=O_(s,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}F(fe),re(fe,i)}function ce(){F(fe),F(pe),F(we)}function Ee(i){i.memoizedState!==null&&re(ze,i);var s=fe.current,u=O_(s,i.type);s!==u&&(re(pe,i),re(fe,u))}function Ce(i){pe.current===i&&(F(fe),F(pe)),ze.current===i&&(F(ze),xu._currentValue=Q)}var le,yt;function De(i){if(le===void 0)try{throw Error()}catch(u){var s=u.stack.trim().match(/\n( *(at )?)/);le=s&&s[1]||"",yt=-1)":-1v||U[p]!==Z[v]){var te=` `+U[p].replace(" at new "," at ");return i.displayName&&te.includes("")&&(te=te.replace("",i.displayName)),te}while(1<=p&&0<=v);break}}}finally{Ot=!1,Error.prepareStackTrace=u}return(u=i?i.displayName||i.name:"")?De(u):""}function cn(i,s){switch(i.tag){case 26:case 27:case 5:return De(i.type);case 16:return De("Lazy");case 13:return i.child!==s&&s!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return _t(i.type,!1);case 11:return _t(i.type.render,!1);case 1:return _t(i.type,!0);case 31:return De("Activity");default:return""}}function gr(i){try{var s="",u=null;do s+=cn(i,u),u=i,i=i.return;while(i);return s}catch(p){return` Error generating stack: `+p.message+` `+p.stack}}var zr=Object.prototype.hasOwnProperty,qi=e.unstable_scheduleCallback,xr=e.unstable_cancelCallback,ni=e.unstable_shouldYield,Cl=e.unstable_requestPaint,fn=e.unstable_now,uf=e.unstable_getCurrentPriorityLevel,nA=e.unstable_ImmediatePriority,rA=e.unstable_UserBlockingPriority,cf=e.unstable_NormalPriority,LB=e.unstable_LowPriority,iA=e.unstable_IdlePriority,zB=e.log,$B=e.unstable_setDisableYieldValue,Ml=null,Rn=null;function Ii(i){if(typeof zB=="function"&&$B(i),Rn&&typeof Rn.setStrictMode=="function")try{Rn.setStrictMode(Ml,i)}catch{}}var Dn=Math.clz32?Math.clz32:IB,BB=Math.log,qB=Math.LN2;function IB(i){return i>>>=0,i===0?32:31-(BB(i)/qB|0)|0}var ff=256,df=262144,hf=4194304;function ka(i){var s=i&42;if(s!==0)return s;switch(i&-i){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 i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function pf(i,s,u){var p=i.pendingLanes;if(p===0)return 0;var v=0,x=i.suspendedLanes,N=i.pingedLanes;i=i.warmLanes;var R=p&134217727;return R!==0?(p=R&~x,p!==0?v=ka(p):(N&=R,N!==0?v=ka(N):u||(u=R&~i,u!==0&&(v=ka(u))))):(R=p&~x,R!==0?v=ka(R):N!==0?v=ka(N):u||(u=p&~i,u!==0&&(v=ka(u)))),v===0?0:s!==0&&s!==v&&(s&x)===0&&(x=v&-v,u=s&-s,x>=u||x===32&&(u&4194048)!==0)?s:v}function Pl(i,s){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&s)===0}function UB(i,s){switch(i){case 1:case 2:case 4:case 8:case 64:return s+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 s+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 aA(){var i=hf;return hf<<=1,(hf&62914560)===0&&(hf=4194304),i}function ym(i){for(var s=[],u=0;31>u;u++)s.push(i);return s}function Rl(i,s){i.pendingLanes|=s,s!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function VB(i,s,u,p,v,x){var N=i.pendingLanes;i.pendingLanes=u,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=u,i.entangledLanes&=u,i.errorRecoveryDisabledLanes&=u,i.shellSuspendCounter=0;var R=i.entanglements,U=i.expirationTimes,Z=i.hiddenUpdates;for(u=N&~u;0"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var XB=/[\n"\\]/g;function Qn(i){return i.replace(XB,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Sm(i,s,u,p,v,x,N,R){i.name="",N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?i.type=N:i.removeAttribute("type"),s!=null?N==="number"?(s===0&&i.value===""||i.value!=s)&&(i.value=""+Zn(s)):i.value!==""+Zn(s)&&(i.value=""+Zn(s)):N!=="submit"&&N!=="reset"||i.removeAttribute("value"),s!=null?wm(i,N,Zn(s)):u!=null?wm(i,N,Zn(u)):p!=null&&i.removeAttribute("value"),v==null&&x!=null&&(i.defaultChecked=!!x),v!=null&&(i.checked=v&&typeof v!="function"&&typeof v!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?i.name=""+Zn(R):i.removeAttribute("name")}function gA(i,s,u,p,v,x,N,R){if(x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(i.type=x),s!=null||u!=null){if(!(x!=="submit"&&x!=="reset"||s!=null)){jm(i);return}u=u!=null?""+Zn(u):"",s=s!=null?""+Zn(s):u,R||s===i.value||(i.value=s),i.defaultValue=s}p=p??v,p=typeof p!="function"&&typeof p!="symbol"&&!!p,i.checked=R?i.checked:!!p,i.defaultChecked=!!p,N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"&&(i.name=N),jm(i)}function wm(i,s,u){s==="number"&&vf(i.ownerDocument)===i||i.defaultValue===""+u||(i.defaultValue=""+u)}function qs(i,s,u,p){if(i=i.options,s){s={};for(var v=0;v"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Em=!1;if(ai)try{var zl={};Object.defineProperty(zl,"passive",{get:function(){Em=!0}}),window.addEventListener("test",zl,zl),window.removeEventListener("test",zl,zl)}catch{Em=!1}var Vi=null,Nm=null,xf=null;function OA(){if(xf)return xf;var i,s=Nm,u=s.length,p,v="value"in Vi?Vi.value:Vi.textContent,x=v.length;for(i=0;i=ql),MA=" ",PA=!1;function RA(i,s){switch(i){case"keyup":return w5.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function DA(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Hs=!1;function O5(i,s){switch(i){case"compositionend":return DA(s);case"keypress":return s.which!==32?null:(PA=!0,MA);case"textInput":return i=s.data,i===MA&&PA?null:i;default:return null}}function _5(i,s){if(Hs)return i==="compositionend"||!Dm&&RA(i,s)?(i=OA(),xf=Nm=Vi=null,Hs=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1=s)return{node:u,offset:s-i};i=p}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=UA(u)}}function HA(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?HA(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function FA(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var s=vf(i.document);s instanceof i.HTMLIFrameElement;){try{var u=typeof s.contentWindow.location.href=="string"}catch{u=!1}if(u)i=s.contentWindow;else break;s=vf(i.document)}return s}function zm(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}var D5=ai&&"documentMode"in document&&11>=document.documentMode,Fs=null,$m=null,Hl=null,Bm=!1;function GA(i,s,u){var p=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Bm||Fs==null||Fs!==vf(p)||(p=Fs,"selectionStart"in p&&zm(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),Hl&&Vl(Hl,p)||(Hl=p,p=dd($m,"onSelect"),0>=N,v-=N,$r=1<<32-Dn(s)+v|u<ke?(Ue=xe,xe=null):Ue=xe.sibling;var Ge=J(K,xe,W[ke],ae);if(Ge===null){xe===null&&(xe=Ue);break}i&&xe&&Ge.alternate===null&&s(K,xe),V=x(Ge,V,ke),Fe===null?Se=Ge:Fe.sibling=Ge,Fe=Ge,xe=Ue}if(ke===W.length)return u(K,xe),He&&oi(K,ke),Se;if(xe===null){for(;keke?(Ue=xe,xe=null):Ue=xe.sibling;var fa=J(K,xe,Ge.value,ae);if(fa===null){xe===null&&(xe=Ue);break}i&&xe&&fa.alternate===null&&s(K,xe),V=x(fa,V,ke),Fe===null?Se=fa:Fe.sibling=fa,Fe=fa,xe=Ue}if(Ge.done)return u(K,xe),He&&oi(K,ke),Se;if(xe===null){for(;!Ge.done;ke++,Ge=W.next())Ge=se(K,Ge.value,ae),Ge!==null&&(V=x(Ge,V,ke),Fe===null?Se=Ge:Fe.sibling=Ge,Fe=Ge);return He&&oi(K,ke),Se}for(xe=p(xe);!Ge.done;ke++,Ge=W.next())Ge=ee(xe,K,ke,Ge.value,ae),Ge!==null&&(i&&Ge.alternate!==null&&xe.delete(Ge.key===null?ke:Ge.key),V=x(Ge,V,ke),Fe===null?Se=Ge:Fe.sibling=Ge,Fe=Ge);return i&&xe.forEach(function(e8){return s(K,e8)}),He&&oi(K,ke),Se}function ot(K,V,W,ae){if(typeof W=="object"&&W!==null&&W.type===w&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case j:e:{for(var Se=W.key;V!==null;){if(V.key===Se){if(Se=W.type,Se===w){if(V.tag===7){u(K,V.sibling),ae=v(V,W.props.children),ae.return=K,K=ae;break e}}else if(V.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===k&&Ga(Se)===V.type){u(K,V.sibling),ae=v(V,W.props),Wl(ae,W),ae.return=K,K=ae;break e}u(K,V);break}else s(K,V);V=V.sibling}W.type===w?(ae=Ia(W.props.children,K.mode,ae,W.key),ae.return=K,K=ae):(ae=Nf(W.type,W.key,W.props,null,K.mode,ae),Wl(ae,W),ae.return=K,K=ae)}return N(K);case S:e:{for(Se=W.key;V!==null;){if(V.key===Se)if(V.tag===4&&V.stateNode.containerInfo===W.containerInfo&&V.stateNode.implementation===W.implementation){u(K,V.sibling),ae=v(V,W.children||[]),ae.return=K,K=ae;break e}else{u(K,V);break}else s(K,V);V=V.sibling}ae=Gm(W,K.mode,ae),ae.return=K,K=ae}return N(K);case k:return W=Ga(W),ot(K,V,W,ae)}if(Y(W))return ve(K,V,W,ae);if($(W)){if(Se=$(W),typeof Se!="function")throw Error(r(150));return W=Se.call(W),Ae(K,V,W,ae)}if(typeof W.then=="function")return ot(K,V,Lf(W),ae);if(W.$$typeof===T)return ot(K,V,Pf(K,W),ae);zf(K,W)}return typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint"?(W=""+W,V!==null&&V.tag===6?(u(K,V.sibling),ae=v(V,W),ae.return=K,K=ae):(u(K,V),ae=Fm(W,K.mode,ae),ae.return=K,K=ae),N(K)):u(K,V)}return function(K,V,W,ae){try{Xl=0;var Se=ot(K,V,W,ae);return no=null,Se}catch(xe){if(xe===to||xe===Df)throw xe;var Fe=Ln(29,xe,null,K.mode);return Fe.lanes=ae,Fe.return=K,Fe}finally{}}}var Ya=mO(!0),yO=mO(!1),Yi=!1;function iy(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ay(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Xi(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function Wi(i,s,u){var p=i.updateQueue;if(p===null)return null;if(p=p.shared,(Xe&2)!==0){var v=p.pending;return v===null?s.next=s:(s.next=v.next,v.next=s),p.pending=s,s=Ef(i),JA(i,null,u),s}return Tf(i,p,s,u),Ef(i)}function Zl(i,s,u){if(s=s.updateQueue,s!==null&&(s=s.shared,(u&4194048)!==0)){var p=s.lanes;p&=i.pendingLanes,u|=p,s.lanes=u,oA(i,u)}}function sy(i,s){var u=i.updateQueue,p=i.alternate;if(p!==null&&(p=p.updateQueue,u===p)){var v=null,x=null;if(u=u.firstBaseUpdate,u!==null){do{var N={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};x===null?v=x=N:x=x.next=N,u=u.next}while(u!==null);x===null?v=x=s:x=x.next=s}else v=x=s;u={baseState:p.baseState,firstBaseUpdate:v,lastBaseUpdate:x,shared:p.shared,callbacks:p.callbacks},i.updateQueue=u;return}i=u.lastBaseUpdate,i===null?u.firstBaseUpdate=s:i.next=s,u.lastBaseUpdate=s}var oy=!1;function Ql(){if(oy){var i=eo;if(i!==null)throw i}}function Jl(i,s,u,p){oy=!1;var v=i.updateQueue;Yi=!1;var x=v.firstBaseUpdate,N=v.lastBaseUpdate,R=v.shared.pending;if(R!==null){v.shared.pending=null;var U=R,Z=U.next;U.next=null,N===null?x=Z:N.next=Z,N=U;var te=i.alternate;te!==null&&(te=te.updateQueue,R=te.lastBaseUpdate,R!==N&&(R===null?te.firstBaseUpdate=Z:R.next=Z,te.lastBaseUpdate=U))}if(x!==null){var se=v.baseState;N=0,te=Z=U=null,R=x;do{var J=R.lane&-536870913,ee=J!==R.lane;if(ee?(Ie&J)===J:(p&J)===J){J!==0&&J===Js&&(oy=!0),te!==null&&(te=te.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var ve=i,Ae=R;J=s;var ot=u;switch(Ae.tag){case 1:if(ve=Ae.payload,typeof ve=="function"){se=ve.call(ot,se,J);break e}se=ve;break e;case 3:ve.flags=ve.flags&-65537|128;case 0:if(ve=Ae.payload,J=typeof ve=="function"?ve.call(ot,se,J):ve,J==null)break e;se=y({},se,J);break e;case 2:Yi=!0}}J=R.callback,J!==null&&(i.flags|=64,ee&&(i.flags|=8192),ee=v.callbacks,ee===null?v.callbacks=[J]:ee.push(J))}else ee={lane:J,tag:R.tag,payload:R.payload,callback:R.callback,next:null},te===null?(Z=te=ee,U=se):te=te.next=ee,N|=J;if(R=R.next,R===null){if(R=v.shared.pending,R===null)break;ee=R,R=ee.next,ee.next=null,v.lastBaseUpdate=ee,v.shared.pending=null}}while(!0);te===null&&(U=se),v.baseState=U,v.firstBaseUpdate=Z,v.lastBaseUpdate=te,x===null&&(v.shared.lanes=0),ta|=N,i.lanes=N,i.memoizedState=se}}function vO(i,s){if(typeof i!="function")throw Error(r(191,i));i.call(s)}function gO(i,s){var u=i.callbacks;if(u!==null)for(i.callbacks=null,i=0;ix?x:8;var N=L.T,R={};L.T=R,_y(i,!1,s,u);try{var U=v(),Z=L.S;if(Z!==null&&Z(R,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var te=V5(U,p);nu(i,s,te,In(i))}else nu(i,s,p,In(i))}catch(se){nu(i,s,{then:function(){},status:"rejected",reason:se},In())}finally{H.p=x,N!==null&&R.types!==null&&(N.types=R.types),L.T=N}}function X5(){}function Ay(i,s,u,p){if(i.tag!==5)throw Error(r(476));var v=WO(i).queue;XO(i,v,s,Q,u===null?X5:function(){return ZO(i),u(p)})}function WO(i){var s=i.memoizedState;if(s!==null)return s;s={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fi,lastRenderedState:Q},next:null};var u={};return s.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fi,lastRenderedState:u},next:null},i.memoizedState=s,i=i.alternate,i!==null&&(i.memoizedState=s),s}function ZO(i){var s=WO(i);s.next===null&&(s=i.alternate.memoizedState),nu(i,s.next.queue,{},In())}function Oy(){return rn(xu)}function QO(){return Pt().memoizedState}function JO(){return Pt().memoizedState}function W5(i){for(var s=i.return;s!==null;){switch(s.tag){case 24:case 3:var u=In();i=Xi(u);var p=Wi(s,i,u);p!==null&&(En(p,s,u),Zl(p,s,u)),s={cache:ey()},i.payload=s;return}s=s.return}}function Z5(i,s,u){var p=In();u={lane:p,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Kf(i)?t2(s,u):(u=Vm(i,s,u,p),u!==null&&(En(u,i,p),n2(u,s,p)))}function e2(i,s,u){var p=In();nu(i,s,u,p)}function nu(i,s,u,p){var v={lane:p,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Kf(i))t2(s,v);else{var x=i.alternate;if(i.lanes===0&&(x===null||x.lanes===0)&&(x=s.lastRenderedReducer,x!==null))try{var N=s.lastRenderedState,R=x(N,u);if(v.hasEagerState=!0,v.eagerState=R,kn(R,N))return Tf(i,s,v,0),ut===null&&_f(),!1}catch{}finally{}if(u=Vm(i,s,v,p),u!==null)return En(u,i,p),n2(u,s,p),!0}return!1}function _y(i,s,u,p){if(p={lane:2,revertLane:iv(),gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},Kf(i)){if(s)throw Error(r(479))}else s=Vm(i,u,p,2),s!==null&&En(s,i,2)}function Kf(i){var s=i.alternate;return i===Re||s!==null&&s===Re}function t2(i,s){io=qf=!0;var u=i.pending;u===null?s.next=s:(s.next=u.next,u.next=s),i.pending=s}function n2(i,s,u){if((u&4194048)!==0){var p=s.lanes;p&=i.pendingLanes,u|=p,s.lanes=u,oA(i,u)}}var ru={readContext:rn,use:Vf,useCallback:Tt,useContext:Tt,useEffect:Tt,useImperativeHandle:Tt,useLayoutEffect:Tt,useInsertionEffect:Tt,useMemo:Tt,useReducer:Tt,useRef:Tt,useState:Tt,useDebugValue:Tt,useDeferredValue:Tt,useTransition:Tt,useSyncExternalStore:Tt,useId:Tt,useHostTransitionStatus:Tt,useFormState:Tt,useActionState:Tt,useOptimistic:Tt,useMemoCache:Tt,useCacheRefresh:Tt};ru.useEffectEvent=Tt;var r2={readContext:rn,use:Vf,useCallback:function(i,s){return yn().memoizedState=[i,s===void 0?null:s],i},useContext:rn,useEffect:qO,useImperativeHandle:function(i,s,u){u=u!=null?u.concat([i]):null,Ff(4194308,4,HO.bind(null,s,i),u)},useLayoutEffect:function(i,s){return Ff(4194308,4,i,s)},useInsertionEffect:function(i,s){Ff(4,2,i,s)},useMemo:function(i,s){var u=yn();s=s===void 0?null:s;var p=i();if(Xa){Ii(!0);try{i()}finally{Ii(!1)}}return u.memoizedState=[p,s],p},useReducer:function(i,s,u){var p=yn();if(u!==void 0){var v=u(s);if(Xa){Ii(!0);try{u(s)}finally{Ii(!1)}}}else v=s;return p.memoizedState=p.baseState=v,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:v},p.queue=i,i=i.dispatch=Z5.bind(null,Re,i),[p.memoizedState,i]},useRef:function(i){var s=yn();return i={current:i},s.memoizedState=i},useState:function(i){i=xy(i);var s=i.queue,u=e2.bind(null,Re,s);return s.dispatch=u,[i.memoizedState,u]},useDebugValue:Sy,useDeferredValue:function(i,s){var u=yn();return wy(u,i,s)},useTransition:function(){var i=xy(!1);return i=XO.bind(null,Re,i.queue,!0,!1),yn().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,s,u){var p=Re,v=yn();if(He){if(u===void 0)throw Error(r(407));u=u()}else{if(u=s(),ut===null)throw Error(r(349));(Ie&127)!==0||AO(p,s,u)}v.memoizedState=u;var x={value:u,getSnapshot:s};return v.queue=x,qO(_O.bind(null,p,x,i),[i]),p.flags|=2048,so(9,{destroy:void 0},OO.bind(null,p,x,u,s),null),u},useId:function(){var i=yn(),s=ut.identifierPrefix;if(He){var u=Br,p=$r;u=(p&~(1<<32-Dn(p)-1)).toString(32)+u,s="_"+s+"R_"+u,u=If++,0<\/script>",x=x.removeChild(x.firstChild);break;case"select":x=typeof p.is=="string"?N.createElement("select",{is:p.is}):N.createElement("select"),p.multiple?x.multiple=!0:p.size&&(x.size=p.size);break;default:x=typeof p.is=="string"?N.createElement(v,{is:p.is}):N.createElement(v)}}x[tn]=s,x[Sn]=p;e:for(N=s.child;N!==null;){if(N.tag===5||N.tag===6)x.appendChild(N.stateNode);else if(N.tag!==4&&N.tag!==27&&N.child!==null){N.child.return=N,N=N.child;continue}if(N===s)break e;for(;N.sibling===null;){if(N.return===null||N.return===s)break e;N=N.return}N.sibling.return=N.return,N=N.sibling}s.stateNode=x;e:switch(sn(x,v,p),v){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break e;case"img":p=!0;break e;default:p=!1}p&&hi(s)}}return gt(s),qy(s,s.type,i===null?null:i.memoizedProps,s.pendingProps,u),null;case 6:if(i&&s.stateNode!=null)i.memoizedProps!==p&&hi(s);else{if(typeof p!="string"&&s.stateNode===null)throw Error(r(166));if(i=we.current,Zs(s)){if(i=s.stateNode,u=s.memoizedProps,p=null,v=nn,v!==null)switch(v.tag){case 27:case 5:p=v.memoizedProps}i[tn]=s,i=!!(i.nodeValue===u||p!==null&&p.suppressHydrationWarning===!0||S_(i.nodeValue,u)),i||Gi(s,!0)}else i=hd(i).createTextNode(p),i[tn]=s,s.stateNode=i}return gt(s),null;case 31:if(u=s.memoizedState,i===null||i.memoizedState!==null){if(p=Zs(s),u!==null){if(i===null){if(!p)throw Error(r(318));if(i=s.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(557));i[tn]=s}else Ua(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;gt(s),i=!1}else u=Wm(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=u),i=!0;if(!i)return s.flags&256?($n(s),s):($n(s),null);if((s.flags&128)!==0)throw Error(r(558))}return gt(s),null;case 13:if(p=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(v=Zs(s),p!==null&&p.dehydrated!==null){if(i===null){if(!v)throw Error(r(318));if(v=s.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[tn]=s}else Ua(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;gt(s),v=!1}else v=Wm(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=v),v=!0;if(!v)return s.flags&256?($n(s),s):($n(s),null)}return $n(s),(s.flags&128)!==0?(s.lanes=u,s):(u=p!==null,i=i!==null&&i.memoizedState!==null,u&&(p=s.child,v=null,p.alternate!==null&&p.alternate.memoizedState!==null&&p.alternate.memoizedState.cachePool!==null&&(v=p.alternate.memoizedState.cachePool.pool),x=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(x=p.memoizedState.cachePool.pool),x!==v&&(p.flags|=2048)),u!==i&&u&&(s.child.flags|=8192),Qf(s,s.updateQueue),gt(s),null);case 4:return ce(),i===null&&lv(s.stateNode.containerInfo),gt(s),null;case 10:return ui(s.type),gt(s),null;case 19:if(F(Mt),p=s.memoizedState,p===null)return gt(s),null;if(v=(s.flags&128)!==0,x=p.rendering,x===null)if(v)au(p,!1);else{if(Et!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(x=Bf(i),x!==null){for(s.flags|=128,au(p,!1),i=x.updateQueue,s.updateQueue=i,Qf(s,i),s.subtreeFlags=0,i=u,u=s.child;u!==null;)eO(u,i),u=u.sibling;return re(Mt,Mt.current&1|2),He&&oi(s,p.treeForkCount),s.child}i=i.sibling}p.tail!==null&&fn()>rd&&(s.flags|=128,v=!0,au(p,!1),s.lanes=4194304)}else{if(!v)if(i=Bf(x),i!==null){if(s.flags|=128,v=!0,i=i.updateQueue,s.updateQueue=i,Qf(s,i),au(p,!0),p.tail===null&&p.tailMode==="hidden"&&!x.alternate&&!He)return gt(s),null}else 2*fn()-p.renderingStartTime>rd&&u!==536870912&&(s.flags|=128,v=!0,au(p,!1),s.lanes=4194304);p.isBackwards?(x.sibling=s.child,s.child=x):(i=p.last,i!==null?i.sibling=x:s.child=x,p.last=x)}return p.tail!==null?(i=p.tail,p.rendering=i,p.tail=i.sibling,p.renderingStartTime=fn(),i.sibling=null,u=Mt.current,re(Mt,v?u&1|2:u&1),He&&oi(s,p.treeForkCount),i):(gt(s),null);case 22:case 23:return $n(s),uy(),p=s.memoizedState!==null,i!==null?i.memoizedState!==null!==p&&(s.flags|=8192):p&&(s.flags|=8192),p?(u&536870912)!==0&&(s.flags&128)===0&&(gt(s),s.subtreeFlags&6&&(s.flags|=8192)):gt(s),u=s.updateQueue,u!==null&&Qf(s,u.retryQueue),u=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),p=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),p!==u&&(s.flags|=2048),i!==null&&F(Fa),null;case 24:return u=null,i!==null&&(u=i.memoizedState.cache),s.memoizedState.cache!==u&&(s.flags|=2048),ui(Dt),gt(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function n6(i,s){switch(Ym(s),s.tag){case 1:return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return ui(Dt),ce(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 26:case 27:case 5:return Ce(s),null;case 31:if(s.memoizedState!==null){if($n(s),s.alternate===null)throw Error(r(340));Ua()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 13:if($n(s),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(r(340));Ua()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return F(Mt),null;case 4:return ce(),null;case 10:return ui(s.type),null;case 22:case 23:return $n(s),uy(),i!==null&&F(Fa),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 24:return ui(Dt),null;case 25:return null;default:return null}}function T2(i,s){switch(Ym(s),s.tag){case 3:ui(Dt),ce();break;case 26:case 27:case 5:Ce(s);break;case 4:ce();break;case 31:s.memoizedState!==null&&$n(s);break;case 13:$n(s);break;case 19:F(Mt);break;case 10:ui(s.type);break;case 22:case 23:$n(s),uy(),i!==null&&F(Fa);break;case 24:ui(Dt)}}function su(i,s){try{var u=s.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var v=p.next;u=v;do{if((u.tag&i)===i){p=void 0;var x=u.create,N=u.inst;p=x(),N.destroy=p}u=u.next}while(u!==v)}}catch(R){nt(s,s.return,R)}}function Ji(i,s,u){try{var p=s.updateQueue,v=p!==null?p.lastEffect:null;if(v!==null){var x=v.next;p=x;do{if((p.tag&i)===i){var N=p.inst,R=N.destroy;if(R!==void 0){N.destroy=void 0,v=s;var U=u,Z=R;try{Z()}catch(te){nt(v,U,te)}}}p=p.next}while(p!==x)}}catch(te){nt(s,s.return,te)}}function E2(i){var s=i.updateQueue;if(s!==null){var u=i.stateNode;try{gO(s,u)}catch(p){nt(i,i.return,p)}}}function N2(i,s,u){u.props=Wa(i.type,i.memoizedProps),u.state=i.memoizedState;try{u.componentWillUnmount()}catch(p){nt(i,s,p)}}function ou(i,s){try{var u=i.ref;if(u!==null){switch(i.tag){case 26:case 27:case 5:var p=i.stateNode;break;case 30:p=i.stateNode;break;default:p=i.stateNode}typeof u=="function"?i.refCleanup=u(p):u.current=p}}catch(v){nt(i,s,v)}}function qr(i,s){var u=i.ref,p=i.refCleanup;if(u!==null)if(typeof p=="function")try{p()}catch(v){nt(i,s,v)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(v){nt(i,s,v)}else u.current=null}function C2(i){var s=i.type,u=i.memoizedProps,p=i.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":u.autoFocus&&p.focus();break e;case"img":u.src?p.src=u.src:u.srcSet&&(p.srcset=u.srcSet)}}catch(v){nt(i,i.return,v)}}function Iy(i,s,u){try{var p=i.stateNode;A6(p,i.type,u,s),p[Sn]=s}catch(v){nt(i,i.return,v)}}function M2(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&sa(i.type)||i.tag===4}function Uy(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||M2(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&sa(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Vy(i,s,u){var p=i.tag;if(p===5||p===6)i=i.stateNode,s?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(i,s):(s=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,s.appendChild(i),u=u._reactRootContainer,u!=null||s.onclick!==null||(s.onclick=ii));else if(p!==4&&(p===27&&sa(i.type)&&(u=i.stateNode,s=null),i=i.child,i!==null))for(Vy(i,s,u),i=i.sibling;i!==null;)Vy(i,s,u),i=i.sibling}function Jf(i,s,u){var p=i.tag;if(p===5||p===6)i=i.stateNode,s?u.insertBefore(i,s):u.appendChild(i);else if(p!==4&&(p===27&&sa(i.type)&&(u=i.stateNode),i=i.child,i!==null))for(Jf(i,s,u),i=i.sibling;i!==null;)Jf(i,s,u),i=i.sibling}function P2(i){var s=i.stateNode,u=i.memoizedProps;try{for(var p=i.type,v=s.attributes;v.length;)s.removeAttributeNode(v[0]);sn(s,p,u),s[tn]=i,s[Sn]=u}catch(x){nt(i,i.return,x)}}var pi=!1,zt=!1,Hy=!1,R2=typeof WeakSet=="function"?WeakSet:Set,Zt=null;function r6(i,s){if(i=i.containerInfo,fv=bd,i=FA(i),zm(i)){if("selectionStart"in i)var u={start:i.selectionStart,end:i.selectionEnd};else e:{u=(u=i.ownerDocument)&&u.defaultView||window;var p=u.getSelection&&u.getSelection();if(p&&p.rangeCount!==0){u=p.anchorNode;var v=p.anchorOffset,x=p.focusNode;p=p.focusOffset;try{u.nodeType,x.nodeType}catch{u=null;break e}var N=0,R=-1,U=-1,Z=0,te=0,se=i,J=null;t:for(;;){for(var ee;se!==u||v!==0&&se.nodeType!==3||(R=N+v),se!==x||p!==0&&se.nodeType!==3||(U=N+p),se.nodeType===3&&(N+=se.nodeValue.length),(ee=se.firstChild)!==null;)J=se,se=ee;for(;;){if(se===i)break t;if(J===u&&++Z===v&&(R=N),J===x&&++te===p&&(U=N),(ee=se.nextSibling)!==null)break;se=J,J=se.parentNode}se=ee}u=R===-1||U===-1?null:{start:R,end:U}}else u=null}u=u||{start:0,end:0}}else u=null;for(dv={focusedElem:i,selectionRange:u},bd=!1,Zt=s;Zt!==null;)if(s=Zt,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,Zt=i;else for(;Zt!==null;){switch(s=Zt,x=s.alternate,i=s.flags,s.tag){case 0:if((i&4)!==0&&(i=s.updateQueue,i=i!==null?i.events:null,i!==null))for(u=0;u title"))),sn(x,p,u),x[tn]=i,Wt(x),p=x;break e;case"link":var N=B_("link","href",v).get(p+(u.href||""));if(N){for(var R=0;Rot&&(N=ot,ot=Ae,Ae=N);var K=VA(R,Ae),V=VA(R,ot);if(K&&V&&(ee.rangeCount!==1||ee.anchorNode!==K.node||ee.anchorOffset!==K.offset||ee.focusNode!==V.node||ee.focusOffset!==V.offset)){var W=se.createRange();W.setStart(K.node,K.offset),ee.removeAllRanges(),Ae>ot?(ee.addRange(W),ee.extend(V.node,V.offset)):(W.setEnd(V.node,V.offset),ee.addRange(W))}}}}for(se=[],ee=R;ee=ee.parentNode;)ee.nodeType===1&&se.push({element:ee,left:ee.scrollLeft,top:ee.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;Ru?32:u,L.T=null,u=Zy,Zy=null;var x=ra,N=xi;if(Ut=0,fo=ra=null,xi=0,(Xe&6)!==0)throw Error(r(331));var R=Xe;if(Xe|=4,H2(x.current),I2(x,x.current,N,u),Xe=R,hu(0,!1),Rn&&typeof Rn.onPostCommitFiberRoot=="function")try{Rn.onPostCommitFiberRoot(Ml,x)}catch{}return!0}finally{H.p=v,L.T=p,l_(i,s)}}function c_(i,s,u){s=er(u,s),s=Cy(i.stateNode,s,2),i=Wi(i,s,2),i!==null&&(Rl(i,2),Ir(i))}function nt(i,s,u){if(i.tag===3)c_(i,i,u);else for(;s!==null;){if(s.tag===3){c_(s,i,u);break}else if(s.tag===1){var p=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(na===null||!na.has(p))){i=er(u,i),u=f2(2),p=Wi(s,u,2),p!==null&&(d2(u,p,s,i),Rl(p,2),Ir(p));break}}s=s.return}}function tv(i,s,u){var p=i.pingCache;if(p===null){p=i.pingCache=new s6;var v=new Set;p.set(s,v)}else v=p.get(s),v===void 0&&(v=new Set,p.set(s,v));v.has(u)||(Ky=!0,v.add(u),i=f6.bind(null,i,s,u),s.then(i,i))}function f6(i,s,u){var p=i.pingCache;p!==null&&p.delete(s),i.pingedLanes|=i.suspendedLanes&u,i.warmLanes&=~u,ut===i&&(Ie&u)===u&&(Et===4||Et===3&&(Ie&62914560)===Ie&&300>fn()-nd?(Xe&2)===0&&ho(i,0):Yy|=u,co===Ie&&(co=0)),Ir(i)}function f_(i,s){s===0&&(s=aA()),i=qa(i,s),i!==null&&(Rl(i,s),Ir(i))}function d6(i){var s=i.memoizedState,u=0;s!==null&&(u=s.retryLane),f_(i,u)}function h6(i,s){var u=0;switch(i.tag){case 31:case 13:var p=i.stateNode,v=i.memoizedState;v!==null&&(u=v.retryLane);break;case 19:p=i.stateNode;break;case 22:p=i.stateNode._retryCache;break;default:throw Error(r(314))}p!==null&&p.delete(s),f_(i,u)}function p6(i,s){return qi(i,s)}var ud=null,mo=null,nv=!1,cd=!1,rv=!1,aa=0;function Ir(i){i!==mo&&i.next===null&&(mo===null?ud=mo=i:mo=mo.next=i),cd=!0,nv||(nv=!0,y6())}function hu(i,s){if(!rv&&cd){rv=!0;do for(var u=!1,p=ud;p!==null;){if(i!==0){var v=p.pendingLanes;if(v===0)var x=0;else{var N=p.suspendedLanes,R=p.pingedLanes;x=(1<<31-Dn(42|i)+1)-1,x&=v&~(N&~R),x=x&201326741?x&201326741|1:x?x|2:0}x!==0&&(u=!0,m_(p,x))}else x=Ie,x=pf(p,p===ut?x:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),(x&3)===0||Pl(p,x)||(u=!0,m_(p,x));p=p.next}while(u);rv=!1}}function m6(){d_()}function d_(){cd=nv=!1;var i=0;aa!==0&&_6()&&(i=aa);for(var s=fn(),u=null,p=ud;p!==null;){var v=p.next,x=h_(p,s);x===0?(p.next=null,u===null?ud=v:u.next=v,v===null&&(mo=u)):(u=p,(i!==0||(x&3)!==0)&&(cd=!0)),p=v}Ut!==0&&Ut!==5||hu(i),aa!==0&&(aa=0)}function h_(i,s){for(var u=i.suspendedLanes,p=i.pingedLanes,v=i.expirationTimes,x=i.pendingLanes&-62914561;0R)break;var te=U.transferSize,se=U.initiatorType;te&&w_(se)&&(U=U.responseEnd,N+=te*(U"u"?null:document;function k_(i,s,u){var p=yo;if(p&&typeof s=="string"&&s){var v=Qn(s);v='link[rel="'+i+'"][href="'+v+'"]',typeof u=="string"&&(v+='[crossorigin="'+u+'"]'),D_.has(v)||(D_.add(v),i={rel:i,crossOrigin:u,href:s},p.querySelector(v)===null&&(s=p.createElement("link"),sn(s,"link",i),Wt(s),p.head.appendChild(s)))}}function k6(i){bi.D(i),k_("dns-prefetch",i,null)}function L6(i,s){bi.C(i,s),k_("preconnect",i,s)}function z6(i,s,u){bi.L(i,s,u);var p=yo;if(p&&i&&s){var v='link[rel="preload"][as="'+Qn(s)+'"]';s==="image"&&u&&u.imageSrcSet?(v+='[imagesrcset="'+Qn(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(v+='[imagesizes="'+Qn(u.imageSizes)+'"]')):v+='[href="'+Qn(i)+'"]';var x=v;switch(s){case"style":x=vo(i);break;case"script":x=go(i)}sr.has(x)||(i=y({rel:"preload",href:s==="image"&&u&&u.imageSrcSet?void 0:i,as:s},u),sr.set(x,i),p.querySelector(v)!==null||s==="style"&&p.querySelector(vu(x))||s==="script"&&p.querySelector(gu(x))||(s=p.createElement("link"),sn(s,"link",i),Wt(s),p.head.appendChild(s)))}}function $6(i,s){bi.m(i,s);var u=yo;if(u&&i){var p=s&&typeof s.as=="string"?s.as:"script",v='link[rel="modulepreload"][as="'+Qn(p)+'"][href="'+Qn(i)+'"]',x=v;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":x=go(i)}if(!sr.has(x)&&(i=y({rel:"modulepreload",href:i},s),sr.set(x,i),u.querySelector(v)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(gu(x)))return}p=u.createElement("link"),sn(p,"link",i),Wt(p),u.head.appendChild(p)}}}function B6(i,s,u){bi.S(i,s,u);var p=yo;if(p&&i){var v=$s(p).hoistableStyles,x=vo(i);s=s||"default";var N=v.get(x);if(!N){var R={loading:0,preload:null};if(N=p.querySelector(vu(x)))R.loading=5;else{i=y({rel:"stylesheet",href:i,"data-precedence":s},u),(u=sr.get(x))&&xv(i,u);var U=N=p.createElement("link");Wt(U),sn(U,"link",i),U._p=new Promise(function(Z,te){U.onload=Z,U.onerror=te}),U.addEventListener("load",function(){R.loading|=1}),U.addEventListener("error",function(){R.loading|=2}),R.loading|=4,md(N,s,p)}N={type:"stylesheet",instance:N,count:1,state:R},v.set(x,N)}}}function q6(i,s){bi.X(i,s);var u=yo;if(u&&i){var p=$s(u).hoistableScripts,v=go(i),x=p.get(v);x||(x=u.querySelector(gu(v)),x||(i=y({src:i,async:!0},s),(s=sr.get(v))&&bv(i,s),x=u.createElement("script"),Wt(x),sn(x,"link",i),u.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},p.set(v,x))}}function I6(i,s){bi.M(i,s);var u=yo;if(u&&i){var p=$s(u).hoistableScripts,v=go(i),x=p.get(v);x||(x=u.querySelector(gu(v)),x||(i=y({src:i,async:!0,type:"module"},s),(s=sr.get(v))&&bv(i,s),x=u.createElement("script"),Wt(x),sn(x,"link",i),u.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},p.set(v,x))}}function L_(i,s,u,p){var v=(v=we.current)?pd(v):null;if(!v)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(s=vo(u.href),u=$s(v).hoistableStyles,p=u.get(s),p||(p={type:"style",instance:null,count:0,state:null},u.set(s,p)),p):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){i=vo(u.href);var x=$s(v).hoistableStyles,N=x.get(i);if(N||(v=v.ownerDocument||v,N={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},x.set(i,N),(x=v.querySelector(vu(i)))&&!x._p&&(N.instance=x,N.state.loading=5),sr.has(i)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},sr.set(i,u),x||U6(v,i,u,N.state))),s&&p===null)throw Error(r(528,""));return N}if(s&&p!==null)throw Error(r(529,""));return null;case"script":return s=u.async,u=u.src,typeof u=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=go(u),u=$s(v).hoistableScripts,p=u.get(s),p||(p={type:"script",instance:null,count:0,state:null},u.set(s,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function vo(i){return'href="'+Qn(i)+'"'}function vu(i){return'link[rel="stylesheet"]['+i+"]"}function z_(i){return y({},i,{"data-precedence":i.precedence,precedence:null})}function U6(i,s,u,p){i.querySelector('link[rel="preload"][as="style"]['+s+"]")?p.loading=1:(s=i.createElement("link"),p.preload=s,s.addEventListener("load",function(){return p.loading|=1}),s.addEventListener("error",function(){return p.loading|=2}),sn(s,"link",u),Wt(s),i.head.appendChild(s))}function go(i){return'[src="'+Qn(i)+'"]'}function gu(i){return"script[async]"+i}function $_(i,s,u){if(s.count++,s.instance===null)switch(s.type){case"style":var p=i.querySelector('style[data-href~="'+Qn(u.href)+'"]');if(p)return s.instance=p,Wt(p),p;var v=y({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return p=(i.ownerDocument||i).createElement("style"),Wt(p),sn(p,"style",v),md(p,u.precedence,i),s.instance=p;case"stylesheet":v=vo(u.href);var x=i.querySelector(vu(v));if(x)return s.state.loading|=4,s.instance=x,Wt(x),x;p=z_(u),(v=sr.get(v))&&xv(p,v),x=(i.ownerDocument||i).createElement("link"),Wt(x);var N=x;return N._p=new Promise(function(R,U){N.onload=R,N.onerror=U}),sn(x,"link",p),s.state.loading|=4,md(x,u.precedence,i),s.instance=x;case"script":return x=go(u.src),(v=i.querySelector(gu(x)))?(s.instance=v,Wt(v),v):(p=u,(v=sr.get(x))&&(p=y({},u),bv(p,v)),i=i.ownerDocument||i,v=i.createElement("script"),Wt(v),sn(v,"link",p),i.head.appendChild(v),s.instance=v);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(p=s.instance,s.state.loading|=4,md(p,u.precedence,i));return s.instance}function md(i,s,u){for(var p=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=p.length?p[p.length-1]:null,x=v,N=0;N title"):null)}function V6(i,s,u){if(u===1||s.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return i=s.disabled,typeof s.precedence=="string"&&i==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function I_(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function H6(i,s,u,p){if(u.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var v=vo(p.href),x=s.querySelector(vu(v));if(x){s=x._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(i.count++,i=vd.bind(i),s.then(i,i)),u.state.loading|=4,u.instance=x,Wt(x);return}x=s.ownerDocument||s,p=z_(p),(v=sr.get(v))&&xv(p,v),x=x.createElement("link"),Wt(x);var N=x;N._p=new Promise(function(R,U){N.onload=R,N.onerror=U}),sn(x,"link",p),u.instance=x}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(u,s),(s=u.state.preload)&&(u.state.loading&3)===0&&(i.count++,u=vd.bind(i),s.addEventListener("load",u),s.addEventListener("error",u))}}var jv=0;function F6(i,s){return i.stylesheets&&i.count===0&&xd(i,i.stylesheets),0jv?50:800)+s);return i.unsuspend=u,function(){i.unsuspend=null,clearTimeout(p),clearTimeout(v)}}:null}function vd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)xd(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var gd=null;function xd(i,s){i.stylesheets=null,i.unsuspend!==null&&(i.count++,gd=new Map,s.forEach(G6,i),gd=null,vd.call(i))}function G6(i,s){if(!(s.state.loading&4)){var u=gd.get(i);if(u)var p=u.get(null);else{u=new Map,gd.set(i,u);for(var v=i.querySelectorAll("link[data-precedence],style[data-precedence]"),x=0;x"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Cv.exports=l8(),Cv.exports}var c8=u8();/** * react-router v7.18.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 oS=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Yk=/^[\\/]{2}/;function f8(e,t){return t+e.replace(/\\/g,"/")}var fT="popstate";function dT(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function d8(e={}){function t(r,a){var h;let o=(h=a.state)==null?void 0:h.masked,{pathname:l,search:c,hash:f}=o||r.location;return i1("",{pathname:l,search:c,hash:f},a.state&&a.state.usr||null,a.state&&a.state.key||"default",o?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,a){return typeof a=="string"?a:rc(a)}return p8(t,n,null,e)}function At(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Pr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function h8(){return Math.random().toString(36).substring(2,10)}function hT(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function i1(e,t,n=null,r,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ml(t):t,state:n,key:t&&t.key||r||h8(),mask:a}}function rc({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ml(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function p8(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:o=!1}=r,l=a.history,c="POP",f=null,h=m();h==null&&(h=0,l.replaceState({...l.state,idx:h},""));function m(){return(l.state||{idx:null}).idx}function y(){c="POP";let b=m(),A=b==null?null:b-h;h=b,f&&f({action:c,location:w.location,delta:A})}function g(b,A){c="PUSH";let _=dT(b)?b:i1(w.location,b,A);h=m()+1;let T=hT(_,h),C=w.createHref(_.mask||_);try{l.pushState(T,"",C)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;a.location.assign(C)}o&&f&&f({action:c,location:w.location,delta:1})}function j(b,A){c="REPLACE";let _=dT(b)?b:i1(w.location,b,A);h=m();let T=hT(_,h),C=w.createHref(_.mask||_);l.replaceState(T,"",C),o&&f&&f({action:c,location:w.location,delta:0})}function S(b){return m8(a,b)}let w={get action(){return c},get location(){return e(a,l)},listen(b){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(fT,y),f=b,()=>{a.removeEventListener(fT,y),f=null}},createHref(b){return t(a,b)},createURL:S,encodeLocation(b){let A=S(b);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:g,replace:j,go(b){return l.go(b)}};return w}function m8(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),At(r,"No window.location.(origin|href) available to create URL");let a=typeof t=="string"?t:rc(t);return a=a.replace(/ $/,"%20"),!n&&Yk.test(a)&&(a=r+a),new URL(a,r)}function Xk(e,t,n="/"){return y8(e,t,n,!1)}function y8(e,t,n,r,a){let o=typeof t=="string"?ml(t):t,l=Ci(o.pathname||"/",n);if(l==null)return null;let c=v8(e),f=null,h=E8(l);for(let m=0;f==null&&m{let m={relativePath:h===void 0?l.path||"":h,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(r)&&f)return;At(m.relativePath.startsWith(r),`Absolute route path "${m.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(r.length)}let y=Nr([r,m.relativePath]),g=n.concat(m);l.children&&l.children.length>0&&(At(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),Wk(l.children,t,g,y,f)),!(l.path==null&&!l.index)&&t.push({path:y,score:O8(y,l.index),routesMeta:g.map((j,S)=>{let[w,b]=Jk(j.relativePath,j.caseSensitive,S===g.length-1);return{...j,matcher:w,compiledParams:b}})})};return e.forEach((l,c)=>{var f;if(l.path===""||!((f=l.path)!=null&&f.includes("?")))o(l,c);else for(let h of Zk(l.path))o(l,c,!0,h)}),t}function Zk(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return a?[o,""]:[o];let l=Zk(r.join("/")),c=[];return c.push(...l.map(f=>f===""?o:[o,f].join("/"))),a&&c.push(...l),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function g8(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:_8(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var x8=/^:[\w-]+$/,b8=3,j8=2,S8=1,w8=10,A8=-2,pT=e=>e==="*";function O8(e,t){let n=e.split("/"),r=n.length;return n.some(pT)&&(r+=A8),t&&(r+=j8),n.filter(a=>!pT(a)).reduce((a,o)=>a+(x8.test(o)?b8:o===""?S8:w8),r)}function _8(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function T8(e,t,n=!1){let{routesMeta:r}=e,a={},o="/",l=[];for(let c=0;c{if(m==="*"){let S=c[g]||"";l=o.slice(0,o.length-S.length).replace(/(.)\/+$/,"$1")}const j=c[g];return y&&!j?h[m]=void 0:h[m]=(j||"").replace(/%2F/g,"/"),h},{}),pathname:o,pathnameBase:l,pattern:e}}function Jk(e,t=!1,n=!0){Pr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,c,f,h,m)=>{if(r.push({paramName:c,isOptional:f!=null}),f){let y=m.charAt(h+l.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function E8(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Pr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Ci(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function N8(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?ml(e):e,o;return n?(n=e3(n),n.startsWith("/")?o=mT(n.substring(1),"/"):o=mT(n,t)):o=t,{pathname:o,search:P8(r),hash:R8(a)}}function mT(e,t){let n=ch(t).split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Dv(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function C8(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function lS(e){let t=C8(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Ap(e,t,n,r=!1){let a;typeof e=="string"?a=ml(e):(a={...e},At(!a.pathname||!a.pathname.includes("?"),Dv("?","pathname","search",a)),At(!a.pathname||!a.pathname.includes("#"),Dv("#","pathname","hash",a)),At(!a.search||!a.search.includes("#"),Dv("#","search","hash",a)));let o=e===""||a.pathname==="",l=o?"/":a.pathname,c;if(l==null)c=n;else{let y=t.length-1;if(!r&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),y-=1;a.pathname=g.join("/")}c=y>=0?t[y]:"/"}let f=N8(a,c),h=l&&l!=="/"&&l.endsWith("/"),m=(o||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(h||m)&&(f.pathname+="/"),f}var e3=e=>e.replace(/[\\/]{2,}/g,"/"),Nr=e=>e3(e.join("/")),ch=e=>e.replace(/\/+$/,""),M8=e=>ch(e).replace(/^\/*/,"/"),P8=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,R8=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,D8=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function k8(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function L8(e){let t=e.map(n=>n.route.path).filter(Boolean);return Nr(t)||"/"}var t3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function n3(e,t){let n=e;if(typeof n!="string"||!oS.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(t3)try{let o=new URL(window.location.href),l=Yk.test(n)?new URL(f8(n,o.protocol)):new URL(n),c=Ci(l.pathname,t);l.origin===o.origin&&c!=null?n=c+l.search+l.hash:a=!0}catch{Pr(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:a,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var r3=["POST","PUT","PATCH","DELETE"];new Set(r3);var z8=["GET",...r3];new Set(z8);var $8=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function B8(e){try{return $8.includes(new URL(e).protocol)}catch{return!1}}var yl=P.createContext(null);yl.displayName="DataRouter";var Op=P.createContext(null);Op.displayName="DataRouterState";var i3=P.createContext(!1);function q8(){return P.useContext(i3)}var a3=P.createContext({isTransitioning:!1});a3.displayName="ViewTransition";var I8=P.createContext(new Map);I8.displayName="Fetchers";var U8=P.createContext(null);U8.displayName="Await";var Wn=P.createContext(null);Wn.displayName="Navigation";var Hc=P.createContext(null);Hc.displayName="Location";var Dr=P.createContext({outlet:null,matches:[],isDataRoute:!1});Dr.displayName="Route";var uS=P.createContext(null);uS.displayName="RouteError";var s3="REACT_ROUTER_ERROR",V8="REDIRECT",H8="ROUTE_ERROR_RESPONSE";function F8(e){if(e.startsWith(`${s3}:${V8}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function G8(e){if(e.startsWith(`${s3}:${H8}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new D8(t.status,t.statusText,t.data)}catch{}}function K8(e,{relative:t}={}){At(vl(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:r}=P.useContext(Wn),{hash:a,pathname:o,search:l}=Fc(e,{relative:t}),c=o;return n!=="/"&&(c=o==="/"?n:Nr([n,o])),r.createHref({pathname:c,search:l,hash:a})}function vl(){return P.useContext(Hc)!=null}function kr(){return At(vl(),"useLocation() may be used only in the context of a component."),P.useContext(Hc).location}var o3="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function l3(e){P.useContext(Wn).static||P.useLayoutEffect(e)}function _p(){let{isDataRoute:e}=P.useContext(Dr);return e?lq():Y8()}function Y8(){At(vl(),"useNavigate() may be used only in the context of a component.");let e=P.useContext(yl),{basename:t,navigator:n}=P.useContext(Wn),{matches:r}=P.useContext(Dr),{pathname:a}=kr(),o=JSON.stringify(lS(r)),l=P.useRef(!1);return l3(()=>{l.current=!0}),P.useCallback((f,h={})=>{if(Pr(l.current,o3),!l.current)return;if(typeof f=="number"){n.go(f);return}let m=Ap(f,JSON.parse(o),a,h.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Nr([t,m.pathname])),(h.replace?n.replace:n.push)(m,h.state,h)},[t,n,o,a,e])}var X8=P.createContext(null);function W8(e){let t=P.useContext(Dr).outlet;return P.useMemo(()=>t&&P.createElement(X8.Provider,{value:e},t),[t,e])}function Fc(e,{relative:t}={}){let{matches:n}=P.useContext(Dr),{pathname:r}=kr(),a=JSON.stringify(lS(n));return P.useMemo(()=>Ap(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function Z8(e,t){return u3(e,t)}function u3(e,t,n){var b;At(vl(),"useRoutes() may be used only in the context of a component.");let{navigator:r}=P.useContext(Wn),{matches:a}=P.useContext(Dr),o=a[a.length-1],l=o?o.params:{},c=o?o.pathname:"/",f=o?o.pathnameBase:"/",h=o&&o.route;{let A=h&&h.path||"";f3(c,!h||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${c}" (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 m=kr(),y;if(t){let A=typeof t=="string"?ml(t):t;At(f==="/"||((b=A.pathname)==null?void 0:b.startsWith(f)),`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 "${f}" but pathname "${A.pathname}" was given in the \`location\` prop.`),y=A}else y=m;let g=y.pathname||"/",j=g;if(f!=="/"){let A=f.replace(/^\//,"").split("/");j="/"+g.replace(/^\//,"").split("/").slice(A.length).join("/")}let S=n&&n.state.matches.length?n.state.matches.map(A=>Object.assign(A,{route:n.manifest[A.route.id]||A.route})):Xk(e,{pathname:j});Pr(h||S!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Pr(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.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 w=nq(S&&S.map(A=>Object.assign({},A,{params:Object.assign({},l,A.params),pathname:Nr([f,r.encodeLocation?r.encodeLocation(A.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?f:Nr([f,r.encodeLocation?r.encodeLocation(A.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),a,n);return t&&w?P.createElement(Hc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...y},navigationType:"POP"}},w):w}function Q8(){let e=oq(),t=k8(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=P.createElement(P.Fragment,null,P.createElement("p",null,"💿 Hey developer 👋"),P.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",P.createElement("code",{style:o},"ErrorBoundary")," or"," ",P.createElement("code",{style:o},"errorElement")," prop on your route.")),P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),n?P.createElement("pre",{style:a},n):null,l)}var J8=P.createElement(Q8,null),c3=class extends P.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=G8(e.digest);n&&(e=n)}let t=e!==void 0?P.createElement(Dr.Provider,{value:this.props.routeContext},P.createElement(uS.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?P.createElement(eq,{error:e},t):t}};c3.contextType=i3;var kv=new WeakMap;function eq({children:e,error:t}){let{basename:n}=P.useContext(Wn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=F8(t.digest);if(r){let a=kv.get(t);if(a)throw a;let o=n3(r.location,n),l=o.absoluteURL||o.to;if(B8(l))throw new Error("Invalid redirect location");if(t3&&!kv.get(t))if(o.isExternal||r.reloadDocument)window.location.href=l;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:r.replace}));throw kv.set(t,c),c}return P.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l}`})}}return e}function tq({routeContext:e,match:t,children:n}){let r=P.useContext(yl);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),P.createElement(Dr.Provider,{value:e},n)}function nq(e,t=[],n){let r=n==null?void 0:n.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,o=r==null?void 0:r.errors;if(o!=null){let m=a.findIndex(y=>y.route.id&&(o==null?void 0:o[y.route.id])!==void 0);At(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),a=a.slice(0,Math.min(a.length,m+1))}let l=!1,c=-1;if(n&&r){l=r.renderFallback;for(let m=0;m=0?a=a.slice(0,c+1):a=[a[0]];break}}}}let f=n==null?void 0:n.onError,h=r&&f?(m,y)=>{var g,j;f(m,{location:r.location,params:((j=(g=r.matches)==null?void 0:g[0])==null?void 0:j.params)??{},pattern:L8(r.matches),errorInfo:y})}:void 0;return a.reduceRight((m,y,g)=>{let j,S=!1,w=null,b=null;r&&(j=o&&y.route.id?o[y.route.id]:void 0,w=y.route.errorElement||J8,l&&(c<0&&g===0?(f3("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,b=null):c===g&&(S=!0,b=y.route.hydrateFallbackElement||null)));let A=t.concat(a.slice(0,g+1)),_=()=>{let T;return j?T=w:S?T=b:y.route.Component?T=P.createElement(y.route.Component,null):y.route.element?T=y.route.element:T=m,P.createElement(tq,{match:y,routeContext:{outlet:m,matches:A,isDataRoute:r!=null},children:T})};return r&&(y.route.ErrorBoundary||y.route.errorElement||g===0)?P.createElement(c3,{location:r.location,revalidation:r.revalidation,component:w,error:j,children:_(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:h}):_()},null)}function cS(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function rq(e){let t=P.useContext(yl);return At(t,cS(e)),t}function iq(e){let t=P.useContext(Op);return At(t,cS(e)),t}function aq(e){let t=P.useContext(Dr);return At(t,cS(e)),t}function fS(e){let t=aq(e),n=t.matches[t.matches.length-1];return At(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function sq(){return fS("useRouteId")}function oq(){var r;let e=P.useContext(uS),t=iq("useRouteError"),n=fS("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function lq(){let{router:e}=rq("useNavigate"),t=fS("useNavigate"),n=P.useRef(!1);return l3(()=>{n.current=!0}),P.useCallback(async(a,o={})=>{Pr(n.current,o3),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...o}))},[e,t])}var yT={};function f3(e,t,n){!t&&!yT[e]&&(yT[e]=!0,Pr(!1,n))}P.memo(uq);function uq({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:o}){return u3(e,void 0,{manifest:t,state:r,isStatic:a,onError:o})}function dS({to:e,replace:t,state:n,relative:r}){At(vl()," may be used only in the context of a component.");let{static:a}=P.useContext(Wn);Pr(!a," 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:o}=P.useContext(Dr),{pathname:l}=kr(),c=_p(),f=Ap(e,lS(o),l,r==="path"),h=JSON.stringify(f);return P.useEffect(()=>{c(JSON.parse(h),{replace:t,state:n,relative:r})},[c,h,r,t,n]),null}function cq(e){return W8(e.context)}function hn(e){At(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function fq({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:o=!1,useTransitions:l}){At(!vl(),"You cannot render a inside another . You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),f=P.useMemo(()=>({basename:c,navigator:a,static:o,useTransitions:l,future:{}}),[c,a,o,l]);typeof n=="string"&&(n=ml(n));let{pathname:h="/",search:m="",hash:y="",state:g=null,key:j="default",mask:S}=n,w=P.useMemo(()=>{let b=Ci(h,c);return b==null?null:{location:{pathname:b,search:m,hash:y,state:g,key:j,mask:S},navigationType:r}},[c,h,m,y,g,j,r,S]);return Pr(w!=null,` is not able to match the URL "${h}${m}${y}" because it does not start with the basename, so the won't render anything.`),w==null?null:P.createElement(Wn.Provider,{value:f},P.createElement(Hc.Provider,{children:t,value:w}))}function dq({children:e,location:t}){return Z8(a1(e),t)}function a1(e,t=[]){let n=[];return P.Children.forEach(e,(r,a)=>{if(!P.isValidElement(r))return;let o=[...t,a];if(r.type===P.Fragment){n.push.apply(n,a1(r.props.children,o));return}At(r.type===hn,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),At(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=a1(r.props.children,o)),n.push(l)}),n}var Xd="get",Wd="application/x-www-form-urlencoded";function Tp(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function hq(e){return Tp(e)&&e.tagName.toLowerCase()==="button"}function pq(e){return Tp(e)&&e.tagName.toLowerCase()==="form"}function mq(e){return Tp(e)&&e.tagName.toLowerCase()==="input"}function yq(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function vq(e,t){return e.button===0&&(!t||t==="_self")&&!yq(e)}var Ed=null;function gq(){if(Ed===null)try{new FormData(document.createElement("form"),0),Ed=!1}catch{Ed=!0}return Ed}var xq=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Lv(e){return e!=null&&!xq.has(e)?(Pr(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Wd}"`),null):e}function bq(e,t){let n,r,a,o,l;if(pq(e)){let c=e.getAttribute("action");r=c?Ci(c,t):null,n=e.getAttribute("method")||Xd,a=Lv(e.getAttribute("enctype"))||Wd,o=new FormData(e)}else if(hq(e)||mq(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a