(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function l(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(o){if(o.ep)return;o.ep=!0;const f=l(o);fetch(o.href,f)}})();var Zu={exports:{}},Il={};/** * @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 Qp;function I2(){if(Qp)return Il;Qp=1;var a=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function l(r,o,f){var h=null;if(f!==void 0&&(h=""+f),o.key!==void 0&&(h=""+o.key),"key"in o){f={};for(var m in o)m!=="key"&&(f[m]=o[m])}else f=o;return o=f.ref,{$$typeof:a,type:r,key:h,ref:o!==void 0?o:null,props:f}}return Il.Fragment=n,Il.jsx=l,Il.jsxs=l,Il}var Fp;function ew(){return Fp||(Fp=1,Zu.exports=I2()),Zu.exports}var d=ew(),Ju={exports:{}},we={};/** * @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 Kp;function tw(){if(Kp)return we;Kp=1;var a=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),w=Symbol.iterator;function k(N){return N===null||typeof N!="object"?null:(N=w&&N[w]||N["@@iterator"],typeof N=="function"?N:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,M={};function A(N,q,R){this.props=N,this.context=q,this.refs=M,this.updater=R||T}A.prototype.isReactComponent={},A.prototype.setState=function(N,q){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,q,"setState")},A.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function z(){}z.prototype=A.prototype;function O(N,q,R){this.props=N,this.context=q,this.refs=M,this.updater=R||T}var H=O.prototype=new z;H.constructor=O,E(H,A.prototype),H.isPureReactComponent=!0;var X=Array.isArray;function ne(){}var F={H:null,A:null,T:null,S:null},B=Object.prototype.hasOwnProperty;function $(N,q,R){var te=R.ref;return{$$typeof:a,type:N,key:q,ref:te!==void 0?te:null,props:R}}function ee(N,q){return $(N.type,q,N.props)}function re(N){return typeof N=="object"&&N!==null&&N.$$typeof===a}function me(N){var q={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(R){return q[R]})}var Re=/\/+/g;function Se(N,q){return typeof N=="object"&&N!==null&&N.key!=null?me(""+N.key):q.toString(36)}function ge(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(ne,ne):(N.status="pending",N.then(function(q){N.status==="pending"&&(N.status="fulfilled",N.value=q)},function(q){N.status==="pending"&&(N.status="rejected",N.reason=q)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function _(N,q,R,te,se){var ue=typeof N;(ue==="undefined"||ue==="boolean")&&(N=null);var ke=!1;if(N===null)ke=!0;else switch(ue){case"bigint":case"string":case"number":ke=!0;break;case"object":switch(N.$$typeof){case a:case n:ke=!0;break;case y:return ke=N._init,_(ke(N._payload),q,R,te,se)}}if(ke)return se=se(N),ke=te===""?"."+Se(N,0):te,X(se)?(R="",ke!=null&&(R=ke.replace(Re,"$&/")+"/"),_(se,q,R,"",function(jt){return jt})):se!=null&&(re(se)&&(se=ee(se,R+(se.key==null||N&&N.key===se.key?"":(""+se.key).replace(Re,"$&/")+"/")+ke)),q.push(se)),1;ke=0;var Ue=te===""?".":te+":";if(X(N))for(var ye=0;ye>>1,K=_[he];if(0>>1;heo(R,W))teo(se,R)?(_[he]=se,_[te]=W,he=te):(_[he]=R,_[q]=W,he=q);else if(teo(se,W))_[he]=se,_[te]=W,he=te;else break e}}return J}function o(_,J){var W=_.sortIndex-J.sortIndex;return W!==0?W:_.id-J.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var h=Date,m=h.now();a.unstable_now=function(){return h.now()-m}}var p=[],g=[],y=1,v=null,w=3,k=!1,T=!1,E=!1,M=!1,A=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function H(_){for(var J=l(g);J!==null;){if(J.callback===null)r(g);else if(J.startTime<=_)r(g),J.sortIndex=J.expirationTime,n(p,J);else break;J=l(g)}}function X(_){if(E=!1,H(_),!T)if(l(p)!==null)T=!0,ne||(ne=!0,me());else{var J=l(g);J!==null&&ge(X,J.startTime-_)}}var ne=!1,F=-1,B=5,$=-1;function ee(){return M?!0:!(a.unstable_now()-$_&&ee());){var he=v.callback;if(typeof he=="function"){v.callback=null,w=v.priorityLevel;var K=he(v.expirationTime<=_);if(_=a.unstable_now(),typeof K=="function"){v.callback=K,H(_),J=!0;break t}v===l(p)&&r(p),H(_)}else r(p);v=l(p)}if(v!==null)J=!0;else{var N=l(g);N!==null&&ge(X,N.startTime-_),J=!1}}break e}finally{v=null,w=W,k=!1}J=void 0}}finally{J?me():ne=!1}}}var me;if(typeof O=="function")me=function(){O(re)};else if(typeof MessageChannel<"u"){var Re=new MessageChannel,Se=Re.port2;Re.port1.onmessage=re,me=function(){Se.postMessage(null)}}else me=function(){A(re,0)};function ge(_,J){F=A(function(){_(a.unstable_now())},J)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(_){_.callback=null},a.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<_?Math.floor(1e3/_):5},a.unstable_getCurrentPriorityLevel=function(){return w},a.unstable_next=function(_){switch(w){case 1:case 2:case 3:var J=3;break;default:J=w}var W=w;w=J;try{return _()}finally{w=W}},a.unstable_requestPaint=function(){M=!0},a.unstable_runWithPriority=function(_,J){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var W=w;w=_;try{return J()}finally{w=W}},a.unstable_scheduleCallback=function(_,J,W){var he=a.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0he?(_.sortIndex=W,n(g,_),l(p)===null&&_===l(g)&&(E?(z(F),F=-1):E=!0,ge(X,W-he))):(_.sortIndex=K,n(p,_),T||k||(T=!0,ne||(ne=!0,me()))),_},a.unstable_shouldYield=ee,a.unstable_wrapCallback=function(_){var J=w;return function(){var W=w;w=J;try{return _.apply(this,arguments)}finally{w=W}}}})(Iu)),Iu}var $p;function nw(){return $p||($p=1,Wu.exports=aw()),Wu.exports}var ed={exports:{}},Tt={};/** * @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 Wp;function sw(){if(Wp)return Tt;Wp=1;var a=rf();function n(p){var g="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(n){console.error(n)}}return a(),ed.exports=sw(),ed.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 eg;function iw(){if(eg)return ei;eg=1;var a=nw(),n=rf(),l=lw();function r(e){var t="https://react.dev/errors/"+e;if(1K||(e.current=he[K],he[K]=null,K--)}function R(e,t){K++,he[K]=e.current,e.current=t}var te=N(null),se=N(null),ue=N(null),ke=N(null);function Ue(e,t){switch(R(ue,t),R(se,e),R(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?pp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=pp(t),e=gp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(te),R(te,e)}function ye(){q(te),q(se),q(ue)}function jt(e){e.memoizedState!==null&&R(ke,e);var t=te.current,s=gp(t,e.type);t!==s&&(R(se,e),R(te,s))}function gt(e){se.current===e&&(q(te),q(se)),ke.current===e&&(q(ke),Zl._currentValue=W)}var le,ae;function be(e){if(le===void 0)try{throw Error()}catch(s){var t=s.stack.trim().match(/\n( *(at )?)/);le=t&&t[1]||"",ae=-1)":-1c||j[i]!==U[c]){var G=` `+j[i].replace(" at new "," at ");return e.displayName&&G.includes("")&&(G=G.replace("",e.displayName)),G}while(1<=i&&0<=c);break}}}finally{Ie=!1,Error.prepareStackTrace=s}return(s=e?e.displayName||e.name:"")?be(s):""}function ra(e,t){switch(e.tag){case 26:case 27:case 5:return be(e.type);case 16:return be("Lazy");case 13:return e.child!==t&&t!==null?be("Suspense Fallback"):be("Suspense");case 19:return be("SuspenseList");case 0:case 15:return nt(e.type,!1);case 11:return nt(e.type.render,!1);case 1:return nt(e.type,!0);case 31:return be("Activity");default:return""}}function Nt(e){try{var t="",s=null;do t+=ra(e,s),s=e,e=e.return;while(e);return t}catch(i){return` Error generating stack: `+i.message+` `+i.stack}}var ss=Object.prototype.hasOwnProperty,ls=a.unstable_scheduleCallback,is=a.unstable_cancelCallback,Z=a.unstable_shouldYield,ve=a.unstable_requestPaint,I=a.unstable_now,Ob=a.unstable_getCurrentPriorityLevel,Ff=a.unstable_ImmediatePriority,Kf=a.unstable_UserBlockingPriority,Ti=a.unstable_NormalPriority,zb=a.unstable_LowPriority,Zf=a.unstable_IdlePriority,_b=a.log,Vb=a.unstable_setDisableYieldValue,rl=null,Ut=null;function Fa(e){if(typeof _b=="function"&&Vb(e),Ut&&typeof Ut.setStrictMode=="function")try{Ut.setStrictMode(rl,e)}catch{}}var Lt=Math.clz32?Math.clz32:Bb,Ub=Math.log,Lb=Math.LN2;function Bb(e){return e>>>=0,e===0?32:31-(Ub(e)/Lb|0)|0}var Ei=256,Ci=262144,Mi=4194304;function Dn(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 Ai(e,t,s){var i=e.pendingLanes;if(i===0)return 0;var c=0,u=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var b=i&134217727;return b!==0?(i=b&~u,i!==0?c=Dn(i):(x&=b,x!==0?c=Dn(x):s||(s=b&~e,s!==0&&(c=Dn(s))))):(b=i&~u,b!==0?c=Dn(b):x!==0?c=Dn(x):s||(s=i&~e,s!==0&&(c=Dn(s)))),c===0?0:t!==0&&t!==c&&(t&u)===0&&(u=c&-c,s=t&-t,u>=s||u===32&&(s&4194048)!==0)?t:c}function ol(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Hb(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 Jf(){var e=Mi;return Mi<<=1,(Mi&62914560)===0&&(Mi=4194304),e}function Uo(e){for(var t=[],s=0;31>s;s++)t.push(e);return t}function cl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Yb(e,t,s,i,c,u){var x=e.pendingLanes;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=s,e.entangledLanes&=s,e.errorRecoveryDisabledLanes&=s,e.shellSuspendCounter=0;var b=e.entanglements,j=e.expirationTimes,U=e.hiddenUpdates;for(s=x&~s;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Fb=/[\n"\\]/g;function Zt(e){return e.replace(Fb,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Go(e,t,s,i,c,u,x,b){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),t!=null?x==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Kt(t)):e.value!==""+Kt(t)&&(e.value=""+Kt(t)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),t!=null?Po(e,x,Kt(t)):s!=null?Po(e,x,Kt(s)):i!=null&&e.removeAttribute("value"),c==null&&u!=null&&(e.defaultChecked=!!u),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+Kt(b):e.removeAttribute("name")}function ch(e,t,s,i,c,u,x,b){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||s!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){qo(e);return}s=s!=null?""+Kt(s):"",t=t!=null?""+Kt(t):s,b||t===e.value||(e.value=t),e.defaultValue=t}i=i??c,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=b?e.checked:!!i,e.defaultChecked=!!i,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x),qo(e)}function Po(e,t,s){t==="number"&&Oi(e.ownerDocument)===e||e.defaultValue===""+s||(e.defaultValue=""+s)}function fs(e,t,s,i){if(e=e.options,t){t={};for(var c=0;c"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zo=!1;if(Ea)try{var hl={};Object.defineProperty(hl,"passive",{get:function(){Zo=!0}}),window.addEventListener("test",hl,hl),window.removeEventListener("test",hl,hl)}catch{Zo=!1}var Za=null,Jo=null,_i=null;function gh(){if(_i)return _i;var e,t=Jo,s=t.length,i,c="value"in Za?Za.value:Za.textContent,u=c.length;for(e=0;e=gl),Sh=" ",kh=!1;function jh(e,t){switch(e){case"keyup":return w1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var gs=!1;function k1(e,t){switch(e){case"compositionend":return Nh(t);case"keypress":return t.which!==32?null:(kh=!0,Sh);case"textInput":return e=t.data,e===Sh&&kh?null:e;default:return null}}function j1(e,t){if(gs)return e==="compositionend"||!tc&&jh(e,t)?(e=gh(),_i=Jo=Za=null,gs=!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:s,offset:t-e};e=i}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Oh(s)}}function _h(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_h(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Oi(e.document);t instanceof e.HTMLIFrameElement;){try{var s=typeof t.contentWindow.location.href=="string"}catch{s=!1}if(s)e=t.contentWindow;else break;t=Oi(e.document)}return t}function sc(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 R1=Ea&&"documentMode"in document&&11>=document.documentMode,xs=null,lc=null,bl=null,ic=!1;function Uh(e,t,s){var i=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;ic||xs==null||xs!==Oi(i)||(i=xs,"selectionStart"in i&&sc(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),bl&&vl(bl,i)||(bl=i,i=Cr(lc,"onSelect"),0>=x,c-=x,xa=1<<32-Lt(t)+c|s<Te?(De=fe,fe=null):De=fe.sibling;var _e=L(D,fe,V[Te],P);if(_e===null){fe===null&&(fe=De);break}e&&fe&&_e.alternate===null&&t(D,fe),C=u(_e,C,Te),ze===null?pe=_e:ze.sibling=_e,ze=_e,fe=De}if(Te===V.length)return s(D,fe),Oe&&Ma(D,Te),pe;if(fe===null){for(;TeTe?(De=fe,fe=null):De=fe.sibling;var yn=L(D,fe,_e.value,P);if(yn===null){fe===null&&(fe=De);break}e&&fe&&yn.alternate===null&&t(D,fe),C=u(yn,C,Te),ze===null?pe=yn:ze.sibling=yn,ze=yn,fe=De}if(_e.done)return s(D,fe),Oe&&Ma(D,Te),pe;if(fe===null){for(;!_e.done;Te++,_e=V.next())_e=Q(D,_e.value,P),_e!==null&&(C=u(_e,C,Te),ze===null?pe=_e:ze.sibling=_e,ze=_e);return Oe&&Ma(D,Te),pe}for(fe=i(fe);!_e.done;Te++,_e=V.next())_e=Y(fe,D,Te,_e.value,P),_e!==null&&(e&&_e.alternate!==null&&fe.delete(_e.key===null?Te:_e.key),C=u(_e,C,Te),ze===null?pe=_e:ze.sibling=_e,ze=_e);return e&&fe.forEach(function(W2){return t(D,W2)}),Oe&&Ma(D,Te),pe}function Ge(D,C,V,P){if(typeof V=="object"&&V!==null&&V.type===E&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case k:e:{for(var pe=V.key;C!==null;){if(C.key===pe){if(pe=V.type,pe===E){if(C.tag===7){s(D,C.sibling),P=c(C,V.props.children),P.return=D,D=P;break e}}else if(C.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===B&&qn(pe)===C.type){s(D,C.sibling),P=c(C,V.props),Tl(P,V),P.return=D,D=P;break e}s(D,C);break}else t(D,C);C=C.sibling}V.type===E?(P=Un(V.props.children,D.mode,P,V.key),P.return=D,D=P):(P=Xi(V.type,V.key,V.props,null,D.mode,P),Tl(P,V),P.return=D,D=P)}return x(D);case T:e:{for(pe=V.key;C!==null;){if(C.key===pe)if(C.tag===4&&C.stateNode.containerInfo===V.containerInfo&&C.stateNode.implementation===V.implementation){s(D,C.sibling),P=c(C,V.children||[]),P.return=D,D=P;break e}else{s(D,C);break}else t(D,C);C=C.sibling}P=hc(V,D.mode,P),P.return=D,D=P}return x(D);case B:return V=qn(V),Ge(D,C,V,P)}if(ge(V))return ie(D,C,V,P);if(me(V)){if(pe=me(V),typeof pe!="function")throw Error(r(150));return V=pe.call(V),xe(D,C,V,P)}if(typeof V.then=="function")return Ge(D,C,Wi(V),P);if(V.$$typeof===O)return Ge(D,C,Ki(D,V),P);Ii(D,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,C!==null&&C.tag===6?(s(D,C.sibling),P=c(C,V),P.return=D,D=P):(s(D,C),P=fc(V,D.mode,P),P.return=D,D=P),x(D)):s(D,C)}return function(D,C,V,P){try{Nl=0;var pe=Ge(D,C,V,P);return Cs=null,pe}catch(fe){if(fe===Es||fe===Ji)throw fe;var ze=Ht(29,fe,null,D.mode);return ze.lanes=P,ze.return=D,ze}finally{}}}var Pn=im(!0),rm=im(!1),en=!1;function Nc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Tc(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 tn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function an(e,t,s){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Ve&2)!==0){var c=i.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),i.pending=t,t=Pi(e),Ph(e,null,s),t}return Gi(e,i,t,s),Pi(e)}function El(e,t,s){if(t=t.updateQueue,t!==null&&(t=t.shared,(s&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,s|=i,t.lanes=s,Wf(e,s)}}function Ec(e,t){var s=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,s===i)){var c=null,u=null;if(s=s.firstBaseUpdate,s!==null){do{var x={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};u===null?c=u=x:u=u.next=x,s=s.next}while(s!==null);u===null?c=u=t:u=u.next=t}else c=u=t;s={baseState:i.baseState,firstBaseUpdate:c,lastBaseUpdate:u,shared:i.shared,callbacks:i.callbacks},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=t:e.next=t,s.lastBaseUpdate=t}var Cc=!1;function Cl(){if(Cc){var e=Ts;if(e!==null)throw e}}function Ml(e,t,s,i){Cc=!1;var c=e.updateQueue;en=!1;var u=c.firstBaseUpdate,x=c.lastBaseUpdate,b=c.shared.pending;if(b!==null){c.shared.pending=null;var j=b,U=j.next;j.next=null,x===null?u=U:x.next=U,x=j;var G=e.alternate;G!==null&&(G=G.updateQueue,b=G.lastBaseUpdate,b!==x&&(b===null?G.firstBaseUpdate=U:b.next=U,G.lastBaseUpdate=j))}if(u!==null){var Q=c.baseState;x=0,G=U=j=null,b=u;do{var L=b.lane&-536870913,Y=L!==b.lane;if(Y?(Ae&L)===L:(i&L)===L){L!==0&&L===Ns&&(Cc=!0),G!==null&&(G=G.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var ie=e,xe=b;L=t;var Ge=s;switch(xe.tag){case 1:if(ie=xe.payload,typeof ie=="function"){Q=ie.call(Ge,Q,L);break e}Q=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=xe.payload,L=typeof ie=="function"?ie.call(Ge,Q,L):ie,L==null)break e;Q=v({},Q,L);break e;case 2:en=!0}}L=b.callback,L!==null&&(e.flags|=64,Y&&(e.flags|=8192),Y=c.callbacks,Y===null?c.callbacks=[L]:Y.push(L))}else Y={lane:L,tag:b.tag,payload:b.payload,callback:b.callback,next:null},G===null?(U=G=Y,j=Q):G=G.next=Y,x|=L;if(b=b.next,b===null){if(b=c.shared.pending,b===null)break;Y=b,b=Y.next,Y.next=null,c.lastBaseUpdate=Y,c.shared.pending=null}}while(!0);G===null&&(j=Q),c.baseState=j,c.firstBaseUpdate=U,c.lastBaseUpdate=G,u===null&&(c.shared.lanes=0),on|=x,e.lanes=x,e.memoizedState=Q}}function om(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function cm(e,t){var s=e.callbacks;if(s!==null)for(e.callbacks=null,e=0;eu?u:8;var x=_.T,b={};_.T=b,Fc(e,!1,t,s);try{var j=c(),U=_.S;if(U!==null&&U(b,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var G=Y1(j,i);Rl(e,t,G,Xt(e))}else Rl(e,t,i,Xt(e))}catch(Q){Rl(e,t,{then:function(){},status:"rejected",reason:Q},Xt())}finally{J.p=u,x!==null&&b.types!==null&&(x.types=b.types),_.T=x}}function F1(){}function Xc(e,t,s,i){if(e.tag!==5)throw Error(r(476));var c=Ym(e).queue;Hm(e,c,t,W,s===null?F1:function(){return qm(e),s(i)})}function Ym(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oa,lastRenderedState:W},next:null};var s={};return t.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oa,lastRenderedState:s},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function qm(e){var t=Ym(e);t.next===null&&(t=e.alternate.memoizedState),Rl(e,t.next.queue,{},Xt())}function Qc(){return vt(Zl)}function Gm(){return lt().memoizedState}function Pm(){return lt().memoizedState}function K1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var s=Xt();e=tn(s);var i=an(t,e,s);i!==null&&(Vt(i,t,s),El(i,t,s)),t={cache:wc()},e.payload=t;return}t=t.return}}function Z1(e,t,s){var i=Xt();s={lane:i,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},cr(e)?Qm(t,s):(s=uc(e,t,s,i),s!==null&&(Vt(s,e,i),Fm(s,t,i)))}function Xm(e,t,s){var i=Xt();Rl(e,t,s,i)}function Rl(e,t,s,i){var c={lane:i,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(cr(e))Qm(t,c);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var x=t.lastRenderedState,b=u(x,s);if(c.hasEagerState=!0,c.eagerState=b,Bt(b,x))return Gi(e,t,c,0),Pe===null&&qi(),!1}catch{}finally{}if(s=uc(e,t,c,i),s!==null)return Vt(s,e,i),Fm(s,t,i),!0}return!1}function Fc(e,t,s,i){if(i={lane:2,revertLane:Nu(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},cr(e)){if(t)throw Error(r(479))}else t=uc(e,s,i,2),t!==null&&Vt(t,e,2)}function cr(e){var t=e.alternate;return e===je||t!==null&&t===je}function Qm(e,t){As=ar=!0;var s=e.pending;s===null?t.next=t:(t.next=s.next,s.next=t),e.pending=t}function Fm(e,t,s){if((s&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,s|=i,t.lanes=s,Wf(e,s)}}var Ol={readContext:vt,use:lr,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useLayoutEffect:et,useInsertionEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useSyncExternalStore:et,useId:et,useHostTransitionStatus:et,useFormState:et,useActionState:et,useOptimistic:et,useMemoCache:et,useCacheRefresh:et};Ol.useEffectEvent=et;var Km={readContext:vt,use:lr,useCallback:function(e,t){return Et().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:Dm,useImperativeHandle:function(e,t,s){s=s!=null?s.concat([e]):null,rr(4194308,4,_m.bind(null,t,e),s)},useLayoutEffect:function(e,t){return rr(4194308,4,e,t)},useInsertionEffect:function(e,t){rr(4,2,e,t)},useMemo:function(e,t){var s=Et();t=t===void 0?null:t;var i=e();if(Xn){Fa(!0);try{e()}finally{Fa(!1)}}return s.memoizedState=[i,t],i},useReducer:function(e,t,s){var i=Et();if(s!==void 0){var c=s(t);if(Xn){Fa(!0);try{s(t)}finally{Fa(!1)}}}else c=t;return i.memoizedState=i.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},i.queue=e,e=e.dispatch=Z1.bind(null,je,e),[i.memoizedState,e]},useRef:function(e){var t=Et();return e={current:e},t.memoizedState=e},useState:function(e){e=Hc(e);var t=e.queue,s=Xm.bind(null,je,t);return t.dispatch=s,[e.memoizedState,s]},useDebugValue:Gc,useDeferredValue:function(e,t){var s=Et();return Pc(s,e,t)},useTransition:function(){var e=Hc(!1);return e=Hm.bind(null,je,e.queue,!0,!1),Et().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,s){var i=je,c=Et();if(Oe){if(s===void 0)throw Error(r(407));s=s()}else{if(s=t(),Pe===null)throw Error(r(349));(Ae&127)!==0||pm(i,t,s)}c.memoizedState=s;var u={value:s,getSnapshot:t};return c.queue=u,Dm(xm.bind(null,i,u,e),[e]),i.flags|=2048,Rs(9,{destroy:void 0},gm.bind(null,i,u,s,t),null),s},useId:function(){var e=Et(),t=Pe.identifierPrefix;if(Oe){var s=ya,i=xa;s=(i&~(1<<32-Lt(i)-1)).toString(32)+s,t="_"+t+"R_"+s,s=nr++,0<\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof i.is=="string"?x.createElement("select",{is:i.is}):x.createElement("select"),i.multiple?u.multiple=!0:i.size&&(u.size=i.size);break;default:u=typeof i.is=="string"?x.createElement(c,{is:i.is}):x.createElement(c)}}u[xt]=t,u[At]=i;e:for(x=t.child;x!==null;){if(x.tag===5||x.tag===6)u.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===t)break e;for(;x.sibling===null;){if(x.return===null||x.return===t)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}t.stateNode=u;e:switch(wt(u,c,i),c){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&_a(t)}}return Fe(t),ru(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,s),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&_a(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(r(166));if(e=ue.current,ks(t)){if(e=t.stateNode,s=t.memoizedProps,i=null,c=yt,c!==null)switch(c.tag){case 27:case 5:i=c.memoizedProps}e[xt]=t,e=!!(e.nodeValue===s||i!==null&&i.suppressHydrationWarning===!0||hp(e.nodeValue,s)),e||Wa(t,!0)}else e=Mr(e).createTextNode(i),e[xt]=t,t.stateNode=e}return Fe(t),null;case 31:if(s=t.memoizedState,e===null||e.memoizedState!==null){if(i=ks(t),s!==null){if(e===null){if(!i)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[xt]=t}else Ln(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(t),e=!1}else s=xc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),e=!0;if(!e)return t.flags&256?(qt(t),t):(qt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Fe(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=ks(t),i!==null&&i.dehydrated!==null){if(e===null){if(!c)throw Error(r(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(317));c[xt]=t}else Ln(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(t),c=!1}else c=xc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(qt(t),t):(qt(t),null)}return qt(t),(t.flags&128)!==0?(t.lanes=s,t):(s=i!==null,e=e!==null&&e.memoizedState!==null,s&&(i=t.child,c=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(c=i.alternate.memoizedState.cachePool.pool),u=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),u!==c&&(i.flags|=2048)),s!==e&&s&&(t.child.flags|=8192),mr(t,t.updateQueue),Fe(t),null);case 4:return ye(),e===null&&Mu(t.stateNode.containerInfo),Fe(t),null;case 10:return Da(t.type),Fe(t),null;case 19:if(q(st),i=t.memoizedState,i===null)return Fe(t),null;if(c=(t.flags&128)!==0,u=i.rendering,u===null)if(c)_l(i,!1);else{if(tt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=tr(e),u!==null){for(t.flags|=128,_l(i,!1),e=u.updateQueue,t.updateQueue=e,mr(t,e),t.subtreeFlags=0,e=s,s=t.child;s!==null;)Xh(s,e),s=s.sibling;return R(st,st.current&1|2),Oe&&Ma(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&I()>vr&&(t.flags|=128,c=!0,_l(i,!1),t.lanes=4194304)}else{if(!c)if(e=tr(u),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,mr(t,e),_l(i,!0),i.tail===null&&i.tailMode==="hidden"&&!u.alternate&&!Oe)return Fe(t),null}else 2*I()-i.renderingStartTime>vr&&s!==536870912&&(t.flags|=128,c=!0,_l(i,!1),t.lanes=4194304);i.isBackwards?(u.sibling=t.child,t.child=u):(e=i.last,e!==null?e.sibling=u:t.child=u,i.last=u)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=I(),e.sibling=null,s=st.current,R(st,c?s&1|2:s&1),Oe&&Ma(t,i.treeForkCount),e):(Fe(t),null);case 22:case 23:return qt(t),Ac(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(s&536870912)!==0&&(t.flags&128)===0&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),s=t.updateQueue,s!==null&&mr(t,s.retryQueue),s=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==s&&(t.flags|=2048),e!==null&&q(Yn),null;case 24:return s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),Da(it),Fe(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function e2(e,t){switch(pc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Da(it),ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return gt(t),null;case 31:if(t.memoizedState!==null){if(qt(t),t.alternate===null)throw Error(r(340));Ln()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(qt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Ln()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(st),null;case 4:return ye(),null;case 10:return Da(t.type),null;case 22:case 23:return qt(t),Ac(),e!==null&&q(Yn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Da(it),null;case 25:return null;default:return null}}function y0(e,t){switch(pc(t),t.tag){case 3:Da(it),ye();break;case 26:case 27:case 5:gt(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&qt(t);break;case 13:qt(t);break;case 19:q(st);break;case 10:Da(t.type);break;case 22:case 23:qt(t),Ac(),e!==null&&q(Yn);break;case 24:Da(it)}}function Vl(e,t){try{var s=t.updateQueue,i=s!==null?s.lastEffect:null;if(i!==null){var c=i.next;s=c;do{if((s.tag&e)===e){i=void 0;var u=s.create,x=s.inst;i=u(),x.destroy=i}s=s.next}while(s!==c)}}catch(b){Be(t,t.return,b)}}function ln(e,t,s){try{var i=t.updateQueue,c=i!==null?i.lastEffect:null;if(c!==null){var u=c.next;i=u;do{if((i.tag&e)===e){var x=i.inst,b=x.destroy;if(b!==void 0){x.destroy=void 0,c=t;var j=s,U=b;try{U()}catch(G){Be(c,j,G)}}}i=i.next}while(i!==u)}}catch(G){Be(t,t.return,G)}}function v0(e){var t=e.updateQueue;if(t!==null){var s=e.stateNode;try{cm(t,s)}catch(i){Be(e,e.return,i)}}}function b0(e,t,s){s.props=Qn(e.type,e.memoizedProps),s.state=e.memoizedState;try{s.componentWillUnmount()}catch(i){Be(e,t,i)}}function Ul(e,t){try{var s=e.ref;if(s!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof s=="function"?e.refCleanup=s(i):s.current=i}}catch(c){Be(e,t,c)}}function va(e,t){var s=e.ref,i=e.refCleanup;if(s!==null)if(typeof i=="function")try{i()}catch(c){Be(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(c){Be(e,t,c)}else s.current=null}function w0(e){var t=e.type,s=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":s.autoFocus&&i.focus();break e;case"img":s.src?i.src=s.src:s.srcSet&&(i.srcset=s.srcSet)}}catch(c){Be(e,e.return,c)}}function ou(e,t,s){try{var i=e.stateNode;S2(i,e.type,s,t),i[At]=t}catch(c){Be(e,e.return,c)}}function S0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&hn(e.type)||e.tag===4}function cu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||S0(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&&hn(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 uu(e,t,s){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(e,t):(t=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,t.appendChild(e),s=s._reactRootContainer,s!=null||t.onclick!==null||(t.onclick=Ta));else if(i!==4&&(i===27&&hn(e.type)&&(s=e.stateNode,t=null),e=e.child,e!==null))for(uu(e,t,s),e=e.sibling;e!==null;)uu(e,t,s),e=e.sibling}function pr(e,t,s){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?s.insertBefore(e,t):s.appendChild(e);else if(i!==4&&(i===27&&hn(e.type)&&(s=e.stateNode),e=e.child,e!==null))for(pr(e,t,s),e=e.sibling;e!==null;)pr(e,t,s),e=e.sibling}function k0(e){var t=e.stateNode,s=e.memoizedProps;try{for(var i=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);wt(t,i,s),t[xt]=e,t[At]=s}catch(u){Be(e,e.return,u)}}var Va=!1,ct=!1,du=!1,j0=typeof WeakSet=="function"?WeakSet:Set,pt=null;function t2(e,t){if(e=e.containerInfo,Ru=Vr,e=Vh(e),sc(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var i=s.getSelection&&s.getSelection();if(i&&i.rangeCount!==0){s=i.anchorNode;var c=i.anchorOffset,u=i.focusNode;i=i.focusOffset;try{s.nodeType,u.nodeType}catch{s=null;break e}var x=0,b=-1,j=-1,U=0,G=0,Q=e,L=null;t:for(;;){for(var Y;Q!==s||c!==0&&Q.nodeType!==3||(b=x+c),Q!==u||i!==0&&Q.nodeType!==3||(j=x+i),Q.nodeType===3&&(x+=Q.nodeValue.length),(Y=Q.firstChild)!==null;)L=Q,Q=Y;for(;;){if(Q===e)break t;if(L===s&&++U===c&&(b=x),L===u&&++G===i&&(j=x),(Y=Q.nextSibling)!==null)break;Q=L,L=Q.parentNode}Q=Y}s=b===-1||j===-1?null:{start:b,end:j}}else s=null}s=s||{start:0,end:0}}else s=null;for(Ou={focusedElem:e,selectionRange:s},Vr=!1,pt=t;pt!==null;)if(t=pt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pt=e;else for(;pt!==null;){switch(t=pt,u=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(s=0;s title"))),wt(u,i,s),u[xt]=e,mt(u),i=u;break e;case"link":var x=Ap("link","href",c).get(i+(s.href||""));if(x){for(var b=0;bGe&&(x=Ge,Ge=xe,xe=x);var D=zh(b,xe),C=zh(b,Ge);if(D&&C&&(Y.rangeCount!==1||Y.anchorNode!==D.node||Y.anchorOffset!==D.offset||Y.focusNode!==C.node||Y.focusOffset!==C.offset)){var V=Q.createRange();V.setStart(D.node,D.offset),Y.removeAllRanges(),xe>Ge?(Y.addRange(V),Y.extend(C.node,C.offset)):(V.setEnd(C.node,C.offset),Y.addRange(V))}}}}for(Q=[],Y=b;Y=Y.parentNode;)Y.nodeType===1&&Q.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;bs?32:s,_.T=null,s=yu,yu=null;var u=un,x=Ya;if(dt=0,Us=un=null,Ya=0,(Ve&6)!==0)throw Error(r(331));var b=Ve;if(Ve|=4,_0(u.current),R0(u,u.current,x,s),Ve=b,Gl(0,!1),Ut&&typeof Ut.onPostCommitFiberRoot=="function")try{Ut.onPostCommitFiberRoot(rl,u)}catch{}return!0}finally{J.p=c,_.T=i,I0(e,t)}}function tp(e,t,s){t=$t(s,t),t=$c(e.stateNode,t,2),e=an(e,t,2),e!==null&&(cl(e,2),ba(e))}function Be(e,t,s){if(e.tag===3)tp(e,e,s);else for(;t!==null;){if(t.tag===3){tp(t,e,s);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(cn===null||!cn.has(i))){e=$t(s,e),s=a0(2),i=an(t,s,2),i!==null&&(n0(s,i,t,e),cl(i,2),ba(i));break}}t=t.return}}function Su(e,t,s){var i=e.pingCache;if(i===null){i=e.pingCache=new s2;var c=new Set;i.set(t,c)}else c=i.get(t),c===void 0&&(c=new Set,i.set(t,c));c.has(s)||(mu=!0,c.add(s),e=c2.bind(null,e,t,s),t.then(e,e))}function c2(e,t,s){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&s,e.warmLanes&=~s,Pe===e&&(Ae&s)===s&&(tt===4||tt===3&&(Ae&62914560)===Ae&&300>I()-yr?(Ve&2)===0&&Ls(e,0):pu|=s,Vs===Ae&&(Vs=0)),ba(e)}function ap(e,t){t===0&&(t=Jf()),e=Vn(e,t),e!==null&&(cl(e,t),ba(e))}function u2(e){var t=e.memoizedState,s=0;t!==null&&(s=t.retryLane),ap(e,s)}function d2(e,t){var s=0;switch(e.tag){case 31:case 13:var i=e.stateNode,c=e.memoizedState;c!==null&&(s=c.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(r(314))}i!==null&&i.delete(t),ap(e,s)}function f2(e,t){return ls(e,t)}var Nr=null,Hs=null,ku=!1,Tr=!1,ju=!1,fn=0;function ba(e){e!==Hs&&e.next===null&&(Hs===null?Nr=Hs=e:Hs=Hs.next=e),Tr=!0,ku||(ku=!0,m2())}function Gl(e,t){if(!ju&&Tr){ju=!0;do for(var s=!1,i=Nr;i!==null;){if(e!==0){var c=i.pendingLanes;if(c===0)var u=0;else{var x=i.suspendedLanes,b=i.pingedLanes;u=(1<<31-Lt(42|e)+1)-1,u&=c&~(x&~b),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(s=!0,ip(i,u))}else u=Ae,u=Ai(i,i===Pe?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(u&3)===0||ol(i,u)||(s=!0,ip(i,u));i=i.next}while(s);ju=!1}}function h2(){np()}function np(){Tr=ku=!1;var e=0;fn!==0&&j2()&&(e=fn);for(var t=I(),s=null,i=Nr;i!==null;){var c=i.next,u=sp(i,t);u===0?(i.next=null,s===null?Nr=c:s.next=c,c===null&&(Hs=s)):(s=i,(e!==0||(u&3)!==0)&&(Tr=!0)),i=c}dt!==0&&dt!==5||Gl(e),fn!==0&&(fn=0)}function sp(e,t){for(var s=e.suspendedLanes,i=e.pingedLanes,c=e.expirationTimes,u=e.pendingLanes&-62914561;0b)break;var G=j.transferSize,Q=j.initiatorType;G&&mp(Q)&&(j=j.responseEnd,x+=G*(j"u"?null:document;function Tp(e,t,s){var i=Ys;if(i&&typeof t=="string"&&t){var c=Zt(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof s=="string"&&(c+='[crossorigin="'+s+'"]'),Np.has(c)||(Np.add(c),e={rel:e,crossOrigin:s,href:t},i.querySelector(c)===null&&(t=i.createElement("link"),wt(t,"link",e),mt(t),i.head.appendChild(t)))}}function O2(e){qa.D(e),Tp("dns-prefetch",e,null)}function z2(e,t){qa.C(e,t),Tp("preconnect",e,t)}function _2(e,t,s){qa.L(e,t,s);var i=Ys;if(i&&e&&t){var c='link[rel="preload"][as="'+Zt(t)+'"]';t==="image"&&s&&s.imageSrcSet?(c+='[imagesrcset="'+Zt(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(c+='[imagesizes="'+Zt(s.imageSizes)+'"]')):c+='[href="'+Zt(e)+'"]';var u=c;switch(t){case"style":u=qs(e);break;case"script":u=Gs(e)}na.has(u)||(e=v({rel:"preload",href:t==="image"&&s&&s.imageSrcSet?void 0:e,as:t},s),na.set(u,e),i.querySelector(c)!==null||t==="style"&&i.querySelector(Fl(u))||t==="script"&&i.querySelector(Kl(u))||(t=i.createElement("link"),wt(t,"link",e),mt(t),i.head.appendChild(t)))}}function V2(e,t){qa.m(e,t);var s=Ys;if(s&&e){var i=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Zt(i)+'"][href="'+Zt(e)+'"]',u=c;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Gs(e)}if(!na.has(u)&&(e=v({rel:"modulepreload",href:e},t),na.set(u,e),s.querySelector(c)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(Kl(u)))return}i=s.createElement("link"),wt(i,"link",e),mt(i),s.head.appendChild(i)}}}function U2(e,t,s){qa.S(e,t,s);var i=Ys;if(i&&e){var c=us(i).hoistableStyles,u=qs(e);t=t||"default";var x=c.get(u);if(!x){var b={loading:0,preload:null};if(x=i.querySelector(Fl(u)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},s),(s=na.get(u))&&Hu(e,s);var j=x=i.createElement("link");mt(j),wt(j,"link",e),j._p=new Promise(function(U,G){j.onload=U,j.onerror=G}),j.addEventListener("load",function(){b.loading|=1}),j.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Dr(x,t,i)}x={type:"stylesheet",instance:x,count:1,state:b},c.set(u,x)}}}function L2(e,t){qa.X(e,t);var s=Ys;if(s&&e){var i=us(s).hoistableScripts,c=Gs(e),u=i.get(c);u||(u=s.querySelector(Kl(c)),u||(e=v({src:e,async:!0},t),(t=na.get(c))&&Yu(e,t),u=s.createElement("script"),mt(u),wt(u,"link",e),s.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},i.set(c,u))}}function B2(e,t){qa.M(e,t);var s=Ys;if(s&&e){var i=us(s).hoistableScripts,c=Gs(e),u=i.get(c);u||(u=s.querySelector(Kl(c)),u||(e=v({src:e,async:!0,type:"module"},t),(t=na.get(c))&&Yu(e,t),u=s.createElement("script"),mt(u),wt(u,"link",e),s.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},i.set(c,u))}}function Ep(e,t,s,i){var c=(c=ue.current)?Ar(c):null;if(!c)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(t=qs(s.href),s=us(c).hoistableStyles,i=s.get(t),i||(i={type:"style",instance:null,count:0,state:null},s.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){e=qs(s.href);var u=us(c).hoistableStyles,x=u.get(e);if(x||(c=c.ownerDocument||c,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,x),(u=c.querySelector(Fl(e)))&&!u._p&&(x.instance=u,x.state.loading=5),na.has(e)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},na.set(e,s),u||H2(c,e,s,x.state))),t&&i===null)throw Error(r(528,""));return x}if(t&&i!==null)throw Error(r(529,""));return null;case"script":return t=s.async,s=s.src,typeof s=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Gs(s),s=us(c).hoistableScripts,i=s.get(t),i||(i={type:"script",instance:null,count:0,state:null},s.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function qs(e){return'href="'+Zt(e)+'"'}function Fl(e){return'link[rel="stylesheet"]['+e+"]"}function Cp(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function H2(e,t,s,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),wt(t,"link",s),mt(t),e.head.appendChild(t))}function Gs(e){return'[src="'+Zt(e)+'"]'}function Kl(e){return"script[async]"+e}function Mp(e,t,s){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Zt(s.href)+'"]');if(i)return t.instance=i,mt(i),i;var c=v({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),mt(i),wt(i,"style",c),Dr(i,s.precedence,e),t.instance=i;case"stylesheet":c=qs(s.href);var u=e.querySelector(Fl(c));if(u)return t.state.loading|=4,t.instance=u,mt(u),u;i=Cp(s),(c=na.get(c))&&Hu(i,c),u=(e.ownerDocument||e).createElement("link"),mt(u);var x=u;return x._p=new Promise(function(b,j){x.onload=b,x.onerror=j}),wt(u,"link",i),t.state.loading|=4,Dr(u,s.precedence,e),t.instance=u;case"script":return u=Gs(s.src),(c=e.querySelector(Kl(u)))?(t.instance=c,mt(c),c):(i=s,(c=na.get(u))&&(i=v({},s),Yu(i,c)),e=e.ownerDocument||e,c=e.createElement("script"),mt(c),wt(c,"link",i),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Dr(i,s.precedence,e));return t.instance}function Dr(e,t,s){for(var i=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=i.length?i[i.length-1]:null,u=c,x=0;x title"):null)}function Y2(e,t,s){if(s===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 Rp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function q2(e,t,s,i){if(s.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var c=qs(i.href),u=t.querySelector(Fl(c));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Or.bind(e),t.then(e,e)),s.state.loading|=4,s.instance=u,mt(u);return}u=t.ownerDocument||t,i=Cp(i),(c=na.get(c))&&Hu(i,c),u=u.createElement("link"),mt(u);var x=u;x._p=new Promise(function(b,j){x.onload=b,x.onerror=j}),wt(u,"link",i),s.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(s,t),(t=s.state.preload)&&(s.state.loading&3)===0&&(e.count++,s=Or.bind(e),t.addEventListener("load",s),t.addEventListener("error",s))}}var qu=0;function G2(e,t){return e.stylesheets&&e.count===0&&_r(e,e.stylesheets),0qu?50:800)+t);return e.unsuspend=s,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(c)}}:null}function Or(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)_r(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var zr=null;function _r(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,zr=new Map,t.forEach(P2,e),zr=null,Or.call(e))}function P2(e,t){if(!(t.state.loading&4)){var s=zr.get(e);if(s)var i=s.get(null);else{s=new Map,zr.set(e,s);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(n){console.error(n)}}return a(),$u.exports=iw(),$u.exports}var ow=rw();/** * react-router v7.13.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */var ag="popstate";function ng(a){return typeof a=="object"&&a!=null&&"pathname"in a&&"search"in a&&"hash"in a&&"state"in a&&"key"in a}function cw(a={}){function n(r,o){var g;let f=(g=o.state)==null?void 0:g.masked,{pathname:h,search:m,hash:p}=f||r.location;return Md("",{pathname:h,search:m,hash:p},o.state&&o.state.usr||null,o.state&&o.state.key||"default",f?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function l(r,o){return typeof o=="string"?o:fi(o)}return dw(n,l,null,a)}function Je(a,n){if(a===!1||a===null||typeof a>"u")throw new Error(n)}function ia(a,n){if(!a){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function uw(){return Math.random().toString(36).substring(2,10)}function sg(a,n){return{usr:a.state,key:a.key,idx:n,masked:a.unstable_mask?{pathname:a.pathname,search:a.search,hash:a.hash}:void 0}}function Md(a,n,l=null,r,o){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof n=="string"?el(n):n,state:l,key:n&&n.key||r||uw(),unstable_mask:o}}function fi({pathname:a="/",search:n="",hash:l=""}){return n&&n!=="?"&&(a+=n.charAt(0)==="?"?n:"?"+n),l&&l!=="#"&&(a+=l.charAt(0)==="#"?l:"#"+l),a}function el(a){let n={};if(a){let l=a.indexOf("#");l>=0&&(n.hash=a.substring(l),a=a.substring(0,l));let r=a.indexOf("?");r>=0&&(n.search=a.substring(r),a=a.substring(0,r)),a&&(n.pathname=a)}return n}function dw(a,n,l,r={}){let{window:o=document.defaultView,v5Compat:f=!1}=r,h=o.history,m="POP",p=null,g=y();g==null&&(g=0,h.replaceState({...h.state,idx:g},""));function y(){return(h.state||{idx:null}).idx}function v(){m="POP";let M=y(),A=M==null?null:M-g;g=M,p&&p({action:m,location:E.location,delta:A})}function w(M,A){m="PUSH";let z=ng(M)?M:Md(E.location,M,A);g=y()+1;let O=sg(z,g),H=E.createHref(z.unstable_mask||z);try{h.pushState(O,"",H)}catch(X){if(X instanceof DOMException&&X.name==="DataCloneError")throw X;o.location.assign(H)}f&&p&&p({action:m,location:E.location,delta:1})}function k(M,A){m="REPLACE";let z=ng(M)?M:Md(E.location,M,A);g=y();let O=sg(z,g),H=E.createHref(z.unstable_mask||z);h.replaceState(O,"",H),f&&p&&p({action:m,location:E.location,delta:0})}function T(M){return fw(M)}let E={get action(){return m},get location(){return a(o,h)},listen(M){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(ag,v),p=M,()=>{o.removeEventListener(ag,v),p=null}},createHref(M){return n(o,M)},createURL:T,encodeLocation(M){let A=T(M);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:w,replace:k,go(M){return h.go(M)}};return E}function fw(a,n=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),Je(l,"No window.location.(origin|href) available to create URL");let r=typeof a=="string"?a:fi(a);return r=r.replace(/ $/,"%20"),!n&&r.startsWith("//")&&(r=l+r),new URL(r,l)}function Ix(a,n,l="/"){return hw(a,n,l,!1)}function hw(a,n,l,r){let o=typeof n=="string"?el(n):n,f=Qa(o.pathname||"/",l);if(f==null)return null;let h=ey(a);mw(h);let m=null;for(let p=0;m==null&&p{let y={relativePath:g===void 0?h.path||"":g,caseSensitive:h.caseSensitive===!0,childrenIndex:m,route:h};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(r)&&p)return;Je(y.relativePath.startsWith(r),`Absolute route path "${y.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(r.length)}let v=Sa([r,y.relativePath]),w=l.concat(y);h.children&&h.children.length>0&&(Je(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),ey(h.children,n,w,v,p)),!(h.path==null&&!h.index)&&n.push({path:v,score:ww(v,h.index),routesMeta:w})};return a.forEach((h,m)=>{var p;if(h.path===""||!((p=h.path)!=null&&p.includes("?")))f(h,m);else for(let g of ty(h.path))f(h,m,!0,g)}),n}function ty(a){let n=a.split("/");if(n.length===0)return[];let[l,...r]=n,o=l.endsWith("?"),f=l.replace(/\?$/,"");if(r.length===0)return o?[f,""]:[f];let h=ty(r.join("/")),m=[];return m.push(...h.map(p=>p===""?f:[f,p].join("/"))),o&&m.push(...h),m.map(p=>a.startsWith("/")&&p===""?"/":p)}function mw(a){a.sort((n,l)=>n.score!==l.score?l.score-n.score:Sw(n.routesMeta.map(r=>r.childrenIndex),l.routesMeta.map(r=>r.childrenIndex)))}var pw=/^:[\w-]+$/,gw=3,xw=2,yw=1,vw=10,bw=-2,lg=a=>a==="*";function ww(a,n){let l=a.split("/"),r=l.length;return l.some(lg)&&(r+=bw),n&&(r+=xw),l.filter(o=>!lg(o)).reduce((o,f)=>o+(pw.test(f)?gw:f===""?yw:vw),r)}function Sw(a,n){return a.length===n.length&&a.slice(0,-1).every((r,o)=>r===n[o])?a[a.length-1]-n[n.length-1]:0}function kw(a,n,l=!1){let{routesMeta:r}=a,o={},f="/",h=[];for(let m=0;m{if(y==="*"){let T=m[w]||"";h=f.slice(0,f.length-T.length).replace(/(.)\/+$/,"$1")}const k=m[w];return v&&!k?g[y]=void 0:g[y]=(k||"").replace(/%2F/g,"/"),g},{}),pathname:f,pathnameBase:h,pattern:a}}function jw(a,n=!1,l=!0){ia(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let r=[],o="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,m,p,g,y)=>{if(r.push({paramName:m,isOptional:p!=null}),p){let v=y.charAt(g+h.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(r.push({paramName:"*"}),o+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?o+="\\/*$":a!==""&&a!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,n?void 0:"i"),r]}function Nw(a){try{return a.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return ia(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),a}}function Qa(a,n){if(n==="/")return a;if(!a.toLowerCase().startsWith(n.toLowerCase()))return null;let l=n.endsWith("/")?n.length-1:n.length,r=a.charAt(l);return r&&r!=="/"?null:a.slice(l)||"/"}var Tw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Ew(a,n="/"){let{pathname:l,search:r="",hash:o=""}=typeof a=="string"?el(a):a,f;return l?(l=l.replace(/\/\/+/g,"/"),l.startsWith("/")?f=ig(l.substring(1),"/"):f=ig(l,n)):f=n,{pathname:f,search:Aw(r),hash:Dw(o)}}function ig(a,n){let l=n.replace(/\/+$/,"").split("/");return a.split("/").forEach(o=>{o===".."?l.length>1&&l.pop():o!=="."&&l.push(o)}),l.length>1?l.join("/"):"/"}function td(a,n,l,r){return`Cannot include a '${a}' character in a manually specified \`to.${n}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${l}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function Cw(a){return a.filter((n,l)=>l===0||n.route.path&&n.route.path.length>0)}function of(a){let n=Cw(a);return n.map((l,r)=>r===n.length-1?l.pathname:l.pathnameBase)}function Mo(a,n,l,r=!1){let o;typeof a=="string"?o=el(a):(o={...a},Je(!o.pathname||!o.pathname.includes("?"),td("?","pathname","search",o)),Je(!o.pathname||!o.pathname.includes("#"),td("#","pathname","hash",o)),Je(!o.search||!o.search.includes("#"),td("#","search","hash",o)));let f=a===""||o.pathname==="",h=f?"/":o.pathname,m;if(h==null)m=l;else{let v=n.length-1;if(!r&&h.startsWith("..")){let w=h.split("/");for(;w[0]==="..";)w.shift(),v-=1;o.pathname=w.join("/")}m=v>=0?n[v]:"/"}let p=Ew(o,m),g=h&&h!=="/"&&h.endsWith("/"),y=(f||h===".")&&l.endsWith("/");return!p.pathname.endsWith("/")&&(g||y)&&(p.pathname+="/"),p}var Sa=a=>a.join("/").replace(/\/\/+/g,"/"),Mw=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),Aw=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,Dw=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,Rw=class{constructor(a,n,l,r=!1){this.status=a,this.statusText=n||"",this.internal=r,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function Ow(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function zw(a){return a.map(n=>n.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var ay=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ny(a,n){let l=a;if(typeof l!="string"||!Tw.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let r=l,o=!1;if(ay)try{let f=new URL(window.location.href),h=l.startsWith("//")?new URL(f.protocol+l):new URL(l),m=Qa(h.pathname,n);h.origin===f.origin&&m!=null?l=m+h.search+h.hash:o=!0}catch{ia(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var sy=["POST","PUT","PATCH","DELETE"];new Set(sy);var _w=["GET",...sy];new Set(_w);var tl=S.createContext(null);tl.displayName="DataRouter";var Ao=S.createContext(null);Ao.displayName="DataRouterState";var Vw=S.createContext(!1),ly=S.createContext({isTransitioning:!1});ly.displayName="ViewTransition";var Uw=S.createContext(new Map);Uw.displayName="Fetchers";var Lw=S.createContext(null);Lw.displayName="Await";var Ft=S.createContext(null);Ft.displayName="Navigation";var vi=S.createContext(null);vi.displayName="Location";var ma=S.createContext({outlet:null,matches:[],isDataRoute:!1});ma.displayName="Route";var cf=S.createContext(null);cf.displayName="RouteError";var iy="REACT_ROUTER_ERROR",Bw="REDIRECT",Hw="ROUTE_ERROR_RESPONSE";function Yw(a){if(a.startsWith(`${iy}:${Bw}:{`))try{let n=JSON.parse(a.slice(28));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.location=="string"&&typeof n.reloadDocument=="boolean"&&typeof n.replace=="boolean")return n}catch{}}function qw(a){if(a.startsWith(`${iy}:${Hw}:{`))try{let n=JSON.parse(a.slice(40));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string")return new Rw(n.status,n.statusText,n.data)}catch{}}function Gw(a,{relative:n}={}){Je(al(),"useHref() may be used only in the context of a component.");let{basename:l,navigator:r}=S.useContext(Ft),{hash:o,pathname:f,search:h}=wi(a,{relative:n}),m=f;return l!=="/"&&(m=f==="/"?l:Sa([l,f])),r.createHref({pathname:m,search:h,hash:o})}function al(){return S.useContext(vi)!=null}function pa(){return Je(al(),"useLocation() may be used only in the context of a component."),S.useContext(vi).location}var ry="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function oy(a){S.useContext(Ft).static||S.useLayoutEffect(a)}function bi(){let{isDataRoute:a}=S.useContext(ma);return a?sS():Pw()}function Pw(){Je(al(),"useNavigate() may be used only in the context of a component.");let a=S.useContext(tl),{basename:n,navigator:l}=S.useContext(Ft),{matches:r}=S.useContext(ma),{pathname:o}=pa(),f=JSON.stringify(of(r)),h=S.useRef(!1);return oy(()=>{h.current=!0}),S.useCallback((p,g={})=>{if(ia(h.current,ry),!h.current)return;if(typeof p=="number"){l.go(p);return}let y=Mo(p,JSON.parse(f),o,g.relative==="path");a==null&&n!=="/"&&(y.pathname=y.pathname==="/"?n:Sa([n,y.pathname])),(g.replace?l.replace:l.push)(y,g.state,g)},[n,l,f,o,a])}var Xw=S.createContext(null);function Qw(a){let n=S.useContext(ma).outlet;return S.useMemo(()=>n&&S.createElement(Xw.Provider,{value:a},n),[n,a])}function wi(a,{relative:n}={}){let{matches:l}=S.useContext(ma),{pathname:r}=pa(),o=JSON.stringify(of(l));return S.useMemo(()=>Mo(a,JSON.parse(o),r,n==="path"),[a,o,r,n])}function Fw(a,n){return cy(a,n)}function cy(a,n,l){var M;Je(al(),"useRoutes() may be used only in the context of a component.");let{navigator:r}=S.useContext(Ft),{matches:o}=S.useContext(ma),f=o[o.length-1],h=f?f.params:{},m=f?f.pathname:"/",p=f?f.pathnameBase:"/",g=f&&f.route;{let A=g&&g.path||"";dy(m,!g||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${m}" (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=pa(),v;if(n){let A=typeof n=="string"?el(n):n;Je(p==="/"||((M=A.pathname)==null?void 0:M.startsWith(p)),`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 "${p}" but pathname "${A.pathname}" was given in the \`location\` prop.`),v=A}else v=y;let w=v.pathname||"/",k=w;if(p!=="/"){let A=p.replace(/^\//,"").split("/");k="/"+w.replace(/^\//,"").split("/").slice(A.length).join("/")}let T=Ix(a,{pathname:k});ia(g||T!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),ia(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.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 E=Ww(T&&T.map(A=>Object.assign({},A,{params:Object.assign({},h,A.params),pathname:Sa([p,r.encodeLocation?r.encodeLocation(A.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?p:Sa([p,r.encodeLocation?r.encodeLocation(A.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),o,l);return n&&E?S.createElement(vi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...v},navigationType:"POP"}},E):E}function Kw(){let a=nS(),n=Ow(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),l=a instanceof Error?a.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},f={padding:"2px 4px",backgroundColor:r},h=null;return console.error("Error handled by React Router default ErrorBoundary:",a),h=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:f},"ErrorBoundary")," or"," ",S.createElement("code",{style:f},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},n),l?S.createElement("pre",{style:o},l):null,h)}var Zw=S.createElement(Kw,null),uy=class extends S.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,n){return n.location!==a.location||n.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:n.error,location:n.location,revalidation:a.revalidation||n.revalidation}}componentDidCatch(a,n){this.props.onError?this.props.onError(a,n):console.error("React Router caught the following error during render",a)}render(){let a=this.state.error;if(this.context&&typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){const l=qw(a.digest);l&&(a=l)}let n=a!==void 0?S.createElement(ma.Provider,{value:this.props.routeContext},S.createElement(cf.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?S.createElement(Jw,{error:a},n):n}};uy.contextType=Vw;var ad=new WeakMap;function Jw({children:a,error:n}){let{basename:l}=S.useContext(Ft);if(typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){let r=Yw(n.digest);if(r){let o=ad.get(n);if(o)throw o;let f=ny(r.location,l);if(ay&&!ad.get(n))if(f.isExternal||r.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:r.replace}));throw ad.set(n,h),h}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return a}function $w({routeContext:a,match:n,children:l}){let r=S.useContext(tl);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(ma.Provider,{value:a},l)}function Ww(a,n=[],l){let r=l==null?void 0:l.state;if(a==null){if(!r)return null;if(r.errors)a=r.matches;else if(n.length===0&&!r.initialized&&r.matches.length>0)a=r.matches;else return null}let o=a,f=r==null?void 0:r.errors;if(f!=null){let y=o.findIndex(v=>v.route.id&&(f==null?void 0:f[v.route.id])!==void 0);Je(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),o=o.slice(0,Math.min(o.length,y+1))}let h=!1,m=-1;if(l&&r){h=r.renderFallback;for(let y=0;y=0?o=o.slice(0,m+1):o=[o[0]];break}}}}let p=l==null?void 0:l.onError,g=r&&p?(y,v)=>{var w,k;p(y,{location:r.location,params:((k=(w=r.matches)==null?void 0:w[0])==null?void 0:k.params)??{},unstable_pattern:zw(r.matches),errorInfo:v})}:void 0;return o.reduceRight((y,v,w)=>{let k,T=!1,E=null,M=null;r&&(k=f&&v.route.id?f[v.route.id]:void 0,E=v.route.errorElement||Zw,h&&(m<0&&w===0?(dy("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,M=null):m===w&&(T=!0,M=v.route.hydrateFallbackElement||null)));let A=n.concat(o.slice(0,w+1)),z=()=>{let O;return k?O=E:T?O=M:v.route.Component?O=S.createElement(v.route.Component,null):v.route.element?O=v.route.element:O=y,S.createElement($w,{match:v,routeContext:{outlet:y,matches:A,isDataRoute:r!=null},children:O})};return r&&(v.route.ErrorBoundary||v.route.errorElement||w===0)?S.createElement(uy,{location:r.location,revalidation:r.revalidation,component:E,error:k,children:z(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:g}):z()},null)}function uf(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Iw(a){let n=S.useContext(tl);return Je(n,uf(a)),n}function eS(a){let n=S.useContext(Ao);return Je(n,uf(a)),n}function tS(a){let n=S.useContext(ma);return Je(n,uf(a)),n}function df(a){let n=tS(a),l=n.matches[n.matches.length-1];return Je(l.route.id,`${a} can only be used on routes that contain a unique "id"`),l.route.id}function aS(){return df("useRouteId")}function nS(){var r;let a=S.useContext(cf),n=eS("useRouteError"),l=df("useRouteError");return a!==void 0?a:(r=n.errors)==null?void 0:r[l]}function sS(){let{router:a}=Iw("useNavigate"),n=df("useNavigate"),l=S.useRef(!1);return oy(()=>{l.current=!0}),S.useCallback(async(o,f={})=>{ia(l.current,ry),l.current&&(typeof o=="number"?await a.navigate(o):await a.navigate(o,{fromRouteId:n,...f}))},[a,n])}var rg={};function dy(a,n,l){!n&&!rg[a]&&(rg[a]=!0,ia(!1,l))}S.memo(lS);function lS({routes:a,future:n,state:l,isStatic:r,onError:o}){return cy(a,void 0,{state:l,isStatic:r,onError:o})}function fy({to:a,replace:n,state:l,relative:r}){Je(al()," may be used only in the context of a component.");let{static:o}=S.useContext(Ft);ia(!o," 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:f}=S.useContext(ma),{pathname:h}=pa(),m=bi(),p=Mo(a,of(f),h,r==="path"),g=JSON.stringify(p);return S.useEffect(()=>{m(JSON.parse(g),{replace:n,state:l,relative:r})},[m,g,r,n,l]),null}function iS(a){return Qw(a.context)}function Sn(a){Je(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function rS({basename:a="/",children:n=null,location:l,navigationType:r="POP",navigator:o,static:f=!1,unstable_useTransitions:h}){Je(!al(),"You cannot render a inside another . You should never have more than one in your app.");let m=a.replace(/^\/*/,"/"),p=S.useMemo(()=>({basename:m,navigator:o,static:f,unstable_useTransitions:h,future:{}}),[m,o,f,h]);typeof l=="string"&&(l=el(l));let{pathname:g="/",search:y="",hash:v="",state:w=null,key:k="default",unstable_mask:T}=l,E=S.useMemo(()=>{let M=Qa(g,m);return M==null?null:{location:{pathname:M,search:y,hash:v,state:w,key:k,unstable_mask:T},navigationType:r}},[m,g,y,v,w,k,r,T]);return ia(E!=null,` is not able to match the URL "${g}${y}${v}" because it does not start with the basename, so the won't render anything.`),E==null?null:S.createElement(Ft.Provider,{value:p},S.createElement(vi.Provider,{children:n,value:E}))}function oS({children:a,location:n}){return Fw(Ad(a),n)}function Ad(a,n=[]){let l=[];return S.Children.forEach(a,(r,o)=>{if(!S.isValidElement(r))return;let f=[...n,o];if(r.type===S.Fragment){l.push.apply(l,Ad(r.props.children,f));return}Je(r.type===Sn,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),Je(!r.props.index||!r.props.children,"An index route cannot have child routes.");let h={id:r.props.id||f.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&&(h.children=Ad(r.props.children,f)),l.push(h)}),l}var to="get",ao="application/x-www-form-urlencoded";function Do(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function cS(a){return Do(a)&&a.tagName.toLowerCase()==="button"}function uS(a){return Do(a)&&a.tagName.toLowerCase()==="form"}function dS(a){return Do(a)&&a.tagName.toLowerCase()==="input"}function fS(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function hS(a,n){return a.button===0&&(!n||n==="_self")&&!fS(a)}function Dd(a=""){return new URLSearchParams(typeof a=="string"||Array.isArray(a)||a instanceof URLSearchParams?a:Object.keys(a).reduce((n,l)=>{let r=a[l];return n.concat(Array.isArray(r)?r.map(o=>[l,o]):[[l,r]])},[]))}function mS(a,n){let l=Dd(a);return n&&n.forEach((r,o)=>{l.has(o)||n.getAll(o).forEach(f=>{l.append(o,f)})}),l}var Gr=null;function pS(){if(Gr===null)try{new FormData(document.createElement("form"),0),Gr=!1}catch{Gr=!0}return Gr}var gS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function nd(a){return a!=null&&!gS.has(a)?(ia(!1,`"${a}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${ao}"`),null):a}function xS(a,n){let l,r,o,f,h;if(uS(a)){let m=a.getAttribute("action");r=m?Qa(m,n):null,l=a.getAttribute("method")||to,o=nd(a.getAttribute("enctype"))||ao,f=new FormData(a)}else if(cS(a)||dS(a)&&(a.type==="submit"||a.type==="image")){let m=a.form;if(m==null)throw new Error('Cannot submit a