var TC=Object.defineProperty;var OC=(t,n,r)=>n in t?TC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r;var gb=(t,n,r)=>OC(t,typeof n!="symbol"?n+"":n,r);function kC(t,n){for(var r=0;rs[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const c of i)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&s(u)}).observe(document,{childList:!0,subtree:!0});function r(i){const c={};return i.integrity&&(c.integrity=i.integrity),i.referrerPolicy&&(c.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?c.credentials="include":i.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function s(i){if(i.ep)return;i.ep=!0;const c=r(i);fetch(i.href,c)}})();function N0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var dm={exports:{}},Vi={};/** * @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 yb;function MC(){if(yb)return Vi;yb=1;var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(s,i,c){var u=null;if(c!==void 0&&(u=""+c),i.key!==void 0&&(u=""+i.key),"key"in i){c={};for(var f in i)f!=="key"&&(c[f]=i[f])}else c=i;return i=c.ref,{$$typeof:t,type:s,key:u,ref:i!==void 0?i:null,props:c}}return Vi.Fragment=n,Vi.jsx=r,Vi.jsxs=r,Vi}var vb;function DC(){return vb||(vb=1,dm.exports=MC()),dm.exports}var m=DC(),fm={exports:{}},Ge={};/** * @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 bb;function zC(){if(bb)return Ge;bb=1;var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),w=Symbol.iterator;function C(T){return T===null||typeof T!="object"?null:(T=w&&T[w]||T["@@iterator"],typeof T=="function"?T:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,_={};function R(T,V,L){this.props=T,this.context=V,this.refs=_,this.updater=L||E}R.prototype.isReactComponent={},R.prototype.setState=function(T,V){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,V,"setState")},R.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function k(){}k.prototype=R.prototype;function A(T,V,L){this.props=T,this.context=V,this.refs=_,this.updater=L||E}var D=A.prototype=new k;D.constructor=A,S(D,R.prototype),D.isPureReactComponent=!0;var B=Array.isArray;function I(){}var U={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function me(T,V,L){var K=L.ref;return{$$typeof:t,type:T,key:V,ref:K!==void 0?K:null,props:L}}function fe(T,V){return me(T.type,V,T.props)}function pe(T){return typeof T=="object"&&T!==null&&T.$$typeof===t}function re(T){var V={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(L){return V[L]})}var Y=/\/+/g;function ue(T,V){return typeof T=="object"&&T!==null&&T.key!=null?re(""+T.key):V.toString(36)}function ye(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(I,I):(T.status="pending",T.then(function(V){T.status==="pending"&&(T.status="fulfilled",T.value=V)},function(V){T.status==="pending"&&(T.status="rejected",T.reason=V)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function j(T,V,L,K,W){var le=typeof T;(le==="undefined"||le==="boolean")&&(T=null);var ge=!1;if(T===null)ge=!0;else switch(le){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(T.$$typeof){case t:case n:ge=!0;break;case v:return ge=T._init,j(ge(T._payload),V,L,K,W)}}if(ge)return W=W(T),ge=K===""?"."+ue(T,0):K,B(W)?(L="",ge!=null&&(L=ge.replace(Y,"$&/")+"/"),j(W,V,L,"",function(Ee){return Ee})):W!=null&&(pe(W)&&(W=fe(W,L+(W.key==null||T&&T.key===W.key?"":(""+W.key).replace(Y,"$&/")+"/")+ge)),V.push(W)),1;ge=0;var q=K===""?".":K+":";if(B(T))for(var ae=0;ae>>1,ne=j[se];if(0>>1;sei(L,te))Ki(W,L)?(j[se]=W,j[K]=te,se=K):(j[se]=L,j[V]=te,se=V);else if(Ki(W,te))j[se]=W,j[K]=te,se=K;else break e}}return X}function i(j,X){var te=j.sortIndex-X.sortIndex;return te!==0?te:j.id-X.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var u=Date,f=u.now();t.unstable_now=function(){return u.now()-f}}var g=[],p=[],v=1,y=null,w=3,C=!1,E=!1,S=!1,_=!1,R=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function D(j){for(var X=r(p);X!==null;){if(X.callback===null)s(p);else if(X.startTime<=j)s(p),X.sortIndex=X.expirationTime,n(g,X);else break;X=r(p)}}function B(j){if(S=!1,D(j),!E)if(r(g)!==null)E=!0,I||(I=!0,re());else{var X=r(p);X!==null&&ye(B,X.startTime-j)}}var I=!1,U=-1,$=5,me=-1;function fe(){return _?!0:!(t.unstable_now()-me<$)}function pe(){if(_=!1,I){var j=t.unstable_now();me=j;var X=!0;try{e:{E=!1,S&&(S=!1,k(U),U=-1),C=!0;var te=w;try{t:{for(D(j),y=r(g);y!==null&&!(y.expirationTime>j&&fe());){var se=y.callback;if(typeof se=="function"){y.callback=null,w=y.priorityLevel;var ne=se(y.expirationTime<=j);if(j=t.unstable_now(),typeof ne=="function"){y.callback=ne,D(j),X=!0;break t}y===r(g)&&s(g),D(j)}else s(g);y=r(g)}if(y!==null)X=!0;else{var T=r(p);T!==null&&ye(B,T.startTime-j),X=!1}}break e}finally{y=null,w=te,C=!1}X=void 0}}finally{X?re():I=!1}}}var re;if(typeof A=="function")re=function(){A(pe)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,ue=Y.port2;Y.port1.onmessage=pe,re=function(){ue.postMessage(null)}}else re=function(){R(pe,0)};function ye(j,X){U=R(function(){j(t.unstable_now())},X)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(j){j.callback=null},t.unstable_forceFrameRate=function(j){0>j||125se?(j.sortIndex=te,n(p,j),r(g)===null&&j===r(p)&&(S?(k(U),U=-1):S=!0,ye(B,te-se))):(j.sortIndex=ne,n(g,j),E||C||(E=!0,I||(I=!0,re()))),j},t.unstable_shouldYield=fe,t.unstable_wrapCallback=function(j){var X=w;return function(){var te=w;w=X;try{return j.apply(this,arguments)}finally{w=te}}}})(pm)),pm}var Sb;function UC(){return Sb||(Sb=1,hm.exports=LC()),hm.exports}var gm={exports:{}},mn={};/** * @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 Eb;function BC(){if(Eb)return mn;Eb=1;var t=Nh();function n(g){var p="https://react.dev/errors/"+g;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}return t(),gm.exports=BC(),gm.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 Cb;function PC(){if(Cb)return Ii;Cb=1;var t=UC(),n=Nh(),r=R0();function s(e){var a="https://react.dev/errors/"+e;if(1ne||(e.current=se[ne],se[ne]=null,ne--)}function L(e,a){ne++,se[ne]=e.current,e.current=a}var K=T(null),W=T(null),le=T(null),ge=T(null);function q(e,a){switch(L(le,a),L(W,e),L(K,null),a.nodeType){case 9:case 11:e=(e=a.documentElement)&&(e=e.namespaceURI)?Pv(e):0;break;default:if(e=a.tagName,a=a.namespaceURI)a=Pv(a),e=Hv(a,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(K),L(K,e)}function ae(){V(K),V(W),V(le)}function Ee(e){e.memoizedState!==null&&L(ge,e);var a=K.current,o=Hv(a,e.type);a!==o&&(L(W,e),L(K,o))}function Oe(e){W.current===e&&(V(K),V(W)),ge.current===e&&(V(ge),Ui._currentValue=te)}var ce,_e;function be(e){if(ce===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);ce=a&&a[1]||"",_e=-1)":-1d||M[l]!==Z[d]){var ie=` `+M[l].replace(" at new "," at ");return e.displayName&&ie.includes("")&&(ie=ie.replace("",e.displayName)),ie}while(1<=l&&0<=d);break}}}finally{Re=!1,Error.prepareStackTrace=o}return(o=e?e.displayName||e.name:"")?be(o):""}function qe(e,a){switch(e.tag){case 26:case 27:case 5:return be(e.type);case 16:return be("Lazy");case 13:return e.child!==a&&a!==null?be("Suspense Fallback"):be("Suspense");case 19:return be("SuspenseList");case 0:case 15:return Pe(e.type,!1);case 11:return Pe(e.type.render,!1);case 1:return Pe(e.type,!0);case 31:return be("Activity");default:return""}}function Ue(e){try{var a="",o=null;do a+=qe(e,o),o=e,e=e.return;while(e);return a}catch(l){return` Error generating stack: `+l.message+` `+l.stack}}var Le=Object.prototype.hasOwnProperty,pt=t.unstable_scheduleCallback,Zt=t.unstable_cancelCallback,O=t.unstable_shouldYield,P=t.unstable_requestPaint,F=t.unstable_now,Se=t.unstable_getCurrentPriorityLevel,ve=t.unstable_ImmediatePriority,xe=t.unstable_UserBlockingPriority,Ce=t.unstable_NormalPriority,Ve=t.unstable_LowPriority,We=t.unstable_IdlePriority,Pt=t.log,Dt=t.unstable_setDisableYieldValue,ht=null,zt=null;function rn(e){if(typeof Pt=="function"&&Dt(e),zt&&typeof zt.setStrictMode=="function")try{zt.setStrictMode(ht,e)}catch{}}var Ht=Math.clz32?Math.clz32:Yn,Qo=Math.log,ur=Math.LN2;function Yn(e){return e>>>=0,e===0?32:31-(Qo(e)/ur|0)|0}var Ua=256,ks=262144,Wr=4194304;function xa(e){var a=e&42;if(a!==0)return a;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 $e(e,a,o){var l=e.pendingLanes;if(l===0)return 0;var d=0,h=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var N=l&134217727;return N!==0?(l=N&~h,l!==0?d=xa(l):(x&=N,x!==0?d=xa(x):o||(o=N&~e,o!==0&&(d=xa(o))))):(N=l&~h,N!==0?d=xa(N):x!==0?d=xa(x):o||(o=l&~e,o!==0&&(d=xa(o)))),d===0?0:a!==0&&a!==d&&(a&h)===0&&(h=d&-d,o=a&-a,h>=o||h===32&&(o&4194048)!==0)?a:d}function Ct(e,a){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&a)===0}function tn(e,a){switch(e){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 fn(){var e=Wr;return Wr<<=1,(Wr&62914560)===0&&(Wr=4194304),e}function dr(e){for(var a=[],o=0;31>o;o++)a.push(e);return a}function At(e,a){e.pendingLanes|=a,a!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function bn(e,a,o,l,d,h){var x=e.pendingLanes;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=o,e.entangledLanes&=o,e.errorRecoveryDisabledLanes&=o,e.shellSuspendCounter=0;var N=e.entanglements,M=e.expirationTimes,Z=e.hiddenUpdates;for(o=x&~o;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var _E=/[\n"\\]/g;function Xn(e){return e.replace(_E,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function rd(e,a,o,l,d,h,x,N){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),a!=null?x==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+Zn(a)):e.value!==""+Zn(a)&&(e.value=""+Zn(a)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),a!=null?sd(e,x,Zn(a)):o!=null?sd(e,x,Zn(o)):l!=null&&e.removeAttribute("value"),d==null&&h!=null&&(e.defaultChecked=!!h),d!=null&&(e.checked=d&&typeof d!="function"&&typeof d!="symbol"),N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?e.name=""+Zn(N):e.removeAttribute("name")}function Mp(e,a,o,l,d,h,x,N){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),a!=null||o!=null){if(!(h!=="submit"&&h!=="reset"||a!=null)){ad(e);return}o=o!=null?""+Zn(o):"",a=a!=null?""+Zn(a):o,N||a===e.value||(e.value=a),e.defaultValue=a}l=l??d,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=N?e.checked:!!l,e.defaultChecked=!!l,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x),ad(e)}function sd(e,a,o){a==="number"&&_l(e.ownerDocument)===e||e.defaultValue===""+o||(e.defaultValue=""+o)}function Ps(e,a,o,l){if(e=e.options,a){a={};for(var d=0;d"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ud=!1;if(Ha)try{var ti={};Object.defineProperty(ti,"passive",{get:function(){ud=!0}}),window.addEventListener("test",ti,ti),window.removeEventListener("test",ti,ti)}catch{ud=!1}var mr=null,dd=null,Nl=null;function Hp(){if(Nl)return Nl;var e,a=dd,o=a.length,l,d="value"in mr?mr.value:mr.textContent,h=d.length;for(e=0;e=ri),Gp=" ",Yp=!1;function Zp(e,a){switch(e){case"keyup":return WE.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qs=!1;function e_(e,a){switch(e){case"compositionend":return Xp(a);case"keypress":return a.which!==32?null:(Yp=!0,Gp);case"textInput":return e=a.data,e===Gp&&Yp?null:e;default:return null}}function t_(e,a){if(qs)return e==="compositionend"||!gd&&Zp(e,a)?(e=Hp(),Nl=dd=mr=null,qs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1=a)return{node:o,offset:a-e};e=l}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=ag(o)}}function sg(e,a){return e&&a?e===a?!0:e&&e.nodeType===3?!1:a&&a.nodeType===3?sg(e,a.parentNode):"contains"in e?e.contains(a):e.compareDocumentPosition?!!(e.compareDocumentPosition(a)&16):!1:!1}function og(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var a=_l(e.document);a instanceof e.HTMLIFrameElement;){try{var o=typeof a.contentWindow.location.href=="string"}catch{o=!1}if(o)e=a.contentWindow;else break;a=_l(e.document)}return a}function bd(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a&&(a==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||a==="textarea"||e.contentEditable==="true")}var c_=Ha&&"documentMode"in document&&11>=document.documentMode,Fs=null,xd=null,li=null,wd=!1;function ig(e,a,o){var l=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;wd||Fs==null||Fs!==_l(l)||(l=Fs,"selectionStart"in l&&bd(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),li&&ii(li,l)||(li=l,l=bc(xd,"onSelect"),0>=x,d-=x,wa=1<<32-Ht(a)+d|o<Je?(st=De,De=null):st=De.sibling;var dt=Q(H,De,G[Je],de);if(dt===null){De===null&&(De=st);break}e&&De&&dt.alternate===null&&a(H,De),z=h(dt,z,Je),ut===null?Be=dt:ut.sibling=dt,ut=dt,De=st}if(Je===G.length)return o(H,De),ot&&Ia(H,Je),Be;if(De===null){for(;JeJe?(st=De,De=null):st=De.sibling;var zr=Q(H,De,dt.value,de);if(zr===null){De===null&&(De=st);break}e&&De&&zr.alternate===null&&a(H,De),z=h(zr,z,Je),ut===null?Be=zr:ut.sibling=zr,ut=zr,De=st}if(dt.done)return o(H,De),ot&&Ia(H,Je),Be;if(De===null){for(;!dt.done;Je++,dt=G.next())dt=he(H,dt.value,de),dt!==null&&(z=h(dt,z,Je),ut===null?Be=dt:ut.sibling=dt,ut=dt);return ot&&Ia(H,Je),Be}for(De=l(De);!dt.done;Je++,dt=G.next())dt=ee(De,H,Je,dt.value,de),dt!==null&&(e&&dt.alternate!==null&&De.delete(dt.key===null?Je:dt.key),z=h(dt,z,Je),ut===null?Be=dt:ut.sibling=dt,ut=dt);return e&&De.forEach(function(jC){return a(H,jC)}),ot&&Ia(H,Je),Be}function xt(H,z,G,de){if(typeof G=="object"&&G!==null&&G.type===S&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case C:e:{for(var Be=G.key;z!==null;){if(z.key===Be){if(Be=G.type,Be===S){if(z.tag===7){o(H,z.sibling),de=d(z,G.props.children),de.return=H,H=de;break e}}else if(z.elementType===Be||typeof Be=="object"&&Be!==null&&Be.$$typeof===$&&us(Be)===z.type){o(H,z.sibling),de=d(z,G.props),hi(de,G),de.return=H,H=de;break e}o(H,z);break}else a(H,z);z=z.sibling}G.type===S?(de=ss(G.props.children,H.mode,de,G.key),de.return=H,H=de):(de=Ll(G.type,G.key,G.props,null,H.mode,de),hi(de,G),de.return=H,H=de)}return x(H);case E:e:{for(Be=G.key;z!==null;){if(z.key===Be)if(z.tag===4&&z.stateNode.containerInfo===G.containerInfo&&z.stateNode.implementation===G.implementation){o(H,z.sibling),de=d(z,G.children||[]),de.return=H,H=de;break e}else{o(H,z);break}else a(H,z);z=z.sibling}de=Ad(G,H.mode,de),de.return=H,H=de}return x(H);case $:return G=us(G),xt(H,z,G,de)}if(ye(G))return Ae(H,z,G,de);if(re(G)){if(Be=re(G),typeof Be!="function")throw Error(s(150));return G=Be.call(G),He(H,z,G,de)}if(typeof G.then=="function")return xt(H,z,ql(G),de);if(G.$$typeof===A)return xt(H,z,Pl(H,G),de);Fl(H,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,z!==null&&z.tag===6?(o(H,z.sibling),de=d(z,G),de.return=H,H=de):(o(H,z),de=Rd(G,H.mode,de),de.return=H,H=de),x(H)):o(H,z)}return function(H,z,G,de){try{mi=0;var Be=xt(H,z,G,de);return to=null,Be}catch(De){if(De===eo||De===Vl)throw De;var ut=zn(29,De,null,H.mode);return ut.lanes=de,ut.return=H,ut}finally{}}}var fs=Tg(!0),Og=Tg(!1),vr=!1;function Hd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Vd(e,a){e=e.updateQueue,a.updateQueue===e&&(a.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function br(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function xr(e,a,o){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(mt&2)!==0){var d=l.pending;return d===null?a.next=a:(a.next=d.next,d.next=a),l.pending=a,a=zl(e),hg(e,null,o),a}return Dl(e,l,a,o),zl(e)}function pi(e,a,o){if(a=a.updateQueue,a!==null&&(a=a.shared,(o&4194048)!==0)){var l=a.lanes;l&=e.pendingLanes,o|=l,a.lanes=o,xn(e,o)}}function Id(e,a){var o=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,o===l)){var d=null,h=null;if(o=o.firstBaseUpdate,o!==null){do{var x={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};h===null?d=h=x:h=h.next=x,o=o.next}while(o!==null);h===null?d=h=a:h=h.next=a}else d=h=a;o={baseState:l.baseState,firstBaseUpdate:d,lastBaseUpdate:h,shared:l.shared,callbacks:l.callbacks},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=a:e.next=a,o.lastBaseUpdate=a}var qd=!1;function gi(){if(qd){var e=Js;if(e!==null)throw e}}function yi(e,a,o,l){qd=!1;var d=e.updateQueue;vr=!1;var h=d.firstBaseUpdate,x=d.lastBaseUpdate,N=d.shared.pending;if(N!==null){d.shared.pending=null;var M=N,Z=M.next;M.next=null,x===null?h=Z:x.next=Z,x=M;var ie=e.alternate;ie!==null&&(ie=ie.updateQueue,N=ie.lastBaseUpdate,N!==x&&(N===null?ie.firstBaseUpdate=Z:N.next=Z,ie.lastBaseUpdate=M))}if(h!==null){var he=d.baseState;x=0,ie=Z=M=null,N=h;do{var Q=N.lane&-536870913,ee=Q!==N.lane;if(ee?(rt&Q)===Q:(l&Q)===Q){Q!==0&&Q===Ws&&(qd=!0),ie!==null&&(ie=ie.next={lane:0,tag:N.tag,payload:N.payload,callback:null,next:null});e:{var Ae=e,He=N;Q=a;var xt=o;switch(He.tag){case 1:if(Ae=He.payload,typeof Ae=="function"){he=Ae.call(xt,he,Q);break e}he=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=He.payload,Q=typeof Ae=="function"?Ae.call(xt,he,Q):Ae,Q==null)break e;he=y({},he,Q);break e;case 2:vr=!0}}Q=N.callback,Q!==null&&(e.flags|=64,ee&&(e.flags|=8192),ee=d.callbacks,ee===null?d.callbacks=[Q]:ee.push(Q))}else ee={lane:Q,tag:N.tag,payload:N.payload,callback:N.callback,next:null},ie===null?(Z=ie=ee,M=he):ie=ie.next=ee,x|=Q;if(N=N.next,N===null){if(N=d.shared.pending,N===null)break;ee=N,N=ee.next,ee.next=null,d.lastBaseUpdate=ee,d.shared.pending=null}}while(!0);ie===null&&(M=he),d.baseState=M,d.firstBaseUpdate=Z,d.lastBaseUpdate=ie,h===null&&(d.shared.lanes=0),Cr|=x,e.lanes=x,e.memoizedState=he}}function kg(e,a){if(typeof e!="function")throw Error(s(191,e));e.call(a)}function Mg(e,a){var o=e.callbacks;if(o!==null)for(e.callbacks=null,e=0;eh?h:8;var x=j.T,N={};j.T=N,cf(e,!1,a,o);try{var M=d(),Z=j.S;if(Z!==null&&Z(N,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var ie=v_(M,l);xi(e,a,ie,Hn(e))}else xi(e,a,l,Hn(e))}catch(he){xi(e,a,{then:function(){},status:"rejected",reason:he},Hn())}finally{X.p=h,x!==null&&N.types!==null&&(x.types=N.types),j.T=x}}function __(){}function of(e,a,o,l){if(e.tag!==5)throw Error(s(476));var d=dy(e).queue;uy(e,d,a,te,o===null?__:function(){return fy(e),o(l)})}function dy(e){var a=e.memoizedState;if(a!==null)return a;a={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ga,lastRenderedState:te},next:null};var o={};return a.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ga,lastRenderedState:o},next:null},e.memoizedState=a,e=e.alternate,e!==null&&(e.memoizedState=a),a}function fy(e){var a=dy(e);a.next===null&&(a=e.alternate.memoizedState),xi(e,a.next.queue,{},Hn())}function lf(){return ln(Ui)}function my(){return Ut().memoizedState}function hy(){return Ut().memoizedState}function C_(e){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var o=Hn();e=br(o);var l=xr(a,e,o);l!==null&&(An(l,a,o),pi(l,a,o)),a={cache:Ld()},e.payload=a;return}a=a.return}}function N_(e,a,o){var l=Hn();o={lane:l,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},ec(e)?gy(a,o):(o=Cd(e,a,o,l),o!==null&&(An(o,e,l),yy(o,a,l)))}function py(e,a,o){var l=Hn();xi(e,a,o,l)}function xi(e,a,o,l){var d={lane:l,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(ec(e))gy(a,d);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=a.lastRenderedReducer,h!==null))try{var x=a.lastRenderedState,N=h(x,o);if(d.hasEagerState=!0,d.eagerState=N,Dn(N,x))return Dl(e,a,d,0),St===null&&Ml(),!1}catch{}finally{}if(o=Cd(e,a,d,l),o!==null)return An(o,e,l),yy(o,a,l),!0}return!1}function cf(e,a,o,l){if(l={lane:2,revertLane:Vf(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ec(e)){if(a)throw Error(s(479))}else a=Cd(e,o,l,2),a!==null&&An(a,e,2)}function ec(e){var a=e.alternate;return e===Qe||a!==null&&a===Qe}function gy(e,a){ao=Yl=!0;var o=e.pending;o===null?a.next=a:(a.next=o.next,o.next=a),e.pending=a}function yy(e,a,o){if((o&4194048)!==0){var l=a.lanes;l&=e.pendingLanes,o|=l,a.lanes=o,xn(e,o)}}var wi={readContext:ln,use:Kl,useCallback:Ot,useContext:Ot,useEffect:Ot,useImperativeHandle:Ot,useLayoutEffect:Ot,useInsertionEffect:Ot,useMemo:Ot,useReducer:Ot,useRef:Ot,useState:Ot,useDebugValue:Ot,useDeferredValue:Ot,useTransition:Ot,useSyncExternalStore:Ot,useId:Ot,useHostTransitionStatus:Ot,useFormState:Ot,useActionState:Ot,useOptimistic:Ot,useMemoCache:Ot,useCacheRefresh:Ot};wi.useEffectEvent=Ot;var vy={readContext:ln,use:Kl,useCallback:function(e,a){return pn().memoizedState=[e,a===void 0?null:a],e},useContext:ln,useEffect:ty,useImperativeHandle:function(e,a,o){o=o!=null?o.concat([e]):null,Wl(4194308,4,sy.bind(null,a,e),o)},useLayoutEffect:function(e,a){return Wl(4194308,4,e,a)},useInsertionEffect:function(e,a){Wl(4,2,e,a)},useMemo:function(e,a){var o=pn();a=a===void 0?null:a;var l=e();if(ms){rn(!0);try{e()}finally{rn(!1)}}return o.memoizedState=[l,a],l},useReducer:function(e,a,o){var l=pn();if(o!==void 0){var d=o(a);if(ms){rn(!0);try{o(a)}finally{rn(!1)}}}else d=a;return l.memoizedState=l.baseState=d,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:d},l.queue=e,e=e.dispatch=N_.bind(null,Qe,e),[l.memoizedState,e]},useRef:function(e){var a=pn();return e={current:e},a.memoizedState=e},useState:function(e){e=tf(e);var a=e.queue,o=py.bind(null,Qe,a);return a.dispatch=o,[e.memoizedState,o]},useDebugValue:rf,useDeferredValue:function(e,a){var o=pn();return sf(o,e,a)},useTransition:function(){var e=tf(!1);return e=uy.bind(null,Qe,e.queue,!0,!1),pn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,a,o){var l=Qe,d=pn();if(ot){if(o===void 0)throw Error(s(407));o=o()}else{if(o=a(),St===null)throw Error(s(349));(rt&127)!==0||Pg(l,a,o)}d.memoizedState=o;var h={value:o,getSnapshot:a};return d.queue=h,ty(Vg.bind(null,l,h,e),[e]),l.flags|=2048,so(9,{destroy:void 0},Hg.bind(null,l,h,o,a),null),o},useId:function(){var e=pn(),a=St.identifierPrefix;if(ot){var o=Sa,l=wa;o=(l&~(1<<32-Ht(l)-1)).toString(32)+o,a="_"+a+"R_"+o,o=Zl++,0<\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof l.is=="string"?x.createElement("select",{is:l.is}):x.createElement("select"),l.multiple?h.multiple=!0:l.size&&(h.size=l.size);break;default:h=typeof l.is=="string"?x.createElement(d,{is:l.is}):x.createElement(d)}}h[sn]=a,h[Sn]=l;e:for(x=a.child;x!==null;){if(x.tag===5||x.tag===6)h.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===a)break e;for(;x.sibling===null;){if(x.return===null||x.return===a)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}a.stateNode=h;e:switch(un(h,d,l),d){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Za(a)}}return _t(a),Ef(a,a.type,e===null?null:e.memoizedProps,a.pendingProps,o),null;case 6:if(e&&a.stateNode!=null)e.memoizedProps!==l&&Za(a);else{if(typeof l!="string"&&a.stateNode===null)throw Error(s(166));if(e=le.current,Ks(a)){if(e=a.stateNode,o=a.memoizedProps,l=null,d=on,d!==null)switch(d.tag){case 27:case 5:l=d.memoizedProps}e[sn]=a,e=!!(e.nodeValue===o||l!==null&&l.suppressHydrationWarning===!0||Uv(e.nodeValue,o)),e||gr(a,!0)}else e=xc(e).createTextNode(l),e[sn]=a,a.stateNode=e}return _t(a),null;case 31:if(o=a.memoizedState,e===null||e.memoizedState!==null){if(l=Ks(a),o!==null){if(e===null){if(!l)throw Error(s(318));if(e=a.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[sn]=a}else os(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;_t(a),e=!1}else o=kd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),e=!0;if(!e)return a.flags&256?(Un(a),a):(Un(a),null);if((a.flags&128)!==0)throw Error(s(558))}return _t(a),null;case 13:if(l=a.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(d=Ks(a),l!==null&&l.dehydrated!==null){if(e===null){if(!d)throw Error(s(318));if(d=a.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(s(317));d[sn]=a}else os(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;_t(a),d=!1}else d=kd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=d),d=!0;if(!d)return a.flags&256?(Un(a),a):(Un(a),null)}return Un(a),(a.flags&128)!==0?(a.lanes=o,a):(o=l!==null,e=e!==null&&e.memoizedState!==null,o&&(l=a.child,d=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(d=l.alternate.memoizedState.cachePool.pool),h=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),h!==d&&(l.flags|=2048)),o!==e&&o&&(a.child.flags|=8192),sc(a,a.updateQueue),_t(a),null);case 4:return ae(),e===null&&$f(a.stateNode.containerInfo),_t(a),null;case 10:return Fa(a.type),_t(a),null;case 19:if(V(Lt),l=a.memoizedState,l===null)return _t(a),null;if(d=(a.flags&128)!==0,h=l.rendering,h===null)if(d)Ei(l,!1);else{if(kt!==0||e!==null&&(e.flags&128)!==0)for(e=a.child;e!==null;){if(h=Gl(e),h!==null){for(a.flags|=128,Ei(l,!1),e=h.updateQueue,a.updateQueue=e,sc(a,e),a.subtreeFlags=0,e=o,o=a.child;o!==null;)pg(o,e),o=o.sibling;return L(Lt,Lt.current&1|2),ot&&Ia(a,l.treeForkCount),a.child}e=e.sibling}l.tail!==null&&F()>uc&&(a.flags|=128,d=!0,Ei(l,!1),a.lanes=4194304)}else{if(!d)if(e=Gl(h),e!==null){if(a.flags|=128,d=!0,e=e.updateQueue,a.updateQueue=e,sc(a,e),Ei(l,!0),l.tail===null&&l.tailMode==="hidden"&&!h.alternate&&!ot)return _t(a),null}else 2*F()-l.renderingStartTime>uc&&o!==536870912&&(a.flags|=128,d=!0,Ei(l,!1),a.lanes=4194304);l.isBackwards?(h.sibling=a.child,a.child=h):(e=l.last,e!==null?e.sibling=h:a.child=h,l.last=h)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=F(),e.sibling=null,o=Lt.current,L(Lt,d?o&1|2:o&1),ot&&Ia(a,l.treeForkCount),e):(_t(a),null);case 22:case 23:return Un(a),$d(),l=a.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(a.flags|=8192):l&&(a.flags|=8192),l?(o&536870912)!==0&&(a.flags&128)===0&&(_t(a),a.subtreeFlags&6&&(a.flags|=8192)):_t(a),o=a.updateQueue,o!==null&&sc(a,o.retryQueue),o=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(o=e.memoizedState.cachePool.pool),l=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),l!==o&&(a.flags|=2048),e!==null&&V(cs),null;case 24:return o=null,e!==null&&(o=e.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),Fa(Vt),_t(a),null;case 25:return null;case 30:return null}throw Error(s(156,a.tag))}function O_(e,a){switch(Td(a),a.tag){case 1:return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 3:return Fa(Vt),ae(),e=a.flags,(e&65536)!==0&&(e&128)===0?(a.flags=e&-65537|128,a):null;case 26:case 27:case 5:return Oe(a),null;case 31:if(a.memoizedState!==null){if(Un(a),a.alternate===null)throw Error(s(340));os()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 13:if(Un(a),e=a.memoizedState,e!==null&&e.dehydrated!==null){if(a.alternate===null)throw Error(s(340));os()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 19:return V(Lt),null;case 4:return ae(),null;case 10:return Fa(a.type),null;case 22:case 23:return Un(a),$d(),e!==null&&V(cs),e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 24:return Fa(Vt),null;case 25:return null;default:return null}}function Iy(e,a){switch(Td(a),a.tag){case 3:Fa(Vt),ae();break;case 26:case 27:case 5:Oe(a);break;case 4:ae();break;case 31:a.memoizedState!==null&&Un(a);break;case 13:Un(a);break;case 19:V(Lt);break;case 10:Fa(a.type);break;case 22:case 23:Un(a),$d(),e!==null&&V(cs);break;case 24:Fa(Vt)}}function _i(e,a){try{var o=a.updateQueue,l=o!==null?o.lastEffect:null;if(l!==null){var d=l.next;o=d;do{if((o.tag&e)===e){l=void 0;var h=o.create,x=o.inst;l=h(),x.destroy=l}o=o.next}while(o!==d)}}catch(N){yt(a,a.return,N)}}function Er(e,a,o){try{var l=a.updateQueue,d=l!==null?l.lastEffect:null;if(d!==null){var h=d.next;l=h;do{if((l.tag&e)===e){var x=l.inst,N=x.destroy;if(N!==void 0){x.destroy=void 0,d=a;var M=o,Z=N;try{Z()}catch(ie){yt(d,M,ie)}}}l=l.next}while(l!==h)}}catch(ie){yt(a,a.return,ie)}}function qy(e){var a=e.updateQueue;if(a!==null){var o=e.stateNode;try{Mg(a,o)}catch(l){yt(e,e.return,l)}}}function Fy(e,a,o){o.props=hs(e.type,e.memoizedProps),o.state=e.memoizedState;try{o.componentWillUnmount()}catch(l){yt(e,a,l)}}function Ci(e,a){try{var o=e.ref;if(o!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof o=="function"?e.refCleanup=o(l):o.current=l}}catch(d){yt(e,a,d)}}function Ea(e,a){var o=e.ref,l=e.refCleanup;if(o!==null)if(typeof l=="function")try{l()}catch(d){yt(e,a,d)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(d){yt(e,a,d)}else o.current=null}function $y(e){var a=e.type,o=e.memoizedProps,l=e.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":o.autoFocus&&l.focus();break e;case"img":o.src?l.src=o.src:o.srcSet&&(l.srcset=o.srcSet)}}catch(d){yt(e,e.return,d)}}function _f(e,a,o){try{var l=e.stateNode;J_(l,e.type,o,a),l[Sn]=a}catch(d){yt(e,e.return,d)}}function Gy(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Tr(e.type)||e.tag===4}function Cf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gy(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&&Tr(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 Nf(e,a,o){var l=e.tag;if(l===5||l===6)e=e.stateNode,a?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(e,a):(a=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,a.appendChild(e),o=o._reactRootContainer,o!=null||a.onclick!==null||(a.onclick=Pa));else if(l!==4&&(l===27&&Tr(e.type)&&(o=e.stateNode,a=null),e=e.child,e!==null))for(Nf(e,a,o),e=e.sibling;e!==null;)Nf(e,a,o),e=e.sibling}function oc(e,a,o){var l=e.tag;if(l===5||l===6)e=e.stateNode,a?o.insertBefore(e,a):o.appendChild(e);else if(l!==4&&(l===27&&Tr(e.type)&&(o=e.stateNode),e=e.child,e!==null))for(oc(e,a,o),e=e.sibling;e!==null;)oc(e,a,o),e=e.sibling}function Yy(e){var a=e.stateNode,o=e.memoizedProps;try{for(var l=e.type,d=a.attributes;d.length;)a.removeAttributeNode(d[0]);un(a,l,o),a[sn]=e,a[Sn]=o}catch(h){yt(e,e.return,h)}}var Xa=!1,Ft=!1,Rf=!1,Zy=typeof WeakSet=="function"?WeakSet:Set,an=null;function k_(e,a){if(e=e.containerInfo,Zf=Rc,e=og(e),bd(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var l=o.getSelection&&o.getSelection();if(l&&l.rangeCount!==0){o=l.anchorNode;var d=l.anchorOffset,h=l.focusNode;l=l.focusOffset;try{o.nodeType,h.nodeType}catch{o=null;break e}var x=0,N=-1,M=-1,Z=0,ie=0,he=e,Q=null;t:for(;;){for(var ee;he!==o||d!==0&&he.nodeType!==3||(N=x+d),he!==h||l!==0&&he.nodeType!==3||(M=x+l),he.nodeType===3&&(x+=he.nodeValue.length),(ee=he.firstChild)!==null;)Q=he,he=ee;for(;;){if(he===e)break t;if(Q===o&&++Z===d&&(N=x),Q===h&&++ie===l&&(M=x),(ee=he.nextSibling)!==null)break;he=Q,Q=he.parentNode}he=ee}o=N===-1||M===-1?null:{start:N,end:M}}else o=null}o=o||{start:0,end:0}}else o=null;for(Xf={focusedElem:e,selectionRange:o},Rc=!1,an=a;an!==null;)if(a=an,e=a.child,(a.subtreeFlags&1028)!==0&&e!==null)e.return=a,an=e;else for(;an!==null;){switch(a=an,h=a.alternate,e=a.flags,a.tag){case 0:if((e&4)!==0&&(e=a.updateQueue,e=e!==null?e.events:null,e!==null))for(o=0;o title"))),un(h,l,o),h[sn]=e,nn(h),l=h;break e;case"link":var x=eb("link","href",d).get(l+(o.href||""));if(x){for(var N=0;Nxt&&(x=xt,xt=He,He=x);var H=rg(N,He),z=rg(N,xt);if(H&&z&&(ee.rangeCount!==1||ee.anchorNode!==H.node||ee.anchorOffset!==H.offset||ee.focusNode!==z.node||ee.focusOffset!==z.offset)){var G=he.createRange();G.setStart(H.node,H.offset),ee.removeAllRanges(),He>xt?(ee.addRange(G),ee.extend(z.node,z.offset)):(G.setEnd(z.node,z.offset),ee.addRange(G))}}}}for(he=[],ee=N;ee=ee.parentNode;)ee.nodeType===1&&he.push({element:ee,left:ee.scrollLeft,top:ee.scrollTop});for(typeof N.focus=="function"&&N.focus(),N=0;No?32:o,j.T=null,o=Df,Df=null;var h=Rr,x=er;if(Xt=0,uo=Rr=null,er=0,(mt&6)!==0)throw Error(s(331));var N=mt;if(mt|=4,sv(h.current),nv(h,h.current,x,o),mt=N,Oi(0,!1),zt&&typeof zt.onPostCommitFiberRoot=="function")try{zt.onPostCommitFiberRoot(ht,h)}catch{}return!0}finally{X.p=d,j.T=l,Ev(e,a)}}function Cv(e,a,o){a=Qn(o,a),a=mf(e.stateNode,a,2),e=xr(e,a,2),e!==null&&(At(e,2),_a(e))}function yt(e,a,o){if(e.tag===3)Cv(e,e,o);else for(;a!==null;){if(a.tag===3){Cv(a,e,o);break}else if(a.tag===1){var l=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Nr===null||!Nr.has(l))){e=Qn(o,e),o=Ny(2),l=xr(a,o,2),l!==null&&(Ry(o,l,a,e),At(l,2),_a(l));break}}a=a.return}}function Bf(e,a,o){var l=e.pingCache;if(l===null){l=e.pingCache=new z_;var d=new Set;l.set(a,d)}else d=l.get(a),d===void 0&&(d=new Set,l.set(a,d));d.has(o)||(Tf=!0,d.add(o),e=H_.bind(null,e,a,o),a.then(e,e))}function H_(e,a,o){var l=e.pingCache;l!==null&&l.delete(a),e.pingedLanes|=e.suspendedLanes&o,e.warmLanes&=~o,St===e&&(rt&o)===o&&(kt===4||kt===3&&(rt&62914560)===rt&&300>F()-cc?(mt&2)===0&&fo(e,0):Of|=o,co===rt&&(co=0)),_a(e)}function Nv(e,a){a===0&&(a=fn()),e=rs(e,a),e!==null&&(At(e,a),_a(e))}function V_(e){var a=e.memoizedState,o=0;a!==null&&(o=a.retryLane),Nv(e,o)}function I_(e,a){var o=0;switch(e.tag){case 31:case 13:var l=e.stateNode,d=e.memoizedState;d!==null&&(o=d.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(a),Nv(e,o)}function q_(e,a){return pt(e,a)}var gc=null,ho=null,Pf=!1,yc=!1,Hf=!1,jr=0;function _a(e){e!==ho&&e.next===null&&(ho===null?gc=ho=e:ho=ho.next=e),yc=!0,Pf||(Pf=!0,$_())}function Oi(e,a){if(!Hf&&yc){Hf=!0;do for(var o=!1,l=gc;l!==null;){if(e!==0){var d=l.pendingLanes;if(d===0)var h=0;else{var x=l.suspendedLanes,N=l.pingedLanes;h=(1<<31-Ht(42|e)+1)-1,h&=d&~(x&~N),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(o=!0,Tv(l,h))}else h=rt,h=$e(l,l===St?h:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(h&3)===0||Ct(l,h)||(o=!0,Tv(l,h));l=l.next}while(o);Hf=!1}}function F_(){Rv()}function Rv(){yc=Pf=!1;var e=0;jr!==0&&tC()&&(e=jr);for(var a=F(),o=null,l=gc;l!==null;){var d=l.next,h=Av(l,a);h===0?(l.next=null,o===null?gc=d:o.next=d,d===null&&(ho=o)):(o=l,(e!==0||(h&3)!==0)&&(yc=!0)),l=d}Xt!==0&&Xt!==5||Oi(e),jr!==0&&(jr=0)}function Av(e,a){for(var o=e.suspendedLanes,l=e.pingedLanes,d=e.expirationTimes,h=e.pendingLanes&-62914561;0N)break;var ie=M.transferSize,he=M.initiatorType;ie&&Bv(he)&&(M=M.responseEnd,x+=ie*(M"u"?null:document;function Kv(e,a,o){var l=po;if(l&&typeof a=="string"&&a){var d=Xn(a);d='link[rel="'+e+'"][href="'+d+'"]',typeof o=="string"&&(d+='[crossorigin="'+o+'"]'),Xv.has(d)||(Xv.add(d),e={rel:e,crossOrigin:o,href:a},l.querySelector(d)===null&&(a=l.createElement("link"),un(a,"link",e),nn(a),l.head.appendChild(a)))}}function uC(e){tr.D(e),Kv("dns-prefetch",e,null)}function dC(e,a){tr.C(e,a),Kv("preconnect",e,a)}function fC(e,a,o){tr.L(e,a,o);var l=po;if(l&&e&&a){var d='link[rel="preload"][as="'+Xn(a)+'"]';a==="image"&&o&&o.imageSrcSet?(d+='[imagesrcset="'+Xn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(d+='[imagesizes="'+Xn(o.imageSizes)+'"]')):d+='[href="'+Xn(e)+'"]';var h=d;switch(a){case"style":h=go(e);break;case"script":h=yo(e)}aa.has(h)||(e=y({rel:"preload",href:a==="image"&&o&&o.imageSrcSet?void 0:e,as:a},o),aa.set(h,e),l.querySelector(d)!==null||a==="style"&&l.querySelector(zi(h))||a==="script"&&l.querySelector(Li(h))||(a=l.createElement("link"),un(a,"link",e),nn(a),l.head.appendChild(a)))}}function mC(e,a){tr.m(e,a);var o=po;if(o&&e){var l=a&&typeof a.as=="string"?a.as:"script",d='link[rel="modulepreload"][as="'+Xn(l)+'"][href="'+Xn(e)+'"]',h=d;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=yo(e)}if(!aa.has(h)&&(e=y({rel:"modulepreload",href:e},a),aa.set(h,e),o.querySelector(d)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Li(h)))return}l=o.createElement("link"),un(l,"link",e),nn(l),o.head.appendChild(l)}}}function hC(e,a,o){tr.S(e,a,o);var l=po;if(l&&e){var d=Us(l).hoistableStyles,h=go(e);a=a||"default";var x=d.get(h);if(!x){var N={loading:0,preload:null};if(x=l.querySelector(zi(h)))N.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":a},o),(o=aa.get(h))&&nm(e,o);var M=x=l.createElement("link");nn(M),un(M,"link",e),M._p=new Promise(function(Z,ie){M.onload=Z,M.onerror=ie}),M.addEventListener("load",function(){N.loading|=1}),M.addEventListener("error",function(){N.loading|=2}),N.loading|=4,Sc(x,a,l)}x={type:"stylesheet",instance:x,count:1,state:N},d.set(h,x)}}}function pC(e,a){tr.X(e,a);var o=po;if(o&&e){var l=Us(o).hoistableScripts,d=yo(e),h=l.get(d);h||(h=o.querySelector(Li(d)),h||(e=y({src:e,async:!0},a),(a=aa.get(d))&&am(e,a),h=o.createElement("script"),nn(h),un(h,"link",e),o.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(d,h))}}function gC(e,a){tr.M(e,a);var o=po;if(o&&e){var l=Us(o).hoistableScripts,d=yo(e),h=l.get(d);h||(h=o.querySelector(Li(d)),h||(e=y({src:e,async:!0,type:"module"},a),(a=aa.get(d))&&am(e,a),h=o.createElement("script"),nn(h),un(h,"link",e),o.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(d,h))}}function Qv(e,a,o,l){var d=(d=le.current)?wc(d):null;if(!d)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(a=go(o.href),o=Us(d).hoistableStyles,l=o.get(a),l||(l={type:"style",instance:null,count:0,state:null},o.set(a,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){e=go(o.href);var h=Us(d).hoistableStyles,x=h.get(e);if(x||(d=d.ownerDocument||d,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,x),(h=d.querySelector(zi(e)))&&!h._p&&(x.instance=h,x.state.loading=5),aa.has(e)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},aa.set(e,o),h||yC(d,e,o,x.state))),a&&l===null)throw Error(s(528,""));return x}if(a&&l!==null)throw Error(s(529,""));return null;case"script":return a=o.async,o=o.src,typeof o=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=yo(o),o=Us(d).hoistableScripts,l=o.get(a),l||(l={type:"script",instance:null,count:0,state:null},o.set(a,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function go(e){return'href="'+Xn(e)+'"'}function zi(e){return'link[rel="stylesheet"]['+e+"]"}function Wv(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function yC(e,a,o,l){e.querySelector('link[rel="preload"][as="style"]['+a+"]")?l.loading=1:(a=e.createElement("link"),l.preload=a,a.addEventListener("load",function(){return l.loading|=1}),a.addEventListener("error",function(){return l.loading|=2}),un(a,"link",o),nn(a),e.head.appendChild(a))}function yo(e){return'[src="'+Xn(e)+'"]'}function Li(e){return"script[async]"+e}function Jv(e,a,o){if(a.count++,a.instance===null)switch(a.type){case"style":var l=e.querySelector('style[data-href~="'+Xn(o.href)+'"]');if(l)return a.instance=l,nn(l),l;var d=y({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),nn(l),un(l,"style",d),Sc(l,o.precedence,e),a.instance=l;case"stylesheet":d=go(o.href);var h=e.querySelector(zi(d));if(h)return a.state.loading|=4,a.instance=h,nn(h),h;l=Wv(o),(d=aa.get(d))&&nm(l,d),h=(e.ownerDocument||e).createElement("link"),nn(h);var x=h;return x._p=new Promise(function(N,M){x.onload=N,x.onerror=M}),un(h,"link",l),a.state.loading|=4,Sc(h,o.precedence,e),a.instance=h;case"script":return h=yo(o.src),(d=e.querySelector(Li(h)))?(a.instance=d,nn(d),d):(l=o,(d=aa.get(h))&&(l=y({},o),am(l,d)),e=e.ownerDocument||e,d=e.createElement("script"),nn(d),un(d,"link",l),e.head.appendChild(d),a.instance=d);case"void":return null;default:throw Error(s(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(l=a.instance,a.state.loading|=4,Sc(l,o.precedence,e));return a.instance}function Sc(e,a,o){for(var l=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=l.length?l[l.length-1]:null,h=d,x=0;x title"):null)}function vC(e,a,o){if(o===1||a.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return e=a.disabled,typeof a.precedence=="string"&&e==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function nb(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function bC(e,a,o,l){if(o.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var d=go(l.href),h=a.querySelector(zi(d));if(h){a=h._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(e.count++,e=_c.bind(e),a.then(e,e)),o.state.loading|=4,o.instance=h,nn(h);return}h=a.ownerDocument||a,l=Wv(l),(d=aa.get(d))&&nm(l,d),h=h.createElement("link"),nn(h);var x=h;x._p=new Promise(function(N,M){x.onload=N,x.onerror=M}),un(h,"link",l),o.instance=h}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(o,a),(a=o.state.preload)&&(o.state.loading&3)===0&&(e.count++,o=_c.bind(e),a.addEventListener("load",o),a.addEventListener("error",o))}}var rm=0;function xC(e,a){return e.stylesheets&&e.count===0&&Nc(e,e.stylesheets),0rm?50:800)+a);return e.unsuspend=o,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(d)}}:null}function _c(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Nc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Cc=null;function Nc(e,a){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Cc=new Map,a.forEach(wC,e),Cc=null,_c.call(e))}function wC(e,a){if(!(a.state.loading&4)){var o=Cc.get(e);if(o)var l=o.get(null);else{o=new Map,Cc.set(e,o);for(var d=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}return t(),mm.exports=PC(),mm.exports}var VC=HC();/** * react-router v7.13.2 * * 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 Rb="popstate";function Ab(t){return typeof t=="object"&&t!=null&&"pathname"in t&&"search"in t&&"hash"in t&&"state"in t&&"key"in t}function IC(t={}){function n(s,i){var p;let c=(p=i.state)==null?void 0:p.masked,{pathname:u,search:f,hash:g}=c||s.location;return Gm("",{pathname:u,search:f,hash:g},i.state&&i.state.usr||null,i.state&&i.state.key||"default",c?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function r(s,i){return typeof i=="string"?i:el(i)}return FC(n,r,null,t)}function Rt(t,n){if(t===!1||t===null||typeof t>"u")throw new Error(n)}function oa(t,n){if(!t){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function qC(){return Math.random().toString(36).substring(2,10)}function jb(t,n){return{usr:t.state,key:t.key,idx:n,masked:t.unstable_mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void 0}}function Gm(t,n,r=null,s,i){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof n=="string"?Fo(n):n,state:r,key:n&&n.key||s||qC(),unstable_mask:i}}function el({pathname:t="/",search:n="",hash:r=""}){return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Fo(t){let n={};if(t){let r=t.indexOf("#");r>=0&&(n.hash=t.substring(r),t=t.substring(0,r));let s=t.indexOf("?");s>=0&&(n.search=t.substring(s),t=t.substring(0,s)),t&&(n.pathname=t)}return n}function FC(t,n,r,s={}){let{window:i=document.defaultView,v5Compat:c=!1}=s,u=i.history,f="POP",g=null,p=v();p==null&&(p=0,u.replaceState({...u.state,idx:p},""));function v(){return(u.state||{idx:null}).idx}function y(){f="POP";let _=v(),R=_==null?null:_-p;p=_,g&&g({action:f,location:S.location,delta:R})}function w(_,R){f="PUSH";let k=Ab(_)?_:Gm(S.location,_,R);p=v()+1;let A=jb(k,p),D=S.createHref(k.unstable_mask||k);try{u.pushState(A,"",D)}catch(B){if(B instanceof DOMException&&B.name==="DataCloneError")throw B;i.location.assign(D)}c&&g&&g({action:f,location:S.location,delta:1})}function C(_,R){f="REPLACE";let k=Ab(_)?_:Gm(S.location,_,R);p=v();let A=jb(k,p),D=S.createHref(k.unstable_mask||k);u.replaceState(A,"",D),c&&g&&g({action:f,location:S.location,delta:0})}function E(_){return $C(_)}let S={get action(){return f},get location(){return t(i,u)},listen(_){if(g)throw new Error("A history only accepts one active listener");return i.addEventListener(Rb,y),g=_,()=>{i.removeEventListener(Rb,y),g=null}},createHref(_){return n(i,_)},createURL:E,encodeLocation(_){let R=E(_);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:w,replace:C,go(_){return u.go(_)}};return S}function $C(t,n=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Rt(r,"No window.location.(origin|href) available to create URL");let s=typeof t=="string"?t:el(t);return s=s.replace(/ $/,"%20"),!n&&s.startsWith("//")&&(s=r+s),new URL(s,r)}function A0(t,n,r="/"){return GC(t,n,r,!1)}function GC(t,n,r,s){let i=typeof n=="string"?Fo(n):n,c=rr(i.pathname||"/",r);if(c==null)return null;let u=j0(t);YC(u);let f=null;for(let g=0;f==null&&g{let v={relativePath:p===void 0?u.path||"":p,caseSensitive:u.caseSensitive===!0,childrenIndex:f,route:u};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(s)&&g)return;Rt(v.relativePath.startsWith(s),`Absolute route path "${v.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(s.length)}let y=Oa([s,v.relativePath]),w=r.concat(v);u.children&&u.children.length>0&&(Rt(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),j0(u.children,n,w,y,g)),!(u.path==null&&!u.index)&&n.push({path:y,score:eN(y,u.index),routesMeta:w})};return t.forEach((u,f)=>{var g;if(u.path===""||!((g=u.path)!=null&&g.includes("?")))c(u,f);else for(let p of T0(u.path))c(u,f,!0,p)}),n}function T0(t){let n=t.split("/");if(n.length===0)return[];let[r,...s]=n,i=r.endsWith("?"),c=r.replace(/\?$/,"");if(s.length===0)return i?[c,""]:[c];let u=T0(s.join("/")),f=[];return f.push(...u.map(g=>g===""?c:[c,g].join("/"))),i&&f.push(...u),f.map(g=>t.startsWith("/")&&g===""?"/":g)}function YC(t){t.sort((n,r)=>n.score!==r.score?r.score-n.score:tN(n.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}var ZC=/^:[\w-]+$/,XC=3,KC=2,QC=1,WC=10,JC=-2,Tb=t=>t==="*";function eN(t,n){let r=t.split("/"),s=r.length;return r.some(Tb)&&(s+=JC),n&&(s+=KC),r.filter(i=>!Tb(i)).reduce((i,c)=>i+(ZC.test(c)?XC:c===""?QC:WC),s)}function tN(t,n){return t.length===n.length&&t.slice(0,-1).every((s,i)=>s===n[i])?t[t.length-1]-n[n.length-1]:0}function nN(t,n,r=!1){let{routesMeta:s}=t,i={},c="/",u=[];for(let f=0;f{if(v==="*"){let E=f[w]||"";u=c.slice(0,c.length-E.length).replace(/(.)\/+$/,"$1")}const C=f[w];return y&&!C?p[v]=void 0:p[v]=(C||"").replace(/%2F/g,"/"),p},{}),pathname:c,pathnameBase:u,pattern:t}}function aN(t,n=!1,r=!0){oa(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let s=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,f,g,p,v)=>{if(s.push({paramName:f,isOptional:g!=null}),g){let y=v.charAt(p+u.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(s.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,n?void 0:"i"),s]}function rN(t){try{return t.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return oa(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),t}}function rr(t,n){if(n==="/")return t;if(!t.toLowerCase().startsWith(n.toLowerCase()))return null;let r=n.endsWith("/")?n.length-1:n.length,s=t.charAt(r);return s&&s!=="/"?null:t.slice(r)||"/"}var sN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function oN(t,n="/"){let{pathname:r,search:s="",hash:i=""}=typeof t=="string"?Fo(t):t,c;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?c=Ob(r.substring(1),"/"):c=Ob(r,n)):c=n,{pathname:c,search:cN(s),hash:uN(i)}}function Ob(t,n){let r=n.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function ym(t,n,r,s){return`Cannot include a '${t}' character in a manually specified \`to.${n}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function iN(t){return t.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function Rh(t){let n=iN(t);return n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase)}function ju(t,n,r,s=!1){let i;typeof t=="string"?i=Fo(t):(i={...t},Rt(!i.pathname||!i.pathname.includes("?"),ym("?","pathname","search",i)),Rt(!i.pathname||!i.pathname.includes("#"),ym("#","pathname","hash",i)),Rt(!i.search||!i.search.includes("#"),ym("#","search","hash",i)));let c=t===""||i.pathname==="",u=c?"/":i.pathname,f;if(u==null)f=r;else{let y=n.length-1;if(!s&&u.startsWith("..")){let w=u.split("/");for(;w[0]==="..";)w.shift(),y-=1;i.pathname=w.join("/")}f=y>=0?n[y]:"/"}let g=oN(i,f),p=u&&u!=="/"&&u.endsWith("/"),v=(c||u===".")&&r.endsWith("/");return!g.pathname.endsWith("/")&&(p||v)&&(g.pathname+="/"),g}var Oa=t=>t.join("/").replace(/\/\/+/g,"/"),lN=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),cN=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,uN=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,dN=class{constructor(t,n,r,s=!1){this.status=t,this.statusText=n||"",this.internal=s,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function fN(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function mN(t){return t.map(n=>n.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var O0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function k0(t,n){let r=t;if(typeof r!="string"||!sN.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let s=r,i=!1;if(O0)try{let c=new URL(window.location.href),u=r.startsWith("//")?new URL(c.protocol+r):new URL(r),f=rr(u.pathname,n);u.origin===c.origin&&f!=null?r=f+u.search+u.hash:i=!0}catch{oa(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:i,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var M0=["POST","PUT","PATCH","DELETE"];new Set(M0);var hN=["GET",...M0];new Set(hN);var $o=b.createContext(null);$o.displayName="DataRouter";var Tu=b.createContext(null);Tu.displayName="DataRouterState";var pN=b.createContext(!1),D0=b.createContext({isTransitioning:!1});D0.displayName="ViewTransition";var gN=b.createContext(new Map);gN.displayName="Fetchers";var yN=b.createContext(null);yN.displayName="Await";var Gn=b.createContext(null);Gn.displayName="Navigation";var ll=b.createContext(null);ll.displayName="Location";var ia=b.createContext({outlet:null,matches:[],isDataRoute:!1});ia.displayName="Route";var Ah=b.createContext(null);Ah.displayName="RouteError";var z0="REACT_ROUTER_ERROR",vN="REDIRECT",bN="ROUTE_ERROR_RESPONSE";function xN(t){if(t.startsWith(`${z0}:${vN}:{`))try{let n=JSON.parse(t.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 wN(t){if(t.startsWith(`${z0}:${bN}:{`))try{let n=JSON.parse(t.slice(40));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string")return new dN(n.status,n.statusText,n.data)}catch{}}function SN(t,{relative:n}={}){Rt(Go(),"useHref() may be used only in the context of a component.");let{basename:r,navigator:s}=b.useContext(Gn),{hash:i,pathname:c,search:u}=cl(t,{relative:n}),f=c;return r!=="/"&&(f=c==="/"?r:Oa([r,c])),s.createHref({pathname:f,search:u,hash:i})}function Go(){return b.useContext(ll)!=null}function Da(){return Rt(Go(),"useLocation() may be used only in the context of a component."),b.useContext(ll).location}var L0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function U0(t){b.useContext(Gn).static||b.useLayoutEffect(t)}function Xr(){let{isDataRoute:t}=b.useContext(ia);return t?BN():EN()}function EN(){Rt(Go(),"useNavigate() may be used only in the context of a component.");let t=b.useContext($o),{basename:n,navigator:r}=b.useContext(Gn),{matches:s}=b.useContext(ia),{pathname:i}=Da(),c=JSON.stringify(Rh(s)),u=b.useRef(!1);return U0(()=>{u.current=!0}),b.useCallback((g,p={})=>{if(oa(u.current,L0),!u.current)return;if(typeof g=="number"){r.go(g);return}let v=ju(g,JSON.parse(c),i,p.relative==="path");t==null&&n!=="/"&&(v.pathname=v.pathname==="/"?n:Oa([n,v.pathname])),(p.replace?r.replace:r.push)(v,p.state,p)},[n,r,c,i,t])}var _N=b.createContext(null);function CN(t){let n=b.useContext(ia).outlet;return b.useMemo(()=>n&&b.createElement(_N.Provider,{value:t},n),[n,t])}function NN(){let{matches:t}=b.useContext(ia),n=t[t.length-1];return n?n.params:{}}function cl(t,{relative:n}={}){let{matches:r}=b.useContext(ia),{pathname:s}=Da(),i=JSON.stringify(Rh(r));return b.useMemo(()=>ju(t,JSON.parse(i),s,n==="path"),[t,i,s,n])}function RN(t,n){return B0(t,n)}function B0(t,n,r){var _;Rt(Go(),"useRoutes() may be used only in the context of a component.");let{navigator:s}=b.useContext(Gn),{matches:i}=b.useContext(ia),c=i[i.length-1],u=c?c.params:{},f=c?c.pathname:"/",g=c?c.pathnameBase:"/",p=c&&c.route;{let R=p&&p.path||"";H0(f,!p||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${f}" (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 v=Da(),y;if(n){let R=typeof n=="string"?Fo(n):n;Rt(g==="/"||((_=R.pathname)==null?void 0:_.startsWith(g)),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${R.pathname}" was given in the \`location\` prop.`),y=R}else y=v;let w=y.pathname||"/",C=w;if(g!=="/"){let R=g.replace(/^\//,"").split("/");C="/"+w.replace(/^\//,"").split("/").slice(R.length).join("/")}let E=A0(t,{pathname:C});oa(p||E!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),oa(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let S=kN(E&&E.map(R=>Object.assign({},R,{params:Object.assign({},u,R.params),pathname:Oa([g,s.encodeLocation?s.encodeLocation(R.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?g:Oa([g,s.encodeLocation?s.encodeLocation(R.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathnameBase])})),i,r);return n&&S?b.createElement(ll.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...y},navigationType:"POP"}},S):S}function AN(){let t=UN(),n=fN(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,s="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:s},c={padding:"2px 4px",backgroundColor:s},u=null;return console.error("Error handled by React Router default ErrorBoundary:",t),u=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:c},"ErrorBoundary")," or"," ",b.createElement("code",{style:c},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},n),r?b.createElement("pre",{style:i},r):null,u)}var jN=b.createElement(AN,null),P0=class extends b.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){this.props.onError?this.props.onError(t,n):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const r=wN(t.digest);r&&(t=r)}let n=t!==void 0?b.createElement(ia.Provider,{value:this.props.routeContext},b.createElement(Ah.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?b.createElement(TN,{error:t},n):n}};P0.contextType=pN;var vm=new WeakMap;function TN({children:t,error:n}){let{basename:r}=b.useContext(Gn);if(typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){let s=xN(n.digest);if(s){let i=vm.get(n);if(i)throw i;let c=k0(s.location,r);if(O0&&!vm.get(n))if(c.isExternal||s.reloadDocument)window.location.href=c.absoluteURL||c.to;else{const u=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:s.replace}));throw vm.set(n,u),u}return b.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return t}function ON({routeContext:t,match:n,children:r}){let s=b.useContext($o);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(ia.Provider,{value:t},r)}function kN(t,n=[],r){let s=r==null?void 0:r.state;if(t==null){if(!s)return null;if(s.errors)t=s.matches;else if(n.length===0&&!s.initialized&&s.matches.length>0)t=s.matches;else return null}let i=t,c=s==null?void 0:s.errors;if(c!=null){let v=i.findIndex(y=>y.route.id&&(c==null?void 0:c[y.route.id])!==void 0);Rt(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),i=i.slice(0,Math.min(i.length,v+1))}let u=!1,f=-1;if(r&&s){u=s.renderFallback;for(let v=0;v=0?i=i.slice(0,f+1):i=[i[0]];break}}}}let g=r==null?void 0:r.onError,p=s&&g?(v,y)=>{var w,C;g(v,{location:s.location,params:((C=(w=s.matches)==null?void 0:w[0])==null?void 0:C.params)??{},unstable_pattern:mN(s.matches),errorInfo:y})}:void 0;return i.reduceRight((v,y,w)=>{let C,E=!1,S=null,_=null;s&&(C=c&&y.route.id?c[y.route.id]:void 0,S=y.route.errorElement||jN,u&&(f<0&&w===0?(H0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,_=null):f===w&&(E=!0,_=y.route.hydrateFallbackElement||null)));let R=n.concat(i.slice(0,w+1)),k=()=>{let A;return C?A=S:E?A=_:y.route.Component?A=b.createElement(y.route.Component,null):y.route.element?A=y.route.element:A=v,b.createElement(ON,{match:y,routeContext:{outlet:v,matches:R,isDataRoute:s!=null},children:A})};return s&&(y.route.ErrorBoundary||y.route.errorElement||w===0)?b.createElement(P0,{location:s.location,revalidation:s.revalidation,component:S,error:C,children:k(),routeContext:{outlet:null,matches:R,isDataRoute:!0},onError:p}):k()},null)}function jh(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function MN(t){let n=b.useContext($o);return Rt(n,jh(t)),n}function DN(t){let n=b.useContext(Tu);return Rt(n,jh(t)),n}function zN(t){let n=b.useContext(ia);return Rt(n,jh(t)),n}function Th(t){let n=zN(t),r=n.matches[n.matches.length-1];return Rt(r.route.id,`${t} can only be used on routes that contain a unique "id"`),r.route.id}function LN(){return Th("useRouteId")}function UN(){var s;let t=b.useContext(Ah),n=DN("useRouteError"),r=Th("useRouteError");return t!==void 0?t:(s=n.errors)==null?void 0:s[r]}function BN(){let{router:t}=MN("useNavigate"),n=Th("useNavigate"),r=b.useRef(!1);return U0(()=>{r.current=!0}),b.useCallback(async(i,c={})=>{oa(r.current,L0),r.current&&(typeof i=="number"?await t.navigate(i):await t.navigate(i,{fromRouteId:n,...c}))},[t,n])}var kb={};function H0(t,n,r){!n&&!kb[t]&&(kb[t]=!0,oa(!1,r))}b.memo(PN);function PN({routes:t,future:n,state:r,isStatic:s,onError:i}){return B0(t,void 0,{state:r,isStatic:s,onError:i})}function bm({to:t,replace:n,state:r,relative:s}){Rt(Go()," may be used only in the context of a component.");let{static:i}=b.useContext(Gn);oa(!i," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:c}=b.useContext(ia),{pathname:u}=Da(),f=Xr(),g=ju(t,Rh(c),u,s==="path"),p=JSON.stringify(g);return b.useEffect(()=>{f(JSON.parse(p),{replace:n,state:r,relative:s})},[f,p,s,n,r]),null}function HN(t){return CN(t.context)}function jn(t){Rt(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function VN({basename:t="/",children:n=null,location:r,navigationType:s="POP",navigator:i,static:c=!1,unstable_useTransitions:u}){Rt(!Go(),"You cannot render a inside another . You should never have more than one in your app.");let f=t.replace(/^\/*/,"/"),g=b.useMemo(()=>({basename:f,navigator:i,static:c,unstable_useTransitions:u,future:{}}),[f,i,c,u]);typeof r=="string"&&(r=Fo(r));let{pathname:p="/",search:v="",hash:y="",state:w=null,key:C="default",unstable_mask:E}=r,S=b.useMemo(()=>{let _=rr(p,f);return _==null?null:{location:{pathname:_,search:v,hash:y,state:w,key:C,unstable_mask:E},navigationType:s}},[f,p,v,y,w,C,s,E]);return oa(S!=null,` is not able to match the URL "${p}${v}${y}" because it does not start with the basename, so the won't render anything.`),S==null?null:b.createElement(Gn.Provider,{value:g},b.createElement(ll.Provider,{children:n,value:S}))}function IN({children:t,location:n}){return RN(Ym(t),n)}function Ym(t,n=[]){let r=[];return b.Children.forEach(t,(s,i)=>{if(!b.isValidElement(s))return;let c=[...n,i];if(s.type===b.Fragment){r.push.apply(r,Ym(s.props.children,c));return}Rt(s.type===jn,`[${typeof s.type=="string"?s.type:s.type.name}] is not a component. All component children of must be a or `),Rt(!s.props.index||!s.props.children,"An index route cannot have child routes.");let u={id:s.props.id||c.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(u.children=Ym(s.props.children,c)),r.push(u)}),r}var Zc="get",Xc="application/x-www-form-urlencoded";function Ou(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function qN(t){return Ou(t)&&t.tagName.toLowerCase()==="button"}function FN(t){return Ou(t)&&t.tagName.toLowerCase()==="form"}function $N(t){return Ou(t)&&t.tagName.toLowerCase()==="input"}function GN(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function YN(t,n){return t.button===0&&(!n||n==="_self")&&!GN(t)}function Zm(t=""){return new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((n,r)=>{let s=t[r];return n.concat(Array.isArray(s)?s.map(i=>[r,i]):[[r,s]])},[]))}function ZN(t,n){let r=Zm(t);return n&&n.forEach((s,i)=>{r.has(i)||n.getAll(i).forEach(c=>{r.append(i,c)})}),r}var Dc=null;function XN(){if(Dc===null)try{new FormData(document.createElement("form"),0),Dc=!1}catch{Dc=!0}return Dc}var KN=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function xm(t){return t!=null&&!KN.has(t)?(oa(!1,`"${t}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Xc}"`),null):t}function QN(t,n){let r,s,i,c,u;if(FN(t)){let f=t.getAttribute("action");s=f?rr(f,n):null,r=t.getAttribute("method")||Zc,i=xm(t.getAttribute("enctype"))||Xc,c=new FormData(t)}else if(qN(t)||$N(t)&&(t.type==="submit"||t.type==="image")){let f=t.form;if(f==null)throw new Error('Cannot submit a