autoglm-gui 0.4.7__py3-none-any.whl → 0.4.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- AutoGLM_GUI/api/media.py +55 -43
- AutoGLM_GUI/scrcpy_stream.py +94 -64
- AutoGLM_GUI/static/assets/{about-DIdU3ZqP.js → about-BI6OV6gm.js} +1 -1
- AutoGLM_GUI/static/assets/chat-C_2Cot0q.js +25 -0
- AutoGLM_GUI/static/assets/{index--ElIPD22.js → index-Dn3vR6uV.js} +1 -1
- AutoGLM_GUI/static/assets/{index-BuFMN8G5.js → index-Do7ha9Kf.js} +1 -1
- AutoGLM_GUI/static/index.html +1 -1
- {autoglm_gui-0.4.7.dist-info → autoglm_gui-0.4.8.dist-info}/METADATA +1 -1
- {autoglm_gui-0.4.7.dist-info → autoglm_gui-0.4.8.dist-info}/RECORD +12 -12
- AutoGLM_GUI/static/assets/chat-_-u1G4Ee.js +0 -25
- {autoglm_gui-0.4.7.dist-info → autoglm_gui-0.4.8.dist-info}/WHEEL +0 -0
- {autoglm_gui-0.4.7.dist-info → autoglm_gui-0.4.8.dist-info}/entry_points.txt +0 -0
- {autoglm_gui-0.4.7.dist-info → autoglm_gui-0.4.8.dist-info}/licenses/LICENSE +0 -0
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
Error generating stack: `+l.message+`
|
|
8
8
|
`+l.stack}}var mn=Object.prototype.hasOwnProperty,yn=u.unstable_scheduleCallback,vl=u.unstable_cancelCallback,mu=u.unstable_shouldYield,zt=u.unstable_requestPaint,gt=u.unstable_now,fe=u.unstable_getCurrentPriorityLevel,ua=u.unstable_ImmediatePriority,Fs=u.unstable_UserBlockingPriority,yu=u.unstable_NormalPriority,Zm=u.unstable_LowPriority,Ws=u.unstable_IdlePriority,Km=u.log,Jm=u.unstable_setDisableYieldValue,ia=null,re=null;function vn(t){if(typeof Km=="function"&&Jm(t),re&&typeof re.setStrictMode=="function")try{re.setStrictMode(ia,t)}catch{}}var de=Math.clz32?Math.clz32:Wm,km=Math.log,Fm=Math.LN2;function Wm(t){return t>>>=0,t===0?32:31-(km(t)/Fm|0)|0}var vu=256,pu=262144,gu=4194304;function Zn(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Su(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var a=0,i=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var h=l&134217727;return h!==0?(l=h&~i,l!==0?a=Zn(l):(f&=h,f!==0?a=Zn(f):n||(n=h&~t,n!==0&&(a=Zn(n))))):(h=l&~i,h!==0?a=Zn(h):f!==0?a=Zn(f):n||(n=l&~t,n!==0&&(a=Zn(n)))),a===0?0:e!==0&&e!==a&&(e&i)===0&&(i=a&-a,n=e&-e,i>=n||i===32&&(n&4194048)!==0)?e:a}function ca(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function $m(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $s(){var t=gu;return gu<<=1,(gu&62914560)===0&&(gu=4194304),t}function ec(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function oa(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Pm(t,e,n,l,a,i){var f=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var h=t.entanglements,_=t.expirationTimes,A=t.hiddenUpdates;for(n=f&~n;0<n;){var D=31-de(n),N=1<<D;h[D]=0,_[D]=-1;var O=A[D];if(O!==null)for(A[D]=null,D=0;D<O.length;D++){var C=O[D];C!==null&&(C.lane&=-536870913)}n&=~N}l!==0&&Ps(t,l,0),i!==0&&a===0&&t.tag!==0&&(t.suspendedLanes|=i&~(f&~e))}function Ps(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-de(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function Is(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-de(n),a=1<<l;a&e|t[l]&e&&(t[l]|=e),n&=~a}}function tf(t,e){var n=e&-e;return n=(n&42)!==0?1:nc(n),(n&(t.suspendedLanes|e))!==0?0:n}function nc(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function lc(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function ef(){var t=V.p;return t!==0?t:(t=window.event,t===void 0?32:Gh(t.type))}function nf(t,e){var n=V.p;try{return V.p=t,e()}finally{V.p=n}}var pn=Math.random().toString(36).slice(2),Ft="__reactFiber$"+pn,ne="__reactProps$"+pn,pl="__reactContainer$"+pn,ac="__reactEvents$"+pn,Im="__reactListeners$"+pn,ty="__reactHandles$"+pn,lf="__reactResources$"+pn,sa="__reactMarker$"+pn;function uc(t){delete t[Ft],delete t[ne],delete t[ac],delete t[Im],delete t[ty]}function gl(t){var e=t[Ft];if(e)return e;for(var n=t.parentNode;n;){if(e=n[pl]||n[Ft]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Mh(t);t!==null;){if(n=t[Ft])return n;t=Mh(t)}return e}t=n,n=t.parentNode}return null}function Sl(t){if(t=t[Ft]||t[pl]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function fa(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function _l(t){var e=t[lf];return e||(e=t[lf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Jt(t){t[sa]=!0}var af=new Set,uf={};function Kn(t,e){bl(t,e),bl(t+"Capture",e)}function bl(t,e){for(uf[t]=e,t=0;t<e.length;t++)af.add(e[t])}var ey=RegExp("^[: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]*$"),cf={},of={};function ny(t){return mn.call(of,t)?!0:mn.call(cf,t)?!1:ey.test(t)?of[t]=!0:(cf[t]=!0,!1)}function _u(t,e,n){if(ny(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function bu(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function Je(t,e,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+l)}}function Te(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function sf(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function ly(t,e,n){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var a=l.get,i=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(f){n=""+f,i.call(this,f)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function ic(t){if(!t._valueTracker){var e=sf(t)?"checked":"value";t._valueTracker=ly(t,e,""+t[e])}}function ff(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=sf(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function Tu(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var ay=/[\n"\\]/g;function Re(t){return t.replace(ay,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function cc(t,e,n,l,a,i,f,h){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Te(e)):t.value!==""+Te(e)&&(t.value=""+Te(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?oc(t,f,Te(e)):n!=null?oc(t,f,Te(n)):l!=null&&t.removeAttribute("value"),a==null&&i!=null&&(t.defaultChecked=!!i),a!=null&&(t.checked=a&&typeof a!="function"&&typeof a!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.name=""+Te(h):t.removeAttribute("name")}function rf(t,e,n,l,a,i,f,h){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.type=i),e!=null||n!=null){if(!(i!=="submit"&&i!=="reset"||e!=null)){ic(t);return}n=n!=null?""+Te(n):"",e=e!=null?""+Te(e):n,h||e===t.value||(t.value=e),t.defaultValue=e}l=l??a,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=h?t.checked:!!l,t.defaultChecked=!!l,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),ic(t)}function oc(t,e,n){e==="number"&&Tu(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Tl(t,e,n,l){if(t=t.options,e){e={};for(var a=0;a<n.length;a++)e["$"+n[a]]=!0;for(n=0;n<t.length;n++)a=e.hasOwnProperty("$"+t[n].value),t[n].selected!==a&&(t[n].selected=a),a&&l&&(t[n].defaultSelected=!0)}else{for(n=""+Te(n),e=null,a=0;a<t.length;a++){if(t[a].value===n){t[a].selected=!0,l&&(t[a].defaultSelected=!0);return}e!==null||t[a].disabled||(e=t[a])}e!==null&&(e.selected=!0)}}function df(t,e,n){if(e!=null&&(e=""+Te(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Te(n):""}function hf(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(o(92));if(Nt(l)){if(1<l.length)throw Error(o(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=Te(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),ic(t)}function Rl(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var uy=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function mf(t,e,n){var l=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,n):typeof n!="number"||n===0||uy.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function yf(t,e,n){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var a in e)l=e[a],e.hasOwnProperty(a)&&n[a]!==l&&mf(t,a,l)}else for(var i in e)e.hasOwnProperty(i)&&mf(t,i,e[i])}function sc(t){if(t.indexOf("-")===-1)return!1;switch(t){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 iy=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),cy=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ru(t){return cy.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function ke(){}var fc=null;function rc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var El=null,Ml=null;function vf(t){var e=Sl(t);if(e&&(t=e.stateNode)){var n=t[ne]||null;t:switch(t=e.stateNode,e.type){case"input":if(cc(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Re(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var a=l[ne]||null;if(!a)throw Error(o(90));cc(l,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&ff(l)}break t;case"textarea":df(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Tl(t,!!n.multiple,e,!1)}}}var dc=!1;function pf(t,e,n){if(dc)return t(e,n);dc=!0;try{var l=t(e);return l}finally{if(dc=!1,(El!==null||Ml!==null)&&(fi(),El&&(e=El,t=Ml,Ml=El=null,vf(e),t)))for(e=0;e<t.length;e++)vf(t[e])}}function ra(t,e){var n=t.stateNode;if(n===null)return null;var l=n[ne]||null;if(l===null)return null;n=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(o(231,e,typeof n));return n}var Fe=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hc=!1;if(Fe)try{var da={};Object.defineProperty(da,"passive",{get:function(){hc=!0}}),window.addEventListener("test",da,da),window.removeEventListener("test",da,da)}catch{hc=!1}var gn=null,mc=null,Eu=null;function gf(){if(Eu)return Eu;var t,e=mc,n=e.length,l,a="value"in gn?gn.value:gn.textContent,i=a.length;for(t=0;t<n&&e[t]===a[t];t++);var f=n-t;for(l=1;l<=f&&e[n-l]===a[i-l];l++);return Eu=a.slice(t,1<l?1-l:void 0)}function Mu(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function zu(){return!0}function Sf(){return!1}function le(t){function e(n,l,a,i,f){this._reactName=n,this._targetInst=a,this.type=l,this.nativeEvent=i,this.target=f,this.currentTarget=null;for(var h in t)t.hasOwnProperty(h)&&(n=t[h],this[h]=n?n(i):i[h]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?zu:Sf,this.isPropagationStopped=Sf,this}return p(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=zu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=zu)},persist:function(){},isPersistent:zu}),e}var Jn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Au=le(Jn),ha=p({},Jn,{view:0,detail:0}),oy=le(ha),yc,vc,ma,Ou=p({},ha,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ma&&(ma&&t.type==="mousemove"?(yc=t.screenX-ma.screenX,vc=t.screenY-ma.screenY):vc=yc=0,ma=t),yc)},movementY:function(t){return"movementY"in t?t.movementY:vc}}),_f=le(Ou),sy=p({},Ou,{dataTransfer:0}),fy=le(sy),ry=p({},ha,{relatedTarget:0}),pc=le(ry),dy=p({},Jn,{animationName:0,elapsedTime:0,pseudoElement:0}),hy=le(dy),my=p({},Jn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),yy=le(my),vy=p({},Jn,{data:0}),bf=le(vy),py={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gy={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _y(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Sy[t])?!!e[t]:!1}function gc(){return _y}var by=p({},ha,{key:function(t){if(t.key){var e=py[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Mu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?gy[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gc,charCode:function(t){return t.type==="keypress"?Mu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Mu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Ty=le(by),Ry=p({},Ou,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tf=le(Ry),Ey=p({},ha,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gc}),My=le(Ey),zy=p({},Jn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ay=le(zy),Oy=p({},Ou,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Cy=le(Oy),xy=p({},Jn,{newState:0,oldState:0}),Dy=le(xy),Ly=[9,13,27,32],Sc=Fe&&"CompositionEvent"in window,ya=null;Fe&&"documentMode"in document&&(ya=document.documentMode);var Uy=Fe&&"TextEvent"in window&&!ya,Rf=Fe&&(!Sc||ya&&8<ya&&11>=ya),Ef=" ",Mf=!1;function zf(t,e){switch(t){case"keyup":return Ly.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Af(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var zl=!1;function Ny(t,e){switch(t){case"compositionend":return Af(e);case"keypress":return e.which!==32?null:(Mf=!0,Ef);case"textInput":return t=e.data,t===Ef&&Mf?null:t;default:return null}}function By(t,e){if(zl)return t==="compositionend"||!Sc&&zf(t,e)?(t=gf(),Eu=mc=gn=null,zl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Rf&&e.locale!=="ko"?null:e.data;default:return null}}var Hy={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Of(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Hy[t.type]:e==="textarea"}function Cf(t,e,n,l){El?Ml?Ml.push(l):Ml=[l]:El=l,e=pi(e,"onChange"),0<e.length&&(n=new Au("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var va=null,pa=null;function jy(t){rh(t,0)}function Cu(t){var e=fa(t);if(ff(e))return t}function xf(t,e){if(t==="change")return e}var Df=!1;if(Fe){var _c;if(Fe){var bc="oninput"in document;if(!bc){var Lf=document.createElement("div");Lf.setAttribute("oninput","return;"),bc=typeof Lf.oninput=="function"}_c=bc}else _c=!1;Df=_c&&(!document.documentMode||9<document.documentMode)}function Uf(){va&&(va.detachEvent("onpropertychange",Nf),pa=va=null)}function Nf(t){if(t.propertyName==="value"&&Cu(pa)){var e=[];Cf(e,pa,t,rc(t)),pf(jy,e)}}function wy(t,e,n){t==="focusin"?(Uf(),va=e,pa=n,va.attachEvent("onpropertychange",Nf)):t==="focusout"&&Uf()}function qy(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Cu(pa)}function Yy(t,e){if(t==="click")return Cu(e)}function Gy(t,e){if(t==="input"||t==="change")return Cu(e)}function Xy(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var he=typeof Object.is=="function"?Object.is:Xy;function ga(t,e){if(he(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),l=Object.keys(e);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var a=n[l];if(!mn.call(e,a)||!he(t[a],e[a]))return!1}return!0}function Bf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Hf(t,e){var n=Bf(t);t=0;for(var l;n;){if(n.nodeType===3){if(l=t+n.textContent.length,t<=e&&l>=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Bf(n)}}function jf(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?jf(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function wf(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Tu(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Tu(t.document)}return e}function Tc(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Vy=Fe&&"documentMode"in document&&11>=document.documentMode,Al=null,Rc=null,Sa=null,Ec=!1;function qf(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ec||Al==null||Al!==Tu(l)||(l=Al,"selectionStart"in l&&Tc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Sa&&ga(Sa,l)||(Sa=l,l=pi(Rc,"onSelect"),0<l.length&&(e=new Au("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=Al)))}function kn(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ol={animationend:kn("Animation","AnimationEnd"),animationiteration:kn("Animation","AnimationIteration"),animationstart:kn("Animation","AnimationStart"),transitionrun:kn("Transition","TransitionRun"),transitionstart:kn("Transition","TransitionStart"),transitioncancel:kn("Transition","TransitionCancel"),transitionend:kn("Transition","TransitionEnd")},Mc={},Yf={};Fe&&(Yf=document.createElement("div").style,"AnimationEvent"in window||(delete Ol.animationend.animation,delete Ol.animationiteration.animation,delete Ol.animationstart.animation),"TransitionEvent"in window||delete Ol.transitionend.transition);function Fn(t){if(Mc[t])return Mc[t];if(!Ol[t])return t;var e=Ol[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Yf)return Mc[t]=e[n];return t}var Gf=Fn("animationend"),Xf=Fn("animationiteration"),Vf=Fn("animationstart"),Qy=Fn("transitionrun"),Zy=Fn("transitionstart"),Ky=Fn("transitioncancel"),Qf=Fn("transitionend"),Zf=new Map,zc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");zc.push("scrollEnd");function Be(t,e){Zf.set(t,e),Kn(e,[t])}var xu=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ee=[],Cl=0,Ac=0;function Du(){for(var t=Cl,e=Ac=Cl=0;e<t;){var n=Ee[e];Ee[e++]=null;var l=Ee[e];Ee[e++]=null;var a=Ee[e];Ee[e++]=null;var i=Ee[e];if(Ee[e++]=null,l!==null&&a!==null){var f=l.pending;f===null?a.next=a:(a.next=f.next,f.next=a),l.pending=a}i!==0&&Kf(n,a,i)}}function Lu(t,e,n,l){Ee[Cl++]=t,Ee[Cl++]=e,Ee[Cl++]=n,Ee[Cl++]=l,Ac|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Oc(t,e,n,l){return Lu(t,e,n,l),Uu(t)}function Wn(t,e){return Lu(t,null,null,e),Uu(t)}function Kf(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var a=!1,i=t.return;i!==null;)i.childLanes|=n,l=i.alternate,l!==null&&(l.childLanes|=n),i.tag===22&&(t=i.stateNode,t===null||t._visibility&1||(a=!0)),t=i,i=i.return;return t.tag===3?(i=t.stateNode,a&&e!==null&&(a=31-de(n),t=i.hiddenUpdates,l=t[a],l===null?t[a]=[e]:l.push(e),e.lane=n|536870912),i):null}function Uu(t){if(50<Ga)throw Ga=0,wo=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var xl={};function Jy(t,e,n,l){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function me(t,e,n,l){return new Jy(t,e,n,l)}function Cc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function We(t,e){var n=t.alternate;return n===null?(n=me(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Jf(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Nu(t,e,n,l,a,i){var f=0;if(l=t,typeof t=="function")Cc(t)&&(f=1);else if(typeof t=="string")f=Pv(t,n,J.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case $:return t=me(31,n,e,a),t.elementType=$,t.lanes=i,t;case H:return $n(n.children,a,i,e);case j:f=8,a|=24;break;case q:return t=me(12,n,e,a|2),t.elementType=q,t.lanes=i,t;case nt:return t=me(13,n,e,a),t.elementType=nt,t.lanes=i,t;case Y:return t=me(19,n,e,a),t.elementType=Y,t.lanes=i,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case X:f=10;break t;case Z:f=9;break t;case F:f=11;break t;case w:f=14;break t;case G:f=16,l=null;break t}f=29,n=Error(o(130,t===null?"null":typeof t,"")),l=null}return e=me(f,n,e,a),e.elementType=t,e.type=l,e.lanes=i,e}function $n(t,e,n,l){return t=me(7,t,l,e),t.lanes=n,t}function xc(t,e,n){return t=me(6,t,null,e),t.lanes=n,t}function kf(t){var e=me(18,null,null,0);return e.stateNode=t,e}function Dc(t,e,n){return e=me(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Ff=new WeakMap;function Me(t,e){if(typeof t=="object"&&t!==null){var n=Ff.get(t);return n!==void 0?n:(e={value:t,source:e,stack:hu(e)},Ff.set(t,e),e)}return{value:t,source:e,stack:hu(e)}}var Dl=[],Ll=0,Bu=null,_a=0,ze=[],Ae=0,Sn=null,qe=1,Ye="";function $e(t,e){Dl[Ll++]=_a,Dl[Ll++]=Bu,Bu=t,_a=e}function Wf(t,e,n){ze[Ae++]=qe,ze[Ae++]=Ye,ze[Ae++]=Sn,Sn=t;var l=qe;t=Ye;var a=32-de(l)-1;l&=~(1<<a),n+=1;var i=32-de(e)+a;if(30<i){var f=a-a%5;i=(l&(1<<f)-1).toString(32),l>>=f,a-=f,qe=1<<32-de(e)+a|n<<a|l,Ye=i+t}else qe=1<<i|n<<a|l,Ye=t}function Lc(t){t.return!==null&&($e(t,1),Wf(t,1,0))}function Uc(t){for(;t===Bu;)Bu=Dl[--Ll],Dl[Ll]=null,_a=Dl[--Ll],Dl[Ll]=null;for(;t===Sn;)Sn=ze[--Ae],ze[Ae]=null,Ye=ze[--Ae],ze[Ae]=null,qe=ze[--Ae],ze[Ae]=null}function $f(t,e){ze[Ae++]=qe,ze[Ae++]=Ye,ze[Ae++]=Sn,qe=e.id,Ye=e.overflow,Sn=t}var Wt=null,Dt=null,yt=!1,_n=null,Oe=!1,Nc=Error(o(519));function bn(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ba(Me(e,t)),Nc}function Pf(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[Ft]=t,e[ne]=l,n){case"dialog":rt("cancel",e),rt("close",e);break;case"iframe":case"object":case"embed":rt("load",e);break;case"video":case"audio":for(n=0;n<Va.length;n++)rt(Va[n],e);break;case"source":rt("error",e);break;case"img":case"image":case"link":rt("error",e),rt("load",e);break;case"details":rt("toggle",e);break;case"input":rt("invalid",e),rf(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":rt("invalid",e);break;case"textarea":rt("invalid",e),hf(e,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===!0||yh(e.textContent,n)?(l.popover!=null&&(rt("beforetoggle",e),rt("toggle",e)),l.onScroll!=null&&rt("scroll",e),l.onScrollEnd!=null&&rt("scrollend",e),l.onClick!=null&&(e.onclick=ke),e=!0):e=!1,e||bn(t,!0)}function If(t){for(Wt=t.return;Wt;)switch(Wt.tag){case 5:case 31:case 13:Oe=!1;return;case 27:case 3:Oe=!0;return;default:Wt=Wt.return}}function Ul(t){if(t!==Wt)return!1;if(!yt)return If(t),yt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Io(t.type,t.memoizedProps)),n=!n),n&&Dt&&bn(t),If(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Dt=Eh(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Dt=Eh(t)}else e===27?(e=Dt,Bn(t.type)?(t=as,as=null,Dt=t):Dt=e):Dt=Wt?xe(t.stateNode.nextSibling):null;return!0}function Pn(){Dt=Wt=null,yt=!1}function Bc(){var t=_n;return t!==null&&(ce===null?ce=t:ce.push.apply(ce,t),_n=null),t}function ba(t){_n===null?_n=[t]:_n.push(t)}var Hc=R(null),In=null,Pe=null;function Tn(t,e,n){Q(Hc,e._currentValue),e._currentValue=n}function Ie(t){t._currentValue=Hc.current,B(Hc)}function jc(t,e,n){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===n)break;t=t.return}}function wc(t,e,n,l){var a=t.child;for(a!==null&&(a.return=t);a!==null;){var i=a.dependencies;if(i!==null){var f=a.child;i=i.firstContext;t:for(;i!==null;){var h=i;i=a;for(var _=0;_<e.length;_++)if(h.context===e[_]){i.lanes|=n,h=i.alternate,h!==null&&(h.lanes|=n),jc(i.return,n,t),l||(f=null);break t}i=h.next}}else if(a.tag===18){if(f=a.return,f===null)throw Error(o(341));f.lanes|=n,i=f.alternate,i!==null&&(i.lanes|=n),jc(f,n,t),f=null}else f=a.child;if(f!==null)f.return=a;else for(f=a;f!==null;){if(f===t){f=null;break}if(a=f.sibling,a!==null){a.return=f.return,f=a;break}f=f.return}a=f}}function Nl(t,e,n,l){t=null;for(var a=e,i=!1;a!==null;){if(!i){if((a.flags&524288)!==0)i=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var f=a.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var h=a.type;he(a.pendingProps.value,f.value)||(t!==null?t.push(h):t=[h])}}else if(a===mt.current){if(f=a.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(t!==null?t.push(ka):t=[ka])}a=a.return}t!==null&&wc(e,t,n,l),e.flags|=262144}function Hu(t){for(t=t.firstContext;t!==null;){if(!he(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function tl(t){In=t,Pe=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function $t(t){return tr(In,t)}function ju(t,e){return In===null&&tl(t),tr(t,e)}function tr(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},Pe===null){if(t===null)throw Error(o(308));Pe=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Pe=Pe.next=e;return n}var ky=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},Fy=u.unstable_scheduleCallback,Wy=u.unstable_NormalPriority,Xt={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function qc(){return{controller:new ky,data:new Map,refCount:0}}function Ta(t){t.refCount--,t.refCount===0&&Fy(Wy,function(){t.controller.abort()})}var Ra=null,Yc=0,Bl=0,Hl=null;function $y(t,e){if(Ra===null){var n=Ra=[];Yc=0,Bl=Qo(),Hl={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Yc++,e.then(er,er),e}function er(){if(--Yc===0&&Ra!==null){Hl!==null&&(Hl.status="fulfilled");var t=Ra;Ra=null,Bl=0,Hl=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Py(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var a=0;a<n.length;a++)(0,n[a])(e)},function(a){for(l.status="rejected",l.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),l}var nr=x.S;x.S=function(t,e){qd=gt(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&$y(t,e),nr!==null&&nr(t,e)};var el=R(null);function Gc(){var t=el.current;return t!==null?t:xt.pooledCache}function wu(t,e){e===null?Q(el,el.current):Q(el,e.pool)}function lr(){var t=Gc();return t===null?null:{parent:Xt._currentValue,pool:t}}var jl=Error(o(460)),Xc=Error(o(474)),qu=Error(o(542)),Yu={then:function(){}};function ar(t){return t=t.status,t==="fulfilled"||t==="rejected"}function ur(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(ke,ke),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,cr(t),t;default:if(typeof e.status=="string")e.then(ke,ke);else{if(t=xt,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var a=e;a.status="fulfilled",a.value=l}},function(l){if(e.status==="pending"){var a=e;a.status="rejected",a.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,cr(t),t}throw ll=e,jl}}function nl(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ll=n,jl):n}}var ll=null;function ir(){if(ll===null)throw Error(o(459));var t=ll;return ll=null,t}function cr(t){if(t===jl||t===qu)throw Error(o(483))}var wl=null,Ea=0;function Gu(t){var e=Ea;return Ea+=1,wl===null&&(wl=[]),ur(wl,t,e)}function Ma(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Xu(t,e){throw e.$$typeof===S?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function or(t){function e(E,T){if(t){var z=E.deletions;z===null?(E.deletions=[T],E.flags|=16):z.push(T)}}function n(E,T){if(!t)return null;for(;T!==null;)e(E,T),T=T.sibling;return null}function l(E){for(var T=new Map;E!==null;)E.key!==null?T.set(E.key,E):T.set(E.index,E),E=E.sibling;return T}function a(E,T){return E=We(E,T),E.index=0,E.sibling=null,E}function i(E,T,z){return E.index=z,t?(z=E.alternate,z!==null?(z=z.index,z<T?(E.flags|=67108866,T):z):(E.flags|=67108866,T)):(E.flags|=1048576,T)}function f(E){return t&&E.alternate===null&&(E.flags|=67108866),E}function h(E,T,z,U){return T===null||T.tag!==6?(T=xc(z,E.mode,U),T.return=E,T):(T=a(T,z),T.return=E,T)}function _(E,T,z,U){var P=z.type;return P===H?D(E,T,z.props.children,U,z.key):T!==null&&(T.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===G&&nl(P)===T.type)?(T=a(T,z.props),Ma(T,z),T.return=E,T):(T=Nu(z.type,z.key,z.props,null,E.mode,U),Ma(T,z),T.return=E,T)}function A(E,T,z,U){return T===null||T.tag!==4||T.stateNode.containerInfo!==z.containerInfo||T.stateNode.implementation!==z.implementation?(T=Dc(z,E.mode,U),T.return=E,T):(T=a(T,z.children||[]),T.return=E,T)}function D(E,T,z,U,P){return T===null||T.tag!==7?(T=$n(z,E.mode,U,P),T.return=E,T):(T=a(T,z),T.return=E,T)}function N(E,T,z){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=xc(""+T,E.mode,z),T.return=E,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case M:return z=Nu(T.type,T.key,T.props,null,E.mode,z),Ma(z,T),z.return=E,z;case L:return T=Dc(T,E.mode,z),T.return=E,T;case G:return T=nl(T),N(E,T,z)}if(Nt(T)||Rt(T))return T=$n(T,E.mode,z,null),T.return=E,T;if(typeof T.then=="function")return N(E,Gu(T),z);if(T.$$typeof===X)return N(E,ju(E,T),z);Xu(E,T)}return null}function O(E,T,z,U){var P=T!==null?T.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return P!==null?null:h(E,T,""+z,U);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case M:return z.key===P?_(E,T,z,U):null;case L:return z.key===P?A(E,T,z,U):null;case G:return z=nl(z),O(E,T,z,U)}if(Nt(z)||Rt(z))return P!==null?null:D(E,T,z,U,null);if(typeof z.then=="function")return O(E,T,Gu(z),U);if(z.$$typeof===X)return O(E,T,ju(E,z),U);Xu(E,z)}return null}function C(E,T,z,U,P){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return E=E.get(z)||null,h(T,E,""+U,P);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case M:return E=E.get(U.key===null?z:U.key)||null,_(T,E,U,P);case L:return E=E.get(U.key===null?z:U.key)||null,A(T,E,U,P);case G:return U=nl(U),C(E,T,z,U,P)}if(Nt(U)||Rt(U))return E=E.get(z)||null,D(T,E,U,P,null);if(typeof U.then=="function")return C(E,T,z,Gu(U),P);if(U.$$typeof===X)return C(E,T,z,ju(T,U),P);Xu(T,U)}return null}function k(E,T,z,U){for(var P=null,vt=null,W=T,ot=T=0,ht=null;W!==null&&ot<z.length;ot++){W.index>ot?(ht=W,W=null):ht=W.sibling;var pt=O(E,W,z[ot],U);if(pt===null){W===null&&(W=ht);break}t&&W&&pt.alternate===null&&e(E,W),T=i(pt,T,ot),vt===null?P=pt:vt.sibling=pt,vt=pt,W=ht}if(ot===z.length)return n(E,W),yt&&$e(E,ot),P;if(W===null){for(;ot<z.length;ot++)W=N(E,z[ot],U),W!==null&&(T=i(W,T,ot),vt===null?P=W:vt.sibling=W,vt=W);return yt&&$e(E,ot),P}for(W=l(W);ot<z.length;ot++)ht=C(W,E,ot,z[ot],U),ht!==null&&(t&&ht.alternate!==null&&W.delete(ht.key===null?ot:ht.key),T=i(ht,T,ot),vt===null?P=ht:vt.sibling=ht,vt=ht);return t&&W.forEach(function(Yn){return e(E,Yn)}),yt&&$e(E,ot),P}function I(E,T,z,U){if(z==null)throw Error(o(151));for(var P=null,vt=null,W=T,ot=T=0,ht=null,pt=z.next();W!==null&&!pt.done;ot++,pt=z.next()){W.index>ot?(ht=W,W=null):ht=W.sibling;var Yn=O(E,W,pt.value,U);if(Yn===null){W===null&&(W=ht);break}t&&W&&Yn.alternate===null&&e(E,W),T=i(Yn,T,ot),vt===null?P=Yn:vt.sibling=Yn,vt=Yn,W=ht}if(pt.done)return n(E,W),yt&&$e(E,ot),P;if(W===null){for(;!pt.done;ot++,pt=z.next())pt=N(E,pt.value,U),pt!==null&&(T=i(pt,T,ot),vt===null?P=pt:vt.sibling=pt,vt=pt);return yt&&$e(E,ot),P}for(W=l(W);!pt.done;ot++,pt=z.next())pt=C(W,E,ot,pt.value,U),pt!==null&&(t&&pt.alternate!==null&&W.delete(pt.key===null?ot:pt.key),T=i(pt,T,ot),vt===null?P=pt:vt.sibling=pt,vt=pt);return t&&W.forEach(function(s0){return e(E,s0)}),yt&&$e(E,ot),P}function Ct(E,T,z,U){if(typeof z=="object"&&z!==null&&z.type===H&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case M:t:{for(var P=z.key;T!==null;){if(T.key===P){if(P=z.type,P===H){if(T.tag===7){n(E,T.sibling),U=a(T,z.props.children),U.return=E,E=U;break t}}else if(T.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===G&&nl(P)===T.type){n(E,T.sibling),U=a(T,z.props),Ma(U,z),U.return=E,E=U;break t}n(E,T);break}else e(E,T);T=T.sibling}z.type===H?(U=$n(z.props.children,E.mode,U,z.key),U.return=E,E=U):(U=Nu(z.type,z.key,z.props,null,E.mode,U),Ma(U,z),U.return=E,E=U)}return f(E);case L:t:{for(P=z.key;T!==null;){if(T.key===P)if(T.tag===4&&T.stateNode.containerInfo===z.containerInfo&&T.stateNode.implementation===z.implementation){n(E,T.sibling),U=a(T,z.children||[]),U.return=E,E=U;break t}else{n(E,T);break}else e(E,T);T=T.sibling}U=Dc(z,E.mode,U),U.return=E,E=U}return f(E);case G:return z=nl(z),Ct(E,T,z,U)}if(Nt(z))return k(E,T,z,U);if(Rt(z)){if(P=Rt(z),typeof P!="function")throw Error(o(150));return z=P.call(z),I(E,T,z,U)}if(typeof z.then=="function")return Ct(E,T,Gu(z),U);if(z.$$typeof===X)return Ct(E,T,ju(E,z),U);Xu(E,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,T!==null&&T.tag===6?(n(E,T.sibling),U=a(T,z),U.return=E,E=U):(n(E,T),U=xc(z,E.mode,U),U.return=E,E=U),f(E)):n(E,T)}return function(E,T,z,U){try{Ea=0;var P=Ct(E,T,z,U);return wl=null,P}catch(W){if(W===jl||W===qu)throw W;var vt=me(29,W,null,E.mode);return vt.lanes=U,vt.return=E,vt}finally{}}}var al=or(!0),sr=or(!1),Rn=!1;function Vc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function En(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Mn(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(St&2)!==0){var a=l.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),l.pending=e,e=Uu(t),Kf(t,null,n),e}return Lu(t,l,e,n),Uu(t)}function za(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Is(t,n)}}function Zc(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var a=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};i===null?a=i=f:i=i.next=f,n=n.next}while(n!==null);i===null?a=i=e:i=i.next=e}else a=i=e;n={baseState:l.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Kc=!1;function Aa(){if(Kc){var t=Hl;if(t!==null)throw t}}function Oa(t,e,n,l){Kc=!1;var a=t.updateQueue;Rn=!1;var i=a.firstBaseUpdate,f=a.lastBaseUpdate,h=a.shared.pending;if(h!==null){a.shared.pending=null;var _=h,A=_.next;_.next=null,f===null?i=A:f.next=A,f=_;var D=t.alternate;D!==null&&(D=D.updateQueue,h=D.lastBaseUpdate,h!==f&&(h===null?D.firstBaseUpdate=A:h.next=A,D.lastBaseUpdate=_))}if(i!==null){var N=a.baseState;f=0,D=A=_=null,h=i;do{var O=h.lane&-536870913,C=O!==h.lane;if(C?(dt&O)===O:(l&O)===O){O!==0&&O===Bl&&(Kc=!0),D!==null&&(D=D.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});t:{var k=t,I=h;O=e;var Ct=n;switch(I.tag){case 1:if(k=I.payload,typeof k=="function"){N=k.call(Ct,N,O);break t}N=k;break t;case 3:k.flags=k.flags&-65537|128;case 0:if(k=I.payload,O=typeof k=="function"?k.call(Ct,N,O):k,O==null)break t;N=p({},N,O);break t;case 2:Rn=!0}}O=h.callback,O!==null&&(t.flags|=64,C&&(t.flags|=8192),C=a.callbacks,C===null?a.callbacks=[O]:C.push(O))}else C={lane:O,tag:h.tag,payload:h.payload,callback:h.callback,next:null},D===null?(A=D=C,_=N):D=D.next=C,f|=O;if(h=h.next,h===null){if(h=a.shared.pending,h===null)break;C=h,h=C.next,C.next=null,a.lastBaseUpdate=C,a.shared.pending=null}}while(!0);D===null&&(_=N),a.baseState=_,a.firstBaseUpdate=A,a.lastBaseUpdate=D,i===null&&(a.shared.lanes=0),xn|=f,t.lanes=f,t.memoizedState=N}}function fr(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function rr(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)fr(n[t],e)}var ql=R(null),Vu=R(0);function dr(t,e){t=sn,Q(Vu,t),Q(ql,e),sn=t|e.baseLanes}function Jc(){Q(Vu,sn),Q(ql,ql.current)}function kc(){sn=Vu.current,B(ql),B(Vu)}var ye=R(null),Ce=null;function zn(t){var e=t.alternate;Q(qt,qt.current&1),Q(ye,t),Ce===null&&(e===null||ql.current!==null||e.memoizedState!==null)&&(Ce=t)}function Fc(t){Q(qt,qt.current),Q(ye,t),Ce===null&&(Ce=t)}function hr(t){t.tag===22?(Q(qt,qt.current),Q(ye,t),Ce===null&&(Ce=t)):An()}function An(){Q(qt,qt.current),Q(ye,ye.current)}function ve(t){B(ye),Ce===t&&(Ce=null),B(qt)}var qt=R(0);function Qu(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||ns(n)||ls(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var tn=0,it=null,At=null,Vt=null,Zu=!1,Yl=!1,ul=!1,Ku=0,Ca=0,Gl=null,Iy=0;function Bt(){throw Error(o(321))}function Wc(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!he(t[n],e[n]))return!1;return!0}function $c(t,e,n,l,a,i){return tn=i,it=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,x.H=t===null||t.memoizedState===null?Wr:ho,ul=!1,i=n(l,a),ul=!1,Yl&&(i=yr(e,n,l,a)),mr(t),i}function mr(t){x.H=La;var e=At!==null&&At.next!==null;if(tn=0,Vt=At=it=null,Zu=!1,Ca=0,Gl=null,e)throw Error(o(300));t===null||Qt||(t=t.dependencies,t!==null&&Hu(t)&&(Qt=!0))}function yr(t,e,n,l){it=t;var a=0;do{if(Yl&&(Gl=null),Ca=0,Yl=!1,25<=a)throw Error(o(301));if(a+=1,Vt=At=null,t.updateQueue!=null){var i=t.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}x.H=$r,i=e(n,l)}while(Yl);return i}function tv(){var t=x.H,e=t.useState()[0];return e=typeof e.then=="function"?xa(e):e,t=t.useState()[0],(At!==null?At.memoizedState:null)!==t&&(it.flags|=1024),e}function Pc(){var t=Ku!==0;return Ku=0,t}function Ic(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function to(t){if(Zu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Zu=!1}tn=0,Vt=At=it=null,Yl=!1,Ca=Ku=0,Gl=null}function ee(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vt===null?it.memoizedState=Vt=t:Vt=Vt.next=t,Vt}function Yt(){if(At===null){var t=it.alternate;t=t!==null?t.memoizedState:null}else t=At.next;var e=Vt===null?it.memoizedState:Vt.next;if(e!==null)Vt=e,At=t;else{if(t===null)throw it.alternate===null?Error(o(467)):Error(o(310));At=t,t={memoizedState:At.memoizedState,baseState:At.baseState,baseQueue:At.baseQueue,queue:At.queue,next:null},Vt===null?it.memoizedState=Vt=t:Vt=Vt.next=t}return Vt}function Ju(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function xa(t){var e=Ca;return Ca+=1,Gl===null&&(Gl=[]),t=ur(Gl,t,e),e=it,(Vt===null?e.memoizedState:Vt.next)===null&&(e=e.alternate,x.H=e===null||e.memoizedState===null?Wr:ho),t}function ku(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return xa(t);if(t.$$typeof===X)return $t(t)}throw Error(o(438,String(t)))}function eo(t){var e=null,n=it.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=it.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(a){return a.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Ju(),it.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=st;return e.index++,n}function en(t,e){return typeof e=="function"?e(t):e}function Fu(t){var e=Yt();return no(e,At,t)}function no(t,e,n){var l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=n;var a=t.baseQueue,i=l.pending;if(i!==null){if(a!==null){var f=a.next;a.next=i.next,i.next=f}e.baseQueue=a=i,l.pending=null}if(i=t.baseState,a===null)t.memoizedState=i;else{e=a.next;var h=f=null,_=null,A=e,D=!1;do{var N=A.lane&-536870913;if(N!==A.lane?(dt&N)===N:(tn&N)===N){var O=A.revertLane;if(O===0)_!==null&&(_=_.next={lane:0,revertLane:0,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),N===Bl&&(D=!0);else if((tn&O)===O){A=A.next,O===Bl&&(D=!0);continue}else N={lane:0,revertLane:A.revertLane,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},_===null?(h=_=N,f=i):_=_.next=N,it.lanes|=O,xn|=O;N=A.action,ul&&n(i,N),i=A.hasEagerState?A.eagerState:n(i,N)}else O={lane:N,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},_===null?(h=_=O,f=i):_=_.next=O,it.lanes|=N,xn|=N;A=A.next}while(A!==null&&A!==e);if(_===null?f=i:_.next=h,!he(i,t.memoizedState)&&(Qt=!0,D&&(n=Hl,n!==null)))throw n;t.memoizedState=i,t.baseState=f,t.baseQueue=_,l.lastRenderedState=i}return a===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function lo(t){var e=Yt(),n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=t;var l=n.dispatch,a=n.pending,i=e.memoizedState;if(a!==null){n.pending=null;var f=a=a.next;do i=t(i,f.action),f=f.next;while(f!==a);he(i,e.memoizedState)||(Qt=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),n.lastRenderedState=i}return[i,l]}function vr(t,e,n){var l=it,a=Yt(),i=yt;if(i){if(n===void 0)throw Error(o(407));n=n()}else n=e();var f=!he((At||a).memoizedState,n);if(f&&(a.memoizedState=n,Qt=!0),a=a.queue,io(Sr.bind(null,l,a,t),[t]),a.getSnapshot!==e||f||Vt!==null&&Vt.memoizedState.tag&1){if(l.flags|=2048,Xl(9,{destroy:void 0},gr.bind(null,l,a,n,e),null),xt===null)throw Error(o(349));i||(tn&127)!==0||pr(l,e,n)}return n}function pr(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=it.updateQueue,e===null?(e=Ju(),it.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function gr(t,e,n,l){e.value=n,e.getSnapshot=l,_r(e)&&br(t)}function Sr(t,e,n){return n(function(){_r(e)&&br(t)})}function _r(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!he(t,n)}catch{return!0}}function br(t){var e=Wn(t,2);e!==null&&oe(e,t,2)}function ao(t){var e=ee();if(typeof t=="function"){var n=t;if(t=n(),ul){vn(!0);try{n()}finally{vn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:en,lastRenderedState:t},e}function Tr(t,e,n,l){return t.baseState=n,no(t,At,typeof l=="function"?l:en)}function ev(t,e,n,l,a){if(Pu(t))throw Error(o(485));if(t=e.action,t!==null){var i={payload:a,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){i.listeners.push(f)}};x.T!==null?n(!0):i.isTransition=!1,l(i),n=e.pending,n===null?(i.next=e.pending=i,Rr(e,i)):(i.next=n.next,e.pending=n.next=i)}}function Rr(t,e){var n=e.action,l=e.payload,a=t.state;if(e.isTransition){var i=x.T,f={};x.T=f;try{var h=n(a,l),_=x.S;_!==null&&_(f,h),Er(t,e,h)}catch(A){uo(t,e,A)}finally{i!==null&&f.types!==null&&(i.types=f.types),x.T=i}}else try{i=n(a,l),Er(t,e,i)}catch(A){uo(t,e,A)}}function Er(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Mr(t,e,l)},function(l){return uo(t,e,l)}):Mr(t,e,n)}function Mr(t,e,n){e.status="fulfilled",e.value=n,zr(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Rr(t,n)))}function uo(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,zr(e),e=e.next;while(e!==l)}t.action=null}function zr(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Ar(t,e){return e}function Or(t,e){if(yt){var n=xt.formState;if(n!==null){t:{var l=it;if(yt){if(Dt){e:{for(var a=Dt,i=Oe;a.nodeType!==8;){if(!i){a=null;break e}if(a=xe(a.nextSibling),a===null){a=null;break e}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){Dt=xe(a.nextSibling),l=a.data==="F!";break t}}bn(l)}l=!1}l&&(e=n[0])}}return n=ee(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ar,lastRenderedState:e},n.queue=l,n=Jr.bind(null,it,l),l.dispatch=n,l=ao(!1),i=ro.bind(null,it,!1,l.queue),l=ee(),a={state:e,dispatch:null,action:t,pending:null},l.queue=a,n=ev.bind(null,it,a,i,n),a.dispatch=n,l.memoizedState=t,[e,n,!1]}function Cr(t){var e=Yt();return xr(e,At,t)}function xr(t,e,n){if(e=no(t,e,Ar)[0],t=Fu(en)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=xa(e)}catch(f){throw f===jl?qu:f}else l=e;e=Yt();var a=e.queue,i=a.dispatch;return n!==e.memoizedState&&(it.flags|=2048,Xl(9,{destroy:void 0},nv.bind(null,a,n),null)),[l,i,t]}function nv(t,e){t.action=e}function Dr(t){var e=Yt(),n=At;if(n!==null)return xr(e,n,t);Yt(),e=e.memoizedState,n=Yt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function Xl(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=it.updateQueue,e===null&&(e=Ju(),it.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function Lr(){return Yt().memoizedState}function Wu(t,e,n,l){var a=ee();it.flags|=t,a.memoizedState=Xl(1|e,{destroy:void 0},n,l===void 0?null:l)}function $u(t,e,n,l){var a=Yt();l=l===void 0?null:l;var i=a.memoizedState.inst;At!==null&&l!==null&&Wc(l,At.memoizedState.deps)?a.memoizedState=Xl(e,i,n,l):(it.flags|=t,a.memoizedState=Xl(1|e,i,n,l))}function Ur(t,e){Wu(8390656,8,t,e)}function io(t,e){$u(2048,8,t,e)}function lv(t){it.flags|=4;var e=it.updateQueue;if(e===null)e=Ju(),it.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Nr(t){var e=Yt().memoizedState;return lv({ref:e,nextImpl:t}),function(){if((St&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function Br(t,e){return $u(4,2,t,e)}function Hr(t,e){return $u(4,4,t,e)}function jr(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function wr(t,e,n){n=n!=null?n.concat([t]):null,$u(4,4,jr.bind(null,e,t),n)}function co(){}function qr(t,e){var n=Yt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&Wc(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function Yr(t,e){var n=Yt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&Wc(e,l[1]))return l[0];if(l=t(),ul){vn(!0);try{t()}finally{vn(!1)}}return n.memoizedState=[l,e],l}function oo(t,e,n){return n===void 0||(tn&1073741824)!==0&&(dt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=Gd(),it.lanes|=t,xn|=t,n)}function Gr(t,e,n,l){return he(n,e)?n:ql.current!==null?(t=oo(t,n,l),he(t,e)||(Qt=!0),t):(tn&42)===0||(tn&1073741824)!==0&&(dt&261930)===0?(Qt=!0,t.memoizedState=n):(t=Gd(),it.lanes|=t,xn|=t,e)}function Xr(t,e,n,l,a){var i=V.p;V.p=i!==0&&8>i?i:8;var f=x.T,h={};x.T=h,ro(t,!1,e,n);try{var _=a(),A=x.S;if(A!==null&&A(h,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var D=Py(_,l);Da(t,e,D,Se(t))}else Da(t,e,l,Se(t))}catch(N){Da(t,e,{then:function(){},status:"rejected",reason:N},Se())}finally{V.p=i,f!==null&&h.types!==null&&(f.types=h.types),x.T=f}}function av(){}function so(t,e,n,l){if(t.tag!==5)throw Error(o(476));var a=Vr(t).queue;Xr(t,a,e,tt,n===null?av:function(){return Qr(t),n(l)})}function Vr(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:tt,baseState:tt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:en,lastRenderedState:tt},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:en,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Qr(t){var e=Vr(t);e.next===null&&(e=t.alternate.memoizedState),Da(t,e.next.queue,{},Se())}function fo(){return $t(ka)}function Zr(){return Yt().memoizedState}function Kr(){return Yt().memoizedState}function uv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Se();t=En(n);var l=Mn(e,t,n);l!==null&&(oe(l,e,n),za(l,e,n)),e={cache:qc()},t.payload=e;return}e=e.return}}function iv(t,e,n){var l=Se();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Pu(t)?kr(e,n):(n=Oc(t,e,n,l),n!==null&&(oe(n,t,l),Fr(n,e,l)))}function Jr(t,e,n){var l=Se();Da(t,e,n,l)}function Da(t,e,n,l){var a={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pu(t))kr(e,a);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var f=e.lastRenderedState,h=i(f,n);if(a.hasEagerState=!0,a.eagerState=h,he(h,f))return Lu(t,e,a,0),xt===null&&Du(),!1}catch{}finally{}if(n=Oc(t,e,a,l),n!==null)return oe(n,t,l),Fr(n,e,l),!0}return!1}function ro(t,e,n,l){if(l={lane:2,revertLane:Qo(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Pu(t)){if(e)throw Error(o(479))}else e=Oc(t,n,l,2),e!==null&&oe(e,t,2)}function Pu(t){var e=t.alternate;return t===it||e!==null&&e===it}function kr(t,e){Yl=Zu=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Fr(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Is(t,n)}}var La={readContext:$t,use:ku,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useLayoutEffect:Bt,useInsertionEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useSyncExternalStore:Bt,useId:Bt,useHostTransitionStatus:Bt,useFormState:Bt,useActionState:Bt,useOptimistic:Bt,useMemoCache:Bt,useCacheRefresh:Bt};La.useEffectEvent=Bt;var Wr={readContext:$t,use:ku,useCallback:function(t,e){return ee().memoizedState=[t,e===void 0?null:e],t},useContext:$t,useEffect:Ur,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Wu(4194308,4,jr.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Wu(4194308,4,t,e)},useInsertionEffect:function(t,e){Wu(4,2,t,e)},useMemo:function(t,e){var n=ee();e=e===void 0?null:e;var l=t();if(ul){vn(!0);try{t()}finally{vn(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=ee();if(n!==void 0){var a=n(e);if(ul){vn(!0);try{n(e)}finally{vn(!1)}}}else a=e;return l.memoizedState=l.baseState=a,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:a},l.queue=t,t=t.dispatch=iv.bind(null,it,t),[l.memoizedState,t]},useRef:function(t){var e=ee();return t={current:t},e.memoizedState=t},useState:function(t){t=ao(t);var e=t.queue,n=Jr.bind(null,it,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:co,useDeferredValue:function(t,e){var n=ee();return oo(n,t,e)},useTransition:function(){var t=ao(!1);return t=Xr.bind(null,it,t.queue,!0,!1),ee().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=it,a=ee();if(yt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),xt===null)throw Error(o(349));(dt&127)!==0||pr(l,e,n)}a.memoizedState=n;var i={value:n,getSnapshot:e};return a.queue=i,Ur(Sr.bind(null,l,i,t),[t]),l.flags|=2048,Xl(9,{destroy:void 0},gr.bind(null,l,i,n,e),null),n},useId:function(){var t=ee(),e=xt.identifierPrefix;if(yt){var n=Ye,l=qe;n=(l&~(1<<32-de(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Ku++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=Iy++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:fo,useFormState:Or,useActionState:Or,useOptimistic:function(t){var e=ee();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=ro.bind(null,it,!0,n),n.dispatch=e,[t,e]},useMemoCache:eo,useCacheRefresh:function(){return ee().memoizedState=uv.bind(null,it)},useEffectEvent:function(t){var e=ee(),n={impl:t};return e.memoizedState=n,function(){if((St&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},ho={readContext:$t,use:ku,useCallback:qr,useContext:$t,useEffect:io,useImperativeHandle:wr,useInsertionEffect:Br,useLayoutEffect:Hr,useMemo:Yr,useReducer:Fu,useRef:Lr,useState:function(){return Fu(en)},useDebugValue:co,useDeferredValue:function(t,e){var n=Yt();return Gr(n,At.memoizedState,t,e)},useTransition:function(){var t=Fu(en)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:xa(t),e]},useSyncExternalStore:vr,useId:Zr,useHostTransitionStatus:fo,useFormState:Cr,useActionState:Cr,useOptimistic:function(t,e){var n=Yt();return Tr(n,At,t,e)},useMemoCache:eo,useCacheRefresh:Kr};ho.useEffectEvent=Nr;var $r={readContext:$t,use:ku,useCallback:qr,useContext:$t,useEffect:io,useImperativeHandle:wr,useInsertionEffect:Br,useLayoutEffect:Hr,useMemo:Yr,useReducer:lo,useRef:Lr,useState:function(){return lo(en)},useDebugValue:co,useDeferredValue:function(t,e){var n=Yt();return At===null?oo(n,t,e):Gr(n,At.memoizedState,t,e)},useTransition:function(){var t=lo(en)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:xa(t),e]},useSyncExternalStore:vr,useId:Zr,useHostTransitionStatus:fo,useFormState:Dr,useActionState:Dr,useOptimistic:function(t,e){var n=Yt();return At!==null?Tr(n,At,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:eo,useCacheRefresh:Kr};$r.useEffectEvent=Nr;function mo(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:p({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var yo={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=Se(),a=En(l);a.payload=e,n!=null&&(a.callback=n),e=Mn(t,a,l),e!==null&&(oe(e,t,l),za(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=Se(),a=En(l);a.tag=1,a.payload=e,n!=null&&(a.callback=n),e=Mn(t,a,l),e!==null&&(oe(e,t,l),za(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Se(),l=En(n);l.tag=2,e!=null&&(l.callback=e),e=Mn(t,l,n),e!==null&&(oe(e,t,n),za(e,t,n))}};function Pr(t,e,n,l,a,i,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,i,f):e.prototype&&e.prototype.isPureReactComponent?!ga(n,l)||!ga(a,i):!0}function Ir(t,e,n,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,l),e.state!==t&&yo.enqueueReplaceState(e,e.state,null)}function il(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l])}if(t=t.defaultProps){n===e&&(n=p({},n));for(var a in t)n[a]===void 0&&(n[a]=t[a])}return n}function td(t){xu(t)}function ed(t){console.error(t)}function nd(t){xu(t)}function Iu(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function ld(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function vo(t,e,n){return n=En(n),n.tag=3,n.payload={element:null},n.callback=function(){Iu(t,e)},n}function ad(t){return t=En(t),t.tag=3,t}function ud(t,e,n,l){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var i=l.value;t.payload=function(){return a(i)},t.callback=function(){ld(e,n,l)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){ld(e,n,l),typeof a!="function"&&(Dn===null?Dn=new Set([this]):Dn.add(this));var h=l.stack;this.componentDidCatch(l.value,{componentStack:h!==null?h:""})})}function cv(t,e,n,l,a){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&Nl(e,n,a,!0),n=ye.current,n!==null){switch(n.tag){case 31:case 13:return Ce===null?ri():n.alternate===null&&Ht===0&&(Ht=3),n.flags&=-257,n.flags|=65536,n.lanes=a,l===Yu?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),Go(t,l,a)),!1;case 22:return n.flags|=65536,l===Yu?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([l]):n.add(l)),Go(t,l,a)),!1}throw Error(o(435,n.tag))}return Go(t,l,a),ri(),!1}if(yt)return e=ye.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=a,l!==Nc&&(t=Error(o(422),{cause:l}),ba(Me(t,n)))):(l!==Nc&&(e=Error(o(423),{cause:l}),ba(Me(e,n))),t=t.current.alternate,t.flags|=65536,a&=-a,t.lanes|=a,l=Me(l,n),a=vo(t.stateNode,l,a),Zc(t,a),Ht!==4&&(Ht=2)),!1;var i=Error(o(520),{cause:l});if(i=Me(i,n),Ya===null?Ya=[i]:Ya.push(i),Ht!==4&&(Ht=2),e===null)return!0;l=Me(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=a&-a,n.lanes|=t,t=vo(n.stateNode,l,t),Zc(n,t),!1;case 1:if(e=n.type,i=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Dn===null||!Dn.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,a=ad(a),ud(a,t,n,l),Zc(n,a),!1}n=n.return}while(n!==null);return!1}var po=Error(o(461)),Qt=!1;function Pt(t,e,n,l){e.child=t===null?sr(e,null,n,l):al(e,t.child,n,l)}function id(t,e,n,l,a){n=n.render;var i=e.ref;if("ref"in l){var f={};for(var h in l)h!=="ref"&&(f[h]=l[h])}else f=l;return tl(e),l=$c(t,e,n,f,i,a),h=Pc(),t!==null&&!Qt?(Ic(t,e,a),nn(t,e,a)):(yt&&h&&Lc(e),e.flags|=1,Pt(t,e,l,a),e.child)}function cd(t,e,n,l,a){if(t===null){var i=n.type;return typeof i=="function"&&!Cc(i)&&i.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=i,od(t,e,i,l,a)):(t=Nu(n.type,null,l,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!Mo(t,a)){var f=i.memoizedProps;if(n=n.compare,n=n!==null?n:ga,n(f,l)&&t.ref===e.ref)return nn(t,e,a)}return e.flags|=1,t=We(i,l),t.ref=e.ref,t.return=e,e.child=t}function od(t,e,n,l,a){if(t!==null){var i=t.memoizedProps;if(ga(i,l)&&t.ref===e.ref)if(Qt=!1,e.pendingProps=l=i,Mo(t,a))(t.flags&131072)!==0&&(Qt=!0);else return e.lanes=t.lanes,nn(t,e,a)}return go(t,e,n,l,a)}function sd(t,e,n,l){var a=l.children,i=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(i=i!==null?i.baseLanes|n:n,t!==null){for(l=e.child=t.child,a=0;l!==null;)a=a|l.lanes|l.childLanes,l=l.sibling;l=a&~i}else l=0,e.child=null;return fd(t,e,i,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&wu(e,i!==null?i.cachePool:null),i!==null?dr(e,i):Jc(),hr(e);else return l=e.lanes=536870912,fd(t,e,i!==null?i.baseLanes|n:n,n,l)}else i!==null?(wu(e,i.cachePool),dr(e,i),An(),e.memoizedState=null):(t!==null&&wu(e,null),Jc(),An());return Pt(t,e,a,n),e.child}function Ua(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function fd(t,e,n,l,a){var i=Gc();return i=i===null?null:{parent:Xt._currentValue,pool:i},e.memoizedState={baseLanes:n,cachePool:i},t!==null&&wu(e,null),Jc(),hr(e),t!==null&&Nl(t,e,l,!0),e.childLanes=a,null}function ti(t,e){return e=ni({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function rd(t,e,n){return al(e,t.child,null,n),t=ti(e,e.pendingProps),t.flags|=2,ve(e),e.memoizedState=null,t}function ov(t,e,n){var l=e.pendingProps,a=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(yt){if(l.mode==="hidden")return t=ti(e,l),e.lanes=536870912,Ua(null,t);if(Fc(e),(t=Dt)?(t=Rh(t,Oe),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Sn!==null?{id:qe,overflow:Ye}:null,retryLane:536870912,hydrationErrors:null},n=kf(t),n.return=e,e.child=n,Wt=e,Dt=null)):t=null,t===null)throw bn(e);return e.lanes=536870912,null}return ti(e,l)}var i=t.memoizedState;if(i!==null){var f=i.dehydrated;if(Fc(e),a)if(e.flags&256)e.flags&=-257,e=rd(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(Qt||Nl(t,e,n,!1),a=(n&t.childLanes)!==0,Qt||a){if(l=xt,l!==null&&(f=tf(l,n),f!==0&&f!==i.retryLane))throw i.retryLane=f,Wn(t,f),oe(l,t,f),po;ri(),e=rd(t,e,n)}else t=i.treeContext,Dt=xe(f.nextSibling),Wt=e,yt=!0,_n=null,Oe=!1,t!==null&&$f(e,t),e=ti(e,l),e.flags|=4096;return e}return t=We(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function ei(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function go(t,e,n,l,a){return tl(e),n=$c(t,e,n,l,void 0,a),l=Pc(),t!==null&&!Qt?(Ic(t,e,a),nn(t,e,a)):(yt&&l&&Lc(e),e.flags|=1,Pt(t,e,n,a),e.child)}function dd(t,e,n,l,a,i){return tl(e),e.updateQueue=null,n=yr(e,l,n,a),mr(t),l=Pc(),t!==null&&!Qt?(Ic(t,e,i),nn(t,e,i)):(yt&&l&&Lc(e),e.flags|=1,Pt(t,e,n,i),e.child)}function hd(t,e,n,l,a){if(tl(e),e.stateNode===null){var i=xl,f=n.contextType;typeof f=="object"&&f!==null&&(i=$t(f)),i=new n(l,i),e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=yo,e.stateNode=i,i._reactInternals=e,i=e.stateNode,i.props=l,i.state=e.memoizedState,i.refs={},Vc(e),f=n.contextType,i.context=typeof f=="object"&&f!==null?$t(f):xl,i.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(mo(e,n,f,l),i.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(f=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),f!==i.state&&yo.enqueueReplaceState(i,i.state,null),Oa(e,l,i,a),Aa(),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){i=e.stateNode;var h=e.memoizedProps,_=il(n,h);i.props=_;var A=i.context,D=n.contextType;f=xl,typeof D=="object"&&D!==null&&(f=$t(D));var N=n.getDerivedStateFromProps;D=typeof N=="function"||typeof i.getSnapshotBeforeUpdate=="function",h=e.pendingProps!==h,D||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(h||A!==f)&&Ir(e,i,l,f),Rn=!1;var O=e.memoizedState;i.state=O,Oa(e,l,i,a),Aa(),A=e.memoizedState,h||O!==A||Rn?(typeof N=="function"&&(mo(e,n,N,l),A=e.memoizedState),(_=Rn||Pr(e,n,_,l,O,A,f))?(D||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(e.flags|=4194308)):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=A),i.props=l,i.state=A,i.context=f,l=_):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{i=e.stateNode,Qc(t,e),f=e.memoizedProps,D=il(n,f),i.props=D,N=e.pendingProps,O=i.context,A=n.contextType,_=xl,typeof A=="object"&&A!==null&&(_=$t(A)),h=n.getDerivedStateFromProps,(A=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(f!==N||O!==_)&&Ir(e,i,l,_),Rn=!1,O=e.memoizedState,i.state=O,Oa(e,l,i,a),Aa();var C=e.memoizedState;f!==N||O!==C||Rn||t!==null&&t.dependencies!==null&&Hu(t.dependencies)?(typeof h=="function"&&(mo(e,n,h,l),C=e.memoizedState),(D=Rn||Pr(e,n,D,l,O,C,_)||t!==null&&t.dependencies!==null&&Hu(t.dependencies))?(A||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(l,C,_),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(l,C,_)),typeof i.componentDidUpdate=="function"&&(e.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof i.componentDidUpdate!="function"||f===t.memoizedProps&&O===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&O===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=C),i.props=l,i.state=C,i.context=_,l=D):(typeof i.componentDidUpdate!="function"||f===t.memoizedProps&&O===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&O===t.memoizedState||(e.flags|=1024),l=!1)}return i=l,ei(t,e),l=(e.flags&128)!==0,i||l?(i=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:i.render(),e.flags|=1,t!==null&&l?(e.child=al(e,t.child,null,a),e.child=al(e,null,n,a)):Pt(t,e,n,a),e.memoizedState=i.state,t=e.child):t=nn(t,e,a),t}function md(t,e,n,l){return Pn(),e.flags|=256,Pt(t,e,n,l),e.child}var So={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function _o(t){return{baseLanes:t,cachePool:lr()}}function bo(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=ge),t}function yd(t,e,n){var l=e.pendingProps,a=!1,i=(e.flags&128)!==0,f;if((f=i)||(f=t!==null&&t.memoizedState===null?!1:(qt.current&2)!==0),f&&(a=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(yt){if(a?zn(e):An(),(t=Dt)?(t=Rh(t,Oe),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Sn!==null?{id:qe,overflow:Ye}:null,retryLane:536870912,hydrationErrors:null},n=kf(t),n.return=e,e.child=n,Wt=e,Dt=null)):t=null,t===null)throw bn(e);return ls(t)?e.lanes=32:e.lanes=536870912,null}var h=l.children;return l=l.fallback,a?(An(),a=e.mode,h=ni({mode:"hidden",children:h},a),l=$n(l,a,n,null),h.return=e,l.return=e,h.sibling=l,e.child=h,l=e.child,l.memoizedState=_o(n),l.childLanes=bo(t,f,n),e.memoizedState=So,Ua(null,l)):(zn(e),To(e,h))}var _=t.memoizedState;if(_!==null&&(h=_.dehydrated,h!==null)){if(i)e.flags&256?(zn(e),e.flags&=-257,e=Ro(t,e,n)):e.memoizedState!==null?(An(),e.child=t.child,e.flags|=128,e=null):(An(),h=l.fallback,a=e.mode,l=ni({mode:"visible",children:l.children},a),h=$n(h,a,n,null),h.flags|=2,l.return=e,h.return=e,l.sibling=h,e.child=l,al(e,t.child,null,n),l=e.child,l.memoizedState=_o(n),l.childLanes=bo(t,f,n),e.memoizedState=So,e=Ua(null,l));else if(zn(e),ls(h)){if(f=h.nextSibling&&h.nextSibling.dataset,f)var A=f.dgst;f=A,l=Error(o(419)),l.stack="",l.digest=f,ba({value:l,source:null,stack:null}),e=Ro(t,e,n)}else if(Qt||Nl(t,e,n,!1),f=(n&t.childLanes)!==0,Qt||f){if(f=xt,f!==null&&(l=tf(f,n),l!==0&&l!==_.retryLane))throw _.retryLane=l,Wn(t,l),oe(f,t,l),po;ns(h)||ri(),e=Ro(t,e,n)}else ns(h)?(e.flags|=192,e.child=t.child,e=null):(t=_.treeContext,Dt=xe(h.nextSibling),Wt=e,yt=!0,_n=null,Oe=!1,t!==null&&$f(e,t),e=To(e,l.children),e.flags|=4096);return e}return a?(An(),h=l.fallback,a=e.mode,_=t.child,A=_.sibling,l=We(_,{mode:"hidden",children:l.children}),l.subtreeFlags=_.subtreeFlags&65011712,A!==null?h=We(A,h):(h=$n(h,a,n,null),h.flags|=2),h.return=e,l.return=e,l.sibling=h,e.child=l,Ua(null,l),l=e.child,h=t.child.memoizedState,h===null?h=_o(n):(a=h.cachePool,a!==null?(_=Xt._currentValue,a=a.parent!==_?{parent:_,pool:_}:a):a=lr(),h={baseLanes:h.baseLanes|n,cachePool:a}),l.memoizedState=h,l.childLanes=bo(t,f,n),e.memoizedState=So,Ua(t.child,l)):(zn(e),n=t.child,t=n.sibling,n=We(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=n,e.memoizedState=null,n)}function To(t,e){return e=ni({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function ni(t,e){return t=me(22,t,null,e),t.lanes=0,t}function Ro(t,e,n){return al(e,t.child,null,n),t=To(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function vd(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),jc(t.return,e,n)}function Eo(t,e,n,l,a,i){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:a,treeForkCount:i}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=n,f.tailMode=a,f.treeForkCount=i)}function pd(t,e,n){var l=e.pendingProps,a=l.revealOrder,i=l.tail;l=l.children;var f=qt.current,h=(f&2)!==0;if(h?(f=f&1|2,e.flags|=128):f&=1,Q(qt,f),Pt(t,e,l,n),l=yt?_a:0,!h&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&vd(t,n,e);else if(t.tag===19)vd(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(a){case"forwards":for(n=e.child,a=null;n!==null;)t=n.alternate,t!==null&&Qu(t)===null&&(a=n),n=n.sibling;n=a,n===null?(a=e.child,e.child=null):(a=n.sibling,n.sibling=null),Eo(e,!1,a,n,i,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,a=e.child,e.child=null;a!==null;){if(t=a.alternate,t!==null&&Qu(t)===null){e.child=a;break}t=a.sibling,a.sibling=n,n=a,a=t}Eo(e,!0,n,null,i,l);break;case"together":Eo(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function nn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),xn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Nl(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,n=We(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=We(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Mo(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Hu(t)))}function sv(t,e,n){switch(e.tag){case 3:Gt(e,e.stateNode.containerInfo),Tn(e,Xt,t.memoizedState.cache),Pn();break;case 27:case 5:Ze(e);break;case 4:Gt(e,e.stateNode.containerInfo);break;case 10:Tn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Fc(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(zn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?yd(t,e,n):(zn(e),t=nn(t,e,n),t!==null?t.sibling:null);zn(e);break;case 19:var a=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(Nl(t,e,n,!1),l=(n&e.childLanes)!==0),a){if(l)return pd(t,e,n);e.flags|=128}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Q(qt,qt.current),l)break;return null;case 22:return e.lanes=0,sd(t,e,n,e.pendingProps);case 24:Tn(e,Xt,t.memoizedState.cache)}return nn(t,e,n)}function gd(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Qt=!0;else{if(!Mo(t,n)&&(e.flags&128)===0)return Qt=!1,sv(t,e,n);Qt=(t.flags&131072)!==0}else Qt=!1,yt&&(e.flags&1048576)!==0&&Wf(e,_a,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=nl(e.elementType),e.type=t,typeof t=="function")Cc(t)?(l=il(t,l),e.tag=1,e=hd(null,e,t,l,n)):(e.tag=0,e=go(null,e,t,l,n));else{if(t!=null){var a=t.$$typeof;if(a===F){e.tag=11,e=id(null,e,t,l,n);break t}else if(a===w){e.tag=14,e=cd(null,e,t,l,n);break t}}throw e=wt(t)||t,Error(o(306,e,""))}}return e;case 0:return go(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,a=il(l,e.pendingProps),hd(t,e,l,a,n);case 3:t:{if(Gt(e,e.stateNode.containerInfo),t===null)throw Error(o(387));l=e.pendingProps;var i=e.memoizedState;a=i.element,Qc(t,e),Oa(e,l,null,n);var f=e.memoizedState;if(l=f.cache,Tn(e,Xt,l),l!==i.cache&&wc(e,[Xt],n,!0),Aa(),l=f.element,i.isDehydrated)if(i={element:l,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){e=md(t,e,l,n);break t}else if(l!==a){a=Me(Error(o(424)),e),ba(a),e=md(t,e,l,n);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Dt=xe(t.firstChild),Wt=e,yt=!0,_n=null,Oe=!0,n=sr(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Pn(),l===a){e=nn(t,e,n);break t}Pt(t,e,l,n)}e=e.child}return e;case 26:return ei(t,e),t===null?(n=Ch(e.type,null,e.pendingProps,null))?e.memoizedState=n:yt||(n=e.type,t=e.pendingProps,l=gi(lt.current).createElement(n),l[Ft]=e,l[ne]=t,It(l,n,t),Jt(l),e.stateNode=l):e.memoizedState=Ch(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Ze(e),t===null&&yt&&(l=e.stateNode=zh(e.type,e.pendingProps,lt.current),Wt=e,Oe=!0,a=Dt,Bn(e.type)?(as=a,Dt=xe(l.firstChild)):Dt=a),Pt(t,e,e.pendingProps.children,n),ei(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&yt&&((a=l=Dt)&&(l=qv(l,e.type,e.pendingProps,Oe),l!==null?(e.stateNode=l,Wt=e,Dt=xe(l.firstChild),Oe=!1,a=!0):a=!1),a||bn(e)),Ze(e),a=e.type,i=e.pendingProps,f=t!==null?t.memoizedProps:null,l=i.children,Io(a,i)?l=null:f!==null&&Io(a,f)&&(e.flags|=32),e.memoizedState!==null&&(a=$c(t,e,tv,null,null,n),ka._currentValue=a),ei(t,e),Pt(t,e,l,n),e.child;case 6:return t===null&&yt&&((t=n=Dt)&&(n=Yv(n,e.pendingProps,Oe),n!==null?(e.stateNode=n,Wt=e,Dt=null,t=!0):t=!1),t||bn(e)),null;case 13:return yd(t,e,n);case 4:return Gt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=al(e,null,l,n):Pt(t,e,l,n),e.child;case 11:return id(t,e,e.type,e.pendingProps,n);case 7:return Pt(t,e,e.pendingProps,n),e.child;case 8:return Pt(t,e,e.pendingProps.children,n),e.child;case 12:return Pt(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,Tn(e,e.type,l.value),Pt(t,e,l.children,n),e.child;case 9:return a=e.type._context,l=e.pendingProps.children,tl(e),a=$t(a),l=l(a),e.flags|=1,Pt(t,e,l,n),e.child;case 14:return cd(t,e,e.type,e.pendingProps,n);case 15:return od(t,e,e.type,e.pendingProps,n);case 19:return pd(t,e,n);case 31:return ov(t,e,n);case 22:return sd(t,e,n,e.pendingProps);case 24:return tl(e),l=$t(Xt),t===null?(a=Gc(),a===null&&(a=xt,i=qc(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=n),a=i),e.memoizedState={parent:l,cache:a},Vc(e),Tn(e,Xt,a)):((t.lanes&n)!==0&&(Qc(t,e),Oa(e,null,null,n),Aa()),a=t.memoizedState,i=e.memoizedState,a.parent!==l?(a={parent:l,cache:l},e.memoizedState=a,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=a),Tn(e,Xt,l)):(l=i.cache,Tn(e,Xt,l),l!==a.cache&&wc(e,[Xt],n,!0))),Pt(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function ln(t){t.flags|=4}function zo(t,e,n,l,a){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(a&335544128)===a)if(t.stateNode.complete)t.flags|=8192;else if(Zd())t.flags|=8192;else throw ll=Yu,Xc}else t.flags&=-16777217}function Sd(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Nh(e))if(Zd())t.flags|=8192;else throw ll=Yu,Xc}function li(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?$s():536870912,t.lanes|=e,Kl|=e)}function Na(t,e){if(!yt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Lt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var a=t.child;a!==null;)n|=a.lanes|a.childLanes,l|=a.subtreeFlags&65011712,l|=a.flags&65011712,a.return=t,a=a.sibling;else for(a=t.child;a!==null;)n|=a.lanes|a.childLanes,l|=a.subtreeFlags,l|=a.flags,a.return=t,a=a.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function fv(t,e,n){var l=e.pendingProps;switch(Uc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Lt(e),null;case 1:return Lt(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),Ie(Xt),Mt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Ul(e)?ln(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Bc())),Lt(e),null;case 26:var a=e.type,i=e.memoizedState;return t===null?(ln(e),i!==null?(Lt(e),Sd(e,i)):(Lt(e),zo(e,a,null,l,n))):i?i!==t.memoizedState?(ln(e),Lt(e),Sd(e,i)):(Lt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&ln(e),Lt(e),zo(e,a,t,l,n)),null;case 27:if(hn(e),n=lt.current,a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&ln(e);else{if(!l){if(e.stateNode===null)throw Error(o(166));return Lt(e),null}t=J.current,Ul(e)?Pf(e):(t=zh(a,l,n),e.stateNode=t,ln(e))}return Lt(e),null;case 5:if(hn(e),a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&ln(e);else{if(!l){if(e.stateNode===null)throw Error(o(166));return Lt(e),null}if(i=J.current,Ul(e))Pf(e);else{var f=gi(lt.current);switch(i){case 1:i=f.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=f.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=f.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=f.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=f.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof l.is=="string"?f.createElement("select",{is:l.is}):f.createElement("select"),l.multiple?i.multiple=!0:l.size&&(i.size=l.size);break;default:i=typeof l.is=="string"?f.createElement(a,{is:l.is}):f.createElement(a)}}i[Ft]=e,i[ne]=l;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)i.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=i;t:switch(It(i,a,l),a){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&ln(e)}}return Lt(e),zo(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&ln(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(o(166));if(t=lt.current,Ul(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,a=Wt,a!==null)switch(a.tag){case 27:case 5:l=a.memoizedProps}t[Ft]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||yh(t.nodeValue,n)),t||bn(e,!0)}else t=gi(t).createTextNode(l),t[Ft]=e,e.stateNode=t}return Lt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=Ul(e),n!==null){if(t===null){if(!l)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[Ft]=e}else Pn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Lt(e),t=!1}else n=Bc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(ve(e),e):(ve(e),null);if((e.flags&128)!==0)throw Error(o(558))}return Lt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(a=Ul(e),l!==null&&l.dehydrated!==null){if(t===null){if(!a)throw Error(o(318));if(a=e.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(o(317));a[Ft]=e}else Pn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Lt(e),a=!1}else a=Bc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),a=!0;if(!a)return e.flags&256?(ve(e),e):(ve(e),null)}return ve(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,a=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(a=l.alternate.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==a&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),li(e,e.updateQueue),Lt(e),null);case 4:return Mt(),t===null&&ko(e.stateNode.containerInfo),Lt(e),null;case 10:return Ie(e.type),Lt(e),null;case 19:if(B(qt),l=e.memoizedState,l===null)return Lt(e),null;if(a=(e.flags&128)!==0,i=l.rendering,i===null)if(a)Na(l,!1);else{if(Ht!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(i=Qu(t),i!==null){for(e.flags|=128,Na(l,!1),t=i.updateQueue,e.updateQueue=t,li(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Jf(n,t),n=n.sibling;return Q(qt,qt.current&1|2),yt&&$e(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&>()>oi&&(e.flags|=128,a=!0,Na(l,!1),e.lanes=4194304)}else{if(!a)if(t=Qu(i),t!==null){if(e.flags|=128,a=!0,t=t.updateQueue,e.updateQueue=t,li(e,t),Na(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!yt)return Lt(e),null}else 2*gt()-l.renderingStartTime>oi&&n!==536870912&&(e.flags|=128,a=!0,Na(l,!1),e.lanes=4194304);l.isBackwards?(i.sibling=e.child,e.child=i):(t=l.last,t!==null?t.sibling=i:e.child=i,l.last=i)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=gt(),t.sibling=null,n=qt.current,Q(qt,a?n&1|2:n&1),yt&&$e(e,l.treeForkCount),t):(Lt(e),null);case 22:case 23:return ve(e),kc(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(Lt(e),e.subtreeFlags&6&&(e.flags|=8192)):Lt(e),n=e.updateQueue,n!==null&&li(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&B(el),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Ie(Xt),Lt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function rv(t,e){switch(Uc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ie(Xt),Mt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return hn(e),null;case 31:if(e.memoizedState!==null){if(ve(e),e.alternate===null)throw Error(o(340));Pn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(ve(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));Pn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return B(qt),null;case 4:return Mt(),null;case 10:return Ie(e.type),null;case 22:case 23:return ve(e),kc(),t!==null&&B(el),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Ie(Xt),null;case 25:return null;default:return null}}function _d(t,e){switch(Uc(e),e.tag){case 3:Ie(Xt),Mt();break;case 26:case 27:case 5:hn(e);break;case 4:Mt();break;case 31:e.memoizedState!==null&&ve(e);break;case 13:ve(e);break;case 19:B(qt);break;case 10:Ie(e.type);break;case 22:case 23:ve(e),kc(),t!==null&&B(el);break;case 24:Ie(Xt)}}function Ba(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var a=l.next;n=a;do{if((n.tag&t)===t){l=void 0;var i=n.create,f=n.inst;l=i(),f.destroy=l}n=n.next}while(n!==a)}}catch(h){Tt(e,e.return,h)}}function On(t,e,n){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&t)===t){var f=l.inst,h=f.destroy;if(h!==void 0){f.destroy=void 0,a=e;var _=n,A=h;try{A()}catch(D){Tt(a,_,D)}}}l=l.next}while(l!==i)}}catch(D){Tt(e,e.return,D)}}function bd(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{rr(e,n)}catch(l){Tt(t,t.return,l)}}}function Td(t,e,n){n.props=il(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Tt(t,e,l)}}function Ha(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(a){Tt(t,e,a)}}function Ge(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(a){Tt(t,e,a)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){Tt(t,e,a)}else n.current=null}function Rd(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(a){Tt(t,t.return,a)}}function Ao(t,e,n){try{var l=t.stateNode;Uv(l,t.type,n,e),l[ne]=e}catch(a){Tt(t,t.return,a)}}function Ed(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Bn(t.type)||t.tag===4}function Oo(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Ed(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Bn(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Co(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=ke));else if(l!==4&&(l===27&&Bn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Co(t,e,n),t=t.sibling;t!==null;)Co(t,e,n),t=t.sibling}function ai(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&Bn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(ai(t,e,n),t=t.sibling;t!==null;)ai(t,e,n),t=t.sibling}function Md(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,a=e.attributes;a.length;)e.removeAttributeNode(a[0]);It(e,l,n),e[Ft]=t,e[ne]=n}catch(i){Tt(t,t.return,i)}}var an=!1,Zt=!1,xo=!1,zd=typeof WeakSet=="function"?WeakSet:Set,kt=null;function dv(t,e){if(t=t.containerInfo,$o=Mi,t=wf(t),Tc(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var a=l.anchorOffset,i=l.focusNode;l=l.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break t}var f=0,h=-1,_=-1,A=0,D=0,N=t,O=null;e:for(;;){for(var C;N!==n||a!==0&&N.nodeType!==3||(h=f+a),N!==i||l!==0&&N.nodeType!==3||(_=f+l),N.nodeType===3&&(f+=N.nodeValue.length),(C=N.firstChild)!==null;)O=N,N=C;for(;;){if(N===t)break e;if(O===n&&++A===a&&(h=f),O===i&&++D===l&&(_=f),(C=N.nextSibling)!==null)break;N=O,O=N.parentNode}N=C}n=h===-1||_===-1?null:{start:h,end:_}}else n=null}n=n||{start:0,end:0}}else n=null;for(Po={focusedElem:t,selectionRange:n},Mi=!1,kt=e;kt!==null;)if(e=kt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,kt=t;else for(;kt!==null;){switch(e=kt,i=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)a=t[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&i!==null){t=void 0,n=e,a=i.memoizedProps,i=i.memoizedState,l=n.stateNode;try{var k=il(n.type,a);t=l.getSnapshotBeforeUpdate(k,i),l.__reactInternalSnapshotBeforeUpdate=t}catch(I){Tt(n,n.return,I)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)es(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":es(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=e.sibling,t!==null){t.return=e.return,kt=t;break}kt=e.return}}function Ad(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:cn(t,n),l&4&&Ba(5,n);break;case 1:if(cn(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){Tt(n,n.return,f)}else{var a=il(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(a,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Tt(n,n.return,f)}}l&64&&bd(n),l&512&&Ha(n,n.return);break;case 3:if(cn(t,n),l&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{rr(t,e)}catch(f){Tt(n,n.return,f)}}break;case 27:e===null&&l&4&&Md(n);case 26:case 5:cn(t,n),e===null&&l&4&&Rd(n),l&512&&Ha(n,n.return);break;case 12:cn(t,n);break;case 31:cn(t,n),l&4&&xd(t,n);break;case 13:cn(t,n),l&4&&Dd(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=bv.bind(null,n),Gv(t,n))));break;case 22:if(l=n.memoizedState!==null||an,!l){e=e!==null&&e.memoizedState!==null||Zt,a=an;var i=Zt;an=l,(Zt=e)&&!i?on(t,n,(n.subtreeFlags&8772)!==0):cn(t,n),an=a,Zt=i}break;case 30:break;default:cn(t,n)}}function Od(t){var e=t.alternate;e!==null&&(t.alternate=null,Od(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&uc(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Ut=null,ae=!1;function un(t,e,n){for(n=n.child;n!==null;)Cd(t,e,n),n=n.sibling}function Cd(t,e,n){if(re&&typeof re.onCommitFiberUnmount=="function")try{re.onCommitFiberUnmount(ia,n)}catch{}switch(n.tag){case 26:Zt||Ge(n,e),un(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Zt||Ge(n,e);var l=Ut,a=ae;Bn(n.type)&&(Ut=n.stateNode,ae=!1),un(t,e,n),Za(n.stateNode),Ut=l,ae=a;break;case 5:Zt||Ge(n,e);case 6:if(l=Ut,a=ae,Ut=null,un(t,e,n),Ut=l,ae=a,Ut!==null)if(ae)try{(Ut.nodeType===9?Ut.body:Ut.nodeName==="HTML"?Ut.ownerDocument.body:Ut).removeChild(n.stateNode)}catch(i){Tt(n,e,i)}else try{Ut.removeChild(n.stateNode)}catch(i){Tt(n,e,i)}break;case 18:Ut!==null&&(ae?(t=Ut,bh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),ta(t)):bh(Ut,n.stateNode));break;case 4:l=Ut,a=ae,Ut=n.stateNode.containerInfo,ae=!0,un(t,e,n),Ut=l,ae=a;break;case 0:case 11:case 14:case 15:On(2,n,e),Zt||On(4,n,e),un(t,e,n);break;case 1:Zt||(Ge(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Td(n,e,l)),un(t,e,n);break;case 21:un(t,e,n);break;case 22:Zt=(l=Zt)||n.memoizedState!==null,un(t,e,n),Zt=l;break;default:un(t,e,n)}}function xd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ta(t)}catch(n){Tt(e,e.return,n)}}}function Dd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ta(t)}catch(n){Tt(e,e.return,n)}}function hv(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new zd),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new zd),e;default:throw Error(o(435,t.tag))}}function ui(t,e){var n=hv(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var a=Tv.bind(null,t,l);l.then(a,a)}})}function ue(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var a=n[l],i=t,f=e,h=f;t:for(;h!==null;){switch(h.tag){case 27:if(Bn(h.type)){Ut=h.stateNode,ae=!1;break t}break;case 5:Ut=h.stateNode,ae=!1;break t;case 3:case 4:Ut=h.stateNode.containerInfo,ae=!0;break t}h=h.return}if(Ut===null)throw Error(o(160));Cd(i,f,a),Ut=null,ae=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Ld(e,t),e=e.sibling}var He=null;function Ld(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ue(e,t),ie(t),l&4&&(On(3,t,t.return),Ba(3,t),On(5,t,t.return));break;case 1:ue(e,t),ie(t),l&512&&(Zt||n===null||Ge(n,n.return)),l&64&&an&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var a=He;if(ue(e,t),ie(t),l&512&&(Zt||n===null||Ge(n,n.return)),l&4){var i=n!==null?n.memoizedState:null;if(l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null){t:{l=t.type,n=t.memoizedProps,a=a.ownerDocument||a;e:switch(l){case"title":i=a.getElementsByTagName("title")[0],(!i||i[sa]||i[Ft]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(l),a.head.insertBefore(i,a.querySelector("head > title"))),It(i,l,n),i[Ft]=t,Jt(i),l=i;break t;case"link":var f=Lh("link","href",a).get(l+(n.href||""));if(f){for(var h=0;h<f.length;h++)if(i=f[h],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(h,1);break e}}i=a.createElement(l),It(i,l,n),a.head.appendChild(i);break;case"meta":if(f=Lh("meta","content",a).get(l+(n.content||""))){for(h=0;h<f.length;h++)if(i=f[h],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(h,1);break e}}i=a.createElement(l),It(i,l,n),a.head.appendChild(i);break;default:throw Error(o(468,l))}i[Ft]=t,Jt(i),l=i}t.stateNode=l}else Uh(a,t.type,t.stateNode);else t.stateNode=Dh(a,l,t.memoizedProps);else i!==l?(i===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):i.count--,l===null?Uh(a,t.type,t.stateNode):Dh(a,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Ao(t,t.memoizedProps,n.memoizedProps)}break;case 27:ue(e,t),ie(t),l&512&&(Zt||n===null||Ge(n,n.return)),n!==null&&l&4&&Ao(t,t.memoizedProps,n.memoizedProps);break;case 5:if(ue(e,t),ie(t),l&512&&(Zt||n===null||Ge(n,n.return)),t.flags&32){a=t.stateNode;try{Rl(a,"")}catch(k){Tt(t,t.return,k)}}l&4&&t.stateNode!=null&&(a=t.memoizedProps,Ao(t,a,n!==null?n.memoizedProps:a)),l&1024&&(xo=!0);break;case 6:if(ue(e,t),ie(t),l&4){if(t.stateNode===null)throw Error(o(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch(k){Tt(t,t.return,k)}}break;case 3:if(bi=null,a=He,He=Si(e.containerInfo),ue(e,t),He=a,ie(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{ta(e.containerInfo)}catch(k){Tt(t,t.return,k)}xo&&(xo=!1,Ud(t));break;case 4:l=He,He=Si(t.stateNode.containerInfo),ue(e,t),ie(t),He=l;break;case 12:ue(e,t),ie(t);break;case 31:ue(e,t),ie(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,ui(t,l)));break;case 13:ue(e,t),ie(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ci=gt()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,ui(t,l)));break;case 22:a=t.memoizedState!==null;var _=n!==null&&n.memoizedState!==null,A=an,D=Zt;if(an=A||a,Zt=D||_,ue(e,t),Zt=D,an=A,ie(t),l&8192)t:for(e=t.stateNode,e._visibility=a?e._visibility&-2:e._visibility|1,a&&(n===null||_||an||Zt||cl(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){_=n=e;try{if(i=_.stateNode,a)f=i.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{h=_.stateNode;var N=_.memoizedProps.style,O=N!=null&&N.hasOwnProperty("display")?N.display:null;h.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(k){Tt(_,_.return,k)}}}else if(e.tag===6){if(n===null){_=e;try{_.stateNode.nodeValue=a?"":_.memoizedProps}catch(k){Tt(_,_.return,k)}}}else if(e.tag===18){if(n===null){_=e;try{var C=_.stateNode;a?Th(C,!0):Th(_.stateNode,!1)}catch(k){Tt(_,_.return,k)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,ui(t,n))));break;case 19:ue(e,t),ie(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,ui(t,l)));break;case 30:break;case 21:break;default:ue(e,t),ie(t)}}function ie(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(Ed(l)){n=l;break}l=l.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var a=n.stateNode,i=Oo(t);ai(t,i,a);break;case 5:var f=n.stateNode;n.flags&32&&(Rl(f,""),n.flags&=-33);var h=Oo(t);ai(t,h,f);break;case 3:case 4:var _=n.stateNode.containerInfo,A=Oo(t);Co(t,A,_);break;default:throw Error(o(161))}}catch(D){Tt(t,t.return,D)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Ud(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Ud(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function cn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Ad(t,e.alternate,e),e=e.sibling}function cl(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:On(4,e,e.return),cl(e);break;case 1:Ge(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Td(e,e.return,n),cl(e);break;case 27:Za(e.stateNode);case 26:case 5:Ge(e,e.return),cl(e);break;case 22:e.memoizedState===null&&cl(e);break;case 30:cl(e);break;default:cl(e)}t=t.sibling}}function on(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,a=t,i=e,f=i.flags;switch(i.tag){case 0:case 11:case 15:on(a,i,n),Ba(4,i);break;case 1:if(on(a,i,n),l=i,a=l.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(A){Tt(l,l.return,A)}if(l=i,a=l.updateQueue,a!==null){var h=l.stateNode;try{var _=a.shared.hiddenCallbacks;if(_!==null)for(a.shared.hiddenCallbacks=null,a=0;a<_.length;a++)fr(_[a],h)}catch(A){Tt(l,l.return,A)}}n&&f&64&&bd(i),Ha(i,i.return);break;case 27:Md(i);case 26:case 5:on(a,i,n),n&&l===null&&f&4&&Rd(i),Ha(i,i.return);break;case 12:on(a,i,n);break;case 31:on(a,i,n),n&&f&4&&xd(a,i);break;case 13:on(a,i,n),n&&f&4&&Dd(a,i);break;case 22:i.memoizedState===null&&on(a,i,n),Ha(i,i.return);break;case 30:break;default:on(a,i,n)}e=e.sibling}}function Do(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&Ta(n))}function Lo(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ta(t))}function je(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Nd(t,e,n,l),e=e.sibling}function Nd(t,e,n,l){var a=e.flags;switch(e.tag){case 0:case 11:case 15:je(t,e,n,l),a&2048&&Ba(9,e);break;case 1:je(t,e,n,l);break;case 3:je(t,e,n,l),a&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ta(t)));break;case 12:if(a&2048){je(t,e,n,l),t=e.stateNode;try{var i=e.memoizedProps,f=i.id,h=i.onPostCommit;typeof h=="function"&&h(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(_){Tt(e,e.return,_)}}else je(t,e,n,l);break;case 31:je(t,e,n,l);break;case 13:je(t,e,n,l);break;case 23:break;case 22:i=e.stateNode,f=e.alternate,e.memoizedState!==null?i._visibility&2?je(t,e,n,l):ja(t,e):i._visibility&2?je(t,e,n,l):(i._visibility|=2,Vl(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),a&2048&&Do(f,e);break;case 24:je(t,e,n,l),a&2048&&Lo(e.alternate,e);break;default:je(t,e,n,l)}}function Vl(t,e,n,l,a){for(a=a&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var i=t,f=e,h=n,_=l,A=f.flags;switch(f.tag){case 0:case 11:case 15:Vl(i,f,h,_,a),Ba(8,f);break;case 23:break;case 22:var D=f.stateNode;f.memoizedState!==null?D._visibility&2?Vl(i,f,h,_,a):ja(i,f):(D._visibility|=2,Vl(i,f,h,_,a)),a&&A&2048&&Do(f.alternate,f);break;case 24:Vl(i,f,h,_,a),a&&A&2048&&Lo(f.alternate,f);break;default:Vl(i,f,h,_,a)}e=e.sibling}}function ja(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,a=l.flags;switch(l.tag){case 22:ja(n,l),a&2048&&Do(l.alternate,l);break;case 24:ja(n,l),a&2048&&Lo(l.alternate,l);break;default:ja(n,l)}e=e.sibling}}var wa=8192;function Ql(t,e,n){if(t.subtreeFlags&wa)for(t=t.child;t!==null;)Bd(t,e,n),t=t.sibling}function Bd(t,e,n){switch(t.tag){case 26:Ql(t,e,n),t.flags&wa&&t.memoizedState!==null&&Iv(n,He,t.memoizedState,t.memoizedProps);break;case 5:Ql(t,e,n);break;case 3:case 4:var l=He;He=Si(t.stateNode.containerInfo),Ql(t,e,n),He=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=wa,wa=16777216,Ql(t,e,n),wa=l):Ql(t,e,n));break;default:Ql(t,e,n)}}function Hd(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function qa(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];kt=l,wd(l,t)}Hd(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)jd(t),t=t.sibling}function jd(t){switch(t.tag){case 0:case 11:case 15:qa(t),t.flags&2048&&On(9,t,t.return);break;case 3:qa(t);break;case 12:qa(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,ii(t)):qa(t);break;default:qa(t)}}function ii(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];kt=l,wd(l,t)}Hd(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:On(8,e,e.return),ii(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,ii(e));break;default:ii(e)}t=t.sibling}}function wd(t,e){for(;kt!==null;){var n=kt;switch(n.tag){case 0:case 11:case 15:On(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Ta(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,kt=l;else t:for(n=t;kt!==null;){l=kt;var a=l.sibling,i=l.return;if(Od(l),l===n){kt=null;break t}if(a!==null){a.return=i,kt=a;break t}kt=i}}}var mv={getCacheForType:function(t){var e=$t(Xt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return $t(Xt).controller.signal}},yv=typeof WeakMap=="function"?WeakMap:Map,St=0,xt=null,ft=null,dt=0,bt=0,pe=null,Cn=!1,Zl=!1,Uo=!1,sn=0,Ht=0,xn=0,ol=0,No=0,ge=0,Kl=0,Ya=null,ce=null,Bo=!1,ci=0,qd=0,oi=1/0,si=null,Dn=null,Kt=0,Ln=null,Jl=null,fn=0,Ho=0,jo=null,Yd=null,Ga=0,wo=null;function Se(){return(St&2)!==0&&dt!==0?dt&-dt:x.T!==null?Qo():ef()}function Gd(){if(ge===0)if((dt&536870912)===0||yt){var t=pu;pu<<=1,(pu&3932160)===0&&(pu=262144),ge=t}else ge=536870912;return t=ye.current,t!==null&&(t.flags|=32),ge}function oe(t,e,n){(t===xt&&(bt===2||bt===9)||t.cancelPendingCommit!==null)&&(kl(t,0),Un(t,dt,ge,!1)),oa(t,n),((St&2)===0||t!==xt)&&(t===xt&&((St&2)===0&&(ol|=n),Ht===4&&Un(t,dt,ge,!1)),Xe(t))}function Xd(t,e,n){if((St&6)!==0)throw Error(o(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||ca(t,e),a=l?gv(t,e):Yo(t,e,!0),i=l;do{if(a===0){Zl&&!l&&Un(t,e,0,!1);break}else{if(n=t.current.alternate,i&&!vv(n)){a=Yo(t,e,!1),i=!1;continue}if(a===2){if(i=e,t.errorRecoveryDisabledLanes&i)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var h=t;a=Ya;var _=h.current.memoizedState.isDehydrated;if(_&&(kl(h,f).flags|=256),f=Yo(h,f,!1),f!==2){if(Uo&&!_){h.errorRecoveryDisabledLanes|=i,ol|=i,a=4;break t}i=ce,ce=a,i!==null&&(ce===null?ce=i:ce.push.apply(ce,i))}a=f}if(i=!1,a!==2)continue}}if(a===1){kl(t,0),Un(t,e,0,!0);break}t:{switch(l=t,i=a,i){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:Un(l,e,ge,!Cn);break t;case 2:ce=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(a=ci+300-gt(),10<a)){if(Un(l,e,ge,!Cn),Su(l,0,!0)!==0)break t;fn=e,l.timeoutHandle=Sh(Vd.bind(null,l,n,ce,si,Bo,e,ge,ol,Kl,Cn,i,"Throttled",-0,0),a);break t}Vd(l,n,ce,si,Bo,e,ge,ol,Kl,Cn,i,null,-0,0)}}break}while(!0);Xe(t)}function Vd(t,e,n,l,a,i,f,h,_,A,D,N,O,C){if(t.timeoutHandle=-1,N=e.subtreeFlags,N&8192||(N&16785408)===16785408){N={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ke},Bd(e,i,N);var k=(i&62914560)===i?ci-gt():(i&4194048)===i?qd-gt():0;if(k=t0(N,k),k!==null){fn=i,t.cancelPendingCommit=k($d.bind(null,t,e,i,n,l,a,f,h,_,D,N,null,O,C)),Un(t,i,f,!A);return}}$d(t,e,i,n,l,a,f,h,_)}function vv(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var a=n[l],i=a.getSnapshot;a=a.value;try{if(!he(i(),a))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Un(t,e,n,l){e&=~No,e&=~ol,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var a=e;0<a;){var i=31-de(a),f=1<<i;l[i]=-1,a&=~f}n!==0&&Ps(t,n,e)}function fi(){return(St&6)===0?(Xa(0),!1):!0}function qo(){if(ft!==null){if(bt===0)var t=ft.return;else t=ft,Pe=In=null,to(t),wl=null,Ea=0,t=ft;for(;t!==null;)_d(t.alternate,t),t=t.return;ft=null}}function kl(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Hv(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),fn=0,qo(),xt=t,ft=n=We(t.current,null),dt=e,bt=0,pe=null,Cn=!1,Zl=ca(t,e),Uo=!1,Kl=ge=No=ol=xn=Ht=0,ce=Ya=null,Bo=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var a=31-de(l),i=1<<a;e|=t[a],l&=~i}return sn=e,Du(),n}function Qd(t,e){it=null,x.H=La,e===jl||e===qu?(e=ir(),bt=3):e===Xc?(e=ir(),bt=4):bt=e===po?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,pe=e,ft===null&&(Ht=1,Iu(t,Me(e,t.current)))}function Zd(){var t=ye.current;return t===null?!0:(dt&4194048)===dt?Ce===null:(dt&62914560)===dt||(dt&536870912)!==0?t===Ce:!1}function Kd(){var t=x.H;return x.H=La,t===null?La:t}function Jd(){var t=x.A;return x.A=mv,t}function ri(){Ht=4,Cn||(dt&4194048)!==dt&&ye.current!==null||(Zl=!0),(xn&134217727)===0&&(ol&134217727)===0||xt===null||Un(xt,dt,ge,!1)}function Yo(t,e,n){var l=St;St|=2;var a=Kd(),i=Jd();(xt!==t||dt!==e)&&(si=null,kl(t,e)),e=!1;var f=Ht;t:do try{if(bt!==0&&ft!==null){var h=ft,_=pe;switch(bt){case 8:qo(),f=6;break t;case 3:case 2:case 9:case 6:ye.current===null&&(e=!0);var A=bt;if(bt=0,pe=null,Fl(t,h,_,A),n&&Zl){f=0;break t}break;default:A=bt,bt=0,pe=null,Fl(t,h,_,A)}}pv(),f=Ht;break}catch(D){Qd(t,D)}while(!0);return e&&t.shellSuspendCounter++,Pe=In=null,St=l,x.H=a,x.A=i,ft===null&&(xt=null,dt=0,Du()),f}function pv(){for(;ft!==null;)kd(ft)}function gv(t,e){var n=St;St|=2;var l=Kd(),a=Jd();xt!==t||dt!==e?(si=null,oi=gt()+500,kl(t,e)):Zl=ca(t,e);t:do try{if(bt!==0&&ft!==null){e=ft;var i=pe;e:switch(bt){case 1:bt=0,pe=null,Fl(t,e,i,1);break;case 2:case 9:if(ar(i)){bt=0,pe=null,Fd(e);break}e=function(){bt!==2&&bt!==9||xt!==t||(bt=7),Xe(t)},i.then(e,e);break t;case 3:bt=7;break t;case 4:bt=5;break t;case 7:ar(i)?(bt=0,pe=null,Fd(e)):(bt=0,pe=null,Fl(t,e,i,7));break;case 5:var f=null;switch(ft.tag){case 26:f=ft.memoizedState;case 5:case 27:var h=ft;if(f?Nh(f):h.stateNode.complete){bt=0,pe=null;var _=h.sibling;if(_!==null)ft=_;else{var A=h.return;A!==null?(ft=A,di(A)):ft=null}break e}}bt=0,pe=null,Fl(t,e,i,5);break;case 6:bt=0,pe=null,Fl(t,e,i,6);break;case 8:qo(),Ht=6;break t;default:throw Error(o(462))}}Sv();break}catch(D){Qd(t,D)}while(!0);return Pe=In=null,x.H=l,x.A=a,St=n,ft!==null?0:(xt=null,dt=0,Du(),Ht)}function Sv(){for(;ft!==null&&!mu();)kd(ft)}function kd(t){var e=gd(t.alternate,t,sn);t.memoizedProps=t.pendingProps,e===null?di(t):ft=e}function Fd(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=dd(n,e,e.pendingProps,e.type,void 0,dt);break;case 11:e=dd(n,e,e.pendingProps,e.type.render,e.ref,dt);break;case 5:to(e);default:_d(n,e),e=ft=Jf(e,sn),e=gd(n,e,sn)}t.memoizedProps=t.pendingProps,e===null?di(t):ft=e}function Fl(t,e,n,l){Pe=In=null,to(e),wl=null,Ea=0;var a=e.return;try{if(cv(t,a,e,n,dt)){Ht=1,Iu(t,Me(n,t.current)),ft=null;return}}catch(i){if(a!==null)throw ft=a,i;Ht=1,Iu(t,Me(n,t.current)),ft=null;return}e.flags&32768?(yt||l===1?t=!0:Zl||(dt&536870912)!==0?t=!1:(Cn=t=!0,(l===2||l===9||l===3||l===6)&&(l=ye.current,l!==null&&l.tag===13&&(l.flags|=16384))),Wd(e,t)):di(e)}function di(t){var e=t;do{if((e.flags&32768)!==0){Wd(e,Cn);return}t=e.return;var n=fv(e.alternate,e,sn);if(n!==null){ft=n;return}if(e=e.sibling,e!==null){ft=e;return}ft=e=t}while(e!==null);Ht===0&&(Ht=5)}function Wd(t,e){do{var n=rv(t.alternate,t);if(n!==null){n.flags&=32767,ft=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){ft=t;return}ft=t=n}while(t!==null);Ht=6,ft=null}function $d(t,e,n,l,a,i,f,h,_){t.cancelPendingCommit=null;do hi();while(Kt!==0);if((St&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(i=e.lanes|e.childLanes,i|=Ac,Pm(t,n,i,f,h,_),t===xt&&(ft=xt=null,dt=0),Jl=e,Ln=t,fn=n,Ho=i,jo=a,Yd=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Rv(yu,function(){return nh(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=x.T,x.T=null,a=V.p,V.p=2,f=St,St|=4;try{dv(t,e,n)}finally{St=f,V.p=a,x.T=l}}Kt=1,Pd(),Id(),th()}}function Pd(){if(Kt===1){Kt=0;var t=Ln,e=Jl,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=x.T,x.T=null;var l=V.p;V.p=2;var a=St;St|=4;try{Ld(e,t);var i=Po,f=wf(t.containerInfo),h=i.focusedElem,_=i.selectionRange;if(f!==h&&h&&h.ownerDocument&&jf(h.ownerDocument.documentElement,h)){if(_!==null&&Tc(h)){var A=_.start,D=_.end;if(D===void 0&&(D=A),"selectionStart"in h)h.selectionStart=A,h.selectionEnd=Math.min(D,h.value.length);else{var N=h.ownerDocument||document,O=N&&N.defaultView||window;if(O.getSelection){var C=O.getSelection(),k=h.textContent.length,I=Math.min(_.start,k),Ct=_.end===void 0?I:Math.min(_.end,k);!C.extend&&I>Ct&&(f=Ct,Ct=I,I=f);var E=Hf(h,I),T=Hf(h,Ct);if(E&&T&&(C.rangeCount!==1||C.anchorNode!==E.node||C.anchorOffset!==E.offset||C.focusNode!==T.node||C.focusOffset!==T.offset)){var z=N.createRange();z.setStart(E.node,E.offset),C.removeAllRanges(),I>Ct?(C.addRange(z),C.extend(T.node,T.offset)):(z.setEnd(T.node,T.offset),C.addRange(z))}}}}for(N=[],C=h;C=C.parentNode;)C.nodeType===1&&N.push({element:C,left:C.scrollLeft,top:C.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<N.length;h++){var U=N[h];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}Mi=!!$o,Po=$o=null}finally{St=a,V.p=l,x.T=n}}t.current=e,Kt=2}}function Id(){if(Kt===2){Kt=0;var t=Ln,e=Jl,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=x.T,x.T=null;var l=V.p;V.p=2;var a=St;St|=4;try{Ad(t,e.alternate,e)}finally{St=a,V.p=l,x.T=n}}Kt=3}}function th(){if(Kt===4||Kt===3){Kt=0,zt();var t=Ln,e=Jl,n=fn,l=Yd;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Kt=5:(Kt=0,Jl=Ln=null,eh(t,t.pendingLanes));var a=t.pendingLanes;if(a===0&&(Dn=null),lc(n),e=e.stateNode,re&&typeof re.onCommitFiberRoot=="function")try{re.onCommitFiberRoot(ia,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=x.T,a=V.p,V.p=2,x.T=null;try{for(var i=t.onRecoverableError,f=0;f<l.length;f++){var h=l[f];i(h.value,{componentStack:h.stack})}}finally{x.T=e,V.p=a}}(fn&3)!==0&&hi(),Xe(t),a=t.pendingLanes,(n&261930)!==0&&(a&42)!==0?t===wo?Ga++:(Ga=0,wo=t):Ga=0,Xa(0)}}function eh(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Ta(e)))}function hi(){return Pd(),Id(),th(),nh()}function nh(){if(Kt!==5)return!1;var t=Ln,e=Ho;Ho=0;var n=lc(fn),l=x.T,a=V.p;try{V.p=32>n?32:n,x.T=null,n=jo,jo=null;var i=Ln,f=fn;if(Kt=0,Jl=Ln=null,fn=0,(St&6)!==0)throw Error(o(331));var h=St;if(St|=4,jd(i.current),Nd(i,i.current,f,n),St=h,Xa(0,!1),re&&typeof re.onPostCommitFiberRoot=="function")try{re.onPostCommitFiberRoot(ia,i)}catch{}return!0}finally{V.p=a,x.T=l,eh(t,e)}}function lh(t,e,n){e=Me(n,e),e=vo(t.stateNode,e,2),t=Mn(t,e,2),t!==null&&(oa(t,2),Xe(t))}function Tt(t,e,n){if(t.tag===3)lh(t,t,n);else for(;e!==null;){if(e.tag===3){lh(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Dn===null||!Dn.has(l))){t=Me(n,t),n=ad(2),l=Mn(e,n,2),l!==null&&(ud(n,l,e,t),oa(l,2),Xe(l));break}}e=e.return}}function Go(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new yv;var a=new Set;l.set(e,a)}else a=l.get(e),a===void 0&&(a=new Set,l.set(e,a));a.has(n)||(Uo=!0,a.add(n),t=_v.bind(null,t,e,n),e.then(t,t))}function _v(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,xt===t&&(dt&n)===n&&(Ht===4||Ht===3&&(dt&62914560)===dt&&300>gt()-ci?(St&2)===0&&kl(t,0):No|=n,Kl===dt&&(Kl=0)),Xe(t)}function ah(t,e){e===0&&(e=$s()),t=Wn(t,e),t!==null&&(oa(t,e),Xe(t))}function bv(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),ah(t,n)}function Tv(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,a=t.memoizedState;a!==null&&(n=a.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(e),ah(t,n)}function Rv(t,e){return yn(t,e)}var mi=null,Wl=null,Xo=!1,yi=!1,Vo=!1,Nn=0;function Xe(t){t!==Wl&&t.next===null&&(Wl===null?mi=Wl=t:Wl=Wl.next=t),yi=!0,Xo||(Xo=!0,Mv())}function Xa(t,e){if(!Vo&&yi){Vo=!0;do for(var n=!1,l=mi;l!==null;){if(t!==0){var a=l.pendingLanes;if(a===0)var i=0;else{var f=l.suspendedLanes,h=l.pingedLanes;i=(1<<31-de(42|t)+1)-1,i&=a&~(f&~h),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,oh(l,i))}else i=dt,i=Su(l,l===xt?i:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(i&3)===0||ca(l,i)||(n=!0,oh(l,i));l=l.next}while(n);Vo=!1}}function Ev(){uh()}function uh(){yi=Xo=!1;var t=0;Nn!==0&&Bv()&&(t=Nn);for(var e=gt(),n=null,l=mi;l!==null;){var a=l.next,i=ih(l,e);i===0?(l.next=null,n===null?mi=a:n.next=a,a===null&&(Wl=n)):(n=l,(t!==0||(i&3)!==0)&&(yi=!0)),l=a}Kt!==0&&Kt!==5||Xa(t),Nn!==0&&(Nn=0)}function ih(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,a=t.expirationTimes,i=t.pendingLanes&-62914561;0<i;){var f=31-de(i),h=1<<f,_=a[f];_===-1?((h&n)===0||(h&l)!==0)&&(a[f]=$m(h,e)):_<=e&&(t.expiredLanes|=h),i&=~h}if(e=xt,n=dt,n=Su(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(bt===2||bt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&vl(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||ca(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&vl(l),lc(n)){case 2:case 8:n=Fs;break;case 32:n=yu;break;case 268435456:n=Ws;break;default:n=yu}return l=ch.bind(null,t),n=yn(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&vl(l),t.callbackPriority=2,t.callbackNode=null,2}function ch(t,e){if(Kt!==0&&Kt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(hi()&&t.callbackNode!==n)return null;var l=dt;return l=Su(t,t===xt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Xd(t,l,e),ih(t,gt()),t.callbackNode!=null&&t.callbackNode===n?ch.bind(null,t):null)}function oh(t,e){if(hi())return null;Xd(t,e,!0)}function Mv(){jv(function(){(St&6)!==0?yn(ua,Ev):uh()})}function Qo(){if(Nn===0){var t=Bl;t===0&&(t=vu,vu<<=1,(vu&261888)===0&&(vu=256)),Nn=t}return Nn}function sh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Ru(""+t)}function fh(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function zv(t,e,n,l,a){if(e==="submit"&&n&&n.stateNode===a){var i=sh((a[ne]||null).action),f=l.submitter;f&&(e=(e=f[ne]||null)?sh(e.formAction):f.getAttribute("formAction"),e!==null&&(i=e,f=null));var h=new Au("action","action",null,l,a);t.push({event:h,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Nn!==0){var _=f?fh(a,f):new FormData(a);so(n,{pending:!0,data:_,method:a.method,action:i},null,_)}}else typeof i=="function"&&(h.preventDefault(),_=f?fh(a,f):new FormData(a),so(n,{pending:!0,data:_,method:a.method,action:i},i,_))},currentTarget:a}]})}}for(var Zo=0;Zo<zc.length;Zo++){var Ko=zc[Zo],Av=Ko.toLowerCase(),Ov=Ko[0].toUpperCase()+Ko.slice(1);Be(Av,"on"+Ov)}Be(Gf,"onAnimationEnd"),Be(Xf,"onAnimationIteration"),Be(Vf,"onAnimationStart"),Be("dblclick","onDoubleClick"),Be("focusin","onFocus"),Be("focusout","onBlur"),Be(Qy,"onTransitionRun"),Be(Zy,"onTransitionStart"),Be(Ky,"onTransitionCancel"),Be(Qf,"onTransitionEnd"),bl("onMouseEnter",["mouseout","mouseover"]),bl("onMouseLeave",["mouseout","mouseover"]),bl("onPointerEnter",["pointerout","pointerover"]),bl("onPointerLeave",["pointerout","pointerover"]),Kn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Kn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Kn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Kn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Kn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Kn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Va="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Cv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Va));function rh(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],a=l.event;l=l.listeners;t:{var i=void 0;if(e)for(var f=l.length-1;0<=f;f--){var h=l[f],_=h.instance,A=h.currentTarget;if(h=h.listener,_!==i&&a.isPropagationStopped())break t;i=h,a.currentTarget=A;try{i(a)}catch(D){xu(D)}a.currentTarget=null,i=_}else for(f=0;f<l.length;f++){if(h=l[f],_=h.instance,A=h.currentTarget,h=h.listener,_!==i&&a.isPropagationStopped())break t;i=h,a.currentTarget=A;try{i(a)}catch(D){xu(D)}a.currentTarget=null,i=_}}}}function rt(t,e){var n=e[ac];n===void 0&&(n=e[ac]=new Set);var l=t+"__bubble";n.has(l)||(dh(e,t,2,!1),n.add(l))}function Jo(t,e,n){var l=0;e&&(l|=4),dh(n,t,l,e)}var vi="_reactListening"+Math.random().toString(36).slice(2);function ko(t){if(!t[vi]){t[vi]=!0,af.forEach(function(n){n!=="selectionchange"&&(Cv.has(n)||Jo(n,!1,t),Jo(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[vi]||(e[vi]=!0,Jo("selectionchange",!1,e))}}function dh(t,e,n,l){switch(Gh(e)){case 2:var a=l0;break;case 8:a=a0;break;default:a=ss}n=a.bind(null,e,n,t),a=void 0,!hc||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(a=!0),l?a!==void 0?t.addEventListener(e,n,{capture:!0,passive:a}):t.addEventListener(e,n,!0):a!==void 0?t.addEventListener(e,n,{passive:a}):t.addEventListener(e,n,!1)}function Fo(t,e,n,l,a){var i=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var f=l.tag;if(f===3||f===4){var h=l.stateNode.containerInfo;if(h===a)break;if(f===4)for(f=l.return;f!==null;){var _=f.tag;if((_===3||_===4)&&f.stateNode.containerInfo===a)return;f=f.return}for(;h!==null;){if(f=gl(h),f===null)return;if(_=f.tag,_===5||_===6||_===26||_===27){l=i=f;continue t}h=h.parentNode}}l=l.return}pf(function(){var A=i,D=rc(n),N=[];t:{var O=Zf.get(t);if(O!==void 0){var C=Au,k=t;switch(t){case"keypress":if(Mu(n)===0)break t;case"keydown":case"keyup":C=Ty;break;case"focusin":k="focus",C=pc;break;case"focusout":k="blur",C=pc;break;case"beforeblur":case"afterblur":C=pc;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":C=_f;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":C=fy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":C=My;break;case Gf:case Xf:case Vf:C=hy;break;case Qf:C=Ay;break;case"scroll":case"scrollend":C=oy;break;case"wheel":C=Cy;break;case"copy":case"cut":case"paste":C=yy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":C=Tf;break;case"toggle":case"beforetoggle":C=Dy}var I=(e&4)!==0,Ct=!I&&(t==="scroll"||t==="scrollend"),E=I?O!==null?O+"Capture":null:O;I=[];for(var T=A,z;T!==null;){var U=T;if(z=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||z===null||E===null||(U=ra(T,E),U!=null&&I.push(Qa(T,U,z))),Ct)break;T=T.return}0<I.length&&(O=new C(O,k,null,n,D),N.push({event:O,listeners:I}))}}if((e&7)===0){t:{if(O=t==="mouseover"||t==="pointerover",C=t==="mouseout"||t==="pointerout",O&&n!==fc&&(k=n.relatedTarget||n.fromElement)&&(gl(k)||k[pl]))break t;if((C||O)&&(O=D.window===D?D:(O=D.ownerDocument)?O.defaultView||O.parentWindow:window,C?(k=n.relatedTarget||n.toElement,C=A,k=k?gl(k):null,k!==null&&(Ct=d(k),I=k.tag,k!==Ct||I!==5&&I!==27&&I!==6)&&(k=null)):(C=null,k=A),C!==k)){if(I=_f,U="onMouseLeave",E="onMouseEnter",T="mouse",(t==="pointerout"||t==="pointerover")&&(I=Tf,U="onPointerLeave",E="onPointerEnter",T="pointer"),Ct=C==null?O:fa(C),z=k==null?O:fa(k),O=new I(U,T+"leave",C,n,D),O.target=Ct,O.relatedTarget=z,U=null,gl(D)===A&&(I=new I(E,T+"enter",k,n,D),I.target=z,I.relatedTarget=Ct,U=I),Ct=U,C&&k)e:{for(I=xv,E=C,T=k,z=0,U=E;U;U=I(U))z++;U=0;for(var P=T;P;P=I(P))U++;for(;0<z-U;)E=I(E),z--;for(;0<U-z;)T=I(T),U--;for(;z--;){if(E===T||T!==null&&E===T.alternate){I=E;break e}E=I(E),T=I(T)}I=null}else I=null;C!==null&&hh(N,O,C,I,!1),k!==null&&Ct!==null&&hh(N,Ct,k,I,!0)}}t:{if(O=A?fa(A):window,C=O.nodeName&&O.nodeName.toLowerCase(),C==="select"||C==="input"&&O.type==="file")var vt=xf;else if(Of(O))if(Df)vt=Gy;else{vt=qy;var W=wy}else C=O.nodeName,!C||C.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?A&&sc(A.elementType)&&(vt=xf):vt=Yy;if(vt&&(vt=vt(t,A))){Cf(N,vt,n,D);break t}W&&W(t,O,A),t==="focusout"&&A&&O.type==="number"&&A.memoizedProps.value!=null&&oc(O,"number",O.value)}switch(W=A?fa(A):window,t){case"focusin":(Of(W)||W.contentEditable==="true")&&(Al=W,Rc=A,Sa=null);break;case"focusout":Sa=Rc=Al=null;break;case"mousedown":Ec=!0;break;case"contextmenu":case"mouseup":case"dragend":Ec=!1,qf(N,n,D);break;case"selectionchange":if(Vy)break;case"keydown":case"keyup":qf(N,n,D)}var ot;if(Sc)t:{switch(t){case"compositionstart":var ht="onCompositionStart";break t;case"compositionend":ht="onCompositionEnd";break t;case"compositionupdate":ht="onCompositionUpdate";break t}ht=void 0}else zl?zf(t,n)&&(ht="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(ht="onCompositionStart");ht&&(Rf&&n.locale!=="ko"&&(zl||ht!=="onCompositionStart"?ht==="onCompositionEnd"&&zl&&(ot=gf()):(gn=D,mc="value"in gn?gn.value:gn.textContent,zl=!0)),W=pi(A,ht),0<W.length&&(ht=new bf(ht,t,null,n,D),N.push({event:ht,listeners:W}),ot?ht.data=ot:(ot=Af(n),ot!==null&&(ht.data=ot)))),(ot=Uy?Ny(t,n):By(t,n))&&(ht=pi(A,"onBeforeInput"),0<ht.length&&(W=new bf("onBeforeInput","beforeinput",null,n,D),N.push({event:W,listeners:ht}),W.data=ot)),zv(N,t,A,n,D)}rh(N,e)})}function Qa(t,e,n){return{instance:t,listener:e,currentTarget:n}}function pi(t,e){for(var n=e+"Capture",l=[];t!==null;){var a=t,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=ra(t,n),a!=null&&l.unshift(Qa(t,a,i)),a=ra(t,e),a!=null&&l.push(Qa(t,a,i))),t.tag===3)return l;t=t.return}return[]}function xv(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function hh(t,e,n,l,a){for(var i=e._reactName,f=[];n!==null&&n!==l;){var h=n,_=h.alternate,A=h.stateNode;if(h=h.tag,_!==null&&_===l)break;h!==5&&h!==26&&h!==27||A===null||(_=A,a?(A=ra(n,i),A!=null&&f.unshift(Qa(n,A,_))):a||(A=ra(n,i),A!=null&&f.push(Qa(n,A,_)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var Dv=/\r\n?/g,Lv=/\u0000|\uFFFD/g;function mh(t){return(typeof t=="string"?t:""+t).replace(Dv,`
|
|
9
9
|
`).replace(Lv,"")}function yh(t,e){return e=mh(e),mh(t)===e}function Ot(t,e,n,l,a,i){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||Rl(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&Rl(t,""+l);break;case"className":bu(t,"class",l);break;case"tabIndex":bu(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":bu(t,n,l);break;case"style":yf(t,l,i);break;case"data":if(e!=="object"){bu(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Ru(""+l),t.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(n==="formAction"?(e!=="input"&&Ot(t,e,"name",a.name,a,null),Ot(t,e,"formEncType",a.formEncType,a,null),Ot(t,e,"formMethod",a.formMethod,a,null),Ot(t,e,"formTarget",a.formTarget,a,null)):(Ot(t,e,"encType",a.encType,a,null),Ot(t,e,"method",a.method,a,null),Ot(t,e,"target",a.target,a,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Ru(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=ke);break;case"onScroll":l!=null&&rt("scroll",t);break;case"onScrollEnd":l!=null&&rt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(n=l.__html,n!=null){if(a.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=Ru(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""+l):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":rt("beforetoggle",t),rt("toggle",t),_u(t,"popover",l);break;case"xlinkActuate":Je(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Je(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Je(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Je(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Je(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Je(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Je(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Je(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Je(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":_u(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=iy.get(n)||n,_u(t,n,l))}}function Wo(t,e,n,l,a,i){switch(n){case"style":yf(t,l,i);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(n=l.__html,n!=null){if(a.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"children":typeof l=="string"?Rl(t,l):(typeof l=="number"||typeof l=="bigint")&&Rl(t,""+l);break;case"onScroll":l!=null&&rt("scroll",t);break;case"onScrollEnd":l!=null&&rt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=ke);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!uf.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),e=n.slice(2,a?n.length-7:void 0),i=t[ne]||null,i=i!=null?i[n]:null,typeof i=="function"&&t.removeEventListener(e,i,a),typeof l=="function")){typeof i!="function"&&i!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,a);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):_u(t,n,l)}}}function It(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":rt("error",t),rt("load",t);var l=!1,a=!1,i;for(i in n)if(n.hasOwnProperty(i)){var f=n[i];if(f!=null)switch(i){case"src":l=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Ot(t,e,i,f,n,null)}}a&&Ot(t,e,"srcSet",n.srcSet,n,null),l&&Ot(t,e,"src",n.src,n,null);return;case"input":rt("invalid",t);var h=i=f=a=null,_=null,A=null;for(l in n)if(n.hasOwnProperty(l)){var D=n[l];if(D!=null)switch(l){case"name":a=D;break;case"type":f=D;break;case"checked":_=D;break;case"defaultChecked":A=D;break;case"value":i=D;break;case"defaultValue":h=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(o(137,e));break;default:Ot(t,e,l,D,n,null)}}rf(t,i,h,_,A,f,a,!1);return;case"select":rt("invalid",t),l=f=i=null;for(a in n)if(n.hasOwnProperty(a)&&(h=n[a],h!=null))switch(a){case"value":i=h;break;case"defaultValue":f=h;break;case"multiple":l=h;default:Ot(t,e,a,h,n,null)}e=i,n=f,t.multiple=!!l,e!=null?Tl(t,!!l,e,!1):n!=null&&Tl(t,!!l,n,!0);return;case"textarea":rt("invalid",t),i=a=l=null;for(f in n)if(n.hasOwnProperty(f)&&(h=n[f],h!=null))switch(f){case"value":l=h;break;case"defaultValue":a=h;break;case"children":i=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(o(91));break;default:Ot(t,e,f,h,n,null)}hf(t,l,a,i);return;case"option":for(_ in n)if(n.hasOwnProperty(_)&&(l=n[_],l!=null))switch(_){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ot(t,e,_,l,n,null)}return;case"dialog":rt("beforetoggle",t),rt("toggle",t),rt("cancel",t),rt("close",t);break;case"iframe":case"object":rt("load",t);break;case"video":case"audio":for(l=0;l<Va.length;l++)rt(Va[l],t);break;case"image":rt("error",t),rt("load",t);break;case"details":rt("toggle",t);break;case"embed":case"source":case"link":rt("error",t),rt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(A in n)if(n.hasOwnProperty(A)&&(l=n[A],l!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Ot(t,e,A,l,n,null)}return;default:if(sc(e)){for(D in n)n.hasOwnProperty(D)&&(l=n[D],l!==void 0&&Wo(t,e,D,l,n,void 0));return}}for(h in n)n.hasOwnProperty(h)&&(l=n[h],l!=null&&Ot(t,e,h,l,n,null))}function Uv(t,e,n,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,f=null,h=null,_=null,A=null,D=null;for(C in n){var N=n[C];if(n.hasOwnProperty(C)&&N!=null)switch(C){case"checked":break;case"value":break;case"defaultValue":_=N;default:l.hasOwnProperty(C)||Ot(t,e,C,null,l,N)}}for(var O in l){var C=l[O];if(N=n[O],l.hasOwnProperty(O)&&(C!=null||N!=null))switch(O){case"type":i=C;break;case"name":a=C;break;case"checked":A=C;break;case"defaultChecked":D=C;break;case"value":f=C;break;case"defaultValue":h=C;break;case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(o(137,e));break;default:C!==N&&Ot(t,e,O,C,l,N)}}cc(t,f,h,_,A,D,i,a);return;case"select":C=f=h=O=null;for(i in n)if(_=n[i],n.hasOwnProperty(i)&&_!=null)switch(i){case"value":break;case"multiple":C=_;default:l.hasOwnProperty(i)||Ot(t,e,i,null,l,_)}for(a in l)if(i=l[a],_=n[a],l.hasOwnProperty(a)&&(i!=null||_!=null))switch(a){case"value":O=i;break;case"defaultValue":h=i;break;case"multiple":f=i;default:i!==_&&Ot(t,e,a,i,l,_)}e=h,n=f,l=C,O!=null?Tl(t,!!n,O,!1):!!l!=!!n&&(e!=null?Tl(t,!!n,e,!0):Tl(t,!!n,n?[]:"",!1));return;case"textarea":C=O=null;for(h in n)if(a=n[h],n.hasOwnProperty(h)&&a!=null&&!l.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:Ot(t,e,h,null,l,a)}for(f in l)if(a=l[f],i=n[f],l.hasOwnProperty(f)&&(a!=null||i!=null))switch(f){case"value":O=a;break;case"defaultValue":C=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(o(91));break;default:a!==i&&Ot(t,e,f,a,l,i)}df(t,O,C);return;case"option":for(var k in n)if(O=n[k],n.hasOwnProperty(k)&&O!=null&&!l.hasOwnProperty(k))switch(k){case"selected":t.selected=!1;break;default:Ot(t,e,k,null,l,O)}for(_ in l)if(O=l[_],C=n[_],l.hasOwnProperty(_)&&O!==C&&(O!=null||C!=null))switch(_){case"selected":t.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:Ot(t,e,_,O,l,C)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var I in n)O=n[I],n.hasOwnProperty(I)&&O!=null&&!l.hasOwnProperty(I)&&Ot(t,e,I,null,l,O);for(A in l)if(O=l[A],C=n[A],l.hasOwnProperty(A)&&O!==C&&(O!=null||C!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(o(137,e));break;default:Ot(t,e,A,O,l,C)}return;default:if(sc(e)){for(var Ct in n)O=n[Ct],n.hasOwnProperty(Ct)&&O!==void 0&&!l.hasOwnProperty(Ct)&&Wo(t,e,Ct,void 0,l,O);for(D in l)O=l[D],C=n[D],!l.hasOwnProperty(D)||O===C||O===void 0&&C===void 0||Wo(t,e,D,O,l,C);return}}for(var E in n)O=n[E],n.hasOwnProperty(E)&&O!=null&&!l.hasOwnProperty(E)&&Ot(t,e,E,null,l,O);for(N in l)O=l[N],C=n[N],!l.hasOwnProperty(N)||O===C||O==null&&C==null||Ot(t,e,N,O,l,C)}function vh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Nv(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var a=n[l],i=a.transferSize,f=a.initiatorType,h=a.duration;if(i&&h&&vh(f)){for(f=0,h=a.responseEnd,l+=1;l<n.length;l++){var _=n[l],A=_.startTime;if(A>h)break;var D=_.transferSize,N=_.initiatorType;D&&vh(N)&&(_=_.responseEnd,f+=D*(_<h?1:(h-A)/(_-A)))}if(--l,e+=8*(i+f)/(a.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var $o=null,Po=null;function gi(t){return t.nodeType===9?t:t.ownerDocument}function ph(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function gh(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Io(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var ts=null;function Bv(){var t=window.event;return t&&t.type==="popstate"?t===ts?!1:(ts=t,!0):(ts=null,!1)}var Sh=typeof setTimeout=="function"?setTimeout:void 0,Hv=typeof clearTimeout=="function"?clearTimeout:void 0,_h=typeof Promise=="function"?Promise:void 0,jv=typeof queueMicrotask=="function"?queueMicrotask:typeof _h<"u"?function(t){return _h.resolve(null).then(t).catch(wv)}:Sh;function wv(t){setTimeout(function(){throw t})}function Bn(t){return t==="head"}function bh(t,e){var n=e,l=0;do{var a=n.nextSibling;if(t.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(a),ta(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Za(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,Za(n);for(var i=n.firstChild;i;){var f=i.nextSibling,h=i.nodeName;i[sa]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&i.rel.toLowerCase()==="stylesheet"||n.removeChild(i),i=f}}else n==="body"&&Za(t.ownerDocument.body);n=a}while(n);ta(e)}function Th(t,e){var n=t;t=0;do{var l=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=l}while(n)}function es(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":es(n),uc(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function qv(t,e,n,l){for(;t.nodeType===1;){var a=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[sa])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(i=t.getAttribute("rel"),i==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(i!==a.rel||t.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||t.getAttribute("title")!==(a.title==null?null:a.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(i=t.getAttribute("src"),(i!==(a.src==null?null:a.src)||t.getAttribute("type")!==(a.type==null?null:a.type)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&t.getAttribute("name")===i)return t}else return t;if(t=xe(t.nextSibling),t===null)break}return null}function Yv(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=xe(t.nextSibling),t===null))return null;return t}function Rh(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=xe(t.nextSibling),t===null))return null;return t}function ns(t){return t.data==="$?"||t.data==="$~"}function ls(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Gv(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function xe(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var as=null;function Eh(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return xe(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Mh(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function zh(t,e,n){switch(e=gi(n),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function Za(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);uc(t)}var De=new Map,Ah=new Set;function Si(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var rn=V.d;V.d={f:Xv,r:Vv,D:Qv,C:Zv,L:Kv,m:Jv,X:Fv,S:kv,M:Wv};function Xv(){var t=rn.f(),e=fi();return t||e}function Vv(t){var e=Sl(t);e!==null&&e.tag===5&&e.type==="form"?Qr(e):rn.r(t)}var $l=typeof document>"u"?null:document;function Oh(t,e,n){var l=$l;if(l&&typeof e=="string"&&e){var a=Re(e);a='link[rel="'+t+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),Ah.has(a)||(Ah.add(a),t={rel:t,crossOrigin:n,href:e},l.querySelector(a)===null&&(e=l.createElement("link"),It(e,"link",t),Jt(e),l.head.appendChild(e)))}}function Qv(t){rn.D(t),Oh("dns-prefetch",t,null)}function Zv(t,e){rn.C(t,e),Oh("preconnect",t,e)}function Kv(t,e,n){rn.L(t,e,n);var l=$l;if(l&&t&&e){var a='link[rel="preload"][as="'+Re(e)+'"]';e==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+Re(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+Re(n.imageSizes)+'"]')):a+='[href="'+Re(t)+'"]';var i=a;switch(e){case"style":i=Pl(t);break;case"script":i=Il(t)}De.has(i)||(t=p({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),De.set(i,t),l.querySelector(a)!==null||e==="style"&&l.querySelector(Ka(i))||e==="script"&&l.querySelector(Ja(i))||(e=l.createElement("link"),It(e,"link",t),Jt(e),l.head.appendChild(e)))}}function Jv(t,e){rn.m(t,e);var n=$l;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",a='link[rel="modulepreload"][as="'+Re(l)+'"][href="'+Re(t)+'"]',i=a;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Il(t)}if(!De.has(i)&&(t=p({rel:"modulepreload",href:t},e),De.set(i,t),n.querySelector(a)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ja(i)))return}l=n.createElement("link"),It(l,"link",t),Jt(l),n.head.appendChild(l)}}}function kv(t,e,n){rn.S(t,e,n);var l=$l;if(l&&t){var a=_l(l).hoistableStyles,i=Pl(t);e=e||"default";var f=a.get(i);if(!f){var h={loading:0,preload:null};if(f=l.querySelector(Ka(i)))h.loading=5;else{t=p({rel:"stylesheet",href:t,"data-precedence":e},n),(n=De.get(i))&&us(t,n);var _=f=l.createElement("link");Jt(_),It(_,"link",t),_._p=new Promise(function(A,D){_.onload=A,_.onerror=D}),_.addEventListener("load",function(){h.loading|=1}),_.addEventListener("error",function(){h.loading|=2}),h.loading|=4,_i(f,e,l)}f={type:"stylesheet",instance:f,count:1,state:h},a.set(i,f)}}}function Fv(t,e){rn.X(t,e);var n=$l;if(n&&t){var l=_l(n).hoistableScripts,a=Il(t),i=l.get(a);i||(i=n.querySelector(Ja(a)),i||(t=p({src:t,async:!0},e),(e=De.get(a))&&is(t,e),i=n.createElement("script"),Jt(i),It(i,"link",t),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(a,i))}}function Wv(t,e){rn.M(t,e);var n=$l;if(n&&t){var l=_l(n).hoistableScripts,a=Il(t),i=l.get(a);i||(i=n.querySelector(Ja(a)),i||(t=p({src:t,async:!0,type:"module"},e),(e=De.get(a))&&is(t,e),i=n.createElement("script"),Jt(i),It(i,"link",t),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(a,i))}}function Ch(t,e,n,l){var a=(a=lt.current)?Si(a):null;if(!a)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Pl(n.href),n=_l(a).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=Pl(n.href);var i=_l(a).hoistableStyles,f=i.get(t);if(f||(a=a.ownerDocument||a,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(t,f),(i=a.querySelector(Ka(t)))&&!i._p&&(f.instance=i,f.state.loading=5),De.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},De.set(t,n),i||$v(a,t,n,f.state))),e&&l===null)throw Error(o(528,""));return f}if(e&&l!==null)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Il(n),n=_l(a).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function Pl(t){return'href="'+Re(t)+'"'}function Ka(t){return'link[rel="stylesheet"]['+t+"]"}function xh(t){return p({},t,{"data-precedence":t.precedence,precedence:null})}function $v(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),It(e,"link",n),Jt(e),t.head.appendChild(e))}function Il(t){return'[src="'+Re(t)+'"]'}function Ja(t){return"script[async]"+t}function Dh(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Re(n.href)+'"]');if(l)return e.instance=l,Jt(l),l;var a=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),Jt(l),It(l,"style",a),_i(l,n.precedence,t),e.instance=l;case"stylesheet":a=Pl(n.href);var i=t.querySelector(Ka(a));if(i)return e.state.loading|=4,e.instance=i,Jt(i),i;l=xh(n),(a=De.get(a))&&us(l,a),i=(t.ownerDocument||t).createElement("link"),Jt(i);var f=i;return f._p=new Promise(function(h,_){f.onload=h,f.onerror=_}),It(i,"link",l),e.state.loading|=4,_i(i,n.precedence,t),e.instance=i;case"script":return i=Il(n.src),(a=t.querySelector(Ja(i)))?(e.instance=a,Jt(a),a):(l=n,(a=De.get(i))&&(l=p({},n),is(l,a)),t=t.ownerDocument||t,a=t.createElement("script"),Jt(a),It(a,"link",l),t.head.appendChild(a),e.instance=a);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,_i(l,n.precedence,t));return e.instance}function _i(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=l.length?l[l.length-1]:null,i=a,f=0;f<l.length;f++){var h=l[f];if(h.dataset.precedence===e)i=h;else if(i!==a)break}i?i.parentNode.insertBefore(t,i.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function us(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function is(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var bi=null;function Lh(t,e,n){if(bi===null){var l=new Map,a=bi=new Map;a.set(n,l)}else a=bi,l=a.get(n),l||(l=new Map,a.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),a=0;a<n.length;a++){var i=n[a];if(!(i[sa]||i[Ft]||t==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var f=i.getAttribute(e)||"";f=t+f;var h=l.get(f);h?h.push(i):l.set(f,[i])}}return l}function Uh(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function Pv(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Nh(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Iv(t,e,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var a=Pl(l.href),i=e.querySelector(Ka(a));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Ti.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=i,Jt(i);return}i=e.ownerDocument||e,l=xh(l),(a=De.get(a))&&us(l,a),i=i.createElement("link"),Jt(i);var f=i;f._p=new Promise(function(h,_){f.onload=h,f.onerror=_}),It(i,"link",l),n.instance=i}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Ti.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var cs=0;function t0(t,e){return t.stylesheets&&t.count===0&&Ei(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&Ei(t,t.stylesheets),t.unsuspend){var i=t.unsuspend;t.unsuspend=null,i()}},6e4+e);0<t.imgBytes&&cs===0&&(cs=62500*Nv());var a=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Ei(t,t.stylesheets),t.unsuspend)){var i=t.unsuspend;t.unsuspend=null,i()}},(t.imgBytes>cs?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(a)}}:null}function Ti(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ei(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ri=null;function Ei(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ri=new Map,e.forEach(e0,t),Ri=null,Ti.call(t))}function e0(t,e){if(!(e.state.loading&4)){var n=Ri.get(t);if(n)var l=n.get(null);else{n=new Map,Ri.set(t,n);for(var a=t.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var f=a[i];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),l=f)}l&&n.set(null,l)}a=e.instance,f=a.getAttribute("data-precedence"),i=n.get(f)||l,i===l&&n.set(null,a),n.set(f,a),this.count++,l=Ti.bind(this),a.addEventListener("load",l),a.addEventListener("error",l),i?i.parentNode.insertBefore(a,i.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(a,t.firstChild)),e.state.loading|=4}}var ka={$$typeof:X,Provider:null,Consumer:null,_currentValue:tt,_currentValue2:tt,_threadCount:0};function n0(t,e,n,l,a,i,f,h,_){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ec(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ec(0),this.hiddenUpdates=ec(null),this.identifierPrefix=l,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function Bh(t,e,n,l,a,i,f,h,_,A,D,N){return t=new n0(t,e,n,f,_,A,D,N,h),e=1,i===!0&&(e|=24),i=me(3,null,null,e),t.current=i,i.stateNode=t,e=qc(),e.refCount++,t.pooledCache=e,e.refCount++,i.memoizedState={element:l,isDehydrated:n,cache:e},Vc(i),t}function Hh(t){return t?(t=xl,t):xl}function jh(t,e,n,l,a,i){a=Hh(a),l.context===null?l.context=a:l.pendingContext=a,l=En(e),l.payload={element:n},i=i===void 0?null:i,i!==null&&(l.callback=i),n=Mn(t,l,e),n!==null&&(oe(n,t,e),za(n,t,e))}function wh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function os(t,e){wh(t,e),(t=t.alternate)&&wh(t,e)}function qh(t){if(t.tag===13||t.tag===31){var e=Wn(t,67108864);e!==null&&oe(e,t,67108864),os(t,67108864)}}function Yh(t){if(t.tag===13||t.tag===31){var e=Se();e=nc(e);var n=Wn(t,e);n!==null&&oe(n,t,e),os(t,e)}}var Mi=!0;function l0(t,e,n,l){var a=x.T;x.T=null;var i=V.p;try{V.p=2,ss(t,e,n,l)}finally{V.p=i,x.T=a}}function a0(t,e,n,l){var a=x.T;x.T=null;var i=V.p;try{V.p=8,ss(t,e,n,l)}finally{V.p=i,x.T=a}}function ss(t,e,n,l){if(Mi){var a=fs(l);if(a===null)Fo(t,e,l,zi,n),Xh(t,l);else if(i0(a,t,e,n,l))l.stopPropagation();else if(Xh(t,l),e&4&&-1<u0.indexOf(t)){for(;a!==null;){var i=Sl(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var f=Zn(i.pendingLanes);if(f!==0){var h=i;for(h.pendingLanes|=2,h.entangledLanes|=2;f;){var _=1<<31-de(f);h.entanglements[1]|=_,f&=~_}Xe(i),(St&6)===0&&(oi=gt()+500,Xa(0))}}break;case 31:case 13:h=Wn(i,2),h!==null&&oe(h,i,2),fi(),os(i,2)}if(i=fs(l),i===null&&Fo(t,e,l,zi,n),i===a)break;a=i}a!==null&&l.stopPropagation()}else Fo(t,e,l,null,n)}}function fs(t){return t=rc(t),rs(t)}var zi=null;function rs(t){if(zi=null,t=gl(t),t!==null){var e=d(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=v(e),t!==null)return t;t=null}else if(n===31){if(t=g(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return zi=t,null}function Gh(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(fe()){case ua:return 2;case Fs:return 8;case yu:case Zm:return 32;case Ws:return 268435456;default:return 32}default:return 32}}var ds=!1,Hn=null,jn=null,wn=null,Fa=new Map,Wa=new Map,qn=[],u0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Xh(t,e){switch(t){case"focusin":case"focusout":Hn=null;break;case"dragenter":case"dragleave":jn=null;break;case"mouseover":case"mouseout":wn=null;break;case"pointerover":case"pointerout":Fa.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wa.delete(e.pointerId)}}function $a(t,e,n,l,a,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:i,targetContainers:[a]},e!==null&&(e=Sl(e),e!==null&&qh(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,a!==null&&e.indexOf(a)===-1&&e.push(a),t)}function i0(t,e,n,l,a){switch(e){case"focusin":return Hn=$a(Hn,t,e,n,l,a),!0;case"dragenter":return jn=$a(jn,t,e,n,l,a),!0;case"mouseover":return wn=$a(wn,t,e,n,l,a),!0;case"pointerover":var i=a.pointerId;return Fa.set(i,$a(Fa.get(i)||null,t,e,n,l,a)),!0;case"gotpointercapture":return i=a.pointerId,Wa.set(i,$a(Wa.get(i)||null,t,e,n,l,a)),!0}return!1}function Vh(t){var e=gl(t.target);if(e!==null){var n=d(e);if(n!==null){if(e=n.tag,e===13){if(e=v(n),e!==null){t.blockedOn=e,nf(t.priority,function(){Yh(n)});return}}else if(e===31){if(e=g(n),e!==null){t.blockedOn=e,nf(t.priority,function(){Yh(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ai(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=fs(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);fc=l,n.target.dispatchEvent(l),fc=null}else return e=Sl(n),e!==null&&qh(e),t.blockedOn=n,!1;e.shift()}return!0}function Qh(t,e,n){Ai(t)&&n.delete(e)}function c0(){ds=!1,Hn!==null&&Ai(Hn)&&(Hn=null),jn!==null&&Ai(jn)&&(jn=null),wn!==null&&Ai(wn)&&(wn=null),Fa.forEach(Qh),Wa.forEach(Qh)}function Oi(t,e){t.blockedOn===e&&(t.blockedOn=null,ds||(ds=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,c0)))}var Ci=null;function Zh(t){Ci!==t&&(Ci=t,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){Ci===t&&(Ci=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],a=t[e+2];if(typeof l!="function"){if(rs(l||n)===null)continue;break}var i=Sl(n);i!==null&&(t.splice(e,3),e-=3,so(i,{pending:!0,data:a,method:n.method,action:l},l,a))}}))}function ta(t){function e(_){return Oi(_,t)}Hn!==null&&Oi(Hn,t),jn!==null&&Oi(jn,t),wn!==null&&Oi(wn,t),Fa.forEach(e),Wa.forEach(e);for(var n=0;n<qn.length;n++){var l=qn[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<qn.length&&(n=qn[0],n.blockedOn===null);)Vh(n),n.blockedOn===null&&qn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var a=n[l],i=n[l+1],f=a[ne]||null;if(typeof i=="function")f||Zh(n);else if(f){var h=null;if(i&&i.hasAttribute("formAction")){if(a=i,f=i[ne]||null)h=f.formAction;else if(rs(a)!==null)continue}else h=f.action;typeof h=="function"?n[l+1]=h:(n.splice(l,3),l-=3),Zh(n)}}}function Kh(){function t(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(f){return a=f})},focusReset:"manual",scroll:"manual"})}function e(){a!==null&&(a(),a=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,a=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),a!==null&&(a(),a=null)}}}function hs(t){this._internalRoot=t}xi.prototype.render=hs.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,l=Se();jh(n,l,t,e,null,null)},xi.prototype.unmount=hs.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;jh(t.current,2,null,t,null,null),fi(),e[pl]=null}};function xi(t){this._internalRoot=t}xi.prototype.unstable_scheduleHydration=function(t){if(t){var e=ef();t={blockedOn:null,target:t,priority:e};for(var n=0;n<qn.length&&e!==0&&e<qn[n].priority;n++);qn.splice(n,0,t),n===0&&Vh(t)}};var Jh=s.version;if(Jh!=="19.2.1")throw Error(o(527,Jh,"19.2.1"));V.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=m(e),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var o0={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:x,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Di=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Di.isDisabled&&Di.supportsFiber)try{ia=Di.inject(o0),re=Di}catch{}}return Ia.createRoot=function(t,e){if(!r(t))throw Error(o(299));var n=!1,l="",a=td,i=ed,f=nd;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(a=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=Bh(t,1,!1,null,null,n,l,null,a,i,f,Kh),t[pl]=e.current,ko(t),new hs(e)},Ia.hydrateRoot=function(t,e,n){if(!r(t))throw Error(o(299));var l=!1,a="",i=td,f=ed,h=nd,_=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(i=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(h=n.onRecoverableError),n.formState!==void 0&&(_=n.formState)),e=Bh(t,1,!0,e,n??null,l,a,_,i,f,h,Kh),e.context=Hh(null),n=e.current,l=Se(),l=nc(l),a=En(l),a.callback=null,Mn(n,a,l),n=l,e.current.lanes=n,oa(e,n),Xe(e),t[pl]=e.current,ko(t),new xi(e)},Ia.version="19.2.1",Ia}var lm;function p0(){if(lm)return ys.exports;lm=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(s){console.error(s)}}return u(),ys.exports=v0(),ys.exports}var g0=p0();const S0=Em(g0),Ns=new WeakMap,_0=new WeakMap,Yi={current:[]};let _s=!1,au=0;const lu=new Set,Li=new Map;function zm(u){for(const s of u){if(Yi.current.includes(s))continue;Yi.current.push(s),s.recompute();const c=_0.get(s);if(c)for(const o of c){const r=Ns.get(o);r?.length&&zm(r)}}}function b0(u){const s={prevVal:u.prevState,currentVal:u.state};for(const c of u.listeners)c(s)}function T0(u){const s={prevVal:u.prevState,currentVal:u.state};for(const c of u.listeners)c(s)}function Am(u){if(au>0&&!Li.has(u)&&Li.set(u,u.prevState),lu.add(u),!(au>0)&&!_s)try{for(_s=!0;lu.size>0;){const s=Array.from(lu);lu.clear();for(const c of s){const o=Li.get(c)??c.prevState;c.prevState=o,b0(c)}for(const c of s){const o=Ns.get(c);o&&(Yi.current.push(c),zm(o))}for(const c of s){const o=Ns.get(c);if(o)for(const r of o)T0(r)}}}finally{_s=!1,Yi.current=[],Li.clear()}}function uu(u){au++;try{u()}finally{if(au--,au===0){const s=lu.values().next().value;s&&Am(s)}}}function R0(u){return typeof u=="function"}class E0{constructor(s,c){this.listeners=new Set,this.subscribe=o=>{var r,d;this.listeners.add(o);const v=(d=(r=this.options)==null?void 0:r.onSubscribe)==null?void 0:d.call(r,o,this);return()=>{this.listeners.delete(o),v?.()}},this.prevState=s,this.state=s,this.options=c}setState(s){var c,o,r;this.prevState=this.state,(c=this.options)!=null&&c.updateFn?this.state=this.options.updateFn(this.prevState)(s):R0(s)?this.state=s(this.prevState):this.state=s,(r=(o=this.options)==null?void 0:o.onUpdate)==null||r.call(o),Am(this)}}const Vn="__TSR_index",am="popstate",um="beforeunload";function M0(u){let s=u.getLocation();const c=new Set,o=v=>{s=u.getLocation(),c.forEach(g=>g({location:s,action:v}))},r=v=>{u.notifyOnIndexChange??!0?o(v):s=u.getLocation()},d=async({task:v,navigateOpts:g,...y})=>{if(g?.ignoreBlocker??!1){v();return}const b=u.getBlockers?.()??[],p=y.type==="PUSH"||y.type==="REPLACE";if(typeof document<"u"&&b.length&&p)for(const S of b){const M=Gi(y.path,y.state);if(await S.blockerFn({currentLocation:s,nextLocation:M,action:y.type})){u.onBlocked?.();return}}v()};return{get location(){return s},get length(){return u.getLength()},subscribers:c,subscribe:v=>(c.add(v),()=>{c.delete(v)}),push:(v,g,y)=>{const m=s.state[Vn];g=im(m+1,g),d({task:()=>{u.pushState(v,g),o({type:"PUSH"})},navigateOpts:y,type:"PUSH",path:v,state:g})},replace:(v,g,y)=>{const m=s.state[Vn];g=im(m,g),d({task:()=>{u.replaceState(v,g),o({type:"REPLACE"})},navigateOpts:y,type:"REPLACE",path:v,state:g})},go:(v,g)=>{d({task:()=>{u.go(v),r({type:"GO",index:v})},navigateOpts:g,type:"GO"})},back:v=>{d({task:()=>{u.back(v?.ignoreBlocker??!1),r({type:"BACK"})},navigateOpts:v,type:"BACK"})},forward:v=>{d({task:()=>{u.forward(v?.ignoreBlocker??!1),r({type:"FORWARD"})},navigateOpts:v,type:"FORWARD"})},canGoBack:()=>s.state[Vn]!==0,createHref:v=>u.createHref(v),block:v=>{if(!u.setBlockers)return()=>{};const g=u.getBlockers?.()??[];return u.setBlockers([...g,v]),()=>{const y=u.getBlockers?.()??[];u.setBlockers?.(y.filter(m=>m!==v))}},flush:()=>u.flush?.(),destroy:()=>u.destroy?.(),notify:o}}function im(u,s){s||(s={});const c=js();return{...s,key:c,__TSR_key:c,[Vn]:u}}function z0(u){const s=typeof document<"u"?window:void 0,c=s.history.pushState,o=s.history.replaceState;let r=[];const d=()=>r,v=G=>r=G,g=(G=>G),y=(()=>Gi(`${s.location.pathname}${s.location.search}${s.location.hash}`,s.history.state));if(!s.history.state?.__TSR_key&&!s.history.state?.key){const G=js();s.history.replaceState({[Vn]:0,key:G,__TSR_key:G},"")}let m=y(),b,p=!1,S=!1,M=!1,L=!1;const H=()=>m;let j,q;const Z=()=>{j&&(w._ignoreSubscribers=!0,(j.isPush?s.history.pushState:s.history.replaceState)(j.state,"",j.href),w._ignoreSubscribers=!1,j=void 0,q=void 0,b=void 0)},X=(G,$,st)=>{const ct=g($);q||(b=m),m=Gi($,st),j={href:ct,state:st,isPush:j?.isPush||G==="push"},q||(q=Promise.resolve().then(()=>Z()))},F=G=>{m=y(),w.notify({type:G})},nt=async()=>{if(S){S=!1;return}const G=y(),$=G.state[Vn]-m.state[Vn],st=$===1,ct=$===-1,Rt=!st&&!ct||p;p=!1;const jt=Rt?"GO":ct?"BACK":"FORWARD",wt=Rt?{type:"GO",index:$}:{type:ct?"BACK":"FORWARD"};if(M)M=!1;else{const Nt=d();if(typeof document<"u"&&Nt.length){for(const x of Nt)if(await x.blockerFn({currentLocation:m,nextLocation:G,action:jt})){S=!0,s.history.go(1),w.notify(wt);return}}}m=y(),w.notify(wt)},Y=G=>{if(L){L=!1;return}let $=!1;const st=d();if(typeof document<"u"&&st.length)for(const ct of st){const Rt=ct.enableBeforeUnload??!0;if(Rt===!0){$=!0;break}if(typeof Rt=="function"&&Rt()===!0){$=!0;break}}if($)return G.preventDefault(),G.returnValue=""},w=M0({getLocation:H,getLength:()=>s.history.length,pushState:(G,$)=>X("push",G,$),replaceState:(G,$)=>X("replace",G,$),back:G=>(G&&(M=!0),L=!0,s.history.back()),forward:G=>{G&&(M=!0),L=!0,s.history.forward()},go:G=>{p=!0,s.history.go(G)},createHref:G=>g(G),flush:Z,destroy:()=>{s.history.pushState=c,s.history.replaceState=o,s.removeEventListener(um,Y,{capture:!0}),s.removeEventListener(am,nt)},onBlocked:()=>{b&&m!==b&&(m=b)},getBlockers:d,setBlockers:v,notifyOnIndexChange:!1});return s.addEventListener(um,Y,{capture:!0}),s.addEventListener(am,nt),s.history.pushState=function(...G){const $=c.apply(s.history,G);return w._ignoreSubscribers||F("PUSH"),$},s.history.replaceState=function(...G){const $=o.apply(s.history,G);return w._ignoreSubscribers||F("REPLACE"),$},w}function Gi(u,s){const c=u.indexOf("#"),o=u.indexOf("?"),r=js();return{href:u,pathname:u.substring(0,c>0?o>0?Math.min(c,o):c:o>0?o:u.length),hash:c>-1?u.substring(c):"",search:o>-1?u.slice(o,c===-1?void 0:c):"",state:s||{[Vn]:0,key:r,__TSR_key:r}}}function js(){return(Math.random()+1).toString(36).substring(7)}function Xi(u){return u[u.length-1]}function A0(u){return typeof u=="function"}function Gn(u,s){return A0(u)?u(s):u}const O0=Object.prototype.hasOwnProperty;function Le(u,s){if(u===s)return u;const c=s,o=sm(u)&&sm(c);if(!o&&!(Vi(u)&&Vi(c)))return c;const r=o?u:cm(u);if(!r)return c;const d=o?c:cm(c);if(!d)return c;const v=r.length,g=d.length,y=o?new Array(g):{};let m=0;for(let b=0;b<g;b++){const p=o?b:d[b],S=u[p],M=c[p];if(S===M){y[p]=S,(o?b<v:O0.call(u,p))&&m++;continue}if(S===null||M===null||typeof S!="object"||typeof M!="object"){y[p]=M;continue}const L=Le(S,M);y[p]=L,L===S&&m++}return v===g&&m===v?u:y}function cm(u){const s=[],c=Object.getOwnPropertyNames(u);for(const r of c){if(!Object.prototype.propertyIsEnumerable.call(u,r))return!1;s.push(r)}const o=Object.getOwnPropertySymbols(u);for(const r of o){if(!Object.prototype.propertyIsEnumerable.call(u,r))return!1;s.push(r)}return s}function Vi(u){if(!om(u))return!1;const s=u.constructor;if(typeof s>"u")return!0;const c=s.prototype;return!(!om(c)||!c.hasOwnProperty("isPrototypeOf"))}function om(u){return Object.prototype.toString.call(u)==="[object Object]"}function sm(u){return Array.isArray(u)&&u.length===Object.keys(u).length}function fl(u,s,c){if(u===s)return!0;if(typeof u!=typeof s)return!1;if(Array.isArray(u)&&Array.isArray(s)){if(u.length!==s.length)return!1;for(let o=0,r=u.length;o<r;o++)if(!fl(u[o],s[o],c))return!1;return!0}if(Vi(u)&&Vi(s)){const o=c?.ignoreUndefined??!0;if(c?.partial){for(const v in s)if((!o||s[v]!==void 0)&&!fl(u[v],s[v],c))return!1;return!0}let r=0;if(!o)r=Object.keys(u).length;else for(const v in u)u[v]!==void 0&&r++;let d=0;for(const v in s)if((!o||s[v]!==void 0)&&(d++,d>r||!fl(u[v],s[v],c)))return!1;return r===d}return!1}function na(u){let s,c;const o=new Promise((r,d)=>{s=r,c=d});return o.status="pending",o.resolve=r=>{o.status="resolved",o.value=r,s(r),u?.(r)},o.reject=r=>{o.status="rejected",c(r)},o}function C0(u){return typeof u?.message!="string"?!1:u.message.startsWith("Failed to fetch dynamically imported module")||u.message.startsWith("error loading dynamically imported module")||u.message.startsWith("Importing a module script failed")}function Qn(u){return!!(u&&typeof u=="object"&&typeof u.then=="function")}function fm(u){try{return decodeURI(u)}catch{return u.replaceAll(/%[0-9A-F]{2}/gi,s=>{try{return decodeURI(s)}catch{return s}})}}function rm(u,s){if(!u)return u;const c=/%25|%5C/gi;let o=0,r="",d;for(;(d=c.exec(u))!==null;)r+=fm(u.slice(o,d.index))+d[0],o=c.lastIndex;return r+fm(o?u.slice(o):u)}var x0="Invariant failed";function dn(u,s){if(!u)throw new Error(x0)}function Qi(u){const s=new Map;let c,o;const r=d=>{d.next&&(d.prev?(d.prev.next=d.next,d.next.prev=d.prev,d.next=void 0,o&&(o.next=d,d.prev=o)):(d.next.prev=void 0,c=d.next,d.next=void 0,o&&(d.prev=o,o.next=d)),o=d)};return{get(d){const v=s.get(d);if(v)return r(v),v.value},set(d,v){if(s.size>=u&&c){const y=c;s.delete(y.key),y.next&&(c=y.next,y.next.prev=void 0),y===o&&(o=void 0)}const g=s.get(d);if(g)g.value=v,r(g);else{const y={key:d,value:v,prev:o};o&&(o.next=y),o=y,c||(c=y),s.set(d,y)}},clear(){s.clear(),c=void 0,o=void 0}}}const la=0,hl=1,ml=2,cu=3,D0=/^([^{]*)\{\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,L0=/^([^{]*)\{-\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,U0=/^([^{]*)\{\$\}([^}]*)$/;function ws(u,s,c=new Uint16Array(6)){const o=u.indexOf("/",s),r=o===-1?u.length:o,d=u.substring(s,r);if(!d||!d.includes("$"))return c[0]=la,c[1]=s,c[2]=s,c[3]=r,c[4]=r,c[5]=r,c;if(d==="$"){const m=u.length;return c[0]=ml,c[1]=s,c[2]=s,c[3]=m,c[4]=m,c[5]=m,c}if(d.charCodeAt(0)===36)return c[0]=hl,c[1]=s,c[2]=s+1,c[3]=r,c[4]=r,c[5]=r,c;const v=d.match(U0);if(v){const b=v[1].length;return c[0]=ml,c[1]=s+b,c[2]=s+b+1,c[3]=s+b+2,c[4]=s+b+3,c[5]=u.length,c}const g=d.match(L0);if(g){const m=g[1],b=g[2],p=g[3],S=m.length;return c[0]=cu,c[1]=s+S,c[2]=s+S+3,c[3]=s+S+3+b.length,c[4]=r-p.length,c[5]=r,c}const y=d.match(D0);if(y){const m=y[1],b=y[2],p=y[3],S=m.length;return c[0]=hl,c[1]=s+S,c[2]=s+S+2,c[3]=s+S+2+b.length,c[4]=r-p.length,c[5]=r,c}return c[0]=la,c[1]=s,c[2]=s,c[3]=r,c[4]=r,c[5]=r,c}function Fi(u,s,c,o,r,d,v){v?.(c);let g=o;{const y=c.fullPath??c.from,m=y.length,b=c.options?.caseSensitive??u;for(;g<m;){const p=ws(y,g,s);let S;const M=g,L=p[5];switch(g=L+1,d++,p[0]){case la:{const j=y.substring(p[2],p[3]);if(b){const q=r.static?.get(j);if(q)S=q;else{r.static??=new Map;const Z=ou(c.fullPath??c.from);Z.parent=r,Z.depth=d,S=Z,r.static.set(j,Z)}}else{const q=j.toLowerCase(),Z=r.staticInsensitive?.get(q);if(Z)S=Z;else{r.staticInsensitive??=new Map;const X=ou(c.fullPath??c.from);X.parent=r,X.depth=d,S=X,r.staticInsensitive.set(q,X)}}break}case hl:{const j=y.substring(M,p[1]),q=y.substring(p[4],L),Z=b&&!!(j||q),X=j?Z?j:j.toLowerCase():void 0,F=q?Z?q:q.toLowerCase():void 0,nt=r.dynamic?.find(Y=>Y.caseSensitive===Z&&Y.prefix===X&&Y.suffix===F);if(nt)S=nt;else{const Y=Ts(hl,c.fullPath??c.from,Z,X,F);S=Y,Y.depth=d,Y.parent=r,r.dynamic??=[],r.dynamic.push(Y)}break}case cu:{const j=y.substring(M,p[1]),q=y.substring(p[4],L),Z=b&&!!(j||q),X=j?Z?j:j.toLowerCase():void 0,F=q?Z?q:q.toLowerCase():void 0,nt=r.optional?.find(Y=>Y.caseSensitive===Z&&Y.prefix===X&&Y.suffix===F);if(nt)S=nt;else{const Y=Ts(cu,c.fullPath??c.from,Z,X,F);S=Y,Y.parent=r,Y.depth=d,r.optional??=[],r.optional.push(Y)}break}case ml:{const j=y.substring(M,p[1]),q=y.substring(p[4],L),Z=b&&!!(j||q),X=j?Z?j:j.toLowerCase():void 0,F=q?Z?q:q.toLowerCase():void 0,nt=Ts(ml,c.fullPath??c.from,Z,X,F);S=nt,nt.parent=r,nt.depth=d,r.wildcard??=[],r.wildcard.push(nt)}}r=S}if((c.path||!c.children)&&!c.isRoot){const p=y.endsWith("/");p||(r.notFound=c),(!r.route||!r.isIndex&&p)&&(r.route=c,r.fullPath=c.fullPath??c.from),r.isIndex||=p}}if(c.children)for(const y of c.children)Fi(u,s,y,g,r,d,v)}function bs(u,s){if(u.prefix&&s.prefix&&u.prefix!==s.prefix){if(u.prefix.startsWith(s.prefix))return-1;if(s.prefix.startsWith(u.prefix))return 1}if(u.suffix&&s.suffix&&u.suffix!==s.suffix){if(u.suffix.endsWith(s.suffix))return-1;if(s.suffix.endsWith(u.suffix))return 1}return u.prefix&&!s.prefix?-1:!u.prefix&&s.prefix?1:u.suffix&&!s.suffix?-1:!u.suffix&&s.suffix?1:u.caseSensitive&&!s.caseSensitive?-1:!u.caseSensitive&&s.caseSensitive?1:0}function sl(u){if(u.static)for(const s of u.static.values())sl(s);if(u.staticInsensitive)for(const s of u.staticInsensitive.values())sl(s);if(u.dynamic?.length){u.dynamic.sort(bs);for(const s of u.dynamic)sl(s)}if(u.optional?.length){u.optional.sort(bs);for(const s of u.optional)sl(s)}if(u.wildcard?.length){u.wildcard.sort(bs);for(const s of u.wildcard)sl(s)}}function ou(u){return{kind:la,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:u,parent:null,isIndex:!1,notFound:null}}function Ts(u,s,c,o,r){return{kind:u,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:s,parent:null,isIndex:!1,notFound:null,caseSensitive:c,prefix:o,suffix:r}}function N0(u,s){const c=ou("/"),o=new Uint16Array(6);for(const r of u)Fi(!1,o,r,1,c,0);sl(c),s.masksTree=c,s.flatCache=Qi(1e3)}function B0(u,s){u||="/";const c=s.flatCache.get(u);if(c)return c;const o=qs(u,s.masksTree);return s.flatCache.set(u,o),o}function H0(u,s,c,o,r){u||="/",o||="/";const d=s?`case\0${u}`:u;let v=r.singleCache.get(d);if(!v){v=ou("/");const g=new Uint16Array(6);Fi(s,g,{from:u},1,v,0),r.singleCache.set(d,v)}return qs(o,v,c)}function j0(u,s,c=!1){const o=c?u:`nofuzz\0${u}`,r=s.matchCache.get(o);if(r!==void 0)return r;u||="/";const d=qs(u,s.segmentTree,c);return d&&(d.branch=G0(d.route)),s.matchCache.set(o,d),d}function w0(u){return u==="/"?u:u.replace(/\/{1,}$/,"")}function q0(u,s=!1,c){const o=ou(u.fullPath),r=new Uint16Array(6),d={},v={};let g=0;return Fi(s,r,u,1,o,0,m=>{if(c?.(m,g),dn(!(m.id in d),`Duplicate routes found with id: ${String(m.id)}`),d[m.id]=m,g!==0&&m.path){const b=w0(m.fullPath);(!v[b]||m.fullPath.endsWith("/"))&&(v[b]=m)}g++}),sl(o),{processedTree:{segmentTree:o,singleCache:Qi(1e3),matchCache:Qi(1e3),flatCache:null,masksTree:null},routesById:d,routesByPath:v}}function qs(u,s,c=!1){const o=u.split("/"),r=V0(u,o,s,c);if(!r)return null;const d=Y0(u,o,r),v="**"in r;return v&&(d["**"]=r["**"]),{route:v?r.node.notFound??r.node.route:r.node.route,params:d}}function Y0(u,s,c){const o=X0(c.node);let r=null;const d={};for(let v=0,g=0,y=0;g<o.length;v++,g++,y++){const m=o[g],b=s[v],p=y;if(b&&(y+=b.length),m.kind===hl){r??=c.node.fullPath.split("/");const S=r[g],M=m.prefix?.length??0;if(S.charCodeAt(M)===123){const H=m.suffix?.length??0,j=S.substring(M+2,S.length-H-1),q=b.substring(M,b.length-H);d[j]=decodeURIComponent(q)}else{const H=S.substring(1);d[H]=decodeURIComponent(b)}}else if(m.kind===cu){if(c.skipped&1<<g){v--;continue}r??=c.node.fullPath.split("/");const S=r[g],M=m.prefix?.length??0,L=m.suffix?.length??0,H=S.substring(M+3,S.length-L-1),j=m.suffix||m.prefix?b.substring(M,b.length-L):b;j&&(d[H]=decodeURIComponent(j))}else if(m.kind===ml){const S=m,M=u.substring(p+(S.prefix?.length??0),u.length-(S.suffix?.length??0)),L=decodeURIComponent(M);d["*"]=L,d._splat=L;break}}return d}function G0(u){const s=[u];for(;u.parentRoute;)u=u.parentRoute,s.push(u);return s.reverse(),s}function X0(u){const s=Array(u.depth+1);do s[u.depth]=u,u=u.parent;while(u);return s}function V0(u,s,c,o){const r=!Xi(s),d=r&&u!=="/",v=s.length-(r?1:0),g=[{node:c,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let y=null,m=null,b=null;for(;g.length;){const p=g.pop();let{node:S,index:M,skipped:L,depth:H,statics:j,dynamics:q,optionals:Z}=p;o&&S.notFound&&Ui(m,p)&&(m=p);const X=M===v;if(X){if(S.route&&(!d||S.isIndex)&&(Ui(b,p)&&(b=p),j===v&&S.isIndex))return b;if(!S.optional&&!S.wildcard)continue}const F=X?void 0:s[M];let nt;if(S.wildcard&&Ui(y,p))for(const Y of S.wildcard){const{prefix:w,suffix:G}=Y;if(!(w&&(X||!(Y.caseSensitive?F:nt??=F.toLowerCase()).startsWith(w)))){if(G){if(X)continue;const $=s.slice(M).join("/").slice(-G.length);if((Y.caseSensitive?$:$.toLowerCase())!==G)continue}y={node:Y,index:M,skipped:L,depth:H,statics:j,dynamics:q,optionals:Z};break}}if(S.optional){const Y=L|1<<H,w=H+1;for(let G=S.optional.length-1;G>=0;G--){const $=S.optional[G];g.push({node:$,index:M,skipped:Y,depth:w,statics:j,dynamics:q,optionals:Z})}if(!X)for(let G=S.optional.length-1;G>=0;G--){const $=S.optional[G],{prefix:st,suffix:ct}=$;if(st||ct){const Rt=$.caseSensitive?F:nt??=F.toLowerCase();if(st&&!Rt.startsWith(st)||ct&&!Rt.endsWith(ct))continue}g.push({node:$,index:M+1,skipped:L,depth:w,statics:j,dynamics:q,optionals:Z+1})}}if(!X&&S.dynamic&&F)for(let Y=S.dynamic.length-1;Y>=0;Y--){const w=S.dynamic[Y],{prefix:G,suffix:$}=w;if(G||$){const st=w.caseSensitive?F:nt??=F.toLowerCase();if(G&&!st.startsWith(G)||$&&!st.endsWith($))continue}g.push({node:w,index:M+1,skipped:L,depth:H+1,statics:j,dynamics:q+1,optionals:Z})}if(!X&&S.staticInsensitive){const Y=S.staticInsensitive.get(nt??=F.toLowerCase());Y&&g.push({node:Y,index:M+1,skipped:L,depth:H+1,statics:j+1,dynamics:q,optionals:Z})}if(!X&&S.static){const Y=S.static.get(F);Y&&g.push({node:Y,index:M+1,skipped:L,depth:H+1,statics:j+1,dynamics:q,optionals:Z})}}if(b&&y)return Ui(y,b)?b:y;if(b)return b;if(y)return y;if(o&&m){let p=m.index;for(let M=0;M<m.index;M++)p+=s[M].length;const S=p===u.length?"/":u.slice(p);return{node:m.node,skipped:m.skipped,"**":decodeURIComponent(S)}}return null}function Ui(u,s){return u?s.statics>u.statics||s.statics===u.statics&&(s.dynamics>u.dynamics||s.dynamics===u.dynamics&&(s.optionals>u.optionals||s.optionals===u.optionals&&(s.node.isIndex>u.node.isIndex||s.node.isIndex===u.node.isIndex&&s.depth>u.depth))):!0}function ji(u){return Ys(u.filter(s=>s!==void 0).join("/"))}function Ys(u){return u.replace(/\/{2,}/g,"/")}function Om(u){return u==="/"?u:u.replace(/^\/{1,}/,"")}function rl(u){const s=u.length;return s>1&&u[s-1]==="/"?u.replace(/\/{1,}$/,""):u}function wi(u){return rl(Om(u))}function Zi(u,s){return u?.endsWith("/")&&u!=="/"&&u!==`${s}/`?u.slice(0,-1):u}function Q0(u,s,c){return Zi(u,c)===Zi(s,c)}function Z0({base:u,to:s,trailingSlash:c="never",cache:o}){const r=s.startsWith("/"),d=!r&&s===".";let v;if(o){v=r?s:d?u:u+"\0"+s;const p=o.get(v);if(p)return p}let g;if(d)g=u.split("/");else if(r)g=s.split("/");else{for(g=u.split("/");g.length>1&&Xi(g)==="";)g.pop();const p=s.split("/");for(let S=0,M=p.length;S<M;S++){const L=p[S];L===""?S?S===M-1&&g.push(L):g=[L]:L===".."?g.pop():L==="."||g.push(L)}}g.length>1&&(Xi(g)===""?c==="never"&&g.pop():c==="always"&&g.push(""));let y,m="";for(let p=0;p<g.length;p++){p>0&&(m+="/");const S=g[p];if(!S)continue;y=ws(S,0,y);const M=y[0];if(M===la){m+=S;continue}const L=y[5],H=S.substring(0,y[1]),j=S.substring(y[4],L),q=S.substring(y[2],y[3]);M===hl?m+=H||j?`${H}{$${q}}${j}`:`$${q}`:M===ml?m+=H||j?`${H}{$}${j}`:"$":m+=`${H}{-$${q}}${j}`}m=Ys(m);const b=m||"/";return v&&o&&o.set(v,b),b}function Rs(u,s,c){const o=s[u];return typeof o!="string"?o:u==="_splat"?encodeURI(o):K0(o,c)}function Es({path:u,params:s,decodeCharMap:c}){let o=!1;const r={};if(!u||u==="/")return{interpolatedPath:"/",usedParams:r,isMissingParams:o};if(!u.includes("$"))return{interpolatedPath:u,usedParams:r,isMissingParams:o};const d=u.length;let v=0,g,y="";for(;v<d;){const b=v;g=ws(u,b,g);const p=g[5];if(v=p+1,b===p)continue;const S=g[0];if(S===la){y+="/"+u.substring(b,p);continue}if(S===ml){const M=s._splat;r._splat=M,r["*"]=M;const L=u.substring(b,g[1]),H=u.substring(g[4],p);if(!M){o=!0,(L||H)&&(y+="/"+L+H);continue}const j=Rs("_splat",s,c);y+="/"+L+j+H;continue}if(S===hl){const M=u.substring(g[2],g[3]);!o&&!(M in s)&&(o=!0),r[M]=s[M];const L=u.substring(b,g[1]),H=u.substring(g[4],p),j=Rs(M,s,c)??"undefined";y+="/"+L+j+H;continue}if(S===cu){const M=u.substring(g[2],g[3]),L=s[M];if(L==null)continue;r[M]=L;const H=u.substring(b,g[1]),j=u.substring(g[4],p),q=Rs(M,s,c)??"";y+="/"+H+q+j;continue}}return u.endsWith("/")&&(y+="/"),{usedParams:r,interpolatedPath:y||"/",isMissingParams:o}}function K0(u,s){let c=encodeURIComponent(u);if(s)for(const[o,r]of s)c=c.replaceAll(o,r);return c}function Ue(u){return!!u?.isNotFound}function J0(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const Ki="tsr-scroll-restoration-v1_3",k0=(u,s)=>{let c;return(...o)=>{c||(c=setTimeout(()=>{u(...o),c=null},s))}};function F0(){const u=J0();if(!u)return null;const s=u.getItem(Ki);let c=s?JSON.parse(s):{};return{state:c,set:o=>(c=Gn(o,c)||c,u.setItem(Ki,JSON.stringify(c)))}}const Ni=F0(),Bs=u=>u.state.__TSR_key||u.href;function W0(u){const s=[];let c;for(;c=u.parentNode;)s.push(`${u.tagName}:nth-child(${Array.prototype.indexOf.call(c.children,u)+1})`),u=c;return`${s.reverse().join(" > ")}`.toLowerCase()}let Ji=!1;function Cm({storageKey:u,key:s,behavior:c,shouldScrollRestoration:o,scrollToTopSelectors:r,location:d}){let v;try{v=JSON.parse(sessionStorage.getItem(u)||"{}")}catch(m){console.error(m);return}const g=s||window.history.state?.__TSR_key,y=v[g];Ji=!0;t:{if(o&&y&&Object.keys(y).length>0){for(const p in y){const S=y[p];if(p==="window")window.scrollTo({top:S.scrollY,left:S.scrollX,behavior:c});else if(p){const M=document.querySelector(p);M&&(M.scrollLeft=S.scrollX,M.scrollTop=S.scrollY)}}break t}const m=(d??window.location).hash.split("#",2)[1];if(m){const p=window.history.state?.__hashScrollIntoViewOptions??!0;if(p){const S=document.getElementById(m);S&&S.scrollIntoView(p)}break t}const b={top:0,left:0,behavior:c};if(window.scrollTo(b),r)for(const p of r){if(p==="window")continue;const S=typeof p=="function"?p():document.querySelector(p);S&&S.scrollTo(b)}}Ji=!1}function $0(u,s){if(!Ni&&!u.isServer||((u.options.scrollRestoration??!1)&&(u.isScrollRestoring=!0),u.isServer||u.isScrollRestorationSetup||!Ni))return;u.isScrollRestorationSetup=!0,Ji=!1;const o=u.options.getScrollRestorationKey||Bs;window.history.scrollRestoration="manual";const r=d=>{if(Ji||!u.isScrollRestoring)return;let v="";if(d.target===document||d.target===window)v="window";else{const y=d.target.getAttribute("data-scroll-restoration-id");y?v=`[data-scroll-restoration-id="${y}"]`:v=W0(d.target)}const g=o(u.state.location);Ni.set(y=>{const m=y[g]||={},b=m[v]||={};if(v==="window")b.scrollX=window.scrollX||0,b.scrollY=window.scrollY||0;else if(v){const p=document.querySelector(v);p&&(b.scrollX=p.scrollLeft||0,b.scrollY=p.scrollTop||0)}return y})};typeof document<"u"&&document.addEventListener("scroll",k0(r,100),!0),u.subscribe("onRendered",d=>{const v=o(d.toLocation);if(!u.resetNextScroll){u.resetNextScroll=!0;return}typeof u.options.scrollRestoration=="function"&&!u.options.scrollRestoration({location:u.latestLocation})||(Cm({storageKey:Ki,key:v,behavior:u.options.scrollRestorationBehavior,shouldScrollRestoration:u.isScrollRestoring,scrollToTopSelectors:u.options.scrollToTopSelectors,location:u.history.location}),u.isScrollRestoring&&Ni.set(g=>(g[v]||={},g)))})}function P0(u){if(typeof document<"u"&&document.querySelector){const s=u.state.location.state.__hashScrollIntoViewOptions??!0;if(s&&u.state.location.hash!==""){const c=document.getElementById(u.state.location.hash);c&&c.scrollIntoView(s)}}}function I0(u,s=String){const c=new URLSearchParams;for(const o in u){const r=u[o];r!==void 0&&c.set(o,s(r))}return c.toString()}function Ms(u){return u?u==="false"?!1:u==="true"?!0:+u*0===0&&+u+""===u?+u:u:""}function tp(u){const s=new URLSearchParams(u),c={};for(const[o,r]of s.entries()){const d=c[o];d==null?c[o]=Ms(r):Array.isArray(d)?d.push(Ms(r)):c[o]=[d,Ms(r)]}return c}const ep=lp(JSON.parse),np=ap(JSON.stringify,JSON.parse);function lp(u){return s=>{s[0]==="?"&&(s=s.substring(1));const c=tp(s);for(const o in c){const r=c[o];if(typeof r=="string")try{c[o]=u(r)}catch{}}return c}}function ap(u,s){const c=typeof s=="function";function o(r){if(typeof r=="object"&&r!==null)try{return u(r)}catch{}else if(c&&typeof r=="string")try{return s(r),u(r)}catch{}return r}return r=>{const d=I0(r,o);return d?`?${d}`:""}}const _e="__root__";function up(u){if(u.statusCode=u.statusCode||u.code||307,!u.reloadDocument&&typeof u.href=="string")try{new URL(u.href),u.reloadDocument=!0}catch{}const s=new Headers(u.headers);u.href&&s.get("Location")===null&&s.set("Location",u.href);const c=new Response(null,{status:u.statusCode,headers:s});if(c.options=u,u.throw)throw c;return c}function we(u){return u instanceof Response&&!!u.options}const qi=u=>{if(!u.rendered)return u.rendered=!0,u.onReady?.()},Wi=(u,s)=>!!(u.preload&&!u.router.state.matches.some(c=>c.id===s)),xm=(u,s)=>{const c=u.router.routesById[s.routeId??""]??u.router.routeTree;!c.options.notFoundComponent&&u.router.options?.defaultNotFoundComponent&&(c.options.notFoundComponent=u.router.options.defaultNotFoundComponent),dn(c.options.notFoundComponent);const o=u.matches.find(r=>r.routeId===c.id);dn(o,"Could not find match for route: "+c.id),u.updateMatch(o.id,r=>({...r,status:"notFound",error:s,isFetching:!1})),s.routerCode==="BEFORE_LOAD"&&c.parentRoute&&(s.routeId=c.parentRoute.id,xm(u,s))},Xn=(u,s,c)=>{if(!(!we(c)&&!Ue(c))){if(we(c)&&c.redirectHandled&&!c.options.reloadDocument)throw c;if(s){s._nonReactive.beforeLoadPromise?.resolve(),s._nonReactive.loaderPromise?.resolve(),s._nonReactive.beforeLoadPromise=void 0,s._nonReactive.loaderPromise=void 0;const o=we(c)?"redirected":"notFound";s._nonReactive.error=c,u.updateMatch(s.id,r=>({...r,status:o,isFetching:!1,error:c})),Ue(c)&&!c.routeId&&(c.routeId=s.routeId),s._nonReactive.loadPromise?.resolve()}throw we(c)?(u.rendered=!0,c.options._fromLocation=u.location,c.redirectHandled=!0,c=u.router.resolveRedirect(c),c):(xm(u,c),c)}},Dm=(u,s)=>{const c=u.router.getMatch(s);return!!(!u.router.isServer&&c._nonReactive.dehydrated||u.router.isServer&&c.ssr===!1)},tu=(u,s,c,o)=>{const{id:r,routeId:d}=u.matches[s],v=u.router.looseRoutesById[d];if(c instanceof Promise)throw c;c.routerCode=o,u.firstBadMatchIndex??=s,Xn(u,u.router.getMatch(r),c);try{v.options.onError?.(c)}catch(g){c=g,Xn(u,u.router.getMatch(r),c)}u.updateMatch(r,g=>(g._nonReactive.beforeLoadPromise?.resolve(),g._nonReactive.beforeLoadPromise=void 0,g._nonReactive.loadPromise?.resolve(),{...g,error:c,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},ip=(u,s,c,o)=>{const r=u.router.getMatch(s),d=u.matches[c-1]?.id,v=d?u.router.getMatch(d):void 0;if(u.router.isShell()){r.ssr=o.id===_e;return}if(v?.ssr===!1){r.ssr=!1;return}const g=M=>M===!0&&v?.ssr==="data-only"?"data-only":M,y=u.router.options.defaultSsr??!0;if(o.options.ssr===void 0){r.ssr=g(y);return}if(typeof o.options.ssr!="function"){r.ssr=g(o.options.ssr);return}const{search:m,params:b}=r,p={search:Bi(m,r.searchError),params:Bi(b,r.paramsError),location:u.location,matches:u.matches.map(M=>({index:M.index,pathname:M.pathname,fullPath:M.fullPath,staticData:M.staticData,id:M.id,routeId:M.routeId,search:Bi(M.search,M.searchError),params:Bi(M.params,M.paramsError),ssr:M.ssr}))},S=o.options.ssr(p);if(Qn(S))return S.then(M=>{r.ssr=g(M??y)});r.ssr=g(S??y)},Lm=(u,s,c,o)=>{if(o._nonReactive.pendingTimeout!==void 0)return;const r=c.options.pendingMs??u.router.options.defaultPendingMs;if(!!(u.onReady&&!u.router.isServer&&!Wi(u,s)&&(c.options.loader||c.options.beforeLoad||Bm(c))&&typeof r=="number"&&r!==1/0&&(c.options.pendingComponent??u.router.options?.defaultPendingComponent))){const v=setTimeout(()=>{qi(u)},r);o._nonReactive.pendingTimeout=v}},cp=(u,s,c)=>{const o=u.router.getMatch(s);if(!o._nonReactive.beforeLoadPromise&&!o._nonReactive.loaderPromise)return;Lm(u,s,c,o);const r=()=>{const d=u.router.getMatch(s);d.preload&&(d.status==="redirected"||d.status==="notFound")&&Xn(u,d,d.error)};return o._nonReactive.beforeLoadPromise?o._nonReactive.beforeLoadPromise.then(r):r()},op=(u,s,c,o)=>{const r=u.router.getMatch(s),d=r._nonReactive.loadPromise;r._nonReactive.loadPromise=na(()=>{d?.resolve()});const{paramsError:v,searchError:g}=r;v&&tu(u,c,v,"PARSE_PARAMS"),g&&tu(u,c,g,"VALIDATE_SEARCH"),Lm(u,s,o,r);const y=new AbortController,m=u.matches[c-1]?.id,S={...(m?u.router.getMatch(m):void 0)?.context??u.router.options.context??void 0,...r.__routeContext};let M=!1;const L=()=>{M||(M=!0,u.updateMatch(s,w=>({...w,isFetching:"beforeLoad",fetchCount:w.fetchCount+1,abortController:y,context:S})))},H=()=>{r._nonReactive.beforeLoadPromise?.resolve(),r._nonReactive.beforeLoadPromise=void 0,u.updateMatch(s,w=>({...w,isFetching:!1}))};if(!o.options.beforeLoad){uu(()=>{L(),H()});return}r._nonReactive.beforeLoadPromise=na();const{search:j,params:q,cause:Z}=r,X=Wi(u,s),F={search:j,abortController:y,params:q,preload:X,context:S,location:u.location,navigate:w=>u.router.navigate({...w,_fromLocation:u.location}),buildLocation:u.router.buildLocation,cause:X?"preload":Z,matches:u.matches,...u.router.options.additionalContext},nt=w=>{if(w===void 0){uu(()=>{L(),H()});return}(we(w)||Ue(w))&&(L(),tu(u,c,w,"BEFORE_LOAD")),uu(()=>{L(),u.updateMatch(s,G=>({...G,__beforeLoadContext:w,context:{...G.context,...w}})),H()})};let Y;try{if(Y=o.options.beforeLoad(F),Qn(Y))return L(),Y.catch(w=>{tu(u,c,w,"BEFORE_LOAD")}).then(nt)}catch(w){L(),tu(u,c,w,"BEFORE_LOAD")}nt(Y)},sp=(u,s)=>{const{id:c,routeId:o}=u.matches[s],r=u.router.looseRoutesById[o],d=()=>{if(u.router.isServer){const y=ip(u,c,s,r);if(Qn(y))return y.then(g)}return g()},v=()=>op(u,c,s,r),g=()=>{if(Dm(u,c))return;const y=cp(u,c,r);return Qn(y)?y.then(v):v()};return d()},iu=(u,s,c)=>{const o=u.router.getMatch(s);if(!o||!c.options.head&&!c.options.scripts&&!c.options.headers)return;const r={matches:u.matches,match:o,params:o.params,loaderData:o.loaderData};return Promise.all([c.options.head?.(r),c.options.scripts?.(r),c.options.headers?.(r)]).then(([d,v,g])=>{const y=d?.meta,m=d?.links,b=d?.scripts,p=d?.styles;return{meta:y,links:m,headScripts:b,headers:g,scripts:v,styles:p}})},Um=(u,s,c,o)=>{const r=u.matchPromises[c-1],{params:d,loaderDeps:v,abortController:g,cause:y}=u.router.getMatch(s);let m=u.router.options.context??{};for(let p=0;p<=c;p++){const S=u.matches[p];if(!S)continue;const M=u.router.getMatch(S.id);M&&(m={...m,...M.__routeContext??{},...M.__beforeLoadContext??{}})}const b=Wi(u,s);return{params:d,deps:v,preload:!!b,parentMatchPromise:r,abortController:g,context:m,location:u.location,navigate:p=>u.router.navigate({...p,_fromLocation:u.location}),cause:b?"preload":y,route:o,...u.router.options.additionalContext}},dm=async(u,s,c,o)=>{try{const r=u.router.getMatch(s);try{(!u.router.isServer||r.ssr===!0)&&Nm(o);const d=o.options.loader?.(Um(u,s,c,o)),v=o.options.loader&&Qn(d);if(!!(v||o._lazyPromise||o._componentsPromise||o.options.head||o.options.scripts||o.options.headers||r._nonReactive.minPendingPromise)&&u.updateMatch(s,p=>({...p,isFetching:"loader"})),o.options.loader){const p=v?await d:d;Xn(u,u.router.getMatch(s),p),p!==void 0&&u.updateMatch(s,S=>({...S,loaderData:p}))}o._lazyPromise&&await o._lazyPromise;const y=iu(u,s,o),m=y?await y:void 0,b=r._nonReactive.minPendingPromise;b&&await b,o._componentsPromise&&await o._componentsPromise,u.updateMatch(s,p=>({...p,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),...m}))}catch(d){let v=d;const g=r._nonReactive.minPendingPromise;g&&await g,Ue(d)&&await o.options.notFoundComponent?.preload?.(),Xn(u,u.router.getMatch(s),d);try{o.options.onError?.(d)}catch(b){v=b,Xn(u,u.router.getMatch(s),b)}const y=iu(u,s,o),m=y?await y:void 0;u.updateMatch(s,b=>({...b,error:v,status:"error",isFetching:!1,...m}))}}catch(r){const d=u.router.getMatch(s);if(d){const v=iu(u,s,o);if(v){const g=await v;u.updateMatch(s,y=>({...y,...g}))}d._nonReactive.loaderPromise=void 0}Xn(u,d,r)}},fp=async(u,s)=>{const{id:c,routeId:o}=u.matches[s];let r=!1,d=!1;const v=u.router.looseRoutesById[o];if(Dm(u,c)){if(u.router.isServer){const m=iu(u,c,v);if(m){const b=await m;u.updateMatch(c,p=>({...p,...b}))}return u.router.getMatch(c)}}else{const m=u.router.getMatch(c);if(m._nonReactive.loaderPromise){if(m.status==="success"&&!u.sync&&!m.preload)return m;await m._nonReactive.loaderPromise;const b=u.router.getMatch(c),p=b._nonReactive.error||b.error;p&&Xn(u,b,p)}else{const b=Date.now()-m.updatedAt,p=Wi(u,c),S=p?v.options.preloadStaleTime??u.router.options.defaultPreloadStaleTime??3e4:v.options.staleTime??u.router.options.defaultStaleTime??0,M=v.options.shouldReload,L=typeof M=="function"?M(Um(u,c,s,v)):M,H=!!p&&!u.router.state.matches.some(X=>X.id===c),j=u.router.getMatch(c);j._nonReactive.loaderPromise=na(),H!==j.preload&&u.updateMatch(c,X=>({...X,preload:H}));const{status:q,invalid:Z}=j;if(r=q==="success"&&(Z||(L??b>S)),!(p&&v.options.preload===!1))if(r&&!u.sync)d=!0,(async()=>{try{await dm(u,c,s,v);const X=u.router.getMatch(c);X._nonReactive.loaderPromise?.resolve(),X._nonReactive.loadPromise?.resolve(),X._nonReactive.loaderPromise=void 0}catch(X){we(X)&&await u.router.navigate(X.options)}})();else if(q!=="success"||r&&u.sync)await dm(u,c,s,v);else{const X=iu(u,c,v);if(X){const F=await X;u.updateMatch(c,nt=>({...nt,...F}))}}}}const g=u.router.getMatch(c);d||(g._nonReactive.loaderPromise?.resolve(),g._nonReactive.loadPromise?.resolve()),clearTimeout(g._nonReactive.pendingTimeout),g._nonReactive.pendingTimeout=void 0,d||(g._nonReactive.loaderPromise=void 0),g._nonReactive.dehydrated=void 0;const y=d?g.isFetching:!1;return y!==g.isFetching||g.invalid!==!1?(u.updateMatch(c,m=>({...m,isFetching:y,invalid:!1})),u.router.getMatch(c)):g};async function hm(u){const s=Object.assign(u,{matchPromises:[]});!s.router.isServer&&s.router.state.matches.some(c=>c._forcePending)&&qi(s);try{for(let r=0;r<s.matches.length;r++){const d=sp(s,r);Qn(d)&&await d}const c=s.firstBadMatchIndex??s.matches.length;for(let r=0;r<c;r++)s.matchPromises.push(fp(s,r));await Promise.all(s.matchPromises);const o=qi(s);Qn(o)&&await o}catch(c){if(Ue(c)&&!s.preload){const o=qi(s);throw Qn(o)&&await o,c}if(we(c))throw c}return s.matches}async function Nm(u){if(!u._lazyLoaded&&u._lazyPromise===void 0&&(u.lazyFn?u._lazyPromise=u.lazyFn().then(s=>{const{id:c,...o}=s.options;Object.assign(u.options,o),u._lazyLoaded=!0,u._lazyPromise=void 0}):u._lazyLoaded=!0),!u._componentsLoaded&&u._componentsPromise===void 0){const s=()=>{const c=[];for(const o of Hm){const r=u.options[o]?.preload;r&&c.push(r())}if(c.length)return Promise.all(c).then(()=>{u._componentsLoaded=!0,u._componentsPromise=void 0});u._componentsLoaded=!0,u._componentsPromise=void 0};u._componentsPromise=u._lazyPromise?u._lazyPromise.then(s):s()}return u._componentsPromise}function Bi(u,s){return s?{status:"error",error:s}:{status:"success",value:u}}function Bm(u){for(const s of Hm)if(u.options[s]?.preload)return!0;return!1}const Hm=["component","errorComponent","pendingComponent","notFoundComponent"];function rp(u){return{input:({url:s})=>{for(const c of u)s=jm(c,s);return s},output:({url:s})=>{for(let c=u.length-1;c>=0;c--)s=wm(u[c],s);return s}}}function dp(u){const s=wi(u.basepath),c=`/${s}`,o=`${c}/`,r=u.caseSensitive?c:c.toLowerCase(),d=u.caseSensitive?o:o.toLowerCase();return{input:({url:v})=>{const g=u.caseSensitive?v.pathname:v.pathname.toLowerCase();return g===r?v.pathname="/":g.startsWith(d)&&(v.pathname=v.pathname.slice(c.length)),v},output:({url:v})=>(v.pathname=ji(["/",s,v.pathname]),v)}}function jm(u,s){const c=u?.input?.({url:s});if(c){if(typeof c=="string")return new URL(c);if(c instanceof URL)return c}return s}function wm(u,s){const c=u?.output?.({url:s});if(c){if(typeof c=="string")return new URL(c);if(c instanceof URL)return c}return s}function dl(u){const s=u.resolvedLocation,c=u.location,o=s?.pathname!==c.pathname,r=s?.href!==c.href,d=s?.hash!==c.hash;return{fromLocation:s,toLocation:c,pathChanged:o,hrefChanged:r,hashChanged:d}}class hp{constructor(s){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=c=>c(),this.update=c=>{c.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const o=this.options,r=this.basepath??o?.basepath??"/",d=this.basepath===void 0,v=o?.rewrite;this.options={...o,...c},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(S=>[encodeURIComponent(S),S])):void 0,(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.isServer||(this.history=z0())),this.origin=this.options.origin,this.origin||(!this.isServer&&window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),!this.__store&&this.latestLocation&&(this.__store=new E0(yp(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(S=>!["redirected"].includes(S.status))}}}),$0(this));let g=!1;const y=this.options.basepath??"/",m=this.options.rewrite;if(d||r!==y||v!==m){this.basepath=y;const S=[];wi(y)!==""&&S.push(dp({basepath:y})),m&&S.push(m),this.rewrite=S.length===0?void 0:S.length===1?S[0]:rp(S),this.history&&this.updateLatestLocation(),g=!0}g&&this.__store&&(this.__store.state={...this.state,location:this.latestLocation}),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const{routesById:c,routesByPath:o,processedTree:r}=q0(this.routeTree,this.options.caseSensitive,(v,g)=>{v.init({originalIndex:g})});this.options.routeMasks&&N0(this.options.routeMasks,r),this.routesById=c,this.routesByPath=o,this.processedTree=r;const d=this.options.notFoundRoute;d&&(d.init({originalIndex:99999999999}),this.routesById[d.id]=d)},this.subscribe=(c,o)=>{const r={eventType:c,fn:o};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=c=>{this.subscribers.forEach(o=>{o.eventType===c.type&&o.fn(c)})},this.parseLocation=(c,o)=>{const r=({href:y,state:m})=>{const b=new URL(y,this.origin),p=jm(this.rewrite,b),S=this.options.parseSearch(p.search),M=this.options.stringifySearch(S);p.search=M;const L=p.href.replace(p.origin,""),{pathname:H,hash:j}=p;return{href:L,publicHref:y,url:p.href,pathname:rm(H),searchStr:M,search:Le(o?.search,S),hash:j.split("#").reverse()[0]??"",state:Le(o?.state,m)}},d=r(c),{__tempLocation:v,__tempKey:g}=d.state;if(v&&(!g||g===this.tempLocationKey)){const y=r(v);return y.state.key=d.state.key,y.state.__TSR_key=d.state.__TSR_key,delete y.state.__tempLocation,{...y,maskedLocation:d}}return d},this.resolvePathCache=Qi(1e3),this.resolvePathWithBase=(c,o)=>Z0({base:c,to:Ys(o),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(c,o,r)=>typeof c=="string"?this.matchRoutesInternal({pathname:c,search:o},r):this.matchRoutesInternal(c,o),this.getMatchedRoutes=c=>vp({pathname:c,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=c=>{const o=this.getMatch(c);o&&(o.abortController.abort(),clearTimeout(o._nonReactive.pendingTimeout),o._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const c=this.state.matches.filter(d=>d.status==="pending"),o=this.state.matches.filter(d=>d.isFetching==="loader");new Set([...this.state.pendingMatches??[],...c,...o]).forEach(d=>{this.cancelMatch(d.id)})},this.buildLocation=c=>{const o=(d={})=>{const v=d._fromLocation||this.pendingBuiltLocation||this.latestLocation,g=this.matchRoutes(v,{_buildLocation:!0}),y=Xi(g);d.from;const m=d.unsafeRelative==="path"?v.pathname:d.from??y.fullPath,b=this.resolvePathWithBase(m,"."),p=y.search,S={...y.params},M=d.to?this.resolvePathWithBase(b,`${d.to}`):this.resolvePathWithBase(b,"."),L=d.params===!1||d.params===null?{}:(d.params??!0)===!0?S:Object.assign(S,Gn(d.params,S)),H=Es({path:M,params:L}).interpolatedPath,j=this.matchRoutes(H,void 0,{_buildLocation:!0}).map(st=>this.looseRoutesById[st.routeId]);if(Object.keys(L).length>0)for(const st of j){const ct=st.options.params?.stringify??st.options.stringifyParams;ct&&Object.assign(L,ct(L))}const q=c.leaveParams?M:rm(Es({path:M,params:L,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath);let Z=p;if(c._includeValidateSearch&&this.options.search?.strict){const st={};j.forEach(ct=>{if(ct.options.validateSearch)try{Object.assign(st,Hs(ct.options.validateSearch,{...st,...Z}))}catch{}}),Z=st}Z=pp({search:Z,dest:d,destRoutes:j,_includeValidateSearch:c._includeValidateSearch}),Z=Le(p,Z);const X=this.options.stringifySearch(Z),F=d.hash===!0?v.hash:d.hash?Gn(d.hash,v.hash):void 0,nt=F?`#${F}`:"";let Y=d.state===!0?v.state:d.state?Gn(d.state,v.state):{};Y=Le(v.state,Y);const w=`${q}${X}${nt}`,G=new URL(w,this.origin),$=wm(this.rewrite,G);return{publicHref:$.pathname+$.search+$.hash,href:w,url:$.href,pathname:q,search:Z,searchStr:X,state:Y,hash:F??"",unmaskOnReload:d.unmaskOnReload}},r=(d={},v)=>{const g=o(d);let y=v?o(v):void 0;if(!y){const m={};if(this.options.routeMasks){const b=B0(g.pathname,this.processedTree);if(b){Object.assign(m,b.params);const{from:p,params:S,...M}=b.route,L=S===!1||S===null?{}:(S??!0)===!0?m:Object.assign(m,Gn(S,m));v={from:c.from,...M,params:L},y=o(v)}}}return y&&(g.maskedLocation=y),g};return c.mask?r(c,{from:c.from,...c.mask}):r(c)},this.commitLocation=({viewTransition:c,ignoreBlocker:o,...r})=>{const d=()=>{const y=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];y.forEach(b=>{r.state[b]=this.latestLocation.state[b]});const m=fl(r.state,this.latestLocation.state);return y.forEach(b=>{delete r.state[b]}),m},v=rl(this.latestLocation.href)===rl(r.href),g=this.commitLocationPromise;if(this.commitLocationPromise=na(()=>{g?.resolve()}),v&&d())this.load();else{let{maskedLocation:y,hashScrollIntoView:m,...b}=r;y&&(b={...y,state:{...y.state,__tempKey:void 0,__tempLocation:{...b,search:b.searchStr,state:{...b.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(b.unmaskOnReload??this.options.unmaskOnReload??!1)&&(b.state.__tempKey=this.tempLocationKey)),b.state.__hashScrollIntoViewOptions=m??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=c,this.history[r.replace?"replace":"push"](b.publicHref,b.state,{ignoreBlocker:o})}return this.resetNextScroll=r.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:c,resetScroll:o,hashScrollIntoView:r,viewTransition:d,ignoreBlocker:v,href:g,...y}={})=>{if(g){const p=this.history.location.state.__TSR_index,S=Gi(g,{__TSR_index:c?p:p+1});y.to=S.pathname,y.search=this.options.parseSearch(S.search),y.hash=S.hash.slice(1)}const m=this.buildLocation({...y,_includeValidateSearch:!0});this.pendingBuiltLocation=m;const b=this.commitLocation({...m,viewTransition:d,replace:c,resetScroll:o,hashScrollIntoView:r,ignoreBlocker:v});return Promise.resolve().then(()=>{this.pendingBuiltLocation===m&&(this.pendingBuiltLocation=void 0)}),b},this.navigate=async({to:c,reloadDocument:o,href:r,...d})=>{if(!o&&r)try{new URL(`${r}`),o=!0}catch{}if(o){if(r||(r=this.buildLocation({to:c,...d}).url),!d.ignoreBlocker){const g=this.history.getBlockers?.()??[];for(const y of g)if(y?.blockerFn&&await y.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return d.replace?window.location.replace(r):window.location.href=r,Promise.resolve()}return this.buildAndCommitLocation({...d,href:r,to:c,_isNavigate:!0})},this.beforeLoad=()=>{if(this.cancelMatches(),this.updateLatestLocation(),this.isServer){const o=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0}),r=d=>{try{return encodeURI(decodeURI(d))}catch{return d}};if(wi(r(this.latestLocation.href))!==wi(r(o.href))){let d=o.url;throw this.origin&&d.startsWith(this.origin)&&(d=d.replace(this.origin,"")||"/"),up({href:d})}}const c=this.matchRoutes(this.latestLocation);this.__store.setState(o=>({...o,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:c,cachedMatches:o.cachedMatches.filter(r=>!c.some(d=>d.id===r.id))}))},this.load=async c=>{let o,r,d;for(d=new Promise(g=>{this.startTransition(async()=>{try{this.beforeLoad();const y=this.latestLocation,m=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...dl({resolvedLocation:m,location:y})}),this.emit({type:"onBeforeLoad",...dl({resolvedLocation:m,location:y})}),await hm({router:this,sync:c?.sync,matches:this.state.pendingMatches,location:y,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let b=[],p=[],S=[];uu(()=>{this.__store.setState(M=>{const L=M.matches,H=M.pendingMatches||M.matches;return b=L.filter(j=>!H.some(q=>q.id===j.id)),p=H.filter(j=>!L.some(q=>q.id===j.id)),S=H.filter(j=>L.some(q=>q.id===j.id)),{...M,isLoading:!1,loadedAt:Date.now(),matches:H,pendingMatches:void 0,cachedMatches:[...M.cachedMatches,...b.filter(j=>j.status!=="error"&&j.status!=="notFound")]}}),this.clearExpiredCache()}),[[b,"onLeave"],[p,"onEnter"],[S,"onStay"]].forEach(([M,L])=>{M.forEach(H=>{this.looseRoutesById[H.routeId].options[L]?.(H)})})})})}})}catch(y){we(y)?(o=y,this.isServer||this.navigate({...o.options,replace:!0,ignoreBlocker:!0})):Ue(y)&&(r=y),this.__store.setState(m=>({...m,statusCode:o?o.status:r?404:m.matches.some(b=>b.status==="error")?500:200,redirect:o}))}this.latestLoadPromise===d&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),g()})}),this.latestLoadPromise=d,await d;this.latestLoadPromise&&d!==this.latestLoadPromise;)await this.latestLoadPromise;let v;this.hasNotFoundMatch()?v=404:this.__store.state.matches.some(g=>g.status==="error")&&(v=500),v!==void 0&&this.__store.setState(g=>({...g,statusCode:v}))},this.startViewTransition=c=>{const o=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,o&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let r;if(typeof o=="object"&&this.isViewTransitionTypesSupported){const d=this.latestLocation,v=this.state.resolvedLocation,g=typeof o.types=="function"?o.types(dl({resolvedLocation:v,location:d})):o.types;if(g===!1){c();return}r={update:c,types:g}}else r=c;document.startViewTransition(r)}else c()},this.updateMatch=(c,o)=>{this.startTransition(()=>{const r=this.state.pendingMatches?.some(d=>d.id===c)?"pendingMatches":this.state.matches.some(d=>d.id===c)?"matches":this.state.cachedMatches.some(d=>d.id===c)?"cachedMatches":"";r&&this.__store.setState(d=>({...d,[r]:d[r]?.map(v=>v.id===c?o(v):v)}))})},this.getMatch=c=>{const o=r=>r.id===c;return this.state.cachedMatches.find(o)??this.state.pendingMatches?.find(o)??this.state.matches.find(o)},this.invalidate=c=>{const o=r=>c?.filter?.(r)??!0?{...r,invalid:!0,...c?.forcePending||r.status==="error"||r.status==="notFound"?{status:"pending",error:void 0}:void 0}:r;return this.__store.setState(r=>({...r,matches:r.matches.map(o),cachedMatches:r.cachedMatches.map(o),pendingMatches:r.pendingMatches?.map(o)})),this.shouldViewTransition=!1,this.load({sync:c?.sync})},this.resolveRedirect=c=>{if(!c.options.href){const o=this.buildLocation(c.options);let r=o.url;this.origin&&r.startsWith(this.origin)&&(r=r.replace(this.origin,"")||"/"),c.options.href=o.href,c.headers.set("Location",r)}return c.headers.get("Location")||c.headers.set("Location",c.options.href),c},this.clearCache=c=>{const o=c?.filter;o!==void 0?this.__store.setState(r=>({...r,cachedMatches:r.cachedMatches.filter(d=>!o(d))})):this.__store.setState(r=>({...r,cachedMatches:[]}))},this.clearExpiredCache=()=>{const c=o=>{const r=this.looseRoutesById[o.routeId];if(!r.options.loader)return!0;const d=(o.preload?r.options.preloadGcTime??this.options.defaultPreloadGcTime:r.options.gcTime??this.options.defaultGcTime)??300*1e3;return o.status==="error"?!0:Date.now()-o.updatedAt>=d};this.clearCache({filter:c})},this.loadRouteChunk=Nm,this.preloadRoute=async c=>{const o=this.buildLocation(c);let r=this.matchRoutes(o,{throwOnError:!0,preload:!0,dest:c});const d=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(g=>g.id)),v=new Set([...d,...this.state.cachedMatches.map(g=>g.id)]);uu(()=>{r.forEach(g=>{v.has(g.id)||this.__store.setState(y=>({...y,cachedMatches:[...y.cachedMatches,g]}))})});try{return r=await hm({router:this,matches:r,location:o,preload:!0,updateMatch:(g,y)=>{d.has(g)?r=r.map(m=>m.id===g?y(m):m):this.updateMatch(g,y)}}),r}catch(g){if(we(g))return g.options.reloadDocument?void 0:await this.preloadRoute({...g.options,_fromLocation:o});Ue(g)||console.error(g);return}},this.matchRoute=(c,o)=>{const r={...c,to:c.to?this.resolvePathWithBase(c.from||"",c.to):void 0,params:c.params||{},leaveParams:!0},d=this.buildLocation(r);if(o?.pending&&this.state.status!=="pending")return!1;const g=(o?.pending===void 0?!this.state.isLoading:o.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,y=H0(d.pathname,o?.caseSensitive??!1,o?.fuzzy??!1,g.pathname,this.processedTree);return!y||c.params&&!fl(y.params,c.params,{partial:!0})?!1:o?.includeSearch??!0?fl(g.search,d.search,{partial:!0})?y.params:!1:y.params},this.hasNotFoundMatch=()=>this.__store.state.matches.some(c=>c.status==="notFound"||c.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...s,caseSensitive:s.caseSensitive??!1,notFoundMode:s.notFoundMode??"fuzzy",stringifySearch:s.stringifySearch??np,parseSearch:s.parseSearch??ep}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(s,c){const o=this.getMatchedRoutes(s.pathname),{foundRoute:r,routeParams:d}=o;let{matchedRoutes:v}=o,g=!1;(r?r.path!=="/"&&d["**"]:rl(s.pathname))&&(this.options.notFoundRoute?v=[...v,this.options.notFoundRoute]:g=!0);const y=(()=>{if(g){if(this.options.notFoundMode!=="root")for(let p=v.length-1;p>=0;p--){const S=v[p];if(S.children)return S.id}return _e}})(),m=[],b=p=>p?.id?p.context??this.options.context??void 0:this.options.context??void 0;return v.forEach((p,S)=>{const M=m[S-1],[L,H,j]=(()=>{const jt=M?.search??s.search,wt=M?._strictSearch??void 0;try{const Nt=Hs(p.options.validateSearch,{...jt})??void 0;return[{...jt,...Nt},{...wt,...Nt},void 0]}catch(Nt){let x=Nt;if(Nt instanceof ki||(x=new ki(Nt.message,{cause:Nt})),c?.throwOnError)throw x;return[jt,{},x]}})(),q=p.options.loaderDeps?.({search:L})??"",Z=q?JSON.stringify(q):"",{interpolatedPath:X,usedParams:F}=Es({path:p.fullPath,params:d,decodeCharMap:this.pathParamsDecodeCharMap}),nt=p.id+X+Z,Y=this.getMatch(nt),w=this.state.matches.find(jt=>jt.routeId===p.id),G=Y?._strictParams??F;let $;if(!Y){const jt=p.options.params?.parse??p.options.parseParams;if(jt)try{Object.assign(G,jt(G))}catch(wt){if(Ue(wt)||we(wt)?$=wt:$=new mp(wt.message,{cause:wt}),c?.throwOnError)throw $}}Object.assign(d,G);const st=w?"stay":"enter";let ct;if(Y)ct={...Y,cause:st,params:w?Le(w.params,d):d,_strictParams:G,search:Le(w?w.search:Y.search,L),_strictSearch:H};else{const jt=p.options.loader||p.options.beforeLoad||p.lazyFn||Bm(p)?"pending":"success";ct={id:nt,ssr:this.isServer?void 0:p.options.ssr,index:S,routeId:p.id,params:w?Le(w.params,d):d,_strictParams:G,pathname:X,updatedAt:Date.now(),search:w?Le(w.search,L):L,_strictSearch:H,searchError:void 0,status:jt,isFetching:!1,error:void 0,paramsError:$,__routeContext:void 0,_nonReactive:{loadPromise:na()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:st,loaderDeps:w?Le(w.loaderDeps,q):q,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:p.options.staticData||{},fullPath:p.fullPath}}c?.preload||(ct.globalNotFound=y===p.id),ct.searchError=j;const Rt=b(M);ct.context={...Rt,...ct.__routeContext,...ct.__beforeLoadContext},m.push(ct)}),m.forEach((p,S)=>{const M=this.looseRoutesById[p.routeId];if(!this.getMatch(p.id)&&c?._buildLocation!==!0){const H=m[S-1],j=b(H);if(M.options.context){const q={deps:p.loaderDeps,params:p.params,context:j??{},location:s,navigate:Z=>this.navigate({...Z,_fromLocation:s}),buildLocation:this.buildLocation,cause:p.cause,abortController:p.abortController,preload:!!p.preload,matches:m};p.__routeContext=M.options.context(q)??void 0}p.context={...j,...p.__routeContext,...p.__beforeLoadContext}}}),m}}class ki extends Error{}class mp extends Error{}function yp(u){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:u,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function Hs(u,s){if(u==null)return{};if("~standard"in u){const c=u["~standard"].validate(s);if(c instanceof Promise)throw new ki("Async validation not supported");if(c.issues)throw new ki(JSON.stringify(c.issues,void 0,2),{cause:c});return c.value}return"parse"in u?u.parse(s):typeof u=="function"?u(s):{}}function vp({pathname:u,routesById:s,processedTree:c}){const o={},r=rl(u);let d;const v=j0(r,c,!0);return v&&(d=v.route,Object.assign(o,v.params)),{matchedRoutes:v?.branch||[s[_e]],routeParams:o,foundRoute:d}}function pp({search:u,dest:s,destRoutes:c,_includeValidateSearch:o}){const r=c.reduce((g,y)=>{const m=[];if("search"in y.options)y.options.search?.middlewares&&m.push(...y.options.search.middlewares);else if(y.options.preSearchFilters||y.options.postSearchFilters){const b=({search:p,next:S})=>{let M=p;"preSearchFilters"in y.options&&y.options.preSearchFilters&&(M=y.options.preSearchFilters.reduce((H,j)=>j(H),p));const L=S(M);return"postSearchFilters"in y.options&&y.options.postSearchFilters?y.options.postSearchFilters.reduce((H,j)=>j(H),L):L};m.push(b)}if(o&&y.options.validateSearch){const b=({search:p,next:S})=>{const M=S(p);try{return{...M,...Hs(y.options.validateSearch,M)??void 0}}catch{return M}};m.push(b)}return g.concat(m)},[])??[],d=({search:g})=>s.search?s.search===!0?g:Gn(s.search,g):{};r.push(d);const v=(g,y)=>{if(g>=r.length)return y;const m=r[g];return m({search:y,next:p=>v(g+1,p)})};return v(0,u)}const gp="Error preloading route! ☝️";class qm{constructor(s){if(this.init=c=>{this.originalIndex=c.originalIndex;const o=this.options,r=!o?.path&&!o?.id;this.parentRoute=this.options.getParentRoute?.(),r?this._path=_e:this.parentRoute||dn(!1);let d=r?_e:o?.path;d&&d!=="/"&&(d=Om(d));const v=o?.id||d;let g=r?_e:ji([this.parentRoute.id===_e?"":this.parentRoute.id,v]);d===_e&&(d="/"),g!==_e&&(g=ji(["/",g]));const y=g===_e?"/":ji([this.parentRoute.fullPath,d]);this._path=d,this._id=g,this._fullPath=y,this._to=y},this.addChildren=c=>this._addFileChildren(c),this._addFileChildren=c=>(Array.isArray(c)&&(this.children=c),typeof c=="object"&&c!==null&&(this.children=Object.values(c)),this),this._addFileTypes=()=>this,this.updateLoader=c=>(Object.assign(this.options,c),this),this.update=c=>(Object.assign(this.options,c),this),this.lazy=c=>(this.lazyFn=c,this),this.options=s||{},this.isRoot=!s?.getParentRoute,s?.id&&s?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class Sp extends qm{constructor(s){super(s)}}var at=ru();const su=Em(at);function Gs(u){const s=u.errorComponent??$i;return K.jsx(_p,{getResetKey:u.getResetKey,onCatch:u.onCatch,children:({error:c,reset:o})=>c?at.createElement(s,{error:c,reset:o}):u.children})}class _p extends at.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(s){return{resetKey:s.getResetKey()}}static getDerivedStateFromError(s){return{error:s}}reset(){this.setState({error:null})}componentDidUpdate(s,c){c.error&&c.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(s,c){this.props.onCatch&&this.props.onCatch(s,c)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function $i({error:u}){const[s,c]=at.useState(!1);return K.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[K.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[K.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),K.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>c(o=>!o),children:s?"Hide Error":"Show Error"})]}),K.jsx("div",{style:{height:".25rem"}}),s?K.jsx("div",{children:K.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:u.message?K.jsx("code",{children:u.message}):null})}):null]})}function bp({children:u,fallback:s=null}){return Tp()?K.jsx(su.Fragment,{children:u}):K.jsx(su.Fragment,{children:s})}function Tp(){return su.useSyncExternalStore(Rp,()=>!0,()=>!1)}function Rp(){return()=>{}}var zs={exports:{}},As={},Os={exports:{}},Cs={};var mm;function Ep(){if(mm)return Cs;mm=1;var u=ru();function s(p,S){return p===S&&(p!==0||1/p===1/S)||p!==p&&S!==S}var c=typeof Object.is=="function"?Object.is:s,o=u.useState,r=u.useEffect,d=u.useLayoutEffect,v=u.useDebugValue;function g(p,S){var M=S(),L=o({inst:{value:M,getSnapshot:S}}),H=L[0].inst,j=L[1];return d(function(){H.value=M,H.getSnapshot=S,y(H)&&j({inst:H})},[p,M,S]),r(function(){return y(H)&&j({inst:H}),p(function(){y(H)&&j({inst:H})})},[p]),v(M),M}function y(p){var S=p.getSnapshot;p=p.value;try{var M=S();return!c(p,M)}catch{return!0}}function m(p,S){return S()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:g;return Cs.useSyncExternalStore=u.useSyncExternalStore!==void 0?u.useSyncExternalStore:b,Cs}var ym;function Mp(){return ym||(ym=1,Os.exports=Ep()),Os.exports}var vm;function zp(){if(vm)return As;vm=1;var u=ru(),s=Mp();function c(m,b){return m===b&&(m!==0||1/m===1/b)||m!==m&&b!==b}var o=typeof Object.is=="function"?Object.is:c,r=s.useSyncExternalStore,d=u.useRef,v=u.useEffect,g=u.useMemo,y=u.useDebugValue;return As.useSyncExternalStoreWithSelector=function(m,b,p,S,M){var L=d(null);if(L.current===null){var H={hasValue:!1,value:null};L.current=H}else H=L.current;L=g(function(){function q(Y){if(!Z){if(Z=!0,X=Y,Y=S(Y),M!==void 0&&H.hasValue){var w=H.value;if(M(w,Y))return F=w}return F=Y}if(w=F,o(X,Y))return w;var G=S(Y);return M!==void 0&&M(w,G)?(X=Y,w):(X=Y,F=G)}var Z=!1,X,F,nt=p===void 0?null:p;return[function(){return q(b())},nt===null?void 0:function(){return q(nt())}]},[b,p,S,M]);var j=r(m,L[0],L[1]);return v(function(){H.hasValue=!0,H.value=j},[j]),y(j),j},As}var pm;function Ap(){return pm||(pm=1,zs.exports=zp()),zs.exports}var Op=Ap();function Cp(u,s=o=>o,c={}){const o=c.equal??xp;return Op.useSyncExternalStoreWithSelector(u.subscribe,()=>u.state,()=>u.state,s,o)}function xp(u,s){if(Object.is(u,s))return!0;if(typeof u!="object"||u===null||typeof s!="object"||s===null)return!1;if(u instanceof Map&&s instanceof Map){if(u.size!==s.size)return!1;for(const[o,r]of u)if(!s.has(o)||!Object.is(r,s.get(o)))return!1;return!0}if(u instanceof Set&&s instanceof Set){if(u.size!==s.size)return!1;for(const o of u)if(!s.has(o))return!1;return!0}if(u instanceof Date&&s instanceof Date)return u.getTime()===s.getTime();const c=gm(u);if(c.length!==gm(s).length)return!1;for(let o=0;o<c.length;o++)if(!Object.prototype.hasOwnProperty.call(s,c[o])||!Object.is(u[c[o]],s[c[o]]))return!1;return!0}function gm(u){return Object.keys(u).concat(Object.getOwnPropertySymbols(u))}const xs=at.createContext(null);function Ym(){return typeof document>"u"?xs:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=xs,xs)}function be(u){const s=at.useContext(Ym());return u?.warn,s}function se(u){const s=be({warn:u?.router===void 0}),c=u?.router||s,o=at.useRef(void 0);return Cp(c.__store,r=>{if(u?.select){if(u.structuralSharing??c.options.defaultStructuralSharing){const d=Le(o.current,u.select(r));return o.current=d,d}return u.select(r)}return r})}const Pi=at.createContext(void 0),Dp=at.createContext(void 0);function Ve(u){const s=at.useContext(u.from?Dp:Pi);return se({select:o=>{const r=o.matches.find(d=>u.from?u.from===d.routeId:d.id===s);if(dn(!((u.shouldThrow??!0)&&!r),`Could not find ${u.from?`an active match from "${u.from}"`:"a nearest match!"}`),r!==void 0)return u.select?u.select(r):r},structuralSharing:u.structuralSharing})}function Xs(u){return Ve({from:u.from,strict:u.strict,structuralSharing:u.structuralSharing,select:s=>u.select?u.select(s.loaderData):s.loaderData})}function Vs(u){const{select:s,...c}=u;return Ve({...c,select:o=>s?s(o.loaderDeps):o.loaderDeps})}function Qs(u){return Ve({from:u.from,shouldThrow:u.shouldThrow,structuralSharing:u.structuralSharing,strict:u.strict,select:s=>{const c=u.strict===!1?s.params:s._strictParams;return u.select?u.select(c):c}})}function Zs(u){return Ve({from:u.from,strict:u.strict,shouldThrow:u.shouldThrow,structuralSharing:u.structuralSharing,select:s=>u.select?u.select(s.search):s.search})}const Hi=typeof window<"u"?at.useLayoutEffect:at.useEffect;function Ds(u){const s=at.useRef({value:u,prev:null}),c=s.current.value;return u!==c&&(s.current={value:u,prev:c}),s.current.prev}function Lp(u,s,c={},o={}){at.useEffect(()=>{if(!u.current||o.disabled||typeof IntersectionObserver!="function")return;const r=new IntersectionObserver(([d])=>{s(d)},c);return r.observe(u.current),()=>{r.disconnect()}},[s,c,o.disabled,u])}function Up(u){const s=at.useRef(null);return at.useImperativeHandle(u,()=>s.current,[]),s}function Ks(u){const s=be();return at.useCallback(c=>s.navigate({...c,from:c.from??u?.from}),[u?.from,s])}var Np=Mm();function Bp(u,s){const c=be(),[o,r]=at.useState(!1),d=at.useRef(!1),v=Up(s),{activeProps:g,inactiveProps:y,activeOptions:m,to:b,preload:p,preloadDelay:S,hashScrollIntoView:M,replace:L,startTransition:H,resetScroll:j,viewTransition:q,children:Z,target:X,disabled:F,style:nt,className:Y,onClick:w,onFocus:G,onMouseEnter:$,onMouseLeave:st,onTouchStart:ct,ignoreBlocker:Rt,params:jt,search:wt,hash:Nt,state:x,mask:V,reloadDocument:tt,unsafeRelative:_t,from:Et,_fromLocation:R,...B}=u,Q=se({select:zt=>zt.location.search,structuralSharing:!0}),J=u.from,et=at.useMemo(()=>({...u,from:J}),[c,Q,J,u._fromLocation,u.hash,u.to,u.search,u.params,u.state,u.mask,u.unsafeRelative]),lt=at.useMemo(()=>c.buildLocation({...et}),[c,et]),mt=at.useMemo(()=>{if(F)return;let zt=lt.maskedLocation?lt.maskedLocation.url:lt.url,gt=!1;return c.origin&&(zt.startsWith(c.origin)?zt=c.history.createHref(zt.replace(c.origin,""))||"/":gt=!0),{href:zt,external:gt}},[F,lt.maskedLocation,lt.url,c.origin,c.history]),Gt=at.useMemo(()=>{if(mt?.external)return mt.href;try{return new URL(b),b}catch{}},[b,mt]),Mt=u.reloadDocument||Gt?!1:p??c.options.defaultPreload,Ze=S??c.options.defaultPreloadDelay??0,hn=se({select:zt=>{if(Gt)return!1;if(m?.exact){if(!Q0(zt.location.pathname,lt.pathname,c.basepath))return!1}else{const gt=Zi(zt.location.pathname,c.basepath),fe=Zi(lt.pathname,c.basepath);if(!(gt.startsWith(fe)&&(gt.length===fe.length||gt[fe.length]==="/")))return!1}return(m?.includeSearch??!0)&&!fl(zt.location.search,lt.search,{partial:!m?.exact,ignoreUndefined:!m?.explicitUndefined})?!1:m?.includeHash?zt.location.hash===lt.hash:!0}}),Ne=at.useCallback(()=>{c.preloadRoute({...et}).catch(zt=>{console.warn(zt),console.warn(gp)})},[c,et]),du=at.useCallback(zt=>{zt?.isIntersecting&&Ne()},[Ne]);Lp(v,du,Yp,{disabled:!!F||Mt!=="viewport"}),at.useEffect(()=>{d.current||!F&&Mt==="render"&&(Ne(),d.current=!0)},[F,Ne,Mt]);const Ke=zt=>{const gt=zt.currentTarget.getAttribute("target"),fe=X!==void 0?X:gt;if(!F&&!Gp(zt)&&!zt.defaultPrevented&&(!fe||fe==="_self")&&zt.button===0){zt.preventDefault(),Np.flushSync(()=>{r(!0)});const ua=c.subscribe("onResolved",()=>{ua(),r(!1)});c.navigate({...et,replace:L,resetScroll:j,hashScrollIntoView:M,startTransition:H,viewTransition:q,ignoreBlocker:Rt})}};if(Gt)return{...B,ref:v,href:Gt,...Z&&{children:Z},...X&&{target:X},...F&&{disabled:F},...nt&&{style:nt},...Y&&{className:Y},...w&&{onClick:w},...G&&{onFocus:G},...$&&{onMouseEnter:$},...st&&{onMouseLeave:st},...ct&&{onTouchStart:ct}};const yl=zt=>{F||Mt&&Ne()},aa=yl,tc=zt=>{if(!(F||!Mt))if(!Ze)Ne();else{const gt=zt.target;if(eu.has(gt))return;const fe=setTimeout(()=>{eu.delete(gt),Ne()},Ze);eu.set(gt,fe)}},hu=zt=>{if(F||!Mt||!Ze)return;const gt=zt.target,fe=eu.get(gt);fe&&(clearTimeout(fe),eu.delete(gt))},mn=hn?Gn(g,{})??Hp:Ls,yn=hn?Ls:Gn(y,{})??Ls,vl=[Y,mn.className,yn.className].filter(Boolean).join(" "),mu=(nt||mn.style||yn.style)&&{...nt,...mn.style,...yn.style};return{...B,...mn,...yn,href:mt?.href,ref:v,onClick:nu([w,Ke]),onFocus:nu([G,yl]),onMouseEnter:nu([$,tc]),onMouseLeave:nu([st,hu]),onTouchStart:nu([ct,aa]),disabled:!!F,target:X,...mu&&{style:mu},...vl&&{className:vl},...F&&jp,...hn&&wp,...o&&qp}}const Ls={},Hp={className:"active"},jp={role:"link","aria-disabled":!0},wp={"data-status":"active","aria-current":"page"},qp={"data-transitioning":"transitioning"},eu=new WeakMap,Yp={rootMargin:"100px"},nu=u=>s=>{for(const c of u)if(c){if(s.defaultPrevented)return;c(s)}},Gm=at.forwardRef((u,s)=>{const{_asChild:c,...o}=u,{type:r,ref:d,...v}=Bp(o,s),g=typeof o.children=="function"?o.children({isActive:v["data-status"]==="active"}):o.children;return c===void 0&&delete v.disabled,at.createElement(c||"a",{...v,ref:d},g)});function Gp(u){return!!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)}let Xp=class extends qm{constructor(s){super(s),this.useMatch=c=>Ve({select:c?.select,from:this.id,structuralSharing:c?.structuralSharing}),this.useRouteContext=c=>Ve({...c,from:this.id,select:o=>c?.select?c.select(o.context):o.context}),this.useSearch=c=>Zs({select:c?.select,structuralSharing:c?.structuralSharing,from:this.id}),this.useParams=c=>Qs({select:c?.select,structuralSharing:c?.structuralSharing,from:this.id}),this.useLoaderDeps=c=>Vs({...c,from:this.id}),this.useLoaderData=c=>Xs({...c,from:this.id}),this.useNavigate=()=>Ks({from:this.fullPath}),this.Link=su.forwardRef((c,o)=>K.jsx(Gm,{ref:o,from:this.fullPath,...c})),this.$$typeof=Symbol.for("react.memo")}};function Vp(u){return new Xp(u)}class Qp extends Sp{constructor(s){super(s),this.useMatch=c=>Ve({select:c?.select,from:this.id,structuralSharing:c?.structuralSharing}),this.useRouteContext=c=>Ve({...c,from:this.id,select:o=>c?.select?c.select(o.context):o.context}),this.useSearch=c=>Zs({select:c?.select,structuralSharing:c?.structuralSharing,from:this.id}),this.useParams=c=>Qs({select:c?.select,structuralSharing:c?.structuralSharing,from:this.id}),this.useLoaderDeps=c=>Vs({...c,from:this.id}),this.useLoaderData=c=>Xs({...c,from:this.id}),this.useNavigate=()=>Ks({from:this.fullPath}),this.Link=su.forwardRef((c,o)=>K.jsx(Gm,{ref:o,from:this.fullPath,...c})),this.$$typeof=Symbol.for("react.memo")}}function Zp(u){return new Qp(u)}function fu(u){return typeof u=="object"?new Sm(u,{silent:!0}).createRoute(u):new Sm(u,{silent:!0}).createRoute}class Sm{constructor(s,c){this.path=s,this.createRoute=o=>{this.silent;const r=Vp(o);return r.isRoot=!1,r},this.silent=c?.silent}}class _m{constructor(s){this.useMatch=c=>Ve({select:c?.select,from:this.options.id,structuralSharing:c?.structuralSharing}),this.useRouteContext=c=>Ve({from:this.options.id,select:o=>c?.select?c.select(o.context):o.context}),this.useSearch=c=>Zs({select:c?.select,structuralSharing:c?.structuralSharing,from:this.options.id}),this.useParams=c=>Qs({select:c?.select,structuralSharing:c?.structuralSharing,from:this.options.id}),this.useLoaderDeps=c=>Vs({...c,from:this.options.id}),this.useLoaderData=c=>Xs({...c,from:this.options.id}),this.useNavigate=()=>{const c=be();return Ks({from:c.routesById[this.options.id].fullPath})},this.options=s,this.$$typeof=Symbol.for("react.memo")}}function bm(u){return typeof u=="object"?new _m(u):s=>new _m({id:u,...s})}function Js(u,s){let c,o,r,d;const v=()=>(c||(c=u().then(y=>{c=void 0,o=y[s]}).catch(y=>{if(r=y,C0(r)&&r instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const m=`tanstack_router_reload:${r.message}`;sessionStorage.getItem(m)||(sessionStorage.setItem(m,"1"),d=!0)}})),c),g=function(m){if(d)throw window.location.reload(),new Promise(()=>{});if(r)throw r;if(!o)throw v();return at.createElement(o,m)};return g.preload=v,g}function Kp(){const u=be(),s=at.useRef({router:u,mounted:!1}),[c,o]=at.useState(!1),{hasPendingMatches:r,isLoading:d}=se({select:p=>({isLoading:p.isLoading,hasPendingMatches:p.matches.some(S=>S.status==="pending")}),structuralSharing:!0}),v=Ds(d),g=d||c||r,y=Ds(g),m=d||r,b=Ds(m);return u.startTransition=p=>{o(!0),at.startTransition(()=>{p(),o(!1)})},at.useEffect(()=>{const p=u.history.subscribe(u.load),S=u.buildLocation({to:u.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return rl(u.latestLocation.href)!==rl(S.href)&&u.commitLocation({...S,replace:!0}),()=>{p()}},[u,u.history]),Hi(()=>{if(typeof window<"u"&&u.ssr||s.current.router===u&&s.current.mounted)return;s.current={router:u,mounted:!0},(async()=>{try{await u.load()}catch(S){console.error(S)}})()},[u]),Hi(()=>{v&&!d&&u.emit({type:"onLoad",...dl(u.state)})},[v,u,d]),Hi(()=>{b&&!m&&u.emit({type:"onBeforeRouteMount",...dl(u.state)})},[m,b,u]),Hi(()=>{if(y&&!g){const p=dl(u.state);u.emit({type:"onResolved",...p}),u.__store.setState(S=>({...S,status:"idle",resolvedLocation:S.location})),p.hrefChanged&&P0(u)}},[g,y,u]),null}function Jp(u){const s=se({select:c=>`not-found-${c.location.pathname}-${c.status}`});return K.jsx(Gs,{getResetKey:()=>s,onCatch:(c,o)=>{if(Ue(c))u.onCatch?.(c,o);else throw c},errorComponent:({error:c})=>{if(Ue(c))return u.fallback?.(c);throw c},children:u.children})}function kp(){return K.jsx("p",{children:"Not Found"})}function ea(u){return K.jsx(K.Fragment,{children:u.children})}function Xm(u,s,c){return s.options.notFoundComponent?K.jsx(s.options.notFoundComponent,{...c}):u.options.defaultNotFoundComponent?K.jsx(u.options.defaultNotFoundComponent,{...c}):K.jsx(kp,{})}function Fp({children:u}){const s=be();return s.isServer?K.jsx("script",{nonce:s.options.ssr?.nonce,className:"$tsr",dangerouslySetInnerHTML:{__html:u+';typeof $_TSR !== "undefined" && $_TSR.c()'}}):null}function Wp(){const u=be();if(!u.isScrollRestoring||!u.isServer||typeof u.options.scrollRestoration=="function"&&!u.options.scrollRestoration({location:u.latestLocation}))return null;const c=(u.options.getScrollRestorationKey||Bs)(u.latestLocation),o=c!==Bs(u.latestLocation)?c:void 0,r={storageKey:Ki,shouldScrollRestoration:!0};return o&&(r.key=o),K.jsx(Fp,{children:`(${Cm.toString()})(${JSON.stringify(r)})`})}const Vm=at.memo(function({matchId:s}){const c=be(),o=se({select:q=>{const Z=q.matches.find(X=>X.id===s);return dn(Z),{routeId:Z.routeId,ssr:Z.ssr,_displayPending:Z._displayPending}},structuralSharing:!0}),r=c.routesById[o.routeId],d=r.options.pendingComponent??c.options.defaultPendingComponent,v=d?K.jsx(d,{}):null,g=r.options.errorComponent??c.options.defaultErrorComponent,y=r.options.onCatch??c.options.defaultOnCatch,m=r.isRoot?r.options.notFoundComponent??c.options.notFoundRoute?.options.component:r.options.notFoundComponent,b=o.ssr===!1||o.ssr==="data-only",p=(!r.isRoot||r.options.wrapInSuspense||b)&&(r.options.wrapInSuspense??d??(r.options.errorComponent?.preload||b))?at.Suspense:ea,S=g?Gs:ea,M=m?Jp:ea,L=se({select:q=>q.loadedAt}),H=se({select:q=>{const Z=q.matches.findIndex(X=>X.id===s);return q.matches[Z-1]?.routeId}}),j=r.isRoot?r.options.shellComponent??ea:ea;return K.jsxs(j,{children:[K.jsx(Pi.Provider,{value:s,children:K.jsx(p,{fallback:v,children:K.jsx(S,{getResetKey:()=>L,errorComponent:g||$i,onCatch:(q,Z)=>{if(Ue(q))throw q;y?.(q,Z)},children:K.jsx(M,{fallback:q=>{if(!m||q.routeId&&q.routeId!==o.routeId||!q.routeId&&!r.isRoot)throw q;return at.createElement(m,q)},children:b||o._displayPending?K.jsx(bp,{fallback:v,children:K.jsx(Tm,{matchId:s})}):K.jsx(Tm,{matchId:s})})})})}),H===_e&&c.options.scrollRestoration?K.jsxs(K.Fragment,{children:[K.jsx($p,{}),K.jsx(Wp,{})]}):null]})});function $p(){const u=be(),s=at.useRef(void 0);return K.jsx("script",{suppressHydrationWarning:!0,ref:c=>{c&&(s.current===void 0||s.current.href!==u.latestLocation.href)&&(u.emit({type:"onRendered",...dl(u.state)}),s.current=u.latestLocation)}},u.latestLocation.state.__TSR_key)}const Tm=at.memo(function({matchId:s}){const c=be(),{match:o,key:r,routeId:d}=se({select:y=>{const m=y.matches.find(L=>L.id===s),b=m.routeId,S=(c.routesById[b].options.remountDeps??c.options.defaultRemountDeps)?.({routeId:b,loaderDeps:m.loaderDeps,params:m._strictParams,search:m._strictSearch});return{key:S?JSON.stringify(S):void 0,routeId:b,match:{id:m.id,status:m.status,error:m.error,_forcePending:m._forcePending,_displayPending:m._displayPending}}},structuralSharing:!0}),v=c.routesById[d],g=at.useMemo(()=>{const y=v.options.component??c.options.defaultComponent;return y?K.jsx(y,{},r):K.jsx(Qm,{})},[r,v.options.component,c.options.defaultComponent]);if(o._displayPending)throw c.getMatch(o.id)?._nonReactive.displayPendingPromise;if(o._forcePending)throw c.getMatch(o.id)?._nonReactive.minPendingPromise;if(o.status==="pending"){const y=v.options.pendingMinMs??c.options.defaultPendingMinMs;if(y){const m=c.getMatch(o.id);if(m&&!m._nonReactive.minPendingPromise&&!c.isServer){const b=na();m._nonReactive.minPendingPromise=b,setTimeout(()=>{b.resolve(),m._nonReactive.minPendingPromise=void 0},y)}}throw c.getMatch(o.id)?._nonReactive.loadPromise}if(o.status==="notFound")return dn(Ue(o.error)),Xm(c,v,o.error);if(o.status==="redirected")throw dn(we(o.error)),c.getMatch(o.id)?._nonReactive.loadPromise;if(o.status==="error"){if(c.isServer){const y=(v.options.errorComponent??c.options.defaultErrorComponent)||$i;return K.jsx(y,{error:o.error,reset:void 0,info:{componentStack:""}})}throw o.error}return g}),Qm=at.memo(function(){const s=be(),c=at.useContext(Pi),o=se({select:m=>m.matches.find(b=>b.id===c)?.routeId}),r=s.routesById[o],d=se({select:m=>{const p=m.matches.find(S=>S.id===c);return dn(p),p.globalNotFound}}),v=se({select:m=>{const b=m.matches,p=b.findIndex(S=>S.id===c);return b[p+1]?.id}}),g=s.options.defaultPendingComponent?K.jsx(s.options.defaultPendingComponent,{}):null;if(d)return Xm(s,r,void 0);if(!v)return null;const y=K.jsx(Vm,{matchId:v});return o===_e?K.jsx(at.Suspense,{fallback:g,children:y}):y});function Pp(){const u=be(),c=u.routesById[_e].options.pendingComponent??u.options.defaultPendingComponent,o=c?K.jsx(c,{}):null,r=u.isServer||typeof document<"u"&&u.ssr?ea:at.Suspense,d=K.jsxs(r,{fallback:o,children:[!u.isServer&&K.jsx(Kp,{}),K.jsx(Ip,{})]});return u.options.InnerWrap?K.jsx(u.options.InnerWrap,{children:d}):d}function Ip(){const u=be(),s=se({select:r=>r.matches[0]?.id}),c=se({select:r=>r.loadedAt}),o=s?K.jsx(Vm,{matchId:s}):null;return K.jsx(Pi.Provider,{value:s,children:u.options.disableGlobalCatchBoundary?o:K.jsx(Gs,{getResetKey:()=>c,errorComponent:$i,onCatch:r=>{r.message||r.toString()},children:o})})}const tg=u=>new eg(u);class eg extends hp{constructor(s){super(s)}}typeof globalThis<"u"?(globalThis.createFileRoute=fu,globalThis.createLazyFileRoute=bm):typeof window<"u"&&(window.createFileRoute=fu,window.createLazyFileRoute=bm);function ng({router:u,children:s,...c}){Object.keys(c).length>0&&u.update({...u.options,...c,context:{...u.options.context,...c.context}});const o=Ym(),r=K.jsx(o.Provider,{value:u,children:s});return u.options.Wrap?K.jsx(u.options.Wrap,{children:r}):r}function lg({router:u,...s}){return K.jsx(ng,{router:u,...s,children:K.jsx(Pp,{})})}const ag="modulepreload",ug=function(u){return"/"+u},Rm={},ks=function(s,c,o){let r=Promise.resolve();if(c&&c.length>0){let y=function(m){return Promise.all(m.map(b=>Promise.resolve(b).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const v=document.querySelector("meta[property=csp-nonce]"),g=v?.nonce||v?.getAttribute("nonce");r=y(c.map(m=>{if(m=ug(m),m in Rm)return;Rm[m]=!0;const b=m.endsWith(".css"),p=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${p}`))return;const S=document.createElement("link");if(S.rel=b?"stylesheet":ag,b||(S.as="script"),S.crossOrigin="",S.href=m,g&&S.setAttribute("nonce",g),document.head.appendChild(S),b)return new Promise((M,L)=>{S.addEventListener("load",M),S.addEventListener("error",()=>L(new Error(`Unable to preload CSS for ${m}`)))})}))}function d(v){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=v,window.dispatchEvent(g),!g.defaultPrevented)throw v}return r.then(v=>{for(const g of v||[])g.status==="rejected"&&d(g.reason);return s().catch(d)})},ig=function(){return null},Qe=(function u(s){function c(r,d,v){var g,y={};if(Array.isArray(r))return r.concat(d);for(g in r)y[v?g.toLowerCase():g]=r[g];for(g in d){var m=v?g.toLowerCase():g,b=d[g];y[m]=m in y&&typeof b=="object"?c(y[m],b,m=="headers"):b}return y}function o(r,d,v,g,y){var m=typeof r!="string"?(d=r).url:r,b={config:d},p=c(s,d),S={};g=g||p.data,(p.transformRequest||[]).map(function(M){g=M(g,p.headers)||g}),p.auth&&(S.authorization=p.auth),g&&typeof g=="object"&&typeof g.append!="function"&&typeof g.text!="function"&&(g=JSON.stringify(g),S["content-type"]="application/json");try{S[p.xsrfHeaderName]=decodeURIComponent(document.cookie.match(RegExp("(^|; )"+p.xsrfCookieName+"=([^;]*)"))[2])}catch{}return p.baseURL&&(m=m.replace(/^(?!.*\/\/)\/?/,p.baseURL+"/")),p.params&&(m+=(~m.indexOf("?")?"&":"?")+(p.paramsSerializer?p.paramsSerializer(p.params):new URLSearchParams(p.params))),(p.fetch||fetch)(m,{method:(v||p.method||"get").toUpperCase(),body:g,headers:c(p.headers,S,!0),credentials:p.withCredentials?"include":y}).then(function(M){for(var L in M)typeof M[L]!="function"&&(b[L]=M[L]);return p.responseType=="stream"?(b.data=M.body,b):M[p.responseType||"text"]().then(function(H){b.data=H,b.data=JSON.parse(H)}).catch(Object).then(function(){return(p.validateStatus?p.validateStatus(M.status):M.ok)?b:Promise.reject(b)})})}return s=s||{},o.request=o,o.get=function(r,d){return o(r,d,"get")},o.delete=function(r,d){return o(r,d,"delete")},o.head=function(r,d){return o(r,d,"head")},o.options=function(r,d){return o(r,d,"options")},o.post=function(r,d,v){return o(r,v,"post",d)},o.put=function(r,d,v){return o(r,v,"put",d)},o.patch=function(r,d,v){return o(r,v,"patch",d)},o.all=Promise.all.bind(Promise),o.spread=function(r){return r.apply.bind(r,r)},o.CancelToken=typeof AbortController=="function"?AbortController:Object,o.defaults=s,o.create=u,o})();async function Eg(){return(await Qe.get("/api/devices")).data}async function Mg(u){return(await Qe.post("/api/init",u??{})).data}function zg(u,s,c,o,r){const d=new AbortController;return fetch("/api/chat/stream",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:u,device_id:s}),signal:d.signal}).then(async v=>{if(!v.ok)throw new Error(`HTTP error! status: ${v.status}`);if(!v.body)throw new Error("Response body is null");const g=v.body.getReader(),y=new TextDecoder;let m="",b="message";for(;;){const{done:p,value:S}=await g.read();if(p)break;m+=y.decode(S,{stream:!0});const M=m.split(`
|
|
10
|
-
`);m=M.pop()||"";for(const L of M)if(L.startsWith("event: "))b=L.slice(7).trim();else if(L.startsWith("data: "))try{const H=JSON.parse(L.slice(6));b==="step"?(console.log("[SSE] Received step event:",H),c(H)):b==="done"?(console.log("[SSE] Received done event:",H),o(H)):b==="error"&&(console.log("[SSE] Received error event:",H),r(H))}catch(H){console.error("Failed to parse SSE data:",L,H)}}}).catch(v=>{v.name!=="AbortError"&&r({type:"error",message:v.message})}),{close:()=>d.abort()}}async function cg(){return(await Qe.get("/api/status")).data}async function Ag(u){return(await Qe.post("/api/reset",{device_id:u})).data}async function Og(u){return(await Qe.post("/api/screenshot",{device_id:u??null},{})).data}async function Cg(u,s,c,o=0){return(await Qe.post("/api/control/tap",{x:u,y:s,device_id:c??null,delay:o})).data}async function xg(u,s,c,o,r,d,v=0){const g={start_x:Math.round(u),start_y:Math.round(s),end_x:Math.round(c),end_y:Math.round(o),duration_ms:Math.round(r||300),device_id:d??null,delay:Math.round(v*1e3)/1e3};try{return(await Qe.post("/api/control/swipe",g)).data}catch(y){throw console.error("[API] Swipe request failed:",y),y}}async function Dg(u,s,c,o=0){return(await Qe.post("/api/control/touch/down",{x:Math.round(u),y:Math.round(s),device_id:c??null,delay:o})).data}async function Lg(u,s,c,o=0){return(await Qe.post("/api/control/touch/move",{x:Math.round(u),y:Math.round(s),device_id:c??null,delay:o})).data}async function Ug(u,s,c,o=0){return(await Qe.post("/api/control/touch/up",{x:Math.round(u),y:Math.round(s),device_id:c??null,delay:o})).data}const Ii=Zp({component:sg});function og(){const[u,s]=at.useState("...");return at.useEffect(()=>{cg().then(c=>s(c.version)).catch(()=>s("unknown"))},[]),K.jsx("footer",{className:"mt-auto border-t border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800",children:K.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-4 flex flex-col sm:flex-row items-center justify-between gap-2 text-sm text-gray-600 dark:text-gray-400",children:[K.jsxs("div",{className:"flex items-center gap-2",children:[K.jsxs("span",{children:["v",u]}),K.jsx("span",{className:"text-gray-300 dark:text-gray-600",children:"|"}),K.jsxs("a",{href:"https://github.com/suyiiyii/AutoGLM-GUI",target:"_blank",rel:"noopener noreferrer",className:"hover:text-blue-600 dark:hover:text-blue-400 transition-colors flex items-center gap-1",children:[K.jsx("svg",{className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 24 24",children:K.jsx("path",{fillRule:"evenodd",d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z",clipRule:"evenodd"})}),"GitHub"]})]}),K.jsxs("div",{className:"text-center",children:["欢迎"," ",K.jsx("a",{href:"https://github.com/suyiiyii/AutoGLM-GUI",target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 dark:text-blue-400 hover:underline",children:"Star ⭐"})]})]})})}function sg(){return K.jsxs("div",{className:"h-screen flex flex-col overflow-hidden",children:[K.jsx("div",{className:"flex-1 overflow-auto",children:K.jsx(Qm,{})}),K.jsx(og,{}),K.jsx(ig,{position:"bottom-right"})]})}const fg=()=>ks(()=>import("./chat-
|
|
10
|
+
`);m=M.pop()||"";for(const L of M)if(L.startsWith("event: "))b=L.slice(7).trim();else if(L.startsWith("data: "))try{const H=JSON.parse(L.slice(6));b==="step"?(console.log("[SSE] Received step event:",H),c(H)):b==="done"?(console.log("[SSE] Received done event:",H),o(H)):b==="error"&&(console.log("[SSE] Received error event:",H),r(H))}catch(H){console.error("Failed to parse SSE data:",L,H)}}}).catch(v=>{v.name!=="AbortError"&&r({type:"error",message:v.message})}),{close:()=>d.abort()}}async function cg(){return(await Qe.get("/api/status")).data}async function Ag(u){return(await Qe.post("/api/reset",{device_id:u})).data}async function Og(u){return(await Qe.post("/api/screenshot",{device_id:u??null},{})).data}async function Cg(u,s,c,o=0){return(await Qe.post("/api/control/tap",{x:u,y:s,device_id:c??null,delay:o})).data}async function xg(u,s,c,o,r,d,v=0){const g={start_x:Math.round(u),start_y:Math.round(s),end_x:Math.round(c),end_y:Math.round(o),duration_ms:Math.round(r||300),device_id:d??null,delay:Math.round(v*1e3)/1e3};try{return(await Qe.post("/api/control/swipe",g)).data}catch(y){throw console.error("[API] Swipe request failed:",y),y}}async function Dg(u,s,c,o=0){return(await Qe.post("/api/control/touch/down",{x:Math.round(u),y:Math.round(s),device_id:c??null,delay:o})).data}async function Lg(u,s,c,o=0){return(await Qe.post("/api/control/touch/move",{x:Math.round(u),y:Math.round(s),device_id:c??null,delay:o})).data}async function Ug(u,s,c,o=0){return(await Qe.post("/api/control/touch/up",{x:Math.round(u),y:Math.round(s),device_id:c??null,delay:o})).data}const Ii=Zp({component:sg});function og(){const[u,s]=at.useState("...");return at.useEffect(()=>{cg().then(c=>s(c.version)).catch(()=>s("unknown"))},[]),K.jsx("footer",{className:"mt-auto border-t border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800",children:K.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-4 flex flex-col sm:flex-row items-center justify-between gap-2 text-sm text-gray-600 dark:text-gray-400",children:[K.jsxs("div",{className:"flex items-center gap-2",children:[K.jsxs("span",{children:["v",u]}),K.jsx("span",{className:"text-gray-300 dark:text-gray-600",children:"|"}),K.jsxs("a",{href:"https://github.com/suyiiyii/AutoGLM-GUI",target:"_blank",rel:"noopener noreferrer",className:"hover:text-blue-600 dark:hover:text-blue-400 transition-colors flex items-center gap-1",children:[K.jsx("svg",{className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 24 24",children:K.jsx("path",{fillRule:"evenodd",d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z",clipRule:"evenodd"})}),"GitHub"]})]}),K.jsxs("div",{className:"text-center",children:["欢迎"," ",K.jsx("a",{href:"https://github.com/suyiiyii/AutoGLM-GUI",target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 dark:text-blue-400 hover:underline",children:"Star ⭐"})]})]})})}function sg(){return K.jsxs("div",{className:"h-screen flex flex-col overflow-hidden",children:[K.jsx("div",{className:"flex-1 overflow-auto",children:K.jsx(Qm,{})}),K.jsx(og,{}),K.jsx(ig,{position:"bottom-right"})]})}const fg=()=>ks(()=>import("./chat-C_2Cot0q.js"),[]),rg=fu("/chat")({component:Js(fg,"component")}),dg=()=>ks(()=>import("./about-BI6OV6gm.js"),[]),hg=fu("/about")({component:Js(dg,"component")}),mg=()=>ks(()=>import("./index-Do7ha9Kf.js"),[]),yg=fu("/")({component:Js(mg,"component")}),vg=rg.update({id:"/chat",path:"/chat",getParentRoute:()=>Ii}),pg=hg.update({id:"/about",path:"/about",getParentRoute:()=>Ii}),gg=yg.update({id:"/",path:"/",getParentRoute:()=>Ii}),Sg={IndexRoute:gg,AboutRoute:pg,ChatRoute:vg},_g=Ii._addFileChildren(Sg)._addFileTypes(),bg=tg({routeTree:_g,defaultPreload:"intent",scrollRestoration:!0}),Us=document.getElementById("app");Us&&!Us.innerHTML&&S0.createRoot(Us).render(K.jsx(lg,{router:bg}));export{Em as a,Og as b,xg as c,Lg as d,Dg as e,Cg as f,Tg as g,zg as h,Mg as i,K as j,Ag as k,Eg as l,at as r,Ug as s,Ks as u};
|