maidr 3.28.0 → 3.30.0

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.
package/dist/maidr.js CHANGED
@@ -635,7 +635,7 @@ l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
635
635
  `);for(A=v=0;v<de.length&&!de[v].includes("DetermineComponentFrameRoot");)v++;for(;A<ke.length&&!ke[A].includes("DetermineComponentFrameRoot");)A++;if(v===de.length||A===ke.length)for(v=de.length-1,A=ke.length-1;1<=v&&0<=A&&de[v]!==ke[A];)A--;for(;1<=v&&0<=A;v--,A--)if(de[v]!==ke[A]){if(v!==1||A!==1)do if(v--,A--,0>A||de[v]!==ke[A]){var Xe=`
636
636
  `+de[v].replace(" at new "," at ");return l.displayName&&Xe.includes("<anonymous>")&&(Xe=Xe.replace("<anonymous>",l.displayName)),Xe}while(1<=v&&0<=A);break}}}finally{Tm=!1,Error.prepareStackTrace=h}return(h=l?l.displayName||l.name:"")?Mc(h):""}function Xf(l){switch(l.tag){case 26:case 27:case 5:return Mc(l.type);case 16:return Mc("Lazy");case 13:return Mc("Suspense");case 19:return Mc("SuspenseList");case 0:case 15:return Ja(l.type,!1);case 11:return Ja(l.type.render,!1);case 1:return Ja(l.type,!0);case 31:return Mc("Activity");default:return""}}function bu(l){try{var c="";do c+=Xf(l),l=l.return;while(l);return c}catch(h){return`
637
637
  Error generating stack: `+h.message+`
638
- `+h.stack}}function qi(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function Wf(l){var c=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function wm(l){var c=Wf(l)?"checked":"value",h=Object.getOwnPropertyDescriptor(l.constructor.prototype,c),v=""+l[c];if(!l.hasOwnProperty(c)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var A=h.get,O=h.set;return Object.defineProperty(l,c,{configurable:!0,get:function(){return A.call(this)},set:function(j){v=""+j,O.call(this,j)}}),Object.defineProperty(l,c,{enumerable:h.enumerable}),{getValue:function(){return v},setValue:function(j){v=""+j},stopTracking:function(){l._valueTracker=null,delete l[c]}}}}function Qf(l){l._valueTracker||(l._valueTracker=wm(l))}function Kf(l){if(!l)return!1;var c=l._valueTracker;if(!c)return!0;var h=c.getValue(),v="";return l&&(v=Wf(l)?l.checked?"true":"false":l.value),l=v,l!==h?(c.setValue(l),!0):!1}function fs(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var xv=/[\n"\\]/g;function go(l){return l.replace(xv,function(c){return"\\"+c.charCodeAt(0).toString(16)+" "})}function Sv(l,c,h,v,A,O,j,J){l.name="",j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?l.type=j:l.removeAttribute("type"),c!=null?j==="number"?(c===0&&l.value===""||l.value!=c)&&(l.value=""+qi(c)):l.value!==""+qi(c)&&(l.value=""+qi(c)):j!=="submit"&&j!=="reset"||l.removeAttribute("value"),c!=null?X0(l,j,qi(c)):h!=null?X0(l,j,qi(h)):v!=null&&l.removeAttribute("value"),A==null&&O!=null&&(l.defaultChecked=!!O),A!=null&&(l.checked=A&&typeof A!="function"&&typeof A!="symbol"),J!=null&&typeof J!="function"&&typeof J!="symbol"&&typeof J!="boolean"?l.name=""+qi(J):l.removeAttribute("name")}function Ev(l,c,h,v,A,O,j,J){if(O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(l.type=O),c!=null||h!=null){if(!(O!=="submit"&&O!=="reset"||c!=null))return;h=h!=null?""+qi(h):"",c=c!=null?""+qi(c):h,J||c===l.value||(l.value=c),l.defaultValue=c}v=v??A,v=typeof v!="function"&&typeof v!="symbol"&&!!v,l.checked=J?l.checked:!!v,l.defaultChecked=!!v,j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"&&(l.name=j)}function X0(l,c,h){c==="number"&&fs(l.ownerDocument)===l||l.defaultValue===""+h||(l.defaultValue=""+h)}function xu(l,c,h,v){if(l=l.options,c){c={};for(var A=0;A<h.length;A++)c["$"+h[A]]=!0;for(h=0;h<l.length;h++)A=c.hasOwnProperty("$"+l[h].value),l[h].selected!==A&&(l[h].selected=A),A&&v&&(l[h].defaultSelected=!0)}else{for(h=""+qi(h),c=null,A=0;A<l.length;A++){if(l[A].value===h){l[A].selected=!0,v&&(l[A].defaultSelected=!0);return}c!==null||l[A].disabled||(c=l[A])}c!==null&&(c.selected=!0)}}function Tv(l,c,h){if(c!=null&&(c=""+qi(c),c!==l.value&&(l.value=c),h==null)){l.defaultValue!==c&&(l.defaultValue=c);return}l.defaultValue=h!=null?""+qi(h):""}function wv(l,c,h,v){if(c==null){if(v!=null){if(h!=null)throw Error(a(92));if(ae(v)){if(1<v.length)throw Error(a(93));v=v[0]}h=v}h==null&&(h=""),c=h}h=qi(c),l.defaultValue=h,v=l.textContent,v===h&&v!==""&&v!==null&&(l.value=v)}function kc(l,c){if(c){var h=l.firstChild;if(h&&h===l.lastChild&&h.nodeType===3){h.nodeValue=c;return}}l.textContent=c}var vT=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 Av(l,c,h){var v=c.indexOf("--")===0;h==null||typeof h=="boolean"||h===""?v?l.setProperty(c,""):c==="float"?l.cssFloat="":l[c]="":v?l.setProperty(c,h):typeof h!="number"||h===0||vT.has(c)?c==="float"?l.cssFloat=h:l[c]=(""+h).trim():l[c]=h+"px"}function Am(l,c,h){if(c!=null&&typeof c!="object")throw Error(a(62));if(l=l.style,h!=null){for(var v in h)!h.hasOwnProperty(v)||c!=null&&c.hasOwnProperty(v)||(v.indexOf("--")===0?l.setProperty(v,""):v==="float"?l.cssFloat="":l[v]="");for(var A in c)v=c[A],c.hasOwnProperty(A)&&h[A]!==v&&Av(l,A,v)}else for(var O in c)c.hasOwnProperty(O)&&Av(l,O,c[O])}function Zf(l){if(l.indexOf("-")===-1)return!1;switch(l){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 W0=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"]]),bT=/^[\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 Q0(l){return bT.test(""+l)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":l}var Cm=null;function Dc(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var _c=null,Jf=null;function Ix(l){var c=ka(l);if(c&&(l=c.stateNode)){var h=l[Ua]||null;e:switch(l=c.stateNode,c.type){case"input":if(Sv(l,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name),c=h.name,h.type==="radio"&&c!=null){for(h=l;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll('input[name="'+go(""+c)+'"][type="radio"]'),c=0;c<h.length;c++){var v=h[c];if(v!==l&&v.form===l.form){var A=v[Ua]||null;if(!A)throw Error(a(90));Sv(v,A.value,A.defaultValue,A.defaultValue,A.checked,A.defaultChecked,A.type,A.name)}}for(c=0;c<h.length;c++)v=h[c],v.form===l.form&&Kf(v)}break e;case"textarea":Tv(l,h.value,h.defaultValue);break e;case"select":c=h.value,c!=null&&xu(l,!!h.multiple,c,!1)}}}var Cv=!1;function Bx(l,c,h){if(Cv)return l(c,h);Cv=!0;try{var v=l(c);return v}finally{if(Cv=!1,(_c!==null||Jf!==null)&&($p(),_c&&(c=_c,l=Jf,Jf=_c=null,Ix(c),l)))for(c=0;c<l.length;c++)Ix(l[c])}}function ds(l,c){var h=l.stateNode;if(h===null)return null;var v=h[Ua]||null;if(v===null)return null;h=v[c];e:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(v=!v.disabled)||(l=l.type,v=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!v;break e;default:l=!1}if(l)return null;if(h&&typeof h!="function")throw Error(a(231,c,typeof h));return h}var $o=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Om=!1;if($o)try{var ed={};Object.defineProperty(ed,"passive",{get:function(){Om=!0}}),window.addEventListener("test",ed,ed),window.removeEventListener("test",ed,ed)}catch{Om=!1}var yo=null,Rm=null,Nc=null;function K0(){if(Nc)return Nc;var l,c=Rm,h=c.length,v,A="value"in yo?yo.value:yo.textContent,O=A.length;for(l=0;l<h&&c[l]===A[l];l++);var j=h-l;for(v=1;v<=j&&c[h-v]===A[O-v];v++);return Nc=A.slice(l,1<v?1-v:void 0)}function Z0(l){var c=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&c===13&&(l=13)):l=c,l===10&&(l=13),32<=l||l===13?l:0}function Da(){return!0}function Px(){return!1}function $a(l){function c(h,v,A,O,j){this._reactName=h,this._targetInst=A,this.type=v,this.nativeEvent=O,this.target=j,this.currentTarget=null;for(var J in l)l.hasOwnProperty(J)&&(h=l[J],this[J]=h?h(O):O[J]);return this.isDefaultPrevented=(O.defaultPrevented!=null?O.defaultPrevented:O.returnValue===!1)?Da:Px,this.isPropagationStopped=Px,this}return x(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var h=this.nativeEvent;h&&(h.preventDefault?h.preventDefault():typeof h.returnValue!="unknown"&&(h.returnValue=!1),this.isDefaultPrevented=Da)},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=!0),this.isPropagationStopped=Da)},persist:function(){},isPersistent:Da}),c}var Su={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},J0=$a(Su),ep=x({},Su,{view:0,detail:0}),xT=$a(ep),Mm,Ov,td,km=x({},ep,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Dm,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==td&&(td&&l.type==="mousemove"?(Mm=l.screenX-td.screenX,Ov=l.screenY-td.screenY):Ov=Mm=0,td=l),Mm)},movementY:function(l){return"movementY"in l?l.movementY:Ov}}),tp=$a(km),Vx=x({},km,{dataTransfer:0}),Ux=$a(Vx),$x=x({},ep,{relatedTarget:0}),Rv=$a($x),ST=x({},Su,{animationName:0,elapsedTime:0,pseudoElement:0}),ET=$a(ST),TT=x({},Su,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),wT=$a(TT),np=x({},Su,{data:0}),Mv=$a(np),jx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hx={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"},qx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kv(l){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(l):(l=qx[l])?!!c[l]:!1}function Dm(){return kv}var zc=x({},ep,{key:function(l){if(l.key){var c=jx[l.key]||l.key;if(c!=="Unidentified")return c}return l.type==="keypress"?(l=Z0(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?Hx[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Dm,charCode:function(l){return l.type==="keypress"?Z0(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?Z0(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),Lc=$a(zc),jo=x({},km,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yi=$a(jo),_m=x({},ep,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Dm}),Nm=$a(_m),Dv=x({},Su,{propertyName:0,elapsedTime:0,pseudoElement:0}),vi=$a(Dv),Gx=x({},km,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),zm=$a(Gx),Ic=x({},Su,{newState:0,oldState:0}),_v=$a(Ic),Fx=[9,13,27,32],Lm=$o&&"CompositionEvent"in window,Bc=null;$o&&"documentMode"in document&&(Bc=document.documentMode);var AT=$o&&"TextEvent"in window&&!Bc,Im=$o&&(!Lm||Bc&&8<Bc&&11>=Bc),Dl=" ",Nv=!1;function Bm(l,c){switch(l){case"keyup":return Fx.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rp(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var vo=!1;function zv(l,c){switch(l){case"compositionend":return rp(c);case"keypress":return c.which!==32?null:(Nv=!0,Dl);case"textInput":return l=c.data,l===Dl&&Nv?null:l;default:return null}}function Lv(l,c){if(vo)return l==="compositionend"||!Lm&&Bm(l,c)?(l=K0(),Nc=Rm=yo=null,vo=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return Im&&c.locale!=="ko"?null:c.data;default:return null}}var Pc={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 Iv(l){var c=l&&l.nodeName&&l.nodeName.toLowerCase();return c==="input"?!!Pc[l.type]:c==="textarea"}function Pm(l,c,h,v){_c?Jf?Jf.push(v):Jf=[v]:_c=v,c=Wu(c,"onChange"),0<c.length&&(h=new J0("onChange","change",null,h,v),l.push({event:h,listeners:c}))}var Vc=null,Ho=null;function Uc(l){Ls(l,0)}function nd(l){var c=Ff(l);if(Kf(c))return l}function Eu(l,c){if(l==="change")return c}var Bv=!1;if($o){var Vm;if($o){var $c="oninput"in document;if(!$c){var rd=document.createElement("div");rd.setAttribute("oninput","return;"),$c=typeof rd.oninput=="function"}Vm=$c}else Vm=!1;Bv=Vm&&(!document.documentMode||9<document.documentMode)}function Pv(){Vc&&(Vc.detachEvent("onpropertychange",ad),Ho=Vc=null)}function ad(l){if(l.propertyName==="value"&&nd(Ho)){var c=[];Pm(c,Ho,l,Dc(l)),Bx(Uc,c)}}function Yx(l,c,h){l==="focusin"?(Pv(),Vc=c,Ho=h,Vc.attachEvent("onpropertychange",ad)):l==="focusout"&&Pv()}function Um(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return nd(Ho)}function Tu(l,c){if(l==="click")return nd(c)}function ps(l,c){if(l==="input"||l==="change")return nd(c)}function Vv(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}var ei=typeof Object.is=="function"?Object.is:Vv;function hs(l,c){if(ei(l,c))return!0;if(typeof l!="object"||l===null||typeof c!="object"||c===null)return!1;var h=Object.keys(l),v=Object.keys(c);if(h.length!==v.length)return!1;for(v=0;v<h.length;v++){var A=h[v];if(!dt.call(c,A)||!ei(l[A],c[A]))return!1}return!0}function ap(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function wu(l,c){var h=ap(l);l=0;for(var v;h;){if(h.nodeType===3){if(v=l+h.textContent.length,l<=c&&v>=c)return{node:h,offset:c-l};l=v}e:{for(;h;){if(h.nextSibling){h=h.nextSibling;break e}h=h.parentNode}h=void 0}h=ap(h)}}function yr(l,c){return l&&c?l===c?!0:l&&l.nodeType===3?!1:c&&c.nodeType===3?yr(l,c.parentNode):"contains"in l?l.contains(c):l.compareDocumentPosition?!!(l.compareDocumentPosition(c)&16):!1:!1}function ip(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var c=fs(l.document);c instanceof l.HTMLIFrameElement;){try{var h=typeof c.contentWindow.location.href=="string"}catch{h=!1}if(h)l=c.contentWindow;else break;c=fs(l.document)}return c}function $m(l){var c=l&&l.nodeName&&l.nodeName.toLowerCase();return c&&(c==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||c==="textarea"||l.contentEditable==="true")}var Uv=$o&&"documentMode"in document&&11>=document.documentMode,bo=null,jc=null,Gi=null,id=!1;function od(l,c,h){var v=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;id||bo==null||bo!==fs(v)||(v=bo,"selectionStart"in v&&$m(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),Gi&&hs(Gi,v)||(Gi=v,v=Wu(jc,"onSelect"),0<v.length&&(c=new J0("onSelect","select",null,c,h),l.push({event:c,listeners:v}),c.target=bo)))}function ms(l,c){var h={};return h[l.toLowerCase()]=c.toLowerCase(),h["Webkit"+l]="webkit"+c,h["Moz"+l]="moz"+c,h}var Au={animationend:ms("Animation","AnimationEnd"),animationiteration:ms("Animation","AnimationIteration"),animationstart:ms("Animation","AnimationStart"),transitionrun:ms("Transition","TransitionRun"),transitionstart:ms("Transition","TransitionStart"),transitioncancel:ms("Transition","TransitionCancel"),transitionend:ms("Transition","TransitionEnd")},jm={},qo={};$o&&(qo=document.createElement("div").style,"AnimationEvent"in window||(delete Au.animationend.animation,delete Au.animationiteration.animation,delete Au.animationstart.animation),"TransitionEvent"in window||delete Au.transitionend.transition);function ja(l){if(jm[l])return jm[l];if(!Au[l])return l;var c=Au[l],h;for(h in c)if(c.hasOwnProperty(h)&&h in qo)return jm[l]=c[h];return l}var op=ja("animationend"),Xx=ja("animationiteration"),$v=ja("animationstart"),CT=ja("transitionrun"),jv=ja("transitionstart"),Hm=ja("transitioncancel"),Hv=ja("transitionend"),qv=new Map,qm="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(" ");qm.push("scrollEnd");function bi(l,c){qv.set(l,c),xa(c,[l])}var Gv=new WeakMap;function Fi(l,c){if(typeof l=="object"&&l!==null){var h=Gv.get(l);return h!==void 0?h:(c={value:l,source:c,stack:bu(c)},Gv.set(l,c),c)}return{value:l,source:c,stack:bu(c)}}var Yi=[],Cu=0,lp=0;function Go(){for(var l=Cu,c=lp=Cu=0;c<l;){var h=Yi[c];Yi[c++]=null;var v=Yi[c];Yi[c++]=null;var A=Yi[c];Yi[c++]=null;var O=Yi[c];if(Yi[c++]=null,v!==null&&A!==null){var j=v.pending;j===null?A.next=A:(A.next=j.next,j.next=A),v.pending=A}O!==0&&ld(h,A,O)}}function Fo(l,c,h,v){Yi[Cu++]=l,Yi[Cu++]=c,Yi[Cu++]=h,Yi[Cu++]=v,lp|=v,l.lanes|=v,l=l.alternate,l!==null&&(l.lanes|=v)}function Hc(l,c,h,v){return Fo(l,c,h,v),Ou(l)}function gs(l,c){return Fo(l,null,null,c),Ou(l)}function ld(l,c,h){l.lanes|=h;var v=l.alternate;v!==null&&(v.lanes|=h);for(var A=!1,O=l.return;O!==null;)O.childLanes|=h,v=O.alternate,v!==null&&(v.childLanes|=h),O.tag===22&&(l=O.stateNode,l===null||l._visibility&1||(A=!0)),l=O,O=O.return;return l.tag===3?(O=l.stateNode,A&&c!==null&&(A=31-lt(h),l=O.hiddenUpdates,v=l[A],v===null?l[A]=[c]:v.push(c),c.lane=h|536870912),O):null}function Ou(l){if(50<Ud)throw Ud=0,D1=null,Error(a(185));for(var c=l.return;c!==null;)l=c,c=l.return;return l.tag===3?l.stateNode:null}var qc={};function OT(l,c,h,v){this.tag=l,this.key=h,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xi(l,c,h,v){return new OT(l,c,h,v)}function Gm(l){return l=l.prototype,!(!l||!l.isReactComponent)}function Yo(l,c){var h=l.alternate;return h===null?(h=xi(l.tag,c,l.key,l.mode),h.elementType=l.elementType,h.type=l.type,h.stateNode=l.stateNode,h.alternate=l,l.alternate=h):(h.pendingProps=c,h.type=l.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=l.flags&65011712,h.childLanes=l.childLanes,h.lanes=l.lanes,h.child=l.child,h.memoizedProps=l.memoizedProps,h.memoizedState=l.memoizedState,h.updateQueue=l.updateQueue,c=l.dependencies,h.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},h.sibling=l.sibling,h.index=l.index,h.ref=l.ref,h.refCleanup=l.refCleanup,h}function Fm(l,c){l.flags&=65011714;var h=l.alternate;return h===null?(l.childLanes=0,l.lanes=c,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=h.childLanes,l.lanes=h.lanes,l.child=h.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=h.memoizedProps,l.memoizedState=h.memoizedState,l.updateQueue=h.updateQueue,l.type=h.type,c=h.dependencies,l.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext}),l}function hn(l,c,h,v,A,O){var j=0;if(v=l,typeof l=="function")Gm(l)&&(j=1);else if(typeof l=="string")j=D6(l,h,Me.current)?26:l==="html"||l==="head"||l==="body"?27:5;else e:switch(l){case le:return l=xi(31,h,c,A),l.elementType=le,l.lanes=O,l;case C:return it(h.children,A,O,c);case R:j=8,A|=24;break;case M:return l=xi(12,h,c,A|2),l.elementType=M,l.lanes=O,l;case z:return l=xi(13,h,c,A),l.elementType=z,l.lanes=O,l;case $:return l=xi(19,h,c,A),l.elementType=$,l.lanes=O,l;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case _:case P:j=10;break e;case N:j=9;break e;case B:j=11;break e;case X:j=14;break e;case ie:j=16,v=null;break e}j=29,h=Error(a(130,l===null?"null":typeof l,"")),v=null}return c=xi(j,h,c,A),c.elementType=l,c.type=v,c.lanes=O,c}function it(l,c,h,v){return l=xi(7,l,v,c),l.lanes=h,l}function Ru(l,c,h){return l=xi(6,l,null,c),l.lanes=h,l}function sd(l,c,h){return c=xi(4,l.children!==null?l.children:[],l.key,c),c.lanes=h,c.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},c}var dr=[],Mu=0,ud=null,sp=0,Si=[],xo=0,ys=null,Xo=1,Wo="";function ta(l,c){dr[Mu++]=sp,dr[Mu++]=ud,ud=l,sp=c}function Gn(l,c,h){Si[xo++]=Xo,Si[xo++]=Wo,Si[xo++]=ys,ys=l;var v=Xo;l=Wo;var A=32-lt(v)-1;v&=~(1<<A),h+=1;var O=32-lt(c)+A;if(30<O){var j=A-A%5;O=(v&(1<<j)-1).toString(32),v>>=j,A-=j,Xo=1<<32-lt(c)+A|h<<A|v,Wo=O+l}else Xo=1<<O|h<<A|v,Wo=l}function up(l){l.return!==null&&(ta(l,1),Gn(l,1,0))}function Gc(l){for(;l===ud;)ud=dr[--Mu],dr[Mu]=null,sp=dr[--Mu],dr[Mu]=null;for(;l===ys;)ys=Si[--xo],Si[xo]=null,Wo=Si[--xo],Si[xo]=null,Xo=Si[--xo],Si[xo]=null}var Ir=null,tr=null,mn=!1,vs=null,ti=!1,cp=Error(a(519));function Qo(l){var c=Error(a(418,""));throw dd(Fi(c,l)),cp}function Ym(l){var c=l.stateNode,h=l.type,v=l.memoizedProps;switch(c[ur]=l,c[Ua]=v,h){case"dialog":cn("cancel",c),cn("close",c);break;case"iframe":case"object":case"embed":cn("load",c);break;case"video":case"audio":for(h=0;h<tn.length;h++)cn(tn[h],c);break;case"source":cn("error",c);break;case"img":case"image":case"link":cn("error",c),cn("load",c);break;case"details":cn("toggle",c);break;case"input":cn("invalid",c),Ev(c,v.value,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name,!0),Qf(c);break;case"select":cn("invalid",c);break;case"textarea":cn("invalid",c),wv(c,v.value,v.defaultValue,v.children),Qf(c)}h=v.children,typeof h!="string"&&typeof h!="number"&&typeof h!="bigint"||c.textContent===""+h||v.suppressHydrationWarning===!0||R6(c.textContent,h)?(v.popover!=null&&(cn("beforetoggle",c),cn("toggle",c)),v.onScroll!=null&&cn("scroll",c),v.onScrollEnd!=null&&cn("scrollend",c),v.onClick!=null&&(c.onclick=Wp),c=!0):c=!1,c||Qo(l)}function fp(l){for(Ir=l.return;Ir;)switch(Ir.tag){case 5:case 13:ti=!1;return;case 27:case 3:ti=!0;return;default:Ir=Ir.return}}function cd(l){if(l!==Ir)return!1;if(!mn)return fp(l),mn=!0,!1;var c=l.tag,h;if((h=c!==3&&c!==27)&&((h=c===5)&&(h=l.type,h=!(h!=="form"&&h!=="button")||cf(l.type,l.memoizedProps)),h=!h),h&&tr&&Qo(l),fp(l),c===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(a(317));e:{for(l=l.nextSibling,c=0;l;){if(l.nodeType===8)if(h=l.data,h==="/$"){if(c===0){tr=ul(l.nextSibling);break e}c--}else h!=="$"&&h!=="$!"&&h!=="$?"||c++;l=l.nextSibling}tr=null}}else c===27?(c=tr,za(l.type)?(l=f4,f4=null,tr=l):tr=c):tr=Ir?ul(l.stateNode.nextSibling):null;return!0}function fd(){tr=Ir=null,mn=!1}function Fv(){var l=vs;return l!==null&&(ri===null?ri=l:ri.push.apply(ri,l),vs=null),l}function dd(l){vs===null?vs=[l]:vs.push(l)}var Xm=q(null),bs=null,Ko=null;function _l(l,c,h){H(Xm,c._currentValue),c._currentValue=h}function Nl(l){l._currentValue=Xm.current,se(Xm)}function Wm(l,c,h){for(;l!==null;){var v=l.alternate;if((l.childLanes&c)!==c?(l.childLanes|=c,v!==null&&(v.childLanes|=c)):v!==null&&(v.childLanes&c)!==c&&(v.childLanes|=c),l===h)break;l=l.return}}function Qm(l,c,h,v){var A=l.child;for(A!==null&&(A.return=l);A!==null;){var O=A.dependencies;if(O!==null){var j=A.child;O=O.firstContext;e:for(;O!==null;){var J=O;O=A;for(var de=0;de<c.length;de++)if(J.context===c[de]){O.lanes|=h,J=O.alternate,J!==null&&(J.lanes|=h),Wm(O.return,h,l),v||(j=null);break e}O=J.next}}else if(A.tag===18){if(j=A.return,j===null)throw Error(a(341));j.lanes|=h,O=j.alternate,O!==null&&(O.lanes|=h),Wm(j,h,l),j=null}else j=A.child;if(j!==null)j.return=A;else for(j=A;j!==null;){if(j===l){j=null;break}if(A=j.sibling,A!==null){A.return=j.return,j=A;break}j=j.return}A=j}}function dp(l,c,h,v){l=null;for(var A=c,O=!1;A!==null;){if(!O){if((A.flags&524288)!==0)O=!0;else if((A.flags&262144)!==0)break}if(A.tag===10){var j=A.alternate;if(j===null)throw Error(a(387));if(j=j.memoizedProps,j!==null){var J=A.type;ei(A.pendingProps.value,j.value)||(l!==null?l.push(J):l=[J])}}else if(A===Ue.current){if(j=A.alternate,j===null)throw Error(a(387));j.memoizedState.memoizedState!==A.memoizedState.memoizedState&&(l!==null?l.push(Ia):l=[Ia])}A=A.return}l!==null&&Qm(c,l,h,v),c.flags|=262144}function pp(l){for(l=l.firstContext;l!==null;){if(!ei(l.context._currentValue,l.memoizedValue))return!0;l=l.next}return!1}function ku(l){bs=l,Ko=null,l=l.dependencies,l!==null&&(l.firstContext=null)}function _a(l){return Yv(bs,l)}function pd(l,c){return bs===null&&ku(l),Yv(l,c)}function Yv(l,c){var h=c._currentValue;if(c={context:c,memoizedValue:h,next:null},Ko===null){if(l===null)throw Error(a(308));Ko=c,l.dependencies={lanes:0,firstContext:c},l.flags|=524288}else Ko=Ko.next=c;return h}var Wx=typeof AbortController<"u"?AbortController:function(){var l=[],c=this.signal={aborted:!1,addEventListener:function(h,v){l.push(v)}};this.abort=function(){c.aborted=!0,l.forEach(function(h){return h()})}},hd=e.unstable_scheduleCallback,Km=e.unstable_NormalPriority,na={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Xv(){return{controller:new Wx,data:new Map,refCount:0}}function Du(l){l.refCount--,l.refCount===0&&hd(Km,function(){l.controller.abort()})}var zl=null,md=0,_u=0,So=null;function Ei(l,c){if(zl===null){var h=zl=[];md=0,_u=$1(),So={status:"pending",value:void 0,then:function(v){h.push(v)}}}return md++,c.then(hp,hp),c}function hp(){if(--md===0&&zl!==null){So!==null&&(So.status="fulfilled");var l=zl;zl=null,_u=0,So=null;for(var c=0;c<l.length;c++)(0,l[c])()}}function Wv(l,c){var h=[],v={status:"pending",value:null,reason:null,then:function(A){h.push(A)}};return l.then(function(){v.status="fulfilled",v.value=c;for(var A=0;A<h.length;A++)(0,h[A])(c)},function(A){for(v.status="rejected",v.reason=A,A=0;A<h.length;A++)(0,h[A])(void 0)}),v}var Qv=K.S;K.S=function(l,c){typeof c=="object"&&c!==null&&typeof c.then=="function"&&Ei(l,c),Qv!==null&&Qv(l,c)};var xs=q(null);function gd(){var l=xs.current;return l!==null?l:rr.pooledCache}function yd(l,c){c===null?H(xs,xs.current):H(xs,c.pool)}function mp(){var l=gd();return l===null?null:{parent:na._currentValue,pool:l}}var Fc=Error(a(460)),gp=Error(a(474)),vd=Error(a(542)),Zm={then:function(){}};function Kv(l){return l=l.status,l==="fulfilled"||l==="rejected"}function bd(){}function Zv(l,c,h){switch(h=l[h],h===void 0?l.push(c):h!==c&&(c.then(bd,bd),c=h),c.status){case"fulfilled":return c.value;case"rejected":throw l=c.reason,Jv(l),l;default:if(typeof c.status=="string")c.then(bd,bd);else{if(l=rr,l!==null&&100<l.shellSuspendCounter)throw Error(a(482));l=c,l.status="pending",l.then(function(v){if(c.status==="pending"){var A=c;A.status="fulfilled",A.value=v}},function(v){if(c.status==="pending"){var A=c;A.status="rejected",A.reason=v}})}switch(c.status){case"fulfilled":return c.value;case"rejected":throw l=c.reason,Jv(l),l}throw xd=c,Fc}}var xd=null;function Jm(){if(xd===null)throw Error(a(459));var l=xd;return xd=null,l}function Jv(l){if(l===Fc||l===vd)throw Error(a(483))}var Ss=!1;function yp(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function e1(l,c){l=l.updateQueue,c.updateQueue===l&&(c.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function Es(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function Ti(l,c,h){var v=l.updateQueue;if(v===null)return null;if(v=v.shared,(Fn&2)!==0){var A=v.pending;return A===null?c.next=c:(c.next=A.next,A.next=c),v.pending=c,c=Ou(l),ld(l,null,h),c}return Fo(l,v,c,h),Ou(l)}function Yc(l,c,h){if(c=c.updateQueue,c!==null&&(c=c.shared,(h&4194048)!==0)){var v=c.lanes;v&=l.pendingLanes,h|=v,c.lanes=h,un(l,h)}}function vp(l,c){var h=l.updateQueue,v=l.alternate;if(v!==null&&(v=v.updateQueue,h===v)){var A=null,O=null;if(h=h.firstBaseUpdate,h!==null){do{var j={lane:h.lane,tag:h.tag,payload:h.payload,callback:null,next:null};O===null?A=O=j:O=O.next=j,h=h.next}while(h!==null);O===null?A=O=c:O=O.next=c}else A=O=c;h={baseState:v.baseState,firstBaseUpdate:A,lastBaseUpdate:O,shared:v.shared,callbacks:v.callbacks},l.updateQueue=h;return}l=h.lastBaseUpdate,l===null?h.firstBaseUpdate=c:l.next=c,h.lastBaseUpdate=c}var eb=!1;function bp(){if(eb){var l=So;if(l!==null)throw l}}function Sd(l,c,h,v){eb=!1;var A=l.updateQueue;Ss=!1;var O=A.firstBaseUpdate,j=A.lastBaseUpdate,J=A.shared.pending;if(J!==null){A.shared.pending=null;var de=J,ke=de.next;de.next=null,j===null?O=ke:j.next=ke,j=de;var Xe=l.alternate;Xe!==null&&(Xe=Xe.updateQueue,J=Xe.lastBaseUpdate,J!==j&&(J===null?Xe.firstBaseUpdate=ke:J.next=ke,Xe.lastBaseUpdate=de))}if(O!==null){var Ze=A.baseState;j=0,Xe=ke=de=null,J=O;do{var _e=J.lane&-536870913,Pe=_e!==J.lane;if(Pe?(Ln&_e)===_e:(v&_e)===_e){_e!==0&&_e===_u&&(eb=!0),Xe!==null&&(Xe=Xe.next={lane:0,tag:J.tag,payload:J.payload,callback:null,next:null});e:{var Vt=l,_t=J;_e=c;var qn=h;switch(_t.tag){case 1:if(Vt=_t.payload,typeof Vt=="function"){Ze=Vt.call(qn,Ze,_e);break e}Ze=Vt;break e;case 3:Vt.flags=Vt.flags&-65537|128;case 0:if(Vt=_t.payload,_e=typeof Vt=="function"?Vt.call(qn,Ze,_e):Vt,_e==null)break e;Ze=x({},Ze,_e);break e;case 2:Ss=!0}}_e=J.callback,_e!==null&&(l.flags|=64,Pe&&(l.flags|=8192),Pe=A.callbacks,Pe===null?A.callbacks=[_e]:Pe.push(_e))}else Pe={lane:_e,tag:J.tag,payload:J.payload,callback:J.callback,next:null},Xe===null?(ke=Xe=Pe,de=Ze):Xe=Xe.next=Pe,j|=_e;if(J=J.next,J===null){if(J=A.shared.pending,J===null)break;Pe=J,J=Pe.next,Pe.next=null,A.lastBaseUpdate=Pe,A.shared.pending=null}}while(!0);Xe===null&&(de=Ze),A.baseState=de,A.firstBaseUpdate=ke,A.lastBaseUpdate=Xe,O===null&&(A.shared.lanes=0),ju|=j,l.lanes=j,l.memoizedState=Ze}}function Ed(l,c){if(typeof l!="function")throw Error(a(191,l));l.call(c)}function t1(l,c){var h=l.callbacks;if(h!==null)for(l.callbacks=null,l=0;l<h.length;l++)Ed(h[l],c)}var Ts=q(null),xp=q(0);function tb(l,c){l=_s,H(xp,l),H(Ts,c),_s=l|c.baseLanes}function ca(){H(xp,_s),H(Ts,Ts.current)}function Td(){_s=xp.current,se(Ts),se(xp)}var Zo=0,an=null,jn=null,Mr=null,Xc=!1,Wc=!1,wi=!1,Sp=0,Eo=0,Ai=null,n1=0;function kr(){throw Error(a(321))}function Ep(l,c){if(c===null)return!1;for(var h=0;h<c.length&&h<l.length;h++)if(!ei(l[h],c[h]))return!1;return!0}function r1(l,c,h,v,A,O){return Zo=O,an=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,K.H=l===null||l.memoizedState===null?r6:xb,wi=!1,O=h(v,A),wi=!1,Wc&&(O=Nu(c,h,v,A)),nb(l),O}function nb(l){K.H=_p;var c=jn!==null&&jn.next!==null;if(Zo=0,Mr=jn=an=null,Xc=!1,Eo=0,Ai=null,c)throw Error(a(300));l===null||wn||(l=l.dependencies,l!==null&&pp(l)&&(wn=!0))}function Nu(l,c,h,v){an=l;var A=0;do{if(Wc&&(Ai=null),Eo=0,Wc=!1,25<=A)throw Error(a(301));if(A+=1,Mr=jn=null,l.updateQueue!=null){var O=l.updateQueue;O.lastEffect=null,O.events=null,O.stores=null,O.memoCache!=null&&(O.memoCache.index=0)}K.H=a6,O=c(h,v)}while(Wc);return O}function Qx(){var l=K.H,c=l.useState()[0];return c=typeof c.then=="function"?Qc(c):c,l=l.useState()[0],(jn!==null?jn.memoizedState:null)!==l&&(an.flags|=1024),c}function a1(){var l=Sp!==0;return Sp=0,l}function i1(l,c,h){c.updateQueue=l.updateQueue,c.flags&=-2053,l.lanes&=~h}function wd(l){if(Xc){for(l=l.memoizedState;l!==null;){var c=l.queue;c!==null&&(c.pending=null),l=l.next}Xc=!1}Zo=0,Mr=jn=an=null,Wc=!1,Eo=Sp=0,Ai=null}function ni(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mr===null?an.memoizedState=Mr=l:Mr=Mr.next=l,Mr}function Br(){if(jn===null){var l=an.alternate;l=l!==null?l.memoizedState:null}else l=jn.next;var c=Mr===null?an.memoizedState:Mr.next;if(c!==null)Mr=c,jn=l;else{if(l===null)throw an.alternate===null?Error(a(467)):Error(a(310));jn=l,l={memoizedState:jn.memoizedState,baseState:jn.baseState,baseQueue:jn.baseQueue,queue:jn.queue,next:null},Mr===null?an.memoizedState=Mr=l:Mr=Mr.next=l}return Mr}function Tp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Qc(l){var c=Eo;return Eo+=1,Ai===null&&(Ai=[]),l=Zv(Ai,l,c),c=an,(Mr===null?c.memoizedState:Mr.next)===null&&(c=c.alternate,K.H=c===null||c.memoizedState===null?r6:xb),l}function o1(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return Qc(l);if(l.$$typeof===P)return _a(l)}throw Error(a(438,String(l)))}function fa(l){var c=null,h=an.updateQueue;if(h!==null&&(c=h.memoCache),c==null){var v=an.alternate;v!==null&&(v=v.updateQueue,v!==null&&(v=v.memoCache,v!=null&&(c={data:v.data.map(function(A){return A.slice()}),index:0})))}if(c==null&&(c={data:[],index:0}),h===null&&(h=Tp(),an.updateQueue=h),h.memoCache=c,h=c.data[c.index],h===void 0)for(h=c.data[c.index]=Array(l),v=0;v<l;v++)h[v]=Z;return c.index++,h}function Ll(l,c){return typeof c=="function"?c(l):c}function wp(l){var c=Br();return l1(c,jn,l)}function l1(l,c,h){var v=l.queue;if(v===null)throw Error(a(311));v.lastRenderedReducer=h;var A=l.baseQueue,O=v.pending;if(O!==null){if(A!==null){var j=A.next;A.next=O.next,O.next=j}c.baseQueue=A=O,v.pending=null}if(O=l.baseState,A===null)l.memoizedState=O;else{c=A.next;var J=j=null,de=null,ke=c,Xe=!1;do{var Ze=ke.lane&-536870913;if(Ze!==ke.lane?(Ln&Ze)===Ze:(Zo&Ze)===Ze){var _e=ke.revertLane;if(_e===0)de!==null&&(de=de.next={lane:0,revertLane:0,action:ke.action,hasEagerState:ke.hasEagerState,eagerState:ke.eagerState,next:null}),Ze===_u&&(Xe=!0);else if((Zo&_e)===_e){ke=ke.next,_e===_u&&(Xe=!0);continue}else Ze={lane:0,revertLane:ke.revertLane,action:ke.action,hasEagerState:ke.hasEagerState,eagerState:ke.eagerState,next:null},de===null?(J=de=Ze,j=O):de=de.next=Ze,an.lanes|=_e,ju|=_e;Ze=ke.action,wi&&h(O,Ze),O=ke.hasEagerState?ke.eagerState:h(O,Ze)}else _e={lane:Ze,revertLane:ke.revertLane,action:ke.action,hasEagerState:ke.hasEagerState,eagerState:ke.eagerState,next:null},de===null?(J=de=_e,j=O):de=de.next=_e,an.lanes|=Ze,ju|=Ze;ke=ke.next}while(ke!==null&&ke!==c);if(de===null?j=O:de.next=J,!ei(O,l.memoizedState)&&(wn=!0,Xe&&(h=So,h!==null)))throw h;l.memoizedState=O,l.baseState=j,l.baseQueue=de,v.lastRenderedState=O}return A===null&&(v.lanes=0),[l.memoizedState,v.dispatch]}function s1(l){var c=Br(),h=c.queue;if(h===null)throw Error(a(311));h.lastRenderedReducer=l;var v=h.dispatch,A=h.pending,O=c.memoizedState;if(A!==null){h.pending=null;var j=A=A.next;do O=l(O,j.action),j=j.next;while(j!==A);ei(O,c.memoizedState)||(wn=!0),c.memoizedState=O,c.baseQueue===null&&(c.baseState=O),h.lastRenderedState=O}return[O,v]}function rb(l,c,h){var v=an,A=Br(),O=mn;if(O){if(h===void 0)throw Error(a(407));h=h()}else h=c();var j=!ei((jn||A).memoizedState,h);j&&(A.memoizedState=h,wn=!0),A=A.queue;var J=ab.bind(null,v,A,l);if(ws(2048,8,J,[l]),A.getSnapshot!==c||j||Mr!==null&&Mr.memoizedState.tag&1){if(v.flags|=2048,zu(9,To(),u1.bind(null,v,A,h,c),null),rr===null)throw Error(a(349));O||(Zo&124)!==0||Ap(v,c,h)}return h}function Ap(l,c,h){l.flags|=16384,l={getSnapshot:c,value:h},c=an.updateQueue,c===null?(c=Tp(),an.updateQueue=c,c.stores=[l]):(h=c.stores,h===null?c.stores=[l]:h.push(l))}function u1(l,c,h,v){c.value=h,c.getSnapshot=v,ib(c)&&ob(l)}function ab(l,c,h){return h(function(){ib(c)&&ob(l)})}function ib(l){var c=l.getSnapshot;l=l.value;try{var h=c();return!ei(l,h)}catch{return!0}}function ob(l){var c=gs(l,2);c!==null&&Ni(c,l,2)}function Cp(l){var c=ni();if(typeof l=="function"){var h=l;if(l=h(),wi){rt(!0);try{h()}finally{rt(!1)}}}return c.memoizedState=c.baseState=l,c.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ll,lastRenderedState:l},c}function c1(l,c,h,v){return l.baseState=h,l1(l,jn,typeof v=="function"?v:Ll)}function lb(l,c,h,v,A){if(Od(l))throw Error(a(485));if(l=c.action,l!==null){var O={payload:A,action:l,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(j){O.listeners.push(j)}};K.T!==null?h(!0):O.isTransition=!1,v(O),h=c.pending,h===null?(O.next=c.pending=O,sb(c,O)):(O.next=h.next,c.pending=h.next=O)}}function sb(l,c){var h=c.action,v=c.payload,A=l.state;if(c.isTransition){var O=K.T,j={};K.T=j;try{var J=h(A,v),de=K.S;de!==null&&de(j,J),f1(l,c,J)}catch(ke){Rp(l,c,ke)}finally{K.T=O}}else try{O=h(A,v),f1(l,c,O)}catch(ke){Rp(l,c,ke)}}function f1(l,c,h){h!==null&&typeof h=="object"&&typeof h.then=="function"?h.then(function(v){Op(l,c,v)},function(v){return Rp(l,c,v)}):Op(l,c,h)}function Op(l,c,h){c.status="fulfilled",c.value=h,ub(c),l.state=h,c=l.pending,c!==null&&(h=c.next,h===c?l.pending=null:(h=h.next,c.next=h,sb(l,h)))}function Rp(l,c,h){var v=l.pending;if(l.pending=null,v!==null){v=v.next;do c.status="rejected",c.reason=h,ub(c),c=c.next;while(c!==v)}l.action=null}function ub(l){l=l.listeners;for(var c=0;c<l.length;c++)(0,l[c])()}function cb(l,c){return c}function d1(l,c){if(mn){var h=rr.formState;if(h!==null){e:{var v=an;if(mn){if(tr){t:{for(var A=tr,O=ti;A.nodeType!==8;){if(!O){A=null;break t}if(A=ul(A.nextSibling),A===null){A=null;break t}}O=A.data,A=O==="F!"||O==="F"?A:null}if(A){tr=ul(A.nextSibling),v=A.data==="F!";break e}}Qo(v)}v=!1}v&&(c=h[0])}}return h=ni(),h.memoizedState=h.baseState=c,v={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cb,lastRenderedState:c},h.queue=v,h=m1.bind(null,an,v),v.dispatch=h,v=Cp(!1),O=kp.bind(null,an,!1,v.queue),v=ni(),A={state:c,dispatch:null,action:l,pending:null},v.queue=A,h=lb.bind(null,an,A,O,h),A.dispatch=h,v.memoizedState=l,[c,h,!1]}function fb(l){var c=Br();return Il(c,jn,l)}function Il(l,c,h){if(c=l1(l,c,cb)[0],l=wp(Ll)[0],typeof c=="object"&&c!==null&&typeof c.then=="function")try{var v=Qc(c)}catch(j){throw j===Fc?vd:j}else v=c;c=Br();var A=c.queue,O=A.dispatch;return h!==c.memoizedState&&(an.flags|=2048,zu(9,To(),db.bind(null,A,h),null)),[v,O,l]}function db(l,c){l.action=c}function Kx(l){var c=Br(),h=jn;if(h!==null)return Il(c,h,l);Br(),c=c.memoizedState,h=Br();var v=h.queue.dispatch;return h.memoizedState=l,[c,v,!1]}function zu(l,c,h,v){return l={tag:l,create:h,deps:v,inst:c,next:null},c=an.updateQueue,c===null&&(c=Tp(),an.updateQueue=c),h=c.lastEffect,h===null?c.lastEffect=l.next=l:(v=h.next,h.next=l,l.next=v,c.lastEffect=l),l}function To(){return{destroy:void 0,resource:void 0}}function pb(){return Br().memoizedState}function Kc(l,c,h,v){var A=ni();v=v===void 0?null:v,an.flags|=l,A.memoizedState=zu(1|c,To(),h,v)}function ws(l,c,h,v){var A=Br();v=v===void 0?null:v;var O=A.memoizedState.inst;jn!==null&&v!==null&&Ep(v,jn.memoizedState.deps)?A.memoizedState=zu(c,O,h,v):(an.flags|=l,A.memoizedState=zu(1|c,O,h,v))}function vr(l,c){Kc(8390656,8,l,c)}function Zx(l,c){ws(2048,8,l,c)}function Jx(l,c){return ws(4,2,l,c)}function hb(l,c){return ws(4,4,l,c)}function Jo(l,c){if(typeof c=="function"){l=l();var h=c(l);return function(){typeof h=="function"?h():c(null)}}if(c!=null)return l=l(),c.current=l,function(){c.current=null}}function mb(l,c,h){h=h!=null?h.concat([l]):null,ws(4,4,Jo.bind(null,c,l),h)}function Mp(){}function Ad(l,c){var h=Br();c=c===void 0?null:c;var v=h.memoizedState;return c!==null&&Ep(c,v[1])?v[0]:(h.memoizedState=[l,c],l)}function Zc(l,c){var h=Br();c=c===void 0?null:c;var v=h.memoizedState;if(c!==null&&Ep(c,v[1]))return v[0];if(v=l(),wi){rt(!0);try{l()}finally{rt(!1)}}return h.memoizedState=[v,c],v}function p1(l,c,h){return h===void 0||(Zo&1073741824)!==0?l.memoizedState=c:(l.memoizedState=h,l=g6(),an.lanes|=l,ju|=l,h)}function h1(l,c,h,v){return ei(h,c)?h:Ts.current!==null?(l=p1(l,h,v),ei(l,c)||(wn=!0),l):(Zo&42)===0?(wn=!0,l.memoizedState=h):(l=g6(),an.lanes|=l,ju|=l,c)}function gb(l,c,h,v,A){var O=re.p;re.p=O!==0&&8>O?O:8;var j=K.T,J={};K.T=J,kp(l,!1,c,h);try{var de=A(),ke=K.S;if(ke!==null&&ke(J,de),de!==null&&typeof de=="object"&&typeof de.then=="function"){var Xe=Wv(de,v);Cd(l,c,Xe,Zi(l))}else Cd(l,c,v,Zi(l))}catch(Ze){Cd(l,c,{then:function(){},status:"rejected",reason:Ze},Zi())}finally{re.p=O,K.T=j}}function RT(){}function yb(l,c,h,v){if(l.tag!==5)throw Error(a(476));var A=vb(l).queue;gb(l,A,c,ge,h===null?RT:function(){return e6(l),h(v)})}function vb(l){var c=l.memoizedState;if(c!==null)return c;c={memoizedState:ge,baseState:ge,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ll,lastRenderedState:ge},next:null};var h={};return c.next={memoizedState:h,baseState:h,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ll,lastRenderedState:h},next:null},l.memoizedState=c,l=l.alternate,l!==null&&(l.memoizedState=c),c}function e6(l){var c=vb(l).next.queue;Cd(l,c,{},Zi())}function Jc(){return _a(Ia)}function el(){return Br().memoizedState}function bb(){return Br().memoizedState}function MT(l){for(var c=l.return;c!==null;){switch(c.tag){case 24:case 3:var h=Zi();l=Es(h);var v=Ti(c,l,h);v!==null&&(Ni(v,c,h),Yc(v,c,h)),c={cache:Xv()},l.payload=c;return}c=c.return}}function t6(l,c,h){var v=Zi();h={lane:v,revertLane:0,action:h,hasEagerState:!1,eagerState:null,next:null},Od(l)?Dp(c,h):(h=Hc(l,c,h,v),h!==null&&(Ni(h,l,v),n6(h,c,v)))}function m1(l,c,h){var v=Zi();Cd(l,c,h,v)}function Cd(l,c,h,v){var A={lane:v,revertLane:0,action:h,hasEagerState:!1,eagerState:null,next:null};if(Od(l))Dp(c,A);else{var O=l.alternate;if(l.lanes===0&&(O===null||O.lanes===0)&&(O=c.lastRenderedReducer,O!==null))try{var j=c.lastRenderedState,J=O(j,h);if(A.hasEagerState=!0,A.eagerState=J,ei(J,j))return Fo(l,c,A,0),rr===null&&Go(),!1}catch{}finally{}if(h=Hc(l,c,A,v),h!==null)return Ni(h,l,v),n6(h,c,v),!0}return!1}function kp(l,c,h,v){if(v={lane:2,revertLane:$1(),action:v,hasEagerState:!1,eagerState:null,next:null},Od(l)){if(c)throw Error(a(479))}else c=Hc(l,h,v,2),c!==null&&Ni(c,l,2)}function Od(l){var c=l.alternate;return l===an||c!==null&&c===an}function Dp(l,c){Wc=Xc=!0;var h=l.pending;h===null?c.next=c:(c.next=h.next,h.next=c),l.pending=c}function n6(l,c,h){if((h&4194048)!==0){var v=c.lanes;v&=l.pendingLanes,h|=v,c.lanes=h,un(l,h)}}var _p={readContext:_a,use:o1,useCallback:kr,useContext:kr,useEffect:kr,useImperativeHandle:kr,useLayoutEffect:kr,useInsertionEffect:kr,useMemo:kr,useReducer:kr,useRef:kr,useState:kr,useDebugValue:kr,useDeferredValue:kr,useTransition:kr,useSyncExternalStore:kr,useId:kr,useHostTransitionStatus:kr,useFormState:kr,useActionState:kr,useOptimistic:kr,useMemoCache:kr,useCacheRefresh:kr},r6={readContext:_a,use:o1,useCallback:function(l,c){return ni().memoizedState=[l,c===void 0?null:c],l},useContext:_a,useEffect:vr,useImperativeHandle:function(l,c,h){h=h!=null?h.concat([l]):null,Kc(4194308,4,Jo.bind(null,c,l),h)},useLayoutEffect:function(l,c){return Kc(4194308,4,l,c)},useInsertionEffect:function(l,c){Kc(4,2,l,c)},useMemo:function(l,c){var h=ni();c=c===void 0?null:c;var v=l();if(wi){rt(!0);try{l()}finally{rt(!1)}}return h.memoizedState=[v,c],v},useReducer:function(l,c,h){var v=ni();if(h!==void 0){var A=h(c);if(wi){rt(!0);try{h(c)}finally{rt(!1)}}}else A=c;return v.memoizedState=v.baseState=A,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:A},v.queue=l,l=l.dispatch=t6.bind(null,an,l),[v.memoizedState,l]},useRef:function(l){var c=ni();return l={current:l},c.memoizedState=l},useState:function(l){l=Cp(l);var c=l.queue,h=m1.bind(null,an,c);return c.dispatch=h,[l.memoizedState,h]},useDebugValue:Mp,useDeferredValue:function(l,c){var h=ni();return p1(h,l,c)},useTransition:function(){var l=Cp(!1);return l=gb.bind(null,an,l.queue,!0,!1),ni().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,c,h){var v=an,A=ni();if(mn){if(h===void 0)throw Error(a(407));h=h()}else{if(h=c(),rr===null)throw Error(a(349));(Ln&124)!==0||Ap(v,c,h)}A.memoizedState=h;var O={value:h,getSnapshot:c};return A.queue=O,vr(ab.bind(null,v,O,l),[l]),v.flags|=2048,zu(9,To(),u1.bind(null,v,O,h,c),null),h},useId:function(){var l=ni(),c=rr.identifierPrefix;if(mn){var h=Wo,v=Xo;h=(v&~(1<<32-lt(v)-1)).toString(32)+h,c="«"+c+"R"+h,h=Sp++,0<h&&(c+="H"+h.toString(32)),c+="»"}else h=n1++,c="«"+c+"r"+h.toString(32)+"»";return l.memoizedState=c},useHostTransitionStatus:Jc,useFormState:d1,useActionState:d1,useOptimistic:function(l){var c=ni();c.memoizedState=c.baseState=l;var h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return c.queue=h,c=kp.bind(null,an,!0,h),h.dispatch=c,[l,c]},useMemoCache:fa,useCacheRefresh:function(){return ni().memoizedState=MT.bind(null,an)}},xb={readContext:_a,use:o1,useCallback:Ad,useContext:_a,useEffect:Zx,useImperativeHandle:mb,useInsertionEffect:Jx,useLayoutEffect:hb,useMemo:Zc,useReducer:wp,useRef:pb,useState:function(){return wp(Ll)},useDebugValue:Mp,useDeferredValue:function(l,c){var h=Br();return h1(h,jn.memoizedState,l,c)},useTransition:function(){var l=wp(Ll)[0],c=Br().memoizedState;return[typeof l=="boolean"?l:Qc(l),c]},useSyncExternalStore:rb,useId:el,useHostTransitionStatus:Jc,useFormState:fb,useActionState:fb,useOptimistic:function(l,c){var h=Br();return c1(h,jn,l,c)},useMemoCache:fa,useCacheRefresh:bb},a6={readContext:_a,use:o1,useCallback:Ad,useContext:_a,useEffect:Zx,useImperativeHandle:mb,useInsertionEffect:Jx,useLayoutEffect:hb,useMemo:Zc,useReducer:s1,useRef:pb,useState:function(){return s1(Ll)},useDebugValue:Mp,useDeferredValue:function(l,c){var h=Br();return jn===null?p1(h,l,c):h1(h,jn.memoizedState,l,c)},useTransition:function(){var l=s1(Ll)[0],c=Br().memoizedState;return[typeof l=="boolean"?l:Qc(l),c]},useSyncExternalStore:rb,useId:el,useHostTransitionStatus:Jc,useFormState:Kx,useActionState:Kx,useOptimistic:function(l,c){var h=Br();return jn!==null?c1(h,jn,l,c):(h.baseState=l,[l,h.queue.dispatch])},useMemoCache:fa,useCacheRefresh:bb},Ci=null,Rd=0;function Np(l){var c=Rd;return Rd+=1,Ci===null&&(Ci=[]),Zv(Ci,l,c)}function zp(l,c){c=c.props.ref,l.ref=c!==void 0?c:null}function Md(l,c){throw c.$$typeof===S?Error(a(525)):(l=Object.prototype.toString.call(c),Error(a(31,l==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":l)))}function Oi(l){var c=l._init;return c(l._payload)}function Sb(l){function c(Re,Ee){if(l){var De=Re.deletions;De===null?(Re.deletions=[Ee],Re.flags|=16):De.push(Ee)}}function h(Re,Ee){if(!l)return null;for(;Ee!==null;)c(Re,Ee),Ee=Ee.sibling;return null}function v(Re){for(var Ee=new Map;Re!==null;)Re.key!==null?Ee.set(Re.key,Re):Ee.set(Re.index,Re),Re=Re.sibling;return Ee}function A(Re,Ee){return Re=Yo(Re,Ee),Re.index=0,Re.sibling=null,Re}function O(Re,Ee,De){return Re.index=De,l?(De=Re.alternate,De!==null?(De=De.index,De<Ee?(Re.flags|=67108866,Ee):De):(Re.flags|=67108866,Ee)):(Re.flags|=1048576,Ee)}function j(Re){return l&&Re.alternate===null&&(Re.flags|=67108866),Re}function J(Re,Ee,De,We){return Ee===null||Ee.tag!==6?(Ee=Ru(De,Re.mode,We),Ee.return=Re,Ee):(Ee=A(Ee,De),Ee.return=Re,Ee)}function de(Re,Ee,De,We){var Tt=De.type;return Tt===C?Xe(Re,Ee,De.props.children,We,De.key):Ee!==null&&(Ee.elementType===Tt||typeof Tt=="object"&&Tt!==null&&Tt.$$typeof===ie&&Oi(Tt)===Ee.type)?(Ee=A(Ee,De.props),zp(Ee,De),Ee.return=Re,Ee):(Ee=hn(De.type,De.key,De.props,null,Re.mode,We),zp(Ee,De),Ee.return=Re,Ee)}function ke(Re,Ee,De,We){return Ee===null||Ee.tag!==4||Ee.stateNode.containerInfo!==De.containerInfo||Ee.stateNode.implementation!==De.implementation?(Ee=sd(De,Re.mode,We),Ee.return=Re,Ee):(Ee=A(Ee,De.children||[]),Ee.return=Re,Ee)}function Xe(Re,Ee,De,We,Tt){return Ee===null||Ee.tag!==7?(Ee=it(De,Re.mode,We,Tt),Ee.return=Re,Ee):(Ee=A(Ee,De),Ee.return=Re,Ee)}function Ze(Re,Ee,De){if(typeof Ee=="string"&&Ee!==""||typeof Ee=="number"||typeof Ee=="bigint")return Ee=Ru(""+Ee,Re.mode,De),Ee.return=Re,Ee;if(typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case w:return De=hn(Ee.type,Ee.key,Ee.props,null,Re.mode,De),zp(De,Ee),De.return=Re,De;case T:return Ee=sd(Ee,Re.mode,De),Ee.return=Re,Ee;case ie:var We=Ee._init;return Ee=We(Ee._payload),Ze(Re,Ee,De)}if(ae(Ee)||V(Ee))return Ee=it(Ee,Re.mode,De,null),Ee.return=Re,Ee;if(typeof Ee.then=="function")return Ze(Re,Np(Ee),De);if(Ee.$$typeof===P)return Ze(Re,pd(Re,Ee),De);Md(Re,Ee)}return null}function _e(Re,Ee,De,We){var Tt=Ee!==null?Ee.key:null;if(typeof De=="string"&&De!==""||typeof De=="number"||typeof De=="bigint")return Tt!==null?null:J(Re,Ee,""+De,We);if(typeof De=="object"&&De!==null){switch(De.$$typeof){case w:return De.key===Tt?de(Re,Ee,De,We):null;case T:return De.key===Tt?ke(Re,Ee,De,We):null;case ie:return Tt=De._init,De=Tt(De._payload),_e(Re,Ee,De,We)}if(ae(De)||V(De))return Tt!==null?null:Xe(Re,Ee,De,We,null);if(typeof De.then=="function")return _e(Re,Ee,Np(De),We);if(De.$$typeof===P)return _e(Re,Ee,pd(Re,De),We);Md(Re,De)}return null}function Pe(Re,Ee,De,We,Tt){if(typeof We=="string"&&We!==""||typeof We=="number"||typeof We=="bigint")return Re=Re.get(De)||null,J(Ee,Re,""+We,Tt);if(typeof We=="object"&&We!==null){switch(We.$$typeof){case w:return Re=Re.get(We.key===null?De:We.key)||null,de(Ee,Re,We,Tt);case T:return Re=Re.get(We.key===null?De:We.key)||null,ke(Ee,Re,We,Tt);case ie:var gn=We._init;return We=gn(We._payload),Pe(Re,Ee,De,We,Tt)}if(ae(We)||V(We))return Re=Re.get(De)||null,Xe(Ee,Re,We,Tt,null);if(typeof We.then=="function")return Pe(Re,Ee,De,Np(We),Tt);if(We.$$typeof===P)return Pe(Re,Ee,De,pd(Ee,We),Tt);Md(Ee,We)}return null}function Vt(Re,Ee,De,We){for(var Tt=null,gn=null,kt=Ee,jt=Ee=0,Ca=null;kt!==null&&jt<De.length;jt++){kt.index>jt?(Ca=kt,kt=null):Ca=kt.sibling;var Pn=_e(Re,kt,De[jt],We);if(Pn===null){kt===null&&(kt=Ca);break}l&&kt&&Pn.alternate===null&&c(Re,kt),Ee=O(Pn,Ee,jt),gn===null?Tt=Pn:gn.sibling=Pn,gn=Pn,kt=Ca}if(jt===De.length)return h(Re,kt),mn&&ta(Re,jt),Tt;if(kt===null){for(;jt<De.length;jt++)kt=Ze(Re,De[jt],We),kt!==null&&(Ee=O(kt,Ee,jt),gn===null?Tt=kt:gn.sibling=kt,gn=kt);return mn&&ta(Re,jt),Tt}for(kt=v(kt);jt<De.length;jt++)Ca=Pe(kt,Re,jt,De[jt],We),Ca!==null&&(l&&Ca.alternate!==null&&kt.delete(Ca.key===null?jt:Ca.key),Ee=O(Ca,Ee,jt),gn===null?Tt=Ca:gn.sibling=Ca,gn=Ca);return l&&kt.forEach(function(Gl){return c(Re,Gl)}),mn&&ta(Re,jt),Tt}function _t(Re,Ee,De,We){if(De==null)throw Error(a(151));for(var Tt=null,gn=null,kt=Ee,jt=Ee=0,Ca=null,Pn=De.next();kt!==null&&!Pn.done;jt++,Pn=De.next()){kt.index>jt?(Ca=kt,kt=null):Ca=kt.sibling;var Gl=_e(Re,kt,Pn.value,We);if(Gl===null){kt===null&&(kt=Ca);break}l&&kt&&Gl.alternate===null&&c(Re,kt),Ee=O(Gl,Ee,jt),gn===null?Tt=Gl:gn.sibling=Gl,gn=Gl,kt=Ca}if(Pn.done)return h(Re,kt),mn&&ta(Re,jt),Tt;if(kt===null){for(;!Pn.done;jt++,Pn=De.next())Pn=Ze(Re,Pn.value,We),Pn!==null&&(Ee=O(Pn,Ee,jt),gn===null?Tt=Pn:gn.sibling=Pn,gn=Pn);return mn&&ta(Re,jt),Tt}for(kt=v(kt);!Pn.done;jt++,Pn=De.next())Pn=Pe(kt,Re,jt,Pn.value,We),Pn!==null&&(l&&Pn.alternate!==null&&kt.delete(Pn.key===null?jt:Pn.key),Ee=O(Pn,Ee,jt),gn===null?Tt=Pn:gn.sibling=Pn,gn=Pn);return l&&kt.forEach(function(VT){return c(Re,VT)}),mn&&ta(Re,jt),Tt}function qn(Re,Ee,De,We){if(typeof De=="object"&&De!==null&&De.type===C&&De.key===null&&(De=De.props.children),typeof De=="object"&&De!==null){switch(De.$$typeof){case w:e:{for(var Tt=De.key;Ee!==null;){if(Ee.key===Tt){if(Tt=De.type,Tt===C){if(Ee.tag===7){h(Re,Ee.sibling),We=A(Ee,De.props.children),We.return=Re,Re=We;break e}}else if(Ee.elementType===Tt||typeof Tt=="object"&&Tt!==null&&Tt.$$typeof===ie&&Oi(Tt)===Ee.type){h(Re,Ee.sibling),We=A(Ee,De.props),zp(We,De),We.return=Re,Re=We;break e}h(Re,Ee);break}else c(Re,Ee);Ee=Ee.sibling}De.type===C?(We=it(De.props.children,Re.mode,We,De.key),We.return=Re,Re=We):(We=hn(De.type,De.key,De.props,null,Re.mode,We),zp(We,De),We.return=Re,Re=We)}return j(Re);case T:e:{for(Tt=De.key;Ee!==null;){if(Ee.key===Tt)if(Ee.tag===4&&Ee.stateNode.containerInfo===De.containerInfo&&Ee.stateNode.implementation===De.implementation){h(Re,Ee.sibling),We=A(Ee,De.children||[]),We.return=Re,Re=We;break e}else{h(Re,Ee);break}else c(Re,Ee);Ee=Ee.sibling}We=sd(De,Re.mode,We),We.return=Re,Re=We}return j(Re);case ie:return Tt=De._init,De=Tt(De._payload),qn(Re,Ee,De,We)}if(ae(De))return Vt(Re,Ee,De,We);if(V(De)){if(Tt=V(De),typeof Tt!="function")throw Error(a(150));return De=Tt.call(De),_t(Re,Ee,De,We)}if(typeof De.then=="function")return qn(Re,Ee,Np(De),We);if(De.$$typeof===P)return qn(Re,Ee,pd(Re,De),We);Md(Re,De)}return typeof De=="string"&&De!==""||typeof De=="number"||typeof De=="bigint"?(De=""+De,Ee!==null&&Ee.tag===6?(h(Re,Ee.sibling),We=A(Ee,De),We.return=Re,Re=We):(h(Re,Ee),We=Ru(De,Re.mode,We),We.return=Re,Re=We),j(Re)):h(Re,Ee)}return function(Re,Ee,De,We){try{Rd=0;var Tt=qn(Re,Ee,De,We);return Ci=null,Tt}catch(kt){if(kt===Fc||kt===vd)throw kt;var gn=xi(29,kt,null,Re.mode);return gn.lanes=We,gn.return=Re,gn}finally{}}}var Sa=Sb(!0),Eb=Sb(!1),ra=q(null),tl=null;function Ri(l){var c=l.alternate;H(Yr,Yr.current&1),H(ra,l),tl===null&&(c===null||Ts.current!==null||c.memoizedState!==null)&&(tl=l)}function Tb(l){if(l.tag===22){if(H(Yr,Yr.current),H(ra,l),tl===null){var c=l.alternate;c!==null&&c.memoizedState!==null&&(tl=l)}}else Ha()}function Ha(){H(Yr,Yr.current),H(ra,ra.current)}function nl(l){se(ra),tl===l&&(tl=null),se(Yr)}var Yr=q(0);function Xi(l){for(var c=l;c!==null;){if(c.tag===13){var h=c.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||h.data==="$?"||u4(h)))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===l)break;for(;c.sibling===null;){if(c.return===null||c.return===l)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}function g1(l,c,h,v){c=l.memoizedState,h=h(v,c),h=h==null?c:x({},c,h),l.memoizedState=h,l.lanes===0&&(l.updateQueue.baseState=h)}var Lu={enqueueSetState:function(l,c,h){l=l._reactInternals;var v=Zi(),A=Es(v);A.payload=c,h!=null&&(A.callback=h),c=Ti(l,A,v),c!==null&&(Ni(c,l,v),Yc(c,l,v))},enqueueReplaceState:function(l,c,h){l=l._reactInternals;var v=Zi(),A=Es(v);A.tag=1,A.payload=c,h!=null&&(A.callback=h),c=Ti(l,A,v),c!==null&&(Ni(c,l,v),Yc(c,l,v))},enqueueForceUpdate:function(l,c){l=l._reactInternals;var h=Zi(),v=Es(h);v.tag=2,c!=null&&(v.callback=c),c=Ti(l,v,h),c!==null&&(Ni(c,l,h),Yc(c,l,h))}};function wb(l,c,h,v,A,O,j){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(v,O,j):c.prototype&&c.prototype.isPureReactComponent?!hs(h,v)||!hs(A,O):!0}function kd(l,c,h,v){l=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(h,v),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(h,v),c.state!==l&&Lu.enqueueReplaceState(c,c.state,null)}function wo(l,c){var h=c;if("ref"in c){h={};for(var v in c)v!=="ref"&&(h[v]=c[v])}if(l=l.defaultProps){h===c&&(h=x({},h));for(var A in l)h[A]===void 0&&(h[A]=l[A])}return h}var Lp=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var c=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(c))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)};function Ab(l){Lp(l)}function Dd(l){console.error(l)}function Cb(l){Lp(l)}function ef(l,c){try{var h=l.onUncaughtError;h(c.value,{componentStack:c.stack})}catch(v){setTimeout(function(){throw v})}}function Ob(l,c,h){try{var v=l.onCaughtError;v(h.value,{componentStack:h.stack,errorBoundary:c.tag===1?c.stateNode:null})}catch(A){setTimeout(function(){throw A})}}function y1(l,c,h){return h=Es(h),h.tag=3,h.payload={element:null},h.callback=function(){ef(l,c)},h}function i6(l){return l=Es(l),l.tag=3,l}function Rb(l,c,h,v){var A=h.type.getDerivedStateFromError;if(typeof A=="function"){var O=v.value;l.payload=function(){return A(O)},l.callback=function(){Ob(c,h,v)}}var j=h.stateNode;j!==null&&typeof j.componentDidCatch=="function"&&(l.callback=function(){Ob(c,h,v),typeof A!="function"&&(Bl===null?Bl=new Set([this]):Bl.add(this));var J=v.stack;this.componentDidCatch(v.value,{componentStack:J!==null?J:""})})}function Wi(l,c,h,v,A){if(h.flags|=32768,v!==null&&typeof v=="object"&&typeof v.then=="function"){if(c=h.alternate,c!==null&&dp(c,h,A,!0),h=ra.current,h!==null){switch(h.tag){case 13:return tl===null?Fu():h.alternate===null&&Vr===0&&(Vr=3),h.flags&=-257,h.flags|=65536,h.lanes=A,v===Zm?h.flags|=16384:(c=h.updateQueue,c===null?h.updateQueue=new Set([v]):c.add(v),Hp(l,v,A)),!1;case 22:return h.flags|=65536,v===Zm?h.flags|=16384:(c=h.updateQueue,c===null?(c={transitions:null,markerInstances:null,retryQueue:new Set([v])},h.updateQueue=c):(h=c.retryQueue,h===null?c.retryQueue=new Set([v]):h.add(v)),Hp(l,v,A)),!1}throw Error(a(435,h.tag))}return Hp(l,v,A),Fu(),!1}if(mn)return c=ra.current,c!==null?((c.flags&65536)===0&&(c.flags|=256),c.flags|=65536,c.lanes=A,v!==cp&&(l=Error(a(422),{cause:v}),dd(Fi(l,h)))):(v!==cp&&(c=Error(a(423),{cause:v}),dd(Fi(c,h))),l=l.current.alternate,l.flags|=65536,A&=-A,l.lanes|=A,v=Fi(v,h),A=y1(l.stateNode,v,A),vp(l,A),Vr!==4&&(Vr=2)),!1;var O=Error(a(520),{cause:v});if(O=Fi(O,h),Up===null?Up=[O]:Up.push(O),Vr!==4&&(Vr=2),c===null)return!0;v=Fi(v,h),h=c;do{switch(h.tag){case 3:return h.flags|=65536,l=A&-A,h.lanes|=l,l=y1(h.stateNode,v,l),vp(h,l),!1;case 1:if(c=h.type,O=h.stateNode,(h.flags&128)===0&&(typeof c.getDerivedStateFromError=="function"||O!==null&&typeof O.componentDidCatch=="function"&&(Bl===null||!Bl.has(O))))return h.flags|=65536,A&=-A,h.lanes|=A,A=i6(A),Rb(A,l,h,v),vp(h,A),!1}h=h.return}while(h!==null);return!1}var Mb=Error(a(461)),wn=!1;function Ea(l,c,h,v){c.child=l===null?Eb(c,null,h,v):Sa(c,l.child,h,v)}function kb(l,c,h,v,A){h=h.render;var O=c.ref;if("ref"in v){var j={};for(var J in v)J!=="ref"&&(j[J]=v[J])}else j=v;return ku(c),v=r1(l,c,h,j,O,A),J=a1(),l!==null&&!wn?(i1(l,c,A),rl(l,c,A)):(mn&&J&&up(c),c.flags|=1,Ea(l,c,v,A),c.child)}function o6(l,c,h,v,A){if(l===null){var O=h.type;return typeof O=="function"&&!Gm(O)&&O.defaultProps===void 0&&h.compare===null?(c.tag=15,c.type=O,As(l,c,O,v,A)):(l=hn(h.type,null,v,c,c.mode,A),l.ref=c.ref,l.return=c,c.child=l)}if(O=l.child,!T1(l,A)){var j=O.memoizedProps;if(h=h.compare,h=h!==null?h:hs,h(j,v)&&l.ref===c.ref)return rl(l,c,A)}return c.flags|=1,l=Yo(O,v),l.ref=c.ref,l.return=c,c.child=l}function As(l,c,h,v,A){if(l!==null){var O=l.memoizedProps;if(hs(O,v)&&l.ref===c.ref)if(wn=!1,c.pendingProps=v=O,T1(l,A))(l.flags&131072)!==0&&(wn=!0);else return c.lanes=l.lanes,rl(l,c,A)}return b1(l,c,h,v,A)}function tf(l,c,h){var v=c.pendingProps,A=v.children,O=l!==null?l.memoizedState:null;if(v.mode==="hidden"){if((c.flags&128)!==0){if(v=O!==null?O.baseLanes|h:h,l!==null){for(A=c.child=l.child,O=0;A!==null;)O=O|A.lanes|A.childLanes,A=A.sibling;c.childLanes=O&~v}else c.childLanes=0,c.child=null;return v1(l,c,v,h)}if((h&536870912)!==0)c.memoizedState={baseLanes:0,cachePool:null},l!==null&&yd(c,O!==null?O.cachePool:null),O!==null?tb(c,O):ca(),Tb(c);else return c.lanes=c.childLanes=536870912,v1(l,c,O!==null?O.baseLanes|h:h,h)}else O!==null?(yd(c,O.cachePool),tb(c,O),Ha(),c.memoizedState=null):(l!==null&&yd(c,null),ca(),Ha());return Ea(l,c,A,h),c.child}function v1(l,c,h,v){var A=gd();return A=A===null?null:{parent:na._currentValue,pool:A},c.memoizedState={baseLanes:h,cachePool:A},l!==null&&yd(c,null),ca(),Tb(c),l!==null&&dp(l,c,v,!0),null}function Cs(l,c){var h=c.ref;if(h===null)l!==null&&l.ref!==null&&(c.flags|=4194816);else{if(typeof h!="function"&&typeof h!="object")throw Error(a(284));(l===null||l.ref!==h)&&(c.flags|=4194816)}}function b1(l,c,h,v,A){return ku(c),h=r1(l,c,h,v,void 0,A),v=a1(),l!==null&&!wn?(i1(l,c,A),rl(l,c,A)):(mn&&v&&up(c),c.flags|=1,Ea(l,c,h,A),c.child)}function Db(l,c,h,v,A,O){return ku(c),c.updateQueue=null,h=Nu(c,v,h,A),nb(l),v=a1(),l!==null&&!wn?(i1(l,c,O),rl(l,c,O)):(mn&&v&&up(c),c.flags|=1,Ea(l,c,h,O),c.child)}function _b(l,c,h,v,A){if(ku(c),c.stateNode===null){var O=qc,j=h.contextType;typeof j=="object"&&j!==null&&(O=_a(j)),O=new h(v,O),c.memoizedState=O.state!==null&&O.state!==void 0?O.state:null,O.updater=Lu,c.stateNode=O,O._reactInternals=c,O=c.stateNode,O.props=v,O.state=c.memoizedState,O.refs={},yp(c),j=h.contextType,O.context=typeof j=="object"&&j!==null?_a(j):qc,O.state=c.memoizedState,j=h.getDerivedStateFromProps,typeof j=="function"&&(g1(c,h,j,v),O.state=c.memoizedState),typeof h.getDerivedStateFromProps=="function"||typeof O.getSnapshotBeforeUpdate=="function"||typeof O.UNSAFE_componentWillMount!="function"&&typeof O.componentWillMount!="function"||(j=O.state,typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount(),j!==O.state&&Lu.enqueueReplaceState(O,O.state,null),Sd(c,v,O,A),bp(),O.state=c.memoizedState),typeof O.componentDidMount=="function"&&(c.flags|=4194308),v=!0}else if(l===null){O=c.stateNode;var J=c.memoizedProps,de=wo(h,J);O.props=de;var ke=O.context,Xe=h.contextType;j=qc,typeof Xe=="object"&&Xe!==null&&(j=_a(Xe));var Ze=h.getDerivedStateFromProps;Xe=typeof Ze=="function"||typeof O.getSnapshotBeforeUpdate=="function",J=c.pendingProps!==J,Xe||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(J||ke!==j)&&kd(c,O,v,j),Ss=!1;var _e=c.memoizedState;O.state=_e,Sd(c,v,O,A),bp(),ke=c.memoizedState,J||_e!==ke||Ss?(typeof Ze=="function"&&(g1(c,h,Ze,v),ke=c.memoizedState),(de=Ss||wb(c,h,de,v,_e,ke,j))?(Xe||typeof O.UNSAFE_componentWillMount!="function"&&typeof O.componentWillMount!="function"||(typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount()),typeof O.componentDidMount=="function"&&(c.flags|=4194308)):(typeof O.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=v,c.memoizedState=ke),O.props=v,O.state=ke,O.context=j,v=de):(typeof O.componentDidMount=="function"&&(c.flags|=4194308),v=!1)}else{O=c.stateNode,e1(l,c),j=c.memoizedProps,Xe=wo(h,j),O.props=Xe,Ze=c.pendingProps,_e=O.context,ke=h.contextType,de=qc,typeof ke=="object"&&ke!==null&&(de=_a(ke)),J=h.getDerivedStateFromProps,(ke=typeof J=="function"||typeof O.getSnapshotBeforeUpdate=="function")||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(j!==Ze||_e!==de)&&kd(c,O,v,de),Ss=!1,_e=c.memoizedState,O.state=_e,Sd(c,v,O,A),bp();var Pe=c.memoizedState;j!==Ze||_e!==Pe||Ss||l!==null&&l.dependencies!==null&&pp(l.dependencies)?(typeof J=="function"&&(g1(c,h,J,v),Pe=c.memoizedState),(Xe=Ss||wb(c,h,Xe,v,_e,Pe,de)||l!==null&&l.dependencies!==null&&pp(l.dependencies))?(ke||typeof O.UNSAFE_componentWillUpdate!="function"&&typeof O.componentWillUpdate!="function"||(typeof O.componentWillUpdate=="function"&&O.componentWillUpdate(v,Pe,de),typeof O.UNSAFE_componentWillUpdate=="function"&&O.UNSAFE_componentWillUpdate(v,Pe,de)),typeof O.componentDidUpdate=="function"&&(c.flags|=4),typeof O.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof O.componentDidUpdate!="function"||j===l.memoizedProps&&_e===l.memoizedState||(c.flags|=4),typeof O.getSnapshotBeforeUpdate!="function"||j===l.memoizedProps&&_e===l.memoizedState||(c.flags|=1024),c.memoizedProps=v,c.memoizedState=Pe),O.props=v,O.state=Pe,O.context=de,v=Xe):(typeof O.componentDidUpdate!="function"||j===l.memoizedProps&&_e===l.memoizedState||(c.flags|=4),typeof O.getSnapshotBeforeUpdate!="function"||j===l.memoizedProps&&_e===l.memoizedState||(c.flags|=1024),v=!1)}return O=v,Cs(l,c),v=(c.flags&128)!==0,O||v?(O=c.stateNode,h=v&&typeof h.getDerivedStateFromError!="function"?null:O.render(),c.flags|=1,l!==null&&v?(c.child=Sa(c,l.child,null,A),c.child=Sa(c,null,h,A)):Ea(l,c,h,A),c.memoizedState=O.state,l=c.child):l=rl(l,c,A),l}function x1(l,c,h,v){return fd(),c.flags|=256,Ea(l,c,h,v),c.child}var Ip={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function S1(l){return{baseLanes:l,cachePool:mp()}}function Nb(l,c,h){return l=l!==null?l.childLanes&~h:0,c&&(l|=da),l}function l6(l,c,h){var v=c.pendingProps,A=!1,O=(c.flags&128)!==0,j;if((j=O)||(j=l!==null&&l.memoizedState===null?!1:(Yr.current&2)!==0),j&&(A=!0,c.flags&=-129),j=(c.flags&32)!==0,c.flags&=-33,l===null){if(mn){if(A?Ri(c):Ha(),mn){var J=tr,de;if(de=J){e:{for(de=J,J=ti;de.nodeType!==8;){if(!J){J=null;break e}if(de=ul(de.nextSibling),de===null){J=null;break e}}J=de}J!==null?(c.memoizedState={dehydrated:J,treeContext:ys!==null?{id:Xo,overflow:Wo}:null,retryLane:536870912,hydrationErrors:null},de=xi(18,null,null,0),de.stateNode=J,de.return=c,c.child=de,Ir=c,tr=null,de=!0):de=!1}de||Qo(c)}if(J=c.memoizedState,J!==null&&(J=J.dehydrated,J!==null))return u4(J)?c.lanes=32:c.lanes=536870912,null;nl(c)}return J=v.children,v=v.fallback,A?(Ha(),A=c.mode,J=Bp({mode:"hidden",children:J},A),v=it(v,A,h,null),J.return=c,v.return=c,J.sibling=v,c.child=J,A=c.child,A.memoizedState=S1(h),A.childLanes=Nb(l,j,h),c.memoizedState=Ip,v):(Ri(c),E1(c,J))}if(de=l.memoizedState,de!==null&&(J=de.dehydrated,J!==null)){if(O)c.flags&256?(Ri(c),c.flags&=-257,c=zb(l,c,h)):c.memoizedState!==null?(Ha(),c.child=l.child,c.flags|=128,c=null):(Ha(),A=v.fallback,J=c.mode,v=Bp({mode:"visible",children:v.children},J),A=it(A,J,h,null),A.flags|=2,v.return=c,A.return=c,v.sibling=A,c.child=v,Sa(c,l.child,null,h),v=c.child,v.memoizedState=S1(h),v.childLanes=Nb(l,j,h),c.memoizedState=Ip,c=A);else if(Ri(c),u4(J)){if(j=J.nextSibling&&J.nextSibling.dataset,j)var ke=j.dgst;j=ke,v=Error(a(419)),v.stack="",v.digest=j,dd({value:v,source:null,stack:null}),c=zb(l,c,h)}else if(wn||dp(l,c,h,!1),j=(h&l.childLanes)!==0,wn||j){if(j=rr,j!==null&&(v=h&-h,v=(v&42)!==0?1:zt(v),v=(v&(j.suspendedLanes|h))!==0?0:v,v!==0&&v!==de.retryLane))throw de.retryLane=v,gs(l,v),Ni(j,l,v),Mb;J.data==="$?"||Fu(),c=zb(l,c,h)}else J.data==="$?"?(c.flags|=192,c.child=l.child,c=null):(l=de.treeContext,tr=ul(J.nextSibling),Ir=c,mn=!0,vs=null,ti=!1,l!==null&&(Si[xo++]=Xo,Si[xo++]=Wo,Si[xo++]=ys,Xo=l.id,Wo=l.overflow,ys=c),c=E1(c,v.children),c.flags|=4096);return c}return A?(Ha(),A=v.fallback,J=c.mode,de=l.child,ke=de.sibling,v=Yo(de,{mode:"hidden",children:v.children}),v.subtreeFlags=de.subtreeFlags&65011712,ke!==null?A=Yo(ke,A):(A=it(A,J,h,null),A.flags|=2),A.return=c,v.return=c,v.sibling=A,c.child=v,v=A,A=c.child,J=l.child.memoizedState,J===null?J=S1(h):(de=J.cachePool,de!==null?(ke=na._currentValue,de=de.parent!==ke?{parent:ke,pool:ke}:de):de=mp(),J={baseLanes:J.baseLanes|h,cachePool:de}),A.memoizedState=J,A.childLanes=Nb(l,j,h),c.memoizedState=Ip,v):(Ri(c),h=l.child,l=h.sibling,h=Yo(h,{mode:"visible",children:v.children}),h.return=c,h.sibling=null,l!==null&&(j=c.deletions,j===null?(c.deletions=[l],c.flags|=16):j.push(l)),c.child=h,c.memoizedState=null,h)}function E1(l,c){return c=Bp({mode:"visible",children:c},l.mode),c.return=l,l.child=c}function Bp(l,c){return l=xi(22,l,null,c),l.lanes=0,l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},l}function zb(l,c,h){return Sa(c,l.child,null,h),l=E1(c,c.pendingProps.children),l.flags|=2,c.memoizedState=null,l}function nf(l,c,h){l.lanes|=c;var v=l.alternate;v!==null&&(v.lanes|=c),Wm(l.return,c,h)}function _d(l,c,h,v,A){var O=l.memoizedState;O===null?l.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:v,tail:h,tailMode:A}:(O.isBackwards=c,O.rendering=null,O.renderingStartTime=0,O.last=v,O.tail=h,O.tailMode=A)}function Lb(l,c,h){var v=c.pendingProps,A=v.revealOrder,O=v.tail;if(Ea(l,c,v.children,h),v=Yr.current,(v&2)!==0)v=v&1|2,c.flags|=128;else{if(l!==null&&(l.flags&128)!==0)e:for(l=c.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&nf(l,h,c);else if(l.tag===19)nf(l,h,c);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===c)break e;for(;l.sibling===null;){if(l.return===null||l.return===c)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}v&=1}switch(H(Yr,v),A){case"forwards":for(h=c.child,A=null;h!==null;)l=h.alternate,l!==null&&Xi(l)===null&&(A=h),h=h.sibling;h=A,h===null?(A=c.child,c.child=null):(A=h.sibling,h.sibling=null),_d(c,!1,A,h,O);break;case"backwards":for(h=null,A=c.child,c.child=null;A!==null;){if(l=A.alternate,l!==null&&Xi(l)===null){c.child=A;break}l=A.sibling,A.sibling=h,h=A,A=l}_d(c,!0,h,null,O);break;case"together":_d(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function rl(l,c,h){if(l!==null&&(c.dependencies=l.dependencies),ju|=c.lanes,(h&c.childLanes)===0)if(l!==null){if(dp(l,c,h,!1),(h&c.childLanes)===0)return null}else return null;if(l!==null&&c.child!==l.child)throw Error(a(153));if(c.child!==null){for(l=c.child,h=Yo(l,l.pendingProps),c.child=h,h.return=c;l.sibling!==null;)l=l.sibling,h=h.sibling=Yo(l,l.pendingProps),h.return=c;h.sibling=null}return c.child}function T1(l,c){return(l.lanes&c)!==0?!0:(l=l.dependencies,!!(l!==null&&pp(l)))}function s6(l,c,h){switch(c.tag){case 3:He(c,c.stateNode.containerInfo),_l(c,na,l.memoizedState.cache),fd();break;case 27:case 5:Fe(c);break;case 4:He(c,c.stateNode.containerInfo);break;case 10:_l(c,c.type,c.memoizedProps.value);break;case 13:var v=c.memoizedState;if(v!==null)return v.dehydrated!==null?(Ri(c),c.flags|=128,null):(h&c.child.childLanes)!==0?l6(l,c,h):(Ri(c),l=rl(l,c,h),l!==null?l.sibling:null);Ri(c);break;case 19:var A=(l.flags&128)!==0;if(v=(h&c.childLanes)!==0,v||(dp(l,c,h,!1),v=(h&c.childLanes)!==0),A){if(v)return Lb(l,c,h);c.flags|=128}if(A=c.memoizedState,A!==null&&(A.rendering=null,A.tail=null,A.lastEffect=null),H(Yr,Yr.current),v)break;return null;case 22:case 23:return c.lanes=0,tf(l,c,h);case 24:_l(c,na,l.memoizedState.cache)}return rl(l,c,h)}function Ib(l,c,h){if(l!==null)if(l.memoizedProps!==c.pendingProps)wn=!0;else{if(!T1(l,h)&&(c.flags&128)===0)return wn=!1,s6(l,c,h);wn=(l.flags&131072)!==0}else wn=!1,mn&&(c.flags&1048576)!==0&&Gn(c,sp,c.index);switch(c.lanes=0,c.tag){case 16:e:{l=c.pendingProps;var v=c.elementType,A=v._init;if(v=A(v._payload),c.type=v,typeof v=="function")Gm(v)?(l=wo(v,l),c.tag=1,c=_b(null,c,v,l,h)):(c.tag=0,c=b1(null,c,v,l,h));else{if(v!=null){if(A=v.$$typeof,A===B){c.tag=11,c=kb(null,c,v,l,h);break e}else if(A===X){c.tag=14,c=o6(null,c,v,l,h);break e}}throw c=Y(v)||v,Error(a(306,c,""))}}return c;case 0:return b1(l,c,c.type,c.pendingProps,h);case 1:return v=c.type,A=wo(v,c.pendingProps),_b(l,c,v,A,h);case 3:e:{if(He(c,c.stateNode.containerInfo),l===null)throw Error(a(387));v=c.pendingProps;var O=c.memoizedState;A=O.element,e1(l,c),Sd(c,v,null,h);var j=c.memoizedState;if(v=j.cache,_l(c,na,v),v!==O.cache&&Qm(c,[na],h,!0),bp(),v=j.element,O.isDehydrated)if(O={element:v,isDehydrated:!1,cache:j.cache},c.updateQueue.baseState=O,c.memoizedState=O,c.flags&256){c=x1(l,c,v,h);break e}else if(v!==A){A=Fi(Error(a(424)),c),dd(A),c=x1(l,c,v,h);break e}else{switch(l=c.stateNode.containerInfo,l.nodeType){case 9:l=l.body;break;default:l=l.nodeName==="HTML"?l.ownerDocument.body:l}for(tr=ul(l.firstChild),Ir=c,mn=!0,vs=null,ti=!0,h=Eb(c,null,v,h),c.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling}else{if(fd(),v===A){c=rl(l,c,h);break e}Ea(l,c,v,h)}c=c.child}return c;case 26:return Cs(l,c),l===null?(h=K1(c.type,null,c.pendingProps,null))?c.memoizedState=h:mn||(h=c.type,l=c.pendingProps,v=Yd(Ce.current).createElement(h),v[ur]=c,v[Ua]=l,Ie(v,h,l),Fr(v),c.stateNode=v):c.memoizedState=K1(c.type,l.memoizedProps,c.pendingProps,l.memoizedState),null;case 27:return Fe(c),l===null&&mn&&(v=c.stateNode=La(c.type,c.pendingProps,Ce.current),Ir=c,ti=!0,A=tr,za(c.type)?(f4=A,tr=ul(v.firstChild)):tr=A),Ea(l,c,c.pendingProps.children,h),Cs(l,c),l===null&&(c.flags|=4194304),c.child;case 5:return l===null&&mn&&((A=v=tr)&&(v=s4(v,c.type,c.pendingProps,ti),v!==null?(c.stateNode=v,Ir=c,tr=ul(v.firstChild),ti=!1,A=!0):A=!1),A||Qo(c)),Fe(c),A=c.type,O=c.pendingProps,j=l!==null?l.memoizedProps:null,v=O.children,cf(A,O)?v=null:j!==null&&cf(A,j)&&(c.flags|=32),c.memoizedState!==null&&(A=r1(l,c,Qx,null,null,h),Ia._currentValue=A),Cs(l,c),Ea(l,c,v,h),c.child;case 6:return l===null&&mn&&((l=h=tr)&&(h=Xd(h,c.pendingProps,ti),h!==null?(c.stateNode=h,Ir=c,tr=null,l=!0):l=!1),l||Qo(c)),null;case 13:return l6(l,c,h);case 4:return He(c,c.stateNode.containerInfo),v=c.pendingProps,l===null?c.child=Sa(c,null,v,h):Ea(l,c,v,h),c.child;case 11:return kb(l,c,c.type,c.pendingProps,h);case 7:return Ea(l,c,c.pendingProps,h),c.child;case 8:return Ea(l,c,c.pendingProps.children,h),c.child;case 12:return Ea(l,c,c.pendingProps.children,h),c.child;case 10:return v=c.pendingProps,_l(c,c.type,v.value),Ea(l,c,v.children,h),c.child;case 9:return A=c.type._context,v=c.pendingProps.children,ku(c),A=_a(A),v=v(A),c.flags|=1,Ea(l,c,v,h),c.child;case 14:return o6(l,c,c.type,c.pendingProps,h);case 15:return As(l,c,c.type,c.pendingProps,h);case 19:return Lb(l,c,h);case 31:return v=c.pendingProps,h=c.mode,v={mode:v.mode,children:v.children},l===null?(h=Bp(v,h),h.ref=c.ref,c.child=h,h.return=c,c=h):(h=Yo(l.child,v),h.ref=c.ref,c.child=h,h.return=c,c=h),c;case 22:return tf(l,c,h);case 24:return ku(c),v=_a(na),l===null?(A=gd(),A===null&&(A=rr,O=Xv(),A.pooledCache=O,O.refCount++,O!==null&&(A.pooledCacheLanes|=h),A=O),c.memoizedState={parent:v,cache:A},yp(c),_l(c,na,A)):((l.lanes&h)!==0&&(e1(l,c),Sd(c,null,null,h),bp()),A=l.memoizedState,O=c.memoizedState,A.parent!==v?(A={parent:v,cache:v},c.memoizedState=A,c.lanes===0&&(c.memoizedState=c.updateQueue.baseState=A),_l(c,na,v)):(v=O.cache,_l(c,na,v),v!==A.cache&&Qm(c,[na],h,!0))),Ea(l,c,c.pendingProps.children,h),c.child;case 29:throw c.pendingProps}throw Error(a(156,c.tag))}function Os(l){l.flags|=4}function Bb(l,c){if(c.type!=="stylesheet"||(c.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!m4(c)){if(c=ra.current,c!==null&&((Ln&4194048)===Ln?tl!==null:(Ln&62914560)!==Ln&&(Ln&536870912)===0||c!==tl))throw xd=Zm,gp;l.flags|=8192}}function Iu(l,c){c!==null&&(l.flags|=4),l.flags&16384&&(c=l.tag!==22?Ve():536870912,l.lanes|=c,Pd|=c)}function Nd(l,c){if(!mn)switch(l.tailMode){case"hidden":c=l.tail;for(var h=null;c!==null;)c.alternate!==null&&(h=c),c=c.sibling;h===null?l.tail=null:h.sibling=null;break;case"collapsed":h=l.tail;for(var v=null;h!==null;)h.alternate!==null&&(v=h),h=h.sibling;v===null?c||l.tail===null?l.tail=null:l.tail.sibling=null:v.sibling=null}}function Ar(l){var c=l.alternate!==null&&l.alternate.child===l.child,h=0,v=0;if(c)for(var A=l.child;A!==null;)h|=A.lanes|A.childLanes,v|=A.subtreeFlags&65011712,v|=A.flags&65011712,A.return=l,A=A.sibling;else for(A=l.child;A!==null;)h|=A.lanes|A.childLanes,v|=A.subtreeFlags,v|=A.flags,A.return=l,A=A.sibling;return l.subtreeFlags|=v,l.childLanes=h,c}function nr(l,c,h){var v=c.pendingProps;switch(Gc(c),c.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ar(c),null;case 1:return Ar(c),null;case 3:return h=c.stateNode,v=null,l!==null&&(v=l.memoizedState.cache),c.memoizedState.cache!==v&&(c.flags|=2048),Nl(na),Qe(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(l===null||l.child===null)&&(cd(c)?Os(c):l===null||l.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,Fv())),Ar(c),null;case 26:return h=c.memoizedState,l===null?(Os(c),h!==null?(Ar(c),Bb(c,h)):(Ar(c),c.flags&=-16777217)):h?h!==l.memoizedState?(Os(c),Ar(c),Bb(c,h)):(Ar(c),c.flags&=-16777217):(l.memoizedProps!==v&&Os(c),Ar(c),c.flags&=-16777217),null;case 27:Je(c),h=Ce.current;var A=c.type;if(l!==null&&c.stateNode!=null)l.memoizedProps!==v&&Os(c);else{if(!v){if(c.stateNode===null)throw Error(a(166));return Ar(c),null}l=Me.current,cd(c)?Ym(c):(l=La(A,v,h),c.stateNode=l,Os(c))}return Ar(c),null;case 5:if(Je(c),h=c.type,l!==null&&c.stateNode!=null)l.memoizedProps!==v&&Os(c);else{if(!v){if(c.stateNode===null)throw Error(a(166));return Ar(c),null}if(l=Me.current,cd(c))Ym(c);else{switch(A=Yd(Ce.current),l){case 1:l=A.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:l=A.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":l=A.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":l=A.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":l=A.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild);break;case"select":l=typeof v.is=="string"?A.createElement("select",{is:v.is}):A.createElement("select"),v.multiple?l.multiple=!0:v.size&&(l.size=v.size);break;default:l=typeof v.is=="string"?A.createElement(h,{is:v.is}):A.createElement(h)}}l[ur]=c,l[Ua]=v;e:for(A=c.child;A!==null;){if(A.tag===5||A.tag===6)l.appendChild(A.stateNode);else if(A.tag!==4&&A.tag!==27&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===c)break e;for(;A.sibling===null;){if(A.return===null||A.return===c)break e;A=A.return}A.sibling.return=A.return,A=A.sibling}c.stateNode=l;e:switch(Ie(l,h,v),h){case"button":case"input":case"select":case"textarea":l=!!v.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Os(c)}}return Ar(c),c.flags&=-16777217,null;case 6:if(l&&c.stateNode!=null)l.memoizedProps!==v&&Os(c);else{if(typeof v!="string"&&c.stateNode===null)throw Error(a(166));if(l=Ce.current,cd(c)){if(l=c.stateNode,h=c.memoizedProps,v=null,A=Ir,A!==null)switch(A.tag){case 27:case 5:v=A.memoizedProps}l[ur]=c,l=!!(l.nodeValue===h||v!==null&&v.suppressHydrationWarning===!0||R6(l.nodeValue,h)),l||Qo(c)}else l=Yd(l).createTextNode(v),l[ur]=c,c.stateNode=l}return Ar(c),null;case 13:if(v=c.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(A=cd(c),v!==null&&v.dehydrated!==null){if(l===null){if(!A)throw Error(a(318));if(A=c.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(a(317));A[ur]=c}else fd(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;Ar(c),A=!1}else A=Fv(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=A),A=!0;if(!A)return c.flags&256?(nl(c),c):(nl(c),null)}if(nl(c),(c.flags&128)!==0)return c.lanes=h,c;if(h=v!==null,l=l!==null&&l.memoizedState!==null,h){v=c.child,A=null,v.alternate!==null&&v.alternate.memoizedState!==null&&v.alternate.memoizedState.cachePool!==null&&(A=v.alternate.memoizedState.cachePool.pool);var O=null;v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(O=v.memoizedState.cachePool.pool),O!==A&&(v.flags|=2048)}return h!==l&&h&&(c.child.flags|=8192),Iu(c,c.updateQueue),Ar(c),null;case 4:return Qe(),l===null&&Yp(c.stateNode.containerInfo),Ar(c),null;case 10:return Nl(c.type),Ar(c),null;case 19:if(se(Yr),A=c.memoizedState,A===null)return Ar(c),null;if(v=(c.flags&128)!==0,O=A.rendering,O===null)if(v)Nd(A,!1);else{if(Vr!==0||l!==null&&(l.flags&128)!==0)for(l=c.child;l!==null;){if(O=Xi(l),O!==null){for(c.flags|=128,Nd(A,!1),l=O.updateQueue,c.updateQueue=l,Iu(c,l),c.subtreeFlags=0,l=h,h=c.child;h!==null;)Fm(h,l),h=h.sibling;return H(Yr,Yr.current&1|2),c.child}l=l.sibling}A.tail!==null&&bt()>R1&&(c.flags|=128,v=!0,Nd(A,!1),c.lanes=4194304)}else{if(!v)if(l=Xi(O),l!==null){if(c.flags|=128,v=!0,l=l.updateQueue,c.updateQueue=l,Iu(c,l),Nd(A,!0),A.tail===null&&A.tailMode==="hidden"&&!O.alternate&&!mn)return Ar(c),null}else 2*bt()-A.renderingStartTime>R1&&h!==536870912&&(c.flags|=128,v=!0,Nd(A,!1),c.lanes=4194304);A.isBackwards?(O.sibling=c.child,c.child=O):(l=A.last,l!==null?l.sibling=O:c.child=O,A.last=O)}return A.tail!==null?(c=A.tail,A.rendering=c,A.tail=c.sibling,A.renderingStartTime=bt(),c.sibling=null,l=Yr.current,H(Yr,v?l&1|2:l&1),c):(Ar(c),null);case 22:case 23:return nl(c),Td(),v=c.memoizedState!==null,l!==null?l.memoizedState!==null!==v&&(c.flags|=8192):v&&(c.flags|=8192),v?(h&536870912)!==0&&(c.flags&128)===0&&(Ar(c),c.subtreeFlags&6&&(c.flags|=8192)):Ar(c),h=c.updateQueue,h!==null&&Iu(c,h.retryQueue),h=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),v=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(v=c.memoizedState.cachePool.pool),v!==h&&(c.flags|=2048),l!==null&&se(xs),null;case 24:return h=null,l!==null&&(h=l.memoizedState.cache),c.memoizedState.cache!==h&&(c.flags|=2048),Nl(na),Ar(c),null;case 25:return null;case 30:return null}throw Error(a(156,c.tag))}function Pb(l,c){switch(Gc(c),c.tag){case 1:return l=c.flags,l&65536?(c.flags=l&-65537|128,c):null;case 3:return Nl(na),Qe(),l=c.flags,(l&65536)!==0&&(l&128)===0?(c.flags=l&-65537|128,c):null;case 26:case 27:case 5:return Je(c),null;case 13:if(nl(c),l=c.memoizedState,l!==null&&l.dehydrated!==null){if(c.alternate===null)throw Error(a(340));fd()}return l=c.flags,l&65536?(c.flags=l&-65537|128,c):null;case 19:return se(Yr),null;case 4:return Qe(),null;case 10:return Nl(c.type),null;case 22:case 23:return nl(c),Td(),l!==null&&se(xs),l=c.flags,l&65536?(c.flags=l&-65537|128,c):null;case 24:return Nl(na),null;case 25:return null;default:return null}}function u6(l,c){switch(Gc(c),c.tag){case 3:Nl(na),Qe();break;case 26:case 27:case 5:Je(c);break;case 4:Qe();break;case 13:nl(c);break;case 19:se(Yr);break;case 10:Nl(c.type);break;case 22:case 23:nl(c),Td(),l!==null&&se(xs);break;case 24:Nl(na)}}function zd(l,c){try{var h=c.updateQueue,v=h!==null?h.lastEffect:null;if(v!==null){var A=v.next;h=A;do{if((h.tag&l)===l){v=void 0;var O=h.create,j=h.inst;v=O(),j.destroy=v}h=h.next}while(h!==A)}}catch(J){ar(c,c.return,J)}}function Bu(l,c,h){try{var v=c.updateQueue,A=v!==null?v.lastEffect:null;if(A!==null){var O=A.next;v=O;do{if((v.tag&l)===l){var j=v.inst,J=j.destroy;if(J!==void 0){j.destroy=void 0,A=c;var de=h,ke=J;try{ke()}catch(Xe){ar(A,de,Xe)}}}v=v.next}while(v!==O)}}catch(Xe){ar(c,c.return,Xe)}}function c6(l){var c=l.updateQueue;if(c!==null){var h=l.stateNode;try{t1(c,h)}catch(v){ar(l,l.return,v)}}}function w1(l,c,h){h.props=wo(l.type,l.memoizedProps),h.state=l.memoizedState;try{h.componentWillUnmount()}catch(v){ar(l,c,v)}}function Ld(l,c){try{var h=l.ref;if(h!==null){switch(l.tag){case 26:case 27:case 5:var v=l.stateNode;break;case 30:v=l.stateNode;break;default:v=l.stateNode}typeof h=="function"?l.refCleanup=h(v):h.current=v}}catch(A){ar(l,c,A)}}function al(l,c){var h=l.ref,v=l.refCleanup;if(h!==null)if(typeof v=="function")try{v()}catch(A){ar(l,c,A)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof h=="function")try{h(null)}catch(A){ar(l,c,A)}else h.current=null}function Vb(l){var c=l.type,h=l.memoizedProps,v=l.stateNode;try{e:switch(c){case"button":case"input":case"select":case"textarea":h.autoFocus&&v.focus();break e;case"img":h.src?v.src=h.src:h.srcSet&&(v.srcset=h.srcSet)}}catch(A){ar(l,l.return,A)}}function rf(l,c,h){try{var v=l.stateNode;Hn(v,l.type,h,c),v[Ua]=c}catch(A){ar(l,l.return,A)}}function f6(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27&&za(l.type)||l.tag===4}function Ub(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||f6(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.tag===27&&za(l.type)||l.flags&2||l.child===null||l.tag===4)continue e;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function Ao(l,c,h){var v=l.tag;if(v===5||v===6)l=l.stateNode,c?(h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h).insertBefore(l,c):(c=h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h,c.appendChild(l),h=h._reactRootContainer,h!=null||c.onclick!==null||(c.onclick=Wp));else if(v!==4&&(v===27&&za(l.type)&&(h=l.stateNode,c=null),l=l.child,l!==null))for(Ao(l,c,h),l=l.sibling;l!==null;)Ao(l,c,h),l=l.sibling}function Pu(l,c,h){var v=l.tag;if(v===5||v===6)l=l.stateNode,c?h.insertBefore(l,c):h.appendChild(l);else if(v!==4&&(v===27&&za(l.type)&&(h=l.stateNode),l=l.child,l!==null))for(Pu(l,c,h),l=l.sibling;l!==null;)Pu(l,c,h),l=l.sibling}function d6(l){var c=l.stateNode,h=l.memoizedProps;try{for(var v=l.type,A=c.attributes;A.length;)c.removeAttributeNode(A[0]);Ie(c,v,h),c[ur]=l,c[Ua]=h}catch(O){ar(l,l.return,O)}}var il=!1,Pr=!1,A1=!1,$b=typeof WeakSet=="function"?WeakSet:Set,aa=null;function p6(l,c){if(l=l.containerInfo,o4=rh,l=ip(l),$m(l)){if("selectionStart"in l)var h={start:l.selectionStart,end:l.selectionEnd};else e:{h=(h=l.ownerDocument)&&h.defaultView||window;var v=h.getSelection&&h.getSelection();if(v&&v.rangeCount!==0){h=v.anchorNode;var A=v.anchorOffset,O=v.focusNode;v=v.focusOffset;try{h.nodeType,O.nodeType}catch{h=null;break e}var j=0,J=-1,de=-1,ke=0,Xe=0,Ze=l,_e=null;t:for(;;){for(var Pe;Ze!==h||A!==0&&Ze.nodeType!==3||(J=j+A),Ze!==O||v!==0&&Ze.nodeType!==3||(de=j+v),Ze.nodeType===3&&(j+=Ze.nodeValue.length),(Pe=Ze.firstChild)!==null;)_e=Ze,Ze=Pe;for(;;){if(Ze===l)break t;if(_e===h&&++ke===A&&(J=j),_e===O&&++Xe===v&&(de=j),(Pe=Ze.nextSibling)!==null)break;Ze=_e,_e=Ze.parentNode}Ze=Pe}h=J===-1||de===-1?null:{start:J,end:de}}else h=null}h=h||{start:0,end:0}}else h=null;for(Qp={focusedElem:l,selectionRange:h},rh=!1,aa=c;aa!==null;)if(c=aa,l=c.child,(c.subtreeFlags&1024)!==0&&l!==null)l.return=c,aa=l;else for(;aa!==null;){switch(c=aa,O=c.alternate,l=c.flags,c.tag){case 0:break;case 11:case 15:break;case 1:if((l&1024)!==0&&O!==null){l=void 0,h=c,A=O.memoizedProps,O=O.memoizedState,v=h.stateNode;try{var Vt=wo(h.type,A,h.elementType===h.type);l=v.getSnapshotBeforeUpdate(Vt,O),v.__reactInternalSnapshotBeforeUpdate=l}catch(_t){ar(h,h.return,_t)}}break;case 3:if((l&1024)!==0){if(l=c.stateNode.containerInfo,h=l.nodeType,h===9)Kp(l);else if(h===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":Kp(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((l&1024)!==0)throw Error(a(163))}if(l=c.sibling,l!==null){l.return=c.return,aa=l;break}aa=c.return}}function C1(l,c,h){var v=h.flags;switch(h.tag){case 0:case 11:case 15:Rs(l,h),v&4&&zd(5,h);break;case 1:if(Rs(l,h),v&4)if(l=h.stateNode,c===null)try{l.componentDidMount()}catch(j){ar(h,h.return,j)}else{var A=wo(h.type,c.memoizedProps);c=c.memoizedState;try{l.componentDidUpdate(A,c,l.__reactInternalSnapshotBeforeUpdate)}catch(j){ar(h,h.return,j)}}v&64&&c6(h),v&512&&Ld(h,h.return);break;case 3:if(Rs(l,h),v&64&&(l=h.updateQueue,l!==null)){if(c=null,h.child!==null)switch(h.child.tag){case 27:case 5:c=h.child.stateNode;break;case 1:c=h.child.stateNode}try{t1(l,c)}catch(j){ar(h,h.return,j)}}break;case 27:c===null&&v&4&&d6(h);case 26:case 5:Rs(l,h),c===null&&v&4&&Vb(h),v&512&&Ld(h,h.return);break;case 12:Rs(l,h);break;case 13:Rs(l,h),v&4&&An(l,h),v&64&&(l=h.memoizedState,l!==null&&(l=l.dehydrated,l!==null&&(h=A6.bind(null,h),c4(l,h))));break;case 22:if(v=h.memoizedState!==null||il,!v){c=c!==null&&c.memoizedState!==null||Pr,A=il;var O=Pr;il=v,(Pr=c)&&!O?xr(l,h,(h.subtreeFlags&8772)!==0):Rs(l,h),il=A,Pr=O}break;case 30:break;default:Rs(l,h)}}function jb(l){var c=l.alternate;c!==null&&(l.alternate=null,jb(c)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(c=l.stateNode,c!==null&&Mt(c)),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}var br=null,Mi=!1;function Co(l,c,h){for(h=h.child;h!==null;)Hb(l,c,h),h=h.sibling}function Hb(l,c,h){if(ze&&typeof ze.onCommitFiberUnmount=="function")try{ze.onCommitFiberUnmount(ve,h)}catch{}switch(h.tag){case 26:Pr||al(h,c),Co(l,c,h),h.memoizedState?h.memoizedState.count--:h.stateNode&&(h=h.stateNode,h.parentNode.removeChild(h));break;case 27:Pr||al(h,c);var v=br,A=Mi;za(h.type)&&(br=h.stateNode,Mi=!1),Co(l,c,h),vt(h.stateNode),br=v,Mi=A;break;case 5:Pr||al(h,c);case 6:if(v=br,A=Mi,br=null,Co(l,c,h),br=v,Mi=A,br!==null)if(Mi)try{(br.nodeType===9?br.body:br.nodeName==="HTML"?br.ownerDocument.body:br).removeChild(h.stateNode)}catch(O){ar(h,c,O)}else try{br.removeChild(h.stateNode)}catch(O){ar(h,c,O)}break;case 18:br!==null&&(Mi?(l=br,k6(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,h.stateNode),e0(l)):k6(br,h.stateNode));break;case 4:v=br,A=Mi,br=h.stateNode.containerInfo,Mi=!0,Co(l,c,h),br=v,Mi=A;break;case 0:case 11:case 14:case 15:Pr||Bu(2,h,c),Pr||Bu(4,h,c),Co(l,c,h);break;case 1:Pr||(al(h,c),v=h.stateNode,typeof v.componentWillUnmount=="function"&&w1(h,c,v)),Co(l,c,h);break;case 21:Co(l,c,h);break;case 22:Pr=(v=Pr)||h.memoizedState!==null,Co(l,c,h),Pr=v;break;default:Co(l,c,h)}}function An(l,c){if(c.memoizedState===null&&(l=c.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{e0(l)}catch(h){ar(c,c.return,h)}}function qb(l){switch(l.tag){case 13:case 19:var c=l.stateNode;return c===null&&(c=l.stateNode=new $b),c;case 22:return l=l.stateNode,c=l._retryCache,c===null&&(c=l._retryCache=new $b),c;default:throw Error(a(435,l.tag))}}function Pp(l,c){var h=qb(l);c.forEach(function(v){var A=kT.bind(null,l,v);h.has(v)||(h.add(v),v.then(A,A))})}function ki(l,c){var h=c.deletions;if(h!==null)for(var v=0;v<h.length;v++){var A=h[v],O=l,j=c,J=j;e:for(;J!==null;){switch(J.tag){case 27:if(za(J.type)){br=J.stateNode,Mi=!1;break e}break;case 5:br=J.stateNode,Mi=!1;break e;case 3:case 4:br=J.stateNode.containerInfo,Mi=!0;break e}J=J.return}if(br===null)throw Error(a(160));Hb(O,j,A),br=null,Mi=!1,O=A.alternate,O!==null&&(O.return=null),A.return=null}if(c.subtreeFlags&13878)for(c=c.child;c!==null;)Id(c,l),c=c.sibling}var Qi=null;function Id(l,c){var h=l.alternate,v=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:ki(c,l),qa(l),v&4&&(Bu(3,l,l.return),zd(3,l),Bu(5,l,l.return));break;case 1:ki(c,l),qa(l),v&512&&(Pr||h===null||al(h,h.return)),v&64&&il&&(l=l.updateQueue,l!==null&&(v=l.callbacks,v!==null&&(h=l.shared.hiddenCallbacks,l.shared.hiddenCallbacks=h===null?v:h.concat(v))));break;case 26:var A=Qi;if(ki(c,l),qa(l),v&512&&(Pr||h===null||al(h,h.return)),v&4){var O=h!==null?h.memoizedState:null;if(v=l.memoizedState,h===null)if(v===null)if(l.stateNode===null){e:{v=l.type,h=l.memoizedProps,A=A.ownerDocument||A;t:switch(v){case"title":O=A.getElementsByTagName("title")[0],(!O||O[G0]||O[ur]||O.namespaceURI==="http://www.w3.org/2000/svg"||O.hasAttribute("itemprop"))&&(O=A.createElement(v),A.head.insertBefore(O,A.querySelector("head > title"))),Ie(O,v,h),O[ur]=l,Fr(O),v=O;break e;case"link":var j=Qd("link","href",A).get(v+(h.href||""));if(j){for(var J=0;J<j.length;J++)if(O=j[J],O.getAttribute("href")===(h.href==null||h.href===""?null:h.href)&&O.getAttribute("rel")===(h.rel==null?null:h.rel)&&O.getAttribute("title")===(h.title==null?null:h.title)&&O.getAttribute("crossorigin")===(h.crossOrigin==null?null:h.crossOrigin)){j.splice(J,1);break t}}O=A.createElement(v),Ie(O,v,h),A.head.appendChild(O);break;case"meta":if(j=Qd("meta","content",A).get(v+(h.content||""))){for(J=0;J<j.length;J++)if(O=j[J],O.getAttribute("content")===(h.content==null?null:""+h.content)&&O.getAttribute("name")===(h.name==null?null:h.name)&&O.getAttribute("property")===(h.property==null?null:h.property)&&O.getAttribute("http-equiv")===(h.httpEquiv==null?null:h.httpEquiv)&&O.getAttribute("charset")===(h.charSet==null?null:h.charSet)){j.splice(J,1);break t}}O=A.createElement(v),Ie(O,v,h),A.head.appendChild(O);break;default:throw Error(a(468,v))}O[ur]=l,Fr(O),v=O}l.stateNode=v}else h4(A,l.type,l.stateNode);else l.stateNode=Z1(A,v,l.memoizedProps);else O!==v?(O===null?h.stateNode!==null&&(h=h.stateNode,h.parentNode.removeChild(h)):O.count--,v===null?h4(A,l.type,l.stateNode):Z1(A,v,l.memoizedProps)):v===null&&l.stateNode!==null&&rf(l,l.memoizedProps,h.memoizedProps)}break;case 27:ki(c,l),qa(l),v&512&&(Pr||h===null||al(h,h.return)),h!==null&&v&4&&rf(l,l.memoizedProps,h.memoizedProps);break;case 5:if(ki(c,l),qa(l),v&512&&(Pr||h===null||al(h,h.return)),l.flags&32){A=l.stateNode;try{kc(A,"")}catch(Pe){ar(l,l.return,Pe)}}v&4&&l.stateNode!=null&&(A=l.memoizedProps,rf(l,A,h!==null?h.memoizedProps:A)),v&1024&&(A1=!0);break;case 6:if(ki(c,l),qa(l),v&4){if(l.stateNode===null)throw Error(a(162));v=l.memoizedProps,h=l.stateNode;try{h.nodeValue=v}catch(Pe){ar(l,l.return,Pe)}}break;case 3:if(eh=null,A=Qi,Qi=wa(c.containerInfo),ki(c,l),Qi=A,qa(l),v&4&&h!==null&&h.memoizedState.isDehydrated)try{e0(c.containerInfo)}catch(Pe){ar(l,l.return,Pe)}A1&&(A1=!1,af(l));break;case 4:v=Qi,Qi=wa(l.stateNode.containerInfo),ki(c,l),qa(l),Qi=v;break;case 12:ki(c,l),qa(l);break;case 13:ki(c,l),qa(l),l.child.flags&8192&&l.memoizedState!==null!=(h!==null&&h.memoizedState!==null)&&(Qb=bt()),v&4&&(v=l.updateQueue,v!==null&&(l.updateQueue=null,Pp(l,v)));break;case 22:A=l.memoizedState!==null;var de=h!==null&&h.memoizedState!==null,ke=il,Xe=Pr;if(il=ke||A,Pr=Xe||de,ki(c,l),Pr=Xe,il=ke,qa(l),v&8192)e:for(c=l.stateNode,c._visibility=A?c._visibility&-2:c._visibility|1,A&&(h===null||de||il||Pr||Ms(l)),h=null,c=l;;){if(c.tag===5||c.tag===26){if(h===null){de=h=c;try{if(O=de.stateNode,A)j=O.style,typeof j.setProperty=="function"?j.setProperty("display","none","important"):j.display="none";else{J=de.stateNode;var Ze=de.memoizedProps.style,_e=Ze!=null&&Ze.hasOwnProperty("display")?Ze.display:null;J.style.display=_e==null||typeof _e=="boolean"?"":(""+_e).trim()}}catch(Pe){ar(de,de.return,Pe)}}}else if(c.tag===6){if(h===null){de=c;try{de.stateNode.nodeValue=A?"":de.memoizedProps}catch(Pe){ar(de,de.return,Pe)}}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===l)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===l)break e;for(;c.sibling===null;){if(c.return===null||c.return===l)break e;h===c&&(h=null),c=c.return}h===c&&(h=null),c.sibling.return=c.return,c=c.sibling}v&4&&(v=l.updateQueue,v!==null&&(h=v.retryQueue,h!==null&&(v.retryQueue=null,Pp(l,h))));break;case 19:ki(c,l),qa(l),v&4&&(v=l.updateQueue,v!==null&&(l.updateQueue=null,Pp(l,v)));break;case 30:break;case 21:break;default:ki(c,l),qa(l)}}function qa(l){var c=l.flags;if(c&2){try{for(var h,v=l.return;v!==null;){if(f6(v)){h=v;break}v=v.return}if(h==null)throw Error(a(160));switch(h.tag){case 27:var A=h.stateNode,O=Ub(l);Pu(l,O,A);break;case 5:var j=h.stateNode;h.flags&32&&(kc(j,""),h.flags&=-33);var J=Ub(l);Pu(l,J,j);break;case 3:case 4:var de=h.stateNode.containerInfo,ke=Ub(l);Ao(l,ke,de);break;default:throw Error(a(161))}}catch(Xe){ar(l,l.return,Xe)}l.flags&=-3}c&4096&&(l.flags&=-4097)}function af(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var c=l;af(c),c.tag===5&&c.flags&1024&&c.stateNode.reset(),l=l.sibling}}function Rs(l,c){if(c.subtreeFlags&8772)for(c=c.child;c!==null;)C1(l,c.alternate,c),c=c.sibling}function Ms(l){for(l=l.child;l!==null;){var c=l;switch(c.tag){case 0:case 11:case 14:case 15:Bu(4,c,c.return),Ms(c);break;case 1:al(c,c.return);var h=c.stateNode;typeof h.componentWillUnmount=="function"&&w1(c,c.return,h),Ms(c);break;case 27:vt(c.stateNode);case 26:case 5:al(c,c.return),Ms(c);break;case 22:c.memoizedState===null&&Ms(c);break;case 30:Ms(c);break;default:Ms(c)}l=l.sibling}}function xr(l,c,h){for(h=h&&(c.subtreeFlags&8772)!==0,c=c.child;c!==null;){var v=c.alternate,A=l,O=c,j=O.flags;switch(O.tag){case 0:case 11:case 15:xr(A,O,h),zd(4,O);break;case 1:if(xr(A,O,h),v=O,A=v.stateNode,typeof A.componentDidMount=="function")try{A.componentDidMount()}catch(ke){ar(v,v.return,ke)}if(v=O,A=v.updateQueue,A!==null){var J=v.stateNode;try{var de=A.shared.hiddenCallbacks;if(de!==null)for(A.shared.hiddenCallbacks=null,A=0;A<de.length;A++)Ed(de[A],J)}catch(ke){ar(v,v.return,ke)}}h&&j&64&&c6(O),Ld(O,O.return);break;case 27:d6(O);case 26:case 5:xr(A,O,h),h&&v===null&&j&4&&Vb(O),Ld(O,O.return);break;case 12:xr(A,O,h);break;case 13:xr(A,O,h),h&&j&4&&An(A,O);break;case 22:O.memoizedState===null&&xr(A,O,h),Ld(O,O.return);break;case 30:break;default:xr(A,O,h)}c=c.sibling}}function Gb(l,c){var h=null;l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),l=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(l=c.memoizedState.cachePool.pool),l!==h&&(l!=null&&l.refCount++,h!=null&&Du(h))}function Oo(l,c){l=null,c.alternate!==null&&(l=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==l&&(c.refCount++,l!=null&&Du(l))}function ol(l,c,h,v){if(c.subtreeFlags&10256)for(c=c.child;c!==null;)ks(l,c,h,v),c=c.sibling}function ks(l,c,h,v){var A=c.flags;switch(c.tag){case 0:case 11:case 15:ol(l,c,h,v),A&2048&&zd(9,c);break;case 1:ol(l,c,h,v);break;case 3:ol(l,c,h,v),A&2048&&(l=null,c.alternate!==null&&(l=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==l&&(c.refCount++,l!=null&&Du(l)));break;case 12:if(A&2048){ol(l,c,h,v),l=c.stateNode;try{var O=c.memoizedProps,j=O.id,J=O.onPostCommit;typeof J=="function"&&J(j,c.alternate===null?"mount":"update",l.passiveEffectDuration,-0)}catch(de){ar(c,c.return,de)}}else ol(l,c,h,v);break;case 13:ol(l,c,h,v);break;case 23:break;case 22:O=c.stateNode,j=c.alternate,c.memoizedState!==null?O._visibility&2?ol(l,c,h,v):Vu(l,c):O._visibility&2?ol(l,c,h,v):(O._visibility|=2,of(l,c,h,v,(c.subtreeFlags&10256)!==0)),A&2048&&Gb(j,c);break;case 24:ol(l,c,h,v),A&2048&&Oo(c.alternate,c);break;default:ol(l,c,h,v)}}function of(l,c,h,v,A){for(A=A&&(c.subtreeFlags&10256)!==0,c=c.child;c!==null;){var O=l,j=c,J=h,de=v,ke=j.flags;switch(j.tag){case 0:case 11:case 15:of(O,j,J,de,A),zd(8,j);break;case 23:break;case 22:var Xe=j.stateNode;j.memoizedState!==null?Xe._visibility&2?of(O,j,J,de,A):Vu(O,j):(Xe._visibility|=2,of(O,j,J,de,A)),A&&ke&2048&&Gb(j.alternate,j);break;case 24:of(O,j,J,de,A),A&&ke&2048&&Oo(j.alternate,j);break;default:of(O,j,J,de,A)}c=c.sibling}}function Vu(l,c){if(c.subtreeFlags&10256)for(c=c.child;c!==null;){var h=l,v=c,A=v.flags;switch(v.tag){case 22:Vu(h,v),A&2048&&Gb(v.alternate,v);break;case 24:Vu(h,v),A&2048&&Oo(v.alternate,v);break;default:Vu(h,v)}c=c.sibling}}var In=8192;function Uu(l){if(l.subtreeFlags&In)for(l=l.child;l!==null;)Ta(l),l=l.sibling}function Ta(l){switch(l.tag){case 26:Uu(l),l.flags&In&&l.memoizedState!==null&&N6(Qi,l.memoizedState,l.memoizedProps);break;case 5:Uu(l);break;case 3:case 4:var c=Qi;Qi=wa(l.stateNode.containerInfo),Uu(l),Qi=c;break;case 22:l.memoizedState===null&&(c=l.alternate,c!==null&&c.memoizedState!==null?(c=In,In=16777216,Uu(l),In=c):Uu(l));break;default:Uu(l)}}function h6(l){var c=l.alternate;if(c!==null&&(l=c.child,l!==null)){c.child=null;do c=l.sibling,l.sibling=null,l=c;while(l!==null)}}function Bd(l){var c=l.deletions;if((l.flags&16)!==0){if(c!==null)for(var h=0;h<c.length;h++){var v=c[h];aa=v,Ki(v,l)}h6(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)O1(l),l=l.sibling}function O1(l){switch(l.tag){case 0:case 11:case 15:Bd(l),l.flags&2048&&Bu(9,l,l.return);break;case 3:Bd(l);break;case 12:Bd(l);break;case 22:var c=l.stateNode;l.memoizedState!==null&&c._visibility&2&&(l.return===null||l.return.tag!==13)?(c._visibility&=-3,Vp(l)):Bd(l);break;default:Bd(l)}}function Vp(l){var c=l.deletions;if((l.flags&16)!==0){if(c!==null)for(var h=0;h<c.length;h++){var v=c[h];aa=v,Ki(v,l)}h6(l)}for(l=l.child;l!==null;){switch(c=l,c.tag){case 0:case 11:case 15:Bu(8,c,c.return),Vp(c);break;case 22:h=c.stateNode,h._visibility&2&&(h._visibility&=-3,Vp(c));break;default:Vp(c)}l=l.sibling}}function Ki(l,c){for(;aa!==null;){var h=aa;switch(h.tag){case 0:case 11:case 15:Bu(8,h,c);break;case 23:case 22:if(h.memoizedState!==null&&h.memoizedState.cachePool!==null){var v=h.memoizedState.cachePool.pool;v!=null&&v.refCount++}break;case 24:Du(h.memoizedState.cache)}if(v=h.child,v!==null)v.return=h,aa=v;else e:for(h=l;aa!==null;){v=aa;var A=v.sibling,O=v.return;if(jb(v),v===h){aa=null;break e}if(A!==null){A.return=O,aa=A;break e}aa=O}}}var m6={getCacheForType:function(l){var c=_a(na),h=c.data.get(l);return h===void 0&&(h=l(),c.data.set(l,h)),h}},Fb=typeof WeakMap=="function"?WeakMap:Map,Fn=0,rr=null,Cn=null,Ln=0,Bn=0,Di=null,Ds=!1,$u=!1,Yb=!1,_s=0,Vr=0,ju=0,Hu=0,Xb=0,da=0,Pd=0,Up=null,ri=null,Wb=!1,Qb=0,R1=1/0,M1=null,Bl=null,Na=0,qu=null,Gu=null,Vd=0,_i=0,k1=null,Kb=null,Ud=0,D1=null;function Zi(){if((Fn&2)!==0&&Ln!==0)return Ln&-Ln;if(K.T!==null){var l=_u;return l!==0?l:$1()}return Lr()}function g6(){da===0&&(da=(Ln&536870912)===0||mn?we():536870912);var l=ra.current;return l!==null&&(l.flags|=32),da}function Ni(l,c,h){(l===rr&&(Bn===2||Bn===9)||l.cancelPendingCommit!==null)&&(ll(l,0),Ns(l,Ln,da,!1)),nt(l,h),((Fn&2)===0||l!==rr)&&(l===rr&&((Fn&2)===0&&(Hu|=h),Vr===4&&Ns(l,Ln,da,!1)),sl(l))}function y6(l,c,h){if((Fn&6)!==0)throw Error(a(327));var v=!h&&(c&124)===0&&(c&l.expiredLanes)===0||er(l,c),A=v?N1(l,c):lf(l,c,!0),O=v;do{if(A===0){$u&&!v&&Ns(l,c,0,!1);break}else{if(h=l.current.alternate,O&&!_1(h)){A=lf(l,c,!1),O=!1;continue}if(A===2){if(O=c,l.errorRecoveryDisabledLanes&O)var j=0;else j=l.pendingLanes&-536870913,j=j!==0?j:j&536870912?536870912:0;if(j!==0){c=j;e:{var J=l;A=Up;var de=J.current.memoizedState.isDehydrated;if(de&&(ll(J,j).flags|=256),j=lf(J,j,!1),j!==2){if(Yb&&!de){J.errorRecoveryDisabledLanes|=O,Hu|=O,A=4;break e}O=ri,ri=A,O!==null&&(ri===null?ri=O:ri.push.apply(ri,O))}A=j}if(O=!1,A!==2)continue}}if(A===1){ll(l,0),Ns(l,c,0,!0);break}e:{switch(v=l,O=A,O){case 0:case 1:throw Error(a(345));case 4:if((c&4194048)!==c)break;case 6:Ns(v,c,da,!Ds);break e;case 2:ri=null;break;case 3:case 5:break;default:throw Error(a(329))}if((c&62914560)===c&&(A=Qb+300-bt(),10<A)){if(Ns(v,c,da,!Ds),On(v,0,!0)!==0)break e;v.timeoutHandle=Ul($d.bind(null,v,h,ri,M1,Wb,c,da,Hu,Pd,Ds,O,2,-0,0),A);break e}$d(v,h,ri,M1,Wb,c,da,Hu,Pd,Ds,O,0,-0,0)}}break}while(!0);sl(l)}function $d(l,c,h,v,A,O,j,J,de,ke,Xe,Ze,_e,Pe){if(l.timeoutHandle=-1,Ze=c.subtreeFlags,(Ze&8192||(Ze&16785408)===16785408)&&(Kd={stylesheets:null,count:0,unsuspend:_6},Ta(c),Ze=z6(),Ze!==null)){l.cancelPendingCommit=Ze(x6.bind(null,l,c,O,h,v,A,j,J,de,Xe,1,_e,Pe)),Ns(l,O,j,!ke);return}x6(l,c,O,h,v,A,j,J,de)}function _1(l){for(var c=l;;){var h=c.tag;if((h===0||h===11||h===15)&&c.flags&16384&&(h=c.updateQueue,h!==null&&(h=h.stores,h!==null)))for(var v=0;v<h.length;v++){var A=h[v],O=A.getSnapshot;A=A.value;try{if(!ei(O(),A))return!1}catch{return!1}}if(h=c.child,c.subtreeFlags&16384&&h!==null)h.return=c,c=h;else{if(c===l)break;for(;c.sibling===null;){if(c.return===null||c.return===l)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function Ns(l,c,h,v){c&=~Xb,c&=~Hu,l.suspendedLanes|=c,l.pingedLanes&=~c,v&&(l.warmLanes|=c),v=l.expirationTimes;for(var A=c;0<A;){var O=31-lt(A),j=1<<O;v[O]=-1,A&=~j}h!==0&&Pt(l,h,c)}function $p(){return(Fn&6)===0?(zs(0),!1):!0}function jd(){if(Cn!==null){if(Bn===0)var l=Cn.return;else l=Cn,Ko=bs=null,wd(l),Ci=null,Rd=0,l=Cn;for(;l!==null;)u6(l.alternate,l),l=l.return;Cn=null}}function ll(l,c){var h=l.timeoutHandle;h!==-1&&(l.timeoutHandle=-1,l4(h)),h=l.cancelPendingCommit,h!==null&&(l.cancelPendingCommit=null,h()),jd(),rr=l,Cn=h=Yo(l.current,null),Ln=c,Bn=0,Di=null,Ds=!1,$u=er(l,c),Yb=!1,Pd=da=Xb=Hu=ju=Vr=0,ri=Up=null,Wb=!1,(c&8)!==0&&(c|=c&32);var v=l.entangledLanes;if(v!==0)for(l=l.entanglements,v&=c;0<v;){var A=31-lt(v),O=1<<A;c|=l[A],v&=~O}return _s=c,Go(),h}function Hd(l,c){an=null,K.H=_p,c===Fc||c===vd?(c=Jm(),Bn=3):c===gp?(c=Jm(),Bn=4):Bn=c===Mb?8:c!==null&&typeof c=="object"&&typeof c.then=="function"?6:1,Di=c,Cn===null&&(Vr=1,ef(l,Fi(c,l.current)))}function Zb(){var l=K.H;return K.H=_p,l===null?_p:l}function v6(){var l=K.A;return K.A=m6,l}function Fu(){Vr=4,Ds||(Ln&4194048)!==Ln&&ra.current!==null||($u=!0),(ju&134217727)===0&&(Hu&134217727)===0||rr===null||Ns(rr,Ln,da,!1)}function lf(l,c,h){var v=Fn;Fn|=2;var A=Zb(),O=v6();(rr!==l||Ln!==c)&&(M1=null,ll(l,c)),c=!1;var j=Vr;e:do try{if(Bn!==0&&Cn!==null){var J=Cn,de=Di;switch(Bn){case 8:jd(),j=6;break e;case 3:case 2:case 9:case 6:ra.current===null&&(c=!0);var ke=Bn;if(Bn=0,Di=null,sf(l,J,de,ke),h&&$u){j=0;break e}break;default:ke=Bn,Bn=0,Di=null,sf(l,J,de,ke)}}b6(),j=Vr;break}catch(Xe){Hd(l,Xe)}while(!0);return c&&l.shellSuspendCounter++,Ko=bs=null,Fn=v,K.H=A,K.A=O,Cn===null&&(rr=null,Ln=0,Go()),j}function b6(){for(;Cn!==null;)z1(Cn)}function N1(l,c){var h=Fn;Fn|=2;var v=Zb(),A=v6();rr!==l||Ln!==c?(M1=null,R1=bt()+500,ll(l,c)):$u=er(l,c);e:do try{if(Bn!==0&&Cn!==null){c=Cn;var O=Di;t:switch(Bn){case 1:Bn=0,Di=null,sf(l,c,O,1);break;case 2:case 9:if(Kv(O)){Bn=0,Di=null,e4(c);break}c=function(){Bn!==2&&Bn!==9||rr!==l||(Bn=7),sl(l)},O.then(c,c);break e;case 3:Bn=7;break e;case 4:Bn=5;break e;case 7:Kv(O)?(Bn=0,Di=null,e4(c)):(Bn=0,Di=null,sf(l,c,O,7));break;case 5:var j=null;switch(Cn.tag){case 26:j=Cn.memoizedState;case 5:case 27:var J=Cn;if(!j||m4(j)){Bn=0,Di=null;var de=J.sibling;if(de!==null)Cn=de;else{var ke=J.return;ke!==null?(Cn=ke,L1(ke)):Cn=null}break t}}Bn=0,Di=null,sf(l,c,O,5);break;case 6:Bn=0,Di=null,sf(l,c,O,6);break;case 8:jd(),Vr=6;break e;default:throw Error(a(462))}}Jb();break}catch(Xe){Hd(l,Xe)}while(!0);return Ko=bs=null,K.H=v,K.A=A,Fn=h,Cn!==null?0:(rr=null,Ln=0,Go(),Vr)}function Jb(){for(;Cn!==null&&!Nt();)z1(Cn)}function z1(l){var c=Ib(l.alternate,l,_s);l.memoizedProps=l.pendingProps,c===null?L1(l):Cn=c}function e4(l){var c=l,h=c.alternate;switch(c.tag){case 15:case 0:c=Db(h,c,c.pendingProps,c.type,void 0,Ln);break;case 11:c=Db(h,c,c.pendingProps,c.type.render,c.ref,Ln);break;case 5:wd(c);default:u6(h,c),c=Cn=Fm(c,_s),c=Ib(h,c,_s)}l.memoizedProps=l.pendingProps,c===null?L1(l):Cn=c}function sf(l,c,h,v){Ko=bs=null,wd(c),Ci=null,Rd=0;var A=c.return;try{if(Wi(l,A,c,h,Ln)){Vr=1,ef(l,Fi(h,l.current)),Cn=null;return}}catch(O){if(A!==null)throw Cn=A,O;Vr=1,ef(l,Fi(h,l.current)),Cn=null;return}c.flags&32768?(mn||v===1?l=!0:$u||(Ln&536870912)!==0?l=!1:(Ds=l=!0,(v===2||v===9||v===3||v===6)&&(v=ra.current,v!==null&&v.tag===13&&(v.flags|=16384))),t4(c,l)):L1(c)}function L1(l){var c=l;do{if((c.flags&32768)!==0){t4(c,Ds);return}l=c.return;var h=nr(c.alternate,c,_s);if(h!==null){Cn=h;return}if(c=c.sibling,c!==null){Cn=c;return}Cn=c=l}while(c!==null);Vr===0&&(Vr=5)}function t4(l,c){do{var h=Pb(l.alternate,l);if(h!==null){h.flags&=32767,Cn=h;return}if(h=l.return,h!==null&&(h.flags|=32768,h.subtreeFlags=0,h.deletions=null),!c&&(l=l.sibling,l!==null)){Cn=l;return}Cn=l=h}while(l!==null);Vr=6,Cn=null}function x6(l,c,h,v,A,O,j,J,de){l.cancelPendingCommit=null;do B1();while(Na!==0);if((Fn&6)!==0)throw Error(a(327));if(c!==null){if(c===l.current)throw Error(a(177));if(O=c.lanes|c.childLanes,O|=lp,At(l,h,O,j,J,de),l===rr&&(Cn=rr=null,Ln=0),Gu=c,qu=l,Vd=h,_i=O,k1=A,Kb=v,(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?(l.callbackNode=null,l.callbackPriority=0,DT(yt,function(){return T6(),null})):(l.callbackNode=null,l.callbackPriority=0),v=(c.flags&13878)!==0,(c.subtreeFlags&13878)!==0||v){v=K.T,K.T=null,A=re.p,re.p=2,j=Fn,Fn|=4;try{p6(l,c,h)}finally{Fn=j,re.p=A,K.T=v}}Na=1,S6(),E6(),jp()}}function S6(){if(Na===1){Na=0;var l=qu,c=Gu,h=(c.flags&13878)!==0;if((c.subtreeFlags&13878)!==0||h){h=K.T,K.T=null;var v=re.p;re.p=2;var A=Fn;Fn|=4;try{Id(c,l);var O=Qp,j=ip(l.containerInfo),J=O.focusedElem,de=O.selectionRange;if(j!==J&&J&&J.ownerDocument&&yr(J.ownerDocument.documentElement,J)){if(de!==null&&$m(J)){var ke=de.start,Xe=de.end;if(Xe===void 0&&(Xe=ke),"selectionStart"in J)J.selectionStart=ke,J.selectionEnd=Math.min(Xe,J.value.length);else{var Ze=J.ownerDocument||document,_e=Ze&&Ze.defaultView||window;if(_e.getSelection){var Pe=_e.getSelection(),Vt=J.textContent.length,_t=Math.min(de.start,Vt),qn=de.end===void 0?_t:Math.min(de.end,Vt);!Pe.extend&&_t>qn&&(j=qn,qn=_t,_t=j);var Re=wu(J,_t),Ee=wu(J,qn);if(Re&&Ee&&(Pe.rangeCount!==1||Pe.anchorNode!==Re.node||Pe.anchorOffset!==Re.offset||Pe.focusNode!==Ee.node||Pe.focusOffset!==Ee.offset)){var De=Ze.createRange();De.setStart(Re.node,Re.offset),Pe.removeAllRanges(),_t>qn?(Pe.addRange(De),Pe.extend(Ee.node,Ee.offset)):(De.setEnd(Ee.node,Ee.offset),Pe.addRange(De))}}}}for(Ze=[],Pe=J;Pe=Pe.parentNode;)Pe.nodeType===1&&Ze.push({element:Pe,left:Pe.scrollLeft,top:Pe.scrollTop});for(typeof J.focus=="function"&&J.focus(),J=0;J<Ze.length;J++){var We=Ze[J];We.element.scrollLeft=We.left,We.element.scrollTop=We.top}}rh=!!o4,Qp=o4=null}finally{Fn=A,re.p=v,K.T=h}}l.current=c,Na=2}}function E6(){if(Na===2){Na=0;var l=qu,c=Gu,h=(c.flags&8772)!==0;if((c.subtreeFlags&8772)!==0||h){h=K.T,K.T=null;var v=re.p;re.p=2;var A=Fn;Fn|=4;try{C1(l,c.alternate,c)}finally{Fn=A,re.p=v,K.T=h}}Na=3}}function jp(){if(Na===4||Na===3){Na=0,Jt();var l=qu,c=Gu,h=Vd,v=Kb;(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?Na=5:(Na=0,Gu=qu=null,I1(l,l.pendingLanes));var A=l.pendingLanes;if(A===0&&(Bl=null),Rt(h),c=c.stateNode,ze&&typeof ze.onCommitFiberRoot=="function")try{ze.onCommitFiberRoot(ve,c,void 0,(c.current.flags&128)===128)}catch{}if(v!==null){c=K.T,A=re.p,re.p=2,K.T=null;try{for(var O=l.onRecoverableError,j=0;j<v.length;j++){var J=v[j];O(J.value,{componentStack:J.stack})}}finally{K.T=c,re.p=A}}(Vd&3)!==0&&B1(),sl(l),A=l.pendingLanes,(h&4194090)!==0&&(A&42)!==0?l===D1?Ud++:(Ud=0,D1=l):Ud=0,zs(0)}}function I1(l,c){(l.pooledCacheLanes&=c)===0&&(c=l.pooledCache,c!=null&&(l.pooledCache=null,Du(c)))}function B1(l){return S6(),E6(),jp(),T6()}function T6(){if(Na!==5)return!1;var l=qu,c=_i;_i=0;var h=Rt(Vd),v=K.T,A=re.p;try{re.p=32>h?32:h,K.T=null,h=k1,k1=null;var O=qu,j=Vd;if(Na=0,Gu=qu=null,Vd=0,(Fn&6)!==0)throw Error(a(331));var J=Fn;if(Fn|=4,O1(O.current),ks(O,O.current,j,h),Fn=J,zs(0,!1),ze&&typeof ze.onPostCommitFiberRoot=="function")try{ze.onPostCommitFiberRoot(ve,O)}catch{}return!0}finally{re.p=A,K.T=v,I1(l,c)}}function n4(l,c,h){c=Fi(h,c),c=y1(l.stateNode,c,2),l=Ti(l,c,2),l!==null&&(nt(l,2),sl(l))}function ar(l,c,h){if(l.tag===3)n4(l,l,h);else for(;c!==null;){if(c.tag===3){n4(c,l,h);break}else if(c.tag===1){var v=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(Bl===null||!Bl.has(v))){l=Fi(h,l),h=i6(2),v=Ti(c,h,2),v!==null&&(Rb(h,v,c,l),nt(v,2),sl(v));break}}c=c.return}}function Hp(l,c,h){var v=l.pingCache;if(v===null){v=l.pingCache=new Fb;var A=new Set;v.set(c,A)}else A=v.get(c),A===void 0&&(A=new Set,v.set(c,A));A.has(h)||(Yb=!0,A.add(h),l=w6.bind(null,l,c,h),c.then(l,l))}function w6(l,c,h){var v=l.pingCache;v!==null&&v.delete(c),l.pingedLanes|=l.suspendedLanes&h,l.warmLanes&=~h,rr===l&&(Ln&h)===h&&(Vr===4||Vr===3&&(Ln&62914560)===Ln&&300>bt()-Qb?(Fn&2)===0&&ll(l,0):Xb|=h,Pd===Ln&&(Pd=0)),sl(l)}function P1(l,c){c===0&&(c=Ve()),l=gs(l,c),l!==null&&(nt(l,c),sl(l))}function A6(l){var c=l.memoizedState,h=0;c!==null&&(h=c.retryLane),P1(l,h)}function kT(l,c){var h=0;switch(l.tag){case 13:var v=l.stateNode,A=l.memoizedState;A!==null&&(h=A.retryLane);break;case 19:v=l.stateNode;break;case 22:v=l.stateNode._retryCache;break;default:throw Error(a(314))}v!==null&&v.delete(c),P1(l,h)}function DT(l,c){return Ae(l,c)}var V1=null,qd=null,qp=!1,Gd=!1,Gp=!1,Yu=0;function sl(l){l!==qd&&l.next===null&&(qd===null?V1=qd=l:qd=qd.next=l),Gd=!0,qp||(qp=!0,U1())}function zs(l,c){if(!Gp&&Gd){Gp=!0;do for(var h=!1,v=V1;v!==null;){if(l!==0){var A=v.pendingLanes;if(A===0)var O=0;else{var j=v.suspendedLanes,J=v.pingedLanes;O=(1<<31-lt(42|l)+1)-1,O&=A&~(j&~J),O=O&201326741?O&201326741|1:O?O|2:0}O!==0&&(h=!0,C6(v,O))}else O=Ln,O=On(v,v===rr?O:0,v.cancelPendingCommit!==null||v.timeoutHandle!==-1),(O&3)===0||er(v,O)||(h=!0,C6(v,O));v=v.next}while(h);Gp=!1}}function _T(){r4()}function r4(){Gd=qp=!1;var l=0;Yu!==0&&(X1()&&(l=Yu),Yu=0);for(var c=bt(),h=null,v=V1;v!==null;){var A=v.next,O=Fp(v,c);O===0?(v.next=null,h===null?V1=A:h.next=A,A===null&&(qd=h)):(h=v,(l!==0||(O&3)!==0)&&(Gd=!0)),v=A}zs(l)}function Fp(l,c){for(var h=l.suspendedLanes,v=l.pingedLanes,A=l.expirationTimes,O=l.pendingLanes&-62914561;0<O;){var j=31-lt(O),J=1<<j,de=A[j];de===-1?((J&h)===0||(J&v)!==0)&&(A[j]=W(J,c)):de<=c&&(l.expiredLanes|=J),O&=~J}if(c=rr,h=Ln,h=On(l,l===c?h:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),v=l.callbackNode,h===0||l===c&&(Bn===2||Bn===9)||l.cancelPendingCommit!==null)return v!==null&&v!==null&&pt(v),l.callbackNode=null,l.callbackPriority=0;if((h&3)===0||er(l,h)){if(c=h&-h,c===l.callbackPriority)return c;switch(v!==null&&pt(v),Rt(h)){case 2:case 8:h=Sn;break;case 32:h=yt;break;case 268435456:h=$n;break;default:h=yt}return v=a4.bind(null,l),h=Ae(h,v),l.callbackPriority=c,l.callbackNode=h,c}return v!==null&&v!==null&&pt(v),l.callbackPriority=2,l.callbackNode=null,2}function a4(l,c){if(Na!==0&&Na!==5)return l.callbackNode=null,l.callbackPriority=0,null;var h=l.callbackNode;if(B1()&&l.callbackNode!==h)return null;var v=Ln;return v=On(l,l===rr?v:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),v===0?null:(y6(l,v,c),Fp(l,bt()),l.callbackNode!=null&&l.callbackNode===h?a4.bind(null,l):null)}function C6(l,c){if(B1())return null;y6(l,c,!0)}function U1(){LT(function(){(Fn&6)!==0?Ae(ln,_T):r4()})}function $1(){return Yu===0&&(Yu=we()),Yu}function Fd(l){return l==null||typeof l=="symbol"||typeof l=="boolean"?null:typeof l=="function"?l:Q0(""+l)}function j1(l,c){var h=c.ownerDocument.createElement("input");return h.name=c.name,h.value=c.value,l.id&&h.setAttribute("form",l.id),c.parentNode.insertBefore(h,c),l=new FormData(l),h.parentNode.removeChild(h),l}function H1(l,c,h,v,A){if(c==="submit"&&h&&h.stateNode===A){var O=Fd((A[Ua]||null).action),j=v.submitter;j&&(c=(c=j[Ua]||null)?Fd(c.formAction):j.getAttribute("formAction"),c!==null&&(O=c,j=null));var J=new J0("action","action",null,v,A);l.push({event:J,listeners:[{instance:null,listener:function(){if(v.defaultPrevented){if(Yu!==0){var de=j?j1(A,j):new FormData(A);yb(h,{pending:!0,data:de,method:A.method,action:O},null,de)}}else typeof O=="function"&&(J.preventDefault(),de=j?j1(A,j):new FormData(A),yb(h,{pending:!0,data:de,method:A.method,action:O},O,de))},currentTarget:A}]})}}for(var q1=0;q1<qm.length;q1++){var Ur=qm[q1],i4=Ur.toLowerCase(),NT=Ur[0].toUpperCase()+Ur.slice(1);bi(i4,"on"+NT)}bi(op,"onAnimationEnd"),bi(Xx,"onAnimationIteration"),bi($v,"onAnimationStart"),bi("dblclick","onDoubleClick"),bi("focusin","onFocus"),bi("focusout","onBlur"),bi(CT,"onTransitionRun"),bi(jv,"onTransitionStart"),bi(Hm,"onTransitionCancel"),bi(Hv,"onTransitionEnd"),Rc("onMouseEnter",["mouseout","mouseover"]),Rc("onMouseLeave",["mouseout","mouseover"]),Rc("onPointerEnter",["pointerout","pointerover"]),Rc("onPointerLeave",["pointerout","pointerover"]),xa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xa("onBeforeInput",["compositionend","keypress","textInput","paste"]),xa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var tn="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(" "),zT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(tn));function Ls(l,c){c=(c&4)!==0;for(var h=0;h<l.length;h++){var v=l[h],A=v.event;v=v.listeners;e:{var O=void 0;if(c)for(var j=v.length-1;0<=j;j--){var J=v[j],de=J.instance,ke=J.currentTarget;if(J=J.listener,de!==O&&A.isPropagationStopped())break e;O=J,A.currentTarget=ke;try{O(A)}catch(Xe){Lp(Xe)}A.currentTarget=null,O=de}else for(j=0;j<v.length;j++){if(J=v[j],de=J.instance,ke=J.currentTarget,J=J.listener,de!==O&&A.isPropagationStopped())break e;O=J,A.currentTarget=ke;try{O(A)}catch(Xe){Lp(Xe)}A.currentTarget=null,O=de}}}}function cn(l,c){var h=c[mv];h===void 0&&(h=c[mv]=new Set);var v=l+"__bubble";h.has(v)||(O6(c,l,2,!1),h.add(v))}function Xu(l,c,h){var v=0;c&&(v|=4),O6(h,l,v,c)}var uf="_reactListening"+Math.random().toString(36).slice(2);function Yp(l){if(!l[uf]){l[uf]=!0,gv.forEach(function(h){h!=="selectionchange"&&(zT.has(h)||Xu(h,!1,l),Xu(h,!0,l))});var c=l.nodeType===9?l:l.ownerDocument;c===null||c[uf]||(c[uf]=!0,Xu("selectionchange",!1,c))}}function O6(l,c,h,v){switch(P6(c)){case 2:var A=I6;break;case 8:A=B6;break;default:A=ng}h=A.bind(null,c,h,l),A=void 0,!Om||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(A=!0),v?A!==void 0?l.addEventListener(c,h,{capture:!0,passive:A}):l.addEventListener(c,h,!0):A!==void 0?l.addEventListener(c,h,{passive:A}):l.addEventListener(c,h,!1)}function Xp(l,c,h,v,A){var O=v;if((c&1)===0&&(c&2)===0&&v!==null)e:for(;;){if(v===null)return;var j=v.tag;if(j===3||j===4){var J=v.stateNode.containerInfo;if(J===A)break;if(j===4)for(j=v.return;j!==null;){var de=j.tag;if((de===3||de===4)&&j.stateNode.containerInfo===A)return;j=j.return}for(;J!==null;){if(j=vu(J),j===null)return;if(de=j.tag,de===5||de===6||de===26||de===27){v=O=j;continue e}J=J.parentNode}}v=v.return}Bx(function(){var ke=O,Xe=Dc(h),Ze=[];e:{var _e=qv.get(l);if(_e!==void 0){var Pe=J0,Vt=l;switch(l){case"keypress":if(Z0(h)===0)break e;case"keydown":case"keyup":Pe=Lc;break;case"focusin":Vt="focus",Pe=Rv;break;case"focusout":Vt="blur",Pe=Rv;break;case"beforeblur":case"afterblur":Pe=Rv;break;case"click":if(h.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Pe=tp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Pe=Ux;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Pe=Nm;break;case op:case Xx:case $v:Pe=ET;break;case Hv:Pe=vi;break;case"scroll":case"scrollend":Pe=xT;break;case"wheel":Pe=zm;break;case"copy":case"cut":case"paste":Pe=wT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Pe=yi;break;case"toggle":case"beforetoggle":Pe=_v}var _t=(c&4)!==0,qn=!_t&&(l==="scroll"||l==="scrollend"),Re=_t?_e!==null?_e+"Capture":null:_e;_t=[];for(var Ee=ke,De;Ee!==null;){var We=Ee;if(De=We.stateNode,We=We.tag,We!==5&&We!==26&&We!==27||De===null||Re===null||(We=ds(Ee,Re),We!=null&&_t.push(zi(Ee,We,De))),qn)break;Ee=Ee.return}0<_t.length&&(_e=new Pe(_e,Vt,null,h,Xe),Ze.push({event:_e,listeners:_t}))}}if((c&7)===0){e:{if(_e=l==="mouseover"||l==="pointerover",Pe=l==="mouseout"||l==="pointerout",_e&&h!==Cm&&(Vt=h.relatedTarget||h.fromElement)&&(vu(Vt)||Vt[Oc]))break e;if((Pe||_e)&&(_e=Xe.window===Xe?Xe:(_e=Xe.ownerDocument)?_e.defaultView||_e.parentWindow:window,Pe?(Vt=h.relatedTarget||h.toElement,Pe=ke,Vt=Vt?vu(Vt):null,Vt!==null&&(qn=s(Vt),_t=Vt.tag,Vt!==qn||_t!==5&&_t!==27&&_t!==6)&&(Vt=null)):(Pe=null,Vt=ke),Pe!==Vt)){if(_t=tp,We="onMouseLeave",Re="onMouseEnter",Ee="mouse",(l==="pointerout"||l==="pointerover")&&(_t=yi,We="onPointerLeave",Re="onPointerEnter",Ee="pointer"),qn=Pe==null?_e:Ff(Pe),De=Vt==null?_e:Ff(Vt),_e=new _t(We,Ee+"leave",Pe,h,Xe),_e.target=qn,_e.relatedTarget=De,We=null,vu(Xe)===ke&&(_t=new _t(Re,Ee+"enter",Vt,h,Xe),_t.target=De,_t.relatedTarget=qn,We=_t),qn=We,Pe&&Vt)t:{for(_t=Pe,Re=Vt,Ee=0,De=_t;De;De=Qu(De))Ee++;for(De=0,We=Re;We;We=Qu(We))De++;for(;0<Ee-De;)_t=Qu(_t),Ee--;for(;0<De-Ee;)Re=Qu(Re),De--;for(;Ee--;){if(_t===Re||Re!==null&&_t===Re.alternate)break t;_t=Qu(_t),Re=Qu(Re)}_t=null}else _t=null;Pe!==null&&G1(Ze,_e,Pe,_t,!1),Vt!==null&&qn!==null&&G1(Ze,qn,Vt,_t,!0)}}e:{if(_e=ke?Ff(ke):window,Pe=_e.nodeName&&_e.nodeName.toLowerCase(),Pe==="select"||Pe==="input"&&_e.type==="file")var Tt=Eu;else if(Iv(_e))if(Bv)Tt=ps;else{Tt=Um;var gn=Yx}else Pe=_e.nodeName,!Pe||Pe.toLowerCase()!=="input"||_e.type!=="checkbox"&&_e.type!=="radio"?ke&&Zf(ke.elementType)&&(Tt=Eu):Tt=Tu;if(Tt&&(Tt=Tt(l,ke))){Pm(Ze,Tt,h,Xe);break e}gn&&gn(l,_e,ke),l==="focusout"&&ke&&_e.type==="number"&&ke.memoizedProps.value!=null&&X0(_e,"number",_e.value)}switch(gn=ke?Ff(ke):window,l){case"focusin":(Iv(gn)||gn.contentEditable==="true")&&(bo=gn,jc=ke,Gi=null);break;case"focusout":Gi=jc=bo=null;break;case"mousedown":id=!0;break;case"contextmenu":case"mouseup":case"dragend":id=!1,od(Ze,h,Xe);break;case"selectionchange":if(Uv)break;case"keydown":case"keyup":od(Ze,h,Xe)}var kt;if(Lm)e:{switch(l){case"compositionstart":var jt="onCompositionStart";break e;case"compositionend":jt="onCompositionEnd";break e;case"compositionupdate":jt="onCompositionUpdate";break e}jt=void 0}else vo?Bm(l,h)&&(jt="onCompositionEnd"):l==="keydown"&&h.keyCode===229&&(jt="onCompositionStart");jt&&(Im&&h.locale!=="ko"&&(vo||jt!=="onCompositionStart"?jt==="onCompositionEnd"&&vo&&(kt=K0()):(yo=Xe,Rm="value"in yo?yo.value:yo.textContent,vo=!0)),gn=Wu(ke,jt),0<gn.length&&(jt=new Mv(jt,l,null,h,Xe),Ze.push({event:jt,listeners:gn}),kt?jt.data=kt:(kt=rp(h),kt!==null&&(jt.data=kt)))),(kt=AT?zv(l,h):Lv(l,h))&&(jt=Wu(ke,"onBeforeInput"),0<jt.length&&(gn=new Mv("onBeforeInput","beforeinput",null,h,Xe),Ze.push({event:gn,listeners:jt}),gn.data=kt)),H1(Ze,l,ke,h,Xe)}Ls(Ze,c)})}function zi(l,c,h){return{instance:l,listener:c,currentTarget:h}}function Wu(l,c){for(var h=c+"Capture",v=[];l!==null;){var A=l,O=A.stateNode;if(A=A.tag,A!==5&&A!==26&&A!==27||O===null||(A=ds(l,h),A!=null&&v.unshift(zi(l,A,O)),A=ds(l,c),A!=null&&v.push(zi(l,A,O))),l.tag===3)return v;l=l.return}return[]}function Qu(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5&&l.tag!==27);return l||null}function G1(l,c,h,v,A){for(var O=c._reactName,j=[];h!==null&&h!==v;){var J=h,de=J.alternate,ke=J.stateNode;if(J=J.tag,de!==null&&de===v)break;J!==5&&J!==26&&J!==27||ke===null||(de=ke,A?(ke=ds(h,O),ke!=null&&j.unshift(zi(h,ke,de))):A||(ke=ds(h,O),ke!=null&&j.push(zi(h,ke,de)))),h=h.return}j.length!==0&&l.push({event:c,listeners:j})}var F1=/\r\n?/g,Ji=/\u0000|\uFFFD/g;function Y1(l){return(typeof l=="string"?l:""+l).replace(F1,`
638
+ `+h.stack}}function qi(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function Wf(l){var c=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function wm(l){var c=Wf(l)?"checked":"value",h=Object.getOwnPropertyDescriptor(l.constructor.prototype,c),v=""+l[c];if(!l.hasOwnProperty(c)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var A=h.get,O=h.set;return Object.defineProperty(l,c,{configurable:!0,get:function(){return A.call(this)},set:function(j){v=""+j,O.call(this,j)}}),Object.defineProperty(l,c,{enumerable:h.enumerable}),{getValue:function(){return v},setValue:function(j){v=""+j},stopTracking:function(){l._valueTracker=null,delete l[c]}}}}function Qf(l){l._valueTracker||(l._valueTracker=wm(l))}function Kf(l){if(!l)return!1;var c=l._valueTracker;if(!c)return!0;var h=c.getValue(),v="";return l&&(v=Wf(l)?l.checked?"true":"false":l.value),l=v,l!==h?(c.setValue(l),!0):!1}function fs(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var xv=/[\n"\\]/g;function go(l){return l.replace(xv,function(c){return"\\"+c.charCodeAt(0).toString(16)+" "})}function Sv(l,c,h,v,A,O,j,J){l.name="",j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?l.type=j:l.removeAttribute("type"),c!=null?j==="number"?(c===0&&l.value===""||l.value!=c)&&(l.value=""+qi(c)):l.value!==""+qi(c)&&(l.value=""+qi(c)):j!=="submit"&&j!=="reset"||l.removeAttribute("value"),c!=null?X0(l,j,qi(c)):h!=null?X0(l,j,qi(h)):v!=null&&l.removeAttribute("value"),A==null&&O!=null&&(l.defaultChecked=!!O),A!=null&&(l.checked=A&&typeof A!="function"&&typeof A!="symbol"),J!=null&&typeof J!="function"&&typeof J!="symbol"&&typeof J!="boolean"?l.name=""+qi(J):l.removeAttribute("name")}function Ev(l,c,h,v,A,O,j,J){if(O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(l.type=O),c!=null||h!=null){if(!(O!=="submit"&&O!=="reset"||c!=null))return;h=h!=null?""+qi(h):"",c=c!=null?""+qi(c):h,J||c===l.value||(l.value=c),l.defaultValue=c}v=v??A,v=typeof v!="function"&&typeof v!="symbol"&&!!v,l.checked=J?l.checked:!!v,l.defaultChecked=!!v,j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"&&(l.name=j)}function X0(l,c,h){c==="number"&&fs(l.ownerDocument)===l||l.defaultValue===""+h||(l.defaultValue=""+h)}function xu(l,c,h,v){if(l=l.options,c){c={};for(var A=0;A<h.length;A++)c["$"+h[A]]=!0;for(h=0;h<l.length;h++)A=c.hasOwnProperty("$"+l[h].value),l[h].selected!==A&&(l[h].selected=A),A&&v&&(l[h].defaultSelected=!0)}else{for(h=""+qi(h),c=null,A=0;A<l.length;A++){if(l[A].value===h){l[A].selected=!0,v&&(l[A].defaultSelected=!0);return}c!==null||l[A].disabled||(c=l[A])}c!==null&&(c.selected=!0)}}function Tv(l,c,h){if(c!=null&&(c=""+qi(c),c!==l.value&&(l.value=c),h==null)){l.defaultValue!==c&&(l.defaultValue=c);return}l.defaultValue=h!=null?""+qi(h):""}function wv(l,c,h,v){if(c==null){if(v!=null){if(h!=null)throw Error(a(92));if(ae(v)){if(1<v.length)throw Error(a(93));v=v[0]}h=v}h==null&&(h=""),c=h}h=qi(c),l.defaultValue=h,v=l.textContent,v===h&&v!==""&&v!==null&&(l.value=v)}function kc(l,c){if(c){var h=l.firstChild;if(h&&h===l.lastChild&&h.nodeType===3){h.nodeValue=c;return}}l.textContent=c}var vT=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 Av(l,c,h){var v=c.indexOf("--")===0;h==null||typeof h=="boolean"||h===""?v?l.setProperty(c,""):c==="float"?l.cssFloat="":l[c]="":v?l.setProperty(c,h):typeof h!="number"||h===0||vT.has(c)?c==="float"?l.cssFloat=h:l[c]=(""+h).trim():l[c]=h+"px"}function Am(l,c,h){if(c!=null&&typeof c!="object")throw Error(a(62));if(l=l.style,h!=null){for(var v in h)!h.hasOwnProperty(v)||c!=null&&c.hasOwnProperty(v)||(v.indexOf("--")===0?l.setProperty(v,""):v==="float"?l.cssFloat="":l[v]="");for(var A in c)v=c[A],c.hasOwnProperty(A)&&h[A]!==v&&Av(l,A,v)}else for(var O in c)c.hasOwnProperty(O)&&Av(l,O,c[O])}function Zf(l){if(l.indexOf("-")===-1)return!1;switch(l){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 W0=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"]]),bT=/^[\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 Q0(l){return bT.test(""+l)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":l}var Cm=null;function Dc(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var _c=null,Jf=null;function Ix(l){var c=ka(l);if(c&&(l=c.stateNode)){var h=l[Ua]||null;e:switch(l=c.stateNode,c.type){case"input":if(Sv(l,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name),c=h.name,h.type==="radio"&&c!=null){for(h=l;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll('input[name="'+go(""+c)+'"][type="radio"]'),c=0;c<h.length;c++){var v=h[c];if(v!==l&&v.form===l.form){var A=v[Ua]||null;if(!A)throw Error(a(90));Sv(v,A.value,A.defaultValue,A.defaultValue,A.checked,A.defaultChecked,A.type,A.name)}}for(c=0;c<h.length;c++)v=h[c],v.form===l.form&&Kf(v)}break e;case"textarea":Tv(l,h.value,h.defaultValue);break e;case"select":c=h.value,c!=null&&xu(l,!!h.multiple,c,!1)}}}var Cv=!1;function Bx(l,c,h){if(Cv)return l(c,h);Cv=!0;try{var v=l(c);return v}finally{if(Cv=!1,(_c!==null||Jf!==null)&&($p(),_c&&(c=_c,l=Jf,Jf=_c=null,Ix(c),l)))for(c=0;c<l.length;c++)Ix(l[c])}}function ds(l,c){var h=l.stateNode;if(h===null)return null;var v=h[Ua]||null;if(v===null)return null;h=v[c];e:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(v=!v.disabled)||(l=l.type,v=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!v;break e;default:l=!1}if(l)return null;if(h&&typeof h!="function")throw Error(a(231,c,typeof h));return h}var $o=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Om=!1;if($o)try{var ed={};Object.defineProperty(ed,"passive",{get:function(){Om=!0}}),window.addEventListener("test",ed,ed),window.removeEventListener("test",ed,ed)}catch{Om=!1}var yo=null,Rm=null,Nc=null;function K0(){if(Nc)return Nc;var l,c=Rm,h=c.length,v,A="value"in yo?yo.value:yo.textContent,O=A.length;for(l=0;l<h&&c[l]===A[l];l++);var j=h-l;for(v=1;v<=j&&c[h-v]===A[O-v];v++);return Nc=A.slice(l,1<v?1-v:void 0)}function Z0(l){var c=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&c===13&&(l=13)):l=c,l===10&&(l=13),32<=l||l===13?l:0}function Da(){return!0}function Px(){return!1}function $a(l){function c(h,v,A,O,j){this._reactName=h,this._targetInst=A,this.type=v,this.nativeEvent=O,this.target=j,this.currentTarget=null;for(var J in l)l.hasOwnProperty(J)&&(h=l[J],this[J]=h?h(O):O[J]);return this.isDefaultPrevented=(O.defaultPrevented!=null?O.defaultPrevented:O.returnValue===!1)?Da:Px,this.isPropagationStopped=Px,this}return x(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var h=this.nativeEvent;h&&(h.preventDefault?h.preventDefault():typeof h.returnValue!="unknown"&&(h.returnValue=!1),this.isDefaultPrevented=Da)},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=!0),this.isPropagationStopped=Da)},persist:function(){},isPersistent:Da}),c}var Su={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},J0=$a(Su),ep=x({},Su,{view:0,detail:0}),xT=$a(ep),Mm,Ov,td,km=x({},ep,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Dm,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==td&&(td&&l.type==="mousemove"?(Mm=l.screenX-td.screenX,Ov=l.screenY-td.screenY):Ov=Mm=0,td=l),Mm)},movementY:function(l){return"movementY"in l?l.movementY:Ov}}),tp=$a(km),Vx=x({},km,{dataTransfer:0}),Ux=$a(Vx),$x=x({},ep,{relatedTarget:0}),Rv=$a($x),ST=x({},Su,{animationName:0,elapsedTime:0,pseudoElement:0}),ET=$a(ST),TT=x({},Su,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),wT=$a(TT),np=x({},Su,{data:0}),Mv=$a(np),jx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hx={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"},qx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kv(l){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(l):(l=qx[l])?!!c[l]:!1}function Dm(){return kv}var zc=x({},ep,{key:function(l){if(l.key){var c=jx[l.key]||l.key;if(c!=="Unidentified")return c}return l.type==="keypress"?(l=Z0(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?Hx[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Dm,charCode:function(l){return l.type==="keypress"?Z0(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?Z0(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),Lc=$a(zc),jo=x({},km,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yi=$a(jo),_m=x({},ep,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Dm}),Nm=$a(_m),Dv=x({},Su,{propertyName:0,elapsedTime:0,pseudoElement:0}),vi=$a(Dv),Gx=x({},km,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),zm=$a(Gx),Ic=x({},Su,{newState:0,oldState:0}),_v=$a(Ic),Fx=[9,13,27,32],Lm=$o&&"CompositionEvent"in window,Bc=null;$o&&"documentMode"in document&&(Bc=document.documentMode);var AT=$o&&"TextEvent"in window&&!Bc,Im=$o&&(!Lm||Bc&&8<Bc&&11>=Bc),Dl=" ",Nv=!1;function Bm(l,c){switch(l){case"keyup":return Fx.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rp(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var vo=!1;function zv(l,c){switch(l){case"compositionend":return rp(c);case"keypress":return c.which!==32?null:(Nv=!0,Dl);case"textInput":return l=c.data,l===Dl&&Nv?null:l;default:return null}}function Lv(l,c){if(vo)return l==="compositionend"||!Lm&&Bm(l,c)?(l=K0(),Nc=Rm=yo=null,vo=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return Im&&c.locale!=="ko"?null:c.data;default:return null}}var Pc={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 Iv(l){var c=l&&l.nodeName&&l.nodeName.toLowerCase();return c==="input"?!!Pc[l.type]:c==="textarea"}function Pm(l,c,h,v){_c?Jf?Jf.push(v):Jf=[v]:_c=v,c=Wu(c,"onChange"),0<c.length&&(h=new J0("onChange","change",null,h,v),l.push({event:h,listeners:c}))}var Vc=null,Ho=null;function Uc(l){Ls(l,0)}function nd(l){var c=Ff(l);if(Kf(c))return l}function Eu(l,c){if(l==="change")return c}var Bv=!1;if($o){var Vm;if($o){var $c="oninput"in document;if(!$c){var rd=document.createElement("div");rd.setAttribute("oninput","return;"),$c=typeof rd.oninput=="function"}Vm=$c}else Vm=!1;Bv=Vm&&(!document.documentMode||9<document.documentMode)}function Pv(){Vc&&(Vc.detachEvent("onpropertychange",ad),Ho=Vc=null)}function ad(l){if(l.propertyName==="value"&&nd(Ho)){var c=[];Pm(c,Ho,l,Dc(l)),Bx(Uc,c)}}function Yx(l,c,h){l==="focusin"?(Pv(),Vc=c,Ho=h,Vc.attachEvent("onpropertychange",ad)):l==="focusout"&&Pv()}function Um(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return nd(Ho)}function Tu(l,c){if(l==="click")return nd(c)}function ps(l,c){if(l==="input"||l==="change")return nd(c)}function Vv(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}var ei=typeof Object.is=="function"?Object.is:Vv;function hs(l,c){if(ei(l,c))return!0;if(typeof l!="object"||l===null||typeof c!="object"||c===null)return!1;var h=Object.keys(l),v=Object.keys(c);if(h.length!==v.length)return!1;for(v=0;v<h.length;v++){var A=h[v];if(!dt.call(c,A)||!ei(l[A],c[A]))return!1}return!0}function ap(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function wu(l,c){var h=ap(l);l=0;for(var v;h;){if(h.nodeType===3){if(v=l+h.textContent.length,l<=c&&v>=c)return{node:h,offset:c-l};l=v}e:{for(;h;){if(h.nextSibling){h=h.nextSibling;break e}h=h.parentNode}h=void 0}h=ap(h)}}function yr(l,c){return l&&c?l===c?!0:l&&l.nodeType===3?!1:c&&c.nodeType===3?yr(l,c.parentNode):"contains"in l?l.contains(c):l.compareDocumentPosition?!!(l.compareDocumentPosition(c)&16):!1:!1}function ip(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var c=fs(l.document);c instanceof l.HTMLIFrameElement;){try{var h=typeof c.contentWindow.location.href=="string"}catch{h=!1}if(h)l=c.contentWindow;else break;c=fs(l.document)}return c}function $m(l){var c=l&&l.nodeName&&l.nodeName.toLowerCase();return c&&(c==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||c==="textarea"||l.contentEditable==="true")}var Uv=$o&&"documentMode"in document&&11>=document.documentMode,bo=null,jc=null,Gi=null,id=!1;function od(l,c,h){var v=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;id||bo==null||bo!==fs(v)||(v=bo,"selectionStart"in v&&$m(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),Gi&&hs(Gi,v)||(Gi=v,v=Wu(jc,"onSelect"),0<v.length&&(c=new J0("onSelect","select",null,c,h),l.push({event:c,listeners:v}),c.target=bo)))}function ms(l,c){var h={};return h[l.toLowerCase()]=c.toLowerCase(),h["Webkit"+l]="webkit"+c,h["Moz"+l]="moz"+c,h}var Au={animationend:ms("Animation","AnimationEnd"),animationiteration:ms("Animation","AnimationIteration"),animationstart:ms("Animation","AnimationStart"),transitionrun:ms("Transition","TransitionRun"),transitionstart:ms("Transition","TransitionStart"),transitioncancel:ms("Transition","TransitionCancel"),transitionend:ms("Transition","TransitionEnd")},jm={},qo={};$o&&(qo=document.createElement("div").style,"AnimationEvent"in window||(delete Au.animationend.animation,delete Au.animationiteration.animation,delete Au.animationstart.animation),"TransitionEvent"in window||delete Au.transitionend.transition);function ja(l){if(jm[l])return jm[l];if(!Au[l])return l;var c=Au[l],h;for(h in c)if(c.hasOwnProperty(h)&&h in qo)return jm[l]=c[h];return l}var op=ja("animationend"),Xx=ja("animationiteration"),$v=ja("animationstart"),CT=ja("transitionrun"),jv=ja("transitionstart"),Hm=ja("transitioncancel"),Hv=ja("transitionend"),qv=new Map,qm="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(" ");qm.push("scrollEnd");function bi(l,c){qv.set(l,c),xa(c,[l])}var Gv=new WeakMap;function Fi(l,c){if(typeof l=="object"&&l!==null){var h=Gv.get(l);return h!==void 0?h:(c={value:l,source:c,stack:bu(c)},Gv.set(l,c),c)}return{value:l,source:c,stack:bu(c)}}var Yi=[],Cu=0,lp=0;function Go(){for(var l=Cu,c=lp=Cu=0;c<l;){var h=Yi[c];Yi[c++]=null;var v=Yi[c];Yi[c++]=null;var A=Yi[c];Yi[c++]=null;var O=Yi[c];if(Yi[c++]=null,v!==null&&A!==null){var j=v.pending;j===null?A.next=A:(A.next=j.next,j.next=A),v.pending=A}O!==0&&ld(h,A,O)}}function Fo(l,c,h,v){Yi[Cu++]=l,Yi[Cu++]=c,Yi[Cu++]=h,Yi[Cu++]=v,lp|=v,l.lanes|=v,l=l.alternate,l!==null&&(l.lanes|=v)}function Hc(l,c,h,v){return Fo(l,c,h,v),Ou(l)}function gs(l,c){return Fo(l,null,null,c),Ou(l)}function ld(l,c,h){l.lanes|=h;var v=l.alternate;v!==null&&(v.lanes|=h);for(var A=!1,O=l.return;O!==null;)O.childLanes|=h,v=O.alternate,v!==null&&(v.childLanes|=h),O.tag===22&&(l=O.stateNode,l===null||l._visibility&1||(A=!0)),l=O,O=O.return;return l.tag===3?(O=l.stateNode,A&&c!==null&&(A=31-lt(h),l=O.hiddenUpdates,v=l[A],v===null?l[A]=[c]:v.push(c),c.lane=h|536870912),O):null}function Ou(l){if(50<Ud)throw Ud=0,D1=null,Error(a(185));for(var c=l.return;c!==null;)l=c,c=l.return;return l.tag===3?l.stateNode:null}var qc={};function OT(l,c,h,v){this.tag=l,this.key=h,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xi(l,c,h,v){return new OT(l,c,h,v)}function Gm(l){return l=l.prototype,!(!l||!l.isReactComponent)}function Yo(l,c){var h=l.alternate;return h===null?(h=xi(l.tag,c,l.key,l.mode),h.elementType=l.elementType,h.type=l.type,h.stateNode=l.stateNode,h.alternate=l,l.alternate=h):(h.pendingProps=c,h.type=l.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=l.flags&65011712,h.childLanes=l.childLanes,h.lanes=l.lanes,h.child=l.child,h.memoizedProps=l.memoizedProps,h.memoizedState=l.memoizedState,h.updateQueue=l.updateQueue,c=l.dependencies,h.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},h.sibling=l.sibling,h.index=l.index,h.ref=l.ref,h.refCleanup=l.refCleanup,h}function Fm(l,c){l.flags&=65011714;var h=l.alternate;return h===null?(l.childLanes=0,l.lanes=c,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=h.childLanes,l.lanes=h.lanes,l.child=h.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=h.memoizedProps,l.memoizedState=h.memoizedState,l.updateQueue=h.updateQueue,l.type=h.type,c=h.dependencies,l.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext}),l}function hn(l,c,h,v,A,O){var j=0;if(v=l,typeof l=="function")Gm(l)&&(j=1);else if(typeof l=="string")j=D6(l,h,Me.current)?26:l==="html"||l==="head"||l==="body"?27:5;else e:switch(l){case le:return l=xi(31,h,c,A),l.elementType=le,l.lanes=O,l;case C:return it(h.children,A,O,c);case R:j=8,A|=24;break;case M:return l=xi(12,h,c,A|2),l.elementType=M,l.lanes=O,l;case z:return l=xi(13,h,c,A),l.elementType=z,l.lanes=O,l;case $:return l=xi(19,h,c,A),l.elementType=$,l.lanes=O,l;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case _:case P:j=10;break e;case N:j=9;break e;case B:j=11;break e;case X:j=14;break e;case ie:j=16,v=null;break e}j=29,h=Error(a(130,l===null?"null":typeof l,"")),v=null}return c=xi(j,h,c,A),c.elementType=l,c.type=v,c.lanes=O,c}function it(l,c,h,v){return l=xi(7,l,v,c),l.lanes=h,l}function Ru(l,c,h){return l=xi(6,l,null,c),l.lanes=h,l}function sd(l,c,h){return c=xi(4,l.children!==null?l.children:[],l.key,c),c.lanes=h,c.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},c}var dr=[],Mu=0,ud=null,sp=0,Si=[],xo=0,ys=null,Xo=1,Wo="";function ta(l,c){dr[Mu++]=sp,dr[Mu++]=ud,ud=l,sp=c}function Gn(l,c,h){Si[xo++]=Xo,Si[xo++]=Wo,Si[xo++]=ys,ys=l;var v=Xo;l=Wo;var A=32-lt(v)-1;v&=~(1<<A),h+=1;var O=32-lt(c)+A;if(30<O){var j=A-A%5;O=(v&(1<<j)-1).toString(32),v>>=j,A-=j,Xo=1<<32-lt(c)+A|h<<A|v,Wo=O+l}else Xo=1<<O|h<<A|v,Wo=l}function up(l){l.return!==null&&(ta(l,1),Gn(l,1,0))}function Gc(l){for(;l===ud;)ud=dr[--Mu],dr[Mu]=null,sp=dr[--Mu],dr[Mu]=null;for(;l===ys;)ys=Si[--xo],Si[xo]=null,Wo=Si[--xo],Si[xo]=null,Xo=Si[--xo],Si[xo]=null}var Ir=null,tr=null,mn=!1,vs=null,ti=!1,cp=Error(a(519));function Qo(l){var c=Error(a(418,""));throw dd(Fi(c,l)),cp}function Ym(l){var c=l.stateNode,h=l.type,v=l.memoizedProps;switch(c[ur]=l,c[Ua]=v,h){case"dialog":cn("cancel",c),cn("close",c);break;case"iframe":case"object":case"embed":cn("load",c);break;case"video":case"audio":for(h=0;h<tn.length;h++)cn(tn[h],c);break;case"source":cn("error",c);break;case"img":case"image":case"link":cn("error",c),cn("load",c);break;case"details":cn("toggle",c);break;case"input":cn("invalid",c),Ev(c,v.value,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name,!0),Qf(c);break;case"select":cn("invalid",c);break;case"textarea":cn("invalid",c),wv(c,v.value,v.defaultValue,v.children),Qf(c)}h=v.children,typeof h!="string"&&typeof h!="number"&&typeof h!="bigint"||c.textContent===""+h||v.suppressHydrationWarning===!0||R6(c.textContent,h)?(v.popover!=null&&(cn("beforetoggle",c),cn("toggle",c)),v.onScroll!=null&&cn("scroll",c),v.onScrollEnd!=null&&cn("scrollend",c),v.onClick!=null&&(c.onclick=Wp),c=!0):c=!1,c||Qo(l)}function fp(l){for(Ir=l.return;Ir;)switch(Ir.tag){case 5:case 13:ti=!1;return;case 27:case 3:ti=!0;return;default:Ir=Ir.return}}function cd(l){if(l!==Ir)return!1;if(!mn)return fp(l),mn=!0,!1;var c=l.tag,h;if((h=c!==3&&c!==27)&&((h=c===5)&&(h=l.type,h=!(h!=="form"&&h!=="button")||cf(l.type,l.memoizedProps)),h=!h),h&&tr&&Qo(l),fp(l),c===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(a(317));e:{for(l=l.nextSibling,c=0;l;){if(l.nodeType===8)if(h=l.data,h==="/$"){if(c===0){tr=ul(l.nextSibling);break e}c--}else h!=="$"&&h!=="$!"&&h!=="$?"||c++;l=l.nextSibling}tr=null}}else c===27?(c=tr,za(l.type)?(l=f4,f4=null,tr=l):tr=c):tr=Ir?ul(l.stateNode.nextSibling):null;return!0}function fd(){tr=Ir=null,mn=!1}function Fv(){var l=vs;return l!==null&&(ri===null?ri=l:ri.push.apply(ri,l),vs=null),l}function dd(l){vs===null?vs=[l]:vs.push(l)}var Xm=q(null),bs=null,Ko=null;function _l(l,c,h){H(Xm,c._currentValue),c._currentValue=h}function Nl(l){l._currentValue=Xm.current,se(Xm)}function Wm(l,c,h){for(;l!==null;){var v=l.alternate;if((l.childLanes&c)!==c?(l.childLanes|=c,v!==null&&(v.childLanes|=c)):v!==null&&(v.childLanes&c)!==c&&(v.childLanes|=c),l===h)break;l=l.return}}function Qm(l,c,h,v){var A=l.child;for(A!==null&&(A.return=l);A!==null;){var O=A.dependencies;if(O!==null){var j=A.child;O=O.firstContext;e:for(;O!==null;){var J=O;O=A;for(var de=0;de<c.length;de++)if(J.context===c[de]){O.lanes|=h,J=O.alternate,J!==null&&(J.lanes|=h),Wm(O.return,h,l),v||(j=null);break e}O=J.next}}else if(A.tag===18){if(j=A.return,j===null)throw Error(a(341));j.lanes|=h,O=j.alternate,O!==null&&(O.lanes|=h),Wm(j,h,l),j=null}else j=A.child;if(j!==null)j.return=A;else for(j=A;j!==null;){if(j===l){j=null;break}if(A=j.sibling,A!==null){A.return=j.return,j=A;break}j=j.return}A=j}}function dp(l,c,h,v){l=null;for(var A=c,O=!1;A!==null;){if(!O){if((A.flags&524288)!==0)O=!0;else if((A.flags&262144)!==0)break}if(A.tag===10){var j=A.alternate;if(j===null)throw Error(a(387));if(j=j.memoizedProps,j!==null){var J=A.type;ei(A.pendingProps.value,j.value)||(l!==null?l.push(J):l=[J])}}else if(A===Ue.current){if(j=A.alternate,j===null)throw Error(a(387));j.memoizedState.memoizedState!==A.memoizedState.memoizedState&&(l!==null?l.push(Ia):l=[Ia])}A=A.return}l!==null&&Qm(c,l,h,v),c.flags|=262144}function pp(l){for(l=l.firstContext;l!==null;){if(!ei(l.context._currentValue,l.memoizedValue))return!0;l=l.next}return!1}function ku(l){bs=l,Ko=null,l=l.dependencies,l!==null&&(l.firstContext=null)}function _a(l){return Yv(bs,l)}function pd(l,c){return bs===null&&ku(l),Yv(l,c)}function Yv(l,c){var h=c._currentValue;if(c={context:c,memoizedValue:h,next:null},Ko===null){if(l===null)throw Error(a(308));Ko=c,l.dependencies={lanes:0,firstContext:c},l.flags|=524288}else Ko=Ko.next=c;return h}var Wx=typeof AbortController<"u"?AbortController:function(){var l=[],c=this.signal={aborted:!1,addEventListener:function(h,v){l.push(v)}};this.abort=function(){c.aborted=!0,l.forEach(function(h){return h()})}},hd=e.unstable_scheduleCallback,Km=e.unstable_NormalPriority,na={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Xv(){return{controller:new Wx,data:new Map,refCount:0}}function Du(l){l.refCount--,l.refCount===0&&hd(Km,function(){l.controller.abort()})}var zl=null,md=0,_u=0,So=null;function Ei(l,c){if(zl===null){var h=zl=[];md=0,_u=$1(),So={status:"pending",value:void 0,then:function(v){h.push(v)}}}return md++,c.then(hp,hp),c}function hp(){if(--md===0&&zl!==null){So!==null&&(So.status="fulfilled");var l=zl;zl=null,_u=0,So=null;for(var c=0;c<l.length;c++)(0,l[c])()}}function Wv(l,c){var h=[],v={status:"pending",value:null,reason:null,then:function(A){h.push(A)}};return l.then(function(){v.status="fulfilled",v.value=c;for(var A=0;A<h.length;A++)(0,h[A])(c)},function(A){for(v.status="rejected",v.reason=A,A=0;A<h.length;A++)(0,h[A])(void 0)}),v}var Qv=K.S;K.S=function(l,c){typeof c=="object"&&c!==null&&typeof c.then=="function"&&Ei(l,c),Qv!==null&&Qv(l,c)};var xs=q(null);function gd(){var l=xs.current;return l!==null?l:rr.pooledCache}function yd(l,c){c===null?H(xs,xs.current):H(xs,c.pool)}function mp(){var l=gd();return l===null?null:{parent:na._currentValue,pool:l}}var Fc=Error(a(460)),gp=Error(a(474)),vd=Error(a(542)),Zm={then:function(){}};function Kv(l){return l=l.status,l==="fulfilled"||l==="rejected"}function bd(){}function Zv(l,c,h){switch(h=l[h],h===void 0?l.push(c):h!==c&&(c.then(bd,bd),c=h),c.status){case"fulfilled":return c.value;case"rejected":throw l=c.reason,Jv(l),l;default:if(typeof c.status=="string")c.then(bd,bd);else{if(l=rr,l!==null&&100<l.shellSuspendCounter)throw Error(a(482));l=c,l.status="pending",l.then(function(v){if(c.status==="pending"){var A=c;A.status="fulfilled",A.value=v}},function(v){if(c.status==="pending"){var A=c;A.status="rejected",A.reason=v}})}switch(c.status){case"fulfilled":return c.value;case"rejected":throw l=c.reason,Jv(l),l}throw xd=c,Fc}}var xd=null;function Jm(){if(xd===null)throw Error(a(459));var l=xd;return xd=null,l}function Jv(l){if(l===Fc||l===vd)throw Error(a(483))}var Ss=!1;function yp(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function e1(l,c){l=l.updateQueue,c.updateQueue===l&&(c.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function Es(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function Ti(l,c,h){var v=l.updateQueue;if(v===null)return null;if(v=v.shared,(Fn&2)!==0){var A=v.pending;return A===null?c.next=c:(c.next=A.next,A.next=c),v.pending=c,c=Ou(l),ld(l,null,h),c}return Fo(l,v,c,h),Ou(l)}function Yc(l,c,h){if(c=c.updateQueue,c!==null&&(c=c.shared,(h&4194048)!==0)){var v=c.lanes;v&=l.pendingLanes,h|=v,c.lanes=h,un(l,h)}}function vp(l,c){var h=l.updateQueue,v=l.alternate;if(v!==null&&(v=v.updateQueue,h===v)){var A=null,O=null;if(h=h.firstBaseUpdate,h!==null){do{var j={lane:h.lane,tag:h.tag,payload:h.payload,callback:null,next:null};O===null?A=O=j:O=O.next=j,h=h.next}while(h!==null);O===null?A=O=c:O=O.next=c}else A=O=c;h={baseState:v.baseState,firstBaseUpdate:A,lastBaseUpdate:O,shared:v.shared,callbacks:v.callbacks},l.updateQueue=h;return}l=h.lastBaseUpdate,l===null?h.firstBaseUpdate=c:l.next=c,h.lastBaseUpdate=c}var eb=!1;function bp(){if(eb){var l=So;if(l!==null)throw l}}function Sd(l,c,h,v){eb=!1;var A=l.updateQueue;Ss=!1;var O=A.firstBaseUpdate,j=A.lastBaseUpdate,J=A.shared.pending;if(J!==null){A.shared.pending=null;var de=J,ke=de.next;de.next=null,j===null?O=ke:j.next=ke,j=de;var Xe=l.alternate;Xe!==null&&(Xe=Xe.updateQueue,J=Xe.lastBaseUpdate,J!==j&&(J===null?Xe.firstBaseUpdate=ke:J.next=ke,Xe.lastBaseUpdate=de))}if(O!==null){var Ze=A.baseState;j=0,Xe=ke=de=null,J=O;do{var _e=J.lane&-536870913,Pe=_e!==J.lane;if(Pe?(Ln&_e)===_e:(v&_e)===_e){_e!==0&&_e===_u&&(eb=!0),Xe!==null&&(Xe=Xe.next={lane:0,tag:J.tag,payload:J.payload,callback:null,next:null});e:{var Vt=l,_t=J;_e=c;var qn=h;switch(_t.tag){case 1:if(Vt=_t.payload,typeof Vt=="function"){Ze=Vt.call(qn,Ze,_e);break e}Ze=Vt;break e;case 3:Vt.flags=Vt.flags&-65537|128;case 0:if(Vt=_t.payload,_e=typeof Vt=="function"?Vt.call(qn,Ze,_e):Vt,_e==null)break e;Ze=x({},Ze,_e);break e;case 2:Ss=!0}}_e=J.callback,_e!==null&&(l.flags|=64,Pe&&(l.flags|=8192),Pe=A.callbacks,Pe===null?A.callbacks=[_e]:Pe.push(_e))}else Pe={lane:_e,tag:J.tag,payload:J.payload,callback:J.callback,next:null},Xe===null?(ke=Xe=Pe,de=Ze):Xe=Xe.next=Pe,j|=_e;if(J=J.next,J===null){if(J=A.shared.pending,J===null)break;Pe=J,J=Pe.next,Pe.next=null,A.lastBaseUpdate=Pe,A.shared.pending=null}}while(!0);Xe===null&&(de=Ze),A.baseState=de,A.firstBaseUpdate=ke,A.lastBaseUpdate=Xe,O===null&&(A.shared.lanes=0),ju|=j,l.lanes=j,l.memoizedState=Ze}}function Ed(l,c){if(typeof l!="function")throw Error(a(191,l));l.call(c)}function t1(l,c){var h=l.callbacks;if(h!==null)for(l.callbacks=null,l=0;l<h.length;l++)Ed(h[l],c)}var Ts=q(null),xp=q(0);function tb(l,c){l=_s,H(xp,l),H(Ts,c),_s=l|c.baseLanes}function ca(){H(xp,_s),H(Ts,Ts.current)}function Td(){_s=xp.current,se(Ts),se(xp)}var Zo=0,an=null,jn=null,Mr=null,Xc=!1,Wc=!1,wi=!1,Sp=0,Eo=0,Ai=null,n1=0;function kr(){throw Error(a(321))}function Ep(l,c){if(c===null)return!1;for(var h=0;h<c.length&&h<l.length;h++)if(!ei(l[h],c[h]))return!1;return!0}function r1(l,c,h,v,A,O){return Zo=O,an=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,K.H=l===null||l.memoizedState===null?r6:xb,wi=!1,O=h(v,A),wi=!1,Wc&&(O=Nu(c,h,v,A)),nb(l),O}function nb(l){K.H=_p;var c=jn!==null&&jn.next!==null;if(Zo=0,Mr=jn=an=null,Xc=!1,Eo=0,Ai=null,c)throw Error(a(300));l===null||wn||(l=l.dependencies,l!==null&&pp(l)&&(wn=!0))}function Nu(l,c,h,v){an=l;var A=0;do{if(Wc&&(Ai=null),Eo=0,Wc=!1,25<=A)throw Error(a(301));if(A+=1,Mr=jn=null,l.updateQueue!=null){var O=l.updateQueue;O.lastEffect=null,O.events=null,O.stores=null,O.memoCache!=null&&(O.memoCache.index=0)}K.H=a6,O=c(h,v)}while(Wc);return O}function Qx(){var l=K.H,c=l.useState()[0];return c=typeof c.then=="function"?Qc(c):c,l=l.useState()[0],(jn!==null?jn.memoizedState:null)!==l&&(an.flags|=1024),c}function a1(){var l=Sp!==0;return Sp=0,l}function i1(l,c,h){c.updateQueue=l.updateQueue,c.flags&=-2053,l.lanes&=~h}function wd(l){if(Xc){for(l=l.memoizedState;l!==null;){var c=l.queue;c!==null&&(c.pending=null),l=l.next}Xc=!1}Zo=0,Mr=jn=an=null,Wc=!1,Eo=Sp=0,Ai=null}function ni(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mr===null?an.memoizedState=Mr=l:Mr=Mr.next=l,Mr}function Br(){if(jn===null){var l=an.alternate;l=l!==null?l.memoizedState:null}else l=jn.next;var c=Mr===null?an.memoizedState:Mr.next;if(c!==null)Mr=c,jn=l;else{if(l===null)throw an.alternate===null?Error(a(467)):Error(a(310));jn=l,l={memoizedState:jn.memoizedState,baseState:jn.baseState,baseQueue:jn.baseQueue,queue:jn.queue,next:null},Mr===null?an.memoizedState=Mr=l:Mr=Mr.next=l}return Mr}function Tp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Qc(l){var c=Eo;return Eo+=1,Ai===null&&(Ai=[]),l=Zv(Ai,l,c),c=an,(Mr===null?c.memoizedState:Mr.next)===null&&(c=c.alternate,K.H=c===null||c.memoizedState===null?r6:xb),l}function o1(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return Qc(l);if(l.$$typeof===P)return _a(l)}throw Error(a(438,String(l)))}function fa(l){var c=null,h=an.updateQueue;if(h!==null&&(c=h.memoCache),c==null){var v=an.alternate;v!==null&&(v=v.updateQueue,v!==null&&(v=v.memoCache,v!=null&&(c={data:v.data.map(function(A){return A.slice()}),index:0})))}if(c==null&&(c={data:[],index:0}),h===null&&(h=Tp(),an.updateQueue=h),h.memoCache=c,h=c.data[c.index],h===void 0)for(h=c.data[c.index]=Array(l),v=0;v<l;v++)h[v]=Z;return c.index++,h}function Ll(l,c){return typeof c=="function"?c(l):c}function wp(l){var c=Br();return l1(c,jn,l)}function l1(l,c,h){var v=l.queue;if(v===null)throw Error(a(311));v.lastRenderedReducer=h;var A=l.baseQueue,O=v.pending;if(O!==null){if(A!==null){var j=A.next;A.next=O.next,O.next=j}c.baseQueue=A=O,v.pending=null}if(O=l.baseState,A===null)l.memoizedState=O;else{c=A.next;var J=j=null,de=null,ke=c,Xe=!1;do{var Ze=ke.lane&-536870913;if(Ze!==ke.lane?(Ln&Ze)===Ze:(Zo&Ze)===Ze){var _e=ke.revertLane;if(_e===0)de!==null&&(de=de.next={lane:0,revertLane:0,action:ke.action,hasEagerState:ke.hasEagerState,eagerState:ke.eagerState,next:null}),Ze===_u&&(Xe=!0);else if((Zo&_e)===_e){ke=ke.next,_e===_u&&(Xe=!0);continue}else Ze={lane:0,revertLane:ke.revertLane,action:ke.action,hasEagerState:ke.hasEagerState,eagerState:ke.eagerState,next:null},de===null?(J=de=Ze,j=O):de=de.next=Ze,an.lanes|=_e,ju|=_e;Ze=ke.action,wi&&h(O,Ze),O=ke.hasEagerState?ke.eagerState:h(O,Ze)}else _e={lane:Ze,revertLane:ke.revertLane,action:ke.action,hasEagerState:ke.hasEagerState,eagerState:ke.eagerState,next:null},de===null?(J=de=_e,j=O):de=de.next=_e,an.lanes|=Ze,ju|=Ze;ke=ke.next}while(ke!==null&&ke!==c);if(de===null?j=O:de.next=J,!ei(O,l.memoizedState)&&(wn=!0,Xe&&(h=So,h!==null)))throw h;l.memoizedState=O,l.baseState=j,l.baseQueue=de,v.lastRenderedState=O}return A===null&&(v.lanes=0),[l.memoizedState,v.dispatch]}function s1(l){var c=Br(),h=c.queue;if(h===null)throw Error(a(311));h.lastRenderedReducer=l;var v=h.dispatch,A=h.pending,O=c.memoizedState;if(A!==null){h.pending=null;var j=A=A.next;do O=l(O,j.action),j=j.next;while(j!==A);ei(O,c.memoizedState)||(wn=!0),c.memoizedState=O,c.baseQueue===null&&(c.baseState=O),h.lastRenderedState=O}return[O,v]}function rb(l,c,h){var v=an,A=Br(),O=mn;if(O){if(h===void 0)throw Error(a(407));h=h()}else h=c();var j=!ei((jn||A).memoizedState,h);j&&(A.memoizedState=h,wn=!0),A=A.queue;var J=ab.bind(null,v,A,l);if(ws(2048,8,J,[l]),A.getSnapshot!==c||j||Mr!==null&&Mr.memoizedState.tag&1){if(v.flags|=2048,zu(9,To(),u1.bind(null,v,A,h,c),null),rr===null)throw Error(a(349));O||(Zo&124)!==0||Ap(v,c,h)}return h}function Ap(l,c,h){l.flags|=16384,l={getSnapshot:c,value:h},c=an.updateQueue,c===null?(c=Tp(),an.updateQueue=c,c.stores=[l]):(h=c.stores,h===null?c.stores=[l]:h.push(l))}function u1(l,c,h,v){c.value=h,c.getSnapshot=v,ib(c)&&ob(l)}function ab(l,c,h){return h(function(){ib(c)&&ob(l)})}function ib(l){var c=l.getSnapshot;l=l.value;try{var h=c();return!ei(l,h)}catch{return!0}}function ob(l){var c=gs(l,2);c!==null&&Ni(c,l,2)}function Cp(l){var c=ni();if(typeof l=="function"){var h=l;if(l=h(),wi){rt(!0);try{h()}finally{rt(!1)}}}return c.memoizedState=c.baseState=l,c.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ll,lastRenderedState:l},c}function c1(l,c,h,v){return l.baseState=h,l1(l,jn,typeof v=="function"?v:Ll)}function lb(l,c,h,v,A){if(Od(l))throw Error(a(485));if(l=c.action,l!==null){var O={payload:A,action:l,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(j){O.listeners.push(j)}};K.T!==null?h(!0):O.isTransition=!1,v(O),h=c.pending,h===null?(O.next=c.pending=O,sb(c,O)):(O.next=h.next,c.pending=h.next=O)}}function sb(l,c){var h=c.action,v=c.payload,A=l.state;if(c.isTransition){var O=K.T,j={};K.T=j;try{var J=h(A,v),de=K.S;de!==null&&de(j,J),f1(l,c,J)}catch(ke){Rp(l,c,ke)}finally{K.T=O}}else try{O=h(A,v),f1(l,c,O)}catch(ke){Rp(l,c,ke)}}function f1(l,c,h){h!==null&&typeof h=="object"&&typeof h.then=="function"?h.then(function(v){Op(l,c,v)},function(v){return Rp(l,c,v)}):Op(l,c,h)}function Op(l,c,h){c.status="fulfilled",c.value=h,ub(c),l.state=h,c=l.pending,c!==null&&(h=c.next,h===c?l.pending=null:(h=h.next,c.next=h,sb(l,h)))}function Rp(l,c,h){var v=l.pending;if(l.pending=null,v!==null){v=v.next;do c.status="rejected",c.reason=h,ub(c),c=c.next;while(c!==v)}l.action=null}function ub(l){l=l.listeners;for(var c=0;c<l.length;c++)(0,l[c])()}function cb(l,c){return c}function d1(l,c){if(mn){var h=rr.formState;if(h!==null){e:{var v=an;if(mn){if(tr){t:{for(var A=tr,O=ti;A.nodeType!==8;){if(!O){A=null;break t}if(A=ul(A.nextSibling),A===null){A=null;break t}}O=A.data,A=O==="F!"||O==="F"?A:null}if(A){tr=ul(A.nextSibling),v=A.data==="F!";break e}}Qo(v)}v=!1}v&&(c=h[0])}}return h=ni(),h.memoizedState=h.baseState=c,v={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cb,lastRenderedState:c},h.queue=v,h=m1.bind(null,an,v),v.dispatch=h,v=Cp(!1),O=kp.bind(null,an,!1,v.queue),v=ni(),A={state:c,dispatch:null,action:l,pending:null},v.queue=A,h=lb.bind(null,an,A,O,h),A.dispatch=h,v.memoizedState=l,[c,h,!1]}function fb(l){var c=Br();return Il(c,jn,l)}function Il(l,c,h){if(c=l1(l,c,cb)[0],l=wp(Ll)[0],typeof c=="object"&&c!==null&&typeof c.then=="function")try{var v=Qc(c)}catch(j){throw j===Fc?vd:j}else v=c;c=Br();var A=c.queue,O=A.dispatch;return h!==c.memoizedState&&(an.flags|=2048,zu(9,To(),db.bind(null,A,h),null)),[v,O,l]}function db(l,c){l.action=c}function Kx(l){var c=Br(),h=jn;if(h!==null)return Il(c,h,l);Br(),c=c.memoizedState,h=Br();var v=h.queue.dispatch;return h.memoizedState=l,[c,v,!1]}function zu(l,c,h,v){return l={tag:l,create:h,deps:v,inst:c,next:null},c=an.updateQueue,c===null&&(c=Tp(),an.updateQueue=c),h=c.lastEffect,h===null?c.lastEffect=l.next=l:(v=h.next,h.next=l,l.next=v,c.lastEffect=l),l}function To(){return{destroy:void 0,resource:void 0}}function pb(){return Br().memoizedState}function Kc(l,c,h,v){var A=ni();v=v===void 0?null:v,an.flags|=l,A.memoizedState=zu(1|c,To(),h,v)}function ws(l,c,h,v){var A=Br();v=v===void 0?null:v;var O=A.memoizedState.inst;jn!==null&&v!==null&&Ep(v,jn.memoizedState.deps)?A.memoizedState=zu(c,O,h,v):(an.flags|=l,A.memoizedState=zu(1|c,O,h,v))}function vr(l,c){Kc(8390656,8,l,c)}function Zx(l,c){ws(2048,8,l,c)}function Jx(l,c){return ws(4,2,l,c)}function hb(l,c){return ws(4,4,l,c)}function Jo(l,c){if(typeof c=="function"){l=l();var h=c(l);return function(){typeof h=="function"?h():c(null)}}if(c!=null)return l=l(),c.current=l,function(){c.current=null}}function mb(l,c,h){h=h!=null?h.concat([l]):null,ws(4,4,Jo.bind(null,c,l),h)}function Mp(){}function Ad(l,c){var h=Br();c=c===void 0?null:c;var v=h.memoizedState;return c!==null&&Ep(c,v[1])?v[0]:(h.memoizedState=[l,c],l)}function Zc(l,c){var h=Br();c=c===void 0?null:c;var v=h.memoizedState;if(c!==null&&Ep(c,v[1]))return v[0];if(v=l(),wi){rt(!0);try{l()}finally{rt(!1)}}return h.memoizedState=[v,c],v}function p1(l,c,h){return h===void 0||(Zo&1073741824)!==0?l.memoizedState=c:(l.memoizedState=h,l=g6(),an.lanes|=l,ju|=l,h)}function h1(l,c,h,v){return ei(h,c)?h:Ts.current!==null?(l=p1(l,h,v),ei(l,c)||(wn=!0),l):(Zo&42)===0?(wn=!0,l.memoizedState=h):(l=g6(),an.lanes|=l,ju|=l,c)}function gb(l,c,h,v,A){var O=re.p;re.p=O!==0&&8>O?O:8;var j=K.T,J={};K.T=J,kp(l,!1,c,h);try{var de=A(),ke=K.S;if(ke!==null&&ke(J,de),de!==null&&typeof de=="object"&&typeof de.then=="function"){var Xe=Wv(de,v);Cd(l,c,Xe,Zi(l))}else Cd(l,c,v,Zi(l))}catch(Ze){Cd(l,c,{then:function(){},status:"rejected",reason:Ze},Zi())}finally{re.p=O,K.T=j}}function RT(){}function yb(l,c,h,v){if(l.tag!==5)throw Error(a(476));var A=vb(l).queue;gb(l,A,c,ge,h===null?RT:function(){return e6(l),h(v)})}function vb(l){var c=l.memoizedState;if(c!==null)return c;c={memoizedState:ge,baseState:ge,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ll,lastRenderedState:ge},next:null};var h={};return c.next={memoizedState:h,baseState:h,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ll,lastRenderedState:h},next:null},l.memoizedState=c,l=l.alternate,l!==null&&(l.memoizedState=c),c}function e6(l){var c=vb(l).next.queue;Cd(l,c,{},Zi())}function Jc(){return _a(Ia)}function el(){return Br().memoizedState}function bb(){return Br().memoizedState}function MT(l){for(var c=l.return;c!==null;){switch(c.tag){case 24:case 3:var h=Zi();l=Es(h);var v=Ti(c,l,h);v!==null&&(Ni(v,c,h),Yc(v,c,h)),c={cache:Xv()},l.payload=c;return}c=c.return}}function t6(l,c,h){var v=Zi();h={lane:v,revertLane:0,action:h,hasEagerState:!1,eagerState:null,next:null},Od(l)?Dp(c,h):(h=Hc(l,c,h,v),h!==null&&(Ni(h,l,v),n6(h,c,v)))}function m1(l,c,h){var v=Zi();Cd(l,c,h,v)}function Cd(l,c,h,v){var A={lane:v,revertLane:0,action:h,hasEagerState:!1,eagerState:null,next:null};if(Od(l))Dp(c,A);else{var O=l.alternate;if(l.lanes===0&&(O===null||O.lanes===0)&&(O=c.lastRenderedReducer,O!==null))try{var j=c.lastRenderedState,J=O(j,h);if(A.hasEagerState=!0,A.eagerState=J,ei(J,j))return Fo(l,c,A,0),rr===null&&Go(),!1}catch{}finally{}if(h=Hc(l,c,A,v),h!==null)return Ni(h,l,v),n6(h,c,v),!0}return!1}function kp(l,c,h,v){if(v={lane:2,revertLane:$1(),action:v,hasEagerState:!1,eagerState:null,next:null},Od(l)){if(c)throw Error(a(479))}else c=Hc(l,h,v,2),c!==null&&Ni(c,l,2)}function Od(l){var c=l.alternate;return l===an||c!==null&&c===an}function Dp(l,c){Wc=Xc=!0;var h=l.pending;h===null?c.next=c:(c.next=h.next,h.next=c),l.pending=c}function n6(l,c,h){if((h&4194048)!==0){var v=c.lanes;v&=l.pendingLanes,h|=v,c.lanes=h,un(l,h)}}var _p={readContext:_a,use:o1,useCallback:kr,useContext:kr,useEffect:kr,useImperativeHandle:kr,useLayoutEffect:kr,useInsertionEffect:kr,useMemo:kr,useReducer:kr,useRef:kr,useState:kr,useDebugValue:kr,useDeferredValue:kr,useTransition:kr,useSyncExternalStore:kr,useId:kr,useHostTransitionStatus:kr,useFormState:kr,useActionState:kr,useOptimistic:kr,useMemoCache:kr,useCacheRefresh:kr},r6={readContext:_a,use:o1,useCallback:function(l,c){return ni().memoizedState=[l,c===void 0?null:c],l},useContext:_a,useEffect:vr,useImperativeHandle:function(l,c,h){h=h!=null?h.concat([l]):null,Kc(4194308,4,Jo.bind(null,c,l),h)},useLayoutEffect:function(l,c){return Kc(4194308,4,l,c)},useInsertionEffect:function(l,c){Kc(4,2,l,c)},useMemo:function(l,c){var h=ni();c=c===void 0?null:c;var v=l();if(wi){rt(!0);try{l()}finally{rt(!1)}}return h.memoizedState=[v,c],v},useReducer:function(l,c,h){var v=ni();if(h!==void 0){var A=h(c);if(wi){rt(!0);try{h(c)}finally{rt(!1)}}}else A=c;return v.memoizedState=v.baseState=A,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:A},v.queue=l,l=l.dispatch=t6.bind(null,an,l),[v.memoizedState,l]},useRef:function(l){var c=ni();return l={current:l},c.memoizedState=l},useState:function(l){l=Cp(l);var c=l.queue,h=m1.bind(null,an,c);return c.dispatch=h,[l.memoizedState,h]},useDebugValue:Mp,useDeferredValue:function(l,c){var h=ni();return p1(h,l,c)},useTransition:function(){var l=Cp(!1);return l=gb.bind(null,an,l.queue,!0,!1),ni().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,c,h){var v=an,A=ni();if(mn){if(h===void 0)throw Error(a(407));h=h()}else{if(h=c(),rr===null)throw Error(a(349));(Ln&124)!==0||Ap(v,c,h)}A.memoizedState=h;var O={value:h,getSnapshot:c};return A.queue=O,vr(ab.bind(null,v,O,l),[l]),v.flags|=2048,zu(9,To(),u1.bind(null,v,O,h,c),null),h},useId:function(){var l=ni(),c=rr.identifierPrefix;if(mn){var h=Wo,v=Xo;h=(v&~(1<<32-lt(v)-1)).toString(32)+h,c="«"+c+"R"+h,h=Sp++,0<h&&(c+="H"+h.toString(32)),c+="»"}else h=n1++,c="«"+c+"r"+h.toString(32)+"»";return l.memoizedState=c},useHostTransitionStatus:Jc,useFormState:d1,useActionState:d1,useOptimistic:function(l){var c=ni();c.memoizedState=c.baseState=l;var h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return c.queue=h,c=kp.bind(null,an,!0,h),h.dispatch=c,[l,c]},useMemoCache:fa,useCacheRefresh:function(){return ni().memoizedState=MT.bind(null,an)}},xb={readContext:_a,use:o1,useCallback:Ad,useContext:_a,useEffect:Zx,useImperativeHandle:mb,useInsertionEffect:Jx,useLayoutEffect:hb,useMemo:Zc,useReducer:wp,useRef:pb,useState:function(){return wp(Ll)},useDebugValue:Mp,useDeferredValue:function(l,c){var h=Br();return h1(h,jn.memoizedState,l,c)},useTransition:function(){var l=wp(Ll)[0],c=Br().memoizedState;return[typeof l=="boolean"?l:Qc(l),c]},useSyncExternalStore:rb,useId:el,useHostTransitionStatus:Jc,useFormState:fb,useActionState:fb,useOptimistic:function(l,c){var h=Br();return c1(h,jn,l,c)},useMemoCache:fa,useCacheRefresh:bb},a6={readContext:_a,use:o1,useCallback:Ad,useContext:_a,useEffect:Zx,useImperativeHandle:mb,useInsertionEffect:Jx,useLayoutEffect:hb,useMemo:Zc,useReducer:s1,useRef:pb,useState:function(){return s1(Ll)},useDebugValue:Mp,useDeferredValue:function(l,c){var h=Br();return jn===null?p1(h,l,c):h1(h,jn.memoizedState,l,c)},useTransition:function(){var l=s1(Ll)[0],c=Br().memoizedState;return[typeof l=="boolean"?l:Qc(l),c]},useSyncExternalStore:rb,useId:el,useHostTransitionStatus:Jc,useFormState:Kx,useActionState:Kx,useOptimistic:function(l,c){var h=Br();return jn!==null?c1(h,jn,l,c):(h.baseState=l,[l,h.queue.dispatch])},useMemoCache:fa,useCacheRefresh:bb},Ci=null,Rd=0;function Np(l){var c=Rd;return Rd+=1,Ci===null&&(Ci=[]),Zv(Ci,l,c)}function zp(l,c){c=c.props.ref,l.ref=c!==void 0?c:null}function Md(l,c){throw c.$$typeof===S?Error(a(525)):(l=Object.prototype.toString.call(c),Error(a(31,l==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":l)))}function Oi(l){var c=l._init;return c(l._payload)}function Sb(l){function c(Re,Ee){if(l){var De=Re.deletions;De===null?(Re.deletions=[Ee],Re.flags|=16):De.push(Ee)}}function h(Re,Ee){if(!l)return null;for(;Ee!==null;)c(Re,Ee),Ee=Ee.sibling;return null}function v(Re){for(var Ee=new Map;Re!==null;)Re.key!==null?Ee.set(Re.key,Re):Ee.set(Re.index,Re),Re=Re.sibling;return Ee}function A(Re,Ee){return Re=Yo(Re,Ee),Re.index=0,Re.sibling=null,Re}function O(Re,Ee,De){return Re.index=De,l?(De=Re.alternate,De!==null?(De=De.index,De<Ee?(Re.flags|=67108866,Ee):De):(Re.flags|=67108866,Ee)):(Re.flags|=1048576,Ee)}function j(Re){return l&&Re.alternate===null&&(Re.flags|=67108866),Re}function J(Re,Ee,De,We){return Ee===null||Ee.tag!==6?(Ee=Ru(De,Re.mode,We),Ee.return=Re,Ee):(Ee=A(Ee,De),Ee.return=Re,Ee)}function de(Re,Ee,De,We){var Tt=De.type;return Tt===C?Xe(Re,Ee,De.props.children,We,De.key):Ee!==null&&(Ee.elementType===Tt||typeof Tt=="object"&&Tt!==null&&Tt.$$typeof===ie&&Oi(Tt)===Ee.type)?(Ee=A(Ee,De.props),zp(Ee,De),Ee.return=Re,Ee):(Ee=hn(De.type,De.key,De.props,null,Re.mode,We),zp(Ee,De),Ee.return=Re,Ee)}function ke(Re,Ee,De,We){return Ee===null||Ee.tag!==4||Ee.stateNode.containerInfo!==De.containerInfo||Ee.stateNode.implementation!==De.implementation?(Ee=sd(De,Re.mode,We),Ee.return=Re,Ee):(Ee=A(Ee,De.children||[]),Ee.return=Re,Ee)}function Xe(Re,Ee,De,We,Tt){return Ee===null||Ee.tag!==7?(Ee=it(De,Re.mode,We,Tt),Ee.return=Re,Ee):(Ee=A(Ee,De),Ee.return=Re,Ee)}function Ze(Re,Ee,De){if(typeof Ee=="string"&&Ee!==""||typeof Ee=="number"||typeof Ee=="bigint")return Ee=Ru(""+Ee,Re.mode,De),Ee.return=Re,Ee;if(typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case w:return De=hn(Ee.type,Ee.key,Ee.props,null,Re.mode,De),zp(De,Ee),De.return=Re,De;case T:return Ee=sd(Ee,Re.mode,De),Ee.return=Re,Ee;case ie:var We=Ee._init;return Ee=We(Ee._payload),Ze(Re,Ee,De)}if(ae(Ee)||V(Ee))return Ee=it(Ee,Re.mode,De,null),Ee.return=Re,Ee;if(typeof Ee.then=="function")return Ze(Re,Np(Ee),De);if(Ee.$$typeof===P)return Ze(Re,pd(Re,Ee),De);Md(Re,Ee)}return null}function _e(Re,Ee,De,We){var Tt=Ee!==null?Ee.key:null;if(typeof De=="string"&&De!==""||typeof De=="number"||typeof De=="bigint")return Tt!==null?null:J(Re,Ee,""+De,We);if(typeof De=="object"&&De!==null){switch(De.$$typeof){case w:return De.key===Tt?de(Re,Ee,De,We):null;case T:return De.key===Tt?ke(Re,Ee,De,We):null;case ie:return Tt=De._init,De=Tt(De._payload),_e(Re,Ee,De,We)}if(ae(De)||V(De))return Tt!==null?null:Xe(Re,Ee,De,We,null);if(typeof De.then=="function")return _e(Re,Ee,Np(De),We);if(De.$$typeof===P)return _e(Re,Ee,pd(Re,De),We);Md(Re,De)}return null}function Pe(Re,Ee,De,We,Tt){if(typeof We=="string"&&We!==""||typeof We=="number"||typeof We=="bigint")return Re=Re.get(De)||null,J(Ee,Re,""+We,Tt);if(typeof We=="object"&&We!==null){switch(We.$$typeof){case w:return Re=Re.get(We.key===null?De:We.key)||null,de(Ee,Re,We,Tt);case T:return Re=Re.get(We.key===null?De:We.key)||null,ke(Ee,Re,We,Tt);case ie:var gn=We._init;return We=gn(We._payload),Pe(Re,Ee,De,We,Tt)}if(ae(We)||V(We))return Re=Re.get(De)||null,Xe(Ee,Re,We,Tt,null);if(typeof We.then=="function")return Pe(Re,Ee,De,Np(We),Tt);if(We.$$typeof===P)return Pe(Re,Ee,De,pd(Ee,We),Tt);Md(Ee,We)}return null}function Vt(Re,Ee,De,We){for(var Tt=null,gn=null,kt=Ee,jt=Ee=0,Ca=null;kt!==null&&jt<De.length;jt++){kt.index>jt?(Ca=kt,kt=null):Ca=kt.sibling;var Pn=_e(Re,kt,De[jt],We);if(Pn===null){kt===null&&(kt=Ca);break}l&&kt&&Pn.alternate===null&&c(Re,kt),Ee=O(Pn,Ee,jt),gn===null?Tt=Pn:gn.sibling=Pn,gn=Pn,kt=Ca}if(jt===De.length)return h(Re,kt),mn&&ta(Re,jt),Tt;if(kt===null){for(;jt<De.length;jt++)kt=Ze(Re,De[jt],We),kt!==null&&(Ee=O(kt,Ee,jt),gn===null?Tt=kt:gn.sibling=kt,gn=kt);return mn&&ta(Re,jt),Tt}for(kt=v(kt);jt<De.length;jt++)Ca=Pe(kt,Re,jt,De[jt],We),Ca!==null&&(l&&Ca.alternate!==null&&kt.delete(Ca.key===null?jt:Ca.key),Ee=O(Ca,Ee,jt),gn===null?Tt=Ca:gn.sibling=Ca,gn=Ca);return l&&kt.forEach(function(Gl){return c(Re,Gl)}),mn&&ta(Re,jt),Tt}function _t(Re,Ee,De,We){if(De==null)throw Error(a(151));for(var Tt=null,gn=null,kt=Ee,jt=Ee=0,Ca=null,Pn=De.next();kt!==null&&!Pn.done;jt++,Pn=De.next()){kt.index>jt?(Ca=kt,kt=null):Ca=kt.sibling;var Gl=_e(Re,kt,Pn.value,We);if(Gl===null){kt===null&&(kt=Ca);break}l&&kt&&Gl.alternate===null&&c(Re,kt),Ee=O(Gl,Ee,jt),gn===null?Tt=Gl:gn.sibling=Gl,gn=Gl,kt=Ca}if(Pn.done)return h(Re,kt),mn&&ta(Re,jt),Tt;if(kt===null){for(;!Pn.done;jt++,Pn=De.next())Pn=Ze(Re,Pn.value,We),Pn!==null&&(Ee=O(Pn,Ee,jt),gn===null?Tt=Pn:gn.sibling=Pn,gn=Pn);return mn&&ta(Re,jt),Tt}for(kt=v(kt);!Pn.done;jt++,Pn=De.next())Pn=Pe(kt,Re,jt,Pn.value,We),Pn!==null&&(l&&Pn.alternate!==null&&kt.delete(Pn.key===null?jt:Pn.key),Ee=O(Pn,Ee,jt),gn===null?Tt=Pn:gn.sibling=Pn,gn=Pn);return l&&kt.forEach(function(VT){return c(Re,VT)}),mn&&ta(Re,jt),Tt}function qn(Re,Ee,De,We){if(typeof De=="object"&&De!==null&&De.type===C&&De.key===null&&(De=De.props.children),typeof De=="object"&&De!==null){switch(De.$$typeof){case w:e:{for(var Tt=De.key;Ee!==null;){if(Ee.key===Tt){if(Tt=De.type,Tt===C){if(Ee.tag===7){h(Re,Ee.sibling),We=A(Ee,De.props.children),We.return=Re,Re=We;break e}}else if(Ee.elementType===Tt||typeof Tt=="object"&&Tt!==null&&Tt.$$typeof===ie&&Oi(Tt)===Ee.type){h(Re,Ee.sibling),We=A(Ee,De.props),zp(We,De),We.return=Re,Re=We;break e}h(Re,Ee);break}else c(Re,Ee);Ee=Ee.sibling}De.type===C?(We=it(De.props.children,Re.mode,We,De.key),We.return=Re,Re=We):(We=hn(De.type,De.key,De.props,null,Re.mode,We),zp(We,De),We.return=Re,Re=We)}return j(Re);case T:e:{for(Tt=De.key;Ee!==null;){if(Ee.key===Tt)if(Ee.tag===4&&Ee.stateNode.containerInfo===De.containerInfo&&Ee.stateNode.implementation===De.implementation){h(Re,Ee.sibling),We=A(Ee,De.children||[]),We.return=Re,Re=We;break e}else{h(Re,Ee);break}else c(Re,Ee);Ee=Ee.sibling}We=sd(De,Re.mode,We),We.return=Re,Re=We}return j(Re);case ie:return Tt=De._init,De=Tt(De._payload),qn(Re,Ee,De,We)}if(ae(De))return Vt(Re,Ee,De,We);if(V(De)){if(Tt=V(De),typeof Tt!="function")throw Error(a(150));return De=Tt.call(De),_t(Re,Ee,De,We)}if(typeof De.then=="function")return qn(Re,Ee,Np(De),We);if(De.$$typeof===P)return qn(Re,Ee,pd(Re,De),We);Md(Re,De)}return typeof De=="string"&&De!==""||typeof De=="number"||typeof De=="bigint"?(De=""+De,Ee!==null&&Ee.tag===6?(h(Re,Ee.sibling),We=A(Ee,De),We.return=Re,Re=We):(h(Re,Ee),We=Ru(De,Re.mode,We),We.return=Re,Re=We),j(Re)):h(Re,Ee)}return function(Re,Ee,De,We){try{Rd=0;var Tt=qn(Re,Ee,De,We);return Ci=null,Tt}catch(kt){if(kt===Fc||kt===vd)throw kt;var gn=xi(29,kt,null,Re.mode);return gn.lanes=We,gn.return=Re,gn}finally{}}}var Sa=Sb(!0),Eb=Sb(!1),ra=q(null),tl=null;function Ri(l){var c=l.alternate;H(Yr,Yr.current&1),H(ra,l),tl===null&&(c===null||Ts.current!==null||c.memoizedState!==null)&&(tl=l)}function Tb(l){if(l.tag===22){if(H(Yr,Yr.current),H(ra,l),tl===null){var c=l.alternate;c!==null&&c.memoizedState!==null&&(tl=l)}}else Ha()}function Ha(){H(Yr,Yr.current),H(ra,ra.current)}function nl(l){se(ra),tl===l&&(tl=null),se(Yr)}var Yr=q(0);function Xi(l){for(var c=l;c!==null;){if(c.tag===13){var h=c.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||h.data==="$?"||u4(h)))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===l)break;for(;c.sibling===null;){if(c.return===null||c.return===l)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}function g1(l,c,h,v){c=l.memoizedState,h=h(v,c),h=h==null?c:x({},c,h),l.memoizedState=h,l.lanes===0&&(l.updateQueue.baseState=h)}var Lu={enqueueSetState:function(l,c,h){l=l._reactInternals;var v=Zi(),A=Es(v);A.payload=c,h!=null&&(A.callback=h),c=Ti(l,A,v),c!==null&&(Ni(c,l,v),Yc(c,l,v))},enqueueReplaceState:function(l,c,h){l=l._reactInternals;var v=Zi(),A=Es(v);A.tag=1,A.payload=c,h!=null&&(A.callback=h),c=Ti(l,A,v),c!==null&&(Ni(c,l,v),Yc(c,l,v))},enqueueForceUpdate:function(l,c){l=l._reactInternals;var h=Zi(),v=Es(h);v.tag=2,c!=null&&(v.callback=c),c=Ti(l,v,h),c!==null&&(Ni(c,l,h),Yc(c,l,h))}};function wb(l,c,h,v,A,O,j){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(v,O,j):c.prototype&&c.prototype.isPureReactComponent?!hs(h,v)||!hs(A,O):!0}function kd(l,c,h,v){l=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(h,v),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(h,v),c.state!==l&&Lu.enqueueReplaceState(c,c.state,null)}function wo(l,c){var h=c;if("ref"in c){h={};for(var v in c)v!=="ref"&&(h[v]=c[v])}if(l=l.defaultProps){h===c&&(h=x({},h));for(var A in l)h[A]===void 0&&(h[A]=l[A])}return h}var Lp=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var c=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(c))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)};function Ab(l){Lp(l)}function Dd(l){console.error(l)}function Cb(l){Lp(l)}function ef(l,c){try{var h=l.onUncaughtError;h(c.value,{componentStack:c.stack})}catch(v){setTimeout(function(){throw v})}}function Ob(l,c,h){try{var v=l.onCaughtError;v(h.value,{componentStack:h.stack,errorBoundary:c.tag===1?c.stateNode:null})}catch(A){setTimeout(function(){throw A})}}function y1(l,c,h){return h=Es(h),h.tag=3,h.payload={element:null},h.callback=function(){ef(l,c)},h}function i6(l){return l=Es(l),l.tag=3,l}function Rb(l,c,h,v){var A=h.type.getDerivedStateFromError;if(typeof A=="function"){var O=v.value;l.payload=function(){return A(O)},l.callback=function(){Ob(c,h,v)}}var j=h.stateNode;j!==null&&typeof j.componentDidCatch=="function"&&(l.callback=function(){Ob(c,h,v),typeof A!="function"&&(Bl===null?Bl=new Set([this]):Bl.add(this));var J=v.stack;this.componentDidCatch(v.value,{componentStack:J!==null?J:""})})}function Wi(l,c,h,v,A){if(h.flags|=32768,v!==null&&typeof v=="object"&&typeof v.then=="function"){if(c=h.alternate,c!==null&&dp(c,h,A,!0),h=ra.current,h!==null){switch(h.tag){case 13:return tl===null?Fu():h.alternate===null&&Vr===0&&(Vr=3),h.flags&=-257,h.flags|=65536,h.lanes=A,v===Zm?h.flags|=16384:(c=h.updateQueue,c===null?h.updateQueue=new Set([v]):c.add(v),Hp(l,v,A)),!1;case 22:return h.flags|=65536,v===Zm?h.flags|=16384:(c=h.updateQueue,c===null?(c={transitions:null,markerInstances:null,retryQueue:new Set([v])},h.updateQueue=c):(h=c.retryQueue,h===null?c.retryQueue=new Set([v]):h.add(v)),Hp(l,v,A)),!1}throw Error(a(435,h.tag))}return Hp(l,v,A),Fu(),!1}if(mn)return c=ra.current,c!==null?((c.flags&65536)===0&&(c.flags|=256),c.flags|=65536,c.lanes=A,v!==cp&&(l=Error(a(422),{cause:v}),dd(Fi(l,h)))):(v!==cp&&(c=Error(a(423),{cause:v}),dd(Fi(c,h))),l=l.current.alternate,l.flags|=65536,A&=-A,l.lanes|=A,v=Fi(v,h),A=y1(l.stateNode,v,A),vp(l,A),Vr!==4&&(Vr=2)),!1;var O=Error(a(520),{cause:v});if(O=Fi(O,h),Up===null?Up=[O]:Up.push(O),Vr!==4&&(Vr=2),c===null)return!0;v=Fi(v,h),h=c;do{switch(h.tag){case 3:return h.flags|=65536,l=A&-A,h.lanes|=l,l=y1(h.stateNode,v,l),vp(h,l),!1;case 1:if(c=h.type,O=h.stateNode,(h.flags&128)===0&&(typeof c.getDerivedStateFromError=="function"||O!==null&&typeof O.componentDidCatch=="function"&&(Bl===null||!Bl.has(O))))return h.flags|=65536,A&=-A,h.lanes|=A,A=i6(A),Rb(A,l,h,v),vp(h,A),!1}h=h.return}while(h!==null);return!1}var Mb=Error(a(461)),wn=!1;function Ea(l,c,h,v){c.child=l===null?Eb(c,null,h,v):Sa(c,l.child,h,v)}function kb(l,c,h,v,A){h=h.render;var O=c.ref;if("ref"in v){var j={};for(var J in v)J!=="ref"&&(j[J]=v[J])}else j=v;return ku(c),v=r1(l,c,h,j,O,A),J=a1(),l!==null&&!wn?(i1(l,c,A),rl(l,c,A)):(mn&&J&&up(c),c.flags|=1,Ea(l,c,v,A),c.child)}function o6(l,c,h,v,A){if(l===null){var O=h.type;return typeof O=="function"&&!Gm(O)&&O.defaultProps===void 0&&h.compare===null?(c.tag=15,c.type=O,As(l,c,O,v,A)):(l=hn(h.type,null,v,c,c.mode,A),l.ref=c.ref,l.return=c,c.child=l)}if(O=l.child,!T1(l,A)){var j=O.memoizedProps;if(h=h.compare,h=h!==null?h:hs,h(j,v)&&l.ref===c.ref)return rl(l,c,A)}return c.flags|=1,l=Yo(O,v),l.ref=c.ref,l.return=c,c.child=l}function As(l,c,h,v,A){if(l!==null){var O=l.memoizedProps;if(hs(O,v)&&l.ref===c.ref)if(wn=!1,c.pendingProps=v=O,T1(l,A))(l.flags&131072)!==0&&(wn=!0);else return c.lanes=l.lanes,rl(l,c,A)}return b1(l,c,h,v,A)}function tf(l,c,h){var v=c.pendingProps,A=v.children,O=l!==null?l.memoizedState:null;if(v.mode==="hidden"){if((c.flags&128)!==0){if(v=O!==null?O.baseLanes|h:h,l!==null){for(A=c.child=l.child,O=0;A!==null;)O=O|A.lanes|A.childLanes,A=A.sibling;c.childLanes=O&~v}else c.childLanes=0,c.child=null;return v1(l,c,v,h)}if((h&536870912)!==0)c.memoizedState={baseLanes:0,cachePool:null},l!==null&&yd(c,O!==null?O.cachePool:null),O!==null?tb(c,O):ca(),Tb(c);else return c.lanes=c.childLanes=536870912,v1(l,c,O!==null?O.baseLanes|h:h,h)}else O!==null?(yd(c,O.cachePool),tb(c,O),Ha(),c.memoizedState=null):(l!==null&&yd(c,null),ca(),Ha());return Ea(l,c,A,h),c.child}function v1(l,c,h,v){var A=gd();return A=A===null?null:{parent:na._currentValue,pool:A},c.memoizedState={baseLanes:h,cachePool:A},l!==null&&yd(c,null),ca(),Tb(c),l!==null&&dp(l,c,v,!0),null}function Cs(l,c){var h=c.ref;if(h===null)l!==null&&l.ref!==null&&(c.flags|=4194816);else{if(typeof h!="function"&&typeof h!="object")throw Error(a(284));(l===null||l.ref!==h)&&(c.flags|=4194816)}}function b1(l,c,h,v,A){return ku(c),h=r1(l,c,h,v,void 0,A),v=a1(),l!==null&&!wn?(i1(l,c,A),rl(l,c,A)):(mn&&v&&up(c),c.flags|=1,Ea(l,c,h,A),c.child)}function Db(l,c,h,v,A,O){return ku(c),c.updateQueue=null,h=Nu(c,v,h,A),nb(l),v=a1(),l!==null&&!wn?(i1(l,c,O),rl(l,c,O)):(mn&&v&&up(c),c.flags|=1,Ea(l,c,h,O),c.child)}function _b(l,c,h,v,A){if(ku(c),c.stateNode===null){var O=qc,j=h.contextType;typeof j=="object"&&j!==null&&(O=_a(j)),O=new h(v,O),c.memoizedState=O.state!==null&&O.state!==void 0?O.state:null,O.updater=Lu,c.stateNode=O,O._reactInternals=c,O=c.stateNode,O.props=v,O.state=c.memoizedState,O.refs={},yp(c),j=h.contextType,O.context=typeof j=="object"&&j!==null?_a(j):qc,O.state=c.memoizedState,j=h.getDerivedStateFromProps,typeof j=="function"&&(g1(c,h,j,v),O.state=c.memoizedState),typeof h.getDerivedStateFromProps=="function"||typeof O.getSnapshotBeforeUpdate=="function"||typeof O.UNSAFE_componentWillMount!="function"&&typeof O.componentWillMount!="function"||(j=O.state,typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount(),j!==O.state&&Lu.enqueueReplaceState(O,O.state,null),Sd(c,v,O,A),bp(),O.state=c.memoizedState),typeof O.componentDidMount=="function"&&(c.flags|=4194308),v=!0}else if(l===null){O=c.stateNode;var J=c.memoizedProps,de=wo(h,J);O.props=de;var ke=O.context,Xe=h.contextType;j=qc,typeof Xe=="object"&&Xe!==null&&(j=_a(Xe));var Ze=h.getDerivedStateFromProps;Xe=typeof Ze=="function"||typeof O.getSnapshotBeforeUpdate=="function",J=c.pendingProps!==J,Xe||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(J||ke!==j)&&kd(c,O,v,j),Ss=!1;var _e=c.memoizedState;O.state=_e,Sd(c,v,O,A),bp(),ke=c.memoizedState,J||_e!==ke||Ss?(typeof Ze=="function"&&(g1(c,h,Ze,v),ke=c.memoizedState),(de=Ss||wb(c,h,de,v,_e,ke,j))?(Xe||typeof O.UNSAFE_componentWillMount!="function"&&typeof O.componentWillMount!="function"||(typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount()),typeof O.componentDidMount=="function"&&(c.flags|=4194308)):(typeof O.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=v,c.memoizedState=ke),O.props=v,O.state=ke,O.context=j,v=de):(typeof O.componentDidMount=="function"&&(c.flags|=4194308),v=!1)}else{O=c.stateNode,e1(l,c),j=c.memoizedProps,Xe=wo(h,j),O.props=Xe,Ze=c.pendingProps,_e=O.context,ke=h.contextType,de=qc,typeof ke=="object"&&ke!==null&&(de=_a(ke)),J=h.getDerivedStateFromProps,(ke=typeof J=="function"||typeof O.getSnapshotBeforeUpdate=="function")||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(j!==Ze||_e!==de)&&kd(c,O,v,de),Ss=!1,_e=c.memoizedState,O.state=_e,Sd(c,v,O,A),bp();var Pe=c.memoizedState;j!==Ze||_e!==Pe||Ss||l!==null&&l.dependencies!==null&&pp(l.dependencies)?(typeof J=="function"&&(g1(c,h,J,v),Pe=c.memoizedState),(Xe=Ss||wb(c,h,Xe,v,_e,Pe,de)||l!==null&&l.dependencies!==null&&pp(l.dependencies))?(ke||typeof O.UNSAFE_componentWillUpdate!="function"&&typeof O.componentWillUpdate!="function"||(typeof O.componentWillUpdate=="function"&&O.componentWillUpdate(v,Pe,de),typeof O.UNSAFE_componentWillUpdate=="function"&&O.UNSAFE_componentWillUpdate(v,Pe,de)),typeof O.componentDidUpdate=="function"&&(c.flags|=4),typeof O.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof O.componentDidUpdate!="function"||j===l.memoizedProps&&_e===l.memoizedState||(c.flags|=4),typeof O.getSnapshotBeforeUpdate!="function"||j===l.memoizedProps&&_e===l.memoizedState||(c.flags|=1024),c.memoizedProps=v,c.memoizedState=Pe),O.props=v,O.state=Pe,O.context=de,v=Xe):(typeof O.componentDidUpdate!="function"||j===l.memoizedProps&&_e===l.memoizedState||(c.flags|=4),typeof O.getSnapshotBeforeUpdate!="function"||j===l.memoizedProps&&_e===l.memoizedState||(c.flags|=1024),v=!1)}return O=v,Cs(l,c),v=(c.flags&128)!==0,O||v?(O=c.stateNode,h=v&&typeof h.getDerivedStateFromError!="function"?null:O.render(),c.flags|=1,l!==null&&v?(c.child=Sa(c,l.child,null,A),c.child=Sa(c,null,h,A)):Ea(l,c,h,A),c.memoizedState=O.state,l=c.child):l=rl(l,c,A),l}function x1(l,c,h,v){return fd(),c.flags|=256,Ea(l,c,h,v),c.child}var Ip={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function S1(l){return{baseLanes:l,cachePool:mp()}}function Nb(l,c,h){return l=l!==null?l.childLanes&~h:0,c&&(l|=da),l}function l6(l,c,h){var v=c.pendingProps,A=!1,O=(c.flags&128)!==0,j;if((j=O)||(j=l!==null&&l.memoizedState===null?!1:(Yr.current&2)!==0),j&&(A=!0,c.flags&=-129),j=(c.flags&32)!==0,c.flags&=-33,l===null){if(mn){if(A?Ri(c):Ha(),mn){var J=tr,de;if(de=J){e:{for(de=J,J=ti;de.nodeType!==8;){if(!J){J=null;break e}if(de=ul(de.nextSibling),de===null){J=null;break e}}J=de}J!==null?(c.memoizedState={dehydrated:J,treeContext:ys!==null?{id:Xo,overflow:Wo}:null,retryLane:536870912,hydrationErrors:null},de=xi(18,null,null,0),de.stateNode=J,de.return=c,c.child=de,Ir=c,tr=null,de=!0):de=!1}de||Qo(c)}if(J=c.memoizedState,J!==null&&(J=J.dehydrated,J!==null))return u4(J)?c.lanes=32:c.lanes=536870912,null;nl(c)}return J=v.children,v=v.fallback,A?(Ha(),A=c.mode,J=Bp({mode:"hidden",children:J},A),v=it(v,A,h,null),J.return=c,v.return=c,J.sibling=v,c.child=J,A=c.child,A.memoizedState=S1(h),A.childLanes=Nb(l,j,h),c.memoizedState=Ip,v):(Ri(c),E1(c,J))}if(de=l.memoizedState,de!==null&&(J=de.dehydrated,J!==null)){if(O)c.flags&256?(Ri(c),c.flags&=-257,c=zb(l,c,h)):c.memoizedState!==null?(Ha(),c.child=l.child,c.flags|=128,c=null):(Ha(),A=v.fallback,J=c.mode,v=Bp({mode:"visible",children:v.children},J),A=it(A,J,h,null),A.flags|=2,v.return=c,A.return=c,v.sibling=A,c.child=v,Sa(c,l.child,null,h),v=c.child,v.memoizedState=S1(h),v.childLanes=Nb(l,j,h),c.memoizedState=Ip,c=A);else if(Ri(c),u4(J)){if(j=J.nextSibling&&J.nextSibling.dataset,j)var ke=j.dgst;j=ke,v=Error(a(419)),v.stack="",v.digest=j,dd({value:v,source:null,stack:null}),c=zb(l,c,h)}else if(wn||dp(l,c,h,!1),j=(h&l.childLanes)!==0,wn||j){if(j=rr,j!==null&&(v=h&-h,v=(v&42)!==0?1:zt(v),v=(v&(j.suspendedLanes|h))!==0?0:v,v!==0&&v!==de.retryLane))throw de.retryLane=v,gs(l,v),Ni(j,l,v),Mb;J.data==="$?"||Fu(),c=zb(l,c,h)}else J.data==="$?"?(c.flags|=192,c.child=l.child,c=null):(l=de.treeContext,tr=ul(J.nextSibling),Ir=c,mn=!0,vs=null,ti=!1,l!==null&&(Si[xo++]=Xo,Si[xo++]=Wo,Si[xo++]=ys,Xo=l.id,Wo=l.overflow,ys=c),c=E1(c,v.children),c.flags|=4096);return c}return A?(Ha(),A=v.fallback,J=c.mode,de=l.child,ke=de.sibling,v=Yo(de,{mode:"hidden",children:v.children}),v.subtreeFlags=de.subtreeFlags&65011712,ke!==null?A=Yo(ke,A):(A=it(A,J,h,null),A.flags|=2),A.return=c,v.return=c,v.sibling=A,c.child=v,v=A,A=c.child,J=l.child.memoizedState,J===null?J=S1(h):(de=J.cachePool,de!==null?(ke=na._currentValue,de=de.parent!==ke?{parent:ke,pool:ke}:de):de=mp(),J={baseLanes:J.baseLanes|h,cachePool:de}),A.memoizedState=J,A.childLanes=Nb(l,j,h),c.memoizedState=Ip,v):(Ri(c),h=l.child,l=h.sibling,h=Yo(h,{mode:"visible",children:v.children}),h.return=c,h.sibling=null,l!==null&&(j=c.deletions,j===null?(c.deletions=[l],c.flags|=16):j.push(l)),c.child=h,c.memoizedState=null,h)}function E1(l,c){return c=Bp({mode:"visible",children:c},l.mode),c.return=l,l.child=c}function Bp(l,c){return l=xi(22,l,null,c),l.lanes=0,l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},l}function zb(l,c,h){return Sa(c,l.child,null,h),l=E1(c,c.pendingProps.children),l.flags|=2,c.memoizedState=null,l}function nf(l,c,h){l.lanes|=c;var v=l.alternate;v!==null&&(v.lanes|=c),Wm(l.return,c,h)}function _d(l,c,h,v,A){var O=l.memoizedState;O===null?l.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:v,tail:h,tailMode:A}:(O.isBackwards=c,O.rendering=null,O.renderingStartTime=0,O.last=v,O.tail=h,O.tailMode=A)}function Lb(l,c,h){var v=c.pendingProps,A=v.revealOrder,O=v.tail;if(Ea(l,c,v.children,h),v=Yr.current,(v&2)!==0)v=v&1|2,c.flags|=128;else{if(l!==null&&(l.flags&128)!==0)e:for(l=c.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&nf(l,h,c);else if(l.tag===19)nf(l,h,c);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===c)break e;for(;l.sibling===null;){if(l.return===null||l.return===c)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}v&=1}switch(H(Yr,v),A){case"forwards":for(h=c.child,A=null;h!==null;)l=h.alternate,l!==null&&Xi(l)===null&&(A=h),h=h.sibling;h=A,h===null?(A=c.child,c.child=null):(A=h.sibling,h.sibling=null),_d(c,!1,A,h,O);break;case"backwards":for(h=null,A=c.child,c.child=null;A!==null;){if(l=A.alternate,l!==null&&Xi(l)===null){c.child=A;break}l=A.sibling,A.sibling=h,h=A,A=l}_d(c,!0,h,null,O);break;case"together":_d(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function rl(l,c,h){if(l!==null&&(c.dependencies=l.dependencies),ju|=c.lanes,(h&c.childLanes)===0)if(l!==null){if(dp(l,c,h,!1),(h&c.childLanes)===0)return null}else return null;if(l!==null&&c.child!==l.child)throw Error(a(153));if(c.child!==null){for(l=c.child,h=Yo(l,l.pendingProps),c.child=h,h.return=c;l.sibling!==null;)l=l.sibling,h=h.sibling=Yo(l,l.pendingProps),h.return=c;h.sibling=null}return c.child}function T1(l,c){return(l.lanes&c)!==0?!0:(l=l.dependencies,!!(l!==null&&pp(l)))}function s6(l,c,h){switch(c.tag){case 3:He(c,c.stateNode.containerInfo),_l(c,na,l.memoizedState.cache),fd();break;case 27:case 5:Fe(c);break;case 4:He(c,c.stateNode.containerInfo);break;case 10:_l(c,c.type,c.memoizedProps.value);break;case 13:var v=c.memoizedState;if(v!==null)return v.dehydrated!==null?(Ri(c),c.flags|=128,null):(h&c.child.childLanes)!==0?l6(l,c,h):(Ri(c),l=rl(l,c,h),l!==null?l.sibling:null);Ri(c);break;case 19:var A=(l.flags&128)!==0;if(v=(h&c.childLanes)!==0,v||(dp(l,c,h,!1),v=(h&c.childLanes)!==0),A){if(v)return Lb(l,c,h);c.flags|=128}if(A=c.memoizedState,A!==null&&(A.rendering=null,A.tail=null,A.lastEffect=null),H(Yr,Yr.current),v)break;return null;case 22:case 23:return c.lanes=0,tf(l,c,h);case 24:_l(c,na,l.memoizedState.cache)}return rl(l,c,h)}function Ib(l,c,h){if(l!==null)if(l.memoizedProps!==c.pendingProps)wn=!0;else{if(!T1(l,h)&&(c.flags&128)===0)return wn=!1,s6(l,c,h);wn=(l.flags&131072)!==0}else wn=!1,mn&&(c.flags&1048576)!==0&&Gn(c,sp,c.index);switch(c.lanes=0,c.tag){case 16:e:{l=c.pendingProps;var v=c.elementType,A=v._init;if(v=A(v._payload),c.type=v,typeof v=="function")Gm(v)?(l=wo(v,l),c.tag=1,c=_b(null,c,v,l,h)):(c.tag=0,c=b1(null,c,v,l,h));else{if(v!=null){if(A=v.$$typeof,A===B){c.tag=11,c=kb(null,c,v,l,h);break e}else if(A===X){c.tag=14,c=o6(null,c,v,l,h);break e}}throw c=Y(v)||v,Error(a(306,c,""))}}return c;case 0:return b1(l,c,c.type,c.pendingProps,h);case 1:return v=c.type,A=wo(v,c.pendingProps),_b(l,c,v,A,h);case 3:e:{if(He(c,c.stateNode.containerInfo),l===null)throw Error(a(387));v=c.pendingProps;var O=c.memoizedState;A=O.element,e1(l,c),Sd(c,v,null,h);var j=c.memoizedState;if(v=j.cache,_l(c,na,v),v!==O.cache&&Qm(c,[na],h,!0),bp(),v=j.element,O.isDehydrated)if(O={element:v,isDehydrated:!1,cache:j.cache},c.updateQueue.baseState=O,c.memoizedState=O,c.flags&256){c=x1(l,c,v,h);break e}else if(v!==A){A=Fi(Error(a(424)),c),dd(A),c=x1(l,c,v,h);break e}else{switch(l=c.stateNode.containerInfo,l.nodeType){case 9:l=l.body;break;default:l=l.nodeName==="HTML"?l.ownerDocument.body:l}for(tr=ul(l.firstChild),Ir=c,mn=!0,vs=null,ti=!0,h=Eb(c,null,v,h),c.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling}else{if(fd(),v===A){c=rl(l,c,h);break e}Ea(l,c,v,h)}c=c.child}return c;case 26:return Cs(l,c),l===null?(h=K1(c.type,null,c.pendingProps,null))?c.memoizedState=h:mn||(h=c.type,l=c.pendingProps,v=Yd(Ce.current).createElement(h),v[ur]=c,v[Ua]=l,Ie(v,h,l),Fr(v),c.stateNode=v):c.memoizedState=K1(c.type,l.memoizedProps,c.pendingProps,l.memoizedState),null;case 27:return Fe(c),l===null&&mn&&(v=c.stateNode=La(c.type,c.pendingProps,Ce.current),Ir=c,ti=!0,A=tr,za(c.type)?(f4=A,tr=ul(v.firstChild)):tr=A),Ea(l,c,c.pendingProps.children,h),Cs(l,c),l===null&&(c.flags|=4194304),c.child;case 5:return l===null&&mn&&((A=v=tr)&&(v=s4(v,c.type,c.pendingProps,ti),v!==null?(c.stateNode=v,Ir=c,tr=ul(v.firstChild),ti=!1,A=!0):A=!1),A||Qo(c)),Fe(c),A=c.type,O=c.pendingProps,j=l!==null?l.memoizedProps:null,v=O.children,cf(A,O)?v=null:j!==null&&cf(A,j)&&(c.flags|=32),c.memoizedState!==null&&(A=r1(l,c,Qx,null,null,h),Ia._currentValue=A),Cs(l,c),Ea(l,c,v,h),c.child;case 6:return l===null&&mn&&((l=h=tr)&&(h=Xd(h,c.pendingProps,ti),h!==null?(c.stateNode=h,Ir=c,tr=null,l=!0):l=!1),l||Qo(c)),null;case 13:return l6(l,c,h);case 4:return He(c,c.stateNode.containerInfo),v=c.pendingProps,l===null?c.child=Sa(c,null,v,h):Ea(l,c,v,h),c.child;case 11:return kb(l,c,c.type,c.pendingProps,h);case 7:return Ea(l,c,c.pendingProps,h),c.child;case 8:return Ea(l,c,c.pendingProps.children,h),c.child;case 12:return Ea(l,c,c.pendingProps.children,h),c.child;case 10:return v=c.pendingProps,_l(c,c.type,v.value),Ea(l,c,v.children,h),c.child;case 9:return A=c.type._context,v=c.pendingProps.children,ku(c),A=_a(A),v=v(A),c.flags|=1,Ea(l,c,v,h),c.child;case 14:return o6(l,c,c.type,c.pendingProps,h);case 15:return As(l,c,c.type,c.pendingProps,h);case 19:return Lb(l,c,h);case 31:return v=c.pendingProps,h=c.mode,v={mode:v.mode,children:v.children},l===null?(h=Bp(v,h),h.ref=c.ref,c.child=h,h.return=c,c=h):(h=Yo(l.child,v),h.ref=c.ref,c.child=h,h.return=c,c=h),c;case 22:return tf(l,c,h);case 24:return ku(c),v=_a(na),l===null?(A=gd(),A===null&&(A=rr,O=Xv(),A.pooledCache=O,O.refCount++,O!==null&&(A.pooledCacheLanes|=h),A=O),c.memoizedState={parent:v,cache:A},yp(c),_l(c,na,A)):((l.lanes&h)!==0&&(e1(l,c),Sd(c,null,null,h),bp()),A=l.memoizedState,O=c.memoizedState,A.parent!==v?(A={parent:v,cache:v},c.memoizedState=A,c.lanes===0&&(c.memoizedState=c.updateQueue.baseState=A),_l(c,na,v)):(v=O.cache,_l(c,na,v),v!==A.cache&&Qm(c,[na],h,!0))),Ea(l,c,c.pendingProps.children,h),c.child;case 29:throw c.pendingProps}throw Error(a(156,c.tag))}function Os(l){l.flags|=4}function Bb(l,c){if(c.type!=="stylesheet"||(c.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!m4(c)){if(c=ra.current,c!==null&&((Ln&4194048)===Ln?tl!==null:(Ln&62914560)!==Ln&&(Ln&536870912)===0||c!==tl))throw xd=Zm,gp;l.flags|=8192}}function Iu(l,c){c!==null&&(l.flags|=4),l.flags&16384&&(c=l.tag!==22?Ve():536870912,l.lanes|=c,Pd|=c)}function Nd(l,c){if(!mn)switch(l.tailMode){case"hidden":c=l.tail;for(var h=null;c!==null;)c.alternate!==null&&(h=c),c=c.sibling;h===null?l.tail=null:h.sibling=null;break;case"collapsed":h=l.tail;for(var v=null;h!==null;)h.alternate!==null&&(v=h),h=h.sibling;v===null?c||l.tail===null?l.tail=null:l.tail.sibling=null:v.sibling=null}}function Cr(l){var c=l.alternate!==null&&l.alternate.child===l.child,h=0,v=0;if(c)for(var A=l.child;A!==null;)h|=A.lanes|A.childLanes,v|=A.subtreeFlags&65011712,v|=A.flags&65011712,A.return=l,A=A.sibling;else for(A=l.child;A!==null;)h|=A.lanes|A.childLanes,v|=A.subtreeFlags,v|=A.flags,A.return=l,A=A.sibling;return l.subtreeFlags|=v,l.childLanes=h,c}function nr(l,c,h){var v=c.pendingProps;switch(Gc(c),c.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Cr(c),null;case 1:return Cr(c),null;case 3:return h=c.stateNode,v=null,l!==null&&(v=l.memoizedState.cache),c.memoizedState.cache!==v&&(c.flags|=2048),Nl(na),Qe(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(l===null||l.child===null)&&(cd(c)?Os(c):l===null||l.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,Fv())),Cr(c),null;case 26:return h=c.memoizedState,l===null?(Os(c),h!==null?(Cr(c),Bb(c,h)):(Cr(c),c.flags&=-16777217)):h?h!==l.memoizedState?(Os(c),Cr(c),Bb(c,h)):(Cr(c),c.flags&=-16777217):(l.memoizedProps!==v&&Os(c),Cr(c),c.flags&=-16777217),null;case 27:Je(c),h=Ce.current;var A=c.type;if(l!==null&&c.stateNode!=null)l.memoizedProps!==v&&Os(c);else{if(!v){if(c.stateNode===null)throw Error(a(166));return Cr(c),null}l=Me.current,cd(c)?Ym(c):(l=La(A,v,h),c.stateNode=l,Os(c))}return Cr(c),null;case 5:if(Je(c),h=c.type,l!==null&&c.stateNode!=null)l.memoizedProps!==v&&Os(c);else{if(!v){if(c.stateNode===null)throw Error(a(166));return Cr(c),null}if(l=Me.current,cd(c))Ym(c);else{switch(A=Yd(Ce.current),l){case 1:l=A.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:l=A.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":l=A.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":l=A.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":l=A.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild);break;case"select":l=typeof v.is=="string"?A.createElement("select",{is:v.is}):A.createElement("select"),v.multiple?l.multiple=!0:v.size&&(l.size=v.size);break;default:l=typeof v.is=="string"?A.createElement(h,{is:v.is}):A.createElement(h)}}l[ur]=c,l[Ua]=v;e:for(A=c.child;A!==null;){if(A.tag===5||A.tag===6)l.appendChild(A.stateNode);else if(A.tag!==4&&A.tag!==27&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===c)break e;for(;A.sibling===null;){if(A.return===null||A.return===c)break e;A=A.return}A.sibling.return=A.return,A=A.sibling}c.stateNode=l;e:switch(Ie(l,h,v),h){case"button":case"input":case"select":case"textarea":l=!!v.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Os(c)}}return Cr(c),c.flags&=-16777217,null;case 6:if(l&&c.stateNode!=null)l.memoizedProps!==v&&Os(c);else{if(typeof v!="string"&&c.stateNode===null)throw Error(a(166));if(l=Ce.current,cd(c)){if(l=c.stateNode,h=c.memoizedProps,v=null,A=Ir,A!==null)switch(A.tag){case 27:case 5:v=A.memoizedProps}l[ur]=c,l=!!(l.nodeValue===h||v!==null&&v.suppressHydrationWarning===!0||R6(l.nodeValue,h)),l||Qo(c)}else l=Yd(l).createTextNode(v),l[ur]=c,c.stateNode=l}return Cr(c),null;case 13:if(v=c.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(A=cd(c),v!==null&&v.dehydrated!==null){if(l===null){if(!A)throw Error(a(318));if(A=c.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(a(317));A[ur]=c}else fd(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;Cr(c),A=!1}else A=Fv(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=A),A=!0;if(!A)return c.flags&256?(nl(c),c):(nl(c),null)}if(nl(c),(c.flags&128)!==0)return c.lanes=h,c;if(h=v!==null,l=l!==null&&l.memoizedState!==null,h){v=c.child,A=null,v.alternate!==null&&v.alternate.memoizedState!==null&&v.alternate.memoizedState.cachePool!==null&&(A=v.alternate.memoizedState.cachePool.pool);var O=null;v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(O=v.memoizedState.cachePool.pool),O!==A&&(v.flags|=2048)}return h!==l&&h&&(c.child.flags|=8192),Iu(c,c.updateQueue),Cr(c),null;case 4:return Qe(),l===null&&Yp(c.stateNode.containerInfo),Cr(c),null;case 10:return Nl(c.type),Cr(c),null;case 19:if(se(Yr),A=c.memoizedState,A===null)return Cr(c),null;if(v=(c.flags&128)!==0,O=A.rendering,O===null)if(v)Nd(A,!1);else{if(Vr!==0||l!==null&&(l.flags&128)!==0)for(l=c.child;l!==null;){if(O=Xi(l),O!==null){for(c.flags|=128,Nd(A,!1),l=O.updateQueue,c.updateQueue=l,Iu(c,l),c.subtreeFlags=0,l=h,h=c.child;h!==null;)Fm(h,l),h=h.sibling;return H(Yr,Yr.current&1|2),c.child}l=l.sibling}A.tail!==null&&bt()>R1&&(c.flags|=128,v=!0,Nd(A,!1),c.lanes=4194304)}else{if(!v)if(l=Xi(O),l!==null){if(c.flags|=128,v=!0,l=l.updateQueue,c.updateQueue=l,Iu(c,l),Nd(A,!0),A.tail===null&&A.tailMode==="hidden"&&!O.alternate&&!mn)return Cr(c),null}else 2*bt()-A.renderingStartTime>R1&&h!==536870912&&(c.flags|=128,v=!0,Nd(A,!1),c.lanes=4194304);A.isBackwards?(O.sibling=c.child,c.child=O):(l=A.last,l!==null?l.sibling=O:c.child=O,A.last=O)}return A.tail!==null?(c=A.tail,A.rendering=c,A.tail=c.sibling,A.renderingStartTime=bt(),c.sibling=null,l=Yr.current,H(Yr,v?l&1|2:l&1),c):(Cr(c),null);case 22:case 23:return nl(c),Td(),v=c.memoizedState!==null,l!==null?l.memoizedState!==null!==v&&(c.flags|=8192):v&&(c.flags|=8192),v?(h&536870912)!==0&&(c.flags&128)===0&&(Cr(c),c.subtreeFlags&6&&(c.flags|=8192)):Cr(c),h=c.updateQueue,h!==null&&Iu(c,h.retryQueue),h=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),v=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(v=c.memoizedState.cachePool.pool),v!==h&&(c.flags|=2048),l!==null&&se(xs),null;case 24:return h=null,l!==null&&(h=l.memoizedState.cache),c.memoizedState.cache!==h&&(c.flags|=2048),Nl(na),Cr(c),null;case 25:return null;case 30:return null}throw Error(a(156,c.tag))}function Pb(l,c){switch(Gc(c),c.tag){case 1:return l=c.flags,l&65536?(c.flags=l&-65537|128,c):null;case 3:return Nl(na),Qe(),l=c.flags,(l&65536)!==0&&(l&128)===0?(c.flags=l&-65537|128,c):null;case 26:case 27:case 5:return Je(c),null;case 13:if(nl(c),l=c.memoizedState,l!==null&&l.dehydrated!==null){if(c.alternate===null)throw Error(a(340));fd()}return l=c.flags,l&65536?(c.flags=l&-65537|128,c):null;case 19:return se(Yr),null;case 4:return Qe(),null;case 10:return Nl(c.type),null;case 22:case 23:return nl(c),Td(),l!==null&&se(xs),l=c.flags,l&65536?(c.flags=l&-65537|128,c):null;case 24:return Nl(na),null;case 25:return null;default:return null}}function u6(l,c){switch(Gc(c),c.tag){case 3:Nl(na),Qe();break;case 26:case 27:case 5:Je(c);break;case 4:Qe();break;case 13:nl(c);break;case 19:se(Yr);break;case 10:Nl(c.type);break;case 22:case 23:nl(c),Td(),l!==null&&se(xs);break;case 24:Nl(na)}}function zd(l,c){try{var h=c.updateQueue,v=h!==null?h.lastEffect:null;if(v!==null){var A=v.next;h=A;do{if((h.tag&l)===l){v=void 0;var O=h.create,j=h.inst;v=O(),j.destroy=v}h=h.next}while(h!==A)}}catch(J){ar(c,c.return,J)}}function Bu(l,c,h){try{var v=c.updateQueue,A=v!==null?v.lastEffect:null;if(A!==null){var O=A.next;v=O;do{if((v.tag&l)===l){var j=v.inst,J=j.destroy;if(J!==void 0){j.destroy=void 0,A=c;var de=h,ke=J;try{ke()}catch(Xe){ar(A,de,Xe)}}}v=v.next}while(v!==O)}}catch(Xe){ar(c,c.return,Xe)}}function c6(l){var c=l.updateQueue;if(c!==null){var h=l.stateNode;try{t1(c,h)}catch(v){ar(l,l.return,v)}}}function w1(l,c,h){h.props=wo(l.type,l.memoizedProps),h.state=l.memoizedState;try{h.componentWillUnmount()}catch(v){ar(l,c,v)}}function Ld(l,c){try{var h=l.ref;if(h!==null){switch(l.tag){case 26:case 27:case 5:var v=l.stateNode;break;case 30:v=l.stateNode;break;default:v=l.stateNode}typeof h=="function"?l.refCleanup=h(v):h.current=v}}catch(A){ar(l,c,A)}}function al(l,c){var h=l.ref,v=l.refCleanup;if(h!==null)if(typeof v=="function")try{v()}catch(A){ar(l,c,A)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof h=="function")try{h(null)}catch(A){ar(l,c,A)}else h.current=null}function Vb(l){var c=l.type,h=l.memoizedProps,v=l.stateNode;try{e:switch(c){case"button":case"input":case"select":case"textarea":h.autoFocus&&v.focus();break e;case"img":h.src?v.src=h.src:h.srcSet&&(v.srcset=h.srcSet)}}catch(A){ar(l,l.return,A)}}function rf(l,c,h){try{var v=l.stateNode;Hn(v,l.type,h,c),v[Ua]=c}catch(A){ar(l,l.return,A)}}function f6(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27&&za(l.type)||l.tag===4}function Ub(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||f6(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.tag===27&&za(l.type)||l.flags&2||l.child===null||l.tag===4)continue e;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function Ao(l,c,h){var v=l.tag;if(v===5||v===6)l=l.stateNode,c?(h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h).insertBefore(l,c):(c=h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h,c.appendChild(l),h=h._reactRootContainer,h!=null||c.onclick!==null||(c.onclick=Wp));else if(v!==4&&(v===27&&za(l.type)&&(h=l.stateNode,c=null),l=l.child,l!==null))for(Ao(l,c,h),l=l.sibling;l!==null;)Ao(l,c,h),l=l.sibling}function Pu(l,c,h){var v=l.tag;if(v===5||v===6)l=l.stateNode,c?h.insertBefore(l,c):h.appendChild(l);else if(v!==4&&(v===27&&za(l.type)&&(h=l.stateNode),l=l.child,l!==null))for(Pu(l,c,h),l=l.sibling;l!==null;)Pu(l,c,h),l=l.sibling}function d6(l){var c=l.stateNode,h=l.memoizedProps;try{for(var v=l.type,A=c.attributes;A.length;)c.removeAttributeNode(A[0]);Ie(c,v,h),c[ur]=l,c[Ua]=h}catch(O){ar(l,l.return,O)}}var il=!1,Pr=!1,A1=!1,$b=typeof WeakSet=="function"?WeakSet:Set,aa=null;function p6(l,c){if(l=l.containerInfo,o4=rh,l=ip(l),$m(l)){if("selectionStart"in l)var h={start:l.selectionStart,end:l.selectionEnd};else e:{h=(h=l.ownerDocument)&&h.defaultView||window;var v=h.getSelection&&h.getSelection();if(v&&v.rangeCount!==0){h=v.anchorNode;var A=v.anchorOffset,O=v.focusNode;v=v.focusOffset;try{h.nodeType,O.nodeType}catch{h=null;break e}var j=0,J=-1,de=-1,ke=0,Xe=0,Ze=l,_e=null;t:for(;;){for(var Pe;Ze!==h||A!==0&&Ze.nodeType!==3||(J=j+A),Ze!==O||v!==0&&Ze.nodeType!==3||(de=j+v),Ze.nodeType===3&&(j+=Ze.nodeValue.length),(Pe=Ze.firstChild)!==null;)_e=Ze,Ze=Pe;for(;;){if(Ze===l)break t;if(_e===h&&++ke===A&&(J=j),_e===O&&++Xe===v&&(de=j),(Pe=Ze.nextSibling)!==null)break;Ze=_e,_e=Ze.parentNode}Ze=Pe}h=J===-1||de===-1?null:{start:J,end:de}}else h=null}h=h||{start:0,end:0}}else h=null;for(Qp={focusedElem:l,selectionRange:h},rh=!1,aa=c;aa!==null;)if(c=aa,l=c.child,(c.subtreeFlags&1024)!==0&&l!==null)l.return=c,aa=l;else for(;aa!==null;){switch(c=aa,O=c.alternate,l=c.flags,c.tag){case 0:break;case 11:case 15:break;case 1:if((l&1024)!==0&&O!==null){l=void 0,h=c,A=O.memoizedProps,O=O.memoizedState,v=h.stateNode;try{var Vt=wo(h.type,A,h.elementType===h.type);l=v.getSnapshotBeforeUpdate(Vt,O),v.__reactInternalSnapshotBeforeUpdate=l}catch(_t){ar(h,h.return,_t)}}break;case 3:if((l&1024)!==0){if(l=c.stateNode.containerInfo,h=l.nodeType,h===9)Kp(l);else if(h===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":Kp(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((l&1024)!==0)throw Error(a(163))}if(l=c.sibling,l!==null){l.return=c.return,aa=l;break}aa=c.return}}function C1(l,c,h){var v=h.flags;switch(h.tag){case 0:case 11:case 15:Rs(l,h),v&4&&zd(5,h);break;case 1:if(Rs(l,h),v&4)if(l=h.stateNode,c===null)try{l.componentDidMount()}catch(j){ar(h,h.return,j)}else{var A=wo(h.type,c.memoizedProps);c=c.memoizedState;try{l.componentDidUpdate(A,c,l.__reactInternalSnapshotBeforeUpdate)}catch(j){ar(h,h.return,j)}}v&64&&c6(h),v&512&&Ld(h,h.return);break;case 3:if(Rs(l,h),v&64&&(l=h.updateQueue,l!==null)){if(c=null,h.child!==null)switch(h.child.tag){case 27:case 5:c=h.child.stateNode;break;case 1:c=h.child.stateNode}try{t1(l,c)}catch(j){ar(h,h.return,j)}}break;case 27:c===null&&v&4&&d6(h);case 26:case 5:Rs(l,h),c===null&&v&4&&Vb(h),v&512&&Ld(h,h.return);break;case 12:Rs(l,h);break;case 13:Rs(l,h),v&4&&An(l,h),v&64&&(l=h.memoizedState,l!==null&&(l=l.dehydrated,l!==null&&(h=A6.bind(null,h),c4(l,h))));break;case 22:if(v=h.memoizedState!==null||il,!v){c=c!==null&&c.memoizedState!==null||Pr,A=il;var O=Pr;il=v,(Pr=c)&&!O?xr(l,h,(h.subtreeFlags&8772)!==0):Rs(l,h),il=A,Pr=O}break;case 30:break;default:Rs(l,h)}}function jb(l){var c=l.alternate;c!==null&&(l.alternate=null,jb(c)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(c=l.stateNode,c!==null&&Mt(c)),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}var br=null,Mi=!1;function Co(l,c,h){for(h=h.child;h!==null;)Hb(l,c,h),h=h.sibling}function Hb(l,c,h){if(ze&&typeof ze.onCommitFiberUnmount=="function")try{ze.onCommitFiberUnmount(ve,h)}catch{}switch(h.tag){case 26:Pr||al(h,c),Co(l,c,h),h.memoizedState?h.memoizedState.count--:h.stateNode&&(h=h.stateNode,h.parentNode.removeChild(h));break;case 27:Pr||al(h,c);var v=br,A=Mi;za(h.type)&&(br=h.stateNode,Mi=!1),Co(l,c,h),vt(h.stateNode),br=v,Mi=A;break;case 5:Pr||al(h,c);case 6:if(v=br,A=Mi,br=null,Co(l,c,h),br=v,Mi=A,br!==null)if(Mi)try{(br.nodeType===9?br.body:br.nodeName==="HTML"?br.ownerDocument.body:br).removeChild(h.stateNode)}catch(O){ar(h,c,O)}else try{br.removeChild(h.stateNode)}catch(O){ar(h,c,O)}break;case 18:br!==null&&(Mi?(l=br,k6(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,h.stateNode),e0(l)):k6(br,h.stateNode));break;case 4:v=br,A=Mi,br=h.stateNode.containerInfo,Mi=!0,Co(l,c,h),br=v,Mi=A;break;case 0:case 11:case 14:case 15:Pr||Bu(2,h,c),Pr||Bu(4,h,c),Co(l,c,h);break;case 1:Pr||(al(h,c),v=h.stateNode,typeof v.componentWillUnmount=="function"&&w1(h,c,v)),Co(l,c,h);break;case 21:Co(l,c,h);break;case 22:Pr=(v=Pr)||h.memoizedState!==null,Co(l,c,h),Pr=v;break;default:Co(l,c,h)}}function An(l,c){if(c.memoizedState===null&&(l=c.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{e0(l)}catch(h){ar(c,c.return,h)}}function qb(l){switch(l.tag){case 13:case 19:var c=l.stateNode;return c===null&&(c=l.stateNode=new $b),c;case 22:return l=l.stateNode,c=l._retryCache,c===null&&(c=l._retryCache=new $b),c;default:throw Error(a(435,l.tag))}}function Pp(l,c){var h=qb(l);c.forEach(function(v){var A=kT.bind(null,l,v);h.has(v)||(h.add(v),v.then(A,A))})}function ki(l,c){var h=c.deletions;if(h!==null)for(var v=0;v<h.length;v++){var A=h[v],O=l,j=c,J=j;e:for(;J!==null;){switch(J.tag){case 27:if(za(J.type)){br=J.stateNode,Mi=!1;break e}break;case 5:br=J.stateNode,Mi=!1;break e;case 3:case 4:br=J.stateNode.containerInfo,Mi=!0;break e}J=J.return}if(br===null)throw Error(a(160));Hb(O,j,A),br=null,Mi=!1,O=A.alternate,O!==null&&(O.return=null),A.return=null}if(c.subtreeFlags&13878)for(c=c.child;c!==null;)Id(c,l),c=c.sibling}var Qi=null;function Id(l,c){var h=l.alternate,v=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:ki(c,l),qa(l),v&4&&(Bu(3,l,l.return),zd(3,l),Bu(5,l,l.return));break;case 1:ki(c,l),qa(l),v&512&&(Pr||h===null||al(h,h.return)),v&64&&il&&(l=l.updateQueue,l!==null&&(v=l.callbacks,v!==null&&(h=l.shared.hiddenCallbacks,l.shared.hiddenCallbacks=h===null?v:h.concat(v))));break;case 26:var A=Qi;if(ki(c,l),qa(l),v&512&&(Pr||h===null||al(h,h.return)),v&4){var O=h!==null?h.memoizedState:null;if(v=l.memoizedState,h===null)if(v===null)if(l.stateNode===null){e:{v=l.type,h=l.memoizedProps,A=A.ownerDocument||A;t:switch(v){case"title":O=A.getElementsByTagName("title")[0],(!O||O[G0]||O[ur]||O.namespaceURI==="http://www.w3.org/2000/svg"||O.hasAttribute("itemprop"))&&(O=A.createElement(v),A.head.insertBefore(O,A.querySelector("head > title"))),Ie(O,v,h),O[ur]=l,Fr(O),v=O;break e;case"link":var j=Qd("link","href",A).get(v+(h.href||""));if(j){for(var J=0;J<j.length;J++)if(O=j[J],O.getAttribute("href")===(h.href==null||h.href===""?null:h.href)&&O.getAttribute("rel")===(h.rel==null?null:h.rel)&&O.getAttribute("title")===(h.title==null?null:h.title)&&O.getAttribute("crossorigin")===(h.crossOrigin==null?null:h.crossOrigin)){j.splice(J,1);break t}}O=A.createElement(v),Ie(O,v,h),A.head.appendChild(O);break;case"meta":if(j=Qd("meta","content",A).get(v+(h.content||""))){for(J=0;J<j.length;J++)if(O=j[J],O.getAttribute("content")===(h.content==null?null:""+h.content)&&O.getAttribute("name")===(h.name==null?null:h.name)&&O.getAttribute("property")===(h.property==null?null:h.property)&&O.getAttribute("http-equiv")===(h.httpEquiv==null?null:h.httpEquiv)&&O.getAttribute("charset")===(h.charSet==null?null:h.charSet)){j.splice(J,1);break t}}O=A.createElement(v),Ie(O,v,h),A.head.appendChild(O);break;default:throw Error(a(468,v))}O[ur]=l,Fr(O),v=O}l.stateNode=v}else h4(A,l.type,l.stateNode);else l.stateNode=Z1(A,v,l.memoizedProps);else O!==v?(O===null?h.stateNode!==null&&(h=h.stateNode,h.parentNode.removeChild(h)):O.count--,v===null?h4(A,l.type,l.stateNode):Z1(A,v,l.memoizedProps)):v===null&&l.stateNode!==null&&rf(l,l.memoizedProps,h.memoizedProps)}break;case 27:ki(c,l),qa(l),v&512&&(Pr||h===null||al(h,h.return)),h!==null&&v&4&&rf(l,l.memoizedProps,h.memoizedProps);break;case 5:if(ki(c,l),qa(l),v&512&&(Pr||h===null||al(h,h.return)),l.flags&32){A=l.stateNode;try{kc(A,"")}catch(Pe){ar(l,l.return,Pe)}}v&4&&l.stateNode!=null&&(A=l.memoizedProps,rf(l,A,h!==null?h.memoizedProps:A)),v&1024&&(A1=!0);break;case 6:if(ki(c,l),qa(l),v&4){if(l.stateNode===null)throw Error(a(162));v=l.memoizedProps,h=l.stateNode;try{h.nodeValue=v}catch(Pe){ar(l,l.return,Pe)}}break;case 3:if(eh=null,A=Qi,Qi=wa(c.containerInfo),ki(c,l),Qi=A,qa(l),v&4&&h!==null&&h.memoizedState.isDehydrated)try{e0(c.containerInfo)}catch(Pe){ar(l,l.return,Pe)}A1&&(A1=!1,af(l));break;case 4:v=Qi,Qi=wa(l.stateNode.containerInfo),ki(c,l),qa(l),Qi=v;break;case 12:ki(c,l),qa(l);break;case 13:ki(c,l),qa(l),l.child.flags&8192&&l.memoizedState!==null!=(h!==null&&h.memoizedState!==null)&&(Qb=bt()),v&4&&(v=l.updateQueue,v!==null&&(l.updateQueue=null,Pp(l,v)));break;case 22:A=l.memoizedState!==null;var de=h!==null&&h.memoizedState!==null,ke=il,Xe=Pr;if(il=ke||A,Pr=Xe||de,ki(c,l),Pr=Xe,il=ke,qa(l),v&8192)e:for(c=l.stateNode,c._visibility=A?c._visibility&-2:c._visibility|1,A&&(h===null||de||il||Pr||Ms(l)),h=null,c=l;;){if(c.tag===5||c.tag===26){if(h===null){de=h=c;try{if(O=de.stateNode,A)j=O.style,typeof j.setProperty=="function"?j.setProperty("display","none","important"):j.display="none";else{J=de.stateNode;var Ze=de.memoizedProps.style,_e=Ze!=null&&Ze.hasOwnProperty("display")?Ze.display:null;J.style.display=_e==null||typeof _e=="boolean"?"":(""+_e).trim()}}catch(Pe){ar(de,de.return,Pe)}}}else if(c.tag===6){if(h===null){de=c;try{de.stateNode.nodeValue=A?"":de.memoizedProps}catch(Pe){ar(de,de.return,Pe)}}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===l)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===l)break e;for(;c.sibling===null;){if(c.return===null||c.return===l)break e;h===c&&(h=null),c=c.return}h===c&&(h=null),c.sibling.return=c.return,c=c.sibling}v&4&&(v=l.updateQueue,v!==null&&(h=v.retryQueue,h!==null&&(v.retryQueue=null,Pp(l,h))));break;case 19:ki(c,l),qa(l),v&4&&(v=l.updateQueue,v!==null&&(l.updateQueue=null,Pp(l,v)));break;case 30:break;case 21:break;default:ki(c,l),qa(l)}}function qa(l){var c=l.flags;if(c&2){try{for(var h,v=l.return;v!==null;){if(f6(v)){h=v;break}v=v.return}if(h==null)throw Error(a(160));switch(h.tag){case 27:var A=h.stateNode,O=Ub(l);Pu(l,O,A);break;case 5:var j=h.stateNode;h.flags&32&&(kc(j,""),h.flags&=-33);var J=Ub(l);Pu(l,J,j);break;case 3:case 4:var de=h.stateNode.containerInfo,ke=Ub(l);Ao(l,ke,de);break;default:throw Error(a(161))}}catch(Xe){ar(l,l.return,Xe)}l.flags&=-3}c&4096&&(l.flags&=-4097)}function af(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var c=l;af(c),c.tag===5&&c.flags&1024&&c.stateNode.reset(),l=l.sibling}}function Rs(l,c){if(c.subtreeFlags&8772)for(c=c.child;c!==null;)C1(l,c.alternate,c),c=c.sibling}function Ms(l){for(l=l.child;l!==null;){var c=l;switch(c.tag){case 0:case 11:case 14:case 15:Bu(4,c,c.return),Ms(c);break;case 1:al(c,c.return);var h=c.stateNode;typeof h.componentWillUnmount=="function"&&w1(c,c.return,h),Ms(c);break;case 27:vt(c.stateNode);case 26:case 5:al(c,c.return),Ms(c);break;case 22:c.memoizedState===null&&Ms(c);break;case 30:Ms(c);break;default:Ms(c)}l=l.sibling}}function xr(l,c,h){for(h=h&&(c.subtreeFlags&8772)!==0,c=c.child;c!==null;){var v=c.alternate,A=l,O=c,j=O.flags;switch(O.tag){case 0:case 11:case 15:xr(A,O,h),zd(4,O);break;case 1:if(xr(A,O,h),v=O,A=v.stateNode,typeof A.componentDidMount=="function")try{A.componentDidMount()}catch(ke){ar(v,v.return,ke)}if(v=O,A=v.updateQueue,A!==null){var J=v.stateNode;try{var de=A.shared.hiddenCallbacks;if(de!==null)for(A.shared.hiddenCallbacks=null,A=0;A<de.length;A++)Ed(de[A],J)}catch(ke){ar(v,v.return,ke)}}h&&j&64&&c6(O),Ld(O,O.return);break;case 27:d6(O);case 26:case 5:xr(A,O,h),h&&v===null&&j&4&&Vb(O),Ld(O,O.return);break;case 12:xr(A,O,h);break;case 13:xr(A,O,h),h&&j&4&&An(A,O);break;case 22:O.memoizedState===null&&xr(A,O,h),Ld(O,O.return);break;case 30:break;default:xr(A,O,h)}c=c.sibling}}function Gb(l,c){var h=null;l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),l=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(l=c.memoizedState.cachePool.pool),l!==h&&(l!=null&&l.refCount++,h!=null&&Du(h))}function Oo(l,c){l=null,c.alternate!==null&&(l=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==l&&(c.refCount++,l!=null&&Du(l))}function ol(l,c,h,v){if(c.subtreeFlags&10256)for(c=c.child;c!==null;)ks(l,c,h,v),c=c.sibling}function ks(l,c,h,v){var A=c.flags;switch(c.tag){case 0:case 11:case 15:ol(l,c,h,v),A&2048&&zd(9,c);break;case 1:ol(l,c,h,v);break;case 3:ol(l,c,h,v),A&2048&&(l=null,c.alternate!==null&&(l=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==l&&(c.refCount++,l!=null&&Du(l)));break;case 12:if(A&2048){ol(l,c,h,v),l=c.stateNode;try{var O=c.memoizedProps,j=O.id,J=O.onPostCommit;typeof J=="function"&&J(j,c.alternate===null?"mount":"update",l.passiveEffectDuration,-0)}catch(de){ar(c,c.return,de)}}else ol(l,c,h,v);break;case 13:ol(l,c,h,v);break;case 23:break;case 22:O=c.stateNode,j=c.alternate,c.memoizedState!==null?O._visibility&2?ol(l,c,h,v):Vu(l,c):O._visibility&2?ol(l,c,h,v):(O._visibility|=2,of(l,c,h,v,(c.subtreeFlags&10256)!==0)),A&2048&&Gb(j,c);break;case 24:ol(l,c,h,v),A&2048&&Oo(c.alternate,c);break;default:ol(l,c,h,v)}}function of(l,c,h,v,A){for(A=A&&(c.subtreeFlags&10256)!==0,c=c.child;c!==null;){var O=l,j=c,J=h,de=v,ke=j.flags;switch(j.tag){case 0:case 11:case 15:of(O,j,J,de,A),zd(8,j);break;case 23:break;case 22:var Xe=j.stateNode;j.memoizedState!==null?Xe._visibility&2?of(O,j,J,de,A):Vu(O,j):(Xe._visibility|=2,of(O,j,J,de,A)),A&&ke&2048&&Gb(j.alternate,j);break;case 24:of(O,j,J,de,A),A&&ke&2048&&Oo(j.alternate,j);break;default:of(O,j,J,de,A)}c=c.sibling}}function Vu(l,c){if(c.subtreeFlags&10256)for(c=c.child;c!==null;){var h=l,v=c,A=v.flags;switch(v.tag){case 22:Vu(h,v),A&2048&&Gb(v.alternate,v);break;case 24:Vu(h,v),A&2048&&Oo(v.alternate,v);break;default:Vu(h,v)}c=c.sibling}}var In=8192;function Uu(l){if(l.subtreeFlags&In)for(l=l.child;l!==null;)Ta(l),l=l.sibling}function Ta(l){switch(l.tag){case 26:Uu(l),l.flags&In&&l.memoizedState!==null&&N6(Qi,l.memoizedState,l.memoizedProps);break;case 5:Uu(l);break;case 3:case 4:var c=Qi;Qi=wa(l.stateNode.containerInfo),Uu(l),Qi=c;break;case 22:l.memoizedState===null&&(c=l.alternate,c!==null&&c.memoizedState!==null?(c=In,In=16777216,Uu(l),In=c):Uu(l));break;default:Uu(l)}}function h6(l){var c=l.alternate;if(c!==null&&(l=c.child,l!==null)){c.child=null;do c=l.sibling,l.sibling=null,l=c;while(l!==null)}}function Bd(l){var c=l.deletions;if((l.flags&16)!==0){if(c!==null)for(var h=0;h<c.length;h++){var v=c[h];aa=v,Ki(v,l)}h6(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)O1(l),l=l.sibling}function O1(l){switch(l.tag){case 0:case 11:case 15:Bd(l),l.flags&2048&&Bu(9,l,l.return);break;case 3:Bd(l);break;case 12:Bd(l);break;case 22:var c=l.stateNode;l.memoizedState!==null&&c._visibility&2&&(l.return===null||l.return.tag!==13)?(c._visibility&=-3,Vp(l)):Bd(l);break;default:Bd(l)}}function Vp(l){var c=l.deletions;if((l.flags&16)!==0){if(c!==null)for(var h=0;h<c.length;h++){var v=c[h];aa=v,Ki(v,l)}h6(l)}for(l=l.child;l!==null;){switch(c=l,c.tag){case 0:case 11:case 15:Bu(8,c,c.return),Vp(c);break;case 22:h=c.stateNode,h._visibility&2&&(h._visibility&=-3,Vp(c));break;default:Vp(c)}l=l.sibling}}function Ki(l,c){for(;aa!==null;){var h=aa;switch(h.tag){case 0:case 11:case 15:Bu(8,h,c);break;case 23:case 22:if(h.memoizedState!==null&&h.memoizedState.cachePool!==null){var v=h.memoizedState.cachePool.pool;v!=null&&v.refCount++}break;case 24:Du(h.memoizedState.cache)}if(v=h.child,v!==null)v.return=h,aa=v;else e:for(h=l;aa!==null;){v=aa;var A=v.sibling,O=v.return;if(jb(v),v===h){aa=null;break e}if(A!==null){A.return=O,aa=A;break e}aa=O}}}var m6={getCacheForType:function(l){var c=_a(na),h=c.data.get(l);return h===void 0&&(h=l(),c.data.set(l,h)),h}},Fb=typeof WeakMap=="function"?WeakMap:Map,Fn=0,rr=null,Cn=null,Ln=0,Bn=0,Di=null,Ds=!1,$u=!1,Yb=!1,_s=0,Vr=0,ju=0,Hu=0,Xb=0,da=0,Pd=0,Up=null,ri=null,Wb=!1,Qb=0,R1=1/0,M1=null,Bl=null,Na=0,qu=null,Gu=null,Vd=0,_i=0,k1=null,Kb=null,Ud=0,D1=null;function Zi(){if((Fn&2)!==0&&Ln!==0)return Ln&-Ln;if(K.T!==null){var l=_u;return l!==0?l:$1()}return Lr()}function g6(){da===0&&(da=(Ln&536870912)===0||mn?we():536870912);var l=ra.current;return l!==null&&(l.flags|=32),da}function Ni(l,c,h){(l===rr&&(Bn===2||Bn===9)||l.cancelPendingCommit!==null)&&(ll(l,0),Ns(l,Ln,da,!1)),nt(l,h),((Fn&2)===0||l!==rr)&&(l===rr&&((Fn&2)===0&&(Hu|=h),Vr===4&&Ns(l,Ln,da,!1)),sl(l))}function y6(l,c,h){if((Fn&6)!==0)throw Error(a(327));var v=!h&&(c&124)===0&&(c&l.expiredLanes)===0||er(l,c),A=v?N1(l,c):lf(l,c,!0),O=v;do{if(A===0){$u&&!v&&Ns(l,c,0,!1);break}else{if(h=l.current.alternate,O&&!_1(h)){A=lf(l,c,!1),O=!1;continue}if(A===2){if(O=c,l.errorRecoveryDisabledLanes&O)var j=0;else j=l.pendingLanes&-536870913,j=j!==0?j:j&536870912?536870912:0;if(j!==0){c=j;e:{var J=l;A=Up;var de=J.current.memoizedState.isDehydrated;if(de&&(ll(J,j).flags|=256),j=lf(J,j,!1),j!==2){if(Yb&&!de){J.errorRecoveryDisabledLanes|=O,Hu|=O,A=4;break e}O=ri,ri=A,O!==null&&(ri===null?ri=O:ri.push.apply(ri,O))}A=j}if(O=!1,A!==2)continue}}if(A===1){ll(l,0),Ns(l,c,0,!0);break}e:{switch(v=l,O=A,O){case 0:case 1:throw Error(a(345));case 4:if((c&4194048)!==c)break;case 6:Ns(v,c,da,!Ds);break e;case 2:ri=null;break;case 3:case 5:break;default:throw Error(a(329))}if((c&62914560)===c&&(A=Qb+300-bt(),10<A)){if(Ns(v,c,da,!Ds),On(v,0,!0)!==0)break e;v.timeoutHandle=Ul($d.bind(null,v,h,ri,M1,Wb,c,da,Hu,Pd,Ds,O,2,-0,0),A);break e}$d(v,h,ri,M1,Wb,c,da,Hu,Pd,Ds,O,0,-0,0)}}break}while(!0);sl(l)}function $d(l,c,h,v,A,O,j,J,de,ke,Xe,Ze,_e,Pe){if(l.timeoutHandle=-1,Ze=c.subtreeFlags,(Ze&8192||(Ze&16785408)===16785408)&&(Kd={stylesheets:null,count:0,unsuspend:_6},Ta(c),Ze=z6(),Ze!==null)){l.cancelPendingCommit=Ze(x6.bind(null,l,c,O,h,v,A,j,J,de,Xe,1,_e,Pe)),Ns(l,O,j,!ke);return}x6(l,c,O,h,v,A,j,J,de)}function _1(l){for(var c=l;;){var h=c.tag;if((h===0||h===11||h===15)&&c.flags&16384&&(h=c.updateQueue,h!==null&&(h=h.stores,h!==null)))for(var v=0;v<h.length;v++){var A=h[v],O=A.getSnapshot;A=A.value;try{if(!ei(O(),A))return!1}catch{return!1}}if(h=c.child,c.subtreeFlags&16384&&h!==null)h.return=c,c=h;else{if(c===l)break;for(;c.sibling===null;){if(c.return===null||c.return===l)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function Ns(l,c,h,v){c&=~Xb,c&=~Hu,l.suspendedLanes|=c,l.pingedLanes&=~c,v&&(l.warmLanes|=c),v=l.expirationTimes;for(var A=c;0<A;){var O=31-lt(A),j=1<<O;v[O]=-1,A&=~j}h!==0&&Pt(l,h,c)}function $p(){return(Fn&6)===0?(zs(0),!1):!0}function jd(){if(Cn!==null){if(Bn===0)var l=Cn.return;else l=Cn,Ko=bs=null,wd(l),Ci=null,Rd=0,l=Cn;for(;l!==null;)u6(l.alternate,l),l=l.return;Cn=null}}function ll(l,c){var h=l.timeoutHandle;h!==-1&&(l.timeoutHandle=-1,l4(h)),h=l.cancelPendingCommit,h!==null&&(l.cancelPendingCommit=null,h()),jd(),rr=l,Cn=h=Yo(l.current,null),Ln=c,Bn=0,Di=null,Ds=!1,$u=er(l,c),Yb=!1,Pd=da=Xb=Hu=ju=Vr=0,ri=Up=null,Wb=!1,(c&8)!==0&&(c|=c&32);var v=l.entangledLanes;if(v!==0)for(l=l.entanglements,v&=c;0<v;){var A=31-lt(v),O=1<<A;c|=l[A],v&=~O}return _s=c,Go(),h}function Hd(l,c){an=null,K.H=_p,c===Fc||c===vd?(c=Jm(),Bn=3):c===gp?(c=Jm(),Bn=4):Bn=c===Mb?8:c!==null&&typeof c=="object"&&typeof c.then=="function"?6:1,Di=c,Cn===null&&(Vr=1,ef(l,Fi(c,l.current)))}function Zb(){var l=K.H;return K.H=_p,l===null?_p:l}function v6(){var l=K.A;return K.A=m6,l}function Fu(){Vr=4,Ds||(Ln&4194048)!==Ln&&ra.current!==null||($u=!0),(ju&134217727)===0&&(Hu&134217727)===0||rr===null||Ns(rr,Ln,da,!1)}function lf(l,c,h){var v=Fn;Fn|=2;var A=Zb(),O=v6();(rr!==l||Ln!==c)&&(M1=null,ll(l,c)),c=!1;var j=Vr;e:do try{if(Bn!==0&&Cn!==null){var J=Cn,de=Di;switch(Bn){case 8:jd(),j=6;break e;case 3:case 2:case 9:case 6:ra.current===null&&(c=!0);var ke=Bn;if(Bn=0,Di=null,sf(l,J,de,ke),h&&$u){j=0;break e}break;default:ke=Bn,Bn=0,Di=null,sf(l,J,de,ke)}}b6(),j=Vr;break}catch(Xe){Hd(l,Xe)}while(!0);return c&&l.shellSuspendCounter++,Ko=bs=null,Fn=v,K.H=A,K.A=O,Cn===null&&(rr=null,Ln=0,Go()),j}function b6(){for(;Cn!==null;)z1(Cn)}function N1(l,c){var h=Fn;Fn|=2;var v=Zb(),A=v6();rr!==l||Ln!==c?(M1=null,R1=bt()+500,ll(l,c)):$u=er(l,c);e:do try{if(Bn!==0&&Cn!==null){c=Cn;var O=Di;t:switch(Bn){case 1:Bn=0,Di=null,sf(l,c,O,1);break;case 2:case 9:if(Kv(O)){Bn=0,Di=null,e4(c);break}c=function(){Bn!==2&&Bn!==9||rr!==l||(Bn=7),sl(l)},O.then(c,c);break e;case 3:Bn=7;break e;case 4:Bn=5;break e;case 7:Kv(O)?(Bn=0,Di=null,e4(c)):(Bn=0,Di=null,sf(l,c,O,7));break;case 5:var j=null;switch(Cn.tag){case 26:j=Cn.memoizedState;case 5:case 27:var J=Cn;if(!j||m4(j)){Bn=0,Di=null;var de=J.sibling;if(de!==null)Cn=de;else{var ke=J.return;ke!==null?(Cn=ke,L1(ke)):Cn=null}break t}}Bn=0,Di=null,sf(l,c,O,5);break;case 6:Bn=0,Di=null,sf(l,c,O,6);break;case 8:jd(),Vr=6;break e;default:throw Error(a(462))}}Jb();break}catch(Xe){Hd(l,Xe)}while(!0);return Ko=bs=null,K.H=v,K.A=A,Fn=h,Cn!==null?0:(rr=null,Ln=0,Go(),Vr)}function Jb(){for(;Cn!==null&&!Nt();)z1(Cn)}function z1(l){var c=Ib(l.alternate,l,_s);l.memoizedProps=l.pendingProps,c===null?L1(l):Cn=c}function e4(l){var c=l,h=c.alternate;switch(c.tag){case 15:case 0:c=Db(h,c,c.pendingProps,c.type,void 0,Ln);break;case 11:c=Db(h,c,c.pendingProps,c.type.render,c.ref,Ln);break;case 5:wd(c);default:u6(h,c),c=Cn=Fm(c,_s),c=Ib(h,c,_s)}l.memoizedProps=l.pendingProps,c===null?L1(l):Cn=c}function sf(l,c,h,v){Ko=bs=null,wd(c),Ci=null,Rd=0;var A=c.return;try{if(Wi(l,A,c,h,Ln)){Vr=1,ef(l,Fi(h,l.current)),Cn=null;return}}catch(O){if(A!==null)throw Cn=A,O;Vr=1,ef(l,Fi(h,l.current)),Cn=null;return}c.flags&32768?(mn||v===1?l=!0:$u||(Ln&536870912)!==0?l=!1:(Ds=l=!0,(v===2||v===9||v===3||v===6)&&(v=ra.current,v!==null&&v.tag===13&&(v.flags|=16384))),t4(c,l)):L1(c)}function L1(l){var c=l;do{if((c.flags&32768)!==0){t4(c,Ds);return}l=c.return;var h=nr(c.alternate,c,_s);if(h!==null){Cn=h;return}if(c=c.sibling,c!==null){Cn=c;return}Cn=c=l}while(c!==null);Vr===0&&(Vr=5)}function t4(l,c){do{var h=Pb(l.alternate,l);if(h!==null){h.flags&=32767,Cn=h;return}if(h=l.return,h!==null&&(h.flags|=32768,h.subtreeFlags=0,h.deletions=null),!c&&(l=l.sibling,l!==null)){Cn=l;return}Cn=l=h}while(l!==null);Vr=6,Cn=null}function x6(l,c,h,v,A,O,j,J,de){l.cancelPendingCommit=null;do B1();while(Na!==0);if((Fn&6)!==0)throw Error(a(327));if(c!==null){if(c===l.current)throw Error(a(177));if(O=c.lanes|c.childLanes,O|=lp,At(l,h,O,j,J,de),l===rr&&(Cn=rr=null,Ln=0),Gu=c,qu=l,Vd=h,_i=O,k1=A,Kb=v,(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?(l.callbackNode=null,l.callbackPriority=0,DT(yt,function(){return T6(),null})):(l.callbackNode=null,l.callbackPriority=0),v=(c.flags&13878)!==0,(c.subtreeFlags&13878)!==0||v){v=K.T,K.T=null,A=re.p,re.p=2,j=Fn,Fn|=4;try{p6(l,c,h)}finally{Fn=j,re.p=A,K.T=v}}Na=1,S6(),E6(),jp()}}function S6(){if(Na===1){Na=0;var l=qu,c=Gu,h=(c.flags&13878)!==0;if((c.subtreeFlags&13878)!==0||h){h=K.T,K.T=null;var v=re.p;re.p=2;var A=Fn;Fn|=4;try{Id(c,l);var O=Qp,j=ip(l.containerInfo),J=O.focusedElem,de=O.selectionRange;if(j!==J&&J&&J.ownerDocument&&yr(J.ownerDocument.documentElement,J)){if(de!==null&&$m(J)){var ke=de.start,Xe=de.end;if(Xe===void 0&&(Xe=ke),"selectionStart"in J)J.selectionStart=ke,J.selectionEnd=Math.min(Xe,J.value.length);else{var Ze=J.ownerDocument||document,_e=Ze&&Ze.defaultView||window;if(_e.getSelection){var Pe=_e.getSelection(),Vt=J.textContent.length,_t=Math.min(de.start,Vt),qn=de.end===void 0?_t:Math.min(de.end,Vt);!Pe.extend&&_t>qn&&(j=qn,qn=_t,_t=j);var Re=wu(J,_t),Ee=wu(J,qn);if(Re&&Ee&&(Pe.rangeCount!==1||Pe.anchorNode!==Re.node||Pe.anchorOffset!==Re.offset||Pe.focusNode!==Ee.node||Pe.focusOffset!==Ee.offset)){var De=Ze.createRange();De.setStart(Re.node,Re.offset),Pe.removeAllRanges(),_t>qn?(Pe.addRange(De),Pe.extend(Ee.node,Ee.offset)):(De.setEnd(Ee.node,Ee.offset),Pe.addRange(De))}}}}for(Ze=[],Pe=J;Pe=Pe.parentNode;)Pe.nodeType===1&&Ze.push({element:Pe,left:Pe.scrollLeft,top:Pe.scrollTop});for(typeof J.focus=="function"&&J.focus(),J=0;J<Ze.length;J++){var We=Ze[J];We.element.scrollLeft=We.left,We.element.scrollTop=We.top}}rh=!!o4,Qp=o4=null}finally{Fn=A,re.p=v,K.T=h}}l.current=c,Na=2}}function E6(){if(Na===2){Na=0;var l=qu,c=Gu,h=(c.flags&8772)!==0;if((c.subtreeFlags&8772)!==0||h){h=K.T,K.T=null;var v=re.p;re.p=2;var A=Fn;Fn|=4;try{C1(l,c.alternate,c)}finally{Fn=A,re.p=v,K.T=h}}Na=3}}function jp(){if(Na===4||Na===3){Na=0,Jt();var l=qu,c=Gu,h=Vd,v=Kb;(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?Na=5:(Na=0,Gu=qu=null,I1(l,l.pendingLanes));var A=l.pendingLanes;if(A===0&&(Bl=null),Rt(h),c=c.stateNode,ze&&typeof ze.onCommitFiberRoot=="function")try{ze.onCommitFiberRoot(ve,c,void 0,(c.current.flags&128)===128)}catch{}if(v!==null){c=K.T,A=re.p,re.p=2,K.T=null;try{for(var O=l.onRecoverableError,j=0;j<v.length;j++){var J=v[j];O(J.value,{componentStack:J.stack})}}finally{K.T=c,re.p=A}}(Vd&3)!==0&&B1(),sl(l),A=l.pendingLanes,(h&4194090)!==0&&(A&42)!==0?l===D1?Ud++:(Ud=0,D1=l):Ud=0,zs(0)}}function I1(l,c){(l.pooledCacheLanes&=c)===0&&(c=l.pooledCache,c!=null&&(l.pooledCache=null,Du(c)))}function B1(l){return S6(),E6(),jp(),T6()}function T6(){if(Na!==5)return!1;var l=qu,c=_i;_i=0;var h=Rt(Vd),v=K.T,A=re.p;try{re.p=32>h?32:h,K.T=null,h=k1,k1=null;var O=qu,j=Vd;if(Na=0,Gu=qu=null,Vd=0,(Fn&6)!==0)throw Error(a(331));var J=Fn;if(Fn|=4,O1(O.current),ks(O,O.current,j,h),Fn=J,zs(0,!1),ze&&typeof ze.onPostCommitFiberRoot=="function")try{ze.onPostCommitFiberRoot(ve,O)}catch{}return!0}finally{re.p=A,K.T=v,I1(l,c)}}function n4(l,c,h){c=Fi(h,c),c=y1(l.stateNode,c,2),l=Ti(l,c,2),l!==null&&(nt(l,2),sl(l))}function ar(l,c,h){if(l.tag===3)n4(l,l,h);else for(;c!==null;){if(c.tag===3){n4(c,l,h);break}else if(c.tag===1){var v=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(Bl===null||!Bl.has(v))){l=Fi(h,l),h=i6(2),v=Ti(c,h,2),v!==null&&(Rb(h,v,c,l),nt(v,2),sl(v));break}}c=c.return}}function Hp(l,c,h){var v=l.pingCache;if(v===null){v=l.pingCache=new Fb;var A=new Set;v.set(c,A)}else A=v.get(c),A===void 0&&(A=new Set,v.set(c,A));A.has(h)||(Yb=!0,A.add(h),l=w6.bind(null,l,c,h),c.then(l,l))}function w6(l,c,h){var v=l.pingCache;v!==null&&v.delete(c),l.pingedLanes|=l.suspendedLanes&h,l.warmLanes&=~h,rr===l&&(Ln&h)===h&&(Vr===4||Vr===3&&(Ln&62914560)===Ln&&300>bt()-Qb?(Fn&2)===0&&ll(l,0):Xb|=h,Pd===Ln&&(Pd=0)),sl(l)}function P1(l,c){c===0&&(c=Ve()),l=gs(l,c),l!==null&&(nt(l,c),sl(l))}function A6(l){var c=l.memoizedState,h=0;c!==null&&(h=c.retryLane),P1(l,h)}function kT(l,c){var h=0;switch(l.tag){case 13:var v=l.stateNode,A=l.memoizedState;A!==null&&(h=A.retryLane);break;case 19:v=l.stateNode;break;case 22:v=l.stateNode._retryCache;break;default:throw Error(a(314))}v!==null&&v.delete(c),P1(l,h)}function DT(l,c){return Ae(l,c)}var V1=null,qd=null,qp=!1,Gd=!1,Gp=!1,Yu=0;function sl(l){l!==qd&&l.next===null&&(qd===null?V1=qd=l:qd=qd.next=l),Gd=!0,qp||(qp=!0,U1())}function zs(l,c){if(!Gp&&Gd){Gp=!0;do for(var h=!1,v=V1;v!==null;){if(l!==0){var A=v.pendingLanes;if(A===0)var O=0;else{var j=v.suspendedLanes,J=v.pingedLanes;O=(1<<31-lt(42|l)+1)-1,O&=A&~(j&~J),O=O&201326741?O&201326741|1:O?O|2:0}O!==0&&(h=!0,C6(v,O))}else O=Ln,O=On(v,v===rr?O:0,v.cancelPendingCommit!==null||v.timeoutHandle!==-1),(O&3)===0||er(v,O)||(h=!0,C6(v,O));v=v.next}while(h);Gp=!1}}function _T(){r4()}function r4(){Gd=qp=!1;var l=0;Yu!==0&&(X1()&&(l=Yu),Yu=0);for(var c=bt(),h=null,v=V1;v!==null;){var A=v.next,O=Fp(v,c);O===0?(v.next=null,h===null?V1=A:h.next=A,A===null&&(qd=h)):(h=v,(l!==0||(O&3)!==0)&&(Gd=!0)),v=A}zs(l)}function Fp(l,c){for(var h=l.suspendedLanes,v=l.pingedLanes,A=l.expirationTimes,O=l.pendingLanes&-62914561;0<O;){var j=31-lt(O),J=1<<j,de=A[j];de===-1?((J&h)===0||(J&v)!==0)&&(A[j]=W(J,c)):de<=c&&(l.expiredLanes|=J),O&=~J}if(c=rr,h=Ln,h=On(l,l===c?h:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),v=l.callbackNode,h===0||l===c&&(Bn===2||Bn===9)||l.cancelPendingCommit!==null)return v!==null&&v!==null&&pt(v),l.callbackNode=null,l.callbackPriority=0;if((h&3)===0||er(l,h)){if(c=h&-h,c===l.callbackPriority)return c;switch(v!==null&&pt(v),Rt(h)){case 2:case 8:h=Sn;break;case 32:h=yt;break;case 268435456:h=$n;break;default:h=yt}return v=a4.bind(null,l),h=Ae(h,v),l.callbackPriority=c,l.callbackNode=h,c}return v!==null&&v!==null&&pt(v),l.callbackPriority=2,l.callbackNode=null,2}function a4(l,c){if(Na!==0&&Na!==5)return l.callbackNode=null,l.callbackPriority=0,null;var h=l.callbackNode;if(B1()&&l.callbackNode!==h)return null;var v=Ln;return v=On(l,l===rr?v:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),v===0?null:(y6(l,v,c),Fp(l,bt()),l.callbackNode!=null&&l.callbackNode===h?a4.bind(null,l):null)}function C6(l,c){if(B1())return null;y6(l,c,!0)}function U1(){LT(function(){(Fn&6)!==0?Ae(ln,_T):r4()})}function $1(){return Yu===0&&(Yu=we()),Yu}function Fd(l){return l==null||typeof l=="symbol"||typeof l=="boolean"?null:typeof l=="function"?l:Q0(""+l)}function j1(l,c){var h=c.ownerDocument.createElement("input");return h.name=c.name,h.value=c.value,l.id&&h.setAttribute("form",l.id),c.parentNode.insertBefore(h,c),l=new FormData(l),h.parentNode.removeChild(h),l}function H1(l,c,h,v,A){if(c==="submit"&&h&&h.stateNode===A){var O=Fd((A[Ua]||null).action),j=v.submitter;j&&(c=(c=j[Ua]||null)?Fd(c.formAction):j.getAttribute("formAction"),c!==null&&(O=c,j=null));var J=new J0("action","action",null,v,A);l.push({event:J,listeners:[{instance:null,listener:function(){if(v.defaultPrevented){if(Yu!==0){var de=j?j1(A,j):new FormData(A);yb(h,{pending:!0,data:de,method:A.method,action:O},null,de)}}else typeof O=="function"&&(J.preventDefault(),de=j?j1(A,j):new FormData(A),yb(h,{pending:!0,data:de,method:A.method,action:O},O,de))},currentTarget:A}]})}}for(var q1=0;q1<qm.length;q1++){var Ur=qm[q1],i4=Ur.toLowerCase(),NT=Ur[0].toUpperCase()+Ur.slice(1);bi(i4,"on"+NT)}bi(op,"onAnimationEnd"),bi(Xx,"onAnimationIteration"),bi($v,"onAnimationStart"),bi("dblclick","onDoubleClick"),bi("focusin","onFocus"),bi("focusout","onBlur"),bi(CT,"onTransitionRun"),bi(jv,"onTransitionStart"),bi(Hm,"onTransitionCancel"),bi(Hv,"onTransitionEnd"),Rc("onMouseEnter",["mouseout","mouseover"]),Rc("onMouseLeave",["mouseout","mouseover"]),Rc("onPointerEnter",["pointerout","pointerover"]),Rc("onPointerLeave",["pointerout","pointerover"]),xa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xa("onBeforeInput",["compositionend","keypress","textInput","paste"]),xa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var tn="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(" "),zT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(tn));function Ls(l,c){c=(c&4)!==0;for(var h=0;h<l.length;h++){var v=l[h],A=v.event;v=v.listeners;e:{var O=void 0;if(c)for(var j=v.length-1;0<=j;j--){var J=v[j],de=J.instance,ke=J.currentTarget;if(J=J.listener,de!==O&&A.isPropagationStopped())break e;O=J,A.currentTarget=ke;try{O(A)}catch(Xe){Lp(Xe)}A.currentTarget=null,O=de}else for(j=0;j<v.length;j++){if(J=v[j],de=J.instance,ke=J.currentTarget,J=J.listener,de!==O&&A.isPropagationStopped())break e;O=J,A.currentTarget=ke;try{O(A)}catch(Xe){Lp(Xe)}A.currentTarget=null,O=de}}}}function cn(l,c){var h=c[mv];h===void 0&&(h=c[mv]=new Set);var v=l+"__bubble";h.has(v)||(O6(c,l,2,!1),h.add(v))}function Xu(l,c,h){var v=0;c&&(v|=4),O6(h,l,v,c)}var uf="_reactListening"+Math.random().toString(36).slice(2);function Yp(l){if(!l[uf]){l[uf]=!0,gv.forEach(function(h){h!=="selectionchange"&&(zT.has(h)||Xu(h,!1,l),Xu(h,!0,l))});var c=l.nodeType===9?l:l.ownerDocument;c===null||c[uf]||(c[uf]=!0,Xu("selectionchange",!1,c))}}function O6(l,c,h,v){switch(P6(c)){case 2:var A=I6;break;case 8:A=B6;break;default:A=ng}h=A.bind(null,c,h,l),A=void 0,!Om||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(A=!0),v?A!==void 0?l.addEventListener(c,h,{capture:!0,passive:A}):l.addEventListener(c,h,!0):A!==void 0?l.addEventListener(c,h,{passive:A}):l.addEventListener(c,h,!1)}function Xp(l,c,h,v,A){var O=v;if((c&1)===0&&(c&2)===0&&v!==null)e:for(;;){if(v===null)return;var j=v.tag;if(j===3||j===4){var J=v.stateNode.containerInfo;if(J===A)break;if(j===4)for(j=v.return;j!==null;){var de=j.tag;if((de===3||de===4)&&j.stateNode.containerInfo===A)return;j=j.return}for(;J!==null;){if(j=vu(J),j===null)return;if(de=j.tag,de===5||de===6||de===26||de===27){v=O=j;continue e}J=J.parentNode}}v=v.return}Bx(function(){var ke=O,Xe=Dc(h),Ze=[];e:{var _e=qv.get(l);if(_e!==void 0){var Pe=J0,Vt=l;switch(l){case"keypress":if(Z0(h)===0)break e;case"keydown":case"keyup":Pe=Lc;break;case"focusin":Vt="focus",Pe=Rv;break;case"focusout":Vt="blur",Pe=Rv;break;case"beforeblur":case"afterblur":Pe=Rv;break;case"click":if(h.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Pe=tp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Pe=Ux;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Pe=Nm;break;case op:case Xx:case $v:Pe=ET;break;case Hv:Pe=vi;break;case"scroll":case"scrollend":Pe=xT;break;case"wheel":Pe=zm;break;case"copy":case"cut":case"paste":Pe=wT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Pe=yi;break;case"toggle":case"beforetoggle":Pe=_v}var _t=(c&4)!==0,qn=!_t&&(l==="scroll"||l==="scrollend"),Re=_t?_e!==null?_e+"Capture":null:_e;_t=[];for(var Ee=ke,De;Ee!==null;){var We=Ee;if(De=We.stateNode,We=We.tag,We!==5&&We!==26&&We!==27||De===null||Re===null||(We=ds(Ee,Re),We!=null&&_t.push(zi(Ee,We,De))),qn)break;Ee=Ee.return}0<_t.length&&(_e=new Pe(_e,Vt,null,h,Xe),Ze.push({event:_e,listeners:_t}))}}if((c&7)===0){e:{if(_e=l==="mouseover"||l==="pointerover",Pe=l==="mouseout"||l==="pointerout",_e&&h!==Cm&&(Vt=h.relatedTarget||h.fromElement)&&(vu(Vt)||Vt[Oc]))break e;if((Pe||_e)&&(_e=Xe.window===Xe?Xe:(_e=Xe.ownerDocument)?_e.defaultView||_e.parentWindow:window,Pe?(Vt=h.relatedTarget||h.toElement,Pe=ke,Vt=Vt?vu(Vt):null,Vt!==null&&(qn=s(Vt),_t=Vt.tag,Vt!==qn||_t!==5&&_t!==27&&_t!==6)&&(Vt=null)):(Pe=null,Vt=ke),Pe!==Vt)){if(_t=tp,We="onMouseLeave",Re="onMouseEnter",Ee="mouse",(l==="pointerout"||l==="pointerover")&&(_t=yi,We="onPointerLeave",Re="onPointerEnter",Ee="pointer"),qn=Pe==null?_e:Ff(Pe),De=Vt==null?_e:Ff(Vt),_e=new _t(We,Ee+"leave",Pe,h,Xe),_e.target=qn,_e.relatedTarget=De,We=null,vu(Xe)===ke&&(_t=new _t(Re,Ee+"enter",Vt,h,Xe),_t.target=De,_t.relatedTarget=qn,We=_t),qn=We,Pe&&Vt)t:{for(_t=Pe,Re=Vt,Ee=0,De=_t;De;De=Qu(De))Ee++;for(De=0,We=Re;We;We=Qu(We))De++;for(;0<Ee-De;)_t=Qu(_t),Ee--;for(;0<De-Ee;)Re=Qu(Re),De--;for(;Ee--;){if(_t===Re||Re!==null&&_t===Re.alternate)break t;_t=Qu(_t),Re=Qu(Re)}_t=null}else _t=null;Pe!==null&&G1(Ze,_e,Pe,_t,!1),Vt!==null&&qn!==null&&G1(Ze,qn,Vt,_t,!0)}}e:{if(_e=ke?Ff(ke):window,Pe=_e.nodeName&&_e.nodeName.toLowerCase(),Pe==="select"||Pe==="input"&&_e.type==="file")var Tt=Eu;else if(Iv(_e))if(Bv)Tt=ps;else{Tt=Um;var gn=Yx}else Pe=_e.nodeName,!Pe||Pe.toLowerCase()!=="input"||_e.type!=="checkbox"&&_e.type!=="radio"?ke&&Zf(ke.elementType)&&(Tt=Eu):Tt=Tu;if(Tt&&(Tt=Tt(l,ke))){Pm(Ze,Tt,h,Xe);break e}gn&&gn(l,_e,ke),l==="focusout"&&ke&&_e.type==="number"&&ke.memoizedProps.value!=null&&X0(_e,"number",_e.value)}switch(gn=ke?Ff(ke):window,l){case"focusin":(Iv(gn)||gn.contentEditable==="true")&&(bo=gn,jc=ke,Gi=null);break;case"focusout":Gi=jc=bo=null;break;case"mousedown":id=!0;break;case"contextmenu":case"mouseup":case"dragend":id=!1,od(Ze,h,Xe);break;case"selectionchange":if(Uv)break;case"keydown":case"keyup":od(Ze,h,Xe)}var kt;if(Lm)e:{switch(l){case"compositionstart":var jt="onCompositionStart";break e;case"compositionend":jt="onCompositionEnd";break e;case"compositionupdate":jt="onCompositionUpdate";break e}jt=void 0}else vo?Bm(l,h)&&(jt="onCompositionEnd"):l==="keydown"&&h.keyCode===229&&(jt="onCompositionStart");jt&&(Im&&h.locale!=="ko"&&(vo||jt!=="onCompositionStart"?jt==="onCompositionEnd"&&vo&&(kt=K0()):(yo=Xe,Rm="value"in yo?yo.value:yo.textContent,vo=!0)),gn=Wu(ke,jt),0<gn.length&&(jt=new Mv(jt,l,null,h,Xe),Ze.push({event:jt,listeners:gn}),kt?jt.data=kt:(kt=rp(h),kt!==null&&(jt.data=kt)))),(kt=AT?zv(l,h):Lv(l,h))&&(jt=Wu(ke,"onBeforeInput"),0<jt.length&&(gn=new Mv("onBeforeInput","beforeinput",null,h,Xe),Ze.push({event:gn,listeners:jt}),gn.data=kt)),H1(Ze,l,ke,h,Xe)}Ls(Ze,c)})}function zi(l,c,h){return{instance:l,listener:c,currentTarget:h}}function Wu(l,c){for(var h=c+"Capture",v=[];l!==null;){var A=l,O=A.stateNode;if(A=A.tag,A!==5&&A!==26&&A!==27||O===null||(A=ds(l,h),A!=null&&v.unshift(zi(l,A,O)),A=ds(l,c),A!=null&&v.push(zi(l,A,O))),l.tag===3)return v;l=l.return}return[]}function Qu(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5&&l.tag!==27);return l||null}function G1(l,c,h,v,A){for(var O=c._reactName,j=[];h!==null&&h!==v;){var J=h,de=J.alternate,ke=J.stateNode;if(J=J.tag,de!==null&&de===v)break;J!==5&&J!==26&&J!==27||ke===null||(de=ke,A?(ke=ds(h,O),ke!=null&&j.unshift(zi(h,ke,de))):A||(ke=ds(h,O),ke!=null&&j.push(zi(h,ke,de)))),h=h.return}j.length!==0&&l.push({event:c,listeners:j})}var F1=/\r\n?/g,Ji=/\u0000|\uFFFD/g;function Y1(l){return(typeof l=="string"?l:""+l).replace(F1,`
639
639
  `).replace(Ji,"")}function R6(l,c){return c=Y1(c),Y1(l)===c}function Wp(){}function ir(l,c,h,v,A,O){switch(h){case"children":typeof v=="string"?c==="body"||c==="textarea"&&v===""||kc(l,v):(typeof v=="number"||typeof v=="bigint")&&c!=="body"&&kc(l,""+v);break;case"className":cs(l,"class",v);break;case"tabIndex":cs(l,"tabindex",v);break;case"dir":case"role":case"viewBox":case"width":case"height":cs(l,h,v);break;case"style":Am(l,v,O);break;case"data":if(c!=="object"){cs(l,"data",v);break}case"src":case"href":if(v===""&&(c!=="a"||h!=="href")){l.removeAttribute(h);break}if(v==null||typeof v=="function"||typeof v=="symbol"||typeof v=="boolean"){l.removeAttribute(h);break}v=Q0(""+v),l.setAttribute(h,v);break;case"action":case"formAction":if(typeof v=="function"){l.setAttribute(h,"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 O=="function"&&(h==="formAction"?(c!=="input"&&ir(l,c,"name",A.name,A,null),ir(l,c,"formEncType",A.formEncType,A,null),ir(l,c,"formMethod",A.formMethod,A,null),ir(l,c,"formTarget",A.formTarget,A,null)):(ir(l,c,"encType",A.encType,A,null),ir(l,c,"method",A.method,A,null),ir(l,c,"target",A.target,A,null)));if(v==null||typeof v=="symbol"||typeof v=="boolean"){l.removeAttribute(h);break}v=Q0(""+v),l.setAttribute(h,v);break;case"onClick":v!=null&&(l.onclick=Wp);break;case"onScroll":v!=null&&cn("scroll",l);break;case"onScrollEnd":v!=null&&cn("scrollend",l);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(a(61));if(h=v.__html,h!=null){if(A.children!=null)throw Error(a(60));l.innerHTML=h}}break;case"multiple":l.multiple=v&&typeof v!="function"&&typeof v!="symbol";break;case"muted":l.muted=v&&typeof v!="function"&&typeof v!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(v==null||typeof v=="function"||typeof v=="boolean"||typeof v=="symbol"){l.removeAttribute("xlink:href");break}h=Q0(""+v),l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",h);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":v!=null&&typeof v!="function"&&typeof v!="symbol"?l.setAttribute(h,""+v):l.removeAttribute(h);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":v&&typeof v!="function"&&typeof v!="symbol"?l.setAttribute(h,""):l.removeAttribute(h);break;case"capture":case"download":v===!0?l.setAttribute(h,""):v!==!1&&v!=null&&typeof v!="function"&&typeof v!="symbol"?l.setAttribute(h,v):l.removeAttribute(h);break;case"cols":case"rows":case"size":case"span":v!=null&&typeof v!="function"&&typeof v!="symbol"&&!isNaN(v)&&1<=v?l.setAttribute(h,v):l.removeAttribute(h);break;case"rowSpan":case"start":v==null||typeof v=="function"||typeof v=="symbol"||isNaN(v)?l.removeAttribute(h):l.setAttribute(h,v);break;case"popover":cn("beforetoggle",l),cn("toggle",l),Y0(l,"popover",v);break;case"xlinkActuate":kl(l,"http://www.w3.org/1999/xlink","xlink:actuate",v);break;case"xlinkArcrole":kl(l,"http://www.w3.org/1999/xlink","xlink:arcrole",v);break;case"xlinkRole":kl(l,"http://www.w3.org/1999/xlink","xlink:role",v);break;case"xlinkShow":kl(l,"http://www.w3.org/1999/xlink","xlink:show",v);break;case"xlinkTitle":kl(l,"http://www.w3.org/1999/xlink","xlink:title",v);break;case"xlinkType":kl(l,"http://www.w3.org/1999/xlink","xlink:type",v);break;case"xmlBase":kl(l,"http://www.w3.org/XML/1998/namespace","xml:base",v);break;case"xmlLang":kl(l,"http://www.w3.org/XML/1998/namespace","xml:lang",v);break;case"xmlSpace":kl(l,"http://www.w3.org/XML/1998/namespace","xml:space",v);break;case"is":Y0(l,"is",v);break;case"innerText":case"textContent":break;default:(!(2<h.length)||h[0]!=="o"&&h[0]!=="O"||h[1]!=="n"&&h[1]!=="N")&&(h=W0.get(h)||h,Y0(l,h,v))}}function pa(l,c,h,v,A,O){switch(h){case"style":Am(l,v,O);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(a(61));if(h=v.__html,h!=null){if(A.children!=null)throw Error(a(60));l.innerHTML=h}}break;case"children":typeof v=="string"?kc(l,v):(typeof v=="number"||typeof v=="bigint")&&kc(l,""+v);break;case"onScroll":v!=null&&cn("scroll",l);break;case"onScrollEnd":v!=null&&cn("scrollend",l);break;case"onClick":v!=null&&(l.onclick=Wp);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!F0.hasOwnProperty(h))e:{if(h[0]==="o"&&h[1]==="n"&&(A=h.endsWith("Capture"),c=h.slice(2,A?h.length-7:void 0),O=l[Ua]||null,O=O!=null?O[h]:null,typeof O=="function"&&l.removeEventListener(c,O,A),typeof v=="function")){typeof O!="function"&&O!==null&&(h in l?l[h]=null:l.hasAttribute(h)&&l.removeAttribute(h)),l.addEventListener(c,v,A);break e}h in l?l[h]=v:v===!0?l.setAttribute(h,""):Y0(l,h,v)}}}function Ie(l,c,h){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":cn("error",l),cn("load",l);var v=!1,A=!1,O;for(O in h)if(h.hasOwnProperty(O)){var j=h[O];if(j!=null)switch(O){case"src":v=!0;break;case"srcSet":A=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,c));default:ir(l,c,O,j,h,null)}}A&&ir(l,c,"srcSet",h.srcSet,h,null),v&&ir(l,c,"src",h.src,h,null);return;case"input":cn("invalid",l);var J=O=j=A=null,de=null,ke=null;for(v in h)if(h.hasOwnProperty(v)){var Xe=h[v];if(Xe!=null)switch(v){case"name":A=Xe;break;case"type":j=Xe;break;case"checked":de=Xe;break;case"defaultChecked":ke=Xe;break;case"value":O=Xe;break;case"defaultValue":J=Xe;break;case"children":case"dangerouslySetInnerHTML":if(Xe!=null)throw Error(a(137,c));break;default:ir(l,c,v,Xe,h,null)}}Ev(l,O,J,de,ke,j,A,!1),Qf(l);return;case"select":cn("invalid",l),v=j=O=null;for(A in h)if(h.hasOwnProperty(A)&&(J=h[A],J!=null))switch(A){case"value":O=J;break;case"defaultValue":j=J;break;case"multiple":v=J;default:ir(l,c,A,J,h,null)}c=O,h=j,l.multiple=!!v,c!=null?xu(l,!!v,c,!1):h!=null&&xu(l,!!v,h,!0);return;case"textarea":cn("invalid",l),O=A=v=null;for(j in h)if(h.hasOwnProperty(j)&&(J=h[j],J!=null))switch(j){case"value":v=J;break;case"defaultValue":A=J;break;case"children":O=J;break;case"dangerouslySetInnerHTML":if(J!=null)throw Error(a(91));break;default:ir(l,c,j,J,h,null)}wv(l,v,A,O),Qf(l);return;case"option":for(de in h)if(h.hasOwnProperty(de)&&(v=h[de],v!=null))switch(de){case"selected":l.selected=v&&typeof v!="function"&&typeof v!="symbol";break;default:ir(l,c,de,v,h,null)}return;case"dialog":cn("beforetoggle",l),cn("toggle",l),cn("cancel",l),cn("close",l);break;case"iframe":case"object":cn("load",l);break;case"video":case"audio":for(v=0;v<tn.length;v++)cn(tn[v],l);break;case"image":cn("error",l),cn("load",l);break;case"details":cn("toggle",l);break;case"embed":case"source":case"link":cn("error",l),cn("load",l);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ke in h)if(h.hasOwnProperty(ke)&&(v=h[ke],v!=null))switch(ke){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,c));default:ir(l,c,ke,v,h,null)}return;default:if(Zf(c)){for(Xe in h)h.hasOwnProperty(Xe)&&(v=h[Xe],v!==void 0&&pa(l,c,Xe,v,h,void 0));return}}for(J in h)h.hasOwnProperty(J)&&(v=h[J],v!=null&&ir(l,c,J,v,h,null))}function Hn(l,c,h,v){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var A=null,O=null,j=null,J=null,de=null,ke=null,Xe=null;for(Pe in h){var Ze=h[Pe];if(h.hasOwnProperty(Pe)&&Ze!=null)switch(Pe){case"checked":break;case"value":break;case"defaultValue":de=Ze;default:v.hasOwnProperty(Pe)||ir(l,c,Pe,null,v,Ze)}}for(var _e in v){var Pe=v[_e];if(Ze=h[_e],v.hasOwnProperty(_e)&&(Pe!=null||Ze!=null))switch(_e){case"type":O=Pe;break;case"name":A=Pe;break;case"checked":ke=Pe;break;case"defaultChecked":Xe=Pe;break;case"value":j=Pe;break;case"defaultValue":J=Pe;break;case"children":case"dangerouslySetInnerHTML":if(Pe!=null)throw Error(a(137,c));break;default:Pe!==Ze&&ir(l,c,_e,Pe,v,Ze)}}Sv(l,j,J,de,ke,Xe,O,A);return;case"select":Pe=j=J=_e=null;for(O in h)if(de=h[O],h.hasOwnProperty(O)&&de!=null)switch(O){case"value":break;case"multiple":Pe=de;default:v.hasOwnProperty(O)||ir(l,c,O,null,v,de)}for(A in v)if(O=v[A],de=h[A],v.hasOwnProperty(A)&&(O!=null||de!=null))switch(A){case"value":_e=O;break;case"defaultValue":J=O;break;case"multiple":j=O;default:O!==de&&ir(l,c,A,O,v,de)}c=J,h=j,v=Pe,_e!=null?xu(l,!!h,_e,!1):!!v!=!!h&&(c!=null?xu(l,!!h,c,!0):xu(l,!!h,h?[]:"",!1));return;case"textarea":Pe=_e=null;for(J in h)if(A=h[J],h.hasOwnProperty(J)&&A!=null&&!v.hasOwnProperty(J))switch(J){case"value":break;case"children":break;default:ir(l,c,J,null,v,A)}for(j in v)if(A=v[j],O=h[j],v.hasOwnProperty(j)&&(A!=null||O!=null))switch(j){case"value":_e=A;break;case"defaultValue":Pe=A;break;case"children":break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(a(91));break;default:A!==O&&ir(l,c,j,A,v,O)}Tv(l,_e,Pe);return;case"option":for(var Vt in h)if(_e=h[Vt],h.hasOwnProperty(Vt)&&_e!=null&&!v.hasOwnProperty(Vt))switch(Vt){case"selected":l.selected=!1;break;default:ir(l,c,Vt,null,v,_e)}for(de in v)if(_e=v[de],Pe=h[de],v.hasOwnProperty(de)&&_e!==Pe&&(_e!=null||Pe!=null))switch(de){case"selected":l.selected=_e&&typeof _e!="function"&&typeof _e!="symbol";break;default:ir(l,c,de,_e,v,Pe)}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 _t in h)_e=h[_t],h.hasOwnProperty(_t)&&_e!=null&&!v.hasOwnProperty(_t)&&ir(l,c,_t,null,v,_e);for(ke in v)if(_e=v[ke],Pe=h[ke],v.hasOwnProperty(ke)&&_e!==Pe&&(_e!=null||Pe!=null))switch(ke){case"children":case"dangerouslySetInnerHTML":if(_e!=null)throw Error(a(137,c));break;default:ir(l,c,ke,_e,v,Pe)}return;default:if(Zf(c)){for(var qn in h)_e=h[qn],h.hasOwnProperty(qn)&&_e!==void 0&&!v.hasOwnProperty(qn)&&pa(l,c,qn,void 0,v,_e);for(Xe in v)_e=v[Xe],Pe=h[Xe],!v.hasOwnProperty(Xe)||_e===Pe||_e===void 0&&Pe===void 0||pa(l,c,Xe,_e,v,Pe);return}}for(var Re in h)_e=h[Re],h.hasOwnProperty(Re)&&_e!=null&&!v.hasOwnProperty(Re)&&ir(l,c,Re,null,v,_e);for(Ze in v)_e=v[Ze],Pe=h[Ze],!v.hasOwnProperty(Ze)||_e===Pe||_e==null&&Pe==null||ir(l,c,Ze,_e,v,Pe)}var o4=null,Qp=null;function Yd(l){return l.nodeType===9?l:l.ownerDocument}function Pl(l){switch(l){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Is(l,c){if(l===0)switch(c){case"svg":return 1;case"math":return 2;default:return 0}return l===1&&c==="foreignObject"?0:l}function cf(l,c){return l==="textarea"||l==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.children=="bigint"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var Vl=null;function X1(){var l=window.event;return l&&l.type==="popstate"?l===Vl?!1:(Vl=l,!0):(Vl=null,!1)}var Ul=typeof setTimeout=="function"?setTimeout:void 0,l4=typeof clearTimeout=="function"?clearTimeout:void 0,M6=typeof Promise=="function"?Promise:void 0,LT=typeof queueMicrotask=="function"?queueMicrotask:typeof M6<"u"?function(l){return M6.resolve(null).then(l).catch(IT)}:Ul;function IT(l){setTimeout(function(){throw l})}function za(l){return l==="head"}function k6(l,c){var h=c,v=0,A=0;do{var O=h.nextSibling;if(l.removeChild(h),O&&O.nodeType===8)if(h=O.data,h==="/$"){if(0<v&&8>v){h=v;var j=l.ownerDocument;if(h&1&&vt(j.documentElement),h&2&&vt(j.body),h&4)for(h=j.head,vt(h),j=h.firstChild;j;){var J=j.nextSibling,de=j.nodeName;j[G0]||de==="SCRIPT"||de==="STYLE"||de==="LINK"&&j.rel.toLowerCase()==="stylesheet"||h.removeChild(j),j=J}}if(A===0){l.removeChild(O),e0(c);return}A--}else h==="$"||h==="$?"||h==="$!"?A++:v=h.charCodeAt(0)-48;else v=0;h=O}while(h);e0(c)}function Kp(l){var c=l.firstChild;for(c&&c.nodeType===10&&(c=c.nextSibling);c;){var h=c;switch(c=c.nextSibling,h.nodeName){case"HTML":case"HEAD":case"BODY":Kp(h),Mt(h);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(h.rel.toLowerCase()==="stylesheet")continue}l.removeChild(h)}}function s4(l,c,h,v){for(;l.nodeType===1;){var A=h;if(l.nodeName.toLowerCase()!==c.toLowerCase()){if(!v&&(l.nodeName!=="INPUT"||l.type!=="hidden"))break}else if(v){if(!l[G0])switch(c){case"meta":if(!l.hasAttribute("itemprop"))break;return l;case"link":if(O=l.getAttribute("rel"),O==="stylesheet"&&l.hasAttribute("data-precedence"))break;if(O!==A.rel||l.getAttribute("href")!==(A.href==null||A.href===""?null:A.href)||l.getAttribute("crossorigin")!==(A.crossOrigin==null?null:A.crossOrigin)||l.getAttribute("title")!==(A.title==null?null:A.title))break;return l;case"style":if(l.hasAttribute("data-precedence"))break;return l;case"script":if(O=l.getAttribute("src"),(O!==(A.src==null?null:A.src)||l.getAttribute("type")!==(A.type==null?null:A.type)||l.getAttribute("crossorigin")!==(A.crossOrigin==null?null:A.crossOrigin))&&O&&l.hasAttribute("async")&&!l.hasAttribute("itemprop"))break;return l;default:return l}}else if(c==="input"&&l.type==="hidden"){var O=A.name==null?null:""+A.name;if(A.type==="hidden"&&l.getAttribute("name")===O)return l}else return l;if(l=ul(l.nextSibling),l===null)break}return null}function Xd(l,c,h){if(c==="")return null;for(;l.nodeType!==3;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!h||(l=ul(l.nextSibling),l===null))return null;return l}function u4(l){return l.data==="$!"||l.data==="$?"&&l.ownerDocument.readyState==="complete"}function c4(l,c){var h=l.ownerDocument;if(l.data!=="$?"||h.readyState==="complete")c();else{var v=function(){c(),h.removeEventListener("DOMContentLoaded",v)};h.addEventListener("DOMContentLoaded",v),l._reactRetry=v}}function ul(l){for(;l!=null;l=l.nextSibling){var c=l.nodeType;if(c===1||c===3)break;if(c===8){if(c=l.data,c==="$"||c==="$!"||c==="$?"||c==="F!"||c==="F")break;if(c==="/$")return null}}return l}var f4=null;function ff(l){l=l.previousSibling;for(var c=0;l;){if(l.nodeType===8){var h=l.data;if(h==="$"||h==="$!"||h==="$?"){if(c===0)return l;c--}else h==="/$"&&c++}l=l.previousSibling}return null}function La(l,c,h){switch(c=Yd(h),l){case"html":if(l=c.documentElement,!l)throw Error(a(452));return l;case"head":if(l=c.head,!l)throw Error(a(453));return l;case"body":if(l=c.body,!l)throw Error(a(454));return l;default:throw Error(a(451))}}function vt(l){for(var c=l.attributes;c.length;)l.removeAttributeNode(c[0]);Mt(l)}var Xr=new Map,Ro=new Set;function wa(l){return typeof l.getRootNode=="function"?l.getRootNode():l.nodeType===9?l:l.ownerDocument}var Bs=re.d;re.d={f:BT,r:W1,D:$l,C:Vs,L:Q1,m:Ku,X:Li,S:Ga,M:Zu};function BT(){var l=Bs.f(),c=$p();return l||c}function W1(l){var c=ka(l);c!==null&&c.tag===5&&c.type==="form"?e6(c):Bs.r(l)}var Ps=typeof document>"u"?null:document;function eo(l,c,h){var v=Ps;if(v&&typeof c=="string"&&c){var A=go(c);A='link[rel="'+l+'"][href="'+A+'"]',typeof h=="string"&&(A+='[crossorigin="'+h+'"]'),Ro.has(A)||(Ro.add(A),l={rel:l,crossOrigin:h,href:c},v.querySelector(A)===null&&(c=v.createElement("link"),Ie(c,"link",l),Fr(c),v.head.appendChild(c)))}}function $l(l){Bs.D(l),eo("dns-prefetch",l,null)}function Vs(l,c){Bs.C(l,c),eo("preconnect",l,c)}function Q1(l,c,h){Bs.L(l,c,h);var v=Ps;if(v&&l&&c){var A='link[rel="preload"][as="'+go(c)+'"]';c==="image"&&h&&h.imageSrcSet?(A+='[imagesrcset="'+go(h.imageSrcSet)+'"]',typeof h.imageSizes=="string"&&(A+='[imagesizes="'+go(h.imageSizes)+'"]')):A+='[href="'+go(l)+'"]';var O=A;switch(c){case"style":O=Wd(l);break;case"script":O=df(l)}Xr.has(O)||(l=x({rel:"preload",href:c==="image"&&h&&h.imageSrcSet?void 0:l,as:c},h),Xr.set(O,l),v.querySelector(A)!==null||c==="style"&&v.querySelector(Zp(O))||c==="script"&&v.querySelector(cl(O))||(c=v.createElement("link"),Ie(c,"link",l),Fr(c),v.head.appendChild(c)))}}function Ku(l,c){Bs.m(l,c);var h=Ps;if(h&&l){var v=c&&typeof c.as=="string"?c.as:"script",A='link[rel="modulepreload"][as="'+go(v)+'"][href="'+go(l)+'"]',O=A;switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":O=df(l)}if(!Xr.has(O)&&(l=x({rel:"modulepreload",href:l},c),Xr.set(O,l),h.querySelector(A)===null)){switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(h.querySelector(cl(O)))return}v=h.createElement("link"),Ie(v,"link",l),Fr(v),h.head.appendChild(v)}}}function Ga(l,c,h){Bs.S(l,c,h);var v=Ps;if(v&&l){var A=Yf(v).hoistableStyles,O=Wd(l);c=c||"default";var j=A.get(O);if(!j){var J={loading:0,preload:null};if(j=v.querySelector(Zp(O)))J.loading=5;else{l=x({rel:"stylesheet",href:l,"data-precedence":c},h),(h=Xr.get(O))&&p4(l,h);var de=j=v.createElement("link");Fr(de),Ie(de,"link",l),de._p=new Promise(function(ke,Xe){de.onload=ke,de.onerror=Xe}),de.addEventListener("load",function(){J.loading|=1}),de.addEventListener("error",function(){J.loading|=2}),J.loading|=4,J1(j,c,v)}j={type:"stylesheet",instance:j,count:1,state:J},A.set(O,j)}}}function Li(l,c){Bs.X(l,c);var h=Ps;if(h&&l){var v=Yf(h).hoistableScripts,A=df(l),O=v.get(A);O||(O=h.querySelector(cl(A)),O||(l=x({src:l,async:!0},c),(c=Xr.get(A))&&eg(l,c),O=h.createElement("script"),Fr(O),Ie(O,"link",l),h.head.appendChild(O)),O={type:"script",instance:O,count:1,state:null},v.set(A,O))}}function Zu(l,c){Bs.M(l,c);var h=Ps;if(h&&l){var v=Yf(h).hoistableScripts,A=df(l),O=v.get(A);O||(O=h.querySelector(cl(A)),O||(l=x({src:l,async:!0,type:"module"},c),(c=Xr.get(A))&&eg(l,c),O=h.createElement("script"),Fr(O),Ie(O,"link",l),h.head.appendChild(O)),O={type:"script",instance:O,count:1,state:null},v.set(A,O))}}function K1(l,c,h,v){var A=(A=Ce.current)?wa(A):null;if(!A)throw Error(a(446));switch(l){case"meta":case"title":return null;case"style":return typeof h.precedence=="string"&&typeof h.href=="string"?(c=Wd(h.href),h=Yf(A).hoistableStyles,v=h.get(c),v||(v={type:"style",instance:null,count:0,state:null},h.set(c,v)),v):{type:"void",instance:null,count:0,state:null};case"link":if(h.rel==="stylesheet"&&typeof h.href=="string"&&typeof h.precedence=="string"){l=Wd(h.href);var O=Yf(A).hoistableStyles,j=O.get(l);if(j||(A=A.ownerDocument||A,j={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},O.set(l,j),(O=A.querySelector(Zp(l)))&&!O._p&&(j.instance=O,j.state.loading=5),Xr.has(l)||(h={rel:"preload",as:"style",href:h.href,crossOrigin:h.crossOrigin,integrity:h.integrity,media:h.media,hrefLang:h.hrefLang,referrerPolicy:h.referrerPolicy},Xr.set(l,h),O||Jp(A,l,h,j.state))),c&&v===null)throw Error(a(528,""));return j}if(c&&v!==null)throw Error(a(529,""));return null;case"script":return c=h.async,h=h.src,typeof h=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(c=df(h),h=Yf(A).hoistableScripts,v=h.get(c),v||(v={type:"script",instance:null,count:0,state:null},h.set(c,v)),v):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,l))}}function Wd(l){return'href="'+go(l)+'"'}function Zp(l){return'link[rel="stylesheet"]['+l+"]"}function d4(l){return x({},l,{"data-precedence":l.precedence,precedence:null})}function Jp(l,c,h,v){l.querySelector('link[rel="preload"][as="style"]['+c+"]")?v.loading=1:(c=l.createElement("link"),v.preload=c,c.addEventListener("load",function(){return v.loading|=1}),c.addEventListener("error",function(){return v.loading|=2}),Ie(c,"link",h),Fr(c),l.head.appendChild(c))}function df(l){return'[src="'+go(l)+'"]'}function cl(l){return"script[async]"+l}function Z1(l,c,h){if(c.count++,c.instance===null)switch(c.type){case"style":var v=l.querySelector('style[data-href~="'+go(h.href)+'"]');if(v)return c.instance=v,Fr(v),v;var A=x({},h,{"data-href":h.href,"data-precedence":h.precedence,href:null,precedence:null});return v=(l.ownerDocument||l).createElement("style"),Fr(v),Ie(v,"style",A),J1(v,h.precedence,l),c.instance=v;case"stylesheet":A=Wd(h.href);var O=l.querySelector(Zp(A));if(O)return c.state.loading|=4,c.instance=O,Fr(O),O;v=d4(h),(A=Xr.get(A))&&p4(v,A),O=(l.ownerDocument||l).createElement("link"),Fr(O);var j=O;return j._p=new Promise(function(J,de){j.onload=J,j.onerror=de}),Ie(O,"link",v),c.state.loading|=4,J1(O,h.precedence,l),c.instance=O;case"script":return O=df(h.src),(A=l.querySelector(cl(O)))?(c.instance=A,Fr(A),A):(v=h,(A=Xr.get(O))&&(v=x({},h),eg(v,A)),l=l.ownerDocument||l,A=l.createElement("script"),Fr(A),Ie(A,"link",v),l.head.appendChild(A),c.instance=A);case"void":return null;default:throw Error(a(443,c.type))}else c.type==="stylesheet"&&(c.state.loading&4)===0&&(v=c.instance,c.state.loading|=4,J1(v,h.precedence,l));return c.instance}function J1(l,c,h){for(var v=h.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),A=v.length?v[v.length-1]:null,O=A,j=0;j<v.length;j++){var J=v[j];if(J.dataset.precedence===c)O=J;else if(O!==A)break}O?O.parentNode.insertBefore(l,O.nextSibling):(c=h.nodeType===9?h.head:h,c.insertBefore(l,c.firstChild))}function p4(l,c){l.crossOrigin==null&&(l.crossOrigin=c.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=c.referrerPolicy),l.title==null&&(l.title=c.title)}function eg(l,c){l.crossOrigin==null&&(l.crossOrigin=c.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=c.referrerPolicy),l.integrity==null&&(l.integrity=c.integrity)}var eh=null;function Qd(l,c,h){if(eh===null){var v=new Map,A=eh=new Map;A.set(h,v)}else A=eh,v=A.get(h),v||(v=new Map,A.set(h,v));if(v.has(l))return v;for(v.set(l,null),h=h.getElementsByTagName(l),A=0;A<h.length;A++){var O=h[A];if(!(O[G0]||O[ur]||l==="link"&&O.getAttribute("rel")==="stylesheet")&&O.namespaceURI!=="http://www.w3.org/2000/svg"){var j=O.getAttribute(c)||"";j=l+j;var J=v.get(j);J?J.push(O):v.set(j,[O])}}return v}function h4(l,c,h){l=l.ownerDocument||l,l.head.insertBefore(h,c==="title"?l.querySelector("head > title"):null)}function D6(l,c,h){if(h===1||c.itemProp!=null)return!1;switch(l){case"meta":case"title":return!0;case"style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href==="")break;return!0;case"link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError)break;switch(c.rel){case"stylesheet":return l=c.disabled,typeof c.precedence=="string"&&l==null;default:return!0}case"script":if(c.async&&typeof c.async!="function"&&typeof c.async!="symbol"&&!c.onLoad&&!c.onError&&c.src&&typeof c.src=="string")return!0}return!1}function m4(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}var Kd=null;function _6(){}function N6(l,c,h){if(Kd===null)throw Error(a(475));var v=Kd;if(c.type==="stylesheet"&&(typeof h.media!="string"||matchMedia(h.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var A=Wd(h.href),O=l.querySelector(Zp(A));if(O){l=O._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(v.count++,v=Zd.bind(v),l.then(v,v)),c.state.loading|=4,c.instance=O,Fr(O);return}O=l.ownerDocument||l,h=d4(h),(A=Xr.get(A))&&p4(h,A),O=O.createElement("link"),Fr(O);var j=O;j._p=new Promise(function(J,de){j.onload=J,j.onerror=de}),Ie(O,"link",h),c.instance=O}v.stylesheets===null&&(v.stylesheets=new Map),v.stylesheets.set(c,l),(l=c.state.preload)&&(c.state.loading&3)===0&&(v.count++,c=Zd.bind(v),l.addEventListener("load",c),l.addEventListener("error",c))}}function z6(){if(Kd===null)throw Error(a(475));var l=Kd;return l.stylesheets&&l.count===0&&nh(l,l.stylesheets),0<l.count?function(c){var h=setTimeout(function(){if(l.stylesheets&&nh(l,l.stylesheets),l.unsuspend){var v=l.unsuspend;l.unsuspend=null,v()}},6e4);return l.unsuspend=c,function(){l.unsuspend=null,clearTimeout(h)}}:null}function Zd(){if(this.count--,this.count===0){if(this.stylesheets)nh(this,this.stylesheets);else if(this.unsuspend){var l=this.unsuspend;this.unsuspend=null,l()}}}var th=null;function nh(l,c){l.stylesheets=null,l.unsuspend!==null&&(l.count++,th=new Map,c.forEach(g4,l),th=null,Zd.call(l))}function g4(l,c){if(!(c.state.loading&4)){var h=th.get(l);if(h)var v=h.get(null);else{h=new Map,th.set(l,h);for(var A=l.querySelectorAll("link[data-precedence],style[data-precedence]"),O=0;O<A.length;O++){var j=A[O];(j.nodeName==="LINK"||j.getAttribute("media")!=="not all")&&(h.set(j.dataset.precedence,j),v=j)}v&&h.set(null,v)}A=c.instance,j=A.getAttribute("data-precedence"),O=h.get(j)||v,O===v&&h.set(null,A),h.set(j,A),this.count++,v=Zd.bind(this),A.addEventListener("load",v),A.addEventListener("error",v),O?O.parentNode.insertBefore(A,O.nextSibling):(l=l.nodeType===9?l.head:l,l.insertBefore(A,l.firstChild)),c.state.loading|=4}}var Ia={$$typeof:P,Provider:null,Consumer:null,_currentValue:ge,_currentValue2:ge,_threadCount:0};function jl(l,c,h,v,A,O,j,J){this.tag=1,this.containerInfo=l,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=Ke(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ke(0),this.hiddenUpdates=Ke(null),this.identifierPrefix=v,this.onUncaughtError=A,this.onCaughtError=O,this.onRecoverableError=j,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=J,this.incompleteTransitions=new Map}function L6(l,c,h,v,A,O,j,J,de,ke,Xe,Ze){return l=new jl(l,c,h,j,J,de,ke,Ze),c=1,O===!0&&(c|=24),O=xi(3,null,null,c),l.current=O,O.stateNode=l,c=Xv(),c.refCount++,l.pooledCache=c,c.refCount++,O.memoizedState={element:v,isDehydrated:h,cache:c},yp(O),l}function y4(l){return l?(l=qc,l):qc}function v4(l,c,h,v,A,O){A=y4(A),v.context===null?v.context=A:v.pendingContext=A,v=Es(c),v.payload={element:h},O=O===void 0?null:O,O!==null&&(v.callback=O),h=Ti(l,v,c),h!==null&&(Ni(h,l,c),Yc(h,l,c))}function b4(l,c){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var h=l.retryLane;l.retryLane=h!==0&&h<c?h:c}}function tg(l,c){b4(l,c),(l=l.alternate)&&b4(l,c)}function x4(l){if(l.tag===13){var c=gs(l,67108864);c!==null&&Ni(c,l,67108864),tg(l,67108864)}}var rh=!0;function I6(l,c,h,v){var A=K.T;K.T=null;var O=re.p;try{re.p=2,ng(l,c,h,v)}finally{re.p=O,K.T=A}}function B6(l,c,h,v){var A=K.T;K.T=null;var O=re.p;try{re.p=8,ng(l,c,h,v)}finally{re.p=O,K.T=A}}function ng(l,c,h,v){if(rh){var A=S4(v);if(A===null)Xp(l,c,v,ah,h),T4(l,v);else if(w4(A,l,c,h,v))v.stopPropagation();else if(T4(l,v),c&4&&-1<PT.indexOf(l)){for(;A!==null;){var O=ka(A);if(O!==null)switch(O.tag){case 3:if(O=O.stateNode,O.current.memoizedState.isDehydrated){var j=zn(O.pendingLanes);if(j!==0){var J=O;for(J.pendingLanes|=2,J.entangledLanes|=2;j;){var de=1<<31-lt(j);J.entanglements[1]|=de,j&=~de}sl(O),(Fn&6)===0&&(R1=bt()+500,zs(0))}}break;case 13:J=gs(O,2),J!==null&&Ni(J,O,2),$p(),tg(O,2)}if(O=S4(v),O===null&&Xp(l,c,v,ah,h),O===A)break;A=O}A!==null&&v.stopPropagation()}else Xp(l,c,v,null,h)}}function S4(l){return l=Dc(l),E4(l)}var ah=null;function E4(l){if(ah=null,l=vu(l),l!==null){var c=s(l);if(c===null)l=null;else{var h=c.tag;if(h===13){if(l=f(c),l!==null)return l;l=null}else if(h===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;l=null}else c!==l&&(l=null)}}return ah=l,null}function P6(l){switch(l){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(qt()){case ln:return 2;case Sn:return 8;case yt:case Et:return 32;case $n:return 268435456;default:return 32}default:return 32}}var rg=!1,fl=null,Hl=null,Us=null,Jd=new Map,ih=new Map,Ju=[],PT="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 T4(l,c){switch(l){case"focusin":case"focusout":fl=null;break;case"dragenter":case"dragleave":Hl=null;break;case"mouseover":case"mouseout":Us=null;break;case"pointerover":case"pointerout":Jd.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":ih.delete(c.pointerId)}}function ql(l,c,h,v,A,O){return l===null||l.nativeEvent!==O?(l={blockedOn:c,domEventName:h,eventSystemFlags:v,nativeEvent:O,targetContainers:[A]},c!==null&&(c=ka(c),c!==null&&x4(c)),l):(l.eventSystemFlags|=v,c=l.targetContainers,A!==null&&c.indexOf(A)===-1&&c.push(A),l)}function w4(l,c,h,v,A){switch(c){case"focusin":return fl=ql(fl,l,c,h,v,A),!0;case"dragenter":return Hl=ql(Hl,l,c,h,v,A),!0;case"mouseover":return Us=ql(Us,l,c,h,v,A),!0;case"pointerover":var O=A.pointerId;return Jd.set(O,ql(Jd.get(O)||null,l,c,h,v,A)),!0;case"gotpointercapture":return O=A.pointerId,ih.set(O,ql(ih.get(O)||null,l,c,h,v,A)),!0}return!1}function A4(l){var c=vu(l.target);if(c!==null){var h=s(c);if(h!==null){if(c=h.tag,c===13){if(c=f(h),c!==null){l.blockedOn=c,Gf(l.priority,function(){if(h.tag===13){var v=Zi();v=zt(v);var A=gs(h,v);A!==null&&Ni(A,h,v),tg(h,v)}});return}}else if(c===3&&h.stateNode.current.memoizedState.isDehydrated){l.blockedOn=h.tag===3?h.stateNode.containerInfo:null;return}}}l.blockedOn=null}function oh(l){if(l.blockedOn!==null)return!1;for(var c=l.targetContainers;0<c.length;){var h=S4(l.nativeEvent);if(h===null){h=l.nativeEvent;var v=new h.constructor(h.type,h);Cm=v,h.target.dispatchEvent(v),Cm=null}else return c=ka(h),c!==null&&x4(c),l.blockedOn=h,!1;c.shift()}return!0}function C4(l,c,h){oh(l)&&h.delete(c)}function ag(){rg=!1,fl!==null&&oh(fl)&&(fl=null),Hl!==null&&oh(Hl)&&(Hl=null),Us!==null&&oh(Us)&&(Us=null),Jd.forEach(C4),ih.forEach(C4)}function $s(l,c){l.blockedOn===c&&(l.blockedOn=null,rg||(rg=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,ag)))}var ig=null;function lh(l){ig!==l&&(ig=l,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){ig===l&&(ig=null);for(var c=0;c<l.length;c+=3){var h=l[c],v=l[c+1],A=l[c+2];if(typeof v!="function"){if(E4(v||h)===null)continue;break}var O=ka(h);O!==null&&(l.splice(c,3),c-=3,yb(O,{pending:!0,data:A,method:h.method,action:v},v,A))}}))}function e0(l){function c(de){return $s(de,l)}fl!==null&&$s(fl,l),Hl!==null&&$s(Hl,l),Us!==null&&$s(Us,l),Jd.forEach(c),ih.forEach(c);for(var h=0;h<Ju.length;h++){var v=Ju[h];v.blockedOn===l&&(v.blockedOn=null)}for(;0<Ju.length&&(h=Ju[0],h.blockedOn===null);)A4(h),h.blockedOn===null&&Ju.shift();if(h=(l.ownerDocument||l).$$reactFormReplay,h!=null)for(v=0;v<h.length;v+=3){var A=h[v],O=h[v+1],j=A[Ua]||null;if(typeof O=="function")j||lh(h);else if(j){var J=null;if(O&&O.hasAttribute("formAction")){if(A=O,j=O[Ua]||null)J=j.formAction;else if(E4(A)!==null)continue}else J=j.action;typeof J=="function"?h[v+1]=J:(h.splice(v,3),v-=3),lh(h)}}}function ec(l){this._internalRoot=l}og.prototype.render=ec.prototype.render=function(l){var c=this._internalRoot;if(c===null)throw Error(a(409));var h=c.current,v=Zi();v4(h,v,l,c,null,null)},og.prototype.unmount=ec.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var c=l.containerInfo;v4(l.current,2,null,l,null,null),$p(),c[Oc]=null}};function og(l){this._internalRoot=l}og.prototype.unstable_scheduleHydration=function(l){if(l){var c=Lr();l={blockedOn:null,target:l,priority:c};for(var h=0;h<Ju.length&&c!==0&&c<Ju[h].priority;h++);Ju.splice(h,0,l),h===0&&A4(l)}};var V6=t.version;if(V6!=="19.1.1")throw Error(a(527,V6,"19.1.1"));re.findDOMNode=function(l){var c=l._reactInternals;if(c===void 0)throw typeof l.render=="function"?Error(a(188)):(l=Object.keys(l).join(","),Error(a(268,l)));return l=m(c),l=l!==null?y(l):null,l=l===null?null:l.stateNode,l};var U6={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:K,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Aa=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Aa.isDisabled&&Aa.supportsFiber)try{ve=Aa.inject(U6),ze=Aa}catch{}}return fv.createRoot=function(l,c){if(!o(l))throw Error(a(299));var h=!1,v="",A=Ab,O=Dd,j=Cb,J=null;return c!=null&&(c.unstable_strictMode===!0&&(h=!0),c.identifierPrefix!==void 0&&(v=c.identifierPrefix),c.onUncaughtError!==void 0&&(A=c.onUncaughtError),c.onCaughtError!==void 0&&(O=c.onCaughtError),c.onRecoverableError!==void 0&&(j=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(J=c.unstable_transitionCallbacks)),c=L6(l,1,!1,null,null,h,v,A,O,j,J,null),l[Oc]=c.current,Yp(l),new ec(c)},fv.hydrateRoot=function(l,c,h){if(!o(l))throw Error(a(299));var v=!1,A="",O=Ab,j=Dd,J=Cb,de=null,ke=null;return h!=null&&(h.unstable_strictMode===!0&&(v=!0),h.identifierPrefix!==void 0&&(A=h.identifierPrefix),h.onUncaughtError!==void 0&&(O=h.onUncaughtError),h.onCaughtError!==void 0&&(j=h.onCaughtError),h.onRecoverableError!==void 0&&(J=h.onRecoverableError),h.unstable_transitionCallbacks!==void 0&&(de=h.unstable_transitionCallbacks),h.formState!==void 0&&(ke=h.formState)),c=L6(l,1,!0,c,h??null,v,A,O,j,J,de,ke),c.context=y4(null),h=c.current,v=Zi(),v=zt(v),A=Es(v),A.callback=null,Ti(h,A,v),h=v,c.current.lanes=h,nt(c,h),sl(c),l[Oc]=c.current,Yp(l),new og(c)},fv.version="19.1.1",fv}var dv={},JD;function oie(){if(JD)return dv;JD=1;var e={};/**
640
640
  * @license React
641
641
  * react-dom-client.development.js
@@ -733,14 +733,14 @@ Please update the following component: %s`,b),j_=!0}return(Wn&ao)!==dl?(b=g.pend
733
733
  See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Mu(r,i){if($4)return!1;if(i===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",$e),!1;r.length!==i.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
734
734
 
735
735
  Previous: %s
736
- Incoming: %s`,$e,"["+i.join(", ")+"]","["+r.join(", ")+"]");for(var u=0;u<i.length&&u<r.length;u++)if(!to(r[u],i[u]))return!1;return!0}function ud(r,i,u,g,b,E){r0=E,nn=i,Jl=r!==null?r._debugHookTypes:null,vf=-1,$4=r!==null&&r.type!==i.type,(Object.prototype.toString.call(u)==="[object AsyncFunction]"||Object.prototype.toString.call(u)==="[object AsyncGeneratorFunction]")&&(E=Z(nn),tw.has(E)||(tw.add(E),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",E===null?"An unknown Component":"<"+E+">"))),i.memoizedState=null,i.updateQueue=null,i.lanes=0,Ie.H=r!==null&&r.memoizedState!==null?rw:Jl!==null?F_:nw,hh=E=(i.mode&Ii)!==Cr;var D=aw(u,g,b);if(hh=!1,xg&&(D=Si(i,u,g,b)),E){Ue(!0);try{D=Si(i,u,g,b)}finally{Ue(!1)}}return sp(r,i),D}function sp(r,i){i._debugHookTypes=Jl,i.dependencies===null?yf!==null&&(i.dependencies={lanes:0,firstContext:null,_debugThenableState:yf}):i.dependencies._debugThenableState=yf,Ie.H=eS;var u=pr!==null&&pr.next!==null;if(r0=0,Jl=$e=Oa=pr=nn=null,vf=-1,r!==null&&(r.flags&65011712)!==(i.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Z6=!1,U4=0,yf=null,u)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");r===null||Fa||(r=r.dependencies,r!==null&&ap(r)&&(Fa=!0)),Q6?(Q6=!1,r=!0):r=!1,r&&(i=Z(i)||"Unknown",q_.has(i)||tw.has(i)||(q_.add(i),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function Si(r,i,u,g){nn=r;var b=0;do{if(xg&&(yf=null),U4=0,xg=!1,b>=rle)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(b+=1,$4=!1,Oa=pr=null,r.updateQueue!=null){var E=r.updateQueue;E.lastEffect=null,E.events=null,E.stores=null,E.memoCache!=null&&(E.memoCache.index=0)}vf=-1,Ie.H=Y_,E=aw(i,u,g)}while(xg);return E}function xo(){var r=Ie.H,i=r.useState()[0];return i=typeof i.then=="function"?Gc(i):i,r=r.useState()[0],(pr!==null?pr.memoizedState:null)!==r&&(nn.flags|=1024),i}function ys(){var r=J6!==0;return J6=0,r}function Xo(r,i,u){i.updateQueue=r.updateQueue,i.flags=(i.mode&js)!==Cr?i.flags&-402655237:i.flags&-2053,r.lanes&=~u}function Wo(r){if(Z6){for(r=r.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Z6=!1}r0=0,Jl=Oa=pr=nn=null,vf=-1,$e=null,xg=!1,U4=J6=0,yf=null}function ta(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Oa===null?nn.memoizedState=Oa=r:Oa=Oa.next=r,Oa}function Gn(){if(pr===null){var r=nn.alternate;r=r!==null?r.memoizedState:null}else r=pr.next;var i=Oa===null?nn.memoizedState:Oa.next;if(i!==null)Oa=i,pr=r;else{if(r===null)throw nn.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");pr=r,r={memoizedState:pr.memoizedState,baseState:pr.baseState,baseQueue:pr.baseQueue,queue:pr.queue,next:null},Oa===null?nn.memoizedState=Oa=r:Oa=Oa.next=r}return Oa}function up(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Gc(r){var i=U4;return U4+=1,yf===null&&(yf=qv()),r=Gv(yf,r,i),i=nn,(Oa===null?i.memoizedState:Oa.next)===null&&(i=i.alternate,Ie.H=i!==null&&i.memoizedState!==null?rw:nw),r}function Ir(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Gc(r);if(r.$$typeof===zi)return yr(r)}throw Error("An unsupported type was passed to use(): "+String(r))}function tr(r){var i=null,u=nn.updateQueue;if(u!==null&&(i=u.memoCache),i==null){var g=nn.alternate;g!==null&&(g=g.updateQueue,g!==null&&(g=g.memoCache,g!=null&&(i={data:g.data.map(function(b){return b.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),u===null&&(u=up(),nn.updateQueue=u),u.memoCache=i,u=i.data[i.index],u===void 0||$4)for(u=i.data[i.index]=Array(r),g=0;g<r;g++)u[g]=R6;else u.length!==r&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",u.length,r);return i.index++,u}function mn(r,i){return typeof i=="function"?i(r):i}function vs(r,i,u){var g=ta();if(u!==void 0){var b=u(i);if(hh){Ue(!0);try{u(i)}finally{Ue(!1)}}}else b=i;return g.memoizedState=g.baseState=b,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:b},g.queue=r,r=r.dispatch=bp.bind(null,nn,r),[g.memoizedState,r]}function ti(r){var i=Gn();return cp(i,pr,r)}function cp(r,i,u){var g=r.queue;if(g===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");g.lastRenderedReducer=u;var b=r.baseQueue,E=g.pending;if(E!==null){if(b!==null){var D=b.next;b.next=E.next,E.next=D}i.baseQueue!==b&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),i.baseQueue=b=E,g.pending=null}if(E=r.baseState,b===null)r.memoizedState=E;else{i=b.next;var U=D=null,te=null,oe=i,Be=!1;do{var je=oe.lane&-536870913;if(je!==oe.lane?(kn&je)===je:(r0&je)===je){var Le=oe.revertLane;if(Le===0)te!==null&&(te=te.next={lane:0,revertLane:0,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null}),je===fh&&(Be=!0);else if((r0&Le)===Le){oe=oe.next,Le===fh&&(Be=!0);continue}else je={lane:0,revertLane:oe.revertLane,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null},te===null?(U=te=je,D=E):te=te.next=je,nn.lanes|=Le,o0|=Le;je=oe.action,hh&&u(E,je),E=oe.hasEagerState?oe.eagerState:u(E,je)}else Le={lane:je,revertLane:oe.revertLane,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null},te===null?(U=te=Le,D=E):te=te.next=Le,nn.lanes|=je,o0|=je;oe=oe.next}while(oe!==null&&oe!==i);if(te===null?D=E:te.next=U,!to(E,r.memoizedState)&&(Fa=!0,Be&&(u=yg,u!==null)))throw u;r.memoizedState=E,r.baseState=D,r.baseQueue=te,g.lastRenderedState=E}return b===null&&(g.lanes=0),[r.memoizedState,g.dispatch]}function Qo(r){var i=Gn(),u=i.queue;if(u===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");u.lastRenderedReducer=r;var g=u.dispatch,b=u.pending,E=i.memoizedState;if(b!==null){u.pending=null;var D=b=b.next;do E=r(E,D.action),D=D.next;while(D!==b);to(E,i.memoizedState)||(Fa=!0),i.memoizedState=E,i.baseQueue===null&&(i.baseState=E),u.lastRenderedState=E}return[E,g]}function Ym(r,i,u){var g=nn,b=ta();if(Vn){if(u===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var E=u();bg||E===u()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),bg=!0)}else{if(E=i(),bg||(u=i(),to(E,u)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),bg=!0)),Sr===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(kn&124)!==0||cd(g,i,E)}return b.memoizedState=E,u={value:E,getSnapshot:i},b.queue=u,hp(Fv.bind(null,g,u,r),[r]),g.flags|=2048,zl(Zl|Pa,md(),fd.bind(null,g,u,E,i),null),E}function fp(r,i,u){var g=nn,b=Gn(),E=Vn;if(E){if(u===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");u=u()}else if(u=i(),!bg){var D=i();to(u,D)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),bg=!0)}(D=!to((pr||b).memoizedState,u))&&(b.memoizedState=u,Fa=!0),b=b.queue;var U=Fv.bind(null,g,b,r);if(Ei(2048,Pa,U,[r]),b.getSnapshot!==i||D||Oa!==null&&Oa.memoizedState.tag&Zl){if(g.flags|=2048,zl(Zl|Pa,md(),fd.bind(null,g,b,u,i),null),Sr===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");E||(r0&124)!==0||cd(g,i,u)}return u}function cd(r,i,u){r.flags|=16384,r={getSnapshot:i,value:u},i=nn.updateQueue,i===null?(i=up(),nn.updateQueue=i,i.stores=[r]):(u=i.stores,u===null?i.stores=[r]:u.push(r))}function fd(r,i,u,g){i.value=u,i.getSnapshot=g,dd(i)&&Xm(r)}function Fv(r,i,u){return u(function(){dd(i)&&Xm(r)})}function dd(r){var i=r.getSnapshot;r=r.value;try{var u=i();return!to(r,u)}catch{return!0}}function Xm(r){var i=vi(r,2);i!==null&&wn(i,r,2)}function bs(r){var i=ta();if(typeof r=="function"){var u=r;if(r=u(),hh){Ue(!0);try{u()}finally{Ue(!1)}}}return i.memoizedState=i.baseState=r,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:r},i}function Ko(r){r=bs(r);var i=r.queue,u=Sd.bind(null,nn,i);return i.dispatch=u,[r.memoizedState,u]}function _l(r){var i=ta();i.memoizedState=i.baseState=r;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=u,i=t1.bind(null,nn,!0,u),u.dispatch=i,[r,i]}function Nl(r,i){var u=Gn();return Wm(u,pr,r,i)}function Wm(r,i,u,g){return r.baseState=u,cp(r,pr,typeof g=="function"?g:mn)}function Qm(r,i){var u=Gn();return pr!==null?Wm(u,pr,r,i):(u.baseState=r,[r,u.queue.dispatch])}function dp(r,i,u,g,b){if(Ts(r))throw Error("Cannot update form state while rendering.");if(r=i.action,r!==null){var E={payload:b,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(D){E.listeners.push(D)}};Ie.T!==null?u(!0):E.isTransition=!1,g(E),u=i.pending,u===null?(E.next=i.pending=E,pp(i,E)):(E.next=u.next,i.pending=u.next=E)}}function pp(r,i){var u=i.action,g=i.payload,b=r.state;if(i.isTransition){var E=Ie.T,D={};Ie.T=D,Ie.T._updatedFibers=new Set;try{var U=u(b,g),te=Ie.S;te!==null&&te(D,U),ku(r,i,U)}catch(oe){pd(r,i,oe)}finally{Ie.T=E,E===null&&D._updatedFibers&&(r=D._updatedFibers.size,D._updatedFibers.clear(),10<r&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{D=u(b,g),ku(r,i,D)}catch(oe){pd(r,i,oe)}}function ku(r,i,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?(u.then(function(g){_a(r,i,g)},function(g){return pd(r,i,g)}),i.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):_a(r,i,u)}function _a(r,i,u){i.status="fulfilled",i.value=u,Yv(i),r.state=u,i=r.pending,i!==null&&(u=i.next,u===i?r.pending=null:(u=u.next,i.next=u,pp(r,u)))}function pd(r,i,u){var g=r.pending;if(r.pending=null,g!==null){g=g.next;do i.status="rejected",i.reason=u,Yv(i),i=i.next;while(i!==g)}r.action=null}function Yv(r){r=r.listeners;for(var i=0;i<r.length;i++)(0,r[i])()}function Wx(r,i){return i}function hd(r,i){if(Vn){var u=Sr.formState;if(u!==null){e:{var g=nn;if(Vn){if(ia){t:{for(var b=ia,E=tc;b.nodeType!==8;){if(!E){b=null;break t}if(b=_i(b.nextSibling),b===null){b=null;break t}}E=b.data,b=E===kw||E===GN?b:null}if(b){ia=_i(b.nextSibling),g=b.data===kw;break e}}Eu(g)}g=!1}g&&(i=u[0])}}return u=ta(),u.memoizedState=u.baseState=i,g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wx,lastRenderedState:i},u.queue=g,u=Sd.bind(null,nn,g),g.dispatch=u,g=bs(!1),E=t1.bind(null,nn,!1,g.queue),g=ta(),b={state:i,dispatch:null,action:r,pending:null},g.queue=b,u=dp.bind(null,nn,b,E,u),b.dispatch=u,g.memoizedState=r,[i,u,!1]}function Km(r){var i=Gn();return na(i,pr,r)}function na(r,i,u){if(i=cp(r,i,Wx)[0],r=ti(mn)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var g=Gc(i)}catch(D){throw D===P4?W6:D}else g=i;i=Gn();var b=i.queue,E=b.dispatch;return u!==i.memoizedState&&(nn.flags|=2048,zl(Zl|Pa,md(),Xv.bind(null,b,u),null)),[g,E,r]}function Xv(r,i){r.action=i}function Du(r){var i=Gn(),u=pr;if(u!==null)return na(i,u,r);Gn(),i=i.memoizedState,u=Gn();var g=u.queue.dispatch;return u.memoizedState=r,[i,g,!1]}function zl(r,i,u,g){return r={tag:r,create:u,deps:g,inst:i,next:null},i=nn.updateQueue,i===null&&(i=up(),nn.updateQueue=i),u=i.lastEffect,u===null?i.lastEffect=r.next=r:(g=u.next,u.next=r,r.next=g,i.lastEffect=r),r}function md(){return{destroy:void 0,resource:void 0}}function _u(r){var i=ta();return r={current:r},i.memoizedState=r}function So(r,i,u,g){var b=ta();g=g===void 0?null:g,nn.flags|=r,b.memoizedState=zl(Zl|i,md(),u,g)}function Ei(r,i,u,g){var b=Gn();g=g===void 0?null:g;var E=b.memoizedState.inst;pr!==null&&g!==null&&Mu(g,pr.memoizedState.deps)?b.memoizedState=zl(i,E,u,g):(nn.flags|=r,b.memoizedState=zl(Zl|i,E,u,g))}function hp(r,i){(nn.mode&js)!==Cr&&(nn.mode&M_)===Cr?So(276826112,Pa,r,i):So(8390656,Pa,r,i)}function Wv(r,i){var u=4194308;return(nn.mode&js)!==Cr&&(u|=134217728),So(u,ii,r,i)}function Qv(r,i){if(typeof i=="function"){r=r();var u=i(r);return function(){typeof u=="function"?u():i(null)}}if(i!=null)return i.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(i).join(", ")+"}"),r=r(),i.current=r,function(){i.current=null}}function xs(r,i,u){typeof i!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",i!==null?typeof i:"null"),u=u!=null?u.concat([r]):null;var g=4194308;(nn.mode&js)!==Cr&&(g|=134217728),So(g,ii,Qv.bind(null,i,r),u)}function gd(r,i,u){typeof i!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",i!==null?typeof i:"null"),u=u!=null?u.concat([r]):null,Ei(4,ii,Qv.bind(null,i,r),u)}function yd(r,i){return ta().memoizedState=[r,i===void 0?null:i],r}function mp(r,i){var u=Gn();i=i===void 0?null:i;var g=u.memoizedState;return i!==null&&Mu(i,g[1])?g[0]:(u.memoizedState=[r,i],r)}function Fc(r,i){var u=ta();i=i===void 0?null:i;var g=r();if(hh){Ue(!0);try{r()}finally{Ue(!1)}}return u.memoizedState=[g,i],g}function gp(r,i){var u=Gn();i=i===void 0?null:i;var g=u.memoizedState;if(i!==null&&Mu(i,g[1]))return g[0];if(g=r(),hh){Ue(!0);try{r()}finally{Ue(!1)}}return u.memoizedState=[g,i],g}function vd(r,i){var u=ta();return bd(u,r,i)}function Zm(r,i){var u=Gn();return Zv(u,pr.memoizedState,r,i)}function Kv(r,i){var u=Gn();return pr===null?bd(u,r,i):Zv(u,pr.memoizedState,r,i)}function bd(r,i,u){return u===void 0||(r0&1073741824)!==0?r.memoizedState=i:(r.memoizedState=u,r=Mb(),nn.lanes|=r,o0|=r,u)}function Zv(r,i,u,g){return to(u,i)?u:vg.current!==null?(r=bd(r,u,g),to(r,i)||(Fa=!0),r):(r0&42)===0?(Fa=!0,r.memoizedState=u):(r=Mb(),nn.lanes|=r,o0|=r,i)}function xd(r,i,u,g,b){var E=Hn.p;Hn.p=E!==0&&E<$l?E:$l;var D=Ie.T,U={};Ie.T=U,t1(r,!1,i,u),U._updatedFibers=new Set;try{var te=b(),oe=Ie.S;if(oe!==null&&oe(U,te),te!==null&&typeof te=="object"&&typeof te.then=="function"){var Be=CT(te,g);Ed(r,i,Be,Wi(r))}else Ed(r,i,g,Wi(r))}catch(je){Ed(r,i,{then:function(){},status:"rejected",reason:je},Wi(r))}finally{Hn.p=E,Ie.T=D,D===null&&U._updatedFibers&&(r=U._updatedFibers.size,U._updatedFibers.clear(),10<r&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function Jm(r,i,u,g){if(r.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var b=Jv(r).queue;xd(r,b,i,Ah,u===null?S:function(){return Ss(r),u(g)})}function Jv(r){var i=r.memoizedState;if(i!==null)return i;i={memoizedState:Ah,baseState:Ah,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:Ah},next:null};var u={};return i.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:u},next:null},r.memoizedState=i,r=r.alternate,r!==null&&(r.memoizedState=i),i}function Ss(r){Ie.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var i=Jv(r).next.queue;Ed(r,i,{},Wi(r))}function yp(){var r=bs(!1);return r=xd.bind(null,nn,r.queue,!0,!1),ta().memoizedState=r,[!1,r]}function e1(){var r=ti(mn)[0],i=Gn().memoizedState;return[typeof r=="boolean"?r:Gc(r),i]}function Es(){var r=Qo(mn)[0],i=Gn().memoizedState;return[typeof r=="boolean"?r:Gc(r),i]}function Ti(){return yr(a5)}function Yc(){var r=ta(),i=Sr.identifierPrefix;if(Vn){var u=mf,g=hf;u=(g&~(1<<32-wa(g)-1)).toString(32)+u,i="«"+i+"R"+u,u=J6++,0<u&&(i+="H"+u.toString(32)),i+="»"}else u=nle++,i="«"+i+"r"+u.toString(32)+"»";return r.memoizedState=i}function vp(){return ta().memoizedState=eb.bind(null,nn)}function eb(r,i){for(var u=r.return;u!==null;){switch(u.tag){case 24:case 3:var g=Wi(u);r=Go(g);var b=Fo(u,r,g);b!==null&&(wn(b,u,g),Hc(b,u,g)),u=Uv(),i!=null&&b!==null&&console.error("The seed argument is not enabled outside experimental channels."),r.payload={cache:u};return}u=u.return}}function bp(r,i,u){var g=arguments;typeof g[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),g=Wi(r);var b={lane:g,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};Ts(r)?xp(i,b):(b=Dv(r,i,b,g),b!==null&&(wn(b,r,g),tb(b,i,g))),pt(r,g)}function Sd(r,i,u){var g=arguments;typeof g[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),g=Wi(r),Ed(r,i,u,g),pt(r,g)}function Ed(r,i,u,g){var b={lane:g,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};if(Ts(r))xp(i,b);else{var E=r.alternate;if(r.lanes===0&&(E===null||E.lanes===0)&&(E=i.lastRenderedReducer,E!==null)){var D=Ie.H;Ie.H=qs;try{var U=i.lastRenderedState,te=E(U,u);if(b.hasEagerState=!0,b.eagerState=te,to(te,U))return Nm(r,i,b,0),Sr===null&&_m(),!1}catch{}finally{Ie.H=D}}if(u=Dv(r,i,b,g),u!==null)return wn(u,r,g),tb(u,i,g),!0}return!1}function t1(r,i,u,g){if(Ie.T===null&&fh===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),g={lane:2,revertLane:C1(),action:g,hasEagerState:!1,eagerState:null,next:null},Ts(r)){if(i)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else i=Dv(r,u,g,2),i!==null&&wn(i,r,2);pt(r,2)}function Ts(r){var i=r.alternate;return r===nn||i!==null&&i===nn}function xp(r,i){xg=Z6=!0;var u=r.pending;u===null?i.next=i:(i.next=u.next,u.next=i),r.pending=i}function tb(r,i,u){if((u&4194048)!==0){var g=i.lanes;g&=r.pendingLanes,u|=g,i.lanes=u,ze(r,u)}}function ca(r){var i=Tn;return r!=null&&(Tn=i===null?r:i.concat(r)),i}function Td(r,i,u){for(var g=Object.keys(r.props),b=0;b<g.length;b++){var E=g[b];if(E!=="children"&&E!=="key"){i===null&&(i=rp(r,u.mode,0),i._debugInfo=Tn,i.return=u),Mt(i,function(D){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",D)},E);break}}}function Zo(r){var i=j4;return j4+=1,Sg===null&&(Sg=qv()),Gv(Sg,r,i)}function an(r,i){i=i.props.ref,r.ref=i!==void 0?i:null}function jn(r,i){throw i.$$typeof===zT?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
736
+ Incoming: %s`,$e,"["+i.join(", ")+"]","["+r.join(", ")+"]");for(var u=0;u<i.length&&u<r.length;u++)if(!to(r[u],i[u]))return!1;return!0}function ud(r,i,u,g,b,E){r0=E,nn=i,Jl=r!==null?r._debugHookTypes:null,vf=-1,$4=r!==null&&r.type!==i.type,(Object.prototype.toString.call(u)==="[object AsyncFunction]"||Object.prototype.toString.call(u)==="[object AsyncGeneratorFunction]")&&(E=Z(nn),tw.has(E)||(tw.add(E),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",E===null?"An unknown Component":"<"+E+">"))),i.memoizedState=null,i.updateQueue=null,i.lanes=0,Ie.H=r!==null&&r.memoizedState!==null?rw:Jl!==null?F_:nw,hh=E=(i.mode&Ii)!==Or;var D=aw(u,g,b);if(hh=!1,xg&&(D=Si(i,u,g,b)),E){Ue(!0);try{D=Si(i,u,g,b)}finally{Ue(!1)}}return sp(r,i),D}function sp(r,i){i._debugHookTypes=Jl,i.dependencies===null?yf!==null&&(i.dependencies={lanes:0,firstContext:null,_debugThenableState:yf}):i.dependencies._debugThenableState=yf,Ie.H=eS;var u=pr!==null&&pr.next!==null;if(r0=0,Jl=$e=Oa=pr=nn=null,vf=-1,r!==null&&(r.flags&65011712)!==(i.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Z6=!1,U4=0,yf=null,u)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");r===null||Fa||(r=r.dependencies,r!==null&&ap(r)&&(Fa=!0)),Q6?(Q6=!1,r=!0):r=!1,r&&(i=Z(i)||"Unknown",q_.has(i)||tw.has(i)||(q_.add(i),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function Si(r,i,u,g){nn=r;var b=0;do{if(xg&&(yf=null),U4=0,xg=!1,b>=rle)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(b+=1,$4=!1,Oa=pr=null,r.updateQueue!=null){var E=r.updateQueue;E.lastEffect=null,E.events=null,E.stores=null,E.memoCache!=null&&(E.memoCache.index=0)}vf=-1,Ie.H=Y_,E=aw(i,u,g)}while(xg);return E}function xo(){var r=Ie.H,i=r.useState()[0];return i=typeof i.then=="function"?Gc(i):i,r=r.useState()[0],(pr!==null?pr.memoizedState:null)!==r&&(nn.flags|=1024),i}function ys(){var r=J6!==0;return J6=0,r}function Xo(r,i,u){i.updateQueue=r.updateQueue,i.flags=(i.mode&js)!==Or?i.flags&-402655237:i.flags&-2053,r.lanes&=~u}function Wo(r){if(Z6){for(r=r.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Z6=!1}r0=0,Jl=Oa=pr=nn=null,vf=-1,$e=null,xg=!1,U4=J6=0,yf=null}function ta(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Oa===null?nn.memoizedState=Oa=r:Oa=Oa.next=r,Oa}function Gn(){if(pr===null){var r=nn.alternate;r=r!==null?r.memoizedState:null}else r=pr.next;var i=Oa===null?nn.memoizedState:Oa.next;if(i!==null)Oa=i,pr=r;else{if(r===null)throw nn.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");pr=r,r={memoizedState:pr.memoizedState,baseState:pr.baseState,baseQueue:pr.baseQueue,queue:pr.queue,next:null},Oa===null?nn.memoizedState=Oa=r:Oa=Oa.next=r}return Oa}function up(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Gc(r){var i=U4;return U4+=1,yf===null&&(yf=qv()),r=Gv(yf,r,i),i=nn,(Oa===null?i.memoizedState:Oa.next)===null&&(i=i.alternate,Ie.H=i!==null&&i.memoizedState!==null?rw:nw),r}function Ir(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Gc(r);if(r.$$typeof===zi)return yr(r)}throw Error("An unsupported type was passed to use(): "+String(r))}function tr(r){var i=null,u=nn.updateQueue;if(u!==null&&(i=u.memoCache),i==null){var g=nn.alternate;g!==null&&(g=g.updateQueue,g!==null&&(g=g.memoCache,g!=null&&(i={data:g.data.map(function(b){return b.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),u===null&&(u=up(),nn.updateQueue=u),u.memoCache=i,u=i.data[i.index],u===void 0||$4)for(u=i.data[i.index]=Array(r),g=0;g<r;g++)u[g]=R6;else u.length!==r&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",u.length,r);return i.index++,u}function mn(r,i){return typeof i=="function"?i(r):i}function vs(r,i,u){var g=ta();if(u!==void 0){var b=u(i);if(hh){Ue(!0);try{u(i)}finally{Ue(!1)}}}else b=i;return g.memoizedState=g.baseState=b,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:b},g.queue=r,r=r.dispatch=bp.bind(null,nn,r),[g.memoizedState,r]}function ti(r){var i=Gn();return cp(i,pr,r)}function cp(r,i,u){var g=r.queue;if(g===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");g.lastRenderedReducer=u;var b=r.baseQueue,E=g.pending;if(E!==null){if(b!==null){var D=b.next;b.next=E.next,E.next=D}i.baseQueue!==b&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),i.baseQueue=b=E,g.pending=null}if(E=r.baseState,b===null)r.memoizedState=E;else{i=b.next;var U=D=null,te=null,oe=i,Be=!1;do{var je=oe.lane&-536870913;if(je!==oe.lane?(kn&je)===je:(r0&je)===je){var Le=oe.revertLane;if(Le===0)te!==null&&(te=te.next={lane:0,revertLane:0,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null}),je===fh&&(Be=!0);else if((r0&Le)===Le){oe=oe.next,Le===fh&&(Be=!0);continue}else je={lane:0,revertLane:oe.revertLane,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null},te===null?(U=te=je,D=E):te=te.next=je,nn.lanes|=Le,o0|=Le;je=oe.action,hh&&u(E,je),E=oe.hasEagerState?oe.eagerState:u(E,je)}else Le={lane:je,revertLane:oe.revertLane,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null},te===null?(U=te=Le,D=E):te=te.next=Le,nn.lanes|=je,o0|=je;oe=oe.next}while(oe!==null&&oe!==i);if(te===null?D=E:te.next=U,!to(E,r.memoizedState)&&(Fa=!0,Be&&(u=yg,u!==null)))throw u;r.memoizedState=E,r.baseState=D,r.baseQueue=te,g.lastRenderedState=E}return b===null&&(g.lanes=0),[r.memoizedState,g.dispatch]}function Qo(r){var i=Gn(),u=i.queue;if(u===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");u.lastRenderedReducer=r;var g=u.dispatch,b=u.pending,E=i.memoizedState;if(b!==null){u.pending=null;var D=b=b.next;do E=r(E,D.action),D=D.next;while(D!==b);to(E,i.memoizedState)||(Fa=!0),i.memoizedState=E,i.baseQueue===null&&(i.baseState=E),u.lastRenderedState=E}return[E,g]}function Ym(r,i,u){var g=nn,b=ta();if(Vn){if(u===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var E=u();bg||E===u()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),bg=!0)}else{if(E=i(),bg||(u=i(),to(E,u)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),bg=!0)),Sr===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(kn&124)!==0||cd(g,i,E)}return b.memoizedState=E,u={value:E,getSnapshot:i},b.queue=u,hp(Fv.bind(null,g,u,r),[r]),g.flags|=2048,zl(Zl|Pa,md(),fd.bind(null,g,u,E,i),null),E}function fp(r,i,u){var g=nn,b=Gn(),E=Vn;if(E){if(u===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");u=u()}else if(u=i(),!bg){var D=i();to(u,D)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),bg=!0)}(D=!to((pr||b).memoizedState,u))&&(b.memoizedState=u,Fa=!0),b=b.queue;var U=Fv.bind(null,g,b,r);if(Ei(2048,Pa,U,[r]),b.getSnapshot!==i||D||Oa!==null&&Oa.memoizedState.tag&Zl){if(g.flags|=2048,zl(Zl|Pa,md(),fd.bind(null,g,b,u,i),null),Sr===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");E||(r0&124)!==0||cd(g,i,u)}return u}function cd(r,i,u){r.flags|=16384,r={getSnapshot:i,value:u},i=nn.updateQueue,i===null?(i=up(),nn.updateQueue=i,i.stores=[r]):(u=i.stores,u===null?i.stores=[r]:u.push(r))}function fd(r,i,u,g){i.value=u,i.getSnapshot=g,dd(i)&&Xm(r)}function Fv(r,i,u){return u(function(){dd(i)&&Xm(r)})}function dd(r){var i=r.getSnapshot;r=r.value;try{var u=i();return!to(r,u)}catch{return!0}}function Xm(r){var i=vi(r,2);i!==null&&wn(i,r,2)}function bs(r){var i=ta();if(typeof r=="function"){var u=r;if(r=u(),hh){Ue(!0);try{u()}finally{Ue(!1)}}}return i.memoizedState=i.baseState=r,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:r},i}function Ko(r){r=bs(r);var i=r.queue,u=Sd.bind(null,nn,i);return i.dispatch=u,[r.memoizedState,u]}function _l(r){var i=ta();i.memoizedState=i.baseState=r;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=u,i=t1.bind(null,nn,!0,u),u.dispatch=i,[r,i]}function Nl(r,i){var u=Gn();return Wm(u,pr,r,i)}function Wm(r,i,u,g){return r.baseState=u,cp(r,pr,typeof g=="function"?g:mn)}function Qm(r,i){var u=Gn();return pr!==null?Wm(u,pr,r,i):(u.baseState=r,[r,u.queue.dispatch])}function dp(r,i,u,g,b){if(Ts(r))throw Error("Cannot update form state while rendering.");if(r=i.action,r!==null){var E={payload:b,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(D){E.listeners.push(D)}};Ie.T!==null?u(!0):E.isTransition=!1,g(E),u=i.pending,u===null?(E.next=i.pending=E,pp(i,E)):(E.next=u.next,i.pending=u.next=E)}}function pp(r,i){var u=i.action,g=i.payload,b=r.state;if(i.isTransition){var E=Ie.T,D={};Ie.T=D,Ie.T._updatedFibers=new Set;try{var U=u(b,g),te=Ie.S;te!==null&&te(D,U),ku(r,i,U)}catch(oe){pd(r,i,oe)}finally{Ie.T=E,E===null&&D._updatedFibers&&(r=D._updatedFibers.size,D._updatedFibers.clear(),10<r&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{D=u(b,g),ku(r,i,D)}catch(oe){pd(r,i,oe)}}function ku(r,i,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?(u.then(function(g){_a(r,i,g)},function(g){return pd(r,i,g)}),i.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):_a(r,i,u)}function _a(r,i,u){i.status="fulfilled",i.value=u,Yv(i),r.state=u,i=r.pending,i!==null&&(u=i.next,u===i?r.pending=null:(u=u.next,i.next=u,pp(r,u)))}function pd(r,i,u){var g=r.pending;if(r.pending=null,g!==null){g=g.next;do i.status="rejected",i.reason=u,Yv(i),i=i.next;while(i!==g)}r.action=null}function Yv(r){r=r.listeners;for(var i=0;i<r.length;i++)(0,r[i])()}function Wx(r,i){return i}function hd(r,i){if(Vn){var u=Sr.formState;if(u!==null){e:{var g=nn;if(Vn){if(ia){t:{for(var b=ia,E=tc;b.nodeType!==8;){if(!E){b=null;break t}if(b=_i(b.nextSibling),b===null){b=null;break t}}E=b.data,b=E===kw||E===GN?b:null}if(b){ia=_i(b.nextSibling),g=b.data===kw;break e}}Eu(g)}g=!1}g&&(i=u[0])}}return u=ta(),u.memoizedState=u.baseState=i,g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wx,lastRenderedState:i},u.queue=g,u=Sd.bind(null,nn,g),g.dispatch=u,g=bs(!1),E=t1.bind(null,nn,!1,g.queue),g=ta(),b={state:i,dispatch:null,action:r,pending:null},g.queue=b,u=dp.bind(null,nn,b,E,u),b.dispatch=u,g.memoizedState=r,[i,u,!1]}function Km(r){var i=Gn();return na(i,pr,r)}function na(r,i,u){if(i=cp(r,i,Wx)[0],r=ti(mn)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var g=Gc(i)}catch(D){throw D===P4?W6:D}else g=i;i=Gn();var b=i.queue,E=b.dispatch;return u!==i.memoizedState&&(nn.flags|=2048,zl(Zl|Pa,md(),Xv.bind(null,b,u),null)),[g,E,r]}function Xv(r,i){r.action=i}function Du(r){var i=Gn(),u=pr;if(u!==null)return na(i,u,r);Gn(),i=i.memoizedState,u=Gn();var g=u.queue.dispatch;return u.memoizedState=r,[i,g,!1]}function zl(r,i,u,g){return r={tag:r,create:u,deps:g,inst:i,next:null},i=nn.updateQueue,i===null&&(i=up(),nn.updateQueue=i),u=i.lastEffect,u===null?i.lastEffect=r.next=r:(g=u.next,u.next=r,r.next=g,i.lastEffect=r),r}function md(){return{destroy:void 0,resource:void 0}}function _u(r){var i=ta();return r={current:r},i.memoizedState=r}function So(r,i,u,g){var b=ta();g=g===void 0?null:g,nn.flags|=r,b.memoizedState=zl(Zl|i,md(),u,g)}function Ei(r,i,u,g){var b=Gn();g=g===void 0?null:g;var E=b.memoizedState.inst;pr!==null&&g!==null&&Mu(g,pr.memoizedState.deps)?b.memoizedState=zl(i,E,u,g):(nn.flags|=r,b.memoizedState=zl(Zl|i,E,u,g))}function hp(r,i){(nn.mode&js)!==Or&&(nn.mode&M_)===Or?So(276826112,Pa,r,i):So(8390656,Pa,r,i)}function Wv(r,i){var u=4194308;return(nn.mode&js)!==Or&&(u|=134217728),So(u,ii,r,i)}function Qv(r,i){if(typeof i=="function"){r=r();var u=i(r);return function(){typeof u=="function"?u():i(null)}}if(i!=null)return i.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(i).join(", ")+"}"),r=r(),i.current=r,function(){i.current=null}}function xs(r,i,u){typeof i!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",i!==null?typeof i:"null"),u=u!=null?u.concat([r]):null;var g=4194308;(nn.mode&js)!==Or&&(g|=134217728),So(g,ii,Qv.bind(null,i,r),u)}function gd(r,i,u){typeof i!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",i!==null?typeof i:"null"),u=u!=null?u.concat([r]):null,Ei(4,ii,Qv.bind(null,i,r),u)}function yd(r,i){return ta().memoizedState=[r,i===void 0?null:i],r}function mp(r,i){var u=Gn();i=i===void 0?null:i;var g=u.memoizedState;return i!==null&&Mu(i,g[1])?g[0]:(u.memoizedState=[r,i],r)}function Fc(r,i){var u=ta();i=i===void 0?null:i;var g=r();if(hh){Ue(!0);try{r()}finally{Ue(!1)}}return u.memoizedState=[g,i],g}function gp(r,i){var u=Gn();i=i===void 0?null:i;var g=u.memoizedState;if(i!==null&&Mu(i,g[1]))return g[0];if(g=r(),hh){Ue(!0);try{r()}finally{Ue(!1)}}return u.memoizedState=[g,i],g}function vd(r,i){var u=ta();return bd(u,r,i)}function Zm(r,i){var u=Gn();return Zv(u,pr.memoizedState,r,i)}function Kv(r,i){var u=Gn();return pr===null?bd(u,r,i):Zv(u,pr.memoizedState,r,i)}function bd(r,i,u){return u===void 0||(r0&1073741824)!==0?r.memoizedState=i:(r.memoizedState=u,r=Mb(),nn.lanes|=r,o0|=r,u)}function Zv(r,i,u,g){return to(u,i)?u:vg.current!==null?(r=bd(r,u,g),to(r,i)||(Fa=!0),r):(r0&42)===0?(Fa=!0,r.memoizedState=u):(r=Mb(),nn.lanes|=r,o0|=r,i)}function xd(r,i,u,g,b){var E=Hn.p;Hn.p=E!==0&&E<$l?E:$l;var D=Ie.T,U={};Ie.T=U,t1(r,!1,i,u),U._updatedFibers=new Set;try{var te=b(),oe=Ie.S;if(oe!==null&&oe(U,te),te!==null&&typeof te=="object"&&typeof te.then=="function"){var Be=CT(te,g);Ed(r,i,Be,Wi(r))}else Ed(r,i,g,Wi(r))}catch(je){Ed(r,i,{then:function(){},status:"rejected",reason:je},Wi(r))}finally{Hn.p=E,Ie.T=D,D===null&&U._updatedFibers&&(r=U._updatedFibers.size,U._updatedFibers.clear(),10<r&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function Jm(r,i,u,g){if(r.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var b=Jv(r).queue;xd(r,b,i,Ah,u===null?S:function(){return Ss(r),u(g)})}function Jv(r){var i=r.memoizedState;if(i!==null)return i;i={memoizedState:Ah,baseState:Ah,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:Ah},next:null};var u={};return i.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:u},next:null},r.memoizedState=i,r=r.alternate,r!==null&&(r.memoizedState=i),i}function Ss(r){Ie.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var i=Jv(r).next.queue;Ed(r,i,{},Wi(r))}function yp(){var r=bs(!1);return r=xd.bind(null,nn,r.queue,!0,!1),ta().memoizedState=r,[!1,r]}function e1(){var r=ti(mn)[0],i=Gn().memoizedState;return[typeof r=="boolean"?r:Gc(r),i]}function Es(){var r=Qo(mn)[0],i=Gn().memoizedState;return[typeof r=="boolean"?r:Gc(r),i]}function Ti(){return yr(a5)}function Yc(){var r=ta(),i=Sr.identifierPrefix;if(Vn){var u=mf,g=hf;u=(g&~(1<<32-wa(g)-1)).toString(32)+u,i="«"+i+"R"+u,u=J6++,0<u&&(i+="H"+u.toString(32)),i+="»"}else u=nle++,i="«"+i+"r"+u.toString(32)+"»";return r.memoizedState=i}function vp(){return ta().memoizedState=eb.bind(null,nn)}function eb(r,i){for(var u=r.return;u!==null;){switch(u.tag){case 24:case 3:var g=Wi(u);r=Go(g);var b=Fo(u,r,g);b!==null&&(wn(b,u,g),Hc(b,u,g)),u=Uv(),i!=null&&b!==null&&console.error("The seed argument is not enabled outside experimental channels."),r.payload={cache:u};return}u=u.return}}function bp(r,i,u){var g=arguments;typeof g[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),g=Wi(r);var b={lane:g,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};Ts(r)?xp(i,b):(b=Dv(r,i,b,g),b!==null&&(wn(b,r,g),tb(b,i,g))),pt(r,g)}function Sd(r,i,u){var g=arguments;typeof g[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),g=Wi(r),Ed(r,i,u,g),pt(r,g)}function Ed(r,i,u,g){var b={lane:g,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};if(Ts(r))xp(i,b);else{var E=r.alternate;if(r.lanes===0&&(E===null||E.lanes===0)&&(E=i.lastRenderedReducer,E!==null)){var D=Ie.H;Ie.H=qs;try{var U=i.lastRenderedState,te=E(U,u);if(b.hasEagerState=!0,b.eagerState=te,to(te,U))return Nm(r,i,b,0),Sr===null&&_m(),!1}catch{}finally{Ie.H=D}}if(u=Dv(r,i,b,g),u!==null)return wn(u,r,g),tb(u,i,g),!0}return!1}function t1(r,i,u,g){if(Ie.T===null&&fh===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),g={lane:2,revertLane:C1(),action:g,hasEagerState:!1,eagerState:null,next:null},Ts(r)){if(i)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else i=Dv(r,u,g,2),i!==null&&wn(i,r,2);pt(r,2)}function Ts(r){var i=r.alternate;return r===nn||i!==null&&i===nn}function xp(r,i){xg=Z6=!0;var u=r.pending;u===null?i.next=i:(i.next=u.next,u.next=i),r.pending=i}function tb(r,i,u){if((u&4194048)!==0){var g=i.lanes;g&=r.pendingLanes,u|=g,i.lanes=u,ze(r,u)}}function ca(r){var i=Tn;return r!=null&&(Tn=i===null?r:i.concat(r)),i}function Td(r,i,u){for(var g=Object.keys(r.props),b=0;b<g.length;b++){var E=g[b];if(E!=="children"&&E!=="key"){i===null&&(i=rp(r,u.mode,0),i._debugInfo=Tn,i.return=u),Mt(i,function(D){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",D)},E);break}}}function Zo(r){var i=j4;return j4+=1,Sg===null&&(Sg=qv()),Gv(Sg,r,i)}function an(r,i){i=i.props.ref,r.ref=i!==void 0?i:null}function jn(r,i){throw i.$$typeof===zT?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
737
737
  - Multiple copies of the "react" package is used.
738
738
  - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
739
739
  - A compiler tries to "inline" JSX instead of using the runtime.`):(r=Object.prototype.toString.call(i),Error("Objects are not valid as a React child (found: "+(r==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead."))}function Mr(r,i){var u=Z(r)||"Component";sN[u]||(sN[u]=!0,i=i.displayName||i.name||"Component",r.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
740
740
  root.render(%s)`,i,i,i):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
741
741
  <%s>{%s}</%s>`,i,i,u,i,u))}function Xc(r,i){var u=Z(r)||"Component";uN[u]||(uN[u]=!0,i=String(i),r.tag===3?console.error(`Symbols are not valid as a React child.
742
742
  root.render(%s)`,i):console.error(`Symbols are not valid as a React child.
743
- <%s>%s</%s>`,u,i,u))}function Wc(r){function i(pe,me){if(r){var be=pe.deletions;be===null?(pe.deletions=[me],pe.flags|=16):be.push(me)}}function u(pe,me){if(!r)return null;for(;me!==null;)i(pe,me),me=me.sibling;return null}function g(pe){for(var me=new Map;pe!==null;)pe.key!==null?me.set(pe.key,pe):me.set(pe.index,pe),pe=pe.sibling;return me}function b(pe,me){return pe=Dl(pe,me),pe.index=0,pe.sibling=null,pe}function E(pe,me,be){return pe.index=be,r?(be=pe.alternate,be!==null?(be=be.index,be<me?(pe.flags|=67108866,me):be):(pe.flags|=67108866,me)):(pe.flags|=1048576,me)}function D(pe){return r&&pe.alternate===null&&(pe.flags|=67108866),pe}function U(pe,me,be,Ge){return me===null||me.tag!==6?(me=zv(be,pe.mode,Ge),me.return=pe,me._debugOwner=pe,me._debugTask=pe._debugTask,me._debugInfo=Tn,me):(me=b(me,be),me.return=pe,me._debugInfo=Tn,me)}function te(pe,me,be,Ge){var gt=be.type;return gt===Xu?(me=Be(pe,me,be.props.children,Ge,be.key),Td(be,me,pe),me):me!==null&&(me.elementType===gt||Fx(me,be)||typeof gt=="object"&&gt!==null&&gt.$$typeof===Ji&&a0(gt)===me.type)?(me=b(me,be.props),an(me,be),me.return=pe,me._debugOwner=be._owner,me._debugInfo=Tn,me):(me=rp(be,pe.mode,Ge),an(me,be),me.return=pe,me._debugInfo=Tn,me)}function oe(pe,me,be,Ge){return me===null||me.tag!==4||me.stateNode.containerInfo!==be.containerInfo||me.stateNode.implementation!==be.implementation?(me=Lv(be,pe.mode,Ge),me.return=pe,me._debugInfo=Tn,me):(me=b(me,be.children||[]),me.return=pe,me._debugInfo=Tn,me)}function Be(pe,me,be,Ge,gt){return me===null||me.tag!==7?(me=vo(be,pe.mode,Ge,gt),me.return=pe,me._debugOwner=pe,me._debugTask=pe._debugTask,me._debugInfo=Tn,me):(me=b(me,be),me.return=pe,me._debugInfo=Tn,me)}function je(pe,me,be){if(typeof me=="string"&&me!==""||typeof me=="number"||typeof me=="bigint")return me=zv(""+me,pe.mode,be),me.return=pe,me._debugOwner=pe,me._debugTask=pe._debugTask,me._debugInfo=Tn,me;if(typeof me=="object"&&me!==null){switch(me.$$typeof){case Ls:return be=rp(me,pe.mode,be),an(be,me),be.return=pe,pe=ca(me._debugInfo),be._debugInfo=Tn,Tn=pe,be;case cn:return me=Lv(me,pe.mode,be),me.return=pe,me._debugInfo=Tn,me;case Ji:var Ge=ca(me._debugInfo);return me=a0(me),pe=je(pe,me,be),Tn=Ge,pe}if(pa(me)||X(me))return be=vo(me,pe.mode,be,null),be.return=pe,be._debugOwner=pe,be._debugTask=pe._debugTask,pe=ca(me._debugInfo),be._debugInfo=Tn,Tn=pe,be;if(typeof me.then=="function")return Ge=ca(me._debugInfo),pe=je(pe,Zo(me),be),Tn=Ge,pe;if(me.$$typeof===zi)return je(pe,ip(pe,me),be);jn(pe,me)}return typeof me=="function"&&Mr(pe,me),typeof me=="symbol"&&Xc(pe,me),null}function Le(pe,me,be,Ge){var gt=me!==null?me.key:null;if(typeof be=="string"&&be!==""||typeof be=="number"||typeof be=="bigint")return gt!==null?null:U(pe,me,""+be,Ge);if(typeof be=="object"&&be!==null){switch(be.$$typeof){case Ls:return be.key===gt?(gt=ca(be._debugInfo),pe=te(pe,me,be,Ge),Tn=gt,pe):null;case cn:return be.key===gt?oe(pe,me,be,Ge):null;case Ji:return gt=ca(be._debugInfo),be=a0(be),pe=Le(pe,me,be,Ge),Tn=gt,pe}if(pa(be)||X(be))return gt!==null?null:(gt=ca(be._debugInfo),pe=Be(pe,me,be,Ge,null),Tn=gt,pe);if(typeof be.then=="function")return gt=ca(be._debugInfo),pe=Le(pe,me,Zo(be),Ge),Tn=gt,pe;if(be.$$typeof===zi)return Le(pe,me,ip(pe,be),Ge);jn(pe,be)}return typeof be=="function"&&Mr(pe,be),typeof be=="symbol"&&Xc(pe,be),null}function qe(pe,me,be,Ge,gt){if(typeof Ge=="string"&&Ge!==""||typeof Ge=="number"||typeof Ge=="bigint")return pe=pe.get(be)||null,U(me,pe,""+Ge,gt);if(typeof Ge=="object"&&Ge!==null){switch(Ge.$$typeof){case Ls:return be=pe.get(Ge.key===null?be:Ge.key)||null,pe=ca(Ge._debugInfo),me=te(me,be,Ge,gt),Tn=pe,me;case cn:return pe=pe.get(Ge.key===null?be:Ge.key)||null,oe(me,pe,Ge,gt);case Ji:var fn=ca(Ge._debugInfo);return Ge=a0(Ge),me=qe(pe,me,be,Ge,gt),Tn=fn,me}if(pa(Ge)||X(Ge))return be=pe.get(be)||null,pe=ca(Ge._debugInfo),me=Be(me,be,Ge,gt,null),Tn=pe,me;if(typeof Ge.then=="function")return fn=ca(Ge._debugInfo),me=qe(pe,me,be,Zo(Ge),gt),Tn=fn,me;if(Ge.$$typeof===zi)return qe(pe,me,be,ip(me,Ge),gt);jn(me,Ge)}return typeof Ge=="function"&&Mr(me,Ge),typeof Ge=="symbol"&&Xc(me,Ge),null}function Ct(pe,me,be,Ge){if(typeof be!="object"||be===null)return Ge;switch(be.$$typeof){case Ls:case cn:m(pe,me,be);var gt=be.key;if(typeof gt!="string")break;if(Ge===null){Ge=new Set,Ge.add(gt);break}if(!Ge.has(gt)){Ge.add(gt);break}Mt(me,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",gt)});break;case Ji:be=a0(be),Ct(pe,me,be,Ge)}return Ge}function Xt(pe,me,be,Ge){for(var gt=null,fn=null,Ot=null,dn=me,yn=me=0,Or=null;dn!==null&&yn<be.length;yn++){dn.index>yn?(Or=dn,dn=null):Or=dn.sibling;var ma=Le(pe,dn,be[yn],Ge);if(ma===null){dn===null&&(dn=Or);break}gt=Ct(pe,ma,be[yn],gt),r&&dn&&ma.alternate===null&&i(pe,dn),me=E(ma,me,yn),Ot===null?fn=ma:Ot.sibling=ma,Ot=ma,dn=Or}if(yn===be.length)return u(pe,dn),Vn&&Pc(pe,yn),fn;if(dn===null){for(;yn<be.length;yn++)dn=je(pe,be[yn],Ge),dn!==null&&(gt=Ct(pe,dn,be[yn],gt),me=E(dn,me,yn),Ot===null?fn=dn:Ot.sibling=dn,Ot=dn);return Vn&&Pc(pe,yn),fn}for(dn=g(dn);yn<be.length;yn++)Or=qe(dn,pe,yn,be[yn],Ge),Or!==null&&(gt=Ct(pe,Or,be[yn],gt),r&&Or.alternate!==null&&dn.delete(Or.key===null?yn:Or.key),me=E(Or,me,yn),Ot===null?fn=Or:Ot.sibling=Or,Ot=Or);return r&&dn.forEach(function(wf){return i(pe,wf)}),Vn&&Pc(pe,yn),fn}function Er(pe,me,be,Ge){if(be==null)throw Error("An iterable object provided no iterator.");for(var gt=null,fn=null,Ot=me,dn=me=0,yn=null,Or=null,ma=be.next();Ot!==null&&!ma.done;dn++,ma=be.next()){Ot.index>dn?(yn=Ot,Ot=null):yn=Ot.sibling;var wf=Le(pe,Ot,ma.value,Ge);if(wf===null){Ot===null&&(Ot=yn);break}Or=Ct(pe,wf,ma.value,Or),r&&Ot&&wf.alternate===null&&i(pe,Ot),me=E(wf,me,dn),fn===null?gt=wf:fn.sibling=wf,fn=wf,Ot=yn}if(ma.done)return u(pe,Ot),Vn&&Pc(pe,dn),gt;if(Ot===null){for(;!ma.done;dn++,ma=be.next())Ot=je(pe,ma.value,Ge),Ot!==null&&(Or=Ct(pe,Ot,ma.value,Or),me=E(Ot,me,dn),fn===null?gt=Ot:fn.sibling=Ot,fn=Ot);return Vn&&Pc(pe,dn),gt}for(Ot=g(Ot);!ma.done;dn++,ma=be.next())yn=qe(Ot,pe,dn,ma.value,Ge),yn!==null&&(Or=Ct(pe,yn,ma.value,Or),r&&yn.alternate!==null&&Ot.delete(yn.key===null?dn:yn.key),me=E(yn,me,dn),fn===null?gt=yn:fn.sibling=yn,fn=yn);return r&&Ot.forEach(function(Mle){return i(pe,Mle)}),Vn&&Pc(pe,dn),gt}function Nn(pe,me,be,Ge){if(typeof be=="object"&&be!==null&&be.type===Xu&&be.key===null&&(Td(be,null,pe),be=be.props.children),typeof be=="object"&&be!==null){switch(be.$$typeof){case Ls:var gt=ca(be._debugInfo);e:{for(var fn=be.key;me!==null;){if(me.key===fn){if(fn=be.type,fn===Xu){if(me.tag===7){u(pe,me.sibling),Ge=b(me,be.props.children),Ge.return=pe,Ge._debugOwner=be._owner,Ge._debugInfo=Tn,Td(be,Ge,pe),pe=Ge;break e}}else if(me.elementType===fn||Fx(me,be)||typeof fn=="object"&&fn!==null&&fn.$$typeof===Ji&&a0(fn)===me.type){u(pe,me.sibling),Ge=b(me,be.props),an(Ge,be),Ge.return=pe,Ge._debugOwner=be._owner,Ge._debugInfo=Tn,pe=Ge;break e}u(pe,me);break}else i(pe,me);me=me.sibling}be.type===Xu?(Ge=vo(be.props.children,pe.mode,Ge,be.key),Ge.return=pe,Ge._debugOwner=pe,Ge._debugTask=pe._debugTask,Ge._debugInfo=Tn,Td(be,Ge,pe),pe=Ge):(Ge=rp(be,pe.mode,Ge),an(Ge,be),Ge.return=pe,Ge._debugInfo=Tn,pe=Ge)}return pe=D(pe),Tn=gt,pe;case cn:e:{for(gt=be,be=gt.key;me!==null;){if(me.key===be)if(me.tag===4&&me.stateNode.containerInfo===gt.containerInfo&&me.stateNode.implementation===gt.implementation){u(pe,me.sibling),Ge=b(me,gt.children||[]),Ge.return=pe,pe=Ge;break e}else{u(pe,me);break}else i(pe,me);me=me.sibling}Ge=Lv(gt,pe.mode,Ge),Ge.return=pe,pe=Ge}return D(pe);case Ji:return gt=ca(be._debugInfo),be=a0(be),pe=Nn(pe,me,be,Ge),Tn=gt,pe}if(pa(be))return gt=ca(be._debugInfo),pe=Xt(pe,me,be,Ge),Tn=gt,pe;if(X(be)){if(gt=ca(be._debugInfo),fn=X(be),typeof fn!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Ot=fn.call(be);return Ot===be?(pe.tag!==0||Object.prototype.toString.call(pe.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Ot)!=="[object Generator]")&&(oN||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),oN=!0):be.entries!==fn||ow||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ow=!0),pe=Er(pe,me,Ot,Ge),Tn=gt,pe}if(typeof be.then=="function")return gt=ca(be._debugInfo),pe=Nn(pe,me,Zo(be),Ge),Tn=gt,pe;if(be.$$typeof===zi)return Nn(pe,me,ip(pe,be),Ge);jn(pe,be)}return typeof be=="string"&&be!==""||typeof be=="number"||typeof be=="bigint"?(gt=""+be,me!==null&&me.tag===6?(u(pe,me.sibling),Ge=b(me,gt),Ge.return=pe,pe=Ge):(u(pe,me),Ge=zv(gt,pe.mode,Ge),Ge.return=pe,Ge._debugOwner=pe,Ge._debugTask=pe._debugTask,Ge._debugInfo=Tn,pe=Ge),D(pe)):(typeof be=="function"&&Mr(pe,be),typeof be=="symbol"&&Xc(pe,be),u(pe,me))}return function(pe,me,be,Ge){var gt=Tn;Tn=null;try{j4=0;var fn=Nn(pe,me,be,Ge);return Sg=null,fn}catch(Or){if(Or===P4||Or===W6)throw Or;var Ot=T(29,Or,null,pe.mode);Ot.lanes=Ge,Ot.return=pe;var dn=Ot._debugInfo=Tn;if(Ot._debugOwner=pe._debugOwner,Ot._debugTask=pe._debugTask,dn!=null){for(var yn=dn.length-1;0<=yn;yn--)if(typeof dn[yn].stack=="string"){Ot._debugOwner=dn[yn],Ot._debugTask=dn[yn].debugTask;break}}return Ot}finally{Tn=gt}}}function wi(r){var i=r.alternate;ne(Va,Va.current&Tg,r),ne(es,r,r),rc===null&&(i===null||vg.current!==null||i.memoizedState!==null)&&(rc=r)}function Sp(r){if(r.tag===22){if(ne(Va,Va.current,r),ne(es,r,r),rc===null){var i=r.alternate;i!==null&&i.memoizedState!==null&&(rc=r)}}else Eo(r)}function Eo(r){ne(Va,Va.current,r),ne(es,es.current,r)}function Ai(r){V(es,r),rc===r&&(rc=null),V(Va,r)}function n1(r){for(var i=r;i!==null;){if(i.tag===13){var u=i.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data===Sf||Gu(u)))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}function kr(r){if(r!==null&&typeof r!="function"){var i=String(r);SN.has(i)||(SN.add(i),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",r))}}function Ep(r,i,u,g){var b=r.memoizedState,E=u(g,b);if(r.mode&Ii){Ue(!0);try{E=u(g,b)}finally{Ue(!1)}}E===void 0&&(i=ie(i)||"Component",yN.has(i)||(yN.add(i),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",i))),b=E==null?b:tn({},b,E),r.memoizedState=b,r.lanes===0&&(r.updateQueue.baseState=b)}function r1(r,i,u,g,b,E,D){var U=r.stateNode;if(typeof U.shouldComponentUpdate=="function"){if(u=U.shouldComponentUpdate(g,E,D),r.mode&Ii){Ue(!0);try{u=U.shouldComponentUpdate(g,E,D)}finally{Ue(!1)}}return u===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",ie(i)||"Component"),u}return i.prototype&&i.prototype.isPureReactComponent?!np(u,g)||!np(b,E):!0}function nb(r,i,u,g){var b=i.state;typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(u,g),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(u,g),i.state!==b&&(r=Z(r)||"Component",dN.has(r)||(dN.add(r),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",r)),lw.enqueueReplaceState(i,i.state,null))}function Nu(r,i){var u=i;if("ref"in i){u={};for(var g in i)g!=="ref"&&(u[g]=i[g])}if(r=r.defaultProps){u===i&&(u=tn({},u));for(var b in r)u[b]===void 0&&(u[b]=r[b])}return u}function Qx(r){sw(r),console.warn(`%s
743
+ <%s>%s</%s>`,u,i,u))}function Wc(r){function i(pe,me){if(r){var be=pe.deletions;be===null?(pe.deletions=[me],pe.flags|=16):be.push(me)}}function u(pe,me){if(!r)return null;for(;me!==null;)i(pe,me),me=me.sibling;return null}function g(pe){for(var me=new Map;pe!==null;)pe.key!==null?me.set(pe.key,pe):me.set(pe.index,pe),pe=pe.sibling;return me}function b(pe,me){return pe=Dl(pe,me),pe.index=0,pe.sibling=null,pe}function E(pe,me,be){return pe.index=be,r?(be=pe.alternate,be!==null?(be=be.index,be<me?(pe.flags|=67108866,me):be):(pe.flags|=67108866,me)):(pe.flags|=1048576,me)}function D(pe){return r&&pe.alternate===null&&(pe.flags|=67108866),pe}function U(pe,me,be,Ge){return me===null||me.tag!==6?(me=zv(be,pe.mode,Ge),me.return=pe,me._debugOwner=pe,me._debugTask=pe._debugTask,me._debugInfo=Tn,me):(me=b(me,be),me.return=pe,me._debugInfo=Tn,me)}function te(pe,me,be,Ge){var gt=be.type;return gt===Xu?(me=Be(pe,me,be.props.children,Ge,be.key),Td(be,me,pe),me):me!==null&&(me.elementType===gt||Fx(me,be)||typeof gt=="object"&&gt!==null&&gt.$$typeof===Ji&&a0(gt)===me.type)?(me=b(me,be.props),an(me,be),me.return=pe,me._debugOwner=be._owner,me._debugInfo=Tn,me):(me=rp(be,pe.mode,Ge),an(me,be),me.return=pe,me._debugInfo=Tn,me)}function oe(pe,me,be,Ge){return me===null||me.tag!==4||me.stateNode.containerInfo!==be.containerInfo||me.stateNode.implementation!==be.implementation?(me=Lv(be,pe.mode,Ge),me.return=pe,me._debugInfo=Tn,me):(me=b(me,be.children||[]),me.return=pe,me._debugInfo=Tn,me)}function Be(pe,me,be,Ge,gt){return me===null||me.tag!==7?(me=vo(be,pe.mode,Ge,gt),me.return=pe,me._debugOwner=pe,me._debugTask=pe._debugTask,me._debugInfo=Tn,me):(me=b(me,be),me.return=pe,me._debugInfo=Tn,me)}function je(pe,me,be){if(typeof me=="string"&&me!==""||typeof me=="number"||typeof me=="bigint")return me=zv(""+me,pe.mode,be),me.return=pe,me._debugOwner=pe,me._debugTask=pe._debugTask,me._debugInfo=Tn,me;if(typeof me=="object"&&me!==null){switch(me.$$typeof){case Ls:return be=rp(me,pe.mode,be),an(be,me),be.return=pe,pe=ca(me._debugInfo),be._debugInfo=Tn,Tn=pe,be;case cn:return me=Lv(me,pe.mode,be),me.return=pe,me._debugInfo=Tn,me;case Ji:var Ge=ca(me._debugInfo);return me=a0(me),pe=je(pe,me,be),Tn=Ge,pe}if(pa(me)||X(me))return be=vo(me,pe.mode,be,null),be.return=pe,be._debugOwner=pe,be._debugTask=pe._debugTask,pe=ca(me._debugInfo),be._debugInfo=Tn,Tn=pe,be;if(typeof me.then=="function")return Ge=ca(me._debugInfo),pe=je(pe,Zo(me),be),Tn=Ge,pe;if(me.$$typeof===zi)return je(pe,ip(pe,me),be);jn(pe,me)}return typeof me=="function"&&Mr(pe,me),typeof me=="symbol"&&Xc(pe,me),null}function Le(pe,me,be,Ge){var gt=me!==null?me.key:null;if(typeof be=="string"&&be!==""||typeof be=="number"||typeof be=="bigint")return gt!==null?null:U(pe,me,""+be,Ge);if(typeof be=="object"&&be!==null){switch(be.$$typeof){case Ls:return be.key===gt?(gt=ca(be._debugInfo),pe=te(pe,me,be,Ge),Tn=gt,pe):null;case cn:return be.key===gt?oe(pe,me,be,Ge):null;case Ji:return gt=ca(be._debugInfo),be=a0(be),pe=Le(pe,me,be,Ge),Tn=gt,pe}if(pa(be)||X(be))return gt!==null?null:(gt=ca(be._debugInfo),pe=Be(pe,me,be,Ge,null),Tn=gt,pe);if(typeof be.then=="function")return gt=ca(be._debugInfo),pe=Le(pe,me,Zo(be),Ge),Tn=gt,pe;if(be.$$typeof===zi)return Le(pe,me,ip(pe,be),Ge);jn(pe,be)}return typeof be=="function"&&Mr(pe,be),typeof be=="symbol"&&Xc(pe,be),null}function qe(pe,me,be,Ge,gt){if(typeof Ge=="string"&&Ge!==""||typeof Ge=="number"||typeof Ge=="bigint")return pe=pe.get(be)||null,U(me,pe,""+Ge,gt);if(typeof Ge=="object"&&Ge!==null){switch(Ge.$$typeof){case Ls:return be=pe.get(Ge.key===null?be:Ge.key)||null,pe=ca(Ge._debugInfo),me=te(me,be,Ge,gt),Tn=pe,me;case cn:return pe=pe.get(Ge.key===null?be:Ge.key)||null,oe(me,pe,Ge,gt);case Ji:var fn=ca(Ge._debugInfo);return Ge=a0(Ge),me=qe(pe,me,be,Ge,gt),Tn=fn,me}if(pa(Ge)||X(Ge))return be=pe.get(be)||null,pe=ca(Ge._debugInfo),me=Be(me,be,Ge,gt,null),Tn=pe,me;if(typeof Ge.then=="function")return fn=ca(Ge._debugInfo),me=qe(pe,me,be,Zo(Ge),gt),Tn=fn,me;if(Ge.$$typeof===zi)return qe(pe,me,be,ip(me,Ge),gt);jn(me,Ge)}return typeof Ge=="function"&&Mr(me,Ge),typeof Ge=="symbol"&&Xc(me,Ge),null}function Ct(pe,me,be,Ge){if(typeof be!="object"||be===null)return Ge;switch(be.$$typeof){case Ls:case cn:m(pe,me,be);var gt=be.key;if(typeof gt!="string")break;if(Ge===null){Ge=new Set,Ge.add(gt);break}if(!Ge.has(gt)){Ge.add(gt);break}Mt(me,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",gt)});break;case Ji:be=a0(be),Ct(pe,me,be,Ge)}return Ge}function Xt(pe,me,be,Ge){for(var gt=null,fn=null,Ot=null,dn=me,yn=me=0,Rr=null;dn!==null&&yn<be.length;yn++){dn.index>yn?(Rr=dn,dn=null):Rr=dn.sibling;var ma=Le(pe,dn,be[yn],Ge);if(ma===null){dn===null&&(dn=Rr);break}gt=Ct(pe,ma,be[yn],gt),r&&dn&&ma.alternate===null&&i(pe,dn),me=E(ma,me,yn),Ot===null?fn=ma:Ot.sibling=ma,Ot=ma,dn=Rr}if(yn===be.length)return u(pe,dn),Vn&&Pc(pe,yn),fn;if(dn===null){for(;yn<be.length;yn++)dn=je(pe,be[yn],Ge),dn!==null&&(gt=Ct(pe,dn,be[yn],gt),me=E(dn,me,yn),Ot===null?fn=dn:Ot.sibling=dn,Ot=dn);return Vn&&Pc(pe,yn),fn}for(dn=g(dn);yn<be.length;yn++)Rr=qe(dn,pe,yn,be[yn],Ge),Rr!==null&&(gt=Ct(pe,Rr,be[yn],gt),r&&Rr.alternate!==null&&dn.delete(Rr.key===null?yn:Rr.key),me=E(Rr,me,yn),Ot===null?fn=Rr:Ot.sibling=Rr,Ot=Rr);return r&&dn.forEach(function(wf){return i(pe,wf)}),Vn&&Pc(pe,yn),fn}function Er(pe,me,be,Ge){if(be==null)throw Error("An iterable object provided no iterator.");for(var gt=null,fn=null,Ot=me,dn=me=0,yn=null,Rr=null,ma=be.next();Ot!==null&&!ma.done;dn++,ma=be.next()){Ot.index>dn?(yn=Ot,Ot=null):yn=Ot.sibling;var wf=Le(pe,Ot,ma.value,Ge);if(wf===null){Ot===null&&(Ot=yn);break}Rr=Ct(pe,wf,ma.value,Rr),r&&Ot&&wf.alternate===null&&i(pe,Ot),me=E(wf,me,dn),fn===null?gt=wf:fn.sibling=wf,fn=wf,Ot=yn}if(ma.done)return u(pe,Ot),Vn&&Pc(pe,dn),gt;if(Ot===null){for(;!ma.done;dn++,ma=be.next())Ot=je(pe,ma.value,Ge),Ot!==null&&(Rr=Ct(pe,Ot,ma.value,Rr),me=E(Ot,me,dn),fn===null?gt=Ot:fn.sibling=Ot,fn=Ot);return Vn&&Pc(pe,dn),gt}for(Ot=g(Ot);!ma.done;dn++,ma=be.next())yn=qe(Ot,pe,dn,ma.value,Ge),yn!==null&&(Rr=Ct(pe,yn,ma.value,Rr),r&&yn.alternate!==null&&Ot.delete(yn.key===null?dn:yn.key),me=E(yn,me,dn),fn===null?gt=yn:fn.sibling=yn,fn=yn);return r&&Ot.forEach(function(Mle){return i(pe,Mle)}),Vn&&Pc(pe,dn),gt}function Nn(pe,me,be,Ge){if(typeof be=="object"&&be!==null&&be.type===Xu&&be.key===null&&(Td(be,null,pe),be=be.props.children),typeof be=="object"&&be!==null){switch(be.$$typeof){case Ls:var gt=ca(be._debugInfo);e:{for(var fn=be.key;me!==null;){if(me.key===fn){if(fn=be.type,fn===Xu){if(me.tag===7){u(pe,me.sibling),Ge=b(me,be.props.children),Ge.return=pe,Ge._debugOwner=be._owner,Ge._debugInfo=Tn,Td(be,Ge,pe),pe=Ge;break e}}else if(me.elementType===fn||Fx(me,be)||typeof fn=="object"&&fn!==null&&fn.$$typeof===Ji&&a0(fn)===me.type){u(pe,me.sibling),Ge=b(me,be.props),an(Ge,be),Ge.return=pe,Ge._debugOwner=be._owner,Ge._debugInfo=Tn,pe=Ge;break e}u(pe,me);break}else i(pe,me);me=me.sibling}be.type===Xu?(Ge=vo(be.props.children,pe.mode,Ge,be.key),Ge.return=pe,Ge._debugOwner=pe,Ge._debugTask=pe._debugTask,Ge._debugInfo=Tn,Td(be,Ge,pe),pe=Ge):(Ge=rp(be,pe.mode,Ge),an(Ge,be),Ge.return=pe,Ge._debugInfo=Tn,pe=Ge)}return pe=D(pe),Tn=gt,pe;case cn:e:{for(gt=be,be=gt.key;me!==null;){if(me.key===be)if(me.tag===4&&me.stateNode.containerInfo===gt.containerInfo&&me.stateNode.implementation===gt.implementation){u(pe,me.sibling),Ge=b(me,gt.children||[]),Ge.return=pe,pe=Ge;break e}else{u(pe,me);break}else i(pe,me);me=me.sibling}Ge=Lv(gt,pe.mode,Ge),Ge.return=pe,pe=Ge}return D(pe);case Ji:return gt=ca(be._debugInfo),be=a0(be),pe=Nn(pe,me,be,Ge),Tn=gt,pe}if(pa(be))return gt=ca(be._debugInfo),pe=Xt(pe,me,be,Ge),Tn=gt,pe;if(X(be)){if(gt=ca(be._debugInfo),fn=X(be),typeof fn!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Ot=fn.call(be);return Ot===be?(pe.tag!==0||Object.prototype.toString.call(pe.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Ot)!=="[object Generator]")&&(oN||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),oN=!0):be.entries!==fn||ow||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ow=!0),pe=Er(pe,me,Ot,Ge),Tn=gt,pe}if(typeof be.then=="function")return gt=ca(be._debugInfo),pe=Nn(pe,me,Zo(be),Ge),Tn=gt,pe;if(be.$$typeof===zi)return Nn(pe,me,ip(pe,be),Ge);jn(pe,be)}return typeof be=="string"&&be!==""||typeof be=="number"||typeof be=="bigint"?(gt=""+be,me!==null&&me.tag===6?(u(pe,me.sibling),Ge=b(me,gt),Ge.return=pe,pe=Ge):(u(pe,me),Ge=zv(gt,pe.mode,Ge),Ge.return=pe,Ge._debugOwner=pe,Ge._debugTask=pe._debugTask,Ge._debugInfo=Tn,pe=Ge),D(pe)):(typeof be=="function"&&Mr(pe,be),typeof be=="symbol"&&Xc(pe,be),u(pe,me))}return function(pe,me,be,Ge){var gt=Tn;Tn=null;try{j4=0;var fn=Nn(pe,me,be,Ge);return Sg=null,fn}catch(Rr){if(Rr===P4||Rr===W6)throw Rr;var Ot=T(29,Rr,null,pe.mode);Ot.lanes=Ge,Ot.return=pe;var dn=Ot._debugInfo=Tn;if(Ot._debugOwner=pe._debugOwner,Ot._debugTask=pe._debugTask,dn!=null){for(var yn=dn.length-1;0<=yn;yn--)if(typeof dn[yn].stack=="string"){Ot._debugOwner=dn[yn],Ot._debugTask=dn[yn].debugTask;break}}return Ot}finally{Tn=gt}}}function wi(r){var i=r.alternate;ne(Va,Va.current&Tg,r),ne(es,r,r),rc===null&&(i===null||vg.current!==null||i.memoizedState!==null)&&(rc=r)}function Sp(r){if(r.tag===22){if(ne(Va,Va.current,r),ne(es,r,r),rc===null){var i=r.alternate;i!==null&&i.memoizedState!==null&&(rc=r)}}else Eo(r)}function Eo(r){ne(Va,Va.current,r),ne(es,es.current,r)}function Ai(r){V(es,r),rc===r&&(rc=null),V(Va,r)}function n1(r){for(var i=r;i!==null;){if(i.tag===13){var u=i.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data===Sf||Gu(u)))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}function kr(r){if(r!==null&&typeof r!="function"){var i=String(r);SN.has(i)||(SN.add(i),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",r))}}function Ep(r,i,u,g){var b=r.memoizedState,E=u(g,b);if(r.mode&Ii){Ue(!0);try{E=u(g,b)}finally{Ue(!1)}}E===void 0&&(i=ie(i)||"Component",yN.has(i)||(yN.add(i),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",i))),b=E==null?b:tn({},b,E),r.memoizedState=b,r.lanes===0&&(r.updateQueue.baseState=b)}function r1(r,i,u,g,b,E,D){var U=r.stateNode;if(typeof U.shouldComponentUpdate=="function"){if(u=U.shouldComponentUpdate(g,E,D),r.mode&Ii){Ue(!0);try{u=U.shouldComponentUpdate(g,E,D)}finally{Ue(!1)}}return u===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",ie(i)||"Component"),u}return i.prototype&&i.prototype.isPureReactComponent?!np(u,g)||!np(b,E):!0}function nb(r,i,u,g){var b=i.state;typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(u,g),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(u,g),i.state!==b&&(r=Z(r)||"Component",dN.has(r)||(dN.add(r),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",r)),lw.enqueueReplaceState(i,i.state,null))}function Nu(r,i){var u=i;if("ref"in i){u={};for(var g in i)g!=="ref"&&(u[g]=i[g])}if(r=r.defaultProps){u===i&&(u=tn({},u));for(var b in r)u[b]===void 0&&(u[b]=r[b])}return u}function Qx(r){sw(r),console.warn(`%s
744
744
 
745
745
  %s
746
746
  `,wg?"An error occurred in the <"+wg+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
@@ -762,8 +762,8 @@ The above lifecycles should be removed. Learn more about this warning here:
762
762
  https://react.dev/link/unsafe-component-lifecycles`,E,oe,D!==null?`
763
763
  `+D:"",U!==null?`
764
764
  `+U:"",te!==null?`
765
- `+te:""))}}E=i.stateNode,D=ie(u)||"Component",E.render||(u.prototype&&typeof u.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",D):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",D)),!E.getInitialState||E.getInitialState.isReactClassApproved||E.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",D),E.getDefaultProps&&!E.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",D),E.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",D),u.childContextTypes&&!bN.has(u)&&(bN.add(u),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",D)),u.contextTypes&&!vN.has(u)&&(vN.add(u),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",D)),typeof E.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",D),u.prototype&&u.prototype.isPureReactComponent&&typeof E.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",ie(u)||"A pure component"),typeof E.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",D),typeof E.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",D),typeof E.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",D),typeof E.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",D),U=E.props!==g,E.props!==void 0&&U&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",D),E.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",D,D),typeof E.getSnapshotBeforeUpdate!="function"||typeof E.componentDidUpdate=="function"||hN.has(u)||(hN.add(u),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",ie(u))),typeof E.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",D),typeof E.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",D),typeof u.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",D),(U=E.state)&&(typeof U!="object"||pa(U))&&console.error("%s.state: must be set to an object or null",D),typeof E.getChildContext=="function"&&typeof u.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",D),E=i.stateNode,E.props=g,E.state=i.memoizedState,E.refs={},Cu(i),D=u.contextType,E.context=typeof D=="object"&&D!==null?yr(D):t0,E.state===g&&(D=ie(u)||"Component",gN.has(D)||(gN.add(D),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",D))),i.mode&Ii&&Hs.recordLegacyContextWarning(i,E),Hs.recordUnsafeLifecycleWarnings(i,E),E.state=i.memoizedState,D=u.getDerivedStateFromProps,typeof D=="function"&&(Ep(i,u,D,g),E.state=i.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(D=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),D!==E.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Z(i)||"Component"),lw.enqueueReplaceState(E,E.state,null)),Ou(i,g,E,b),ld(),E.state=i.memoizedState),typeof E.componentDidMount=="function"&&(i.flags|=4194308),(i.mode&js)!==Cr&&(i.flags|=134217728),E=!0}else if(r===null){E=i.stateNode;var Be=i.memoizedProps;U=Nu(u,Be),E.props=U;var je=E.context;te=u.contextType,D=t0,typeof te=="object"&&te!==null&&(D=yr(te)),oe=u.getDerivedStateFromProps,te=typeof oe=="function"||typeof E.getSnapshotBeforeUpdate=="function",Be=i.pendingProps!==Be,te||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(Be||je!==D)&&nb(i,E,g,D),n0=!1;var Le=i.memoizedState;E.state=Le,Ou(i,g,E,b),ld(),je=i.memoizedState,Be||Le!==je||n0?(typeof oe=="function"&&(Ep(i,u,oe,g),je=i.memoizedState),(U=n0||r1(i,u,U,g,Le,je,D))?(te||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(i.flags|=4194308),(i.mode&js)!==Cr&&(i.flags|=134217728)):(typeof E.componentDidMount=="function"&&(i.flags|=4194308),(i.mode&js)!==Cr&&(i.flags|=134217728),i.memoizedProps=g,i.memoizedState=je),E.props=g,E.state=je,E.context=D,E=U):(typeof E.componentDidMount=="function"&&(i.flags|=4194308),(i.mode&js)!==Cr&&(i.flags|=134217728),E=!1)}else{E=i.stateNode,lp(r,i),D=i.memoizedProps,te=Nu(u,D),E.props=te,oe=i.pendingProps,Le=E.context,je=u.contextType,U=t0,typeof je=="object"&&je!==null&&(U=yr(je)),Be=u.getDerivedStateFromProps,(je=typeof Be=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(D!==oe||Le!==U)&&nb(i,E,g,U),n0=!1,Le=i.memoizedState,E.state=Le,Ou(i,g,E,b),ld();var qe=i.memoizedState;D!==oe||Le!==qe||n0||r!==null&&r.dependencies!==null&&ap(r.dependencies)?(typeof Be=="function"&&(Ep(i,u,Be,g),qe=i.memoizedState),(te=n0||r1(i,u,te,g,Le,qe,U)||r!==null&&r.dependencies!==null&&ap(r.dependencies))?(je||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(g,qe,U),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(g,qe,U)),typeof E.componentDidUpdate=="function"&&(i.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof E.componentDidUpdate!="function"||D===r.memoizedProps&&Le===r.memoizedState||(i.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||D===r.memoizedProps&&Le===r.memoizedState||(i.flags|=1024),i.memoizedProps=g,i.memoizedState=qe),E.props=g,E.state=qe,E.context=U,E=te):(typeof E.componentDidUpdate!="function"||D===r.memoizedProps&&Le===r.memoizedState||(i.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||D===r.memoizedProps&&Le===r.memoizedState||(i.flags|=1024),E=!1)}if(U=E,Ap(r,i),D=(i.flags&128)!==0,U||D){if(U=i.stateNode,vu(i),D&&typeof u.getDerivedStateFromError!="function")u=null,Mo=-1;else{if(Fe(i),u=Q_(U),i.mode&Ii){Ue(!0);try{Q_(U)}finally{Ue(!1)}}Je()}i.flags|=1,r!==null&&D?(i.child=Eg(i,r.child,null,b),i.child=Eg(i,null,u,b)):fa(r,i,u,b),i.memoizedState=U.state,r=i.child}else r=Il(r,i,b);return b=i.stateNode,E&&b.props!==g&&(Ag||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Z(i)||"a component"),Ag=!0),r}function ob(r,i,u,g){return rd(),i.flags|=256,fa(r,i,u,g),i.child}function Cp(r,i){i&&i.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
766
- %s.childContextTypes = ...`,i.displayName||i.name||"Component"),typeof i.getDerivedStateFromProps=="function"&&(r=ie(i)||"Unknown",CN[r]||(console.error("%s: Function components do not support getDerivedStateFromProps.",r),CN[r]=!0)),typeof i.contextType=="object"&&i.contextType!==null&&(i=ie(i)||"Unknown",wN[i]||(console.error("%s: Function components do not support contextType.",i),wN[i]=!0))}function c1(r){return{baseLanes:r,cachePool:Hv()}}function lb(r,i,u){return r=r!==null?r.childLanes&~u:0,i&&(r|=hl),r}function sb(r,i,u){var g,b=i.pendingProps;f(i)&&(i.flags|=128);var E=!1,D=(i.flags&128)!==0;if((g=D)||(g=r!==null&&r.memoizedState===null?!1:(Va.current&H4)!==0),g&&(E=!0,i.flags&=-129),g=(i.flags&32)!==0,i.flags&=-33,r===null){if(Vn){if(E?wi(i):Eo(i),Vn){var U=ia,te;if(!(te=!U)){e:{var oe=U;for(te=tc;oe.nodeType!==8;){if(!te){te=null;break e}if(oe=_i(oe.nextSibling),oe===null){te=null;break e}}te=oe}te!==null?(Ho(),i.memoizedState={dehydrated:te,treeContext:sh!==null?{id:hf,overflow:mf}:null,retryLane:536870912,hydrationErrors:null},oe=T(18,null,null,Cr),oe.stateNode=te,oe.return=i,i.child=oe,no=i,ia=null,te=!0):te=!1,te=!te}te&&(nd(i,U),Eu(i))}if(U=i.memoizedState,U!==null&&(U=U.dehydrated,U!==null))return Gu(U)?i.lanes=32:i.lanes=536870912,null;Ai(i)}return U=b.children,b=b.fallback,E?(Eo(i),E=i.mode,U=Op({mode:"hidden",children:U},E),b=vo(b,E,u,null),U.return=i,b.return=i,U.sibling=b,i.child=U,E=i.child,E.memoizedState=c1(u),E.childLanes=lb(r,g,u),i.memoizedState=fw,b):(wi(i),f1(i,U))}var Be=r.memoizedState;if(Be!==null&&(U=Be.dehydrated,U!==null)){if(D)i.flags&256?(wi(i),i.flags&=-257,i=Rp(r,i,u)):i.memoizedState!==null?(Eo(i),i.child=r.child,i.flags|=128,i=null):(Eo(i),E=b.fallback,U=i.mode,b=Op({mode:"visible",children:b.children},U),E=vo(E,U,u,null),E.flags|=2,b.return=i,E.return=i,b.sibling=E,i.child=b,Eg(i,r.child,null,u),b=i.child,b.memoizedState=c1(u),b.childLanes=lb(r,g,u),i.memoizedState=fw,i=E);else if(wi(i),Vn&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug."),Gu(U)){if(g=U.nextSibling&&U.nextSibling.dataset,g){te=g.dgst;var je=g.msg;oe=g.stck;var Le=g.cstck}U=je,g=te,b=oe,te=E=Le,E=Error(U||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),E.stack=b||"",E.digest=g,g=te===void 0?null:te,b={value:E,source:null,stack:g},typeof g=="string"&&GT.set(E,b),ad(b),i=Rp(r,i,u)}else if(Fa||hs(r,i,u,!1),g=(u&r.childLanes)!==0,Fa||g){if(g=Sr,g!==null&&(b=u&-u,b=(b&42)!==0?1:rt(b),b=(b&(g.suspendedLanes|u))!==0?0:b,b!==0&&b!==Be.retryLane))throw Be.retryLane=b,vi(r,b),wn(g,r,b),EN;U.data===Sf||x1(),i=Rp(r,i,u)}else U.data===Sf?(i.flags|=192,i.child=r.child,i=null):(r=Be.treeContext,ia=_i(U.nextSibling),no=i,Vn=!0,uh=null,gf=!1,Ql=null,tc=!1,r!==null&&(Ho(),Xl[Wl++]=hf,Xl[Wl++]=mf,Xl[Wl++]=sh,hf=r.id,mf=r.overflow,sh=i),i=f1(i,b.children),i.flags|=4096);return i}return E?(Eo(i),E=b.fallback,U=i.mode,te=r.child,oe=te.sibling,b=Dl(te,{mode:"hidden",children:b.children}),b.subtreeFlags=te.subtreeFlags&65011712,oe!==null?E=Dl(oe,E):(E=vo(E,U,u,null),E.flags|=2),E.return=i,b.return=i,b.sibling=E,i.child=b,b=E,E=i.child,U=r.child.memoizedState,U===null?U=c1(u):(te=U.cachePool,te!==null?(oe=Ba._currentValue,te=te.parent!==oe?{parent:oe,pool:oe}:te):te=Hv(),U={baseLanes:U.baseLanes|u,cachePool:te}),E.memoizedState=U,E.childLanes=lb(r,g,u),i.memoizedState=fw,b):(wi(i),u=r.child,r=u.sibling,u=Dl(u,{mode:"visible",children:b.children}),u.return=i,u.sibling=null,r!==null&&(g=i.deletions,g===null?(i.deletions=[r],i.flags|=16):g.push(r)),i.child=u,i.memoizedState=null,u)}function f1(r,i){return i=Op({mode:"visible",children:i},r.mode),i.return=r,r.child=i}function Op(r,i){return r=T(22,r,null,i),r.lanes=0,r.stateNode={_visibility:$6,_pendingMarkers:null,_retryCache:null,_transitions:null},r}function Rp(r,i,u){return Eg(i,r.child,null,u),r=f1(i,i.pendingProps.children),r.flags|=2,i.memoizedState=null,r}function ub(r,i,u){r.lanes|=i;var g=r.alternate;g!==null&&(g.lanes|=i),Vv(r.return,i,u)}function cb(r,i){var u=pa(r);return r=!u&&typeof X(r)=="function",u||r?(u=u?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",u,i,u),!1):!0}function d1(r,i,u,g,b){var E=r.memoizedState;E===null?r.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:g,tail:u,tailMode:b}:(E.isBackwards=i,E.rendering=null,E.renderingStartTime=0,E.last=g,E.tail=u,E.tailMode=b)}function fb(r,i,u){var g=i.pendingProps,b=g.revealOrder,E=g.tail;if(g=g.children,b!==void 0&&b!=="forwards"&&b!=="backwards"&&b!=="together"&&!ON[b])if(ON[b]=!0,typeof b=="string")switch(b.toLowerCase()){case"together":case"forwards":case"backwards":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',b,b.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',b,b.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',b)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',b);E===void 0||cw[E]||(E!=="collapsed"&&E!=="hidden"?(cw[E]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',E)):b!=="forwards"&&b!=="backwards"&&(cw[E]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',E)));e:if((b==="forwards"||b==="backwards")&&g!==void 0&&g!==null&&g!==!1)if(pa(g)){for(var D=0;D<g.length;D++)if(!cb(g[D],D))break e}else if(D=X(g),typeof D=="function"){if(D=D.call(g))for(var U=D.next(),te=0;!U.done;U=D.next()){if(!cb(U.value,te))break e;te++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',b);if(fa(r,i,g,u),g=Va.current,(g&H4)!==0)g=g&Tg|H4,i.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=i.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&ub(r,u,i);else if(r.tag===19)ub(r,u,i);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===i)break e;for(;r.sibling===null;){if(r.return===null||r.return===i)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}g&=Tg}switch(ne(Va,g,i),b){case"forwards":for(u=i.child,b=null;u!==null;)r=u.alternate,r!==null&&n1(r)===null&&(b=u),u=u.sibling;u=b,u===null?(b=i.child,i.child=null):(b=u.sibling,u.sibling=null),d1(i,!1,b,u,E);break;case"backwards":for(u=null,b=i.child,i.child=null;b!==null;){if(r=b.alternate,r!==null&&n1(r)===null){i.child=b;break}r=b.sibling,b.sibling=u,u=b,b=r}d1(i,!0,u,null,E);break;case"together":d1(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Il(r,i,u){if(r!==null&&(i.dependencies=r.dependencies),Mo=-1,o0|=i.lanes,(u&i.childLanes)===0)if(r!==null){if(hs(r,i,u,!1),(u&i.childLanes)===0)return null}else return null;if(r!==null&&i.child!==r.child)throw Error("Resuming work not yet implemented.");if(i.child!==null){for(r=i.child,u=Dl(r,r.pendingProps),i.child=u,u.return=i;r.sibling!==null;)r=r.sibling,u=u.sibling=Dl(r,r.pendingProps),u.return=i;u.sibling=null}return i.child}function db(r,i){return(r.lanes&i)!==0?!0:(r=r.dependencies,!!(r!==null&&ap(r)))}function Kx(r,i,u){switch(i.tag){case 3:ae(i,i.stateNode.containerInfo),Tu(i,Ba,r.memoizedState.cache),rd();break;case 27:case 5:ge(i);break;case 4:ae(i,i.stateNode.containerInfo);break;case 10:Tu(i,i.type,i.memoizedProps.value);break;case 12:(u&i.childLanes)!==0&&(i.flags|=4),i.flags|=2048;var g=i.stateNode;g.effectDuration=-0,g.passiveEffectDuration=-0;break;case 13:if(g=i.memoizedState,g!==null)return g.dehydrated!==null?(wi(i),i.flags|=128,null):(u&i.child.childLanes)!==0?sb(r,i,u):(wi(i),r=Il(r,i,u),r!==null?r.sibling:null);wi(i);break;case 19:var b=(r.flags&128)!==0;if(g=(u&i.childLanes)!==0,g||(hs(r,i,u,!1),g=(u&i.childLanes)!==0),b){if(g)return fb(r,i,u);i.flags|=128}if(b=i.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),ne(Va,Va.current,i),g)break;return null;case 22:case 23:return i.lanes=0,s1(r,i,u);case 24:Tu(i,Ba,r.memoizedState.cache)}return Il(r,i,u)}function zu(r,i,u){if(i._debugNeedsRemount&&r!==null){u=Bm(i.type,i.key,i.pendingProps,i._debugOwner||null,i.mode,i.lanes),u._debugStack=i._debugStack,u._debugTask=i._debugTask;var g=i.return;if(g===null)throw Error("Cannot swap the root fiber.");if(r.alternate=null,i.alternate=null,u.index=i.index,u.sibling=i.sibling,u.return=i.return,u.ref=i.ref,u._debugInfo=i._debugInfo,i===g.child)g.child=u;else{var b=g.child;if(b===null)throw Error("Expected parent to have a child.");for(;b.sibling!==i;)if(b=b.sibling,b===null)throw Error("Expected to find the previous sibling.");b.sibling=u}return i=g.deletions,i===null?(g.deletions=[r],g.flags|=16):i.push(r),u.flags|=2,u}if(r!==null)if(r.memoizedProps!==i.pendingProps||i.type!==r.type)Fa=!0;else{if(!db(r,u)&&(i.flags&128)===0)return Fa=!1,Kx(r,i,u);Fa=(r.flags&131072)!==0}else Fa=!1,(g=Vn)&&(Ho(),g=(i.flags&1048576)!==0),g&&(g=i.index,Ho(),Iv(i,H6,g));switch(i.lanes=0,i.tag){case 16:e:if(g=i.pendingProps,r=a0(i.elementType),i.type=r,typeof r=="function")Im(r)?(g=Nu(r,g),i.tag=1,i.type=r=Ic(r),i=ib(null,i,r,g,u)):(i.tag=0,Cp(i,r),i.type=r=Ic(r),i=u1(null,i,r,g,u));else{if(r!=null){if(b=r.$$typeof,b===Wu){i.tag=11,i.type=r=_v(r),i=Ll(null,i,r,g,u);break e}else if(b===F1){i.tag=14,i=wp(null,i,r,g,u);break e}}throw i="",r!==null&&typeof r=="object"&&r.$$typeof===Ji&&(i=" Did you wrap a component in React.lazy() more than once?"),r=ie(r)||r,Error("Element type is invalid. Received a promise that resolves to: "+r+". Lazy element type must resolve to a class or function."+i)}return i;case 0:return u1(r,i,i.type,i.pendingProps,u);case 1:return g=i.type,b=Nu(g,i.pendingProps),ib(r,i,g,b,u);case 3:e:{if(ae(i,i.stateNode.containerInfo),r===null)throw Error("Should have a current fiber. This is a bug in React.");g=i.pendingProps;var E=i.memoizedState;b=E.element,lp(r,i),Ou(i,g,null,u);var D=i.memoizedState;if(g=D.cache,Tu(i,Ba,g),g!==E.cache&&ei(i,[Ba],u,!0),ld(),g=D.element,E.isDehydrated)if(E={element:g,isDehydrated:!1,cache:D.cache},i.updateQueue.baseState=E,i.memoizedState=E,i.flags&256){i=ob(r,i,g,u);break e}else if(g!==b){b=yi(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),i),ad(b),i=ob(r,i,g,u);break e}else{switch(r=i.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(ia=_i(r.firstChild),no=i,Vn=!0,uh=null,gf=!1,Ql=null,tc=!0,r=cN(i,null,g,u),i.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(rd(),g===b){i=Il(r,i,u);break e}fa(r,i,g,u)}i=i.child}return i;case 26:return Ap(r,i),r===null?(r=$p(i.type,null,i.pendingProps,null))?i.memoizedState=r:Vn||(r=i.type,u=i.pendingProps,g=Y(Vl.current),g=Bn(g).createElement(r),g[Ga]=i,g[Li]=u,Ta(g,r,u),we(g),i.stateNode=g):i.memoizedState=$p(i.type,r.memoizedProps,i.pendingProps,r.memoizedState),null;case 27:return ge(i),r===null&&Vn&&(g=Y(Vl.current),b=re(),g=i.stateNode=Ni(i.type,i.pendingProps,g,b,!1),gf||(b=Cn(g,i.type,i.pendingProps,b),b!==null&&(Uc(i,0).serverProps=b)),no=i,tc=!0,b=ia,da(i.type)?(zw=b,ia=_i(g.firstChild)):ia=b),fa(r,i,i.pendingProps.children,u),Ap(r,i),r===null&&(i.flags|=4194304),i.child;case 5:return r===null&&Vn&&(E=re(),g=Am(i.type,E.ancestorInfo),b=ia,(D=!b)||(D=Na(b,i.type,i.pendingProps,tc),D!==null?(i.stateNode=D,gf||(E=Cn(D,i.type,i.pendingProps,E),E!==null&&(Uc(i,0).serverProps=E)),no=i,ia=_i(D.firstChild),tc=!1,E=!0):E=!1,D=!E),D&&(g&&nd(i,b),Eu(i))),ge(i),b=i.type,E=i.pendingProps,D=r!==null?r.memoizedProps:null,g=E.children,$u(b,E)?g=null:D!==null&&$u(b,D)&&(i.flags|=32),i.memoizedState!==null&&(b=ud(r,i,xo,null,null,u),a5._currentValue=b),Ap(r,i),fa(r,i,g,u),i.child;case 6:return r===null&&Vn&&(r=i.pendingProps,u=re(),g=u.ancestorInfo.current,r=g!=null?Zf(r,g.tag,u.ancestorInfo.implicitRootScope):!0,u=ia,(g=!u)||(g=qu(u,i.pendingProps,tc),g!==null?(i.stateNode=g,no=i,ia=null,g=!0):g=!1,g=!g),g&&(r&&nd(i,u),Eu(i))),null;case 13:return sb(r,i,u);case 4:return ae(i,i.stateNode.containerInfo),g=i.pendingProps,r===null?i.child=Eg(i,null,g,u):fa(r,i,g,u),i.child;case 11:return Ll(r,i,i.type,i.pendingProps,u);case 7:return fa(r,i,i.pendingProps,u),i.child;case 8:return fa(r,i,i.pendingProps.children,u),i.child;case 12:return i.flags|=4,i.flags|=2048,g=i.stateNode,g.effectDuration=-0,g.passiveEffectDuration=-0,fa(r,i,i.pendingProps.children,u),i.child;case 10:return g=i.type,b=i.pendingProps,E=b.value,"value"in b||RN||(RN=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Tu(i,g,E),fa(r,i,b.children,u),i.child;case 9:return b=i.type._context,g=i.pendingProps.children,typeof g!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),wu(i),b=yr(b),Fe(i),g=aw(g,b,void 0),Je(),i.flags|=1,fa(r,i,g,u),i.child;case 14:return wp(r,i,i.type,i.pendingProps,u);case 15:return l1(r,i,i.type,i.pendingProps,u);case 19:return fb(r,i,u);case 31:return g=i.pendingProps,u=i.mode,g={mode:g.mode,children:g.children},r===null?(r=Op(g,u),r.ref=i.ref,i.child=r,r.return=i,i=r):(r=Dl(r.child,g),r.ref=i.ref,i.child=r,r.return=i,i=r),i;case 22:return s1(r,i,u);case 24:return wu(i),g=yr(Ba),r===null?(b=jv(),b===null&&(b=Sr,E=Uv(),b.pooledCache=E,bo(E),E!==null&&(b.pooledCacheLanes|=u),b=E),i.memoizedState={parent:g,cache:b},Cu(i),Tu(i,Ba,b)):((r.lanes&u)!==0&&(lp(r,i),Ou(i,null,null,u),ld()),b=r.memoizedState,E=i.memoizedState,b.parent!==g?(b={parent:g,cache:g},i.memoizedState=b,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=b),Tu(i,Ba,g)):(g=E.cache,Tu(i,Ba,g),g!==b.cache&&ei(i,[Ba],u,!0))),fa(r,i,i.pendingProps.children,u),i.child;case 29:throw i.pendingProps}throw Error("Unknown unit of work tag ("+i.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function To(r){r.flags|=4}function pb(r,i){if(i.type!=="stylesheet"||(i.state.loading&ts)!==wh)r.flags&=-16777217;else if(r.flags|=16777216,!t4(i)){if(i=es.current,i!==null&&((kn&4194048)===kn?rc!==null:(kn&62914560)!==kn&&(kn&536870912)===0||i!==rc))throw V4=KT,P_;r.flags|=8192}}function Kc(r,i){i!==null&&(r.flags|=4),r.flags&16384&&(i=r.tag!==22?Et():536870912,r.lanes|=i,vh|=i)}function ws(r,i){if(!Vn)switch(r.tailMode){case"hidden":i=r.tail;for(var u=null;i!==null;)i.alternate!==null&&(u=i),i=i.sibling;u===null?r.tail=null:u.sibling=null;break;case"collapsed":u=r.tail;for(var g=null;u!==null;)u.alternate!==null&&(g=u),u=u.sibling;g===null?i||r.tail===null?r.tail=null:r.tail.sibling=null:g.sibling=null}}function vr(r){var i=r.alternate!==null&&r.alternate.child===r.child,u=0,g=0;if(i)if((r.mode&ai)!==Cr){for(var b=r.selfBaseDuration,E=r.child;E!==null;)u|=E.lanes|E.childLanes,g|=E.subtreeFlags&65011712,g|=E.flags&65011712,b+=E.treeBaseDuration,E=E.sibling;r.treeBaseDuration=b}else for(b=r.child;b!==null;)u|=b.lanes|b.childLanes,g|=b.subtreeFlags&65011712,g|=b.flags&65011712,b.return=r,b=b.sibling;else if((r.mode&ai)!==Cr){b=r.actualDuration,E=r.selfBaseDuration;for(var D=r.child;D!==null;)u|=D.lanes|D.childLanes,g|=D.subtreeFlags,g|=D.flags,b+=D.actualDuration,E+=D.treeBaseDuration,D=D.sibling;r.actualDuration=b,r.treeBaseDuration=E}else for(b=r.child;b!==null;)u|=b.lanes|b.childLanes,g|=b.subtreeFlags,g|=b.flags,b.return=r,b=b.sibling;return r.subtreeFlags|=g,r.childLanes=u,i}function Zx(r,i,u){var g=i.pendingProps;switch(Vc(i),i.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vr(i),null;case 1:return vr(i),null;case 3:return u=i.stateNode,g=null,r!==null&&(g=r.memoizedState.cache),i.memoizedState.cache!==g&&(i.flags|=2048),ps(Ba,i),K(i),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(r===null||r.child===null)&&($c(i)?(Yx(),To(i)):r===null||r.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Pv())),vr(i),null;case 26:return u=i.memoizedState,r===null?(To(i),u!==null?(vr(i),pb(i,u)):(vr(i),i.flags&=-16777217)):u?u!==r.memoizedState?(To(i),vr(i),pb(i,u)):(vr(i),i.flags&=-16777217):(r.memoizedProps!==g&&To(i),vr(i),i.flags&=-16777217),null;case 27:ye(i),u=Y(Vl.current);var b=i.type;if(r!==null&&i.stateNode!=null)r.memoizedProps!==g&&To(i);else{if(!g){if(i.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return vr(i),null}r=re(),$c(i)?Bv(i):(r=Ni(b,g,u,r,!0),i.stateNode=r,To(i))}return vr(i),null;case 5:if(ye(i),u=i.type,r!==null&&i.stateNode!=null)r.memoizedProps!==g&&To(i);else{if(!g){if(i.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return vr(i),null}if(b=re(),$c(i))Bv(i);else{switch(r=Y(Vl.current),Am(u,b.ancestorInfo),b=b.context,r=Bn(r),b){case zg:r=r.createElementNS($s,u);break;case gS:r=r.createElementNS(ag,u);break;default:switch(u){case"svg":r=r.createElementNS($s,u);break;case"math":r=r.createElementNS(ag,u);break;case"script":r=r.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof g.is=="string"?r.createElement("select",{is:g.is}):r.createElement("select"),g.multiple?r.multiple=!0:g.size&&(r.size=g.size);break;default:r=typeof g.is=="string"?r.createElement(u,{is:g.is}):r.createElement(u),u.indexOf("-")===-1&&(u!==u.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",u),Object.prototype.toString.call(r)!=="[object HTMLUnknownElement]"||Ul.call(YN,u)||(YN[u]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",u)))}}r[Ga]=i,r[Li]=g;e:for(b=i.child;b!==null;){if(b.tag===5||b.tag===6)r.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===i)break e;for(;b.sibling===null;){if(b.return===null||b.return===i)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}i.stateNode=r;e:switch(Ta(r,u,g),u){case"button":case"input":case"select":case"textarea":r=!!g.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&To(i)}}return vr(i),i.flags&=-16777217,null;case 6:if(r&&i.stateNode!=null)r.memoizedProps!==g&&To(i);else{if(typeof g!="string"&&i.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(r=Y(Vl.current),u=re(),$c(i)){r=i.stateNode,u=i.memoizedProps,b=!gf,g=null;var E=no;if(E!==null)switch(E.tag){case 3:b&&(b=Kb(r,u,g),b!==null&&(Uc(i,0).serverProps=b));break;case 27:case 5:g=E.memoizedProps,b&&(b=Kb(r,u,g),b!==null&&(Uc(i,0).serverProps=b))}r[Ga]=i,r=!!(r.nodeValue===u||g!==null&&g.suppressHydrationWarning===!0||of(r.nodeValue,u)),r||Eu(i)}else b=u.ancestorInfo.current,b!=null&&Zf(g,b.tag,u.ancestorInfo.implicitRootScope),r=Bn(r).createTextNode(g),r[Ga]=i,i.stateNode=r}return vr(i),null;case 13:if(g=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(b=$c(i),g!==null&&g.dehydrated!==null){if(r===null){if(!b)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(b=i.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");b[Ga]=i,vr(i),(i.mode&ai)!==Cr&&g!==null&&(b=i.child,b!==null&&(i.treeBaseDuration-=b.treeBaseDuration))}else Yx(),rd(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4,vr(i),(i.mode&ai)!==Cr&&g!==null&&(b=i.child,b!==null&&(i.treeBaseDuration-=b.treeBaseDuration));b=!1}else b=Pv(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=b),b=!0;if(!b)return i.flags&256?(Ai(i),i):(Ai(i),null)}return Ai(i),(i.flags&128)!==0?(i.lanes=u,(i.mode&ai)!==Cr&&op(i),i):(u=g!==null,r=r!==null&&r.memoizedState!==null,u&&(g=i.child,b=null,g.alternate!==null&&g.alternate.memoizedState!==null&&g.alternate.memoizedState.cachePool!==null&&(b=g.alternate.memoizedState.cachePool.pool),E=null,g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(E=g.memoizedState.cachePool.pool),E!==b&&(g.flags|=2048)),u!==r&&u&&(i.child.flags|=8192),Kc(i,i.updateQueue),vr(i),(i.mode&ai)!==Cr&&u&&(r=i.child,r!==null&&(i.treeBaseDuration-=r.treeBaseDuration)),null);case 4:return K(i),r===null&&Pp(i.stateNode.containerInfo),vr(i),null;case 10:return ps(i.type,i),vr(i),null;case 19:if(V(Va,i),b=i.memoizedState,b===null)return vr(i),null;if(g=(i.flags&128)!==0,E=b.rendering,E===null)if(g)ws(b,!1);else{if(oa!==xf||r!==null&&(r.flags&128)!==0)for(r=i.child;r!==null;){if(E=n1(r),E!==null){for(i.flags|=128,ws(b,!1),r=E.updateQueue,i.updateQueue=r,Kc(i,r),i.subtreeFlags=0,r=u,u=i.child;u!==null;)Nv(u,r),u=u.sibling;return ne(Va,Va.current&Tg|H4,i),i.child}r=r.sibling}b.tail!==null&&za()>aS&&(i.flags|=128,g=!0,ws(b,!1),i.lanes=4194304)}else{if(!g)if(r=n1(E),r!==null){if(i.flags|=128,g=!0,r=r.updateQueue,i.updateQueue=r,Kc(i,r),ws(b,!0),b.tail===null&&b.tailMode==="hidden"&&!E.alternate&&!Vn)return vr(i),null}else 2*za()-b.renderingStartTime>aS&&u!==536870912&&(i.flags|=128,g=!0,ws(b,!1),i.lanes=4194304);b.isBackwards?(E.sibling=i.child,i.child=E):(r=b.last,r!==null?r.sibling=E:i.child=E,b.last=E)}return b.tail!==null?(r=b.tail,b.rendering=r,b.tail=r.sibling,b.renderingStartTime=za(),r.sibling=null,u=Va.current,u=g?u&Tg|H4:u&Tg,ne(Va,u,i),r):(vr(i),null);case 22:case 23:return Ai(i),Fm(i),g=i.memoizedState!==null,r!==null?r.memoizedState!==null!==g&&(i.flags|=8192):g&&(i.flags|=8192),g?(u&536870912)!==0&&(i.flags&128)===0&&(vr(i),i.subtreeFlags&6&&(i.flags|=8192)):vr(i),u=i.updateQueue,u!==null&&Kc(i,u.retryQueue),u=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),g=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(g=i.memoizedState.cachePool.pool),g!==u&&(i.flags|=2048),r!==null&&V(dh,i),null;case 24:return u=null,r!==null&&(u=r.memoizedState.cache),i.memoizedState.cache!==u&&(i.flags|=2048),ps(Ba,i),vr(i),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+i.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Jx(r,i){switch(Vc(i),i.tag){case 1:return r=i.flags,r&65536?(i.flags=r&-65537|128,(i.mode&ai)!==Cr&&op(i),i):null;case 3:return ps(Ba,i),K(i),r=i.flags,(r&65536)!==0&&(r&128)===0?(i.flags=r&-65537|128,i):null;case 26:case 27:case 5:return ye(i),null;case 13:if(Ai(i),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");rd()}return r=i.flags,r&65536?(i.flags=r&-65537|128,(i.mode&ai)!==Cr&&op(i),i):null;case 19:return V(Va,i),null;case 4:return K(i),null;case 10:return ps(i.type,i),null;case 22:case 23:return Ai(i),Fm(i),r!==null&&V(dh,i),r=i.flags,r&65536?(i.flags=r&-65537|128,(i.mode&ai)!==Cr&&op(i),i):null;case 24:return ps(Ba,i),null;case 25:return null;default:return null}}function hb(r,i){switch(Vc(i),i.tag){case 3:ps(Ba,i),K(i);break;case 26:case 27:case 5:ye(i);break;case 4:K(i);break;case 13:Ai(i);break;case 19:V(Va,i);break;case 10:ps(i.type,i);break;case 22:case 23:Ai(i),Fm(i),r!==null&&V(dh,i);break;case 24:ps(Ba,i)}}function Jo(r){return(r.mode&ai)!==Cr}function mb(r,i){Jo(r)?(ja(),Ad(i,r),qo()):Ad(i,r)}function Mp(r,i,u){Jo(r)?(ja(),Zc(u,r,i),qo()):Zc(u,r,i)}function Ad(r,i){try{var u=i.updateQueue,g=u!==null?u.lastEffect:null;if(g!==null){var b=g.next;u=b;do{if((u.tag&r)===r&&((r&Pa)!==Kl?vt!==null&&typeof vt.markComponentPassiveEffectMountStarted=="function"&&vt.markComponentPassiveEffectMountStarted(i):(r&ii)!==Kl&&vt!==null&&typeof vt.markComponentLayoutEffectMountStarted=="function"&&vt.markComponentLayoutEffectMountStarted(i),g=void 0,(r&ro)!==Kl&&(_g=!0),g=Mt(i,ile,u),(r&ro)!==Kl&&(_g=!1),(r&Pa)!==Kl?vt!==null&&typeof vt.markComponentPassiveEffectMountStopped=="function"&&vt.markComponentPassiveEffectMountStopped():(r&ii)!==Kl&&vt!==null&&typeof vt.markComponentLayoutEffectMountStopped=="function"&&vt.markComponentLayoutEffectMountStopped(),g!==void 0&&typeof g!="function")){var E=void 0;E=(u.tag&ii)!==0?"useLayoutEffect":(u.tag&ro)!==0?"useInsertionEffect":"useEffect";var D=void 0;D=g===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof g.then=="function"?`
765
+ `+te:""))}}E=i.stateNode,D=ie(u)||"Component",E.render||(u.prototype&&typeof u.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",D):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",D)),!E.getInitialState||E.getInitialState.isReactClassApproved||E.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",D),E.getDefaultProps&&!E.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",D),E.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",D),u.childContextTypes&&!bN.has(u)&&(bN.add(u),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",D)),u.contextTypes&&!vN.has(u)&&(vN.add(u),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",D)),typeof E.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",D),u.prototype&&u.prototype.isPureReactComponent&&typeof E.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",ie(u)||"A pure component"),typeof E.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",D),typeof E.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",D),typeof E.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",D),typeof E.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",D),U=E.props!==g,E.props!==void 0&&U&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",D),E.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",D,D),typeof E.getSnapshotBeforeUpdate!="function"||typeof E.componentDidUpdate=="function"||hN.has(u)||(hN.add(u),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",ie(u))),typeof E.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",D),typeof E.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",D),typeof u.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",D),(U=E.state)&&(typeof U!="object"||pa(U))&&console.error("%s.state: must be set to an object or null",D),typeof E.getChildContext=="function"&&typeof u.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",D),E=i.stateNode,E.props=g,E.state=i.memoizedState,E.refs={},Cu(i),D=u.contextType,E.context=typeof D=="object"&&D!==null?yr(D):t0,E.state===g&&(D=ie(u)||"Component",gN.has(D)||(gN.add(D),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",D))),i.mode&Ii&&Hs.recordLegacyContextWarning(i,E),Hs.recordUnsafeLifecycleWarnings(i,E),E.state=i.memoizedState,D=u.getDerivedStateFromProps,typeof D=="function"&&(Ep(i,u,D,g),E.state=i.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(D=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),D!==E.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Z(i)||"Component"),lw.enqueueReplaceState(E,E.state,null)),Ou(i,g,E,b),ld(),E.state=i.memoizedState),typeof E.componentDidMount=="function"&&(i.flags|=4194308),(i.mode&js)!==Or&&(i.flags|=134217728),E=!0}else if(r===null){E=i.stateNode;var Be=i.memoizedProps;U=Nu(u,Be),E.props=U;var je=E.context;te=u.contextType,D=t0,typeof te=="object"&&te!==null&&(D=yr(te)),oe=u.getDerivedStateFromProps,te=typeof oe=="function"||typeof E.getSnapshotBeforeUpdate=="function",Be=i.pendingProps!==Be,te||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(Be||je!==D)&&nb(i,E,g,D),n0=!1;var Le=i.memoizedState;E.state=Le,Ou(i,g,E,b),ld(),je=i.memoizedState,Be||Le!==je||n0?(typeof oe=="function"&&(Ep(i,u,oe,g),je=i.memoizedState),(U=n0||r1(i,u,U,g,Le,je,D))?(te||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(i.flags|=4194308),(i.mode&js)!==Or&&(i.flags|=134217728)):(typeof E.componentDidMount=="function"&&(i.flags|=4194308),(i.mode&js)!==Or&&(i.flags|=134217728),i.memoizedProps=g,i.memoizedState=je),E.props=g,E.state=je,E.context=D,E=U):(typeof E.componentDidMount=="function"&&(i.flags|=4194308),(i.mode&js)!==Or&&(i.flags|=134217728),E=!1)}else{E=i.stateNode,lp(r,i),D=i.memoizedProps,te=Nu(u,D),E.props=te,oe=i.pendingProps,Le=E.context,je=u.contextType,U=t0,typeof je=="object"&&je!==null&&(U=yr(je)),Be=u.getDerivedStateFromProps,(je=typeof Be=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(D!==oe||Le!==U)&&nb(i,E,g,U),n0=!1,Le=i.memoizedState,E.state=Le,Ou(i,g,E,b),ld();var qe=i.memoizedState;D!==oe||Le!==qe||n0||r!==null&&r.dependencies!==null&&ap(r.dependencies)?(typeof Be=="function"&&(Ep(i,u,Be,g),qe=i.memoizedState),(te=n0||r1(i,u,te,g,Le,qe,U)||r!==null&&r.dependencies!==null&&ap(r.dependencies))?(je||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(g,qe,U),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(g,qe,U)),typeof E.componentDidUpdate=="function"&&(i.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof E.componentDidUpdate!="function"||D===r.memoizedProps&&Le===r.memoizedState||(i.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||D===r.memoizedProps&&Le===r.memoizedState||(i.flags|=1024),i.memoizedProps=g,i.memoizedState=qe),E.props=g,E.state=qe,E.context=U,E=te):(typeof E.componentDidUpdate!="function"||D===r.memoizedProps&&Le===r.memoizedState||(i.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||D===r.memoizedProps&&Le===r.memoizedState||(i.flags|=1024),E=!1)}if(U=E,Ap(r,i),D=(i.flags&128)!==0,U||D){if(U=i.stateNode,vu(i),D&&typeof u.getDerivedStateFromError!="function")u=null,Mo=-1;else{if(Fe(i),u=Q_(U),i.mode&Ii){Ue(!0);try{Q_(U)}finally{Ue(!1)}}Je()}i.flags|=1,r!==null&&D?(i.child=Eg(i,r.child,null,b),i.child=Eg(i,null,u,b)):fa(r,i,u,b),i.memoizedState=U.state,r=i.child}else r=Il(r,i,b);return b=i.stateNode,E&&b.props!==g&&(Ag||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Z(i)||"a component"),Ag=!0),r}function ob(r,i,u,g){return rd(),i.flags|=256,fa(r,i,u,g),i.child}function Cp(r,i){i&&i.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
766
+ %s.childContextTypes = ...`,i.displayName||i.name||"Component"),typeof i.getDerivedStateFromProps=="function"&&(r=ie(i)||"Unknown",CN[r]||(console.error("%s: Function components do not support getDerivedStateFromProps.",r),CN[r]=!0)),typeof i.contextType=="object"&&i.contextType!==null&&(i=ie(i)||"Unknown",wN[i]||(console.error("%s: Function components do not support contextType.",i),wN[i]=!0))}function c1(r){return{baseLanes:r,cachePool:Hv()}}function lb(r,i,u){return r=r!==null?r.childLanes&~u:0,i&&(r|=hl),r}function sb(r,i,u){var g,b=i.pendingProps;f(i)&&(i.flags|=128);var E=!1,D=(i.flags&128)!==0;if((g=D)||(g=r!==null&&r.memoizedState===null?!1:(Va.current&H4)!==0),g&&(E=!0,i.flags&=-129),g=(i.flags&32)!==0,i.flags&=-33,r===null){if(Vn){if(E?wi(i):Eo(i),Vn){var U=ia,te;if(!(te=!U)){e:{var oe=U;for(te=tc;oe.nodeType!==8;){if(!te){te=null;break e}if(oe=_i(oe.nextSibling),oe===null){te=null;break e}}te=oe}te!==null?(Ho(),i.memoizedState={dehydrated:te,treeContext:sh!==null?{id:hf,overflow:mf}:null,retryLane:536870912,hydrationErrors:null},oe=T(18,null,null,Or),oe.stateNode=te,oe.return=i,i.child=oe,no=i,ia=null,te=!0):te=!1,te=!te}te&&(nd(i,U),Eu(i))}if(U=i.memoizedState,U!==null&&(U=U.dehydrated,U!==null))return Gu(U)?i.lanes=32:i.lanes=536870912,null;Ai(i)}return U=b.children,b=b.fallback,E?(Eo(i),E=i.mode,U=Op({mode:"hidden",children:U},E),b=vo(b,E,u,null),U.return=i,b.return=i,U.sibling=b,i.child=U,E=i.child,E.memoizedState=c1(u),E.childLanes=lb(r,g,u),i.memoizedState=fw,b):(wi(i),f1(i,U))}var Be=r.memoizedState;if(Be!==null&&(U=Be.dehydrated,U!==null)){if(D)i.flags&256?(wi(i),i.flags&=-257,i=Rp(r,i,u)):i.memoizedState!==null?(Eo(i),i.child=r.child,i.flags|=128,i=null):(Eo(i),E=b.fallback,U=i.mode,b=Op({mode:"visible",children:b.children},U),E=vo(E,U,u,null),E.flags|=2,b.return=i,E.return=i,b.sibling=E,i.child=b,Eg(i,r.child,null,u),b=i.child,b.memoizedState=c1(u),b.childLanes=lb(r,g,u),i.memoizedState=fw,i=E);else if(wi(i),Vn&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug."),Gu(U)){if(g=U.nextSibling&&U.nextSibling.dataset,g){te=g.dgst;var je=g.msg;oe=g.stck;var Le=g.cstck}U=je,g=te,b=oe,te=E=Le,E=Error(U||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),E.stack=b||"",E.digest=g,g=te===void 0?null:te,b={value:E,source:null,stack:g},typeof g=="string"&&GT.set(E,b),ad(b),i=Rp(r,i,u)}else if(Fa||hs(r,i,u,!1),g=(u&r.childLanes)!==0,Fa||g){if(g=Sr,g!==null&&(b=u&-u,b=(b&42)!==0?1:rt(b),b=(b&(g.suspendedLanes|u))!==0?0:b,b!==0&&b!==Be.retryLane))throw Be.retryLane=b,vi(r,b),wn(g,r,b),EN;U.data===Sf||x1(),i=Rp(r,i,u)}else U.data===Sf?(i.flags|=192,i.child=r.child,i=null):(r=Be.treeContext,ia=_i(U.nextSibling),no=i,Vn=!0,uh=null,gf=!1,Ql=null,tc=!1,r!==null&&(Ho(),Xl[Wl++]=hf,Xl[Wl++]=mf,Xl[Wl++]=sh,hf=r.id,mf=r.overflow,sh=i),i=f1(i,b.children),i.flags|=4096);return i}return E?(Eo(i),E=b.fallback,U=i.mode,te=r.child,oe=te.sibling,b=Dl(te,{mode:"hidden",children:b.children}),b.subtreeFlags=te.subtreeFlags&65011712,oe!==null?E=Dl(oe,E):(E=vo(E,U,u,null),E.flags|=2),E.return=i,b.return=i,b.sibling=E,i.child=b,b=E,E=i.child,U=r.child.memoizedState,U===null?U=c1(u):(te=U.cachePool,te!==null?(oe=Ba._currentValue,te=te.parent!==oe?{parent:oe,pool:oe}:te):te=Hv(),U={baseLanes:U.baseLanes|u,cachePool:te}),E.memoizedState=U,E.childLanes=lb(r,g,u),i.memoizedState=fw,b):(wi(i),u=r.child,r=u.sibling,u=Dl(u,{mode:"visible",children:b.children}),u.return=i,u.sibling=null,r!==null&&(g=i.deletions,g===null?(i.deletions=[r],i.flags|=16):g.push(r)),i.child=u,i.memoizedState=null,u)}function f1(r,i){return i=Op({mode:"visible",children:i},r.mode),i.return=r,r.child=i}function Op(r,i){return r=T(22,r,null,i),r.lanes=0,r.stateNode={_visibility:$6,_pendingMarkers:null,_retryCache:null,_transitions:null},r}function Rp(r,i,u){return Eg(i,r.child,null,u),r=f1(i,i.pendingProps.children),r.flags|=2,i.memoizedState=null,r}function ub(r,i,u){r.lanes|=i;var g=r.alternate;g!==null&&(g.lanes|=i),Vv(r.return,i,u)}function cb(r,i){var u=pa(r);return r=!u&&typeof X(r)=="function",u||r?(u=u?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",u,i,u),!1):!0}function d1(r,i,u,g,b){var E=r.memoizedState;E===null?r.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:g,tail:u,tailMode:b}:(E.isBackwards=i,E.rendering=null,E.renderingStartTime=0,E.last=g,E.tail=u,E.tailMode=b)}function fb(r,i,u){var g=i.pendingProps,b=g.revealOrder,E=g.tail;if(g=g.children,b!==void 0&&b!=="forwards"&&b!=="backwards"&&b!=="together"&&!ON[b])if(ON[b]=!0,typeof b=="string")switch(b.toLowerCase()){case"together":case"forwards":case"backwards":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',b,b.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',b,b.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',b)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',b);E===void 0||cw[E]||(E!=="collapsed"&&E!=="hidden"?(cw[E]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',E)):b!=="forwards"&&b!=="backwards"&&(cw[E]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',E)));e:if((b==="forwards"||b==="backwards")&&g!==void 0&&g!==null&&g!==!1)if(pa(g)){for(var D=0;D<g.length;D++)if(!cb(g[D],D))break e}else if(D=X(g),typeof D=="function"){if(D=D.call(g))for(var U=D.next(),te=0;!U.done;U=D.next()){if(!cb(U.value,te))break e;te++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',b);if(fa(r,i,g,u),g=Va.current,(g&H4)!==0)g=g&Tg|H4,i.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=i.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&ub(r,u,i);else if(r.tag===19)ub(r,u,i);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===i)break e;for(;r.sibling===null;){if(r.return===null||r.return===i)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}g&=Tg}switch(ne(Va,g,i),b){case"forwards":for(u=i.child,b=null;u!==null;)r=u.alternate,r!==null&&n1(r)===null&&(b=u),u=u.sibling;u=b,u===null?(b=i.child,i.child=null):(b=u.sibling,u.sibling=null),d1(i,!1,b,u,E);break;case"backwards":for(u=null,b=i.child,i.child=null;b!==null;){if(r=b.alternate,r!==null&&n1(r)===null){i.child=b;break}r=b.sibling,b.sibling=u,u=b,b=r}d1(i,!0,u,null,E);break;case"together":d1(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Il(r,i,u){if(r!==null&&(i.dependencies=r.dependencies),Mo=-1,o0|=i.lanes,(u&i.childLanes)===0)if(r!==null){if(hs(r,i,u,!1),(u&i.childLanes)===0)return null}else return null;if(r!==null&&i.child!==r.child)throw Error("Resuming work not yet implemented.");if(i.child!==null){for(r=i.child,u=Dl(r,r.pendingProps),i.child=u,u.return=i;r.sibling!==null;)r=r.sibling,u=u.sibling=Dl(r,r.pendingProps),u.return=i;u.sibling=null}return i.child}function db(r,i){return(r.lanes&i)!==0?!0:(r=r.dependencies,!!(r!==null&&ap(r)))}function Kx(r,i,u){switch(i.tag){case 3:ae(i,i.stateNode.containerInfo),Tu(i,Ba,r.memoizedState.cache),rd();break;case 27:case 5:ge(i);break;case 4:ae(i,i.stateNode.containerInfo);break;case 10:Tu(i,i.type,i.memoizedProps.value);break;case 12:(u&i.childLanes)!==0&&(i.flags|=4),i.flags|=2048;var g=i.stateNode;g.effectDuration=-0,g.passiveEffectDuration=-0;break;case 13:if(g=i.memoizedState,g!==null)return g.dehydrated!==null?(wi(i),i.flags|=128,null):(u&i.child.childLanes)!==0?sb(r,i,u):(wi(i),r=Il(r,i,u),r!==null?r.sibling:null);wi(i);break;case 19:var b=(r.flags&128)!==0;if(g=(u&i.childLanes)!==0,g||(hs(r,i,u,!1),g=(u&i.childLanes)!==0),b){if(g)return fb(r,i,u);i.flags|=128}if(b=i.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),ne(Va,Va.current,i),g)break;return null;case 22:case 23:return i.lanes=0,s1(r,i,u);case 24:Tu(i,Ba,r.memoizedState.cache)}return Il(r,i,u)}function zu(r,i,u){if(i._debugNeedsRemount&&r!==null){u=Bm(i.type,i.key,i.pendingProps,i._debugOwner||null,i.mode,i.lanes),u._debugStack=i._debugStack,u._debugTask=i._debugTask;var g=i.return;if(g===null)throw Error("Cannot swap the root fiber.");if(r.alternate=null,i.alternate=null,u.index=i.index,u.sibling=i.sibling,u.return=i.return,u.ref=i.ref,u._debugInfo=i._debugInfo,i===g.child)g.child=u;else{var b=g.child;if(b===null)throw Error("Expected parent to have a child.");for(;b.sibling!==i;)if(b=b.sibling,b===null)throw Error("Expected to find the previous sibling.");b.sibling=u}return i=g.deletions,i===null?(g.deletions=[r],g.flags|=16):i.push(r),u.flags|=2,u}if(r!==null)if(r.memoizedProps!==i.pendingProps||i.type!==r.type)Fa=!0;else{if(!db(r,u)&&(i.flags&128)===0)return Fa=!1,Kx(r,i,u);Fa=(r.flags&131072)!==0}else Fa=!1,(g=Vn)&&(Ho(),g=(i.flags&1048576)!==0),g&&(g=i.index,Ho(),Iv(i,H6,g));switch(i.lanes=0,i.tag){case 16:e:if(g=i.pendingProps,r=a0(i.elementType),i.type=r,typeof r=="function")Im(r)?(g=Nu(r,g),i.tag=1,i.type=r=Ic(r),i=ib(null,i,r,g,u)):(i.tag=0,Cp(i,r),i.type=r=Ic(r),i=u1(null,i,r,g,u));else{if(r!=null){if(b=r.$$typeof,b===Wu){i.tag=11,i.type=r=_v(r),i=Ll(null,i,r,g,u);break e}else if(b===F1){i.tag=14,i=wp(null,i,r,g,u);break e}}throw i="",r!==null&&typeof r=="object"&&r.$$typeof===Ji&&(i=" Did you wrap a component in React.lazy() more than once?"),r=ie(r)||r,Error("Element type is invalid. Received a promise that resolves to: "+r+". Lazy element type must resolve to a class or function."+i)}return i;case 0:return u1(r,i,i.type,i.pendingProps,u);case 1:return g=i.type,b=Nu(g,i.pendingProps),ib(r,i,g,b,u);case 3:e:{if(ae(i,i.stateNode.containerInfo),r===null)throw Error("Should have a current fiber. This is a bug in React.");g=i.pendingProps;var E=i.memoizedState;b=E.element,lp(r,i),Ou(i,g,null,u);var D=i.memoizedState;if(g=D.cache,Tu(i,Ba,g),g!==E.cache&&ei(i,[Ba],u,!0),ld(),g=D.element,E.isDehydrated)if(E={element:g,isDehydrated:!1,cache:D.cache},i.updateQueue.baseState=E,i.memoizedState=E,i.flags&256){i=ob(r,i,g,u);break e}else if(g!==b){b=yi(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),i),ad(b),i=ob(r,i,g,u);break e}else{switch(r=i.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(ia=_i(r.firstChild),no=i,Vn=!0,uh=null,gf=!1,Ql=null,tc=!0,r=cN(i,null,g,u),i.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(rd(),g===b){i=Il(r,i,u);break e}fa(r,i,g,u)}i=i.child}return i;case 26:return Ap(r,i),r===null?(r=$p(i.type,null,i.pendingProps,null))?i.memoizedState=r:Vn||(r=i.type,u=i.pendingProps,g=Y(Vl.current),g=Bn(g).createElement(r),g[Ga]=i,g[Li]=u,Ta(g,r,u),we(g),i.stateNode=g):i.memoizedState=$p(i.type,r.memoizedProps,i.pendingProps,r.memoizedState),null;case 27:return ge(i),r===null&&Vn&&(g=Y(Vl.current),b=re(),g=i.stateNode=Ni(i.type,i.pendingProps,g,b,!1),gf||(b=Cn(g,i.type,i.pendingProps,b),b!==null&&(Uc(i,0).serverProps=b)),no=i,tc=!0,b=ia,da(i.type)?(zw=b,ia=_i(g.firstChild)):ia=b),fa(r,i,i.pendingProps.children,u),Ap(r,i),r===null&&(i.flags|=4194304),i.child;case 5:return r===null&&Vn&&(E=re(),g=Am(i.type,E.ancestorInfo),b=ia,(D=!b)||(D=Na(b,i.type,i.pendingProps,tc),D!==null?(i.stateNode=D,gf||(E=Cn(D,i.type,i.pendingProps,E),E!==null&&(Uc(i,0).serverProps=E)),no=i,ia=_i(D.firstChild),tc=!1,E=!0):E=!1,D=!E),D&&(g&&nd(i,b),Eu(i))),ge(i),b=i.type,E=i.pendingProps,D=r!==null?r.memoizedProps:null,g=E.children,$u(b,E)?g=null:D!==null&&$u(b,D)&&(i.flags|=32),i.memoizedState!==null&&(b=ud(r,i,xo,null,null,u),a5._currentValue=b),Ap(r,i),fa(r,i,g,u),i.child;case 6:return r===null&&Vn&&(r=i.pendingProps,u=re(),g=u.ancestorInfo.current,r=g!=null?Zf(r,g.tag,u.ancestorInfo.implicitRootScope):!0,u=ia,(g=!u)||(g=qu(u,i.pendingProps,tc),g!==null?(i.stateNode=g,no=i,ia=null,g=!0):g=!1,g=!g),g&&(r&&nd(i,u),Eu(i))),null;case 13:return sb(r,i,u);case 4:return ae(i,i.stateNode.containerInfo),g=i.pendingProps,r===null?i.child=Eg(i,null,g,u):fa(r,i,g,u),i.child;case 11:return Ll(r,i,i.type,i.pendingProps,u);case 7:return fa(r,i,i.pendingProps,u),i.child;case 8:return fa(r,i,i.pendingProps.children,u),i.child;case 12:return i.flags|=4,i.flags|=2048,g=i.stateNode,g.effectDuration=-0,g.passiveEffectDuration=-0,fa(r,i,i.pendingProps.children,u),i.child;case 10:return g=i.type,b=i.pendingProps,E=b.value,"value"in b||RN||(RN=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Tu(i,g,E),fa(r,i,b.children,u),i.child;case 9:return b=i.type._context,g=i.pendingProps.children,typeof g!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),wu(i),b=yr(b),Fe(i),g=aw(g,b,void 0),Je(),i.flags|=1,fa(r,i,g,u),i.child;case 14:return wp(r,i,i.type,i.pendingProps,u);case 15:return l1(r,i,i.type,i.pendingProps,u);case 19:return fb(r,i,u);case 31:return g=i.pendingProps,u=i.mode,g={mode:g.mode,children:g.children},r===null?(r=Op(g,u),r.ref=i.ref,i.child=r,r.return=i,i=r):(r=Dl(r.child,g),r.ref=i.ref,i.child=r,r.return=i,i=r),i;case 22:return s1(r,i,u);case 24:return wu(i),g=yr(Ba),r===null?(b=jv(),b===null&&(b=Sr,E=Uv(),b.pooledCache=E,bo(E),E!==null&&(b.pooledCacheLanes|=u),b=E),i.memoizedState={parent:g,cache:b},Cu(i),Tu(i,Ba,b)):((r.lanes&u)!==0&&(lp(r,i),Ou(i,null,null,u),ld()),b=r.memoizedState,E=i.memoizedState,b.parent!==g?(b={parent:g,cache:g},i.memoizedState=b,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=b),Tu(i,Ba,g)):(g=E.cache,Tu(i,Ba,g),g!==b.cache&&ei(i,[Ba],u,!0))),fa(r,i,i.pendingProps.children,u),i.child;case 29:throw i.pendingProps}throw Error("Unknown unit of work tag ("+i.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function To(r){r.flags|=4}function pb(r,i){if(i.type!=="stylesheet"||(i.state.loading&ts)!==wh)r.flags&=-16777217;else if(r.flags|=16777216,!t4(i)){if(i=es.current,i!==null&&((kn&4194048)===kn?rc!==null:(kn&62914560)!==kn&&(kn&536870912)===0||i!==rc))throw V4=KT,P_;r.flags|=8192}}function Kc(r,i){i!==null&&(r.flags|=4),r.flags&16384&&(i=r.tag!==22?Et():536870912,r.lanes|=i,vh|=i)}function ws(r,i){if(!Vn)switch(r.tailMode){case"hidden":i=r.tail;for(var u=null;i!==null;)i.alternate!==null&&(u=i),i=i.sibling;u===null?r.tail=null:u.sibling=null;break;case"collapsed":u=r.tail;for(var g=null;u!==null;)u.alternate!==null&&(g=u),u=u.sibling;g===null?i||r.tail===null?r.tail=null:r.tail.sibling=null:g.sibling=null}}function vr(r){var i=r.alternate!==null&&r.alternate.child===r.child,u=0,g=0;if(i)if((r.mode&ai)!==Or){for(var b=r.selfBaseDuration,E=r.child;E!==null;)u|=E.lanes|E.childLanes,g|=E.subtreeFlags&65011712,g|=E.flags&65011712,b+=E.treeBaseDuration,E=E.sibling;r.treeBaseDuration=b}else for(b=r.child;b!==null;)u|=b.lanes|b.childLanes,g|=b.subtreeFlags&65011712,g|=b.flags&65011712,b.return=r,b=b.sibling;else if((r.mode&ai)!==Or){b=r.actualDuration,E=r.selfBaseDuration;for(var D=r.child;D!==null;)u|=D.lanes|D.childLanes,g|=D.subtreeFlags,g|=D.flags,b+=D.actualDuration,E+=D.treeBaseDuration,D=D.sibling;r.actualDuration=b,r.treeBaseDuration=E}else for(b=r.child;b!==null;)u|=b.lanes|b.childLanes,g|=b.subtreeFlags,g|=b.flags,b.return=r,b=b.sibling;return r.subtreeFlags|=g,r.childLanes=u,i}function Zx(r,i,u){var g=i.pendingProps;switch(Vc(i),i.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vr(i),null;case 1:return vr(i),null;case 3:return u=i.stateNode,g=null,r!==null&&(g=r.memoizedState.cache),i.memoizedState.cache!==g&&(i.flags|=2048),ps(Ba,i),K(i),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(r===null||r.child===null)&&($c(i)?(Yx(),To(i)):r===null||r.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Pv())),vr(i),null;case 26:return u=i.memoizedState,r===null?(To(i),u!==null?(vr(i),pb(i,u)):(vr(i),i.flags&=-16777217)):u?u!==r.memoizedState?(To(i),vr(i),pb(i,u)):(vr(i),i.flags&=-16777217):(r.memoizedProps!==g&&To(i),vr(i),i.flags&=-16777217),null;case 27:ye(i),u=Y(Vl.current);var b=i.type;if(r!==null&&i.stateNode!=null)r.memoizedProps!==g&&To(i);else{if(!g){if(i.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return vr(i),null}r=re(),$c(i)?Bv(i):(r=Ni(b,g,u,r,!0),i.stateNode=r,To(i))}return vr(i),null;case 5:if(ye(i),u=i.type,r!==null&&i.stateNode!=null)r.memoizedProps!==g&&To(i);else{if(!g){if(i.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return vr(i),null}if(b=re(),$c(i))Bv(i);else{switch(r=Y(Vl.current),Am(u,b.ancestorInfo),b=b.context,r=Bn(r),b){case zg:r=r.createElementNS($s,u);break;case gS:r=r.createElementNS(ag,u);break;default:switch(u){case"svg":r=r.createElementNS($s,u);break;case"math":r=r.createElementNS(ag,u);break;case"script":r=r.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof g.is=="string"?r.createElement("select",{is:g.is}):r.createElement("select"),g.multiple?r.multiple=!0:g.size&&(r.size=g.size);break;default:r=typeof g.is=="string"?r.createElement(u,{is:g.is}):r.createElement(u),u.indexOf("-")===-1&&(u!==u.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",u),Object.prototype.toString.call(r)!=="[object HTMLUnknownElement]"||Ul.call(YN,u)||(YN[u]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",u)))}}r[Ga]=i,r[Li]=g;e:for(b=i.child;b!==null;){if(b.tag===5||b.tag===6)r.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===i)break e;for(;b.sibling===null;){if(b.return===null||b.return===i)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}i.stateNode=r;e:switch(Ta(r,u,g),u){case"button":case"input":case"select":case"textarea":r=!!g.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&To(i)}}return vr(i),i.flags&=-16777217,null;case 6:if(r&&i.stateNode!=null)r.memoizedProps!==g&&To(i);else{if(typeof g!="string"&&i.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(r=Y(Vl.current),u=re(),$c(i)){r=i.stateNode,u=i.memoizedProps,b=!gf,g=null;var E=no;if(E!==null)switch(E.tag){case 3:b&&(b=Kb(r,u,g),b!==null&&(Uc(i,0).serverProps=b));break;case 27:case 5:g=E.memoizedProps,b&&(b=Kb(r,u,g),b!==null&&(Uc(i,0).serverProps=b))}r[Ga]=i,r=!!(r.nodeValue===u||g!==null&&g.suppressHydrationWarning===!0||of(r.nodeValue,u)),r||Eu(i)}else b=u.ancestorInfo.current,b!=null&&Zf(g,b.tag,u.ancestorInfo.implicitRootScope),r=Bn(r).createTextNode(g),r[Ga]=i,i.stateNode=r}return vr(i),null;case 13:if(g=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(b=$c(i),g!==null&&g.dehydrated!==null){if(r===null){if(!b)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(b=i.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");b[Ga]=i,vr(i),(i.mode&ai)!==Or&&g!==null&&(b=i.child,b!==null&&(i.treeBaseDuration-=b.treeBaseDuration))}else Yx(),rd(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4,vr(i),(i.mode&ai)!==Or&&g!==null&&(b=i.child,b!==null&&(i.treeBaseDuration-=b.treeBaseDuration));b=!1}else b=Pv(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=b),b=!0;if(!b)return i.flags&256?(Ai(i),i):(Ai(i),null)}return Ai(i),(i.flags&128)!==0?(i.lanes=u,(i.mode&ai)!==Or&&op(i),i):(u=g!==null,r=r!==null&&r.memoizedState!==null,u&&(g=i.child,b=null,g.alternate!==null&&g.alternate.memoizedState!==null&&g.alternate.memoizedState.cachePool!==null&&(b=g.alternate.memoizedState.cachePool.pool),E=null,g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(E=g.memoizedState.cachePool.pool),E!==b&&(g.flags|=2048)),u!==r&&u&&(i.child.flags|=8192),Kc(i,i.updateQueue),vr(i),(i.mode&ai)!==Or&&u&&(r=i.child,r!==null&&(i.treeBaseDuration-=r.treeBaseDuration)),null);case 4:return K(i),r===null&&Pp(i.stateNode.containerInfo),vr(i),null;case 10:return ps(i.type,i),vr(i),null;case 19:if(V(Va,i),b=i.memoizedState,b===null)return vr(i),null;if(g=(i.flags&128)!==0,E=b.rendering,E===null)if(g)ws(b,!1);else{if(oa!==xf||r!==null&&(r.flags&128)!==0)for(r=i.child;r!==null;){if(E=n1(r),E!==null){for(i.flags|=128,ws(b,!1),r=E.updateQueue,i.updateQueue=r,Kc(i,r),i.subtreeFlags=0,r=u,u=i.child;u!==null;)Nv(u,r),u=u.sibling;return ne(Va,Va.current&Tg|H4,i),i.child}r=r.sibling}b.tail!==null&&za()>aS&&(i.flags|=128,g=!0,ws(b,!1),i.lanes=4194304)}else{if(!g)if(r=n1(E),r!==null){if(i.flags|=128,g=!0,r=r.updateQueue,i.updateQueue=r,Kc(i,r),ws(b,!0),b.tail===null&&b.tailMode==="hidden"&&!E.alternate&&!Vn)return vr(i),null}else 2*za()-b.renderingStartTime>aS&&u!==536870912&&(i.flags|=128,g=!0,ws(b,!1),i.lanes=4194304);b.isBackwards?(E.sibling=i.child,i.child=E):(r=b.last,r!==null?r.sibling=E:i.child=E,b.last=E)}return b.tail!==null?(r=b.tail,b.rendering=r,b.tail=r.sibling,b.renderingStartTime=za(),r.sibling=null,u=Va.current,u=g?u&Tg|H4:u&Tg,ne(Va,u,i),r):(vr(i),null);case 22:case 23:return Ai(i),Fm(i),g=i.memoizedState!==null,r!==null?r.memoizedState!==null!==g&&(i.flags|=8192):g&&(i.flags|=8192),g?(u&536870912)!==0&&(i.flags&128)===0&&(vr(i),i.subtreeFlags&6&&(i.flags|=8192)):vr(i),u=i.updateQueue,u!==null&&Kc(i,u.retryQueue),u=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),g=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(g=i.memoizedState.cachePool.pool),g!==u&&(i.flags|=2048),r!==null&&V(dh,i),null;case 24:return u=null,r!==null&&(u=r.memoizedState.cache),i.memoizedState.cache!==u&&(i.flags|=2048),ps(Ba,i),vr(i),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+i.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Jx(r,i){switch(Vc(i),i.tag){case 1:return r=i.flags,r&65536?(i.flags=r&-65537|128,(i.mode&ai)!==Or&&op(i),i):null;case 3:return ps(Ba,i),K(i),r=i.flags,(r&65536)!==0&&(r&128)===0?(i.flags=r&-65537|128,i):null;case 26:case 27:case 5:return ye(i),null;case 13:if(Ai(i),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");rd()}return r=i.flags,r&65536?(i.flags=r&-65537|128,(i.mode&ai)!==Or&&op(i),i):null;case 19:return V(Va,i),null;case 4:return K(i),null;case 10:return ps(i.type,i),null;case 22:case 23:return Ai(i),Fm(i),r!==null&&V(dh,i),r=i.flags,r&65536?(i.flags=r&-65537|128,(i.mode&ai)!==Or&&op(i),i):null;case 24:return ps(Ba,i),null;case 25:return null;default:return null}}function hb(r,i){switch(Vc(i),i.tag){case 3:ps(Ba,i),K(i);break;case 26:case 27:case 5:ye(i);break;case 4:K(i);break;case 13:Ai(i);break;case 19:V(Va,i);break;case 10:ps(i.type,i);break;case 22:case 23:Ai(i),Fm(i),r!==null&&V(dh,i);break;case 24:ps(Ba,i)}}function Jo(r){return(r.mode&ai)!==Or}function mb(r,i){Jo(r)?(ja(),Ad(i,r),qo()):Ad(i,r)}function Mp(r,i,u){Jo(r)?(ja(),Zc(u,r,i),qo()):Zc(u,r,i)}function Ad(r,i){try{var u=i.updateQueue,g=u!==null?u.lastEffect:null;if(g!==null){var b=g.next;u=b;do{if((u.tag&r)===r&&((r&Pa)!==Kl?vt!==null&&typeof vt.markComponentPassiveEffectMountStarted=="function"&&vt.markComponentPassiveEffectMountStarted(i):(r&ii)!==Kl&&vt!==null&&typeof vt.markComponentLayoutEffectMountStarted=="function"&&vt.markComponentLayoutEffectMountStarted(i),g=void 0,(r&ro)!==Kl&&(_g=!0),g=Mt(i,ile,u),(r&ro)!==Kl&&(_g=!1),(r&Pa)!==Kl?vt!==null&&typeof vt.markComponentPassiveEffectMountStopped=="function"&&vt.markComponentPassiveEffectMountStopped():(r&ii)!==Kl&&vt!==null&&typeof vt.markComponentLayoutEffectMountStopped=="function"&&vt.markComponentLayoutEffectMountStopped(),g!==void 0&&typeof g!="function")){var E=void 0;E=(u.tag&ii)!==0?"useLayoutEffect":(u.tag&ro)!==0?"useInsertionEffect":"useEffect";var D=void 0;D=g===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof g.then=="function"?`
767
767
 
768
768
  It looks like you wrote `+E+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
769
769
 
@@ -776,7 +776,7 @@ It looks like you wrote `+E+`(async () => ...) or returned a Promise. Instead, w
776
776
  fetchData();
777
777
  }, [someId]); // Or [] if effect doesn't need props or state
778
778
 
779
- Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+g,Mt(i,function(U,te){console.error("%s must not return anything besides a function, which is used for clean-up.%s",U,te)},E,D)}u=u.next}while(u!==b)}}catch(U){nr(i,i.return,U)}}function Zc(r,i,u){try{var g=i.updateQueue,b=g!==null?g.lastEffect:null;if(b!==null){var E=b.next;g=E;do{if((g.tag&r)===r){var D=g.inst,U=D.destroy;U!==void 0&&(D.destroy=void 0,(r&Pa)!==Kl?vt!==null&&typeof vt.markComponentPassiveEffectUnmountStarted=="function"&&vt.markComponentPassiveEffectUnmountStarted(i):(r&ii)!==Kl&&vt!==null&&typeof vt.markComponentLayoutEffectUnmountStarted=="function"&&vt.markComponentLayoutEffectUnmountStarted(i),(r&ro)!==Kl&&(_g=!0),b=i,Mt(b,ole,b,u,U),(r&ro)!==Kl&&(_g=!1),(r&Pa)!==Kl?vt!==null&&typeof vt.markComponentPassiveEffectUnmountStopped=="function"&&vt.markComponentPassiveEffectUnmountStopped():(r&ii)!==Kl&&vt!==null&&typeof vt.markComponentLayoutEffectUnmountStopped=="function"&&vt.markComponentLayoutEffectUnmountStopped())}g=g.next}while(g!==E)}}catch(te){nr(i,i.return,te)}}function p1(r,i){Jo(r)?(ja(),Ad(i,r),qo()):Ad(i,r)}function h1(r,i,u){Jo(r)?(ja(),Zc(u,r,i),qo()):Zc(u,r,i)}function gb(r){var i=r.updateQueue;if(i!==null){var u=r.stateNode;r.type.defaultProps||"ref"in r.memoizedProps||Ag||(u.props!==r.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Z(r)||"instance"),u.state!==r.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Z(r)||"instance"));try{Mt(r,xi,i,u)}catch(g){nr(r,r.return,g)}}}function RT(r,i,u){return r.getSnapshotBeforeUpdate(i,u)}function yb(r,i){var u=i.memoizedProps,g=i.memoizedState;i=r.stateNode,r.type.defaultProps||"ref"in r.memoizedProps||Ag||(i.props!==r.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Z(r)||"instance"),i.state!==r.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Z(r)||"instance"));try{var b=Nu(r.type,u,r.elementType===r.type),E=Mt(r,RT,i,b,g);u=MN,E!==void 0||u.has(r.type)||(u.add(r.type),Mt(r,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Z(r))})),i.__reactInternalSnapshotBeforeUpdate=E}catch(D){nr(r,r.return,D)}}function vb(r,i,u){u.props=Nu(r.type,r.memoizedProps),u.state=r.memoizedState,Jo(r)?(ja(),Mt(r,nN,r,i,u),qo()):Mt(r,nN,r,i,u)}function e6(r){var i=r.ref;if(i!==null){switch(r.tag){case 26:case 27:case 5:var u=r.stateNode;break;case 30:u=r.stateNode;break;default:u=r.stateNode}if(typeof i=="function")if(Jo(r))try{ja(),r.refCleanup=i(u)}finally{qo()}else r.refCleanup=i(u);else typeof i=="string"?console.error("String refs are no longer supported."):i.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Z(r)),i.current=u}}function Jc(r,i){try{Mt(r,e6,r)}catch(u){nr(r,i,u)}}function el(r,i){var u=r.ref,g=r.refCleanup;if(u!==null)if(typeof g=="function")try{if(Jo(r))try{ja(),Mt(r,g)}finally{qo(r)}else Mt(r,g)}catch(b){nr(r,i,b)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof u=="function")try{if(Jo(r))try{ja(),Mt(r,u,null)}finally{qo(r)}else Mt(r,u,null)}catch(b){nr(r,i,b)}else u.current=null}function bb(r,i,u,g){var b=r.memoizedProps,E=b.id,D=b.onCommit;b=b.onRender,i=i===null?"mount":"update",F6&&(i="nested-update"),typeof b=="function"&&b(E,i,r.actualDuration,r.treeBaseDuration,r.actualStartTime,u),typeof D=="function"&&D(r.memoizedProps.id,i,g,u)}function MT(r,i,u,g){var b=r.memoizedProps;r=b.id,b=b.onPostCommit,i=i===null?"mount":"update",F6&&(i="nested-update"),typeof b=="function"&&b(r,i,g,u)}function t6(r){var i=r.type,u=r.memoizedProps,g=r.stateNode;try{Mt(r,Vr,g,i,u,r)}catch(b){nr(r,r.return,b)}}function m1(r,i,u){try{Mt(r,ju,r.stateNode,r.type,u,i,r)}catch(g){nr(r,r.return,g)}}function Cd(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&da(r.type)||r.tag===4}function kp(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Cd(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&da(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Od(r,i,u){var g=r.tag;if(g===5||g===6)r=r.stateNode,i?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(r,i):(i=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,i.appendChild(r),u=u._reactRootContainer,u!=null||i.onclick!==null||(i.onclick=Vu));else if(g!==4&&(g===27&&da(r.type)&&(u=r.stateNode,i=null),r=r.child,r!==null))for(Od(r,i,u),r=r.sibling;r!==null;)Od(r,i,u),r=r.sibling}function Dp(r,i,u){var g=r.tag;if(g===5||g===6)r=r.stateNode,i?u.insertBefore(r,i):u.appendChild(r);else if(g!==4&&(g===27&&da(r.type)&&(u=r.stateNode),r=r.child,r!==null))for(Dp(r,i,u),r=r.sibling;r!==null;)Dp(r,i,u),r=r.sibling}function n6(r){for(var i,u=r.return;u!==null;){if(Cd(u)){i=u;break}u=u.return}if(i==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(i.tag){case 27:i=i.stateNode,u=kp(r),Dp(r,u,i);break;case 5:u=i.stateNode,i.flags&32&&(Hu(u),i.flags&=-33),i=kp(r),Dp(r,i,u);break;case 3:case 4:i=i.stateNode.containerInfo,u=kp(r),Od(r,u,i);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function _p(r){var i=r.stateNode,u=r.memoizedProps;try{Mt(r,y6,r.type,u,i,r)}catch(g){nr(r,r.return,g)}}function r6(r,i){if(r=r.containerInfo,Dw=xS,r=qx(r),kv(r)){if("selectionStart"in r)var u={start:r.selectionStart,end:r.selectionEnd};else e:{u=(u=r.ownerDocument)&&u.defaultView||window;var g=u.getSelection&&u.getSelection();if(g&&g.rangeCount!==0){u=g.anchorNode;var b=g.anchorOffset,E=g.focusNode;g=g.focusOffset;try{u.nodeType,E.nodeType}catch{u=null;break e}var D=0,U=-1,te=-1,oe=0,Be=0,je=r,Le=null;t:for(;;){for(var qe;je!==u||b!==0&&je.nodeType!==3||(U=D+b),je!==E||g!==0&&je.nodeType!==3||(te=D+g),je.nodeType===3&&(D+=je.nodeValue.length),(qe=je.firstChild)!==null;)Le=je,je=qe;for(;;){if(je===r)break t;if(Le===u&&++oe===b&&(U=D),Le===E&&++Be===g&&(te=D),(qe=je.nextSibling)!==null)break;je=Le,Le=je.parentNode}je=qe}u=U===-1||te===-1?null:{start:U,end:te}}else u=null}u=u||{start:0,end:0}}else u=null;for(_w={focusedElem:r,selectionRange:u},xS=!1,Ya=i;Ya!==null;)if(i=Ya,r=i.child,(i.subtreeFlags&1024)!==0&&r!==null)r.return=i,Ya=r;else for(;Ya!==null;){switch(r=i=Ya,u=r.alternate,b=r.flags,r.tag){case 0:break;case 11:case 15:break;case 1:(b&1024)!==0&&u!==null&&yb(r,u);break;case 3:if((b&1024)!==0){if(r=r.stateNode.containerInfo,u=r.nodeType,u===9)Bl(r);else if(u===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":Bl(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((b&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(r=i.sibling,r!==null){r.return=i.return,Ya=r;break}Ya=i.return}}function xb(r,i,u){var g=u.flags;switch(u.tag){case 0:case 11:case 15:ra(r,u),g&4&&mb(u,ii|Zl);break;case 1:if(ra(r,u),g&4)if(r=u.stateNode,i===null)u.type.defaultProps||"ref"in u.memoizedProps||Ag||(r.props!==u.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Z(u)||"instance"),r.state!==u.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Z(u)||"instance")),Jo(u)?(ja(),Mt(u,iw,u,r),qo()):Mt(u,iw,u,r);else{var b=Nu(u.type,i.memoizedProps);i=i.memoizedState,u.type.defaultProps||"ref"in u.memoizedProps||Ag||(r.props!==u.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Z(u)||"instance"),r.state!==u.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Z(u)||"instance")),Jo(u)?(ja(),Mt(u,J_,u,r,b,i,r.__reactInternalSnapshotBeforeUpdate),qo()):Mt(u,J_,u,r,b,i,r.__reactInternalSnapshotBeforeUpdate)}g&64&&gb(u),g&512&&Jc(u,u.return);break;case 3:if(i=Gi(),ra(r,u),g&64&&(g=u.updateQueue,g!==null)){if(b=null,u.child!==null)switch(u.child.tag){case 27:case 5:b=u.child.stateNode;break;case 1:b=u.child.stateNode}try{Mt(u,xi,g,b)}catch(D){nr(u,u.return,D)}}r.effectDuration+=id(i);break;case 27:i===null&&g&4&&_p(u);case 26:case 5:ra(r,u),i===null&&g&4&&t6(u),g&512&&Jc(u,u.return);break;case 12:if(g&4){g=Gi(),ra(r,u),r=u.stateNode,r.effectDuration+=od(g);try{Mt(u,bb,u,i,G6,r.effectDuration)}catch(D){nr(u,u.return,D)}}else ra(r,u);break;case 13:ra(r,u),g&4&&Np(r,u),g&64&&(r=u.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(u=Bu.bind(null,u),Vd(r,u))));break;case 22:if(g=u.memoizedState!==null||bf,!g){i=i!==null&&i.memoizedState!==null||ha,b=bf;var E=ha;bf=g,(ha=i)&&!E?Ha(r,u,(u.subtreeFlags&8772)!==0):ra(r,u),bf=b,ha=E}break;case 30:break;default:ra(r,u)}}function a6(r){var i=r.alternate;i!==null&&(r.alternate=null,a6(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&en(i)),r.stateNode=null,r._debugOwner=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function Ci(r,i,u){for(u=u.child;u!==null;)Rd(r,i,u),u=u.sibling}function Rd(r,i,u){if(La&&typeof La.onCommitFiberUnmount=="function")try{La.onCommitFiberUnmount(ff,u)}catch(E){Xr||(Xr=!0,console.error("React instrumentation encountered an error: %s",E))}switch(u.tag){case 26:ha||el(u,i),Ci(r,i,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:ha||el(u,i);var g=Ra,b=ko;da(u.type)&&(Ra=u.stateNode,ko=!1),Ci(r,i,u),Mt(u,$d,u.stateNode),Ra=g,ko=b;break;case 5:ha||el(u,i);case 6:if(g=Ra,b=ko,Ra=null,Ci(r,i,u),Ra=g,ko=b,Ra!==null)if(ko)try{Mt(u,Up,Ra,u.stateNode)}catch(E){nr(u,i,E)}else try{Mt(u,Pd,Ra,u.stateNode)}catch(E){nr(u,i,E)}break;case 18:Ra!==null&&(ko?(r=Ra,ri(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,u.stateNode),Fd(r)):ri(Ra,u.stateNode));break;case 4:g=Ra,b=ko,Ra=u.stateNode.containerInfo,ko=!0,Ci(r,i,u),Ra=g,ko=b;break;case 0:case 11:case 14:case 15:ha||Zc(ro,u,i),ha||Mp(u,i,ii),Ci(r,i,u);break;case 1:ha||(el(u,i),g=u.stateNode,typeof g.componentWillUnmount=="function"&&vb(u,i,g)),Ci(r,i,u);break;case 21:Ci(r,i,u);break;case 22:ha=(g=ha)||u.memoizedState!==null,Ci(r,i,u),ha=g;break;default:Ci(r,i,u)}}function Np(r,i){if(i.memoizedState===null&&(r=i.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Mt(i,g6,r)}catch(u){nr(i,i.return,u)}}function zp(r){switch(r.tag){case 13:case 19:var i=r.stateNode;return i===null&&(i=r.stateNode=new kN),i;case 22:return r=r.stateNode,i=r._retryCache,i===null&&(i=r._retryCache=new kN),i;default:throw Error("Unexpected Suspense handler tag ("+r.tag+"). This is a bug in React.")}}function Md(r,i){var u=zp(r);i.forEach(function(g){var b=c6.bind(null,r,g);if(!u.has(g)){if(u.add(g),Ro)if(Cg!==null&&Og!==null)rf(Og,Cg);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");g.then(b,b)}})}function Oi(r,i){var u=i.deletions;if(u!==null)for(var g=0;g<u.length;g++){var b=r,E=i,D=u[g],U=E;e:for(;U!==null;){switch(U.tag){case 27:if(da(U.type)){Ra=U.stateNode,ko=!1;break e}break;case 5:Ra=U.stateNode,ko=!1;break e;case 3:case 4:Ra=U.stateNode.containerInfo,ko=!0;break e}U=U.return}if(Ra===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Rd(b,E,D),Ra=null,ko=!1,b=D,E=b.alternate,E!==null&&(E.return=null),b.return=null}if(i.subtreeFlags&13878)for(i=i.child;i!==null;)Sb(i,r),i=i.sibling}function Sb(r,i){var u=r.alternate,g=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:Oi(i,r),Sa(r),g&4&&(Zc(ro|Zl,r,r.return),Ad(ro|Zl,r),Mp(r,r.return,ii|Zl));break;case 1:Oi(i,r),Sa(r),g&512&&(ha||u===null||el(u,u.return)),g&64&&bf&&(r=r.updateQueue,r!==null&&(g=r.callbacks,g!==null&&(u=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=u===null?g:u.concat(g))));break;case 26:var b=Gs;if(Oi(i,r),Sa(r),g&512&&(ha||u===null||el(u,u.return)),g&4)if(i=u!==null?u.memoizedState:null,g=r.memoizedState,u===null)if(g===null)if(r.stateNode===null){e:{g=r.type,u=r.memoizedProps,i=b.ownerDocument||b;t:switch(g){case"title":b=i.getElementsByTagName("title")[0],(!b||b[Jp]||b[Ga]||b.namespaceURI===$s||b.hasAttribute("itemprop"))&&(b=i.createElement(g),i.head.insertBefore(b,i.querySelector("head > title"))),Ta(b,g,u),b[Ga]=r,we(b),g=b;break e;case"link":var E=e4("link","href",i).get(g+(u.href||""));if(E){for(var D=0;D<E.length;D++)if(b=E[D],b.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&b.getAttribute("rel")===(u.rel==null?null:u.rel)&&b.getAttribute("title")===(u.title==null?null:u.title)&&b.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){E.splice(D,1);break t}}b=i.createElement(g),Ta(b,g,u),i.head.appendChild(b);break;case"meta":if(E=e4("meta","content",i).get(g+(u.content||""))){for(D=0;D<E.length;D++)if(b=E[D],H(u.content,"content"),b.getAttribute("content")===(u.content==null?null:""+u.content)&&b.getAttribute("name")===(u.name==null?null:u.name)&&b.getAttribute("property")===(u.property==null?null:u.property)&&b.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&b.getAttribute("charset")===(u.charSet==null?null:u.charSet)){E.splice(D,1);break t}}b=i.createElement(g),Ta(b,g,u),i.head.appendChild(b);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+g+'". This is a bug in React.')}b[Ga]=r,we(b),g=b}r.stateNode=g}else sf(b,r.type,r.stateNode);else r.stateNode=b6(b,g,r.memoizedProps);else i!==g?(i===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):i.count--,g===null?sf(b,r.type,r.stateNode):b6(b,g,r.memoizedProps)):g===null&&r.stateNode!==null&&m1(r,r.memoizedProps,u.memoizedProps);break;case 27:Oi(i,r),Sa(r),g&512&&(ha||u===null||el(u,u.return)),u!==null&&g&4&&m1(r,r.memoizedProps,u.memoizedProps);break;case 5:if(Oi(i,r),Sa(r),g&512&&(ha||u===null||el(u,u.return)),r.flags&32){i=r.stateNode;try{Mt(r,Hu,i)}catch(Be){nr(r,r.return,Be)}}g&4&&r.stateNode!=null&&(i=r.memoizedProps,m1(r,i,u!==null?u.memoizedProps:i)),g&1024&&(dw=!0,r.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Oi(i,r),Sa(r),g&4){if(r.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");g=r.memoizedProps,u=u!==null?u.memoizedProps:g,i=r.stateNode;try{Mt(r,Xb,i,u,g)}catch(Be){nr(r,r.return,Be)}}break;case 3:if(b=Gi(),yS=null,E=Gs,Gs=_1(i.containerInfo),Oi(i,r),Gs=E,Sa(r),g&4&&u!==null&&u.memoizedState.isDehydrated)try{Mt(r,Zi,i.containerInfo)}catch(Be){nr(r,r.return,Be)}dw&&(dw=!1,Eb(r)),i.effectDuration+=id(b);break;case 4:g=Gs,Gs=_1(r.stateNode.containerInfo),Oi(i,r),Sa(r),Gs=g;break;case 12:g=Gi(),Oi(i,r),Sa(r),r.stateNode.effectDuration+=od(g);break;case 13:Oi(i,r),Sa(r),r.child.flags&8192&&r.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(vw=za()),g&4&&(g=r.updateQueue,g!==null&&(r.updateQueue=null,Md(r,g)));break;case 22:b=r.memoizedState!==null;var U=u!==null&&u.memoizedState!==null,te=bf,oe=ha;if(bf=te||b,ha=oe||U,Oi(i,r),ha=oe,bf=te,Sa(r),g&8192)e:for(i=r.stateNode,i._visibility=b?i._visibility&~$6:i._visibility|$6,b&&(u===null||U||bf||ha||Ri(r)),u=null,i=r;;){if(i.tag===5||i.tag===26){if(u===null){U=u=i;try{E=U.stateNode,b?Mt(U,Wb,E):Mt(U,R1,U.stateNode,U.memoizedProps)}catch(Be){nr(U,U.return,Be)}}}else if(i.tag===6){if(u===null){U=i;try{D=U.stateNode,b?Mt(U,Qb,D):Mt(U,M1,D,U.memoizedProps)}catch(Be){nr(U,U.return,Be)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===r)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break e;for(;i.sibling===null;){if(i.return===null||i.return===r)break e;u===i&&(u=null),i=i.return}u===i&&(u=null),i.sibling.return=i.return,i=i.sibling}g&4&&(g=r.updateQueue,g!==null&&(u=g.retryQueue,u!==null&&(g.retryQueue=null,Md(r,u))));break;case 19:Oi(i,r),Sa(r),g&4&&(g=r.updateQueue,g!==null&&(r.updateQueue=null,Md(r,g)));break;case 30:break;case 21:break;default:Oi(i,r),Sa(r)}}function Sa(r){var i=r.flags;if(i&2){try{Mt(r,n6,r)}catch(u){nr(r,r.return,u)}r.flags&=-3}i&4096&&(r.flags&=-4097)}function Eb(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var i=r;Eb(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),r=r.sibling}}function ra(r,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)xb(r,i.alternate,i),i=i.sibling}function tl(r){switch(r.tag){case 0:case 11:case 14:case 15:Mp(r,r.return,ii),Ri(r);break;case 1:el(r,r.return);var i=r.stateNode;typeof i.componentWillUnmount=="function"&&vb(r,r.return,i),Ri(r);break;case 27:Mt(r,$d,r.stateNode);case 26:case 5:el(r,r.return),Ri(r);break;case 22:r.memoizedState===null&&Ri(r);break;case 30:Ri(r);break;default:Ri(r)}}function Ri(r){for(r=r.child;r!==null;)tl(r),r=r.sibling}function Tb(r,i,u,g){var b=u.flags;switch(u.tag){case 0:case 11:case 15:Ha(r,u,g),mb(u,ii);break;case 1:if(Ha(r,u,g),i=u.stateNode,typeof i.componentDidMount=="function"&&Mt(u,iw,u,i),i=u.updateQueue,i!==null){r=u.stateNode;try{Mt(u,OT,i,r)}catch(E){nr(u,u.return,E)}}g&&b&64&&gb(u),Jc(u,u.return);break;case 27:_p(u);case 26:case 5:Ha(r,u,g),g&&i===null&&b&4&&t6(u),Jc(u,u.return);break;case 12:if(g&&b&4){b=Gi(),Ha(r,u,g),g=u.stateNode,g.effectDuration+=od(b);try{Mt(u,bb,u,i,G6,g.effectDuration)}catch(E){nr(u,u.return,E)}}else Ha(r,u,g);break;case 13:Ha(r,u,g),g&&b&4&&Np(r,u);break;case 22:u.memoizedState===null&&Ha(r,u,g),Jc(u,u.return);break;case 30:break;default:Ha(r,u,g)}}function Ha(r,i,u){for(u=u&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;)Tb(r,i.alternate,i,u),i=i.sibling}function nl(r,i){var u=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),r=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(r=i.memoizedState.cachePool.pool),r!==u&&(r!=null&&bo(r),u!=null&&jc(u))}function Yr(r,i){r=null,i.alternate!==null&&(r=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==r&&(bo(i),r!=null&&jc(r))}function Xi(r,i,u,g){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)g1(r,i,u,g),i=i.sibling}function g1(r,i,u,g){var b=i.flags;switch(i.tag){case 0:case 11:case 15:Xi(r,i,u,g),b&2048&&p1(i,Pa|Zl);break;case 1:Xi(r,i,u,g);break;case 3:var E=Gi();Xi(r,i,u,g),b&2048&&(u=null,i.alternate!==null&&(u=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==u&&(bo(i),u!=null&&jc(u))),r.passiveEffectDuration+=id(E);break;case 12:if(b&2048){b=Gi(),Xi(r,i,u,g),r=i.stateNode,r.passiveEffectDuration+=od(b);try{Mt(i,MT,i,i.alternate,G6,r.passiveEffectDuration)}catch(U){nr(i,i.return,U)}}else Xi(r,i,u,g);break;case 13:Xi(r,i,u,g);break;case 23:break;case 22:E=i.stateNode;var D=i.alternate;i.memoizedState!==null?E._visibility&pf?Xi(r,i,u,g):kd(r,i):E._visibility&pf?Xi(r,i,u,g):(E._visibility|=pf,Lu(r,i,u,g,(i.subtreeFlags&10256)!==0)),b&2048&&nl(D,i);break;case 24:Xi(r,i,u,g),b&2048&&Yr(i.alternate,i);break;default:Xi(r,i,u,g)}}function Lu(r,i,u,g,b){for(b=b&&(i.subtreeFlags&10256)!==0,i=i.child;i!==null;)wb(r,i,u,g,b),i=i.sibling}function wb(r,i,u,g,b){var E=i.flags;switch(i.tag){case 0:case 11:case 15:Lu(r,i,u,g,b),p1(i,Pa);break;case 23:break;case 22:var D=i.stateNode;i.memoizedState!==null?D._visibility&pf?Lu(r,i,u,g,b):kd(r,i):(D._visibility|=pf,Lu(r,i,u,g,b)),b&&E&2048&&nl(i.alternate,i);break;case 24:Lu(r,i,u,g,b),b&&E&2048&&Yr(i.alternate,i);break;default:Lu(r,i,u,g,b)}}function kd(r,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var u=r,g=i,b=g.flags;switch(g.tag){case 22:kd(u,g),b&2048&&nl(g.alternate,g);break;case 24:kd(u,g),b&2048&&Yr(g.alternate,g);break;default:kd(u,g)}i=i.sibling}}function wo(r){if(r.subtreeFlags&q4)for(r=r.child;r!==null;)Lp(r),r=r.sibling}function Lp(r){switch(r.tag){case 26:wo(r),r.flags&q4&&r.memoizedState!==null&&S6(Gs,r.memoizedState,r.memoizedProps);break;case 5:wo(r);break;case 3:case 4:var i=Gs;Gs=_1(r.stateNode.containerInfo),wo(r),Gs=i;break;case 22:r.memoizedState===null&&(i=r.alternate,i!==null&&i.memoizedState!==null?(i=q4,q4=16777216,wo(r),q4=i):wo(r));break;default:wo(r)}}function Ab(r){var i=r.alternate;if(i!==null&&(r=i.child,r!==null)){i.child=null;do i=r.sibling,r.sibling=null,r=i;while(r!==null)}}function Dd(r){var i=r.deletions;if((r.flags&16)!==0){if(i!==null)for(var u=0;u<i.length;u++){var g=i[u];Ya=g,y1(g,r)}Ab(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Cb(r),r=r.sibling}function Cb(r){switch(r.tag){case 0:case 11:case 15:Dd(r),r.flags&2048&&h1(r,r.return,Pa|Zl);break;case 3:var i=Gi();Dd(r),r.stateNode.passiveEffectDuration+=id(i);break;case 12:i=Gi(),Dd(r),r.stateNode.passiveEffectDuration+=od(i);break;case 22:i=r.stateNode,r.memoizedState!==null&&i._visibility&pf&&(r.return===null||r.return.tag!==13)?(i._visibility&=~pf,ef(r)):Dd(r);break;default:Dd(r)}}function ef(r){var i=r.deletions;if((r.flags&16)!==0){if(i!==null)for(var u=0;u<i.length;u++){var g=i[u];Ya=g,y1(g,r)}Ab(r)}for(r=r.child;r!==null;)Ob(r),r=r.sibling}function Ob(r){switch(r.tag){case 0:case 11:case 15:h1(r,r.return,Pa),ef(r);break;case 22:var i=r.stateNode;i._visibility&pf&&(i._visibility&=~pf,ef(r));break;default:ef(r)}}function y1(r,i){for(;Ya!==null;){var u=Ya,g=u;switch(g.tag){case 0:case 11:case 15:h1(g,i,Pa);break;case 23:case 22:g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(g=g.memoizedState.cachePool.pool,g!=null&&bo(g));break;case 24:jc(g.memoizedState.cache)}if(g=u.child,g!==null)g.return=u,Ya=g;else e:for(u=r;Ya!==null;){g=Ya;var b=g.sibling,E=g.return;if(a6(g),g===u){Ya=null;break e}if(b!==null){b.return=E,Ya=b;break e}Ya=E}}}function i6(){sle.forEach(function(r){return r()})}function Rb(){var r=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return r||Ie.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),r}function Wi(r){if((Wn&ao)!==dl&&kn!==0)return kn&-kn;var i=Ie.T;return i!==null?(i._updatedFibers||(i._updatedFibers=new Set),i._updatedFibers.add(r),r=fh,r!==0?r:C1()):sn()}function Mb(){hl===0&&(hl=(kn&536870912)===0||Vn?yt():536870912);var r=es.current;return r!==null&&(r.flags|=32),hl}function wn(r,i,u){if(_g&&console.error("useInsertionEffect must not schedule updates."),Tw&&(iS=!0),(r===Sr&&(or===gh||or===yh)||r.cancelPendingCommit!==null)&&(Cs(r,0),As(r,kn,hl,!1)),En(r,u),(Wn&ao)!==0&&r===Sr){if(jl)switch(i.tag){case 0:case 11:case 15:r=Rn&&Z(Rn)||"Unknown",UN.has(r)||(UN.add(r),i=Z(i)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",i,r,r));break;case 1:VN||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),VN=!0)}}else Ro&&lt(r,i,u),Ub(i),r===Sr&&((Wn&ao)===dl&&(l0|=u),oa===mh&&As(r,kn,hl,!1)),Ao(r)}function Ea(r,i,u){if((Wn&(ao|Fs))!==dl)throw Error("Should not already be working.");var g=!u&&(i&124)===0&&(i&r.expiredLanes)===0||ln(r,i),b=g?Nb(r,i):Ip(r,i,!0),E=g;do{if(b===xf){kg&&!g&&As(r,i,0,!1);break}else{if(u=r.current.alternate,E&&!o6(u)){b=Ip(r,i,!1),E=!1;continue}if(b===Rg){if(E=i,r.errorRecoveryDisabledLanes&E)var D=0;else D=r.pendingLanes&-536870913,D=D!==0?D:D&536870912?536870912:0;if(D!==0){i=D;e:{b=r;var U=D;D=Q4;var te=b.current.memoizedState.isDehydrated;if(te&&(Cs(b,U).flags|=256),U=Ip(b,U,!1),U!==Rg){if(gw&&!te){b.errorRecoveryDisabledLanes|=E,l0|=E,b=mh;break e}b=io,io=D,b!==null&&(io===null?io=b:io.push.apply(io,b))}b=U}if(E=!1,b!==Rg)continue}}if(b===F4){Cs(r,0),As(r,i,0,!0);break}e:{switch(g=r,b){case xf:case F4:throw Error("Root did not complete. This is a bug in React.");case mh:if((i&4194048)!==i)break;case nS:As(g,i,hl,!i0);break e;case Rg:io=null;break;case pw:case DN:break;default:throw Error("Unknown root exit status.")}if(Ie.actQueue!==null)rl(g,u,i,io,K4,rS,hl,l0,vh);else{if((i&62914560)===i&&(E=vw+NN-za(),10<E)){if(As(g,i,hl,!i0),qt(g,0,!0)!==0)break e;g.timeoutHandle=XN(kb.bind(null,g,u,io,K4,rS,i,hl,l0,vh,i0,b,dle,L_,0),E);break e}kb(g,u,io,K4,rS,i,hl,l0,vh,i0,b,cle,L_,0)}}}break}while(!0);Ao(r)}function kb(r,i,u,g,b,E,D,U,te,oe,Be,je,Le,qe){if(r.timeoutHandle=Th,je=i.subtreeFlags,(je&8192||(je&16785408)===16785408)&&(r5={stylesheets:null,count:0,unsuspend:x6},Lp(i),je=E6(),je!==null)){r.cancelPendingCommit=je(rl.bind(null,r,i,E,u,g,b,D,U,te,Be,fle,Le,qe)),As(r,E,D,!oe);return}rl(r,i,E,u,g,b,D,U,te)}function o6(r){for(var i=r;;){var u=i.tag;if((u===0||u===11||u===15)&&i.flags&16384&&(u=i.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var g=0;g<u.length;g++){var b=u[g],E=b.getSnapshot;b=b.value;try{if(!to(E(),b))return!1}catch{return!1}}if(u=i.child,i.subtreeFlags&16384&&u!==null)u.return=i,i=u;else{if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function As(r,i,u,g){i&=~yw,i&=~l0,r.suspendedLanes|=i,r.pingedLanes&=~i,g&&(r.warmLanes|=i),g=r.expirationTimes;for(var b=i;0<b;){var E=31-wa(b),D=1<<E;g[E]=-1,b&=~D}u!==0&&ve(r,u,i)}function tf(){return(Wn&(ao|Fs))===dl?(Pu(0),!1):!0}function v1(){if(Rn!==null){if(or===Do)var r=Rn.return;else r=Rn,Um(),Wo(r),Sg=null,j4=0,r=Rn;for(;r!==null;)hb(r.alternate,r),r=r.return;Rn=null}}function Cs(r,i){var u=r.timeoutHandle;u!==Th&&(r.timeoutHandle=Th,Ale(u)),u=r.cancelPendingCommit,u!==null&&(r.cancelPendingCommit=null,u()),v1(),Sr=r,Rn=u=Dl(r.current,null),kn=i,or=Do,pl=null,i0=!1,kg=ln(r,i),gw=!1,oa=xf,vh=hl=yw=l0=o0=0,io=Q4=null,rS=!1,(i&8)!==0&&(i|=i&32);var g=r.entangledLanes;if(g!==0)for(r=r.entanglements,g&=i;0<g;){var b=31-wa(g),E=1<<b;i|=r[b],g&=~E}return ac=i,_m(),i=N_(),1e3<i-__&&(Ie.recentlyCreatedOwnerStacks=0,__=i),Hs.discardPendingWarnings(),u}function b1(r,i){nn=null,Ie.H=eS,Ie.getCurrentStack=null,jl=!1,Ia=null,i===P4||i===W6?(i=Fi(),or=X4):i===P_?(i=Fi(),or=_N):or=i===EN?mw:i!==null&&typeof i=="object"&&typeof i.then=="function"?Mg:Y4,pl=i;var u=Rn;if(u===null)oa=F4,wd(r,yi(i,r.current));else switch(u.mode&ai&&Au(u),Je(),or){case Y4:vt!==null&&typeof vt.markComponentErrored=="function"&&vt.markComponentErrored(u,i,kn);break;case gh:case yh:case X4:case Mg:case W4:vt!==null&&typeof vt.markComponentSuspended=="function"&&vt.markComponentSuspended(u,i,kn)}}function Db(){var r=Ie.H;return Ie.H=eS,r===null?eS:r}function _b(){var r=Ie.A;return Ie.A=lle,r}function x1(){oa=mh,i0||(kn&4194048)!==kn&&es.current!==null||(kg=!0),(o0&134217727)===0&&(l0&134217727)===0||Sr===null||As(Sr,kn,hl,!1)}function Ip(r,i,u){var g=Wn;Wn|=ao;var b=Db(),E=_b();if(Sr!==r||kn!==i){if(Ro){var D=r.memoizedUpdaters;0<D.size&&(rf(r,kn),D.clear()),ct(r,i)}K4=null,Cs(r,i)}dt(i),i=!1,D=oa;e:do try{if(or!==Do&&Rn!==null){var U=Rn,te=pl;switch(or){case mw:v1(),D=nS;break e;case X4:case gh:case yh:case Mg:es.current===null&&(i=!0);var oe=or;if(or=Do,pl=null,nf(r,U,te,oe),u&&kg){D=xf;break e}break;default:oe=or,or=Do,pl=null,nf(r,U,te,oe)}}S1(),D=oa;break}catch(Be){b1(r,Be)}while(!0);return i&&r.shellSuspendCounter++,Um(),Wn=g,Ie.H=b,Ie.A=E,Ae(),Rn===null&&(Sr=null,kn=0,_m()),D}function S1(){for(;Rn!==null;)E1(Rn)}function Nb(r,i){var u=Wn;Wn|=ao;var g=Db(),b=_b();if(Sr!==r||kn!==i){if(Ro){var E=r.memoizedUpdaters;0<E.size&&(rf(r,kn),E.clear()),ct(r,i)}K4=null,aS=za()+zN,Cs(r,i)}else kg=ln(r,i);dt(i);e:do try{if(or!==Do&&Rn!==null)t:switch(i=Rn,E=pl,or){case Y4:or=Do,pl=null,nf(r,i,E,Y4);break;case gh:case yh:if(qm(E)){or=Do,pl=null,Bp(i);break}i=function(){or!==gh&&or!==yh||Sr!==r||(or=W4),Ao(r)},E.then(i,i);break e;case X4:or=W4;break e;case _N:or=hw;break e;case W4:qm(E)?(or=Do,pl=null,Bp(i)):(or=Do,pl=null,nf(r,i,E,W4));break;case hw:var D=null;switch(Rn.tag){case 26:D=Rn.memoizedState;case 5:case 27:var U=Rn;if(!D||t4(D)){or=Do,pl=null;var te=U.sibling;if(te!==null)Rn=te;else{var oe=U.return;oe!==null?(Rn=oe,_d(oe)):Rn=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}or=Do,pl=null,nf(r,i,E,hw);break;case Mg:or=Do,pl=null,nf(r,i,E,Mg);break;case mw:v1(),oa=nS;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Ie.actQueue!==null?S1():l6();break}catch(Be){b1(r,Be)}while(!0);return Um(),Ie.H=g,Ie.A=b,Wn=u,Rn!==null?(vt!==null&&typeof vt.markRenderYielded=="function"&&vt.markRenderYielded(),xf):(Ae(),Sr=null,kn=0,_m(),oa)}function l6(){for(;Rn!==null&&!LT();)E1(Rn)}function E1(r){var i=r.alternate;(r.mode&ai)!==Cr?(ms(r),i=Mt(r,zu,i,r,ac),Au(r)):i=Mt(r,zu,i,r,ac),r.memoizedProps=r.pendingProps,i===null?_d(r):Rn=i}function Bp(r){var i=Mt(r,zb,r);r.memoizedProps=r.pendingProps,i===null?_d(r):Rn=i}function zb(r){var i=r.alternate,u=(r.mode&ai)!==Cr;switch(u&&ms(r),r.tag){case 15:case 0:i=ab(i,r,r.pendingProps,r.type,void 0,kn);break;case 11:i=ab(i,r,r.pendingProps,r.type.render,r.ref,kn);break;case 5:Wo(r);default:hb(i,r),r=Rn=Nv(r,ac),i=zu(i,r,ac)}return u&&Au(r),i}function nf(r,i,u,g){Um(),Wo(i),Sg=null,j4=0;var b=i.return;try{if(o1(r,b,i,u,kn)){oa=F4,wd(r,yi(u,r.current)),Rn=null;return}}catch(E){if(b!==null)throw Rn=b,E;oa=F4,wd(r,yi(u,r.current)),Rn=null;return}i.flags&32768?(Vn||g===Y4?r=!0:kg||(kn&536870912)!==0?r=!1:(i0=r=!0,(g===gh||g===yh||g===X4||g===Mg)&&(g=es.current,g!==null&&g.tag===13&&(g.flags|=16384))),Lb(i,r)):_d(i)}function _d(r){var i=r;do{if((i.flags&32768)!==0){Lb(i,i0);return}var u=i.alternate;if(r=i.return,ms(i),u=Mt(i,Zx,u,i,ac),(i.mode&ai)!==Cr&&jm(i),u!==null){Rn=u;return}if(i=i.sibling,i!==null){Rn=i;return}Rn=i=r}while(i!==null);oa===xf&&(oa=DN)}function Lb(r,i){do{var u=Jx(r.alternate,r);if(u!==null){u.flags&=32767,Rn=u;return}if((r.mode&ai)!==Cr){jm(r),u=r.actualDuration;for(var g=r.child;g!==null;)u+=g.actualDuration,g=g.sibling;r.actualDuration=u}if(u=r.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!i&&(r=r.sibling,r!==null)){Rn=r;return}Rn=r=u}while(r!==null);oa=nS,Rn=null}function rl(r,i,u,g,b,E,D,U,te){r.cancelPendingCommit=null;do Iu();while(oi!==bh);if(Hs.flushLegacyContextWarning(),Hs.flushPendingUnsafeLifecycleWarnings(),(Wn&(ao|Fs))!==dl)throw Error("Should not already be working.");if(vt!==null&&typeof vt.markCommitStarted=="function"&&vt.markCommitStarted(u),i===null)Qe();else{if(u===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),i===r.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(E=i.lanes|i.childLanes,E|=FT,et(r,u,E,D,U,te),r===Sr&&(Rn=Sr=null,kn=0),Dg=i,u0=r,c0=u,xw=E,Sw=b,PN=g,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,f6(Xd,function(){return Nd(),null})):(r.callbackNode=null,r.callbackPriority=0),G6=gg(),g=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||g){g=Ie.T,Ie.T=null,b=Hn.p,Hn.p=eo,D=Wn,Wn|=Fs;try{r6(r,i,u)}finally{Wn=D,Hn.p=b,Ie.T=g}}oi=LN,T1(),s6(),Ib()}}function T1(){if(oi===LN){oi=bh;var r=u0,i=Dg,u=c0,g=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||g){g=Ie.T,Ie.T=null;var b=Hn.p;Hn.p=eo;var E=Wn;Wn|=Fs;try{Cg=u,Og=r,Sb(i,r),Og=Cg=null,u=_w;var D=qx(r.containerInfo),U=u.focusedElem,te=u.selectionRange;if(D!==U&&U&&U.ownerDocument&&Hx(U.ownerDocument.documentElement,U)){if(te!==null&&kv(U)){var oe=te.start,Be=te.end;if(Be===void 0&&(Be=oe),"selectionStart"in U)U.selectionStart=oe,U.selectionEnd=Math.min(Be,U.value.length);else{var je=U.ownerDocument||document,Le=je&&je.defaultView||window;if(Le.getSelection){var qe=Le.getSelection(),Ct=U.textContent.length,Xt=Math.min(te.start,Ct),Er=te.end===void 0?Xt:Math.min(te.end,Ct);!qe.extend&&Xt>Er&&(D=Er,Er=Xt,Xt=D);var Nn=jx(U,Xt),pe=jx(U,Er);if(Nn&&pe&&(qe.rangeCount!==1||qe.anchorNode!==Nn.node||qe.anchorOffset!==Nn.offset||qe.focusNode!==pe.node||qe.focusOffset!==pe.offset)){var me=je.createRange();me.setStart(Nn.node,Nn.offset),qe.removeAllRanges(),Xt>Er?(qe.addRange(me),qe.extend(pe.node,pe.offset)):(me.setEnd(pe.node,pe.offset),qe.addRange(me))}}}}for(je=[],qe=U;qe=qe.parentNode;)qe.nodeType===1&&je.push({element:qe,left:qe.scrollLeft,top:qe.scrollTop});for(typeof U.focus=="function"&&U.focus(),U=0;U<je.length;U++){var be=je[U];be.element.scrollLeft=be.left,be.element.scrollTop=be.top}}xS=!!Dw,_w=Dw=null}finally{Wn=E,Hn.p=b,Ie.T=g}}r.current=i,oi=IN}}function s6(){if(oi===IN){oi=bh;var r=u0,i=Dg,u=c0,g=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||g){g=Ie.T,Ie.T=null;var b=Hn.p;Hn.p=eo;var E=Wn;Wn|=Fs;try{vt!==null&&typeof vt.markLayoutEffectsStarted=="function"&&vt.markLayoutEffectsStarted(u),Cg=u,Og=r,xb(r,i.alternate,i),Og=Cg=null,vt!==null&&typeof vt.markLayoutEffectsStopped=="function"&&vt.markLayoutEffectsStopped()}finally{Wn=E,Hn.p=b,Ie.T=g}}oi=BN}}function Ib(){if(oi===ple||oi===BN){oi=bh,IT();var r=u0,i=Dg,u=c0,g=PN,b=(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0;b?oi=bw:(oi=bh,Dg=u0=null,Bb(r,r.pendingLanes),xh=0,J4=null);var E=r.pendingLanes;if(E===0&&(s0=null),b||al(r),b=mt(u),i=i.stateNode,La&&typeof La.onCommitFiberRoot=="function")try{var D=(i.current.flags&128)===128;switch(b){case eo:var U=Kp;break;case $l:U=s4;break;case Vs:U=Xd;break;case Q1:U=c4;break;default:U=Xd}La.onCommitFiberRoot(ff,i,U,D)}catch(je){Xr||(Xr=!0,console.error("React instrumentation encountered an error: %s",je))}if(Ro&&r.memoizedUpdaters.clear(),i6(),g!==null){D=Ie.T,U=Hn.p,Hn.p=eo,Ie.T=null;try{var te=r.onRecoverableError;for(i=0;i<g.length;i++){var oe=g[i],Be=Os(oe.stack);Mt(oe.source,te,oe.value,Be)}}finally{Ie.T=D,Hn.p=U}}(c0&3)!==0&&Iu(),Ao(r),E=r.pendingLanes,(u&4194090)!==0&&(E&42)!==0?(Y6=!0,r===Ew?Z4++:(Z4=0,Ew=r)):Z4=0,Pu(0),Qe()}}function Os(r){return r={componentStack:r},Object.defineProperty(r,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),r}function Bb(r,i){(r.pooledCacheLanes&=i)===0&&(i=r.pooledCache,i!=null&&(r.pooledCache=null,jc(i)))}function Iu(r){return T1(),s6(),Ib(),Nd()}function Nd(){if(oi!==bw)return!1;var r=u0,i=xw;xw=0;var u=mt(c0),g=Vs>u?Vs:u;u=Ie.T;var b=Hn.p;try{Hn.p=g,Ie.T=null,g=Sw,Sw=null;var E=u0,D=c0;if(oi=bh,Dg=u0=null,c0=0,(Wn&(ao|Fs))!==dl)throw Error("Cannot flush passive effects while already rendering.");Tw=!0,iS=!1,vt!==null&&typeof vt.markPassiveEffectsStarted=="function"&&vt.markPassiveEffectsStarted(D);var U=Wn;if(Wn|=Fs,Cb(E.current),g1(E,E.current,D,g),vt!==null&&typeof vt.markPassiveEffectsStopped=="function"&&vt.markPassiveEffectsStopped(),al(E),Wn=U,Pu(0,!1),iS?E===J4?xh++:(xh=0,J4=E):xh=0,iS=Tw=!1,La&&typeof La.onPostCommitFiberRoot=="function")try{La.onPostCommitFiberRoot(ff,E)}catch(oe){Xr||(Xr=!0,console.error("React instrumentation encountered an error: %s",oe))}var te=E.current.stateNode;return te.effectDuration=0,te.passiveEffectDuration=0,!0}finally{Hn.p=b,Ie.T=u,Bb(r,i)}}function Ar(r,i,u){i=yi(u,i),i=Br(r.stateNode,i,2),r=Fo(r,i,2),r!==null&&(En(r,2),Ao(r))}function nr(r,i,u){if(_g=!1,r.tag===3)Ar(r,r,u);else{for(;i!==null;){if(i.tag===3){Ar(i,r,u);return}if(i.tag===1){var g=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(s0===null||!s0.has(g))){r=yi(u,r),u=Tp(2),g=Fo(i,u,2),g!==null&&(Qc(u,g,i,r),En(g,2),Ao(g));return}}i=i.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
779
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+g,Mt(i,function(U,te){console.error("%s must not return anything besides a function, which is used for clean-up.%s",U,te)},E,D)}u=u.next}while(u!==b)}}catch(U){nr(i,i.return,U)}}function Zc(r,i,u){try{var g=i.updateQueue,b=g!==null?g.lastEffect:null;if(b!==null){var E=b.next;g=E;do{if((g.tag&r)===r){var D=g.inst,U=D.destroy;U!==void 0&&(D.destroy=void 0,(r&Pa)!==Kl?vt!==null&&typeof vt.markComponentPassiveEffectUnmountStarted=="function"&&vt.markComponentPassiveEffectUnmountStarted(i):(r&ii)!==Kl&&vt!==null&&typeof vt.markComponentLayoutEffectUnmountStarted=="function"&&vt.markComponentLayoutEffectUnmountStarted(i),(r&ro)!==Kl&&(_g=!0),b=i,Mt(b,ole,b,u,U),(r&ro)!==Kl&&(_g=!1),(r&Pa)!==Kl?vt!==null&&typeof vt.markComponentPassiveEffectUnmountStopped=="function"&&vt.markComponentPassiveEffectUnmountStopped():(r&ii)!==Kl&&vt!==null&&typeof vt.markComponentLayoutEffectUnmountStopped=="function"&&vt.markComponentLayoutEffectUnmountStopped())}g=g.next}while(g!==E)}}catch(te){nr(i,i.return,te)}}function p1(r,i){Jo(r)?(ja(),Ad(i,r),qo()):Ad(i,r)}function h1(r,i,u){Jo(r)?(ja(),Zc(u,r,i),qo()):Zc(u,r,i)}function gb(r){var i=r.updateQueue;if(i!==null){var u=r.stateNode;r.type.defaultProps||"ref"in r.memoizedProps||Ag||(u.props!==r.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Z(r)||"instance"),u.state!==r.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Z(r)||"instance"));try{Mt(r,xi,i,u)}catch(g){nr(r,r.return,g)}}}function RT(r,i,u){return r.getSnapshotBeforeUpdate(i,u)}function yb(r,i){var u=i.memoizedProps,g=i.memoizedState;i=r.stateNode,r.type.defaultProps||"ref"in r.memoizedProps||Ag||(i.props!==r.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Z(r)||"instance"),i.state!==r.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Z(r)||"instance"));try{var b=Nu(r.type,u,r.elementType===r.type),E=Mt(r,RT,i,b,g);u=MN,E!==void 0||u.has(r.type)||(u.add(r.type),Mt(r,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Z(r))})),i.__reactInternalSnapshotBeforeUpdate=E}catch(D){nr(r,r.return,D)}}function vb(r,i,u){u.props=Nu(r.type,r.memoizedProps),u.state=r.memoizedState,Jo(r)?(ja(),Mt(r,nN,r,i,u),qo()):Mt(r,nN,r,i,u)}function e6(r){var i=r.ref;if(i!==null){switch(r.tag){case 26:case 27:case 5:var u=r.stateNode;break;case 30:u=r.stateNode;break;default:u=r.stateNode}if(typeof i=="function")if(Jo(r))try{ja(),r.refCleanup=i(u)}finally{qo()}else r.refCleanup=i(u);else typeof i=="string"?console.error("String refs are no longer supported."):i.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Z(r)),i.current=u}}function Jc(r,i){try{Mt(r,e6,r)}catch(u){nr(r,i,u)}}function el(r,i){var u=r.ref,g=r.refCleanup;if(u!==null)if(typeof g=="function")try{if(Jo(r))try{ja(),Mt(r,g)}finally{qo(r)}else Mt(r,g)}catch(b){nr(r,i,b)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof u=="function")try{if(Jo(r))try{ja(),Mt(r,u,null)}finally{qo(r)}else Mt(r,u,null)}catch(b){nr(r,i,b)}else u.current=null}function bb(r,i,u,g){var b=r.memoizedProps,E=b.id,D=b.onCommit;b=b.onRender,i=i===null?"mount":"update",F6&&(i="nested-update"),typeof b=="function"&&b(E,i,r.actualDuration,r.treeBaseDuration,r.actualStartTime,u),typeof D=="function"&&D(r.memoizedProps.id,i,g,u)}function MT(r,i,u,g){var b=r.memoizedProps;r=b.id,b=b.onPostCommit,i=i===null?"mount":"update",F6&&(i="nested-update"),typeof b=="function"&&b(r,i,g,u)}function t6(r){var i=r.type,u=r.memoizedProps,g=r.stateNode;try{Mt(r,Vr,g,i,u,r)}catch(b){nr(r,r.return,b)}}function m1(r,i,u){try{Mt(r,ju,r.stateNode,r.type,u,i,r)}catch(g){nr(r,r.return,g)}}function Cd(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&da(r.type)||r.tag===4}function kp(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Cd(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&da(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Od(r,i,u){var g=r.tag;if(g===5||g===6)r=r.stateNode,i?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(r,i):(i=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,i.appendChild(r),u=u._reactRootContainer,u!=null||i.onclick!==null||(i.onclick=Vu));else if(g!==4&&(g===27&&da(r.type)&&(u=r.stateNode,i=null),r=r.child,r!==null))for(Od(r,i,u),r=r.sibling;r!==null;)Od(r,i,u),r=r.sibling}function Dp(r,i,u){var g=r.tag;if(g===5||g===6)r=r.stateNode,i?u.insertBefore(r,i):u.appendChild(r);else if(g!==4&&(g===27&&da(r.type)&&(u=r.stateNode),r=r.child,r!==null))for(Dp(r,i,u),r=r.sibling;r!==null;)Dp(r,i,u),r=r.sibling}function n6(r){for(var i,u=r.return;u!==null;){if(Cd(u)){i=u;break}u=u.return}if(i==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(i.tag){case 27:i=i.stateNode,u=kp(r),Dp(r,u,i);break;case 5:u=i.stateNode,i.flags&32&&(Hu(u),i.flags&=-33),i=kp(r),Dp(r,i,u);break;case 3:case 4:i=i.stateNode.containerInfo,u=kp(r),Od(r,u,i);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function _p(r){var i=r.stateNode,u=r.memoizedProps;try{Mt(r,y6,r.type,u,i,r)}catch(g){nr(r,r.return,g)}}function r6(r,i){if(r=r.containerInfo,Dw=xS,r=qx(r),kv(r)){if("selectionStart"in r)var u={start:r.selectionStart,end:r.selectionEnd};else e:{u=(u=r.ownerDocument)&&u.defaultView||window;var g=u.getSelection&&u.getSelection();if(g&&g.rangeCount!==0){u=g.anchorNode;var b=g.anchorOffset,E=g.focusNode;g=g.focusOffset;try{u.nodeType,E.nodeType}catch{u=null;break e}var D=0,U=-1,te=-1,oe=0,Be=0,je=r,Le=null;t:for(;;){for(var qe;je!==u||b!==0&&je.nodeType!==3||(U=D+b),je!==E||g!==0&&je.nodeType!==3||(te=D+g),je.nodeType===3&&(D+=je.nodeValue.length),(qe=je.firstChild)!==null;)Le=je,je=qe;for(;;){if(je===r)break t;if(Le===u&&++oe===b&&(U=D),Le===E&&++Be===g&&(te=D),(qe=je.nextSibling)!==null)break;je=Le,Le=je.parentNode}je=qe}u=U===-1||te===-1?null:{start:U,end:te}}else u=null}u=u||{start:0,end:0}}else u=null;for(_w={focusedElem:r,selectionRange:u},xS=!1,Ya=i;Ya!==null;)if(i=Ya,r=i.child,(i.subtreeFlags&1024)!==0&&r!==null)r.return=i,Ya=r;else for(;Ya!==null;){switch(r=i=Ya,u=r.alternate,b=r.flags,r.tag){case 0:break;case 11:case 15:break;case 1:(b&1024)!==0&&u!==null&&yb(r,u);break;case 3:if((b&1024)!==0){if(r=r.stateNode.containerInfo,u=r.nodeType,u===9)Bl(r);else if(u===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":Bl(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((b&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(r=i.sibling,r!==null){r.return=i.return,Ya=r;break}Ya=i.return}}function xb(r,i,u){var g=u.flags;switch(u.tag){case 0:case 11:case 15:ra(r,u),g&4&&mb(u,ii|Zl);break;case 1:if(ra(r,u),g&4)if(r=u.stateNode,i===null)u.type.defaultProps||"ref"in u.memoizedProps||Ag||(r.props!==u.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Z(u)||"instance"),r.state!==u.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Z(u)||"instance")),Jo(u)?(ja(),Mt(u,iw,u,r),qo()):Mt(u,iw,u,r);else{var b=Nu(u.type,i.memoizedProps);i=i.memoizedState,u.type.defaultProps||"ref"in u.memoizedProps||Ag||(r.props!==u.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Z(u)||"instance"),r.state!==u.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Z(u)||"instance")),Jo(u)?(ja(),Mt(u,J_,u,r,b,i,r.__reactInternalSnapshotBeforeUpdate),qo()):Mt(u,J_,u,r,b,i,r.__reactInternalSnapshotBeforeUpdate)}g&64&&gb(u),g&512&&Jc(u,u.return);break;case 3:if(i=Gi(),ra(r,u),g&64&&(g=u.updateQueue,g!==null)){if(b=null,u.child!==null)switch(u.child.tag){case 27:case 5:b=u.child.stateNode;break;case 1:b=u.child.stateNode}try{Mt(u,xi,g,b)}catch(D){nr(u,u.return,D)}}r.effectDuration+=id(i);break;case 27:i===null&&g&4&&_p(u);case 26:case 5:ra(r,u),i===null&&g&4&&t6(u),g&512&&Jc(u,u.return);break;case 12:if(g&4){g=Gi(),ra(r,u),r=u.stateNode,r.effectDuration+=od(g);try{Mt(u,bb,u,i,G6,r.effectDuration)}catch(D){nr(u,u.return,D)}}else ra(r,u);break;case 13:ra(r,u),g&4&&Np(r,u),g&64&&(r=u.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(u=Bu.bind(null,u),Vd(r,u))));break;case 22:if(g=u.memoizedState!==null||bf,!g){i=i!==null&&i.memoizedState!==null||ha,b=bf;var E=ha;bf=g,(ha=i)&&!E?Ha(r,u,(u.subtreeFlags&8772)!==0):ra(r,u),bf=b,ha=E}break;case 30:break;default:ra(r,u)}}function a6(r){var i=r.alternate;i!==null&&(r.alternate=null,a6(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&en(i)),r.stateNode=null,r._debugOwner=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function Ci(r,i,u){for(u=u.child;u!==null;)Rd(r,i,u),u=u.sibling}function Rd(r,i,u){if(La&&typeof La.onCommitFiberUnmount=="function")try{La.onCommitFiberUnmount(ff,u)}catch(E){Xr||(Xr=!0,console.error("React instrumentation encountered an error: %s",E))}switch(u.tag){case 26:ha||el(u,i),Ci(r,i,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:ha||el(u,i);var g=Ra,b=ko;da(u.type)&&(Ra=u.stateNode,ko=!1),Ci(r,i,u),Mt(u,$d,u.stateNode),Ra=g,ko=b;break;case 5:ha||el(u,i);case 6:if(g=Ra,b=ko,Ra=null,Ci(r,i,u),Ra=g,ko=b,Ra!==null)if(ko)try{Mt(u,Up,Ra,u.stateNode)}catch(E){nr(u,i,E)}else try{Mt(u,Pd,Ra,u.stateNode)}catch(E){nr(u,i,E)}break;case 18:Ra!==null&&(ko?(r=Ra,ri(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,u.stateNode),Fd(r)):ri(Ra,u.stateNode));break;case 4:g=Ra,b=ko,Ra=u.stateNode.containerInfo,ko=!0,Ci(r,i,u),Ra=g,ko=b;break;case 0:case 11:case 14:case 15:ha||Zc(ro,u,i),ha||Mp(u,i,ii),Ci(r,i,u);break;case 1:ha||(el(u,i),g=u.stateNode,typeof g.componentWillUnmount=="function"&&vb(u,i,g)),Ci(r,i,u);break;case 21:Ci(r,i,u);break;case 22:ha=(g=ha)||u.memoizedState!==null,Ci(r,i,u),ha=g;break;default:Ci(r,i,u)}}function Np(r,i){if(i.memoizedState===null&&(r=i.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Mt(i,g6,r)}catch(u){nr(i,i.return,u)}}function zp(r){switch(r.tag){case 13:case 19:var i=r.stateNode;return i===null&&(i=r.stateNode=new kN),i;case 22:return r=r.stateNode,i=r._retryCache,i===null&&(i=r._retryCache=new kN),i;default:throw Error("Unexpected Suspense handler tag ("+r.tag+"). This is a bug in React.")}}function Md(r,i){var u=zp(r);i.forEach(function(g){var b=c6.bind(null,r,g);if(!u.has(g)){if(u.add(g),Ro)if(Cg!==null&&Og!==null)rf(Og,Cg);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");g.then(b,b)}})}function Oi(r,i){var u=i.deletions;if(u!==null)for(var g=0;g<u.length;g++){var b=r,E=i,D=u[g],U=E;e:for(;U!==null;){switch(U.tag){case 27:if(da(U.type)){Ra=U.stateNode,ko=!1;break e}break;case 5:Ra=U.stateNode,ko=!1;break e;case 3:case 4:Ra=U.stateNode.containerInfo,ko=!0;break e}U=U.return}if(Ra===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Rd(b,E,D),Ra=null,ko=!1,b=D,E=b.alternate,E!==null&&(E.return=null),b.return=null}if(i.subtreeFlags&13878)for(i=i.child;i!==null;)Sb(i,r),i=i.sibling}function Sb(r,i){var u=r.alternate,g=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:Oi(i,r),Sa(r),g&4&&(Zc(ro|Zl,r,r.return),Ad(ro|Zl,r),Mp(r,r.return,ii|Zl));break;case 1:Oi(i,r),Sa(r),g&512&&(ha||u===null||el(u,u.return)),g&64&&bf&&(r=r.updateQueue,r!==null&&(g=r.callbacks,g!==null&&(u=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=u===null?g:u.concat(g))));break;case 26:var b=Gs;if(Oi(i,r),Sa(r),g&512&&(ha||u===null||el(u,u.return)),g&4)if(i=u!==null?u.memoizedState:null,g=r.memoizedState,u===null)if(g===null)if(r.stateNode===null){e:{g=r.type,u=r.memoizedProps,i=b.ownerDocument||b;t:switch(g){case"title":b=i.getElementsByTagName("title")[0],(!b||b[Jp]||b[Ga]||b.namespaceURI===$s||b.hasAttribute("itemprop"))&&(b=i.createElement(g),i.head.insertBefore(b,i.querySelector("head > title"))),Ta(b,g,u),b[Ga]=r,we(b),g=b;break e;case"link":var E=e4("link","href",i).get(g+(u.href||""));if(E){for(var D=0;D<E.length;D++)if(b=E[D],b.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&b.getAttribute("rel")===(u.rel==null?null:u.rel)&&b.getAttribute("title")===(u.title==null?null:u.title)&&b.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){E.splice(D,1);break t}}b=i.createElement(g),Ta(b,g,u),i.head.appendChild(b);break;case"meta":if(E=e4("meta","content",i).get(g+(u.content||""))){for(D=0;D<E.length;D++)if(b=E[D],H(u.content,"content"),b.getAttribute("content")===(u.content==null?null:""+u.content)&&b.getAttribute("name")===(u.name==null?null:u.name)&&b.getAttribute("property")===(u.property==null?null:u.property)&&b.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&b.getAttribute("charset")===(u.charSet==null?null:u.charSet)){E.splice(D,1);break t}}b=i.createElement(g),Ta(b,g,u),i.head.appendChild(b);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+g+'". This is a bug in React.')}b[Ga]=r,we(b),g=b}r.stateNode=g}else sf(b,r.type,r.stateNode);else r.stateNode=b6(b,g,r.memoizedProps);else i!==g?(i===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):i.count--,g===null?sf(b,r.type,r.stateNode):b6(b,g,r.memoizedProps)):g===null&&r.stateNode!==null&&m1(r,r.memoizedProps,u.memoizedProps);break;case 27:Oi(i,r),Sa(r),g&512&&(ha||u===null||el(u,u.return)),u!==null&&g&4&&m1(r,r.memoizedProps,u.memoizedProps);break;case 5:if(Oi(i,r),Sa(r),g&512&&(ha||u===null||el(u,u.return)),r.flags&32){i=r.stateNode;try{Mt(r,Hu,i)}catch(Be){nr(r,r.return,Be)}}g&4&&r.stateNode!=null&&(i=r.memoizedProps,m1(r,i,u!==null?u.memoizedProps:i)),g&1024&&(dw=!0,r.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Oi(i,r),Sa(r),g&4){if(r.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");g=r.memoizedProps,u=u!==null?u.memoizedProps:g,i=r.stateNode;try{Mt(r,Xb,i,u,g)}catch(Be){nr(r,r.return,Be)}}break;case 3:if(b=Gi(),yS=null,E=Gs,Gs=_1(i.containerInfo),Oi(i,r),Gs=E,Sa(r),g&4&&u!==null&&u.memoizedState.isDehydrated)try{Mt(r,Zi,i.containerInfo)}catch(Be){nr(r,r.return,Be)}dw&&(dw=!1,Eb(r)),i.effectDuration+=id(b);break;case 4:g=Gs,Gs=_1(r.stateNode.containerInfo),Oi(i,r),Sa(r),Gs=g;break;case 12:g=Gi(),Oi(i,r),Sa(r),r.stateNode.effectDuration+=od(g);break;case 13:Oi(i,r),Sa(r),r.child.flags&8192&&r.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(vw=za()),g&4&&(g=r.updateQueue,g!==null&&(r.updateQueue=null,Md(r,g)));break;case 22:b=r.memoizedState!==null;var U=u!==null&&u.memoizedState!==null,te=bf,oe=ha;if(bf=te||b,ha=oe||U,Oi(i,r),ha=oe,bf=te,Sa(r),g&8192)e:for(i=r.stateNode,i._visibility=b?i._visibility&~$6:i._visibility|$6,b&&(u===null||U||bf||ha||Ri(r)),u=null,i=r;;){if(i.tag===5||i.tag===26){if(u===null){U=u=i;try{E=U.stateNode,b?Mt(U,Wb,E):Mt(U,R1,U.stateNode,U.memoizedProps)}catch(Be){nr(U,U.return,Be)}}}else if(i.tag===6){if(u===null){U=i;try{D=U.stateNode,b?Mt(U,Qb,D):Mt(U,M1,D,U.memoizedProps)}catch(Be){nr(U,U.return,Be)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===r)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break e;for(;i.sibling===null;){if(i.return===null||i.return===r)break e;u===i&&(u=null),i=i.return}u===i&&(u=null),i.sibling.return=i.return,i=i.sibling}g&4&&(g=r.updateQueue,g!==null&&(u=g.retryQueue,u!==null&&(g.retryQueue=null,Md(r,u))));break;case 19:Oi(i,r),Sa(r),g&4&&(g=r.updateQueue,g!==null&&(r.updateQueue=null,Md(r,g)));break;case 30:break;case 21:break;default:Oi(i,r),Sa(r)}}function Sa(r){var i=r.flags;if(i&2){try{Mt(r,n6,r)}catch(u){nr(r,r.return,u)}r.flags&=-3}i&4096&&(r.flags&=-4097)}function Eb(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var i=r;Eb(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),r=r.sibling}}function ra(r,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)xb(r,i.alternate,i),i=i.sibling}function tl(r){switch(r.tag){case 0:case 11:case 14:case 15:Mp(r,r.return,ii),Ri(r);break;case 1:el(r,r.return);var i=r.stateNode;typeof i.componentWillUnmount=="function"&&vb(r,r.return,i),Ri(r);break;case 27:Mt(r,$d,r.stateNode);case 26:case 5:el(r,r.return),Ri(r);break;case 22:r.memoizedState===null&&Ri(r);break;case 30:Ri(r);break;default:Ri(r)}}function Ri(r){for(r=r.child;r!==null;)tl(r),r=r.sibling}function Tb(r,i,u,g){var b=u.flags;switch(u.tag){case 0:case 11:case 15:Ha(r,u,g),mb(u,ii);break;case 1:if(Ha(r,u,g),i=u.stateNode,typeof i.componentDidMount=="function"&&Mt(u,iw,u,i),i=u.updateQueue,i!==null){r=u.stateNode;try{Mt(u,OT,i,r)}catch(E){nr(u,u.return,E)}}g&&b&64&&gb(u),Jc(u,u.return);break;case 27:_p(u);case 26:case 5:Ha(r,u,g),g&&i===null&&b&4&&t6(u),Jc(u,u.return);break;case 12:if(g&&b&4){b=Gi(),Ha(r,u,g),g=u.stateNode,g.effectDuration+=od(b);try{Mt(u,bb,u,i,G6,g.effectDuration)}catch(E){nr(u,u.return,E)}}else Ha(r,u,g);break;case 13:Ha(r,u,g),g&&b&4&&Np(r,u);break;case 22:u.memoizedState===null&&Ha(r,u,g),Jc(u,u.return);break;case 30:break;default:Ha(r,u,g)}}function Ha(r,i,u){for(u=u&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;)Tb(r,i.alternate,i,u),i=i.sibling}function nl(r,i){var u=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),r=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(r=i.memoizedState.cachePool.pool),r!==u&&(r!=null&&bo(r),u!=null&&jc(u))}function Yr(r,i){r=null,i.alternate!==null&&(r=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==r&&(bo(i),r!=null&&jc(r))}function Xi(r,i,u,g){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)g1(r,i,u,g),i=i.sibling}function g1(r,i,u,g){var b=i.flags;switch(i.tag){case 0:case 11:case 15:Xi(r,i,u,g),b&2048&&p1(i,Pa|Zl);break;case 1:Xi(r,i,u,g);break;case 3:var E=Gi();Xi(r,i,u,g),b&2048&&(u=null,i.alternate!==null&&(u=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==u&&(bo(i),u!=null&&jc(u))),r.passiveEffectDuration+=id(E);break;case 12:if(b&2048){b=Gi(),Xi(r,i,u,g),r=i.stateNode,r.passiveEffectDuration+=od(b);try{Mt(i,MT,i,i.alternate,G6,r.passiveEffectDuration)}catch(U){nr(i,i.return,U)}}else Xi(r,i,u,g);break;case 13:Xi(r,i,u,g);break;case 23:break;case 22:E=i.stateNode;var D=i.alternate;i.memoizedState!==null?E._visibility&pf?Xi(r,i,u,g):kd(r,i):E._visibility&pf?Xi(r,i,u,g):(E._visibility|=pf,Lu(r,i,u,g,(i.subtreeFlags&10256)!==0)),b&2048&&nl(D,i);break;case 24:Xi(r,i,u,g),b&2048&&Yr(i.alternate,i);break;default:Xi(r,i,u,g)}}function Lu(r,i,u,g,b){for(b=b&&(i.subtreeFlags&10256)!==0,i=i.child;i!==null;)wb(r,i,u,g,b),i=i.sibling}function wb(r,i,u,g,b){var E=i.flags;switch(i.tag){case 0:case 11:case 15:Lu(r,i,u,g,b),p1(i,Pa);break;case 23:break;case 22:var D=i.stateNode;i.memoizedState!==null?D._visibility&pf?Lu(r,i,u,g,b):kd(r,i):(D._visibility|=pf,Lu(r,i,u,g,b)),b&&E&2048&&nl(i.alternate,i);break;case 24:Lu(r,i,u,g,b),b&&E&2048&&Yr(i.alternate,i);break;default:Lu(r,i,u,g,b)}}function kd(r,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var u=r,g=i,b=g.flags;switch(g.tag){case 22:kd(u,g),b&2048&&nl(g.alternate,g);break;case 24:kd(u,g),b&2048&&Yr(g.alternate,g);break;default:kd(u,g)}i=i.sibling}}function wo(r){if(r.subtreeFlags&q4)for(r=r.child;r!==null;)Lp(r),r=r.sibling}function Lp(r){switch(r.tag){case 26:wo(r),r.flags&q4&&r.memoizedState!==null&&S6(Gs,r.memoizedState,r.memoizedProps);break;case 5:wo(r);break;case 3:case 4:var i=Gs;Gs=_1(r.stateNode.containerInfo),wo(r),Gs=i;break;case 22:r.memoizedState===null&&(i=r.alternate,i!==null&&i.memoizedState!==null?(i=q4,q4=16777216,wo(r),q4=i):wo(r));break;default:wo(r)}}function Ab(r){var i=r.alternate;if(i!==null&&(r=i.child,r!==null)){i.child=null;do i=r.sibling,r.sibling=null,r=i;while(r!==null)}}function Dd(r){var i=r.deletions;if((r.flags&16)!==0){if(i!==null)for(var u=0;u<i.length;u++){var g=i[u];Ya=g,y1(g,r)}Ab(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Cb(r),r=r.sibling}function Cb(r){switch(r.tag){case 0:case 11:case 15:Dd(r),r.flags&2048&&h1(r,r.return,Pa|Zl);break;case 3:var i=Gi();Dd(r),r.stateNode.passiveEffectDuration+=id(i);break;case 12:i=Gi(),Dd(r),r.stateNode.passiveEffectDuration+=od(i);break;case 22:i=r.stateNode,r.memoizedState!==null&&i._visibility&pf&&(r.return===null||r.return.tag!==13)?(i._visibility&=~pf,ef(r)):Dd(r);break;default:Dd(r)}}function ef(r){var i=r.deletions;if((r.flags&16)!==0){if(i!==null)for(var u=0;u<i.length;u++){var g=i[u];Ya=g,y1(g,r)}Ab(r)}for(r=r.child;r!==null;)Ob(r),r=r.sibling}function Ob(r){switch(r.tag){case 0:case 11:case 15:h1(r,r.return,Pa),ef(r);break;case 22:var i=r.stateNode;i._visibility&pf&&(i._visibility&=~pf,ef(r));break;default:ef(r)}}function y1(r,i){for(;Ya!==null;){var u=Ya,g=u;switch(g.tag){case 0:case 11:case 15:h1(g,i,Pa);break;case 23:case 22:g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(g=g.memoizedState.cachePool.pool,g!=null&&bo(g));break;case 24:jc(g.memoizedState.cache)}if(g=u.child,g!==null)g.return=u,Ya=g;else e:for(u=r;Ya!==null;){g=Ya;var b=g.sibling,E=g.return;if(a6(g),g===u){Ya=null;break e}if(b!==null){b.return=E,Ya=b;break e}Ya=E}}}function i6(){sle.forEach(function(r){return r()})}function Rb(){var r=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return r||Ie.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),r}function Wi(r){if((Wn&ao)!==dl&&kn!==0)return kn&-kn;var i=Ie.T;return i!==null?(i._updatedFibers||(i._updatedFibers=new Set),i._updatedFibers.add(r),r=fh,r!==0?r:C1()):sn()}function Mb(){hl===0&&(hl=(kn&536870912)===0||Vn?yt():536870912);var r=es.current;return r!==null&&(r.flags|=32),hl}function wn(r,i,u){if(_g&&console.error("useInsertionEffect must not schedule updates."),Tw&&(iS=!0),(r===Sr&&(or===gh||or===yh)||r.cancelPendingCommit!==null)&&(Cs(r,0),As(r,kn,hl,!1)),En(r,u),(Wn&ao)!==0&&r===Sr){if(jl)switch(i.tag){case 0:case 11:case 15:r=Rn&&Z(Rn)||"Unknown",UN.has(r)||(UN.add(r),i=Z(i)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",i,r,r));break;case 1:VN||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),VN=!0)}}else Ro&&lt(r,i,u),Ub(i),r===Sr&&((Wn&ao)===dl&&(l0|=u),oa===mh&&As(r,kn,hl,!1)),Ao(r)}function Ea(r,i,u){if((Wn&(ao|Fs))!==dl)throw Error("Should not already be working.");var g=!u&&(i&124)===0&&(i&r.expiredLanes)===0||ln(r,i),b=g?Nb(r,i):Ip(r,i,!0),E=g;do{if(b===xf){kg&&!g&&As(r,i,0,!1);break}else{if(u=r.current.alternate,E&&!o6(u)){b=Ip(r,i,!1),E=!1;continue}if(b===Rg){if(E=i,r.errorRecoveryDisabledLanes&E)var D=0;else D=r.pendingLanes&-536870913,D=D!==0?D:D&536870912?536870912:0;if(D!==0){i=D;e:{b=r;var U=D;D=Q4;var te=b.current.memoizedState.isDehydrated;if(te&&(Cs(b,U).flags|=256),U=Ip(b,U,!1),U!==Rg){if(gw&&!te){b.errorRecoveryDisabledLanes|=E,l0|=E,b=mh;break e}b=io,io=D,b!==null&&(io===null?io=b:io.push.apply(io,b))}b=U}if(E=!1,b!==Rg)continue}}if(b===F4){Cs(r,0),As(r,i,0,!0);break}e:{switch(g=r,b){case xf:case F4:throw Error("Root did not complete. This is a bug in React.");case mh:if((i&4194048)!==i)break;case nS:As(g,i,hl,!i0);break e;case Rg:io=null;break;case pw:case DN:break;default:throw Error("Unknown root exit status.")}if(Ie.actQueue!==null)rl(g,u,i,io,K4,rS,hl,l0,vh);else{if((i&62914560)===i&&(E=vw+NN-za(),10<E)){if(As(g,i,hl,!i0),qt(g,0,!0)!==0)break e;g.timeoutHandle=XN(kb.bind(null,g,u,io,K4,rS,i,hl,l0,vh,i0,b,dle,L_,0),E);break e}kb(g,u,io,K4,rS,i,hl,l0,vh,i0,b,cle,L_,0)}}}break}while(!0);Ao(r)}function kb(r,i,u,g,b,E,D,U,te,oe,Be,je,Le,qe){if(r.timeoutHandle=Th,je=i.subtreeFlags,(je&8192||(je&16785408)===16785408)&&(r5={stylesheets:null,count:0,unsuspend:x6},Lp(i),je=E6(),je!==null)){r.cancelPendingCommit=je(rl.bind(null,r,i,E,u,g,b,D,U,te,Be,fle,Le,qe)),As(r,E,D,!oe);return}rl(r,i,E,u,g,b,D,U,te)}function o6(r){for(var i=r;;){var u=i.tag;if((u===0||u===11||u===15)&&i.flags&16384&&(u=i.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var g=0;g<u.length;g++){var b=u[g],E=b.getSnapshot;b=b.value;try{if(!to(E(),b))return!1}catch{return!1}}if(u=i.child,i.subtreeFlags&16384&&u!==null)u.return=i,i=u;else{if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function As(r,i,u,g){i&=~yw,i&=~l0,r.suspendedLanes|=i,r.pingedLanes&=~i,g&&(r.warmLanes|=i),g=r.expirationTimes;for(var b=i;0<b;){var E=31-wa(b),D=1<<E;g[E]=-1,b&=~D}u!==0&&ve(r,u,i)}function tf(){return(Wn&(ao|Fs))===dl?(Pu(0),!1):!0}function v1(){if(Rn!==null){if(or===Do)var r=Rn.return;else r=Rn,Um(),Wo(r),Sg=null,j4=0,r=Rn;for(;r!==null;)hb(r.alternate,r),r=r.return;Rn=null}}function Cs(r,i){var u=r.timeoutHandle;u!==Th&&(r.timeoutHandle=Th,Ale(u)),u=r.cancelPendingCommit,u!==null&&(r.cancelPendingCommit=null,u()),v1(),Sr=r,Rn=u=Dl(r.current,null),kn=i,or=Do,pl=null,i0=!1,kg=ln(r,i),gw=!1,oa=xf,vh=hl=yw=l0=o0=0,io=Q4=null,rS=!1,(i&8)!==0&&(i|=i&32);var g=r.entangledLanes;if(g!==0)for(r=r.entanglements,g&=i;0<g;){var b=31-wa(g),E=1<<b;i|=r[b],g&=~E}return ac=i,_m(),i=N_(),1e3<i-__&&(Ie.recentlyCreatedOwnerStacks=0,__=i),Hs.discardPendingWarnings(),u}function b1(r,i){nn=null,Ie.H=eS,Ie.getCurrentStack=null,jl=!1,Ia=null,i===P4||i===W6?(i=Fi(),or=X4):i===P_?(i=Fi(),or=_N):or=i===EN?mw:i!==null&&typeof i=="object"&&typeof i.then=="function"?Mg:Y4,pl=i;var u=Rn;if(u===null)oa=F4,wd(r,yi(i,r.current));else switch(u.mode&ai&&Au(u),Je(),or){case Y4:vt!==null&&typeof vt.markComponentErrored=="function"&&vt.markComponentErrored(u,i,kn);break;case gh:case yh:case X4:case Mg:case W4:vt!==null&&typeof vt.markComponentSuspended=="function"&&vt.markComponentSuspended(u,i,kn)}}function Db(){var r=Ie.H;return Ie.H=eS,r===null?eS:r}function _b(){var r=Ie.A;return Ie.A=lle,r}function x1(){oa=mh,i0||(kn&4194048)!==kn&&es.current!==null||(kg=!0),(o0&134217727)===0&&(l0&134217727)===0||Sr===null||As(Sr,kn,hl,!1)}function Ip(r,i,u){var g=Wn;Wn|=ao;var b=Db(),E=_b();if(Sr!==r||kn!==i){if(Ro){var D=r.memoizedUpdaters;0<D.size&&(rf(r,kn),D.clear()),ct(r,i)}K4=null,Cs(r,i)}dt(i),i=!1,D=oa;e:do try{if(or!==Do&&Rn!==null){var U=Rn,te=pl;switch(or){case mw:v1(),D=nS;break e;case X4:case gh:case yh:case Mg:es.current===null&&(i=!0);var oe=or;if(or=Do,pl=null,nf(r,U,te,oe),u&&kg){D=xf;break e}break;default:oe=or,or=Do,pl=null,nf(r,U,te,oe)}}S1(),D=oa;break}catch(Be){b1(r,Be)}while(!0);return i&&r.shellSuspendCounter++,Um(),Wn=g,Ie.H=b,Ie.A=E,Ae(),Rn===null&&(Sr=null,kn=0,_m()),D}function S1(){for(;Rn!==null;)E1(Rn)}function Nb(r,i){var u=Wn;Wn|=ao;var g=Db(),b=_b();if(Sr!==r||kn!==i){if(Ro){var E=r.memoizedUpdaters;0<E.size&&(rf(r,kn),E.clear()),ct(r,i)}K4=null,aS=za()+zN,Cs(r,i)}else kg=ln(r,i);dt(i);e:do try{if(or!==Do&&Rn!==null)t:switch(i=Rn,E=pl,or){case Y4:or=Do,pl=null,nf(r,i,E,Y4);break;case gh:case yh:if(qm(E)){or=Do,pl=null,Bp(i);break}i=function(){or!==gh&&or!==yh||Sr!==r||(or=W4),Ao(r)},E.then(i,i);break e;case X4:or=W4;break e;case _N:or=hw;break e;case W4:qm(E)?(or=Do,pl=null,Bp(i)):(or=Do,pl=null,nf(r,i,E,W4));break;case hw:var D=null;switch(Rn.tag){case 26:D=Rn.memoizedState;case 5:case 27:var U=Rn;if(!D||t4(D)){or=Do,pl=null;var te=U.sibling;if(te!==null)Rn=te;else{var oe=U.return;oe!==null?(Rn=oe,_d(oe)):Rn=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}or=Do,pl=null,nf(r,i,E,hw);break;case Mg:or=Do,pl=null,nf(r,i,E,Mg);break;case mw:v1(),oa=nS;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Ie.actQueue!==null?S1():l6();break}catch(Be){b1(r,Be)}while(!0);return Um(),Ie.H=g,Ie.A=b,Wn=u,Rn!==null?(vt!==null&&typeof vt.markRenderYielded=="function"&&vt.markRenderYielded(),xf):(Ae(),Sr=null,kn=0,_m(),oa)}function l6(){for(;Rn!==null&&!LT();)E1(Rn)}function E1(r){var i=r.alternate;(r.mode&ai)!==Or?(ms(r),i=Mt(r,zu,i,r,ac),Au(r)):i=Mt(r,zu,i,r,ac),r.memoizedProps=r.pendingProps,i===null?_d(r):Rn=i}function Bp(r){var i=Mt(r,zb,r);r.memoizedProps=r.pendingProps,i===null?_d(r):Rn=i}function zb(r){var i=r.alternate,u=(r.mode&ai)!==Or;switch(u&&ms(r),r.tag){case 15:case 0:i=ab(i,r,r.pendingProps,r.type,void 0,kn);break;case 11:i=ab(i,r,r.pendingProps,r.type.render,r.ref,kn);break;case 5:Wo(r);default:hb(i,r),r=Rn=Nv(r,ac),i=zu(i,r,ac)}return u&&Au(r),i}function nf(r,i,u,g){Um(),Wo(i),Sg=null,j4=0;var b=i.return;try{if(o1(r,b,i,u,kn)){oa=F4,wd(r,yi(u,r.current)),Rn=null;return}}catch(E){if(b!==null)throw Rn=b,E;oa=F4,wd(r,yi(u,r.current)),Rn=null;return}i.flags&32768?(Vn||g===Y4?r=!0:kg||(kn&536870912)!==0?r=!1:(i0=r=!0,(g===gh||g===yh||g===X4||g===Mg)&&(g=es.current,g!==null&&g.tag===13&&(g.flags|=16384))),Lb(i,r)):_d(i)}function _d(r){var i=r;do{if((i.flags&32768)!==0){Lb(i,i0);return}var u=i.alternate;if(r=i.return,ms(i),u=Mt(i,Zx,u,i,ac),(i.mode&ai)!==Or&&jm(i),u!==null){Rn=u;return}if(i=i.sibling,i!==null){Rn=i;return}Rn=i=r}while(i!==null);oa===xf&&(oa=DN)}function Lb(r,i){do{var u=Jx(r.alternate,r);if(u!==null){u.flags&=32767,Rn=u;return}if((r.mode&ai)!==Or){jm(r),u=r.actualDuration;for(var g=r.child;g!==null;)u+=g.actualDuration,g=g.sibling;r.actualDuration=u}if(u=r.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!i&&(r=r.sibling,r!==null)){Rn=r;return}Rn=r=u}while(r!==null);oa=nS,Rn=null}function rl(r,i,u,g,b,E,D,U,te){r.cancelPendingCommit=null;do Iu();while(oi!==bh);if(Hs.flushLegacyContextWarning(),Hs.flushPendingUnsafeLifecycleWarnings(),(Wn&(ao|Fs))!==dl)throw Error("Should not already be working.");if(vt!==null&&typeof vt.markCommitStarted=="function"&&vt.markCommitStarted(u),i===null)Qe();else{if(u===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),i===r.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(E=i.lanes|i.childLanes,E|=FT,et(r,u,E,D,U,te),r===Sr&&(Rn=Sr=null,kn=0),Dg=i,u0=r,c0=u,xw=E,Sw=b,PN=g,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,f6(Xd,function(){return Nd(),null})):(r.callbackNode=null,r.callbackPriority=0),G6=gg(),g=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||g){g=Ie.T,Ie.T=null,b=Hn.p,Hn.p=eo,D=Wn,Wn|=Fs;try{r6(r,i,u)}finally{Wn=D,Hn.p=b,Ie.T=g}}oi=LN,T1(),s6(),Ib()}}function T1(){if(oi===LN){oi=bh;var r=u0,i=Dg,u=c0,g=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||g){g=Ie.T,Ie.T=null;var b=Hn.p;Hn.p=eo;var E=Wn;Wn|=Fs;try{Cg=u,Og=r,Sb(i,r),Og=Cg=null,u=_w;var D=qx(r.containerInfo),U=u.focusedElem,te=u.selectionRange;if(D!==U&&U&&U.ownerDocument&&Hx(U.ownerDocument.documentElement,U)){if(te!==null&&kv(U)){var oe=te.start,Be=te.end;if(Be===void 0&&(Be=oe),"selectionStart"in U)U.selectionStart=oe,U.selectionEnd=Math.min(Be,U.value.length);else{var je=U.ownerDocument||document,Le=je&&je.defaultView||window;if(Le.getSelection){var qe=Le.getSelection(),Ct=U.textContent.length,Xt=Math.min(te.start,Ct),Er=te.end===void 0?Xt:Math.min(te.end,Ct);!qe.extend&&Xt>Er&&(D=Er,Er=Xt,Xt=D);var Nn=jx(U,Xt),pe=jx(U,Er);if(Nn&&pe&&(qe.rangeCount!==1||qe.anchorNode!==Nn.node||qe.anchorOffset!==Nn.offset||qe.focusNode!==pe.node||qe.focusOffset!==pe.offset)){var me=je.createRange();me.setStart(Nn.node,Nn.offset),qe.removeAllRanges(),Xt>Er?(qe.addRange(me),qe.extend(pe.node,pe.offset)):(me.setEnd(pe.node,pe.offset),qe.addRange(me))}}}}for(je=[],qe=U;qe=qe.parentNode;)qe.nodeType===1&&je.push({element:qe,left:qe.scrollLeft,top:qe.scrollTop});for(typeof U.focus=="function"&&U.focus(),U=0;U<je.length;U++){var be=je[U];be.element.scrollLeft=be.left,be.element.scrollTop=be.top}}xS=!!Dw,_w=Dw=null}finally{Wn=E,Hn.p=b,Ie.T=g}}r.current=i,oi=IN}}function s6(){if(oi===IN){oi=bh;var r=u0,i=Dg,u=c0,g=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||g){g=Ie.T,Ie.T=null;var b=Hn.p;Hn.p=eo;var E=Wn;Wn|=Fs;try{vt!==null&&typeof vt.markLayoutEffectsStarted=="function"&&vt.markLayoutEffectsStarted(u),Cg=u,Og=r,xb(r,i.alternate,i),Og=Cg=null,vt!==null&&typeof vt.markLayoutEffectsStopped=="function"&&vt.markLayoutEffectsStopped()}finally{Wn=E,Hn.p=b,Ie.T=g}}oi=BN}}function Ib(){if(oi===ple||oi===BN){oi=bh,IT();var r=u0,i=Dg,u=c0,g=PN,b=(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0;b?oi=bw:(oi=bh,Dg=u0=null,Bb(r,r.pendingLanes),xh=0,J4=null);var E=r.pendingLanes;if(E===0&&(s0=null),b||al(r),b=mt(u),i=i.stateNode,La&&typeof La.onCommitFiberRoot=="function")try{var D=(i.current.flags&128)===128;switch(b){case eo:var U=Kp;break;case $l:U=s4;break;case Vs:U=Xd;break;case Q1:U=c4;break;default:U=Xd}La.onCommitFiberRoot(ff,i,U,D)}catch(je){Xr||(Xr=!0,console.error("React instrumentation encountered an error: %s",je))}if(Ro&&r.memoizedUpdaters.clear(),i6(),g!==null){D=Ie.T,U=Hn.p,Hn.p=eo,Ie.T=null;try{var te=r.onRecoverableError;for(i=0;i<g.length;i++){var oe=g[i],Be=Os(oe.stack);Mt(oe.source,te,oe.value,Be)}}finally{Ie.T=D,Hn.p=U}}(c0&3)!==0&&Iu(),Ao(r),E=r.pendingLanes,(u&4194090)!==0&&(E&42)!==0?(Y6=!0,r===Ew?Z4++:(Z4=0,Ew=r)):Z4=0,Pu(0),Qe()}}function Os(r){return r={componentStack:r},Object.defineProperty(r,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),r}function Bb(r,i){(r.pooledCacheLanes&=i)===0&&(i=r.pooledCache,i!=null&&(r.pooledCache=null,jc(i)))}function Iu(r){return T1(),s6(),Ib(),Nd()}function Nd(){if(oi!==bw)return!1;var r=u0,i=xw;xw=0;var u=mt(c0),g=Vs>u?Vs:u;u=Ie.T;var b=Hn.p;try{Hn.p=g,Ie.T=null,g=Sw,Sw=null;var E=u0,D=c0;if(oi=bh,Dg=u0=null,c0=0,(Wn&(ao|Fs))!==dl)throw Error("Cannot flush passive effects while already rendering.");Tw=!0,iS=!1,vt!==null&&typeof vt.markPassiveEffectsStarted=="function"&&vt.markPassiveEffectsStarted(D);var U=Wn;if(Wn|=Fs,Cb(E.current),g1(E,E.current,D,g),vt!==null&&typeof vt.markPassiveEffectsStopped=="function"&&vt.markPassiveEffectsStopped(),al(E),Wn=U,Pu(0,!1),iS?E===J4?xh++:(xh=0,J4=E):xh=0,iS=Tw=!1,La&&typeof La.onPostCommitFiberRoot=="function")try{La.onPostCommitFiberRoot(ff,E)}catch(oe){Xr||(Xr=!0,console.error("React instrumentation encountered an error: %s",oe))}var te=E.current.stateNode;return te.effectDuration=0,te.passiveEffectDuration=0,!0}finally{Hn.p=b,Ie.T=u,Bb(r,i)}}function Cr(r,i,u){i=yi(u,i),i=Br(r.stateNode,i,2),r=Fo(r,i,2),r!==null&&(En(r,2),Ao(r))}function nr(r,i,u){if(_g=!1,r.tag===3)Cr(r,r,u);else{for(;i!==null;){if(i.tag===3){Cr(i,r,u);return}if(i.tag===1){var g=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(s0===null||!s0.has(g))){r=yi(u,r),u=Tp(2),g=Fo(i,u,2),g!==null&&(Qc(u,g,i,r),En(g,2),Ao(g));return}}i=i.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
780
780
 
781
781
  Error message:
782
782
 
@@ -789,7 +789,7 @@ act(() => {
789
789
  });
790
790
  /* assert on the output */
791
791
 
792
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Sr===r&&(kn&u)===u&&(oa===mh||oa===pw&&(kn&62914560)===kn&&za()-vw<NN?(Wn&ao)===dl&&Cs(r,0):yw|=u,vh===kn&&(vh=0)),Ao(r)}function zd(r,i){i===0&&(i=Et()),r=vi(r,i),r!==null&&(En(r,i),Ao(r))}function Bu(r){var i=r.memoizedState,u=0;i!==null&&(u=i.retryLane),zd(r,u)}function c6(r,i){var u=0;switch(r.tag){case 13:var g=r.stateNode,b=r.memoizedState;b!==null&&(u=b.retryLane);break;case 19:g=r.stateNode;break;case 22:g=r.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}g!==null&&g.delete(i),zd(r,u)}function w1(r,i,u){if((i.subtreeFlags&67117056)!==0)for(i=i.child;i!==null;){var g=r,b=i,E=b.type===uf;E=u||E,b.tag!==22?b.flags&67108864?E&&Mt(b,Ld,g,b,(b.mode&M_)===Cr):w1(g,b,E):b.memoizedState===null&&(E&&b.flags&8192?Mt(b,Ld,g,b):b.subtreeFlags&67108864&&Mt(b,w1,g,b,E)),i=i.sibling}}function Ld(r,i){var u=2<arguments.length&&arguments[2]!==void 0?arguments[2]:!0;Ue(!0);try{tl(i),u&&Ob(i),Tb(r,i.alternate,i,!1),u&&wb(r,i,0,null,!1,0)}finally{Ue(!1)}}function al(r){var i=!0;r.current.mode&(Ii|js)||(i=!1),w1(r,r.current,i)}function Vb(r){if((Wn&ao)===dl){var i=r.tag;if(i===3||i===1||i===0||i===11||i===14||i===15){if(i=Z(r)||"ReactComponent",oS!==null){if(oS.has(i))return;oS.add(i)}else oS=new Set([i]);Mt(r,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")})}}}function rf(r,i){Ro&&r.memoizedUpdaters.forEach(function(u){lt(r,u,i)})}function f6(r,i){var u=Ie.actQueue;return u!==null?(u.push(i),gle):l4(r,i)}function Ub(r){Rb()&&Ie.actQueue===null&&Mt(r,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
792
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Sr===r&&(kn&u)===u&&(oa===mh||oa===pw&&(kn&62914560)===kn&&za()-vw<NN?(Wn&ao)===dl&&Cs(r,0):yw|=u,vh===kn&&(vh=0)),Ao(r)}function zd(r,i){i===0&&(i=Et()),r=vi(r,i),r!==null&&(En(r,i),Ao(r))}function Bu(r){var i=r.memoizedState,u=0;i!==null&&(u=i.retryLane),zd(r,u)}function c6(r,i){var u=0;switch(r.tag){case 13:var g=r.stateNode,b=r.memoizedState;b!==null&&(u=b.retryLane);break;case 19:g=r.stateNode;break;case 22:g=r.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}g!==null&&g.delete(i),zd(r,u)}function w1(r,i,u){if((i.subtreeFlags&67117056)!==0)for(i=i.child;i!==null;){var g=r,b=i,E=b.type===uf;E=u||E,b.tag!==22?b.flags&67108864?E&&Mt(b,Ld,g,b,(b.mode&M_)===Or):w1(g,b,E):b.memoizedState===null&&(E&&b.flags&8192?Mt(b,Ld,g,b):b.subtreeFlags&67108864&&Mt(b,w1,g,b,E)),i=i.sibling}}function Ld(r,i){var u=2<arguments.length&&arguments[2]!==void 0?arguments[2]:!0;Ue(!0);try{tl(i),u&&Ob(i),Tb(r,i.alternate,i,!1),u&&wb(r,i,0,null,!1,0)}finally{Ue(!1)}}function al(r){var i=!0;r.current.mode&(Ii|js)||(i=!1),w1(r,r.current,i)}function Vb(r){if((Wn&ao)===dl){var i=r.tag;if(i===3||i===1||i===0||i===11||i===14||i===15){if(i=Z(r)||"ReactComponent",oS!==null){if(oS.has(i))return;oS.add(i)}else oS=new Set([i]);Mt(r,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")})}}}function rf(r,i){Ro&&r.memoizedUpdaters.forEach(function(u){lt(r,u,i)})}function f6(r,i){var u=Ie.actQueue;return u!==null?(u.push(i),gle):l4(r,i)}function Ub(r){Rb()&&Ie.actQueue===null&&Mt(r,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
793
793
 
794
794
  When testing, code that causes React state updates should be wrapped into act(...):
795
795
 
@@ -807,7 +807,7 @@ This ensures that you're testing the behavior the user would see in the browser.
807
807
  - `+jd(i)+`
808
808
  + `+jd(u),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+u);return null;case"script":return i=u.async,u=u.src,typeof u=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(u=Fu(u),i=W(b).hoistableScripts,g=i.get(u),g||(g={type:"script",instance:null,count:0,state:null},i.set(u,g)),g):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+r+'". this is a bug in React.')}}function jd(r){var i=0,u="<link";return typeof r.rel=="string"?(i++,u+=' rel="'+r.rel+'"'):Ul.call(r,"rel")&&(i++,u+=' rel="'+(r.rel===null?"null":"invalid type "+typeof r.rel)+'"'),typeof r.href=="string"?(i++,u+=' href="'+r.href+'"'):Ul.call(r,"href")&&(i++,u+=' href="'+(r.href===null?"null":"invalid type "+typeof r.href)+'"'),typeof r.precedence=="string"?(i++,u+=' precedence="'+r.precedence+'"'):Ul.call(r,"precedence")&&(i++,u+=" precedence={"+(r.precedence===null?"null":"invalid type "+typeof r.precedence)+"}"),Object.getOwnPropertyNames(r).length>i&&(u+=" ..."),u+" />"}function ll(r){return'href="'+xa(r)+'"'}function Hd(r){return'link[rel="stylesheet"]['+r+"]"}function Zb(r){return tn({},r,{"data-precedence":r.precedence,precedence:null})}function v6(r,i,u,g){r.querySelector('link[rel="preload"][as="style"]['+i+"]")?g.loading=n5:(i=r.createElement("link"),g.preload=i,i.addEventListener("load",function(){return g.loading|=n5}),i.addEventListener("error",function(){return g.loading|=QN}),Ta(i,"link",u),we(i),r.head.appendChild(i))}function Fu(r){return'[src="'+xa(r)+'"]'}function lf(r){return"script[async]"+r}function b6(r,i,u){if(i.count++,i.instance===null)switch(i.type){case"style":var g=r.querySelector('style[data-href~="'+xa(u.href)+'"]');if(g)return i.instance=g,we(g),g;var b=tn({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return g=(r.ownerDocument||r).createElement("style"),we(g),Ta(g,"style",b),N1(g,u.precedence,r),i.instance=g;case"stylesheet":b=ll(u.href);var E=r.querySelector(Hd(b));if(E)return i.state.loading|=ts,i.instance=E,we(E),E;g=Zb(u),(b=ns.get(b))&&Jb(g,b),E=(r.ownerDocument||r).createElement("link"),we(E);var D=E;return D._p=new Promise(function(U,te){D.onload=U,D.onerror=te}),Ta(E,"link",g),i.state.loading|=ts,N1(E,u.precedence,r),i.instance=E;case"script":return E=Fu(u.src),(b=r.querySelector(lf(E)))?(i.instance=b,we(b),b):(g=u,(b=ns.get(E))&&(g=tn({},u),z1(g,b)),r=r.ownerDocument||r,b=r.createElement("script"),we(b),Ta(b,"link",g),r.head.appendChild(b),i.instance=b);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+i.type+'". this is a bug in React.')}else i.type==="stylesheet"&&(i.state.loading&ts)===wh&&(g=i.instance,i.state.loading|=ts,N1(g,u.precedence,r));return i.instance}function N1(r,i,u){for(var g=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=g.length?g[g.length-1]:null,E=b,D=0;D<g.length;D++){var U=g[D];if(U.dataset.precedence===i)E=U;else if(E!==b)break}E?E.parentNode.insertBefore(r,E.nextSibling):(i=u.nodeType===9?u.head:u,i.insertBefore(r,i.firstChild))}function Jb(r,i){r.crossOrigin==null&&(r.crossOrigin=i.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=i.referrerPolicy),r.title==null&&(r.title=i.title)}function z1(r,i){r.crossOrigin==null&&(r.crossOrigin=i.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=i.referrerPolicy),r.integrity==null&&(r.integrity=i.integrity)}function e4(r,i,u){if(yS===null){var g=new Map,b=yS=new Map;b.set(u,g)}else b=yS,g=b.get(u),g||(g=new Map,b.set(u,g));if(g.has(r))return g;for(g.set(r,null),u=u.getElementsByTagName(r),b=0;b<u.length;b++){var E=u[b];if(!(E[Jp]||E[Ga]||r==="link"&&E.getAttribute("rel")==="stylesheet")&&E.namespaceURI!==$s){var D=E.getAttribute(i)||"";D=r+D;var U=g.get(D);U?U.push(E):g.set(D,[E])}}return g}function sf(r,i,u){r=r.ownerDocument||r,r.head.insertBefore(u,i==="title"?r.querySelector("head > title"):null)}function L1(r,i,u){var g=!u.ancestorInfo.containerTagInScope;if(u.context===zg||i.itemProp!=null)return!g||i.itemProp==null||r!=="meta"&&r!=="title"&&r!=="style"&&r!=="link"&&r!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",r,r),!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href===""){g&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError){if(i.rel==="stylesheet"&&typeof i.precedence=="string"){r=i.href;var b=i.onError,E=i.disabled;u=[],i.onLoad&&u.push("`onLoad`"),b&&u.push("`onError`"),E!=null&&u.push("`disabled`"),b=Ln(u,"and"),b+=u.length===1?" prop":" props",E=u.length===1?"an "+b:"the "+b,u.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',r,E,b)}g&&(typeof i.rel!="string"||typeof i.href!="string"||i.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(i.onError||i.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(i.rel){case"stylesheet":return r=i.precedence,i=i.disabled,typeof r!="string"&&g&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof r=="string"&&i==null;default:return!0}case"script":if(r=i.async&&typeof i.async!="function"&&typeof i.async!="symbol",!r||i.onLoad||i.onError||!i.src||typeof i.src!="string"){g&&(r?i.onLoad||i.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":g&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",r)}return!1}function t4(r){return!(r.type==="stylesheet"&&(r.state.loading&KN)===wh)}function x6(){}function S6(r,i,u){if(r5===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var g=r5;if(i.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(i.state.loading&ts)===wh){if(i.instance===null){var b=ll(u.href),E=r.querySelector(Hd(b));if(E){r=E._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(g.count++,g=jp.bind(g),r.then(g,g)),i.state.loading|=ts,i.instance=E,we(E);return}E=r.ownerDocument||r,u=Zb(u),(b=ns.get(b))&&Jb(u,b),E=E.createElement("link"),we(E);var D=E;D._p=new Promise(function(U,te){D.onload=U,D.onerror=te}),Ta(E,"link",u),i.instance=E}g.stylesheets===null&&(g.stylesheets=new Map),g.stylesheets.set(i,r),(r=i.state.preload)&&(i.state.loading&KN)===wh&&(g.count++,i=jp.bind(g),r.addEventListener("load",i),r.addEventListener("error",i))}}function E6(){if(r5===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var r=r5;return r.stylesheets&&r.count===0&&I1(r,r.stylesheets),0<r.count?function(i){var u=setTimeout(function(){if(r.stylesheets&&I1(r,r.stylesheets),r.unsuspend){var g=r.unsuspend;r.unsuspend=null,g()}},6e4);return r.unsuspend=i,function(){r.unsuspend=null,clearTimeout(u)}}:null}function jp(){if(this.count--,this.count===0){if(this.stylesheets)I1(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}function I1(r,i){r.stylesheets=null,r.unsuspend!==null&&(r.count++,vS=new Map,i.forEach(B1,r),vS=null,jp.call(r))}function B1(r,i){if(!(i.state.loading&ts)){var u=vS.get(r);if(u)var g=u.get(Lw);else{u=new Map,vS.set(r,u);for(var b=r.querySelectorAll("link[data-precedence],style[data-precedence]"),E=0;E<b.length;E++){var D=b[E];(D.nodeName==="LINK"||D.getAttribute("media")!=="not all")&&(u.set(D.dataset.precedence,D),g=D)}g&&u.set(Lw,g)}b=i.instance,D=b.getAttribute("data-precedence"),E=u.get(D)||g,E===g&&u.set(Lw,b),u.set(D,b),this.count++,g=jp.bind(this),b.addEventListener("load",g),b.addEventListener("error",g),E?E.parentNode.insertBefore(b,E.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(b,r.firstChild)),i.state.loading|=ts}}function T6(r,i,u,g,b,E,D,U){for(this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Th,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=$n(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$n(0),this.hiddenUpdates=$n(null),this.identifierPrefix=g,this.onUncaughtError=b,this.onCaughtError=E,this.onRecoverableError=D,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=U,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,r=this.pendingUpdatersLaneMap=[],i=0;31>i;i++)r.push(new Set);this._debugRootType=u?"hydrateRoot()":"createRoot()"}function n4(r,i,u,g,b,E,D,U,te,oe,Be,je){return r=new T6(r,i,u,D,U,te,oe,je),i=Qoe,E===!0&&(i|=Ii|js),Ro&&(i|=ai),E=T(3,null,null,i),r.current=E,E.stateNode=r,i=Uv(),bo(i),r.pooledCache=i,bo(i),E.memoizedState={element:g,isDehydrated:u,cache:i},Cu(E),r}function ar(r){return r?(r=t0,r):t0}function Hp(r,i,u,g,b,E){if(La&&typeof La.onScheduleFiberRoot=="function")try{La.onScheduleFiberRoot(ff,g,u)}catch(D){Xr||(Xr=!0,console.error("React instrumentation encountered an error: %s",D))}vt!==null&&typeof vt.markRenderScheduled=="function"&&vt.markRenderScheduled(i),b=ar(b),g.context===null?g.context=b:g.pendingContext=b,jl&&Ia!==null&&!nz&&(nz=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
809
809
 
810
- Check the render method of %s.`,Z(Ia)||"Unknown")),g=Go(i),g.payload={element:u},E=E===void 0?null:E,E!==null&&(typeof E!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",E),g.callback=E),u=Fo(r,g,i),u!==null&&(wn(u,r,i),Hc(u,r,i))}function w6(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var u=r.retryLane;r.retryLane=u!==0&&u<i?u:i}}function P1(r,i){w6(r,i),(r=r.alternate)&&w6(r,i)}function A6(r){if(r.tag===13){var i=vi(r,67108864);i!==null&&wn(i,r,67108864),P1(r,67108864)}}function kT(){return Ia}function DT(){for(var r=new Map,i=1,u=0;31>u;u++){var g=Jt(i);r.set(i,g),i*=2}return r}function V1(r,i,u,g){var b=Ie.T;Ie.T=null;var E=Hn.p;try{Hn.p=eo,qp(r,i,u,g)}finally{Hn.p=E,Ie.T=b}}function qd(r,i,u,g){var b=Ie.T;Ie.T=null;var E=Hn.p;try{Hn.p=$l,qp(r,i,u,g)}finally{Hn.p=E,Ie.T=b}}function qp(r,i,u,g){if(xS){var b=Gd(g);if(b===null)Qi(r,i,g,SS,u),sl(r,g);else if(_T(b,r,i,u,g))g.stopPropagation();else if(sl(r,g),i&4&&-1<Rle.indexOf(r)){for(;b!==null;){var E=On(b);if(E!==null)switch(E.tag){case 3:if(E=E.stateNode,E.current.memoizedState.isDehydrated){var D=bt(E.pendingLanes);if(D!==0){var U=E;for(U.pendingLanes|=2,U.entangledLanes|=2;D;){var te=1<<31-wa(D);U.entanglements[1]|=te,D&=~te}Ao(E),(Wn&(ao|Fs))===dl&&(aS=za()+zN,Pu(0))}}break;case 13:U=vi(E,2),U!==null&&wn(U,E,2),tf(),P1(E,2)}if(E=Gd(g),E===null&&Qi(r,i,g,SS,u),E===b)break;b=E}b!==null&&g.stopPropagation()}else Qi(r,i,g,null,u)}}function Gd(r){return r=$o(r),Gp(r)}function Gp(r){if(SS=null,r=zn(r),r!==null){var i=N(r);if(i===null)r=null;else{var u=i.tag;if(u===13){if(r=P(i),r!==null)return r;r=null}else if(u===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null)}}return SS=r,null}function Yu(r){switch(r){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 eo;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 $l;case"message":switch(k6()){case Kp:return eo;case s4:return $l;case Xd:case u4:return Vs;case c4:return Q1;default:return Vs}default:return Vs}}function sl(r,i){switch(r){case"focusin":case"focusout":f0=null;break;case"dragenter":case"dragleave":d0=null;break;case"mouseover":case"mouseout":p0=null;break;case"pointerover":case"pointerout":i5.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":o5.delete(i.pointerId)}}function zs(r,i,u,g,b,E){return r===null||r.nativeEvent!==E?(r={blockedOn:i,domEventName:u,eventSystemFlags:g,nativeEvent:E,targetContainers:[b]},i!==null&&(i=On(i),i!==null&&A6(i)),r):(r.eventSystemFlags|=g,i=r.targetContainers,b!==null&&i.indexOf(b)===-1&&i.push(b),r)}function _T(r,i,u,g,b){switch(i){case"focusin":return f0=zs(f0,r,i,u,g,b),!0;case"dragenter":return d0=zs(d0,r,i,u,g,b),!0;case"mouseover":return p0=zs(p0,r,i,u,g,b),!0;case"pointerover":var E=b.pointerId;return i5.set(E,zs(i5.get(E)||null,r,i,u,g,b)),!0;case"gotpointercapture":return E=b.pointerId,o5.set(E,zs(o5.get(E)||null,r,i,u,g,b)),!0}return!1}function r4(r){var i=zn(r.target);if(i!==null){var u=N(i);if(u!==null){if(i=u.tag,i===13){if(i=P(u),i!==null){r.blockedOn=i,Lt(r.priority,function(){if(u.tag===13){var g=Wi(u);g=rt(g);var b=vi(u,g);b!==null&&wn(b,u,g),P1(u,g)}});return}}else if(i===3&&u.stateNode.current.memoizedState.isDehydrated){r.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Fp(r){if(r.blockedOn!==null)return!1;for(var i=r.targetContainers;0<i.length;){var u=Gd(r.nativeEvent);if(u===null){u=r.nativeEvent;var g=new u.constructor(u.type,u),b=g;O!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),O=b,u.target.dispatchEvent(g),O===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),O=null}else return i=On(u),i!==null&&A6(i),r.blockedOn=u,!1;i.shift()}return!0}function a4(r,i,u){Fp(r)&&u.delete(i)}function C6(){Iw=!1,f0!==null&&Fp(f0)&&(f0=null),d0!==null&&Fp(d0)&&(d0=null),p0!==null&&Fp(p0)&&(p0=null),i5.forEach(a4),o5.forEach(a4)}function U1(r,i){r.blockedOn===i&&(r.blockedOn=null,Iw||(Iw=!0,Ur.unstable_scheduleCallback(Ur.unstable_NormalPriority,C6)))}function $1(r){ES!==r&&(ES=r,Ur.unstable_scheduleCallback(Ur.unstable_NormalPriority,function(){ES===r&&(ES=null);for(var i=0;i<r.length;i+=3){var u=r[i],g=r[i+1],b=r[i+2];if(typeof g!="function"){if(Gp(g||u)===null)continue;break}var E=On(u);E!==null&&(r.splice(i,3),i-=3,u={pending:!0,data:b,method:u.method,action:g},Object.freeze(u),Jm(E,u,g,b))}}))}function Fd(r){function i(te){return U1(te,r)}f0!==null&&U1(f0,r),d0!==null&&U1(d0,r),p0!==null&&U1(p0,r),i5.forEach(i),o5.forEach(i);for(var u=0;u<h0.length;u++){var g=h0[u];g.blockedOn===r&&(g.blockedOn=null)}for(;0<h0.length&&(u=h0[0],u.blockedOn===null);)r4(u),u.blockedOn===null&&h0.shift();if(u=(r.ownerDocument||r).$$reactFormReplay,u!=null)for(g=0;g<u.length;g+=3){var b=u[g],E=u[g+1],D=b[Li]||null;if(typeof E=="function")D||$1(u);else if(D){var U=null;if(E&&E.hasAttribute("formAction")){if(b=E,D=E[Li]||null)U=D.formAction;else if(Gp(b)!==null)continue}else U=D.action;typeof U=="function"?u[g+1]=U:(u.splice(g,3),g-=3),$1(u)}}}function j1(r){this._internalRoot=r}function H1(r){this._internalRoot=r}function q1(r){r[Zu]&&(r._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Ur=KD(),i4=Af(),NT=_7(),tn=Object.assign,zT=Symbol.for("react.element"),Ls=Symbol.for("react.transitional.element"),cn=Symbol.for("react.portal"),Xu=Symbol.for("react.fragment"),uf=Symbol.for("react.strict_mode"),Yp=Symbol.for("react.profiler"),O6=Symbol.for("react.provider"),Xp=Symbol.for("react.consumer"),zi=Symbol.for("react.context"),Wu=Symbol.for("react.forward_ref"),Qu=Symbol.for("react.suspense"),G1=Symbol.for("react.suspense_list"),F1=Symbol.for("react.memo"),Ji=Symbol.for("react.lazy"),Y1=Symbol.for("react.activity"),R6=Symbol.for("react.memo_cache_sentinel"),Wp=Symbol.iterator,ir=Symbol.for("react.client.reference"),pa=Array.isArray,Ie=i4.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Hn=NT.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,o4=Object.freeze({pending:!1,data:null,method:null,action:null}),Qp=[],Yd=[],Pl=-1,Is=ue(null),cf=ue(null),Vl=ue(null),X1=ue(null),Ul=Object.prototype.hasOwnProperty,l4=Ur.unstable_scheduleCallback,M6=Ur.unstable_cancelCallback,LT=Ur.unstable_shouldYield,IT=Ur.unstable_requestPaint,za=Ur.unstable_now,k6=Ur.unstable_getCurrentPriorityLevel,Kp=Ur.unstable_ImmediatePriority,s4=Ur.unstable_UserBlockingPriority,Xd=Ur.unstable_NormalPriority,u4=Ur.unstable_LowPriority,c4=Ur.unstable_IdlePriority,ul=Ur.log,f4=Ur.unstable_setDisableYieldValue,ff=null,La=null,vt=null,Xr=!1,Ro=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",wa=Math.clz32?Math.clz32:Nt,Bs=Math.log,BT=Math.LN2,W1=256,Ps=4194304,eo=2,$l=8,Vs=32,Q1=268435456,Ku=Math.random().toString(36).slice(2),Ga="__reactFiber$"+Ku,Li="__reactProps$"+Ku,Zu="__reactContainer$"+Ku,K1="__reactEvents$"+Ku,Wd="__reactListeners$"+Ku,Zp="__reactHandles$"+Ku,d4="__reactResources$"+Ku,Jp="__reactMarker$"+Ku,df=new Set,cl={},Z1={},J1={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},p4=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]*$"),eg={},eh={},Qd=0,h4,D6,m4,Kd,_6,N6,z6;Lr.__reactDisabledLog=!0;var Zd,th,nh=!1,g4=new(typeof WeakMap=="function"?WeakMap:Map),Ia=null,jl=!1,L6=/[\n"\\]/g,y4=!1,v4=!1,b4=!1,tg=!1,x4=!1,rh=!1,I6=["value","defaultValue"],B6=!1,ng=/["'&<>\n\t]|^\s|\s$/,S4="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),ah="applet caption html table td th marquee object template foreignObject desc title".split(" "),E4=ah.concat(["button"]),P6="dd dt li option optgroup p rp rt".split(" "),rg={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},fl={},Hl={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},Us=/([A-Z])/g,Jd=/^ms-/,ih=/^(?:webkit|moz|o)[A-Z]/,Ju=/^-ms-/,PT=/-(.)/g,T4=/;\s*$/,ql={},w4={},A4=!1,oh=!1,C4=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(" ")),ag="http://www.w3.org/1998/Math/MathML",$s="http://www.w3.org/2000/svg",ig=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"]]),lh={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},e0={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},ec={},og=RegExp("^(aria)-[: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]*$"),V6=RegExp("^(aria)[A-Z][: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]*$"),U6=!1,Aa={},l=/^on./,c=/^on[^A-Z]/,h=RegExp("^(aria)-[: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]*$"),v=RegExp("^(aria)[A-Z][: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]*$"),A=/^[\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,O=null,j=null,J=null,de=!1,ke=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xe=!1;if(ke)try{var Ze={};Object.defineProperty(Ze,"passive",{get:function(){Xe=!0}}),window.addEventListener("test",Ze,Ze),window.removeEventListener("test",Ze,Ze)}catch{Xe=!1}var _e=null,Pe=null,Vt=null,_t={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qn=Da(_t),Re=tn({},_t,{view:0,detail:0}),Ee=Da(Re),De,We,Tt,gn=tn({},Re,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$a,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Tt&&(Tt&&r.type==="mousemove"?(De=r.screenX-Tt.screenX,We=r.screenY-Tt.screenY):We=De=0,Tt=r),De)},movementY:function(r){return"movementY"in r?r.movementY:We}}),kt=Da(gn),jt=tn({},gn,{dataTransfer:0}),Ca=Da(jt),Pn=tn({},Re,{relatedTarget:0}),Gl=Da(Pn),VT=tn({},_t,{animationName:0,elapsedTime:0,pseudoElement:0}),woe=Da(VT),Aoe=tn({},_t,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),Coe=Da(Aoe),Ooe=tn({},_t,{data:0}),m_=Da(Ooe),Roe=m_,Moe={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},koe={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"},Doe={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},_oe=tn({},Re,{key:function(r){if(r.key){var i=Moe[r.key]||r.key;if(i!=="Unidentified")return i}return r.type==="keypress"?(r=Nc(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?koe[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$a,charCode:function(r){return r.type==="keypress"?Nc(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Nc(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),Noe=Da(_oe),zoe=tn({},gn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),g_=Da(zoe),Loe=tn({},Re,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$a}),Ioe=Da(Loe),Boe=tn({},_t,{propertyName:0,elapsedTime:0,pseudoElement:0}),Poe=Da(Boe),Voe=tn({},gn,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),Uoe=Da(Voe),$oe=tn({},_t,{newState:0,oldState:0}),joe=Da($oe),Hoe=[9,13,27,32],y_=229,UT=ke&&"CompositionEvent"in window,O4=null;ke&&"documentMode"in document&&(O4=document.documentMode);var qoe=ke&&"TextEvent"in window&&!O4,v_=ke&&(!UT||O4&&8<O4&&11>=O4),b_=32,x_=String.fromCharCode(b_),S_=!1,lg=!1,Goe={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},R4=null,M4=null,E_=!1;ke&&(E_=Ov("input")&&(!document.documentMode||9<document.documentMode));var to=typeof Object.is=="function"?Object.is:wT,Foe=ke&&"documentMode"in document&&11>=document.documentMode,sg=null,$T=null,k4=null,jT=!1,ug={animationend:zc("Animation","AnimationEnd"),animationiteration:zc("Animation","AnimationIteration"),animationstart:zc("Animation","AnimationStart"),transitionrun:zc("Transition","TransitionRun"),transitionstart:zc("Transition","TransitionStart"),transitioncancel:zc("Transition","TransitionCancel"),transitionend:zc("Transition","TransitionEnd")},HT={},T_={};ke&&(T_=document.createElement("div").style,"AnimationEvent"in window||(delete ug.animationend.animation,delete ug.animationiteration.animation,delete ug.animationstart.animation),"TransitionEvent"in window||delete ug.transitionend.transition);var w_=Lc("animationend"),A_=Lc("animationiteration"),C_=Lc("animationstart"),Yoe=Lc("transitionrun"),Xoe=Lc("transitionstart"),Woe=Lc("transitioncancel"),O_=Lc("transitionend"),R_=new Map,qT="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(" ");qT.push("scrollEnd");var GT=new WeakMap,$6=1,pf=2,Fl=[],cg=0,FT=0,t0={};Object.freeze(t0);var Yl=null,fg=null,Cr=0,Qoe=1,ai=2,Ii=8,js=16,M_=64,k_=!1;try{var D_=Object.preventExtensions({})}catch{k_=!0}var dg=[],pg=0,j6=null,H6=0,Xl=[],Wl=0,sh=null,hf=1,mf="",no=null,ia=null,Vn=!1,gf=!1,Ql=null,uh=null,tc=!1,YT=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),__=0;if(typeof performance=="object"&&typeof performance.now=="function")var Koe=performance,N_=function(){return Koe.now()};else{var Zoe=Date;N_=function(){return Zoe.now()}}var XT=ue(null),WT=ue(null),z_={},q6=null,hg=null,mg=!1,Joe=typeof AbortController<"u"?AbortController:function(){var r=[],i=this.signal={aborted:!1,addEventListener:function(u,g){r.push(g)}};this.abort=function(){i.aborted=!0,r.forEach(function(u){return u()})}},ele=Ur.unstable_scheduleCallback,tle=Ur.unstable_NormalPriority,Ba={$$typeof:zi,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},gg=Ur.unstable_now,L_=-0,G6=-0,Mo=-1.1,ch=-0,F6=!1,Y6=!1,D4=null,QT=0,fh=0,yg=null,I_=Ie.S;Ie.S=function(r,i){typeof i=="object"&&i!==null&&typeof i.then=="function"&&Xx(r,i),I_!==null&&I_(r,i)};var dh=ue(null),Hs={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},_4=[],N4=[],z4=[],L4=[],I4=[],B4=[],ph=new Set;Hs.recordUnsafeLifecycleWarnings=function(r,i){ph.has(r.type)||(typeof i.componentWillMount=="function"&&i.componentWillMount.__suppressDeprecationWarning!==!0&&_4.push(r),r.mode&Ii&&typeof i.UNSAFE_componentWillMount=="function"&&N4.push(r),typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&z4.push(r),r.mode&Ii&&typeof i.UNSAFE_componentWillReceiveProps=="function"&&L4.push(r),typeof i.componentWillUpdate=="function"&&i.componentWillUpdate.__suppressDeprecationWarning!==!0&&I4.push(r),r.mode&Ii&&typeof i.UNSAFE_componentWillUpdate=="function"&&B4.push(r))},Hs.flushPendingUnsafeLifecycleWarnings=function(){var r=new Set;0<_4.length&&(_4.forEach(function(U){r.add(Z(U)||"Component"),ph.add(U.type)}),_4=[]);var i=new Set;0<N4.length&&(N4.forEach(function(U){i.add(Z(U)||"Component"),ph.add(U.type)}),N4=[]);var u=new Set;0<z4.length&&(z4.forEach(function(U){u.add(Z(U)||"Component"),ph.add(U.type)}),z4=[]);var g=new Set;0<L4.length&&(L4.forEach(function(U){g.add(Z(U)||"Component"),ph.add(U.type)}),L4=[]);var b=new Set;0<I4.length&&(I4.forEach(function(U){b.add(Z(U)||"Component"),ph.add(U.type)}),I4=[]);var E=new Set;if(0<B4.length&&(B4.forEach(function(U){E.add(Z(U)||"Component"),ph.add(U.type)}),B4=[]),0<i.size){var D=w(i);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
810
+ Check the render method of %s.`,Z(Ia)||"Unknown")),g=Go(i),g.payload={element:u},E=E===void 0?null:E,E!==null&&(typeof E!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",E),g.callback=E),u=Fo(r,g,i),u!==null&&(wn(u,r,i),Hc(u,r,i))}function w6(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var u=r.retryLane;r.retryLane=u!==0&&u<i?u:i}}function P1(r,i){w6(r,i),(r=r.alternate)&&w6(r,i)}function A6(r){if(r.tag===13){var i=vi(r,67108864);i!==null&&wn(i,r,67108864),P1(r,67108864)}}function kT(){return Ia}function DT(){for(var r=new Map,i=1,u=0;31>u;u++){var g=Jt(i);r.set(i,g),i*=2}return r}function V1(r,i,u,g){var b=Ie.T;Ie.T=null;var E=Hn.p;try{Hn.p=eo,qp(r,i,u,g)}finally{Hn.p=E,Ie.T=b}}function qd(r,i,u,g){var b=Ie.T;Ie.T=null;var E=Hn.p;try{Hn.p=$l,qp(r,i,u,g)}finally{Hn.p=E,Ie.T=b}}function qp(r,i,u,g){if(xS){var b=Gd(g);if(b===null)Qi(r,i,g,SS,u),sl(r,g);else if(_T(b,r,i,u,g))g.stopPropagation();else if(sl(r,g),i&4&&-1<Rle.indexOf(r)){for(;b!==null;){var E=On(b);if(E!==null)switch(E.tag){case 3:if(E=E.stateNode,E.current.memoizedState.isDehydrated){var D=bt(E.pendingLanes);if(D!==0){var U=E;for(U.pendingLanes|=2,U.entangledLanes|=2;D;){var te=1<<31-wa(D);U.entanglements[1]|=te,D&=~te}Ao(E),(Wn&(ao|Fs))===dl&&(aS=za()+zN,Pu(0))}}break;case 13:U=vi(E,2),U!==null&&wn(U,E,2),tf(),P1(E,2)}if(E=Gd(g),E===null&&Qi(r,i,g,SS,u),E===b)break;b=E}b!==null&&g.stopPropagation()}else Qi(r,i,g,null,u)}}function Gd(r){return r=$o(r),Gp(r)}function Gp(r){if(SS=null,r=zn(r),r!==null){var i=N(r);if(i===null)r=null;else{var u=i.tag;if(u===13){if(r=P(i),r!==null)return r;r=null}else if(u===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null)}}return SS=r,null}function Yu(r){switch(r){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 eo;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 $l;case"message":switch(k6()){case Kp:return eo;case s4:return $l;case Xd:case u4:return Vs;case c4:return Q1;default:return Vs}default:return Vs}}function sl(r,i){switch(r){case"focusin":case"focusout":f0=null;break;case"dragenter":case"dragleave":d0=null;break;case"mouseover":case"mouseout":p0=null;break;case"pointerover":case"pointerout":i5.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":o5.delete(i.pointerId)}}function zs(r,i,u,g,b,E){return r===null||r.nativeEvent!==E?(r={blockedOn:i,domEventName:u,eventSystemFlags:g,nativeEvent:E,targetContainers:[b]},i!==null&&(i=On(i),i!==null&&A6(i)),r):(r.eventSystemFlags|=g,i=r.targetContainers,b!==null&&i.indexOf(b)===-1&&i.push(b),r)}function _T(r,i,u,g,b){switch(i){case"focusin":return f0=zs(f0,r,i,u,g,b),!0;case"dragenter":return d0=zs(d0,r,i,u,g,b),!0;case"mouseover":return p0=zs(p0,r,i,u,g,b),!0;case"pointerover":var E=b.pointerId;return i5.set(E,zs(i5.get(E)||null,r,i,u,g,b)),!0;case"gotpointercapture":return E=b.pointerId,o5.set(E,zs(o5.get(E)||null,r,i,u,g,b)),!0}return!1}function r4(r){var i=zn(r.target);if(i!==null){var u=N(i);if(u!==null){if(i=u.tag,i===13){if(i=P(u),i!==null){r.blockedOn=i,Lt(r.priority,function(){if(u.tag===13){var g=Wi(u);g=rt(g);var b=vi(u,g);b!==null&&wn(b,u,g),P1(u,g)}});return}}else if(i===3&&u.stateNode.current.memoizedState.isDehydrated){r.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Fp(r){if(r.blockedOn!==null)return!1;for(var i=r.targetContainers;0<i.length;){var u=Gd(r.nativeEvent);if(u===null){u=r.nativeEvent;var g=new u.constructor(u.type,u),b=g;O!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),O=b,u.target.dispatchEvent(g),O===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),O=null}else return i=On(u),i!==null&&A6(i),r.blockedOn=u,!1;i.shift()}return!0}function a4(r,i,u){Fp(r)&&u.delete(i)}function C6(){Iw=!1,f0!==null&&Fp(f0)&&(f0=null),d0!==null&&Fp(d0)&&(d0=null),p0!==null&&Fp(p0)&&(p0=null),i5.forEach(a4),o5.forEach(a4)}function U1(r,i){r.blockedOn===i&&(r.blockedOn=null,Iw||(Iw=!0,Ur.unstable_scheduleCallback(Ur.unstable_NormalPriority,C6)))}function $1(r){ES!==r&&(ES=r,Ur.unstable_scheduleCallback(Ur.unstable_NormalPriority,function(){ES===r&&(ES=null);for(var i=0;i<r.length;i+=3){var u=r[i],g=r[i+1],b=r[i+2];if(typeof g!="function"){if(Gp(g||u)===null)continue;break}var E=On(u);E!==null&&(r.splice(i,3),i-=3,u={pending:!0,data:b,method:u.method,action:g},Object.freeze(u),Jm(E,u,g,b))}}))}function Fd(r){function i(te){return U1(te,r)}f0!==null&&U1(f0,r),d0!==null&&U1(d0,r),p0!==null&&U1(p0,r),i5.forEach(i),o5.forEach(i);for(var u=0;u<h0.length;u++){var g=h0[u];g.blockedOn===r&&(g.blockedOn=null)}for(;0<h0.length&&(u=h0[0],u.blockedOn===null);)r4(u),u.blockedOn===null&&h0.shift();if(u=(r.ownerDocument||r).$$reactFormReplay,u!=null)for(g=0;g<u.length;g+=3){var b=u[g],E=u[g+1],D=b[Li]||null;if(typeof E=="function")D||$1(u);else if(D){var U=null;if(E&&E.hasAttribute("formAction")){if(b=E,D=E[Li]||null)U=D.formAction;else if(Gp(b)!==null)continue}else U=D.action;typeof U=="function"?u[g+1]=U:(u.splice(g,3),g-=3),$1(u)}}}function j1(r){this._internalRoot=r}function H1(r){this._internalRoot=r}function q1(r){r[Zu]&&(r._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Ur=KD(),i4=Af(),NT=_7(),tn=Object.assign,zT=Symbol.for("react.element"),Ls=Symbol.for("react.transitional.element"),cn=Symbol.for("react.portal"),Xu=Symbol.for("react.fragment"),uf=Symbol.for("react.strict_mode"),Yp=Symbol.for("react.profiler"),O6=Symbol.for("react.provider"),Xp=Symbol.for("react.consumer"),zi=Symbol.for("react.context"),Wu=Symbol.for("react.forward_ref"),Qu=Symbol.for("react.suspense"),G1=Symbol.for("react.suspense_list"),F1=Symbol.for("react.memo"),Ji=Symbol.for("react.lazy"),Y1=Symbol.for("react.activity"),R6=Symbol.for("react.memo_cache_sentinel"),Wp=Symbol.iterator,ir=Symbol.for("react.client.reference"),pa=Array.isArray,Ie=i4.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Hn=NT.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,o4=Object.freeze({pending:!1,data:null,method:null,action:null}),Qp=[],Yd=[],Pl=-1,Is=ue(null),cf=ue(null),Vl=ue(null),X1=ue(null),Ul=Object.prototype.hasOwnProperty,l4=Ur.unstable_scheduleCallback,M6=Ur.unstable_cancelCallback,LT=Ur.unstable_shouldYield,IT=Ur.unstable_requestPaint,za=Ur.unstable_now,k6=Ur.unstable_getCurrentPriorityLevel,Kp=Ur.unstable_ImmediatePriority,s4=Ur.unstable_UserBlockingPriority,Xd=Ur.unstable_NormalPriority,u4=Ur.unstable_LowPriority,c4=Ur.unstable_IdlePriority,ul=Ur.log,f4=Ur.unstable_setDisableYieldValue,ff=null,La=null,vt=null,Xr=!1,Ro=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",wa=Math.clz32?Math.clz32:Nt,Bs=Math.log,BT=Math.LN2,W1=256,Ps=4194304,eo=2,$l=8,Vs=32,Q1=268435456,Ku=Math.random().toString(36).slice(2),Ga="__reactFiber$"+Ku,Li="__reactProps$"+Ku,Zu="__reactContainer$"+Ku,K1="__reactEvents$"+Ku,Wd="__reactListeners$"+Ku,Zp="__reactHandles$"+Ku,d4="__reactResources$"+Ku,Jp="__reactMarker$"+Ku,df=new Set,cl={},Z1={},J1={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},p4=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]*$"),eg={},eh={},Qd=0,h4,D6,m4,Kd,_6,N6,z6;Lr.__reactDisabledLog=!0;var Zd,th,nh=!1,g4=new(typeof WeakMap=="function"?WeakMap:Map),Ia=null,jl=!1,L6=/[\n"\\]/g,y4=!1,v4=!1,b4=!1,tg=!1,x4=!1,rh=!1,I6=["value","defaultValue"],B6=!1,ng=/["'&<>\n\t]|^\s|\s$/,S4="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),ah="applet caption html table td th marquee object template foreignObject desc title".split(" "),E4=ah.concat(["button"]),P6="dd dt li option optgroup p rp rt".split(" "),rg={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},fl={},Hl={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},Us=/([A-Z])/g,Jd=/^ms-/,ih=/^(?:webkit|moz|o)[A-Z]/,Ju=/^-ms-/,PT=/-(.)/g,T4=/;\s*$/,ql={},w4={},A4=!1,oh=!1,C4=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(" ")),ag="http://www.w3.org/1998/Math/MathML",$s="http://www.w3.org/2000/svg",ig=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"]]),lh={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},e0={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},ec={},og=RegExp("^(aria)-[: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]*$"),V6=RegExp("^(aria)[A-Z][: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]*$"),U6=!1,Aa={},l=/^on./,c=/^on[^A-Z]/,h=RegExp("^(aria)-[: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]*$"),v=RegExp("^(aria)[A-Z][: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]*$"),A=/^[\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,O=null,j=null,J=null,de=!1,ke=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xe=!1;if(ke)try{var Ze={};Object.defineProperty(Ze,"passive",{get:function(){Xe=!0}}),window.addEventListener("test",Ze,Ze),window.removeEventListener("test",Ze,Ze)}catch{Xe=!1}var _e=null,Pe=null,Vt=null,_t={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qn=Da(_t),Re=tn({},_t,{view:0,detail:0}),Ee=Da(Re),De,We,Tt,gn=tn({},Re,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$a,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Tt&&(Tt&&r.type==="mousemove"?(De=r.screenX-Tt.screenX,We=r.screenY-Tt.screenY):We=De=0,Tt=r),De)},movementY:function(r){return"movementY"in r?r.movementY:We}}),kt=Da(gn),jt=tn({},gn,{dataTransfer:0}),Ca=Da(jt),Pn=tn({},Re,{relatedTarget:0}),Gl=Da(Pn),VT=tn({},_t,{animationName:0,elapsedTime:0,pseudoElement:0}),woe=Da(VT),Aoe=tn({},_t,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),Coe=Da(Aoe),Ooe=tn({},_t,{data:0}),m_=Da(Ooe),Roe=m_,Moe={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},koe={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"},Doe={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},_oe=tn({},Re,{key:function(r){if(r.key){var i=Moe[r.key]||r.key;if(i!=="Unidentified")return i}return r.type==="keypress"?(r=Nc(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?koe[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$a,charCode:function(r){return r.type==="keypress"?Nc(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Nc(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),Noe=Da(_oe),zoe=tn({},gn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),g_=Da(zoe),Loe=tn({},Re,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$a}),Ioe=Da(Loe),Boe=tn({},_t,{propertyName:0,elapsedTime:0,pseudoElement:0}),Poe=Da(Boe),Voe=tn({},gn,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),Uoe=Da(Voe),$oe=tn({},_t,{newState:0,oldState:0}),joe=Da($oe),Hoe=[9,13,27,32],y_=229,UT=ke&&"CompositionEvent"in window,O4=null;ke&&"documentMode"in document&&(O4=document.documentMode);var qoe=ke&&"TextEvent"in window&&!O4,v_=ke&&(!UT||O4&&8<O4&&11>=O4),b_=32,x_=String.fromCharCode(b_),S_=!1,lg=!1,Goe={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},R4=null,M4=null,E_=!1;ke&&(E_=Ov("input")&&(!document.documentMode||9<document.documentMode));var to=typeof Object.is=="function"?Object.is:wT,Foe=ke&&"documentMode"in document&&11>=document.documentMode,sg=null,$T=null,k4=null,jT=!1,ug={animationend:zc("Animation","AnimationEnd"),animationiteration:zc("Animation","AnimationIteration"),animationstart:zc("Animation","AnimationStart"),transitionrun:zc("Transition","TransitionRun"),transitionstart:zc("Transition","TransitionStart"),transitioncancel:zc("Transition","TransitionCancel"),transitionend:zc("Transition","TransitionEnd")},HT={},T_={};ke&&(T_=document.createElement("div").style,"AnimationEvent"in window||(delete ug.animationend.animation,delete ug.animationiteration.animation,delete ug.animationstart.animation),"TransitionEvent"in window||delete ug.transitionend.transition);var w_=Lc("animationend"),A_=Lc("animationiteration"),C_=Lc("animationstart"),Yoe=Lc("transitionrun"),Xoe=Lc("transitionstart"),Woe=Lc("transitioncancel"),O_=Lc("transitionend"),R_=new Map,qT="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(" ");qT.push("scrollEnd");var GT=new WeakMap,$6=1,pf=2,Fl=[],cg=0,FT=0,t0={};Object.freeze(t0);var Yl=null,fg=null,Or=0,Qoe=1,ai=2,Ii=8,js=16,M_=64,k_=!1;try{var D_=Object.preventExtensions({})}catch{k_=!0}var dg=[],pg=0,j6=null,H6=0,Xl=[],Wl=0,sh=null,hf=1,mf="",no=null,ia=null,Vn=!1,gf=!1,Ql=null,uh=null,tc=!1,YT=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),__=0;if(typeof performance=="object"&&typeof performance.now=="function")var Koe=performance,N_=function(){return Koe.now()};else{var Zoe=Date;N_=function(){return Zoe.now()}}var XT=ue(null),WT=ue(null),z_={},q6=null,hg=null,mg=!1,Joe=typeof AbortController<"u"?AbortController:function(){var r=[],i=this.signal={aborted:!1,addEventListener:function(u,g){r.push(g)}};this.abort=function(){i.aborted=!0,r.forEach(function(u){return u()})}},ele=Ur.unstable_scheduleCallback,tle=Ur.unstable_NormalPriority,Ba={$$typeof:zi,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},gg=Ur.unstable_now,L_=-0,G6=-0,Mo=-1.1,ch=-0,F6=!1,Y6=!1,D4=null,QT=0,fh=0,yg=null,I_=Ie.S;Ie.S=function(r,i){typeof i=="object"&&i!==null&&typeof i.then=="function"&&Xx(r,i),I_!==null&&I_(r,i)};var dh=ue(null),Hs={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},_4=[],N4=[],z4=[],L4=[],I4=[],B4=[],ph=new Set;Hs.recordUnsafeLifecycleWarnings=function(r,i){ph.has(r.type)||(typeof i.componentWillMount=="function"&&i.componentWillMount.__suppressDeprecationWarning!==!0&&_4.push(r),r.mode&Ii&&typeof i.UNSAFE_componentWillMount=="function"&&N4.push(r),typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&z4.push(r),r.mode&Ii&&typeof i.UNSAFE_componentWillReceiveProps=="function"&&L4.push(r),typeof i.componentWillUpdate=="function"&&i.componentWillUpdate.__suppressDeprecationWarning!==!0&&I4.push(r),r.mode&Ii&&typeof i.UNSAFE_componentWillUpdate=="function"&&B4.push(r))},Hs.flushPendingUnsafeLifecycleWarnings=function(){var r=new Set;0<_4.length&&(_4.forEach(function(U){r.add(Z(U)||"Component"),ph.add(U.type)}),_4=[]);var i=new Set;0<N4.length&&(N4.forEach(function(U){i.add(Z(U)||"Component"),ph.add(U.type)}),N4=[]);var u=new Set;0<z4.length&&(z4.forEach(function(U){u.add(Z(U)||"Component"),ph.add(U.type)}),z4=[]);var g=new Set;0<L4.length&&(L4.forEach(function(U){g.add(Z(U)||"Component"),ph.add(U.type)}),L4=[]);var b=new Set;0<I4.length&&(I4.forEach(function(U){b.add(Z(U)||"Component"),ph.add(U.type)}),I4=[]);var E=new Set;if(0<B4.length&&(B4.forEach(function(U){E.add(Z(U)||"Component"),ph.add(U.type)}),B4=[]),0<i.size){var D=w(i);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
811
811
 
812
812
  * Move code with side effects to componentDidMount, and set initial state in the constructor.
813
813
 
@@ -853,7 +853,7 @@ Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map=="func
853
853
  You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}dv.createRoot=function(r,i){if(!_(r))throw Error("Target container is not a DOM element.");q1(r);var u=!1,g="",b=Qx,E=a1,D=i1,U=null;return i!=null&&(i.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof i=="object"&&i!==null&&i.$$typeof===Ls&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
854
854
 
855
855
  let root = createRoot(domContainer);
856
- root.render(<App />);`),i.unstable_strictMode===!0&&(u=!0),i.identifierPrefix!==void 0&&(g=i.identifierPrefix),i.onUncaughtError!==void 0&&(b=i.onUncaughtError),i.onCaughtError!==void 0&&(E=i.onCaughtError),i.onRecoverableError!==void 0&&(D=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(U=i.unstable_transitionCallbacks)),i=n4(r,1,!1,null,null,u,g,b,E,D,U,null),r[Zu]=i.current,Pp(r),new j1(i)},dv.hydrateRoot=function(r,i,u){if(!_(r))throw Error("Target container is not a DOM element.");q1(r),i===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var g=!1,b="",E=Qx,D=a1,U=i1,te=null,oe=null;return u!=null&&(u.unstable_strictMode===!0&&(g=!0),u.identifierPrefix!==void 0&&(b=u.identifierPrefix),u.onUncaughtError!==void 0&&(E=u.onUncaughtError),u.onCaughtError!==void 0&&(D=u.onCaughtError),u.onRecoverableError!==void 0&&(U=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(te=u.unstable_transitionCallbacks),u.formState!==void 0&&(oe=u.formState)),i=n4(r,1,!0,i,u??null,g,b,E,D,U,te,oe),i.context=ar(null),u=i.current,g=Wi(u),g=rt(g),b=Go(g),b.callback=null,Fo(u,b,g),u=g,i.current.lanes=u,En(i,u),Ao(i),r[Zu]=i.current,Pp(r),new H1(i)},dv.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),dv}var e_;function lie(){if(e_)return kx.exports;e_=1;var e={};function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(e.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}}return e.NODE_ENV==="production"?(t(),kx.exports=iie()):kx.exports=oie(),kx.exports}var sie=lie();class iT{constructor(){Q(this,"items");this.items=new Array}push(t){this.items.push(t)}pop(){return this.items.pop()}peek(){return this.items[this.items.length-1]}removeLast(t,n=1){const a=this.items.lastIndexOf(t);return a!==-1?(this.items.splice(a,n),!0):!1}isEmpty(){return this.items.length===0}size(){return this.items.length}clear(){this.items.length=0}}class uie{constructor(t){Q(this,"id");Q(this,"instructionContext");Q(this,"plotContext");Q(this,"scopeContext");Q(this,"figure");this.figure=t,this.id=t.id,this.plotContext=new iT,this.scopeContext=new iT;const n=t.state;if(n.empty||n.size!==1){this.instructionContext=t,this.plotContext.push(t),this.scopeContext.push(pn.SUBPLOT);return}this.scopeContext.push(pn.TRACE);const a=t.activeSubplot.state;if(a.empty||a.size!==1){this.instructionContext=t.activeSubplot,this.plotContext.push(t.activeSubplot),this.plotContext.push(t.activeSubplot.activeTrace);return}this.instructionContext=t.activeSubplot.activeTrace,this.plotContext.push(t.activeSubplot.activeTrace)}dispose(){this.plotContext.clear(),this.scopeContext.clear()}get active(){return this.plotContext.peek()}get state(){return this.active.state}toggleScope(t){this.scopeContext.clear(),this.scopeContext.push(t),li.setScope(t)}get scope(){return this.scopeContext.peek()}isMovable(t){return this.active.isMovable(t)}moveOnce(t){this.active.moveOnce(t)}moveToExtreme(t){this.active.moveToExtreme(t)}moveToIndex(t,n){this.active.moveToIndex(t,n)}moveToPoint(t,n){this.active.moveToPoint(t,n)}stepTrace(t){if(this.plotContext.size()>1){this.plotContext.pop();const n=this.active,a=n.activeTrace;if(!a)return;const o=a.getCurrentXValue();n.moveOnce(t);const s=n.activeTrace;if(this.plotContext.push(s),s.getId()===a.getId()){s.notifyOutOfBounds(),n.notifyOutOfBounds();return}if(s.moveToXValue(o),s.state.empty)s.notifyStateUpdate();else{const f=n.getRow()+1,d=n.getSize(),m={...s.state,isLayerSwitch:!0,index:f,size:d};s.notifyObserversWithState(m)}}else{const n=this.figure.subplots[0][0];this.active.notifyOutOfBounds(),n.notifyOutOfBounds()}}enterSubplot(){if(this.active.state.type==="figure"){const n=this.active;this.plotContext.push(n.activeSubplot);const a=n.activeSubplot.activeTrace;a.resetToInitialEntry(),this.plotContext.push(a),this.toggleScope(pn.TRACE)}}exitSubplot(){this.plotContext.size()>2&&(this.plotContext.pop(),this.plotContext.pop(),this.active.notifyStateUpdate(),this.toggleScope(pn.SUBPLOT))}getInstruction(t){const n=this.instructionContext.state;if(n.empty)return`No ${n.type} info available`;const a=t?"Click to activate.":xe.EMPTY;switch(n.type){case"figure":return`This is a maidr figure containing ${n.size} subplots. ${a} Use arrow keys to navigate subplots and press 'ENTER'.`;case"subplot":return`This is a maidr plot containing ${n.size} layers, and this is layer 1 of ${n.size}: ${n.trace.traceType} plot. ${a} Use Arrows to navigate data points. Toggle B for Braille, T for Text, S for Sonification, and R for Review mode.`;case"trace":{let o=n.plotType;n.plotType==="multiline"&&n.groupCount===1&&(o="single line");const s=o==="multiline"&&n.groupCount?` with ${n.groupCount} groups`:"";return`This is a maidr plot of type: ${o}${s}. ${a} Use Arrows to navigate data points. Toggle B for Braille, T for Text, S for Sonification, and R for Review mode.`}}}}var Gr=(e=>(e.VERTICAL="vert",e.HORIZONTAL="horz",e))(Gr||{}),Rr=(e=>(e.BAR="bar",e.BOX="box",e.CANDLESTICK="candlestick",e.DODGED="dodged_bar",e.HEATMAP="heat",e.HISTOGRAM="hist",e.LINE="line",e.NORMALIZED="stacked_normalized_bar",e.SCATTER="point",e.SMOOTH="smooth",e.STACKED="stacked_bar",e))(Rr||{});function cie(e){return e!==null&&typeof e=="object"&&"x"in e}function fie(e){return typeof e=="string"||typeof e=="number"}function die(e){return e!==null&&typeof e=="object"&&"x"in e}class t_{computeIndexAndSegment(t,n,a,o){return a===Gr.HORIZONTAL?{pointIndex:t,segmentType:o[n]}:{pointIndex:n,segmentType:o[t]}}computeVisualCoordinates(t,n,a){return a===Gr.HORIZONTAL?{row:t,col:n}:{row:n,col:t}}extractXValueFromPoints(t,n,a){if(Array.isArray(t)&&t.length===1&&Array.isArray(t[0])){const o=t[0][a];return this.extractXFromPoint(o)}if(Array.isArray(t)&&Array.isArray(t[n])&&t[n][a]){const o=t[n][a];return this.extractXFromPoint(o)}return null}extractXValueFromValues(t,n,a){if(this.isValidPosition(t,n,a)){const o=t[n][a];return this.extractXFromValue(o)}return null}moveToXValueInPoints(t,n,a){if(Array.isArray(t)&&t.length===1&&Array.isArray(t[0])){const m=this.findPointIndexByX(t[0],n);if(m!==-1)return a(0,m),!0;{const y=this.findNearestPointIndexByX(t[0],n);if(y!==-1){const x=yu(t[0][y]);if(typeof n=="number"&&typeof x=="number")return a(0,y),!0;if(typeof n=="string"&&typeof x=="string")return a(0,y),!0}}}let o=-1,s=-1,f=Number.POSITIVE_INFINITY,d=null;if(Array.isArray(t))for(let m=0;m<t.length;m++){const y=t[m];if(Array.isArray(y)){const x=this.findPointIndexByX(y,n);if(x!==-1)return a(m,x),!0;const S=this.findNearestPointIndexByX(y,n);if(S!==-1){const w=yu(y[S]);let T=Number.POSITIVE_INFINITY;typeof n=="number"&&typeof w=="number"?(T=Math.abs(w-n),T<f&&(f=T,o=m,s=S,d="numeric")):typeof n=="string"&&typeof w=="string"?o===-1&&(o=m,s=S,d="categorical"):o===-1&&(o=m,s=S,d="generic")}}}if(o!==-1&&s!==-1){const m=t[o];if(Array.isArray(m)&&yu(m[s]),d!==null)return a(o,s),!0}return!1}moveToXValueInValues(t,n,a){let o=-1,s=-1,f=Number.POSITIVE_INFINITY,d=null;for(let m=0;m<t.length;m++)for(let y=0;y<t[m].length;y++){const x=t[m][y],S=this.extractXFromValue(x);if(S===n)return a(m,y),!0;if(typeof n=="number"&&typeof S=="number"){const w=Math.abs(S-n);w<f&&(f=w,o=m,s=y,d="numeric")}else typeof n=="string"&&typeof S=="string"?o===-1&&(o=m,s=y,d="categorical"):o===-1&&(o=m,s=y,d="generic")}return o!==-1&&s!==-1?(this.extractXFromValue(t[o][s]),a(o,s),!0):!1}extractXFromPoint(t){return die(t)?t.x:null}extractXFromValue(t){return cie(t)?t.x:fie(t)?t:null}findPointIndexByX(t,n){return t.findIndex(a=>a.x===n)}isValidPosition(t,n,a){return n>=0&&n<t.length&&a>=0&&a<t[n].length}findNearestPointIndexByX(t,n){if(typeof n=="number"){let a=-1,o=Number.POSITIVE_INFINITY;for(let s=0;s<t.length;s++){const f=yu(t[s]);if(typeof f=="number"){const d=Math.abs(f-n);d<o&&(o=d,a=s)}else if(typeof f=="string"){const d=Number(f);if(!Number.isNaN(d)){const m=Math.abs(d-n);m<o&&(o=m,a=s)}}}if(a!==-1)return yu(t[a]),a}else if(typeof n=="string"){for(let o=0;o<t.length;o++)if(yu(t[o])===n)return o;const a=Number(n);if(!Number.isNaN(a)){let o=-1,s=Number.POSITIVE_INFINITY;for(let f=0;f<t.length;f++){const d=yu(t[f]);if(typeof d=="number"){const m=Math.abs(d-a);m<s&&(s=m,o=f)}else if(typeof d=="string"){const m=Number(d);if(!Number.isNaN(m)){const y=Math.abs(m-a);y<s&&(s=y,o=f)}}}if(o!==-1)return yu(t[o]),o}for(let o=0;o<t.length;o++)if(typeof yu(t[o])=="string")return o}return t.length>0?(yu(t[0]),0):-1}dispose(){}}function pie(e){return e&&typeof e=="object"&&"x"in e&&"y"in e}function hie(e){return e&&typeof e=="object"&&typeof e.x=="number"&&typeof e.y=="number"}function mie(e){return e&&typeof e=="object"&&"xMin"in e&&"xMax"in e}function gie(e){return e&&typeof e=="object"&&"x"in e&&"y"in e}function yie(e){return e&&typeof e=="object"&&typeof e.x=="number"&&typeof e.y=="number"}function vie(e){return e&&typeof e=="object"&&"value"in e}function yu(e){return e?pie(e)||hie(e)||gie(e)||yie(e)||mie(e)?e.x:vie(e)?e.value:null:null}const bie="unavailable",xie="X",Sie="Y",Eie="unavailable";class oT{constructor(){Q(this,"observers");Q(this,"isInitialEntry");Q(this,"isOutOfBounds");Q(this,"row");Q(this,"col");this.observers=new Array,this.isInitialEntry=!0,this.isOutOfBounds=!1,this.row=0,this.col=0}dispose(){for(const t of this.observers)this.removeObserver(t);this.observers.length=0}moveOnce(t){if(this.isInitialEntry){this.handleInitialEntry(),this.notifyStateUpdate();return}if(!this.isMovable(t)){this.notifyOutOfBounds();return}switch(t){case"UPWARD":this.row+=1;break;case"DOWNWARD":this.row-=1;break;case"FORWARD":this.col+=1;break;case"BACKWARD":this.col-=1;break}this.notifyStateUpdate()}getSafeIndices(){var o;const t=this.values,n=this.row>=0&&this.row<t.length?this.row:0,a=this.col>=0&&this.col<(((o=t[n])==null?void 0:o.length)||0)?this.col:0;return{row:n,col:a}}moveToExtreme(t){var n;switch(this.isInitialEntry&&this.handleInitialEntry(),t){case"UPWARD":this.row=this.values.length-1;break;case"DOWNWARD":this.row=0;break;case"FORWARD":{const{row:a}=this.getSafeIndices();this.col=(n=this.values[a])!=null&&n.length?this.values[a].length-1:0;break}case"BACKWARD":this.col=0;break}this.notifyStateUpdate()}moveToIndex(t,n){this.isMovable([t,n])&&(this.row=t,this.col=n,this.isInitialEntry=!1,this.notifyStateUpdate())}isMovable(t){var n,a;if(Array.isArray(t)){const[o,s]=t,{row:f}=this.getSafeIndices();return o>=0&&o<this.values.length&&s>=0&&s<(((n=this.values[f])==null?void 0:n.length)||0)}switch(t){case"UPWARD":return this.row<this.values.length-1;case"DOWNWARD":return this.row>0;case"FORWARD":{const{row:o}=this.getSafeIndices();return this.col<(((a=this.values[o])==null?void 0:a.length)||0)-1}case"BACKWARD":return this.col>0}}handleInitialEntry(){var n;this.isInitialEntry=!1,this.row=Math.max(0,Math.min(this.row,this.values.length-1));const{row:t}=this.getSafeIndices();this.col=Math.max(0,Math.min(this.col,(((n=this.values[t])==null?void 0:n.length)||0)-1))}ensureInitialized(){this.isInitialEntry&&(this.handleInitialEntry(),this.notifyStateUpdate())}resetToInitialEntry(){this.isInitialEntry=!0,this.row=0,this.col=0}addObserver(t){this.observers.push(t)}removeObserver(t){this.observers=this.observers.filter(n=>n!==t)}notifyStateUpdate(){const t=this.state;for(const n of this.observers)n.update(t)}notifyOutOfBounds(){this.isOutOfBounds=!0,this.notifyStateUpdate(),this.isOutOfBounds=!1}notifyObserversWithState(t){for(const n of this.observers)n.update(t)}moveToPoint(t,n){}}class H0 extends oT{constructor(n){var a,o,s;super();Q(this,"id");Q(this,"type");Q(this,"title");Q(this,"xAxis");Q(this,"yAxis");Q(this,"fill");Q(this,"navigationService");this.navigationService=new t_,this.id=n.id,this.type=n.type,this.title=n.title??bie,this.xAxis=((a=n.axes)==null?void 0:a.x)??xie,this.yAxis=((o=n.axes)==null?void 0:o.y)??Sie,this.fill=((s=n.axes)==null?void 0:s.fill)??Eie}dispose(){this.values.length=0,this.highlightValues&&(this.highlightValues.forEach(n=>n.forEach(a=>{(Array.isArray(a)?a:[a]).forEach(s=>s.remove())})),this.highlightValues.length=0),super.dispose()}get state(){var n;if(this.isOutOfBounds){const a=this.values,o=this.row,s=this.col;return{empty:!0,type:"trace",traceType:this.type,audio:{size:((n=a[o])==null?void 0:n.length)||0,index:s}}}return{empty:!1,type:"trace",traceType:this.type,plotType:this.type,title:this.title,xAxis:this.xAxis,yAxis:this.yAxis,fill:this.fill,hasMultiPoints:this.hasMultiPoints(),audio:this.audio(),braille:this.braille(),text:this.text(),autoplay:this.autoplay,highlight:this.highlight()}}highlight(){var n;if(this.highlightValues===null||this.isInitialEntry){const a=this.values,o=this.row,s=this.col;return{empty:!0,type:"trace",traceType:this.type,audio:{size:((n=a[o])==null?void 0:n.length)||0,index:s}}}return{empty:!1,elements:this.highlightValues[this.row][this.col]}}getAudioGroupIndex(){return this.values&&this.values.length>1?{groupIndex:this.row}:{}}get autoplay(){var o;const{row:n}=this.getSafeIndices(),a=((o=this.values[n])==null?void 0:o.length)||0;return{UPWARD:this.values.length,DOWNWARD:this.values.length,FORWARD:a,BACKWARD:a}}hasMultiPoints(){return!1}getExtremaTargets(){return[]}navigateToExtrema(n){if(this.supportsExtrema)throw new Error("Extrema navigation not implemented by this plot type")}finalizeExtremaNavigation(){this.isInitialEntry&&(this.isInitialEntry=!1),this.updateVisualPointPosition(),this.notifyStateUpdate()}updateVisualPointPosition(){}supportsExtremaNavigation(){return this.supportsExtrema}getCurrentXValue(){if(this.hasPointsArray()){const n=this.getPointsArray();if(this.isValidPointsArray(n))return this.navigationService.extractXValueFromPoints(n,this.row,this.col)}if(this.hasValuesArray()){const n=this.values;if(this.isValidValuesArray(n))return this.navigationService.extractXValueFromValues(n,this.row,this.col)}return null}moveToXValue(n){if(this.hasPointsArray()){const a=this.getPointsArray();if(this.isValidPointsArray(a))return this.navigationService.moveToXValueInPoints(a,n,this.moveToIndex.bind(this))}if(this.hasValuesArray()){const a=this.values;if(this.isValidValuesArray(a))return this.navigationService.moveToXValueInValues(a,n,this.moveToIndex.bind(this))}return!1}hasPointsArray(){return"points"in this&&this.points!==void 0}hasValuesArray(){return"values"in this&&this.values!==void 0}getPointsArray(){return this.points}isValidPointsArray(n){return Array.isArray(n)&&n.length>0}isValidValuesArray(n){return Array.isArray(n)&&n.length>0}getId(){return this.id}moveToPoint(n,a){const o=this.findNearestPoint(n,a);if(o&&this.isPointInBounds(n,a,o)){if(this.row===o.row&&this.col===o.col)return;this.moveToIndex(o.row,o.col)}}isPointInBounds(n,a,{element:o,row:s,col:f}){const d=o.getBoundingClientRect();let m=12;return(this.type===Rr.HEATMAP||this.type===Rr.BAR||this.type===Rr.STACKED||this.type===Rr.HISTOGRAM)&&(m=0),n>=d.x-m&&n<=d.x+d.width+m&&a>=d.y-m&&a<=d.y+d.height+m}}class mi{constructor(){}static safeMin(t){return t.length===0?1/0:Math.min(...t)}static safeMax(t){return t.length===0?-1/0:Math.max(...t)}static minFrom2D(t){const n=t.flat();return this.safeMin(n)}static maxFrom2D(t){const n=t.flat();return this.safeMax(n)}static minMax(t){if(t.length===0)return{min:1/0,max:-1/0};let n=t[0],a=t[0];for(let o=1;o<t.length;o++){const s=t[o];s<n&&(n=s),s>a&&(a=s)}return{min:n,max:a}}static minMaxFrom2D(t){const n=t.flat();return this.minMax(n)}}class _x{constructor(){}static parse(t){const n=t.replace(/\s/g,"").toLowerCase();if(/^#(?:[a-f0-9]{3}){1,2}$/.test(n)){let o=n.substring(1).split("");return o.length===3&&(o=[o[0],o[0],o[1],o[1],o[2],o[2]]),{r:Number.parseInt(o[0]+o[1],16),g:Number.parseInt(o[2]+o[3],16),b:Number.parseInt(o[4]+o[5],16)}}const a=n.match(/^rgba?\((\d+),(\d+),(\d+)(?:,\d*(?:\.\d*)?)?\)$/);return a?{r:Number.parseInt(a[1],10),g:Number.parseInt(a[2],10),b:Number.parseInt(a[3],10)}:null}static invert(t){return{r:255-t.r,g:255-t.g,b:255-t.b}}static getContrastRatio(t,n){const a=this.calculateLuminance(t),o=this.calculateLuminance(n);return(Math.max(a,o)+.05)/(Math.min(a,o)+.05)}static calculateLuminance(t){const[n,a,o]=[t.r,t.g,t.b].map(s=>{const f=s/255;return f<=.03928?f/12.92:((f+.055)/1.055)**2.4});return .2126*n+.7152*a+.0722*o}static rgbToString(t){return`rgb(${t.r}, ${t.g}, ${t.b})`}}class on{constructor(){}static async toBase64(t){try{const n=new XMLSerializer().serializeToString(t).replace(/>\s+</g,"> <").replace(/\s{2,}/g," ").trim(),o=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(n).replace(/'/g,"%27").replace(/"/g,"%22")}`,s=await new Promise((m,y)=>{const x=new Image;x.onload=()=>m(x),x.onerror=()=>y(new Error("Failed to load SVG image")),x.src=o}),f=document.createElement("canvas");[f.width,f.height]=[s.naturalWidth,s.naturalHeight];const d=f.getContext("2d");return d?(d.drawImage(s,0,0),f.toDataURL("image/jpeg",.92)):(console.error("Error converting SVG to Base 64: Canvas context unavailable"),"")}catch(n){return console.error("Error converting SVG to Base 64:",n instanceof Error?n.message:n),""}}static selectAllElements(t,n=!0){return Array.from(document.querySelectorAll(t)).map(a=>{if(!n)return a;const o=a.cloneNode(!0);return o.setAttribute(xe.VISIBILITY,xe.HIDDEN),a.insertAdjacentElement(xe.AFTER_END,o),o})}static selectElement(t,n=!0){const a=document.querySelector(t);if(!n)return a;const o=a==null?void 0:a.cloneNode(!0);return o==null||o.setAttribute(xe.VISIBILITY,xe.HIDDEN),a==null||a.insertAdjacentElement(xe.AFTER_END,o),o}static createEmptyElement(t="rect"){const n=document.createElementNS(this.SVG_NAMESPACE,t);return n.setAttribute(xe.FILL,xe.TRANSPARENT),n.setAttribute(xe.STROKE,xe.TRANSPARENT),n.setAttribute(xe.VISIBILITY,xe.HIDDEN),n}static createCircleElement(t,n,a){var y;const o=window.getComputedStyle(a),s=o.stroke||o.fill,f=o.strokeWidth||"2",d=Number.parseFloat(f)*2,m=document.createElementNS(this.SVG_NAMESPACE,xe.CIRCLE);return m.setAttribute(xe.CIRCLE_X,String(t)),m.setAttribute(xe.CIRCLE_Y,String(n)),m.setAttribute(xe.RADIUS,String(d)),m.setAttribute(xe.FILL,s),m.setAttribute(xe.STROKE,s),m.setAttribute(xe.STROKE_WIDTH,f),m.setAttribute(xe.VISIBILITY,xe.HIDDEN),(y=a.parentElement)==null||y.insertAdjacentElement(xe.AFTER_END,m),m}static createLineElement(t,n){const o=t.getBBox();let s,f,d,m;switch(n){case"top":[s,f,d,m]=[o.x,o.y,o.x+o.width,o.y];break;case"bottom":[s,f,d,m]=[o.x,o.y+o.height,o.x+o.width,o.y+o.height];break;case"left":[s,f,d,m]=[o.x,o.y,o.x,o.y+o.height];break;case"right":[s,f,d,m]=[o.x+o.width,o.y,o.x+o.width,o.y+o.height];break}const y=window.getComputedStyle(t),x=document.createElementNS(this.SVG_NAMESPACE,xe.LINE);return x.setAttribute(xe.X1,String(s)),x.setAttribute(xe.Y1,String(f)),x.setAttribute(xe.X2,String(d)),x.setAttribute(xe.Y2,String(m)),x.setAttribute(xe.STROKE,y.stroke),x.setAttribute(xe.STROKE_WIDTH,y.strokeWidth||"2"),x.setAttribute(xe.VISIBILITY,xe.HIDDEN),t.insertAdjacentElement(xe.AFTER_END,x),x}static createHighlightElement(t,n){const a=t.cloneNode(!0),o=t.tagName.toLowerCase(),s=o===xe.POLYLINE||o===xe.LINE,f=s?window.getComputedStyle(t).getPropertyValue(xe.STROKE):window.getComputedStyle(t).getPropertyValue(xe.FILL),d=this.getHighlightColor(f,n);if(a.setAttribute(xe.VISIBILITY,xe.VISIBLE),a.setAttribute(xe.STROKE,d),a.setAttribute(xe.FILL,d),a.style.fill=d,a.style.stroke=d,s){const m=window.getComputedStyle(a).getPropertyValue(xe.STROKE_WIDTH);a.setAttribute(xe.STROKE_WIDTH,`${m+2}`)}return t.insertAdjacentElement(xe.AFTER_END,a),a}static getHighlightColor(t,n){const a=_x.parse(t);if(!a||!(_x.getContrastRatio(a,xe.HIGHLIGHT_BASE_COLOR)<xe.HIGHLIGHT_CONTRAST_RATIO))return n;const f={...a};return a.r===a.g&&a.g===a.b?(f.r=Math.min(xe.HIGHLIGHT_MAX_COLOR,Math.floor(a.r*xe.HIGHLIGHT_COLOR_RATIO)),f.g=Math.min(xe.HIGHLIGHT_MAX_COLOR,Math.floor(a.g*xe.HIGHLIGHT_COLOR_RATIO)),f.b=Math.min(xe.HIGHLIGHT_MAX_COLOR,Math.floor(a.b*xe.HIGHLIGHT_COLOR_RATIO))):a.r>=a.g&&a.r>=a.b?f.r=Math.min(xe.HIGHLIGHT_MAX_COLOR,Math.floor(a.r*xe.HIGHLIGHT_COLOR_RATIO)):a.g>=a.r&&a.g>=a.b?f.g=Math.min(xe.HIGHLIGHT_MAX_COLOR,Math.floor(a.g*xe.HIGHLIGHT_COLOR_RATIO)):f.b=Math.min(xe.HIGHLIGHT_MAX_COLOR,Math.floor(a.b*xe.HIGHLIGHT_COLOR_RATIO)),_x.rgbToString(f)}static getContrastingColorForElement(t){const n=window.getComputedStyle(t).fill||"rgb(255,255,255)",a=_x.parse(n);return a?(.2126*a.r+.7152*a.g+.0722*a.b)/255>.5?"#000":"#fff":"#000"}static setSubplotHighlightCss(t,n){t.style.outline=`4px solid ${n}`,t.style.outlineOffset="3px",t.style.borderRadius="3px",t.style.overflow="visible"}static removeSubplotHighlightCss(t){t.style.removeProperty("outline"),t.style.removeProperty("outline-offset"),t.style.removeProperty("border-radius"),t.style.removeProperty("overflow")}static setSubplotHighlightSvgWithAdaptiveColor(t,n,a){const o=t.querySelector("rect, path");let s="";if(o){s=window.getComputedStyle(o).getPropertyValue("fill"),(!s||s==="none"||s==="transparent"||s==="rgba(0, 0, 0, 0)")&&(a?s=window.getComputedStyle(a).getPropertyValue("fill"):s=n);const f=this.getHighlightColor(s,n);o.setAttribute("stroke",f),o.setAttribute("stroke-width","4")}}static removeSubplotHighlightSvg(t){const n=t.querySelector("rect, path");n&&(n.removeAttribute("stroke"),n.removeAttribute("stroke-width"))}}Q(on,"SVG_NAMESPACE","http://www.w3.org/2000/svg");class lT extends H0{constructor(n,a){super(n);Q(this,"points");Q(this,"barValues");Q(this,"highlightValues");Q(this,"highlightCenters");Q(this,"orientation");Q(this,"min");Q(this,"max");Q(this,"supportsExtrema",!0);this.points=a,this.orientation=n.orientation??Gr.VERTICAL,this.barValues=a.map(o=>o.map(s=>this.orientation===Gr.VERTICAL?Number(s.y):Number(s.x))),this.min=this.barValues.map(o=>mi.safeMin(o)),this.max=this.barValues.map(o=>mi.safeMax(o)),this.highlightValues=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters()}dispose(){this.points.length=0,this.min.length=0,this.max.length=0,super.dispose()}get values(){return this.barValues}audio(){const n=this.orientation===Gr.VERTICAL,a=n?this.barValues[this.row].length:this.barValues.length,o=n?this.col:this.row,s=n?this.barValues[this.row][this.col]:this.barValues[this.col][this.row];return{min:mi.safeMin(this.min),max:mi.safeMax(this.max),size:a,index:o,value:s,...this.getAudioGroupIndex()}}braille(){return{empty:!1,id:this.id,values:this.barValues,min:this.min,max:this.max,row:this.row,col:this.col}}text(){const n=this.orientation===Gr.VERTICAL,a=this.points[this.row][this.col],o=n?this.xAxis:this.yAxis,s=n?a.x:a.y,f=n?this.yAxis:this.xAxis,d=n?a.y:a.x;return{main:{label:o,value:s},cross:{label:f,value:d}}}mapToSvgElements(n){if(!n)return null;const a=[on.selectAllElements(n)];if(a.length!==this.points.length)return null;for(let o=0;o<this.points.length;o++)if(a[o].length!==this.points[o].length)return null;return a}mapSvgElementsToCenters(){let n;if(n=this.highlightValues,!n)return null;const a=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const f=n[o][s],d=Array.isArray(f)?f[0]:f,m=d.getBoundingClientRect();a.push({x:m.x+m.width/2,y:m.y+m.height/2,row:o,col:s,element:d})}return a}findNearestPoint(n,a){if(!this.highlightValues)return null;for(let o=0;o<this.highlightValues.length;o++)for(let s=0;s<this.highlightValues[o].length;s++){const f=this.highlightValues[o][s],d=Array.isArray(f)?f[0]:f,m=d.getBoundingClientRect();if(n>=m.x&&n<=m.x+m.width&&a>=m.y&&a<=m.y+m.height)return{element:d,row:o,col:s}}return null}}class Tie extends lT{isPointInBounds(t,n,{element:a,row:o,col:s}){const f=a.getBoundingClientRect();return t>=f.x&&t<=f.x+f.width&&n>=f.y&&n<=f.y+f.height}constructor(t){super(t,[t.data])}getExtremaTargets(){const t=[],n=this.row;if(n<0||n>=this.barValues.length)return t;const a=this.barValues[n];if(!a||a.length===0)return t;const o=this.min[n],s=this.max[n],f=a.indexOf(s),d=a.indexOf(o);return t.push({label:`Max Bar at ${this.getPointLabel(f)}`,value:s,pointIndex:f,segment:"bar",type:"max",navigationType:"point"}),t.push({label:`Min Bar at ${this.getPointLabel(d)}`,value:o,pointIndex:d,segment:"bar",type:"min",navigationType:"point"}),t}navigateToExtrema(t){this.col=t.pointIndex,this.finalizeExtremaNavigation()}getPointLabel(t){if(this.points[this.row]&&this.points[this.row][t]){const n=this.points[this.row][t];return this.orientation===Gr.VERTICAL?`${n.x}`:`${n.y}`}return`Point ${t}`}updateVisualPointPosition(){const{row:t,col:n}=this.getSafeIndices();this.row=t,this.col=n}}const us={LOWER_OUTLIER:"Lower outlier(s)",MIN:"Minimum",Q1:"25%",Q2:"50%",Q3:"75%",MAX:"Maximum",UPPER_OUTLIER:"Upper outlier(s)"};class wie extends H0{constructor(n){super(n);Q(this,"supportsExtrema",!1);Q(this,"points");Q(this,"boxValues");Q(this,"highlightValues");Q(this,"highlightCenters");Q(this,"orientation");Q(this,"sections");Q(this,"min");Q(this,"max");this.points=n.data,this.orientation=n.orientation??Gr.VERTICAL,this.sections=[us.LOWER_OUTLIER,us.MIN,us.Q1,us.Q2,us.Q3,us.MAX,us.UPPER_OUTLIER];const a=[s=>s.lowerOutliers,s=>s.min,s=>s.q1,s=>s.q2,s=>s.q3,s=>s.max,s=>s.upperOutliers];this.orientation===Gr.HORIZONTAL?this.boxValues=this.points.map(s=>a.map(f=>f(s))):this.boxValues=a.map(s=>this.points.map(f=>s(f)));const o=this.boxValues.map(s=>s.flatMap(f=>Array.isArray(f)?f:[f]));this.min=mi.minFrom2D(o),this.max=mi.maxFrom2D(o),this.row=this.boxValues.length-1,this.highlightValues=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters()}dispose(){this.points.length=0,this.sections.length=0,super.dispose()}moveToIndex(n,a){const o=this.orientation===Gr.HORIZONTAL;n=o?n:a,a=o?a:n,super.moveToIndex(n,a)}get values(){return this.boxValues}audio(){const n=this.boxValues[this.row][this.col],a=Array.isArray(n)?n.map(o=>o-this.min):n-this.min;return{min:this.min,max:this.max,value:n,size:this.max-this.min,index:a}}braille(){const n=this.orientation===Gr.HORIZONTAL,a=n?this.row:this.col,o=n?this.col:this.row;return{empty:!1,id:this.id,values:this.points,min:this.min,max:this.max,row:a,col:o}}text(){const n=this.orientation===Gr.HORIZONTAL,a=n?this.points[this.row]:this.points[this.col],o=n?this.yAxis:this.xAxis,s=n?this.sections[this.col]:this.sections[this.row],f=n?this.xAxis:this.yAxis,d=this.boxValues[this.row][this.col];return{main:{label:o,value:a.fill},cross:{label:f,value:d},section:s}}mapToSvgElements(n){if(!n||n.length!==this.points.length)return null;const a=this.orientation===Gr.VERTICAL,o=new Array;if(a)for(let s=0;s<this.sections.length;s++)o.push(Array.from({length:n.length}));return n.forEach((s,f)=>{const d=s.lowerOutliers.flatMap(M=>on.selectAllElements(M)),m=s.upperOutliers.flatMap(M=>on.selectAllElements(M)),y=on.selectElement(s.min)??on.createEmptyElement(),x=on.selectElement(s.max)??on.createEmptyElement(),S=on.selectElement(s.iq)??on.createEmptyElement(),w=on.selectElement(s.q2)??on.createEmptyElement(),[T,C]=a?[on.createLineElement(S,"top"),on.createLineElement(S,"bottom")]:[on.createLineElement(S,"left"),on.createLineElement(S,"right")],R=[d,y,T,w,C,x,m];a?R.forEach((M,_)=>{o[_][f]=M}):o.push(R)}),o}mapSvgElementsToCenters(){let n;if(n=this.highlightValues,!n)return null;const a=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const f=n[o][s],d=Array.isArray(f)?f[0]:f,m=d.getBoundingClientRect();a.push({x:m.x+m.width/2,y:m.y+m.height/2,row:o,col:s,element:d})}return a}findNearestPoint(n,a){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let f=0;f<this.highlightCenters.length;f++){const d=this.highlightCenters[f],m=Math.hypot(d.x-n,d.y-a);m<o&&(o=m,s=f)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}}const Aie="trend",n_=100;class Cie extends H0{constructor(n){super(n);Q(this,"supportsExtrema",!0);Q(this,"candles");Q(this,"candleValues");Q(this,"orientation");Q(this,"sections",["volatility","open","high","low","close"]);Q(this,"currentSegmentType","open");Q(this,"currentPointIndex",0);Q(this,"sortedSegmentsByPoint");Q(this,"segmentPositionMaps");Q(this,"min");Q(this,"max");Q(this,"highlightValues");Q(this,"highlightCenters");Q(this,"navigationService");this.navigationService=new t_;const a=n.data;this.candles=a.map(o=>({...o,volatility:Math.round((o.high-o.low)*n_)/n_,trend:o.close>o.open?"Bull":o.close<o.open?"Bear":"Neutral"})),this.orientation=n.orientation??Gr.VERTICAL,this.candleValues=this.sections.map(o=>this.candles.map(s=>s[o])),this.min=mi.minFrom2D(this.candleValues),this.max=mi.maxFrom2D(this.candleValues),this.sortedSegmentsByPoint=this.precomputeSortedSegments(),this.segmentPositionMaps=this.precomputePositionMaps(),this.currentPointIndex=0,this.currentSegmentType="close",this.orientation===Gr.HORIZONTAL?this.col=0:this.row=0,this.highlightValues=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters()}precomputeSortedSegments(){return this.candles.map(n=>["volatility",...["low","open","close","high"].map(s=>[s,n[s]]).sort((s,f)=>s[1]-f[1]).map(s=>s[0])])}precomputePositionMaps(){return this.sortedSegmentsByPoint.map(n=>{const a=new Map;return n.forEach((o,s)=>{a.set(o,s)}),a})}getSegmentPositionInSortedOrder(n,a){return this.segmentPositionMaps[n].get(a)??0}getSegmentTypeAtSortedPosition(n,a){return this.sortedSegmentsByPoint[n][a]??"open"}updateVisualSegmentPosition(){const a=this.sortedSegmentsByPoint[this.currentPointIndex].indexOf(this.currentSegmentType??"open");this.orientation===Gr.HORIZONTAL?this.col=a:this.row=a}updateVisualPointPosition(){this.orientation===Gr.HORIZONTAL?this.row=this.currentPointIndex:this.col=this.currentPointIndex,this.updateVisualSegmentPosition()}handleInitialEntry(){this.isInitialEntry=!1,this.currentPointIndex=Math.max(0,Math.min(this.currentPointIndex,this.candles.length-1)),this.currentSegmentType="close",this.updateVisualSegmentPosition()}moveOnce(n){if(this.isInitialEntry){this.handleInitialEntry(),this.notifyStateUpdate();return}if(!this.isMovable(n)){this.notifyOutOfBounds();return}switch(n){case"UPWARD":case"DOWNWARD":{const a=this.sortedSegmentsByPoint[this.currentPointIndex],o=a.indexOf(this.currentSegmentType??"open");if(o===-1){this.notifyOutOfBounds();return}const s=n==="UPWARD"?o+1:o-1;if(s>=0&&s<a.length)this.currentSegmentType=a[s],this.updateVisualSegmentPosition();else{this.notifyOutOfBounds();return}break}case"FORWARD":case"BACKWARD":{const a=n==="FORWARD"?this.currentPointIndex+1:this.currentPointIndex-1;if(a>=0&&a<this.candles.length)this.currentPointIndex=a,this.updateVisualPointPosition(),this.updateVisualSegmentPosition();else{this.notifyOutOfBounds();return}break}}this.notifyStateUpdate()}moveToExtreme(n){switch(this.isInitialEntry&&this.handleInitialEntry(),n){case"UPWARD":{const a=this.sortedSegmentsByPoint[this.currentPointIndex];this.currentSegmentType=a[a.length-1],this.updateVisualSegmentPosition();break}case"DOWNWARD":{const a=this.sortedSegmentsByPoint[this.currentPointIndex];this.currentSegmentType=a[0],this.updateVisualSegmentPosition();break}case"FORWARD":{this.currentPointIndex=this.candles.length-1,this.updateVisualPointPosition(),this.updateVisualSegmentPosition();break}case"BACKWARD":{this.currentPointIndex=0,this.updateVisualPointPosition(),this.updateVisualSegmentPosition();break}}this.notifyStateUpdate()}moveToIndex(n,a){this.isInitialEntry&&this.handleInitialEntry();const{pointIndex:o,segmentType:s}=this.navigationService.computeIndexAndSegment(n,a,this.orientation,this.sections);this.currentPointIndex=o,this.currentSegmentType=s,this.row=n,this.col=a,this.updateVisualSegmentPosition(),this.updateVisualPointPosition(),this.notifyStateUpdate()}isMovable(n){if(Array.isArray(n))return super.isMovable(n);if(this.isInitialEntry)return!0;switch(n){case"UPWARD":case"DOWNWARD":{const a=this.sortedSegmentsByPoint[this.currentPointIndex],o=a.indexOf(this.currentSegmentType??"open"),s=n==="UPWARD"?o+1:o-1;return s>=0&&s<a.length}case"FORWARD":case"BACKWARD":{const a=n==="FORWARD"?this.currentPointIndex+1:this.currentPointIndex-1;return a>=0&&a<this.candles.length}}}dispose(){this.navigationService.dispose(),this.candles.length=0,super.dispose()}get values(){return this.candleValues}audio(){let n;return this.currentSegmentType==="volatility"?n=this.candles[this.currentPointIndex].volatility:this.currentSegmentType?n=this.candles[this.currentPointIndex][this.currentSegmentType]:n=this.candles[this.currentPointIndex].open,{min:this.min,max:this.max,size:this.candles.length,index:this.currentPointIndex,value:n,trend:this.candles[this.currentPointIndex].trend}}braille(){const n=this.candles.map(f=>f.trend),a=this.getSegmentPositionInSortedOrder(this.currentPointIndex,this.currentSegmentType??this.sections[0]);this.row=a;const o=this.candleValues.map(f=>Math.min(...f)),s=this.candleValues.map(f=>Math.max(...f));return{empty:!1,id:this.id,values:this.candleValues,min:o,max:s,row:this.row,col:this.col,custom:n}}collectElements(n){if(!n)return[];const a=Array.isArray(n)?n:[n],o=[];for(const s of a)o.push(...on.selectAllElements(s));return o}getElementAt(n,a){return a<n.length?n[a]:null}mapToSvgElements(n){if(!n)return null;if(typeof n=="string"||Array.isArray(n)){const C=Array.isArray(n)?n[0]||"":n,R=on.selectAllElements(C),M=[];for(let _=0;_<this.sections.length;_++){M[_]=[];for(let N=0;N<this.candles.length;N++){const P=N<R.length?N:0;M[_][N]=R[P]}}return M}const a=n,o=this.candles.length,s=this.collectElements(a.body);let f=this.collectElements(a.wickHigh),d=this.collectElements(a.wickLow);if(f.length===0||d.length===0){const C=this.collectElements(a.wick);C.length>0&&(f.length===0&&(f=C),d.length===0&&(d=C))}const m=this.collectElements(a.open),y=this.collectElements(a.close),x=Array.from({length:o},()=>on.createEmptyElement()),S=Array.from({length:o},()=>on.createEmptyElement()),w=Array.from({length:o},()=>on.createEmptyElement());for(let C=0;C<o;C++){let R=this.getElementAt(m,C);if(!R){const _=this.getElementAt(s,C);if(_){const{open:N,close:P}=this.candles[C],B=P>N?"bottom":P<N?"top":"bottom";R=on.createLineElement(_,B)}else R=on.createEmptyElement()}x[C]=R;let M=this.getElementAt(y,C);if(!M){const _=this.getElementAt(s,C);if(_){const{open:N,close:P}=this.candles[C],B=P>N?"top":P<N?"bottom":"top";M=on.createLineElement(_,B)}else M=on.createEmptyElement()}S[C]=M,w[C]=on.createEmptyElement()}const T=Array.from({length:this.sections.length},()=>Array.from({length:o},()=>on.createEmptyElement()));for(let C=0;C<o;C++){const R=this.sortedSegmentsByPoint[C];for(let M=0;M<R.length;M++){const _=R[M];let N;switch(_){case"volatility":{const P=[],B=this.getElementAt(s,C),z=this.getElementAt(f,C)??B,$=this.getElementAt(d,C)??B;z&&P.push(z),B&&P.push(B),$&&P.push($);const X=Array.from(new Set(P));N=X.length>0?X:[on.createEmptyElement()]}break;case"open":N=x[C];break;case"close":N=S[C];break;case"high":N=this.getElementAt(f,C)??this.getElementAt(s,C)??on.createEmptyElement();break;case"low":N=this.getElementAt(d,C)??this.getElementAt(s,C)??on.createEmptyElement();break;default:N=on.createEmptyElement()}T[M][C]=N}}return T}text(){const n=this.candles[this.currentPointIndex];let a;return this.currentSegmentType==="volatility"?a=n.volatility:this.currentSegmentType?a=n[this.currentSegmentType]:a=n.open,{main:{label:this.orientation===Gr.HORIZONTAL?this.yAxis:this.xAxis,value:n.value},cross:{label:this.orientation===Gr.HORIZONTAL?this.xAxis:this.yAxis,value:a},section:this.currentSegmentType??"open",fill:{label:Aie,value:n.trend}}}getCurrentTrend(){return this.candles[this.currentPointIndex].trend}getCurrentXValue(){return this.currentPointIndex>=0&&this.currentPointIndex<this.candles.length?this.candles[this.currentPointIndex].value:null}moveToXValue(n){const a=this.candles.findIndex(o=>o.value===n);return a!==-1?(this.currentPointIndex=a,this.currentSegmentType="close",this.updateVisualPointPosition(),this.updateVisualSegmentPosition(),this.notifyStateUpdate(),!0):!1}getAvailableXValues(){return this.candles.map(n=>n.value)}getExtremaTargets(){const n=[],a=this.currentSegmentType??"open";if(a==="volatility"){const o=this.candles.map((y,x)=>({value:y.volatility,index:x})),s=Math.max(...o.map(y=>y.value)),f=o.filter(y=>y.value===s).map(y=>y.index),d=Math.min(...o.map(y=>y.value)),m=o.filter(y=>y.value===d).map(y=>y.index);f.forEach((y,x)=>{const S=this.candles[y];n.push({label:`Max Volatility at ${S.value}`,value:S.volatility,pointIndex:y,segment:"volatility",type:"max",navigationType:"point"})}),m.forEach((y,x)=>{const S=this.candles[y];n.push({label:`Min Volatility at ${S.value}`,value:S.volatility,pointIndex:y,segment:"volatility",type:"min",navigationType:"point"})})}else{const o=this.candles.map((y,x)=>({value:y[a],index:x,xValue:y.value})),s=Math.max(...o.map(y=>y.value)),f=o.filter(y=>y.value===s).map(y=>y.index),d=Math.min(...o.map(y=>y.value)),m=o.filter(y=>y.value===d).map(y=>y.index);f.forEach((y,x)=>{const S=this.candles[y],w=a.charAt(0).toUpperCase()+a.slice(1);n.push({label:`Max ${w} at ${S.value}`,value:S[a],pointIndex:y,segment:a,type:"max",navigationType:"point"})}),m.forEach((y,x)=>{const S=this.candles[y],w=a.charAt(0).toUpperCase()+a.slice(1);n.push({label:`Min ${w} at ${S.value}`,value:S[a],pointIndex:y,segment:a,type:"min",navigationType:"point"})})}return n}navigateToExtrema(n){this.currentPointIndex=n.pointIndex,this.currentSegmentType=n.segment,this.finalizeExtremaNavigation()}mapSvgElementsToCenters(){let n;if(n=this.highlightValues,!n)return null;const a=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const f=n[o][s],d=Array.isArray(f)?f[0]:f,m=d.getBoundingClientRect();a.push({x:m.x+m.width/2,y:m.y+m.height/2,row:o,col:s,element:d})}return a}findNearestPoint(n,a){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let f=0;f<this.highlightCenters.length;f++){const d=this.highlightCenters[f],m=Math.hypot(d.x-n,d.y-a);m<o&&(o=m,s=f)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}}class Oie extends H0{constructor(n){super(n);Q(this,"supportsExtrema",!1);Q(this,"heatmapValues");Q(this,"highlightValues");Q(this,"highlightCenters");Q(this,"x");Q(this,"y");Q(this,"min");Q(this,"max");const a=n.data;this.x=a.x,this.y=[...a.y].reverse(),this.heatmapValues=[...a.points].reverse();const{min:o,max:s}=mi.minMaxFrom2D(this.heatmapValues);this.min=o,this.max=s,this.highlightValues=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters()}dispose(){this.heatmapValues.length=0,this.x.length=0,this.y.length=0,super.dispose()}get values(){return this.heatmapValues}audio(){return{min:this.min,max:this.max,size:this.heatmapValues.length,index:this.col,value:this.heatmapValues[this.row][this.col]}}braille(){return{empty:!1,id:this.id,values:this.heatmapValues,min:this.min,max:this.max,row:this.row,col:this.col}}text(){return{main:{label:this.xAxis,value:this.x[this.col]},cross:{label:this.yAxis,value:this.y[this.row]},fill:{label:this.fill,value:String(this.heatmapValues[this.row][this.col])}}}mapToSvgElements(n){if(!n)return null;const a=this.heatmapValues.length,o=this.heatmapValues[0].length,s=on.selectAllElements(n);if(s.length===0||s.length!==a*o)return null;const f=new Array;if(s[0]instanceof SVGPathElement)for(let d=0;d<a;d++){const m=a-1-d,y=new Array;for(let x=0;x<o;x++){const S=m*o+x;y.push(s[S])}f.push(y)}else if(s[0]instanceof SVGRectElement)for(let d=0;d<a;d++){const m=new Array;for(let y=0;y<o;y++){const x=y*a+d;m.push(s[x])}f.push(m)}return f}mapSvgElementsToCenters(){let n;if(n=this.highlightValues,!n)return null;const a=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const f=n[o][s],d=Array.isArray(f)?f[0]:f,m=d.getBoundingClientRect();a.push({x:m.x+m.width/2,y:m.y+m.height/2,row:o,col:s,element:d})}return a}findNearestPoint(n,a){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let f=0;f<this.highlightCenters.length;f++){const d=this.highlightCenters[f],m=Math.hypot(d.x-n,d.y-a);m<o&&(o=m,s=f)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}}class Rie extends lT{constructor(t){super(t,[t.data])}text(){const t=this.orientation===Gr.VERTICAL,n=this.points[this.row][this.col],a=t?n.xMin:n.yMin,o=t?n.xMax:n.yMax;return{...super.text(),range:{min:a,max:o}}}}const r_="Group",sT=/[ML]\s*(-?\d+(?:\.\d+)?)\s+(-?\d+(?:\.\d+)?)/g;class a_ extends H0{constructor(n){super(n);Q(this,"supportsExtrema",!0);Q(this,"points");Q(this,"lineValues");Q(this,"highlightValues");Q(this,"highlightCenters");Q(this,"min");Q(this,"max");Q(this,"previousRow",null);this.points=n.data,this.lineValues=this.points.map(a=>a.map(o=>Number(o.y))),this.min=this.lineValues.map(a=>mi.safeMin(a)),this.max=this.lineValues.map(a=>mi.safeMax(a)),this.highlightValues=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters()}dispose(){this.points.length=0,this.min.length=0,this.max.length=0,super.dispose()}get values(){return this.lineValues}audio(){return{min:this.min[this.row],max:this.max[this.row],size:this.points[this.row].length,index:this.col,value:this.points[this.row][this.col].y,...this.getAudioGroupIndex()}}braille(){return{empty:!1,id:this.id,values:this.lineValues,min:this.min,max:this.max,row:this.row,col:this.col}}text(){var s;const n=this.points[this.row][this.col],a=this.findIntersections();let o={};if(a.length>1){let f=a.map(d=>{var y;const m=d.groupIndex;return((y=this.points[m][0])==null?void 0:y.fill)||`l${m+1}`});if(this.previousRow!==null){const d=((s=this.points[this.previousRow][0])==null?void 0:s.fill)||`l${this.previousRow+1}`;f.includes(d)&&(f=[d,...f.filter(m=>m!==d)])}o={fill:{label:r_,value:`intersection at (${f.join(", ")})`}}}else o=n.fill?{fill:{label:r_,value:n.fill}}:{};return{main:{label:this.xAxis,value:this.points[this.row][this.col].x},cross:{label:this.yAxis,value:this.points[this.row][this.col].y},...o}}moveOnce(n){if(this.isInitialEntry){this.handleInitialEntry(),this.previousRow=null,this.notifyStateUpdate();return}if(!this.isMovable(n)){this.notifyOutOfBounds();return}if(this.previousRow=this.row,n==="UPWARD"||n==="DOWNWARD"){const o=this.findLineByXAndYDirection(n),s=this.points[this.row][this.col].x;if(o!==null&&o!==this.row){const f=this.findColumnByXValue(o,s);if(f!==-1){this.row=o,this.col=f;const d=this.findIntersections();if(d.length>1){const y={...super.state,intersections:d};for(const x of this.observers)x.update(y)}else this.notifyStateUpdate();return}else{this.notifyOutOfBounds();return}}else{this.notifyOutOfBounds();return}}switch(n){case"FORWARD":this.col+=1;break;case"BACKWARD":this.col-=1;break}const a=this.findIntersections();if(a.length>1){const s={...super.state,intersections:a};for(const f of this.observers)f.update(s)}else this.notifyStateUpdate()}findIntersections(){const n=this.points[this.row][this.col].x,a=this.points[this.row][this.col].y,o=[];for(let s=0;s<this.points.length;s++){const f=this.points[s].findIndex(d=>d.x===n&&d.y===a);f!==-1&&o.push({min:this.min[s],max:this.max[s],size:this.points[s].length,index:f,value:a,groupIndex:s})}return o}isMovable(n){if(Array.isArray(n)){const[a,o]=n;return a>=0&&a<this.values.length&&o>=0&&o<this.values[a].length}switch(n){case"UPWARD":case"DOWNWARD":{const a=this.findLineByXAndYDirection(n);if(a===null)return!1;const o=this.points[this.row][this.col].x;return this.findColumnByXValue(a,o)!==-1}case"FORWARD":return this.col<this.values[this.row].length-1;case"BACKWARD":return this.col>0}}findLineByXAndYDirection(n){const a=this.points[this.row][this.col].x;let o=null,s=Number.POSITIVE_INFINITY;for(let f=0;f<this.points.length;f++){if(f===this.row)continue;const d=this.points[f].findIndex(S=>S.x===a);if(d===-1)continue;const m=this.points[f][d].y,y=n==="UPWARD"?m>this.points[this.row][this.col].y:m<this.points[this.row][this.col].y,x=Math.abs(m-this.points[this.row][this.col].y);y&&x<s&&(s=x,o=f)}return o}findColumnByXValue(n,a){return this.points[n].findIndex(o=>o.x===a)}mapToSvgElements(n){if(!n||n.length!==this.lineValues.length)return null;const a=[];let o=!0;for(let s=0;s<n.length;s++){const f=on.selectElement(n[s],!1);if(!f){a.push([]);continue}const d=[];if(f instanceof SVGPathElement){const x=f.getAttribute(xe.D)||xe.EMPTY;sT.lastIndex=0;let S=sT.exec(x);for(;S!==null;)d.push({x:Number.parseFloat(S[1]),y:Number.parseFloat(S[2])}),S=sT.exec(x)}else if(f instanceof SVGPolylineElement){const S=(f.getAttribute(xe.POINTS)||xe.EMPTY).split(/\s+/).filter(Boolean);for(const w of S){const[T,C]=w.split(xe.COMMA);d.push({x:Number.parseFloat(T),y:Number.parseFloat(C)})}}if(d.length!==this.lineValues[s].length)if(d.length<this.lineValues[s].length)for(;d.length<this.lineValues[s].length;)d.push({x:Number.NaN,y:Number.NaN});else d.length>this.lineValues[s].length&&(d.length=this.lineValues[s].length);const m=[];let y=!1;for(const x of d){if(Number.isNaN(x.x)||Number.isNaN(x.y)){y=!0;break}m.push(on.createCircleElement(x.x,x.y,f))}if(y){a.push([]);continue}m.length>0&&(o=!1),a.push(m)}return o?null:a}get state(){const n=super.state;if(n.empty)return n;const a=this.points.length>1,o={...n,plotType:a?"multiline":"single line",...a&&{groupCount:this.points.length}},s=this.findIntersections();return s.length>1?{...o,intersections:s}:o}mapSvgElementsToCenters(){let n;if(n=this.highlightValues,!n)return null;const a=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const f=n[o][s],d=Array.isArray(f)?f[0]:f,m=d.getBoundingClientRect();a.push({x:m.x+m.width/2,y:m.y+m.height/2,row:o,col:s,element:d})}return a}findNearestPoint(n,a){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let f=0;f<this.highlightCenters.length;f++){const d=this.highlightCenters[f],m=Math.hypot(d.x-n,d.y-a);m<o&&(o=m,s=f)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}getExtremaTargets(){const n=[],a=this.row;if(a<0||a>=this.lineValues.length)return n;const o=this.lineValues[a];if(!o||o.length===0)return n;const s=this.min[a],f=this.max[a],d=[],m=[];for(let y=0;y<o.length;y++){const x=o[y];x===f&&d.push(y),x===s&&m.push(y)}for(const y of d)n.push({label:`Max point at ${this.getPointLabel(y)}`,value:f,pointIndex:y,segment:"line",type:"max",navigationType:"point"});for(const y of m)n.push({label:`Min point at ${this.getPointLabel(y)}`,value:s,pointIndex:y,segment:"line",type:"min",navigationType:"point"});return n}navigateToExtrema(n){this.col=n.pointIndex,this.finalizeExtremaNavigation()}getPointLabel(n){return this.points[this.row]&&this.points[this.row][n]?`${this.points[this.row][n].x}`:`Point ${n}`}updateVisualPointPosition(){const{row:n,col:a}=this.getSafeIndices();this.row=n,this.col=a}getAvailableXValues(){return this.points[this.row].map(n=>n.x)}moveToXValue(n){return this.isInitialEntry&&this.handleInitialEntry(),super.moveToXValue(n)}}class Mie extends H0{constructor(n){super(n);Q(this,"supportsExtrema",!1);Q(this,"mode");Q(this,"xPoints");Q(this,"yPoints");Q(this,"xValues");Q(this,"yValues");Q(this,"highlightXValues");Q(this,"highlightYValues");Q(this,"minX");Q(this,"maxX");Q(this,"minY");Q(this,"maxY");this.mode="column";const a=n.data,o=[...a].sort((m,y)=>m.x-y.x||m.y-y.y);this.xPoints=new Array;let s=null;for(const m of o)(!s||s.x!==m.x)&&(s={x:m.x,y:[]},this.xPoints.push(s)),s.y.push(m.y);const f=[...a].sort((m,y)=>m.y-y.y||m.x-y.x);this.yPoints=new Array;let d=null;for(const m of f)(!d||d.y!==m.y)&&(d={y:m.y,x:[]},this.yPoints.push(d)),d.x.push(m.x);this.xValues=this.xPoints.map(m=>m.x),this.yValues=this.yPoints.map(m=>m.y),this.minX=mi.safeMin(this.xValues),this.maxX=mi.safeMax(this.xValues),this.minY=mi.safeMin(this.yValues),this.maxY=mi.safeMax(this.yValues),[this.highlightXValues,this.highlightYValues]=this.mapToSvgElements(n.selectors)}dispose(){this.xPoints.length=0,this.yPoints.length=0,this.xValues.length=0,this.yValues.length=0,this.highlightXValues&&(this.highlightXValues.forEach(n=>n.forEach(a=>a.remove())),this.highlightXValues.length=0),this.highlightYValues&&(this.highlightYValues.forEach(n=>n.forEach(a=>a.remove())),this.highlightYValues.length=0),super.dispose()}get values(){const n=[this.xValues,this.yValues];return this.mode==="column"?this.row!==0&&(this.row=0):(this.row<0||this.row>=this.yPoints.length)&&(this.row=0),n}get highlightValues(){return this.mode==="column"?this.highlightXValues:this.highlightYValues}getAudioGroupIndex(){return{}}audio(){if(this.mode==="column"){const n=this.xPoints[this.col];return{min:this.minY,max:this.maxY,size:n.y.length,index:this.col,value:n.y,...this.getAudioGroupIndex()}}else{const n=this.yPoints[this.row];return{min:this.minX,max:this.maxX,size:n.x.length,index:this.row,value:n.x,...this.getAudioGroupIndex()}}}braille(){return{empty:!0,type:"trace",traceType:this.type,audio:{index:0,size:0,groupIndex:0}}}text(){if(this.mode==="column"){const n=this.xPoints[this.col];return{main:{label:this.xAxis,value:n.x},cross:{label:this.yAxis,value:n.y}}}else{const n=this.yPoints[this.row];return{main:{label:this.yAxis,value:n.y},cross:{label:this.xAxis,value:n.x}}}}get autoplay(){return{UPWARD:this.yValues.length,DOWNWARD:this.yValues.length,FORWARD:this.xValues.length,BACKWARD:this.xValues.length}}highlight(){if(this.highlightValues===null)return{empty:!0,type:"trace",traceType:this.type,audio:{index:0,size:0,groupIndex:0}};const n=this.mode==="column"?this.col<this.highlightValues.length?this.highlightValues[this.col]:null:this.row<this.highlightValues.length?this.highlightValues[this.row]:null;return n?{empty:!1,elements:n}:{empty:!0,type:"trace",traceType:this.type,audio:{index:0,size:0,groupIndex:0}}}hasMultiPoints(){return!0}handleInitialEntry(){this.isInitialEntry=!1,this.row=0,this.col=0,this.mode="column"}toggleNavigation(){if(this.mode==="column"){const n=this.xPoints[this.col],a=n.y[Math.floor(n.y.length/2)],o=this.yValues.indexOf(a);o===-1||o>=this.yPoints.length?this.row=0:this.row=o,this.mode="row"}else{const n=this.yPoints[this.row],a=n.x[Math.floor(n.x.length/2)],o=this.xValues.indexOf(a);o===-1||o>=this.xPoints.length?this.col=0:this.col=o,this.mode="column",this.row=0}}moveOnce(n){if(this.isInitialEntry){this.handleInitialEntry(),this.notifyStateUpdate();return}if(!this.isMovable(n)){this.notifyOutOfBounds();return}if(this.mode==="column")switch(n){case"FORWARD":this.col++;break;case"BACKWARD":this.col--;break;case"UPWARD":case"DOWNWARD":{this.toggleNavigation();break}}else switch(n){case"UPWARD":this.row++;break;case"DOWNWARD":this.row--;break;case"FORWARD":case"BACKWARD":{this.toggleNavigation();break}}this.notifyStateUpdate()}moveToExtreme(n){if(this.isInitialEntry&&this.handleInitialEntry(),this.mode==="column")switch(n){case"UPWARD":this.toggleNavigation(),this.row=this.yPoints.length-1;break;case"DOWNWARD":this.toggleNavigation(),this.row=0;break;case"FORWARD":this.col=this.xPoints.length-1;break;case"BACKWARD":this.col=0;break}else switch(n){case"UPWARD":this.row=this.yPoints.length-1;break;case"DOWNWARD":this.row=0;break;case"FORWARD":this.toggleNavigation(),this.col=this.xPoints.length-1;break;case"BACKWARD":this.toggleNavigation(),this.col=0;break}this.notifyStateUpdate()}isMovable(n){if(Array.isArray(n))return!1;if(this.mode==="column")switch(n){case"FORWARD":return this.col<this.xPoints.length-1;case"BACKWARD":return this.col>0;case"UPWARD":case"DOWNWARD":return!0}else switch(n){case"UPWARD":return this.row<this.yPoints.length-1;case"DOWNWARD":return this.row>0;case"FORWARD":case"BACKWARD":return!0}}mapToSvgElements(n){if(!n)return[null,null];const a=on.selectAllElements(n);if(a.length===0)return[null,null];const o=new Map,s=new Map;a.forEach(m=>{const y=Number.parseFloat(m.getAttribute("x")||""),x=Number.parseFloat(m.getAttribute("y")||"");Number.isNaN(y)||(o.has(y)||o.set(y,[]),o.get(y).push(m)),Number.isNaN(x)||(s.has(x)||s.set(x,[]),s.get(x).push(m))});const f=Array.from(o.entries()).sort(([m],[y])=>m-y).map(([m,y])=>y),d=Array.from(s.entries()).sort(([m],[y])=>y-m).map(([m,y])=>y);return[f,d]}}const i_="Sum",kie="Level",Die="undefined";class _ie extends lT{constructor(t){super(t,t.data),this.createSummaryLevel()}createSummaryLevel(){const t=new Array,n=new Array;for(let s=0;s<this.barValues[0].length;s++){const f=this.barValues.reduce((m,y)=>m+y[s],0);t.push(f);const d=this.orientation===Gr.VERTICAL?{x:this.points[0][s].x,y:f,fill:i_}:{x:f,y:this.points[0][s].y,fill:i_};n.push(d)}this.points.push(n),this.barValues.push(t);const{min:a,max:o}=mi.minMax(t);this.min.push(a),this.max.push(o)}getExtremaTargets(){const t=[],n=this.row;if(n<0||n>=this.barValues.length)return t;const a=this.min[n],o=this.max[n],s=this.barValues[n];if(!s||s.length===0)return t;const f=s.indexOf(o),d=s.indexOf(a),m=this.getGroupLabel(n),y=this.getCategoryLabel(f),x=this.getCategoryLabel(d);return t.push({label:`Max ${m} at ${y}`,value:o,pointIndex:f,segment:m,type:"max",groupIndex:n,categoryIndex:f,navigationType:"group"}),t.push({label:`Min ${m} at ${x}`,value:a,pointIndex:d,segment:m,type:"min",groupIndex:n,categoryIndex:d,navigationType:"group"}),t}navigateToExtrema(t){t.groupIndex!==void 0&&t.categoryIndex!==void 0?(this.row=t.groupIndex,this.col=t.categoryIndex):this.col=t.pointIndex,this.finalizeExtremaNavigation()}getGroupLabel(t){if(this.points[t]&&this.points[t].length>0){const n=this.points[t][0];if(t===this.barValues.length-1)return"Total";if(n.fill)return`${this.getFillAxisLabel()}: '${n.fill}'`}return`Group ${t}`}getCategoryLabel(t){if(this.points[0]&&this.points[0][t]){const n=this.points[0][t];return this.orientation===Gr.VERTICAL?`${n.x}`:`${n.y}`}return`Category ${t}`}getFillAxisLabel(){return"Category"}updateVisualPointPosition(){const{row:t,col:n}=this.getSafeIndices();this.row=t,this.col=n}text(){return{...super.text(),fill:{label:kie,value:this.points[this.row][this.col].fill??Die}}}highlight(){return this.highlightValues===null||this.row===this.barValues.length-1?{empty:!0,type:"trace",traceType:this.type,audio:{index:0,size:0,groupIndex:0}}:{empty:!1,elements:this.highlightValues[this.row][this.col]}}hasMultiPoints(){return!1}mapToSvgElements(t){if(!t)return new Array;const n=on.selectAllElements(t);if(n.length===0)return new Array;const a=new Array;if(n[0]instanceof SVGPathElement)for(let o=0,s=0;o<this.barValues.length;o++){const f=new Array;for(let d=0;d<this.barValues[o].length;d++){if(s>=n.length)return new Array;this.barValues[o][d]===0?f.push(on.createEmptyElement()):f.push(n[s++])}a.push(f)}else if(n[0]instanceof SVGRectElement){for(let o=0;o<this.barValues.length;o++)a.push(new Array);for(let o=0,s=0;o<this.barValues[0].length;o++)for(let f=this.barValues.length-1;f>=0;f--){if(s>=n.length)return new Array;this.barValues[f][o]===0?a[f].push(on.createEmptyElement()):a[f].push(n[s++])}}return a}}class o_ extends a_{constructor(t){super(t)}moveToXValue(t){this.isInitialEntry&&this.handleInitialEntry();const n=this.points;if(!n||!n.length)return!1;const a=this.navigationService.moveToXValueInPoints(n,t,this.moveToIndex.bind(this));return a&&this.notifyStateUpdate(),a}audio(){const t=this.lineValues[this.row],n=this.col,a=d=>t[Math.max(0,Math.min(d,t.length-1))],o=n>0?a(n-1):a(n),s=a(n),f=n<t.length-1?a(n+1):a(n);return{min:this.min[this.row],max:this.max[this.row],size:t.length,index:n,value:[o,s,f],isContinuous:!0,...this.getAudioGroupIndex()}}}class Nie extends o_{constructor(t){super(t)}mapToSvgElements(t){var o;if(!t||t.length!==this.lineValues.length)return null;const n=[];let a=!0;for(let s=0;s<t.length;s++){const f=on.selectElement(t[s],!1);if(!f){n.push([]);continue}const d=(o=this.points)==null?void 0:o[s],m=[];for(const y of d)typeof y.svg_x=="number"&&typeof y.svg_y=="number"&&m.push(on.createCircleElement(y.svg_x,y.svg_y,f));m.length>0&&(a=!1),n.push(m)}return a?null:n}}function zie(e){return typeof(e==null?void 0:e.svg_x)=="number"&&typeof(e==null?void 0:e.svg_y)=="number"}function Lie(e){return Array.isArray(e.data)&&e.data.length>0&&Array.isArray(e.data[0])&&zie(e.data[0][0])?new Nie(e):new o_(e)}class Iie{static create(t){switch(t.type){case Rr.BAR:return new Tie(t);case Rr.BOX:return new wie(t);case Rr.CANDLESTICK:return new Cie(t);case Rr.HEATMAP:return new Oie(t);case Rr.HISTOGRAM:return new Rie(t);case Rr.LINE:return new a_(t);case Rr.SCATTER:return new Mie(t);case Rr.SMOOTH:return Lie(t);case Rr.DODGED:case Rr.NORMALIZED:case Rr.STACKED:return new _ie(t);default:throw new Error(`Invalid trace type: ${t.type}`)}}}const Bie="MAIDR Plot",Pie="unavailable",Vie="unavailable";class Uie extends oT{constructor(n){super();Q(this,"id");Q(this,"title");Q(this,"subtitle");Q(this,"caption");Q(this,"subplots");Q(this,"size");this.id=n.id,this.title=n.title??Bie,this.subtitle=n.subtitle??Pie,this.caption=n.caption??Vie;const a=n.subplots;this.subplots=a.map(o=>o.map(s=>new $ie(s))),this.size=this.subplots.reduce((o,s)=>o+s.length,0)}dispose(){this.subplots.forEach(n=>n.forEach(a=>a.dispose())),this.subplots.length=0,super.dispose()}get values(){return this.subplots}get activeSubplot(){return this.subplots[this.row][this.col]}get state(){if(this.isOutOfBounds)return{empty:!0,type:"figure"};const n=this.col+1+this.subplots.slice(0,this.row).reduce((o,s)=>o+s.length,0),a=this.activeSubplot;return{empty:!1,type:"figure",title:this.title,subtitle:this.subtitle,caption:this.caption,size:this.size,index:n,subplot:a.getStateWithFigurePosition(this.row,this.col),traceTypes:a.traceTypes,highlight:this.highlight()}}highlight(){var a;if(document.querySelectorAll('g[id^="axes_"]').length<=1)return{empty:!0,type:"trace",audio:{size:this.values[this.row].length,index:this.col}};try{const o=((a=this.subplots[0])==null?void 0:a.length)||1,s=this.row*o+this.col+1,f=`g[id="axes_${s}"]`,d=document.querySelector(f);if(d)return{empty:!1,elements:d};const m=document.querySelectorAll('g[id^="axes_"]');if(m.length>0&&s-1<m.length)return{empty:!1,elements:m[s-1]}}catch{return{empty:!0,type:"trace",audio:{size:this.values[this.row].length,index:this.col}}}return{empty:!0,type:"trace",audio:{size:this.values[this.row].length,index:this.col}}}isMovable(n){switch(n){case"UPWARD":return this.row<this.subplots.length-1;case"DOWNWARD":return this.row>0;case"FORWARD":return this.col<this.subplots[this.row].length-1;case"BACKWARD":return this.col>0;default:return!1}}moveOnce(n){if(this.isInitialEntry){this.handleInitialEntry(),this.notifyStateUpdate();return}if(!this.isMovable(n)){this.notifyOutOfBounds();return}switch(n){case"UPWARD":this.row+=1;break;case"DOWNWARD":this.row-=1;break;case"FORWARD":this.col+=1;break;case"BACKWARD":this.col-=1;break}this.notifyStateUpdate()}moveToPoint(n,a){this.activeSubplot.activeTrace,this.notifyStateUpdate()}}class $ie extends oT{constructor(n){super();Q(this,"traces");Q(this,"traceTypes");Q(this,"size");this.isInitialEntry=!1;const a=n.layers;this.size=a.length,this.traces=a.map(o=>[Iie.create(o)]),this.traceTypes=this.traces.flat().map(o=>{const s=o.state;return s.empty?xe.EMPTY:s.traceType})}getRow(){return this.row}getSize(){return this.size}dispose(){this.traces.forEach(n=>n.forEach(a=>a.dispose())),this.traces.length=0,super.dispose()}get values(){return this.traces}get activeTrace(){return this.traces[this.row][this.col]}highlight(){return{empty:!0,type:"trace",audio:{size:this.values[this.row].length,index:this.col}}}moveOnce(n){if(this.isInitialEntry){this.handleInitialEntry(),this.notifyStateUpdate();return}if(!this.isMovable(n)){this.notifyOutOfBounds();return}switch(n){case"UPWARD":this.row+=1;break;case"DOWNWARD":this.row-=1;break;case"FORWARD":this.col+=1;break;case"BACKWARD":this.col-=1;break}this.notifyStateUpdate()}get state(){return this.isOutOfBounds?{empty:!0,type:"subplot"}:{empty:!1,type:"subplot",size:this.size,index:this.row+1,trace:this.activeTrace.state,highlight:this.highlight()}}moveToPoint(n,a){this.notifyStateUpdate()}getStateWithFigurePosition(n,a){return this.state}}const gi={SINE_BASIC:0,SQUARE_BASIC:1,SAWTOOTH_BASIC:2,TRIANGLE_BASIC:3,SAWTOOTH_DARK:4,SINE_HARMONIC:5,TRIANGLE_HARMONIC:6,SQUARE_HARMONIC:7,TRIANGLE_MELLOW:8,SINE_SUBTLE:9,SAWTOOTH_SOFT:10},xm=class xm{constructor(){Q(this,"basePalette");Q(this,"extendedPalette");this.basePalette=[{index:gi.SINE_BASIC,waveType:"sine",timbreModulation:{attack:.01,decay:.1,sustain:.8,release:.2}},{index:gi.SQUARE_BASIC,waveType:"square",timbreModulation:{attack:.005,decay:.05,sustain:.7,release:.15}},{index:gi.SAWTOOTH_BASIC,waveType:"sawtooth",timbreModulation:{attack:.02,decay:.08,sustain:.6,release:.25}},{index:gi.TRIANGLE_BASIC,waveType:"triangle",timbreModulation:{attack:.015,decay:.12,sustain:.9,release:.18}},{index:gi.SAWTOOTH_DARK,waveType:"sawtooth",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.2},{frequency:3,amplitude:.1},{frequency:5,amplitude:.05}]},timbreModulation:{attack:.005,decay:.3,sustain:.4,release:.5}},{index:gi.SINE_HARMONIC,waveType:"sine",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.15},{frequency:4,amplitude:.05}]},timbreModulation:{attack:.02,decay:.2,sustain:.6,release:.3}},{index:gi.TRIANGLE_HARMONIC,waveType:"triangle",harmonicMix:{fundamental:1,harmonics:[{frequency:3,amplitude:.2},{frequency:6,amplitude:.1}]},timbreModulation:{attack:.01,decay:.1,sustain:.8,release:.2}},{index:gi.SQUARE_HARMONIC,waveType:"square",harmonicMix:{fundamental:1,harmonics:[{frequency:3,amplitude:.1},{frequency:7,amplitude:.05}]},timbreModulation:{attack:.005,decay:.05,sustain:.5,release:.1}},{index:gi.TRIANGLE_MELLOW,waveType:"triangle",harmonicMix:{fundamental:1,harmonics:[{frequency:2.5,amplitude:.15},{frequency:4.5,amplitude:.08}]},timbreModulation:{attack:.01,decay:.4,sustain:.3,release:.5}},{index:gi.SINE_SUBTLE,waveType:"sine",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.1},{frequency:3,amplitude:.05}]},timbreModulation:{attack:.02,decay:.1,sustain:.9,release:.15}},{index:gi.SAWTOOTH_SOFT,waveType:"sawtooth",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.05},{frequency:6,amplitude:.02}]},timbreModulation:{attack:.005,decay:.4,sustain:.2,release:.6}}],this.validateBasePalette(),this.extendedPalette=new Map,this.generateExtendedPalette()}dispose(){this.extendedPalette.clear()}getPaletteEntry(t){if(t<this.basePalette.length)return this.basePalette[t];const n=this.extendedPalette.get(t);if(n)return n;const a=this.generateExtendedEntry(t);return this.extendedPalette.set(t,a),a}get basePaletteSize(){return this.basePalette.length}getCandlestickGroupIndex(t){switch(t){case"Bull":return gi.SINE_BASIC;case"Bear":return gi.SAWTOOTH_SOFT;case"Neutral":return gi.TRIANGLE_BASIC;default:return gi.SINE_BASIC}}generateExtendedPalette(){[{index:this.basePalette.length,waveType:"sine",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.3},{frequency:3,amplitude:.15}]},timbreModulation:{attack:.02,decay:.15,sustain:.7,release:.3}},{index:this.basePalette.length+1,waveType:"square",harmonicMix:{fundamental:1,harmonics:[{frequency:1.5,amplitude:.4},{frequency:2.5,amplitude:.2}]},timbreModulation:{attack:.01,decay:.08,sustain:.6,release:.4}},{index:this.basePalette.length+2,waveType:"sawtooth",harmonicMix:{fundamental:1,harmonics:[{frequency:1.25,amplitude:.35},{frequency:2,amplitude:.25},{frequency:3,amplitude:.1}]},timbreModulation:{attack:.03,decay:.2,sustain:.5,release:.35}},{index:this.basePalette.length+3,waveType:"triangle",harmonicMix:{fundamental:1,harmonics:[{frequency:.5,amplitude:.2},{frequency:4,amplitude:.15}]},timbreModulation:{attack:.025,decay:.18,sustain:.8,release:.25}}].forEach((n,a)=>{this.extendedPalette.set(this.basePalette.length+a,n)})}generateExtendedEntry(t){const n=t%this.basePalette.length,a=this.basePalette[n],o=Math.floor((t-this.basePalette.length)/this.basePalette.length),s=this.generateHarmonics(o),f=this.generateTimbreModulation(o,a.timbreModulation);return{index:t,waveType:a.waveType,harmonicMix:{fundamental:1,harmonics:s},timbreModulation:f}}generateHarmonics(t){const n=[],a=xm.MIN_HARMONICS+t%xm.HARMONIC_VARIATION;for(let o=0;o<a;o++){const s=1+(o+1)*(.5+t*.3%1),f=.4/(o+1)*(1-t*.1%.3);n.push({frequency:s,amplitude:f})}return n}generateTimbreModulation(t,n){const a=1+t*.2%.5;return{attack:Math.max(.005,Math.min(.05,n.attack*a)),decay:Math.max(.05,Math.min(.3,n.decay*a)),sustain:Math.max(.4,Math.min(.9,n.sustain+t*.1%.2)),release:Math.max(.1,Math.min(.5,n.release*a))}}validateBasePalette(){this.basePalette.forEach((t,n)=>{if(t.index!==n)throw new Error(`AudioPalette validation error: Entry at array position ${n} has index ${t.index}. Array position must match the index property to prevent audio palette mismatches.`)})}};Q(xm,"MIN_HARMONICS",2),Q(xm,"HARMONIC_VARIATION",3);let uT=xm;const jie=100,Hie=440,qie=880,cT=.3,fT=gi.SINE_BASIC;class Gie{constructor(t,n,a){Q(this,"notification");Q(this,"audioPalette");Q(this,"settings");Q(this,"isCombinedAudio");Q(this,"mode");Q(this,"activeAudioIds");Q(this,"audioContext");Q(this,"compressor");Q(this,"currentVolume");Q(this,"currentMinFrequency");Q(this,"currentMaxFrequency");this.notification=t,this.audioPalette=new uT,this.settings=a,this.isCombinedAudio=!1,this.mode="on",this.updateMode(n),this.activeAudioIds=new Map,this.audioContext=new AudioContext,this.compressor=this.initCompressor();const o=this.settings.loadSettings();this.currentVolume=o.general.volume/100,this.currentMinFrequency=o.general.minFrequency,this.currentMaxFrequency=o.general.maxFrequency,this.settings.addObserver(this)}dispose(){this.stopAll(),this.audioPalette.dispose(),this.audioContext.state!=="closed"&&(this.compressor.disconnect(),this.audioContext.close()),this.settings.removeObserver(this)}update(t){"general"in t?this.onSettingsChange(t):this.onStateChange(t)}onSettingsChange(t){this.currentVolume=t.general.volume/100,this.currentMinFrequency=t.general.minFrequency,this.currentMaxFrequency=t.general.maxFrequency}onStateChange(t){if(this.mode==="off")return;if(this.updateMode(t),t.type==="figure"){if(t.empty){this.playEmptyTone(1,0);return}return}let n;if(t.type==="subplot"){if(t.empty)return;n=t.trace}else n=t;this.handleTraceState(n)}handleTraceState(t){if(this.mode==="off"||t.type!=="trace")return;if(t.empty){this.stopAll(),this.playEmptyTone(t.audio.size,t.audio.index);return}if(t.traceType==="line"&&!t.empty&&Array.isArray(t.intersections)&&t.intersections.length>1){this.stopAll(),this.playSimultaneousTones(t.intersections);return}const n=t.audio;let a=n.groupIndex;n.trend&&a===void 0&&(a=this.audioPalette.getCandlestickGroupIndex(n.trend));const s=a!==void 0?this.audioPalette.getPaletteEntry(a):void 0;if(n.isContinuous)this.playSmooth(n.value,n.min,n.max,n.size,Array.isArray(n.index)?n.index[0]:n.index,s);else if(Array.isArray(n.value)){const f=n.value;if(f.length===0){this.playZeroTone();return}let d=0;const m=this.mode==="on"?50:0,y=new Array,x=()=>{if(d<f.length){const S=Array.isArray(n.index)?n.index[d]:n.index;this.playTone(n.min,n.max,f[d++],n.size,S,s),y.push(setTimeout(x,m))}else this.stop(y)};x()}else{const f=n.value;if(f===0)this.playZeroTone();else{const d=Array.isArray(n.index)?n.index[0]:n.index;this.playTone(n.min,n.max,f,n.size,d,s)}}}getVolume(){return Math.min(Math.max(this.currentVolume,0),1)}getFrequencyRange(){return{min:this.currentMinFrequency,max:this.currentMaxFrequency}}initCompressor(){const t=this.audioContext.createDynamicsCompressor();t.threshold.value=-50,t.knee.value=40,t.ratio.value=12,t.attack.value=0,t.release.value=.25;const n=this.audioContext.createGain();return n.gain.value=.5,t.connect(n),n.connect(this.audioContext.destination),t}updateMode(t){if(t.empty||t.type==="figure")return;const n=t.type==="subplot"?t.trace:t;n.empty||n.hasMultiPoints===this.isCombinedAudio||(this.isCombinedAudio=n.hasMultiPoints,this.mode!=="off"&&(this.isCombinedAudio?this.mode="combined":this.mode="on"))}playTone(t,n,a,o,s,f){const d={min:t,max:n},m=this.getFrequencyRange(),y=this.interpolate(a,d,m),x={min:0,max:o},S={min:-1,max:1},w=this.clamp(this.interpolate(s,x,S),-1,1);return this.playOscillator(y,w,f)}createOscillators(t,n){const a=[],o=this.audioContext.createOscillator();if(o.type=t.waveType,o.frequency.value=n,a.push(o),t.harmonicMix)for(const s of t.harmonicMix.harmonics){const f=this.audioContext.createOscillator();f.type=t.waveType,f.frequency.value=s.frequency*n,a.push(f)}return a}createGainNodes(t,n,a,o){const s=[],f=this.audioContext.currentTime,d=this.getVolume();for(let m=0;m<t.length;m++){const y=this.audioContext.createGain();let x=d;if(m===0)n.harmonicMix&&(x*=n.harmonicMix.fundamental);else{const w=n.harmonicMix.harmonics[m-1];x*=w.amplitude}const S=this.createAdsrEnvelope(y,n,x,f,o);S!==null&&y.gain.setValueCurveAtTime(S,f,o),s.push(y)}return s}playOscillator(t,n=0,a){const o=cT,s=this.getVolume();a||(a=this.audioPalette.getPaletteEntry(0));const f=this.createOscillators(a,t),d=this.createGainNodes(f,a,s,o),m=this.audioContext.createStereoPanner();m.pan.value=n;const y=new PannerNode(this.audioContext,{distanceModel:"linear",positionX:0,positionY:0,positionZ:0,orientationX:0,orientationY:0,orientationZ:-1,refDistance:1,maxDistance:1e4,rolloffFactor:10,coneInnerAngle:40,coneOuterAngle:50,coneOuterGain:.4});for(let w=0;w<f.length;w++)f[w].connect(d[w]),d[w].connect(m);m.connect(y),y.connect(this.compressor),f.forEach(w=>w.start());const x=w=>{y.disconnect(this.compressor),m.disconnect(y);for(let T=0;T<f.length;T++)d[T].disconnect(m),f[T].stop(),f[T].disconnect(d[T]);this.activeAudioIds.delete(w)},S=setTimeout(()=>x(S),o*1e3*2);return this.activeAudioIds.set(S,f),S}createAdsrEnvelope(t,n,a,o,s){if(n!=null&&n.timbreModulation){const{attack:f,decay:d,sustain:m,release:y}=n.timbreModulation,x=s*f,S=s*d,w=s*y,T=s-x-S-w;return t.gain.setValueAtTime(1e-4*a,o),t.gain.linearRampToValueAtTime(a,o+x),t.gain.linearRampToValueAtTime(m*a,o+x+S),T>0&&t.gain.setValueAtTime(m*a,o+x+S+T),t.gain.linearRampToValueAtTime(1e-4*a,o+s),null}else return[.5*a,a,.5*a,.5*a,.5*a,.1*a,1e-4*a]}playSmooth(t,n,a,o,s,f){const d=this.audioContext,m=d.currentTime,y=cT,x=this.getFrequencyRange(),S=this.getVolume(),w=(f==null?void 0:f.waveType)||"sine",T=t.map(B=>this.interpolate(B,{min:n,max:a},x));T.length<2&&T.push(T[0]);const C=this.clamp(this.interpolate(s,{min:0,max:o-1},{min:-1,max:1}),-1,1),R=d.createOscillator();R.type=w,R.frequency.setValueCurveAtTime(T,m,y);const M=d.createGain(),_=this.createAdsrEnvelope(M,f,S,m,y);_!==null&&M.gain.setValueCurveAtTime(_,m,y);const N=d.createStereoPanner();N.pan.value=C,R.connect(M),M.connect(N),N.connect(this.compressor),R.start(m),R.stop(m+y);const P=setTimeout(()=>{R.disconnect(),M.disconnect(),N.disconnect(),this.activeAudioIds.delete(P)},y*1e3*2);this.activeAudioIds.set(P,[R])}playEmptyTone(t,n){const a=this.audioContext,o=a.currentTime,s=.2,f=this.getVolume(),d=[500,1e3,1500,2100,2700],m=[1,.6,.4,.2,.1],y=a.createGain();y.gain.setValueAtTime(.3*f,o),y.gain.exponentialRampToValueAtTime(.01*f,o+s),y.connect(this.compressor);const x={min:0,max:t},S={min:-1,max:1},w=this.clamp(this.interpolate(n,x,S),-1,1),T=[];for(let M=0;M<d.length;M++){const _=a.createOscillator(),N=a.createGain(),P=this.audioContext.createStereoPanner(),B=new PannerNode(this.audioContext,{distanceModel:"linear",positionX:0,positionY:0,positionZ:0,orientationX:0,orientationY:0,orientationZ:-1,refDistance:1,maxDistance:1e4,rolloffFactor:10,coneInnerAngle:40,coneOuterAngle:50,coneOuterGain:.4});_.frequency.value=d[M],_.type="sine",N.gain.setValueAtTime(m[M]*f,o),N.gain.exponentialRampToValueAtTime(.001*f,o+s),P.pan.value=w,_.connect(N),N.connect(P),P.connect(B),B.connect(y),_.start(o),_.stop(o+s),T.push(_)}const C=M=>{y.disconnect(),T.forEach(_=>{_.disconnect()}),this.activeAudioIds.delete(M)},R=setTimeout(()=>C(R),s*1e3*2);return this.activeAudioIds.set(R,T),R}playZeroTone(){return this.playOscillator(jie,0,{index:fT,waveType:"triangle"})}playWaitingTone(){return setInterval(()=>this.playOscillator(Hie,0,{index:fT,waveType:"sine"}),1e3)}playCompleteTone(){return this.playOscillator(qie,0,{index:fT,waveType:"sine"})}interpolate(t,n,a){return n.min===0&&n.max===0?0:(t-n.min)/(n.max-n.min)*(a.max-a.min)+a.min}clamp(t,n,a){return Math.max(n,Math.min(t,a))}toggle(){switch(this.mode){case"off":this.mode=this.isCombinedAudio?"combined":"on";break;case"on":this.mode="off";break;case"combined":this.mode="on";break}const n=`Sound is ${this.isCombinedAudio&&this.mode==="on"?"separate":this.mode}`;this.notification.notify(n)}stop(t){(Array.isArray(t)?t:[t]).forEach(a=>{const o=this.activeAudioIds.get(a);if(!o){clearInterval(a);return}o.forEach(s=>{s==null||s.disconnect(),s==null||s.stop()}),clearTimeout(a),this.activeAudioIds.delete(a)})}stopAll(){this.activeAudioIds.entries().forEach(([t,n])=>{clearTimeout(t),n.forEach(a=>{a.disconnect(),a.stop()})}),this.activeAudioIds.clear()}playSimultaneousTones(t){const n=this.getVolume(),a=cT,o=this.audioContext,s=o.currentTime,f=this.getFrequencyRange(),d=Array.isArray(t[0].value)?t[0].value[1]??t[0].value[0]:t[0].value,m=t[0].min,y=t[0].max,x=this.interpolate(d,{min:m,max:y},f);t.forEach((S,w)=>{const T=x,R=this.audioPalette.getPaletteEntry(w).waveType,M=o.createOscillator();M.type=R,M.frequency.value=T;const _=o.createGain();_.gain.setValueAtTime(n,s),_.gain.exponentialRampToValueAtTime(.01*n,s+a),M.connect(_),_.connect(this.compressor),M.start(s),M.stop(s+a);const N=setTimeout(()=>{M.disconnect(),_.disconnect()},a*1e3*2);this.activeAudioIds.set(N,[M])})}}const Fie=250,Yie=50,Xie=500,Wie=20;class Qie{constructor(t,n,a){Q(this,"context");Q(this,"notification");Q(this,"settings");Q(this,"autoplayId");Q(this,"currentDirection");Q(this,"userSpeed");Q(this,"defaultSpeed");Q(this,"minSpeed");Q(this,"maxSpeed");Q(this,"autoplayRate");Q(this,"interval");Q(this,"currentDuration");Q(this,"onChangeEmitter");Q(this,"onChange");this.notification=n,this.context=t,this.settings=a,this.autoplayId=null,this.currentDirection=null,this.userSpeed=null,this.defaultSpeed=Fie,this.minSpeed=Yie,this.maxSpeed=Xie,this.autoplayRate=this.defaultSpeed,this.interval=Wie,this.currentDuration=this.settings.loadSettings().general.autoplayDuration,this.onChangeEmitter=new m0,this.onChange=this.onChangeEmitter.event,this.settings.addObserver(this)}dispose(){this.stop(),this.onChangeEmitter.dispose(),this.settings.removeObserver(this)}update(t){this.updateSettings(t)}updateSettings(t){this.currentDuration=t.general.autoplayDuration,this.currentDirection&&this.restart()}start(t,n){this.stop(),this.onChangeEmitter.fire({type:"start"}),this.autoplayRate=this.getAutoplayRate(t,n),this.currentDirection=t,this.autoplayId=setInterval(()=>{this.context.isMovable(t)?this.context.moveOnce(t):this.stop()},this.autoplayRate)}stop(){this.autoplayId&&clearInterval(this.autoplayId),this.autoplayId=null,this.currentDirection=null,this.onChangeEmitter.fire({type:"stop"})}restart(){this.autoplayId&&clearInterval(this.autoplayId),this.currentDirection&&this.start(this.currentDirection)}speedUp(){const t=this.userSpeed??this.autoplayRate;t-this.interval>this.minSpeed?(this.userSpeed=t-this.interval,this.autoplayRate=this.userSpeed,this.restart(),this.notification.notify("Speed up")):this.notification.notify("Max speed")}speedDown(){const t=this.userSpeed??this.autoplayRate;t+this.interval<=this.maxSpeed?(this.userSpeed=t+this.interval,this.autoplayRate=this.userSpeed,this.restart(),this.notification.notify("Speed down")):this.notification.notify("Min speed")}resetSpeed(){this.userSpeed=null,this.autoplayRate=this.defaultSpeed,this.restart(),this.notification.notify("Reset speed")}getAutoplayRate(t,n){if(this.userSpeed!==null)return this.userSpeed;if(n&&!n.empty){const a=Math.ceil(this.currentDuration/n.autoplay[t]);return this.defaultSpeed=a,this.minSpeed=Math.min(this.minSpeed,a),a}return this.defaultSpeed}}const l_=32;class pv{encode(t){const n=new Array,a=new Array,o=new Array;for(let s=0;s<t.values.length;s++){a.push(new Array);const f=(t.max[s]-t.min[s])/4,d=t.min[s]+f,m=d+f,y=m+f;for(let x=0;x<t.values[s].length;x++)t.values[s][x]===0?n.push(" "):t.values[s][x]<=d||t.values[s][x]<=m?n.push("⠤"):t.values[s][x]<=y?n.push("⠒"):n.push("⠉"),a[s].push(o.length),o.push({row:s,col:x});n.push(xe.NEW_LINE),a[s].push(o.length),o.push({row:s,col:t.values[s].length})}return{value:n.join(xe.EMPTY),cellToIndex:a,indexToCell:o}}}class Kie{constructor(){Q(this,"GLOBAL_MIN","globalMin");Q(this,"GLOBAL_MAX","globalMax");Q(this,"BLANK","blank");Q(this,"LOWER_OUTLIER","lowerOutlier");Q(this,"UPPER_OUTLIER","upperOutlier");Q(this,"MIN","min");Q(this,"MAX","max");Q(this,"Q1","q1");Q(this,"Q2","q2");Q(this,"Q3","q3")}encode(t,n=l_){const a=new Array,o=new Array,s=new Array;for(let f=0;f<t.values.length;f++){const d=t.values[f],m=[{type:this.GLOBAL_MIN,value:t.min},...d.lowerOutliers.map(X=>({type:this.LOWER_OUTLIER,value:X})),{type:this.MIN,value:d.min},{type:this.Q1,value:d.q1},{type:this.Q2,value:d.q2},{type:this.Q3,value:d.q3},{type:this.MAX,value:d.max},...d.upperOutliers.map(X=>({type:this.UPPER_OUTLIER,value:X})),{type:this.GLOBAL_MAX,value:t.max}],y=new Array;let x=!0;for(let X=0;X<m.length-1;X++){const ie=m[X],le=m[X+1],Z=Math.abs(x?le.value-ie.value:ie.value-m[X-1].value);ie.type===this.LOWER_OUTLIER||ie.type===this.UPPER_OUTLIER?(y.push({type:ie.type,length:0,numChars:1}),y.push({type:this.BLANK,length:Z,numChars:0})):ie.type===this.Q2?(x=!1,y.push({type:this.Q2,length:0,numChars:2})):ie.type===this.GLOBAL_MIN||ie.type===this.GLOBAL_MAX?y.push({type:this.BLANK,length:Z,numChars:0}):y.push({type:ie.type,length:Z,numChars:1})}let S=y.reduce((X,ie)=>X+(ie.numChars>0?ie.numChars:0),0),[w,T,C,R]=[-1,-1,-1,-1];for(let X=0;X<y.length;X++)y[X].type===this.MIN&&y[X].length>0&&(w=X),y[X].type===this.MAX&&y[X].length>0&&(T=X),y[X].type===this.Q1&&(C=X),y[X].type===this.Q3&&(R=X);w!==-1&&T!==-1&&y[w].length!==y[T].length&&(y[w].length>y[T].length?(y[w].numChars++,S++):(y[T].numChars++,S++)),C!==-1&&R!==-1&&y[C].length!==y[R].length&&(y[C].length>y[R].length?(y[C].numChars++,S++):(y[R].numChars++,S++));const M=Math.max(0,n-S),_=y.reduce((X,ie)=>X+(ie.type!==this.Q2&&ie.length>0?ie.length:0),0);for(const X of y)if(X.type!==this.Q2&&X.length>0){const ie=Math.round(X.length/_*M);X.numChars+=ie}const N=y.reduce((X,ie)=>X+ie.numChars,0);let P=n-N,B=0;for(;P!==0;){const X=y[B%y.length];X.type!==this.BLANK&&X.type!==this.Q2&&X.length>0&&(X.numChars+=P>0?1:-1,P+=P>0?-1:1),B++}let z=-1;const $=[this.LOWER_OUTLIER,this.MIN,this.Q1,this.Q2,this.Q3,this.MAX,this.UPPER_OUTLIER];s.push(Array.from({length:$.length}).fill(-1));for(const X of y){X.type!==this.BLANK&&X.type!==this.GLOBAL_MIN&&X.type!==this.GLOBAL_MAX&&(z=$.indexOf(X.type),s[f][z]=a.length);for(let ie=0;ie<X.numChars;ie++){let le="⠀";X.type===this.MIN||X.type===this.MAX?le="⠒":X.type===this.Q1||X.type===this.Q3?le="⠿":X.type===this.Q2?le=ie===0?"⠸":"⠇":X.type===this.LOWER_OUTLIER||X.type===this.UPPER_OUTLIER?le="⠂":X.type===this.BLANK&&(le="⠀"),a.push(le),o.push({row:f,col:z})}}for(let X=0;X<3;X++)if(s[f][X]===-1){for(let ie=X+1;ie<=3;ie++)if(s[f][ie]!==-1){s[f][X]=s[f][ie];break}}for(let X=6;X>3;X--)if(s[f][X]===-1){for(let ie=X-1;ie>=3;ie--)if(s[f][ie]!==-1){s[f][X]=s[f][ie];break}}a.push(xe.NEW_LINE),o.push({row:f,col:z})}return{value:a.join(xe.EMPTY),cellToIndex:s,indexToCell:o}}}class Zie{encode(t){const n=new Array,a=new Array,o=new Array,s=(t.max-t.min)/3,f=t.min+s,d=f+s;for(let m=0;m<t.values.length;m++){a.push(new Array);for(let y=0;y<t.values[m].length;y++)t.values[m][y]===0?n.push(" "):t.values[m][y]<=f?n.push("⠤"):t.values[m][y]<=d?n.push("⠒"):n.push("⠉"),a[m].push(o.length),o.push({row:m,col:y});n.push(xe.NEW_LINE),a[m].push(o.length),o.push({row:m,col:t.values[m].length})}return{value:n.join(xe.EMPTY),cellToIndex:a,indexToCell:o}}}class s_{encode(t){const n=new Array,a=new Array,o=new Array;for(let s=0;s<t.values.length;s++){a.push(new Array);const{low:f,medium:d,mediumHigh:m,high:y}=this.getThresholds(s,t);for(let x=0;x<t.values[s].length;x++){const S=t.values[s][x],w=x>0?t.values[s][x-1]:null,T=this.getBrailleChar(S,w,f,d,y,m);n.push(T),a[s].push(o.length),o.push({row:s,col:x})}n.push(xe.NEW_LINE),a[s].push(o.length),o.push({row:s,col:t.values[s].length})}return{value:n.join(xe.EMPTY),cellToIndex:a,indexToCell:o}}getBrailleChar(t,n,a,o,s,f){return f===void 0&&(f=s),t<=a&&n!==null&&n>a?n<=o?"⢄":n<=f?"⢆":"⢇":t<=a?"⣀":n!==null&&n<=a?t<=o?"⡠":t<=f?"⡰":"⡸":t<=o&&n!==null&&n>o?n<=f?"⠢":"⠣":t<=o?"⠤":n!==null&&n<=o?t<=f?"⠔":"⠜":t<=f&&n!==null&&n>f?"⠑":t<=f?"⠒":n!==null&&n<=f?"⠊":t<=s?"⠉":""}getBraille6Char(t,n,a,o,s){const f=S=>S<=a?"low":S<=o?"medium":(S<=s,"high"),d=f(t),m=n!==null?f(n):null,y={"low,medium":"⠢","low,high":"⠣","low,null":"⠤","low,low":"⠤","medium,low":"⠔","medium,high":"⠑","medium,null":"⠒","medium,medium":"⠒","high,low":"⠜","high,medium":"⠊","high,null":"⠉","high,high":"⠉"},x=`${d},${m}`;return y[x]||""}addDot8(t){if(!t||t.length===0)return"⢀";const o=t.charCodeAt(0)-10240|128;return String.fromCharCode(10240+o)}}class Jie extends s_{getThresholds(t,n){const a=Array.isArray(n.min)?n.min[t]:n.min,o=Array.isArray(n.max)?n.max[t]:n.max,s=(o-a)/3,f=a+s,d=f+s;return{low:f,medium:d,high:o}}encode(t){var s;const n=new Array,a=new Array,o=new Array;for(let f=0;f<t.values.length;f++){a.push(new Array);const{low:d,medium:m,high:y}=this.getThresholds(f,t);for(let x=0;x<t.values[f].length;x++){const S=t.values[f][x],w=x>0?t.values[f][x-1]:null;let T=this.getBraille6Char(S,w,d,m,y);((s=t.custom)==null?void 0:s[x])==="Bear"&&(T=this.addDot8(T)),n.push(T),a[f].push(o.length),o.push({row:f,col:x})}n.push(xe.NEW_LINE),a[f].push(o.length),o.push({row:f,col:t.values[f].length})}return{value:n.join(xe.EMPTY),cellToIndex:a,indexToCell:o}}}class eoe extends s_{getThresholds(t,n){const a=(n.max[t]-n.min[t])/4,o=n.min[t]+a,s=o+a,f=s+a,d=n.max[t];return{low:o,medium:s,mediumHigh:f,high:d}}}class toe{constructor(t,n,a){Q(this,"context");Q(this,"notification");Q(this,"display");Q(this,"enabled");Q(this,"cacheId");Q(this,"cache");Q(this,"encoders");Q(this,"onChangeEmitter");Q(this,"onChange");this.context=t,this.notification=n,this.display=a,this.enabled=!1,this.cacheId=xe.EMPTY,this.cache=null,this.encoders=new Map([[Rr.BAR,new pv],[Rr.BOX,new Kie],[Rr.CANDLESTICK,new Jie],[Rr.DODGED,new pv],[Rr.HEATMAP,new Zie],[Rr.HISTOGRAM,new pv],[Rr.LINE,new eoe],[Rr.NORMALIZED,new pv],[Rr.STACKED,new pv]]),this.onChangeEmitter=new m0,this.onChange=this.onChangeEmitter.event}dispose(){this.onChangeEmitter.dispose(),this.cache=null,this.encoders.clear()}update(t){if(!this.enabled||t.empty)return;const n=t.type==="subplot"?t.trace:t;if(n.empty||n.braille.empty||!this.encoders.has(n.traceType))return;const a=n.braille;if(this.cacheId!==a.id||this.cache===null){const o=this.encoders.get(n.traceType);this.cache=o.encode(a,l_),this.cacheId=a.id}this.onChangeEmitter.fire({value:this.cache.value.trim(),index:this.cache.cellToIndex[a.row][a.col]})}moveToIndex(t){if(!this.enabled||this.cache===null||t<0||t>=this.cache.indexToCell.length)return;const{row:n,col:a}=this.cache.indexToCell[t];this.context.moveToIndex(n,a)}toggle(t){if(t.empty){this.notification.notify("No info for braille");return}if(t.braille.empty){const a=`Braille is not supported for plot type: ${t.braille.traceType}`;this.notification.notify(a);return}this.enabled=!this.enabled,this.update(t),this.display.toggleFocus(pn.BRAILLE);const n=`Braille is ${this.enabled?"on":"off"}`;this.notification.notify(n)}}var u_=(e=>(e[e.OK=200]="OK",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.SERVER_ERROR=500]="SERVER_ERROR",e))(u_||{});class c_{constructor(){}static async post(t,n,a){const o={...this.DEFAULT_HEADERS,...a};return this.request(t,"POST",o,n)}static async request(t,n,a,o){try{const s=await fetch(t,{method:n,headers:a,body:o});return s.ok?{success:!0,data:await s.json()}:{success:!1,error:{statusCode:s.status,message:`API Error: ${s.status} - ${s.statusText}`}}}catch(s){return console.error(`Error in API ${n} request to ${t}:`,s),{success:!1,error:{statusCode:u_.SERVER_ERROR,message:s instanceof Error?s.message:"Unknown error occurred"}}}}}Q(c_,"DEFAULT_HEADERS",{"Content-Type":"application/json"});const noe=`You are an accessibility assistant specializing in describing statistical visualizations to blind users. Your role is to:
856
+ root.render(<App />);`),i.unstable_strictMode===!0&&(u=!0),i.identifierPrefix!==void 0&&(g=i.identifierPrefix),i.onUncaughtError!==void 0&&(b=i.onUncaughtError),i.onCaughtError!==void 0&&(E=i.onCaughtError),i.onRecoverableError!==void 0&&(D=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(U=i.unstable_transitionCallbacks)),i=n4(r,1,!1,null,null,u,g,b,E,D,U,null),r[Zu]=i.current,Pp(r),new j1(i)},dv.hydrateRoot=function(r,i,u){if(!_(r))throw Error("Target container is not a DOM element.");q1(r),i===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var g=!1,b="",E=Qx,D=a1,U=i1,te=null,oe=null;return u!=null&&(u.unstable_strictMode===!0&&(g=!0),u.identifierPrefix!==void 0&&(b=u.identifierPrefix),u.onUncaughtError!==void 0&&(E=u.onUncaughtError),u.onCaughtError!==void 0&&(D=u.onCaughtError),u.onRecoverableError!==void 0&&(U=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(te=u.unstable_transitionCallbacks),u.formState!==void 0&&(oe=u.formState)),i=n4(r,1,!0,i,u??null,g,b,E,D,U,te,oe),i.context=ar(null),u=i.current,g=Wi(u),g=rt(g),b=Go(g),b.callback=null,Fo(u,b,g),u=g,i.current.lanes=u,En(i,u),Ao(i),r[Zu]=i.current,Pp(r),new H1(i)},dv.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),dv}var e_;function lie(){if(e_)return kx.exports;e_=1;var e={};function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(e.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}}return e.NODE_ENV==="production"?(t(),kx.exports=iie()):kx.exports=oie(),kx.exports}var sie=lie();class iT{constructor(){Q(this,"items");this.items=new Array}push(t){this.items.push(t)}pop(){return this.items.pop()}peek(){return this.items[this.items.length-1]}removeLast(t,n=1){const a=this.items.lastIndexOf(t);return a!==-1?(this.items.splice(a,n),!0):!1}isEmpty(){return this.items.length===0}size(){return this.items.length}clear(){this.items.length=0}}class uie{constructor(t){Q(this,"id");Q(this,"instructionContext");Q(this,"plotContext");Q(this,"scopeContext");Q(this,"figure");this.figure=t,this.id=t.id,this.plotContext=new iT,this.scopeContext=new iT;const n=t.state;if(n.empty||n.size!==1){this.instructionContext=t,this.plotContext.push(t),this.scopeContext.push(pn.SUBPLOT);return}this.scopeContext.push(pn.TRACE);const a=t.activeSubplot.state;if(a.empty||a.size!==1){this.instructionContext=t.activeSubplot,this.plotContext.push(t.activeSubplot),this.plotContext.push(t.activeSubplot.activeTrace);return}this.instructionContext=t.activeSubplot.activeTrace,this.plotContext.push(t.activeSubplot.activeTrace)}dispose(){this.plotContext.clear(),this.scopeContext.clear()}get active(){return this.plotContext.peek()}get state(){return this.active.state}toggleScope(t){this.scopeContext.clear(),this.scopeContext.push(t),li.setScope(t)}get scope(){return this.scopeContext.peek()}isMovable(t){return this.active.isMovable(t)}moveOnce(t){this.active.moveOnce(t)}moveToExtreme(t){this.active.moveToExtreme(t)}moveToIndex(t,n){this.active.moveToIndex(t,n)}moveToPoint(t,n){this.active.moveToPoint(t,n)}stepTrace(t){if(this.plotContext.size()>1){this.plotContext.pop();const n=this.active,a=n.activeTrace;if(!a)return;const o=a.getCurrentXValue();n.moveOnce(t);const s=n.activeTrace;if(this.plotContext.push(s),s.getId()===a.getId()){s.notifyOutOfBounds(),n.notifyOutOfBounds();return}if(s.moveToXValue(o),s.state.empty)s.notifyStateUpdate();else{const f=n.getRow()+1,d=n.getSize(),m={...s.state,isLayerSwitch:!0,index:f,size:d};s.notifyObserversWithState(m)}}else{const n=this.figure.subplots[0][0];this.active.notifyOutOfBounds(),n.notifyOutOfBounds()}}enterSubplot(){if(this.active.state.type==="figure"){const n=this.active;this.plotContext.push(n.activeSubplot);const a=n.activeSubplot.activeTrace;a.resetToInitialEntry(),this.plotContext.push(a),this.toggleScope(pn.TRACE)}}exitSubplot(){this.plotContext.size()>2&&(this.plotContext.pop(),this.plotContext.pop(),this.active.notifyStateUpdate(),this.toggleScope(pn.SUBPLOT))}getInstruction(t){const n=this.instructionContext.state;if(n.empty)return`No ${n.type} info available`;const a=t?"Click to activate.":xe.EMPTY;switch(n.type){case"figure":return`This is a maidr figure containing ${n.size} subplots. ${a} Use arrow keys to navigate subplots and press 'ENTER'.`;case"subplot":return`This is a maidr plot containing ${n.size} layers, and this is layer 1 of ${n.size}: ${n.trace.traceType} plot. ${a} Use Arrows to navigate data points. Toggle B for Braille, T for Text, S for Sonification, and R for Review mode.`;case"trace":{let o=n.plotType;n.plotType==="multiline"&&n.groupCount===1&&(o="single line");const s=o==="multiline"&&n.groupCount?` with ${n.groupCount} groups`:"";return`This is a maidr plot of type: ${o}${s}. ${a} Use Arrows to navigate data points. Toggle B for Braille, T for Text, S for Sonification, and R for Review mode.`}}}}var Gr=(e=>(e.VERTICAL="vert",e.HORIZONTAL="horz",e))(Gr||{}),Ar=(e=>(e.BAR="bar",e.BOX="box",e.CANDLESTICK="candlestick",e.DODGED="dodged_bar",e.HEATMAP="heat",e.HISTOGRAM="hist",e.LINE="line",e.NORMALIZED="stacked_normalized_bar",e.SCATTER="point",e.SMOOTH="smooth",e.STACKED="stacked_bar",e))(Ar||{});function cie(e){return e!==null&&typeof e=="object"&&"x"in e}function fie(e){return typeof e=="string"||typeof e=="number"}function die(e){return e!==null&&typeof e=="object"&&"x"in e}class t_{computeIndexAndSegment(t,n,a,o){return a===Gr.HORIZONTAL?{pointIndex:t,segmentType:o[n]}:{pointIndex:n,segmentType:o[t]}}computeVisualCoordinates(t,n,a){return a===Gr.HORIZONTAL?{row:t,col:n}:{row:n,col:t}}extractXValueFromPoints(t,n,a){if(Array.isArray(t)&&t.length===1&&Array.isArray(t[0])){const o=t[0][a];return this.extractXFromPoint(o)}if(Array.isArray(t)&&Array.isArray(t[n])&&t[n][a]){const o=t[n][a];return this.extractXFromPoint(o)}return null}extractXValueFromValues(t,n,a){if(this.isValidPosition(t,n,a)){const o=t[n][a];return this.extractXFromValue(o)}return null}moveToXValueInPoints(t,n,a){if(Array.isArray(t)&&t.length===1&&Array.isArray(t[0])){const m=this.findPointIndexByX(t[0],n);if(m!==-1)return a(0,m),!0;{const y=this.findNearestPointIndexByX(t[0],n);if(y!==-1){const x=yu(t[0][y]);if(typeof n=="number"&&typeof x=="number")return a(0,y),!0;if(typeof n=="string"&&typeof x=="string")return a(0,y),!0}}}let o=-1,s=-1,f=Number.POSITIVE_INFINITY,d=null;if(Array.isArray(t))for(let m=0;m<t.length;m++){const y=t[m];if(Array.isArray(y)){const x=this.findPointIndexByX(y,n);if(x!==-1)return a(m,x),!0;const S=this.findNearestPointIndexByX(y,n);if(S!==-1){const w=yu(y[S]);let T=Number.POSITIVE_INFINITY;typeof n=="number"&&typeof w=="number"?(T=Math.abs(w-n),T<f&&(f=T,o=m,s=S,d="numeric")):typeof n=="string"&&typeof w=="string"?o===-1&&(o=m,s=S,d="categorical"):o===-1&&(o=m,s=S,d="generic")}}}if(o!==-1&&s!==-1){const m=t[o];if(Array.isArray(m)&&yu(m[s]),d!==null)return a(o,s),!0}return!1}moveToXValueInValues(t,n,a){let o=-1,s=-1,f=Number.POSITIVE_INFINITY,d=null;for(let m=0;m<t.length;m++)for(let y=0;y<t[m].length;y++){const x=t[m][y],S=this.extractXFromValue(x);if(S===n)return a(m,y),!0;if(typeof n=="number"&&typeof S=="number"){const w=Math.abs(S-n);w<f&&(f=w,o=m,s=y,d="numeric")}else typeof n=="string"&&typeof S=="string"?o===-1&&(o=m,s=y,d="categorical"):o===-1&&(o=m,s=y,d="generic")}return o!==-1&&s!==-1?(this.extractXFromValue(t[o][s]),a(o,s),!0):!1}extractXFromPoint(t){return die(t)?t.x:null}extractXFromValue(t){return cie(t)?t.x:fie(t)?t:null}findPointIndexByX(t,n){return t.findIndex(a=>a.x===n)}isValidPosition(t,n,a){return n>=0&&n<t.length&&a>=0&&a<t[n].length}findNearestPointIndexByX(t,n){if(typeof n=="number"){let a=-1,o=Number.POSITIVE_INFINITY;for(let s=0;s<t.length;s++){const f=yu(t[s]);if(typeof f=="number"){const d=Math.abs(f-n);d<o&&(o=d,a=s)}else if(typeof f=="string"){const d=Number(f);if(!Number.isNaN(d)){const m=Math.abs(d-n);m<o&&(o=m,a=s)}}}if(a!==-1)return yu(t[a]),a}else if(typeof n=="string"){for(let o=0;o<t.length;o++)if(yu(t[o])===n)return o;const a=Number(n);if(!Number.isNaN(a)){let o=-1,s=Number.POSITIVE_INFINITY;for(let f=0;f<t.length;f++){const d=yu(t[f]);if(typeof d=="number"){const m=Math.abs(d-a);m<s&&(s=m,o=f)}else if(typeof d=="string"){const m=Number(d);if(!Number.isNaN(m)){const y=Math.abs(m-a);y<s&&(s=y,o=f)}}}if(o!==-1)return yu(t[o]),o}for(let o=0;o<t.length;o++)if(typeof yu(t[o])=="string")return o}return t.length>0?(yu(t[0]),0):-1}dispose(){}}function pie(e){return e&&typeof e=="object"&&"x"in e&&"y"in e}function hie(e){return e&&typeof e=="object"&&typeof e.x=="number"&&typeof e.y=="number"}function mie(e){return e&&typeof e=="object"&&"xMin"in e&&"xMax"in e}function gie(e){return e&&typeof e=="object"&&"x"in e&&"y"in e}function yie(e){return e&&typeof e=="object"&&typeof e.x=="number"&&typeof e.y=="number"}function vie(e){return e&&typeof e=="object"&&"value"in e}function yu(e){return e?pie(e)||hie(e)||gie(e)||yie(e)||mie(e)?e.x:vie(e)?e.value:null:null}const bie="unavailable",xie="X",Sie="Y",Eie="unavailable";class oT{constructor(){Q(this,"observers");Q(this,"isInitialEntry");Q(this,"isOutOfBounds");Q(this,"row");Q(this,"col");this.observers=new Array,this.isInitialEntry=!0,this.isOutOfBounds=!1,this.row=0,this.col=0}dispose(){for(const t of this.observers)this.removeObserver(t);this.observers.length=0}moveOnce(t){if(this.isInitialEntry){this.handleInitialEntry(),this.notifyStateUpdate();return}if(!this.isMovable(t)){this.notifyOutOfBounds();return}switch(t){case"UPWARD":this.row+=1;break;case"DOWNWARD":this.row-=1;break;case"FORWARD":this.col+=1;break;case"BACKWARD":this.col-=1;break}this.notifyStateUpdate()}getSafeIndices(){var o;const t=this.values,n=this.row>=0&&this.row<t.length?this.row:0,a=this.col>=0&&this.col<(((o=t[n])==null?void 0:o.length)||0)?this.col:0;return{row:n,col:a}}moveToExtreme(t){var n;switch(this.isInitialEntry&&this.handleInitialEntry(),t){case"UPWARD":this.row=this.values.length-1;break;case"DOWNWARD":this.row=0;break;case"FORWARD":{const{row:a}=this.getSafeIndices();this.col=(n=this.values[a])!=null&&n.length?this.values[a].length-1:0;break}case"BACKWARD":this.col=0;break}this.notifyStateUpdate()}moveToIndex(t,n){this.isMovable([t,n])&&(this.row=t,this.col=n,this.isInitialEntry=!1,this.notifyStateUpdate())}isMovable(t){var n,a;if(Array.isArray(t)){const[o,s]=t,{row:f}=this.getSafeIndices();return o>=0&&o<this.values.length&&s>=0&&s<(((n=this.values[f])==null?void 0:n.length)||0)}switch(t){case"UPWARD":return this.row<this.values.length-1;case"DOWNWARD":return this.row>0;case"FORWARD":{const{row:o}=this.getSafeIndices();return this.col<(((a=this.values[o])==null?void 0:a.length)||0)-1}case"BACKWARD":return this.col>0}}handleInitialEntry(){var n;this.isInitialEntry=!1,this.row=Math.max(0,Math.min(this.row,this.values.length-1));const{row:t}=this.getSafeIndices();this.col=Math.max(0,Math.min(this.col,(((n=this.values[t])==null?void 0:n.length)||0)-1))}ensureInitialized(){this.isInitialEntry&&(this.handleInitialEntry(),this.notifyStateUpdate())}resetToInitialEntry(){this.isInitialEntry=!0,this.row=0,this.col=0}addObserver(t){this.observers.push(t)}removeObserver(t){this.observers=this.observers.filter(n=>n!==t)}notifyStateUpdate(){const t=this.state;for(const n of this.observers)n.update(t)}notifyOutOfBounds(){this.isOutOfBounds=!0,this.notifyStateUpdate(),this.isOutOfBounds=!1}notifyObserversWithState(t){for(const n of this.observers)n.update(t)}moveToPoint(t,n){}}class H0 extends oT{constructor(n){var a,o,s;super();Q(this,"id");Q(this,"type");Q(this,"title");Q(this,"xAxis");Q(this,"yAxis");Q(this,"fill");Q(this,"navigationService");this.navigationService=new t_,this.id=n.id,this.type=n.type,this.title=n.title??bie,this.xAxis=((a=n.axes)==null?void 0:a.x)??xie,this.yAxis=((o=n.axes)==null?void 0:o.y)??Sie,this.fill=((s=n.axes)==null?void 0:s.fill)??Eie}dispose(){this.values.length=0,this.highlightValues&&(this.highlightValues.forEach(n=>n.forEach(a=>{(Array.isArray(a)?a:[a]).forEach(s=>s.remove())})),this.highlightValues.length=0),super.dispose()}get state(){var n;if(this.isOutOfBounds){const a=this.values,o=this.row,s=this.col;return{empty:!0,type:"trace",traceType:this.type,audio:{size:((n=a[o])==null?void 0:n.length)||0,index:s}}}return{empty:!1,type:"trace",traceType:this.type,plotType:this.type,title:this.title,xAxis:this.xAxis,yAxis:this.yAxis,fill:this.fill,hasMultiPoints:this.hasMultiPoints(),audio:this.audio(),braille:this.braille(),text:this.text(),autoplay:this.autoplay,highlight:this.highlight()}}highlight(){var n;if(this.highlightValues===null||this.isInitialEntry){const a=this.values,o=this.row,s=this.col;return{empty:!0,type:"trace",traceType:this.type,audio:{size:((n=a[o])==null?void 0:n.length)||0,index:s}}}return{empty:!1,elements:this.highlightValues[this.row][this.col]}}getAudioGroupIndex(){return this.values&&this.values.length>1?{groupIndex:this.row}:{}}get autoplay(){var o;const{row:n}=this.getSafeIndices(),a=((o=this.values[n])==null?void 0:o.length)||0;return{UPWARD:this.values.length,DOWNWARD:this.values.length,FORWARD:a,BACKWARD:a}}hasMultiPoints(){return!1}getExtremaTargets(){return[]}navigateToExtrema(n){if(this.supportsExtrema)throw new Error("Extrema navigation not implemented by this plot type")}finalizeExtremaNavigation(){this.isInitialEntry&&(this.isInitialEntry=!1),this.updateVisualPointPosition(),this.notifyStateUpdate()}updateVisualPointPosition(){}supportsExtremaNavigation(){return this.supportsExtrema}getCurrentXValue(){if(this.hasPointsArray()){const n=this.getPointsArray();if(this.isValidPointsArray(n))return this.navigationService.extractXValueFromPoints(n,this.row,this.col)}if(this.hasValuesArray()){const n=this.values;if(this.isValidValuesArray(n))return this.navigationService.extractXValueFromValues(n,this.row,this.col)}return null}moveToXValue(n){if(this.hasPointsArray()){const a=this.getPointsArray();if(this.isValidPointsArray(a))return this.navigationService.moveToXValueInPoints(a,n,this.moveToIndex.bind(this))}if(this.hasValuesArray()){const a=this.values;if(this.isValidValuesArray(a))return this.navigationService.moveToXValueInValues(a,n,this.moveToIndex.bind(this))}return!1}hasPointsArray(){return"points"in this&&this.points!==void 0}hasValuesArray(){return"values"in this&&this.values!==void 0}getPointsArray(){return this.points}isValidPointsArray(n){return Array.isArray(n)&&n.length>0}isValidValuesArray(n){return Array.isArray(n)&&n.length>0}getId(){return this.id}moveToPoint(n,a){if(this.type===Ar.BOX)return;const o=this.findNearestPoint(n,a);if(o&&this.isPointInBounds(n,a,o)){if(this.row===o.row&&this.col===o.col)return;this.moveToIndex(o.row,o.col)}}isPointInBounds(n,a,{element:o,row:s,col:f}){const d=o.getBoundingClientRect();let m=12;return(this.type===Ar.HEATMAP||this.type===Ar.BAR||this.type===Ar.STACKED||this.type===Ar.HISTOGRAM)&&(m=0),n>=d.x-m&&n<=d.x+d.width+m&&a>=d.y-m&&a<=d.y+d.height+m}}class mi{constructor(){}static safeMin(t){return t.length===0?1/0:Math.min(...t)}static safeMax(t){return t.length===0?-1/0:Math.max(...t)}static minFrom2D(t){const n=t.flat();return this.safeMin(n)}static maxFrom2D(t){const n=t.flat();return this.safeMax(n)}static minMax(t){if(t.length===0)return{min:1/0,max:-1/0};let n=t[0],a=t[0];for(let o=1;o<t.length;o++){const s=t[o];s<n&&(n=s),s>a&&(a=s)}return{min:n,max:a}}static minMaxFrom2D(t){const n=t.flat();return this.minMax(n)}}class _x{constructor(){}static parse(t){const n=t.replace(/\s/g,"").toLowerCase();if(/^#(?:[a-f0-9]{3}){1,2}$/.test(n)){let o=n.substring(1).split("");return o.length===3&&(o=[o[0],o[0],o[1],o[1],o[2],o[2]]),{r:Number.parseInt(o[0]+o[1],16),g:Number.parseInt(o[2]+o[3],16),b:Number.parseInt(o[4]+o[5],16)}}const a=n.match(/^rgba?\((\d+),(\d+),(\d+)(?:,\d*(?:\.\d*)?)?\)$/);return a?{r:Number.parseInt(a[1],10),g:Number.parseInt(a[2],10),b:Number.parseInt(a[3],10)}:null}static invert(t){return{r:255-t.r,g:255-t.g,b:255-t.b}}static getContrastRatio(t,n){const a=this.calculateLuminance(t),o=this.calculateLuminance(n);return(Math.max(a,o)+.05)/(Math.min(a,o)+.05)}static calculateLuminance(t){const[n,a,o]=[t.r,t.g,t.b].map(s=>{const f=s/255;return f<=.03928?f/12.92:((f+.055)/1.055)**2.4});return .2126*n+.7152*a+.0722*o}static rgbToString(t){return`rgb(${t.r}, ${t.g}, ${t.b})`}}class on{constructor(){}static async toBase64(t){try{const n=new XMLSerializer().serializeToString(t).replace(/>\s+</g,"> <").replace(/\s{2,}/g," ").trim(),o=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(n).replace(/'/g,"%27").replace(/"/g,"%22")}`,s=await new Promise((m,y)=>{const x=new Image;x.onload=()=>m(x),x.onerror=()=>y(new Error("Failed to load SVG image")),x.src=o}),f=document.createElement("canvas");[f.width,f.height]=[s.naturalWidth,s.naturalHeight];const d=f.getContext("2d");return d?(d.drawImage(s,0,0),f.toDataURL("image/jpeg",.92)):(console.error("Error converting SVG to Base 64: Canvas context unavailable"),"")}catch(n){return console.error("Error converting SVG to Base 64:",n instanceof Error?n.message:n),""}}static selectAllElements(t,n=!0){return Array.from(document.querySelectorAll(t)).map(a=>{if(!n)return a;const o=a.cloneNode(!0);return o.setAttribute(xe.VISIBILITY,xe.HIDDEN),a.insertAdjacentElement(xe.AFTER_END,o),o})}static selectElement(t,n=!0){const a=document.querySelector(t);if(!n)return a;const o=a==null?void 0:a.cloneNode(!0);return o==null||o.setAttribute(xe.VISIBILITY,xe.HIDDEN),a==null||a.insertAdjacentElement(xe.AFTER_END,o),o}static createEmptyElement(t="rect"){const n=document.createElementNS(this.SVG_NAMESPACE,t);return n.setAttribute(xe.FILL,xe.TRANSPARENT),n.setAttribute(xe.STROKE,xe.TRANSPARENT),n.setAttribute(xe.VISIBILITY,xe.HIDDEN),n}static createCircleElement(t,n,a){var y;const o=window.getComputedStyle(a),s=o.stroke||o.fill,f=o.strokeWidth||"2",d=Number.parseFloat(f)*2,m=document.createElementNS(this.SVG_NAMESPACE,xe.CIRCLE);return m.setAttribute(xe.CIRCLE_X,String(t)),m.setAttribute(xe.CIRCLE_Y,String(n)),m.setAttribute(xe.RADIUS,String(d)),m.setAttribute(xe.FILL,s),m.setAttribute(xe.STROKE,s),m.setAttribute(xe.STROKE_WIDTH,f),m.setAttribute(xe.VISIBILITY,xe.HIDDEN),(y=a.parentElement)==null||y.insertAdjacentElement(xe.AFTER_END,m),m}static createLineElement(t,n){const o=t.getBBox();let s,f,d,m;switch(n){case"top":[s,f,d,m]=[o.x,o.y,o.x+o.width,o.y];break;case"bottom":[s,f,d,m]=[o.x,o.y+o.height,o.x+o.width,o.y+o.height];break;case"left":[s,f,d,m]=[o.x,o.y,o.x,o.y+o.height];break;case"right":[s,f,d,m]=[o.x+o.width,o.y,o.x+o.width,o.y+o.height];break}const y=window.getComputedStyle(t),x=document.createElementNS(this.SVG_NAMESPACE,xe.LINE);return x.setAttribute(xe.X1,String(s)),x.setAttribute(xe.Y1,String(f)),x.setAttribute(xe.X2,String(d)),x.setAttribute(xe.Y2,String(m)),x.setAttribute(xe.STROKE,y.stroke),x.setAttribute(xe.STROKE_WIDTH,y.strokeWidth||"2"),x.setAttribute(xe.VISIBILITY,xe.HIDDEN),t.insertAdjacentElement(xe.AFTER_END,x),x}static createHighlightElement(t,n){const a=t.cloneNode(!0),o=t.tagName.toLowerCase(),s=o===xe.POLYLINE||o===xe.LINE,f=s?window.getComputedStyle(t).getPropertyValue(xe.STROKE):window.getComputedStyle(t).getPropertyValue(xe.FILL),d=this.getHighlightColor(f,n);if(a.setAttribute(xe.VISIBILITY,xe.VISIBLE),a.setAttribute(xe.STROKE,d),a.setAttribute(xe.FILL,d),a.style.fill=d,a.style.stroke=d,s){const m=window.getComputedStyle(a).getPropertyValue(xe.STROKE_WIDTH);a.setAttribute(xe.STROKE_WIDTH,`${m+2}`)}return t.insertAdjacentElement(xe.AFTER_END,a),a}static getHighlightColor(t,n){const a=_x.parse(t);if(!a||!(_x.getContrastRatio(a,xe.HIGHLIGHT_BASE_COLOR)<xe.HIGHLIGHT_CONTRAST_RATIO))return n;const f={...a};return a.r===a.g&&a.g===a.b?(f.r=Math.min(xe.HIGHLIGHT_MAX_COLOR,Math.floor(a.r*xe.HIGHLIGHT_COLOR_RATIO)),f.g=Math.min(xe.HIGHLIGHT_MAX_COLOR,Math.floor(a.g*xe.HIGHLIGHT_COLOR_RATIO)),f.b=Math.min(xe.HIGHLIGHT_MAX_COLOR,Math.floor(a.b*xe.HIGHLIGHT_COLOR_RATIO))):a.r>=a.g&&a.r>=a.b?f.r=Math.min(xe.HIGHLIGHT_MAX_COLOR,Math.floor(a.r*xe.HIGHLIGHT_COLOR_RATIO)):a.g>=a.r&&a.g>=a.b?f.g=Math.min(xe.HIGHLIGHT_MAX_COLOR,Math.floor(a.g*xe.HIGHLIGHT_COLOR_RATIO)):f.b=Math.min(xe.HIGHLIGHT_MAX_COLOR,Math.floor(a.b*xe.HIGHLIGHT_COLOR_RATIO)),_x.rgbToString(f)}static getContrastingColorForElement(t){const n=window.getComputedStyle(t).fill||"rgb(255,255,255)",a=_x.parse(n);return a?(.2126*a.r+.7152*a.g+.0722*a.b)/255>.5?"#000":"#fff":"#000"}static setSubplotHighlightCss(t,n){t.style.outline=`4px solid ${n}`,t.style.outlineOffset="3px",t.style.borderRadius="3px",t.style.overflow="visible"}static removeSubplotHighlightCss(t){t.style.removeProperty("outline"),t.style.removeProperty("outline-offset"),t.style.removeProperty("border-radius"),t.style.removeProperty("overflow")}static setSubplotHighlightSvgWithAdaptiveColor(t,n,a){const o=t.querySelector("rect, path");let s="";if(o){s=window.getComputedStyle(o).getPropertyValue("fill"),(!s||s==="none"||s==="transparent"||s==="rgba(0, 0, 0, 0)")&&(a?s=window.getComputedStyle(a).getPropertyValue("fill"):s=n);const f=this.getHighlightColor(s,n);o.setAttribute("stroke",f),o.setAttribute("stroke-width","4")}}static removeSubplotHighlightSvg(t){const n=t.querySelector("rect, path");n&&(n.removeAttribute("stroke"),n.removeAttribute("stroke-width"))}}Q(on,"SVG_NAMESPACE","http://www.w3.org/2000/svg");class lT extends H0{constructor(n,a){super(n);Q(this,"points");Q(this,"barValues");Q(this,"highlightValues");Q(this,"highlightCenters");Q(this,"orientation");Q(this,"min");Q(this,"max");Q(this,"supportsExtrema",!0);this.points=a,this.orientation=n.orientation??Gr.VERTICAL,this.barValues=a.map(o=>o.map(s=>this.orientation===Gr.VERTICAL?Number(s.y):Number(s.x))),this.min=this.barValues.map(o=>mi.safeMin(o)),this.max=this.barValues.map(o=>mi.safeMax(o)),this.highlightValues=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters()}dispose(){this.points.length=0,this.min.length=0,this.max.length=0,super.dispose()}get values(){return this.barValues}audio(){const n=this.orientation===Gr.VERTICAL,a=n?this.barValues[this.row].length:this.barValues.length,o=n?this.col:this.row,s=n?this.barValues[this.row][this.col]:this.barValues[this.col][this.row];return{min:mi.safeMin(this.min),max:mi.safeMax(this.max),size:a,index:o,value:s,...this.getAudioGroupIndex()}}braille(){return{empty:!1,id:this.id,values:this.barValues,min:this.min,max:this.max,row:this.row,col:this.col}}text(){const n=this.orientation===Gr.VERTICAL,a=this.points[this.row][this.col],o=n?this.xAxis:this.yAxis,s=n?a.x:a.y,f=n?this.yAxis:this.xAxis,d=n?a.y:a.x;return{main:{label:o,value:s},cross:{label:f,value:d}}}mapToSvgElements(n){if(!n)return null;const a=[on.selectAllElements(n)];if(a.length!==this.points.length)return null;for(let o=0;o<this.points.length;o++)if(a[o].length!==this.points[o].length)return null;return a}mapSvgElementsToCenters(){let n;if(n=this.highlightValues,!n)return null;const a=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const f=n[o][s],d=Array.isArray(f)?f[0]:f,m=d.getBoundingClientRect();d&&a.push({x:m.x+m.width/2,y:m.y+m.height/2,row:o,col:s,element:d})}return a}findNearestPoint(n,a){if(!this.highlightValues)return null;for(let o=0;o<this.highlightValues.length;o++)for(let s=0;s<this.highlightValues[o].length;s++){const f=this.highlightValues[o][s],d=Array.isArray(f)?f[0]:f,m=d.getBoundingClientRect();if(n>=m.x&&n<=m.x+m.width&&a>=m.y&&a<=m.y+m.height)return{element:d,row:o,col:s}}return null}}class Tie extends lT{isPointInBounds(t,n,{element:a,row:o,col:s}){const f=a.getBoundingClientRect();return t>=f.x&&t<=f.x+f.width&&n>=f.y&&n<=f.y+f.height}constructor(t){super(t,[t.data])}getExtremaTargets(){const t=[],n=this.row;if(n<0||n>=this.barValues.length)return t;const a=this.barValues[n];if(!a||a.length===0)return t;const o=this.min[n],s=this.max[n],f=a.indexOf(s),d=a.indexOf(o);return t.push({label:`Max Bar at ${this.getPointLabel(f)}`,value:s,pointIndex:f,segment:"bar",type:"max",navigationType:"point"}),t.push({label:`Min Bar at ${this.getPointLabel(d)}`,value:o,pointIndex:d,segment:"bar",type:"min",navigationType:"point"}),t}navigateToExtrema(t){this.col=t.pointIndex,this.finalizeExtremaNavigation()}getPointLabel(t){if(this.points[this.row]&&this.points[this.row][t]){const n=this.points[this.row][t];return this.orientation===Gr.VERTICAL?`${n.x}`:`${n.y}`}return`Point ${t}`}updateVisualPointPosition(){const{row:t,col:n}=this.getSafeIndices();this.row=t,this.col=n}}const us={LOWER_OUTLIER:"Lower outlier(s)",MIN:"Minimum",Q1:"25%",Q2:"50%",Q3:"75%",MAX:"Maximum",UPPER_OUTLIER:"Upper outlier(s)"};class wie extends H0{constructor(n){super(n);Q(this,"supportsExtrema",!1);Q(this,"points");Q(this,"boxValues");Q(this,"highlightValues");Q(this,"highlightCenters");Q(this,"orientation");Q(this,"sections");Q(this,"min");Q(this,"max");this.points=n.data,this.orientation=n.orientation??Gr.VERTICAL,this.sections=[us.LOWER_OUTLIER,us.MIN,us.Q1,us.Q2,us.Q3,us.MAX,us.UPPER_OUTLIER];const a=[s=>s.lowerOutliers,s=>s.min,s=>s.q1,s=>s.q2,s=>s.q3,s=>s.max,s=>s.upperOutliers];this.orientation===Gr.HORIZONTAL?this.boxValues=this.points.map(s=>a.map(f=>f(s))):this.boxValues=a.map(s=>this.points.map(f=>s(f)));const o=this.boxValues.map(s=>s.flatMap(f=>Array.isArray(f)?f:[f]));this.min=mi.minFrom2D(o),this.max=mi.maxFrom2D(o),this.row=this.boxValues.length-1,this.highlightValues=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters()}dispose(){this.points.length=0,this.sections.length=0,super.dispose()}moveToIndex(n,a){const o=this.orientation===Gr.HORIZONTAL;n=o?n:a,a=o?a:n,super.moveToIndex(n,a)}get values(){return this.boxValues}audio(){const n=this.boxValues[this.row][this.col],a=Array.isArray(n)?n.map(o=>o-this.min):n-this.min;return{min:this.min,max:this.max,value:n,size:this.max-this.min,index:a}}braille(){const n=this.orientation===Gr.HORIZONTAL,a=n?this.row:this.col,o=n?this.col:this.row;return{empty:!1,id:this.id,values:this.points,min:this.min,max:this.max,row:a,col:o}}text(){const n=this.orientation===Gr.HORIZONTAL,a=n?this.points[this.row]:this.points[this.col],o=n?this.yAxis:this.xAxis,s=n?this.sections[this.col]:this.sections[this.row],f=n?this.xAxis:this.yAxis,d=this.boxValues[this.row][this.col];return{main:{label:o,value:a.fill},cross:{label:f,value:d},section:s}}mapToSvgElements(n){if(!n||n.length!==this.points.length)return null;const a=this.orientation===Gr.VERTICAL,o=new Array;if(a)for(let s=0;s<this.sections.length;s++)o.push(Array.from({length:n.length}));return n.forEach((s,f)=>{const d=s.lowerOutliers.flatMap(M=>on.selectAllElements(M)),m=s.upperOutliers.flatMap(M=>on.selectAllElements(M)),y=on.selectElement(s.min)??on.createEmptyElement(),x=on.selectElement(s.max)??on.createEmptyElement(),S=on.selectElement(s.iq)??on.createEmptyElement(),w=on.selectElement(s.q2)??on.createEmptyElement(),[T,C]=a?[on.createLineElement(S,"top"),on.createLineElement(S,"bottom")]:[on.createLineElement(S,"left"),on.createLineElement(S,"right")],R=[d,y,T,w,C,x,m];a?R.forEach((M,_)=>{o[_][f]=M}):o.push(R)}),o}mapSvgElementsToCenters(){let n;if(n=this.highlightValues,!n)return null;const a=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const f=n[o][s],d=Array.isArray(f)?f[0]:f;if(d){const m=d.getBoundingClientRect();a.push({x:m.x+m.width/2,y:m.y+m.height/2,row:o,col:s,element:d})}}return a}findNearestPoint(n,a){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let f=0;f<this.highlightCenters.length;f++){const d=this.highlightCenters[f],m=Math.hypot(d.x-n,d.y-a);m<o&&(o=m,s=f)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}}const Aie="trend",n_=100;class Cie extends H0{constructor(n){super(n);Q(this,"supportsExtrema",!0);Q(this,"candles");Q(this,"candleValues");Q(this,"orientation");Q(this,"sections",["volatility","open","high","low","close"]);Q(this,"currentSegmentType","open");Q(this,"currentPointIndex",0);Q(this,"sortedSegmentsByPoint");Q(this,"segmentPositionMaps");Q(this,"min");Q(this,"max");Q(this,"highlightValues");Q(this,"highlightCenters");Q(this,"navigationService");this.navigationService=new t_;const a=n.data;this.candles=a.map(o=>({...o,volatility:Math.round((o.high-o.low)*n_)/n_,trend:o.close>o.open?"Bull":o.close<o.open?"Bear":"Neutral"})),this.orientation=n.orientation??Gr.VERTICAL,this.candleValues=this.sections.map(o=>this.candles.map(s=>s[o])),this.min=mi.minFrom2D(this.candleValues),this.max=mi.maxFrom2D(this.candleValues),this.sortedSegmentsByPoint=this.precomputeSortedSegments(),this.segmentPositionMaps=this.precomputePositionMaps(),this.currentPointIndex=0,this.currentSegmentType="close",this.orientation===Gr.HORIZONTAL?this.col=0:this.row=0,this.highlightValues=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters()}precomputeSortedSegments(){return this.candles.map(n=>["volatility",...["low","open","close","high"].map(s=>[s,n[s]]).sort((s,f)=>s[1]-f[1]).map(s=>s[0])])}precomputePositionMaps(){return this.sortedSegmentsByPoint.map(n=>{const a=new Map;return n.forEach((o,s)=>{a.set(o,s)}),a})}getSegmentPositionInSortedOrder(n,a){return this.segmentPositionMaps[n].get(a)??0}getSegmentTypeAtSortedPosition(n,a){return this.sortedSegmentsByPoint[n][a]??"open"}updateVisualSegmentPosition(){const a=this.sortedSegmentsByPoint[this.currentPointIndex].indexOf(this.currentSegmentType??"open");this.orientation===Gr.HORIZONTAL?this.col=a:this.row=a}updateVisualPointPosition(){this.orientation===Gr.HORIZONTAL?this.row=this.currentPointIndex:this.col=this.currentPointIndex,this.updateVisualSegmentPosition()}handleInitialEntry(){this.isInitialEntry=!1,this.currentPointIndex=Math.max(0,Math.min(this.currentPointIndex,this.candles.length-1)),this.currentSegmentType="close",this.updateVisualSegmentPosition()}moveOnce(n){if(this.isInitialEntry){this.handleInitialEntry(),this.notifyStateUpdate();return}if(!this.isMovable(n)){this.notifyOutOfBounds();return}switch(n){case"UPWARD":case"DOWNWARD":{const a=this.sortedSegmentsByPoint[this.currentPointIndex],o=a.indexOf(this.currentSegmentType??"open");if(o===-1){this.notifyOutOfBounds();return}const s=n==="UPWARD"?o+1:o-1;if(s>=0&&s<a.length)this.currentSegmentType=a[s],this.updateVisualSegmentPosition();else{this.notifyOutOfBounds();return}break}case"FORWARD":case"BACKWARD":{const a=n==="FORWARD"?this.currentPointIndex+1:this.currentPointIndex-1;if(a>=0&&a<this.candles.length)this.currentPointIndex=a,this.updateVisualPointPosition(),this.updateVisualSegmentPosition();else{this.notifyOutOfBounds();return}break}}this.notifyStateUpdate()}moveToExtreme(n){switch(this.isInitialEntry&&this.handleInitialEntry(),n){case"UPWARD":{const a=this.sortedSegmentsByPoint[this.currentPointIndex];this.currentSegmentType=a[a.length-1],this.updateVisualSegmentPosition();break}case"DOWNWARD":{const a=this.sortedSegmentsByPoint[this.currentPointIndex];this.currentSegmentType=a[0],this.updateVisualSegmentPosition();break}case"FORWARD":{this.currentPointIndex=this.candles.length-1,this.updateVisualPointPosition(),this.updateVisualSegmentPosition();break}case"BACKWARD":{this.currentPointIndex=0,this.updateVisualPointPosition(),this.updateVisualSegmentPosition();break}}this.notifyStateUpdate()}moveToIndex(n,a){this.isInitialEntry&&this.handleInitialEntry();const{pointIndex:o,segmentType:s}=this.navigationService.computeIndexAndSegment(n,a,this.orientation,this.sections);this.currentPointIndex=o,this.currentSegmentType=s,this.row=n,this.col=a,this.updateVisualSegmentPosition(),this.updateVisualPointPosition(),this.notifyStateUpdate()}isMovable(n){if(Array.isArray(n))return super.isMovable(n);if(this.isInitialEntry)return!0;switch(n){case"UPWARD":case"DOWNWARD":{const a=this.sortedSegmentsByPoint[this.currentPointIndex],o=a.indexOf(this.currentSegmentType??"open"),s=n==="UPWARD"?o+1:o-1;return s>=0&&s<a.length}case"FORWARD":case"BACKWARD":{const a=n==="FORWARD"?this.currentPointIndex+1:this.currentPointIndex-1;return a>=0&&a<this.candles.length}}}dispose(){this.navigationService.dispose(),this.candles.length=0,super.dispose()}get values(){return this.candleValues}audio(){let n;return this.currentSegmentType==="volatility"?n=this.candles[this.currentPointIndex].volatility:this.currentSegmentType?n=this.candles[this.currentPointIndex][this.currentSegmentType]:n=this.candles[this.currentPointIndex].open,{min:this.min,max:this.max,size:this.candles.length,index:this.currentPointIndex,value:n,trend:this.candles[this.currentPointIndex].trend}}braille(){const n=this.candles.map(f=>f.trend),a=this.getSegmentPositionInSortedOrder(this.currentPointIndex,this.currentSegmentType??this.sections[0]);this.row=a;const o=this.candleValues.map(f=>Math.min(...f)),s=this.candleValues.map(f=>Math.max(...f));return{empty:!1,id:this.id,values:this.candleValues,min:o,max:s,row:this.row,col:this.col,custom:n}}collectElements(n){if(!n)return[];const a=Array.isArray(n)?n:[n],o=[];for(const s of a)o.push(...on.selectAllElements(s));return o}getElementAt(n,a){return a<n.length?n[a]:null}mapToSvgElements(n){if(!n)return null;if(typeof n=="string"||Array.isArray(n)){const C=Array.isArray(n)?n[0]||"":n,R=on.selectAllElements(C),M=[];for(let _=0;_<this.sections.length;_++){M[_]=[];for(let N=0;N<this.candles.length;N++){const P=N<R.length?N:0;M[_][N]=R[P]}}return M}const a=n,o=this.candles.length,s=this.collectElements(a.body);let f=this.collectElements(a.wickHigh),d=this.collectElements(a.wickLow);if(f.length===0||d.length===0){const C=this.collectElements(a.wick);C.length>0&&(f.length===0&&(f=C),d.length===0&&(d=C))}const m=this.collectElements(a.open),y=this.collectElements(a.close),x=Array.from({length:o},()=>on.createEmptyElement()),S=Array.from({length:o},()=>on.createEmptyElement()),w=Array.from({length:o},()=>on.createEmptyElement());for(let C=0;C<o;C++){let R=this.getElementAt(m,C);if(!R){const _=this.getElementAt(s,C);if(_){const{open:N,close:P}=this.candles[C],B=P>N?"bottom":P<N?"top":"bottom";R=on.createLineElement(_,B)}else R=on.createEmptyElement()}x[C]=R;let M=this.getElementAt(y,C);if(!M){const _=this.getElementAt(s,C);if(_){const{open:N,close:P}=this.candles[C],B=P>N?"top":P<N?"bottom":"top";M=on.createLineElement(_,B)}else M=on.createEmptyElement()}S[C]=M,w[C]=on.createEmptyElement()}const T=Array.from({length:this.sections.length},()=>Array.from({length:o},()=>on.createEmptyElement()));for(let C=0;C<o;C++){const R=this.sortedSegmentsByPoint[C];for(let M=0;M<R.length;M++){const _=R[M];let N;switch(_){case"volatility":{const P=[],B=this.getElementAt(s,C),z=this.getElementAt(f,C)??B,$=this.getElementAt(d,C)??B;z&&P.push(z),B&&P.push(B),$&&P.push($);const X=Array.from(new Set(P));N=X.length>0?X:[on.createEmptyElement()]}break;case"open":N=x[C];break;case"close":N=S[C];break;case"high":N=this.getElementAt(f,C)??this.getElementAt(s,C)??on.createEmptyElement();break;case"low":N=this.getElementAt(d,C)??this.getElementAt(s,C)??on.createEmptyElement();break;default:N=on.createEmptyElement()}T[M][C]=N}}return T}text(){const n=this.candles[this.currentPointIndex];let a;return this.currentSegmentType==="volatility"?a=n.volatility:this.currentSegmentType?a=n[this.currentSegmentType]:a=n.open,{main:{label:this.orientation===Gr.HORIZONTAL?this.yAxis:this.xAxis,value:n.value},cross:{label:this.orientation===Gr.HORIZONTAL?this.xAxis:this.yAxis,value:a},section:this.currentSegmentType??"open",fill:{label:Aie,value:n.trend}}}getCurrentTrend(){return this.candles[this.currentPointIndex].trend}getCurrentXValue(){return this.currentPointIndex>=0&&this.currentPointIndex<this.candles.length?this.candles[this.currentPointIndex].value:null}moveToXValue(n){const a=this.candles.findIndex(o=>o.value===n);return a!==-1?(this.currentPointIndex=a,this.currentSegmentType="close",this.updateVisualPointPosition(),this.updateVisualSegmentPosition(),this.notifyStateUpdate(),!0):!1}getAvailableXValues(){return this.candles.map(n=>n.value)}getExtremaTargets(){const n=[],a=this.currentSegmentType??"open";if(a==="volatility"){const o=this.candles.map((y,x)=>({value:y.volatility,index:x})),s=Math.max(...o.map(y=>y.value)),f=o.filter(y=>y.value===s).map(y=>y.index),d=Math.min(...o.map(y=>y.value)),m=o.filter(y=>y.value===d).map(y=>y.index);f.forEach((y,x)=>{const S=this.candles[y];n.push({label:`Max Volatility at ${S.value}`,value:S.volatility,pointIndex:y,segment:"volatility",type:"max",navigationType:"point"})}),m.forEach((y,x)=>{const S=this.candles[y];n.push({label:`Min Volatility at ${S.value}`,value:S.volatility,pointIndex:y,segment:"volatility",type:"min",navigationType:"point"})})}else{const o=this.candles.map((y,x)=>({value:y[a],index:x,xValue:y.value})),s=Math.max(...o.map(y=>y.value)),f=o.filter(y=>y.value===s).map(y=>y.index),d=Math.min(...o.map(y=>y.value)),m=o.filter(y=>y.value===d).map(y=>y.index);f.forEach((y,x)=>{const S=this.candles[y],w=a.charAt(0).toUpperCase()+a.slice(1);n.push({label:`Max ${w} at ${S.value}`,value:S[a],pointIndex:y,segment:a,type:"max",navigationType:"point"})}),m.forEach((y,x)=>{const S=this.candles[y],w=a.charAt(0).toUpperCase()+a.slice(1);n.push({label:`Min ${w} at ${S.value}`,value:S[a],pointIndex:y,segment:a,type:"min",navigationType:"point"})})}return n}navigateToExtrema(n){this.currentPointIndex=n.pointIndex,this.currentSegmentType=n.segment,this.finalizeExtremaNavigation()}mapSvgElementsToCenters(){let n;if(n=this.highlightValues,!n)return null;const a=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const f=n[o][s],d=Array.isArray(f)?f[0]:f;if(d){const m=d.getBoundingClientRect();a.push({x:m.x+m.width/2,y:m.y+m.height/2,row:o,col:s,element:d})}}return a}findNearestPoint(n,a){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let f=0;f<this.highlightCenters.length;f++){const d=this.highlightCenters[f],m=Math.hypot(d.x-n,d.y-a);m<o&&(o=m,s=f)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}}class Oie extends H0{constructor(n){super(n);Q(this,"supportsExtrema",!1);Q(this,"heatmapValues");Q(this,"highlightValues");Q(this,"highlightCenters");Q(this,"x");Q(this,"y");Q(this,"min");Q(this,"max");const a=n.data;this.x=a.x,this.y=[...a.y].reverse(),this.heatmapValues=[...a.points].reverse();const{min:o,max:s}=mi.minMaxFrom2D(this.heatmapValues);this.min=o,this.max=s,this.highlightValues=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters()}dispose(){this.heatmapValues.length=0,this.x.length=0,this.y.length=0,super.dispose()}get values(){return this.heatmapValues}audio(){return{min:this.min,max:this.max,size:this.heatmapValues.length,index:this.col,value:this.heatmapValues[this.row][this.col]}}braille(){return{empty:!1,id:this.id,values:this.heatmapValues,min:this.min,max:this.max,row:this.row,col:this.col}}text(){return{main:{label:this.xAxis,value:this.x[this.col]},cross:{label:this.yAxis,value:this.y[this.row]},fill:{label:this.fill,value:String(this.heatmapValues[this.row][this.col])}}}mapToSvgElements(n){if(!n)return null;const a=this.heatmapValues.length,o=this.heatmapValues[0].length,s=on.selectAllElements(n);if(s.length===0||s.length!==a*o)return null;const f=new Array;if(s[0]instanceof SVGPathElement)for(let d=0;d<a;d++){const m=a-1-d,y=new Array;for(let x=0;x<o;x++){const S=m*o+x;y.push(s[S])}f.push(y)}else if(s[0]instanceof SVGRectElement)for(let d=0;d<a;d++){const m=new Array;for(let y=0;y<o;y++){const x=y*a+d;m.push(s[x])}f.push(m)}return f}mapSvgElementsToCenters(){let n;if(n=this.highlightValues,!n)return null;const a=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const f=n[o][s],d=Array.isArray(f)?f[0]:f;if(d){const m=d.getBoundingClientRect();a.push({x:m.x+m.width/2,y:m.y+m.height/2,row:o,col:s,element:d})}}return a}findNearestPoint(n,a){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let f=0;f<this.highlightCenters.length;f++){const d=this.highlightCenters[f],m=Math.hypot(d.x-n,d.y-a);m<o&&(o=m,s=f)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}}class Rie extends lT{constructor(t){super(t,[t.data])}text(){const t=this.orientation===Gr.VERTICAL,n=this.points[this.row][this.col],a=t?n.xMin:n.yMin,o=t?n.xMax:n.yMax;return{...super.text(),range:{min:a,max:o}}}}const r_="Group",sT=/[ML]\s*(-?\d+(?:\.\d+)?)\s+(-?\d+(?:\.\d+)?)/g;class a_ extends H0{constructor(n){super(n);Q(this,"supportsExtrema",!0);Q(this,"points");Q(this,"lineValues");Q(this,"highlightValues");Q(this,"highlightCenters");Q(this,"min");Q(this,"max");Q(this,"previousRow",null);this.points=n.data,this.lineValues=this.points.map(a=>a.map(o=>Number(o.y))),this.min=this.lineValues.map(a=>mi.safeMin(a)),this.max=this.lineValues.map(a=>mi.safeMax(a)),this.highlightValues=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters()}dispose(){this.points.length=0,this.min.length=0,this.max.length=0,super.dispose()}get values(){return this.lineValues}audio(){return{min:this.min[this.row],max:this.max[this.row],size:this.points[this.row].length,index:this.col,value:this.points[this.row][this.col].y,...this.getAudioGroupIndex()}}braille(){return{empty:!1,id:this.id,values:this.lineValues,min:this.min,max:this.max,row:this.row,col:this.col}}text(){var s;const n=this.points[this.row][this.col],a=this.findIntersections();let o={};if(a.length>1){let f=a.map(d=>{var y;const m=d.groupIndex;return((y=this.points[m][0])==null?void 0:y.fill)||`l${m+1}`});if(this.previousRow!==null){const d=((s=this.points[this.previousRow][0])==null?void 0:s.fill)||`l${this.previousRow+1}`;f.includes(d)&&(f=[d,...f.filter(m=>m!==d)])}o={fill:{label:r_,value:`intersection at (${f.join(", ")})`}}}else o=n.fill?{fill:{label:r_,value:n.fill}}:{};return{main:{label:this.xAxis,value:this.points[this.row][this.col].x},cross:{label:this.yAxis,value:this.points[this.row][this.col].y},...o}}moveOnce(n){if(this.isInitialEntry){this.handleInitialEntry(),this.previousRow=null,this.notifyStateUpdate();return}if(!this.isMovable(n)){this.notifyOutOfBounds();return}if(this.previousRow=this.row,n==="UPWARD"||n==="DOWNWARD"){const o=this.findLineByXAndYDirection(n),s=this.points[this.row][this.col].x;if(o!==null&&o!==this.row){const f=this.findColumnByXValue(o,s);if(f!==-1){this.row=o,this.col=f;const d=this.findIntersections();if(d.length>1){const y={...super.state,intersections:d};for(const x of this.observers)x.update(y)}else this.notifyStateUpdate();return}else{this.notifyOutOfBounds();return}}else{this.notifyOutOfBounds();return}}switch(n){case"FORWARD":this.col+=1;break;case"BACKWARD":this.col-=1;break}const a=this.findIntersections();if(a.length>1){const s={...super.state,intersections:a};for(const f of this.observers)f.update(s)}else this.notifyStateUpdate()}findIntersections(){const n=this.points[this.row][this.col].x,a=this.points[this.row][this.col].y,o=[];for(let s=0;s<this.points.length;s++){const f=this.points[s].findIndex(d=>d.x===n&&d.y===a);f!==-1&&o.push({min:this.min[s],max:this.max[s],size:this.points[s].length,index:f,value:a,groupIndex:s})}return o}isMovable(n){if(Array.isArray(n)){const[a,o]=n;return a>=0&&a<this.values.length&&o>=0&&o<this.values[a].length}switch(n){case"UPWARD":case"DOWNWARD":{const a=this.findLineByXAndYDirection(n);if(a===null)return!1;const o=this.points[this.row][this.col].x;return this.findColumnByXValue(a,o)!==-1}case"FORWARD":return this.col<this.values[this.row].length-1;case"BACKWARD":return this.col>0}}findLineByXAndYDirection(n){const a=this.points[this.row][this.col].x;let o=null,s=Number.POSITIVE_INFINITY;for(let f=0;f<this.points.length;f++){if(f===this.row)continue;const d=this.points[f].findIndex(S=>S.x===a);if(d===-1)continue;const m=this.points[f][d].y,y=n==="UPWARD"?m>this.points[this.row][this.col].y:m<this.points[this.row][this.col].y,x=Math.abs(m-this.points[this.row][this.col].y);y&&x<s&&(s=x,o=f)}return o}findColumnByXValue(n,a){return this.points[n].findIndex(o=>o.x===a)}mapToSvgElements(n){if(!n||n.length!==this.lineValues.length)return null;const a=[];let o=!0;for(let s=0;s<n.length;s++){const f=on.selectElement(n[s],!1);if(!f){a.push([]);continue}const d=[];if(f instanceof SVGPathElement){const x=f.getAttribute(xe.D)||xe.EMPTY;sT.lastIndex=0;let S=sT.exec(x);for(;S!==null;)d.push({x:Number.parseFloat(S[1]),y:Number.parseFloat(S[2])}),S=sT.exec(x)}else if(f instanceof SVGPolylineElement){const S=(f.getAttribute(xe.POINTS)||xe.EMPTY).split(/\s+/).filter(Boolean);for(const w of S){const[T,C]=w.split(xe.COMMA);d.push({x:Number.parseFloat(T),y:Number.parseFloat(C)})}}if(d.length!==this.lineValues[s].length)if(d.length<this.lineValues[s].length)for(;d.length<this.lineValues[s].length;)d.push({x:Number.NaN,y:Number.NaN});else d.length>this.lineValues[s].length&&(d.length=this.lineValues[s].length);const m=[];let y=!1;for(const x of d){if(Number.isNaN(x.x)||Number.isNaN(x.y)){y=!0;break}m.push(on.createCircleElement(x.x,x.y,f))}if(y){a.push([]);continue}m.length>0&&(o=!1),a.push(m)}return o?null:a}get state(){const n=super.state;if(n.empty)return n;const a=this.points.length>1,o={...n,plotType:a?"multiline":"single line",...a&&{groupCount:this.points.length}},s=this.findIntersections();return s.length>1?{...o,intersections:s}:o}mapSvgElementsToCenters(){let n;if(n=this.highlightValues,!n)return null;const a=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const f=n[o][s],d=Array.isArray(f)?f[0]:f;if(d){const m=d.getBoundingClientRect();a.push({x:m.x+m.width/2,y:m.y+m.height/2,row:o,col:s,element:d})}}return a}findNearestPoint(n,a){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let f=0;f<this.highlightCenters.length;f++){const d=this.highlightCenters[f],m=Math.hypot(d.x-n,d.y-a);m<o&&(o=m,s=f)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}getExtremaTargets(){const n=[],a=this.row;if(a<0||a>=this.lineValues.length)return n;const o=this.lineValues[a];if(!o||o.length===0)return n;const s=this.min[a],f=this.max[a],d=[],m=[];for(let y=0;y<o.length;y++){const x=o[y];x===f&&d.push(y),x===s&&m.push(y)}for(const y of d)n.push({label:`Max point at ${this.getPointLabel(y)}`,value:f,pointIndex:y,segment:"line",type:"max",navigationType:"point"});for(const y of m)n.push({label:`Min point at ${this.getPointLabel(y)}`,value:s,pointIndex:y,segment:"line",type:"min",navigationType:"point"});return n}navigateToExtrema(n){this.col=n.pointIndex,this.finalizeExtremaNavigation()}getPointLabel(n){return this.points[this.row]&&this.points[this.row][n]?`${this.points[this.row][n].x}`:`Point ${n}`}updateVisualPointPosition(){const{row:n,col:a}=this.getSafeIndices();this.row=n,this.col=a}getAvailableXValues(){return this.points[this.row].map(n=>n.x)}moveToXValue(n){return this.isInitialEntry&&this.handleInitialEntry(),super.moveToXValue(n)}}class Mie extends H0{constructor(n){super(n);Q(this,"supportsExtrema",!1);Q(this,"mode");Q(this,"xPoints");Q(this,"yPoints");Q(this,"xValues");Q(this,"yValues");Q(this,"highlightXValues");Q(this,"highlightYValues");Q(this,"minX");Q(this,"maxX");Q(this,"minY");Q(this,"maxY");this.mode="column";const a=n.data,o=[...a].sort((m,y)=>m.x-y.x||m.y-y.y);this.xPoints=new Array;let s=null;for(const m of o)(!s||s.x!==m.x)&&(s={x:m.x,y:[]},this.xPoints.push(s)),s.y.push(m.y);const f=[...a].sort((m,y)=>m.y-y.y||m.x-y.x);this.yPoints=new Array;let d=null;for(const m of f)(!d||d.y!==m.y)&&(d={y:m.y,x:[]},this.yPoints.push(d)),d.x.push(m.x);this.xValues=this.xPoints.map(m=>m.x),this.yValues=this.yPoints.map(m=>m.y),this.minX=mi.safeMin(this.xValues),this.maxX=mi.safeMax(this.xValues),this.minY=mi.safeMin(this.yValues),this.maxY=mi.safeMax(this.yValues),[this.highlightXValues,this.highlightYValues]=this.mapToSvgElements(n.selectors)}dispose(){this.xPoints.length=0,this.yPoints.length=0,this.xValues.length=0,this.yValues.length=0,this.highlightXValues&&(this.highlightXValues.forEach(n=>n.forEach(a=>a.remove())),this.highlightXValues.length=0),this.highlightYValues&&(this.highlightYValues.forEach(n=>n.forEach(a=>a.remove())),this.highlightYValues.length=0),super.dispose()}get values(){const n=[this.xValues,this.yValues];return this.mode==="column"?this.row!==0&&(this.row=0):(this.row<0||this.row>=this.yPoints.length)&&(this.row=0),n}get highlightValues(){return this.mode==="column"?this.highlightXValues:this.highlightYValues}getAudioGroupIndex(){return{}}audio(){if(this.mode==="column"){const n=this.xPoints[this.col];return{min:this.minY,max:this.maxY,size:n.y.length,index:this.col,value:n.y,...this.getAudioGroupIndex()}}else{const n=this.yPoints[this.row];return{min:this.minX,max:this.maxX,size:n.x.length,index:this.row,value:n.x,...this.getAudioGroupIndex()}}}braille(){return{empty:!0,type:"trace",traceType:this.type,audio:{index:0,size:0,groupIndex:0}}}text(){if(this.mode==="column"){const n=this.xPoints[this.col];return{main:{label:this.xAxis,value:n.x},cross:{label:this.yAxis,value:n.y}}}else{const n=this.yPoints[this.row];return{main:{label:this.yAxis,value:n.y},cross:{label:this.xAxis,value:n.x}}}}get autoplay(){return{UPWARD:this.yValues.length,DOWNWARD:this.yValues.length,FORWARD:this.xValues.length,BACKWARD:this.xValues.length}}highlight(){if(this.highlightValues===null)return{empty:!0,type:"trace",traceType:this.type,audio:{index:0,size:0,groupIndex:0}};const n=this.mode==="column"?this.col<this.highlightValues.length?this.highlightValues[this.col]:null:this.row<this.highlightValues.length?this.highlightValues[this.row]:null;return n?{empty:!1,elements:n}:{empty:!0,type:"trace",traceType:this.type,audio:{index:0,size:0,groupIndex:0}}}hasMultiPoints(){return!0}handleInitialEntry(){this.isInitialEntry=!1,this.row=0,this.col=0,this.mode="column"}toggleNavigation(){if(this.mode==="column"){const n=this.xPoints[this.col],a=n.y[Math.floor(n.y.length/2)],o=this.yValues.indexOf(a);o===-1||o>=this.yPoints.length?this.row=0:this.row=o,this.mode="row"}else{const n=this.yPoints[this.row],a=n.x[Math.floor(n.x.length/2)],o=this.xValues.indexOf(a);o===-1||o>=this.xPoints.length?this.col=0:this.col=o,this.mode="column",this.row=0}}moveOnce(n){if(this.isInitialEntry){this.handleInitialEntry(),this.notifyStateUpdate();return}if(!this.isMovable(n)){this.notifyOutOfBounds();return}if(this.mode==="column")switch(n){case"FORWARD":this.col++;break;case"BACKWARD":this.col--;break;case"UPWARD":case"DOWNWARD":{this.toggleNavigation();break}}else switch(n){case"UPWARD":this.row++;break;case"DOWNWARD":this.row--;break;case"FORWARD":case"BACKWARD":{this.toggleNavigation();break}}this.notifyStateUpdate()}moveToExtreme(n){if(this.isInitialEntry&&this.handleInitialEntry(),this.mode==="column")switch(n){case"UPWARD":this.toggleNavigation(),this.row=this.yPoints.length-1;break;case"DOWNWARD":this.toggleNavigation(),this.row=0;break;case"FORWARD":this.col=this.xPoints.length-1;break;case"BACKWARD":this.col=0;break}else switch(n){case"UPWARD":this.row=this.yPoints.length-1;break;case"DOWNWARD":this.row=0;break;case"FORWARD":this.toggleNavigation(),this.col=this.xPoints.length-1;break;case"BACKWARD":this.toggleNavigation(),this.col=0;break}this.notifyStateUpdate()}isMovable(n){if(Array.isArray(n))return!1;if(this.mode==="column")switch(n){case"FORWARD":return this.col<this.xPoints.length-1;case"BACKWARD":return this.col>0;case"UPWARD":case"DOWNWARD":return!0}else switch(n){case"UPWARD":return this.row<this.yPoints.length-1;case"DOWNWARD":return this.row>0;case"FORWARD":case"BACKWARD":return!0}}mapToSvgElements(n){if(!n)return[null,null];const a=on.selectAllElements(n);if(a.length===0)return[null,null];const o=new Map,s=new Map;a.forEach(m=>{const y=Number.parseFloat(m.getAttribute("x")||""),x=Number.parseFloat(m.getAttribute("y")||"");Number.isNaN(y)||(o.has(y)||o.set(y,[]),o.get(y).push(m)),Number.isNaN(x)||(s.has(x)||s.set(x,[]),s.get(x).push(m))});const f=Array.from(o.entries()).sort(([m],[y])=>m-y).map(([m,y])=>y),d=Array.from(s.entries()).sort(([m],[y])=>y-m).map(([m,y])=>y);return[f,d]}findNearestPoint(n,a){return null}}const i_="Sum",kie="Level",Die="undefined";class _ie extends lT{constructor(t){super(t,t.data),this.createSummaryLevel()}createSummaryLevel(){const t=new Array,n=new Array;for(let s=0;s<this.barValues[0].length;s++){const f=this.barValues.reduce((m,y)=>m+y[s],0);t.push(f);const d=this.orientation===Gr.VERTICAL?{x:this.points[0][s].x,y:f,fill:i_}:{x:f,y:this.points[0][s].y,fill:i_};n.push(d)}this.points.push(n),this.barValues.push(t);const{min:a,max:o}=mi.minMax(t);this.min.push(a),this.max.push(o)}getExtremaTargets(){const t=[],n=this.row;if(n<0||n>=this.barValues.length)return t;const a=this.min[n],o=this.max[n],s=this.barValues[n];if(!s||s.length===0)return t;const f=s.indexOf(o),d=s.indexOf(a),m=this.getGroupLabel(n),y=this.getCategoryLabel(f),x=this.getCategoryLabel(d);return t.push({label:`Max ${m} at ${y}`,value:o,pointIndex:f,segment:m,type:"max",groupIndex:n,categoryIndex:f,navigationType:"group"}),t.push({label:`Min ${m} at ${x}`,value:a,pointIndex:d,segment:m,type:"min",groupIndex:n,categoryIndex:d,navigationType:"group"}),t}navigateToExtrema(t){t.groupIndex!==void 0&&t.categoryIndex!==void 0?(this.row=t.groupIndex,this.col=t.categoryIndex):this.col=t.pointIndex,this.finalizeExtremaNavigation()}getGroupLabel(t){if(this.points[t]&&this.points[t].length>0){const n=this.points[t][0];if(t===this.barValues.length-1)return"Total";if(n.fill)return`${this.getFillAxisLabel()}: '${n.fill}'`}return`Group ${t}`}getCategoryLabel(t){if(this.points[0]&&this.points[0][t]){const n=this.points[0][t];return this.orientation===Gr.VERTICAL?`${n.x}`:`${n.y}`}return`Category ${t}`}getFillAxisLabel(){return"Category"}updateVisualPointPosition(){const{row:t,col:n}=this.getSafeIndices();this.row=t,this.col=n}text(){return{...super.text(),fill:{label:kie,value:this.points[this.row][this.col].fill??Die}}}highlight(){return this.highlightValues===null||this.row===this.barValues.length-1?{empty:!0,type:"trace",traceType:this.type,audio:{index:0,size:0,groupIndex:0}}:{empty:!1,elements:this.highlightValues[this.row][this.col]}}hasMultiPoints(){return!1}mapToSvgElements(t){if(!t)return new Array;const n=on.selectAllElements(t);if(n.length===0)return new Array;const a=new Array;if(n[0]instanceof SVGPathElement)for(let o=0,s=0;o<this.barValues.length;o++){const f=new Array;for(let d=0;d<this.barValues[o].length;d++){if(s>=n.length)return new Array;this.barValues[o][d]===0?f.push(on.createEmptyElement()):f.push(n[s++])}a.push(f)}else if(n[0]instanceof SVGRectElement){for(let o=0;o<this.barValues.length;o++)a.push(new Array);for(let o=0,s=0;o<this.barValues[0].length;o++)for(let f=this.barValues.length-1;f>=0;f--){if(s>=n.length)return new Array;this.barValues[f][o]===0?a[f].push(on.createEmptyElement()):a[f].push(n[s++])}}return a}}class o_ extends a_{constructor(t){super(t)}moveToXValue(t){this.isInitialEntry&&this.handleInitialEntry();const n=this.points;if(!n||!n.length)return!1;const a=this.navigationService.moveToXValueInPoints(n,t,this.moveToIndex.bind(this));return a&&this.notifyStateUpdate(),a}audio(){const t=this.lineValues[this.row],n=this.col,a=d=>t[Math.max(0,Math.min(d,t.length-1))],o=n>0?a(n-1):a(n),s=a(n),f=n<t.length-1?a(n+1):a(n);return{min:this.min[this.row],max:this.max[this.row],size:t.length,index:n,value:[o,s,f],isContinuous:!0,...this.getAudioGroupIndex()}}}class Nie extends o_{constructor(t){super(t)}mapToSvgElements(t){var o;if(!t||t.length!==this.lineValues.length)return null;const n=[];let a=!0;for(let s=0;s<t.length;s++){const f=on.selectElement(t[s],!1);if(!f){n.push([]);continue}const d=(o=this.points)==null?void 0:o[s],m=[];for(const y of d)typeof y.svg_x=="number"&&typeof y.svg_y=="number"&&m.push(on.createCircleElement(y.svg_x,y.svg_y,f));m.length>0&&(a=!1),n.push(m)}return a?null:n}}function zie(e){return typeof(e==null?void 0:e.svg_x)=="number"&&typeof(e==null?void 0:e.svg_y)=="number"}function Lie(e){return Array.isArray(e.data)&&e.data.length>0&&Array.isArray(e.data[0])&&zie(e.data[0][0])?new Nie(e):new o_(e)}class Iie{static create(t){switch(t.type){case Ar.BAR:return new Tie(t);case Ar.BOX:return new wie(t);case Ar.CANDLESTICK:return new Cie(t);case Ar.HEATMAP:return new Oie(t);case Ar.HISTOGRAM:return new Rie(t);case Ar.LINE:return new a_(t);case Ar.SCATTER:return new Mie(t);case Ar.SMOOTH:return Lie(t);case Ar.DODGED:case Ar.NORMALIZED:case Ar.STACKED:return new _ie(t);default:throw new Error(`Invalid trace type: ${t.type}`)}}}const Bie="MAIDR Plot",Pie="unavailable",Vie="unavailable";class Uie extends oT{constructor(n){super();Q(this,"id");Q(this,"title");Q(this,"subtitle");Q(this,"caption");Q(this,"subplots");Q(this,"size");this.id=n.id,this.title=n.title??Bie,this.subtitle=n.subtitle??Pie,this.caption=n.caption??Vie;const a=n.subplots;this.subplots=a.map(o=>o.map(s=>new $ie(s))),this.size=this.subplots.reduce((o,s)=>o+s.length,0)}dispose(){this.subplots.forEach(n=>n.forEach(a=>a.dispose())),this.subplots.length=0,super.dispose()}get values(){return this.subplots}get activeSubplot(){return this.subplots[this.row][this.col]}get state(){if(this.isOutOfBounds)return{empty:!0,type:"figure"};const n=this.col+1+this.subplots.slice(0,this.row).reduce((o,s)=>o+s.length,0),a=this.activeSubplot;return{empty:!1,type:"figure",title:this.title,subtitle:this.subtitle,caption:this.caption,size:this.size,index:n,subplot:a.getStateWithFigurePosition(this.row,this.col),traceTypes:a.traceTypes,highlight:this.highlight()}}highlight(){var a;if(document.querySelectorAll('g[id^="axes_"]').length<=1)return{empty:!0,type:"trace",audio:{size:this.values[this.row].length,index:this.col}};try{const o=((a=this.subplots[0])==null?void 0:a.length)||1,s=this.row*o+this.col+1,f=`g[id="axes_${s}"]`,d=document.querySelector(f);if(d)return{empty:!1,elements:d};const m=document.querySelectorAll('g[id^="axes_"]');if(m.length>0&&s-1<m.length)return{empty:!1,elements:m[s-1]}}catch{return{empty:!0,type:"trace",audio:{size:this.values[this.row].length,index:this.col}}}return{empty:!0,type:"trace",audio:{size:this.values[this.row].length,index:this.col}}}isMovable(n){switch(n){case"UPWARD":return this.row<this.subplots.length-1;case"DOWNWARD":return this.row>0;case"FORWARD":return this.col<this.subplots[this.row].length-1;case"BACKWARD":return this.col>0;default:return!1}}moveOnce(n){if(this.isInitialEntry){this.handleInitialEntry(),this.notifyStateUpdate();return}if(!this.isMovable(n)){this.notifyOutOfBounds();return}switch(n){case"UPWARD":this.row+=1;break;case"DOWNWARD":this.row-=1;break;case"FORWARD":this.col+=1;break;case"BACKWARD":this.col-=1;break}this.notifyStateUpdate()}moveToPoint(n,a){this.activeSubplot.activeTrace,this.notifyStateUpdate()}}class $ie extends oT{constructor(n){super();Q(this,"traces");Q(this,"traceTypes");Q(this,"size");this.isInitialEntry=!1;const a=n.layers;this.size=a.length,this.traces=a.map(o=>[Iie.create(o)]),this.traceTypes=this.traces.flat().map(o=>{const s=o.state;return s.empty?xe.EMPTY:s.traceType})}getRow(){return this.row}getSize(){return this.size}dispose(){this.traces.forEach(n=>n.forEach(a=>a.dispose())),this.traces.length=0,super.dispose()}get values(){return this.traces}get activeTrace(){return this.traces[this.row][this.col]}highlight(){return{empty:!0,type:"trace",audio:{size:this.values[this.row].length,index:this.col}}}moveOnce(n){if(this.isInitialEntry){this.handleInitialEntry(),this.notifyStateUpdate();return}if(!this.isMovable(n)){this.notifyOutOfBounds();return}switch(n){case"UPWARD":this.row+=1;break;case"DOWNWARD":this.row-=1;break;case"FORWARD":this.col+=1;break;case"BACKWARD":this.col-=1;break}this.notifyStateUpdate()}get state(){return this.isOutOfBounds?{empty:!0,type:"subplot"}:{empty:!1,type:"subplot",size:this.size,index:this.row+1,trace:this.activeTrace.state,highlight:this.highlight()}}moveToPoint(n,a){this.notifyStateUpdate()}getStateWithFigurePosition(n,a){return this.state}}const gi={SINE_BASIC:0,SQUARE_BASIC:1,SAWTOOTH_BASIC:2,TRIANGLE_BASIC:3,SAWTOOTH_DARK:4,SINE_HARMONIC:5,TRIANGLE_HARMONIC:6,SQUARE_HARMONIC:7,TRIANGLE_MELLOW:8,SINE_SUBTLE:9,SAWTOOTH_SOFT:10},xm=class xm{constructor(){Q(this,"basePalette");Q(this,"extendedPalette");this.basePalette=[{index:gi.SINE_BASIC,waveType:"sine",timbreModulation:{attack:.01,decay:.1,sustain:.8,release:.2}},{index:gi.SQUARE_BASIC,waveType:"square",timbreModulation:{attack:.005,decay:.05,sustain:.7,release:.15}},{index:gi.SAWTOOTH_BASIC,waveType:"sawtooth",timbreModulation:{attack:.02,decay:.08,sustain:.6,release:.25}},{index:gi.TRIANGLE_BASIC,waveType:"triangle",timbreModulation:{attack:.015,decay:.12,sustain:.9,release:.18}},{index:gi.SAWTOOTH_DARK,waveType:"sawtooth",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.2},{frequency:3,amplitude:.1},{frequency:5,amplitude:.05}]},timbreModulation:{attack:.005,decay:.3,sustain:.4,release:.5}},{index:gi.SINE_HARMONIC,waveType:"sine",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.15},{frequency:4,amplitude:.05}]},timbreModulation:{attack:.02,decay:.2,sustain:.6,release:.3}},{index:gi.TRIANGLE_HARMONIC,waveType:"triangle",harmonicMix:{fundamental:1,harmonics:[{frequency:3,amplitude:.2},{frequency:6,amplitude:.1}]},timbreModulation:{attack:.01,decay:.1,sustain:.8,release:.2}},{index:gi.SQUARE_HARMONIC,waveType:"square",harmonicMix:{fundamental:1,harmonics:[{frequency:3,amplitude:.1},{frequency:7,amplitude:.05}]},timbreModulation:{attack:.005,decay:.05,sustain:.5,release:.1}},{index:gi.TRIANGLE_MELLOW,waveType:"triangle",harmonicMix:{fundamental:1,harmonics:[{frequency:2.5,amplitude:.15},{frequency:4.5,amplitude:.08}]},timbreModulation:{attack:.01,decay:.4,sustain:.3,release:.5}},{index:gi.SINE_SUBTLE,waveType:"sine",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.1},{frequency:3,amplitude:.05}]},timbreModulation:{attack:.02,decay:.1,sustain:.9,release:.15}},{index:gi.SAWTOOTH_SOFT,waveType:"sawtooth",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.05},{frequency:6,amplitude:.02}]},timbreModulation:{attack:.005,decay:.4,sustain:.2,release:.6}}],this.validateBasePalette(),this.extendedPalette=new Map,this.generateExtendedPalette()}dispose(){this.extendedPalette.clear()}getPaletteEntry(t){if(t<this.basePalette.length)return this.basePalette[t];const n=this.extendedPalette.get(t);if(n)return n;const a=this.generateExtendedEntry(t);return this.extendedPalette.set(t,a),a}get basePaletteSize(){return this.basePalette.length}getCandlestickGroupIndex(t){switch(t){case"Bull":return gi.SINE_BASIC;case"Bear":return gi.SAWTOOTH_SOFT;case"Neutral":return gi.TRIANGLE_BASIC;default:return gi.SINE_BASIC}}generateExtendedPalette(){[{index:this.basePalette.length,waveType:"sine",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.3},{frequency:3,amplitude:.15}]},timbreModulation:{attack:.02,decay:.15,sustain:.7,release:.3}},{index:this.basePalette.length+1,waveType:"square",harmonicMix:{fundamental:1,harmonics:[{frequency:1.5,amplitude:.4},{frequency:2.5,amplitude:.2}]},timbreModulation:{attack:.01,decay:.08,sustain:.6,release:.4}},{index:this.basePalette.length+2,waveType:"sawtooth",harmonicMix:{fundamental:1,harmonics:[{frequency:1.25,amplitude:.35},{frequency:2,amplitude:.25},{frequency:3,amplitude:.1}]},timbreModulation:{attack:.03,decay:.2,sustain:.5,release:.35}},{index:this.basePalette.length+3,waveType:"triangle",harmonicMix:{fundamental:1,harmonics:[{frequency:.5,amplitude:.2},{frequency:4,amplitude:.15}]},timbreModulation:{attack:.025,decay:.18,sustain:.8,release:.25}}].forEach((n,a)=>{this.extendedPalette.set(this.basePalette.length+a,n)})}generateExtendedEntry(t){const n=t%this.basePalette.length,a=this.basePalette[n],o=Math.floor((t-this.basePalette.length)/this.basePalette.length),s=this.generateHarmonics(o),f=this.generateTimbreModulation(o,a.timbreModulation);return{index:t,waveType:a.waveType,harmonicMix:{fundamental:1,harmonics:s},timbreModulation:f}}generateHarmonics(t){const n=[],a=xm.MIN_HARMONICS+t%xm.HARMONIC_VARIATION;for(let o=0;o<a;o++){const s=1+(o+1)*(.5+t*.3%1),f=.4/(o+1)*(1-t*.1%.3);n.push({frequency:s,amplitude:f})}return n}generateTimbreModulation(t,n){const a=1+t*.2%.5;return{attack:Math.max(.005,Math.min(.05,n.attack*a)),decay:Math.max(.05,Math.min(.3,n.decay*a)),sustain:Math.max(.4,Math.min(.9,n.sustain+t*.1%.2)),release:Math.max(.1,Math.min(.5,n.release*a))}}validateBasePalette(){this.basePalette.forEach((t,n)=>{if(t.index!==n)throw new Error(`AudioPalette validation error: Entry at array position ${n} has index ${t.index}. Array position must match the index property to prevent audio palette mismatches.`)})}};Q(xm,"MIN_HARMONICS",2),Q(xm,"HARMONIC_VARIATION",3);let uT=xm;const jie=100,Hie=440,qie=880,cT=.3,fT=gi.SINE_BASIC;class Gie{constructor(t,n,a){Q(this,"notification");Q(this,"audioPalette");Q(this,"settings");Q(this,"isCombinedAudio");Q(this,"mode");Q(this,"activeAudioIds");Q(this,"audioContext");Q(this,"compressor");Q(this,"currentVolume");Q(this,"currentMinFrequency");Q(this,"currentMaxFrequency");this.notification=t,this.audioPalette=new uT,this.settings=a,this.isCombinedAudio=!1,this.mode="on",this.updateMode(n),this.activeAudioIds=new Map,this.audioContext=new AudioContext,this.compressor=this.initCompressor();const o=this.settings.loadSettings();this.currentVolume=o.general.volume/100,this.currentMinFrequency=o.general.minFrequency,this.currentMaxFrequency=o.general.maxFrequency,this.settings.addObserver(this)}dispose(){this.stopAll(),this.audioPalette.dispose(),this.audioContext.state!=="closed"&&(this.compressor.disconnect(),this.audioContext.close()),this.settings.removeObserver(this)}update(t){"general"in t?this.onSettingsChange(t):this.onStateChange(t)}onSettingsChange(t){this.currentVolume=t.general.volume/100,this.currentMinFrequency=t.general.minFrequency,this.currentMaxFrequency=t.general.maxFrequency}onStateChange(t){if(this.mode==="off")return;if(this.updateMode(t),t.type==="figure"){if(t.empty){this.playEmptyTone(1,0);return}return}let n;if(t.type==="subplot"){if(t.empty)return;n=t.trace}else n=t;this.handleTraceState(n)}handleTraceState(t){if(this.mode==="off"||t.type!=="trace")return;if(t.empty){this.stopAll(),this.playEmptyTone(t.audio.size,t.audio.index);return}if(t.traceType==="line"&&!t.empty&&Array.isArray(t.intersections)&&t.intersections.length>1){this.stopAll(),this.playSimultaneousTones(t.intersections);return}const n=t.audio;let a=n.groupIndex;n.trend&&a===void 0&&(a=this.audioPalette.getCandlestickGroupIndex(n.trend));const s=a!==void 0?this.audioPalette.getPaletteEntry(a):void 0;if(n.isContinuous)this.playSmooth(n.value,n.min,n.max,n.size,Array.isArray(n.index)?n.index[0]:n.index,s);else if(Array.isArray(n.value)){const f=n.value;if(f.length===0){this.playZeroTone();return}let d=0;const m=this.mode==="on"?50:0,y=new Array,x=()=>{if(d<f.length){const S=Array.isArray(n.index)?n.index[d]:n.index;this.playTone(n.min,n.max,f[d++],n.size,S,s),y.push(setTimeout(x,m))}else this.stop(y)};x()}else{const f=n.value;if(f===0)this.playZeroTone();else{const d=Array.isArray(n.index)?n.index[0]:n.index;this.playTone(n.min,n.max,f,n.size,d,s)}}}getVolume(){return Math.min(Math.max(this.currentVolume,0),1)}getFrequencyRange(){return{min:this.currentMinFrequency,max:this.currentMaxFrequency}}initCompressor(){const t=this.audioContext.createDynamicsCompressor();t.threshold.value=-50,t.knee.value=40,t.ratio.value=12,t.attack.value=0,t.release.value=.25;const n=this.audioContext.createGain();return n.gain.value=.5,t.connect(n),n.connect(this.audioContext.destination),t}updateMode(t){if(t.empty||t.type==="figure")return;const n=t.type==="subplot"?t.trace:t;n.empty||n.hasMultiPoints===this.isCombinedAudio||(this.isCombinedAudio=n.hasMultiPoints,this.mode!=="off"&&(this.isCombinedAudio?this.mode="combined":this.mode="on"))}playTone(t,n,a,o,s,f){const d={min:t,max:n},m=this.getFrequencyRange(),y=this.interpolate(a,d,m),x={min:0,max:o},S={min:-1,max:1},w=this.clamp(this.interpolate(s,x,S),-1,1);return this.playOscillator(y,w,f)}createOscillators(t,n){const a=[],o=this.audioContext.createOscillator();if(o.type=t.waveType,o.frequency.value=n,a.push(o),t.harmonicMix)for(const s of t.harmonicMix.harmonics){const f=this.audioContext.createOscillator();f.type=t.waveType,f.frequency.value=s.frequency*n,a.push(f)}return a}createGainNodes(t,n,a,o){const s=[],f=this.audioContext.currentTime,d=this.getVolume();for(let m=0;m<t.length;m++){const y=this.audioContext.createGain();let x=d;if(m===0)n.harmonicMix&&(x*=n.harmonicMix.fundamental);else{const w=n.harmonicMix.harmonics[m-1];x*=w.amplitude}const S=this.createAdsrEnvelope(y,n,x,f,o);S!==null&&y.gain.setValueCurveAtTime(S,f,o),s.push(y)}return s}playOscillator(t,n=0,a){const o=cT,s=this.getVolume();a||(a=this.audioPalette.getPaletteEntry(0));const f=this.createOscillators(a,t),d=this.createGainNodes(f,a,s,o),m=this.audioContext.createStereoPanner();m.pan.value=n;const y=new PannerNode(this.audioContext,{distanceModel:"linear",positionX:0,positionY:0,positionZ:0,orientationX:0,orientationY:0,orientationZ:-1,refDistance:1,maxDistance:1e4,rolloffFactor:10,coneInnerAngle:40,coneOuterAngle:50,coneOuterGain:.4});for(let w=0;w<f.length;w++)f[w].connect(d[w]),d[w].connect(m);m.connect(y),y.connect(this.compressor),f.forEach(w=>w.start());const x=w=>{y.disconnect(this.compressor),m.disconnect(y);for(let T=0;T<f.length;T++)d[T].disconnect(m),f[T].stop(),f[T].disconnect(d[T]);this.activeAudioIds.delete(w)},S=setTimeout(()=>x(S),o*1e3*2);return this.activeAudioIds.set(S,f),S}createAdsrEnvelope(t,n,a,o,s){if(n!=null&&n.timbreModulation){const{attack:f,decay:d,sustain:m,release:y}=n.timbreModulation,x=s*f,S=s*d,w=s*y,T=s-x-S-w;return t.gain.setValueAtTime(1e-4*a,o),t.gain.linearRampToValueAtTime(a,o+x),t.gain.linearRampToValueAtTime(m*a,o+x+S),T>0&&t.gain.setValueAtTime(m*a,o+x+S+T),t.gain.linearRampToValueAtTime(1e-4*a,o+s),null}else return[.5*a,a,.5*a,.5*a,.5*a,.1*a,1e-4*a]}playSmooth(t,n,a,o,s,f){const d=this.audioContext,m=d.currentTime,y=cT,x=this.getFrequencyRange(),S=this.getVolume(),w=(f==null?void 0:f.waveType)||"sine",T=t.map(B=>this.interpolate(B,{min:n,max:a},x));T.length<2&&T.push(T[0]);const C=this.clamp(this.interpolate(s,{min:0,max:o-1},{min:-1,max:1}),-1,1),R=d.createOscillator();R.type=w,R.frequency.setValueCurveAtTime(T,m,y);const M=d.createGain(),_=this.createAdsrEnvelope(M,f,S,m,y);_!==null&&M.gain.setValueCurveAtTime(_,m,y);const N=d.createStereoPanner();N.pan.value=C,R.connect(M),M.connect(N),N.connect(this.compressor),R.start(m),R.stop(m+y);const P=setTimeout(()=>{R.disconnect(),M.disconnect(),N.disconnect(),this.activeAudioIds.delete(P)},y*1e3*2);this.activeAudioIds.set(P,[R])}playEmptyTone(t,n){const a=this.audioContext,o=a.currentTime,s=.2,f=this.getVolume(),d=[500,1e3,1500,2100,2700],m=[1,.6,.4,.2,.1],y=a.createGain();y.gain.setValueAtTime(.3*f,o),y.gain.exponentialRampToValueAtTime(.01*f,o+s),y.connect(this.compressor);const x={min:0,max:t},S={min:-1,max:1},w=this.clamp(this.interpolate(n,x,S),-1,1),T=[];for(let M=0;M<d.length;M++){const _=a.createOscillator(),N=a.createGain(),P=this.audioContext.createStereoPanner(),B=new PannerNode(this.audioContext,{distanceModel:"linear",positionX:0,positionY:0,positionZ:0,orientationX:0,orientationY:0,orientationZ:-1,refDistance:1,maxDistance:1e4,rolloffFactor:10,coneInnerAngle:40,coneOuterAngle:50,coneOuterGain:.4});_.frequency.value=d[M],_.type="sine",N.gain.setValueAtTime(m[M]*f,o),N.gain.exponentialRampToValueAtTime(.001*f,o+s),P.pan.value=w,_.connect(N),N.connect(P),P.connect(B),B.connect(y),_.start(o),_.stop(o+s),T.push(_)}const C=M=>{y.disconnect(),T.forEach(_=>{_.disconnect()}),this.activeAudioIds.delete(M)},R=setTimeout(()=>C(R),s*1e3*2);return this.activeAudioIds.set(R,T),R}playZeroTone(){return this.playOscillator(jie,0,{index:fT,waveType:"triangle"})}playWaitingTone(){return setInterval(()=>this.playOscillator(Hie,0,{index:fT,waveType:"sine"}),1e3)}playCompleteTone(){return this.playOscillator(qie,0,{index:fT,waveType:"sine"})}interpolate(t,n,a){return n.min===0&&n.max===0?0:(t-n.min)/(n.max-n.min)*(a.max-a.min)+a.min}clamp(t,n,a){return Math.max(n,Math.min(t,a))}toggle(){switch(this.mode){case"off":this.mode=this.isCombinedAudio?"combined":"on";break;case"on":this.mode="off";break;case"combined":this.mode="on";break}const n=`Sound is ${this.isCombinedAudio&&this.mode==="on"?"separate":this.mode}`;this.notification.notify(n)}stop(t){(Array.isArray(t)?t:[t]).forEach(a=>{const o=this.activeAudioIds.get(a);if(!o){clearInterval(a);return}o.forEach(s=>{s==null||s.disconnect(),s==null||s.stop()}),clearTimeout(a),this.activeAudioIds.delete(a)})}stopAll(){this.activeAudioIds.entries().forEach(([t,n])=>{clearTimeout(t),n.forEach(a=>{a.disconnect(),a.stop()})}),this.activeAudioIds.clear()}playSimultaneousTones(t){const n=this.getVolume(),a=cT,o=this.audioContext,s=o.currentTime,f=this.getFrequencyRange(),d=Array.isArray(t[0].value)?t[0].value[1]??t[0].value[0]:t[0].value,m=t[0].min,y=t[0].max,x=this.interpolate(d,{min:m,max:y},f);t.forEach((S,w)=>{const T=x,R=this.audioPalette.getPaletteEntry(w).waveType,M=o.createOscillator();M.type=R,M.frequency.value=T;const _=o.createGain();_.gain.setValueAtTime(n,s),_.gain.exponentialRampToValueAtTime(.01*n,s+a),M.connect(_),_.connect(this.compressor),M.start(s),M.stop(s+a);const N=setTimeout(()=>{M.disconnect(),_.disconnect()},a*1e3*2);this.activeAudioIds.set(N,[M])})}}const Fie=250,Yie=50,Xie=500,Wie=20;class Qie{constructor(t,n,a){Q(this,"context");Q(this,"notification");Q(this,"settings");Q(this,"autoplayId");Q(this,"currentDirection");Q(this,"userSpeed");Q(this,"defaultSpeed");Q(this,"minSpeed");Q(this,"maxSpeed");Q(this,"autoplayRate");Q(this,"interval");Q(this,"currentDuration");Q(this,"onChangeEmitter");Q(this,"onChange");this.notification=n,this.context=t,this.settings=a,this.autoplayId=null,this.currentDirection=null,this.userSpeed=null,this.defaultSpeed=Fie,this.minSpeed=Yie,this.maxSpeed=Xie,this.autoplayRate=this.defaultSpeed,this.interval=Wie,this.currentDuration=this.settings.loadSettings().general.autoplayDuration,this.onChangeEmitter=new m0,this.onChange=this.onChangeEmitter.event,this.settings.addObserver(this)}dispose(){this.stop(),this.onChangeEmitter.dispose(),this.settings.removeObserver(this)}update(t){this.updateSettings(t)}updateSettings(t){this.currentDuration=t.general.autoplayDuration,this.currentDirection&&this.restart()}start(t,n){this.stop(),this.onChangeEmitter.fire({type:"start"}),this.autoplayRate=this.getAutoplayRate(t,n),this.currentDirection=t,this.autoplayId=setInterval(()=>{this.context.isMovable(t)?this.context.moveOnce(t):this.stop()},this.autoplayRate)}stop(){this.autoplayId&&clearInterval(this.autoplayId),this.autoplayId=null,this.currentDirection=null,this.onChangeEmitter.fire({type:"stop"})}restart(){this.autoplayId&&clearInterval(this.autoplayId),this.currentDirection&&this.start(this.currentDirection)}speedUp(){const t=this.userSpeed??this.autoplayRate;t-this.interval>this.minSpeed?(this.userSpeed=t-this.interval,this.autoplayRate=this.userSpeed,this.restart(),this.notification.notify("Speed up")):this.notification.notify("Max speed")}speedDown(){const t=this.userSpeed??this.autoplayRate;t+this.interval<=this.maxSpeed?(this.userSpeed=t+this.interval,this.autoplayRate=this.userSpeed,this.restart(),this.notification.notify("Speed down")):this.notification.notify("Min speed")}resetSpeed(){this.userSpeed=null,this.autoplayRate=this.defaultSpeed,this.restart(),this.notification.notify("Reset speed")}getAutoplayRate(t,n){if(this.userSpeed!==null)return this.userSpeed;if(n&&!n.empty){const a=Math.ceil(this.currentDuration/n.autoplay[t]);return this.defaultSpeed=a,this.minSpeed=Math.min(this.minSpeed,a),a}return this.defaultSpeed}}const l_=32;class pv{encode(t){const n=new Array,a=new Array,o=new Array;for(let s=0;s<t.values.length;s++){a.push(new Array);const f=(t.max[s]-t.min[s])/4,d=t.min[s]+f,m=d+f,y=m+f;for(let x=0;x<t.values[s].length;x++)t.values[s][x]===0?n.push(" "):t.values[s][x]<=d||t.values[s][x]<=m?n.push("⠤"):t.values[s][x]<=y?n.push("⠒"):n.push("⠉"),a[s].push(o.length),o.push({row:s,col:x});n.push(xe.NEW_LINE),a[s].push(o.length),o.push({row:s,col:t.values[s].length})}return{value:n.join(xe.EMPTY),cellToIndex:a,indexToCell:o}}}class Kie{constructor(){Q(this,"GLOBAL_MIN","globalMin");Q(this,"GLOBAL_MAX","globalMax");Q(this,"BLANK","blank");Q(this,"LOWER_OUTLIER","lowerOutlier");Q(this,"UPPER_OUTLIER","upperOutlier");Q(this,"MIN","min");Q(this,"MAX","max");Q(this,"Q1","q1");Q(this,"Q2","q2");Q(this,"Q3","q3")}encode(t,n=l_){const a=new Array,o=new Array,s=new Array;for(let f=0;f<t.values.length;f++){const d=t.values[f],m=[{type:this.GLOBAL_MIN,value:t.min},...d.lowerOutliers.map(X=>({type:this.LOWER_OUTLIER,value:X})),{type:this.MIN,value:d.min},{type:this.Q1,value:d.q1},{type:this.Q2,value:d.q2},{type:this.Q3,value:d.q3},{type:this.MAX,value:d.max},...d.upperOutliers.map(X=>({type:this.UPPER_OUTLIER,value:X})),{type:this.GLOBAL_MAX,value:t.max}],y=new Array;let x=!0;for(let X=0;X<m.length-1;X++){const ie=m[X],le=m[X+1],Z=Math.abs(x?le.value-ie.value:ie.value-m[X-1].value);ie.type===this.LOWER_OUTLIER||ie.type===this.UPPER_OUTLIER?(y.push({type:ie.type,length:0,numChars:1}),y.push({type:this.BLANK,length:Z,numChars:0})):ie.type===this.Q2?(x=!1,y.push({type:this.Q2,length:0,numChars:2})):ie.type===this.GLOBAL_MIN||ie.type===this.GLOBAL_MAX?y.push({type:this.BLANK,length:Z,numChars:0}):y.push({type:ie.type,length:Z,numChars:1})}let S=y.reduce((X,ie)=>X+(ie.numChars>0?ie.numChars:0),0),[w,T,C,R]=[-1,-1,-1,-1];for(let X=0;X<y.length;X++)y[X].type===this.MIN&&y[X].length>0&&(w=X),y[X].type===this.MAX&&y[X].length>0&&(T=X),y[X].type===this.Q1&&(C=X),y[X].type===this.Q3&&(R=X);w!==-1&&T!==-1&&y[w].length!==y[T].length&&(y[w].length>y[T].length?(y[w].numChars++,S++):(y[T].numChars++,S++)),C!==-1&&R!==-1&&y[C].length!==y[R].length&&(y[C].length>y[R].length?(y[C].numChars++,S++):(y[R].numChars++,S++));const M=Math.max(0,n-S),_=y.reduce((X,ie)=>X+(ie.type!==this.Q2&&ie.length>0?ie.length:0),0);for(const X of y)if(X.type!==this.Q2&&X.length>0){const ie=Math.round(X.length/_*M);X.numChars+=ie}const N=y.reduce((X,ie)=>X+ie.numChars,0);let P=n-N,B=0;for(;P!==0;){const X=y[B%y.length];X.type!==this.BLANK&&X.type!==this.Q2&&X.length>0&&(X.numChars+=P>0?1:-1,P+=P>0?-1:1),B++}let z=-1;const $=[this.LOWER_OUTLIER,this.MIN,this.Q1,this.Q2,this.Q3,this.MAX,this.UPPER_OUTLIER];s.push(Array.from({length:$.length}).fill(-1));for(const X of y){X.type!==this.BLANK&&X.type!==this.GLOBAL_MIN&&X.type!==this.GLOBAL_MAX&&(z=$.indexOf(X.type),s[f][z]=a.length);for(let ie=0;ie<X.numChars;ie++){let le="⠀";X.type===this.MIN||X.type===this.MAX?le="⠒":X.type===this.Q1||X.type===this.Q3?le="⠿":X.type===this.Q2?le=ie===0?"⠸":"⠇":X.type===this.LOWER_OUTLIER||X.type===this.UPPER_OUTLIER?le="⠂":X.type===this.BLANK&&(le="⠀"),a.push(le),o.push({row:f,col:z})}}for(let X=0;X<3;X++)if(s[f][X]===-1){for(let ie=X+1;ie<=3;ie++)if(s[f][ie]!==-1){s[f][X]=s[f][ie];break}}for(let X=6;X>3;X--)if(s[f][X]===-1){for(let ie=X-1;ie>=3;ie--)if(s[f][ie]!==-1){s[f][X]=s[f][ie];break}}a.push(xe.NEW_LINE),o.push({row:f,col:z})}return{value:a.join(xe.EMPTY),cellToIndex:s,indexToCell:o}}}class Zie{encode(t){const n=new Array,a=new Array,o=new Array,s=(t.max-t.min)/3,f=t.min+s,d=f+s;for(let m=0;m<t.values.length;m++){a.push(new Array);for(let y=0;y<t.values[m].length;y++)t.values[m][y]===0?n.push(" "):t.values[m][y]<=f?n.push("⠤"):t.values[m][y]<=d?n.push("⠒"):n.push("⠉"),a[m].push(o.length),o.push({row:m,col:y});n.push(xe.NEW_LINE),a[m].push(o.length),o.push({row:m,col:t.values[m].length})}return{value:n.join(xe.EMPTY),cellToIndex:a,indexToCell:o}}}class s_{encode(t){const n=new Array,a=new Array,o=new Array;for(let s=0;s<t.values.length;s++){a.push(new Array);const{low:f,medium:d,mediumHigh:m,high:y}=this.getThresholds(s,t);for(let x=0;x<t.values[s].length;x++){const S=t.values[s][x],w=x>0?t.values[s][x-1]:null,T=this.getBrailleChar(S,w,f,d,y,m);n.push(T),a[s].push(o.length),o.push({row:s,col:x})}n.push(xe.NEW_LINE),a[s].push(o.length),o.push({row:s,col:t.values[s].length})}return{value:n.join(xe.EMPTY),cellToIndex:a,indexToCell:o}}getBrailleChar(t,n,a,o,s,f){return f===void 0&&(f=s),t<=a&&n!==null&&n>a?n<=o?"⢄":n<=f?"⢆":"⢇":t<=a?"⣀":n!==null&&n<=a?t<=o?"⡠":t<=f?"⡰":"⡸":t<=o&&n!==null&&n>o?n<=f?"⠢":"⠣":t<=o?"⠤":n!==null&&n<=o?t<=f?"⠔":"⠜":t<=f&&n!==null&&n>f?"⠑":t<=f?"⠒":n!==null&&n<=f?"⠊":t<=s?"⠉":""}getBraille6Char(t,n,a,o,s){const f=S=>S<=a?"low":S<=o?"medium":(S<=s,"high"),d=f(t),m=n!==null?f(n):null,y={"low,medium":"⠢","low,high":"⠣","low,null":"⠤","low,low":"⠤","medium,low":"⠔","medium,high":"⠑","medium,null":"⠒","medium,medium":"⠒","high,low":"⠜","high,medium":"⠊","high,null":"⠉","high,high":"⠉"},x=`${d},${m}`;return y[x]||""}addDot8(t){if(!t||t.length===0)return"⢀";const o=t.charCodeAt(0)-10240|128;return String.fromCharCode(10240+o)}}class Jie extends s_{getThresholds(t,n){const a=Array.isArray(n.min)?n.min[t]:n.min,o=Array.isArray(n.max)?n.max[t]:n.max,s=(o-a)/3,f=a+s,d=f+s;return{low:f,medium:d,high:o}}encode(t){var s;const n=new Array,a=new Array,o=new Array;for(let f=0;f<t.values.length;f++){a.push(new Array);const{low:d,medium:m,high:y}=this.getThresholds(f,t);for(let x=0;x<t.values[f].length;x++){const S=t.values[f][x],w=x>0?t.values[f][x-1]:null;let T=this.getBraille6Char(S,w,d,m,y);((s=t.custom)==null?void 0:s[x])==="Bear"&&(T=this.addDot8(T)),n.push(T),a[f].push(o.length),o.push({row:f,col:x})}n.push(xe.NEW_LINE),a[f].push(o.length),o.push({row:f,col:t.values[f].length})}return{value:n.join(xe.EMPTY),cellToIndex:a,indexToCell:o}}}class eoe extends s_{getThresholds(t,n){const a=(n.max[t]-n.min[t])/4,o=n.min[t]+a,s=o+a,f=s+a,d=n.max[t];return{low:o,medium:s,mediumHigh:f,high:d}}}class toe{constructor(t,n,a){Q(this,"context");Q(this,"notification");Q(this,"display");Q(this,"enabled");Q(this,"cacheId");Q(this,"cache");Q(this,"encoders");Q(this,"onChangeEmitter");Q(this,"onChange");this.context=t,this.notification=n,this.display=a,this.enabled=!1,this.cacheId=xe.EMPTY,this.cache=null,this.encoders=new Map([[Ar.BAR,new pv],[Ar.BOX,new Kie],[Ar.CANDLESTICK,new Jie],[Ar.DODGED,new pv],[Ar.HEATMAP,new Zie],[Ar.HISTOGRAM,new pv],[Ar.LINE,new eoe],[Ar.NORMALIZED,new pv],[Ar.STACKED,new pv]]),this.onChangeEmitter=new m0,this.onChange=this.onChangeEmitter.event}dispose(){this.onChangeEmitter.dispose(),this.cache=null,this.encoders.clear()}update(t){if(!this.enabled||t.empty)return;const n=t.type==="subplot"?t.trace:t;if(n.empty||n.braille.empty||!this.encoders.has(n.traceType))return;const a=n.braille;if(this.cacheId!==a.id||this.cache===null){const o=this.encoders.get(n.traceType);this.cache=o.encode(a,l_),this.cacheId=a.id}this.onChangeEmitter.fire({value:this.cache.value.trim(),index:this.cache.cellToIndex[a.row][a.col]})}moveToIndex(t){if(!this.enabled||this.cache===null||t<0||t>=this.cache.indexToCell.length)return;const{row:n,col:a}=this.cache.indexToCell[t];this.context.moveToIndex(n,a)}toggle(t){if(t.empty){this.notification.notify("No info for braille");return}if(t.braille.empty){const a=`Braille is not supported for plot type: ${t.braille.traceType}`;this.notification.notify(a);return}this.enabled=!this.enabled,this.update(t),this.display.toggleFocus(pn.BRAILLE);const n=`Braille is ${this.enabled?"on":"off"}`;this.notification.notify(n)}}var u_=(e=>(e[e.OK=200]="OK",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.SERVER_ERROR=500]="SERVER_ERROR",e))(u_||{});class c_{constructor(){}static async post(t,n,a){const o={...this.DEFAULT_HEADERS,...a};return this.request(t,"POST",o,n)}static async request(t,n,a,o){try{const s=await fetch(t,{method:n,headers:a,body:o});return s.ok?{success:!0,data:await s.json()}:{success:!1,error:{statusCode:s.status,message:`API Error: ${s.status} - ${s.statusText}`}}}catch(s){return console.error(`Error in API ${n} request to ${t}:`,s),{success:!1,error:{statusCode:u_.SERVER_ERROR,message:s instanceof Error?s.message:"Unknown error occurred"}}}}}Q(c_,"DEFAULT_HEADERS",{"Content-Type":"application/json"});const noe=`You are an accessibility assistant specializing in describing statistical visualizations to blind users. Your role is to:
857
857
  1. Provide simple, straightforward descriptions of charts and graphs
858
858
  2. Focus on basic patterns and key points
859
859
  3. Use simple, everyday language with minimal statistical terms
@@ -884,5 +884,5 @@ Focus on providing a clear, structured response that helps me understand the key
884
884
 
885
885
  ${e}`}function pT(e){return ioe.replace("{maidrJson}",e.maidrJson).replace("{currentPositionText}",e.currentPositionText).replace("{message}",e.message)}class soe{constructor(t,n){Q(this,"display");Q(this,"models");this.display=t,this.models={OPENAI:new uoe(t.plot,n,"gpt-4o"),ANTHROPIC_CLAUDE:new coe(t.plot,n,"claude-3-7-sonnet-latest"),GOOGLE_GEMINI:new foe(t.plot,n,"gemini-2.0-flash")}}async sendMessage(t,n){return this.models[t].getLlmResponse(n)}toggle(){this.display.toggleFocus(pn.CHAT)}}class hT{constructor(t,n){Q(this,"svg");Q(this,"json");Q(this,"maidrBaseUrl");Q(this,"codeQueryParam");this.svg=t,this.json=JSON.stringify(n),this.maidrBaseUrl="https://maidr-service.azurewebsites.net/api",this.codeQueryParam="I8Aa2PlPspjQ8Hks0QzGyszP8_i2-XJ3bq7Xh8-ykEe4AzFuYn_QWA%3D%3D"}async getLlmResponse(t){var n;try{const a=await on.toBase64(this.svg),o=t.expertise==="custom"?"advanced":t.expertise,s=this.getPayload(t.customInstruction,this.json,a,"",t.message,o),f=t.clientToken?this.getMaidrUrl():this.getApiUrl(t.apiKey),d=this.getHeaders(t),m=await c_.post(f,s,d);return m.success?m.data?this.formatResponse(m.data):{success:!1,error:"Response unavailable"}:{success:!1,error:(n=m.error)==null?void 0:n.message}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Unknown error occurred"}}}getMaidrUrl(){return`${this.maidrBaseUrl}/${this.getEndPoint()}?code=${this.codeQueryParam}`}getHeaders(t){const n={"Content-Type":"application/json"};return t.clientToken?n.Authentication=`${t.email} ${t.clientToken}`:n.Authorization=`Bearer ${t.apiKey}`,n}}class uoe extends hT{constructor(n,a,o){super(n,a);Q(this,"version");this.version=o}getApiUrl(){return"https://api.openai.com/v1/chat/completions"}getEndPoint(){return"openai"}getPayload(n,a,o,s,f,d){const m={maidrJson:a,currentPositionText:s,message:f,expertiseLevel:d};return JSON.stringify({model:this.version,max_tokens:1e3,messages:[{role:"system",content:dT(n,m.expertiseLevel)},{role:"user",content:[{type:"text",text:pT(m)},{type:"image_url",image_url:{url:o}}]}]})}formatResponse(n){return n.choices.length===0?{success:!1,error:"Invalid response format"}:{success:!0,data:n.choices[0].message.content}}getHeaders(n){return super.getHeaders(n)}}class coe extends hT{constructor(n,a,o){super(n,a);Q(this,"version");this.version=o}getApiUrl(){return"https://api.anthropic.com"}getEndPoint(){return"claude"}getPayload(n,a,o,s,f,d){const m={maidrJson:a,currentPositionText:s,message:f,expertiseLevel:d};return JSON.stringify({anthropic_version:this.version,max_tokens:256,messages:[{role:"user",content:[{type:"image",source:{type:"base64",media_type:"image/jpeg",data:o}},{type:"text",text:`${dT(n,m.expertiseLevel)}
886
886
 
887
- ${pT(m)}`}]}]})}formatResponse(n){return n.content.length===0?{success:!1,error:"Invalid response format"}:{success:!0,data:n.content[0].text}}getHeaders(n){const a=super.getHeaders(n);return a["anthropic-version"]=this.version,a}}class foe extends hT{constructor(n,a,o){super(n,a);Q(this,"version");this.version=o}getApiUrl(n){if(!n)throw new Error("API key is required for Gemini API");return`https://generativelanguage.googleapis.com/v1beta/models/${this.version}:generateContent?key=${n}`}getEndPoint(){return"gemini"}getPayload(n,a,o,s,f,d){const m={maidrJson:a,currentPositionText:s,message:f,expertiseLevel:d};return JSON.stringify({generationConfig:{},safetySettings:[],contents:[{role:"user",parts:[{text:dT(n,m.expertiseLevel)}]},{role:"user",parts:[{text:pT(m)},{inlineData:{data:o.split(",")[1],mimeType:"image/svg+xml"}}]}]})}formatResponse(n){return n.candidates.length===0?{success:!1,error:"Invalid response format"}:{success:!0,data:n.candidates[0].content.parts[0].text}}getHeaders(n){const a=super.getHeaders(n);return delete a.Authorization,a}}class doe{constructor(t,n){Q(this,"commandFactory");Q(this,"currentScope");Q(this,"context");this.commandFactory=new k8(t),this.currentScope=n,this.context=t}getContext(){return this.context}executeCommand(t){const n=qS[this.currentScope];if(!n||!(t in n)){console.warn(`Command ${t} is not available in scope ${this.currentScope}`);return}try{this.commandFactory.create(t).execute()}catch(a){console.error(`Failed to execute command ${t}:`,a)}}setScope(t){this.currentScope=t}getCurrentScope(){return this.currentScope}}class poe{constructor(t,n){Q(this,"context");Q(this,"display");this.context=t,this.display=n}toggle(){this.context.scope!==pn.COMMAND_PALETTE&&this.display.toggleFocus(pn.COMMAND_PALETTE)}returnToTraceScope(){this.context.scope!==pn.TRACE&&this.display.toggleFocus(pn.COMMAND_PALETTE)}}function hoe(e){return e!==null&&typeof e=="object"&&"ensureInitialized"in e&&typeof e.ensureInitialized=="function"}class moe{constructor(t,n,a){Q(this,"context");Q(this,"focusStack");Q(this,"plot");Q(this,"onChangeEmitter");Q(this,"onChange");Q(this,"hasEnteredInteractive",!1);Q(this,"textService");Q(this,"isReturningFromModeToggle",!1);Q(this,"textChangeDisposer",null);Q(this,"hasClearedOnFirstNav",!1);this.context=t,this.focusStack=new iT,this.focusStack.push(this.context.scope),this.plot=n,this.textService=a,this.onChangeEmitter=new m0,this.onChange=this.onChangeEmitter.event,this.removeInstruction(),this.textChangeDisposer=this.textService.onChange(()=>{this.hasClearedOnFirstNav||(this.plot.removeAttribute(xe.ARIA_LABEL),this.hasClearedOnFirstNav=!0)})}dispose(){var t;this.addInstruction(),(t=this.textChangeDisposer)==null||t.dispose(),this.textChangeDisposer=null,this.onChangeEmitter.dispose()}getInstruction(t=!0){return this.context.getInstruction(t)}addInstruction(){this.plot.setAttribute(xe.ARIA_LABEL,this.getInstruction()),this.plot.setAttribute(xe.TITLE,this.getInstruction()),this.plot.setAttribute(xe.ROLE,xe.IMAGE),this.plot.tabIndex=0}removeInstruction(){const t=this.hasEnteredInteractive?"":this.getInstruction(!1);t?(this.plot.setAttribute(xe.ARIA_LABEL,t),this.plot.removeAttribute(xe.TITLE),this.plot.setAttribute(xe.ROLE,xe.APPLICATION),this.plot.tabIndex=0):(this.plot.removeAttribute(xe.ARIA_LABEL),this.plot.removeAttribute(xe.TITLE),this.plot.setAttribute(xe.ROLE,xe.APPLICATION),this.plot.tabIndex=0)}getTraceAriaLabel(){const t=this.textService.format(this.context.state);return t&&t.trim().length>0?t:this.getInstruction(!1)}toggleFocus(t){this.isReturningFromModeToggle=t==="BRAILLE"||t==="REVIEW"||t==="GO_TO_EXTREMA"||t==="COMMAND_PALETTE",this.isReturningFromModeToggle&&this.plot.removeAttribute(xe.ARIA_LABEL),this.focusStack.removeLast(t)||this.focusStack.push(t);const n=this.focusStack.peek();this.context.toggleScope(n),this.updateFocus(n)}updateFocus(t){t==="TRACE"||t==="SUBPLOT"?(this.plot.tabIndex=0,setTimeout(()=>{if(this.isReturningFromModeToggle)this.isReturningFromModeToggle=!1,this.plot.removeAttribute(xe.ARIA_LABEL);else{const n=this.context.active;n&&hoe(n)&&n.ensureInitialized(),this.hasEnteredInteractive||this.plot.removeAttribute(xe.ARIA_LABEL)}this.plot.setAttribute(xe.ROLE,xe.APPLICATION),this.plot.focus(),this.hasEnteredInteractive||(this.hasEnteredInteractive=!0),this.onChangeEmitter.fire({value:t})},0)):this.onChangeEmitter.fire({value:t})}}class goe{constructor(t,n){Q(this,"context");Q(this,"display");this.context=t,this.display=n}toggle(t){if(t.empty)return;const n=this.context.active;n&&this.isExtremaNavigable(n)&&this.context.scope!==pn.GO_TO_EXTREMA&&this.display.toggleFocus(pn.GO_TO_EXTREMA)}isExtremaNavigable(t){return t instanceof H0&&t.supportsExtremaNavigation()}returnToTraceScope(){this.context.scope!==pn.TRACE&&this.display.toggleFocus(pn.GO_TO_EXTREMA)}}const mT=[{description:"Navigate Data Points",key:"arrow keys"},{description:"Move to Next Layer",key:"page up"},{description:"Move to Previous Layer",key:"page down"},{description:"Go to Left/Right/Top/Bottom Extreme Point",key:`${Kt.ctrl} + arrow keys`},{description:"Toggle Braille Mode",key:"b"},{description:"Toggle Text Mode",key:"t"},{description:"Toggle Sonification Mode",key:"s"},{description:"Toggle Review Mode",key:"r"},{description:"Autoplay Outward",key:`${Kt.ctrl} + shift + arrow keys`},{description:"Stop Autoplay",key:`${Kt.ctrl}`},{description:"Speed Up Autoplay",key:". (period)"},{description:"Speed Down Autoplay",key:", (comma)"},{description:"Reset Autoplay Speed",key:"/ (slash)"},{description:"Replay Current Point",key:"space"},{description:"Announce Plot Title",key:"l t"},{description:"Announce X Label",key:"l x"},{description:"Announce Y Label",key:"l y"},{description:"Announce Fill (Z) Label",key:"l f"},{description:"Open Settings",key:`${Kt.ctrl} + ,`},{description:"Open Chat",key:"?"}],f_=[{description:"Move around Subplot",key:"arrow keys"},{description:"Activate Current Subplot",key:`${Kt.enter}`},{description:"Announce Plot Title",key:"l t"},{description:"Announce Subtitle",key:"l s"},{description:"Announce Caption",key:"l c"},{description:"Open Settings",key:`${Kt.ctrl} + ,`}];class yoe{constructor(t,n){Q(this,"context");Q(this,"display");Q(this,"scopedMenuItems");this.context=t,this.display=n,this.scopedMenuItems={[pn.TRACE]:mT,[pn.TRACE_LABEL]:mT,[pn.BRAILLE]:mT,[pn.SUBPLOT]:f_,[pn.FIGURE_LABEL]:f_}}getMenuItems(){return this.scopedMenuItems[this.context.scope]??[]}toggle(){this.display.toggleFocus(pn.HELP)}}class voe{constructor(t){Q(this,"highlightedElements");Q(this,"highlightedSubplots");Q(this,"currentHighlightColor");this.highlightedElements=new Map,this.highlightedSubplots=new Set;const n=t.loadSettings();this.currentHighlightColor=n.general.highlightColor}dispose(){this.unhighlightAll()}isSettings(t){return"general"in t}createHighlightElement(t){if(!(t instanceof SVGElement))throw new TypeError("Invalid element provided for highlight creation");const n=on.createHighlightElement(t,this.currentHighlightColor);return n.id=`${xe.MAIDR_HIGHLIGHT}-${Date.now()}-${Math.random()}`,n}handleSettingsUpdate(t){this.currentHighlightColor=t.general.highlightColor}handleStateUpdate(t){t.empty||(this.unhighlightTraceElements(),t.type==="figure"?this.handleFigureState(t):t.type==="subplot"?this.handleSubplotState(t):this.handleTraceState(t))}handleFigureState(t){t.empty||this.processHighlighting(t.highlight)}handleSubplotState(t){t.empty||this.processHighlighting(t.highlight)}handleTraceState(t){if(t.empty||t.highlight.empty)return;const n=this.getElementsFromHighlight(t.highlight);this.highlightTraceElements(n)}processHighlighting(t){if(t.empty)return;const n=this.getElementsFromHighlight(t);this.isMultiPlotScenario()?this.highlightSubplotElements(n):this.unhighlightSubplotElements()}getElementsFromHighlight(t){return t.empty?[]:Array.isArray(t.elements)?t.elements:[t.elements]}isMultiPlotScenario(){return document.querySelectorAll('g[id^="axes_"]').length>1}highlightTraceElements(t){for(const n of t)try{const a=this.createHighlightElement(n);this.highlightedElements.set(n,a)}catch(a){console.error("Failed to highlight element:",a)}}highlightSubplotElements(t){var o;this.unhighlightSubplotElements();const n=(o=document.querySelector('g[id^="maidr-"] > path[style*="fill"]'))==null?void 0:o.parentElement,a=(n==null?void 0:n.querySelector('path[style*="fill"]'))||void 0;for(const s of t)on.setSubplotHighlightSvgWithAdaptiveColor(s,this.currentHighlightColor,a),this.highlightedSubplots.add(s)}update(t){try{this.isSettings(t)?this.handleSettingsUpdate(t):this.handleStateUpdate(t)}catch(n){console.error("Failed to update highlight service:",n)}}highlight(t){if(!(t instanceof SVGElement)){console.warn("Invalid element provided to highlight method");return}try{this.unhighlight(t);const n=this.createHighlightElement(t);this.highlightedElements.set(t,n)}catch(n){console.error("Failed to highlight element:",n)}}unhighlight(t){if(!(t instanceof SVGElement))return;const n=this.highlightedElements.get(t);if(n)try{n.remove(),this.highlightedElements.delete(t)}catch(a){console.error("Failed to unhighlight element:",a)}}clear(){try{this.highlightedElements.forEach(t=>{t.remove()}),this.highlightedElements.clear(),this.unhighlightSubplotElements()}catch(t){console.error("Failed to clear highlights:",t)}}unhighlightTraceElements(){this.highlightedElements.forEach(t=>{t.remove()}),this.highlightedElements.clear()}unhighlightSubplotElements(){this.highlightedSubplots.forEach(t=>{on.removeSubplotHighlightSvg(t)}),this.highlightedSubplots.clear()}unhighlightAll(){this.unhighlightTraceElements(),this.unhighlightSubplotElements()}}class boe{constructor(){Q(this,"onChangeEmitter");Q(this,"onChange");this.onChangeEmitter=new m0,this.onChange=this.onChangeEmitter.event}dispose(){this.onChangeEmitter.dispose()}notify(t){t&&this.onChangeEmitter.fire({value:t})}}class xoe{constructor(t,n,a){Q(this,"notification");Q(this,"display");Q(this,"text");Q(this,"enabled");Q(this,"onChangeEmitter");Q(this,"onChange");this.notification=t,this.display=n,this.text=a,this.enabled=!1,this.onChangeEmitter=new m0,this.onChange=this.onChangeEmitter.event}dispose(){this.onChangeEmitter.dispose()}update(t){if(!this.enabled||t.empty)return;const n=this.text.format(t);n&&this.onChangeEmitter.fire({value:n})}toggle(t){if(t.empty){this.notification.notify("No info for review");return}this.enabled=!this.enabled,this.update(t),this.display.toggleFocus(pn.REVIEW);const n=`Review is ${this.enabled?"on":"off"}`;this.notification.notify(n)}}const gT="maidr-settings";class Soe{constructor(t,n){Q(this,"storage");Q(this,"display");Q(this,"defaultSettings");Q(this,"currentSettings");Q(this,"observers");this.storage=t,this.display=n,this.observers=[],this.defaultSettings={general:{volume:50,highlightColor:"#03c809",brailleDisplaySize:32,minFrequency:200,maxFrequency:1e3,autoplayDuration:4e3,ariaMode:"assertive"},llm:{expertiseLevel:"basic",customInstruction:"",models:{OPENAI:{enabled:!1,apiKey:"",name:"OpenAI",version:"gpt-4o"},ANTHROPIC_CLAUDE:{enabled:!1,apiKey:"",name:"Anthropic Claude",version:"claude-3-7-sonnet-latest"},GOOGLE_GEMINI:{enabled:!1,apiKey:"",name:"Google Gemini",version:"gemini-2.0-flash"}}}};const a=this.storage.load(gT);this.currentSettings=a??this.defaultSettings}get state(){return this.currentSettings}addObserver(t){this.observers.push(t)}removeObserver(t){this.observers=this.observers.filter(n=>n!==t)}notifyStateUpdate(){for(const t of this.observers)t.update(this.currentSettings)}loadSettings(){return this.currentSettings}saveSettings(t){this.currentSettings=t,this.storage.save(gT,this.currentSettings),this.notifyStateUpdate()}resetSettings(){return this.currentSettings=this.defaultSettings,this.storage.remove(gT),this.notifyStateUpdate(),this.currentSettings}toggle(){this.display.toggleFocus(pn.SETTINGS)}}class Eoe{save(t,n){try{const a=JSON.stringify(n);localStorage.setItem(t,a)}catch(a){console.error(`Error while saving ${t} to storage`,a)}}load(t){try{const n=localStorage.getItem(t);return n===null?null:JSON.parse(n)}catch(n){return console.error(`Error while loading ${t} from storage`,n),null}}remove(t){try{localStorage.removeItem(t)}catch(n){console.error(`Error while removing ${t} from storage`,n)}}}function d_(e){return!e.empty&&e.isLayerSwitch===!0&&typeof e.index=="number"&&typeof e.size=="number"}class Toe{constructor(t){Q(this,"notification");Q(this,"mode");Q(this,"currentState",null);Q(this,"currentSubplotIndex",null);Q(this,"hasHadFirstNavigation",!1);Q(this,"onChangeEmitter");Q(this,"onChange");Q(this,"onNavigationEmitter");Q(this,"onNavigation");this.notification=t,this.mode="verbose",this.onChangeEmitter=new m0,this.onChange=this.onChangeEmitter.event,this.onNavigationEmitter=new m0,this.onNavigation=this.onNavigationEmitter.event}dispose(){this.onChangeEmitter.dispose(),this.onNavigationEmitter.dispose()}getCurrentState(){return this.currentState}getCoordinateText(){return!this.currentState||this.currentState.empty?null:this.currentState.type==="subplot"&&!this.currentState.trace.empty?this.formatCoordinateText(this.currentState.trace):this.currentState.type==="trace"&&!this.currentState.empty?this.formatCoordinateText(this.currentState):null}isLayerSwitch(){if(!this.currentState||this.currentState.empty||this.currentState.type!=="subplot")return!1;const t=this.currentState.index;return this.currentSubplotIndex!==null&&this.currentSubplotIndex!==t?(this.currentSubplotIndex=t,!0):this.currentSubplotIndex===null?(this.currentSubplotIndex=t,t!==0):!1}getHasHadFirstNavigation(){return this.hasHadFirstNavigation}enableAnnouncements(){this.onNavigationEmitter.fire({type:"first_navigation"})}formatCoordinateText(t){if(t.empty||!t.text)return null;const{text:n}=t,a=[];if(n.main&&n.main.value!==void 0){const o=Array.isArray(n.main.value)?n.main.value.join(", "):String(n.main.value);a.push(`${n.main.label} is ${o}`)}if(n.cross&&n.cross.value!==void 0){const o=Array.isArray(n.cross.value)?n.cross.value.join(", "):String(n.cross.value);a.push(`${n.cross.label} is ${o}`)}return n.fill&&n.fill.value!==void 0&&a.push(`${n.fill.label} is ${n.fill.value}`),a.length>0?a.join(", "):null}formatLayerSwitchAnnouncement(t){if(!d_(t))return"";let n=`Layer ${t.index} of ${t.size}: ${t.plotType||t.traceType} plot`;if(t.text){const a=[];t.text.main&&t.text.main.value!==void 0&&a.push(`${t.text.main.label} is ${t.text.main.value}`),t.text.cross&&t.text.cross.value!==void 0&&a.push(`${t.text.cross.label} is ${t.text.cross.value}`),t.text.fill&&t.text.fill.value!==void 0&&a.push(`${t.text.fill.label} is ${t.text.fill.value}`),a.length>0&&(n+=` at ${a.join(", ")}`)}return n}format(t){return typeof t=="string"?t:!t||t.empty?t.type==="subplot"?"No additional layer":`No ${t.type==="trace"?"plot":t.type} info to display`:t.type==="figure"?this.formatFigureText(t.index,t.size,t.traceTypes):t.type==="subplot"?this.formatSubplotText(t.index,t.size,t.trace.traceType,t.trace):this.mode==="verbose"?this.formatVerboseTraceText(t.text):this.formatTerseTraceText(t.text)}formatFigureText(t,n,a){const o=a.length===1?`This is a ${a[0]} plot`:`This is a multi-layered plot containing ${a.join(xe.COMMA_SPACE)} plots`;return`Subplot ${t} of ${n}: ${o}. Press 'ENTER' to select this subplot.`}formatSubplotText(t,n,a,o){const s=o&&!o.empty?o.plotType:a;return`Layer ${t} of ${n}: ${s} plot`}isBoxPlotWithSection(t){return t.section!==void 0&&t.fill===void 0}formatVerboseTraceText(t){const n=new Array;if(n.push(t.main.label,xe.IS),t.range!==void 0?n.push(String(t.range.min),xe.THROUGH,String(t.range.max)):Array.isArray(t.main.value)?n.push(t.main.value.join(xe.COMMA_SPACE)):n.push(String(t.main.value)),t.section&&this.isBoxPlotWithSection(t)&&(t.section===us.UPPER_OUTLIER||t.section===us.LOWER_OUTLIER)&&Array.isArray(t.cross.value)){const a=typeof t.cross.label=="string"?t.cross.label.toLowerCase():t.cross.label,o=t.cross.value,s=`[${o.join(", ")}]`;if(o.length===0)return`${t.main.label} is ${t.main.value}, no ${t.section.toLowerCase()} for ${a}`;{const f=o.length===1?"is":"are";return`${t.main.label} is ${t.main.value}, ${t.section.toLowerCase()} for ${a} ${f} ${s}`}}if(t.section!==void 0)if(this.isBoxPlotWithSection(t)){const a=typeof t.cross.label=="string"?t.cross.label.toLowerCase():t.cross.label;n.push(xe.COMMA_SPACE,t.section.toLowerCase(),xe.SPACE,a)}else n.push(xe.COMMA_SPACE,t.section,xe.SPACE,t.cross.label);else n.push(xe.COMMA_SPACE,t.cross.label);if(Array.isArray(t.cross.value)?t.cross.value.length>1?n.push(xe.ARE,t.cross.value.join(xe.COMMA_SPACE)):t.cross.value.length>0&&n.push(xe.IS,t.cross.value.join(xe.COMMA_SPACE)):n.push(xe.IS,String(t.cross.value)),t.fill!==void 0){const a=t.fill.value==="Bull"||t.fill.value==="Bear"?t.fill.value.toLowerCase():t.fill.value;n.push(xe.COMMA_SPACE,t.fill.label,xe.IS,a)}return n.join(xe.EMPTY)}formatTerseTraceText(t){const n=new Array;if(Array.isArray(t.main.value)?n.push(xe.OPEN_BRACKET,t.main.value.join(xe.COMMA_SPACE),xe.CLOSE_BRACKET):n.push(String(t.main.value),xe.COMMA_SPACE),t.section&&this.isBoxPlotWithSection(t)&&(t.section===us.UPPER_OUTLIER||t.section===us.LOWER_OUTLIER)&&Array.isArray(t.cross.value)){const a=t.cross.value,o=`[${a.join(", ")}]`;return a.length===0?`${t.main.value}, no ${t.section.toLowerCase()}`:`${t.main.value}, ${a.length} ${t.section.toLowerCase()} ${o}`}if(t.section!==void 0&&t.fill!==void 0?(n.push(t.section,xe.SPACE),Array.isArray(t.cross.value)?n.push(xe.OPEN_BRACKET,t.cross.value.join(xe.COMMA_SPACE),xe.CLOSE_BRACKET):n.push(String(t.cross.value))):(t.section!==void 0&&t.fill===void 0&&n.push(t.section,xe.SPACE),Array.isArray(t.cross.value)?n.push(xe.OPEN_BRACKET,t.cross.value.join(xe.COMMA_SPACE),xe.CLOSE_BRACKET):n.push(String(t.cross.value))),t.fill!==void 0){const a=t.fill.value==="Bull"||t.fill.value==="Bear"?t.fill.value.toLowerCase():t.fill.value;t.section,n.push(xe.COMMA_SPACE,a)}return n.join(xe.EMPTY)}update(t){if(this.mode==="off")return;if(this.currentState=t,t.type==="trace"&&d_(t)){const a=this.formatLayerSwitchAnnouncement(t);this.notification.notify(a);return}if(t.type==="subplot"){const a=this.format(t);a&&this.notification.notify(a);return}t.type==="figure"&&!t.empty&&!this.hasHadFirstNavigation&&(this.hasHadFirstNavigation=!0,this.onNavigationEmitter.fire({type:"first_navigation"}));const n=this.format(t);n&&this.onChangeEmitter.fire({value:n})}toggle(){switch(this.mode){case"off":this.mode="verbose";break;case"terse":this.mode="off";break;case"verbose":this.mode="terse";break}const t=`Text mode is ${this.mode}`;return this.notification.notify(t),this.mode!=="off"}}class yT{constructor(t,n){Q(this,"figure");Q(this,"context");Q(this,"displayService");Q(this,"notificationService");Q(this,"settingsService");Q(this,"audioService");Q(this,"brailleService");Q(this,"goToExtremaService");Q(this,"textService");Q(this,"reviewService");Q(this,"autoplayService");Q(this,"highlightService");Q(this,"helpService");Q(this,"chatService");Q(this,"textViewModel");Q(this,"brailleViewModel");Q(this,"goToExtremaViewModel");Q(this,"reviewViewModel");Q(this,"displayViewModel");Q(this,"helpViewModel");Q(this,"chatViewModel");Q(this,"settingsViewModel");Q(this,"commandPaletteViewModel");Q(this,"keybinding");Q(this,"mousebinding");Q(this,"commandExecutor");this.figure=new Uie(t),this.context=new uie(this.figure),this.notificationService=new boe,this.textService=new Toe(this.notificationService),this.displayService=new moe(this.context,n,this.textService),this.settingsService=new Soe(new Eoe,this.displayService),this.audioService=new Gie(this.notificationService,this.context.state,this.settingsService),this.brailleService=new toe(this.context,this.notificationService,this.displayService),this.goToExtremaService=new goe(this.context,this.displayService),this.reviewService=new xoe(this.notificationService,this.displayService,this.textService),this.autoplayService=new Qie(this.context,this.notificationService,this.settingsService),this.highlightService=new voe(this.settingsService),this.helpService=new yoe(this.context,this.displayService),this.chatService=new soe(this.displayService,t),this.textViewModel=new XB(Ws,this.textService,this.notificationService,this.autoplayService),this.brailleViewModel=new YL(Ws,this.brailleService),this.goToExtremaViewModel=new MB(Ws,this.goToExtremaService,this.context),this.reviewViewModel=new BB(Ws,this.reviewService),this.displayViewModel=new CB(Ws,this.displayService),this.helpViewModel=new NB(Ws,this.helpService),this.settingsViewModel=new UB(Ws,this.settingsService),this.chatViewModel=new tI(Ws,this.chatService,this.audioService);const a=new poe(this.context,this.displayService);this.commandPaletteViewModel=new xB(Ws,a),this.keybinding=new gB({context:this.context,audioService:this.audioService,autoplayService:this.autoplayService,highlightService:this.highlightService,brailleViewModel:this.brailleViewModel,chatViewModel:this.chatViewModel,commandPaletteViewModel:this.commandPaletteViewModel,goToExtremaViewModel:this.goToExtremaViewModel,helpViewModel:this.helpViewModel,reviewViewModel:this.reviewViewModel,settingsViewModel:this.settingsViewModel,textViewModel:this.textViewModel}),this.mousebinding=new yB({context:this.context,audioService:this.audioService,autoplayService:this.autoplayService,highlightService:this.highlightService,brailleViewModel:this.brailleViewModel,chatViewModel:this.chatViewModel,commandPaletteViewModel:this.commandPaletteViewModel,goToExtremaViewModel:this.goToExtremaViewModel,helpViewModel:this.helpViewModel,reviewViewModel:this.reviewViewModel,settingsViewModel:this.settingsViewModel,textViewModel:this.textViewModel}),this.commandExecutor=new doe({context:this.context,audioService:this.audioService,autoplayService:this.autoplayService,highlightService:this.highlightService,brailleViewModel:this.brailleViewModel,chatViewModel:this.chatViewModel,commandPaletteViewModel:this.commandPaletteViewModel,goToExtremaViewModel:this.goToExtremaViewModel,helpViewModel:this.helpViewModel,reviewViewModel:this.reviewViewModel,settingsViewModel:this.settingsViewModel,textViewModel:this.textViewModel},this.context.scope),this.registerViewModels(),this.registerObservers(),this.keybinding.register(this.context.scope),this.mousebinding.registerEvents()}announceInitialInstruction(){this.notificationService.notify("⁣"),setTimeout(()=>{this.notificationService.notify(this.displayService.getInstruction(!1))},50)}getInitialInstruction(){return this.displayService.getInstruction(!1)}showInitialInstructionInText(){const t=this.displayService.getInstruction(!1);this.textViewModel.setAnnounce(!1),this.textViewModel.update(t)}dispose(){this.keybinding.unregister(),this.mousebinding.unregister(),Bi.instance.dispose(),this.settingsViewModel.dispose(),this.chatViewModel.dispose(),this.helpViewModel.dispose(),this.displayViewModel.dispose(),this.goToExtremaViewModel.dispose(),this.reviewViewModel.dispose(),this.brailleViewModel.dispose(),this.textViewModel.dispose(),this.commandPaletteViewModel.dispose(),this.highlightService.dispose(),this.autoplayService.dispose(),this.textService.dispose(),this.reviewService.dispose(),this.brailleService.dispose(),this.audioService.dispose(),this.notificationService.dispose(),this.displayService.dispose(),this.context.dispose(),this.figure.dispose()}registerViewModels(){Bi.instance.register("text",this.textViewModel),Bi.instance.register("braille",this.brailleViewModel),Bi.instance.register("goToExtrema",this.goToExtremaViewModel),Bi.instance.register("review",this.reviewViewModel),Bi.instance.register("display",this.displayViewModel),Bi.instance.register("help",this.helpViewModel),Bi.instance.register("chat",this.chatViewModel),Bi.instance.register("settings",this.settingsViewModel),Bi.instance.register("commandPalette",this.commandPaletteViewModel),Bi.instance.register("commandExecutor",this.commandExecutor)}registerObservers(){this.figure.addObserver(this.textService),this.figure.addObserver(this.audioService),this.figure.addObserver(this.highlightService),this.figure.subplots.forEach(t=>t.forEach(n=>{n.addObserver(this.textService),n.addObserver(this.brailleService),n.addObserver(this.highlightService),n.traces.forEach(a=>a.forEach(o=>{o.addObserver(this.audioService),o.addObserver(this.brailleService),o.addObserver(this.textService),o.addObserver(this.reviewService),o.addObserver(this.highlightService)}))}))}}document.readyState==="loading"?document.addEventListener(Wr.DOM_LOADED,p_):p_();function p_(){const e=document.querySelectorAll(`[${xe.MAIDR_DATA}]`);if(e.forEach(a=>{const o=a.getAttribute(xe.MAIDR_DATA);if(o)try{const s=JSON.parse(o);h_(s,a)}catch(s){console.error("Error parsing maidr attribute:",s)}}),e.length!==0)return;const t=window.maidr;if(!t)return;const n=document.getElementById(t.id);n&&h_(t,n)}function h_(e,t){let n=null,a=null,o=!1;const s=()=>{setTimeout(()=>{if(!n)return;const w=document.activeElement;n.contains(w)||(a&&a.dispose(),a=null,o=!1)},0)},f=()=>{setTimeout(()=>{if(n){if(!a){const w=JSON.parse(JSON.stringify(e));a=new yT(w,t)}o||(o=!0,a.showInitialInstructionInText())}},0)},d=()=>{if(document.visibilityState==="visible"){a&&(a.dispose(),a=null);const w=JSON.parse(JSON.stringify(e));a=new yT(w,t),o=!1}},m=document.createElement(xe.FIGURE);m.id=`${xe.MAIDR_FIGURE}-${e.id}`,t.parentNode.replaceChild(m,t),m.appendChild(t);const y=document.createElement(xe.ARTICLE);y.id=`${xe.MAIDR_ARTICLE}-${e.id}`,m.parentNode.replaceChild(y,m),y.appendChild(m);const x=document.createElement(xe.DIV);x.id=`${xe.REACT_CONTAINER}-${e.id}`,m.appendChild(x),n=m,t.addEventListener(Wr.FOCUS_IN,f),n.addEventListener(Wr.FOCUS_OUT,s),document.addEventListener(Wr.VISIBILITY_CHANGE,d),t.addEventListener(Wr.CLICK,f),sie.createRoot(x,{identifierPrefix:e.id}).render(nie(t)),(()=>{const w=JSON.parse(JSON.stringify(e));new yT(w,t).dispose()})()}}));
887
+ ${pT(m)}`}]}]})}formatResponse(n){return n.content.length===0?{success:!1,error:"Invalid response format"}:{success:!0,data:n.content[0].text}}getHeaders(n){const a=super.getHeaders(n);return a["anthropic-version"]=this.version,a}}class foe extends hT{constructor(n,a,o){super(n,a);Q(this,"version");this.version=o}getApiUrl(n){if(!n)throw new Error("API key is required for Gemini API");return`https://generativelanguage.googleapis.com/v1beta/models/${this.version}:generateContent?key=${n}`}getEndPoint(){return"gemini"}getPayload(n,a,o,s,f,d){const m={maidrJson:a,currentPositionText:s,message:f,expertiseLevel:d};return JSON.stringify({generationConfig:{},safetySettings:[],contents:[{role:"user",parts:[{text:dT(n,m.expertiseLevel)}]},{role:"user",parts:[{text:pT(m)},{inlineData:{data:o.split(",")[1],mimeType:"image/svg+xml"}}]}]})}formatResponse(n){return n.candidates.length===0?{success:!1,error:"Invalid response format"}:{success:!0,data:n.candidates[0].content.parts[0].text}}getHeaders(n){const a=super.getHeaders(n);return delete a.Authorization,a}}class doe{constructor(t,n){Q(this,"commandFactory");Q(this,"currentScope");Q(this,"context");this.commandFactory=new k8(t),this.currentScope=n,this.context=t}getContext(){return this.context}executeCommand(t){const n=qS[this.currentScope];if(!n||!(t in n)){console.warn(`Command ${t} is not available in scope ${this.currentScope}`);return}try{this.commandFactory.create(t).execute()}catch(a){console.error(`Failed to execute command ${t}:`,a)}}setScope(t){this.currentScope=t}getCurrentScope(){return this.currentScope}}class poe{constructor(t,n){Q(this,"context");Q(this,"display");this.context=t,this.display=n}toggle(){this.context.scope!==pn.COMMAND_PALETTE&&this.display.toggleFocus(pn.COMMAND_PALETTE)}returnToTraceScope(){this.context.scope!==pn.TRACE&&this.display.toggleFocus(pn.COMMAND_PALETTE)}}function hoe(e){return e!==null&&typeof e=="object"&&"ensureInitialized"in e&&typeof e.ensureInitialized=="function"}class moe{constructor(t,n,a){Q(this,"context");Q(this,"focusStack");Q(this,"plot");Q(this,"onChangeEmitter");Q(this,"onChange");Q(this,"hasEnteredInteractive",!1);Q(this,"textService");Q(this,"isReturningFromModeToggle",!1);Q(this,"textChangeDisposer",null);Q(this,"hasClearedOnFirstNav",!1);this.context=t,this.focusStack=new iT,this.focusStack.push(this.context.scope),this.plot=n,this.textService=a,this.onChangeEmitter=new m0,this.onChange=this.onChangeEmitter.event,this.removeInstruction(),this.textChangeDisposer=this.textService.onChange(()=>{this.hasClearedOnFirstNav||(this.plot.removeAttribute(xe.ARIA_LABEL),this.hasClearedOnFirstNav=!0)})}dispose(){var t;this.addInstruction(),(t=this.textChangeDisposer)==null||t.dispose(),this.textChangeDisposer=null,this.onChangeEmitter.dispose()}getInstruction(t=!0){return this.context.getInstruction(t)}addInstruction(){this.plot.setAttribute(xe.ARIA_LABEL,this.getInstruction()),this.plot.setAttribute(xe.TITLE,this.getInstruction()),this.plot.setAttribute(xe.ROLE,xe.IMAGE),this.plot.tabIndex=0}removeInstruction(){const t=this.hasEnteredInteractive?"":this.getInstruction(!1);t?(this.plot.setAttribute(xe.ARIA_LABEL,t),this.plot.removeAttribute(xe.TITLE),this.plot.setAttribute(xe.ROLE,xe.APPLICATION),this.plot.tabIndex=0):(this.plot.removeAttribute(xe.ARIA_LABEL),this.plot.removeAttribute(xe.TITLE),this.plot.setAttribute(xe.ROLE,xe.APPLICATION),this.plot.tabIndex=0)}getTraceAriaLabel(){const t=this.textService.format(this.context.state);return t&&t.trim().length>0?t:this.getInstruction(!1)}toggleFocus(t){this.isReturningFromModeToggle=t==="BRAILLE"||t==="REVIEW"||t==="GO_TO_EXTREMA"||t==="COMMAND_PALETTE",this.isReturningFromModeToggle&&this.plot.removeAttribute(xe.ARIA_LABEL),this.focusStack.removeLast(t)||this.focusStack.push(t);const n=this.focusStack.peek();this.context.toggleScope(n),this.updateFocus(n)}updateFocus(t){t==="TRACE"||t==="SUBPLOT"?(this.plot.tabIndex=0,setTimeout(()=>{if(this.isReturningFromModeToggle)this.isReturningFromModeToggle=!1,this.plot.removeAttribute(xe.ARIA_LABEL);else{const n=this.context.active;n&&hoe(n)&&n.ensureInitialized(),this.hasEnteredInteractive||this.plot.removeAttribute(xe.ARIA_LABEL)}this.plot.setAttribute(xe.ROLE,xe.APPLICATION),this.plot.focus(),this.hasEnteredInteractive||(this.hasEnteredInteractive=!0),this.onChangeEmitter.fire({value:t})},0)):this.onChangeEmitter.fire({value:t})}}class goe{constructor(t,n){Q(this,"context");Q(this,"display");this.context=t,this.display=n}toggle(t){if(t.empty)return;const n=this.context.active;n&&this.isExtremaNavigable(n)&&this.context.scope!==pn.GO_TO_EXTREMA&&this.display.toggleFocus(pn.GO_TO_EXTREMA)}isExtremaNavigable(t){return t instanceof H0&&t.supportsExtremaNavigation()}returnToTraceScope(){this.context.scope!==pn.TRACE&&this.display.toggleFocus(pn.GO_TO_EXTREMA)}}const mT=[{description:"Navigate Data Points",key:"arrow keys"},{description:"Move to Next Layer",key:"page up"},{description:"Move to Previous Layer",key:"page down"},{description:"Go to Left/Right/Top/Bottom Extreme Point",key:`${Kt.ctrl} + arrow keys`},{description:"Toggle Braille Mode",key:"b"},{description:"Toggle Text Mode",key:"t"},{description:"Toggle Sonification Mode",key:"s"},{description:"Toggle Review Mode",key:"r"},{description:"Autoplay Outward",key:`${Kt.ctrl} + shift + arrow keys`},{description:"Stop Autoplay",key:`${Kt.ctrl}`},{description:"Speed Up Autoplay",key:". (period)"},{description:"Speed Down Autoplay",key:", (comma)"},{description:"Reset Autoplay Speed",key:"/ (slash)"},{description:"Replay Current Point",key:"space"},{description:"Announce Plot Title",key:"l t"},{description:"Announce X Label",key:"l x"},{description:"Announce Y Label",key:"l y"},{description:"Announce Fill (Z) Label",key:"l f"},{description:"Open Settings",key:`${Kt.ctrl} + ,`},{description:"Open Chat",key:"?"}],f_=[{description:"Move around Subplot",key:"arrow keys"},{description:"Activate Current Subplot",key:`${Kt.enter}`},{description:"Announce Plot Title",key:"l t"},{description:"Announce Subtitle",key:"l s"},{description:"Announce Caption",key:"l c"},{description:"Open Settings",key:`${Kt.ctrl} + ,`}];class yoe{constructor(t,n){Q(this,"context");Q(this,"display");Q(this,"scopedMenuItems");this.context=t,this.display=n,this.scopedMenuItems={[pn.TRACE]:mT,[pn.TRACE_LABEL]:mT,[pn.BRAILLE]:mT,[pn.SUBPLOT]:f_,[pn.FIGURE_LABEL]:f_}}getMenuItems(){return this.scopedMenuItems[this.context.scope]??[]}toggle(){this.display.toggleFocus(pn.HELP)}}class voe{constructor(t){Q(this,"highlightedElements");Q(this,"highlightedSubplots");Q(this,"currentHighlightColor");this.highlightedElements=new Map,this.highlightedSubplots=new Set;const n=t.loadSettings();this.currentHighlightColor=n.general.highlightColor}dispose(){this.unhighlightAll()}isSettings(t){return"general"in t}createHighlightElement(t){if(!(t instanceof SVGElement))throw new TypeError("Invalid element provided for highlight creation");const n=on.createHighlightElement(t,this.currentHighlightColor);return n.id=`${xe.MAIDR_HIGHLIGHT}-${Date.now()}-${Math.random()}`,n}handleSettingsUpdate(t){this.currentHighlightColor=t.general.highlightColor}handleStateUpdate(t){t.empty||(this.unhighlightTraceElements(),t.type==="figure"?this.handleFigureState(t):t.type==="subplot"?this.handleSubplotState(t):this.handleTraceState(t))}handleFigureState(t){t.empty||this.processHighlighting(t.highlight)}handleSubplotState(t){t.empty||this.processHighlighting(t.highlight)}handleTraceState(t){if(t.empty||t.highlight.empty)return;const n=this.getElementsFromHighlight(t.highlight);this.highlightTraceElements(n)}processHighlighting(t){if(t.empty)return;const n=this.getElementsFromHighlight(t);this.isMultiPlotScenario()?this.highlightSubplotElements(n):this.unhighlightSubplotElements()}getElementsFromHighlight(t){return t.empty?[]:Array.isArray(t.elements)?t.elements:[t.elements]}isMultiPlotScenario(){return document.querySelectorAll('g[id^="axes_"]').length>1}highlightTraceElements(t){for(const n of t)try{const a=this.createHighlightElement(n);this.highlightedElements.set(n,a)}catch(a){console.error("Failed to highlight element:",a)}}highlightSubplotElements(t){var o;this.unhighlightSubplotElements();const n=(o=document.querySelector('g[id^="maidr-"] > path[style*="fill"]'))==null?void 0:o.parentElement,a=(n==null?void 0:n.querySelector('path[style*="fill"]'))||void 0;for(const s of t)on.setSubplotHighlightSvgWithAdaptiveColor(s,this.currentHighlightColor,a),this.highlightedSubplots.add(s)}update(t){try{this.isSettings(t)?this.handleSettingsUpdate(t):this.handleStateUpdate(t)}catch(n){console.error("Failed to update highlight service:",n)}}highlight(t){if(!(t instanceof SVGElement)){console.warn("Invalid element provided to highlight method");return}try{this.unhighlight(t);const n=this.createHighlightElement(t);this.highlightedElements.set(t,n)}catch(n){console.error("Failed to highlight element:",n)}}unhighlight(t){if(!(t instanceof SVGElement))return;const n=this.highlightedElements.get(t);if(n)try{n.remove(),this.highlightedElements.delete(t)}catch(a){console.error("Failed to unhighlight element:",a)}}clear(){try{this.highlightedElements.forEach(t=>{t.remove()}),this.highlightedElements.clear(),this.unhighlightSubplotElements()}catch(t){console.error("Failed to clear highlights:",t)}}unhighlightTraceElements(){this.highlightedElements.forEach(t=>{t.remove()}),this.highlightedElements.clear()}unhighlightSubplotElements(){this.highlightedSubplots.forEach(t=>{on.removeSubplotHighlightSvg(t)}),this.highlightedSubplots.clear()}unhighlightAll(){this.unhighlightTraceElements(),this.unhighlightSubplotElements()}}class boe{constructor(){Q(this,"onChangeEmitter");Q(this,"onChange");this.onChangeEmitter=new m0,this.onChange=this.onChangeEmitter.event}dispose(){this.onChangeEmitter.dispose()}notify(t){t&&this.onChangeEmitter.fire({value:t})}}class xoe{constructor(t,n,a){Q(this,"notification");Q(this,"display");Q(this,"text");Q(this,"enabled");Q(this,"onChangeEmitter");Q(this,"onChange");this.notification=t,this.display=n,this.text=a,this.enabled=!1,this.onChangeEmitter=new m0,this.onChange=this.onChangeEmitter.event}dispose(){this.onChangeEmitter.dispose()}update(t){if(!this.enabled||t.empty)return;const n=this.text.format(t);n&&this.onChangeEmitter.fire({value:n})}toggle(t){if(t.empty){this.notification.notify("No info for review");return}this.enabled=!this.enabled,this.update(t),this.display.toggleFocus(pn.REVIEW);const n=`Review is ${this.enabled?"on":"off"}`;this.notification.notify(n)}}const gT="maidr-settings";class Soe{constructor(t,n){Q(this,"storage");Q(this,"display");Q(this,"defaultSettings");Q(this,"currentSettings");Q(this,"observers");this.storage=t,this.display=n,this.observers=[],this.defaultSettings={general:{volume:50,highlightColor:"#03c809",brailleDisplaySize:32,minFrequency:200,maxFrequency:1e3,autoplayDuration:4e3,ariaMode:"assertive"},llm:{expertiseLevel:"basic",customInstruction:"",models:{OPENAI:{enabled:!1,apiKey:"",name:"OpenAI",version:"gpt-4o"},ANTHROPIC_CLAUDE:{enabled:!1,apiKey:"",name:"Anthropic Claude",version:"claude-3-7-sonnet-latest"},GOOGLE_GEMINI:{enabled:!1,apiKey:"",name:"Google Gemini",version:"gemini-2.0-flash"}}}};const a=this.storage.load(gT);this.currentSettings=a??this.defaultSettings}get state(){return this.currentSettings}addObserver(t){this.observers.push(t)}removeObserver(t){this.observers=this.observers.filter(n=>n!==t)}notifyStateUpdate(){for(const t of this.observers)t.update(this.currentSettings)}loadSettings(){return this.currentSettings}saveSettings(t){this.currentSettings=t,this.storage.save(gT,this.currentSettings),this.notifyStateUpdate()}resetSettings(){return this.currentSettings=this.defaultSettings,this.storage.remove(gT),this.notifyStateUpdate(),this.currentSettings}toggle(){this.display.toggleFocus(pn.SETTINGS)}}class Eoe{save(t,n){try{const a=JSON.stringify(n);localStorage.setItem(t,a)}catch(a){console.error(`Error while saving ${t} to storage`,a)}}load(t){try{const n=localStorage.getItem(t);return n===null?null:JSON.parse(n)}catch(n){return console.error(`Error while loading ${t} from storage`,n),null}}remove(t){try{localStorage.removeItem(t)}catch(n){console.error(`Error while removing ${t} from storage`,n)}}}function d_(e){return!e.empty&&e.isLayerSwitch===!0&&typeof e.index=="number"&&typeof e.size=="number"}class Toe{constructor(t){Q(this,"notification");Q(this,"mode");Q(this,"currentState",null);Q(this,"currentSubplotIndex",null);Q(this,"hasHadFirstNavigation",!1);Q(this,"onChangeEmitter");Q(this,"onChange");Q(this,"onNavigationEmitter");Q(this,"onNavigation");this.notification=t,this.mode="verbose",this.onChangeEmitter=new m0,this.onChange=this.onChangeEmitter.event,this.onNavigationEmitter=new m0,this.onNavigation=this.onNavigationEmitter.event}dispose(){this.onChangeEmitter.dispose(),this.onNavigationEmitter.dispose()}getCurrentState(){return this.currentState}getCoordinateText(){return!this.currentState||this.currentState.empty?null:this.currentState.type==="subplot"&&!this.currentState.trace.empty?this.formatCoordinateText(this.currentState.trace):this.currentState.type==="trace"&&!this.currentState.empty?this.formatCoordinateText(this.currentState):null}isLayerSwitch(){if(!this.currentState||this.currentState.empty||this.currentState.type!=="subplot")return!1;const t=this.currentState.index;return this.currentSubplotIndex!==null&&this.currentSubplotIndex!==t?(this.currentSubplotIndex=t,!0):this.currentSubplotIndex===null?(this.currentSubplotIndex=t,t!==0):!1}getHasHadFirstNavigation(){return this.hasHadFirstNavigation}enableAnnouncements(){this.onNavigationEmitter.fire({type:"first_navigation"})}formatCoordinateText(t){if(t.empty||!t.text)return null;const{text:n}=t,a=[];if(n.main&&n.main.value!==void 0){const o=Array.isArray(n.main.value)?n.main.value.join(", "):String(n.main.value);a.push(`${n.main.label} is ${o}`)}if(n.cross&&n.cross.value!==void 0){const o=Array.isArray(n.cross.value)?n.cross.value.join(", "):String(n.cross.value);a.push(`${n.cross.label} is ${o}`)}return n.fill&&n.fill.value!==void 0&&a.push(`${n.fill.label} is ${n.fill.value}`),a.length>0?a.join(", "):null}formatLayerSwitchAnnouncement(t){if(!d_(t))return"";let n=`Layer ${t.index} of ${t.size}: ${t.plotType||t.traceType} plot`;if(t.text){const a=[];t.text.main&&t.text.main.value!==void 0&&a.push(`${t.text.main.label} is ${t.text.main.value}`),t.text.cross&&t.text.cross.value!==void 0&&a.push(`${t.text.cross.label} is ${t.text.cross.value}`),t.text.fill&&t.text.fill.value!==void 0&&a.push(`${t.text.fill.label} is ${t.text.fill.value}`),a.length>0&&(n+=` at ${a.join(", ")}`)}return n}format(t){return typeof t=="string"?t:!t||t.empty?t.type==="subplot"?"No additional layer":`No ${t.type==="trace"?"plot":t.type} info to display`:t.type==="figure"?this.formatFigureText(t.index,t.size,t.traceTypes):t.type==="subplot"?this.formatSubplotText(t.index,t.size,t.trace.traceType,t.trace):this.mode==="verbose"?this.formatVerboseTraceText(t.text):this.formatTerseTraceText(t.text)}formatFigureText(t,n,a){const o=a.length===1?`This is a ${a[0]} plot`:`This is a multi-layered plot containing ${a.join(xe.COMMA_SPACE)} plots`;return`Subplot ${t} of ${n}: ${o}. Press 'ENTER' to select this subplot.`}formatSubplotText(t,n,a,o){const s=o&&!o.empty?o.plotType:a;return`Layer ${t} of ${n}: ${s} plot`}isBoxPlotWithSection(t){return t.section!==void 0&&t.fill===void 0}formatVerboseTraceText(t){const n=new Array;if(n.push(t.main.label,xe.IS),t.range!==void 0?n.push(String(t.range.min),xe.THROUGH,String(t.range.max)):Array.isArray(t.main.value)?n.push(t.main.value.join(xe.COMMA_SPACE)):n.push(String(t.main.value)),t.section&&this.isBoxPlotWithSection(t)&&(t.section===us.UPPER_OUTLIER||t.section===us.LOWER_OUTLIER)&&Array.isArray(t.cross.value)){const a=t.cross.label,o=t.cross.value,s=`[${o.join(", ")}]`;if(o.length===0)return`${t.main.label} is ${t.main.value}, no ${t.section.toLowerCase()} for ${a}`;{const f=o.length===1?"is":"are";return`${t.main.label} is ${t.main.value}, ${t.section.toLowerCase()} for ${a} ${f} ${s}`}}if(t.section!==void 0)if(this.isBoxPlotWithSection(t)){const a=t.cross.label;n.push(xe.COMMA_SPACE,t.section.toLowerCase(),xe.SPACE,a)}else n.push(xe.COMMA_SPACE,t.section,xe.SPACE,t.cross.label);else n.push(xe.COMMA_SPACE,t.cross.label);if(Array.isArray(t.cross.value)?t.cross.value.length>1?n.push(xe.ARE,t.cross.value.join(xe.COMMA_SPACE)):t.cross.value.length>0&&n.push(xe.IS,t.cross.value.join(xe.COMMA_SPACE)):n.push(xe.IS,String(t.cross.value)),t.fill!==void 0){const a=t.fill.value==="Bull"||t.fill.value==="Bear"?t.fill.value.toLowerCase():t.fill.value;n.push(xe.COMMA_SPACE,t.fill.label,xe.IS,a)}return n.join(xe.EMPTY)}formatTerseTraceText(t){const n=new Array;if(Array.isArray(t.main.value)?n.push(xe.OPEN_BRACKET,t.main.value.join(xe.COMMA_SPACE),xe.CLOSE_BRACKET):n.push(String(t.main.value),xe.COMMA_SPACE),t.section&&this.isBoxPlotWithSection(t)&&(t.section===us.UPPER_OUTLIER||t.section===us.LOWER_OUTLIER)&&Array.isArray(t.cross.value)){const a=t.cross.value,o=`[${a.join(", ")}]`;return a.length===0?`${t.main.value}, no ${t.section.toLowerCase()}`:`${t.main.value}, ${a.length} ${t.section.toLowerCase()} ${o}`}if(t.section!==void 0&&t.fill!==void 0?(n.push(t.section,xe.SPACE),Array.isArray(t.cross.value)?n.push(xe.OPEN_BRACKET,t.cross.value.join(xe.COMMA_SPACE),xe.CLOSE_BRACKET):n.push(String(t.cross.value))):(t.section!==void 0&&t.fill===void 0&&n.push(t.section,xe.SPACE),Array.isArray(t.cross.value)?n.push(xe.OPEN_BRACKET,t.cross.value.join(xe.COMMA_SPACE),xe.CLOSE_BRACKET):n.push(String(t.cross.value))),t.fill!==void 0){const a=t.fill.value==="Bull"||t.fill.value==="Bear"?t.fill.value.toLowerCase():t.fill.value;t.section,n.push(xe.COMMA_SPACE,a)}return n.join(xe.EMPTY)}update(t){if(this.mode==="off")return;if(this.currentState=t,t.type==="trace"&&d_(t)){const a=this.formatLayerSwitchAnnouncement(t);this.notification.notify(a);return}if(t.type==="subplot"){const a=this.format(t);a&&this.notification.notify(a);return}t.type==="figure"&&!t.empty&&!this.hasHadFirstNavigation&&(this.hasHadFirstNavigation=!0,this.onNavigationEmitter.fire({type:"first_navigation"}));const n=this.format(t);n&&this.onChangeEmitter.fire({value:n})}toggle(){switch(this.mode){case"off":this.mode="verbose";break;case"terse":this.mode="off";break;case"verbose":this.mode="terse";break}const t=`Text mode is ${this.mode}`;return this.notification.notify(t),this.mode!=="off"}}class yT{constructor(t,n){Q(this,"figure");Q(this,"context");Q(this,"displayService");Q(this,"notificationService");Q(this,"settingsService");Q(this,"audioService");Q(this,"brailleService");Q(this,"goToExtremaService");Q(this,"textService");Q(this,"reviewService");Q(this,"autoplayService");Q(this,"highlightService");Q(this,"helpService");Q(this,"chatService");Q(this,"textViewModel");Q(this,"brailleViewModel");Q(this,"goToExtremaViewModel");Q(this,"reviewViewModel");Q(this,"displayViewModel");Q(this,"helpViewModel");Q(this,"chatViewModel");Q(this,"settingsViewModel");Q(this,"commandPaletteViewModel");Q(this,"keybinding");Q(this,"mousebinding");Q(this,"commandExecutor");this.figure=new Uie(t),this.context=new uie(this.figure),this.notificationService=new boe,this.textService=new Toe(this.notificationService),this.displayService=new moe(this.context,n,this.textService),this.settingsService=new Soe(new Eoe,this.displayService),this.audioService=new Gie(this.notificationService,this.context.state,this.settingsService),this.brailleService=new toe(this.context,this.notificationService,this.displayService),this.goToExtremaService=new goe(this.context,this.displayService),this.reviewService=new xoe(this.notificationService,this.displayService,this.textService),this.autoplayService=new Qie(this.context,this.notificationService,this.settingsService),this.highlightService=new voe(this.settingsService),this.helpService=new yoe(this.context,this.displayService),this.chatService=new soe(this.displayService,t),this.textViewModel=new XB(Ws,this.textService,this.notificationService,this.autoplayService),this.brailleViewModel=new YL(Ws,this.brailleService),this.goToExtremaViewModel=new MB(Ws,this.goToExtremaService,this.context),this.reviewViewModel=new BB(Ws,this.reviewService),this.displayViewModel=new CB(Ws,this.displayService),this.helpViewModel=new NB(Ws,this.helpService),this.settingsViewModel=new UB(Ws,this.settingsService),this.chatViewModel=new tI(Ws,this.chatService,this.audioService);const a=new poe(this.context,this.displayService);this.commandPaletteViewModel=new xB(Ws,a),this.keybinding=new gB({context:this.context,audioService:this.audioService,autoplayService:this.autoplayService,highlightService:this.highlightService,brailleViewModel:this.brailleViewModel,chatViewModel:this.chatViewModel,commandPaletteViewModel:this.commandPaletteViewModel,goToExtremaViewModel:this.goToExtremaViewModel,helpViewModel:this.helpViewModel,reviewViewModel:this.reviewViewModel,settingsViewModel:this.settingsViewModel,textViewModel:this.textViewModel}),this.mousebinding=new yB({context:this.context,audioService:this.audioService,autoplayService:this.autoplayService,highlightService:this.highlightService,brailleViewModel:this.brailleViewModel,chatViewModel:this.chatViewModel,commandPaletteViewModel:this.commandPaletteViewModel,goToExtremaViewModel:this.goToExtremaViewModel,helpViewModel:this.helpViewModel,reviewViewModel:this.reviewViewModel,settingsViewModel:this.settingsViewModel,textViewModel:this.textViewModel}),this.commandExecutor=new doe({context:this.context,audioService:this.audioService,autoplayService:this.autoplayService,highlightService:this.highlightService,brailleViewModel:this.brailleViewModel,chatViewModel:this.chatViewModel,commandPaletteViewModel:this.commandPaletteViewModel,goToExtremaViewModel:this.goToExtremaViewModel,helpViewModel:this.helpViewModel,reviewViewModel:this.reviewViewModel,settingsViewModel:this.settingsViewModel,textViewModel:this.textViewModel},this.context.scope),this.registerViewModels(),this.registerObservers(),this.keybinding.register(this.context.scope),this.mousebinding.registerEvents()}announceInitialInstruction(){this.notificationService.notify("⁣"),setTimeout(()=>{this.notificationService.notify(this.displayService.getInstruction(!1))},50)}getInitialInstruction(){return this.displayService.getInstruction(!1)}showInitialInstructionInText(){const t=this.displayService.getInstruction(!1);this.textViewModel.setAnnounce(!1),this.textViewModel.update(t)}dispose(){this.keybinding.unregister(),this.mousebinding.unregister(),Bi.instance.dispose(),this.settingsViewModel.dispose(),this.chatViewModel.dispose(),this.helpViewModel.dispose(),this.displayViewModel.dispose(),this.goToExtremaViewModel.dispose(),this.reviewViewModel.dispose(),this.brailleViewModel.dispose(),this.textViewModel.dispose(),this.commandPaletteViewModel.dispose(),this.highlightService.dispose(),this.autoplayService.dispose(),this.textService.dispose(),this.reviewService.dispose(),this.brailleService.dispose(),this.audioService.dispose(),this.notificationService.dispose(),this.displayService.dispose(),this.context.dispose(),this.figure.dispose()}registerViewModels(){Bi.instance.register("text",this.textViewModel),Bi.instance.register("braille",this.brailleViewModel),Bi.instance.register("goToExtrema",this.goToExtremaViewModel),Bi.instance.register("review",this.reviewViewModel),Bi.instance.register("display",this.displayViewModel),Bi.instance.register("help",this.helpViewModel),Bi.instance.register("chat",this.chatViewModel),Bi.instance.register("settings",this.settingsViewModel),Bi.instance.register("commandPalette",this.commandPaletteViewModel),Bi.instance.register("commandExecutor",this.commandExecutor)}registerObservers(){this.figure.addObserver(this.textService),this.figure.addObserver(this.audioService),this.figure.addObserver(this.highlightService),this.figure.subplots.forEach(t=>t.forEach(n=>{n.addObserver(this.textService),n.addObserver(this.brailleService),n.addObserver(this.highlightService),n.traces.forEach(a=>a.forEach(o=>{o.addObserver(this.audioService),o.addObserver(this.brailleService),o.addObserver(this.textService),o.addObserver(this.reviewService),o.addObserver(this.highlightService)}))}))}}document.readyState==="loading"?document.addEventListener(Wr.DOM_LOADED,p_):p_();function p_(){const e=document.querySelectorAll(`[${xe.MAIDR_DATA}]`);if(e.forEach(a=>{const o=a.getAttribute(xe.MAIDR_DATA);if(o)try{const s=JSON.parse(o);h_(s,a)}catch(s){console.error("Error parsing maidr attribute:",s)}}),e.length!==0)return;const t=window.maidr;if(!t)return;const n=document.getElementById(t.id);n&&h_(t,n)}function h_(e,t){let n=null,a=null,o=!1;const s=()=>{setTimeout(()=>{if(!n)return;const w=document.activeElement;n.contains(w)||(a&&a.dispose(),a=null,o=!1)},0)},f=()=>{setTimeout(()=>{if(n){if(!a){const w=JSON.parse(JSON.stringify(e));a=new yT(w,t)}o||(o=!0,a.showInitialInstructionInText())}},0)},d=()=>{if(document.visibilityState==="visible"){a&&(a.dispose(),a=null);const w=JSON.parse(JSON.stringify(e));a=new yT(w,t),o=!1}},m=document.createElement(xe.FIGURE);m.id=`${xe.MAIDR_FIGURE}-${e.id}`,t.parentNode.replaceChild(m,t),m.appendChild(t);const y=document.createElement(xe.ARTICLE);y.id=`${xe.MAIDR_ARTICLE}-${e.id}`,m.parentNode.replaceChild(y,m),y.appendChild(m);const x=document.createElement(xe.DIV);x.id=`${xe.REACT_CONTAINER}-${e.id}`,m.appendChild(x),n=m,t.addEventListener(Wr.FOCUS_IN,f),n.addEventListener(Wr.FOCUS_OUT,s),document.addEventListener(Wr.VISIBILITY_CHANGE,d),t.addEventListener(Wr.CLICK,f),sie.createRoot(x,{identifierPrefix:e.id}).render(nie(t)),(()=>{const w=JSON.parse(JSON.stringify(e));new yT(w,t).dispose()})()}}));
888
888
  //# sourceMappingURL=maidr.js.map