var w4=Object.defineProperty;var S4=(e,t,n)=>t in e?w4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var w0=(e,t,n)=>S4(e,typeof t!="symbol"?t+"":t,n);function _4(e,t){for(var n=0;nr[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function $r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var S0={exports:{}},Hs={};/** * @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 gN;function N4(){if(gN)return Hs;gN=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,o){var s=null;if(o!==void 0&&(s=""+o),i.key!==void 0&&(s=""+i.key),"key"in i){o={};for(var u in i)u!=="key"&&(o[u]=i[u])}else o=i;return i=o.ref,{$$typeof:e,type:r,key:s,ref:i!==void 0?i:null,props:o}}return Hs.Fragment=t,Hs.jsx=n,Hs.jsxs=n,Hs}var vN;function E4(){return vN||(vN=1,S0.exports=N4()),S0.exports}var c=E4(),_0={exports:{}},Ee={};/** * @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 yN;function A4(){if(yN)return Ee;yN=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),y=Symbol.iterator;function w(z){return z===null||typeof z!="object"?null:(z=y&&z[y]||z["@@iterator"],typeof z=="function"?z:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,E={};function C(z,J,oe){this.props=z,this.context=J,this.refs=E,this.updater=oe||N}C.prototype.isReactComponent={},C.prototype.setState=function(z,J){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,J,"setState")},C.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function j(){}j.prototype=C.prototype;function M(z,J,oe){this.props=z,this.context=J,this.refs=E,this.updater=oe||N}var I=M.prototype=new j;I.constructor=M,A(I,C.prototype),I.isPureReactComponent=!0;var k=Array.isArray;function P(){}var O={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function B(z,J,oe){var ce=oe.ref;return{$$typeof:e,type:z,key:J,ref:ce!==void 0?ce:null,props:oe}}function X(z,J){return B(z.type,J,z.props)}function V(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function q(z){var J={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(oe){return J[oe]})}var se=/\/+/g;function ie(z,J){return typeof z=="object"&&z!==null&&z.key!=null?q(""+z.key):J.toString(36)}function de(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(P,P):(z.status="pending",z.then(function(J){z.status==="pending"&&(z.status="fulfilled",z.value=J)},function(J){z.status==="pending"&&(z.status="rejected",z.reason=J)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function G(z,J,oe,ce,be){var Se=typeof z;(Se==="undefined"||Se==="boolean")&&(z=null);var _e=!1;if(z===null)_e=!0;else switch(Se){case"bigint":case"string":case"number":_e=!0;break;case"object":switch(z.$$typeof){case e:case t:_e=!0;break;case h:return _e=z._init,G(_e(z._payload),J,oe,ce,be)}}if(_e)return be=be(z),_e=ce===""?"."+ie(z,0):ce,k(be)?(oe="",_e!=null&&(oe=_e.replace(se,"$&/")+"/"),G(be,J,oe,"",function(Ae){return Ae})):be!=null&&(V(be)&&(be=X(be,oe+(be.key==null||z&&z.key===be.key?"":(""+be.key).replace(se,"$&/")+"/")+_e)),J.push(be)),1;_e=0;var Et=ce===""?".":ce+":";if(k(z))for(var ee=0;ee>>1,ve=G[me];if(0>>1;mei(oe,ae))cei(be,oe)?(G[me]=be,G[ce]=ae,me=ce):(G[me]=oe,G[J]=ae,me=J);else if(cei(be,ae))G[me]=be,G[ce]=ae,me=ce;else break e}}return Z}function i(G,Z){var ae=G.sortIndex-Z.sortIndex;return ae!==0?ae:G.id-Z.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var f=[],p=[],h=1,g=null,y=3,w=!1,N=!1,A=!1,E=!1,C=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function I(G){for(var Z=n(p);Z!==null;){if(Z.callback===null)r(p);else if(Z.startTime<=G)r(p),Z.sortIndex=Z.expirationTime,t(f,Z);else break;Z=n(p)}}function k(G){if(A=!1,I(G),!N)if(n(f)!==null)N=!0,P||(P=!0,q());else{var Z=n(p);Z!==null&&de(k,Z.startTime-G)}}var P=!1,O=-1,D=5,B=-1;function X(){return E?!0:!(e.unstable_now()-BG&&X());){var me=g.callback;if(typeof me=="function"){g.callback=null,y=g.priorityLevel;var ve=me(g.expirationTime<=G);if(G=e.unstable_now(),typeof ve=="function"){g.callback=ve,I(G),Z=!0;break t}g===n(f)&&r(f),I(G)}else r(f);g=n(f)}if(g!==null)Z=!0;else{var z=n(p);z!==null&&de(k,z.startTime-G),Z=!1}}break e}finally{g=null,y=ae,w=!1}Z=void 0}}finally{Z?q():P=!1}}}var q;if(typeof M=="function")q=function(){M(V)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,ie=se.port2;se.port1.onmessage=V,q=function(){ie.postMessage(null)}}else q=function(){C(V,0)};function de(G,Z){O=C(function(){G(e.unstable_now())},Z)}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(G){G.callback=null},e.unstable_forceFrameRate=function(G){0>G||125me?(G.sortIndex=ae,t(p,G),n(f)===null&&G===n(p)&&(A?(j(O),O=-1):A=!0,de(k,ae-me))):(G.sortIndex=ve,t(f,G),N||w||(N=!0,P||(P=!0,q()))),G},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(G){var Z=y;return function(){var ae=y;y=Z;try{return G.apply(this,arguments)}finally{y=ae}}}})(A0)),A0}var wN;function k4(){return wN||(wN=1,E0.exports=C4()),E0.exports}var T0={exports:{}},rn={};/** * @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 SN;function j4(){if(SN)return rn;SN=1;var e=jl();function t(f){var p="https://react.dev/errors/"+f;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),T0.exports=j4(),T0.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 NN;function M4(){if(NN)return Gs;NN=1;var e=k4(),t=jl(),n=hj();function r(a){var l="https://react.dev/errors/"+a;if(1ve||(a.current=me[ve],me[ve]=null,ve--)}function oe(a,l){ve++,me[ve]=a.current,a.current=l}var ce=z(null),be=z(null),Se=z(null),_e=z(null);function Et(a,l){switch(oe(Se,l),oe(be,a),oe(ce,null),l.nodeType){case 9:case 11:a=(a=l.documentElement)&&(a=a.namespaceURI)?U_(a):0;break;default:if(a=l.tagName,l=l.namespaceURI)l=U_(l),a=B_(l,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}J(ce),oe(ce,a)}function ee(){J(ce),J(be),J(Se)}function Ae(a){a.memoizedState!==null&&oe(_e,a);var l=ce.current,d=B_(l,a.type);l!==d&&(oe(be,a),oe(ce,d))}function ke(a){be.current===a&&(J(ce),J(be)),_e.current===a&&(J(_e),Ls._currentValue=ae)}var re,qt;function ze(a){if(re===void 0)try{throw Error()}catch(d){var l=d.stack.trim().match(/\n( *(at )?)/);re=l&&l[1]||"",qt=-1)":-1b||L[m]!==F[b]){var Q=` `+L[m].replace(" at new "," at ");return a.displayName&&Q.includes("")&&(Q=Q.replace("",a.displayName)),Q}while(1<=m&&0<=b);break}}}finally{Ht=!1,Error.prepareStackTrace=d}return(d=a?a.displayName||a.name:"")?ze(d):""}function Fr(a,l){switch(a.tag){case 26:case 27:case 5:return ze(a.type);case 16:return ze("Lazy");case 13:return a.child!==l&&l!==null?ze("Suspense Fallback"):ze("Suspense");case 19:return ze("SuspenseList");case 0:case 15:return Gt(a.type,!1);case 11:return Gt(a.type.render,!1);case 1:return Gt(a.type,!0);case 31:return ze("Activity");default:return""}}function Jl(a){try{var l="",d=null;do l+=Fr(a,d),d=a,a=a.return;while(a);return l}catch(m){return` Error generating stack: `+m.message+` `+m.stack}}var oh=Object.prototype.hasOwnProperty,lh=e.unstable_scheduleCallback,sh=e.unstable_cancelCallback,Zz=e.unstable_shouldYield,eD=e.unstable_requestPaint,An=e.unstable_now,tD=e.unstable_getCurrentPriorityLevel,v1=e.unstable_ImmediatePriority,y1=e.unstable_UserBlockingPriority,Xc=e.unstable_NormalPriority,nD=e.unstable_LowPriority,x1=e.unstable_IdlePriority,rD=e.log,iD=e.unstable_setDisableYieldValue,Wl=null,Tn=null;function Bi(a){if(typeof rD=="function"&&iD(a),Tn&&typeof Tn.setStrictMode=="function")try{Tn.setStrictMode(Wl,a)}catch{}}var Cn=Math.clz32?Math.clz32:lD,aD=Math.log,oD=Math.LN2;function lD(a){return a>>>=0,a===0?32:31-(aD(a)/oD|0)|0}var Qc=256,Zc=262144,eu=4194304;function Na(a){var l=a&42;if(l!==0)return l;switch(a&-a){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 a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function tu(a,l,d){var m=a.pendingLanes;if(m===0)return 0;var b=0,S=a.suspendedLanes,T=a.pingedLanes;a=a.warmLanes;var R=m&134217727;return R!==0?(m=R&~S,m!==0?b=Na(m):(T&=R,T!==0?b=Na(T):d||(d=R&~a,d!==0&&(b=Na(d))))):(R=m&~S,R!==0?b=Na(R):T!==0?b=Na(T):d||(d=m&~a,d!==0&&(b=Na(d)))),b===0?0:l!==0&&l!==b&&(l&S)===0&&(S=b&-b,d=l&-l,S>=d||S===32&&(d&4194048)!==0)?l:b}function Xl(a,l){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&l)===0}function sD(a,l){switch(a){case 1:case 2:case 4:case 8:case 64:return l+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 l+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 b1(){var a=eu;return eu<<=1,(eu&62914560)===0&&(eu=4194304),a}function ch(a){for(var l=[],d=0;31>d;d++)l.push(a);return l}function Ql(a,l){a.pendingLanes|=l,l!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function cD(a,l,d,m,b,S){var T=a.pendingLanes;a.pendingLanes=d,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=d,a.entangledLanes&=d,a.errorRecoveryDisabledLanes&=d,a.shellSuspendCounter=0;var R=a.entanglements,L=a.expirationTimes,F=a.hiddenUpdates;for(d=T&~d;0"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var mD=/[\n"\\]/g;function $n(a){return a.replace(mD,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function mh(a,l,d,m,b,S,T,R){a.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?a.type=T:a.removeAttribute("type"),l!=null?T==="number"?(l===0&&a.value===""||a.value!=l)&&(a.value=""+Gn(l)):a.value!==""+Gn(l)&&(a.value=""+Gn(l)):T!=="submit"&&T!=="reset"||a.removeAttribute("value"),l!=null?gh(a,T,Gn(l)):d!=null?gh(a,T,Gn(d)):m!=null&&a.removeAttribute("value"),b==null&&S!=null&&(a.defaultChecked=!!S),b!=null&&(a.checked=b&&typeof b!="function"&&typeof b!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?a.name=""+Gn(R):a.removeAttribute("name")}function R1(a,l,d,m,b,S,T,R){if(S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(a.type=S),l!=null||d!=null){if(!(S!=="submit"&&S!=="reset"||l!=null)){hh(a);return}d=d!=null?""+Gn(d):"",l=l!=null?""+Gn(l):d,R||l===a.value||(a.value=l),a.defaultValue=l}m=m??b,m=typeof m!="function"&&typeof m!="symbol"&&!!m,a.checked=R?a.checked:!!m,a.defaultChecked=!!m,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(a.name=T),hh(a)}function gh(a,l,d){l==="number"&&iu(a.ownerDocument)===a||a.defaultValue===""+d||(a.defaultValue=""+d)}function So(a,l,d,m){if(a=a.options,l){l={};for(var b=0;b"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wh=!1;if(Jr)try{var ns={};Object.defineProperty(ns,"passive",{get:function(){wh=!0}}),window.addEventListener("test",ns,ns),window.removeEventListener("test",ns,ns)}catch{wh=!1}var Hi=null,Sh=null,ou=null;function B1(){if(ou)return ou;var a,l=Sh,d=l.length,m,b="value"in Hi?Hi.value:Hi.textContent,S=b.length;for(a=0;a=as),F1=" ",K1=!1;function Y1(a,l){switch(a){case"keyup":return GD.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function J1(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Ao=!1;function VD(a,l){switch(a){case"compositionend":return J1(l);case"keypress":return l.which!==32?null:(K1=!0,F1);case"textInput":return a=l.data,a===F1&&K1?null:a;default:return null}}function FD(a,l){if(Ao)return a==="compositionend"||!Th&&Y1(a,l)?(a=B1(),ou=Sh=Hi=null,Ao=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1=l)return{node:d,offset:l-a};a=m}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=rw(d)}}function aw(a,l){return a&&l?a===l?!0:a&&a.nodeType===3?!1:l&&l.nodeType===3?aw(a,l.parentNode):"contains"in a?a.contains(l):a.compareDocumentPosition?!!(a.compareDocumentPosition(l)&16):!1:!1}function ow(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var l=iu(a.document);l instanceof a.HTMLIFrameElement;){try{var d=typeof l.contentWindow.location.href=="string"}catch{d=!1}if(d)a=l.contentWindow;else break;l=iu(a.document)}return l}function jh(a){var l=a&&a.nodeName&&a.nodeName.toLowerCase();return l&&(l==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||l==="textarea"||a.contentEditable==="true")}var e5=Jr&&"documentMode"in document&&11>=document.documentMode,To=null,Mh=null,cs=null,Ih=!1;function lw(a,l,d){var m=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;Ih||To==null||To!==iu(m)||(m=To,"selectionStart"in m&&jh(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),cs&&ss(cs,m)||(cs=m,m=Zu(Mh,"onSelect"),0>=T,b-=T,kr=1<<32-Cn(l)+b|d<Ce?(Re=ge,ge=null):Re=ge.sibling;var Le=Y(H,ge,$[Ce],te);if(Le===null){ge===null&&(ge=Re);break}a&&ge&&Le.alternate===null&&l(H,ge),U=S(Le,U,Ce),De===null?xe=Le:De.sibling=Le,De=Le,ge=Re}if(Ce===$.length)return d(H,ge),Oe&&Xr(H,Ce),xe;if(ge===null){for(;Ce<$.length;Ce++)ge=ne(H,$[Ce],te),ge!==null&&(U=S(ge,U,Ce),De===null?xe=ge:De.sibling=ge,De=ge);return Oe&&Xr(H,Ce),xe}for(ge=m(ge);Ce<$.length;Ce++)Re=W(ge,H,Ce,$[Ce],te),Re!==null&&(a&&Re.alternate!==null&&ge.delete(Re.key===null?Ce:Re.key),U=S(Re,U,Ce),De===null?xe=Re:De.sibling=Re,De=Re);return a&&ge.forEach(function(ua){return l(H,ua)}),Oe&&Xr(H,Ce),xe}function we(H,U,$,te){if($==null)throw Error(r(151));for(var xe=null,De=null,ge=U,Ce=U=0,Re=null,Le=$.next();ge!==null&&!Le.done;Ce++,Le=$.next()){ge.index>Ce?(Re=ge,ge=null):Re=ge.sibling;var ua=Y(H,ge,Le.value,te);if(ua===null){ge===null&&(ge=Re);break}a&&ge&&ua.alternate===null&&l(H,ge),U=S(ua,U,Ce),De===null?xe=ua:De.sibling=ua,De=ua,ge=Re}if(Le.done)return d(H,ge),Oe&&Xr(H,Ce),xe;if(ge===null){for(;!Le.done;Ce++,Le=$.next())Le=ne(H,Le.value,te),Le!==null&&(U=S(Le,U,Ce),De===null?xe=Le:De.sibling=Le,De=Le);return Oe&&Xr(H,Ce),xe}for(ge=m(ge);!Le.done;Ce++,Le=$.next())Le=W(ge,H,Ce,Le.value,te),Le!==null&&(a&&Le.alternate!==null&&ge.delete(Le.key===null?Ce:Le.key),U=S(Le,U,Ce),De===null?xe=Le:De.sibling=Le,De=Le);return a&&ge.forEach(function(b4){return l(H,b4)}),Oe&&Xr(H,Ce),xe}function Je(H,U,$,te){if(typeof $=="object"&&$!==null&&$.type===A&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case w:e:{for(var xe=$.key;U!==null;){if(U.key===xe){if(xe=$.type,xe===A){if(U.tag===7){d(H,U.sibling),te=b(U,$.props.children),te.return=H,H=te;break e}}else if(U.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===D&&Oa(xe)===U.type){d(H,U.sibling),te=b(U,$.props),ms(te,$),te.return=H,H=te;break e}d(H,U);break}else l(H,U);U=U.sibling}$.type===A?(te=ja($.props.children,H.mode,te,$.key),te.return=H,H=te):(te=gu($.type,$.key,$.props,null,H.mode,te),ms(te,$),te.return=H,H=te)}return T(H);case N:e:{for(xe=$.key;U!==null;){if(U.key===xe)if(U.tag===4&&U.stateNode.containerInfo===$.containerInfo&&U.stateNode.implementation===$.implementation){d(H,U.sibling),te=b(U,$.children||[]),te.return=H,H=te;break e}else{d(H,U);break}else l(H,U);U=U.sibling}te=Uh($,H.mode,te),te.return=H,H=te}return T(H);case D:return $=Oa($),Je(H,U,$,te)}if(de($))return pe(H,U,$,te);if(q($)){if(xe=q($),typeof xe!="function")throw Error(r(150));return $=xe.call($),we(H,U,$,te)}if(typeof $.then=="function")return Je(H,U,_u($),te);if($.$$typeof===M)return Je(H,U,xu(H,$),te);Nu(H,$)}return typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint"?($=""+$,U!==null&&U.tag===6?(d(H,U.sibling),te=b(U,$),te.return=H,H=te):(d(H,U),te=Lh($,H.mode,te),te.return=H,H=te),T(H)):d(H,U)}return function(H,U,$,te){try{hs=0;var xe=Je(H,U,$,te);return Lo=null,xe}catch(ge){if(ge===Do||ge===wu)throw ge;var De=jn(29,ge,null,H.mode);return De.lanes=te,De.return=H,De}finally{}}}var Da=jw(!0),Mw=jw(!1),Ki=!1;function Xh(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qh(a,l){a=a.updateQueue,l.updateQueue===a&&(l.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function Yi(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function Ji(a,l,d){var m=a.updateQueue;if(m===null)return null;if(m=m.shared,(qe&2)!==0){var b=m.pending;return b===null?l.next=l:(l.next=b.next,b.next=l),m.pending=l,l=mu(a),hw(a,null,d),l}return hu(a,m,l,d),mu(a)}function gs(a,l,d){if(l=l.updateQueue,l!==null&&(l=l.shared,(d&4194048)!==0)){var m=l.lanes;m&=a.pendingLanes,d|=m,l.lanes=d,S1(a,d)}}function Zh(a,l){var d=a.updateQueue,m=a.alternate;if(m!==null&&(m=m.updateQueue,d===m)){var b=null,S=null;if(d=d.firstBaseUpdate,d!==null){do{var T={lane:d.lane,tag:d.tag,payload:d.payload,callback:null,next:null};S===null?b=S=T:S=S.next=T,d=d.next}while(d!==null);S===null?b=S=l:S=S.next=l}else b=S=l;d={baseState:m.baseState,firstBaseUpdate:b,lastBaseUpdate:S,shared:m.shared,callbacks:m.callbacks},a.updateQueue=d;return}a=d.lastBaseUpdate,a===null?d.firstBaseUpdate=l:a.next=l,d.lastBaseUpdate=l}var em=!1;function vs(){if(em){var a=zo;if(a!==null)throw a}}function ys(a,l,d,m){em=!1;var b=a.updateQueue;Ki=!1;var S=b.firstBaseUpdate,T=b.lastBaseUpdate,R=b.shared.pending;if(R!==null){b.shared.pending=null;var L=R,F=L.next;L.next=null,T===null?S=F:T.next=F,T=L;var Q=a.alternate;Q!==null&&(Q=Q.updateQueue,R=Q.lastBaseUpdate,R!==T&&(R===null?Q.firstBaseUpdate=F:R.next=F,Q.lastBaseUpdate=L))}if(S!==null){var ne=b.baseState;T=0,Q=F=L=null,R=S;do{var Y=R.lane&-536870913,W=Y!==R.lane;if(W?(Ie&Y)===Y:(m&Y)===Y){Y!==0&&Y===Oo&&(em=!0),Q!==null&&(Q=Q.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var pe=a,we=R;Y=l;var Je=d;switch(we.tag){case 1:if(pe=we.payload,typeof pe=="function"){ne=pe.call(Je,ne,Y);break e}ne=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=we.payload,Y=typeof pe=="function"?pe.call(Je,ne,Y):pe,Y==null)break e;ne=g({},ne,Y);break e;case 2:Ki=!0}}Y=R.callback,Y!==null&&(a.flags|=64,W&&(a.flags|=8192),W=b.callbacks,W===null?b.callbacks=[Y]:W.push(Y))}else W={lane:Y,tag:R.tag,payload:R.payload,callback:R.callback,next:null},Q===null?(F=Q=W,L=ne):Q=Q.next=W,T|=Y;if(R=R.next,R===null){if(R=b.shared.pending,R===null)break;W=R,R=W.next,W.next=null,b.lastBaseUpdate=W,b.shared.pending=null}}while(!0);Q===null&&(L=ne),b.baseState=L,b.firstBaseUpdate=F,b.lastBaseUpdate=Q,S===null&&(b.shared.lanes=0),ea|=T,a.lanes=T,a.memoizedState=ne}}function Iw(a,l){if(typeof a!="function")throw Error(r(191,a));a.call(l)}function Rw(a,l){var d=a.callbacks;if(d!==null)for(a.callbacks=null,a=0;aS?S:8;var T=G.T,R={};G.T=R,xm(a,!1,l,d);try{var L=b(),F=G.S;if(F!==null&&F(R,L),L!==null&&typeof L=="object"&&typeof L.then=="function"){var Q=c5(L,m);ws(a,l,Q,On(a))}else ws(a,l,m,On(a))}catch(ne){ws(a,l,{then:function(){},status:"rejected",reason:ne},On())}finally{Z.p=S,T!==null&&R.types!==null&&(T.types=R.types),G.T=T}}function m5(){}function vm(a,l,d,m){if(a.tag!==5)throw Error(r(476));var b=dS(a).queue;uS(a,b,l,ae,d===null?m5:function(){return fS(a),d(m)})}function dS(a){var l=a.memoizedState;if(l!==null)return l;l={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ti,lastRenderedState:ae},next:null};var d={};return l.next={memoizedState:d,baseState:d,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ti,lastRenderedState:d},next:null},a.memoizedState=l,a=a.alternate,a!==null&&(a.memoizedState=l),l}function fS(a){var l=dS(a);l.next===null&&(l=a.alternate.memoizedState),ws(a,l.next.queue,{},On())}function ym(){return Ft(Ls)}function pS(){return yt().memoizedState}function hS(){return yt().memoizedState}function g5(a){for(var l=a.return;l!==null;){switch(l.tag){case 24:case 3:var d=On();a=Yi(d);var m=Ji(l,a,d);m!==null&&(wn(m,l,d),gs(m,l,d)),l={cache:Kh()},a.payload=l;return}l=l.return}}function v5(a,l,d){var m=On();d={lane:m,revertLane:0,gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},Pu(a)?gS(l,d):(d=zh(a,l,d,m),d!==null&&(wn(d,a,m),vS(d,l,m)))}function mS(a,l,d){var m=On();ws(a,l,d,m)}function ws(a,l,d,m){var b={lane:m,revertLane:0,gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null};if(Pu(a))gS(l,b);else{var S=a.alternate;if(a.lanes===0&&(S===null||S.lanes===0)&&(S=l.lastRenderedReducer,S!==null))try{var T=l.lastRenderedState,R=S(T,d);if(b.hasEagerState=!0,b.eagerState=R,kn(R,T))return hu(a,l,b,0),Xe===null&&pu(),!1}catch{}finally{}if(d=zh(a,l,b,m),d!==null)return wn(d,a,m),vS(d,l,m),!0}return!1}function xm(a,l,d,m){if(m={lane:2,revertLane:Xm(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},Pu(a)){if(l)throw Error(r(479))}else l=zh(a,d,m,2),l!==null&&wn(l,a,2)}function Pu(a){var l=a.alternate;return a===Te||l!==null&&l===Te}function gS(a,l){Bo=Tu=!0;var d=a.pending;d===null?l.next=l:(l.next=d.next,d.next=l),a.pending=l}function vS(a,l,d){if((d&4194048)!==0){var m=l.lanes;m&=a.pendingLanes,d|=m,l.lanes=d,S1(a,d)}}var Ss={readContext:Ft,use:ju,useCallback:dt,useContext:dt,useEffect:dt,useImperativeHandle:dt,useLayoutEffect:dt,useInsertionEffect:dt,useMemo:dt,useReducer:dt,useRef:dt,useState:dt,useDebugValue:dt,useDeferredValue:dt,useTransition:dt,useSyncExternalStore:dt,useId:dt,useHostTransitionStatus:dt,useFormState:dt,useActionState:dt,useOptimistic:dt,useMemoCache:dt,useCacheRefresh:dt};Ss.useEffectEvent=dt;var yS={readContext:Ft,use:ju,useCallback:function(a,l){return cn().memoizedState=[a,l===void 0?null:l],a},useContext:Ft,useEffect:tS,useImperativeHandle:function(a,l,d){d=d!=null?d.concat([a]):null,Iu(4194308,4,aS.bind(null,l,a),d)},useLayoutEffect:function(a,l){return Iu(4194308,4,a,l)},useInsertionEffect:function(a,l){Iu(4,2,a,l)},useMemo:function(a,l){var d=cn();l=l===void 0?null:l;var m=a();if(La){Bi(!0);try{a()}finally{Bi(!1)}}return d.memoizedState=[m,l],m},useReducer:function(a,l,d){var m=cn();if(d!==void 0){var b=d(l);if(La){Bi(!0);try{d(l)}finally{Bi(!1)}}}else b=l;return m.memoizedState=m.baseState=b,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:b},m.queue=a,a=a.dispatch=v5.bind(null,Te,a),[m.memoizedState,a]},useRef:function(a){var l=cn();return a={current:a},l.memoizedState=a},useState:function(a){a=fm(a);var l=a.queue,d=mS.bind(null,Te,l);return l.dispatch=d,[a.memoizedState,d]},useDebugValue:mm,useDeferredValue:function(a,l){var d=cn();return gm(d,a,l)},useTransition:function(){var a=fm(!1);return a=uS.bind(null,Te,a.queue,!0,!1),cn().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,l,d){var m=Te,b=cn();if(Oe){if(d===void 0)throw Error(r(407));d=d()}else{if(d=l(),Xe===null)throw Error(r(349));(Ie&127)!==0||Uw(m,l,d)}b.memoizedState=d;var S={value:d,getSnapshot:l};return b.queue=S,tS(qw.bind(null,m,S,a),[a]),m.flags|=2048,Ho(9,{destroy:void 0},Bw.bind(null,m,S,d,l),null),d},useId:function(){var a=cn(),l=Xe.identifierPrefix;if(Oe){var d=jr,m=kr;d=(m&~(1<<32-Cn(m)-1)).toString(32)+d,l="_"+l+"R_"+d,d=Cu++,0<\/script>",S=S.removeChild(S.firstChild);break;case"select":S=typeof m.is=="string"?T.createElement("select",{is:m.is}):T.createElement("select"),m.multiple?S.multiple=!0:m.size&&(S.size=m.size);break;default:S=typeof m.is=="string"?T.createElement(b,{is:m.is}):T.createElement(b)}}S[$t]=l,S[mn]=m;e:for(T=l.child;T!==null;){if(T.tag===5||T.tag===6)S.appendChild(T.stateNode);else if(T.tag!==4&&T.tag!==27&&T.child!==null){T.child.return=T,T=T.child;continue}if(T===l)break e;for(;T.sibling===null;){if(T.return===null||T.return===l)break e;T=T.return}T.sibling.return=T.return,T=T.sibling}l.stateNode=S;e:switch(Yt(S,b,m),b){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}m&&ri(l)}}return nt(l),Rm(l,l.type,a===null?null:a.memoizedProps,l.pendingProps,d),null;case 6:if(a&&l.stateNode!=null)a.memoizedProps!==m&&ri(l);else{if(typeof m!="string"&&l.stateNode===null)throw Error(r(166));if(a=Se.current,Ro(l)){if(a=l.stateNode,d=l.memoizedProps,m=null,b=Vt,b!==null)switch(b.tag){case 27:case 5:m=b.memoizedProps}a[$t]=l,a=!!(a.nodeValue===d||m!==null&&m.suppressHydrationWarning===!0||D_(a.nodeValue,d)),a||Vi(l,!0)}else a=ed(a).createTextNode(m),a[$t]=l,l.stateNode=a}return nt(l),null;case 31:if(d=l.memoizedState,a===null||a.memoizedState!==null){if(m=Ro(l),d!==null){if(a===null){if(!m)throw Error(r(318));if(a=l.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(557));a[$t]=l}else Ma(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;nt(l),a=!1}else d=Gh(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=d),a=!0;if(!a)return l.flags&256?(In(l),l):(In(l),null);if((l.flags&128)!==0)throw Error(r(558))}return nt(l),null;case 13:if(m=l.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(b=Ro(l),m!==null&&m.dehydrated!==null){if(a===null){if(!b)throw Error(r(318));if(b=l.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(r(317));b[$t]=l}else Ma(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;nt(l),b=!1}else b=Gh(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=b),b=!0;if(!b)return l.flags&256?(In(l),l):(In(l),null)}return In(l),(l.flags&128)!==0?(l.lanes=d,l):(d=m!==null,a=a!==null&&a.memoizedState!==null,d&&(m=l.child,b=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(b=m.alternate.memoizedState.cachePool.pool),S=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(S=m.memoizedState.cachePool.pool),S!==b&&(m.flags|=2048)),d!==a&&d&&(l.child.flags|=8192),Uu(l,l.updateQueue),nt(l),null);case 4:return ee(),a===null&&t0(l.stateNode.containerInfo),nt(l),null;case 10:return Zr(l.type),nt(l),null;case 19:if(J(vt),m=l.memoizedState,m===null)return nt(l),null;if(b=(l.flags&128)!==0,S=m.rendering,S===null)if(b)Ns(m,!1);else{if(ft!==0||a!==null&&(a.flags&128)!==0)for(a=l.child;a!==null;){if(S=Au(a),S!==null){for(l.flags|=128,Ns(m,!1),a=S.updateQueue,l.updateQueue=a,Uu(l,a),l.subtreeFlags=0,a=d,d=l.child;d!==null;)mw(d,a),d=d.sibling;return oe(vt,vt.current&1|2),Oe&&Xr(l,m.treeForkCount),l.child}a=a.sibling}m.tail!==null&&An()>$u&&(l.flags|=128,b=!0,Ns(m,!1),l.lanes=4194304)}else{if(!b)if(a=Au(S),a!==null){if(l.flags|=128,b=!0,a=a.updateQueue,l.updateQueue=a,Uu(l,a),Ns(m,!0),m.tail===null&&m.tailMode==="hidden"&&!S.alternate&&!Oe)return nt(l),null}else 2*An()-m.renderingStartTime>$u&&d!==536870912&&(l.flags|=128,b=!0,Ns(m,!1),l.lanes=4194304);m.isBackwards?(S.sibling=l.child,l.child=S):(a=m.last,a!==null?a.sibling=S:l.child=S,m.last=S)}return m.tail!==null?(a=m.tail,m.rendering=a,m.tail=a.sibling,m.renderingStartTime=An(),a.sibling=null,d=vt.current,oe(vt,b?d&1|2:d&1),Oe&&Xr(l,m.treeForkCount),a):(nt(l),null);case 22:case 23:return In(l),nm(),m=l.memoizedState!==null,a!==null?a.memoizedState!==null!==m&&(l.flags|=8192):m&&(l.flags|=8192),m?(d&536870912)!==0&&(l.flags&128)===0&&(nt(l),l.subtreeFlags&6&&(l.flags|=8192)):nt(l),d=l.updateQueue,d!==null&&Uu(l,d.retryQueue),d=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(d=a.memoizedState.cachePool.pool),m=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),m!==d&&(l.flags|=2048),a!==null&&J(Pa),null;case 24:return d=null,a!==null&&(d=a.memoizedState.cache),l.memoizedState.cache!==d&&(l.flags|=2048),Zr(xt),nt(l),null;case 25:return null;case 30:return null}throw Error(r(156,l.tag))}function S5(a,l){switch(qh(l),l.tag){case 1:return a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 3:return Zr(xt),ee(),a=l.flags,(a&65536)!==0&&(a&128)===0?(l.flags=a&-65537|128,l):null;case 26:case 27:case 5:return ke(l),null;case 31:if(l.memoizedState!==null){if(In(l),l.alternate===null)throw Error(r(340));Ma()}return a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 13:if(In(l),a=l.memoizedState,a!==null&&a.dehydrated!==null){if(l.alternate===null)throw Error(r(340));Ma()}return a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 19:return J(vt),null;case 4:return ee(),null;case 10:return Zr(l.type),null;case 22:case 23:return In(l),nm(),a!==null&&J(Pa),a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 24:return Zr(xt),null;case 25:return null;default:return null}}function HS(a,l){switch(qh(l),l.tag){case 3:Zr(xt),ee();break;case 26:case 27:case 5:ke(l);break;case 4:ee();break;case 31:l.memoizedState!==null&&In(l);break;case 13:In(l);break;case 19:J(vt);break;case 10:Zr(l.type);break;case 22:case 23:In(l),nm(),a!==null&&J(Pa);break;case 24:Zr(xt)}}function Es(a,l){try{var d=l.updateQueue,m=d!==null?d.lastEffect:null;if(m!==null){var b=m.next;d=b;do{if((d.tag&a)===a){m=void 0;var S=d.create,T=d.inst;m=S(),T.destroy=m}d=d.next}while(d!==b)}}catch(R){$e(l,l.return,R)}}function Qi(a,l,d){try{var m=l.updateQueue,b=m!==null?m.lastEffect:null;if(b!==null){var S=b.next;m=S;do{if((m.tag&a)===a){var T=m.inst,R=T.destroy;if(R!==void 0){T.destroy=void 0,b=l;var L=d,F=R;try{F()}catch(Q){$e(b,L,Q)}}}m=m.next}while(m!==S)}}catch(Q){$e(l,l.return,Q)}}function GS(a){var l=a.updateQueue;if(l!==null){var d=a.stateNode;try{Rw(l,d)}catch(m){$e(a,a.return,m)}}}function $S(a,l,d){d.props=Ua(a.type,a.memoizedProps),d.state=a.memoizedState;try{d.componentWillUnmount()}catch(m){$e(a,l,m)}}function As(a,l){try{var d=a.ref;if(d!==null){switch(a.tag){case 26:case 27:case 5:var m=a.stateNode;break;case 30:m=a.stateNode;break;default:m=a.stateNode}typeof d=="function"?a.refCleanup=d(m):d.current=m}}catch(b){$e(a,l,b)}}function Mr(a,l){var d=a.ref,m=a.refCleanup;if(d!==null)if(typeof m=="function")try{m()}catch(b){$e(a,l,b)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof d=="function")try{d(null)}catch(b){$e(a,l,b)}else d.current=null}function VS(a){var l=a.type,d=a.memoizedProps,m=a.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":d.autoFocus&&m.focus();break e;case"img":d.src?m.src=d.src:d.srcSet&&(m.srcset=d.srcSet)}}catch(b){$e(a,a.return,b)}}function Pm(a,l,d){try{var m=a.stateNode;$5(m,a.type,d,l),m[mn]=l}catch(b){$e(a,a.return,b)}}function FS(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&aa(a.type)||a.tag===4}function Om(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||FS(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&aa(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function zm(a,l,d){var m=a.tag;if(m===5||m===6)a=a.stateNode,l?(d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d).insertBefore(a,l):(l=d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d,l.appendChild(a),d=d._reactRootContainer,d!=null||l.onclick!==null||(l.onclick=Yr));else if(m!==4&&(m===27&&aa(a.type)&&(d=a.stateNode,l=null),a=a.child,a!==null))for(zm(a,l,d),a=a.sibling;a!==null;)zm(a,l,d),a=a.sibling}function Bu(a,l,d){var m=a.tag;if(m===5||m===6)a=a.stateNode,l?d.insertBefore(a,l):d.appendChild(a);else if(m!==4&&(m===27&&aa(a.type)&&(d=a.stateNode),a=a.child,a!==null))for(Bu(a,l,d),a=a.sibling;a!==null;)Bu(a,l,d),a=a.sibling}function KS(a){var l=a.stateNode,d=a.memoizedProps;try{for(var m=a.type,b=l.attributes;b.length;)l.removeAttributeNode(b[0]);Yt(l,m,d),l[$t]=a,l[mn]=d}catch(S){$e(a,a.return,S)}}var ii=!1,St=!1,Dm=!1,YS=typeof WeakSet=="function"?WeakSet:Set,It=null;function _5(a,l){if(a=a.containerInfo,i0=ld,a=ow(a),jh(a)){if("selectionStart"in a)var d={start:a.selectionStart,end:a.selectionEnd};else e:{d=(d=a.ownerDocument)&&d.defaultView||window;var m=d.getSelection&&d.getSelection();if(m&&m.rangeCount!==0){d=m.anchorNode;var b=m.anchorOffset,S=m.focusNode;m=m.focusOffset;try{d.nodeType,S.nodeType}catch{d=null;break e}var T=0,R=-1,L=-1,F=0,Q=0,ne=a,Y=null;t:for(;;){for(var W;ne!==d||b!==0&&ne.nodeType!==3||(R=T+b),ne!==S||m!==0&&ne.nodeType!==3||(L=T+m),ne.nodeType===3&&(T+=ne.nodeValue.length),(W=ne.firstChild)!==null;)Y=ne,ne=W;for(;;){if(ne===a)break t;if(Y===d&&++F===b&&(R=T),Y===S&&++Q===m&&(L=T),(W=ne.nextSibling)!==null)break;ne=Y,Y=ne.parentNode}ne=W}d=R===-1||L===-1?null:{start:R,end:L}}else d=null}d=d||{start:0,end:0}}else d=null;for(a0={focusedElem:a,selectionRange:d},ld=!1,It=l;It!==null;)if(l=It,a=l.child,(l.subtreeFlags&1028)!==0&&a!==null)a.return=l,It=a;else for(;It!==null;){switch(l=It,S=l.alternate,a=l.flags,l.tag){case 0:if((a&4)!==0&&(a=l.updateQueue,a=a!==null?a.events:null,a!==null))for(d=0;d title"))),Yt(S,m,d),S[$t]=a,Mt(S),m=S;break e;case"link":var T=eN("link","href",b).get(m+(d.href||""));if(T){for(var R=0;RJe&&(T=Je,Je=we,we=T);var H=iw(R,we),U=iw(R,Je);if(H&&U&&(W.rangeCount!==1||W.anchorNode!==H.node||W.anchorOffset!==H.offset||W.focusNode!==U.node||W.focusOffset!==U.offset)){var $=ne.createRange();$.setStart(H.node,H.offset),W.removeAllRanges(),we>Je?(W.addRange($),W.extend(U.node,U.offset)):($.setEnd(U.node,U.offset),W.addRange($))}}}}for(ne=[],W=R;W=W.parentNode;)W.nodeType===1&&ne.push({element:W,left:W.scrollLeft,top:W.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;Rd?32:d,G.T=null,d=$m,$m=null;var S=na,T=ci;if(At=0,Ko=na=null,ci=0,(qe&6)!==0)throw Error(r(331));var R=qe;if(qe|=4,a_(S.current),n_(S,S.current,T,d),qe=R,Is(0,!1),Tn&&typeof Tn.onPostCommitFiberRoot=="function")try{Tn.onPostCommitFiberRoot(Wl,S)}catch{}return!0}finally{Z.p=b,G.T=m,__(a,l)}}function E_(a,l,d){l=Fn(d,l),l=_m(a.stateNode,l,2),a=Ji(a,l,2),a!==null&&(Ql(a,2),Ir(a))}function $e(a,l,d){if(a.tag===3)E_(a,a,d);else for(;l!==null;){if(l.tag===3){E_(l,a,d);break}else if(l.tag===1){var m=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(ta===null||!ta.has(m))){a=Fn(d,a),d=AS(2),m=Ji(l,d,2),m!==null&&(TS(d,m,l,a),Ql(m,2),Ir(m));break}}l=l.return}}function Ym(a,l,d){var m=a.pingCache;if(m===null){m=a.pingCache=new A5;var b=new Set;m.set(l,b)}else b=m.get(l),b===void 0&&(b=new Set,m.set(l,b));b.has(d)||(Bm=!0,b.add(d),a=M5.bind(null,a,l,d),l.then(a,a))}function M5(a,l,d){var m=a.pingCache;m!==null&&m.delete(l),a.pingedLanes|=a.suspendedLanes&d,a.warmLanes&=~d,Xe===a&&(Ie&d)===d&&(ft===4||ft===3&&(Ie&62914560)===Ie&&300>An()-Gu?(qe&2)===0&&Yo(a,0):qm|=d,Fo===Ie&&(Fo=0)),Ir(a)}function A_(a,l){l===0&&(l=b1()),a=ka(a,l),a!==null&&(Ql(a,l),Ir(a))}function I5(a){var l=a.memoizedState,d=0;l!==null&&(d=l.retryLane),A_(a,d)}function R5(a,l){var d=0;switch(a.tag){case 31:case 13:var m=a.stateNode,b=a.memoizedState;b!==null&&(d=b.retryLane);break;case 19:m=a.stateNode;break;case 22:m=a.stateNode._retryCache;break;default:throw Error(r(314))}m!==null&&m.delete(l),A_(a,d)}function P5(a,l){return lh(a,l)}var Wu=null,Wo=null,Jm=!1,Xu=!1,Wm=!1,ia=0;function Ir(a){a!==Wo&&a.next===null&&(Wo===null?Wu=Wo=a:Wo=Wo.next=a),Xu=!0,Jm||(Jm=!0,z5())}function Is(a,l){if(!Wm&&Xu){Wm=!0;do for(var d=!1,m=Wu;m!==null;){if(a!==0){var b=m.pendingLanes;if(b===0)var S=0;else{var T=m.suspendedLanes,R=m.pingedLanes;S=(1<<31-Cn(42|a)+1)-1,S&=b&~(T&~R),S=S&201326741?S&201326741|1:S?S|2:0}S!==0&&(d=!0,j_(m,S))}else S=Ie,S=tu(m,m===Xe?S:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(S&3)===0||Xl(m,S)||(d=!0,j_(m,S));m=m.next}while(d);Wm=!1}}function O5(){T_()}function T_(){Xu=Jm=!1;var a=0;ia!==0&&F5()&&(a=ia);for(var l=An(),d=null,m=Wu;m!==null;){var b=m.next,S=C_(m,l);S===0?(m.next=null,d===null?Wu=b:d.next=b,b===null&&(Wo=d)):(d=m,(a!==0||(S&3)!==0)&&(Xu=!0)),m=b}At!==0&&At!==5||Is(a),ia!==0&&(ia=0)}function C_(a,l){for(var d=a.suspendedLanes,m=a.pingedLanes,b=a.expirationTimes,S=a.pendingLanes&-62914561;0R)break;var Q=L.transferSize,ne=L.initiatorType;Q&&L_(ne)&&(L=L.responseEnd,T+=Q*(L"u"?null:document;function W_(a,l,d){var m=Xo;if(m&&typeof l=="string"&&l){var b=$n(l);b='link[rel="'+a+'"][href="'+b+'"]',typeof d=="string"&&(b+='[crossorigin="'+d+'"]'),J_.has(b)||(J_.add(b),a={rel:a,crossOrigin:d,href:l},m.querySelector(b)===null&&(l=m.createElement("link"),Yt(l,"link",a),Mt(l),m.head.appendChild(l)))}}function t4(a){ui.D(a),W_("dns-prefetch",a,null)}function n4(a,l){ui.C(a,l),W_("preconnect",a,l)}function r4(a,l,d){ui.L(a,l,d);var m=Xo;if(m&&a&&l){var b='link[rel="preload"][as="'+$n(l)+'"]';l==="image"&&d&&d.imageSrcSet?(b+='[imagesrcset="'+$n(d.imageSrcSet)+'"]',typeof d.imageSizes=="string"&&(b+='[imagesizes="'+$n(d.imageSizes)+'"]')):b+='[href="'+$n(a)+'"]';var S=b;switch(l){case"style":S=Qo(a);break;case"script":S=Zo(a)}Qn.has(S)||(a=g({rel:"preload",href:l==="image"&&d&&d.imageSrcSet?void 0:a,as:l},d),Qn.set(S,a),m.querySelector(b)!==null||l==="style"&&m.querySelector(zs(S))||l==="script"&&m.querySelector(Ds(S))||(l=m.createElement("link"),Yt(l,"link",a),Mt(l),m.head.appendChild(l)))}}function i4(a,l){ui.m(a,l);var d=Xo;if(d&&a){var m=l&&typeof l.as=="string"?l.as:"script",b='link[rel="modulepreload"][as="'+$n(m)+'"][href="'+$n(a)+'"]',S=b;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":S=Zo(a)}if(!Qn.has(S)&&(a=g({rel:"modulepreload",href:a},l),Qn.set(S,a),d.querySelector(b)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(d.querySelector(Ds(S)))return}m=d.createElement("link"),Yt(m,"link",a),Mt(m),d.head.appendChild(m)}}}function a4(a,l,d){ui.S(a,l,d);var m=Xo;if(m&&a){var b=bo(m).hoistableStyles,S=Qo(a);l=l||"default";var T=b.get(S);if(!T){var R={loading:0,preload:null};if(T=m.querySelector(zs(S)))R.loading=5;else{a=g({rel:"stylesheet",href:a,"data-precedence":l},d),(d=Qn.get(S))&&f0(a,d);var L=T=m.createElement("link");Mt(L),Yt(L,"link",a),L._p=new Promise(function(F,Q){L.onload=F,L.onerror=Q}),L.addEventListener("load",function(){R.loading|=1}),L.addEventListener("error",function(){R.loading|=2}),R.loading|=4,nd(T,l,m)}T={type:"stylesheet",instance:T,count:1,state:R},b.set(S,T)}}}function o4(a,l){ui.X(a,l);var d=Xo;if(d&&a){var m=bo(d).hoistableScripts,b=Zo(a),S=m.get(b);S||(S=d.querySelector(Ds(b)),S||(a=g({src:a,async:!0},l),(l=Qn.get(b))&&p0(a,l),S=d.createElement("script"),Mt(S),Yt(S,"link",a),d.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},m.set(b,S))}}function l4(a,l){ui.M(a,l);var d=Xo;if(d&&a){var m=bo(d).hoistableScripts,b=Zo(a),S=m.get(b);S||(S=d.querySelector(Ds(b)),S||(a=g({src:a,async:!0,type:"module"},l),(l=Qn.get(b))&&p0(a,l),S=d.createElement("script"),Mt(S),Yt(S,"link",a),d.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},m.set(b,S))}}function X_(a,l,d,m){var b=(b=Se.current)?td(b):null;if(!b)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof d.precedence=="string"&&typeof d.href=="string"?(l=Qo(d.href),d=bo(b).hoistableStyles,m=d.get(l),m||(m={type:"style",instance:null,count:0,state:null},d.set(l,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(d.rel==="stylesheet"&&typeof d.href=="string"&&typeof d.precedence=="string"){a=Qo(d.href);var S=bo(b).hoistableStyles,T=S.get(a);if(T||(b=b.ownerDocument||b,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},S.set(a,T),(S=b.querySelector(zs(a)))&&!S._p&&(T.instance=S,T.state.loading=5),Qn.has(a)||(d={rel:"preload",as:"style",href:d.href,crossOrigin:d.crossOrigin,integrity:d.integrity,media:d.media,hrefLang:d.hrefLang,referrerPolicy:d.referrerPolicy},Qn.set(a,d),S||s4(b,a,d,T.state))),l&&m===null)throw Error(r(528,""));return T}if(l&&m!==null)throw Error(r(529,""));return null;case"script":return l=d.async,d=d.src,typeof d=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=Zo(d),d=bo(b).hoistableScripts,m=d.get(l),m||(m={type:"script",instance:null,count:0,state:null},d.set(l,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function Qo(a){return'href="'+$n(a)+'"'}function zs(a){return'link[rel="stylesheet"]['+a+"]"}function Q_(a){return g({},a,{"data-precedence":a.precedence,precedence:null})}function s4(a,l,d,m){a.querySelector('link[rel="preload"][as="style"]['+l+"]")?m.loading=1:(l=a.createElement("link"),m.preload=l,l.addEventListener("load",function(){return m.loading|=1}),l.addEventListener("error",function(){return m.loading|=2}),Yt(l,"link",d),Mt(l),a.head.appendChild(l))}function Zo(a){return'[src="'+$n(a)+'"]'}function Ds(a){return"script[async]"+a}function Z_(a,l,d){if(l.count++,l.instance===null)switch(l.type){case"style":var m=a.querySelector('style[data-href~="'+$n(d.href)+'"]');if(m)return l.instance=m,Mt(m),m;var b=g({},d,{"data-href":d.href,"data-precedence":d.precedence,href:null,precedence:null});return m=(a.ownerDocument||a).createElement("style"),Mt(m),Yt(m,"style",b),nd(m,d.precedence,a),l.instance=m;case"stylesheet":b=Qo(d.href);var S=a.querySelector(zs(b));if(S)return l.state.loading|=4,l.instance=S,Mt(S),S;m=Q_(d),(b=Qn.get(b))&&f0(m,b),S=(a.ownerDocument||a).createElement("link"),Mt(S);var T=S;return T._p=new Promise(function(R,L){T.onload=R,T.onerror=L}),Yt(S,"link",m),l.state.loading|=4,nd(S,d.precedence,a),l.instance=S;case"script":return S=Zo(d.src),(b=a.querySelector(Ds(S)))?(l.instance=b,Mt(b),b):(m=d,(b=Qn.get(S))&&(m=g({},d),p0(m,b)),a=a.ownerDocument||a,b=a.createElement("script"),Mt(b),Yt(b,"link",m),a.head.appendChild(b),l.instance=b);case"void":return null;default:throw Error(r(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(m=l.instance,l.state.loading|=4,nd(m,d.precedence,a));return l.instance}function nd(a,l,d){for(var m=d.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=m.length?m[m.length-1]:null,S=b,T=0;T title"):null)}function c4(a,l,d){if(d===1||l.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return a=l.disabled,typeof l.precedence=="string"&&a==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function nN(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function u4(a,l,d,m){if(d.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(d.state.loading&4)===0){if(d.instance===null){var b=Qo(m.href),S=l.querySelector(zs(b));if(S){l=S._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(a.count++,a=id.bind(a),l.then(a,a)),d.state.loading|=4,d.instance=S,Mt(S);return}S=l.ownerDocument||l,m=Q_(m),(b=Qn.get(b))&&f0(m,b),S=S.createElement("link"),Mt(S);var T=S;T._p=new Promise(function(R,L){T.onload=R,T.onerror=L}),Yt(S,"link",m),d.instance=S}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(d,l),(l=d.state.preload)&&(d.state.loading&3)===0&&(a.count++,d=id.bind(a),l.addEventListener("load",d),l.addEventListener("error",d))}}var h0=0;function d4(a,l){return a.stylesheets&&a.count===0&&od(a,a.stylesheets),0h0?50:800)+l);return a.unsuspend=d,function(){a.unsuspend=null,clearTimeout(m),clearTimeout(b)}}:null}function id(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)od(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var ad=null;function od(a,l){a.stylesheets=null,a.unsuspend!==null&&(a.count++,ad=new Map,l.forEach(f4,a),ad=null,id.call(a))}function f4(a,l){if(!(l.state.loading&4)){var d=ad.get(a);if(d)var m=d.get(null);else{d=new Map,ad.set(a,d);for(var b=a.querySelectorAll("link[data-precedence],style[data-precedence]"),S=0;S"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),N0.exports=M4(),N0.exports}var R4=I4();const P4=$r(R4);/** * react-router v7.13.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 AN="popstate";function O4(e={}){function t(i,o){let{pathname:s="/",search:u="",hash:f=""}=fo(i.location.hash.substring(1));return!s.startsWith("/")&&!s.startsWith(".")&&(s="/"+s),kv("",{pathname:s,search:u,hash:f},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(i,o){let s=i.document.querySelector("base"),u="";if(s&&s.getAttribute("href")){let f=i.location.href,p=f.indexOf("#");u=p===-1?f:f.slice(0,p)}return u+"#"+(typeof o=="string"?o:uc(o))}function r(i,o){ir(i.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(o)})`)}return D4(t,n,r,e)}function st(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ir(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function z4(){return Math.random().toString(36).substring(2,10)}function TN(e,t){return{usr:e.state,key:e.key,idx:t}}function kv(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?fo(t):t,state:n,key:t&&t.key||r||z4()}}function uc({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 fo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function D4(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,u="POP",f=null,p=h();p==null&&(p=0,s.replaceState({...s.state,idx:p},""));function h(){return(s.state||{idx:null}).idx}function g(){u="POP";let E=h(),C=E==null?null:E-p;p=E,f&&f({action:u,location:A.location,delta:C})}function y(E,C){u="PUSH";let j=kv(A.location,E,C);n&&n(j,E),p=h()+1;let M=TN(j,p),I=A.createHref(j);try{s.pushState(M,"",I)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(I)}o&&f&&f({action:u,location:A.location,delta:1})}function w(E,C){u="REPLACE";let j=kv(A.location,E,C);n&&n(j,E),p=h();let M=TN(j,p),I=A.createHref(j);s.replaceState(M,"",I),o&&f&&f({action:u,location:A.location,delta:0})}function N(E){return L4(E)}let A={get action(){return u},get location(){return e(i,s)},listen(E){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(AN,g),f=E,()=>{i.removeEventListener(AN,g),f=null}},createHref(E){return t(i,E)},createURL:N,encodeLocation(E){let C=N(E);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:y,replace:w,go(E){return s.go(E)}};return A}function L4(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),st(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:uc(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function mj(e,t,n="/"){return U4(e,t,n,!1)}function U4(e,t,n,r){let i=typeof t=="string"?fo(t):t,o=xi(i.pathname||"/",n);if(o==null)return null;let s=gj(e);B4(s);let u=null;for(let f=0;u==null&&f{let h={relativePath:p===void 0?s.path||"":p,caseSensitive:s.caseSensitive===!0,childrenIndex:u,route:s};if(h.relativePath.startsWith("/")){if(!h.relativePath.startsWith(r)&&f)return;st(h.relativePath.startsWith(r),`Absolute route path "${h.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(r.length)}let g=gi([r,h.relativePath]),y=n.concat(h);s.children&&s.children.length>0&&(st(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),gj(s.children,t,y,g,f)),!(s.path==null&&!s.index)&&t.push({path:g,score:K4(g,s.index),routesMeta:y})};return e.forEach((s,u)=>{var f;if(s.path===""||!((f=s.path)!=null&&f.includes("?")))o(s,u);else for(let p of vj(s.path))o(s,u,!0,p)}),t}function vj(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=vj(r.join("/")),u=[];return u.push(...s.map(f=>f===""?o:[o,f].join("/"))),i&&u.push(...s),u.map(f=>e.startsWith("/")&&f===""?"/":f)}function B4(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Y4(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var q4=/^:[\w-]+$/,H4=3,G4=2,$4=1,V4=10,F4=-2,CN=e=>e==="*";function K4(e,t){let n=e.split("/"),r=n.length;return n.some(CN)&&(r+=F4),t&&(r+=G4),n.filter(i=>!CN(i)).reduce((i,o)=>i+(q4.test(o)?H4:o===""?$4:V4),r)}function Y4(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function J4(e,t,n=!1){let{routesMeta:r}=e,i={},o="/",s=[];for(let u=0;u{if(h==="*"){let N=u[y]||"";s=o.slice(0,o.length-N.length).replace(/(.)\/+$/,"$1")}const w=u[y];return g&&!w?p[h]=void 0:p[h]=(w||"").replace(/%2F/g,"/"),p},{}),pathname:o,pathnameBase:s,pattern:e}}function W4(e,t=!1,n=!0){ir(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,u,f)=>(r.push({paramName:u,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function X4(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ir(!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 xi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var Q4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Z4(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?fo(e):e,o;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?o=kN(n.substring(1),"/"):o=kN(n,t)):o=t,{pathname:o,search:n3(r),hash:r3(i)}}function kN(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function C0(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function e3(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Qy(e){let t=e3(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Zy(e,t,n,r=!1){let i;typeof e=="string"?i=fo(e):(i={...e},st(!i.pathname||!i.pathname.includes("?"),C0("?","pathname","search",i)),st(!i.pathname||!i.pathname.includes("#"),C0("#","pathname","hash",i)),st(!i.search||!i.search.includes("#"),C0("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,u;if(s==null)u=n;else{let g=t.length-1;if(!r&&s.startsWith("..")){let y=s.split("/");for(;y[0]==="..";)y.shift(),g-=1;i.pathname=y.join("/")}u=g>=0?t[g]:"/"}let f=Z4(i,u),p=s&&s!=="/"&&s.endsWith("/"),h=(o||s===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(p||h)&&(f.pathname+="/"),f}var gi=e=>e.join("/").replace(/\/\/+/g,"/"),t3=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),n3=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,r3=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,i3=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function a3(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function o3(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var yj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function xj(e,t){let n=e;if(typeof n!="string"||!Q4.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(yj)try{let o=new URL(window.location.href),s=n.startsWith("//")?new URL(o.protocol+n):new URL(n),u=xi(s.pathname,t);s.origin===o.origin&&u!=null?n=u+s.search+s.hash:i=!0}catch{ir(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var bj=["POST","PUT","PATCH","DELETE"];new Set(bj);var l3=["GET",...bj];new Set(l3);var Ml=_.createContext(null);Ml.displayName="DataRouter";var op=_.createContext(null);op.displayName="DataRouterState";var s3=_.createContext(!1),wj=_.createContext({isTransitioning:!1});wj.displayName="ViewTransition";var c3=_.createContext(new Map);c3.displayName="Fetchers";var u3=_.createContext(null);u3.displayName="Await";var Hn=_.createContext(null);Hn.displayName="Navigation";var Cc=_.createContext(null);Cc.displayName="Location";var Nr=_.createContext({outlet:null,matches:[],isDataRoute:!1});Nr.displayName="Route";var ex=_.createContext(null);ex.displayName="RouteError";var Sj="REACT_ROUTER_ERROR",d3="REDIRECT",f3="ROUTE_ERROR_RESPONSE";function p3(e){if(e.startsWith(`${Sj}:${d3}:{`))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 h3(e){if(e.startsWith(`${Sj}:${f3}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new i3(t.status,t.statusText,t.data)}catch{}}function m3(e,{relative:t}={}){st(Il(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:r}=_.useContext(Hn),{hash:i,pathname:o,search:s}=kc(e,{relative:t}),u=o;return n!=="/"&&(u=o==="/"?n:gi([n,o])),r.createHref({pathname:u,search:s,hash:i})}function Il(){return _.useContext(Cc)!=null}function Er(){return st(Il(),"useLocation() may be used only in the context of a component."),_.useContext(Cc).location}var _j="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Nj(e){_.useContext(Hn).static||_.useLayoutEffect(e)}function ki(){let{isDataRoute:e}=_.useContext(Nr);return e?k3():g3()}function g3(){st(Il(),"useNavigate() may be used only in the context of a component.");let e=_.useContext(Ml),{basename:t,navigator:n}=_.useContext(Hn),{matches:r}=_.useContext(Nr),{pathname:i}=Er(),o=JSON.stringify(Qy(r)),s=_.useRef(!1);return Nj(()=>{s.current=!0}),_.useCallback((f,p={})=>{if(ir(s.current,_j),!s.current)return;if(typeof f=="number"){n.go(f);return}let h=Zy(f,JSON.parse(o),i,p.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:gi([t,h.pathname])),(p.replace?n.replace:n.push)(h,p.state,p)},[t,n,o,i,e])}_.createContext(null);function v3(){let{matches:e}=_.useContext(Nr),t=e[e.length-1];return t?t.params:{}}function kc(e,{relative:t}={}){let{matches:n}=_.useContext(Nr),{pathname:r}=Er(),i=JSON.stringify(Qy(n));return _.useMemo(()=>Zy(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function y3(e,t){return Ej(e,t)}function Ej(e,t,n,r,i){var j;st(Il(),"useRoutes() may be used only in the context of a component.");let{navigator:o}=_.useContext(Hn),{matches:s}=_.useContext(Nr),u=s[s.length-1],f=u?u.params:{},p=u?u.pathname:"/",h=u?u.pathnameBase:"/",g=u&&u.route;{let M=g&&g.path||"";Tj(p,!g||M.endsWith("*")||M.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${p}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. Please change the parent to .`)}let y=Er(),w;if(t){let M=typeof t=="string"?fo(t):t;st(h==="/"||((j=M.pathname)==null?void 0:j.startsWith(h)),`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 "${h}" but pathname "${M.pathname}" was given in the \`location\` prop.`),w=M}else w=y;let N=w.pathname||"/",A=N;if(h!=="/"){let M=h.replace(/^\//,"").split("/");A="/"+N.replace(/^\//,"").split("/").slice(M.length).join("/")}let E=mj(e,{pathname:A});ir(g||E!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),ir(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.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 C=_3(E&&E.map(M=>Object.assign({},M,{params:Object.assign({},f,M.params),pathname:gi([h,o.encodeLocation?o.encodeLocation(M.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?h:gi([h,o.encodeLocation?o.encodeLocation(M.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathnameBase])})),s,n,r,i);return t&&C?_.createElement(Cc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},C):C}function x3(){let e=C3(),t=a3(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=_.createElement(_.Fragment,null,_.createElement("p",null,"💿 Hey developer 👋"),_.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",_.createElement("code",{style:o},"ErrorBoundary")," or"," ",_.createElement("code",{style:o},"errorElement")," prop on your route.")),_.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:i},n):null,s)}var b3=_.createElement(x3,null),Aj=class extends _.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=h3(e.digest);n&&(e=n)}let t=e!==void 0?_.createElement(Nr.Provider,{value:this.props.routeContext},_.createElement(ex.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?_.createElement(w3,{error:e},t):t}};Aj.contextType=s3;var k0=new WeakMap;function w3({children:e,error:t}){let{basename:n}=_.useContext(Hn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=p3(t.digest);if(r){let i=k0.get(t);if(i)throw i;let o=xj(r.location,n);if(yj&&!k0.get(t))if(o.isExternal||r.reloadDocument)window.location.href=o.absoluteURL||o.to;else{const s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:r.replace}));throw k0.set(t,s),s}return _.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function S3({routeContext:e,match:t,children:n}){let r=_.useContext(Ml);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),_.createElement(Nr.Provider,{value:e},n)}function _3(e,t=[],n=null,r=null,i=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,s=n==null?void 0:n.errors;if(s!=null){let h=o.findIndex(g=>g.route.id&&(s==null?void 0:s[g.route.id])!==void 0);st(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),o=o.slice(0,Math.min(o.length,h+1))}let u=!1,f=-1;if(n)for(let h=0;h=0?o=o.slice(0,f+1):o=[o[0]];break}}}let p=n&&r?(h,g)=>{var y,w;r(h,{location:n.location,params:((w=(y=n.matches)==null?void 0:y[0])==null?void 0:w.params)??{},unstable_pattern:o3(n.matches),errorInfo:g})}:void 0;return o.reduceRight((h,g,y)=>{let w,N=!1,A=null,E=null;n&&(w=s&&g.route.id?s[g.route.id]:void 0,A=g.route.errorElement||b3,u&&(f<0&&y===0?(Tj("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),N=!0,E=null):f===y&&(N=!0,E=g.route.hydrateFallbackElement||null)));let C=t.concat(o.slice(0,y+1)),j=()=>{let M;return w?M=A:N?M=E:g.route.Component?M=_.createElement(g.route.Component,null):g.route.element?M=g.route.element:M=h,_.createElement(S3,{match:g,routeContext:{outlet:h,matches:C,isDataRoute:n!=null},children:M})};return n&&(g.route.ErrorBoundary||g.route.errorElement||y===0)?_.createElement(Aj,{location:n.location,revalidation:n.revalidation,component:A,error:w,children:j(),routeContext:{outlet:null,matches:C,isDataRoute:!0},onError:p}):j()},null)}function tx(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function N3(e){let t=_.useContext(Ml);return st(t,tx(e)),t}function E3(e){let t=_.useContext(op);return st(t,tx(e)),t}function A3(e){let t=_.useContext(Nr);return st(t,tx(e)),t}function nx(e){let t=A3(e),n=t.matches[t.matches.length-1];return st(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function T3(){return nx("useRouteId")}function C3(){var r;let e=_.useContext(ex),t=E3("useRouteError"),n=nx("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function k3(){let{router:e}=N3("useNavigate"),t=nx("useNavigate"),n=_.useRef(!1);return Nj(()=>{n.current=!0}),_.useCallback(async(i,o={})=>{ir(n.current,_j),n.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...o}))},[e,t])}var jN={};function Tj(e,t,n){!t&&!jN[e]&&(jN[e]=!0,ir(!1,n))}_.memo(j3);function j3({routes:e,future:t,state:n,onError:r}){return Ej(e,void 0,n,r,t)}function MN({to:e,replace:t,state:n,relative:r}){st(Il()," may be used only in the context of a component.");let{static:i}=_.useContext(Hn);ir(!i," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:o}=_.useContext(Nr),{pathname:s}=Er(),u=ki(),f=Zy(e,Qy(o),s,r==="path"),p=JSON.stringify(f);return _.useEffect(()=>{u(JSON.parse(p),{replace:t,state:n,relative:r})},[u,p,r,t,n]),null}function di(e){st(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function M3({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:o=!1,unstable_useTransitions:s}){st(!Il(),"You cannot render a inside another . You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),f=_.useMemo(()=>({basename:u,navigator:i,static:o,unstable_useTransitions:s,future:{}}),[u,i,o,s]);typeof n=="string"&&(n=fo(n));let{pathname:p="/",search:h="",hash:g="",state:y=null,key:w="default"}=n,N=_.useMemo(()=>{let A=xi(p,u);return A==null?null:{location:{pathname:A,search:h,hash:g,state:y,key:w},navigationType:r}},[u,p,h,g,y,w,r]);return ir(N!=null,` is not able to match the URL "${p}${h}${g}" because it does not start with the basename, so the won't render anything.`),N==null?null:_.createElement(Hn.Provider,{value:f},_.createElement(Cc.Provider,{children:t,value:N}))}function IN({children:e,location:t}){return y3(jv(e),t)}function jv(e,t=[]){let n=[];return _.Children.forEach(e,(r,i)=>{if(!_.isValidElement(r))return;let o=[...t,i];if(r.type===_.Fragment){n.push.apply(n,jv(r.props.children,o));return}st(r.type===di,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),st(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=jv(r.props.children,o)),n.push(s)}),n}var qd="get",Hd="application/x-www-form-urlencoded";function lp(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function I3(e){return lp(e)&&e.tagName.toLowerCase()==="button"}function R3(e){return lp(e)&&e.tagName.toLowerCase()==="form"}function P3(e){return lp(e)&&e.tagName.toLowerCase()==="input"}function O3(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function z3(e,t){return e.button===0&&(!t||t==="_self")&&!O3(e)}var hd=null;function D3(){if(hd===null)try{new FormData(document.createElement("form"),0),hd=!1}catch{hd=!0}return hd}var L3=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function j0(e){return e!=null&&!L3.has(e)?(ir(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Hd}"`),null):e}function U3(e,t){let n,r,i,o,s;if(R3(e)){let u=e.getAttribute("action");r=u?xi(u,t):null,n=e.getAttribute("method")||qd,i=j0(e.getAttribute("enctype"))||Hd,o=new FormData(e)}else if(I3(e)||P3(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a