var wa={exports:{}},F={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var lr=Symbol.for("react.element"),Yc=Symbol.for("react.portal"),Xc=Symbol.for("react.fragment"),Gc=Symbol.for("react.strict_mode"),Zc=Symbol.for("react.profiler"),Jc=Symbol.for("react.provider"),qc=Symbol.for("react.context"),bc=Symbol.for("react.forward_ref"),ef=Symbol.for("react.suspense"),tf=Symbol.for("react.memo"),nf=Symbol.for("react.lazy"),iu=Symbol.iterator;function rf(e){return e===null||typeof e!="object"?null:(e=iu&&e[iu]||e["@@iterator"],typeof e=="function"?e:null)}var Sa={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ka=Object.assign,Ea={};function fn(e,t,n){this.props=e,this.context=t,this.refs=Ea,this.updater=n||Sa}fn.prototype.isReactComponent={};fn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};fn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ca(){}Ca.prototype=fn.prototype;function ii(e,t,n){this.props=e,this.context=t,this.refs=Ea,this.updater=n||Sa}var ui=ii.prototype=new Ca;ui.constructor=ii;ka(ui,fn.prototype);ui.isPureReactComponent=!0;var uu=Array.isArray,xa=Object.prototype.hasOwnProperty,ai={current:null},Pa={key:!0,ref:!0,__self:!0,__source:!0};function _a(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)xa.call(t,r)&&!Pa.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1>>1,Z=P[Q];if(0>>1;Ql(Ol,T))Etl(pr,Ol)?(P[Q]=pr,P[Et]=T,Q=Et):(P[Q]=Ol,P[kt]=T,Q=kt);else if(Etl(pr,T))P[Q]=pr,P[Et]=T,Q=Et;else break e}}return z}function l(P,z){var T=P.sortIndex-z.sortIndex;return T!==0?T:P.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var a=[],s=[],p=1,h=null,m=3,v=!1,y=!1,S=!1,C=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(P){for(var z=n(s);z!==null;){if(z.callback===null)r(s);else if(z.startTime<=P)r(s),z.sortIndex=z.expirationTime,t(a,z);else break;z=n(s)}}function g(P){if(S=!1,d(P),!y)if(n(a)!==null)y=!0,Dl(E);else{var z=n(s);z!==null&&Il(g,z.startTime-P)}}function E(P,z){y=!1,S&&(S=!1,f(L),L=-1),v=!0;var T=m;try{for(d(z),h=n(a);h!==null&&(!(h.expirationTime>z)||P&&!ce());){var Q=h.callback;if(typeof Q=="function"){h.callback=null,m=h.priorityLevel;var Z=Q(h.expirationTime<=z);z=e.unstable_now(),typeof Z=="function"?h.callback=Z:h===n(a)&&r(a),d(z)}else r(a);h=n(a)}if(h!==null)var dr=!0;else{var kt=n(s);kt!==null&&Il(g,kt.startTime-z),dr=!1}return dr}finally{h=null,m=T,v=!1}}var R=!1,_=null,L=-1,M=5,N=-1;function ce(){return!(e.unstable_now()-NP||125Q?(P.sortIndex=T,t(s,P),n(a)===null&&P===n(s)&&(S?(f(L),L=-1):S=!0,Il(g,T-Q))):(P.sortIndex=Z,t(a,P),y||v||(y=!0,Dl(E))),P},e.unstable_shouldYield=ce,e.unstable_wrapCallback=function(P){var z=m;return function(){var T=m;m=z;try{return P.apply(this,arguments)}finally{m=T}}}})(za);Na.exports=za;var sf=Na.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var cf=w,we=sf;function k(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fo=Object.prototype.hasOwnProperty,ff=/^[: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]*$/,su={},cu={};function df(e){return fo.call(cu,e)?!0:fo.call(su,e)?!1:ff.test(e)?cu[e]=!0:(su[e]=!0,!1)}function pf(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function hf(e,t,n,r){if(t===null||typeof t>"u"||pf(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function se(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var te={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){te[e]=new se(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];te[t]=new se(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){te[e]=new se(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){te[e]=new se(e,2,!1,e,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(e){te[e]=new se(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){te[e]=new se(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){te[e]=new se(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){te[e]=new se(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){te[e]=new se(e,5,!1,e.toLowerCase(),null,!1,!1)});var ci=/[\-:]([a-z])/g;function fi(e){return e[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(e){var t=e.replace(ci,fi);te[t]=new se(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ci,fi);te[t]=new se(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ci,fi);te[t]=new se(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){te[e]=new se(e,1,!1,e.toLowerCase(),null,!1,!1)});te.xlinkHref=new se("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){te[e]=new se(e,1,!1,e.toLowerCase(),null,!0,!0)});function di(e,t,n,r){var l=te.hasOwnProperty(t)?te[t]:null;(l!==null?l.type!==0:r||!(2u||l[i]!==o[u]){var a=` `+l[i].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=i&&0<=u);break}}}finally{jl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Rn(e):""}function mf(e){switch(e.tag){case 5:return Rn(e.type);case 16:return Rn("Lazy");case 13:return Rn("Suspense");case 19:return Rn("SuspenseList");case 0:case 2:case 15:return e=Bl(e.type,!1),e;case 11:return e=Bl(e.type.render,!1),e;case 1:return e=Bl(e.type,!0),e;default:return""}}function vo(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Bt:return"Fragment";case jt:return"Portal";case po:return"Profiler";case pi:return"StrictMode";case ho:return"Suspense";case mo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ma:return(e.displayName||"Context")+".Consumer";case Fa:return(e._context.displayName||"Context")+".Provider";case hi:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case mi:return t=e.displayName||null,t!==null?t:vo(e.type)||"Memo";case nt:t=e._payload,e=e._init;try{return vo(e(t))}catch{}}return null}function vf(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return vo(t);case 8:return t===pi?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function vt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ia(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function yf(e){var t=Ia(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vr(e){e._valueTracker||(e._valueTracker=yf(e))}function Oa(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ia(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Kr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function yo(e,t){var n=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function du(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=vt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function $a(e,t){t=t.checked,t!=null&&di(e,"checked",t,!1)}function go(e,t){$a(e,t);var n=vt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?wo(e,t.type,n):t.hasOwnProperty("defaultValue")&&wo(e,t.type,vt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function pu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function wo(e,t,n){(t!=="number"||Kr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ln=Array.isArray;function Jt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=yr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function An(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Tn={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},gf=["Webkit","ms","Moz","O"];Object.keys(Tn).forEach(function(e){gf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Tn[t]=Tn[e]})});function Aa(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Tn.hasOwnProperty(e)&&Tn[e]?(""+t).trim():t+"px"}function Ha(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Aa(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var wf=W({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 Eo(e,t){if(t){if(wf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function Co(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 xo=null;function vi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Po=null,qt=null,bt=null;function vu(e){if(e=ur(e)){if(typeof Po!="function")throw Error(k(280));var t=e.stateNode;t&&(t=kl(t),Po(e.stateNode,e.type,t))}}function Wa(e){qt?bt?bt.push(e):bt=[e]:qt=e}function Va(){if(qt){var e=qt,t=bt;if(bt=qt=null,vu(e),t)for(e=0;e>>=0,e===0?32:31-(zf(e)/Tf|0)|0}var gr=64,wr=4194304;function Nn(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Zr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~l;u!==0?r=Nn(u):(o&=i,o!==0&&(r=Nn(o)))}else i=n&~l,i!==0?r=Nn(i):o!==0&&(r=Nn(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function or(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Fe(t),e[t]=n}function If(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Mn),Pu=" ",_u=!1;function cs(e,t){switch(e){case"keyup":return sd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var At=!1;function fd(e,t){switch(e){case"compositionend":return fs(t);case"keypress":return t.which!==32?null:(_u=!0,Pu);case"textInput":return e=t.data,e===Pu&&_u?null:e;default:return null}}function dd(e,t){if(At)return e==="compositionend"||!xi&&cs(e,t)?(e=as(),Ir=ki=it=null,At=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=zu(n)}}function ms(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ms(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vs(){for(var e=window,t=Kr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Kr(e.document)}return t}function Pi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function kd(e){var t=vs(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ms(n.ownerDocument.documentElement,n)){if(r!==null&&Pi(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Tu(n,o);var i=Tu(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ht=null,To=null,In=null,Fo=!1;function Fu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fo||Ht==null||Ht!==Kr(r)||(r=Ht,"selectionStart"in r&&Pi(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),In&&Yn(In,r)||(In=r,r=br(To,"onSelect"),0Qt||(e.current=Uo[Qt],Uo[Qt]=null,Qt--)}function O(e,t){Qt++,Uo[Qt]=e.current,e.current=t}var yt={},oe=wt(yt),pe=wt(!1),zt=yt;function ln(e,t){var n=e.type.contextTypes;if(!n)return yt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function he(e){return e=e.childContextTypes,e!=null}function tl(){U(pe),U(oe)}function ju(e,t,n){if(oe.current!==yt)throw Error(k(168));O(oe,t),O(pe,n)}function Ps(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(k(108,vf(e)||"Unknown",l));return W({},n,r)}function nl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yt,zt=oe.current,O(oe,e),O(pe,pe.current),!0}function Bu(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=Ps(e,t,zt),r.__reactInternalMemoizedMergedChildContext=e,U(pe),U(oe),O(oe,e)):U(pe),O(pe,n)}var We=null,El=!1,eo=!1;function _s(e){We===null?We=[e]:We.push(e)}function Md(e){El=!0,_s(e)}function St(){if(!eo&&We!==null){eo=!0;var e=0,t=I;try{var n=We;for(I=1;e>=i,l-=i,Ve=1<<32-Fe(t)+l|n<L?(M=_,_=null):M=_.sibling;var N=m(f,_,d[L],g);if(N===null){_===null&&(_=M);break}e&&_&&N.alternate===null&&t(f,_),c=o(N,c,L),R===null?E=N:R.sibling=N,R=N,_=M}if(L===d.length)return n(f,_),j&&Ct(f,L),E;if(_===null){for(;LL?(M=_,_=null):M=_.sibling;var ce=m(f,_,N.value,g);if(ce===null){_===null&&(_=M);break}e&&_&&ce.alternate===null&&t(f,_),c=o(ce,c,L),R===null?E=ce:R.sibling=ce,R=ce,_=M}if(N.done)return n(f,_),j&&Ct(f,L),E;if(_===null){for(;!N.done;L++,N=d.next())N=h(f,N.value,g),N!==null&&(c=o(N,c,L),R===null?E=N:R.sibling=N,R=N);return j&&Ct(f,L),E}for(_=r(f,_);!N.done;L++,N=d.next())N=v(_,f,L,N.value,g),N!==null&&(e&&N.alternate!==null&&_.delete(N.key===null?L:N.key),c=o(N,c,L),R===null?E=N:R.sibling=N,R=N);return e&&_.forEach(function(vn){return t(f,vn)}),j&&Ct(f,L),E}function C(f,c,d,g){if(typeof d=="object"&&d!==null&&d.type===Bt&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case mr:e:{for(var E=d.key,R=c;R!==null;){if(R.key===E){if(E=d.type,E===Bt){if(R.tag===7){n(f,R.sibling),c=l(R,d.props.children),c.return=f,f=c;break e}}else if(R.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===nt&&Wu(E)===R.type){n(f,R.sibling),c=l(R,d.props),c.ref=Cn(f,R,d),c.return=f,f=c;break e}n(f,R);break}else t(f,R);R=R.sibling}d.type===Bt?(c=Nt(d.props.children,f.mode,g,d.key),c.return=f,f=c):(g=Wr(d.type,d.key,d.props,null,f.mode,g),g.ref=Cn(f,c,d),g.return=f,f=g)}return i(f);case jt:e:{for(R=d.key;c!==null;){if(c.key===R)if(c.tag===4&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){n(f,c.sibling),c=l(c,d.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=ao(d,f.mode,g),c.return=f,f=c}return i(f);case nt:return R=d._init,C(f,c,R(d._payload),g)}if(Ln(d))return y(f,c,d,g);if(gn(d))return S(f,c,d,g);_r(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,c!==null&&c.tag===6?(n(f,c.sibling),c=l(c,d),c.return=f,f=c):(n(f,c),c=uo(d,f.mode,g),c.return=f,f=c),i(f)):n(f,c)}return C}var un=zs(!0),Ts=zs(!1),ol=wt(null),il=null,Xt=null,Ni=null;function zi(){Ni=Xt=il=null}function Ti(e){var t=ol.current;U(ol),e._currentValue=t}function Ao(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function tn(e,t){il=e,Ni=Xt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(de=!0),e.firstContext=null)}function _e(e){var t=e._currentValue;if(Ni!==e)if(e={context:e,memoizedValue:t,next:null},Xt===null){if(il===null)throw Error(k(308));Xt=e,il.dependencies={lanes:0,firstContext:e}}else Xt=Xt.next=e;return t}var _t=null;function Fi(e){_t===null?_t=[e]:_t.push(e)}function Fs(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Fi(t)):(n.next=l.next,l.next=n),t.interleaved=n,Ze(e,r)}function Ze(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var rt=!1;function Mi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ms(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ke(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function dt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,D&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Ze(e,n)}return l=r.interleaved,l===null?(t.next=t,Fi(r)):(t.next=l.next,l.next=t),r.interleaved=t,Ze(e,n)}function $r(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gi(e,n)}}function Vu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ul(e,t,n,r){var l=e.updateQueue;rt=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var a=u,s=a.next;a.next=null,i===null?o=s:i.next=s,i=a;var p=e.alternate;p!==null&&(p=p.updateQueue,u=p.lastBaseUpdate,u!==i&&(u===null?p.firstBaseUpdate=s:u.next=s,p.lastBaseUpdate=a))}if(o!==null){var h=l.baseState;i=0,p=s=a=null,u=o;do{var m=u.lane,v=u.eventTime;if((r&m)===m){p!==null&&(p=p.next={eventTime:v,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var y=e,S=u;switch(m=t,v=n,S.tag){case 1:if(y=S.payload,typeof y=="function"){h=y.call(v,h,m);break e}h=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=S.payload,m=typeof y=="function"?y.call(v,h,m):y,m==null)break e;h=W({},h,m);break e;case 2:rt=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[u]:m.push(u))}else v={eventTime:v,lane:m,tag:u.tag,payload:u.payload,callback:u.callback,next:null},p===null?(s=p=v,a=h):p=p.next=v,i|=m;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;m=u,u=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(p===null&&(a=h),l.baseState=a,l.firstBaseUpdate=s,l.lastBaseUpdate=p,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);Mt|=i,e.lanes=i,e.memoizedState=h}}function Qu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=no.transition;no.transition={};try{e(!1),t()}finally{I=n,no.transition=r}}function Zs(){return Re().memoizedState}function $d(e,t,n){var r=ht(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Js(e))qs(t,n);else if(n=Fs(e,t,n,r),n!==null){var l=ue();Me(n,e,r,l),bs(n,t,r)}}function Ud(e,t,n){var r=ht(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Js(e))qs(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,u=o(i,n);if(l.hasEagerState=!0,l.eagerState=u,De(u,i)){var a=t.interleaved;a===null?(l.next=l,Fi(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=Fs(e,t,l,r),n!==null&&(l=ue(),Me(n,e,r,l),bs(n,t,r))}}function Js(e){var t=e.alternate;return e===A||t!==null&&t===A}function qs(e,t){On=sl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bs(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gi(e,n)}}var cl={readContext:_e,useCallback:ne,useContext:ne,useEffect:ne,useImperativeHandle:ne,useInsertionEffect:ne,useLayoutEffect:ne,useMemo:ne,useReducer:ne,useRef:ne,useState:ne,useDebugValue:ne,useDeferredValue:ne,useTransition:ne,useMutableSource:ne,useSyncExternalStore:ne,useId:ne,unstable_isNewReconciler:!1},jd={readContext:_e,useCallback:function(e,t){return Oe().memoizedState=[e,t===void 0?null:t],e},useContext:_e,useEffect:Yu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,jr(4194308,4,Qs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return jr(4194308,4,e,t)},useInsertionEffect:function(e,t){return jr(4,2,e,t)},useMemo:function(e,t){var n=Oe();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Oe();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=$d.bind(null,A,e),[r.memoizedState,e]},useRef:function(e){var t=Oe();return e={current:e},t.memoizedState=e},useState:Ku,useDebugValue:Ai,useDeferredValue:function(e){return Oe().memoizedState=e},useTransition:function(){var e=Ku(!1),t=e[0];return e=Od.bind(null,e[1]),Oe().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=A,l=Oe();if(j){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),q===null)throw Error(k(349));Ft&30||$s(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Yu(js.bind(null,r,o,e),[e]),r.flags|=2048,tr(9,Us.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Oe(),t=q.identifierPrefix;if(j){var n=Qe,r=Ve;n=(r&~(1<<32-Fe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=bn++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[$e]=t,e[Zn]=r,sc(e,t,!1,!1),t.stateNode=e;e:{switch(i=Co(n,r),n){case"dialog":$("cancel",e),$("close",e),l=r;break;case"iframe":case"object":case"embed":$("load",e),l=r;break;case"video":case"audio":for(l=0;lcn&&(t.flags|=128,r=!0,xn(o,!1),t.lanes=4194304)}else{if(!r)if(e=al(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),xn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!j)return re(t),null}else 2*K()-o.renderingStartTime>cn&&n!==1073741824&&(t.flags|=128,r=!0,xn(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=K(),t.sibling=null,n=B.current,O(B,r?n&1|2:n&1),t):(re(t),null);case 22:case 23:return Yi(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ve&1073741824&&(re(t),t.subtreeFlags&6&&(t.flags|=8192)):re(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function Yd(e,t){switch(Ri(t),t.tag){case 1:return he(t.type)&&tl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return an(),U(pe),U(oe),Oi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ii(t),null;case 13:if(U(B),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));on()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(B),null;case 4:return an(),null;case 10:return Ti(t.type._context),null;case 22:case 23:return Yi(),null;case 24:return null;default:return null}}var Lr=!1,le=!1,Xd=typeof WeakSet=="function"?WeakSet:Set,x=null;function Gt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){V(e,t,r)}else n.current=null}function Zo(e,t,n){try{n()}catch(r){V(e,t,r)}}var la=!1;function Gd(e,t){if(Mo=Jr,e=vs(),Pi(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,u=-1,a=-1,s=0,p=0,h=e,m=null;t:for(;;){for(var v;h!==n||l!==0&&h.nodeType!==3||(u=i+l),h!==o||r!==0&&h.nodeType!==3||(a=i+r),h.nodeType===3&&(i+=h.nodeValue.length),(v=h.firstChild)!==null;)m=h,h=v;for(;;){if(h===e)break t;if(m===n&&++s===l&&(u=i),m===o&&++p===r&&(a=i),(v=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=v}n=u===-1||a===-1?null:{start:u,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Do={focusedElem:e,selectionRange:n},Jr=!1,x=t;x!==null;)if(t=x,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,x=e;else for(;x!==null;){t=x;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var S=y.memoizedProps,C=y.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?S:Ne(t.type,S),C);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var d=t.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(g){V(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,x=e;break}x=t.return}return y=la,la=!1,y}function $n(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Zo(t,n,o)}l=l.next}while(l!==r)}}function Pl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Jo(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function dc(e){var t=e.alternate;t!==null&&(e.alternate=null,dc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[$e],delete t[Zn],delete t[$o],delete t[Td],delete t[Fd])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function pc(e){return e.tag===5||e.tag===3||e.tag===4}function oa(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pc(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.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 qo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=el));else if(r!==4&&(e=e.child,e!==null))for(qo(e,t,n),e=e.sibling;e!==null;)qo(e,t,n),e=e.sibling}function bo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(bo(e,t,n),e=e.sibling;e!==null;)bo(e,t,n),e=e.sibling}var b=null,ze=!1;function tt(e,t,n){for(n=n.child;n!==null;)hc(e,t,n),n=n.sibling}function hc(e,t,n){if(Ue&&typeof Ue.onCommitFiberUnmount=="function")try{Ue.onCommitFiberUnmount(yl,n)}catch{}switch(n.tag){case 5:le||Gt(n,t);case 6:var r=b,l=ze;b=null,tt(e,t,n),b=r,ze=l,b!==null&&(ze?(e=b,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):b.removeChild(n.stateNode));break;case 18:b!==null&&(ze?(e=b,n=n.stateNode,e.nodeType===8?bl(e.parentNode,n):e.nodeType===1&&bl(e,n),Qn(e)):bl(b,n.stateNode));break;case 4:r=b,l=ze,b=n.stateNode.containerInfo,ze=!0,tt(e,t,n),b=r,ze=l;break;case 0:case 11:case 14:case 15:if(!le&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Zo(n,t,i),l=l.next}while(l!==r)}tt(e,t,n);break;case 1:if(!le&&(Gt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){V(n,t,u)}tt(e,t,n);break;case 21:tt(e,t,n);break;case 22:n.mode&1?(le=(r=le)||n.memoizedState!==null,tt(e,t,n),le=r):tt(e,t,n);break;default:tt(e,t,n)}}function ia(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Xd),t.forEach(function(r){var l=lp.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Le(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=K()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Jd(r/1960))-r,10e?16:e,ut===null)var r=!1;else{if(e=ut,ut=null,pl=0,D&6)throw Error(k(331));var l=D;for(D|=4,x=e.current;x!==null;){var o=x,i=o.child;if(x.flags&16){var u=o.deletions;if(u!==null){for(var a=0;aK()-Qi?Lt(e,0):Vi|=n),me(e,t)}function Ec(e,t){t===0&&(e.mode&1?(t=wr,wr<<=1,!(wr&130023424)&&(wr=4194304)):t=1);var n=ue();e=Ze(e,t),e!==null&&(or(e,t,n),me(e,n))}function rp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ec(e,n)}function lp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(t),Ec(e,n)}var Cc;Cc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||pe.current)de=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return de=!1,Qd(e,t,n);de=!!(e.flags&131072)}else de=!1,j&&t.flags&1048576&&Rs(t,ll,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Br(e,t),e=t.pendingProps;var l=ln(t,oe.current);tn(t,n),l=Ui(null,t,r,e,l,n);var o=ji();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,he(r)?(o=!0,nl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Mi(t),l.updater=xl,t.stateNode=l,l._reactInternals=t,Wo(t,r,e,n),t=Ko(null,t,r,!0,o,n)):(t.tag=0,j&&o&&_i(t),ie(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Br(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=ip(r),e=Ne(r,e),l){case 0:t=Qo(null,t,r,e,n);break e;case 1:t=ta(null,t,r,e,n);break e;case 11:t=bu(null,t,r,e,n);break e;case 14:t=ea(null,t,r,Ne(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ne(r,l),Qo(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ne(r,l),ta(e,t,r,l,n);case 3:e:{if(ic(t),e===null)throw Error(k(387));r=t.pendingProps,o=t.memoizedState,l=o.element,Ms(e,t),ul(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=sn(Error(k(423)),t),t=na(e,t,r,n,l);break e}else if(r!==l){l=sn(Error(k(424)),t),t=na(e,t,r,n,l);break e}else for(ye=ft(t.stateNode.containerInfo.firstChild),ge=t,j=!0,Te=null,n=Ts(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(on(),r===l){t=Je(e,t,n);break e}ie(e,t,r,n)}t=t.child}return t;case 5:return Ds(t),e===null&&Bo(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,Io(r,l)?i=null:o!==null&&Io(r,o)&&(t.flags|=32),oc(e,t),ie(e,t,i,n),t.child;case 6:return e===null&&Bo(t),null;case 13:return uc(e,t,n);case 4:return Di(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=un(t,null,r,n):ie(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ne(r,l),bu(e,t,r,l,n);case 7:return ie(e,t,t.pendingProps,n),t.child;case 8:return ie(e,t,t.pendingProps.children,n),t.child;case 12:return ie(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,O(ol,r._currentValue),r._currentValue=i,o!==null)if(De(o.value,i)){if(o.children===l.children&&!pe.current){t=Je(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var a=u.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Ke(-1,n&-n),a.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var p=s.pending;p===null?a.next=a:(a.next=p.next,p.next=a),s.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Ao(o.return,n,t),u.lanes|=n;break}a=a.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(k(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Ao(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}ie(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,tn(t,n),l=_e(l),r=r(l),t.flags|=1,ie(e,t,r,n),t.child;case 14:return r=t.type,l=Ne(r,t.pendingProps),l=Ne(r.type,l),ea(e,t,r,l,n);case 15:return rc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ne(r,l),Br(e,t),t.tag=1,he(r)?(e=!0,nl(t)):e=!1,tn(t,n),ec(t,r,l),Wo(t,r,l,n),Ko(null,t,r,!0,e,n);case 19:return ac(e,t,n);case 22:return lc(e,t,n)}throw Error(k(156,t.tag))};function xc(e,t){return Ja(e,t)}function op(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xe(e,t,n,r){return new op(e,t,n,r)}function Gi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ip(e){if(typeof e=="function")return Gi(e)?1:0;if(e!=null){if(e=e.$$typeof,e===hi)return 11;if(e===mi)return 14}return 2}function mt(e,t){var n=e.alternate;return n===null?(n=xe(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Wr(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")Gi(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Bt:return Nt(n.children,l,o,t);case pi:i=8,l|=8;break;case po:return e=xe(12,n,t,l|2),e.elementType=po,e.lanes=o,e;case ho:return e=xe(13,n,t,l),e.elementType=ho,e.lanes=o,e;case mo:return e=xe(19,n,t,l),e.elementType=mo,e.lanes=o,e;case Da:return Rl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Fa:i=10;break e;case Ma:i=9;break e;case hi:i=11;break e;case mi:i=14;break e;case nt:i=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=xe(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Nt(e,t,n,r){return e=xe(7,e,r,t),e.lanes=n,e}function Rl(e,t,n,r){return e=xe(22,e,r,t),e.elementType=Da,e.lanes=n,e.stateNode={isHidden:!1},e}function uo(e,t,n){return e=xe(6,e,null,t),e.lanes=n,e}function ao(e,t,n){return t=xe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function up(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Hl(0),this.expirationTimes=Hl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Zi(e,t,n,r,l,o,i,u,a){return e=new up(e,t,n,u,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=xe(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mi(o),e}function ap(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Lc)}catch(e){console.error(e)}}Lc(),La.exports=Se;var Ih=La.exports;/** * react-router v7.9.4 * * 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 ha="popstate";function pp(e={}){function t(r,l){let{pathname:o,search:i,hash:u}=r.location;return li("",{pathname:o,search:i,hash:u},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function n(r,l){return typeof l=="string"?l:rr(l)}return mp(t,n,null,e)}function H(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Be(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function hp(){return Math.random().toString(36).substring(2,10)}function ma(e,t){return{usr:e.state,key:e.key,idx:t}}function li(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?hn(t):t,state:n,key:t&&t.key||r||hp()}}function rr({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 hn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function mp(e,t,n,r={}){let{window:l=document.defaultView,v5Compat:o=!1}=r,i=l.history,u="POP",a=null,s=p();s==null&&(s=0,i.replaceState({...i.state,idx:s},""));function p(){return(i.state||{idx:null}).idx}function h(){u="POP";let C=p(),f=C==null?null:C-s;s=C,a&&a({action:u,location:S.location,delta:f})}function m(C,f){u="PUSH";let c=li(S.location,C,f);s=p()+1;let d=ma(c,s),g=S.createHref(c);try{i.pushState(d,"",g)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;l.location.assign(g)}o&&a&&a({action:u,location:S.location,delta:1})}function v(C,f){u="REPLACE";let c=li(S.location,C,f);s=p();let d=ma(c,s),g=S.createHref(c);i.replaceState(d,"",g),o&&a&&a({action:u,location:S.location,delta:0})}function y(C){return vp(C)}let S={get action(){return u},get location(){return e(l,i)},listen(C){if(a)throw new Error("A history only accepts one active listener");return l.addEventListener(ha,h),a=C,()=>{l.removeEventListener(ha,h),a=null}},createHref(C){return t(l,C)},createURL:y,encodeLocation(C){let f=y(C);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:m,replace:v,go(C){return i.go(C)}};return S}function vp(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),H(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:rr(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function Nc(e,t,n="/"){return yp(e,t,n,!1)}function yp(e,t,n,r){let l=typeof t=="string"?hn(t):t,o=qe(l.pathname||"/",n);if(o==null)return null;let i=zc(e);gp(i);let u=null;for(let a=0;u==null&&a{let p={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:u,route:i};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(r)&&a)return;H(p.relativePath.startsWith(r),`Absolute route path "${p.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(r.length)}let h=Ye([r,p.relativePath]),m=n.concat(p);i.children&&i.children.length>0&&(H(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),zc(i.children,t,m,h,a)),!(i.path==null&&!i.index)&&t.push({path:h,score:Pp(h,i.index),routesMeta:m})};return e.forEach((i,u)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,u);else for(let s of Tc(i.path))o(i,u,!0,s)}),t}function Tc(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let i=Tc(r.join("/")),u=[];return u.push(...i.map(a=>a===""?o:[o,a].join("/"))),l&&u.push(...i),u.map(a=>e.startsWith("/")&&a===""?"/":a)}function gp(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:_p(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var wp=/^:[\w-]+$/,Sp=3,kp=2,Ep=1,Cp=10,xp=-2,va=e=>e==="*";function Pp(e,t){let n=e.split("/"),r=n.length;return n.some(va)&&(r+=xp),t&&(r+=kp),n.filter(l=>!va(l)).reduce((l,o)=>l+(wp.test(o)?Sp:o===""?Ep:Cp),r)}function _p(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function Rp(e,t,n=!1){let{routesMeta:r}=e,l={},o="/",i=[];for(let u=0;u{if(p==="*"){let y=u[m]||"";i=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const v=u[m];return h&&!v?s[p]=void 0:s[p]=(v||"").replace(/%2F/g,"/"),s},{}),pathname:o,pathnameBase:i,pattern:e}}function Lp(e,t=!1,n=!0){Be(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 r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,u,a)=>(r.push({paramName:u,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function Np(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Be(!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 qe(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function zp(e,t="/"){let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?hn(e):e;return{pathname:n?n.startsWith("/")?n:Tp(n,t):t,search:Dp(r),hash:Ip(l)}}function Tp(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function so(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. 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 Fp(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Fc(e){let t=Fp(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Mc(e,t,n,r=!1){let l;typeof e=="string"?l=hn(e):(l={...e},H(!l.pathname||!l.pathname.includes("?"),so("?","pathname","search",l)),H(!l.pathname||!l.pathname.includes("#"),so("#","pathname","hash",l)),H(!l.search||!l.search.includes("#"),so("#","search","hash",l)));let o=e===""||l.pathname==="",i=o?"/":l.pathname,u;if(i==null)u=n;else{let h=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),h-=1;l.pathname=m.join("/")}u=h>=0?t[h]:"/"}let a=zp(l,u),s=i&&i!=="/"&&i.endsWith("/"),p=(o||i===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(s||p)&&(a.pathname+="/"),a}var Ye=e=>e.join("/").replace(/\/\/+/g,"/"),Mp=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Dp=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ip=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Op(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Dc=["POST","PUT","PATCH","DELETE"];new Set(Dc);var $p=["GET",...Dc];new Set($p);var mn=w.createContext(null);mn.displayName="DataRouter";var Fl=w.createContext(null);Fl.displayName="DataRouterState";w.createContext(!1);var Ic=w.createContext({isTransitioning:!1});Ic.displayName="ViewTransition";var Up=w.createContext(new Map);Up.displayName="Fetchers";var jp=w.createContext(null);jp.displayName="Await";var Ae=w.createContext(null);Ae.displayName="Navigation";var sr=w.createContext(null);sr.displayName="Location";var et=w.createContext({outlet:null,matches:[],isDataRoute:!1});et.displayName="Route";var eu=w.createContext(null);eu.displayName="RouteError";function Bp(e,{relative:t}={}){H(cr(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:r}=w.useContext(Ae),{hash:l,pathname:o,search:i}=fr(e,{relative:t}),u=o;return n!=="/"&&(u=o==="/"?n:Ye([n,o])),r.createHref({pathname:u,search:i,hash:l})}function cr(){return w.useContext(sr)!=null}function $t(){return H(cr(),"useLocation() may be used only in the context of a component."),w.useContext(sr).location}var Oc="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function $c(e){w.useContext(Ae).static||w.useLayoutEffect(e)}function Ap(){let{isDataRoute:e}=w.useContext(et);return e?eh():Hp()}function Hp(){H(cr(),"useNavigate() may be used only in the context of a component.");let e=w.useContext(mn),{basename:t,navigator:n}=w.useContext(Ae),{matches:r}=w.useContext(et),{pathname:l}=$t(),o=JSON.stringify(Fc(r)),i=w.useRef(!1);return $c(()=>{i.current=!0}),w.useCallback((a,s={})=>{if(Be(i.current,Oc),!i.current)return;if(typeof a=="number"){n.go(a);return}let p=Mc(a,JSON.parse(o),l,s.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Ye([t,p.pathname])),(s.replace?n.replace:n.push)(p,s.state,s)},[t,n,o,l,e])}w.createContext(null);function fr(e,{relative:t}={}){let{matches:n}=w.useContext(et),{pathname:r}=$t(),l=JSON.stringify(Fc(n));return w.useMemo(()=>Mc(e,JSON.parse(l),r,t==="path"),[e,l,r,t])}function Wp(e,t){return Uc(e,t)}function Uc(e,t,n,r,l){var c;H(cr(),"useRoutes() may be used only in the context of a component.");let{navigator:o}=w.useContext(Ae),{matches:i}=w.useContext(et),u=i[i.length-1],a=u?u.params:{},s=u?u.pathname:"/",p=u?u.pathnameBase:"/",h=u&&u.route;{let d=h&&h.path||"";jc(s,!h||d.endsWith("*")||d.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${s}" (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 m=$t(),v;if(t){let d=typeof t=="string"?hn(t):t;H(p==="/"||((c=d.pathname)==null?void 0:c.startsWith(p)),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${d.pathname}" was given in the \`location\` prop.`),v=d}else v=m;let y=v.pathname||"/",S=y;if(p!=="/"){let d=p.replace(/^\//,"").split("/");S="/"+y.replace(/^\//,"").split("/").slice(d.length).join("/")}let C=Nc(e,{pathname:S});Be(h||C!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),Be(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let f=Xp(C&&C.map(d=>Object.assign({},d,{params:Object.assign({},a,d.params),pathname:Ye([p,o.encodeLocation?o.encodeLocation(d.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:d.pathname]),pathnameBase:d.pathnameBase==="/"?p:Ye([p,o.encodeLocation?o.encodeLocation(d.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:d.pathnameBase])})),i,n,r,l);return t&&f?w.createElement(sr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},f):f}function Vp(){let e=bp(),t=Op(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:o},"ErrorBoundary")," or"," ",w.createElement("code",{style:o},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:l},n):null,i)}var Qp=w.createElement(Vp,null),Kp=class extends w.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.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?w.createElement(et.Provider,{value:this.props.routeContext},w.createElement(eu.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Yp({routeContext:e,match:t,children:n}){let r=w.useContext(mn);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),w.createElement(et.Provider,{value:e},n)}function Xp(e,t=[],n=null,r=null,l=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,i=n==null?void 0:n.errors;if(i!=null){let s=o.findIndex(p=>p.route.id&&(i==null?void 0:i[p.route.id])!==void 0);H(s>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,s+1))}let u=!1,a=-1;if(n)for(let s=0;s=0?o=o.slice(0,a+1):o=[o[0]];break}}}return o.reduceRight((s,p,h)=>{let m,v=!1,y=null,S=null;n&&(m=i&&p.route.id?i[p.route.id]:void 0,y=p.route.errorElement||Qp,u&&(a<0&&h===0?(jc("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,S=null):a===h&&(v=!0,S=p.route.hydrateFallbackElement||null)));let C=t.concat(o.slice(0,h+1)),f=()=>{let c;return m?c=y:v?c=S:p.route.Component?c=w.createElement(p.route.Component,null):p.route.element?c=p.route.element:c=s,w.createElement(Yp,{match:p,routeContext:{outlet:s,matches:C,isDataRoute:n!=null},children:c})};return n&&(p.route.ErrorBoundary||p.route.errorElement||h===0)?w.createElement(Kp,{location:n.location,revalidation:n.revalidation,component:y,error:m,children:f(),routeContext:{outlet:null,matches:C,isDataRoute:!0},unstable_onError:r}):f()},null)}function tu(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Gp(e){let t=w.useContext(mn);return H(t,tu(e)),t}function Zp(e){let t=w.useContext(Fl);return H(t,tu(e)),t}function Jp(e){let t=w.useContext(et);return H(t,tu(e)),t}function nu(e){let t=Jp(e),n=t.matches[t.matches.length-1];return H(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function qp(){return nu("useRouteId")}function bp(){var r;let e=w.useContext(eu),t=Zp("useRouteError"),n=nu("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function eh(){let{router:e}=Gp("useNavigate"),t=nu("useNavigate"),n=w.useRef(!1);return $c(()=>{n.current=!0}),w.useCallback(async(l,o={})=>{Be(n.current,Oc),n.current&&(typeof l=="number"?e.navigate(l):await e.navigate(l,{fromRouteId:t,...o}))},[e,t])}var ya={};function jc(e,t,n){!t&&!ya[e]&&(ya[e]=!0,Be(!1,n))}w.memo(th);function th({routes:e,future:t,state:n,unstable_onError:r}){return Uc(e,void 0,n,r,t)}function nh(e){H(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function rh({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:l,static:o=!1}){H(!cr(),"You cannot render a inside another . You should never have more than one in your app.");let i=e.replace(/^\/*/,"/"),u=w.useMemo(()=>({basename:i,navigator:l,static:o,future:{}}),[i,l,o]);typeof n=="string"&&(n=hn(n));let{pathname:a="/",search:s="",hash:p="",state:h=null,key:m="default"}=n,v=w.useMemo(()=>{let y=qe(a,i);return y==null?null:{location:{pathname:y,search:s,hash:p,state:h,key:m},navigationType:r}},[i,a,s,p,h,m,r]);return Be(v!=null,` is not able to match the URL "${a}${s}${p}" because it does not start with the basename, so the won't render anything.`),v==null?null:w.createElement(Ae.Provider,{value:u},w.createElement(sr.Provider,{children:t,value:v}))}function Oh({children:e,location:t}){return Wp(oi(e),t)}function oi(e,t=[]){let n=[];return w.Children.forEach(e,(r,l)=>{if(!w.isValidElement(r))return;let o=[...t,l];if(r.type===w.Fragment){n.push.apply(n,oi(r.props.children,o));return}H(r.type===nh,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),H(!r.props.index||!r.props.children,"An index route cannot have child routes.");let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=oi(r.props.children,o)),n.push(i)}),n}var Vr="get",Qr="application/x-www-form-urlencoded";function Ml(e){return e!=null&&typeof e.tagName=="string"}function lh(e){return Ml(e)&&e.tagName.toLowerCase()==="button"}function oh(e){return Ml(e)&&e.tagName.toLowerCase()==="form"}function ih(e){return Ml(e)&&e.tagName.toLowerCase()==="input"}function uh(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ah(e,t){return e.button===0&&(!t||t==="_self")&&!uh(e)}var Tr=null;function sh(){if(Tr===null)try{new FormData(document.createElement("form"),0),Tr=!1}catch{Tr=!0}return Tr}var ch=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function co(e){return e!=null&&!ch.has(e)?(Be(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Qr}"`),null):e}function fh(e,t){let n,r,l,o,i;if(oh(e)){let u=e.getAttribute("action");r=u?qe(u,t):null,n=e.getAttribute("method")||Vr,l=co(e.getAttribute("enctype"))||Qr,o=new FormData(e)}else if(lh(e)||ih(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a