function Yb(e,t){for(var n=0;no[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&o(u)}).observe(document,{childList:!0,subtree:!0});function n(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function o(s){if(s.ep)return;s.ep=!0;const l=n(s);fetch(s.href,l)}})();function zo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var id={exports:{}},Ss={},sd={exports:{}},De={};var pg;function qb(){if(pg)return De;pg=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.iterator;function x(j){return j===null||typeof j!="object"?null:(j=m&&j[m]||j["@@iterator"],typeof j=="function"?j:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,E={};function C(j,B,re){this.props=j,this.context=B,this.refs=E,this.updater=re||b}C.prototype.isReactComponent={},C.prototype.setState=function(j,B){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,B,"setState")},C.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function _(){}_.prototype=C.prototype;function R(j,B,re){this.props=j,this.context=B,this.refs=E,this.updater=re||b}var O=R.prototype=new _;O.constructor=R,k(O,C.prototype),O.isPureReactComponent=!0;var V=Array.isArray,z=Object.prototype.hasOwnProperty,G={current:null},q={key:!0,ref:!0,__self:!0,__source:!0};function J(j,B,re){var fe,me={},Te=null,Ie=null;if(B!=null)for(fe in B.ref!==void 0&&(Ie=B.ref),B.key!==void 0&&(Te=""+B.key),B)z.call(B,fe)&&!q.hasOwnProperty(fe)&&(me[fe]=B[fe]);var ye=arguments.length-2;if(ye===1)me.children=re;else if(1>>1,B=W[j];if(0>>1;js(me,X))Tes(Ie,me)?(W[j]=Ie,W[Te]=X,j=Te):(W[j]=me,W[fe]=X,j=fe);else if(Tes(Ie,X))W[j]=Ie,W[Te]=X,j=Te;else break e}}return oe}function s(W,oe){var X=W.sortIndex-oe.sortIndex;return X!==0?X:W.id-oe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var u=Date,c=u.now();e.unstable_now=function(){return u.now()-c}}var f=[],h=[],y=1,m=null,x=3,b=!1,k=!1,E=!1,C=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function O(W){for(var oe=n(h);oe!==null;){if(oe.callback===null)o(h);else if(oe.startTime<=W)o(h),oe.sortIndex=oe.expirationTime,t(f,oe);else break;oe=n(h)}}function V(W){if(E=!1,O(W),!k)if(n(f)!==null)k=!0,he(z);else{var oe=n(h);oe!==null&&ie(V,oe.startTime-W)}}function z(W,oe){k=!1,E&&(E=!1,_(J),J=-1),b=!0;var X=x;try{for(O(oe),m=n(f);m!==null&&(!(m.expirationTime>oe)||W&&!Oe());){var j=m.callback;if(typeof j=="function"){m.callback=null,x=m.priorityLevel;var B=j(m.expirationTime<=oe);oe=e.unstable_now(),typeof B=="function"?m.callback=B:m===n(f)&&o(f),O(oe)}else o(f);m=n(f)}if(m!==null)var re=!0;else{var fe=n(h);fe!==null&&ie(V,fe.startTime-oe),re=!1}return re}finally{m=null,x=X,b=!1}}var G=!1,q=null,J=-1,we=5,Se=-1;function Oe(){return!(e.unstable_now()-SeW||125j?(W.sortIndex=X,t(h,W),n(f)===null&&W===n(h)&&(E?(_(J),J=-1):E=!0,ie(V,X-j))):(W.sortIndex=B,t(f,W),k||b||(k=!0,he(z))),W},e.unstable_shouldYield=Oe,e.unstable_wrapCallback=function(W){var oe=x;return function(){var X=x;x=oe;try{return W.apply(this,arguments)}finally{x=X}}}})(ud)),ud}var vg;function eE(){return vg||(vg=1,ld.exports=Jb()),ld.exports}var xg;function tE(){if(xg)return en;xg=1;var e=Jl(),t=eE();function n(r){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+r,a=1;a"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,y={},m={};function x(r){return f.call(m,r)?!0:f.call(y,r)?!1:h.test(r)?m[r]=!0:(y[r]=!0,!1)}function b(r,i,a,d){if(a!==null&&a.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return d?!1:a!==null?!a.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function k(r,i,a,d){if(i===null||typeof i>"u"||b(r,i,a,d))return!0;if(d)return!1;if(a!==null)switch(a.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function E(r,i,a,d,p,g,w){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=d,this.attributeNamespace=p,this.mustUseProperty=a,this.propertyName=r,this.type=i,this.sanitizeURL=g,this.removeEmptyString=w}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){C[r]=new E(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var i=r[0];C[i]=new E(i,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){C[r]=new E(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){C[r]=new E(r,2,!1,r,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){C[r]=new E(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){C[r]=new E(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){C[r]=new E(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){C[r]=new E(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){C[r]=new E(r,5,!1,r.toLowerCase(),null,!1,!1)});var _=/[\-:]([a-z])/g;function R(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var i=r.replace(_,R);C[i]=new E(i,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var i=r.replace(_,R);C[i]=new E(i,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var i=r.replace(_,R);C[i]=new E(i,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){C[r]=new E(r,1,!1,r.toLowerCase(),null,!1,!1)}),C.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){C[r]=new E(r,1,!1,r.toLowerCase(),null,!0,!0)});function O(r,i,a,d){var p=C.hasOwnProperty(i)?C[i]:null;(p!==null?p.type!==0:d||!(2T||p[w]!==g[T]){var A=` `+p[w].replace(" at new "," at ");return r.displayName&&A.includes("")&&(A=A.replace("",r.displayName)),A}while(1<=w&&0<=T);break}}}finally{re=!1,Error.prepareStackTrace=a}return(r=r?r.displayName||r.name:"")?B(r):""}function me(r){switch(r.tag){case 5:return B(r.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return r=fe(r.type,!1),r;case 11:return r=fe(r.type.render,!1),r;case 1:return r=fe(r.type,!0),r;default:return""}}function Te(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case q:return"Fragment";case G:return"Portal";case we:return"Profiler";case J:return"StrictMode";case ae:return"Suspense";case Ee:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case Oe:return(r.displayName||"Context")+".Consumer";case Se:return(r._context.displayName||"Context")+".Provider";case te:var i=r.render;return r=r.displayName,r||(r=i.displayName||i.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case Pe:return i=r.displayName||null,i!==null?i:Te(r.type)||"Memo";case he:i=r._payload,r=r._init;try{return Te(r(i))}catch{}}return null}function Ie(r){var i=r.type;switch(r.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=i.render,r=r.displayName||r.name||"",i.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Te(i);case 8:return i===J?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function ye(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Me(r){var i=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function lt(r){var i=Me(r)?"checked":"value",a=Object.getOwnPropertyDescriptor(r.constructor.prototype,i),d=""+r[i];if(!r.hasOwnProperty(i)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var p=a.get,g=a.set;return Object.defineProperty(r,i,{configurable:!0,get:function(){return p.call(this)},set:function(w){d=""+w,g.call(this,w)}}),Object.defineProperty(r,i,{enumerable:a.enumerable}),{getValue:function(){return d},setValue:function(w){d=""+w},stopTracking:function(){r._valueTracker=null,delete r[i]}}}}function sn(r){r._valueTracker||(r._valueTracker=lt(r))}function an(r){if(!r)return!1;var i=r._valueTracker;if(!i)return!0;var a=i.getValue(),d="";return r&&(d=Me(r)?r.checked?"true":"false":r.value),r=d,r!==a?(i.setValue(r),!0):!1}function Tr(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function Wn(r,i){var a=i.checked;return X({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??r._wrapperState.initialChecked})}function $o(r,i){var a=i.defaultValue==null?"":i.defaultValue,d=i.checked!=null?i.checked:i.defaultChecked;a=ye(i.value!=null?i.value:a),r._wrapperState={initialChecked:d,initialValue:a,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function kr(r,i){i=i.checked,i!=null&&O(r,"checked",i,!1)}function mn(r,i){kr(r,i);var a=ye(i.value),d=i.type;if(a!=null)d==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+a):r.value!==""+a&&(r.value=""+a);else if(d==="submit"||d==="reset"){r.removeAttribute("value");return}i.hasOwnProperty("value")?Bt(r,i.type,a):i.hasOwnProperty("defaultValue")&&Bt(r,i.type,ye(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(r.defaultChecked=!!i.defaultChecked)}function co(r,i,a){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var d=i.type;if(!(d!=="submit"&&d!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+r._wrapperState.initialValue,a||i===r.value||(r.value=i),r.defaultValue=i}a=r.name,a!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,a!==""&&(r.name=a)}function Bt(r,i,a){(i!=="number"||Tr(r.ownerDocument)!==r)&&(a==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+a&&(r.defaultValue=""+a))}var _r=Array.isArray;function _n(r,i,a,d){if(r=r.options,i){i={};for(var p=0;p"+i.valueOf().toString()+"",i=le.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;i.firstChild;)r.appendChild(i.firstChild)}});function Ne(r,i){if(i){var a=r.firstChild;if(a&&a===r.lastChild&&a.nodeType===3){a.nodeValue=i;return}}r.textContent=i}var it={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},yt=["Webkit","ms","Moz","O"];Object.keys(it).forEach(function(r){yt.forEach(function(i){i=i+r.charAt(0).toUpperCase()+r.substring(1),it[i]=it[r]})});function vt(r,i,a){return i==null||typeof i=="boolean"||i===""?"":a||typeof i!="number"||i===0||it.hasOwnProperty(r)&&it[r]?(""+i).trim():i+"px"}function Bo(r,i){r=r.style;for(var a in i)if(i.hasOwnProperty(a)){var d=a.indexOf("--")===0,p=vt(a,i[a],d);a==="float"&&(a="cssFloat"),d?r.setProperty(a,p):r[a]=p}}var Pr=X({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Hn(r,i){if(i){if(Pr[r]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(n(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(n(61))}if(i.style!=null&&typeof i.style!="object")throw Error(n(62))}}function fo(r,i){if(r.indexOf("-")===-1)return typeof i.is=="string";switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Zn=null;function Gt(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Rr=null,Ar=null,ur=null;function Vi(r){if(r=ss(r)){if(typeof Rr!="function")throw Error(n(280));var i=r.stateNode;i&&(i=_a(i),Rr(r.stateNode,r.type,i))}}function Re(r){Ar?ur?ur.push(r):ur=[r]:Ar=r}function ut(){if(Ar){var r=Ar,i=ur;if(ur=Ar=null,Vi(r),i)for(r=0;r>>=0,r===0?32:31-(dS(r)/fS|0)|0}var ua=64,ca=4194304;function Bi(r){switch(r&-r){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: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 r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function da(r,i){var a=r.pendingLanes;if(a===0)return 0;var d=0,p=r.suspendedLanes,g=r.pingedLanes,w=a&268435455;if(w!==0){var T=w&~p;T!==0?d=Bi(T):(g&=w,g!==0&&(d=Bi(g)))}else w=a&~p,w!==0?d=Bi(w):g!==0&&(d=Bi(g));if(d===0)return 0;if(i!==0&&i!==d&&(i&p)===0&&(p=d&-d,g=i&-i,p>=g||p===16&&(g&4194240)!==0))return i;if((d&4)!==0&&(d|=a&16),i=r.entangledLanes,i!==0)for(r=r.entanglements,i&=d;0a;a++)i.push(r);return i}function Ui(r,i,a){r.pendingLanes|=i,i!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,i=31-Pn(i),r[i]=a}function gS(r,i){var a=r.pendingLanes&~i;r.pendingLanes=i,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=i,r.mutableReadLanes&=i,r.entangledLanes&=i,i=r.entanglements;var d=r.eventTimes;for(r=r.expirationTimes;0=Xi),sh=" ",ah=!1;function lh(r,i){switch(r){case"keyup":return WS.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uh(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Ho=!1;function ZS(r,i){switch(r){case"compositionend":return uh(i);case"keypress":return i.which!==32?null:(ah=!0,sh);case"textInput":return r=i.data,r===sh&&ah?null:r;default:return null}}function KS(r,i){if(Ho)return r==="compositionend"||!Fu&&lh(r,i)?(r=eh(),ga=Ou=zr=null,Ho=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1=i)return{node:a,offset:i-r};r=d}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=gh(a)}}function vh(r,i){return r&&i?r===i?!0:r&&r.nodeType===3?!1:i&&i.nodeType===3?vh(r,i.parentNode):"contains"in r?r.contains(i):r.compareDocumentPosition?!!(r.compareDocumentPosition(i)&16):!1:!1}function xh(){for(var r=window,i=Tr();i instanceof r.HTMLIFrameElement;){try{var a=typeof i.contentWindow.location.href=="string"}catch{a=!1}if(a)r=i.contentWindow;else break;i=Tr(r.document)}return i}function Bu(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i&&(i==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||i==="textarea"||r.contentEditable==="true")}function nb(r){var i=xh(),a=r.focusedElem,d=r.selectionRange;if(i!==a&&a&&a.ownerDocument&&vh(a.ownerDocument.documentElement,a)){if(d!==null&&Bu(a)){if(i=d.start,r=d.end,r===void 0&&(r=i),"selectionStart"in a)a.selectionStart=i,a.selectionEnd=Math.min(r,a.value.length);else if(r=(i=a.ownerDocument||document)&&i.defaultView||window,r.getSelection){r=r.getSelection();var p=a.textContent.length,g=Math.min(d.start,p);d=d.end===void 0?g:Math.min(d.end,p),!r.extend&&g>d&&(p=d,d=g,g=p),p=yh(a,g);var w=yh(a,d);p&&w&&(r.rangeCount!==1||r.anchorNode!==p.node||r.anchorOffset!==p.offset||r.focusNode!==w.node||r.focusOffset!==w.offset)&&(i=i.createRange(),i.setStart(p.node,p.offset),r.removeAllRanges(),g>d?(r.addRange(i),r.extend(w.node,w.offset)):(i.setEnd(w.node,w.offset),r.addRange(i)))}}for(i=[],r=a;r=r.parentNode;)r.nodeType===1&&i.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a=document.documentMode,Zo=null,Uu=null,ts=null,Wu=!1;function wh(r,i,a){var d=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Wu||Zo==null||Zo!==Tr(d)||(d=Zo,"selectionStart"in d&&Bu(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),ts&&es(ts,d)||(ts=d,d=Ca(Uu,"onSelect"),0Xo||(r.current=nc[Xo],nc[Xo]=null,Xo--)}function Be(r,i){Xo++,nc[Xo]=r.current,r.current=i}var Br={},Mt=$r(Br),Yt=$r(!1),mo=Br;function Qo(r,i){var a=r.type.contextTypes;if(!a)return Br;var d=r.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===i)return d.__reactInternalMemoizedMaskedChildContext;var p={},g;for(g in a)p[g]=i[g];return d&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=i,r.__reactInternalMemoizedMaskedChildContext=p),p}function qt(r){return r=r.childContextTypes,r!=null}function Pa(){Ze(Yt),Ze(Mt)}function Ih(r,i,a){if(Mt.current!==Br)throw Error(n(168));Be(Mt,i),Be(Yt,a)}function Mh(r,i,a){var d=r.stateNode;if(i=i.childContextTypes,typeof d.getChildContext!="function")return a;d=d.getChildContext();for(var p in d)if(!(p in i))throw Error(n(108,Ie(r)||"Unknown",p));return X({},a,d)}function Ra(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Br,mo=Mt.current,Be(Mt,r),Be(Yt,Yt.current),!0}function Lh(r,i,a){var d=r.stateNode;if(!d)throw Error(n(169));a?(r=Mh(r,i,mo),d.__reactInternalMemoizedMergedChildContext=r,Ze(Yt),Ze(Mt),Be(Mt,r)):Ze(Yt),Be(Yt,a)}var dr=null,Aa=!1,rc=!1;function zh(r){dr===null?dr=[r]:dr.push(r)}function hb(r){Aa=!0,zh(r)}function Ur(){if(!rc&&dr!==null){rc=!0;var r=0,i=Fe;try{var a=dr;for(Fe=1;r>=w,p-=w,fr=1<<32-Pn(i)+p|a<ke?(Rt=xe,xe=null):Rt=xe.sibling;var ze=H(I,xe,M[ke],Q);if(ze===null){xe===null&&(xe=Rt);break}r&&xe&&ze.alternate===null&&i(I,xe),N=g(ze,N,ke),ve===null?ge=ze:ve.sibling=ze,ve=ze,xe=Rt}if(ke===M.length)return a(I,xe),Ye&&yo(I,ke),ge;if(xe===null){for(;keke?(Rt=xe,xe=null):Rt=xe.sibling;var Qr=H(I,xe,ze.value,Q);if(Qr===null){xe===null&&(xe=Rt);break}r&&xe&&Qr.alternate===null&&i(I,xe),N=g(Qr,N,ke),ve===null?ge=Qr:ve.sibling=Qr,ve=Qr,xe=Rt}if(ze.done)return a(I,xe),Ye&&yo(I,ke),ge;if(xe===null){for(;!ze.done;ke++,ze=M.next())ze=K(I,ze.value,Q),ze!==null&&(N=g(ze,N,ke),ve===null?ge=ze:ve.sibling=ze,ve=ze);return Ye&&yo(I,ke),ge}for(xe=d(I,xe);!ze.done;ke++,ze=M.next())ze=se(xe,I,ke,ze.value,Q),ze!==null&&(r&&ze.alternate!==null&&xe.delete(ze.key===null?ke:ze.key),N=g(ze,N,ke),ve===null?ge=ze:ve.sibling=ze,ve=ze);return r&&xe.forEach(function(Gb){return i(I,Gb)}),Ye&&yo(I,ke),ge}function dt(I,N,M,Q){if(typeof M=="object"&&M!==null&&M.type===q&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case z:e:{for(var ge=M.key,ve=N;ve!==null;){if(ve.key===ge){if(ge=M.type,ge===q){if(ve.tag===7){a(I,ve.sibling),N=p(ve,M.props.children),N.return=I,I=N;break e}}else if(ve.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===he&&Wh(ge)===ve.type){a(I,ve.sibling),N=p(ve,M.props),N.ref=as(I,ve,M),N.return=I,I=N;break e}a(I,ve);break}else i(I,ve);ve=ve.sibling}M.type===q?(N=To(M.props.children,I.mode,Q,M.key),N.return=I,I=N):(Q=ol(M.type,M.key,M.props,null,I.mode,Q),Q.ref=as(I,N,M),Q.return=I,I=Q)}return w(I);case G:e:{for(ve=M.key;N!==null;){if(N.key===ve)if(N.tag===4&&N.stateNode.containerInfo===M.containerInfo&&N.stateNode.implementation===M.implementation){a(I,N.sibling),N=p(N,M.children||[]),N.return=I,I=N;break e}else{a(I,N);break}else i(I,N);N=N.sibling}N=ed(M,I.mode,Q),N.return=I,I=N}return w(I);case he:return ve=M._init,dt(I,N,ve(M._payload),Q)}if(_r(M))return de(I,N,M,Q);if(oe(M))return pe(I,N,M,Q);Da(I,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,N!==null&&N.tag===6?(a(I,N.sibling),N=p(N,M),N.return=I,I=N):(a(I,N),N=Jc(M,I.mode,Q),N.return=I,I=N),w(I)):a(I,N)}return dt}var ni=Hh(!0),Zh=Hh(!1),Ia=$r(null),Ma=null,ri=null,uc=null;function cc(){uc=ri=Ma=null}function dc(r){var i=Ia.current;Ze(Ia),r._currentValue=i}function fc(r,i,a){for(;r!==null;){var d=r.alternate;if((r.childLanes&i)!==i?(r.childLanes|=i,d!==null&&(d.childLanes|=i)):d!==null&&(d.childLanes&i)!==i&&(d.childLanes|=i),r===a)break;r=r.return}}function oi(r,i){Ma=r,uc=ri=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&i)!==0&&(Xt=!0),r.firstContext=null)}function xn(r){var i=r._currentValue;if(uc!==r)if(r={context:r,memoizedValue:i,next:null},ri===null){if(Ma===null)throw Error(n(308));ri=r,Ma.dependencies={lanes:0,firstContext:r}}else ri=ri.next=r;return i}var vo=null;function pc(r){vo===null?vo=[r]:vo.push(r)}function Kh(r,i,a,d){var p=i.interleaved;return p===null?(a.next=a,pc(i)):(a.next=p.next,p.next=a),i.interleaved=a,hr(r,d)}function hr(r,i){r.lanes|=i;var a=r.alternate;for(a!==null&&(a.lanes|=i),a=r,r=r.return;r!==null;)r.childLanes|=i,a=r.alternate,a!==null&&(a.childLanes|=i),a=r,r=r.return;return a.tag===3?a.stateNode:null}var Wr=!1;function hc(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Gh(r,i){r=r.updateQueue,i.updateQueue===r&&(i.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function mr(r,i){return{eventTime:r,lane:i,tag:0,payload:null,callback:null,next:null}}function Hr(r,i,a){var d=r.updateQueue;if(d===null)return null;if(d=d.shared,(Le&2)!==0){var p=d.pending;return p===null?i.next=i:(i.next=p.next,p.next=i),d.pending=i,hr(r,a)}return p=d.interleaved,p===null?(i.next=i,pc(d)):(i.next=p.next,p.next=i),d.interleaved=i,hr(r,a)}function La(r,i,a){if(i=i.updateQueue,i!==null&&(i=i.shared,(a&4194240)!==0)){var d=i.lanes;d&=r.pendingLanes,a|=d,i.lanes=a,Pu(r,a)}}function Yh(r,i){var a=r.updateQueue,d=r.alternate;if(d!==null&&(d=d.updateQueue,a===d)){var p=null,g=null;if(a=a.firstBaseUpdate,a!==null){do{var w={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};g===null?p=g=w:g=g.next=w,a=a.next}while(a!==null);g===null?p=g=i:g=g.next=i}else p=g=i;a={baseState:d.baseState,firstBaseUpdate:p,lastBaseUpdate:g,shared:d.shared,effects:d.effects},r.updateQueue=a;return}r=a.lastBaseUpdate,r===null?a.firstBaseUpdate=i:r.next=i,a.lastBaseUpdate=i}function za(r,i,a,d){var p=r.updateQueue;Wr=!1;var g=p.firstBaseUpdate,w=p.lastBaseUpdate,T=p.shared.pending;if(T!==null){p.shared.pending=null;var A=T,L=A.next;A.next=null,w===null?g=L:w.next=L,w=A;var Z=r.alternate;Z!==null&&(Z=Z.updateQueue,T=Z.lastBaseUpdate,T!==w&&(T===null?Z.firstBaseUpdate=L:T.next=L,Z.lastBaseUpdate=A))}if(g!==null){var K=p.baseState;w=0,Z=L=A=null,T=g;do{var H=T.lane,se=T.eventTime;if((d&H)===H){Z!==null&&(Z=Z.next={eventTime:se,lane:0,tag:T.tag,payload:T.payload,callback:T.callback,next:null});e:{var de=r,pe=T;switch(H=i,se=a,pe.tag){case 1:if(de=pe.payload,typeof de=="function"){K=de.call(se,K,H);break e}K=de;break e;case 3:de.flags=de.flags&-65537|128;case 0:if(de=pe.payload,H=typeof de=="function"?de.call(se,K,H):de,H==null)break e;K=X({},K,H);break e;case 2:Wr=!0}}T.callback!==null&&T.lane!==0&&(r.flags|=64,H=p.effects,H===null?p.effects=[T]:H.push(T))}else se={eventTime:se,lane:H,tag:T.tag,payload:T.payload,callback:T.callback,next:null},Z===null?(L=Z=se,A=K):Z=Z.next=se,w|=H;if(T=T.next,T===null){if(T=p.shared.pending,T===null)break;H=T,T=H.next,H.next=null,p.lastBaseUpdate=H,p.shared.pending=null}}while(!0);if(Z===null&&(A=K),p.baseState=A,p.firstBaseUpdate=L,p.lastBaseUpdate=Z,i=p.shared.interleaved,i!==null){p=i;do w|=p.lane,p=p.next;while(p!==i)}else g===null&&(p.shared.lanes=0);So|=w,r.lanes=w,r.memoizedState=K}}function qh(r,i,a){if(r=i.effects,i.effects=null,r!==null)for(i=0;ia?a:4,r(!0);var d=xc.transition;xc.transition={};try{r(!1),i()}finally{Fe=a,xc.transition=d}}function mm(){return wn().memoizedState}function vb(r,i,a){var d=Yr(r);if(a={lane:d,action:a,hasEagerState:!1,eagerState:null,next:null},gm(r))ym(i,a);else if(a=Kh(r,i,a,d),a!==null){var p=Wt();Dn(a,r,d,p),vm(a,i,d)}}function xb(r,i,a){var d=Yr(r),p={lane:d,action:a,hasEagerState:!1,eagerState:null,next:null};if(gm(r))ym(i,p);else{var g=r.alternate;if(r.lanes===0&&(g===null||g.lanes===0)&&(g=i.lastRenderedReducer,g!==null))try{var w=i.lastRenderedState,T=g(w,a);if(p.hasEagerState=!0,p.eagerState=T,Rn(T,w)){var A=i.interleaved;A===null?(p.next=p,pc(i)):(p.next=A.next,A.next=p),i.interleaved=p;return}}catch{}a=Kh(r,i,p,d),a!==null&&(p=Wt(),Dn(a,r,d,p),vm(a,i,d))}}function gm(r){var i=r.alternate;return r===et||i!==null&&i===et}function ym(r,i){ds=$a=!0;var a=r.pending;a===null?i.next=i:(i.next=a.next,a.next=i),r.pending=i}function vm(r,i,a){if((a&4194240)!==0){var d=i.lanes;d&=r.pendingLanes,a|=d,i.lanes=a,Pu(r,a)}}var Wa={readContext:xn,useCallback:Lt,useContext:Lt,useEffect:Lt,useImperativeHandle:Lt,useInsertionEffect:Lt,useLayoutEffect:Lt,useMemo:Lt,useReducer:Lt,useRef:Lt,useState:Lt,useDebugValue:Lt,useDeferredValue:Lt,useTransition:Lt,useMutableSource:Lt,useSyncExternalStore:Lt,useId:Lt,unstable_isNewReconciler:!1},wb={readContext:xn,useCallback:function(r,i){return qn().memoizedState=[r,i===void 0?null:i],r},useContext:xn,useEffect:am,useImperativeHandle:function(r,i,a){return a=a!=null?a.concat([r]):null,Ba(4194308,4,cm.bind(null,i,r),a)},useLayoutEffect:function(r,i){return Ba(4194308,4,r,i)},useInsertionEffect:function(r,i){return Ba(4,2,r,i)},useMemo:function(r,i){var a=qn();return i=i===void 0?null:i,r=r(),a.memoizedState=[r,i],r},useReducer:function(r,i,a){var d=qn();return i=a!==void 0?a(i):i,d.memoizedState=d.baseState=i,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:i},d.queue=r,r=r.dispatch=vb.bind(null,et,r),[d.memoizedState,r]},useRef:function(r){var i=qn();return r={current:r},i.memoizedState=r},useState:im,useDebugValue:kc,useDeferredValue:function(r){return qn().memoizedState=r},useTransition:function(){var r=im(!1),i=r[0];return r=yb.bind(null,r[1]),qn().memoizedState=r,[i,r]},useMutableSource:function(){},useSyncExternalStore:function(r,i,a){var d=et,p=qn();if(Ye){if(a===void 0)throw Error(n(407));a=a()}else{if(a=i(),Pt===null)throw Error(n(349));(wo&30)!==0||em(d,i,a)}p.memoizedState=a;var g={value:a,getSnapshot:i};return p.queue=g,am(nm.bind(null,d,g,r),[r]),d.flags|=2048,hs(9,tm.bind(null,d,g,a,i),void 0,null),a},useId:function(){var r=qn(),i=Pt.identifierPrefix;if(Ye){var a=pr,d=fr;a=(d&~(1<<32-Pn(d)-1)).toString(32)+a,i=":"+i+"R"+a,a=fs++,0<\/script>",r=r.removeChild(r.firstChild)):typeof d.is=="string"?r=w.createElement(a,{is:d.is}):(r=w.createElement(a),a==="select"&&(w=r,d.multiple?w.multiple=!0:d.size&&(w.size=d.size))):r=w.createElementNS(r,a),r[Gn]=i,r[is]=d,zm(r,i,!1,!1),i.stateNode=r;e:{switch(w=fo(a,d),a){case"dialog":He("cancel",r),He("close",r),p=d;break;case"iframe":case"object":case"embed":He("load",r),p=d;break;case"video":case"audio":for(p=0;pui&&(i.flags|=128,d=!0,ms(g,!1),i.lanes=4194304)}else{if(!d)if(r=Fa(w),r!==null){if(i.flags|=128,d=!0,a=r.updateQueue,a!==null&&(i.updateQueue=a,i.flags|=4),ms(g,!0),g.tail===null&&g.tailMode==="hidden"&&!w.alternate&&!Ye)return zt(i),null}else 2*ct()-g.renderingStartTime>ui&&a!==1073741824&&(i.flags|=128,d=!0,ms(g,!1),i.lanes=4194304);g.isBackwards?(w.sibling=i.child,i.child=w):(a=g.last,a!==null?a.sibling=w:i.child=w,g.last=w)}return g.tail!==null?(i=g.tail,g.rendering=i,g.tail=i.sibling,g.renderingStartTime=ct(),i.sibling=null,a=Je.current,Be(Je,d?a&1|2:a&1),i):(zt(i),null);case 22:case 23:return qc(),d=i.memoizedState!==null,r!==null&&r.memoizedState!==null!==d&&(i.flags|=8192),d&&(i.mode&1)!==0?(fn&1073741824)!==0&&(zt(i),i.subtreeFlags&6&&(i.flags|=8192)):zt(i),null;case 24:return null;case 25:return null}throw Error(n(156,i.tag))}function Pb(r,i){switch(ic(i),i.tag){case 1:return qt(i.type)&&Pa(),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 3:return ii(),Ze(Yt),Ze(Mt),vc(),r=i.flags,(r&65536)!==0&&(r&128)===0?(i.flags=r&-65537|128,i):null;case 5:return gc(i),null;case 13:if(Ze(Je),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(n(340));ti()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return Ze(Je),null;case 4:return ii(),null;case 10:return dc(i.type._context),null;case 22:case 23:return qc(),null;case 24:return null;default:return null}}var Ga=!1,Ft=!1,Rb=typeof WeakSet=="function"?WeakSet:Set,ue=null;function ai(r,i){var a=r.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(d){st(r,i,d)}else a.current=null}function zc(r,i,a){try{a()}catch(d){st(r,i,d)}}var $m=!1;function Ab(r,i){if(qu=ha,r=xh(),Bu(r)){if("selectionStart"in r)var a={start:r.selectionStart,end:r.selectionEnd};else e:{a=(a=r.ownerDocument)&&a.defaultView||window;var d=a.getSelection&&a.getSelection();if(d&&d.rangeCount!==0){a=d.anchorNode;var p=d.anchorOffset,g=d.focusNode;d=d.focusOffset;try{a.nodeType,g.nodeType}catch{a=null;break e}var w=0,T=-1,A=-1,L=0,Z=0,K=r,H=null;t:for(;;){for(var se;K!==a||p!==0&&K.nodeType!==3||(T=w+p),K!==g||d!==0&&K.nodeType!==3||(A=w+d),K.nodeType===3&&(w+=K.nodeValue.length),(se=K.firstChild)!==null;)H=K,K=se;for(;;){if(K===r)break t;if(H===a&&++L===p&&(T=w),H===g&&++Z===d&&(A=w),(se=K.nextSibling)!==null)break;K=H,H=K.parentNode}K=se}a=T===-1||A===-1?null:{start:T,end:A}}else a=null}a=a||{start:0,end:0}}else a=null;for(Xu={focusedElem:r,selectionRange:a},ha=!1,ue=i;ue!==null;)if(i=ue,r=i.child,(i.subtreeFlags&1028)!==0&&r!==null)r.return=i,ue=r;else for(;ue!==null;){i=ue;try{var de=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(de!==null){var pe=de.memoizedProps,dt=de.memoizedState,I=i.stateNode,N=I.getSnapshotBeforeUpdate(i.elementType===i.type?pe:Nn(i.type,pe),dt);I.__reactInternalSnapshotBeforeUpdate=N}break;case 3:var M=i.stateNode.containerInfo;M.nodeType===1?M.textContent="":M.nodeType===9&&M.documentElement&&M.removeChild(M.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Q){st(i,i.return,Q)}if(r=i.sibling,r!==null){r.return=i.return,ue=r;break}ue=i.return}return de=$m,$m=!1,de}function gs(r,i,a){var d=i.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var p=d=d.next;do{if((p.tag&r)===r){var g=p.destroy;p.destroy=void 0,g!==void 0&&zc(i,a,g)}p=p.next}while(p!==d)}}function Ya(r,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var a=i=i.next;do{if((a.tag&r)===r){var d=a.create;a.destroy=d()}a=a.next}while(a!==i)}}function Fc(r){var i=r.ref;if(i!==null){var a=r.stateNode;r.tag,r=a,typeof i=="function"?i(r):i.current=r}}function Bm(r){var i=r.alternate;i!==null&&(r.alternate=null,Bm(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&(delete i[Gn],delete i[is],delete i[tc],delete i[fb],delete i[pb])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function Um(r){return r.tag===5||r.tag===3||r.tag===4}function Wm(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Um(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Vc(r,i,a){var d=r.tag;if(d===5||d===6)r=r.stateNode,i?a.nodeType===8?a.parentNode.insertBefore(r,i):a.insertBefore(r,i):(a.nodeType===8?(i=a.parentNode,i.insertBefore(r,a)):(i=a,i.appendChild(r)),a=a._reactRootContainer,a!=null||i.onclick!==null||(i.onclick=ka));else if(d!==4&&(r=r.child,r!==null))for(Vc(r,i,a),r=r.sibling;r!==null;)Vc(r,i,a),r=r.sibling}function $c(r,i,a){var d=r.tag;if(d===5||d===6)r=r.stateNode,i?a.insertBefore(r,i):a.appendChild(r);else if(d!==4&&(r=r.child,r!==null))for($c(r,i,a),r=r.sibling;r!==null;)$c(r,i,a),r=r.sibling}var Nt=null,jn=!1;function Zr(r,i,a){for(a=a.child;a!==null;)Hm(r,i,a),a=a.sibling}function Hm(r,i,a){if(Kn&&typeof Kn.onCommitFiberUnmount=="function")try{Kn.onCommitFiberUnmount(la,a)}catch{}switch(a.tag){case 5:Ft||ai(a,i);case 6:var d=Nt,p=jn;Nt=null,Zr(r,i,a),Nt=d,jn=p,Nt!==null&&(jn?(r=Nt,a=a.stateNode,r.nodeType===8?r.parentNode.removeChild(a):r.removeChild(a)):Nt.removeChild(a.stateNode));break;case 18:Nt!==null&&(jn?(r=Nt,a=a.stateNode,r.nodeType===8?ec(r.parentNode,a):r.nodeType===1&&ec(r,a),Gi(r)):ec(Nt,a.stateNode));break;case 4:d=Nt,p=jn,Nt=a.stateNode.containerInfo,jn=!0,Zr(r,i,a),Nt=d,jn=p;break;case 0:case 11:case 14:case 15:if(!Ft&&(d=a.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){p=d=d.next;do{var g=p,w=g.destroy;g=g.tag,w!==void 0&&((g&2)!==0||(g&4)!==0)&&zc(a,i,w),p=p.next}while(p!==d)}Zr(r,i,a);break;case 1:if(!Ft&&(ai(a,i),d=a.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=a.memoizedProps,d.state=a.memoizedState,d.componentWillUnmount()}catch(T){st(a,i,T)}Zr(r,i,a);break;case 21:Zr(r,i,a);break;case 22:a.mode&1?(Ft=(d=Ft)||a.memoizedState!==null,Zr(r,i,a),Ft=d):Zr(r,i,a);break;default:Zr(r,i,a)}}function Zm(r){var i=r.updateQueue;if(i!==null){r.updateQueue=null;var a=r.stateNode;a===null&&(a=r.stateNode=new Rb),i.forEach(function(d){var p=Fb.bind(null,r,d);a.has(d)||(a.add(d),d.then(p,p))})}}function On(r,i){var a=i.deletions;if(a!==null)for(var d=0;dp&&(p=w),d&=~g}if(d=p,d=ct()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*jb(d/1960))-d,10r?16:r,Gr===null)var d=!1;else{if(r=Gr,Gr=null,el=0,(Le&6)!==0)throw Error(n(331));var p=Le;for(Le|=4,ue=r.current;ue!==null;){var g=ue,w=g.child;if((ue.flags&16)!==0){var T=g.deletions;if(T!==null){for(var A=0;Act()-Wc?Eo(r,0):Uc|=a),Jt(r,i)}function ig(r,i){i===0&&((r.mode&1)===0?i=1:(i=ca,ca<<=1,(ca&130023424)===0&&(ca=4194304)));var a=Wt();r=hr(r,i),r!==null&&(Ui(r,i,a),Jt(r,a))}function zb(r){var i=r.memoizedState,a=0;i!==null&&(a=i.retryLane),ig(r,a)}function Fb(r,i){var a=0;switch(r.tag){case 13:var d=r.stateNode,p=r.memoizedState;p!==null&&(a=p.retryLane);break;case 19:d=r.stateNode;break;default:throw Error(n(314))}d!==null&&d.delete(i),ig(r,a)}var sg;sg=function(r,i,a){if(r!==null)if(r.memoizedProps!==i.pendingProps||Yt.current)Xt=!0;else{if((r.lanes&a)===0&&(i.flags&128)===0)return Xt=!1,kb(r,i,a);Xt=(r.flags&131072)!==0}else Xt=!1,Ye&&(i.flags&1048576)!==0&&Fh(i,ja,i.index);switch(i.lanes=0,i.tag){case 2:var d=i.type;Ka(r,i),r=i.pendingProps;var p=Qo(i,Mt.current);oi(i,a),p=Sc(null,i,d,r,p,a);var g=bc();return i.flags|=1,typeof p=="object"&&p!==null&&typeof p.render=="function"&&p.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,qt(d)?(g=!0,Ra(i)):g=!1,i.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,hc(i),p.updater=Ha,i.stateNode=p,p._reactInternals=i,Pc(i,d,r,a),i=jc(null,i,d,!0,g,a)):(i.tag=0,Ye&&g&&oc(i),Ut(null,i,p,a),i=i.child),i;case 16:d=i.elementType;e:{switch(Ka(r,i),r=i.pendingProps,p=d._init,d=p(d._payload),i.type=d,p=i.tag=$b(d),r=Nn(d,r),p){case 0:i=Nc(null,i,d,r,a);break e;case 1:i=jm(null,i,d,r,a);break e;case 11:i=_m(null,i,d,r,a);break e;case 14:i=Pm(null,i,d,Nn(d.type,r),a);break e}throw Error(n(306,d,""))}return i;case 0:return d=i.type,p=i.pendingProps,p=i.elementType===d?p:Nn(d,p),Nc(r,i,d,p,a);case 1:return d=i.type,p=i.pendingProps,p=i.elementType===d?p:Nn(d,p),jm(r,i,d,p,a);case 3:e:{if(Om(i),r===null)throw Error(n(387));d=i.pendingProps,g=i.memoizedState,p=g.element,Gh(r,i),za(i,d,null,a);var w=i.memoizedState;if(d=w.element,g.isDehydrated)if(g={element:d,isDehydrated:!1,cache:w.cache,pendingSuspenseBoundaries:w.pendingSuspenseBoundaries,transitions:w.transitions},i.updateQueue.baseState=g,i.memoizedState=g,i.flags&256){p=si(Error(n(423)),i),i=Dm(r,i,d,a,p);break e}else if(d!==p){p=si(Error(n(424)),i),i=Dm(r,i,d,a,p);break e}else for(dn=Vr(i.stateNode.containerInfo.firstChild),cn=i,Ye=!0,An=null,a=Zh(i,null,d,a),i.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(ti(),d===p){i=gr(r,i,a);break e}Ut(r,i,d,a)}i=i.child}return i;case 5:return Xh(i),r===null&&ac(i),d=i.type,p=i.pendingProps,g=r!==null?r.memoizedProps:null,w=p.children,Qu(d,p)?w=null:g!==null&&Qu(d,g)&&(i.flags|=32),Nm(r,i),Ut(r,i,w,a),i.child;case 6:return r===null&&ac(i),null;case 13:return Im(r,i,a);case 4:return mc(i,i.stateNode.containerInfo),d=i.pendingProps,r===null?i.child=ni(i,null,d,a):Ut(r,i,d,a),i.child;case 11:return d=i.type,p=i.pendingProps,p=i.elementType===d?p:Nn(d,p),_m(r,i,d,p,a);case 7:return Ut(r,i,i.pendingProps,a),i.child;case 8:return Ut(r,i,i.pendingProps.children,a),i.child;case 12:return Ut(r,i,i.pendingProps.children,a),i.child;case 10:e:{if(d=i.type._context,p=i.pendingProps,g=i.memoizedProps,w=p.value,Be(Ia,d._currentValue),d._currentValue=w,g!==null)if(Rn(g.value,w)){if(g.children===p.children&&!Yt.current){i=gr(r,i,a);break e}}else for(g=i.child,g!==null&&(g.return=i);g!==null;){var T=g.dependencies;if(T!==null){w=g.child;for(var A=T.firstContext;A!==null;){if(A.context===d){if(g.tag===1){A=mr(-1,a&-a),A.tag=2;var L=g.updateQueue;if(L!==null){L=L.shared;var Z=L.pending;Z===null?A.next=A:(A.next=Z.next,Z.next=A),L.pending=A}}g.lanes|=a,A=g.alternate,A!==null&&(A.lanes|=a),fc(g.return,a,i),T.lanes|=a;break}A=A.next}}else if(g.tag===10)w=g.type===i.type?null:g.child;else if(g.tag===18){if(w=g.return,w===null)throw Error(n(341));w.lanes|=a,T=w.alternate,T!==null&&(T.lanes|=a),fc(w,a,i),w=g.sibling}else w=g.child;if(w!==null)w.return=g;else for(w=g;w!==null;){if(w===i){w=null;break}if(g=w.sibling,g!==null){g.return=w.return,w=g;break}w=w.return}g=w}Ut(r,i,p.children,a),i=i.child}return i;case 9:return p=i.type,d=i.pendingProps.children,oi(i,a),p=xn(p),d=d(p),i.flags|=1,Ut(r,i,d,a),i.child;case 14:return d=i.type,p=Nn(d,i.pendingProps),p=Nn(d.type,p),Pm(r,i,d,p,a);case 15:return Rm(r,i,i.type,i.pendingProps,a);case 17:return d=i.type,p=i.pendingProps,p=i.elementType===d?p:Nn(d,p),Ka(r,i),i.tag=1,qt(d)?(r=!0,Ra(i)):r=!1,oi(i,a),wm(i,d,p),Pc(i,d,p,a),jc(null,i,d,!0,r,a);case 19:return Lm(r,i,a);case 22:return Am(r,i,a)}throw Error(n(156,i.tag))};function ag(r,i){return Vp(r,i)}function Vb(r,i,a,d){this.tag=r,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bn(r,i,a,d){return new Vb(r,i,a,d)}function Qc(r){return r=r.prototype,!(!r||!r.isReactComponent)}function $b(r){if(typeof r=="function")return Qc(r)?1:0;if(r!=null){if(r=r.$$typeof,r===te)return 11;if(r===Pe)return 14}return 2}function Xr(r,i){var a=r.alternate;return a===null?(a=bn(r.tag,i,r.key,r.mode),a.elementType=r.elementType,a.type=r.type,a.stateNode=r.stateNode,a.alternate=r,r.alternate=a):(a.pendingProps=i,a.type=r.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=r.flags&14680064,a.childLanes=r.childLanes,a.lanes=r.lanes,a.child=r.child,a.memoizedProps=r.memoizedProps,a.memoizedState=r.memoizedState,a.updateQueue=r.updateQueue,i=r.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},a.sibling=r.sibling,a.index=r.index,a.ref=r.ref,a}function ol(r,i,a,d,p,g){var w=2;if(d=r,typeof r=="function")Qc(r)&&(w=1);else if(typeof r=="string")w=5;else e:switch(r){case q:return To(a.children,p,g,i);case J:w=8,p|=8;break;case we:return r=bn(12,a,i,p|2),r.elementType=we,r.lanes=g,r;case ae:return r=bn(13,a,i,p),r.elementType=ae,r.lanes=g,r;case Ee:return r=bn(19,a,i,p),r.elementType=Ee,r.lanes=g,r;case ie:return il(a,p,g,i);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case Se:w=10;break e;case Oe:w=9;break e;case te:w=11;break e;case Pe:w=14;break e;case he:w=16,d=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return i=bn(w,a,i,p),i.elementType=r,i.type=d,i.lanes=g,i}function To(r,i,a,d){return r=bn(7,r,d,i),r.lanes=a,r}function il(r,i,a,d){return r=bn(22,r,d,i),r.elementType=ie,r.lanes=a,r.stateNode={isHidden:!1},r}function Jc(r,i,a){return r=bn(6,r,null,i),r.lanes=a,r}function ed(r,i,a){return i=bn(4,r.children!==null?r.children:[],r.key,i),i.lanes=a,i.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},i}function Bb(r,i,a,d,p){this.tag=i,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_u(0),this.expirationTimes=_u(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_u(0),this.identifierPrefix=d,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null}function td(r,i,a,d,p,g,w,T,A){return r=new Bb(r,i,a,T,A),i===1?(i=1,g===!0&&(i|=8)):i=0,g=bn(3,null,null,i),r.current=g,g.stateNode=r,g.memoizedState={element:d,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},hc(g),r}function Ub(r,i,a){var d=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),ad.exports=tE(),ad.exports}var Sg;function nE(){if(Sg)return fl;Sg=1;var e=Qv();return fl.createRoot=e.createRoot,fl.hydrateRoot=e.hydrateRoot,fl}var rE=nE();const oE=zo(rE);var bg="popstate";function Eg(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function iE(e={}){function t(o,s){let l=s.state?.masked,{pathname:u,search:c,hash:f}=l||o.location;return Hd("",{pathname:u,search:c,hash:f},s.state&&s.state.usr||null,s.state&&s.state.key||"default",l?{pathname:o.location.pathname,search:o.location.search,hash:o.location.hash}:void 0)}function n(o,s){return typeof s=="string"?s:$s(s)}return aE(t,n,null,e)}function rt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function sr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function sE(){return Math.random().toString(36).substring(2,10)}function Cg(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Hd(e,t,n=null,o,s){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Di(t):t,state:n,key:t&&t.key||o||sE(),unstable_mask:s}}function $s({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Di(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let o=e.indexOf("?");o>=0&&(t.search=e.substring(o),e=e.substring(0,o)),e&&(t.pathname=e)}return t}function aE(e,t,n,o={}){let{window:s=document.defaultView,v5Compat:l=!1}=o,u=s.history,c="POP",f=null,h=y();h==null&&(h=0,u.replaceState({...u.state,idx:h},""));function y(){return(u.state||{idx:null}).idx}function m(){c="POP";let C=y(),_=C==null?null:C-h;h=C,f&&f({action:c,location:E.location,delta:_})}function x(C,_){c="PUSH";let R=Eg(C)?C:Hd(E.location,C,_);h=y()+1;let O=Cg(R,h),V=E.createHref(R.unstable_mask||R);try{u.pushState(O,"",V)}catch(z){if(z instanceof DOMException&&z.name==="DataCloneError")throw z;s.location.assign(V)}l&&f&&f({action:c,location:E.location,delta:1})}function b(C,_){c="REPLACE";let R=Eg(C)?C:Hd(E.location,C,_);h=y();let O=Cg(R,h),V=E.createHref(R.unstable_mask||R);u.replaceState(O,"",V),l&&f&&f({action:c,location:E.location,delta:0})}function k(C){return lE(C)}let E={get action(){return c},get location(){return e(s,u)},listen(C){if(f)throw new Error("A history only accepts one active listener");return s.addEventListener(bg,m),f=C,()=>{s.removeEventListener(bg,m),f=null}},createHref(C){return t(s,C)},createURL:k,encodeLocation(C){let _=k(C);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:x,replace:b,go(C){return u.go(C)}};return E}function lE(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),rt(n,"No window.location.(origin|href) available to create URL");let o=typeof e=="string"?e:$s(e);return o=o.replace(/ $/,"%20"),!t&&o.startsWith("//")&&(o=n+o),new URL(o,n)}function Jv(e,t,n="/"){return uE(e,t,n,!1)}function uE(e,t,n,o){let s=typeof t=="string"?Di(t):t,l=br(s.pathname||"/",n);if(l==null)return null;let u=e0(e);cE(u);let c=null;for(let f=0;c==null&&f{let y={relativePath:h===void 0?u.path||"":h,caseSensitive:u.caseSensitive===!0,childrenIndex:c,route:u};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(o)&&f)return;rt(y.relativePath.startsWith(o),`Absolute route path "${y.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(o.length)}let m=tr([o,y.relativePath]),x=n.concat(y);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 "${m}".`),e0(u.children,t,x,m,f)),!(u.path==null&&!u.index)&&t.push({path:m,score:yE(m,u.index),routesMeta:x})};return e.forEach((u,c)=>{if(u.path===""||!u.path?.includes("?"))l(u,c);else for(let f of t0(u.path))l(u,c,!0,f)}),t}function t0(e){let t=e.split("/");if(t.length===0)return[];let[n,...o]=t,s=n.endsWith("?"),l=n.replace(/\?$/,"");if(o.length===0)return s?[l,""]:[l];let u=t0(o.join("/")),c=[];return c.push(...u.map(f=>f===""?l:[l,f].join("/"))),s&&c.push(...u),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function cE(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:vE(t.routesMeta.map(o=>o.childrenIndex),n.routesMeta.map(o=>o.childrenIndex)))}var dE=/^:[\w-]+$/,fE=3,pE=2,hE=1,mE=10,gE=-2,Tg=e=>e==="*";function yE(e,t){let n=e.split("/"),o=n.length;return n.some(Tg)&&(o+=gE),t&&(o+=pE),n.filter(s=>!Tg(s)).reduce((s,l)=>s+(dE.test(l)?fE:l===""?hE:mE),o)}function vE(e,t){return e.length===t.length&&e.slice(0,-1).every((o,s)=>o===t[s])?e[e.length-1]-t[t.length-1]:0}function xE(e,t,n=!1){let{routesMeta:o}=e,s={},l="/",u=[];for(let c=0;c{if(y==="*"){let k=c[x]||"";u=l.slice(0,l.length-k.length).replace(/(.)\/+$/,"$1")}const b=c[x];return m&&!b?h[y]=void 0:h[y]=(b||"").replace(/%2F/g,"/"),h},{}),pathname:l,pathnameBase:u,pattern:e}}function wE(e,t=!1,n=!0){sr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let o=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,c,f,h,y)=>{if(o.push({paramName:c,isOptional:f!=null}),f){let m=y.charAt(h+u.length);return m&&m!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(o.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),o]}function SE(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return sr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function br(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,o=e.charAt(n);return o&&o!=="/"?null:e.slice(n)||"/"}var bE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function EE(e,t="/"){let{pathname:n,search:o="",hash:s=""}=typeof e=="string"?Di(e):e,l;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?l=kg(n.substring(1),"/"):l=kg(n,t)):l=t,{pathname:l,search:kE(o),hash:_E(s)}}function kg(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function cd(e,t,n,o){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function CE(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function n0(e){let t=CE(e);return t.map((n,o)=>o===t.length-1?n.pathname:n.pathnameBase)}function Pf(e,t,n,o=!1){let s;typeof e=="string"?s=Di(e):(s={...e},rt(!s.pathname||!s.pathname.includes("?"),cd("?","pathname","search",s)),rt(!s.pathname||!s.pathname.includes("#"),cd("#","pathname","hash",s)),rt(!s.search||!s.search.includes("#"),cd("#","search","hash",s)));let l=e===""||s.pathname==="",u=l?"/":s.pathname,c;if(u==null)c=n;else{let m=t.length-1;if(!o&&u.startsWith("..")){let x=u.split("/");for(;x[0]==="..";)x.shift(),m-=1;s.pathname=x.join("/")}c=m>=0?t[m]:"/"}let f=EE(s,c),h=u&&u!=="/"&&u.endsWith("/"),y=(l||u===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(h||y)&&(f.pathname+="/"),f}var tr=e=>e.join("/").replace(/\/\/+/g,"/"),TE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),kE=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,_E=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,PE=class{constructor(e,t,n,o=!1){this.status=e,this.statusText=t||"",this.internal=o,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function RE(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function AE(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var r0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function o0(e,t){let n=e;if(typeof n!="string"||!bE.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let o=n,s=!1;if(r0)try{let l=new URL(window.location.href),u=n.startsWith("//")?new URL(l.protocol+n):new URL(n),c=br(u.pathname,t);u.origin===l.origin&&c!=null?n=c+u.search+u.hash:s=!0}catch{sr(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:s,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var i0=["POST","PUT","PATCH","DELETE"];new Set(i0);var NE=["GET",...i0];new Set(NE);var Ii=S.createContext(null);Ii.displayName="DataRouter";var eu=S.createContext(null);eu.displayName="DataRouterState";var jE=S.createContext(!1),s0=S.createContext({isTransitioning:!1});s0.displayName="ViewTransition";var OE=S.createContext(new Map);OE.displayName="Fetchers";var DE=S.createContext(null);DE.displayName="Await";var Tn=S.createContext(null);Tn.displayName="Navigation";var Xs=S.createContext(null);Xs.displayName="Location";var Cr=S.createContext({outlet:null,matches:[],isDataRoute:!1});Cr.displayName="Route";var Rf=S.createContext(null);Rf.displayName="RouteError";var a0="REACT_ROUTER_ERROR",IE="REDIRECT",ME="ROUTE_ERROR_RESPONSE";function LE(e){if(e.startsWith(`${a0}:${IE}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function zE(e){if(e.startsWith(`${a0}:${ME}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new PE(t.status,t.statusText,t.data)}catch{}}function FE(e,{relative:t}={}){rt(Qs(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:o}=S.useContext(Tn),{hash:s,pathname:l,search:u}=Js(e,{relative:t}),c=l;return n!=="/"&&(c=l==="/"?n:tr([n,l])),o.createHref({pathname:c,search:u,hash:s})}function Qs(){return S.useContext(Xs)!=null}function ar(){return rt(Qs(),"useLocation() may be used only in the context of a component."),S.useContext(Xs).location}var l0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function u0(e){S.useContext(Tn).static||S.useLayoutEffect(e)}function VE(){let{isDataRoute:e}=S.useContext(Cr);return e?JE():$E()}function $E(){rt(Qs(),"useNavigate() may be used only in the context of a component.");let e=S.useContext(Ii),{basename:t,navigator:n}=S.useContext(Tn),{matches:o}=S.useContext(Cr),{pathname:s}=ar(),l=JSON.stringify(n0(o)),u=S.useRef(!1);return u0(()=>{u.current=!0}),S.useCallback((f,h={})=>{if(sr(u.current,l0),!u.current)return;if(typeof f=="number"){n.go(f);return}let y=Pf(f,JSON.parse(l),s,h.relative==="path");e==null&&t!=="/"&&(y.pathname=y.pathname==="/"?t:tr([t,y.pathname])),(h.replace?n.replace:n.push)(y,h.state,h)},[t,n,l,s,e])}S.createContext(null);function Js(e,{relative:t}={}){let{matches:n}=S.useContext(Cr),{pathname:o}=ar(),s=JSON.stringify(n0(n));return S.useMemo(()=>Pf(e,JSON.parse(s),o,t==="path"),[e,s,o,t])}function BE(e,t){return c0(e,t)}function c0(e,t,n){rt(Qs(),"useRoutes() may be used only in the context of a component.");let{navigator:o}=S.useContext(Tn),{matches:s}=S.useContext(Cr),l=s[s.length-1],u=l?l.params:{},c=l?l.pathname:"/",f=l?l.pathnameBase:"/",h=l&&l.route;{let C=h&&h.path||"";f0(c,!h||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${c}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. Please change the parent to .`)}let y=ar(),m;if(t){let C=typeof t=="string"?Di(t):t;rt(f==="/"||C.pathname?.startsWith(f),`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 "${f}" but pathname "${C.pathname}" was given in the \`location\` prop.`),m=C}else m=y;let x=m.pathname||"/",b=x;if(f!=="/"){let C=f.replace(/^\//,"").split("/");b="/"+x.replace(/^\//,"").split("/").slice(C.length).join("/")}let k=Jv(e,{pathname:b});sr(h||k!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),sr(k==null||k[k.length-1].route.element!==void 0||k[k.length-1].route.Component!==void 0||k[k.length-1].route.lazy!==void 0,`Matched leaf route at location "${m.pathname}${m.search}${m.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let E=KE(k&&k.map(C=>Object.assign({},C,{params:Object.assign({},u,C.params),pathname:tr([f,o.encodeLocation?o.encodeLocation(C.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?f:tr([f,o.encodeLocation?o.encodeLocation(C.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathnameBase])})),s,n);return t&&E?S.createElement(Xs.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...m},navigationType:"POP"}},E):E}function UE(){let e=QE(),t=RE(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:o},l={padding:"2px 4px",backgroundColor:o},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:l},"ErrorBoundary")," or"," ",S.createElement("code",{style:l},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:s},n):null,u)}var WE=S.createElement(UE,null),d0=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=zE(e.digest);n&&(e=n)}let t=e!==void 0?S.createElement(Cr.Provider,{value:this.props.routeContext},S.createElement(Rf.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?S.createElement(HE,{error:e},t):t}};d0.contextType=jE;var dd=new WeakMap;function HE({children:e,error:t}){let{basename:n}=S.useContext(Tn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let o=LE(t.digest);if(o){let s=dd.get(t);if(s)throw s;let l=o0(o.location,n);if(r0&&!dd.get(t))if(l.isExternal||o.reloadDocument)window.location.href=l.absoluteURL||l.to;else{const u=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(l.to,{replace:o.replace}));throw dd.set(t,u),u}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l.absoluteURL||l.to}`})}}return e}function ZE({routeContext:e,match:t,children:n}){let o=S.useContext(Ii);return o&&o.static&&o.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(Cr.Provider,{value:e},n)}function KE(e,t=[],n){let o=n?.state;if(e==null){if(!o)return null;if(o.errors)e=o.matches;else if(t.length===0&&!o.initialized&&o.matches.length>0)e=o.matches;else return null}let s=e,l=o?.errors;if(l!=null){let y=s.findIndex(m=>m.route.id&&l?.[m.route.id]!==void 0);rt(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),s=s.slice(0,Math.min(s.length,y+1))}let u=!1,c=-1;if(n&&o){u=o.renderFallback;for(let y=0;y=0?s=s.slice(0,c+1):s=[s[0]];break}}}}let f=n?.onError,h=o&&f?(y,m)=>{f(y,{location:o.location,params:o.matches?.[0]?.params??{},unstable_pattern:AE(o.matches),errorInfo:m})}:void 0;return s.reduceRight((y,m,x)=>{let b,k=!1,E=null,C=null;o&&(b=l&&m.route.id?l[m.route.id]:void 0,E=m.route.errorElement||WE,u&&(c<0&&x===0?(f0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),k=!0,C=null):c===x&&(k=!0,C=m.route.hydrateFallbackElement||null)));let _=t.concat(s.slice(0,x+1)),R=()=>{let O;return b?O=E:k?O=C:m.route.Component?O=S.createElement(m.route.Component,null):m.route.element?O=m.route.element:O=y,S.createElement(ZE,{match:m,routeContext:{outlet:y,matches:_,isDataRoute:o!=null},children:O})};return o&&(m.route.ErrorBoundary||m.route.errorElement||x===0)?S.createElement(d0,{location:o.location,revalidation:o.revalidation,component:E,error:b,children:R(),routeContext:{outlet:null,matches:_,isDataRoute:!0},onError:h}):R()},null)}function Af(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function GE(e){let t=S.useContext(Ii);return rt(t,Af(e)),t}function YE(e){let t=S.useContext(eu);return rt(t,Af(e)),t}function qE(e){let t=S.useContext(Cr);return rt(t,Af(e)),t}function Nf(e){let t=qE(e),n=t.matches[t.matches.length-1];return rt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function XE(){return Nf("useRouteId")}function QE(){let e=S.useContext(Rf),t=YE("useRouteError"),n=Nf("useRouteError");return e!==void 0?e:t.errors?.[n]}function JE(){let{router:e}=GE("useNavigate"),t=Nf("useNavigate"),n=S.useRef(!1);return u0(()=>{n.current=!0}),S.useCallback(async(s,l={})=>{sr(n.current,l0),n.current&&(typeof s=="number"?await e.navigate(s):await e.navigate(s,{fromRouteId:t,...l}))},[e,t])}var _g={};function f0(e,t,n){!t&&!_g[e]&&(_g[e]=!0,sr(!1,n))}S.memo(eC);function eC({routes:e,future:t,state:n,isStatic:o,onError:s}){return c0(e,void 0,{state:n,isStatic:o,onError:s})}function yi(e){rt(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function tC({basename:e="/",children:t=null,location:n,navigationType:o="POP",navigator:s,static:l=!1,unstable_useTransitions:u}){rt(!Qs(),"You cannot render a inside another . You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),f=S.useMemo(()=>({basename:c,navigator:s,static:l,unstable_useTransitions:u,future:{}}),[c,s,l,u]);typeof n=="string"&&(n=Di(n));let{pathname:h="/",search:y="",hash:m="",state:x=null,key:b="default",unstable_mask:k}=n,E=S.useMemo(()=>{let C=br(h,c);return C==null?null:{location:{pathname:C,search:y,hash:m,state:x,key:b,unstable_mask:k},navigationType:o}},[c,h,y,m,x,b,o,k]);return sr(E!=null,` is not able to match the URL "${h}${y}${m}" because it does not start with the basename, so the won't render anything.`),E==null?null:S.createElement(Tn.Provider,{value:f},S.createElement(Xs.Provider,{children:t,value:E}))}function nC({children:e,location:t}){return BE(Zd(e),t)}function Zd(e,t=[]){let n=[];return S.Children.forEach(e,(o,s)=>{if(!S.isValidElement(o))return;let l=[...t,s];if(o.type===S.Fragment){n.push.apply(n,Zd(o.props.children,l));return}rt(o.type===yi,`[${typeof o.type=="string"?o.type:o.type.name}] is not a component. All component children of must be a or `),rt(!o.props.index||!o.props.children,"An index route cannot have child routes.");let u={id:o.props.id||l.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(u.children=Zd(o.props.children,l)),n.push(u)}),n}var kl="get",_l="application/x-www-form-urlencoded";function tu(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function rC(e){return tu(e)&&e.tagName.toLowerCase()==="button"}function oC(e){return tu(e)&&e.tagName.toLowerCase()==="form"}function iC(e){return tu(e)&&e.tagName.toLowerCase()==="input"}function sC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function aC(e,t){return e.button===0&&(!t||t==="_self")&&!sC(e)}var pl=null;function lC(){if(pl===null)try{new FormData(document.createElement("form"),0),pl=!1}catch{pl=!0}return pl}var uC=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function fd(e){return e!=null&&!uC.has(e)?(sr(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${_l}"`),null):e}function cC(e,t){let n,o,s,l,u;if(oC(e)){let c=e.getAttribute("action");o=c?br(c,t):null,n=e.getAttribute("method")||kl,s=fd(e.getAttribute("enctype"))||_l,l=new FormData(e)}else if(rC(e)||iC(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a