function G5(e,t){for(var n=0;ni[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&i(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();function Yy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zy={exports:{}},Oc={};/** * @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 q5=Symbol.for("react.transitional.element"),K5=Symbol.for("react.fragment");function Xy(e,t,n){var i=null;if(n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),"key"in t){n={};for(var a in t)a!=="key"&&(n[a]=t[a])}else n=t;return t=n.ref,{$$typeof:q5,type:e,key:i,ref:t!==void 0?t:null,props:n}}Oc.Fragment=K5;Oc.jsx=Xy;Oc.jsxs=Xy;Zy.exports=Oc;var r=Zy.exports,Jy={exports:{}},P={};/** * @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 hh=Symbol.for("react.transitional.element"),$5=Symbol.for("react.portal"),Y5=Symbol.for("react.fragment"),Z5=Symbol.for("react.strict_mode"),X5=Symbol.for("react.profiler"),J5=Symbol.for("react.consumer"),Q5=Symbol.for("react.context"),eS=Symbol.for("react.forward_ref"),tS=Symbol.for("react.suspense"),nS=Symbol.for("react.memo"),Qy=Symbol.for("react.lazy"),iS=Symbol.for("react.activity"),am=Symbol.iterator;function rS(e){return e===null||typeof e!="object"?null:(e=am&&e[am]||e["@@iterator"],typeof e=="function"?e:null)}var ex={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},tx=Object.assign,nx={};function Ga(e,t,n){this.props=e,this.context=t,this.refs=nx,this.updater=n||ex}Ga.prototype.isReactComponent={};Ga.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Ga.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ix(){}ix.prototype=Ga.prototype;function gh(e,t,n){this.props=e,this.context=t,this.refs=nx,this.updater=n||ex}var mh=gh.prototype=new ix;mh.constructor=gh;tx(mh,Ga.prototype);mh.isPureReactComponent=!0;var sm=Array.isArray;function Hd(){}var we={H:null,A:null,T:null,S:null},rx=Object.prototype.hasOwnProperty;function ph(e,t,n){var i=n.ref;return{$$typeof:hh,type:e,key:t,ref:i!==void 0?i:null,props:n}}function aS(e,t){return ph(e.type,t,e.props)}function yh(e){return typeof e=="object"&&e!==null&&e.$$typeof===hh}function sS(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var lm=/\/+/g;function vu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?sS(""+e.key):t.toString(36)}function lS(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Hd,Hd):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function ta(e,t,n,i,a){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(s){case"bigint":case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case hh:case $5:l=!0;break;case Qy:return l=e._init,ta(l(e._payload),t,n,i,a)}}if(l)return a=a(e),l=i===""?"."+vu(e,0):i,sm(a)?(n="",l!=null&&(n=l.replace(lm,"$&/")+"/"),ta(a,t,n,"",function(u){return u})):a!=null&&(yh(a)&&(a=aS(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(lm,"$&/")+"/")+l)),t.push(a)),1;l=0;var o=i===""?".":i+":";if(sm(e))for(var c=0;c>>1,A=M[Z];if(0>>1;Za(Yr,L))bna(We,Yr)?(M[Z]=We,M[bn]=L,Z=bn):(M[Z]=Yr,M[Yn]=L,Z=Yn);else if(bna(We,L))M[Z]=We,M[bn]=L,Z=bn;else break e}}return V}function a(M,V){var L=M.sortIndex-V.sortIndex;return L!==0?L:M.id-V.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,o=l.now();e.unstable_now=function(){return l.now()-o}}var c=[],u=[],d=1,h=null,f=3,p=!1,v=!1,S=!1,j=!1,y=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;function x(M){for(var V=n(u);V!==null;){if(V.callback===null)i(u);else if(V.startTime<=M)i(u),V.sortIndex=V.expirationTime,t(c,V);else break;V=n(u)}}function w(M){if(S=!1,x(M),!v)if(n(c)!==null)v=!0,T||(T=!0,ie());else{var V=n(u);V!==null&&oe(w,V.startTime-M)}}var T=!1,E=-1,k=5,B=-1;function D(){return j?!0:!(e.unstable_now()-BM&&D());){var Z=h.callback;if(typeof Z=="function"){h.callback=null,f=h.priorityLevel;var A=Z(h.expirationTime<=M);if(M=e.unstable_now(),typeof A=="function"){h.callback=A,x(M),V=!0;break t}h===n(c)&&i(c),x(M)}else i(c);h=n(c)}if(h!==null)V=!0;else{var Bt=n(u);Bt!==null&&oe(w,Bt.startTime-M),V=!1}}break e}finally{h=null,f=L,p=!1}V=void 0}}finally{V?ie():T=!1}}}var ie;if(typeof m=="function")ie=function(){m(U)};else if(typeof MessageChannel<"u"){var Je=new MessageChannel,Ge=Je.port2;Je.port1.onmessage=U,ie=function(){Ge.postMessage(null)}}else ie=function(){y(U,0)};function oe(M,V){E=y(function(){M(e.unstable_now())},V)}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(M){M.callback=null},e.unstable_forceFrameRate=function(M){0>M||125Z?(M.sortIndex=L,t(u,M),n(c)===null&&M===n(u)&&(S?(g(E),E=-1):S=!0,oe(w,L-Z))):(M.sortIndex=A,t(c,M),v||p||(v=!0,T||(T=!0,ie()))),M},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(M){var V=f;return function(){var L=f;f=V;try{return M.apply(this,arguments)}finally{f=L}}}})(lx);sx.exports=lx;var dS=sx.exports,ox={exports:{}},Et={};/** * @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 fS=b;function cx(e){var t="https://react.dev/errors/"+e;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ux)}catch(e){console.error(e)}}ux(),ox.exports=Et;var mS=ox.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 Xe=dS,dx=b,pS=mS;function z(e){var t="https://react.dev/errors/"+e;if(1oa||(e.current=Ud[oa],Ud[oa]=null,oa--)}function ve(e,t){oa++,Ud[oa]=e.current,e.current=t}var Un=Kn(null),Qs=Kn(null),qi=Kn(null),Xo=Kn(null);function Jo(e,t){switch(ve(qi,t),ve(Qs,e),ve(Un,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?pp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=pp(t),e=H1(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}it(Un),ve(Un,e)}function Ca(){it(Un),it(Qs),it(qi)}function _d(e){e.memoizedState!==null&&ve(Xo,e);var t=Un.current,n=H1(t,e.type);t!==n&&(ve(Qs,e),ve(Un,n))}function Qo(e){Qs.current===e&&(it(Un),it(Qs)),Xo.current===e&&(it(Xo),ul._currentValue=Dr)}var Su,dm;function jr(e){if(Su===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Su=t&&t[1]||"",dm=-1)":-1a||c[i]!==u[a]){var d=` `+c[i].replace(" at new "," at ");return e.displayName&&d.includes("")&&(d=d.replace("",e.displayName)),d}while(1<=i&&0<=a);break}}}finally{ju=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?jr(n):""}function SS(e,t){switch(e.tag){case 26:case 27:case 5:return jr(e.type);case 16:return jr("Lazy");case 13:return e.child!==t&&t!==null?jr("Suspense Fallback"):jr("Suspense");case 19:return jr("SuspenseList");case 0:case 15:return wu(e.type,!1);case 11:return wu(e.type.render,!1);case 1:return wu(e.type,!0);case 31:return jr("Activity");default:return""}}function fm(e){try{var t="",n=null;do t+=SS(e,n),n=e,e=e.return;while(e);return t}catch(i){return` Error generating stack: `+i.message+` `+i.stack}}var Gd=Object.prototype.hasOwnProperty,vh=Xe.unstable_scheduleCallback,ku=Xe.unstable_cancelCallback,jS=Xe.unstable_shouldYield,wS=Xe.unstable_requestPaint,$t=Xe.unstable_now,kS=Xe.unstable_getCurrentPriorityLevel,xx=Xe.unstable_ImmediatePriority,bx=Xe.unstable_UserBlockingPriority,ec=Xe.unstable_NormalPriority,zS=Xe.unstable_LowPriority,vx=Xe.unstable_IdlePriority,TS=Xe.log,ES=Xe.unstable_setDisableYieldValue,vl=null,Yt=null;function Vi(e){if(typeof TS=="function"&&ES(e),Yt&&typeof Yt.setStrictMode=="function")try{Yt.setStrictMode(vl,e)}catch{}}var Zt=Math.clz32?Math.clz32:MS,BS=Math.log,DS=Math.LN2;function MS(e){return e>>>=0,e===0?32:31-(BS(e)/DS|0)|0}var Kl=256,$l=262144,Yl=4194304;function wr(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function _c(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var a=0,s=e.suspendedLanes,l=e.pingedLanes;e=e.warmLanes;var o=i&134217727;return o!==0?(i=o&~s,i!==0?a=wr(i):(l&=o,l!==0?a=wr(l):n||(n=o&~e,n!==0&&(a=wr(n))))):(o=i&~s,o!==0?a=wr(o):l!==0?a=wr(l):n||(n=i&~e,n!==0&&(a=wr(n)))),a===0?0:t!==0&&t!==a&&!(t&s)&&(s=a&-a,n=t&-t,s>=n||s===32&&(n&4194048)!==0)?t:a}function Sl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function AS(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Sx(){var e=Yl;return Yl<<=1,!(Yl&62914560)&&(Yl=4194304),e}function zu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function jl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function CS(e,t,n,i,a,s){var l=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,c=e.expirationTimes,u=e.hiddenUpdates;for(n=l&~n;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var NS=/[\n"\\]/g;function cn(e){return e.replace(NS,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function $d(e,t,n,i,a,s,l,o){e.name="",l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.type=l:e.removeAttribute("type"),t!=null?l==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+sn(t)):e.value!==""+sn(t)&&(e.value=""+sn(t)):l!=="submit"&&l!=="reset"||e.removeAttribute("value"),t!=null?Yd(e,l,sn(t)):n!=null?Yd(e,l,sn(n)):i!=null&&e.removeAttribute("value"),a==null&&s!=null&&(e.defaultChecked=!!s),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+sn(o):e.removeAttribute("name")}function Mx(e,t,n,i,a,s,l,o){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||n!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){Kd(e);return}n=n!=null?""+sn(n):"",t=t!=null?""+sn(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}i=i??a,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=o?e.checked:!!i,e.defaultChecked=!!i,l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.name=l),Kd(e)}function Yd(e,t,n){t==="number"&&tc(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function za(e,t,n,i){if(e=e.options,t){t={};for(var a=0;a"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xd=!1;if(fi)try{var us={};Object.defineProperty(us,"passive",{get:function(){Xd=!0}}),window.addEventListener("test",us,us),window.removeEventListener("test",us,us)}catch{Xd=!1}var Oi=null,Th=null,Mo=null;function Wx(){if(Mo)return Mo;var e,t=Th,n=t.length,i,a="value"in Oi?Oi.value:Oi.textContent,s=a.length;for(e=0;e=Rs),wm=" ",km=!1;function Hx(e,t){switch(e){case"keyup":return fj.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var da=!1;function gj(e,t){switch(e){case"compositionend":return Nx(t);case"keypress":return t.which!==32?null:(km=!0,wm);case"textInput":return e=t.data,e===wm&&km?null:e;default:return null}}function mj(e,t){if(da)return e==="compositionend"||!Bh&&Hx(e,t)?(e=Wx(),Mo=Th=Oi=null,da=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Dm(n)}}function Px(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Px(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ux(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=tc(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=tc(e.document)}return t}function Dh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var wj=fi&&"documentMode"in document&&11>=document.documentMode,fa=null,Jd=null,Ls=null,Qd=!1;function Am(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Qd||fa==null||fa!==tc(i)||(i=fa,"selectionStart"in i&&Dh(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Ls&&nl(Ls,i)||(Ls=i,i=bc(Jd,"onSelect"),0>=l,a-=l,Vn=1<<32-Zt(t)+a|n<k?(B=E,E=null):B=E.sibling;var D=f(y,E,m[k],x);if(D===null){E===null&&(E=B);break}e&&E&&D.alternate===null&&t(y,E),g=s(D,g,k),T===null?w=D:T.sibling=D,T=D,E=B}if(k===m.length)return n(y,E),ne&&ri(y,k),w;if(E===null){for(;kk?(B=E,E=null):B=E.sibling;var U=f(y,E,D.value,x);if(U===null){E===null&&(E=B);break}e&&E&&U.alternate===null&&t(y,E),g=s(U,g,k),T===null?w=U:T.sibling=U,T=U,E=B}if(D.done)return n(y,E),ne&&ri(y,k),w;if(E===null){for(;!D.done;k++,D=m.next())D=h(y,D.value,x),D!==null&&(g=s(D,g,k),T===null?w=D:T.sibling=D,T=D);return ne&&ri(y,k),w}for(E=i(E);!D.done;k++,D=m.next())D=p(E,y,k,D.value,x),D!==null&&(e&&D.alternate!==null&&E.delete(D.key===null?k:D.key),g=s(D,g,k),T===null?w=D:T.sibling=D,T=D);return e&&E.forEach(function(ie){return t(y,ie)}),ne&&ri(y,k),w}function j(y,g,m,x){if(typeof m=="object"&&m!==null&&m.type===la&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case ql:e:{for(var w=m.key;g!==null;){if(g.key===w){if(w=m.type,w===la){if(g.tag===7){n(y,g.sibling),x=a(g,m.props.children),x.return=y,y=x;break e}}else if(g.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Di&&kr(w)===g.type){n(y,g.sibling),x=a(g,m.props),fs(x,m),x.return=y,y=x;break e}n(y,g);break}else t(y,g);g=g.sibling}m.type===la?(x=Mr(m.props.children,y.mode,x,m.key),x.return=y,y=x):(x=Co(m.type,m.key,m.props,null,y.mode,x),fs(x,m),x.return=y,y=x)}return l(y);case zs:e:{for(w=m.key;g!==null;){if(g.key===w)if(g.tag===4&&g.stateNode.containerInfo===m.containerInfo&&g.stateNode.implementation===m.implementation){n(y,g.sibling),x=a(g,m.children||[]),x.return=y,y=x;break e}else{n(y,g);break}else t(y,g);g=g.sibling}x=Ru(m,y.mode,x),x.return=y,y=x}return l(y);case Di:return m=kr(m),j(y,g,m,x)}if(Ts(m))return v(y,g,m,x);if(cs(m)){if(w=cs(m),typeof w!="function")throw Error(z(150));return m=w.call(m),S(y,g,m,x)}if(typeof m.then=="function")return j(y,g,Ql(m),x);if(m.$$typeof===si)return j(y,g,Jl(y,m),x);eo(y,m)}return typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint"?(m=""+m,g!==null&&g.tag===6?(n(y,g.sibling),x=a(g,m),x.return=y,y=x):(n(y,g),x=Fu(m,y.mode,x),x.return=y,y=x),l(y)):n(y,g)}return function(y,g,m,x){try{al=0;var w=j(y,g,m,x);return Ba=null,w}catch(E){if(E===Ya||E===Zc)throw E;var T=qt(29,E,null,y.mode);return T.lanes=x,T.return=y,T}finally{}}}var Vr=rb(!0),ab=rb(!1),Mi=!1;function Nh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function $i(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Yi(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,se&2){var a=i.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),i.pending=t,t=ic(e),Zx(e,null,n),t}return Yc(e,i,t,n),ic(e)}function Ns(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,wx(e,n)}}function Lu(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var a=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var l={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};s===null?a=s=l:s=s.next=l,n=n.next}while(n!==null);s===null?a=s=t:s=s.next=t}else a=s=t;n={baseState:i.baseState,firstBaseUpdate:a,lastBaseUpdate:s,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var of=!1;function Is(){if(of){var e=Ea;if(e!==null)throw e}}function Vs(e,t,n,i){of=!1;var a=e.updateQueue;Mi=!1;var s=a.firstBaseUpdate,l=a.lastBaseUpdate,o=a.shared.pending;if(o!==null){a.shared.pending=null;var c=o,u=c.next;c.next=null,l===null?s=u:l.next=u,l=c;var d=e.alternate;d!==null&&(d=d.updateQueue,o=d.lastBaseUpdate,o!==l&&(o===null?d.firstBaseUpdate=u:o.next=u,d.lastBaseUpdate=c))}if(s!==null){var h=a.baseState;l=0,d=u=c=null,o=s;do{var f=o.lane&-536870913,p=f!==o.lane;if(p?(Q&f)===f:(i&f)===f){f!==0&&f===Wa&&(of=!0),d!==null&&(d=d.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var v=e,S=o;f=t;var j=n;switch(S.tag){case 1:if(v=S.payload,typeof v=="function"){h=v.call(j,h,f);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=S.payload,f=typeof v=="function"?v.call(j,h,f):v,f==null)break e;h=ke({},h,f);break e;case 2:Mi=!0}}f=o.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=a.callbacks,p===null?a.callbacks=[f]:p.push(f))}else p={lane:f,tag:o.tag,payload:o.payload,callback:o.callback,next:null},d===null?(u=d=p,c=h):d=d.next=p,l|=f;if(o=o.next,o===null){if(o=a.shared.pending,o===null)break;p=o,o=p.next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}while(!0);d===null&&(c=h),a.baseState=c,a.firstBaseUpdate=u,a.lastBaseUpdate=d,s===null&&(a.shared.lanes=0),rr|=l,e.lanes=l,e.memoizedState=h}}function sb(e,t){if(typeof e!="function")throw Error(z(191,e));e.call(t)}function lb(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;es?s:8;var l=I.T,o={};I.T=o,Xh(e,!1,t,n);try{var c=a(),u=I.S;if(u!==null&&u(o,c),c!==null&&typeof c=="object"&&typeof c.then=="function"){var d=Cj(c,i);Os(e,t,d,Xt(e))}else Os(e,t,i,Xt(e))}catch(h){Os(e,t,{then:function(){},status:"rejected",reason:h},Xt())}finally{le.p=s,l!==null&&o.types!==null&&(l.types=o.types),I.T=l}}function Nj(){}function hf(e,t,n,i){if(e.tag!==5)throw Error(z(476));var a=Cb(e).queue;Ab(e,a,t,Dr,n===null?Nj:function(){return Fb(e),n(i)})}function Cb(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Dr,baseState:Dr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gi,lastRenderedState:Dr},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gi,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Fb(e){var t=Cb(e);t.next===null&&(t=e.alternate.memoizedState),Os(e,t.next.queue,{},Xt())}function Zh(){return dt(ul)}function Rb(){return Fe().memoizedState}function Wb(){return Fe().memoizedState}function Ij(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Xt();e=$i(n);var i=Yi(t,e,n);i!==null&&(Lt(i,t,n),Ns(i,t,n)),t={cache:Wh()},e.payload=t;return}t=t.return}}function Vj(e,t,n){var i=Xt();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},eu(e)?Hb(t,n):(n=Ah(e,t,n,i),n!==null&&(Lt(n,e,i),Nb(n,t,i)))}function Lb(e,t,n){var i=Xt();Os(e,t,n,i)}function Os(e,t,n,i){var a={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(eu(e))Hb(t,a);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var l=t.lastRenderedState,o=s(l,n);if(a.hasEagerState=!0,a.eagerState=o,Qt(o,l))return Yc(e,t,a,0),xe===null&&$c(),!1}catch{}finally{}if(n=Ah(e,t,a,i),n!==null)return Lt(n,e,i),Nb(n,t,i),!0}return!1}function Xh(e,t,n,i){if(i={lane:2,revertLane:sg(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},eu(e)){if(t)throw Error(z(479))}else t=Ah(e,n,i,2),t!==null&&Lt(t,e,2)}function eu(e){var t=e.alternate;return e===_||t!==null&&t===_}function Hb(e,t){Da=cc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Nb(e,t,n){if(n&4194048){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,wx(e,n)}}var ll={readContext:dt,use:Jc,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useLayoutEffect:De,useInsertionEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useSyncExternalStore:De,useId:De,useHostTransitionStatus:De,useFormState:De,useActionState:De,useOptimistic:De,useMemoCache:De,useCacheRefresh:De};ll.useEffectEvent=De;var Ib={readContext:dt,use:Jc,useCallback:function(e,t){return bt().memoizedState=[e,t===void 0?null:t],e},useContext:dt,useEffect:qm,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Wo(4194308,4,Tb.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Wo(4194308,4,e,t)},useInsertionEffect:function(e,t){Wo(4,2,e,t)},useMemo:function(e,t){var n=bt();t=t===void 0?null:t;var i=e();if(Or){Vi(!0);try{e()}finally{Vi(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=bt();if(n!==void 0){var a=n(t);if(Or){Vi(!0);try{n(t)}finally{Vi(!1)}}}else a=t;return i.memoizedState=i.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},i.queue=e,e=e.dispatch=Vj.bind(null,_,e),[i.memoizedState,e]},useRef:function(e){var t=bt();return e={current:e},t.memoizedState=e},useState:function(e){e=df(e);var t=e.queue,n=Lb.bind(null,_,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:$h,useDeferredValue:function(e,t){var n=bt();return Yh(n,e,t)},useTransition:function(){var e=df(!1);return e=Ab.bind(null,_,e.queue,!0,!1),bt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=_,a=bt();if(ne){if(n===void 0)throw Error(z(407));n=n()}else{if(n=t(),xe===null)throw Error(z(349));Q&127||fb(i,t,n)}a.memoizedState=n;var s={value:n,getSnapshot:t};return a.queue=s,qm(gb.bind(null,i,s,e),[e]),i.flags|=2048,Ha(9,{destroy:void 0},hb.bind(null,i,s,n,t),null),n},useId:function(){var e=bt(),t=xe.identifierPrefix;if(ne){var n=On,i=Vn;n=(i&~(1<<32-Zt(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=uc++,0<\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof i.is=="string"?l.createElement("select",{is:i.is}):l.createElement("select"),i.multiple?s.multiple=!0:i.size&&(s.size=i.size);break;default:s=typeof i.is=="string"?l.createElement(a,{is:i.is}):l.createElement(a)}}s[ct]=t,s[It]=i;e:for(l=t.child;l!==null;){if(l.tag===5||l.tag===6)s.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;l.sibling===null;){if(l.return===null||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}t.stateNode=s;e:switch(ht(s,a,i),a){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Xn(t)}}return Se(t),_u(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Xn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(z(166));if(e=qi.current,Zr(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,a=ut,a!==null)switch(a.tag){case 27:case 5:i=a.memoizedProps}e[ct]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||L1(e.nodeValue,n)),e||nr(t,!0)}else e=vc(e).createTextNode(i),e[ct]=t,t.stateNode=e}return Se(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=Zr(t),n!==null){if(e===null){if(!i)throw Error(z(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(z(557));e[ct]=t}else Nr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Se(t),e=!1}else n=Wu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Gt(t),t):(Gt(t),null);if(t.flags&128)throw Error(z(558))}return Se(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Zr(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(z(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(z(317));a[ct]=t}else Nr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Se(t),a=!1}else a=Wu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Gt(t),t):(Gt(t),null)}return Gt(t),t.flags&128?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,a=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(a=i.alternate.memoizedState.cachePool.pool),s=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(s=i.memoizedState.cachePool.pool),s!==a&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),to(t,t.updateQueue),Se(t),null);case 4:return Ca(),e===null&&lg(t.stateNode.containerInfo),Se(t),null;case 10:return ui(t.type),Se(t),null;case 19:if(it(Ce),i=t.memoizedState,i===null)return Se(t),null;if(a=(t.flags&128)!==0,s=i.rendering,s===null)if(a)hs(i,!1);else{if(Ae!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=oc(e),s!==null){for(t.flags|=128,hs(i,!1),e=s.updateQueue,t.updateQueue=e,to(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Xx(n,e),n=n.sibling;return ve(Ce,Ce.current&1|2),ne&&ri(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&$t()>gc&&(t.flags|=128,a=!0,hs(i,!1),t.lanes=4194304)}else{if(!a)if(e=oc(s),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,to(t,e),hs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!ne)return Se(t),null}else 2*$t()-i.renderingStartTime>gc&&n!==536870912&&(t.flags|=128,a=!0,hs(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(e=i.last,e!==null?e.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=$t(),e.sibling=null,n=Ce.current,ve(Ce,a?n&1|2:n&1),ne&&ri(t,i.treeForkCount),e):(Se(t),null);case 22:case 23:return Gt(t),Ih(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?n&536870912&&!(t.flags&128)&&(Se(t),t.subtreeFlags&6&&(t.flags|=8192)):Se(t),n=t.updateQueue,n!==null&&to(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&it(Ar),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ui(Oe),Se(t),null;case 25:return null;case 30:return null}throw Error(z(156,t.tag))}function Gj(e,t){switch(Rh(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ui(Oe),Ca(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Qo(t),null;case 31:if(t.memoizedState!==null){if(Gt(t),t.alternate===null)throw Error(z(340));Nr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Gt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));Nr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return it(Ce),null;case 4:return Ca(),null;case 10:return ui(t.type),null;case 22:case 23:return Gt(t),Ih(),e!==null&&it(Ar),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ui(Oe),null;case 25:return null;default:return null}}function Xb(e,t){switch(Rh(t),t.tag){case 3:ui(Oe),Ca();break;case 26:case 27:case 5:Qo(t);break;case 4:Ca();break;case 31:t.memoizedState!==null&&Gt(t);break;case 13:Gt(t);break;case 19:it(Ce);break;case 10:ui(t.type);break;case 22:case 23:Gt(t),Ih(),e!==null&&it(Ar);break;case 24:ui(Oe)}}function El(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var a=i.next;n=a;do{if((n.tag&e)===e){i=void 0;var s=n.create,l=n.inst;i=s(),l.destroy=i}n=n.next}while(n!==a)}}catch(o){de(t,t.return,o)}}function ir(e,t,n){try{var i=t.updateQueue,a=i!==null?i.lastEffect:null;if(a!==null){var s=a.next;i=s;do{if((i.tag&e)===e){var l=i.inst,o=l.destroy;if(o!==void 0){l.destroy=void 0,a=t;var c=n,u=o;try{u()}catch(d){de(a,c,d)}}}i=i.next}while(i!==s)}}catch(d){de(t,t.return,d)}}function Jb(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{lb(t,n)}catch(i){de(e,e.return,i)}}}function Qb(e,t,n){n.props=Pr(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){de(e,t,i)}}function Ps(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(a){de(e,t,a)}}function Pn(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(a){de(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){de(e,t,a)}else n.current=null}function e1(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(a){de(e,e.return,a)}}function Gu(e,t,n){try{var i=e.stateNode;h4(i,e.type,n,t),i[It]=t}catch(a){de(e,e.return,a)}}function t1(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&cr(e.type)||e.tag===4}function qu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||t1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&cr(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function xf(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=li));else if(i!==4&&(i===27&&cr(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(xf(e,t,n),e=e.sibling;e!==null;)xf(e,t,n),e=e.sibling}function hc(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&cr(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(hc(e,t,n),e=e.sibling;e!==null;)hc(e,t,n),e=e.sibling}function n1(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);ht(t,i,n),t[ct]=e,t[It]=n}catch(s){de(e,e.return,s)}}var ai=!1,Ve=!1,Ku=!1,ap=typeof WeakSet=="function"?WeakSet:Set,tt=null;function qj(e,t){if(e=e.containerInfo,zf=kc,e=Ux(e),Dh(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,s=i.focusNode;i=i.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var l=0,o=-1,c=-1,u=0,d=0,h=e,f=null;t:for(;;){for(var p;h!==n||a!==0&&h.nodeType!==3||(o=l+a),h!==s||i!==0&&h.nodeType!==3||(c=l+i),h.nodeType===3&&(l+=h.nodeValue.length),(p=h.firstChild)!==null;)f=h,h=p;for(;;){if(h===e)break t;if(f===n&&++u===a&&(o=l),f===s&&++d===i&&(c=l),(p=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=p}n=o===-1||c===-1?null:{start:o,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Tf={focusedElem:e,selectionRange:n},kc=!1,tt=t;tt!==null;)if(t=tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,tt=e;else for(;tt!==null;){switch(t=tt,s=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n title"))),ht(s,i,n),s[ct]=e,nt(s),i=s;break e;case"link":var l=zp("link","href",a).get(i+(n.href||""));if(l){for(var o=0;oj&&(l=j,j=S,S=l);var y=Mm(o,S),g=Mm(o,j);if(y&&g&&(p.rangeCount!==1||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==g.node||p.focusOffset!==g.offset)){var m=h.createRange();m.setStart(y.node,y.offset),p.removeAllRanges(),S>j?(p.addRange(m),p.extend(g.node,g.offset)):(m.setEnd(g.node,g.offset),p.addRange(m))}}}}for(h=[],p=o;p=p.parentNode;)p.nodeType===1&&h.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;on?32:n,I.T=null,n=Sf,Sf=null;var s=Xi,l=di;if(Ye=0,Ia=Xi=null,di=0,se&6)throw Error(z(331));var o=se;if(se|=4,h1(s.current),u1(s,s.current,l,n),se=o,Bl(0,!1),Yt&&typeof Yt.onPostCommitFiberRoot=="function")try{Yt.onPostCommitFiberRoot(vl,s)}catch{}return!0}finally{le.p=a,I.T=i,B1(e,t)}}function cp(e,t,n){t=un(n,t),t=mf(e.stateNode,t,2),e=Yi(e,t,2),e!==null&&(jl(e,2),$n(e))}function de(e,t,n){if(e.tag===3)cp(e,e,n);else for(;t!==null;){if(t.tag===3){cp(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Zi===null||!Zi.has(i))){e=un(n,e),n=_b(2),i=Yi(t,n,2),i!==null&&(Gb(n,i,t,e),jl(i,2),$n(i));break}}t=t.return}}function Yu(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new Yj;var a=new Set;i.set(t,a)}else a=i.get(t),a===void 0&&(a=new Set,i.set(t,a));a.has(n)||(ig=!0,a.add(n),e=e4.bind(null,e,t,n),t.then(e,e))}function e4(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,xe===e&&(Q&n)===n&&(Ae===4||Ae===3&&(Q&62914560)===Q&&300>$t()-tu?!(se&2)&&Va(e,0):rg|=n,Na===Q&&(Na=0)),$n(e)}function M1(e,t){t===0&&(t=Sx()),e=qr(e,t),e!==null&&(jl(e,t),$n(e))}function t4(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),M1(e,n)}function n4(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(z(314))}i!==null&&i.delete(t),M1(e,n)}function i4(e,t){return vh(e,t)}var yc=null,ia=null,wf=!1,xc=!1,Zu=!1,_i=0;function $n(e){e!==ia&&e.next===null&&(ia===null?yc=ia=e:ia=ia.next=e),xc=!0,wf||(wf=!0,a4())}function Bl(e,t){if(!Zu&&xc){Zu=!0;do for(var n=!1,i=yc;i!==null;){if(e!==0){var a=i.pendingLanes;if(a===0)var s=0;else{var l=i.suspendedLanes,o=i.pingedLanes;s=(1<<31-Zt(42|e)+1)-1,s&=a&~(l&~o),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(n=!0,up(i,s))}else s=Q,s=_c(i,i===xe?s:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),!(s&3)||Sl(i,s)||(n=!0,up(i,s));i=i.next}while(n);Zu=!1}}function r4(){A1()}function A1(){xc=wf=!1;var e=0;_i!==0&&m4()&&(e=_i);for(var t=$t(),n=null,i=yc;i!==null;){var a=i.next,s=C1(i,t);s===0?(i.next=null,n===null?yc=a:n.next=a,a===null&&(ia=n)):(n=i,(e!==0||s&3)&&(xc=!0)),i=a}Ye!==0&&Ye!==5||Bl(e),_i!==0&&(_i=0)}function C1(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,s=e.pendingLanes&-62914561;0o)break;var d=c.transferSize,h=c.initiatorType;d&&mp(h)&&(c=c.responseEnd,l+=d*(c"u"?null:document;function O1(e,t,n){var i=Xa;if(i&&typeof t=="string"&&t){var a=cn(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),jp.has(a)||(jp.add(a),e={rel:e,crossOrigin:n,href:t},i.querySelector(a)===null&&(t=i.createElement("link"),ht(t,"link",e),nt(t),i.head.appendChild(t)))}}function k4(e){xi.D(e),O1("dns-prefetch",e,null)}function z4(e,t){xi.C(e,t),O1("preconnect",e,t)}function T4(e,t,n){xi.L(e,t,n);var i=Xa;if(i&&e&&t){var a='link[rel="preload"][as="'+cn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+cn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+cn(n.imageSizes)+'"]')):a+='[href="'+cn(e)+'"]';var s=a;switch(t){case"style":s=Oa(e);break;case"script":s=Ja(e)}mn.has(s)||(e=ke({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),mn.set(s,e),i.querySelector(a)!==null||t==="style"&&i.querySelector(Dl(s))||t==="script"&&i.querySelector(Ml(s))||(t=i.createElement("link"),ht(t,"link",e),nt(t),i.head.appendChild(t)))}}function E4(e,t){xi.m(e,t);var n=Xa;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+cn(i)+'"][href="'+cn(e)+'"]',s=a;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Ja(e)}if(!mn.has(s)&&(e=ke({rel:"modulepreload",href:e},t),mn.set(s,e),n.querySelector(a)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ml(s)))return}i=n.createElement("link"),ht(i,"link",e),nt(i),n.head.appendChild(i)}}}function B4(e,t,n){xi.S(e,t,n);var i=Xa;if(i&&e){var a=ka(i).hoistableStyles,s=Oa(e);t=t||"default";var l=a.get(s);if(!l){var o={loading:0,preload:null};if(l=i.querySelector(Dl(s)))o.loading=5;else{e=ke({rel:"stylesheet",href:e,"data-precedence":t},n),(n=mn.get(s))&&og(e,n);var c=l=i.createElement("link");nt(c),ht(c,"link",e),c._p=new Promise(function(u,d){c.onload=u,c.onerror=d}),c.addEventListener("load",function(){o.loading|=1}),c.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Io(l,t,i)}l={type:"stylesheet",instance:l,count:1,state:o},a.set(s,l)}}}function D4(e,t){xi.X(e,t);var n=Xa;if(n&&e){var i=ka(n).hoistableScripts,a=Ja(e),s=i.get(a);s||(s=n.querySelector(Ml(a)),s||(e=ke({src:e,async:!0},t),(t=mn.get(a))&&cg(e,t),s=n.createElement("script"),nt(s),ht(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},i.set(a,s))}}function M4(e,t){xi.M(e,t);var n=Xa;if(n&&e){var i=ka(n).hoistableScripts,a=Ja(e),s=i.get(a);s||(s=n.querySelector(Ml(a)),s||(e=ke({src:e,async:!0,type:"module"},t),(t=mn.get(a))&&cg(e,t),s=n.createElement("script"),nt(s),ht(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},i.set(a,s))}}function wp(e,t,n,i){var a=(a=qi.current)?Sc(a):null;if(!a)throw Error(z(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Oa(n.href),n=ka(a).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Oa(n.href);var s=ka(a).hoistableStyles,l=s.get(e);if(l||(a=a.ownerDocument||a,l={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,l),(s=a.querySelector(Dl(e)))&&!s._p&&(l.instance=s,l.state.loading=5),mn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mn.set(e,n),s||A4(a,e,n,l.state))),t&&i===null)throw Error(z(528,""));return l}if(t&&i!==null)throw Error(z(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ja(n),n=ka(a).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(z(444,e))}}function Oa(e){return'href="'+cn(e)+'"'}function Dl(e){return'link[rel="stylesheet"]['+e+"]"}function P1(e){return ke({},e,{"data-precedence":e.precedence,precedence:null})}function A4(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),ht(t,"link",n),nt(t),e.head.appendChild(t))}function Ja(e){return'[src="'+cn(e)+'"]'}function Ml(e){return"script[async]"+e}function kp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+cn(n.href)+'"]');if(i)return t.instance=i,nt(i),i;var a=ke({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),nt(i),ht(i,"style",a),Io(i,n.precedence,e),t.instance=i;case"stylesheet":a=Oa(n.href);var s=e.querySelector(Dl(a));if(s)return t.state.loading|=4,t.instance=s,nt(s),s;i=P1(n),(a=mn.get(a))&&og(i,a),s=(e.ownerDocument||e).createElement("link"),nt(s);var l=s;return l._p=new Promise(function(o,c){l.onload=o,l.onerror=c}),ht(s,"link",i),t.state.loading|=4,Io(s,n.precedence,e),t.instance=s;case"script":return s=Ja(n.src),(a=e.querySelector(Ml(s)))?(t.instance=a,nt(a),a):(i=n,(a=mn.get(s))&&(i=ke({},n),cg(i,a)),e=e.ownerDocument||e,a=e.createElement("script"),nt(a),ht(a,"link",i),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(z(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(i=t.instance,t.state.loading|=4,Io(i,n.precedence,e));return t.instance}function Io(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=i.length?i[i.length-1]:null,s=a,l=0;l title"):null)}function C4(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function U1(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function F4(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&!(n.state.loading&4)){if(n.instance===null){var a=Oa(i.href),s=t.querySelector(Dl(a));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=jc.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=s,nt(s);return}s=t.ownerDocument||t,i=P1(i),(a=mn.get(a))&&og(i,a),s=s.createElement("link"),nt(s);var l=s;l._p=new Promise(function(o,c){l.onload=o,l.onerror=c}),ht(s,"link",i),n.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=jc.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var nd=0;function R4(e,t){return e.stylesheets&&e.count===0&&Oo(e,e.stylesheets),0nd?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(a)}}:null}function jc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Oo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var wc=null;function Oo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,wc=new Map,t.forEach(W4,e),wc=null,jc.call(e))}function W4(e,t){if(!(t.state.loading&4)){var n=wc.get(e);if(n)var i=n.get(null);else{n=new Map,wc.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(X1)}catch(e){console.error(e)}}X1(),ax.exports=Pc;var U4=ax.exports;const _4=Yy(U4);/** * react-router v7.13.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */var Fp="popstate";function Rp(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function G4(e={}){function t(i,a){var u;let s=(u=a.state)==null?void 0:u.masked,{pathname:l,search:o,hash:c}=s||i.location;return Rf("",{pathname:l,search:o,hash:c},a.state&&a.state.usr||null,a.state&&a.state.key||"default",s?{pathname:i.location.pathname,search:i.location.search,hash:i.location.hash}:void 0)}function n(i,a){return typeof a=="string"?a:hl(a)}return K4(t,n,null,e)}function Ee(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Dn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function q4(){return Math.random().toString(36).substring(2,10)}function Wp(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Rf(e,t,n=null,i,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Qa(t):t,state:n,key:t&&t.key||i||q4(),unstable_mask:a}}function hl({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 Qa(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let i=e.indexOf("?");i>=0&&(t.search=e.substring(i),e=e.substring(0,i)),e&&(t.pathname=e)}return t}function K4(e,t,n,i={}){let{window:a=document.defaultView,v5Compat:s=!1}=i,l=a.history,o="POP",c=null,u=d();u==null&&(u=0,l.replaceState({...l.state,idx:u},""));function d(){return(l.state||{idx:null}).idx}function h(){o="POP";let j=d(),y=j==null?null:j-u;u=j,c&&c({action:o,location:S.location,delta:y})}function f(j,y){o="PUSH";let g=Rp(j)?j:Rf(S.location,j,y);u=d()+1;let m=Wp(g,u),x=S.createHref(g.unstable_mask||g);try{l.pushState(m,"",x)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;a.location.assign(x)}s&&c&&c({action:o,location:S.location,delta:1})}function p(j,y){o="REPLACE";let g=Rp(j)?j:Rf(S.location,j,y);u=d();let m=Wp(g,u),x=S.createHref(g.unstable_mask||g);l.replaceState(m,"",x),s&&c&&c({action:o,location:S.location,delta:0})}function v(j){return $4(j)}let S={get action(){return o},get location(){return e(a,l)},listen(j){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(Fp,h),c=j,()=>{a.removeEventListener(Fp,h),c=null}},createHref(j){return t(a,j)},createURL:v,encodeLocation(j){let y=v(j);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:p,go(j){return l.go(j)}};return S}function $4(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Ee(n,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:hl(e);return i=i.replace(/ $/,"%20"),!t&&i.startsWith("//")&&(i=n+i),new URL(i,n)}function J1(e,t,n="/"){return Y4(e,t,n,!1)}function Y4(e,t,n,i){let a=typeof t=="string"?Qa(t):t,s=yi(a.pathname||"/",n);if(s==null)return null;let l=Q1(e);Z4(l);let o=null;for(let c=0;o==null&&c{let d={relativePath:u===void 0?l.path||"":u,caseSensitive:l.caseSensitive===!0,childrenIndex:o,route:l};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(i)&&c)return;Ee(d.relativePath.startsWith(i),`Absolute route path "${d.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(i.length)}let h=_n([i,d.relativePath]),f=n.concat(d);l.children&&l.children.length>0&&(Ee(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),Q1(l.children,t,f,h,c)),!(l.path==null&&!l.index)&&t.push({path:h,score:iw(h,l.index),routesMeta:f})};return e.forEach((l,o)=>{var c;if(l.path===""||!((c=l.path)!=null&&c.includes("?")))s(l,o);else for(let u of e2(l.path))s(l,o,!0,u)}),t}function e2(e){let t=e.split("/");if(t.length===0)return[];let[n,...i]=t,a=n.endsWith("?"),s=n.replace(/\?$/,"");if(i.length===0)return a?[s,""]:[s];let l=e2(i.join("/")),o=[];return o.push(...l.map(c=>c===""?s:[s,c].join("/"))),a&&o.push(...l),o.map(c=>e.startsWith("/")&&c===""?"/":c)}function Z4(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:rw(t.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}var X4=/^:[\w-]+$/,J4=3,Q4=2,ew=1,tw=10,nw=-2,Lp=e=>e==="*";function iw(e,t){let n=e.split("/"),i=n.length;return n.some(Lp)&&(i+=nw),t&&(i+=Q4),n.filter(a=>!Lp(a)).reduce((a,s)=>a+(X4.test(s)?J4:s===""?ew:tw),i)}function rw(e,t){return e.length===t.length&&e.slice(0,-1).every((i,a)=>i===t[a])?e[e.length-1]-t[t.length-1]:0}function aw(e,t,n=!1){let{routesMeta:i}=e,a={},s="/",l=[];for(let o=0;o{if(d==="*"){let v=o[f]||"";l=s.slice(0,s.length-v.length).replace(/(.)\/+$/,"$1")}const p=o[f];return h&&!p?u[d]=void 0:u[d]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:l,pattern:e}}function sw(e,t=!1,n=!0){Dn(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 i=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,o,c,u,d)=>{if(i.push({paramName:o,isOptional:c!=null}),c){let h=d.charAt(u+l.length);return h&&h!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),i]}function lw(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Dn(!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 yi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&i!=="/"?null:e.slice(n)||"/"}var ow=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function cw(e,t="/"){let{pathname:n,search:i="",hash:a=""}=typeof e=="string"?Qa(e):e,s;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?s=Hp(n.substring(1),"/"):s=Hp(n,t)):s=t,{pathname:s,search:fw(i),hash:hw(a)}}function Hp(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function id(e,t,n,i){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(i)}]. 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 uw(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function gg(e){let t=uw(e);return t.map((n,i)=>i===t.length-1?n.pathname:n.pathnameBase)}function su(e,t,n,i=!1){let a;typeof e=="string"?a=Qa(e):(a={...e},Ee(!a.pathname||!a.pathname.includes("?"),id("?","pathname","search",a)),Ee(!a.pathname||!a.pathname.includes("#"),id("#","pathname","hash",a)),Ee(!a.search||!a.search.includes("#"),id("#","search","hash",a)));let s=e===""||a.pathname==="",l=s?"/":a.pathname,o;if(l==null)o=n;else{let h=t.length-1;if(!i&&l.startsWith("..")){let f=l.split("/");for(;f[0]==="..";)f.shift(),h-=1;a.pathname=f.join("/")}o=h>=0?t[h]:"/"}let c=cw(a,o),u=l&&l!=="/"&&l.endsWith("/"),d=(s||l===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}var _n=e=>e.join("/").replace(/\/\/+/g,"/"),dw=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),fw=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,hw=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,gw=class{constructor(e,t,n,i=!1){this.status=e,this.statusText=t||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function mw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function pw(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var t2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function n2(e,t){let n=e;if(typeof n!="string"||!ow.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let i=n,a=!1;if(t2)try{let s=new URL(window.location.href),l=n.startsWith("//")?new URL(s.protocol+n):new URL(n),o=yi(l.pathname,t);l.origin===s.origin&&o!=null?n=o+l.search+l.hash:a=!0}catch{Dn(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:a,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var i2=["POST","PUT","PATCH","DELETE"];new Set(i2);var yw=["GET",...i2];new Set(yw);var es=b.createContext(null);es.displayName="DataRouter";var lu=b.createContext(null);lu.displayName="DataRouterState";var xw=b.createContext(!1),r2=b.createContext({isTransitioning:!1});r2.displayName="ViewTransition";var bw=b.createContext(new Map);bw.displayName="Fetchers";var vw=b.createContext(null);vw.displayName="Await";var tn=b.createContext(null);tn.displayName="Navigation";var Al=b.createContext(null);Al.displayName="Location";var Fn=b.createContext({outlet:null,matches:[],isDataRoute:!1});Fn.displayName="Route";var mg=b.createContext(null);mg.displayName="RouteError";var a2="REACT_ROUTER_ERROR",Sw="REDIRECT",jw="ROUTE_ERROR_RESPONSE";function ww(e){if(e.startsWith(`${a2}:${Sw}:{`))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 kw(e){if(e.startsWith(`${a2}:${jw}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new gw(t.status,t.statusText,t.data)}catch{}}function zw(e,{relative:t}={}){Ee(ts(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:i}=b.useContext(tn),{hash:a,pathname:s,search:l}=Cl(e,{relative:t}),o=s;return n!=="/"&&(o=s==="/"?n:_n([n,s])),i.createHref({pathname:o,search:l,hash:a})}function ts(){return b.useContext(Al)!=null}function xn(){return Ee(ts(),"useLocation() may be used only in the context of a component."),b.useContext(Al).location}var s2="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function l2(e){b.useContext(tn).static||b.useLayoutEffect(e)}function o2(){let{isDataRoute:e}=b.useContext(Fn);return e?Nw():Tw()}function Tw(){Ee(ts(),"useNavigate() may be used only in the context of a component.");let e=b.useContext(es),{basename:t,navigator:n}=b.useContext(tn),{matches:i}=b.useContext(Fn),{pathname:a}=xn(),s=JSON.stringify(gg(i)),l=b.useRef(!1);return l2(()=>{l.current=!0}),b.useCallback((c,u={})=>{if(Dn(l.current,s2),!l.current)return;if(typeof c=="number"){n.go(c);return}let d=su(c,JSON.parse(s),a,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:_n([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,s,a,e])}b.createContext(null);function pg(){let{matches:e}=b.useContext(Fn),t=e[e.length-1];return t?t.params:{}}function Cl(e,{relative:t}={}){let{matches:n}=b.useContext(Fn),{pathname:i}=xn(),a=JSON.stringify(gg(n));return b.useMemo(()=>su(e,JSON.parse(a),i,t==="path"),[e,a,i,t])}function Ew(e,t){return c2(e,t)}function c2(e,t,n){var j;Ee(ts(),"useRoutes() may be used only in the context of a component.");let{navigator:i}=b.useContext(tn),{matches:a}=b.useContext(Fn),s=a[a.length-1],l=s?s.params:{},o=s?s.pathname:"/",c=s?s.pathnameBase:"/",u=s&&s.route;{let y=u&&u.path||"";d2(o,!u||y.endsWith("*")||y.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${o}" (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 d=xn(),h;if(t){let y=typeof t=="string"?Qa(t):t;Ee(c==="/"||((j=y.pathname)==null?void 0:j.startsWith(c)),`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 "${c}" but pathname "${y.pathname}" was given in the \`location\` prop.`),h=y}else h=d;let f=h.pathname||"/",p=f;if(c!=="/"){let y=c.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(y.length).join("/")}let v=J1(e,{pathname:p});Dn(u||v!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),Dn(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.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 S=Cw(v&&v.map(y=>Object.assign({},y,{params:Object.assign({},l,y.params),pathname:_n([c,i.encodeLocation?i.encodeLocation(y.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?c:_n([c,i.encodeLocation?i.encodeLocation(y.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathnameBase])})),a,n);return t&&S?b.createElement(Al.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...h},navigationType:"POP"}},S):S}function Bw(){let e=Hw(),t=mw(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:i},s={padding:"2px 4px",backgroundColor:i},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:s},"ErrorBoundary")," or"," ",b.createElement("code",{style:s},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:a},n):null,l)}var Dw=b.createElement(Bw,null),u2=class extends b.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=kw(e.digest);n&&(e=n)}let t=e!==void 0?b.createElement(Fn.Provider,{value:this.props.routeContext},b.createElement(mg.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?b.createElement(Mw,{error:e},t):t}};u2.contextType=xw;var rd=new WeakMap;function Mw({children:e,error:t}){let{basename:n}=b.useContext(tn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let i=ww(t.digest);if(i){let a=rd.get(t);if(a)throw a;let s=n2(i.location,n);if(t2&&!rd.get(t))if(s.isExternal||i.reloadDocument)window.location.href=s.absoluteURL||s.to;else{const l=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:i.replace}));throw rd.set(t,l),l}return b.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s.absoluteURL||s.to}`})}}return e}function Aw({routeContext:e,match:t,children:n}){let i=b.useContext(es);return i&&i.static&&i.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=t.route.id),b.createElement(Fn.Provider,{value:e},n)}function Cw(e,t=[],n){let i=n==null?void 0:n.state;if(e==null){if(!i)return null;if(i.errors)e=i.matches;else if(t.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let a=e,s=i==null?void 0:i.errors;if(s!=null){let d=a.findIndex(h=>h.route.id&&(s==null?void 0:s[h.route.id])!==void 0);Ee(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let l=!1,o=-1;if(n&&i){l=i.renderFallback;for(let d=0;d=0?a=a.slice(0,o+1):a=[a[0]];break}}}}let c=n==null?void 0:n.onError,u=i&&c?(d,h)=>{var f,p;c(d,{location:i.location,params:((p=(f=i.matches)==null?void 0:f[0])==null?void 0:p.params)??{},unstable_pattern:pw(i.matches),errorInfo:h})}:void 0;return a.reduceRight((d,h,f)=>{let p,v=!1,S=null,j=null;i&&(p=s&&h.route.id?s[h.route.id]:void 0,S=h.route.errorElement||Dw,l&&(o<0&&f===0?(d2("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,j=null):o===f&&(v=!0,j=h.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,f+1)),g=()=>{let m;return p?m=S:v?m=j:h.route.Component?m=b.createElement(h.route.Component,null):h.route.element?m=h.route.element:m=d,b.createElement(Aw,{match:h,routeContext:{outlet:d,matches:y,isDataRoute:i!=null},children:m})};return i&&(h.route.ErrorBoundary||h.route.errorElement||f===0)?b.createElement(u2,{location:i.location,revalidation:i.revalidation,component:S,error:p,children:g(),routeContext:{outlet:null,matches:y,isDataRoute:!0},onError:u}):g()},null)}function yg(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Fw(e){let t=b.useContext(es);return Ee(t,yg(e)),t}function Rw(e){let t=b.useContext(lu);return Ee(t,yg(e)),t}function Ww(e){let t=b.useContext(Fn);return Ee(t,yg(e)),t}function xg(e){let t=Ww(e),n=t.matches[t.matches.length-1];return Ee(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Lw(){return xg("useRouteId")}function Hw(){var i;let e=b.useContext(mg),t=Rw("useRouteError"),n=xg("useRouteError");return e!==void 0?e:(i=t.errors)==null?void 0:i[n]}function Nw(){let{router:e}=Fw("useNavigate"),t=xg("useNavigate"),n=b.useRef(!1);return l2(()=>{n.current=!0}),b.useCallback(async(a,s={})=>{Dn(n.current,s2),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...s}))},[e,t])}var Np={};function d2(e,t,n){!t&&!Np[e]&&(Np[e]=!0,Dn(!1,n))}b.memo(Iw);function Iw({routes:e,future:t,state:n,isStatic:i,onError:a}){return c2(e,void 0,{state:n,isStatic:i,onError:a})}function Vw({to:e,replace:t,state:n,relative:i}){Ee(ts()," may be used only in the context of a component.");let{static:a}=b.useContext(tn);Dn(!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:s}=b.useContext(Fn),{pathname:l}=xn(),o=o2(),c=su(e,gg(s),l,i==="path"),u=JSON.stringify(c);return b.useEffect(()=>{o(JSON.parse(u),{replace:t,state:n,relative:i})},[o,u,i,t,n]),null}function gt(e){Ee(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function Ow({basename:e="/",children:t=null,location:n,navigationType:i="POP",navigator:a,static:s=!1,unstable_useTransitions:l}){Ee(!ts(),"You cannot render a inside another . You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),c=b.useMemo(()=>({basename:o,navigator:a,static:s,unstable_useTransitions:l,future:{}}),[o,a,s,l]);typeof n=="string"&&(n=Qa(n));let{pathname:u="/",search:d="",hash:h="",state:f=null,key:p="default",unstable_mask:v}=n,S=b.useMemo(()=>{let j=yi(u,o);return j==null?null:{location:{pathname:j,search:d,hash:h,state:f,key:p,unstable_mask:v},navigationType:i}},[o,u,d,h,f,p,i,v]);return Dn(S!=null,` is not able to match the URL "${u}${d}${h}" because it does not start with the basename, so the won't render anything.`),S==null?null:b.createElement(tn.Provider,{value:c},b.createElement(Al.Provider,{children:t,value:S}))}function Pw({children:e,location:t}){return Ew(Wf(e),t)}function Wf(e,t=[]){let n=[];return b.Children.forEach(e,(i,a)=>{if(!b.isValidElement(i))return;let s=[...t,a];if(i.type===b.Fragment){n.push.apply(n,Wf(i.props.children,s));return}Ee(i.type===gt,`[${typeof i.type=="string"?i.type:i.type.name}] is not a component. All component children of must be a or `),Ee(!i.props.index||!i.props.children,"An index route cannot have child routes.");let l={id:i.props.id||s.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(l.children=Wf(i.props.children,s)),n.push(l)}),n}var Uo="get",_o="application/x-www-form-urlencoded";function ou(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Uw(e){return ou(e)&&e.tagName.toLowerCase()==="button"}function _w(e){return ou(e)&&e.tagName.toLowerCase()==="form"}function Gw(e){return ou(e)&&e.tagName.toLowerCase()==="input"}function qw(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Kw(e,t){return e.button===0&&(!t||t==="_self")&&!qw(e)}var lo=null;function $w(){if(lo===null)try{new FormData(document.createElement("form"),0),lo=!1}catch{lo=!0}return lo}var Yw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ad(e){return e!=null&&!Yw.has(e)?(Dn(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${_o}"`),null):e}function Zw(e,t){let n,i,a,s,l;if(_w(e)){let o=e.getAttribute("action");i=o?yi(o,t):null,n=e.getAttribute("method")||Uo,a=ad(e.getAttribute("enctype"))||_o,s=new FormData(e)}else if(Uw(e)||Gw(e)&&(e.type==="submit"||e.type==="image")){let o=e.form;if(o==null)throw new Error('Cannot submit a