function $f(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var ah=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ya(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function sh(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,l.get?l:{enumerable:!0,get:function(){return e[r]}})}),n}var ga={exports:{}},T={};/** * @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 rr=Symbol.for("react.element"),Bf=Symbol.for("react.portal"),Af=Symbol.for("react.fragment"),Vf=Symbol.for("react.strict_mode"),Wf=Symbol.for("react.profiler"),Hf=Symbol.for("react.provider"),Qf=Symbol.for("react.context"),Kf=Symbol.for("react.forward_ref"),Yf=Symbol.for("react.suspense"),Xf=Symbol.for("react.memo"),Gf=Symbol.for("react.lazy"),bi=Symbol.iterator;function Zf(e){return e===null||typeof e!="object"?null:(e=bi&&e[bi]||e["@@iterator"],typeof e=="function"?e:null)}var wa={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Sa=Object.assign,ka={};function sn(e,t,n){this.props=e,this.context=t,this.refs=ka,this.updater=n||wa}sn.prototype.isReactComponent={};sn.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")};sn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ea(){}Ea.prototype=sn.prototype;function bu(e,t,n){this.props=e,this.context=t,this.refs=ka,this.updater=n||wa}var ei=bu.prototype=new Ea;ei.constructor=bu;Sa(ei,sn.prototype);ei.isPureReactComponent=!0;var eo=Array.isArray,Ca=Object.prototype.hasOwnProperty,ti={current:null},xa={key:!0,ref:!0,__self:!0,__source:!0};function _a(e,t,n){var r,l={},u=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(u=""+t.key),t)Ca.call(t,r)&&!xa.hasOwnProperty(r)&&(l[r]=t[r]);var o=arguments.length-2;if(o===1)l.children=n;else if(1>>1,Z=_[H];if(0>>1;Hl(Rl,L))ktl(sr,Rl)?(_[H]=sr,_[kt]=L,H=kt):(_[H]=Rl,_[St]=L,H=St);else if(ktl(sr,L))_[H]=sr,_[kt]=L,H=kt;else break e}}return R}function l(_,R){var L=_.sortIndex-R.sortIndex;return L!==0?L:_.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var i=Date,o=i.now();e.unstable_now=function(){return i.now()-o}}var a=[],s=[],h=1,p=null,m=3,y=!1,g=!1,w=!1,C=typeof setTimeout=="function"?setTimeout:null,c=typeof clearTimeout=="function"?clearTimeout:null,f=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(_){for(var R=n(s);R!==null;){if(R.callback===null)r(s);else if(R.startTime<=_)r(s),R.sortIndex=R.expirationTime,t(a,R);else break;R=n(s)}}function v(_){if(w=!1,d(_),!g)if(n(a)!==null)g=!0,Nl(k);else{var R=n(s);R!==null&&zl(v,R.startTime-_)}}function k(_,R){g=!1,w&&(w=!1,c(z),z=-1),y=!0;var L=m;try{for(d(R),p=n(a);p!==null&&(!(p.expirationTime>R)||_&&!Ne());){var H=p.callback;if(typeof H=="function"){p.callback=null,m=p.priorityLevel;var Z=H(p.expirationTime<=R);R=e.unstable_now(),typeof Z=="function"?p.callback=Z:p===n(a)&&r(a),d(R)}else r(a);p=n(a)}if(p!==null)var ar=!0;else{var St=n(s);St!==null&&zl(v,St.startTime-R),ar=!1}return ar}finally{p=null,m=L,y=!1}}var P=!1,N=null,z=-1,W=5,O=-1;function Ne(){return!(e.unstable_now()-O_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(_){switch(m){case 1:case 2:case 3:var R=3;break;default:R=m}var L=m;m=R;try{return _()}finally{m=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,R){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var L=m;m=_;try{return R()}finally{m=L}},e.unstable_scheduleCallback=function(_,R,L){var H=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0H?(_.sortIndex=L,t(s,_),n(a)===null&&_===n(s)&&(w?(c(z),z=-1):w=!0,zl(v,L-H))):(_.sortIndex=Z,t(a,_),g||y||(g=!0,Nl(k))),_},e.unstable_shouldYield=Ne,e.unstable_wrapCallback=function(_){var R=m;return function(){var L=m;m=R;try{return _.apply(this,arguments)}finally{m=L}}}})(Ra);za.exports=Ra;var rc=za.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 lc=E,ge=rc;function S(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"),ru=Object.prototype.hasOwnProperty,uc=/^[: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]*$/,no={},ro={};function ic(e){return ru.call(ro,e)?!0:ru.call(no,e)?!1:uc.test(e)?ro[e]=!0:(no[e]=!0,!1)}function oc(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 ac(e,t,n,r){if(t===null||typeof t>"u"||oc(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,u,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=u,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 ri=/[\-:]([a-z])/g;function li(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(ri,li);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(ri,li);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(ri,li);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 ui(e,t,n,r){var l=te.hasOwnProperty(t)?te[t]:null;(l!==null?l.type!==0:r||!(2o||l[i]!==u[o]){var a=` `+l[i].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=i&&0<=o);break}}}finally{Ol=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_n(e):""}function sc(e){switch(e.tag){case 5:return _n(e.type);case 16:return _n("Lazy");case 13:return _n("Suspense");case 19:return _n("SuspenseList");case 0:case 2:case 15:return e=Ml(e.type,!1),e;case 11:return e=Ml(e.type.render,!1),e;case 1:return e=Ml(e.type,!0),e;default:return""}}function ou(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 Ut:return"Fragment";case jt:return"Portal";case lu:return"Profiler";case ii:return"StrictMode";case uu:return"Suspense";case iu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Oa:return(e.displayName||"Context")+".Consumer";case Ta:return(e._context.displayName||"Context")+".Provider";case oi:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ai:return t=e.displayName||null,t!==null?t:ou(e.type)||"Memo";case qe:t=e._payload,e=e._init;try{return ou(e(t))}catch{}}return null}function fc(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 ou(t);case 8:return t===ii?"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 ht(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 cc(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,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,u.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 dr(e){e._valueTracker||(e._valueTracker=cc(e))}function Fa(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 $r(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 au(e,t){var n=t.checked;return A({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function uo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ht(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 Da(e,t){t=t.checked,t!=null&&ui(e,"checked",t,!1)}function su(e,t){Da(e,t);var n=ht(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")?fu(e,t.type,n):t.hasOwnProperty("defaultValue")&&fu(e,t.type,ht(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function io(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 fu(e,t,n){(t!=="number"||$r(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Pn=Array.isArray;function Gt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=pr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function $n(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Rn={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},dc=["Webkit","ms","Moz","O"];Object.keys(Rn).forEach(function(e){dc.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Rn[t]=Rn[e]})});function Ba(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Rn.hasOwnProperty(e)&&Rn[e]?(""+t).trim():t+"px"}function Aa(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Ba(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var pc=A({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 pu(e,t){if(t){if(pc[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(S(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(S(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(S(61))}if(t.style!=null&&typeof t.style!="object")throw Error(S(62))}}function hu(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 mu=null;function si(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vu=null,Zt=null,Jt=null;function so(e){if(e=ir(e)){if(typeof vu!="function")throw Error(S(280));var t=e.stateNode;t&&(t=ml(t),vu(e.stateNode,e.type,t))}}function Va(e){Zt?Jt?Jt.push(e):Jt=[e]:Zt=e}function Wa(){if(Zt){var e=Zt,t=Jt;if(Jt=Zt=null,so(e),t)for(e=0;e>>=0,e===0?32:31-(xc(e)/_c|0)|0}var hr=64,mr=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 Wr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,u=e.pingedLanes,i=n&268435455;if(i!==0){var o=i&~l;o!==0?r=Nn(o):(u&=i,u!==0&&(r=Nn(u)))}else i=n&~l,i!==0?r=Nn(i):u!==0&&(r=Nn(u));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,u=t&-t,l>=u||l===16&&(u&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 lr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Oe(t),e[t]=n}function Rc(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=Tn),wo=" ",So=!1;function ss(e,t){switch(e){case"keyup":return rd.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 $t=!1;function ud(e,t){switch(e){case"compositionend":return fs(t);case"keypress":return t.which!==32?null:(So=!0,wo);case"textInput":return e=t.data,e===wo&&So?null:e;default:return null}}function id(e,t){if($t)return e==="compositionend"||!yi&&ss(e,t)?(e=os(),Lr=hi=nt=null,$t=!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=xo(n)}}function hs(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?hs(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ms(){for(var e=window,t=$r();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=$r(e.document)}return t}function gi(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 md(e){var t=ms(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&hs(n.ownerDocument.documentElement,n)){if(r!==null&&gi(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,u=Math.min(r.start,l);r=r.end===void 0?u:Math.min(r.end,l),!e.extend&&u>r&&(l=r,r=u,u=l),l=_o(n,u);var i=_o(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(),u>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,Bt=null,Eu=null,Mn=null,Cu=!1;function Po(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Cu||Bt==null||Bt!==$r(r)||(r=Bt,"selectionStart"in r&&gi(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}),Mn&&Qn(Mn,r)||(Mn=r,r=Kr(Eu,"onSelect"),0Wt||(e.current=Ru[Wt],Ru[Wt]=null,Wt--)}function F(e,t){Wt++,Ru[Wt]=e.current,e.current=t}var mt={},ue=yt(mt),de=yt(!1),Rt=mt;function nn(e,t){var n=e.type.contextTypes;if(!n)return mt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function pe(e){return e=e.childContextTypes,e!=null}function Xr(){j(de),j(ue)}function Mo(e,t,n){if(ue.current!==mt)throw Error(S(168));F(ue,t),F(de,n)}function xs(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(S(108,fc(e)||"Unknown",l));return A({},n,r)}function Gr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mt,Rt=ue.current,F(ue,e),F(de,de.current),!0}function Io(e,t,n){var r=e.stateNode;if(!r)throw Error(S(169));n?(e=xs(e,t,Rt),r.__reactInternalMemoizedMergedChildContext=e,j(de),j(ue),F(ue,e)):j(de),F(de,n)}var Ae=null,vl=!1,Yl=!1;function _s(e){Ae===null?Ae=[e]:Ae.push(e)}function Nd(e){vl=!0,_s(e)}function gt(){if(!Yl&&Ae!==null){Yl=!0;var e=0,t=I;try{var n=Ae;for(I=1;e>=i,l-=i,Ve=1<<32-Oe(t)+l|n<z?(W=N,N=null):W=N.sibling;var O=m(c,N,d[z],v);if(O===null){N===null&&(N=W);break}e&&N&&O.alternate===null&&t(c,N),f=u(O,f,z),P===null?k=O:P.sibling=O,P=O,N=W}if(z===d.length)return n(c,N),U&&Et(c,z),k;if(N===null){for(;zz?(W=N,N=null):W=N.sibling;var Ne=m(c,N,O.value,v);if(Ne===null){N===null&&(N=W);break}e&&N&&Ne.alternate===null&&t(c,N),f=u(Ne,f,z),P===null?k=Ne:P.sibling=Ne,P=Ne,N=W}if(O.done)return n(c,N),U&&Et(c,z),k;if(N===null){for(;!O.done;z++,O=d.next())O=p(c,O.value,v),O!==null&&(f=u(O,f,z),P===null?k=O:P.sibling=O,P=O);return U&&Et(c,z),k}for(N=r(c,N);!O.done;z++,O=d.next())O=y(N,c,z,O.value,v),O!==null&&(e&&O.alternate!==null&&N.delete(O.key===null?z:O.key),f=u(O,f,z),P===null?k=O:P.sibling=O,P=O);return e&&N.forEach(function(mn){return t(c,mn)}),U&&Et(c,z),k}function C(c,f,d,v){if(typeof d=="object"&&d!==null&&d.type===Ut&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case cr:e:{for(var k=d.key,P=f;P!==null;){if(P.key===k){if(k=d.type,k===Ut){if(P.tag===7){n(c,P.sibling),f=l(P,d.props.children),f.return=c,c=f;break e}}else if(P.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===qe&&jo(k)===P.type){n(c,P.sibling),f=l(P,d.props),f.ref=En(c,P,d),f.return=c,c=f;break e}n(c,P);break}else t(c,P);P=P.sibling}d.type===Ut?(f=zt(d.props.children,c.mode,v,d.key),f.return=c,c=f):(v=Ur(d.type,d.key,d.props,null,c.mode,v),v.ref=En(c,f,d),v.return=c,c=v)}return i(c);case jt:e:{for(P=d.key;f!==null;){if(f.key===P)if(f.tag===4&&f.stateNode.containerInfo===d.containerInfo&&f.stateNode.implementation===d.implementation){n(c,f.sibling),f=l(f,d.children||[]),f.return=c,c=f;break e}else{n(c,f);break}else t(c,f);f=f.sibling}f=tu(d,c.mode,v),f.return=c,c=f}return i(c);case qe:return P=d._init,C(c,f,P(d._payload),v)}if(Pn(d))return g(c,f,d,v);if(yn(d))return w(c,f,d,v);Er(c,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,f!==null&&f.tag===6?(n(c,f.sibling),f=l(f,d),f.return=c,c=f):(n(c,f),f=eu(d,c.mode,v),f.return=c,c=f),i(c)):n(c,f)}return C}var ln=Rs(!0),Ls=Rs(!1),qr=yt(null),br=null,Kt=null,Ei=null;function Ci(){Ei=Kt=br=null}function xi(e){var t=qr.current;j(qr),e._currentValue=t}function Ou(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 bt(e,t){br=e,Ei=Kt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ce=!0),e.firstContext=null)}function _e(e){var t=e._currentValue;if(Ei!==e)if(e={context:e,memoizedValue:t,next:null},Kt===null){if(br===null)throw Error(S(308));Kt=e,br.dependencies={lanes:0,firstContext:e}}else Kt=Kt.next=e;return t}var _t=null;function _i(e){_t===null?_t=[e]:_t.push(e)}function Ts(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,_i(t)):(n.next=l.next,l.next=n),t.interleaved=n,Ye(e,r)}function Ye(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 be=!1;function Pi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Os(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 He(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function st(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,M&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Ye(e,n)}return l=r.interleaved,l===null?(t.next=t,_i(r)):(t.next=l.next,l.next=t),r.interleaved=t,Ye(e,n)}function Or(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,ci(e,n)}}function Uo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,u=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};u===null?l=u=i:u=u.next=i,n=n.next}while(n!==null);u===null?l=u=t:u=u.next=t}else l=u=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:u,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 el(e,t,n,r){var l=e.updateQueue;be=!1;var u=l.firstBaseUpdate,i=l.lastBaseUpdate,o=l.shared.pending;if(o!==null){l.shared.pending=null;var a=o,s=a.next;a.next=null,i===null?u=s:i.next=s,i=a;var h=e.alternate;h!==null&&(h=h.updateQueue,o=h.lastBaseUpdate,o!==i&&(o===null?h.firstBaseUpdate=s:o.next=s,h.lastBaseUpdate=a))}if(u!==null){var p=l.baseState;i=0,h=s=a=null,o=u;do{var m=o.lane,y=o.eventTime;if((r&m)===m){h!==null&&(h=h.next={eventTime:y,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var g=e,w=o;switch(m=t,y=n,w.tag){case 1:if(g=w.payload,typeof g=="function"){p=g.call(y,p,m);break e}p=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=w.payload,m=typeof g=="function"?g.call(y,p,m):g,m==null)break e;p=A({},p,m);break e;case 2:be=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[o]:m.push(o))}else y={eventTime:y,lane:m,tag:o.tag,payload:o.payload,callback:o.callback,next:null},h===null?(s=h=y,a=p):h=h.next=y,i|=m;if(o=o.next,o===null){if(o=l.shared.pending,o===null)break;m=o,o=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(h===null&&(a=p),l.baseState=a,l.firstBaseUpdate=s,l.lastBaseUpdate=h,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else u===null&&(l.shared.lanes=0);Ot|=i,e.lanes=i,e.memoizedState=p}}function $o(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Gl.transition;Gl.transition={};try{e(!1),t()}finally{I=n,Gl.transition=r}}function Gs(){return Pe().memoizedState}function Td(e,t,n){var r=ct(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zs(e))Js(t,n);else if(n=Ts(e,t,n,r),n!==null){var l=oe();Me(n,e,r,l),qs(n,t,r)}}function Od(e,t,n){var r=ct(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zs(e))Js(t,l);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var i=t.lastRenderedState,o=u(i,n);if(l.hasEagerState=!0,l.eagerState=o,Ie(o,i)){var a=t.interleaved;a===null?(l.next=l,_i(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=Ts(e,t,l,r),n!==null&&(l=oe(),Me(n,e,r,l),qs(n,t,r))}}function Zs(e){var t=e.alternate;return e===B||t!==null&&t===B}function Js(e,t){In=nl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function qs(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ci(e,n)}}var rl={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},Md={readContext:_e,useCallback:function(e,t){return De().memoizedState=[e,t===void 0?null:t],e},useContext:_e,useEffect:Ao,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ir(4194308,4,Hs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ir(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ir(4,2,e,t)},useMemo:function(e,t){var n=De();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=De();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=Td.bind(null,B,e),[r.memoizedState,e]},useRef:function(e){var t=De();return e={current:e},t.memoizedState=e},useState:Bo,useDebugValue:Ii,useDeferredValue:function(e){return De().memoizedState=e},useTransition:function(){var e=Bo(!1),t=e[0];return e=Ld.bind(null,e[1]),De().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=B,l=De();if(U){if(n===void 0)throw Error(S(407));n=n()}else{if(n=t(),q===null)throw Error(S(349));Tt&30||Ds(r,t,n)}l.memoizedState=n;var u={value:n,getSnapshot:t};return l.queue=u,Ao(Us.bind(null,r,u,e),[e]),r.flags|=2048,bn(9,js.bind(null,r,u,n,t),void 0,null),n},useId:function(){var e=De(),t=q.identifierPrefix;if(U){var n=We,r=Ve;n=(r&~(1<<32-Oe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Jn++,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[je]=t,e[Xn]=r,sf(e,t,!1,!1),t.stateNode=e;e:{switch(i=hu(n,r),n){case"dialog":D("cancel",e),D("close",e),l=r;break;case"iframe":case"object":case"embed":D("load",e),l=r;break;case"video":case"audio":for(l=0;lan&&(t.flags|=128,r=!0,Cn(u,!1),t.lanes=4194304)}else{if(!r)if(e=tl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Cn(u,!0),u.tail===null&&u.tailMode==="hidden"&&!i.alternate&&!U)return re(t),null}else 2*Q()-u.renderingStartTime>an&&n!==1073741824&&(t.flags|=128,r=!0,Cn(u,!1),t.lanes=4194304);u.isBackwards?(i.sibling=t.child,t.child=i):(n=u.last,n!==null?n.sibling=i:t.child=i,u.last=i)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Q(),t.sibling=null,n=$.current,F($,r?n&1|2:n&1),t):(re(t),null);case 22:case 23:return Bi(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?me&1073741824&&(re(t),t.subtreeFlags&6&&(t.flags|=8192)):re(t),null;case 24:return null;case 25:return null}throw Error(S(156,t.tag))}function Ad(e,t){switch(Si(t),t.tag){case 1:return pe(t.type)&&Xr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return un(),j(de),j(ue),Ri(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return zi(t),null;case 13:if(j($),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(S(340));rn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return j($),null;case 4:return un(),null;case 10:return xi(t.type._context),null;case 22:case 23:return Bi(),null;case 24:return null;default:return null}}var xr=!1,le=!1,Vd=typeof WeakSet=="function"?WeakSet:Set,x=null;function Yt(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 Au(e,t,n){try{n()}catch(r){V(e,t,r)}}var qo=!1;function Wd(e,t){if(xu=Hr,e=ms(),gi(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,u=r.focusNode;r=r.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var i=0,o=-1,a=-1,s=0,h=0,p=e,m=null;t:for(;;){for(var y;p!==n||l!==0&&p.nodeType!==3||(o=i+l),p!==u||r!==0&&p.nodeType!==3||(a=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(y=p.firstChild)!==null;)m=p,p=y;for(;;){if(p===e)break t;if(m===n&&++s===l&&(o=i),m===u&&++h===r&&(a=i),(y=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=y}n=o===-1||a===-1?null:{start:o,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(_u={focusedElem:e,selectionRange:n},Hr=!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 g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var w=g.memoizedProps,C=g.memoizedState,c=t.stateNode,f=c.getSnapshotBeforeUpdate(t.elementType===t.type?w:Re(t.type,w),C);c.__reactInternalSnapshotBeforeUpdate=f}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(S(163))}}catch(v){V(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,x=e;break}x=t.return}return g=qo,qo=!1,g}function Fn(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 u=l.destroy;l.destroy=void 0,u!==void 0&&Au(t,n,u)}l=l.next}while(l!==r)}}function wl(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 Vu(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 df(e){var t=e.alternate;t!==null&&(e.alternate=null,df(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[je],delete t[Xn],delete t[zu],delete t[_d],delete t[Pd])),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 pf(e){return e.tag===5||e.tag===3||e.tag===4}function bo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pf(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 Wu(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=Yr));else if(r!==4&&(e=e.child,e!==null))for(Wu(e,t,n),e=e.sibling;e!==null;)Wu(e,t,n),e=e.sibling}function Hu(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(Hu(e,t,n),e=e.sibling;e!==null;)Hu(e,t,n),e=e.sibling}var b=null,Le=!1;function Je(e,t,n){for(n=n.child;n!==null;)hf(e,t,n),n=n.sibling}function hf(e,t,n){if(Ue&&typeof Ue.onCommitFiberUnmount=="function")try{Ue.onCommitFiberUnmount(cl,n)}catch{}switch(n.tag){case 5:le||Yt(n,t);case 6:var r=b,l=Le;b=null,Je(e,t,n),b=r,Le=l,b!==null&&(Le?(e=b,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):b.removeChild(n.stateNode));break;case 18:b!==null&&(Le?(e=b,n=n.stateNode,e.nodeType===8?Kl(e.parentNode,n):e.nodeType===1&&Kl(e,n),Wn(e)):Kl(b,n.stateNode));break;case 4:r=b,l=Le,b=n.stateNode.containerInfo,Le=!0,Je(e,t,n),b=r,Le=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 u=l,i=u.destroy;u=u.tag,i!==void 0&&(u&2||u&4)&&Au(n,t,i),l=l.next}while(l!==r)}Je(e,t,n);break;case 1:if(!le&&(Yt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){V(n,t,o)}Je(e,t,n);break;case 21:Je(e,t,n);break;case 22:n.mode&1?(le=(r=le)||n.memoizedState!==null,Je(e,t,n),le=r):Je(e,t,n);break;default:Je(e,t,n)}}function ea(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Vd),t.forEach(function(r){var l=qd.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~u}if(r=l,r=Q()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Qd(r/1960))-r,10e?16:e,rt===null)var r=!1;else{if(e=rt,rt=null,il=0,M&6)throw Error(S(331));var l=M;for(M|=4,x=e.current;x!==null;){var u=x,i=u.child;if(x.flags&16){var o=u.deletions;if(o!==null){for(var a=0;aQ()-Ui?Nt(e,0):ji|=n),he(e,t)}function Ef(e,t){t===0&&(e.mode&1?(t=mr,mr<<=1,!(mr&130023424)&&(mr=4194304)):t=1);var n=oe();e=Ye(e,t),e!==null&&(lr(e,t,n),he(e,n))}function Jd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ef(e,n)}function qd(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(S(314))}r!==null&&r.delete(t),Ef(e,n)}var Cf;Cf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||de.current)ce=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ce=!1,$d(e,t,n);ce=!!(e.flags&131072)}else ce=!1,U&&t.flags&1048576&&Ps(t,Jr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Fr(e,t),e=t.pendingProps;var l=nn(t,ue.current);bt(t,n),l=Ti(null,t,r,e,l,n);var u=Oi();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,pe(r)?(u=!0,Gr(t)):u=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Pi(t),l.updater=gl,t.stateNode=l,l._reactInternals=t,Iu(t,r,e,n),t=ju(null,t,r,!0,u,n)):(t.tag=0,U&&u&&wi(t),ie(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Fr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=ep(r),e=Re(r,e),l){case 0:t=Du(null,t,r,e,n);break e;case 1:t=Go(null,t,r,e,n);break e;case 11:t=Yo(null,t,r,e,n);break e;case 14:t=Xo(null,t,r,Re(r.type,e),n);break e}throw Error(S(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Re(r,l),Du(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Re(r,l),Go(e,t,r,l,n);case 3:e:{if(uf(t),e===null)throw Error(S(387));r=t.pendingProps,u=t.memoizedState,l=u.element,Os(e,t),el(t,r,null,n);var i=t.memoizedState;if(r=i.element,u.isDehydrated)if(u={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){l=on(Error(S(423)),t),t=Zo(e,t,r,n,l);break e}else if(r!==l){l=on(Error(S(424)),t),t=Zo(e,t,r,n,l);break e}else for(ve=at(t.stateNode.containerInfo.firstChild),ye=t,U=!0,Te=null,n=Ls(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(rn(),r===l){t=Xe(e,t,n);break e}ie(e,t,r,n)}t=t.child}return t;case 5:return Ms(t),e===null&&Tu(t),r=t.type,l=t.pendingProps,u=e!==null?e.memoizedProps:null,i=l.children,Pu(r,l)?i=null:u!==null&&Pu(r,u)&&(t.flags|=32),lf(e,t),ie(e,t,i,n),t.child;case 6:return e===null&&Tu(t),null;case 13:return of(e,t,n);case 4:return Ni(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ln(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:Re(r,l),Yo(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,u=t.memoizedProps,i=l.value,F(qr,r._currentValue),r._currentValue=i,u!==null)if(Ie(u.value,i)){if(u.children===l.children&&!de.current){t=Xe(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var o=u.dependencies;if(o!==null){i=u.child;for(var a=o.firstContext;a!==null;){if(a.context===r){if(u.tag===1){a=He(-1,n&-n),a.tag=2;var s=u.updateQueue;if(s!==null){s=s.shared;var h=s.pending;h===null?a.next=a:(a.next=h.next,h.next=a),s.pending=a}}u.lanes|=n,a=u.alternate,a!==null&&(a.lanes|=n),Ou(u.return,n,t),o.lanes|=n;break}a=a.next}}else if(u.tag===10)i=u.type===t.type?null:u.child;else if(u.tag===18){if(i=u.return,i===null)throw Error(S(341));i.lanes|=n,o=i.alternate,o!==null&&(o.lanes|=n),Ou(i,n,t),i=u.sibling}else i=u.child;if(i!==null)i.return=u;else for(i=u;i!==null;){if(i===t){i=null;break}if(u=i.sibling,u!==null){u.return=i.return,i=u;break}i=i.return}u=i}ie(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,bt(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=Re(r,t.pendingProps),l=Re(r.type,l),Xo(e,t,r,l,n);case 15:return nf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Re(r,l),Fr(e,t),t.tag=1,pe(r)?(e=!0,Gr(t)):e=!1,bt(t,n),bs(t,r,l),Iu(t,r,l,n),ju(null,t,r,!0,e,n);case 19:return af(e,t,n);case 22:return rf(e,t,n)}throw Error(S(156,t.tag))};function xf(e,t){return Za(e,t)}function bd(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 Ce(e,t,n,r){return new bd(e,t,n,r)}function Vi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ep(e){if(typeof e=="function")return Vi(e)?1:0;if(e!=null){if(e=e.$$typeof,e===oi)return 11;if(e===ai)return 14}return 2}function dt(e,t){var n=e.alternate;return n===null?(n=Ce(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 Ur(e,t,n,r,l,u){var i=2;if(r=e,typeof e=="function")Vi(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Ut:return zt(n.children,l,u,t);case ii:i=8,l|=8;break;case lu:return e=Ce(12,n,t,l|2),e.elementType=lu,e.lanes=u,e;case uu:return e=Ce(13,n,t,l),e.elementType=uu,e.lanes=u,e;case iu:return e=Ce(19,n,t,l),e.elementType=iu,e.lanes=u,e;case Ma:return kl(n,l,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ta:i=10;break e;case Oa:i=9;break e;case oi:i=11;break e;case ai:i=14;break e;case qe:i=16,r=null;break e}throw Error(S(130,e==null?e:typeof e,""))}return t=Ce(i,n,t,l),t.elementType=e,t.type=r,t.lanes=u,t}function zt(e,t,n,r){return e=Ce(7,e,r,t),e.lanes=n,e}function kl(e,t,n,r){return e=Ce(22,e,r,t),e.elementType=Ma,e.lanes=n,e.stateNode={isHidden:!1},e}function eu(e,t,n){return e=Ce(6,e,null,t),e.lanes=n,e}function tu(e,t,n){return t=Ce(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tp(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=Fl(0),this.expirationTimes=Fl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Wi(e,t,n,r,l,u,i,o,a){return e=new tp(e,t,n,o,a),t===1?(t=1,u===!0&&(t|=8)):t=0,u=Ce(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pi(u),e}function np(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zf)}catch(e){console.error(e)}}zf(),Na.exports=we;var ip=Na.exports;const fh=ya(ip);/** * @remix-run/router v1.21.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function tr(){return tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Rf(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ap(){return Math.random().toString(36).substr(2,8)}function sa(e,t){return{usr:e.state,key:e.key,idx:t}}function Gu(e,t,n,r){return n===void 0&&(n=null),tr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?dn(t):t,{state:n,key:t&&t.key||r||ap()})}function sl(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function dn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function sp(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:u=!1}=r,i=l.history,o=lt.Pop,a=null,s=h();s==null&&(s=0,i.replaceState(tr({},i.state,{idx:s}),""));function h(){return(i.state||{idx:null}).idx}function p(){o=lt.Pop;let C=h(),c=C==null?null:C-s;s=C,a&&a({action:o,location:w.location,delta:c})}function m(C,c){o=lt.Push;let f=Gu(w.location,C,c);s=h()+1;let d=sa(f,s),v=w.createHref(f);try{i.pushState(d,"",v)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;l.location.assign(v)}u&&a&&a({action:o,location:w.location,delta:1})}function y(C,c){o=lt.Replace;let f=Gu(w.location,C,c);s=h();let d=sa(f,s),v=w.createHref(f);i.replaceState(d,"",v),u&&a&&a({action:o,location:w.location,delta:0})}function g(C){let c=l.location.origin!=="null"?l.location.origin:l.location.href,f=typeof C=="string"?C:sl(C);return f=f.replace(/ $/,"%20"),K(c,"No window.location.(origin|href) available to create URL for href: "+f),new URL(f,c)}let w={get action(){return o},get location(){return e(l,i)},listen(C){if(a)throw new Error("A history only accepts one active listener");return l.addEventListener(aa,p),a=C,()=>{l.removeEventListener(aa,p),a=null}},createHref(C){return t(l,C)},createURL:g,encodeLocation(C){let c=g(C);return{pathname:c.pathname,search:c.search,hash:c.hash}},push:m,replace:y,go(C){return i.go(C)}};return w}var fa;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(fa||(fa={}));function fp(e,t,n){return n===void 0&&(n="/"),cp(e,t,n)}function cp(e,t,n,r){let l=typeof t=="string"?dn(t):t,u=Yi(l.pathname||"/",n);if(u==null)return null;let i=Lf(e);dp(i);let o=null;for(let a=0;o==null&&a{let a={relativePath:o===void 0?u.path||"":o,caseSensitive:u.caseSensitive===!0,childrenIndex:i,route:u};a.relativePath.startsWith("/")&&(K(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let s=pt([r,a.relativePath]),h=n.concat(a);u.children&&u.children.length>0&&(K(u.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),Lf(u.children,t,h,s)),!(u.path==null&&!u.index)&&t.push({path:s,score:wp(s,u.index),routesMeta:h})};return e.forEach((u,i)=>{var o;if(u.path===""||!((o=u.path)!=null&&o.includes("?")))l(u,i);else for(let a of Tf(u.path))l(u,i,a)}),t}function Tf(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),u=n.replace(/\?$/,"");if(r.length===0)return l?[u,""]:[u];let i=Tf(r.join("/")),o=[];return o.push(...i.map(a=>a===""?u:[u,a].join("/"))),l&&o.push(...i),o.map(a=>e.startsWith("/")&&a===""?"/":a)}function dp(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Sp(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const pp=/^:[\w-]+$/,hp=3,mp=2,vp=1,yp=10,gp=-2,ca=e=>e==="*";function wp(e,t){let n=e.split("/"),r=n.length;return n.some(ca)&&(r+=gp),t&&(r+=mp),n.filter(l=>!ca(l)).reduce((l,u)=>l+(pp.test(u)?hp:u===""?vp:yp),r)}function Sp(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 kp(e,t,n){let{routesMeta:r}=e,l={},u="/",i=[];for(let o=0;o{let{paramName:m,isOptional:y}=h;if(m==="*"){let w=o[p]||"";i=u.slice(0,u.length-w.length).replace(/(.)\/+$/,"$1")}const g=o[p];return y&&!g?s[m]=void 0:s[m]=(g||"").replace(/%2F/g,"/"),s},{}),pathname:u,pathnameBase:i,pattern:e}}function Cp(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Rf(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,o,a)=>(r.push({paramName:o,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function xp(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Rf(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Yi(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 _p(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?dn(e):e;return{pathname:n?n.startsWith("/")?n:Pp(n,t):t,search:Rp(r),hash:Lp(l)}}function Pp(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 nu(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 Np(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Xi(e,t){let n=Np(e);return t?n.map((r,l)=>l===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Gi(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=dn(e):(l=tr({},e),K(!l.pathname||!l.pathname.includes("?"),nu("?","pathname","search",l)),K(!l.pathname||!l.pathname.includes("#"),nu("#","pathname","hash",l)),K(!l.search||!l.search.includes("#"),nu("#","search","hash",l)));let u=e===""||l.pathname==="",i=u?"/":l.pathname,o;if(i==null)o=n;else{let p=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),p-=1;l.pathname=m.join("/")}o=p>=0?t[p]:"/"}let a=_p(l,o),s=i&&i!=="/"&&i.endsWith("/"),h=(u||i===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(s||h)&&(a.pathname+="/"),a}const pt=e=>e.join("/").replace(/\/\/+/g,"/"),zp=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Rp=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Lp=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Tp(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Of=["post","put","patch","delete"];new Set(Of);const Op=["get",...Of];new Set(Op);/** * React Router v6.28.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function nr(){return nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t{o.current=!0}),E.useCallback(function(s,h){if(h===void 0&&(h={}),!o.current)return;if(typeof s=="number"){r.go(s);return}let p=Gi(s,JSON.parse(i),u,h.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:pt([t,p.pathname])),(h.replace?r.replace:r.push)(p,h.state,h)},[t,r,i,u,e])}function ch(){let{matches:e}=E.useContext(Ze),t=e[e.length-1];return t?t.params:{}}function Ff(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=E.useContext(wt),{matches:l}=E.useContext(Ze),{pathname:u}=hn(),i=JSON.stringify(Xi(l,r.v7_relativeSplatPath));return E.useMemo(()=>Gi(e,JSON.parse(i),u,n==="path"),[e,i,u,n])}function Dp(e,t){return jp(e,t)}function jp(e,t,n,r){pn()||K(!1);let{navigator:l}=E.useContext(wt),{matches:u}=E.useContext(Ze),i=u[u.length-1],o=i?i.params:{};i&&i.pathname;let a=i?i.pathnameBase:"/";i&&i.route;let s=hn(),h;if(t){var p;let C=typeof t=="string"?dn(t):t;a==="/"||(p=C.pathname)!=null&&p.startsWith(a)||K(!1),h=C}else h=s;let m=h.pathname||"/",y=m;if(a!=="/"){let C=a.replace(/^\//,"").split("/");y="/"+m.replace(/^\//,"").split("/").slice(C.length).join("/")}let g=fp(e,{pathname:y}),w=Vp(g&&g.map(C=>Object.assign({},C,{params:Object.assign({},o,C.params),pathname:pt([a,l.encodeLocation?l.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?a:pt([a,l.encodeLocation?l.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),u,n,r);return t&&w?E.createElement(Pl.Provider,{value:{location:nr({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:lt.Pop}},w):w}function Up(){let e=Kp(),t=Tp(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:l},n):null,null)}const $p=E.createElement(Up,null);class Bp extends E.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?E.createElement(Ze.Provider,{value:this.props.routeContext},E.createElement(Mf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ap(e){let{routeContext:t,match:n,children:r}=e,l=E.useContext(Zi);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(Ze.Provider,{value:t},r)}function Vp(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var u;if(!n)return null;if(n.errors)e=n.matches;else if((u=r)!=null&&u.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,o=(l=n)==null?void 0:l.errors;if(o!=null){let h=i.findIndex(p=>p.route.id&&(o==null?void 0:o[p.route.id])!==void 0);h>=0||K(!1),i=i.slice(0,Math.min(i.length,h+1))}let a=!1,s=-1;if(n&&r&&r.v7_partialHydration)for(let h=0;h=0?i=i.slice(0,s+1):i=[i[0]];break}}}return i.reduceRight((h,p,m)=>{let y,g=!1,w=null,C=null;n&&(y=o&&p.route.id?o[p.route.id]:void 0,w=p.route.errorElement||$p,a&&(s<0&&m===0?(g=!0,C=null):s===m&&(g=!0,C=p.route.hydrateFallbackElement||null)));let c=t.concat(i.slice(0,m+1)),f=()=>{let d;return y?d=w:g?d=C:p.route.Component?d=E.createElement(p.route.Component,null):p.route.element?d=p.route.element:d=h,E.createElement(Ap,{match:p,routeContext:{outlet:h,matches:c,isDataRoute:n!=null},children:d})};return n&&(p.route.ErrorBoundary||p.route.errorElement||m===0)?E.createElement(Bp,{location:n.location,revalidation:n.revalidation,component:w,error:y,children:f(),routeContext:{outlet:null,matches:c,isDataRoute:!0}}):f()},null)}var Df=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Df||{}),fl=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(fl||{});function Wp(e){let t=E.useContext(Zi);return t||K(!1),t}function Hp(e){let t=E.useContext(Mp);return t||K(!1),t}function Qp(e){let t=E.useContext(Ze);return t||K(!1),t}function jf(e){let t=Qp(),n=t.matches[t.matches.length-1];return n.route.id||K(!1),n.route.id}function Kp(){var e;let t=E.useContext(Mf),n=Hp(fl.UseRouteError),r=jf(fl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Yp(){let{router:e}=Wp(Df.UseNavigateStable),t=jf(fl.UseNavigateStable),n=E.useRef(!1);return If(()=>{n.current=!0}),E.useCallback(function(l,u){u===void 0&&(u={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,nr({fromRouteId:t},u)))},[e,t])}const da={};function Xp(e,t){da[t]||(da[t]=!0,console.warn(t))}const pa=(e,t,n)=>Xp(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function Gp(e,t){(e==null?void 0:e.v7_startTransition)===void 0&&pa("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),(e==null?void 0:e.v7_relativeSplatPath)===void 0&&pa("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function dh(e){let{to:t,replace:n,state:r,relative:l}=e;pn()||K(!1);let{future:u,static:i}=E.useContext(wt),{matches:o}=E.useContext(Ze),{pathname:a}=hn(),s=Ji(),h=Gi(t,Xi(o,u.v7_relativeSplatPath),a,l==="path"),p=JSON.stringify(h);return E.useEffect(()=>s(JSON.parse(p),{replace:n,state:r,relative:l}),[s,p,l,n,r]),null}function Zp(e){K(!1)}function Jp(e){let{basename:t="/",children:n=null,location:r,navigationType:l=lt.Pop,navigator:u,static:i=!1,future:o}=e;pn()&&K(!1);let a=t.replace(/^\/*/,"/"),s=E.useMemo(()=>({basename:a,navigator:u,static:i,future:nr({v7_relativeSplatPath:!1},o)}),[a,o,u,i]);typeof r=="string"&&(r=dn(r));let{pathname:h="/",search:p="",hash:m="",state:y=null,key:g="default"}=r,w=E.useMemo(()=>{let C=Yi(h,a);return C==null?null:{location:{pathname:C,search:p,hash:m,state:y,key:g},navigationType:l}},[a,h,p,m,y,g,l]);return w==null?null:E.createElement(wt.Provider,{value:s},E.createElement(Pl.Provider,{children:n,value:w}))}function ph(e){let{children:t,location:n}=e;return Dp(Zu(t),n)}new Promise(()=>{});function Zu(e,t){t===void 0&&(t=[]);let n=[];return E.Children.forEach(e,(r,l)=>{if(!E.isValidElement(r))return;let u=[...t,l];if(r.type===E.Fragment){n.push.apply(n,Zu(r.props.children,u));return}r.type!==Zp&&K(!1),!r.props.index||!r.props.children||K(!1);let i={id:r.props.id||u.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary: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=Zu(r.props.children,u)),n.push(i)}),n}/** * React Router DOM v6.28.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Ju(){return Ju=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function bp(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function eh(e,t){return e.button===0&&(!t||t==="_self")&&!bp(e)}function qu(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(l=>[n,l]):[[n,r]])},[]))}function th(e,t){let n=qu(e);return t&&t.forEach((r,l)=>{n.has(l)||t.getAll(l).forEach(u=>{n.append(l,u)})}),n}const nh=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],rh="6";try{window.__reactRouterVersion=rh}catch{}const lh="startTransition",ha=nc[lh];function hh(e){let{basename:t,children:n,future:r,window:l}=e,u=E.useRef();u.current==null&&(u.current=op({window:l,v5Compat:!0}));let i=u.current,[o,a]=E.useState({action:i.action,location:i.location}),{v7_startTransition:s}=r||{},h=E.useCallback(p=>{s&&ha?ha(()=>a(p)):a(p)},[a,s]);return E.useLayoutEffect(()=>i.listen(h),[i,h]),E.useEffect(()=>Gp(r),[r]),E.createElement(Jp,{basename:t,children:n,location:o.location,navigationType:o.action,navigator:i,future:r})}const uh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ih=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mh=E.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:u,replace:i,state:o,target:a,to:s,preventScrollReset:h,viewTransition:p}=t,m=qp(t,nh),{basename:y}=E.useContext(wt),g,w=!1;if(typeof s=="string"&&ih.test(s)&&(g=s,uh))try{let d=new URL(window.location.href),v=s.startsWith("//")?new URL(d.protocol+s):new URL(s),k=Yi(v.pathname,y);v.origin===d.origin&&k!=null?s=k+v.search+v.hash:w=!0}catch{}let C=Ip(s,{relative:l}),c=oh(s,{replace:i,state:o,target:a,preventScrollReset:h,relative:l,viewTransition:p});function f(d){r&&r(d),d.defaultPrevented||c(d)}return E.createElement("a",Ju({},m,{href:g||C,onClick:w||u?r:f,ref:n,target:a}))});var ma;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ma||(ma={}));var va;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(va||(va={}));function oh(e,t){let{target:n,replace:r,state:l,preventScrollReset:u,relative:i,viewTransition:o}=t===void 0?{}:t,a=Ji(),s=hn(),h=Ff(e,{relative:i});return E.useCallback(p=>{if(eh(p,n)){p.preventDefault();let m=r!==void 0?r:sl(s)===sl(h);a(e,{replace:m,state:l,preventScrollReset:u,relative:i,viewTransition:o})}},[s,a,h,r,l,n,e,u,i,o])}function vh(e){let t=E.useRef(qu(e)),n=E.useRef(!1),r=hn(),l=E.useMemo(()=>th(r.search,n.current?null:t.current),[r.search]),u=Ji(),i=E.useCallback((o,a)=>{const s=qu(typeof o=="function"?o(l):o);n.current=!0,u("?"+s,a)},[u,l]);return[l,i]}export{hh as B,mh as L,dh as N,tc as R,ip as a,fh as b,ah as c,sh as d,hn as e,vh as f,ya as g,ch as h,ph as i,Zp as j,E as r,Ji as u};