import{r as dg,g as hg,a as mg}from"./react-vendors-DbHEDQBy.js";import{r as Uy}from"./leaflet-DYDK0jU3.js";import{C as Pd,L as Hy,a as ky,P as By,b as qy,c as Yy,i as Xy}from"./chartjs-C6LAl0aW.js";(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))c(f);new MutationObserver(f=>{for(const m of f)if(m.type==="childList")for(const y of m.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&c(y)}).observe(document,{childList:!0,subtree:!0});function o(f){const m={};return f.integrity&&(m.integrity=f.integrity),f.referrerPolicy&&(m.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?m.credentials="include":f.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function c(f){if(f.ep)return;f.ep=!0;const m=o(f);fetch(f.href,m)}})();var pd={exports:{}},vu={};/** * @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 yp;function Gy(){if(yp)return vu;yp=1;var l=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function o(c,f,m){var y=null;if(m!==void 0&&(y=""+m),f.key!==void 0&&(y=""+f.key),"key"in f){m={};for(var b in f)b!=="key"&&(m[b]=f[b])}else m=f;return f=m.ref,{$$typeof:l,type:c,key:y,ref:f!==void 0?f:null,props:m}}return vu.Fragment=u,vu.jsx=o,vu.jsxs=o,vu}var bp;function Vy(){return bp||(bp=1,pd.exports=Gy()),pd.exports}var G=Vy(),w=dg();const Bi=hg(w);var gd={exports:{}},yu={},vd={exports:{}},yd={};/** * @license React * scheduler.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 _p;function Qy(){return _p||(_p=1,function(l){function u(tt,gt){var mt=tt.length;tt.push(gt);t:for(;0>>1,k=tt[Bt];if(0>>1;Btf(an,mt))_tf(me,an)?(tt[Bt]=me,tt[_t]=mt,Bt=_t):(tt[Bt]=an,tt[In]=mt,Bt=In);else if(_tf(me,mt))tt[Bt]=me,tt[_t]=mt,Bt=_t;else break t}}return gt}function f(tt,gt){var mt=tt.sortIndex-gt.sortIndex;return mt!==0?mt:tt.id-gt.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;l.unstable_now=function(){return m.now()}}else{var y=Date,b=y.now();l.unstable_now=function(){return y.now()-b}}var S=[],E=[],D=1,j=null,z=3,q=!1,L=!1,I=!1,Q=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,W=typeof setImmediate<"u"?setImmediate:null;function P(tt){for(var gt=o(E);gt!==null;){if(gt.callback===null)c(E);else if(gt.startTime<=tt)c(E),gt.sortIndex=gt.expirationTime,u(S,gt);else break;gt=o(E)}}function bt(tt){if(I=!1,P(tt),!L)if(o(S)!==null)L=!0,Jn();else{var gt=o(E);gt!==null&&Wn(bt,gt.startTime-tt)}}var Ot=!1,It=-1,de=5,ue=-1;function lt(){return!(l.unstable_now()-uett&<());){var Bt=j.callback;if(typeof Bt=="function"){j.callback=null,z=j.priorityLevel;var k=Bt(j.expirationTime<=tt);if(tt=l.unstable_now(),typeof k=="function"){j.callback=k,P(tt),gt=!0;break e}j===o(S)&&c(S),P(tt)}else c(S);j=o(S)}if(j!==null)gt=!0;else{var Pn=o(E);Pn!==null&&Wn(bt,Pn.startTime-tt),gt=!1}}break t}finally{j=null,z=mt,q=!1}gt=void 0}}finally{gt?$e():Ot=!1}}}var $e;if(typeof W=="function")$e=function(){W(St)};else if(typeof MessageChannel<"u"){var il=new MessageChannel,Fn=il.port2;il.port1.onmessage=St,$e=function(){Fn.postMessage(null)}}else $e=function(){Q(St,0)};function Jn(){Ot||(Ot=!0,$e())}function Wn(tt,gt){It=Q(function(){tt(l.unstable_now())},gt)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(tt){tt.callback=null},l.unstable_continueExecution=function(){L||q||(L=!0,Jn())},l.unstable_forceFrameRate=function(tt){0>tt||125Bt?(tt.sortIndex=mt,u(E,tt),o(S)===null&&tt===o(E)&&(I?(H(It),It=-1):I=!0,Wn(bt,mt-Bt))):(tt.sortIndex=k,u(S,tt),L||q||(L=!0,Jn())),tt},l.unstable_shouldYield=lt,l.unstable_wrapCallback=function(tt){var gt=z;return function(){var mt=z;z=gt;try{return tt.apply(this,arguments)}finally{z=mt}}}}(yd)),yd}var Sp;function Zy(){return Sp||(Sp=1,vd.exports=Qy()),vd.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 Ep;function Ky(){if(Ep)return yu;Ep=1;var l=Zy(),u=dg(),o=mg();function c(t){var e="https://react.dev/errors/"+t;if(1)":-1i||_[a]!==T[i]){var B=` `+_[a].replace(" at new "," at ");return t.displayName&&B.includes("")&&(B=B.replace("",t.displayName)),B}while(1<=a&&0<=i);break}}}finally{Jn=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Fn(n):""}function tt(t){switch(t.tag){case 26:case 27:case 5:return Fn(t.type);case 16:return Fn("Lazy");case 13:return Fn("Suspense");case 19:return Fn("SuspenseList");case 0:case 15:return t=Wn(t.type,!1),t;case 11:return t=Wn(t.type.render,!1),t;case 1:return t=Wn(t.type,!0),t;default:return""}}function gt(t){try{var e="";do e+=tt(t),t=t.return;while(t);return e}catch(n){return` Error generating stack: `+n.message+` `+n.stack}}function mt(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function Bt(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function k(t){if(mt(t)!==t)throw Error(c(188))}function Pn(t){var e=t.alternate;if(!e){if(e=mt(t),e===null)throw Error(c(188));return e!==t?null:t}for(var n=t,a=e;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(a=i.return,a!==null){n=a;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return k(i),t;if(s===a)return k(i),e;s=s.sibling}throw Error(c(188))}if(n.return!==a.return)n=i,a=s;else{for(var h=!1,g=i.child;g;){if(g===n){h=!0,n=i,a=s;break}if(g===a){h=!0,a=i,n=s;break}g=g.sibling}if(!h){for(g=s.child;g;){if(g===n){h=!0,n=s,a=i;break}if(g===a){h=!0,a=s,n=i;break}g=g.sibling}if(!h)throw Error(c(189))}}if(n.alternate!==a)throw Error(c(190))}if(n.tag!==3)throw Error(c(188));return n.stateNode.current===n?t:e}function In(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=In(t),e!==null)return e;t=t.sibling}return null}var an=Array.isArray,_t=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,me={pending:!1,data:null,method:null,action:null},He=[],ta=-1;function nt(t){return{current:t}}function Ft(t){0>ta||(t.current=He[ta],He[ta]=null,ta--)}function qt(t,e){ta++,He[ta]=t.current,t.current=e}var vn=nt(null),Wl=nt(null),Fe=nt(null),Pl=nt(null);function ea(t,e){switch(qt(Fe,e),qt(Wl,t),qt(vn,null),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)&&(e=e.namespaceURI)?Km(e):0;break;default:if(t=t===8?e.parentNode:e,e=t.tagName,t=t.namespaceURI)t=Km(t),e=$m(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Ft(vn),qt(vn,e)}function ln(){Ft(vn),Ft(Wl),Ft(Fe)}function Wr(t){t.memoizedState!==null&&qt(Pl,t);var e=vn.current,n=$m(e,t.type);e!==n&&(qt(Wl,t),qt(vn,n))}function Gi(t){Wl.current===t&&(Ft(vn),Ft(Wl)),Pl.current===t&&(Ft(Pl),du._currentValue=me)}var Pr=Object.prototype.hasOwnProperty,Ir=l.unstable_scheduleCallback,ts=l.unstable_cancelCallback,Cc=l.unstable_shouldYield,wc=l.unstable_requestPaint,ke=l.unstable_now,na=l.unstable_getCurrentPriorityLevel,es=l.unstable_ImmediatePriority,rl=l.unstable_UserBlockingPriority,Ln=l.unstable_NormalPriority,sl=l.unstable_LowPriority,Il=l.unstable_IdlePriority,Dc=l.log,ns=l.unstable_setDisableYieldValue,ti=null,Be=null;function Mc(t){if(Be&&typeof Be.onCommitFiberRoot=="function")try{Be.onCommitFiberRoot(ti,t,void 0,(t.current.flags&128)===128)}catch{}}function aa(t){if(typeof Dc=="function"&&ns(t),Be&&typeof Be.setStrictMode=="function")try{Be.setStrictMode(ti,t)}catch{}}var qe=Math.clz32?Math.clz32:Vi,Nc=Math.log,Lu=Math.LN2;function Vi(t){return t>>>=0,t===0?32:31-(Nc(t)/Lu|0)|0}var ei=128,ni=4194304;function Ca(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Qi(t,e){var n=t.pendingLanes;if(n===0)return 0;var a=0,i=t.suspendedLanes,s=t.pingedLanes,h=t.warmLanes;t=t.finishedLanes!==0;var g=n&134217727;return g!==0?(n=g&~i,n!==0?a=Ca(n):(s&=g,s!==0?a=Ca(s):t||(h=g&~h,h!==0&&(a=Ca(h))))):(g=n&~i,g!==0?a=Ca(g):s!==0?a=Ca(s):t||(h=n&~h,h!==0&&(a=Ca(h)))),a===0?0:e!==0&&e!==a&&(e&i)===0&&(i=a&-a,h=e&-e,i>=h||i===32&&(h&4194176)!==0)?e:a}function ai(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function zc(t,e){switch(t){case 1:case 2:case 4:case 8:return e+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+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 wa(){var t=ei;return ei<<=1,(ei&4194176)===0&&(ei=128),t}function ul(){var t=ni;return ni<<=1,(ni&62914560)===0&&(ni=4194304),t}function as(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function li(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Rc(t,e,n,a,i,s){var h=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var g=t.entanglements,_=t.expirationTimes,T=t.hiddenUpdates;for(n=h&~n;0"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hu=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),is={},rs={};function ku(t){return Pr.call(rs,t)?!0:Pr.call(is,t)?!1:Hu.test(t)?rs[t]=!0:(is[t]=!0,!1)}function ii(t,e,n){if(ku(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function ri(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function _n(t,e,n,a){if(a===null)t.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+a)}}function Xe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function ss(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Sn(t){var e=ss(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),a=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(h){a=""+h,s.call(this,h)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(h){a=""+h},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function pe(t){t._valueTracker||(t._valueTracker=Sn(t))}function sa(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=ss(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function Ae(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var us=/[\n"\\]/g;function ze(t){return t.replace(us,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Pe(t,e,n,a,i,s,h,g){t.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.type=h:t.removeAttribute("type"),e!=null?h==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Xe(e)):t.value!==""+Xe(e)&&(t.value=""+Xe(e)):h!=="submit"&&h!=="reset"||t.removeAttribute("value"),e!=null?fl(t,h,Xe(e)):n!=null?fl(t,h,Xe(n)):a!=null&&t.removeAttribute("value"),i==null&&s!=null&&(t.defaultChecked=!!s),i!=null&&(t.checked=i&&typeof i!="function"&&typeof i!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?t.name=""+Xe(g):t.removeAttribute("name")}function ua(t,e,n,a,i,s,h,g){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(t.type=s),e!=null||n!=null){if(!(s!=="submit"&&s!=="reset"||e!=null))return;n=n!=null?""+Xe(n):"",e=e!=null?""+Xe(e):n,g||e===t.value||(t.value=e),t.defaultValue=e}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=g?t.checked:!!a,t.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(t.name=h)}function fl(t,e,n){e==="number"&&Ae(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function rn(t,e,n,a){if(t=t.options,e){e={};for(var i=0;i=mi),Ju=" ",Wu=!1;function Pu(t,e){switch(t){case"keyup":return dl.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Iu(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var hl=!1;function Gc(t,e){switch(t){case"compositionend":return Iu(e);case"keypress":return e.which!==32?null:(Wu=!0,Ju);case"textInput":return t=e.data,t===Ju&&Wu?null:t;default:return null}}function Vc(t,e){if(hl)return t==="compositionend"||!kn&&Pu(t,e)?(t=fi(),Pi=ci=un=null,hl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=a}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=ro(n)}}function Os(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Os(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function so(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ae(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Ae(t.document)}return e}function Cs(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function Zc(t,e){var n=so(e);e=t.focusedElem;var a=t.selectionRange;if(n!==e&&e&&e.ownerDocument&&Os(e.ownerDocument.documentElement,e)){if(a!==null&&Cs(e)){if(t=a.start,n=a.end,n===void 0&&(n=t),"selectionStart"in e)e.selectionStart=t,e.selectionEnd=Math.min(n,e.value.length);else if(n=(t=e.ownerDocument||document)&&t.defaultView||window,n.getSelection){n=n.getSelection();var i=e.textContent.length,s=Math.min(a.start,i);a=a.end===void 0?s:Math.min(a.end,i),!n.extend&&s>a&&(i=a,a=s,s=i),i=Ts(e,s);var h=Ts(e,a);i&&h&&(n.rangeCount!==1||n.anchorNode!==i.node||n.anchorOffset!==i.offset||n.focusNode!==h.node||n.focusOffset!==h.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),n.removeAllRanges(),s>a?(n.addRange(t),n.extend(h.node,h.offset)):(t.setEnd(h.node,h.offset),n.addRange(t)))}}for(t=[],n=e;n=n.parentNode;)n.nodeType===1&&t.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof e.focus=="function"&&e.focus(),e=0;e=document.documentMode,pl=null,ws=null,gl=null,cr=!1;function fr(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cr||pl==null||pl!==Ae(a)||(a=pl,"selectionStart"in a&&Cs(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),gl&&yi(gl,a)||(gl=a,a=Go(ws,"onSelect"),0>=h,i-=h,Ve=1<<32-qe(e)+i|n<ht?(Se=ot,ot=null):Se=ot.sibling;var Lt=N(C,ot,M[ht],Y);if(Lt===null){ot===null&&(ot=Se);break}t&&ot&&Lt.alternate===null&&e(C,ot),x=s(Lt,x,ht),At===null?at=Lt:At.sibling=Lt,At=Lt,ot=Se}if(ht===M.length)return n(C,ot),xt&&ka(C,ht),at;if(ot===null){for(;htht?(Se=ot,ot=null):Se=ot.sibling;var Ql=N(C,ot,Lt.value,Y);if(Ql===null){ot===null&&(ot=Se);break}t&&ot&&Ql.alternate===null&&e(C,ot),x=s(Ql,x,ht),At===null?at=Ql:At.sibling=Ql,At=Ql,ot=Se}if(Lt.done)return n(C,ot),xt&&ka(C,ht),at;if(ot===null){for(;!Lt.done;ht++,Lt=M.next())Lt=Z(C,Lt.value,Y),Lt!==null&&(x=s(Lt,x,ht),At===null?at=Lt:At.sibling=Lt,At=Lt);return xt&&ka(C,ht),at}for(ot=a(ot);!Lt.done;ht++,Lt=M.next())Lt=U(ot,C,ht,Lt.value,Y),Lt!==null&&(t&&Lt.alternate!==null&&ot.delete(Lt.key===null?ht:Lt.key),x=s(Lt,x,ht),At===null?at=Lt:At.sibling=Lt,At=Lt);return t&&ot.forEach(function(jy){return e(C,jy)}),xt&&ka(C,ht),at}function le(C,x,M,Y){if(typeof M=="object"&&M!==null&&M.type===S&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case y:t:{for(var at=M.key;x!==null;){if(x.key===at){if(at=M.type,at===S){if(x.tag===7){n(C,x.sibling),Y=i(x,M.props.children),Y.return=C,C=Y;break t}}else if(x.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===W&&Ls(at)===x.type){n(C,x.sibling),Y=i(x,M.props),Ol(Y,M),Y.return=C,C=Y;break t}n(C,x);break}else e(C,x);x=x.sibling}M.type===S?(Y=Li(M.props.children,C.mode,Y,M.key),Y.return=C,C=Y):(Y=Ro(M.type,M.key,M.props,null,C.mode,Y),Ol(Y,M),Y.return=C,C=Y)}return h(C);case b:t:{for(at=M.key;x!==null;){if(x.key===at)if(x.tag===4&&x.stateNode.containerInfo===M.containerInfo&&x.stateNode.implementation===M.implementation){n(C,x.sibling),Y=i(x,M.children||[]),Y.return=C,C=Y;break t}else{n(C,x);break}else e(C,x);x=x.sibling}Y=zf(M,C.mode,Y),Y.return=C,C=Y}return h(C);case W:return at=M._init,M=at(M._payload),le(C,x,M,Y)}if(an(M))return rt(C,x,M,Y);if(It(M)){if(at=It(M),typeof at!="function")throw Error(c(150));return M=at.call(M),yt(C,x,M,Y)}if(typeof M.then=="function")return le(C,x,br(M),Y);if(M.$$typeof===q)return le(C,x,Mo(C,M),Y);_r(C,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,x!==null&&x.tag===6?(n(C,x.sibling),Y=i(x,M),Y.return=C,C=Y):(n(C,x),Y=Nf(M,C.mode,Y),Y.return=C,C=Y),h(C)):n(C,x)}return function(C,x,M,Y){try{Ai=0;var at=le(C,x,M,Y);return Tl=null,at}catch(ot){if(ot===Si)throw ot;var At=Nn(29,ot,null,C.mode);return At.lanes=Y,At.return=C,At}finally{}}}var da=Sr(!0),ha=Sr(!1),Ya=nt(null),Cl=nt(0);function js(t,e){t=Wa,qt(Cl,t),qt(Ya,e),Wa=t|e.baseLanes}function xi(){qt(Cl,Wa),qt(Ya,Ya.current)}function Er(){Wa=Cl.current,Ft(Ya),Ft(Cl)}var Re=nt(null),Cn=null;function Le(t){var e=t.alternate;qt(re,re.current&1),qt(Re,t),Cn===null&&(e===null||Ya.current!==null||e.memoizedState!==null)&&(Cn=t)}function Gn(t){if(t.tag===22){if(qt(re,re.current),qt(Re,t),Cn===null){var e=t.alternate;e!==null&&e.memoizedState!==null&&(Cn=t)}}else ma()}function ma(){qt(re,re.current),qt(Re,Re.current)}function Vn(t){Ft(Re),Cn===t&&(Cn=null),Ft(re)}var re=nt(0);function Ar(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Fc=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},Jc=l.unstable_scheduleCallback,Wc=l.unstable_NormalPriority,se={$$typeof:q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function xr(){return{controller:new Fc,data:new Map,refCount:0}}function pa(t){t.refCount--,t.refCount===0&&Jc(Wc,function(){t.controller.abort()})}var ga=null,Us=0,wl=0,wn=null;function p(t,e){if(ga===null){var n=ga=[];Us=0,wl=Kf(),wn={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Us++,e.then(r,r),e}function r(){if(--Us===0&&ga!==null){wn!==null&&(wn.status="fulfilled");var t=ga;ga=null,wl=0,wn=null;for(var e=0;es?s:8;var h=lt.T,g={};lt.T=g,af(t,!1,e,n);try{var _=i(),T=lt.S;if(T!==null&&T(g,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var B=d(_,a);Zs(t,e,B,pn(t))}else Zs(t,e,a,pn(t))}catch(Z){Zs(t,e,{then:function(){},status:"rejected",reason:Z},pn())}finally{_t.p=s,lt.T=h}}function Nv(){}function ef(t,e,n,a){if(t.tag!==5)throw Error(c(476));var i=Th(t).queue;xh(t,i,e,me,n===null?Nv:function(){return Oh(t),n(a)})}function Th(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:me,baseState:me,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ce,lastRenderedState:me},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ce,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Oh(t){var e=Th(t).next.queue;Zs(t,e,{},pn())}function nf(){return je(du)}function Ch(){return Ct().memoizedState}function wh(){return Ct().memoizedState}function zv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=pn();t=Rl(n);var a=Ll(e,t,n);a!==null&&(Ke(a,e,n),Fs(a,e,n)),e={cache:xr()},t.payload=e;return}e=e.return}}function Rv(t,e,n){var a=pn();n={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Oo(t)?Mh(e,n):(n=cn(t,e,n,a),n!==null&&(Ke(n,t,a),Nh(n,e,a)))}function Dh(t,e,n){var a=pn();Zs(t,e,n,a)}function Zs(t,e,n,a){var i={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Oo(t))Mh(e,i);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var h=e.lastRenderedState,g=s(h,n);if(i.hasEagerState=!0,i.eagerState=g,Gt(g,h))return hr(t,e,i,0),Qt===null&&dr(),!1}catch{}finally{}if(n=cn(t,e,i,a),n!==null)return Ke(n,t,a),Nh(n,e,a),!0}return!1}function af(t,e,n,a){if(a={lane:2,revertLane:Kf(),action:a,hasEagerState:!1,eagerState:null,next:null},Oo(t)){if(e)throw Error(c(479))}else e=cn(t,n,a,2),e!==null&&Ke(e,t,2)}function Oo(t){var e=t.alternate;return t===V||e!==null&&e===V}function Mh(t,e){ut=pt=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Nh(t,e,n){if((n&4194176)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,Uu(t,n)}}var ya={readContext:je,use:Yt,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useLayoutEffect:it,useInsertionEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useSyncExternalStore:it,useId:it};ya.useCacheRefresh=it,ya.useMemoCache=it,ya.useHostTransitionStatus=it,ya.useFormState=it,ya.useActionState=it,ya.useOptimistic=it;var wi={readContext:je,use:Yt,useCallback:function(t,e){return Vt().memoizedState=[t,e===void 0?null:e],t},useContext:je,useEffect:Vs,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Oi(4194308,4,Dr.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Oi(4194308,4,t,e)},useInsertionEffect:function(t,e){Oi(4,2,t,e)},useMemo:function(t,e){var n=Vt();e=e===void 0?null:e;var a=t();if(ct){aa(!0);try{t()}finally{aa(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=Vt();if(n!==void 0){var i=n(e);if(ct){aa(!0);try{n(e)}finally{aa(!1)}}}else i=e;return a.memoizedState=a.baseState=i,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:i},a.queue=t,t=t.dispatch=Rv.bind(null,V,t),[a.memoizedState,t]},useRef:function(t){var e=Vt();return t={current:t},e.memoizedState=t},useState:function(t){t=Dl(t);var e=t.queue,n=Dh.bind(null,V,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Ic,useDeferredValue:function(t,e){var n=Vt();return tf(n,t,e)},useTransition:function(){var t=Dl(!1);return t=xh.bind(null,V,t.queue,!0,!1),Vt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=V,i=Vt();if(xt){if(n===void 0)throw Error(c(407));n=n()}else{if(n=e(),Qt===null)throw Error(c(349));(Nt&60)!==0||Ze(a,e,n)}i.memoizedState=n;var s={value:n,getSnapshot:e};return i.queue=s,Vs(Ti.bind(null,a,s,t),[t]),a.flags|=2048,Xa(9,Zn.bind(null,a,s,n,e),{destroy:void 0},null),n},useId:function(){var t=Vt(),e=Qt.identifierPrefix;if(xt){var n=fn,a=Ve;n=(a&~(1<<32-qe(a)-1)).toString(32)+n,e=":"+e+"R"+n,n=ft++,0 title"))),De(s,a,n),s[oe]=t,te(s),a=s;break t;case"link":var h=lp("link","href",i).get(a+(n.href||""));if(h){for(var g=0;g<\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?t.multiple=!0:a.size&&(t.size=a.size);break;default:t=typeof a.is=="string"?i.createElement(n,{is:a.is}):i.createElement(n)}}t[oe]=e,t[Me]=a;t:for(i=e.child;i!==null;){if(i.tag===5||i.tag===6)t.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)break t;for(;i.sibling===null;){if(i.return===null||i.return===e)break t;i=i.return}i.sibling.return=i.return,i=i.sibling}e.stateNode=t;t:switch(De(t,n,a),n){case"button":case"input":case"select":case"textarea":t=!!a.autoFocus;break t;case"img":t=!0;break t;default:t=!1}t&&Fa(e)}}return Jt(e),e.flags&=-16777217,null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&Fa(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(c(166));if(t=Fe.current,Al(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,i=Te,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}t[oe]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Zm(t.nodeValue,n)),t||Ba(e)}else t=Qo(t).createTextNode(a),t[oe]=e,e.stateNode=t}return Jt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(i=Al(e),a!==null&&a.dehydrated!==null){if(t===null){if(!i)throw Error(c(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(c(317));i[oe]=e}else bi(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Jt(e),i=!1}else Qe!==null&&(qf(Qe),Qe=null),i=!0;if(!i)return e.flags&256?(Vn(e),e):(Vn(e),null)}if(Vn(e),(e.flags&128)!==0)return e.lanes=n,e;if(n=a!==null,t=t!==null&&t.memoizedState!==null,n){a=e.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool);var s=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==i&&(a.flags|=2048)}return n!==t&&n&&(e.child.flags|=8192),Lo(e,e.updateQueue),Jt(e),null;case 4:return ln(),t===null&&Wf(e.stateNode.containerInfo),Jt(e),null;case 10:return Qa(e.type),Jt(e),null;case 19:if(Ft(re),i=e.memoizedState,i===null)return Jt(e),null;if(a=(e.flags&128)!==0,s=i.rendering,s===null)if(a)nu(i,!1);else{if(ae!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(s=Ar(t),s!==null){for(e.flags|=128,nu(i,!1),t=s.updateQueue,e.updateQueue=t,Lo(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)_m(n,t),n=n.sibling;return qt(re,re.current&1|2),e.child}t=t.sibling}i.tail!==null&&ke()>jo&&(e.flags|=128,a=!0,nu(i,!1),e.lanes=4194304)}else{if(!a)if(t=Ar(s),t!==null){if(e.flags|=128,a=!0,t=t.updateQueue,e.updateQueue=t,Lo(e,t),nu(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!xt)return Jt(e),null}else 2*ke()-i.renderingStartTime>jo&&n!==536870912&&(e.flags|=128,a=!0,nu(i,!1),e.lanes=4194304);i.isBackwards?(s.sibling=e.child,e.child=s):(t=i.last,t!==null?t.sibling=s:e.child=s,i.last=s)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=ke(),e.sibling=null,t=re.current,qt(re,a?t&1|2:t&1),e):(Jt(e),null);case 22:case 23:return Vn(e),Er(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(n&536870912)!==0&&(e.flags&128)===0&&(Jt(e),e.subtreeFlags&6&&(e.flags|=8192)):Jt(e),n=e.updateQueue,n!==null&&Lo(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==n&&(e.flags|=2048),t!==null&&Ft(A),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Qa(se),Jt(e),null;case 25:return null}throw Error(c(156,e.tag))}function qv(t,e){switch(Yn(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Qa(se),ln(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Gi(e),null;case 13:if(Vn(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(c(340));bi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Ft(re),null;case 4:return ln(),null;case 10:return Qa(e.type),null;case 22:case 23:return Vn(e),Er(),t!==null&&Ft(A),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Qa(se),null;case 25:return null;default:return null}}function Am(t,e){switch(Yn(e),e.tag){case 3:Qa(se),ln();break;case 26:case 27:case 5:Gi(e);break;case 4:ln();break;case 13:Vn(e);break;case 19:Ft(re);break;case 10:Qa(e.type);break;case 22:case 23:Vn(e),Er(),t!==null&&Ft(A);break;case 24:Qa(se)}}var Yv={getCacheForType:function(t){var e=je(se),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n}},Xv=typeof WeakMap=="function"?WeakMap:Map,Wt=0,Qt=null,Tt=null,Nt=0,Zt=0,mn=null,Ja=!1,Rr=!1,Rf=!1,Wa=0,ae=0,Bl=0,ji=0,Lf=0,zn=0,Lr=0,au=null,ba=null,jf=!1,Uf=0,jo=1/0,Uo=null,ql=null,Ho=!1,Ui=null,lu=0,Hf=0,kf=null,iu=0,Bf=null;function pn(){if((Wt&2)!==0&&Nt!==0)return Nt&-Nt;if(lt.T!==null){var t=wl;return t!==0?t:Kf()}return Da()}function xm(){zn===0&&(zn=(Nt&536870912)===0||xt?wa():536870912);var t=Re.current;return t!==null&&(t.flags|=32),zn}function Ke(t,e,n){(t===Qt&&Zt===2||t.cancelPendingCommit!==null)&&(jr(t,0),Pa(t,Nt,zn,!1)),li(t,n),((Wt&2)===0||t!==Qt)&&(t===Qt&&((Wt&2)===0&&(ji|=n),ae===4&&Pa(t,Nt,zn,!1)),_a(t))}function Tm(t,e,n){if((Wt&6)!==0)throw Error(c(327));var a=!n&&(e&60)===0&&(e&t.expiredLanes)===0||ai(t,e),i=a?Qv(t,e):Gf(t,e,!0),s=a;do{if(i===0){Rr&&!a&&Pa(t,e,0,!1);break}else if(i===6)Pa(t,e,0,!Ja);else{if(n=t.current.alternate,s&&!Gv(n)){i=Gf(t,e,!1),s=!1;continue}if(i===2){if(s=e,t.errorRecoveryDisabledLanes&s)var h=0;else h=t.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){e=h;t:{var g=t;i=au;var _=g.current.memoizedState.isDehydrated;if(_&&(jr(g,h).flags|=256),h=Gf(g,h,!1),h!==2){if(Rf&&!_){g.errorRecoveryDisabledLanes|=s,ji|=s,i=4;break t}s=ba,ba=i,s!==null&&qf(s)}i=h}if(s=!1,i!==2)continue}}if(i===1){jr(t,0),Pa(t,e,0,!0);break}t:{switch(a=t,i){case 0:case 1:throw Error(c(345));case 4:if((e&4194176)===e){Pa(a,e,zn,!Ja);break t}break;case 2:ba=null;break;case 3:case 5:break;default:throw Error(c(329))}if(a.finishedWork=n,a.finishedLanes=e,(e&62914560)===e&&(s=Uf+300-ke(),10n?32:n,lt.T=null,Ui===null)var s=!1;else{n=kf,kf=null;var h=Ui,g=lu;if(Ui=null,lu=0,(Wt&6)!==0)throw Error(c(331));var _=Wt;if(Wt|=4,ym(h.current),pm(h,h.current,g,n),Wt=_,ru(0,!1),Be&&typeof Be.onPostCommitFiberRoot=="function")try{Be.onPostCommitFiberRoot(ti,h)}catch{}s=!0}return s}finally{_t.p=i,lt.T=a,Lm(t,e)}}return!1}function jm(t,e,n){e=en(n,e),e=sf(t.stateNode,e,2),t=Ll(t,e,2),t!==null&&(li(t,2),_a(t))}function Xt(t,e,n){if(t.tag===3)jm(t,t,n);else for(;e!==null;){if(e.tag===3){jm(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ql===null||!ql.has(a))){t=en(n,t),n=kh(2),a=Ll(e,n,2),a!==null&&(Bh(n,a,e,t),li(a,2),_a(a));break}}e=e.return}}function Vf(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new Xv;var i=new Set;a.set(e,i)}else i=a.get(e),i===void 0&&(i=new Set,a.set(e,i));i.has(n)||(Rf=!0,i.add(n),t=$v.bind(null,t,e,n),e.then(t,t))}function $v(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Qt===t&&(Nt&n)===n&&(ae===4||ae===3&&(Nt&62914560)===Nt&&300>ke()-Uf?(Wt&2)===0&&jr(t,0):Lf|=n,Lr===Nt&&(Lr=0)),_a(t)}function Um(t,e){e===0&&(e=ul()),t=qn(t,e),t!==null&&(li(t,e),_a(t))}function Fv(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Um(t,n)}function Jv(t,e){var n=0;switch(t.tag){case 13:var a=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(c(314))}a!==null&&a.delete(e),Um(t,n)}function Wv(t,e){return Ir(t,e)}var qo=null,kr=null,Qf=!1,Yo=!1,Zf=!1,Hi=0;function _a(t){t!==kr&&t.next===null&&(kr===null?qo=kr=t:kr=kr.next=t),Yo=!0,Qf||(Qf=!0,Iv(Pv))}function ru(t,e){if(!Zf&&Yo){Zf=!0;do for(var n=!1,a=qo;a!==null;){if(t!==0){var i=a.pendingLanes;if(i===0)var s=0;else{var h=a.suspendedLanes,g=a.pingedLanes;s=(1<<31-qe(42|t)+1)-1,s&=i&~(h&~g),s=s&201326677?s&201326677|1:s?s|2:0}s!==0&&(n=!0,Bm(a,s))}else s=Nt,s=Qi(a,a===Qt?s:0),(s&3)===0||ai(a,s)||(n=!0,Bm(a,s));a=a.next}while(n);Zf=!1}}function Pv(){Yo=Qf=!1;var t=0;Hi!==0&&(sy()&&(t=Hi),Hi=0);for(var e=ke(),n=null,a=qo;a!==null;){var i=a.next,s=Hm(a,e);s===0?(a.next=null,n===null?qo=i:n.next=i,i===null&&(kr=n)):(n=a,(t!==0||(s&3)!==0)&&(Yo=!0)),a=i}ru(t)}function Hm(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,i=t.expirationTimes,s=t.pendingLanes&-62914561;0"u"?null:document;function tp(t,e,n){var a=qr;if(a&&typeof e=="string"&&e){var i=ze(e);i='link[rel="'+t+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),Im.has(i)||(Im.add(i),t={rel:t,crossOrigin:n,href:e},a.querySelector(i)===null&&(e=a.createElement("link"),De(e,"link",t),te(e),a.head.appendChild(e)))}}function py(t){Ia.D(t),tp("dns-prefetch",t,null)}function gy(t,e){Ia.C(t,e),tp("preconnect",t,e)}function vy(t,e,n){Ia.L(t,e,n);var a=qr;if(a&&t&&e){var i='link[rel="preload"][as="'+ze(e)+'"]';e==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+ze(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+ze(n.imageSizes)+'"]')):i+='[href="'+ze(t)+'"]';var s=i;switch(e){case"style":s=Yr(t);break;case"script":s=Xr(t)}Rn.has(s)||(t=St({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Rn.set(s,t),a.querySelector(i)!==null||e==="style"&&a.querySelector(ou(s))||e==="script"&&a.querySelector(cu(s))||(e=a.createElement("link"),De(e,"link",t),te(e),a.head.appendChild(e)))}}function yy(t,e){Ia.m(t,e);var n=qr;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",i='link[rel="modulepreload"][as="'+ze(a)+'"][href="'+ze(t)+'"]',s=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Xr(t)}if(!Rn.has(s)&&(t=St({rel:"modulepreload",href:t},e),Rn.set(s,t),n.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(cu(s)))return}a=n.createElement("link"),De(a,"link",t),te(a),n.head.appendChild(a)}}}function by(t,e,n){Ia.S(t,e,n);var a=qr;if(a&&t){var i=Ma(a).hoistableStyles,s=Yr(t);e=e||"default";var h=i.get(s);if(!h){var g={loading:0,preload:null};if(h=a.querySelector(ou(s)))g.loading=5;else{t=St({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Rn.get(s))&&rd(t,n);var _=h=a.createElement("link");te(_),De(_,"link",t),_._p=new Promise(function(T,B){_.onload=T,_.onerror=B}),_.addEventListener("load",function(){g.loading|=1}),_.addEventListener("error",function(){g.loading|=2}),g.loading|=4,Ko(h,e,a)}h={type:"stylesheet",instance:h,count:1,state:g},i.set(s,h)}}}function _y(t,e){Ia.X(t,e);var n=qr;if(n&&t){var a=Ma(n).hoistableScripts,i=Xr(t),s=a.get(i);s||(s=n.querySelector(cu(i)),s||(t=St({src:t,async:!0},e),(e=Rn.get(i))&&sd(t,e),s=n.createElement("script"),te(s),De(s,"link",t),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(i,s))}}function Sy(t,e){Ia.M(t,e);var n=qr;if(n&&t){var a=Ma(n).hoistableScripts,i=Xr(t),s=a.get(i);s||(s=n.querySelector(cu(i)),s||(t=St({src:t,async:!0,type:"module"},e),(e=Rn.get(i))&&sd(t,e),s=n.createElement("script"),te(s),De(s,"link",t),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(i,s))}}function ep(t,e,n,a){var i=(i=Fe.current)?Zo(i):null;if(!i)throw Error(c(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Yr(n.href),n=Ma(i).hoistableStyles,a=n.get(e),a||(a={type:"style",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=Yr(n.href);var s=Ma(i).hoistableStyles,h=s.get(t);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(t,h),(s=i.querySelector(ou(t)))&&!s._p&&(h.instance=s,h.state.loading=5),Rn.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Rn.set(t,n),s||Ey(i,t,n,h.state))),e&&a===null)throw Error(c(528,""));return h}if(e&&a!==null)throw Error(c(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Xr(n),n=Ma(i).hoistableScripts,a=n.get(e),a||(a={type:"script",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,t))}}function Yr(t){return'href="'+ze(t)+'"'}function ou(t){return'link[rel="stylesheet"]['+t+"]"}function np(t){return St({},t,{"data-precedence":t.precedence,precedence:null})}function Ey(t,e,n,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),De(e,"link",n),te(e),t.head.appendChild(e))}function Xr(t){return'[src="'+ze(t)+'"]'}function cu(t){return"script[async]"+t}function ap(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+ze(n.href)+'"]');if(a)return e.instance=a,te(a),a;var i=St({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),te(a),De(a,"style",i),Ko(a,n.precedence,t),e.instance=a;case"stylesheet":i=Yr(n.href);var s=t.querySelector(ou(i));if(s)return e.state.loading|=4,e.instance=s,te(s),s;a=np(n),(i=Rn.get(i))&&rd(a,i),s=(t.ownerDocument||t).createElement("link"),te(s);var h=s;return h._p=new Promise(function(g,_){h.onload=g,h.onerror=_}),De(s,"link",a),e.state.loading|=4,Ko(s,n.precedence,t),e.instance=s;case"script":return s=Xr(n.src),(i=t.querySelector(cu(s)))?(e.instance=i,te(i),i):(a=n,(i=Rn.get(s))&&(a=St({},n),sd(a,i)),t=t.ownerDocument||t,i=t.createElement("script"),te(i),De(i,"link",a),t.head.appendChild(i),e.instance=i);case"void":return null;default:throw Error(c(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Ko(a,n.precedence,t));return e.instance}function Ko(t,e,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,s=i,h=0;h title"):null)}function Ay(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function rp(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var fu=null;function xy(){}function Ty(t,e,n){if(fu===null)throw Error(c(475));var a=fu;if(e.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var i=Yr(n.href),s=t.querySelector(ou(i));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(a.count++,a=Fo.bind(a),t.then(a,a)),e.state.loading|=4,e.instance=s,te(s);return}s=t.ownerDocument||t,n=np(n),(i=Rn.get(i))&&rd(n,i),s=s.createElement("link"),te(s);var h=s;h._p=new Promise(function(g,_){h.onload=g,h.onerror=_}),De(s,"link",n),e.instance=s}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(e,t),(t=e.state.preload)&&(e.state.loading&3)===0&&(a.count++,e=Fo.bind(a),t.addEventListener("load",e),t.addEventListener("error",e))}}function Oy(){if(fu===null)throw Error(c(475));var t=fu;return t.stylesheets&&t.count===0&&ud(t,t.stylesheets),0"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(u){console.error(u)}}return l(),gd.exports=Ky(),gd.exports}var Fy=$y(),bu={},xp;function Jy(){if(xp)return bu;xp=1,Object.defineProperty(bu,"__esModule",{value:!0}),bu.parse=y,bu.serialize=E;const l=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,u=/^[\u0021-\u003A\u003C-\u007E]*$/,o=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,c=/^[\u0020-\u003A\u003D-\u007E]*$/,f=Object.prototype.toString,m=(()=>{const z=function(){};return z.prototype=Object.create(null),z})();function y(z,q){const L=new m,I=z.length;if(I<2)return L;const Q=(q==null?void 0:q.decode)||D;let H=0;do{const W=z.indexOf("=",H);if(W===-1)break;const P=z.indexOf(";",H),bt=P===-1?I:P;if(W>bt){H=z.lastIndexOf(";",W-1)+1;continue}const Ot=b(z,H,W),It=S(z,W,Ot),de=z.slice(Ot,It);if(L[de]===void 0){let ue=b(z,W+1,bt),lt=S(z,bt,ue);const St=Q(z.slice(ue,lt));L[de]=St}H=bt+1}while(HL;){const I=z.charCodeAt(--q);if(I!==32&&I!==9)return q+1}return L}function E(z,q,L){const I=(L==null?void 0:L.encode)||encodeURIComponent;if(!l.test(z))throw new TypeError(`argument name is invalid: ${z}`);const Q=I(q);if(!u.test(Q))throw new TypeError(`argument val is invalid: ${q}`);let H=z+"="+Q;if(!L)return H;if(L.maxAge!==void 0){if(!Number.isInteger(L.maxAge))throw new TypeError(`option maxAge is invalid: ${L.maxAge}`);H+="; Max-Age="+L.maxAge}if(L.domain){if(!o.test(L.domain))throw new TypeError(`option domain is invalid: ${L.domain}`);H+="; Domain="+L.domain}if(L.path){if(!c.test(L.path))throw new TypeError(`option path is invalid: ${L.path}`);H+="; Path="+L.path}if(L.expires){if(!j(L.expires)||!Number.isFinite(L.expires.valueOf()))throw new TypeError(`option expires is invalid: ${L.expires}`);H+="; Expires="+L.expires.toUTCString()}if(L.httpOnly&&(H+="; HttpOnly"),L.secure&&(H+="; Secure"),L.partitioned&&(H+="; Partitioned"),L.priority)switch(typeof L.priority=="string"?L.priority.toLowerCase():void 0){case"low":H+="; Priority=Low";break;case"medium":H+="; Priority=Medium";break;case"high":H+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${L.priority}`)}if(L.sameSite)switch(typeof L.sameSite=="string"?L.sameSite.toLowerCase():L.sameSite){case!0:case"strict":H+="; SameSite=Strict";break;case"lax":H+="; SameSite=Lax";break;case"none":H+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${L.sameSite}`)}return H}function D(z){if(z.indexOf("%")===-1)return z;try{return decodeURIComponent(z)}catch{return z}}function j(z){return f.call(z)==="[object Date]"}return bu}Jy();/** * react-router v7.3.0 * * 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 Tp="popstate";function Wy(l={}){function u(c,f){let{pathname:m,search:y,hash:b}=c.location;return Md("",{pathname:m,search:y,hash:b},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function o(c,f){return typeof f=="string"?f:xu(f)}return Iy(u,o,null,l)}function Pt(l,u){if(l===!1||l===null||typeof l>"u")throw new Error(u)}function xa(l,u){if(!l){typeof console<"u"&&console.warn(u);try{throw new Error(u)}catch{}}}function Py(){return Math.random().toString(36).substring(2,10)}function Op(l,u){return{usr:l.state,key:l.key,idx:u}}function Md(l,u,o=null,c){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof u=="string"?Kr(u):u,state:o,key:u&&u.key||c||Py()}}function xu({pathname:l="/",search:u="",hash:o=""}){return u&&u!=="?"&&(l+=u.charAt(0)==="?"?u:"?"+u),o&&o!=="#"&&(l+=o.charAt(0)==="#"?o:"#"+o),l}function Kr(l){let u={};if(l){let o=l.indexOf("#");o>=0&&(u.hash=l.substring(o),l=l.substring(0,o));let c=l.indexOf("?");c>=0&&(u.search=l.substring(c),l=l.substring(0,c)),l&&(u.pathname=l)}return u}function Iy(l,u,o,c={}){let{window:f=document.defaultView,v5Compat:m=!1}=c,y=f.history,b="POP",S=null,E=D();E==null&&(E=0,y.replaceState({...y.state,idx:E},""));function D(){return(y.state||{idx:null}).idx}function j(){b="POP";let Q=D(),H=Q==null?null:Q-E;E=Q,S&&S({action:b,location:I.location,delta:H})}function z(Q,H){b="PUSH";let W=Md(I.location,Q,H);E=D()+1;let P=Op(W,E),bt=I.createHref(W);try{y.pushState(P,"",bt)}catch(Ot){if(Ot instanceof DOMException&&Ot.name==="DataCloneError")throw Ot;f.location.assign(bt)}m&&S&&S({action:b,location:I.location,delta:1})}function q(Q,H){b="REPLACE";let W=Md(I.location,Q,H);E=D();let P=Op(W,E),bt=I.createHref(W);y.replaceState(P,"",bt),m&&S&&S({action:b,location:I.location,delta:0})}function L(Q){let H=f.location.origin!=="null"?f.location.origin:f.location.href,W=typeof Q=="string"?Q:xu(Q);return W=W.replace(/ $/,"%20"),Pt(H,`No window.location.(origin|href) available to create URL for href: ${W}`),new URL(W,H)}let I={get action(){return b},get location(){return l(f,y)},listen(Q){if(S)throw new Error("A history only accepts one active listener");return f.addEventListener(Tp,j),S=Q,()=>{f.removeEventListener(Tp,j),S=null}},createHref(Q){return u(f,Q)},createURL:L,encodeLocation(Q){let H=L(Q);return{pathname:H.pathname,search:H.search,hash:H.hash}},push:z,replace:q,go(Q){return y.go(Q)}};return I}function pg(l,u,o="/"){return t0(l,u,o,!1)}function t0(l,u,o,c){let f=typeof u=="string"?Kr(u):u,m=el(f.pathname||"/",o);if(m==null)return null;let y=gg(l);e0(y);let b=null;for(let S=0;b==null&&S{let S={relativePath:b===void 0?m.path||"":b,caseSensitive:m.caseSensitive===!0,childrenIndex:y,route:m};S.relativePath.startsWith("/")&&(Pt(S.relativePath.startsWith(c),`Absolute route path "${S.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),S.relativePath=S.relativePath.slice(c.length));let E=tl([c,S.relativePath]),D=o.concat(S);m.children&&m.children.length>0&&(Pt(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${E}".`),gg(m.children,u,D,E)),!(m.path==null&&!m.index)&&u.push({path:E,score:u0(E,m.index),routesMeta:D})};return l.forEach((m,y)=>{var b;if(m.path===""||!((b=m.path)!=null&&b.includes("?")))f(m,y);else for(let S of vg(m.path))f(m,y,S)}),u}function vg(l){let u=l.split("/");if(u.length===0)return[];let[o,...c]=u,f=o.endsWith("?"),m=o.replace(/\?$/,"");if(c.length===0)return f?[m,""]:[m];let y=vg(c.join("/")),b=[];return b.push(...y.map(S=>S===""?m:[m,S].join("/"))),f&&b.push(...y),b.map(S=>l.startsWith("/")&&S===""?"/":S)}function e0(l){l.sort((u,o)=>u.score!==o.score?o.score-u.score:o0(u.routesMeta.map(c=>c.childrenIndex),o.routesMeta.map(c=>c.childrenIndex)))}var n0=/^:[\w-]+$/,a0=3,l0=2,i0=1,r0=10,s0=-2,Cp=l=>l==="*";function u0(l,u){let o=l.split("/"),c=o.length;return o.some(Cp)&&(c+=s0),u&&(c+=l0),o.filter(f=>!Cp(f)).reduce((f,m)=>f+(n0.test(m)?a0:m===""?i0:r0),c)}function o0(l,u){return l.length===u.length&&l.slice(0,-1).every((c,f)=>c===u[f])?l[l.length-1]-u[u.length-1]:0}function c0(l,u,o=!1){let{routesMeta:c}=l,f={},m="/",y=[];for(let b=0;b{if(D==="*"){let L=b[z]||"";y=m.slice(0,m.length-L.length).replace(/(.)\/+$/,"$1")}const q=b[z];return j&&!q?E[D]=void 0:E[D]=(q||"").replace(/%2F/g,"/"),E},{}),pathname:m,pathnameBase:y,pattern:l}}function f0(l,u=!1,o=!0){xa(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let c=[],f="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(y,b,S)=>(c.push({paramName:b,isOptional:S!=null}),S?"/?([^\\/]+)?":"/([^\\/]+)"));return l.endsWith("*")?(c.push({paramName:"*"}),f+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?f+="\\/*$":l!==""&&l!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,u?void 0:"i"),c]}function d0(l){try{return l.split("/").map(u=>decodeURIComponent(u).replace(/\//g,"%2F")).join("/")}catch(u){return xa(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${u}).`),l}}function el(l,u){if(u==="/")return l;if(!l.toLowerCase().startsWith(u.toLowerCase()))return null;let o=u.endsWith("/")?u.length-1:u.length,c=l.charAt(o);return c&&c!=="/"?null:l.slice(o)||"/"}function h0(l,u="/"){let{pathname:o,search:c="",hash:f=""}=typeof l=="string"?Kr(l):l;return{pathname:o?o.startsWith("/")?o:m0(o,u):u,search:v0(c),hash:y0(f)}}function m0(l,u){let o=u.replace(/\/+$/,"").split("/");return l.split("/").forEach(f=>{f===".."?o.length>1&&o.pop():f!=="."&&o.push(f)}),o.length>1?o.join("/"):"/"}function bd(l,u,o,c){return`Cannot include a '${l}' character in a manually specified \`to.${u}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function p0(l){return l.filter((u,o)=>o===0||u.route.path&&u.route.path.length>0)}function yg(l){let u=p0(l);return u.map((o,c)=>c===u.length-1?o.pathname:o.pathnameBase)}function bg(l,u,o,c=!1){let f;typeof l=="string"?f=Kr(l):(f={...l},Pt(!f.pathname||!f.pathname.includes("?"),bd("?","pathname","search",f)),Pt(!f.pathname||!f.pathname.includes("#"),bd("#","pathname","hash",f)),Pt(!f.search||!f.search.includes("#"),bd("#","search","hash",f)));let m=l===""||f.pathname==="",y=m?"/":f.pathname,b;if(y==null)b=o;else{let j=u.length-1;if(!c&&y.startsWith("..")){let z=y.split("/");for(;z[0]==="..";)z.shift(),j-=1;f.pathname=z.join("/")}b=j>=0?u[j]:"/"}let S=h0(f,b),E=y&&y!=="/"&&y.endsWith("/"),D=(m||y===".")&&o.endsWith("/");return!S.pathname.endsWith("/")&&(E||D)&&(S.pathname+="/"),S}var tl=l=>l.join("/").replace(/\/\/+/g,"/"),g0=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),v0=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,y0=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l;function b0(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}var _g=["POST","PUT","PATCH","DELETE"];new Set(_g);var _0=["GET",..._g];new Set(_0);var $r=w.createContext(null);$r.displayName="DataRouter";var gc=w.createContext(null);gc.displayName="DataRouterState";var Sg=w.createContext({isTransitioning:!1});Sg.displayName="ViewTransition";var S0=w.createContext(new Map);S0.displayName="Fetchers";var E0=w.createContext(null);E0.displayName="Await";var Ta=w.createContext(null);Ta.displayName="Navigation";var Cu=w.createContext(null);Cu.displayName="Location";var Oa=w.createContext({outlet:null,matches:[],isDataRoute:!1});Oa.displayName="Route";var Id=w.createContext(null);Id.displayName="RouteError";function A0(l,{relative:u}={}){Pt(wu(),"useHref() may be used only in the context of a component.");let{basename:o,navigator:c}=w.useContext(Ta),{hash:f,pathname:m,search:y}=Du(l,{relative:u}),b=m;return o!=="/"&&(b=m==="/"?o:tl([o,m])),c.createHref({pathname:b,search:y,hash:f})}function wu(){return w.useContext(Cu)!=null}function Xi(){return Pt(wu(),"useLocation() may be used only in the context of a component."),w.useContext(Cu).location}var Eg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ag(l){w.useContext(Ta).static||w.useLayoutEffect(l)}function x0(){let{isDataRoute:l}=w.useContext(Oa);return l?k0():T0()}function T0(){Pt(wu(),"useNavigate() may be used only in the context of a component.");let l=w.useContext($r),{basename:u,navigator:o}=w.useContext(Ta),{matches:c}=w.useContext(Oa),{pathname:f}=Xi(),m=JSON.stringify(yg(c)),y=w.useRef(!1);return Ag(()=>{y.current=!0}),w.useCallback((S,E={})=>{if(xa(y.current,Eg),!y.current)return;if(typeof S=="number"){o.go(S);return}let D=bg(S,JSON.parse(m),f,E.relative==="path");l==null&&u!=="/"&&(D.pathname=D.pathname==="/"?u:tl([u,D.pathname])),(E.replace?o.replace:o.push)(D,E.state,E)},[u,o,m,f,l])}w.createContext(null);function O0(){let{matches:l}=w.useContext(Oa),u=l[l.length-1];return u?u.params:{}}function Du(l,{relative:u}={}){let{matches:o}=w.useContext(Oa),{pathname:c}=Xi(),f=JSON.stringify(yg(o));return w.useMemo(()=>bg(l,JSON.parse(f),c,u==="path"),[l,f,c,u])}function C0(l,u){return xg(l,u)}function xg(l,u,o,c){var W;Pt(wu(),"useRoutes() may be used only in the context of a component.");let{navigator:f,static:m}=w.useContext(Ta),{matches:y}=w.useContext(Oa),b=y[y.length-1],S=b?b.params:{},E=b?b.pathname:"/",D=b?b.pathnameBase:"/",j=b&&b.route;{let P=j&&j.path||"";Tg(E,!j||P.endsWith("*")||P.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${E}" (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 z=Xi(),q;if(u){let P=typeof u=="string"?Kr(u):u;Pt(D==="/"||((W=P.pathname)==null?void 0:W.startsWith(D)),`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 "${D}" but pathname "${P.pathname}" was given in the \`location\` prop.`),q=P}else q=z;let L=q.pathname||"/",I=L;if(D!=="/"){let P=D.replace(/^\//,"").split("/");I="/"+L.replace(/^\//,"").split("/").slice(P.length).join("/")}let Q=!m&&o&&o.matches&&o.matches.length>0?o.matches:pg(l,{pathname:I});xa(j||Q!=null,`No routes matched location "${q.pathname}${q.search}${q.hash}" `),xa(Q==null||Q[Q.length-1].route.element!==void 0||Q[Q.length-1].route.Component!==void 0||Q[Q.length-1].route.lazy!==void 0,`Matched leaf route at location "${q.pathname}${q.search}${q.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 H=z0(Q&&Q.map(P=>Object.assign({},P,{params:Object.assign({},S,P.params),pathname:tl([D,f.encodeLocation?f.encodeLocation(P.pathname).pathname:P.pathname]),pathnameBase:P.pathnameBase==="/"?D:tl([D,f.encodeLocation?f.encodeLocation(P.pathnameBase).pathname:P.pathnameBase])})),y,o,c);return u&&H?w.createElement(Cu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...q},navigationType:"POP"}},H):H}function w0(){let l=H0(),u=b0(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),o=l instanceof Error?l.stack:null,c="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:c},m={padding:"2px 4px",backgroundColor:c},y=null;return console.error("Error handled by React Router default ErrorBoundary:",l),y=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:m},"ErrorBoundary")," or"," ",w.createElement("code",{style:m},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},u),o?w.createElement("pre",{style:f},o):null,y)}var D0=w.createElement(w0,null),M0=class extends w.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,u){return u.location!==l.location||u.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:u.error,location:u.location,revalidation:l.revalidation||u.revalidation}}componentDidCatch(l,u){console.error("React Router caught the following error during render",l,u)}render(){return this.state.error!==void 0?w.createElement(Oa.Provider,{value:this.props.routeContext},w.createElement(Id.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function N0({routeContext:l,match:u,children:o}){let c=w.useContext($r);return c&&c.static&&c.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=u.route.id),w.createElement(Oa.Provider,{value:l},o)}function z0(l,u=[],o=null,c=null){if(l==null){if(!o)return null;if(o.errors)l=o.matches;else if(u.length===0&&!o.initialized&&o.matches.length>0)l=o.matches;else return null}let f=l,m=o==null?void 0:o.errors;if(m!=null){let S=f.findIndex(E=>E.route.id&&(m==null?void 0:m[E.route.id])!==void 0);Pt(S>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),f=f.slice(0,Math.min(f.length,S+1))}let y=!1,b=-1;if(o)for(let S=0;S=0?f=f.slice(0,b+1):f=[f[0]];break}}}return f.reduceRight((S,E,D)=>{let j,z=!1,q=null,L=null;o&&(j=m&&E.route.id?m[E.route.id]:void 0,q=E.route.errorElement||D0,y&&(b<0&&D===0?(Tg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),z=!0,L=null):b===D&&(z=!0,L=E.route.hydrateFallbackElement||null)));let I=u.concat(f.slice(0,D+1)),Q=()=>{let H;return j?H=q:z?H=L:E.route.Component?H=w.createElement(E.route.Component,null):E.route.element?H=E.route.element:H=S,w.createElement(N0,{match:E,routeContext:{outlet:S,matches:I,isDataRoute:o!=null},children:H})};return o&&(E.route.ErrorBoundary||E.route.errorElement||D===0)?w.createElement(M0,{location:o.location,revalidation:o.revalidation,component:q,error:j,children:Q(),routeContext:{outlet:null,matches:I,isDataRoute:!0}}):Q()},null)}function th(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function R0(l){let u=w.useContext($r);return Pt(u,th(l)),u}function L0(l){let u=w.useContext(gc);return Pt(u,th(l)),u}function j0(l){let u=w.useContext(Oa);return Pt(u,th(l)),u}function eh(l){let u=j0(l),o=u.matches[u.matches.length-1];return Pt(o.route.id,`${l} can only be used on routes that contain a unique "id"`),o.route.id}function U0(){return eh("useRouteId")}function H0(){var c;let l=w.useContext(Id),u=L0("useRouteError"),o=eh("useRouteError");return l!==void 0?l:(c=u.errors)==null?void 0:c[o]}function k0(){let{router:l}=R0("useNavigate"),u=eh("useNavigate"),o=w.useRef(!1);return Ag(()=>{o.current=!0}),w.useCallback(async(f,m={})=>{xa(o.current,Eg),o.current&&(typeof f=="number"?l.navigate(f):await l.navigate(f,{fromRouteId:u,...m}))},[l,u])}var wp={};function Tg(l,u,o){!u&&!wp[l]&&(wp[l]=!0,xa(!1,o))}w.memo(B0);function B0({routes:l,future:u,state:o}){return xg(l,void 0,o,u)}function Nd(l){Pt(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function q0({basename:l="/",children:u=null,location:o,navigationType:c="POP",navigator:f,static:m=!1}){Pt(!wu(),"You cannot render a inside another . You should never have more than one in your app.");let y=l.replace(/^\/*/,"/"),b=w.useMemo(()=>({basename:y,navigator:f,static:m,future:{}}),[y,f,m]);typeof o=="string"&&(o=Kr(o));let{pathname:S="/",search:E="",hash:D="",state:j=null,key:z="default"}=o,q=w.useMemo(()=>{let L=el(S,y);return L==null?null:{location:{pathname:L,search:E,hash:D,state:j,key:z},navigationType:c}},[y,S,E,D,j,z,c]);return xa(q!=null,` is not able to match the URL "${S}${E}${D}" because it does not start with the basename, so the won't render anything.`),q==null?null:w.createElement(Ta.Provider,{value:b},w.createElement(Cu.Provider,{children:u,value:q}))}function Y0({children:l,location:u}){return C0(zd(l),u)}function zd(l,u=[]){let o=[];return w.Children.forEach(l,(c,f)=>{if(!w.isValidElement(c))return;let m=[...u,f];if(c.type===w.Fragment){o.push.apply(o,zd(c.props.children,m));return}Pt(c.type===Nd,`[${typeof c.type=="string"?c.type:c.type.name}] is not a component. All component children of must be a or `),Pt(!c.props.index||!c.props.children,"An index route cannot have child routes.");let y={id:c.props.id||m.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(y.children=zd(c.props.children,m)),o.push(y)}),o}var sc="get",uc="application/x-www-form-urlencoded";function vc(l){return l!=null&&typeof l.tagName=="string"}function X0(l){return vc(l)&&l.tagName.toLowerCase()==="button"}function G0(l){return vc(l)&&l.tagName.toLowerCase()==="form"}function V0(l){return vc(l)&&l.tagName.toLowerCase()==="input"}function Q0(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function Z0(l,u){return l.button===0&&(!u||u==="_self")&&!Q0(l)}var lc=null;function K0(){if(lc===null)try{new FormData(document.createElement("form"),0),lc=!1}catch{lc=!0}return lc}var $0=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function _d(l){return l!=null&&!$0.has(l)?(xa(!1,`"${l}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${uc}"`),null):l}function F0(l,u){let o,c,f,m,y;if(G0(l)){let b=l.getAttribute("action");c=b?el(b,u):null,o=l.getAttribute("method")||sc,f=_d(l.getAttribute("enctype"))||uc,m=new FormData(l)}else if(X0(l)||V0(l)&&(l.type==="submit"||l.type==="image")){let b=l.form;if(b==null)throw new Error('Cannot submit a