var ZW=Object.defineProperty;var XW=(e,t,r)=>t in e?ZW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Bc=(e,t,r)=>XW(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var ag=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var k1={exports:{}},wh={},R1={exports:{}},Et={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var jk;function QW(){if(jk)return Et;jk=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.iterator;function v(k){return k===null||typeof k!="object"?null:(k=p&&k[p]||k["@@iterator"],typeof k=="function"?k:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,b={};function x(k,Z,Q){this.props=k,this.context=Z,this.refs=b,this.updater=Q||w}x.prototype.isReactComponent={},x.prototype.setState=function(k,Z){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,Z,"setState")},x.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function S(){}S.prototype=x.prototype;function O(k,Z,Q){this.props=k,this.context=Z,this.refs=b,this.updater=Q||w}var P=O.prototype=new S;P.constructor=O,_(P,x.prototype),P.isPureReactComponent=!0;var T=Array.isArray,A=Object.prototype.hasOwnProperty,j={current:null},M={key:!0,ref:!0,__self:!0,__source:!0};function q(k,Z,Q){var ae,fe={},de=null,ve=null;if(Z!=null)for(ae in Z.ref!==void 0&&(ve=Z.ref),Z.key!==void 0&&(de=""+Z.key),Z)A.call(Z,ae)&&!M.hasOwnProperty(ae)&&(fe[ae]=Z[ae]);var D=arguments.length-2;if(D===1)fe.children=Q;else if(1>>1,Z=I[k];if(0>>1;ki(fe,F))dei(ve,fe)?(I[k]=ve,I[de]=F,k=de):(I[k]=fe,I[ae]=F,k=ae);else if(dei(ve,F))I[k]=ve,I[de]=F,k=de;else break e}}return $}function i(I,$){var F=I.sortIndex-$.sortIndex;return F!==0?F:I.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var u=[],l=[],h=1,p=null,v=3,w=!1,_=!1,b=!1,x=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function P(I){for(var $=r(l);$!==null;){if($.callback===null)n(l);else if($.startTime<=I)n(l),$.sortIndex=$.expirationTime,t(u,$);else break;$=r(l)}}function T(I){if(b=!1,P(I),!_)if(r(u)!==null)_=!0,re(A);else{var $=r(l);$!==null&&U(T,$.startTime-I)}}function A(I,$){_=!1,b&&(b=!1,S(q),q=-1),w=!0;var F=v;try{for(P($),p=r(u);p!==null&&(!(p.expirationTime>$)||I&&!K());){var k=p.callback;if(typeof k=="function"){p.callback=null,v=p.priorityLevel;var Z=k(p.expirationTime<=$);$=e.unstable_now(),typeof Z=="function"?p.callback=Z:p===r(u)&&n(u),P($)}else n(u);p=r(u)}if(p!==null)var Q=!0;else{var ae=r(l);ae!==null&&U(T,ae.startTime-$),Q=!1}return Q}finally{p=null,v=F,w=!1}}var j=!1,M=null,q=-1,H=5,W=-1;function K(){return!(e.unstable_now()-WI||125k?(I.sortIndex=F,t(l,I),r(u)===null&&I===r(l)&&(b?(S(q),q=-1):b=!0,U(T,F-k))):(I.sortIndex=Z,t(u,I),_||w||(_=!0,re(A))),I},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(I){var $=v;return function(){var F=v;v=$;try{return I.apply(this,arguments)}finally{v=F}}}}(L1)),L1}var Mk;function rH(){return Mk||(Mk=1,M1.exports=tH()),M1.exports}/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Lk;function nH(){if(Lk)return Vn;Lk=1;var e=q0(),t=rH();function r(c){for(var d="https://reactjs.org/docs/error-decoder.html?invariant="+c,y=1;y"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u=Object.prototype.hasOwnProperty,l=/^[: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]*$/,h={},p={};function v(c){return u.call(p,c)?!0:u.call(h,c)?!1:l.test(c)?p[c]=!0:(h[c]=!0,!1)}function w(c,d,y,E){if(y!==null&&y.type===0)return!1;switch(typeof d){case"function":case"symbol":return!0;case"boolean":return E?!1:y!==null?!y.acceptsBooleans:(c=c.toLowerCase().slice(0,5),c!=="data-"&&c!=="aria-");default:return!1}}function _(c,d,y,E){if(d===null||typeof d>"u"||w(c,d,y,E))return!0;if(E)return!1;if(y!==null)switch(y.type){case 3:return!d;case 4:return d===!1;case 5:return isNaN(d);case 6:return isNaN(d)||1>d}return!1}function b(c,d,y,E,N,V,oe){this.acceptsBooleans=d===2||d===3||d===4,this.attributeName=E,this.attributeNamespace=N,this.mustUseProperty=y,this.propertyName=c,this.type=d,this.sanitizeURL=V,this.removeEmptyString=oe}var x={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(c){x[c]=new b(c,0,!1,c,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(c){var d=c[0];x[d]=new b(d,1,!1,c[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(c){x[c]=new b(c,2,!1,c.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(c){x[c]=new b(c,2,!1,c,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(c){x[c]=new b(c,3,!1,c.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(c){x[c]=new b(c,3,!0,c,null,!1,!1)}),["capture","download"].forEach(function(c){x[c]=new b(c,4,!1,c,null,!1,!1)}),["cols","rows","size","span"].forEach(function(c){x[c]=new b(c,6,!1,c,null,!1,!1)}),["rowSpan","start"].forEach(function(c){x[c]=new b(c,5,!1,c.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function O(c){return c[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(c){var d=c.replace(S,O);x[d]=new b(d,1,!1,c,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(c){var d=c.replace(S,O);x[d]=new b(d,1,!1,c,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(c){var d=c.replace(S,O);x[d]=new b(d,1,!1,c,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(c){x[c]=new b(c,1,!1,c.toLowerCase(),null,!1,!1)}),x.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(c){x[c]=new b(c,1,!1,c.toLowerCase(),null,!0,!0)});function P(c,d,y,E){var N=x.hasOwnProperty(d)?x[d]:null;(N!==null?N.type!==0:E||!(2me||N[oe]!==V[me]){var be=` `+N[oe].replace(" at new "," at ");return c.displayName&&be.includes("")&&(be=be.replace("",c.displayName)),be}while(1<=oe&&0<=me);break}}}finally{Q=!1,Error.prepareStackTrace=y}return(c=c?c.displayName||c.name:"")?Z(c):""}function fe(c){switch(c.tag){case 5:return Z(c.type);case 16:return Z("Lazy");case 13:return Z("Suspense");case 19:return Z("SuspenseList");case 0:case 2:case 15:return c=ae(c.type,!1),c;case 11:return c=ae(c.type.render,!1),c;case 1:return c=ae(c.type,!0),c;default:return""}}function de(c){if(c==null)return null;if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case M:return"Fragment";case j:return"Portal";case H:return"Profiler";case q:return"StrictMode";case se:return"Suspense";case X:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case K:return(c.displayName||"Context")+".Consumer";case W:return(c._context.displayName||"Context")+".Provider";case te:var d=c.render;return c=c.displayName,c||(c=d.displayName||d.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case ee:return d=c.displayName||null,d!==null?d:de(c.type)||"Memo";case re:d=c._payload,c=c._init;try{return de(c(d))}catch{}}return null}function ve(c){var d=c.type;switch(c.tag){case 24:return"Cache";case 9:return(d.displayName||"Context")+".Consumer";case 10:return(d._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return c=d.render,c=c.displayName||c.name||"",d.displayName||(c!==""?"ForwardRef("+c+")":"ForwardRef");case 7:return"Fragment";case 5:return d;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return de(d);case 8:return d===q?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d}return null}function D(c){switch(typeof c){case"boolean":case"number":case"string":case"undefined":return c;case"object":return c;default:return""}}function z(c){var d=c.type;return(c=c.nodeName)&&c.toLowerCase()==="input"&&(d==="checkbox"||d==="radio")}function J(c){var d=z(c)?"checked":"value",y=Object.getOwnPropertyDescriptor(c.constructor.prototype,d),E=""+c[d];if(!c.hasOwnProperty(d)&&typeof y<"u"&&typeof y.get=="function"&&typeof y.set=="function"){var N=y.get,V=y.set;return Object.defineProperty(c,d,{configurable:!0,get:function(){return N.call(this)},set:function(oe){E=""+oe,V.call(this,oe)}}),Object.defineProperty(c,d,{enumerable:y.enumerable}),{getValue:function(){return E},setValue:function(oe){E=""+oe},stopTracking:function(){c._valueTracker=null,delete c[d]}}}}function ce(c){c._valueTracker||(c._valueTracker=J(c))}function Y(c){if(!c)return!1;var d=c._valueTracker;if(!d)return!0;var y=d.getValue(),E="";return c&&(E=z(c)?c.checked?"true":"false":c.value),c=E,c!==y?(d.setValue(c),!0):!1}function ue(c){if(c=c||(typeof document<"u"?document:void 0),typeof c>"u")return null;try{return c.activeElement||c.body}catch{return c.body}}function he(c,d){var y=d.checked;return F({},d,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:y??c._wrapperState.initialChecked})}function ye(c,d){var y=d.defaultValue==null?"":d.defaultValue,E=d.checked!=null?d.checked:d.defaultChecked;y=D(d.value!=null?d.value:y),c._wrapperState={initialChecked:E,initialValue:y,controlled:d.type==="checkbox"||d.type==="radio"?d.checked!=null:d.value!=null}}function pe(c,d){d=d.checked,d!=null&&P(c,"checked",d,!1)}function xe(c,d){pe(c,d);var y=D(d.value),E=d.type;if(y!=null)E==="number"?(y===0&&c.value===""||c.value!=y)&&(c.value=""+y):c.value!==""+y&&(c.value=""+y);else if(E==="submit"||E==="reset"){c.removeAttribute("value");return}d.hasOwnProperty("value")?ke(c,d.type,y):d.hasOwnProperty("defaultValue")&&ke(c,d.type,D(d.defaultValue)),d.checked==null&&d.defaultChecked!=null&&(c.defaultChecked=!!d.defaultChecked)}function Pe(c,d,y){if(d.hasOwnProperty("value")||d.hasOwnProperty("defaultValue")){var E=d.type;if(!(E!=="submit"&&E!=="reset"||d.value!==void 0&&d.value!==null))return;d=""+c._wrapperState.initialValue,y||d===c.value||(c.value=d),c.defaultValue=d}y=c.name,y!==""&&(c.name=""),c.defaultChecked=!!c._wrapperState.initialChecked,y!==""&&(c.name=y)}function ke(c,d,y){(d!=="number"||ue(c.ownerDocument)!==c)&&(y==null?c.defaultValue=""+c._wrapperState.initialValue:c.defaultValue!==""+y&&(c.defaultValue=""+y))}var Ie=Array.isArray;function Le(c,d,y,E){if(c=c.options,d){d={};for(var N=0;N"+d.valueOf().toString()+"",d=Fe.firstChild;c.firstChild;)c.removeChild(c.firstChild);for(;d.firstChild;)c.appendChild(d.firstChild)}});function Ze(c,d){if(d){var y=c.firstChild;if(y&&y===c.lastChild&&y.nodeType===3){y.nodeValue=d;return}}c.textContent=d}var ut={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},st=["Webkit","ms","Moz","O"];Object.keys(ut).forEach(function(c){st.forEach(function(d){d=d+c.charAt(0).toUpperCase()+c.substring(1),ut[d]=ut[c]})});function St(c,d,y){return d==null||typeof d=="boolean"||d===""?"":y||typeof d!="number"||d===0||ut.hasOwnProperty(c)&&ut[c]?(""+d).trim():d+"px"}function $t(c,d){c=c.style;for(var y in d)if(d.hasOwnProperty(y)){var E=y.indexOf("--")===0,N=St(y,d[y],E);y==="float"&&(y="cssFloat"),E?c.setProperty(y,N):c[y]=N}}var Yt=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ft(c,d){if(d){if(Yt[c]&&(d.children!=null||d.dangerouslySetInnerHTML!=null))throw Error(r(137,c));if(d.dangerouslySetInnerHTML!=null){if(d.children!=null)throw Error(r(60));if(typeof d.dangerouslySetInnerHTML!="object"||!("__html"in d.dangerouslySetInnerHTML))throw Error(r(61))}if(d.style!=null&&typeof d.style!="object")throw Error(r(62))}}function Mn(c,d){if(c.indexOf("-")===-1)return typeof d.is=="string";switch(c){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 Er=null;function mo(c){return c=c.target||c.srcElement||window,c.correspondingUseElement&&(c=c.correspondingUseElement),c.nodeType===3?c.parentNode:c}var Ln=null,ea=null,ta=null;function kl(c){if(c=Eo(c)){if(typeof Ln!="function")throw Error(r(280));var d=c.stateNode;d&&(d=Cc(d),Ln(c.stateNode,c.type,d))}}function fs(c){ea?ta?ta.push(c):ta=[c]:ea=c}function Na(){if(ea){var c=ea,d=ta;if(ta=ea=null,kl(c),d)for(c=0;c>>=0,c===0?32:31-(rr(c)/nc|0)|0}var ra=64,ps=4194304;function _t(c){switch(c&-c){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return c&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return c}}function Zt(c,d){var y=c.pendingLanes;if(y===0)return 0;var E=0,N=c.suspendedLanes,V=c.pingedLanes,oe=y&268435455;if(oe!==0){var me=oe&~N;me!==0?E=_t(me):(V&=oe,V!==0&&(E=_t(V)))}else oe=y&~N,oe!==0?E=_t(oe):V!==0&&(E=_t(V));if(E===0)return 0;if(d!==0&&d!==E&&(d&N)===0&&(N=E&-E,V=d&-d,N>=V||N===16&&(V&4194240)!==0))return d;if((E&4)!==0&&(E|=y&16),d=c.entangledLanes,d!==0)for(c=c.entanglements,d&=E;0y;y++)d.push(c);return d}function Xn(c,d,y){c.pendingLanes|=d,d!==536870912&&(c.suspendedLanes=0,c.pingedLanes=0),c=c.eventTimes,d=31-wt(d),c[d]=y}function xr(c,d){var y=c.pendingLanes&~d;c.pendingLanes=d,c.suspendedLanes=0,c.pingedLanes=0,c.expiredLanes&=d,c.mutableReadLanes&=d,c.entangledLanes&=d,d=c.entanglements;var E=c.eventTimes;for(c=c.expirationTimes;0=Ul),So=" ",uv=!1;function ws(c,d){switch(c){case"keyup":return ti.indexOf(d.keyCode)!==-1;case"keydown":return d.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yd(c){return c=c.detail,typeof c=="object"&&"data"in c?c.data:null}var oa=!1;function x_(c,d){switch(c){case"compositionend":return Yd(d);case"keypress":return d.which!==32?null:(uv=!0,So);case"textInput":return c=d.data,c===So&&uv?null:c;default:return null}}function $a(c,d){if(oa)return c==="compositionend"||!Ia&&ws(c,d)?(c=Bd(),Da=_n=La=null,oa=!1,c):null;switch(c){case"paste":return null;case"keypress":if(!(d.ctrlKey||d.altKey||d.metaKey)||d.ctrlKey&&d.altKey){if(d.char&&1=d)return{node:y,offset:d-c};c=E}e:{for(;y;){if(y.nextSibling){y=y.nextSibling;break e}y=y.parentNode}y=void 0}y=dv(y)}}function hv(c,d){return c&&d?c===d?!0:c&&c.nodeType===3?!1:d&&d.nodeType===3?hv(c,d.parentNode):"contains"in c?c.contains(d):c.compareDocumentPosition?!!(c.compareDocumentPosition(d)&16):!1:!1}function Qd(){for(var c=window,d=ue();d instanceof c.HTMLIFrameElement;){try{var y=typeof d.contentWindow.location.href=="string"}catch{y=!1}if(y)c=d.contentWindow;else break;d=ue(c.document)}return d}function Jd(c){var d=c&&c.nodeName&&c.nodeName.toLowerCase();return d&&(d==="input"&&(c.type==="text"||c.type==="search"||c.type==="tel"||c.type==="url"||c.type==="password")||d==="textarea"||c.contentEditable==="true")}function Ei(c){var d=Qd(),y=c.focusedElem,E=c.selectionRange;if(d!==y&&y&&y.ownerDocument&&hv(y.ownerDocument.documentElement,y)){if(E!==null&&Jd(y)){if(d=E.start,c=E.end,c===void 0&&(c=d),"selectionStart"in y)y.selectionStart=d,y.selectionEnd=Math.min(c,y.value.length);else if(c=(d=y.ownerDocument||document)&&d.defaultView||window,c.getSelection){c=c.getSelection();var N=y.textContent.length,V=Math.min(E.start,N);E=E.end===void 0?V:Math.min(E.end,N),!c.extend&&V>E&&(N=E,E=V,V=N),N=Xd(y,V);var oe=Xd(y,E);N&&oe&&(c.rangeCount!==1||c.anchorNode!==N.node||c.anchorOffset!==N.offset||c.focusNode!==oe.node||c.focusOffset!==oe.offset)&&(d=d.createRange(),d.setStart(N.node,N.offset),c.removeAllRanges(),V>E?(c.addRange(d),c.extend(oe.node,oe.offset)):(d.setEnd(oe.node,oe.offset),c.addRange(d)))}}for(d=[],c=y;c=c.parentNode;)c.nodeType===1&&d.push({element:c,left:c.scrollLeft,top:c.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y=document.documentMode,Os=null,Cs=null,ql=null,Sc=!1;function pv(c,d,y){var E=y.window===y?y.document:y.nodeType===9?y:y.ownerDocument;Sc||Os==null||Os!==ue(E)||(E=Os,"selectionStart"in E&&Jd(E)?E={start:E.selectionStart,end:E.selectionEnd}:(E=(E.ownerDocument&&E.ownerDocument.defaultView||window).getSelection(),E={anchorNode:E.anchorNode,anchorOffset:E.anchorOffset,focusNode:E.focusNode,focusOffset:E.focusOffset}),ql&&Fa(ql,E)||(ql=E,E=C(Cs,"onSelect"),0Pc||(c.current=T_[Pc],T_[Pc]=null,Pc--)}function Xt(c,d){Pc++,T_[Pc]=c.current,c.current=d}var Ms={},fn=Ns(Ms),$n=Ns(!1),Gl=Ms;function Ec(c,d){var y=c.type.contextTypes;if(!y)return Ms;var E=c.stateNode;if(E&&E.__reactInternalMemoizedUnmaskedChildContext===d)return E.__reactInternalMemoizedMaskedChildContext;var N={},V;for(V in y)N[V]=d[V];return E&&(c=c.stateNode,c.__reactInternalMemoizedUnmaskedChildContext=d,c.__reactInternalMemoizedMaskedChildContext=N),N}function Fn(c){return c=c.childContextTypes,c!=null}function wv(){nr($n),nr(fn)}function XA(c,d,y){if(fn.current!==Ms)throw Error(r(168));Xt(fn,d),Xt($n,y)}function QA(c,d,y){var E=c.stateNode;if(d=d.childContextTypes,typeof E.getChildContext!="function")return y;E=E.getChildContext();for(var N in E)if(!(N in d))throw Error(r(108,ve(c)||"Unknown",N));return F({},y,E)}function xv(c){return c=(c=c.stateNode)&&c.__reactInternalMemoizedMergedChildContext||Ms,Gl=fn.current,Xt(fn,c),Xt($n,$n.current),!0}function JA(c,d,y){var E=c.stateNode;if(!E)throw Error(r(169));y?(c=QA(c,d,Gl),E.__reactInternalMemoizedMergedChildContext=c,nr($n),nr(fn),Xt(fn,c)):nr($n),Xt($n,y)}var jo=null,Sv=!1,j_=!1;function e3(c){jo===null?jo=[c]:jo.push(c)}function mW(c){Sv=!0,e3(c)}function Ls(){if(!j_&&jo!==null){j_=!0;var c=0,d=Rt;try{var y=jo;for(Rt=1;c>=oe,N-=oe,Ao=1<<32-wt(d)+N|y<bt?(Gr=ht,ht=null):Gr=ht.sibling;var Lt=ze(Ce,ht,Ee[bt],Ye);if(Lt===null){ht===null&&(ht=Gr);break}c&&ht&&Lt.alternate===null&&d(Ce,ht),we=V(Lt,we,bt),dt===null?lt=Lt:dt.sibling=Lt,dt=Lt,ht=Gr}if(bt===Ee.length)return y(Ce,ht),lr&&Yl(Ce,bt),lt;if(ht===null){for(;btbt?(Gr=ht,ht=null):Gr=ht.sibling;var qs=ze(Ce,ht,Lt.value,Ye);if(qs===null){ht===null&&(ht=Gr);break}c&&ht&&qs.alternate===null&&d(Ce,ht),we=V(qs,we,bt),dt===null?lt=qs:dt.sibling=qs,dt=qs,ht=Gr}if(Lt.done)return y(Ce,ht),lr&&Yl(Ce,bt),lt;if(ht===null){for(;!Lt.done;bt++,Lt=Ee.next())Lt=qe(Ce,Lt.value,Ye),Lt!==null&&(we=V(Lt,we,bt),dt===null?lt=Lt:dt.sibling=Lt,dt=Lt);return lr&&Yl(Ce,bt),lt}for(ht=E(Ce,ht);!Lt.done;bt++,Lt=Ee.next())Lt=et(ht,Ce,bt,Lt.value,Ye),Lt!==null&&(c&&Lt.alternate!==null&&ht.delete(Lt.key===null?bt:Lt.key),we=V(Lt,we,bt),dt===null?lt=Lt:dt.sibling=Lt,dt=Lt);return c&&ht.forEach(function(YW){return d(Ce,YW)}),lr&&Yl(Ce,bt),lt}function Tr(Ce,we,Ee,Ye){if(typeof Ee=="object"&&Ee!==null&&Ee.type===M&&Ee.key===null&&(Ee=Ee.props.children),typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case A:e:{for(var lt=Ee.key,dt=we;dt!==null;){if(dt.key===lt){if(lt=Ee.type,lt===M){if(dt.tag===7){y(Ce,dt.sibling),we=N(dt,Ee.props.children),we.return=Ce,Ce=we;break e}}else if(dt.elementType===lt||typeof lt=="object"&<!==null&<.$$typeof===re&&o3(lt)===dt.type){y(Ce,dt.sibling),we=N(dt,Ee.props),we.ref=sh(Ce,dt,Ee),we.return=Ce,Ce=we;break e}y(Ce,dt);break}else d(Ce,dt);dt=dt.sibling}Ee.type===M?(we=nu(Ee.props.children,Ce.mode,Ye,Ee.key),we.return=Ce,Ce=we):(Ye=Xv(Ee.type,Ee.key,Ee.props,null,Ce.mode,Ye),Ye.ref=sh(Ce,we,Ee),Ye.return=Ce,Ce=Ye)}return oe(Ce);case j:e:{for(dt=Ee.key;we!==null;){if(we.key===dt)if(we.tag===4&&we.stateNode.containerInfo===Ee.containerInfo&&we.stateNode.implementation===Ee.implementation){y(Ce,we.sibling),we=N(we,Ee.children||[]),we.return=Ce,Ce=we;break e}else{y(Ce,we);break}else d(Ce,we);we=we.sibling}we=P1(Ee,Ce.mode,Ye),we.return=Ce,Ce=we}return oe(Ce);case re:return dt=Ee._init,Tr(Ce,we,dt(Ee._payload),Ye)}if(Ie(Ee))return nt(Ce,we,Ee,Ye);if($(Ee))return it(Ce,we,Ee,Ye);Ev(Ce,Ee)}return typeof Ee=="string"&&Ee!==""||typeof Ee=="number"?(Ee=""+Ee,we!==null&&we.tag===6?(y(Ce,we.sibling),we=N(we,Ee),we.return=Ce,Ce=we):(y(Ce,we),we=C1(Ee,Ce.mode,Ye),we.return=Ce,Ce=we),oe(Ce)):y(Ce,we)}return Tr}var kc=s3(!0),l3=s3(!1),Tv=Ns(null),jv=null,Rc=null,L_=null;function D_(){L_=Rc=jv=null}function I_(c){var d=Tv.current;nr(Tv),c._currentValue=d}function $_(c,d,y){for(;c!==null;){var E=c.alternate;if((c.childLanes&d)!==d?(c.childLanes|=d,E!==null&&(E.childLanes|=d)):E!==null&&(E.childLanes&d)!==d&&(E.childLanes|=d),c===y)break;c=c.return}}function Nc(c,d){jv=c,L_=Rc=null,c=c.dependencies,c!==null&&c.firstContext!==null&&((c.lanes&d)!==0&&(Bn=!0),c.firstContext=null)}function Ri(c){var d=c._currentValue;if(L_!==c)if(c={context:c,memoizedValue:d,next:null},Rc===null){if(jv===null)throw Error(r(308));Rc=c,jv.dependencies={lanes:0,firstContext:c}}else Rc=Rc.next=c;return d}var Zl=null;function F_(c){Zl===null?Zl=[c]:Zl.push(c)}function u3(c,d,y,E){var N=d.interleaved;return N===null?(y.next=y,F_(d)):(y.next=N.next,N.next=y),d.interleaved=y,Ro(c,E)}function Ro(c,d){c.lanes|=d;var y=c.alternate;for(y!==null&&(y.lanes|=d),y=c,c=c.return;c!==null;)c.childLanes|=d,y=c.alternate,y!==null&&(y.childLanes|=d),y=c,c=c.return;return y.tag===3?y.stateNode:null}var Ds=!1;function B_(c){c.updateQueue={baseState:c.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function c3(c,d){c=c.updateQueue,d.updateQueue===c&&(d.updateQueue={baseState:c.baseState,firstBaseUpdate:c.firstBaseUpdate,lastBaseUpdate:c.lastBaseUpdate,shared:c.shared,effects:c.effects})}function No(c,d){return{eventTime:c,lane:d,tag:0,payload:null,callback:null,next:null}}function Is(c,d,y){var E=c.updateQueue;if(E===null)return null;if(E=E.shared,(Nt&2)!==0){var N=E.pending;return N===null?d.next=d:(d.next=N.next,N.next=d),E.pending=d,Ro(c,y)}return N=E.interleaved,N===null?(d.next=d,F_(E)):(d.next=N.next,N.next=d),E.interleaved=d,Ro(c,y)}function Av(c,d,y){if(d=d.updateQueue,d!==null&&(d=d.shared,(y&4194240)!==0)){var E=d.lanes;E&=c.pendingLanes,y|=E,d.lanes=y,na(c,y)}}function f3(c,d){var y=c.updateQueue,E=c.alternate;if(E!==null&&(E=E.updateQueue,y===E)){var N=null,V=null;if(y=y.firstBaseUpdate,y!==null){do{var oe={eventTime:y.eventTime,lane:y.lane,tag:y.tag,payload:y.payload,callback:y.callback,next:null};V===null?N=V=oe:V=V.next=oe,y=y.next}while(y!==null);V===null?N=V=d:V=V.next=d}else N=V=d;y={baseState:E.baseState,firstBaseUpdate:N,lastBaseUpdate:V,shared:E.shared,effects:E.effects},c.updateQueue=y;return}c=y.lastBaseUpdate,c===null?y.firstBaseUpdate=d:c.next=d,y.lastBaseUpdate=d}function kv(c,d,y,E){var N=c.updateQueue;Ds=!1;var V=N.firstBaseUpdate,oe=N.lastBaseUpdate,me=N.shared.pending;if(me!==null){N.shared.pending=null;var be=me,Ae=be.next;be.next=null,oe===null?V=Ae:oe.next=Ae,oe=be;var Ve=c.alternate;Ve!==null&&(Ve=Ve.updateQueue,me=Ve.lastBaseUpdate,me!==oe&&(me===null?Ve.firstBaseUpdate=Ae:me.next=Ae,Ve.lastBaseUpdate=be))}if(V!==null){var qe=N.baseState;oe=0,Ve=Ae=be=null,me=V;do{var ze=me.lane,et=me.eventTime;if((E&ze)===ze){Ve!==null&&(Ve=Ve.next={eventTime:et,lane:0,tag:me.tag,payload:me.payload,callback:me.callback,next:null});e:{var nt=c,it=me;switch(ze=d,et=y,it.tag){case 1:if(nt=it.payload,typeof nt=="function"){qe=nt.call(et,qe,ze);break e}qe=nt;break e;case 3:nt.flags=nt.flags&-65537|128;case 0:if(nt=it.payload,ze=typeof nt=="function"?nt.call(et,qe,ze):nt,ze==null)break e;qe=F({},qe,ze);break e;case 2:Ds=!0}}me.callback!==null&&me.lane!==0&&(c.flags|=64,ze=N.effects,ze===null?N.effects=[me]:ze.push(me))}else et={eventTime:et,lane:ze,tag:me.tag,payload:me.payload,callback:me.callback,next:null},Ve===null?(Ae=Ve=et,be=qe):Ve=Ve.next=et,oe|=ze;if(me=me.next,me===null){if(me=N.shared.pending,me===null)break;ze=me,me=ze.next,ze.next=null,N.lastBaseUpdate=ze,N.shared.pending=null}}while(!0);if(Ve===null&&(be=qe),N.baseState=be,N.firstBaseUpdate=Ae,N.lastBaseUpdate=Ve,d=N.shared.interleaved,d!==null){N=d;do oe|=N.lane,N=N.next;while(N!==d)}else V===null&&(N.shared.lanes=0);Jl|=oe,c.lanes=oe,c.memoizedState=qe}}function d3(c,d,y){if(c=d.effects,d.effects=null,c!==null)for(d=0;dy?y:4,c(!0);var E=W_.transition;W_.transition={};try{c(!1),d()}finally{Rt=y,W_.transition=E}}function k3(){return Ni().memoizedState}function bW(c,d,y){var E=Us(c);if(y={lane:E,action:y,hasEagerState:!1,eagerState:null,next:null},R3(c))N3(d,y);else if(y=u3(c,d,y,E),y!==null){var N=On();da(y,c,E,N),M3(y,d,E)}}function _W(c,d,y){var E=Us(c),N={lane:E,action:y,hasEagerState:!1,eagerState:null,next:null};if(R3(c))N3(d,N);else{var V=c.alternate;if(c.lanes===0&&(V===null||V.lanes===0)&&(V=d.lastRenderedReducer,V!==null))try{var oe=d.lastRenderedState,me=V(oe,y);if(N.hasEagerState=!0,N.eagerState=me,ri(me,oe)){var be=d.interleaved;be===null?(N.next=N,F_(d)):(N.next=be.next,be.next=N),d.interleaved=N;return}}catch{}finally{}y=u3(c,d,N,E),y!==null&&(N=On(),da(y,c,E,N),M3(y,d,E))}}function R3(c){var d=c.alternate;return c===yr||d!==null&&d===yr}function N3(c,d){fh=Mv=!0;var y=c.pending;y===null?d.next=d:(d.next=y.next,y.next=d),c.pending=d}function M3(c,d,y){if((y&4194240)!==0){var E=d.lanes;E&=c.pendingLanes,y|=E,d.lanes=y,na(c,y)}}var Iv={readContext:Ri,useCallback:dn,useContext:dn,useEffect:dn,useImperativeHandle:dn,useInsertionEffect:dn,useLayoutEffect:dn,useMemo:dn,useReducer:dn,useRef:dn,useState:dn,useDebugValue:dn,useDeferredValue:dn,useTransition:dn,useMutableSource:dn,useSyncExternalStore:dn,useId:dn,unstable_isNewReconciler:!1},wW={readContext:Ri,useCallback:function(c,d){return qa().memoizedState=[c,d===void 0?null:d],c},useContext:Ri,useEffect:S3,useImperativeHandle:function(c,d,y){return y=y!=null?y.concat([c]):null,Lv(4194308,4,P3.bind(null,d,c),y)},useLayoutEffect:function(c,d){return Lv(4194308,4,c,d)},useInsertionEffect:function(c,d){return Lv(4,2,c,d)},useMemo:function(c,d){var y=qa();return d=d===void 0?null:d,c=c(),y.memoizedState=[c,d],c},useReducer:function(c,d,y){var E=qa();return d=y!==void 0?y(d):d,E.memoizedState=E.baseState=d,c={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:c,lastRenderedState:d},E.queue=c,c=c.dispatch=bW.bind(null,yr,c),[E.memoizedState,c]},useRef:function(c){var d=qa();return c={current:c},d.memoizedState=c},useState:w3,useDebugValue:Q_,useDeferredValue:function(c){return qa().memoizedState=c},useTransition:function(){var c=w3(!1),d=c[0];return c=yW.bind(null,c[1]),qa().memoizedState=c,[d,c]},useMutableSource:function(){},useSyncExternalStore:function(c,d,y){var E=yr,N=qa();if(lr){if(y===void 0)throw Error(r(407));y=y()}else{if(y=d(),Hr===null)throw Error(r(349));(Ql&30)!==0||v3(E,d,y)}N.memoizedState=y;var V={value:y,getSnapshot:d};return N.queue=V,S3(y3.bind(null,E,V,c),[c]),E.flags|=2048,ph(9,g3.bind(null,E,V,y,d),void 0,null),y},useId:function(){var c=qa(),d=Hr.identifierPrefix;if(lr){var y=ko,E=Ao;y=(E&~(1<<32-wt(E)-1)).toString(32)+y,d=":"+d+"R"+y,y=dh++,0<\/script>",c=c.removeChild(c.firstChild)):typeof E.is=="string"?c=oe.createElement(y,{is:E.is}):(c=oe.createElement(y),y==="select"&&(oe=c,E.multiple?oe.multiple=!0:E.size&&(oe.size=E.size))):c=oe.createElementNS(c,y),c[ji]=d,c[ks]=E,ek(c,d,!1,!1),d.stateNode=c;e:{switch(oe=Mn(y,E),y){case"dialog":qt("cancel",c),qt("close",c),N=E;break;case"iframe":case"object":case"embed":qt("load",c),N=E;break;case"video":case"audio":for(N=0;N$c&&(d.flags|=128,E=!0,mh(V,!1),d.lanes=4194304)}else{if(!E)if(c=Rv(oe),c!==null){if(d.flags|=128,E=!0,y=c.updateQueue,y!==null&&(d.updateQueue=y,d.flags|=4),mh(V,!0),V.tail===null&&V.tailMode==="hidden"&&!oe.alternate&&!lr)return hn(d),null}else 2*mr()-V.renderingStartTime>$c&&y!==1073741824&&(d.flags|=128,E=!0,mh(V,!1),d.lanes=4194304);V.isBackwards?(oe.sibling=d.child,d.child=oe):(y=V.last,y!==null?y.sibling=oe:d.child=oe,V.last=oe)}return V.tail!==null?(d=V.tail,V.rendering=d,V.tail=d.sibling,V.renderingStartTime=mr(),d.sibling=null,y=gr.current,Xt(gr,E?y&1|2:y&1),d):(hn(d),null);case 22:case 23:return x1(),E=d.memoizedState!==null,c!==null&&c.memoizedState!==null!==E&&(d.flags|=8192),E&&(d.mode&1)!==0?(oi&1073741824)!==0&&(hn(d),d.subtreeFlags&6&&(d.flags|=8192)):hn(d),null;case 24:return null;case 25:return null}throw Error(r(156,d.tag))}function jW(c,d){switch(k_(d),d.tag){case 1:return Fn(d.type)&&wv(),c=d.flags,c&65536?(d.flags=c&-65537|128,d):null;case 3:return Mc(),nr($n),nr(fn),q_(),c=d.flags,(c&65536)!==0&&(c&128)===0?(d.flags=c&-65537|128,d):null;case 5:return z_(d),null;case 13:if(nr(gr),c=d.memoizedState,c!==null&&c.dehydrated!==null){if(d.alternate===null)throw Error(r(340));Ac()}return c=d.flags,c&65536?(d.flags=c&-65537|128,d):null;case 19:return nr(gr),null;case 4:return Mc(),null;case 10:return I_(d.type._context),null;case 22:case 23:return x1(),null;case 24:return null;default:return null}}var Uv=!1,pn=!1,AW=typeof WeakSet=="function"?WeakSet:Set,tt=null;function Dc(c,d){var y=c.ref;if(y!==null)if(typeof y=="function")try{y(null)}catch(E){Sr(c,d,E)}else y.current=null}function c1(c,d,y){try{y()}catch(E){Sr(c,d,E)}}var nk=!1;function kW(c,d){if(Je=Fl,c=Qd(),Jd(c)){if("selectionStart"in c)var y={start:c.selectionStart,end:c.selectionEnd};else e:{y=(y=c.ownerDocument)&&y.defaultView||window;var E=y.getSelection&&y.getSelection();if(E&&E.rangeCount!==0){y=E.anchorNode;var N=E.anchorOffset,V=E.focusNode;E=E.focusOffset;try{y.nodeType,V.nodeType}catch{y=null;break e}var oe=0,me=-1,be=-1,Ae=0,Ve=0,qe=c,ze=null;t:for(;;){for(var et;qe!==y||N!==0&&qe.nodeType!==3||(me=oe+N),qe!==V||E!==0&&qe.nodeType!==3||(be=oe+E),qe.nodeType===3&&(oe+=qe.nodeValue.length),(et=qe.firstChild)!==null;)ze=qe,qe=et;for(;;){if(qe===c)break t;if(ze===y&&++Ae===N&&(me=oe),ze===V&&++Ve===E&&(be=oe),(et=qe.nextSibling)!==null)break;qe=ze,ze=qe.parentNode}qe=et}y=me===-1||be===-1?null:{start:me,end:be}}else y=null}y=y||{start:0,end:0}}else y=null;for(ft={focusedElem:c,selectionRange:y},Fl=!1,tt=d;tt!==null;)if(d=tt,c=d.child,(d.subtreeFlags&1028)!==0&&c!==null)c.return=d,tt=c;else for(;tt!==null;){d=tt;try{var nt=d.alternate;if((d.flags&1024)!==0)switch(d.tag){case 0:case 11:case 15:break;case 1:if(nt!==null){var it=nt.memoizedProps,Tr=nt.memoizedState,Ce=d.stateNode,we=Ce.getSnapshotBeforeUpdate(d.elementType===d.type?it:ua(d.type,it),Tr);Ce.__reactInternalSnapshotBeforeUpdate=we}break;case 3:var Ee=d.stateNode.containerInfo;Ee.nodeType===1?Ee.textContent="":Ee.nodeType===9&&Ee.documentElement&&Ee.removeChild(Ee.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Ye){Sr(d,d.return,Ye)}if(c=d.sibling,c!==null){c.return=d.return,tt=c;break}tt=d.return}return nt=nk,nk=!1,nt}function vh(c,d,y){var E=d.updateQueue;if(E=E!==null?E.lastEffect:null,E!==null){var N=E=E.next;do{if((N.tag&c)===c){var V=N.destroy;N.destroy=void 0,V!==void 0&&c1(d,y,V)}N=N.next}while(N!==E)}}function zv(c,d){if(d=d.updateQueue,d=d!==null?d.lastEffect:null,d!==null){var y=d=d.next;do{if((y.tag&c)===c){var E=y.create;y.destroy=E()}y=y.next}while(y!==d)}}function f1(c){var d=c.ref;if(d!==null){var y=c.stateNode;switch(c.tag){case 5:c=y;break;default:c=y}typeof d=="function"?d(c):d.current=c}}function ik(c){var d=c.alternate;d!==null&&(c.alternate=null,ik(d)),c.child=null,c.deletions=null,c.sibling=null,c.tag===5&&(d=c.stateNode,d!==null&&(delete d[ji],delete d[ks],delete d[Rs],delete d[P_],delete d[E_])),c.stateNode=null,c.return=null,c.dependencies=null,c.memoizedProps=null,c.memoizedState=null,c.pendingProps=null,c.stateNode=null,c.updateQueue=null}function ak(c){return c.tag===5||c.tag===3||c.tag===4}function ok(c){e:for(;;){for(;c.sibling===null;){if(c.return===null||ak(c.return))return null;c=c.return}for(c.sibling.return=c.return,c=c.sibling;c.tag!==5&&c.tag!==6&&c.tag!==18;){if(c.flags&2||c.child===null||c.tag===4)continue e;c.child.return=c,c=c.child}if(!(c.flags&2))return c.stateNode}}function d1(c,d,y){var E=c.tag;if(E===5||E===6)c=c.stateNode,d?y.nodeType===8?y.parentNode.insertBefore(c,d):y.insertBefore(c,d):(y.nodeType===8?(d=y.parentNode,d.insertBefore(c,y)):(d=y,d.appendChild(c)),y=y._reactRootContainer,y!=null||d.onclick!==null||(d.onclick=Be));else if(E!==4&&(c=c.child,c!==null))for(d1(c,d,y),c=c.sibling;c!==null;)d1(c,d,y),c=c.sibling}function h1(c,d,y){var E=c.tag;if(E===5||E===6)c=c.stateNode,d?y.insertBefore(c,d):y.appendChild(c);else if(E!==4&&(c=c.child,c!==null))for(h1(c,d,y),c=c.sibling;c!==null;)h1(c,d,y),c=c.sibling}var tn=null,ca=!1;function $s(c,d,y){for(y=y.child;y!==null;)sk(c,d,y),y=y.sibling}function sk(c,d,y){if(Zn&&typeof Zn.onCommitFiberUnmount=="function")try{Zn.onCommitFiberUnmount(Nl,y)}catch{}switch(y.tag){case 5:pn||Dc(y,d);case 6:var E=tn,N=ca;tn=null,$s(c,d,y),tn=E,ca=N,tn!==null&&(ca?(c=tn,y=y.stateNode,c.nodeType===8?c.parentNode.removeChild(y):c.removeChild(y)):tn.removeChild(y.stateNode));break;case 18:tn!==null&&(ca?(c=tn,y=y.stateNode,c.nodeType===8?oh(c.parentNode,y):c.nodeType===1&&oh(c,y),Jn(c)):oh(tn,y.stateNode));break;case 4:E=tn,N=ca,tn=y.stateNode.containerInfo,ca=!0,$s(c,d,y),tn=E,ca=N;break;case 0:case 11:case 14:case 15:if(!pn&&(E=y.updateQueue,E!==null&&(E=E.lastEffect,E!==null))){N=E=E.next;do{var V=N,oe=V.destroy;V=V.tag,oe!==void 0&&((V&2)!==0||(V&4)!==0)&&c1(y,d,oe),N=N.next}while(N!==E)}$s(c,d,y);break;case 1:if(!pn&&(Dc(y,d),E=y.stateNode,typeof E.componentWillUnmount=="function"))try{E.props=y.memoizedProps,E.state=y.memoizedState,E.componentWillUnmount()}catch(me){Sr(y,d,me)}$s(c,d,y);break;case 21:$s(c,d,y);break;case 22:y.mode&1?(pn=(E=pn)||y.memoizedState!==null,$s(c,d,y),pn=E):$s(c,d,y);break;default:$s(c,d,y)}}function lk(c){var d=c.updateQueue;if(d!==null){c.updateQueue=null;var y=c.stateNode;y===null&&(y=c.stateNode=new AW),d.forEach(function(E){var N=BW.bind(null,c,E);y.has(E)||(y.add(E),E.then(N,N))})}}function fa(c,d){var y=d.deletions;if(y!==null)for(var E=0;EN&&(N=oe),E&=~V}if(E=N,E=mr()-E,E=(120>E?120:480>E?480:1080>E?1080:1920>E?1920:3e3>E?3e3:4320>E?4320:1960*NW(E/1960))-E,10c?16:c,Bs===null)var E=!1;else{if(c=Bs,Bs=null,Gv=0,(Nt&6)!==0)throw Error(r(331));var N=Nt;for(Nt|=4,tt=c.current;tt!==null;){var V=tt,oe=V.child;if((tt.flags&16)!==0){var me=V.deletions;if(me!==null){for(var be=0;bemr()-v1?tu(c,0):m1|=y),zn(c,d)}function wk(c,d){d===0&&((c.mode&1)===0?d=1:(d=ps,ps<<=1,(ps&130023424)===0&&(ps=4194304)));var y=On();c=Ro(c,d),c!==null&&(Xn(c,d,y),zn(c,y))}function FW(c){var d=c.memoizedState,y=0;d!==null&&(y=d.retryLane),wk(c,y)}function BW(c,d){var y=0;switch(c.tag){case 13:var E=c.stateNode,N=c.memoizedState;N!==null&&(y=N.retryLane);break;case 19:E=c.stateNode;break;default:throw Error(r(314))}E!==null&&E.delete(d),wk(c,y)}var xk;xk=function(c,d,y){if(c!==null)if(c.memoizedProps!==d.pendingProps||$n.current)Bn=!0;else{if((c.lanes&y)===0&&(d.flags&128)===0)return Bn=!1,EW(c,d,y);Bn=(c.flags&131072)!==0}else Bn=!1,lr&&(d.flags&1048576)!==0&&t3(d,Cv,d.index);switch(d.lanes=0,d.tag){case 2:var E=d.type;Bv(c,d),c=d.pendingProps;var N=Ec(d,fn.current);Nc(d,y),N=G_(null,d,E,c,N,y);var V=K_();return d.flags|=1,typeof N=="object"&&N!==null&&typeof N.render=="function"&&N.$$typeof===void 0?(d.tag=1,d.memoizedState=null,d.updateQueue=null,Fn(E)?(V=!0,xv(d)):V=!1,d.memoizedState=N.state!==null&&N.state!==void 0?N.state:null,B_(d),N.updater=$v,d.stateNode=N,N._reactInternals=d,e1(d,E,c,y),d=i1(null,d,E,!0,V,y)):(d.tag=0,lr&&V&&A_(d),Sn(null,d,N,y),d=d.child),d;case 16:E=d.elementType;e:{switch(Bv(c,d),c=d.pendingProps,N=E._init,E=N(E._payload),d.type=E,N=d.tag=zW(E),c=ua(E,c),N){case 0:d=n1(null,d,E,c,y);break e;case 1:d=K3(null,d,E,c,y);break e;case 11:d=V3(null,d,E,c,y);break e;case 14:d=q3(null,d,E,ua(E.type,c),y);break e}throw Error(r(306,E,""))}return d;case 0:return E=d.type,N=d.pendingProps,N=d.elementType===E?N:ua(E,N),n1(c,d,E,N,y);case 1:return E=d.type,N=d.pendingProps,N=d.elementType===E?N:ua(E,N),K3(c,d,E,N,y);case 3:e:{if(Y3(d),c===null)throw Error(r(387));E=d.pendingProps,V=d.memoizedState,N=V.element,c3(c,d),kv(d,E,null,y);var oe=d.memoizedState;if(E=oe.element,V.isDehydrated)if(V={element:E,isDehydrated:!1,cache:oe.cache,pendingSuspenseBoundaries:oe.pendingSuspenseBoundaries,transitions:oe.transitions},d.updateQueue.baseState=V,d.memoizedState=V,d.flags&256){N=Lc(Error(r(423)),d),d=Z3(c,d,E,y,N);break e}else if(E!==N){N=Lc(Error(r(424)),d),d=Z3(c,d,E,y,N);break e}else for(ai=za(d.stateNode.containerInfo.firstChild),ii=d,lr=!0,la=null,y=l3(d,null,E,y),d.child=y;y;)y.flags=y.flags&-3|4096,y=y.sibling;else{if(Ac(),E===N){d=Mo(c,d,y);break e}Sn(c,d,E,y)}d=d.child}return d;case 5:return h3(d),c===null&&N_(d),E=d.type,N=d.pendingProps,V=c!==null?c.memoizedProps:null,oe=N.children,Ot(E,N)?oe=null:V!==null&&Ot(E,V)&&(d.flags|=32),G3(c,d),Sn(c,d,oe,y),d.child;case 6:return c===null&&N_(d),null;case 13:return X3(c,d,y);case 4:return U_(d,d.stateNode.containerInfo),E=d.pendingProps,c===null?d.child=kc(d,null,E,y):Sn(c,d,E,y),d.child;case 11:return E=d.type,N=d.pendingProps,N=d.elementType===E?N:ua(E,N),V3(c,d,E,N,y);case 7:return Sn(c,d,d.pendingProps,y),d.child;case 8:return Sn(c,d,d.pendingProps.children,y),d.child;case 12:return Sn(c,d,d.pendingProps.children,y),d.child;case 10:e:{if(E=d.type._context,N=d.pendingProps,V=d.memoizedProps,oe=N.value,Xt(Tv,E._currentValue),E._currentValue=oe,V!==null)if(ri(V.value,oe)){if(V.children===N.children&&!$n.current){d=Mo(c,d,y);break e}}else for(V=d.child,V!==null&&(V.return=d);V!==null;){var me=V.dependencies;if(me!==null){oe=V.child;for(var be=me.firstContext;be!==null;){if(be.context===E){if(V.tag===1){be=No(-1,y&-y),be.tag=2;var Ae=V.updateQueue;if(Ae!==null){Ae=Ae.shared;var Ve=Ae.pending;Ve===null?be.next=be:(be.next=Ve.next,Ve.next=be),Ae.pending=be}}V.lanes|=y,be=V.alternate,be!==null&&(be.lanes|=y),$_(V.return,y,d),me.lanes|=y;break}be=be.next}}else if(V.tag===10)oe=V.type===d.type?null:V.child;else if(V.tag===18){if(oe=V.return,oe===null)throw Error(r(341));oe.lanes|=y,me=oe.alternate,me!==null&&(me.lanes|=y),$_(oe,y,d),oe=V.sibling}else oe=V.child;if(oe!==null)oe.return=V;else for(oe=V;oe!==null;){if(oe===d){oe=null;break}if(V=oe.sibling,V!==null){V.return=oe.return,oe=V;break}oe=oe.return}V=oe}Sn(c,d,N.children,y),d=d.child}return d;case 9:return N=d.type,E=d.pendingProps.children,Nc(d,y),N=Ri(N),E=E(N),d.flags|=1,Sn(c,d,E,y),d.child;case 14:return E=d.type,N=ua(E,d.pendingProps),N=ua(E.type,N),q3(c,d,E,N,y);case 15:return W3(c,d,d.type,d.pendingProps,y);case 17:return E=d.type,N=d.pendingProps,N=d.elementType===E?N:ua(E,N),Bv(c,d),d.tag=1,Fn(E)?(c=!0,xv(d)):c=!1,Nc(d,y),D3(d,E,N),e1(d,E,N,y),i1(null,d,E,!0,c,y);case 19:return J3(c,d,y);case 22:return H3(c,d,y)}throw Error(r(156,d.tag))};function Sk(c,d){return Zm(c,d)}function UW(c,d,y,E){this.tag=c,this.key=y,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=d,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=E,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Li(c,d,y,E){return new UW(c,d,y,E)}function O1(c){return c=c.prototype,!(!c||!c.isReactComponent)}function zW(c){if(typeof c=="function")return O1(c)?1:0;if(c!=null){if(c=c.$$typeof,c===te)return 11;if(c===ee)return 14}return 2}function Vs(c,d){var y=c.alternate;return y===null?(y=Li(c.tag,d,c.key,c.mode),y.elementType=c.elementType,y.type=c.type,y.stateNode=c.stateNode,y.alternate=c,c.alternate=y):(y.pendingProps=d,y.type=c.type,y.flags=0,y.subtreeFlags=0,y.deletions=null),y.flags=c.flags&14680064,y.childLanes=c.childLanes,y.lanes=c.lanes,y.child=c.child,y.memoizedProps=c.memoizedProps,y.memoizedState=c.memoizedState,y.updateQueue=c.updateQueue,d=c.dependencies,y.dependencies=d===null?null:{lanes:d.lanes,firstContext:d.firstContext},y.sibling=c.sibling,y.index=c.index,y.ref=c.ref,y}function Xv(c,d,y,E,N,V){var oe=2;if(E=c,typeof c=="function")O1(c)&&(oe=1);else if(typeof c=="string")oe=5;else e:switch(c){case M:return nu(y.children,N,V,d);case q:oe=8,N|=8;break;case H:return c=Li(12,y,d,N|2),c.elementType=H,c.lanes=V,c;case se:return c=Li(13,y,d,N),c.elementType=se,c.lanes=V,c;case X:return c=Li(19,y,d,N),c.elementType=X,c.lanes=V,c;case U:return Qv(y,N,V,d);default:if(typeof c=="object"&&c!==null)switch(c.$$typeof){case W:oe=10;break e;case K:oe=9;break e;case te:oe=11;break e;case ee:oe=14;break e;case re:oe=16,E=null;break e}throw Error(r(130,c==null?c:typeof c,""))}return d=Li(oe,y,d,N),d.elementType=c,d.type=E,d.lanes=V,d}function nu(c,d,y,E){return c=Li(7,c,E,d),c.lanes=y,c}function Qv(c,d,y,E){return c=Li(22,c,E,d),c.elementType=U,c.lanes=y,c.stateNode={isHidden:!1},c}function C1(c,d,y){return c=Li(6,c,null,d),c.lanes=y,c}function P1(c,d,y){return d=Li(4,c.children!==null?c.children:[],c.key,d),d.lanes=y,d.stateNode={containerInfo:c.containerInfo,pendingChildren:null,implementation:c.implementation},d}function VW(c,d,y,E,N){this.tag=d,this.containerInfo=c,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ms(0),this.expirationTimes=ms(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ms(0),this.identifierPrefix=E,this.onRecoverableError=N,this.mutableSourceEagerHydrationData=null}function E1(c,d,y,E,N,V,oe,me,be){return c=new VW(c,d,y,me,be),d===1?(d=1,V===!0&&(d|=8)):d=0,V=Li(3,null,null,d),c.current=V,V.stateNode=c,V.memoizedState={element:E,isDehydrated:y,cache:null,transitions:null,pendingSuspenseBoundaries:null},B_(V),c}function qW(c,d,y){var E=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),N1.exports=nH(),N1.exports}var Ik;function iH(){if(Ik)return og;Ik=1;var e=t$();return og.createRoot=e.createRoot,og.hydrateRoot=e.hydrateRoot,og}var aH=iH(),B=q0();const ie=kt(B);var D1={exports:{}},I1={};/** * @license React * use-sync-external-store-with-selector.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var $k;function oH(){if($k)return I1;$k=1;var e=q0();function t(u,l){return u===l&&(u!==0||1/u===1/l)||u!==u&&l!==l}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,o=e.useMemo,s=e.useDebugValue;return I1.useSyncExternalStoreWithSelector=function(u,l,h,p,v){var w=i(null);if(w.current===null){var _={hasValue:!1,value:null};w.current=_}else _=w.current;w=o(function(){function x(A){if(!S){if(S=!0,O=A,A=p(A),v!==void 0&&_.hasValue){var j=_.value;if(v(j,A))return P=j}return P=A}if(j=P,r(O,A))return j;var M=p(A);return v!==void 0&&v(j,M)?(O=A,j):(O=A,P=M)}var S=!1,O,P,T=h===void 0?null:h;return[function(){return x(l())},T===null?void 0:function(){return x(T())}]},[l,h,p,v]);var b=n(u,w[0],w[1]);return a(function(){_.hasValue=!0,_.value=b},[b]),s(b),b},I1}var Fk;function sH(){return Fk||(Fk=1,D1.exports=oH()),D1.exports}sH();var lH=B.version.startsWith("19"),uH=Symbol.for(lH?"react.transitional.element":"react.element"),cH=Symbol.for("react.portal"),fH=Symbol.for("react.fragment"),dH=Symbol.for("react.strict_mode"),hH=Symbol.for("react.profiler"),pH=Symbol.for("react.consumer"),mH=Symbol.for("react.context"),r$=Symbol.for("react.forward_ref"),vH=Symbol.for("react.suspense"),gH=Symbol.for("react.suspense_list"),rT=Symbol.for("react.memo"),yH=Symbol.for("react.lazy"),bH=r$,_H=rT;function wH(e){if(typeof e=="object"&&e!==null){const{$$typeof:t}=e;switch(t){case uH:switch(e=e.type,e){case fH:case hH:case dH:case vH:case gH:return e;default:switch(e=e&&e.$$typeof,e){case mH:case r$:case yH:case rT:return e;case pH:return e;default:return t}}case cH:return t}}}function xH(e){return wH(e)===rT}function SH(e,t,r,n,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:o}){let s=!1,u,l,h,p,v;function w(O,P){return u=O,l=P,h=e(u,l),p=t(n,l),v=r(h,p,l),s=!0,v}function _(){return h=e(u,l),t.dependsOnOwnProps&&(p=t(n,l)),v=r(h,p,l),v}function b(){return e.dependsOnOwnProps&&(h=e(u,l)),t.dependsOnOwnProps&&(p=t(n,l)),v=r(h,p,l),v}function x(){const O=e(u,l),P=!o(O,h);return h=O,P&&(v=r(h,p,l)),v}function S(O,P){const T=!a(P,l),A=!i(O,u,P,l);return u=O,l=P,T&&A?_():T?b():A?x():v}return function(P,T){return s?S(P,T):w(P,T)}}function OH(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:n,...i}){const a=t(e,i),o=r(e,i),s=n(e,i);return SH(a,o,s,e,i)}function CH(e,t){const r={};for(const n in e){const i=e[n];typeof i=="function"&&(r[n]=(...a)=>t(i(...a)))}return r}function PO(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function Bk(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function n$(e,t){return function(n,{displayName:i}){const a=function(s,u){return a.dependsOnOwnProps?a.mapToProps(s,u):a.mapToProps(s,void 0)};return a.dependsOnOwnProps=!0,a.mapToProps=function(s,u){a.mapToProps=e,a.dependsOnOwnProps=Bk(e);let l=a(s,u);return typeof l=="function"&&(a.mapToProps=l,a.dependsOnOwnProps=Bk(l),l=a(s,u)),l},a}}function nT(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function PH(e){return e&&typeof e=="object"?PO(t=>CH(e,t)):e?typeof e=="function"?n$(e):nT(e,"mapDispatchToProps"):PO(t=>({dispatch:t}))}function EH(e){return e?typeof e=="function"?n$(e):nT(e,"mapStateToProps"):PO(()=>({}))}function TH(e,t,r){return{...r,...e,...t}}function jH(e){return function(r,{displayName:n,areMergedPropsEqual:i}){let a=!1,o;return function(u,l,h){const p=e(u,l,h);return a?i(p,o)||(o=p):(a=!0,o=p),o}}}function AH(e){return e?typeof e=="function"?jH(e):nT(e,"mergeProps"):()=>TH}function kH(e){e()}function RH(){let e=null,t=null;return{clear(){e=null,t=null},notify(){kH(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Uk={notify(){},get:()=>[]};function i$(e,t){let r,n=Uk,i=0,a=!1;function o(b){h();const x=n.subscribe(b);let S=!1;return()=>{S||(S=!0,x(),p())}}function s(){n.notify()}function u(){_.onStateChange&&_.onStateChange()}function l(){return a}function h(){i++,r||(r=t?t.addNestedSub(u):e.subscribe(u),n=RH())}function p(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=Uk)}function v(){a||(a=!0,h())}function w(){a&&(a=!1,p())}const _={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:u,isSubscribed:l,trySubscribe:v,tryUnsubscribe:w,getListeners:()=>n};return _}var NH=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",MH=NH(),LH=()=>typeof navigator<"u"&&navigator.product==="ReactNative",DH=LH(),IH=()=>MH||DH?B.useLayoutEffect:B.useEffect,Zg=IH();function zk(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function $1(e,t){if(zk(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;ie(...t),r)}function YH(e,t,r,n,i,a){e.current=n,r.current=!1,i.current&&(i.current=null,a())}function ZH(e,t,r,n,i,a,o,s,u,l,h){if(!e)return()=>{};let p=!1,v=null;const w=()=>{if(p||!s.current)return;const b=t.getState();let x,S;try{x=n(b,i.current)}catch(O){S=O,v=O}S||(v=null),x===a.current?o.current||l():(a.current=x,u.current=x,o.current=!0,h())};return r.onStateChange=w,r.trySubscribe(),w(),()=>{if(p=!0,r.tryUnsubscribe(),r.onStateChange=null,v)throw v}}function XH(e,t){return e===t}function QH(e,t,r,{pure:n,areStatesEqual:i=XH,areOwnPropsEqual:a=$1,areStatePropsEqual:o=$1,areMergedPropsEqual:s=$1,forwardRef:u=!1,context:l=o$}={}){const h=l,p=EH(e),v=PH(t),w=AH(r),_=!!e;return x=>{const S=x.displayName||x.name||"Component",O=`Connect(${S})`,P={shouldHandleStateChanges:_,displayName:O,wrappedComponentName:S,WrappedComponent:x,initMapStateToProps:p,initMapDispatchToProps:v,initMergeProps:w,areStatesEqual:i,areStatePropsEqual:o,areOwnPropsEqual:a,areMergedPropsEqual:s};function T(M){const[q,H,W]=B.useMemo(()=>{const{reactReduxForwardedRef:Y,...ue}=M;return[M.context,Y,ue]},[M]),K=B.useMemo(()=>{let Y=h;return q!=null&&q.Consumer,Y},[q,h]),te=B.useContext(K),se=!!M.store&&!!M.store.getState&&!!M.store.dispatch,X=!!te&&!!te.store,ee=se?M.store:te.store,re=X?te.getServerState:ee.getState,U=B.useMemo(()=>OH(ee.dispatch,P),[ee]),[I,$]=B.useMemo(()=>{if(!_)return GH;const Y=i$(ee,se?void 0:te.subscription),ue=Y.notifyNestedSubs.bind(Y);return[Y,ue]},[ee,se,te]),F=B.useMemo(()=>se?te:{...te,subscription:I},[se,te,I]),k=B.useRef(void 0),Z=B.useRef(W),Q=B.useRef(void 0),ae=B.useRef(!1),fe=B.useRef(!1),de=B.useRef(void 0);Zg(()=>(fe.current=!0,()=>{fe.current=!1}),[]);const ve=B.useMemo(()=>()=>Q.current&&W===Z.current?Q.current:U(ee.getState(),W),[ee,W]),D=B.useMemo(()=>ue=>I?ZH(_,ee,I,U,Z,k,ae,fe,Q,$,ue):()=>{},[I]);KH(YH,[Z,k,ae,W,Q,$]);let z;try{z=B.useSyncExternalStore(D,ve,re?()=>U(re(),W):ve)}catch(Y){throw de.current&&(Y.message+=` The error may be correlated with this previous error: ${de.current.stack} `),Y}Zg(()=>{de.current=void 0,Q.current=void 0,k.current=z});const J=B.useMemo(()=>B.createElement(x,{...z,ref:H}),[H,x,z]);return B.useMemo(()=>_?B.createElement(K.Provider,{value:F},J):J,[K,J,F])}const j=B.memo(T);if(j.WrappedComponent=x,j.displayName=T.displayName=O,u){const q=B.forwardRef(function(W,K){return B.createElement(j,{...W,reactReduxForwardedRef:K})});return q.displayName=O,q.WrappedComponent=x,EO(q,x)}return EO(j,x)}}var s$=QH;function JH(e){const{children:t,context:r,serverState:n,store:i}=e,a=B.useMemo(()=>{const u=i$(i);return{store:i,subscription:u,getServerState:n?()=>n:void 0}},[i,n]),o=B.useMemo(()=>i.getState(),[i]);Zg(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),o!==i.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,o]);const s=r||o$;return B.createElement(s.Provider,{value:a},t)}var l$=JH,xh={},Hk;function eG(){if(Hk)return xh;Hk=1,Object.defineProperty(xh,"__esModule",{value:!0}),xh.parse=o,xh.serialize=l;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,n=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,a=(()=>{const v=function(){};return v.prototype=Object.create(null),v})();function o(v,w){const _=new a,b=v.length;if(b<2)return _;const x=(w==null?void 0:w.decode)||h;let S=0;do{const O=v.indexOf("=",S);if(O===-1)break;const P=v.indexOf(";",S),T=P===-1?b:P;if(O>T){S=v.lastIndexOf(";",O-1)+1;continue}const A=s(v,S,O),j=u(v,O,A),M=v.slice(A,j);if(_[M]===void 0){let q=s(v,O+1,T),H=u(v,T,q);const W=x(v.slice(q,H));_[M]=W}S=T+1}while(S_;){const b=v.charCodeAt(--w);if(b!==32&&b!==9)return w+1}return _}function l(v,w,_){const b=(_==null?void 0:_.encode)||encodeURIComponent;if(!e.test(v))throw new TypeError(`argument name is invalid: ${v}`);const x=b(w);if(!t.test(x))throw new TypeError(`argument val is invalid: ${w}`);let S=v+"="+x;if(!_)return S;if(_.maxAge!==void 0){if(!Number.isInteger(_.maxAge))throw new TypeError(`option maxAge is invalid: ${_.maxAge}`);S+="; Max-Age="+_.maxAge}if(_.domain){if(!r.test(_.domain))throw new TypeError(`option domain is invalid: ${_.domain}`);S+="; Domain="+_.domain}if(_.path){if(!n.test(_.path))throw new TypeError(`option path is invalid: ${_.path}`);S+="; Path="+_.path}if(_.expires){if(!p(_.expires)||!Number.isFinite(_.expires.valueOf()))throw new TypeError(`option expires is invalid: ${_.expires}`);S+="; Expires="+_.expires.toUTCString()}if(_.httpOnly&&(S+="; HttpOnly"),_.secure&&(S+="; Secure"),_.partitioned&&(S+="; Partitioned"),_.priority)switch(typeof _.priority=="string"?_.priority.toLowerCase():void 0){case"low":S+="; Priority=Low";break;case"medium":S+="; Priority=Medium";break;case"high":S+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${_.priority}`)}if(_.sameSite)switch(typeof _.sameSite=="string"?_.sameSite.toLowerCase():_.sameSite){case!0:case"strict":S+="; SameSite=Strict";break;case"lax":S+="; SameSite=Lax";break;case"none":S+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${_.sameSite}`)}return S}function h(v){if(v.indexOf("%")===-1)return v;try{return decodeURIComponent(v)}catch{return v}}function p(v){return i.call(v)==="[object Date]"}return xh}eG();/** * react-router v7.5.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */var Gk="popstate";function tG(e={}){function t(n,i){let{pathname:a,search:o,hash:s}=n.location;return TO("",{pathname:a,search:o,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:vp(i)}return nG(t,r,null,e)}function cr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function xa(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function rG(){return Math.random().toString(36).substring(2,10)}function Kk(e,t){return{usr:e.state,key:e.key,idx:t}}function TO(e,t,r=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ld(t):t,state:r,key:t&&t.key||n||rG()}}function vp({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function ld(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function nG(e,t,r,n={}){let{window:i=document.defaultView,v5Compat:a=!1}=n,o=i.history,s="POP",u=null,l=h();l==null&&(l=0,o.replaceState({...o.state,idx:l},""));function h(){return(o.state||{idx:null}).idx}function p(){s="POP";let x=h(),S=x==null?null:x-l;l=x,u&&u({action:s,location:b.location,delta:S})}function v(x,S){s="PUSH";let O=TO(b.location,x,S);l=h()+1;let P=Kk(O,l),T=b.createHref(O);try{o.pushState(P,"",T)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;i.location.assign(T)}a&&u&&u({action:s,location:b.location,delta:1})}function w(x,S){s="REPLACE";let O=TO(b.location,x,S);l=h();let P=Kk(O,l),T=b.createHref(O);o.replaceState(P,"",T),a&&u&&u({action:s,location:b.location,delta:0})}function _(x){let S=i.location.origin!=="null"?i.location.origin:i.location.href,O=typeof x=="string"?x:vp(x);return O=O.replace(/ $/,"%20"),cr(S,`No window.location.(origin|href) available to create URL for href: ${O}`),new URL(O,S)}let b={get action(){return s},get location(){return e(i,o)},listen(x){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(Gk,p),u=x,()=>{i.removeEventListener(Gk,p),u=null}},createHref(x){return t(i,x)},createURL:_,encodeLocation(x){let S=_(x);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:v,replace:w,go(x){return o.go(x)}};return b}function u$(e,t,r="/"){return iG(e,t,r,!1)}function iG(e,t,r,n){let i=typeof t=="string"?ld(t):t,a=Go(i.pathname||"/",r);if(a==null)return null;let o=c$(e);aG(o);let s=null;for(let u=0;s==null&&u{let u={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};u.relativePath.startsWith("/")&&(cr(u.relativePath.startsWith(n),`Absolute route path "${u.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(n.length));let l=zo([n,u.relativePath]),h=r.concat(u);a.children&&a.children.length>0&&(cr(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),c$(a.children,t,h,l)),!(a.path==null&&!a.index)&&t.push({path:l,score:dG(l,a.index),routesMeta:h})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let u of f$(a.path))i(a,o,u)}),t}function f$(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return i?[a,""]:[a];let o=f$(n.join("/")),s=[];return s.push(...o.map(u=>u===""?a:[a,u].join("/"))),i&&s.push(...o),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function aG(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:hG(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var oG=/^:[\w-]+$/,sG=3,lG=2,uG=1,cG=10,fG=-2,Yk=e=>e==="*";function dG(e,t){let r=e.split("/"),n=r.length;return r.some(Yk)&&(n+=fG),t&&(n+=lG),r.filter(i=>!Yk(i)).reduce((i,a)=>i+(oG.test(a)?sG:a===""?uG:cG),n)}function hG(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function pG(e,t,r=!1){let{routesMeta:n}=e,i={},a="/",o=[];for(let s=0;s{if(h==="*"){let _=s[v]||"";o=a.slice(0,a.length-_.length).replace(/(.)\/+$/,"$1")}const w=s[v];return p&&!w?l[h]=void 0:l[h]=(w||"").replace(/%2F/g,"/"),l},{}),pathname:a,pathnameBase:o,pattern:e}}function mG(e,t=!1,r=!0){xa(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,u)=>(n.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function vG(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return xa(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Go(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function gG(e,t="/"){let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?ld(e):e;return{pathname:r?r.startsWith("/")?r:yG(r,t):t,search:wG(n),hash:xG(i)}}function yG(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function U1(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function bG(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function iT(e){let t=bG(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function aT(e,t,r,n=!1){let i;typeof e=="string"?i=ld(e):(i={...e},cr(!i.pathname||!i.pathname.includes("?"),U1("?","pathname","search",i)),cr(!i.pathname||!i.pathname.includes("#"),U1("#","pathname","hash",i)),cr(!i.search||!i.search.includes("#"),U1("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(o==null)s=r;else{let p=t.length-1;if(!n&&o.startsWith("..")){let v=o.split("/");for(;v[0]==="..";)v.shift(),p-=1;i.pathname=v.join("/")}s=p>=0?t[p]:"/"}let u=gG(i,s),l=o&&o!=="/"&&o.endsWith("/"),h=(a||o===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(l||h)&&(u.pathname+="/"),u}var zo=e=>e.join("/").replace(/\/\/+/g,"/"),_G=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),wG=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,xG=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function SG(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var d$=["POST","PUT","PATCH","DELETE"];new Set(d$);var OG=["GET",...d$];new Set(OG);var ud=B.createContext(null);ud.displayName="DataRouter";var W0=B.createContext(null);W0.displayName="DataRouterState";var h$=B.createContext({isTransitioning:!1});h$.displayName="ViewTransition";var CG=B.createContext(new Map);CG.displayName="Fetchers";var PG=B.createContext(null);PG.displayName="Await";var Ca=B.createContext(null);Ca.displayName="Navigation";var mm=B.createContext(null);mm.displayName="Location";var Pa=B.createContext({outlet:null,matches:[],isDataRoute:!1});Pa.displayName="Route";var oT=B.createContext(null);oT.displayName="RouteError";function EG(e,{relative:t}={}){cr(Hu(),"useHref() may be used only in the context of a component.");let{basename:r,navigator:n}=B.useContext(Ca),{hash:i,pathname:a,search:o}=vm(e,{relative:t}),s=a;return r!=="/"&&(s=a==="/"?r:zo([r,a])),n.createHref({pathname:s,search:o,hash:i})}function Hu(){return B.useContext(mm)!=null}function bn(){return cr(Hu(),"useLocation() may be used only in the context of a component."),B.useContext(mm).location}var p$="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function m$(e){B.useContext(Ca).static||B.useLayoutEffect(e)}function fo(){let{isDataRoute:e}=B.useContext(Pa);return e?BG():TG()}function TG(){cr(Hu(),"useNavigate() may be used only in the context of a component.");let e=B.useContext(ud),{basename:t,navigator:r}=B.useContext(Ca),{matches:n}=B.useContext(Pa),{pathname:i}=bn(),a=JSON.stringify(iT(n)),o=B.useRef(!1);return m$(()=>{o.current=!0}),B.useCallback((u,l={})=>{if(xa(o.current,p$),!o.current)return;if(typeof u=="number"){r.go(u);return}let h=aT(u,JSON.parse(a),i,l.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:zo([t,h.pathname])),(l.replace?r.replace:r.push)(h,l.state,l)},[t,r,a,i,e])}B.createContext(null);function cd(){let{matches:e}=B.useContext(Pa),t=e[e.length-1];return t?t.params:{}}function vm(e,{relative:t}={}){let{matches:r}=B.useContext(Pa),{pathname:n}=bn(),i=JSON.stringify(iT(r));return B.useMemo(()=>aT(e,JSON.parse(i),n,t==="path"),[e,i,n,t])}function jG(e,t){return v$(e,t)}function v$(e,t,r,n){var O;cr(Hu(),"useRoutes() may be used only in the context of a component.");let{navigator:i,static:a}=B.useContext(Ca),{matches:o}=B.useContext(Pa),s=o[o.length-1],u=s?s.params:{},l=s?s.pathname:"/",h=s?s.pathnameBase:"/",p=s&&s.route;{let P=p&&p.path||"";g$(l,!p||P.endsWith("*")||P.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${l}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. Please change the parent to .`)}let v=bn(),w;if(t){let P=typeof t=="string"?ld(t):t;cr(h==="/"||((O=P.pathname)==null?void 0:O.startsWith(h)),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${h}" but pathname "${P.pathname}" was given in the \`location\` prop.`),w=P}else w=v;let _=w.pathname||"/",b=_;if(h!=="/"){let P=h.replace(/^\//,"").split("/");b="/"+_.replace(/^\//,"").split("/").slice(P.length).join("/")}let x=!a&&r&&r.matches&&r.matches.length>0?r.matches:u$(e,{pathname:b});xa(p||x!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),xa(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let S=MG(x&&x.map(P=>Object.assign({},P,{params:Object.assign({},u,P.params),pathname:zo([h,i.encodeLocation?i.encodeLocation(P.pathname).pathname:P.pathname]),pathnameBase:P.pathnameBase==="/"?h:zo([h,i.encodeLocation?i.encodeLocation(P.pathnameBase).pathname:P.pathnameBase])})),o,r,n);return t&&S?B.createElement(mm.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},S):S}function AG(){let e=FG(),t=SG(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=B.createElement(B.Fragment,null,B.createElement("p",null,"💿 Hey developer 👋"),B.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",B.createElement("code",{style:a},"ErrorBoundary")," or"," ",B.createElement("code",{style:a},"errorElement")," prop on your route.")),B.createElement(B.Fragment,null,B.createElement("h2",null,"Unexpected Application Error!"),B.createElement("h3",{style:{fontStyle:"italic"}},t),r?B.createElement("pre",{style:i},r):null,o)}var kG=B.createElement(AG,null),RG=class extends B.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?B.createElement(Pa.Provider,{value:this.props.routeContext},B.createElement(oT.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function NG({routeContext:e,match:t,children:r}){let n=B.useContext(ud);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),B.createElement(Pa.Provider,{value:e},r)}function MG(e,t=[],r=null,n=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r==null?void 0:r.errors;if(a!=null){let u=i.findIndex(l=>l.route.id&&(a==null?void 0:a[l.route.id])!==void 0);cr(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,u+1))}let o=!1,s=-1;if(r)for(let u=0;u=0?i=i.slice(0,s+1):i=[i[0]];break}}}return i.reduceRight((u,l,h)=>{let p,v=!1,w=null,_=null;r&&(p=a&&l.route.id?a[l.route.id]:void 0,w=l.route.errorElement||kG,o&&(s<0&&h===0?(g$("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,_=null):s===h&&(v=!0,_=l.route.hydrateFallbackElement||null)));let b=t.concat(i.slice(0,h+1)),x=()=>{let S;return p?S=w:v?S=_:l.route.Component?S=B.createElement(l.route.Component,null):l.route.element?S=l.route.element:S=u,B.createElement(NG,{match:l,routeContext:{outlet:u,matches:b,isDataRoute:r!=null},children:S})};return r&&(l.route.ErrorBoundary||l.route.errorElement||h===0)?B.createElement(RG,{location:r.location,revalidation:r.revalidation,component:w,error:p,children:x(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):x()},null)}function sT(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function LG(e){let t=B.useContext(ud);return cr(t,sT(e)),t}function DG(e){let t=B.useContext(W0);return cr(t,sT(e)),t}function IG(e){let t=B.useContext(Pa);return cr(t,sT(e)),t}function lT(e){let t=IG(e),r=t.matches[t.matches.length-1];return cr(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function $G(){return lT("useRouteId")}function FG(){var n;let e=B.useContext(oT),t=DG("useRouteError"),r=lT("useRouteError");return e!==void 0?e:(n=t.errors)==null?void 0:n[r]}function BG(){let{router:e}=LG("useNavigate"),t=lT("useNavigate"),r=B.useRef(!1);return m$(()=>{r.current=!0}),B.useCallback(async(i,a={})=>{xa(r.current,p$),r.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...a}))},[e,t])}var Zk={};function g$(e,t,r){!t&&!Zk[e]&&(Zk[e]=!0,xa(!1,r))}B.memo(UG);function UG({routes:e,future:t,state:r}){return v$(e,void 0,r,t)}function uT({to:e,replace:t,state:r,relative:n}){cr(Hu()," may be used only in the context of a component.");let{static:i}=B.useContext(Ca);xa(!i," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:a}=B.useContext(Pa),{pathname:o}=bn(),s=fo(),u=aT(e,iT(a),o,n==="path"),l=JSON.stringify(u);return B.useEffect(()=>{s(JSON.parse(l),{replace:t,state:r,relative:n})},[s,l,n,t,r]),null}function Ct(e){cr(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function zG({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:i,static:a=!1}){cr(!Hu(),"You cannot render a inside another . You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),s=B.useMemo(()=>({basename:o,navigator:i,static:a,future:{}}),[o,i,a]);typeof r=="string"&&(r=ld(r));let{pathname:u="/",search:l="",hash:h="",state:p=null,key:v="default"}=r,w=B.useMemo(()=>{let _=Go(u,o);return _==null?null:{location:{pathname:_,search:l,hash:h,state:p,key:v},navigationType:n}},[o,u,l,h,p,v,n]);return xa(w!=null,` is not able to match the URL "${u}${l}${h}" because it does not start with the basename, so the won't render anything.`),w==null?null:B.createElement(Ca.Provider,{value:s},B.createElement(mm.Provider,{children:t,value:w}))}function H0({children:e,location:t}){return jG(jO(e),t)}function jO(e,t=[]){let r=[];return B.Children.forEach(e,(n,i)=>{if(!B.isValidElement(n))return;let a=[...t,i];if(n.type===B.Fragment){r.push.apply(r,jO(n.props.children,a));return}cr(n.type===Ct,`[${typeof n.type=="string"?n.type:n.type.name}] is not a component. All component children of must be a or `),cr(!n.props.index||!n.props.children,"An index route cannot have child routes.");let o={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=jO(n.props.children,a)),r.push(o)}),r}var Dg="get",Ig="application/x-www-form-urlencoded";function G0(e){return e!=null&&typeof e.tagName=="string"}function VG(e){return G0(e)&&e.tagName.toLowerCase()==="button"}function qG(e){return G0(e)&&e.tagName.toLowerCase()==="form"}function WG(e){return G0(e)&&e.tagName.toLowerCase()==="input"}function HG(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function GG(e,t){return e.button===0&&(!t||t==="_self")&&!HG(e)}var sg=null;function KG(){if(sg===null)try{new FormData(document.createElement("form"),0),sg=!1}catch{sg=!0}return sg}var YG=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function z1(e){return e!=null&&!YG.has(e)?(xa(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Ig}"`),null):e}function ZG(e,t){let r,n,i,a,o;if(qG(e)){let s=e.getAttribute("action");n=s?Go(s,t):null,r=e.getAttribute("method")||Dg,i=z1(e.getAttribute("enctype"))||Ig,a=new FormData(e)}else if(VG(e)||WG(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a