var Up=Object.defineProperty;var Hp=(u,c,d)=>c in u?Up(u,c,{enumerable:!0,configurable:!0,writable:!0,value:d}):u[c]=d;var Vc=(u,c,d)=>Hp(u,typeof c!="symbol"?c+"":c,d);(function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))r(f);new MutationObserver(f=>{for(const p of f)if(p.type==="childList")for(const y of p.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&r(y)}).observe(document,{childList:!0,subtree:!0});function d(f){const p={};return f.integrity&&(p.integrity=f.integrity),f.referrerPolicy&&(p.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?p.credentials="include":f.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function r(f){if(f.ep)return;f.ep=!0;const p=d(f);fetch(f.href,p)}})();var Zc={exports:{}},Wn={};/** * @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 xm;function qp(){if(xm)return Wn;xm=1;var u=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function d(r,f,p){var y=null;if(p!==void 0&&(y=""+p),f.key!==void 0&&(y=""+f.key),"key"in f){p={};for(var v in f)v!=="key"&&(p[v]=f[v])}else p=f;return f=p.ref,{$$typeof:u,type:r,key:y,ref:f!==void 0?f:null,props:p}}return Wn.Fragment=c,Wn.jsx=d,Wn.jsxs=d,Wn}var vm;function Bp(){return vm||(vm=1,Zc.exports=qp()),Zc.exports}var n=Bp(),Jc={exports:{}},ye={};/** * @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 ym;function Lp(){if(ym)return ye;ym=1;var u=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.consumer"),y=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),T=Symbol.iterator;function G(j){return j===null||typeof j!="object"?null:(j=T&&j[T]||j["@@iterator"],typeof j=="function"?j:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,M={};function k(j,q,X){this.props=j,this.context=q,this.refs=M,this.updater=X||O}k.prototype.isReactComponent={},k.prototype.setState=function(j,q){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,q,"setState")},k.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function F(){}F.prototype=k.prototype;function K(j,q,X){this.props=j,this.context=q,this.refs=M,this.updater=X||O}var ee=K.prototype=new F;ee.constructor=K,H(ee,k.prototype),ee.isPureReactComponent=!0;var I=Array.isArray;function J(){}var B={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function Q(j,q,X){var se=X.ref;return{$$typeof:u,type:j,key:q,ref:se!==void 0?se:null,props:X}}function W(j,q){return Q(j.type,q,j.props)}function P(j){return typeof j=="object"&&j!==null&&j.$$typeof===u}function D(j){var q={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(X){return q[X]})}var te=/\/+/g;function $(j,q){return typeof j=="object"&&j!==null&&j.key!=null?D(""+j.key):q.toString(36)}function ae(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(J,J):(j.status="pending",j.then(function(q){j.status==="pending"&&(j.status="fulfilled",j.value=q)},function(q){j.status==="pending"&&(j.status="rejected",j.reason=q)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function w(j,q,X,se,de){var ve=typeof j;(ve==="undefined"||ve==="boolean")&&(j=null);var Ne=!1;if(j===null)Ne=!0;else switch(ve){case"bigint":case"string":case"number":Ne=!0;break;case"object":switch(j.$$typeof){case u:case c:Ne=!0;break;case N:return Ne=j._init,w(Ne(j._payload),q,X,se,de)}}if(Ne)return de=de(j),Ne=se===""?"."+$(j,0):se,I(de)?(X="",Ne!=null&&(X=Ne.replace(te,"$&/")+"/"),w(de,q,X,"",function(Ka){return Ka})):de!=null&&(P(de)&&(de=W(de,X+(de.key==null||j&&j.key===de.key?"":(""+de.key).replace(te,"$&/")+"/")+Ne)),q.push(de)),1;Ne=0;var Fe=se===""?".":se+":";if(I(j))for(var Ve=0;Ve>>1,ze=w[me];if(0>>1;mef(X,ie))sef(de,X)?(w[me]=de,w[se]=ie,me=se):(w[me]=X,w[q]=ie,me=q);else if(sef(de,ie))w[me]=de,w[se]=ie,me=se;else break e}}return Y}function f(w,Y){var ie=w.sortIndex-Y.sortIndex;return ie!==0?ie:w.id-Y.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var p=performance;u.unstable_now=function(){return p.now()}}else{var y=Date,v=y.now();u.unstable_now=function(){return y.now()-v}}var g=[],x=[],N=1,b=null,T=3,G=!1,O=!1,H=!1,M=!1,k=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;function ee(w){for(var Y=d(x);Y!==null;){if(Y.callback===null)r(x);else if(Y.startTime<=w)r(x),Y.sortIndex=Y.expirationTime,c(g,Y);else break;Y=d(x)}}function I(w){if(H=!1,ee(w),!O)if(d(g)!==null)O=!0,J||(J=!0,D());else{var Y=d(x);Y!==null&&ae(I,Y.startTime-w)}}var J=!1,B=-1,R=5,Q=-1;function W(){return M?!0:!(u.unstable_now()-Qw&&W());){var me=b.callback;if(typeof me=="function"){b.callback=null,T=b.priorityLevel;var ze=me(b.expirationTime<=w);if(w=u.unstable_now(),typeof ze=="function"){b.callback=ze,ee(w),Y=!0;break t}b===d(g)&&r(g),ee(w)}else r(g);b=d(g)}if(b!==null)Y=!0;else{var j=d(x);j!==null&&ae(I,j.startTime-w),Y=!1}}break e}finally{b=null,T=ie,G=!1}Y=void 0}}finally{Y?D():J=!1}}}var D;if(typeof K=="function")D=function(){K(P)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,$=te.port2;te.port1.onmessage=P,D=function(){$.postMessage(null)}}else D=function(){k(P,0)};function ae(w,Y){B=k(function(){w(u.unstable_now())},Y)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(w){w.callback=null},u.unstable_forceFrameRate=function(w){0>w||125me?(w.sortIndex=ie,c(x,w),d(g)===null&&w===d(x)&&(H?(F(B),B=-1):H=!0,ae(I,ie-me))):(w.sortIndex=ze,c(g,w),O||G||(O=!0,J||(J=!0,D()))),w},u.unstable_shouldYield=W,u.unstable_wrapCallback=function(w){var Y=T;return function(){var ie=T;T=Y;try{return w.apply(this,arguments)}finally{T=ie}}}})(Fc)),Fc}var jm;function Gp(){return jm||(jm=1,Kc.exports=kp()),Kc.exports}var Wc={exports:{}},dt={};/** * @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 Sm;function Yp(){if(Sm)return dt;Sm=1;var u=lr();function c(g){var x="https://react.dev/errors/"+g;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(c){console.error(c)}}return u(),Wc.exports=Yp(),Wc.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 Em;function Xp(){if(Em)return Pn;Em=1;var u=Gp(),c=lr(),d=Qp();function r(e){var t="https://react.dev/errors/"+e;if(1ze||(e.current=me[ze],me[ze]=null,ze--)}function X(e,t){ze++,me[ze]=e.current,e.current=t}var se=j(null),de=j(null),ve=j(null),Ne=j(null);function Fe(e,t){switch(X(ve,t),X(de,e),X(se,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Lf(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Lf(t),e=kf(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(se),X(se,e)}function Ve(){q(se),q(de),q(ve)}function Ka(e){e.memoizedState!==null&&X(Ne,e);var t=se.current,a=kf(t,e.type);t!==a&&(X(de,e),X(se,a))}function pl(e){de.current===e&&(q(se),q(de)),Ne.current===e&&(q(Ne),Jn._currentValue=ie)}var pe,Dt;function Me(e){if(pe===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);pe=t&&t[1]||"",Dt=-1)":-1s||S[l]!==C[s]){var L=` `+S[l].replace(" at new "," at ");return e.displayName&&L.includes("")&&(L=L.replace("",e.displayName)),L}while(1<=l&&0<=s);break}}}finally{Na=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Me(a):""}function fh(e,t){switch(e.tag){case 26:case 27:case 5:return Me(e.type);case 16:return Me("Lazy");case 13:return e.child!==t&&t!==null?Me("Suspense Fallback"):Me("Suspense");case 19:return Me("SuspenseList");case 0:case 15:return zi(e.type,!1);case 11:return zi(e.type.render,!1);case 1:return zi(e.type,!0);case 31:return Me("Activity");default:return""}}function hr(e){try{var t="",a=null;do t+=fh(e,a),a=e,e=e.return;while(e);return t}catch(l){return` Error generating stack: `+l.message+` `+l.stack}}var Oi=Object.prototype.hasOwnProperty,wi=u.unstable_scheduleCallback,Ri=u.unstable_cancelCallback,mh=u.unstable_shouldYield,hh=u.unstable_requestPaint,St=u.unstable_now,ph=u.unstable_getCurrentPriorityLevel,pr=u.unstable_ImmediatePriority,xr=u.unstable_UserBlockingPriority,ls=u.unstable_NormalPriority,xh=u.unstable_LowPriority,vr=u.unstable_IdlePriority,vh=u.log,yh=u.unstable_setDisableYieldValue,nn=null,Nt=null;function Ea(e){if(typeof vh=="function"&&yh(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(nn,e)}catch{}}var Et=Math.clz32?Math.clz32:jh,gh=Math.log,bh=Math.LN2;function jh(e){return e>>>=0,e===0?32:31-(gh(e)/bh|0)|0}var ns=256,ss=262144,is=4194304;function Fa(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 us(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var s=0,i=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var h=l&134217727;return h!==0?(l=h&~i,l!==0?s=Fa(l):(o&=h,o!==0?s=Fa(o):a||(a=h&~e,a!==0&&(s=Fa(a))))):(h=l&~i,h!==0?s=Fa(h):o!==0?s=Fa(o):a||(a=l&~e,a!==0&&(s=Fa(a)))),s===0?0:t!==0&&t!==s&&(t&i)===0&&(i=s&-s,a=t&-t,i>=a||i===32&&(a&4194048)!==0)?t:s}function sn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Sh(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 yr(){var e=is;return is<<=1,(is&62914560)===0&&(is=4194304),e}function Di(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function un(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Nh(e,t,a,l,s,i){var o=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var h=e.entanglements,S=e.expirationTimes,C=e.hiddenUpdates;for(a=o&~a;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var zh=/[\n"\\]/g;function Ut(e){return e.replace(zh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Li(e,t,a,l,s,i,o,h){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Mt(t)):e.value!==""+Mt(t)&&(e.value=""+Mt(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?ki(e,o,Mt(t)):a!=null?ki(e,o,Mt(a)):l!=null&&e.removeAttribute("value"),s==null&&i!=null&&(e.defaultChecked=!!i),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.name=""+Mt(h):e.removeAttribute("name")}function wr(e,t,a,l,s,i,o,h){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||a!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Bi(e);return}a=a!=null?""+Mt(a):"",t=t!=null?""+Mt(t):a,h||t===e.value||(e.value=t),e.defaultValue=t}l=l??s,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=h?e.checked:!!l,e.defaultChecked=!!l,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),Bi(e)}function ki(e,t,a){t==="number"&&os(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function jl(e,t,a,l){if(e=e.options,t){t={};for(var s=0;s"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vi=!1;if(ia)try{var dn={};Object.defineProperty(dn,"passive",{get:function(){Vi=!0}}),window.addEventListener("test",dn,dn),window.removeEventListener("test",dn,dn)}catch{Vi=!1}var Ta=null,Zi=null,fs=null;function Br(){if(fs)return fs;var e,t=Zi,a=t.length,l,s="value"in Ta?Ta.value:Ta.textContent,i=s.length;for(e=0;e=hn),Xr=" ",Vr=!1;function Zr(e,t){switch(e){case"keyup":return l0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _l=!1;function s0(e,t){switch(e){case"compositionend":return Jr(t);case"keypress":return t.which!==32?null:(Vr=!0,Xr);case"textInput":return e=t.data,e===Xr&&Vr?null:e;default:return null}}function i0(e,t){if(_l)return e==="compositionend"||!Wi&&Zr(e,t)?(e=Br(),fs=Zi=Ta=null,_l=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=to(a)}}function lo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?lo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function no(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=os(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=os(e.document)}return t}function eu(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 h0=ia&&"documentMode"in document&&11>=document.documentMode,Tl=null,tu=null,yn=null,au=!1;function so(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;au||Tl==null||Tl!==os(l)||(l=Tl,"selectionStart"in l&&eu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),yn&&vn(yn,l)||(yn=l,l=si(tu,"onSelect"),0>=o,s-=o,Pt=1<<32-Et(t)+s|a<je?(Ae=ce,ce=null):Ae=ce.sibling;var Re=z(_,ce,A[je],V);if(Re===null){ce===null&&(ce=Ae);break}e&&ce&&Re.alternate===null&&t(_,ce),E=i(Re,E,je),we===null?fe=Re:we.sibling=Re,we=Re,ce=Ae}if(je===A.length)return a(_,ce),Ce&&ca(_,je),fe;if(ce===null){for(;jeje?(Ae=ce,ce=null):Ae=ce.sibling;var $a=z(_,ce,Re.value,V);if($a===null){ce===null&&(ce=Ae);break}e&&ce&&$a.alternate===null&&t(_,ce),E=i($a,E,je),we===null?fe=$a:we.sibling=$a,we=$a,ce=Ae}if(Re.done)return a(_,ce),Ce&&ca(_,je),fe;if(ce===null){for(;!Re.done;je++,Re=A.next())Re=Z(_,Re.value,V),Re!==null&&(E=i(Re,E,je),we===null?fe=Re:we.sibling=Re,we=Re);return Ce&&ca(_,je),fe}for(ce=l(ce);!Re.done;je++,Re=A.next())Re=U(ce,_,je,Re.value,V),Re!==null&&(e&&Re.alternate!==null&&ce.delete(Re.key===null?je:Re.key),E=i(Re,E,je),we===null?fe=Re:we.sibling=Re,we=Re);return e&&ce.forEach(function(Mp){return t(_,Mp)}),Ce&&ca(_,je),fe}function Le(_,E,A,V){if(typeof A=="object"&&A!==null&&A.type===H&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case G:e:{for(var fe=A.key;E!==null;){if(E.key===fe){if(fe=A.type,fe===H){if(E.tag===7){a(_,E.sibling),V=s(E,A.props.children),V.return=_,_=V;break e}}else if(E.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===R&&ul(fe)===E.type){a(_,E.sibling),V=s(E,A.props),En(V,A),V.return=_,_=V;break e}a(_,E);break}else t(_,E);E=E.sibling}A.type===H?(V=al(A.props.children,_.mode,V,A.key),V.return=_,_=V):(V=Ss(A.type,A.key,A.props,null,_.mode,V),En(V,A),V.return=_,_=V)}return o(_);case O:e:{for(fe=A.key;E!==null;){if(E.key===fe)if(E.tag===4&&E.stateNode.containerInfo===A.containerInfo&&E.stateNode.implementation===A.implementation){a(_,E.sibling),V=s(E,A.children||[]),V.return=_,_=V;break e}else{a(_,E);break}else t(_,E);E=E.sibling}V=ru(A,_.mode,V),V.return=_,_=V}return o(_);case R:return A=ul(A),Le(_,E,A,V)}if(ae(A))return ue(_,E,A,V);if(D(A)){if(fe=D(A),typeof fe!="function")throw Error(r(150));return A=fe.call(A),he(_,E,A,V)}if(typeof A.then=="function")return Le(_,E,zs(A),V);if(A.$$typeof===K)return Le(_,E,_s(_,A),V);Os(_,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,E!==null&&E.tag===6?(a(_,E.sibling),V=s(E,A),V.return=_,_=V):(a(_,E),V=cu(A,_.mode,V),V.return=_,_=V),o(_)):a(_,E)}return function(_,E,A,V){try{Nn=0;var fe=Le(_,E,A,V);return ql=null,fe}catch(ce){if(ce===Hl||ce===As)throw ce;var we=Tt(29,ce,null,_.mode);return we.lanes=V,we.return=_,we}finally{}}}var rl=zo(!0),Oo=zo(!1),wa=!1;function ju(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Su(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 Ra(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Da(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(De&2)!==0){var s=l.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),l.pending=t,t=js(e),mo(e,null,a),t}return bs(e,l,t,a),js(e)}function _n(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,br(e,a)}}function Nu(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var s=null,i=null;if(a=a.firstBaseUpdate,a!==null){do{var o={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};i===null?s=i=o:i=i.next=o,a=a.next}while(a!==null);i===null?s=i=t:i=i.next=t}else s=i=t;a={baseState:l.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Eu=!1;function Tn(){if(Eu){var e=Ul;if(e!==null)throw e}}function An(e,t,a,l){Eu=!1;var s=e.updateQueue;wa=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,h=s.shared.pending;if(h!==null){s.shared.pending=null;var S=h,C=S.next;S.next=null,o===null?i=C:o.next=C,o=S;var L=e.alternate;L!==null&&(L=L.updateQueue,h=L.lastBaseUpdate,h!==o&&(h===null?L.firstBaseUpdate=C:h.next=C,L.lastBaseUpdate=S))}if(i!==null){var Z=s.baseState;o=0,L=C=S=null,h=i;do{var z=h.lane&-536870913,U=z!==h.lane;if(U?(Te&z)===z:(l&z)===z){z!==0&&z===Ml&&(Eu=!0),L!==null&&(L=L.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});e:{var ue=e,he=h;z=t;var Le=a;switch(he.tag){case 1:if(ue=he.payload,typeof ue=="function"){Z=ue.call(Le,Z,z);break e}Z=ue;break e;case 3:ue.flags=ue.flags&-65537|128;case 0:if(ue=he.payload,z=typeof ue=="function"?ue.call(Le,Z,z):ue,z==null)break e;Z=b({},Z,z);break e;case 2:wa=!0}}z=h.callback,z!==null&&(e.flags|=64,U&&(e.flags|=8192),U=s.callbacks,U===null?s.callbacks=[z]:U.push(z))}else U={lane:z,tag:h.tag,payload:h.payload,callback:h.callback,next:null},L===null?(C=L=U,S=Z):L=L.next=U,o|=z;if(h=h.next,h===null){if(h=s.shared.pending,h===null)break;U=h,h=U.next,U.next=null,s.lastBaseUpdate=U,s.shared.pending=null}}while(!0);L===null&&(S=Z),s.baseState=S,s.firstBaseUpdate=C,s.lastBaseUpdate=L,i===null&&(s.shared.lanes=0),Ba|=o,e.lanes=o,e.memoizedState=Z}}function wo(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Ro(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;ei?i:8;var o=w.T,h={};w.T=h,Qu(e,!1,t,a);try{var S=s(),C=w.S;if(C!==null&&C(h,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var L=N0(S,l);On(e,t,L,wt(e))}else On(e,t,l,wt(e))}catch(Z){On(e,t,{then:function(){},status:"rejected",reason:Z},wt())}finally{Y.p=i,o!==null&&h.types!==null&&(o.types=h.types),w.T=o}}function z0(){}function Gu(e,t,a,l){if(e.tag!==5)throw Error(r(476));var s=od(e).queue;rd(e,s,t,ie,a===null?z0:function(){return dd(e),a(l)})}function od(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:ie},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function dd(e){var t=od(e);t.next===null&&(t=e.alternate.memoizedState),On(e,t.next.queue,{},wt())}function Yu(){return ut(Jn)}function fd(){return Ke().memoizedState}function md(){return Ke().memoizedState}function O0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=wt();e=Ra(a);var l=Da(t,e,a);l!==null&&(jt(l,t,a),_n(l,t,a)),t={cache:vu()},e.payload=t;return}t=t.return}}function w0(e,t,a){var l=wt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ks(e)?pd(t,a):(a=iu(e,t,a,l),a!==null&&(jt(a,e,l),xd(a,t,l)))}function hd(e,t,a){var l=wt();On(e,t,a,l)}function On(e,t,a,l){var s={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(ks(e))pd(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,h=i(o,a);if(s.hasEagerState=!0,s.eagerState=h,_t(h,o))return bs(e,t,s,0),ke===null&&gs(),!1}catch{}finally{}if(a=iu(e,t,s,l),a!==null)return jt(a,e,l),xd(a,t,l),!0}return!1}function Qu(e,t,a,l){if(l={lane:2,revertLane:jc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ks(e)){if(t)throw Error(r(479))}else t=iu(e,a,l,2),t!==null&&jt(t,e,2)}function ks(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function pd(e,t){Ll=Ds=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function xd(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,br(e,a)}}var wn={readContext:ut,use:Hs,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useLayoutEffect:Ze,useInsertionEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useSyncExternalStore:Ze,useId:Ze,useHostTransitionStatus:Ze,useFormState:Ze,useActionState:Ze,useOptimistic:Ze,useMemoCache:Ze,useCacheRefresh:Ze};wn.useEffectEvent=Ze;var vd={readContext:ut,use:Hs,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:ed,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Bs(4194308,4,nd.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Bs(4194308,4,e,t)},useInsertionEffect:function(e,t){Bs(4,2,e,t)},useMemo:function(e,t){var a=mt();t=t===void 0?null:t;var l=e();if(ol){Ea(!0);try{e()}finally{Ea(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=mt();if(a!==void 0){var s=a(t);if(ol){Ea(!0);try{a(t)}finally{Ea(!1)}}}else s=t;return l.memoizedState=l.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},l.queue=e,e=e.dispatch=w0.bind(null,ge,e),[l.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:function(e){e=Hu(e);var t=e.queue,a=hd.bind(null,ge,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Lu,useDeferredValue:function(e,t){var a=mt();return ku(a,e,t)},useTransition:function(){var e=Hu(!1);return e=rd.bind(null,ge,e.queue,!0,!1),mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=ge,s=mt();if(Ce){if(a===void 0)throw Error(r(407));a=a()}else{if(a=t(),ke===null)throw Error(r(349));(Te&127)!==0||Bo(l,t,a)}s.memoizedState=a;var i={value:a,getSnapshot:t};return s.queue=i,ed(ko.bind(null,l,i,e),[e]),l.flags|=2048,Gl(9,{destroy:void 0},Lo.bind(null,l,i,a,t),null),a},useId:function(){var e=mt(),t=ke.identifierPrefix;if(Ce){var a=It,l=Pt;a=(l&~(1<<32-Et(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Ms++,0<\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?i.multiple=!0:l.size&&(i.size=l.size);break;default:i=typeof l.is=="string"?o.createElement(s,{is:l.is}):o.createElement(s)}}i[st]=t,i[pt]=l;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)i.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=i;e:switch(rt(i,s,l),s){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ha(t)}}return Ye(t),lc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ha(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=ve.current,Rl(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,s=it,s!==null)switch(s.tag){case 27:case 5:l=s.memoizedProps}e[st]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||qf(e.nodeValue,a)),e||za(t,!0)}else e=ii(e).createTextNode(l),e[st]=t,t.stateNode=e}return Ye(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Rl(t),a!==null){if(e===null){if(!l)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[st]=t}else ll(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),e=!1}else a=mu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Ct(t),t):(Ct(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Ye(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=Rl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));s[st]=t}else ll(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),s=!1}else s=mu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Ct(t),t):(Ct(t),null)}return Ct(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,s=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(s=l.alternate.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==s&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Vs(t,t.updateQueue),Ye(t),null);case 4:return Ve(),e===null&&_c(t.stateNode.containerInfo),Ye(t),null;case 10:return oa(t.type),Ye(t),null;case 19:if(q($e),l=t.memoizedState,l===null)return Ye(t),null;if(s=(t.flags&128)!==0,i=l.rendering,i===null)if(s)Dn(l,!1);else{if(Je!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Rs(e),i!==null){for(t.flags|=128,Dn(l,!1),e=i.updateQueue,t.updateQueue=e,Vs(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)ho(a,e),a=a.sibling;return X($e,$e.current&1|2),Ce&&ca(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&St()>Fs&&(t.flags|=128,s=!0,Dn(l,!1),t.lanes=4194304)}else{if(!s)if(e=Rs(i),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Vs(t,e),Dn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!Ce)return Ye(t),null}else 2*St()-l.renderingStartTime>Fs&&a!==536870912&&(t.flags|=128,s=!0,Dn(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(e=l.last,e!==null?e.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=St(),e.sibling=null,a=$e.current,X($e,s?a&1|2:a&1),Ce&&ca(t,l.treeForkCount),e):(Ye(t),null);case 22:case 23:return Ct(t),Tu(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),a=t.updateQueue,a!==null&&Vs(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&q(il),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),oa(We),Ye(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function H0(e,t){switch(du(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return oa(We),Ve(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return pl(t),null;case 31:if(t.memoizedState!==null){if(Ct(t),t.alternate===null)throw Error(r(340));ll()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ct(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));ll()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q($e),null;case 4:return Ve(),null;case 10:return oa(t.type),null;case 22:case 23:return Ct(t),Tu(),e!==null&&q(il),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return oa(We),null;case 25:return null;default:return null}}function Gd(e,t){switch(du(t),t.tag){case 3:oa(We),Ve();break;case 26:case 27:case 5:pl(t);break;case 4:Ve();break;case 31:t.memoizedState!==null&&Ct(t);break;case 13:Ct(t);break;case 19:q($e);break;case 10:oa(t.type);break;case 22:case 23:Ct(t),Tu(),e!==null&&q(il);break;case 24:oa(We)}}function Mn(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var s=l.next;a=s;do{if((a.tag&e)===e){l=void 0;var i=a.create,o=a.inst;l=i(),o.destroy=l}a=a.next}while(a!==s)}}catch(h){He(t,t.return,h)}}function Ha(e,t,a){try{var l=t.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var i=s.next;l=i;do{if((l.tag&e)===e){var o=l.inst,h=o.destroy;if(h!==void 0){o.destroy=void 0,s=t;var S=a,C=h;try{C()}catch(L){He(s,S,L)}}}l=l.next}while(l!==i)}}catch(L){He(t,t.return,L)}}function Yd(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Ro(t,a)}catch(l){He(e,e.return,l)}}}function Qd(e,t,a){a.props=dl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){He(e,t,l)}}function Un(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(s){He(e,t,s)}}function ea(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(s){He(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(s){He(e,t,s)}else a.current=null}function Xd(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(s){He(e,e.return,s)}}function nc(e,t,a){try{var l=e.stateNode;np(l,e.type,a,t),l[pt]=t}catch(s){He(e,e.return,s)}}function Vd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qa(e.type)||e.tag===4}function sc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Vd(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&&Qa(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 ic(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=sa));else if(l!==4&&(l===27&&Qa(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(ic(e,t,a),e=e.sibling;e!==null;)ic(e,t,a),e=e.sibling}function Zs(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Qa(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Zs(e,t,a),e=e.sibling;e!==null;)Zs(e,t,a),e=e.sibling}function Zd(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);rt(t,l,a),t[st]=e,t[pt]=a}catch(i){He(e,e.return,i)}}var pa=!1,et=!1,uc=!1,Jd=typeof WeakSet=="function"?WeakSet:Set,nt=null;function q0(e,t){if(e=e.containerInfo,Cc=mi,e=no(e),eu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var s=l.anchorOffset,i=l.focusNode;l=l.focusOffset;try{a.nodeType,i.nodeType}catch{a=null;break e}var o=0,h=-1,S=-1,C=0,L=0,Z=e,z=null;t:for(;;){for(var U;Z!==a||s!==0&&Z.nodeType!==3||(h=o+s),Z!==i||l!==0&&Z.nodeType!==3||(S=o+l),Z.nodeType===3&&(o+=Z.nodeValue.length),(U=Z.firstChild)!==null;)z=Z,Z=U;for(;;){if(Z===e)break t;if(z===a&&++C===s&&(h=o),z===i&&++L===l&&(S=o),(U=Z.nextSibling)!==null)break;Z=z,z=Z.parentNode}Z=U}a=h===-1||S===-1?null:{start:h,end:S}}else a=null}a=a||{start:0,end:0}}else a=null;for(zc={focusedElem:e,selectionRange:a},mi=!1,nt=t;nt!==null;)if(t=nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,nt=e;else for(;nt!==null;){switch(t=nt,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a title"))),rt(i,l,a),i[st]=e,lt(i),l=i;break e;case"link":var o=em("link","href",s).get(l+(a.href||""));if(o){for(var h=0;hLe&&(o=Le,Le=he,he=o);var _=ao(h,he),E=ao(h,Le);if(_&&E&&(U.rangeCount!==1||U.anchorNode!==_.node||U.anchorOffset!==_.offset||U.focusNode!==E.node||U.focusOffset!==E.offset)){var A=Z.createRange();A.setStart(_.node,_.offset),U.removeAllRanges(),he>Le?(U.addRange(A),U.extend(E.node,E.offset)):(A.setEnd(E.node,E.offset),U.addRange(A))}}}}for(Z=[],U=h;U=U.parentNode;)U.nodeType===1&&Z.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;ha?32:a,w.T=null,a=hc,hc=null;var i=ka,o=ba;if(tt=0,Zl=ka=null,ba=0,(De&6)!==0)throw Error(r(331));var h=De;if(De|=4,nf(i.current),tf(i,i.current,o,a),De=h,Gn(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(nn,i)}catch{}return!0}finally{Y.p=s,w.T=l,Nf(e,t)}}function _f(e,t,a){t=qt(a,t),t=Ju(e.stateNode,t,2),e=Da(e,t,2),e!==null&&(un(e,2),ta(e))}function He(e,t,a){if(e.tag===3)_f(e,e,a);else for(;t!==null;){if(t.tag===3){_f(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(La===null||!La.has(l))){e=qt(a,e),a=_d(2),l=Da(t,a,2),l!==null&&(Td(a,l,t,e),un(l,2),ta(l));break}}t=t.return}}function yc(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new k0;var s=new Set;l.set(t,s)}else s=l.get(t),s===void 0&&(s=new Set,l.set(t,s));s.has(a)||(oc=!0,s.add(a),e=V0.bind(null,e,t,a),t.then(e,e))}function V0(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,ke===e&&(Te&a)===a&&(Je===4||Je===3&&(Te&62914560)===Te&&300>St()-Ks?(De&2)===0&&Jl(e,0):dc|=a,Vl===Te&&(Vl=0)),ta(e)}function Tf(e,t){t===0&&(t=yr()),e=tl(e,t),e!==null&&(un(e,t),ta(e))}function Z0(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Tf(e,a)}function J0(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,s=e.memoizedState;s!==null&&(a=s.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(t),Tf(e,a)}function $0(e,t){return wi(e,t)}var ai=null,Kl=null,gc=!1,li=!1,bc=!1,Ya=0;function ta(e){e!==Kl&&e.next===null&&(Kl===null?ai=Kl=e:Kl=Kl.next=e),li=!0,gc||(gc=!0,F0())}function Gn(e,t){if(!bc&&li){bc=!0;do for(var a=!1,l=ai;l!==null;){if(e!==0){var s=l.pendingLanes;if(s===0)var i=0;else{var o=l.suspendedLanes,h=l.pingedLanes;i=(1<<31-Et(42|e)+1)-1,i&=s&~(o&~h),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(a=!0,Of(l,i))}else i=Te,i=us(l,l===ke?i:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(i&3)===0||sn(l,i)||(a=!0,Of(l,i));l=l.next}while(a);bc=!1}}function K0(){Af()}function Af(){li=gc=!1;var e=0;Ya!==0&&ip()&&(e=Ya);for(var t=St(),a=null,l=ai;l!==null;){var s=l.next,i=Cf(l,t);i===0?(l.next=null,a===null?ai=s:a.next=s,s===null&&(Kl=a)):(a=l,(e!==0||(i&3)!==0)&&(li=!0)),l=s}tt!==0&&tt!==5||Gn(e),Ya!==0&&(Ya=0)}function Cf(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes&-62914561;0h)break;var L=S.transferSize,Z=S.initiatorType;L&&Bf(Z)&&(S=S.responseEnd,o+=L*(S"u"?null:document;function Ff(e,t,a){var l=Fl;if(l&&typeof t=="string"&&t){var s=Ut(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof a=="string"&&(s+='[crossorigin="'+a+'"]'),Kf.has(s)||(Kf.add(s),e={rel:e,crossOrigin:a,href:t},l.querySelector(s)===null&&(t=l.createElement("link"),rt(t,"link",e),lt(t),l.head.appendChild(t)))}}function pp(e){ja.D(e),Ff("dns-prefetch",e,null)}function xp(e,t){ja.C(e,t),Ff("preconnect",e,t)}function vp(e,t,a){ja.L(e,t,a);var l=Fl;if(l&&e&&t){var s='link[rel="preload"][as="'+Ut(t)+'"]';t==="image"&&a&&a.imageSrcSet?(s+='[imagesrcset="'+Ut(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(s+='[imagesizes="'+Ut(a.imageSizes)+'"]')):s+='[href="'+Ut(e)+'"]';var i=s;switch(t){case"style":i=Wl(e);break;case"script":i=Pl(e)}Qt.has(i)||(e=b({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Qt.set(i,e),l.querySelector(s)!==null||t==="style"&&l.querySelector(Vn(i))||t==="script"&&l.querySelector(Zn(i))||(t=l.createElement("link"),rt(t,"link",e),lt(t),l.head.appendChild(t)))}}function yp(e,t){ja.m(e,t);var a=Fl;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+Ut(l)+'"][href="'+Ut(e)+'"]',i=s;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Pl(e)}if(!Qt.has(i)&&(e=b({rel:"modulepreload",href:e},t),Qt.set(i,e),a.querySelector(s)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Zn(i)))return}l=a.createElement("link"),rt(l,"link",e),lt(l),a.head.appendChild(l)}}}function gp(e,t,a){ja.S(e,t,a);var l=Fl;if(l&&e){var s=gl(l).hoistableStyles,i=Wl(e);t=t||"default";var o=s.get(i);if(!o){var h={loading:0,preload:null};if(o=l.querySelector(Vn(i)))h.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Qt.get(i))&&Hc(e,a);var S=o=l.createElement("link");lt(S),rt(S,"link",e),S._p=new Promise(function(C,L){S.onload=C,S.onerror=L}),S.addEventListener("load",function(){h.loading|=1}),S.addEventListener("error",function(){h.loading|=2}),h.loading|=4,ci(o,t,l)}o={type:"stylesheet",instance:o,count:1,state:h},s.set(i,o)}}}function bp(e,t){ja.X(e,t);var a=Fl;if(a&&e){var l=gl(a).hoistableScripts,s=Pl(e),i=l.get(s);i||(i=a.querySelector(Zn(s)),i||(e=b({src:e,async:!0},t),(t=Qt.get(s))&&qc(e,t),i=a.createElement("script"),lt(i),rt(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(s,i))}}function jp(e,t){ja.M(e,t);var a=Fl;if(a&&e){var l=gl(a).hoistableScripts,s=Pl(e),i=l.get(s);i||(i=a.querySelector(Zn(s)),i||(e=b({src:e,async:!0,type:"module"},t),(t=Qt.get(s))&&qc(e,t),i=a.createElement("script"),lt(i),rt(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(s,i))}}function Wf(e,t,a,l){var s=(s=ve.current)?ui(s):null;if(!s)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Wl(a.href),a=gl(s).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Wl(a.href);var i=gl(s).hoistableStyles,o=i.get(e);if(o||(s=s.ownerDocument||s,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,o),(i=s.querySelector(Vn(e)))&&!i._p&&(o.instance=i,o.state.loading=5),Qt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Qt.set(e,a),i||Sp(s,e,a,o.state))),t&&l===null)throw Error(r(528,""));return o}if(t&&l!==null)throw Error(r(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Pl(a),a=gl(s).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Wl(e){return'href="'+Ut(e)+'"'}function Vn(e){return'link[rel="stylesheet"]['+e+"]"}function Pf(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Sp(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),rt(t,"link",a),lt(t),e.head.appendChild(t))}function Pl(e){return'[src="'+Ut(e)+'"]'}function Zn(e){return"script[async]"+e}function If(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Ut(a.href)+'"]');if(l)return t.instance=l,lt(l),l;var s=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),lt(l),rt(l,"style",s),ci(l,a.precedence,e),t.instance=l;case"stylesheet":s=Wl(a.href);var i=e.querySelector(Vn(s));if(i)return t.state.loading|=4,t.instance=i,lt(i),i;l=Pf(a),(s=Qt.get(s))&&Hc(l,s),i=(e.ownerDocument||e).createElement("link"),lt(i);var o=i;return o._p=new Promise(function(h,S){o.onload=h,o.onerror=S}),rt(i,"link",l),t.state.loading|=4,ci(i,a.precedence,e),t.instance=i;case"script":return i=Pl(a.src),(s=e.querySelector(Zn(i)))?(t.instance=s,lt(s),s):(l=a,(s=Qt.get(i))&&(l=b({},a),qc(l,s)),e=e.ownerDocument||e,s=e.createElement("script"),lt(s),rt(s,"link",l),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,ci(l,a.precedence,e));return t.instance}function ci(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=l.length?l[l.length-1]:null,i=s,o=0;o title"):null)}function Np(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function am(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Ep(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var s=Wl(l.href),i=t.querySelector(Vn(s));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=oi.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=i,lt(i);return}i=t.ownerDocument||t,l=Pf(l),(s=Qt.get(s))&&Hc(l,s),i=i.createElement("link"),lt(i);var o=i;o._p=new Promise(function(h,S){o.onload=h,o.onerror=S}),rt(i,"link",l),a.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=oi.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Bc=0;function _p(e,t){return e.stylesheets&&e.count===0&&fi(e,e.stylesheets),0Bc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(s)}}:null}function oi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)fi(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var di=null;function fi(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,di=new Map,t.forEach(Tp,e),di=null,oi.call(e))}function Tp(e,t){if(!(t.state.loading&4)){var a=di.get(e);if(a)var l=a.get(null);else{a=new Map,di.set(e,a);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(c){console.error(c)}}return u(),$c.exports=Xp(),$c.exports}var Zp=Vp();/** * react-router v7.14.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 Tm="popstate";function Am(u){return typeof u=="object"&&u!=null&&"pathname"in u&&"search"in u&&"hash"in u&&"state"in u&&"key"in u}function Jp(u={}){function c(r,f){var x;let p=(x=f.state)==null?void 0:x.masked,{pathname:y,search:v,hash:g}=p||r.location;return tr("",{pathname:y,search:v,hash:g},f.state&&f.state.usr||null,f.state&&f.state.key||"default",p?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function d(r,f){return typeof f=="string"?f:es(f)}return Kp(c,d,null,u)}function Xe(u,c){if(u===!1||u===null||typeof u>"u")throw new Error(c)}function Kt(u,c){if(!u){typeof console<"u"&&console.warn(c);try{throw new Error(c)}catch{}}}function $p(){return Math.random().toString(36).substring(2,10)}function Cm(u,c){return{usr:u.state,key:u.key,idx:c,masked:u.unstable_mask?{pathname:u.pathname,search:u.search,hash:u.hash}:void 0}}function tr(u,c,d=null,r,f){return{pathname:typeof u=="string"?u:u.pathname,search:"",hash:"",...typeof c=="string"?tn(c):c,state:d,key:c&&c.key||r||$p(),unstable_mask:f}}function es({pathname:u="/",search:c="",hash:d=""}){return c&&c!=="?"&&(u+=c.charAt(0)==="?"?c:"?"+c),d&&d!=="#"&&(u+=d.charAt(0)==="#"?d:"#"+d),u}function tn(u){let c={};if(u){let d=u.indexOf("#");d>=0&&(c.hash=u.substring(d),u=u.substring(0,d));let r=u.indexOf("?");r>=0&&(c.search=u.substring(r),u=u.substring(0,r)),u&&(c.pathname=u)}return c}function Kp(u,c,d,r={}){let{window:f=document.defaultView,v5Compat:p=!1}=r,y=f.history,v="POP",g=null,x=N();x==null&&(x=0,y.replaceState({...y.state,idx:x},""));function N(){return(y.state||{idx:null}).idx}function b(){v="POP";let M=N(),k=M==null?null:M-x;x=M,g&&g({action:v,location:H.location,delta:k})}function T(M,k){v="PUSH";let F=Am(M)?M:tr(H.location,M,k);x=N()+1;let K=Cm(F,x),ee=H.createHref(F.unstable_mask||F);try{y.pushState(K,"",ee)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;f.location.assign(ee)}p&&g&&g({action:v,location:H.location,delta:1})}function G(M,k){v="REPLACE";let F=Am(M)?M:tr(H.location,M,k);x=N();let K=Cm(F,x),ee=H.createHref(F.unstable_mask||F);y.replaceState(K,"",ee),p&&g&&g({action:v,location:H.location,delta:0})}function O(M){return Fp(M)}let H={get action(){return v},get location(){return u(f,y)},listen(M){if(g)throw new Error("A history only accepts one active listener");return f.addEventListener(Tm,b),g=M,()=>{f.removeEventListener(Tm,b),g=null}},createHref(M){return c(f,M)},createURL:O,encodeLocation(M){let k=O(M);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:T,replace:G,go(M){return y.go(M)}};return H}function Fp(u,c=!1){let d="http://localhost";typeof window<"u"&&(d=window.location.origin!=="null"?window.location.origin:window.location.href),Xe(d,"No window.location.(origin|href) available to create URL");let r=typeof u=="string"?u:es(u);return r=r.replace(/ $/,"%20"),!c&&r.startsWith("//")&&(r=d+r),new URL(r,d)}function Gm(u,c,d="/"){return Wp(u,c,d,!1)}function Wp(u,c,d,r){let f=typeof c=="string"?tn(c):c,p=Sa(f.pathname||"/",d);if(p==null)return null;let y=Ym(u);Pp(y);let v=null;for(let g=0;v==null&&g{let N={relativePath:x===void 0?y.path||"":x,caseSensitive:y.caseSensitive===!0,childrenIndex:v,route:y};if(N.relativePath.startsWith("/")){if(!N.relativePath.startsWith(r)&&g)return;Xe(N.relativePath.startsWith(r),`Absolute route path "${N.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),N.relativePath=N.relativePath.slice(r.length)}let b=la([r,N.relativePath]),T=d.concat(N);y.children&&y.children.length>0&&(Xe(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),Ym(y.children,c,T,b,g)),!(y.path==null&&!y.index)&&c.push({path:b,score:sx(b,y.index),routesMeta:T})};return u.forEach((y,v)=>{var g;if(y.path===""||!((g=y.path)!=null&&g.includes("?")))p(y,v);else for(let x of Qm(y.path))p(y,v,!0,x)}),c}function Qm(u){let c=u.split("/");if(c.length===0)return[];let[d,...r]=c,f=d.endsWith("?"),p=d.replace(/\?$/,"");if(r.length===0)return f?[p,""]:[p];let y=Qm(r.join("/")),v=[];return v.push(...y.map(g=>g===""?p:[p,g].join("/"))),f&&v.push(...y),v.map(g=>u.startsWith("/")&&g===""?"/":g)}function Pp(u){u.sort((c,d)=>c.score!==d.score?d.score-c.score:ix(c.routesMeta.map(r=>r.childrenIndex),d.routesMeta.map(r=>r.childrenIndex)))}var Ip=/^:[\w-]+$/,ex=3,tx=2,ax=1,lx=10,nx=-2,zm=u=>u==="*";function sx(u,c){let d=u.split("/"),r=d.length;return d.some(zm)&&(r+=nx),c&&(r+=tx),d.filter(f=>!zm(f)).reduce((f,p)=>f+(Ip.test(p)?ex:p===""?ax:lx),r)}function ix(u,c){return u.length===c.length&&u.slice(0,-1).every((r,f)=>r===c[f])?u[u.length-1]-c[c.length-1]:0}function ux(u,c,d=!1){let{routesMeta:r}=u,f={},p="/",y=[];for(let v=0;v{if(N==="*"){let O=v[T]||"";y=p.slice(0,p.length-O.length).replace(/(.)\/+$/,"$1")}const G=v[T];return b&&!G?x[N]=void 0:x[N]=(G||"").replace(/%2F/g,"/"),x},{}),pathname:p,pathnameBase:y,pattern:u}}function cx(u,c=!1,d=!0){Kt(u==="*"||!u.endsWith("*")||u.endsWith("/*"),`Route path "${u}" will be treated as if it were "${u.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${u.replace(/\*$/,"/*")}".`);let r=[],f="^"+u.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(y,v,g,x,N)=>{if(r.push({paramName:v,isOptional:g!=null}),g){let b=N.charAt(x+y.length);return b&&b!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return u.endsWith("*")?(r.push({paramName:"*"}),f+=u==="*"||u==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):d?f+="\\/*$":u!==""&&u!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,c?void 0:"i"),r]}function rx(u){try{return u.split("/").map(c=>decodeURIComponent(c).replace(/\//g,"%2F")).join("/")}catch(c){return Kt(!1,`The URL path "${u}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${c}).`),u}}function Sa(u,c){if(c==="/")return u;if(!u.toLowerCase().startsWith(c.toLowerCase()))return null;let d=c.endsWith("/")?c.length-1:c.length,r=u.charAt(d);return r&&r!=="/"?null:u.slice(d)||"/"}var ox=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function dx(u,c="/"){let{pathname:d,search:r="",hash:f=""}=typeof u=="string"?tn(u):u,p;return d?(d=d.replace(/\/\/+/g,"/"),d.startsWith("/")?p=Om(d.substring(1),"/"):p=Om(d,c)):p=c,{pathname:p,search:hx(r),hash:px(f)}}function Om(u,c){let d=c.replace(/\/+$/,"").split("/");return u.split("/").forEach(f=>{f===".."?d.length>1&&d.pop():f!=="."&&d.push(f)}),d.length>1?d.join("/"):"/"}function Pc(u,c,d,r){return`Cannot include a '${u}' character in a manually specified \`to.${c}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${d}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function fx(u){return u.filter((c,d)=>d===0||c.route.path&&c.route.path.length>0)}function nr(u){let c=fx(u);return c.map((d,r)=>r===c.length-1?d.pathname:d.pathnameBase)}function _i(u,c,d,r=!1){let f;typeof u=="string"?f=tn(u):(f={...u},Xe(!f.pathname||!f.pathname.includes("?"),Pc("?","pathname","search",f)),Xe(!f.pathname||!f.pathname.includes("#"),Pc("#","pathname","hash",f)),Xe(!f.search||!f.search.includes("#"),Pc("#","search","hash",f)));let p=u===""||f.pathname==="",y=p?"/":f.pathname,v;if(y==null)v=d;else{let b=c.length-1;if(!r&&y.startsWith("..")){let T=y.split("/");for(;T[0]==="..";)T.shift(),b-=1;f.pathname=T.join("/")}v=b>=0?c[b]:"/"}let g=dx(f,v),x=y&&y!=="/"&&y.endsWith("/"),N=(p||y===".")&&d.endsWith("/");return!g.pathname.endsWith("/")&&(x||N)&&(g.pathname+="/"),g}var la=u=>u.join("/").replace(/\/\/+/g,"/"),mx=u=>u.replace(/\/+$/,"").replace(/^\/*/,"/"),hx=u=>!u||u==="?"?"":u.startsWith("?")?u:"?"+u,px=u=>!u||u==="#"?"":u.startsWith("#")?u:"#"+u,xx=class{constructor(u,c,d,r=!1){this.status=u,this.statusText=c||"",this.internal=r,d instanceof Error?(this.data=d.toString(),this.error=d):this.data=d}};function vx(u){return u!=null&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.internal=="boolean"&&"data"in u}function yx(u){return u.map(c=>c.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Xm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Vm(u,c){let d=u;if(typeof d!="string"||!ox.test(d))return{absoluteURL:void 0,isExternal:!1,to:d};let r=d,f=!1;if(Xm)try{let p=new URL(window.location.href),y=d.startsWith("//")?new URL(p.protocol+d):new URL(d),v=Sa(y.pathname,c);y.origin===p.origin&&v!=null?d=v+y.search+y.hash:f=!0}catch{Kt(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:f,to:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Zm=["POST","PUT","PATCH","DELETE"];new Set(Zm);var gx=["GET",...Zm];new Set(gx);var an=m.createContext(null);an.displayName="DataRouter";var Ti=m.createContext(null);Ti.displayName="DataRouterState";var Jm=m.createContext(!1);function bx(){return m.useContext(Jm)}var $m=m.createContext({isTransitioning:!1});$m.displayName="ViewTransition";var jx=m.createContext(new Map);jx.displayName="Fetchers";var Sx=m.createContext(null);Sx.displayName="Await";var Rt=m.createContext(null);Rt.displayName="Navigation";var ts=m.createContext(null);ts.displayName="Location";var Vt=m.createContext({outlet:null,matches:[],isDataRoute:!1});Vt.displayName="Route";var sr=m.createContext(null);sr.displayName="RouteError";var Km="REACT_ROUTER_ERROR",Nx="REDIRECT",Ex="ROUTE_ERROR_RESPONSE";function _x(u){if(u.startsWith(`${Km}:${Nx}:{`))try{let c=JSON.parse(u.slice(28));if(typeof c=="object"&&c&&typeof c.status=="number"&&typeof c.statusText=="string"&&typeof c.location=="string"&&typeof c.reloadDocument=="boolean"&&typeof c.replace=="boolean")return c}catch{}}function Tx(u){if(u.startsWith(`${Km}:${Ex}:{`))try{let c=JSON.parse(u.slice(40));if(typeof c=="object"&&c&&typeof c.status=="number"&&typeof c.statusText=="string")return new xx(c.status,c.statusText,c.data)}catch{}}function Ax(u,{relative:c}={}){Xe(ln(),"useHref() may be used only in the context of a component.");let{basename:d,navigator:r}=m.useContext(Rt),{hash:f,pathname:p,search:y}=as(u,{relative:c}),v=p;return d!=="/"&&(v=p==="/"?d:la([d,p])),r.createHref({pathname:v,search:y,hash:f})}function ln(){return m.useContext(ts)!=null}function Ft(){return Xe(ln(),"useLocation() may be used only in the context of a component."),m.useContext(ts).location}var Fm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Wm(u){m.useContext(Rt).static||m.useLayoutEffect(u)}function Wt(){let{isDataRoute:u}=m.useContext(Vt);return u?Yx():Cx()}function Cx(){Xe(ln(),"useNavigate() may be used only in the context of a component.");let u=m.useContext(an),{basename:c,navigator:d}=m.useContext(Rt),{matches:r}=m.useContext(Vt),{pathname:f}=Ft(),p=JSON.stringify(nr(r)),y=m.useRef(!1);return Wm(()=>{y.current=!0}),m.useCallback((g,x={})=>{if(Kt(y.current,Fm),!y.current)return;if(typeof g=="number"){d.go(g);return}let N=_i(g,JSON.parse(p),f,x.relative==="path");u==null&&c!=="/"&&(N.pathname=N.pathname==="/"?c:la([c,N.pathname])),(x.replace?d.replace:d.push)(N,x.state,x)},[c,d,p,f,u])}var zx=m.createContext(null);function Ox(u){let c=m.useContext(Vt).outlet;return m.useMemo(()=>c&&m.createElement(zx.Provider,{value:u},c),[c,u])}function at(){let{matches:u}=m.useContext(Vt),c=u[u.length-1];return c?c.params:{}}function as(u,{relative:c}={}){let{matches:d}=m.useContext(Vt),{pathname:r}=Ft(),f=JSON.stringify(nr(d));return m.useMemo(()=>_i(u,JSON.parse(f),r,c==="path"),[u,f,r,c])}function wx(u,c){return Pm(u,c)}function Pm(u,c,d){var M;Xe(ln(),"useRoutes() may be used only in the context of a component.");let{navigator:r}=m.useContext(Rt),{matches:f}=m.useContext(Vt),p=f[f.length-1],y=p?p.params:{},v=p?p.pathname:"/",g=p?p.pathnameBase:"/",x=p&&p.route;{let k=x&&x.path||"";eh(v,!x||k.endsWith("*")||k.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${v}" (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 N=Ft(),b;if(c){let k=typeof c=="string"?tn(c):c;Xe(g==="/"||((M=k.pathname)==null?void 0:M.startsWith(g)),`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 "${g}" but pathname "${k.pathname}" was given in the \`location\` prop.`),b=k}else b=N;let T=b.pathname||"/",G=T;if(g!=="/"){let k=g.replace(/^\//,"").split("/");G="/"+T.replace(/^\//,"").split("/").slice(k.length).join("/")}let O=Gm(u,{pathname:G});Kt(x||O!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),Kt(O==null||O[O.length-1].route.element!==void 0||O[O.length-1].route.Component!==void 0||O[O.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let H=Hx(O&&O.map(k=>Object.assign({},k,{params:Object.assign({},y,k.params),pathname:la([g,r.encodeLocation?r.encodeLocation(k.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?g:la([g,r.encodeLocation?r.encodeLocation(k.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:k.pathnameBase])})),f,d);return c&&H?m.createElement(ts.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...b},navigationType:"POP"}},H):H}function Rx(){let u=Gx(),c=vx(u)?`${u.status} ${u.statusText}`:u instanceof Error?u.message:JSON.stringify(u),d=u instanceof Error?u.stack:null,r="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:r},p={padding:"2px 4px",backgroundColor:r},y=null;return console.error("Error handled by React Router default ErrorBoundary:",u),y=m.createElement(m.Fragment,null,m.createElement("p",null,"💿 Hey developer 👋"),m.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",m.createElement("code",{style:p},"ErrorBoundary")," or"," ",m.createElement("code",{style:p},"errorElement")," prop on your route.")),m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},c),d?m.createElement("pre",{style:f},d):null,y)}var Dx=m.createElement(Rx,null),Im=class extends m.Component{constructor(u){super(u),this.state={location:u.location,revalidation:u.revalidation,error:u.error}}static getDerivedStateFromError(u){return{error:u}}static getDerivedStateFromProps(u,c){return c.location!==u.location||c.revalidation!=="idle"&&u.revalidation==="idle"?{error:u.error,location:u.location,revalidation:u.revalidation}:{error:u.error!==void 0?u.error:c.error,location:c.location,revalidation:u.revalidation||c.revalidation}}componentDidCatch(u,c){this.props.onError?this.props.onError(u,c):console.error("React Router caught the following error during render",u)}render(){let u=this.state.error;if(this.context&&typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){const d=Tx(u.digest);d&&(u=d)}let c=u!==void 0?m.createElement(Vt.Provider,{value:this.props.routeContext},m.createElement(sr.Provider,{value:u,children:this.props.component})):this.props.children;return this.context?m.createElement(Mx,{error:u},c):c}};Im.contextType=Jm;var Ic=new WeakMap;function Mx({children:u,error:c}){let{basename:d}=m.useContext(Rt);if(typeof c=="object"&&c&&"digest"in c&&typeof c.digest=="string"){let r=_x(c.digest);if(r){let f=Ic.get(c);if(f)throw f;let p=Vm(r.location,d);if(Xm&&!Ic.get(c))if(p.isExternal||r.reloadDocument)window.location.href=p.absoluteURL||p.to;else{const y=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(p.to,{replace:r.replace}));throw Ic.set(c,y),y}return m.createElement("meta",{httpEquiv:"refresh",content:`0;url=${p.absoluteURL||p.to}`})}}return u}function Ux({routeContext:u,match:c,children:d}){let r=m.useContext(an);return r&&r.static&&r.staticContext&&(c.route.errorElement||c.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=c.route.id),m.createElement(Vt.Provider,{value:u},d)}function Hx(u,c=[],d){let r=d==null?void 0:d.state;if(u==null){if(!r)return null;if(r.errors)u=r.matches;else if(c.length===0&&!r.initialized&&r.matches.length>0)u=r.matches;else return null}let f=u,p=r==null?void 0:r.errors;if(p!=null){let N=f.findIndex(b=>b.route.id&&(p==null?void 0:p[b.route.id])!==void 0);Xe(N>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(p).join(",")}`),f=f.slice(0,Math.min(f.length,N+1))}let y=!1,v=-1;if(d&&r){y=r.renderFallback;for(let N=0;N=0?f=f.slice(0,v+1):f=[f[0]];break}}}}let g=d==null?void 0:d.onError,x=r&&g?(N,b)=>{var T,G;g(N,{location:r.location,params:((G=(T=r.matches)==null?void 0:T[0])==null?void 0:G.params)??{},unstable_pattern:yx(r.matches),errorInfo:b})}:void 0;return f.reduceRight((N,b,T)=>{let G,O=!1,H=null,M=null;r&&(G=p&&b.route.id?p[b.route.id]:void 0,H=b.route.errorElement||Dx,y&&(v<0&&T===0?(eh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),O=!0,M=null):v===T&&(O=!0,M=b.route.hydrateFallbackElement||null)));let k=c.concat(f.slice(0,T+1)),F=()=>{let K;return G?K=H:O?K=M:b.route.Component?K=m.createElement(b.route.Component,null):b.route.element?K=b.route.element:K=N,m.createElement(Ux,{match:b,routeContext:{outlet:N,matches:k,isDataRoute:r!=null},children:K})};return r&&(b.route.ErrorBoundary||b.route.errorElement||T===0)?m.createElement(Im,{location:r.location,revalidation:r.revalidation,component:H,error:G,children:F(),routeContext:{outlet:null,matches:k,isDataRoute:!0},onError:x}):F()},null)}function ir(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function qx(u){let c=m.useContext(an);return Xe(c,ir(u)),c}function Bx(u){let c=m.useContext(Ti);return Xe(c,ir(u)),c}function Lx(u){let c=m.useContext(Vt);return Xe(c,ir(u)),c}function ur(u){let c=Lx(u),d=c.matches[c.matches.length-1];return Xe(d.route.id,`${u} can only be used on routes that contain a unique "id"`),d.route.id}function kx(){return ur("useRouteId")}function Gx(){var r;let u=m.useContext(sr),c=Bx("useRouteError"),d=ur("useRouteError");return u!==void 0?u:(r=c.errors)==null?void 0:r[d]}function Yx(){let{router:u}=qx("useNavigate"),c=ur("useNavigate"),d=m.useRef(!1);return Wm(()=>{d.current=!0}),m.useCallback(async(f,p={})=>{Kt(d.current,Fm),d.current&&(typeof f=="number"?await u.navigate(f):await u.navigate(f,{fromRouteId:c,...p}))},[u,c])}var wm={};function eh(u,c,d){!c&&!wm[u]&&(wm[u]=!0,Kt(!1,d))}m.memo(Qx);function Qx({routes:u,future:c,state:d,isStatic:r,onError:f}){return Pm(u,void 0,{state:d,isStatic:r,onError:f})}function cr({to:u,replace:c,state:d,relative:r}){Xe(ln()," may be used only in the context of a component.");let{static:f}=m.useContext(Rt);Kt(!f," 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:p}=m.useContext(Vt),{pathname:y}=Ft(),v=Wt(),g=_i(u,nr(p),y,r==="path"),x=JSON.stringify(g);return m.useEffect(()=>{v(JSON.parse(x),{replace:c,state:d,relative:r})},[v,x,r,c,d]),null}function Xx(u){return Ox(u.context)}function Se(u){Xe(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function Vx({basename:u="/",children:c=null,location:d,navigationType:r="POP",navigator:f,static:p=!1,unstable_useTransitions:y}){Xe(!ln(),"You cannot render a inside another . You should never have more than one in your app.");let v=u.replace(/^\/*/,"/"),g=m.useMemo(()=>({basename:v,navigator:f,static:p,unstable_useTransitions:y,future:{}}),[v,f,p,y]);typeof d=="string"&&(d=tn(d));let{pathname:x="/",search:N="",hash:b="",state:T=null,key:G="default",unstable_mask:O}=d,H=m.useMemo(()=>{let M=Sa(x,v);return M==null?null:{location:{pathname:M,search:N,hash:b,state:T,key:G,unstable_mask:O},navigationType:r}},[v,x,N,b,T,G,r,O]);return Kt(H!=null,` is not able to match the URL "${x}${N}${b}" because it does not start with the basename, so the won't render anything.`),H==null?null:m.createElement(Rt.Provider,{value:g},m.createElement(ts.Provider,{children:c,value:H}))}function Zx({children:u,location:c}){return wx(ar(u),c)}function ar(u,c=[]){let d=[];return m.Children.forEach(u,(r,f)=>{if(!m.isValidElement(r))return;let p=[...c,f];if(r.type===m.Fragment){d.push.apply(d,ar(r.props.children,p));return}Xe(r.type===Se,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),Xe(!r.props.index||!r.props.children,"An index route cannot have child routes.");let y={id:r.props.id||p.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&&(y.children=ar(r.props.children,p)),d.push(y)}),d}var Si="get",Ni="application/x-www-form-urlencoded";function Ai(u){return typeof HTMLElement<"u"&&u instanceof HTMLElement}function Jx(u){return Ai(u)&&u.tagName.toLowerCase()==="button"}function $x(u){return Ai(u)&&u.tagName.toLowerCase()==="form"}function Kx(u){return Ai(u)&&u.tagName.toLowerCase()==="input"}function Fx(u){return!!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)}function Wx(u,c){return u.button===0&&(!c||c==="_self")&&!Fx(u)}var bi=null;function Px(){if(bi===null)try{new FormData(document.createElement("form"),0),bi=!1}catch{bi=!0}return bi}var Ix=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function er(u){return u!=null&&!Ix.has(u)?(Kt(!1,`"${u}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Ni}"`),null):u}function ev(u,c){let d,r,f,p,y;if($x(u)){let v=u.getAttribute("action");r=v?Sa(v,c):null,d=u.getAttribute("method")||Si,f=er(u.getAttribute("enctype"))||Ni,p=new FormData(u)}else if(Jx(u)||Kx(u)&&(u.type==="submit"||u.type==="image")){let v=u.form;if(v==null)throw new Error('Cannot submit a