(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.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 _ of f.addedNodes)_.tagName==="LINK"&&_.rel==="modulepreload"&&r(_)}).observe(document,{childList:!0,subtree:!0});function s(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=s(o);fetch(o.href,f)}})();function Ib(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var wd={exports:{}},Ps={};/** * @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 ph;function Kb(){if(ph)return Ps;ph=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function s(r,o,f){var _=null;if(f!==void 0&&(_=""+f),o.key!==void 0&&(_=""+o.key),"key"in o){f={};for(var y in o)y!=="key"&&(f[y]=o[y])}else f=o;return o=f.ref,{$$typeof:n,type:r,key:_,ref:o!==void 0?o:null,props:f}}return Ps.Fragment=l,Ps.jsx=s,Ps.jsxs=s,Ps}var hh;function Qb(){return hh||(hh=1,wd.exports=Kb()),wd.exports}var c=Qb(),Ad={exports:{}},xe={};/** * @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 gh;function Vb(){if(gh)return xe;gh=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),_=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),j=Symbol.iterator;function R(E){return E===null||typeof E!="object"?null:(E=j&&E[j]||E["@@iterator"],typeof E=="function"?E:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,T={};function M(E,Y,ee){this.props=E,this.context=Y,this.refs=T,this.updater=ee||A}M.prototype.isReactComponent={},M.prototype.setState=function(E,Y){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,Y,"setState")},M.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function Z(){}Z.prototype=M.prototype;function Q(E,Y,ee){this.props=E,this.context=Y,this.refs=T,this.updater=ee||A}var ae=Q.prototype=new Z;ae.constructor=Q,D(ae,M.prototype),ae.isPureReactComponent=!0;var re=Array.isArray;function pe(){}var W={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function J(E,Y,ee){var te=ee.ref;return{$$typeof:n,type:E,key:Y,ref:te!==void 0?te:null,props:ee}}function U(E,Y){return J(E.type,Y,E.props)}function le(E){return typeof E=="object"&&E!==null&&E.$$typeof===n}function qe(E){var Y={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(ee){return Y[ee]})}var F=/\/+/g;function de(E,Y){return typeof E=="object"&&E!==null&&E.key!=null?qe(""+E.key):Y.toString(36)}function H(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(pe,pe):(E.status="pending",E.then(function(Y){E.status==="pending"&&(E.status="fulfilled",E.value=Y)},function(Y){E.status==="pending"&&(E.status="rejected",E.reason=Y)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function $(E,Y,ee,te,fe){var Se=typeof E;(Se==="undefined"||Se==="boolean")&&(E=null);var X=!1;if(E===null)X=!0;else switch(Se){case"bigint":case"string":case"number":X=!0;break;case"object":switch(E.$$typeof){case n:case l:X=!0;break;case S:return X=E._init,$(X(E._payload),Y,ee,te,fe)}}if(X)return fe=fe(E),X=te===""?"."+de(E,0):te,re(fe)?(ee="",X!=null&&(ee=X.replace(F,"$&/")+"/"),$(fe,Y,ee,"",function(Le){return Le})):fe!=null&&(le(fe)&&(fe=U(fe,ee+(fe.key==null||E&&E.key===fe.key?"":(""+fe.key).replace(F,"$&/")+"/")+X)),Y.push(fe)),1;X=0;var ce=te===""?".":te+":";if(re(E))for(var Oe=0;Oe>>1,Ae=$[he];if(0>>1;heo(ee,ie))teo(fe,ee)?($[he]=fe,$[te]=ie,he=te):($[he]=ee,$[Y]=ie,he=Y);else if(teo(fe,ie))$[he]=fe,$[te]=ie,he=te;else break e}}return K}function o($,K){var ie=$.sortIndex-K.sortIndex;return ie!==0?ie:$.id-K.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var _=Date,y=_.now();n.unstable_now=function(){return _.now()-y}}var p=[],g=[],S=1,x=null,j=3,R=!1,A=!1,D=!1,T=!1,M=typeof setTimeout=="function"?setTimeout:null,Z=typeof clearTimeout=="function"?clearTimeout:null,Q=typeof setImmediate<"u"?setImmediate:null;function ae($){for(var K=s(g);K!==null;){if(K.callback===null)r(g);else if(K.startTime<=$)r(g),K.sortIndex=K.expirationTime,l(p,K);else break;K=s(g)}}function re($){if(D=!1,ae($),!A)if(s(p)!==null)A=!0,pe||(pe=!0,qe());else{var K=s(g);K!==null&&H(re,K.startTime-$)}}var pe=!1,W=-1,P=5,J=-1;function U(){return T?!0:!(n.unstable_now()-J$&&U());){var he=x.callback;if(typeof he=="function"){x.callback=null,j=x.priorityLevel;var Ae=he(x.expirationTime<=$);if($=n.unstable_now(),typeof Ae=="function"){x.callback=Ae,ae($),K=!0;break t}x===s(p)&&r(p),ae($)}else r(p);x=s(p)}if(x!==null)K=!0;else{var E=s(g);E!==null&&H(re,E.startTime-$),K=!1}}break e}finally{x=null,j=ie,R=!1}K=void 0}}finally{K?qe():pe=!1}}}var qe;if(typeof Q=="function")qe=function(){Q(le)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,de=F.port2;F.port1.onmessage=le,qe=function(){de.postMessage(null)}}else qe=function(){M(le,0)};function H($,K){W=M(function(){$(n.unstable_now())},K)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function($){$.callback=null},n.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"):P=0<$?Math.floor(1e3/$):5},n.unstable_getCurrentPriorityLevel=function(){return j},n.unstable_next=function($){switch(j){case 1:case 2:case 3:var K=3;break;default:K=j}var ie=j;j=K;try{return $()}finally{j=ie}},n.unstable_requestPaint=function(){T=!0},n.unstable_runWithPriority=function($,K){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var ie=j;j=$;try{return K()}finally{j=ie}},n.unstable_scheduleCallback=function($,K,ie){var he=n.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0he?($.sortIndex=ie,l(g,$),s(p)===null&&$===s(g)&&(D?(Z(W),W=-1):D=!0,H(re,ie-he))):($.sortIndex=Ae,l(p,$),A||R||(A=!0,pe||(pe=!0,qe()))),$},n.unstable_shouldYield=U,n.unstable_wrapCallback=function($){var K=j;return function(){var ie=j;j=K;try{return $.apply(this,arguments)}finally{j=ie}}}})(Nd)),Nd}var bh;function Jb(){return bh||(bh=1,Cd.exports=Zb()),Cd.exports}var Td={exports:{}},Ot={};/** * @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 Sh;function Fb(){if(Sh)return Ot;Sh=1;var n=ff();function l(p){var g="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),Td.exports=Fb(),Td.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 kh;function Pb(){if(kh)return er;kh=1;var n=Jb(),l=ff(),s=Wb();function r(e){var t="https://react.dev/errors/"+e;if(1Ae||(e.current=he[Ae],he[Ae]=null,Ae--)}function ee(e,t){Ae++,he[Ae]=e.current,e.current=t}var te=E(null),fe=E(null),Se=E(null),X=E(null);function ce(e,t){switch(ee(Se,t),ee(fe,e),ee(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Lp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Lp(t),e=Bp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(te),ee(te,e)}function Oe(){Y(te),Y(fe),Y(Se)}function Le(e){e.memoizedState!==null&&ee(X,e);var t=te.current,a=Bp(t,e.type);t!==a&&(ee(fe,e),ee(te,a))}function Rt(e){fe.current===e&&(Y(te),Y(fe)),X.current===e&&(Y(X),Zs._currentValue=ie)}var $t,Be;function Me(e){if($t===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);$t=t&&t[1]||"",Be=-1)":-1u||w[i]!==O[u]){var B=` `+w[i].replace(" at new "," at ");return e.displayName&&B.includes("")&&(B=B.replace("",e.displayName)),B}while(1<=i&&0<=u);break}}}finally{Fe=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Me(a):""}function Hn(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 en(e.type,!1);case 11:return en(e.type.render,!1);case 1:return en(e.type,!0);case 31:return Me("Activity");default:return""}}function Pi(e){try{var t="",a=null;do t+=Hn(e,a),a=e,e=e.return;while(e);return t}catch(i){return` Error generating stack: `+i.message+` `+i.stack}}var es=Object.prototype.hasOwnProperty,gl=n.unstable_scheduleCallback,ts=n.unstable_cancelCallback,bo=n.unstable_shouldYield,Lt=n.unstable_requestPaint,Mt=n.unstable_now,ke=n.unstable_getCurrentPriorityLevel,Ta=n.unstable_ImmediatePriority,Bt=n.unstable_UserBlockingPriority,zt=n.unstable_NormalPriority,Wl=n.unstable_LowPriority,mn=n.unstable_IdlePriority,Ut=n.log,Pl=n.unstable_setDisableYieldValue,tn=null,St=null;function _n(e){if(typeof Ut=="function"&&Pl(e),St&&typeof St.setStrictMode=="function")try{St.setStrictMode(tn,e)}catch{}}var We=Math.clz32?Math.clz32:Da,So=Math.log,kr=Math.LN2;function Da(e){return e>>>=0,e===0?32:31-(So(e)/kr|0)|0}var ei=256,Ra=262144,ti=4194304;function na(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 ni(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var u=0,d=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=i&134217727;return b!==0?(i=b&~d,i!==0?u=na(i):(h&=b,h!==0?u=na(h):a||(a=b&~e,a!==0&&(u=na(a))))):(b=i&~d,b!==0?u=na(b):h!==0?u=na(h):a||(a=i&~e,a!==0&&(u=na(a)))),u===0?0:t!==0&&t!==u&&(t&d)===0&&(d=u&-u,a=t&-t,d>=a||d===32&&(a&4194048)!==0)?t:u}function yl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function En(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 Qe(){var e=ti;return ti<<=1,(ti&62914560)===0&&(ti=4194304),e}function Ee(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function aa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Hf(e,t,a,i,u,d){var h=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 b=e.entanglements,w=e.expirationTimes,O=e.hiddenUpdates;for(a=h&~a;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Ao=/[\n"\\]/g;function Qt(e){return e.replace(Ao,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function cs(e,t,a,i,u,d,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Kt(t)):e.value!==""+Kt(t)&&(e.value=""+Kt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?os(e,h,Kt(t)):a!=null?os(e,h,Kt(a)):i!=null&&e.removeAttribute("value"),u==null&&d!=null&&(e.defaultChecked=!!d),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+Kt(b):e.removeAttribute("name")}function wr(e,t,a,i,u,d,h,b){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||a!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){si(e);return}a=a!=null?""+Kt(a):"",t=t!=null?""+Kt(t):a,b||t===e.value||(e.value=t),e.defaultValue=t}i=i??u,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=b?e.checked:!!i,e.defaultChecked=!!i,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),si(e)}function os(e,t,a){t==="number"&&Kn(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function qa(e,t,a,i){if(e=e.options,t){t={};for(var u=0;u"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_s=!1;if(hn)try{var oa={};Object.defineProperty(oa,"passive",{get:function(){_s=!0}}),window.addEventListener("test",oa,oa),window.removeEventListener("test",oa,oa)}catch{_s=!1}var Rn=null,Vn=null,ri=null;function Nr(){if(ri)return ri;var e,t=Vn,a=t.length,i,u="value"in Rn?Rn.value:Rn.textContent,d=u.length;for(e=0;e=hs),Kf=" ",Qf=!1;function Vf(e,t){switch(e){case"keyup":return fv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ui=!1;function _v(e,t){switch(e){case"compositionend":return Xf(t);case"keypress":return t.which!==32?null:(Qf=!0,Kf);case"textInput":return e=t.data,e===Kf&&Qf?null:e;default:return null}}function pv(e,t){if(ui)return e==="compositionend"||!Do&&Vf(e,t)?(e=Nr(),ri=Vn=Rn=null,ui=!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=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=nm(a)}}function lm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?lm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function im(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Kn(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=Kn(e.document)}return t}function Mo(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 kv=hn&&"documentMode"in document&&11>=document.documentMode,di=null,zo=null,bs=null,Oo=!1;function sm(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Oo||di==null||di!==Kn(i)||(i=di,"selectionStart"in i&&Mo(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}),bs&&vs(bs,i)||(bs=i,i=bc(zo,"onSelect"),0>=h,u-=h,Zn=1<<32-We(t)+u|a<we?(De=oe,oe=null):De=oe.sibling;var He=q(N,oe,z[we],G);if(He===null){oe===null&&(oe=De);break}e&&oe&&He.alternate===null&&t(N,oe),C=d(He,C,we),Ue===null?me=He:Ue.sibling=He,Ue=He,oe=De}if(we===z.length)return a(N,oe),Re&&da(N,we),me;if(oe===null){for(;wewe?(De=oe,oe=null):De=oe.sibling;var rl=q(N,oe,He.value,G);if(rl===null){oe===null&&(oe=De);break}e&&oe&&rl.alternate===null&&t(N,oe),C=d(rl,C,we),Ue===null?me=rl:Ue.sibling=rl,Ue=rl,oe=De}if(He.done)return a(N,oe),Re&&da(N,we),me;if(oe===null){for(;!He.done;we++,He=z.next())He=I(N,He.value,G),He!==null&&(C=d(He,C,we),Ue===null?me=He:Ue.sibling=He,Ue=He);return Re&&da(N,we),me}for(oe=i(oe);!He.done;we++,He=z.next())He=L(oe,N,we,He.value,G),He!==null&&(e&&He.alternate!==null&&oe.delete(He.key===null?we:He.key),C=d(He,C,we),Ue===null?me=He:Ue.sibling=He,Ue=He);return e&&oe.forEach(function(Yb){return t(N,Yb)}),Re&&da(N,we),me}function Je(N,C,z,G){if(typeof z=="object"&&z!==null&&z.type===D&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case R:e:{for(var me=z.key;C!==null;){if(C.key===me){if(me=z.type,me===D){if(C.tag===7){a(N,C.sibling),G=u(C,z.props.children),G.return=N,N=G;break e}}else if(C.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===P&&zl(me)===C.type){a(N,C.sibling),G=u(C,z.props),As(G,z),G.return=N,N=G;break e}a(N,C);break}else t(N,C);C=C.sibling}z.type===D?(G=Tl(z.props.children,N.mode,G,z.key),G.return=N,N=G):(G=qr(z.type,z.key,z.props,null,N.mode,G),As(G,z),G.return=N,N=G)}return h(N);case A:e:{for(me=z.key;C!==null;){if(C.key===me)if(C.tag===4&&C.stateNode.containerInfo===z.containerInfo&&C.stateNode.implementation===z.implementation){a(N,C.sibling),G=u(C,z.children||[]),G.return=N,N=G;break e}else{a(N,C);break}else t(N,C);C=C.sibling}G=Yo(z,N.mode,G),G.return=N,N=G}return h(N);case P:return z=zl(z),Je(N,C,z,G)}if(H(z))return se(N,C,z,G);if(qe(z)){if(me=qe(z),typeof me!="function")throw Error(r(150));return z=me.call(z),ge(N,C,z,G)}if(typeof z.then=="function")return Je(N,C,Ir(z),G);if(z.$$typeof===Q)return Je(N,C,Ur(N,z),G);Kr(N,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,C!==null&&C.tag===6?(a(N,C.sibling),G=u(C,z),G.return=N,N=G):(a(N,C),G=Go(z,N.mode,G),G.return=N,N=G),h(N)):a(N,C)}return function(N,C,z,G){try{ws=0;var me=Je(N,C,z,G);return xi=null,me}catch(oe){if(oe===Si||oe===Gr)throw oe;var Ue=an(29,oe,null,N.mode);return Ue.lanes=G,Ue.return=N,Ue}finally{}}}var ql=Nm(!0),Tm=Nm(!1),Ia=!1;function tu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nu(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 Ka(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Qa(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Ye&2)!==0){var u=i.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),i.pending=t,t=Or(e),mm(e,null,a),t}return zr(e,i,t,a),Or(e)}function Es(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,xo(e,a)}}function au(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var u=null,d=null;if(a=a.firstBaseUpdate,a!==null){do{var h={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};d===null?u=d=h:d=d.next=h,a=a.next}while(a!==null);d===null?u=d=t:d=d.next=t}else u=d=t;a={baseState:i.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var lu=!1;function Cs(){if(lu){var e=bi;if(e!==null)throw e}}function Ns(e,t,a,i){lu=!1;var u=e.updateQueue;Ia=!1;var d=u.firstBaseUpdate,h=u.lastBaseUpdate,b=u.shared.pending;if(b!==null){u.shared.pending=null;var w=b,O=w.next;w.next=null,h===null?d=O:h.next=O,h=w;var B=e.alternate;B!==null&&(B=B.updateQueue,b=B.lastBaseUpdate,b!==h&&(b===null?B.firstBaseUpdate=O:b.next=O,B.lastBaseUpdate=w))}if(d!==null){var I=u.baseState;h=0,B=O=w=null,b=d;do{var q=b.lane&-536870913,L=q!==b.lane;if(L?(Te&q)===q:(i&q)===q){q!==0&&q===vi&&(lu=!0),B!==null&&(B=B.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var se=e,ge=b;q=t;var Je=a;switch(ge.tag){case 1:if(se=ge.payload,typeof se=="function"){I=se.call(Je,I,q);break e}I=se;break e;case 3:se.flags=se.flags&-65537|128;case 0:if(se=ge.payload,q=typeof se=="function"?se.call(Je,I,q):se,q==null)break e;I=x({},I,q);break e;case 2:Ia=!0}}q=b.callback,q!==null&&(e.flags|=64,L&&(e.flags|=8192),L=u.callbacks,L===null?u.callbacks=[q]:L.push(q))}else L={lane:q,tag:b.tag,payload:b.payload,callback:b.callback,next:null},B===null?(O=B=L,w=I):B=B.next=L,h|=q;if(b=b.next,b===null){if(b=u.shared.pending,b===null)break;L=b,b=L.next,L.next=null,u.lastBaseUpdate=L,u.shared.pending=null}}while(!0);B===null&&(w=I),u.baseState=w,u.firstBaseUpdate=O,u.lastBaseUpdate=B,d===null&&(u.shared.lanes=0),Fa|=h,e.lanes=h,e.memoizedState=I}}function Dm(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Rm(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;ed?d:8;var h=$.T,b={};$.T=b,ku(e,!1,t,a);try{var w=u(),O=$.S;if(O!==null&&O(b,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var B=Rv(w,i);Rs(e,t,B,on(e))}else Rs(e,t,i,on(e))}catch(I){Rs(e,t,{then:function(){},status:"rejected",reason:I},on())}finally{K.p=d,h!==null&&b.types!==null&&(h.types=b.types),$.T=h}}function Lv(){}function Su(e,t,a,i){if(e.tag!==5)throw Error(r(476));var u=u_(e).queue;o_(e,u,t,ie,a===null?Lv:function(){return d_(e),a(i)})}function u_(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:pa,lastRenderedState:ie},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function d_(e){var t=u_(e);t.next===null&&(t=e.alternate.memoizedState),Rs(e,t.next.queue,{},on())}function xu(){return Ct(Zs)}function f_(){return ft().memoizedState}function m_(){return ft().memoizedState}function Bv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=on();e=Ka(a);var i=Qa(t,e,a);i!==null&&(Wt(i,t,a),Es(i,t,a)),t={cache:Fo()},e.payload=t;return}t=t.return}}function Uv(e,t,a){var i=on();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},tc(e)?p_(t,a):(a=Uo(e,t,a,i),a!==null&&(Wt(a,e,i),h_(a,t,i)))}function __(e,t,a){var i=on();Rs(e,t,a,i)}function Rs(e,t,a,i){var u={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(tc(e))p_(t,u);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var h=t.lastRenderedState,b=d(h,a);if(u.hasEagerState=!0,u.eagerState=b,nn(b,h))return zr(e,t,u,0),Pe===null&&Mr(),!1}catch{}finally{}if(a=Uo(e,t,u,i),a!==null)return Wt(a,e,i),h_(a,t,i),!0}return!1}function ku(e,t,a,i){if(i={lane:2,revertLane:td(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},tc(e)){if(t)throw Error(r(479))}else t=Uo(e,a,i,2),t!==null&&Wt(t,e,2)}function tc(e){var t=e.alternate;return e===je||t!==null&&t===je}function p_(e,t){ji=Xr=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function h_(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,xo(e,a)}}var $s={readContext:Ct,use:Fr,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt,useHostTransitionStatus:rt,useFormState:rt,useActionState:rt,useOptimistic:rt,useMemoCache:rt,useCacheRefresh:rt};$s.useEffectEvent=rt;var g_={readContext:Ct,use:Fr,useCallback:function(e,t){return Yt().memoizedState=[e,t===void 0?null:t],e},useContext:Ct,useEffect:e_,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Pr(4194308,4,l_.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Pr(4194308,4,e,t)},useInsertionEffect:function(e,t){Pr(4,2,e,t)},useMemo:function(e,t){var a=Yt();t=t===void 0?null:t;var i=e();if(Ll){_n(!0);try{e()}finally{_n(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=Yt();if(a!==void 0){var u=a(t);if(Ll){_n(!0);try{a(t)}finally{_n(!1)}}}else u=t;return i.memoizedState=i.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},i.queue=e,e=e.dispatch=Uv.bind(null,je,e),[i.memoizedState,e]},useRef:function(e){var t=Yt();return e={current:e},t.memoizedState=e},useState:function(e){e=hu(e);var t=e.queue,a=__.bind(null,je,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:vu,useDeferredValue:function(e,t){var a=Yt();return bu(a,e,t)},useTransition:function(){var e=hu(!1);return e=o_.bind(null,je,e.queue,!0,!1),Yt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=je,u=Yt();if(Re){if(a===void 0)throw Error(r(407));a=a()}else{if(a=t(),Pe===null)throw Error(r(349));(Te&127)!==0||Lm(i,t,a)}u.memoizedState=a;var d={value:a,getSnapshot:t};return u.queue=d,e_(Um.bind(null,i,d,e),[e]),i.flags|=2048,Ai(9,{destroy:void 0},Bm.bind(null,i,d,a,t),null),a},useId:function(){var e=Yt(),t=Pe.identifierPrefix;if(Re){var a=Jn,i=Zn;a=(i&~(1<<32-We(i)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Zr++,0<\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof i.is=="string"?h.createElement("select",{is:i.is}):h.createElement("select"),i.multiple?d.multiple=!0:i.size&&(d.size=i.size);break;default:d=typeof i.is=="string"?h.createElement(u,{is:i.is}):h.createElement(u)}}d[ut]=t,d[ue]=i;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)d.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=d;e:switch(Tt(d,u,i),u){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&ga(t)}}return at(t),qu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&ga(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(r(166));if(e=Se.current,gi(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,u=Et,u!==null)switch(u.tag){case 27:case 5:i=u.memoizedProps}e[ut]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||Op(e.nodeValue,a)),e||Ga(t,!0)}else e=Sc(e).createTextNode(i),e[ut]=t,t.stateNode=e}return at(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(i=gi(t),a!==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[ut]=t}else Dl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;at(t),e=!1}else a=Vo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(sn(t),t):(sn(t),null);if((t.flags&128)!==0)throw Error(r(558))}return at(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=gi(t),i!==null&&i.dehydrated!==null){if(e===null){if(!u)throw Error(r(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[ut]=t}else Dl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;at(t),u=!1}else u=Vo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(sn(t),t):(sn(t),null)}return sn(t),(t.flags&128)!==0?(t.lanes=a,t):(a=i!==null,e=e!==null&&e.memoizedState!==null,a&&(i=t.child,u=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(u=i.alternate.memoizedState.cachePool.pool),d=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(d=i.memoizedState.cachePool.pool),d!==u&&(i.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),sc(t,t.updateQueue),at(t),null);case 4:return Oe(),e===null&&id(t.stateNode.containerInfo),at(t),null;case 10:return ma(t.type),at(t),null;case 19:if(Y(dt),i=t.memoizedState,i===null)return at(t),null;if(u=(t.flags&128)!==0,d=i.rendering,d===null)if(u)zs(i,!1);else{if(ct!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Vr(e),d!==null){for(t.flags|=128,zs(i,!1),e=d.updateQueue,t.updateQueue=e,sc(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)_m(a,e),a=a.sibling;return ee(dt,dt.current&1|2),Re&&da(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Mt()>dc&&(t.flags|=128,u=!0,zs(i,!1),t.lanes=4194304)}else{if(!u)if(e=Vr(d),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,sc(t,e),zs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!d.alternate&&!Re)return at(t),null}else 2*Mt()-i.renderingStartTime>dc&&a!==536870912&&(t.flags|=128,u=!0,zs(i,!1),t.lanes=4194304);i.isBackwards?(d.sibling=t.child,t.child=d):(e=i.last,e!==null?e.sibling=d:t.child=d,i.last=d)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Mt(),e.sibling=null,a=dt.current,ee(dt,u?a&1|2:a&1),Re&&da(t,i.treeForkCount),e):(at(t),null);case 22:case 23:return sn(t),su(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(a&536870912)!==0&&(t.flags&128)===0&&(at(t),t.subtreeFlags&6&&(t.flags|=8192)):at(t),a=t.updateQueue,a!==null&&sc(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==a&&(t.flags|=2048),e!==null&&Y(Ml),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ma(pt),at(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Kv(e,t){switch(Ko(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ma(pt),Oe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Rt(t),null;case 31:if(t.memoizedState!==null){if(sn(t),t.alternate===null)throw Error(r(340));Dl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(sn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Dl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(dt),null;case 4:return Oe(),null;case 10:return ma(t.type),null;case 22:case 23:return sn(t),su(),e!==null&&Y(Ml),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ma(pt),null;case 25:return null;default:return null}}function H_(e,t){switch(Ko(t),t.tag){case 3:ma(pt),Oe();break;case 26:case 27:case 5:Rt(t);break;case 4:Oe();break;case 31:t.memoizedState!==null&&sn(t);break;case 13:sn(t);break;case 19:Y(dt);break;case 10:ma(t.type);break;case 22:case 23:sn(t),su(),e!==null&&Y(Ml);break;case 24:ma(pt)}}function Os(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var u=i.next;a=u;do{if((a.tag&e)===e){i=void 0;var d=a.create,h=a.inst;i=d(),h.destroy=i}a=a.next}while(a!==u)}}catch(b){Ke(t,t.return,b)}}function Za(e,t,a){try{var i=t.updateQueue,u=i!==null?i.lastEffect:null;if(u!==null){var d=u.next;i=d;do{if((i.tag&e)===e){var h=i.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,u=t;var w=a,O=b;try{O()}catch(B){Ke(u,w,B)}}}i=i.next}while(i!==d)}}catch(B){Ke(t,t.return,B)}}function G_(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Rm(t,a)}catch(i){Ke(e,e.return,i)}}}function Y_(e,t,a){a.props=Bl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){Ke(e,t,i)}}function qs(e,t){try{var a=e.ref;if(a!==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 a=="function"?e.refCleanup=a(i):a.current=i}}catch(u){Ke(e,t,u)}}function Fn(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(u){Ke(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){Ke(e,t,u)}else a.current=null}function I_(e){var t=e.type,a=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(u){Ke(e,e.return,u)}}function Lu(e,t,a){try{var i=e.stateNode;mb(i,e.type,a,t),i[ue]=t}catch(u){Ke(e,e.return,u)}}function K_(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&nl(e.type)||e.tag===4}function Bu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||K_(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&&nl(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,a){var i=e.tag;if(i===5||i===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=Dn));else if(i!==4&&(i===27&&nl(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Uu(e,t,a),e=e.sibling;e!==null;)Uu(e,t,a),e=e.sibling}function rc(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(i!==4&&(i===27&&nl(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(rc(e,t,a),e=e.sibling;e!==null;)rc(e,t,a),e=e.sibling}function Q_(e){var t=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);Tt(t,i,a),t[ut]=e,t[ue]=a}catch(d){Ke(e,e.return,d)}}var ya=!1,yt=!1,Hu=!1,V_=typeof WeakSet=="function"?WeakSet:Set,jt=null;function Qv(e,t){if(e=e.containerInfo,cd=Cc,e=im(e),Mo(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var u=i.anchorOffset,d=i.focusNode;i=i.focusOffset;try{a.nodeType,d.nodeType}catch{a=null;break e}var h=0,b=-1,w=-1,O=0,B=0,I=e,q=null;t:for(;;){for(var L;I!==a||u!==0&&I.nodeType!==3||(b=h+u),I!==d||i!==0&&I.nodeType!==3||(w=h+i),I.nodeType===3&&(h+=I.nodeValue.length),(L=I.firstChild)!==null;)q=I,I=L;for(;;){if(I===e)break t;if(q===a&&++O===u&&(b=h),q===d&&++B===i&&(w=h),(L=I.nextSibling)!==null)break;I=q,q=I.parentNode}I=L}a=b===-1||w===-1?null:{start:b,end:w}}else a=null}a=a||{start:0,end:0}}else a=null;for(od={focusedElem:e,selectionRange:a},Cc=!1,jt=t;jt!==null;)if(t=jt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,jt=e;else for(;jt!==null;){switch(t=jt,d=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"))),Tt(d,i,a),d[ut]=e,_t(d),i=d;break e;case"link":var h=Pp("link","href",u).get(i+(a.href||""));if(h){for(var b=0;bJe&&(h=Je,Je=ge,ge=h);var N=am(b,ge),C=am(b,Je);if(N&&C&&(L.rangeCount!==1||L.anchorNode!==N.node||L.anchorOffset!==N.offset||L.focusNode!==C.node||L.focusOffset!==C.offset)){var z=I.createRange();z.setStart(N.node,N.offset),L.removeAllRanges(),ge>Je?(L.addRange(z),L.extend(C.node,C.offset)):(z.setEnd(C.node,C.offset),L.addRange(z))}}}}for(I=[],L=b;L=L.parentNode;)L.nodeType===1&&I.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;ba?32:a,$.T=null,a=Xu,Xu=null;var d=Pa,h=ka;if(kt=0,Di=Pa=null,ka=0,(Ye&6)!==0)throw Error(r(331));var b=Ye;if(Ye|=4,lp(d.current),tp(d,d.current,h,a),Ye=b,Ys(0,!1),St&&typeof St.onPostCommitFiberRoot=="function")try{St.onPostCommitFiberRoot(tn,d)}catch{}return!0}finally{K.p=u,$.T=i,xp(e,t)}}function jp(e,t,a){t=yn(a,t),t=Eu(e.stateNode,t,2),e=Qa(e,t,2),e!==null&&(aa(e,2),Wn(e))}function Ke(e,t,a){if(e.tag===3)jp(e,e,a);else for(;t!==null;){if(t.tag===3){jp(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Wa===null||!Wa.has(i))){e=yn(a,e),a=w_(2),i=Qa(t,a,2),i!==null&&(A_(a,i,t,e),aa(i,2),Wn(i));break}}t=t.return}}function Wu(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new Zv;var u=new Set;i.set(t,u)}else u=i.get(t),u===void 0&&(u=new Set,i.set(t,u));u.has(a)||(Iu=!0,u.add(a),e=eb.bind(null,e,t,a),t.then(e,e))}function eb(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Pe===e&&(Te&a)===a&&(ct===4||ct===3&&(Te&62914560)===Te&&300>Mt()-uc?(Ye&2)===0&&Ri(e,0):Ku|=a,Ti===Te&&(Ti=0)),Wn(e)}function wp(e,t){t===0&&(t=Qe()),e=Nl(e,t),e!==null&&(aa(e,t),Wn(e))}function tb(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),wp(e,a)}function nb(e,t){var a=0;switch(e.tag){case 31:case 13:var i=e.stateNode,u=e.memoizedState;u!==null&&(a=u.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),wp(e,a)}function ab(e,t){return gl(e,t)}var gc=null,Mi=null,Pu=!1,yc=!1,ed=!1,tl=0;function Wn(e){e!==Mi&&e.next===null&&(Mi===null?gc=Mi=e:Mi=Mi.next=e),yc=!0,Pu||(Pu=!0,ib())}function Ys(e,t){if(!ed&&yc){ed=!0;do for(var a=!1,i=gc;i!==null;){if(e!==0){var u=i.pendingLanes;if(u===0)var d=0;else{var h=i.suspendedLanes,b=i.pingedLanes;d=(1<<31-We(42|e)+1)-1,d&=u&~(h&~b),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(a=!0,Np(i,d))}else d=Te,d=ni(i,i===Pe?d:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(d&3)===0||yl(i,d)||(a=!0,Np(i,d));i=i.next}while(a);ed=!1}}function lb(){Ap()}function Ap(){yc=Pu=!1;var e=0;tl!==0&&pb()&&(e=tl);for(var t=Mt(),a=null,i=gc;i!==null;){var u=i.next,d=Ep(i,t);d===0?(i.next=null,a===null?gc=u:a.next=u,u===null&&(Mi=a)):(a=i,(e!==0||(d&3)!==0)&&(yc=!0)),i=u}kt!==0&&kt!==5||Ys(e),tl!==0&&(tl=0)}function Ep(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,u=e.expirationTimes,d=e.pendingLanes&-62914561;0b)break;var B=w.transferSize,I=w.initiatorType;B&&qp(I)&&(w=w.responseEnd,h+=B*(w"u"?null:document;function Zp(e,t,a){var i=zi;if(i&&typeof t=="string"&&t){var u=Qt(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),Xp.has(u)||(Xp.add(u),e={rel:e,crossOrigin:a,href:t},i.querySelector(u)===null&&(t=i.createElement("link"),Tt(t,"link",e),_t(t),i.head.appendChild(t)))}}function jb(e){ja.D(e),Zp("dns-prefetch",e,null)}function wb(e,t){ja.C(e,t),Zp("preconnect",e,t)}function Ab(e,t,a){ja.L(e,t,a);var i=zi;if(i&&e&&t){var u='link[rel="preload"][as="'+Qt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+Qt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+Qt(a.imageSizes)+'"]')):u+='[href="'+Qt(e)+'"]';var d=u;switch(t){case"style":d=Oi(e);break;case"script":d=qi(e)}jn.has(d)||(e=x({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),jn.set(d,e),i.querySelector(u)!==null||t==="style"&&i.querySelector(Vs(d))||t==="script"&&i.querySelector(Xs(d))||(t=i.createElement("link"),Tt(t,"link",e),_t(t),i.head.appendChild(t)))}}function Eb(e,t){ja.m(e,t);var a=zi;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+Qt(i)+'"][href="'+Qt(e)+'"]',d=u;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=qi(e)}if(!jn.has(d)&&(e=x({rel:"modulepreload",href:e},t),jn.set(d,e),a.querySelector(u)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Xs(d)))return}i=a.createElement("link"),Tt(i,"link",e),_t(i),a.head.appendChild(i)}}}function Cb(e,t,a){ja.S(e,t,a);var i=zi;if(i&&e){var u=za(i).hoistableStyles,d=Oi(e);t=t||"default";var h=u.get(d);if(!h){var b={loading:0,preload:null};if(h=i.querySelector(Vs(d)))b.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},a),(a=jn.get(d))&&hd(e,a);var w=h=i.createElement("link");_t(w),Tt(w,"link",e),w._p=new Promise(function(O,B){w.onload=O,w.onerror=B}),w.addEventListener("load",function(){b.loading|=1}),w.addEventListener("error",function(){b.loading|=2}),b.loading|=4,kc(h,t,i)}h={type:"stylesheet",instance:h,count:1,state:b},u.set(d,h)}}}function Nb(e,t){ja.X(e,t);var a=zi;if(a&&e){var i=za(a).hoistableScripts,u=qi(e),d=i.get(u);d||(d=a.querySelector(Xs(u)),d||(e=x({src:e,async:!0},t),(t=jn.get(u))&&gd(e,t),d=a.createElement("script"),_t(d),Tt(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(u,d))}}function Tb(e,t){ja.M(e,t);var a=zi;if(a&&e){var i=za(a).hoistableScripts,u=qi(e),d=i.get(u);d||(d=a.querySelector(Xs(u)),d||(e=x({src:e,async:!0,type:"module"},t),(t=jn.get(u))&&gd(e,t),d=a.createElement("script"),_t(d),Tt(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(u,d))}}function Jp(e,t,a,i){var u=(u=Se.current)?xc(u):null;if(!u)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Oi(a.href),a=za(u).hoistableStyles,i=a.get(t),i||(i={type:"style",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Oi(a.href);var d=za(u).hoistableStyles,h=d.get(e);if(h||(u=u.ownerDocument||u,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,h),(d=u.querySelector(Vs(e)))&&!d._p&&(h.instance=d,h.state.loading=5),jn.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},jn.set(e,a),d||Db(u,e,a,h.state))),t&&i===null)throw Error(r(528,""));return h}if(t&&i!==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=qi(a),a=za(u).hoistableScripts,i=a.get(t),i||(i={type:"script",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Oi(e){return'href="'+Qt(e)+'"'}function Vs(e){return'link[rel="stylesheet"]['+e+"]"}function Fp(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function Db(e,t,a,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}),Tt(t,"link",a),_t(t),e.head.appendChild(t))}function qi(e){return'[src="'+Qt(e)+'"]'}function Xs(e){return"script[async]"+e}function Wp(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Qt(a.href)+'"]');if(i)return t.instance=i,_t(i),i;var u=x({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),_t(i),Tt(i,"style",u),kc(i,a.precedence,e),t.instance=i;case"stylesheet":u=Oi(a.href);var d=e.querySelector(Vs(u));if(d)return t.state.loading|=4,t.instance=d,_t(d),d;i=Fp(a),(u=jn.get(u))&&hd(i,u),d=(e.ownerDocument||e).createElement("link"),_t(d);var h=d;return h._p=new Promise(function(b,w){h.onload=b,h.onerror=w}),Tt(d,"link",i),t.state.loading|=4,kc(d,a.precedence,e),t.instance=d;case"script":return d=qi(a.src),(u=e.querySelector(Xs(d)))?(t.instance=u,_t(u),u):(i=a,(u=jn.get(d))&&(i=x({},a),gd(i,u)),e=e.ownerDocument||e,u=e.createElement("script"),_t(u),Tt(u,"link",i),e.head.appendChild(u),t.instance=u);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,kc(i,a.precedence,e));return t.instance}function kc(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=i.length?i[i.length-1]:null,d=u,h=0;h title"):null)}function Rb(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 th(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function $b(e,t,a,i){if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=Oi(i.href),d=t.querySelector(Vs(u));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=wc.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=d,_t(d);return}d=t.ownerDocument||t,i=Fp(i),(u=jn.get(u))&&hd(i,u),d=d.createElement("link"),_t(d);var h=d;h._p=new Promise(function(b,w){h.onload=b,h.onerror=w}),Tt(d,"link",i),a.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=wc.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var yd=0;function Mb(e,t){return e.stylesheets&&e.count===0&&Ec(e,e.stylesheets),0yd?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(u)}}:null}function wc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ec(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ac=null;function Ec(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ac=new Map,t.forEach(zb,e),Ac=null,wc.call(e))}function zb(e,t){if(!(t.state.loading&4)){var a=Ac.get(e);if(a)var i=a.get(null);else{a=new Map,Ac.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),Ed.exports=Pb(),Ed.exports}var t0=e0();/** * react-router v7.17.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 wh="popstate";function Ah(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function n0(n={}){function l(o,f){let{pathname:_="/",search:y="",hash:p=""}=Xl(o.location.hash.substring(1));return!_.startsWith("/")&&!_.startsWith(".")&&(_="/"+_),Vd("",{pathname:_,search:y,hash:p},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function s(o,f){let _=o.document.querySelector("base"),y="";if(_&&_.getAttribute("href")){let p=o.location.href,g=p.indexOf("#");y=g===-1?p:p.slice(0,g)}return y+"#"+(typeof f=="string"?f:fr(f))}function r(o,f){wn(o.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(f)})`)}return l0(l,s,r,n)}function it(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function wn(n,l){if(!n){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function a0(){return Math.random().toString(36).substring(2,10)}function Eh(n,l){return{usr:n.state,key:n.key,idx:l,masked:n.mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function Vd(n,l,s=null,r,o){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof l=="string"?Xl(l):l,state:s,key:l&&l.key||r||a0(),mask:o}}function fr({pathname:n="/",search:l="",hash:s=""}){return l&&l!=="?"&&(n+=l.charAt(0)==="?"?l:"?"+l),s&&s!=="#"&&(n+=s.charAt(0)==="#"?s:"#"+s),n}function Xl(n){let l={};if(n){let s=n.indexOf("#");s>=0&&(l.hash=n.substring(s),n=n.substring(0,s));let r=n.indexOf("?");r>=0&&(l.search=n.substring(r),n=n.substring(0,r)),n&&(l.pathname=n)}return l}function l0(n,l,s,r={}){let{window:o=document.defaultView,v5Compat:f=!1}=r,_=o.history,y="POP",p=null,g=S();g==null&&(g=0,_.replaceState({..._.state,idx:g},""));function S(){return(_.state||{idx:null}).idx}function x(){y="POP";let T=S(),M=T==null?null:T-g;g=T,p&&p({action:y,location:D.location,delta:M})}function j(T,M){y="PUSH";let Z=Ah(T)?T:Vd(D.location,T,M);s&&s(Z,T),g=S()+1;let Q=Eh(Z,g),ae=D.createHref(Z.mask||Z);try{_.pushState(Q,"",ae)}catch(re){if(re instanceof DOMException&&re.name==="DataCloneError")throw re;o.location.assign(ae)}f&&p&&p({action:y,location:D.location,delta:1})}function R(T,M){y="REPLACE";let Z=Ah(T)?T:Vd(D.location,T,M);s&&s(Z,T),g=S();let Q=Eh(Z,g),ae=D.createHref(Z.mask||Z);_.replaceState(Q,"",ae),f&&p&&p({action:y,location:D.location,delta:0})}function A(T){return i0(o,T)}let D={get action(){return y},get location(){return n(o,_)},listen(T){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(wh,x),p=T,()=>{o.removeEventListener(wh,x),p=null}},createHref(T){return l(o,T)},createURL:A,encodeLocation(T){let M=A(T);return{pathname:M.pathname,search:M.search,hash:M.hash}},push:j,replace:R,go(T){return _.go(T)}};return D}function i0(n,l,s=!1){let r="http://localhost";n&&(r=n.location.origin!=="null"?n.location.origin:n.location.href),it(r,"No window.location.(origin|href) available to create URL");let o=typeof l=="string"?l:fr(l);return o=o.replace(/ $/,"%20"),!s&&o.startsWith("//")&&(o=r+o),new URL(o,r)}function xg(n,l,s="/"){return s0(n,l,s,!1)}function s0(n,l,s,r,o){let f=typeof l=="string"?Xl(l):l,_=Aa(f.pathname||"/",s);if(_==null)return null;let y=r0(n),p=null,g=v0(_);for(let S=0;p==null&&S{let S={relativePath:g===void 0?_.path||"":g,caseSensitive:_.caseSensitive===!0,childrenIndex:y,route:_};if(S.relativePath.startsWith("/")){if(!S.relativePath.startsWith(r)&&p)return;it(S.relativePath.startsWith(r),`Absolute route path "${S.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),S.relativePath=S.relativePath.slice(r.length)}let x=Ln([r,S.relativePath]),j=s.concat(S);_.children&&_.children.length>0&&(it(_.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),kg(_.children,l,j,x,p)),!(_.path==null&&!_.index)&&l.push({path:x,score:p0(x,_.index),routesMeta:j})};return n.forEach((_,y)=>{var p;if(_.path===""||!((p=_.path)!=null&&p.includes("?")))f(_,y);else for(let g of jg(_.path))f(_,y,!0,g)}),l}function jg(n){let l=n.split("/");if(l.length===0)return[];let[s,...r]=l,o=s.endsWith("?"),f=s.replace(/\?$/,"");if(r.length===0)return o?[f,""]:[f];let _=jg(r.join("/")),y=[];return y.push(..._.map(p=>p===""?f:[f,p].join("/"))),o&&y.push(..._),y.map(p=>n.startsWith("/")&&p===""?"/":p)}function c0(n){n.sort((l,s)=>l.score!==s.score?s.score-l.score:h0(l.routesMeta.map(r=>r.childrenIndex),s.routesMeta.map(r=>r.childrenIndex)))}var o0=/^:[\w-]+$/,u0=3,d0=2,f0=1,m0=10,_0=-2,Ch=n=>n==="*";function p0(n,l){let s=n.split("/"),r=s.length;return s.some(Ch)&&(r+=_0),l&&(r+=d0),s.filter(o=>!Ch(o)).reduce((o,f)=>o+(o0.test(f)?u0:f===""?f0:m0),r)}function h0(n,l){return n.length===l.length&&n.slice(0,-1).every((r,o)=>r===l[o])?n[n.length-1]-l[l.length-1]:0}function g0(n,l,s=!1){let{routesMeta:r}=n,o={},f="/",_=[];for(let y=0;y{if(S==="*"){let A=y[j]||"";_=f.slice(0,f.length-A.length).replace(/(.)\/+$/,"$1")}const R=y[j];return x&&!R?g[S]=void 0:g[S]=(R||"").replace(/%2F/g,"/"),g},{}),pathname:f,pathnameBase:_,pattern:n}}function y0(n,l=!1,s=!0){wn(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let r=[],o="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(_,y,p,g,S)=>{if(r.push({paramName:y,isOptional:p!=null}),p){let x=S.charAt(g+_.length);return x&&x!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(r.push({paramName:"*"}),o+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?o+="\\/*$":n!==""&&n!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,l?void 0:"i"),r]}function v0(n){try{return n.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return wn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),n}}function Aa(n,l){if(l==="/")return n;if(!n.toLowerCase().startsWith(l.toLowerCase()))return null;let s=l.endsWith("/")?l.length-1:l.length,r=n.charAt(s);return r&&r!=="/"?null:n.slice(s)||"/"}var b0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function S0(n,l="/"){let{pathname:s,search:r="",hash:o=""}=typeof n=="string"?Xl(n):n,f;return s?(s=wg(s),s.startsWith("/")?f=Nh(s.substring(1),"/"):f=Nh(s,l)):f=l,{pathname:f,search:j0(r),hash:w0(o)}}function Nh(n,l){let s=Xc(l).split("/");return n.split("/").forEach(o=>{o===".."?s.length>1&&s.pop():o!=="."&&s.push(o)}),s.length>1?s.join("/"):"/"}function Dd(n,l,s,r){return`Cannot include a '${n}' character in a manually specified \`to.${l}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function x0(n){return n.filter((l,s)=>s===0||l.route.path&&l.route.path.length>0)}function mf(n){let l=x0(n);return l.map((s,r)=>r===l.length-1?s.pathname:s.pathnameBase)}function lo(n,l,s,r=!1){let o;typeof n=="string"?o=Xl(n):(o={...n},it(!o.pathname||!o.pathname.includes("?"),Dd("?","pathname","search",o)),it(!o.pathname||!o.pathname.includes("#"),Dd("#","pathname","hash",o)),it(!o.search||!o.search.includes("#"),Dd("#","search","hash",o)));let f=n===""||o.pathname==="",_=f?"/":o.pathname,y;if(_==null)y=s;else{let x=l.length-1;if(!r&&_.startsWith("..")){let j=_.split("/");for(;j[0]==="..";)j.shift(),x-=1;o.pathname=j.join("/")}y=x>=0?l[x]:"/"}let p=S0(o,y),g=_&&_!=="/"&&_.endsWith("/"),S=(f||_===".")&&s.endsWith("/");return!p.pathname.endsWith("/")&&(g||S)&&(p.pathname+="/"),p}var wg=n=>n.replace(/\/\/+/g,"/"),Ln=n=>wg(n.join("/")),Xc=n=>n.replace(/\/+$/,""),k0=n=>Xc(n).replace(/^\/*/,"/"),j0=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,w0=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,A0=class{constructor(n,l,s,r=!1){this.status=n,this.statusText=l||"",this.internal=r,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function E0(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function C0(n){let l=n.map(s=>s.route.path).filter(Boolean);return Ln(l)||"/"}var Ag=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Eg(n,l){let s=n;if(typeof s!="string"||!b0.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let r=s,o=!1;if(Ag)try{let f=new URL(window.location.href),_=s.startsWith("//")?new URL(f.protocol+s):new URL(s),y=Aa(_.pathname,l);_.origin===f.origin&&y!=null?s=y+_.search+_.hash:o=!0}catch{wn(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Cg=["POST","PUT","PATCH","DELETE"];new Set(Cg);var N0=["GET",...Cg];new Set(N0);var Vi=k.createContext(null);Vi.displayName="DataRouter";var io=k.createContext(null);io.displayName="DataRouterState";var Ng=k.createContext(!1);function T0(){return k.useContext(Ng)}var Tg=k.createContext({isTransitioning:!1});Tg.displayName="ViewTransition";var D0=k.createContext(new Map);D0.displayName="Fetchers";var R0=k.createContext(null);R0.displayName="Await";var fn=k.createContext(null);fn.displayName="Navigation";var hr=k.createContext(null);hr.displayName="Location";var ta=k.createContext({outlet:null,matches:[],isDataRoute:!1});ta.displayName="Route";var _f=k.createContext(null);_f.displayName="RouteError";var Dg="REACT_ROUTER_ERROR",$0="REDIRECT",M0="ROUTE_ERROR_RESPONSE";function z0(n){if(n.startsWith(`${Dg}:${$0}:{`))try{let l=JSON.parse(n.slice(28));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.location=="string"&&typeof l.reloadDocument=="boolean"&&typeof l.replace=="boolean")return l}catch{}}function O0(n){if(n.startsWith(`${Dg}:${M0}:{`))try{let l=JSON.parse(n.slice(40));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string")return new A0(l.status,l.statusText,l.data)}catch{}}function q0(n,{relative:l}={}){it(Xi(),"useHref() may be used only in the context of a component.");let{basename:s,navigator:r}=k.useContext(fn),{hash:o,pathname:f,search:_}=gr(n,{relative:l}),y=f;return s!=="/"&&(y=f==="/"?s:Ln([s,f])),r.createHref({pathname:y,search:_,hash:o})}function Xi(){return k.useContext(hr)!=null}function Un(){return it(Xi(),"useLocation() may be used only in the context of a component."),k.useContext(hr).location}var Rg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function $g(n){k.useContext(fn).static||k.useLayoutEffect(n)}function pf(){let{isDataRoute:n}=k.useContext(ta);return n?J0():L0()}function L0(){it(Xi(),"useNavigate() may be used only in the context of a component.");let n=k.useContext(Vi),{basename:l,navigator:s}=k.useContext(fn),{matches:r}=k.useContext(ta),{pathname:o}=Un(),f=JSON.stringify(mf(r)),_=k.useRef(!1);return $g(()=>{_.current=!0}),k.useCallback((p,g={})=>{if(wn(_.current,Rg),!_.current)return;if(typeof p=="number"){s.go(p);return}let S=lo(p,JSON.parse(f),o,g.relative==="path");n==null&&l!=="/"&&(S.pathname=S.pathname==="/"?l:Ln([l,S.pathname])),(g.replace?s.replace:s.push)(S,g.state,g)},[l,s,f,o,n])}k.createContext(null);function gr(n,{relative:l}={}){let{matches:s}=k.useContext(ta),{pathname:r}=Un(),o=JSON.stringify(mf(s));return k.useMemo(()=>lo(n,JSON.parse(o),r,l==="path"),[n,o,r,l])}function B0(n,l){return Mg(n,l)}function Mg(n,l,s){var T;it(Xi(),"useRoutes() may be used only in the context of a component.");let{navigator:r}=k.useContext(fn),{matches:o}=k.useContext(ta),f=o[o.length-1],_=f?f.params:{},y=f?f.pathname:"/",p=f?f.pathnameBase:"/",g=f&&f.route;{let M=g&&g.path||"";Og(y,!g||M.endsWith("*")||M.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${y}" (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 S=Un(),x;if(l){let M=typeof l=="string"?Xl(l):l;it(p==="/"||((T=M.pathname)==null?void 0:T.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 "${M.pathname}" was given in the \`location\` prop.`),x=M}else x=S;let j=x.pathname||"/",R=j;if(p!=="/"){let M=p.replace(/^\//,"").split("/");R="/"+j.replace(/^\//,"").split("/").slice(M.length).join("/")}let A=s&&s.state.matches.length?s.state.matches.map(M=>Object.assign(M,{route:s.manifest[M.route.id]||M.route})):xg(n,{pathname:R});wn(g||A!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),wn(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.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 D=I0(A&&A.map(M=>Object.assign({},M,{params:Object.assign({},_,M.params),pathname:Ln([p,r.encodeLocation?r.encodeLocation(M.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?p:Ln([p,r.encodeLocation?r.encodeLocation(M.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathnameBase])})),o,s);return l&&D?k.createElement(hr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...x},navigationType:"POP"}},D):D}function U0(){let n=Z0(),l=E0(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),s=n instanceof Error?n.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},f={padding:"2px 4px",backgroundColor:r},_=null;return console.error("Error handled by React Router default ErrorBoundary:",n),_=k.createElement(k.Fragment,null,k.createElement("p",null,"💿 Hey developer 👋"),k.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",k.createElement("code",{style:f},"ErrorBoundary")," or"," ",k.createElement("code",{style:f},"errorElement")," prop on your route.")),k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},l),s?k.createElement("pre",{style:o},s):null,_)}var H0=k.createElement(U0,null),zg=class extends k.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,l){return l.location!==n.location||l.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:l.error,location:l.location,revalidation:n.revalidation||l.revalidation}}componentDidCatch(n,l){this.props.onError?this.props.onError(n,l):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const s=O0(n.digest);s&&(n=s)}let l=n!==void 0?k.createElement(ta.Provider,{value:this.props.routeContext},k.createElement(_f.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?k.createElement(G0,{error:n},l):l}};zg.contextType=Ng;var Rd=new WeakMap;function G0({children:n,error:l}){let{basename:s}=k.useContext(fn);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let r=z0(l.digest);if(r){let o=Rd.get(l);if(o)throw o;let f=Eg(r.location,s);if(Ag&&!Rd.get(l))if(f.isExternal||r.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const _=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:r.replace}));throw Rd.set(l,_),_}return k.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return n}function Y0({routeContext:n,match:l,children:s}){let r=k.useContext(Vi);return r&&r.static&&r.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=l.route.id),k.createElement(ta.Provider,{value:n},s)}function I0(n,l=[],s){let r=s==null?void 0:s.state;if(n==null){if(!r)return null;if(r.errors)n=r.matches;else if(l.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let o=n,f=r==null?void 0:r.errors;if(f!=null){let S=o.findIndex(x=>x.route.id&&(f==null?void 0:f[x.route.id])!==void 0);it(S>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),o=o.slice(0,Math.min(o.length,S+1))}let _=!1,y=-1;if(s&&r){_=r.renderFallback;for(let S=0;S=0?o=o.slice(0,y+1):o=[o[0]];break}}}}let p=s==null?void 0:s.onError,g=r&&p?(S,x)=>{var j,R;p(S,{location:r.location,params:((R=(j=r.matches)==null?void 0:j[0])==null?void 0:R.params)??{},pattern:C0(r.matches),errorInfo:x})}:void 0;return o.reduceRight((S,x,j)=>{let R,A=!1,D=null,T=null;r&&(R=f&&x.route.id?f[x.route.id]:void 0,D=x.route.errorElement||H0,_&&(y<0&&j===0?(Og("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),A=!0,T=null):y===j&&(A=!0,T=x.route.hydrateFallbackElement||null)));let M=l.concat(o.slice(0,j+1)),Z=()=>{let Q;return R?Q=D:A?Q=T:x.route.Component?Q=k.createElement(x.route.Component,null):x.route.element?Q=x.route.element:Q=S,k.createElement(Y0,{match:x,routeContext:{outlet:S,matches:M,isDataRoute:r!=null},children:Q})};return r&&(x.route.ErrorBoundary||x.route.errorElement||j===0)?k.createElement(zg,{location:r.location,revalidation:r.revalidation,component:D,error:R,children:Z(),routeContext:{outlet:null,matches:M,isDataRoute:!0},onError:g}):Z()},null)}function hf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function K0(n){let l=k.useContext(Vi);return it(l,hf(n)),l}function Q0(n){let l=k.useContext(io);return it(l,hf(n)),l}function V0(n){let l=k.useContext(ta);return it(l,hf(n)),l}function gf(n){let l=V0(n),s=l.matches[l.matches.length-1];return it(s.route.id,`${n} can only be used on routes that contain a unique "id"`),s.route.id}function X0(){return gf("useRouteId")}function Z0(){var r;let n=k.useContext(_f),l=Q0("useRouteError"),s=gf("useRouteError");return n!==void 0?n:(r=l.errors)==null?void 0:r[s]}function J0(){let{router:n}=K0("useNavigate"),l=gf("useNavigate"),s=k.useRef(!1);return $g(()=>{s.current=!0}),k.useCallback(async(o,f={})=>{wn(s.current,Rg),s.current&&(typeof o=="number"?await n.navigate(o):await n.navigate(o,{fromRouteId:l,...f}))},[n,l])}var Th={};function Og(n,l,s){!l&&!Th[n]&&(Th[n]=!0,wn(!1,s))}k.memo(F0);function F0({routes:n,manifest:l,future:s,state:r,isStatic:o,onError:f}){return Mg(n,void 0,{manifest:l,state:r,isStatic:o,onError:f})}function W0({to:n,replace:l,state:s,relative:r}){it(Xi()," may be used only in the context of a component.");let{static:o}=k.useContext(fn);wn(!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}=k.useContext(ta),{pathname:_}=Un(),y=pf(),p=lo(n,mf(f),_,r==="path"),g=JSON.stringify(p);return k.useEffect(()=>{y(JSON.parse(g),{replace:l,state:s,relative:r})},[y,g,r,l,s]),null}function Xd(n){it(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function P0({basename:n="/",children:l=null,location:s,navigationType:r="POP",navigator:o,static:f=!1,useTransitions:_}){it(!Xi(),"You cannot render a inside another . You should never have more than one in your app.");let y=n.replace(/^\/*/,"/"),p=k.useMemo(()=>({basename:y,navigator:o,static:f,useTransitions:_,future:{}}),[y,o,f,_]);typeof s=="string"&&(s=Xl(s));let{pathname:g="/",search:S="",hash:x="",state:j=null,key:R="default",mask:A}=s,D=k.useMemo(()=>{let T=Aa(g,y);return T==null?null:{location:{pathname:T,search:S,hash:x,state:j,key:R,mask:A},navigationType:r}},[y,g,S,x,j,R,r,A]);return wn(D!=null,` is not able to match the URL "${g}${S}${x}" because it does not start with the basename, so the won't render anything.`),D==null?null:k.createElement(fn.Provider,{value:p},k.createElement(hr.Provider,{children:l,value:D}))}function eS({children:n,location:l}){return B0(Zd(n),l)}function Zd(n,l=[]){let s=[];return k.Children.forEach(n,(r,o)=>{if(!k.isValidElement(r))return;let f=[...l,o];if(r.type===k.Fragment){s.push.apply(s,Zd(r.props.children,f));return}it(r.type===Xd,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),it(!r.props.index||!r.props.children,"An index route cannot have child routes.");let _={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&&(_.children=Zd(r.props.children,f)),s.push(_)}),s}var Hc="get",Gc="application/x-www-form-urlencoded";function so(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function tS(n){return so(n)&&n.tagName.toLowerCase()==="button"}function nS(n){return so(n)&&n.tagName.toLowerCase()==="form"}function aS(n){return so(n)&&n.tagName.toLowerCase()==="input"}function lS(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function iS(n,l){return n.button===0&&(!l||l==="_self")&&!lS(n)}var zc=null;function sS(){if(zc===null)try{new FormData(document.createElement("form"),0),zc=!1}catch{zc=!0}return zc}var rS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function $d(n){return n!=null&&!rS.has(n)?(wn(!1,`"${n}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Gc}"`),null):n}function cS(n,l){let s,r,o,f,_;if(nS(n)){let y=n.getAttribute("action");r=y?Aa(y,l):null,s=n.getAttribute("method")||Hc,o=$d(n.getAttribute("enctype"))||Gc,f=new FormData(n)}else if(tS(n)||aS(n)&&(n.type==="submit"||n.type==="image")){let y=n.form;if(y==null)throw new Error('Cannot submit a