maidr 3.58.0 → 3.58.1
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 +17 -17
- package/dist/maidr.js.map +1 -1
- package/dist/react.mjs +242 -200
- package/dist/react.mjs.map +1 -1
- package/package.json +2 -1
package/dist/maidr.js
CHANGED
|
@@ -98,7 +98,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
98
98
|
`);for(A=b=0;b<ve.length&&!ve[b].includes("DetermineComponentFrameRoot");)b++;for(;A<ze.length&&!ze[A].includes("DetermineComponentFrameRoot");)A++;if(b===ve.length||A===ze.length)for(b=ve.length-1,A=ze.length-1;1<=b&&0<=A&&ve[b]!==ze[A];)A--;for(;1<=b&&0<=A;b--,A--)if(ve[b]!==ze[A]){if(b!==1||A!==1)do if(b--,A--,0>A||ve[b]!==ze[A]){var qe=`
|
|
99
99
|
`+ve[b].replace(" at new "," at ");return l.displayName&&qe.includes("<anonymous>")&&(qe=qe.replace("<anonymous>",l.displayName)),qe}while(1<=b&&0<=A);break}}}finally{Mt=!1,Error.prepareStackTrace=m}return(m=l?l.displayName||l.name:"")?st(m):""}function xt(l,f){switch(l.tag){case 26:case 27:case 5:return st(l.type);case 16:return st("Lazy");case 13:return l.child!==f&&f!==null?st("Suspense Fallback"):st("Suspense");case 19:return st("SuspenseList");case 0:case 15:return Kt(l.type,!1);case 11:return Kt(l.type.render,!1);case 1:return Kt(l.type,!0);case 31:return st("Activity");default:return""}}function Ut(l){try{var f="",m=null;do f+=xt(l,m),m=l,l=l.return;while(l);return f}catch(b){return`
|
|
100
100
|
Error generating stack: `+b.message+`
|
|
101
|
-
`+b.stack}}var hn=Object.prototype.hasOwnProperty,mn=e.unstable_scheduleCallback,at=e.unstable_cancelCallback,At=e.unstable_shouldYield,Rn=e.unstable_requestPaint,Bt=e.unstable_now,Ze=e.unstable_getCurrentPriorityLevel,be=e.unstable_ImmediatePriority,Ve=e.unstable_UserBlockingPriority,nt=e.unstable_NormalPriority,pt=e.unstable_LowPriority,ut=e.unstable_IdlePriority,yt=e.log,gn=e.unstable_setDisableYieldValue,kt=null,jt=null;function Fn(l){if(typeof yt=="function"&&gn(l),jt&&typeof jt.setStrictMode=="function")try{jt.setStrictMode(kt,l)}catch{}}var bn=Math.clz32?Math.clz32:J,Fr=Math.log,cr=Math.LN2;function J(l){return l>>>=0,l===0?32:31-(Fr(l)/cr|0)|0}var Oe=256,tt=262144,Ne=4194304;function We(l){var f=l&42;if(f!==0)return f;switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return l&261888;case 262144:case 524288:case 1048576:case 2097152:return l&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function wt(l,f,m){var b=l.pendingLanes;if(b===0)return 0;var A=0,O=l.suspendedLanes,j=l.pingedLanes;l=l.warmLanes;var ne=b&134217727;return ne!==0?(b=ne&~O,b!==0?A=We(b):(j&=ne,j!==0?A=We(j):m||(m=ne&~l,m!==0&&(A=We(m))))):(ne=b&~O,ne!==0?A=We(ne):j!==0?A=We(j):m||(m=b&~l,m!==0&&(A=We(m)))),A===0?0:f!==0&&f!==A&&(f&O)===0&&(O=A&-A,m=f&-f,O>=m||O===32&&(m&4194048)!==0)?f:A}function vt(l,f){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&f)===0}function Yt(l,f){switch(l){case 1:case 2:case 4:case 8:case 64:return f+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return f+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ct(){var l=Ne;return Ne<<=1,(Ne&62914560)===0&&(Ne=4194304),l}function Bn(l){for(var f=[],m=0;31>m;m++)f.push(l);return f}function oi(l,f){l.pendingLanes|=f,f!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function Pg(l,f,m,b,A,O){var j=l.pendingLanes;l.pendingLanes=m,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=m,l.entangledLanes&=m,l.errorRecoveryDisabledLanes&=m,l.shellSuspendCounter=0;var ne=l.entanglements,ve=l.expirationTimes,ze=l.hiddenUpdates;for(m=j&~m;0<m;){var qe=31-bn(m),Ke=1<<qe;ne[qe]=0,ve[qe]=-1;var Ie=ze[qe];if(Ie!==null)for(ze[qe]=null,qe=0;qe<Ie.length;qe++){var Ue=Ie[qe];Ue!==null&&(Ue.lane&=-536870913)}m&=~Ke}b!==0&&mf(l,b,0),O!==0&&A===0&&l.tag!==0&&(l.suspendedLanes|=O&~(j&~f))}function mf(l,f,m){l.pendingLanes|=f,l.suspendedLanes&=~f;var b=31-bn(f);l.entangledLanes|=f,l.entanglements[b]=l.entanglements[b]|1073741824|m&261930}function zh(l,f){var m=l.entangledLanes|=f;for(l=l.entanglements;m;){var b=31-bn(m),A=1<<b;A&f|l[b]&f&&(l[b]|=f),m&=~A}}function is(l,f){var m=f&-f;return m=(m&42)!==0?1:Ga(m),(m&(l.suspendedLanes|f))!==0?0:m}function Ga(l){switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:l=128;break;case 268435456:l=134217728;break;default:l=0}return l}function Ug(l){return l&=-l,2<l?8<l?(l&134217727)!==0?32:268435456:8:2}function T6(){var l=ae.p;return l!==0?l:(l=window.event,l===void 0?32:cm(l.type))}function $g(l,f){var m=ae.p;try{return ae.p=l,f()}finally{ae.p=m}}var fu=Math.random().toString(36).slice(2),pi="__reactFiber$"+fu,Or="__reactProps$"+fu,gf="__reactContainer$"+fu,Ih="__reactEvents$"+fu,A6="__reactListeners$"+fu,jb="__reactHandles$"+fu,Pb="__reactResources$"+fu,Fd="__reactMarker$"+fu;function dc(l){delete l[pi],delete l[Or],delete l[Ih],delete l[A6],delete l[jb]}function yf(l){var f=l[pi];if(f)return f;for(var m=l.parentNode;m;){if(f=m[gf]||m[pi]){if(m=f.alternate,f.child!==null||m!==null&&m.child!==null)for(l=my(l);l!==null;){if(m=l[pi])return m;l=my(l)}return f}l=m,m=l.parentNode}return null}function vf(l){if(l=l[pi]||l[gf]){var f=l.tag;if(f===5||f===6||f===13||f===31||f===26||f===27||f===3)return l}return null}function Yd(l){var f=l.tag;if(f===5||f===26||f===27||f===6)return l.stateNode;throw Error(i(33))}function bf(l){var f=l[Pb];return f||(f=l[Pb]={hoistableStyles:new Map,hoistableScripts:new Map}),f}function Si(l){l[Fd]=!0}var Fa=new Set,xf={};function xo(l,f){Sf(l,f),Sf(l+"Capture",f)}function Sf(l,f){for(xf[l]=f,l=0;l<f.length;l++)Fa.add(f[l])}var Lh=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]*$"),Vh={},Hg={};function Bh(l){return hn.call(Hg,l)?!0:hn.call(Vh,l)?!1:Lh.test(l)?Hg[l]=!0:(Vh[l]=!0,!1)}function du(l,f,m){if(Bh(f))if(m===null)l.removeAttribute(f);else{switch(typeof m){case"undefined":case"function":case"symbol":l.removeAttribute(f);return;case"boolean":var b=f.toLowerCase().slice(0,5);if(b!=="data-"&&b!=="aria-"){l.removeAttribute(f);return}}l.setAttribute(f,""+m)}}function Xd(l,f,m){if(m===null)l.removeAttribute(f);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(f);return}l.setAttribute(f,""+m)}}function hu(l,f,m,b){if(b===null)l.removeAttribute(m);else{switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(m);return}l.setAttributeNS(f,m,""+b)}}function Yo(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function Ub(l){var f=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(f==="checkbox"||f==="radio")}function $b(l,f,m){var b=Object.getOwnPropertyDescriptor(l.constructor.prototype,f);if(!l.hasOwnProperty(f)&&typeof b<"u"&&typeof b.get=="function"&&typeof b.set=="function"){var A=b.get,O=b.set;return Object.defineProperty(l,f,{configurable:!0,get:function(){return A.call(this)},set:function(j){m=""+j,O.call(this,j)}}),Object.defineProperty(l,f,{enumerable:b.enumerable}),{getValue:function(){return m},setValue:function(j){m=""+j},stopTracking:function(){l._valueTracker=null,delete l[f]}}}}function jh(l){if(!l._valueTracker){var f=Ub(l)?"checked":"value";l._valueTracker=$b(l,f,""+l[f])}}function Hb(l){if(!l)return!1;var f=l._valueTracker;if(!f)return!0;var m=f.getValue(),b="";return l&&(b=Ub(l)?l.checked?"true":"false":l.value),l=b,l!==m?(f.setValue(l),!0):!1}function Ph(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 C6=/[\n"\\]/g;function Xo(l){return l.replace(C6,function(f){return"\\"+f.charCodeAt(0).toString(16)+" "})}function qg(l,f,m,b,A,O,j,ne){l.name="",j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?l.type=j:l.removeAttribute("type"),f!=null?j==="number"?(f===0&&l.value===""||l.value!=f)&&(l.value=""+Yo(f)):l.value!==""+Yo(f)&&(l.value=""+Yo(f)):j!=="submit"&&j!=="reset"||l.removeAttribute("value"),f!=null?Wd(l,j,Yo(f)):m!=null?Wd(l,j,Yo(m)):b!=null&&l.removeAttribute("value"),A==null&&O!=null&&(l.defaultChecked=!!O),A!=null&&(l.checked=A&&typeof A!="function"&&typeof A!="symbol"),ne!=null&&typeof ne!="function"&&typeof ne!="symbol"&&typeof ne!="boolean"?l.name=""+Yo(ne):l.removeAttribute("name")}function Gg(l,f,m,b,A,O,j,ne){if(O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(l.type=O),f!=null||m!=null){if(!(O!=="submit"&&O!=="reset"||f!=null)){jh(l);return}m=m!=null?""+Yo(m):"",f=f!=null?""+Yo(f):m,ne||f===l.value||(l.value=f),l.defaultValue=f}b=b??A,b=typeof b!="function"&&typeof b!="symbol"&&!!b,l.checked=ne?l.checked:!!b,l.defaultChecked=!!b,j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"&&(l.name=j),jh(l)}function Wd(l,f,m){f==="number"&&Ph(l.ownerDocument)===l||l.defaultValue===""+m||(l.defaultValue=""+m)}function as(l,f,m,b){if(l=l.options,f){f={};for(var A=0;A<m.length;A++)f["$"+m[A]]=!0;for(m=0;m<l.length;m++)A=f.hasOwnProperty("$"+l[m].value),l[m].selected!==A&&(l[m].selected=A),A&&b&&(l[m].defaultSelected=!0)}else{for(m=""+Yo(m),f=null,A=0;A<l.length;A++){if(l[A].value===m){l[A].selected=!0,b&&(l[A].defaultSelected=!0);return}f!==null||l[A].disabled||(f=l[A])}f!==null&&(f.selected=!0)}}function O6(l,f,m){if(f!=null&&(f=""+Yo(f),f!==l.value&&(l.value=f),m==null)){l.defaultValue!==f&&(l.defaultValue=f);return}l.defaultValue=m!=null?""+Yo(m):""}function qb(l,f,m,b){if(f==null){if(b!=null){if(m!=null)throw Error(i(92));if(oe(b)){if(1<b.length)throw Error(i(93));b=b[0]}m=b}m==null&&(m=""),f=m}m=Yo(f),l.defaultValue=m,b=l.textContent,b===m&&b!==""&&b!==null&&(l.value=b),jh(l)}function Ef(l,f){if(f){var m=l.firstChild;if(m&&m===l.lastChild&&m.nodeType===3){m.nodeValue=f;return}}l.textContent=f}var Uh=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 Gb(l,f,m){var b=f.indexOf("--")===0;m==null||typeof m=="boolean"||m===""?b?l.setProperty(f,""):f==="float"?l.cssFloat="":l[f]="":b?l.setProperty(f,m):typeof m!="number"||m===0||Uh.has(f)?f==="float"?l.cssFloat=m:l[f]=(""+m).trim():l[f]=m+"px"}function M6(l,f,m){if(f!=null&&typeof f!="object")throw Error(i(62));if(l=l.style,m!=null){for(var b in m)!m.hasOwnProperty(b)||f!=null&&f.hasOwnProperty(b)||(b.indexOf("--")===0?l.setProperty(b,""):b==="float"?l.cssFloat="":l[b]="");for(var A in f)b=f[A],f.hasOwnProperty(A)&&m[A]!==b&&Gb(l,A,b)}else for(var O in f)f.hasOwnProperty(O)&&Gb(l,O,f[O])}function Fb(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 P8=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"]]),U8=/^[\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 hc(l){return U8.test(""+l)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":l}function Gi(){}var $h=null;function Fg(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var wf=null,os=null;function Yb(l){var f=vf(l);if(f&&(l=f.stateNode)){var m=l[Or]||null;e:switch(l=f.stateNode,f.type){case"input":if(qg(l,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name),f=m.name,m.type==="radio"&&f!=null){for(m=l;m.parentNode;)m=m.parentNode;for(m=m.querySelectorAll('input[name="'+Xo(""+f)+'"][type="radio"]'),f=0;f<m.length;f++){var b=m[f];if(b!==l&&b.form===l.form){var A=b[Or]||null;if(!A)throw Error(i(90));qg(b,A.value,A.defaultValue,A.defaultValue,A.checked,A.defaultChecked,A.type,A.name)}}for(f=0;f<m.length;f++)b=m[f],b.form===l.form&&Hb(b)}break e;case"textarea":O6(l,m.value,m.defaultValue);break e;case"select":f=m.value,f!=null&&as(l,!!m.multiple,f,!1)}}}var Qd=!1;function Hh(l,f,m){if(Qd)return l(f,m);Qd=!0;try{var b=l(f);return b}finally{if(Qd=!1,(wf!==null||os!==null)&&(Fp(),wf&&(f=wf,l=os,os=wf=null,Yb(f),l)))for(f=0;f<l.length;f++)Yb(l[f])}}function Kd(l,f){var m=l.stateNode;if(m===null)return null;var b=m[Or]||null;if(b===null)return null;m=b[f];e:switch(f){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(b=!b.disabled)||(l=l.type,b=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!b;break e;default:l=!1}if(l)return null;if(m&&typeof m!="function")throw Error(i(231,f,typeof m));return m}var Yr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xb=!1;if(Yr)try{var Tf={};Object.defineProperty(Tf,"passive",{get:function(){Xb=!0}}),window.addEventListener("test",Tf,Tf),window.removeEventListener("test",Tf,Tf)}catch{Xb=!1}var pu=null,Yg=null,Xg=null;function R6(){if(Xg)return Xg;var l,f=Yg,m=f.length,b,A="value"in pu?pu.value:pu.textContent,O=A.length;for(l=0;l<m&&f[l]===A[l];l++);var j=m-l;for(b=1;b<=j&&f[m-b]===A[O-b];b++);return Xg=A.slice(l,1<b?1-b:void 0)}function qh(l){var f=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&f===13&&(l=13)):l=f,l===10&&(l=13),32<=l||l===13?l:0}function Wg(){return!0}function Wb(){return!1}function Ya(l){function f(m,b,A,O,j){this._reactName=m,this._targetInst=A,this.type=b,this.nativeEvent=O,this.target=j,this.currentTarget=null;for(var ne in l)l.hasOwnProperty(ne)&&(m=l[ne],this[ne]=m?m(O):O[ne]);return this.isDefaultPrevented=(O.defaultPrevented!=null?O.defaultPrevented:O.returnValue===!1)?Wg:Wb,this.isPropagationStopped=Wb,this}return S(f.prototype,{preventDefault:function(){this.defaultPrevented=!0;var m=this.nativeEvent;m&&(m.preventDefault?m.preventDefault():typeof m.returnValue!="unknown"&&(m.returnValue=!1),this.isDefaultPrevented=Wg)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!="unknown"&&(m.cancelBubble=!0),this.isPropagationStopped=Wg)},persist:function(){},isPersistent:Wg}),f}var ls={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gh=Ya(ls),Zd=S({},ls,{view:0,detail:0}),_6=Ya(Zd),Qb,Kb,Fh,Qg=S({},Zd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:So,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!==Fh&&(Fh&&l.type==="mousemove"?(Qb=l.screenX-Fh.screenX,Kb=l.screenY-Fh.screenY):Kb=Qb=0,Fh=l),Qb)},movementY:function(l){return"movementY"in l?l.movementY:Kb}}),D6=Ya(Qg),Yh=S({},Qg,{dataTransfer:0}),N6=Ya(Yh),k6=S({},Zd,{relatedTarget:0}),Kg=Ya(k6),z6=S({},ls,{animationName:0,elapsedTime:0,pseudoElement:0}),Zb=Ya(z6),I6=S({},ls,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),Af=Ya(I6),Cf=S({},ls,{data:0}),Wo=Ya(Cf),$8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jb={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"},ss={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function L6(l){var f=this.nativeEvent;return f.getModifierState?f.getModifierState(l):(l=ss[l])?!!f[l]:!1}function So(){return L6}var us=S({},Zd,{key:function(l){if(l.key){var f=$8[l.key]||l.key;if(f!=="Unidentified")return f}return l.type==="keypress"?(l=qh(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?Jb[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:So,charCode:function(l){return l.type==="keypress"?qh(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?qh(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),Zg=Ya(us),Jg=S({},Qg,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),e1=Ya(Jg),cs=S({},Zd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:So}),H8=Ya(cs),V6=S({},ls,{propertyName:0,elapsedTime:0,pseudoElement:0}),B6=Ya(V6),q8=S({},Qg,{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}),e4=Ya(q8),G8=S({},ls,{newState:0,oldState:0}),j6=Ya(G8),t4=[9,13,27,32],Jd=Yr&&"CompositionEvent"in window,pc=null;Yr&&"documentMode"in document&&(pc=document.documentMode);var n4=Yr&&"TextEvent"in window&&!pc,Fi=Yr&&(!Jd||pc&&8<pc&&11>=pc),r4=" ",Xh=!1;function mc(l,f){switch(l){case"keyup":return t4.indexOf(f.keyCode)!==-1;case"keydown":return f.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function t1(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var Of=!1;function P6(l,f){switch(l){case"compositionend":return t1(f);case"keypress":return f.which!==32?null:(Xh=!0,r4);case"textInput":return l=f.data,l===r4&&Xh?null:l;default:return null}}function U6(l,f){if(Of)return l==="compositionend"||!Jd&&mc(l,f)?(l=R6(),Xg=Yg=pu=null,Of=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(f.ctrlKey||f.altKey||f.metaKey)||f.ctrlKey&&f.altKey){if(f.char&&1<f.char.length)return f.char;if(f.which)return String.fromCharCode(f.which)}return null;case"compositionend":return Fi&&f.locale!=="ko"?null:f.data;default:return null}}var F8={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 n1(l){var f=l&&l.nodeName&&l.nodeName.toLowerCase();return f==="input"?!!F8[l.type]:f==="textarea"}function fs(l,f,m,b){wf?os?os.push(b):os=[b]:wf=b,f=sy(f,"onChange"),0<f.length&&(m=new Gh("onChange","change",null,m,b),l.push({event:m,listeners:f}))}var e0=null,Mf=null;function r1(l){Sx(l,0)}function ds(l){var f=Yd(l);if(Hb(f))return l}function i1(l,f){if(l==="change")return f}var i4=!1;if(Yr){var Wh;if(Yr){var Ta="oninput"in document;if(!Ta){var hs=document.createElement("div");hs.setAttribute("oninput","return;"),Ta=typeof hs.oninput=="function"}Wh=Ta}else Wh=!1;i4=Wh&&(!document.documentMode||9<document.documentMode)}function a4(){e0&&(e0.detachEvent("onpropertychange",a1),Mf=e0=null)}function a1(l){if(l.propertyName==="value"&&ds(Mf)){var f=[];fs(f,Mf,l,Fg(l)),Hh(r1,f)}}function o4(l,f,m){l==="focusin"?(a4(),e0=f,Mf=m,e0.attachEvent("onpropertychange",a1)):l==="focusout"&&a4()}function $6(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return ds(Mf)}function H6(l,f){if(l==="click")return ds(f)}function gc(l,f){if(l==="input"||l==="change")return ds(f)}function Rf(l,f){return l===f&&(l!==0||1/l===1/f)||l!==l&&f!==f}var Xa=typeof Object.is=="function"?Object.is:Rf;function yc(l,f){if(Xa(l,f))return!0;if(typeof l!="object"||l===null||typeof f!="object"||f===null)return!1;var m=Object.keys(l),b=Object.keys(f);if(m.length!==b.length)return!1;for(b=0;b<m.length;b++){var A=m[b];if(!hn.call(f,A)||!Xa(l[A],f[A]))return!1}return!0}function mu(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function l4(l,f){var m=mu(l);l=0;for(var b;m;){if(m.nodeType===3){if(b=l+m.textContent.length,l<=f&&b>=f)return{node:m,offset:f-l};l=b}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=mu(m)}}function s4(l,f){return l&&f?l===f?!0:l&&l.nodeType===3?!1:f&&f.nodeType===3?s4(l,f.parentNode):"contains"in l?l.contains(f):l.compareDocumentPosition?!!(l.compareDocumentPosition(f)&16):!1:!1}function _f(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var f=Ph(l.document);f instanceof l.HTMLIFrameElement;){try{var m=typeof f.contentWindow.location.href=="string"}catch{m=!1}if(m)l=f.contentWindow;else break;f=Ph(l.document)}return f}function gu(l){var f=l&&l.nodeName&&l.nodeName.toLowerCase();return f&&(f==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||f==="textarea"||l.contentEditable==="true")}var u4=Yr&&"documentMode"in document&&11>=document.documentMode,ps=null,Qh=null,vc=null,ms=!1;function gs(l,f,m){var b=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;ms||ps==null||ps!==Ph(b)||(b=ps,"selectionStart"in b&&gu(b)?b={start:b.selectionStart,end:b.selectionEnd}:(b=(b.ownerDocument&&b.ownerDocument.defaultView||window).getSelection(),b={anchorNode:b.anchorNode,anchorOffset:b.anchorOffset,focusNode:b.focusNode,focusOffset:b.focusOffset}),vc&&yc(vc,b)||(vc=b,b=sy(Qh,"onSelect"),0<b.length&&(f=new Gh("onSelect","select",null,f,m),l.push({event:f,listeners:b}),f.target=ps)))}function yu(l,f){var m={};return m[l.toLowerCase()]=f.toLowerCase(),m["Webkit"+l]="webkit"+f,m["Moz"+l]="moz"+f,m}var bc={animationend:yu("Animation","AnimationEnd"),animationiteration:yu("Animation","AnimationIteration"),animationstart:yu("Animation","AnimationStart"),transitionrun:yu("Transition","TransitionRun"),transitionstart:yu("Transition","TransitionStart"),transitioncancel:yu("Transition","TransitionCancel"),transitionend:yu("Transition","TransitionEnd")},xc={},Kh={};Yr&&(Kh=document.createElement("div").style,"AnimationEvent"in window||(delete bc.animationend.animation,delete bc.animationiteration.animation,delete bc.animationstart.animation),"TransitionEvent"in window||delete bc.transitionend.transition);function Eo(l){if(xc[l])return xc[l];if(!bc[l])return l;var f=bc[l],m;for(m in f)if(f.hasOwnProperty(m)&&m in Kh)return xc[l]=f[m];return l}var br=Eo("animationend"),Zh=Eo("animationiteration"),c4=Eo("animationstart"),f4=Eo("transitionrun"),Df=Eo("transitionstart"),Jh=Eo("transitioncancel"),Ol=Eo("transitionend"),q6=new Map,Ml="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(" ");Ml.push("scrollEnd");function Wa(l,f){q6.set(l,f),xo(f,[l])}var Sc=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var f=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(f))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)},Aa=[],zi=0,Ca=0;function wo(){for(var l=zi,f=Ca=zi=0;f<l;){var m=Aa[f];Aa[f++]=null;var b=Aa[f];Aa[f++]=null;var A=Aa[f];Aa[f++]=null;var O=Aa[f];if(Aa[f++]=null,b!==null&&A!==null){var j=b.pending;j===null?A.next=A:(A.next=j.next,j.next=A),b.pending=A}O!==0&&o1(m,A,O)}}function To(l,f,m,b){Aa[zi++]=l,Aa[zi++]=f,Aa[zi++]=m,Aa[zi++]=b,Ca|=b,l.lanes|=b,l=l.alternate,l!==null&&(l.lanes|=b)}function Qo(l,f,m,b){return To(l,f,m,b),t0(l)}function oa(l,f){return To(l,null,null,f),t0(l)}function o1(l,f,m){l.lanes|=m;var b=l.alternate;b!==null&&(b.lanes|=m);for(var A=!1,O=l.return;O!==null;)O.childLanes|=m,b=O.alternate,b!==null&&(b.childLanes|=m),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&&f!==null&&(A=31-bn(m),l=O.hiddenUpdates,b=l[A],b===null?l[A]=[f]:b.push(f),f.lane=m|536870912),O):null}function t0(l){if(50<td)throw td=0,W1=null,Error(i(185));for(var f=l.return;f!==null;)l=f,f=l.return;return l.tag===3?l.stateNode:null}var Nf={};function ys(l,f,m,b){this.tag=l,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=f,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=b,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qa(l,f,m,b){return new ys(l,f,m,b)}function Ko(l){return l=l.prototype,!(!l||!l.isReactComponent)}function Ao(l,f){var m=l.alternate;return m===null?(m=Qa(l.tag,f,l.key,l.mode),m.elementType=l.elementType,m.type=l.type,m.stateNode=l.stateNode,m.alternate=l,l.alternate=m):(m.pendingProps=f,m.type=l.type,m.flags=0,m.subtreeFlags=0,m.deletions=null),m.flags=l.flags&65011712,m.childLanes=l.childLanes,m.lanes=l.lanes,m.child=l.child,m.memoizedProps=l.memoizedProps,m.memoizedState=l.memoizedState,m.updateQueue=l.updateQueue,f=l.dependencies,m.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},m.sibling=l.sibling,m.index=l.index,m.ref=l.ref,m.refCleanup=l.refCleanup,m}function G6(l,f){l.flags&=65011714;var m=l.alternate;return m===null?(l.childLanes=0,l.lanes=f,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=m.childLanes,l.lanes=m.lanes,l.child=m.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=m.memoizedProps,l.memoizedState=m.memoizedState,l.updateQueue=m.updateQueue,l.type=m.type,f=m.dependencies,l.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext}),l}function ep(l,f,m,b,A,O){var j=0;if(b=l,typeof l=="function")Ko(l)&&(j=1);else if(typeof l=="string")j=Vx(l,m,Me.current)?26:l==="html"||l==="head"||l==="body"?27:5;else e:switch(l){case ce:return l=Qa(31,m,f,A),l.elementType=ce,l.lanes=O,l;case R:return kf(m.children,A,O,f);case _:j=8,A|=24;break;case N:return l=Qa(12,m,f,A|2),l.elementType=N,l.lanes=O,l;case L:return l=Qa(13,m,f,A),l.elementType=L,l.lanes=O,l;case U:return l=Qa(19,m,f,A),l.elementType=U,l.lanes=O,l;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case B:j=10;break e;case z:j=9;break e;case V:j=11;break e;case X:j=14;break e;case se:j=16,b=null;break e}j=29,m=Error(i(130,l===null?"null":typeof l,"")),b=null}return f=Qa(j,m,f,A),f.elementType=l,f.type=b,f.lanes=O,f}function kf(l,f,m,b){return l=Qa(7,l,b,f),l.lanes=m,l}function tp(l,f,m){return l=Qa(6,l,null,f),l.lanes=m,l}function np(l){var f=Qa(18,null,null,0);return f.stateNode=l,f}function l1(l,f,m){return f=Qa(4,l.children!==null?l.children:[],l.key,f),f.lanes=m,f.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},f}var d4=new WeakMap;function Co(l,f){if(typeof l=="object"&&l!==null){var m=d4.get(l);return m!==void 0?m:(f={value:l,source:f,stack:Ut(f)},d4.set(l,f),f)}return{value:l,source:f,stack:Ut(f)}}var zf=[],Oo=0,rp=null,n0=0,fr=[],Ka=0,Rl=null,Mo=1,Za="";function vs(l,f){zf[Oo++]=n0,zf[Oo++]=rp,rp=l,n0=f}function ip(l,f,m){fr[Ka++]=Mo,fr[Ka++]=Za,fr[Ka++]=Rl,Rl=l;var b=Mo;l=Za;var A=32-bn(b)-1;b&=~(1<<A),m+=1;var O=32-bn(f)+A;if(30<O){var j=A-A%5;O=(b&(1<<j)-1).toString(32),b>>=j,A-=j,Mo=1<<32-bn(f)+A|m<<A|b,Za=O+l}else Mo=1<<O|m<<A|b,Za=l}function s1(l){l.return!==null&&(vs(l,1),ip(l,1,0))}function r0(l){for(;l===rp;)rp=zf[--Oo],zf[Oo]=null,n0=zf[--Oo],zf[Oo]=null;for(;l===Rl;)Rl=fr[--Ka],fr[Ka]=null,Za=fr[--Ka],fr[Ka]=null,Mo=fr[--Ka],fr[Ka]=null}function h4(l,f){fr[Ka++]=Mo,fr[Ka++]=Za,fr[Ka++]=Rl,Mo=f.id,Za=f.overflow,Rl=l}var mi=null,xr=null,kn=!1,bs=null,Ja=!1,xs=Error(i(519));function Oa(l){var f=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw op(Co(f,l)),xs}function i0(l){var f=l.stateNode,m=l.type,b=l.memoizedProps;switch(f[pi]=l,f[Or]=b,m){case"dialog":_n("cancel",f),_n("close",f);break;case"iframe":case"object":case"embed":_n("load",f);break;case"video":case"audio":for(m=0;m<id.length;m++)_n(id[m],f);break;case"source":_n("error",f);break;case"img":case"image":case"link":_n("error",f),_n("load",f);break;case"details":_n("toggle",f);break;case"input":_n("invalid",f),Gg(f,b.value,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name,!0);break;case"select":_n("invalid",f);break;case"textarea":_n("invalid",f),qb(f,b.value,b.defaultValue,b.children)}m=b.children,typeof m!="string"&&typeof m!="number"&&typeof m!="bigint"||f.textContent===""+m||b.suppressHydrationWarning===!0||Ax(f.textContent,m)?(b.popover!=null&&(_n("beforetoggle",f),_n("toggle",f)),b.onScroll!=null&&_n("scroll",f),b.onScrollEnd!=null&&_n("scrollend",f),b.onClick!=null&&(f.onclick=Gi),f=!0):f=!1,f||Oa(l,!0)}function ap(l){for(mi=l.return;mi;)switch(mi.tag){case 5:case 31:case 13:Ja=!1;return;case 27:case 3:Ja=!0;return;default:mi=mi.return}}function Ss(l){if(l!==mi)return!1;if(!kn)return ap(l),kn=!0,!1;var f=l.tag,m;if((m=f!==3&&f!==27)&&((m=f===5)&&(m=l.type,m=!(m!=="form"&&m!=="button")||dy(l.type,l.memoizedProps)),m=!m),m&&xr&&Oa(l),ap(l),f===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(i(317));xr=py(l)}else if(f===31){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(i(317));xr=py(l)}else f===27?(f=xr,Ps(l.type)?(l=z0,z0=null,xr=l):xr=f):xr=mi?Ji(l.stateNode.nextSibling):null;return!0}function _l(){xr=mi=null,kn=!1}function u1(){var l=bs;return l!==null&&(oo===null?oo=l:oo.push.apply(oo,l),bs=null),l}function op(l){bs===null?bs=[l]:bs.push(l)}var c1=F(null),Ec=null,Dl=null;function Es(l,f,m){Y(c1,f._currentValue),f._currentValue=m}function la(l){l._currentValue=c1.current,ee(c1)}function lp(l,f,m){for(;l!==null;){var b=l.alternate;if((l.childLanes&f)!==f?(l.childLanes|=f,b!==null&&(b.childLanes|=f)):b!==null&&(b.childLanes&f)!==f&&(b.childLanes|=f),l===m)break;l=l.return}}function f1(l,f,m,b){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 ne=O;O=A;for(var ve=0;ve<f.length;ve++)if(ne.context===f[ve]){O.lanes|=m,ne=O.alternate,ne!==null&&(ne.lanes|=m),lp(O.return,m,l),b||(j=null);break e}O=ne.next}}else if(A.tag===18){if(j=A.return,j===null)throw Error(i(341));j.lanes|=m,O=j.alternate,O!==null&&(O.lanes|=m),lp(j,m,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 Ro(l,f,m,b){l=null;for(var A=f,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(i(387));if(j=j.memoizedProps,j!==null){var ne=A.type;Xa(A.pendingProps.value,j.value)||(l!==null?l.push(ne):l=[ne])}}else if(A===je.current){if(j=A.alternate,j===null)throw Error(i(387));j.memoizedState.memoizedState!==A.memoizedState.memoizedState&&(l!==null?l.push(Jr):l=[Jr])}A=A.return}l!==null&&f1(f,l,m,b),f.flags|=262144}function sa(l){for(l=l.firstContext;l!==null;){if(!Xa(l.context._currentValue,l.memoizedValue))return!0;l=l.next}return!1}function ws(l){Ec=l,Dl=null,l=l.dependencies,l!==null&&(l.firstContext=null)}function Vt(l){return If(Ec,l)}function rt(l,f){return Ec===null&&ws(l),If(l,f)}function If(l,f){var m=f._currentValue;if(f={context:f,memoizedValue:m,next:null},Dl===null){if(l===null)throw Error(i(308));Dl=f,l.dependencies={lanes:0,firstContext:f},l.flags|=524288}else Dl=Dl.next=f;return m}var d1=typeof AbortController<"u"?AbortController:function(){var l=[],f=this.signal={aborted:!1,addEventListener:function(m,b){l.push(b)}};this.abort=function(){f.aborted=!0,l.forEach(function(m){return m()})}},Xr=e.unstable_scheduleCallback,p4=e.unstable_NormalPriority,Wr={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function h1(){return{controller:new d1,data:new Map,refCount:0}}function Lf(l){l.refCount--,l.refCount===0&&Xr(p4,function(){l.controller.abort()})}var sp=null,up=0,wc=0,Tc=null;function Ma(l,f){if(sp===null){var m=sp=[];up=0,wc=nd(),Tc={status:"pending",value:void 0,then:function(b){m.push(b)}}}return up++,f.then(Wn,Wn),f}function Wn(){if(--up===0&&sp!==null){Tc!==null&&(Tc.status="fulfilled");var l=sp;sp=null,wc=0,Tc=null;for(var f=0;f<l.length;f++)(0,l[f])()}}function p1(l,f){var m=[],b={status:"pending",value:null,reason:null,then:function(A){m.push(A)}};return l.then(function(){b.status="fulfilled",b.value=f;for(var A=0;A<m.length;A++)(0,m[A])(f)},function(A){for(b.status="rejected",b.reason=A,A=0;A<m.length;A++)(0,m[A])(void 0)}),b}var a0=Z.S;Z.S=function(l,f){Ru=Bt(),typeof f=="object"&&f!==null&&typeof f.then=="function"&&Ma(l,f),a0!==null&&a0(l,f)};var eo=F(null);function vu(){var l=eo.current;return l!==null?l:dr.pooledCache}function to(l,f){f===null?Y(eo,eo.current):Y(eo,f.pool)}function m1(){var l=vu();return l===null?null:{parent:Wr._currentValue,pool:l}}var Nl=Error(i(460)),cp=Error(i(474)),Ac=Error(i(542)),o0={then:function(){}};function fp(l){return l=l.status,l==="fulfilled"||l==="rejected"}function m4(l,f,m){switch(m=l[m],m===void 0?l.push(f):m!==f&&(f.then(Gi,Gi),f=m),f.status){case"fulfilled":return f.value;case"rejected":throw l=f.reason,y4(l),l;default:if(typeof f.status=="string")f.then(Gi,Gi);else{if(l=dr,l!==null&&100<l.shellSuspendCounter)throw Error(i(482));l=f,l.status="pending",l.then(function(b){if(f.status==="pending"){var A=f;A.status="fulfilled",A.value=b}},function(b){if(f.status==="pending"){var A=f;A.status="rejected",A.reason=b}})}switch(f.status){case"fulfilled":return f.value;case"rejected":throw l=f.reason,y4(l),l}throw Oc=f,Nl}}function Cc(l){try{var f=l._init;return f(l._payload)}catch(m){throw m!==null&&typeof m=="object"&&typeof m.then=="function"?(Oc=m,Nl):m}}var Oc=null;function g4(){if(Oc===null)throw Error(i(459));var l=Oc;return Oc=null,l}function y4(l){if(l===Nl||l===Ac)throw Error(i(483))}var Mc=null,Vf=0;function l0(l){var f=Vf;return Vf+=1,Mc===null&&(Mc=[]),m4(Mc,l,f)}function s0(l,f){f=f.props.ref,l.ref=f!==void 0?f:null}function dp(l,f){throw f.$$typeof===T?Error(i(525)):(l=Object.prototype.toString.call(f),Error(i(31,l==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":l)))}function v4(l){function f(De,Te){if(l){var ke=De.deletions;ke===null?(De.deletions=[Te],De.flags|=16):ke.push(Te)}}function m(De,Te){if(!l)return null;for(;Te!==null;)f(De,Te),Te=Te.sibling;return null}function b(De){for(var Te=new Map;De!==null;)De.key!==null?Te.set(De.key,De):Te.set(De.index,De),De=De.sibling;return Te}function A(De,Te){return De=Ao(De,Te),De.index=0,De.sibling=null,De}function O(De,Te,ke){return De.index=ke,l?(ke=De.alternate,ke!==null?(ke=ke.index,ke<Te?(De.flags|=67108866,Te):ke):(De.flags|=67108866,Te)):(De.flags|=1048576,Te)}function j(De){return l&&De.alternate===null&&(De.flags|=67108866),De}function ne(De,Te,ke,Ye){return Te===null||Te.tag!==6?(Te=tp(ke,De.mode,Ye),Te.return=De,Te):(Te=A(Te,ke),Te.return=De,Te)}function ve(De,Te,ke,Ye){var Lt=ke.type;return Lt===R?qe(De,Te,ke.props.children,Ye,ke.key):Te!==null&&(Te.elementType===Lt||typeof Lt=="object"&&Lt!==null&&Lt.$$typeof===se&&Cc(Lt)===Te.type)?(Te=A(Te,ke.props),s0(Te,ke),Te.return=De,Te):(Te=ep(ke.type,ke.key,ke.props,null,De.mode,Ye),s0(Te,ke),Te.return=De,Te)}function ze(De,Te,ke,Ye){return Te===null||Te.tag!==4||Te.stateNode.containerInfo!==ke.containerInfo||Te.stateNode.implementation!==ke.implementation?(Te=l1(ke,De.mode,Ye),Te.return=De,Te):(Te=A(Te,ke.children||[]),Te.return=De,Te)}function qe(De,Te,ke,Ye,Lt){return Te===null||Te.tag!==7?(Te=kf(ke,De.mode,Ye,Lt),Te.return=De,Te):(Te=A(Te,ke),Te.return=De,Te)}function Ke(De,Te,ke){if(typeof Te=="string"&&Te!==""||typeof Te=="number"||typeof Te=="bigint")return Te=tp(""+Te,De.mode,ke),Te.return=De,Te;if(typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case w:return ke=ep(Te.type,Te.key,Te.props,null,De.mode,ke),s0(ke,Te),ke.return=De,ke;case C:return Te=l1(Te,De.mode,ke),Te.return=De,Te;case se:return Te=Cc(Te),Ke(De,Te,ke)}if(oe(Te)||$(Te))return Te=kf(Te,De.mode,ke,null),Te.return=De,Te;if(typeof Te.then=="function")return Ke(De,l0(Te),ke);if(Te.$$typeof===B)return Ke(De,rt(De,Te),ke);dp(De,Te)}return null}function Ie(De,Te,ke,Ye){var Lt=Te!==null?Te.key:null;if(typeof ke=="string"&&ke!==""||typeof ke=="number"||typeof ke=="bigint")return Lt!==null?null:ne(De,Te,""+ke,Ye);if(typeof ke=="object"&&ke!==null){switch(ke.$$typeof){case w:return ke.key===Lt?ve(De,Te,ke,Ye):null;case C:return ke.key===Lt?ze(De,Te,ke,Ye):null;case se:return ke=Cc(ke),Ie(De,Te,ke,Ye)}if(oe(ke)||$(ke))return Lt!==null?null:qe(De,Te,ke,Ye,null);if(typeof ke.then=="function")return Ie(De,Te,l0(ke),Ye);if(ke.$$typeof===B)return Ie(De,Te,rt(De,ke),Ye);dp(De,ke)}return null}function Ue(De,Te,ke,Ye,Lt){if(typeof Ye=="string"&&Ye!==""||typeof Ye=="number"||typeof Ye=="bigint")return De=De.get(ke)||null,ne(Te,De,""+Ye,Lt);if(typeof Ye=="object"&&Ye!==null){switch(Ye.$$typeof){case w:return De=De.get(Ye.key===null?ke:Ye.key)||null,ve(Te,De,Ye,Lt);case C:return De=De.get(Ye.key===null?ke:Ye.key)||null,ze(Te,De,Ye,Lt);case se:return Ye=Cc(Ye),Ue(De,Te,ke,Ye,Lt)}if(oe(Ye)||$(Ye))return De=De.get(ke)||null,qe(Te,De,Ye,Lt,null);if(typeof Ye.then=="function")return Ue(De,Te,ke,l0(Ye),Lt);if(Ye.$$typeof===B)return Ue(De,Te,ke,rt(Te,Ye),Lt);dp(Te,Ye)}return null}function Rt(De,Te,ke,Ye){for(var Lt=null,qn=null,_t=Te,pn=Te=0,An=null;_t!==null&&pn<ke.length;pn++){_t.index>pn?(An=_t,_t=null):An=_t.sibling;var Dn=Ie(De,_t,ke[pn],Ye);if(Dn===null){_t===null&&(_t=An);break}l&&_t&&Dn.alternate===null&&f(De,_t),Te=O(Dn,Te,pn),qn===null?Lt=Dn:qn.sibling=Dn,qn=Dn,_t=An}if(pn===ke.length)return m(De,_t),kn&&vs(De,pn),Lt;if(_t===null){for(;pn<ke.length;pn++)_t=Ke(De,ke[pn],Ye),_t!==null&&(Te=O(_t,Te,pn),qn===null?Lt=_t:qn.sibling=_t,qn=_t);return kn&&vs(De,pn),Lt}for(_t=b(_t);pn<ke.length;pn++)An=Ue(_t,De,pn,ke[pn],Ye),An!==null&&(l&&An.alternate!==null&&_t.delete(An.key===null?pn:An.key),Te=O(An,Te,pn),qn===null?Lt=An:qn.sibling=An,qn=An);return l&&_t.forEach(function(Pc){return f(De,Pc)}),kn&&vs(De,pn),Lt}function Ht(De,Te,ke,Ye){if(ke==null)throw Error(i(151));for(var Lt=null,qn=null,_t=Te,pn=Te=0,An=null,Dn=ke.next();_t!==null&&!Dn.done;pn++,Dn=ke.next()){_t.index>pn?(An=_t,_t=null):An=_t.sibling;var Pc=Ie(De,_t,Dn.value,Ye);if(Pc===null){_t===null&&(_t=An);break}l&&_t&&Pc.alternate===null&&f(De,_t),Te=O(Pc,Te,pn),qn===null?Lt=Pc:qn.sibling=Pc,qn=Pc,_t=An}if(Dn.done)return m(De,_t),kn&&vs(De,pn),Lt;if(_t===null){for(;!Dn.done;pn++,Dn=ke.next())Dn=Ke(De,Dn.value,Ye),Dn!==null&&(Te=O(Dn,Te,pn),qn===null?Lt=Dn:qn.sibling=Dn,qn=Dn);return kn&&vs(De,pn),Lt}for(_t=b(_t);!Dn.done;pn++,Dn=ke.next())Dn=Ue(_t,De,pn,Dn.value,Ye),Dn!==null&&(l&&Dn.alternate!==null&&_t.delete(Dn.key===null?pn:Dn.key),Te=O(Dn,Te,pn),qn===null?Lt=Dn:qn.sibling=Dn,qn=Dn);return l&&_t.forEach(function(Ry){return f(De,Ry)}),kn&&vs(De,pn),Lt}function hr(De,Te,ke,Ye){if(typeof ke=="object"&&ke!==null&&ke.type===R&&ke.key===null&&(ke=ke.props.children),typeof ke=="object"&&ke!==null){switch(ke.$$typeof){case w:e:{for(var Lt=ke.key;Te!==null;){if(Te.key===Lt){if(Lt=ke.type,Lt===R){if(Te.tag===7){m(De,Te.sibling),Ye=A(Te,ke.props.children),Ye.return=De,De=Ye;break e}}else if(Te.elementType===Lt||typeof Lt=="object"&&Lt!==null&&Lt.$$typeof===se&&Cc(Lt)===Te.type){m(De,Te.sibling),Ye=A(Te,ke.props),s0(Ye,ke),Ye.return=De,De=Ye;break e}m(De,Te);break}else f(De,Te);Te=Te.sibling}ke.type===R?(Ye=kf(ke.props.children,De.mode,Ye,ke.key),Ye.return=De,De=Ye):(Ye=ep(ke.type,ke.key,ke.props,null,De.mode,Ye),s0(Ye,ke),Ye.return=De,De=Ye)}return j(De);case C:e:{for(Lt=ke.key;Te!==null;){if(Te.key===Lt)if(Te.tag===4&&Te.stateNode.containerInfo===ke.containerInfo&&Te.stateNode.implementation===ke.implementation){m(De,Te.sibling),Ye=A(Te,ke.children||[]),Ye.return=De,De=Ye;break e}else{m(De,Te);break}else f(De,Te);Te=Te.sibling}Ye=l1(ke,De.mode,Ye),Ye.return=De,De=Ye}return j(De);case se:return ke=Cc(ke),hr(De,Te,ke,Ye)}if(oe(ke))return Rt(De,Te,ke,Ye);if($(ke)){if(Lt=$(ke),typeof Lt!="function")throw Error(i(150));return ke=Lt.call(ke),Ht(De,Te,ke,Ye)}if(typeof ke.then=="function")return hr(De,Te,l0(ke),Ye);if(ke.$$typeof===B)return hr(De,Te,rt(De,ke),Ye);dp(De,ke)}return typeof ke=="string"&&ke!==""||typeof ke=="number"||typeof ke=="bigint"?(ke=""+ke,Te!==null&&Te.tag===6?(m(De,Te.sibling),Ye=A(Te,ke),Ye.return=De,De=Ye):(m(De,Te),Ye=tp(ke,De.mode,Ye),Ye.return=De,De=Ye),j(De)):m(De,Te)}return function(De,Te,ke,Ye){try{Vf=0;var Lt=hr(De,Te,ke,Ye);return Mc=null,Lt}catch(_t){if(_t===Nl||_t===Ac)throw _t;var qn=Qa(29,_t,null,De.mode);return qn.lanes=Ye,qn.return=De,qn}finally{}}}var Bf=v4(!0),b4=v4(!1),bu=!1;function g1(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hp(l,f){l=l.updateQueue,f.updateQueue===l&&(f.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function xu(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function Su(l,f,m){var b=l.updateQueue;if(b===null)return null;if(b=b.shared,(Hn&2)!==0){var A=b.pending;return A===null?f.next=f:(f.next=A.next,A.next=f),b.pending=f,f=t0(l),o1(l,null,m),f}return To(l,b,f,m),t0(l)}function Ts(l,f,m){if(f=f.updateQueue,f!==null&&(f=f.shared,(m&4194048)!==0)){var b=f.lanes;b&=l.pendingLanes,m|=b,f.lanes=m,zh(l,m)}}function u0(l,f){var m=l.updateQueue,b=l.alternate;if(b!==null&&(b=b.updateQueue,m===b)){var A=null,O=null;if(m=m.firstBaseUpdate,m!==null){do{var j={lane:m.lane,tag:m.tag,payload:m.payload,callback:null,next:null};O===null?A=O=j:O=O.next=j,m=m.next}while(m!==null);O===null?A=O=f:O=O.next=f}else A=O=f;m={baseState:b.baseState,firstBaseUpdate:A,lastBaseUpdate:O,shared:b.shared,callbacks:b.callbacks},l.updateQueue=m;return}l=m.lastBaseUpdate,l===null?m.firstBaseUpdate=f:l.next=f,m.lastBaseUpdate=f}var y1=!1;function pp(){if(y1){var l=Tc;if(l!==null)throw l}}function Rc(l,f,m,b){y1=!1;var A=l.updateQueue;bu=!1;var O=A.firstBaseUpdate,j=A.lastBaseUpdate,ne=A.shared.pending;if(ne!==null){A.shared.pending=null;var ve=ne,ze=ve.next;ve.next=null,j===null?O=ze:j.next=ze,j=ve;var qe=l.alternate;qe!==null&&(qe=qe.updateQueue,ne=qe.lastBaseUpdate,ne!==j&&(ne===null?qe.firstBaseUpdate=ze:ne.next=ze,qe.lastBaseUpdate=ve))}if(O!==null){var Ke=A.baseState;j=0,qe=ze=ve=null,ne=O;do{var Ie=ne.lane&-536870913,Ue=Ie!==ne.lane;if(Ue?(zn&Ie)===Ie:(b&Ie)===Ie){Ie!==0&&Ie===wc&&(y1=!0),qe!==null&&(qe=qe.next={lane:0,tag:ne.tag,payload:ne.payload,callback:null,next:null});e:{var Rt=l,Ht=ne;Ie=f;var hr=m;switch(Ht.tag){case 1:if(Rt=Ht.payload,typeof Rt=="function"){Ke=Rt.call(hr,Ke,Ie);break e}Ke=Rt;break e;case 3:Rt.flags=Rt.flags&-65537|128;case 0:if(Rt=Ht.payload,Ie=typeof Rt=="function"?Rt.call(hr,Ke,Ie):Rt,Ie==null)break e;Ke=S({},Ke,Ie);break e;case 2:bu=!0}}Ie=ne.callback,Ie!==null&&(l.flags|=64,Ue&&(l.flags|=8192),Ue=A.callbacks,Ue===null?A.callbacks=[Ie]:Ue.push(Ie))}else Ue={lane:Ie,tag:ne.tag,payload:ne.payload,callback:ne.callback,next:null},qe===null?(ze=qe=Ue,ve=Ke):qe=qe.next=Ue,j|=Ie;if(ne=ne.next,ne===null){if(ne=A.shared.pending,ne===null)break;Ue=ne,ne=Ue.next,Ue.next=null,A.lastBaseUpdate=Ue,A.shared.pending=null}}while(!0);qe===null&&(ve=Ke),A.baseState=ve,A.firstBaseUpdate=ze,A.lastBaseUpdate=qe,O===null&&(A.shared.lanes=0),il|=j,l.lanes=j,l.memoizedState=Ke}}function jf(l,f){if(typeof l!="function")throw Error(i(191,l));l.call(f)}function v1(l,f){var m=l.callbacks;if(m!==null)for(l.callbacks=null,l=0;l<m.length;l++)jf(m[l],f)}var Zo=F(null),Yi=F(0);function mp(l,f){l=Vs,Y(Yi,l),Y(Zo,f),Vs=l|f.baseLanes}function x4(){Y(Yi,Vs),Y(Zo,Zo.current)}function gp(){Vs=Yi.current,ee(Zo),ee(Yi)}var ua=F(null),no=null;function Eu(l){var f=l.alternate;Y(Lr,Lr.current&1),Y(ua,l),no===null&&(f===null||Zo.current!==null||f.memoizedState!==null)&&(no=l)}function yp(l){Y(Lr,Lr.current),Y(ua,l),no===null&&(no=l)}function vp(l){l.tag===22?(Y(Lr,Lr.current),Y(ua,l),no===null&&(no=l)):As()}function As(){Y(Lr,Lr.current),Y(ua,ua.current)}function ca(l){ee(ua),no===l&&(no=null),ee(Lr)}var Lr=F(0);function Pf(l){for(var f=l;f!==null;){if(f.tag===13){var m=f.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||Dx(m)||ol(m)))return f}else if(f.tag===19&&(f.memoizedProps.revealOrder==="forwards"||f.memoizedProps.revealOrder==="backwards"||f.memoizedProps.revealOrder==="unstable_legacy-backwards"||f.memoizedProps.revealOrder==="together")){if((f.flags&128)!==0)return f}else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===l)break;for(;f.sibling===null;){if(f.return===null||f.return===l)return null;f=f.return}f.sibling.return=f.return,f=f.sibling}return null}var kl=0,cn=null,nr=null,Qr=null,bp=!1,wu=!1,_c=!1,c0=0,f0=0,Uf=null,S4=0;function Vr(){throw Error(i(321))}function b1(l,f){if(f===null)return!1;for(var m=0;m<f.length&&m<l.length;m++)if(!Xa(l[m],f[m]))return!1;return!0}function Tu(l,f,m,b,A,O){return kl=O,cn=f,f.memoizedState=null,f.updateQueue=null,f.lanes=0,Z.H=l===null||l.memoizedState===null?Z6:V4,_c=!1,O=m(b,A),_c=!1,wu&&(O=S1(f,m,b,A)),x1(l),O}function x1(l){Z.H=y0;var f=nr!==null&&nr.next!==null;if(kl=0,Qr=nr=cn=null,bp=!1,f0=0,Uf=null,f)throw Error(i(300));l===null||li||(l=l.dependencies,l!==null&&sa(l)&&(li=!0))}function S1(l,f,m,b){cn=l;var A=0;do{if(wu&&(Uf=null),f0=0,wu=!1,25<=A)throw Error(i(301));if(A+=1,Qr=nr=null,l.updateQueue!=null){var O=l.updateQueue;O.lastEffect=null,O.events=null,O.stores=null,O.memoCache!=null&&(O.memoCache.index=0)}Z.H=B4,O=f(m,b)}while(wu);return O}function Y8(){var l=Z.H,f=l.useState()[0];return f=typeof f.then=="function"?d0(f):f,l=l.useState()[0],(nr!==null?nr.memoizedState:null)!==l&&(cn.flags|=1024),f}function E4(){var l=c0!==0;return c0=0,l}function E1(l,f,m){f.updateQueue=l.updateQueue,f.flags&=-2053,l.lanes&=~m}function $f(l){if(bp){for(l=l.memoizedState;l!==null;){var f=l.queue;f!==null&&(f.pending=null),l=l.next}bp=!1}kl=0,Qr=nr=cn=null,wu=!1,f0=c0=0,Uf=null}function Xi(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qr===null?cn.memoizedState=Qr=l:Qr=Qr.next=l,Qr}function Dr(){if(nr===null){var l=cn.alternate;l=l!==null?l.memoizedState:null}else l=nr.next;var f=Qr===null?cn.memoizedState:Qr.next;if(f!==null)Qr=f,nr=l;else{if(l===null)throw cn.alternate===null?Error(i(467)):Error(i(310));nr=l,l={memoizedState:nr.memoizedState,baseState:nr.baseState,baseQueue:nr.baseQueue,queue:nr.queue,next:null},Qr===null?cn.memoizedState=Qr=l:Qr=Qr.next=l}return Qr}function xp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function d0(l){var f=f0;return f0+=1,Uf===null&&(Uf=[]),l=m4(Uf,l,f),f=cn,(Qr===null?f.memoizedState:Qr.next)===null&&(f=f.alternate,Z.H=f===null||f.memoizedState===null?Z6:V4),l}function h0(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return d0(l);if(l.$$typeof===B)return Vt(l)}throw Error(i(438,String(l)))}function Sp(l){var f=null,m=cn.updateQueue;if(m!==null&&(f=m.memoCache),f==null){var b=cn.alternate;b!==null&&(b=b.updateQueue,b!==null&&(b=b.memoCache,b!=null&&(f={data:b.data.map(function(A){return A.slice()}),index:0})))}if(f==null&&(f={data:[],index:0}),m===null&&(m=xp(),cn.updateQueue=m),m.memoCache=f,m=f.data[f.index],m===void 0)for(m=f.data[f.index]=Array(l),b=0;b<l;b++)m[b]=ie;return f.index++,m}function Cs(l,f){return typeof f=="function"?f(l):f}function Ep(l){var f=Dr();return Au(f,nr,l)}function Au(l,f,m){var b=l.queue;if(b===null)throw Error(i(311));b.lastRenderedReducer=m;var A=l.baseQueue,O=b.pending;if(O!==null){if(A!==null){var j=A.next;A.next=O.next,O.next=j}f.baseQueue=A=O,b.pending=null}if(O=l.baseState,A===null)l.memoizedState=O;else{f=A.next;var ne=j=null,ve=null,ze=f,qe=!1;do{var Ke=ze.lane&-536870913;if(Ke!==ze.lane?(zn&Ke)===Ke:(kl&Ke)===Ke){var Ie=ze.revertLane;if(Ie===0)ve!==null&&(ve=ve.next={lane:0,revertLane:0,gesture:null,action:ze.action,hasEagerState:ze.hasEagerState,eagerState:ze.eagerState,next:null}),Ke===wc&&(qe=!0);else if((kl&Ie)===Ie){ze=ze.next,Ie===wc&&(qe=!0);continue}else Ke={lane:0,revertLane:ze.revertLane,gesture:null,action:ze.action,hasEagerState:ze.hasEagerState,eagerState:ze.eagerState,next:null},ve===null?(ne=ve=Ke,j=O):ve=ve.next=Ke,cn.lanes|=Ie,il|=Ie;Ke=ze.action,_c&&m(O,Ke),O=ze.hasEagerState?ze.eagerState:m(O,Ke)}else Ie={lane:Ke,revertLane:ze.revertLane,gesture:ze.gesture,action:ze.action,hasEagerState:ze.hasEagerState,eagerState:ze.eagerState,next:null},ve===null?(ne=ve=Ie,j=O):ve=ve.next=Ie,cn.lanes|=Ke,il|=Ke;ze=ze.next}while(ze!==null&&ze!==f);if(ve===null?j=O:ve.next=ne,!Xa(O,l.memoizedState)&&(li=!0,qe&&(m=Tc,m!==null)))throw m;l.memoizedState=O,l.baseState=j,l.baseQueue=ve,b.lastRenderedState=O}return A===null&&(b.lanes=0),[l.memoizedState,b.dispatch]}function w1(l){var f=Dr(),m=f.queue;if(m===null)throw Error(i(311));m.lastRenderedReducer=l;var b=m.dispatch,A=m.pending,O=f.memoizedState;if(A!==null){m.pending=null;var j=A=A.next;do O=l(O,j.action),j=j.next;while(j!==A);Xa(O,f.memoizedState)||(li=!0),f.memoizedState=O,f.baseQueue===null&&(f.baseState=O),m.lastRenderedState=O}return[O,b]}function w4(l,f,m){var b=cn,A=Dr(),O=kn;if(O){if(m===void 0)throw Error(i(407));m=m()}else m=f();var j=!Xa((nr||A).memoizedState,m);if(j&&(A.memoizedState=m,li=!0),A=A.queue,Op(A4.bind(null,b,A,l),[l]),A.getSnapshot!==f||j||Qr!==null&&Qr.memoizedState.tag&1){if(b.flags|=2048,Hf(9,{destroy:void 0},wp.bind(null,b,A,m,f),null),dr===null)throw Error(i(349));O||(kl&127)!==0||T4(b,f,m)}return m}function T4(l,f,m){l.flags|=16384,l={getSnapshot:f,value:m},f=cn.updateQueue,f===null?(f=xp(),cn.updateQueue=f,f.stores=[l]):(m=f.stores,m===null?f.stores=[l]:m.push(l))}function wp(l,f,m,b){f.value=m,f.getSnapshot=b,T1(f)&&A1(l)}function A4(l,f,m){return m(function(){T1(f)&&A1(l)})}function T1(l){var f=l.getSnapshot;l=l.value;try{var m=f();return!Xa(l,m)}catch{return!0}}function A1(l){var f=oa(l,2);f!==null&&so(f,l,2)}function Tp(l){var f=Xi();if(typeof l=="function"){var m=l;if(l=m(),_c){Fn(!0);try{m()}finally{Fn(!1)}}}return f.memoizedState=f.baseState=l,f.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cs,lastRenderedState:l},f}function F6(l,f,m,b){return l.baseState=m,Au(l,nr,typeof b=="function"?b:Cs)}function Wi(l,f,m,b,A){if(Cu(l))throw Error(i(485));if(l=f.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)}};Z.T!==null?m(!0):O.isTransition=!1,b(O),m=f.pending,m===null?(O.next=f.pending=O,C4(f,O)):(O.next=m.next,f.pending=m.next=O)}}function C4(l,f){var m=f.action,b=f.payload,A=l.state;if(f.isTransition){var O=Z.T,j={};Z.T=j;try{var ne=m(A,b),ve=Z.S;ve!==null&&ve(j,ne),O4(l,f,ne)}catch(ze){C1(l,f,ze)}finally{O!==null&&j.types!==null&&(O.types=j.types),Z.T=O}}else try{O=m(A,b),O4(l,f,O)}catch(ze){C1(l,f,ze)}}function O4(l,f,m){m!==null&&typeof m=="object"&&typeof m.then=="function"?m.then(function(b){M4(l,f,b)},function(b){return C1(l,f,b)}):M4(l,f,m)}function M4(l,f,m){f.status="fulfilled",f.value=m,p0(f),l.state=m,f=l.pending,f!==null&&(m=f.next,m===f?l.pending=null:(m=m.next,f.next=m,C4(l,m)))}function C1(l,f,m){var b=l.pending;if(l.pending=null,b!==null){b=b.next;do f.status="rejected",f.reason=m,p0(f),f=f.next;while(f!==b)}l.action=null}function p0(l){l=l.listeners;for(var f=0;f<l.length;f++)(0,l[f])()}function R4(l,f){return f}function Ap(l,f){if(kn){var m=dr.formState;if(m!==null){e:{var b=cn;if(kn){if(xr){t:{for(var A=xr,O=Ja;A.nodeType!==8;){if(!O){A=null;break t}if(A=Ji(A.nextSibling),A===null){A=null;break t}}O=A.data,A=O==="F!"||O==="F"?A:null}if(A){xr=Ji(A.nextSibling),b=A.data==="F!";break e}}Oa(b)}b=!1}b&&(f=m[0])}}return m=Xi(),m.memoizedState=m.baseState=f,b={pending:null,lanes:0,dispatch:null,lastRenderedReducer:R4,lastRenderedState:f},m.queue=b,m=I4.bind(null,cn,b),b.dispatch=m,b=Tp(!1),O=Gf.bind(null,cn,!1,b.queue),b=Xi(),A={state:f,dispatch:null,action:l,pending:null},b.queue=A,m=Wi.bind(null,cn,A,O,m),A.dispatch=m,b.memoizedState=l,[f,m,!1]}function _4(l){var f=Dr();return Y6(f,nr,l)}function Y6(l,f,m){if(f=Au(l,f,R4)[0],l=Ep(Cs)[0],typeof f=="object"&&f!==null&&typeof f.then=="function")try{var b=d0(f)}catch(j){throw j===Nl?Ac:j}else b=f;f=Dr();var A=f.queue,O=A.dispatch;return m!==f.memoizedState&&(cn.flags|=2048,Hf(9,{destroy:void 0},O1.bind(null,A,m),null)),[b,O,l]}function O1(l,f){l.action=f}function M1(l){var f=Dr(),m=nr;if(m!==null)return Y6(f,m,l);Dr(),f=f.memoizedState,m=Dr();var b=m.queue.dispatch;return m.memoizedState=l,[f,b,!1]}function Hf(l,f,m,b){return l={tag:l,create:m,deps:b,inst:f,next:null},f=cn.updateQueue,f===null&&(f=xp(),cn.updateQueue=f),m=f.lastEffect,m===null?f.lastEffect=l.next=l:(b=m.next,m.next=l,l.next=b,f.lastEffect=l),l}function D4(){return Dr().memoizedState}function Cp(l,f,m,b){var A=Xi();cn.flags|=l,A.memoizedState=Hf(1|f,{destroy:void 0},m,b===void 0?null:b)}function m0(l,f,m,b){var A=Dr();b=b===void 0?null:b;var O=A.memoizedState.inst;nr!==null&&b!==null&&b1(b,nr.memoizedState.deps)?A.memoizedState=Hf(f,O,m,b):(cn.flags|=l,A.memoizedState=Hf(1|f,O,m,b))}function R1(l,f){Cp(8390656,8,l,f)}function Op(l,f){m0(2048,8,l,f)}function X6(l){cn.flags|=4;var f=cn.updateQueue;if(f===null)f=xp(),cn.updateQueue=f,f.events=[l];else{var m=f.events;m===null?f.events=[l]:m.push(l)}}function _1(l){var f=Dr().memoizedState;return X6({ref:f,nextImpl:l}),function(){if((Hn&2)!==0)throw Error(i(440));return f.impl.apply(void 0,arguments)}}function Mp(l,f){return m0(4,2,l,f)}function D1(l,f){return m0(4,4,l,f)}function N4(l,f){if(typeof f=="function"){l=l();var m=f(l);return function(){typeof m=="function"?m():f(null)}}if(f!=null)return l=l(),f.current=l,function(){f.current=null}}function N1(l,f,m){m=m!=null?m.concat([l]):null,m0(4,4,N4.bind(null,f,l),m)}function k1(){}function Os(l,f){var m=Dr();f=f===void 0?null:f;var b=m.memoizedState;return f!==null&&b1(f,b[1])?b[0]:(m.memoizedState=[l,f],l)}function z1(l,f){var m=Dr();f=f===void 0?null:f;var b=m.memoizedState;if(f!==null&&b1(f,b[1]))return b[0];if(b=l(),_c){Fn(!0);try{l()}finally{Fn(!1)}}return m.memoizedState=[b,f],b}function k4(l,f,m){return m===void 0||(kl&1073741824)!==0&&(zn&261930)===0?l.memoizedState=f:(l.memoizedState=m,l=fx(),cn.lanes|=l,il|=l,m)}function I1(l,f,m,b){return Xa(m,f)?m:Zo.current!==null?(l=k4(l,m,b),Xa(l,f)||(li=!0),l):(kl&42)===0||(kl&1073741824)!==0&&(zn&261930)===0?(li=!0,l.memoizedState=m):(l=fx(),cn.lanes|=l,il|=l,f)}function Ms(l,f,m,b,A){var O=ae.p;ae.p=O!==0&&8>O?O:8;var j=Z.T,ne={};Z.T=ne,Gf(l,!1,f,m);try{var ve=A(),ze=Z.S;if(ze!==null&&ze(ne,ve),ve!==null&&typeof ve=="object"&&typeof ve.then=="function"){var qe=p1(ve,b);qf(l,f,qe,ka(l))}else qf(l,f,b,ka(l))}catch(Ke){qf(l,f,{then:function(){},status:"rejected",reason:Ke},ka())}finally{ae.p=O,j!==null&&ne.types!==null&&(j.types=ne.types),Z.T=j}}function z4(){}function L1(l,f,m,b){if(l.tag!==5)throw Error(i(476));var A=Rp(l).queue;Ms(l,A,f,de,m===null?z4:function(){return g0(l),m(b)})}function Rp(l){var f=l.memoizedState;if(f!==null)return f;f={memoizedState:de,baseState:de,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cs,lastRenderedState:de},next:null};var m={};return f.next={memoizedState:m,baseState:m,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cs,lastRenderedState:m},next:null},l.memoizedState=f,l=l.alternate,l!==null&&(l.memoizedState=f),f}function g0(l){var f=Rp(l);f.next===null&&(f=l.alternate.memoizedState),qf(l,f.next.queue,{},ka())}function rr(){return Vt(Jr)}function W6(){return Dr().memoizedState}function Q6(){return Dr().memoizedState}function K6(l){for(var f=l.return;f!==null;){switch(f.tag){case 24:case 3:var m=ka();l=xu(m);var b=Su(f,l,m);b!==null&&(so(b,f,m),Ts(b,f,m)),f={cache:h1()},l.payload=f;return}f=f.return}}function Rs(l,f,m){var b=ka();m={lane:b,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},Cu(l)?L4(f,m):(m=Qo(l,f,m,b),m!==null&&(so(m,l,b),V1(m,f,b)))}function I4(l,f,m){var b=ka();qf(l,f,m,b)}function qf(l,f,m,b){var A={lane:b,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null};if(Cu(l))L4(f,A);else{var O=l.alternate;if(l.lanes===0&&(O===null||O.lanes===0)&&(O=f.lastRenderedReducer,O!==null))try{var j=f.lastRenderedState,ne=O(j,m);if(A.hasEagerState=!0,A.eagerState=ne,Xa(ne,j))return To(l,f,A,0),dr===null&&wo(),!1}catch{}finally{}if(m=Qo(l,f,A,b),m!==null)return so(m,l,b),V1(m,f,b),!0}return!1}function Gf(l,f,m,b){if(b={lane:2,revertLane:nd(),gesture:null,action:b,hasEagerState:!1,eagerState:null,next:null},Cu(l)){if(f)throw Error(i(479))}else f=Qo(l,m,b,2),f!==null&&so(f,l,2)}function Cu(l){var f=l.alternate;return l===cn||f!==null&&f===cn}function L4(l,f){wu=bp=!0;var m=l.pending;m===null?f.next=f:(f.next=m.next,m.next=f),l.pending=f}function V1(l,f,m){if((m&4194048)!==0){var b=f.lanes;b&=l.pendingLanes,m|=b,f.lanes=m,zh(l,m)}}var y0={readContext:Vt,use:h0,useCallback:Vr,useContext:Vr,useEffect:Vr,useImperativeHandle:Vr,useLayoutEffect:Vr,useInsertionEffect:Vr,useMemo:Vr,useReducer:Vr,useRef:Vr,useState:Vr,useDebugValue:Vr,useDeferredValue:Vr,useTransition:Vr,useSyncExternalStore:Vr,useId:Vr,useHostTransitionStatus:Vr,useFormState:Vr,useActionState:Vr,useOptimistic:Vr,useMemoCache:Vr,useCacheRefresh:Vr};y0.useEffectEvent=Vr;var Z6={readContext:Vt,use:h0,useCallback:function(l,f){return Xi().memoizedState=[l,f===void 0?null:f],l},useContext:Vt,useEffect:R1,useImperativeHandle:function(l,f,m){m=m!=null?m.concat([l]):null,Cp(4194308,4,N4.bind(null,f,l),m)},useLayoutEffect:function(l,f){return Cp(4194308,4,l,f)},useInsertionEffect:function(l,f){Cp(4,2,l,f)},useMemo:function(l,f){var m=Xi();f=f===void 0?null:f;var b=l();if(_c){Fn(!0);try{l()}finally{Fn(!1)}}return m.memoizedState=[b,f],b},useReducer:function(l,f,m){var b=Xi();if(m!==void 0){var A=m(f);if(_c){Fn(!0);try{m(f)}finally{Fn(!1)}}}else A=f;return b.memoizedState=b.baseState=A,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:A},b.queue=l,l=l.dispatch=Rs.bind(null,cn,l),[b.memoizedState,l]},useRef:function(l){var f=Xi();return l={current:l},f.memoizedState=l},useState:function(l){l=Tp(l);var f=l.queue,m=I4.bind(null,cn,f);return f.dispatch=m,[l.memoizedState,m]},useDebugValue:k1,useDeferredValue:function(l,f){var m=Xi();return k4(m,l,f)},useTransition:function(){var l=Tp(!1);return l=Ms.bind(null,cn,l.queue,!0,!1),Xi().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,f,m){var b=cn,A=Xi();if(kn){if(m===void 0)throw Error(i(407));m=m()}else{if(m=f(),dr===null)throw Error(i(349));(zn&127)!==0||T4(b,f,m)}A.memoizedState=m;var O={value:m,getSnapshot:f};return A.queue=O,R1(A4.bind(null,b,O,l),[l]),b.flags|=2048,Hf(9,{destroy:void 0},wp.bind(null,b,O,m,f),null),m},useId:function(){var l=Xi(),f=dr.identifierPrefix;if(kn){var m=Za,b=Mo;m=(b&~(1<<32-bn(b)-1)).toString(32)+m,f="_"+f+"R_"+m,m=c0++,0<m&&(f+="H"+m.toString(32)),f+="_"}else m=S4++,f="_"+f+"r_"+m.toString(32)+"_";return l.memoizedState=f},useHostTransitionStatus:rr,useFormState:Ap,useActionState:Ap,useOptimistic:function(l){var f=Xi();f.memoizedState=f.baseState=l;var m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return f.queue=m,f=Gf.bind(null,cn,!0,m),m.dispatch=f,[l,f]},useMemoCache:Sp,useCacheRefresh:function(){return Xi().memoizedState=K6.bind(null,cn)},useEffectEvent:function(l){var f=Xi(),m={impl:l};return f.memoizedState=m,function(){if((Hn&2)!==0)throw Error(i(440));return m.impl.apply(void 0,arguments)}}},V4={readContext:Vt,use:h0,useCallback:Os,useContext:Vt,useEffect:Op,useImperativeHandle:N1,useInsertionEffect:Mp,useLayoutEffect:D1,useMemo:z1,useReducer:Ep,useRef:D4,useState:function(){return Ep(Cs)},useDebugValue:k1,useDeferredValue:function(l,f){var m=Dr();return I1(m,nr.memoizedState,l,f)},useTransition:function(){var l=Ep(Cs)[0],f=Dr().memoizedState;return[typeof l=="boolean"?l:d0(l),f]},useSyncExternalStore:w4,useId:W6,useHostTransitionStatus:rr,useFormState:_4,useActionState:_4,useOptimistic:function(l,f){var m=Dr();return F6(m,nr,l,f)},useMemoCache:Sp,useCacheRefresh:Q6};V4.useEffectEvent=_1;var B4={readContext:Vt,use:h0,useCallback:Os,useContext:Vt,useEffect:Op,useImperativeHandle:N1,useInsertionEffect:Mp,useLayoutEffect:D1,useMemo:z1,useReducer:w1,useRef:D4,useState:function(){return w1(Cs)},useDebugValue:k1,useDeferredValue:function(l,f){var m=Dr();return nr===null?k4(m,l,f):I1(m,nr.memoizedState,l,f)},useTransition:function(){var l=w1(Cs)[0],f=Dr().memoizedState;return[typeof l=="boolean"?l:d0(l),f]},useSyncExternalStore:w4,useId:W6,useHostTransitionStatus:rr,useFormState:M1,useActionState:M1,useOptimistic:function(l,f){var m=Dr();return nr!==null?F6(m,nr,l,f):(m.baseState=l,[l,m.queue.dispatch])},useMemoCache:Sp,useCacheRefresh:Q6};B4.useEffectEvent=_1;function j4(l,f,m,b){f=l.memoizedState,m=m(b,f),m=m==null?f:S({},f,m),l.memoizedState=m,l.lanes===0&&(l.updateQueue.baseState=m)}var Ff={enqueueSetState:function(l,f,m){l=l._reactInternals;var b=ka(),A=xu(b);A.payload=f,m!=null&&(A.callback=m),f=Su(l,A,b),f!==null&&(so(f,l,b),Ts(f,l,b))},enqueueReplaceState:function(l,f,m){l=l._reactInternals;var b=ka(),A=xu(b);A.tag=1,A.payload=f,m!=null&&(A.callback=m),f=Su(l,A,b),f!==null&&(so(f,l,b),Ts(f,l,b))},enqueueForceUpdate:function(l,f){l=l._reactInternals;var m=ka(),b=xu(m);b.tag=2,f!=null&&(b.callback=f),f=Su(l,b,m),f!==null&&(so(f,l,m),Ts(f,l,m))}};function zl(l,f,m,b,A,O,j){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(b,O,j):f.prototype&&f.prototype.isPureReactComponent?!yc(m,b)||!yc(A,O):!0}function P4(l,f,m,b){l=f.state,typeof f.componentWillReceiveProps=="function"&&f.componentWillReceiveProps(m,b),typeof f.UNSAFE_componentWillReceiveProps=="function"&&f.UNSAFE_componentWillReceiveProps(m,b),f.state!==l&&Ff.enqueueReplaceState(f,f.state,null)}function Yf(l,f){var m=f;if("ref"in f){m={};for(var b in f)b!=="ref"&&(m[b]=f[b])}if(l=l.defaultProps){m===f&&(m=S({},m));for(var A in l)m[A]===void 0&&(m[A]=l[A])}return m}function U4(l){Sc(l)}function B1(l){console.error(l)}function $4(l){Sc(l)}function v0(l,f){try{var m=l.onUncaughtError;m(f.value,{componentStack:f.stack})}catch(b){setTimeout(function(){throw b})}}function j1(l,f,m){try{var b=l.onCaughtError;b(m.value,{componentStack:m.stack,errorBoundary:f.tag===1?f.stateNode:null})}catch(A){setTimeout(function(){throw A})}}function b0(l,f,m){return m=xu(m),m.tag=3,m.payload={element:null},m.callback=function(){v0(l,f)},m}function J6(l){return l=xu(l),l.tag=3,l}function H4(l,f,m,b){var A=m.type.getDerivedStateFromError;if(typeof A=="function"){var O=b.value;l.payload=function(){return A(O)},l.callback=function(){j1(f,m,b)}}var j=m.stateNode;j!==null&&typeof j.componentDidCatch=="function"&&(l.callback=function(){j1(f,m,b),typeof A!="function"&&(js===null?js=new Set([this]):js.add(this));var ne=b.stack;this.componentDidCatch(b.value,{componentStack:ne!==null?ne:""})})}function eE(l,f,m,b,A){if(m.flags|=32768,b!==null&&typeof b=="object"&&typeof b.then=="function"){if(f=m.alternate,f!==null&&Ro(f,m,A,!0),m=ua.current,m!==null){switch(m.tag){case 31:case 13:return no===null?K1():m.alternate===null&&Nr===0&&(Nr=3),m.flags&=-257,m.flags|=65536,m.lanes=A,b===o0?m.flags|=16384:(f=m.updateQueue,f===null?m.updateQueue=new Set([b]):f.add(b),ey(l,b,A)),!1;case 22:return m.flags|=65536,b===o0?m.flags|=16384:(f=m.updateQueue,f===null?(f={transitions:null,markerInstances:null,retryQueue:new Set([b])},m.updateQueue=f):(m=f.retryQueue,m===null?f.retryQueue=new Set([b]):m.add(b)),ey(l,b,A)),!1}throw Error(i(435,m.tag))}return ey(l,b,A),K1(),!1}if(kn)return f=ua.current,f!==null?((f.flags&65536)===0&&(f.flags|=256),f.flags|=65536,f.lanes=A,b!==xs&&(l=Error(i(422),{cause:b}),op(Co(l,m)))):(b!==xs&&(f=Error(i(423),{cause:b}),op(Co(f,m))),l=l.current.alternate,l.flags|=65536,A&=-A,l.lanes|=A,b=Co(b,m),A=b0(l.stateNode,b,A),u0(l,A),Nr!==4&&(Nr=2)),!1;var O=Error(i(520),{cause:b});if(O=Co(O,m),Kr===null?Kr=[O]:Kr.push(O),Nr!==4&&(Nr=2),f===null)return!0;b=Co(b,m),m=f;do{switch(m.tag){case 3:return m.flags|=65536,l=A&-A,m.lanes|=l,l=b0(m.stateNode,b,l),u0(m,l),!1;case 1:if(f=m.type,O=m.stateNode,(m.flags&128)===0&&(typeof f.getDerivedStateFromError=="function"||O!==null&&typeof O.componentDidCatch=="function"&&(js===null||!js.has(O))))return m.flags|=65536,A&=-A,m.lanes|=A,A=J6(A),H4(A,l,m,b),u0(m,A),!1}m=m.return}while(m!==null);return!1}var q4=Error(i(461)),li=!1;function Ii(l,f,m,b){f.child=l===null?b4(f,null,m,b):Bf(f,l.child,m,b)}function _s(l,f,m,b,A){m=m.render;var O=f.ref;if("ref"in b){var j={};for(var ne in b)ne!=="ref"&&(j[ne]=b[ne])}else j=b;return ws(f),b=Tu(l,f,m,j,O,A),ne=E4(),l!==null&&!li?(E1(l,f,A),Ds(l,f,A)):(kn&&ne&&s1(f),f.flags|=1,Ii(l,f,b,A),f.child)}function G4(l,f,m,b,A){if(l===null){var O=m.type;return typeof O=="function"&&!Ko(O)&&O.defaultProps===void 0&&m.compare===null?(f.tag=15,f.type=O,F4(l,f,O,b,A)):(l=ep(m.type,null,b,f,f.mode,A),l.ref=f.ref,l.return=f,f.child=l)}if(O=l.child,!Xf(l,A)){var j=O.memoizedProps;if(m=m.compare,m=m!==null?m:yc,m(j,b)&&l.ref===f.ref)return Ds(l,f,A)}return f.flags|=1,l=Ao(O,b),l.ref=f.ref,l.return=f,f.child=l}function F4(l,f,m,b,A){if(l!==null){var O=l.memoizedProps;if(yc(O,b)&&l.ref===f.ref)if(li=!1,f.pendingProps=b=O,Xf(l,A))(l.flags&131072)!==0&&(li=!0);else return f.lanes=l.lanes,Ds(l,f,A)}return Jo(l,f,m,b,A)}function Y4(l,f,m,b){var A=b.children,O=l!==null?l.memoizedState:null;if(l===null&&f.stateNode===null&&(f.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),b.mode==="hidden"){if((f.flags&128)!==0){if(O=O!==null?O.baseLanes|m:m,l!==null){for(b=f.child=l.child,A=0;b!==null;)A=A|b.lanes|b.childLanes,b=b.sibling;b=A&~O}else b=0,f.child=null;return Dp(l,f,O,m,b)}if((m&536870912)!==0)f.memoizedState={baseLanes:0,cachePool:null},l!==null&&to(f,O!==null?O.cachePool:null),O!==null?mp(f,O):x4(),vp(f);else return b=f.lanes=536870912,Dp(l,f,O!==null?O.baseLanes|m:m,m,b)}else O!==null?(to(f,O.cachePool),mp(f,O),As(),f.memoizedState=null):(l!==null&&to(f,null),x4(),As());return Ii(l,f,A,m),f.child}function _p(l,f){return l!==null&&l.tag===22||f.stateNode!==null||(f.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),f.sibling}function Dp(l,f,m,b,A){var O=vu();return O=O===null?null:{parent:Wr._currentValue,pool:O},f.memoizedState={baseLanes:m,cachePool:O},l!==null&&to(f,null),x4(),vp(f),l!==null&&Ro(l,f,b,!0),f.childLanes=A,null}function Qi(l,f){return f=Ou({mode:f.mode,children:f.children},l.mode),f.ref=l.ref,l.child=f,f.return=l,f}function X4(l,f,m){return Bf(f,l.child,null,m),l=Qi(f,f.pendingProps),l.flags|=2,ca(f),f.memoizedState=null,l}function ro(l,f,m){var b=f.pendingProps,A=(f.flags&128)!==0;if(f.flags&=-129,l===null){if(kn){if(b.mode==="hidden")return l=Qi(f,b),f.lanes=536870912,_p(null,l);if(yp(f),(l=xr)?(l=yn(l,Ja),l=l!==null&&l.data==="&"?l:null,l!==null&&(f.memoizedState={dehydrated:l,treeContext:Rl!==null?{id:Mo,overflow:Za}:null,retryLane:536870912,hydrationErrors:null},m=np(l),m.return=f,f.child=m,mi=f,xr=null)):l=null,l===null)throw Oa(f);return f.lanes=536870912,null}return Qi(f,b)}var O=l.memoizedState;if(O!==null){var j=O.dehydrated;if(yp(f),A)if(f.flags&256)f.flags&=-257,f=X4(l,f,m);else if(f.memoizedState!==null)f.child=l.child,f.flags|=128,f=null;else throw Error(i(558));else if(li||Ro(l,f,m,!1),A=(m&l.childLanes)!==0,li||A){if(b=dr,b!==null&&(j=is(b,m),j!==0&&j!==O.retryLane))throw O.retryLane=j,oa(l,j),so(b,l,j),q4;K1(),f=X4(l,f,m)}else l=O.treeContext,xr=Ji(j.nextSibling),mi=f,kn=!0,bs=null,Ja=!1,l!==null&&h4(f,l),f=Qi(f,b),f.flags|=4096;return f}return l=Ao(l.child,{mode:b.mode,children:b.children}),l.ref=f.ref,f.child=l,l.return=f,l}function Np(l,f){var m=f.ref;if(m===null)l!==null&&l.ref!==null&&(f.flags|=4194816);else{if(typeof m!="function"&&typeof m!="object")throw Error(i(284));(l===null||l.ref!==m)&&(f.flags|=4194816)}}function Jo(l,f,m,b,A){return ws(f),m=Tu(l,f,m,b,void 0,A),b=E4(),l!==null&&!li?(E1(l,f,A),Ds(l,f,A)):(kn&&b&&s1(f),f.flags|=1,Ii(l,f,m,A),f.child)}function W4(l,f,m,b,A,O){return ws(f),f.updateQueue=null,m=S1(f,b,m,A),x1(l),b=E4(),l!==null&&!li?(E1(l,f,O),Ds(l,f,O)):(kn&&b&&s1(f),f.flags|=1,Ii(l,f,m,O),f.child)}function Dc(l,f,m,b,A){if(ws(f),f.stateNode===null){var O=Nf,j=m.contextType;typeof j=="object"&&j!==null&&(O=Vt(j)),O=new m(b,O),f.memoizedState=O.state!==null&&O.state!==void 0?O.state:null,O.updater=Ff,f.stateNode=O,O._reactInternals=f,O=f.stateNode,O.props=b,O.state=f.memoizedState,O.refs={},g1(f),j=m.contextType,O.context=typeof j=="object"&&j!==null?Vt(j):Nf,O.state=f.memoizedState,j=m.getDerivedStateFromProps,typeof j=="function"&&(j4(f,m,j,b),O.state=f.memoizedState),typeof m.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&&Ff.enqueueReplaceState(O,O.state,null),Rc(f,b,O,A),pp(),O.state=f.memoizedState),typeof O.componentDidMount=="function"&&(f.flags|=4194308),b=!0}else if(l===null){O=f.stateNode;var ne=f.memoizedProps,ve=Yf(m,ne);O.props=ve;var ze=O.context,qe=m.contextType;j=Nf,typeof qe=="object"&&qe!==null&&(j=Vt(qe));var Ke=m.getDerivedStateFromProps;qe=typeof Ke=="function"||typeof O.getSnapshotBeforeUpdate=="function",ne=f.pendingProps!==ne,qe||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(ne||ze!==j)&&P4(f,O,b,j),bu=!1;var Ie=f.memoizedState;O.state=Ie,Rc(f,b,O,A),pp(),ze=f.memoizedState,ne||Ie!==ze||bu?(typeof Ke=="function"&&(j4(f,m,Ke,b),ze=f.memoizedState),(ve=bu||zl(f,m,ve,b,Ie,ze,j))?(qe||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"&&(f.flags|=4194308)):(typeof O.componentDidMount=="function"&&(f.flags|=4194308),f.memoizedProps=b,f.memoizedState=ze),O.props=b,O.state=ze,O.context=j,b=ve):(typeof O.componentDidMount=="function"&&(f.flags|=4194308),b=!1)}else{O=f.stateNode,hp(l,f),j=f.memoizedProps,qe=Yf(m,j),O.props=qe,Ke=f.pendingProps,Ie=O.context,ze=m.contextType,ve=Nf,typeof ze=="object"&&ze!==null&&(ve=Vt(ze)),ne=m.getDerivedStateFromProps,(ze=typeof ne=="function"||typeof O.getSnapshotBeforeUpdate=="function")||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(j!==Ke||Ie!==ve)&&P4(f,O,b,ve),bu=!1,Ie=f.memoizedState,O.state=Ie,Rc(f,b,O,A),pp();var Ue=f.memoizedState;j!==Ke||Ie!==Ue||bu||l!==null&&l.dependencies!==null&&sa(l.dependencies)?(typeof ne=="function"&&(j4(f,m,ne,b),Ue=f.memoizedState),(qe=bu||zl(f,m,qe,b,Ie,Ue,ve)||l!==null&&l.dependencies!==null&&sa(l.dependencies))?(ze||typeof O.UNSAFE_componentWillUpdate!="function"&&typeof O.componentWillUpdate!="function"||(typeof O.componentWillUpdate=="function"&&O.componentWillUpdate(b,Ue,ve),typeof O.UNSAFE_componentWillUpdate=="function"&&O.UNSAFE_componentWillUpdate(b,Ue,ve)),typeof O.componentDidUpdate=="function"&&(f.flags|=4),typeof O.getSnapshotBeforeUpdate=="function"&&(f.flags|=1024)):(typeof O.componentDidUpdate!="function"||j===l.memoizedProps&&Ie===l.memoizedState||(f.flags|=4),typeof O.getSnapshotBeforeUpdate!="function"||j===l.memoizedProps&&Ie===l.memoizedState||(f.flags|=1024),f.memoizedProps=b,f.memoizedState=Ue),O.props=b,O.state=Ue,O.context=ve,b=qe):(typeof O.componentDidUpdate!="function"||j===l.memoizedProps&&Ie===l.memoizedState||(f.flags|=4),typeof O.getSnapshotBeforeUpdate!="function"||j===l.memoizedProps&&Ie===l.memoizedState||(f.flags|=1024),b=!1)}return O=b,Np(l,f),b=(f.flags&128)!==0,O||b?(O=f.stateNode,m=b&&typeof m.getDerivedStateFromError!="function"?null:O.render(),f.flags|=1,l!==null&&b?(f.child=Bf(f,l.child,null,A),f.child=Bf(f,null,m,A)):Ii(l,f,m,A),f.memoizedState=O.state,l=f.child):l=Ds(l,f,A),l}function Q4(l,f,m,b){return _l(),f.flags|=256,Ii(l,f,m,b),f.child}var el={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function kp(l){return{baseLanes:l,cachePool:m1()}}function zp(l,f,m){return l=l!==null?l.childLanes&~m:0,f&&(l|=ao),l}function tl(l,f,m){var b=f.pendingProps,A=!1,O=(f.flags&128)!==0,j;if((j=O)||(j=l!==null&&l.memoizedState===null?!1:(Lr.current&2)!==0),j&&(A=!0,f.flags&=-129),j=(f.flags&32)!==0,f.flags&=-33,l===null){if(kn){if(A?Eu(f):As(),(l=xr)?(l=yn(l,Ja),l=l!==null&&l.data!=="&"?l:null,l!==null&&(f.memoizedState={dehydrated:l,treeContext:Rl!==null?{id:Mo,overflow:Za}:null,retryLane:536870912,hydrationErrors:null},m=np(l),m.return=f,f.child=m,mi=f,xr=null)):l=null,l===null)throw Oa(f);return ol(l)?f.lanes=32:f.lanes=536870912,null}var ne=b.children;return b=b.fallback,A?(As(),A=f.mode,ne=Ou({mode:"hidden",children:ne},A),b=kf(b,A,m,null),ne.return=f,b.return=f,ne.sibling=b,f.child=ne,b=f.child,b.memoizedState=kp(m),b.childLanes=zp(l,j,m),f.memoizedState=el,_p(null,b)):(Eu(f),P1(f,ne))}var ve=l.memoizedState;if(ve!==null&&(ne=ve.dehydrated,ne!==null)){if(O)f.flags&256?(Eu(f),f.flags&=-257,f=U1(l,f,m)):f.memoizedState!==null?(As(),f.child=l.child,f.flags|=128,f=null):(As(),ne=b.fallback,A=f.mode,b=Ou({mode:"visible",children:b.children},A),ne=kf(ne,A,m,null),ne.flags|=2,b.return=f,ne.return=f,b.sibling=ne,f.child=b,Bf(f,l.child,null,m),b=f.child,b.memoizedState=kp(m),b.childLanes=zp(l,j,m),f.memoizedState=el,f=_p(null,b));else if(Eu(f),ol(ne)){if(j=ne.nextSibling&&ne.nextSibling.dataset,j)var ze=j.dgst;j=ze,b=Error(i(419)),b.stack="",b.digest=j,op({value:b,source:null,stack:null}),f=U1(l,f,m)}else if(li||Ro(l,f,m,!1),j=(m&l.childLanes)!==0,li||j){if(j=dr,j!==null&&(b=is(j,m),b!==0&&b!==ve.retryLane))throw ve.retryLane=b,oa(l,b),so(j,l,b),q4;Dx(ne)||K1(),f=U1(l,f,m)}else Dx(ne)?(f.flags|=192,f.child=l.child,f=null):(l=ve.treeContext,xr=Ji(ne.nextSibling),mi=f,kn=!0,bs=null,Ja=!1,l!==null&&h4(f,l),f=P1(f,b.children),f.flags|=4096);return f}return A?(As(),ne=b.fallback,A=f.mode,ve=l.child,ze=ve.sibling,b=Ao(ve,{mode:"hidden",children:b.children}),b.subtreeFlags=ve.subtreeFlags&65011712,ze!==null?ne=Ao(ze,ne):(ne=kf(ne,A,m,null),ne.flags|=2),ne.return=f,b.return=f,b.sibling=ne,f.child=b,_p(null,b),b=f.child,ne=l.child.memoizedState,ne===null?ne=kp(m):(A=ne.cachePool,A!==null?(ve=Wr._currentValue,A=A.parent!==ve?{parent:ve,pool:ve}:A):A=m1(),ne={baseLanes:ne.baseLanes|m,cachePool:A}),b.memoizedState=ne,b.childLanes=zp(l,j,m),f.memoizedState=el,_p(l.child,b)):(Eu(f),m=l.child,l=m.sibling,m=Ao(m,{mode:"visible",children:b.children}),m.return=f,m.sibling=null,l!==null&&(j=f.deletions,j===null?(f.deletions=[l],f.flags|=16):j.push(l)),f.child=m,f.memoizedState=null,m)}function P1(l,f){return f=Ou({mode:"visible",children:f},l.mode),f.return=l,l.child=f}function Ou(l,f){return l=Qa(22,l,null,f),l.lanes=0,l}function U1(l,f,m){return Bf(f,l.child,null,m),l=P1(f,f.pendingProps.children),l.flags|=2,f.memoizedState=null,l}function x0(l,f,m){l.lanes|=f;var b=l.alternate;b!==null&&(b.lanes|=f),lp(l.return,f,m)}function Nc(l,f,m,b,A,O){var j=l.memoizedState;j===null?l.memoizedState={isBackwards:f,rendering:null,renderingStartTime:0,last:b,tail:m,tailMode:A,treeForkCount:O}:(j.isBackwards=f,j.rendering=null,j.renderingStartTime=0,j.last=b,j.tail=m,j.tailMode=A,j.treeForkCount=O)}function K4(l,f,m){var b=f.pendingProps,A=b.revealOrder,O=b.tail;b=b.children;var j=Lr.current,ne=(j&2)!==0;if(ne?(j=j&1|2,f.flags|=128):j&=1,Y(Lr,j),Ii(l,f,b,m),b=kn?n0:0,!ne&&l!==null&&(l.flags&128)!==0)e:for(l=f.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&x0(l,m,f);else if(l.tag===19)x0(l,m,f);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===f)break e;for(;l.sibling===null;){if(l.return===null||l.return===f)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(A){case"forwards":for(m=f.child,A=null;m!==null;)l=m.alternate,l!==null&&Pf(l)===null&&(A=m),m=m.sibling;m=A,m===null?(A=f.child,f.child=null):(A=m.sibling,m.sibling=null),Nc(f,!1,A,m,O,b);break;case"backwards":case"unstable_legacy-backwards":for(m=null,A=f.child,f.child=null;A!==null;){if(l=A.alternate,l!==null&&Pf(l)===null){f.child=A;break}l=A.sibling,A.sibling=m,m=A,A=l}Nc(f,!0,m,null,O,b);break;case"together":Nc(f,!1,null,null,void 0,b);break;default:f.memoizedState=null}return f.child}function Ds(l,f,m){if(l!==null&&(f.dependencies=l.dependencies),il|=f.lanes,(m&f.childLanes)===0)if(l!==null){if(Ro(l,f,m,!1),(m&f.childLanes)===0)return null}else return null;if(l!==null&&f.child!==l.child)throw Error(i(153));if(f.child!==null){for(l=f.child,m=Ao(l,l.pendingProps),f.child=m,m.return=f;l.sibling!==null;)l=l.sibling,m=m.sibling=Ao(l,l.pendingProps),m.return=f;m.sibling=null}return f.child}function Xf(l,f){return(l.lanes&f)!==0?!0:(l=l.dependencies,!!(l!==null&&sa(l)))}function tE(l,f,m){switch(f.tag){case 3:He(f,f.stateNode.containerInfo),Es(f,Wr,l.memoizedState.cache),_l();break;case 27:case 5:Qe(f);break;case 4:He(f,f.stateNode.containerInfo);break;case 10:Es(f,f.type,f.memoizedProps.value);break;case 31:if(f.memoizedState!==null)return f.flags|=128,yp(f),null;break;case 13:var b=f.memoizedState;if(b!==null)return b.dehydrated!==null?(Eu(f),f.flags|=128,null):(m&f.child.childLanes)!==0?tl(l,f,m):(Eu(f),l=Ds(l,f,m),l!==null?l.sibling:null);Eu(f);break;case 19:var A=(l.flags&128)!==0;if(b=(m&f.childLanes)!==0,b||(Ro(l,f,m,!1),b=(m&f.childLanes)!==0),A){if(b)return K4(l,f,m);f.flags|=128}if(A=f.memoizedState,A!==null&&(A.rendering=null,A.tail=null,A.lastEffect=null),Y(Lr,Lr.current),b)break;return null;case 22:return f.lanes=0,Y4(l,f,m,f.pendingProps);case 24:Es(f,Wr,l.memoizedState.cache)}return Ds(l,f,m)}function Ip(l,f,m){if(l!==null)if(l.memoizedProps!==f.pendingProps)li=!0;else{if(!Xf(l,m)&&(f.flags&128)===0)return li=!1,tE(l,f,m);li=(l.flags&131072)!==0}else li=!1,kn&&(f.flags&1048576)!==0&&ip(f,n0,f.index);switch(f.lanes=0,f.tag){case 16:e:{var b=f.pendingProps;if(l=Cc(f.elementType),f.type=l,typeof l=="function")Ko(l)?(b=Yf(l,b),f.tag=1,f=Dc(null,f,l,b,m)):(f.tag=0,f=Jo(null,f,l,b,m));else{if(l!=null){var A=l.$$typeof;if(A===V){f.tag=11,f=_s(null,f,l,b,m);break e}else if(A===X){f.tag=14,f=G4(null,f,l,b,m);break e}}throw f=Q(l)||l,Error(i(306,f,""))}}return f;case 0:return Jo(l,f,f.type,f.pendingProps,m);case 1:return b=f.type,A=Yf(b,f.pendingProps),Dc(l,f,b,A,m);case 3:e:{if(He(f,f.stateNode.containerInfo),l===null)throw Error(i(387));b=f.pendingProps;var O=f.memoizedState;A=O.element,hp(l,f),Rc(f,b,null,m);var j=f.memoizedState;if(b=j.cache,Es(f,Wr,b),b!==O.cache&&f1(f,[Wr],m,!0),pp(),b=j.element,O.isDehydrated)if(O={element:b,isDehydrated:!1,cache:j.cache},f.updateQueue.baseState=O,f.memoizedState=O,f.flags&256){f=Q4(l,f,b,m);break e}else if(b!==A){A=Co(Error(i(424)),f),op(A),f=Q4(l,f,b,m);break e}else{switch(l=f.stateNode.containerInfo,l.nodeType){case 9:l=l.body;break;default:l=l.nodeName==="HTML"?l.ownerDocument.body:l}for(xr=Ji(l.firstChild),mi=f,kn=!0,bs=null,Ja=!0,m=b4(f,null,b,m),f.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling}else{if(_l(),b===A){f=Ds(l,f,m);break e}Ii(l,f,b,m)}f=f.child}return f;case 26:return Np(l,f),l===null?(m=zu(f.type,null,f.pendingProps,null))?f.memoizedState=m:kn||(m=f.type,l=f.pendingProps,b=rm(_e.current).createElement(m),b[pi]=f,b[Or]=l,Zi(b,m,l),Si(b),f.stateNode=b):f.memoizedState=zu(f.type,l.memoizedProps,f.pendingProps,l.memoizedState),null;case 27:return Qe(f),l===null&&kn&&(b=f.stateNode=Bl(f.type,f.pendingProps,_e.current),mi=f,Ja=!0,A=xr,Ps(f.type)?(z0=A,xr=Ji(b.firstChild)):xr=A),Ii(l,f,f.pendingProps.children,m),Np(l,f),l===null&&(f.flags|=4194304),f.child;case 5:return l===null&&kn&&((A=b=xr)&&(b=_x(b,f.type,f.pendingProps,Ja),b!==null?(f.stateNode=b,mi=f,xr=Ji(b.firstChild),Ja=!1,A=!0):A=!1),A||Oa(f)),Qe(f),A=f.type,O=f.pendingProps,j=l!==null?l.memoizedProps:null,b=O.children,dy(A,O)?b=null:j!==null&&dy(A,j)&&(f.flags|=32),f.memoizedState!==null&&(A=Tu(l,f,Y8,null,null,m),Jr._currentValue=A),Np(l,f),Ii(l,f,b,m),f.child;case 6:return l===null&&kn&&((l=m=xr)&&(m=Z8(m,f.pendingProps,Ja),m!==null?(f.stateNode=m,mi=f,xr=null,l=!0):l=!1),l||Oa(f)),null;case 13:return tl(l,f,m);case 4:return He(f,f.stateNode.containerInfo),b=f.pendingProps,l===null?f.child=Bf(f,null,b,m):Ii(l,f,b,m),f.child;case 11:return _s(l,f,f.type,f.pendingProps,m);case 7:return Ii(l,f,f.pendingProps,m),f.child;case 8:return Ii(l,f,f.pendingProps.children,m),f.child;case 12:return Ii(l,f,f.pendingProps.children,m),f.child;case 10:return b=f.pendingProps,Es(f,f.type,b.value),Ii(l,f,b.children,m),f.child;case 9:return A=f.type._context,b=f.pendingProps.children,ws(f),A=Vt(A),b=b(A),f.flags|=1,Ii(l,f,b,m),f.child;case 14:return G4(l,f,f.type,f.pendingProps,m);case 15:return F4(l,f,f.type,f.pendingProps,m);case 19:return K4(l,f,m);case 31:return ro(l,f,m);case 22:return Y4(l,f,m,f.pendingProps);case 24:return ws(f),b=Vt(Wr),l===null?(A=vu(),A===null&&(A=dr,O=h1(),A.pooledCache=O,O.refCount++,O!==null&&(A.pooledCacheLanes|=m),A=O),f.memoizedState={parent:b,cache:A},g1(f),Es(f,Wr,A)):((l.lanes&m)!==0&&(hp(l,f),Rc(f,null,null,m),pp()),A=l.memoizedState,O=f.memoizedState,A.parent!==b?(A={parent:b,cache:b},f.memoizedState=A,f.lanes===0&&(f.memoizedState=f.updateQueue.baseState=A),Es(f,Wr,b)):(b=O.cache,Es(f,Wr,b),b!==A.cache&&f1(f,[Wr],m,!0))),Ii(l,f,f.pendingProps.children,m),f.child;case 29:throw f.pendingProps}throw Error(i(156,f.tag))}function Ns(l){l.flags|=4}function $1(l,f,m,b,A){if((f=(l.mode&32)!==0)&&(f=!1),f){if(l.flags|=16777216,(A&335544128)===A)if(l.stateNode.complete)l.flags|=8192;else if(A0())l.flags|=8192;else throw Oc=o0,cp}else l.flags&=-16777217}function nE(l,f){if(f.type!=="stylesheet"||(f.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!xy(f))if(A0())l.flags|=8192;else throw Oc=o0,cp}function Lp(l,f){f!==null&&(l.flags|=4),l.flags&16384&&(f=l.tag!==22?ct():536870912,l.lanes|=f,Ic|=f)}function Ki(l,f){if(!kn)switch(l.tailMode){case"hidden":f=l.tail;for(var m=null;f!==null;)f.alternate!==null&&(m=f),f=f.sibling;m===null?l.tail=null:m.sibling=null;break;case"collapsed":m=l.tail;for(var b=null;m!==null;)m.alternate!==null&&(b=m),m=m.sibling;b===null?f||l.tail===null?l.tail=null:l.tail.sibling=null:b.sibling=null}}function Sr(l){var f=l.alternate!==null&&l.alternate.child===l.child,m=0,b=0;if(f)for(var A=l.child;A!==null;)m|=A.lanes|A.childLanes,b|=A.subtreeFlags&65011712,b|=A.flags&65011712,A.return=l,A=A.sibling;else for(A=l.child;A!==null;)m|=A.lanes|A.childLanes,b|=A.subtreeFlags,b|=A.flags,A.return=l,A=A.sibling;return l.subtreeFlags|=b,l.childLanes=m,f}function Br(l,f,m){var b=f.pendingProps;switch(r0(f),f.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Sr(f),null;case 1:return Sr(f),null;case 3:return m=f.stateNode,b=null,l!==null&&(b=l.memoizedState.cache),f.memoizedState.cache!==b&&(f.flags|=2048),la(Wr),Xe(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(l===null||l.child===null)&&(Ss(f)?Ns(f):l===null||l.memoizedState.isDehydrated&&(f.flags&256)===0||(f.flags|=1024,u1())),Sr(f),null;case 26:var A=f.type,O=f.memoizedState;return l===null?(Ns(f),O!==null?(Sr(f),nE(f,O)):(Sr(f),$1(f,A,null,b,m))):O?O!==l.memoizedState?(Ns(f),Sr(f),nE(f,O)):(Sr(f),f.flags&=-16777217):(l=l.memoizedProps,l!==b&&Ns(f),Sr(f),$1(f,A,l,b,m)),null;case 27:if(et(f),m=_e.current,A=f.type,l!==null&&f.stateNode!=null)l.memoizedProps!==b&&Ns(f);else{if(!b){if(f.stateNode===null)throw Error(i(166));return Sr(f),null}l=Me.current,Ss(f)?i0(f):(l=Bl(A,b,m),f.stateNode=l,Ns(f))}return Sr(f),null;case 5:if(et(f),A=f.type,l!==null&&f.stateNode!=null)l.memoizedProps!==b&&Ns(f);else{if(!b){if(f.stateNode===null)throw Error(i(166));return Sr(f),null}if(O=Me.current,Ss(f))i0(f);else{var j=rm(_e.current);switch(O){case 1:O=j.createElementNS("http://www.w3.org/2000/svg",A);break;case 2:O=j.createElementNS("http://www.w3.org/1998/Math/MathML",A);break;default:switch(A){case"svg":O=j.createElementNS("http://www.w3.org/2000/svg",A);break;case"math":O=j.createElementNS("http://www.w3.org/1998/Math/MathML",A);break;case"script":O=j.createElement("div"),O.innerHTML="<script><\/script>",O=O.removeChild(O.firstChild);break;case"select":O=typeof b.is=="string"?j.createElement("select",{is:b.is}):j.createElement("select"),b.multiple?O.multiple=!0:b.size&&(O.size=b.size);break;default:O=typeof b.is=="string"?j.createElement(A,{is:b.is}):j.createElement(A)}}O[pi]=f,O[Or]=b;e:for(j=f.child;j!==null;){if(j.tag===5||j.tag===6)O.appendChild(j.stateNode);else if(j.tag!==4&&j.tag!==27&&j.child!==null){j.child.return=j,j=j.child;continue}if(j===f)break e;for(;j.sibling===null;){if(j.return===null||j.return===f)break e;j=j.return}j.sibling.return=j.return,j=j.sibling}f.stateNode=O;e:switch(Zi(O,A,b),A){case"button":case"input":case"select":case"textarea":b=!!b.autoFocus;break e;case"img":b=!0;break e;default:b=!1}b&&Ns(f)}}return Sr(f),$1(f,f.type,l===null?null:l.memoizedProps,f.pendingProps,m),null;case 6:if(l&&f.stateNode!=null)l.memoizedProps!==b&&Ns(f);else{if(typeof b!="string"&&f.stateNode===null)throw Error(i(166));if(l=_e.current,Ss(f)){if(l=f.stateNode,m=f.memoizedProps,b=null,A=mi,A!==null)switch(A.tag){case 27:case 5:b=A.memoizedProps}l[pi]=f,l=!!(l.nodeValue===m||b!==null&&b.suppressHydrationWarning===!0||Ax(l.nodeValue,m)),l||Oa(f,!0)}else l=rm(l).createTextNode(b),l[pi]=f,f.stateNode=l}return Sr(f),null;case 31:if(m=f.memoizedState,l===null||l.memoizedState!==null){if(b=Ss(f),m!==null){if(l===null){if(!b)throw Error(i(318));if(l=f.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(i(557));l[pi]=f}else _l(),(f.flags&128)===0&&(f.memoizedState=null),f.flags|=4;Sr(f),l=!1}else m=u1(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=m),l=!0;if(!l)return f.flags&256?(ca(f),f):(ca(f),null);if((f.flags&128)!==0)throw Error(i(558))}return Sr(f),null;case 13:if(b=f.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(A=Ss(f),b!==null&&b.dehydrated!==null){if(l===null){if(!A)throw Error(i(318));if(A=f.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(i(317));A[pi]=f}else _l(),(f.flags&128)===0&&(f.memoizedState=null),f.flags|=4;Sr(f),A=!1}else A=u1(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=A),A=!0;if(!A)return f.flags&256?(ca(f),f):(ca(f),null)}return ca(f),(f.flags&128)!==0?(f.lanes=m,f):(m=b!==null,l=l!==null&&l.memoizedState!==null,m&&(b=f.child,A=null,b.alternate!==null&&b.alternate.memoizedState!==null&&b.alternate.memoizedState.cachePool!==null&&(A=b.alternate.memoizedState.cachePool.pool),O=null,b.memoizedState!==null&&b.memoizedState.cachePool!==null&&(O=b.memoizedState.cachePool.pool),O!==A&&(b.flags|=2048)),m!==l&&m&&(f.child.flags|=8192),Lp(f,f.updateQueue),Sr(f),null);case 4:return Xe(),l===null&&Ex(f.stateNode.containerInfo),Sr(f),null;case 10:return la(f.type),Sr(f),null;case 19:if(ee(Lr),b=f.memoizedState,b===null)return Sr(f),null;if(A=(f.flags&128)!==0,O=b.rendering,O===null)if(A)Ki(b,!1);else{if(Nr!==0||l!==null&&(l.flags&128)!==0)for(l=f.child;l!==null;){if(O=Pf(l),O!==null){for(f.flags|=128,Ki(b,!1),l=O.updateQueue,f.updateQueue=l,Lp(f,l),f.subtreeFlags=0,l=m,m=f.child;m!==null;)G6(m,l),m=m.sibling;return Y(Lr,Lr.current&1|2),kn&&vs(f,b.treeForkCount),f.child}l=l.sibling}b.tail!==null&&Bt()>Gp&&(f.flags|=128,A=!0,Ki(b,!1),f.lanes=4194304)}else{if(!A)if(l=Pf(O),l!==null){if(f.flags|=128,A=!0,l=l.updateQueue,f.updateQueue=l,Lp(f,l),Ki(b,!0),b.tail===null&&b.tailMode==="hidden"&&!O.alternate&&!kn)return Sr(f),null}else 2*Bt()-b.renderingStartTime>Gp&&m!==536870912&&(f.flags|=128,A=!0,Ki(b,!1),f.lanes=4194304);b.isBackwards?(O.sibling=f.child,f.child=O):(l=b.last,l!==null?l.sibling=O:f.child=O,b.last=O)}return b.tail!==null?(l=b.tail,b.rendering=l,b.tail=l.sibling,b.renderingStartTime=Bt(),l.sibling=null,m=Lr.current,Y(Lr,A?m&1|2:m&1),kn&&vs(f,b.treeForkCount),l):(Sr(f),null);case 22:case 23:return ca(f),gp(),b=f.memoizedState!==null,l!==null?l.memoizedState!==null!==b&&(f.flags|=8192):b&&(f.flags|=8192),b?(m&536870912)!==0&&(f.flags&128)===0&&(Sr(f),f.subtreeFlags&6&&(f.flags|=8192)):Sr(f),m=f.updateQueue,m!==null&&Lp(f,m.retryQueue),m=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),b=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(b=f.memoizedState.cachePool.pool),b!==m&&(f.flags|=2048),l!==null&&ee(eo),null;case 24:return m=null,l!==null&&(m=l.memoizedState.cache),f.memoizedState.cache!==m&&(f.flags|=2048),la(Wr),Sr(f),null;case 25:return null;case 30:return null}throw Error(i(156,f.tag))}function rE(l,f){switch(r0(f),f.tag){case 1:return l=f.flags,l&65536?(f.flags=l&-65537|128,f):null;case 3:return la(Wr),Xe(),l=f.flags,(l&65536)!==0&&(l&128)===0?(f.flags=l&-65537|128,f):null;case 26:case 27:case 5:return et(f),null;case 31:if(f.memoizedState!==null){if(ca(f),f.alternate===null)throw Error(i(340));_l()}return l=f.flags,l&65536?(f.flags=l&-65537|128,f):null;case 13:if(ca(f),l=f.memoizedState,l!==null&&l.dehydrated!==null){if(f.alternate===null)throw Error(i(340));_l()}return l=f.flags,l&65536?(f.flags=l&-65537|128,f):null;case 19:return ee(Lr),null;case 4:return Xe(),null;case 10:return la(f.type),null;case 22:case 23:return ca(f),gp(),l!==null&&ee(eo),l=f.flags,l&65536?(f.flags=l&-65537|128,f):null;case 24:return la(Wr),null;case 25:return null;default:return null}}function Z4(l,f){switch(r0(f),f.tag){case 3:la(Wr),Xe();break;case 26:case 27:case 5:et(f);break;case 4:Xe();break;case 31:f.memoizedState!==null&&ca(f);break;case 13:ca(f);break;case 19:ee(Lr);break;case 10:la(f.type);break;case 22:case 23:ca(f),gp(),l!==null&&ee(eo);break;case 24:la(Wr)}}function Vp(l,f){try{var m=f.updateQueue,b=m!==null?m.lastEffect:null;if(b!==null){var A=b.next;m=A;do{if((m.tag&l)===l){b=void 0;var O=m.create,j=m.inst;b=O(),j.destroy=b}m=m.next}while(m!==A)}}catch(ne){ir(f,f.return,ne)}}function Ra(l,f,m){try{var b=f.updateQueue,A=b!==null?b.lastEffect:null;if(A!==null){var O=A.next;b=O;do{if((b.tag&l)===l){var j=b.inst,ne=j.destroy;if(ne!==void 0){j.destroy=void 0,A=f;var ve=m,ze=ne;try{ze()}catch(qe){ir(A,ve,qe)}}}b=b.next}while(b!==O)}}catch(qe){ir(f,f.return,qe)}}function Wf(l){var f=l.updateQueue;if(f!==null){var m=l.stateNode;try{v1(f,m)}catch(b){ir(l,l.return,b)}}}function H1(l,f,m){m.props=Yf(l.type,l.memoizedProps),m.state=l.memoizedState;try{m.componentWillUnmount()}catch(b){ir(l,f,b)}}function Il(l,f){try{var m=l.ref;if(m!==null){switch(l.tag){case 26:case 27:case 5:var b=l.stateNode;break;case 30:b=l.stateNode;break;default:b=l.stateNode}typeof m=="function"?l.refCleanup=m(b):m.current=b}}catch(A){ir(l,f,A)}}function _a(l,f){var m=l.ref,b=l.refCleanup;if(m!==null)if(typeof b=="function")try{b()}catch(A){ir(l,f,A)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof m=="function")try{m(null)}catch(A){ir(l,f,A)}else m.current=null}function J4(l){var f=l.type,m=l.memoizedProps,b=l.stateNode;try{e:switch(f){case"button":case"input":case"select":case"textarea":m.autoFocus&&b.focus();break e;case"img":m.src?b.src=m.src:m.srcSet&&(b.srcset=m.srcSet)}}catch(A){ir(l,l.return,A)}}function q1(l,f,m){try{var b=l.stateNode;K8(b,l.type,m,f),b[Or]=f}catch(A){ir(l,l.return,A)}}function ex(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27&&Ps(l.type)||l.tag===4}function G1(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||ex(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&&Ps(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 S0(l,f,m){var b=l.tag;if(b===5||b===6)l=l.stateNode,f?(m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m).insertBefore(l,f):(f=m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m,f.appendChild(l),m=m._reactRootContainer,m!=null||f.onclick!==null||(f.onclick=Gi));else if(b!==4&&(b===27&&Ps(l.type)&&(m=l.stateNode,f=null),l=l.child,l!==null))for(S0(l,f,m),l=l.sibling;l!==null;)S0(l,f,m),l=l.sibling}function Qf(l,f,m){var b=l.tag;if(b===5||b===6)l=l.stateNode,f?m.insertBefore(l,f):m.appendChild(l);else if(b!==4&&(b===27&&Ps(l.type)&&(m=l.stateNode),l=l.child,l!==null))for(Qf(l,f,m),l=l.sibling;l!==null;)Qf(l,f,m),l=l.sibling}function F1(l){var f=l.stateNode,m=l.memoizedProps;try{for(var b=l.type,A=f.attributes;A.length;)f.removeAttributeNode(A[0]);Zi(f,b,m),f[pi]=l,f[Or]=m}catch(O){ir(l,l.return,O)}}var ks=!1,gi=!1,tx=!1,nx=typeof WeakSet=="function"?WeakSet:Set,Ei=null;function X8(l,f){if(l=l.containerInfo,nm=Iu,l=_f(l),gu(l)){if("selectionStart"in l)var m={start:l.selectionStart,end:l.selectionEnd};else e:{m=(m=l.ownerDocument)&&m.defaultView||window;var b=m.getSelection&&m.getSelection();if(b&&b.rangeCount!==0){m=b.anchorNode;var A=b.anchorOffset,O=b.focusNode;b=b.focusOffset;try{m.nodeType,O.nodeType}catch{m=null;break e}var j=0,ne=-1,ve=-1,ze=0,qe=0,Ke=l,Ie=null;t:for(;;){for(var Ue;Ke!==m||A!==0&&Ke.nodeType!==3||(ne=j+A),Ke!==O||b!==0&&Ke.nodeType!==3||(ve=j+b),Ke.nodeType===3&&(j+=Ke.nodeValue.length),(Ue=Ke.firstChild)!==null;)Ie=Ke,Ke=Ue;for(;;){if(Ke===l)break t;if(Ie===m&&++ze===A&&(ne=j),Ie===O&&++qe===b&&(ve=j),(Ue=Ke.nextSibling)!==null)break;Ke=Ie,Ie=Ke.parentNode}Ke=Ue}m=ne===-1||ve===-1?null:{start:ne,end:ve}}else m=null}m=m||{start:0,end:0}}else m=null;for(fy={focusedElem:l,selectionRange:m},Iu=!1,Ei=f;Ei!==null;)if(f=Ei,l=f.child,(f.subtreeFlags&1028)!==0&&l!==null)l.return=f,Ei=l;else for(;Ei!==null;){switch(f=Ei,O=f.alternate,l=f.flags,f.tag){case 0:if((l&4)!==0&&(l=f.updateQueue,l=l!==null?l.events:null,l!==null))for(m=0;m<l.length;m++)A=l[m],A.ref.impl=A.nextImpl;break;case 11:case 15:break;case 1:if((l&1024)!==0&&O!==null){l=void 0,m=f,A=O.memoizedProps,O=O.memoizedState,b=m.stateNode;try{var Rt=Yf(m.type,A);l=b.getSnapshotBeforeUpdate(Rt,O),b.__reactInternalSnapshotBeforeUpdate=l}catch(Ht){ir(m,m.return,Ht)}}break;case 3:if((l&1024)!==0){if(l=f.stateNode.containerInfo,m=l.nodeType,m===9)Zr(l);else if(m===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":Zr(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(i(163))}if(l=f.sibling,l!==null){l.return=f.return,Ei=l;break}Ei=f.return}}function Kf(l,f,m){var b=m.flags;switch(m.tag){case 0:case 11:case 15:Is(l,m),b&4&&Vp(5,m);break;case 1:if(Is(l,m),b&4)if(l=m.stateNode,f===null)try{l.componentDidMount()}catch(j){ir(m,m.return,j)}else{var A=Yf(m.type,f.memoizedProps);f=f.memoizedState;try{l.componentDidUpdate(A,f,l.__reactInternalSnapshotBeforeUpdate)}catch(j){ir(m,m.return,j)}}b&64&&Wf(m),b&512&&Il(m,m.return);break;case 3:if(Is(l,m),b&64&&(l=m.updateQueue,l!==null)){if(f=null,m.child!==null)switch(m.child.tag){case 27:case 5:f=m.child.stateNode;break;case 1:f=m.child.stateNode}try{v1(l,f)}catch(j){ir(m,m.return,j)}}break;case 27:f===null&&b&4&&F1(m);case 26:case 5:Is(l,m),f===null&&b&4&&J4(m),b&512&&Il(m,m.return);break;case 12:Is(l,m);break;case 31:Is(l,m),b&4&&ix(l,m);break;case 13:Is(l,m),b&4&&iE(l,m),b&64&&(l=m.memoizedState,l!==null&&(l=l.dehydrated,l!==null&&(m=Q8.bind(null,m),k0(l,m))));break;case 22:if(b=m.memoizedState!==null||ks,!b){f=f!==null&&f.memoizedState!==null||gi,A=ks;var O=gi;ks=b,(gi=f)&&!O?Mu(l,m,(m.subtreeFlags&8772)!==0):Is(l,m),ks=A,gi=O}break;case 30:break;default:Is(l,m)}}function Bp(l){var f=l.alternate;f!==null&&(l.alternate=null,Bp(f)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(f=l.stateNode,f!==null&&dc(f)),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 Mr=null,fa=!1;function zs(l,f,m){for(m=m.child;m!==null;)rx(l,f,m),m=m.sibling}function rx(l,f,m){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(kt,m)}catch{}switch(m.tag){case 26:gi||_a(m,f),zs(l,f,m),m.memoizedState?m.memoizedState.count--:m.stateNode&&(m=m.stateNode,m.parentNode.removeChild(m));break;case 27:gi||_a(m,f);var b=Mr,A=fa;Ps(m.type)&&(Mr=m.stateNode,fa=!1),zs(l,f,m),Nu(m.stateNode),Mr=b,fa=A;break;case 5:gi||_a(m,f);case 6:if(b=Mr,A=fa,Mr=null,zs(l,f,m),Mr=b,fa=A,Mr!==null)if(fa)try{(Mr.nodeType===9?Mr.body:Mr.nodeName==="HTML"?Mr.ownerDocument.body:Mr).removeChild(m.stateNode)}catch(O){ir(m,f,O)}else try{Mr.removeChild(m.stateNode)}catch(O){ir(m,f,O)}break;case 18:Mr!==null&&(fa?(l=Mr,im(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,m.stateNode),B0(l)):im(Mr,m.stateNode));break;case 4:b=Mr,A=fa,Mr=m.stateNode.containerInfo,fa=!0,zs(l,f,m),Mr=b,fa=A;break;case 0:case 11:case 14:case 15:Ra(2,m,f),gi||Ra(4,m,f),zs(l,f,m);break;case 1:gi||(_a(m,f),b=m.stateNode,typeof b.componentWillUnmount=="function"&&H1(m,f,b)),zs(l,f,m);break;case 21:zs(l,f,m);break;case 22:gi=(b=gi)||m.memoizedState!==null,zs(l,f,m),gi=b;break;default:zs(l,f,m)}}function ix(l,f){if(f.memoizedState===null&&(l=f.alternate,l!==null&&(l=l.memoizedState,l!==null))){l=l.dehydrated;try{B0(l)}catch(m){ir(f,f.return,m)}}}function iE(l,f){if(f.memoizedState===null&&(l=f.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{B0(l)}catch(m){ir(f,f.return,m)}}function aE(l){switch(l.tag){case 31:case 13:case 19:var f=l.stateNode;return f===null&&(f=l.stateNode=new nx),f;case 22:return l=l.stateNode,f=l._retryCache,f===null&&(f=l._retryCache=new nx),f;default:throw Error(i(435,l.tag))}}function kc(l,f){var m=aE(l);f.forEach(function(b){if(!m.has(b)){m.add(b);var A=_o.bind(null,l,b);b.then(A,A)}})}function Da(l,f){var m=f.deletions;if(m!==null)for(var b=0;b<m.length;b++){var A=m[b],O=l,j=f,ne=j;e:for(;ne!==null;){switch(ne.tag){case 27:if(Ps(ne.type)){Mr=ne.stateNode,fa=!1;break e}break;case 5:Mr=ne.stateNode,fa=!1;break e;case 3:case 4:Mr=ne.stateNode.containerInfo,fa=!0;break e}ne=ne.return}if(Mr===null)throw Error(i(160));rx(O,j,A),Mr=null,fa=!1,O=A.alternate,O!==null&&(O.return=null),A.return=null}if(f.subtreeFlags&13886)for(f=f.child;f!==null;)Yn(f,l),f=f.sibling}var nl=null;function Yn(l,f){var m=l.alternate,b=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:Da(f,l),da(l),b&4&&(Ra(3,l,l.return),Vp(3,l),Ra(5,l,l.return));break;case 1:Da(f,l),da(l),b&512&&(gi||m===null||_a(m,m.return)),b&64&&ks&&(l=l.updateQueue,l!==null&&(b=l.callbacks,b!==null&&(m=l.shared.hiddenCallbacks,l.shared.hiddenCallbacks=m===null?b:m.concat(b))));break;case 26:var A=nl;if(Da(f,l),da(l),b&512&&(gi||m===null||_a(m,m.return)),b&4){var O=m!==null?m.memoizedState:null;if(b=l.memoizedState,m===null)if(b===null)if(l.stateNode===null){e:{b=l.type,m=l.memoizedProps,A=A.ownerDocument||A;t:switch(b){case"title":O=A.getElementsByTagName("title")[0],(!O||O[Fd]||O[pi]||O.namespaceURI==="http://www.w3.org/2000/svg"||O.hasAttribute("itemprop"))&&(O=A.createElement(b),A.head.insertBefore(O,A.querySelector("head > title"))),Zi(O,b,m),O[pi]=l,Si(O),b=O;break e;case"link":var j=by("link","href",A).get(b+(m.href||""));if(j){for(var ne=0;ne<j.length;ne++)if(O=j[ne],O.getAttribute("href")===(m.href==null||m.href===""?null:m.href)&&O.getAttribute("rel")===(m.rel==null?null:m.rel)&&O.getAttribute("title")===(m.title==null?null:m.title)&&O.getAttribute("crossorigin")===(m.crossOrigin==null?null:m.crossOrigin)){j.splice(ne,1);break t}}O=A.createElement(b),Zi(O,b,m),A.head.appendChild(O);break;case"meta":if(j=by("meta","content",A).get(b+(m.content||""))){for(ne=0;ne<j.length;ne++)if(O=j[ne],O.getAttribute("content")===(m.content==null?null:""+m.content)&&O.getAttribute("name")===(m.name==null?null:m.name)&&O.getAttribute("property")===(m.property==null?null:m.property)&&O.getAttribute("http-equiv")===(m.httpEquiv==null?null:m.httpEquiv)&&O.getAttribute("charset")===(m.charSet==null?null:m.charSet)){j.splice(ne,1);break t}}O=A.createElement(b),Zi(O,b,m),A.head.appendChild(O);break;default:throw Error(i(468,b))}O[pi]=l,Si(O),b=O}l.stateNode=b}else Lx(A,l.type,l.stateNode);else l.stateNode=Ix(A,b,l.memoizedProps);else O!==b?(O===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):O.count--,b===null?Lx(A,l.type,l.stateNode):Ix(A,b,l.memoizedProps)):b===null&&l.stateNode!==null&&q1(l,l.memoizedProps,m.memoizedProps)}break;case 27:Da(f,l),da(l),b&512&&(gi||m===null||_a(m,m.return)),m!==null&&b&4&&q1(l,l.memoizedProps,m.memoizedProps);break;case 5:if(Da(f,l),da(l),b&512&&(gi||m===null||_a(m,m.return)),l.flags&32){A=l.stateNode;try{Ef(A,"")}catch(Rt){ir(l,l.return,Rt)}}b&4&&l.stateNode!=null&&(A=l.memoizedProps,q1(l,A,m!==null?m.memoizedProps:A)),b&1024&&(tx=!0);break;case 6:if(Da(f,l),da(l),b&4){if(l.stateNode===null)throw Error(i(162));b=l.memoizedProps,m=l.stateNode;try{m.nodeValue=b}catch(Rt){ir(l,l.return,Rt)}}break;case 3:if(sm=null,A=nl,nl=ad(f.containerInfo),Da(f,l),nl=A,da(l),b&4&&m!==null&&m.memoizedState.isDehydrated)try{B0(f.containerInfo)}catch(Rt){ir(l,l.return,Rt)}tx&&(tx=!1,oE(l));break;case 4:b=nl,nl=ad(l.stateNode.containerInfo),Da(f,l),da(l),nl=b;break;case 12:Da(f,l),da(l);break;case 31:Da(f,l),da(l),b&4&&(b=l.updateQueue,b!==null&&(l.updateQueue=null,kc(l,b)));break;case 13:Da(f,l),da(l),l.child.flags&8192&&l.memoizedState!==null!=(m!==null&&m.memoizedState!==null)&&(qp=Bt()),b&4&&(b=l.updateQueue,b!==null&&(l.updateQueue=null,kc(l,b)));break;case 22:A=l.memoizedState!==null;var ve=m!==null&&m.memoizedState!==null,ze=ks,qe=gi;if(ks=ze||A,gi=qe||ve,Da(f,l),gi=qe,ks=ze,da(l),b&8192)e:for(f=l.stateNode,f._visibility=A?f._visibility&-2:f._visibility|1,A&&(m===null||ve||ks||gi||Zf(l)),m=null,f=l;;){if(f.tag===5||f.tag===26){if(m===null){ve=m=f;try{if(O=ve.stateNode,A)j=O.style,typeof j.setProperty=="function"?j.setProperty("display","none","important"):j.display="none";else{ne=ve.stateNode;var Ke=ve.memoizedProps.style,Ie=Ke!=null&&Ke.hasOwnProperty("display")?Ke.display:null;ne.style.display=Ie==null||typeof Ie=="boolean"?"":(""+Ie).trim()}}catch(Rt){ir(ve,ve.return,Rt)}}}else if(f.tag===6){if(m===null){ve=f;try{ve.stateNode.nodeValue=A?"":ve.memoizedProps}catch(Rt){ir(ve,ve.return,Rt)}}}else if(f.tag===18){if(m===null){ve=f;try{var Ue=ve.stateNode;A?Rx(Ue,!0):Rx(ve.stateNode,!1)}catch(Rt){ir(ve,ve.return,Rt)}}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===l)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===l)break e;for(;f.sibling===null;){if(f.return===null||f.return===l)break e;m===f&&(m=null),f=f.return}m===f&&(m=null),f.sibling.return=f.return,f=f.sibling}b&4&&(b=l.updateQueue,b!==null&&(m=b.retryQueue,m!==null&&(b.retryQueue=null,kc(l,m))));break;case 19:Da(f,l),da(l),b&4&&(b=l.updateQueue,b!==null&&(l.updateQueue=null,kc(l,b)));break;case 30:break;case 21:break;default:Da(f,l),da(l)}}function da(l){var f=l.flags;if(f&2){try{for(var m,b=l.return;b!==null;){if(ex(b)){m=b;break}b=b.return}if(m==null)throw Error(i(160));switch(m.tag){case 27:var A=m.stateNode,O=G1(l);Qf(l,O,A);break;case 5:var j=m.stateNode;m.flags&32&&(Ef(j,""),m.flags&=-33);var ne=G1(l);Qf(l,ne,j);break;case 3:case 4:var ve=m.stateNode.containerInfo,ze=G1(l);S0(l,ze,ve);break;default:throw Error(i(161))}}catch(qe){ir(l,l.return,qe)}l.flags&=-3}f&4096&&(l.flags&=-4097)}function oE(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var f=l;oE(f),f.tag===5&&f.flags&1024&&f.stateNode.reset(),l=l.sibling}}function Is(l,f){if(f.subtreeFlags&8772)for(f=f.child;f!==null;)Kf(l,f.alternate,f),f=f.sibling}function Zf(l){for(l=l.child;l!==null;){var f=l;switch(f.tag){case 0:case 11:case 14:case 15:Ra(4,f,f.return),Zf(f);break;case 1:_a(f,f.return);var m=f.stateNode;typeof m.componentWillUnmount=="function"&&H1(f,f.return,m),Zf(f);break;case 27:Nu(f.stateNode);case 26:case 5:_a(f,f.return),Zf(f);break;case 22:f.memoizedState===null&&Zf(f);break;case 30:Zf(f);break;default:Zf(f)}l=l.sibling}}function Mu(l,f,m){for(m=m&&(f.subtreeFlags&8772)!==0,f=f.child;f!==null;){var b=f.alternate,A=l,O=f,j=O.flags;switch(O.tag){case 0:case 11:case 15:Mu(A,O,m),Vp(4,O);break;case 1:if(Mu(A,O,m),b=O,A=b.stateNode,typeof A.componentDidMount=="function")try{A.componentDidMount()}catch(ze){ir(b,b.return,ze)}if(b=O,A=b.updateQueue,A!==null){var ne=b.stateNode;try{var ve=A.shared.hiddenCallbacks;if(ve!==null)for(A.shared.hiddenCallbacks=null,A=0;A<ve.length;A++)jf(ve[A],ne)}catch(ze){ir(b,b.return,ze)}}m&&j&64&&Wf(O),Il(O,O.return);break;case 27:F1(O);case 26:case 5:Mu(A,O,m),m&&b===null&&j&4&&J4(O),Il(O,O.return);break;case 12:Mu(A,O,m);break;case 31:Mu(A,O,m),m&&j&4&&ix(A,O);break;case 13:Mu(A,O,m),m&&j&4&&iE(A,O);break;case 22:O.memoizedState===null&&Mu(A,O,m),Il(O,O.return);break;case 30:break;default:Mu(A,O,m)}f=f.sibling}}function jp(l,f){var m=null;l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),l=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(l=f.memoizedState.cachePool.pool),l!==m&&(l!=null&&l.refCount++,m!=null&&Lf(m))}function Y1(l,f){l=null,f.alternate!==null&&(l=f.alternate.memoizedState.cache),f=f.memoizedState.cache,f!==l&&(f.refCount++,l!=null&&Lf(l))}function rl(l,f,m,b){if(f.subtreeFlags&10256)for(f=f.child;f!==null;)ax(l,f,m,b),f=f.sibling}function ax(l,f,m,b){var A=f.flags;switch(f.tag){case 0:case 11:case 15:rl(l,f,m,b),A&2048&&Vp(9,f);break;case 1:rl(l,f,m,b);break;case 3:rl(l,f,m,b),A&2048&&(l=null,f.alternate!==null&&(l=f.alternate.memoizedState.cache),f=f.memoizedState.cache,f!==l&&(f.refCount++,l!=null&&Lf(l)));break;case 12:if(A&2048){rl(l,f,m,b),l=f.stateNode;try{var O=f.memoizedProps,j=O.id,ne=O.onPostCommit;typeof ne=="function"&&ne(j,f.alternate===null?"mount":"update",l.passiveEffectDuration,-0)}catch(ve){ir(f,f.return,ve)}}else rl(l,f,m,b);break;case 31:rl(l,f,m,b);break;case 13:rl(l,f,m,b);break;case 23:break;case 22:O=f.stateNode,j=f.alternate,f.memoizedState!==null?O._visibility&2?rl(l,f,m,b):Pp(l,f):O._visibility&2?rl(l,f,m,b):(O._visibility|=2,Ls(l,f,m,b,(f.subtreeFlags&10256)!==0||!1)),A&2048&&jp(j,f);break;case 24:rl(l,f,m,b),A&2048&&Y1(f.alternate,f);break;default:rl(l,f,m,b)}}function Ls(l,f,m,b,A){for(A=A&&((f.subtreeFlags&10256)!==0||!1),f=f.child;f!==null;){var O=l,j=f,ne=m,ve=b,ze=j.flags;switch(j.tag){case 0:case 11:case 15:Ls(O,j,ne,ve,A),Vp(8,j);break;case 23:break;case 22:var qe=j.stateNode;j.memoizedState!==null?qe._visibility&2?Ls(O,j,ne,ve,A):Pp(O,j):(qe._visibility|=2,Ls(O,j,ne,ve,A)),A&&ze&2048&&jp(j.alternate,j);break;case 24:Ls(O,j,ne,ve,A),A&&ze&2048&&Y1(j.alternate,j);break;default:Ls(O,j,ne,ve,A)}f=f.sibling}}function Pp(l,f){if(f.subtreeFlags&10256)for(f=f.child;f!==null;){var m=l,b=f,A=b.flags;switch(b.tag){case 22:Pp(m,b),A&2048&&jp(b.alternate,b);break;case 24:Pp(m,b),A&2048&&Y1(b.alternate,b);break;default:Pp(m,b)}f=f.sibling}}var Up=8192;function Na(l,f,m){if(l.subtreeFlags&Up)for(l=l.child;l!==null;)E0(l,f,m),l=l.sibling}function E0(l,f,m){switch(l.tag){case 26:Na(l,f,m),l.flags&Up&&l.memoizedState!==null&&Do(m,nl,l.memoizedState,l.memoizedProps);break;case 5:Na(l,f,m);break;case 3:case 4:var b=nl;nl=ad(l.stateNode.containerInfo),Na(l,f,m),nl=b;break;case 22:l.memoizedState===null&&(b=l.alternate,b!==null&&b.memoizedState!==null?(b=Up,Up=16777216,Na(l,f,m),Up=b):Na(l,f,m));break;default:Na(l,f,m)}}function lE(l){var f=l.alternate;if(f!==null&&(l=f.child,l!==null)){f.child=null;do f=l.sibling,l.sibling=null,l=f;while(l!==null)}}function Jf(l){var f=l.deletions;if((l.flags&16)!==0){if(f!==null)for(var m=0;m<f.length;m++){var b=f[m];Ei=b,lx(b,l)}lE(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)ox(l),l=l.sibling}function ox(l){switch(l.tag){case 0:case 11:case 15:Jf(l),l.flags&2048&&Ra(9,l,l.return);break;case 3:Jf(l);break;case 12:Jf(l);break;case 22:var f=l.stateNode;l.memoizedState!==null&&f._visibility&2&&(l.return===null||l.return.tag!==13)?(f._visibility&=-3,$p(l)):Jf(l);break;default:Jf(l)}}function $p(l){var f=l.deletions;if((l.flags&16)!==0){if(f!==null)for(var m=0;m<f.length;m++){var b=f[m];Ei=b,lx(b,l)}lE(l)}for(l=l.child;l!==null;){switch(f=l,f.tag){case 0:case 11:case 15:Ra(8,f,f.return),$p(f);break;case 22:m=f.stateNode,m._visibility&2&&(m._visibility&=-3,$p(f));break;default:$p(f)}l=l.sibling}}function lx(l,f){for(;Ei!==null;){var m=Ei;switch(m.tag){case 0:case 11:case 15:Ra(8,m,f);break;case 23:case 22:if(m.memoizedState!==null&&m.memoizedState.cachePool!==null){var b=m.memoizedState.cachePool.pool;b!=null&&b.refCount++}break;case 24:Lf(m.memoizedState.cache)}if(b=m.child,b!==null)b.return=m,Ei=b;else e:for(m=l;Ei!==null;){b=Ei;var A=b.sibling,O=b.return;if(Bp(b),b===m){Ei=null;break e}if(A!==null){A.return=O,Ei=A;break e}Ei=O}}}var sx={getCacheForType:function(l){var f=Vt(Wr),m=f.data.get(l);return m===void 0&&(m=l(),f.data.set(l,m)),m},cacheSignal:function(){return Vt(Wr).controller.signal}},sE=typeof WeakMap=="function"?WeakMap:Map,Hn=0,dr=null,Mn=null,zn=0,Xn=0,io=null,sn=!1,zc=!1,Hp=!1,Vs=0,Nr=0,il=0,Bs=0,ux=0,ao=0,Ic=0,Kr=null,oo=null,al=!1,qp=0,Ru=0,Gp=1/0,Qn=null,js=null,jn=0,Lc=null,ed=null,Ll=0,X1=0,lo=null,cx=null,td=0,W1=null;function ka(){return(Hn&2)!==0&&zn!==0?zn&-zn:Z.T!==null?nd():T6()}function fx(){if(ao===0)if((zn&536870912)===0||kn){var l=tt;tt<<=1,(tt&3932160)===0&&(tt=262144),ao=l}else ao=536870912;return l=ua.current,l!==null&&(l.flags|=32),ao}function so(l,f,m){(l===dr&&(Xn===2||Xn===9)||l.cancelPendingCommit!==null)&&(w0(l,0),_u(l,zn,ao,!1)),oi(l,m),((Hn&2)===0||l!==dr)&&(l===dr&&((Hn&2)===0&&(Bs|=m),Nr===4&&_u(l,zn,ao,!1)),Vl(l))}function dx(l,f,m){if((Hn&6)!==0)throw Error(i(327));var b=!m&&(f&127)===0&&(f&l.expiredLanes)===0||vt(l,f),A=b?W8(l,f):hx(l,f,!0),O=b;do{if(A===0){zc&&!b&&_u(l,f,0,!1);break}else{if(m=l.current.alternate,O&&!Q1(m)){A=hx(l,f,!1),O=!1;continue}if(A===2){if(O=f,l.errorRecoveryDisabledLanes&O)var j=0;else j=l.pendingLanes&-536870913,j=j!==0?j:j&536870912?536870912:0;if(j!==0){f=j;e:{var ne=l;A=Kr;var ve=ne.current.memoizedState.isDehydrated;if(ve&&(w0(ne,j).flags|=256),j=hx(ne,j,!1),j!==2){if(Hp&&!ve){ne.errorRecoveryDisabledLanes|=O,Bs|=O,A=4;break e}O=oo,oo=A,O!==null&&(oo===null?oo=O:oo.push.apply(oo,O))}A=j}if(O=!1,A!==2)continue}}if(A===1){w0(l,0),_u(l,f,0,!0);break}e:{switch(b=l,O=A,O){case 0:case 1:throw Error(i(345));case 4:if((f&4194048)!==f)break;case 6:_u(b,f,ao,!sn);break e;case 2:oo=null;break;case 3:case 5:break;default:throw Error(i(329))}if((f&62914560)===f&&(A=qp+300-Bt(),10<A)){if(_u(b,f,ao,!sn),wt(b,0,!0)!==0)break e;Ll=f,b.timeoutHandle=ME(uE.bind(null,b,m,oo,Qn,al,f,ao,Bs,Ic,sn,O,"Throttled",-0,0),A);break e}uE(b,m,oo,Qn,al,f,ao,Bs,Ic,sn,O,null,-0,0)}}break}while(!0);Vl(l)}function uE(l,f,m,b,A,O,j,ne,ve,ze,qe,Ke,Ie,Ue){if(l.timeoutHandle=-1,Ke=f.subtreeFlags,Ke&8192||(Ke&16785408)===16785408){Ke={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Gi},E0(f,O,Ke);var Rt=(O&62914560)===O?qp-Bt():(O&4194048)===O?Ru-Bt():0;if(Rt=jl(Ke,Rt),Rt!==null){Ll=O,l.cancelPendingCommit=Rt(mE.bind(null,l,f,O,m,b,A,j,ne,ve,qe,Ke,null,Ie,Ue)),_u(l,O,j,!ze);return}}mE(l,f,O,m,b,A,j,ne,ve)}function Q1(l){for(var f=l;;){var m=f.tag;if((m===0||m===11||m===15)&&f.flags&16384&&(m=f.updateQueue,m!==null&&(m=m.stores,m!==null)))for(var b=0;b<m.length;b++){var A=m[b],O=A.getSnapshot;A=A.value;try{if(!Xa(O(),A))return!1}catch{return!1}}if(m=f.child,f.subtreeFlags&16384&&m!==null)m.return=f,f=m;else{if(f===l)break;for(;f.sibling===null;){if(f.return===null||f.return===l)return!0;f=f.return}f.sibling.return=f.return,f=f.sibling}}return!0}function _u(l,f,m,b){f&=~ux,f&=~Bs,l.suspendedLanes|=f,l.pingedLanes&=~f,b&&(l.warmLanes|=f),b=l.expirationTimes;for(var A=f;0<A;){var O=31-bn(A),j=1<<O;b[O]=-1,A&=~j}m!==0&&mf(l,m,f)}function Fp(){return(Hn&6)===0?(Qp(0),!1):!0}function Yp(){if(Mn!==null){if(Xn===0)var l=Mn.return;else l=Mn,Dl=Ec=null,$f(l),Mc=null,Vf=0,l=Mn;for(;l!==null;)Z4(l.alternate,l),l=l.return;Mn=null}}function w0(l,f){var m=l.timeoutHandle;m!==-1&&(l.timeoutHandle=-1,hy(m)),m=l.cancelPendingCommit,m!==null&&(l.cancelPendingCommit=null,m()),Ll=0,Yp(),dr=l,Mn=m=Ao(l.current,null),zn=f,Xn=0,io=null,sn=!1,zc=vt(l,f),Hp=!1,Ic=ao=ux=Bs=il=Nr=0,oo=Kr=null,al=!1,(f&8)!==0&&(f|=f&32);var b=l.entangledLanes;if(b!==0)for(l=l.entanglements,b&=f;0<b;){var A=31-bn(b),O=1<<A;f|=l[A],b&=~O}return Vs=f,wo(),m}function T0(l,f){cn=null,Z.H=y0,f===Nl||f===Ac?(f=g4(),Xn=3):f===cp?(f=g4(),Xn=4):Xn=f===q4?8:f!==null&&typeof f=="object"&&typeof f.then=="function"?6:1,io=f,Mn===null&&(Nr=1,v0(l,Co(f,l.current)))}function A0(){var l=ua.current;return l===null?!0:(zn&4194048)===zn?no===null:(zn&62914560)===zn||(zn&536870912)!==0?l===no:!1}function cE(){var l=Z.H;return Z.H=y0,l===null?y0:l}function fE(){var l=Z.A;return Z.A=sx,l}function K1(){Nr=4,sn||(zn&4194048)!==zn&&ua.current!==null||(zc=!0),(il&134217727)===0&&(Bs&134217727)===0||dr===null||_u(dr,zn,ao,!1)}function hx(l,f,m){var b=Hn;Hn|=2;var A=cE(),O=fE();(dr!==l||zn!==f)&&(Qn=null,w0(l,f)),f=!1;var j=Nr;e:do try{if(Xn!==0&&Mn!==null){var ne=Mn,ve=io;switch(Xn){case 8:Yp(),j=6;break e;case 3:case 2:case 9:case 6:ua.current===null&&(f=!0);var ze=Xn;if(Xn=0,io=null,C0(l,ne,ve,ze),m&&zc){j=0;break e}break;default:ze=Xn,Xn=0,io=null,C0(l,ne,ve,ze)}}dE(),j=Nr;break}catch(qe){T0(l,qe)}while(!0);return f&&l.shellSuspendCounter++,Dl=Ec=null,Hn=b,Z.H=A,Z.A=O,Mn===null&&(dr=null,zn=0,wo()),j}function dE(){for(;Mn!==null;)Du(Mn)}function W8(l,f){var m=Hn;Hn|=2;var b=cE(),A=fE();dr!==l||zn!==f?(Qn=null,Gp=Bt()+500,w0(l,f)):zc=vt(l,f);e:do try{if(Xn!==0&&Mn!==null){f=Mn;var O=io;t:switch(Xn){case 1:Xn=0,io=null,C0(l,f,O,1);break;case 2:case 9:if(fp(O)){Xn=0,io=null,pE(f);break}f=function(){Xn!==2&&Xn!==9||dr!==l||(Xn=7),Vl(l)},O.then(f,f);break e;case 3:Xn=7;break e;case 4:Xn=5;break e;case 7:fp(O)?(Xn=0,io=null,pE(f)):(Xn=0,io=null,C0(l,f,O,7));break;case 5:var j=null;switch(Mn.tag){case 26:j=Mn.memoizedState;case 5:case 27:var ne=Mn;if(j?xy(j):ne.stateNode.complete){Xn=0,io=null;var ve=ne.sibling;if(ve!==null)Mn=ve;else{var ze=ne.return;ze!==null?(Mn=ze,Xp(ze)):Mn=null}break t}}Xn=0,io=null,C0(l,f,O,5);break;case 6:Xn=0,io=null,C0(l,f,O,6);break;case 8:Yp(),Nr=6;break e;default:throw Error(i(462))}}hE();break}catch(qe){T0(l,qe)}while(!0);return Dl=Ec=null,Z.H=b,Z.A=A,Hn=m,Mn!==null?0:(dr=null,zn=0,wo(),Nr)}function hE(){for(;Mn!==null&&!At();)Du(Mn)}function Du(l){var f=Ip(l.alternate,l,Vs);l.memoizedProps=l.pendingProps,f===null?Xp(l):Mn=f}function pE(l){var f=l,m=f.alternate;switch(f.tag){case 15:case 0:f=W4(m,f,f.pendingProps,f.type,void 0,zn);break;case 11:f=W4(m,f,f.pendingProps,f.type.render,f.ref,zn);break;case 5:$f(f);default:Z4(m,f),f=Mn=G6(f,Vs),f=Ip(m,f,Vs)}l.memoizedProps=l.pendingProps,f===null?Xp(l):Mn=f}function C0(l,f,m,b){Dl=Ec=null,$f(f),Mc=null,Vf=0;var A=f.return;try{if(eE(l,A,f,m,zn)){Nr=1,v0(l,Co(m,l.current)),Mn=null;return}}catch(O){if(A!==null)throw Mn=A,O;Nr=1,v0(l,Co(m,l.current)),Mn=null;return}f.flags&32768?(kn||b===1?l=!0:zc||(zn&536870912)!==0?l=!1:(sn=l=!0,(b===2||b===9||b===3||b===6)&&(b=ua.current,b!==null&&b.tag===13&&(b.flags|=16384))),px(f,l)):Xp(f)}function Xp(l){var f=l;do{if((f.flags&32768)!==0){px(f,sn);return}l=f.return;var m=Br(f.alternate,f,Vs);if(m!==null){Mn=m;return}if(f=f.sibling,f!==null){Mn=f;return}Mn=f=l}while(f!==null);Nr===0&&(Nr=5)}function px(l,f){do{var m=rE(l.alternate,l);if(m!==null){m.flags&=32767,Mn=m;return}if(m=l.return,m!==null&&(m.flags|=32768,m.subtreeFlags=0,m.deletions=null),!f&&(l=l.sibling,l!==null)){Mn=l;return}Mn=l=m}while(l!==null);Nr=6,Mn=null}function mE(l,f,m,b,A,O,j,ne,ve){l.cancelPendingCommit=null;do Z1();while(jn!==0);if((Hn&6)!==0)throw Error(i(327));if(f!==null){if(f===l.current)throw Error(i(177));if(O=f.lanes|f.childLanes,O|=Ca,Pg(l,m,O,j,ne,ve),l===dr&&(Mn=dr=null,zn=0),ed=f,Lc=l,Ll=m,X1=O,lo=A,cx=b,(f.subtreeFlags&10256)!==0||(f.flags&10256)!==0?(l.callbackNode=null,l.callbackPriority=0,SE(nt,function(){return J1(),null})):(l.callbackNode=null,l.callbackPriority=0),b=(f.flags&13878)!==0,(f.subtreeFlags&13878)!==0||b){b=Z.T,Z.T=null,A=ae.p,ae.p=2,j=Hn,Hn|=4;try{X8(l,f,m)}finally{Hn=j,ae.p=A,Z.T=b}}jn=1,gE(),yE(),vE()}}function gE(){if(jn===1){jn=0;var l=Lc,f=ed,m=(f.flags&13878)!==0;if((f.subtreeFlags&13878)!==0||m){m=Z.T,Z.T=null;var b=ae.p;ae.p=2;var A=Hn;Hn|=4;try{Yn(f,l);var O=fy,j=_f(l.containerInfo),ne=O.focusedElem,ve=O.selectionRange;if(j!==ne&&ne&&ne.ownerDocument&&s4(ne.ownerDocument.documentElement,ne)){if(ve!==null&&gu(ne)){var ze=ve.start,qe=ve.end;if(qe===void 0&&(qe=ze),"selectionStart"in ne)ne.selectionStart=ze,ne.selectionEnd=Math.min(qe,ne.value.length);else{var Ke=ne.ownerDocument||document,Ie=Ke&&Ke.defaultView||window;if(Ie.getSelection){var Ue=Ie.getSelection(),Rt=ne.textContent.length,Ht=Math.min(ve.start,Rt),hr=ve.end===void 0?Ht:Math.min(ve.end,Rt);!Ue.extend&&Ht>hr&&(j=hr,hr=Ht,Ht=j);var De=l4(ne,Ht),Te=l4(ne,hr);if(De&&Te&&(Ue.rangeCount!==1||Ue.anchorNode!==De.node||Ue.anchorOffset!==De.offset||Ue.focusNode!==Te.node||Ue.focusOffset!==Te.offset)){var ke=Ke.createRange();ke.setStart(De.node,De.offset),Ue.removeAllRanges(),Ht>hr?(Ue.addRange(ke),Ue.extend(Te.node,Te.offset)):(ke.setEnd(Te.node,Te.offset),Ue.addRange(ke))}}}}for(Ke=[],Ue=ne;Ue=Ue.parentNode;)Ue.nodeType===1&&Ke.push({element:Ue,left:Ue.scrollLeft,top:Ue.scrollTop});for(typeof ne.focus=="function"&&ne.focus(),ne=0;ne<Ke.length;ne++){var Ye=Ke[ne];Ye.element.scrollLeft=Ye.left,Ye.element.scrollTop=Ye.top}}Iu=!!nm,fy=nm=null}finally{Hn=A,ae.p=b,Z.T=m}}l.current=f,jn=2}}function yE(){if(jn===2){jn=0;var l=Lc,f=ed,m=(f.flags&8772)!==0;if((f.subtreeFlags&8772)!==0||m){m=Z.T,Z.T=null;var b=ae.p;ae.p=2;var A=Hn;Hn|=4;try{Kf(l,f.alternate,f)}finally{Hn=A,ae.p=b,Z.T=m}}jn=3}}function vE(){if(jn===4||jn===3){jn=0,Rn();var l=Lc,f=ed,m=Ll,b=cx;(f.subtreeFlags&10256)!==0||(f.flags&10256)!==0?jn=5:(jn=0,ed=Lc=null,bE(l,l.pendingLanes));var A=l.pendingLanes;if(A===0&&(js=null),Ug(m),f=f.stateNode,jt&&typeof jt.onCommitFiberRoot=="function")try{jt.onCommitFiberRoot(kt,f,void 0,(f.current.flags&128)===128)}catch{}if(b!==null){f=Z.T,A=ae.p,ae.p=2,Z.T=null;try{for(var O=l.onRecoverableError,j=0;j<b.length;j++){var ne=b[j];O(ne.value,{componentStack:ne.stack})}}finally{Z.T=f,ae.p=A}}(Ll&3)!==0&&Z1(),Vl(l),A=l.pendingLanes,(m&261930)!==0&&(A&42)!==0?l===W1?td++:(td=0,W1=l):td=0,Qp(0)}}function bE(l,f){(l.pooledCacheLanes&=f)===0&&(f=l.pooledCache,f!=null&&(l.pooledCache=null,Lf(f)))}function Z1(){return gE(),yE(),vE(),J1()}function J1(){if(jn!==5)return!1;var l=Lc,f=X1;X1=0;var m=Ug(Ll),b=Z.T,A=ae.p;try{ae.p=32>m?32:m,Z.T=null,m=lo,lo=null;var O=Lc,j=Ll;if(jn=0,ed=Lc=null,Ll=0,(Hn&6)!==0)throw Error(i(331));var ne=Hn;if(Hn|=4,ox(O.current),ax(O,O.current,j,m),Hn=ne,Qp(0,!1),jt&&typeof jt.onPostCommitFiberRoot=="function")try{jt.onPostCommitFiberRoot(kt,O)}catch{}return!0}finally{ae.p=A,Z.T=b,bE(l,f)}}function xE(l,f,m){f=Co(m,f),f=b0(l.stateNode,f,2),l=Su(l,f,2),l!==null&&(oi(l,2),Vl(l))}function ir(l,f,m){if(l.tag===3)xE(l,l,m);else for(;f!==null;){if(f.tag===3){xE(f,l,m);break}else if(f.tag===1){var b=f.stateNode;if(typeof f.type.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&(js===null||!js.has(b))){l=Co(m,l),m=J6(2),b=Su(f,m,2),b!==null&&(H4(m,b,f,l),oi(b,2),Vl(b));break}}f=f.return}}function ey(l,f,m){var b=l.pingCache;if(b===null){b=l.pingCache=new sE;var A=new Set;b.set(f,A)}else A=b.get(f),A===void 0&&(A=new Set,b.set(f,A));A.has(m)||(Hp=!0,A.add(m),l=mx.bind(null,l,f,m),f.then(l,l))}function mx(l,f,m){var b=l.pingCache;b!==null&&b.delete(f),l.pingedLanes|=l.suspendedLanes&m,l.warmLanes&=~m,dr===l&&(zn&m)===m&&(Nr===4||Nr===3&&(zn&62914560)===zn&&300>Bt()-qp?(Hn&2)===0&&w0(l,0):ux|=m,Ic===zn&&(Ic=0)),Vl(l)}function ty(l,f){f===0&&(f=ct()),l=oa(l,f),l!==null&&(oi(l,f),Vl(l))}function Q8(l){var f=l.memoizedState,m=0;f!==null&&(m=f.retryLane),ty(l,m)}function _o(l,f){var m=0;switch(l.tag){case 31:case 13:var b=l.stateNode,A=l.memoizedState;A!==null&&(m=A.retryLane);break;case 19:b=l.stateNode;break;case 22:b=l.stateNode._retryCache;break;default:throw Error(i(314))}b!==null&&b.delete(f),ty(l,m)}function SE(l,f){return mn(l,f)}var Wp=null,Vc=null,ny=!1,ry=!1,gx=!1,Bc=0;function Vl(l){l!==Vc&&l.next===null&&(Vc===null?Wp=Vc=l:Vc=Vc.next=l),ry=!0,ny||(ny=!0,O0())}function Qp(l,f){if(!gx&&ry){gx=!0;do for(var m=!1,b=Wp;b!==null;){if(l!==0){var A=b.pendingLanes;if(A===0)var O=0;else{var j=b.suspendedLanes,ne=b.pingedLanes;O=(1<<31-bn(42|l)+1)-1,O&=A&~(j&~ne),O=O&201326741?O&201326741|1:O?O|2:0}O!==0&&(m=!0,Jp(b,O))}else O=zn,O=wt(b,b===dr?O:0,b.cancelPendingCommit!==null||b.timeoutHandle!==-1),(O&3)===0||vt(b,O)||(m=!0,Jp(b,O));b=b.next}while(m);gx=!1}}function Kp(){Zp()}function Zp(){ry=ny=!1;var l=0;Bc!==0&&OE()&&(l=Bc);for(var f=Bt(),m=null,b=Wp;b!==null;){var A=b.next,O=yx(b,f);O===0?(b.next=null,m===null?Wp=A:m.next=A,A===null&&(Vc=m)):(m=b,(l!==0||(O&3)!==0)&&(ry=!0)),b=A}jn!==0&&jn!==5||Qp(l),Bc!==0&&(Bc=0)}function yx(l,f){for(var m=l.suspendedLanes,b=l.pingedLanes,A=l.expirationTimes,O=l.pendingLanes&-62914561;0<O;){var j=31-bn(O),ne=1<<j,ve=A[j];ve===-1?((ne&m)===0||(ne&b)!==0)&&(A[j]=Yt(ne,f)):ve<=f&&(l.expiredLanes|=ne),O&=~ne}if(f=dr,m=zn,m=wt(l,l===f?m:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),b=l.callbackNode,m===0||l===f&&(Xn===2||Xn===9)||l.cancelPendingCommit!==null)return b!==null&&b!==null&&at(b),l.callbackNode=null,l.callbackPriority=0;if((m&3)===0||vt(l,m)){if(f=m&-m,f===l.callbackPriority)return f;switch(b!==null&&at(b),Ug(m)){case 2:case 8:m=Ve;break;case 32:m=nt;break;case 268435456:m=ut;break;default:m=nt}return b=vx.bind(null,l),m=mn(m,b),l.callbackPriority=f,l.callbackNode=m,f}return b!==null&&b!==null&&at(b),l.callbackPriority=2,l.callbackNode=null,2}function vx(l,f){if(jn!==0&&jn!==5)return l.callbackNode=null,l.callbackPriority=0,null;var m=l.callbackNode;if(Z1()&&l.callbackNode!==m)return null;var b=zn;return b=wt(l,l===dr?b:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),b===0?null:(dx(l,b,f),yx(l,Bt()),l.callbackNode!=null&&l.callbackNode===m?vx.bind(null,l):null)}function Jp(l,f){if(Z1())return null;dx(l,f,!0)}function O0(){N0(function(){(Hn&6)!==0?mn(be,Kp):Zp()})}function nd(){if(Bc===0){var l=wc;l===0&&(l=Oe,Oe<<=1,(Oe&261888)===0&&(Oe=256)),Bc=l}return Bc}function bx(l){return l==null||typeof l=="symbol"||typeof l=="boolean"?null:typeof l=="function"?l:hc(""+l)}function EE(l,f){var m=f.ownerDocument.createElement("input");return m.name=f.name,m.value=f.value,l.id&&m.setAttribute("form",l.id),f.parentNode.insertBefore(m,f),l=new FormData(l),m.parentNode.removeChild(m),l}function M0(l,f,m,b,A){if(f==="submit"&&m&&m.stateNode===A){var O=bx((A[Or]||null).action),j=b.submitter;j&&(f=(f=j[Or]||null)?bx(f.formAction):j.getAttribute("formAction"),f!==null&&(O=f,j=null));var ne=new Gh("action","action",null,b,A);l.push({event:ne,listeners:[{instance:null,listener:function(){if(b.defaultPrevented){if(Bc!==0){var ve=j?EE(A,j):new FormData(A);L1(m,{pending:!0,data:ve,method:A.method,action:O},null,ve)}}else typeof O=="function"&&(ne.preventDefault(),ve=j?EE(A,j):new FormData(A),L1(m,{pending:!0,data:ve,method:A.method,action:O},O,ve))},currentTarget:A}]})}}for(var rd=0;rd<Ml.length;rd++){var iy=Ml[rd],ay=iy.toLowerCase(),xx=iy[0].toUpperCase()+iy.slice(1);Wa(ay,"on"+xx)}Wa(br,"onAnimationEnd"),Wa(Zh,"onAnimationIteration"),Wa(c4,"onAnimationStart"),Wa("dblclick","onDoubleClick"),Wa("focusin","onFocus"),Wa("focusout","onBlur"),Wa(f4,"onTransitionRun"),Wa(Df,"onTransitionStart"),Wa(Jh,"onTransitionCancel"),Wa(Ol,"onTransitionEnd"),Sf("onMouseEnter",["mouseout","mouseover"]),Sf("onMouseLeave",["mouseout","mouseover"]),Sf("onPointerEnter",["pointerout","pointerover"]),Sf("onPointerLeave",["pointerout","pointerover"]),xo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xo("onBeforeInput",["compositionend","keypress","textInput","paste"]),xo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var id="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(" "),wE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(id));function Sx(l,f){f=(f&4)!==0;for(var m=0;m<l.length;m++){var b=l[m],A=b.event;b=b.listeners;e:{var O=void 0;if(f)for(var j=b.length-1;0<=j;j--){var ne=b[j],ve=ne.instance,ze=ne.currentTarget;if(ne=ne.listener,ve!==O&&A.isPropagationStopped())break e;O=ne,A.currentTarget=ze;try{O(A)}catch(qe){Sc(qe)}A.currentTarget=null,O=ve}else for(j=0;j<b.length;j++){if(ne=b[j],ve=ne.instance,ze=ne.currentTarget,ne=ne.listener,ve!==O&&A.isPropagationStopped())break e;O=ne,A.currentTarget=ze;try{O(A)}catch(qe){Sc(qe)}A.currentTarget=null,O=ve}}}}function _n(l,f){var m=f[Ih];m===void 0&&(m=f[Ih]=new Set);var b=l+"__bubble";m.has(b)||(em(f,l,2,!1),m.add(b))}function oy(l,f,m){var b=0;f&&(b|=4),em(m,l,b,f)}var ly="_reactListening"+Math.random().toString(36).slice(2);function Ex(l){if(!l[ly]){l[ly]=!0,Fa.forEach(function(m){m!=="selectionchange"&&(wE.has(m)||oy(m,!1,l),oy(m,!0,l))});var f=l.nodeType===9?l:l.ownerDocument;f===null||f[ly]||(f[ly]=!0,oy("selectionchange",!1,f))}}function em(l,f,m,b){switch(cm(f)){case 2:var A=ha;break;case 8:A=$s;break;default:A=ul}m=A.bind(null,f,m,l),A=void 0,!Xb||f!=="touchstart"&&f!=="touchmove"&&f!=="wheel"||(A=!0),b?A!==void 0?l.addEventListener(f,m,{capture:!0,passive:A}):l.addEventListener(f,m,!0):A!==void 0?l.addEventListener(f,m,{passive:A}):l.addEventListener(f,m,!1)}function R0(l,f,m,b,A){var O=b;if((f&1)===0&&(f&2)===0&&b!==null)e:for(;;){if(b===null)return;var j=b.tag;if(j===3||j===4){var ne=b.stateNode.containerInfo;if(ne===A)break;if(j===4)for(j=b.return;j!==null;){var ve=j.tag;if((ve===3||ve===4)&&j.stateNode.containerInfo===A)return;j=j.return}for(;ne!==null;){if(j=yf(ne),j===null)return;if(ve=j.tag,ve===5||ve===6||ve===26||ve===27){b=O=j;continue e}ne=ne.parentNode}}b=b.return}Hh(function(){var ze=O,qe=Fg(m),Ke=[];e:{var Ie=q6.get(l);if(Ie!==void 0){var Ue=Gh,Rt=l;switch(l){case"keypress":if(qh(m)===0)break e;case"keydown":case"keyup":Ue=Zg;break;case"focusin":Rt="focus",Ue=Kg;break;case"focusout":Rt="blur",Ue=Kg;break;case"beforeblur":case"afterblur":Ue=Kg;break;case"click":if(m.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ue=D6;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ue=N6;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ue=H8;break;case br:case Zh:case c4:Ue=Zb;break;case Ol:Ue=B6;break;case"scroll":case"scrollend":Ue=_6;break;case"wheel":Ue=e4;break;case"copy":case"cut":case"paste":Ue=Af;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ue=e1;break;case"toggle":case"beforetoggle":Ue=j6}var Ht=(f&4)!==0,hr=!Ht&&(l==="scroll"||l==="scrollend"),De=Ht?Ie!==null?Ie+"Capture":null:Ie;Ht=[];for(var Te=ze,ke;Te!==null;){var Ye=Te;if(ke=Ye.stateNode,Ye=Ye.tag,Ye!==5&&Ye!==26&&Ye!==27||ke===null||De===null||(Ye=Kd(Te,De),Ye!=null&&Ht.push(tm(Te,Ye,ke))),hr)break;Te=Te.return}0<Ht.length&&(Ie=new Ue(Ie,Rt,null,m,qe),Ke.push({event:Ie,listeners:Ht}))}}if((f&7)===0){e:{if(Ie=l==="mouseover"||l==="pointerover",Ue=l==="mouseout"||l==="pointerout",Ie&&m!==$h&&(Rt=m.relatedTarget||m.fromElement)&&(yf(Rt)||Rt[gf]))break e;if((Ue||Ie)&&(Ie=qe.window===qe?qe:(Ie=qe.ownerDocument)?Ie.defaultView||Ie.parentWindow:window,Ue?(Rt=m.relatedTarget||m.toElement,Ue=ze,Rt=Rt?yf(Rt):null,Rt!==null&&(hr=s(Rt),Ht=Rt.tag,Rt!==hr||Ht!==5&&Ht!==27&&Ht!==6)&&(Rt=null)):(Ue=null,Rt=ze),Ue!==Rt)){if(Ht=D6,Ye="onMouseLeave",De="onMouseEnter",Te="mouse",(l==="pointerout"||l==="pointerover")&&(Ht=e1,Ye="onPointerLeave",De="onPointerEnter",Te="pointer"),hr=Ue==null?Ie:Yd(Ue),ke=Rt==null?Ie:Yd(Rt),Ie=new Ht(Ye,Te+"leave",Ue,m,qe),Ie.target=hr,Ie.relatedTarget=ke,Ye=null,yf(qe)===ze&&(Ht=new Ht(De,Te+"enter",Rt,m,qe),Ht.target=ke,Ht.relatedTarget=hr,Ye=Ht),hr=Ye,Ue&&Rt)t:{for(Ht=TE,De=Ue,Te=Rt,ke=0,Ye=De;Ye;Ye=Ht(Ye))ke++;Ye=0;for(var Lt=Te;Lt;Lt=Ht(Lt))Ye++;for(;0<ke-Ye;)De=Ht(De),ke--;for(;0<Ye-ke;)Te=Ht(Te),Ye--;for(;ke--;){if(De===Te||Te!==null&&De===Te.alternate){Ht=De;break t}De=Ht(De),Te=Ht(Te)}Ht=null}else Ht=null;Ue!==null&&wx(Ke,Ie,Ue,Ht,!1),Rt!==null&&hr!==null&&wx(Ke,hr,Rt,Ht,!0)}}e:{if(Ie=ze?Yd(ze):window,Ue=Ie.nodeName&&Ie.nodeName.toLowerCase(),Ue==="select"||Ue==="input"&&Ie.type==="file")var qn=i1;else if(n1(Ie))if(i4)qn=gc;else{qn=$6;var _t=o4}else Ue=Ie.nodeName,!Ue||Ue.toLowerCase()!=="input"||Ie.type!=="checkbox"&&Ie.type!=="radio"?ze&&Fb(ze.elementType)&&(qn=i1):qn=H6;if(qn&&(qn=qn(l,ze))){fs(Ke,qn,m,qe);break e}_t&&_t(l,Ie,ze),l==="focusout"&&ze&&Ie.type==="number"&&ze.memoizedProps.value!=null&&Wd(Ie,"number",Ie.value)}switch(_t=ze?Yd(ze):window,l){case"focusin":(n1(_t)||_t.contentEditable==="true")&&(ps=_t,Qh=ze,vc=null);break;case"focusout":vc=Qh=ps=null;break;case"mousedown":ms=!0;break;case"contextmenu":case"mouseup":case"dragend":ms=!1,gs(Ke,m,qe);break;case"selectionchange":if(u4)break;case"keydown":case"keyup":gs(Ke,m,qe)}var pn;if(Jd)e:{switch(l){case"compositionstart":var An="onCompositionStart";break e;case"compositionend":An="onCompositionEnd";break e;case"compositionupdate":An="onCompositionUpdate";break e}An=void 0}else Of?mc(l,m)&&(An="onCompositionEnd"):l==="keydown"&&m.keyCode===229&&(An="onCompositionStart");An&&(Fi&&m.locale!=="ko"&&(Of||An!=="onCompositionStart"?An==="onCompositionEnd"&&Of&&(pn=R6()):(pu=qe,Yg="value"in pu?pu.value:pu.textContent,Of=!0)),_t=sy(ze,An),0<_t.length&&(An=new Wo(An,l,null,m,qe),Ke.push({event:An,listeners:_t}),pn?An.data=pn:(pn=t1(m),pn!==null&&(An.data=pn)))),(pn=n4?P6(l,m):U6(l,m))&&(An=sy(ze,"onBeforeInput"),0<An.length&&(_t=new Wo("onBeforeInput","beforeinput",null,m,qe),Ke.push({event:_t,listeners:An}),_t.data=pn)),M0(Ke,l,ze,m,qe)}Sx(Ke,f)})}function tm(l,f,m){return{instance:l,listener:f,currentTarget:m}}function sy(l,f){for(var m=f+"Capture",b=[];l!==null;){var A=l,O=A.stateNode;if(A=A.tag,A!==5&&A!==26&&A!==27||O===null||(A=Kd(l,m),A!=null&&b.unshift(tm(l,A,O)),A=Kd(l,f),A!=null&&b.push(tm(l,A,O))),l.tag===3)return b;l=l.return}return[]}function TE(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5&&l.tag!==27);return l||null}function wx(l,f,m,b,A){for(var O=f._reactName,j=[];m!==null&&m!==b;){var ne=m,ve=ne.alternate,ze=ne.stateNode;if(ne=ne.tag,ve!==null&&ve===b)break;ne!==5&&ne!==26&&ne!==27||ze===null||(ve=ze,A?(ze=Kd(m,O),ze!=null&&j.unshift(tm(m,ze,ve))):A||(ze=Kd(m,O),ze!=null&&j.push(tm(m,ze,ve)))),m=m.return}j.length!==0&&l.push({event:f,listeners:j})}var Tx=/\r\n?/g,AE=/\u0000|\uFFFD/g;function uy(l){return(typeof l=="string"?l:""+l).replace(Tx,`
|
|
101
|
+
`+b.stack}}var hn=Object.prototype.hasOwnProperty,mn=e.unstable_scheduleCallback,at=e.unstable_cancelCallback,At=e.unstable_shouldYield,Rn=e.unstable_requestPaint,Bt=e.unstable_now,Ze=e.unstable_getCurrentPriorityLevel,be=e.unstable_ImmediatePriority,Ve=e.unstable_UserBlockingPriority,nt=e.unstable_NormalPriority,pt=e.unstable_LowPriority,ut=e.unstable_IdlePriority,yt=e.log,gn=e.unstable_setDisableYieldValue,kt=null,jt=null;function Fn(l){if(typeof yt=="function"&&gn(l),jt&&typeof jt.setStrictMode=="function")try{jt.setStrictMode(kt,l)}catch{}}var bn=Math.clz32?Math.clz32:J,Fr=Math.log,cr=Math.LN2;function J(l){return l>>>=0,l===0?32:31-(Fr(l)/cr|0)|0}var Oe=256,tt=262144,Ne=4194304;function We(l){var f=l&42;if(f!==0)return f;switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return l&261888;case 262144:case 524288:case 1048576:case 2097152:return l&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function wt(l,f,m){var b=l.pendingLanes;if(b===0)return 0;var A=0,O=l.suspendedLanes,j=l.pingedLanes;l=l.warmLanes;var ne=b&134217727;return ne!==0?(b=ne&~O,b!==0?A=We(b):(j&=ne,j!==0?A=We(j):m||(m=ne&~l,m!==0&&(A=We(m))))):(ne=b&~O,ne!==0?A=We(ne):j!==0?A=We(j):m||(m=b&~l,m!==0&&(A=We(m)))),A===0?0:f!==0&&f!==A&&(f&O)===0&&(O=A&-A,m=f&-f,O>=m||O===32&&(m&4194048)!==0)?f:A}function vt(l,f){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&f)===0}function Yt(l,f){switch(l){case 1:case 2:case 4:case 8:case 64:return f+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return f+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ct(){var l=Ne;return Ne<<=1,(Ne&62914560)===0&&(Ne=4194304),l}function Bn(l){for(var f=[],m=0;31>m;m++)f.push(l);return f}function oi(l,f){l.pendingLanes|=f,f!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function Pg(l,f,m,b,A,O){var j=l.pendingLanes;l.pendingLanes=m,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=m,l.entangledLanes&=m,l.errorRecoveryDisabledLanes&=m,l.shellSuspendCounter=0;var ne=l.entanglements,ve=l.expirationTimes,ze=l.hiddenUpdates;for(m=j&~m;0<m;){var qe=31-bn(m),Ke=1<<qe;ne[qe]=0,ve[qe]=-1;var Ie=ze[qe];if(Ie!==null)for(ze[qe]=null,qe=0;qe<Ie.length;qe++){var Ue=Ie[qe];Ue!==null&&(Ue.lane&=-536870913)}m&=~Ke}b!==0&&mf(l,b,0),O!==0&&A===0&&l.tag!==0&&(l.suspendedLanes|=O&~(j&~f))}function mf(l,f,m){l.pendingLanes|=f,l.suspendedLanes&=~f;var b=31-bn(f);l.entangledLanes|=f,l.entanglements[b]=l.entanglements[b]|1073741824|m&261930}function zh(l,f){var m=l.entangledLanes|=f;for(l=l.entanglements;m;){var b=31-bn(m),A=1<<b;A&f|l[b]&f&&(l[b]|=f),m&=~A}}function is(l,f){var m=f&-f;return m=(m&42)!==0?1:Ga(m),(m&(l.suspendedLanes|f))!==0?0:m}function Ga(l){switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:l=128;break;case 268435456:l=134217728;break;default:l=0}return l}function Ug(l){return l&=-l,2<l?8<l?(l&134217727)!==0?32:268435456:8:2}function T6(){var l=ae.p;return l!==0?l:(l=window.event,l===void 0?32:cm(l.type))}function $g(l,f){var m=ae.p;try{return ae.p=l,f()}finally{ae.p=m}}var fu=Math.random().toString(36).slice(2),pi="__reactFiber$"+fu,Or="__reactProps$"+fu,gf="__reactContainer$"+fu,Ih="__reactEvents$"+fu,A6="__reactListeners$"+fu,jb="__reactHandles$"+fu,Pb="__reactResources$"+fu,Fd="__reactMarker$"+fu;function dc(l){delete l[pi],delete l[Or],delete l[Ih],delete l[A6],delete l[jb]}function yf(l){var f=l[pi];if(f)return f;for(var m=l.parentNode;m;){if(f=m[gf]||m[pi]){if(m=f.alternate,f.child!==null||m!==null&&m.child!==null)for(l=my(l);l!==null;){if(m=l[pi])return m;l=my(l)}return f}l=m,m=l.parentNode}return null}function vf(l){if(l=l[pi]||l[gf]){var f=l.tag;if(f===5||f===6||f===13||f===31||f===26||f===27||f===3)return l}return null}function Yd(l){var f=l.tag;if(f===5||f===26||f===27||f===6)return l.stateNode;throw Error(i(33))}function bf(l){var f=l[Pb];return f||(f=l[Pb]={hoistableStyles:new Map,hoistableScripts:new Map}),f}function Si(l){l[Fd]=!0}var Fa=new Set,xf={};function xo(l,f){Sf(l,f),Sf(l+"Capture",f)}function Sf(l,f){for(xf[l]=f,l=0;l<f.length;l++)Fa.add(f[l])}var Lh=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]*$"),Vh={},Hg={};function Bh(l){return hn.call(Hg,l)?!0:hn.call(Vh,l)?!1:Lh.test(l)?Hg[l]=!0:(Vh[l]=!0,!1)}function du(l,f,m){if(Bh(f))if(m===null)l.removeAttribute(f);else{switch(typeof m){case"undefined":case"function":case"symbol":l.removeAttribute(f);return;case"boolean":var b=f.toLowerCase().slice(0,5);if(b!=="data-"&&b!=="aria-"){l.removeAttribute(f);return}}l.setAttribute(f,""+m)}}function Xd(l,f,m){if(m===null)l.removeAttribute(f);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(f);return}l.setAttribute(f,""+m)}}function hu(l,f,m,b){if(b===null)l.removeAttribute(m);else{switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(m);return}l.setAttributeNS(f,m,""+b)}}function Yo(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function Ub(l){var f=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(f==="checkbox"||f==="radio")}function $b(l,f,m){var b=Object.getOwnPropertyDescriptor(l.constructor.prototype,f);if(!l.hasOwnProperty(f)&&typeof b<"u"&&typeof b.get=="function"&&typeof b.set=="function"){var A=b.get,O=b.set;return Object.defineProperty(l,f,{configurable:!0,get:function(){return A.call(this)},set:function(j){m=""+j,O.call(this,j)}}),Object.defineProperty(l,f,{enumerable:b.enumerable}),{getValue:function(){return m},setValue:function(j){m=""+j},stopTracking:function(){l._valueTracker=null,delete l[f]}}}}function jh(l){if(!l._valueTracker){var f=Ub(l)?"checked":"value";l._valueTracker=$b(l,f,""+l[f])}}function Hb(l){if(!l)return!1;var f=l._valueTracker;if(!f)return!0;var m=f.getValue(),b="";return l&&(b=Ub(l)?l.checked?"true":"false":l.value),l=b,l!==m?(f.setValue(l),!0):!1}function Ph(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 C6=/[\n"\\]/g;function Xo(l){return l.replace(C6,function(f){return"\\"+f.charCodeAt(0).toString(16)+" "})}function qg(l,f,m,b,A,O,j,ne){l.name="",j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?l.type=j:l.removeAttribute("type"),f!=null?j==="number"?(f===0&&l.value===""||l.value!=f)&&(l.value=""+Yo(f)):l.value!==""+Yo(f)&&(l.value=""+Yo(f)):j!=="submit"&&j!=="reset"||l.removeAttribute("value"),f!=null?Wd(l,j,Yo(f)):m!=null?Wd(l,j,Yo(m)):b!=null&&l.removeAttribute("value"),A==null&&O!=null&&(l.defaultChecked=!!O),A!=null&&(l.checked=A&&typeof A!="function"&&typeof A!="symbol"),ne!=null&&typeof ne!="function"&&typeof ne!="symbol"&&typeof ne!="boolean"?l.name=""+Yo(ne):l.removeAttribute("name")}function Gg(l,f,m,b,A,O,j,ne){if(O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(l.type=O),f!=null||m!=null){if(!(O!=="submit"&&O!=="reset"||f!=null)){jh(l);return}m=m!=null?""+Yo(m):"",f=f!=null?""+Yo(f):m,ne||f===l.value||(l.value=f),l.defaultValue=f}b=b??A,b=typeof b!="function"&&typeof b!="symbol"&&!!b,l.checked=ne?l.checked:!!b,l.defaultChecked=!!b,j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"&&(l.name=j),jh(l)}function Wd(l,f,m){f==="number"&&Ph(l.ownerDocument)===l||l.defaultValue===""+m||(l.defaultValue=""+m)}function as(l,f,m,b){if(l=l.options,f){f={};for(var A=0;A<m.length;A++)f["$"+m[A]]=!0;for(m=0;m<l.length;m++)A=f.hasOwnProperty("$"+l[m].value),l[m].selected!==A&&(l[m].selected=A),A&&b&&(l[m].defaultSelected=!0)}else{for(m=""+Yo(m),f=null,A=0;A<l.length;A++){if(l[A].value===m){l[A].selected=!0,b&&(l[A].defaultSelected=!0);return}f!==null||l[A].disabled||(f=l[A])}f!==null&&(f.selected=!0)}}function O6(l,f,m){if(f!=null&&(f=""+Yo(f),f!==l.value&&(l.value=f),m==null)){l.defaultValue!==f&&(l.defaultValue=f);return}l.defaultValue=m!=null?""+Yo(m):""}function qb(l,f,m,b){if(f==null){if(b!=null){if(m!=null)throw Error(i(92));if(oe(b)){if(1<b.length)throw Error(i(93));b=b[0]}m=b}m==null&&(m=""),f=m}m=Yo(f),l.defaultValue=m,b=l.textContent,b===m&&b!==""&&b!==null&&(l.value=b),jh(l)}function Ef(l,f){if(f){var m=l.firstChild;if(m&&m===l.lastChild&&m.nodeType===3){m.nodeValue=f;return}}l.textContent=f}var Uh=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 Gb(l,f,m){var b=f.indexOf("--")===0;m==null||typeof m=="boolean"||m===""?b?l.setProperty(f,""):f==="float"?l.cssFloat="":l[f]="":b?l.setProperty(f,m):typeof m!="number"||m===0||Uh.has(f)?f==="float"?l.cssFloat=m:l[f]=(""+m).trim():l[f]=m+"px"}function M6(l,f,m){if(f!=null&&typeof f!="object")throw Error(i(62));if(l=l.style,m!=null){for(var b in m)!m.hasOwnProperty(b)||f!=null&&f.hasOwnProperty(b)||(b.indexOf("--")===0?l.setProperty(b,""):b==="float"?l.cssFloat="":l[b]="");for(var A in f)b=f[A],f.hasOwnProperty(A)&&m[A]!==b&&Gb(l,A,b)}else for(var O in f)f.hasOwnProperty(O)&&Gb(l,O,f[O])}function Fb(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 P8=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"]]),U8=/^[\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 hc(l){return U8.test(""+l)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":l}function Gi(){}var $h=null;function Fg(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var wf=null,os=null;function Yb(l){var f=vf(l);if(f&&(l=f.stateNode)){var m=l[Or]||null;e:switch(l=f.stateNode,f.type){case"input":if(qg(l,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name),f=m.name,m.type==="radio"&&f!=null){for(m=l;m.parentNode;)m=m.parentNode;for(m=m.querySelectorAll('input[name="'+Xo(""+f)+'"][type="radio"]'),f=0;f<m.length;f++){var b=m[f];if(b!==l&&b.form===l.form){var A=b[Or]||null;if(!A)throw Error(i(90));qg(b,A.value,A.defaultValue,A.defaultValue,A.checked,A.defaultChecked,A.type,A.name)}}for(f=0;f<m.length;f++)b=m[f],b.form===l.form&&Hb(b)}break e;case"textarea":O6(l,m.value,m.defaultValue);break e;case"select":f=m.value,f!=null&&as(l,!!m.multiple,f,!1)}}}var Qd=!1;function Hh(l,f,m){if(Qd)return l(f,m);Qd=!0;try{var b=l(f);return b}finally{if(Qd=!1,(wf!==null||os!==null)&&(Fp(),wf&&(f=wf,l=os,os=wf=null,Yb(f),l)))for(f=0;f<l.length;f++)Yb(l[f])}}function Kd(l,f){var m=l.stateNode;if(m===null)return null;var b=m[Or]||null;if(b===null)return null;m=b[f];e:switch(f){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(b=!b.disabled)||(l=l.type,b=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!b;break e;default:l=!1}if(l)return null;if(m&&typeof m!="function")throw Error(i(231,f,typeof m));return m}var Yr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xb=!1;if(Yr)try{var Tf={};Object.defineProperty(Tf,"passive",{get:function(){Xb=!0}}),window.addEventListener("test",Tf,Tf),window.removeEventListener("test",Tf,Tf)}catch{Xb=!1}var pu=null,Yg=null,Xg=null;function R6(){if(Xg)return Xg;var l,f=Yg,m=f.length,b,A="value"in pu?pu.value:pu.textContent,O=A.length;for(l=0;l<m&&f[l]===A[l];l++);var j=m-l;for(b=1;b<=j&&f[m-b]===A[O-b];b++);return Xg=A.slice(l,1<b?1-b:void 0)}function qh(l){var f=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&f===13&&(l=13)):l=f,l===10&&(l=13),32<=l||l===13?l:0}function Wg(){return!0}function Wb(){return!1}function Ya(l){function f(m,b,A,O,j){this._reactName=m,this._targetInst=A,this.type=b,this.nativeEvent=O,this.target=j,this.currentTarget=null;for(var ne in l)l.hasOwnProperty(ne)&&(m=l[ne],this[ne]=m?m(O):O[ne]);return this.isDefaultPrevented=(O.defaultPrevented!=null?O.defaultPrevented:O.returnValue===!1)?Wg:Wb,this.isPropagationStopped=Wb,this}return S(f.prototype,{preventDefault:function(){this.defaultPrevented=!0;var m=this.nativeEvent;m&&(m.preventDefault?m.preventDefault():typeof m.returnValue!="unknown"&&(m.returnValue=!1),this.isDefaultPrevented=Wg)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!="unknown"&&(m.cancelBubble=!0),this.isPropagationStopped=Wg)},persist:function(){},isPersistent:Wg}),f}var ls={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gh=Ya(ls),Zd=S({},ls,{view:0,detail:0}),_6=Ya(Zd),Qb,Kb,Fh,Qg=S({},Zd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:So,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!==Fh&&(Fh&&l.type==="mousemove"?(Qb=l.screenX-Fh.screenX,Kb=l.screenY-Fh.screenY):Kb=Qb=0,Fh=l),Qb)},movementY:function(l){return"movementY"in l?l.movementY:Kb}}),D6=Ya(Qg),Yh=S({},Qg,{dataTransfer:0}),N6=Ya(Yh),k6=S({},Zd,{relatedTarget:0}),Kg=Ya(k6),z6=S({},ls,{animationName:0,elapsedTime:0,pseudoElement:0}),Zb=Ya(z6),I6=S({},ls,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),Af=Ya(I6),Cf=S({},ls,{data:0}),Wo=Ya(Cf),$8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jb={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"},ss={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function L6(l){var f=this.nativeEvent;return f.getModifierState?f.getModifierState(l):(l=ss[l])?!!f[l]:!1}function So(){return L6}var us=S({},Zd,{key:function(l){if(l.key){var f=$8[l.key]||l.key;if(f!=="Unidentified")return f}return l.type==="keypress"?(l=qh(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?Jb[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:So,charCode:function(l){return l.type==="keypress"?qh(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?qh(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),Zg=Ya(us),Jg=S({},Qg,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),e1=Ya(Jg),cs=S({},Zd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:So}),H8=Ya(cs),V6=S({},ls,{propertyName:0,elapsedTime:0,pseudoElement:0}),B6=Ya(V6),q8=S({},Qg,{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}),e4=Ya(q8),G8=S({},ls,{newState:0,oldState:0}),j6=Ya(G8),t4=[9,13,27,32],Jd=Yr&&"CompositionEvent"in window,pc=null;Yr&&"documentMode"in document&&(pc=document.documentMode);var n4=Yr&&"TextEvent"in window&&!pc,Fi=Yr&&(!Jd||pc&&8<pc&&11>=pc),r4=" ",Xh=!1;function mc(l,f){switch(l){case"keyup":return t4.indexOf(f.keyCode)!==-1;case"keydown":return f.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function t1(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var Of=!1;function P6(l,f){switch(l){case"compositionend":return t1(f);case"keypress":return f.which!==32?null:(Xh=!0,r4);case"textInput":return l=f.data,l===r4&&Xh?null:l;default:return null}}function U6(l,f){if(Of)return l==="compositionend"||!Jd&&mc(l,f)?(l=R6(),Xg=Yg=pu=null,Of=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(f.ctrlKey||f.altKey||f.metaKey)||f.ctrlKey&&f.altKey){if(f.char&&1<f.char.length)return f.char;if(f.which)return String.fromCharCode(f.which)}return null;case"compositionend":return Fi&&f.locale!=="ko"?null:f.data;default:return null}}var F8={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 n1(l){var f=l&&l.nodeName&&l.nodeName.toLowerCase();return f==="input"?!!F8[l.type]:f==="textarea"}function fs(l,f,m,b){wf?os?os.push(b):os=[b]:wf=b,f=sy(f,"onChange"),0<f.length&&(m=new Gh("onChange","change",null,m,b),l.push({event:m,listeners:f}))}var e0=null,Mf=null;function r1(l){Sx(l,0)}function ds(l){var f=Yd(l);if(Hb(f))return l}function i1(l,f){if(l==="change")return f}var i4=!1;if(Yr){var Wh;if(Yr){var Ta="oninput"in document;if(!Ta){var hs=document.createElement("div");hs.setAttribute("oninput","return;"),Ta=typeof hs.oninput=="function"}Wh=Ta}else Wh=!1;i4=Wh&&(!document.documentMode||9<document.documentMode)}function a4(){e0&&(e0.detachEvent("onpropertychange",a1),Mf=e0=null)}function a1(l){if(l.propertyName==="value"&&ds(Mf)){var f=[];fs(f,Mf,l,Fg(l)),Hh(r1,f)}}function o4(l,f,m){l==="focusin"?(a4(),e0=f,Mf=m,e0.attachEvent("onpropertychange",a1)):l==="focusout"&&a4()}function $6(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return ds(Mf)}function H6(l,f){if(l==="click")return ds(f)}function gc(l,f){if(l==="input"||l==="change")return ds(f)}function Rf(l,f){return l===f&&(l!==0||1/l===1/f)||l!==l&&f!==f}var Xa=typeof Object.is=="function"?Object.is:Rf;function yc(l,f){if(Xa(l,f))return!0;if(typeof l!="object"||l===null||typeof f!="object"||f===null)return!1;var m=Object.keys(l),b=Object.keys(f);if(m.length!==b.length)return!1;for(b=0;b<m.length;b++){var A=m[b];if(!hn.call(f,A)||!Xa(l[A],f[A]))return!1}return!0}function mu(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function l4(l,f){var m=mu(l);l=0;for(var b;m;){if(m.nodeType===3){if(b=l+m.textContent.length,l<=f&&b>=f)return{node:m,offset:f-l};l=b}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=mu(m)}}function s4(l,f){return l&&f?l===f?!0:l&&l.nodeType===3?!1:f&&f.nodeType===3?s4(l,f.parentNode):"contains"in l?l.contains(f):l.compareDocumentPosition?!!(l.compareDocumentPosition(f)&16):!1:!1}function _f(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var f=Ph(l.document);f instanceof l.HTMLIFrameElement;){try{var m=typeof f.contentWindow.location.href=="string"}catch{m=!1}if(m)l=f.contentWindow;else break;f=Ph(l.document)}return f}function gu(l){var f=l&&l.nodeName&&l.nodeName.toLowerCase();return f&&(f==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||f==="textarea"||l.contentEditable==="true")}var u4=Yr&&"documentMode"in document&&11>=document.documentMode,ps=null,Qh=null,vc=null,ms=!1;function gs(l,f,m){var b=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;ms||ps==null||ps!==Ph(b)||(b=ps,"selectionStart"in b&&gu(b)?b={start:b.selectionStart,end:b.selectionEnd}:(b=(b.ownerDocument&&b.ownerDocument.defaultView||window).getSelection(),b={anchorNode:b.anchorNode,anchorOffset:b.anchorOffset,focusNode:b.focusNode,focusOffset:b.focusOffset}),vc&&yc(vc,b)||(vc=b,b=sy(Qh,"onSelect"),0<b.length&&(f=new Gh("onSelect","select",null,f,m),l.push({event:f,listeners:b}),f.target=ps)))}function yu(l,f){var m={};return m[l.toLowerCase()]=f.toLowerCase(),m["Webkit"+l]="webkit"+f,m["Moz"+l]="moz"+f,m}var bc={animationend:yu("Animation","AnimationEnd"),animationiteration:yu("Animation","AnimationIteration"),animationstart:yu("Animation","AnimationStart"),transitionrun:yu("Transition","TransitionRun"),transitionstart:yu("Transition","TransitionStart"),transitioncancel:yu("Transition","TransitionCancel"),transitionend:yu("Transition","TransitionEnd")},xc={},Kh={};Yr&&(Kh=document.createElement("div").style,"AnimationEvent"in window||(delete bc.animationend.animation,delete bc.animationiteration.animation,delete bc.animationstart.animation),"TransitionEvent"in window||delete bc.transitionend.transition);function Eo(l){if(xc[l])return xc[l];if(!bc[l])return l;var f=bc[l],m;for(m in f)if(f.hasOwnProperty(m)&&m in Kh)return xc[l]=f[m];return l}var br=Eo("animationend"),Zh=Eo("animationiteration"),c4=Eo("animationstart"),f4=Eo("transitionrun"),Df=Eo("transitionstart"),Jh=Eo("transitioncancel"),Ol=Eo("transitionend"),q6=new Map,Ml="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(" ");Ml.push("scrollEnd");function Wa(l,f){q6.set(l,f),xo(f,[l])}var Sc=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var f=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(f))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)},Aa=[],zi=0,Ca=0;function wo(){for(var l=zi,f=Ca=zi=0;f<l;){var m=Aa[f];Aa[f++]=null;var b=Aa[f];Aa[f++]=null;var A=Aa[f];Aa[f++]=null;var O=Aa[f];if(Aa[f++]=null,b!==null&&A!==null){var j=b.pending;j===null?A.next=A:(A.next=j.next,j.next=A),b.pending=A}O!==0&&o1(m,A,O)}}function To(l,f,m,b){Aa[zi++]=l,Aa[zi++]=f,Aa[zi++]=m,Aa[zi++]=b,Ca|=b,l.lanes|=b,l=l.alternate,l!==null&&(l.lanes|=b)}function Qo(l,f,m,b){return To(l,f,m,b),t0(l)}function oa(l,f){return To(l,null,null,f),t0(l)}function o1(l,f,m){l.lanes|=m;var b=l.alternate;b!==null&&(b.lanes|=m);for(var A=!1,O=l.return;O!==null;)O.childLanes|=m,b=O.alternate,b!==null&&(b.childLanes|=m),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&&f!==null&&(A=31-bn(m),l=O.hiddenUpdates,b=l[A],b===null?l[A]=[f]:b.push(f),f.lane=m|536870912),O):null}function t0(l){if(50<td)throw td=0,W1=null,Error(i(185));for(var f=l.return;f!==null;)l=f,f=l.return;return l.tag===3?l.stateNode:null}var Nf={};function ys(l,f,m,b){this.tag=l,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=f,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=b,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qa(l,f,m,b){return new ys(l,f,m,b)}function Ko(l){return l=l.prototype,!(!l||!l.isReactComponent)}function Ao(l,f){var m=l.alternate;return m===null?(m=Qa(l.tag,f,l.key,l.mode),m.elementType=l.elementType,m.type=l.type,m.stateNode=l.stateNode,m.alternate=l,l.alternate=m):(m.pendingProps=f,m.type=l.type,m.flags=0,m.subtreeFlags=0,m.deletions=null),m.flags=l.flags&65011712,m.childLanes=l.childLanes,m.lanes=l.lanes,m.child=l.child,m.memoizedProps=l.memoizedProps,m.memoizedState=l.memoizedState,m.updateQueue=l.updateQueue,f=l.dependencies,m.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},m.sibling=l.sibling,m.index=l.index,m.ref=l.ref,m.refCleanup=l.refCleanup,m}function G6(l,f){l.flags&=65011714;var m=l.alternate;return m===null?(l.childLanes=0,l.lanes=f,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=m.childLanes,l.lanes=m.lanes,l.child=m.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=m.memoizedProps,l.memoizedState=m.memoizedState,l.updateQueue=m.updateQueue,l.type=m.type,f=m.dependencies,l.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext}),l}function ep(l,f,m,b,A,O){var j=0;if(b=l,typeof l=="function")Ko(l)&&(j=1);else if(typeof l=="string")j=Vx(l,m,Me.current)?26:l==="html"||l==="head"||l==="body"?27:5;else e:switch(l){case ce:return l=Qa(31,m,f,A),l.elementType=ce,l.lanes=O,l;case R:return kf(m.children,A,O,f);case _:j=8,A|=24;break;case N:return l=Qa(12,m,f,A|2),l.elementType=N,l.lanes=O,l;case L:return l=Qa(13,m,f,A),l.elementType=L,l.lanes=O,l;case U:return l=Qa(19,m,f,A),l.elementType=U,l.lanes=O,l;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case B:j=10;break e;case z:j=9;break e;case V:j=11;break e;case X:j=14;break e;case se:j=16,b=null;break e}j=29,m=Error(i(130,l===null?"null":typeof l,"")),b=null}return f=Qa(j,m,f,A),f.elementType=l,f.type=b,f.lanes=O,f}function kf(l,f,m,b){return l=Qa(7,l,b,f),l.lanes=m,l}function tp(l,f,m){return l=Qa(6,l,null,f),l.lanes=m,l}function np(l){var f=Qa(18,null,null,0);return f.stateNode=l,f}function l1(l,f,m){return f=Qa(4,l.children!==null?l.children:[],l.key,f),f.lanes=m,f.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},f}var d4=new WeakMap;function Co(l,f){if(typeof l=="object"&&l!==null){var m=d4.get(l);return m!==void 0?m:(f={value:l,source:f,stack:Ut(f)},d4.set(l,f),f)}return{value:l,source:f,stack:Ut(f)}}var zf=[],Oo=0,rp=null,n0=0,fr=[],Ka=0,Rl=null,Mo=1,Za="";function vs(l,f){zf[Oo++]=n0,zf[Oo++]=rp,rp=l,n0=f}function ip(l,f,m){fr[Ka++]=Mo,fr[Ka++]=Za,fr[Ka++]=Rl,Rl=l;var b=Mo;l=Za;var A=32-bn(b)-1;b&=~(1<<A),m+=1;var O=32-bn(f)+A;if(30<O){var j=A-A%5;O=(b&(1<<j)-1).toString(32),b>>=j,A-=j,Mo=1<<32-bn(f)+A|m<<A|b,Za=O+l}else Mo=1<<O|m<<A|b,Za=l}function s1(l){l.return!==null&&(vs(l,1),ip(l,1,0))}function r0(l){for(;l===rp;)rp=zf[--Oo],zf[Oo]=null,n0=zf[--Oo],zf[Oo]=null;for(;l===Rl;)Rl=fr[--Ka],fr[Ka]=null,Za=fr[--Ka],fr[Ka]=null,Mo=fr[--Ka],fr[Ka]=null}function h4(l,f){fr[Ka++]=Mo,fr[Ka++]=Za,fr[Ka++]=Rl,Mo=f.id,Za=f.overflow,Rl=l}var mi=null,xr=null,kn=!1,bs=null,Ja=!1,xs=Error(i(519));function Oa(l){var f=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw op(Co(f,l)),xs}function i0(l){var f=l.stateNode,m=l.type,b=l.memoizedProps;switch(f[pi]=l,f[Or]=b,m){case"dialog":_n("cancel",f),_n("close",f);break;case"iframe":case"object":case"embed":_n("load",f);break;case"video":case"audio":for(m=0;m<id.length;m++)_n(id[m],f);break;case"source":_n("error",f);break;case"img":case"image":case"link":_n("error",f),_n("load",f);break;case"details":_n("toggle",f);break;case"input":_n("invalid",f),Gg(f,b.value,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name,!0);break;case"select":_n("invalid",f);break;case"textarea":_n("invalid",f),qb(f,b.value,b.defaultValue,b.children)}m=b.children,typeof m!="string"&&typeof m!="number"&&typeof m!="bigint"||f.textContent===""+m||b.suppressHydrationWarning===!0||Ax(f.textContent,m)?(b.popover!=null&&(_n("beforetoggle",f),_n("toggle",f)),b.onScroll!=null&&_n("scroll",f),b.onScrollEnd!=null&&_n("scrollend",f),b.onClick!=null&&(f.onclick=Gi),f=!0):f=!1,f||Oa(l,!0)}function ap(l){for(mi=l.return;mi;)switch(mi.tag){case 5:case 31:case 13:Ja=!1;return;case 27:case 3:Ja=!0;return;default:mi=mi.return}}function Ss(l){if(l!==mi)return!1;if(!kn)return ap(l),kn=!0,!1;var f=l.tag,m;if((m=f!==3&&f!==27)&&((m=f===5)&&(m=l.type,m=!(m!=="form"&&m!=="button")||dy(l.type,l.memoizedProps)),m=!m),m&&xr&&Oa(l),ap(l),f===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(i(317));xr=py(l)}else if(f===31){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(i(317));xr=py(l)}else f===27?(f=xr,Ps(l.type)?(l=z0,z0=null,xr=l):xr=f):xr=mi?Ji(l.stateNode.nextSibling):null;return!0}function _l(){xr=mi=null,kn=!1}function u1(){var l=bs;return l!==null&&(oo===null?oo=l:oo.push.apply(oo,l),bs=null),l}function op(l){bs===null?bs=[l]:bs.push(l)}var c1=F(null),Ec=null,Dl=null;function Es(l,f,m){Y(c1,f._currentValue),f._currentValue=m}function la(l){l._currentValue=c1.current,ee(c1)}function lp(l,f,m){for(;l!==null;){var b=l.alternate;if((l.childLanes&f)!==f?(l.childLanes|=f,b!==null&&(b.childLanes|=f)):b!==null&&(b.childLanes&f)!==f&&(b.childLanes|=f),l===m)break;l=l.return}}function f1(l,f,m,b){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 ne=O;O=A;for(var ve=0;ve<f.length;ve++)if(ne.context===f[ve]){O.lanes|=m,ne=O.alternate,ne!==null&&(ne.lanes|=m),lp(O.return,m,l),b||(j=null);break e}O=ne.next}}else if(A.tag===18){if(j=A.return,j===null)throw Error(i(341));j.lanes|=m,O=j.alternate,O!==null&&(O.lanes|=m),lp(j,m,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 Ro(l,f,m,b){l=null;for(var A=f,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(i(387));if(j=j.memoizedProps,j!==null){var ne=A.type;Xa(A.pendingProps.value,j.value)||(l!==null?l.push(ne):l=[ne])}}else if(A===je.current){if(j=A.alternate,j===null)throw Error(i(387));j.memoizedState.memoizedState!==A.memoizedState.memoizedState&&(l!==null?l.push(Jr):l=[Jr])}A=A.return}l!==null&&f1(f,l,m,b),f.flags|=262144}function sa(l){for(l=l.firstContext;l!==null;){if(!Xa(l.context._currentValue,l.memoizedValue))return!0;l=l.next}return!1}function ws(l){Ec=l,Dl=null,l=l.dependencies,l!==null&&(l.firstContext=null)}function Vt(l){return If(Ec,l)}function rt(l,f){return Ec===null&&ws(l),If(l,f)}function If(l,f){var m=f._currentValue;if(f={context:f,memoizedValue:m,next:null},Dl===null){if(l===null)throw Error(i(308));Dl=f,l.dependencies={lanes:0,firstContext:f},l.flags|=524288}else Dl=Dl.next=f;return m}var d1=typeof AbortController<"u"?AbortController:function(){var l=[],f=this.signal={aborted:!1,addEventListener:function(m,b){l.push(b)}};this.abort=function(){f.aborted=!0,l.forEach(function(m){return m()})}},Xr=e.unstable_scheduleCallback,p4=e.unstable_NormalPriority,Wr={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function h1(){return{controller:new d1,data:new Map,refCount:0}}function Lf(l){l.refCount--,l.refCount===0&&Xr(p4,function(){l.controller.abort()})}var sp=null,up=0,wc=0,Tc=null;function Ma(l,f){if(sp===null){var m=sp=[];up=0,wc=nd(),Tc={status:"pending",value:void 0,then:function(b){m.push(b)}}}return up++,f.then(Wn,Wn),f}function Wn(){if(--up===0&&sp!==null){Tc!==null&&(Tc.status="fulfilled");var l=sp;sp=null,wc=0,Tc=null;for(var f=0;f<l.length;f++)(0,l[f])()}}function p1(l,f){var m=[],b={status:"pending",value:null,reason:null,then:function(A){m.push(A)}};return l.then(function(){b.status="fulfilled",b.value=f;for(var A=0;A<m.length;A++)(0,m[A])(f)},function(A){for(b.status="rejected",b.reason=A,A=0;A<m.length;A++)(0,m[A])(void 0)}),b}var a0=Z.S;Z.S=function(l,f){Ru=Bt(),typeof f=="object"&&f!==null&&typeof f.then=="function"&&Ma(l,f),a0!==null&&a0(l,f)};var eo=F(null);function vu(){var l=eo.current;return l!==null?l:dr.pooledCache}function to(l,f){f===null?Y(eo,eo.current):Y(eo,f.pool)}function m1(){var l=vu();return l===null?null:{parent:Wr._currentValue,pool:l}}var Nl=Error(i(460)),cp=Error(i(474)),Ac=Error(i(542)),o0={then:function(){}};function fp(l){return l=l.status,l==="fulfilled"||l==="rejected"}function m4(l,f,m){switch(m=l[m],m===void 0?l.push(f):m!==f&&(f.then(Gi,Gi),f=m),f.status){case"fulfilled":return f.value;case"rejected":throw l=f.reason,y4(l),l;default:if(typeof f.status=="string")f.then(Gi,Gi);else{if(l=dr,l!==null&&100<l.shellSuspendCounter)throw Error(i(482));l=f,l.status="pending",l.then(function(b){if(f.status==="pending"){var A=f;A.status="fulfilled",A.value=b}},function(b){if(f.status==="pending"){var A=f;A.status="rejected",A.reason=b}})}switch(f.status){case"fulfilled":return f.value;case"rejected":throw l=f.reason,y4(l),l}throw Oc=f,Nl}}function Cc(l){try{var f=l._init;return f(l._payload)}catch(m){throw m!==null&&typeof m=="object"&&typeof m.then=="function"?(Oc=m,Nl):m}}var Oc=null;function g4(){if(Oc===null)throw Error(i(459));var l=Oc;return Oc=null,l}function y4(l){if(l===Nl||l===Ac)throw Error(i(483))}var Mc=null,Vf=0;function l0(l){var f=Vf;return Vf+=1,Mc===null&&(Mc=[]),m4(Mc,l,f)}function s0(l,f){f=f.props.ref,l.ref=f!==void 0?f:null}function dp(l,f){throw f.$$typeof===T?Error(i(525)):(l=Object.prototype.toString.call(f),Error(i(31,l==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":l)))}function v4(l){function f(De,Te){if(l){var ke=De.deletions;ke===null?(De.deletions=[Te],De.flags|=16):ke.push(Te)}}function m(De,Te){if(!l)return null;for(;Te!==null;)f(De,Te),Te=Te.sibling;return null}function b(De){for(var Te=new Map;De!==null;)De.key!==null?Te.set(De.key,De):Te.set(De.index,De),De=De.sibling;return Te}function A(De,Te){return De=Ao(De,Te),De.index=0,De.sibling=null,De}function O(De,Te,ke){return De.index=ke,l?(ke=De.alternate,ke!==null?(ke=ke.index,ke<Te?(De.flags|=67108866,Te):ke):(De.flags|=67108866,Te)):(De.flags|=1048576,Te)}function j(De){return l&&De.alternate===null&&(De.flags|=67108866),De}function ne(De,Te,ke,Ye){return Te===null||Te.tag!==6?(Te=tp(ke,De.mode,Ye),Te.return=De,Te):(Te=A(Te,ke),Te.return=De,Te)}function ve(De,Te,ke,Ye){var Lt=ke.type;return Lt===R?qe(De,Te,ke.props.children,Ye,ke.key):Te!==null&&(Te.elementType===Lt||typeof Lt=="object"&&Lt!==null&&Lt.$$typeof===se&&Cc(Lt)===Te.type)?(Te=A(Te,ke.props),s0(Te,ke),Te.return=De,Te):(Te=ep(ke.type,ke.key,ke.props,null,De.mode,Ye),s0(Te,ke),Te.return=De,Te)}function ze(De,Te,ke,Ye){return Te===null||Te.tag!==4||Te.stateNode.containerInfo!==ke.containerInfo||Te.stateNode.implementation!==ke.implementation?(Te=l1(ke,De.mode,Ye),Te.return=De,Te):(Te=A(Te,ke.children||[]),Te.return=De,Te)}function qe(De,Te,ke,Ye,Lt){return Te===null||Te.tag!==7?(Te=kf(ke,De.mode,Ye,Lt),Te.return=De,Te):(Te=A(Te,ke),Te.return=De,Te)}function Ke(De,Te,ke){if(typeof Te=="string"&&Te!==""||typeof Te=="number"||typeof Te=="bigint")return Te=tp(""+Te,De.mode,ke),Te.return=De,Te;if(typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case w:return ke=ep(Te.type,Te.key,Te.props,null,De.mode,ke),s0(ke,Te),ke.return=De,ke;case C:return Te=l1(Te,De.mode,ke),Te.return=De,Te;case se:return Te=Cc(Te),Ke(De,Te,ke)}if(oe(Te)||$(Te))return Te=kf(Te,De.mode,ke,null),Te.return=De,Te;if(typeof Te.then=="function")return Ke(De,l0(Te),ke);if(Te.$$typeof===B)return Ke(De,rt(De,Te),ke);dp(De,Te)}return null}function Ie(De,Te,ke,Ye){var Lt=Te!==null?Te.key:null;if(typeof ke=="string"&&ke!==""||typeof ke=="number"||typeof ke=="bigint")return Lt!==null?null:ne(De,Te,""+ke,Ye);if(typeof ke=="object"&&ke!==null){switch(ke.$$typeof){case w:return ke.key===Lt?ve(De,Te,ke,Ye):null;case C:return ke.key===Lt?ze(De,Te,ke,Ye):null;case se:return ke=Cc(ke),Ie(De,Te,ke,Ye)}if(oe(ke)||$(ke))return Lt!==null?null:qe(De,Te,ke,Ye,null);if(typeof ke.then=="function")return Ie(De,Te,l0(ke),Ye);if(ke.$$typeof===B)return Ie(De,Te,rt(De,ke),Ye);dp(De,ke)}return null}function Ue(De,Te,ke,Ye,Lt){if(typeof Ye=="string"&&Ye!==""||typeof Ye=="number"||typeof Ye=="bigint")return De=De.get(ke)||null,ne(Te,De,""+Ye,Lt);if(typeof Ye=="object"&&Ye!==null){switch(Ye.$$typeof){case w:return De=De.get(Ye.key===null?ke:Ye.key)||null,ve(Te,De,Ye,Lt);case C:return De=De.get(Ye.key===null?ke:Ye.key)||null,ze(Te,De,Ye,Lt);case se:return Ye=Cc(Ye),Ue(De,Te,ke,Ye,Lt)}if(oe(Ye)||$(Ye))return De=De.get(ke)||null,qe(Te,De,Ye,Lt,null);if(typeof Ye.then=="function")return Ue(De,Te,ke,l0(Ye),Lt);if(Ye.$$typeof===B)return Ue(De,Te,ke,rt(Te,Ye),Lt);dp(Te,Ye)}return null}function Rt(De,Te,ke,Ye){for(var Lt=null,qn=null,Dt=Te,pn=Te=0,Cn=null;Dt!==null&&pn<ke.length;pn++){Dt.index>pn?(Cn=Dt,Dt=null):Cn=Dt.sibling;var Dn=Ie(De,Dt,ke[pn],Ye);if(Dn===null){Dt===null&&(Dt=Cn);break}l&&Dt&&Dn.alternate===null&&f(De,Dt),Te=O(Dn,Te,pn),qn===null?Lt=Dn:qn.sibling=Dn,qn=Dn,Dt=Cn}if(pn===ke.length)return m(De,Dt),kn&&vs(De,pn),Lt;if(Dt===null){for(;pn<ke.length;pn++)Dt=Ke(De,ke[pn],Ye),Dt!==null&&(Te=O(Dt,Te,pn),qn===null?Lt=Dt:qn.sibling=Dt,qn=Dt);return kn&&vs(De,pn),Lt}for(Dt=b(Dt);pn<ke.length;pn++)Cn=Ue(Dt,De,pn,ke[pn],Ye),Cn!==null&&(l&&Cn.alternate!==null&&Dt.delete(Cn.key===null?pn:Cn.key),Te=O(Cn,Te,pn),qn===null?Lt=Cn:qn.sibling=Cn,qn=Cn);return l&&Dt.forEach(function(Pc){return f(De,Pc)}),kn&&vs(De,pn),Lt}function Ht(De,Te,ke,Ye){if(ke==null)throw Error(i(151));for(var Lt=null,qn=null,Dt=Te,pn=Te=0,Cn=null,Dn=ke.next();Dt!==null&&!Dn.done;pn++,Dn=ke.next()){Dt.index>pn?(Cn=Dt,Dt=null):Cn=Dt.sibling;var Pc=Ie(De,Dt,Dn.value,Ye);if(Pc===null){Dt===null&&(Dt=Cn);break}l&&Dt&&Pc.alternate===null&&f(De,Dt),Te=O(Pc,Te,pn),qn===null?Lt=Pc:qn.sibling=Pc,qn=Pc,Dt=Cn}if(Dn.done)return m(De,Dt),kn&&vs(De,pn),Lt;if(Dt===null){for(;!Dn.done;pn++,Dn=ke.next())Dn=Ke(De,Dn.value,Ye),Dn!==null&&(Te=O(Dn,Te,pn),qn===null?Lt=Dn:qn.sibling=Dn,qn=Dn);return kn&&vs(De,pn),Lt}for(Dt=b(Dt);!Dn.done;pn++,Dn=ke.next())Dn=Ue(Dt,De,pn,Dn.value,Ye),Dn!==null&&(l&&Dn.alternate!==null&&Dt.delete(Dn.key===null?pn:Dn.key),Te=O(Dn,Te,pn),qn===null?Lt=Dn:qn.sibling=Dn,qn=Dn);return l&&Dt.forEach(function(Ry){return f(De,Ry)}),kn&&vs(De,pn),Lt}function hr(De,Te,ke,Ye){if(typeof ke=="object"&&ke!==null&&ke.type===R&&ke.key===null&&(ke=ke.props.children),typeof ke=="object"&&ke!==null){switch(ke.$$typeof){case w:e:{for(var Lt=ke.key;Te!==null;){if(Te.key===Lt){if(Lt=ke.type,Lt===R){if(Te.tag===7){m(De,Te.sibling),Ye=A(Te,ke.props.children),Ye.return=De,De=Ye;break e}}else if(Te.elementType===Lt||typeof Lt=="object"&&Lt!==null&&Lt.$$typeof===se&&Cc(Lt)===Te.type){m(De,Te.sibling),Ye=A(Te,ke.props),s0(Ye,ke),Ye.return=De,De=Ye;break e}m(De,Te);break}else f(De,Te);Te=Te.sibling}ke.type===R?(Ye=kf(ke.props.children,De.mode,Ye,ke.key),Ye.return=De,De=Ye):(Ye=ep(ke.type,ke.key,ke.props,null,De.mode,Ye),s0(Ye,ke),Ye.return=De,De=Ye)}return j(De);case C:e:{for(Lt=ke.key;Te!==null;){if(Te.key===Lt)if(Te.tag===4&&Te.stateNode.containerInfo===ke.containerInfo&&Te.stateNode.implementation===ke.implementation){m(De,Te.sibling),Ye=A(Te,ke.children||[]),Ye.return=De,De=Ye;break e}else{m(De,Te);break}else f(De,Te);Te=Te.sibling}Ye=l1(ke,De.mode,Ye),Ye.return=De,De=Ye}return j(De);case se:return ke=Cc(ke),hr(De,Te,ke,Ye)}if(oe(ke))return Rt(De,Te,ke,Ye);if($(ke)){if(Lt=$(ke),typeof Lt!="function")throw Error(i(150));return ke=Lt.call(ke),Ht(De,Te,ke,Ye)}if(typeof ke.then=="function")return hr(De,Te,l0(ke),Ye);if(ke.$$typeof===B)return hr(De,Te,rt(De,ke),Ye);dp(De,ke)}return typeof ke=="string"&&ke!==""||typeof ke=="number"||typeof ke=="bigint"?(ke=""+ke,Te!==null&&Te.tag===6?(m(De,Te.sibling),Ye=A(Te,ke),Ye.return=De,De=Ye):(m(De,Te),Ye=tp(ke,De.mode,Ye),Ye.return=De,De=Ye),j(De)):m(De,Te)}return function(De,Te,ke,Ye){try{Vf=0;var Lt=hr(De,Te,ke,Ye);return Mc=null,Lt}catch(Dt){if(Dt===Nl||Dt===Ac)throw Dt;var qn=Qa(29,Dt,null,De.mode);return qn.lanes=Ye,qn.return=De,qn}finally{}}}var Bf=v4(!0),b4=v4(!1),bu=!1;function g1(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hp(l,f){l=l.updateQueue,f.updateQueue===l&&(f.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function xu(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function Su(l,f,m){var b=l.updateQueue;if(b===null)return null;if(b=b.shared,(Hn&2)!==0){var A=b.pending;return A===null?f.next=f:(f.next=A.next,A.next=f),b.pending=f,f=t0(l),o1(l,null,m),f}return To(l,b,f,m),t0(l)}function Ts(l,f,m){if(f=f.updateQueue,f!==null&&(f=f.shared,(m&4194048)!==0)){var b=f.lanes;b&=l.pendingLanes,m|=b,f.lanes=m,zh(l,m)}}function u0(l,f){var m=l.updateQueue,b=l.alternate;if(b!==null&&(b=b.updateQueue,m===b)){var A=null,O=null;if(m=m.firstBaseUpdate,m!==null){do{var j={lane:m.lane,tag:m.tag,payload:m.payload,callback:null,next:null};O===null?A=O=j:O=O.next=j,m=m.next}while(m!==null);O===null?A=O=f:O=O.next=f}else A=O=f;m={baseState:b.baseState,firstBaseUpdate:A,lastBaseUpdate:O,shared:b.shared,callbacks:b.callbacks},l.updateQueue=m;return}l=m.lastBaseUpdate,l===null?m.firstBaseUpdate=f:l.next=f,m.lastBaseUpdate=f}var y1=!1;function pp(){if(y1){var l=Tc;if(l!==null)throw l}}function Rc(l,f,m,b){y1=!1;var A=l.updateQueue;bu=!1;var O=A.firstBaseUpdate,j=A.lastBaseUpdate,ne=A.shared.pending;if(ne!==null){A.shared.pending=null;var ve=ne,ze=ve.next;ve.next=null,j===null?O=ze:j.next=ze,j=ve;var qe=l.alternate;qe!==null&&(qe=qe.updateQueue,ne=qe.lastBaseUpdate,ne!==j&&(ne===null?qe.firstBaseUpdate=ze:ne.next=ze,qe.lastBaseUpdate=ve))}if(O!==null){var Ke=A.baseState;j=0,qe=ze=ve=null,ne=O;do{var Ie=ne.lane&-536870913,Ue=Ie!==ne.lane;if(Ue?(zn&Ie)===Ie:(b&Ie)===Ie){Ie!==0&&Ie===wc&&(y1=!0),qe!==null&&(qe=qe.next={lane:0,tag:ne.tag,payload:ne.payload,callback:null,next:null});e:{var Rt=l,Ht=ne;Ie=f;var hr=m;switch(Ht.tag){case 1:if(Rt=Ht.payload,typeof Rt=="function"){Ke=Rt.call(hr,Ke,Ie);break e}Ke=Rt;break e;case 3:Rt.flags=Rt.flags&-65537|128;case 0:if(Rt=Ht.payload,Ie=typeof Rt=="function"?Rt.call(hr,Ke,Ie):Rt,Ie==null)break e;Ke=S({},Ke,Ie);break e;case 2:bu=!0}}Ie=ne.callback,Ie!==null&&(l.flags|=64,Ue&&(l.flags|=8192),Ue=A.callbacks,Ue===null?A.callbacks=[Ie]:Ue.push(Ie))}else Ue={lane:Ie,tag:ne.tag,payload:ne.payload,callback:ne.callback,next:null},qe===null?(ze=qe=Ue,ve=Ke):qe=qe.next=Ue,j|=Ie;if(ne=ne.next,ne===null){if(ne=A.shared.pending,ne===null)break;Ue=ne,ne=Ue.next,Ue.next=null,A.lastBaseUpdate=Ue,A.shared.pending=null}}while(!0);qe===null&&(ve=Ke),A.baseState=ve,A.firstBaseUpdate=ze,A.lastBaseUpdate=qe,O===null&&(A.shared.lanes=0),il|=j,l.lanes=j,l.memoizedState=Ke}}function jf(l,f){if(typeof l!="function")throw Error(i(191,l));l.call(f)}function v1(l,f){var m=l.callbacks;if(m!==null)for(l.callbacks=null,l=0;l<m.length;l++)jf(m[l],f)}var Zo=F(null),Yi=F(0);function mp(l,f){l=Vs,Y(Yi,l),Y(Zo,f),Vs=l|f.baseLanes}function x4(){Y(Yi,Vs),Y(Zo,Zo.current)}function gp(){Vs=Yi.current,ee(Zo),ee(Yi)}var ua=F(null),no=null;function Eu(l){var f=l.alternate;Y(Lr,Lr.current&1),Y(ua,l),no===null&&(f===null||Zo.current!==null||f.memoizedState!==null)&&(no=l)}function yp(l){Y(Lr,Lr.current),Y(ua,l),no===null&&(no=l)}function vp(l){l.tag===22?(Y(Lr,Lr.current),Y(ua,l),no===null&&(no=l)):As()}function As(){Y(Lr,Lr.current),Y(ua,ua.current)}function ca(l){ee(ua),no===l&&(no=null),ee(Lr)}var Lr=F(0);function Pf(l){for(var f=l;f!==null;){if(f.tag===13){var m=f.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||Dx(m)||ol(m)))return f}else if(f.tag===19&&(f.memoizedProps.revealOrder==="forwards"||f.memoizedProps.revealOrder==="backwards"||f.memoizedProps.revealOrder==="unstable_legacy-backwards"||f.memoizedProps.revealOrder==="together")){if((f.flags&128)!==0)return f}else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===l)break;for(;f.sibling===null;){if(f.return===null||f.return===l)return null;f=f.return}f.sibling.return=f.return,f=f.sibling}return null}var kl=0,cn=null,nr=null,Qr=null,bp=!1,wu=!1,_c=!1,c0=0,f0=0,Uf=null,S4=0;function Vr(){throw Error(i(321))}function b1(l,f){if(f===null)return!1;for(var m=0;m<f.length&&m<l.length;m++)if(!Xa(l[m],f[m]))return!1;return!0}function Tu(l,f,m,b,A,O){return kl=O,cn=f,f.memoizedState=null,f.updateQueue=null,f.lanes=0,Z.H=l===null||l.memoizedState===null?Z6:V4,_c=!1,O=m(b,A),_c=!1,wu&&(O=S1(f,m,b,A)),x1(l),O}function x1(l){Z.H=y0;var f=nr!==null&&nr.next!==null;if(kl=0,Qr=nr=cn=null,bp=!1,f0=0,Uf=null,f)throw Error(i(300));l===null||li||(l=l.dependencies,l!==null&&sa(l)&&(li=!0))}function S1(l,f,m,b){cn=l;var A=0;do{if(wu&&(Uf=null),f0=0,wu=!1,25<=A)throw Error(i(301));if(A+=1,Qr=nr=null,l.updateQueue!=null){var O=l.updateQueue;O.lastEffect=null,O.events=null,O.stores=null,O.memoCache!=null&&(O.memoCache.index=0)}Z.H=B4,O=f(m,b)}while(wu);return O}function Y8(){var l=Z.H,f=l.useState()[0];return f=typeof f.then=="function"?d0(f):f,l=l.useState()[0],(nr!==null?nr.memoizedState:null)!==l&&(cn.flags|=1024),f}function E4(){var l=c0!==0;return c0=0,l}function E1(l,f,m){f.updateQueue=l.updateQueue,f.flags&=-2053,l.lanes&=~m}function $f(l){if(bp){for(l=l.memoizedState;l!==null;){var f=l.queue;f!==null&&(f.pending=null),l=l.next}bp=!1}kl=0,Qr=nr=cn=null,wu=!1,f0=c0=0,Uf=null}function Xi(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qr===null?cn.memoizedState=Qr=l:Qr=Qr.next=l,Qr}function Dr(){if(nr===null){var l=cn.alternate;l=l!==null?l.memoizedState:null}else l=nr.next;var f=Qr===null?cn.memoizedState:Qr.next;if(f!==null)Qr=f,nr=l;else{if(l===null)throw cn.alternate===null?Error(i(467)):Error(i(310));nr=l,l={memoizedState:nr.memoizedState,baseState:nr.baseState,baseQueue:nr.baseQueue,queue:nr.queue,next:null},Qr===null?cn.memoizedState=Qr=l:Qr=Qr.next=l}return Qr}function xp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function d0(l){var f=f0;return f0+=1,Uf===null&&(Uf=[]),l=m4(Uf,l,f),f=cn,(Qr===null?f.memoizedState:Qr.next)===null&&(f=f.alternate,Z.H=f===null||f.memoizedState===null?Z6:V4),l}function h0(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return d0(l);if(l.$$typeof===B)return Vt(l)}throw Error(i(438,String(l)))}function Sp(l){var f=null,m=cn.updateQueue;if(m!==null&&(f=m.memoCache),f==null){var b=cn.alternate;b!==null&&(b=b.updateQueue,b!==null&&(b=b.memoCache,b!=null&&(f={data:b.data.map(function(A){return A.slice()}),index:0})))}if(f==null&&(f={data:[],index:0}),m===null&&(m=xp(),cn.updateQueue=m),m.memoCache=f,m=f.data[f.index],m===void 0)for(m=f.data[f.index]=Array(l),b=0;b<l;b++)m[b]=ie;return f.index++,m}function Cs(l,f){return typeof f=="function"?f(l):f}function Ep(l){var f=Dr();return Au(f,nr,l)}function Au(l,f,m){var b=l.queue;if(b===null)throw Error(i(311));b.lastRenderedReducer=m;var A=l.baseQueue,O=b.pending;if(O!==null){if(A!==null){var j=A.next;A.next=O.next,O.next=j}f.baseQueue=A=O,b.pending=null}if(O=l.baseState,A===null)l.memoizedState=O;else{f=A.next;var ne=j=null,ve=null,ze=f,qe=!1;do{var Ke=ze.lane&-536870913;if(Ke!==ze.lane?(zn&Ke)===Ke:(kl&Ke)===Ke){var Ie=ze.revertLane;if(Ie===0)ve!==null&&(ve=ve.next={lane:0,revertLane:0,gesture:null,action:ze.action,hasEagerState:ze.hasEagerState,eagerState:ze.eagerState,next:null}),Ke===wc&&(qe=!0);else if((kl&Ie)===Ie){ze=ze.next,Ie===wc&&(qe=!0);continue}else Ke={lane:0,revertLane:ze.revertLane,gesture:null,action:ze.action,hasEagerState:ze.hasEagerState,eagerState:ze.eagerState,next:null},ve===null?(ne=ve=Ke,j=O):ve=ve.next=Ke,cn.lanes|=Ie,il|=Ie;Ke=ze.action,_c&&m(O,Ke),O=ze.hasEagerState?ze.eagerState:m(O,Ke)}else Ie={lane:Ke,revertLane:ze.revertLane,gesture:ze.gesture,action:ze.action,hasEagerState:ze.hasEagerState,eagerState:ze.eagerState,next:null},ve===null?(ne=ve=Ie,j=O):ve=ve.next=Ie,cn.lanes|=Ke,il|=Ke;ze=ze.next}while(ze!==null&&ze!==f);if(ve===null?j=O:ve.next=ne,!Xa(O,l.memoizedState)&&(li=!0,qe&&(m=Tc,m!==null)))throw m;l.memoizedState=O,l.baseState=j,l.baseQueue=ve,b.lastRenderedState=O}return A===null&&(b.lanes=0),[l.memoizedState,b.dispatch]}function w1(l){var f=Dr(),m=f.queue;if(m===null)throw Error(i(311));m.lastRenderedReducer=l;var b=m.dispatch,A=m.pending,O=f.memoizedState;if(A!==null){m.pending=null;var j=A=A.next;do O=l(O,j.action),j=j.next;while(j!==A);Xa(O,f.memoizedState)||(li=!0),f.memoizedState=O,f.baseQueue===null&&(f.baseState=O),m.lastRenderedState=O}return[O,b]}function w4(l,f,m){var b=cn,A=Dr(),O=kn;if(O){if(m===void 0)throw Error(i(407));m=m()}else m=f();var j=!Xa((nr||A).memoizedState,m);if(j&&(A.memoizedState=m,li=!0),A=A.queue,Op(A4.bind(null,b,A,l),[l]),A.getSnapshot!==f||j||Qr!==null&&Qr.memoizedState.tag&1){if(b.flags|=2048,Hf(9,{destroy:void 0},wp.bind(null,b,A,m,f),null),dr===null)throw Error(i(349));O||(kl&127)!==0||T4(b,f,m)}return m}function T4(l,f,m){l.flags|=16384,l={getSnapshot:f,value:m},f=cn.updateQueue,f===null?(f=xp(),cn.updateQueue=f,f.stores=[l]):(m=f.stores,m===null?f.stores=[l]:m.push(l))}function wp(l,f,m,b){f.value=m,f.getSnapshot=b,T1(f)&&A1(l)}function A4(l,f,m){return m(function(){T1(f)&&A1(l)})}function T1(l){var f=l.getSnapshot;l=l.value;try{var m=f();return!Xa(l,m)}catch{return!0}}function A1(l){var f=oa(l,2);f!==null&&so(f,l,2)}function Tp(l){var f=Xi();if(typeof l=="function"){var m=l;if(l=m(),_c){Fn(!0);try{m()}finally{Fn(!1)}}}return f.memoizedState=f.baseState=l,f.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cs,lastRenderedState:l},f}function F6(l,f,m,b){return l.baseState=m,Au(l,nr,typeof b=="function"?b:Cs)}function Wi(l,f,m,b,A){if(Cu(l))throw Error(i(485));if(l=f.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)}};Z.T!==null?m(!0):O.isTransition=!1,b(O),m=f.pending,m===null?(O.next=f.pending=O,C4(f,O)):(O.next=m.next,f.pending=m.next=O)}}function C4(l,f){var m=f.action,b=f.payload,A=l.state;if(f.isTransition){var O=Z.T,j={};Z.T=j;try{var ne=m(A,b),ve=Z.S;ve!==null&&ve(j,ne),O4(l,f,ne)}catch(ze){C1(l,f,ze)}finally{O!==null&&j.types!==null&&(O.types=j.types),Z.T=O}}else try{O=m(A,b),O4(l,f,O)}catch(ze){C1(l,f,ze)}}function O4(l,f,m){m!==null&&typeof m=="object"&&typeof m.then=="function"?m.then(function(b){M4(l,f,b)},function(b){return C1(l,f,b)}):M4(l,f,m)}function M4(l,f,m){f.status="fulfilled",f.value=m,p0(f),l.state=m,f=l.pending,f!==null&&(m=f.next,m===f?l.pending=null:(m=m.next,f.next=m,C4(l,m)))}function C1(l,f,m){var b=l.pending;if(l.pending=null,b!==null){b=b.next;do f.status="rejected",f.reason=m,p0(f),f=f.next;while(f!==b)}l.action=null}function p0(l){l=l.listeners;for(var f=0;f<l.length;f++)(0,l[f])()}function R4(l,f){return f}function Ap(l,f){if(kn){var m=dr.formState;if(m!==null){e:{var b=cn;if(kn){if(xr){t:{for(var A=xr,O=Ja;A.nodeType!==8;){if(!O){A=null;break t}if(A=Ji(A.nextSibling),A===null){A=null;break t}}O=A.data,A=O==="F!"||O==="F"?A:null}if(A){xr=Ji(A.nextSibling),b=A.data==="F!";break e}}Oa(b)}b=!1}b&&(f=m[0])}}return m=Xi(),m.memoizedState=m.baseState=f,b={pending:null,lanes:0,dispatch:null,lastRenderedReducer:R4,lastRenderedState:f},m.queue=b,m=I4.bind(null,cn,b),b.dispatch=m,b=Tp(!1),O=Gf.bind(null,cn,!1,b.queue),b=Xi(),A={state:f,dispatch:null,action:l,pending:null},b.queue=A,m=Wi.bind(null,cn,A,O,m),A.dispatch=m,b.memoizedState=l,[f,m,!1]}function _4(l){var f=Dr();return Y6(f,nr,l)}function Y6(l,f,m){if(f=Au(l,f,R4)[0],l=Ep(Cs)[0],typeof f=="object"&&f!==null&&typeof f.then=="function")try{var b=d0(f)}catch(j){throw j===Nl?Ac:j}else b=f;f=Dr();var A=f.queue,O=A.dispatch;return m!==f.memoizedState&&(cn.flags|=2048,Hf(9,{destroy:void 0},O1.bind(null,A,m),null)),[b,O,l]}function O1(l,f){l.action=f}function M1(l){var f=Dr(),m=nr;if(m!==null)return Y6(f,m,l);Dr(),f=f.memoizedState,m=Dr();var b=m.queue.dispatch;return m.memoizedState=l,[f,b,!1]}function Hf(l,f,m,b){return l={tag:l,create:m,deps:b,inst:f,next:null},f=cn.updateQueue,f===null&&(f=xp(),cn.updateQueue=f),m=f.lastEffect,m===null?f.lastEffect=l.next=l:(b=m.next,m.next=l,l.next=b,f.lastEffect=l),l}function D4(){return Dr().memoizedState}function Cp(l,f,m,b){var A=Xi();cn.flags|=l,A.memoizedState=Hf(1|f,{destroy:void 0},m,b===void 0?null:b)}function m0(l,f,m,b){var A=Dr();b=b===void 0?null:b;var O=A.memoizedState.inst;nr!==null&&b!==null&&b1(b,nr.memoizedState.deps)?A.memoizedState=Hf(f,O,m,b):(cn.flags|=l,A.memoizedState=Hf(1|f,O,m,b))}function R1(l,f){Cp(8390656,8,l,f)}function Op(l,f){m0(2048,8,l,f)}function X6(l){cn.flags|=4;var f=cn.updateQueue;if(f===null)f=xp(),cn.updateQueue=f,f.events=[l];else{var m=f.events;m===null?f.events=[l]:m.push(l)}}function _1(l){var f=Dr().memoizedState;return X6({ref:f,nextImpl:l}),function(){if((Hn&2)!==0)throw Error(i(440));return f.impl.apply(void 0,arguments)}}function Mp(l,f){return m0(4,2,l,f)}function D1(l,f){return m0(4,4,l,f)}function N4(l,f){if(typeof f=="function"){l=l();var m=f(l);return function(){typeof m=="function"?m():f(null)}}if(f!=null)return l=l(),f.current=l,function(){f.current=null}}function N1(l,f,m){m=m!=null?m.concat([l]):null,m0(4,4,N4.bind(null,f,l),m)}function k1(){}function Os(l,f){var m=Dr();f=f===void 0?null:f;var b=m.memoizedState;return f!==null&&b1(f,b[1])?b[0]:(m.memoizedState=[l,f],l)}function z1(l,f){var m=Dr();f=f===void 0?null:f;var b=m.memoizedState;if(f!==null&&b1(f,b[1]))return b[0];if(b=l(),_c){Fn(!0);try{l()}finally{Fn(!1)}}return m.memoizedState=[b,f],b}function k4(l,f,m){return m===void 0||(kl&1073741824)!==0&&(zn&261930)===0?l.memoizedState=f:(l.memoizedState=m,l=fx(),cn.lanes|=l,il|=l,m)}function I1(l,f,m,b){return Xa(m,f)?m:Zo.current!==null?(l=k4(l,m,b),Xa(l,f)||(li=!0),l):(kl&42)===0||(kl&1073741824)!==0&&(zn&261930)===0?(li=!0,l.memoizedState=m):(l=fx(),cn.lanes|=l,il|=l,f)}function Ms(l,f,m,b,A){var O=ae.p;ae.p=O!==0&&8>O?O:8;var j=Z.T,ne={};Z.T=ne,Gf(l,!1,f,m);try{var ve=A(),ze=Z.S;if(ze!==null&&ze(ne,ve),ve!==null&&typeof ve=="object"&&typeof ve.then=="function"){var qe=p1(ve,b);qf(l,f,qe,ka(l))}else qf(l,f,b,ka(l))}catch(Ke){qf(l,f,{then:function(){},status:"rejected",reason:Ke},ka())}finally{ae.p=O,j!==null&&ne.types!==null&&(j.types=ne.types),Z.T=j}}function z4(){}function L1(l,f,m,b){if(l.tag!==5)throw Error(i(476));var A=Rp(l).queue;Ms(l,A,f,de,m===null?z4:function(){return g0(l),m(b)})}function Rp(l){var f=l.memoizedState;if(f!==null)return f;f={memoizedState:de,baseState:de,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cs,lastRenderedState:de},next:null};var m={};return f.next={memoizedState:m,baseState:m,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cs,lastRenderedState:m},next:null},l.memoizedState=f,l=l.alternate,l!==null&&(l.memoizedState=f),f}function g0(l){var f=Rp(l);f.next===null&&(f=l.alternate.memoizedState),qf(l,f.next.queue,{},ka())}function rr(){return Vt(Jr)}function W6(){return Dr().memoizedState}function Q6(){return Dr().memoizedState}function K6(l){for(var f=l.return;f!==null;){switch(f.tag){case 24:case 3:var m=ka();l=xu(m);var b=Su(f,l,m);b!==null&&(so(b,f,m),Ts(b,f,m)),f={cache:h1()},l.payload=f;return}f=f.return}}function Rs(l,f,m){var b=ka();m={lane:b,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},Cu(l)?L4(f,m):(m=Qo(l,f,m,b),m!==null&&(so(m,l,b),V1(m,f,b)))}function I4(l,f,m){var b=ka();qf(l,f,m,b)}function qf(l,f,m,b){var A={lane:b,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null};if(Cu(l))L4(f,A);else{var O=l.alternate;if(l.lanes===0&&(O===null||O.lanes===0)&&(O=f.lastRenderedReducer,O!==null))try{var j=f.lastRenderedState,ne=O(j,m);if(A.hasEagerState=!0,A.eagerState=ne,Xa(ne,j))return To(l,f,A,0),dr===null&&wo(),!1}catch{}finally{}if(m=Qo(l,f,A,b),m!==null)return so(m,l,b),V1(m,f,b),!0}return!1}function Gf(l,f,m,b){if(b={lane:2,revertLane:nd(),gesture:null,action:b,hasEagerState:!1,eagerState:null,next:null},Cu(l)){if(f)throw Error(i(479))}else f=Qo(l,m,b,2),f!==null&&so(f,l,2)}function Cu(l){var f=l.alternate;return l===cn||f!==null&&f===cn}function L4(l,f){wu=bp=!0;var m=l.pending;m===null?f.next=f:(f.next=m.next,m.next=f),l.pending=f}function V1(l,f,m){if((m&4194048)!==0){var b=f.lanes;b&=l.pendingLanes,m|=b,f.lanes=m,zh(l,m)}}var y0={readContext:Vt,use:h0,useCallback:Vr,useContext:Vr,useEffect:Vr,useImperativeHandle:Vr,useLayoutEffect:Vr,useInsertionEffect:Vr,useMemo:Vr,useReducer:Vr,useRef:Vr,useState:Vr,useDebugValue:Vr,useDeferredValue:Vr,useTransition:Vr,useSyncExternalStore:Vr,useId:Vr,useHostTransitionStatus:Vr,useFormState:Vr,useActionState:Vr,useOptimistic:Vr,useMemoCache:Vr,useCacheRefresh:Vr};y0.useEffectEvent=Vr;var Z6={readContext:Vt,use:h0,useCallback:function(l,f){return Xi().memoizedState=[l,f===void 0?null:f],l},useContext:Vt,useEffect:R1,useImperativeHandle:function(l,f,m){m=m!=null?m.concat([l]):null,Cp(4194308,4,N4.bind(null,f,l),m)},useLayoutEffect:function(l,f){return Cp(4194308,4,l,f)},useInsertionEffect:function(l,f){Cp(4,2,l,f)},useMemo:function(l,f){var m=Xi();f=f===void 0?null:f;var b=l();if(_c){Fn(!0);try{l()}finally{Fn(!1)}}return m.memoizedState=[b,f],b},useReducer:function(l,f,m){var b=Xi();if(m!==void 0){var A=m(f);if(_c){Fn(!0);try{m(f)}finally{Fn(!1)}}}else A=f;return b.memoizedState=b.baseState=A,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:A},b.queue=l,l=l.dispatch=Rs.bind(null,cn,l),[b.memoizedState,l]},useRef:function(l){var f=Xi();return l={current:l},f.memoizedState=l},useState:function(l){l=Tp(l);var f=l.queue,m=I4.bind(null,cn,f);return f.dispatch=m,[l.memoizedState,m]},useDebugValue:k1,useDeferredValue:function(l,f){var m=Xi();return k4(m,l,f)},useTransition:function(){var l=Tp(!1);return l=Ms.bind(null,cn,l.queue,!0,!1),Xi().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,f,m){var b=cn,A=Xi();if(kn){if(m===void 0)throw Error(i(407));m=m()}else{if(m=f(),dr===null)throw Error(i(349));(zn&127)!==0||T4(b,f,m)}A.memoizedState=m;var O={value:m,getSnapshot:f};return A.queue=O,R1(A4.bind(null,b,O,l),[l]),b.flags|=2048,Hf(9,{destroy:void 0},wp.bind(null,b,O,m,f),null),m},useId:function(){var l=Xi(),f=dr.identifierPrefix;if(kn){var m=Za,b=Mo;m=(b&~(1<<32-bn(b)-1)).toString(32)+m,f="_"+f+"R_"+m,m=c0++,0<m&&(f+="H"+m.toString(32)),f+="_"}else m=S4++,f="_"+f+"r_"+m.toString(32)+"_";return l.memoizedState=f},useHostTransitionStatus:rr,useFormState:Ap,useActionState:Ap,useOptimistic:function(l){var f=Xi();f.memoizedState=f.baseState=l;var m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return f.queue=m,f=Gf.bind(null,cn,!0,m),m.dispatch=f,[l,f]},useMemoCache:Sp,useCacheRefresh:function(){return Xi().memoizedState=K6.bind(null,cn)},useEffectEvent:function(l){var f=Xi(),m={impl:l};return f.memoizedState=m,function(){if((Hn&2)!==0)throw Error(i(440));return m.impl.apply(void 0,arguments)}}},V4={readContext:Vt,use:h0,useCallback:Os,useContext:Vt,useEffect:Op,useImperativeHandle:N1,useInsertionEffect:Mp,useLayoutEffect:D1,useMemo:z1,useReducer:Ep,useRef:D4,useState:function(){return Ep(Cs)},useDebugValue:k1,useDeferredValue:function(l,f){var m=Dr();return I1(m,nr.memoizedState,l,f)},useTransition:function(){var l=Ep(Cs)[0],f=Dr().memoizedState;return[typeof l=="boolean"?l:d0(l),f]},useSyncExternalStore:w4,useId:W6,useHostTransitionStatus:rr,useFormState:_4,useActionState:_4,useOptimistic:function(l,f){var m=Dr();return F6(m,nr,l,f)},useMemoCache:Sp,useCacheRefresh:Q6};V4.useEffectEvent=_1;var B4={readContext:Vt,use:h0,useCallback:Os,useContext:Vt,useEffect:Op,useImperativeHandle:N1,useInsertionEffect:Mp,useLayoutEffect:D1,useMemo:z1,useReducer:w1,useRef:D4,useState:function(){return w1(Cs)},useDebugValue:k1,useDeferredValue:function(l,f){var m=Dr();return nr===null?k4(m,l,f):I1(m,nr.memoizedState,l,f)},useTransition:function(){var l=w1(Cs)[0],f=Dr().memoizedState;return[typeof l=="boolean"?l:d0(l),f]},useSyncExternalStore:w4,useId:W6,useHostTransitionStatus:rr,useFormState:M1,useActionState:M1,useOptimistic:function(l,f){var m=Dr();return nr!==null?F6(m,nr,l,f):(m.baseState=l,[l,m.queue.dispatch])},useMemoCache:Sp,useCacheRefresh:Q6};B4.useEffectEvent=_1;function j4(l,f,m,b){f=l.memoizedState,m=m(b,f),m=m==null?f:S({},f,m),l.memoizedState=m,l.lanes===0&&(l.updateQueue.baseState=m)}var Ff={enqueueSetState:function(l,f,m){l=l._reactInternals;var b=ka(),A=xu(b);A.payload=f,m!=null&&(A.callback=m),f=Su(l,A,b),f!==null&&(so(f,l,b),Ts(f,l,b))},enqueueReplaceState:function(l,f,m){l=l._reactInternals;var b=ka(),A=xu(b);A.tag=1,A.payload=f,m!=null&&(A.callback=m),f=Su(l,A,b),f!==null&&(so(f,l,b),Ts(f,l,b))},enqueueForceUpdate:function(l,f){l=l._reactInternals;var m=ka(),b=xu(m);b.tag=2,f!=null&&(b.callback=f),f=Su(l,b,m),f!==null&&(so(f,l,m),Ts(f,l,m))}};function zl(l,f,m,b,A,O,j){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(b,O,j):f.prototype&&f.prototype.isPureReactComponent?!yc(m,b)||!yc(A,O):!0}function P4(l,f,m,b){l=f.state,typeof f.componentWillReceiveProps=="function"&&f.componentWillReceiveProps(m,b),typeof f.UNSAFE_componentWillReceiveProps=="function"&&f.UNSAFE_componentWillReceiveProps(m,b),f.state!==l&&Ff.enqueueReplaceState(f,f.state,null)}function Yf(l,f){var m=f;if("ref"in f){m={};for(var b in f)b!=="ref"&&(m[b]=f[b])}if(l=l.defaultProps){m===f&&(m=S({},m));for(var A in l)m[A]===void 0&&(m[A]=l[A])}return m}function U4(l){Sc(l)}function B1(l){console.error(l)}function $4(l){Sc(l)}function v0(l,f){try{var m=l.onUncaughtError;m(f.value,{componentStack:f.stack})}catch(b){setTimeout(function(){throw b})}}function j1(l,f,m){try{var b=l.onCaughtError;b(m.value,{componentStack:m.stack,errorBoundary:f.tag===1?f.stateNode:null})}catch(A){setTimeout(function(){throw A})}}function b0(l,f,m){return m=xu(m),m.tag=3,m.payload={element:null},m.callback=function(){v0(l,f)},m}function J6(l){return l=xu(l),l.tag=3,l}function H4(l,f,m,b){var A=m.type.getDerivedStateFromError;if(typeof A=="function"){var O=b.value;l.payload=function(){return A(O)},l.callback=function(){j1(f,m,b)}}var j=m.stateNode;j!==null&&typeof j.componentDidCatch=="function"&&(l.callback=function(){j1(f,m,b),typeof A!="function"&&(js===null?js=new Set([this]):js.add(this));var ne=b.stack;this.componentDidCatch(b.value,{componentStack:ne!==null?ne:""})})}function eE(l,f,m,b,A){if(m.flags|=32768,b!==null&&typeof b=="object"&&typeof b.then=="function"){if(f=m.alternate,f!==null&&Ro(f,m,A,!0),m=ua.current,m!==null){switch(m.tag){case 31:case 13:return no===null?K1():m.alternate===null&&Nr===0&&(Nr=3),m.flags&=-257,m.flags|=65536,m.lanes=A,b===o0?m.flags|=16384:(f=m.updateQueue,f===null?m.updateQueue=new Set([b]):f.add(b),ey(l,b,A)),!1;case 22:return m.flags|=65536,b===o0?m.flags|=16384:(f=m.updateQueue,f===null?(f={transitions:null,markerInstances:null,retryQueue:new Set([b])},m.updateQueue=f):(m=f.retryQueue,m===null?f.retryQueue=new Set([b]):m.add(b)),ey(l,b,A)),!1}throw Error(i(435,m.tag))}return ey(l,b,A),K1(),!1}if(kn)return f=ua.current,f!==null?((f.flags&65536)===0&&(f.flags|=256),f.flags|=65536,f.lanes=A,b!==xs&&(l=Error(i(422),{cause:b}),op(Co(l,m)))):(b!==xs&&(f=Error(i(423),{cause:b}),op(Co(f,m))),l=l.current.alternate,l.flags|=65536,A&=-A,l.lanes|=A,b=Co(b,m),A=b0(l.stateNode,b,A),u0(l,A),Nr!==4&&(Nr=2)),!1;var O=Error(i(520),{cause:b});if(O=Co(O,m),Kr===null?Kr=[O]:Kr.push(O),Nr!==4&&(Nr=2),f===null)return!0;b=Co(b,m),m=f;do{switch(m.tag){case 3:return m.flags|=65536,l=A&-A,m.lanes|=l,l=b0(m.stateNode,b,l),u0(m,l),!1;case 1:if(f=m.type,O=m.stateNode,(m.flags&128)===0&&(typeof f.getDerivedStateFromError=="function"||O!==null&&typeof O.componentDidCatch=="function"&&(js===null||!js.has(O))))return m.flags|=65536,A&=-A,m.lanes|=A,A=J6(A),H4(A,l,m,b),u0(m,A),!1}m=m.return}while(m!==null);return!1}var q4=Error(i(461)),li=!1;function Ii(l,f,m,b){f.child=l===null?b4(f,null,m,b):Bf(f,l.child,m,b)}function _s(l,f,m,b,A){m=m.render;var O=f.ref;if("ref"in b){var j={};for(var ne in b)ne!=="ref"&&(j[ne]=b[ne])}else j=b;return ws(f),b=Tu(l,f,m,j,O,A),ne=E4(),l!==null&&!li?(E1(l,f,A),Ds(l,f,A)):(kn&&ne&&s1(f),f.flags|=1,Ii(l,f,b,A),f.child)}function G4(l,f,m,b,A){if(l===null){var O=m.type;return typeof O=="function"&&!Ko(O)&&O.defaultProps===void 0&&m.compare===null?(f.tag=15,f.type=O,F4(l,f,O,b,A)):(l=ep(m.type,null,b,f,f.mode,A),l.ref=f.ref,l.return=f,f.child=l)}if(O=l.child,!Xf(l,A)){var j=O.memoizedProps;if(m=m.compare,m=m!==null?m:yc,m(j,b)&&l.ref===f.ref)return Ds(l,f,A)}return f.flags|=1,l=Ao(O,b),l.ref=f.ref,l.return=f,f.child=l}function F4(l,f,m,b,A){if(l!==null){var O=l.memoizedProps;if(yc(O,b)&&l.ref===f.ref)if(li=!1,f.pendingProps=b=O,Xf(l,A))(l.flags&131072)!==0&&(li=!0);else return f.lanes=l.lanes,Ds(l,f,A)}return Jo(l,f,m,b,A)}function Y4(l,f,m,b){var A=b.children,O=l!==null?l.memoizedState:null;if(l===null&&f.stateNode===null&&(f.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),b.mode==="hidden"){if((f.flags&128)!==0){if(O=O!==null?O.baseLanes|m:m,l!==null){for(b=f.child=l.child,A=0;b!==null;)A=A|b.lanes|b.childLanes,b=b.sibling;b=A&~O}else b=0,f.child=null;return Dp(l,f,O,m,b)}if((m&536870912)!==0)f.memoizedState={baseLanes:0,cachePool:null},l!==null&&to(f,O!==null?O.cachePool:null),O!==null?mp(f,O):x4(),vp(f);else return b=f.lanes=536870912,Dp(l,f,O!==null?O.baseLanes|m:m,m,b)}else O!==null?(to(f,O.cachePool),mp(f,O),As(),f.memoizedState=null):(l!==null&&to(f,null),x4(),As());return Ii(l,f,A,m),f.child}function _p(l,f){return l!==null&&l.tag===22||f.stateNode!==null||(f.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),f.sibling}function Dp(l,f,m,b,A){var O=vu();return O=O===null?null:{parent:Wr._currentValue,pool:O},f.memoizedState={baseLanes:m,cachePool:O},l!==null&&to(f,null),x4(),vp(f),l!==null&&Ro(l,f,b,!0),f.childLanes=A,null}function Qi(l,f){return f=Ou({mode:f.mode,children:f.children},l.mode),f.ref=l.ref,l.child=f,f.return=l,f}function X4(l,f,m){return Bf(f,l.child,null,m),l=Qi(f,f.pendingProps),l.flags|=2,ca(f),f.memoizedState=null,l}function ro(l,f,m){var b=f.pendingProps,A=(f.flags&128)!==0;if(f.flags&=-129,l===null){if(kn){if(b.mode==="hidden")return l=Qi(f,b),f.lanes=536870912,_p(null,l);if(yp(f),(l=xr)?(l=yn(l,Ja),l=l!==null&&l.data==="&"?l:null,l!==null&&(f.memoizedState={dehydrated:l,treeContext:Rl!==null?{id:Mo,overflow:Za}:null,retryLane:536870912,hydrationErrors:null},m=np(l),m.return=f,f.child=m,mi=f,xr=null)):l=null,l===null)throw Oa(f);return f.lanes=536870912,null}return Qi(f,b)}var O=l.memoizedState;if(O!==null){var j=O.dehydrated;if(yp(f),A)if(f.flags&256)f.flags&=-257,f=X4(l,f,m);else if(f.memoizedState!==null)f.child=l.child,f.flags|=128,f=null;else throw Error(i(558));else if(li||Ro(l,f,m,!1),A=(m&l.childLanes)!==0,li||A){if(b=dr,b!==null&&(j=is(b,m),j!==0&&j!==O.retryLane))throw O.retryLane=j,oa(l,j),so(b,l,j),q4;K1(),f=X4(l,f,m)}else l=O.treeContext,xr=Ji(j.nextSibling),mi=f,kn=!0,bs=null,Ja=!1,l!==null&&h4(f,l),f=Qi(f,b),f.flags|=4096;return f}return l=Ao(l.child,{mode:b.mode,children:b.children}),l.ref=f.ref,f.child=l,l.return=f,l}function Np(l,f){var m=f.ref;if(m===null)l!==null&&l.ref!==null&&(f.flags|=4194816);else{if(typeof m!="function"&&typeof m!="object")throw Error(i(284));(l===null||l.ref!==m)&&(f.flags|=4194816)}}function Jo(l,f,m,b,A){return ws(f),m=Tu(l,f,m,b,void 0,A),b=E4(),l!==null&&!li?(E1(l,f,A),Ds(l,f,A)):(kn&&b&&s1(f),f.flags|=1,Ii(l,f,m,A),f.child)}function W4(l,f,m,b,A,O){return ws(f),f.updateQueue=null,m=S1(f,b,m,A),x1(l),b=E4(),l!==null&&!li?(E1(l,f,O),Ds(l,f,O)):(kn&&b&&s1(f),f.flags|=1,Ii(l,f,m,O),f.child)}function Dc(l,f,m,b,A){if(ws(f),f.stateNode===null){var O=Nf,j=m.contextType;typeof j=="object"&&j!==null&&(O=Vt(j)),O=new m(b,O),f.memoizedState=O.state!==null&&O.state!==void 0?O.state:null,O.updater=Ff,f.stateNode=O,O._reactInternals=f,O=f.stateNode,O.props=b,O.state=f.memoizedState,O.refs={},g1(f),j=m.contextType,O.context=typeof j=="object"&&j!==null?Vt(j):Nf,O.state=f.memoizedState,j=m.getDerivedStateFromProps,typeof j=="function"&&(j4(f,m,j,b),O.state=f.memoizedState),typeof m.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&&Ff.enqueueReplaceState(O,O.state,null),Rc(f,b,O,A),pp(),O.state=f.memoizedState),typeof O.componentDidMount=="function"&&(f.flags|=4194308),b=!0}else if(l===null){O=f.stateNode;var ne=f.memoizedProps,ve=Yf(m,ne);O.props=ve;var ze=O.context,qe=m.contextType;j=Nf,typeof qe=="object"&&qe!==null&&(j=Vt(qe));var Ke=m.getDerivedStateFromProps;qe=typeof Ke=="function"||typeof O.getSnapshotBeforeUpdate=="function",ne=f.pendingProps!==ne,qe||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(ne||ze!==j)&&P4(f,O,b,j),bu=!1;var Ie=f.memoizedState;O.state=Ie,Rc(f,b,O,A),pp(),ze=f.memoizedState,ne||Ie!==ze||bu?(typeof Ke=="function"&&(j4(f,m,Ke,b),ze=f.memoizedState),(ve=bu||zl(f,m,ve,b,Ie,ze,j))?(qe||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"&&(f.flags|=4194308)):(typeof O.componentDidMount=="function"&&(f.flags|=4194308),f.memoizedProps=b,f.memoizedState=ze),O.props=b,O.state=ze,O.context=j,b=ve):(typeof O.componentDidMount=="function"&&(f.flags|=4194308),b=!1)}else{O=f.stateNode,hp(l,f),j=f.memoizedProps,qe=Yf(m,j),O.props=qe,Ke=f.pendingProps,Ie=O.context,ze=m.contextType,ve=Nf,typeof ze=="object"&&ze!==null&&(ve=Vt(ze)),ne=m.getDerivedStateFromProps,(ze=typeof ne=="function"||typeof O.getSnapshotBeforeUpdate=="function")||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(j!==Ke||Ie!==ve)&&P4(f,O,b,ve),bu=!1,Ie=f.memoizedState,O.state=Ie,Rc(f,b,O,A),pp();var Ue=f.memoizedState;j!==Ke||Ie!==Ue||bu||l!==null&&l.dependencies!==null&&sa(l.dependencies)?(typeof ne=="function"&&(j4(f,m,ne,b),Ue=f.memoizedState),(qe=bu||zl(f,m,qe,b,Ie,Ue,ve)||l!==null&&l.dependencies!==null&&sa(l.dependencies))?(ze||typeof O.UNSAFE_componentWillUpdate!="function"&&typeof O.componentWillUpdate!="function"||(typeof O.componentWillUpdate=="function"&&O.componentWillUpdate(b,Ue,ve),typeof O.UNSAFE_componentWillUpdate=="function"&&O.UNSAFE_componentWillUpdate(b,Ue,ve)),typeof O.componentDidUpdate=="function"&&(f.flags|=4),typeof O.getSnapshotBeforeUpdate=="function"&&(f.flags|=1024)):(typeof O.componentDidUpdate!="function"||j===l.memoizedProps&&Ie===l.memoizedState||(f.flags|=4),typeof O.getSnapshotBeforeUpdate!="function"||j===l.memoizedProps&&Ie===l.memoizedState||(f.flags|=1024),f.memoizedProps=b,f.memoizedState=Ue),O.props=b,O.state=Ue,O.context=ve,b=qe):(typeof O.componentDidUpdate!="function"||j===l.memoizedProps&&Ie===l.memoizedState||(f.flags|=4),typeof O.getSnapshotBeforeUpdate!="function"||j===l.memoizedProps&&Ie===l.memoizedState||(f.flags|=1024),b=!1)}return O=b,Np(l,f),b=(f.flags&128)!==0,O||b?(O=f.stateNode,m=b&&typeof m.getDerivedStateFromError!="function"?null:O.render(),f.flags|=1,l!==null&&b?(f.child=Bf(f,l.child,null,A),f.child=Bf(f,null,m,A)):Ii(l,f,m,A),f.memoizedState=O.state,l=f.child):l=Ds(l,f,A),l}function Q4(l,f,m,b){return _l(),f.flags|=256,Ii(l,f,m,b),f.child}var el={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function kp(l){return{baseLanes:l,cachePool:m1()}}function zp(l,f,m){return l=l!==null?l.childLanes&~m:0,f&&(l|=ao),l}function tl(l,f,m){var b=f.pendingProps,A=!1,O=(f.flags&128)!==0,j;if((j=O)||(j=l!==null&&l.memoizedState===null?!1:(Lr.current&2)!==0),j&&(A=!0,f.flags&=-129),j=(f.flags&32)!==0,f.flags&=-33,l===null){if(kn){if(A?Eu(f):As(),(l=xr)?(l=yn(l,Ja),l=l!==null&&l.data!=="&"?l:null,l!==null&&(f.memoizedState={dehydrated:l,treeContext:Rl!==null?{id:Mo,overflow:Za}:null,retryLane:536870912,hydrationErrors:null},m=np(l),m.return=f,f.child=m,mi=f,xr=null)):l=null,l===null)throw Oa(f);return ol(l)?f.lanes=32:f.lanes=536870912,null}var ne=b.children;return b=b.fallback,A?(As(),A=f.mode,ne=Ou({mode:"hidden",children:ne},A),b=kf(b,A,m,null),ne.return=f,b.return=f,ne.sibling=b,f.child=ne,b=f.child,b.memoizedState=kp(m),b.childLanes=zp(l,j,m),f.memoizedState=el,_p(null,b)):(Eu(f),P1(f,ne))}var ve=l.memoizedState;if(ve!==null&&(ne=ve.dehydrated,ne!==null)){if(O)f.flags&256?(Eu(f),f.flags&=-257,f=U1(l,f,m)):f.memoizedState!==null?(As(),f.child=l.child,f.flags|=128,f=null):(As(),ne=b.fallback,A=f.mode,b=Ou({mode:"visible",children:b.children},A),ne=kf(ne,A,m,null),ne.flags|=2,b.return=f,ne.return=f,b.sibling=ne,f.child=b,Bf(f,l.child,null,m),b=f.child,b.memoizedState=kp(m),b.childLanes=zp(l,j,m),f.memoizedState=el,f=_p(null,b));else if(Eu(f),ol(ne)){if(j=ne.nextSibling&&ne.nextSibling.dataset,j)var ze=j.dgst;j=ze,b=Error(i(419)),b.stack="",b.digest=j,op({value:b,source:null,stack:null}),f=U1(l,f,m)}else if(li||Ro(l,f,m,!1),j=(m&l.childLanes)!==0,li||j){if(j=dr,j!==null&&(b=is(j,m),b!==0&&b!==ve.retryLane))throw ve.retryLane=b,oa(l,b),so(j,l,b),q4;Dx(ne)||K1(),f=U1(l,f,m)}else Dx(ne)?(f.flags|=192,f.child=l.child,f=null):(l=ve.treeContext,xr=Ji(ne.nextSibling),mi=f,kn=!0,bs=null,Ja=!1,l!==null&&h4(f,l),f=P1(f,b.children),f.flags|=4096);return f}return A?(As(),ne=b.fallback,A=f.mode,ve=l.child,ze=ve.sibling,b=Ao(ve,{mode:"hidden",children:b.children}),b.subtreeFlags=ve.subtreeFlags&65011712,ze!==null?ne=Ao(ze,ne):(ne=kf(ne,A,m,null),ne.flags|=2),ne.return=f,b.return=f,b.sibling=ne,f.child=b,_p(null,b),b=f.child,ne=l.child.memoizedState,ne===null?ne=kp(m):(A=ne.cachePool,A!==null?(ve=Wr._currentValue,A=A.parent!==ve?{parent:ve,pool:ve}:A):A=m1(),ne={baseLanes:ne.baseLanes|m,cachePool:A}),b.memoizedState=ne,b.childLanes=zp(l,j,m),f.memoizedState=el,_p(l.child,b)):(Eu(f),m=l.child,l=m.sibling,m=Ao(m,{mode:"visible",children:b.children}),m.return=f,m.sibling=null,l!==null&&(j=f.deletions,j===null?(f.deletions=[l],f.flags|=16):j.push(l)),f.child=m,f.memoizedState=null,m)}function P1(l,f){return f=Ou({mode:"visible",children:f},l.mode),f.return=l,l.child=f}function Ou(l,f){return l=Qa(22,l,null,f),l.lanes=0,l}function U1(l,f,m){return Bf(f,l.child,null,m),l=P1(f,f.pendingProps.children),l.flags|=2,f.memoizedState=null,l}function x0(l,f,m){l.lanes|=f;var b=l.alternate;b!==null&&(b.lanes|=f),lp(l.return,f,m)}function Nc(l,f,m,b,A,O){var j=l.memoizedState;j===null?l.memoizedState={isBackwards:f,rendering:null,renderingStartTime:0,last:b,tail:m,tailMode:A,treeForkCount:O}:(j.isBackwards=f,j.rendering=null,j.renderingStartTime=0,j.last=b,j.tail=m,j.tailMode=A,j.treeForkCount=O)}function K4(l,f,m){var b=f.pendingProps,A=b.revealOrder,O=b.tail;b=b.children;var j=Lr.current,ne=(j&2)!==0;if(ne?(j=j&1|2,f.flags|=128):j&=1,Y(Lr,j),Ii(l,f,b,m),b=kn?n0:0,!ne&&l!==null&&(l.flags&128)!==0)e:for(l=f.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&x0(l,m,f);else if(l.tag===19)x0(l,m,f);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===f)break e;for(;l.sibling===null;){if(l.return===null||l.return===f)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(A){case"forwards":for(m=f.child,A=null;m!==null;)l=m.alternate,l!==null&&Pf(l)===null&&(A=m),m=m.sibling;m=A,m===null?(A=f.child,f.child=null):(A=m.sibling,m.sibling=null),Nc(f,!1,A,m,O,b);break;case"backwards":case"unstable_legacy-backwards":for(m=null,A=f.child,f.child=null;A!==null;){if(l=A.alternate,l!==null&&Pf(l)===null){f.child=A;break}l=A.sibling,A.sibling=m,m=A,A=l}Nc(f,!0,m,null,O,b);break;case"together":Nc(f,!1,null,null,void 0,b);break;default:f.memoizedState=null}return f.child}function Ds(l,f,m){if(l!==null&&(f.dependencies=l.dependencies),il|=f.lanes,(m&f.childLanes)===0)if(l!==null){if(Ro(l,f,m,!1),(m&f.childLanes)===0)return null}else return null;if(l!==null&&f.child!==l.child)throw Error(i(153));if(f.child!==null){for(l=f.child,m=Ao(l,l.pendingProps),f.child=m,m.return=f;l.sibling!==null;)l=l.sibling,m=m.sibling=Ao(l,l.pendingProps),m.return=f;m.sibling=null}return f.child}function Xf(l,f){return(l.lanes&f)!==0?!0:(l=l.dependencies,!!(l!==null&&sa(l)))}function tE(l,f,m){switch(f.tag){case 3:He(f,f.stateNode.containerInfo),Es(f,Wr,l.memoizedState.cache),_l();break;case 27:case 5:Qe(f);break;case 4:He(f,f.stateNode.containerInfo);break;case 10:Es(f,f.type,f.memoizedProps.value);break;case 31:if(f.memoizedState!==null)return f.flags|=128,yp(f),null;break;case 13:var b=f.memoizedState;if(b!==null)return b.dehydrated!==null?(Eu(f),f.flags|=128,null):(m&f.child.childLanes)!==0?tl(l,f,m):(Eu(f),l=Ds(l,f,m),l!==null?l.sibling:null);Eu(f);break;case 19:var A=(l.flags&128)!==0;if(b=(m&f.childLanes)!==0,b||(Ro(l,f,m,!1),b=(m&f.childLanes)!==0),A){if(b)return K4(l,f,m);f.flags|=128}if(A=f.memoizedState,A!==null&&(A.rendering=null,A.tail=null,A.lastEffect=null),Y(Lr,Lr.current),b)break;return null;case 22:return f.lanes=0,Y4(l,f,m,f.pendingProps);case 24:Es(f,Wr,l.memoizedState.cache)}return Ds(l,f,m)}function Ip(l,f,m){if(l!==null)if(l.memoizedProps!==f.pendingProps)li=!0;else{if(!Xf(l,m)&&(f.flags&128)===0)return li=!1,tE(l,f,m);li=(l.flags&131072)!==0}else li=!1,kn&&(f.flags&1048576)!==0&&ip(f,n0,f.index);switch(f.lanes=0,f.tag){case 16:e:{var b=f.pendingProps;if(l=Cc(f.elementType),f.type=l,typeof l=="function")Ko(l)?(b=Yf(l,b),f.tag=1,f=Dc(null,f,l,b,m)):(f.tag=0,f=Jo(null,f,l,b,m));else{if(l!=null){var A=l.$$typeof;if(A===V){f.tag=11,f=_s(null,f,l,b,m);break e}else if(A===X){f.tag=14,f=G4(null,f,l,b,m);break e}}throw f=Q(l)||l,Error(i(306,f,""))}}return f;case 0:return Jo(l,f,f.type,f.pendingProps,m);case 1:return b=f.type,A=Yf(b,f.pendingProps),Dc(l,f,b,A,m);case 3:e:{if(He(f,f.stateNode.containerInfo),l===null)throw Error(i(387));b=f.pendingProps;var O=f.memoizedState;A=O.element,hp(l,f),Rc(f,b,null,m);var j=f.memoizedState;if(b=j.cache,Es(f,Wr,b),b!==O.cache&&f1(f,[Wr],m,!0),pp(),b=j.element,O.isDehydrated)if(O={element:b,isDehydrated:!1,cache:j.cache},f.updateQueue.baseState=O,f.memoizedState=O,f.flags&256){f=Q4(l,f,b,m);break e}else if(b!==A){A=Co(Error(i(424)),f),op(A),f=Q4(l,f,b,m);break e}else{switch(l=f.stateNode.containerInfo,l.nodeType){case 9:l=l.body;break;default:l=l.nodeName==="HTML"?l.ownerDocument.body:l}for(xr=Ji(l.firstChild),mi=f,kn=!0,bs=null,Ja=!0,m=b4(f,null,b,m),f.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling}else{if(_l(),b===A){f=Ds(l,f,m);break e}Ii(l,f,b,m)}f=f.child}return f;case 26:return Np(l,f),l===null?(m=zu(f.type,null,f.pendingProps,null))?f.memoizedState=m:kn||(m=f.type,l=f.pendingProps,b=rm(_e.current).createElement(m),b[pi]=f,b[Or]=l,Zi(b,m,l),Si(b),f.stateNode=b):f.memoizedState=zu(f.type,l.memoizedProps,f.pendingProps,l.memoizedState),null;case 27:return Qe(f),l===null&&kn&&(b=f.stateNode=Bl(f.type,f.pendingProps,_e.current),mi=f,Ja=!0,A=xr,Ps(f.type)?(z0=A,xr=Ji(b.firstChild)):xr=A),Ii(l,f,f.pendingProps.children,m),Np(l,f),l===null&&(f.flags|=4194304),f.child;case 5:return l===null&&kn&&((A=b=xr)&&(b=_x(b,f.type,f.pendingProps,Ja),b!==null?(f.stateNode=b,mi=f,xr=Ji(b.firstChild),Ja=!1,A=!0):A=!1),A||Oa(f)),Qe(f),A=f.type,O=f.pendingProps,j=l!==null?l.memoizedProps:null,b=O.children,dy(A,O)?b=null:j!==null&&dy(A,j)&&(f.flags|=32),f.memoizedState!==null&&(A=Tu(l,f,Y8,null,null,m),Jr._currentValue=A),Np(l,f),Ii(l,f,b,m),f.child;case 6:return l===null&&kn&&((l=m=xr)&&(m=Z8(m,f.pendingProps,Ja),m!==null?(f.stateNode=m,mi=f,xr=null,l=!0):l=!1),l||Oa(f)),null;case 13:return tl(l,f,m);case 4:return He(f,f.stateNode.containerInfo),b=f.pendingProps,l===null?f.child=Bf(f,null,b,m):Ii(l,f,b,m),f.child;case 11:return _s(l,f,f.type,f.pendingProps,m);case 7:return Ii(l,f,f.pendingProps,m),f.child;case 8:return Ii(l,f,f.pendingProps.children,m),f.child;case 12:return Ii(l,f,f.pendingProps.children,m),f.child;case 10:return b=f.pendingProps,Es(f,f.type,b.value),Ii(l,f,b.children,m),f.child;case 9:return A=f.type._context,b=f.pendingProps.children,ws(f),A=Vt(A),b=b(A),f.flags|=1,Ii(l,f,b,m),f.child;case 14:return G4(l,f,f.type,f.pendingProps,m);case 15:return F4(l,f,f.type,f.pendingProps,m);case 19:return K4(l,f,m);case 31:return ro(l,f,m);case 22:return Y4(l,f,m,f.pendingProps);case 24:return ws(f),b=Vt(Wr),l===null?(A=vu(),A===null&&(A=dr,O=h1(),A.pooledCache=O,O.refCount++,O!==null&&(A.pooledCacheLanes|=m),A=O),f.memoizedState={parent:b,cache:A},g1(f),Es(f,Wr,A)):((l.lanes&m)!==0&&(hp(l,f),Rc(f,null,null,m),pp()),A=l.memoizedState,O=f.memoizedState,A.parent!==b?(A={parent:b,cache:b},f.memoizedState=A,f.lanes===0&&(f.memoizedState=f.updateQueue.baseState=A),Es(f,Wr,b)):(b=O.cache,Es(f,Wr,b),b!==A.cache&&f1(f,[Wr],m,!0))),Ii(l,f,f.pendingProps.children,m),f.child;case 29:throw f.pendingProps}throw Error(i(156,f.tag))}function Ns(l){l.flags|=4}function $1(l,f,m,b,A){if((f=(l.mode&32)!==0)&&(f=!1),f){if(l.flags|=16777216,(A&335544128)===A)if(l.stateNode.complete)l.flags|=8192;else if(A0())l.flags|=8192;else throw Oc=o0,cp}else l.flags&=-16777217}function nE(l,f){if(f.type!=="stylesheet"||(f.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!xy(f))if(A0())l.flags|=8192;else throw Oc=o0,cp}function Lp(l,f){f!==null&&(l.flags|=4),l.flags&16384&&(f=l.tag!==22?ct():536870912,l.lanes|=f,Ic|=f)}function Ki(l,f){if(!kn)switch(l.tailMode){case"hidden":f=l.tail;for(var m=null;f!==null;)f.alternate!==null&&(m=f),f=f.sibling;m===null?l.tail=null:m.sibling=null;break;case"collapsed":m=l.tail;for(var b=null;m!==null;)m.alternate!==null&&(b=m),m=m.sibling;b===null?f||l.tail===null?l.tail=null:l.tail.sibling=null:b.sibling=null}}function Sr(l){var f=l.alternate!==null&&l.alternate.child===l.child,m=0,b=0;if(f)for(var A=l.child;A!==null;)m|=A.lanes|A.childLanes,b|=A.subtreeFlags&65011712,b|=A.flags&65011712,A.return=l,A=A.sibling;else for(A=l.child;A!==null;)m|=A.lanes|A.childLanes,b|=A.subtreeFlags,b|=A.flags,A.return=l,A=A.sibling;return l.subtreeFlags|=b,l.childLanes=m,f}function Br(l,f,m){var b=f.pendingProps;switch(r0(f),f.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Sr(f),null;case 1:return Sr(f),null;case 3:return m=f.stateNode,b=null,l!==null&&(b=l.memoizedState.cache),f.memoizedState.cache!==b&&(f.flags|=2048),la(Wr),Xe(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(l===null||l.child===null)&&(Ss(f)?Ns(f):l===null||l.memoizedState.isDehydrated&&(f.flags&256)===0||(f.flags|=1024,u1())),Sr(f),null;case 26:var A=f.type,O=f.memoizedState;return l===null?(Ns(f),O!==null?(Sr(f),nE(f,O)):(Sr(f),$1(f,A,null,b,m))):O?O!==l.memoizedState?(Ns(f),Sr(f),nE(f,O)):(Sr(f),f.flags&=-16777217):(l=l.memoizedProps,l!==b&&Ns(f),Sr(f),$1(f,A,l,b,m)),null;case 27:if(et(f),m=_e.current,A=f.type,l!==null&&f.stateNode!=null)l.memoizedProps!==b&&Ns(f);else{if(!b){if(f.stateNode===null)throw Error(i(166));return Sr(f),null}l=Me.current,Ss(f)?i0(f):(l=Bl(A,b,m),f.stateNode=l,Ns(f))}return Sr(f),null;case 5:if(et(f),A=f.type,l!==null&&f.stateNode!=null)l.memoizedProps!==b&&Ns(f);else{if(!b){if(f.stateNode===null)throw Error(i(166));return Sr(f),null}if(O=Me.current,Ss(f))i0(f);else{var j=rm(_e.current);switch(O){case 1:O=j.createElementNS("http://www.w3.org/2000/svg",A);break;case 2:O=j.createElementNS("http://www.w3.org/1998/Math/MathML",A);break;default:switch(A){case"svg":O=j.createElementNS("http://www.w3.org/2000/svg",A);break;case"math":O=j.createElementNS("http://www.w3.org/1998/Math/MathML",A);break;case"script":O=j.createElement("div"),O.innerHTML="<script><\/script>",O=O.removeChild(O.firstChild);break;case"select":O=typeof b.is=="string"?j.createElement("select",{is:b.is}):j.createElement("select"),b.multiple?O.multiple=!0:b.size&&(O.size=b.size);break;default:O=typeof b.is=="string"?j.createElement(A,{is:b.is}):j.createElement(A)}}O[pi]=f,O[Or]=b;e:for(j=f.child;j!==null;){if(j.tag===5||j.tag===6)O.appendChild(j.stateNode);else if(j.tag!==4&&j.tag!==27&&j.child!==null){j.child.return=j,j=j.child;continue}if(j===f)break e;for(;j.sibling===null;){if(j.return===null||j.return===f)break e;j=j.return}j.sibling.return=j.return,j=j.sibling}f.stateNode=O;e:switch(Zi(O,A,b),A){case"button":case"input":case"select":case"textarea":b=!!b.autoFocus;break e;case"img":b=!0;break e;default:b=!1}b&&Ns(f)}}return Sr(f),$1(f,f.type,l===null?null:l.memoizedProps,f.pendingProps,m),null;case 6:if(l&&f.stateNode!=null)l.memoizedProps!==b&&Ns(f);else{if(typeof b!="string"&&f.stateNode===null)throw Error(i(166));if(l=_e.current,Ss(f)){if(l=f.stateNode,m=f.memoizedProps,b=null,A=mi,A!==null)switch(A.tag){case 27:case 5:b=A.memoizedProps}l[pi]=f,l=!!(l.nodeValue===m||b!==null&&b.suppressHydrationWarning===!0||Ax(l.nodeValue,m)),l||Oa(f,!0)}else l=rm(l).createTextNode(b),l[pi]=f,f.stateNode=l}return Sr(f),null;case 31:if(m=f.memoizedState,l===null||l.memoizedState!==null){if(b=Ss(f),m!==null){if(l===null){if(!b)throw Error(i(318));if(l=f.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(i(557));l[pi]=f}else _l(),(f.flags&128)===0&&(f.memoizedState=null),f.flags|=4;Sr(f),l=!1}else m=u1(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=m),l=!0;if(!l)return f.flags&256?(ca(f),f):(ca(f),null);if((f.flags&128)!==0)throw Error(i(558))}return Sr(f),null;case 13:if(b=f.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(A=Ss(f),b!==null&&b.dehydrated!==null){if(l===null){if(!A)throw Error(i(318));if(A=f.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(i(317));A[pi]=f}else _l(),(f.flags&128)===0&&(f.memoizedState=null),f.flags|=4;Sr(f),A=!1}else A=u1(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=A),A=!0;if(!A)return f.flags&256?(ca(f),f):(ca(f),null)}return ca(f),(f.flags&128)!==0?(f.lanes=m,f):(m=b!==null,l=l!==null&&l.memoizedState!==null,m&&(b=f.child,A=null,b.alternate!==null&&b.alternate.memoizedState!==null&&b.alternate.memoizedState.cachePool!==null&&(A=b.alternate.memoizedState.cachePool.pool),O=null,b.memoizedState!==null&&b.memoizedState.cachePool!==null&&(O=b.memoizedState.cachePool.pool),O!==A&&(b.flags|=2048)),m!==l&&m&&(f.child.flags|=8192),Lp(f,f.updateQueue),Sr(f),null);case 4:return Xe(),l===null&&Ex(f.stateNode.containerInfo),Sr(f),null;case 10:return la(f.type),Sr(f),null;case 19:if(ee(Lr),b=f.memoizedState,b===null)return Sr(f),null;if(A=(f.flags&128)!==0,O=b.rendering,O===null)if(A)Ki(b,!1);else{if(Nr!==0||l!==null&&(l.flags&128)!==0)for(l=f.child;l!==null;){if(O=Pf(l),O!==null){for(f.flags|=128,Ki(b,!1),l=O.updateQueue,f.updateQueue=l,Lp(f,l),f.subtreeFlags=0,l=m,m=f.child;m!==null;)G6(m,l),m=m.sibling;return Y(Lr,Lr.current&1|2),kn&&vs(f,b.treeForkCount),f.child}l=l.sibling}b.tail!==null&&Bt()>Gp&&(f.flags|=128,A=!0,Ki(b,!1),f.lanes=4194304)}else{if(!A)if(l=Pf(O),l!==null){if(f.flags|=128,A=!0,l=l.updateQueue,f.updateQueue=l,Lp(f,l),Ki(b,!0),b.tail===null&&b.tailMode==="hidden"&&!O.alternate&&!kn)return Sr(f),null}else 2*Bt()-b.renderingStartTime>Gp&&m!==536870912&&(f.flags|=128,A=!0,Ki(b,!1),f.lanes=4194304);b.isBackwards?(O.sibling=f.child,f.child=O):(l=b.last,l!==null?l.sibling=O:f.child=O,b.last=O)}return b.tail!==null?(l=b.tail,b.rendering=l,b.tail=l.sibling,b.renderingStartTime=Bt(),l.sibling=null,m=Lr.current,Y(Lr,A?m&1|2:m&1),kn&&vs(f,b.treeForkCount),l):(Sr(f),null);case 22:case 23:return ca(f),gp(),b=f.memoizedState!==null,l!==null?l.memoizedState!==null!==b&&(f.flags|=8192):b&&(f.flags|=8192),b?(m&536870912)!==0&&(f.flags&128)===0&&(Sr(f),f.subtreeFlags&6&&(f.flags|=8192)):Sr(f),m=f.updateQueue,m!==null&&Lp(f,m.retryQueue),m=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),b=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(b=f.memoizedState.cachePool.pool),b!==m&&(f.flags|=2048),l!==null&&ee(eo),null;case 24:return m=null,l!==null&&(m=l.memoizedState.cache),f.memoizedState.cache!==m&&(f.flags|=2048),la(Wr),Sr(f),null;case 25:return null;case 30:return null}throw Error(i(156,f.tag))}function rE(l,f){switch(r0(f),f.tag){case 1:return l=f.flags,l&65536?(f.flags=l&-65537|128,f):null;case 3:return la(Wr),Xe(),l=f.flags,(l&65536)!==0&&(l&128)===0?(f.flags=l&-65537|128,f):null;case 26:case 27:case 5:return et(f),null;case 31:if(f.memoizedState!==null){if(ca(f),f.alternate===null)throw Error(i(340));_l()}return l=f.flags,l&65536?(f.flags=l&-65537|128,f):null;case 13:if(ca(f),l=f.memoizedState,l!==null&&l.dehydrated!==null){if(f.alternate===null)throw Error(i(340));_l()}return l=f.flags,l&65536?(f.flags=l&-65537|128,f):null;case 19:return ee(Lr),null;case 4:return Xe(),null;case 10:return la(f.type),null;case 22:case 23:return ca(f),gp(),l!==null&&ee(eo),l=f.flags,l&65536?(f.flags=l&-65537|128,f):null;case 24:return la(Wr),null;case 25:return null;default:return null}}function Z4(l,f){switch(r0(f),f.tag){case 3:la(Wr),Xe();break;case 26:case 27:case 5:et(f);break;case 4:Xe();break;case 31:f.memoizedState!==null&&ca(f);break;case 13:ca(f);break;case 19:ee(Lr);break;case 10:la(f.type);break;case 22:case 23:ca(f),gp(),l!==null&&ee(eo);break;case 24:la(Wr)}}function Vp(l,f){try{var m=f.updateQueue,b=m!==null?m.lastEffect:null;if(b!==null){var A=b.next;m=A;do{if((m.tag&l)===l){b=void 0;var O=m.create,j=m.inst;b=O(),j.destroy=b}m=m.next}while(m!==A)}}catch(ne){ir(f,f.return,ne)}}function Ra(l,f,m){try{var b=f.updateQueue,A=b!==null?b.lastEffect:null;if(A!==null){var O=A.next;b=O;do{if((b.tag&l)===l){var j=b.inst,ne=j.destroy;if(ne!==void 0){j.destroy=void 0,A=f;var ve=m,ze=ne;try{ze()}catch(qe){ir(A,ve,qe)}}}b=b.next}while(b!==O)}}catch(qe){ir(f,f.return,qe)}}function Wf(l){var f=l.updateQueue;if(f!==null){var m=l.stateNode;try{v1(f,m)}catch(b){ir(l,l.return,b)}}}function H1(l,f,m){m.props=Yf(l.type,l.memoizedProps),m.state=l.memoizedState;try{m.componentWillUnmount()}catch(b){ir(l,f,b)}}function Il(l,f){try{var m=l.ref;if(m!==null){switch(l.tag){case 26:case 27:case 5:var b=l.stateNode;break;case 30:b=l.stateNode;break;default:b=l.stateNode}typeof m=="function"?l.refCleanup=m(b):m.current=b}}catch(A){ir(l,f,A)}}function _a(l,f){var m=l.ref,b=l.refCleanup;if(m!==null)if(typeof b=="function")try{b()}catch(A){ir(l,f,A)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof m=="function")try{m(null)}catch(A){ir(l,f,A)}else m.current=null}function J4(l){var f=l.type,m=l.memoizedProps,b=l.stateNode;try{e:switch(f){case"button":case"input":case"select":case"textarea":m.autoFocus&&b.focus();break e;case"img":m.src?b.src=m.src:m.srcSet&&(b.srcset=m.srcSet)}}catch(A){ir(l,l.return,A)}}function q1(l,f,m){try{var b=l.stateNode;K8(b,l.type,m,f),b[Or]=f}catch(A){ir(l,l.return,A)}}function ex(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27&&Ps(l.type)||l.tag===4}function G1(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||ex(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&&Ps(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 S0(l,f,m){var b=l.tag;if(b===5||b===6)l=l.stateNode,f?(m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m).insertBefore(l,f):(f=m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m,f.appendChild(l),m=m._reactRootContainer,m!=null||f.onclick!==null||(f.onclick=Gi));else if(b!==4&&(b===27&&Ps(l.type)&&(m=l.stateNode,f=null),l=l.child,l!==null))for(S0(l,f,m),l=l.sibling;l!==null;)S0(l,f,m),l=l.sibling}function Qf(l,f,m){var b=l.tag;if(b===5||b===6)l=l.stateNode,f?m.insertBefore(l,f):m.appendChild(l);else if(b!==4&&(b===27&&Ps(l.type)&&(m=l.stateNode),l=l.child,l!==null))for(Qf(l,f,m),l=l.sibling;l!==null;)Qf(l,f,m),l=l.sibling}function F1(l){var f=l.stateNode,m=l.memoizedProps;try{for(var b=l.type,A=f.attributes;A.length;)f.removeAttributeNode(A[0]);Zi(f,b,m),f[pi]=l,f[Or]=m}catch(O){ir(l,l.return,O)}}var ks=!1,gi=!1,tx=!1,nx=typeof WeakSet=="function"?WeakSet:Set,Ei=null;function X8(l,f){if(l=l.containerInfo,nm=Iu,l=_f(l),gu(l)){if("selectionStart"in l)var m={start:l.selectionStart,end:l.selectionEnd};else e:{m=(m=l.ownerDocument)&&m.defaultView||window;var b=m.getSelection&&m.getSelection();if(b&&b.rangeCount!==0){m=b.anchorNode;var A=b.anchorOffset,O=b.focusNode;b=b.focusOffset;try{m.nodeType,O.nodeType}catch{m=null;break e}var j=0,ne=-1,ve=-1,ze=0,qe=0,Ke=l,Ie=null;t:for(;;){for(var Ue;Ke!==m||A!==0&&Ke.nodeType!==3||(ne=j+A),Ke!==O||b!==0&&Ke.nodeType!==3||(ve=j+b),Ke.nodeType===3&&(j+=Ke.nodeValue.length),(Ue=Ke.firstChild)!==null;)Ie=Ke,Ke=Ue;for(;;){if(Ke===l)break t;if(Ie===m&&++ze===A&&(ne=j),Ie===O&&++qe===b&&(ve=j),(Ue=Ke.nextSibling)!==null)break;Ke=Ie,Ie=Ke.parentNode}Ke=Ue}m=ne===-1||ve===-1?null:{start:ne,end:ve}}else m=null}m=m||{start:0,end:0}}else m=null;for(fy={focusedElem:l,selectionRange:m},Iu=!1,Ei=f;Ei!==null;)if(f=Ei,l=f.child,(f.subtreeFlags&1028)!==0&&l!==null)l.return=f,Ei=l;else for(;Ei!==null;){switch(f=Ei,O=f.alternate,l=f.flags,f.tag){case 0:if((l&4)!==0&&(l=f.updateQueue,l=l!==null?l.events:null,l!==null))for(m=0;m<l.length;m++)A=l[m],A.ref.impl=A.nextImpl;break;case 11:case 15:break;case 1:if((l&1024)!==0&&O!==null){l=void 0,m=f,A=O.memoizedProps,O=O.memoizedState,b=m.stateNode;try{var Rt=Yf(m.type,A);l=b.getSnapshotBeforeUpdate(Rt,O),b.__reactInternalSnapshotBeforeUpdate=l}catch(Ht){ir(m,m.return,Ht)}}break;case 3:if((l&1024)!==0){if(l=f.stateNode.containerInfo,m=l.nodeType,m===9)Zr(l);else if(m===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":Zr(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(i(163))}if(l=f.sibling,l!==null){l.return=f.return,Ei=l;break}Ei=f.return}}function Kf(l,f,m){var b=m.flags;switch(m.tag){case 0:case 11:case 15:Is(l,m),b&4&&Vp(5,m);break;case 1:if(Is(l,m),b&4)if(l=m.stateNode,f===null)try{l.componentDidMount()}catch(j){ir(m,m.return,j)}else{var A=Yf(m.type,f.memoizedProps);f=f.memoizedState;try{l.componentDidUpdate(A,f,l.__reactInternalSnapshotBeforeUpdate)}catch(j){ir(m,m.return,j)}}b&64&&Wf(m),b&512&&Il(m,m.return);break;case 3:if(Is(l,m),b&64&&(l=m.updateQueue,l!==null)){if(f=null,m.child!==null)switch(m.child.tag){case 27:case 5:f=m.child.stateNode;break;case 1:f=m.child.stateNode}try{v1(l,f)}catch(j){ir(m,m.return,j)}}break;case 27:f===null&&b&4&&F1(m);case 26:case 5:Is(l,m),f===null&&b&4&&J4(m),b&512&&Il(m,m.return);break;case 12:Is(l,m);break;case 31:Is(l,m),b&4&&ix(l,m);break;case 13:Is(l,m),b&4&&iE(l,m),b&64&&(l=m.memoizedState,l!==null&&(l=l.dehydrated,l!==null&&(m=Q8.bind(null,m),k0(l,m))));break;case 22:if(b=m.memoizedState!==null||ks,!b){f=f!==null&&f.memoizedState!==null||gi,A=ks;var O=gi;ks=b,(gi=f)&&!O?Mu(l,m,(m.subtreeFlags&8772)!==0):Is(l,m),ks=A,gi=O}break;case 30:break;default:Is(l,m)}}function Bp(l){var f=l.alternate;f!==null&&(l.alternate=null,Bp(f)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(f=l.stateNode,f!==null&&dc(f)),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 Mr=null,fa=!1;function zs(l,f,m){for(m=m.child;m!==null;)rx(l,f,m),m=m.sibling}function rx(l,f,m){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(kt,m)}catch{}switch(m.tag){case 26:gi||_a(m,f),zs(l,f,m),m.memoizedState?m.memoizedState.count--:m.stateNode&&(m=m.stateNode,m.parentNode.removeChild(m));break;case 27:gi||_a(m,f);var b=Mr,A=fa;Ps(m.type)&&(Mr=m.stateNode,fa=!1),zs(l,f,m),Nu(m.stateNode),Mr=b,fa=A;break;case 5:gi||_a(m,f);case 6:if(b=Mr,A=fa,Mr=null,zs(l,f,m),Mr=b,fa=A,Mr!==null)if(fa)try{(Mr.nodeType===9?Mr.body:Mr.nodeName==="HTML"?Mr.ownerDocument.body:Mr).removeChild(m.stateNode)}catch(O){ir(m,f,O)}else try{Mr.removeChild(m.stateNode)}catch(O){ir(m,f,O)}break;case 18:Mr!==null&&(fa?(l=Mr,im(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,m.stateNode),B0(l)):im(Mr,m.stateNode));break;case 4:b=Mr,A=fa,Mr=m.stateNode.containerInfo,fa=!0,zs(l,f,m),Mr=b,fa=A;break;case 0:case 11:case 14:case 15:Ra(2,m,f),gi||Ra(4,m,f),zs(l,f,m);break;case 1:gi||(_a(m,f),b=m.stateNode,typeof b.componentWillUnmount=="function"&&H1(m,f,b)),zs(l,f,m);break;case 21:zs(l,f,m);break;case 22:gi=(b=gi)||m.memoizedState!==null,zs(l,f,m),gi=b;break;default:zs(l,f,m)}}function ix(l,f){if(f.memoizedState===null&&(l=f.alternate,l!==null&&(l=l.memoizedState,l!==null))){l=l.dehydrated;try{B0(l)}catch(m){ir(f,f.return,m)}}}function iE(l,f){if(f.memoizedState===null&&(l=f.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{B0(l)}catch(m){ir(f,f.return,m)}}function aE(l){switch(l.tag){case 31:case 13:case 19:var f=l.stateNode;return f===null&&(f=l.stateNode=new nx),f;case 22:return l=l.stateNode,f=l._retryCache,f===null&&(f=l._retryCache=new nx),f;default:throw Error(i(435,l.tag))}}function kc(l,f){var m=aE(l);f.forEach(function(b){if(!m.has(b)){m.add(b);var A=_o.bind(null,l,b);b.then(A,A)}})}function Da(l,f){var m=f.deletions;if(m!==null)for(var b=0;b<m.length;b++){var A=m[b],O=l,j=f,ne=j;e:for(;ne!==null;){switch(ne.tag){case 27:if(Ps(ne.type)){Mr=ne.stateNode,fa=!1;break e}break;case 5:Mr=ne.stateNode,fa=!1;break e;case 3:case 4:Mr=ne.stateNode.containerInfo,fa=!0;break e}ne=ne.return}if(Mr===null)throw Error(i(160));rx(O,j,A),Mr=null,fa=!1,O=A.alternate,O!==null&&(O.return=null),A.return=null}if(f.subtreeFlags&13886)for(f=f.child;f!==null;)Yn(f,l),f=f.sibling}var nl=null;function Yn(l,f){var m=l.alternate,b=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:Da(f,l),da(l),b&4&&(Ra(3,l,l.return),Vp(3,l),Ra(5,l,l.return));break;case 1:Da(f,l),da(l),b&512&&(gi||m===null||_a(m,m.return)),b&64&&ks&&(l=l.updateQueue,l!==null&&(b=l.callbacks,b!==null&&(m=l.shared.hiddenCallbacks,l.shared.hiddenCallbacks=m===null?b:m.concat(b))));break;case 26:var A=nl;if(Da(f,l),da(l),b&512&&(gi||m===null||_a(m,m.return)),b&4){var O=m!==null?m.memoizedState:null;if(b=l.memoizedState,m===null)if(b===null)if(l.stateNode===null){e:{b=l.type,m=l.memoizedProps,A=A.ownerDocument||A;t:switch(b){case"title":O=A.getElementsByTagName("title")[0],(!O||O[Fd]||O[pi]||O.namespaceURI==="http://www.w3.org/2000/svg"||O.hasAttribute("itemprop"))&&(O=A.createElement(b),A.head.insertBefore(O,A.querySelector("head > title"))),Zi(O,b,m),O[pi]=l,Si(O),b=O;break e;case"link":var j=by("link","href",A).get(b+(m.href||""));if(j){for(var ne=0;ne<j.length;ne++)if(O=j[ne],O.getAttribute("href")===(m.href==null||m.href===""?null:m.href)&&O.getAttribute("rel")===(m.rel==null?null:m.rel)&&O.getAttribute("title")===(m.title==null?null:m.title)&&O.getAttribute("crossorigin")===(m.crossOrigin==null?null:m.crossOrigin)){j.splice(ne,1);break t}}O=A.createElement(b),Zi(O,b,m),A.head.appendChild(O);break;case"meta":if(j=by("meta","content",A).get(b+(m.content||""))){for(ne=0;ne<j.length;ne++)if(O=j[ne],O.getAttribute("content")===(m.content==null?null:""+m.content)&&O.getAttribute("name")===(m.name==null?null:m.name)&&O.getAttribute("property")===(m.property==null?null:m.property)&&O.getAttribute("http-equiv")===(m.httpEquiv==null?null:m.httpEquiv)&&O.getAttribute("charset")===(m.charSet==null?null:m.charSet)){j.splice(ne,1);break t}}O=A.createElement(b),Zi(O,b,m),A.head.appendChild(O);break;default:throw Error(i(468,b))}O[pi]=l,Si(O),b=O}l.stateNode=b}else Lx(A,l.type,l.stateNode);else l.stateNode=Ix(A,b,l.memoizedProps);else O!==b?(O===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):O.count--,b===null?Lx(A,l.type,l.stateNode):Ix(A,b,l.memoizedProps)):b===null&&l.stateNode!==null&&q1(l,l.memoizedProps,m.memoizedProps)}break;case 27:Da(f,l),da(l),b&512&&(gi||m===null||_a(m,m.return)),m!==null&&b&4&&q1(l,l.memoizedProps,m.memoizedProps);break;case 5:if(Da(f,l),da(l),b&512&&(gi||m===null||_a(m,m.return)),l.flags&32){A=l.stateNode;try{Ef(A,"")}catch(Rt){ir(l,l.return,Rt)}}b&4&&l.stateNode!=null&&(A=l.memoizedProps,q1(l,A,m!==null?m.memoizedProps:A)),b&1024&&(tx=!0);break;case 6:if(Da(f,l),da(l),b&4){if(l.stateNode===null)throw Error(i(162));b=l.memoizedProps,m=l.stateNode;try{m.nodeValue=b}catch(Rt){ir(l,l.return,Rt)}}break;case 3:if(sm=null,A=nl,nl=ad(f.containerInfo),Da(f,l),nl=A,da(l),b&4&&m!==null&&m.memoizedState.isDehydrated)try{B0(f.containerInfo)}catch(Rt){ir(l,l.return,Rt)}tx&&(tx=!1,oE(l));break;case 4:b=nl,nl=ad(l.stateNode.containerInfo),Da(f,l),da(l),nl=b;break;case 12:Da(f,l),da(l);break;case 31:Da(f,l),da(l),b&4&&(b=l.updateQueue,b!==null&&(l.updateQueue=null,kc(l,b)));break;case 13:Da(f,l),da(l),l.child.flags&8192&&l.memoizedState!==null!=(m!==null&&m.memoizedState!==null)&&(qp=Bt()),b&4&&(b=l.updateQueue,b!==null&&(l.updateQueue=null,kc(l,b)));break;case 22:A=l.memoizedState!==null;var ve=m!==null&&m.memoizedState!==null,ze=ks,qe=gi;if(ks=ze||A,gi=qe||ve,Da(f,l),gi=qe,ks=ze,da(l),b&8192)e:for(f=l.stateNode,f._visibility=A?f._visibility&-2:f._visibility|1,A&&(m===null||ve||ks||gi||Zf(l)),m=null,f=l;;){if(f.tag===5||f.tag===26){if(m===null){ve=m=f;try{if(O=ve.stateNode,A)j=O.style,typeof j.setProperty=="function"?j.setProperty("display","none","important"):j.display="none";else{ne=ve.stateNode;var Ke=ve.memoizedProps.style,Ie=Ke!=null&&Ke.hasOwnProperty("display")?Ke.display:null;ne.style.display=Ie==null||typeof Ie=="boolean"?"":(""+Ie).trim()}}catch(Rt){ir(ve,ve.return,Rt)}}}else if(f.tag===6){if(m===null){ve=f;try{ve.stateNode.nodeValue=A?"":ve.memoizedProps}catch(Rt){ir(ve,ve.return,Rt)}}}else if(f.tag===18){if(m===null){ve=f;try{var Ue=ve.stateNode;A?Rx(Ue,!0):Rx(ve.stateNode,!1)}catch(Rt){ir(ve,ve.return,Rt)}}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===l)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===l)break e;for(;f.sibling===null;){if(f.return===null||f.return===l)break e;m===f&&(m=null),f=f.return}m===f&&(m=null),f.sibling.return=f.return,f=f.sibling}b&4&&(b=l.updateQueue,b!==null&&(m=b.retryQueue,m!==null&&(b.retryQueue=null,kc(l,m))));break;case 19:Da(f,l),da(l),b&4&&(b=l.updateQueue,b!==null&&(l.updateQueue=null,kc(l,b)));break;case 30:break;case 21:break;default:Da(f,l),da(l)}}function da(l){var f=l.flags;if(f&2){try{for(var m,b=l.return;b!==null;){if(ex(b)){m=b;break}b=b.return}if(m==null)throw Error(i(160));switch(m.tag){case 27:var A=m.stateNode,O=G1(l);Qf(l,O,A);break;case 5:var j=m.stateNode;m.flags&32&&(Ef(j,""),m.flags&=-33);var ne=G1(l);Qf(l,ne,j);break;case 3:case 4:var ve=m.stateNode.containerInfo,ze=G1(l);S0(l,ze,ve);break;default:throw Error(i(161))}}catch(qe){ir(l,l.return,qe)}l.flags&=-3}f&4096&&(l.flags&=-4097)}function oE(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var f=l;oE(f),f.tag===5&&f.flags&1024&&f.stateNode.reset(),l=l.sibling}}function Is(l,f){if(f.subtreeFlags&8772)for(f=f.child;f!==null;)Kf(l,f.alternate,f),f=f.sibling}function Zf(l){for(l=l.child;l!==null;){var f=l;switch(f.tag){case 0:case 11:case 14:case 15:Ra(4,f,f.return),Zf(f);break;case 1:_a(f,f.return);var m=f.stateNode;typeof m.componentWillUnmount=="function"&&H1(f,f.return,m),Zf(f);break;case 27:Nu(f.stateNode);case 26:case 5:_a(f,f.return),Zf(f);break;case 22:f.memoizedState===null&&Zf(f);break;case 30:Zf(f);break;default:Zf(f)}l=l.sibling}}function Mu(l,f,m){for(m=m&&(f.subtreeFlags&8772)!==0,f=f.child;f!==null;){var b=f.alternate,A=l,O=f,j=O.flags;switch(O.tag){case 0:case 11:case 15:Mu(A,O,m),Vp(4,O);break;case 1:if(Mu(A,O,m),b=O,A=b.stateNode,typeof A.componentDidMount=="function")try{A.componentDidMount()}catch(ze){ir(b,b.return,ze)}if(b=O,A=b.updateQueue,A!==null){var ne=b.stateNode;try{var ve=A.shared.hiddenCallbacks;if(ve!==null)for(A.shared.hiddenCallbacks=null,A=0;A<ve.length;A++)jf(ve[A],ne)}catch(ze){ir(b,b.return,ze)}}m&&j&64&&Wf(O),Il(O,O.return);break;case 27:F1(O);case 26:case 5:Mu(A,O,m),m&&b===null&&j&4&&J4(O),Il(O,O.return);break;case 12:Mu(A,O,m);break;case 31:Mu(A,O,m),m&&j&4&&ix(A,O);break;case 13:Mu(A,O,m),m&&j&4&&iE(A,O);break;case 22:O.memoizedState===null&&Mu(A,O,m),Il(O,O.return);break;case 30:break;default:Mu(A,O,m)}f=f.sibling}}function jp(l,f){var m=null;l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),l=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(l=f.memoizedState.cachePool.pool),l!==m&&(l!=null&&l.refCount++,m!=null&&Lf(m))}function Y1(l,f){l=null,f.alternate!==null&&(l=f.alternate.memoizedState.cache),f=f.memoizedState.cache,f!==l&&(f.refCount++,l!=null&&Lf(l))}function rl(l,f,m,b){if(f.subtreeFlags&10256)for(f=f.child;f!==null;)ax(l,f,m,b),f=f.sibling}function ax(l,f,m,b){var A=f.flags;switch(f.tag){case 0:case 11:case 15:rl(l,f,m,b),A&2048&&Vp(9,f);break;case 1:rl(l,f,m,b);break;case 3:rl(l,f,m,b),A&2048&&(l=null,f.alternate!==null&&(l=f.alternate.memoizedState.cache),f=f.memoizedState.cache,f!==l&&(f.refCount++,l!=null&&Lf(l)));break;case 12:if(A&2048){rl(l,f,m,b),l=f.stateNode;try{var O=f.memoizedProps,j=O.id,ne=O.onPostCommit;typeof ne=="function"&&ne(j,f.alternate===null?"mount":"update",l.passiveEffectDuration,-0)}catch(ve){ir(f,f.return,ve)}}else rl(l,f,m,b);break;case 31:rl(l,f,m,b);break;case 13:rl(l,f,m,b);break;case 23:break;case 22:O=f.stateNode,j=f.alternate,f.memoizedState!==null?O._visibility&2?rl(l,f,m,b):Pp(l,f):O._visibility&2?rl(l,f,m,b):(O._visibility|=2,Ls(l,f,m,b,(f.subtreeFlags&10256)!==0||!1)),A&2048&&jp(j,f);break;case 24:rl(l,f,m,b),A&2048&&Y1(f.alternate,f);break;default:rl(l,f,m,b)}}function Ls(l,f,m,b,A){for(A=A&&((f.subtreeFlags&10256)!==0||!1),f=f.child;f!==null;){var O=l,j=f,ne=m,ve=b,ze=j.flags;switch(j.tag){case 0:case 11:case 15:Ls(O,j,ne,ve,A),Vp(8,j);break;case 23:break;case 22:var qe=j.stateNode;j.memoizedState!==null?qe._visibility&2?Ls(O,j,ne,ve,A):Pp(O,j):(qe._visibility|=2,Ls(O,j,ne,ve,A)),A&&ze&2048&&jp(j.alternate,j);break;case 24:Ls(O,j,ne,ve,A),A&&ze&2048&&Y1(j.alternate,j);break;default:Ls(O,j,ne,ve,A)}f=f.sibling}}function Pp(l,f){if(f.subtreeFlags&10256)for(f=f.child;f!==null;){var m=l,b=f,A=b.flags;switch(b.tag){case 22:Pp(m,b),A&2048&&jp(b.alternate,b);break;case 24:Pp(m,b),A&2048&&Y1(b.alternate,b);break;default:Pp(m,b)}f=f.sibling}}var Up=8192;function Na(l,f,m){if(l.subtreeFlags&Up)for(l=l.child;l!==null;)E0(l,f,m),l=l.sibling}function E0(l,f,m){switch(l.tag){case 26:Na(l,f,m),l.flags&Up&&l.memoizedState!==null&&Do(m,nl,l.memoizedState,l.memoizedProps);break;case 5:Na(l,f,m);break;case 3:case 4:var b=nl;nl=ad(l.stateNode.containerInfo),Na(l,f,m),nl=b;break;case 22:l.memoizedState===null&&(b=l.alternate,b!==null&&b.memoizedState!==null?(b=Up,Up=16777216,Na(l,f,m),Up=b):Na(l,f,m));break;default:Na(l,f,m)}}function lE(l){var f=l.alternate;if(f!==null&&(l=f.child,l!==null)){f.child=null;do f=l.sibling,l.sibling=null,l=f;while(l!==null)}}function Jf(l){var f=l.deletions;if((l.flags&16)!==0){if(f!==null)for(var m=0;m<f.length;m++){var b=f[m];Ei=b,lx(b,l)}lE(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)ox(l),l=l.sibling}function ox(l){switch(l.tag){case 0:case 11:case 15:Jf(l),l.flags&2048&&Ra(9,l,l.return);break;case 3:Jf(l);break;case 12:Jf(l);break;case 22:var f=l.stateNode;l.memoizedState!==null&&f._visibility&2&&(l.return===null||l.return.tag!==13)?(f._visibility&=-3,$p(l)):Jf(l);break;default:Jf(l)}}function $p(l){var f=l.deletions;if((l.flags&16)!==0){if(f!==null)for(var m=0;m<f.length;m++){var b=f[m];Ei=b,lx(b,l)}lE(l)}for(l=l.child;l!==null;){switch(f=l,f.tag){case 0:case 11:case 15:Ra(8,f,f.return),$p(f);break;case 22:m=f.stateNode,m._visibility&2&&(m._visibility&=-3,$p(f));break;default:$p(f)}l=l.sibling}}function lx(l,f){for(;Ei!==null;){var m=Ei;switch(m.tag){case 0:case 11:case 15:Ra(8,m,f);break;case 23:case 22:if(m.memoizedState!==null&&m.memoizedState.cachePool!==null){var b=m.memoizedState.cachePool.pool;b!=null&&b.refCount++}break;case 24:Lf(m.memoizedState.cache)}if(b=m.child,b!==null)b.return=m,Ei=b;else e:for(m=l;Ei!==null;){b=Ei;var A=b.sibling,O=b.return;if(Bp(b),b===m){Ei=null;break e}if(A!==null){A.return=O,Ei=A;break e}Ei=O}}}var sx={getCacheForType:function(l){var f=Vt(Wr),m=f.data.get(l);return m===void 0&&(m=l(),f.data.set(l,m)),m},cacheSignal:function(){return Vt(Wr).controller.signal}},sE=typeof WeakMap=="function"?WeakMap:Map,Hn=0,dr=null,Mn=null,zn=0,Xn=0,io=null,sn=!1,zc=!1,Hp=!1,Vs=0,Nr=0,il=0,Bs=0,ux=0,ao=0,Ic=0,Kr=null,oo=null,al=!1,qp=0,Ru=0,Gp=1/0,Qn=null,js=null,jn=0,Lc=null,ed=null,Ll=0,X1=0,lo=null,cx=null,td=0,W1=null;function ka(){return(Hn&2)!==0&&zn!==0?zn&-zn:Z.T!==null?nd():T6()}function fx(){if(ao===0)if((zn&536870912)===0||kn){var l=tt;tt<<=1,(tt&3932160)===0&&(tt=262144),ao=l}else ao=536870912;return l=ua.current,l!==null&&(l.flags|=32),ao}function so(l,f,m){(l===dr&&(Xn===2||Xn===9)||l.cancelPendingCommit!==null)&&(w0(l,0),_u(l,zn,ao,!1)),oi(l,m),((Hn&2)===0||l!==dr)&&(l===dr&&((Hn&2)===0&&(Bs|=m),Nr===4&&_u(l,zn,ao,!1)),Vl(l))}function dx(l,f,m){if((Hn&6)!==0)throw Error(i(327));var b=!m&&(f&127)===0&&(f&l.expiredLanes)===0||vt(l,f),A=b?W8(l,f):hx(l,f,!0),O=b;do{if(A===0){zc&&!b&&_u(l,f,0,!1);break}else{if(m=l.current.alternate,O&&!Q1(m)){A=hx(l,f,!1),O=!1;continue}if(A===2){if(O=f,l.errorRecoveryDisabledLanes&O)var j=0;else j=l.pendingLanes&-536870913,j=j!==0?j:j&536870912?536870912:0;if(j!==0){f=j;e:{var ne=l;A=Kr;var ve=ne.current.memoizedState.isDehydrated;if(ve&&(w0(ne,j).flags|=256),j=hx(ne,j,!1),j!==2){if(Hp&&!ve){ne.errorRecoveryDisabledLanes|=O,Bs|=O,A=4;break e}O=oo,oo=A,O!==null&&(oo===null?oo=O:oo.push.apply(oo,O))}A=j}if(O=!1,A!==2)continue}}if(A===1){w0(l,0),_u(l,f,0,!0);break}e:{switch(b=l,O=A,O){case 0:case 1:throw Error(i(345));case 4:if((f&4194048)!==f)break;case 6:_u(b,f,ao,!sn);break e;case 2:oo=null;break;case 3:case 5:break;default:throw Error(i(329))}if((f&62914560)===f&&(A=qp+300-Bt(),10<A)){if(_u(b,f,ao,!sn),wt(b,0,!0)!==0)break e;Ll=f,b.timeoutHandle=ME(uE.bind(null,b,m,oo,Qn,al,f,ao,Bs,Ic,sn,O,"Throttled",-0,0),A);break e}uE(b,m,oo,Qn,al,f,ao,Bs,Ic,sn,O,null,-0,0)}}break}while(!0);Vl(l)}function uE(l,f,m,b,A,O,j,ne,ve,ze,qe,Ke,Ie,Ue){if(l.timeoutHandle=-1,Ke=f.subtreeFlags,Ke&8192||(Ke&16785408)===16785408){Ke={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Gi},E0(f,O,Ke);var Rt=(O&62914560)===O?qp-Bt():(O&4194048)===O?Ru-Bt():0;if(Rt=jl(Ke,Rt),Rt!==null){Ll=O,l.cancelPendingCommit=Rt(mE.bind(null,l,f,O,m,b,A,j,ne,ve,qe,Ke,null,Ie,Ue)),_u(l,O,j,!ze);return}}mE(l,f,O,m,b,A,j,ne,ve)}function Q1(l){for(var f=l;;){var m=f.tag;if((m===0||m===11||m===15)&&f.flags&16384&&(m=f.updateQueue,m!==null&&(m=m.stores,m!==null)))for(var b=0;b<m.length;b++){var A=m[b],O=A.getSnapshot;A=A.value;try{if(!Xa(O(),A))return!1}catch{return!1}}if(m=f.child,f.subtreeFlags&16384&&m!==null)m.return=f,f=m;else{if(f===l)break;for(;f.sibling===null;){if(f.return===null||f.return===l)return!0;f=f.return}f.sibling.return=f.return,f=f.sibling}}return!0}function _u(l,f,m,b){f&=~ux,f&=~Bs,l.suspendedLanes|=f,l.pingedLanes&=~f,b&&(l.warmLanes|=f),b=l.expirationTimes;for(var A=f;0<A;){var O=31-bn(A),j=1<<O;b[O]=-1,A&=~j}m!==0&&mf(l,m,f)}function Fp(){return(Hn&6)===0?(Qp(0),!1):!0}function Yp(){if(Mn!==null){if(Xn===0)var l=Mn.return;else l=Mn,Dl=Ec=null,$f(l),Mc=null,Vf=0,l=Mn;for(;l!==null;)Z4(l.alternate,l),l=l.return;Mn=null}}function w0(l,f){var m=l.timeoutHandle;m!==-1&&(l.timeoutHandle=-1,hy(m)),m=l.cancelPendingCommit,m!==null&&(l.cancelPendingCommit=null,m()),Ll=0,Yp(),dr=l,Mn=m=Ao(l.current,null),zn=f,Xn=0,io=null,sn=!1,zc=vt(l,f),Hp=!1,Ic=ao=ux=Bs=il=Nr=0,oo=Kr=null,al=!1,(f&8)!==0&&(f|=f&32);var b=l.entangledLanes;if(b!==0)for(l=l.entanglements,b&=f;0<b;){var A=31-bn(b),O=1<<A;f|=l[A],b&=~O}return Vs=f,wo(),m}function T0(l,f){cn=null,Z.H=y0,f===Nl||f===Ac?(f=g4(),Xn=3):f===cp?(f=g4(),Xn=4):Xn=f===q4?8:f!==null&&typeof f=="object"&&typeof f.then=="function"?6:1,io=f,Mn===null&&(Nr=1,v0(l,Co(f,l.current)))}function A0(){var l=ua.current;return l===null?!0:(zn&4194048)===zn?no===null:(zn&62914560)===zn||(zn&536870912)!==0?l===no:!1}function cE(){var l=Z.H;return Z.H=y0,l===null?y0:l}function fE(){var l=Z.A;return Z.A=sx,l}function K1(){Nr=4,sn||(zn&4194048)!==zn&&ua.current!==null||(zc=!0),(il&134217727)===0&&(Bs&134217727)===0||dr===null||_u(dr,zn,ao,!1)}function hx(l,f,m){var b=Hn;Hn|=2;var A=cE(),O=fE();(dr!==l||zn!==f)&&(Qn=null,w0(l,f)),f=!1;var j=Nr;e:do try{if(Xn!==0&&Mn!==null){var ne=Mn,ve=io;switch(Xn){case 8:Yp(),j=6;break e;case 3:case 2:case 9:case 6:ua.current===null&&(f=!0);var ze=Xn;if(Xn=0,io=null,C0(l,ne,ve,ze),m&&zc){j=0;break e}break;default:ze=Xn,Xn=0,io=null,C0(l,ne,ve,ze)}}dE(),j=Nr;break}catch(qe){T0(l,qe)}while(!0);return f&&l.shellSuspendCounter++,Dl=Ec=null,Hn=b,Z.H=A,Z.A=O,Mn===null&&(dr=null,zn=0,wo()),j}function dE(){for(;Mn!==null;)Du(Mn)}function W8(l,f){var m=Hn;Hn|=2;var b=cE(),A=fE();dr!==l||zn!==f?(Qn=null,Gp=Bt()+500,w0(l,f)):zc=vt(l,f);e:do try{if(Xn!==0&&Mn!==null){f=Mn;var O=io;t:switch(Xn){case 1:Xn=0,io=null,C0(l,f,O,1);break;case 2:case 9:if(fp(O)){Xn=0,io=null,pE(f);break}f=function(){Xn!==2&&Xn!==9||dr!==l||(Xn=7),Vl(l)},O.then(f,f);break e;case 3:Xn=7;break e;case 4:Xn=5;break e;case 7:fp(O)?(Xn=0,io=null,pE(f)):(Xn=0,io=null,C0(l,f,O,7));break;case 5:var j=null;switch(Mn.tag){case 26:j=Mn.memoizedState;case 5:case 27:var ne=Mn;if(j?xy(j):ne.stateNode.complete){Xn=0,io=null;var ve=ne.sibling;if(ve!==null)Mn=ve;else{var ze=ne.return;ze!==null?(Mn=ze,Xp(ze)):Mn=null}break t}}Xn=0,io=null,C0(l,f,O,5);break;case 6:Xn=0,io=null,C0(l,f,O,6);break;case 8:Yp(),Nr=6;break e;default:throw Error(i(462))}}hE();break}catch(qe){T0(l,qe)}while(!0);return Dl=Ec=null,Z.H=b,Z.A=A,Hn=m,Mn!==null?0:(dr=null,zn=0,wo(),Nr)}function hE(){for(;Mn!==null&&!At();)Du(Mn)}function Du(l){var f=Ip(l.alternate,l,Vs);l.memoizedProps=l.pendingProps,f===null?Xp(l):Mn=f}function pE(l){var f=l,m=f.alternate;switch(f.tag){case 15:case 0:f=W4(m,f,f.pendingProps,f.type,void 0,zn);break;case 11:f=W4(m,f,f.pendingProps,f.type.render,f.ref,zn);break;case 5:$f(f);default:Z4(m,f),f=Mn=G6(f,Vs),f=Ip(m,f,Vs)}l.memoizedProps=l.pendingProps,f===null?Xp(l):Mn=f}function C0(l,f,m,b){Dl=Ec=null,$f(f),Mc=null,Vf=0;var A=f.return;try{if(eE(l,A,f,m,zn)){Nr=1,v0(l,Co(m,l.current)),Mn=null;return}}catch(O){if(A!==null)throw Mn=A,O;Nr=1,v0(l,Co(m,l.current)),Mn=null;return}f.flags&32768?(kn||b===1?l=!0:zc||(zn&536870912)!==0?l=!1:(sn=l=!0,(b===2||b===9||b===3||b===6)&&(b=ua.current,b!==null&&b.tag===13&&(b.flags|=16384))),px(f,l)):Xp(f)}function Xp(l){var f=l;do{if((f.flags&32768)!==0){px(f,sn);return}l=f.return;var m=Br(f.alternate,f,Vs);if(m!==null){Mn=m;return}if(f=f.sibling,f!==null){Mn=f;return}Mn=f=l}while(f!==null);Nr===0&&(Nr=5)}function px(l,f){do{var m=rE(l.alternate,l);if(m!==null){m.flags&=32767,Mn=m;return}if(m=l.return,m!==null&&(m.flags|=32768,m.subtreeFlags=0,m.deletions=null),!f&&(l=l.sibling,l!==null)){Mn=l;return}Mn=l=m}while(l!==null);Nr=6,Mn=null}function mE(l,f,m,b,A,O,j,ne,ve){l.cancelPendingCommit=null;do Z1();while(jn!==0);if((Hn&6)!==0)throw Error(i(327));if(f!==null){if(f===l.current)throw Error(i(177));if(O=f.lanes|f.childLanes,O|=Ca,Pg(l,m,O,j,ne,ve),l===dr&&(Mn=dr=null,zn=0),ed=f,Lc=l,Ll=m,X1=O,lo=A,cx=b,(f.subtreeFlags&10256)!==0||(f.flags&10256)!==0?(l.callbackNode=null,l.callbackPriority=0,SE(nt,function(){return J1(),null})):(l.callbackNode=null,l.callbackPriority=0),b=(f.flags&13878)!==0,(f.subtreeFlags&13878)!==0||b){b=Z.T,Z.T=null,A=ae.p,ae.p=2,j=Hn,Hn|=4;try{X8(l,f,m)}finally{Hn=j,ae.p=A,Z.T=b}}jn=1,gE(),yE(),vE()}}function gE(){if(jn===1){jn=0;var l=Lc,f=ed,m=(f.flags&13878)!==0;if((f.subtreeFlags&13878)!==0||m){m=Z.T,Z.T=null;var b=ae.p;ae.p=2;var A=Hn;Hn|=4;try{Yn(f,l);var O=fy,j=_f(l.containerInfo),ne=O.focusedElem,ve=O.selectionRange;if(j!==ne&&ne&&ne.ownerDocument&&s4(ne.ownerDocument.documentElement,ne)){if(ve!==null&&gu(ne)){var ze=ve.start,qe=ve.end;if(qe===void 0&&(qe=ze),"selectionStart"in ne)ne.selectionStart=ze,ne.selectionEnd=Math.min(qe,ne.value.length);else{var Ke=ne.ownerDocument||document,Ie=Ke&&Ke.defaultView||window;if(Ie.getSelection){var Ue=Ie.getSelection(),Rt=ne.textContent.length,Ht=Math.min(ve.start,Rt),hr=ve.end===void 0?Ht:Math.min(ve.end,Rt);!Ue.extend&&Ht>hr&&(j=hr,hr=Ht,Ht=j);var De=l4(ne,Ht),Te=l4(ne,hr);if(De&&Te&&(Ue.rangeCount!==1||Ue.anchorNode!==De.node||Ue.anchorOffset!==De.offset||Ue.focusNode!==Te.node||Ue.focusOffset!==Te.offset)){var ke=Ke.createRange();ke.setStart(De.node,De.offset),Ue.removeAllRanges(),Ht>hr?(Ue.addRange(ke),Ue.extend(Te.node,Te.offset)):(ke.setEnd(Te.node,Te.offset),Ue.addRange(ke))}}}}for(Ke=[],Ue=ne;Ue=Ue.parentNode;)Ue.nodeType===1&&Ke.push({element:Ue,left:Ue.scrollLeft,top:Ue.scrollTop});for(typeof ne.focus=="function"&&ne.focus(),ne=0;ne<Ke.length;ne++){var Ye=Ke[ne];Ye.element.scrollLeft=Ye.left,Ye.element.scrollTop=Ye.top}}Iu=!!nm,fy=nm=null}finally{Hn=A,ae.p=b,Z.T=m}}l.current=f,jn=2}}function yE(){if(jn===2){jn=0;var l=Lc,f=ed,m=(f.flags&8772)!==0;if((f.subtreeFlags&8772)!==0||m){m=Z.T,Z.T=null;var b=ae.p;ae.p=2;var A=Hn;Hn|=4;try{Kf(l,f.alternate,f)}finally{Hn=A,ae.p=b,Z.T=m}}jn=3}}function vE(){if(jn===4||jn===3){jn=0,Rn();var l=Lc,f=ed,m=Ll,b=cx;(f.subtreeFlags&10256)!==0||(f.flags&10256)!==0?jn=5:(jn=0,ed=Lc=null,bE(l,l.pendingLanes));var A=l.pendingLanes;if(A===0&&(js=null),Ug(m),f=f.stateNode,jt&&typeof jt.onCommitFiberRoot=="function")try{jt.onCommitFiberRoot(kt,f,void 0,(f.current.flags&128)===128)}catch{}if(b!==null){f=Z.T,A=ae.p,ae.p=2,Z.T=null;try{for(var O=l.onRecoverableError,j=0;j<b.length;j++){var ne=b[j];O(ne.value,{componentStack:ne.stack})}}finally{Z.T=f,ae.p=A}}(Ll&3)!==0&&Z1(),Vl(l),A=l.pendingLanes,(m&261930)!==0&&(A&42)!==0?l===W1?td++:(td=0,W1=l):td=0,Qp(0)}}function bE(l,f){(l.pooledCacheLanes&=f)===0&&(f=l.pooledCache,f!=null&&(l.pooledCache=null,Lf(f)))}function Z1(){return gE(),yE(),vE(),J1()}function J1(){if(jn!==5)return!1;var l=Lc,f=X1;X1=0;var m=Ug(Ll),b=Z.T,A=ae.p;try{ae.p=32>m?32:m,Z.T=null,m=lo,lo=null;var O=Lc,j=Ll;if(jn=0,ed=Lc=null,Ll=0,(Hn&6)!==0)throw Error(i(331));var ne=Hn;if(Hn|=4,ox(O.current),ax(O,O.current,j,m),Hn=ne,Qp(0,!1),jt&&typeof jt.onPostCommitFiberRoot=="function")try{jt.onPostCommitFiberRoot(kt,O)}catch{}return!0}finally{ae.p=A,Z.T=b,bE(l,f)}}function xE(l,f,m){f=Co(m,f),f=b0(l.stateNode,f,2),l=Su(l,f,2),l!==null&&(oi(l,2),Vl(l))}function ir(l,f,m){if(l.tag===3)xE(l,l,m);else for(;f!==null;){if(f.tag===3){xE(f,l,m);break}else if(f.tag===1){var b=f.stateNode;if(typeof f.type.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&(js===null||!js.has(b))){l=Co(m,l),m=J6(2),b=Su(f,m,2),b!==null&&(H4(m,b,f,l),oi(b,2),Vl(b));break}}f=f.return}}function ey(l,f,m){var b=l.pingCache;if(b===null){b=l.pingCache=new sE;var A=new Set;b.set(f,A)}else A=b.get(f),A===void 0&&(A=new Set,b.set(f,A));A.has(m)||(Hp=!0,A.add(m),l=mx.bind(null,l,f,m),f.then(l,l))}function mx(l,f,m){var b=l.pingCache;b!==null&&b.delete(f),l.pingedLanes|=l.suspendedLanes&m,l.warmLanes&=~m,dr===l&&(zn&m)===m&&(Nr===4||Nr===3&&(zn&62914560)===zn&&300>Bt()-qp?(Hn&2)===0&&w0(l,0):ux|=m,Ic===zn&&(Ic=0)),Vl(l)}function ty(l,f){f===0&&(f=ct()),l=oa(l,f),l!==null&&(oi(l,f),Vl(l))}function Q8(l){var f=l.memoizedState,m=0;f!==null&&(m=f.retryLane),ty(l,m)}function _o(l,f){var m=0;switch(l.tag){case 31:case 13:var b=l.stateNode,A=l.memoizedState;A!==null&&(m=A.retryLane);break;case 19:b=l.stateNode;break;case 22:b=l.stateNode._retryCache;break;default:throw Error(i(314))}b!==null&&b.delete(f),ty(l,m)}function SE(l,f){return mn(l,f)}var Wp=null,Vc=null,ny=!1,ry=!1,gx=!1,Bc=0;function Vl(l){l!==Vc&&l.next===null&&(Vc===null?Wp=Vc=l:Vc=Vc.next=l),ry=!0,ny||(ny=!0,O0())}function Qp(l,f){if(!gx&&ry){gx=!0;do for(var m=!1,b=Wp;b!==null;){if(l!==0){var A=b.pendingLanes;if(A===0)var O=0;else{var j=b.suspendedLanes,ne=b.pingedLanes;O=(1<<31-bn(42|l)+1)-1,O&=A&~(j&~ne),O=O&201326741?O&201326741|1:O?O|2:0}O!==0&&(m=!0,Jp(b,O))}else O=zn,O=wt(b,b===dr?O:0,b.cancelPendingCommit!==null||b.timeoutHandle!==-1),(O&3)===0||vt(b,O)||(m=!0,Jp(b,O));b=b.next}while(m);gx=!1}}function Kp(){Zp()}function Zp(){ry=ny=!1;var l=0;Bc!==0&&OE()&&(l=Bc);for(var f=Bt(),m=null,b=Wp;b!==null;){var A=b.next,O=yx(b,f);O===0?(b.next=null,m===null?Wp=A:m.next=A,A===null&&(Vc=m)):(m=b,(l!==0||(O&3)!==0)&&(ry=!0)),b=A}jn!==0&&jn!==5||Qp(l),Bc!==0&&(Bc=0)}function yx(l,f){for(var m=l.suspendedLanes,b=l.pingedLanes,A=l.expirationTimes,O=l.pendingLanes&-62914561;0<O;){var j=31-bn(O),ne=1<<j,ve=A[j];ve===-1?((ne&m)===0||(ne&b)!==0)&&(A[j]=Yt(ne,f)):ve<=f&&(l.expiredLanes|=ne),O&=~ne}if(f=dr,m=zn,m=wt(l,l===f?m:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),b=l.callbackNode,m===0||l===f&&(Xn===2||Xn===9)||l.cancelPendingCommit!==null)return b!==null&&b!==null&&at(b),l.callbackNode=null,l.callbackPriority=0;if((m&3)===0||vt(l,m)){if(f=m&-m,f===l.callbackPriority)return f;switch(b!==null&&at(b),Ug(m)){case 2:case 8:m=Ve;break;case 32:m=nt;break;case 268435456:m=ut;break;default:m=nt}return b=vx.bind(null,l),m=mn(m,b),l.callbackPriority=f,l.callbackNode=m,f}return b!==null&&b!==null&&at(b),l.callbackPriority=2,l.callbackNode=null,2}function vx(l,f){if(jn!==0&&jn!==5)return l.callbackNode=null,l.callbackPriority=0,null;var m=l.callbackNode;if(Z1()&&l.callbackNode!==m)return null;var b=zn;return b=wt(l,l===dr?b:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),b===0?null:(dx(l,b,f),yx(l,Bt()),l.callbackNode!=null&&l.callbackNode===m?vx.bind(null,l):null)}function Jp(l,f){if(Z1())return null;dx(l,f,!0)}function O0(){N0(function(){(Hn&6)!==0?mn(be,Kp):Zp()})}function nd(){if(Bc===0){var l=wc;l===0&&(l=Oe,Oe<<=1,(Oe&261888)===0&&(Oe=256)),Bc=l}return Bc}function bx(l){return l==null||typeof l=="symbol"||typeof l=="boolean"?null:typeof l=="function"?l:hc(""+l)}function EE(l,f){var m=f.ownerDocument.createElement("input");return m.name=f.name,m.value=f.value,l.id&&m.setAttribute("form",l.id),f.parentNode.insertBefore(m,f),l=new FormData(l),m.parentNode.removeChild(m),l}function M0(l,f,m,b,A){if(f==="submit"&&m&&m.stateNode===A){var O=bx((A[Or]||null).action),j=b.submitter;j&&(f=(f=j[Or]||null)?bx(f.formAction):j.getAttribute("formAction"),f!==null&&(O=f,j=null));var ne=new Gh("action","action",null,b,A);l.push({event:ne,listeners:[{instance:null,listener:function(){if(b.defaultPrevented){if(Bc!==0){var ve=j?EE(A,j):new FormData(A);L1(m,{pending:!0,data:ve,method:A.method,action:O},null,ve)}}else typeof O=="function"&&(ne.preventDefault(),ve=j?EE(A,j):new FormData(A),L1(m,{pending:!0,data:ve,method:A.method,action:O},O,ve))},currentTarget:A}]})}}for(var rd=0;rd<Ml.length;rd++){var iy=Ml[rd],ay=iy.toLowerCase(),xx=iy[0].toUpperCase()+iy.slice(1);Wa(ay,"on"+xx)}Wa(br,"onAnimationEnd"),Wa(Zh,"onAnimationIteration"),Wa(c4,"onAnimationStart"),Wa("dblclick","onDoubleClick"),Wa("focusin","onFocus"),Wa("focusout","onBlur"),Wa(f4,"onTransitionRun"),Wa(Df,"onTransitionStart"),Wa(Jh,"onTransitionCancel"),Wa(Ol,"onTransitionEnd"),Sf("onMouseEnter",["mouseout","mouseover"]),Sf("onMouseLeave",["mouseout","mouseover"]),Sf("onPointerEnter",["pointerout","pointerover"]),Sf("onPointerLeave",["pointerout","pointerover"]),xo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xo("onBeforeInput",["compositionend","keypress","textInput","paste"]),xo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var id="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(" "),wE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(id));function Sx(l,f){f=(f&4)!==0;for(var m=0;m<l.length;m++){var b=l[m],A=b.event;b=b.listeners;e:{var O=void 0;if(f)for(var j=b.length-1;0<=j;j--){var ne=b[j],ve=ne.instance,ze=ne.currentTarget;if(ne=ne.listener,ve!==O&&A.isPropagationStopped())break e;O=ne,A.currentTarget=ze;try{O(A)}catch(qe){Sc(qe)}A.currentTarget=null,O=ve}else for(j=0;j<b.length;j++){if(ne=b[j],ve=ne.instance,ze=ne.currentTarget,ne=ne.listener,ve!==O&&A.isPropagationStopped())break e;O=ne,A.currentTarget=ze;try{O(A)}catch(qe){Sc(qe)}A.currentTarget=null,O=ve}}}}function _n(l,f){var m=f[Ih];m===void 0&&(m=f[Ih]=new Set);var b=l+"__bubble";m.has(b)||(em(f,l,2,!1),m.add(b))}function oy(l,f,m){var b=0;f&&(b|=4),em(m,l,b,f)}var ly="_reactListening"+Math.random().toString(36).slice(2);function Ex(l){if(!l[ly]){l[ly]=!0,Fa.forEach(function(m){m!=="selectionchange"&&(wE.has(m)||oy(m,!1,l),oy(m,!0,l))});var f=l.nodeType===9?l:l.ownerDocument;f===null||f[ly]||(f[ly]=!0,oy("selectionchange",!1,f))}}function em(l,f,m,b){switch(cm(f)){case 2:var A=ha;break;case 8:A=$s;break;default:A=ul}m=A.bind(null,f,m,l),A=void 0,!Xb||f!=="touchstart"&&f!=="touchmove"&&f!=="wheel"||(A=!0),b?A!==void 0?l.addEventListener(f,m,{capture:!0,passive:A}):l.addEventListener(f,m,!0):A!==void 0?l.addEventListener(f,m,{passive:A}):l.addEventListener(f,m,!1)}function R0(l,f,m,b,A){var O=b;if((f&1)===0&&(f&2)===0&&b!==null)e:for(;;){if(b===null)return;var j=b.tag;if(j===3||j===4){var ne=b.stateNode.containerInfo;if(ne===A)break;if(j===4)for(j=b.return;j!==null;){var ve=j.tag;if((ve===3||ve===4)&&j.stateNode.containerInfo===A)return;j=j.return}for(;ne!==null;){if(j=yf(ne),j===null)return;if(ve=j.tag,ve===5||ve===6||ve===26||ve===27){b=O=j;continue e}ne=ne.parentNode}}b=b.return}Hh(function(){var ze=O,qe=Fg(m),Ke=[];e:{var Ie=q6.get(l);if(Ie!==void 0){var Ue=Gh,Rt=l;switch(l){case"keypress":if(qh(m)===0)break e;case"keydown":case"keyup":Ue=Zg;break;case"focusin":Rt="focus",Ue=Kg;break;case"focusout":Rt="blur",Ue=Kg;break;case"beforeblur":case"afterblur":Ue=Kg;break;case"click":if(m.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ue=D6;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ue=N6;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ue=H8;break;case br:case Zh:case c4:Ue=Zb;break;case Ol:Ue=B6;break;case"scroll":case"scrollend":Ue=_6;break;case"wheel":Ue=e4;break;case"copy":case"cut":case"paste":Ue=Af;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ue=e1;break;case"toggle":case"beforetoggle":Ue=j6}var Ht=(f&4)!==0,hr=!Ht&&(l==="scroll"||l==="scrollend"),De=Ht?Ie!==null?Ie+"Capture":null:Ie;Ht=[];for(var Te=ze,ke;Te!==null;){var Ye=Te;if(ke=Ye.stateNode,Ye=Ye.tag,Ye!==5&&Ye!==26&&Ye!==27||ke===null||De===null||(Ye=Kd(Te,De),Ye!=null&&Ht.push(tm(Te,Ye,ke))),hr)break;Te=Te.return}0<Ht.length&&(Ie=new Ue(Ie,Rt,null,m,qe),Ke.push({event:Ie,listeners:Ht}))}}if((f&7)===0){e:{if(Ie=l==="mouseover"||l==="pointerover",Ue=l==="mouseout"||l==="pointerout",Ie&&m!==$h&&(Rt=m.relatedTarget||m.fromElement)&&(yf(Rt)||Rt[gf]))break e;if((Ue||Ie)&&(Ie=qe.window===qe?qe:(Ie=qe.ownerDocument)?Ie.defaultView||Ie.parentWindow:window,Ue?(Rt=m.relatedTarget||m.toElement,Ue=ze,Rt=Rt?yf(Rt):null,Rt!==null&&(hr=s(Rt),Ht=Rt.tag,Rt!==hr||Ht!==5&&Ht!==27&&Ht!==6)&&(Rt=null)):(Ue=null,Rt=ze),Ue!==Rt)){if(Ht=D6,Ye="onMouseLeave",De="onMouseEnter",Te="mouse",(l==="pointerout"||l==="pointerover")&&(Ht=e1,Ye="onPointerLeave",De="onPointerEnter",Te="pointer"),hr=Ue==null?Ie:Yd(Ue),ke=Rt==null?Ie:Yd(Rt),Ie=new Ht(Ye,Te+"leave",Ue,m,qe),Ie.target=hr,Ie.relatedTarget=ke,Ye=null,yf(qe)===ze&&(Ht=new Ht(De,Te+"enter",Rt,m,qe),Ht.target=ke,Ht.relatedTarget=hr,Ye=Ht),hr=Ye,Ue&&Rt)t:{for(Ht=TE,De=Ue,Te=Rt,ke=0,Ye=De;Ye;Ye=Ht(Ye))ke++;Ye=0;for(var Lt=Te;Lt;Lt=Ht(Lt))Ye++;for(;0<ke-Ye;)De=Ht(De),ke--;for(;0<Ye-ke;)Te=Ht(Te),Ye--;for(;ke--;){if(De===Te||Te!==null&&De===Te.alternate){Ht=De;break t}De=Ht(De),Te=Ht(Te)}Ht=null}else Ht=null;Ue!==null&&wx(Ke,Ie,Ue,Ht,!1),Rt!==null&&hr!==null&&wx(Ke,hr,Rt,Ht,!0)}}e:{if(Ie=ze?Yd(ze):window,Ue=Ie.nodeName&&Ie.nodeName.toLowerCase(),Ue==="select"||Ue==="input"&&Ie.type==="file")var qn=i1;else if(n1(Ie))if(i4)qn=gc;else{qn=$6;var Dt=o4}else Ue=Ie.nodeName,!Ue||Ue.toLowerCase()!=="input"||Ie.type!=="checkbox"&&Ie.type!=="radio"?ze&&Fb(ze.elementType)&&(qn=i1):qn=H6;if(qn&&(qn=qn(l,ze))){fs(Ke,qn,m,qe);break e}Dt&&Dt(l,Ie,ze),l==="focusout"&&ze&&Ie.type==="number"&&ze.memoizedProps.value!=null&&Wd(Ie,"number",Ie.value)}switch(Dt=ze?Yd(ze):window,l){case"focusin":(n1(Dt)||Dt.contentEditable==="true")&&(ps=Dt,Qh=ze,vc=null);break;case"focusout":vc=Qh=ps=null;break;case"mousedown":ms=!0;break;case"contextmenu":case"mouseup":case"dragend":ms=!1,gs(Ke,m,qe);break;case"selectionchange":if(u4)break;case"keydown":case"keyup":gs(Ke,m,qe)}var pn;if(Jd)e:{switch(l){case"compositionstart":var Cn="onCompositionStart";break e;case"compositionend":Cn="onCompositionEnd";break e;case"compositionupdate":Cn="onCompositionUpdate";break e}Cn=void 0}else Of?mc(l,m)&&(Cn="onCompositionEnd"):l==="keydown"&&m.keyCode===229&&(Cn="onCompositionStart");Cn&&(Fi&&m.locale!=="ko"&&(Of||Cn!=="onCompositionStart"?Cn==="onCompositionEnd"&&Of&&(pn=R6()):(pu=qe,Yg="value"in pu?pu.value:pu.textContent,Of=!0)),Dt=sy(ze,Cn),0<Dt.length&&(Cn=new Wo(Cn,l,null,m,qe),Ke.push({event:Cn,listeners:Dt}),pn?Cn.data=pn:(pn=t1(m),pn!==null&&(Cn.data=pn)))),(pn=n4?P6(l,m):U6(l,m))&&(Cn=sy(ze,"onBeforeInput"),0<Cn.length&&(Dt=new Wo("onBeforeInput","beforeinput",null,m,qe),Ke.push({event:Dt,listeners:Cn}),Dt.data=pn)),M0(Ke,l,ze,m,qe)}Sx(Ke,f)})}function tm(l,f,m){return{instance:l,listener:f,currentTarget:m}}function sy(l,f){for(var m=f+"Capture",b=[];l!==null;){var A=l,O=A.stateNode;if(A=A.tag,A!==5&&A!==26&&A!==27||O===null||(A=Kd(l,m),A!=null&&b.unshift(tm(l,A,O)),A=Kd(l,f),A!=null&&b.push(tm(l,A,O))),l.tag===3)return b;l=l.return}return[]}function TE(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5&&l.tag!==27);return l||null}function wx(l,f,m,b,A){for(var O=f._reactName,j=[];m!==null&&m!==b;){var ne=m,ve=ne.alternate,ze=ne.stateNode;if(ne=ne.tag,ve!==null&&ve===b)break;ne!==5&&ne!==26&&ne!==27||ze===null||(ve=ze,A?(ze=Kd(m,O),ze!=null&&j.unshift(tm(m,ze,ve))):A||(ze=Kd(m,O),ze!=null&&j.push(tm(m,ze,ve)))),m=m.return}j.length!==0&&l.push({event:f,listeners:j})}var Tx=/\r\n?/g,AE=/\u0000|\uFFFD/g;function uy(l){return(typeof l=="string"?l:""+l).replace(Tx,`
|
|
102
102
|
`).replace(AE,"")}function Ax(l,f){return f=uy(f),uy(l)===f}function ar(l,f,m,b,A,O){switch(m){case"children":typeof b=="string"?f==="body"||f==="textarea"&&b===""||Ef(l,b):(typeof b=="number"||typeof b=="bigint")&&f!=="body"&&Ef(l,""+b);break;case"className":Xd(l,"class",b);break;case"tabIndex":Xd(l,"tabindex",b);break;case"dir":case"role":case"viewBox":case"width":case"height":Xd(l,m,b);break;case"style":M6(l,b,O);break;case"data":if(f!=="object"){Xd(l,"data",b);break}case"src":case"href":if(b===""&&(f!=="a"||m!=="href")){l.removeAttribute(m);break}if(b==null||typeof b=="function"||typeof b=="symbol"||typeof b=="boolean"){l.removeAttribute(m);break}b=hc(""+b),l.setAttribute(m,b);break;case"action":case"formAction":if(typeof b=="function"){l.setAttribute(m,"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"&&(m==="formAction"?(f!=="input"&&ar(l,f,"name",A.name,A,null),ar(l,f,"formEncType",A.formEncType,A,null),ar(l,f,"formMethod",A.formMethod,A,null),ar(l,f,"formTarget",A.formTarget,A,null)):(ar(l,f,"encType",A.encType,A,null),ar(l,f,"method",A.method,A,null),ar(l,f,"target",A.target,A,null)));if(b==null||typeof b=="symbol"||typeof b=="boolean"){l.removeAttribute(m);break}b=hc(""+b),l.setAttribute(m,b);break;case"onClick":b!=null&&(l.onclick=Gi);break;case"onScroll":b!=null&&_n("scroll",l);break;case"onScrollEnd":b!=null&&_n("scrollend",l);break;case"dangerouslySetInnerHTML":if(b!=null){if(typeof b!="object"||!("__html"in b))throw Error(i(61));if(m=b.__html,m!=null){if(A.children!=null)throw Error(i(60));l.innerHTML=m}}break;case"multiple":l.multiple=b&&typeof b!="function"&&typeof b!="symbol";break;case"muted":l.muted=b&&typeof b!="function"&&typeof b!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(b==null||typeof b=="function"||typeof b=="boolean"||typeof b=="symbol"){l.removeAttribute("xlink:href");break}m=hc(""+b),l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",m);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":b!=null&&typeof b!="function"&&typeof b!="symbol"?l.setAttribute(m,""+b):l.removeAttribute(m);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":b&&typeof b!="function"&&typeof b!="symbol"?l.setAttribute(m,""):l.removeAttribute(m);break;case"capture":case"download":b===!0?l.setAttribute(m,""):b!==!1&&b!=null&&typeof b!="function"&&typeof b!="symbol"?l.setAttribute(m,b):l.removeAttribute(m);break;case"cols":case"rows":case"size":case"span":b!=null&&typeof b!="function"&&typeof b!="symbol"&&!isNaN(b)&&1<=b?l.setAttribute(m,b):l.removeAttribute(m);break;case"rowSpan":case"start":b==null||typeof b=="function"||typeof b=="symbol"||isNaN(b)?l.removeAttribute(m):l.setAttribute(m,b);break;case"popover":_n("beforetoggle",l),_n("toggle",l),du(l,"popover",b);break;case"xlinkActuate":hu(l,"http://www.w3.org/1999/xlink","xlink:actuate",b);break;case"xlinkArcrole":hu(l,"http://www.w3.org/1999/xlink","xlink:arcrole",b);break;case"xlinkRole":hu(l,"http://www.w3.org/1999/xlink","xlink:role",b);break;case"xlinkShow":hu(l,"http://www.w3.org/1999/xlink","xlink:show",b);break;case"xlinkTitle":hu(l,"http://www.w3.org/1999/xlink","xlink:title",b);break;case"xlinkType":hu(l,"http://www.w3.org/1999/xlink","xlink:type",b);break;case"xmlBase":hu(l,"http://www.w3.org/XML/1998/namespace","xml:base",b);break;case"xmlLang":hu(l,"http://www.w3.org/XML/1998/namespace","xml:lang",b);break;case"xmlSpace":hu(l,"http://www.w3.org/XML/1998/namespace","xml:space",b);break;case"is":du(l,"is",b);break;case"innerText":case"textContent":break;default:(!(2<m.length)||m[0]!=="o"&&m[0]!=="O"||m[1]!=="n"&&m[1]!=="N")&&(m=P8.get(m)||m,du(l,m,b))}}function Cx(l,f,m,b,A,O){switch(m){case"style":M6(l,b,O);break;case"dangerouslySetInnerHTML":if(b!=null){if(typeof b!="object"||!("__html"in b))throw Error(i(61));if(m=b.__html,m!=null){if(A.children!=null)throw Error(i(60));l.innerHTML=m}}break;case"children":typeof b=="string"?Ef(l,b):(typeof b=="number"||typeof b=="bigint")&&Ef(l,""+b);break;case"onScroll":b!=null&&_n("scroll",l);break;case"onScrollEnd":b!=null&&_n("scrollend",l);break;case"onClick":b!=null&&(l.onclick=Gi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!xf.hasOwnProperty(m))e:{if(m[0]==="o"&&m[1]==="n"&&(A=m.endsWith("Capture"),f=m.slice(2,A?m.length-7:void 0),O=l[Or]||null,O=O!=null?O[m]:null,typeof O=="function"&&l.removeEventListener(f,O,A),typeof b=="function")){typeof O!="function"&&O!==null&&(m in l?l[m]=null:l.hasAttribute(m)&&l.removeAttribute(m)),l.addEventListener(f,b,A);break e}m in l?l[m]=b:b===!0?l.setAttribute(m,""):du(l,m,b)}}}function Zi(l,f,m){switch(f){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_n("error",l),_n("load",l);var b=!1,A=!1,O;for(O in m)if(m.hasOwnProperty(O)){var j=m[O];if(j!=null)switch(O){case"src":b=!0;break;case"srcSet":A=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,f));default:ar(l,f,O,j,m,null)}}A&&ar(l,f,"srcSet",m.srcSet,m,null),b&&ar(l,f,"src",m.src,m,null);return;case"input":_n("invalid",l);var ne=O=j=A=null,ve=null,ze=null;for(b in m)if(m.hasOwnProperty(b)){var qe=m[b];if(qe!=null)switch(b){case"name":A=qe;break;case"type":j=qe;break;case"checked":ve=qe;break;case"defaultChecked":ze=qe;break;case"value":O=qe;break;case"defaultValue":ne=qe;break;case"children":case"dangerouslySetInnerHTML":if(qe!=null)throw Error(i(137,f));break;default:ar(l,f,b,qe,m,null)}}Gg(l,O,ne,ve,ze,j,A,!1);return;case"select":_n("invalid",l),b=j=O=null;for(A in m)if(m.hasOwnProperty(A)&&(ne=m[A],ne!=null))switch(A){case"value":O=ne;break;case"defaultValue":j=ne;break;case"multiple":b=ne;default:ar(l,f,A,ne,m,null)}f=O,m=j,l.multiple=!!b,f!=null?as(l,!!b,f,!1):m!=null&&as(l,!!b,m,!0);return;case"textarea":_n("invalid",l),O=A=b=null;for(j in m)if(m.hasOwnProperty(j)&&(ne=m[j],ne!=null))switch(j){case"value":b=ne;break;case"defaultValue":A=ne;break;case"children":O=ne;break;case"dangerouslySetInnerHTML":if(ne!=null)throw Error(i(91));break;default:ar(l,f,j,ne,m,null)}qb(l,b,A,O);return;case"option":for(ve in m)if(m.hasOwnProperty(ve)&&(b=m[ve],b!=null))switch(ve){case"selected":l.selected=b&&typeof b!="function"&&typeof b!="symbol";break;default:ar(l,f,ve,b,m,null)}return;case"dialog":_n("beforetoggle",l),_n("toggle",l),_n("cancel",l),_n("close",l);break;case"iframe":case"object":_n("load",l);break;case"video":case"audio":for(b=0;b<id.length;b++)_n(id[b],l);break;case"image":_n("error",l),_n("load",l);break;case"details":_n("toggle",l);break;case"embed":case"source":case"link":_n("error",l),_n("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(ze in m)if(m.hasOwnProperty(ze)&&(b=m[ze],b!=null))switch(ze){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,f));default:ar(l,f,ze,b,m,null)}return;default:if(Fb(f)){for(qe in m)m.hasOwnProperty(qe)&&(b=m[qe],b!==void 0&&Cx(l,f,qe,b,m,void 0));return}}for(ne in m)m.hasOwnProperty(ne)&&(b=m[ne],b!=null&&ar(l,f,ne,b,m,null))}function K8(l,f,m,b){switch(f){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,ne=null,ve=null,ze=null,qe=null;for(Ue in m){var Ke=m[Ue];if(m.hasOwnProperty(Ue)&&Ke!=null)switch(Ue){case"checked":break;case"value":break;case"defaultValue":ve=Ke;default:b.hasOwnProperty(Ue)||ar(l,f,Ue,null,b,Ke)}}for(var Ie in b){var Ue=b[Ie];if(Ke=m[Ie],b.hasOwnProperty(Ie)&&(Ue!=null||Ke!=null))switch(Ie){case"type":O=Ue;break;case"name":A=Ue;break;case"checked":ze=Ue;break;case"defaultChecked":qe=Ue;break;case"value":j=Ue;break;case"defaultValue":ne=Ue;break;case"children":case"dangerouslySetInnerHTML":if(Ue!=null)throw Error(i(137,f));break;default:Ue!==Ke&&ar(l,f,Ie,Ue,b,Ke)}}qg(l,j,ne,ve,ze,qe,O,A);return;case"select":Ue=j=ne=Ie=null;for(O in m)if(ve=m[O],m.hasOwnProperty(O)&&ve!=null)switch(O){case"value":break;case"multiple":Ue=ve;default:b.hasOwnProperty(O)||ar(l,f,O,null,b,ve)}for(A in b)if(O=b[A],ve=m[A],b.hasOwnProperty(A)&&(O!=null||ve!=null))switch(A){case"value":Ie=O;break;case"defaultValue":ne=O;break;case"multiple":j=O;default:O!==ve&&ar(l,f,A,O,b,ve)}f=ne,m=j,b=Ue,Ie!=null?as(l,!!m,Ie,!1):!!b!=!!m&&(f!=null?as(l,!!m,f,!0):as(l,!!m,m?[]:"",!1));return;case"textarea":Ue=Ie=null;for(ne in m)if(A=m[ne],m.hasOwnProperty(ne)&&A!=null&&!b.hasOwnProperty(ne))switch(ne){case"value":break;case"children":break;default:ar(l,f,ne,null,b,A)}for(j in b)if(A=b[j],O=m[j],b.hasOwnProperty(j)&&(A!=null||O!=null))switch(j){case"value":Ie=A;break;case"defaultValue":Ue=A;break;case"children":break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(i(91));break;default:A!==O&&ar(l,f,j,A,b,O)}O6(l,Ie,Ue);return;case"option":for(var Rt in m)if(Ie=m[Rt],m.hasOwnProperty(Rt)&&Ie!=null&&!b.hasOwnProperty(Rt))switch(Rt){case"selected":l.selected=!1;break;default:ar(l,f,Rt,null,b,Ie)}for(ve in b)if(Ie=b[ve],Ue=m[ve],b.hasOwnProperty(ve)&&Ie!==Ue&&(Ie!=null||Ue!=null))switch(ve){case"selected":l.selected=Ie&&typeof Ie!="function"&&typeof Ie!="symbol";break;default:ar(l,f,ve,Ie,b,Ue)}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 Ht in m)Ie=m[Ht],m.hasOwnProperty(Ht)&&Ie!=null&&!b.hasOwnProperty(Ht)&&ar(l,f,Ht,null,b,Ie);for(ze in b)if(Ie=b[ze],Ue=m[ze],b.hasOwnProperty(ze)&&Ie!==Ue&&(Ie!=null||Ue!=null))switch(ze){case"children":case"dangerouslySetInnerHTML":if(Ie!=null)throw Error(i(137,f));break;default:ar(l,f,ze,Ie,b,Ue)}return;default:if(Fb(f)){for(var hr in m)Ie=m[hr],m.hasOwnProperty(hr)&&Ie!==void 0&&!b.hasOwnProperty(hr)&&Cx(l,f,hr,void 0,b,Ie);for(qe in b)Ie=b[qe],Ue=m[qe],!b.hasOwnProperty(qe)||Ie===Ue||Ie===void 0&&Ue===void 0||Cx(l,f,qe,Ie,b,Ue);return}}for(var De in m)Ie=m[De],m.hasOwnProperty(De)&&Ie!=null&&!b.hasOwnProperty(De)&&ar(l,f,De,null,b,Ie);for(Ke in b)Ie=b[Ke],Ue=m[Ke],!b.hasOwnProperty(Ke)||Ie===Ue||Ie==null&&Ue==null||ar(l,f,Ke,Ie,b,Ue)}function cy(l){switch(l){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Ox(){if(typeof performance.getEntriesByType=="function"){for(var l=0,f=0,m=performance.getEntriesByType("resource"),b=0;b<m.length;b++){var A=m[b],O=A.transferSize,j=A.initiatorType,ne=A.duration;if(O&&ne&&cy(j)){for(j=0,ne=A.responseEnd,b+=1;b<m.length;b++){var ve=m[b],ze=ve.startTime;if(ze>ne)break;var qe=ve.transferSize,Ke=ve.initiatorType;qe&&cy(Ke)&&(ve=ve.responseEnd,j+=qe*(ve<ne?1:(ne-ze)/(ve-ze)))}if(--b,f+=8*(O+j)/(A.duration/1e3),l++,10<l)break}}if(0<l)return f/l/1e6}return navigator.connection&&(l=navigator.connection.downlink,typeof l=="number")?l:5}var nm=null,fy=null;function rm(l){return l.nodeType===9?l:l.ownerDocument}function _0(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 CE(l,f){if(l===0)switch(f){case"svg":return 1;case"math":return 2;default:return 0}return l===1&&f==="foreignObject"?0:l}function dy(l,f){return l==="textarea"||l==="noscript"||typeof f.children=="string"||typeof f.children=="number"||typeof f.children=="bigint"||typeof f.dangerouslySetInnerHTML=="object"&&f.dangerouslySetInnerHTML!==null&&f.dangerouslySetInnerHTML.__html!=null}var D0=null;function OE(){var l=window.event;return l&&l.type==="popstate"?l===D0?!1:(D0=l,!0):(D0=null,!1)}var ME=typeof setTimeout=="function"?setTimeout:void 0,hy=typeof clearTimeout=="function"?clearTimeout:void 0,Mx=typeof Promise=="function"?Promise:void 0,N0=typeof queueMicrotask=="function"?queueMicrotask:typeof Mx<"u"?function(l){return Mx.resolve(null).then(l).catch(RE)}:ME;function RE(l){setTimeout(function(){throw l})}function Ps(l){return l==="head"}function im(l,f){var m=f,b=0;do{var A=m.nextSibling;if(l.removeChild(m),A&&A.nodeType===8)if(m=A.data,m==="/$"||m==="/&"){if(b===0){l.removeChild(A),B0(f);return}b--}else if(m==="$"||m==="$?"||m==="$~"||m==="$!"||m==="&")b++;else if(m==="html")Nu(l.ownerDocument.documentElement);else if(m==="head"){m=l.ownerDocument.head,Nu(m);for(var O=m.firstChild;O;){var j=O.nextSibling,ne=O.nodeName;O[Fd]||ne==="SCRIPT"||ne==="STYLE"||ne==="LINK"&&O.rel.toLowerCase()==="stylesheet"||m.removeChild(O),O=j}}else m==="body"&&Nu(l.ownerDocument.body);m=A}while(m);B0(f)}function Rx(l,f){var m=l;l=0;do{var b=m.nextSibling;if(m.nodeType===1?f?(m._stashedDisplay=m.style.display,m.style.display="none"):(m.style.display=m._stashedDisplay||"",m.getAttribute("style")===""&&m.removeAttribute("style")):m.nodeType===3&&(f?(m._stashedText=m.nodeValue,m.nodeValue=""):m.nodeValue=m._stashedText||""),b&&b.nodeType===8)if(m=b.data,m==="/$"){if(l===0)break;l--}else m!=="$"&&m!=="$?"&&m!=="$~"&&m!=="$!"||l++;m=b}while(m)}function Zr(l){var f=l.firstChild;for(f&&f.nodeType===10&&(f=f.nextSibling);f;){var m=f;switch(f=f.nextSibling,m.nodeName){case"HTML":case"HEAD":case"BODY":Zr(m),dc(m);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(m.rel.toLowerCase()==="stylesheet")continue}l.removeChild(m)}}function _x(l,f,m,b){for(;l.nodeType===1;){var A=m;if(l.nodeName.toLowerCase()!==f.toLowerCase()){if(!b&&(l.nodeName!=="INPUT"||l.type!=="hidden"))break}else if(b){if(!l[Fd])switch(f){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(f==="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=Ji(l.nextSibling),l===null)break}return null}function Z8(l,f,m){if(f==="")return null;for(;l.nodeType!==3;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!m||(l=Ji(l.nextSibling),l===null))return null;return l}function yn(l,f){for(;l.nodeType!==8;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!f||(l=Ji(l.nextSibling),l===null))return null;return l}function Dx(l){return l.data==="$?"||l.data==="$~"}function ol(l){return l.data==="$!"||l.data==="$?"&&l.ownerDocument.readyState!=="loading"}function k0(l,f){var m=l.ownerDocument;if(l.data==="$~")l._reactRetry=f;else if(l.data!=="$?"||m.readyState!=="loading")f();else{var b=function(){f(),m.removeEventListener("DOMContentLoaded",b)};m.addEventListener("DOMContentLoaded",b),l._reactRetry=b}}function Ji(l){for(;l!=null;l=l.nextSibling){var f=l.nodeType;if(f===1||f===3)break;if(f===8){if(f=l.data,f==="$"||f==="$!"||f==="$?"||f==="$~"||f==="&"||f==="F!"||f==="F")break;if(f==="/$"||f==="/&")return null}}return l}var z0=null;function py(l){l=l.nextSibling;for(var f=0;l;){if(l.nodeType===8){var m=l.data;if(m==="/$"||m==="/&"){if(f===0)return Ji(l.nextSibling);f--}else m!=="$"&&m!=="$!"&&m!=="$?"&&m!=="$~"&&m!=="&"||f++}l=l.nextSibling}return null}function my(l){l=l.previousSibling;for(var f=0;l;){if(l.nodeType===8){var m=l.data;if(m==="$"||m==="$!"||m==="$?"||m==="$~"||m==="&"){if(f===0)return l;f--}else m!=="/$"&&m!=="/&"||f++}l=l.previousSibling}return null}function Bl(l,f,m){switch(f=rm(m),l){case"html":if(l=f.documentElement,!l)throw Error(i(452));return l;case"head":if(l=f.head,!l)throw Error(i(453));return l;case"body":if(l=f.body,!l)throw Error(i(454));return l;default:throw Error(i(451))}}function Nu(l){for(var f=l.attributes;f.length;)l.removeAttributeNode(f[0]);dc(l)}var uo=new Map,gy=new Set;function ad(l){return typeof l.getRootNode=="function"?l.getRootNode():l.nodeType===9?l:l.ownerDocument}var si=ae.d;ae.d={f:Nx,r:J8,D:wi,C:$e,L:Kn,m:eA,X:zx,S:kx,M:ku};function Nx(){var l=si.f(),f=Fp();return l||f}function J8(l){var f=vf(l);f!==null&&f.tag===5&&f.type==="form"?g0(f):si.r(l)}var od=typeof document>"u"?null:document;function _E(l,f,m){var b=od;if(b&&typeof f=="string"&&f){var A=Xo(f);A='link[rel="'+l+'"][href="'+A+'"]',typeof m=="string"&&(A+='[crossorigin="'+m+'"]'),gy.has(A)||(gy.add(A),l={rel:l,crossOrigin:m,href:f},b.querySelector(A)===null&&(f=b.createElement("link"),Zi(f,"link",l),Si(f),b.head.appendChild(f)))}}function wi(l){si.D(l),_E("dns-prefetch",l,null)}function $e(l,f){si.C(l,f),_E("preconnect",l,f)}function Kn(l,f,m){si.L(l,f,m);var b=od;if(b&&l&&f){var A='link[rel="preload"][as="'+Xo(f)+'"]';f==="image"&&m&&m.imageSrcSet?(A+='[imagesrcset="'+Xo(m.imageSrcSet)+'"]',typeof m.imageSizes=="string"&&(A+='[imagesizes="'+Xo(m.imageSizes)+'"]')):A+='[href="'+Xo(l)+'"]';var O=A;switch(f){case"style":O=Us(l);break;case"script":O=ld(l)}uo.has(O)||(l=S({rel:"preload",href:f==="image"&&m&&m.imageSrcSet?void 0:l,as:f},m),uo.set(O,l),b.querySelector(A)!==null||f==="style"&&b.querySelector(ll(O))||f==="script"&&b.querySelector(I0(O))||(f=b.createElement("link"),Zi(f,"link",l),Si(f),b.head.appendChild(f)))}}function eA(l,f){si.m(l,f);var m=od;if(m&&l){var b=f&&typeof f.as=="string"?f.as:"script",A='link[rel="modulepreload"][as="'+Xo(b)+'"][href="'+Xo(l)+'"]',O=A;switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":O=ld(l)}if(!uo.has(O)&&(l=S({rel:"modulepreload",href:l},f),uo.set(O,l),m.querySelector(A)===null)){switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(m.querySelector(I0(O)))return}b=m.createElement("link"),Zi(b,"link",l),Si(b),m.head.appendChild(b)}}}function kx(l,f,m){si.S(l,f,m);var b=od;if(b&&l){var A=bf(b).hoistableStyles,O=Us(l);f=f||"default";var j=A.get(O);if(!j){var ne={loading:0,preload:null};if(j=b.querySelector(ll(O)))ne.loading=5;else{l=S({rel:"stylesheet",href:l,"data-precedence":f},m),(m=uo.get(O))&&yy(l,m);var ve=j=b.createElement("link");Si(ve),Zi(ve,"link",l),ve._p=new Promise(function(ze,qe){ve.onload=ze,ve.onerror=qe}),ve.addEventListener("load",function(){ne.loading|=1}),ve.addEventListener("error",function(){ne.loading|=2}),ne.loading|=4,lm(j,f,b)}j={type:"stylesheet",instance:j,count:1,state:ne},A.set(O,j)}}}function zx(l,f){si.X(l,f);var m=od;if(m&&l){var b=bf(m).hoistableScripts,A=ld(l),O=b.get(A);O||(O=m.querySelector(I0(A)),O||(l=S({src:l,async:!0},f),(f=uo.get(A))&&vy(l,f),O=m.createElement("script"),Si(O),Zi(O,"link",l),m.head.appendChild(O)),O={type:"script",instance:O,count:1,state:null},b.set(A,O))}}function ku(l,f){si.M(l,f);var m=od;if(m&&l){var b=bf(m).hoistableScripts,A=ld(l),O=b.get(A);O||(O=m.querySelector(I0(A)),O||(l=S({src:l,async:!0,type:"module"},f),(f=uo.get(A))&&vy(l,f),O=m.createElement("script"),Si(O),Zi(O,"link",l),m.head.appendChild(O)),O={type:"script",instance:O,count:1,state:null},b.set(A,O))}}function zu(l,f,m,b){var A=(A=_e.current)?ad(A):null;if(!A)throw Error(i(446));switch(l){case"meta":case"title":return null;case"style":return typeof m.precedence=="string"&&typeof m.href=="string"?(f=Us(m.href),m=bf(A).hoistableStyles,b=m.get(f),b||(b={type:"style",instance:null,count:0,state:null},m.set(f,b)),b):{type:"void",instance:null,count:0,state:null};case"link":if(m.rel==="stylesheet"&&typeof m.href=="string"&&typeof m.precedence=="string"){l=Us(m.href);var O=bf(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(ll(l)))&&!O._p&&(j.instance=O,j.state.loading=5),uo.has(l)||(m={rel:"preload",as:"style",href:m.href,crossOrigin:m.crossOrigin,integrity:m.integrity,media:m.media,hrefLang:m.hrefLang,referrerPolicy:m.referrerPolicy},uo.set(l,m),O||om(A,l,m,j.state))),f&&b===null)throw Error(i(528,""));return j}if(f&&b!==null)throw Error(i(529,""));return null;case"script":return f=m.async,m=m.src,typeof m=="string"&&f&&typeof f!="function"&&typeof f!="symbol"?(f=ld(m),m=bf(A).hoistableScripts,b=m.get(f),b||(b={type:"script",instance:null,count:0,state:null},m.set(f,b)),b):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,l))}}function Us(l){return'href="'+Xo(l)+'"'}function ll(l){return'link[rel="stylesheet"]['+l+"]"}function am(l){return S({},l,{"data-precedence":l.precedence,precedence:null})}function om(l,f,m,b){l.querySelector('link[rel="preload"][as="style"]['+f+"]")?b.loading=1:(f=l.createElement("link"),b.preload=f,f.addEventListener("load",function(){return b.loading|=1}),f.addEventListener("error",function(){return b.loading|=2}),Zi(f,"link",m),Si(f),l.head.appendChild(f))}function ld(l){return'[src="'+Xo(l)+'"]'}function I0(l){return"script[async]"+l}function Ix(l,f,m){if(f.count++,f.instance===null)switch(f.type){case"style":var b=l.querySelector('style[data-href~="'+Xo(m.href)+'"]');if(b)return f.instance=b,Si(b),b;var A=S({},m,{"data-href":m.href,"data-precedence":m.precedence,href:null,precedence:null});return b=(l.ownerDocument||l).createElement("style"),Si(b),Zi(b,"style",A),lm(b,m.precedence,l),f.instance=b;case"stylesheet":A=Us(m.href);var O=l.querySelector(ll(A));if(O)return f.state.loading|=4,f.instance=O,Si(O),O;b=am(m),(A=uo.get(A))&&yy(b,A),O=(l.ownerDocument||l).createElement("link"),Si(O);var j=O;return j._p=new Promise(function(ne,ve){j.onload=ne,j.onerror=ve}),Zi(O,"link",b),f.state.loading|=4,lm(O,m.precedence,l),f.instance=O;case"script":return O=ld(m.src),(A=l.querySelector(I0(O)))?(f.instance=A,Si(A),A):(b=m,(A=uo.get(O))&&(b=S({},m),vy(b,A)),l=l.ownerDocument||l,A=l.createElement("script"),Si(A),Zi(A,"link",b),l.head.appendChild(A),f.instance=A);case"void":return null;default:throw Error(i(443,f.type))}else f.type==="stylesheet"&&(f.state.loading&4)===0&&(b=f.instance,f.state.loading|=4,lm(b,m.precedence,l));return f.instance}function lm(l,f,m){for(var b=m.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),A=b.length?b[b.length-1]:null,O=A,j=0;j<b.length;j++){var ne=b[j];if(ne.dataset.precedence===f)O=ne;else if(O!==A)break}O?O.parentNode.insertBefore(l,O.nextSibling):(f=m.nodeType===9?m.head:m,f.insertBefore(l,f.firstChild))}function yy(l,f){l.crossOrigin==null&&(l.crossOrigin=f.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=f.referrerPolicy),l.title==null&&(l.title=f.title)}function vy(l,f){l.crossOrigin==null&&(l.crossOrigin=f.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=f.referrerPolicy),l.integrity==null&&(l.integrity=f.integrity)}var sm=null;function by(l,f,m){if(sm===null){var b=new Map,A=sm=new Map;A.set(m,b)}else A=sm,b=A.get(m),b||(b=new Map,A.set(m,b));if(b.has(l))return b;for(b.set(l,null),m=m.getElementsByTagName(l),A=0;A<m.length;A++){var O=m[A];if(!(O[Fd]||O[pi]||l==="link"&&O.getAttribute("rel")==="stylesheet")&&O.namespaceURI!=="http://www.w3.org/2000/svg"){var j=O.getAttribute(f)||"";j=l+j;var ne=b.get(j);ne?ne.push(O):b.set(j,[O])}}return b}function Lx(l,f,m){l=l.ownerDocument||l,l.head.insertBefore(m,f==="title"?l.querySelector("head > title"):null)}function Vx(l,f,m){if(m===1||f.itemProp!=null)return!1;switch(l){case"meta":case"title":return!0;case"style":if(typeof f.precedence!="string"||typeof f.href!="string"||f.href==="")break;return!0;case"link":if(typeof f.rel!="string"||typeof f.href!="string"||f.href===""||f.onLoad||f.onError)break;switch(f.rel){case"stylesheet":return l=f.disabled,typeof f.precedence=="string"&&l==null;default:return!0}case"script":if(f.async&&typeof f.async!="function"&&typeof f.async!="symbol"&&!f.onLoad&&!f.onError&&f.src&&typeof f.src=="string")return!0}return!1}function xy(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}function Do(l,f,m,b){if(m.type==="stylesheet"&&(typeof b.media!="string"||matchMedia(b.media).matches!==!1)&&(m.state.loading&4)===0){if(m.instance===null){var A=Us(b.href),O=f.querySelector(ll(A));if(O){f=O._p,f!==null&&typeof f=="object"&&typeof f.then=="function"&&(l.count++,l=L0.bind(l),f.then(l,l)),m.state.loading|=4,m.instance=O,Si(O);return}O=f.ownerDocument||f,b=am(b),(A=uo.get(A))&&yy(b,A),O=O.createElement("link"),Si(O);var j=O;j._p=new Promise(function(ne,ve){j.onload=ne,j.onerror=ve}),Zi(O,"link",b),m.instance=O}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(m,f),(f=m.state.preload)&&(m.state.loading&3)===0&&(l.count++,m=L0.bind(l),f.addEventListener("load",m),f.addEventListener("error",m))}}var sl=0;function jl(l,f){return l.stylesheets&&l.count===0&&Ey(l,l.stylesheets),0<l.count||0<l.imgCount?function(m){var b=setTimeout(function(){if(l.stylesheets&&Ey(l,l.stylesheets),l.unsuspend){var O=l.unsuspend;l.unsuspend=null,O()}},6e4+f);0<l.imgBytes&&sl===0&&(sl=62500*Ox());var A=setTimeout(function(){if(l.waitingForImages=!1,l.count===0&&(l.stylesheets&&Ey(l,l.stylesheets),l.unsuspend)){var O=l.unsuspend;l.unsuspend=null,O()}},(l.imgBytes>sl?50:800)+f);return l.unsuspend=m,function(){l.unsuspend=null,clearTimeout(b),clearTimeout(A)}}:null}function L0(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ey(this,this.stylesheets);else if(this.unsuspend){var l=this.unsuspend;this.unsuspend=null,l()}}}var Sy=null;function Ey(l,f){l.stylesheets=null,l.unsuspend!==null&&(l.count++,Sy=new Map,f.forEach(tA,l),Sy=null,L0.call(l))}function tA(l,f){if(!(f.state.loading&4)){var m=Sy.get(l);if(m)var b=m.get(null);else{m=new Map,Sy.set(l,m);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")&&(m.set(j.dataset.precedence,j),b=j)}b&&m.set(null,b)}A=f.instance,j=A.getAttribute("data-precedence"),O=m.get(j)||b,O===b&&m.set(null,A),m.set(j,A),this.count++,b=L0.bind(this),A.addEventListener("load",b),A.addEventListener("error",b),O?O.parentNode.insertBefore(A,O.nextSibling):(l=l.nodeType===9?l.head:l,l.insertBefore(A,l.firstChild)),f.state.loading|=4}}var Jr={$$typeof:B,Provider:null,Consumer:null,_currentValue:de,_currentValue2:de,_threadCount:0};function nA(l,f,m,b,A,O,j,ne,ve){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=Bn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bn(0),this.hiddenUpdates=Bn(null),this.identifierPrefix=b,this.onUncaughtError=A,this.onCaughtError=O,this.onRecoverableError=j,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ve,this.incompleteTransitions=new Map}function wy(l,f,m,b,A,O,j,ne,ve,ze,qe,Ke){return l=new nA(l,f,m,j,ve,ze,qe,Ke,ne),f=1,O===!0&&(f|=24),O=Qa(3,null,null,f),l.current=O,O.stateNode=l,f=h1(),f.refCount++,l.pooledCache=f,f.refCount++,O.memoizedState={element:b,isDehydrated:m,cache:f},g1(O),l}function Ty(l){return l?(l=Nf,l):Nf}function sd(l,f,m,b,A,O){A=Ty(A),b.context===null?b.context=A:b.pendingContext=A,b=xu(f),b.payload={element:m},O=O===void 0?null:O,O!==null&&(b.callback=O),m=Su(l,b,f),m!==null&&(so(m,l,f),Ts(m,l,f))}function DE(l,f){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var m=l.retryLane;l.retryLane=m!==0&&m<f?m:f}}function um(l,f){DE(l,f),(l=l.alternate)&&DE(l,f)}function NE(l){if(l.tag===13||l.tag===31){var f=oa(l,67108864);f!==null&&so(f,l,67108864),um(l,67108864)}}function kE(l){if(l.tag===13||l.tag===31){var f=ka();f=Ga(f);var m=oa(l,f);m!==null&&so(m,l,f),um(l,f)}}var Iu=!0;function ha(l,f,m,b){var A=Z.T;Z.T=null;var O=ae.p;try{ae.p=2,ul(l,f,m,b)}finally{ae.p=O,Z.T=A}}function $s(l,f,m,b){var A=Z.T;Z.T=null;var O=ae.p;try{ae.p=8,ul(l,f,m,b)}finally{ae.p=O,Z.T=A}}function ul(l,f,m,b){if(Iu){var A=ea(b);if(A===null)R0(l,f,b,Ay,m),pa(l,b);else if(jx(A,l,f,m,b))b.stopPropagation();else if(pa(l,b),f&4&&-1<na.indexOf(l)){for(;A!==null;){var O=vf(A);if(O!==null)switch(O.tag){case 3:if(O=O.stateNode,O.current.memoizedState.isDehydrated){var j=We(O.pendingLanes);if(j!==0){var ne=O;for(ne.pendingLanes|=2,ne.entangledLanes|=2;j;){var ve=1<<31-bn(j);ne.entanglements[1]|=ve,j&=~ve}Vl(O),(Hn&6)===0&&(Gp=Bt()+500,Qp(0))}}break;case 31:case 13:ne=oa(O,2),ne!==null&&so(ne,O,2),Fp(),um(O,2)}if(O=ea(b),O===null&&R0(l,f,b,Ay,m),O===A)break;A=O}A!==null&&b.stopPropagation()}else R0(l,f,b,null,m)}}function ea(l){return l=Fg(l),Bx(l)}var Ay=null;function Bx(l){if(Ay=null,l=yf(l),l!==null){var f=s(l);if(f===null)l=null;else{var m=f.tag;if(m===13){if(l=c(f),l!==null)return l;l=null}else if(m===31){if(l=d(f),l!==null)return l;l=null}else if(m===3){if(f.stateNode.current.memoizedState.isDehydrated)return f.tag===3?f.stateNode.containerInfo:null;l=null}else f!==l&&(l=null)}}return Ay=l,null}function cm(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(Ze()){case be:return 2;case Ve:return 8;case nt:case pt:return 32;case ut:return 268435456;default:return 32}default:return 32}}var V0=!1,Pl=null,Ti=null,ta=null,No=new Map,jc=new Map,za=[],na="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 pa(l,f){switch(l){case"focusin":case"focusout":Pl=null;break;case"dragenter":case"dragleave":Ti=null;break;case"mouseover":case"mouseout":ta=null;break;case"pointerover":case"pointerout":No.delete(f.pointerId);break;case"gotpointercapture":case"lostpointercapture":jc.delete(f.pointerId)}}function cl(l,f,m,b,A,O){return l===null||l.nativeEvent!==O?(l={blockedOn:f,domEventName:m,eventSystemFlags:b,nativeEvent:O,targetContainers:[A]},f!==null&&(f=vf(f),f!==null&&NE(f)),l):(l.eventSystemFlags|=b,f=l.targetContainers,A!==null&&f.indexOf(A)===-1&&f.push(A),l)}function jx(l,f,m,b,A){switch(f){case"focusin":return Pl=cl(Pl,l,f,m,b,A),!0;case"dragenter":return Ti=cl(Ti,l,f,m,b,A),!0;case"mouseover":return ta=cl(ta,l,f,m,b,A),!0;case"pointerover":var O=A.pointerId;return No.set(O,cl(No.get(O)||null,l,f,m,b,A)),!0;case"gotpointercapture":return O=A.pointerId,jc.set(O,cl(jc.get(O)||null,l,f,m,b,A)),!0}return!1}function zE(l){var f=yf(l.target);if(f!==null){var m=s(f);if(m!==null){if(f=m.tag,f===13){if(f=c(m),f!==null){l.blockedOn=f,$g(l.priority,function(){kE(m)});return}}else if(f===31){if(f=d(m),f!==null){l.blockedOn=f,$g(l.priority,function(){kE(m)});return}}else if(f===3&&m.stateNode.current.memoizedState.isDehydrated){l.blockedOn=m.tag===3?m.stateNode.containerInfo:null;return}}}l.blockedOn=null}function Cy(l){if(l.blockedOn!==null)return!1;for(var f=l.targetContainers;0<f.length;){var m=ea(l.nativeEvent);if(m===null){m=l.nativeEvent;var b=new m.constructor(m.type,m);$h=b,m.target.dispatchEvent(b),$h=null}else return f=vf(m),f!==null&&NE(f),l.blockedOn=m,!1;f.shift()}return!0}function Px(l,f,m){Cy(l)&&m.delete(f)}function fm(){V0=!1,Pl!==null&&Cy(Pl)&&(Pl=null),Ti!==null&&Cy(Ti)&&(Ti=null),ta!==null&&Cy(ta)&&(ta=null),No.forEach(Px),jc.forEach(Px)}function dm(l,f){l.blockedOn===f&&(l.blockedOn=null,V0||(V0=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,fm)))}var Hs=null;function Oy(l){Hs!==l&&(Hs=l,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Hs===l&&(Hs=null);for(var f=0;f<l.length;f+=3){var m=l[f],b=l[f+1],A=l[f+2];if(typeof b!="function"){if(Bx(b||m)===null)continue;break}var O=vf(m);O!==null&&(l.splice(f,3),f-=3,L1(O,{pending:!0,data:A,method:m.method,action:b},b,A))}}))}function B0(l){function f(ve){return dm(ve,l)}Pl!==null&&dm(Pl,l),Ti!==null&&dm(Ti,l),ta!==null&&dm(ta,l),No.forEach(f),jc.forEach(f);for(var m=0;m<za.length;m++){var b=za[m];b.blockedOn===l&&(b.blockedOn=null)}for(;0<za.length&&(m=za[0],m.blockedOn===null);)zE(m),m.blockedOn===null&&za.shift();if(m=(l.ownerDocument||l).$$reactFormReplay,m!=null)for(b=0;b<m.length;b+=3){var A=m[b],O=m[b+1],j=A[Or]||null;if(typeof O=="function")j||Oy(m);else if(j){var ne=null;if(O&&O.hasAttribute("formAction")){if(A=O,j=O[Or]||null)ne=j.formAction;else if(Bx(A)!==null)continue}else ne=j.action;typeof ne=="function"?m[b+1]=ne:(m.splice(b,3),b-=3),Oy(m)}}}function IE(){function l(O){O.canIntercept&&O.info==="react-transition"&&O.intercept({handler:function(){return new Promise(function(j){return A=j})},focusReset:"manual",scroll:"manual"})}function f(){A!==null&&(A(),A=null),b||setTimeout(m,20)}function m(){if(!b&&!navigation.transition){var O=navigation.currentEntry;O&&O.url!=null&&navigation.navigate(O.url,{state:O.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var b=!1,A=null;return navigation.addEventListener("navigate",l),navigation.addEventListener("navigatesuccess",f),navigation.addEventListener("navigateerror",f),setTimeout(m,100),function(){b=!0,navigation.removeEventListener("navigate",l),navigation.removeEventListener("navigatesuccess",f),navigation.removeEventListener("navigateerror",f),A!==null&&(A(),A=null)}}}function My(l){this._internalRoot=l}hm.prototype.render=My.prototype.render=function(l){var f=this._internalRoot;if(f===null)throw Error(i(409));var m=f.current,b=ka();sd(m,b,l,f,null,null)},hm.prototype.unmount=My.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var f=l.containerInfo;sd(l.current,2,null,l,null,null),Fp(),f[gf]=null}};function hm(l){this._internalRoot=l}hm.prototype.unstable_scheduleHydration=function(l){if(l){var f=T6();l={blockedOn:null,target:l,priority:f};for(var m=0;m<za.length&&f!==0&&f<za[m].priority;m++);za.splice(m,0,l),m===0&&zE(l)}};var LE=t.version;if(LE!=="19.2.4")throw Error(i(527,LE,"19.2.4"));ae.findDOMNode=function(l){var f=l._reactInternals;if(f===void 0)throw typeof l.render=="function"?Error(i(188)):(l=Object.keys(l).join(","),Error(i(268,l)));return l=y(f),l=l!==null?v(l):null,l=l===null?null:l.stateNode,l};var VE={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:Z,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var pm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!pm.isDisabled&&pm.supportsFiber)try{kt=pm.inject(VE),jt=pm}catch{}}return cv.createRoot=function(l,f){if(!o(l))throw Error(i(299));var m=!1,b="",A=U4,O=B1,j=$4;return f!=null&&(f.unstable_strictMode===!0&&(m=!0),f.identifierPrefix!==void 0&&(b=f.identifierPrefix),f.onUncaughtError!==void 0&&(A=f.onUncaughtError),f.onCaughtError!==void 0&&(O=f.onCaughtError),f.onRecoverableError!==void 0&&(j=f.onRecoverableError)),f=wy(l,1,!1,null,null,m,b,null,A,O,j,IE),l[gf]=f.current,Ex(l),new My(f)},cv.hydrateRoot=function(l,f,m){if(!o(l))throw Error(i(299));var b=!1,A="",O=U4,j=B1,ne=$4,ve=null;return m!=null&&(m.unstable_strictMode===!0&&(b=!0),m.identifierPrefix!==void 0&&(A=m.identifierPrefix),m.onUncaughtError!==void 0&&(O=m.onUncaughtError),m.onCaughtError!==void 0&&(j=m.onCaughtError),m.onRecoverableError!==void 0&&(ne=m.onRecoverableError),m.formState!==void 0&&(ve=m.formState)),f=wy(l,1,!0,f,m??null,b,A,ve,O,j,ne,IE),f.context=Ty(null),m=f.current,b=ka(),b=Ga(b),A=xu(b),A.callback=null,Su(m,A,b),m=b,f.current.lanes=m,oi(f,m),Vl(f),l[gf]=f.current,Ex(l),new hm(f)},cv.version="19.2.4",cv}var fv={},OC;function CV(){if(OC)return fv;OC=1;var e={};/**
|
|
103
103
|
* @license React
|
|
104
104
|
* react-dom-client.development.js
|
|
@@ -161,7 +161,7 @@ This will cause a hydration error.%s`,M,g,u,E)):console.error(`In HTML, %s canno
|
|
|
161
161
|
This will cause a hydration error.%s`,M,g,E),a&&(r=a.return,x===null||r===null||x===r&&r._debugOwner===a._debugOwner||Be(x,function(){console.error(`<%s> cannot contain a nested %s.
|
|
162
162
|
See this log for the ancestor stack trace.`,g,M)})),!1}function Wd(r,a,u){if(u||C6("#text",a,!1))return!0;if(u="#text|"+a,Ie[u])return!1;Ie[u]=!0;var g=(u=Do)?qg(u,a):null;return u=u!==null&&g!==null?Hb(g,u,u.tag!==6?{children:null}:null):"",/\S/.test(r)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
163
163
|
This will cause a hydration error.%s`,a,u):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
|
|
164
|
-
This will cause a hydration error.%s`,a,u),!1}function as(r,a){if(a){var u=r.firstChild;if(u&&u===r.lastChild&&u.nodeType===3){u.nodeValue=a;return}}r.textContent=a}function O6(r){return r.replace(Te,function(a,u){return u.toUpperCase()})}function qb(r,a,u){var g=a.indexOf("--")===0;g||(-1<a.indexOf("-")?Ye.hasOwnProperty(a)&&Ye[a]||(Ye[a]=!0,console.error("Unsupported style property %s. Did you mean %s?",a,O6(a.replace(De,"ms-")))):hr.test(a)?Ye.hasOwnProperty(a)&&Ye[a]||(Ye[a]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",a,a.charAt(0).toUpperCase()+a.slice(1))):!ke.test(u)||Lt.hasOwnProperty(u)&&Lt[u]||(Lt[u]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,a,u.replace(ke,""))),typeof u=="number"&&(isNaN(u)?qn||(qn=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",a)):isFinite(u)||_t||(_t=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",a)))),u==null||typeof u=="boolean"||u===""?g?r.setProperty(a,""):a==="float"?r.cssFloat="":r[a]="":g?r.setProperty(a,u):typeof u!="number"||u===0||pn.has(a)?a==="float"?r.cssFloat=u:(Ut(u,a),r[a]=(""+u).trim()):r[a]=u+"px"}function Ef(r,a,u){if(a!=null&&typeof a!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(a&&Object.freeze(a),r=r.style,u!=null){if(a){var g={};if(u){for(var x in u)if(u.hasOwnProperty(x)&&!a.hasOwnProperty(x))for(var E=Ue[x]||[x],M=0;M<E.length;M++)g[E[M]]=x}for(var D in a)if(a.hasOwnProperty(D)&&(!u||u[D]!==a[D]))for(x=Ue[D]||[D],E=0;E<x.length;E++)g[x[E]]=D;D={};for(var q in a)for(x=Ue[q]||[q],E=0;E<x.length;E++)D[x[E]]=q;q={};for(var K in g)if(x=g[K],(E=D[K])&&x!==E&&(M=x+","+E,!q[M])){q[M]=!0,M=console;var Ee=a[x];M.error.call(M,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",Ee==null||typeof Ee=="boolean"||Ee===""?"Removing":"Updating",x,E)}}for(var Ae in u)!u.hasOwnProperty(Ae)||a!=null&&a.hasOwnProperty(Ae)||(Ae.indexOf("--")===0?r.setProperty(Ae,""):Ae==="float"?r.cssFloat="":r[Ae]="");for(var ge in a)K=a[ge],a.hasOwnProperty(ge)&&u[ge]!==K&&qb(r,ge,K)}else for(g in a)a.hasOwnProperty(g)&&qb(r,g,a[g])}function Uh(r){if(r.indexOf("-")===-1)return!1;switch(r){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}}function Gb(r){return Pc.get(r)||r}function M6(r,a){if(jl.call(_y,a)&&_y[a])return!0;if(Tce.test(a)){if(r="aria-"+a.slice(4).toLowerCase(),r=aI.hasOwnProperty(r)?r:null,r==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",a),_y[a]=!0;if(a!==r)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",a,r),_y[a]=!0}if(wce.test(a)){if(r=a.toLowerCase(),r=aI.hasOwnProperty(r)?r:null,r==null)return _y[a]=!0,!1;a!==r&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",a,r),_y[a]=!0)}return!0}function Fb(r,a){var u=[],g;for(g in a)M6(r,g)||u.push(g);a=u.map(function(x){return"`"+x+"`"}).join(", "),u.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",a,r):1<u.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",a,r)}function P8(r,a,u,g){if(jl.call(ko,a)&&ko[a])return!0;var x=a.toLowerCase();if(x==="onfocusin"||x==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),ko[a]=!0;if(typeof u=="function"&&(r==="form"&&a==="action"||r==="input"&&a==="formAction"||r==="button"&&a==="formAction"))return!0;if(g!=null){if(r=g.possibleRegistrationNames,g.registrationNameDependencies.hasOwnProperty(a))return!0;if(g=r.hasOwnProperty(x)?r[x]:null,g!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",a,g),ko[a]=!0;if(lI.test(a))return console.error("Unknown event handler property `%s`. It will be ignored.",a),ko[a]=!0}else if(lI.test(a))return Ace.test(a)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",a),ko[a]=!0;if(Cce.test(a)||Oce.test(a))return!0;if(x==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ko[a]=!0;if(x==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ko[a]=!0;if(x==="is"&&u!==null&&u!==void 0&&typeof u!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof u),ko[a]=!0;if(typeof u=="number"&&isNaN(u))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",a),ko[a]=!0;if(Ry.hasOwnProperty(x)){if(x=Ry[x],x!==a)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",a,x),ko[a]=!0}else if(a!==x)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",a,x),ko[a]=!0;switch(a){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof u){case"boolean":switch(a){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":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":case"capture":case"download":case"inert":return!0;default:return x=a.toLowerCase().slice(0,5),x==="data-"||x==="aria-"?!0:(u?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',u,a,a,u,a):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',u,a,a,u,a,a,a),ko[a]=!0)}case"function":case"symbol":return ko[a]=!0,!1;case"string":if(u==="false"||u==="true"){switch(a){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",u,a,u==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',a,u),ko[a]=!0}}return!0}function U8(r,a,u){var g=[],x;for(x in a)P8(r,x,a[x],u)||g.push(x);a=g.map(function(E){return"`"+E+"`"}).join(", "),g.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",a,r):1<g.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",a,r)}function hc(r){return Mce.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function Gi(){}function $h(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}function Fg(r){var a=Ne(r);if(a&&(r=a.stateNode)){var u=r[pa]||null;e:switch(r=a.stateNode,a.type){case"input":if(Ih(r,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),a=u.name,u.type==="radio"&&a!=null){for(u=r;u.parentNode;)u=u.parentNode;for(xt(a,"name"),u=u.querySelectorAll('input[name="'+Or(""+a)+'"][type="radio"]'),a=0;a<u.length;a++){var g=u[a];if(g!==r&&g.form===r.form){var x=g[pa]||null;if(!x)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Ih(g,x.value,x.defaultValue,x.defaultValue,x.checked,x.defaultChecked,x.type,x.name)}}for(a=0;a<u.length;a++)g=u[a],g.form===r.form&&fu(g)}break e;case"textarea":Yd(r,u.value,u.defaultValue);break e;case"select":a=u.value,a!=null&&dc(r,!!u.multiple,a,!1)}}}function wf(r,a,u){if(rA)return r(a,u);rA=!0;try{var g=r(a);return g}finally{if(rA=!1,(Dy!==null||Ny!==null)&&(Wf(),Dy&&(a=Dy,r=Ny,Ny=Dy=null,Fg(a),r)))for(a=0;a<r.length;a++)Fg(r[a])}}function os(r,a){var u=r.stateNode;if(u===null)return null;var g=u[pa]||null;if(g===null)return null;u=g[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(g=!g.disabled)||(r=r.type,g=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!g;break e;default:r=!1}if(r)return null;if(u&&typeof u!="function")throw Error("Expected `"+a+"` listener to be a function, instead got a value of `"+typeof u+"` type.");return u}function Yb(){if(BE)return BE;var r,a=aA,u=a.length,g,x="value"in j0?j0.value:j0.textContent,E=x.length;for(r=0;r<u&&a[r]===x[r];r++);var M=u-r;for(g=1;g<=M&&a[u-g]===x[E-g];g++);return BE=x.slice(r,1<g?1-g:void 0)}function Qd(r){var a=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&a===13&&(r=13)):r=a,r===10&&(r=13),32<=r||r===13?r:0}function Hh(){return!0}function Kd(){return!1}function Yr(r){function a(u,g,x,E,M){this._reactName=u,this._targetInst=x,this.type=g,this.nativeEvent=E,this.target=M,this.currentTarget=null;for(var D in r)r.hasOwnProperty(D)&&(u=r[D],this[D]=u?u(E):E[D]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?Hh:Kd,this.isPropagationStopped=Kd,this}return yn(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Hh)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Hh)},persist:function(){},isPersistent:Hh}),a}function Xb(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=Uce[r])?!!a[r]:!1}function Tf(){return Xb}function pu(r,a){switch(r){case"keyup":return Jce.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==fI;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yg(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}function Xg(r,a){switch(r){case"compositionend":return Yg(a);case"keypress":return a.which!==hI?null:(mI=!0,pI);case"textInput":return r=a.data,r===pI&&mI?null:r;default:return null}}function R6(r,a){if(ky)return r==="compositionend"||!uA&&pu(r,a)?(r=Yb(),BE=aA=j0=null,ky=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return dI&&a.locale!=="ko"?null:a.data;default:return null}}function qh(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!tfe[r.type]:a==="textarea"}function Wg(r){if(!Uc)return!1;r="on"+r;var a=r in document;return a||(a=document.createElement("div"),a.setAttribute(r,"return;"),a=typeof a[r]=="function"),a}function Wb(r,a,u,g){Dy?Ny?Ny.push(g):Ny=[g]:Dy=g,a=Bs(a,"onChange"),0<a.length&&(u=new jE("onChange","change",null,u,g),r.push({event:u,listeners:a}))}function Ya(r){io(r,0)}function ls(r){var a=We(r);if(fu(a))return r}function Gh(r,a){if(r==="change")return a}function Zd(){Fx&&(Fx.detachEvent("onpropertychange",_6),Yx=Fx=null)}function _6(r){if(r.propertyName==="value"&&ls(Yx)){var a=[];Wb(a,Yx,r,$h(r)),wf(Ya,a)}}function Qb(r,a,u){r==="focusin"?(Zd(),Fx=a,Yx=u,Fx.attachEvent("onpropertychange",_6)):r==="focusout"&&Zd()}function Kb(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return ls(Yx)}function Fh(r,a){if(r==="click")return ls(a)}function Qg(r,a){if(r==="input"||r==="change")return ls(a)}function D6(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}function Yh(r,a){if(zo(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var u=Object.keys(r),g=Object.keys(a);if(u.length!==g.length)return!1;for(g=0;g<u.length;g++){var x=u[g];if(!jl.call(a,x)||!zo(r[x],a[x]))return!1}return!0}function N6(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function k6(r,a){var u=N6(r);r=0;for(var g;u;){if(u.nodeType===3){if(g=r+u.textContent.length,r<=a&&g>=a)return{node:u,offset:a-r};r=g}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=N6(u)}}function Kg(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?Kg(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function z6(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=pi(r.document);a instanceof r.HTMLIFrameElement;){try{var u=typeof a.contentWindow.location.href=="string"}catch{u=!1}if(u)r=a.contentWindow;else break;a=pi(r.document)}return a}function Zb(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}function I6(r,a,u){var g=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;fA||zy==null||zy!==pi(g)||(g=zy,"selectionStart"in g&&Zb(g)?g={start:g.selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),Xx&&Yh(Xx,g)||(Xx=g,g=Bs(cA,"onSelect"),0<g.length&&(a=new jE("onSelect","select",null,a,u),r.push({event:a,listeners:g}),a.target=zy)))}function Af(r,a){var u={};return u[r.toLowerCase()]=a.toLowerCase(),u["Webkit"+r]="webkit"+a,u["Moz"+r]="moz"+a,u}function Cf(r){if(dA[r])return dA[r];if(!Iy[r])return r;var a=Iy[r],u;for(u in a)if(a.hasOwnProperty(u)&&u in yI)return dA[r]=a[u];return r}function Wo(r,a){EI.set(r,a),Yt(a,[r])}function $8(r){for(var a=UE,u=0;u<r.length;u++){var g=r[u];if(typeof g=="object"&&g!==null)if(wi(g)&&g.length===2&&typeof g[0]=="string"){if(a!==UE&&a!==yA)return mA;a=yA}else return mA;else{if(typeof g=="function"||typeof g=="string"&&50<g.length||a!==UE&&a!==gA)return mA;a=gA}}return a}function Jb(r,a,u,g){for(var x in r)jl.call(r,x)&&x[0]!=="_"&&ss(x,r[x],a,u,g)}function ss(r,a,u,g,x){switch(typeof a){case"object":if(a===null){a="null";break}else{if(a.$$typeof===ol){var E=ce(a.type)||"…",M=a.key;a=a.props;var D=Object.keys(a),q=D.length;if(M==null&&q===0){a="<"+E+" />";break}if(3>g||q===1&&D[0]==="children"&&M==null){a="<"+E+" … />";break}u.push([x+" ".repeat(g)+r,"<"+E]),M!==null&&ss("key",M,u,g+1,x),r=!1;for(var K in a)K==="children"?a.children!=null&&(!wi(a.children)||0<a.children.length)&&(r=!0):jl.call(a,K)&&K[0]!=="_"&&ss(K,a[K],u,g+1,x);u.push(["",r?">…</"+E+">":"/>"]);return}if(E=Object.prototype.toString.call(a),E=E.slice(8,E.length-1),E==="Array"){if(K=$8(a),K===gA||K===UE){a=JSON.stringify(a);break}else if(K===yA){for(u.push([x+" ".repeat(g)+r,""]),r=0;r<a.length;r++)E=a[r],ss(E[0],E[1],u,g+1,x);return}}if(E==="Promise"){if(a.status==="fulfilled"){if(E=u.length,ss(r,a.value,u,g,x),u.length>E){u=u[E],u[1]="Promise<"+(u[1]||"Object")+">";return}}else if(a.status==="rejected"&&(E=u.length,ss(r,a.reason,u,g,x),u.length>E)){u=u[E],u[1]="Rejected Promise<"+u[1]+">";return}u.push([" ".repeat(g)+r,"Promise"]);return}E==="Object"&&(K=Object.getPrototypeOf(a))&&typeof K.constructor=="function"&&(E=K.constructor.name),u.push([x+" ".repeat(g)+r,E==="Object"?3>g?"":"…":E]),3>g&&Jb(a,u,g+1,x);return}case"function":a=a.name===""?"() => {}":a.name+"() {}";break;case"string":a=a===sfe?"…":JSON.stringify(a);break;case"undefined":a="undefined";break;case"boolean":a=a?"true":"false";break;default:a=String(a)}u.push([x+" ".repeat(g)+r,a])}function L6(r,a,u,g){var x=!0;for(M in r)M in a||(u.push([$E+" ".repeat(g)+M,"…"]),x=!1);for(var E in a)if(E in r){var M=r[E],D=a[E];if(M!==D){if(g===0&&E==="children")x=" ".repeat(g)+E,u.push([$E+x,"…"],[HE+x,"…"]);else{if(!(3<=g)){if(typeof M=="object"&&typeof D=="object"&&M!==null&&D!==null&&M.$$typeof===D.$$typeof)if(D.$$typeof===ol){if(M.type===D.type&&M.key===D.key){M=ce(D.type)||"…",x=" ".repeat(g)+E,M="<"+M+" … />",u.push([$E+x,M],[HE+x,M]),x=!1;continue}}else{var q=Object.prototype.toString.call(M),K=Object.prototype.toString.call(D);if(q===K&&(K==="[object Object]"||K==="[object Array]")){q=[AI+" ".repeat(g)+E,K==="[object Array]"?"Array":""],u.push(q),K=u.length,L6(M,D,u,g+1)?K===u.length&&(q[1]="Referentially unequal but deeply equal objects. Consider memoization."):x=!1;continue}}else if(typeof M=="function"&&typeof D=="function"&&M.name===D.name&&M.length===D.length&&(q=Function.prototype.toString.call(M),K=Function.prototype.toString.call(D),q===K)){M=D.name===""?"() => {}":D.name+"() {}",u.push([AI+" ".repeat(g)+E,M+" Referentially unequal function closure. Consider memoization."]);continue}}ss(E,M,u,g,$E),ss(E,D,u,g,HE)}x=!1}}else u.push([HE+" ".repeat(g)+E,"…"]),x=!1;return x}function So(r){$n=r&63?"Blocking":r&64?"Gesture":r&4194176?"Transition":r&62914560?"Suspense":r&2080374784?"Idle":"Other"}function us(r,a,u,g){kr&&(U0.start=a,U0.end=u,ud.color="warning",ud.tooltipText=g,ud.properties=null,(r=r._debugTask)?r.run(performance.measure.bind(performance,g,U0)):performance.measure(g,U0))}function Zg(r,a,u){us(r,a,u,"Reconnect")}function Jg(r,a,u,g,x){var E=ue(r);if(E!==null&&kr){var M=r.alternate,D=r.actualDuration;if(M===null||M.child!==r.child)for(var q=r.child;q!==null;q=q.sibling)D-=q.actualDuration;g=.5>D?g?"tertiary-light":"primary-light":10>D?g?"tertiary":"primary":100>D?g?"tertiary-dark":"primary-dark":"error";var K=r.memoizedProps;D=r._debugTask,K!==null&&M!==null&&M.memoizedProps!==K?(q=[ufe],K=L6(M.memoizedProps,K,q,0),1<q.length&&(K&&!P0&&(M.lanes&x)===0&&100<r.actualDuration?(P0=!0,q[0]=cfe,ud.color="warning",ud.tooltipText=CI):(ud.color=g,ud.tooltipText=E),ud.properties=q,U0.start=a,U0.end=u,D!=null?D.run(performance.measure.bind(performance,""+E,U0)):performance.measure(""+E,U0))):D!=null?D.run(console.timeStamp.bind(console,E,a,u,qs,void 0,g)):console.timeStamp(E,a,u,qs,void 0,g)}}function e1(r,a,u,g){if(kr){var x=ue(r);if(x!==null){for(var E=null,M=[],D=0;D<g.length;D++){var q=g[D];E==null&&q.source!==null&&(E=q.source._debugTask),q=q.value,M.push(["Error",typeof q=="object"&&q!==null&&typeof q.message=="string"?String(q.message):String(q)])}r.key!==null&&ss("key",r.key,M,0,""),r.memoizedProps!==null&&Jb(r.memoizedProps,M,0,""),E==null&&(E=r._debugTask),r={start:a,end:u,detail:{devtools:{color:"error",track:qs,tooltipText:r.tag===13?"Hydration failed":"Error boundary caught an error",properties:M}}},E?E.run(performance.measure.bind(performance,""+x,r)):performance.measure(""+x,r)}}}function cs(r,a,u,g,x){if(x!==null){if(kr){var E=ue(r);if(E!==null){g=[];for(var M=0;M<x.length;M++){var D=x[M].value;g.push(["Error",typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D)])}r.key!==null&&ss("key",r.key,g,0,""),r.memoizedProps!==null&&Jb(r.memoizedProps,g,0,""),a={start:a,end:u,detail:{devtools:{color:"error",track:qs,tooltipText:"A lifecycle or effect errored",properties:g}}},(r=r._debugTask)?r.run(performance.measure.bind(performance,""+E,a)):performance.measure(""+E,a)}}}else E=ue(r),E!==null&&kr&&(x=1>g?"secondary-light":100>g?"secondary":500>g?"secondary-dark":"error",(r=r._debugTask)?r.run(console.timeStamp.bind(console,E,a,u,qs,void 0,x)):console.timeStamp(E,a,u,qs,void 0,x))}function H8(r,a,u,g){if(kr&&!(a<=r)){var x=(u&738197653)===u?"tertiary-dark":"primary-dark";u=(u&536870912)===u?"Prepared":(u&201326741)===u?"Hydrated":"Render",g?g.run(console.timeStamp.bind(console,u,r,a,$n,Pn,x)):console.timeStamp(u,r,a,$n,Pn,x)}}function V6(r,a,u,g){!kr||a<=r||(u=(u&738197653)===u?"tertiary-dark":"primary-dark",g?g.run(console.timeStamp.bind(console,"Prewarm",r,a,$n,Pn,u)):console.timeStamp("Prewarm",r,a,$n,Pn,u))}function B6(r,a,u,g){!kr||a<=r||(u=(u&738197653)===u?"tertiary-dark":"primary-dark",g?g.run(console.timeStamp.bind(console,"Suspended",r,a,$n,Pn,u)):console.timeStamp("Suspended",r,a,$n,Pn,u))}function q8(r,a,u,g,x,E){if(kr&&!(a<=r)){u=[];for(var M=0;M<g.length;M++){var D=g[M].value;u.push(["Recoverable Error",typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D)])}r={start:r,end:a,detail:{devtools:{color:"primary-dark",track:$n,trackGroup:Pn,tooltipText:x?"Hydration Failed":"Recovered after Error",properties:u}}},E?E.run(performance.measure.bind(performance,"Recovered",r)):performance.measure("Recovered",r)}}function e4(r,a,u,g){!kr||a<=r||(g?g.run(console.timeStamp.bind(console,"Errored",r,a,$n,Pn,"error")):console.timeStamp("Errored",r,a,$n,Pn,"error"))}function G8(r,a,u,g){!kr||a<=r||(g?g.run(console.timeStamp.bind(console,u,r,a,$n,Pn,"secondary-light")):console.timeStamp(u,r,a,$n,Pn,"secondary-light"))}function j6(r,a,u,g,x){if(kr&&!(a<=r)){for(var E=[],M=0;M<u.length;M++){var D=u[M].value;E.push(["Error",typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D)])}r={start:r,end:a,detail:{devtools:{color:"error",track:$n,trackGroup:Pn,tooltipText:g?"Remaining Effects Errored":"Commit Errored",properties:E}}},x?x.run(performance.measure.bind(performance,"Errored",r)):performance.measure("Errored",r)}}function t4(r,a,u){!kr||a<=r||console.timeStamp("Animating",r,a,$n,Pn,"secondary-dark")}function Jd(){for(var r=Ly,a=vA=Ly=0;a<r;){var u=Gs[a];Gs[a++]=null;var g=Gs[a];Gs[a++]=null;var x=Gs[a];Gs[a++]=null;var E=Gs[a];if(Gs[a++]=null,g!==null&&x!==null){var M=g.pending;M===null?x.next=x:(x.next=M.next,M.next=x),g.pending=x}E!==0&&r4(u,x,E)}}function pc(r,a,u,g){Gs[Ly++]=r,Gs[Ly++]=a,Gs[Ly++]=u,Gs[Ly++]=g,vA|=g,r.lanes|=g,r=r.alternate,r!==null&&(r.lanes|=g)}function n4(r,a,u,g){return pc(r,a,u,g),Xh(r)}function Fi(r,a){return pc(r,null,null,a),Xh(r)}function r4(r,a,u){r.lanes|=u;var g=r.alternate;g!==null&&(g.lanes|=u);for(var x=!1,E=r.return;E!==null;)E.childLanes|=u,g=E.alternate,g!==null&&(g.childLanes|=u),E.tag===22&&(r=E.stateNode,r===null||r._visibility&Wx||(x=!0)),r=E,E=E.return;return r.tag===3?(E=r.stateNode,x&&a!==null&&(x=31-ea(u),r=E.hiddenUpdates,g=r[x],g===null?r[x]=[a]:g.push(a),a.lane=u|536870912),E):null}function Xh(r){if(E5>Cfe)throw Dm=E5=0,w5=KA=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Dm>Ofe&&(Dm=0,w5=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),r.alternate===null&&(r.flags&4098)!==0&&ax(r);for(var a=r,u=a.return;u!==null;)a.alternate===null&&(a.flags&4098)!==0&&ax(r),a=u,u=a.return;return a.tag===3?a.stateNode:null}function mc(r){if(Fs===null)return r;var a=Fs(r);return a===void 0?r:a.current}function t1(r){if(Fs===null)return r;var a=Fs(r);return a===void 0?r!=null&&typeof r.render=="function"&&(a=mc(r.render),r.render!==a)?(a={$$typeof:Nu,render:a},r.displayName!==void 0&&(a.displayName=r.displayName),a):r:a.current}function Of(r,a){if(Fs===null)return!1;var u=r.elementType;a=a.type;var g=!1,x=typeof a=="object"&&a!==null?a.$$typeof:null;switch(r.tag){case 1:typeof a=="function"&&(g=!0);break;case 0:(typeof a=="function"||x===si)&&(g=!0);break;case 11:(x===Nu||x===si)&&(g=!0);break;case 14:case 15:(x===ad||x===si)&&(g=!0);break;default:return!1}return!!(g&&(r=Fs(u),r!==void 0&&r===Fs(a)))}function P6(r){Fs!==null&&typeof WeakSet=="function"&&(Vy===null&&(Vy=new WeakSet),Vy.add(r))}function U6(r,a,u){do{var g=r,x=g.alternate,E=g.child,M=g.sibling,D=g.tag;g=g.type;var q=null;switch(D){case 0:case 15:case 1:q=g;break;case 11:q=g.render}if(Fs===null)throw Error("Expected resolveFamily to be set during hot reload.");var K=!1;if(g=!1,q!==null&&(q=Fs(q),q!==void 0&&(u.has(q)?g=!0:a.has(q)&&(D===1?g=!0:K=!0))),Vy!==null&&(Vy.has(r)||x!==null&&Vy.has(x))&&(g=!0),g&&(r._debugNeedsRemount=!0),(g||K)&&(x=Fi(r,2),x!==null&&Br(x,r,2)),E===null||g||U6(E,a,u),M===null)break;r=M}while(!0)}function F8(r,a,u,g){this.tag=r,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,OI||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function n1(r){return r=r.prototype,!(!r||!r.isReactComponent)}function fs(r,a){var u=r.alternate;switch(u===null?(u=w(r.tag,a,r.key,r.mode),u.elementType=r.elementType,u.type=r.type,u.stateNode=r.stateNode,u._debugOwner=r._debugOwner,u._debugStack=r._debugStack,u._debugTask=r._debugTask,u._debugHookTypes=r._debugHookTypes,u.alternate=r,r.alternate=u):(u.pendingProps=a,u.type=r.type,u.flags=0,u.subtreeFlags=0,u.deletions=null,u.actualDuration=-0,u.actualStartTime=-1.1),u.flags=r.flags&65011712,u.childLanes=r.childLanes,u.lanes=r.lanes,u.child=r.child,u.memoizedProps=r.memoizedProps,u.memoizedState=r.memoizedState,u.updateQueue=r.updateQueue,a=r.dependencies,u.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext,_debugThenableState:a._debugThenableState},u.sibling=r.sibling,u.index=r.index,u.ref=r.ref,u.refCleanup=r.refCleanup,u.selfBaseDuration=r.selfBaseDuration,u.treeBaseDuration=r.treeBaseDuration,u._debugInfo=r._debugInfo,u._debugNeedsRemount=r._debugNeedsRemount,u.tag){case 0:case 15:u.type=mc(r.type);break;case 1:u.type=mc(r.type);break;case 11:u.type=t1(r.type)}return u}function e0(r,a){r.flags&=65011714;var u=r.alternate;return u===null?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null,r.selfBaseDuration=0,r.treeBaseDuration=0):(r.childLanes=u.childLanes,r.lanes=u.lanes,r.child=u.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=u.memoizedProps,r.memoizedState=u.memoizedState,r.updateQueue=u.updateQueue,r.type=u.type,a=u.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext,_debugThenableState:a._debugThenableState},r.selfBaseDuration=u.selfBaseDuration,r.treeBaseDuration=u.treeBaseDuration),r}function Mf(r,a,u,g,x,E){var M=0,D=r;if(typeof r=="function")n1(r)&&(M=1),D=mc(D);else if(typeof r=="string")M=de(),M=_n(r,u,M)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case Nx:return a=w(31,u,a,x),a.elementType=Nx,a.lanes=E,a;case Ji:return ds(u.children,x,E,a);case z0:M=8,x|=co,x|=Lu;break;case py:return r=u,g=x,typeof r.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof r.id),a=w(12,r,a,g|xn),a.elementType=py,a.lanes=E,a.stateNode={effectDuration:0,passiveEffectDuration:0},a;case uo:return a=w(13,u,a,x),a.elementType=uo,a.lanes=E,a;case gy:return a=w(19,u,a,x),a.elementType=gy,a.lanes=E,a;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case Bl:M=10;break e;case my:M=9;break e;case Nu:M=11,D=t1(D);break e;case ad:M=14;break e;case si:M=16,D=null;break e}D="",(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(D+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),r===null?u="null":wi(r)?u="array":r!==void 0&&r.$$typeof===ol?(u="<"+(ce(r.type)||"Unknown")+" />",D=" Did you accidentally export a JSX literal instead of a component?"):u=typeof r,(M=g?ie(g):null)&&(D+=`
|
|
164
|
+
This will cause a hydration error.%s`,a,u),!1}function as(r,a){if(a){var u=r.firstChild;if(u&&u===r.lastChild&&u.nodeType===3){u.nodeValue=a;return}}r.textContent=a}function O6(r){return r.replace(Te,function(a,u){return u.toUpperCase()})}function qb(r,a,u){var g=a.indexOf("--")===0;g||(-1<a.indexOf("-")?Ye.hasOwnProperty(a)&&Ye[a]||(Ye[a]=!0,console.error("Unsupported style property %s. Did you mean %s?",a,O6(a.replace(De,"ms-")))):hr.test(a)?Ye.hasOwnProperty(a)&&Ye[a]||(Ye[a]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",a,a.charAt(0).toUpperCase()+a.slice(1))):!ke.test(u)||Lt.hasOwnProperty(u)&&Lt[u]||(Lt[u]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,a,u.replace(ke,""))),typeof u=="number"&&(isNaN(u)?qn||(qn=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",a)):isFinite(u)||Dt||(Dt=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",a)))),u==null||typeof u=="boolean"||u===""?g?r.setProperty(a,""):a==="float"?r.cssFloat="":r[a]="":g?r.setProperty(a,u):typeof u!="number"||u===0||pn.has(a)?a==="float"?r.cssFloat=u:(Ut(u,a),r[a]=(""+u).trim()):r[a]=u+"px"}function Ef(r,a,u){if(a!=null&&typeof a!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(a&&Object.freeze(a),r=r.style,u!=null){if(a){var g={};if(u){for(var x in u)if(u.hasOwnProperty(x)&&!a.hasOwnProperty(x))for(var E=Ue[x]||[x],M=0;M<E.length;M++)g[E[M]]=x}for(var D in a)if(a.hasOwnProperty(D)&&(!u||u[D]!==a[D]))for(x=Ue[D]||[D],E=0;E<x.length;E++)g[x[E]]=D;D={};for(var q in a)for(x=Ue[q]||[q],E=0;E<x.length;E++)D[x[E]]=q;q={};for(var K in g)if(x=g[K],(E=D[K])&&x!==E&&(M=x+","+E,!q[M])){q[M]=!0,M=console;var Ee=a[x];M.error.call(M,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",Ee==null||typeof Ee=="boolean"||Ee===""?"Removing":"Updating",x,E)}}for(var Ae in u)!u.hasOwnProperty(Ae)||a!=null&&a.hasOwnProperty(Ae)||(Ae.indexOf("--")===0?r.setProperty(Ae,""):Ae==="float"?r.cssFloat="":r[Ae]="");for(var ge in a)K=a[ge],a.hasOwnProperty(ge)&&u[ge]!==K&&qb(r,ge,K)}else for(g in a)a.hasOwnProperty(g)&&qb(r,g,a[g])}function Uh(r){if(r.indexOf("-")===-1)return!1;switch(r){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}}function Gb(r){return Pc.get(r)||r}function M6(r,a){if(jl.call(_y,a)&&_y[a])return!0;if(Tce.test(a)){if(r="aria-"+a.slice(4).toLowerCase(),r=aI.hasOwnProperty(r)?r:null,r==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",a),_y[a]=!0;if(a!==r)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",a,r),_y[a]=!0}if(wce.test(a)){if(r=a.toLowerCase(),r=aI.hasOwnProperty(r)?r:null,r==null)return _y[a]=!0,!1;a!==r&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",a,r),_y[a]=!0)}return!0}function Fb(r,a){var u=[],g;for(g in a)M6(r,g)||u.push(g);a=u.map(function(x){return"`"+x+"`"}).join(", "),u.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",a,r):1<u.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",a,r)}function P8(r,a,u,g){if(jl.call(ko,a)&&ko[a])return!0;var x=a.toLowerCase();if(x==="onfocusin"||x==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),ko[a]=!0;if(typeof u=="function"&&(r==="form"&&a==="action"||r==="input"&&a==="formAction"||r==="button"&&a==="formAction"))return!0;if(g!=null){if(r=g.possibleRegistrationNames,g.registrationNameDependencies.hasOwnProperty(a))return!0;if(g=r.hasOwnProperty(x)?r[x]:null,g!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",a,g),ko[a]=!0;if(lI.test(a))return console.error("Unknown event handler property `%s`. It will be ignored.",a),ko[a]=!0}else if(lI.test(a))return Ace.test(a)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",a),ko[a]=!0;if(Cce.test(a)||Oce.test(a))return!0;if(x==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ko[a]=!0;if(x==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ko[a]=!0;if(x==="is"&&u!==null&&u!==void 0&&typeof u!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof u),ko[a]=!0;if(typeof u=="number"&&isNaN(u))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",a),ko[a]=!0;if(Ry.hasOwnProperty(x)){if(x=Ry[x],x!==a)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",a,x),ko[a]=!0}else if(a!==x)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",a,x),ko[a]=!0;switch(a){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof u){case"boolean":switch(a){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":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":case"capture":case"download":case"inert":return!0;default:return x=a.toLowerCase().slice(0,5),x==="data-"||x==="aria-"?!0:(u?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',u,a,a,u,a):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',u,a,a,u,a,a,a),ko[a]=!0)}case"function":case"symbol":return ko[a]=!0,!1;case"string":if(u==="false"||u==="true"){switch(a){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",u,a,u==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',a,u),ko[a]=!0}}return!0}function U8(r,a,u){var g=[],x;for(x in a)P8(r,x,a[x],u)||g.push(x);a=g.map(function(E){return"`"+E+"`"}).join(", "),g.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",a,r):1<g.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",a,r)}function hc(r){return Mce.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function Gi(){}function $h(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}function Fg(r){var a=Ne(r);if(a&&(r=a.stateNode)){var u=r[pa]||null;e:switch(r=a.stateNode,a.type){case"input":if(Ih(r,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),a=u.name,u.type==="radio"&&a!=null){for(u=r;u.parentNode;)u=u.parentNode;for(xt(a,"name"),u=u.querySelectorAll('input[name="'+Or(""+a)+'"][type="radio"]'),a=0;a<u.length;a++){var g=u[a];if(g!==r&&g.form===r.form){var x=g[pa]||null;if(!x)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Ih(g,x.value,x.defaultValue,x.defaultValue,x.checked,x.defaultChecked,x.type,x.name)}}for(a=0;a<u.length;a++)g=u[a],g.form===r.form&&fu(g)}break e;case"textarea":Yd(r,u.value,u.defaultValue);break e;case"select":a=u.value,a!=null&&dc(r,!!u.multiple,a,!1)}}}function wf(r,a,u){if(rA)return r(a,u);rA=!0;try{var g=r(a);return g}finally{if(rA=!1,(Dy!==null||Ny!==null)&&(Wf(),Dy&&(a=Dy,r=Ny,Ny=Dy=null,Fg(a),r)))for(a=0;a<r.length;a++)Fg(r[a])}}function os(r,a){var u=r.stateNode;if(u===null)return null;var g=u[pa]||null;if(g===null)return null;u=g[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(g=!g.disabled)||(r=r.type,g=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!g;break e;default:r=!1}if(r)return null;if(u&&typeof u!="function")throw Error("Expected `"+a+"` listener to be a function, instead got a value of `"+typeof u+"` type.");return u}function Yb(){if(BE)return BE;var r,a=aA,u=a.length,g,x="value"in j0?j0.value:j0.textContent,E=x.length;for(r=0;r<u&&a[r]===x[r];r++);var M=u-r;for(g=1;g<=M&&a[u-g]===x[E-g];g++);return BE=x.slice(r,1<g?1-g:void 0)}function Qd(r){var a=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&a===13&&(r=13)):r=a,r===10&&(r=13),32<=r||r===13?r:0}function Hh(){return!0}function Kd(){return!1}function Yr(r){function a(u,g,x,E,M){this._reactName=u,this._targetInst=x,this.type=g,this.nativeEvent=E,this.target=M,this.currentTarget=null;for(var D in r)r.hasOwnProperty(D)&&(u=r[D],this[D]=u?u(E):E[D]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?Hh:Kd,this.isPropagationStopped=Kd,this}return yn(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Hh)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Hh)},persist:function(){},isPersistent:Hh}),a}function Xb(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=Uce[r])?!!a[r]:!1}function Tf(){return Xb}function pu(r,a){switch(r){case"keyup":return Jce.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==fI;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yg(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}function Xg(r,a){switch(r){case"compositionend":return Yg(a);case"keypress":return a.which!==hI?null:(mI=!0,pI);case"textInput":return r=a.data,r===pI&&mI?null:r;default:return null}}function R6(r,a){if(ky)return r==="compositionend"||!uA&&pu(r,a)?(r=Yb(),BE=aA=j0=null,ky=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return dI&&a.locale!=="ko"?null:a.data;default:return null}}function qh(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!tfe[r.type]:a==="textarea"}function Wg(r){if(!Uc)return!1;r="on"+r;var a=r in document;return a||(a=document.createElement("div"),a.setAttribute(r,"return;"),a=typeof a[r]=="function"),a}function Wb(r,a,u,g){Dy?Ny?Ny.push(g):Ny=[g]:Dy=g,a=Bs(a,"onChange"),0<a.length&&(u=new jE("onChange","change",null,u,g),r.push({event:u,listeners:a}))}function Ya(r){io(r,0)}function ls(r){var a=We(r);if(fu(a))return r}function Gh(r,a){if(r==="change")return a}function Zd(){Fx&&(Fx.detachEvent("onpropertychange",_6),Yx=Fx=null)}function _6(r){if(r.propertyName==="value"&&ls(Yx)){var a=[];Wb(a,Yx,r,$h(r)),wf(Ya,a)}}function Qb(r,a,u){r==="focusin"?(Zd(),Fx=a,Yx=u,Fx.attachEvent("onpropertychange",_6)):r==="focusout"&&Zd()}function Kb(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return ls(Yx)}function Fh(r,a){if(r==="click")return ls(a)}function Qg(r,a){if(r==="input"||r==="change")return ls(a)}function D6(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}function Yh(r,a){if(zo(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var u=Object.keys(r),g=Object.keys(a);if(u.length!==g.length)return!1;for(g=0;g<u.length;g++){var x=u[g];if(!jl.call(a,x)||!zo(r[x],a[x]))return!1}return!0}function N6(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function k6(r,a){var u=N6(r);r=0;for(var g;u;){if(u.nodeType===3){if(g=r+u.textContent.length,r<=a&&g>=a)return{node:u,offset:a-r};r=g}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=N6(u)}}function Kg(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?Kg(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function z6(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=pi(r.document);a instanceof r.HTMLIFrameElement;){try{var u=typeof a.contentWindow.location.href=="string"}catch{u=!1}if(u)r=a.contentWindow;else break;a=pi(r.document)}return a}function Zb(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}function I6(r,a,u){var g=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;fA||zy==null||zy!==pi(g)||(g=zy,"selectionStart"in g&&Zb(g)?g={start:g.selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),Xx&&Yh(Xx,g)||(Xx=g,g=Bs(cA,"onSelect"),0<g.length&&(a=new jE("onSelect","select",null,a,u),r.push({event:a,listeners:g}),a.target=zy)))}function Af(r,a){var u={};return u[r.toLowerCase()]=a.toLowerCase(),u["Webkit"+r]="webkit"+a,u["Moz"+r]="moz"+a,u}function Cf(r){if(dA[r])return dA[r];if(!Iy[r])return r;var a=Iy[r],u;for(u in a)if(a.hasOwnProperty(u)&&u in yI)return dA[r]=a[u];return r}function Wo(r,a){EI.set(r,a),Yt(a,[r])}function $8(r){for(var a=UE,u=0;u<r.length;u++){var g=r[u];if(typeof g=="object"&&g!==null)if(wi(g)&&g.length===2&&typeof g[0]=="string"){if(a!==UE&&a!==yA)return mA;a=yA}else return mA;else{if(typeof g=="function"||typeof g=="string"&&50<g.length||a!==UE&&a!==gA)return mA;a=gA}}return a}function Jb(r,a,u,g){for(var x in r)jl.call(r,x)&&x[0]!=="_"&&ss(x,r[x],a,u,g)}function ss(r,a,u,g,x){switch(typeof a){case"object":if(a===null){a="null";break}else{if(a.$$typeof===ol){var E=ce(a.type)||"…",M=a.key;a=a.props;var D=Object.keys(a),q=D.length;if(M==null&&q===0){a="<"+E+" />";break}if(3>g||q===1&&D[0]==="children"&&M==null){a="<"+E+" … />";break}u.push([x+" ".repeat(g)+r,"<"+E]),M!==null&&ss("key",M,u,g+1,x),r=!1;for(var K in a)K==="children"?a.children!=null&&(!wi(a.children)||0<a.children.length)&&(r=!0):jl.call(a,K)&&K[0]!=="_"&&ss(K,a[K],u,g+1,x);u.push(["",r?">…</"+E+">":"/>"]);return}if(E=Object.prototype.toString.call(a),E=E.slice(8,E.length-1),E==="Array"){if(K=$8(a),K===gA||K===UE){a=JSON.stringify(a);break}else if(K===yA){for(u.push([x+" ".repeat(g)+r,""]),r=0;r<a.length;r++)E=a[r],ss(E[0],E[1],u,g+1,x);return}}if(E==="Promise"){if(a.status==="fulfilled"){if(E=u.length,ss(r,a.value,u,g,x),u.length>E){u=u[E],u[1]="Promise<"+(u[1]||"Object")+">";return}}else if(a.status==="rejected"&&(E=u.length,ss(r,a.reason,u,g,x),u.length>E)){u=u[E],u[1]="Rejected Promise<"+u[1]+">";return}u.push([" ".repeat(g)+r,"Promise"]);return}E==="Object"&&(K=Object.getPrototypeOf(a))&&typeof K.constructor=="function"&&(E=K.constructor.name),u.push([x+" ".repeat(g)+r,E==="Object"?3>g?"":"…":E]),3>g&&Jb(a,u,g+1,x);return}case"function":a=a.name===""?"() => {}":a.name+"() {}";break;case"string":a=a===sfe?"…":JSON.stringify(a);break;case"undefined":a="undefined";break;case"boolean":a=a?"true":"false";break;default:a=String(a)}u.push([x+" ".repeat(g)+r,a])}function L6(r,a,u,g){var x=!0;for(M in r)M in a||(u.push([$E+" ".repeat(g)+M,"…"]),x=!1);for(var E in a)if(E in r){var M=r[E],D=a[E];if(M!==D){if(g===0&&E==="children")x=" ".repeat(g)+E,u.push([$E+x,"…"],[HE+x,"…"]);else{if(!(3<=g)){if(typeof M=="object"&&typeof D=="object"&&M!==null&&D!==null&&M.$$typeof===D.$$typeof)if(D.$$typeof===ol){if(M.type===D.type&&M.key===D.key){M=ce(D.type)||"…",x=" ".repeat(g)+E,M="<"+M+" … />",u.push([$E+x,M],[HE+x,M]),x=!1;continue}}else{var q=Object.prototype.toString.call(M),K=Object.prototype.toString.call(D);if(q===K&&(K==="[object Object]"||K==="[object Array]")){q=[AI+" ".repeat(g)+E,K==="[object Array]"?"Array":""],u.push(q),K=u.length,L6(M,D,u,g+1)?K===u.length&&(q[1]="Referentially unequal but deeply equal objects. Consider memoization."):x=!1;continue}}else if(typeof M=="function"&&typeof D=="function"&&M.name===D.name&&M.length===D.length&&(q=Function.prototype.toString.call(M),K=Function.prototype.toString.call(D),q===K)){M=D.name===""?"() => {}":D.name+"() {}",u.push([AI+" ".repeat(g)+E,M+" Referentially unequal function closure. Consider memoization."]);continue}}ss(E,M,u,g,$E),ss(E,D,u,g,HE)}x=!1}}else u.push([HE+" ".repeat(g)+E,"…"]),x=!1;return x}function So(r){$n=r&63?"Blocking":r&64?"Gesture":r&4194176?"Transition":r&62914560?"Suspense":r&2080374784?"Idle":"Other"}function us(r,a,u,g){kr&&(U0.start=a,U0.end=u,ud.color="warning",ud.tooltipText=g,ud.properties=null,(r=r._debugTask)?r.run(performance.measure.bind(performance,g,U0)):performance.measure(g,U0))}function Zg(r,a,u){us(r,a,u,"Reconnect")}function Jg(r,a,u,g,x){var E=ue(r);if(E!==null&&kr){var M=r.alternate,D=r.actualDuration;if(M===null||M.child!==r.child)for(var q=r.child;q!==null;q=q.sibling)D-=q.actualDuration;g=.5>D?g?"tertiary-light":"primary-light":10>D?g?"tertiary":"primary":100>D?g?"tertiary-dark":"primary-dark":"error";var K=r.memoizedProps;D=r._debugTask,K!==null&&M!==null&&M.memoizedProps!==K?(q=[ufe],K=L6(M.memoizedProps,K,q,0),1<q.length&&(K&&!P0&&(M.lanes&x)===0&&100<r.actualDuration?(P0=!0,q[0]=cfe,ud.color="warning",ud.tooltipText=CI):(ud.color=g,ud.tooltipText=E),ud.properties=q,U0.start=a,U0.end=u,D!=null?D.run(performance.measure.bind(performance,""+E,U0)):performance.measure(""+E,U0))):D!=null?D.run(console.timeStamp.bind(console,E,a,u,qs,void 0,g)):console.timeStamp(E,a,u,qs,void 0,g)}}function e1(r,a,u,g){if(kr){var x=ue(r);if(x!==null){for(var E=null,M=[],D=0;D<g.length;D++){var q=g[D];E==null&&q.source!==null&&(E=q.source._debugTask),q=q.value,M.push(["Error",typeof q=="object"&&q!==null&&typeof q.message=="string"?String(q.message):String(q)])}r.key!==null&&ss("key",r.key,M,0,""),r.memoizedProps!==null&&Jb(r.memoizedProps,M,0,""),E==null&&(E=r._debugTask),r={start:a,end:u,detail:{devtools:{color:"error",track:qs,tooltipText:r.tag===13?"Hydration failed":"Error boundary caught an error",properties:M}}},E?E.run(performance.measure.bind(performance,""+x,r)):performance.measure(""+x,r)}}}function cs(r,a,u,g,x){if(x!==null){if(kr){var E=ue(r);if(E!==null){g=[];for(var M=0;M<x.length;M++){var D=x[M].value;g.push(["Error",typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D)])}r.key!==null&&ss("key",r.key,g,0,""),r.memoizedProps!==null&&Jb(r.memoizedProps,g,0,""),a={start:a,end:u,detail:{devtools:{color:"error",track:qs,tooltipText:"A lifecycle or effect errored",properties:g}}},(r=r._debugTask)?r.run(performance.measure.bind(performance,""+E,a)):performance.measure(""+E,a)}}}else E=ue(r),E!==null&&kr&&(x=1>g?"secondary-light":100>g?"secondary":500>g?"secondary-dark":"error",(r=r._debugTask)?r.run(console.timeStamp.bind(console,E,a,u,qs,void 0,x)):console.timeStamp(E,a,u,qs,void 0,x))}function H8(r,a,u,g){if(kr&&!(a<=r)){var x=(u&738197653)===u?"tertiary-dark":"primary-dark";u=(u&536870912)===u?"Prepared":(u&201326741)===u?"Hydrated":"Render",g?g.run(console.timeStamp.bind(console,u,r,a,$n,Pn,x)):console.timeStamp(u,r,a,$n,Pn,x)}}function V6(r,a,u,g){!kr||a<=r||(u=(u&738197653)===u?"tertiary-dark":"primary-dark",g?g.run(console.timeStamp.bind(console,"Prewarm",r,a,$n,Pn,u)):console.timeStamp("Prewarm",r,a,$n,Pn,u))}function B6(r,a,u,g){!kr||a<=r||(u=(u&738197653)===u?"tertiary-dark":"primary-dark",g?g.run(console.timeStamp.bind(console,"Suspended",r,a,$n,Pn,u)):console.timeStamp("Suspended",r,a,$n,Pn,u))}function q8(r,a,u,g,x,E){if(kr&&!(a<=r)){u=[];for(var M=0;M<g.length;M++){var D=g[M].value;u.push(["Recoverable Error",typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D)])}r={start:r,end:a,detail:{devtools:{color:"primary-dark",track:$n,trackGroup:Pn,tooltipText:x?"Hydration Failed":"Recovered after Error",properties:u}}},E?E.run(performance.measure.bind(performance,"Recovered",r)):performance.measure("Recovered",r)}}function e4(r,a,u,g){!kr||a<=r||(g?g.run(console.timeStamp.bind(console,"Errored",r,a,$n,Pn,"error")):console.timeStamp("Errored",r,a,$n,Pn,"error"))}function G8(r,a,u,g){!kr||a<=r||(g?g.run(console.timeStamp.bind(console,u,r,a,$n,Pn,"secondary-light")):console.timeStamp(u,r,a,$n,Pn,"secondary-light"))}function j6(r,a,u,g,x){if(kr&&!(a<=r)){for(var E=[],M=0;M<u.length;M++){var D=u[M].value;E.push(["Error",typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D)])}r={start:r,end:a,detail:{devtools:{color:"error",track:$n,trackGroup:Pn,tooltipText:g?"Remaining Effects Errored":"Commit Errored",properties:E}}},x?x.run(performance.measure.bind(performance,"Errored",r)):performance.measure("Errored",r)}}function t4(r,a,u){!kr||a<=r||console.timeStamp("Animating",r,a,$n,Pn,"secondary-dark")}function Jd(){for(var r=Ly,a=vA=Ly=0;a<r;){var u=Gs[a];Gs[a++]=null;var g=Gs[a];Gs[a++]=null;var x=Gs[a];Gs[a++]=null;var E=Gs[a];if(Gs[a++]=null,g!==null&&x!==null){var M=g.pending;M===null?x.next=x:(x.next=M.next,M.next=x),g.pending=x}E!==0&&r4(u,x,E)}}function pc(r,a,u,g){Gs[Ly++]=r,Gs[Ly++]=a,Gs[Ly++]=u,Gs[Ly++]=g,vA|=g,r.lanes|=g,r=r.alternate,r!==null&&(r.lanes|=g)}function n4(r,a,u,g){return pc(r,a,u,g),Xh(r)}function Fi(r,a){return pc(r,null,null,a),Xh(r)}function r4(r,a,u){r.lanes|=u;var g=r.alternate;g!==null&&(g.lanes|=u);for(var x=!1,E=r.return;E!==null;)E.childLanes|=u,g=E.alternate,g!==null&&(g.childLanes|=u),E.tag===22&&(r=E.stateNode,r===null||r._visibility&Wx||(x=!0)),r=E,E=E.return;return r.tag===3?(E=r.stateNode,x&&a!==null&&(x=31-ea(u),r=E.hiddenUpdates,g=r[x],g===null?r[x]=[a]:g.push(a),a.lane=u|536870912),E):null}function Xh(r){if(E5>Cfe)throw Dm=E5=0,w5=KA=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Dm>Ofe&&(Dm=0,w5=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),r.alternate===null&&(r.flags&4098)!==0&&ax(r);for(var a=r,u=a.return;u!==null;)a.alternate===null&&(a.flags&4098)!==0&&ax(r),a=u,u=a.return;return a.tag===3?a.stateNode:null}function mc(r){if(Fs===null)return r;var a=Fs(r);return a===void 0?r:a.current}function t1(r){if(Fs===null)return r;var a=Fs(r);return a===void 0?r!=null&&typeof r.render=="function"&&(a=mc(r.render),r.render!==a)?(a={$$typeof:Nu,render:a},r.displayName!==void 0&&(a.displayName=r.displayName),a):r:a.current}function Of(r,a){if(Fs===null)return!1;var u=r.elementType;a=a.type;var g=!1,x=typeof a=="object"&&a!==null?a.$$typeof:null;switch(r.tag){case 1:typeof a=="function"&&(g=!0);break;case 0:(typeof a=="function"||x===si)&&(g=!0);break;case 11:(x===Nu||x===si)&&(g=!0);break;case 14:case 15:(x===ad||x===si)&&(g=!0);break;default:return!1}return!!(g&&(r=Fs(u),r!==void 0&&r===Fs(a)))}function P6(r){Fs!==null&&typeof WeakSet=="function"&&(Vy===null&&(Vy=new WeakSet),Vy.add(r))}function U6(r,a,u){do{var g=r,x=g.alternate,E=g.child,M=g.sibling,D=g.tag;g=g.type;var q=null;switch(D){case 0:case 15:case 1:q=g;break;case 11:q=g.render}if(Fs===null)throw Error("Expected resolveFamily to be set during hot reload.");var K=!1;if(g=!1,q!==null&&(q=Fs(q),q!==void 0&&(u.has(q)?g=!0:a.has(q)&&(D===1?g=!0:K=!0))),Vy!==null&&(Vy.has(r)||x!==null&&Vy.has(x))&&(g=!0),g&&(r._debugNeedsRemount=!0),(g||K)&&(x=Fi(r,2),x!==null&&Br(x,r,2)),E===null||g||U6(E,a,u),M===null)break;r=M}while(!0)}function F8(r,a,u,g){this.tag=r,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,OI||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function n1(r){return r=r.prototype,!(!r||!r.isReactComponent)}function fs(r,a){var u=r.alternate;switch(u===null?(u=w(r.tag,a,r.key,r.mode),u.elementType=r.elementType,u.type=r.type,u.stateNode=r.stateNode,u._debugOwner=r._debugOwner,u._debugStack=r._debugStack,u._debugTask=r._debugTask,u._debugHookTypes=r._debugHookTypes,u.alternate=r,r.alternate=u):(u.pendingProps=a,u.type=r.type,u.flags=0,u.subtreeFlags=0,u.deletions=null,u.actualDuration=-0,u.actualStartTime=-1.1),u.flags=r.flags&65011712,u.childLanes=r.childLanes,u.lanes=r.lanes,u.child=r.child,u.memoizedProps=r.memoizedProps,u.memoizedState=r.memoizedState,u.updateQueue=r.updateQueue,a=r.dependencies,u.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext,_debugThenableState:a._debugThenableState},u.sibling=r.sibling,u.index=r.index,u.ref=r.ref,u.refCleanup=r.refCleanup,u.selfBaseDuration=r.selfBaseDuration,u.treeBaseDuration=r.treeBaseDuration,u._debugInfo=r._debugInfo,u._debugNeedsRemount=r._debugNeedsRemount,u.tag){case 0:case 15:u.type=mc(r.type);break;case 1:u.type=mc(r.type);break;case 11:u.type=t1(r.type)}return u}function e0(r,a){r.flags&=65011714;var u=r.alternate;return u===null?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null,r.selfBaseDuration=0,r.treeBaseDuration=0):(r.childLanes=u.childLanes,r.lanes=u.lanes,r.child=u.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=u.memoizedProps,r.memoizedState=u.memoizedState,r.updateQueue=u.updateQueue,r.type=u.type,a=u.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext,_debugThenableState:a._debugThenableState},r.selfBaseDuration=u.selfBaseDuration,r.treeBaseDuration=u.treeBaseDuration),r}function Mf(r,a,u,g,x,E){var M=0,D=r;if(typeof r=="function")n1(r)&&(M=1),D=mc(D);else if(typeof r=="string")M=de(),M=_n(r,u,M)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case Nx:return a=w(31,u,a,x),a.elementType=Nx,a.lanes=E,a;case Ji:return ds(u.children,x,E,a);case z0:M=8,x|=co,x|=Lu;break;case py:return r=u,g=x,typeof r.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof r.id),a=w(12,r,a,g|xn),a.elementType=py,a.lanes=E,a.stateNode={effectDuration:0,passiveEffectDuration:0},a;case uo:return a=w(13,u,a,x),a.elementType=uo,a.lanes=E,a;case gy:return a=w(19,u,a,x),a.elementType=gy,a.lanes=E,a;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case Bl:M=10;break e;case my:M=9;break e;case Nu:M=11,D=t1(D);break e;case ad:M=14;break e;case si:M=16,D=null;break e}D="",(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(D+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),r===null?u="null":wi(r)?u="array":r!==void 0&&r.$$typeof===ol?(u="<"+(ce(r.type)||"Unknown")+" />",D=" Did you accidentally export a JSX literal instead of a component?"):u=typeof r,(M=g?ie(g):null)&&(D+=`
|
|
165
165
|
|
|
166
166
|
Check the render method of \``+M+"`."),M=29,u=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(u+"."+D)),D=null}return a=w(M,u,a,x),a.elementType=r,a.type=D,a.lanes=E,a._debugOwner=g,a}function r1(r,a,u){return a=Mf(r.type,r.key,r.props,r._owner,a,u),a._debugOwner=r._owner,a._debugStack=r._debugStack,a._debugTask=r._debugTask,a}function ds(r,a,u,g){return r=w(7,r,g,a),r.lanes=u,r}function i1(r,a,u){return r=w(6,r,null,a),r.lanes=u,r}function i4(r){var a=w(18,null,null,Zt);return a.stateNode=r,a}function Wh(r,a,u){return a=w(4,r.children!==null?r.children:[],r.key,a),a.lanes=u,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}function Ta(r,a){if(typeof r=="object"&&r!==null){var u=bA.get(r);return u!==void 0?u:(a={value:r,source:a,stack:He(a)},bA.set(r,a),a)}return{value:r,source:a,stack:He(a)}}function hs(r,a){gc(),By[jy++]=Qx,By[jy++]=qE,qE=r,Qx=a}function a4(r,a,u){gc(),Ys[Xs++]=fd,Ys[Xs++]=dd,Ys[Xs++]=gm,gm=r;var g=fd;r=dd;var x=32-ea(g)-1;g&=~(1<<x),u+=1;var E=32-ea(a)+x;if(30<E){var M=x-x%5;E=(g&(1<<M)-1).toString(32),g>>=M,x-=M,fd=1<<32-ea(a)+x|u<<x|g,dd=E+r}else fd=1<<E|u<<x|g,dd=r}function a1(r){gc(),r.return!==null&&(hs(r,1),a4(r,1,0))}function o4(r){for(;r===qE;)qE=By[--jy],By[jy]=null,Qx=By[--jy],By[jy]=null;for(;r===gm;)gm=Ys[--Xs],Ys[Xs]=null,dd=Ys[--Xs],Ys[Xs]=null,fd=Ys[--Xs],Ys[Xs]=null}function $6(){return gc(),gm!==null?{id:fd,overflow:dd}:null}function H6(r,a){gc(),Ys[Xs++]=fd,Ys[Xs++]=dd,Ys[Xs++]=gm,fd=a.id,dd=a.overflow,gm=r}function gc(){In||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Rf(r,a){if(r.return===null){if(Ul===null)Ul={fiber:r,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:a};else{if(Ul.fiber!==r)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Ul.distanceFromLeaf>a&&(Ul.distanceFromLeaf=a)}return Ul}var u=Rf(r.return,a+1).children;return 0<u.length&&u[u.length-1].fiber===r?(u=u[u.length-1],u.distanceFromLeaf>a&&(u.distanceFromLeaf=a),u):(a={fiber:r,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:a},u.push(a),a)}function Xa(){In&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function yc(r,a){$c||(r=Rf(r,0),r.serverProps=null,a!==null&&(a=SE(a),r.serverTail.push(a)))}function mu(r){var a=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,u="",g=Ul;throw g!==null&&(Ul=null,u=jh(g)),ps(Ta(Error("Hydration failed because the server rendered "+(a?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
167
167
|
|
|
@@ -190,7 +190,7 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
190
190
|
root.render(%s)`,a,a,a):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.
|
|
191
191
|
<%s>{%s}</%s>`,a,a,u,a,u))}function r0(r,a){var u=Ka();u!==null?u.run(s1.bind(null,r,a)):s1(r,a)}function h4(r,a){var u=ue(r)||"Component";ZI[u]||(ZI[u]=!0,a=String(a),r.tag===3?console.error(`Symbols are not valid as a React child.
|
|
192
192
|
root.render(%s)`,a):console.error(`Symbols are not valid as a React child.
|
|
193
|
-
<%s>%s</%s>`,u,a,u))}function mi(r,a){var u=Ka();u!==null?u.run(h4.bind(null,r,a)):h4(r,a)}function xr(r){function a(he,ye){if(r){var xe=he.deletions;xe===null?(he.deletions=[ye],he.flags|=16):xe.push(ye)}}function u(he,ye){if(!r)return null;for(;ye!==null;)a(he,ye),ye=ye.sibling;return null}function g(he){for(var ye=new Map;he!==null;)he.key!==null?ye.set(he.key,he):ye.set(he.index,he),he=he.sibling;return ye}function x(he,ye){return he=fs(he,ye),he.index=0,he.sibling=null,he}function E(he,ye,xe){return he.index=xe,r?(xe=he.alternate,xe!==null?(xe=xe.index,xe<ye?(he.flags|=67108866,ye):xe):(he.flags|=67108866,ye)):(he.flags|=1048576,ye)}function M(he){return r&&he.alternate===null&&(he.flags|=67108866),he}function D(he,ye,xe,Ge){return ye===null||ye.tag!==6?(ye=i1(xe,he.mode,Ge),ye.return=he,ye._debugOwner=he,ye._debugTask=he._debugTask,ye._debugInfo=Sn,ye):(ye=x(ye,xe),ye.return=he,ye._debugInfo=Sn,ye)}function q(he,ye,xe,Ge){var bt=xe.type;return bt===Ji?(ye=Ee(he,ye,xe.props.children,Ge,xe.key),Rl(xe,ye,he),ye):ye!==null&&(ye.elementType===bt||Of(ye,xe)||typeof bt=="object"&&bt!==null&&bt.$$typeof===si&&Oo(bt)===ye.type)?(ye=x(ye,xe.props),Za(ye,xe),ye.return=he,ye._debugOwner=xe._owner,ye._debugInfo=Sn,ye):(ye=r1(xe,he.mode,Ge),Za(ye,xe),ye.return=he,ye._debugInfo=Sn,ye)}function K(he,ye,xe,Ge){return ye===null||ye.tag!==4||ye.stateNode.containerInfo!==xe.containerInfo||ye.stateNode.implementation!==xe.implementation?(ye=Wh(xe,he.mode,Ge),ye.return=he,ye._debugInfo=Sn,ye):(ye=x(ye,xe.children||[]),ye.return=he,ye._debugInfo=Sn,ye)}function Ee(he,ye,xe,Ge,bt){return ye===null||ye.tag!==7?(ye=ds(xe,he.mode,Ge,bt),ye.return=he,ye._debugOwner=he,ye._debugTask=he._debugTask,ye._debugInfo=Sn,ye):(ye=x(ye,xe),ye.return=he,ye._debugInfo=Sn,ye)}function Ae(he,ye,xe){if(typeof ye=="string"&&ye!==""||typeof ye=="number"||typeof ye=="bigint")return ye=i1(""+ye,he.mode,xe),ye.return=he,ye._debugOwner=he,ye._debugTask=he._debugTask,ye._debugInfo=Sn,ye;if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case ol:return xe=r1(ye,he.mode,xe),Za(xe,ye),xe.return=he,he=fr(ye._debugInfo),xe._debugInfo=Sn,Sn=he,xe;case k0:return ye=Wh(ye,he.mode,xe),ye.return=he,ye._debugInfo=Sn,ye;case si:var Ge=fr(ye._debugInfo);return ye=Oo(ye),he=Ae(he,ye,xe),Sn=Ge,he}if(wi(ye)||se(ye))return xe=ds(ye,he.mode,xe,null),xe.return=he,xe._debugOwner=he,xe._debugTask=he._debugTask,he=fr(ye._debugInfo),xe._debugInfo=Sn,Sn=he,xe;if(typeof ye.then=="function")return Ge=fr(ye._debugInfo),he=Ae(he,Mo(ye),xe),Sn=Ge,he;if(ye.$$typeof===Bl)return Ae(he,Zh(he,ye),xe);ip(he,ye)}return typeof ye=="function"&&r0(he,ye),typeof ye=="symbol"&&mi(he,ye),null}function ge(he,ye,xe,Ge){var bt=ye!==null?ye.key:null;if(typeof xe=="string"&&xe!==""||typeof xe=="number"||typeof xe=="bigint")return bt!==null?null:D(he,ye,""+xe,Ge);if(typeof xe=="object"&&xe!==null){switch(xe.$$typeof){case ol:return xe.key===bt?(bt=fr(xe._debugInfo),he=q(he,ye,xe,Ge),Sn=bt,he):null;case k0:return xe.key===bt?K(he,ye,xe,Ge):null;case si:return bt=fr(xe._debugInfo),xe=Oo(xe),he=ge(he,ye,xe,Ge),Sn=bt,he}if(wi(xe)||se(xe))return bt!==null?null:(bt=fr(xe._debugInfo),he=Ee(he,ye,xe,Ge,null),Sn=bt,he);if(typeof xe.then=="function")return bt=fr(xe._debugInfo),he=ge(he,ye,Mo(xe),Ge),Sn=bt,he;if(xe.$$typeof===Bl)return ge(he,ye,Zh(he,xe),Ge);ip(he,xe)}return typeof xe=="function"&&r0(he,xe),typeof xe=="symbol"&&mi(he,xe),null}function Le(he,ye,xe,Ge,bt){if(typeof Ge=="string"&&Ge!==""||typeof Ge=="number"||typeof Ge=="bigint")return he=he.get(xe)||null,D(ye,he,""+Ge,bt);if(typeof Ge=="object"&&Ge!==null){switch(Ge.$$typeof){case ol:return xe=he.get(Ge.key===null?xe:Ge.key)||null,he=fr(Ge._debugInfo),ye=q(ye,xe,Ge,bt),Sn=he,ye;case k0:return he=he.get(Ge.key===null?xe:Ge.key)||null,K(ye,he,Ge,bt);case si:var on=fr(Ge._debugInfo);return Ge=Oo(Ge),ye=Le(he,ye,xe,Ge,bt),Sn=on,ye}if(wi(Ge)||se(Ge))return xe=he.get(xe)||null,he=fr(Ge._debugInfo),ye=Ee(ye,xe,Ge,bt,null),Sn=he,ye;if(typeof Ge.then=="function")return on=fr(Ge._debugInfo),ye=Le(he,ye,xe,Mo(Ge),bt),Sn=on,ye;if(Ge.$$typeof===Bl)return Le(he,ye,xe,Zh(ye,Ge),bt);ip(ye,Ge)}return typeof Ge=="function"&&r0(ye,Ge),typeof Ge=="symbol"&&mi(ye,Ge),null}function mt(he,ye,xe,Ge){if(typeof xe!="object"||xe===null)return Ge;switch(xe.$$typeof){case ol:case k0:S(he,ye,xe);var bt=xe.key;if(typeof bt!="string")break;if(Ge===null){Ge=new Set,Ge.add(bt);break}if(!Ge.has(bt)){Ge.add(bt);break}Be(ye,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.",bt)});break;case si:xe=Oo(xe),mt(he,ye,xe,Ge)}return Ge}function Et(he,ye,xe,Ge){for(var bt=null,on=null,Pt=null,Dt=ye,vn=ye=0,Ir=null;Dt!==null&&vn<xe.length;vn++){Dt.index>vn?(Ir=Dt,Dt=null):Ir=Dt.sibling;var Ci=ge(he,Dt,xe[vn],Ge);if(Ci===null){Dt===null&&(Dt=Ir);break}bt=mt(he,Ci,xe[vn],bt),r&&Dt&&Ci.alternate===null&&a(he,Dt),ye=E(Ci,ye,vn),Pt===null?on=Ci:Pt.sibling=Ci,Pt=Ci,Dt=Ir}if(vn===xe.length)return u(he,Dt),In&&hs(he,vn),on;if(Dt===null){for(;vn<xe.length;vn++)Dt=Ae(he,xe[vn],Ge),Dt!==null&&(bt=mt(he,Dt,xe[vn],bt),ye=E(Dt,ye,vn),Pt===null?on=Dt:Pt.sibling=Dt,Pt=Dt);return In&&hs(he,vn),on}for(Dt=g(Dt);vn<xe.length;vn++)Ir=Le(Dt,he,vn,xe[vn],Ge),Ir!==null&&(bt=mt(he,Ir,xe[vn],bt),r&&Ir.alternate!==null&&Dt.delete(Ir.key===null?vn:Ir.key),ye=E(Ir,ye,vn),Pt===null?on=Ir:Pt.sibling=Ir,Pt=Ir);return r&&Dt.forEach(function(Td){return a(he,Td)}),In&&hs(he,vn),on}function Rr(he,ye,xe,Ge){if(xe==null)throw Error("An iterable object provided no iterator.");for(var bt=null,on=null,Pt=ye,Dt=ye=0,vn=null,Ir=null,Ci=xe.next();Pt!==null&&!Ci.done;Dt++,Ci=xe.next()){Pt.index>Dt?(vn=Pt,Pt=null):vn=Pt.sibling;var Td=ge(he,Pt,Ci.value,Ge);if(Td===null){Pt===null&&(Pt=vn);break}Ir=mt(he,Td,Ci.value,Ir),r&&Pt&&Td.alternate===null&&a(he,Pt),ye=E(Td,ye,Dt),on===null?bt=Td:on.sibling=Td,on=Td,Pt=vn}if(Ci.done)return u(he,Pt),In&&hs(he,Dt),bt;if(Pt===null){for(;!Ci.done;Dt++,Ci=xe.next())Pt=Ae(he,Ci.value,Ge),Pt!==null&&(Ir=mt(he,Pt,Ci.value,Ir),ye=E(Pt,ye,Dt),on===null?bt=Pt:on.sibling=Pt,on=Pt);return In&&hs(he,Dt),bt}for(Pt=g(Pt);!Ci.done;Dt++,Ci=xe.next())vn=Le(Pt,he,Dt,Ci.value,Ge),vn!==null&&(Ir=mt(he,vn,Ci.value,Ir),r&&vn.alternate!==null&&Pt.delete(vn.key===null?Dt:vn.key),ye=E(vn,ye,Dt),on===null?bt=vn:on.sibling=vn,on=vn);return r&&Pt.forEach(function(qfe){return a(he,qfe)}),In&&hs(he,Dt),bt}function Un(he,ye,xe,Ge){if(typeof xe=="object"&&xe!==null&&xe.type===Ji&&xe.key===null&&(Rl(xe,null,he),xe=xe.props.children),typeof xe=="object"&&xe!==null){switch(xe.$$typeof){case ol:var bt=fr(xe._debugInfo);e:{for(var on=xe.key;ye!==null;){if(ye.key===on){if(on=xe.type,on===Ji){if(ye.tag===7){u(he,ye.sibling),Ge=x(ye,xe.props.children),Ge.return=he,Ge._debugOwner=xe._owner,Ge._debugInfo=Sn,Rl(xe,Ge,he),he=Ge;break e}}else if(ye.elementType===on||Of(ye,xe)||typeof on=="object"&&on!==null&&on.$$typeof===si&&Oo(on)===ye.type){u(he,ye.sibling),Ge=x(ye,xe.props),Za(Ge,xe),Ge.return=he,Ge._debugOwner=xe._owner,Ge._debugInfo=Sn,he=Ge;break e}u(he,ye);break}else a(he,ye);ye=ye.sibling}xe.type===Ji?(Ge=ds(xe.props.children,he.mode,Ge,xe.key),Ge.return=he,Ge._debugOwner=he,Ge._debugTask=he._debugTask,Ge._debugInfo=Sn,Rl(xe,Ge,he),he=Ge):(Ge=r1(xe,he.mode,Ge),Za(Ge,xe),Ge.return=he,Ge._debugInfo=Sn,he=Ge)}return he=M(he),Sn=bt,he;case k0:e:{for(bt=xe,xe=bt.key;ye!==null;){if(ye.key===xe)if(ye.tag===4&&ye.stateNode.containerInfo===bt.containerInfo&&ye.stateNode.implementation===bt.implementation){u(he,ye.sibling),Ge=x(ye,bt.children||[]),Ge.return=he,he=Ge;break e}else{u(he,ye);break}else a(he,ye);ye=ye.sibling}Ge=Wh(bt,he.mode,Ge),Ge.return=he,he=Ge}return M(he);case si:return bt=fr(xe._debugInfo),xe=Oo(xe),he=Un(he,ye,xe,Ge),Sn=bt,he}if(wi(xe))return bt=fr(xe._debugInfo),he=Et(he,ye,xe,Ge),Sn=bt,he;if(se(xe)){if(bt=fr(xe._debugInfo),on=se(xe),typeof on!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Pt=on.call(xe);return Pt===xe?(he.tag!==0||Object.prototype.toString.call(he.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Pt)!=="[object Generator]")&&(WI||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."),WI=!0):xe.entries!==on||_A||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),_A=!0),he=Rr(he,ye,Pt,Ge),Sn=bt,he}if(typeof xe.then=="function")return bt=fr(xe._debugInfo),he=Un(he,ye,Mo(xe),Ge),Sn=bt,he;if(xe.$$typeof===Bl)return Un(he,ye,Zh(he,xe),Ge);ip(he,xe)}return typeof xe=="string"&&xe!==""||typeof xe=="number"||typeof xe=="bigint"?(bt=""+xe,ye!==null&&ye.tag===6?(u(he,ye.sibling),Ge=x(ye,bt),Ge.return=he,he=Ge):(u(he,ye),Ge=i1(bt,he.mode,Ge),Ge.return=he,Ge._debugOwner=he,Ge._debugTask=he._debugTask,Ge._debugInfo=Sn,he=Ge),M(he)):(typeof xe=="function"&&r0(he,xe),typeof xe=="symbol"&&mi(he,xe),u(he,ye))}return function(he,ye,xe,Ge){var bt=Sn;Sn=null;try{c5=0;var on=Un(he,ye,xe,Ge);return Gy=null,on}catch(Ir){if(Ir===qy||Ir===ew)throw Ir;var Pt=w(29,Ir,null,he.mode);Pt.lanes=Ge,Pt.return=he;var Dt=Pt._debugInfo=Sn;if(Pt._debugOwner=he._debugOwner,Pt._debugTask=he._debugTask,Dt!=null){for(var vn=Dt.length-1;0<=vn;vn--)if(typeof Dt[vn].stack=="string"){Pt._debugOwner=Dt[vn],Pt._debugTask=Dt[vn].debugTask;break}}return Pt}finally{Sn=bt}}}function kn(r,a){var u=wi(r);return r=!u&&typeof se(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,a,u),!1):!0}function bs(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ja(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function xs(r){return{lane:r,tag:eL,payload:null,callback:null,next:null}}function Oa(r,a,u){var g=r.updateQueue;if(g===null)return null;if(g=g.shared,NA===g&&!rL){var x=ue(r);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
193
|
+
<%s>%s</%s>`,u,a,u))}function mi(r,a){var u=Ka();u!==null?u.run(h4.bind(null,r,a)):h4(r,a)}function xr(r){function a(he,ye){if(r){var xe=he.deletions;xe===null?(he.deletions=[ye],he.flags|=16):xe.push(ye)}}function u(he,ye){if(!r)return null;for(;ye!==null;)a(he,ye),ye=ye.sibling;return null}function g(he){for(var ye=new Map;he!==null;)he.key!==null?ye.set(he.key,he):ye.set(he.index,he),he=he.sibling;return ye}function x(he,ye){return he=fs(he,ye),he.index=0,he.sibling=null,he}function E(he,ye,xe){return he.index=xe,r?(xe=he.alternate,xe!==null?(xe=xe.index,xe<ye?(he.flags|=67108866,ye):xe):(he.flags|=67108866,ye)):(he.flags|=1048576,ye)}function M(he){return r&&he.alternate===null&&(he.flags|=67108866),he}function D(he,ye,xe,Ge){return ye===null||ye.tag!==6?(ye=i1(xe,he.mode,Ge),ye.return=he,ye._debugOwner=he,ye._debugTask=he._debugTask,ye._debugInfo=Sn,ye):(ye=x(ye,xe),ye.return=he,ye._debugInfo=Sn,ye)}function q(he,ye,xe,Ge){var bt=xe.type;return bt===Ji?(ye=Ee(he,ye,xe.props.children,Ge,xe.key),Rl(xe,ye,he),ye):ye!==null&&(ye.elementType===bt||Of(ye,xe)||typeof bt=="object"&&bt!==null&&bt.$$typeof===si&&Oo(bt)===ye.type)?(ye=x(ye,xe.props),Za(ye,xe),ye.return=he,ye._debugOwner=xe._owner,ye._debugInfo=Sn,ye):(ye=r1(xe,he.mode,Ge),Za(ye,xe),ye.return=he,ye._debugInfo=Sn,ye)}function K(he,ye,xe,Ge){return ye===null||ye.tag!==4||ye.stateNode.containerInfo!==xe.containerInfo||ye.stateNode.implementation!==xe.implementation?(ye=Wh(xe,he.mode,Ge),ye.return=he,ye._debugInfo=Sn,ye):(ye=x(ye,xe.children||[]),ye.return=he,ye._debugInfo=Sn,ye)}function Ee(he,ye,xe,Ge,bt){return ye===null||ye.tag!==7?(ye=ds(xe,he.mode,Ge,bt),ye.return=he,ye._debugOwner=he,ye._debugTask=he._debugTask,ye._debugInfo=Sn,ye):(ye=x(ye,xe),ye.return=he,ye._debugInfo=Sn,ye)}function Ae(he,ye,xe){if(typeof ye=="string"&&ye!==""||typeof ye=="number"||typeof ye=="bigint")return ye=i1(""+ye,he.mode,xe),ye.return=he,ye._debugOwner=he,ye._debugTask=he._debugTask,ye._debugInfo=Sn,ye;if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case ol:return xe=r1(ye,he.mode,xe),Za(xe,ye),xe.return=he,he=fr(ye._debugInfo),xe._debugInfo=Sn,Sn=he,xe;case k0:return ye=Wh(ye,he.mode,xe),ye.return=he,ye._debugInfo=Sn,ye;case si:var Ge=fr(ye._debugInfo);return ye=Oo(ye),he=Ae(he,ye,xe),Sn=Ge,he}if(wi(ye)||se(ye))return xe=ds(ye,he.mode,xe,null),xe.return=he,xe._debugOwner=he,xe._debugTask=he._debugTask,he=fr(ye._debugInfo),xe._debugInfo=Sn,Sn=he,xe;if(typeof ye.then=="function")return Ge=fr(ye._debugInfo),he=Ae(he,Mo(ye),xe),Sn=Ge,he;if(ye.$$typeof===Bl)return Ae(he,Zh(he,ye),xe);ip(he,ye)}return typeof ye=="function"&&r0(he,ye),typeof ye=="symbol"&&mi(he,ye),null}function ge(he,ye,xe,Ge){var bt=ye!==null?ye.key:null;if(typeof xe=="string"&&xe!==""||typeof xe=="number"||typeof xe=="bigint")return bt!==null?null:D(he,ye,""+xe,Ge);if(typeof xe=="object"&&xe!==null){switch(xe.$$typeof){case ol:return xe.key===bt?(bt=fr(xe._debugInfo),he=q(he,ye,xe,Ge),Sn=bt,he):null;case k0:return xe.key===bt?K(he,ye,xe,Ge):null;case si:return bt=fr(xe._debugInfo),xe=Oo(xe),he=ge(he,ye,xe,Ge),Sn=bt,he}if(wi(xe)||se(xe))return bt!==null?null:(bt=fr(xe._debugInfo),he=Ee(he,ye,xe,Ge,null),Sn=bt,he);if(typeof xe.then=="function")return bt=fr(xe._debugInfo),he=ge(he,ye,Mo(xe),Ge),Sn=bt,he;if(xe.$$typeof===Bl)return ge(he,ye,Zh(he,xe),Ge);ip(he,xe)}return typeof xe=="function"&&r0(he,xe),typeof xe=="symbol"&&mi(he,xe),null}function Le(he,ye,xe,Ge,bt){if(typeof Ge=="string"&&Ge!==""||typeof Ge=="number"||typeof Ge=="bigint")return he=he.get(xe)||null,D(ye,he,""+Ge,bt);if(typeof Ge=="object"&&Ge!==null){switch(Ge.$$typeof){case ol:return xe=he.get(Ge.key===null?xe:Ge.key)||null,he=fr(Ge._debugInfo),ye=q(ye,xe,Ge,bt),Sn=he,ye;case k0:return he=he.get(Ge.key===null?xe:Ge.key)||null,K(ye,he,Ge,bt);case si:var on=fr(Ge._debugInfo);return Ge=Oo(Ge),ye=Le(he,ye,xe,Ge,bt),Sn=on,ye}if(wi(Ge)||se(Ge))return xe=he.get(xe)||null,he=fr(Ge._debugInfo),ye=Ee(ye,xe,Ge,bt,null),Sn=he,ye;if(typeof Ge.then=="function")return on=fr(Ge._debugInfo),ye=Le(he,ye,xe,Mo(Ge),bt),Sn=on,ye;if(Ge.$$typeof===Bl)return Le(he,ye,xe,Zh(ye,Ge),bt);ip(ye,Ge)}return typeof Ge=="function"&&r0(ye,Ge),typeof Ge=="symbol"&&mi(ye,Ge),null}function mt(he,ye,xe,Ge){if(typeof xe!="object"||xe===null)return Ge;switch(xe.$$typeof){case ol:case k0:S(he,ye,xe);var bt=xe.key;if(typeof bt!="string")break;if(Ge===null){Ge=new Set,Ge.add(bt);break}if(!Ge.has(bt)){Ge.add(bt);break}Be(ye,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.",bt)});break;case si:xe=Oo(xe),mt(he,ye,xe,Ge)}return Ge}function Et(he,ye,xe,Ge){for(var bt=null,on=null,Pt=null,Nt=ye,vn=ye=0,Ir=null;Nt!==null&&vn<xe.length;vn++){Nt.index>vn?(Ir=Nt,Nt=null):Ir=Nt.sibling;var Ci=ge(he,Nt,xe[vn],Ge);if(Ci===null){Nt===null&&(Nt=Ir);break}bt=mt(he,Ci,xe[vn],bt),r&&Nt&&Ci.alternate===null&&a(he,Nt),ye=E(Ci,ye,vn),Pt===null?on=Ci:Pt.sibling=Ci,Pt=Ci,Nt=Ir}if(vn===xe.length)return u(he,Nt),In&&hs(he,vn),on;if(Nt===null){for(;vn<xe.length;vn++)Nt=Ae(he,xe[vn],Ge),Nt!==null&&(bt=mt(he,Nt,xe[vn],bt),ye=E(Nt,ye,vn),Pt===null?on=Nt:Pt.sibling=Nt,Pt=Nt);return In&&hs(he,vn),on}for(Nt=g(Nt);vn<xe.length;vn++)Ir=Le(Nt,he,vn,xe[vn],Ge),Ir!==null&&(bt=mt(he,Ir,xe[vn],bt),r&&Ir.alternate!==null&&Nt.delete(Ir.key===null?vn:Ir.key),ye=E(Ir,ye,vn),Pt===null?on=Ir:Pt.sibling=Ir,Pt=Ir);return r&&Nt.forEach(function(Td){return a(he,Td)}),In&&hs(he,vn),on}function Rr(he,ye,xe,Ge){if(xe==null)throw Error("An iterable object provided no iterator.");for(var bt=null,on=null,Pt=ye,Nt=ye=0,vn=null,Ir=null,Ci=xe.next();Pt!==null&&!Ci.done;Nt++,Ci=xe.next()){Pt.index>Nt?(vn=Pt,Pt=null):vn=Pt.sibling;var Td=ge(he,Pt,Ci.value,Ge);if(Td===null){Pt===null&&(Pt=vn);break}Ir=mt(he,Td,Ci.value,Ir),r&&Pt&&Td.alternate===null&&a(he,Pt),ye=E(Td,ye,Nt),on===null?bt=Td:on.sibling=Td,on=Td,Pt=vn}if(Ci.done)return u(he,Pt),In&&hs(he,Nt),bt;if(Pt===null){for(;!Ci.done;Nt++,Ci=xe.next())Pt=Ae(he,Ci.value,Ge),Pt!==null&&(Ir=mt(he,Pt,Ci.value,Ir),ye=E(Pt,ye,Nt),on===null?bt=Pt:on.sibling=Pt,on=Pt);return In&&hs(he,Nt),bt}for(Pt=g(Pt);!Ci.done;Nt++,Ci=xe.next())vn=Le(Pt,he,Nt,Ci.value,Ge),vn!==null&&(Ir=mt(he,vn,Ci.value,Ir),r&&vn.alternate!==null&&Pt.delete(vn.key===null?Nt:vn.key),ye=E(vn,ye,Nt),on===null?bt=vn:on.sibling=vn,on=vn);return r&&Pt.forEach(function(qfe){return a(he,qfe)}),In&&hs(he,Nt),bt}function Un(he,ye,xe,Ge){if(typeof xe=="object"&&xe!==null&&xe.type===Ji&&xe.key===null&&(Rl(xe,null,he),xe=xe.props.children),typeof xe=="object"&&xe!==null){switch(xe.$$typeof){case ol:var bt=fr(xe._debugInfo);e:{for(var on=xe.key;ye!==null;){if(ye.key===on){if(on=xe.type,on===Ji){if(ye.tag===7){u(he,ye.sibling),Ge=x(ye,xe.props.children),Ge.return=he,Ge._debugOwner=xe._owner,Ge._debugInfo=Sn,Rl(xe,Ge,he),he=Ge;break e}}else if(ye.elementType===on||Of(ye,xe)||typeof on=="object"&&on!==null&&on.$$typeof===si&&Oo(on)===ye.type){u(he,ye.sibling),Ge=x(ye,xe.props),Za(Ge,xe),Ge.return=he,Ge._debugOwner=xe._owner,Ge._debugInfo=Sn,he=Ge;break e}u(he,ye);break}else a(he,ye);ye=ye.sibling}xe.type===Ji?(Ge=ds(xe.props.children,he.mode,Ge,xe.key),Ge.return=he,Ge._debugOwner=he,Ge._debugTask=he._debugTask,Ge._debugInfo=Sn,Rl(xe,Ge,he),he=Ge):(Ge=r1(xe,he.mode,Ge),Za(Ge,xe),Ge.return=he,Ge._debugInfo=Sn,he=Ge)}return he=M(he),Sn=bt,he;case k0:e:{for(bt=xe,xe=bt.key;ye!==null;){if(ye.key===xe)if(ye.tag===4&&ye.stateNode.containerInfo===bt.containerInfo&&ye.stateNode.implementation===bt.implementation){u(he,ye.sibling),Ge=x(ye,bt.children||[]),Ge.return=he,he=Ge;break e}else{u(he,ye);break}else a(he,ye);ye=ye.sibling}Ge=Wh(bt,he.mode,Ge),Ge.return=he,he=Ge}return M(he);case si:return bt=fr(xe._debugInfo),xe=Oo(xe),he=Un(he,ye,xe,Ge),Sn=bt,he}if(wi(xe))return bt=fr(xe._debugInfo),he=Et(he,ye,xe,Ge),Sn=bt,he;if(se(xe)){if(bt=fr(xe._debugInfo),on=se(xe),typeof on!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Pt=on.call(xe);return Pt===xe?(he.tag!==0||Object.prototype.toString.call(he.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Pt)!=="[object Generator]")&&(WI||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."),WI=!0):xe.entries!==on||_A||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),_A=!0),he=Rr(he,ye,Pt,Ge),Sn=bt,he}if(typeof xe.then=="function")return bt=fr(xe._debugInfo),he=Un(he,ye,Mo(xe),Ge),Sn=bt,he;if(xe.$$typeof===Bl)return Un(he,ye,Zh(he,xe),Ge);ip(he,xe)}return typeof xe=="string"&&xe!==""||typeof xe=="number"||typeof xe=="bigint"?(bt=""+xe,ye!==null&&ye.tag===6?(u(he,ye.sibling),Ge=x(ye,bt),Ge.return=he,he=Ge):(u(he,ye),Ge=i1(bt,he.mode,Ge),Ge.return=he,Ge._debugOwner=he,Ge._debugTask=he._debugTask,Ge._debugInfo=Sn,he=Ge),M(he)):(typeof xe=="function"&&r0(he,xe),typeof xe=="symbol"&&mi(he,xe),u(he,ye))}return function(he,ye,xe,Ge){var bt=Sn;Sn=null;try{c5=0;var on=Un(he,ye,xe,Ge);return Gy=null,on}catch(Ir){if(Ir===qy||Ir===ew)throw Ir;var Pt=w(29,Ir,null,he.mode);Pt.lanes=Ge,Pt.return=he;var Nt=Pt._debugInfo=Sn;if(Pt._debugOwner=he._debugOwner,Pt._debugTask=he._debugTask,Nt!=null){for(var vn=Nt.length-1;0<=vn;vn--)if(typeof Nt[vn].stack=="string"){Pt._debugOwner=Nt[vn],Pt._debugTask=Nt[vn].debugTask;break}}return Pt}finally{Sn=bt}}}function kn(r,a){var u=wi(r);return r=!u&&typeof se(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,a,u),!1):!0}function bs(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ja(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function xs(r){return{lane:r,tag:eL,payload:null,callback:null,next:null}}function Oa(r,a,u){var g=r.updateQueue;if(g===null)return null;if(g=g.shared,NA===g&&!rL){var x=ue(r);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
194
194
|
|
|
195
195
|
Please update the following component: %s`,x),rL=!0}return(Gn&ia)!==ya?(x=g.pending,x===null?a.next=a:(a.next=x.next,x.next=a),g.pending=a,a=Xh(r),r4(r,null,u),a):(pc(r,g,a,u),Xh(r))}function i0(r,a,u){if(a=a.updateQueue,a!==null&&(a=a.shared,(u&4194048)!==0)){var g=a.lanes;g&=r.pendingLanes,u|=g,a.lanes=u,gn(r,u)}}function ap(r,a){var u=r.updateQueue,g=r.alternate;if(g!==null&&(g=g.updateQueue,u===g)){var x=null,E=null;if(u=u.firstBaseUpdate,u!==null){do{var M={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};E===null?x=E=M:E=E.next=M,u=u.next}while(u!==null);E===null?x=E=a:E=E.next=a}else x=E=a;u={baseState:g.baseState,firstBaseUpdate:x,lastBaseUpdate:E,shared:g.shared,callbacks:g.callbacks},r.updateQueue=u;return}r=u.lastBaseUpdate,r===null?u.firstBaseUpdate=a:r.next=a,u.lastBaseUpdate=a}function Ss(){if(kA){var r=Hy;if(r!==null)throw r}}function _l(r,a,u,g){kA=!1;var x=r.updateQueue;X0=!1,NA=x.shared;var E=x.firstBaseUpdate,M=x.lastBaseUpdate,D=x.shared.pending;if(D!==null){x.shared.pending=null;var q=D,K=q.next;q.next=null,M===null?E=K:M.next=K,M=q;var Ee=r.alternate;Ee!==null&&(Ee=Ee.updateQueue,D=Ee.lastBaseUpdate,D!==M&&(D===null?Ee.firstBaseUpdate=K:D.next=K,Ee.lastBaseUpdate=q))}if(E!==null){var Ae=x.baseState;M=0,Ee=K=q=null,D=E;do{var ge=D.lane&-536870913,Le=ge!==D.lane;if(Le?(En&ge)===ge:(g&ge)===ge){ge!==0&&ge===Sm&&(kA=!0),Ee!==null&&(Ee=Ee.next={lane:0,tag:D.tag,payload:D.payload,callback:null,next:null});e:{ge=r;var mt=D,Et=a,Rr=u;switch(mt.tag){case tL:if(mt=mt.payload,typeof mt=="function"){Uy=!0;var Un=mt.call(Rr,Ae,Et);if(ge.mode&co){at(!0);try{mt.call(Rr,Ae,Et)}finally{at(!1)}}Uy=!1,Ae=Un;break e}Ae=mt;break e;case DA:ge.flags=ge.flags&-65537|128;case eL:if(Un=mt.payload,typeof Un=="function"){if(Uy=!0,mt=Un.call(Rr,Ae,Et),ge.mode&co){at(!0);try{Un.call(Rr,Ae,Et)}finally{at(!1)}}Uy=!1}else mt=Un;if(mt==null)break e;Ae=yn({},Ae,mt);break e;case nL:X0=!0}}ge=D.callback,ge!==null&&(r.flags|=64,Le&&(r.flags|=8192),Le=x.callbacks,Le===null?x.callbacks=[ge]:Le.push(ge))}else Le={lane:ge,tag:D.tag,payload:D.payload,callback:D.callback,next:null},Ee===null?(K=Ee=Le,q=Ae):Ee=Ee.next=Le,M|=ge;if(D=D.next,D===null){if(D=x.shared.pending,D===null)break;Le=D,D=Le.next,Le.next=null,x.lastBaseUpdate=Le,x.shared.pending=null}}while(!0);Ee===null&&(q=Ae),x.baseState=q,x.firstBaseUpdate=K,x.lastBaseUpdate=Ee,E===null&&(x.shared.lanes=0),K0|=M,r.lanes=M,r.memoizedState=Ae}NA=null}function u1(r,a){if(typeof r!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+r);r.call(a)}function op(r,a){var u=r.shared.hiddenCallbacks;if(u!==null)for(r.shared.hiddenCallbacks=null,r=0;r<u.length;r++)u1(u[r],a)}function c1(r,a){var u=r.callbacks;if(u!==null)for(r.callbacks=null,r=0;r<u.length;r++)u1(u[r],a)}function Ec(r,a){var u=Gc;Q(nw,u,r),Q(Fy,a,r),Gc=u|a.baseLanes}function Dl(r){Q(nw,Gc,r),Q(Fy,Fy.current,r)}function Es(r){Gc=nw.current,le(Fy,r),le(nw,r)}function la(r){var a=r.alternate;Q(Ai,Ai.current&Yy,r),Q($l,r,r),Ks===null&&(a===null||Fy.current!==null||a.memoizedState!==null)&&(Ks=r)}function lp(r){Q(Ai,Ai.current,r),Q($l,r,r),Ks===null&&(Ks=r)}function f1(r){r.tag===22?(Q(Ai,Ai.current,r),Q($l,r,r),Ks===null&&(Ks=r)):Ro(r)}function Ro(r){Q(Ai,Ai.current,r),Q($l,$l.current,r)}function sa(r){le($l,r),Ks===r&&(Ks=null),le(Ai,r)}function ws(r){for(var a=r;a!==null;){if(a.tag===13){var u=a.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||mx(u)||ty(u)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function Vt(){var r=Pe;Js===null?Js=[r]:Js.push(r)}function rt(){var r=Pe;if(Js!==null&&(bd++,Js[bd]!==r)){var a=ue(an);if(!iL.has(a)&&(iL.add(a),Js!==null)){for(var u="",g=0;g<=bd;g++){var x=Js[g],E=g===bd?r:x;for(x=g+1+". "+x;30>x.length;)x+=" ";x+=E+`
|
|
196
196
|
`,u+=x}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
|
|
@@ -230,7 +230,7 @@ https://react.dev/link/unsafe-component-lifecycles`,E,K,M!==null?`
|
|
|
230
230
|
`+M:"",D!==null?`
|
|
231
231
|
`+D:"",q!==null?`
|
|
232
232
|
`+q:""))}}E=a.stateNode,M=ce(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?",M):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",M)),!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?",M),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.",M),E.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",M),u.childContextTypes&&!yL.has(u)&&(yL.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)",M)),u.contextTypes&&!gL.has(u)&&(gL.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)",M)),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.",M),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.",ce(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()?",M),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().",M),typeof E.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",M),typeof E.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",M),D=E.props!==g,E.props!==void 0&&D&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",M),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.",M,M),typeof E.getSnapshotBeforeUpdate!="function"||typeof E.componentDidUpdate=="function"||dL.has(u)||(dL.add(u),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",ce(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.",M),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.",M),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.",M),(D=E.state)&&(typeof D!="object"||wi(D))&&console.error("%s.state: must be set to an object or null",M),typeof E.getChildContext=="function"&&typeof u.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",M),E=a.stateNode,E.props=g,E.state=a.memoizedState,E.refs={},bs(a),M=u.contextType,E.context=typeof M=="object"&&M!==null?br(M):$0,E.state===g&&(M=ce(u)||"Component",pL.has(M)||(pL.add(M),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.",M))),a.mode&co&&Vu.recordLegacyContextWarning(a,E),Vu.recordUnsafeLifecycleWarnings(a,E),E.state=a.memoizedState,M=u.getDerivedStateFromProps,typeof M=="function"&&(Sp(a,u,M,g),E.state=a.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(M=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),M!==E.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",ue(a)||"Component"),VA.enqueueReplaceState(E,E.state,null)),_l(a,g,E,x),Ss(),E.state=a.memoizedState),typeof E.componentDidMount=="function"&&(a.flags|=4194308),(a.mode&Lu)!==Zt&&(a.flags|=134217728),E=!0}else if(r===null){E=a.stateNode;var Ee=a.memoizedProps;D=Au(u,Ee),E.props=D;var Ae=E.context;q=u.contextType,M=$0,typeof q=="object"&&q!==null&&(M=br(q)),K=u.getDerivedStateFromProps,q=typeof K=="function"||typeof E.getSnapshotBeforeUpdate=="function",Ee=a.pendingProps!==Ee,q||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(Ee||Ae!==M)&&Ep(a,E,g,M),X0=!1;var ge=a.memoizedState;E.state=ge,_l(a,g,E,x),Ss(),Ae=a.memoizedState,Ee||ge!==Ae||X0?(typeof K=="function"&&(Sp(a,u,K,g),Ae=a.memoizedState),(D=X0||Cs(a,u,D,g,ge,Ae,M))?(q||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"&&(a.flags|=4194308),(a.mode&Lu)!==Zt&&(a.flags|=134217728)):(typeof E.componentDidMount=="function"&&(a.flags|=4194308),(a.mode&Lu)!==Zt&&(a.flags|=134217728),a.memoizedProps=g,a.memoizedState=Ae),E.props=g,E.state=Ae,E.context=M,E=D):(typeof E.componentDidMount=="function"&&(a.flags|=4194308),(a.mode&Lu)!==Zt&&(a.flags|=134217728),E=!1)}else{E=a.stateNode,Ja(r,a),M=a.memoizedProps,q=Au(u,M),E.props=q,K=a.pendingProps,ge=E.context,Ae=u.contextType,D=$0,typeof Ae=="object"&&Ae!==null&&(D=br(Ae)),Ee=u.getDerivedStateFromProps,(Ae=typeof Ee=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(M!==K||ge!==D)&&Ep(a,E,g,D),X0=!1,ge=a.memoizedState,E.state=ge,_l(a,g,E,x),Ss();var Le=a.memoizedState;M!==K||ge!==Le||X0||r!==null&&r.dependencies!==null&&Kh(r.dependencies)?(typeof Ee=="function"&&(Sp(a,u,Ee,g),Le=a.memoizedState),(q=X0||Cs(a,u,q,g,ge,Le,D)||r!==null&&r.dependencies!==null&&Kh(r.dependencies))?(Ae||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(g,Le,D),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(g,Le,D)),typeof E.componentDidUpdate=="function"&&(a.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof E.componentDidUpdate!="function"||M===r.memoizedProps&&ge===r.memoizedState||(a.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||M===r.memoizedProps&&ge===r.memoizedState||(a.flags|=1024),a.memoizedProps=g,a.memoizedState=Le),E.props=g,E.state=Le,E.context=D,E=q):(typeof E.componentDidUpdate!="function"||M===r.memoizedProps&&ge===r.memoizedState||(a.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||M===r.memoizedProps&&ge===r.memoizedState||(a.flags|=1024),E=!1)}if(D=E,O1(r,a),M=(a.flags&128)!==0,D||M){if(D=a.stateNode,Re(a),M&&typeof u.getDerivedStateFromError!="function")u=null,Io=-1;else if(u=jI(D),a.mode&co){at(!0);try{jI(D)}finally{at(!1)}}a.flags|=1,r!==null&&M?(a.child=Am(a,r.child,null,x),a.child=Am(a,null,u,x)):Wi(r,a,u,x),a.memoizedState=D.state,r=a.child}else r=Os(r,a,x);return x=a.stateNode,E&&x.props!==g&&(Ky||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ue(a)||"a component"),Ky=!0),r}function Cp(r,a,u,g){return gu(),a.flags|=256,Wi(r,a,u,g),a.child}function m0(r,a){a&&a.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
233
|
-
%s.childContextTypes = ...`,a.displayName||a.name||"Component"),typeof a.getDerivedStateFromProps=="function"&&(r=ce(a)||"Unknown",wL[r]||(console.error("%s: Function components do not support getDerivedStateFromProps.",r),wL[r]=!0)),typeof a.contextType=="object"&&a.contextType!==null&&(a=ce(a)||"Unknown",SL[a]||(console.error("%s: Function components do not support contextType.",a),SL[a]=!0))}function R1(r){return{baseLanes:r,cachePool:l1()}}function Op(r,a,u){return r=r!==null?r.childLanes&~u:0,a&&(r|=hl),r}function X6(r,a,u){var g,x=a.pendingProps;c(a)&&(a.flags|=128);var E=!1,M=(a.flags&128)!==0;if((g=M)||(g=r!==null&&r.memoizedState===null?!1:(Ai.current&f5)!==0),g&&(E=!0,a.flags&=-129),g=(a.flags&32)!==0,a.flags&=-33,r===null){if(In){if(E?la(a):Ro(a),(r=zr)?(u=ey(r,Ws),u=u!==null&&u.data!==km?u:null,u!==null&&(g={dehydrated:u,treeContext:$6(),retryLane:536870912,hydrationErrors:null},a.memoizedState=g,g=i4(u),g.return=a,a.child=g,Ia=a,zr=null)):u=null,u===null)throw yc(a,r),mu(a);return ty(u)?a.lanes=32:a.lanes=536870912,null}var D=x.children;if(x=x.fallback,E){Ro(a);var q=a.mode;return D=Mp({mode:"hidden",children:D},q),x=ds(x,q,u,null),D.return=a,x.return=a,D.sibling=x,a.child=D,x=a.child,x.memoizedState=R1(u),x.childLanes=Op(r,g,u),a.memoizedState=PA,p0(null,x)}return la(a),_1(a,D)}var K=r.memoizedState;if(K!==null){var Ee=K.dehydrated;if(Ee!==null){if(M)a.flags&256?(la(a),a.flags&=-257,a=D1(r,a,u)):a.memoizedState!==null?(Ro(a),a.child=r.child,a.flags|=128,a=null):(Ro(a),D=x.fallback,q=a.mode,x=Mp({mode:"visible",children:x.children},q),D=ds(D,q,u,null),D.flags|=2,x.return=a,D.return=a,x.sibling=D,a.child=x,Am(a,r.child,null,u),x=a.child,x.memoizedState=R1(u),x.childLanes=Op(r,g,u),a.memoizedState=PA,a=p0(null,x));else if(la(a),Xa(),(u&536870912)!==0&&S0(a),ty(Ee)){if(g=Ee.nextSibling&&Ee.nextSibling.dataset,g){D=g.dgst;var Ae=g.msg;q=g.stck;var ge=g.cstck}E=Ae,g=D,x=q,Ee=ge,D=E,q=Ee,D=Error(D||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),D.stack=x||"",D.digest=g,g=q===void 0?null:q,x={value:D,source:null,stack:g},typeof g=="string"&&bA.set(D,x),ps(x),a=D1(r,a,u)}else if(ji||xc(r,a,u,!1),g=(u&r.childLanes)!==0,ji||g){if(g=wr,g!==null&&(x=kt(g,u),x!==0&&x!==K.retryLane))throw K.retryLane=x,Fi(r,x),Br(g,r,x),jA;mx(Ee)||Qf(),a=D1(r,a,u)}else mx(Ee)?(a.flags|=192,a.child=r.child,a=null):(r=K.treeContext,zr=_o(Ee.nextSibling),Ia=a,In=!0,H0=null,$c=!1,Ul=null,Ws=!1,r!==null&&H6(a,r),a=_1(a,x.children),a.flags|=4096);return a}}return E?(Ro(a),D=x.fallback,q=a.mode,ge=r.child,Ee=ge.sibling,x=fs(ge,{mode:"hidden",children:x.children}),x.subtreeFlags=ge.subtreeFlags&65011712,Ee!==null?D=fs(Ee,D):(D=ds(D,q,u,null),D.flags|=2),D.return=a,x.return=a,x.sibling=D,a.child=x,p0(null,x),x=a.child,D=r.child.memoizedState,D===null?D=R1(u):(q=D.cachePool,q!==null?(ge=Li._currentValue,q=q.parent!==ge?{parent:ge,pool:ge}:q):q=l1(),D={baseLanes:D.baseLanes|u,cachePool:q}),x.memoizedState=D,x.childLanes=Op(r,g,u),a.memoizedState=PA,p0(r.child,x)):(K!==null&&(u&62914560)===u&&(u&r.lanes)!==0&&S0(a),la(a),u=r.child,r=u.sibling,u=fs(u,{mode:"visible",children:x.children}),u.return=a,u.sibling=null,r!==null&&(g=a.deletions,g===null?(a.deletions=[r],a.flags|=16):g.push(r)),a.child=u,a.memoizedState=null,u)}function _1(r,a){return a=Mp({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function Mp(r,a){return r=w(22,r,null,a),r.lanes=0,r}function D1(r,a,u){return Am(a,r.child,null,u),r=_1(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function N4(r,a,u){r.lanes|=a;var g=r.alternate;g!==null&&(g.lanes|=a),yu(r.return,a,u)}function N1(r,a,u,g,x,E){var M=r.memoizedState;M===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:g,tail:u,tailMode:x,treeForkCount:E}:(M.isBackwards=a,M.rendering=null,M.renderingStartTime=0,M.last=g,M.tail=u,M.tailMode=x,M.treeForkCount=E)}function k1(r,a,u){var g=a.pendingProps,x=g.revealOrder,E=g.tail,M=g.children,D=Ai.current;if((g=(D&f5)!==0)?(D=D&Yy|f5,a.flags|=128):D&=Yy,Q(Ai,D,a),D=x??"null",x!=="forwards"&&x!=="unstable_legacy-backwards"&&x!=="together"&&x!=="independent"&&!TL[D])if(TL[D]=!0,x==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(x==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof x=="string")switch(x.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',x,x.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.',x,x.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',x)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',x);D=E??"null",lw[D]||(E==null?(x==="forwards"||x==="backwards"||x==="unstable_legacy-backwards")&&(lw[D]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):E!=="visible"&&E!=="collapsed"&&E!=="hidden"?(lw[D]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',E)):x!=="forwards"&&x!=="backwards"&&x!=="unstable_legacy-backwards"&&(lw[D]=!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((x==="forwards"||x==="backwards"||x==="unstable_legacy-backwards")&&M!==void 0&&M!==null&&M!==!1)if(wi(M)){for(D=0;D<M.length;D++)if(!kn(M[D],D))break e}else if(D=se(M),typeof D=="function"){if(D=D.call(M))for(var q=D.next(),K=0;!q.done;q=D.next()){if(!kn(q.value,K))break e;K++}}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?',x);if(Wi(r,a,M,u),In?(gc(),M=Qx):M=0,!g&&r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&N4(r,u,a);else if(r.tag===19)N4(r,u,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(x){case"forwards":for(u=a.child,x=null;u!==null;)r=u.alternate,r!==null&&ws(r)===null&&(x=u),u=u.sibling;u=x,u===null?(x=a.child,a.child=null):(x=u.sibling,u.sibling=null),N1(a,!1,x,u,E,M);break;case"backwards":case"unstable_legacy-backwards":for(u=null,x=a.child,a.child=null;x!==null;){if(r=x.alternate,r!==null&&ws(r)===null){a.child=x;break}r=x.sibling,x.sibling=u,u=x,x=r}N1(a,!0,u,null,E,M);break;case"together":N1(a,!1,null,null,void 0,M);break;default:a.memoizedState=null}return a.child}function Os(r,a,u){if(r!==null&&(a.dependencies=r.dependencies),Io=-1,K0|=a.lanes,(u&a.childLanes)===0)if(r!==null){if(xc(r,a,u,!1),(u&a.childLanes)===0)return null}else return null;if(r!==null&&a.child!==r.child)throw Error("Resuming work not yet implemented.");if(a.child!==null){for(r=a.child,u=fs(r,r.pendingProps),a.child=u,u.return=a;r.sibling!==null;)r=r.sibling,u=u.sibling=fs(r,r.pendingProps),u.return=a;u.sibling=null}return a.child}function z1(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&Kh(r)))}function k4(r,a,u){switch(a.tag){case 3:Z(a,a.stateNode.containerInfo),ms(a,Li,r.memoizedState.cache),gu();break;case 27:case 5:we(a);break;case 4:Z(a,a.stateNode.containerInfo);break;case 10:ms(a,a.type,a.memoizedProps.value);break;case 12:(u&a.childLanes)!==0&&(a.flags|=4),a.flags|=2048;var g=a.stateNode;g.effectDuration=-0,g.passiveEffectDuration=-0;break;case 31:if(a.memoizedState!==null)return a.flags|=128,lp(a),null;break;case 13:if(g=a.memoizedState,g!==null)return g.dehydrated!==null?(la(a),a.flags|=128,null):(u&a.child.childLanes)!==0?X6(r,a,u):(la(a),r=Os(r,a,u),r!==null?r.sibling:null);la(a);break;case 19:var x=(r.flags&128)!==0;if(g=(u&a.childLanes)!==0,g||(xc(r,a,u,!1),g=(u&a.childLanes)!==0),x){if(g)return k1(r,a,u);a.flags|=128}if(x=a.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),Q(Ai,Ai.current,a),g)break;return null;case 22:return a.lanes=0,C1(r,a,u,a.pendingProps);case 24:ms(a,Li,r.memoizedState.cache)}return Os(r,a,u)}function I1(r,a,u){if(a._debugNeedsRemount&&r!==null){u=Mf(a.type,a.key,a.pendingProps,a._debugOwner||null,a.mode,a.lanes),u._debugStack=a._debugStack,u._debugTask=a._debugTask;var g=a.return;if(g===null)throw Error("Cannot swap the root fiber.");if(r.alternate=null,a.alternate=null,u.index=a.index,u.sibling=a.sibling,u.return=a.return,u.ref=a.ref,u._debugInfo=a._debugInfo,a===g.child)g.child=u;else{var x=g.child;if(x===null)throw Error("Expected parent to have a child.");for(;x.sibling!==a;)if(x=x.sibling,x===null)throw Error("Expected to find the previous sibling.");x.sibling=u}return a=g.deletions,a===null?(g.deletions=[r],g.flags|=16):a.push(r),u.flags|=2,u}if(r!==null)if(r.memoizedProps!==a.pendingProps||a.type!==r.type)ji=!0;else{if(!z1(r,u)&&(a.flags&128)===0)return ji=!1,k4(r,a,u);ji=(r.flags&131072)!==0}else ji=!1,(g=In)&&(gc(),g=(a.flags&1048576)!==0),g&&(g=a.index,gc(),a4(a,Qx,g));switch(a.lanes=0,a.tag){case 16:e:if(g=a.pendingProps,r=Oo(a.elementType),a.type=r,typeof r=="function")n1(r)?(g=Au(r,g),a.tag=1,a.type=r=mc(r),a=D4(null,a,r,g,u)):(a.tag=0,m0(a,r),a.type=r=mc(r),a=M1(null,a,r,g,u));else{if(r!=null){if(x=r.$$typeof,x===Nu){a.tag=11,a.type=r=t1(r),a=C4(null,a,r,g,u);break e}else if(x===ad){a.tag=14,a=O4(null,a,r,g,u);break e}}throw a="",r!==null&&typeof r=="object"&&r.$$typeof===si&&(a=" Did you wrap a component in React.lazy() more than once?"),u=ce(r)||r,Error("Element type is invalid. Received a promise that resolves to: "+u+". Lazy element type must resolve to a class or function."+a)}return a;case 0:return M1(r,a,a.type,a.pendingProps,u);case 1:return g=a.type,x=Au(g,a.pendingProps),D4(r,a,g,x,u);case 3:e:{if(Z(a,a.stateNode.containerInfo),r===null)throw Error("Should have a current fiber. This is a bug in React.");g=a.pendingProps;var E=a.memoizedState;x=E.element,Ja(r,a),_l(a,g,null,u);var M=a.memoizedState;if(g=M.cache,ms(a,Li,g),g!==E.cache&&bc(a,[Li],u,!0),Ss(),g=M.element,E.isDehydrated)if(E={element:g,isDehydrated:!1,cache:M.cache},a.updateQueue.baseState=E,a.memoizedState=E,a.flags&256){a=Cp(r,a,g,u);break e}else if(g!==x){x=Ta(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),a),ps(x),a=Cp(r,a,g,u);break e}else{switch(r=a.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(zr=_o(r.firstChild),Ia=a,In=!0,H0=null,$c=!1,Ul=null,Ws=!0,u=JI(a,null,g,u),a.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(gu(),g===x){a=Os(r,a,u);break e}Wi(r,a,g,u)}a=a.child}return a;case 26:return O1(r,a),r===null?(u=vx(a.type,null,a.pendingProps,null))?a.memoizedState=u:In||(u=a.type,r=a.pendingProps,g=oe(ll.current),g=Q1(g).createElement(u),g[na]=a,g[pa]=r,jn(g,u,r),vt(g),a.stateNode=g):a.memoizedState=vx(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return we(a),r===null&&In&&(g=oe(ll.current),x=de(),g=a.stateNode=Vl(a.type,a.pendingProps,g,x,!1),$c||(x=fx(g,a.type,a.pendingProps,x),x!==null&&(Rf(a,0).serverProps=x)),Ia=a,Ws=!0,x=zr,Du(a.type)?(uC=x,zr=_o(g.firstChild)):zr=x),Wi(r,a,a.pendingProps.children,u),O1(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&In&&(E=de(),g=Gg(a.type,E.ancestorInfo),x=zr,(M=!x)||(M=xE(x,a.type,a.pendingProps,Ws),M!==null?(a.stateNode=M,$c||(E=fx(M,a.type,a.pendingProps,E),E!==null&&(Rf(a,0).serverProps=E)),Ia=a,zr=_o(M.firstChild),Ws=!1,E=!0):E=!1,M=!E),M&&(g&&yc(a,x),mu(a))),we(a),x=a.type,E=a.pendingProps,M=r!==null?r.memoizedProps:null,g=E.children,Yp(x,E)?g=null:M!==null&&Yp(x,M)&&(a.flags|=32),a.memoizedState!==null&&(x=Wr(r,a,sp,null,null,u),R5._currentValue=x),O1(r,a),Wi(r,a,g,u),a.child;case 6:return r===null&&In&&(u=a.pendingProps,r=de(),g=r.ancestorInfo.current,u=g!=null?Wd(u,g.tag,r.ancestorInfo.implicitRootScope):!0,r=zr,(g=!r)||(g=ir(r,a.pendingProps,Ws),g!==null?(a.stateNode=g,Ia=a,zr=null,g=!0):g=!1,g=!g),g&&(u&&yc(a,r),mu(a))),null;case 13:return X6(r,a,u);case 4:return Z(a,a.stateNode.containerInfo),g=a.pendingProps,r===null?a.child=Am(a,null,g,u):Wi(r,a,g,u),a.child;case 11:return C4(r,a,a.type,a.pendingProps,u);case 7:return Wi(r,a,a.pendingProps,u),a.child;case 8:return Wi(r,a,a.pendingProps.children,u),a.child;case 12:return a.flags|=4,a.flags|=2048,g=a.stateNode,g.effectDuration=-0,g.passiveEffectDuration=-0,Wi(r,a,a.pendingProps.children,u),a.child;case 10:return g=a.type,x=a.pendingProps,E=x.value,"value"in x||AL||(AL=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),ms(a,g,E),Wi(r,a,x.children,u),a.child;case 9:return x=a.type._context,g=a.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."),Eo(a),x=br(x),g=OA(g,x,void 0),a.flags|=1,Wi(r,a,g,u),a.child;case 14:return O4(r,a,a.type,a.pendingProps,u);case 15:return M4(r,a,a.type,a.pendingProps,u);case 19:return k1(r,a,u);case 31:return Y6(r,a,u);case 22:return C1(r,a,u,a.pendingProps);case 24:return Eo(a),g=br(Li),r===null?(x=tp(),x===null&&(x=wr,E=f4(),x.pooledCache=E,Df(E),E!==null&&(x.pooledCacheLanes|=u),x=E),a.memoizedState={parent:g,cache:x},bs(a),ms(a,Li,x)):((r.lanes&u)!==0&&(Ja(r,a),_l(a,null,null,u),Ss()),x=r.memoizedState,E=a.memoizedState,x.parent!==g?(x={parent:g,cache:g},a.memoizedState=x,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=x),ms(a,Li,g)):(g=E.cache,ms(a,Li,g),g!==x.cache&&bc(a,[Li],u,!0))),Wi(r,a,a.pendingProps.children,u),a.child;case 29:throw a.pendingProps}throw Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Ms(r){r.flags|=4}function z4(r,a,u,g,x){if((a=(r.mode&dfe)!==Zt)&&(a=!1),a){if(r.flags|=16777216,(x&335544128)===x)if(r.stateNode.complete)r.flags|=8192;else if(q1())r.flags|=8192;else throw Tm=tw,RA}else r.flags&=-16777217}function L1(r,a){if(a.type!=="stylesheet"||(a.state.loading&eu)!==Lm)r.flags&=-16777217;else if(r.flags|=16777216,!oy(a))if(q1())r.flags|=8192;else throw Tm=tw,RA}function Rp(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?Ve():536870912,r.lanes|=a,_m|=a)}function g0(r,a){if(!In)switch(r.tailMode){case"hidden":a=r.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.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?a||r.tail===null?r.tail=null:r.tail.sibling=null:g.sibling=null}}function rr(r){var a=r.alternate!==null&&r.alternate.child===r.child,u=0,g=0;if(a)if((r.mode&xn)!==Zt){for(var x=r.selfBaseDuration,E=r.child;E!==null;)u|=E.lanes|E.childLanes,g|=E.subtreeFlags&65011712,g|=E.flags&65011712,x+=E.treeBaseDuration,E=E.sibling;r.treeBaseDuration=x}else for(x=r.child;x!==null;)u|=x.lanes|x.childLanes,g|=x.subtreeFlags&65011712,g|=x.flags&65011712,x.return=r,x=x.sibling;else if((r.mode&xn)!==Zt){x=r.actualDuration,E=r.selfBaseDuration;for(var M=r.child;M!==null;)u|=M.lanes|M.childLanes,g|=M.subtreeFlags,g|=M.flags,x+=M.actualDuration,E+=M.treeBaseDuration,M=M.sibling;r.actualDuration=x,r.treeBaseDuration=E}else for(x=r.child;x!==null;)u|=x.lanes|x.childLanes,g|=x.subtreeFlags,g|=x.flags,x.return=r,x=x.sibling;return r.subtreeFlags|=g,r.childLanes=u,a}function W6(r,a,u){var g=a.pendingProps;switch(o4(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rr(a),null;case 1:return rr(a),null;case 3:return u=a.stateNode,g=null,r!==null&&(g=r.memoizedState.cache),a.memoizedState.cache!==g&&(a.flags|=2048),gs(Li,a),ae(a),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(r===null||r.child===null)&&(_f(a)?(Qh(),Ms(a)):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,u4())),rr(a),null;case 26:var x=a.type,E=a.memoizedState;return r===null?(Ms(a),E!==null?(rr(a),L1(a,E)):(rr(a),z4(a,x,null,g,u))):E?E!==r.memoizedState?(Ms(a),rr(a),L1(a,E)):(rr(a),a.flags&=-16777217):(r=r.memoizedProps,r!==g&&Ms(a),rr(a),z4(a,x,r,g,u)),null;case 27:if(te(a),u=oe(ll.current),x=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==g&&Ms(a);else{if(!g){if(a.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 rr(a),null}r=de(),_f(a)?l4(a):(r=Vl(x,g,u,r,!0),a.stateNode=r,Ms(a))}return rr(a),null;case 5:if(te(a),x=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==g&&Ms(a);else{if(!g){if(a.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 rr(a),null}var M=de();if(_f(a))l4(a);else{switch(E=oe(ll.current),Gg(x,M.ancestorInfo),M=M.context,E=Q1(E),M){case av:E=E.createElementNS(Dn,x);break;case Ow:E=E.createElementNS(An,x);break;default:switch(x){case"svg":E=E.createElementNS(Dn,x);break;case"math":E=E.createElementNS(An,x);break;case"script":E=E.createElement("div"),E.innerHTML="<script><\/script>",E=E.removeChild(E.firstChild);break;case"select":E=typeof g.is=="string"?E.createElement("select",{is:g.is}):E.createElement("select"),g.multiple?E.multiple=!0:g.size&&(E.size=g.size);break;default:E=typeof g.is=="string"?E.createElement(x,{is:g.is}):E.createElement(x),x.indexOf("-")===-1&&(x!==x.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",x),Object.prototype.toString.call(E)!=="[object HTMLUnknownElement]"||jl.call(WL,x)||(WL[x]=!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.",x)))}}E[na]=a,E[pa]=g;e:for(M=a.child;M!==null;){if(M.tag===5||M.tag===6)E.appendChild(M.stateNode);else if(M.tag!==4&&M.tag!==27&&M.child!==null){M.child.return=M,M=M.child;continue}if(M===a)break e;for(;M.sibling===null;){if(M.return===null||M.return===a)break e;M=M.return}M.sibling.return=M.return,M=M.sibling}a.stateNode=E;e:switch(jn(E,x,g),x){case"button":case"input":case"select":case"textarea":g=!!g.autoFocus;break e;case"img":g=!0;break e;default:g=!1}g&&Ms(a)}}return rr(a),z4(a,a.type,r===null?null:r.memoizedProps,a.pendingProps,u),null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==g&&Ms(a);else{if(typeof g!="string"&&a.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=oe(ll.current),u=de(),_f(a)){if(r=a.stateNode,u=a.memoizedProps,x=!$c,g=null,E=Ia,E!==null)switch(E.tag){case 3:x&&(x=Wp(r,u,g),x!==null&&(Rf(a,0).serverProps=x));break;case 27:case 5:g=E.memoizedProps,x&&(x=Wp(r,u,g),x!==null&&(Rf(a,0).serverProps=x))}r[na]=a,r=!!(r.nodeValue===u||g!==null&&g.suppressHydrationWarning===!0||Gp(r.nodeValue,u)),r||mu(a,!0)}else x=u.ancestorInfo.current,x!=null&&Wd(g,x.tag,u.ancestorInfo.implicitRootScope),r=Q1(r).createTextNode(g),r[na]=a,a.stateNode=r}return rr(a),null;case 31:if(u=a.memoizedState,r===null||r.memoizedState!==null){if(g=_f(a),u!==null){if(r===null){if(!g)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");r[na]=a,rr(a),(a.mode&xn)!==Zt&&u!==null&&(r=a.child,r!==null&&(a.treeBaseDuration-=r.treeBaseDuration))}else Qh(),gu(),(a.flags&128)===0&&(u=a.memoizedState=null),a.flags|=4,rr(a),(a.mode&xn)!==Zt&&u!==null&&(r=a.child,r!==null&&(a.treeBaseDuration-=r.treeBaseDuration));r=!1}else u=u4(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=u),r=!0;if(!r)return a.flags&256?(sa(a),a):(sa(a),null);if((a.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return rr(a),null;case 13:if(g=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(x=g,E=_f(a),x!==null&&x.dehydrated!==null){if(r===null){if(!E)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(E=a.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");E[na]=a,rr(a),(a.mode&xn)!==Zt&&x!==null&&(x=a.child,x!==null&&(a.treeBaseDuration-=x.treeBaseDuration))}else Qh(),gu(),(a.flags&128)===0&&(x=a.memoizedState=null),a.flags|=4,rr(a),(a.mode&xn)!==Zt&&x!==null&&(x=a.child,x!==null&&(a.treeBaseDuration-=x.treeBaseDuration));x=!1}else x=u4(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=x),x=!0;if(!x)return a.flags&256?(sa(a),a):(sa(a),null)}return sa(a),(a.flags&128)!==0?(a.lanes=u,(a.mode&xn)!==Zt&&Ao(a),a):(u=g!==null,r=r!==null&&r.memoizedState!==null,u&&(g=a.child,x=null,g.alternate!==null&&g.alternate.memoizedState!==null&&g.alternate.memoizedState.cachePool!==null&&(x=g.alternate.memoizedState.cachePool.pool),E=null,g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(E=g.memoizedState.cachePool.pool),E!==x&&(g.flags|=2048)),u!==r&&u&&(a.child.flags|=8192),Rp(a,a.updateQueue),rr(a),(a.mode&xn)!==Zt&&u&&(r=a.child,r!==null&&(a.treeBaseDuration-=r.treeBaseDuration)),null);case 4:return ae(a),r===null&&Hp(a.stateNode.containerInfo),rr(a),null;case 10:return gs(a.type,a),rr(a),null;case 19:if(le(Ai,a),g=a.memoizedState,g===null)return rr(a),null;if(x=(a.flags&128)!==0,E=g.rendering,E===null)if(x)g0(g,!1);else{if(ti!==Sd||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(E=ws(r),E!==null){for(a.flags|=128,g0(g,!1),r=E.updateQueue,a.updateQueue=r,Rp(a,r),a.subtreeFlags=0,r=u,u=a.child;u!==null;)e0(u,r),u=u.sibling;return Q(Ai,Ai.current&Yy|f5,a),In&&hs(a,g.treeForkCount),a.child}r=r.sibling}g.tail!==null&&Jr()>pw&&(a.flags|=128,x=!0,g0(g,!1),a.lanes=4194304)}else{if(!x)if(r=ws(E),r!==null){if(a.flags|=128,x=!0,r=r.updateQueue,a.updateQueue=r,Rp(a,r),g0(g,!0),g.tail===null&&g.tailMode==="hidden"&&!E.alternate&&!In)return rr(a),null}else 2*Jr()-g.renderingStartTime>pw&&u!==536870912&&(a.flags|=128,x=!0,g0(g,!1),a.lanes=4194304);g.isBackwards?(E.sibling=a.child,a.child=E):(r=g.last,r!==null?r.sibling=E:a.child=E,g.last=E)}return g.tail!==null?(r=g.tail,g.rendering=r,g.tail=r.sibling,g.renderingStartTime=Jr(),r.sibling=null,u=Ai.current,u=x?u&Yy|f5:u&Yy,Q(Ai,u,a),In&&hs(a,g.treeForkCount),r):(rr(a),null);case 22:case 23:return sa(a),Es(a),g=a.memoizedState!==null,r!==null?r.memoizedState!==null!==g&&(a.flags|=8192):g&&(a.flags|=8192),g?(u&536870912)!==0&&(a.flags&128)===0&&(rr(a),a.subtreeFlags&6&&(a.flags|=8192)):rr(a),u=a.updateQueue,u!==null&&Rp(a,u.retryQueue),u=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),g=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(g=a.memoizedState.cachePool.pool),g!==u&&(a.flags|=2048),r!==null&&le(Em,a),null;case 24:return u=null,r!==null&&(u=r.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),gs(Li,a),rr(a),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Q6(r,a){switch(o4(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,(a.mode&xn)!==Zt&&Ao(a),a):null;case 3:return gs(Li,a),ae(a),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return te(a),null;case 31:if(a.memoizedState!==null){if(sa(a),a.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");gu()}return r=a.flags,r&65536?(a.flags=r&-65537|128,(a.mode&xn)!==Zt&&Ao(a),a):null;case 13:if(sa(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");gu()}return r=a.flags,r&65536?(a.flags=r&-65537|128,(a.mode&xn)!==Zt&&Ao(a),a):null;case 19:return le(Ai,a),null;case 4:return ae(a),null;case 10:return gs(a.type,a),null;case 22:case 23:return sa(a),Es(a),r!==null&&le(Em,a),r=a.flags,r&65536?(a.flags=r&-65537|128,(a.mode&xn)!==Zt&&Ao(a),a):null;case 24:return gs(Li,a),null;case 25:return null;default:return null}}function K6(r,a){switch(o4(a),a.tag){case 3:gs(Li,a),ae(a);break;case 26:case 27:case 5:te(a);break;case 4:ae(a);break;case 31:a.memoizedState!==null&&sa(a);break;case 13:sa(a);break;case 19:le(Ai,a);break;case 10:gs(a.type,a);break;case 22:case 23:sa(a),Es(a),r!==null&&le(Em,a);break;case 24:gs(Li,a)}}function Rs(r){return(r.mode&xn)!==Zt}function I4(r,a){Rs(r)?(Ko(),Gf(a,r),ys()):Gf(a,r)}function qf(r,a,u){Rs(r)?(Ko(),Cu(u,r,a),ys()):Cu(u,r,a)}function Gf(r,a){try{var u=a.updateQueue,g=u!==null?u.lastEffect:null;if(g!==null){var x=g.next;u=x;do{if((u.tag&r)===r&&(g=void 0,(r&Lo)!==rw&&(nv=!0),g=Be(a,vfe,u),(r&Lo)!==rw&&(nv=!1),g!==void 0&&typeof g!="function")){var E=void 0;E=(u.tag&Hl)!==0?"useLayoutEffect":(u.tag&Lo)!==0?"useInsertionEffect":"useEffect";var M=void 0;M=g===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof g.then=="function"?`
|
|
233
|
+
%s.childContextTypes = ...`,a.displayName||a.name||"Component"),typeof a.getDerivedStateFromProps=="function"&&(r=ce(a)||"Unknown",wL[r]||(console.error("%s: Function components do not support getDerivedStateFromProps.",r),wL[r]=!0)),typeof a.contextType=="object"&&a.contextType!==null&&(a=ce(a)||"Unknown",SL[a]||(console.error("%s: Function components do not support contextType.",a),SL[a]=!0))}function R1(r){return{baseLanes:r,cachePool:l1()}}function Op(r,a,u){return r=r!==null?r.childLanes&~u:0,a&&(r|=hl),r}function X6(r,a,u){var g,x=a.pendingProps;c(a)&&(a.flags|=128);var E=!1,M=(a.flags&128)!==0;if((g=M)||(g=r!==null&&r.memoizedState===null?!1:(Ai.current&f5)!==0),g&&(E=!0,a.flags&=-129),g=(a.flags&32)!==0,a.flags&=-33,r===null){if(In){if(E?la(a):Ro(a),(r=zr)?(u=ey(r,Ws),u=u!==null&&u.data!==km?u:null,u!==null&&(g={dehydrated:u,treeContext:$6(),retryLane:536870912,hydrationErrors:null},a.memoizedState=g,g=i4(u),g.return=a,a.child=g,Ia=a,zr=null)):u=null,u===null)throw yc(a,r),mu(a);return ty(u)?a.lanes=32:a.lanes=536870912,null}var D=x.children;if(x=x.fallback,E){Ro(a);var q=a.mode;return D=Mp({mode:"hidden",children:D},q),x=ds(x,q,u,null),D.return=a,x.return=a,D.sibling=x,a.child=D,x=a.child,x.memoizedState=R1(u),x.childLanes=Op(r,g,u),a.memoizedState=PA,p0(null,x)}return la(a),_1(a,D)}var K=r.memoizedState;if(K!==null){var Ee=K.dehydrated;if(Ee!==null){if(M)a.flags&256?(la(a),a.flags&=-257,a=D1(r,a,u)):a.memoizedState!==null?(Ro(a),a.child=r.child,a.flags|=128,a=null):(Ro(a),D=x.fallback,q=a.mode,x=Mp({mode:"visible",children:x.children},q),D=ds(D,q,u,null),D.flags|=2,x.return=a,D.return=a,x.sibling=D,a.child=x,Am(a,r.child,null,u),x=a.child,x.memoizedState=R1(u),x.childLanes=Op(r,g,u),a.memoizedState=PA,a=p0(null,x));else if(la(a),Xa(),(u&536870912)!==0&&S0(a),ty(Ee)){if(g=Ee.nextSibling&&Ee.nextSibling.dataset,g){D=g.dgst;var Ae=g.msg;q=g.stck;var ge=g.cstck}E=Ae,g=D,x=q,Ee=ge,D=E,q=Ee,D=Error(D||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),D.stack=x||"",D.digest=g,g=q===void 0?null:q,x={value:D,source:null,stack:g},typeof g=="string"&&bA.set(D,x),ps(x),a=D1(r,a,u)}else if(ji||xc(r,a,u,!1),g=(u&r.childLanes)!==0,ji||g){if(g=wr,g!==null&&(x=kt(g,u),x!==0&&x!==K.retryLane))throw K.retryLane=x,Fi(r,x),Br(g,r,x),jA;mx(Ee)||Qf(),a=D1(r,a,u)}else mx(Ee)?(a.flags|=192,a.child=r.child,a=null):(r=K.treeContext,zr=_o(Ee.nextSibling),Ia=a,In=!0,H0=null,$c=!1,Ul=null,Ws=!1,r!==null&&H6(a,r),a=_1(a,x.children),a.flags|=4096);return a}}return E?(Ro(a),D=x.fallback,q=a.mode,ge=r.child,Ee=ge.sibling,x=fs(ge,{mode:"hidden",children:x.children}),x.subtreeFlags=ge.subtreeFlags&65011712,Ee!==null?D=fs(Ee,D):(D=ds(D,q,u,null),D.flags|=2),D.return=a,x.return=a,x.sibling=D,a.child=x,p0(null,x),x=a.child,D=r.child.memoizedState,D===null?D=R1(u):(q=D.cachePool,q!==null?(ge=Li._currentValue,q=q.parent!==ge?{parent:ge,pool:ge}:q):q=l1(),D={baseLanes:D.baseLanes|u,cachePool:q}),x.memoizedState=D,x.childLanes=Op(r,g,u),a.memoizedState=PA,p0(r.child,x)):(K!==null&&(u&62914560)===u&&(u&r.lanes)!==0&&S0(a),la(a),u=r.child,r=u.sibling,u=fs(u,{mode:"visible",children:x.children}),u.return=a,u.sibling=null,r!==null&&(g=a.deletions,g===null?(a.deletions=[r],a.flags|=16):g.push(r)),a.child=u,a.memoizedState=null,u)}function _1(r,a){return a=Mp({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function Mp(r,a){return r=w(22,r,null,a),r.lanes=0,r}function D1(r,a,u){return Am(a,r.child,null,u),r=_1(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function N4(r,a,u){r.lanes|=a;var g=r.alternate;g!==null&&(g.lanes|=a),yu(r.return,a,u)}function N1(r,a,u,g,x,E){var M=r.memoizedState;M===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:g,tail:u,tailMode:x,treeForkCount:E}:(M.isBackwards=a,M.rendering=null,M.renderingStartTime=0,M.last=g,M.tail=u,M.tailMode=x,M.treeForkCount=E)}function k1(r,a,u){var g=a.pendingProps,x=g.revealOrder,E=g.tail,M=g.children,D=Ai.current;if((g=(D&f5)!==0)?(D=D&Yy|f5,a.flags|=128):D&=Yy,Q(Ai,D,a),D=x??"null",x!=="forwards"&&x!=="unstable_legacy-backwards"&&x!=="together"&&x!=="independent"&&!TL[D])if(TL[D]=!0,x==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(x==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof x=="string")switch(x.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',x,x.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.',x,x.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',x)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',x);D=E??"null",lw[D]||(E==null?(x==="forwards"||x==="backwards"||x==="unstable_legacy-backwards")&&(lw[D]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):E!=="visible"&&E!=="collapsed"&&E!=="hidden"?(lw[D]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',E)):x!=="forwards"&&x!=="backwards"&&x!=="unstable_legacy-backwards"&&(lw[D]=!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((x==="forwards"||x==="backwards"||x==="unstable_legacy-backwards")&&M!==void 0&&M!==null&&M!==!1)if(wi(M)){for(D=0;D<M.length;D++)if(!kn(M[D],D))break e}else if(D=se(M),typeof D=="function"){if(D=D.call(M))for(var q=D.next(),K=0;!q.done;q=D.next()){if(!kn(q.value,K))break e;K++}}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?',x);if(Wi(r,a,M,u),In?(gc(),M=Qx):M=0,!g&&r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&N4(r,u,a);else if(r.tag===19)N4(r,u,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(x){case"forwards":for(u=a.child,x=null;u!==null;)r=u.alternate,r!==null&&ws(r)===null&&(x=u),u=u.sibling;u=x,u===null?(x=a.child,a.child=null):(x=u.sibling,u.sibling=null),N1(a,!1,x,u,E,M);break;case"backwards":case"unstable_legacy-backwards":for(u=null,x=a.child,a.child=null;x!==null;){if(r=x.alternate,r!==null&&ws(r)===null){a.child=x;break}r=x.sibling,x.sibling=u,u=x,x=r}N1(a,!0,u,null,E,M);break;case"together":N1(a,!1,null,null,void 0,M);break;default:a.memoizedState=null}return a.child}function Os(r,a,u){if(r!==null&&(a.dependencies=r.dependencies),Io=-1,K0|=a.lanes,(u&a.childLanes)===0)if(r!==null){if(xc(r,a,u,!1),(u&a.childLanes)===0)return null}else return null;if(r!==null&&a.child!==r.child)throw Error("Resuming work not yet implemented.");if(a.child!==null){for(r=a.child,u=fs(r,r.pendingProps),a.child=u,u.return=a;r.sibling!==null;)r=r.sibling,u=u.sibling=fs(r,r.pendingProps),u.return=a;u.sibling=null}return a.child}function z1(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&Kh(r)))}function k4(r,a,u){switch(a.tag){case 3:Z(a,a.stateNode.containerInfo),ms(a,Li,r.memoizedState.cache),gu();break;case 27:case 5:we(a);break;case 4:Z(a,a.stateNode.containerInfo);break;case 10:ms(a,a.type,a.memoizedProps.value);break;case 12:(u&a.childLanes)!==0&&(a.flags|=4),a.flags|=2048;var g=a.stateNode;g.effectDuration=-0,g.passiveEffectDuration=-0;break;case 31:if(a.memoizedState!==null)return a.flags|=128,lp(a),null;break;case 13:if(g=a.memoizedState,g!==null)return g.dehydrated!==null?(la(a),a.flags|=128,null):(u&a.child.childLanes)!==0?X6(r,a,u):(la(a),r=Os(r,a,u),r!==null?r.sibling:null);la(a);break;case 19:var x=(r.flags&128)!==0;if(g=(u&a.childLanes)!==0,g||(xc(r,a,u,!1),g=(u&a.childLanes)!==0),x){if(g)return k1(r,a,u);a.flags|=128}if(x=a.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),Q(Ai,Ai.current,a),g)break;return null;case 22:return a.lanes=0,C1(r,a,u,a.pendingProps);case 24:ms(a,Li,r.memoizedState.cache)}return Os(r,a,u)}function I1(r,a,u){if(a._debugNeedsRemount&&r!==null){u=Mf(a.type,a.key,a.pendingProps,a._debugOwner||null,a.mode,a.lanes),u._debugStack=a._debugStack,u._debugTask=a._debugTask;var g=a.return;if(g===null)throw Error("Cannot swap the root fiber.");if(r.alternate=null,a.alternate=null,u.index=a.index,u.sibling=a.sibling,u.return=a.return,u.ref=a.ref,u._debugInfo=a._debugInfo,a===g.child)g.child=u;else{var x=g.child;if(x===null)throw Error("Expected parent to have a child.");for(;x.sibling!==a;)if(x=x.sibling,x===null)throw Error("Expected to find the previous sibling.");x.sibling=u}return a=g.deletions,a===null?(g.deletions=[r],g.flags|=16):a.push(r),u.flags|=2,u}if(r!==null)if(r.memoizedProps!==a.pendingProps||a.type!==r.type)ji=!0;else{if(!z1(r,u)&&(a.flags&128)===0)return ji=!1,k4(r,a,u);ji=(r.flags&131072)!==0}else ji=!1,(g=In)&&(gc(),g=(a.flags&1048576)!==0),g&&(g=a.index,gc(),a4(a,Qx,g));switch(a.lanes=0,a.tag){case 16:e:if(g=a.pendingProps,r=Oo(a.elementType),a.type=r,typeof r=="function")n1(r)?(g=Au(r,g),a.tag=1,a.type=r=mc(r),a=D4(null,a,r,g,u)):(a.tag=0,m0(a,r),a.type=r=mc(r),a=M1(null,a,r,g,u));else{if(r!=null){if(x=r.$$typeof,x===Nu){a.tag=11,a.type=r=t1(r),a=C4(null,a,r,g,u);break e}else if(x===ad){a.tag=14,a=O4(null,a,r,g,u);break e}}throw a="",r!==null&&typeof r=="object"&&r.$$typeof===si&&(a=" Did you wrap a component in React.lazy() more than once?"),u=ce(r)||r,Error("Element type is invalid. Received a promise that resolves to: "+u+". Lazy element type must resolve to a class or function."+a)}return a;case 0:return M1(r,a,a.type,a.pendingProps,u);case 1:return g=a.type,x=Au(g,a.pendingProps),D4(r,a,g,x,u);case 3:e:{if(Z(a,a.stateNode.containerInfo),r===null)throw Error("Should have a current fiber. This is a bug in React.");g=a.pendingProps;var E=a.memoizedState;x=E.element,Ja(r,a),_l(a,g,null,u);var M=a.memoizedState;if(g=M.cache,ms(a,Li,g),g!==E.cache&&bc(a,[Li],u,!0),Ss(),g=M.element,E.isDehydrated)if(E={element:g,isDehydrated:!1,cache:M.cache},a.updateQueue.baseState=E,a.memoizedState=E,a.flags&256){a=Cp(r,a,g,u);break e}else if(g!==x){x=Ta(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),a),ps(x),a=Cp(r,a,g,u);break e}else{switch(r=a.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(zr=_o(r.firstChild),Ia=a,In=!0,H0=null,$c=!1,Ul=null,Ws=!0,u=JI(a,null,g,u),a.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(gu(),g===x){a=Os(r,a,u);break e}Wi(r,a,g,u)}a=a.child}return a;case 26:return O1(r,a),r===null?(u=vx(a.type,null,a.pendingProps,null))?a.memoizedState=u:In||(u=a.type,r=a.pendingProps,g=oe(ll.current),g=Q1(g).createElement(u),g[na]=a,g[pa]=r,jn(g,u,r),vt(g),a.stateNode=g):a.memoizedState=vx(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return we(a),r===null&&In&&(g=oe(ll.current),x=de(),g=a.stateNode=Vl(a.type,a.pendingProps,g,x,!1),$c||(x=fx(g,a.type,a.pendingProps,x),x!==null&&(Rf(a,0).serverProps=x)),Ia=a,Ws=!0,x=zr,Du(a.type)?(uC=x,zr=_o(g.firstChild)):zr=x),Wi(r,a,a.pendingProps.children,u),O1(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&In&&(E=de(),g=Gg(a.type,E.ancestorInfo),x=zr,(M=!x)||(M=xE(x,a.type,a.pendingProps,Ws),M!==null?(a.stateNode=M,$c||(E=fx(M,a.type,a.pendingProps,E),E!==null&&(Rf(a,0).serverProps=E)),Ia=a,zr=_o(M.firstChild),Ws=!1,E=!0):E=!1,M=!E),M&&(g&&yc(a,x),mu(a))),we(a),x=a.type,E=a.pendingProps,M=r!==null?r.memoizedProps:null,g=E.children,Yp(x,E)?g=null:M!==null&&Yp(x,M)&&(a.flags|=32),a.memoizedState!==null&&(x=Wr(r,a,sp,null,null,u),R5._currentValue=x),O1(r,a),Wi(r,a,g,u),a.child;case 6:return r===null&&In&&(u=a.pendingProps,r=de(),g=r.ancestorInfo.current,u=g!=null?Wd(u,g.tag,r.ancestorInfo.implicitRootScope):!0,r=zr,(g=!r)||(g=ir(r,a.pendingProps,Ws),g!==null?(a.stateNode=g,Ia=a,zr=null,g=!0):g=!1,g=!g),g&&(u&&yc(a,r),mu(a))),null;case 13:return X6(r,a,u);case 4:return Z(a,a.stateNode.containerInfo),g=a.pendingProps,r===null?a.child=Am(a,null,g,u):Wi(r,a,g,u),a.child;case 11:return C4(r,a,a.type,a.pendingProps,u);case 7:return Wi(r,a,a.pendingProps,u),a.child;case 8:return Wi(r,a,a.pendingProps.children,u),a.child;case 12:return a.flags|=4,a.flags|=2048,g=a.stateNode,g.effectDuration=-0,g.passiveEffectDuration=-0,Wi(r,a,a.pendingProps.children,u),a.child;case 10:return g=a.type,x=a.pendingProps,E=x.value,"value"in x||AL||(AL=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),ms(a,g,E),Wi(r,a,x.children,u),a.child;case 9:return x=a.type._context,g=a.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."),Eo(a),x=br(x),g=OA(g,x,void 0),a.flags|=1,Wi(r,a,g,u),a.child;case 14:return O4(r,a,a.type,a.pendingProps,u);case 15:return M4(r,a,a.type,a.pendingProps,u);case 19:return k1(r,a,u);case 31:return Y6(r,a,u);case 22:return C1(r,a,u,a.pendingProps);case 24:return Eo(a),g=br(Li),r===null?(x=tp(),x===null&&(x=wr,E=f4(),x.pooledCache=E,Df(E),E!==null&&(x.pooledCacheLanes|=u),x=E),a.memoizedState={parent:g,cache:x},bs(a),ms(a,Li,x)):((r.lanes&u)!==0&&(Ja(r,a),_l(a,null,null,u),Ss()),x=r.memoizedState,E=a.memoizedState,x.parent!==g?(x={parent:g,cache:g},a.memoizedState=x,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=x),ms(a,Li,g)):(g=E.cache,ms(a,Li,g),g!==x.cache&&bc(a,[Li],u,!0))),Wi(r,a,a.pendingProps.children,u),a.child;case 29:throw a.pendingProps}throw Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Ms(r){r.flags|=4}function z4(r,a,u,g,x){if((a=(r.mode&dfe)!==Zt)&&(a=!1),a){if(r.flags|=16777216,(x&335544128)===x)if(r.stateNode.complete)r.flags|=8192;else if(q1())r.flags|=8192;else throw Tm=tw,RA}else r.flags&=-16777217}function L1(r,a){if(a.type!=="stylesheet"||(a.state.loading&eu)!==Lm)r.flags&=-16777217;else if(r.flags|=16777216,!oy(a))if(q1())r.flags|=8192;else throw Tm=tw,RA}function Rp(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?Ve():536870912,r.lanes|=a,_m|=a)}function g0(r,a){if(!In)switch(r.tailMode){case"hidden":a=r.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.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?a||r.tail===null?r.tail=null:r.tail.sibling=null:g.sibling=null}}function rr(r){var a=r.alternate!==null&&r.alternate.child===r.child,u=0,g=0;if(a)if((r.mode&xn)!==Zt){for(var x=r.selfBaseDuration,E=r.child;E!==null;)u|=E.lanes|E.childLanes,g|=E.subtreeFlags&65011712,g|=E.flags&65011712,x+=E.treeBaseDuration,E=E.sibling;r.treeBaseDuration=x}else for(x=r.child;x!==null;)u|=x.lanes|x.childLanes,g|=x.subtreeFlags&65011712,g|=x.flags&65011712,x.return=r,x=x.sibling;else if((r.mode&xn)!==Zt){x=r.actualDuration,E=r.selfBaseDuration;for(var M=r.child;M!==null;)u|=M.lanes|M.childLanes,g|=M.subtreeFlags,g|=M.flags,x+=M.actualDuration,E+=M.treeBaseDuration,M=M.sibling;r.actualDuration=x,r.treeBaseDuration=E}else for(x=r.child;x!==null;)u|=x.lanes|x.childLanes,g|=x.subtreeFlags,g|=x.flags,x.return=r,x=x.sibling;return r.subtreeFlags|=g,r.childLanes=u,a}function W6(r,a,u){var g=a.pendingProps;switch(o4(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rr(a),null;case 1:return rr(a),null;case 3:return u=a.stateNode,g=null,r!==null&&(g=r.memoizedState.cache),a.memoizedState.cache!==g&&(a.flags|=2048),gs(Li,a),ae(a),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(r===null||r.child===null)&&(_f(a)?(Qh(),Ms(a)):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,u4())),rr(a),null;case 26:var x=a.type,E=a.memoizedState;return r===null?(Ms(a),E!==null?(rr(a),L1(a,E)):(rr(a),z4(a,x,null,g,u))):E?E!==r.memoizedState?(Ms(a),rr(a),L1(a,E)):(rr(a),a.flags&=-16777217):(r=r.memoizedProps,r!==g&&Ms(a),rr(a),z4(a,x,r,g,u)),null;case 27:if(te(a),u=oe(ll.current),x=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==g&&Ms(a);else{if(!g){if(a.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 rr(a),null}r=de(),_f(a)?l4(a):(r=Vl(x,g,u,r,!0),a.stateNode=r,Ms(a))}return rr(a),null;case 5:if(te(a),x=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==g&&Ms(a);else{if(!g){if(a.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 rr(a),null}var M=de();if(_f(a))l4(a);else{switch(E=oe(ll.current),Gg(x,M.ancestorInfo),M=M.context,E=Q1(E),M){case av:E=E.createElementNS(Dn,x);break;case Ow:E=E.createElementNS(Cn,x);break;default:switch(x){case"svg":E=E.createElementNS(Dn,x);break;case"math":E=E.createElementNS(Cn,x);break;case"script":E=E.createElement("div"),E.innerHTML="<script><\/script>",E=E.removeChild(E.firstChild);break;case"select":E=typeof g.is=="string"?E.createElement("select",{is:g.is}):E.createElement("select"),g.multiple?E.multiple=!0:g.size&&(E.size=g.size);break;default:E=typeof g.is=="string"?E.createElement(x,{is:g.is}):E.createElement(x),x.indexOf("-")===-1&&(x!==x.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",x),Object.prototype.toString.call(E)!=="[object HTMLUnknownElement]"||jl.call(WL,x)||(WL[x]=!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.",x)))}}E[na]=a,E[pa]=g;e:for(M=a.child;M!==null;){if(M.tag===5||M.tag===6)E.appendChild(M.stateNode);else if(M.tag!==4&&M.tag!==27&&M.child!==null){M.child.return=M,M=M.child;continue}if(M===a)break e;for(;M.sibling===null;){if(M.return===null||M.return===a)break e;M=M.return}M.sibling.return=M.return,M=M.sibling}a.stateNode=E;e:switch(jn(E,x,g),x){case"button":case"input":case"select":case"textarea":g=!!g.autoFocus;break e;case"img":g=!0;break e;default:g=!1}g&&Ms(a)}}return rr(a),z4(a,a.type,r===null?null:r.memoizedProps,a.pendingProps,u),null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==g&&Ms(a);else{if(typeof g!="string"&&a.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=oe(ll.current),u=de(),_f(a)){if(r=a.stateNode,u=a.memoizedProps,x=!$c,g=null,E=Ia,E!==null)switch(E.tag){case 3:x&&(x=Wp(r,u,g),x!==null&&(Rf(a,0).serverProps=x));break;case 27:case 5:g=E.memoizedProps,x&&(x=Wp(r,u,g),x!==null&&(Rf(a,0).serverProps=x))}r[na]=a,r=!!(r.nodeValue===u||g!==null&&g.suppressHydrationWarning===!0||Gp(r.nodeValue,u)),r||mu(a,!0)}else x=u.ancestorInfo.current,x!=null&&Wd(g,x.tag,u.ancestorInfo.implicitRootScope),r=Q1(r).createTextNode(g),r[na]=a,a.stateNode=r}return rr(a),null;case 31:if(u=a.memoizedState,r===null||r.memoizedState!==null){if(g=_f(a),u!==null){if(r===null){if(!g)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");r[na]=a,rr(a),(a.mode&xn)!==Zt&&u!==null&&(r=a.child,r!==null&&(a.treeBaseDuration-=r.treeBaseDuration))}else Qh(),gu(),(a.flags&128)===0&&(u=a.memoizedState=null),a.flags|=4,rr(a),(a.mode&xn)!==Zt&&u!==null&&(r=a.child,r!==null&&(a.treeBaseDuration-=r.treeBaseDuration));r=!1}else u=u4(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=u),r=!0;if(!r)return a.flags&256?(sa(a),a):(sa(a),null);if((a.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return rr(a),null;case 13:if(g=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(x=g,E=_f(a),x!==null&&x.dehydrated!==null){if(r===null){if(!E)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(E=a.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");E[na]=a,rr(a),(a.mode&xn)!==Zt&&x!==null&&(x=a.child,x!==null&&(a.treeBaseDuration-=x.treeBaseDuration))}else Qh(),gu(),(a.flags&128)===0&&(x=a.memoizedState=null),a.flags|=4,rr(a),(a.mode&xn)!==Zt&&x!==null&&(x=a.child,x!==null&&(a.treeBaseDuration-=x.treeBaseDuration));x=!1}else x=u4(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=x),x=!0;if(!x)return a.flags&256?(sa(a),a):(sa(a),null)}return sa(a),(a.flags&128)!==0?(a.lanes=u,(a.mode&xn)!==Zt&&Ao(a),a):(u=g!==null,r=r!==null&&r.memoizedState!==null,u&&(g=a.child,x=null,g.alternate!==null&&g.alternate.memoizedState!==null&&g.alternate.memoizedState.cachePool!==null&&(x=g.alternate.memoizedState.cachePool.pool),E=null,g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(E=g.memoizedState.cachePool.pool),E!==x&&(g.flags|=2048)),u!==r&&u&&(a.child.flags|=8192),Rp(a,a.updateQueue),rr(a),(a.mode&xn)!==Zt&&u&&(r=a.child,r!==null&&(a.treeBaseDuration-=r.treeBaseDuration)),null);case 4:return ae(a),r===null&&Hp(a.stateNode.containerInfo),rr(a),null;case 10:return gs(a.type,a),rr(a),null;case 19:if(le(Ai,a),g=a.memoizedState,g===null)return rr(a),null;if(x=(a.flags&128)!==0,E=g.rendering,E===null)if(x)g0(g,!1);else{if(ti!==Sd||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(E=ws(r),E!==null){for(a.flags|=128,g0(g,!1),r=E.updateQueue,a.updateQueue=r,Rp(a,r),a.subtreeFlags=0,r=u,u=a.child;u!==null;)e0(u,r),u=u.sibling;return Q(Ai,Ai.current&Yy|f5,a),In&&hs(a,g.treeForkCount),a.child}r=r.sibling}g.tail!==null&&Jr()>pw&&(a.flags|=128,x=!0,g0(g,!1),a.lanes=4194304)}else{if(!x)if(r=ws(E),r!==null){if(a.flags|=128,x=!0,r=r.updateQueue,a.updateQueue=r,Rp(a,r),g0(g,!0),g.tail===null&&g.tailMode==="hidden"&&!E.alternate&&!In)return rr(a),null}else 2*Jr()-g.renderingStartTime>pw&&u!==536870912&&(a.flags|=128,x=!0,g0(g,!1),a.lanes=4194304);g.isBackwards?(E.sibling=a.child,a.child=E):(r=g.last,r!==null?r.sibling=E:a.child=E,g.last=E)}return g.tail!==null?(r=g.tail,g.rendering=r,g.tail=r.sibling,g.renderingStartTime=Jr(),r.sibling=null,u=Ai.current,u=x?u&Yy|f5:u&Yy,Q(Ai,u,a),In&&hs(a,g.treeForkCount),r):(rr(a),null);case 22:case 23:return sa(a),Es(a),g=a.memoizedState!==null,r!==null?r.memoizedState!==null!==g&&(a.flags|=8192):g&&(a.flags|=8192),g?(u&536870912)!==0&&(a.flags&128)===0&&(rr(a),a.subtreeFlags&6&&(a.flags|=8192)):rr(a),u=a.updateQueue,u!==null&&Rp(a,u.retryQueue),u=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),g=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(g=a.memoizedState.cachePool.pool),g!==u&&(a.flags|=2048),r!==null&&le(Em,a),null;case 24:return u=null,r!==null&&(u=r.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),gs(Li,a),rr(a),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Q6(r,a){switch(o4(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,(a.mode&xn)!==Zt&&Ao(a),a):null;case 3:return gs(Li,a),ae(a),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return te(a),null;case 31:if(a.memoizedState!==null){if(sa(a),a.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");gu()}return r=a.flags,r&65536?(a.flags=r&-65537|128,(a.mode&xn)!==Zt&&Ao(a),a):null;case 13:if(sa(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");gu()}return r=a.flags,r&65536?(a.flags=r&-65537|128,(a.mode&xn)!==Zt&&Ao(a),a):null;case 19:return le(Ai,a),null;case 4:return ae(a),null;case 10:return gs(a.type,a),null;case 22:case 23:return sa(a),Es(a),r!==null&&le(Em,a),r=a.flags,r&65536?(a.flags=r&-65537|128,(a.mode&xn)!==Zt&&Ao(a),a):null;case 24:return gs(Li,a),null;case 25:return null;default:return null}}function K6(r,a){switch(o4(a),a.tag){case 3:gs(Li,a),ae(a);break;case 26:case 27:case 5:te(a);break;case 4:ae(a);break;case 31:a.memoizedState!==null&&sa(a);break;case 13:sa(a);break;case 19:le(Ai,a);break;case 10:gs(a.type,a);break;case 22:case 23:sa(a),Es(a),r!==null&&le(Em,a);break;case 24:gs(Li,a)}}function Rs(r){return(r.mode&xn)!==Zt}function I4(r,a){Rs(r)?(Ko(),Gf(a,r),ys()):Gf(a,r)}function qf(r,a,u){Rs(r)?(Ko(),Cu(u,r,a),ys()):Cu(u,r,a)}function Gf(r,a){try{var u=a.updateQueue,g=u!==null?u.lastEffect:null;if(g!==null){var x=g.next;u=x;do{if((u.tag&r)===r&&(g=void 0,(r&Lo)!==rw&&(nv=!0),g=Be(a,vfe,u),(r&Lo)!==rw&&(nv=!1),g!==void 0&&typeof g!="function")){var E=void 0;E=(u.tag&Hl)!==0?"useLayoutEffect":(u.tag&Lo)!==0?"useInsertionEffect":"useEffect";var M=void 0;M=g===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof g.then=="function"?`
|
|
234
234
|
|
|
235
235
|
It looks like you wrote `+E+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
236
236
|
|
|
@@ -243,7 +243,7 @@ It looks like you wrote `+E+`(async () => ...) or returned a Promise. Instead, w
|
|
|
243
243
|
fetchData();
|
|
244
244
|
}, [someId]); // Or [] if effect doesn't need props or state
|
|
245
245
|
|
|
246
|
-
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+g,Be(a,function(D,q){console.error("%s must not return anything besides a function, which is used for clean-up.%s",D,q)},E,M)}u=u.next}while(u!==x)}}catch(D){Yn(a,a.return,D)}}function Cu(r,a,u){try{var g=a.updateQueue,x=g!==null?g.lastEffect:null;if(x!==null){var E=x.next;g=E;do{if((g.tag&r)===r){var M=g.inst,D=M.destroy;D!==void 0&&(M.destroy=void 0,(r&Lo)!==rw&&(nv=!0),x=a,Be(x,bfe,x,u,D),(r&Lo)!==rw&&(nv=!1))}g=g.next}while(g!==E)}}catch(q){Yn(a,a.return,q)}}function L4(r,a){Rs(r)?(Ko(),Gf(a,r),ys()):Gf(a,r)}function V1(r,a,u){Rs(r)?(Ko(),Cu(u,r,a),ys()):Cu(u,r,a)}function y0(r){var a=r.updateQueue;if(a!==null){var u=r.stateNode;r.type.defaultProps||"ref"in r.memoizedProps||Ky||(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.",ue(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.",ue(r)||"instance"));try{Be(r,c1,a,u)}catch(g){Yn(r,r.return,g)}}}function Z6(r,a,u){return r.getSnapshotBeforeUpdate(a,u)}function V4(r,a){var u=a.memoizedProps,g=a.memoizedState;a=r.stateNode,r.type.defaultProps||"ref"in r.memoizedProps||Ky||(a.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.",ue(r)||"instance"),a.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.",ue(r)||"instance"));try{var x=Au(r.type,u),E=Be(r,Z6,a,x,g);u=CL,E!==void 0||u.has(r.type)||(u.add(r.type),Be(r,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",ue(r))})),a.__reactInternalSnapshotBeforeUpdate=E}catch(M){Yn(r,r.return,M)}}function B4(r,a,u){u.props=Au(r.type,r.memoizedProps),u.state=r.memoizedState,Rs(r)?(Ko(),Be(r,GI,r,a,u),ys()):Be(r,GI,r,a,u)}function j4(r){var a=r.ref;if(a!==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 a=="function")if(Rs(r))try{Ko(),r.refCleanup=a(u)}finally{ys()}else r.refCleanup=a(u);else typeof a=="string"?console.error("String refs are no longer supported."):a.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",ue(r)),a.current=u}}function Ff(r,a){try{Be(r,j4,r)}catch(u){Yn(r,a,u)}}function zl(r,a){var u=r.ref,g=r.refCleanup;if(u!==null)if(typeof g=="function")try{if(Rs(r))try{Ko(),Be(r,g)}finally{ys(r)}else Be(r,g)}catch(x){Yn(r,a,x)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof u=="function")try{if(Rs(r))try{Ko(),Be(r,u,null)}finally{ys(r)}else Be(r,u,null)}catch(x){Yn(r,a,x)}else u.current=null}function P4(r,a,u,g){var x=r.memoizedProps,E=x.id,M=x.onCommit;x=x.onRender,a=a===null?"mount":"update",KE&&(a="nested-update"),typeof x=="function"&&x(E,a,r.actualDuration,r.treeBaseDuration,r.actualStartTime,u),typeof M=="function"&&M(E,a,g,u)}function Yf(r,a,u,g){var x=r.memoizedProps;r=x.id,x=x.onPostCommit,a=a===null?"mount":"update",KE&&(a="nested-update"),typeof x=="function"&&x(r,a,g,u)}function U4(r){var a=r.type,u=r.memoizedProps,g=r.stateNode;try{Be(r,fE,g,a,u,r)}catch(x){Yn(r,r.return,x)}}function B1(r,a,u){try{Be(r,hx,r.stateNode,r.type,u,a,r)}catch(g){Yn(r,r.return,g)}}function $4(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&Du(r.type)||r.tag===4}function v0(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||$4(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&&Du(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 j1(r,a,u){var g=r.tag;if(g===5||g===6)r=r.stateNode,a?(hE(u),(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(r,a)):(hE(u),a=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,a.appendChild(r),u=u._reactRootContainer,u!=null||a.onclick!==null||(a.onclick=Gi));else if(g!==4&&(g===27&&Du(r.type)&&(u=r.stateNode,a=null),r=r.child,r!==null))for(j1(r,a,u),r=r.sibling;r!==null;)j1(r,a,u),r=r.sibling}function b0(r,a,u){var g=r.tag;if(g===5||g===6)r=r.stateNode,a?u.insertBefore(r,a):u.appendChild(r);else if(g!==4&&(g===27&&Du(r.type)&&(u=r.stateNode),r=r.child,r!==null))for(b0(r,a,u),r=r.sibling;r!==null;)b0(r,a,u),r=r.sibling}function J6(r){for(var a,u=r.return;u!==null;){if($4(u)){a=u;break}u=u.return}if(a==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(a.tag){case 27:a=a.stateNode,u=v0(r),b0(r,u,a);break;case 5:u=a.stateNode,a.flags&32&&(dE(u),a.flags&=-33),a=v0(r),b0(r,a,u);break;case 3:case 4:a=a.stateNode.containerInfo,u=v0(r),j1(r,u,a);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function H4(r){var a=r.stateNode,u=r.memoizedProps;try{Be(r,Qp,r.type,u,a,r)}catch(g){Yn(r,r.return,g)}}function eE(r,a){return a.tag===31?(a=a.memoizedState,r.memoizedState!==null&&a===null):a.tag===13?(r=r.memoizedState,a=a.memoizedState,r!==null&&r.dehydrated!==null&&(a===null||a.dehydrated===null)):a.tag===3?r.memoizedState.isDehydrated&&(a.flags&256)===0:!1}function q4(r,a){if(r=r.containerInfo,oC=Dw,r=z6(r),Zb(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 x=g.anchorOffset,E=g.focusNode;g=g.focusOffset;try{u.nodeType,E.nodeType}catch{u=null;break e}var M=0,D=-1,q=-1,K=0,Ee=0,Ae=r,ge=null;t:for(;;){for(var Le;Ae!==u||x!==0&&Ae.nodeType!==3||(D=M+x),Ae!==E||g!==0&&Ae.nodeType!==3||(q=M+g),Ae.nodeType===3&&(M+=Ae.nodeValue.length),(Le=Ae.firstChild)!==null;)ge=Ae,Ae=Le;for(;;){if(Ae===r)break t;if(ge===u&&++K===x&&(D=M),ge===E&&++Ee===g&&(q=M),(Le=Ae.nextSibling)!==null)break;Ae=ge,ge=Ae.parentNode}Ae=Le}u=D===-1||q===-1?null:{start:D,end:q}}else u=null}u=u||{start:0,end:0}}else u=null;for(lC={focusedElem:r,selectionRange:u},Dw=!1,ga=a;ga!==null;)if(a=ga,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,ga=r;else for(;ga!==null;){switch(r=a=ga,u=r.alternate,x=r.flags,r.tag){case 0:if((x&4)!==0&&(r=r.updateQueue,r=r!==null?r.events:null,r!==null))for(u=0;u<r.length;u++)x=r[u],x.ref.impl=x.nextImpl;break;case 11:case 15:break;case 1:(x&1024)!==0&&u!==null&&V4(r,u);break;case 3:if((x&1024)!==0){if(r=r.stateNode.containerInfo,u=r.nodeType,u===9)J1(r);else if(u===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":J1(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((x&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=a.sibling,r!==null){r.return=a.return,ga=r;break}ga=a.return}}function li(r,a,u){var g=zi(),x=wo(),E=Qo(),M=oa(),D=u.flags;switch(u.tag){case 0:case 11:case 15:Jo(r,u),D&4&&I4(u,Hl|Zs);break;case 1:if(Jo(r,u),D&4)if(r=u.stateNode,a===null)u.type.defaultProps||"ref"in u.memoizedProps||Ky||(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.",ue(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.",ue(u)||"instance")),Rs(u)?(Ko(),Be(u,MA,u,r),ys()):Be(u,MA,u,r);else{var q=Au(u.type,a.memoizedProps);a=a.memoizedState,u.type.defaultProps||"ref"in u.memoizedProps||Ky||(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.",ue(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.",ue(u)||"instance")),Rs(u)?(Ko(),Be(u,$I,u,r,q,a,r.__reactInternalSnapshotBeforeUpdate),ys()):Be(u,$I,u,r,q,a,r.__reactInternalSnapshotBeforeUpdate)}D&64&&y0(u),D&512&&Ff(u,u.return);break;case 3:if(a=Ml(),Jo(r,u),D&64&&(D=u.updateQueue,D!==null)){if(q=null,u.child!==null)switch(u.child.tag){case 27:case 5:q=u.child.stateNode;break;case 1:q=u.child.stateNode}try{Be(u,c1,D,q)}catch(Ee){Yn(u,u.return,Ee)}}r.effectDuration+=Wa(a);break;case 27:a===null&&D&4&&H4(u);case 26:case 5:if(Jo(r,u),a===null){if(D&4)U4(u);else if(D&64){r=u.type,a=u.memoizedProps,q=u.stateNode;try{Be(u,K1,q,r,a,u)}catch(Ee){Yn(u,u.return,Ee)}}}D&512&&Ff(u,u.return);break;case 12:if(D&4){D=Ml(),Jo(r,u),r=u.stateNode,r.effectDuration+=Sc(D);try{Be(u,P4,u,a,q0,r.effectDuration)}catch(Ee){Yn(u,u.return,Ee)}}else Jo(r,u);break;case 31:Jo(r,u),D&4&&F4(r,u);break;case 13:Jo(r,u),D&4&&Y4(r,u),D&64&&(r=u.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(D=Zf.bind(null,u),Q8(r,D))));break;case 22:if(D=u.memoizedState!==null||xd,!D){a=a!==null&&a.memoizedState!==null||Pi,q=xd;var K=Pi;xd=D,(Pi=a)&&!K?(el(r,u,(u.subtreeFlags&8772)!==0),(u.mode&xn)!==Zt&&0<=$t&&0<=Xt&&.05<Xt-$t&&Zg(u,$t,Xt)):Jo(r,u),xd=q,Pi=K}break;case 30:break;default:Jo(r,u)}(u.mode&xn)!==Zt&&0<=$t&&0<=Xt&&((ui||.05<ei)&&cs(u,$t,Xt,ei,jr),u.alternate===null&&u.return!==null&&u.return.alternate!==null&&.05<Xt-$t&&(eE(u.return.alternate,u.return)||us(u,$t,Xt,"Mount"))),Ca(g),To(x),jr=E,ui=M}function Ii(r){var a=r.alternate;a!==null&&(r.alternate=null,Ii(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&Oe(a)),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 _s(r,a,u){for(u=u.child;u!==null;)G4(r,a,u),u=u.sibling}function G4(r,a,u){if(ha&&typeof ha.onCommitFiberUnmount=="function")try{ha.onCommitFiberUnmount(Iu,u)}catch(K){$s||($s=!0,console.error("React instrumentation encountered an error: %o",K))}var g=zi(),x=wo(),E=Qo(),M=oa();switch(u.tag){case 26:Pi||zl(u,a),_s(r,a,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(r=u.stateNode,r.parentNode.removeChild(r));break;case 27:Pi||zl(u,a);var D=Ui,q=fl;Du(u.type)&&(Ui=u.stateNode,fl=!1),_s(r,a,u),Be(u,Kp,u.stateNode),Ui=D,fl=q;break;case 5:Pi||zl(u,a);case 6:if(D=Ui,q=fl,Ui=null,_s(r,a,u),Ui=D,fl=q,Ui!==null)if(fl)try{Be(u,C0,Ui,u.stateNode)}catch(K){Yn(u,a,K)}else try{Be(u,pE,Ui,u.stateNode)}catch(K){Yn(u,a,K)}break;case 18:Ui!==null&&(fl?(r=Ui,Xp(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,u.stateNode),N0(r)):Xp(Ui,u.stateNode));break;case 4:D=Ui,q=fl,Ui=u.stateNode.containerInfo,fl=!0,_s(r,a,u),Ui=D,fl=q;break;case 0:case 11:case 14:case 15:Cu(Lo,u,a),Pi||qf(u,a,Hl),_s(r,a,u);break;case 1:Pi||(zl(u,a),D=u.stateNode,typeof D.componentWillUnmount=="function"&&B4(u,a,D)),_s(r,a,u);break;case 21:_s(r,a,u);break;case 22:Pi=(D=Pi)||u.memoizedState!==null,_s(r,a,u),Pi=D;break;default:_s(r,a,u)}(u.mode&xn)!==Zt&&0<=$t&&0<=Xt&&(ui||.05<ei)&&cs(u,$t,Xt,ei,jr),Ca(g),To(x),jr=E,ui=M}function F4(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{Be(a,gx,r)}catch(u){Yn(a,a.return,u)}}}function Y4(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Be(a,Bc,r)}catch(u){Yn(a,a.return,u)}}function _p(r){switch(r.tag){case 31:case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new OL),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new OL),a;default:throw Error("Unexpected Suspense handler tag ("+r.tag+"). This is a bug in React.")}}function Dp(r,a){var u=_p(r);a.forEach(function(g){if(!u.has(g)){if(u.add(g),ul)if(Zy!==null&&Jy!==null)Ls(Jy,Zy);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var x=Mu.bind(null,r,g);g.then(x,x)}})}function Qi(r,a){var u=a.deletions;if(u!==null)for(var g=0;g<u.length;g++){var x=r,E=a,M=u[g],D=zi(),q=E;e:for(;q!==null;){switch(q.tag){case 27:if(Du(q.type)){Ui=q.stateNode,fl=!1;break e}break;case 5:Ui=q.stateNode,fl=!1;break e;case 3:case 4:Ui=q.stateNode.containerInfo,fl=!0;break e}q=q.return}if(Ui===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");G4(x,E,M),Ui=null,fl=!1,(M.mode&xn)!==Zt&&0<=$t&&0<=Xt&&.05<Xt-$t&&us(M,$t,Xt,"Unmount"),Ca(D),x=M,E=x.alternate,E!==null&&(E.return=null),x.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)X4(a,r),a=a.sibling}function X4(r,a){var u=zi(),g=wo(),x=Qo(),E=oa(),M=r.alternate,D=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:Qi(a,r),ro(r),D&4&&(Cu(Lo|Zs,r,r.return),Gf(Lo|Zs,r),qf(r,r.return,Hl|Zs));break;case 1:if(Qi(a,r),ro(r),D&512&&(Pi||M===null||zl(M,M.return)),D&64&&xd&&(D=r.updateQueue,D!==null&&(M=D.callbacks,M!==null))){var q=D.shared.hiddenCallbacks;D.shared.hiddenCallbacks=q===null?M:q.concat(M)}break;case 26:if(q=ju,Qi(a,r),ro(r),D&512&&(Pi||M===null||zl(M,M.return)),D&4){var K=M!==null?M.memoizedState:null;if(D=r.memoizedState,M===null)if(D===null)if(r.stateNode===null){e:{D=r.type,M=r.memoizedProps,q=q.ownerDocument||q;t:switch(D){case"title":K=q.getElementsByTagName("title")[0],(!K||K[fm]||K[na]||K.namespaceURI===Dn||K.hasAttribute("itemprop"))&&(K=q.createElement(D),q.head.insertBefore(K,q.querySelector("head > title"))),jn(K,D,M),K[na]=r,vt(K),D=K;break e;case"link":var Ee=wE("link","href",q).get(D+(M.href||""));if(Ee){for(var Ae=0;Ae<Ee.length;Ae++)if(K=Ee[Ae],K.getAttribute("href")===(M.href==null||M.href===""?null:M.href)&&K.getAttribute("rel")===(M.rel==null?null:M.rel)&&K.getAttribute("title")===(M.title==null?null:M.title)&&K.getAttribute("crossorigin")===(M.crossOrigin==null?null:M.crossOrigin)){Ee.splice(Ae,1);break t}}K=q.createElement(D),jn(K,D,M),q.head.appendChild(K);break;case"meta":if(Ee=wE("meta","content",q).get(D+(M.content||""))){for(Ae=0;Ae<Ee.length;Ae++)if(K=Ee[Ae],xt(M.content,"content"),K.getAttribute("content")===(M.content==null?null:""+M.content)&&K.getAttribute("name")===(M.name==null?null:M.name)&&K.getAttribute("property")===(M.property==null?null:M.property)&&K.getAttribute("http-equiv")===(M.httpEquiv==null?null:M.httpEquiv)&&K.getAttribute("charset")===(M.charSet==null?null:M.charSet)){Ee.splice(Ae,1);break t}}K=q.createElement(D),jn(K,D,M),q.head.appendChild(K);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+D+'". This is a bug in React.')}K[na]=r,vt(K),D=K}r.stateNode=D}else Sx(q,r.type,r.stateNode);else r.stateNode=iy(q,D,r.memoizedProps);else K!==D?(K===null?M.stateNode!==null&&(M=M.stateNode,M.parentNode.removeChild(M)):K.count--,D===null?Sx(q,r.type,r.stateNode):iy(q,D,r.memoizedProps)):D===null&&r.stateNode!==null&&B1(r,r.memoizedProps,M.memoizedProps)}break;case 27:Qi(a,r),ro(r),D&512&&(Pi||M===null||zl(M,M.return)),M!==null&&D&4&&B1(r,r.memoizedProps,M.memoizedProps);break;case 5:if(Qi(a,r),ro(r),D&512&&(Pi||M===null||zl(M,M.return)),r.flags&32){q=r.stateNode;try{Be(r,dE,q)}catch(Et){Yn(r,r.return,Et)}}D&4&&r.stateNode!=null&&(q=r.memoizedProps,B1(r,q,M!==null?M.memoizedProps:q)),D&1024&&(UA=!0,r.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Qi(a,r),ro(r),D&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.");D=r.memoizedProps,M=M!==null?M.memoizedProps:D,q=r.stateNode;try{Be(r,W8,q,M,D)}catch(Et){Yn(r,r.return,Et)}}break;case 3:if(q=Ml(),Mw=null,K=ju,ju=Zp(a.containerInfo),Qi(a,r),ju=K,ro(r),D&4&&M!==null&&M.memoizedState.isDehydrated)try{Be(r,ry,a.containerInfo)}catch(Et){Yn(r,r.return,Et)}UA&&(UA=!1,Np(r)),a.effectDuration+=Wa(q);break;case 4:D=ju,ju=Zp(r.stateNode.containerInfo),Qi(a,r),ro(r),ju=D;break;case 12:D=Ml(),Qi(a,r),ro(r),r.stateNode.effectDuration+=Sc(D);break;case 31:Qi(a,r),ro(r),D&4&&(D=r.updateQueue,D!==null&&(r.updateQueue=null,Dp(r,D)));break;case 13:Qi(a,r),ro(r),r.child.flags&8192&&r.memoizedState!==null!=(M!==null&&M.memoizedState!==null)&&(hw=Jr()),D&4&&(D=r.updateQueue,D!==null&&(r.updateQueue=null,Dp(r,D)));break;case 22:q=r.memoizedState!==null;var ge=M!==null&&M.memoizedState!==null,Le=xd,mt=Pi;if(xd=Le||q,Pi=mt||ge,Qi(a,r),Pi=mt,xd=Le,ge&&!q&&!Le&&!mt&&(r.mode&xn)!==Zt&&0<=$t&&0<=Xt&&.05<Xt-$t&&Zg(r,$t,Xt),ro(r),D&8192)e:for(a=r.stateNode,a._visibility=q?a._visibility&~Wx:a._visibility|Wx,!q||M===null||ge||xd||Pi||(Dc(r),(r.mode&xn)!==Zt&&0<=$t&&0<=Xt&&.05<Xt-$t&&us(r,$t,Xt,"Disconnect")),M=null,a=r;;){if(a.tag===5||a.tag===26){if(M===null){ge=M=a;try{K=ge.stateNode,q?Be(ge,gE,K):Be(ge,bE,ge.stateNode,ge.memoizedProps)}catch(Et){Yn(ge,ge.return,Et)}}}else if(a.tag===6){if(M===null){ge=a;try{Ee=ge.stateNode,q?Be(ge,yE,Ee):Be(ge,Z1,Ee,ge.memoizedProps)}catch(Et){Yn(ge,ge.return,Et)}}}else if(a.tag===18){if(M===null){ge=a;try{Ae=ge.stateNode,q?Be(ge,mE,Ae):Be(ge,vE,ge.stateNode)}catch(Et){Yn(ge,ge.return,Et)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===r)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;M===a&&(M=null),a=a.return}M===a&&(M=null),a.sibling.return=a.return,a=a.sibling}D&4&&(D=r.updateQueue,D!==null&&(M=D.retryQueue,M!==null&&(D.retryQueue=null,Dp(r,M))));break;case 19:Qi(a,r),ro(r),D&4&&(D=r.updateQueue,D!==null&&(r.updateQueue=null,Dp(r,D)));break;case 30:break;case 21:break;default:Qi(a,r),ro(r)}(r.mode&xn)!==Zt&&0<=$t&&0<=Xt&&((ui||.05<ei)&&cs(r,$t,Xt,ei,jr),r.alternate===null&&r.return!==null&&r.return.alternate!==null&&.05<Xt-$t&&(eE(r.return.alternate,r.return)||us(r,$t,Xt,"Mount"))),Ca(u),To(g),jr=x,ui=E}function ro(r){var a=r.flags;if(a&2){try{Be(r,J6,r)}catch(u){Yn(r,r.return,u)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function Np(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;Np(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function Jo(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)li(r,a.alternate,a),a=a.sibling}function W4(r){var a=zi(),u=wo(),g=Qo(),x=oa();switch(r.tag){case 0:case 11:case 14:case 15:qf(r,r.return,Hl),Dc(r);break;case 1:zl(r,r.return);var E=r.stateNode;typeof E.componentWillUnmount=="function"&&B4(r,r.return,E),Dc(r);break;case 27:Be(r,Kp,r.stateNode);case 26:case 5:zl(r,r.return),Dc(r);break;case 22:r.memoizedState===null&&Dc(r);break;case 30:Dc(r);break;default:Dc(r)}(r.mode&xn)!==Zt&&0<=$t&&0<=Xt&&(ui||.05<ei)&&cs(r,$t,Xt,ei,jr),Ca(a),To(u),jr=g,ui=x}function Dc(r){for(r=r.child;r!==null;)W4(r),r=r.sibling}function Q4(r,a,u,g){var x=zi(),E=wo(),M=Qo(),D=oa(),q=u.flags;switch(u.tag){case 0:case 11:case 15:el(r,u,g),I4(u,Hl);break;case 1:if(el(r,u,g),a=u.stateNode,typeof a.componentDidMount=="function"&&Be(u,MA,u,a),a=u.updateQueue,a!==null){r=u.stateNode;try{Be(u,op,a,r)}catch(K){Yn(u,u.return,K)}}g&&q&64&&y0(u),Ff(u,u.return);break;case 27:H4(u);case 26:case 5:el(r,u,g),g&&a===null&&q&4&&U4(u),Ff(u,u.return);break;case 12:if(g&&q&4){q=Ml(),el(r,u,g),g=u.stateNode,g.effectDuration+=Sc(q);try{Be(u,P4,u,a,q0,g.effectDuration)}catch(K){Yn(u,u.return,K)}}else el(r,u,g);break;case 31:el(r,u,g),g&&q&4&&F4(r,u);break;case 13:el(r,u,g),g&&q&4&&Y4(r,u);break;case 22:u.memoizedState===null&&el(r,u,g),Ff(u,u.return);break;case 30:break;default:el(r,u,g)}(u.mode&xn)!==Zt&&0<=$t&&0<=Xt&&(ui||.05<ei)&&cs(u,$t,Xt,ei,jr),Ca(x),To(E),jr=M,ui=D}function el(r,a,u){for(u=u&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;)Q4(r,a.alternate,a,u),a=a.sibling}function kp(r,a){var u=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==u&&(r!=null&&Df(r),u!=null&&Jh(u))}function zp(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(Df(a),r!=null&&Jh(r))}function tl(r,a,u,g,x){if(a.subtreeFlags&10256||a.actualDuration!==0&&(a.alternate===null||a.alternate.child!==a.child))for(a=a.child;a!==null;){var E=a.sibling;P1(r,a,u,g,E!==null?E.actualStartTime:x),a=E}}function P1(r,a,u,g,x){var E=zi(),M=wo(),D=Qo(),q=oa(),K=P0,Ee=a.flags;switch(a.tag){case 0:case 11:case 15:(a.mode&xn)!==Zt&&0<a.actualStartTime&&(a.flags&1)!==0&&Jg(a,a.actualStartTime,x,ra,u),tl(r,a,u,g,x),Ee&2048&&L4(a,Vo|Zs);break;case 1:(a.mode&xn)!==Zt&&0<a.actualStartTime&&((a.flags&128)!==0?e1(a,a.actualStartTime,x,[]):(a.flags&1)!==0&&Jg(a,a.actualStartTime,x,ra,u)),tl(r,a,u,g,x);break;case 3:var Ae=Ml(),ge=ra;ra=a.alternate!==null&&a.alternate.memoizedState.isDehydrated&&(a.flags&256)===0,tl(r,a,u,g,x),ra=ge,Ee&2048&&(u=null,a.alternate!==null&&(u=a.alternate.memoizedState.cache),g=a.memoizedState.cache,g!==u&&(Df(g),u!=null&&Jh(u))),r.passiveEffectDuration+=Wa(Ae);break;case 12:if(Ee&2048){Ee=Ml(),tl(r,a,u,g,x),r=a.stateNode,r.passiveEffectDuration+=Sc(Ee);try{Be(a,Yf,a,a.alternate,q0,r.passiveEffectDuration)}catch(Le){Yn(a,a.return,Le)}}else tl(r,a,u,g,x);break;case 31:Ee=ra,Ae=a.alternate!==null?a.alternate.memoizedState:null,ge=a.memoizedState,Ae!==null&&ge===null?(ge=a.deletions,ge!==null&&0<ge.length&&ge[0].tag===18?(ra=!1,Ae=Ae.hydrationErrors,Ae!==null&&e1(a,a.actualStartTime,x,Ae)):ra=!0):ra=!1,tl(r,a,u,g,x),ra=Ee;break;case 13:Ee=ra,Ae=a.alternate!==null?a.alternate.memoizedState:null,ge=a.memoizedState,Ae===null||Ae.dehydrated===null||ge!==null&&ge.dehydrated!==null?ra=!1:(ge=a.deletions,ge!==null&&0<ge.length&&ge[0].tag===18?(ra=!1,Ae=Ae.hydrationErrors,Ae!==null&&e1(a,a.actualStartTime,x,Ae)):ra=!0),tl(r,a,u,g,x),ra=Ee;break;case 23:break;case 22:ge=a.stateNode,Ae=a.alternate,a.memoizedState!==null?ge._visibility&cd?tl(r,a,u,g,x):x0(r,a,u,g,x):ge._visibility&cd?tl(r,a,u,g,x):(ge._visibility|=cd,Ou(r,a,u,g,(a.subtreeFlags&10256)!==0||a.actualDuration!==0&&(a.alternate===null||a.alternate.child!==a.child),x),(a.mode&xn)===Zt||ra||(r=a.actualStartTime,0<=r&&.05<x-r&&Zg(a,r,x),0<=$t&&0<=Xt&&.05<Xt-$t&&Zg(a,$t,Xt))),Ee&2048&&kp(Ae,a);break;case 24:tl(r,a,u,g,x),Ee&2048&&zp(a.alternate,a);break;default:tl(r,a,u,g,x)}(a.mode&xn)!==Zt&&((r=!ra&&a.alternate===null&&a.return!==null&&a.return.alternate!==null)&&(u=a.actualStartTime,0<=u&&.05<x-u&&us(a,u,x,"Mount")),0<=$t&&0<=Xt&&((ui||.05<ei)&&cs(a,$t,Xt,ei,jr),r&&.05<Xt-$t&&us(a,$t,Xt,"Mount"))),Ca(E),To(M),jr=D,ui=q,P0=K}function Ou(r,a,u,g,x,E){for(x=x&&((a.subtreeFlags&10256)!==0||a.actualDuration!==0&&(a.alternate===null||a.alternate.child!==a.child)),a=a.child;a!==null;){var M=a.sibling;U1(r,a,u,g,x,M!==null?M.actualStartTime:E),a=M}}function U1(r,a,u,g,x,E){var M=zi(),D=wo(),q=Qo(),K=oa(),Ee=P0;x&&(a.mode&xn)!==Zt&&0<a.actualStartTime&&(a.flags&1)!==0&&Jg(a,a.actualStartTime,E,ra,u);var Ae=a.flags;switch(a.tag){case 0:case 11:case 15:Ou(r,a,u,g,x,E),L4(a,Vo);break;case 23:break;case 22:var ge=a.stateNode;a.memoizedState!==null?ge._visibility&cd?Ou(r,a,u,g,x,E):x0(r,a,u,g,E):(ge._visibility|=cd,Ou(r,a,u,g,x,E)),x&&Ae&2048&&kp(a.alternate,a);break;case 24:Ou(r,a,u,g,x,E),x&&Ae&2048&&zp(a.alternate,a);break;default:Ou(r,a,u,g,x,E)}(a.mode&xn)!==Zt&&0<=$t&&0<=Xt&&(ui||.05<ei)&&cs(a,$t,Xt,ei,jr),Ca(M),To(D),jr=q,ui=K,P0=Ee}function x0(r,a,u,g,x){if(a.subtreeFlags&10256||a.actualDuration!==0&&(a.alternate===null||a.alternate.child!==a.child))for(var E=a.child;E!==null;){a=E.sibling;var M=r,D=u,q=g,K=a!==null?a.actualStartTime:x,Ee=P0;(E.mode&xn)!==Zt&&0<E.actualStartTime&&(E.flags&1)!==0&&Jg(E,E.actualStartTime,K,ra,D);var Ae=E.flags;switch(E.tag){case 22:x0(M,E,D,q,K),Ae&2048&&kp(E.alternate,E);break;case 24:x0(M,E,D,q,K),Ae&2048&&zp(E.alternate,E);break;default:x0(M,E,D,q,K)}P0=Ee,E=a}}function Nc(r,a,u){if(r.subtreeFlags&m5)for(r=r.child;r!==null;)K4(r,a,u),r=r.sibling}function K4(r,a,u){switch(r.tag){case 26:Nc(r,a,u),r.flags&m5&&r.memoizedState!==null&&ly(u,ju,r.memoizedState,r.memoizedProps);break;case 5:Nc(r,a,u);break;case 3:case 4:var g=ju;ju=Zp(r.stateNode.containerInfo),Nc(r,a,u),ju=g;break;case 22:r.memoizedState===null&&(g=r.alternate,g!==null&&g.memoizedState!==null?(g=m5,m5=16777216,Nc(r,a,u),m5=g):Nc(r,a,u));break;default:Nc(r,a,u)}}function Ds(r){var a=r.alternate;if(a!==null&&(r=a.child,r!==null)){a.child=null;do a=r.sibling,r.sibling=null,r=a;while(r!==null)}}function Xf(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var g=a[u],x=zi();ga=g,$1(g,r),(g.mode&xn)!==Zt&&0<=$t&&0<=Xt&&.05<Xt-$t&&us(g,$t,Xt,"Unmount"),Ca(x)}Ds(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)tE(r),r=r.sibling}function tE(r){var a=zi(),u=wo(),g=Qo(),x=oa();switch(r.tag){case 0:case 11:case 15:Xf(r),r.flags&2048&&V1(r,r.return,Vo|Zs);break;case 3:var E=Ml();Xf(r),r.stateNode.passiveEffectDuration+=Wa(E);break;case 12:E=Ml(),Xf(r),r.stateNode.passiveEffectDuration+=Sc(E);break;case 22:E=r.stateNode,r.memoizedState!==null&&E._visibility&cd&&(r.return===null||r.return.tag!==13)?(E._visibility&=~cd,Ip(r),(r.mode&xn)!==Zt&&0<=$t&&0<=Xt&&.05<Xt-$t&&us(r,$t,Xt,"Disconnect")):Xf(r);break;default:Xf(r)}(r.mode&xn)!==Zt&&0<=$t&&0<=Xt&&(ui||.05<ei)&&cs(r,$t,Xt,ei,jr),Ca(a),To(u),ui=x,jr=g}function Ip(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var g=a[u],x=zi();ga=g,$1(g,r),(g.mode&xn)!==Zt&&0<=$t&&0<=Xt&&.05<Xt-$t&&us(g,$t,Xt,"Unmount"),Ca(x)}Ds(r)}for(r=r.child;r!==null;)Ns(r),r=r.sibling}function Ns(r){var a=zi(),u=wo(),g=Qo(),x=oa();switch(r.tag){case 0:case 11:case 15:V1(r,r.return,Vo),Ip(r);break;case 22:var E=r.stateNode;E._visibility&cd&&(E._visibility&=~cd,Ip(r));break;default:Ip(r)}(r.mode&xn)!==Zt&&0<=$t&&0<=Xt&&(ui||.05<ei)&&cs(r,$t,Xt,ei,jr),Ca(a),To(u),ui=x,jr=g}function $1(r,a){for(;ga!==null;){var u=ga,g=u,x=a,E=zi(),M=wo(),D=Qo(),q=oa();switch(g.tag){case 0:case 11:case 15:V1(g,x,Vo);break;case 23:case 22:g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(x=g.memoizedState.cachePool.pool,x!=null&&Df(x));break;case 24:Jh(g.memoizedState.cache)}if((g.mode&xn)!==Zt&&0<=$t&&0<=Xt&&(ui||.05<ei)&&cs(g,$t,Xt,ei,jr),Ca(E),To(M),ui=q,jr=D,g=u.child,g!==null)g.return=u,ga=g;else e:for(u=r;ga!==null;){if(g=ga,E=g.sibling,M=g.return,Ii(g),g===u){ga=null;break e}if(E!==null){E.return=M,ga=E;break e}ga=M}}}function nE(){Tfe.forEach(function(r){return r()})}function Lp(){var r=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return r||$e.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),r}function Ki(r){if((Gn&ia)!==ya&&En!==0)return En&-En;var a=$e.T;return a!==null?(a._updatedFibers||(a._updatedFibers=new Set),a._updatedFibers.add(r),Hn()):cr()}function Sr(){if(hl===0)if((En&536870912)===0||In){var r=V0;V0<<=1,(V0&3932160)===0&&(V0=262144),hl=r}else hl=536870912;return r=$l.current,r!==null&&(r.flags|=32),hl}function Br(r,a,u){if(nv&&console.error("useInsertionEffect must not schedule updates."),ZA&&(yw=!0),(r===wr&&(pr===Mm||pr===Rm)||r.cancelPendingCommit!==null)&&(_a(r,0),Ra(r,En,hl,!1)),pt(r,u),(Gn&ia)!==ya&&r===wr){if(sl)switch(a.tag){case 0:case 11:case 15:r=Cn&&ue(Cn)||"Unknown",$L.has(r)||($L.add(r),a=ue(a)||"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",a,r,r));break;case 1:UL||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),UL=!0)}}else ul&&Fn(r,a,u),Up(a),r===wr&&((Gn&ia)===ya&&(Z0|=u),ti===W0&&Ra(r,En,hl,!1)),Na(r)}function rE(r,a,u){if((Gn&(ia|ql))!==ya)throw Error("Should not already be working.");if(En!==0&&Cn!==null){var g=Cn,x=Jr();switch(zI){case v5:case Mm:var E=t5;kr&&((g=g._debugTask)?g.run(console.timeStamp.bind(console,"Suspended",E,x,qs,void 0,"primary-light")):console.timeStamp("Suspended",E,x,qs,void 0,"primary-light"));break;case Rm:E=t5,kr&&((g=g._debugTask)?g.run(console.timeStamp.bind(console,"Action",E,x,qs,void 0,"primary-light")):console.timeStamp("Action",E,x,qs,void 0,"primary-light"));break;default:kr&&(g=x-t5,3>g||console.timeStamp("Blocked",t5,x,qs,void 0,5>g?"primary-light":10>g?"primary":100>g?"primary-dark":"error"))}}E=(u=!u&&(a&127)===0&&(a&r.expiredLanes)===0||Ze(r,a))?gi(r,a):F1(r,a,!0);var M=u;do{if(E===Sd){ev&&!u&&Ra(r,a,0,!1),a=pr,t5=Vi(),zI=a;break}else{if(g=Jr(),x=r.current.alternate,M&&!Vp(x)){So(a),x=ma,E=g,!kr||E<=x||(yi?yi.run(console.timeStamp.bind(console,"Teared Render",x,E,$n,Pn,"error")):console.timeStamp("Teared Render",x,E,$n,Pn,"error")),Il(a,g),E=F1(r,a,!1),M=!1;continue}if(E===Om){if(M=a,r.errorRecoveryDisabledLanes&M)var D=0;else D=r.pendingLanes&-536870913,D=D!==0?D:D&536870912?536870912:0;if(D!==0){So(a),e4(ma,g,a,yi),Il(a,g),a=D;e:{g=r,E=M,M=x5;var q=g.current.memoizedState.isDehydrated;if(q&&(_a(g,D).flags|=256),D=F1(g,D,!1),D!==Om){if(qA&&!q){g.errorRecoveryDisabledLanes|=E,Z0|=E,E=W0;break e}g=Bo,Bo=M,g!==null&&(Bo===null?Bo=g:Bo.push.apply(Bo,g))}E=D}if(M=!1,E!==Om)continue;g=Jr()}}if(E===y5){So(a),e4(ma,g,a,yi),Il(a,g),_a(r,0),Ra(r,a,0,!0);break}e:{switch(u=r,E){case Sd:case y5:throw Error("Root did not complete. This is a bug in React.");case W0:if((a&4194048)!==a)break;case uw:So(a),V6(ma,g,a,yi),Il(a,g),x=a,(x&127)!==0?XE=g:(x&4194048)!==0&&(WE=g),Ra(u,a,hl,!Q0);break e;case Om:Bo=null;break;case sw:case ML:break;default:throw Error("Unknown root exit status.")}if($e.actQueue!==null)fa(u,x,a,Bo,S5,dw,hl,Z0,_m,E,null,null,ma,g);else{if((a&62914560)===a&&(M=hw+DL-Jr(),10<M)){if(Ra(u,a,hl,!Q0),Bt(u,0,!0)!==0)break e;Pu=a,u.timeoutHandle=QL(Z4.bind(null,u,x,Bo,S5,dw,a,hl,Z0,_m,Q0,E,"Throttled",ma,g),M);break e}Z4(u,x,Bo,S5,dw,a,hl,Z0,_m,Q0,E,null,ma,g)}}}break}while(!0);Na(r)}function Z4(r,a,u,g,x,E,M,D,q,K,Ee,Ae,ge,Le){r.timeoutHandle=Im;var mt=a.subtreeFlags,Et=null;if((mt&8192||(mt&16785408)===16785408)&&(Et={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Gi},K4(a,E,Et),mt=(E&62914560)===E?hw-Jr():(E&4194048)===E?_L-Jr():0,mt=Ex(Et,mt),mt!==null)){Pu=E,r.cancelPendingCommit=mt(fa.bind(null,r,a,E,u,g,x,M,D,q,Ee,Et,Et.waitingForViewTransition?"Waiting for the previous Animation":0<Et.count?0<Et.imgCount?"Suspended on CSS and Images":"Suspended on CSS":Et.imgCount===1?"Suspended on an Image":0<Et.imgCount?"Suspended on Images":null,ge,Le)),Ra(r,E,M,!K);return}fa(r,a,E,u,g,x,M,D,q,Ee,Et,Ae,ge,Le)}function Vp(r){for(var a=r;;){var u=a.tag;if((u===0||u===11||u===15)&&a.flags&16384&&(u=a.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var g=0;g<u.length;g++){var x=u[g],E=x.getSnapshot;x=x.value;try{if(!zo(E(),x))return!1}catch{return!1}}if(u=a.child,a.subtreeFlags&16384&&u!==null)u.return=a,a=u;else{if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ra(r,a,u,g){a&=~GA,a&=~Z0,r.suspendedLanes|=a,r.pingedLanes&=~a,g&&(r.warmLanes|=a),g=r.expirationTimes;for(var x=a;0<x;){var E=31-ea(x),M=1<<E;g[E]=-1,x&=~M}u!==0&&yt(r,u,a)}function Wf(){return(Gn&(ia|ql))===ya?(E0(0),!1):!0}function H1(){if(Cn!==null){if(pr===dl)var r=Cn.return;else r=Cn,vc(),Tc(r),Gy=null,c5=0,r=Cn;for(;r!==null;)K6(r.alternate,r),r=r.return;Cn=null}}function Il(r,a){(r&127)!==0&&(vm=a),(r&4194048)!==0&&(md=a),(r&62914560)!==0&&(NI=a),(r&2080374784)!==0&&(kI=a)}function _a(r,a){kr&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",Pn,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",Pn,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",Pn,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",Pn,"primary-light"));var u=ma;if(ma=Vi(),En!==0&&0<u){if(So(En),ti===sw||ti===W0)V6(u,ma,a,yi);else{var g=ma,x=yi;if(kr&&!(g<=u)){var E=(a&738197653)===a?"tertiary-dark":"primary-dark",M=(a&536870912)===a?"Prewarm":(a&201326741)===a?"Interrupted Hydration":"Interrupted Render";x?x.run(console.timeStamp.bind(console,M,u,g,$n,Pn,E)):console.timeStamp(M,u,g,$n,Pn,E)}}Il(En,ma)}if(u=yi,yi=null,(a&127)!==0){yi=Zx,x=0<=Hc&&Hc<vm?vm:Hc,g=0<=bm&&bm<vm?vm:bm,E=0<=g?g:0<=x?x:ma,0<=XE?(So(2),B6(XE,E,a,u)):QE&127,u=x;var D=g,q=Jx,K=0<$y,Ee=G0===Kx,Ae=G0===YE;if(x=ma,g=Zx,E=wA,M=TA,kr){if($n="Blocking",0<u?u>x&&(u=x):u=x,0<D?D>u&&(D=u):D=u,q!==null&&u>D){var ge=K?"secondary-light":"warning";g?g.run(console.timeStamp.bind(console,K?"Consecutive":"Event: "+q,D,u,$n,Pn,ge)):console.timeStamp(K?"Consecutive":"Event: "+q,D,u,$n,Pn,ge)}x>u&&(D=Ee?"error":(a&738197653)===a?"tertiary-light":"primary-light",Ee=Ae?"Promise Resolved":Ee?"Cascading Update":5<x-u?"Update Blocked":"Update",Ae=[],M!=null&&Ae.push(["Component name",M]),E!=null&&Ae.push(["Method name",E]),u={start:u,end:x,detail:{devtools:{properties:Ae,track:$n,trackGroup:Pn,color:D}}},g?g.run(performance.measure.bind(performance,Ee,u)):performance.measure(Ee,u))}Hc=-1.1,G0=0,TA=wA=null,XE=-1.1,$y=bm,bm=-1.1,vm=Vi()}if((a&4194048)!==0&&(yi=e5,x=0<=gd&&gd<md?md:gd,u=0<=Qs&&Qs<md?md:Qs,g=0<=F0&&F0<md?md:F0,E=0<=g?g:0<=u?u:ma,0<=WE?(So(256),B6(WE,E,a,yi)):QE&4194048,Ae=g,D=xm,q=0<Y0,K=AA===YE,E=ma,g=e5,M=_I,Ee=DI,kr&&($n="Transition",0<u?u>E&&(u=E):u=E,0<x?x>u&&(x=u):x=u,0<Ae?Ae>x&&(Ae=x):Ae=x,x>Ae&&D!==null&&(ge=q?"secondary-light":"warning",g?g.run(console.timeStamp.bind(console,q?"Consecutive":"Event: "+D,Ae,x,$n,Pn,ge)):console.timeStamp(q?"Consecutive":"Event: "+D,Ae,x,$n,Pn,ge)),u>x&&(g?g.run(console.timeStamp.bind(console,"Action",x,u,$n,Pn,"primary-dark")):console.timeStamp("Action",x,u,$n,Pn,"primary-dark")),E>u&&(x=K?"Promise Resolved":5<E-u?"Update Blocked":"Update",Ae=[],Ee!=null&&Ae.push(["Component name",Ee]),M!=null&&Ae.push(["Method name",M]),u={start:u,end:E,detail:{devtools:{properties:Ae,track:$n,trackGroup:Pn,color:"primary-light"}}},g?g.run(performance.measure.bind(performance,x,u)):performance.measure(x,u))),Qs=gd=-1.1,AA=0,WE=-1.1,Y0=F0,F0=-1.1,md=Vi()),(a&62914560)!==0&&(QE&62914560)!==0&&(So(4194304),t4(NI,ma)),(a&2080374784)!==0&&(QE&2080374784)!==0&&(So(268435456),t4(kI,ma)),u=r.timeoutHandle,u!==Im&&(r.timeoutHandle=Im,Vfe(u)),u=r.cancelPendingCommit,u!==null&&(r.cancelPendingCommit=null,u()),Pu=0,H1(),wr=r,Cn=u=fs(r.current,null),En=a,pr=dl,Gl=null,Q0=!1,ev=Ze(r,a),qA=!1,ti=Sd,_m=hl=GA=Z0=K0=0,Bo=x5=null,dw=!1,(a&8)!==0&&(a|=a&32),g=r.entangledLanes,g!==0)for(r=r.entanglements,g&=a;0<g;)x=31-ea(g),E=1<<x,a|=r[x],g&=~E;return Gc=a,Jd(),r=TI(),1e3<r-wI&&($e.recentlyCreatedOwnerStacks=0,wI=r),Vu.discardPendingWarnings(),u}function J4(r,a){an=null,$e.H=p5,$e.getCurrentStack=null,sl=!1,Do=null,a===qy||a===ew?(a=rp(),pr=v5):a===RA?(a=rp(),pr=RL):pr=a===jA?HA:a!==null&&typeof a=="object"&&typeof a.then=="function"?b5:cw,Gl=a;var u=Cn;u===null?(ti=y5,wp(r,Ta(a,r.current))):u.mode&xn&&t0(u)}function q1(){var r=$l.current;return r===null?!0:(En&4194048)===En?Ks===null:(En&62914560)===En||(En&536870912)!==0?r===Ks:!1}function ex(){var r=$e.H;return $e.H=p5,r===null?p5:r}function G1(){var r=$e.A;return $e.A=wfe,r}function S0(r){yi===null&&(yi=r._debugTask==null?null:r._debugTask)}function Qf(){ti=W0,Q0||(En&4194048)!==En&&$l.current!==null||(ev=!0),(K0&134217727)===0&&(Z0&134217727)===0||wr===null||Ra(wr,En,hl,!1)}function F1(r,a,u){var g=Gn;Gn|=ia;var x=ex(),E=G1();if(wr!==r||En!==a){if(ul){var M=r.memoizedUpdaters;0<M.size&&(Ls(r,En),M.clear()),bn(r,a)}S5=null,_a(r,a)}a=!1,M=ti;e:do try{if(pr!==dl&&Cn!==null){var D=Cn,q=Gl;switch(pr){case HA:H1(),M=uw;break e;case v5:case Mm:case Rm:case b5:$l.current===null&&(a=!0);var K=pr;if(pr=dl,Gl=null,Kf(r,D,q,K),u&&ev){M=Sd;break e}break;default:K=pr,pr=dl,Gl=null,Kf(r,D,q,K)}}ks(),M=ti;break}catch(Ee){J4(r,Ee)}while(!0);return a&&r.shellSuspendCounter++,vc(),Gn=g,$e.H=x,$e.A=E,Cn===null&&(wr=null,En=0,Jd()),M}function ks(){for(;Cn!==null;)nx(Cn)}function gi(r,a){var u=Gn;Gn|=ia;var g=ex(),x=G1();if(wr!==r||En!==a){if(ul){var E=r.memoizedUpdaters;0<E.size&&(Ls(r,En),E.clear()),bn(r,a)}S5=null,pw=Jr()+NL,_a(r,a)}else ev=Ze(r,a);e:do try{if(pr!==dl&&Cn!==null)t:switch(a=Cn,E=Gl,pr){case cw:pr=dl,Gl=null,Kf(r,a,E,cw);break;case Mm:case Rm:if(Co(E)){pr=dl,Gl=null,Ei(a);break}a=function(){pr!==Mm&&pr!==Rm||wr!==r||(pr=fw),Na(r)},E.then(a,a);break e;case v5:pr=fw;break e;case RL:pr=$A;break e;case fw:Co(E)?(pr=dl,Gl=null,Ei(a)):(pr=dl,Gl=null,Kf(r,a,E,fw));break;case $A:var M=null;switch(Cn.tag){case 26:M=Cn.memoizedState;case 5:case 27:var D=Cn;if(M?oy(M):D.stateNode.complete){pr=dl,Gl=null;var q=D.sibling;if(q!==null)Cn=q;else{var K=D.return;K!==null?(Cn=K,Bp(K)):Cn=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}pr=dl,Gl=null,Kf(r,a,E,$A);break;case b5:pr=dl,Gl=null,Kf(r,a,E,b5);break;case HA:H1(),ti=uw;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}$e.actQueue!==null?ks():tx();break}catch(Ee){J4(r,Ee)}while(!0);return vc(),$e.H=g,$e.A=x,Gn=u,Cn!==null?Sd:(wr=null,En=0,Jd(),ti)}function tx(){for(;Cn!==null&&!Ey();)nx(Cn)}function nx(r){var a=r.alternate;(r.mode&xn)!==Zt?(o1(r),a=Be(r,I1,a,r,Gc),t0(r)):a=Be(r,I1,a,r,Gc),r.memoizedProps=r.pendingProps,a===null?Bp(r):Cn=a}function Ei(r){var a=Be(r,X8,r);r.memoizedProps=r.pendingProps,a===null?Bp(r):Cn=a}function X8(r){var a=r.alternate,u=(r.mode&xn)!==Zt;switch(u&&o1(r),r.tag){case 15:case 0:a=Hf(a,r,r.pendingProps,r.type,void 0,En);break;case 11:a=Hf(a,r,r.pendingProps,r.type.render,r.ref,En);break;case 5:Tc(r);default:K6(a,r),r=Cn=e0(r,Gc),a=I1(a,r,Gc)}return u&&t0(r),a}function Kf(r,a,u,g){vc(),Tc(a),Gy=null,c5=0;var x=a.return;try{if(F6(r,x,a,u,En)){ti=y5,wp(r,Ta(u,r.current)),Cn=null;return}}catch(E){if(x!==null)throw Cn=x,E;ti=y5,wp(r,Ta(u,r.current)),Cn=null;return}a.flags&32768?(In||g===cw?r=!0:ev||(En&536870912)!==0?r=!1:(Q0=r=!0,(g===Mm||g===Rm||g===v5||g===b5)&&(g=$l.current,g!==null&&g.tag===13&&(g.flags|=16384))),Mr(a,r)):Bp(a)}function Bp(r){var a=r;do{if((a.flags&32768)!==0){Mr(a,Q0);return}var u=a.alternate;if(r=a.return,o1(a),u=Be(a,W6,u,a,Gc),(a.mode&xn)!==Zt&&Nf(a),u!==null){Cn=u;return}if(a=a.sibling,a!==null){Cn=a;return}Cn=a=r}while(a!==null);ti===Sd&&(ti=ML)}function Mr(r,a){do{var u=Q6(r.alternate,r);if(u!==null){u.flags&=32767,Cn=u;return}if((r.mode&xn)!==Zt){Nf(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),!a&&(r=r.sibling,r!==null)){Cn=r;return}Cn=r=u}while(r!==null);ti=uw,Cn=null}function fa(r,a,u,g,x,E,M,D,q,K,Ee,Ae,ge,Le){r.cancelPendingCommit=null;do kc();while($i!==eh);if(Vu.flushLegacyContextWarning(),Vu.flushPendingUnsafeLifecycleWarnings(),(Gn&(ia|ql))!==ya)throw Error("Should not already be working.");if(So(u),K===Om?e4(ge,Le,u,yi):g!==null?q8(ge,Le,u,g,a!==null&&a.alternate!==null&&a.alternate.memoizedState.isDehydrated&&(a.flags&256)!==0,yi):H8(ge,Le,u,yi),a!==null){if(u===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),a===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=a.lanes|a.childLanes,E|=vA,ut(r,u,E,M,D,q),r===wr&&(Cn=wr=null,En=0),tv=a,th=r,Pu=u,XA=E,QA=x,BL=g,WA=Le,jL=Ae,Uu=mw,PL=null,a.actualDuration!==0||(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,Pp(sd,function(){return O5=window.event,Uu===mw&&(Uu=YA),Da(),null})):(r.callbackNode=null,r.callbackPriority=0),pd=null,q0=Vi(),Ae!==null&&G8(Le,q0,Ae,yi),g=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||g){g=$e.T,$e.T=null,x=Kn.p,Kn.p=Ti,M=Gn,Gn|=ql;try{q4(r,a,u)}finally{Gn=M,Kn.p=x,$e.T=g}}$i=zL,zs(),rx(),ix()}}function zs(){if($i===zL){$i=eh;var r=th,a=tv,u=Pu,g=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||g){g=$e.T,$e.T=null;var x=Kn.p;Kn.p=Ti;var E=Gn;Gn|=ql;try{Zy=u,Jy=r,Aa(),X4(a,r),Jy=Zy=null,u=lC;var M=z6(r.containerInfo),D=u.focusedElem,q=u.selectionRange;if(M!==D&&D&&D.ownerDocument&&Kg(D.ownerDocument.documentElement,D)){if(q!==null&&Zb(D)){var K=q.start,Ee=q.end;if(Ee===void 0&&(Ee=K),"selectionStart"in D)D.selectionStart=K,D.selectionEnd=Math.min(Ee,D.value.length);else{var Ae=D.ownerDocument||document,ge=Ae&&Ae.defaultView||window;if(ge.getSelection){var Le=ge.getSelection(),mt=D.textContent.length,Et=Math.min(q.start,mt),Rr=q.end===void 0?Et:Math.min(q.end,mt);!Le.extend&&Et>Rr&&(M=Rr,Rr=Et,Et=M);var Un=k6(D,Et),he=k6(D,Rr);if(Un&&he&&(Le.rangeCount!==1||Le.anchorNode!==Un.node||Le.anchorOffset!==Un.offset||Le.focusNode!==he.node||Le.focusOffset!==he.offset)){var ye=Ae.createRange();ye.setStart(Un.node,Un.offset),Le.removeAllRanges(),Et>Rr?(Le.addRange(ye),Le.extend(he.node,he.offset)):(ye.setEnd(he.node,he.offset),Le.addRange(ye))}}}}for(Ae=[],Le=D;Le=Le.parentNode;)Le.nodeType===1&&Ae.push({element:Le,left:Le.scrollLeft,top:Le.scrollTop});for(typeof D.focus=="function"&&D.focus(),D=0;D<Ae.length;D++){var xe=Ae[D];xe.element.scrollLeft=xe.left,xe.element.scrollTop=xe.top}}Dw=!!oC,lC=oC=null}finally{Gn=E,Kn.p=x,$e.T=g}}r.current=a,$i=IL}}function rx(){if($i===IL){$i=eh;var r=PL;if(r!==null){q0=Vi();var a=hd,u=q0;!kr||u<=a||console.timeStamp(r,a,u,$n,Pn,"secondary-light")}r=th,a=tv,u=Pu;var g=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||g){g=$e.T,$e.T=null;var x=Kn.p;Kn.p=Ti;var E=Gn;Gn|=ql;try{Zy=u,Jy=r,Aa(),li(r,a.alternate,a),Jy=Zy=null}finally{Gn=E,Kn.p=x,$e.T=g}}r=WA,a=jL,hd=Vi(),r=a===null?r:q0,a=hd,u=Uu===FA,g=yi,pd!==null?j6(r,a,pd,!1,g):!kr||a<=r||(g?g.run(console.timeStamp.bind(console,u?"Commit Interrupted View Transition":"Commit",r,a,$n,Pn,u?"error":"secondary-dark")):console.timeStamp(u?"Commit Interrupted View Transition":"Commit",r,a,$n,Pn,u?"error":"secondary-dark")),$i=LL}}function ix(){if($i===VL||$i===LL){if($i===VL){var r=hd;hd=Vi();var a=hd,u=Uu===FA;!kr||a<=r||console.timeStamp(u?"Interrupted View Transition":"Starting Animation",r,a,$n,Pn,u?" error":"secondary-light"),Uu!==FA&&(Uu=kL)}$i=eh,tA(),r=th;var g=tv;a=Pu,u=BL;var x=g.actualDuration!==0||(g.subtreeFlags&10256)!==0||(g.flags&10256)!==0;x?$i=gw:($i=eh,tv=th=null,aE(r,r.pendingLanes),Dm=0,w5=null);var E=r.pendingLanes;if(E===0&&(J0=null),x||rl(r),E=Fr(a),g=g.stateNode,ha&&typeof ha.onCommitFiberRoot=="function")try{var M=(g.current.flags&128)===128;switch(E){case Ti:var D=wy;break;case ta:D=Ty;break;case No:D=sd;break;case jc:D=um;break;default:D=sd}ha.onCommitFiberRoot(Iu,g,D,M)}catch(Ae){$s||($s=!0,console.error("React instrumentation encountered an error: %o",Ae))}if(ul&&r.memoizedUpdaters.clear(),nE(),u!==null){M=$e.T,D=Kn.p,Kn.p=Ti,$e.T=null;try{var q=r.onRecoverableError;for(g=0;g<u.length;g++){var K=u[g],Ee=iE(K.stack);Be(K.source,q,K.value,Ee)}}finally{$e.T=M,Kn.p=D}}(Pu&3)!==0&&kc(),Na(r),E=r.pendingLanes,(a&261930)!==0&&(E&42)!==0?(ZE=!0,r===KA?E5++:(E5=0,KA=r)):E5=0,x||Il(a,hd),E0(0)}}function iE(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 aE(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,Jh(a)))}function kc(){return zs(),rx(),ix(),Da()}function Da(){if($i!==gw)return!1;var r=th,a=XA;XA=0;var u=Fr(Pu),g=No>u?No:u;u=$e.T;var x=Kn.p;try{Kn.p=g,$e.T=null;var E=QA;QA=null,g=th;var M=Pu;if($i=eh,tv=th=null,Pu=0,(Gn&(ia|ql))!==ya)throw Error("Cannot flush passive effects while already rendering.");So(M),ZA=!0,yw=!1;var D=0;if(pd=null,D=Jr(),Uu===kL)t4(hd,D,gfe);else{var q=hd,K=D,Ee=Uu===YA;!kr||K<=q||(yi?yi.run(console.timeStamp.bind(console,Ee?"Waiting for Paint":"Waiting",q,K,$n,Pn,"secondary-light")):console.timeStamp(Ee?"Waiting for Paint":"Waiting",q,K,$n,Pn,"secondary-light"))}q=Gn,Gn|=ql;var Ae=g.current;Aa(),tE(Ae);var ge=g.current;Ae=WA,Aa(),P1(g,ge,M,E,Ae),rl(g),Gn=q;var Le=Jr();if(ge=D,Ae=yi,pd!==null?j6(ge,Le,pd,!0,Ae):!kr||Le<=ge||(Ae?Ae.run(console.timeStamp.bind(console,"Remaining Effects",ge,Le,$n,Pn,"secondary-dark")):console.timeStamp("Remaining Effects",ge,Le,$n,Pn,"secondary-dark")),Il(M,Le),E0(0,!1),yw?g===w5?Dm++:(Dm=0,w5=g):Dm=0,yw=ZA=!1,ha&&typeof ha.onPostCommitFiberRoot=="function")try{ha.onPostCommitFiberRoot(Iu,g)}catch(Et){$s||($s=!0,console.error("React instrumentation encountered an error: %o",Et))}var mt=g.current.stateNode;return mt.effectDuration=0,mt.passiveEffectDuration=0,!0}finally{Kn.p=x,$e.T=u,aE(r,a)}}function nl(r,a,u){a=Ta(u,a),Qa(a),a=T1(r.stateNode,a,2),r=Oa(r,a,2),r!==null&&(pt(r,2),Na(r))}function Yn(r,a,u){if(nv=!1,r.tag===3)nl(r,r,u);else{for(;a!==null;){if(a.tag===3){nl(a,r,u);return}if(a.tag===1){var g=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(J0===null||!J0.has(g))){r=Ta(u,r),Qa(r),u=A1(2),g=Oa(a,u,2),g!==null&&(Tp(u,g,a,r),pt(g,2),Na(g));return}}a=a.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.
|
|
246
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+g,Be(a,function(D,q){console.error("%s must not return anything besides a function, which is used for clean-up.%s",D,q)},E,M)}u=u.next}while(u!==x)}}catch(D){Yn(a,a.return,D)}}function Cu(r,a,u){try{var g=a.updateQueue,x=g!==null?g.lastEffect:null;if(x!==null){var E=x.next;g=E;do{if((g.tag&r)===r){var M=g.inst,D=M.destroy;D!==void 0&&(M.destroy=void 0,(r&Lo)!==rw&&(nv=!0),x=a,Be(x,bfe,x,u,D),(r&Lo)!==rw&&(nv=!1))}g=g.next}while(g!==E)}}catch(q){Yn(a,a.return,q)}}function L4(r,a){Rs(r)?(Ko(),Gf(a,r),ys()):Gf(a,r)}function V1(r,a,u){Rs(r)?(Ko(),Cu(u,r,a),ys()):Cu(u,r,a)}function y0(r){var a=r.updateQueue;if(a!==null){var u=r.stateNode;r.type.defaultProps||"ref"in r.memoizedProps||Ky||(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.",ue(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.",ue(r)||"instance"));try{Be(r,c1,a,u)}catch(g){Yn(r,r.return,g)}}}function Z6(r,a,u){return r.getSnapshotBeforeUpdate(a,u)}function V4(r,a){var u=a.memoizedProps,g=a.memoizedState;a=r.stateNode,r.type.defaultProps||"ref"in r.memoizedProps||Ky||(a.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.",ue(r)||"instance"),a.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.",ue(r)||"instance"));try{var x=Au(r.type,u),E=Be(r,Z6,a,x,g);u=CL,E!==void 0||u.has(r.type)||(u.add(r.type),Be(r,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",ue(r))})),a.__reactInternalSnapshotBeforeUpdate=E}catch(M){Yn(r,r.return,M)}}function B4(r,a,u){u.props=Au(r.type,r.memoizedProps),u.state=r.memoizedState,Rs(r)?(Ko(),Be(r,GI,r,a,u),ys()):Be(r,GI,r,a,u)}function j4(r){var a=r.ref;if(a!==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 a=="function")if(Rs(r))try{Ko(),r.refCleanup=a(u)}finally{ys()}else r.refCleanup=a(u);else typeof a=="string"?console.error("String refs are no longer supported."):a.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",ue(r)),a.current=u}}function Ff(r,a){try{Be(r,j4,r)}catch(u){Yn(r,a,u)}}function zl(r,a){var u=r.ref,g=r.refCleanup;if(u!==null)if(typeof g=="function")try{if(Rs(r))try{Ko(),Be(r,g)}finally{ys(r)}else Be(r,g)}catch(x){Yn(r,a,x)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof u=="function")try{if(Rs(r))try{Ko(),Be(r,u,null)}finally{ys(r)}else Be(r,u,null)}catch(x){Yn(r,a,x)}else u.current=null}function P4(r,a,u,g){var x=r.memoizedProps,E=x.id,M=x.onCommit;x=x.onRender,a=a===null?"mount":"update",KE&&(a="nested-update"),typeof x=="function"&&x(E,a,r.actualDuration,r.treeBaseDuration,r.actualStartTime,u),typeof M=="function"&&M(E,a,g,u)}function Yf(r,a,u,g){var x=r.memoizedProps;r=x.id,x=x.onPostCommit,a=a===null?"mount":"update",KE&&(a="nested-update"),typeof x=="function"&&x(r,a,g,u)}function U4(r){var a=r.type,u=r.memoizedProps,g=r.stateNode;try{Be(r,fE,g,a,u,r)}catch(x){Yn(r,r.return,x)}}function B1(r,a,u){try{Be(r,hx,r.stateNode,r.type,u,a,r)}catch(g){Yn(r,r.return,g)}}function $4(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&Du(r.type)||r.tag===4}function v0(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||$4(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&&Du(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 j1(r,a,u){var g=r.tag;if(g===5||g===6)r=r.stateNode,a?(hE(u),(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(r,a)):(hE(u),a=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,a.appendChild(r),u=u._reactRootContainer,u!=null||a.onclick!==null||(a.onclick=Gi));else if(g!==4&&(g===27&&Du(r.type)&&(u=r.stateNode,a=null),r=r.child,r!==null))for(j1(r,a,u),r=r.sibling;r!==null;)j1(r,a,u),r=r.sibling}function b0(r,a,u){var g=r.tag;if(g===5||g===6)r=r.stateNode,a?u.insertBefore(r,a):u.appendChild(r);else if(g!==4&&(g===27&&Du(r.type)&&(u=r.stateNode),r=r.child,r!==null))for(b0(r,a,u),r=r.sibling;r!==null;)b0(r,a,u),r=r.sibling}function J6(r){for(var a,u=r.return;u!==null;){if($4(u)){a=u;break}u=u.return}if(a==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(a.tag){case 27:a=a.stateNode,u=v0(r),b0(r,u,a);break;case 5:u=a.stateNode,a.flags&32&&(dE(u),a.flags&=-33),a=v0(r),b0(r,a,u);break;case 3:case 4:a=a.stateNode.containerInfo,u=v0(r),j1(r,u,a);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function H4(r){var a=r.stateNode,u=r.memoizedProps;try{Be(r,Qp,r.type,u,a,r)}catch(g){Yn(r,r.return,g)}}function eE(r,a){return a.tag===31?(a=a.memoizedState,r.memoizedState!==null&&a===null):a.tag===13?(r=r.memoizedState,a=a.memoizedState,r!==null&&r.dehydrated!==null&&(a===null||a.dehydrated===null)):a.tag===3?r.memoizedState.isDehydrated&&(a.flags&256)===0:!1}function q4(r,a){if(r=r.containerInfo,oC=Dw,r=z6(r),Zb(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 x=g.anchorOffset,E=g.focusNode;g=g.focusOffset;try{u.nodeType,E.nodeType}catch{u=null;break e}var M=0,D=-1,q=-1,K=0,Ee=0,Ae=r,ge=null;t:for(;;){for(var Le;Ae!==u||x!==0&&Ae.nodeType!==3||(D=M+x),Ae!==E||g!==0&&Ae.nodeType!==3||(q=M+g),Ae.nodeType===3&&(M+=Ae.nodeValue.length),(Le=Ae.firstChild)!==null;)ge=Ae,Ae=Le;for(;;){if(Ae===r)break t;if(ge===u&&++K===x&&(D=M),ge===E&&++Ee===g&&(q=M),(Le=Ae.nextSibling)!==null)break;Ae=ge,ge=Ae.parentNode}Ae=Le}u=D===-1||q===-1?null:{start:D,end:q}}else u=null}u=u||{start:0,end:0}}else u=null;for(lC={focusedElem:r,selectionRange:u},Dw=!1,ga=a;ga!==null;)if(a=ga,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,ga=r;else for(;ga!==null;){switch(r=a=ga,u=r.alternate,x=r.flags,r.tag){case 0:if((x&4)!==0&&(r=r.updateQueue,r=r!==null?r.events:null,r!==null))for(u=0;u<r.length;u++)x=r[u],x.ref.impl=x.nextImpl;break;case 11:case 15:break;case 1:(x&1024)!==0&&u!==null&&V4(r,u);break;case 3:if((x&1024)!==0){if(r=r.stateNode.containerInfo,u=r.nodeType,u===9)J1(r);else if(u===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":J1(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((x&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=a.sibling,r!==null){r.return=a.return,ga=r;break}ga=a.return}}function li(r,a,u){var g=zi(),x=wo(),E=Qo(),M=oa(),D=u.flags;switch(u.tag){case 0:case 11:case 15:Jo(r,u),D&4&&I4(u,Hl|Zs);break;case 1:if(Jo(r,u),D&4)if(r=u.stateNode,a===null)u.type.defaultProps||"ref"in u.memoizedProps||Ky||(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.",ue(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.",ue(u)||"instance")),Rs(u)?(Ko(),Be(u,MA,u,r),ys()):Be(u,MA,u,r);else{var q=Au(u.type,a.memoizedProps);a=a.memoizedState,u.type.defaultProps||"ref"in u.memoizedProps||Ky||(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.",ue(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.",ue(u)||"instance")),Rs(u)?(Ko(),Be(u,$I,u,r,q,a,r.__reactInternalSnapshotBeforeUpdate),ys()):Be(u,$I,u,r,q,a,r.__reactInternalSnapshotBeforeUpdate)}D&64&&y0(u),D&512&&Ff(u,u.return);break;case 3:if(a=Ml(),Jo(r,u),D&64&&(D=u.updateQueue,D!==null)){if(q=null,u.child!==null)switch(u.child.tag){case 27:case 5:q=u.child.stateNode;break;case 1:q=u.child.stateNode}try{Be(u,c1,D,q)}catch(Ee){Yn(u,u.return,Ee)}}r.effectDuration+=Wa(a);break;case 27:a===null&&D&4&&H4(u);case 26:case 5:if(Jo(r,u),a===null){if(D&4)U4(u);else if(D&64){r=u.type,a=u.memoizedProps,q=u.stateNode;try{Be(u,K1,q,r,a,u)}catch(Ee){Yn(u,u.return,Ee)}}}D&512&&Ff(u,u.return);break;case 12:if(D&4){D=Ml(),Jo(r,u),r=u.stateNode,r.effectDuration+=Sc(D);try{Be(u,P4,u,a,q0,r.effectDuration)}catch(Ee){Yn(u,u.return,Ee)}}else Jo(r,u);break;case 31:Jo(r,u),D&4&&F4(r,u);break;case 13:Jo(r,u),D&4&&Y4(r,u),D&64&&(r=u.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(D=Zf.bind(null,u),Q8(r,D))));break;case 22:if(D=u.memoizedState!==null||xd,!D){a=a!==null&&a.memoizedState!==null||Pi,q=xd;var K=Pi;xd=D,(Pi=a)&&!K?(el(r,u,(u.subtreeFlags&8772)!==0),(u.mode&xn)!==Zt&&0<=$t&&0<=Xt&&.05<Xt-$t&&Zg(u,$t,Xt)):Jo(r,u),xd=q,Pi=K}break;case 30:break;default:Jo(r,u)}(u.mode&xn)!==Zt&&0<=$t&&0<=Xt&&((ui||.05<ei)&&cs(u,$t,Xt,ei,jr),u.alternate===null&&u.return!==null&&u.return.alternate!==null&&.05<Xt-$t&&(eE(u.return.alternate,u.return)||us(u,$t,Xt,"Mount"))),Ca(g),To(x),jr=E,ui=M}function Ii(r){var a=r.alternate;a!==null&&(r.alternate=null,Ii(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&Oe(a)),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 _s(r,a,u){for(u=u.child;u!==null;)G4(r,a,u),u=u.sibling}function G4(r,a,u){if(ha&&typeof ha.onCommitFiberUnmount=="function")try{ha.onCommitFiberUnmount(Iu,u)}catch(K){$s||($s=!0,console.error("React instrumentation encountered an error: %o",K))}var g=zi(),x=wo(),E=Qo(),M=oa();switch(u.tag){case 26:Pi||zl(u,a),_s(r,a,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(r=u.stateNode,r.parentNode.removeChild(r));break;case 27:Pi||zl(u,a);var D=Ui,q=fl;Du(u.type)&&(Ui=u.stateNode,fl=!1),_s(r,a,u),Be(u,Kp,u.stateNode),Ui=D,fl=q;break;case 5:Pi||zl(u,a);case 6:if(D=Ui,q=fl,Ui=null,_s(r,a,u),Ui=D,fl=q,Ui!==null)if(fl)try{Be(u,C0,Ui,u.stateNode)}catch(K){Yn(u,a,K)}else try{Be(u,pE,Ui,u.stateNode)}catch(K){Yn(u,a,K)}break;case 18:Ui!==null&&(fl?(r=Ui,Xp(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,u.stateNode),N0(r)):Xp(Ui,u.stateNode));break;case 4:D=Ui,q=fl,Ui=u.stateNode.containerInfo,fl=!0,_s(r,a,u),Ui=D,fl=q;break;case 0:case 11:case 14:case 15:Cu(Lo,u,a),Pi||qf(u,a,Hl),_s(r,a,u);break;case 1:Pi||(zl(u,a),D=u.stateNode,typeof D.componentWillUnmount=="function"&&B4(u,a,D)),_s(r,a,u);break;case 21:_s(r,a,u);break;case 22:Pi=(D=Pi)||u.memoizedState!==null,_s(r,a,u),Pi=D;break;default:_s(r,a,u)}(u.mode&xn)!==Zt&&0<=$t&&0<=Xt&&(ui||.05<ei)&&cs(u,$t,Xt,ei,jr),Ca(g),To(x),jr=E,ui=M}function F4(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{Be(a,gx,r)}catch(u){Yn(a,a.return,u)}}}function Y4(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Be(a,Bc,r)}catch(u){Yn(a,a.return,u)}}function _p(r){switch(r.tag){case 31:case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new OL),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new OL),a;default:throw Error("Unexpected Suspense handler tag ("+r.tag+"). This is a bug in React.")}}function Dp(r,a){var u=_p(r);a.forEach(function(g){if(!u.has(g)){if(u.add(g),ul)if(Zy!==null&&Jy!==null)Ls(Jy,Zy);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var x=Mu.bind(null,r,g);g.then(x,x)}})}function Qi(r,a){var u=a.deletions;if(u!==null)for(var g=0;g<u.length;g++){var x=r,E=a,M=u[g],D=zi(),q=E;e:for(;q!==null;){switch(q.tag){case 27:if(Du(q.type)){Ui=q.stateNode,fl=!1;break e}break;case 5:Ui=q.stateNode,fl=!1;break e;case 3:case 4:Ui=q.stateNode.containerInfo,fl=!0;break e}q=q.return}if(Ui===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");G4(x,E,M),Ui=null,fl=!1,(M.mode&xn)!==Zt&&0<=$t&&0<=Xt&&.05<Xt-$t&&us(M,$t,Xt,"Unmount"),Ca(D),x=M,E=x.alternate,E!==null&&(E.return=null),x.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)X4(a,r),a=a.sibling}function X4(r,a){var u=zi(),g=wo(),x=Qo(),E=oa(),M=r.alternate,D=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:Qi(a,r),ro(r),D&4&&(Cu(Lo|Zs,r,r.return),Gf(Lo|Zs,r),qf(r,r.return,Hl|Zs));break;case 1:if(Qi(a,r),ro(r),D&512&&(Pi||M===null||zl(M,M.return)),D&64&&xd&&(D=r.updateQueue,D!==null&&(M=D.callbacks,M!==null))){var q=D.shared.hiddenCallbacks;D.shared.hiddenCallbacks=q===null?M:q.concat(M)}break;case 26:if(q=ju,Qi(a,r),ro(r),D&512&&(Pi||M===null||zl(M,M.return)),D&4){var K=M!==null?M.memoizedState:null;if(D=r.memoizedState,M===null)if(D===null)if(r.stateNode===null){e:{D=r.type,M=r.memoizedProps,q=q.ownerDocument||q;t:switch(D){case"title":K=q.getElementsByTagName("title")[0],(!K||K[fm]||K[na]||K.namespaceURI===Dn||K.hasAttribute("itemprop"))&&(K=q.createElement(D),q.head.insertBefore(K,q.querySelector("head > title"))),jn(K,D,M),K[na]=r,vt(K),D=K;break e;case"link":var Ee=wE("link","href",q).get(D+(M.href||""));if(Ee){for(var Ae=0;Ae<Ee.length;Ae++)if(K=Ee[Ae],K.getAttribute("href")===(M.href==null||M.href===""?null:M.href)&&K.getAttribute("rel")===(M.rel==null?null:M.rel)&&K.getAttribute("title")===(M.title==null?null:M.title)&&K.getAttribute("crossorigin")===(M.crossOrigin==null?null:M.crossOrigin)){Ee.splice(Ae,1);break t}}K=q.createElement(D),jn(K,D,M),q.head.appendChild(K);break;case"meta":if(Ee=wE("meta","content",q).get(D+(M.content||""))){for(Ae=0;Ae<Ee.length;Ae++)if(K=Ee[Ae],xt(M.content,"content"),K.getAttribute("content")===(M.content==null?null:""+M.content)&&K.getAttribute("name")===(M.name==null?null:M.name)&&K.getAttribute("property")===(M.property==null?null:M.property)&&K.getAttribute("http-equiv")===(M.httpEquiv==null?null:M.httpEquiv)&&K.getAttribute("charset")===(M.charSet==null?null:M.charSet)){Ee.splice(Ae,1);break t}}K=q.createElement(D),jn(K,D,M),q.head.appendChild(K);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+D+'". This is a bug in React.')}K[na]=r,vt(K),D=K}r.stateNode=D}else Sx(q,r.type,r.stateNode);else r.stateNode=iy(q,D,r.memoizedProps);else K!==D?(K===null?M.stateNode!==null&&(M=M.stateNode,M.parentNode.removeChild(M)):K.count--,D===null?Sx(q,r.type,r.stateNode):iy(q,D,r.memoizedProps)):D===null&&r.stateNode!==null&&B1(r,r.memoizedProps,M.memoizedProps)}break;case 27:Qi(a,r),ro(r),D&512&&(Pi||M===null||zl(M,M.return)),M!==null&&D&4&&B1(r,r.memoizedProps,M.memoizedProps);break;case 5:if(Qi(a,r),ro(r),D&512&&(Pi||M===null||zl(M,M.return)),r.flags&32){q=r.stateNode;try{Be(r,dE,q)}catch(Et){Yn(r,r.return,Et)}}D&4&&r.stateNode!=null&&(q=r.memoizedProps,B1(r,q,M!==null?M.memoizedProps:q)),D&1024&&(UA=!0,r.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Qi(a,r),ro(r),D&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.");D=r.memoizedProps,M=M!==null?M.memoizedProps:D,q=r.stateNode;try{Be(r,W8,q,M,D)}catch(Et){Yn(r,r.return,Et)}}break;case 3:if(q=Ml(),Mw=null,K=ju,ju=Zp(a.containerInfo),Qi(a,r),ju=K,ro(r),D&4&&M!==null&&M.memoizedState.isDehydrated)try{Be(r,ry,a.containerInfo)}catch(Et){Yn(r,r.return,Et)}UA&&(UA=!1,Np(r)),a.effectDuration+=Wa(q);break;case 4:D=ju,ju=Zp(r.stateNode.containerInfo),Qi(a,r),ro(r),ju=D;break;case 12:D=Ml(),Qi(a,r),ro(r),r.stateNode.effectDuration+=Sc(D);break;case 31:Qi(a,r),ro(r),D&4&&(D=r.updateQueue,D!==null&&(r.updateQueue=null,Dp(r,D)));break;case 13:Qi(a,r),ro(r),r.child.flags&8192&&r.memoizedState!==null!=(M!==null&&M.memoizedState!==null)&&(hw=Jr()),D&4&&(D=r.updateQueue,D!==null&&(r.updateQueue=null,Dp(r,D)));break;case 22:q=r.memoizedState!==null;var ge=M!==null&&M.memoizedState!==null,Le=xd,mt=Pi;if(xd=Le||q,Pi=mt||ge,Qi(a,r),Pi=mt,xd=Le,ge&&!q&&!Le&&!mt&&(r.mode&xn)!==Zt&&0<=$t&&0<=Xt&&.05<Xt-$t&&Zg(r,$t,Xt),ro(r),D&8192)e:for(a=r.stateNode,a._visibility=q?a._visibility&~Wx:a._visibility|Wx,!q||M===null||ge||xd||Pi||(Dc(r),(r.mode&xn)!==Zt&&0<=$t&&0<=Xt&&.05<Xt-$t&&us(r,$t,Xt,"Disconnect")),M=null,a=r;;){if(a.tag===5||a.tag===26){if(M===null){ge=M=a;try{K=ge.stateNode,q?Be(ge,gE,K):Be(ge,bE,ge.stateNode,ge.memoizedProps)}catch(Et){Yn(ge,ge.return,Et)}}}else if(a.tag===6){if(M===null){ge=a;try{Ee=ge.stateNode,q?Be(ge,yE,Ee):Be(ge,Z1,Ee,ge.memoizedProps)}catch(Et){Yn(ge,ge.return,Et)}}}else if(a.tag===18){if(M===null){ge=a;try{Ae=ge.stateNode,q?Be(ge,mE,Ae):Be(ge,vE,ge.stateNode)}catch(Et){Yn(ge,ge.return,Et)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===r)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;M===a&&(M=null),a=a.return}M===a&&(M=null),a.sibling.return=a.return,a=a.sibling}D&4&&(D=r.updateQueue,D!==null&&(M=D.retryQueue,M!==null&&(D.retryQueue=null,Dp(r,M))));break;case 19:Qi(a,r),ro(r),D&4&&(D=r.updateQueue,D!==null&&(r.updateQueue=null,Dp(r,D)));break;case 30:break;case 21:break;default:Qi(a,r),ro(r)}(r.mode&xn)!==Zt&&0<=$t&&0<=Xt&&((ui||.05<ei)&&cs(r,$t,Xt,ei,jr),r.alternate===null&&r.return!==null&&r.return.alternate!==null&&.05<Xt-$t&&(eE(r.return.alternate,r.return)||us(r,$t,Xt,"Mount"))),Ca(u),To(g),jr=x,ui=E}function ro(r){var a=r.flags;if(a&2){try{Be(r,J6,r)}catch(u){Yn(r,r.return,u)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function Np(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;Np(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function Jo(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)li(r,a.alternate,a),a=a.sibling}function W4(r){var a=zi(),u=wo(),g=Qo(),x=oa();switch(r.tag){case 0:case 11:case 14:case 15:qf(r,r.return,Hl),Dc(r);break;case 1:zl(r,r.return);var E=r.stateNode;typeof E.componentWillUnmount=="function"&&B4(r,r.return,E),Dc(r);break;case 27:Be(r,Kp,r.stateNode);case 26:case 5:zl(r,r.return),Dc(r);break;case 22:r.memoizedState===null&&Dc(r);break;case 30:Dc(r);break;default:Dc(r)}(r.mode&xn)!==Zt&&0<=$t&&0<=Xt&&(ui||.05<ei)&&cs(r,$t,Xt,ei,jr),Ca(a),To(u),jr=g,ui=x}function Dc(r){for(r=r.child;r!==null;)W4(r),r=r.sibling}function Q4(r,a,u,g){var x=zi(),E=wo(),M=Qo(),D=oa(),q=u.flags;switch(u.tag){case 0:case 11:case 15:el(r,u,g),I4(u,Hl);break;case 1:if(el(r,u,g),a=u.stateNode,typeof a.componentDidMount=="function"&&Be(u,MA,u,a),a=u.updateQueue,a!==null){r=u.stateNode;try{Be(u,op,a,r)}catch(K){Yn(u,u.return,K)}}g&&q&64&&y0(u),Ff(u,u.return);break;case 27:H4(u);case 26:case 5:el(r,u,g),g&&a===null&&q&4&&U4(u),Ff(u,u.return);break;case 12:if(g&&q&4){q=Ml(),el(r,u,g),g=u.stateNode,g.effectDuration+=Sc(q);try{Be(u,P4,u,a,q0,g.effectDuration)}catch(K){Yn(u,u.return,K)}}else el(r,u,g);break;case 31:el(r,u,g),g&&q&4&&F4(r,u);break;case 13:el(r,u,g),g&&q&4&&Y4(r,u);break;case 22:u.memoizedState===null&&el(r,u,g),Ff(u,u.return);break;case 30:break;default:el(r,u,g)}(u.mode&xn)!==Zt&&0<=$t&&0<=Xt&&(ui||.05<ei)&&cs(u,$t,Xt,ei,jr),Ca(x),To(E),jr=M,ui=D}function el(r,a,u){for(u=u&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;)Q4(r,a.alternate,a,u),a=a.sibling}function kp(r,a){var u=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==u&&(r!=null&&Df(r),u!=null&&Jh(u))}function zp(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(Df(a),r!=null&&Jh(r))}function tl(r,a,u,g,x){if(a.subtreeFlags&10256||a.actualDuration!==0&&(a.alternate===null||a.alternate.child!==a.child))for(a=a.child;a!==null;){var E=a.sibling;P1(r,a,u,g,E!==null?E.actualStartTime:x),a=E}}function P1(r,a,u,g,x){var E=zi(),M=wo(),D=Qo(),q=oa(),K=P0,Ee=a.flags;switch(a.tag){case 0:case 11:case 15:(a.mode&xn)!==Zt&&0<a.actualStartTime&&(a.flags&1)!==0&&Jg(a,a.actualStartTime,x,ra,u),tl(r,a,u,g,x),Ee&2048&&L4(a,Vo|Zs);break;case 1:(a.mode&xn)!==Zt&&0<a.actualStartTime&&((a.flags&128)!==0?e1(a,a.actualStartTime,x,[]):(a.flags&1)!==0&&Jg(a,a.actualStartTime,x,ra,u)),tl(r,a,u,g,x);break;case 3:var Ae=Ml(),ge=ra;ra=a.alternate!==null&&a.alternate.memoizedState.isDehydrated&&(a.flags&256)===0,tl(r,a,u,g,x),ra=ge,Ee&2048&&(u=null,a.alternate!==null&&(u=a.alternate.memoizedState.cache),g=a.memoizedState.cache,g!==u&&(Df(g),u!=null&&Jh(u))),r.passiveEffectDuration+=Wa(Ae);break;case 12:if(Ee&2048){Ee=Ml(),tl(r,a,u,g,x),r=a.stateNode,r.passiveEffectDuration+=Sc(Ee);try{Be(a,Yf,a,a.alternate,q0,r.passiveEffectDuration)}catch(Le){Yn(a,a.return,Le)}}else tl(r,a,u,g,x);break;case 31:Ee=ra,Ae=a.alternate!==null?a.alternate.memoizedState:null,ge=a.memoizedState,Ae!==null&&ge===null?(ge=a.deletions,ge!==null&&0<ge.length&&ge[0].tag===18?(ra=!1,Ae=Ae.hydrationErrors,Ae!==null&&e1(a,a.actualStartTime,x,Ae)):ra=!0):ra=!1,tl(r,a,u,g,x),ra=Ee;break;case 13:Ee=ra,Ae=a.alternate!==null?a.alternate.memoizedState:null,ge=a.memoizedState,Ae===null||Ae.dehydrated===null||ge!==null&&ge.dehydrated!==null?ra=!1:(ge=a.deletions,ge!==null&&0<ge.length&&ge[0].tag===18?(ra=!1,Ae=Ae.hydrationErrors,Ae!==null&&e1(a,a.actualStartTime,x,Ae)):ra=!0),tl(r,a,u,g,x),ra=Ee;break;case 23:break;case 22:ge=a.stateNode,Ae=a.alternate,a.memoizedState!==null?ge._visibility&cd?tl(r,a,u,g,x):x0(r,a,u,g,x):ge._visibility&cd?tl(r,a,u,g,x):(ge._visibility|=cd,Ou(r,a,u,g,(a.subtreeFlags&10256)!==0||a.actualDuration!==0&&(a.alternate===null||a.alternate.child!==a.child),x),(a.mode&xn)===Zt||ra||(r=a.actualStartTime,0<=r&&.05<x-r&&Zg(a,r,x),0<=$t&&0<=Xt&&.05<Xt-$t&&Zg(a,$t,Xt))),Ee&2048&&kp(Ae,a);break;case 24:tl(r,a,u,g,x),Ee&2048&&zp(a.alternate,a);break;default:tl(r,a,u,g,x)}(a.mode&xn)!==Zt&&((r=!ra&&a.alternate===null&&a.return!==null&&a.return.alternate!==null)&&(u=a.actualStartTime,0<=u&&.05<x-u&&us(a,u,x,"Mount")),0<=$t&&0<=Xt&&((ui||.05<ei)&&cs(a,$t,Xt,ei,jr),r&&.05<Xt-$t&&us(a,$t,Xt,"Mount"))),Ca(E),To(M),jr=D,ui=q,P0=K}function Ou(r,a,u,g,x,E){for(x=x&&((a.subtreeFlags&10256)!==0||a.actualDuration!==0&&(a.alternate===null||a.alternate.child!==a.child)),a=a.child;a!==null;){var M=a.sibling;U1(r,a,u,g,x,M!==null?M.actualStartTime:E),a=M}}function U1(r,a,u,g,x,E){var M=zi(),D=wo(),q=Qo(),K=oa(),Ee=P0;x&&(a.mode&xn)!==Zt&&0<a.actualStartTime&&(a.flags&1)!==0&&Jg(a,a.actualStartTime,E,ra,u);var Ae=a.flags;switch(a.tag){case 0:case 11:case 15:Ou(r,a,u,g,x,E),L4(a,Vo);break;case 23:break;case 22:var ge=a.stateNode;a.memoizedState!==null?ge._visibility&cd?Ou(r,a,u,g,x,E):x0(r,a,u,g,E):(ge._visibility|=cd,Ou(r,a,u,g,x,E)),x&&Ae&2048&&kp(a.alternate,a);break;case 24:Ou(r,a,u,g,x,E),x&&Ae&2048&&zp(a.alternate,a);break;default:Ou(r,a,u,g,x,E)}(a.mode&xn)!==Zt&&0<=$t&&0<=Xt&&(ui||.05<ei)&&cs(a,$t,Xt,ei,jr),Ca(M),To(D),jr=q,ui=K,P0=Ee}function x0(r,a,u,g,x){if(a.subtreeFlags&10256||a.actualDuration!==0&&(a.alternate===null||a.alternate.child!==a.child))for(var E=a.child;E!==null;){a=E.sibling;var M=r,D=u,q=g,K=a!==null?a.actualStartTime:x,Ee=P0;(E.mode&xn)!==Zt&&0<E.actualStartTime&&(E.flags&1)!==0&&Jg(E,E.actualStartTime,K,ra,D);var Ae=E.flags;switch(E.tag){case 22:x0(M,E,D,q,K),Ae&2048&&kp(E.alternate,E);break;case 24:x0(M,E,D,q,K),Ae&2048&&zp(E.alternate,E);break;default:x0(M,E,D,q,K)}P0=Ee,E=a}}function Nc(r,a,u){if(r.subtreeFlags&m5)for(r=r.child;r!==null;)K4(r,a,u),r=r.sibling}function K4(r,a,u){switch(r.tag){case 26:Nc(r,a,u),r.flags&m5&&r.memoizedState!==null&&ly(u,ju,r.memoizedState,r.memoizedProps);break;case 5:Nc(r,a,u);break;case 3:case 4:var g=ju;ju=Zp(r.stateNode.containerInfo),Nc(r,a,u),ju=g;break;case 22:r.memoizedState===null&&(g=r.alternate,g!==null&&g.memoizedState!==null?(g=m5,m5=16777216,Nc(r,a,u),m5=g):Nc(r,a,u));break;default:Nc(r,a,u)}}function Ds(r){var a=r.alternate;if(a!==null&&(r=a.child,r!==null)){a.child=null;do a=r.sibling,r.sibling=null,r=a;while(r!==null)}}function Xf(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var g=a[u],x=zi();ga=g,$1(g,r),(g.mode&xn)!==Zt&&0<=$t&&0<=Xt&&.05<Xt-$t&&us(g,$t,Xt,"Unmount"),Ca(x)}Ds(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)tE(r),r=r.sibling}function tE(r){var a=zi(),u=wo(),g=Qo(),x=oa();switch(r.tag){case 0:case 11:case 15:Xf(r),r.flags&2048&&V1(r,r.return,Vo|Zs);break;case 3:var E=Ml();Xf(r),r.stateNode.passiveEffectDuration+=Wa(E);break;case 12:E=Ml(),Xf(r),r.stateNode.passiveEffectDuration+=Sc(E);break;case 22:E=r.stateNode,r.memoizedState!==null&&E._visibility&cd&&(r.return===null||r.return.tag!==13)?(E._visibility&=~cd,Ip(r),(r.mode&xn)!==Zt&&0<=$t&&0<=Xt&&.05<Xt-$t&&us(r,$t,Xt,"Disconnect")):Xf(r);break;default:Xf(r)}(r.mode&xn)!==Zt&&0<=$t&&0<=Xt&&(ui||.05<ei)&&cs(r,$t,Xt,ei,jr),Ca(a),To(u),ui=x,jr=g}function Ip(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var g=a[u],x=zi();ga=g,$1(g,r),(g.mode&xn)!==Zt&&0<=$t&&0<=Xt&&.05<Xt-$t&&us(g,$t,Xt,"Unmount"),Ca(x)}Ds(r)}for(r=r.child;r!==null;)Ns(r),r=r.sibling}function Ns(r){var a=zi(),u=wo(),g=Qo(),x=oa();switch(r.tag){case 0:case 11:case 15:V1(r,r.return,Vo),Ip(r);break;case 22:var E=r.stateNode;E._visibility&cd&&(E._visibility&=~cd,Ip(r));break;default:Ip(r)}(r.mode&xn)!==Zt&&0<=$t&&0<=Xt&&(ui||.05<ei)&&cs(r,$t,Xt,ei,jr),Ca(a),To(u),ui=x,jr=g}function $1(r,a){for(;ga!==null;){var u=ga,g=u,x=a,E=zi(),M=wo(),D=Qo(),q=oa();switch(g.tag){case 0:case 11:case 15:V1(g,x,Vo);break;case 23:case 22:g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(x=g.memoizedState.cachePool.pool,x!=null&&Df(x));break;case 24:Jh(g.memoizedState.cache)}if((g.mode&xn)!==Zt&&0<=$t&&0<=Xt&&(ui||.05<ei)&&cs(g,$t,Xt,ei,jr),Ca(E),To(M),ui=q,jr=D,g=u.child,g!==null)g.return=u,ga=g;else e:for(u=r;ga!==null;){if(g=ga,E=g.sibling,M=g.return,Ii(g),g===u){ga=null;break e}if(E!==null){E.return=M,ga=E;break e}ga=M}}}function nE(){Tfe.forEach(function(r){return r()})}function Lp(){var r=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return r||$e.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),r}function Ki(r){if((Gn&ia)!==ya&&En!==0)return En&-En;var a=$e.T;return a!==null?(a._updatedFibers||(a._updatedFibers=new Set),a._updatedFibers.add(r),Hn()):cr()}function Sr(){if(hl===0)if((En&536870912)===0||In){var r=V0;V0<<=1,(V0&3932160)===0&&(V0=262144),hl=r}else hl=536870912;return r=$l.current,r!==null&&(r.flags|=32),hl}function Br(r,a,u){if(nv&&console.error("useInsertionEffect must not schedule updates."),ZA&&(yw=!0),(r===wr&&(pr===Mm||pr===Rm)||r.cancelPendingCommit!==null)&&(_a(r,0),Ra(r,En,hl,!1)),pt(r,u),(Gn&ia)!==ya&&r===wr){if(sl)switch(a.tag){case 0:case 11:case 15:r=On&&ue(On)||"Unknown",$L.has(r)||($L.add(r),a=ue(a)||"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",a,r,r));break;case 1:UL||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),UL=!0)}}else ul&&Fn(r,a,u),Up(a),r===wr&&((Gn&ia)===ya&&(Z0|=u),ti===W0&&Ra(r,En,hl,!1)),Na(r)}function rE(r,a,u){if((Gn&(ia|ql))!==ya)throw Error("Should not already be working.");if(En!==0&&On!==null){var g=On,x=Jr();switch(zI){case v5:case Mm:var E=t5;kr&&((g=g._debugTask)?g.run(console.timeStamp.bind(console,"Suspended",E,x,qs,void 0,"primary-light")):console.timeStamp("Suspended",E,x,qs,void 0,"primary-light"));break;case Rm:E=t5,kr&&((g=g._debugTask)?g.run(console.timeStamp.bind(console,"Action",E,x,qs,void 0,"primary-light")):console.timeStamp("Action",E,x,qs,void 0,"primary-light"));break;default:kr&&(g=x-t5,3>g||console.timeStamp("Blocked",t5,x,qs,void 0,5>g?"primary-light":10>g?"primary":100>g?"primary-dark":"error"))}}E=(u=!u&&(a&127)===0&&(a&r.expiredLanes)===0||Ze(r,a))?gi(r,a):F1(r,a,!0);var M=u;do{if(E===Sd){ev&&!u&&Ra(r,a,0,!1),a=pr,t5=Vi(),zI=a;break}else{if(g=Jr(),x=r.current.alternate,M&&!Vp(x)){So(a),x=ma,E=g,!kr||E<=x||(yi?yi.run(console.timeStamp.bind(console,"Teared Render",x,E,$n,Pn,"error")):console.timeStamp("Teared Render",x,E,$n,Pn,"error")),Il(a,g),E=F1(r,a,!1),M=!1;continue}if(E===Om){if(M=a,r.errorRecoveryDisabledLanes&M)var D=0;else D=r.pendingLanes&-536870913,D=D!==0?D:D&536870912?536870912:0;if(D!==0){So(a),e4(ma,g,a,yi),Il(a,g),a=D;e:{g=r,E=M,M=x5;var q=g.current.memoizedState.isDehydrated;if(q&&(_a(g,D).flags|=256),D=F1(g,D,!1),D!==Om){if(qA&&!q){g.errorRecoveryDisabledLanes|=E,Z0|=E,E=W0;break e}g=Bo,Bo=M,g!==null&&(Bo===null?Bo=g:Bo.push.apply(Bo,g))}E=D}if(M=!1,E!==Om)continue;g=Jr()}}if(E===y5){So(a),e4(ma,g,a,yi),Il(a,g),_a(r,0),Ra(r,a,0,!0);break}e:{switch(u=r,E){case Sd:case y5:throw Error("Root did not complete. This is a bug in React.");case W0:if((a&4194048)!==a)break;case uw:So(a),V6(ma,g,a,yi),Il(a,g),x=a,(x&127)!==0?XE=g:(x&4194048)!==0&&(WE=g),Ra(u,a,hl,!Q0);break e;case Om:Bo=null;break;case sw:case ML:break;default:throw Error("Unknown root exit status.")}if($e.actQueue!==null)fa(u,x,a,Bo,S5,dw,hl,Z0,_m,E,null,null,ma,g);else{if((a&62914560)===a&&(M=hw+DL-Jr(),10<M)){if(Ra(u,a,hl,!Q0),Bt(u,0,!0)!==0)break e;Pu=a,u.timeoutHandle=QL(Z4.bind(null,u,x,Bo,S5,dw,a,hl,Z0,_m,Q0,E,"Throttled",ma,g),M);break e}Z4(u,x,Bo,S5,dw,a,hl,Z0,_m,Q0,E,null,ma,g)}}}break}while(!0);Na(r)}function Z4(r,a,u,g,x,E,M,D,q,K,Ee,Ae,ge,Le){r.timeoutHandle=Im;var mt=a.subtreeFlags,Et=null;if((mt&8192||(mt&16785408)===16785408)&&(Et={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Gi},K4(a,E,Et),mt=(E&62914560)===E?hw-Jr():(E&4194048)===E?_L-Jr():0,mt=Ex(Et,mt),mt!==null)){Pu=E,r.cancelPendingCommit=mt(fa.bind(null,r,a,E,u,g,x,M,D,q,Ee,Et,Et.waitingForViewTransition?"Waiting for the previous Animation":0<Et.count?0<Et.imgCount?"Suspended on CSS and Images":"Suspended on CSS":Et.imgCount===1?"Suspended on an Image":0<Et.imgCount?"Suspended on Images":null,ge,Le)),Ra(r,E,M,!K);return}fa(r,a,E,u,g,x,M,D,q,Ee,Et,Ae,ge,Le)}function Vp(r){for(var a=r;;){var u=a.tag;if((u===0||u===11||u===15)&&a.flags&16384&&(u=a.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var g=0;g<u.length;g++){var x=u[g],E=x.getSnapshot;x=x.value;try{if(!zo(E(),x))return!1}catch{return!1}}if(u=a.child,a.subtreeFlags&16384&&u!==null)u.return=a,a=u;else{if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ra(r,a,u,g){a&=~GA,a&=~Z0,r.suspendedLanes|=a,r.pingedLanes&=~a,g&&(r.warmLanes|=a),g=r.expirationTimes;for(var x=a;0<x;){var E=31-ea(x),M=1<<E;g[E]=-1,x&=~M}u!==0&&yt(r,u,a)}function Wf(){return(Gn&(ia|ql))===ya?(E0(0),!1):!0}function H1(){if(On!==null){if(pr===dl)var r=On.return;else r=On,vc(),Tc(r),Gy=null,c5=0,r=On;for(;r!==null;)K6(r.alternate,r),r=r.return;On=null}}function Il(r,a){(r&127)!==0&&(vm=a),(r&4194048)!==0&&(md=a),(r&62914560)!==0&&(NI=a),(r&2080374784)!==0&&(kI=a)}function _a(r,a){kr&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",Pn,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",Pn,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",Pn,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",Pn,"primary-light"));var u=ma;if(ma=Vi(),En!==0&&0<u){if(So(En),ti===sw||ti===W0)V6(u,ma,a,yi);else{var g=ma,x=yi;if(kr&&!(g<=u)){var E=(a&738197653)===a?"tertiary-dark":"primary-dark",M=(a&536870912)===a?"Prewarm":(a&201326741)===a?"Interrupted Hydration":"Interrupted Render";x?x.run(console.timeStamp.bind(console,M,u,g,$n,Pn,E)):console.timeStamp(M,u,g,$n,Pn,E)}}Il(En,ma)}if(u=yi,yi=null,(a&127)!==0){yi=Zx,x=0<=Hc&&Hc<vm?vm:Hc,g=0<=bm&&bm<vm?vm:bm,E=0<=g?g:0<=x?x:ma,0<=XE?(So(2),B6(XE,E,a,u)):QE&127,u=x;var D=g,q=Jx,K=0<$y,Ee=G0===Kx,Ae=G0===YE;if(x=ma,g=Zx,E=wA,M=TA,kr){if($n="Blocking",0<u?u>x&&(u=x):u=x,0<D?D>u&&(D=u):D=u,q!==null&&u>D){var ge=K?"secondary-light":"warning";g?g.run(console.timeStamp.bind(console,K?"Consecutive":"Event: "+q,D,u,$n,Pn,ge)):console.timeStamp(K?"Consecutive":"Event: "+q,D,u,$n,Pn,ge)}x>u&&(D=Ee?"error":(a&738197653)===a?"tertiary-light":"primary-light",Ee=Ae?"Promise Resolved":Ee?"Cascading Update":5<x-u?"Update Blocked":"Update",Ae=[],M!=null&&Ae.push(["Component name",M]),E!=null&&Ae.push(["Method name",E]),u={start:u,end:x,detail:{devtools:{properties:Ae,track:$n,trackGroup:Pn,color:D}}},g?g.run(performance.measure.bind(performance,Ee,u)):performance.measure(Ee,u))}Hc=-1.1,G0=0,TA=wA=null,XE=-1.1,$y=bm,bm=-1.1,vm=Vi()}if((a&4194048)!==0&&(yi=e5,x=0<=gd&&gd<md?md:gd,u=0<=Qs&&Qs<md?md:Qs,g=0<=F0&&F0<md?md:F0,E=0<=g?g:0<=u?u:ma,0<=WE?(So(256),B6(WE,E,a,yi)):QE&4194048,Ae=g,D=xm,q=0<Y0,K=AA===YE,E=ma,g=e5,M=_I,Ee=DI,kr&&($n="Transition",0<u?u>E&&(u=E):u=E,0<x?x>u&&(x=u):x=u,0<Ae?Ae>x&&(Ae=x):Ae=x,x>Ae&&D!==null&&(ge=q?"secondary-light":"warning",g?g.run(console.timeStamp.bind(console,q?"Consecutive":"Event: "+D,Ae,x,$n,Pn,ge)):console.timeStamp(q?"Consecutive":"Event: "+D,Ae,x,$n,Pn,ge)),u>x&&(g?g.run(console.timeStamp.bind(console,"Action",x,u,$n,Pn,"primary-dark")):console.timeStamp("Action",x,u,$n,Pn,"primary-dark")),E>u&&(x=K?"Promise Resolved":5<E-u?"Update Blocked":"Update",Ae=[],Ee!=null&&Ae.push(["Component name",Ee]),M!=null&&Ae.push(["Method name",M]),u={start:u,end:E,detail:{devtools:{properties:Ae,track:$n,trackGroup:Pn,color:"primary-light"}}},g?g.run(performance.measure.bind(performance,x,u)):performance.measure(x,u))),Qs=gd=-1.1,AA=0,WE=-1.1,Y0=F0,F0=-1.1,md=Vi()),(a&62914560)!==0&&(QE&62914560)!==0&&(So(4194304),t4(NI,ma)),(a&2080374784)!==0&&(QE&2080374784)!==0&&(So(268435456),t4(kI,ma)),u=r.timeoutHandle,u!==Im&&(r.timeoutHandle=Im,Vfe(u)),u=r.cancelPendingCommit,u!==null&&(r.cancelPendingCommit=null,u()),Pu=0,H1(),wr=r,On=u=fs(r.current,null),En=a,pr=dl,Gl=null,Q0=!1,ev=Ze(r,a),qA=!1,ti=Sd,_m=hl=GA=Z0=K0=0,Bo=x5=null,dw=!1,(a&8)!==0&&(a|=a&32),g=r.entangledLanes,g!==0)for(r=r.entanglements,g&=a;0<g;)x=31-ea(g),E=1<<x,a|=r[x],g&=~E;return Gc=a,Jd(),r=TI(),1e3<r-wI&&($e.recentlyCreatedOwnerStacks=0,wI=r),Vu.discardPendingWarnings(),u}function J4(r,a){an=null,$e.H=p5,$e.getCurrentStack=null,sl=!1,Do=null,a===qy||a===ew?(a=rp(),pr=v5):a===RA?(a=rp(),pr=RL):pr=a===jA?HA:a!==null&&typeof a=="object"&&typeof a.then=="function"?b5:cw,Gl=a;var u=On;u===null?(ti=y5,wp(r,Ta(a,r.current))):u.mode&xn&&t0(u)}function q1(){var r=$l.current;return r===null?!0:(En&4194048)===En?Ks===null:(En&62914560)===En||(En&536870912)!==0?r===Ks:!1}function ex(){var r=$e.H;return $e.H=p5,r===null?p5:r}function G1(){var r=$e.A;return $e.A=wfe,r}function S0(r){yi===null&&(yi=r._debugTask==null?null:r._debugTask)}function Qf(){ti=W0,Q0||(En&4194048)!==En&&$l.current!==null||(ev=!0),(K0&134217727)===0&&(Z0&134217727)===0||wr===null||Ra(wr,En,hl,!1)}function F1(r,a,u){var g=Gn;Gn|=ia;var x=ex(),E=G1();if(wr!==r||En!==a){if(ul){var M=r.memoizedUpdaters;0<M.size&&(Ls(r,En),M.clear()),bn(r,a)}S5=null,_a(r,a)}a=!1,M=ti;e:do try{if(pr!==dl&&On!==null){var D=On,q=Gl;switch(pr){case HA:H1(),M=uw;break e;case v5:case Mm:case Rm:case b5:$l.current===null&&(a=!0);var K=pr;if(pr=dl,Gl=null,Kf(r,D,q,K),u&&ev){M=Sd;break e}break;default:K=pr,pr=dl,Gl=null,Kf(r,D,q,K)}}ks(),M=ti;break}catch(Ee){J4(r,Ee)}while(!0);return a&&r.shellSuspendCounter++,vc(),Gn=g,$e.H=x,$e.A=E,On===null&&(wr=null,En=0,Jd()),M}function ks(){for(;On!==null;)nx(On)}function gi(r,a){var u=Gn;Gn|=ia;var g=ex(),x=G1();if(wr!==r||En!==a){if(ul){var E=r.memoizedUpdaters;0<E.size&&(Ls(r,En),E.clear()),bn(r,a)}S5=null,pw=Jr()+NL,_a(r,a)}else ev=Ze(r,a);e:do try{if(pr!==dl&&On!==null)t:switch(a=On,E=Gl,pr){case cw:pr=dl,Gl=null,Kf(r,a,E,cw);break;case Mm:case Rm:if(Co(E)){pr=dl,Gl=null,Ei(a);break}a=function(){pr!==Mm&&pr!==Rm||wr!==r||(pr=fw),Na(r)},E.then(a,a);break e;case v5:pr=fw;break e;case RL:pr=$A;break e;case fw:Co(E)?(pr=dl,Gl=null,Ei(a)):(pr=dl,Gl=null,Kf(r,a,E,fw));break;case $A:var M=null;switch(On.tag){case 26:M=On.memoizedState;case 5:case 27:var D=On;if(M?oy(M):D.stateNode.complete){pr=dl,Gl=null;var q=D.sibling;if(q!==null)On=q;else{var K=D.return;K!==null?(On=K,Bp(K)):On=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}pr=dl,Gl=null,Kf(r,a,E,$A);break;case b5:pr=dl,Gl=null,Kf(r,a,E,b5);break;case HA:H1(),ti=uw;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}$e.actQueue!==null?ks():tx();break}catch(Ee){J4(r,Ee)}while(!0);return vc(),$e.H=g,$e.A=x,Gn=u,On!==null?Sd:(wr=null,En=0,Jd(),ti)}function tx(){for(;On!==null&&!Ey();)nx(On)}function nx(r){var a=r.alternate;(r.mode&xn)!==Zt?(o1(r),a=Be(r,I1,a,r,Gc),t0(r)):a=Be(r,I1,a,r,Gc),r.memoizedProps=r.pendingProps,a===null?Bp(r):On=a}function Ei(r){var a=Be(r,X8,r);r.memoizedProps=r.pendingProps,a===null?Bp(r):On=a}function X8(r){var a=r.alternate,u=(r.mode&xn)!==Zt;switch(u&&o1(r),r.tag){case 15:case 0:a=Hf(a,r,r.pendingProps,r.type,void 0,En);break;case 11:a=Hf(a,r,r.pendingProps,r.type.render,r.ref,En);break;case 5:Tc(r);default:K6(a,r),r=On=e0(r,Gc),a=I1(a,r,Gc)}return u&&t0(r),a}function Kf(r,a,u,g){vc(),Tc(a),Gy=null,c5=0;var x=a.return;try{if(F6(r,x,a,u,En)){ti=y5,wp(r,Ta(u,r.current)),On=null;return}}catch(E){if(x!==null)throw On=x,E;ti=y5,wp(r,Ta(u,r.current)),On=null;return}a.flags&32768?(In||g===cw?r=!0:ev||(En&536870912)!==0?r=!1:(Q0=r=!0,(g===Mm||g===Rm||g===v5||g===b5)&&(g=$l.current,g!==null&&g.tag===13&&(g.flags|=16384))),Mr(a,r)):Bp(a)}function Bp(r){var a=r;do{if((a.flags&32768)!==0){Mr(a,Q0);return}var u=a.alternate;if(r=a.return,o1(a),u=Be(a,W6,u,a,Gc),(a.mode&xn)!==Zt&&Nf(a),u!==null){On=u;return}if(a=a.sibling,a!==null){On=a;return}On=a=r}while(a!==null);ti===Sd&&(ti=ML)}function Mr(r,a){do{var u=Q6(r.alternate,r);if(u!==null){u.flags&=32767,On=u;return}if((r.mode&xn)!==Zt){Nf(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),!a&&(r=r.sibling,r!==null)){On=r;return}On=r=u}while(r!==null);ti=uw,On=null}function fa(r,a,u,g,x,E,M,D,q,K,Ee,Ae,ge,Le){r.cancelPendingCommit=null;do kc();while($i!==eh);if(Vu.flushLegacyContextWarning(),Vu.flushPendingUnsafeLifecycleWarnings(),(Gn&(ia|ql))!==ya)throw Error("Should not already be working.");if(So(u),K===Om?e4(ge,Le,u,yi):g!==null?q8(ge,Le,u,g,a!==null&&a.alternate!==null&&a.alternate.memoizedState.isDehydrated&&(a.flags&256)!==0,yi):H8(ge,Le,u,yi),a!==null){if(u===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),a===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=a.lanes|a.childLanes,E|=vA,ut(r,u,E,M,D,q),r===wr&&(On=wr=null,En=0),tv=a,th=r,Pu=u,XA=E,QA=x,BL=g,WA=Le,jL=Ae,Uu=mw,PL=null,a.actualDuration!==0||(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,Pp(sd,function(){return O5=window.event,Uu===mw&&(Uu=YA),Da(),null})):(r.callbackNode=null,r.callbackPriority=0),pd=null,q0=Vi(),Ae!==null&&G8(Le,q0,Ae,yi),g=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||g){g=$e.T,$e.T=null,x=Kn.p,Kn.p=Ti,M=Gn,Gn|=ql;try{q4(r,a,u)}finally{Gn=M,Kn.p=x,$e.T=g}}$i=zL,zs(),rx(),ix()}}function zs(){if($i===zL){$i=eh;var r=th,a=tv,u=Pu,g=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||g){g=$e.T,$e.T=null;var x=Kn.p;Kn.p=Ti;var E=Gn;Gn|=ql;try{Zy=u,Jy=r,Aa(),X4(a,r),Jy=Zy=null,u=lC;var M=z6(r.containerInfo),D=u.focusedElem,q=u.selectionRange;if(M!==D&&D&&D.ownerDocument&&Kg(D.ownerDocument.documentElement,D)){if(q!==null&&Zb(D)){var K=q.start,Ee=q.end;if(Ee===void 0&&(Ee=K),"selectionStart"in D)D.selectionStart=K,D.selectionEnd=Math.min(Ee,D.value.length);else{var Ae=D.ownerDocument||document,ge=Ae&&Ae.defaultView||window;if(ge.getSelection){var Le=ge.getSelection(),mt=D.textContent.length,Et=Math.min(q.start,mt),Rr=q.end===void 0?Et:Math.min(q.end,mt);!Le.extend&&Et>Rr&&(M=Rr,Rr=Et,Et=M);var Un=k6(D,Et),he=k6(D,Rr);if(Un&&he&&(Le.rangeCount!==1||Le.anchorNode!==Un.node||Le.anchorOffset!==Un.offset||Le.focusNode!==he.node||Le.focusOffset!==he.offset)){var ye=Ae.createRange();ye.setStart(Un.node,Un.offset),Le.removeAllRanges(),Et>Rr?(Le.addRange(ye),Le.extend(he.node,he.offset)):(ye.setEnd(he.node,he.offset),Le.addRange(ye))}}}}for(Ae=[],Le=D;Le=Le.parentNode;)Le.nodeType===1&&Ae.push({element:Le,left:Le.scrollLeft,top:Le.scrollTop});for(typeof D.focus=="function"&&D.focus(),D=0;D<Ae.length;D++){var xe=Ae[D];xe.element.scrollLeft=xe.left,xe.element.scrollTop=xe.top}}Dw=!!oC,lC=oC=null}finally{Gn=E,Kn.p=x,$e.T=g}}r.current=a,$i=IL}}function rx(){if($i===IL){$i=eh;var r=PL;if(r!==null){q0=Vi();var a=hd,u=q0;!kr||u<=a||console.timeStamp(r,a,u,$n,Pn,"secondary-light")}r=th,a=tv,u=Pu;var g=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||g){g=$e.T,$e.T=null;var x=Kn.p;Kn.p=Ti;var E=Gn;Gn|=ql;try{Zy=u,Jy=r,Aa(),li(r,a.alternate,a),Jy=Zy=null}finally{Gn=E,Kn.p=x,$e.T=g}}r=WA,a=jL,hd=Vi(),r=a===null?r:q0,a=hd,u=Uu===FA,g=yi,pd!==null?j6(r,a,pd,!1,g):!kr||a<=r||(g?g.run(console.timeStamp.bind(console,u?"Commit Interrupted View Transition":"Commit",r,a,$n,Pn,u?"error":"secondary-dark")):console.timeStamp(u?"Commit Interrupted View Transition":"Commit",r,a,$n,Pn,u?"error":"secondary-dark")),$i=LL}}function ix(){if($i===VL||$i===LL){if($i===VL){var r=hd;hd=Vi();var a=hd,u=Uu===FA;!kr||a<=r||console.timeStamp(u?"Interrupted View Transition":"Starting Animation",r,a,$n,Pn,u?" error":"secondary-light"),Uu!==FA&&(Uu=kL)}$i=eh,tA(),r=th;var g=tv;a=Pu,u=BL;var x=g.actualDuration!==0||(g.subtreeFlags&10256)!==0||(g.flags&10256)!==0;x?$i=gw:($i=eh,tv=th=null,aE(r,r.pendingLanes),Dm=0,w5=null);var E=r.pendingLanes;if(E===0&&(J0=null),x||rl(r),E=Fr(a),g=g.stateNode,ha&&typeof ha.onCommitFiberRoot=="function")try{var M=(g.current.flags&128)===128;switch(E){case Ti:var D=wy;break;case ta:D=Ty;break;case No:D=sd;break;case jc:D=um;break;default:D=sd}ha.onCommitFiberRoot(Iu,g,D,M)}catch(Ae){$s||($s=!0,console.error("React instrumentation encountered an error: %o",Ae))}if(ul&&r.memoizedUpdaters.clear(),nE(),u!==null){M=$e.T,D=Kn.p,Kn.p=Ti,$e.T=null;try{var q=r.onRecoverableError;for(g=0;g<u.length;g++){var K=u[g],Ee=iE(K.stack);Be(K.source,q,K.value,Ee)}}finally{$e.T=M,Kn.p=D}}(Pu&3)!==0&&kc(),Na(r),E=r.pendingLanes,(a&261930)!==0&&(E&42)!==0?(ZE=!0,r===KA?E5++:(E5=0,KA=r)):E5=0,x||Il(a,hd),E0(0)}}function iE(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 aE(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,Jh(a)))}function kc(){return zs(),rx(),ix(),Da()}function Da(){if($i!==gw)return!1;var r=th,a=XA;XA=0;var u=Fr(Pu),g=No>u?No:u;u=$e.T;var x=Kn.p;try{Kn.p=g,$e.T=null;var E=QA;QA=null,g=th;var M=Pu;if($i=eh,tv=th=null,Pu=0,(Gn&(ia|ql))!==ya)throw Error("Cannot flush passive effects while already rendering.");So(M),ZA=!0,yw=!1;var D=0;if(pd=null,D=Jr(),Uu===kL)t4(hd,D,gfe);else{var q=hd,K=D,Ee=Uu===YA;!kr||K<=q||(yi?yi.run(console.timeStamp.bind(console,Ee?"Waiting for Paint":"Waiting",q,K,$n,Pn,"secondary-light")):console.timeStamp(Ee?"Waiting for Paint":"Waiting",q,K,$n,Pn,"secondary-light"))}q=Gn,Gn|=ql;var Ae=g.current;Aa(),tE(Ae);var ge=g.current;Ae=WA,Aa(),P1(g,ge,M,E,Ae),rl(g),Gn=q;var Le=Jr();if(ge=D,Ae=yi,pd!==null?j6(ge,Le,pd,!0,Ae):!kr||Le<=ge||(Ae?Ae.run(console.timeStamp.bind(console,"Remaining Effects",ge,Le,$n,Pn,"secondary-dark")):console.timeStamp("Remaining Effects",ge,Le,$n,Pn,"secondary-dark")),Il(M,Le),E0(0,!1),yw?g===w5?Dm++:(Dm=0,w5=g):Dm=0,yw=ZA=!1,ha&&typeof ha.onPostCommitFiberRoot=="function")try{ha.onPostCommitFiberRoot(Iu,g)}catch(Et){$s||($s=!0,console.error("React instrumentation encountered an error: %o",Et))}var mt=g.current.stateNode;return mt.effectDuration=0,mt.passiveEffectDuration=0,!0}finally{Kn.p=x,$e.T=u,aE(r,a)}}function nl(r,a,u){a=Ta(u,a),Qa(a),a=T1(r.stateNode,a,2),r=Oa(r,a,2),r!==null&&(pt(r,2),Na(r))}function Yn(r,a,u){if(nv=!1,r.tag===3)nl(r,r,u);else{for(;a!==null;){if(a.tag===3){nl(a,r,u);return}if(a.tag===1){var g=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(J0===null||!J0.has(g))){r=Ta(u,r),Qa(r),u=A1(2),g=Oa(a,u,2),g!==null&&(Tp(u,g,a,r),pt(g,2),Na(g));return}}a=a.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.
|
|
247
247
|
|
|
248
248
|
Error message:
|
|
249
249
|
|
|
@@ -265,8 +265,8 @@ act(() => {
|
|
|
265
265
|
});
|
|
266
266
|
/* assert on the output */
|
|
267
267
|
|
|
268
|
-
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`,ue(r))})}function Na(r){r!==rv&&r.next===null&&(rv===null?bw=rv=r:rv=rv.next=r),xw=!0,$e.actQueue!==null?eC||(eC=!0,sE()):JA||(JA=!0,sE())}function E0(r,a){if(!tC&&xw){tC=!0;do for(var u=!1,g=bw;g!==null;){if(r!==0){var x=g.pendingLanes;if(x===0)var E=0;else{var M=g.suspendedLanes,D=g.pingedLanes;E=(1<<31-ea(42|r)+1)-1,E&=x&~(M&~D),E=E&201326741?E&201326741|1:E?E|2:0}E!==0&&(u=!0,lx(g,E))}else E=En,E=Bt(g,g===wr?E:0,g.cancelPendingCommit!==null||g.timeoutHandle!==Im),(E&3)===0||Ze(g,E)||(u=!0,lx(g,E));g=g.next}while(u);tC=!1}}function lE(){O5=window.event,Jf()}function Jf(){xw=eC=JA=!1;var r=0;nh!==0&&w0()&&(r=nh);for(var a=Jr(),u=null,g=bw;g!==null;){var x=g.next,E=ox(g,a);E===0?(g.next=null,u===null?bw=x:u.next=x,x===null&&(rv=u)):(u=g,(r!==0||(E&3)!==0)&&(xw=!0)),g=x}$i!==eh&&$i!==gw||E0(r),nh!==0&&(nh=0)}function ox(r,a){for(var u=r.suspendedLanes,g=r.pingedLanes,x=r.expirationTimes,E=r.pendingLanes&-62914561;0<E;){var M=31-ea(E),D=1<<M,q=x[M];q===-1?((D&u)===0||(D&g)!==0)&&(x[M]=be(D,a)):q<=a&&(r.expiredLanes|=D),E&=~D}if(a=wr,u=En,u=Bt(r,r===a?u:0,r.cancelPendingCommit!==null||r.timeoutHandle!==Im),g=r.callbackNode,u===0||r===a&&(pr===Mm||pr===Rm)||r.cancelPendingCommit!==null)return g!==null&&sx(g),r.callbackNode=null,r.callbackPriority=0;if((u&3)===0||Ze(r,u)){if(a=u&-u,a!==r.callbackPriority||$e.actQueue!==null&&g!==nC)sx(g);else return a;switch(Fr(u)){case Ti:case ta:u=Ty;break;case No:u=sd;break;case jc:u=um;break;default:u=sd}return g=$p.bind(null,r),$e.actQueue!==null?($e.actQueue.push(g),u=nC):u=L0(u,g),r.callbackPriority=a,r.callbackNode=u,a}return g!==null&&sx(g),r.callbackPriority=2,r.callbackNode=null,2}function $p(r,a){if(ZE=KE=!1,O5=window.event,$i!==eh&&$i!==gw)return r.callbackNode=null,r.callbackPriority=0,null;var u=r.callbackNode;if(Uu===mw&&(Uu=YA),kc()&&r.callbackNode!==u)return null;var g=En;return g=Bt(r,r===wr?g:0,r.cancelPendingCommit!==null||r.timeoutHandle!==Im),g===0?null:(rE(r,g,a),ox(r,Jr()),r.callbackNode!=null&&r.callbackNode===u?$p.bind(null,r):null)}function lx(r,a){if(kc())return null;KE=ZE,ZE=!1,rE(r,a,!0)}function sx(r){r!==nC&&r!==null&&Sy(r)}function sE(){$e.actQueue!==null&&$e.actQueue.push(function(){return Jf(),null}),Bfe(function(){(Gn&(ia|ql))!==ya?L0(wy,lE):Jf()})}function Hn(){if(nh===0){var r=Sm;r===0&&(r=cm,cm<<=1,(cm&261888)===0&&(cm=256)),nh=r}return nh}function dr(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:(xt(r,"action"),hc(""+r))}function Mn(r,a){var u=a.ownerDocument.createElement("input");return u.name=a.name,u.value=a.value,r.id&&u.setAttribute("form",r.id),a.parentNode.insertBefore(u,a),r=new FormData(r),u.parentNode.removeChild(u),r}function zn(r,a,u,g,x){if(a==="submit"&&u&&u.stateNode===x){var E=dr((x[pa]||null).action),M=g.submitter;M&&(a=(a=M[pa]||null)?dr(a.formAction):M.getAttribute("formAction"),a!==null&&(E=a,M=null));var D=new jE("action","action",null,g,x);r.push({event:D,listeners:[{instance:null,listener:function(){if(g.defaultPrevented){if(nh!==0){var q=M?Mn(x,M):new FormData(x),K={pending:!0,data:q,method:x.method,action:E};Object.freeze(K),c0(u,K,null,q)}}else typeof E=="function"&&(D.preventDefault(),q=M?Mn(x,M):new FormData(x),K={pending:!0,data:q,method:x.method,action:E},Object.freeze(K),c0(u,K,E,q))},currentTarget:x}]})}}function Xn(r,a,u){r.currentTarget=u;try{a(r)}catch(g){pA(g)}r.currentTarget=null}function io(r,a){a=(a&4)!==0;for(var u=0;u<r.length;u++){var g=r[u];e:{var x=void 0,E=g.event;if(g=g.listeners,a)for(var M=g.length-1;0<=M;M--){var D=g[M],q=D.instance,K=D.currentTarget;if(D=D.listener,q!==x&&E.isPropagationStopped())break e;q!==null?Be(q,Xn,E,D,K):Xn(E,D,K),x=q}else for(M=0;M<g.length;M++){if(D=g[M],q=D.instance,K=D.currentTarget,D=D.listener,q!==x&&E.isPropagationStopped())break e;q!==null?Be(q,Xn,E,D,K):Xn(E,D,K),x=q}}}}function sn(r,a){rC.has(r)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',r);var u=a[jx];u===void 0&&(u=a[jx]=new Set);var g=r+"__bubble";u.has(g)||(Vs(a,r,2,!1),u.add(g))}function zc(r,a,u){rC.has(r)&&!a&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',r);var g=0;a&&(g|=4),Vs(u,r,g,a)}function Hp(r){if(!r[Sw]){r[Sw]=!0,dm.forEach(function(u){u!=="selectionchange"&&(rC.has(u)||zc(u,!1,r),zc(u,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[Sw]||(a[Sw]=!0,zc("selectionchange",!1,a))}}function Vs(r,a,u,g){switch(fy(a)){case Ti:var x=Zi;break;case ta:x=K8;break;default:x=cy}u=x.bind(null,a,u,r),x=void 0,!iA||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(x=!0),g?x!==void 0?r.addEventListener(a,u,{capture:!0,passive:x}):r.addEventListener(a,u,!0):x!==void 0?r.addEventListener(a,u,{passive:x}):r.addEventListener(a,u,!1)}function Nr(r,a,u,g,x){var E=g;if((a&1)===0&&(a&2)===0&&g!==null)e:for(;;){if(g===null)return;var M=g.tag;if(M===3||M===4){var D=g.stateNode.containerInfo;if(D===x)break;if(M===4)for(M=g.return;M!==null;){var q=M.tag;if((q===3||q===4)&&M.stateNode.containerInfo===x)return;M=M.return}for(;D!==null;){if(M=tt(D),M===null)return;if(q=M.tag,q===5||q===6||q===26||q===27){g=E=M;continue e}D=D.parentNode}}g=g.return}wf(function(){var K=E,Ee=$h(u),Ae=[];e:{var ge=EI.get(r);if(ge!==void 0){var Le=jE,mt=r;switch(r){case"keypress":if(Qd(u)===0)break e;case"keydown":case"keyup":Le=Hce;break;case"focusin":mt="focus",Le=sA;break;case"focusout":mt="blur",Le=sA;break;case"beforeblur":case"afterblur":Le=sA;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Le=sI;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Le=Dce;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Le=Fce;break;case vI:case bI:case xI:Le=zce;break;case SI:Le=Xce;break;case"scroll":case"scrollend":Le=Rce;break;case"wheel":Le=Qce;break;case"copy":case"cut":case"paste":Le=Lce;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Le=cI;break;case"toggle":case"beforetoggle":Le=Zce}var Et=(a&4)!==0,Rr=!Et&&(r==="scroll"||r==="scrollend"),Un=Et?ge!==null?ge+"Capture":null:ge;Et=[];for(var he=K,ye;he!==null;){var xe=he;if(ye=xe.stateNode,xe=xe.tag,xe!==5&&xe!==26&&xe!==27||ye===null||Un===null||(xe=os(he,Un),xe!=null&&Et.push(il(he,xe,ye))),Rr)break;he=he.return}0<Et.length&&(ge=new Le(ge,mt,null,u,Ee),Ae.push({event:ge,listeners:Et}))}}if((a&7)===0){e:{if(ge=r==="mouseover"||r==="pointerover",Le=r==="mouseout"||r==="pointerout",ge&&u!==Ux&&(mt=u.relatedTarget||u.fromElement)&&(tt(mt)||mt[cl]))break e;if((Le||ge)&&(ge=Ee.window===Ee?Ee:(ge=Ee.ownerDocument)?ge.defaultView||ge.parentWindow:window,Le?(mt=u.relatedTarget||u.toElement,Le=K,mt=mt?tt(mt):null,mt!==null&&(Rr=z(mt),Et=mt.tag,mt!==Rr||Et!==5&&Et!==27&&Et!==6)&&(mt=null)):(Le=null,mt=K),Le!==mt)){if(Et=sI,xe="onMouseLeave",Un="onMouseEnter",he="mouse",(r==="pointerout"||r==="pointerover")&&(Et=cI,xe="onPointerLeave",Un="onPointerEnter",he="pointer"),Rr=Le==null?ge:We(Le),ye=mt==null?ge:We(mt),ge=new Et(xe,he+"leave",Le,u,Ee),ge.target=Rr,ge.relatedTarget=ye,xe=null,tt(Ee)===K&&(Et=new Et(Un,he+"enter",mt,u,Ee),Et.target=ye,Et.relatedTarget=Rr,xe=Et),Rr=xe,Le&&mt)t:{for(Et=ux,Un=Le,he=mt,ye=0,xe=Un;xe;xe=Et(xe))ye++;xe=0;for(var Ge=he;Ge;Ge=Et(Ge))xe++;for(;0<ye-xe;)Un=Et(Un),ye--;for(;0<xe-ye;)he=Et(he),xe--;for(;ye--;){if(Un===he||he!==null&&Un===he.alternate){Et=Un;break t}Un=Et(Un),he=Et(he)}Et=null}else Et=null;Le!==null&&ao(Ae,ge,Le,Et,!1),mt!==null&&Rr!==null&&ao(Ae,Rr,mt,Et,!0)}}e:{if(ge=K?We(K):window,Le=ge.nodeName&&ge.nodeName.toLowerCase(),Le==="select"||Le==="input"&&ge.type==="file")var bt=Gh;else if(qh(ge))if(gI)bt=Qg;else{bt=Kb;var on=Qb}else Le=ge.nodeName,!Le||Le.toLowerCase()!=="input"||ge.type!=="checkbox"&&ge.type!=="radio"?K&&Uh(K.elementType)&&(bt=Gh):bt=Fh;if(bt&&(bt=bt(r,K))){Wb(Ae,bt,u,Ee);break e}on&&on(r,ge,K),r==="focusout"&&K&&ge.type==="number"&&K.memoizedProps.value!=null&&jb(ge,"number",ge.value)}switch(on=K?We(K):window,r){case"focusin":(qh(on)||on.contentEditable==="true")&&(zy=on,cA=K,Xx=null);break;case"focusout":Xx=cA=zy=null;break;case"mousedown":fA=!0;break;case"contextmenu":case"mouseup":case"dragend":fA=!1,I6(Ae,u,Ee);break;case"selectionchange":if(nfe)break;case"keydown":case"keyup":I6(Ae,u,Ee)}var Pt;if(uA)e:{switch(r){case"compositionstart":var Dt="onCompositionStart";break e;case"compositionend":Dt="onCompositionEnd";break e;case"compositionupdate":Dt="onCompositionUpdate";break e}Dt=void 0}else ky?pu(r,u)&&(Dt="onCompositionEnd"):r==="keydown"&&u.keyCode===fI&&(Dt="onCompositionStart");Dt&&(dI&&u.locale!=="ko"&&(ky||Dt!=="onCompositionStart"?Dt==="onCompositionEnd"&&ky&&(Pt=Yb()):(j0=Ee,aA="value"in j0?j0.value:j0.textContent,ky=!0)),on=Bs(K,Dt),0<on.length&&(Dt=new uI(Dt,r,null,u,Ee),Ae.push({event:Dt,listeners:on}),Pt?Dt.data=Pt:(Pt=Yg(u),Pt!==null&&(Dt.data=Pt)))),(Pt=efe?Xg(r,u):R6(r,u))&&(Dt=Bs(K,"onBeforeInput"),0<Dt.length&&(on=new Bce("onBeforeInput","beforeinput",null,u,Ee),Ae.push({event:on,listeners:Dt}),on.data=Pt)),zn(Ae,r,K,u,Ee)}io(Ae,a)})}function il(r,a,u){return{instance:r,listener:a,currentTarget:u}}function Bs(r,a){for(var u=a+"Capture",g=[];r!==null;){var x=r,E=x.stateNode;if(x=x.tag,x!==5&&x!==26&&x!==27||E===null||(x=os(r,u),x!=null&&g.unshift(il(r,x,E)),x=os(r,a),x!=null&&g.push(il(r,x,E))),r.tag===3)return g;r=r.return}return[]}function ux(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function ao(r,a,u,g,x){for(var E=a._reactName,M=[];u!==null&&u!==g;){var D=u,q=D.alternate,K=D.stateNode;if(D=D.tag,q!==null&&q===g)break;D!==5&&D!==26&&D!==27||K===null||(q=K,x?(K=os(u,E),K!=null&&M.unshift(il(u,K,q))):x||(K=os(u,E),K!=null&&M.push(il(u,K,q)))),u=u.return}M.length!==0&&r.push({event:a,listeners:M})}function Ic(r,a){Fb(r,a),r!=="input"&&r!=="textarea"&&r!=="select"||a==null||a.value!==null||oI||(oI=!0,r==="select"&&a.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",r):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",r));var u={registrationNameDependencies:Hs,possibleRegistrationNames:Oy};Uh(r)||typeof a.is=="string"||U8(r,a,u),a.contentEditable&&!a.suppressContentEditableWarning&&a.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function Kr(r,a,u,g){a!==u&&(u=Ru(u),Ru(a)!==u&&(g[r]=a))}function oo(r,a,u){a.forEach(function(g){u[ed(g)]=g==="style"?Ll(r):r.getAttribute(g)})}function al(r,a){a===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",r,r,r):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",r,typeof a)}function qp(r,a){return r=r.namespaceURI===An||r.namespaceURI===Dn?r.ownerDocument.createElementNS(r.namespaceURI,r.tagName):r.ownerDocument.createElement(r.tagName),r.innerHTML=a,r.innerHTML}function Ru(r){return Mt(r)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",st(r)),Kt(r)),(typeof r=="string"?r:""+r).replace(Rfe,`
|
|
269
|
-
`).replace(_fe,"")}function Gp(r,a){return a=Ru(a),Ru(r)===a}function Qn(r,a,u,g,x,E){switch(u){case"children":typeof g=="string"?(Wd(g,a,!1),a==="body"||a==="textarea"&&g===""||as(r,g)):(typeof g=="number"||typeof g=="bigint")&&(Wd(""+g,a,!1),a!=="body"&&as(r,""+g));break;case"className":zh(r,"class",g);break;case"tabIndex":zh(r,"tabindex",g);break;case"dir":case"role":case"viewBox":case"width":case"height":zh(r,u,g);break;case"style":Ef(r,g,E);break;case"data":if(a!=="object"){zh(r,"data",g);break}case"src":case"href":if(g===""&&(a!=="a"||u!=="href")){console.error(u==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',u,u),r.removeAttribute(u);break}if(g==null||typeof g=="function"||typeof g=="symbol"||typeof g=="boolean"){r.removeAttribute(u);break}xt(g,u),g=hc(""+g),r.setAttribute(u,g);break;case"action":case"formAction":if(g!=null&&(a==="form"?u==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof g=="function"&&(x.encType==null&&x.method==null||Tw||(Tw=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),x.target==null||ww||(ww=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):a==="input"||a==="button"?u==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):a!=="input"||x.type==="submit"||x.type==="image"||Ew?a!=="button"||x.type==null||x.type==="submit"||Ew?typeof g=="function"&&(x.name==null||GL||(GL=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),x.formEncType==null&&x.formMethod==null||Tw||(Tw=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),x.formTarget==null||ww||(ww=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(Ew=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Ew=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(u==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof g=="function"){r.setAttribute(u,"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 E=="function"&&(u==="formAction"?(a!=="input"&&Qn(r,a,"name",x.name,x,null),Qn(r,a,"formEncType",x.formEncType,x,null),Qn(r,a,"formMethod",x.formMethod,x,null),Qn(r,a,"formTarget",x.formTarget,x,null)):(Qn(r,a,"encType",x.encType,x,null),Qn(r,a,"method",x.method,x,null),Qn(r,a,"target",x.target,x,null)));if(g==null||typeof g=="symbol"||typeof g=="boolean"){r.removeAttribute(u);break}xt(g,u),g=hc(""+g),r.setAttribute(u,g);break;case"onClick":g!=null&&(typeof g!="function"&&al(u,g),r.onclick=Gi);break;case"onScroll":g!=null&&(typeof g!="function"&&al(u,g),sn("scroll",r));break;case"onScrollEnd":g!=null&&(typeof g!="function"&&al(u,g),sn("scrollend",r));break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(u=g.__html,u!=null){if(x.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");r.innerHTML=u}}break;case"multiple":r.multiple=g&&typeof g!="function"&&typeof g!="symbol";break;case"muted":r.muted=g&&typeof g!="function"&&typeof g!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(g==null||typeof g=="function"||typeof g=="boolean"||typeof g=="symbol"){r.removeAttribute("xlink:href");break}xt(g,u),u=hc(""+g),r.setAttributeNS(Nm,"xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":g!=null&&typeof g!="function"&&typeof g!="symbol"?(xt(g,u),r.setAttribute(u,""+g)):r.removeAttribute(u);break;case"inert":g!==""||Aw[u]||(Aw[u]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",u));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":g&&typeof g!="function"&&typeof g!="symbol"?r.setAttribute(u,""):r.removeAttribute(u);break;case"capture":case"download":g===!0?r.setAttribute(u,""):g!==!1&&g!=null&&typeof g!="function"&&typeof g!="symbol"?(xt(g,u),r.setAttribute(u,g)):r.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":g!=null&&typeof g!="function"&&typeof g!="symbol"&&!isNaN(g)&&1<=g?(xt(g,u),r.setAttribute(u,g)):r.removeAttribute(u);break;case"rowSpan":case"start":g==null||typeof g=="function"||typeof g=="symbol"||isNaN(g)?r.removeAttribute(u):(xt(g,u),r.setAttribute(u,g));break;case"popover":sn("beforetoggle",r),sn("toggle",r),mf(r,"popover",g);break;case"xlinkActuate":is(r,Nm,"xlink:actuate",g);break;case"xlinkArcrole":is(r,Nm,"xlink:arcrole",g);break;case"xlinkRole":is(r,Nm,"xlink:role",g);break;case"xlinkShow":is(r,Nm,"xlink:show",g);break;case"xlinkTitle":is(r,Nm,"xlink:title",g);break;case"xlinkType":is(r,Nm,"xlink:type",g);break;case"xmlBase":is(r,iC,"xml:base",g);break;case"xmlLang":is(r,iC,"xml:lang",g);break;case"xmlSpace":is(r,iC,"xml:space",g);break;case"is":E!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),mf(r,"is",g);break;case"innerText":case"textContent":break;case"popoverTarget":FL||g==null||typeof g!="object"||(FL=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",g));default:!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N"?(u=Gb(u),mf(r,u,g)):Hs.hasOwnProperty(u)&&g!=null&&typeof g!="function"&&al(u,g)}}function js(r,a,u,g,x,E){switch(u){case"style":Ef(r,g,E);break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(u=g.__html,u!=null){if(x.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");r.innerHTML=u}}break;case"children":typeof g=="string"?as(r,g):(typeof g=="number"||typeof g=="bigint")&&as(r,""+g);break;case"onScroll":g!=null&&(typeof g!="function"&&al(u,g),sn("scroll",r));break;case"onScrollEnd":g!=null&&(typeof g!="function"&&al(u,g),sn("scrollend",r));break;case"onClick":g!=null&&(typeof g!="function"&&al(u,g),r.onclick=Gi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Hs.hasOwnProperty(u))g!=null&&typeof g!="function"&&al(u,g);else e:{if(u[0]==="o"&&u[1]==="n"&&(x=u.endsWith("Capture"),a=u.slice(2,x?u.length-7:void 0),E=r[pa]||null,E=E!=null?E[u]:null,typeof E=="function"&&r.removeEventListener(a,E,x),typeof g=="function")){typeof E!="function"&&E!==null&&(u in r?r[u]=null:r.hasAttribute(u)&&r.removeAttribute(u)),r.addEventListener(a,g,x);break e}u in r?r[u]=g:g===!0?r.setAttribute(u,""):mf(r,u,g)}}}function jn(r,a,u){switch(Ic(a,u),a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":sn("error",r),sn("load",r);var g=!1,x=!1,E;for(E in u)if(u.hasOwnProperty(E)){var M=u[E];if(M!=null)switch(E){case"src":g=!0;break;case"srcSet":x=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Qn(r,a,E,M,u,null)}}x&&Qn(r,a,"srcSet",u.srcSet,u,null),g&&Qn(r,a,"src",u.src,u,null);return;case"input":Bn("input",u),sn("invalid",r);var D=E=M=x=null,q=null,K=null;for(g in u)if(u.hasOwnProperty(g)){var Ee=u[g];if(Ee!=null)switch(g){case"name":x=Ee;break;case"type":M=Ee;break;case"checked":q=Ee;break;case"defaultChecked":K=Ee;break;case"value":E=Ee;break;case"defaultValue":D=Ee;break;case"children":case"dangerouslySetInnerHTML":if(Ee!=null)throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Qn(r,a,g,Ee,u,null)}}gf(r,u),A6(r,E,D,q,K,M,x,!1);return;case"select":Bn("select",u),sn("invalid",r),g=M=E=null;for(x in u)if(u.hasOwnProperty(x)&&(D=u[x],D!=null))switch(x){case"value":E=D;break;case"defaultValue":M=D;break;case"multiple":g=D;default:Qn(r,a,x,D,u,null)}yf(r,u),a=E,u=M,r.multiple=!!g,a!=null?dc(r,!!g,a,!1):u!=null&&dc(r,!!g,u,!0);return;case"textarea":Bn("textarea",u),sn("invalid",r),E=x=g=null;for(M in u)if(u.hasOwnProperty(M)&&(D=u[M],D!=null))switch(M){case"value":g=D;break;case"defaultValue":x=D;break;case"children":E=D;break;case"dangerouslySetInnerHTML":if(D!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Qn(r,a,M,D,u,null)}vf(r,u),bf(r,g,x,E);return;case"option":Pb(r,u);for(q in u)if(u.hasOwnProperty(q)&&(g=u[q],g!=null))switch(q){case"selected":r.selected=g&&typeof g!="function"&&typeof g!="symbol";break;default:Qn(r,a,q,g,u,null)}return;case"dialog":sn("beforetoggle",r),sn("toggle",r),sn("cancel",r),sn("close",r);break;case"iframe":case"object":sn("load",r);break;case"video":case"audio":for(g=0;g<T5.length;g++)sn(T5[g],r);break;case"image":sn("error",r),sn("load",r);break;case"details":sn("toggle",r);break;case"embed":case"source":case"link":sn("error",r),sn("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in u)if(u.hasOwnProperty(K)&&(g=u[K],g!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Qn(r,a,K,g,u,null)}return;default:if(Uh(a)){for(Ee in u)u.hasOwnProperty(Ee)&&(g=u[Ee],g!==void 0&&js(r,a,Ee,g,u,void 0));return}}for(D in u)u.hasOwnProperty(D)&&(g=u[D],g!=null&&Qn(r,a,D,g,u,null))}function Lc(r,a,u,g){switch(Ic(a,g),a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var x=null,E=null,M=null,D=null,q=null,K=null,Ee=null;for(Le in u){var Ae=u[Le];if(u.hasOwnProperty(Le)&&Ae!=null)switch(Le){case"checked":break;case"value":break;case"defaultValue":q=Ae;default:g.hasOwnProperty(Le)||Qn(r,a,Le,null,g,Ae)}}for(var ge in g){var Le=g[ge];if(Ae=u[ge],g.hasOwnProperty(ge)&&(Le!=null||Ae!=null))switch(ge){case"type":E=Le;break;case"name":x=Le;break;case"checked":K=Le;break;case"defaultChecked":Ee=Le;break;case"value":M=Le;break;case"defaultValue":D=Le;break;case"children":case"dangerouslySetInnerHTML":if(Le!=null)throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Le!==Ae&&Qn(r,a,ge,Le,g,Ae)}}a=u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null,g=g.type==="checkbox"||g.type==="radio"?g.checked!=null:g.value!=null,a||!g||qL||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),qL=!0),!a||g||HL||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),HL=!0),Ih(r,M,D,q,K,Ee,E,x);return;case"select":Le=M=D=ge=null;for(E in u)if(q=u[E],u.hasOwnProperty(E)&&q!=null)switch(E){case"value":break;case"multiple":Le=q;default:g.hasOwnProperty(E)||Qn(r,a,E,null,g,q)}for(x in g)if(E=g[x],q=u[x],g.hasOwnProperty(x)&&(E!=null||q!=null))switch(x){case"value":ge=E;break;case"defaultValue":D=E;break;case"multiple":M=E;default:E!==q&&Qn(r,a,x,E,g,q)}g=D,a=M,u=Le,ge!=null?dc(r,!!a,ge,!1):!!u!=!!a&&(g!=null?dc(r,!!a,g,!0):dc(r,!!a,a?[]:"",!1));return;case"textarea":Le=ge=null;for(D in u)if(x=u[D],u.hasOwnProperty(D)&&x!=null&&!g.hasOwnProperty(D))switch(D){case"value":break;case"children":break;default:Qn(r,a,D,null,g,x)}for(M in g)if(x=g[M],E=u[M],g.hasOwnProperty(M)&&(x!=null||E!=null))switch(M){case"value":ge=x;break;case"defaultValue":Le=x;break;case"children":break;case"dangerouslySetInnerHTML":if(x!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:x!==E&&Qn(r,a,M,x,g,E)}Yd(r,ge,Le);return;case"option":for(var mt in u)if(ge=u[mt],u.hasOwnProperty(mt)&&ge!=null&&!g.hasOwnProperty(mt))switch(mt){case"selected":r.selected=!1;break;default:Qn(r,a,mt,null,g,ge)}for(q in g)if(ge=g[q],Le=u[q],g.hasOwnProperty(q)&&ge!==Le&&(ge!=null||Le!=null))switch(q){case"selected":r.selected=ge&&typeof ge!="function"&&typeof ge!="symbol";break;default:Qn(r,a,q,ge,g,Le)}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 Et in u)ge=u[Et],u.hasOwnProperty(Et)&&ge!=null&&!g.hasOwnProperty(Et)&&Qn(r,a,Et,null,g,ge);for(K in g)if(ge=g[K],Le=u[K],g.hasOwnProperty(K)&&ge!==Le&&(ge!=null||Le!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Qn(r,a,K,ge,g,Le)}return;default:if(Uh(a)){for(var Rr in u)ge=u[Rr],u.hasOwnProperty(Rr)&&ge!==void 0&&!g.hasOwnProperty(Rr)&&js(r,a,Rr,void 0,g,ge);for(Ee in g)ge=g[Ee],Le=u[Ee],!g.hasOwnProperty(Ee)||ge===Le||ge===void 0&&Le===void 0||js(r,a,Ee,ge,g,Le);return}}for(var Un in u)ge=u[Un],u.hasOwnProperty(Un)&&ge!=null&&!g.hasOwnProperty(Un)&&Qn(r,a,Un,null,g,ge);for(Ae in g)ge=g[Ae],Le=u[Ae],!g.hasOwnProperty(Ae)||ge===Le||ge==null&&Le==null||Qn(r,a,Ae,ge,g,Le)}function ed(r){switch(r){case"class":return"className";case"for":return"htmlFor";default:return r}}function Ll(r){var a={};r=r.style;for(var u=0;u<r.length;u++){var g=r[u];a[g]=r.getPropertyValue(g)}return a}function X1(r,a,u){if(a!=null&&typeof a!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var g,x=g="",E;for(E in a)if(a.hasOwnProperty(E)){var M=a[E];M!=null&&typeof M!="boolean"&&M!==""&&(E.indexOf("--")===0?(Ut(M,E),g+=x+E+":"+(""+M).trim()):typeof M!="number"||M===0||pn.has(E)?(Ut(M,E),g+=x+E.replace(Rt,"-$1").toLowerCase().replace(Ht,"-ms-")+":"+(""+M).trim()):g+=x+E.replace(Rt,"-$1").toLowerCase().replace(Ht,"-ms-")+":"+M+"px",x=";")}g=g||null,a=r.getAttribute("style"),a!==g&&(g=Ru(g),Ru(a)!==g&&(u.style=Ll(r)))}}function lo(r,a,u,g,x,E){if(x.delete(u),r=r.getAttribute(u),r===null)switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":return}else if(g!=null)switch(typeof g){case"function":case"symbol":case"boolean":break;default:if(xt(g,a),r===""+g)return}Kr(a,r,g,E)}function cx(r,a,u,g,x,E){if(x.delete(u),r=r.getAttribute(u),r===null){switch(typeof g){case"function":case"symbol":return}if(!g)return}else switch(typeof g){case"function":case"symbol":break;default:if(g)return}Kr(a,r,g,E)}function td(r,a,u,g,x,E){if(x.delete(u),r=r.getAttribute(u),r===null)switch(typeof g){case"undefined":case"function":case"symbol":return}else if(g!=null)switch(typeof g){case"function":case"symbol":break;default:if(xt(g,u),r===""+g)return}Kr(a,r,g,E)}function W1(r,a,u,g,x,E){if(x.delete(u),r=r.getAttribute(u),r===null)switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(g))return}else if(g!=null)switch(typeof g){case"function":case"symbol":case"boolean":break;default:if(!isNaN(g)&&(xt(g,a),r===""+g))return}Kr(a,r,g,E)}function ka(r,a,u,g,x,E){if(x.delete(u),r=r.getAttribute(u),r===null)switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":return}else if(g!=null)switch(typeof g){case"function":case"symbol":case"boolean":break;default:if(xt(g,a),u=hc(""+g),r===u)return}Kr(a,r,g,E)}function fx(r,a,u,g){for(var x={},E=new Set,M=r.attributes,D=0;D<M.length;D++)switch(M[D].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:E.add(M[D].name)}if(Uh(a)){for(var q in u)if(u.hasOwnProperty(q)){var K=u[q];if(K!=null){if(Hs.hasOwnProperty(q))typeof K!="function"&&al(q,K);else if(u.suppressHydrationWarning!==!0)switch(q){case"children":typeof K!="string"&&typeof K!="number"||Kr("children",r.textContent,K,x);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":M=r.innerHTML,K=K?K.__html:void 0,K!=null&&(K=qp(r,K),Kr(q,M,K,x));continue;case"style":E.delete(q),X1(r,K,x);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":E.delete(q.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",q);continue;case"className":E.delete("class"),M=Pg(r,"class",K),Kr("className",M,K,x);continue;default:g.context===Ed&&a!=="svg"&&a!=="math"?E.delete(q.toLowerCase()):E.delete(q),M=Pg(r,q,K),Kr(q,M,K,x)}}}}else for(K in u)if(u.hasOwnProperty(K)&&(q=u[K],q!=null)){if(Hs.hasOwnProperty(K))typeof q!="function"&&al(K,q);else if(u.suppressHydrationWarning!==!0)switch(K){case"children":typeof q!="string"&&typeof q!="number"||Kr("children",r.textContent,q,x);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":M=r.innerHTML,q=q?q.__html:void 0,q!=null&&(q=qp(r,q),M!==q&&(x[K]={__html:M}));continue;case"className":lo(r,K,"class",q,E,x);continue;case"tabIndex":lo(r,K,"tabindex",q,E,x);continue;case"style":E.delete(K),X1(r,q,x);continue;case"multiple":E.delete(K),Kr(K,r.multiple,q,x);continue;case"muted":E.delete(K),Kr(K,r.muted,q,x);continue;case"autoFocus":E.delete("autofocus"),Kr(K,r.autofocus,q,x);continue;case"data":if(a!=="object"){E.delete(K),M=r.getAttribute("data"),Kr(K,M,q,x);continue}case"src":case"href":if(!(q!==""||a==="a"&&K==="href"||a==="object"&&K==="data")){console.error(K==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',K,K);continue}ka(r,K,K,q,E,x);continue;case"action":case"formAction":if(M=r.getAttribute(K),typeof q=="function"){E.delete(K.toLowerCase()),K==="formAction"?(E.delete("name"),E.delete("formenctype"),E.delete("formmethod"),E.delete("formtarget")):(E.delete("enctype"),E.delete("method"),E.delete("target"));continue}else if(M===Dfe){E.delete(K.toLowerCase()),Kr(K,"function",q,x);continue}ka(r,K,K.toLowerCase(),q,E,x);continue;case"xlinkHref":ka(r,K,"xlink:href",q,E,x);continue;case"contentEditable":td(r,K,"contenteditable",q,E,x);continue;case"spellCheck":td(r,K,"spellcheck",q,E,x);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":td(r,K,K,q,E,x);continue;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":cx(r,K,K.toLowerCase(),q,E,x);continue;case"capture":case"download":e:{D=r;var Ee=M=K,Ae=x;if(E.delete(Ee),D=D.getAttribute(Ee),D===null)switch(typeof q){case"undefined":case"function":case"symbol":break e;default:if(q===!1)break e}else if(q!=null)switch(typeof q){case"function":case"symbol":break;case"boolean":if(q===!0&&D==="")break e;break;default:if(xt(q,M),D===""+q)break e}Kr(M,D,q,Ae)}continue;case"cols":case"rows":case"size":case"span":e:{if(D=r,Ee=M=K,Ae=x,E.delete(Ee),D=D.getAttribute(Ee),D===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(q)||1>q)break e}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(q)||1>q)&&(xt(q,M),D===""+q))break e}Kr(M,D,q,Ae)}continue;case"rowSpan":W1(r,K,"rowspan",q,E,x);continue;case"start":W1(r,K,K,q,E,x);continue;case"xHeight":lo(r,K,"x-height",q,E,x);continue;case"xlinkActuate":lo(r,K,"xlink:actuate",q,E,x);continue;case"xlinkArcrole":lo(r,K,"xlink:arcrole",q,E,x);continue;case"xlinkRole":lo(r,K,"xlink:role",q,E,x);continue;case"xlinkShow":lo(r,K,"xlink:show",q,E,x);continue;case"xlinkTitle":lo(r,K,"xlink:title",q,E,x);continue;case"xlinkType":lo(r,K,"xlink:type",q,E,x);continue;case"xmlBase":lo(r,K,"xml:base",q,E,x);continue;case"xmlLang":lo(r,K,"xml:lang",q,E,x);continue;case"xmlSpace":lo(r,K,"xml:space",q,E,x);continue;case"inert":q!==""||Aw[K]||(Aw[K]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",K)),cx(r,K,K,q,E,x);continue;default:if(!(2<K.length)||K[0]!=="o"&&K[0]!=="O"||K[1]!=="n"&&K[1]!=="N"){D=Gb(K),M=!1,g.context===Ed&&a!=="svg"&&a!=="math"?E.delete(D.toLowerCase()):(Ee=K.toLowerCase(),Ee=Ry.hasOwnProperty(Ee)&&Ry[Ee]||null,Ee!==null&&Ee!==K&&(M=!0,E.delete(Ee)),E.delete(D));e:if(Ee=r,Ae=D,D=q,oi(Ae))if(Ee.hasAttribute(Ae))Ee=Ee.getAttribute(Ae),xt(D,Ae),D=Ee===""+D?D:Ee;else{switch(typeof D){case"function":case"symbol":break e;case"boolean":if(Ee=Ae.toLowerCase().slice(0,5),Ee!=="data-"&&Ee!=="aria-")break e}D=D===void 0?void 0:null}else D=void 0;M||Kr(K,D,q,x)}}}return 0<E.size&&u.suppressHydrationWarning!==!0&&oo(r,E,x),Object.keys(x).length===0?null:x}function so(r,a){switch(r.length){case 0:return"";case 1:return r[0];case 2:return r[0]+" "+a+" "+r[1];default:return r.slice(0,-1).join(", ")+", "+a+" "+r[r.length-1]}}function dx(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function uE(){if(typeof performance.getEntriesByType=="function"){for(var r=0,a=0,u=performance.getEntriesByType("resource"),g=0;g<u.length;g++){var x=u[g],E=x.transferSize,M=x.initiatorType,D=x.duration;if(E&&D&&dx(M)){for(M=0,D=x.responseEnd,g+=1;g<u.length;g++){var q=u[g],K=q.startTime;if(K>D)break;var Ee=q.transferSize,Ae=q.initiatorType;Ee&&dx(Ae)&&(q=q.responseEnd,M+=Ee*(q<D?1:(D-K)/(q-K)))}if(--g,a+=8*(E+M)/(x.duration/1e3),r++,10<r)break}}if(0<r)return a/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}function Q1(r){return r.nodeType===9?r:r.ownerDocument}function _u(r){switch(r){case Dn:return av;case An:return Ow;default:return Ed}}function Fp(r,a){if(r===Ed)switch(a){case"svg":return av;case"math":return Ow;default:return Ed}return r===av&&a==="foreignObject"?Ed:r}function Yp(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}function w0(){var r=window.event;return r&&r.type==="popstate"?r===sC?!1:(sC=r,!0):(sC=null,!1)}function T0(){var r=window.event;return r&&r!==O5?r.type:null}function A0(){var r=window.event;return r&&r!==O5?r.timeStamp:-1.1}function cE(r){setTimeout(function(){throw r})}function fE(r,a,u){switch(a){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src?r.src=u.src:u.srcSet&&(r.srcset=u.srcSet)}}function K1(){}function hx(r,a,u,g){Lc(r,a,u,g),r[pa]=g}function dE(r){as(r,"")}function W8(r,a,u){r.nodeValue=u}function hE(r){if(!r.__reactWarnedAboutChildrenConflict){var a=r[pa]||null;if(a!==null){var u=Ne(r);u!==null&&(typeof a.children=="string"||typeof a.children=="number"?(r.__reactWarnedAboutChildrenConflict=!0,Be(u,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):a.dangerouslySetInnerHTML!=null&&(r.__reactWarnedAboutChildrenConflict=!0,Be(u,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Du(r){return r==="head"}function pE(r,a){r.removeChild(a)}function C0(r,a){(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).removeChild(a)}function Xp(r,a){var u=a,g=0;do{var x=u.nextSibling;if(r.removeChild(u),x&&x.nodeType===8)if(u=x.data,u===C5||u===Cw){if(g===0){r.removeChild(x),N0(a);return}g--}else if(u===A5||u===rh||u===zm||u===iv||u===km)g++;else if(u===kfe)Kp(r.ownerDocument.documentElement);else if(u===Ife){u=r.ownerDocument.head,Kp(u);for(var E=u.firstChild;E;){var M=E.nextSibling,D=E.nodeName;E[fm]||D==="SCRIPT"||D==="STYLE"||D==="LINK"&&E.rel.toLowerCase()==="stylesheet"||u.removeChild(E),E=M}}else u===zfe&&Kp(r.ownerDocument.body);u=x}while(u);N0(a)}function px(r,a){var u=r;r=0;do{var g=u.nextSibling;if(u.nodeType===1?a?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(a?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),g&&g.nodeType===8)if(u=g.data,u===C5){if(r===0)break;r--}else u!==A5&&u!==rh&&u!==zm&&u!==iv||r++;u=g}while(u)}function mE(r){px(r,!0)}function gE(r){r=r.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none"}function yE(r){r.nodeValue=""}function vE(r){px(r,!1)}function bE(r,a){a=a[Lfe],a=a!=null&&a.hasOwnProperty("display")?a.display:null,r.style.display=a==null||typeof a=="boolean"?"":(""+a).trim()}function Z1(r,a){r.nodeValue=a}function J1(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var u=a;switch(a=a.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":J1(u),Oe(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}r.removeChild(u)}}function xE(r,a,u,g){for(;r.nodeType===1;){var x=u;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!g&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(g){if(!r[fm])switch(a){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(E=r.getAttribute("rel"),E==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(E!==x.rel||r.getAttribute("href")!==(x.href==null||x.href===""?null:x.href)||r.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin)||r.getAttribute("title")!==(x.title==null?null:x.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(E=r.getAttribute("src"),(E!==(x.src==null?null:x.src)||r.getAttribute("type")!==(x.type==null?null:x.type)||r.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin))&&E&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){xt(x.name,"name");var E=x.name==null?null:""+x.name;if(x.type==="hidden"&&r.getAttribute("name")===E)return r}else return r;if(r=_o(r.nextSibling),r===null)break}return null}function ir(r,a,u){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!u||(r=_o(r.nextSibling),r===null))return null;return r}function ey(r,a){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=_o(r.nextSibling),r===null))return null;return r}function mx(r){return r.data===rh||r.data===zm}function ty(r){return r.data===iv||r.data===rh&&r.ownerDocument.readyState!==XL}function Q8(r,a){var u=r.ownerDocument;if(r.data===zm)r._reactRetry=a;else if(r.data!==rh||u.readyState!==XL)a();else{var g=function(){a(),u.removeEventListener("DOMContentLoaded",g)};u.addEventListener("DOMContentLoaded",g),r._reactRetry=g}}function _o(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a===A5||a===iv||a===rh||a===zm||a===km||a===aC||a===YL)break;if(a===C5||a===Cw)return null}}return r}function SE(r){if(r.nodeType===1){for(var a=r.nodeName.toLowerCase(),u={},g=r.attributes,x=0;x<g.length;x++){var E=g[x];u[ed(E.name)]=E.name.toLowerCase()==="style"?Ll(r):E.value}return{type:a,props:u}}return r.nodeType===8?r.data===km?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:r.nodeValue}function Wp(r,a,u){return u===null||u[Nfe]!==!0?(r.nodeValue===a?r=null:(a=Ru(a),r=Ru(r.nodeValue)===a?null:r.nodeValue),r):null}function Vc(r){r=r.nextSibling;for(var a=0;r;){if(r.nodeType===8){var u=r.data;if(u===C5||u===Cw){if(a===0)return _o(r.nextSibling);a--}else u!==A5&&u!==iv&&u!==rh&&u!==zm&&u!==km||a++}r=r.nextSibling}return null}function ny(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var u=r.data;if(u===A5||u===iv||u===rh||u===zm||u===km){if(a===0)return r;a--}else u!==C5&&u!==Cw||a++}r=r.previousSibling}return null}function ry(r){N0(r)}function gx(r){N0(r)}function Bc(r){N0(r)}function Vl(r,a,u,g,x){switch(x&&Gg(r,g.ancestorInfo),a=Q1(u),r){case"html":if(r=a.documentElement,!r)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return r;case"head":if(r=a.head,!r)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return r;case"body":if(r=a.body,!r)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return r;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function Qp(r,a,u,g){if(!u[cl]&&Ne(u)){var x=u.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",x,x,x)}switch(r){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(x=u.attributes;x.length;)u.removeAttributeNode(x[0]);jn(u,r,a),u[na]=g,u[pa]=a}function Kp(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);Oe(r)}function Zp(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}function yx(r,a,u){var g=ov;if(g&&typeof a=="string"&&a){var x=Or(a);x='link[rel="'+r+'"][href="'+x+'"]',typeof u=="string"&&(x+='[crossorigin="'+u+'"]'),eV.has(x)||(eV.add(x),r={rel:r,crossOrigin:u,href:a},g.querySelector(x)===null&&(a=g.createElement("link"),jn(a,"link",r),vt(a),g.head.appendChild(a)))}}function vx(r,a,u,g){var x=(x=ll.current)?Zp(x):null;if(!x)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(r){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(u=O0(u.href),a=wt(x).hoistableStyles,g=a.get(u),g||(g={type:"style",instance:null,count:0,state:null},a.set(u,g)),g):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){r=O0(u.href);var E=wt(x).hoistableStyles,M=E.get(r);if(!M&&(x=x.ownerDocument||x,M={type:"stylesheet",instance:null,count:0,state:{loading:Lm,preload:null}},E.set(r,M),(E=x.querySelector(nd(r)))&&!E._p&&(M.instance=E,M.state.loading=M5|eu),!tu.has(r))){var D={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy};tu.set(r,D),E||EE(x,r,D,M.state)}if(a&&g===null)throw u=`
|
|
268
|
+
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`,ue(r))})}function Na(r){r!==rv&&r.next===null&&(rv===null?bw=rv=r:rv=rv.next=r),xw=!0,$e.actQueue!==null?eC||(eC=!0,sE()):JA||(JA=!0,sE())}function E0(r,a){if(!tC&&xw){tC=!0;do for(var u=!1,g=bw;g!==null;){if(r!==0){var x=g.pendingLanes;if(x===0)var E=0;else{var M=g.suspendedLanes,D=g.pingedLanes;E=(1<<31-ea(42|r)+1)-1,E&=x&~(M&~D),E=E&201326741?E&201326741|1:E?E|2:0}E!==0&&(u=!0,lx(g,E))}else E=En,E=Bt(g,g===wr?E:0,g.cancelPendingCommit!==null||g.timeoutHandle!==Im),(E&3)===0||Ze(g,E)||(u=!0,lx(g,E));g=g.next}while(u);tC=!1}}function lE(){O5=window.event,Jf()}function Jf(){xw=eC=JA=!1;var r=0;nh!==0&&w0()&&(r=nh);for(var a=Jr(),u=null,g=bw;g!==null;){var x=g.next,E=ox(g,a);E===0?(g.next=null,u===null?bw=x:u.next=x,x===null&&(rv=u)):(u=g,(r!==0||(E&3)!==0)&&(xw=!0)),g=x}$i!==eh&&$i!==gw||E0(r),nh!==0&&(nh=0)}function ox(r,a){for(var u=r.suspendedLanes,g=r.pingedLanes,x=r.expirationTimes,E=r.pendingLanes&-62914561;0<E;){var M=31-ea(E),D=1<<M,q=x[M];q===-1?((D&u)===0||(D&g)!==0)&&(x[M]=be(D,a)):q<=a&&(r.expiredLanes|=D),E&=~D}if(a=wr,u=En,u=Bt(r,r===a?u:0,r.cancelPendingCommit!==null||r.timeoutHandle!==Im),g=r.callbackNode,u===0||r===a&&(pr===Mm||pr===Rm)||r.cancelPendingCommit!==null)return g!==null&&sx(g),r.callbackNode=null,r.callbackPriority=0;if((u&3)===0||Ze(r,u)){if(a=u&-u,a!==r.callbackPriority||$e.actQueue!==null&&g!==nC)sx(g);else return a;switch(Fr(u)){case Ti:case ta:u=Ty;break;case No:u=sd;break;case jc:u=um;break;default:u=sd}return g=$p.bind(null,r),$e.actQueue!==null?($e.actQueue.push(g),u=nC):u=L0(u,g),r.callbackPriority=a,r.callbackNode=u,a}return g!==null&&sx(g),r.callbackPriority=2,r.callbackNode=null,2}function $p(r,a){if(ZE=KE=!1,O5=window.event,$i!==eh&&$i!==gw)return r.callbackNode=null,r.callbackPriority=0,null;var u=r.callbackNode;if(Uu===mw&&(Uu=YA),kc()&&r.callbackNode!==u)return null;var g=En;return g=Bt(r,r===wr?g:0,r.cancelPendingCommit!==null||r.timeoutHandle!==Im),g===0?null:(rE(r,g,a),ox(r,Jr()),r.callbackNode!=null&&r.callbackNode===u?$p.bind(null,r):null)}function lx(r,a){if(kc())return null;KE=ZE,ZE=!1,rE(r,a,!0)}function sx(r){r!==nC&&r!==null&&Sy(r)}function sE(){$e.actQueue!==null&&$e.actQueue.push(function(){return Jf(),null}),Bfe(function(){(Gn&(ia|ql))!==ya?L0(wy,lE):Jf()})}function Hn(){if(nh===0){var r=Sm;r===0&&(r=cm,cm<<=1,(cm&261888)===0&&(cm=256)),nh=r}return nh}function dr(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:(xt(r,"action"),hc(""+r))}function Mn(r,a){var u=a.ownerDocument.createElement("input");return u.name=a.name,u.value=a.value,r.id&&u.setAttribute("form",r.id),a.parentNode.insertBefore(u,a),r=new FormData(r),u.parentNode.removeChild(u),r}function zn(r,a,u,g,x){if(a==="submit"&&u&&u.stateNode===x){var E=dr((x[pa]||null).action),M=g.submitter;M&&(a=(a=M[pa]||null)?dr(a.formAction):M.getAttribute("formAction"),a!==null&&(E=a,M=null));var D=new jE("action","action",null,g,x);r.push({event:D,listeners:[{instance:null,listener:function(){if(g.defaultPrevented){if(nh!==0){var q=M?Mn(x,M):new FormData(x),K={pending:!0,data:q,method:x.method,action:E};Object.freeze(K),c0(u,K,null,q)}}else typeof E=="function"&&(D.preventDefault(),q=M?Mn(x,M):new FormData(x),K={pending:!0,data:q,method:x.method,action:E},Object.freeze(K),c0(u,K,E,q))},currentTarget:x}]})}}function Xn(r,a,u){r.currentTarget=u;try{a(r)}catch(g){pA(g)}r.currentTarget=null}function io(r,a){a=(a&4)!==0;for(var u=0;u<r.length;u++){var g=r[u];e:{var x=void 0,E=g.event;if(g=g.listeners,a)for(var M=g.length-1;0<=M;M--){var D=g[M],q=D.instance,K=D.currentTarget;if(D=D.listener,q!==x&&E.isPropagationStopped())break e;q!==null?Be(q,Xn,E,D,K):Xn(E,D,K),x=q}else for(M=0;M<g.length;M++){if(D=g[M],q=D.instance,K=D.currentTarget,D=D.listener,q!==x&&E.isPropagationStopped())break e;q!==null?Be(q,Xn,E,D,K):Xn(E,D,K),x=q}}}}function sn(r,a){rC.has(r)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',r);var u=a[jx];u===void 0&&(u=a[jx]=new Set);var g=r+"__bubble";u.has(g)||(Vs(a,r,2,!1),u.add(g))}function zc(r,a,u){rC.has(r)&&!a&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',r);var g=0;a&&(g|=4),Vs(u,r,g,a)}function Hp(r){if(!r[Sw]){r[Sw]=!0,dm.forEach(function(u){u!=="selectionchange"&&(rC.has(u)||zc(u,!1,r),zc(u,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[Sw]||(a[Sw]=!0,zc("selectionchange",!1,a))}}function Vs(r,a,u,g){switch(fy(a)){case Ti:var x=Zi;break;case ta:x=K8;break;default:x=cy}u=x.bind(null,a,u,r),x=void 0,!iA||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(x=!0),g?x!==void 0?r.addEventListener(a,u,{capture:!0,passive:x}):r.addEventListener(a,u,!0):x!==void 0?r.addEventListener(a,u,{passive:x}):r.addEventListener(a,u,!1)}function Nr(r,a,u,g,x){var E=g;if((a&1)===0&&(a&2)===0&&g!==null)e:for(;;){if(g===null)return;var M=g.tag;if(M===3||M===4){var D=g.stateNode.containerInfo;if(D===x)break;if(M===4)for(M=g.return;M!==null;){var q=M.tag;if((q===3||q===4)&&M.stateNode.containerInfo===x)return;M=M.return}for(;D!==null;){if(M=tt(D),M===null)return;if(q=M.tag,q===5||q===6||q===26||q===27){g=E=M;continue e}D=D.parentNode}}g=g.return}wf(function(){var K=E,Ee=$h(u),Ae=[];e:{var ge=EI.get(r);if(ge!==void 0){var Le=jE,mt=r;switch(r){case"keypress":if(Qd(u)===0)break e;case"keydown":case"keyup":Le=Hce;break;case"focusin":mt="focus",Le=sA;break;case"focusout":mt="blur",Le=sA;break;case"beforeblur":case"afterblur":Le=sA;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Le=sI;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Le=Dce;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Le=Fce;break;case vI:case bI:case xI:Le=zce;break;case SI:Le=Xce;break;case"scroll":case"scrollend":Le=Rce;break;case"wheel":Le=Qce;break;case"copy":case"cut":case"paste":Le=Lce;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Le=cI;break;case"toggle":case"beforetoggle":Le=Zce}var Et=(a&4)!==0,Rr=!Et&&(r==="scroll"||r==="scrollend"),Un=Et?ge!==null?ge+"Capture":null:ge;Et=[];for(var he=K,ye;he!==null;){var xe=he;if(ye=xe.stateNode,xe=xe.tag,xe!==5&&xe!==26&&xe!==27||ye===null||Un===null||(xe=os(he,Un),xe!=null&&Et.push(il(he,xe,ye))),Rr)break;he=he.return}0<Et.length&&(ge=new Le(ge,mt,null,u,Ee),Ae.push({event:ge,listeners:Et}))}}if((a&7)===0){e:{if(ge=r==="mouseover"||r==="pointerover",Le=r==="mouseout"||r==="pointerout",ge&&u!==Ux&&(mt=u.relatedTarget||u.fromElement)&&(tt(mt)||mt[cl]))break e;if((Le||ge)&&(ge=Ee.window===Ee?Ee:(ge=Ee.ownerDocument)?ge.defaultView||ge.parentWindow:window,Le?(mt=u.relatedTarget||u.toElement,Le=K,mt=mt?tt(mt):null,mt!==null&&(Rr=z(mt),Et=mt.tag,mt!==Rr||Et!==5&&Et!==27&&Et!==6)&&(mt=null)):(Le=null,mt=K),Le!==mt)){if(Et=sI,xe="onMouseLeave",Un="onMouseEnter",he="mouse",(r==="pointerout"||r==="pointerover")&&(Et=cI,xe="onPointerLeave",Un="onPointerEnter",he="pointer"),Rr=Le==null?ge:We(Le),ye=mt==null?ge:We(mt),ge=new Et(xe,he+"leave",Le,u,Ee),ge.target=Rr,ge.relatedTarget=ye,xe=null,tt(Ee)===K&&(Et=new Et(Un,he+"enter",mt,u,Ee),Et.target=ye,Et.relatedTarget=Rr,xe=Et),Rr=xe,Le&&mt)t:{for(Et=ux,Un=Le,he=mt,ye=0,xe=Un;xe;xe=Et(xe))ye++;xe=0;for(var Ge=he;Ge;Ge=Et(Ge))xe++;for(;0<ye-xe;)Un=Et(Un),ye--;for(;0<xe-ye;)he=Et(he),xe--;for(;ye--;){if(Un===he||he!==null&&Un===he.alternate){Et=Un;break t}Un=Et(Un),he=Et(he)}Et=null}else Et=null;Le!==null&&ao(Ae,ge,Le,Et,!1),mt!==null&&Rr!==null&&ao(Ae,Rr,mt,Et,!0)}}e:{if(ge=K?We(K):window,Le=ge.nodeName&&ge.nodeName.toLowerCase(),Le==="select"||Le==="input"&&ge.type==="file")var bt=Gh;else if(qh(ge))if(gI)bt=Qg;else{bt=Kb;var on=Qb}else Le=ge.nodeName,!Le||Le.toLowerCase()!=="input"||ge.type!=="checkbox"&&ge.type!=="radio"?K&&Uh(K.elementType)&&(bt=Gh):bt=Fh;if(bt&&(bt=bt(r,K))){Wb(Ae,bt,u,Ee);break e}on&&on(r,ge,K),r==="focusout"&&K&&ge.type==="number"&&K.memoizedProps.value!=null&&jb(ge,"number",ge.value)}switch(on=K?We(K):window,r){case"focusin":(qh(on)||on.contentEditable==="true")&&(zy=on,cA=K,Xx=null);break;case"focusout":Xx=cA=zy=null;break;case"mousedown":fA=!0;break;case"contextmenu":case"mouseup":case"dragend":fA=!1,I6(Ae,u,Ee);break;case"selectionchange":if(nfe)break;case"keydown":case"keyup":I6(Ae,u,Ee)}var Pt;if(uA)e:{switch(r){case"compositionstart":var Nt="onCompositionStart";break e;case"compositionend":Nt="onCompositionEnd";break e;case"compositionupdate":Nt="onCompositionUpdate";break e}Nt=void 0}else ky?pu(r,u)&&(Nt="onCompositionEnd"):r==="keydown"&&u.keyCode===fI&&(Nt="onCompositionStart");Nt&&(dI&&u.locale!=="ko"&&(ky||Nt!=="onCompositionStart"?Nt==="onCompositionEnd"&&ky&&(Pt=Yb()):(j0=Ee,aA="value"in j0?j0.value:j0.textContent,ky=!0)),on=Bs(K,Nt),0<on.length&&(Nt=new uI(Nt,r,null,u,Ee),Ae.push({event:Nt,listeners:on}),Pt?Nt.data=Pt:(Pt=Yg(u),Pt!==null&&(Nt.data=Pt)))),(Pt=efe?Xg(r,u):R6(r,u))&&(Nt=Bs(K,"onBeforeInput"),0<Nt.length&&(on=new Bce("onBeforeInput","beforeinput",null,u,Ee),Ae.push({event:on,listeners:Nt}),on.data=Pt)),zn(Ae,r,K,u,Ee)}io(Ae,a)})}function il(r,a,u){return{instance:r,listener:a,currentTarget:u}}function Bs(r,a){for(var u=a+"Capture",g=[];r!==null;){var x=r,E=x.stateNode;if(x=x.tag,x!==5&&x!==26&&x!==27||E===null||(x=os(r,u),x!=null&&g.unshift(il(r,x,E)),x=os(r,a),x!=null&&g.push(il(r,x,E))),r.tag===3)return g;r=r.return}return[]}function ux(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function ao(r,a,u,g,x){for(var E=a._reactName,M=[];u!==null&&u!==g;){var D=u,q=D.alternate,K=D.stateNode;if(D=D.tag,q!==null&&q===g)break;D!==5&&D!==26&&D!==27||K===null||(q=K,x?(K=os(u,E),K!=null&&M.unshift(il(u,K,q))):x||(K=os(u,E),K!=null&&M.push(il(u,K,q)))),u=u.return}M.length!==0&&r.push({event:a,listeners:M})}function Ic(r,a){Fb(r,a),r!=="input"&&r!=="textarea"&&r!=="select"||a==null||a.value!==null||oI||(oI=!0,r==="select"&&a.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",r):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",r));var u={registrationNameDependencies:Hs,possibleRegistrationNames:Oy};Uh(r)||typeof a.is=="string"||U8(r,a,u),a.contentEditable&&!a.suppressContentEditableWarning&&a.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function Kr(r,a,u,g){a!==u&&(u=Ru(u),Ru(a)!==u&&(g[r]=a))}function oo(r,a,u){a.forEach(function(g){u[ed(g)]=g==="style"?Ll(r):r.getAttribute(g)})}function al(r,a){a===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",r,r,r):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",r,typeof a)}function qp(r,a){return r=r.namespaceURI===Cn||r.namespaceURI===Dn?r.ownerDocument.createElementNS(r.namespaceURI,r.tagName):r.ownerDocument.createElement(r.tagName),r.innerHTML=a,r.innerHTML}function Ru(r){return Mt(r)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",st(r)),Kt(r)),(typeof r=="string"?r:""+r).replace(Rfe,`
|
|
269
|
+
`).replace(_fe,"")}function Gp(r,a){return a=Ru(a),Ru(r)===a}function Qn(r,a,u,g,x,E){switch(u){case"children":typeof g=="string"?(Wd(g,a,!1),a==="body"||a==="textarea"&&g===""||as(r,g)):(typeof g=="number"||typeof g=="bigint")&&(Wd(""+g,a,!1),a!=="body"&&as(r,""+g));break;case"className":zh(r,"class",g);break;case"tabIndex":zh(r,"tabindex",g);break;case"dir":case"role":case"viewBox":case"width":case"height":zh(r,u,g);break;case"style":Ef(r,g,E);break;case"data":if(a!=="object"){zh(r,"data",g);break}case"src":case"href":if(g===""&&(a!=="a"||u!=="href")){console.error(u==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',u,u),r.removeAttribute(u);break}if(g==null||typeof g=="function"||typeof g=="symbol"||typeof g=="boolean"){r.removeAttribute(u);break}xt(g,u),g=hc(""+g),r.setAttribute(u,g);break;case"action":case"formAction":if(g!=null&&(a==="form"?u==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof g=="function"&&(x.encType==null&&x.method==null||Tw||(Tw=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),x.target==null||ww||(ww=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):a==="input"||a==="button"?u==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):a!=="input"||x.type==="submit"||x.type==="image"||Ew?a!=="button"||x.type==null||x.type==="submit"||Ew?typeof g=="function"&&(x.name==null||GL||(GL=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),x.formEncType==null&&x.formMethod==null||Tw||(Tw=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),x.formTarget==null||ww||(ww=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(Ew=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Ew=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(u==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof g=="function"){r.setAttribute(u,"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 E=="function"&&(u==="formAction"?(a!=="input"&&Qn(r,a,"name",x.name,x,null),Qn(r,a,"formEncType",x.formEncType,x,null),Qn(r,a,"formMethod",x.formMethod,x,null),Qn(r,a,"formTarget",x.formTarget,x,null)):(Qn(r,a,"encType",x.encType,x,null),Qn(r,a,"method",x.method,x,null),Qn(r,a,"target",x.target,x,null)));if(g==null||typeof g=="symbol"||typeof g=="boolean"){r.removeAttribute(u);break}xt(g,u),g=hc(""+g),r.setAttribute(u,g);break;case"onClick":g!=null&&(typeof g!="function"&&al(u,g),r.onclick=Gi);break;case"onScroll":g!=null&&(typeof g!="function"&&al(u,g),sn("scroll",r));break;case"onScrollEnd":g!=null&&(typeof g!="function"&&al(u,g),sn("scrollend",r));break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(u=g.__html,u!=null){if(x.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");r.innerHTML=u}}break;case"multiple":r.multiple=g&&typeof g!="function"&&typeof g!="symbol";break;case"muted":r.muted=g&&typeof g!="function"&&typeof g!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(g==null||typeof g=="function"||typeof g=="boolean"||typeof g=="symbol"){r.removeAttribute("xlink:href");break}xt(g,u),u=hc(""+g),r.setAttributeNS(Nm,"xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":g!=null&&typeof g!="function"&&typeof g!="symbol"?(xt(g,u),r.setAttribute(u,""+g)):r.removeAttribute(u);break;case"inert":g!==""||Aw[u]||(Aw[u]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",u));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":g&&typeof g!="function"&&typeof g!="symbol"?r.setAttribute(u,""):r.removeAttribute(u);break;case"capture":case"download":g===!0?r.setAttribute(u,""):g!==!1&&g!=null&&typeof g!="function"&&typeof g!="symbol"?(xt(g,u),r.setAttribute(u,g)):r.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":g!=null&&typeof g!="function"&&typeof g!="symbol"&&!isNaN(g)&&1<=g?(xt(g,u),r.setAttribute(u,g)):r.removeAttribute(u);break;case"rowSpan":case"start":g==null||typeof g=="function"||typeof g=="symbol"||isNaN(g)?r.removeAttribute(u):(xt(g,u),r.setAttribute(u,g));break;case"popover":sn("beforetoggle",r),sn("toggle",r),mf(r,"popover",g);break;case"xlinkActuate":is(r,Nm,"xlink:actuate",g);break;case"xlinkArcrole":is(r,Nm,"xlink:arcrole",g);break;case"xlinkRole":is(r,Nm,"xlink:role",g);break;case"xlinkShow":is(r,Nm,"xlink:show",g);break;case"xlinkTitle":is(r,Nm,"xlink:title",g);break;case"xlinkType":is(r,Nm,"xlink:type",g);break;case"xmlBase":is(r,iC,"xml:base",g);break;case"xmlLang":is(r,iC,"xml:lang",g);break;case"xmlSpace":is(r,iC,"xml:space",g);break;case"is":E!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),mf(r,"is",g);break;case"innerText":case"textContent":break;case"popoverTarget":FL||g==null||typeof g!="object"||(FL=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",g));default:!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N"?(u=Gb(u),mf(r,u,g)):Hs.hasOwnProperty(u)&&g!=null&&typeof g!="function"&&al(u,g)}}function js(r,a,u,g,x,E){switch(u){case"style":Ef(r,g,E);break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(u=g.__html,u!=null){if(x.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");r.innerHTML=u}}break;case"children":typeof g=="string"?as(r,g):(typeof g=="number"||typeof g=="bigint")&&as(r,""+g);break;case"onScroll":g!=null&&(typeof g!="function"&&al(u,g),sn("scroll",r));break;case"onScrollEnd":g!=null&&(typeof g!="function"&&al(u,g),sn("scrollend",r));break;case"onClick":g!=null&&(typeof g!="function"&&al(u,g),r.onclick=Gi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Hs.hasOwnProperty(u))g!=null&&typeof g!="function"&&al(u,g);else e:{if(u[0]==="o"&&u[1]==="n"&&(x=u.endsWith("Capture"),a=u.slice(2,x?u.length-7:void 0),E=r[pa]||null,E=E!=null?E[u]:null,typeof E=="function"&&r.removeEventListener(a,E,x),typeof g=="function")){typeof E!="function"&&E!==null&&(u in r?r[u]=null:r.hasAttribute(u)&&r.removeAttribute(u)),r.addEventListener(a,g,x);break e}u in r?r[u]=g:g===!0?r.setAttribute(u,""):mf(r,u,g)}}}function jn(r,a,u){switch(Ic(a,u),a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":sn("error",r),sn("load",r);var g=!1,x=!1,E;for(E in u)if(u.hasOwnProperty(E)){var M=u[E];if(M!=null)switch(E){case"src":g=!0;break;case"srcSet":x=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Qn(r,a,E,M,u,null)}}x&&Qn(r,a,"srcSet",u.srcSet,u,null),g&&Qn(r,a,"src",u.src,u,null);return;case"input":Bn("input",u),sn("invalid",r);var D=E=M=x=null,q=null,K=null;for(g in u)if(u.hasOwnProperty(g)){var Ee=u[g];if(Ee!=null)switch(g){case"name":x=Ee;break;case"type":M=Ee;break;case"checked":q=Ee;break;case"defaultChecked":K=Ee;break;case"value":E=Ee;break;case"defaultValue":D=Ee;break;case"children":case"dangerouslySetInnerHTML":if(Ee!=null)throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Qn(r,a,g,Ee,u,null)}}gf(r,u),A6(r,E,D,q,K,M,x,!1);return;case"select":Bn("select",u),sn("invalid",r),g=M=E=null;for(x in u)if(u.hasOwnProperty(x)&&(D=u[x],D!=null))switch(x){case"value":E=D;break;case"defaultValue":M=D;break;case"multiple":g=D;default:Qn(r,a,x,D,u,null)}yf(r,u),a=E,u=M,r.multiple=!!g,a!=null?dc(r,!!g,a,!1):u!=null&&dc(r,!!g,u,!0);return;case"textarea":Bn("textarea",u),sn("invalid",r),E=x=g=null;for(M in u)if(u.hasOwnProperty(M)&&(D=u[M],D!=null))switch(M){case"value":g=D;break;case"defaultValue":x=D;break;case"children":E=D;break;case"dangerouslySetInnerHTML":if(D!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Qn(r,a,M,D,u,null)}vf(r,u),bf(r,g,x,E);return;case"option":Pb(r,u);for(q in u)if(u.hasOwnProperty(q)&&(g=u[q],g!=null))switch(q){case"selected":r.selected=g&&typeof g!="function"&&typeof g!="symbol";break;default:Qn(r,a,q,g,u,null)}return;case"dialog":sn("beforetoggle",r),sn("toggle",r),sn("cancel",r),sn("close",r);break;case"iframe":case"object":sn("load",r);break;case"video":case"audio":for(g=0;g<T5.length;g++)sn(T5[g],r);break;case"image":sn("error",r),sn("load",r);break;case"details":sn("toggle",r);break;case"embed":case"source":case"link":sn("error",r),sn("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in u)if(u.hasOwnProperty(K)&&(g=u[K],g!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Qn(r,a,K,g,u,null)}return;default:if(Uh(a)){for(Ee in u)u.hasOwnProperty(Ee)&&(g=u[Ee],g!==void 0&&js(r,a,Ee,g,u,void 0));return}}for(D in u)u.hasOwnProperty(D)&&(g=u[D],g!=null&&Qn(r,a,D,g,u,null))}function Lc(r,a,u,g){switch(Ic(a,g),a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var x=null,E=null,M=null,D=null,q=null,K=null,Ee=null;for(Le in u){var Ae=u[Le];if(u.hasOwnProperty(Le)&&Ae!=null)switch(Le){case"checked":break;case"value":break;case"defaultValue":q=Ae;default:g.hasOwnProperty(Le)||Qn(r,a,Le,null,g,Ae)}}for(var ge in g){var Le=g[ge];if(Ae=u[ge],g.hasOwnProperty(ge)&&(Le!=null||Ae!=null))switch(ge){case"type":E=Le;break;case"name":x=Le;break;case"checked":K=Le;break;case"defaultChecked":Ee=Le;break;case"value":M=Le;break;case"defaultValue":D=Le;break;case"children":case"dangerouslySetInnerHTML":if(Le!=null)throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Le!==Ae&&Qn(r,a,ge,Le,g,Ae)}}a=u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null,g=g.type==="checkbox"||g.type==="radio"?g.checked!=null:g.value!=null,a||!g||qL||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),qL=!0),!a||g||HL||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),HL=!0),Ih(r,M,D,q,K,Ee,E,x);return;case"select":Le=M=D=ge=null;for(E in u)if(q=u[E],u.hasOwnProperty(E)&&q!=null)switch(E){case"value":break;case"multiple":Le=q;default:g.hasOwnProperty(E)||Qn(r,a,E,null,g,q)}for(x in g)if(E=g[x],q=u[x],g.hasOwnProperty(x)&&(E!=null||q!=null))switch(x){case"value":ge=E;break;case"defaultValue":D=E;break;case"multiple":M=E;default:E!==q&&Qn(r,a,x,E,g,q)}g=D,a=M,u=Le,ge!=null?dc(r,!!a,ge,!1):!!u!=!!a&&(g!=null?dc(r,!!a,g,!0):dc(r,!!a,a?[]:"",!1));return;case"textarea":Le=ge=null;for(D in u)if(x=u[D],u.hasOwnProperty(D)&&x!=null&&!g.hasOwnProperty(D))switch(D){case"value":break;case"children":break;default:Qn(r,a,D,null,g,x)}for(M in g)if(x=g[M],E=u[M],g.hasOwnProperty(M)&&(x!=null||E!=null))switch(M){case"value":ge=x;break;case"defaultValue":Le=x;break;case"children":break;case"dangerouslySetInnerHTML":if(x!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:x!==E&&Qn(r,a,M,x,g,E)}Yd(r,ge,Le);return;case"option":for(var mt in u)if(ge=u[mt],u.hasOwnProperty(mt)&&ge!=null&&!g.hasOwnProperty(mt))switch(mt){case"selected":r.selected=!1;break;default:Qn(r,a,mt,null,g,ge)}for(q in g)if(ge=g[q],Le=u[q],g.hasOwnProperty(q)&&ge!==Le&&(ge!=null||Le!=null))switch(q){case"selected":r.selected=ge&&typeof ge!="function"&&typeof ge!="symbol";break;default:Qn(r,a,q,ge,g,Le)}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 Et in u)ge=u[Et],u.hasOwnProperty(Et)&&ge!=null&&!g.hasOwnProperty(Et)&&Qn(r,a,Et,null,g,ge);for(K in g)if(ge=g[K],Le=u[K],g.hasOwnProperty(K)&&ge!==Le&&(ge!=null||Le!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Qn(r,a,K,ge,g,Le)}return;default:if(Uh(a)){for(var Rr in u)ge=u[Rr],u.hasOwnProperty(Rr)&&ge!==void 0&&!g.hasOwnProperty(Rr)&&js(r,a,Rr,void 0,g,ge);for(Ee in g)ge=g[Ee],Le=u[Ee],!g.hasOwnProperty(Ee)||ge===Le||ge===void 0&&Le===void 0||js(r,a,Ee,ge,g,Le);return}}for(var Un in u)ge=u[Un],u.hasOwnProperty(Un)&&ge!=null&&!g.hasOwnProperty(Un)&&Qn(r,a,Un,null,g,ge);for(Ae in g)ge=g[Ae],Le=u[Ae],!g.hasOwnProperty(Ae)||ge===Le||ge==null&&Le==null||Qn(r,a,Ae,ge,g,Le)}function ed(r){switch(r){case"class":return"className";case"for":return"htmlFor";default:return r}}function Ll(r){var a={};r=r.style;for(var u=0;u<r.length;u++){var g=r[u];a[g]=r.getPropertyValue(g)}return a}function X1(r,a,u){if(a!=null&&typeof a!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var g,x=g="",E;for(E in a)if(a.hasOwnProperty(E)){var M=a[E];M!=null&&typeof M!="boolean"&&M!==""&&(E.indexOf("--")===0?(Ut(M,E),g+=x+E+":"+(""+M).trim()):typeof M!="number"||M===0||pn.has(E)?(Ut(M,E),g+=x+E.replace(Rt,"-$1").toLowerCase().replace(Ht,"-ms-")+":"+(""+M).trim()):g+=x+E.replace(Rt,"-$1").toLowerCase().replace(Ht,"-ms-")+":"+M+"px",x=";")}g=g||null,a=r.getAttribute("style"),a!==g&&(g=Ru(g),Ru(a)!==g&&(u.style=Ll(r)))}}function lo(r,a,u,g,x,E){if(x.delete(u),r=r.getAttribute(u),r===null)switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":return}else if(g!=null)switch(typeof g){case"function":case"symbol":case"boolean":break;default:if(xt(g,a),r===""+g)return}Kr(a,r,g,E)}function cx(r,a,u,g,x,E){if(x.delete(u),r=r.getAttribute(u),r===null){switch(typeof g){case"function":case"symbol":return}if(!g)return}else switch(typeof g){case"function":case"symbol":break;default:if(g)return}Kr(a,r,g,E)}function td(r,a,u,g,x,E){if(x.delete(u),r=r.getAttribute(u),r===null)switch(typeof g){case"undefined":case"function":case"symbol":return}else if(g!=null)switch(typeof g){case"function":case"symbol":break;default:if(xt(g,u),r===""+g)return}Kr(a,r,g,E)}function W1(r,a,u,g,x,E){if(x.delete(u),r=r.getAttribute(u),r===null)switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(g))return}else if(g!=null)switch(typeof g){case"function":case"symbol":case"boolean":break;default:if(!isNaN(g)&&(xt(g,a),r===""+g))return}Kr(a,r,g,E)}function ka(r,a,u,g,x,E){if(x.delete(u),r=r.getAttribute(u),r===null)switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":return}else if(g!=null)switch(typeof g){case"function":case"symbol":case"boolean":break;default:if(xt(g,a),u=hc(""+g),r===u)return}Kr(a,r,g,E)}function fx(r,a,u,g){for(var x={},E=new Set,M=r.attributes,D=0;D<M.length;D++)switch(M[D].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:E.add(M[D].name)}if(Uh(a)){for(var q in u)if(u.hasOwnProperty(q)){var K=u[q];if(K!=null){if(Hs.hasOwnProperty(q))typeof K!="function"&&al(q,K);else if(u.suppressHydrationWarning!==!0)switch(q){case"children":typeof K!="string"&&typeof K!="number"||Kr("children",r.textContent,K,x);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":M=r.innerHTML,K=K?K.__html:void 0,K!=null&&(K=qp(r,K),Kr(q,M,K,x));continue;case"style":E.delete(q),X1(r,K,x);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":E.delete(q.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",q);continue;case"className":E.delete("class"),M=Pg(r,"class",K),Kr("className",M,K,x);continue;default:g.context===Ed&&a!=="svg"&&a!=="math"?E.delete(q.toLowerCase()):E.delete(q),M=Pg(r,q,K),Kr(q,M,K,x)}}}}else for(K in u)if(u.hasOwnProperty(K)&&(q=u[K],q!=null)){if(Hs.hasOwnProperty(K))typeof q!="function"&&al(K,q);else if(u.suppressHydrationWarning!==!0)switch(K){case"children":typeof q!="string"&&typeof q!="number"||Kr("children",r.textContent,q,x);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":M=r.innerHTML,q=q?q.__html:void 0,q!=null&&(q=qp(r,q),M!==q&&(x[K]={__html:M}));continue;case"className":lo(r,K,"class",q,E,x);continue;case"tabIndex":lo(r,K,"tabindex",q,E,x);continue;case"style":E.delete(K),X1(r,q,x);continue;case"multiple":E.delete(K),Kr(K,r.multiple,q,x);continue;case"muted":E.delete(K),Kr(K,r.muted,q,x);continue;case"autoFocus":E.delete("autofocus"),Kr(K,r.autofocus,q,x);continue;case"data":if(a!=="object"){E.delete(K),M=r.getAttribute("data"),Kr(K,M,q,x);continue}case"src":case"href":if(!(q!==""||a==="a"&&K==="href"||a==="object"&&K==="data")){console.error(K==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',K,K);continue}ka(r,K,K,q,E,x);continue;case"action":case"formAction":if(M=r.getAttribute(K),typeof q=="function"){E.delete(K.toLowerCase()),K==="formAction"?(E.delete("name"),E.delete("formenctype"),E.delete("formmethod"),E.delete("formtarget")):(E.delete("enctype"),E.delete("method"),E.delete("target"));continue}else if(M===Dfe){E.delete(K.toLowerCase()),Kr(K,"function",q,x);continue}ka(r,K,K.toLowerCase(),q,E,x);continue;case"xlinkHref":ka(r,K,"xlink:href",q,E,x);continue;case"contentEditable":td(r,K,"contenteditable",q,E,x);continue;case"spellCheck":td(r,K,"spellcheck",q,E,x);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":td(r,K,K,q,E,x);continue;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":cx(r,K,K.toLowerCase(),q,E,x);continue;case"capture":case"download":e:{D=r;var Ee=M=K,Ae=x;if(E.delete(Ee),D=D.getAttribute(Ee),D===null)switch(typeof q){case"undefined":case"function":case"symbol":break e;default:if(q===!1)break e}else if(q!=null)switch(typeof q){case"function":case"symbol":break;case"boolean":if(q===!0&&D==="")break e;break;default:if(xt(q,M),D===""+q)break e}Kr(M,D,q,Ae)}continue;case"cols":case"rows":case"size":case"span":e:{if(D=r,Ee=M=K,Ae=x,E.delete(Ee),D=D.getAttribute(Ee),D===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(q)||1>q)break e}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(q)||1>q)&&(xt(q,M),D===""+q))break e}Kr(M,D,q,Ae)}continue;case"rowSpan":W1(r,K,"rowspan",q,E,x);continue;case"start":W1(r,K,K,q,E,x);continue;case"xHeight":lo(r,K,"x-height",q,E,x);continue;case"xlinkActuate":lo(r,K,"xlink:actuate",q,E,x);continue;case"xlinkArcrole":lo(r,K,"xlink:arcrole",q,E,x);continue;case"xlinkRole":lo(r,K,"xlink:role",q,E,x);continue;case"xlinkShow":lo(r,K,"xlink:show",q,E,x);continue;case"xlinkTitle":lo(r,K,"xlink:title",q,E,x);continue;case"xlinkType":lo(r,K,"xlink:type",q,E,x);continue;case"xmlBase":lo(r,K,"xml:base",q,E,x);continue;case"xmlLang":lo(r,K,"xml:lang",q,E,x);continue;case"xmlSpace":lo(r,K,"xml:space",q,E,x);continue;case"inert":q!==""||Aw[K]||(Aw[K]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",K)),cx(r,K,K,q,E,x);continue;default:if(!(2<K.length)||K[0]!=="o"&&K[0]!=="O"||K[1]!=="n"&&K[1]!=="N"){D=Gb(K),M=!1,g.context===Ed&&a!=="svg"&&a!=="math"?E.delete(D.toLowerCase()):(Ee=K.toLowerCase(),Ee=Ry.hasOwnProperty(Ee)&&Ry[Ee]||null,Ee!==null&&Ee!==K&&(M=!0,E.delete(Ee)),E.delete(D));e:if(Ee=r,Ae=D,D=q,oi(Ae))if(Ee.hasAttribute(Ae))Ee=Ee.getAttribute(Ae),xt(D,Ae),D=Ee===""+D?D:Ee;else{switch(typeof D){case"function":case"symbol":break e;case"boolean":if(Ee=Ae.toLowerCase().slice(0,5),Ee!=="data-"&&Ee!=="aria-")break e}D=D===void 0?void 0:null}else D=void 0;M||Kr(K,D,q,x)}}}return 0<E.size&&u.suppressHydrationWarning!==!0&&oo(r,E,x),Object.keys(x).length===0?null:x}function so(r,a){switch(r.length){case 0:return"";case 1:return r[0];case 2:return r[0]+" "+a+" "+r[1];default:return r.slice(0,-1).join(", ")+", "+a+" "+r[r.length-1]}}function dx(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function uE(){if(typeof performance.getEntriesByType=="function"){for(var r=0,a=0,u=performance.getEntriesByType("resource"),g=0;g<u.length;g++){var x=u[g],E=x.transferSize,M=x.initiatorType,D=x.duration;if(E&&D&&dx(M)){for(M=0,D=x.responseEnd,g+=1;g<u.length;g++){var q=u[g],K=q.startTime;if(K>D)break;var Ee=q.transferSize,Ae=q.initiatorType;Ee&&dx(Ae)&&(q=q.responseEnd,M+=Ee*(q<D?1:(D-K)/(q-K)))}if(--g,a+=8*(E+M)/(x.duration/1e3),r++,10<r)break}}if(0<r)return a/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}function Q1(r){return r.nodeType===9?r:r.ownerDocument}function _u(r){switch(r){case Dn:return av;case Cn:return Ow;default:return Ed}}function Fp(r,a){if(r===Ed)switch(a){case"svg":return av;case"math":return Ow;default:return Ed}return r===av&&a==="foreignObject"?Ed:r}function Yp(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}function w0(){var r=window.event;return r&&r.type==="popstate"?r===sC?!1:(sC=r,!0):(sC=null,!1)}function T0(){var r=window.event;return r&&r!==O5?r.type:null}function A0(){var r=window.event;return r&&r!==O5?r.timeStamp:-1.1}function cE(r){setTimeout(function(){throw r})}function fE(r,a,u){switch(a){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src?r.src=u.src:u.srcSet&&(r.srcset=u.srcSet)}}function K1(){}function hx(r,a,u,g){Lc(r,a,u,g),r[pa]=g}function dE(r){as(r,"")}function W8(r,a,u){r.nodeValue=u}function hE(r){if(!r.__reactWarnedAboutChildrenConflict){var a=r[pa]||null;if(a!==null){var u=Ne(r);u!==null&&(typeof a.children=="string"||typeof a.children=="number"?(r.__reactWarnedAboutChildrenConflict=!0,Be(u,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):a.dangerouslySetInnerHTML!=null&&(r.__reactWarnedAboutChildrenConflict=!0,Be(u,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Du(r){return r==="head"}function pE(r,a){r.removeChild(a)}function C0(r,a){(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).removeChild(a)}function Xp(r,a){var u=a,g=0;do{var x=u.nextSibling;if(r.removeChild(u),x&&x.nodeType===8)if(u=x.data,u===C5||u===Cw){if(g===0){r.removeChild(x),N0(a);return}g--}else if(u===A5||u===rh||u===zm||u===iv||u===km)g++;else if(u===kfe)Kp(r.ownerDocument.documentElement);else if(u===Ife){u=r.ownerDocument.head,Kp(u);for(var E=u.firstChild;E;){var M=E.nextSibling,D=E.nodeName;E[fm]||D==="SCRIPT"||D==="STYLE"||D==="LINK"&&E.rel.toLowerCase()==="stylesheet"||u.removeChild(E),E=M}}else u===zfe&&Kp(r.ownerDocument.body);u=x}while(u);N0(a)}function px(r,a){var u=r;r=0;do{var g=u.nextSibling;if(u.nodeType===1?a?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(a?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),g&&g.nodeType===8)if(u=g.data,u===C5){if(r===0)break;r--}else u!==A5&&u!==rh&&u!==zm&&u!==iv||r++;u=g}while(u)}function mE(r){px(r,!0)}function gE(r){r=r.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none"}function yE(r){r.nodeValue=""}function vE(r){px(r,!1)}function bE(r,a){a=a[Lfe],a=a!=null&&a.hasOwnProperty("display")?a.display:null,r.style.display=a==null||typeof a=="boolean"?"":(""+a).trim()}function Z1(r,a){r.nodeValue=a}function J1(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var u=a;switch(a=a.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":J1(u),Oe(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}r.removeChild(u)}}function xE(r,a,u,g){for(;r.nodeType===1;){var x=u;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!g&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(g){if(!r[fm])switch(a){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(E=r.getAttribute("rel"),E==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(E!==x.rel||r.getAttribute("href")!==(x.href==null||x.href===""?null:x.href)||r.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin)||r.getAttribute("title")!==(x.title==null?null:x.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(E=r.getAttribute("src"),(E!==(x.src==null?null:x.src)||r.getAttribute("type")!==(x.type==null?null:x.type)||r.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin))&&E&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){xt(x.name,"name");var E=x.name==null?null:""+x.name;if(x.type==="hidden"&&r.getAttribute("name")===E)return r}else return r;if(r=_o(r.nextSibling),r===null)break}return null}function ir(r,a,u){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!u||(r=_o(r.nextSibling),r===null))return null;return r}function ey(r,a){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=_o(r.nextSibling),r===null))return null;return r}function mx(r){return r.data===rh||r.data===zm}function ty(r){return r.data===iv||r.data===rh&&r.ownerDocument.readyState!==XL}function Q8(r,a){var u=r.ownerDocument;if(r.data===zm)r._reactRetry=a;else if(r.data!==rh||u.readyState!==XL)a();else{var g=function(){a(),u.removeEventListener("DOMContentLoaded",g)};u.addEventListener("DOMContentLoaded",g),r._reactRetry=g}}function _o(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a===A5||a===iv||a===rh||a===zm||a===km||a===aC||a===YL)break;if(a===C5||a===Cw)return null}}return r}function SE(r){if(r.nodeType===1){for(var a=r.nodeName.toLowerCase(),u={},g=r.attributes,x=0;x<g.length;x++){var E=g[x];u[ed(E.name)]=E.name.toLowerCase()==="style"?Ll(r):E.value}return{type:a,props:u}}return r.nodeType===8?r.data===km?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:r.nodeValue}function Wp(r,a,u){return u===null||u[Nfe]!==!0?(r.nodeValue===a?r=null:(a=Ru(a),r=Ru(r.nodeValue)===a?null:r.nodeValue),r):null}function Vc(r){r=r.nextSibling;for(var a=0;r;){if(r.nodeType===8){var u=r.data;if(u===C5||u===Cw){if(a===0)return _o(r.nextSibling);a--}else u!==A5&&u!==iv&&u!==rh&&u!==zm&&u!==km||a++}r=r.nextSibling}return null}function ny(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var u=r.data;if(u===A5||u===iv||u===rh||u===zm||u===km){if(a===0)return r;a--}else u!==C5&&u!==Cw||a++}r=r.previousSibling}return null}function ry(r){N0(r)}function gx(r){N0(r)}function Bc(r){N0(r)}function Vl(r,a,u,g,x){switch(x&&Gg(r,g.ancestorInfo),a=Q1(u),r){case"html":if(r=a.documentElement,!r)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return r;case"head":if(r=a.head,!r)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return r;case"body":if(r=a.body,!r)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return r;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function Qp(r,a,u,g){if(!u[cl]&&Ne(u)){var x=u.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",x,x,x)}switch(r){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(x=u.attributes;x.length;)u.removeAttributeNode(x[0]);jn(u,r,a),u[na]=g,u[pa]=a}function Kp(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);Oe(r)}function Zp(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}function yx(r,a,u){var g=ov;if(g&&typeof a=="string"&&a){var x=Or(a);x='link[rel="'+r+'"][href="'+x+'"]',typeof u=="string"&&(x+='[crossorigin="'+u+'"]'),eV.has(x)||(eV.add(x),r={rel:r,crossOrigin:u,href:a},g.querySelector(x)===null&&(a=g.createElement("link"),jn(a,"link",r),vt(a),g.head.appendChild(a)))}}function vx(r,a,u,g){var x=(x=ll.current)?Zp(x):null;if(!x)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(r){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(u=O0(u.href),a=wt(x).hoistableStyles,g=a.get(u),g||(g={type:"style",instance:null,count:0,state:null},a.set(u,g)),g):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){r=O0(u.href);var E=wt(x).hoistableStyles,M=E.get(r);if(!M&&(x=x.ownerDocument||x,M={type:"stylesheet",instance:null,count:0,state:{loading:Lm,preload:null}},E.set(r,M),(E=x.querySelector(nd(r)))&&!E._p&&(M.instance=E,M.state.loading=M5|eu),!tu.has(r))){var D={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy};tu.set(r,D),E||EE(x,r,D,M.state)}if(a&&g===null)throw u=`
|
|
270
270
|
|
|
271
271
|
- `+Jp(a)+`
|
|
272
272
|
+ `+Jp(u),Error("Expected <link> not to update to be updated to a stylesheet with precedence. 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 M}if(a&&g!==null)throw u=`
|
|
@@ -274,7 +274,7 @@ This ensures that you're testing the behavior the user would see in the browser.
|
|
|
274
274
|
- `+Jp(a)+`
|
|
275
275
|
+ `+Jp(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 a=u.async,u=u.src,typeof u=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(u=M0(u),a=wt(x).hoistableScripts,g=a.get(u),g||(g={type:"script",instance:null,count:0,state:null},a.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 Jp(r){var a=0,u="<link";return typeof r.rel=="string"?(a++,u+=' rel="'+r.rel+'"'):jl.call(r,"rel")&&(a++,u+=' rel="'+(r.rel===null?"null":"invalid type "+typeof r.rel)+'"'),typeof r.href=="string"?(a++,u+=' href="'+r.href+'"'):jl.call(r,"href")&&(a++,u+=' href="'+(r.href===null?"null":"invalid type "+typeof r.href)+'"'),typeof r.precedence=="string"?(a++,u+=' precedence="'+r.precedence+'"'):jl.call(r,"precedence")&&(a++,u+=" precedence={"+(r.precedence===null?"null":"invalid type "+typeof r.precedence)+"}"),Object.getOwnPropertyNames(r).length>a&&(u+=" ..."),u+" />"}function O0(r){return'href="'+Or(r)+'"'}function nd(r){return'link[rel="stylesheet"]['+r+"]"}function bx(r){return yn({},r,{"data-precedence":r.precedence,precedence:null})}function EE(r,a,u,g){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?g.loading=M5:(a=r.createElement("link"),g.preload=a,a.addEventListener("load",function(){return g.loading|=M5}),a.addEventListener("error",function(){return g.loading|=ZL}),jn(a,"link",u),vt(a),r.head.appendChild(a))}function M0(r){return'[src="'+Or(r)+'"]'}function rd(r){return"script[async]"+r}function iy(r,a,u){if(a.count++,a.instance===null)switch(a.type){case"style":var g=r.querySelector('style[data-href~="'+Or(u.href)+'"]');if(g)return a.instance=g,vt(g),g;var x=yn({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return g=(r.ownerDocument||r).createElement("style"),vt(g),jn(g,"style",x),ay(g,u.precedence,r),a.instance=g;case"stylesheet":x=O0(u.href);var E=r.querySelector(nd(x));if(E)return a.state.loading|=eu,a.instance=E,vt(E),E;g=bx(u),(x=tu.get(x))&&xx(g,x),E=(r.ownerDocument||r).createElement("link"),vt(E);var M=E;return M._p=new Promise(function(D,q){M.onload=D,M.onerror=q}),jn(E,"link",g),a.state.loading|=eu,ay(E,u.precedence,r),a.instance=E;case"script":return E=M0(u.src),(x=r.querySelector(rd(E)))?(a.instance=x,vt(x),x):(g=u,(x=tu.get(E))&&(g=yn({},u),id(g,x)),r=r.ownerDocument||r,x=r.createElement("script"),vt(x),jn(x,"link",g),r.head.appendChild(x),a.instance=x);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+a.type+'". this is a bug in React.')}else a.type==="stylesheet"&&(a.state.loading&eu)===Lm&&(g=a.instance,a.state.loading|=eu,ay(g,u.precedence,r));return a.instance}function ay(r,a,u){for(var g=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),x=g.length?g[g.length-1]:null,E=x,M=0;M<g.length;M++){var D=g[M];if(D.dataset.precedence===a)E=D;else if(E!==x)break}E?E.parentNode.insertBefore(r,E.nextSibling):(a=u.nodeType===9?u.head:u,a.insertBefore(r,a.firstChild))}function xx(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function id(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}function wE(r,a,u){if(Mw===null){var g=new Map,x=Mw=new Map;x.set(u,g)}else x=Mw,g=x.get(u),g||(g=new Map,x.set(u,g));if(g.has(r))return g;for(g.set(r,null),u=u.getElementsByTagName(r),x=0;x<u.length;x++){var E=u[x];if(!(E[fm]||E[na]||r==="link"&&E.getAttribute("rel")==="stylesheet")&&E.namespaceURI!==Dn){var M=E.getAttribute(a)||"";M=r+M;var D=g.get(M);D?D.push(E):g.set(M,[E])}}return g}function Sx(r,a,u){r=r.ownerDocument||r,r.head.insertBefore(u,a==="title"?r.querySelector("head > title"):null)}function _n(r,a,u){var g=!u.ancestorInfo.containerTagInScope;if(u.context===av||a.itemProp!=null)return!g||a.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 a.precedence!="string"||typeof a.href!="string"||a.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 a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError){if(a.rel==="stylesheet"&&typeof a.precedence=="string"){r=a.href;var x=a.onError,E=a.disabled;u=[],a.onLoad&&u.push("`onLoad`"),x&&u.push("`onError`"),E!=null&&u.push("`disabled`"),x=so(u,"and"),x+=u.length===1?" prop":" props",E=u.length===1?"an "+x:"the "+x,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,x)}g&&(typeof a.rel!="string"||typeof a.href!="string"||a.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"):(a.onError||a.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(a.rel){case"stylesheet":return r=a.precedence,a=a.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"&&a==null;default:return!0}case"script":if(r=a.async&&typeof a.async!="function"&&typeof a.async!="symbol",!r||a.onLoad||a.onError||!a.src||typeof a.src!="string"){g&&(r?a.onLoad||a.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 oy(r){return!(r.type==="stylesheet"&&(r.state.loading&JL)===Lm)}function ly(r,a,u,g){if(u.type==="stylesheet"&&(typeof g.media!="string"||matchMedia(g.media).matches!==!1)&&(u.state.loading&eu)===Lm){if(u.instance===null){var x=O0(g.href),E=a.querySelector(nd(x));if(E){a=E._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(r.count++,r=em.bind(r),a.then(r,r)),u.state.loading|=eu,u.instance=E,vt(E);return}E=a.ownerDocument||a,g=bx(g),(x=tu.get(x))&&xx(g,x),E=E.createElement("link"),vt(E);var M=E;M._p=new Promise(function(D,q){M.onload=D,M.onerror=q}),jn(E,"link",g),u.instance=E}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(u,a),(a=u.state.preload)&&(u.state.loading&JL)===Lm&&(r.count++,u=em.bind(r),a.addEventListener("load",u),a.addEventListener("error",u))}}function Ex(r,a){return r.stylesheets&&r.count===0&&R0(r,r.stylesheets),0<r.count||0<r.imgCount?function(u){var g=setTimeout(function(){if(r.stylesheets&&R0(r,r.stylesheets),r.unsuspend){var E=r.unsuspend;r.unsuspend=null,E()}},jfe+a);0<r.imgBytes&&cC===0&&(cC=125*uE()*Ufe);var x=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&R0(r,r.stylesheets),r.unsuspend)){var E=r.unsuspend;r.unsuspend=null,E()}},(r.imgBytes>cC?50:Pfe)+a);return r.unsuspend=u,function(){r.unsuspend=null,clearTimeout(g),clearTimeout(x)}}:null}function em(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)R0(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}function R0(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Rw=new Map,a.forEach(tm,r),Rw=null,em.call(r))}function tm(r,a){if(!(a.state.loading&eu)){var u=Rw.get(r);if(u)var g=u.get(fC);else{u=new Map,Rw.set(r,u);for(var x=r.querySelectorAll("link[data-precedence],style[data-precedence]"),E=0;E<x.length;E++){var M=x[E];(M.nodeName==="LINK"||M.getAttribute("media")!=="not all")&&(u.set(M.dataset.precedence,M),g=M)}g&&u.set(fC,g)}x=a.instance,M=x.getAttribute("data-precedence"),E=u.get(M)||g,E===g&&u.set(fC,x),u.set(M,x),this.count++,g=em.bind(this),x.addEventListener("load",g),x.addEventListener("error",g),E?E.parentNode.insertBefore(x,E.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(x,r.firstChild)),a.state.loading|=eu}}function sy(r,a,u,g,x,E,M,D,q){for(this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Im,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=nt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nt(0),this.hiddenUpdates=nt(null),this.identifierPrefix=g,this.onUncaughtError=x,this.onCaughtError=E,this.onRecoverableError=M,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=q,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,r=this.pendingUpdatersLaneMap=[],a=0;31>a;a++)r.push(new Set);this._debugRootType=u?"hydrateRoot()":"createRoot()"}function TE(r,a,u,g,x,E,M,D,q,K,Ee,Ae){return r=new sy(r,a,u,M,q,K,Ee,Ae,D),a=ffe,E===!0&&(a|=co|Lu),a|=xn,E=w(3,null,null,a),r.current=E,E.stateNode=r,a=f4(),Df(a),r.pooledCache=a,Df(a),E.memoizedState={element:g,isDehydrated:u,cache:a},bs(E),r}function wx(r){return r?(r=$0,r):$0}function Tx(r,a,u,g,x,E){if(ha&&typeof ha.onScheduleFiberRoot=="function")try{ha.onScheduleFiberRoot(Iu,g,u)}catch(M){$s||($s=!0,console.error("React instrumentation encountered an error: %o",M))}x=wx(x),g.context===null?g.context=x:g.pendingContext=x,sl&&Do!==null&&!iV&&(iV=!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.
|
|
276
276
|
|
|
277
|
-
Check the render method of %s.`,ue(Do)||"Unknown")),g=xs(a),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=Oa(r,g,a),u!==null&&(Ol(a,"root.render()",null),Br(u,r,a),i0(u,r,a))}function AE(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var u=r.retryLane;r.retryLane=u!==0&&u<a?u:a}}function uy(r,a){AE(r,a),(r=r.alternate)&&AE(r,a)}function Ax(r){if(r.tag===13||r.tag===31){var a=Fi(r,67108864);a!==null&&Br(a,r,67108864),uy(r,67108864)}}function ar(r){if(r.tag===13||r.tag===31){var a=Ki(r);a=jt(a);var u=Fi(r,a);u!==null&&Br(u,r,a),uy(r,a)}}function Cx(){return Do}function Zi(r,a,u,g){var x=$e.T;$e.T=null;var E=Kn.p;try{Kn.p=Ti,cy(r,a,u,g)}finally{Kn.p=E,$e.T=x}}function K8(r,a,u,g){var x=$e.T;$e.T=null;var E=Kn.p;try{Kn.p=ta,cy(r,a,u,g)}finally{Kn.p=E,$e.T=x}}function cy(r,a,u,g){if(Dw){var x=Ox(g);if(x===null)Nr(r,a,g,Nw,u),rm(r,g);else if(CE(x,r,a,u,g))g.stopPropagation();else if(rm(r,g),a&4&&-1<Hfe.indexOf(r)){for(;x!==null;){var E=Ne(x);if(E!==null)switch(E.tag){case 3:if(E=E.stateNode,E.current.memoizedState.isDehydrated){var M=Rn(E.pendingLanes);if(M!==0){var D=E;for(D.pendingLanes|=2,D.entangledLanes|=2;M;){var q=1<<31-ea(M);D.entanglements[1]|=q,M&=~q}Na(E),(Gn&(ia|ql))===ya&&(pw=Jr()+NL,E0(0))}}break;case 31:case 13:D=Fi(E,2),D!==null&&Br(D,E,2),Wf(),uy(E,2)}if(E=Ox(g),E===null&&Nr(r,a,g,Nw,u),E===x)break;x=E}x!==null&&g.stopPropagation()}else Nr(r,a,g,null,u)}}function Ox(r){return r=$h(r),nm(r)}function nm(r){if(Nw=null,r=tt(r),r!==null){var a=z(r);if(a===null)r=null;else{var u=a.tag;if(u===13){if(r=B(a),r!==null)return r;r=null}else if(u===31){if(r=V(a),r!==null)return r;r=null}else if(u===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return Nw=r,null}function fy(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 Ti;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 ta;case"message":switch(nA()){case wy:return Ti;case Ty:return ta;case sd:case DE:return No;case um:return jc;default:return No}default:return No}}function rm(r,a){switch(r){case"focusin":case"focusout":ih=null;break;case"dragenter":case"dragleave":ah=null;break;case"mouseover":case"mouseout":oh=null;break;case"pointerover":case"pointerout":_5.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":D5.delete(a.pointerId)}}function _0(r,a,u,g,x,E){return r===null||r.nativeEvent!==E?(r={blockedOn:a,domEventName:u,eventSystemFlags:g,nativeEvent:E,targetContainers:[x]},a!==null&&(a=Ne(a),a!==null&&Ax(a)),r):(r.eventSystemFlags|=g,a=r.targetContainers,x!==null&&a.indexOf(x)===-1&&a.push(x),r)}function CE(r,a,u,g,x){switch(a){case"focusin":return ih=_0(ih,r,a,u,g,x),!0;case"dragenter":return ah=_0(ah,r,a,u,g,x),!0;case"mouseover":return oh=_0(oh,r,a,u,g,x),!0;case"pointerover":var E=x.pointerId;return _5.set(E,_0(_5.get(E)||null,r,a,u,g,x)),!0;case"gotpointercapture":return E=x.pointerId,D5.set(E,_0(D5.get(E)||null,r,a,u,g,x)),!0}return!1}function dy(r){var a=tt(r.target);if(a!==null){var u=z(a);if(u!==null){if(a=u.tag,a===13){if(a=B(u),a!==null){r.blockedOn=a,J(r.priority,function(){ar(u)});return}}else if(a===31){if(a=V(u),a!==null){r.blockedOn=a,J(r.priority,function(){ar(u)});return}}else if(a===3&&u.stateNode.current.memoizedState.isDehydrated){r.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}r.blockedOn=null}function D0(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var u=Ox(r.nativeEvent);if(u===null){u=r.nativeEvent;var g=new u.constructor(u.type,u),x=g;Ux!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Ux=x,u.target.dispatchEvent(g),Ux===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."),Ux=null}else return a=Ne(u),a!==null&&Ax(a),r.blockedOn=u,!1;a.shift()}return!0}function OE(r,a,u){D0(r)&&u.delete(a)}function ME(){dC=!1,ih!==null&&D0(ih)&&(ih=null),ah!==null&&D0(ah)&&(ah=null),oh!==null&&D0(oh)&&(oh=null),_5.forEach(OE),D5.forEach(OE)}function hy(r,a){r.blockedOn===a&&(r.blockedOn=null,dC||(dC=!0,Zr.unstable_scheduleCallback(Zr.unstable_NormalPriority,ME)))}function Mx(r){kw!==r&&(kw=r,Zr.unstable_scheduleCallback(Zr.unstable_NormalPriority,function(){kw===r&&(kw=null);for(var a=0;a<r.length;a+=3){var u=r[a],g=r[a+1],x=r[a+2];if(typeof g!="function"){if(nm(g||u)===null)continue;break}var E=Ne(u);E!==null&&(r.splice(a,3),a-=3,u={pending:!0,data:x,method:u.method,action:g},Object.freeze(u),c0(E,u,g,x))}}))}function N0(r){function a(q){return hy(q,r)}ih!==null&&hy(ih,r),ah!==null&&hy(ah,r),oh!==null&&hy(oh,r),_5.forEach(a),D5.forEach(a);for(var u=0;u<lh.length;u++){var g=lh[u];g.blockedOn===r&&(g.blockedOn=null)}for(;0<lh.length&&(u=lh[0],u.blockedOn===null);)dy(u),u.blockedOn===null&&lh.shift();if(u=(r.ownerDocument||r).$$reactFormReplay,u!=null)for(g=0;g<u.length;g+=3){var x=u[g],E=u[g+1],M=x[pa]||null;if(typeof E=="function")M||Mx(u);else if(M){var D=null;if(E&&E.hasAttribute("formAction")){if(x=E,M=E[pa]||null)D=M.formAction;else if(nm(x)!==null)continue}else D=M.action;typeof D=="function"?u[g+1]=D:(u.splice(g,3),g-=3),Mx(u)}}}function RE(){function r(E){E.canIntercept&&E.info==="react-transition"&&E.intercept({handler:function(){return new Promise(function(M){return x=M})},focusReset:"manual",scroll:"manual"})}function a(){x!==null&&(x(),x=null),g||setTimeout(u,20)}function u(){if(!g&&!navigation.transition){var E=navigation.currentEntry;E&&E.url!=null&&navigation.navigate(E.url,{state:E.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var g=!1,x=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(u,100),function(){g=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),x!==null&&(x(),x=null)}}}function Ps(r){this._internalRoot=r}function im(r){this._internalRoot=r}function Rx(r){r[cl]&&(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 Zr=EC(),_x=Ad(),Z8=Vw(),yn=Object.assign,Dx=Symbol.for("react.element"),ol=Symbol.for("react.transitional.element"),k0=Symbol.for("react.portal"),Ji=Symbol.for("react.fragment"),z0=Symbol.for("react.strict_mode"),py=Symbol.for("react.profiler"),my=Symbol.for("react.consumer"),Bl=Symbol.for("react.context"),Nu=Symbol.for("react.forward_ref"),uo=Symbol.for("react.suspense"),gy=Symbol.for("react.suspense_list"),ad=Symbol.for("react.memo"),si=Symbol.for("react.lazy"),Nx=Symbol.for("react.activity"),J8=Symbol.for("react.memo_cache_sentinel"),od=Symbol.iterator,_E=Symbol.for("react.client.reference"),wi=Array.isArray,$e=_x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Kn=Z8.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,eA=Object.freeze({pending:!1,data:null,method:null,action:null}),kx=[],zx=[],ku=-1,zu=$(null),Us=$(null),ll=$(null),am=$(null),om=0,ld,I0,Ix,lm,yy,vy,sm;F.__reactDisabledLog=!0;var by,Lx,Vx=!1,xy=new(typeof WeakMap=="function"?WeakMap:Map),Do=null,sl=!1,jl=Object.prototype.hasOwnProperty,L0=Zr.unstable_scheduleCallback,Sy=Zr.unstable_cancelCallback,Ey=Zr.unstable_shouldYield,tA=Zr.unstable_requestPaint,Jr=Zr.unstable_now,nA=Zr.unstable_getCurrentPriorityLevel,wy=Zr.unstable_ImmediatePriority,Ty=Zr.unstable_UserBlockingPriority,sd=Zr.unstable_NormalPriority,DE=Zr.unstable_LowPriority,um=Zr.unstable_IdlePriority,NE=Zr.log,kE=Zr.unstable_setDisableYieldValue,Iu=null,ha=null,$s=!1,ul=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",ea=Math.clz32?Math.clz32:At,Ay=Math.log,Bx=Math.LN2,cm=256,V0=262144,Pl=4194304,Ti=2,ta=8,No=32,jc=268435456,za=Math.random().toString(36).slice(2),na="__reactFiber$"+za,pa="__reactProps$"+za,cl="__reactContainer$"+za,jx="__reactEvents$"+za,zE="__reactListeners$"+za,Cy="__reactHandles$"+za,Px="__reactResources$"+za,fm="__reactMarker$"+za,dm=new Set,Hs={},Oy={},B0={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},IE=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]*$"),My={},hm={},LE=/[\n"\\]/g,VE=!1,pm=!1,l=!1,f=!1,m=!1,b=!1,A=["value","defaultValue"],O=!1,j=/["'&<>\n\t]|^\s|\s$/,ne="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(" "),ve="applet caption html table td th marquee object template foreignObject desc title".split(" "),ze=ve.concat(["button"]),qe="dd dt li option optgroup p rp rt".split(" "),Ke={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Ie={},Ue={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"]},Rt=/([A-Z])/g,Ht=/^ms-/,hr=/^(?:webkit|moz|o)[A-Z]/,De=/^-ms-/,Te=/-(.)/g,ke=/;\s*$/,Ye={},Lt={},qn=!1,_t=!1,pn=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(" ")),An="http://www.w3.org/1998/Math/MathML",Dn="http://www.w3.org/2000/svg",Pc=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"]]),Ry={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"},aI={"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,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},_y={},wce=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]*$"),Tce=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]*$"),oI=!1,ko={},lI=/^on./,Ace=/^on[^A-Z]/,Cce=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]*$"),Oce=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]*$"),Mce=/^[\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,Ux=null,Dy=null,Ny=null,rA=!1,Uc=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),iA=!1;if(Uc)try{var $x={};Object.defineProperty($x,"passive",{get:function(){iA=!0}}),window.addEventListener("test",$x,$x),window.removeEventListener("test",$x,$x)}catch{iA=!1}var j0=null,aA=null,BE=null,mm={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jE=Yr(mm),Hx=yn({},mm,{view:0,detail:0}),Rce=Yr(Hx),oA,lA,qx,PE=yn({},Hx,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tf,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!==qx&&(qx&&r.type==="mousemove"?(oA=r.screenX-qx.screenX,lA=r.screenY-qx.screenY):lA=oA=0,qx=r),oA)},movementY:function(r){return"movementY"in r?r.movementY:lA}}),sI=Yr(PE),_ce=yn({},PE,{dataTransfer:0}),Dce=Yr(_ce),Nce=yn({},Hx,{relatedTarget:0}),sA=Yr(Nce),kce=yn({},mm,{animationName:0,elapsedTime:0,pseudoElement:0}),zce=Yr(kce),Ice=yn({},mm,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),Lce=Yr(Ice),Vce=yn({},mm,{data:0}),uI=Yr(Vce),Bce=uI,jce={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Pce={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"},Uce={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},$ce=yn({},Hx,{key:function(r){if(r.key){var a=jce[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=Qd(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?Pce[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tf,charCode:function(r){return r.type==="keypress"?Qd(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Qd(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),Hce=Yr($ce),qce=yn({},PE,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cI=Yr(qce),Gce=yn({},Hx,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tf}),Fce=Yr(Gce),Yce=yn({},mm,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xce=Yr(Yce),Wce=yn({},PE,{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}),Qce=Yr(Wce),Kce=yn({},mm,{newState:0,oldState:0}),Zce=Yr(Kce),Jce=[9,13,27,32],fI=229,uA=Uc&&"CompositionEvent"in window,Gx=null;Uc&&"documentMode"in document&&(Gx=document.documentMode);var efe=Uc&&"TextEvent"in window&&!Gx,dI=Uc&&(!uA||Gx&&8<Gx&&11>=Gx),hI=32,pI=String.fromCharCode(hI),mI=!1,ky=!1,tfe={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},Fx=null,Yx=null,gI=!1;Uc&&(gI=Wg("input")&&(!document.documentMode||9<document.documentMode));var zo=typeof Object.is=="function"?Object.is:D6,nfe=Uc&&"documentMode"in document&&11>=document.documentMode,zy=null,cA=null,Xx=null,fA=!1,Iy={animationend:Af("Animation","AnimationEnd"),animationiteration:Af("Animation","AnimationIteration"),animationstart:Af("Animation","AnimationStart"),transitionrun:Af("Transition","TransitionRun"),transitionstart:Af("Transition","TransitionStart"),transitioncancel:Af("Transition","TransitionCancel"),transitionend:Af("Transition","TransitionEnd")},dA={},yI={};Uc&&(yI=document.createElement("div").style,"AnimationEvent"in window||(delete Iy.animationend.animation,delete Iy.animationiteration.animation,delete Iy.animationstart.animation),"TransitionEvent"in window||delete Iy.transitionend.transition);var vI=Cf("animationend"),bI=Cf("animationiteration"),xI=Cf("animationstart"),rfe=Cf("transitionrun"),ife=Cf("transitionstart"),afe=Cf("transitioncancel"),SI=Cf("transitionend"),EI=new Map,hA="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(" ");hA.push("scrollEnd");var wI=0;if(typeof performance=="object"&&typeof performance.now=="function")var ofe=performance,TI=function(){return ofe.now()};else{var lfe=Date;TI=function(){return lfe.now()}}var pA=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},sfe="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",UE=0,mA=1,gA=2,yA=3,$E="– ",HE="+ ",AI=" ",kr=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",qs="Components ⚛",Pn="Scheduler ⚛",$n="Blocking",P0=!1,ud={color:"primary",properties:null,tooltipText:"",track:qs},U0={start:-0,end:-0,detail:{devtools:ud}},ufe=["Changed Props",""],CI="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",cfe=["Changed Props",CI],Wx=1,cd=2,Gs=[],Ly=0,vA=0,$0={};Object.freeze($0);var Fs=null,Vy=null,Zt=0,ffe=1,xn=2,co=8,Lu=16,dfe=32,OI=!1;try{var MI=Object.preventExtensions({})}catch{OI=!0}var bA=new WeakMap,By=[],jy=0,qE=null,Qx=0,Ys=[],Xs=0,gm=null,fd=1,dd="",Ia=null,zr=null,In=!1,$c=!1,Ul=null,H0=null,Ws=!1,xA=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."),SA=$(null),EA=$(null),RI={},GE=null,Py=null,Uy=!1,hfe=typeof AbortController<"u"?AbortController:function(){var r=[],a=this.signal={aborted:!1,addEventListener:function(u,g){r.push(g)}};this.abort=function(){a.aborted=!0,r.forEach(function(u){return u()})}},pfe=Zr.unstable_scheduleCallback,mfe=Zr.unstable_NormalPriority,Li={$$typeof:Bl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Vi=Zr.unstable_now,FE=console.createTask?console.createTask:function(){return null},Kx=1,YE=2,ma=-0,q0=-0,hd=-0,pd=null,Io=-1.1,ym=-0,ei=-0,$t=-1.1,Xt=-1.1,jr=null,ui=!1,vm=-0,Hc=-1.1,Zx=null,G0=0,wA=null,TA=null,bm=-1.1,Jx=null,$y=-1.1,XE=-1.1,md=-0,gd=-1.1,Qs=-1.1,AA=0,e5=null,_I=null,DI=null,F0=-1.1,xm=null,Y0=-1.1,WE=-1.1,NI=-0,kI=-0,QE=0,gfe=null,zI=0,t5=-1.1,KE=!1,ZE=!1,n5=null,CA=0,Sm=0,Hy=null,II=$e.S;$e.S=function(r,a){if(_L=Jr(),typeof a=="object"&&a!==null&&typeof a.then=="function"){if(0>gd&&0>Qs){gd=Vi();var u=A0(),g=T0();(u!==Y0||g!==xm)&&(Y0=-1.1),F0=u,xm=g}G6(r,a)}II!==null&&II(r,a)};var Em=$(null),Vu={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},r5=[],i5=[],a5=[],o5=[],l5=[],s5=[],wm=new Set;Vu.recordUnsafeLifecycleWarnings=function(r,a){wm.has(r.type)||(typeof a.componentWillMount=="function"&&a.componentWillMount.__suppressDeprecationWarning!==!0&&r5.push(r),r.mode&co&&typeof a.UNSAFE_componentWillMount=="function"&&i5.push(r),typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&a5.push(r),r.mode&co&&typeof a.UNSAFE_componentWillReceiveProps=="function"&&o5.push(r),typeof a.componentWillUpdate=="function"&&a.componentWillUpdate.__suppressDeprecationWarning!==!0&&l5.push(r),r.mode&co&&typeof a.UNSAFE_componentWillUpdate=="function"&&s5.push(r))},Vu.flushPendingUnsafeLifecycleWarnings=function(){var r=new Set;0<r5.length&&(r5.forEach(function(D){r.add(ue(D)||"Component"),wm.add(D.type)}),r5=[]);var a=new Set;0<i5.length&&(i5.forEach(function(D){a.add(ue(D)||"Component"),wm.add(D.type)}),i5=[]);var u=new Set;0<a5.length&&(a5.forEach(function(D){u.add(ue(D)||"Component"),wm.add(D.type)}),a5=[]);var g=new Set;0<o5.length&&(o5.forEach(function(D){g.add(ue(D)||"Component"),wm.add(D.type)}),o5=[]);var x=new Set;0<l5.length&&(l5.forEach(function(D){x.add(ue(D)||"Component"),wm.add(D.type)}),l5=[]);var E=new Set;if(0<s5.length&&(s5.forEach(function(D){E.add(ue(D)||"Component"),wm.add(D.type)}),s5=[]),0<a.size){var M=T(a);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.
|
|
277
|
+
Check the render method of %s.`,ue(Do)||"Unknown")),g=xs(a),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=Oa(r,g,a),u!==null&&(Ol(a,"root.render()",null),Br(u,r,a),i0(u,r,a))}function AE(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var u=r.retryLane;r.retryLane=u!==0&&u<a?u:a}}function uy(r,a){AE(r,a),(r=r.alternate)&&AE(r,a)}function Ax(r){if(r.tag===13||r.tag===31){var a=Fi(r,67108864);a!==null&&Br(a,r,67108864),uy(r,67108864)}}function ar(r){if(r.tag===13||r.tag===31){var a=Ki(r);a=jt(a);var u=Fi(r,a);u!==null&&Br(u,r,a),uy(r,a)}}function Cx(){return Do}function Zi(r,a,u,g){var x=$e.T;$e.T=null;var E=Kn.p;try{Kn.p=Ti,cy(r,a,u,g)}finally{Kn.p=E,$e.T=x}}function K8(r,a,u,g){var x=$e.T;$e.T=null;var E=Kn.p;try{Kn.p=ta,cy(r,a,u,g)}finally{Kn.p=E,$e.T=x}}function cy(r,a,u,g){if(Dw){var x=Ox(g);if(x===null)Nr(r,a,g,Nw,u),rm(r,g);else if(CE(x,r,a,u,g))g.stopPropagation();else if(rm(r,g),a&4&&-1<Hfe.indexOf(r)){for(;x!==null;){var E=Ne(x);if(E!==null)switch(E.tag){case 3:if(E=E.stateNode,E.current.memoizedState.isDehydrated){var M=Rn(E.pendingLanes);if(M!==0){var D=E;for(D.pendingLanes|=2,D.entangledLanes|=2;M;){var q=1<<31-ea(M);D.entanglements[1]|=q,M&=~q}Na(E),(Gn&(ia|ql))===ya&&(pw=Jr()+NL,E0(0))}}break;case 31:case 13:D=Fi(E,2),D!==null&&Br(D,E,2),Wf(),uy(E,2)}if(E=Ox(g),E===null&&Nr(r,a,g,Nw,u),E===x)break;x=E}x!==null&&g.stopPropagation()}else Nr(r,a,g,null,u)}}function Ox(r){return r=$h(r),nm(r)}function nm(r){if(Nw=null,r=tt(r),r!==null){var a=z(r);if(a===null)r=null;else{var u=a.tag;if(u===13){if(r=B(a),r!==null)return r;r=null}else if(u===31){if(r=V(a),r!==null)return r;r=null}else if(u===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return Nw=r,null}function fy(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 Ti;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 ta;case"message":switch(nA()){case wy:return Ti;case Ty:return ta;case sd:case DE:return No;case um:return jc;default:return No}default:return No}}function rm(r,a){switch(r){case"focusin":case"focusout":ih=null;break;case"dragenter":case"dragleave":ah=null;break;case"mouseover":case"mouseout":oh=null;break;case"pointerover":case"pointerout":_5.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":D5.delete(a.pointerId)}}function _0(r,a,u,g,x,E){return r===null||r.nativeEvent!==E?(r={blockedOn:a,domEventName:u,eventSystemFlags:g,nativeEvent:E,targetContainers:[x]},a!==null&&(a=Ne(a),a!==null&&Ax(a)),r):(r.eventSystemFlags|=g,a=r.targetContainers,x!==null&&a.indexOf(x)===-1&&a.push(x),r)}function CE(r,a,u,g,x){switch(a){case"focusin":return ih=_0(ih,r,a,u,g,x),!0;case"dragenter":return ah=_0(ah,r,a,u,g,x),!0;case"mouseover":return oh=_0(oh,r,a,u,g,x),!0;case"pointerover":var E=x.pointerId;return _5.set(E,_0(_5.get(E)||null,r,a,u,g,x)),!0;case"gotpointercapture":return E=x.pointerId,D5.set(E,_0(D5.get(E)||null,r,a,u,g,x)),!0}return!1}function dy(r){var a=tt(r.target);if(a!==null){var u=z(a);if(u!==null){if(a=u.tag,a===13){if(a=B(u),a!==null){r.blockedOn=a,J(r.priority,function(){ar(u)});return}}else if(a===31){if(a=V(u),a!==null){r.blockedOn=a,J(r.priority,function(){ar(u)});return}}else if(a===3&&u.stateNode.current.memoizedState.isDehydrated){r.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}r.blockedOn=null}function D0(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var u=Ox(r.nativeEvent);if(u===null){u=r.nativeEvent;var g=new u.constructor(u.type,u),x=g;Ux!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Ux=x,u.target.dispatchEvent(g),Ux===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."),Ux=null}else return a=Ne(u),a!==null&&Ax(a),r.blockedOn=u,!1;a.shift()}return!0}function OE(r,a,u){D0(r)&&u.delete(a)}function ME(){dC=!1,ih!==null&&D0(ih)&&(ih=null),ah!==null&&D0(ah)&&(ah=null),oh!==null&&D0(oh)&&(oh=null),_5.forEach(OE),D5.forEach(OE)}function hy(r,a){r.blockedOn===a&&(r.blockedOn=null,dC||(dC=!0,Zr.unstable_scheduleCallback(Zr.unstable_NormalPriority,ME)))}function Mx(r){kw!==r&&(kw=r,Zr.unstable_scheduleCallback(Zr.unstable_NormalPriority,function(){kw===r&&(kw=null);for(var a=0;a<r.length;a+=3){var u=r[a],g=r[a+1],x=r[a+2];if(typeof g!="function"){if(nm(g||u)===null)continue;break}var E=Ne(u);E!==null&&(r.splice(a,3),a-=3,u={pending:!0,data:x,method:u.method,action:g},Object.freeze(u),c0(E,u,g,x))}}))}function N0(r){function a(q){return hy(q,r)}ih!==null&&hy(ih,r),ah!==null&&hy(ah,r),oh!==null&&hy(oh,r),_5.forEach(a),D5.forEach(a);for(var u=0;u<lh.length;u++){var g=lh[u];g.blockedOn===r&&(g.blockedOn=null)}for(;0<lh.length&&(u=lh[0],u.blockedOn===null);)dy(u),u.blockedOn===null&&lh.shift();if(u=(r.ownerDocument||r).$$reactFormReplay,u!=null)for(g=0;g<u.length;g+=3){var x=u[g],E=u[g+1],M=x[pa]||null;if(typeof E=="function")M||Mx(u);else if(M){var D=null;if(E&&E.hasAttribute("formAction")){if(x=E,M=E[pa]||null)D=M.formAction;else if(nm(x)!==null)continue}else D=M.action;typeof D=="function"?u[g+1]=D:(u.splice(g,3),g-=3),Mx(u)}}}function RE(){function r(E){E.canIntercept&&E.info==="react-transition"&&E.intercept({handler:function(){return new Promise(function(M){return x=M})},focusReset:"manual",scroll:"manual"})}function a(){x!==null&&(x(),x=null),g||setTimeout(u,20)}function u(){if(!g&&!navigation.transition){var E=navigation.currentEntry;E&&E.url!=null&&navigation.navigate(E.url,{state:E.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var g=!1,x=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(u,100),function(){g=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),x!==null&&(x(),x=null)}}}function Ps(r){this._internalRoot=r}function im(r){this._internalRoot=r}function Rx(r){r[cl]&&(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 Zr=EC(),_x=Ad(),Z8=Vw(),yn=Object.assign,Dx=Symbol.for("react.element"),ol=Symbol.for("react.transitional.element"),k0=Symbol.for("react.portal"),Ji=Symbol.for("react.fragment"),z0=Symbol.for("react.strict_mode"),py=Symbol.for("react.profiler"),my=Symbol.for("react.consumer"),Bl=Symbol.for("react.context"),Nu=Symbol.for("react.forward_ref"),uo=Symbol.for("react.suspense"),gy=Symbol.for("react.suspense_list"),ad=Symbol.for("react.memo"),si=Symbol.for("react.lazy"),Nx=Symbol.for("react.activity"),J8=Symbol.for("react.memo_cache_sentinel"),od=Symbol.iterator,_E=Symbol.for("react.client.reference"),wi=Array.isArray,$e=_x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Kn=Z8.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,eA=Object.freeze({pending:!1,data:null,method:null,action:null}),kx=[],zx=[],ku=-1,zu=$(null),Us=$(null),ll=$(null),am=$(null),om=0,ld,I0,Ix,lm,yy,vy,sm;F.__reactDisabledLog=!0;var by,Lx,Vx=!1,xy=new(typeof WeakMap=="function"?WeakMap:Map),Do=null,sl=!1,jl=Object.prototype.hasOwnProperty,L0=Zr.unstable_scheduleCallback,Sy=Zr.unstable_cancelCallback,Ey=Zr.unstable_shouldYield,tA=Zr.unstable_requestPaint,Jr=Zr.unstable_now,nA=Zr.unstable_getCurrentPriorityLevel,wy=Zr.unstable_ImmediatePriority,Ty=Zr.unstable_UserBlockingPriority,sd=Zr.unstable_NormalPriority,DE=Zr.unstable_LowPriority,um=Zr.unstable_IdlePriority,NE=Zr.log,kE=Zr.unstable_setDisableYieldValue,Iu=null,ha=null,$s=!1,ul=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",ea=Math.clz32?Math.clz32:At,Ay=Math.log,Bx=Math.LN2,cm=256,V0=262144,Pl=4194304,Ti=2,ta=8,No=32,jc=268435456,za=Math.random().toString(36).slice(2),na="__reactFiber$"+za,pa="__reactProps$"+za,cl="__reactContainer$"+za,jx="__reactEvents$"+za,zE="__reactListeners$"+za,Cy="__reactHandles$"+za,Px="__reactResources$"+za,fm="__reactMarker$"+za,dm=new Set,Hs={},Oy={},B0={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},IE=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]*$"),My={},hm={},LE=/[\n"\\]/g,VE=!1,pm=!1,l=!1,f=!1,m=!1,b=!1,A=["value","defaultValue"],O=!1,j=/["'&<>\n\t]|^\s|\s$/,ne="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(" "),ve="applet caption html table td th marquee object template foreignObject desc title".split(" "),ze=ve.concat(["button"]),qe="dd dt li option optgroup p rp rt".split(" "),Ke={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Ie={},Ue={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"]},Rt=/([A-Z])/g,Ht=/^ms-/,hr=/^(?:webkit|moz|o)[A-Z]/,De=/^-ms-/,Te=/-(.)/g,ke=/;\s*$/,Ye={},Lt={},qn=!1,Dt=!1,pn=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(" ")),Cn="http://www.w3.org/1998/Math/MathML",Dn="http://www.w3.org/2000/svg",Pc=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"]]),Ry={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"},aI={"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,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},_y={},wce=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]*$"),Tce=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]*$"),oI=!1,ko={},lI=/^on./,Ace=/^on[^A-Z]/,Cce=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]*$"),Oce=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]*$"),Mce=/^[\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,Ux=null,Dy=null,Ny=null,rA=!1,Uc=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),iA=!1;if(Uc)try{var $x={};Object.defineProperty($x,"passive",{get:function(){iA=!0}}),window.addEventListener("test",$x,$x),window.removeEventListener("test",$x,$x)}catch{iA=!1}var j0=null,aA=null,BE=null,mm={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jE=Yr(mm),Hx=yn({},mm,{view:0,detail:0}),Rce=Yr(Hx),oA,lA,qx,PE=yn({},Hx,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tf,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!==qx&&(qx&&r.type==="mousemove"?(oA=r.screenX-qx.screenX,lA=r.screenY-qx.screenY):lA=oA=0,qx=r),oA)},movementY:function(r){return"movementY"in r?r.movementY:lA}}),sI=Yr(PE),_ce=yn({},PE,{dataTransfer:0}),Dce=Yr(_ce),Nce=yn({},Hx,{relatedTarget:0}),sA=Yr(Nce),kce=yn({},mm,{animationName:0,elapsedTime:0,pseudoElement:0}),zce=Yr(kce),Ice=yn({},mm,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),Lce=Yr(Ice),Vce=yn({},mm,{data:0}),uI=Yr(Vce),Bce=uI,jce={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Pce={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"},Uce={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},$ce=yn({},Hx,{key:function(r){if(r.key){var a=jce[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=Qd(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?Pce[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tf,charCode:function(r){return r.type==="keypress"?Qd(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Qd(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),Hce=Yr($ce),qce=yn({},PE,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cI=Yr(qce),Gce=yn({},Hx,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tf}),Fce=Yr(Gce),Yce=yn({},mm,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xce=Yr(Yce),Wce=yn({},PE,{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}),Qce=Yr(Wce),Kce=yn({},mm,{newState:0,oldState:0}),Zce=Yr(Kce),Jce=[9,13,27,32],fI=229,uA=Uc&&"CompositionEvent"in window,Gx=null;Uc&&"documentMode"in document&&(Gx=document.documentMode);var efe=Uc&&"TextEvent"in window&&!Gx,dI=Uc&&(!uA||Gx&&8<Gx&&11>=Gx),hI=32,pI=String.fromCharCode(hI),mI=!1,ky=!1,tfe={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},Fx=null,Yx=null,gI=!1;Uc&&(gI=Wg("input")&&(!document.documentMode||9<document.documentMode));var zo=typeof Object.is=="function"?Object.is:D6,nfe=Uc&&"documentMode"in document&&11>=document.documentMode,zy=null,cA=null,Xx=null,fA=!1,Iy={animationend:Af("Animation","AnimationEnd"),animationiteration:Af("Animation","AnimationIteration"),animationstart:Af("Animation","AnimationStart"),transitionrun:Af("Transition","TransitionRun"),transitionstart:Af("Transition","TransitionStart"),transitioncancel:Af("Transition","TransitionCancel"),transitionend:Af("Transition","TransitionEnd")},dA={},yI={};Uc&&(yI=document.createElement("div").style,"AnimationEvent"in window||(delete Iy.animationend.animation,delete Iy.animationiteration.animation,delete Iy.animationstart.animation),"TransitionEvent"in window||delete Iy.transitionend.transition);var vI=Cf("animationend"),bI=Cf("animationiteration"),xI=Cf("animationstart"),rfe=Cf("transitionrun"),ife=Cf("transitionstart"),afe=Cf("transitioncancel"),SI=Cf("transitionend"),EI=new Map,hA="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(" ");hA.push("scrollEnd");var wI=0;if(typeof performance=="object"&&typeof performance.now=="function")var ofe=performance,TI=function(){return ofe.now()};else{var lfe=Date;TI=function(){return lfe.now()}}var pA=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},sfe="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",UE=0,mA=1,gA=2,yA=3,$E="– ",HE="+ ",AI=" ",kr=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",qs="Components ⚛",Pn="Scheduler ⚛",$n="Blocking",P0=!1,ud={color:"primary",properties:null,tooltipText:"",track:qs},U0={start:-0,end:-0,detail:{devtools:ud}},ufe=["Changed Props",""],CI="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",cfe=["Changed Props",CI],Wx=1,cd=2,Gs=[],Ly=0,vA=0,$0={};Object.freeze($0);var Fs=null,Vy=null,Zt=0,ffe=1,xn=2,co=8,Lu=16,dfe=32,OI=!1;try{var MI=Object.preventExtensions({})}catch{OI=!0}var bA=new WeakMap,By=[],jy=0,qE=null,Qx=0,Ys=[],Xs=0,gm=null,fd=1,dd="",Ia=null,zr=null,In=!1,$c=!1,Ul=null,H0=null,Ws=!1,xA=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."),SA=$(null),EA=$(null),RI={},GE=null,Py=null,Uy=!1,hfe=typeof AbortController<"u"?AbortController:function(){var r=[],a=this.signal={aborted:!1,addEventListener:function(u,g){r.push(g)}};this.abort=function(){a.aborted=!0,r.forEach(function(u){return u()})}},pfe=Zr.unstable_scheduleCallback,mfe=Zr.unstable_NormalPriority,Li={$$typeof:Bl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Vi=Zr.unstable_now,FE=console.createTask?console.createTask:function(){return null},Kx=1,YE=2,ma=-0,q0=-0,hd=-0,pd=null,Io=-1.1,ym=-0,ei=-0,$t=-1.1,Xt=-1.1,jr=null,ui=!1,vm=-0,Hc=-1.1,Zx=null,G0=0,wA=null,TA=null,bm=-1.1,Jx=null,$y=-1.1,XE=-1.1,md=-0,gd=-1.1,Qs=-1.1,AA=0,e5=null,_I=null,DI=null,F0=-1.1,xm=null,Y0=-1.1,WE=-1.1,NI=-0,kI=-0,QE=0,gfe=null,zI=0,t5=-1.1,KE=!1,ZE=!1,n5=null,CA=0,Sm=0,Hy=null,II=$e.S;$e.S=function(r,a){if(_L=Jr(),typeof a=="object"&&a!==null&&typeof a.then=="function"){if(0>gd&&0>Qs){gd=Vi();var u=A0(),g=T0();(u!==Y0||g!==xm)&&(Y0=-1.1),F0=u,xm=g}G6(r,a)}II!==null&&II(r,a)};var Em=$(null),Vu={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},r5=[],i5=[],a5=[],o5=[],l5=[],s5=[],wm=new Set;Vu.recordUnsafeLifecycleWarnings=function(r,a){wm.has(r.type)||(typeof a.componentWillMount=="function"&&a.componentWillMount.__suppressDeprecationWarning!==!0&&r5.push(r),r.mode&co&&typeof a.UNSAFE_componentWillMount=="function"&&i5.push(r),typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&a5.push(r),r.mode&co&&typeof a.UNSAFE_componentWillReceiveProps=="function"&&o5.push(r),typeof a.componentWillUpdate=="function"&&a.componentWillUpdate.__suppressDeprecationWarning!==!0&&l5.push(r),r.mode&co&&typeof a.UNSAFE_componentWillUpdate=="function"&&s5.push(r))},Vu.flushPendingUnsafeLifecycleWarnings=function(){var r=new Set;0<r5.length&&(r5.forEach(function(D){r.add(ue(D)||"Component"),wm.add(D.type)}),r5=[]);var a=new Set;0<i5.length&&(i5.forEach(function(D){a.add(ue(D)||"Component"),wm.add(D.type)}),i5=[]);var u=new Set;0<a5.length&&(a5.forEach(function(D){u.add(ue(D)||"Component"),wm.add(D.type)}),a5=[]);var g=new Set;0<o5.length&&(o5.forEach(function(D){g.add(ue(D)||"Component"),wm.add(D.type)}),o5=[]);var x=new Set;0<l5.length&&(l5.forEach(function(D){x.add(ue(D)||"Component"),wm.add(D.type)}),l5=[]);var E=new Set;if(0<s5.length&&(s5.forEach(function(D){E.add(ue(D)||"Component"),wm.add(D.type)}),s5=[]),0<a.size){var M=T(a);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.
|
|
278
278
|
|
|
279
279
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
280
280
|
|
|
@@ -313,7 +313,7 @@ Learn more about this warning here: https://react.dev/link/legacy-context`,g)})}
|
|
|
313
313
|
|
|
314
314
|
Check the render method of \``+x+"`."),E||g&&(E=`
|
|
315
315
|
|
|
316
|
-
Check the top-level render call using <`+g+">.");var M="";u!=null&&r!==u&&(g=null,typeof u.tag=="number"?g=ue(u):typeof u.name=="string"&&(g=u.name),g&&(M=" It was passed a child from "+g+".")),Be(a,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',E,M)})}}};var Am=xr(!0),JI=xr(!1),eL=0,tL=1,nL=2,DA=3,X0=!1,rL=!1,NA=null,kA=!1,Fy=$(null),nw=$(0),$l=$(null),Ks=null,Yy=1,f5=2,Ai=$(0),rw=0,Zs=1,Lo=2,Hl=4,Vo=8,Xy,iL=new Set,aL=new Set,zA=new Set,oL=new Set,yd=0,an=null,Er=null,Bi=null,iw=!1,Wy=!1,Cm=!1,aw=0,d5=0,vd=null,Sfe=0,Efe=25,Pe=null,Js=null,bd=-1,h5=!1,p5={readContext:br,use:eo,useCallback:Xr,useContext:Xr,useEffect:Xr,useImperativeHandle:Xr,useLayoutEffect:Xr,useInsertionEffect:Xr,useMemo:Xr,useReducer:Xr,useRef:Xr,useState:Xr,useDebugValue:Xr,useDeferredValue:Xr,useTransition:Xr,useSyncExternalStore:Xr,useId:Xr,useHostTransitionStatus:Xr,useFormState:Xr,useActionState:Xr,useOptimistic:Xr,useMemoCache:Xr,useCacheRefresh:Xr};p5.useEffectEvent=Xr;var IA=null,lL=null,LA=null,sL=null,qc=null,Bu=null,ow=null;IA={readContext:function(r){return br(r)},use:eo,useCallback:function(r,a){return Pe="useCallback",Vt(),If(a),As(r,a)},useContext:function(r){return Pe="useContext",Vt(),br(r)},useEffect:function(r,a){return Pe="useEffect",Vt(),If(a),mp(r,a)},useImperativeHandle:function(r,a,u){return Pe="useImperativeHandle",Vt(),If(u),yp(r,a,u)},useInsertionEffect:function(r,a){Pe="useInsertionEffect",Vt(),If(a),Zo(4,Lo,r,a)},useLayoutEffect:function(r,a){return Pe="useLayoutEffect",Vt(),If(a),no(r,a)},useMemo:function(r,a){Pe="useMemo",Vt(),If(a);var u=$e.H;$e.H=qc;try{return Lr(r,a)}finally{$e.H=u}},useReducer:function(r,a,u){Pe="useReducer",Vt();var g=$e.H;$e.H=qc;try{return m1(r,a,u)}finally{$e.H=g}},useRef:function(r){return Pe="useRef",Vt(),v1(r)},useState:function(r){Pe="useState",Vt();var a=$e.H;$e.H=qc;try{return Vf(r)}finally{$e.H=a}},useDebugValue:function(){Pe="useDebugValue",Vt()},useDeferredValue:function(r,a){return Pe="useDeferredValue",Vt(),kl(r,a)},useTransition:function(){return Pe="useTransition",Vt(),S4()},useSyncExternalStore:function(r,a,u){return Pe="useSyncExternalStore",Vt(),o0(r,a,u)},useId:function(){return Pe="useId",Vt(),x1()},useFormState:function(r,a){return Pe="useFormState",Vt(),d1(),Ts(r,a)},useActionState:function(r,a){return Pe="useActionState",Vt(),Ts(r,a)},useOptimistic:function(r){return Pe="useOptimistic",Vt(),l0(r)},useHostTransitionStatus:Tu,useMemoCache:vu,useCacheRefresh:function(){return Pe="useCacheRefresh",Vt(),S1()},useEffectEvent:function(r){return Pe="useEffectEvent",Vt(),gp(r)}},lL={readContext:function(r){return br(r)},use:eo,useCallback:function(r,a){return Pe="useCallback",rt(),As(r,a)},useContext:function(r){return Pe="useContext",rt(),br(r)},useEffect:function(r,a){return Pe="useEffect",rt(),mp(r,a)},useImperativeHandle:function(r,a,u){return Pe="useImperativeHandle",rt(),yp(r,a,u)},useInsertionEffect:function(r,a){Pe="useInsertionEffect",rt(),Zo(4,Lo,r,a)},useLayoutEffect:function(r,a){return Pe="useLayoutEffect",rt(),no(r,a)},useMemo:function(r,a){Pe="useMemo",rt();var u=$e.H;$e.H=qc;try{return Lr(r,a)}finally{$e.H=u}},useReducer:function(r,a,u){Pe="useReducer",rt();var g=$e.H;$e.H=qc;try{return m1(r,a,u)}finally{$e.H=g}},useRef:function(r){return Pe="useRef",rt(),v1(r)},useState:function(r){Pe="useState",rt();var a=$e.H;$e.H=qc;try{return Vf(r)}finally{$e.H=a}},useDebugValue:function(){Pe="useDebugValue",rt()},useDeferredValue:function(r,a){return Pe="useDeferredValue",rt(),kl(r,a)},useTransition:function(){return Pe="useTransition",rt(),S4()},useSyncExternalStore:function(r,a,u){return Pe="useSyncExternalStore",rt(),o0(r,a,u)},useId:function(){return Pe="useId",rt(),x1()},useActionState:function(r,a){return Pe="useActionState",rt(),Ts(r,a)},useFormState:function(r,a){return Pe="useFormState",rt(),d1(),Ts(r,a)},useOptimistic:function(r){return Pe="useOptimistic",rt(),l0(r)},useHostTransitionStatus:Tu,useMemoCache:vu,useCacheRefresh:function(){return Pe="useCacheRefresh",rt(),S1()},useEffectEvent:function(r){return Pe="useEffectEvent",rt(),gp(r)}},LA={readContext:function(r){return br(r)},use:eo,useCallback:function(r,a){return Pe="useCallback",rt(),ca(r,a)},useContext:function(r){return Pe="useContext",rt(),br(r)},useEffect:function(r,a){Pe="useEffect",rt(),Yi(2048,Vo,r,a)},useImperativeHandle:function(r,a,u){return Pe="useImperativeHandle",rt(),vp(r,a,u)},useInsertionEffect:function(r,a){return Pe="useInsertionEffect",rt(),Yi(4,Lo,r,a)},useLayoutEffect:function(r,a){return Pe="useLayoutEffect",rt(),Yi(4,Hl,r,a)},useMemo:function(r,a){Pe="useMemo",rt();var u=$e.H;$e.H=Bu;try{return Pf(r,a)}finally{$e.H=u}},useReducer:function(r,a,u){Pe="useReducer",rt();var g=$e.H;$e.H=Bu;try{return Nl(r,a,u)}finally{$e.H=g}},useRef:function(){return Pe="useRef",rt(),Wn().memoizedState},useState:function(){Pe="useState",rt();var r=$e.H;$e.H=Bu;try{return Nl(to)}finally{$e.H=r}},useDebugValue:function(){Pe="useDebugValue",rt()},useDeferredValue:function(r,a){return Pe="useDeferredValue",rt(),cn(r,a)},useTransition:function(){return Pe="useTransition",rt(),Vr()},useSyncExternalStore:function(r,a,u){return Pe="useSyncExternalStore",rt(),fp(r,a,u)},useId:function(){return Pe="useId",rt(),Wn().memoizedState},useFormState:function(r){return Pe="useFormState",rt(),d1(),u0(r)},useActionState:function(r){return Pe="useActionState",rt(),u0(r)},useOptimistic:function(r,a){return Pe="useOptimistic",rt(),s0(r,a)},useHostTransitionStatus:Tu,useMemoCache:vu,useCacheRefresh:function(){return Pe="useCacheRefresh",rt(),Wn().memoizedState},useEffectEvent:function(r){return Pe="useEffectEvent",rt(),ua(r)}},sL={readContext:function(r){return br(r)},use:eo,useCallback:function(r,a){return Pe="useCallback",rt(),ca(r,a)},useContext:function(r){return Pe="useContext",rt(),br(r)},useEffect:function(r,a){Pe="useEffect",rt(),Yi(2048,Vo,r,a)},useImperativeHandle:function(r,a,u){return Pe="useImperativeHandle",rt(),vp(r,a,u)},useInsertionEffect:function(r,a){return Pe="useInsertionEffect",rt(),Yi(4,Lo,r,a)},useLayoutEffect:function(r,a){return Pe="useLayoutEffect",rt(),Yi(4,Hl,r,a)},useMemo:function(r,a){Pe="useMemo",rt();var u=$e.H;$e.H=ow;try{return Pf(r,a)}finally{$e.H=u}},useReducer:function(r,a,u){Pe="useReducer",rt();var g=$e.H;$e.H=ow;try{return Ac(r,a,u)}finally{$e.H=g}},useRef:function(){return Pe="useRef",rt(),Wn().memoizedState},useState:function(){Pe="useState",rt();var r=$e.H;$e.H=ow;try{return Ac(to)}finally{$e.H=r}},useDebugValue:function(){Pe="useDebugValue",rt()},useDeferredValue:function(r,a){return Pe="useDeferredValue",rt(),nr(r,a)},useTransition:function(){return Pe="useTransition",rt(),b1()},useSyncExternalStore:function(r,a,u){return Pe="useSyncExternalStore",rt(),fp(r,a,u)},useId:function(){return Pe="useId",rt(),Wn().memoizedState},useFormState:function(r){return Pe="useFormState",rt(),d1(),Rc(r)},useActionState:function(r){return Pe="useActionState",rt(),Rc(r)},useOptimistic:function(r,a){return Pe="useOptimistic",rt(),v4(r,a)},useHostTransitionStatus:Tu,useMemoCache:vu,useCacheRefresh:function(){return Pe="useCacheRefresh",rt(),Wn().memoizedState},useEffectEvent:function(r){return Pe="useEffectEvent",rt(),ua(r)}},qc={readContext:function(r){return y(),br(r)},use:function(r){return h(),eo(r)},useCallback:function(r,a){return Pe="useCallback",h(),Vt(),As(r,a)},useContext:function(r){return Pe="useContext",h(),Vt(),br(r)},useEffect:function(r,a){return Pe="useEffect",h(),Vt(),mp(r,a)},useImperativeHandle:function(r,a,u){return Pe="useImperativeHandle",h(),Vt(),yp(r,a,u)},useInsertionEffect:function(r,a){Pe="useInsertionEffect",h(),Vt(),Zo(4,Lo,r,a)},useLayoutEffect:function(r,a){return Pe="useLayoutEffect",h(),Vt(),no(r,a)},useMemo:function(r,a){Pe="useMemo",h(),Vt();var u=$e.H;$e.H=qc;try{return Lr(r,a)}finally{$e.H=u}},useReducer:function(r,a,u){Pe="useReducer",h(),Vt();var g=$e.H;$e.H=qc;try{return m1(r,a,u)}finally{$e.H=g}},useRef:function(r){return Pe="useRef",h(),Vt(),v1(r)},useState:function(r){Pe="useState",h(),Vt();var a=$e.H;$e.H=qc;try{return Vf(r)}finally{$e.H=a}},useDebugValue:function(){Pe="useDebugValue",h(),Vt()},useDeferredValue:function(r,a){return Pe="useDeferredValue",h(),Vt(),kl(r,a)},useTransition:function(){return Pe="useTransition",h(),Vt(),S4()},useSyncExternalStore:function(r,a,u){return Pe="useSyncExternalStore",h(),Vt(),o0(r,a,u)},useId:function(){return Pe="useId",h(),Vt(),x1()},useFormState:function(r,a){return Pe="useFormState",h(),Vt(),Ts(r,a)},useActionState:function(r,a){return Pe="useActionState",h(),Vt(),Ts(r,a)},useOptimistic:function(r){return Pe="useOptimistic",h(),Vt(),l0(r)},useMemoCache:function(r){return h(),vu(r)},useHostTransitionStatus:Tu,useCacheRefresh:function(){return Pe="useCacheRefresh",Vt(),S1()},useEffectEvent:function(r){return Pe="useEffectEvent",h(),Vt(),gp(r)}},Bu={readContext:function(r){return y(),br(r)},use:function(r){return h(),eo(r)},useCallback:function(r,a){return Pe="useCallback",h(),rt(),ca(r,a)},useContext:function(r){return Pe="useContext",h(),rt(),br(r)},useEffect:function(r,a){Pe="useEffect",h(),rt(),Yi(2048,Vo,r,a)},useImperativeHandle:function(r,a,u){return Pe="useImperativeHandle",h(),rt(),vp(r,a,u)},useInsertionEffect:function(r,a){return Pe="useInsertionEffect",h(),rt(),Yi(4,Lo,r,a)},useLayoutEffect:function(r,a){return Pe="useLayoutEffect",h(),rt(),Yi(4,Hl,r,a)},useMemo:function(r,a){Pe="useMemo",h(),rt();var u=$e.H;$e.H=Bu;try{return Pf(r,a)}finally{$e.H=u}},useReducer:function(r,a,u){Pe="useReducer",h(),rt();var g=$e.H;$e.H=Bu;try{return Nl(r,a,u)}finally{$e.H=g}},useRef:function(){return Pe="useRef",h(),rt(),Wn().memoizedState},useState:function(){Pe="useState",h(),rt();var r=$e.H;$e.H=Bu;try{return Nl(to)}finally{$e.H=r}},useDebugValue:function(){Pe="useDebugValue",h(),rt()},useDeferredValue:function(r,a){return Pe="useDeferredValue",h(),rt(),cn(r,a)},useTransition:function(){return Pe="useTransition",h(),rt(),Vr()},useSyncExternalStore:function(r,a,u){return Pe="useSyncExternalStore",h(),rt(),fp(r,a,u)},useId:function(){return Pe="useId",h(),rt(),Wn().memoizedState},useFormState:function(r){return Pe="useFormState",h(),rt(),u0(r)},useActionState:function(r){return Pe="useActionState",h(),rt(),u0(r)},useOptimistic:function(r,a){return Pe="useOptimistic",h(),rt(),s0(r,a)},useMemoCache:function(r){return h(),vu(r)},useHostTransitionStatus:Tu,useCacheRefresh:function(){return Pe="useCacheRefresh",rt(),Wn().memoizedState},useEffectEvent:function(r){return Pe="useEffectEvent",h(),rt(),ua(r)}},ow={readContext:function(r){return y(),br(r)},use:function(r){return h(),eo(r)},useCallback:function(r,a){return Pe="useCallback",h(),rt(),ca(r,a)},useContext:function(r){return Pe="useContext",h(),rt(),br(r)},useEffect:function(r,a){Pe="useEffect",h(),rt(),Yi(2048,Vo,r,a)},useImperativeHandle:function(r,a,u){return Pe="useImperativeHandle",h(),rt(),vp(r,a,u)},useInsertionEffect:function(r,a){return Pe="useInsertionEffect",h(),rt(),Yi(4,Lo,r,a)},useLayoutEffect:function(r,a){return Pe="useLayoutEffect",h(),rt(),Yi(4,Hl,r,a)},useMemo:function(r,a){Pe="useMemo",h(),rt();var u=$e.H;$e.H=Bu;try{return Pf(r,a)}finally{$e.H=u}},useReducer:function(r,a,u){Pe="useReducer",h(),rt();var g=$e.H;$e.H=Bu;try{return Ac(r,a,u)}finally{$e.H=g}},useRef:function(){return Pe="useRef",h(),rt(),Wn().memoizedState},useState:function(){Pe="useState",h(),rt();var r=$e.H;$e.H=Bu;try{return Ac(to)}finally{$e.H=r}},useDebugValue:function(){Pe="useDebugValue",h(),rt()},useDeferredValue:function(r,a){return Pe="useDeferredValue",h(),rt(),nr(r,a)},useTransition:function(){return Pe="useTransition",h(),rt(),b1()},useSyncExternalStore:function(r,a,u){return Pe="useSyncExternalStore",h(),rt(),fp(r,a,u)},useId:function(){return Pe="useId",h(),rt(),Wn().memoizedState},useFormState:function(r){return Pe="useFormState",h(),rt(),Rc(r)},useActionState:function(r){return Pe="useActionState",h(),rt(),Rc(r)},useOptimistic:function(r,a){return Pe="useOptimistic",h(),rt(),v4(r,a)},useMemoCache:function(r){return h(),vu(r)},useHostTransitionStatus:Tu,useCacheRefresh:function(){return Pe="useCacheRefresh",rt(),Wn().memoizedState},useEffectEvent:function(r){return Pe="useEffectEvent",h(),rt(),ua(r)}};var uL={},cL=new Set,fL=new Set,dL=new Set,hL=new Set,pL=new Set,mL=new Set,gL=new Set,yL=new Set,vL=new Set,bL=new Set;Object.freeze(uL);var VA={enqueueSetState:function(r,a,u){r=r._reactInternals;var g=Ki(r),x=xs(g);x.payload=a,u!=null&&(h0(u),x.callback=u),a=Oa(r,x,g),a!==null&&(Ol(g,"this.setState()",r),Br(a,r,g),i0(a,r,g))},enqueueReplaceState:function(r,a,u){r=r._reactInternals;var g=Ki(r),x=xs(g);x.tag=tL,x.payload=a,u!=null&&(h0(u),x.callback=u),a=Oa(r,x,g),a!==null&&(Ol(g,"this.replaceState()",r),Br(a,r,g),i0(a,r,g))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var u=Ki(r),g=xs(u);g.tag=nL,a!=null&&(h0(a),g.callback=a),a=Oa(r,g,u),a!==null&&(Ol(u,"this.forceUpdate()",r),Br(a,r,u),i0(a,r,u))}},Qy=null,BA=null,jA=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),ji=!1,xL={},SL={},EL={},wL={},Ky=!1,TL={},lw={},PA={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},AL=!1,CL=null;CL=new Set;var xd=!1,Pi=!1,UA=!1,OL=typeof WeakSet=="function"?WeakSet:Set,ga=null,Zy=null,Jy=null,Ui=null,fl=!1,ju=null,ra=!1,m5=8192,wfe={getCacheForType:function(r){var a=br(Li),u=a.data.get(r);return u===void 0&&(u=r(),a.data.set(r,u)),u},cacheSignal:function(){return br(Li).controller.signal},getOwner:function(){return Do}};if(typeof Symbol=="function"&&Symbol.for){var g5=Symbol.for;g5("selector.component"),g5("selector.has_pseudo_class"),g5("selector.role"),g5("selector.test_id"),g5("selector.text")}var Tfe=[],Afe=typeof WeakMap=="function"?WeakMap:Map,ya=0,ia=2,ql=4,Sd=0,y5=1,Om=2,sw=3,W0=4,uw=6,ML=5,Gn=ya,wr=null,Cn=null,En=0,dl=0,cw=1,Mm=2,v5=3,RL=4,$A=5,b5=6,fw=7,HA=8,Rm=9,pr=dl,Gl=null,Q0=!1,ev=!1,qA=!1,Gc=0,ti=Sd,K0=0,Z0=0,GA=0,hl=0,_m=0,x5=null,Bo=null,dw=!1,hw=0,_L=0,DL=300,pw=1/0,NL=500,S5=null,yi=null,J0=null,mw=0,FA=1,YA=2,kL=3,eh=0,zL=1,IL=2,LL=3,VL=4,gw=5,$i=0,th=null,tv=null,Pu=0,XA=0,WA=-0,QA=null,BL=null,jL=null,Uu=mw,PL=null,Cfe=50,E5=0,KA=null,ZA=!1,yw=!1,Ofe=50,Dm=0,w5=null,nv=!1,vw=null,UL=!1,$L=new Set,Mfe={},bw=null,rv=null,JA=!1,eC=!1,xw=!1,tC=!1,nh=0,nC={};(function(){for(var r=0;r<hA.length;r++){var a=hA[r],u=a.toLowerCase();a=a[0].toUpperCase()+a.slice(1),Wo(u,"on"+a)}Wo(vI,"onAnimationEnd"),Wo(bI,"onAnimationIteration"),Wo(xI,"onAnimationStart"),Wo("dblclick","onDoubleClick"),Wo("focusin","onFocus"),Wo("focusout","onBlur"),Wo(rfe,"onTransitionRun"),Wo(ife,"onTransitionStart"),Wo(afe,"onTransitionCancel"),Wo(SI,"onTransitionEnd")})(),ct("onMouseEnter",["mouseout","mouseover"]),ct("onMouseLeave",["mouseout","mouseover"]),ct("onPointerEnter",["pointerout","pointerover"]),ct("onPointerLeave",["pointerout","pointerover"]),Yt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Yt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Yt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Yt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Yt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Yt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var T5="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(" "),rC=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(T5)),Sw="_reactListening"+Math.random().toString(36).slice(2),HL=!1,qL=!1,Ew=!1,GL=!1,ww=!1,Tw=!1,FL=!1,Aw={},Rfe=/\r\n?/g,_fe=/\u0000|\uFFFD/g,Nm="http://www.w3.org/1999/xlink",iC="http://www.w3.org/XML/1998/namespace",Dfe="javascript:throw new Error('React form unexpectedly submitted.')",Nfe="suppressHydrationWarning",km="&",Cw="/&",A5="$",C5="/$",rh="$?",zm="$~",iv="$!",kfe="html",zfe="body",Ife="head",aC="F!",YL="F",XL="loading",Lfe="style",Ed=0,av=1,Ow=2,oC=null,lC=null,WL={dialog:!0,webview:!0},sC=null,O5=void 0,QL=typeof setTimeout=="function"?setTimeout:void 0,Vfe=typeof clearTimeout=="function"?clearTimeout:void 0,Im=-1,KL=typeof Promise=="function"?Promise:void 0,Bfe=typeof queueMicrotask=="function"?queueMicrotask:typeof KL<"u"?function(r){return KL.resolve(null).then(r).catch(cE)}:QL,uC=null,Lm=0,M5=1,ZL=2,JL=3,eu=4,tu=new Map,eV=new Set,wd=Kn.d;Kn.d={f:function(){var r=wd.f(),a=Wf();return r||a},r:function(r){var a=Ne(r);a!==null&&a.tag===5&&a.type==="form"?Uf(a):wd.r(r)},D:function(r){wd.D(r),yx("dns-prefetch",r,null)},C:function(r,a){wd.C(r,a),yx("preconnect",r,a)},L:function(r,a,u){wd.L(r,a,u);var g=ov;if(g&&r&&a){var x='link[rel="preload"][as="'+Or(a)+'"]';a==="image"&&u&&u.imageSrcSet?(x+='[imagesrcset="'+Or(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(x+='[imagesizes="'+Or(u.imageSizes)+'"]')):x+='[href="'+Or(r)+'"]';var E=x;switch(a){case"style":E=O0(r);break;case"script":E=M0(r)}tu.has(E)||(r=yn({rel:"preload",href:a==="image"&&u&&u.imageSrcSet?void 0:r,as:a},u),tu.set(E,r),g.querySelector(x)!==null||a==="style"&&g.querySelector(nd(E))||a==="script"&&g.querySelector(rd(E))||(a=g.createElement("link"),jn(a,"link",r),vt(a),g.head.appendChild(a)))}},m:function(r,a){wd.m(r,a);var u=ov;if(u&&r){var g=a&&typeof a.as=="string"?a.as:"script",x='link[rel="modulepreload"][as="'+Or(g)+'"][href="'+Or(r)+'"]',E=x;switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":E=M0(r)}if(!tu.has(E)&&(r=yn({rel:"modulepreload",href:r},a),tu.set(E,r),u.querySelector(x)===null)){switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(rd(E)))return}g=u.createElement("link"),jn(g,"link",r),vt(g),u.head.appendChild(g)}}},X:function(r,a){wd.X(r,a);var u=ov;if(u&&r){var g=wt(u).hoistableScripts,x=M0(r),E=g.get(x);E||(E=u.querySelector(rd(x)),E||(r=yn({src:r,async:!0},a),(a=tu.get(x))&&id(r,a),E=u.createElement("script"),vt(E),jn(E,"link",r),u.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},g.set(x,E))}},S:function(r,a,u){wd.S(r,a,u);var g=ov;if(g&&r){var x=wt(g).hoistableStyles,E=O0(r);a=a||"default";var M=x.get(E);if(!M){var D={loading:Lm,preload:null};if(M=g.querySelector(nd(E)))D.loading=M5|eu;else{r=yn({rel:"stylesheet",href:r,"data-precedence":a},u),(u=tu.get(E))&&xx(r,u);var q=M=g.createElement("link");vt(q),jn(q,"link",r),q._p=new Promise(function(K,Ee){q.onload=K,q.onerror=Ee}),q.addEventListener("load",function(){D.loading|=M5}),q.addEventListener("error",function(){D.loading|=ZL}),D.loading|=eu,ay(M,a,g)}M={type:"stylesheet",instance:M,count:1,state:D},x.set(E,M)}}},M:function(r,a){wd.M(r,a);var u=ov;if(u&&r){var g=wt(u).hoistableScripts,x=M0(r),E=g.get(x);E||(E=u.querySelector(rd(x)),E||(r=yn({src:r,async:!0,type:"module"},a),(a=tu.get(x))&&id(r,a),E=u.createElement("script"),vt(E),jn(E,"link",r),u.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},g.set(x,E))}}};var ov=typeof document>"u"?null:document,Mw=null,jfe=6e4,Pfe=800,Ufe=500,cC=0,fC=null,Rw=null,Vm=eA,R5={$$typeof:Bl,Provider:null,Consumer:null,_currentValue:Vm,_currentValue2:Vm,_threadCount:0},tV="%c%s%c",nV="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",rV="",_w=" ",$fe=Function.prototype.bind,iV=!1,aV=null,oV=null,lV=null,sV=null,uV=null,cV=null,fV=null,dV=null,hV=null,pV=null;aV=function(r,a,u,g){a=t(r,a),a!==null&&(u=n(a.memoizedState,u,0,g),a.memoizedState=u,a.baseState=u,r.memoizedProps=yn({},r.memoizedProps),u=Fi(r,2),u!==null&&Br(u,r,2))},oV=function(r,a,u){a=t(r,a),a!==null&&(u=s(a.memoizedState,u,0),a.memoizedState=u,a.baseState=u,r.memoizedProps=yn({},r.memoizedProps),u=Fi(r,2),u!==null&&Br(u,r,2))},lV=function(r,a,u,g){a=t(r,a),a!==null&&(u=i(a.memoizedState,u,g),a.memoizedState=u,a.baseState=u,r.memoizedProps=yn({},r.memoizedProps),u=Fi(r,2),u!==null&&Br(u,r,2))},sV=function(r,a,u){r.pendingProps=n(r.memoizedProps,a,0,u),r.alternate&&(r.alternate.pendingProps=r.pendingProps),a=Fi(r,2),a!==null&&Br(a,r,2)},uV=function(r,a){r.pendingProps=s(r.memoizedProps,a,0),r.alternate&&(r.alternate.pendingProps=r.pendingProps),a=Fi(r,2),a!==null&&Br(a,r,2)},cV=function(r,a,u){r.pendingProps=i(r.memoizedProps,a,u),r.alternate&&(r.alternate.pendingProps=r.pendingProps),a=Fi(r,2),a!==null&&Br(a,r,2)},fV=function(r){var a=Fi(r,2);a!==null&&Br(a,r,2)},dV=function(r){var a=Ve(),u=Fi(r,a);u!==null&&Br(u,r,a)},hV=function(r){d=r},pV=function(r){c=r};var Dw=!0,Nw=null,dC=!1,ih=null,ah=null,oh=null,_5=new Map,D5=new Map,lh=[],Hfe="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(" "),kw=null;if(im.prototype.render=Ps.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error("Cannot update an unmounted root.");var u=arguments;typeof u[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):N(u[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof u[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),u=r;var g=a.current,x=Ki(g);Tx(g,x,u,a,null,null)},im.prototype.unmount=Ps.prototype.unmount=function(){var r=arguments;if(typeof r[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),r=this._internalRoot,r!==null){this._internalRoot=null;var a=r.containerInfo;(Gn&(ia|ql))!==ya&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Tx(r.current,2,null,r,null,null),Wf(),a[cl]=null}},im.prototype.unstable_scheduleHydration=function(r){if(r){var a=cr();r={blockedOn:null,target:r,priority:a};for(var u=0;u<lh.length&&a!==0&&a<lh[u].priority;u++);lh.splice(u,0,r),u===0&&dy(r)}},(function(){var r=_x.version;if(r!=="19.2.4")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
316
|
+
Check the top-level render call using <`+g+">.");var M="";u!=null&&r!==u&&(g=null,typeof u.tag=="number"?g=ue(u):typeof u.name=="string"&&(g=u.name),g&&(M=" It was passed a child from "+g+".")),Be(a,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',E,M)})}}};var Am=xr(!0),JI=xr(!1),eL=0,tL=1,nL=2,DA=3,X0=!1,rL=!1,NA=null,kA=!1,Fy=$(null),nw=$(0),$l=$(null),Ks=null,Yy=1,f5=2,Ai=$(0),rw=0,Zs=1,Lo=2,Hl=4,Vo=8,Xy,iL=new Set,aL=new Set,zA=new Set,oL=new Set,yd=0,an=null,Er=null,Bi=null,iw=!1,Wy=!1,Cm=!1,aw=0,d5=0,vd=null,Sfe=0,Efe=25,Pe=null,Js=null,bd=-1,h5=!1,p5={readContext:br,use:eo,useCallback:Xr,useContext:Xr,useEffect:Xr,useImperativeHandle:Xr,useLayoutEffect:Xr,useInsertionEffect:Xr,useMemo:Xr,useReducer:Xr,useRef:Xr,useState:Xr,useDebugValue:Xr,useDeferredValue:Xr,useTransition:Xr,useSyncExternalStore:Xr,useId:Xr,useHostTransitionStatus:Xr,useFormState:Xr,useActionState:Xr,useOptimistic:Xr,useMemoCache:Xr,useCacheRefresh:Xr};p5.useEffectEvent=Xr;var IA=null,lL=null,LA=null,sL=null,qc=null,Bu=null,ow=null;IA={readContext:function(r){return br(r)},use:eo,useCallback:function(r,a){return Pe="useCallback",Vt(),If(a),As(r,a)},useContext:function(r){return Pe="useContext",Vt(),br(r)},useEffect:function(r,a){return Pe="useEffect",Vt(),If(a),mp(r,a)},useImperativeHandle:function(r,a,u){return Pe="useImperativeHandle",Vt(),If(u),yp(r,a,u)},useInsertionEffect:function(r,a){Pe="useInsertionEffect",Vt(),If(a),Zo(4,Lo,r,a)},useLayoutEffect:function(r,a){return Pe="useLayoutEffect",Vt(),If(a),no(r,a)},useMemo:function(r,a){Pe="useMemo",Vt(),If(a);var u=$e.H;$e.H=qc;try{return Lr(r,a)}finally{$e.H=u}},useReducer:function(r,a,u){Pe="useReducer",Vt();var g=$e.H;$e.H=qc;try{return m1(r,a,u)}finally{$e.H=g}},useRef:function(r){return Pe="useRef",Vt(),v1(r)},useState:function(r){Pe="useState",Vt();var a=$e.H;$e.H=qc;try{return Vf(r)}finally{$e.H=a}},useDebugValue:function(){Pe="useDebugValue",Vt()},useDeferredValue:function(r,a){return Pe="useDeferredValue",Vt(),kl(r,a)},useTransition:function(){return Pe="useTransition",Vt(),S4()},useSyncExternalStore:function(r,a,u){return Pe="useSyncExternalStore",Vt(),o0(r,a,u)},useId:function(){return Pe="useId",Vt(),x1()},useFormState:function(r,a){return Pe="useFormState",Vt(),d1(),Ts(r,a)},useActionState:function(r,a){return Pe="useActionState",Vt(),Ts(r,a)},useOptimistic:function(r){return Pe="useOptimistic",Vt(),l0(r)},useHostTransitionStatus:Tu,useMemoCache:vu,useCacheRefresh:function(){return Pe="useCacheRefresh",Vt(),S1()},useEffectEvent:function(r){return Pe="useEffectEvent",Vt(),gp(r)}},lL={readContext:function(r){return br(r)},use:eo,useCallback:function(r,a){return Pe="useCallback",rt(),As(r,a)},useContext:function(r){return Pe="useContext",rt(),br(r)},useEffect:function(r,a){return Pe="useEffect",rt(),mp(r,a)},useImperativeHandle:function(r,a,u){return Pe="useImperativeHandle",rt(),yp(r,a,u)},useInsertionEffect:function(r,a){Pe="useInsertionEffect",rt(),Zo(4,Lo,r,a)},useLayoutEffect:function(r,a){return Pe="useLayoutEffect",rt(),no(r,a)},useMemo:function(r,a){Pe="useMemo",rt();var u=$e.H;$e.H=qc;try{return Lr(r,a)}finally{$e.H=u}},useReducer:function(r,a,u){Pe="useReducer",rt();var g=$e.H;$e.H=qc;try{return m1(r,a,u)}finally{$e.H=g}},useRef:function(r){return Pe="useRef",rt(),v1(r)},useState:function(r){Pe="useState",rt();var a=$e.H;$e.H=qc;try{return Vf(r)}finally{$e.H=a}},useDebugValue:function(){Pe="useDebugValue",rt()},useDeferredValue:function(r,a){return Pe="useDeferredValue",rt(),kl(r,a)},useTransition:function(){return Pe="useTransition",rt(),S4()},useSyncExternalStore:function(r,a,u){return Pe="useSyncExternalStore",rt(),o0(r,a,u)},useId:function(){return Pe="useId",rt(),x1()},useActionState:function(r,a){return Pe="useActionState",rt(),Ts(r,a)},useFormState:function(r,a){return Pe="useFormState",rt(),d1(),Ts(r,a)},useOptimistic:function(r){return Pe="useOptimistic",rt(),l0(r)},useHostTransitionStatus:Tu,useMemoCache:vu,useCacheRefresh:function(){return Pe="useCacheRefresh",rt(),S1()},useEffectEvent:function(r){return Pe="useEffectEvent",rt(),gp(r)}},LA={readContext:function(r){return br(r)},use:eo,useCallback:function(r,a){return Pe="useCallback",rt(),ca(r,a)},useContext:function(r){return Pe="useContext",rt(),br(r)},useEffect:function(r,a){Pe="useEffect",rt(),Yi(2048,Vo,r,a)},useImperativeHandle:function(r,a,u){return Pe="useImperativeHandle",rt(),vp(r,a,u)},useInsertionEffect:function(r,a){return Pe="useInsertionEffect",rt(),Yi(4,Lo,r,a)},useLayoutEffect:function(r,a){return Pe="useLayoutEffect",rt(),Yi(4,Hl,r,a)},useMemo:function(r,a){Pe="useMemo",rt();var u=$e.H;$e.H=Bu;try{return Pf(r,a)}finally{$e.H=u}},useReducer:function(r,a,u){Pe="useReducer",rt();var g=$e.H;$e.H=Bu;try{return Nl(r,a,u)}finally{$e.H=g}},useRef:function(){return Pe="useRef",rt(),Wn().memoizedState},useState:function(){Pe="useState",rt();var r=$e.H;$e.H=Bu;try{return Nl(to)}finally{$e.H=r}},useDebugValue:function(){Pe="useDebugValue",rt()},useDeferredValue:function(r,a){return Pe="useDeferredValue",rt(),cn(r,a)},useTransition:function(){return Pe="useTransition",rt(),Vr()},useSyncExternalStore:function(r,a,u){return Pe="useSyncExternalStore",rt(),fp(r,a,u)},useId:function(){return Pe="useId",rt(),Wn().memoizedState},useFormState:function(r){return Pe="useFormState",rt(),d1(),u0(r)},useActionState:function(r){return Pe="useActionState",rt(),u0(r)},useOptimistic:function(r,a){return Pe="useOptimistic",rt(),s0(r,a)},useHostTransitionStatus:Tu,useMemoCache:vu,useCacheRefresh:function(){return Pe="useCacheRefresh",rt(),Wn().memoizedState},useEffectEvent:function(r){return Pe="useEffectEvent",rt(),ua(r)}},sL={readContext:function(r){return br(r)},use:eo,useCallback:function(r,a){return Pe="useCallback",rt(),ca(r,a)},useContext:function(r){return Pe="useContext",rt(),br(r)},useEffect:function(r,a){Pe="useEffect",rt(),Yi(2048,Vo,r,a)},useImperativeHandle:function(r,a,u){return Pe="useImperativeHandle",rt(),vp(r,a,u)},useInsertionEffect:function(r,a){return Pe="useInsertionEffect",rt(),Yi(4,Lo,r,a)},useLayoutEffect:function(r,a){return Pe="useLayoutEffect",rt(),Yi(4,Hl,r,a)},useMemo:function(r,a){Pe="useMemo",rt();var u=$e.H;$e.H=ow;try{return Pf(r,a)}finally{$e.H=u}},useReducer:function(r,a,u){Pe="useReducer",rt();var g=$e.H;$e.H=ow;try{return Ac(r,a,u)}finally{$e.H=g}},useRef:function(){return Pe="useRef",rt(),Wn().memoizedState},useState:function(){Pe="useState",rt();var r=$e.H;$e.H=ow;try{return Ac(to)}finally{$e.H=r}},useDebugValue:function(){Pe="useDebugValue",rt()},useDeferredValue:function(r,a){return Pe="useDeferredValue",rt(),nr(r,a)},useTransition:function(){return Pe="useTransition",rt(),b1()},useSyncExternalStore:function(r,a,u){return Pe="useSyncExternalStore",rt(),fp(r,a,u)},useId:function(){return Pe="useId",rt(),Wn().memoizedState},useFormState:function(r){return Pe="useFormState",rt(),d1(),Rc(r)},useActionState:function(r){return Pe="useActionState",rt(),Rc(r)},useOptimistic:function(r,a){return Pe="useOptimistic",rt(),v4(r,a)},useHostTransitionStatus:Tu,useMemoCache:vu,useCacheRefresh:function(){return Pe="useCacheRefresh",rt(),Wn().memoizedState},useEffectEvent:function(r){return Pe="useEffectEvent",rt(),ua(r)}},qc={readContext:function(r){return y(),br(r)},use:function(r){return h(),eo(r)},useCallback:function(r,a){return Pe="useCallback",h(),Vt(),As(r,a)},useContext:function(r){return Pe="useContext",h(),Vt(),br(r)},useEffect:function(r,a){return Pe="useEffect",h(),Vt(),mp(r,a)},useImperativeHandle:function(r,a,u){return Pe="useImperativeHandle",h(),Vt(),yp(r,a,u)},useInsertionEffect:function(r,a){Pe="useInsertionEffect",h(),Vt(),Zo(4,Lo,r,a)},useLayoutEffect:function(r,a){return Pe="useLayoutEffect",h(),Vt(),no(r,a)},useMemo:function(r,a){Pe="useMemo",h(),Vt();var u=$e.H;$e.H=qc;try{return Lr(r,a)}finally{$e.H=u}},useReducer:function(r,a,u){Pe="useReducer",h(),Vt();var g=$e.H;$e.H=qc;try{return m1(r,a,u)}finally{$e.H=g}},useRef:function(r){return Pe="useRef",h(),Vt(),v1(r)},useState:function(r){Pe="useState",h(),Vt();var a=$e.H;$e.H=qc;try{return Vf(r)}finally{$e.H=a}},useDebugValue:function(){Pe="useDebugValue",h(),Vt()},useDeferredValue:function(r,a){return Pe="useDeferredValue",h(),Vt(),kl(r,a)},useTransition:function(){return Pe="useTransition",h(),Vt(),S4()},useSyncExternalStore:function(r,a,u){return Pe="useSyncExternalStore",h(),Vt(),o0(r,a,u)},useId:function(){return Pe="useId",h(),Vt(),x1()},useFormState:function(r,a){return Pe="useFormState",h(),Vt(),Ts(r,a)},useActionState:function(r,a){return Pe="useActionState",h(),Vt(),Ts(r,a)},useOptimistic:function(r){return Pe="useOptimistic",h(),Vt(),l0(r)},useMemoCache:function(r){return h(),vu(r)},useHostTransitionStatus:Tu,useCacheRefresh:function(){return Pe="useCacheRefresh",Vt(),S1()},useEffectEvent:function(r){return Pe="useEffectEvent",h(),Vt(),gp(r)}},Bu={readContext:function(r){return y(),br(r)},use:function(r){return h(),eo(r)},useCallback:function(r,a){return Pe="useCallback",h(),rt(),ca(r,a)},useContext:function(r){return Pe="useContext",h(),rt(),br(r)},useEffect:function(r,a){Pe="useEffect",h(),rt(),Yi(2048,Vo,r,a)},useImperativeHandle:function(r,a,u){return Pe="useImperativeHandle",h(),rt(),vp(r,a,u)},useInsertionEffect:function(r,a){return Pe="useInsertionEffect",h(),rt(),Yi(4,Lo,r,a)},useLayoutEffect:function(r,a){return Pe="useLayoutEffect",h(),rt(),Yi(4,Hl,r,a)},useMemo:function(r,a){Pe="useMemo",h(),rt();var u=$e.H;$e.H=Bu;try{return Pf(r,a)}finally{$e.H=u}},useReducer:function(r,a,u){Pe="useReducer",h(),rt();var g=$e.H;$e.H=Bu;try{return Nl(r,a,u)}finally{$e.H=g}},useRef:function(){return Pe="useRef",h(),rt(),Wn().memoizedState},useState:function(){Pe="useState",h(),rt();var r=$e.H;$e.H=Bu;try{return Nl(to)}finally{$e.H=r}},useDebugValue:function(){Pe="useDebugValue",h(),rt()},useDeferredValue:function(r,a){return Pe="useDeferredValue",h(),rt(),cn(r,a)},useTransition:function(){return Pe="useTransition",h(),rt(),Vr()},useSyncExternalStore:function(r,a,u){return Pe="useSyncExternalStore",h(),rt(),fp(r,a,u)},useId:function(){return Pe="useId",h(),rt(),Wn().memoizedState},useFormState:function(r){return Pe="useFormState",h(),rt(),u0(r)},useActionState:function(r){return Pe="useActionState",h(),rt(),u0(r)},useOptimistic:function(r,a){return Pe="useOptimistic",h(),rt(),s0(r,a)},useMemoCache:function(r){return h(),vu(r)},useHostTransitionStatus:Tu,useCacheRefresh:function(){return Pe="useCacheRefresh",rt(),Wn().memoizedState},useEffectEvent:function(r){return Pe="useEffectEvent",h(),rt(),ua(r)}},ow={readContext:function(r){return y(),br(r)},use:function(r){return h(),eo(r)},useCallback:function(r,a){return Pe="useCallback",h(),rt(),ca(r,a)},useContext:function(r){return Pe="useContext",h(),rt(),br(r)},useEffect:function(r,a){Pe="useEffect",h(),rt(),Yi(2048,Vo,r,a)},useImperativeHandle:function(r,a,u){return Pe="useImperativeHandle",h(),rt(),vp(r,a,u)},useInsertionEffect:function(r,a){return Pe="useInsertionEffect",h(),rt(),Yi(4,Lo,r,a)},useLayoutEffect:function(r,a){return Pe="useLayoutEffect",h(),rt(),Yi(4,Hl,r,a)},useMemo:function(r,a){Pe="useMemo",h(),rt();var u=$e.H;$e.H=Bu;try{return Pf(r,a)}finally{$e.H=u}},useReducer:function(r,a,u){Pe="useReducer",h(),rt();var g=$e.H;$e.H=Bu;try{return Ac(r,a,u)}finally{$e.H=g}},useRef:function(){return Pe="useRef",h(),rt(),Wn().memoizedState},useState:function(){Pe="useState",h(),rt();var r=$e.H;$e.H=Bu;try{return Ac(to)}finally{$e.H=r}},useDebugValue:function(){Pe="useDebugValue",h(),rt()},useDeferredValue:function(r,a){return Pe="useDeferredValue",h(),rt(),nr(r,a)},useTransition:function(){return Pe="useTransition",h(),rt(),b1()},useSyncExternalStore:function(r,a,u){return Pe="useSyncExternalStore",h(),rt(),fp(r,a,u)},useId:function(){return Pe="useId",h(),rt(),Wn().memoizedState},useFormState:function(r){return Pe="useFormState",h(),rt(),Rc(r)},useActionState:function(r){return Pe="useActionState",h(),rt(),Rc(r)},useOptimistic:function(r,a){return Pe="useOptimistic",h(),rt(),v4(r,a)},useMemoCache:function(r){return h(),vu(r)},useHostTransitionStatus:Tu,useCacheRefresh:function(){return Pe="useCacheRefresh",rt(),Wn().memoizedState},useEffectEvent:function(r){return Pe="useEffectEvent",h(),rt(),ua(r)}};var uL={},cL=new Set,fL=new Set,dL=new Set,hL=new Set,pL=new Set,mL=new Set,gL=new Set,yL=new Set,vL=new Set,bL=new Set;Object.freeze(uL);var VA={enqueueSetState:function(r,a,u){r=r._reactInternals;var g=Ki(r),x=xs(g);x.payload=a,u!=null&&(h0(u),x.callback=u),a=Oa(r,x,g),a!==null&&(Ol(g,"this.setState()",r),Br(a,r,g),i0(a,r,g))},enqueueReplaceState:function(r,a,u){r=r._reactInternals;var g=Ki(r),x=xs(g);x.tag=tL,x.payload=a,u!=null&&(h0(u),x.callback=u),a=Oa(r,x,g),a!==null&&(Ol(g,"this.replaceState()",r),Br(a,r,g),i0(a,r,g))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var u=Ki(r),g=xs(u);g.tag=nL,a!=null&&(h0(a),g.callback=a),a=Oa(r,g,u),a!==null&&(Ol(u,"this.forceUpdate()",r),Br(a,r,u),i0(a,r,u))}},Qy=null,BA=null,jA=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),ji=!1,xL={},SL={},EL={},wL={},Ky=!1,TL={},lw={},PA={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},AL=!1,CL=null;CL=new Set;var xd=!1,Pi=!1,UA=!1,OL=typeof WeakSet=="function"?WeakSet:Set,ga=null,Zy=null,Jy=null,Ui=null,fl=!1,ju=null,ra=!1,m5=8192,wfe={getCacheForType:function(r){var a=br(Li),u=a.data.get(r);return u===void 0&&(u=r(),a.data.set(r,u)),u},cacheSignal:function(){return br(Li).controller.signal},getOwner:function(){return Do}};if(typeof Symbol=="function"&&Symbol.for){var g5=Symbol.for;g5("selector.component"),g5("selector.has_pseudo_class"),g5("selector.role"),g5("selector.test_id"),g5("selector.text")}var Tfe=[],Afe=typeof WeakMap=="function"?WeakMap:Map,ya=0,ia=2,ql=4,Sd=0,y5=1,Om=2,sw=3,W0=4,uw=6,ML=5,Gn=ya,wr=null,On=null,En=0,dl=0,cw=1,Mm=2,v5=3,RL=4,$A=5,b5=6,fw=7,HA=8,Rm=9,pr=dl,Gl=null,Q0=!1,ev=!1,qA=!1,Gc=0,ti=Sd,K0=0,Z0=0,GA=0,hl=0,_m=0,x5=null,Bo=null,dw=!1,hw=0,_L=0,DL=300,pw=1/0,NL=500,S5=null,yi=null,J0=null,mw=0,FA=1,YA=2,kL=3,eh=0,zL=1,IL=2,LL=3,VL=4,gw=5,$i=0,th=null,tv=null,Pu=0,XA=0,WA=-0,QA=null,BL=null,jL=null,Uu=mw,PL=null,Cfe=50,E5=0,KA=null,ZA=!1,yw=!1,Ofe=50,Dm=0,w5=null,nv=!1,vw=null,UL=!1,$L=new Set,Mfe={},bw=null,rv=null,JA=!1,eC=!1,xw=!1,tC=!1,nh=0,nC={};(function(){for(var r=0;r<hA.length;r++){var a=hA[r],u=a.toLowerCase();a=a[0].toUpperCase()+a.slice(1),Wo(u,"on"+a)}Wo(vI,"onAnimationEnd"),Wo(bI,"onAnimationIteration"),Wo(xI,"onAnimationStart"),Wo("dblclick","onDoubleClick"),Wo("focusin","onFocus"),Wo("focusout","onBlur"),Wo(rfe,"onTransitionRun"),Wo(ife,"onTransitionStart"),Wo(afe,"onTransitionCancel"),Wo(SI,"onTransitionEnd")})(),ct("onMouseEnter",["mouseout","mouseover"]),ct("onMouseLeave",["mouseout","mouseover"]),ct("onPointerEnter",["pointerout","pointerover"]),ct("onPointerLeave",["pointerout","pointerover"]),Yt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Yt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Yt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Yt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Yt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Yt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var T5="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(" "),rC=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(T5)),Sw="_reactListening"+Math.random().toString(36).slice(2),HL=!1,qL=!1,Ew=!1,GL=!1,ww=!1,Tw=!1,FL=!1,Aw={},Rfe=/\r\n?/g,_fe=/\u0000|\uFFFD/g,Nm="http://www.w3.org/1999/xlink",iC="http://www.w3.org/XML/1998/namespace",Dfe="javascript:throw new Error('React form unexpectedly submitted.')",Nfe="suppressHydrationWarning",km="&",Cw="/&",A5="$",C5="/$",rh="$?",zm="$~",iv="$!",kfe="html",zfe="body",Ife="head",aC="F!",YL="F",XL="loading",Lfe="style",Ed=0,av=1,Ow=2,oC=null,lC=null,WL={dialog:!0,webview:!0},sC=null,O5=void 0,QL=typeof setTimeout=="function"?setTimeout:void 0,Vfe=typeof clearTimeout=="function"?clearTimeout:void 0,Im=-1,KL=typeof Promise=="function"?Promise:void 0,Bfe=typeof queueMicrotask=="function"?queueMicrotask:typeof KL<"u"?function(r){return KL.resolve(null).then(r).catch(cE)}:QL,uC=null,Lm=0,M5=1,ZL=2,JL=3,eu=4,tu=new Map,eV=new Set,wd=Kn.d;Kn.d={f:function(){var r=wd.f(),a=Wf();return r||a},r:function(r){var a=Ne(r);a!==null&&a.tag===5&&a.type==="form"?Uf(a):wd.r(r)},D:function(r){wd.D(r),yx("dns-prefetch",r,null)},C:function(r,a){wd.C(r,a),yx("preconnect",r,a)},L:function(r,a,u){wd.L(r,a,u);var g=ov;if(g&&r&&a){var x='link[rel="preload"][as="'+Or(a)+'"]';a==="image"&&u&&u.imageSrcSet?(x+='[imagesrcset="'+Or(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(x+='[imagesizes="'+Or(u.imageSizes)+'"]')):x+='[href="'+Or(r)+'"]';var E=x;switch(a){case"style":E=O0(r);break;case"script":E=M0(r)}tu.has(E)||(r=yn({rel:"preload",href:a==="image"&&u&&u.imageSrcSet?void 0:r,as:a},u),tu.set(E,r),g.querySelector(x)!==null||a==="style"&&g.querySelector(nd(E))||a==="script"&&g.querySelector(rd(E))||(a=g.createElement("link"),jn(a,"link",r),vt(a),g.head.appendChild(a)))}},m:function(r,a){wd.m(r,a);var u=ov;if(u&&r){var g=a&&typeof a.as=="string"?a.as:"script",x='link[rel="modulepreload"][as="'+Or(g)+'"][href="'+Or(r)+'"]',E=x;switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":E=M0(r)}if(!tu.has(E)&&(r=yn({rel:"modulepreload",href:r},a),tu.set(E,r),u.querySelector(x)===null)){switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(rd(E)))return}g=u.createElement("link"),jn(g,"link",r),vt(g),u.head.appendChild(g)}}},X:function(r,a){wd.X(r,a);var u=ov;if(u&&r){var g=wt(u).hoistableScripts,x=M0(r),E=g.get(x);E||(E=u.querySelector(rd(x)),E||(r=yn({src:r,async:!0},a),(a=tu.get(x))&&id(r,a),E=u.createElement("script"),vt(E),jn(E,"link",r),u.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},g.set(x,E))}},S:function(r,a,u){wd.S(r,a,u);var g=ov;if(g&&r){var x=wt(g).hoistableStyles,E=O0(r);a=a||"default";var M=x.get(E);if(!M){var D={loading:Lm,preload:null};if(M=g.querySelector(nd(E)))D.loading=M5|eu;else{r=yn({rel:"stylesheet",href:r,"data-precedence":a},u),(u=tu.get(E))&&xx(r,u);var q=M=g.createElement("link");vt(q),jn(q,"link",r),q._p=new Promise(function(K,Ee){q.onload=K,q.onerror=Ee}),q.addEventListener("load",function(){D.loading|=M5}),q.addEventListener("error",function(){D.loading|=ZL}),D.loading|=eu,ay(M,a,g)}M={type:"stylesheet",instance:M,count:1,state:D},x.set(E,M)}}},M:function(r,a){wd.M(r,a);var u=ov;if(u&&r){var g=wt(u).hoistableScripts,x=M0(r),E=g.get(x);E||(E=u.querySelector(rd(x)),E||(r=yn({src:r,async:!0,type:"module"},a),(a=tu.get(x))&&id(r,a),E=u.createElement("script"),vt(E),jn(E,"link",r),u.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},g.set(x,E))}}};var ov=typeof document>"u"?null:document,Mw=null,jfe=6e4,Pfe=800,Ufe=500,cC=0,fC=null,Rw=null,Vm=eA,R5={$$typeof:Bl,Provider:null,Consumer:null,_currentValue:Vm,_currentValue2:Vm,_threadCount:0},tV="%c%s%c",nV="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",rV="",_w=" ",$fe=Function.prototype.bind,iV=!1,aV=null,oV=null,lV=null,sV=null,uV=null,cV=null,fV=null,dV=null,hV=null,pV=null;aV=function(r,a,u,g){a=t(r,a),a!==null&&(u=n(a.memoizedState,u,0,g),a.memoizedState=u,a.baseState=u,r.memoizedProps=yn({},r.memoizedProps),u=Fi(r,2),u!==null&&Br(u,r,2))},oV=function(r,a,u){a=t(r,a),a!==null&&(u=s(a.memoizedState,u,0),a.memoizedState=u,a.baseState=u,r.memoizedProps=yn({},r.memoizedProps),u=Fi(r,2),u!==null&&Br(u,r,2))},lV=function(r,a,u,g){a=t(r,a),a!==null&&(u=i(a.memoizedState,u,g),a.memoizedState=u,a.baseState=u,r.memoizedProps=yn({},r.memoizedProps),u=Fi(r,2),u!==null&&Br(u,r,2))},sV=function(r,a,u){r.pendingProps=n(r.memoizedProps,a,0,u),r.alternate&&(r.alternate.pendingProps=r.pendingProps),a=Fi(r,2),a!==null&&Br(a,r,2)},uV=function(r,a){r.pendingProps=s(r.memoizedProps,a,0),r.alternate&&(r.alternate.pendingProps=r.pendingProps),a=Fi(r,2),a!==null&&Br(a,r,2)},cV=function(r,a,u){r.pendingProps=i(r.memoizedProps,a,u),r.alternate&&(r.alternate.pendingProps=r.pendingProps),a=Fi(r,2),a!==null&&Br(a,r,2)},fV=function(r){var a=Fi(r,2);a!==null&&Br(a,r,2)},dV=function(r){var a=Ve(),u=Fi(r,a);u!==null&&Br(u,r,a)},hV=function(r){d=r},pV=function(r){c=r};var Dw=!0,Nw=null,dC=!1,ih=null,ah=null,oh=null,_5=new Map,D5=new Map,lh=[],Hfe="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(" "),kw=null;if(im.prototype.render=Ps.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error("Cannot update an unmounted root.");var u=arguments;typeof u[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):N(u[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof u[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),u=r;var g=a.current,x=Ki(g);Tx(g,x,u,a,null,null)},im.prototype.unmount=Ps.prototype.unmount=function(){var r=arguments;if(typeof r[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),r=this._internalRoot,r!==null){this._internalRoot=null;var a=r.containerInfo;(Gn&(ia|ql))!==ya&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Tx(r.current,2,null,r,null,null),Wf(),a[cl]=null}},im.prototype.unstable_scheduleHydration=function(r){if(r){var a=cr();r={blockedOn:null,target:r,priority:a};for(var u=0;u<lh.length&&a!==0&&a<lh[u].priority;u++);lh.splice(u,0,r),u===0&&dy(r)}},(function(){var r=_x.version;if(r!=="19.2.4")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
317
317
|
- react: `+(r+`
|
|
318
318
|
- react-dom: 19.2.4
|
|
319
319
|
Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),Kn.findDOMNode=function(r){var a=r._reactInternals;if(a===void 0)throw typeof r.render=="function"?Error("Unable to find node on an unmounted component."):(r=Object.keys(r).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+r));return r=U(a),r=r!==null?X(r):null,r=r===null?null:r.stateNode,r},!(function(){var r={bundleType:1,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:$e,reconcilerVersion:"19.2.4"};return r.overrideHookState=aV,r.overrideHookStateDeletePath=oV,r.overrideHookStateRenamePath=lV,r.overrideProps=sV,r.overridePropsDeletePath=uV,r.overridePropsRenamePath=cV,r.scheduleUpdate=fV,r.scheduleRetry=dV,r.setErrorHandler=hV,r.setSuspenseHandler=pV,r.scheduleRefresh=R,r.scheduleRoot=C,r.setRefreshHandler=_,r.getCurrentFiber=Cx,mn(r)})()&&Uc&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var mV=window.location.protocol;/^(https?|file):$/.test(mV)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(mV==="file:"?`
|
|
@@ -338,12 +338,12 @@ You might need to use a local HTTP server (instead of file://): https://react.de
|
|
|
338
338
|
figure[id^="maidr-figure"] > div[tabindex="0"]:focus {
|
|
339
339
|
outline: none !important;
|
|
340
340
|
}
|
|
341
|
-
`,document.head.appendChild(e)}function zV(e){function t(){const i=document.querySelector('div[id^="react-container-"]');if(i&&e){const o=e.getAttribute("height")??String(e.getBoundingClientRect().height);o&&(i.style.paddingTop=`${Number.parseFloat(o)}px`,requestAnimationFrame(()=>{try{window.dispatchEvent(new Event("resize"))}catch{}}))}}function n(){const i=document.querySelector('article[id^="maidr-article"]');if(!i){requestAnimationFrame(n);return}new MutationObserver(()=>t()).observe(i,{childList:!0,subtree:!0})}requestAnimationFrame(n)}function IV(){const e=document.querySelector(".modebar-container");if(!e)return;e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex","-1");const t=e.querySelectorAll("a, button, input, [tabindex]");for(const n of t)n.setAttribute("tabindex","-1")}function LV(){const e=document.querySelector(".plotly-graph-div")??document.querySelector(".svg-container");e&&e.addEventListener("click",()=>{const t=document.querySelector('figure[id^="maidr-figure"] > div[tabindex="0"]');t&&t.focus()},!0)}var
|
|
342
|
-
`),P(me,"OPEN_BRACKET","["),P(me,"POLYLINE","polyline"),P(me,"SPACE"," "),P(me,"THROUGH"," through "),P(me,"TRANSPARENT","transparent"),P(me,"VISIBLE","visible"),P(me,"X","x"),P(me,"Y","y"),P(me,"HIGHLIGHT_BASE_COLOR",{r:255,g:255,b:255}),P(me,"HIGHLIGHT_CONTRAST_RATIO",3),P(me,"HIGHLIGHT_COLOR_RATIO",.6),P(me,"HIGHLIGHT_MAX_COLOR",255),P(me,"HIGHER_VALUE_MODE","HIGHER VALUE NAVIGATION"),P(me,"LOWER_VALUE_MODE","LOWER VALUE NAVIGATION"),P(me,"DATA_MODE","DATA POINT NAVIGATION"),P(me,"NO_OF_ROTOR_NAV_MODES",3);class jw{constructor(){P(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 i=this.items.lastIndexOf(t);return i!==-1?(this.items.splice(i,n),!0):!1}isEmpty(){return this.items.length===0}size(){return this.items.length}clear(){this.items.length=0}}const Pw=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Uw(e,t,n,i){e.addEventListener?e.addEventListener(t,n,i):e.attachEvent&&e.attachEvent("on".concat(t),n)}function dv(e,t,n,i){e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent&&e.detachEvent("on".concat(t),n)}function RC(e,t){const n=t.slice(0,t.length-1);for(let i=0;i<n.length;i++)n[i]=e[n[i].toLowerCase()];return n}function _C(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");const t=e.split(",");let n=t.lastIndexOf("");for(;n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function FV(e,t){const n=e.length>=t.length?e:t,i=e.length>=t.length?t:e;let o=!0;for(let s=0;s<n.length;s++)i.indexOf(n[s])===-1&&(o=!1);return o}const hv={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Pw?173:189,"=":Pw?61:187,";":Pw?59:186,"'":222,"[":219,"]":221,"\\":220},ru={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},pv={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},va={16:!1,18:!1,17:!1,91:!1},ni={};for(let e=1;e<20;e++)hv["f".concat(e)]=111+e;let Pr=[],mv=null,DC="all";const Xc=new Map,gv=e=>hv[e.toLowerCase()]||ru[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),YV=e=>Object.keys(hv).find(t=>hv[t]===e),XV=e=>Object.keys(ru).find(t=>ru[t]===e);function NC(e){DC=e||"all"}function yv(){return DC||"all"}function WV(){return Pr.slice(0)}function QV(){return Pr.map(e=>YV(e)||XV(e)||String.fromCharCode(e))}function KV(){const e=[];return Object.keys(ni).forEach(t=>{ni[t].forEach(n=>{let{key:i,scope:o,mods:s,shortcut:c}=n;e.push({scope:o,shortcut:c,mods:s,keys:i.split("+").map(d=>gv(d))})})}),e}function ZV(e){const t=e.target||e.srcElement,{tagName:n}=t;let i=!0;const o=n==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(o||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(i=!1),i}function JV(e){return typeof e=="string"&&(e=gv(e)),Pr.indexOf(e)!==-1}function eB(e,t){let n,i;e||(e=yv());for(const o in ni)if(Object.prototype.hasOwnProperty.call(ni,o))for(n=ni[o],i=0;i<n.length;)n[i].scope===e?n.splice(i,1).forEach(c=>{let{element:d}=c;return $w(d)}):i++;yv()===e&&NC(t||"all")}function tB(e){let t=e.keyCode||e.which||e.charCode;const n=Pr.indexOf(t);if(n>=0&&Pr.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Pr.splice(0,Pr.length),(t===93||t===224)&&(t=91),t in va){va[t]=!1;for(const i in ru)ru[i]===t&&(Ba[i]=!1)}}function kC(e){if(typeof e>"u")Object.keys(ni).forEach(o=>{Array.isArray(ni[o])&&ni[o].forEach(s=>V5(s)),delete ni[o]}),$w(null);else if(Array.isArray(e))e.forEach(o=>{o.key&&V5(o)});else if(typeof e=="object")e.key&&V5(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];let[o,s]=n;typeof o=="function"&&(s=o,o=""),V5({key:e,scope:o,method:s,splitKey:"+"})}}const V5=e=>{let{key:t,scope:n,method:i,splitKey:o="+"}=e;_C(t).forEach(c=>{const d=c.split(o),h=d.length,y=d[h-1],v=y==="*"?"*":gv(y);if(!ni[v])return;n||(n=yv());const S=h>1?RC(ru,d):[],T=[];ni[v]=ni[v].filter(w=>{const R=(i?w.method===i:!0)&&w.scope===n&&FV(w.mods,S);return R&&T.push(w.element),!R}),T.forEach(w=>$w(w))})};function zC(e,t,n,i){if(t.element!==i)return;let o;if(t.scope===n||t.scope==="all"){o=t.mods.length>0;for(const s in va)Object.prototype.hasOwnProperty.call(va,s)&&(!va[s]&&t.mods.indexOf(+s)>-1||va[s]&&t.mods.indexOf(+s)===-1)&&(o=!1);(t.mods.length===0&&!va[16]&&!va[18]&&!va[17]&&!va[91]||o||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(Pr),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function IC(e,t){const n=ni["*"];let i=e.keyCode||e.which||e.charCode;if(!Ba.filter.call(this,e))return;if((i===93||i===224)&&(i=91),Pr.indexOf(i)===-1&&i!==229&&Pr.push(i),["metaKey","ctrlKey","altKey","shiftKey"].forEach(d=>{const h=pv[d];e[d]&&Pr.indexOf(h)===-1?Pr.push(h):!e[d]&&Pr.indexOf(h)>-1?Pr.splice(Pr.indexOf(h),1):d==="metaKey"&&e[d]&&(Pr=Pr.filter(y=>y in pv||y===i))}),i in va){va[i]=!0;for(const d in ru)if(Object.prototype.hasOwnProperty.call(ru,d)){const h=pv[ru[d]];Ba[d]=e[h]}if(!n)return}for(const d in va)Object.prototype.hasOwnProperty.call(va,d)&&(va[d]=e[pv[d]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Pr.indexOf(17)===-1&&Pr.push(17),Pr.indexOf(18)===-1&&Pr.push(18),va[17]=!0,va[18]=!0);const o=yv();if(n)for(let d=0;d<n.length;d++)n[d].scope===o&&(e.type==="keydown"&&n[d].keydown||e.type==="keyup"&&n[d].keyup)&&zC(e,n[d],o,t);if(!(i in ni))return;const s=ni[i],c=s.length;for(let d=0;d<c;d++)if((e.type==="keydown"&&s[d].keydown||e.type==="keyup"&&s[d].keyup)&&s[d].key){const h=s[d],{splitKey:y}=h,v=h.key.split(y),S=[];for(let T=0;T<v.length;T++)S.push(gv(v[T]));S.sort().join("")===Pr.sort().join("")&&zC(e,h,o,t)}}function Ba(e,t,n){Pr=[];const i=_C(e);let o=[],s="all",c=document,d=0,h=!1,y=!0,v="+",S=!1,T=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(c=t.element),t.keyup&&(h=t.keyup),t.keydown!==void 0&&(y=t.keydown),t.capture!==void 0&&(S=t.capture),typeof t.splitKey=="string"&&(v=t.splitKey),t.single===!0&&(T=!0)),typeof t=="string"&&(s=t),T&&kC(e,s);d<i.length;d++)e=i[d].split(v),o=[],e.length>1&&(o=RC(ru,e)),e=e[e.length-1],e=e==="*"?"*":gv(e),e in ni||(ni[e]=[]),ni[e].push({keyup:h,keydown:y,scope:s,mods:o,shortcut:i[d],method:n,key:i[d],splitKey:v,element:c});if(typeof c<"u"&&window){if(!Xc.has(c)){const w=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return IC(R,c)},C=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;IC(R,c),tB(R)};Xc.set(c,{keydownListener:w,keyupListenr:C,capture:S}),Uw(c,"keydown",w,S),Uw(c,"keyup",C,S)}if(!mv){const w=()=>{Pr=[]};mv={listener:w,capture:S},Uw(window,"focus",w,S)}}}function nB(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(ni).forEach(n=>{ni[n].filter(o=>o.scope===t&&o.shortcut===e).forEach(o=>{o&&o.method&&o.method()})})}function $w(e){const t=Object.values(ni).flat();if(t.findIndex(i=>{let{element:o}=i;return o===e})<0){const{keydownListener:i,keyupListenr:o,capture:s}=Xc.get(e)||{};i&&o&&(dv(e,"keyup",o,s),dv(e,"keydown",i,s),Xc.delete(e))}if((t.length<=0||Xc.size<=0)&&(Object.keys(Xc).forEach(o=>{const{keydownListener:s,keyupListenr:c,capture:d}=Xc.get(o)||{};s&&c&&(dv(o,"keyup",c,d),dv(o,"keydown",s,d),Xc.delete(o))}),Xc.clear(),Object.keys(ni).forEach(o=>delete ni[o]),mv)){const{listener:o,capture:s}=mv;dv(window,"focus",o,s),mv=null}}const Hw={getPressedKeyString:QV,setScope:NC,getScope:yv,deleteScope:eB,getPressedKeyCodes:WV,getAllKeyCodes:KV,isPressed:JV,filter:ZV,trigger:nB,unbind:kC,keyMap:hv,modifier:ru,modifierMap:pv};for(const e in Hw)Object.prototype.hasOwnProperty.call(Hw,e)&&(Ba[e]=Hw[e]);if(typeof window<"u"){const e=window.hotkeys;Ba.noConflict=t=>(t&&window.hotkeys===Ba&&(window.hotkeys=e),Ba),window.hotkeys=Ba}function LC(e,t){return t?t===Nt.HORIZONTAL||t==="horz"?`horizontal ${e}`:t===Nt.VERTICAL||t==="vert"?`vertical ${e}`:e:e}class rB{constructor(t){P(this,"id");P(this,"instructionContext");P(this,"selectorList",[]);P(this,"plotContext");P(this,"scopeContext");P(this,"navigationService");P(this,"figure");P(this,"isRotorActive");this.figure=t,this.id=t.id,this.plotContext=new jw,this.scopeContext=new jw,this.navigationService=new Bw,this.isRotorActive=!1;const n=t.state;if(n.empty||n.size!==1){this.instructionContext=t,this.plotContext.push(t),this.scopeContext.push(dn.SUBPLOT);return}this.scopeContext.push(dn.TRACE);const i=t.activeSubplot.state;if(i.empty||i.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}setRotorEnabled(t){this.isRotorActive=t}isRotorEnabled(){return this.isRotorActive}get isMultiPanel(){const t=this.figure.state;return!t.empty&&t.size>1}get figureTitle(){const t=this.figure.state;return t.empty?"unavailable":t.title}get figureSubtitle(){const t=this.figure.state;return t.empty?"unavailable":t.subtitle}get figureCaption(){const t=this.figure.state;return t.empty?"unavailable":t.caption}toggleScope(t){this.scopeContext.clear(),this.scopeContext.push(t),Ba.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){const n=this.active;this.plotContext.pop();const i=this.active,o=this.navigationService.stepTraceInSubplot(i,t);o?this.plotContext.push(o):n&&this.plotContext.push(n)}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 i=n.activeSubplot.activeTrace;i.resetToInitialEntry(),this.plotContext.push(i),this.toggleScope(dn.TRACE)}}exitSubplot(){this.plotContext.size()>2&&(this.plotContext.pop(),this.plotContext.pop(),this.active.notifyStateUpdate(),this.toggleScope(dn.SUBPLOT))}getInstruction(t){const n=this.instructionContext.state;if(n.empty)return`No ${n.type} info available`;const i=t?"Click to activate.":me.EMPTY;switch(n.type){case"figure":return`This is a maidr figure containing ${n.size} subplots. ${i}
|
|
341
|
+
`,document.head.appendChild(e)}function zV(e){function t(){const i=document.querySelector('div[id^="react-container-"]');if(i&&e){const o=e.getAttribute("height")??String(e.getBoundingClientRect().height);o&&(i.style.paddingTop=`${Number.parseFloat(o)}px`,requestAnimationFrame(()=>{try{window.dispatchEvent(new Event("resize"))}catch{}}))}}function n(){const i=document.querySelector('article[id^="maidr-article"]');if(!i){requestAnimationFrame(n);return}new MutationObserver(()=>t()).observe(i,{childList:!0,subtree:!0})}requestAnimationFrame(n)}function IV(){const e=document.querySelector(".modebar-container");if(!e)return;e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex","-1");const t=e.querySelectorAll("a, button, input, [tabindex]");for(const n of t)n.setAttribute("tabindex","-1")}function LV(){const e=document.querySelector(".plotly-graph-div")??document.querySelector(".svg-container");e&&e.addEventListener("click",()=>{const t=document.querySelector('figure[id^="maidr-figure"] > div[tabindex="0"]');t&&t.focus()},!0)}var _t=(e=>(e.VERTICAL="vert",e.HORIZONTAL="horz",e))(_t||{}),wn=(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.VIOLIN_BOX="violin_box",e.VIOLIN_KDE="violin_kde",e))(wn||{});function VV(e){return e!==null&&typeof e=="object"&&"x"in e}function BV(e){return typeof e=="string"||typeof e=="number"}function jV(e){return e!==null&&typeof e=="object"&&"x"in e}class Bw{stepTraceInSubplot(t,n){const i=t.activeTrace;if(!i)return null;const o=i.getCurrentXValue();t.moveOnce(n);const s=t.activeTrace;if(!s)return null;if(s.getId()===i.getId())return s.notifyOutOfBounds(),t.notifyOutOfBounds(),s;let c=!1;if(typeof i.getCurrentYValue=="function"&&typeof s.moveToXAndYValue=="function"){const d=i.getCurrentYValue();d!==null&&o!==null&&(c=s.moveToXAndYValue(o,d))}return c||s.moveToXValue(o),this.notifyLayerSwitch(t,s),s}computeIndexAndSegment(t,n,i,o){return i===_t.HORIZONTAL?{pointIndex:t,segmentType:o[n]}:{pointIndex:n,segmentType:o[t]}}computeVisualCoordinates(t,n,i){return i===_t.HORIZONTAL?{row:t,col:n}:{row:n,col:t}}extractXValueFromPoints(t,n,i){if(Array.isArray(t)&&t.length===1&&Array.isArray(t[0])){const o=t[0][i];return this.extractXFromPoint(o)}if(Array.isArray(t)&&Array.isArray(t[n])&&t[n][i]){const o=t[n][i];return this.extractXFromPoint(o)}return null}extractXValueFromValues(t,n,i){if(this.isValidPosition(t,n,i)){const o=t[n][i];return this.extractXFromValue(o)}return null}moveToXValueInPoints(t,n,i){if(Array.isArray(t)&&t.length===1&&Array.isArray(t[0])){const h=this.findPointIndexByX(t[0],n);if(h!==-1)return i(0,h),!0;{const y=this.findNearestPointIndexByX(t[0],n);if(y!==-1){const v=Hu(t[0][y]);if(typeof n=="number"&&typeof v=="number")return i(0,y),!0;if(typeof n=="string"&&typeof v=="string")return i(0,y),!0}}}let o=-1,s=-1,c=Number.POSITIVE_INFINITY,d=null;if(Array.isArray(t))for(let h=0;h<t.length;h++){const y=t[h];if(Array.isArray(y)){const v=this.findPointIndexByX(y,n);if(v!==-1)return i(h,v),!0;const S=this.findNearestPointIndexByX(y,n);if(S!==-1){const T=Hu(y[S]);let w=Number.POSITIVE_INFINITY;typeof n=="number"&&typeof T=="number"?(w=Math.abs(T-n),w<c&&(c=w,o=h,s=S,d="numeric")):typeof n=="string"&&typeof T=="string"?o===-1&&(o=h,s=S,d="categorical"):o===-1&&(o=h,s=S,d="generic")}}}if(o!==-1&&s!==-1){const h=t[o];if(Array.isArray(h)&&Hu(h[s]),d!==null)return i(o,s),!0}return!1}moveToXValueInValues(t,n,i){let o=-1,s=-1,c=Number.POSITIVE_INFINITY,d=null;for(let h=0;h<t.length;h++)for(let y=0;y<t[h].length;y++){const v=t[h][y],S=this.extractXFromValue(v);if(S===n)return i(h,y),!0;if(typeof n=="number"&&typeof S=="number"){const T=Math.abs(S-n);T<c&&(c=T,o=h,s=y,d="numeric")}else typeof n=="string"&&typeof S=="string"?o===-1&&(o=h,s=y,d="categorical"):o===-1&&(o=h,s=y,d="generic")}return o!==-1&&s!==-1?(this.extractXFromValue(t[o][s]),i(o,s),!0):!1}extractXFromPoint(t){return jV(t)?t.x:null}extractXFromValue(t){return VV(t)?t.x:BV(t)?t:null}findPointIndexByX(t,n){return t.findIndex(i=>i.x===n)}isValidPosition(t,n,i){return n>=0&&n<t.length&&i>=0&&i<t[n].length}findNearestPointIndexByX(t,n){if(typeof n=="number"){let i=-1,o=Number.POSITIVE_INFINITY;for(let s=0;s<t.length;s++){const c=Hu(t[s]);if(typeof c=="number"){const d=Math.abs(c-n);d<o&&(o=d,i=s)}else if(typeof c=="string"){const d=Number(c);if(!Number.isNaN(d)){const h=Math.abs(d-n);h<o&&(o=h,i=s)}}}if(i!==-1)return Hu(t[i]),i}else if(typeof n=="string"){for(let o=0;o<t.length;o++)if(Hu(t[o])===n)return o;const i=Number(n);if(!Number.isNaN(i)){let o=-1,s=Number.POSITIVE_INFINITY;for(let c=0;c<t.length;c++){const d=Hu(t[c]);if(typeof d=="number"){const h=Math.abs(d-i);h<s&&(s=h,o=c)}else if(typeof d=="string"){const h=Number(d);if(!Number.isNaN(h)){const y=Math.abs(h-i);y<s&&(s=y,o=c)}}}if(o!==-1)return Hu(t[o]),o}for(let o=0;o<t.length;o++)if(typeof Hu(t[o])=="string")return o}return t.length>0?(Hu(t[0]),0):-1}dispose(){}notifyLayerSwitch(t,n){if(n.state.empty)n.notifyStateUpdate();else{const i=t.getRow()+1,o=t.getSize(),s={...n.state,isLayerSwitch:!0,index:i,size:o};n.notifyObserversWithState(s)}}}function PV(e){return e&&typeof e=="object"&&"x"in e&&"y"in e}function UV(e){return e&&typeof e=="object"&&typeof e.x=="number"&&typeof e.y=="number"}function $V(e){return e&&typeof e=="object"&&"xMin"in e&&"xMax"in e}function HV(e){return e&&typeof e=="object"&&"x"in e&&"y"in e}function qV(e){return e&&typeof e=="object"&&typeof e.x=="number"&&typeof e.y=="number"}function GV(e){return e&&typeof e=="object"&&"value"in e}function Hu(e){return e?PV(e)||UV(e)||HV(e)||qV(e)||$V(e)?e.x:GV(e)?e.value:null:null}var qu=(e=>(e.CLICK="click",e.DOM_LOADED="DOMContentLoaded",e.FOCUS_IN="focusin",e.FOCUS_OUT="focusout",e.MOUSE_ENTER="mouseenter",e.MOUSE_LEAVE="mouseleave",e.MOUSE_MOVE="mousemove",e.SELECTION_CHANGE="selectionchange",e.VISIBILITY_CHANGE="visibilitychange",e))(qu||{}),dn=(e=>(e.BRAILLE="BRAILLE",e.CHAT="CHAT",e.COMMAND_PALETTE="COMMAND_PALETTE",e.GO_TO_EXTREMA="GO_TO_EXTREMA",e.HELP="HELP",e.FIGURE_LABEL="FIGURE_LABEL",e.SUBPLOT="SUBPLOT",e.TRACE="TRACE",e.TRACE_LABEL="TRACE_LABEL",e.REVIEW="REVIEW",e.SETTINGS="SETTINGS",e))(dn||{});class Yc{constructor(){P(this,"listeners");P(this,"event",t=>(this.listeners.add(t),{dispose:()=>this.listeners.delete(t)}));this.listeners=new Set}dispose(){this.listeners.clear()}fire(t){for(const n of this.listeners)n(t)}}class me{constructor(){}}P(me,"ARTICLE","article"),P(me,"DIV","div"),P(me,"FIGURE","figure"),P(me,"IMAGE","img"),P(me,"INPUT","input"),P(me,"STYLE","style"),P(me,"TEXT_AREA","textarea"),P(me,"BRAILLE_TEXT_AREA","maidr-braille-textarea"),P(me,"MAIDR_ARTICLE","maidr-article"),P(me,"MAIDR_FIGURE","maidr-figure"),P(me,"MAIDR_HIGHLIGHT","maidr-highlight"),P(me,"REACT_CONTAINER","maidr-react-container"),P(me,"REVIEW_INPUT","maidr-review-input"),P(me,"TEXT_CONTAINER","maidr-text-container"),P(me,"MAIDR_INSTRUCTION","maidr-instruction"),P(me,"ROTOR_AREA","maidr-rotor-area"),P(me,"SR_ONLY_CLASS","maidr-sr-only"),P(me,"ARIA_LABEL","aria-label"),P(me,"CIRCLE_X","cx"),P(me,"CIRCLE_Y","cy"),P(me,"D","d"),P(me,"FILL","fill"),P(me,"MARGIN","margin"),P(me,"POINTS","points"),P(me,"RADIUS","r"),P(me,"ROLE","role"),P(me,"STROKE","stroke"),P(me,"STROKE_WIDTH","stroke-width"),P(me,"TITLE","title"),P(me,"VISIBILITY","visibility"),P(me,"X1","x1"),P(me,"X2","x2"),P(me,"Y1","y1"),P(me,"Y2","y2"),P(me,"MAIDR_SUBPLOT","subplot"),P(me,"MAIDR","maidr"),P(me,"MAIDR_JSON_SELECTOR",'[maidr^="{"]'),P(me,"AFTER_END","afterend"),P(me,"APPLICATION","application"),P(me,"ARE"," are "),P(me,"CIRCLE","circle"),P(me,"CLOSE_BRACKET","]"),P(me,"COMMA",","),P(me,"COMMA_SPACE",", "),P(me,"EMPTY",""),P(me,"HIDDEN","hidden"),P(me,"IS"," is "),P(me,"LINE","line"),P(me,"MAIDR_DATA","maidr-data"),P(me,"MAIDR_HIGHLIGHT_COLOR","#BADA55"),P(me,"NEW_LINE",`
|
|
342
|
+
`),P(me,"OPEN_BRACKET","["),P(me,"POLYLINE","polyline"),P(me,"SPACE"," "),P(me,"THROUGH"," through "),P(me,"TRANSPARENT","transparent"),P(me,"VISIBLE","visible"),P(me,"X","x"),P(me,"Y","y"),P(me,"HIGHLIGHT_BASE_COLOR",{r:255,g:255,b:255}),P(me,"HIGHLIGHT_CONTRAST_RATIO",3),P(me,"HIGHLIGHT_COLOR_RATIO",.6),P(me,"HIGHLIGHT_MAX_COLOR",255),P(me,"HIGHER_VALUE_MODE","HIGHER VALUE NAVIGATION"),P(me,"LOWER_VALUE_MODE","LOWER VALUE NAVIGATION"),P(me,"DATA_MODE","DATA POINT NAVIGATION"),P(me,"NO_OF_ROTOR_NAV_MODES",3);class jw{constructor(){P(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 i=this.items.lastIndexOf(t);return i!==-1?(this.items.splice(i,n),!0):!1}isEmpty(){return this.items.length===0}size(){return this.items.length}clear(){this.items.length=0}}const Pw=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Uw(e,t,n,i){e.addEventListener?e.addEventListener(t,n,i):e.attachEvent&&e.attachEvent("on".concat(t),n)}function dv(e,t,n,i){e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent&&e.detachEvent("on".concat(t),n)}function RC(e,t){const n=t.slice(0,t.length-1);for(let i=0;i<n.length;i++)n[i]=e[n[i].toLowerCase()];return n}function _C(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");const t=e.split(",");let n=t.lastIndexOf("");for(;n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function FV(e,t){const n=e.length>=t.length?e:t,i=e.length>=t.length?t:e;let o=!0;for(let s=0;s<n.length;s++)i.indexOf(n[s])===-1&&(o=!1);return o}const hv={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Pw?173:189,"=":Pw?61:187,";":Pw?59:186,"'":222,"[":219,"]":221,"\\":220},ru={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},pv={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},va={16:!1,18:!1,17:!1,91:!1},ni={};for(let e=1;e<20;e++)hv["f".concat(e)]=111+e;let Pr=[],mv=null,DC="all";const Xc=new Map,gv=e=>hv[e.toLowerCase()]||ru[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),YV=e=>Object.keys(hv).find(t=>hv[t]===e),XV=e=>Object.keys(ru).find(t=>ru[t]===e);function NC(e){DC=e||"all"}function yv(){return DC||"all"}function WV(){return Pr.slice(0)}function QV(){return Pr.map(e=>YV(e)||XV(e)||String.fromCharCode(e))}function KV(){const e=[];return Object.keys(ni).forEach(t=>{ni[t].forEach(n=>{let{key:i,scope:o,mods:s,shortcut:c}=n;e.push({scope:o,shortcut:c,mods:s,keys:i.split("+").map(d=>gv(d))})})}),e}function ZV(e){const t=e.target||e.srcElement,{tagName:n}=t;let i=!0;const o=n==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(o||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(i=!1),i}function JV(e){return typeof e=="string"&&(e=gv(e)),Pr.indexOf(e)!==-1}function eB(e,t){let n,i;e||(e=yv());for(const o in ni)if(Object.prototype.hasOwnProperty.call(ni,o))for(n=ni[o],i=0;i<n.length;)n[i].scope===e?n.splice(i,1).forEach(c=>{let{element:d}=c;return $w(d)}):i++;yv()===e&&NC(t||"all")}function tB(e){let t=e.keyCode||e.which||e.charCode;const n=Pr.indexOf(t);if(n>=0&&Pr.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Pr.splice(0,Pr.length),(t===93||t===224)&&(t=91),t in va){va[t]=!1;for(const i in ru)ru[i]===t&&(Ba[i]=!1)}}function kC(e){if(typeof e>"u")Object.keys(ni).forEach(o=>{Array.isArray(ni[o])&&ni[o].forEach(s=>V5(s)),delete ni[o]}),$w(null);else if(Array.isArray(e))e.forEach(o=>{o.key&&V5(o)});else if(typeof e=="object")e.key&&V5(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];let[o,s]=n;typeof o=="function"&&(s=o,o=""),V5({key:e,scope:o,method:s,splitKey:"+"})}}const V5=e=>{let{key:t,scope:n,method:i,splitKey:o="+"}=e;_C(t).forEach(c=>{const d=c.split(o),h=d.length,y=d[h-1],v=y==="*"?"*":gv(y);if(!ni[v])return;n||(n=yv());const S=h>1?RC(ru,d):[],T=[];ni[v]=ni[v].filter(w=>{const R=(i?w.method===i:!0)&&w.scope===n&&FV(w.mods,S);return R&&T.push(w.element),!R}),T.forEach(w=>$w(w))})};function zC(e,t,n,i){if(t.element!==i)return;let o;if(t.scope===n||t.scope==="all"){o=t.mods.length>0;for(const s in va)Object.prototype.hasOwnProperty.call(va,s)&&(!va[s]&&t.mods.indexOf(+s)>-1||va[s]&&t.mods.indexOf(+s)===-1)&&(o=!1);(t.mods.length===0&&!va[16]&&!va[18]&&!va[17]&&!va[91]||o||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(Pr),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function IC(e,t){const n=ni["*"];let i=e.keyCode||e.which||e.charCode;if(!Ba.filter.call(this,e))return;if((i===93||i===224)&&(i=91),Pr.indexOf(i)===-1&&i!==229&&Pr.push(i),["metaKey","ctrlKey","altKey","shiftKey"].forEach(d=>{const h=pv[d];e[d]&&Pr.indexOf(h)===-1?Pr.push(h):!e[d]&&Pr.indexOf(h)>-1?Pr.splice(Pr.indexOf(h),1):d==="metaKey"&&e[d]&&(Pr=Pr.filter(y=>y in pv||y===i))}),i in va){va[i]=!0;for(const d in ru)if(Object.prototype.hasOwnProperty.call(ru,d)){const h=pv[ru[d]];Ba[d]=e[h]}if(!n)return}for(const d in va)Object.prototype.hasOwnProperty.call(va,d)&&(va[d]=e[pv[d]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Pr.indexOf(17)===-1&&Pr.push(17),Pr.indexOf(18)===-1&&Pr.push(18),va[17]=!0,va[18]=!0);const o=yv();if(n)for(let d=0;d<n.length;d++)n[d].scope===o&&(e.type==="keydown"&&n[d].keydown||e.type==="keyup"&&n[d].keyup)&&zC(e,n[d],o,t);if(!(i in ni))return;const s=ni[i],c=s.length;for(let d=0;d<c;d++)if((e.type==="keydown"&&s[d].keydown||e.type==="keyup"&&s[d].keyup)&&s[d].key){const h=s[d],{splitKey:y}=h,v=h.key.split(y),S=[];for(let T=0;T<v.length;T++)S.push(gv(v[T]));S.sort().join("")===Pr.sort().join("")&&zC(e,h,o,t)}}function Ba(e,t,n){Pr=[];const i=_C(e);let o=[],s="all",c=document,d=0,h=!1,y=!0,v="+",S=!1,T=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(c=t.element),t.keyup&&(h=t.keyup),t.keydown!==void 0&&(y=t.keydown),t.capture!==void 0&&(S=t.capture),typeof t.splitKey=="string"&&(v=t.splitKey),t.single===!0&&(T=!0)),typeof t=="string"&&(s=t),T&&kC(e,s);d<i.length;d++)e=i[d].split(v),o=[],e.length>1&&(o=RC(ru,e)),e=e[e.length-1],e=e==="*"?"*":gv(e),e in ni||(ni[e]=[]),ni[e].push({keyup:h,keydown:y,scope:s,mods:o,shortcut:i[d],method:n,key:i[d],splitKey:v,element:c});if(typeof c<"u"&&window){if(!Xc.has(c)){const w=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return IC(R,c)},C=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;IC(R,c),tB(R)};Xc.set(c,{keydownListener:w,keyupListenr:C,capture:S}),Uw(c,"keydown",w,S),Uw(c,"keyup",C,S)}if(!mv){const w=()=>{Pr=[]};mv={listener:w,capture:S},Uw(window,"focus",w,S)}}}function nB(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(ni).forEach(n=>{ni[n].filter(o=>o.scope===t&&o.shortcut===e).forEach(o=>{o&&o.method&&o.method()})})}function $w(e){const t=Object.values(ni).flat();if(t.findIndex(i=>{let{element:o}=i;return o===e})<0){const{keydownListener:i,keyupListenr:o,capture:s}=Xc.get(e)||{};i&&o&&(dv(e,"keyup",o,s),dv(e,"keydown",i,s),Xc.delete(e))}if((t.length<=0||Xc.size<=0)&&(Object.keys(Xc).forEach(o=>{const{keydownListener:s,keyupListenr:c,capture:d}=Xc.get(o)||{};s&&c&&(dv(o,"keyup",c,d),dv(o,"keydown",s,d),Xc.delete(o))}),Xc.clear(),Object.keys(ni).forEach(o=>delete ni[o]),mv)){const{listener:o,capture:s}=mv;dv(window,"focus",o,s),mv=null}}const Hw={getPressedKeyString:QV,setScope:NC,getScope:yv,deleteScope:eB,getPressedKeyCodes:WV,getAllKeyCodes:KV,isPressed:JV,filter:ZV,trigger:nB,unbind:kC,keyMap:hv,modifier:ru,modifierMap:pv};for(const e in Hw)Object.prototype.hasOwnProperty.call(Hw,e)&&(Ba[e]=Hw[e]);if(typeof window<"u"){const e=window.hotkeys;Ba.noConflict=t=>(t&&window.hotkeys===Ba&&(window.hotkeys=e),Ba),window.hotkeys=Ba}function LC(e,t){return t?t===_t.HORIZONTAL||t==="horz"?`horizontal ${e}`:t===_t.VERTICAL||t==="vert"?`vertical ${e}`:e:e}class rB{constructor(t){P(this,"id");P(this,"instructionContext");P(this,"selectorList",[]);P(this,"plotContext");P(this,"scopeContext");P(this,"navigationService");P(this,"figure");P(this,"isRotorActive");this.figure=t,this.id=t.id,this.plotContext=new jw,this.scopeContext=new jw,this.navigationService=new Bw,this.isRotorActive=!1;const n=t.state;if(n.empty||n.size!==1){this.instructionContext=t,this.plotContext.push(t),this.scopeContext.push(dn.SUBPLOT);return}this.scopeContext.push(dn.TRACE);const i=t.activeSubplot.state;if(i.empty||i.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}setRotorEnabled(t){this.isRotorActive=t}isRotorEnabled(){return this.isRotorActive}get isMultiPanel(){const t=this.figure.state;return!t.empty&&t.size>1}get figureTitle(){const t=this.figure.state;return t.empty?"unavailable":t.title}get figureSubtitle(){const t=this.figure.state;return t.empty?"unavailable":t.subtitle}get figureCaption(){const t=this.figure.state;return t.empty?"unavailable":t.caption}toggleScope(t){this.scopeContext.clear(),this.scopeContext.push(t),Ba.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){const n=this.active;this.plotContext.pop();const i=this.active,o=this.navigationService.stepTraceInSubplot(i,t);o?this.plotContext.push(o):n&&this.plotContext.push(n)}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 i=n.activeSubplot.activeTrace;i.resetToInitialEntry(),this.plotContext.push(i),this.toggleScope(dn.TRACE)}}exitSubplot(){this.plotContext.size()>2&&(this.plotContext.pop(),this.plotContext.pop(),this.active.notifyStateUpdate(),this.toggleScope(dn.SUBPLOT))}getInstruction(t){const n=this.instructionContext.state;if(n.empty)return`No ${n.type} info available`;const i=t?"Click to activate.":me.EMPTY;switch(n.type){case"figure":return`This is a maidr figure containing ${n.size} subplots. ${i}
|
|
343
343
|
Use arrow keys to navigate subplots and press 'ENTER'.`;case"subplot":{const o=n.trace.empty?void 0:n.trace.orientation,s=LC(n.trace.traceType,o);return`This is a maidr plot containing ${n.size} layers, and
|
|
344
344
|
this is layer 1 of ${n.size}: ${s} plot. ${i}
|
|
345
345
|
Use Arrows to navigate data points. Toggle B for Braille, T for Text,
|
|
346
|
-
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: ${LC(o,n.orientation)}${s}. ${i} Use Arrows to navigate data points. Toggle B for Braille, T for Text, S for Sonification, and R for Review mode.`}}}}class B5{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 i=n.match(/^rgba?\((\d+),(\d+),(\d+)(?:,\d*(?:\.\d*)?)?\)$/);return i?{r:Number.parseInt(i[1],10),g:Number.parseInt(i[2],10),b:Number.parseInt(i[3],10)}:null}static invert(t){return{r:255-t.r,g:255-t.g,b:255-t.b}}static getContrastRatio(t,n){const i=this.calculateLuminance(t),o=this.calculateLuminance(n);return(Math.max(i,o)+.05)/(Math.min(i,o)+.05)}static calculateLuminance(t){const[n,i,o]=[t.r,t.g,t.b].map(s=>{const c=s/255;return c<=.03928?c/12.92:((c+.055)/1.055)**2.4});return .2126*n+.7152*i+.0722*o}static rgbToString(t){return`rgb(${t.r}, ${t.g}, ${t.b})`}static isEqual(t,n){const i=this.parse(t),o=this.parse(n);return!i||!o?!1:i.r===o.r&&i.g===o.g&&i.b===o.b}}class Ct{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((h,y)=>{const v=new Image;v.onload=()=>h(v),v.onerror=()=>y(new Error("Failed to load SVG image")),v.src=o}),c=document.createElement("canvas");[c.width,c.height]=[s.naturalWidth,s.naturalHeight];const d=c.getContext("2d");return d?(d.drawImage(s,0,0),c.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(i=>{if(!n)return i;const o=i.cloneNode(!0);return o.setAttribute(me.VISIBILITY,me.HIDDEN),i.insertAdjacentElement(me.AFTER_END,o),o})}static selectElement(t,n=!0){const i=document.querySelector(t);if(!n)return i;const o=i==null?void 0:i.cloneNode(!0);return o==null||o.setAttribute(me.VISIBILITY,me.HIDDEN),i==null||i.insertAdjacentElement(me.AFTER_END,o),o}static createEmptyElement(t="rect"){const n=document.createElementNS(this.SVG_NAMESPACE,t);return n.setAttribute(me.FILL,me.TRANSPARENT),n.setAttribute(me.STROKE,me.TRANSPARENT),n.setAttribute(me.VISIBILITY,me.HIDDEN),n}static createCircleElement(t,n,i){var y;const o=window.getComputedStyle(i),s=o.stroke||o.fill,c=o.strokeWidth||"2",d=Number.parseFloat(c)*2,h=document.createElementNS(this.SVG_NAMESPACE,me.CIRCLE);return h.setAttribute(me.CIRCLE_X,String(t)),h.setAttribute(me.CIRCLE_Y,String(n)),h.setAttribute(me.RADIUS,String(d)),h.setAttribute(me.FILL,s),h.setAttribute(me.STROKE,s),h.setAttribute(me.STROKE_WIDTH,c),h.setAttribute(me.VISIBILITY,me.HIDDEN),(y=i.parentElement)==null||y.appendChild(h),h}static createLineElement(t,n){const o=t.getBBox(),s=o.width||this.MIN_LINE_SPAN,c=o.height||this.MIN_LINE_SPAN,d=o.x+o.width/2,h=o.y+o.height/2;let y,v,S,T;switch(n){case"top":o.width===0?[y,v,S,T]=[d-s/2,o.y,d+s/2,o.y]:[y,v,S,T]=[o.x,o.y,o.x+o.width,o.y];break;case"bottom":o.width===0?[y,v,S,T]=[d-s/2,o.y+o.height,d+s/2,o.y+o.height]:[y,v,S,T]=[o.x,o.y+o.height,o.x+o.width,o.y+o.height];break;case"left":o.height===0?[y,v,S,T]=[o.x,h-c/2,o.x,h+c/2]:[y,v,S,T]=[o.x,o.y,o.x,o.y+o.height];break;case"right":o.height===0?[y,v,S,T]=[o.x+o.width,h-c/2,o.x+o.width,h+c/2]:[y,v,S,T]=[o.x+o.width,o.y,o.x+o.width,o.y+o.height];break}const w=window.getComputedStyle(t),C=document.createElementNS(this.SVG_NAMESPACE,me.LINE);return C.setAttribute(me.X1,String(y)),C.setAttribute(me.Y1,String(v)),C.setAttribute(me.X2,String(S)),C.setAttribute(me.Y2,String(T)),C.setAttribute(me.STROKE,w.stroke),C.setAttribute(me.STROKE_WIDTH,w.strokeWidth||"2"),C.setAttribute(me.VISIBILITY,me.HIDDEN),t.insertAdjacentElement(me.AFTER_END,C),C}static getAdjustedOpacity(t,n){const i=t?Number.parseFloat(t):Number.NaN;return!Number.isNaN(i)&&i>n?i.toString():"1"}static createHighlightElement(t,n){try{const S=t.getBBox();if(S.width===0&&S.height===0){const T=window.getComputedStyle(t),w=Number.parseFloat(T.strokeWidth||"2"),C=Math.max(w*1.5,4),R=document.createElementNS(this.SVG_NAMESPACE,"circle");return R.setAttribute("cx",String(S.x)),R.setAttribute("cy",String(S.y)),R.setAttribute("r",String(C)),R.setAttribute(me.FILL,n),R.setAttribute(me.STROKE,n),R.setAttribute(me.STROKE_WIDTH,"2"),R.setAttribute(me.VISIBILITY,me.VISIBLE),t.insertAdjacentElement(me.AFTER_END,R),R}}catch{}const i=t.cloneNode(!0),o=t.tagName.toLowerCase(),s=o===me.POLYLINE||o===me.LINE,c=window.getComputedStyle(t),d=s?c.getPropertyValue(me.STROKE):c.getPropertyValue(me.FILL),h=this.getHighlightColor(d,n),y=c.getPropertyValue("fill-opacity"),v=c.getPropertyValue("stroke-opacity");if(i.style.fillOpacity=this.getAdjustedOpacity(y,this.MIN_VISIBLE_FILL_OPACITY),i.style.strokeOpacity=this.getAdjustedOpacity(v,this.MIN_VISIBLE_STROKE_OPACITY),i.setAttribute(me.VISIBILITY,me.VISIBLE),i.setAttribute(me.STROKE,h),i.setAttribute(me.FILL,h),i.style.fill=h,i.style.stroke=h,s){const S=window.getComputedStyle(i).getPropertyValue(me.STROKE_WIDTH),T=S.match(/^([0-9.]+)([a-z%]*)$/i);if(T){const w=Number.parseFloat(T[1]),C=T[2]||"";i.setAttribute(me.STROKE_WIDTH,`${w+this.STROKE_WIDTH_HIGHLIGHT_INCREASE}${C}`)}else{const w=Number.parseFloat(S),C=Number.isNaN(w)?this.STROKE_WIDTH_HIGHLIGHT_INCREASE:w+this.STROKE_WIDTH_HIGHLIGHT_INCREASE;i.setAttribute(me.STROKE_WIDTH,`${C}`)}}return t.insertAdjacentElement(me.AFTER_END,i),i}static getHighlightColor(t,n){const i=B5.parse(t);if(!i||!(B5.getContrastRatio(i,me.HIGHLIGHT_BASE_COLOR)<me.HIGHLIGHT_CONTRAST_RATIO))return n;const c={...i};return i.r===i.g&&i.g===i.b?(c.r=Math.min(me.HIGHLIGHT_MAX_COLOR,Math.floor(i.r*me.HIGHLIGHT_COLOR_RATIO)),c.g=Math.min(me.HIGHLIGHT_MAX_COLOR,Math.floor(i.g*me.HIGHLIGHT_COLOR_RATIO)),c.b=Math.min(me.HIGHLIGHT_MAX_COLOR,Math.floor(i.b*me.HIGHLIGHT_COLOR_RATIO))):i.r>=i.g&&i.r>=i.b?c.r=Math.min(me.HIGHLIGHT_MAX_COLOR,Math.floor(i.r*me.HIGHLIGHT_COLOR_RATIO)):i.g>=i.r&&i.g>=i.b?c.g=Math.min(me.HIGHLIGHT_MAX_COLOR,Math.floor(i.g*me.HIGHLIGHT_COLOR_RATIO)):c.b=Math.min(me.HIGHLIGHT_MAX_COLOR,Math.floor(i.b*me.HIGHLIGHT_COLOR_RATIO)),B5.rgbToString(c)}static getContrastingColorForElement(t){const n=window.getComputedStyle(t).fill||"rgb(255,255,255)",i=B5.parse(n);return i?(.2126*i.r+.7152*i.g+.0722*i.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,i){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)")&&(i?s=window.getComputedStyle(i).getPropertyValue("fill"):s=n);const c=this.getHighlightColor(s,n);o.setAttribute("stroke",c),o.setAttribute("stroke-width","4")}}static removeSubplotHighlightSvg(t){const n=t.querySelector("rect, path");n&&(n.removeAttribute("stroke"),n.removeAttribute("stroke-width"))}}P(Ct,"SVG_NAMESPACE","http://www.w3.org/2000/svg"),P(Ct,"MIN_LINE_SPAN",10),P(Ct,"MIN_VISIBLE_FILL_OPACITY",.01),P(Ct,"MIN_VISIBLE_STROKE_OPACITY",.01),P(Ct,"STROKE_WIDTH_HIGHLIGHT_INCREASE",2);const iB="unavailable",aB="X",oB="Y",lB="unavailable";class qw{constructor(){P(this,"observers");P(this,"isWarning");this.observers=new Array,this.isWarning=!1}dispose(){this.observers.length=0}notifyRotorBounds(){this.isWarning=!0,this.notifyStateUpdate(),this.isWarning=!1}get isInitialEntry(){return this.movable.isInitialEntry}set isInitialEntry(t){this.movable.isInitialEntry=t}get isOutOfBounds(){return this.movable.isOutOfBounds}set isOutOfBounds(t){this.movable.isOutOfBounds=t}get row(){return this.movable.row}get col(){return this.movable.col}set row(t){this.movable.row=t}set col(t){this.movable.col=t}getSafeIndices(){const t=this.row>=0&&this.row<this.dimension.rows?this.row:0,n=this.col>=0&&this.col<this.dimension.cols?this.col:0;return{row:t,col:n}}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyStateUpdate(){const t=this.state;this.observers.forEach(n=>n.update(t))}notifyOutOfBounds(){const t=this.outOfBoundsState;this.observers.forEach(n=>n.update(t))}moveOnce(t){const n=this.movable.moveOnce(t);return n?this.notifyStateUpdate():this.notifyOutOfBounds(),n}moveToExtreme(t){const n=this.movable.moveToExtreme(t);return n?this.notifyStateUpdate():this.notifyOutOfBounds(),n}moveToIndex(t,n){const i=this.movable.moveToIndex(t,n);return i?this.notifyStateUpdate():this.notifyOutOfBounds(),i}isMovable(t){return this.movable.isMovable(t)}notifyObserversWithState(t){for(const n of this.observers)n.update(t)}moveToNextCompareValue(t,n){return this.notifyRotorBounds(),!1}compare(t,n,i){return i==="lower"?t<n:i==="higher"?t>n:!1}moveUpRotor(t){throw new Error("Move up function is not defined for this trace")}moveDownRotor(t){throw new Error("Move down function is not defined for this trace")}moveLeftRotor(t){throw new Error("Move left function is not defined for this trace")}moveRightRotor(t){throw new Error("Move right function is not defined for this trace")}moveToPoint(t,n){}}class jo extends qw{constructor(n){var i,o,s;super();P(this,"id");P(this,"type");P(this,"title");P(this,"xAxis");P(this,"yAxis");P(this,"fill");P(this,"navigationService");P(this,"layer");this.layer=n,this.navigationService=new Bw,this.id=n.id,this.type=n.type,this.title=n.title??iB,this.xAxis=((i=n.axes)==null?void 0:i.x)??aB,this.yAxis=((o=n.axes)==null?void 0:o.y)??oB,this.fill=((s=n.axes)==null?void 0:s.fill)??lB}dispose(){this.highlightValues&&(this.highlightValues.forEach(n=>n.forEach(i=>{(Array.isArray(i)?i:[i]).forEach(s=>s.remove())})),this.highlightValues.length=0),super.dispose()}get state(){return this.isWarning?{empty:!0,type:"trace",traceType:this.type,audio:{y:this.row,x:this.col,rows:this.dimension.rows,cols:this.dimension.cols},warning:!0}:{empty:!1,type:"trace",layerId:this.id,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,orientation:this.layer.orientation}}get outOfBoundsState(){return{empty:!0,type:"trace",traceType:this.type,audio:{y:this.row,x:this.col,rows:this.dimension.rows,cols:this.dimension.cols}}}get highlight(){return this.highlightValues===null||this.isInitialEntry?this.outOfBoundsState:{empty:!1,elements:this.highlightValues[this.row][this.col]}}getAllHighlightElements(){if(this.highlightValues===null)return[];const n=[];for(const i of this.highlightValues)for(const o of i)Array.isArray(o)?n.push(...o):o&&n.push(o);return n}getAllOriginalElements(){if(this.highlightValues===null)return[];const n=[];for(const i of this.highlightValues)for(const o of i){const s=Array.isArray(o)?o:o?[o]:[];for(const c of s){const d=c.previousElementSibling;d&&d.tagName===c.tagName&&d.getAttribute("visibility")!=="hidden"&&n.push(d)}}return n}getAudioGroupIndex(){return this.values&&this.values.length>1?{groupIndex:this.row}:{}}get autoplay(){return{UPWARD:this.dimension.rows,DOWNWARD:this.dimension.rows,FORWARD:this.dimension.cols,BACKWARD:this.dimension.cols}}resetToInitialEntry(){this.isInitialEntry=!0,this.row=0,this.col=0}get 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 i=this.getPointsArray();if(this.isValidPointsArray(i))return this.navigationService.moveToXValueInPoints(i,n,this.moveToIndex.bind(this))}if(this.hasValuesArray()){const i=this.values;if(this.isValidValuesArray(i))return this.navigationService.moveToXValueInValues(i,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,i){const o=this.findNearestPoint(n,i);if(o&&this.isPointInBounds(n,i,o)){if(this.row===o.row&&this.col===o.col)return;this.moveToIndex(o.row,o.col)}}isPointInBounds(n,i,{element:o,row:s,col:c}){const d=o.getBoundingClientRect();let h=12;return(this.type===On.HEATMAP||this.type===On.BAR||this.type===On.STACKED||this.type===On.HISTOGRAM)&&(h=0),n>=d.x-h&&n<=d.x+d.width+h&&i>=d.y-h&&i<=d.y+d.height+h}}class Oi{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],i=t[0];for(let o=1;o<t.length;o++){const s=t[o];s<n&&(n=s),s>i&&(i=s)}return{min:n,max:i}}static minMaxFrom2D(t){const n=t.flat();return this.minMax(n)}}class Gw{constructor(t){P(this,"isInitialEntry");P(this,"isOutOfBounds");P(this,"row");P(this,"col");this.isInitialEntry=(t==null?void 0:t.isInitialEntry)??!0,this.isOutOfBounds=!1,this.row=(t==null?void 0:t.row)??0,this.col=(t==null?void 0:t.col)??0}moveToIndex(t,n){return this.isMovable([t,n])?(this.row=t,this.col=n,this.isInitialEntry=!1,!0):!1}}class Wc extends Gw{constructor(n,i){super(i);P(this,"elements");this.elements=n}moveOnce(n){if(this.isInitialEntry)return this.handleInitialEntry(),!0;if(!this.isMovable(n))return!1;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}return!0}moveToExtreme(n){switch(this.isInitialEntry&&this.handleInitialEntry(),n){case"UPWARD":this.row=this.elements.length-1;break;case"DOWNWARD":this.row=0;break;case"FORWARD":this.col=this.elements[this.row].length-1;break;case"BACKWARD":this.col=0;break}return!0}moveToIndex(n,i){return this.isMovable([n,i])?(this.row=n,this.col=i,this.isInitialEntry=!1,!0):!1}isMovable(n){if(Array.isArray(n)){const[i,o]=n;return i>=0&&i<this.elements.length&&o>=0&&o<this.elements[this.row].length}switch(n){case"UPWARD":return this.row<this.elements.length-1;case"DOWNWARD":return this.row>0;case"FORWARD":return this.col<this.elements[this.row].length-1;case"BACKWARD":return this.col>0}}handleInitialEntry(){this.isInitialEntry=!1,this.row=Math.max(0,Math.min(this.row,this.elements.length-1)),this.col=Math.max(0,Math.min(this.col,this.elements[this.row].length-1))}}class sB extends Gw{constructor(n,i){super(i);P(this,"graph");this.graph=n}moveOnce(n){var s;if(this.isInitialEntry)return this.handleInitialEntry(),!0;const i=(s=this.graph[this.row])==null?void 0:s[this.col];if(!i)return!1;let o=null;switch(n){case"UPWARD":o=i.up;break;case"DOWNWARD":o=i.down;break;case"FORWARD":o=i.right;break;case"BACKWARD":o=i.left;break}return o?(this.row=o.row,this.col=o.col,!0):!1}moveToExtreme(n){var s;this.isInitialEntry&&this.handleInitialEntry();const i=(s=this.graph[this.row])==null?void 0:s[this.col];if(!i)return!1;let o=null;switch(n){case"UPWARD":o=i.top;break;case"DOWNWARD":o=i.bottom;break;case"FORWARD":o=i.end;break;case"BACKWARD":o=i.start;break}return o?(this.row=o.row,this.col=o.col,!0):!1}isMovable(n){var o,s,c;if(Array.isArray(n)){const[d,h]=n;return((o=this.graph[d])==null?void 0:o[h])!==null&&((s=this.graph[d])==null?void 0:s[h])!==void 0}const i=(c=this.graph[this.row])==null?void 0:c[this.col];if(!i)return!1;switch(n){case"UPWARD":return i.up!==null;case"DOWNWARD":return i.down!==null;case"FORWARD":return i.right!==null;case"BACKWARD":return i.left!==null}}handleInitialEntry(){this.isInitialEntry=!1,this.isMovable([0,0])?(this.row=0,this.col=0):(this.row=-1,this.col=-1)}}class uB extends Gw{constructor(n,i){super();P(this,"mode");P(this,"xPoints");P(this,"yPoints");P(this,"xValues");P(this,"yValues");this.mode="col",this.xPoints=n,this.yPoints=i,this.xValues=n.map(o=>o.x),this.yValues=i.map(o=>o.y)}dispose(){this.xValues.length=0,this.yValues.length=0}moveOnce(n){if(this.isInitialEntry)return this.handleInitialEntry(),!0;if(!this.isMovable(n))return!1;if(this.mode==="col")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}}return!0}moveToExtreme(n){if(this.isInitialEntry&&this.handleInitialEntry(),this.mode==="col")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}return!0}isMovable(n){if(Array.isArray(n))return!1;if(this.mode==="col")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}}toggleNavigation(){if(this.mode==="col"){const n=this.xPoints[this.col],i=n.y[Math.floor(n.y.length/2)];this.row=this.yValues.indexOf(i),this.mode="row"}else{const n=this.yPoints[this.row],i=n.x[Math.floor(n.x.length/2)];this.col=this.xValues.indexOf(i),this.mode="col"}}handleInitialEntry(){this.isInitialEntry=!1,this.mode==="col"?(this.col=Math.max(0,Math.min(this.col,this.xPoints.length-1)),this.row=Math.max(0,Math.min(this.row,this.xPoints[this.col].y.length-1))):(this.row=Math.max(0,Math.min(this.row,this.yPoints.length-1)),this.col=Math.max(0,Math.min(this.col,this.yPoints[this.row].x.length-1)))}}class Fw extends jo{constructor(n,i){super(n);P(this,"movable");P(this,"points");P(this,"barValues");P(this,"highlightValues");P(this,"highlightCenters");P(this,"orientation");P(this,"min");P(this,"max");P(this,"supportsExtrema",!0);this.points=i,this.orientation=n.orientation??Nt.VERTICAL,this.barValues=i.map(o=>o.map(s=>this.orientation===Nt.VERTICAL?Number(s.y):Number(s.x))),this.min=this.barValues.map(o=>Oi.safeMin(o)),this.max=this.barValues.map(o=>Oi.safeMax(o)),this.highlightValues=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new Wc(this.points)}dispose(){this.points.length=0,this.min.length=0,this.max.length=0,super.dispose()}get audio(){const n=this.orientation===Nt.VERTICAL,i=n?this.barValues[this.row][this.col]:this.barValues[this.col][this.row];return{freq:{min:Oi.safeMin(this.min),max:Oi.safeMax(this.max),raw:i},panning:{x:n?this.col:this.row,y:n?this.row:this.col,rows:n?this.barValues.length:this.barValues[this.col].length,cols:n?this.barValues[this.row].length:this.barValues.length},group:n?this.row:this.col}}get braille(){return{empty:!1,id:this.id,values:this.barValues,min:this.min,max:this.max,row:this.row,col:this.col}}get text(){const n=this.orientation===Nt.VERTICAL,i=this.points[this.row][this.col],o=n?this.xAxis:this.yAxis,s=n?i.x:i.y,c=n?this.yAxis:this.xAxis,d=n?i.y:i.x;return{main:{label:o,value:s},cross:{label:c,value:d},mainAxis:n?"x":"y",crossAxis:n?"y":"x"}}get dimension(){return{rows:this.barValues.length,cols:this.barValues[this.row].length}}get values(){return this.barValues}mapToSvgElements(n){if(!n)return null;const o=[Ct.selectAllElements(n)];if(o.length!==this.points.length)return null;for(let s=0;s<this.points.length;s++)if(o[s].length!==this.points[s].length)if(o[s].length<this.points[s].length){const c=[];let d=0;for(let h=0;h<this.points[s].length;h++)(this.orientation===Nt.VERTICAL?Number(this.points[s][h].y):Number(this.points[s][h].x))!==0&&d<o[s].length?c.push(o[s][d++]):c.push(Ct.createEmptyElement());o[s]=c}else return null;return o}mapSvgElementsToCenters(){const n=this.highlightValues;if(!n)return null;const i=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const c=n[o][s],d=Array.isArray(c)?c[0]:c,h=d.getBoundingClientRect();d&&i.push({x:h.x+h.width/2,y:h.y+h.height/2,row:o,col:s,element:d})}return i}findNearestPoint(n,i){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 c=this.highlightValues[o][s],d=Array.isArray(c)?c[0]:c,h=d.getBoundingClientRect();if(n>=h.x&&n<=h.x+h.width&&i>=h.y&&i<=h.y+h.height)return{element:d,row:o,col:s}}return null}}class cB extends Fw{isPointInBounds(t,n,{element:i,row:o,col:s}){const c=i.getBoundingClientRect();return t>=c.x&&t<=c.x+c.width&&n>=c.y&&n<=c.y+c.height}constructor(t){super(t,[t.data])}getExtremaTargets(){const t=[],n=this.row;if(n<0||n>=this.barValues.length)return t;const i=this.barValues[n];if(!i||i.length===0)return t;const o=this.min[n],s=this.max[n],c=i.indexOf(s),d=i.indexOf(o);return t.push({label:`Max Bar at ${this.getPointLabel(c)}`,value:s,pointIndex:c,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===Nt.VERTICAL?`${n.x}`:`${n.y}`}return`Point ${t}`}updateVisualPointPosition(){const{row:t,col:n}=this.getSafeIndices();this.row=t,this.col=n}moveToNextCompareValue(t,n){const i=this.row;if(i<0||i>=this.barValues.length)return!1;const o=this.barValues[i];if(!o||o.length===0)return!1;const s=this.col,c=t==="right"?1:-1;let d=s+c;for(;d>=0&&d<o.length;){if(this.compare(o[d],o[s],n))return this.col=d,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;d+=c}return this.notifyRotorBounds(),!1}}const aa={LOWER_OUTLIER:"Lower outlier(s)",MIN:"Minimum",Q1:"25%",Q2:"50%",Q3:"75%",MAX:"Maximum",UPPER_OUTLIER:"Upper outlier(s)",MEAN:"Mean"};class fB extends jo{constructor(n){var d;super(n);P(this,"supportsExtrema",!1);P(this,"movable");P(this,"points");P(this,"boxValues");P(this,"highlightValues");P(this,"highlightCenters");P(this,"orientation");P(this,"sections");P(this,"min");P(this,"max");this.orientation=n.orientation??Nt.VERTICAL,this.orientation===Nt.HORIZONTAL?this.points=[...n.data].reverse():this.points=n.data;const{sections:i,accessors:o}=this.buildStandardBoxDataSections();this.sections=i,this.boxValues=this.computeBoxValues(o);const c=this.boxValues.map(h=>h.flatMap(y=>Array.isArray(y)?y:[y])).map(h=>h.filter(y=>!Number.isNaN(y)));this.min=Oi.minFrom2D(c),this.max=Oi.maxFrom2D(c),this.highlightValues=this.mapToSvgElements(n.selectors),this.orientation===Nt.HORIZONTAL&&((d=this.highlightValues)==null||d.reverse()),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new Wc(this.boxValues,{row:0})}computeBoxValues(n){return this.orientation===Nt.HORIZONTAL?this.points.map(i=>n.map(o=>o(i))):n.map(i=>this.points.map(o=>i(o)))}buildStandardBoxDataSections(){return{sections:[aa.LOWER_OUTLIER,aa.MIN,aa.Q1,aa.Q2,aa.Q3,aa.MAX,aa.UPPER_OUTLIER],accessors:[n=>n.lowerOutliers,n=>n.min,n=>n.q1,n=>n.q2,n=>n.q3,n=>n.max,n=>n.upperOutliers]}}dispose(){this.points.length=0,this.sections.length=0,super.dispose()}moveToIndex(n,i){return super.moveToIndex(n,i)}get values(){return this.boxValues}get audio(){const n=this.orientation===Nt.HORIZONTAL,i=this.boxValues[this.row][this.col],o=n?this.col:this.row,s=Array.isArray(i)?i.length===0?o:i[i.length-1]-this.min:Number.isNaN(i)?o:i-this.min;return{freq:{min:this.min,max:this.max,raw:this.boxValues[this.row][this.col]},panning:{x:n?s:this.row,y:n?this.row:s,rows:n?this.boxValues.length:this.max-this.min,cols:n?this.max-this.min:this.boxValues.length}}}get braille(){const n=this.orientation===Nt.HORIZONTAL,i=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:i,col:o}}get text(){const n=this.orientation===Nt.HORIZONTAL,i=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],c=n?this.xAxis:this.yAxis,d=this.boxValues[this.row][this.col];return{main:{label:o,value:i.fill},cross:{label:c,value:d},section:s,mainAxis:n?"y":"x",crossAxis:n?"x":"y"}}get dimension(){const n=this.orientation===Nt.HORIZONTAL;return{rows:n?this.boxValues.length:this.boxValues[this.row].length,cols:n?this.boxValues[this.row].length:this.boxValues.length}}mapToSvgElements(n){if(!n||n.length!==this.points.length)return null;const i=this.orientation===Nt.VERTICAL,o=new Array;if(i)for(let c=0;c<this.sections.length;c++)o.push(Array.from({length:n.length}));const s=[];return n.forEach(c=>{var R,_;const d=((R=c.lowerOutliers)==null?void 0:R.flatMap(N=>Ct.selectAllElements(N,!1)))??[],h=((_=c.upperOutliers)==null?void 0:_.flatMap(N=>Ct.selectAllElements(N,!1)))??[],y=Ct.selectElement(c.min,!1),v=Ct.selectElement(c.max,!1),S=Ct.selectElement(c.iq,!1),T=Ct.selectElement(c.q2,!1),w=c.q1?Ct.selectElement(c.q1,!1):null,C=c.q3?Ct.selectElement(c.q3,!1):null;s.push({lowerOutliers:d,upperOutliers:h,min:y,max:v,iq:S,q2:T,q1Direct:w,q3Direct:C})}),s.forEach((c,d)=>{var _;const h=c.lowerOutliers.map(N=>{const z=N.cloneNode(!0);return z.setAttribute(me.VISIBILITY,me.HIDDEN),N.insertAdjacentElement(me.AFTER_END,z),z}),y=c.upperOutliers.map(N=>{const z=N.cloneNode(!0);return z.setAttribute(me.VISIBILITY,me.HIDDEN),N.insertAdjacentElement(me.AFTER_END,z),z}),v=this.cloneElementOrEmpty(c.min),S=this.cloneElementOrEmpty(c.max),T=this.cloneElementOrEmpty(c.q2);let w,C;if(c.q1Direct&&c.q3Direct)w=this.cloneElementOrEmpty(c.q1Direct),C=this.cloneElementOrEmpty(c.q3Direct);else{const N=((_=this.layer.domMapping)==null?void 0:_.iqrDirection)==="reverse";[w,C]=c.iq?i?N?[Ct.createLineElement(c.iq,"top"),Ct.createLineElement(c.iq,"bottom")]:[Ct.createLineElement(c.iq,"bottom"),Ct.createLineElement(c.iq,"top")]:[Ct.createLineElement(c.iq,"left"),Ct.createLineElement(c.iq,"right")]:[Ct.createEmptyElement("line"),Ct.createEmptyElement("line")]}const R=[h,v,w,T,C,S,y];i?R.forEach((N,z)=>{o[z][d]=N}):o.push(R)}),o}cloneElementOrEmpty(n){if(!n)return Ct.createEmptyElement();const i=n.cloneNode(!0);return i.setAttribute(me.VISIBILITY,me.HIDDEN),n.insertAdjacentElement(me.AFTER_END,i),i}moveToNextCompareValue(n,i){const o=this.row;if(o<0||o>=this.boxValues.length)return!1;let s=[],c=0;if(n==="left"||n==="right"?(s=this.boxValues[this.row],c=this.col):(s=this.boxValues.map(y=>y[this.col]),c=this.row),s.length<=0)return!1;const d=n==="right"||n==="up"?1:-1;let h=c+d;for(;h>=0&&h<s.length;){const y=s[c],v=s[h];if(Array.isArray(v)||Array.isArray(y))return!0;if(this.compare(v,y,i))return this.set_point(n,h),this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;h+=d}return this.notifyRotorBounds(),!1}set_point(n,i){n==="left"||n==="right"?this.col=i:this.row=i}moveUpRotor(n){return this.orientation===Nt.VERTICAL?(this.moveOnce("UPWARD"),!0):this.moveToNextCompareValue("up",n)}moveDownRotor(n){return this.orientation===Nt.VERTICAL?(this.moveOnce("DOWNWARD"),!0):this.moveToNextCompareValue("down",n)}moveLeftRotor(n){return this.orientation===Nt.HORIZONTAL?(this.moveOnce("BACKWARD"),!0):this.moveToNextCompareValue("left",n)}moveRightRotor(n){return this.orientation===Nt.HORIZONTAL?(this.moveOnce("FORWARD"),!0):this.moveToNextCompareValue("right",n)}mapSvgElementsToCenters(){const n=this.highlightValues;if(!n)return null;const i=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const c=n[o][s],d=Array.isArray(c)?c[0]:c;if(d){const h=d.getBoundingClientRect();i.push({x:h.x+h.width/2,y:h.y+h.height/2,row:o,col:s,element:d})}}return i}findNearestPoint(n,i){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let c=0;c<this.highlightCenters.length;c++){const d=this.highlightCenters[c],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=c)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}moveToPoint(n,i){}}const dB="trend",VC=100,hB=["volatility","open","high","low","close"];class pB extends jo{constructor(n){super(n);P(this,"supportsExtrema",!0);P(this,"movable");P(this,"candles");P(this,"candleValues");P(this,"orientation");P(this,"currentSegmentType","open");P(this,"currentPointIndex",0);P(this,"sortedSegmentsByPoint");P(this,"segmentPositionMaps");P(this,"sections");P(this,"min");P(this,"max");P(this,"highlightValues");P(this,"highlightCenters");P(this,"navigationService");this.navigationService=new Bw;const i=n.data;this.candles=i.map(s=>({...s,volatility:Math.round((s.high-s.low)*VC)/VC,trend:s.close>s.open?"Bull":s.close<s.open?"Bear":"Neutral"})),this.orientation=n.orientation??Nt.VERTICAL,this.sections=hB,this.candleValues=this.sections.map(s=>this.candles.map(c=>c[s]));const o=this.orientation===Nt.HORIZONTAL?{col:this.sections.length-1}:{row:this.sections.length-1};this.movable=new Wc(this.candleValues,o),this.min=Oi.minFrom2D(this.candleValues),this.max=Oi.maxFrom2D(this.candleValues),this.sortedSegmentsByPoint=this.precomputeSortedSegments(),this.segmentPositionMaps=this.precomputePositionMaps(),this.currentPointIndex=0,this.currentSegmentType="close",this.orientation===Nt.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,c)=>s[1]-c[1]).map(s=>s[0])])}precomputePositionMaps(){return this.sortedSegmentsByPoint.map(n=>{const i=new Map;return n.forEach((o,s)=>{i.set(o,s)}),i})}getSegmentPositionInSortedOrder(n,i){return this.segmentPositionMaps[n].get(i)??0}getSegmentTypeAtSortedPosition(n,i){return this.sortedSegmentsByPoint[n][i]??"open"}updateVisualSegmentPosition(){const i=this.sortedSegmentsByPoint[this.currentPointIndex].indexOf(this.currentSegmentType??"open");this.orientation===Nt.HORIZONTAL?this.col=i:this.row=i}updateVisualPointPosition(){this.orientation===Nt.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)return this.handleInitialEntry(),this.notifyStateUpdate(),!0;if(!this.isMovable(n))return this.notifyOutOfBounds(),!1;switch(n){case"UPWARD":case"DOWNWARD":{const i=this.sortedSegmentsByPoint[this.currentPointIndex],o=i.indexOf(this.currentSegmentType??"open");if(o===-1)return this.notifyOutOfBounds(),!1;const s=n==="UPWARD"?o+1:o-1;if(s>=0&&s<i.length)this.currentSegmentType=i[s],this.updateVisualSegmentPosition();else return this.notifyOutOfBounds(),!1;break}case"FORWARD":case"BACKWARD":{const i=n==="FORWARD"?this.currentPointIndex+1:this.currentPointIndex-1;if(i>=0&&i<this.candles.length)this.currentPointIndex=i,this.updateVisualPointPosition(),this.updateVisualSegmentPosition();else return this.notifyOutOfBounds(),!1;break}}return this.notifyStateUpdate(),!0}moveToExtreme(n){switch(this.isInitialEntry&&this.handleInitialEntry(),n){case"UPWARD":{const i=this.sortedSegmentsByPoint[this.currentPointIndex];this.currentSegmentType=i[i.length-1],this.updateVisualSegmentPosition();break}case"DOWNWARD":{const i=this.sortedSegmentsByPoint[this.currentPointIndex];this.currentSegmentType=i[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}}return this.notifyStateUpdate(),!0}moveToIndex(n,i){this.isInitialEntry&&this.handleInitialEntry();const{pointIndex:o,segmentType:s}=this.navigationService.computeIndexAndSegment(n,i,this.orientation,this.sections);return this.currentPointIndex=o,this.currentSegmentType=s,this.row=n,this.col=i,this.updateVisualSegmentPosition(),this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}isMovable(n){if(Array.isArray(n))return super.isMovable(n);if(this.isInitialEntry)return!0;switch(n){case"UPWARD":case"DOWNWARD":{const i=this.sortedSegmentsByPoint[this.currentPointIndex],o=i.indexOf(this.currentSegmentType??"open"),s=n==="UPWARD"?o+1:o-1;return s>=0&&s<i.length}case"FORWARD":case"BACKWARD":{const i=n==="FORWARD"?this.currentPointIndex+1:this.currentPointIndex-1;return i>=0&&i<this.candles.length}}}dispose(){this.navigationService.dispose(),this.candles.length=0,super.dispose()}get values(){return this.candleValues}get audio(){let n;const i=this.orientation===Nt.HORIZONTAL;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,{freq:{min:this.min,max:this.max,raw:n},panning:{x:i?this.row:this.col,y:i?this.col:this.row,rows:i?this.candleValues.length:this.candleValues[this.row].length,cols:i?this.candleValues[this.row].length:this.candleValues.length},trend:this.candles[this.currentPointIndex].trend}}get braille(){const n=this.candles.map(c=>c.trend),i=this.getSegmentPositionInSortedOrder(this.currentPointIndex,this.currentSegmentType??this.sections[0]);this.row=i;const o=this.candleValues.map(c=>Math.min(...c)),s=this.candleValues.map(c=>Math.max(...c));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 i=Array.isArray(n)?n:[n],o=[];for(const s of i)o.push(...Ct.selectAllElements(s));return o}getElementAt(n,i){return i<n.length?n[i]:null}mapToSvgElements(n){if(!n)return null;if(typeof n=="string"||Array.isArray(n)){const C=Array.isArray(n)?n[0]||"":n,R=Ct.selectAllElements(C),_=[];for(let N=0;N<this.sections.length;N++){_[N]=[];for(let z=0;z<this.candles.length;z++){const B=z<R.length?z:0;_[N][z]=R[B]}}return _}const i=n,o=this.candles.length,s=this.collectElements(i.body);let c=this.collectElements(i.wickHigh),d=this.collectElements(i.wickLow);if(c.length===0||d.length===0){const C=this.collectElements(i.wick);C.length>0&&(c.length===0&&(c=C),d.length===0&&(d=C))}const h=this.collectElements(i.open),y=this.collectElements(i.close),v=Array.from({length:o},()=>Ct.createEmptyElement()),S=Array.from({length:o},()=>Ct.createEmptyElement()),T=Array.from({length:o},()=>Ct.createEmptyElement());for(let C=0;C<o;C++){let R=this.getElementAt(h,C);if(!R){const N=this.getElementAt(s,C);if(N){const{open:z,close:B}=this.candles[C],V=B>z?"bottom":B<z?"top":"bottom";R=Ct.createLineElement(N,V)}else R=Ct.createEmptyElement()}v[C]=R;let _=this.getElementAt(y,C);if(!_){const N=this.getElementAt(s,C);if(N){const{open:z,close:B}=this.candles[C],V=B>z?"top":B<z?"bottom":"top";_=Ct.createLineElement(N,V)}else _=Ct.createEmptyElement()}S[C]=_,T[C]=Ct.createEmptyElement()}const w=Array.from({length:this.sections.length},()=>Array.from({length:o},()=>Ct.createEmptyElement()));for(let C=0;C<o;C++){const R=this.sortedSegmentsByPoint[C];for(let _=0;_<R.length;_++){const N=R[_];let z;switch(N){case"volatility":{const B=[],V=this.getElementAt(s,C),L=this.getElementAt(c,C)??V,U=this.getElementAt(d,C)??V;L&&B.push(L),V&&B.push(V),U&&B.push(U);const X=Array.from(new Set(B));z=X.length>0?X:[Ct.createEmptyElement()]}break;case"open":z=v[C];break;case"close":z=S[C];break;case"high":z=this.getElementAt(c,C)??this.getElementAt(s,C)??Ct.createEmptyElement();break;case"low":z=this.getElementAt(d,C)??this.getElementAt(s,C)??Ct.createEmptyElement();break;default:z=Ct.createEmptyElement()}w[_][C]=z}}return w}get text(){const n=this.candles[this.currentPointIndex],i=this.orientation===Nt.HORIZONTAL;let o;return this.currentSegmentType==="volatility"?o=n.volatility:this.currentSegmentType?o=n[this.currentSegmentType]:o=n.open,{main:{label:i?this.yAxis:this.xAxis,value:n.value},cross:{label:i?this.xAxis:this.yAxis,value:o},section:this.currentSegmentType??"open",fill:{label:dB,value:n.trend},mainAxis:i?"y":"x",crossAxis:i?"x":"y"}}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 i=this.candles.findIndex(o=>o.value===n);return i!==-1?(this.currentPointIndex=i,this.currentSegmentType="close",this.updateVisualPointPosition(),this.updateVisualSegmentPosition(),this.notifyStateUpdate(),!0):!1}getAvailableXValues(){return this.candles.map(n=>n.value)}getExtremaTargets(){const n=[],i=this.currentSegmentType??"open";if(i==="volatility"){const o=this.candles.map((y,v)=>({value:y.volatility,index:v})),s=Math.max(...o.map(y=>y.value)),c=o.filter(y=>y.value===s).map(y=>y.index),d=Math.min(...o.map(y=>y.value)),h=o.filter(y=>y.value===d).map(y=>y.index);c.forEach((y,v)=>{const S=this.candles[y];n.push({label:`Max Volatility at ${S.value}`,value:S.volatility,pointIndex:y,segment:"volatility",type:"max",navigationType:"point"})}),h.forEach((y,v)=>{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,v)=>({value:y[i],index:v,xValue:y.value})),s=Math.max(...o.map(y=>y.value)),c=o.filter(y=>y.value===s).map(y=>y.index),d=Math.min(...o.map(y=>y.value)),h=o.filter(y=>y.value===d).map(y=>y.index);c.forEach((y,v)=>{const S=this.candles[y],T=i.charAt(0).toUpperCase()+i.slice(1);n.push({label:`Max ${T} at ${S.value}`,value:S[i],pointIndex:y,segment:i,type:"max",navigationType:"point"})}),h.forEach((y,v)=>{const S=this.candles[y],T=i.charAt(0).toUpperCase()+i.slice(1);n.push({label:`Min ${T} at ${S.value}`,value:S[i],pointIndex:y,segment:i,type:"min",navigationType:"point"})})}return n}navigateToExtrema(n){this.currentPointIndex=n.pointIndex,this.currentSegmentType=n.segment,this.finalizeExtremaNavigation()}moveToNextCompareValue(n,i){const o=this.row;if(o<0||o>=this.candles.length)return!1;const s=this.currentSegmentType??"open",c=this.candles.map((v,S)=>({value:v[s],index:S,xValue:v.value})),d=this.col,h=n==="right"?1:-1;let y=d+h;for(;y>=0&&y<c.length;){if(this.compare(c[y].value,c[d].value,i))return this.col=y,this.currentPointIndex=y,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;y+=h}return this.notifyRotorBounds(),!1}moveUpRotor(){return this.moveOnce("UPWARD"),!0}moveDownRotor(){return this.moveOnce("DOWNWARD"),!0}mapSvgElementsToCenters(){const n=this.highlightValues;if(!n)return null;const i=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const c=n[o][s],d=Array.isArray(c)?c[0]:c;if(d){const h=d.getBoundingClientRect();i.push({x:h.x+h.width/2,y:h.y+h.height/2,row:o,col:s,element:d})}}return i}findNearestPoint(n,i){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let c=0;c<this.highlightCenters.length;c++){const d=this.highlightCenters[c],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=c)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}get dimension(){const n=this.orientation===Nt.HORIZONTAL;return{rows:n?this.candleValues.length:this.candleValues[this.row].length,cols:n?this.candleValues[this.row].length:this.candleValues.length}}}class mB extends jo{constructor(n){super(n);P(this,"supportsExtrema",!0);P(this,"movable");P(this,"heatmapValues");P(this,"highlightValues");P(this,"highlightCenters");P(this,"x");P(this,"y");P(this,"min");P(this,"max");const i=n.data;this.x=i.x,this.y=[...i.y].reverse(),this.heatmapValues=[...i.points].reverse();const{min:o,max:s}=Oi.minMaxFrom2D(this.heatmapValues);this.min=o,this.max=s,this.highlightValues=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new Wc(this.heatmapValues)}get values(){return this.heatmapValues}dispose(){this.heatmapValues.length=0,this.x.length=0,this.y.length=0,super.dispose()}get audio(){return{freq:{min:this.min,max:this.max,raw:this.heatmapValues[this.row][this.col]},panning:{x:this.col,y:this.row,rows:this.heatmapValues.length,cols:this.heatmapValues[this.row].length}}}get braille(){return{empty:!1,id:this.id,values:this.heatmapValues,min:this.min,max:this.max,row:this.row,col:this.col}}get 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:this.heatmapValues[this.row][this.col]}}}get dimension(){return{rows:this.heatmapValues.length,cols:this.heatmapValues[this.row].length}}mapToSvgElements(n){var d;if(!n)return null;const i=this.heatmapValues.length,o=this.heatmapValues[0].length,s=Ct.selectAllElements(n,!1);if(s.length===1&&s[0]instanceof SVGImageElement)return this.createOverlayRects(s[0],i,o);if(s.length===0||s.length!==i*o)return null;const c=new Array;if(s[0]instanceof SVGPathElement)for(let h=0;h<i;h++){const y=i-1-h,v=new Array;for(let S=0;S<o;S++){const T=y*o+S;v.push(s[T])}c.push(v)}else if(s[0]instanceof SVGRectElement)if(((d=this.layer.domMapping)==null?void 0:d.order)==="row")for(let h=0;h<i;h++){const y=new Array;for(let v=0;v<o;v++){const S=h*o+v;y.push(s[S])}c.push(y)}else for(let h=0;h<i;h++){const y=new Array;for(let v=0;v<o;v++){const S=v*i+h;y.push(s[S])}c.push(y)}return c}createOverlayRects(n,i,o){const s=Number.parseFloat(n.getAttribute("x")??"0"),c=Number.parseFloat(n.getAttribute("y")??"0"),d=Number.parseFloat(n.getAttribute("width")??"0"),h=Number.parseFloat(n.getAttribute("height")??"0");if(d===0||h===0)return null;const y=d/o,v=h/i,S=n.parentElement;if(!S)return null;const T="http://www.w3.org/2000/svg",w=new Array;for(let C=0;C<i;C++){const R=new Array;for(let _=0;_<o;_++){const N=document.createElementNS(T,"rect");N.setAttribute("x",String(s+_*y)),N.setAttribute("y",String(c+C*v)),N.setAttribute("width",String(y)),N.setAttribute("height",String(v)),N.setAttribute("fill","transparent"),N.setAttribute("stroke","none"),N.setAttribute("pointer-events","none"),S.appendChild(N),R.push(N)}w.push(R)}return w}updateVisualPointPosition(){const{row:n,col:i}=this.getSafeIndices();this.row=n,this.col=i}moveToNextCompareValue(n,i){switch(n){case"left":case"right":return this.search_in_row(n,i);case"up":case"down":return this.search_in_col(n,i);default:return this.notifyRotorBounds(),!1}}search_in_row(n,i){const o=this.y.length,s=this.col,c=n==="left"?-1:1;let d=s+c;for(;d>=0&&d<o;){if(this.compare(this.heatmapValues[this.row][d],this.heatmapValues[this.row][s],i))return this.col=d,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;d+=c}return this.notifyRotorBounds(),!1}search_in_col(n,i){const o=this.x.length,s=this.row,c=n==="up"?1:-1;let d=s+c;for(;d>=0&&d<o;){if(this.compare(this.heatmapValues[d][this.col],this.heatmapValues[s][this.col],i))return this.row=d,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;d+=c}return!1}moveUpRotor(n){return this.moveToNextCompareValue("up",n)}moveDownRotor(n){return this.moveToNextCompareValue("down",n)}mapSvgElementsToCenters(){const n=this.highlightValues;if(!n)return null;const i=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const c=n[o][s],d=Array.isArray(c)?c[0]:c;if(d){const h=d.getBoundingClientRect();i.push({x:h.x+h.width/2,y:h.y+h.height/2,row:o,col:s,element:d})}}return i}findNearestPoint(n,i){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let c=0;c<this.highlightCenters.length;c++){const d=this.highlightCenters[c],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=c)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}getExtremaTargets(){const n=[],i=this.row,o=this.col,s=this.findGlobalExtrema("max");s&&n.push({label:`Global Maximum: ${s.value} at ${this.x[s.col]}, ${this.y[s.row]}`,value:s.value,pointIndex:s.row*this.heatmapValues[0].length+s.col,segment:"global",type:"max",navigationType:"group",groupIndex:s.row,categoryIndex:s.col});const c=this.findGlobalExtrema("min");c&&n.push({label:`Global Minimum: ${c.value} at ${this.x[c.col]}, ${this.y[c.row]}`,value:c.value,pointIndex:c.row*this.heatmapValues[0].length+c.col,segment:"global",type:"min",navigationType:"group",groupIndex:c.row,categoryIndex:c.col});const d=this.findRowExtrema(i,"max");d&&n.push({label:`Row Maximum: ${d.value} at ${this.x[d.col]}, ${this.y[i]}`,value:d.value,pointIndex:i*this.heatmapValues[0].length+d.col,segment:`row-${i}`,type:"max",navigationType:"group",groupIndex:i,categoryIndex:d.col});const h=this.findRowExtrema(i,"min");h&&n.push({label:`Row Minimum: ${h.value} at ${this.x[h.col]}, ${this.y[i]}`,value:h.value,pointIndex:i*this.heatmapValues[0].length+h.col,segment:`row-${i}`,type:"min",navigationType:"group",groupIndex:i,categoryIndex:h.col});const y=this.findColExtrema(o,"max");y&&n.push({label:`Column Maximum: ${y.value} at ${this.x[o]}, ${this.y[y.row]}`,value:y.value,pointIndex:y.row*this.heatmapValues[0].length+o,segment:`col-${o}`,type:"max",navigationType:"group",groupIndex:y.row,categoryIndex:o});const v=this.findColExtrema(o,"min");return v&&n.push({label:`Column Minimum: ${v.value} at ${this.x[o]}, ${this.y[v.row]}`,value:v.value,pointIndex:v.row*this.heatmapValues[0].length+o,segment:`col-${o}`,type:"min",navigationType:"group",groupIndex:v.row,categoryIndex:o}),n}findGlobalExtrema(n){if(this.heatmapValues.length===0)return null;let i=0,o=0,s=this.heatmapValues[0][0];for(let c=0;c<this.heatmapValues.length;c++)for(let d=0;d<this.heatmapValues[c].length;d++){const h=this.heatmapValues[c][d];(n==="max"?h>s:h<s)&&(s=h,i=c,o=d)}return{row:i,col:o,value:s}}findRowExtrema(n,i){if(n<0||n>=this.heatmapValues.length)return null;const o=this.heatmapValues[n];if(o.length===0)return null;let s=0,c=o[0];for(let d=1;d<o.length;d++){const h=o[d];(i==="max"?h>c:h<c)&&(c=h,s=d)}return{col:s,value:c}}findColExtrema(n,i){if(this.heatmapValues.length===0||n<0||n>=this.heatmapValues[0].length)return null;let o=0,s=this.heatmapValues[0][n];for(let c=1;c<this.heatmapValues.length;c++){const d=this.heatmapValues[c][n];(i==="max"?d>s:d<s)&&(s=d,o=c)}return{row:o,value:s}}navigateToExtrema(n){n.groupIndex!==void 0&&n.categoryIndex!==void 0&&(this.row=n.groupIndex,this.col=n.categoryIndex,this.finalizeExtremaNavigation())}}class gB extends Fw{constructor(t){super(t,[t.data])}get text(){const t=this.orientation===Nt.VERTICAL,n=this.points[this.row][this.col],i=t?n.xMin:n.yMin,o=t?n.xMax:n.yMax;return{...super.text,range:{min:i,max:o}}}moveToNextCompareValue(t,n){const i=this.row;if(i<0||i>=this.barValues.length)return!1;const o=this.barValues[i];if(!o||o.length===0)return!1;const s=this.col,c=t==="right"?1:-1;let d=s+c;for(;d>=0&&d<o.length;){if(this.compare(o[d],o[s],n))return this.col=d,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;d+=c}return this.notifyRotorBounds(),!1}}const BC="Group",Yw=/[ML]\s*(-?\d+(?:\.\d+)?)[\s,]+(-?\d+(?:\.\d+)?)/g,Bb=class Bb extends jo{constructor(n){super(n);P(this,"supportsExtrema",!0);P(this,"rotorSupport",!0);P(this,"movable");P(this,"points");P(this,"lineValues");P(this,"highlightValues");P(this,"highlightCenters");P(this,"min");P(this,"max");P(this,"previousRow",null);P(this,"intersectionCache",new Map);this.points=n.data,this.lineValues=this.points.map(i=>i.map(o=>Number(o.y))),this.min=this.lineValues.map(i=>Oi.safeMin(i)),this.max=this.lineValues.map(i=>Oi.safeMax(i)),this.highlightValues=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new sB(this.buildGraph())}get values(){return this.lineValues}dispose(){this.points.length=0,this.min.length=0,this.max.length=0,super.dispose()}buildGraph(){const n=this.points.length;if(n===0)return new Array;const i=Math.max(0,...this.points.map(s=>s.length)),o=this.points.map(s=>s.map(()=>({up:null,down:null,left:null,right:null,top:null,bottom:null,start:null,end:null})));for(let s=0;s<i;s++){const c=this.points.map((v,S)=>{var T;return{y:(T=v[s])==null?void 0:T.y,row:S}}).filter(v=>v.y!==void 0);if(c.length===0)continue;const d=[...c].sort((v,S)=>v.y-S.y),h={row:d[0].row,col:s},y={row:d[d.length-1].row,col:s};for(let v=0;v<d.length;v++){const{row:S}=d[v],T=o[S][s];T&&(v>0&&(T.down={row:d[v-1].row,col:s}),v<d.length-1&&(T.up={row:d[v+1].row,col:s}),T.bottom=h,T.top=y)}}for(let s=0;s<n;s++){const c=this.points[s].length>0?{row:s,col:0}:null,d=this.points[s].length>0?{row:s,col:this.points[s].length-1}:null;for(let h=0;h<this.points[s].length;h++){const y=o[s][h];y&&(h>0&&(y.left={row:s,col:h-1}),h<this.points[s].length-1&&(y.right={row:s,col:h+1}),y.start=c,y.end=d)}}return o}get audio(){return{freq:{min:this.min[this.row],max:this.max[this.row],raw:this.lineValues[this.row][this.col]},panning:{x:this.col,y:this.row,rows:this.lineValues.length,cols:this.lineValues[this.row].length},group:this.row}}get braille(){return{empty:!1,id:this.id,values:this.lineValues,min:this.min,max:this.max,row:this.row,col:this.col}}get text(){var s;const n=this.points[this.row][this.col],i=this.findIntersections();let o={};if(i.length>1){let c=i.map(d=>{var y;const h=d.group;return((y=this.points[h][0])==null?void 0:y.fill)||`l${h+1}`});if(this.previousRow!==null){const d=((s=this.points[this.previousRow][0])==null?void 0:s.fill)||`l${this.previousRow+1}`;c.includes(d)&&(c=[d,...c.filter(h=>h!==d)])}o={fill:{label:BC,value:`intersection at (${c.join(", ")})`}}}else o=n.fill?{fill:{label:BC,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}}get dimension(){return{rows:this.lineValues.length,cols:this.lineValues[this.row].length}}moveOnce(n){if(this.isInitialEntry)return this.movable.handleInitialEntry(),this.previousRow=null,this.notifyStateUpdate(),!0;if(!this.isMovable(n))return this.notifyOutOfBounds(),!1;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 c=this.findColumnByXValue(o,s);if(c!==-1){this.row=o,this.col=c;const d=this.findIntersections();if(d.length>1){const y={...super.state,intersections:d};for(const v of this.observers)v.update(y)}else this.notifyStateUpdate();return!0}else return this.notifyOutOfBounds(),!1}else return this.notifyOutOfBounds(),!1}switch(n){case"FORWARD":this.col+=1;break;case"BACKWARD":this.col-=1;break}const i=this.findIntersections();if(i.length>1){const s={...super.state,intersections:i};for(const c of this.observers)c.update(s)}else this.notifyStateUpdate();return!0}findIntersections(){const n=this.points[this.row][this.col].x,i=this.points[this.row][this.col].y,o=[];for(let s=0;s<this.points.length;s++)this.points[s].findIndex(d=>d.x===n&&d.y===i)!==-1&&o.push({freq:{min:this.min[s],max:this.max[s],raw:i},panning:{x:this.col,y:this.row,rows:this.lineValues.length,cols:this.lineValues[this.row].length},group:s});return o}isMovable(n){if(Array.isArray(n)){const[i,o]=n;return i>=0&&i<this.values.length&&o>=0&&o<this.values[i].length}switch(n){case"UPWARD":case"DOWNWARD":{const i=this.findLineByXAndYDirection(n);if(i===null)return!1;const o=this.points[this.row][this.col].x;return this.findColumnByXValue(i,o)!==-1}case"FORWARD":return this.col<this.values[this.row].length-1;case"BACKWARD":return this.col>0}}findLineByXAndYDirection(n){const i=this.points[this.row][this.col].x;let o=null,s=Number.POSITIVE_INFINITY;for(let c=0;c<this.points.length;c++){if(c===this.row)continue;const d=this.points[c].findIndex(S=>S.x===i);if(d===-1)continue;const h=this.points[c][d].y,y=n==="UPWARD"?h>this.points[this.row][this.col].y:h<this.points[this.row][this.col].y,v=Math.abs(h-this.points[this.row][this.col].y);y&&v<s&&(s=v,o=c)}return o}findColumnByXValue(n,i){return this.points[n].findIndex(o=>o.x===i)}mapToSvgElements(n){if(!n||n.length!==this.lineValues.length)return null;const i=[];let o=!0;for(let s=0;s<n.length;s++){const c=Ct.selectElement(n[s],!1);if(!c){i.push([]);continue}const d=[];if(c instanceof SVGPathElement){const S=c.getAttribute(me.D)||me.EMPTY;Yw.lastIndex=0;let T=Yw.exec(S);for(;T!==null;)d.push({x:Number.parseFloat(T[1]),y:Number.parseFloat(T[2])}),T=Yw.exec(S)}else if(c instanceof SVGPolylineElement){const T=(c.getAttribute(me.POINTS)||me.EMPTY).split(/\s+/).filter(Boolean);for(const w of T){const[C,R]=w.split(me.COMMA);d.push({x:Number.parseFloat(C),y:Number.parseFloat(R)})}}const h=this.lineValues[s].length;if(d.length!==h)if(d.length>=2&&d.length<h){const S=Number(d[0].x),T=Number(d[d.length-1].x),w=this.points[s],C=Number(w[0].x),_=Number(w[w.length-1].x)-C,N=[];for(let z=0;z<h;z++){const B=Number(w[z].x),V=_>0?S+(B-C)/_*(T-S):S;let L=Number(d[0].y);for(let U=0;U<d.length-1;U++){const X=Number(d[U].x),se=Number(d[U+1].x);if(V>=X-.01&&V<=se+.01){const ce=se-X,ie=ce>0?(V-X)/ce:0;L=Number(d[U].y)+ie*(Number(d[U+1].y)-Number(d[U].y));break}}N.push({x:V,y:L})}d.length=0,d.push(...N)}else if(d.length<h)for(;d.length<h;)d.push({x:Number.NaN,y:Number.NaN});else d.length=h;const y=[];let v=!1;for(const S of d){if(Number.isNaN(Number(S.x))||Number.isNaN(S.y)){v=!0;break}y.push(Ct.createCircleElement(S.x,S.y,c))}if(v){i.push([]);continue}y.length>0&&(o=!1),i.push(y)}return o?null:i}get state(){const n=super.state;if(n.empty)return n;const i=this.points.length>1,o={...n,plotType:i?"multiline":"single line",...i&&{groupCount:this.points.length}},s=this.findIntersections();return s.length>1?{...o,intersections:s}:o}mapSvgElementsToCenters(){const n=this.highlightValues;if(!n)return null;const i=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const c=n[o][s],d=Array.isArray(c)?c[0]:c;if(d){const h=d.getBoundingClientRect();i.push({x:h.x+h.width/2,y:h.y+h.height/2,row:o,col:s,element:d})}}return i}findNearestPoint(n,i){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let c=0;c<this.highlightCenters.length;c++){const d=this.highlightCenters[c],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=c)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}getSegmentIntersection(n,i,o,s){const c=n.x,d=n.y,h=i.x,y=i.y,v=o.x,S=o.y,T=s.x,w=s.y,C=(c-h)*(S-w)-(d-y)*(v-T);if(Math.abs(C)<1e-10)return null;const R=((c-v)*(S-w)-(d-S)*(v-T))/C,_=-((c-h)*(d-S)-(d-y)*(c-v))/C;if(R>=0&&R<=1&&_>=0&&_<=1){const N=c+R*(h-c),z=d+R*(y-d);return{x:N,y:z}}return null}findAllIntersectionsForCurrentLine(){const n=this.row;if(this.intersectionCache.has(n))return this.intersectionCache.get(n);if(n<0||n>=this.points.length)return[];if(this.points.length<=1)return[];const i=this.points[n];if(i.length<2)return[];const o=[];for(let d=0;d<i.length-1;d++){const h=i[d],y=i[d+1],v={x:Number(h.x),y:Number(h.y)},S={x:Number(y.x),y:Number(y.y)};for(let T=0;T<this.points.length;T++){if(T===n)continue;const w=this.points[T];if(!(w.length<2))for(let C=0;C<w.length-1;C++){const R=w[C],_=w[C+1],N={x:Number(R.x),y:Number(R.y)},z={x:Number(_.x),y:Number(_.y)},B=this.getSegmentIntersection(v,S,N,z);if(B){const V=Math.hypot(B.x-v.x,B.y-v.y),L=Math.hypot(B.x-S.x,B.y-S.y),U=V<=L?d:d+1;o.push({pointIndex:U,x:B.x,y:B.y,otherLine:T})}}}}const s=[];for(const d of o){const h=s.find(y=>Math.abs(y.x-d.x)<Bb.INTERSECTION_EPSILON&&Math.abs(y.y-d.y)<Bb.INTERSECTION_EPSILON);if(h)h.intersectingLines.add(d.otherLine);else{const y=new Set;y.add(d.otherLine),s.push({pointIndex:d.pointIndex,x:d.x,y:d.y,intersectingLines:y})}}const c=s.map(d=>({pointIndex:d.pointIndex,x:d.x,y:d.y,intersectingLines:Array.from(d.intersectingLines).sort((h,y)=>h-y)})).sort((d,h)=>d.x-h.x);return this.intersectionCache.set(n,c),c}getIntersectionLabel(n){return n.map(i=>{const o=this.points[i][0];return(o==null?void 0:o.fill)||`Line ${i+1}`}).join(", ")}getExtremaTargets(){const n=[],i=this.row;if(i<0||i>=this.lineValues.length)return n;const o=this.lineValues[i];if(!o||o.length===0)return n;const s=this.min[i],c=this.max[i],d=[],h=[];for(let v=0;v<o.length;v++){const S=o[v];S===c&&d.push(v),S===s&&h.push(v)}for(const v of d)n.push({label:`Max point at ${this.getPointLabel(v)}`,value:c,pointIndex:v,segment:"line",type:"max",navigationType:"point"});for(const v of h)n.push({label:`Min point at ${this.getPointLabel(v)}`,value:s,pointIndex:v,segment:"line",type:"min",navigationType:"point"});const y=this.findAllIntersectionsForCurrentLine();for(const v of y){const S=this.getIntersectionLabel(v.intersectingLines),T=`x=${v.x.toFixed(2)}, y=${v.y.toFixed(2)}`;n.push({label:`Intersection at ${T}`,value:v.y,pointIndex:v.pointIndex,segment:"intersection",type:"intersection",navigationType:"point",intersectingLines:v.intersectingLines,display:{coords:T,otherLines:S}})}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:i}=this.getSafeIndices();this.row=n,this.col=i}getAvailableXValues(){return this.points[this.row].map(n=>n.x)}moveToXValue(n){return this.isInitialEntry&&this.movable.handleInitialEntry(),super.moveToXValue(n)}moveToNextCompareValue(n,i){const o=this.row;if(o<0||o>=this.lineValues.length)return!1;const s=this.lineValues[o];if(!s||s.length===0)return!1;const c=this.col,d=n==="right"?1:-1;let h=c+d;for(;h>=0&&h<s.length;){if(this.compare(s[h],s[c],i))return this.col=h,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;h+=d}return this.notifyRotorBounds(),!1}compare(n,i,o){return o==="lower"?n<i:o==="higher"?n>i:!1}moveUpRotor(n){return this.moveOnce("UPWARD"),!0}moveDownRotor(n){return this.moveOnce("DOWNWARD"),!0}};P(Bb,"INTERSECTION_EPSILON",1e-6);let j5=Bb;class yB extends jo{constructor(n){super(n);P(this,"mode");P(this,"movable");P(this,"supportsExtrema",!1);P(this,"xPoints");P(this,"yPoints");P(this,"xValues");P(this,"yValues");P(this,"highlightXValues");P(this,"highlightYValues");P(this,"highlightCenters");P(this,"minX");P(this,"maxX");P(this,"minY");P(this,"maxY");this.mode="col";const i=n.data,o=[...i].sort((h,y)=>h.x-y.x||h.y-y.y);this.xPoints=new Array;let s=null;for(const h of o)(!s||s.x!==h.x)&&(s={x:h.x,y:[]},this.xPoints.push(s)),s.y.push(h.y);const c=[...i].sort((h,y)=>h.y-y.y||h.x-y.x);this.yPoints=new Array;let d=null;for(const h of c)(!d||d.y!==h.y)&&(d={y:h.y,x:[]},this.yPoints.push(d)),d.x.push(h.x);this.xValues=this.xPoints.map(h=>h.x),this.yValues=this.yPoints.map(h=>h.y),this.minX=Oi.safeMin(this.xValues),this.maxX=Oi.safeMax(this.xValues),this.minY=Oi.safeMin(this.yValues),this.maxY=Oi.safeMax(this.yValues),[this.highlightXValues,this.highlightYValues]=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new uB(this.xPoints,this.yPoints)}dispose(){this.movable.dispose(),this.xPoints.length=0,this.yPoints.length=0,this.highlightXValues&&(this.highlightXValues.forEach(n=>n.forEach(i=>i.remove())),this.highlightXValues.length=0),this.highlightYValues&&(this.highlightYValues.forEach(n=>n.forEach(i=>i.remove())),this.highlightYValues.length=0),super.dispose()}get highlightValues(){return this.mode==="col"?this.highlightXValues:this.highlightYValues}getAudioGroupIndex(){return{}}get values(){const n=[this.xValues,this.yValues];return this.mode==="col"?this.row!==0&&(this.row=0):(this.row<0||this.row>=this.yPoints.length)&&(this.row=0),n}get braille(){return{empty:!1,id:this.id,values:this.values,min:0,max:0,row:this.row,col:this.col}}get audio(){if(this.mode==="col"){const n=this.xPoints[this.col];return{freq:{raw:n.y,min:this.minY,max:this.maxY},panning:{y:this.row,x:this.col,rows:n.y.length,cols:this.xPoints.length}}}else{const n=this.yPoints[this.row];return{freq:{raw:n.x,min:this.minX,max:this.maxX},panning:{y:this.row,x:this.col,rows:this.yPoints.length,cols:n.x.length}}}}get text(){if(this.mode==="col"){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 dimension(){return{rows:this.yPoints.length,cols:this.xPoints.length}}get highlight(){if(this.highlightValues===null)return this.outOfBoundsState;const n=this.mode==="col"?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}:this.outOfBoundsState}get hasMultiPoints(){return!0}handleInitialEntry(){this.isInitialEntry=!1,this.row=0,this.col=0,this.mode="col"}toggleNavigation(){if(this.mode==="col"){const n=this.xPoints[this.col],i=n.y[Math.floor(n.y.length/2)],o=this.yValues.indexOf(i);o===-1||o>=this.yPoints.length?this.row=0:this.row=o,this.mode="row"}else{const n=this.yPoints[this.row],i=n.x[Math.floor(n.x.length/2)],o=this.xValues.indexOf(i);o===-1||o>=this.xPoints.length?this.col=0:this.col=o,this.mode="col",this.row=0}}moveOnce(n){if(this.isInitialEntry)return this.handleInitialEntry(),this.notifyStateUpdate(),!0;if(!this.isMovable(n))return this.notifyOutOfBounds(),!1;if(this.mode==="col")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}}return this.notifyStateUpdate(),!0}moveToExtreme(n){if(this.isInitialEntry&&this.handleInitialEntry(),this.mode==="col")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}return this.notifyStateUpdate(),!0}moveToIndex(n,i){return this.mode==="col"?n>=0&&n<this.xPoints.length?(this.col=n,this.row=0,this.notifyStateUpdate(),!0):(this.notifyOutOfBounds(),!1):i>=0&&i<this.yPoints.length?(this.col=i,this.row=0,this.notifyStateUpdate(),!0):(this.notifyOutOfBounds(),!1)}isMovable(n){if(Array.isArray(n))return!1;if(this.mode==="col")switch(n){case"FORWARD":return this.col<this.xPoints.length-1;case"BACKWARD":return this.col>0;case"UPWARD":case"DOWNWARD":return!0;default:return!1}else switch(n){case"UPWARD":return this.row<this.yPoints.length-1;case"DOWNWARD":return this.row>0;case"FORWARD":case"BACKWARD":return!0;default:return!1}}mapToSvgElements(n){if(!n)return[null,null];const i=Ct.selectAllElements(n);if(i.length===0)return[null,null];const o=new Map,s=new Map;i.forEach(h=>{let y=Number.parseFloat(h.getAttribute("x")||""),v=Number.parseFloat(h.getAttribute("y")||"");if(Number.isNaN(y)||Number.isNaN(v)){const S=h.getAttribute("transform");if(S){const T=S.match(/translate\s*\(\s*([\d.eE+-]+)[\s,]+([\d.eE+-]+)/);T&&(y=Number.parseFloat(T[1]),v=Number.parseFloat(T[2]))}}Number.isNaN(y)||(o.has(y)||o.set(y,[]),o.get(y).push(h)),Number.isNaN(v)||(s.has(v)||s.set(v,[]),s.get(v).push(h))});const c=Array.from(o.entries()).sort(([h],[y])=>h-y).map(([h,y])=>y),d=Array.from(s.entries()).sort(([h],[y])=>y-h).map(([h,y])=>y);return[c,d]}mapSvgElementsToCenters(){const n=this.highlightXValues;if(!n)return null;const i=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const c=n[o][s],d=Array.isArray(c)?c[0]:c;if(d){const h=d.getBoundingClientRect();i.push({x:h.x+h.width/2,y:h.y+h.height/2,row:o,col:s,element:d})}}return i}findNearestPoint(n,i){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let c=0;c<this.highlightCenters.length;c++){const d=this.highlightCenters[c],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=c)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}moveToPoint(n,i){this.mode="col";const o=this.findNearestPoint(n,i);if(o&&this.isPointInBounds(n,i,o)){if(this.row===o.row&&this.col===o.col)return;this.moveToIndex(o.row,o.col)}}}const jC="Sum",vB="Level",bB="undefined";class xB extends Fw{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 c=this.barValues.reduce((h,y)=>h+y[s],0);t.push(c);const d=this.orientation===Nt.VERTICAL?{x:this.points[0][s].x,y:c,fill:jC}:{x:c,y:this.points[0][s].y,fill:jC};n.push(d)}this.points.push(n),this.barValues.push(t);const{min:i,max:o}=Oi.minMax(t);this.min.push(i),this.max.push(o)}getExtremaTargets(){const t=[],n=this.row;if(n<0||n>=this.barValues.length)return t;const i=this.min[n],o=this.max[n],s=this.barValues[n];if(!s||s.length===0)return t;const c=s.indexOf(o),d=s.indexOf(i),h=this.getGroupLabel(n),y=this.getCategoryLabel(c),v=this.getCategoryLabel(d);return t.push({label:`Max ${h} at ${y}`,value:o,pointIndex:c,segment:h,type:"max",groupIndex:n,categoryIndex:c,navigationType:"group"}),t.push({label:`Min ${h} at ${v}`,value:i,pointIndex:d,segment:h,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===Nt.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}get text(){return{...super.text,fill:{label:vB,value:this.points[this.row][this.col].fill??bB}}}get highlight(){return this.highlightValues===null||this.row===this.barValues.length-1?this.outOfBoundsState:{empty:!1,elements:this.highlightValues[this.row][this.col]}}mapToSvgElements(t){var c;if(!t)return new Array;const n=Ct.selectAllElements(t);if(n.length===0)return new Array;const i=this.barValues.reduce((d,h)=>d+h.length,0),o=n.length<i,s=new Array;if(n[0]instanceof SVGPathElement)for(let d=0,h=0;d<this.barValues.length;d++){const y=new Array;for(let v=0;v<this.barValues[d].length;v++)if(o&&this.barValues[d][v]===0)y.push(Ct.createEmptyElement());else{if(h>=n.length)return new Array;y.push(n[h++])}s.push(y)}else if(n[0]instanceof SVGRectElement){for(let h=0;h<this.barValues.length;h++)s.push(new Array);const d=((c=this.layer.domMapping)==null?void 0:c.groupDirection)==="forward";for(let h=0,y=0;h<this.barValues[0].length;h++)if(d)for(let v=0;v<this.barValues.length;v++)if(o&&this.barValues[v][h]===0)s[v].push(Ct.createEmptyElement());else{if(y>=n.length)return new Array;s[v].push(n[y++])}else for(let v=this.barValues.length-1;v>=0;v--)if(o&&this.barValues[v][h]===0)s[v].push(Ct.createEmptyElement());else{if(y>=n.length)return new Array;s[v].push(n[y++])}}return s}}class PC extends j5{constructor(t){super(t)}get state(){const t=super.state;return t.empty?t:{...t,plotType:"smooth"}}get audio(){const t=this.lineValues[this.row],n=c=>t[Math.max(0,Math.min(c,t.length-1))],i=n(this.col-1),o=n(this.col),s=n(this.col+1);return{freq:{min:this.min[this.row],max:this.max[this.row],raw:[i,o,s]},panning:{y:this.row,x:this.col,rows:this.lineValues.length,cols:this.lineValues[this.row].length},isContinuous:!0}}}class SB extends PC{constructor(t){super(t)}mapToSvgElements(t){var o;if(!t||t.length!==this.lineValues.length)return null;const n=[];let i=!0;for(let s=0;s<t.length;s++){const c=Ct.selectElement(t[s],!1);if(!c){n.push([]);continue}const d=(o=this.points)==null?void 0:o[s],h=[];for(const y of d)typeof y.svg_x=="number"&&typeof y.svg_y=="number"&&h.push(Ct.createCircleElement(y.svg_x,y.svg_y,c));h.length>0&&(i=!1),n.push(h)}return i?null:n}}function EB(e){return typeof e=="object"&&e!==null&&"svg_x"in e&&"svg_y"in e&&typeof e.svg_x=="number"&&typeof e.svg_y=="number"}function wB(e){return Array.isArray(e.data)&&e.data.length>0&&Array.isArray(e.data[0])&&EB(e.data[0][0])?new SB(e):new PC(e)}const Xw=.001;class TB extends jo{constructor(n){super(n);P(this,"supportsExtrema",!1);P(this,"movable");P(this,"orientation");P(this,"points");P(this,"densityValues");P(this,"yValues");P(this,"highlightValues");P(this,"highlightCenters");P(this,"minDensity");P(this,"maxDensity");P(this,"refSafeMin");P(this,"refSafeMax");P(this,"refHasPositive");this.orientation=n.orientation??Nt.VERTICAL,this.orientation===Nt.HORIZONTAL?this.points=[...n.data].reverse():this.points=n.data,this.densityValues=this.points.map(s=>s.map(c=>c.density??c.width??0)),this.yValues=this.points.map(s=>s.map(c=>Number(c.y))),this.minDensity=this.densityValues.map(s=>Oi.safeMin(s.filter(c=>c>0))),this.maxDensity=this.densityValues.map(s=>Oi.safeMax(s));const i=this.densityValues[0];if(i&&i.length>0&&this.minDensity[0]>0){this.refHasPositive=!0;const s=this.minDensity[0],c=this.maxDensity[0];this.refSafeMin=s===c?Math.max(0,s-Xw):s,this.refSafeMax=s===c?c+Xw:c}else this.refHasPositive=!1,this.refSafeMin=0,this.refSafeMax=1;const o=this.orientation===Nt.HORIZONTAL?[...n.selectors].reverse():n.selectors;this.highlightValues=this.mapToSvgElements(o),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new Wc(this.points,{row:0})}dispose(){this.points.length=0,this.densityValues.length=0,this.yValues.length=0,this.minDensity.length=0,this.maxDensity.length=0,super.dispose()}get values(){return this.densityValues}get dimension(){var n;return{rows:this.points.length,cols:((n=this.points[this.row])==null?void 0:n.length)??0}}isMovable(n){var o,s,c;if(Array.isArray(n)){const[d,h]=n;return d>=0&&d<this.points.length&&h>=0&&h<(((o=this.points[d])==null?void 0:o.length)??0)}if(this.orientation===Nt.HORIZONTAL)switch(n){case"UPWARD":return this.row<this.points.length-1;case"DOWNWARD":return this.row>0;case"FORWARD":return this.col<(((s=this.points[this.row])==null?void 0:s.length)??0)-1;case"BACKWARD":return this.col>0}switch(n){case"FORWARD":return this.row<this.points.length-1;case"BACKWARD":return this.row>0;case"UPWARD":return this.col<(((c=this.points[this.row])==null?void 0:c.length)??0)-1;case"DOWNWARD":return this.col>0}}handleInitialEntry(){this.isInitialEntry=!1,this.row=0,this.col=0}moveOnce(n){if(this.isInitialEntry)return this.handleInitialEntry(),this.notifyStateUpdate(),!0;if(!this.isMovable(n))return this.notifyOutOfBounds(),!1;if(this.orientation===Nt.HORIZONTAL)switch(n){case"UPWARD":return this.row+=1,this.col=0,this.notifyStateUpdate(),!0;case"DOWNWARD":return this.row-=1,this.col=0,this.notifyStateUpdate(),!0;case"FORWARD":return this.col+=1,this.notifyStateUpdate(),!0;case"BACKWARD":return this.col-=1,this.notifyStateUpdate(),!0}switch(n){case"FORWARD":return this.row+=1,this.col=0,this.notifyStateUpdate(),!0;case"BACKWARD":return this.row-=1,this.col=0,this.notifyStateUpdate(),!0;case"UPWARD":return this.col+=1,this.notifyStateUpdate(),!0;case"DOWNWARD":return this.col-=1,this.notifyStateUpdate(),!0}}moveToExtreme(n){var o,s;if(this.isInitialEntry)return this.handleInitialEntry(),this.notifyStateUpdate(),!0;if(this.orientation===Nt.HORIZONTAL)switch(n){case"UPWARD":this.row=this.points.length-1,this.col=0;break;case"DOWNWARD":this.row=0,this.col=0;break;case"FORWARD":this.col=(((o=this.points[this.row])==null?void 0:o.length)??1)-1;break;case"BACKWARD":this.col=0;break}else switch(n){case"FORWARD":this.row=this.points.length-1,this.col=0;break;case"BACKWARD":this.row=0,this.col=0;break;case"UPWARD":this.col=(((s=this.points[this.row])==null?void 0:s.length)??1)-1;break;case"DOWNWARD":this.col=0;break}return this.notifyStateUpdate(),!0}get audio(){var w;const n=this.orientation===Nt.HORIZONTAL,i=((w=this.points[this.row])==null?void 0:w.length)??0,o=n?{x:this.col,y:this.row,rows:this.points.length,cols:i}:{y:this.row,x:this.col,rows:this.points.length,cols:i};if(!this.refHasPositive)return{freq:{min:0,max:1,raw:0},panning:o};const s=this.densityValues[0],c=Math.min(this.col,s.length-1),d=C=>s[Math.max(0,Math.min(C,s.length-1))],h=c>0?d(c-1):d(c),y=d(c),v=c<s.length-1?d(c+1):d(c);let S=1;const T=this.densityValues[this.row];if(T&&T.length>0){const C=Math.min(this.col,T.length-1),R=T[C],_=this.maxDensity[this.row];if(_>0&&R>0){const z=this.minDensity[this.row]===_?_+Xw:_;S=R/z}}return{freq:{min:this.refSafeMin,max:this.refSafeMax,raw:[h,y,v]},panning:o,isContinuous:!0,volumeScale:S}}get autoplay(){return this.orientation===Nt.HORIZONTAL?{UPWARD:this.dimension.rows,DOWNWARD:this.dimension.rows,FORWARD:this.dimension.cols,BACKWARD:this.dimension.cols}:{UPWARD:this.dimension.cols,DOWNWARD:this.dimension.cols,FORWARD:this.dimension.rows,BACKWARD:this.dimension.rows}}get text(){const n=this.points[this.row][this.col],i=y=>Math.round(y*1e4)/1e4,o=this.orientation===Nt.HORIZONTAL;let s;if(typeof n.x=="string")s=n.x;else{const y=this.points[this.row][0];s=typeof(y==null?void 0:y.x)=="string"?y.x:`Violin ${this.row+1}`}const c=i(Number(n.y)),d={main:{label:o?this.yAxis:this.xAxis,value:s},cross:{label:o?this.xAxis:this.yAxis,value:c},mainAxis:o?"y":"x",crossAxis:o?"x":"y"},h=n.width!==void 0&&n.width>0?i(n.width):void 0;return h!==void 0&&(d.fill={label:"volume",value:String(h)}),d}get braille(){return{empty:!1,id:this.id,values:this.densityValues,min:this.minDensity,max:this.maxDensity,row:this.row,col:this.col}}getCurrentXValue(){return this.row>=0&&this.row<this.points.length?this.row:null}moveToXValue(n){var s;if(this.isInitialEntry&&this.handleInitialEntry(),typeof n!="number")return!1;const i=Math.floor(n);if(i<0||i>=this.points.length)return!1;const o=this.row;if(this.row=i,i!==o)this.col=0;else{const c=(s=this.points[i])!=null&&s.length?this.points[i].length-1:0;this.col=Math.min(this.col,c)}return this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}getCurrentYValue(){const n=this.yValues[this.row];return!n||n.length===0?null:this.col>=0&&this.col<n.length?n[this.col]:null}moveToXAndYValue(n,i){if(this.isInitialEntry&&(this.isInitialEntry=!1),typeof n!="number")return!1;const o=Math.floor(n);if(o<0||o>=this.yValues.length)return!1;this.row=o;const s=this.yValues[this.row];if(!s||s.length===0)return this.col=0,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;let c=0,d=Math.abs(s[0]-i);for(let h=1;h<s.length;h++){const y=Math.abs(s[h]-i);y<d&&(d=y,c=h)}return this.col=c,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}mapToSvgElements(n){if(!n||n.length===0)return null;const i=[];let o=!0;const s=n.length===this.points.length;for(let c=0;c<this.points.length;c++){const d=[],h=this.points[c],y=s?n[c]:n[0];if(!y){i.push([]);continue}const v=Ct.selectAllElements(y,!1),S=v.filter(_=>_ instanceof SVGUseElement),T=v.filter(_=>_ instanceof SVGPathElement),w=v.filter(_=>_ instanceof SVGPolygonElement),C=S.length>0?S:T.length>0?T:w,R=C.length>0?C[s?0:c<C.length?c:0]:null;if(R&&h){for(const _ of h){const N=_.svg_x,z=_.svg_y;N!==void 0&&z!==void 0&&!Number.isNaN(N)&&!Number.isNaN(z)&&d.push(Ct.createCircleElement(N,z,R))}d.length>0&&(o=!1)}i.push(d)}return o?null:i}mapSvgElementsToCenters(){if(!this.highlightValues)return null;const n=[];for(let i=0;i<this.highlightValues.length;i++)for(let o=0;o<this.highlightValues[i].length;o++){const s=this.highlightValues[i][o];if(s){const c=s.getBoundingClientRect();n.push({x:c.x+c.width/2,y:c.y+c.height/2,row:i,col:o,element:s})}}return n}findNearestPoint(n,i){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let c=0;c<this.highlightCenters.length;c++){const d=this.highlightCenters[c],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=c)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}updateVisualPointPosition(){const{row:n,col:i}=this.getSafeIndices();this.row=n,this.col=i}}class AB extends jo{constructor(n){var d;super(n);P(this,"supportsExtrema",!1);P(this,"movable");P(this,"points");P(this,"boxValues");P(this,"highlightValues");P(this,"highlightCenters");P(this,"orientation");P(this,"sections");P(this,"violinOptions");P(this,"min");P(this,"max");P(this,"minSectionIndex");this.violinOptions=n.violinOptions??{},this.orientation=n.orientation??Nt.VERTICAL,this.orientation===Nt.HORIZONTAL?this.points=[...n.data].reverse():this.points=n.data;const{sections:i,accessors:o}=this.buildViolinSections();this.sections=i,this.boxValues=this.computeBoxValues(o);const s=this.boxValues.map(h=>h.flatMap(y=>Array.isArray(y)?y:[y])).map(h=>h.filter(y=>!Number.isNaN(y)));this.min=Oi.minFrom2D(s),this.max=Oi.maxFrom2D(s),this.highlightValues=this.mapToSvgElements(n.selectors),this.orientation===Nt.HORIZONTAL&&((d=this.highlightValues)==null||d.reverse()),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new Wc(this.boxValues,{row:0});const c=this.sections.indexOf(aa.MIN);this.minSectionIndex=c>=0?c:0}buildViolinSections(){const n=[aa.MIN],i=[o=>o.min];return n.push(aa.Q1),i.push(o=>o.q1),this.violinOptions.showMedian!==!1&&(n.push(aa.Q2),i.push(o=>o.q2)),this.violinOptions.showMean===!0&&(n.push(aa.MEAN),i.push(o=>o.mean??Number.NaN)),n.push(aa.Q3),i.push(o=>o.q3),this.violinOptions.showExtrema!==!1&&(n.push(aa.MAX),i.push(o=>o.max)),{sections:n,accessors:i}}computeBoxValues(n){return this.orientation===Nt.HORIZONTAL?this.points.map(i=>n.map(o=>o(i))):n.map(i=>this.points.map(o=>i(o)))}dispose(){this.points.length=0,this.sections.length=0,super.dispose()}get values(){return this.boxValues}get dimension(){var i,o;const n=this.orientation===Nt.HORIZONTAL;return{rows:n?this.boxValues.length:((i=this.boxValues[this.row])==null?void 0:i.length)??0,cols:n?((o=this.boxValues[this.row])==null?void 0:o.length)??0:this.boxValues.length}}handleInitialEntry(){var i;this.isInitialEntry=!1;const n=this.minSectionIndex;this.orientation===Nt.VERTICAL?(this.row=Math.min(n,this.boxValues.length-1),this.col=0):(this.row=0,this.col=Math.min(n,((i=this.boxValues[0])==null?void 0:i.length)??1))}moveOnce(n){if(this.isInitialEntry)return this.handleInitialEntry(),this.notifyStateUpdate(),!0;if(!this.isMovable(n))return this.notifyOutOfBounds(),!1;const i=this.minSectionIndex;if(this.orientation===Nt.VERTICAL)if(n==="FORWARD")this.col+=1,this.row=i;else if(n==="BACKWARD")this.col-=1,this.row=i;else return super.moveOnce(n);else if(n==="UPWARD")this.row+=1,this.col=i;else if(n==="DOWNWARD")this.row-=1,this.col=i;else return super.moveOnce(n);return this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}get audio(){const n=this.orientation===Nt.HORIZONTAL,i=this.boxValues[this.row][this.col],o=n?this.col:this.row,s=Array.isArray(i)?i.length===0?o:i[i.length-1]-this.min:Number.isNaN(i)?o:i-this.min;return{freq:{min:this.min,max:this.max,raw:this.boxValues[this.row][this.col]},panning:{x:n?s:this.row,y:n?this.row:s,rows:n?this.boxValues.length:this.max-this.min,cols:n?this.max-this.min:this.boxValues.length}}}get text(){const n=this.orientation===Nt.HORIZONTAL,i=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],c=n?this.xAxis:this.yAxis,d=this.boxValues[this.row][this.col];return{main:{label:o,value:i.fill},cross:{label:c,value:d},section:s,mainAxis:n?"y":"x",crossAxis:n?"x":"y"}}get braille(){const n=this.orientation===Nt.HORIZONTAL,i=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:i,col:o}}getCurrentXValue(){return this.orientation===Nt.VERTICAL?this.col>=0?this.col:null:this.row>=0?this.row:null}moveToXValue(n){if(this.isInitialEntry&&this.handleInitialEntry(),typeof n!="number")return!1;const i=Math.floor(n),o=this.values,s=this.minSectionIndex;if(this.orientation===Nt.VERTICAL){const c=o.length>0?o[0].length:0;if(i<0||i>=c)return!1;const d=this.col;this.col=i,i!==d&&(this.row=s)}else{if(i<0||i>=o.length)return!1;const c=this.row;this.row=i,i!==c&&(this.col=s)}return this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}getCurrentYValue(){const n=this.values;if(this.orientation===Nt.VERTICAL){if(this.row>=0&&this.row<n.length&&this.col>=0){const i=n[this.row];if(Array.isArray(i)&&this.col<i.length){const o=i[this.col];return Array.isArray(o)?o.length>0?o[0]:null:typeof o=="number"?o:null}}}else if(this.row>=0&&this.row<n.length&&this.col>=0){const i=n[this.row];if(Array.isArray(i)&&this.col<i.length){const o=i[this.col];return Array.isArray(o)?o.length>0?o[0]:null:typeof o=="number"?o:null}}return null}moveToXAndYValue(n,i){if(this.isInitialEntry&&(this.isInitialEntry=!1),typeof n!="number")return!1;const o=Math.floor(n),s=this.values,c=this.minSectionIndex;if(this.orientation===Nt.VERTICAL){const d=s.length>0?s[0].length:0;if(o<0||o>=d)return!1;this.col=o;let h=c,y=1/0;for(let v=0;v<s.length;v++){const S=s[v];if(Array.isArray(S)&&o<S.length){const T=S[o];if(Array.isArray(T)){for(const w of T)if(typeof w=="number"){const C=Math.abs(w-i);C<y&&(y=C,h=v)}}else if(typeof T=="number"){const w=Math.abs(T-i);w<y&&(y=w,h=v)}}}this.row=h}else{if(o<0||o>=s.length)return!1;this.row=o;let d=c,h=1/0;const y=s[o];if(Array.isArray(y))for(let v=0;v<y.length;v++){const S=y[v];if(Array.isArray(S)){for(const T of S)if(typeof T=="number"){const w=Math.abs(T-i);w<h&&(h=w,d=v)}}else if(typeof S=="number"){const T=Math.abs(S-i);T<h&&(h=T,d=v)}}this.col=d}return this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}mapToSvgElements(n){if(!n||n.length!==this.points.length)return null;const i=this.orientation===Nt.VERTICAL,o=new Array;if(i)for(let c=0;c<this.sections.length;c++)o.push(Array.from({length:n.length}));const s=[];return n.forEach(c=>{const d=Ct.selectElement(c.min,!1),h=Ct.selectElement(c.max,!1),y=Ct.selectElement(c.iq,!1),v=Ct.selectElement(c.q2,!1),S=c.mean?Ct.selectElement(c.mean,!1):null;s.push({min:d,max:h,iq:y,q2:v,mean:S})}),s.forEach((c,d)=>{var _;const h=this.cloneElementOrEmpty(c.min),y=this.cloneElementOrEmpty(c.max),v=this.cloneElementOrEmpty(c.q2),S=this.cloneElementOrEmpty(c.mean),T=((_=this.layer.domMapping)==null?void 0:_.iqrDirection)==="reverse",[w,C]=c.iq?i?T?[Ct.createLineElement(c.iq,"top"),Ct.createLineElement(c.iq,"bottom")]:[Ct.createLineElement(c.iq,"bottom"),Ct.createLineElement(c.iq,"top")]:[Ct.createLineElement(c.iq,"left"),Ct.createLineElement(c.iq,"right")]:[Ct.createEmptyElement("line"),Ct.createEmptyElement("line")],R=[];R.push(h),R.push(w),this.violinOptions.showMedian!==!1&&R.push(v),this.violinOptions.showMean===!0&&R.push(S),R.push(C),this.violinOptions.showExtrema!==!1&&R.push(y),i?R.forEach((N,z)=>{o[z][d]=N}):o.push(R)}),o}cloneElementOrEmpty(n){if(!n)return Ct.createEmptyElement();const i=n.cloneNode(!0);return i.setAttribute(me.VISIBILITY,me.HIDDEN),n.insertAdjacentElement(me.AFTER_END,i),i}mapSvgElementsToCenters(){if(!this.highlightValues)return null;const n=[];for(let i=0;i<this.highlightValues.length;i++)for(let o=0;o<this.highlightValues[i].length;o++){const s=this.highlightValues[i][o],c=Array.isArray(s)?s[0]:s;if(c){const d=c.getBoundingClientRect();n.push({x:d.x+d.width/2,y:d.y+d.height/2,row:i,col:o,element:c})}}return n}findNearestPoint(n,i){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let c=0;c<this.highlightCenters.length;c++){const d=this.highlightCenters[c],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=c)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}moveToPoint(n,i){}updateVisualPointPosition(){const{row:n,col:i}=this.getSafeIndices();this.row=n,this.col=i}}class CB{static create(t){switch(t.type){case On.BAR:return new cB(t);case On.BOX:return new fB(t);case On.CANDLESTICK:return new pB(t);case On.HEATMAP:return new mB(t);case On.HISTOGRAM:return new gB(t);case On.LINE:return new j5(t);case On.SCATTER:return new yB(t);case On.SMOOTH:return wB(t);case On.DODGED:case On.NORMALIZED:case On.STACKED:return new xB(t);case On.VIOLIN_KDE:return new TB(t);case On.VIOLIN_BOX:return new AB(t);default:throw new Error(`Invalid trace type: ${t.type}`)}}}const OB="MAIDR Plot",MB="unavailable",RB="unavailable";class _B extends qw{constructor(n){super();P(this,"id");P(this,"movable");P(this,"title");P(this,"subtitle");P(this,"caption");P(this,"subplots");P(this,"size");P(this,"visualOrderMap");P(this,"invertVertical");P(this,"totalAxesCount");this.id=n.id,this.title=n.title??OB,this.subtitle=n.subtitle??MB,this.caption=n.caption??RB;const i=n.subplots;this.subplots=i.map(o=>o.map(s=>new DB(s))),this.size=this.subplots.reduce((o,s)=>o+s.length,0),this.visualOrderMap=new Map,this.invertVertical=!1,this.totalAxesCount=0,this.movable=new Wc(this.subplots)}get dimension(){return{rows:this.subplots.length,cols:this.subplots[this.row].length}}applyLayout(n){this.visualOrderMap=n.visualOrderMap,this.invertVertical=n.invertVertical,this.totalAxesCount=n.totalAxesCount;for(let i=0;i<this.subplots.length;i++)for(let o=0;o<this.subplots[i].length;o++){const s=n.axesElements.get(`${i},${o}`)??null;this.subplots[i][o].setAxesElement(s)}this.movable=new Wc(this.subplots,{row:n.topLeftRow})}moveOnce(n){return super.moveOnce(this.adjustDirection(n))}moveToExtreme(n){return super.moveToExtreme(this.adjustDirection(n))}adjustDirection(n){if(!this.invertVertical)return n;switch(n){case"UPWARD":return"DOWNWARD";case"DOWNWARD":return"UPWARD";default:return n}}dispose(){this.subplots.forEach(n=>n.forEach(i=>i.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.row},${this.col}`,i=this.visualOrderMap.get(n);i===void 0&&console.warn(`[Figure] Visual order map missing key "${n}". Was applyLayout() called?`);const o=this.activeSubplot;return{empty:!1,type:"figure",title:this.title,subtitle:this.subtitle,caption:this.caption,size:this.size,index:i??1,subplot:o.getStateWithFigurePosition(this.row,this.col),traceTypes:o.traceTypes,highlight:this.highlight}}get highlight(){if(this.totalAxesCount<=1)return{empty:!0,type:"trace",audio:{y:this.row,x:this.col,rows:this.subplots.length,cols:this.subplots[this.row].length}};const n=this.activeSubplot.axesElement;return n?{empty:!1,elements:n}:{empty:!0,type:"trace",audio:{y:this.row,x:this.col,rows:this.subplots.length,cols:this.subplots[this.row].length}}}moveToPoint(n,i){this.notifyStateUpdate()}get outOfBoundsState(){return{empty:!0,type:"figure"}}}class DB extends qw{constructor(n){var c;super();P(this,"movable");P(this,"traces");P(this,"traceTypes");P(this,"size");P(this,"highlightValue");P(this,"isViolinPlot");P(this,"layerSelector");P(this,"_axesElement",null);const i=n.layers;this.size=i.length;const o=(c=i[0])==null?void 0:c.selectors;this.layerSelector=typeof o=="string"?o:Array.isArray(o)&&typeof o[0]=="string"?o[0]:null;const s=i.map(d=>d.type);this.isViolinPlot=s.includes(On.VIOLIN_KDE)||s.includes(On.VIOLIN_BOX),this.traces=i.map(d=>[CB.create(d)]),this.traceTypes=this.traces.flat().map(d=>{const h=d.state;return h.empty?me.EMPTY:h.traceType}),this.highlightValue=this.mapToSvgElement(n.selector),this.movable=new Wc(this.traces)}get dimension(){return{rows:this.values.length,cols:this.values[this.row].length}}dispose(){this.traces.forEach(n=>n.forEach(i=>i.dispose())),this.traces.length=0,super.dispose()}getRow(){return this.row}getSize(){return this.size}get values(){return this.traces}get activeTrace(){return this.traces[this.row][this.col]}moveOnce(n){return this.size>1&&this.isInitialEntry&&(this.isInitialEntry=!1),super.moveOnce(n)}get state(){return{empty:!1,type:"subplot",size:this.size,index:this.row+1,trace:this.activeTrace.state,highlight:this.highlight}}get outOfBoundsState(){return{empty:!0,type:"subplot"}}get highlight(){return this.highlightValue===null?{empty:!0,type:"trace",audio:{y:this.row,x:this.col,rows:this.values.length,cols:this.values[this.row].length}}:{empty:!1,elements:this.highlightValue}}moveToPoint(n,i){this.notifyStateUpdate()}getStateWithFigurePosition(n,i){return this.state}getHighlightElement(){return this.highlightValue}getLayerSelector(){return this.layerSelector}get axesElement(){return this._axesElement}setAxesElement(n){this._axesElement=n}mapToSvgElement(n){return n?Ct.selectElement(n)??null:null}}const ja={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},Bg=class Bg{constructor(){P(this,"basePalette");P(this,"extendedPalette");this.basePalette=[{index:ja.SINE_BASIC,waveType:"sine",timbreModulation:{attack:.01,decay:.1,sustain:.8,release:.2}},{index:ja.SQUARE_BASIC,waveType:"square",timbreModulation:{attack:.005,decay:.05,sustain:.7,release:.15}},{index:ja.SAWTOOTH_BASIC,waveType:"sawtooth",timbreModulation:{attack:.02,decay:.08,sustain:.6,release:.25}},{index:ja.TRIANGLE_BASIC,waveType:"triangle",timbreModulation:{attack:.015,decay:.12,sustain:.9,release:.18}},{index:ja.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:ja.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:ja.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:ja.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:ja.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:ja.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:ja.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 i=this.generateExtendedEntry(t);return this.extendedPalette.set(t,i),i}get basePaletteSize(){return this.basePalette.length}getCandlestickGroupIndex(t){switch(t){case"Bull":return ja.SINE_BASIC;case"Bear":return ja.SAWTOOTH_SOFT;case"Neutral":return ja.TRIANGLE_BASIC;default:return ja.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,i)=>{this.extendedPalette.set(this.basePalette.length+i,n)})}generateExtendedEntry(t){const n=t%this.basePalette.length,i=this.basePalette[n],o=Math.floor((t-this.basePalette.length)/this.basePalette.length),s=this.generateHarmonics(o),c=this.generateTimbreModulation(o,i.timbreModulation);return{index:t,waveType:i.waveType,harmonicMix:{fundamental:1,harmonics:s},timbreModulation:c}}generateHarmonics(t){const n=[],i=Bg.MIN_HARMONICS+t%Bg.HARMONIC_VARIATION;for(let o=0;o<i;o++){const s=1+(o+1)*(.5+t*.3%1),c=.4/(o+1)*(1-t*.1%.3);n.push({frequency:s,amplitude:c})}return n}generateTimbreModulation(t,n){const i=1+t*.2%.5;return{attack:Math.max(.005,Math.min(.05,n.attack*i)),decay:Math.max(.05,Math.min(.3,n.decay*i)),sustain:Math.max(.4,Math.min(.9,n.sustain+t*.1%.2)),release:Math.max(.1,Math.min(.5,n.release*i))}}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.`)})}};P(Bg,"MIN_HARMONICS",2),P(Bg,"HARMONIC_VARIATION",3);let Ww=Bg;const NB=100,kB=440,zB=880,UC=180,$C=.2,IB=.1,Qw=.3,P5=ja.SINE_BASIC;class LB{constructor(t,n,i){P(this,"notification");P(this,"audioPalette");P(this,"isCombinedAudio");P(this,"mode");P(this,"activeAudioIds");P(this,"volume");P(this,"minFrequency");P(this,"maxFrequency");P(this,"audioContext");P(this,"compressor");this.notification=t,this.audioPalette=new Ww,this.isCombinedAudio=!1,this.mode="on",this.updateMode(i),this.activeAudioIds=new Map,this.volume=this.normalizeVolume(n.get("general.volume")),this.minFrequency=n.get("general.minFrequency"),this.maxFrequency=n.get("general.maxFrequency"),n.onChange(o=>{o.affectsSetting("general.volume")&&(this.volume=this.normalizeVolume(o.get("general.volume"))),o.affectsSetting("general.minFrequency")&&(this.minFrequency=o.get("general.minFrequency")),o.affectsSetting("general.maxFrequency")&&(this.maxFrequency=o.get("general.maxFrequency"))}),this.audioContext=new AudioContext,this.compressor=this.initCompressor()}dispose(){this.stopAll(),this.audioPalette.dispose(),this.audioContext.state!=="closed"&&(this.compressor.disconnect(),this.audioContext.close())}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"))}update(t){if(this.updateMode(t),this.mode==="off")return;if(t.empty){t.warning?this.playWarningTone():t.type==="trace"&&t.audio?this.playEmptyTone({x:t.audio.x,y:t.audio.y,rows:t.audio.rows,cols:t.audio.cols}):this.playEmptyTone({x:0,y:0,rows:1,cols:1});return}if(t.type!=="trace")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 i=n.group;n.trend&&i===void 0&&(i=this.audioPalette.getCandlestickGroupIndex(n.trend));const o=i!==void 0?this.audioPalette.getPaletteEntry(i):void 0;if(n.isContinuous)this.playSmooth(n.freq,n.panning,o,n.volumeMultiplier,n.volumeScale);else if(Array.isArray(n.freq.raw)){const s=n.freq.raw;if(s.length===0){this.playZeroTone(n.panning);return}let c=0;const d=this.mode==="on"?50:0,h=new Array,y=()=>{c<s.length?(this.playTone({min:n.freq.min,max:n.freq.max,raw:s[c++]},{x:n.panning.x,y:n.panning.y,rows:n.panning.rows,cols:n.panning.cols},o),h.push(setTimeout(y,d))):this.stop(h)};y()}else n.freq.raw===0?this.playZeroTone(n.panning):this.playTone(n.freq,n.panning,o)}playTone(t,n,i){const o={min:t.min,max:t.max},s={min:this.minFrequency,max:this.maxFrequency},c=this.interpolate(t.raw,o,s),d=this.clamp(this.interpolate(n.x,{min:0,max:n.cols-1},{min:-1,max:1}),-1,1);return this.playOscillator(c,{x:d,y:0},i)}createAdsrEnvelope(t,n,i,o,s){if(n!=null&&n.timbreModulation){const{attack:c,decay:d,sustain:h,release:y}=n.timbreModulation,v=s*c,S=s*d,T=s*y,w=s-v-S-T;return t.gain.setValueAtTime(1e-4*i,o),t.gain.linearRampToValueAtTime(i,o+v),t.gain.linearRampToValueAtTime(h*i,o+v+S),w>0&&t.gain.setValueAtTime(h*i,o+v+S+w),t.gain.linearRampToValueAtTime(1e-4*i,o+s),null}else return[.5*i,i,.5*i,.5*i,.5*i,.1*i,1e-4*i]}playOscillator(t,n={x:0,y:0},i){const o=Qw,s=this.audioContext.currentTime;i||(i=this.audioPalette.getPaletteEntry(P5));const c=[],d=[],h=this.audioContext.createOscillator();if(h.type=i.waveType,h.frequency.value=t,c.push(h),i.harmonicMix)for(const T of i.harmonicMix.harmonics){const w=this.audioContext.createOscillator();w.type=i.waveType,w.frequency.value=T.frequency*t,c.push(w)}for(let T=0;T<c.length;T++){const w=this.audioContext.createGain();let C=this.volume;if(T===0)i.harmonicMix&&(C*=i.harmonicMix.fundamental);else{const _=i.harmonicMix.harmonics[T-1];C*=_.amplitude}const R=this.createAdsrEnvelope(w,i,C,s,o);R!==null&&w.gain.setValueCurveAtTime(R,s,o),d.push(w)}const y=this.audioContext.createStereoPanner();y.pan.value=n.x;for(let T=0;T<c.length;T++)c[T].connect(d[T]),d[T].connect(y);y.connect(this.compressor),c.forEach(T=>T.start(s));const v=T=>{y.disconnect();for(let w=0;w<c.length;w++)c[w].stop(),c[w].disconnect(),d[w].disconnect();this.activeAudioIds.delete(T)},S=setTimeout(()=>v(S),o*1e3*2);return this.activeAudioIds.set(S,c),S}playSmooth(t,n,i,o,s){const c=this.audioContext,d=c.currentTime,h=Qw,y=t.raw.map(B=>this.interpolate(B,{min:t.min,max:t.max},{min:this.minFrequency,max:this.maxFrequency})),v=this.volume;let S;s!==void 0?S=v*Math.max(0,s):S=v*(o??1),y.length<2&&y.push(y[0]);const T=this.clamp(this.interpolate(n.x,{min:0,max:n.cols-1},{min:-1,max:1}),-1,1),w=(i==null?void 0:i.waveType)||"sine",C=c.createOscillator();C.type=w,C.frequency.setValueCurveAtTime(y,d,h);const R=c.createGain(),_=this.createAdsrEnvelope(R,i,S,d,h);_!==null&&R.gain.setValueCurveAtTime(_,d,h);const N=c.createStereoPanner();N.pan.value=T,C.connect(R),R.connect(N),N.connect(this.compressor),C.start(d),C.stop(d+h);const z=setTimeout(()=>{C.disconnect(),R.disconnect(),N.disconnect(),this.activeAudioIds.delete(z)},h*1e3*2);this.activeAudioIds.set(z,C)}playEmptyTone(t){const n=this.interpolate(t.x,{min:0,max:t.cols-1},{min:-1,max:1}),i=this.audioContext,o=i.currentTime,s=.2,c=i.createStereoPanner();c.pan.value=n;const d=[500,1e3,1500,2100,2700],h=[1,.6,.4,.2,.1],y=i.createGain();y.gain.setValueAtTime(.3*this.volume,o),y.gain.exponentialRampToValueAtTime(.01*this.volume,o+s),y.connect(c),c.connect(this.compressor);const v=[];for(let w=0;w<d.length;w++){const C=i.createOscillator(),R=i.createGain();C.frequency.value=d[w],C.type="sine",R.gain.setValueAtTime(h[w]*this.volume,o),R.gain.exponentialRampToValueAtTime(.001*this.volume,o+s),C.connect(R),R.connect(y),C.start(o),C.stop(o+s),v.push(C)}const S=w=>{c.disconnect(),y.disconnect(),v.forEach(C=>{C.disconnect()}),this.activeAudioIds.delete(w)},T=setTimeout(()=>S(T),s*1e3*2);return this.activeAudioIds.set(T,v),T}playOneWarningBeep(t,n){const i=this.audioContext.createOscillator(),o=this.audioContext.createGain();i.type="sine",i.frequency.value=t;let s=1;i.type!=="sine"&&(s=.5),o.gain.setValueAtTime(s,n),o.gain.exponentialRampToValueAtTime(.001,n+$C),i.connect(o),o.connect(this.audioContext.destination),i.start(n),i.stop(n+$C)}playWarningTone(){const t=this.audioContext.currentTime;this.playOneWarningBeep(UC,t),this.playOneWarningBeep(UC/2**(1/12),t+IB)}playWarningToneIfEnabled(){this.mode!=="off"&&this.playWarningTone()}playZeroTone(t){const n=this.clamp(this.interpolate(t.x,{min:0,max:t.cols-1},{min:-1,max:1}),-1,1);return this.playOscillator(NB,{x:n,y:0},{index:P5,waveType:"triangle"})}playWaitingTone(){const t=this.audioPalette.getPaletteEntry(P5);return setInterval(()=>this.playOscillator(kB,{x:0,y:0},t),1e3)}playCompleteTone(){const t=this.audioPalette.getPaletteEntry(P5);return this.playOscillator(zB,{x:0,y:0},t)}playSimultaneousTones(t){const n=Qw,i=this.audioContext,o=i.currentTime,s=Array.isArray(t[0].freq.raw)?t[0].freq.raw[1]??t[0].freq.raw[0]:t[0].freq.raw,c=this.interpolate(s,{min:t[0].freq.min,max:t[0].freq.max},{min:this.minFrequency,max:this.maxFrequency});t.forEach((d,h)=>{const v=this.audioPalette.getPaletteEntry(d.group??h).waveType,S=i.createOscillator();S.type=v,S.frequency.value=c;const T=i.createGain();T.gain.setValueAtTime(this.volume,o),T.gain.exponentialRampToValueAtTime(.01*this.volume,o+n),S.connect(T),T.connect(this.compressor),S.start(o),S.stop(o+n);const w=setTimeout(()=>{S.disconnect(),T.disconnect(),this.activeAudioIds.delete(w)},n*1e3*2);this.activeAudioIds.set(w,[S])})}interpolate(t,n,i){return n.min===n.max?i.min:(t-n.min)/(n.max-n.min)*(i.max-i.min)+i.min}clamp(t,n,i){return Math.max(n,Math.min(t,i))}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(i=>{const o=this.activeAudioIds.get(i);if(!o){clearInterval(i);return}(Array.isArray(o)?o:[o]).forEach(c=>{c==null||c.disconnect(),c==null||c.stop()}),clearTimeout(i),this.activeAudioIds.delete(i)})}stopAll(){this.activeAudioIds.forEach((t,n)=>{clearTimeout(n),(Array.isArray(t)?t:[t]).forEach(o=>{o.disconnect(),o.stop()})}),this.activeAudioIds.clear()}normalizeVolume(t){return t/100*(t/100)}}const VB=250,BB=10,jB=500,HC=20;class PB{constructor(t,n,i){P(this,"context");P(this,"notification");P(this,"settings");P(this,"autoplayId");P(this,"currentDirection");P(this,"userSpeed");P(this,"defaultSpeed");P(this,"minSpeed");P(this,"maxSpeed");P(this,"autoplayRate");P(this,"interval");P(this,"totalDuration");P(this,"onChangeEmitter");P(this,"onChange");this.notification=n,this.context=t,this.settings=i,this.autoplayId=null,this.currentDirection=null,this.userSpeed=null,this.defaultSpeed=VB,this.minSpeed=BB,this.maxSpeed=jB,this.interval=HC,this.autoplayRate=this.defaultSpeed,this.interval=HC,this.totalDuration=i.get("general.autoplayDuration"),i.onChange(o=>{o.affectsSetting("general.autoplayDuration")&&(this.totalDuration=o.get("general.autoplayDuration"),this.restart())}),this.onChangeEmitter=new Yc,this.onChange=this.onChangeEmitter.event}dispose(){this.stop(),this.onChangeEmitter.dispose()}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 i=Math.ceil(this.totalDuration/n.autoplay[t]);return this.defaultSpeed=i,this.minSpeed=Math.min(this.minSpeed,i),i}return this.defaultSpeed}}const qC=32;class vv{encode(t){const n=new Array,i=new Array,o=new Array;for(let s=0;s<t.values.length;s++){i.push(new Array);const c=(t.max[s]-t.min[s])/4,d=t.min[s]+c,h=d+c,y=h+c;for(let v=0;v<t.values[s].length;v++)t.values[s][v]===0?n.push(" "):t.values[s][v]<=d||t.values[s][v]<=h?n.push("⠤"):t.values[s][v]<=y?n.push("⠒"):n.push("⠉"),i[s].push(o.length),o.push({row:s,col:v});n.push(me.NEW_LINE),i[s].push(o.length),o.push({row:s,col:t.values[s].length})}return{value:n.join(me.EMPTY),cellToIndex:i,indexToCell:o}}}class GC{constructor(){P(this,"GLOBAL_MIN","globalMin");P(this,"GLOBAL_MAX","globalMax");P(this,"BLANK","blank");P(this,"LOWER_OUTLIER","lowerOutlier");P(this,"UPPER_OUTLIER","upperOutlier");P(this,"MIN","min");P(this,"MAX","max");P(this,"Q1","q1");P(this,"Q2","q2");P(this,"Q3","q3")}encode(t,n=qC){const i=new Array,o=new Array,s=new Array;for(let c=0;c<t.values.length;c++){const d=t.values[c],h=[{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 v=!0;for(let X=0;X<h.length-1;X++){const se=h[X],ce=h[X+1],ie=Math.abs(v?ce.value-se.value:se.value-h[X-1].value);se.type===this.LOWER_OUTLIER||se.type===this.UPPER_OUTLIER?(y.push({type:se.type,length:0,numChars:1}),y.push({type:this.BLANK,length:ie,numChars:0})):se.type===this.Q2?(v=!1,y.push({type:this.Q2,length:0,numChars:2})):se.type===this.GLOBAL_MIN||se.type===this.GLOBAL_MAX?y.push({type:this.BLANK,length:ie,numChars:0}):y.push({type:se.type,length:ie,numChars:1})}let S=y.reduce((X,se)=>X+(se.numChars>0?se.numChars:0),0),[T,w,C,R]=[-1,-1,-1,-1];for(let X=0;X<y.length;X++)y[X].type===this.MIN&&y[X].length>0&&(T=X),y[X].type===this.MAX&&y[X].length>0&&(w=X),y[X].type===this.Q1&&(C=X),y[X].type===this.Q3&&(R=X);T!==-1&&w!==-1&&y[T].length!==y[w].length&&(y[T].length>y[w].length?(y[T].numChars++,S++):(y[w].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 _=Math.max(0,n-S),N=y.reduce((X,se)=>X+(se.type!==this.Q2&&se.length>0?se.length:0),0);for(const X of y)if(X.type!==this.Q2&&X.length>0){const se=Math.round(X.length/N*_);X.numChars+=se}const z=y.reduce((X,se)=>X+se.numChars,0);let B=n-z,V=0;for(;B!==0;){const X=y[V%y.length];X.type!==this.BLANK&&X.type!==this.Q2&&X.length>0&&(X.numChars+=B>0?1:-1,B+=B>0?-1:1),V++}let L=-1;const U=[this.LOWER_OUTLIER,this.MIN,this.Q1,this.Q2,this.Q3,this.MAX,this.UPPER_OUTLIER];s.push(Array.from({length:U.length}).fill(-1));for(const X of y){X.type!==this.BLANK&&X.type!==this.GLOBAL_MIN&&X.type!==this.GLOBAL_MAX&&(L=U.indexOf(X.type),s[c][L]=i.length);for(let se=0;se<X.numChars;se++){let ce="⠀";X.type===this.MIN||X.type===this.MAX?ce="⠒":X.type===this.Q1||X.type===this.Q3?ce="⠿":X.type===this.Q2?ce=se===0?"⠸":"⠇":X.type===this.LOWER_OUTLIER||X.type===this.UPPER_OUTLIER?ce="⠂":X.type===this.BLANK&&(ce="⠀"),i.push(ce),o.push({row:c,col:L})}}for(let X=0;X<3;X++)if(s[c][X]===-1){for(let se=X+1;se<=3;se++)if(s[c][se]!==-1){s[c][X]=s[c][se];break}}for(let X=6;X>3;X--)if(s[c][X]===-1){for(let se=X-1;se>=3;se--)if(s[c][se]!==-1){s[c][X]=s[c][se];break}}i.push(me.NEW_LINE),o.push({row:c,col:L})}return{value:i.join(me.EMPTY),cellToIndex:s,indexToCell:o}}}class UB{encode(t){const n=new Array,i=new Array,o=new Array,s=(t.max-t.min)/3,c=t.min+s,d=c+s;for(let h=0;h<t.values.length;h++){i.push(new Array);for(let y=0;y<t.values[h].length;y++)t.values[h][y]===0?n.push(" "):t.values[h][y]<=c?n.push("⠤"):t.values[h][y]<=d?n.push("⠒"):n.push("⠉"),i[h].push(o.length),o.push({row:h,col:y});n.push(me.NEW_LINE),i[h].push(o.length),o.push({row:h,col:t.values[h].length})}return{value:n.join(me.EMPTY),cellToIndex:i,indexToCell:o}}}class FC{encode(t){const n=new Array,i=new Array,o=new Array;for(let s=0;s<t.values.length;s++){i.push(new Array);const{low:c,medium:d,mediumHigh:h,high:y}=this.getThresholds(s,t);for(let v=0;v<t.values[s].length;v++){const S=t.values[s][v],T=v>0?t.values[s][v-1]:null,w=this.getBrailleChar(S,T,c,d,y,h);n.push(w),i[s].push(o.length),o.push({row:s,col:v})}n.push(me.NEW_LINE),i[s].push(o.length),o.push({row:s,col:t.values[s].length})}return{value:n.join(me.EMPTY),cellToIndex:i,indexToCell:o}}getBrailleChar(t,n,i,o,s,c){return c===void 0&&(c=s),t<=i&&n!==null&&n>i?n<=o?"⢄":n<=c?"⢆":"⢇":t<=i?"⣀":n!==null&&n<=i?t<=o?"⡠":t<=c?"⡰":"⡸":t<=o&&n!==null&&n>o?n<=c?"⠢":"⠣":t<=o?"⠤":n!==null&&n<=o?t<=c?"⠔":"⠜":t<=c&&n!==null&&n>c?"⠑":t<=c?"⠒":n!==null&&n<=c?"⠊":t<=s?"⠉":""}getBraille6Char(t,n,i,o,s){const c=S=>S<=i?"low":S<=o?"medium":(S<=s,"high"),d=c(t),h=n!==null?c(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":"⠉"},v=`${d},${h}`;return y[v]||""}addDot8(t){if(!t||t.length===0)return"⢀";const o=t.charCodeAt(0)-10240|128;return String.fromCharCode(10240+o)}}class $B extends FC{getThresholds(t,n){const i=Array.isArray(n.min)?n.min[t]:n.min,o=Array.isArray(n.max)?n.max[t]:n.max,s=(o-i)/3,c=i+s,d=c+s;return{low:c,medium:d,high:o}}encode(t){var s;const n=new Array,i=new Array,o=new Array;for(let c=0;c<t.values.length;c++){i.push(new Array);const{low:d,medium:h,high:y}=this.getThresholds(c,t);for(let v=0;v<t.values[c].length;v++){const S=t.values[c][v],T=v>0?t.values[c][v-1]:null;let w=this.getBraille6Char(S,T,d,h,y);((s=t.custom)==null?void 0:s[v])==="Bear"&&(w=this.addDot8(w)),n.push(w),i[c].push(o.length),o.push({row:c,col:v})}n.push(me.NEW_LINE),i[c].push(o.length),o.push({row:c,col:t.values[c].length})}return{value:n.join(me.EMPTY),cellToIndex:i,indexToCell:o}}}class Kw extends FC{getThresholds(t,n){const i=(n.max[t]-n.min[t])/4,o=n.min[t]+i,s=o+i,c=s+i,d=n.max[t];return{low:o,medium:s,mediumHigh:c,high:d}}}class HB{constructor(t,n,i){P(this,"context");P(this,"notification");P(this,"display");P(this,"enabled");P(this,"cacheId");P(this,"cache");P(this,"encoders");P(this,"onChangeEmitter");P(this,"onChange");this.context=t,this.notification=n,this.display=i,this.enabled=!1,this.cacheId=me.EMPTY,this.cache=null,this.encoders=new Map([[On.BAR,new vv],[On.BOX,new GC],[On.CANDLESTICK,new $B],[On.DODGED,new vv],[On.HEATMAP,new UB],[On.HISTOGRAM,new vv],[On.LINE,new Kw],[On.NORMALIZED,new vv],[On.SMOOTH,new Kw],[On.STACKED,new vv],[On.VIOLIN_KDE,new Kw],[On.VIOLIN_BOX,new GC]]),this.onChangeEmitter=new Yc,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 i=n.braille;if(this.cache===null||this.cacheId!==i.id){const o=this.encoders.get(n.traceType);this.cache=o.encode(i,qC),this.cacheId=i.id}this.onChangeEmitter.fire({value:this.cache.value.trim(),index:this.cache.cellToIndex[i.row][i.col]})}moveToIndex(t){if(!this.enabled||this.cache===null||t<0||t>=this.cache.indexToCell.length)return;const{row:n,col:i}=this.cache.indexToCell[t];this.context.moveToIndex(n,i)}toggle(t){if(t.empty){this.notification.notify("No info for braille");return}if(t.braille.empty){const i=`Braille is not supported for plot type: ${t.braille.traceType}`;this.notification.notify(i);return}this.enabled=!this.enabled,this.update(t),this.display.toggleFocus(dn.BRAILLE);const n=`Braille is ${this.enabled?"on":"off"}`;this.notification.notify(n)}}var YC=(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))(YC||{});class XC{constructor(){}static async post(t,n,i){const o={...this.DEFAULT_HEADERS,...i};return this.request(t,"POST",o,n)}static async request(t,n,i,o){try{const s=await fetch(t,{method:n,headers:i,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:YC.SERVER_ERROR,message:s instanceof Error?s.message:"Unknown error occurred"}}}}}P(XC,"DEFAULT_HEADERS",{"Content-Type":"application/json"});const qB=`You are a helpful assistant that answers questions about statistical visualizations. Your role is to:
|
|
346
|
+
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: ${LC(o,n.orientation)}${s}. ${i} Use Arrows to navigate data points. Toggle B for Braille, T for Text, S for Sonification, and R for Review mode.`}}}}class B5{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 i=n.match(/^rgba?\((\d+),(\d+),(\d+)(?:,\d*(?:\.\d*)?)?\)$/);return i?{r:Number.parseInt(i[1],10),g:Number.parseInt(i[2],10),b:Number.parseInt(i[3],10)}:null}static invert(t){return{r:255-t.r,g:255-t.g,b:255-t.b}}static getContrastRatio(t,n){const i=this.calculateLuminance(t),o=this.calculateLuminance(n);return(Math.max(i,o)+.05)/(Math.min(i,o)+.05)}static calculateLuminance(t){const[n,i,o]=[t.r,t.g,t.b].map(s=>{const c=s/255;return c<=.03928?c/12.92:((c+.055)/1.055)**2.4});return .2126*n+.7152*i+.0722*o}static rgbToString(t){return`rgb(${t.r}, ${t.g}, ${t.b})`}static isEqual(t,n){const i=this.parse(t),o=this.parse(n);return!i||!o?!1:i.r===o.r&&i.g===o.g&&i.b===o.b}}class Ct{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((h,y)=>{const v=new Image;v.onload=()=>h(v),v.onerror=()=>y(new Error("Failed to load SVG image")),v.src=o}),c=document.createElement("canvas");[c.width,c.height]=[s.naturalWidth,s.naturalHeight];const d=c.getContext("2d");return d?(d.drawImage(s,0,0),c.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(i=>{if(!n)return i;const o=i.cloneNode(!0);return o.setAttribute(me.VISIBILITY,me.HIDDEN),i.insertAdjacentElement(me.AFTER_END,o),o})}static selectElement(t,n=!0){const i=document.querySelector(t);if(!n)return i;const o=i==null?void 0:i.cloneNode(!0);return o==null||o.setAttribute(me.VISIBILITY,me.HIDDEN),i==null||i.insertAdjacentElement(me.AFTER_END,o),o}static createEmptyElement(t="rect"){const n=document.createElementNS(this.SVG_NAMESPACE,t);return n.setAttribute(me.FILL,me.TRANSPARENT),n.setAttribute(me.STROKE,me.TRANSPARENT),n.setAttribute(me.VISIBILITY,me.HIDDEN),n}static createCircleElement(t,n,i){var y;const o=window.getComputedStyle(i),s=o.stroke||o.fill,c=o.strokeWidth||"2",d=Number.parseFloat(c)*2,h=document.createElementNS(this.SVG_NAMESPACE,me.CIRCLE);return h.setAttribute(me.CIRCLE_X,String(t)),h.setAttribute(me.CIRCLE_Y,String(n)),h.setAttribute(me.RADIUS,String(d)),h.setAttribute(me.FILL,s),h.setAttribute(me.STROKE,s),h.setAttribute(me.STROKE_WIDTH,c),h.setAttribute(me.VISIBILITY,me.HIDDEN),(y=i.parentElement)==null||y.appendChild(h),h}static createLineElement(t,n){const o=t.getBBox(),s=o.width||this.MIN_LINE_SPAN,c=o.height||this.MIN_LINE_SPAN,d=o.x+o.width/2,h=o.y+o.height/2;let y,v,S,T;switch(n){case"top":o.width===0?[y,v,S,T]=[d-s/2,o.y,d+s/2,o.y]:[y,v,S,T]=[o.x,o.y,o.x+o.width,o.y];break;case"bottom":o.width===0?[y,v,S,T]=[d-s/2,o.y+o.height,d+s/2,o.y+o.height]:[y,v,S,T]=[o.x,o.y+o.height,o.x+o.width,o.y+o.height];break;case"left":o.height===0?[y,v,S,T]=[o.x,h-c/2,o.x,h+c/2]:[y,v,S,T]=[o.x,o.y,o.x,o.y+o.height];break;case"right":o.height===0?[y,v,S,T]=[o.x+o.width,h-c/2,o.x+o.width,h+c/2]:[y,v,S,T]=[o.x+o.width,o.y,o.x+o.width,o.y+o.height];break}const w=window.getComputedStyle(t),C=document.createElementNS(this.SVG_NAMESPACE,me.LINE);return C.setAttribute(me.X1,String(y)),C.setAttribute(me.Y1,String(v)),C.setAttribute(me.X2,String(S)),C.setAttribute(me.Y2,String(T)),C.setAttribute(me.STROKE,w.stroke),C.setAttribute(me.STROKE_WIDTH,w.strokeWidth||"2"),C.setAttribute(me.VISIBILITY,me.HIDDEN),t.insertAdjacentElement(me.AFTER_END,C),C}static getAdjustedOpacity(t,n){const i=t?Number.parseFloat(t):Number.NaN;return!Number.isNaN(i)&&i>n?i.toString():"1"}static createHighlightElement(t,n){try{const S=t.getBBox();if(S.width===0&&S.height===0){const T=window.getComputedStyle(t),w=Number.parseFloat(T.strokeWidth||"2"),C=Math.max(w*1.5,4),R=document.createElementNS(this.SVG_NAMESPACE,"circle");return R.setAttribute("cx",String(S.x)),R.setAttribute("cy",String(S.y)),R.setAttribute("r",String(C)),R.setAttribute(me.FILL,n),R.setAttribute(me.STROKE,n),R.setAttribute(me.STROKE_WIDTH,"2"),R.setAttribute(me.VISIBILITY,me.VISIBLE),t.insertAdjacentElement(me.AFTER_END,R),R}}catch{}const i=t.cloneNode(!0),o=t.tagName.toLowerCase(),s=o===me.POLYLINE||o===me.LINE,c=window.getComputedStyle(t),d=s?c.getPropertyValue(me.STROKE):c.getPropertyValue(me.FILL),h=this.getHighlightColor(d,n),y=c.getPropertyValue("fill-opacity"),v=c.getPropertyValue("stroke-opacity");if(i.style.fillOpacity=this.getAdjustedOpacity(y,this.MIN_VISIBLE_FILL_OPACITY),i.style.strokeOpacity=this.getAdjustedOpacity(v,this.MIN_VISIBLE_STROKE_OPACITY),i.setAttribute(me.VISIBILITY,me.VISIBLE),i.setAttribute(me.STROKE,h),i.setAttribute(me.FILL,h),i.style.fill=h,i.style.stroke=h,s){const S=window.getComputedStyle(i).getPropertyValue(me.STROKE_WIDTH),T=S.match(/^([0-9.]+)([a-z%]*)$/i);if(T){const w=Number.parseFloat(T[1]),C=T[2]||"";i.setAttribute(me.STROKE_WIDTH,`${w+this.STROKE_WIDTH_HIGHLIGHT_INCREASE}${C}`)}else{const w=Number.parseFloat(S),C=Number.isNaN(w)?this.STROKE_WIDTH_HIGHLIGHT_INCREASE:w+this.STROKE_WIDTH_HIGHLIGHT_INCREASE;i.setAttribute(me.STROKE_WIDTH,`${C}`)}}return t.insertAdjacentElement(me.AFTER_END,i),i}static getHighlightColor(t,n){const i=B5.parse(t);if(!i||!(B5.getContrastRatio(i,me.HIGHLIGHT_BASE_COLOR)<me.HIGHLIGHT_CONTRAST_RATIO))return n;const c={...i};return i.r===i.g&&i.g===i.b?(c.r=Math.min(me.HIGHLIGHT_MAX_COLOR,Math.floor(i.r*me.HIGHLIGHT_COLOR_RATIO)),c.g=Math.min(me.HIGHLIGHT_MAX_COLOR,Math.floor(i.g*me.HIGHLIGHT_COLOR_RATIO)),c.b=Math.min(me.HIGHLIGHT_MAX_COLOR,Math.floor(i.b*me.HIGHLIGHT_COLOR_RATIO))):i.r>=i.g&&i.r>=i.b?c.r=Math.min(me.HIGHLIGHT_MAX_COLOR,Math.floor(i.r*me.HIGHLIGHT_COLOR_RATIO)):i.g>=i.r&&i.g>=i.b?c.g=Math.min(me.HIGHLIGHT_MAX_COLOR,Math.floor(i.g*me.HIGHLIGHT_COLOR_RATIO)):c.b=Math.min(me.HIGHLIGHT_MAX_COLOR,Math.floor(i.b*me.HIGHLIGHT_COLOR_RATIO)),B5.rgbToString(c)}static getContrastingColorForElement(t){const n=window.getComputedStyle(t).fill||"rgb(255,255,255)",i=B5.parse(n);return i?(.2126*i.r+.7152*i.g+.0722*i.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,i){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)")&&(i?s=window.getComputedStyle(i).getPropertyValue("fill"):s=n);const c=this.getHighlightColor(s,n);o.setAttribute("stroke",c),o.setAttribute("stroke-width","4")}}static removeSubplotHighlightSvg(t){const n=t.querySelector("rect, path");n&&(n.removeAttribute("stroke"),n.removeAttribute("stroke-width"))}}P(Ct,"SVG_NAMESPACE","http://www.w3.org/2000/svg"),P(Ct,"MIN_LINE_SPAN",10),P(Ct,"MIN_VISIBLE_FILL_OPACITY",.01),P(Ct,"MIN_VISIBLE_STROKE_OPACITY",.01),P(Ct,"STROKE_WIDTH_HIGHLIGHT_INCREASE",2);const iB="unavailable",aB="X",oB="Y",lB="unavailable";class qw{constructor(){P(this,"observers");P(this,"isWarning");this.observers=new Array,this.isWarning=!1}dispose(){this.observers.length=0}notifyRotorBounds(){this.isWarning=!0,this.notifyStateUpdate(),this.isWarning=!1}get isInitialEntry(){return this.movable.isInitialEntry}set isInitialEntry(t){this.movable.isInitialEntry=t}get isOutOfBounds(){return this.movable.isOutOfBounds}set isOutOfBounds(t){this.movable.isOutOfBounds=t}get row(){return this.movable.row}get col(){return this.movable.col}set row(t){this.movable.row=t}set col(t){this.movable.col=t}getSafeIndices(){const t=this.row>=0&&this.row<this.dimension.rows?this.row:0,n=this.col>=0&&this.col<this.dimension.cols?this.col:0;return{row:t,col:n}}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyStateUpdate(){const t=this.state;this.observers.forEach(n=>n.update(t))}notifyOutOfBounds(){const t=this.outOfBoundsState;this.observers.forEach(n=>n.update(t))}moveOnce(t){const n=this.movable.moveOnce(t);return n?this.notifyStateUpdate():this.notifyOutOfBounds(),n}moveToExtreme(t){const n=this.movable.moveToExtreme(t);return n?this.notifyStateUpdate():this.notifyOutOfBounds(),n}moveToIndex(t,n){const i=this.movable.moveToIndex(t,n);return i?this.notifyStateUpdate():this.notifyOutOfBounds(),i}isMovable(t){return this.movable.isMovable(t)}notifyObserversWithState(t){for(const n of this.observers)n.update(t)}moveToNextCompareValue(t,n){return this.notifyRotorBounds(),!1}compare(t,n,i){return i==="lower"?t<n:i==="higher"?t>n:!1}moveUpRotor(t){throw new Error("Move up function is not defined for this trace")}moveDownRotor(t){throw new Error("Move down function is not defined for this trace")}moveLeftRotor(t){throw new Error("Move left function is not defined for this trace")}moveRightRotor(t){throw new Error("Move right function is not defined for this trace")}moveToPoint(t,n){}}class jo extends qw{constructor(n){var i,o,s;super();P(this,"id");P(this,"type");P(this,"title");P(this,"xAxis");P(this,"yAxis");P(this,"fill");P(this,"navigationService");P(this,"layer");this.layer=n,this.navigationService=new Bw,this.id=n.id,this.type=n.type,this.title=n.title??iB,this.xAxis=((i=n.axes)==null?void 0:i.x)??aB,this.yAxis=((o=n.axes)==null?void 0:o.y)??oB,this.fill=((s=n.axes)==null?void 0:s.fill)??lB}dispose(){this.highlightValues&&(this.highlightValues.forEach(n=>n.forEach(i=>{(Array.isArray(i)?i:[i]).forEach(s=>s.remove())})),this.highlightValues.length=0),super.dispose()}get state(){return this.isWarning?{empty:!0,type:"trace",traceType:this.type,audio:{y:this.row,x:this.col,rows:this.dimension.rows,cols:this.dimension.cols},warning:!0}:{empty:!1,type:"trace",layerId:this.id,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,orientation:this.layer.orientation}}get outOfBoundsState(){return{empty:!0,type:"trace",traceType:this.type,audio:{y:this.row,x:this.col,rows:this.dimension.rows,cols:this.dimension.cols}}}get highlight(){return this.highlightValues===null||this.isInitialEntry?this.outOfBoundsState:{empty:!1,elements:this.highlightValues[this.row][this.col]}}getAllHighlightElements(){if(this.highlightValues===null)return[];const n=[];for(const i of this.highlightValues)for(const o of i)Array.isArray(o)?n.push(...o):o&&n.push(o);return n}getAllOriginalElements(){if(this.highlightValues===null)return[];const n=[];for(const i of this.highlightValues)for(const o of i){const s=Array.isArray(o)?o:o?[o]:[];for(const c of s){const d=c.previousElementSibling;d&&d.tagName===c.tagName&&d.getAttribute("visibility")!=="hidden"&&n.push(d)}}return n}getAudioGroupIndex(){return this.values&&this.values.length>1?{groupIndex:this.row}:{}}get autoplay(){return{UPWARD:this.dimension.rows,DOWNWARD:this.dimension.rows,FORWARD:this.dimension.cols,BACKWARD:this.dimension.cols}}resetToInitialEntry(){this.isInitialEntry=!0,this.row=0,this.col=0}get 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 i=this.getPointsArray();if(this.isValidPointsArray(i))return this.navigationService.moveToXValueInPoints(i,n,this.moveToIndex.bind(this))}if(this.hasValuesArray()){const i=this.values;if(this.isValidValuesArray(i))return this.navigationService.moveToXValueInValues(i,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,i){const o=this.findNearestPoint(n,i);if(o&&this.isPointInBounds(n,i,o)){if(this.row===o.row&&this.col===o.col)return;this.moveToIndex(o.row,o.col)}}isPointInBounds(n,i,{element:o,row:s,col:c}){const d=o.getBoundingClientRect();let h=12;return(this.type===wn.HEATMAP||this.type===wn.BAR||this.type===wn.STACKED||this.type===wn.HISTOGRAM)&&(h=0),n>=d.x-h&&n<=d.x+d.width+h&&i>=d.y-h&&i<=d.y+d.height+h}}class Oi{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],i=t[0];for(let o=1;o<t.length;o++){const s=t[o];s<n&&(n=s),s>i&&(i=s)}return{min:n,max:i}}static minMaxFrom2D(t){const n=t.flat();return this.minMax(n)}}class Gw{constructor(t){P(this,"isInitialEntry");P(this,"isOutOfBounds");P(this,"row");P(this,"col");this.isInitialEntry=(t==null?void 0:t.isInitialEntry)??!0,this.isOutOfBounds=!1,this.row=(t==null?void 0:t.row)??0,this.col=(t==null?void 0:t.col)??0}moveToIndex(t,n){return this.isMovable([t,n])?(this.row=t,this.col=n,this.isInitialEntry=!1,!0):!1}}class Wc extends Gw{constructor(n,i){super(i);P(this,"elements");this.elements=n}moveOnce(n){if(this.isInitialEntry)return this.handleInitialEntry(),!0;if(!this.isMovable(n))return!1;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}return!0}moveToExtreme(n){switch(this.isInitialEntry&&this.handleInitialEntry(),n){case"UPWARD":this.row=this.elements.length-1;break;case"DOWNWARD":this.row=0;break;case"FORWARD":this.col=this.elements[this.row].length-1;break;case"BACKWARD":this.col=0;break}return!0}moveToIndex(n,i){return this.isMovable([n,i])?(this.row=n,this.col=i,this.isInitialEntry=!1,!0):!1}isMovable(n){if(Array.isArray(n)){const[i,o]=n;return i>=0&&i<this.elements.length&&o>=0&&o<this.elements[this.row].length}switch(n){case"UPWARD":return this.row<this.elements.length-1;case"DOWNWARD":return this.row>0;case"FORWARD":return this.col<this.elements[this.row].length-1;case"BACKWARD":return this.col>0}}handleInitialEntry(){this.isInitialEntry=!1,this.row=Math.max(0,Math.min(this.row,this.elements.length-1)),this.col=Math.max(0,Math.min(this.col,this.elements[this.row].length-1))}}class sB extends Gw{constructor(n,i){super(i);P(this,"graph");this.graph=n}moveOnce(n){var s;if(this.isInitialEntry)return this.handleInitialEntry(),!0;const i=(s=this.graph[this.row])==null?void 0:s[this.col];if(!i)return!1;let o=null;switch(n){case"UPWARD":o=i.up;break;case"DOWNWARD":o=i.down;break;case"FORWARD":o=i.right;break;case"BACKWARD":o=i.left;break}return o?(this.row=o.row,this.col=o.col,!0):!1}moveToExtreme(n){var s;this.isInitialEntry&&this.handleInitialEntry();const i=(s=this.graph[this.row])==null?void 0:s[this.col];if(!i)return!1;let o=null;switch(n){case"UPWARD":o=i.top;break;case"DOWNWARD":o=i.bottom;break;case"FORWARD":o=i.end;break;case"BACKWARD":o=i.start;break}return o?(this.row=o.row,this.col=o.col,!0):!1}isMovable(n){var o,s,c;if(Array.isArray(n)){const[d,h]=n;return((o=this.graph[d])==null?void 0:o[h])!==null&&((s=this.graph[d])==null?void 0:s[h])!==void 0}const i=(c=this.graph[this.row])==null?void 0:c[this.col];if(!i)return!1;switch(n){case"UPWARD":return i.up!==null;case"DOWNWARD":return i.down!==null;case"FORWARD":return i.right!==null;case"BACKWARD":return i.left!==null}}handleInitialEntry(){this.isInitialEntry=!1,this.isMovable([0,0])?(this.row=0,this.col=0):(this.row=-1,this.col=-1)}}class uB extends Gw{constructor(n,i){super();P(this,"mode");P(this,"xPoints");P(this,"yPoints");P(this,"xValues");P(this,"yValues");this.mode="col",this.xPoints=n,this.yPoints=i,this.xValues=n.map(o=>o.x),this.yValues=i.map(o=>o.y)}dispose(){this.xValues.length=0,this.yValues.length=0}moveOnce(n){if(this.isInitialEntry)return this.handleInitialEntry(),!0;if(!this.isMovable(n))return!1;if(this.mode==="col")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}}return!0}moveToExtreme(n){if(this.isInitialEntry&&this.handleInitialEntry(),this.mode==="col")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}return!0}isMovable(n){if(Array.isArray(n))return!1;if(this.mode==="col")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}}toggleNavigation(){if(this.mode==="col"){const n=this.xPoints[this.col],i=n.y[Math.floor(n.y.length/2)];this.row=this.yValues.indexOf(i),this.mode="row"}else{const n=this.yPoints[this.row],i=n.x[Math.floor(n.x.length/2)];this.col=this.xValues.indexOf(i),this.mode="col"}}handleInitialEntry(){this.isInitialEntry=!1,this.mode==="col"?(this.col=Math.max(0,Math.min(this.col,this.xPoints.length-1)),this.row=Math.max(0,Math.min(this.row,this.xPoints[this.col].y.length-1))):(this.row=Math.max(0,Math.min(this.row,this.yPoints.length-1)),this.col=Math.max(0,Math.min(this.col,this.yPoints[this.row].x.length-1)))}}class Fw extends jo{constructor(n,i){super(n);P(this,"movable");P(this,"points");P(this,"barValues");P(this,"highlightValues");P(this,"highlightCenters");P(this,"orientation");P(this,"min");P(this,"max");P(this,"supportsExtrema",!0);this.points=i,this.orientation=n.orientation??_t.VERTICAL,this.barValues=i.map(o=>o.map(s=>this.orientation===_t.VERTICAL?Number(s.y):Number(s.x))),this.min=this.barValues.map(o=>Oi.safeMin(o)),this.max=this.barValues.map(o=>Oi.safeMax(o)),this.highlightValues=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new Wc(this.points)}dispose(){this.points.length=0,this.min.length=0,this.max.length=0,super.dispose()}get audio(){const n=this.orientation===_t.VERTICAL,i=n?this.barValues[this.row][this.col]:this.barValues[this.col][this.row];return{freq:{min:Oi.safeMin(this.min),max:Oi.safeMax(this.max),raw:i},panning:{x:n?this.col:this.row,y:n?this.row:this.col,rows:n?this.barValues.length:this.barValues[this.col].length,cols:n?this.barValues[this.row].length:this.barValues.length},group:n?this.row:this.col}}get braille(){return{empty:!1,id:this.id,values:this.barValues,min:this.min,max:this.max,row:this.row,col:this.col}}get text(){const n=this.orientation===_t.VERTICAL,i=this.points[this.row][this.col],o=n?this.xAxis:this.yAxis,s=n?i.x:i.y,c=n?this.yAxis:this.xAxis,d=n?i.y:i.x;return{main:{label:o,value:s},cross:{label:c,value:d},mainAxis:n?"x":"y",crossAxis:n?"y":"x"}}get dimension(){return{rows:this.barValues.length,cols:this.barValues[this.row].length}}get values(){return this.barValues}mapToSvgElements(n){if(!n)return null;const o=[Ct.selectAllElements(n)];if(o.length!==this.points.length)return null;for(let s=0;s<this.points.length;s++)if(o[s].length!==this.points[s].length)if(o[s].length<this.points[s].length){const c=[];let d=0;for(let h=0;h<this.points[s].length;h++)(this.orientation===_t.VERTICAL?Number(this.points[s][h].y):Number(this.points[s][h].x))!==0&&d<o[s].length?c.push(o[s][d++]):c.push(Ct.createEmptyElement());o[s]=c}else return null;return o}mapSvgElementsToCenters(){const n=this.highlightValues;if(!n)return null;const i=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const c=n[o][s],d=Array.isArray(c)?c[0]:c,h=d.getBoundingClientRect();d&&i.push({x:h.x+h.width/2,y:h.y+h.height/2,row:o,col:s,element:d})}return i}findNearestPoint(n,i){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 c=this.highlightValues[o][s],d=Array.isArray(c)?c[0]:c,h=d.getBoundingClientRect();if(n>=h.x&&n<=h.x+h.width&&i>=h.y&&i<=h.y+h.height)return{element:d,row:o,col:s}}return null}}class cB extends Fw{isPointInBounds(t,n,{element:i,row:o,col:s}){const c=i.getBoundingClientRect();return t>=c.x&&t<=c.x+c.width&&n>=c.y&&n<=c.y+c.height}constructor(t){super(t,[t.data])}getExtremaTargets(){var T,w;const t=[],n=this.row;if(n<0||n>=this.barValues.length)return t;const i=this.barValues[n];if(!i||i.length===0)return t;const o=this.min[n],s=this.max[n],c=i.indexOf(s),d=i.indexOf(o),h=(T=this.points[n])==null?void 0:T[c],y=(w=this.points[n])==null?void 0:w[d],v=h?this.orientation===_t.VERTICAL?h.x:h.y:void 0,S=y?this.orientation===_t.VERTICAL?y.x:y.y:void 0;return t.push({label:`Max Bar at ${this.getPointLabel(c)}`,value:s,pointIndex:c,segment:"bar",type:"max",navigationType:"point",xValue:v}),t.push({label:`Min Bar at ${this.getPointLabel(d)}`,value:o,pointIndex:d,segment:"bar",type:"min",navigationType:"point",xValue:S}),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===_t.VERTICAL?`${n.x}`:`${n.y}`}return`Point ${t}`}updateVisualPointPosition(){const{row:t,col:n}=this.getSafeIndices();this.row=t,this.col=n}moveToNextCompareValue(t,n){const i=this.row;if(i<0||i>=this.barValues.length)return!1;const o=this.barValues[i];if(!o||o.length===0)return!1;const s=this.col,c=t==="right"?1:-1;let d=s+c;for(;d>=0&&d<o.length;){if(this.compare(o[d],o[s],n))return this.col=d,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;d+=c}return this.notifyRotorBounds(),!1}}const aa={LOWER_OUTLIER:"Lower outlier(s)",MIN:"Minimum",Q1:"25%",Q2:"50%",Q3:"75%",MAX:"Maximum",UPPER_OUTLIER:"Upper outlier(s)",MEAN:"Mean"};class fB extends jo{constructor(n){var d;super(n);P(this,"supportsExtrema",!1);P(this,"movable");P(this,"points");P(this,"boxValues");P(this,"highlightValues");P(this,"highlightCenters");P(this,"orientation");P(this,"sections");P(this,"min");P(this,"max");this.orientation=n.orientation??_t.VERTICAL,this.orientation===_t.HORIZONTAL?this.points=[...n.data].reverse():this.points=n.data;const{sections:i,accessors:o}=this.buildStandardBoxDataSections();this.sections=i,this.boxValues=this.computeBoxValues(o);const c=this.boxValues.map(h=>h.flatMap(y=>Array.isArray(y)?y:[y])).map(h=>h.filter(y=>!Number.isNaN(y)));this.min=Oi.minFrom2D(c),this.max=Oi.maxFrom2D(c),this.highlightValues=this.mapToSvgElements(n.selectors),this.orientation===_t.HORIZONTAL&&((d=this.highlightValues)==null||d.reverse()),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new Wc(this.boxValues,{row:0})}computeBoxValues(n){return this.orientation===_t.HORIZONTAL?this.points.map(i=>n.map(o=>o(i))):n.map(i=>this.points.map(o=>i(o)))}buildStandardBoxDataSections(){return{sections:[aa.LOWER_OUTLIER,aa.MIN,aa.Q1,aa.Q2,aa.Q3,aa.MAX,aa.UPPER_OUTLIER],accessors:[n=>n.lowerOutliers,n=>n.min,n=>n.q1,n=>n.q2,n=>n.q3,n=>n.max,n=>n.upperOutliers]}}dispose(){this.points.length=0,this.sections.length=0,super.dispose()}moveToIndex(n,i){return super.moveToIndex(n,i)}get values(){return this.boxValues}get audio(){const n=this.orientation===_t.HORIZONTAL,i=this.boxValues[this.row][this.col],o=n?this.col:this.row,s=Array.isArray(i)?i.length===0?o:i[i.length-1]-this.min:Number.isNaN(i)?o:i-this.min;return{freq:{min:this.min,max:this.max,raw:this.boxValues[this.row][this.col]},panning:{x:n?s:this.row,y:n?this.row:s,rows:n?this.boxValues.length:this.max-this.min,cols:n?this.max-this.min:this.boxValues.length}}}get braille(){const n=this.orientation===_t.HORIZONTAL,i=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:i,col:o}}get text(){const n=this.orientation===_t.HORIZONTAL,i=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],c=n?this.xAxis:this.yAxis,d=this.boxValues[this.row][this.col];return{main:{label:o,value:i.fill},cross:{label:c,value:d},section:s,mainAxis:n?"y":"x",crossAxis:n?"x":"y"}}get dimension(){const n=this.orientation===_t.HORIZONTAL;return{rows:n?this.boxValues.length:this.boxValues[this.row].length,cols:n?this.boxValues[this.row].length:this.boxValues.length}}mapToSvgElements(n){if(!n||n.length!==this.points.length)return null;const i=this.orientation===_t.VERTICAL,o=new Array;if(i)for(let c=0;c<this.sections.length;c++)o.push(Array.from({length:n.length}));const s=[];return n.forEach(c=>{var R,_;const d=((R=c.lowerOutliers)==null?void 0:R.flatMap(N=>Ct.selectAllElements(N,!1)))??[],h=((_=c.upperOutliers)==null?void 0:_.flatMap(N=>Ct.selectAllElements(N,!1)))??[],y=Ct.selectElement(c.min,!1),v=Ct.selectElement(c.max,!1),S=Ct.selectElement(c.iq,!1),T=Ct.selectElement(c.q2,!1),w=c.q1?Ct.selectElement(c.q1,!1):null,C=c.q3?Ct.selectElement(c.q3,!1):null;s.push({lowerOutliers:d,upperOutliers:h,min:y,max:v,iq:S,q2:T,q1Direct:w,q3Direct:C})}),s.forEach((c,d)=>{var _;const h=c.lowerOutliers.map(N=>{const z=N.cloneNode(!0);return z.setAttribute(me.VISIBILITY,me.HIDDEN),N.insertAdjacentElement(me.AFTER_END,z),z}),y=c.upperOutliers.map(N=>{const z=N.cloneNode(!0);return z.setAttribute(me.VISIBILITY,me.HIDDEN),N.insertAdjacentElement(me.AFTER_END,z),z}),v=this.cloneElementOrEmpty(c.min),S=this.cloneElementOrEmpty(c.max),T=this.cloneElementOrEmpty(c.q2);let w,C;if(c.q1Direct&&c.q3Direct)w=this.cloneElementOrEmpty(c.q1Direct),C=this.cloneElementOrEmpty(c.q3Direct);else{const N=((_=this.layer.domMapping)==null?void 0:_.iqrDirection)==="reverse";[w,C]=c.iq?i?N?[Ct.createLineElement(c.iq,"top"),Ct.createLineElement(c.iq,"bottom")]:[Ct.createLineElement(c.iq,"bottom"),Ct.createLineElement(c.iq,"top")]:[Ct.createLineElement(c.iq,"left"),Ct.createLineElement(c.iq,"right")]:[Ct.createEmptyElement("line"),Ct.createEmptyElement("line")]}const R=[h,v,w,T,C,S,y];i?R.forEach((N,z)=>{o[z][d]=N}):o.push(R)}),o}cloneElementOrEmpty(n){if(!n)return Ct.createEmptyElement();const i=n.cloneNode(!0);return i.setAttribute(me.VISIBILITY,me.HIDDEN),n.insertAdjacentElement(me.AFTER_END,i),i}moveToNextCompareValue(n,i){const o=this.row;if(o<0||o>=this.boxValues.length)return!1;let s=[],c=0;if(n==="left"||n==="right"?(s=this.boxValues[this.row],c=this.col):(s=this.boxValues.map(y=>y[this.col]),c=this.row),s.length<=0)return!1;const d=n==="right"||n==="up"?1:-1;let h=c+d;for(;h>=0&&h<s.length;){const y=s[c],v=s[h];if(Array.isArray(v)||Array.isArray(y))return!0;if(this.compare(v,y,i))return this.set_point(n,h),this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;h+=d}return this.notifyRotorBounds(),!1}set_point(n,i){n==="left"||n==="right"?this.col=i:this.row=i}moveUpRotor(n){return this.orientation===_t.VERTICAL?(this.moveOnce("UPWARD"),!0):this.moveToNextCompareValue("up",n)}moveDownRotor(n){return this.orientation===_t.VERTICAL?(this.moveOnce("DOWNWARD"),!0):this.moveToNextCompareValue("down",n)}moveLeftRotor(n){return this.orientation===_t.HORIZONTAL?(this.moveOnce("BACKWARD"),!0):this.moveToNextCompareValue("left",n)}moveRightRotor(n){return this.orientation===_t.HORIZONTAL?(this.moveOnce("FORWARD"),!0):this.moveToNextCompareValue("right",n)}mapSvgElementsToCenters(){const n=this.highlightValues;if(!n)return null;const i=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const c=n[o][s],d=Array.isArray(c)?c[0]:c;if(d){const h=d.getBoundingClientRect();i.push({x:h.x+h.width/2,y:h.y+h.height/2,row:o,col:s,element:d})}}return i}findNearestPoint(n,i){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let c=0;c<this.highlightCenters.length;c++){const d=this.highlightCenters[c],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=c)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}moveToPoint(n,i){}}const dB="trend",VC=100,hB=["volatility","open","high","low","close"];class pB extends jo{constructor(n){super(n);P(this,"supportsExtrema",!0);P(this,"movable");P(this,"candles");P(this,"candleValues");P(this,"orientation");P(this,"currentSegmentType","open");P(this,"currentPointIndex",0);P(this,"sortedSegmentsByPoint");P(this,"segmentPositionMaps");P(this,"sections");P(this,"min");P(this,"max");P(this,"highlightValues");P(this,"highlightCenters");P(this,"navigationService");this.navigationService=new Bw;const i=n.data;this.candles=i.map(s=>({...s,volatility:Math.round((s.high-s.low)*VC)/VC,trend:s.close>s.open?"Bull":s.close<s.open?"Bear":"Neutral"})),this.orientation=n.orientation??_t.VERTICAL,this.sections=hB,this.candleValues=this.sections.map(s=>this.candles.map(c=>c[s]));const o=this.orientation===_t.HORIZONTAL?{col:this.sections.length-1}:{row:this.sections.length-1};this.movable=new Wc(this.candleValues,o),this.min=Oi.minFrom2D(this.candleValues),this.max=Oi.maxFrom2D(this.candleValues),this.sortedSegmentsByPoint=this.precomputeSortedSegments(),this.segmentPositionMaps=this.precomputePositionMaps(),this.currentPointIndex=0,this.currentSegmentType="close",this.orientation===_t.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,c)=>s[1]-c[1]).map(s=>s[0])])}precomputePositionMaps(){return this.sortedSegmentsByPoint.map(n=>{const i=new Map;return n.forEach((o,s)=>{i.set(o,s)}),i})}getSegmentPositionInSortedOrder(n,i){return this.segmentPositionMaps[n].get(i)??0}getSegmentTypeAtSortedPosition(n,i){return this.sortedSegmentsByPoint[n][i]??"open"}updateVisualSegmentPosition(){const i=this.sortedSegmentsByPoint[this.currentPointIndex].indexOf(this.currentSegmentType??"open");this.orientation===_t.HORIZONTAL?this.col=i:this.row=i}updateVisualPointPosition(){this.orientation===_t.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)return this.handleInitialEntry(),this.notifyStateUpdate(),!0;if(!this.isMovable(n))return this.notifyOutOfBounds(),!1;switch(n){case"UPWARD":case"DOWNWARD":{const i=this.sortedSegmentsByPoint[this.currentPointIndex],o=i.indexOf(this.currentSegmentType??"open");if(o===-1)return this.notifyOutOfBounds(),!1;const s=n==="UPWARD"?o+1:o-1;if(s>=0&&s<i.length)this.currentSegmentType=i[s],this.updateVisualSegmentPosition();else return this.notifyOutOfBounds(),!1;break}case"FORWARD":case"BACKWARD":{const i=n==="FORWARD"?this.currentPointIndex+1:this.currentPointIndex-1;if(i>=0&&i<this.candles.length)this.currentPointIndex=i,this.updateVisualPointPosition(),this.updateVisualSegmentPosition();else return this.notifyOutOfBounds(),!1;break}}return this.notifyStateUpdate(),!0}moveToExtreme(n){switch(this.isInitialEntry&&this.handleInitialEntry(),n){case"UPWARD":{const i=this.sortedSegmentsByPoint[this.currentPointIndex];this.currentSegmentType=i[i.length-1],this.updateVisualSegmentPosition();break}case"DOWNWARD":{const i=this.sortedSegmentsByPoint[this.currentPointIndex];this.currentSegmentType=i[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}}return this.notifyStateUpdate(),!0}moveToIndex(n,i){this.isInitialEntry&&this.handleInitialEntry();const{pointIndex:o,segmentType:s}=this.navigationService.computeIndexAndSegment(n,i,this.orientation,this.sections);return this.currentPointIndex=o,this.currentSegmentType=s,this.row=n,this.col=i,this.updateVisualSegmentPosition(),this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}isMovable(n){if(Array.isArray(n))return super.isMovable(n);if(this.isInitialEntry)return!0;switch(n){case"UPWARD":case"DOWNWARD":{const i=this.sortedSegmentsByPoint[this.currentPointIndex],o=i.indexOf(this.currentSegmentType??"open"),s=n==="UPWARD"?o+1:o-1;return s>=0&&s<i.length}case"FORWARD":case"BACKWARD":{const i=n==="FORWARD"?this.currentPointIndex+1:this.currentPointIndex-1;return i>=0&&i<this.candles.length}}}dispose(){this.navigationService.dispose(),this.candles.length=0,super.dispose()}get values(){return this.candleValues}get audio(){let n;const i=this.orientation===_t.HORIZONTAL;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,{freq:{min:this.min,max:this.max,raw:n},panning:{x:i?this.row:this.col,y:i?this.col:this.row,rows:i?this.candleValues.length:this.candleValues[this.row].length,cols:i?this.candleValues[this.row].length:this.candleValues.length},trend:this.candles[this.currentPointIndex].trend}}get braille(){const n=this.candles.map(c=>c.trend),i=this.getSegmentPositionInSortedOrder(this.currentPointIndex,this.currentSegmentType??this.sections[0]);this.row=i;const o=this.candleValues.map(c=>Math.min(...c)),s=this.candleValues.map(c=>Math.max(...c));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 i=Array.isArray(n)?n:[n],o=[];for(const s of i)o.push(...Ct.selectAllElements(s));return o}getElementAt(n,i){return i<n.length?n[i]:null}mapToSvgElements(n){if(!n)return null;if(typeof n=="string"||Array.isArray(n)){const C=Array.isArray(n)?n[0]||"":n,R=Ct.selectAllElements(C),_=[];for(let N=0;N<this.sections.length;N++){_[N]=[];for(let z=0;z<this.candles.length;z++){const B=z<R.length?z:0;_[N][z]=R[B]}}return _}const i=n,o=this.candles.length,s=this.collectElements(i.body);let c=this.collectElements(i.wickHigh),d=this.collectElements(i.wickLow);if(c.length===0||d.length===0){const C=this.collectElements(i.wick);C.length>0&&(c.length===0&&(c=C),d.length===0&&(d=C))}const h=this.collectElements(i.open),y=this.collectElements(i.close),v=Array.from({length:o},()=>Ct.createEmptyElement()),S=Array.from({length:o},()=>Ct.createEmptyElement()),T=Array.from({length:o},()=>Ct.createEmptyElement());for(let C=0;C<o;C++){let R=this.getElementAt(h,C);if(!R){const N=this.getElementAt(s,C);if(N){const{open:z,close:B}=this.candles[C],V=B>z?"bottom":B<z?"top":"bottom";R=Ct.createLineElement(N,V)}else R=Ct.createEmptyElement()}v[C]=R;let _=this.getElementAt(y,C);if(!_){const N=this.getElementAt(s,C);if(N){const{open:z,close:B}=this.candles[C],V=B>z?"top":B<z?"bottom":"top";_=Ct.createLineElement(N,V)}else _=Ct.createEmptyElement()}S[C]=_,T[C]=Ct.createEmptyElement()}const w=Array.from({length:this.sections.length},()=>Array.from({length:o},()=>Ct.createEmptyElement()));for(let C=0;C<o;C++){const R=this.sortedSegmentsByPoint[C];for(let _=0;_<R.length;_++){const N=R[_];let z;switch(N){case"volatility":{const B=[],V=this.getElementAt(s,C),L=this.getElementAt(c,C)??V,U=this.getElementAt(d,C)??V;L&&B.push(L),V&&B.push(V),U&&B.push(U);const X=Array.from(new Set(B));z=X.length>0?X:[Ct.createEmptyElement()]}break;case"open":z=v[C];break;case"close":z=S[C];break;case"high":z=this.getElementAt(c,C)??this.getElementAt(s,C)??Ct.createEmptyElement();break;case"low":z=this.getElementAt(d,C)??this.getElementAt(s,C)??Ct.createEmptyElement();break;default:z=Ct.createEmptyElement()}w[_][C]=z}}return w}get text(){const n=this.candles[this.currentPointIndex],i=this.orientation===_t.HORIZONTAL;let o;return this.currentSegmentType==="volatility"?o=n.volatility:this.currentSegmentType?o=n[this.currentSegmentType]:o=n.open,{main:{label:i?this.yAxis:this.xAxis,value:n.value},cross:{label:i?this.xAxis:this.yAxis,value:o},section:this.currentSegmentType??"open",fill:{label:dB,value:n.trend},mainAxis:i?"y":"x",crossAxis:i?"x":"y"}}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 i=this.candles.findIndex(o=>o.value===n);return i!==-1?(this.currentPointIndex=i,this.currentSegmentType="close",this.updateVisualPointPosition(),this.updateVisualSegmentPosition(),this.notifyStateUpdate(),!0):!1}getAvailableXValues(){return this.candles.map(n=>n.value)}getExtremaTargets(){const n=[],i=this.currentSegmentType??"open";if(i==="volatility"){const o=this.candles.map((y,v)=>({value:y.volatility,index:v})),s=Math.max(...o.map(y=>y.value)),c=o.filter(y=>y.value===s).map(y=>y.index),d=Math.min(...o.map(y=>y.value)),h=o.filter(y=>y.value===d).map(y=>y.index);c.forEach((y,v)=>{const S=this.candles[y];n.push({label:`Max Volatility at ${S.value}`,value:S.volatility,pointIndex:y,segment:"volatility",type:"max",navigationType:"point",xValue:S.value})}),h.forEach((y,v)=>{const S=this.candles[y];n.push({label:`Min Volatility at ${S.value}`,value:S.volatility,pointIndex:y,segment:"volatility",type:"min",navigationType:"point",xValue:S.value})})}else{const o=this.candles.map((y,v)=>({value:y[i],index:v,xValue:y.value})),s=Math.max(...o.map(y=>y.value)),c=o.filter(y=>y.value===s).map(y=>y.index),d=Math.min(...o.map(y=>y.value)),h=o.filter(y=>y.value===d).map(y=>y.index);c.forEach((y,v)=>{const S=this.candles[y],T=i.charAt(0).toUpperCase()+i.slice(1);n.push({label:`Max ${T} at ${S.value}`,value:S[i],pointIndex:y,segment:i,type:"max",navigationType:"point",xValue:S.value})}),h.forEach((y,v)=>{const S=this.candles[y],T=i.charAt(0).toUpperCase()+i.slice(1);n.push({label:`Min ${T} at ${S.value}`,value:S[i],pointIndex:y,segment:i,type:"min",navigationType:"point",xValue:S.value})})}return n}navigateToExtrema(n){this.currentPointIndex=n.pointIndex,this.currentSegmentType=n.segment,this.finalizeExtremaNavigation()}moveToNextCompareValue(n,i){const o=this.row;if(o<0||o>=this.candles.length)return!1;const s=this.currentSegmentType??"open",c=this.candles.map((v,S)=>({value:v[s],index:S,xValue:v.value})),d=this.col,h=n==="right"?1:-1;let y=d+h;for(;y>=0&&y<c.length;){if(this.compare(c[y].value,c[d].value,i))return this.col=y,this.currentPointIndex=y,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;y+=h}return this.notifyRotorBounds(),!1}moveUpRotor(){return this.moveOnce("UPWARD"),!0}moveDownRotor(){return this.moveOnce("DOWNWARD"),!0}mapSvgElementsToCenters(){const n=this.highlightValues;if(!n)return null;const i=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const c=n[o][s],d=Array.isArray(c)?c[0]:c;if(d){const h=d.getBoundingClientRect();i.push({x:h.x+h.width/2,y:h.y+h.height/2,row:o,col:s,element:d})}}return i}findNearestPoint(n,i){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let c=0;c<this.highlightCenters.length;c++){const d=this.highlightCenters[c],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=c)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}get dimension(){const n=this.orientation===_t.HORIZONTAL;return{rows:n?this.candleValues.length:this.candleValues[this.row].length,cols:n?this.candleValues[this.row].length:this.candleValues.length}}}class mB extends jo{constructor(n){super(n);P(this,"supportsExtrema",!0);P(this,"movable");P(this,"heatmapValues");P(this,"highlightValues");P(this,"highlightCenters");P(this,"x");P(this,"y");P(this,"min");P(this,"max");const i=n.data;this.x=i.x,this.y=[...i.y].reverse(),this.heatmapValues=[...i.points].reverse();const{min:o,max:s}=Oi.minMaxFrom2D(this.heatmapValues);this.min=o,this.max=s,this.highlightValues=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new Wc(this.heatmapValues)}get values(){return this.heatmapValues}dispose(){this.heatmapValues.length=0,this.x.length=0,this.y.length=0,super.dispose()}get audio(){return{freq:{min:this.min,max:this.max,raw:this.heatmapValues[this.row][this.col]},panning:{x:this.col,y:this.row,rows:this.heatmapValues.length,cols:this.heatmapValues[this.row].length}}}get braille(){return{empty:!1,id:this.id,values:this.heatmapValues,min:this.min,max:this.max,row:this.row,col:this.col}}get 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:this.heatmapValues[this.row][this.col]}}}get dimension(){return{rows:this.heatmapValues.length,cols:this.heatmapValues[this.row].length}}mapToSvgElements(n){var d;if(!n)return null;const i=this.heatmapValues.length,o=this.heatmapValues[0].length,s=Ct.selectAllElements(n,!1);if(s.length===1&&s[0]instanceof SVGImageElement)return this.createOverlayRects(s[0],i,o);if(s.length===0||s.length!==i*o)return null;const c=new Array;if(s[0]instanceof SVGPathElement)for(let h=0;h<i;h++){const y=i-1-h,v=new Array;for(let S=0;S<o;S++){const T=y*o+S;v.push(s[T])}c.push(v)}else if(s[0]instanceof SVGRectElement)if(((d=this.layer.domMapping)==null?void 0:d.order)==="row")for(let h=0;h<i;h++){const y=new Array;for(let v=0;v<o;v++){const S=h*o+v;y.push(s[S])}c.push(y)}else for(let h=0;h<i;h++){const y=new Array;for(let v=0;v<o;v++){const S=v*i+h;y.push(s[S])}c.push(y)}return c}createOverlayRects(n,i,o){const s=Number.parseFloat(n.getAttribute("x")??"0"),c=Number.parseFloat(n.getAttribute("y")??"0"),d=Number.parseFloat(n.getAttribute("width")??"0"),h=Number.parseFloat(n.getAttribute("height")??"0");if(d===0||h===0)return null;const y=d/o,v=h/i,S=n.parentElement;if(!S)return null;const T="http://www.w3.org/2000/svg",w=new Array;for(let C=0;C<i;C++){const R=new Array;for(let _=0;_<o;_++){const N=document.createElementNS(T,"rect");N.setAttribute("x",String(s+_*y)),N.setAttribute("y",String(c+C*v)),N.setAttribute("width",String(y)),N.setAttribute("height",String(v)),N.setAttribute("fill","transparent"),N.setAttribute("stroke","none"),N.setAttribute("pointer-events","none"),S.appendChild(N),R.push(N)}w.push(R)}return w}updateVisualPointPosition(){const{row:n,col:i}=this.getSafeIndices();this.row=n,this.col=i}moveToNextCompareValue(n,i){switch(n){case"left":case"right":return this.search_in_row(n,i);case"up":case"down":return this.search_in_col(n,i);default:return this.notifyRotorBounds(),!1}}search_in_row(n,i){const o=this.y.length,s=this.col,c=n==="left"?-1:1;let d=s+c;for(;d>=0&&d<o;){if(this.compare(this.heatmapValues[this.row][d],this.heatmapValues[this.row][s],i))return this.col=d,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;d+=c}return this.notifyRotorBounds(),!1}search_in_col(n,i){const o=this.x.length,s=this.row,c=n==="up"?1:-1;let d=s+c;for(;d>=0&&d<o;){if(this.compare(this.heatmapValues[d][this.col],this.heatmapValues[s][this.col],i))return this.row=d,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;d+=c}return!1}moveUpRotor(n){return this.moveToNextCompareValue("up",n)}moveDownRotor(n){return this.moveToNextCompareValue("down",n)}mapSvgElementsToCenters(){const n=this.highlightValues;if(!n)return null;const i=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const c=n[o][s],d=Array.isArray(c)?c[0]:c;if(d){const h=d.getBoundingClientRect();i.push({x:h.x+h.width/2,y:h.y+h.height/2,row:o,col:s,element:d})}}return i}findNearestPoint(n,i){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let c=0;c<this.highlightCenters.length;c++){const d=this.highlightCenters[c],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=c)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}getExtremaTargets(){const n=[],i=this.row,o=this.col,s=this.findGlobalExtrema("max");s&&n.push({label:`Global Maximum: ${s.value} at ${this.x[s.col]}, ${this.y[s.row]}`,value:s.value,pointIndex:s.row*this.heatmapValues[0].length+s.col,segment:"global",type:"max",navigationType:"group",groupIndex:s.row,categoryIndex:s.col,xValue:this.x[s.col]});const c=this.findGlobalExtrema("min");c&&n.push({label:`Global Minimum: ${c.value} at ${this.x[c.col]}, ${this.y[c.row]}`,value:c.value,pointIndex:c.row*this.heatmapValues[0].length+c.col,segment:"global",type:"min",navigationType:"group",groupIndex:c.row,categoryIndex:c.col,xValue:this.x[c.col]});const d=this.findRowExtrema(i,"max");d&&n.push({label:`Row Maximum: ${d.value} at ${this.x[d.col]}, ${this.y[i]}`,value:d.value,pointIndex:i*this.heatmapValues[0].length+d.col,segment:`row-${i}`,type:"max",navigationType:"group",groupIndex:i,categoryIndex:d.col,xValue:this.x[d.col]});const h=this.findRowExtrema(i,"min");h&&n.push({label:`Row Minimum: ${h.value} at ${this.x[h.col]}, ${this.y[i]}`,value:h.value,pointIndex:i*this.heatmapValues[0].length+h.col,segment:`row-${i}`,type:"min",navigationType:"group",groupIndex:i,categoryIndex:h.col,xValue:this.x[h.col]});const y=this.findColExtrema(o,"max");y&&n.push({label:`Column Maximum: ${y.value} at ${this.x[o]}, ${this.y[y.row]}`,value:y.value,pointIndex:y.row*this.heatmapValues[0].length+o,segment:`col-${o}`,type:"max",navigationType:"group",groupIndex:y.row,categoryIndex:o,xValue:this.x[o]});const v=this.findColExtrema(o,"min");return v&&n.push({label:`Column Minimum: ${v.value} at ${this.x[o]}, ${this.y[v.row]}`,value:v.value,pointIndex:v.row*this.heatmapValues[0].length+o,segment:`col-${o}`,type:"min",navigationType:"group",groupIndex:v.row,categoryIndex:o,xValue:this.x[o]}),n}findGlobalExtrema(n){if(this.heatmapValues.length===0)return null;let i=0,o=0,s=this.heatmapValues[0][0];for(let c=0;c<this.heatmapValues.length;c++)for(let d=0;d<this.heatmapValues[c].length;d++){const h=this.heatmapValues[c][d];(n==="max"?h>s:h<s)&&(s=h,i=c,o=d)}return{row:i,col:o,value:s}}findRowExtrema(n,i){if(n<0||n>=this.heatmapValues.length)return null;const o=this.heatmapValues[n];if(o.length===0)return null;let s=0,c=o[0];for(let d=1;d<o.length;d++){const h=o[d];(i==="max"?h>c:h<c)&&(c=h,s=d)}return{col:s,value:c}}findColExtrema(n,i){if(this.heatmapValues.length===0||n<0||n>=this.heatmapValues[0].length)return null;let o=0,s=this.heatmapValues[0][n];for(let c=1;c<this.heatmapValues.length;c++){const d=this.heatmapValues[c][n];(i==="max"?d>s:d<s)&&(s=d,o=c)}return{row:o,value:s}}navigateToExtrema(n){n.groupIndex!==void 0&&n.categoryIndex!==void 0&&(this.row=n.groupIndex,this.col=n.categoryIndex,this.finalizeExtremaNavigation())}}class gB extends Fw{constructor(t){super(t,[t.data])}get text(){const t=this.orientation===_t.VERTICAL,n=this.points[this.row][this.col],i=t?n.xMin:n.yMin,o=t?n.xMax:n.yMax;return{...super.text,range:{min:i,max:o}}}moveToNextCompareValue(t,n){const i=this.row;if(i<0||i>=this.barValues.length)return!1;const o=this.barValues[i];if(!o||o.length===0)return!1;const s=this.col,c=t==="right"?1:-1;let d=s+c;for(;d>=0&&d<o.length;){if(this.compare(o[d],o[s],n))return this.col=d,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;d+=c}return this.notifyRotorBounds(),!1}}const BC="Group",Yw=/[ML]\s*(-?\d+(?:\.\d+)?)[\s,]+(-?\d+(?:\.\d+)?)/g,Bb=class Bb extends jo{constructor(n){super(n);P(this,"supportsExtrema",!0);P(this,"rotorSupport",!0);P(this,"movable");P(this,"points");P(this,"lineValues");P(this,"highlightValues");P(this,"highlightCenters");P(this,"min");P(this,"max");P(this,"previousRow",null);P(this,"intersectionCache",new Map);this.points=n.data,this.lineValues=this.points.map(i=>i.map(o=>Number(o.y))),this.min=this.lineValues.map(i=>Oi.safeMin(i)),this.max=this.lineValues.map(i=>Oi.safeMax(i)),this.highlightValues=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new sB(this.buildGraph())}get values(){return this.lineValues}dispose(){this.points.length=0,this.min.length=0,this.max.length=0,super.dispose()}buildGraph(){const n=this.points.length;if(n===0)return new Array;const i=Math.max(0,...this.points.map(s=>s.length)),o=this.points.map(s=>s.map(()=>({up:null,down:null,left:null,right:null,top:null,bottom:null,start:null,end:null})));for(let s=0;s<i;s++){const c=this.points.map((v,S)=>{var T;return{y:(T=v[s])==null?void 0:T.y,row:S}}).filter(v=>v.y!==void 0);if(c.length===0)continue;const d=[...c].sort((v,S)=>v.y-S.y),h={row:d[0].row,col:s},y={row:d[d.length-1].row,col:s};for(let v=0;v<d.length;v++){const{row:S}=d[v],T=o[S][s];T&&(v>0&&(T.down={row:d[v-1].row,col:s}),v<d.length-1&&(T.up={row:d[v+1].row,col:s}),T.bottom=h,T.top=y)}}for(let s=0;s<n;s++){const c=this.points[s].length>0?{row:s,col:0}:null,d=this.points[s].length>0?{row:s,col:this.points[s].length-1}:null;for(let h=0;h<this.points[s].length;h++){const y=o[s][h];y&&(h>0&&(y.left={row:s,col:h-1}),h<this.points[s].length-1&&(y.right={row:s,col:h+1}),y.start=c,y.end=d)}}return o}get audio(){return{freq:{min:this.min[this.row],max:this.max[this.row],raw:this.lineValues[this.row][this.col]},panning:{x:this.col,y:this.row,rows:this.lineValues.length,cols:this.lineValues[this.row].length},group:this.row}}get braille(){return{empty:!1,id:this.id,values:this.lineValues,min:this.min,max:this.max,row:this.row,col:this.col}}get text(){var s;const n=this.points[this.row][this.col],i=this.findIntersections();let o={};if(i.length>1){let c=i.map(d=>{var y;const h=d.group;return((y=this.points[h][0])==null?void 0:y.fill)||`l${h+1}`});if(this.previousRow!==null){const d=((s=this.points[this.previousRow][0])==null?void 0:s.fill)||`l${this.previousRow+1}`;c.includes(d)&&(c=[d,...c.filter(h=>h!==d)])}o={fill:{label:BC,value:`intersection at (${c.join(", ")})`}}}else o=n.fill?{fill:{label:BC,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}}get dimension(){return{rows:this.lineValues.length,cols:this.lineValues[this.row].length}}moveOnce(n){if(this.isInitialEntry)return this.movable.handleInitialEntry(),this.previousRow=null,this.notifyStateUpdate(),!0;if(!this.isMovable(n))return this.notifyOutOfBounds(),!1;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 c=this.findColumnByXValue(o,s);if(c!==-1){this.row=o,this.col=c;const d=this.findIntersections();if(d.length>1){const y={...super.state,intersections:d};for(const v of this.observers)v.update(y)}else this.notifyStateUpdate();return!0}else return this.notifyOutOfBounds(),!1}else return this.notifyOutOfBounds(),!1}switch(n){case"FORWARD":this.col+=1;break;case"BACKWARD":this.col-=1;break}const i=this.findIntersections();if(i.length>1){const s={...super.state,intersections:i};for(const c of this.observers)c.update(s)}else this.notifyStateUpdate();return!0}findIntersections(){const n=this.points[this.row][this.col].x,i=this.points[this.row][this.col].y,o=[];for(let s=0;s<this.points.length;s++)this.points[s].findIndex(d=>d.x===n&&d.y===i)!==-1&&o.push({freq:{min:this.min[s],max:this.max[s],raw:i},panning:{x:this.col,y:this.row,rows:this.lineValues.length,cols:this.lineValues[this.row].length},group:s});return o}isMovable(n){if(Array.isArray(n)){const[i,o]=n;return i>=0&&i<this.values.length&&o>=0&&o<this.values[i].length}switch(n){case"UPWARD":case"DOWNWARD":{const i=this.findLineByXAndYDirection(n);if(i===null)return!1;const o=this.points[this.row][this.col].x;return this.findColumnByXValue(i,o)!==-1}case"FORWARD":return this.col<this.values[this.row].length-1;case"BACKWARD":return this.col>0}}findLineByXAndYDirection(n){const i=this.points[this.row][this.col].x;let o=null,s=Number.POSITIVE_INFINITY;for(let c=0;c<this.points.length;c++){if(c===this.row)continue;const d=this.points[c].findIndex(S=>S.x===i);if(d===-1)continue;const h=this.points[c][d].y,y=n==="UPWARD"?h>this.points[this.row][this.col].y:h<this.points[this.row][this.col].y,v=Math.abs(h-this.points[this.row][this.col].y);y&&v<s&&(s=v,o=c)}return o}findColumnByXValue(n,i){return this.points[n].findIndex(o=>o.x===i)}mapToSvgElements(n){if(!n||n.length!==this.lineValues.length)return null;const i=[];let o=!0;for(let s=0;s<n.length;s++){const c=Ct.selectElement(n[s],!1);if(!c){i.push([]);continue}const d=[];if(c instanceof SVGPathElement){const S=c.getAttribute(me.D)||me.EMPTY;Yw.lastIndex=0;let T=Yw.exec(S);for(;T!==null;)d.push({x:Number.parseFloat(T[1]),y:Number.parseFloat(T[2])}),T=Yw.exec(S)}else if(c instanceof SVGPolylineElement){const T=(c.getAttribute(me.POINTS)||me.EMPTY).split(/\s+/).filter(Boolean);for(const w of T){const[C,R]=w.split(me.COMMA);d.push({x:Number.parseFloat(C),y:Number.parseFloat(R)})}}const h=this.lineValues[s].length;if(d.length!==h)if(d.length>=2&&d.length<h){const S=Number(d[0].x),T=Number(d[d.length-1].x),w=this.points[s],C=Number(w[0].x),_=Number(w[w.length-1].x)-C,N=[];for(let z=0;z<h;z++){const B=Number(w[z].x),V=_>0?S+(B-C)/_*(T-S):S;let L=Number(d[0].y);for(let U=0;U<d.length-1;U++){const X=Number(d[U].x),se=Number(d[U+1].x);if(V>=X-.01&&V<=se+.01){const ce=se-X,ie=ce>0?(V-X)/ce:0;L=Number(d[U].y)+ie*(Number(d[U+1].y)-Number(d[U].y));break}}N.push({x:V,y:L})}d.length=0,d.push(...N)}else if(d.length<h)for(;d.length<h;)d.push({x:Number.NaN,y:Number.NaN});else d.length=h;const y=[];let v=!1;for(const S of d){if(Number.isNaN(Number(S.x))||Number.isNaN(S.y)){v=!0;break}y.push(Ct.createCircleElement(S.x,S.y,c))}if(v){i.push([]);continue}y.length>0&&(o=!1),i.push(y)}return o?null:i}get state(){const n=super.state;if(n.empty)return n;const i=this.points.length>1,o={...n,plotType:i?"multiline":"single line",...i&&{groupCount:this.points.length}},s=this.findIntersections();return s.length>1?{...o,intersections:s}:o}mapSvgElementsToCenters(){const n=this.highlightValues;if(!n)return null;const i=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const c=n[o][s],d=Array.isArray(c)?c[0]:c;if(d){const h=d.getBoundingClientRect();i.push({x:h.x+h.width/2,y:h.y+h.height/2,row:o,col:s,element:d})}}return i}findNearestPoint(n,i){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let c=0;c<this.highlightCenters.length;c++){const d=this.highlightCenters[c],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=c)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}getSegmentIntersection(n,i,o,s){const c=n.x,d=n.y,h=i.x,y=i.y,v=o.x,S=o.y,T=s.x,w=s.y,C=(c-h)*(S-w)-(d-y)*(v-T);if(Math.abs(C)<1e-10)return null;const R=((c-v)*(S-w)-(d-S)*(v-T))/C,_=-((c-h)*(d-S)-(d-y)*(c-v))/C;if(R>=0&&R<=1&&_>=0&&_<=1){const N=c+R*(h-c),z=d+R*(y-d);return{x:N,y:z}}return null}findAllIntersectionsForCurrentLine(){const n=this.row;if(this.intersectionCache.has(n))return this.intersectionCache.get(n);if(n<0||n>=this.points.length)return[];if(this.points.length<=1)return[];const i=this.points[n];if(i.length<2)return[];const o=[];for(let d=0;d<i.length-1;d++){const h=i[d],y=i[d+1],v={x:Number(h.x),y:Number(h.y)},S={x:Number(y.x),y:Number(y.y)};for(let T=0;T<this.points.length;T++){if(T===n)continue;const w=this.points[T];if(!(w.length<2))for(let C=0;C<w.length-1;C++){const R=w[C],_=w[C+1],N={x:Number(R.x),y:Number(R.y)},z={x:Number(_.x),y:Number(_.y)},B=this.getSegmentIntersection(v,S,N,z);if(B){const V=Math.hypot(B.x-v.x,B.y-v.y),L=Math.hypot(B.x-S.x,B.y-S.y),U=V<=L?d:d+1;o.push({pointIndex:U,x:B.x,y:B.y,otherLine:T})}}}}const s=[];for(const d of o){const h=s.find(y=>Math.abs(y.x-d.x)<Bb.INTERSECTION_EPSILON&&Math.abs(y.y-d.y)<Bb.INTERSECTION_EPSILON);if(h)h.intersectingLines.add(d.otherLine);else{const y=new Set;y.add(d.otherLine),s.push({pointIndex:d.pointIndex,x:d.x,y:d.y,intersectingLines:y})}}const c=s.map(d=>({pointIndex:d.pointIndex,x:d.x,y:d.y,intersectingLines:Array.from(d.intersectingLines).sort((h,y)=>h-y)})).sort((d,h)=>d.x-h.x);return this.intersectionCache.set(n,c),c}getIntersectionLabel(n){return n.map(i=>{const o=this.points[i][0];return(o==null?void 0:o.fill)||`Line ${i+1}`}).join(", ")}getExtremaTargets(){var v,S,T,w;const n=[],i=this.row;if(i<0||i>=this.lineValues.length)return n;const o=this.lineValues[i];if(!o||o.length===0)return n;const s=this.min[i],c=this.max[i],d=[],h=[];for(let C=0;C<o.length;C++){const R=o[C];R===c&&d.push(C),R===s&&h.push(C)}for(const C of d)n.push({label:`Max point at ${this.getPointLabel(C)}`,value:c,pointIndex:C,segment:"line",type:"max",navigationType:"point",xValue:(S=(v=this.points[this.row])==null?void 0:v[C])==null?void 0:S.x});for(const C of h)n.push({label:`Min point at ${this.getPointLabel(C)}`,value:s,pointIndex:C,segment:"line",type:"min",navigationType:"point",xValue:(w=(T=this.points[this.row])==null?void 0:T[C])==null?void 0:w.x});const y=this.findAllIntersectionsForCurrentLine();for(const C of y){const R=this.getIntersectionLabel(C.intersectingLines),_=`x=${C.x.toFixed(2)}, y=${C.y.toFixed(2)}`;n.push({label:`Intersection at ${_}`,value:C.y,pointIndex:C.pointIndex,segment:"intersection",type:"intersection",navigationType:"point",intersectingLines:C.intersectingLines,display:{coords:_,otherLines:R}})}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:i}=this.getSafeIndices();this.row=n,this.col=i}getAvailableXValues(){return this.points[this.row].map(n=>n.x)}moveToXValue(n){return this.isInitialEntry&&this.movable.handleInitialEntry(),super.moveToXValue(n)}moveToNextCompareValue(n,i){const o=this.row;if(o<0||o>=this.lineValues.length)return!1;const s=this.lineValues[o];if(!s||s.length===0)return!1;const c=this.col,d=n==="right"?1:-1;let h=c+d;for(;h>=0&&h<s.length;){if(this.compare(s[h],s[c],i))return this.col=h,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;h+=d}return this.notifyRotorBounds(),!1}compare(n,i,o){return o==="lower"?n<i:o==="higher"?n>i:!1}moveUpRotor(n){return this.moveOnce("UPWARD"),!0}moveDownRotor(n){return this.moveOnce("DOWNWARD"),!0}};P(Bb,"INTERSECTION_EPSILON",1e-6);let j5=Bb;class yB extends jo{constructor(n){super(n);P(this,"mode");P(this,"movable");P(this,"supportsExtrema",!1);P(this,"xPoints");P(this,"yPoints");P(this,"xValues");P(this,"yValues");P(this,"highlightXValues");P(this,"highlightYValues");P(this,"highlightCenters");P(this,"minX");P(this,"maxX");P(this,"minY");P(this,"maxY");this.mode="col";const i=n.data,o=[...i].sort((h,y)=>h.x-y.x||h.y-y.y);this.xPoints=new Array;let s=null;for(const h of o)(!s||s.x!==h.x)&&(s={x:h.x,y:[]},this.xPoints.push(s)),s.y.push(h.y);const c=[...i].sort((h,y)=>h.y-y.y||h.x-y.x);this.yPoints=new Array;let d=null;for(const h of c)(!d||d.y!==h.y)&&(d={y:h.y,x:[]},this.yPoints.push(d)),d.x.push(h.x);this.xValues=this.xPoints.map(h=>h.x),this.yValues=this.yPoints.map(h=>h.y),this.minX=Oi.safeMin(this.xValues),this.maxX=Oi.safeMax(this.xValues),this.minY=Oi.safeMin(this.yValues),this.maxY=Oi.safeMax(this.yValues),[this.highlightXValues,this.highlightYValues]=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new uB(this.xPoints,this.yPoints)}dispose(){this.movable.dispose(),this.xPoints.length=0,this.yPoints.length=0,this.highlightXValues&&(this.highlightXValues.forEach(n=>n.forEach(i=>i.remove())),this.highlightXValues.length=0),this.highlightYValues&&(this.highlightYValues.forEach(n=>n.forEach(i=>i.remove())),this.highlightYValues.length=0),super.dispose()}get highlightValues(){return this.mode==="col"?this.highlightXValues:this.highlightYValues}getAudioGroupIndex(){return{}}get values(){const n=[this.xValues,this.yValues];return this.mode==="col"?this.row!==0&&(this.row=0):(this.row<0||this.row>=this.yPoints.length)&&(this.row=0),n}get braille(){return{empty:!1,id:this.id,values:this.values,min:0,max:0,row:this.row,col:this.col}}get audio(){if(this.mode==="col"){const n=this.xPoints[this.col];return{freq:{raw:n.y,min:this.minY,max:this.maxY},panning:{y:this.row,x:this.col,rows:n.y.length,cols:this.xPoints.length}}}else{const n=this.yPoints[this.row];return{freq:{raw:n.x,min:this.minX,max:this.maxX},panning:{y:this.row,x:this.col,rows:this.yPoints.length,cols:n.x.length}}}}get text(){if(this.mode==="col"){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 dimension(){return{rows:this.yPoints.length,cols:this.xPoints.length}}get highlight(){if(this.highlightValues===null)return this.outOfBoundsState;const n=this.mode==="col"?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}:this.outOfBoundsState}get hasMultiPoints(){return!0}handleInitialEntry(){this.isInitialEntry=!1,this.row=0,this.col=0,this.mode="col"}toggleNavigation(){if(this.mode==="col"){const n=this.xPoints[this.col],i=n.y[Math.floor(n.y.length/2)],o=this.yValues.indexOf(i);o===-1||o>=this.yPoints.length?this.row=0:this.row=o,this.mode="row"}else{const n=this.yPoints[this.row],i=n.x[Math.floor(n.x.length/2)],o=this.xValues.indexOf(i);o===-1||o>=this.xPoints.length?this.col=0:this.col=o,this.mode="col",this.row=0}}moveOnce(n){if(this.isInitialEntry)return this.handleInitialEntry(),this.notifyStateUpdate(),!0;if(!this.isMovable(n))return this.notifyOutOfBounds(),!1;if(this.mode==="col")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}}return this.notifyStateUpdate(),!0}moveToExtreme(n){if(this.isInitialEntry&&this.handleInitialEntry(),this.mode==="col")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}return this.notifyStateUpdate(),!0}moveToIndex(n,i){return this.mode==="col"?n>=0&&n<this.xPoints.length?(this.col=n,this.row=0,this.notifyStateUpdate(),!0):(this.notifyOutOfBounds(),!1):i>=0&&i<this.yPoints.length?(this.col=i,this.row=0,this.notifyStateUpdate(),!0):(this.notifyOutOfBounds(),!1)}isMovable(n){if(Array.isArray(n))return!1;if(this.mode==="col")switch(n){case"FORWARD":return this.col<this.xPoints.length-1;case"BACKWARD":return this.col>0;case"UPWARD":case"DOWNWARD":return!0;default:return!1}else switch(n){case"UPWARD":return this.row<this.yPoints.length-1;case"DOWNWARD":return this.row>0;case"FORWARD":case"BACKWARD":return!0;default:return!1}}mapToSvgElements(n){if(!n)return[null,null];const i=Ct.selectAllElements(n);if(i.length===0)return[null,null];const o=new Map,s=new Map;i.forEach(h=>{let y=Number.parseFloat(h.getAttribute("x")||""),v=Number.parseFloat(h.getAttribute("y")||"");if(Number.isNaN(y)||Number.isNaN(v)){const S=h.getAttribute("transform");if(S){const T=S.match(/translate\s*\(\s*([\d.eE+-]+)[\s,]+([\d.eE+-]+)/);T&&(y=Number.parseFloat(T[1]),v=Number.parseFloat(T[2]))}}Number.isNaN(y)||(o.has(y)||o.set(y,[]),o.get(y).push(h)),Number.isNaN(v)||(s.has(v)||s.set(v,[]),s.get(v).push(h))});const c=Array.from(o.entries()).sort(([h],[y])=>h-y).map(([h,y])=>y),d=Array.from(s.entries()).sort(([h],[y])=>y-h).map(([h,y])=>y);return[c,d]}mapSvgElementsToCenters(){const n=this.highlightXValues;if(!n)return null;const i=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const c=n[o][s],d=Array.isArray(c)?c[0]:c;if(d){const h=d.getBoundingClientRect();i.push({x:h.x+h.width/2,y:h.y+h.height/2,row:o,col:s,element:d})}}return i}findNearestPoint(n,i){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let c=0;c<this.highlightCenters.length;c++){const d=this.highlightCenters[c],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=c)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}moveToPoint(n,i){this.mode="col";const o=this.findNearestPoint(n,i);if(o&&this.isPointInBounds(n,i,o)){if(this.row===o.row&&this.col===o.col)return;this.moveToIndex(o.row,o.col)}}}const jC="Sum",vB="Level",bB="undefined";class xB extends Fw{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 c=this.barValues.reduce((h,y)=>h+y[s],0);t.push(c);const d=this.orientation===_t.VERTICAL?{x:this.points[0][s].x,y:c,fill:jC}:{x:c,y:this.points[0][s].y,fill:jC};n.push(d)}this.points.push(n),this.barValues.push(t);const{min:i,max:o}=Oi.minMax(t);this.min.push(i),this.max.push(o)}getExtremaTargets(){var R,_;const t=[],n=this.row;if(n<0||n>=this.barValues.length)return t;const i=this.min[n],o=this.max[n],s=this.barValues[n];if(!s||s.length===0)return t;const c=s.indexOf(o),d=s.indexOf(i),h=this.getGroupLabel(n),y=this.getCategoryLabel(c),v=this.getCategoryLabel(d),S=(R=this.points[n])==null?void 0:R[c],T=(_=this.points[n])==null?void 0:_[d],w=S?this.orientation===_t.VERTICAL?S.x:S.y:void 0,C=T?this.orientation===_t.VERTICAL?T.x:T.y:void 0;return t.push({label:`Max ${h} at ${y}`,value:o,pointIndex:c,segment:h,type:"max",groupIndex:n,categoryIndex:c,navigationType:"group",xValue:w}),t.push({label:`Min ${h} at ${v}`,value:i,pointIndex:d,segment:h,type:"min",groupIndex:n,categoryIndex:d,navigationType:"group",xValue:C}),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===_t.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}get text(){return{...super.text,fill:{label:vB,value:this.points[this.row][this.col].fill??bB}}}get highlight(){return this.highlightValues===null||this.row===this.barValues.length-1?this.outOfBoundsState:{empty:!1,elements:this.highlightValues[this.row][this.col]}}mapToSvgElements(t){var c;if(!t)return new Array;const n=Ct.selectAllElements(t);if(n.length===0)return new Array;const i=this.barValues.reduce((d,h)=>d+h.length,0),o=n.length<i,s=new Array;if(n[0]instanceof SVGPathElement)for(let d=0,h=0;d<this.barValues.length;d++){const y=new Array;for(let v=0;v<this.barValues[d].length;v++)if(o&&this.barValues[d][v]===0)y.push(Ct.createEmptyElement());else{if(h>=n.length)return new Array;y.push(n[h++])}s.push(y)}else if(n[0]instanceof SVGRectElement){for(let h=0;h<this.barValues.length;h++)s.push(new Array);const d=((c=this.layer.domMapping)==null?void 0:c.groupDirection)==="forward";for(let h=0,y=0;h<this.barValues[0].length;h++)if(d)for(let v=0;v<this.barValues.length;v++)if(o&&this.barValues[v][h]===0)s[v].push(Ct.createEmptyElement());else{if(y>=n.length)return new Array;s[v].push(n[y++])}else for(let v=this.barValues.length-1;v>=0;v--)if(o&&this.barValues[v][h]===0)s[v].push(Ct.createEmptyElement());else{if(y>=n.length)return new Array;s[v].push(n[y++])}}return s}}class PC extends j5{constructor(t){super(t)}get state(){const t=super.state;return t.empty?t:{...t,plotType:"smooth"}}get audio(){const t=this.lineValues[this.row],n=c=>t[Math.max(0,Math.min(c,t.length-1))],i=n(this.col-1),o=n(this.col),s=n(this.col+1);return{freq:{min:this.min[this.row],max:this.max[this.row],raw:[i,o,s]},panning:{y:this.row,x:this.col,rows:this.lineValues.length,cols:this.lineValues[this.row].length},isContinuous:!0}}}class SB extends PC{constructor(t){super(t)}mapToSvgElements(t){var o;if(!t||t.length!==this.lineValues.length)return null;const n=[];let i=!0;for(let s=0;s<t.length;s++){const c=Ct.selectElement(t[s],!1);if(!c){n.push([]);continue}const d=(o=this.points)==null?void 0:o[s],h=[];for(const y of d)typeof y.svg_x=="number"&&typeof y.svg_y=="number"&&h.push(Ct.createCircleElement(y.svg_x,y.svg_y,c));h.length>0&&(i=!1),n.push(h)}return i?null:n}}function EB(e){return typeof e=="object"&&e!==null&&"svg_x"in e&&"svg_y"in e&&typeof e.svg_x=="number"&&typeof e.svg_y=="number"}function wB(e){return Array.isArray(e.data)&&e.data.length>0&&Array.isArray(e.data[0])&&EB(e.data[0][0])?new SB(e):new PC(e)}const Xw=.001;class TB extends jo{constructor(n){super(n);P(this,"supportsExtrema",!1);P(this,"movable");P(this,"orientation");P(this,"points");P(this,"densityValues");P(this,"yValues");P(this,"highlightValues");P(this,"highlightCenters");P(this,"minDensity");P(this,"maxDensity");P(this,"refSafeMin");P(this,"refSafeMax");P(this,"refHasPositive");this.orientation=n.orientation??_t.VERTICAL,this.orientation===_t.HORIZONTAL?this.points=[...n.data].reverse():this.points=n.data,this.densityValues=this.points.map(s=>s.map(c=>c.density??c.width??0)),this.yValues=this.points.map(s=>s.map(c=>Number(c.y))),this.minDensity=this.densityValues.map(s=>Oi.safeMin(s.filter(c=>c>0))),this.maxDensity=this.densityValues.map(s=>Oi.safeMax(s));const i=this.densityValues[0];if(i&&i.length>0&&this.minDensity[0]>0){this.refHasPositive=!0;const s=this.minDensity[0],c=this.maxDensity[0];this.refSafeMin=s===c?Math.max(0,s-Xw):s,this.refSafeMax=s===c?c+Xw:c}else this.refHasPositive=!1,this.refSafeMin=0,this.refSafeMax=1;const o=this.orientation===_t.HORIZONTAL?[...n.selectors].reverse():n.selectors;this.highlightValues=this.mapToSvgElements(o),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new Wc(this.points,{row:0})}dispose(){this.points.length=0,this.densityValues.length=0,this.yValues.length=0,this.minDensity.length=0,this.maxDensity.length=0,super.dispose()}get values(){return this.densityValues}get dimension(){var n;return{rows:this.points.length,cols:((n=this.points[this.row])==null?void 0:n.length)??0}}isMovable(n){var o,s,c;if(Array.isArray(n)){const[d,h]=n;return d>=0&&d<this.points.length&&h>=0&&h<(((o=this.points[d])==null?void 0:o.length)??0)}if(this.orientation===_t.HORIZONTAL)switch(n){case"UPWARD":return this.row<this.points.length-1;case"DOWNWARD":return this.row>0;case"FORWARD":return this.col<(((s=this.points[this.row])==null?void 0:s.length)??0)-1;case"BACKWARD":return this.col>0}switch(n){case"FORWARD":return this.row<this.points.length-1;case"BACKWARD":return this.row>0;case"UPWARD":return this.col<(((c=this.points[this.row])==null?void 0:c.length)??0)-1;case"DOWNWARD":return this.col>0}}handleInitialEntry(){this.isInitialEntry=!1,this.row=0,this.col=0}moveOnce(n){if(this.isInitialEntry)return this.handleInitialEntry(),this.notifyStateUpdate(),!0;if(!this.isMovable(n))return this.notifyOutOfBounds(),!1;if(this.orientation===_t.HORIZONTAL)switch(n){case"UPWARD":return this.row+=1,this.col=0,this.notifyStateUpdate(),!0;case"DOWNWARD":return this.row-=1,this.col=0,this.notifyStateUpdate(),!0;case"FORWARD":return this.col+=1,this.notifyStateUpdate(),!0;case"BACKWARD":return this.col-=1,this.notifyStateUpdate(),!0}switch(n){case"FORWARD":return this.row+=1,this.col=0,this.notifyStateUpdate(),!0;case"BACKWARD":return this.row-=1,this.col=0,this.notifyStateUpdate(),!0;case"UPWARD":return this.col+=1,this.notifyStateUpdate(),!0;case"DOWNWARD":return this.col-=1,this.notifyStateUpdate(),!0}}moveToExtreme(n){var o,s;if(this.isInitialEntry)return this.handleInitialEntry(),this.notifyStateUpdate(),!0;if(this.orientation===_t.HORIZONTAL)switch(n){case"UPWARD":this.row=this.points.length-1,this.col=0;break;case"DOWNWARD":this.row=0,this.col=0;break;case"FORWARD":this.col=(((o=this.points[this.row])==null?void 0:o.length)??1)-1;break;case"BACKWARD":this.col=0;break}else switch(n){case"FORWARD":this.row=this.points.length-1,this.col=0;break;case"BACKWARD":this.row=0,this.col=0;break;case"UPWARD":this.col=(((s=this.points[this.row])==null?void 0:s.length)??1)-1;break;case"DOWNWARD":this.col=0;break}return this.notifyStateUpdate(),!0}get audio(){var w;const n=this.orientation===_t.HORIZONTAL,i=((w=this.points[this.row])==null?void 0:w.length)??0,o=n?{x:this.col,y:this.row,rows:this.points.length,cols:i}:{y:this.row,x:this.col,rows:this.points.length,cols:i};if(!this.refHasPositive)return{freq:{min:0,max:1,raw:0},panning:o};const s=this.densityValues[0],c=Math.min(this.col,s.length-1),d=C=>s[Math.max(0,Math.min(C,s.length-1))],h=c>0?d(c-1):d(c),y=d(c),v=c<s.length-1?d(c+1):d(c);let S=1;const T=this.densityValues[this.row];if(T&&T.length>0){const C=Math.min(this.col,T.length-1),R=T[C],_=this.maxDensity[this.row];if(_>0&&R>0){const z=this.minDensity[this.row]===_?_+Xw:_;S=R/z}}return{freq:{min:this.refSafeMin,max:this.refSafeMax,raw:[h,y,v]},panning:o,isContinuous:!0,volumeScale:S}}get autoplay(){return this.orientation===_t.HORIZONTAL?{UPWARD:this.dimension.rows,DOWNWARD:this.dimension.rows,FORWARD:this.dimension.cols,BACKWARD:this.dimension.cols}:{UPWARD:this.dimension.cols,DOWNWARD:this.dimension.cols,FORWARD:this.dimension.rows,BACKWARD:this.dimension.rows}}get text(){const n=this.points[this.row][this.col],i=y=>Math.round(y*1e4)/1e4,o=this.orientation===_t.HORIZONTAL;let s;if(typeof n.x=="string")s=n.x;else{const y=this.points[this.row][0];s=typeof(y==null?void 0:y.x)=="string"?y.x:`Violin ${this.row+1}`}const c=i(Number(n.y)),d={main:{label:o?this.yAxis:this.xAxis,value:s},cross:{label:o?this.xAxis:this.yAxis,value:c},mainAxis:o?"y":"x",crossAxis:o?"x":"y"},h=n.width!==void 0&&n.width>0?i(n.width):void 0;return h!==void 0&&(d.fill={label:"volume",value:String(h)}),d}get braille(){return{empty:!1,id:this.id,values:this.densityValues,min:this.minDensity,max:this.maxDensity,row:this.row,col:this.col}}getCurrentXValue(){return this.row>=0&&this.row<this.points.length?this.row:null}moveToXValue(n){var s;if(this.isInitialEntry&&this.handleInitialEntry(),typeof n!="number")return!1;const i=Math.floor(n);if(i<0||i>=this.points.length)return!1;const o=this.row;if(this.row=i,i!==o)this.col=0;else{const c=(s=this.points[i])!=null&&s.length?this.points[i].length-1:0;this.col=Math.min(this.col,c)}return this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}getCurrentYValue(){const n=this.yValues[this.row];return!n||n.length===0?null:this.col>=0&&this.col<n.length?n[this.col]:null}moveToXAndYValue(n,i){if(this.isInitialEntry&&(this.isInitialEntry=!1),typeof n!="number")return!1;const o=Math.floor(n);if(o<0||o>=this.yValues.length)return!1;this.row=o;const s=this.yValues[this.row];if(!s||s.length===0)return this.col=0,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;let c=0,d=Math.abs(s[0]-i);for(let h=1;h<s.length;h++){const y=Math.abs(s[h]-i);y<d&&(d=y,c=h)}return this.col=c,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}mapToSvgElements(n){if(!n||n.length===0)return null;const i=[];let o=!0;const s=n.length===this.points.length;for(let c=0;c<this.points.length;c++){const d=[],h=this.points[c],y=s?n[c]:n[0];if(!y){i.push([]);continue}const v=Ct.selectAllElements(y,!1),S=v.filter(_=>_ instanceof SVGUseElement),T=v.filter(_=>_ instanceof SVGPathElement),w=v.filter(_=>_ instanceof SVGPolygonElement),C=S.length>0?S:T.length>0?T:w,R=C.length>0?C[s?0:c<C.length?c:0]:null;if(R&&h){for(const _ of h){const N=_.svg_x,z=_.svg_y;N!==void 0&&z!==void 0&&!Number.isNaN(N)&&!Number.isNaN(z)&&d.push(Ct.createCircleElement(N,z,R))}d.length>0&&(o=!1)}i.push(d)}return o?null:i}mapSvgElementsToCenters(){if(!this.highlightValues)return null;const n=[];for(let i=0;i<this.highlightValues.length;i++)for(let o=0;o<this.highlightValues[i].length;o++){const s=this.highlightValues[i][o];if(s){const c=s.getBoundingClientRect();n.push({x:c.x+c.width/2,y:c.y+c.height/2,row:i,col:o,element:s})}}return n}findNearestPoint(n,i){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let c=0;c<this.highlightCenters.length;c++){const d=this.highlightCenters[c],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=c)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}updateVisualPointPosition(){const{row:n,col:i}=this.getSafeIndices();this.row=n,this.col=i}}class AB extends jo{constructor(n){var d;super(n);P(this,"supportsExtrema",!1);P(this,"movable");P(this,"points");P(this,"boxValues");P(this,"highlightValues");P(this,"highlightCenters");P(this,"orientation");P(this,"sections");P(this,"violinOptions");P(this,"min");P(this,"max");P(this,"minSectionIndex");this.violinOptions=n.violinOptions??{},this.orientation=n.orientation??_t.VERTICAL,this.orientation===_t.HORIZONTAL?this.points=[...n.data].reverse():this.points=n.data;const{sections:i,accessors:o}=this.buildViolinSections();this.sections=i,this.boxValues=this.computeBoxValues(o);const s=this.boxValues.map(h=>h.flatMap(y=>Array.isArray(y)?y:[y])).map(h=>h.filter(y=>!Number.isNaN(y)));this.min=Oi.minFrom2D(s),this.max=Oi.maxFrom2D(s),this.highlightValues=this.mapToSvgElements(n.selectors),this.orientation===_t.HORIZONTAL&&((d=this.highlightValues)==null||d.reverse()),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new Wc(this.boxValues,{row:0});const c=this.sections.indexOf(aa.MIN);this.minSectionIndex=c>=0?c:0}buildViolinSections(){const n=[aa.MIN],i=[o=>o.min];return n.push(aa.Q1),i.push(o=>o.q1),this.violinOptions.showMedian!==!1&&(n.push(aa.Q2),i.push(o=>o.q2)),this.violinOptions.showMean===!0&&(n.push(aa.MEAN),i.push(o=>o.mean??Number.NaN)),n.push(aa.Q3),i.push(o=>o.q3),this.violinOptions.showExtrema!==!1&&(n.push(aa.MAX),i.push(o=>o.max)),{sections:n,accessors:i}}computeBoxValues(n){return this.orientation===_t.HORIZONTAL?this.points.map(i=>n.map(o=>o(i))):n.map(i=>this.points.map(o=>i(o)))}dispose(){this.points.length=0,this.sections.length=0,super.dispose()}get values(){return this.boxValues}get dimension(){var i,o;const n=this.orientation===_t.HORIZONTAL;return{rows:n?this.boxValues.length:((i=this.boxValues[this.row])==null?void 0:i.length)??0,cols:n?((o=this.boxValues[this.row])==null?void 0:o.length)??0:this.boxValues.length}}handleInitialEntry(){var i;this.isInitialEntry=!1;const n=this.minSectionIndex;this.orientation===_t.VERTICAL?(this.row=Math.min(n,this.boxValues.length-1),this.col=0):(this.row=0,this.col=Math.min(n,((i=this.boxValues[0])==null?void 0:i.length)??1))}moveOnce(n){if(this.isInitialEntry)return this.handleInitialEntry(),this.notifyStateUpdate(),!0;if(!this.isMovable(n))return this.notifyOutOfBounds(),!1;const i=this.minSectionIndex;if(this.orientation===_t.VERTICAL)if(n==="FORWARD")this.col+=1,this.row=i;else if(n==="BACKWARD")this.col-=1,this.row=i;else return super.moveOnce(n);else if(n==="UPWARD")this.row+=1,this.col=i;else if(n==="DOWNWARD")this.row-=1,this.col=i;else return super.moveOnce(n);return this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}get audio(){const n=this.orientation===_t.HORIZONTAL,i=this.boxValues[this.row][this.col],o=n?this.col:this.row,s=Array.isArray(i)?i.length===0?o:i[i.length-1]-this.min:Number.isNaN(i)?o:i-this.min;return{freq:{min:this.min,max:this.max,raw:this.boxValues[this.row][this.col]},panning:{x:n?s:this.row,y:n?this.row:s,rows:n?this.boxValues.length:this.max-this.min,cols:n?this.max-this.min:this.boxValues.length}}}get text(){const n=this.orientation===_t.HORIZONTAL,i=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],c=n?this.xAxis:this.yAxis,d=this.boxValues[this.row][this.col];return{main:{label:o,value:i.fill},cross:{label:c,value:d},section:s,mainAxis:n?"y":"x",crossAxis:n?"x":"y"}}get braille(){const n=this.orientation===_t.HORIZONTAL,i=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:i,col:o}}getCurrentXValue(){return this.orientation===_t.VERTICAL?this.col>=0?this.col:null:this.row>=0?this.row:null}moveToXValue(n){if(this.isInitialEntry&&this.handleInitialEntry(),typeof n!="number")return!1;const i=Math.floor(n),o=this.values,s=this.minSectionIndex;if(this.orientation===_t.VERTICAL){const c=o.length>0?o[0].length:0;if(i<0||i>=c)return!1;const d=this.col;this.col=i,i!==d&&(this.row=s)}else{if(i<0||i>=o.length)return!1;const c=this.row;this.row=i,i!==c&&(this.col=s)}return this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}getCurrentYValue(){const n=this.values;if(this.orientation===_t.VERTICAL){if(this.row>=0&&this.row<n.length&&this.col>=0){const i=n[this.row];if(Array.isArray(i)&&this.col<i.length){const o=i[this.col];return Array.isArray(o)?o.length>0?o[0]:null:typeof o=="number"?o:null}}}else if(this.row>=0&&this.row<n.length&&this.col>=0){const i=n[this.row];if(Array.isArray(i)&&this.col<i.length){const o=i[this.col];return Array.isArray(o)?o.length>0?o[0]:null:typeof o=="number"?o:null}}return null}moveToXAndYValue(n,i){if(this.isInitialEntry&&(this.isInitialEntry=!1),typeof n!="number")return!1;const o=Math.floor(n),s=this.values,c=this.minSectionIndex;if(this.orientation===_t.VERTICAL){const d=s.length>0?s[0].length:0;if(o<0||o>=d)return!1;this.col=o;let h=c,y=1/0;for(let v=0;v<s.length;v++){const S=s[v];if(Array.isArray(S)&&o<S.length){const T=S[o];if(Array.isArray(T)){for(const w of T)if(typeof w=="number"){const C=Math.abs(w-i);C<y&&(y=C,h=v)}}else if(typeof T=="number"){const w=Math.abs(T-i);w<y&&(y=w,h=v)}}}this.row=h}else{if(o<0||o>=s.length)return!1;this.row=o;let d=c,h=1/0;const y=s[o];if(Array.isArray(y))for(let v=0;v<y.length;v++){const S=y[v];if(Array.isArray(S)){for(const T of S)if(typeof T=="number"){const w=Math.abs(T-i);w<h&&(h=w,d=v)}}else if(typeof S=="number"){const T=Math.abs(S-i);T<h&&(h=T,d=v)}}this.col=d}return this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}mapToSvgElements(n){if(!n||n.length!==this.points.length)return null;const i=this.orientation===_t.VERTICAL,o=new Array;if(i)for(let c=0;c<this.sections.length;c++)o.push(Array.from({length:n.length}));const s=[];return n.forEach(c=>{const d=Ct.selectElement(c.min,!1),h=Ct.selectElement(c.max,!1),y=Ct.selectElement(c.iq,!1),v=Ct.selectElement(c.q2,!1),S=c.mean?Ct.selectElement(c.mean,!1):null;s.push({min:d,max:h,iq:y,q2:v,mean:S})}),s.forEach((c,d)=>{var _;const h=this.cloneElementOrEmpty(c.min),y=this.cloneElementOrEmpty(c.max),v=this.cloneElementOrEmpty(c.q2),S=this.cloneElementOrEmpty(c.mean),T=((_=this.layer.domMapping)==null?void 0:_.iqrDirection)==="reverse",[w,C]=c.iq?i?T?[Ct.createLineElement(c.iq,"top"),Ct.createLineElement(c.iq,"bottom")]:[Ct.createLineElement(c.iq,"bottom"),Ct.createLineElement(c.iq,"top")]:[Ct.createLineElement(c.iq,"left"),Ct.createLineElement(c.iq,"right")]:[Ct.createEmptyElement("line"),Ct.createEmptyElement("line")],R=[];R.push(h),R.push(w),this.violinOptions.showMedian!==!1&&R.push(v),this.violinOptions.showMean===!0&&R.push(S),R.push(C),this.violinOptions.showExtrema!==!1&&R.push(y),i?R.forEach((N,z)=>{o[z][d]=N}):o.push(R)}),o}cloneElementOrEmpty(n){if(!n)return Ct.createEmptyElement();const i=n.cloneNode(!0);return i.setAttribute(me.VISIBILITY,me.HIDDEN),n.insertAdjacentElement(me.AFTER_END,i),i}mapSvgElementsToCenters(){if(!this.highlightValues)return null;const n=[];for(let i=0;i<this.highlightValues.length;i++)for(let o=0;o<this.highlightValues[i].length;o++){const s=this.highlightValues[i][o],c=Array.isArray(s)?s[0]:s;if(c){const d=c.getBoundingClientRect();n.push({x:d.x+d.width/2,y:d.y+d.height/2,row:i,col:o,element:c})}}return n}findNearestPoint(n,i){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let c=0;c<this.highlightCenters.length;c++){const d=this.highlightCenters[c],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=c)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}moveToPoint(n,i){}updateVisualPointPosition(){const{row:n,col:i}=this.getSafeIndices();this.row=n,this.col=i}}class CB{static create(t){switch(t.type){case wn.BAR:return new cB(t);case wn.BOX:return new fB(t);case wn.CANDLESTICK:return new pB(t);case wn.HEATMAP:return new mB(t);case wn.HISTOGRAM:return new gB(t);case wn.LINE:return new j5(t);case wn.SCATTER:return new yB(t);case wn.SMOOTH:return wB(t);case wn.DODGED:case wn.NORMALIZED:case wn.STACKED:return new xB(t);case wn.VIOLIN_KDE:return new TB(t);case wn.VIOLIN_BOX:return new AB(t);default:throw new Error(`Invalid trace type: ${t.type}`)}}}const OB="MAIDR Plot",MB="unavailable",RB="unavailable";class _B extends qw{constructor(n){super();P(this,"id");P(this,"movable");P(this,"title");P(this,"subtitle");P(this,"caption");P(this,"subplots");P(this,"size");P(this,"visualOrderMap");P(this,"invertVertical");P(this,"totalAxesCount");this.id=n.id,this.title=n.title??OB,this.subtitle=n.subtitle??MB,this.caption=n.caption??RB;const i=n.subplots;this.subplots=i.map(o=>o.map(s=>new DB(s))),this.size=this.subplots.reduce((o,s)=>o+s.length,0),this.visualOrderMap=new Map,this.invertVertical=!1,this.totalAxesCount=0,this.movable=new Wc(this.subplots)}get dimension(){return{rows:this.subplots.length,cols:this.subplots[this.row].length}}applyLayout(n){this.visualOrderMap=n.visualOrderMap,this.invertVertical=n.invertVertical,this.totalAxesCount=n.totalAxesCount;for(let i=0;i<this.subplots.length;i++)for(let o=0;o<this.subplots[i].length;o++){const s=n.axesElements.get(`${i},${o}`)??null;this.subplots[i][o].setAxesElement(s)}this.movable=new Wc(this.subplots,{row:n.topLeftRow})}moveOnce(n){return super.moveOnce(this.adjustDirection(n))}moveToExtreme(n){return super.moveToExtreme(this.adjustDirection(n))}adjustDirection(n){if(!this.invertVertical)return n;switch(n){case"UPWARD":return"DOWNWARD";case"DOWNWARD":return"UPWARD";default:return n}}dispose(){this.subplots.forEach(n=>n.forEach(i=>i.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.row},${this.col}`,i=this.visualOrderMap.get(n);i===void 0&&console.warn(`[Figure] Visual order map missing key "${n}". Was applyLayout() called?`);const o=this.activeSubplot;return{empty:!1,type:"figure",title:this.title,subtitle:this.subtitle,caption:this.caption,size:this.size,index:i??1,subplot:o.getStateWithFigurePosition(this.row,this.col),traceTypes:o.traceTypes,highlight:this.highlight}}get highlight(){if(this.totalAxesCount<=1)return{empty:!0,type:"trace",audio:{y:this.row,x:this.col,rows:this.subplots.length,cols:this.subplots[this.row].length}};const n=this.activeSubplot.axesElement;return n?{empty:!1,elements:n}:{empty:!0,type:"trace",audio:{y:this.row,x:this.col,rows:this.subplots.length,cols:this.subplots[this.row].length}}}moveToPoint(n,i){this.notifyStateUpdate()}get outOfBoundsState(){return{empty:!0,type:"figure"}}}class DB extends qw{constructor(n){var c;super();P(this,"movable");P(this,"traces");P(this,"traceTypes");P(this,"size");P(this,"highlightValue");P(this,"isViolinPlot");P(this,"layerSelector");P(this,"_axesElement",null);const i=n.layers;this.size=i.length;const o=(c=i[0])==null?void 0:c.selectors;this.layerSelector=typeof o=="string"?o:Array.isArray(o)&&typeof o[0]=="string"?o[0]:null;const s=i.map(d=>d.type);this.isViolinPlot=s.includes(wn.VIOLIN_KDE)||s.includes(wn.VIOLIN_BOX),this.traces=i.map(d=>[CB.create(d)]),this.traceTypes=this.traces.flat().map(d=>{const h=d.state;return h.empty?me.EMPTY:h.traceType}),this.highlightValue=this.mapToSvgElement(n.selector),this.movable=new Wc(this.traces)}get dimension(){return{rows:this.values.length,cols:this.values[this.row].length}}dispose(){this.traces.forEach(n=>n.forEach(i=>i.dispose())),this.traces.length=0,super.dispose()}getRow(){return this.row}getSize(){return this.size}get values(){return this.traces}get activeTrace(){return this.traces[this.row][this.col]}moveOnce(n){return this.size>1&&this.isInitialEntry&&(this.isInitialEntry=!1),super.moveOnce(n)}get state(){return{empty:!1,type:"subplot",size:this.size,index:this.row+1,trace:this.activeTrace.state,highlight:this.highlight}}get outOfBoundsState(){return{empty:!0,type:"subplot"}}get highlight(){return this.highlightValue===null?{empty:!0,type:"trace",audio:{y:this.row,x:this.col,rows:this.values.length,cols:this.values[this.row].length}}:{empty:!1,elements:this.highlightValue}}moveToPoint(n,i){this.notifyStateUpdate()}getStateWithFigurePosition(n,i){return this.state}getHighlightElement(){return this.highlightValue}getLayerSelector(){return this.layerSelector}get axesElement(){return this._axesElement}setAxesElement(n){this._axesElement=n}mapToSvgElement(n){return n?Ct.selectElement(n)??null:null}}const ja={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},Bg=class Bg{constructor(){P(this,"basePalette");P(this,"extendedPalette");this.basePalette=[{index:ja.SINE_BASIC,waveType:"sine",timbreModulation:{attack:.01,decay:.1,sustain:.8,release:.2}},{index:ja.SQUARE_BASIC,waveType:"square",timbreModulation:{attack:.005,decay:.05,sustain:.7,release:.15}},{index:ja.SAWTOOTH_BASIC,waveType:"sawtooth",timbreModulation:{attack:.02,decay:.08,sustain:.6,release:.25}},{index:ja.TRIANGLE_BASIC,waveType:"triangle",timbreModulation:{attack:.015,decay:.12,sustain:.9,release:.18}},{index:ja.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:ja.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:ja.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:ja.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:ja.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:ja.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:ja.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 i=this.generateExtendedEntry(t);return this.extendedPalette.set(t,i),i}get basePaletteSize(){return this.basePalette.length}getCandlestickGroupIndex(t){switch(t){case"Bull":return ja.SINE_BASIC;case"Bear":return ja.SAWTOOTH_SOFT;case"Neutral":return ja.TRIANGLE_BASIC;default:return ja.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,i)=>{this.extendedPalette.set(this.basePalette.length+i,n)})}generateExtendedEntry(t){const n=t%this.basePalette.length,i=this.basePalette[n],o=Math.floor((t-this.basePalette.length)/this.basePalette.length),s=this.generateHarmonics(o),c=this.generateTimbreModulation(o,i.timbreModulation);return{index:t,waveType:i.waveType,harmonicMix:{fundamental:1,harmonics:s},timbreModulation:c}}generateHarmonics(t){const n=[],i=Bg.MIN_HARMONICS+t%Bg.HARMONIC_VARIATION;for(let o=0;o<i;o++){const s=1+(o+1)*(.5+t*.3%1),c=.4/(o+1)*(1-t*.1%.3);n.push({frequency:s,amplitude:c})}return n}generateTimbreModulation(t,n){const i=1+t*.2%.5;return{attack:Math.max(.005,Math.min(.05,n.attack*i)),decay:Math.max(.05,Math.min(.3,n.decay*i)),sustain:Math.max(.4,Math.min(.9,n.sustain+t*.1%.2)),release:Math.max(.1,Math.min(.5,n.release*i))}}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.`)})}};P(Bg,"MIN_HARMONICS",2),P(Bg,"HARMONIC_VARIATION",3);let Ww=Bg;const NB=100,kB=440,zB=880,UC=180,$C=.2,IB=.1,Qw=.3,P5=ja.SINE_BASIC;class LB{constructor(t,n,i){P(this,"notification");P(this,"audioPalette");P(this,"isCombinedAudio");P(this,"mode");P(this,"activeAudioIds");P(this,"volume");P(this,"minFrequency");P(this,"maxFrequency");P(this,"audioContext");P(this,"compressor");this.notification=t,this.audioPalette=new Ww,this.isCombinedAudio=!1,this.mode="on",this.updateMode(i),this.activeAudioIds=new Map,this.volume=this.normalizeVolume(n.get("general.volume")),this.minFrequency=n.get("general.minFrequency"),this.maxFrequency=n.get("general.maxFrequency"),n.onChange(o=>{o.affectsSetting("general.volume")&&(this.volume=this.normalizeVolume(o.get("general.volume"))),o.affectsSetting("general.minFrequency")&&(this.minFrequency=o.get("general.minFrequency")),o.affectsSetting("general.maxFrequency")&&(this.maxFrequency=o.get("general.maxFrequency"))}),this.audioContext=new AudioContext,this.compressor=this.initCompressor()}dispose(){this.stopAll(),this.audioPalette.dispose(),this.audioContext.state!=="closed"&&(this.compressor.disconnect(),this.audioContext.close())}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"))}update(t){if(this.updateMode(t),this.mode==="off")return;if(t.empty){t.warning?this.playWarningTone():t.type==="trace"&&t.audio?this.playEmptyTone({x:t.audio.x,y:t.audio.y,rows:t.audio.rows,cols:t.audio.cols}):this.playEmptyTone({x:0,y:0,rows:1,cols:1});return}if(t.type!=="trace")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 i=n.group;n.trend&&i===void 0&&(i=this.audioPalette.getCandlestickGroupIndex(n.trend));const o=i!==void 0?this.audioPalette.getPaletteEntry(i):void 0;if(n.isContinuous)this.playSmooth(n.freq,n.panning,o,n.volumeMultiplier,n.volumeScale);else if(Array.isArray(n.freq.raw)){const s=n.freq.raw;if(s.length===0){this.playZeroTone(n.panning);return}let c=0;const d=this.mode==="on"?50:0,h=new Array,y=()=>{c<s.length?(this.playTone({min:n.freq.min,max:n.freq.max,raw:s[c++]},{x:n.panning.x,y:n.panning.y,rows:n.panning.rows,cols:n.panning.cols},o),h.push(setTimeout(y,d))):this.stop(h)};y()}else n.freq.raw===0?this.playZeroTone(n.panning):this.playTone(n.freq,n.panning,o)}playTone(t,n,i){const o={min:t.min,max:t.max},s={min:this.minFrequency,max:this.maxFrequency},c=this.interpolate(t.raw,o,s),d=this.clamp(this.interpolate(n.x,{min:0,max:n.cols-1},{min:-1,max:1}),-1,1);return this.playOscillator(c,{x:d,y:0},i)}createAdsrEnvelope(t,n,i,o,s){if(n!=null&&n.timbreModulation){const{attack:c,decay:d,sustain:h,release:y}=n.timbreModulation,v=s*c,S=s*d,T=s*y,w=s-v-S-T;return t.gain.setValueAtTime(1e-4*i,o),t.gain.linearRampToValueAtTime(i,o+v),t.gain.linearRampToValueAtTime(h*i,o+v+S),w>0&&t.gain.setValueAtTime(h*i,o+v+S+w),t.gain.linearRampToValueAtTime(1e-4*i,o+s),null}else return[.5*i,i,.5*i,.5*i,.5*i,.1*i,1e-4*i]}playOscillator(t,n={x:0,y:0},i){const o=Qw,s=this.audioContext.currentTime;i||(i=this.audioPalette.getPaletteEntry(P5));const c=[],d=[],h=this.audioContext.createOscillator();if(h.type=i.waveType,h.frequency.value=t,c.push(h),i.harmonicMix)for(const T of i.harmonicMix.harmonics){const w=this.audioContext.createOscillator();w.type=i.waveType,w.frequency.value=T.frequency*t,c.push(w)}for(let T=0;T<c.length;T++){const w=this.audioContext.createGain();let C=this.volume;if(T===0)i.harmonicMix&&(C*=i.harmonicMix.fundamental);else{const _=i.harmonicMix.harmonics[T-1];C*=_.amplitude}const R=this.createAdsrEnvelope(w,i,C,s,o);R!==null&&w.gain.setValueCurveAtTime(R,s,o),d.push(w)}const y=this.audioContext.createStereoPanner();y.pan.value=n.x;for(let T=0;T<c.length;T++)c[T].connect(d[T]),d[T].connect(y);y.connect(this.compressor),c.forEach(T=>T.start(s));const v=T=>{y.disconnect();for(let w=0;w<c.length;w++)c[w].stop(),c[w].disconnect(),d[w].disconnect();this.activeAudioIds.delete(T)},S=setTimeout(()=>v(S),o*1e3*2);return this.activeAudioIds.set(S,c),S}playSmooth(t,n,i,o,s){const c=this.audioContext,d=c.currentTime,h=Qw,y=t.raw.map(B=>this.interpolate(B,{min:t.min,max:t.max},{min:this.minFrequency,max:this.maxFrequency})),v=this.volume;let S;s!==void 0?S=v*Math.max(0,s):S=v*(o??1),y.length<2&&y.push(y[0]);const T=this.clamp(this.interpolate(n.x,{min:0,max:n.cols-1},{min:-1,max:1}),-1,1),w=(i==null?void 0:i.waveType)||"sine",C=c.createOscillator();C.type=w,C.frequency.setValueCurveAtTime(y,d,h);const R=c.createGain(),_=this.createAdsrEnvelope(R,i,S,d,h);_!==null&&R.gain.setValueCurveAtTime(_,d,h);const N=c.createStereoPanner();N.pan.value=T,C.connect(R),R.connect(N),N.connect(this.compressor),C.start(d),C.stop(d+h);const z=setTimeout(()=>{C.disconnect(),R.disconnect(),N.disconnect(),this.activeAudioIds.delete(z)},h*1e3*2);this.activeAudioIds.set(z,C)}playEmptyTone(t){const n=this.interpolate(t.x,{min:0,max:t.cols-1},{min:-1,max:1}),i=this.audioContext,o=i.currentTime,s=.2,c=i.createStereoPanner();c.pan.value=n;const d=[500,1e3,1500,2100,2700],h=[1,.6,.4,.2,.1],y=i.createGain();y.gain.setValueAtTime(.3*this.volume,o),y.gain.exponentialRampToValueAtTime(.01*this.volume,o+s),y.connect(c),c.connect(this.compressor);const v=[];for(let w=0;w<d.length;w++){const C=i.createOscillator(),R=i.createGain();C.frequency.value=d[w],C.type="sine",R.gain.setValueAtTime(h[w]*this.volume,o),R.gain.exponentialRampToValueAtTime(.001*this.volume,o+s),C.connect(R),R.connect(y),C.start(o),C.stop(o+s),v.push(C)}const S=w=>{c.disconnect(),y.disconnect(),v.forEach(C=>{C.disconnect()}),this.activeAudioIds.delete(w)},T=setTimeout(()=>S(T),s*1e3*2);return this.activeAudioIds.set(T,v),T}playOneWarningBeep(t,n){const i=this.audioContext.createOscillator(),o=this.audioContext.createGain();i.type="sine",i.frequency.value=t;let s=1;i.type!=="sine"&&(s=.5),o.gain.setValueAtTime(s,n),o.gain.exponentialRampToValueAtTime(.001,n+$C),i.connect(o),o.connect(this.audioContext.destination),i.start(n),i.stop(n+$C)}playWarningTone(){const t=this.audioContext.currentTime;this.playOneWarningBeep(UC,t),this.playOneWarningBeep(UC/2**(1/12),t+IB)}playWarningToneIfEnabled(){this.mode!=="off"&&this.playWarningTone()}playZeroTone(t){const n=this.clamp(this.interpolate(t.x,{min:0,max:t.cols-1},{min:-1,max:1}),-1,1);return this.playOscillator(NB,{x:n,y:0},{index:P5,waveType:"triangle"})}playWaitingTone(){const t=this.audioPalette.getPaletteEntry(P5);return setInterval(()=>this.playOscillator(kB,{x:0,y:0},t),1e3)}playCompleteTone(){const t=this.audioPalette.getPaletteEntry(P5);return this.playOscillator(zB,{x:0,y:0},t)}playSimultaneousTones(t){const n=Qw,i=this.audioContext,o=i.currentTime,s=Array.isArray(t[0].freq.raw)?t[0].freq.raw[1]??t[0].freq.raw[0]:t[0].freq.raw,c=this.interpolate(s,{min:t[0].freq.min,max:t[0].freq.max},{min:this.minFrequency,max:this.maxFrequency});t.forEach((d,h)=>{const v=this.audioPalette.getPaletteEntry(d.group??h).waveType,S=i.createOscillator();S.type=v,S.frequency.value=c;const T=i.createGain();T.gain.setValueAtTime(this.volume,o),T.gain.exponentialRampToValueAtTime(.01*this.volume,o+n),S.connect(T),T.connect(this.compressor),S.start(o),S.stop(o+n);const w=setTimeout(()=>{S.disconnect(),T.disconnect(),this.activeAudioIds.delete(w)},n*1e3*2);this.activeAudioIds.set(w,[S])})}interpolate(t,n,i){return n.min===n.max?i.min:(t-n.min)/(n.max-n.min)*(i.max-i.min)+i.min}clamp(t,n,i){return Math.max(n,Math.min(t,i))}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(i=>{const o=this.activeAudioIds.get(i);if(!o){clearInterval(i);return}(Array.isArray(o)?o:[o]).forEach(c=>{c==null||c.disconnect(),c==null||c.stop()}),clearTimeout(i),this.activeAudioIds.delete(i)})}stopAll(){this.activeAudioIds.forEach((t,n)=>{clearTimeout(n),(Array.isArray(t)?t:[t]).forEach(o=>{o.disconnect(),o.stop()})}),this.activeAudioIds.clear()}normalizeVolume(t){return t/100*(t/100)}}const VB=250,BB=10,jB=500,HC=20;class PB{constructor(t,n,i){P(this,"context");P(this,"notification");P(this,"settings");P(this,"autoplayId");P(this,"currentDirection");P(this,"userSpeed");P(this,"defaultSpeed");P(this,"minSpeed");P(this,"maxSpeed");P(this,"autoplayRate");P(this,"interval");P(this,"totalDuration");P(this,"onChangeEmitter");P(this,"onChange");this.notification=n,this.context=t,this.settings=i,this.autoplayId=null,this.currentDirection=null,this.userSpeed=null,this.defaultSpeed=VB,this.minSpeed=BB,this.maxSpeed=jB,this.interval=HC,this.autoplayRate=this.defaultSpeed,this.interval=HC,this.totalDuration=i.get("general.autoplayDuration"),i.onChange(o=>{o.affectsSetting("general.autoplayDuration")&&(this.totalDuration=o.get("general.autoplayDuration"),this.restart())}),this.onChangeEmitter=new Yc,this.onChange=this.onChangeEmitter.event}dispose(){this.stop(),this.onChangeEmitter.dispose()}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 i=Math.ceil(this.totalDuration/n.autoplay[t]);return this.defaultSpeed=i,this.minSpeed=Math.min(this.minSpeed,i),i}return this.defaultSpeed}}const qC=32;class vv{encode(t){const n=new Array,i=new Array,o=new Array;for(let s=0;s<t.values.length;s++){i.push(new Array);const c=(t.max[s]-t.min[s])/4,d=t.min[s]+c,h=d+c,y=h+c;for(let v=0;v<t.values[s].length;v++)t.values[s][v]===0?n.push(" "):t.values[s][v]<=d||t.values[s][v]<=h?n.push("⠤"):t.values[s][v]<=y?n.push("⠒"):n.push("⠉"),i[s].push(o.length),o.push({row:s,col:v});n.push(me.NEW_LINE),i[s].push(o.length),o.push({row:s,col:t.values[s].length})}return{value:n.join(me.EMPTY),cellToIndex:i,indexToCell:o}}}class GC{constructor(){P(this,"GLOBAL_MIN","globalMin");P(this,"GLOBAL_MAX","globalMax");P(this,"BLANK","blank");P(this,"LOWER_OUTLIER","lowerOutlier");P(this,"UPPER_OUTLIER","upperOutlier");P(this,"MIN","min");P(this,"MAX","max");P(this,"Q1","q1");P(this,"Q2","q2");P(this,"Q3","q3")}encode(t,n=qC){const i=new Array,o=new Array,s=new Array;for(let c=0;c<t.values.length;c++){const d=t.values[c],h=[{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 v=!0;for(let X=0;X<h.length-1;X++){const se=h[X],ce=h[X+1],ie=Math.abs(v?ce.value-se.value:se.value-h[X-1].value);se.type===this.LOWER_OUTLIER||se.type===this.UPPER_OUTLIER?(y.push({type:se.type,length:0,numChars:1}),y.push({type:this.BLANK,length:ie,numChars:0})):se.type===this.Q2?(v=!1,y.push({type:this.Q2,length:0,numChars:2})):se.type===this.GLOBAL_MIN||se.type===this.GLOBAL_MAX?y.push({type:this.BLANK,length:ie,numChars:0}):y.push({type:se.type,length:ie,numChars:1})}let S=y.reduce((X,se)=>X+(se.numChars>0?se.numChars:0),0),[T,w,C,R]=[-1,-1,-1,-1];for(let X=0;X<y.length;X++)y[X].type===this.MIN&&y[X].length>0&&(T=X),y[X].type===this.MAX&&y[X].length>0&&(w=X),y[X].type===this.Q1&&(C=X),y[X].type===this.Q3&&(R=X);T!==-1&&w!==-1&&y[T].length!==y[w].length&&(y[T].length>y[w].length?(y[T].numChars++,S++):(y[w].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 _=Math.max(0,n-S),N=y.reduce((X,se)=>X+(se.type!==this.Q2&&se.length>0?se.length:0),0);for(const X of y)if(X.type!==this.Q2&&X.length>0){const se=Math.round(X.length/N*_);X.numChars+=se}const z=y.reduce((X,se)=>X+se.numChars,0);let B=n-z,V=0;for(;B!==0;){const X=y[V%y.length];X.type!==this.BLANK&&X.type!==this.Q2&&X.length>0&&(X.numChars+=B>0?1:-1,B+=B>0?-1:1),V++}let L=-1;const U=[this.LOWER_OUTLIER,this.MIN,this.Q1,this.Q2,this.Q3,this.MAX,this.UPPER_OUTLIER];s.push(Array.from({length:U.length}).fill(-1));for(const X of y){X.type!==this.BLANK&&X.type!==this.GLOBAL_MIN&&X.type!==this.GLOBAL_MAX&&(L=U.indexOf(X.type),s[c][L]=i.length);for(let se=0;se<X.numChars;se++){let ce="⠀";X.type===this.MIN||X.type===this.MAX?ce="⠒":X.type===this.Q1||X.type===this.Q3?ce="⠿":X.type===this.Q2?ce=se===0?"⠸":"⠇":X.type===this.LOWER_OUTLIER||X.type===this.UPPER_OUTLIER?ce="⠂":X.type===this.BLANK&&(ce="⠀"),i.push(ce),o.push({row:c,col:L})}}for(let X=0;X<3;X++)if(s[c][X]===-1){for(let se=X+1;se<=3;se++)if(s[c][se]!==-1){s[c][X]=s[c][se];break}}for(let X=6;X>3;X--)if(s[c][X]===-1){for(let se=X-1;se>=3;se--)if(s[c][se]!==-1){s[c][X]=s[c][se];break}}i.push(me.NEW_LINE),o.push({row:c,col:L})}return{value:i.join(me.EMPTY),cellToIndex:s,indexToCell:o}}}class UB{encode(t){const n=new Array,i=new Array,o=new Array,s=(t.max-t.min)/3,c=t.min+s,d=c+s;for(let h=0;h<t.values.length;h++){i.push(new Array);for(let y=0;y<t.values[h].length;y++)t.values[h][y]===0?n.push(" "):t.values[h][y]<=c?n.push("⠤"):t.values[h][y]<=d?n.push("⠒"):n.push("⠉"),i[h].push(o.length),o.push({row:h,col:y});n.push(me.NEW_LINE),i[h].push(o.length),o.push({row:h,col:t.values[h].length})}return{value:n.join(me.EMPTY),cellToIndex:i,indexToCell:o}}}class FC{encode(t){const n=new Array,i=new Array,o=new Array;for(let s=0;s<t.values.length;s++){i.push(new Array);const{low:c,medium:d,mediumHigh:h,high:y}=this.getThresholds(s,t);for(let v=0;v<t.values[s].length;v++){const S=t.values[s][v],T=v>0?t.values[s][v-1]:null,w=this.getBrailleChar(S,T,c,d,y,h);n.push(w),i[s].push(o.length),o.push({row:s,col:v})}n.push(me.NEW_LINE),i[s].push(o.length),o.push({row:s,col:t.values[s].length})}return{value:n.join(me.EMPTY),cellToIndex:i,indexToCell:o}}getBrailleChar(t,n,i,o,s,c){return c===void 0&&(c=s),t<=i&&n!==null&&n>i?n<=o?"⢄":n<=c?"⢆":"⢇":t<=i?"⣀":n!==null&&n<=i?t<=o?"⡠":t<=c?"⡰":"⡸":t<=o&&n!==null&&n>o?n<=c?"⠢":"⠣":t<=o?"⠤":n!==null&&n<=o?t<=c?"⠔":"⠜":t<=c&&n!==null&&n>c?"⠑":t<=c?"⠒":n!==null&&n<=c?"⠊":t<=s?"⠉":""}getBraille6Char(t,n,i,o,s){const c=S=>S<=i?"low":S<=o?"medium":(S<=s,"high"),d=c(t),h=n!==null?c(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":"⠉"},v=`${d},${h}`;return y[v]||""}addDot8(t){if(!t||t.length===0)return"⢀";const o=t.charCodeAt(0)-10240|128;return String.fromCharCode(10240+o)}}class $B extends FC{getThresholds(t,n){const i=Array.isArray(n.min)?n.min[t]:n.min,o=Array.isArray(n.max)?n.max[t]:n.max,s=(o-i)/3,c=i+s,d=c+s;return{low:c,medium:d,high:o}}encode(t){var s;const n=new Array,i=new Array,o=new Array;for(let c=0;c<t.values.length;c++){i.push(new Array);const{low:d,medium:h,high:y}=this.getThresholds(c,t);for(let v=0;v<t.values[c].length;v++){const S=t.values[c][v],T=v>0?t.values[c][v-1]:null;let w=this.getBraille6Char(S,T,d,h,y);((s=t.custom)==null?void 0:s[v])==="Bear"&&(w=this.addDot8(w)),n.push(w),i[c].push(o.length),o.push({row:c,col:v})}n.push(me.NEW_LINE),i[c].push(o.length),o.push({row:c,col:t.values[c].length})}return{value:n.join(me.EMPTY),cellToIndex:i,indexToCell:o}}}class Kw extends FC{getThresholds(t,n){const i=(n.max[t]-n.min[t])/4,o=n.min[t]+i,s=o+i,c=s+i,d=n.max[t];return{low:o,medium:s,mediumHigh:c,high:d}}}class HB{constructor(t,n,i){P(this,"context");P(this,"notification");P(this,"display");P(this,"enabled");P(this,"cacheId");P(this,"cache");P(this,"encoders");P(this,"onChangeEmitter");P(this,"onChange");this.context=t,this.notification=n,this.display=i,this.enabled=!1,this.cacheId=me.EMPTY,this.cache=null,this.encoders=new Map([[wn.BAR,new vv],[wn.BOX,new GC],[wn.CANDLESTICK,new $B],[wn.DODGED,new vv],[wn.HEATMAP,new UB],[wn.HISTOGRAM,new vv],[wn.LINE,new Kw],[wn.NORMALIZED,new vv],[wn.SMOOTH,new Kw],[wn.STACKED,new vv],[wn.VIOLIN_KDE,new Kw],[wn.VIOLIN_BOX,new GC]]),this.onChangeEmitter=new Yc,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 i=n.braille;if(this.cache===null||this.cacheId!==i.id){const o=this.encoders.get(n.traceType);this.cache=o.encode(i,qC),this.cacheId=i.id}this.onChangeEmitter.fire({value:this.cache.value.trim(),index:this.cache.cellToIndex[i.row][i.col]})}moveToIndex(t){if(!this.enabled||this.cache===null||t<0||t>=this.cache.indexToCell.length)return;const{row:n,col:i}=this.cache.indexToCell[t];this.context.moveToIndex(n,i)}toggle(t){if(t.empty){this.notification.notify("No info for braille");return}if(t.braille.empty){const i=`Braille is not supported for plot type: ${t.braille.traceType}`;this.notification.notify(i);return}this.enabled=!this.enabled,this.update(t),this.display.toggleFocus(dn.BRAILLE);const n=`Braille is ${this.enabled?"on":"off"}`;this.notification.notify(n)}}var YC=(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))(YC||{});class XC{constructor(){}static async post(t,n,i){const o={...this.DEFAULT_HEADERS,...i};return this.request(t,"POST",o,n)}static async request(t,n,i,o){try{const s=await fetch(t,{method:n,headers:i,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:YC.SERVER_ERROR,message:s instanceof Error?s.message:"Unknown error occurred"}}}}}P(XC,"DEFAULT_HEADERS",{"Content-Type":"application/json"});const qB=`You are a helpful assistant that answers questions about statistical visualizations. Your role is to:
|
|
347
347
|
1. Answer the user's specific question directly and clearly
|
|
348
348
|
2. Use simple, everyday language with minimal statistical terms
|
|
349
349
|
3. Provide relevant information from the data when needed
|
|
@@ -376,7 +376,7 @@ ${e}`}function Jw(e){return YB.replace("{maidrJson}",e.maidrJson).replace("{curr
|
|
|
376
376
|
|
|
377
377
|
${Jw(h)}`}]}]})}formatResponse(n){return n.content.length===0?{success:!1,error:"Invalid response format"}:{success:!0,data:n.content[0].text}}getHeaders(n){const i=super.getHeaders(n);return i["anthropic-version"]=this.version,i}}class nj extends e2{constructor(n,i,o,s){super(n,i,o);P(this,"version");this.version=s}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,i,o,s,c,d){const h={maidrJson:i,currentPositionText:s,message:c,expertiseLevel:d},y=Zw(n,h.expertiseLevel),v=Jw(h),S=`${y}
|
|
378
378
|
|
|
379
|
-
${v}`;return JSON.stringify({generationConfig:{maxOutputTokens:ZB},safetySettings:[],contents:[{role:"user",parts:[{text:S},{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 i=super.getHeaders(n);return delete i.Authorization,i}}class rj{constructor(t,n){P(this,"context");P(this,"autoplay");this.context=t,this.autoplay=n}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("UPWARD",t)}}class ij{constructor(t,n){P(this,"context");P(this,"autoplay");this.autoplay=n,this.context=t}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("DOWNWARD",t)}}class aj{constructor(t,n){P(this,"context");P(this,"autoplay");this.autoplay=n,this.context=t}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("FORWARD",t)}}class oj{constructor(t,n){P(this,"context");P(this,"autoplay");this.autoplay=n,this.context=t}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("BACKWARD",t)}}class lj{constructor(t){P(this,"autoplay");this.autoplay=t}execute(){this.autoplay.stop()}}class sj{constructor(t){P(this,"autoplay");this.autoplay=t}execute(){this.autoplay.speedUp()}}class uj{constructor(t){P(this,"autoplay");this.autoplay=t}execute(){this.autoplay.speedDown()}}class cj{constructor(t){P(this,"autoplay");this.autoplay=t}execute(){this.autoplay.resetSpeed()}}class Cd{constructor(t,n,i,o){P(this,"context");P(this,"textViewModel");P(this,"audioService");P(this,"textService");this.context=t,this.textViewModel=n,this.audioService=i,this.textService=o}restoreScope(){const t=this.context.state.type==="figure"?dn.SUBPLOT:dn.TRACE;this.context.toggleScope(t)}}class fj extends Cd{constructor(t,n,i,o){super(t,n,i,o)}execute(){const t=this.context.state;if(t.type==="trace"&&!t.empty){const n=this.textService.isTerse()?t.xAxis:`X label is ${t.xAxis}`;this.textViewModel.update(n)}else{const n=this.textService.isTerse()?"unavailable":"X label is not available";this.textViewModel.update(n),this.audioService.playWarningToneIfEnabled()}this.restoreScope()}}class dj extends Cd{constructor(t,n,i,o){super(t,n,i,o)}execute(){const t=this.context.state;if(t.type==="trace"&&!t.empty){const n=this.textService.isTerse()?t.yAxis:`Y label is ${t.yAxis}`;this.textViewModel.update(n)}else{const n=this.textService.isTerse()?"unavailable":"Y label is not available";this.textViewModel.update(n),this.audioService.playWarningToneIfEnabled()}this.restoreScope()}}class hj extends Cd{constructor(t,n,i,o){super(t,n,i,o)}execute(){const t=this.context.state;if(t.type==="trace"&&!t.empty&&t.fill!=="unavailable"){const n=this.textService.isTerse()?t.fill:`Fill is ${t.fill}`;this.textViewModel.update(n)}else{const n=this.textService.isTerse()?"unavailable":"Fill is not available";this.textViewModel.update(n),this.audioService.playWarningToneIfEnabled()}this.restoreScope()}}class pj extends Cd{constructor(t,n,i,o){super(t,n,i,o)}execute(){const t=this.context.state;if(t.empty){this.announceUnavailable(),this.restoreScope();return}if(t.type==="figure"){this.announce(t.title,"Figure title"),this.restoreScope();return}if(t.type==="trace"){this.announceTraceTitle(t.title),this.restoreScope();return}this.announceUnavailable(),this.restoreScope()}announce(t,n){const i=this.textService.isTerse()?t:`${n} is ${t}`;this.textViewModel.update(i)}announceTraceTitle(t){if(this.context.isMultiPanel&&t!=="unavailable"){this.announce(t,"Subplot title");return}const n=this.context.figureTitle;if(n!=="unavailable"){this.announce(n,"Title");return}this.announceUnavailable()}announceUnavailable(){const t=this.textService.isTerse()?"unavailable":"Title is not available";this.textViewModel.update(t),this.audioService.playWarningToneIfEnabled()}}class mj extends Cd{constructor(t,n,i,o){super(t,n,i,o)}execute(){const t=this.context.figureSubtitle;if(t!=="unavailable"){const n=this.textService.isTerse()?t:`Subtitle is ${t}`;this.textViewModel.update(n)}else{const n=this.textService.isTerse()?"unavailable":"Subtitle is not available";this.textViewModel.update(n),this.audioService.playWarningToneIfEnabled()}this.restoreScope()}}class gj extends Cd{constructor(t,n,i,o){super(t,n,i,o)}execute(){const t=this.context.figureCaption;if(t!=="unavailable"){const n=this.textService.isTerse()?t:`Caption is ${t}`;this.textViewModel.update(n)}else{const n=this.textService.isTerse()?"unavailable":"Caption is not available";this.textViewModel.update(n),this.audioService.playWarningToneIfEnabled()}this.restoreScope()}}class yj extends Cd{constructor(n,i,o,s,c,d){super(n,c,i,d);P(this,"audio");P(this,"brailleViewModel");P(this,"highlight");this.audio=i,this.highlight=o,this.brailleViewModel=s}execute(){const n=this.context.state;switch(n.type){case"figure":case"subplot":this.textViewModel.update(n);break;case"trace":this.textViewModel.update(n),this.audio.update(n),this.brailleViewModel.update(n),this.highlight.update(n);break}}}class vj extends Cd{constructor(t,n,i,o){super(t,i,o,n)}execute(){const t=this.context.state;if(t.empty||t.type!=="trace"){this.textViewModel.update("Not in a chart, unable to show position.");return}if(this.textViewModel.warnIfTextOff())return;const{panning:n}=t.audio,{x:i,y:o,rows:s,cols:c}=n,d=t.traceType;d===On.BOX?this.announceBoxplotPosition(t):d===On.CANDLESTICK?this.announceCandlestickPosition(t):d===On.STACKED||d===On.NORMALIZED||d===On.DODGED?this.announceSegmentedBarPosition(t,i,c):d===On.SMOOTH?s>1?this.announceMultiViolinPosition(o,s,i,c):this.announceSmoothPosition(i,c):d===On.LINE&&t.groupCount&&t.groupCount>1?this.announceMultiLinePosition(i,c,o,s):d===On.SCATTER?this.announceScatter(i,o,s,c):this.is2DPlot(s,c)?this.announce2DPosition(i,o,s,c):this.announce1DPosition(i,c)}is2DPlot(t,n){return t>1&&n>1}announce1DPosition(t,n){const i=t+1,o=n;if(this.textService.isTerse()||this.textService.isOff()){const s=n>1?Math.round(t/(n-1)*100):0;this.textViewModel.update(`${s}%`)}else this.textViewModel.update(`Position is ${i} of ${o}`)}announce2DPosition(t,n,i,o){const s=t+1,c=n+1;if(this.textService.isTerse()||this.textService.isOff()){const d=o>1?Math.round(t/(o-1)*100):0,h=i>1?Math.round(n/(i-1)*100):0;this.textViewModel.update(`${d}%, ${h}%`)}else this.textViewModel.update(`Position is column ${s} of ${o}, row ${c} of ${i}`)}announceBoxplotPosition(t){const n=t.text.section||"",i=t.braille,o=i.row,s=i.values.length,c=o+1;if(this.textService.isTerse()||this.textService.isOff()){const d=s>1?Math.round(o/(s-1)*100):0;this.textViewModel.update(`${d}%, ${n.toLowerCase()}`)}else this.textViewModel.update(`Position is ${c} of ${s} in ${n.toLowerCase()}`)}announceCandlestickPosition(t){const n=t.text.section||"",i=t.braille,o=i.col,s=i.values[0].length,c=o+1;if(this.textService.isTerse()||this.textService.isOff()){const d=s>1?Math.round(o/(s-1)*100):0;this.textViewModel.update(`${d}%, ${n.toLowerCase()}`)}else this.textViewModel.update(`Position is ${c} of ${s}, ${n.toLowerCase()}`)}announceSegmentedBarPosition(t,n,i){var d;const o=((d=t.text.fill)==null?void 0:d.value)??"",s=n+1,c=i;if(this.textService.isTerse()||this.textService.isOff()){const h=i>1?Math.round(n/(i-1)*100):0;this.textViewModel.update(`${h}%, ${o}`)}else this.textViewModel.update(`Position is ${s} of ${c}, Level is ${o}`)}announceSmoothPosition(t,n){this.announce1DPosition(t,n)}announceMultiViolinPosition(t,n,i,o){const s=t+1,c=i+1,d=`Violin ${s} of ${n}`;if(this.textService.isTerse()||this.textService.isOff()){const h=o>1?Math.round(i/(o-1)*100):0;this.textViewModel.update(`${d}, ${h}%`)}else this.textViewModel.update(`${d}, Position is ${c} of ${o}`)}announceMultiLinePosition(t,n,i,o){const s=i+1,c=t+1,d=`Plot ${s} of ${o}`;if(this.textService.isTerse()||this.textService.isOff()){const h=n>1?Math.round(t/(n-1)*100):0;this.textViewModel.update(`${d}, ${h}%`)}else this.textViewModel.update(`${d}, Position is ${c} of ${n}`)}announceScatter(t,n,i,o){const s=t+1,c=n+1;if(this.textService.isTerse()||this.textService.isOff()){const d=o>1?Math.round(t/(o-1)*100):0,h=i>1?Math.round(n/(i-1)*100):0;this.textViewModel.update(`${d}%, ${h}%`)}else this.textViewModel.update(`Column ${s} of ${o}, row ${c} of ${i}`)}}class bj{constructor(t,n){P(this,"context");P(this,"goToExtremaViewModel");this.context=t,this.goToExtremaViewModel=n}execute(){const t=this.context.state;if(t.type==="trace")if(this.goToExtremaViewModel.state.visible)this.goToExtremaViewModel.hide();else{const n=this.context.active;n&&this.goToExtremaViewModel.isExtremaNavigable(n)&&this.goToExtremaViewModel.toggle(t)}}}class xj{constructor(t){P(this,"goToExtremaViewModel");this.goToExtremaViewModel=t}execute(){this.goToExtremaViewModel.moveUp()}}class Sj{constructor(t){P(this,"goToExtremaViewModel");this.goToExtremaViewModel=t}execute(){this.goToExtremaViewModel.moveDown()}}class Ej{constructor(t){P(this,"goToExtremaViewModel");this.goToExtremaViewModel=t}execute(){this.goToExtremaViewModel.selectCurrent()}}class wj{constructor(t){P(this,"goToExtremaViewModel");this.goToExtremaViewModel=t}execute(){this.goToExtremaViewModel.hide()}}class Tj{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveOnce("UPWARD")}}class Aj{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveOnce("DOWNWARD")}}class Cj{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveOnce("BACKWARD")}}class Oj{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveOnce("FORWARD")}}class Mj{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveToExtreme("UPWARD")}}class Rj{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveToExtreme("DOWNWARD")}}class _j{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveToExtreme("BACKWARD")}}class Dj{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveToExtreme("FORWARD")}}class Nj{constructor(t){P(this,"context");this.context=t}execute(){this.context.enterSubplot()}}class kj{constructor(t){P(this,"context");this.context=t}execute(){this.context.exitSubplot()}}class zj{constructor(t){P(this,"context");this.context=t}execute(){this.context.stepTrace("UPWARD")}}class Ij{constructor(t){P(this,"context");this.context=t}execute(){this.context.stepTrace("DOWNWARD")}}class Lj{constructor(t,n){P(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=n}execute(){this.rotorNavigationViewModel.moveToNextNavUnit()}}class Vj{constructor(t,n){P(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=n}execute(){this.rotorNavigationViewModel.moveToPrevNavUnit()}}class Bj{constructor(t){P(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=t}execute(){this.rotorNavigationViewModel.moveUp()}}class jj{constructor(t){P(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=t}execute(){this.rotorNavigationViewModel.moveLeft()}}class Pj{constructor(t){P(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=t}execute(){this.rotorNavigationViewModel.moveDown()}}class Uj{constructor(t){P(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=t}execute(){this.rotorNavigationViewModel.moveRight()}}class $j{constructor(t,n){P(this,"context");P(this,"brailleViewModel");this.context=t,this.brailleViewModel=n}execute(){const t=this.context.state;t.type==="trace"&&this.brailleViewModel.toggle(t)}}class Hj{constructor(t){P(this,"textViewModel");this.textViewModel=t}execute(){this.textViewModel.toggle()}}class qj{constructor(t){P(this,"audio");this.audio=t}execute(){this.audio.toggle()}}class Gj{constructor(t,n){P(this,"context");P(this,"reviewViewModel");this.context=t,this.reviewViewModel=n}execute(){const t=this.context.state;t.type==="trace"&&this.reviewViewModel.toggle(t)}}class Fj{constructor(t){P(this,"helpViewModel");this.helpViewModel=t}execute(){this.helpViewModel.toggle()}}class Yj{constructor(t){P(this,"chatViewModel");this.chatViewModel=t}execute(){this.chatViewModel.toggle()}}class Xj{constructor(t){P(this,"settingsViewModel");this.settingsViewModel=t}execute(){this.settingsViewModel.toggle()}}class Wj{constructor(t){P(this,"commandPaletteViewModel");this.commandPaletteViewModel=t}execute(){this.commandPaletteViewModel.toggle()}}class Qj{constructor(t){P(this,"commandPaletteViewModel");this.commandPaletteViewModel=t}execute(){this.commandPaletteViewModel.hide()}}class Kj{constructor(t){P(this,"commandPaletteViewModel");this.commandPaletteViewModel=t}execute(){this.commandPaletteViewModel.moveUp()}}class Zj{constructor(t){P(this,"commandPaletteViewModel");this.commandPaletteViewModel=t}execute(){this.commandPaletteViewModel.moveDown()}}class Jj{constructor(t){P(this,"commandPaletteViewModel");this.commandPaletteViewModel=t}execute(){this.commandPaletteViewModel.selectCurrent()}}class U5{constructor(t,n,i){P(this,"context");P(this,"scope");P(this,"textViewModel");this.context=t,this.scope=n,this.textViewModel=i}execute(){var t;(t=this.textViewModel)==null||t.warnIfTextOff(),this.context.toggleScope(this.scope)}}class eP{constructor(t){P(this,"highContrastService");this.highContrastService=t}execute(){this.highContrastService.toggleHighContrast()}}class WC{constructor(t){P(this,"context");P(this,"audioService");P(this,"autoplayService");P(this,"highContrastService");P(this,"highlightService");P(this,"rotorService");P(this,"textService");P(this,"brailleViewModel");P(this,"chatViewModel");P(this,"commandPaletteViewModel");P(this,"goToExtremaViewModel");P(this,"helpViewModel");P(this,"reviewViewModel");P(this,"settingsViewModel");P(this,"textViewModel");P(this,"rotorNavigationViewModel");this.context=t.context,this.audioService=t.audioService,this.autoplayService=t.autoplayService,this.highContrastService=t.highContrastService,this.highlightService=t.highlightService,this.rotorService=t.rotorNavigationService,this.textService=t.textService,this.brailleViewModel=t.brailleViewModel,this.chatViewModel=t.chatViewModel,this.commandPaletteViewModel=t.commandPaletteViewModel,this.goToExtremaViewModel=t.goToExtremaViewModel,this.helpViewModel=t.helpViewModel,this.reviewViewModel=t.reviewViewModel,this.settingsViewModel=t.settingsViewModel,this.textViewModel=t.textViewModel,this.rotorNavigationViewModel=t.rotorNavigationViewModel}create(t){switch(t){case"MOVE_UP":return this.context.isRotorEnabled()?new Bj(this.rotorNavigationViewModel):new Tj(this.context);case"MOVE_DOWN":return this.context.isRotorEnabled()?new Pj(this.rotorNavigationViewModel):new Aj(this.context);case"MOVE_LEFT":return this.context.isRotorEnabled()?new jj(this.rotorNavigationViewModel):new Cj(this.context);case"MOVE_RIGHT":return this.context.isRotorEnabled()?new Uj(this.rotorNavigationViewModel):new Oj(this.context);case"MOVE_TO_TOP_EXTREME":return new Mj(this.context);case"MOVE_TO_BOTTOM_EXTREME":return new Rj(this.context);case"MOVE_TO_LEFT_EXTREME":return new _j(this.context);case"MOVE_TO_RIGHT_EXTREME":return new Dj(this.context);case"MOVE_TO_TRACE_CONTEXT":return new Nj(this.context);case"MOVE_TO_SUBPLOT_CONTEXT":return new kj(this.context);case"MOVE_TO_NEXT_TRACE":return new zj(this.context);case"MOVE_TO_PREV_TRACE":return new Ij(this.context);case"TOGGLE_AUDIO":return new qj(this.audioService);case"TOGGLE_BRAILLE":return new $j(this.context,this.brailleViewModel);case"TOGGLE_TEXT":return new Hj(this.textViewModel);case"TOGGLE_REVIEW":return new Gj(this.context,this.reviewViewModel);case"TOGGLE_HIGH_CONTRAST":return new eP(this.highContrastService);case"TOGGLE_HELP":return new Fj(this.helpViewModel);case"TOGGLE_CHAT":return new Yj(this.chatViewModel);case"TOGGLE_COMMAND_PALETTE":return new Wj(this.commandPaletteViewModel);case"TOGGLE_SETTINGS":return new Xj(this.settingsViewModel);case"GO_TO_EXTREMA_MOVE_UP":return new xj(this.goToExtremaViewModel);case"GO_TO_EXTREMA_MOVE_DOWN":return new Sj(this.goToExtremaViewModel);case"GO_TO_EXTREMA_SELECT":return new Ej(this.goToExtremaViewModel);case"GO_TO_EXTREMA_CLOSE":return new wj(this.goToExtremaViewModel);case"GO_TO_EXTREMA_TOGGLE":return new bj(this.context,this.goToExtremaViewModel);case"COMMAND_PALETTE_MOVE_UP":return new Kj(this.commandPaletteViewModel);case"COMMAND_PALETTE_MOVE_DOWN":return new Zj(this.commandPaletteViewModel);case"COMMAND_PALETTE_SELECT":return new Jj(this.commandPaletteViewModel);case"COMMAND_PALETTE_CLOSE":return new Qj(this.commandPaletteViewModel);case"ANNOUNCE_X":return new fj(this.context,this.textViewModel,this.audioService,this.textService);case"ANNOUNCE_Y":return new dj(this.context,this.textViewModel,this.audioService,this.textService);case"ANNOUNCE_FILL":return new hj(this.context,this.textViewModel,this.audioService,this.textService);case"ANNOUNCE_POINT":return new yj(this.context,this.audioService,this.highlightService,this.brailleViewModel,this.textViewModel,this.textService);case"ANNOUNCE_TITLE":return new pj(this.context,this.textViewModel,this.audioService,this.textService);case"ANNOUNCE_SUBTITLE":return new mj(this.context,this.textViewModel,this.audioService,this.textService);case"ANNOUNCE_CAPTION":return new gj(this.context,this.textViewModel,this.audioService,this.textService);case"ANNOUNCE_POSITION":return new vj(this.context,this.textService,this.textViewModel,this.audioService);case"ACTIVATE_FIGURE_LABEL_SCOPE":return new U5(this.context,dn.FIGURE_LABEL,this.textViewModel);case"DEACTIVATE_FIGURE_LABEL_SCOPE":return new U5(this.context,dn.FIGURE_LABEL);case"ACTIVATE_TRACE_LABEL_SCOPE":return new U5(this.context,dn.TRACE_LABEL,this.textViewModel);case"DEACTIVATE_TRACE_LABEL_SCOPE":return new U5(this.context,dn.TRACE);case"AUTOPLAY_UPWARD":return new rj(this.context,this.autoplayService);case"AUTOPLAY_DOWNWARD":return new ij(this.context,this.autoplayService);case"AUTOPLAY_FORWARD":return new aj(this.context,this.autoplayService);case"AUTOPLAY_BACKWARD":return new oj(this.context,this.autoplayService);case"STOP_AUTOPLAY":return new lj(this.autoplayService);case"SPEED_UP_AUTOPLAY":return new sj(this.autoplayService);case"SPEED_DOWN_AUTOPLAY":return new uj(this.autoplayService);case"RESET_AUTOPLAY_SPEED":return new cj(this.autoplayService);case"ROTOR_NEXT_NAV":return new Lj(this.context,this.rotorNavigationViewModel);case"ROTOR_PREV_NAV":return new Vj(this.context,this.rotorNavigationViewModel);default:throw new Error(`Invalid command name: ${t}`)}}}const jg=class jg{constructor(){}static get ctrl(){return jg.IS_MAC?"command":"ctrl"}static get alt(){return jg.IS_MAC?"option":"alt"}static get enter(){return jg.IS_MAC?"return":"enter"}};P(jg,"IS_MAC",(()=>{var n;return(((n=navigator.userAgentData)==null?void 0:n.platform)??navigator.platform).toLowerCase().includes("mac")})());let qt=jg;const tP={ACTIVATE_TRACE_LABEL_SCOPE:"l",AUTOPLAY_UPWARD:`${qt.ctrl}+shift+up`,AUTOPLAY_DOWNWARD:`${qt.ctrl}+shift+down`,AUTOPLAY_FORWARD:`${qt.ctrl}+shift+right`,AUTOPLAY_BACKWARD:`${qt.ctrl}+shift+left`,STOP_AUTOPLAY:`${qt.ctrl}, up, down, left, right`,SPEED_UP_AUTOPLAY:".",SPEED_DOWN_AUTOPLAY:",",RESET_AUTOPLAY_SPEED:"/",MOVE_UP:"up",MOVE_DOWN:"down",MOVE_RIGHT:"right",MOVE_LEFT:"left",MOVE_TO_TOP_EXTREME:`${qt.ctrl}+up`,MOVE_TO_BOTTOM_EXTREME:`${qt.ctrl}+down`,MOVE_TO_LEFT_EXTREME:`${qt.ctrl}+left`,MOVE_TO_RIGHT_EXTREME:`${qt.ctrl}+right`,MOVE_TO_NEXT_TRACE:"pageup",MOVE_TO_PREV_TRACE:"pagedown",TOGGLE_BRAILLE:"b",TOGGLE_TEXT:"t",TOGGLE_AUDIO:"s",TOGGLE_REVIEW:"r",TOGGLE_HIGH_CONTRAST:"c",TOGGLE_HELP:`${qt.ctrl}+/`,TOGGLE_CHAT:"shift+/",TOGGLE_SETTINGS:`${qt.ctrl}+,`,ANNOUNCE_POINT:"space",ANNOUNCE_POSITION:"p",ROTOR_NEXT_NAV:`${qt.alt}+shift+up`,ROTOR_PREV_NAV:`${qt.alt}+shift+down`},nP={TOGGLE_CHAT:"esc"},rP={DEACTIVATE_FIGURE_LABEL_SCOPE:"escape",ANNOUNCE_TITLE:"t",ANNOUNCE_SUBTITLE:"s",ANNOUNCE_CAPTION:"c",TOGGLE_HELP:`${qt.ctrl}+/`},iP={TOGGLE_HELP:"esc"},aP={ACTIVATE_FIGURE_LABEL_SCOPE:"l",ANNOUNCE_TITLE:"t",ANNOUNCE_POINT:"space",ANNOUNCE_POSITION:"p",MOVE_UP:"up",MOVE_DOWN:"down",MOVE_RIGHT:"right",MOVE_LEFT:"left",MOVE_TO_TOP_EXTREME:`${qt.ctrl}+up`,MOVE_TO_BOTTOM_EXTREME:`${qt.ctrl}+down`,MOVE_TO_LEFT_EXTREME:`${qt.ctrl}+left`,MOVE_TO_RIGHT_EXTREME:`${qt.ctrl}+right`,MOVE_TO_TRACE_CONTEXT:`${qt.enter}`,TOGGLE_HIGH_CONTRAST:"c",TOGGLE_HELP:`${qt.ctrl}+/`,TOGGLE_CHAT:"shift+/",TOGGLE_SETTINGS:`${qt.ctrl}+,`},oP={DEACTIVATE_TRACE_LABEL_SCOPE:"escape",ANNOUNCE_X:"x",ANNOUNCE_Y:"y",ANNOUNCE_FILL:"f",ANNOUNCE_TITLE:"t",ANNOUNCE_SUBTITLE:"s",ANNOUNCE_CAPTION:"c",TOGGLE_HELP:`${qt.ctrl}+/`},lP={TOGGLE_BRAILLE:"b",TOGGLE_REVIEW:"r",ALLOW_DEFAULT:`up, down, left, right,
|
|
379
|
+
${v}`;return JSON.stringify({generationConfig:{maxOutputTokens:ZB},safetySettings:[],contents:[{role:"user",parts:[{text:S},{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 i=super.getHeaders(n);return delete i.Authorization,i}}class rj{constructor(t,n){P(this,"context");P(this,"autoplay");this.context=t,this.autoplay=n}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("UPWARD",t)}}class ij{constructor(t,n){P(this,"context");P(this,"autoplay");this.autoplay=n,this.context=t}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("DOWNWARD",t)}}class aj{constructor(t,n){P(this,"context");P(this,"autoplay");this.autoplay=n,this.context=t}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("FORWARD",t)}}class oj{constructor(t,n){P(this,"context");P(this,"autoplay");this.autoplay=n,this.context=t}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("BACKWARD",t)}}class lj{constructor(t){P(this,"autoplay");this.autoplay=t}execute(){this.autoplay.stop()}}class sj{constructor(t){P(this,"autoplay");this.autoplay=t}execute(){this.autoplay.speedUp()}}class uj{constructor(t){P(this,"autoplay");this.autoplay=t}execute(){this.autoplay.speedDown()}}class cj{constructor(t){P(this,"autoplay");this.autoplay=t}execute(){this.autoplay.resetSpeed()}}class Cd{constructor(t,n,i,o){P(this,"context");P(this,"textViewModel");P(this,"audioService");P(this,"textService");this.context=t,this.textViewModel=n,this.audioService=i,this.textService=o}restoreScope(){const t=this.context.state.type==="figure"?dn.SUBPLOT:dn.TRACE;this.context.toggleScope(t)}}class fj extends Cd{constructor(t,n,i,o){super(t,n,i,o)}execute(){const t=this.context.state;if(t.type==="trace"&&!t.empty){const n=this.textService.isTerse()?t.xAxis:`X label is ${t.xAxis}`;this.textViewModel.update(n)}else{const n=this.textService.isTerse()?"unavailable":"X label is not available";this.textViewModel.update(n),this.audioService.playWarningToneIfEnabled()}this.restoreScope()}}class dj extends Cd{constructor(t,n,i,o){super(t,n,i,o)}execute(){const t=this.context.state;if(t.type==="trace"&&!t.empty){const n=this.textService.isTerse()?t.yAxis:`Y label is ${t.yAxis}`;this.textViewModel.update(n)}else{const n=this.textService.isTerse()?"unavailable":"Y label is not available";this.textViewModel.update(n),this.audioService.playWarningToneIfEnabled()}this.restoreScope()}}class hj extends Cd{constructor(t,n,i,o){super(t,n,i,o)}execute(){const t=this.context.state;if(t.type==="trace"&&!t.empty&&t.fill!=="unavailable"){const n=this.textService.isTerse()?t.fill:`Fill is ${t.fill}`;this.textViewModel.update(n)}else{const n=this.textService.isTerse()?"unavailable":"Fill is not available";this.textViewModel.update(n),this.audioService.playWarningToneIfEnabled()}this.restoreScope()}}class pj extends Cd{constructor(t,n,i,o){super(t,n,i,o)}execute(){const t=this.context.state;if(t.empty){this.announceUnavailable(),this.restoreScope();return}if(t.type==="figure"){this.announce(t.title,"Figure title"),this.restoreScope();return}if(t.type==="trace"){this.announceTraceTitle(t.title),this.restoreScope();return}this.announceUnavailable(),this.restoreScope()}announce(t,n){const i=this.textService.isTerse()?t:`${n} is ${t}`;this.textViewModel.update(i)}announceTraceTitle(t){if(this.context.isMultiPanel&&t!=="unavailable"){this.announce(t,"Subplot title");return}const n=this.context.figureTitle;if(n!=="unavailable"){this.announce(n,"Title");return}this.announceUnavailable()}announceUnavailable(){const t=this.textService.isTerse()?"unavailable":"Title is not available";this.textViewModel.update(t),this.audioService.playWarningToneIfEnabled()}}class mj extends Cd{constructor(t,n,i,o){super(t,n,i,o)}execute(){const t=this.context.figureSubtitle;if(t!=="unavailable"){const n=this.textService.isTerse()?t:`Subtitle is ${t}`;this.textViewModel.update(n)}else{const n=this.textService.isTerse()?"unavailable":"Subtitle is not available";this.textViewModel.update(n),this.audioService.playWarningToneIfEnabled()}this.restoreScope()}}class gj extends Cd{constructor(t,n,i,o){super(t,n,i,o)}execute(){const t=this.context.figureCaption;if(t!=="unavailable"){const n=this.textService.isTerse()?t:`Caption is ${t}`;this.textViewModel.update(n)}else{const n=this.textService.isTerse()?"unavailable":"Caption is not available";this.textViewModel.update(n),this.audioService.playWarningToneIfEnabled()}this.restoreScope()}}class yj extends Cd{constructor(n,i,o,s,c,d){super(n,c,i,d);P(this,"audio");P(this,"brailleViewModel");P(this,"highlight");this.audio=i,this.highlight=o,this.brailleViewModel=s}execute(){const n=this.context.state;switch(n.type){case"figure":case"subplot":this.textViewModel.update(n);break;case"trace":this.textViewModel.update(n),this.audio.update(n),this.brailleViewModel.update(n),this.highlight.update(n);break}}}class vj extends Cd{constructor(t,n,i,o){super(t,i,o,n)}execute(){const t=this.context.state;if(t.empty||t.type!=="trace"){this.textViewModel.update("Not in a chart, unable to show position.");return}if(this.textViewModel.warnIfTextOff())return;const{panning:n}=t.audio,{x:i,y:o,rows:s,cols:c}=n,d=t.traceType;d===wn.BOX?this.announceBoxplotPosition(t):d===wn.CANDLESTICK?this.announceCandlestickPosition(t):d===wn.STACKED||d===wn.NORMALIZED||d===wn.DODGED?this.announceSegmentedBarPosition(t,i,c):d===wn.SMOOTH?s>1?this.announceMultiViolinPosition(o,s,i,c):this.announceSmoothPosition(i,c):d===wn.LINE&&t.groupCount&&t.groupCount>1?this.announceMultiLinePosition(i,c,o,s):d===wn.SCATTER?this.announceScatter(i,o,s,c):this.is2DPlot(s,c)?this.announce2DPosition(i,o,s,c):this.announce1DPosition(i,c)}is2DPlot(t,n){return t>1&&n>1}announce1DPosition(t,n){const i=t+1,o=n;if(this.textService.isTerse()||this.textService.isOff()){const s=n>1?Math.round(t/(n-1)*100):0;this.textViewModel.update(`${s}%`)}else this.textViewModel.update(`Position is ${i} of ${o}`)}announce2DPosition(t,n,i,o){const s=t+1,c=n+1;if(this.textService.isTerse()||this.textService.isOff()){const d=o>1?Math.round(t/(o-1)*100):0,h=i>1?Math.round(n/(i-1)*100):0;this.textViewModel.update(`${d}%, ${h}%`)}else this.textViewModel.update(`Position is column ${s} of ${o}, row ${c} of ${i}`)}announceBoxplotPosition(t){const n=t.text.section||"",i=t.braille,o=i.row,s=i.values.length,c=o+1;if(this.textService.isTerse()||this.textService.isOff()){const d=s>1?Math.round(o/(s-1)*100):0;this.textViewModel.update(`${d}%, ${n.toLowerCase()}`)}else this.textViewModel.update(`Position is ${c} of ${s} in ${n.toLowerCase()}`)}announceCandlestickPosition(t){const n=t.text.section||"",i=t.braille,o=i.col,s=i.values[0].length,c=o+1;if(this.textService.isTerse()||this.textService.isOff()){const d=s>1?Math.round(o/(s-1)*100):0;this.textViewModel.update(`${d}%, ${n.toLowerCase()}`)}else this.textViewModel.update(`Position is ${c} of ${s}, ${n.toLowerCase()}`)}announceSegmentedBarPosition(t,n,i){var d;const o=((d=t.text.fill)==null?void 0:d.value)??"",s=n+1,c=i;if(this.textService.isTerse()||this.textService.isOff()){const h=i>1?Math.round(n/(i-1)*100):0;this.textViewModel.update(`${h}%, ${o}`)}else this.textViewModel.update(`Position is ${s} of ${c}, Level is ${o}`)}announceSmoothPosition(t,n){this.announce1DPosition(t,n)}announceMultiViolinPosition(t,n,i,o){const s=t+1,c=i+1,d=`Violin ${s} of ${n}`;if(this.textService.isTerse()||this.textService.isOff()){const h=o>1?Math.round(i/(o-1)*100):0;this.textViewModel.update(`${d}, ${h}%`)}else this.textViewModel.update(`${d}, Position is ${c} of ${o}`)}announceMultiLinePosition(t,n,i,o){const s=i+1,c=t+1,d=`Plot ${s} of ${o}`;if(this.textService.isTerse()||this.textService.isOff()){const h=n>1?Math.round(t/(n-1)*100):0;this.textViewModel.update(`${d}, ${h}%`)}else this.textViewModel.update(`${d}, Position is ${c} of ${n}`)}announceScatter(t,n,i,o){const s=t+1,c=n+1;if(this.textService.isTerse()||this.textService.isOff()){const d=o>1?Math.round(t/(o-1)*100):0,h=i>1?Math.round(n/(i-1)*100):0;this.textViewModel.update(`${d}%, ${h}%`)}else this.textViewModel.update(`Column ${s} of ${o}, row ${c} of ${i}`)}}class bj{constructor(t,n){P(this,"context");P(this,"goToExtremaViewModel");this.context=t,this.goToExtremaViewModel=n}execute(){const t=this.context.state;if(t.type==="trace")if(this.goToExtremaViewModel.state.visible)this.goToExtremaViewModel.hide();else{const n=this.context.active;n&&this.goToExtremaViewModel.isExtremaNavigable(n)&&this.goToExtremaViewModel.toggle(t)}}}class xj{constructor(t){P(this,"goToExtremaViewModel");this.goToExtremaViewModel=t}execute(){this.goToExtremaViewModel.moveUp()}}class Sj{constructor(t){P(this,"goToExtremaViewModel");this.goToExtremaViewModel=t}execute(){this.goToExtremaViewModel.moveDown()}}class Ej{constructor(t){P(this,"goToExtremaViewModel");this.goToExtremaViewModel=t}execute(){this.goToExtremaViewModel.selectCurrent()}}class wj{constructor(t){P(this,"goToExtremaViewModel");this.goToExtremaViewModel=t}execute(){this.goToExtremaViewModel.hide()}}class Tj{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveOnce("UPWARD")}}class Aj{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveOnce("DOWNWARD")}}class Cj{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveOnce("BACKWARD")}}class Oj{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveOnce("FORWARD")}}class Mj{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveToExtreme("UPWARD")}}class Rj{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveToExtreme("DOWNWARD")}}class _j{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveToExtreme("BACKWARD")}}class Dj{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveToExtreme("FORWARD")}}class Nj{constructor(t){P(this,"context");this.context=t}execute(){this.context.enterSubplot()}}class kj{constructor(t){P(this,"context");this.context=t}execute(){this.context.exitSubplot()}}class zj{constructor(t){P(this,"context");this.context=t}execute(){this.context.stepTrace("UPWARD")}}class Ij{constructor(t){P(this,"context");this.context=t}execute(){this.context.stepTrace("DOWNWARD")}}class Lj{constructor(t,n){P(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=n}execute(){this.rotorNavigationViewModel.moveToNextNavUnit()}}class Vj{constructor(t,n){P(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=n}execute(){this.rotorNavigationViewModel.moveToPrevNavUnit()}}class Bj{constructor(t){P(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=t}execute(){this.rotorNavigationViewModel.moveUp()}}class jj{constructor(t){P(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=t}execute(){this.rotorNavigationViewModel.moveLeft()}}class Pj{constructor(t){P(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=t}execute(){this.rotorNavigationViewModel.moveDown()}}class Uj{constructor(t){P(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=t}execute(){this.rotorNavigationViewModel.moveRight()}}class $j{constructor(t,n){P(this,"context");P(this,"brailleViewModel");this.context=t,this.brailleViewModel=n}execute(){const t=this.context.state;t.type==="trace"&&this.brailleViewModel.toggle(t)}}class Hj{constructor(t){P(this,"textViewModel");this.textViewModel=t}execute(){this.textViewModel.toggle()}}class qj{constructor(t){P(this,"audio");this.audio=t}execute(){this.audio.toggle()}}class Gj{constructor(t,n){P(this,"context");P(this,"reviewViewModel");this.context=t,this.reviewViewModel=n}execute(){const t=this.context.state;t.type==="trace"&&this.reviewViewModel.toggle(t)}}class Fj{constructor(t){P(this,"helpViewModel");this.helpViewModel=t}execute(){this.helpViewModel.toggle()}}class Yj{constructor(t){P(this,"chatViewModel");this.chatViewModel=t}execute(){this.chatViewModel.toggle()}}class Xj{constructor(t){P(this,"settingsViewModel");this.settingsViewModel=t}execute(){this.settingsViewModel.toggle()}}class Wj{constructor(t){P(this,"commandPaletteViewModel");this.commandPaletteViewModel=t}execute(){this.commandPaletteViewModel.toggle()}}class Qj{constructor(t){P(this,"commandPaletteViewModel");this.commandPaletteViewModel=t}execute(){this.commandPaletteViewModel.hide()}}class Kj{constructor(t){P(this,"commandPaletteViewModel");this.commandPaletteViewModel=t}execute(){this.commandPaletteViewModel.moveUp()}}class Zj{constructor(t){P(this,"commandPaletteViewModel");this.commandPaletteViewModel=t}execute(){this.commandPaletteViewModel.moveDown()}}class Jj{constructor(t){P(this,"commandPaletteViewModel");this.commandPaletteViewModel=t}execute(){this.commandPaletteViewModel.selectCurrent()}}class U5{constructor(t,n,i){P(this,"context");P(this,"scope");P(this,"textViewModel");this.context=t,this.scope=n,this.textViewModel=i}execute(){var t;(t=this.textViewModel)==null||t.warnIfTextOff(),this.context.toggleScope(this.scope)}}class eP{constructor(t){P(this,"highContrastService");this.highContrastService=t}execute(){this.highContrastService.toggleHighContrast()}}class WC{constructor(t){P(this,"context");P(this,"audioService");P(this,"autoplayService");P(this,"highContrastService");P(this,"highlightService");P(this,"rotorService");P(this,"textService");P(this,"brailleViewModel");P(this,"chatViewModel");P(this,"commandPaletteViewModel");P(this,"goToExtremaViewModel");P(this,"helpViewModel");P(this,"reviewViewModel");P(this,"settingsViewModel");P(this,"textViewModel");P(this,"rotorNavigationViewModel");this.context=t.context,this.audioService=t.audioService,this.autoplayService=t.autoplayService,this.highContrastService=t.highContrastService,this.highlightService=t.highlightService,this.rotorService=t.rotorNavigationService,this.textService=t.textService,this.brailleViewModel=t.brailleViewModel,this.chatViewModel=t.chatViewModel,this.commandPaletteViewModel=t.commandPaletteViewModel,this.goToExtremaViewModel=t.goToExtremaViewModel,this.helpViewModel=t.helpViewModel,this.reviewViewModel=t.reviewViewModel,this.settingsViewModel=t.settingsViewModel,this.textViewModel=t.textViewModel,this.rotorNavigationViewModel=t.rotorNavigationViewModel}create(t){switch(t){case"MOVE_UP":return this.context.isRotorEnabled()?new Bj(this.rotorNavigationViewModel):new Tj(this.context);case"MOVE_DOWN":return this.context.isRotorEnabled()?new Pj(this.rotorNavigationViewModel):new Aj(this.context);case"MOVE_LEFT":return this.context.isRotorEnabled()?new jj(this.rotorNavigationViewModel):new Cj(this.context);case"MOVE_RIGHT":return this.context.isRotorEnabled()?new Uj(this.rotorNavigationViewModel):new Oj(this.context);case"MOVE_TO_TOP_EXTREME":return new Mj(this.context);case"MOVE_TO_BOTTOM_EXTREME":return new Rj(this.context);case"MOVE_TO_LEFT_EXTREME":return new _j(this.context);case"MOVE_TO_RIGHT_EXTREME":return new Dj(this.context);case"MOVE_TO_TRACE_CONTEXT":return new Nj(this.context);case"MOVE_TO_SUBPLOT_CONTEXT":return new kj(this.context);case"MOVE_TO_NEXT_TRACE":return new zj(this.context);case"MOVE_TO_PREV_TRACE":return new Ij(this.context);case"TOGGLE_AUDIO":return new qj(this.audioService);case"TOGGLE_BRAILLE":return new $j(this.context,this.brailleViewModel);case"TOGGLE_TEXT":return new Hj(this.textViewModel);case"TOGGLE_REVIEW":return new Gj(this.context,this.reviewViewModel);case"TOGGLE_HIGH_CONTRAST":return new eP(this.highContrastService);case"TOGGLE_HELP":return new Fj(this.helpViewModel);case"TOGGLE_CHAT":return new Yj(this.chatViewModel);case"TOGGLE_COMMAND_PALETTE":return new Wj(this.commandPaletteViewModel);case"TOGGLE_SETTINGS":return new Xj(this.settingsViewModel);case"GO_TO_EXTREMA_MOVE_UP":return new xj(this.goToExtremaViewModel);case"GO_TO_EXTREMA_MOVE_DOWN":return new Sj(this.goToExtremaViewModel);case"GO_TO_EXTREMA_SELECT":return new Ej(this.goToExtremaViewModel);case"GO_TO_EXTREMA_CLOSE":return new wj(this.goToExtremaViewModel);case"GO_TO_EXTREMA_TOGGLE":return new bj(this.context,this.goToExtremaViewModel);case"COMMAND_PALETTE_MOVE_UP":return new Kj(this.commandPaletteViewModel);case"COMMAND_PALETTE_MOVE_DOWN":return new Zj(this.commandPaletteViewModel);case"COMMAND_PALETTE_SELECT":return new Jj(this.commandPaletteViewModel);case"COMMAND_PALETTE_CLOSE":return new Qj(this.commandPaletteViewModel);case"ANNOUNCE_X":return new fj(this.context,this.textViewModel,this.audioService,this.textService);case"ANNOUNCE_Y":return new dj(this.context,this.textViewModel,this.audioService,this.textService);case"ANNOUNCE_FILL":return new hj(this.context,this.textViewModel,this.audioService,this.textService);case"ANNOUNCE_POINT":return new yj(this.context,this.audioService,this.highlightService,this.brailleViewModel,this.textViewModel,this.textService);case"ANNOUNCE_TITLE":return new pj(this.context,this.textViewModel,this.audioService,this.textService);case"ANNOUNCE_SUBTITLE":return new mj(this.context,this.textViewModel,this.audioService,this.textService);case"ANNOUNCE_CAPTION":return new gj(this.context,this.textViewModel,this.audioService,this.textService);case"ANNOUNCE_POSITION":return new vj(this.context,this.textService,this.textViewModel,this.audioService);case"ACTIVATE_FIGURE_LABEL_SCOPE":return new U5(this.context,dn.FIGURE_LABEL,this.textViewModel);case"DEACTIVATE_FIGURE_LABEL_SCOPE":return new U5(this.context,dn.FIGURE_LABEL);case"ACTIVATE_TRACE_LABEL_SCOPE":return new U5(this.context,dn.TRACE_LABEL,this.textViewModel);case"DEACTIVATE_TRACE_LABEL_SCOPE":return new U5(this.context,dn.TRACE);case"AUTOPLAY_UPWARD":return new rj(this.context,this.autoplayService);case"AUTOPLAY_DOWNWARD":return new ij(this.context,this.autoplayService);case"AUTOPLAY_FORWARD":return new aj(this.context,this.autoplayService);case"AUTOPLAY_BACKWARD":return new oj(this.context,this.autoplayService);case"STOP_AUTOPLAY":return new lj(this.autoplayService);case"SPEED_UP_AUTOPLAY":return new sj(this.autoplayService);case"SPEED_DOWN_AUTOPLAY":return new uj(this.autoplayService);case"RESET_AUTOPLAY_SPEED":return new cj(this.autoplayService);case"ROTOR_NEXT_NAV":return new Lj(this.context,this.rotorNavigationViewModel);case"ROTOR_PREV_NAV":return new Vj(this.context,this.rotorNavigationViewModel);default:throw new Error(`Invalid command name: ${t}`)}}}const jg=class jg{constructor(){}static get ctrl(){return jg.IS_MAC?"command":"ctrl"}static get alt(){return jg.IS_MAC?"option":"alt"}static get enter(){return jg.IS_MAC?"return":"enter"}};P(jg,"IS_MAC",(()=>{var n;return(((n=navigator.userAgentData)==null?void 0:n.platform)??navigator.platform).toLowerCase().includes("mac")})());let qt=jg;const tP={ACTIVATE_TRACE_LABEL_SCOPE:"l",AUTOPLAY_UPWARD:`${qt.ctrl}+shift+up`,AUTOPLAY_DOWNWARD:`${qt.ctrl}+shift+down`,AUTOPLAY_FORWARD:`${qt.ctrl}+shift+right`,AUTOPLAY_BACKWARD:`${qt.ctrl}+shift+left`,STOP_AUTOPLAY:`${qt.ctrl}, up, down, left, right`,SPEED_UP_AUTOPLAY:".",SPEED_DOWN_AUTOPLAY:",",RESET_AUTOPLAY_SPEED:"/",MOVE_UP:"up",MOVE_DOWN:"down",MOVE_RIGHT:"right",MOVE_LEFT:"left",MOVE_TO_TOP_EXTREME:`${qt.ctrl}+up`,MOVE_TO_BOTTOM_EXTREME:`${qt.ctrl}+down`,MOVE_TO_LEFT_EXTREME:`${qt.ctrl}+left`,MOVE_TO_RIGHT_EXTREME:`${qt.ctrl}+right`,MOVE_TO_NEXT_TRACE:"pageup",MOVE_TO_PREV_TRACE:"pagedown",TOGGLE_BRAILLE:"b",TOGGLE_TEXT:"t",TOGGLE_AUDIO:"s",TOGGLE_REVIEW:"r",TOGGLE_HIGH_CONTRAST:"c",TOGGLE_HELP:`${qt.ctrl}+/`,TOGGLE_CHAT:"shift+/",TOGGLE_SETTINGS:`${qt.ctrl}+,`,ANNOUNCE_POINT:"space",ANNOUNCE_POSITION:"p",ROTOR_NEXT_NAV:`${qt.alt}+shift+up`,ROTOR_PREV_NAV:`${qt.alt}+shift+down`},nP={TOGGLE_CHAT:"esc"},rP={DEACTIVATE_FIGURE_LABEL_SCOPE:"escape",ANNOUNCE_TITLE:"t",ANNOUNCE_SUBTITLE:"s",ANNOUNCE_CAPTION:"c",TOGGLE_HELP:`${qt.ctrl}+/`},iP={TOGGLE_HELP:"esc"},aP={ACTIVATE_FIGURE_LABEL_SCOPE:"l",ANNOUNCE_TITLE:"t",ANNOUNCE_POINT:"space",ANNOUNCE_POSITION:"p",MOVE_UP:"up",MOVE_DOWN:"down",MOVE_RIGHT:"right",MOVE_LEFT:"left",MOVE_TO_TOP_EXTREME:`${qt.ctrl}+up`,MOVE_TO_BOTTOM_EXTREME:`${qt.ctrl}+down`,MOVE_TO_LEFT_EXTREME:`${qt.ctrl}+left`,MOVE_TO_RIGHT_EXTREME:`${qt.ctrl}+right`,MOVE_TO_TRACE_CONTEXT:`${qt.enter}`,TOGGLE_HIGH_CONTRAST:"c",TOGGLE_HELP:`${qt.ctrl}+/`,TOGGLE_CHAT:"shift+/",TOGGLE_SETTINGS:`${qt.ctrl}+,`},oP={DEACTIVATE_TRACE_LABEL_SCOPE:"escape",ANNOUNCE_X:"x",ANNOUNCE_Y:"y",ANNOUNCE_FILL:"f",ANNOUNCE_TITLE:"t",ANNOUNCE_SUBTITLE:"s",ANNOUNCE_CAPTION:"c",TOGGLE_HELP:`${qt.ctrl}+/`},lP={TOGGLE_BRAILLE:"b",TOGGLE_REVIEW:"r",ALLOW_DEFAULT:`up, down, left, right,
|
|
380
380
|
${qt.ctrl}+up, ${qt.ctrl}+down,
|
|
381
381
|
${qt.ctrl}+left, ${qt.ctrl}+right,
|
|
382
382
|
pageup, pagedown, home, end,
|
|
@@ -422,7 +422,7 @@ Take a look at the logic that dispatched this action: `,w,`
|
|
|
422
422
|
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
|
|
423
423
|
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),d||(R.measureTime(()=>{const _=S.getState(),N=x2(_,"",t,n,s,v);if(N){const{keyPath:z,value:B}=N;console.error(`A non-serializable value was detected in the state, in the path: \`${z}\`. Value:`,B,`
|
|
424
424
|
Take a look at the reducer(s) handling this action type: ${w.type}.
|
|
425
|
-
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),R.warnIfExceeded()),C}}}function uS(e){return typeof e=="boolean"}var MU=()=>function(t){const{thunk:n=!0,immutableCheck:i=!0,serializableCheck:o=!0,actionCreatorCheck:s=!0}=t??{};let c=new _9;if(n&&(uS(n)?c.push(yU):c.push(vU(n.extraArgument))),Jt.NODE_ENV!=="production"){if(i){let d={};uS(i)||(d=i),c.unshift(CU(d))}if(o){let d={};uS(o)||(d=o),c.push(OU(d))}if(s){let d={};uS(s)||(d=s),c.unshift(wU(d))}}return c},RU="RTK_autoBatch",L9=e=>t=>{setTimeout(t,e)},_U=(e={type:"raf"})=>t=>(...n)=>{const i=t(...n);let o=!0,s=!1,c=!1;const d=new Set,h=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:L9(10):e.type==="callback"?e.queueNotification:L9(e.timeout),y=()=>{c=!1,s&&(s=!1,d.forEach(v=>v()))};return Object.assign({},i,{subscribe(v){const S=()=>o&&v(),T=i.subscribe(S);return d.add(v),()=>{T(),d.delete(v)}},dispatch(v){var S;try{return o=!((S=v==null?void 0:v.meta)!=null&&S[RU]),s=!o,s&&(c||(c=!0,h(y))),i.dispatch(v)}finally{o=!0}}})},DU=e=>function(n){const{autoBatch:i=!0}=n??{};let o=new _9(e);return i&&o.push(_U(typeof i=="object"?i:void 0)),o};function NU(e){const t=MU(),{reducer:n=void 0,middleware:i,devTools:o=!0,duplicateMiddlewareCheck:s=!0,preloadedState:c=void 0,enhancers:d=void 0}=e||{};let h;if(typeof n=="function")h=n;else if(bv(n))h=BP(n);else throw new Error(Jt.NODE_ENV==="production"?Tr(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(Jt.NODE_ENV!=="production"&&i&&typeof i!="function")throw new Error(Jt.NODE_ENV==="production"?Tr(2):"`middleware` field must be a callback");let y;if(typeof i=="function"){if(y=i(t),Jt.NODE_ENV!=="production"&&!Array.isArray(y))throw new Error(Jt.NODE_ENV==="production"?Tr(3):"when using a middleware builder function, an array of middleware must be returned")}else y=t();if(Jt.NODE_ENV!=="production"&&y.some(R=>typeof R!="function"))throw new Error(Jt.NODE_ENV==="production"?Tr(4):"each middleware provided to configureStore must be a function");if(Jt.NODE_ENV!=="production"&&s){let R=new Set;y.forEach(_=>{if(R.has(_))throw new Error(Jt.NODE_ENV==="production"?Tr(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");R.add(_)})}let v=H5;o&&(v=bU({trace:Jt.NODE_ENV!=="production",...typeof o=="object"&&o}));const S=jP(...y),T=DU(S);if(Jt.NODE_ENV!=="production"&&d&&typeof d!="function")throw new Error(Jt.NODE_ENV==="production"?Tr(5):"`enhancers` field must be a callback");let w=typeof d=="function"?d(T):T();if(Jt.NODE_ENV!=="production"&&!Array.isArray(w))throw new Error(Jt.NODE_ENV==="production"?Tr(6):"`enhancers` callback must return an array");if(Jt.NODE_ENV!=="production"&&w.some(R=>typeof R!="function"))throw new Error(Jt.NODE_ENV==="production"?Tr(7):"each enhancer provided to configureStore must be a function");Jt.NODE_ENV!=="production"&&y.length&&!w.includes(S)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const C=v(...w);return t9(h,c,C)}function V9(e){const t={},n=[];let i;const o={addCase(s,c){if(Jt.NODE_ENV!=="production"){if(n.length>0)throw new Error(Jt.NODE_ENV==="production"?Tr(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(i)throw new Error(Jt.NODE_ENV==="production"?Tr(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const d=typeof s=="string"?s:s.type;if(!d)throw new Error(Jt.NODE_ENV==="production"?Tr(28):"`builder.addCase` cannot be called with an empty action type");if(d in t)throw new Error(Jt.NODE_ENV==="production"?Tr(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${d}'`);return t[d]=c,o},addAsyncThunk(s,c){if(Jt.NODE_ENV!=="production"&&i)throw new Error(Jt.NODE_ENV==="production"?Tr(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return c.pending&&(t[s.pending.type]=c.pending),c.rejected&&(t[s.rejected.type]=c.rejected),c.fulfilled&&(t[s.fulfilled.type]=c.fulfilled),c.settled&&n.push({matcher:s.settled,reducer:c.settled}),o},addMatcher(s,c){if(Jt.NODE_ENV!=="production"&&i)throw new Error(Jt.NODE_ENV==="production"?Tr(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:s,reducer:c}),o},addDefaultCase(s){if(Jt.NODE_ENV!=="production"&&i)throw new Error(Jt.NODE_ENV==="production"?Tr(31):"`builder.addDefaultCase` can only be called once");return i=s,o}};return e(o),[t,n,i]}function kU(e){return typeof e=="function"}function zU(e,t){if(Jt.NODE_ENV!=="production"&&typeof t=="object")throw new Error(Jt.NODE_ENV==="production"?Tr(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[n,i,o]=V9(t),s;if(kU(e))s=()=>D9(e());else{const d=D9(e);s=()=>d}function c(d=s(),h){let y=[n[h.type],...i.filter(({matcher:v})=>v(h)).map(({reducer:v})=>v)];return y.filter(v=>!!v).length===0&&(y=[o]),y.reduce((v,S)=>{if(S)if(Qc(v)){const w=S(v,h);return w===void 0?v:w}else{if(iu(v))return E9(v,T=>S(T,h));{const T=S(v,h);if(T===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return T}}return v},d)}return c.getInitialState=s,c}var IU=Symbol.for("rtk-slice-createasyncthunk");function LU(e,t){return`${e}/${t}`}function VU({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[IU];return function(o){const{name:s,reducerPath:c=s}=o;if(!s)throw new Error(Jt.NODE_ENV==="production"?Tr(11):"`name` is a required option for createSlice");typeof process<"u"&&Jt.NODE_ENV==="development"&&o.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const d=(typeof o.reducers=="function"?o.reducers(jU()):o.reducers)||{},h=Object.keys(d),y={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},v={addCase(V,L){const U=typeof V=="string"?V:V.type;if(!U)throw new Error(Jt.NODE_ENV==="production"?Tr(12):"`context.addCase` cannot be called with an empty action type");if(U in y.sliceCaseReducersByType)throw new Error(Jt.NODE_ENV==="production"?Tr(13):"`context.addCase` cannot be called with two reducers for the same action type: "+U);return y.sliceCaseReducersByType[U]=L,v},addMatcher(V,L){return y.sliceMatchers.push({matcher:V,reducer:L}),v},exposeAction(V,L){return y.actionCreators[V]=L,v},exposeCaseReducer(V,L){return y.sliceCaseReducersByName[V]=L,v}};h.forEach(V=>{const L=d[V],U={reducerName:V,type:LU(s,V),createNotation:typeof o.reducers=="function"};UU(L)?HU(U,L,v,t):PU(U,L,v)});function S(){if(Jt.NODE_ENV!=="production"&&typeof o.extraReducers=="object")throw new Error(Jt.NODE_ENV==="production"?Tr(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[V={},L=[],U=void 0]=typeof o.extraReducers=="function"?V9(o.extraReducers):[o.extraReducers],X={...V,...y.sliceCaseReducersByType};return zU(o.initialState,se=>{for(let ce in X)se.addCase(ce,X[ce]);for(let ce of y.sliceMatchers)se.addMatcher(ce.matcher,ce.reducer);for(let ce of L)se.addMatcher(ce.matcher,ce.reducer);U&&se.addDefaultCase(U)})}const T=V=>V,w=new Map,C=new WeakMap;let R;function _(V,L){return R||(R=S()),R(V,L)}function N(){return R||(R=S()),R.getInitialState()}function z(V,L=!1){function U(se){let ce=se[V];if(typeof ce>"u"){if(L)ce=sS(C,U,N);else if(Jt.NODE_ENV!=="production")throw new Error(Jt.NODE_ENV==="production"?Tr(15):"selectSlice returned undefined for an uninjected slice reducer")}return ce}function X(se=T){const ce=sS(w,L,()=>new WeakMap);return sS(ce,se,()=>{const ie={};for(const[ue,$]of Object.entries(o.selectors??{}))ie[ue]=BU($,se,()=>sS(C,se,N),L);return ie})}return{reducerPath:V,getSelectors:X,get selectors(){return X(U)},selectSlice:U}}const B={name:s,reducer:_,actions:y.actionCreators,caseReducers:y.sliceCaseReducersByName,getInitialState:N,...z(c),injectInto(V,{reducerPath:L,...U}={}){const X=L??c;return V.inject({reducerPath:X,reducer:_},U),{...B,...z(X,!0)}}};return B}}function BU(e,t,n,i){function o(s,...c){let d=t(s);if(typeof d>"u"){if(i)d=n();else if(Jt.NODE_ENV!=="production")throw new Error(Jt.NODE_ENV==="production"?Tr(16):"selectState returned undefined for an uninjected slice reducer")}return e(d,...c)}return o.unwrapped=e,o}var Gu=VU();function jU(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function PU({type:e,reducerName:t,createNotation:n},i,o){let s,c;if("reducer"in i){if(n&&!$U(i))throw new Error(Jt.NODE_ENV==="production"?Tr(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");s=i.reducer,c=i.prepare}else s=i;o.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,c?M9(e,c):M9(e))}function UU(e){return e._reducerDefinitionType==="asyncThunk"}function $U(e){return e._reducerDefinitionType==="reducerWithPrepare"}function HU({type:e,reducerName:t},n,i,o){if(!o)throw new Error(Jt.NODE_ENV==="production"?Tr(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:s,fulfilled:c,pending:d,rejected:h,settled:y,options:v}=n,S=o(e,s,v);i.exposeAction(t,S),c&&i.addCase(S.fulfilled,c),d&&i.addCase(S.pending,d),h&&i.addCase(S.rejected,h),y&&i.addMatcher(S.settled,y),i.exposeCaseReducer(t,{fulfilled:c||cS,pending:d||cS,rejected:h||cS,settled:y||cS})}function cS(){}function Tr(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}class Fu{constructor(t){P(this,"store");P(this,"disposables");this.store=t,this.disposables=new Array}dispose(){this.disposables.forEach(t=>t.dispose()),this.disposables.length=0}}const B9={value:"",index:-1},j9=Gu({name:"braille",initialState:B9,reducers:{update(e,t){return t.payload},reset(){return B9}}}),{update:qU,reset:GU}=j9.actions;class FU extends Fu{constructor(n,i){super(n);P(this,"brailleService");this.brailleService=i,this.registerListener()}dispose(){super.dispose(),this.store.dispatch(GU())}registerListener(){this.disposables.push(this.brailleService.onChange(n=>{this.store.dispatch(qU(n))}))}get state(){return this.store.getState().braille}moveToIndex(n){this.brailleService.moveToIndex(n)}update(n){this.brailleService.update(n)}toggle(n){this.brailleService.toggle(n)}}const YU=j9.reducer,Tv={OPENAI:{default:"gpt-4o",options:["gpt-4o","gpt-4o-mini","gpt-4.1","o1-mini","o3","o4-mini"],labels:{"gpt-4o":"GPT-4o","gpt-4o-mini":"GPT-4o Mini","gpt-4.1":"GPT-4.1","o1-mini":"o1-mini",o3:"o3","o4-mini":"o4-mini"}},ANTHROPIC_CLAUDE:{default:"claude-3-7-sonnet-latest",options:["claude-3-5-haiku-latest","claude-3-5-sonnet-latest","claude-3-7-sonnet-latest"],labels:{"claude-3-5-haiku-latest":"Claude 3.5 Haiku","claude-3-5-sonnet-latest":"Claude 3.5 Sonnet","claude-3-7-sonnet-latest":"Claude 3.7 Sonnet"}},GOOGLE_GEMINI:{default:"gemini-2.0-flash",options:["gemini-2.0-flash","gemini-2.0-flash-lite","gemini-2.5-flash-preview-04-17","gemini-2.5-pro-preview-05-06"],labels:{"gemini-2.0-flash":"Gemini 2.0 Flash","gemini-2.0-flash-lite":"Gemini 2.0 Flash Lite","gemini-2.5-flash-preview-04-17":"Gemini 2.5 Flash Preview","gemini-2.5-pro-preview-05-06":"Gemini 2.5 Pro Preview"}}},P9={messages:[],suggestions:[]};function U9(e){switch(e){case"OPENAI":return"OpenAI";case"ANTHROPIC_CLAUDE":return"Anthropic Claude";case"GOOGLE_GEMINI":return"Google Gemini";default:return"AI Assistant"}}const $9=Gu({name:"chat",initialState:P9,reducers:{addUserMessage:(e,t)=>{e.messages.push({id:`msg-${Date.now()}`,text:t.payload.text,isUser:!0,timestamp:t.payload.timestamp,status:"SUCCESS"})},addSystemMessage:(e,t)=>{e.messages.push({id:`system-${Date.now()}`,text:t.payload.text,isUser:!1,timestamp:t.payload.timestamp,status:"SUCCESS",modelSelections:t.payload.modelSelections,isWelcomeMessage:t.payload.isWelcomeMessage})},addPendingResponse:(e,t)=>{e.messages.push({id:`resp-${Date.now()}-${t.payload.model}`,text:"Processing request...",isUser:!1,model:t.payload.model,timestamp:t.payload.timestamp,status:"PENDING"})},updateResponse:(e,t)=>{const n=e.messages.find(i=>i.model===t.payload.model&&i.timestamp===t.payload.timestamp);n&&(n.text=t.payload.data,n.status="SUCCESS")},updateError:(e,t)=>{const n=e.messages.find(i=>i.model===t.payload.model&&i.timestamp===t.payload.timestamp);n&&(n.text=`Error: ${t.payload.error}`,n.status="FAILED")},updateSuggestions:(e,t)=>{e.suggestions=t.payload},updateWelcomeMessage:(e,t)=>{const n=e.messages.findIndex(i=>i.isWelcomeMessage);n!==-1&&(e.messages[n].text=t.payload.text,t.payload.modelSelections&&(e.messages[n].modelSelections=t.payload.modelSelections))},reset(){return P9}}}),{addUserMessage:XU,addSystemMessage:WU,addPendingResponse:QU,updateResponse:KU,updateError:H9,updateSuggestions:ZU,updateWelcomeMessage:JU,reset:q9}=$9.actions;class e$ extends Fu{constructor(n,i,o){super(n);P(this,"chatService");P(this,"audioService");this.chatService=i,this.audioService=o,this.loadInitialMessage()}dispose(){super.dispose(),this.store.dispatch(q9())}get state(){return this.snapshot.chat}get snapshot(){return this.store.getState()}get canSend(){const{llm:n}=this.snapshot.settings;return Object.values(n.models).some(i=>i.enabled&&i.apiKey.trim().length>0)}toggle(){this.chatService.toggle()}getEnabledModelsData(){const n=this.snapshot.settings.llm.models,i=Object.entries(n).filter(([s,c])=>c.enabled&&c.apiKey.trim().length>0).map(([s,c])=>{var v;const d=(v=Tv[s])==null?void 0:v.labels,h=(d==null?void 0:d[c.version])||c.version;return`${U9(s)} (${h})`}),o=Object.entries(n).filter(([s,c])=>c.enabled&&c.apiKey.trim().length>0).map(([s,c])=>({modelKey:s,name:U9(s),version:c.version}));return{enabledModels:i,modelSelections:o}}loadInitialMessage(){const n=new Date().toISOString(),{enabledModels:i,modelSelections:o}=this.getEnabledModelsData(),s=i.length>0?`Welcome to the Chart Assistant. You can select and switch between different AI models using the dropdowns below. Currently enabled: ${i.join(", ")}.`:"No agents are enabled. Please enable at least one agent and provide API keys in the settings page.";this.store.dispatch(WU({text:s,timestamp:n,modelSelections:o,isWelcomeMessage:!0}))}refreshInitialMessage(){this.store.dispatch(q9()),this.loadInitialMessage()}updateWelcomeMessage(){const{enabledModels:n,modelSelections:i}=this.getEnabledModelsData(),o=n.length>0?`Welcome to the Chart Assistant. You can select and switch between different AI models using the dropdowns below. Currently enabled: ${n.join(", ")}.`:"No agents are enabled. Please enable at least one agent and provide API keys in the settings page.";this.store.dispatch(JU({text:o,modelSelections:i}))}generateSuggestions(){try{const n=this.state.messages[this.state.messages.length-1];if(!n||n.isUser)return[];const{llm:i}=this.snapshot.settings,o=i.expertiseLevel,s=Date.now(),c=[{id:`suggestion-${s}-1`,text:"Can you explain that in more detail?",type:"clarification"},{id:`suggestion-${s}-2`,text:"What can you say about the current datapoint?",type:"analysis"},{id:`suggestion-${s}-3`,text:"How does this compare to other data points?",type:"analysis"}];return o==="advanced"&&c.push({id:`suggestion-${s}-4`,text:"Can you perform a statistical analysis of this data?",type:"analysis"},{id:`suggestion-${s}-5`,text:"What are the potential outliers in this dataset?",type:"analysis"}),c}catch(n){return console.error("Error generating suggestions:",n),[]}}updateSuggestions(){const n=this.generateSuggestions();this.store.dispatch(ZU(n))}isValidExpertiseLevel(n){return["basic","intermediate","advanced"].includes(n)}async sendMessage(n){const{llm:i}=this.snapshot.settings,o=new Date().toISOString();this.store.dispatch(XU({text:n,timestamp:o}));const s=Object.keys(i.models).filter(c=>i.models[c].enabled&&i.models[c].apiKey.trim().length>0);await Promise.all(s.map(async c=>{const d=this.audioService.playWaitingTone();try{this.store.dispatch(QU({model:c,timestamp:o}));const h=i.models[c],y=i.customExpertise&&["basic","intermediate","advanced"].includes(i.customExpertise)?i.customExpertise:i.expertiseLevel,v=await this.chatService.sendMessage(c,{message:n,customInstruction:i.customInstruction,expertise:y,apiKey:h.apiKey});this.audioService.stop(d),v.error?this.store.dispatch(H9({model:c,error:v.error,timestamp:o})):(this.store.dispatch(KU({model:c,data:v.data,timestamp:o})),this.audioService.playCompleteTone(),this.updateSuggestions())}catch(h){this.audioService.stop(d),this.store.dispatch(H9({model:c,error:h instanceof Error?h.message:"Error processing request",timestamp:o}))}}))}}const t$=$9.reducer,G9=Gu({name:"commandPalette",initialState:{visible:!1,commands:[],selectedIndex:-1,search:""},reducers:{show(e,t){e.visible=!0,e.commands=t.payload.commands,e.selectedIndex=-1,e.search=""},hide(e){e.visible=!1,e.commands=[],e.selectedIndex=-1,e.search=""},updateSelectedIndex(e,t){e.selectedIndex=t.payload},updateSearch(e,t){e.search=t.payload,e.selectedIndex=-1}}}),{show:n$,hide:F9,updateSelectedIndex:S2,updateSearch:r$}=G9.actions;class i$ extends Fu{constructor(n,i){super(n);P(this,"commandPaletteService");this.commandPaletteService=i}dispose(){super.dispose(),this.store.dispatch(F9())}get state(){return this.store.getState().commandPalette}toggle(){this.state.visible?this.hide():this.show()}show(){const n=t2.TRACE,i=Object.entries(n).filter(([o])=>!o.startsWith("ALLOW_")).map(([o,s])=>({key:s,description:this.toTitleCase(o.replace(/_/g," ").toLowerCase()),commandKey:o}));this.store.dispatch(n$({commands:i,scope:dn.TRACE})),this.commandPaletteService.toggle()}hide(){this.store.dispatch(F9()),this.commandPaletteService.returnToTraceScope()}moveUp(){const n=this.state;if(n.commands.length>0){if(n.selectedIndex===0)return;const i=n.selectedIndex>=0?n.selectedIndex:n.commands.length-1,o=Math.max(0,i-1);this.store.dispatch(S2(o))}}moveDown(){const n=this.state;if(n.commands.length>0){const i=n.selectedIndex>=0?n.selectedIndex:-1,o=Math.min(n.commands.length-1,i+1);this.store.dispatch(S2(o))}}moveToSearch(){this.store.dispatch(S2(-1))}selectCurrent(){const n=this.state;n.commands.length>0&&n.selectedIndex}updateSearch(n){this.store.dispatch(r$(n))}executeCommand(n){this.hide()}handleCommandSelect(n){this.hide()}toTitleCase(n){return n.replace(/\w\S*/g,i=>i.charAt(0).toUpperCase()+i.slice(1))}}const a$=G9.reducer,Y9=Gu({name:"display",initialState:{focus:null,tooltip:{visible:!1,value:""}},reducers:{hideTooltip(e){e.tooltip={...e.tooltip,visible:!1,value:""}},showTooltip(e,t){e.tooltip={...e.tooltip,visible:!0,value:t.payload}},updateFocus(e,t){e.focus=t.payload},clearFocus(e){e.focus=null}}}),{hideTooltip:o$,showTooltip:l$,updateFocus:s$,clearFocus:u$}=Y9.actions;class c$ extends Fu{constructor(n,i){super(n);P(this,"displayService");this.displayService=i,this.registerListeners(),this.store.dispatch(o$())}dispose(){this.store.dispatch(u$()),this.store.dispatch(l$(this.displayService.getInstruction())),super.dispose()}registerListeners(){this.disposables.push(this.displayService.onChange(n=>{this.store.dispatch(s$(n.value))}))}get state(){return this.store.getState().display}}const f$=Y9.reducer,X9=Gu({name:"goToExtrema",initialState:{visible:!1,targets:[],selectedIndex:0,description:""},reducers:{show(e,t){return{visible:!0,targets:t.payload.targets,selectedIndex:0,description:t.payload.description}},hide(){return{visible:!1,targets:[],selectedIndex:0,description:""}},updateSelectedIndex(e,t){return{...e,selectedIndex:t.payload}}}}),{show:d$,hide:E2,updateSelectedIndex:W9}=X9.actions;class h$ extends Fu{constructor(n,i,o){super(n);P(this,"goToExtremaService");P(this,"context");this.goToExtremaService=i,this.context=o}dispose(){super.dispose(),this.store.dispatch(E2())}get state(){return this.store.getState().goToExtrema}toggle(n){if(n.empty)return;const i=this.context.active;if(i&&this.goToExtremaService.isExtremaNavigable(i)){const o=i.getExtremaTargets(),s=this.generateDescription(n.traceType);this.store.dispatch(d$({targets:o,description:s})),this.goToExtremaService.toggle(n)}}hide(){this.store.dispatch(E2()),this.goToExtremaService.returnToTraceScope()}get activeContext(){return this.context}moveUp(){const n=this.state;if(n.targets.length>0){const i=n.selectedIndex||0,o=Math.max(0,i-1);this.store.dispatch(W9(o))}}moveDown(){const n=this.state;if(n.targets.length>0){const i=n.targets.length,o=n.selectedIndex||0,s=Math.min(i,o+1);this.store.dispatch(W9(s))}}selectCurrent(){const n=this.state;if(n.targets.length>0&&n.selectedIndex!==void 0){const i=n.targets[n.selectedIndex];i&&this.handleTargetSelect(i)}}handleTargetSelect(n){const i=this.context.active;if(i&&this.goToExtremaService.isExtremaNavigable(i))try{this.store.dispatch(E2()),this.goToExtremaService.returnToTraceScope(),i.navigateToExtrema(n)}catch{this.goToExtremaService.returnToTraceScope()}else this.goToExtremaService.returnToTraceScope()}generateDescription(n){return`Navigate to points of interest within the current ${n}`}getAvailableXValues(){const n=this.context.active;return n&&this.supportsXValueNavigation(n)?n.getAvailableXValues():[]}isExtremaNavigable(n){return this.goToExtremaService.isExtremaNavigable(n)}supportsXValueNavigation(n){return n!==null&&typeof n=="object"&&"getAvailableXValues"in n&&typeof n.getAvailableXValues=="function"}}const p$=X9.reducer,Q9={items:[]},K9=Gu({name:"help",initialState:Q9,reducers:{setHelpItems(e,t){e.items=t.payload},reset(){return Q9}}}),{setHelpItems:m$,reset:g$}=K9.actions;class y$ extends Fu{constructor(n,i){super(n);P(this,"helpService");this.helpService=i}toggle(){const n=this.helpService.getMenuItems();this.store.dispatch(m$(n)),this.helpService.toggle()}dispose(){super.dispose(),this.store.dispatch(g$())}get state(){return this.store.getState().help}}const v$=K9.reducer;class b${constructor(){P(this,"viewModels",new Map)}register(t,n){this.viewModels.set(t,n)}get(t){if(!this.viewModels.has(t))throw new Error(`Error while loading view model for ${t}`);return this.viewModels.get(t)}dispose(){this.viewModels.clear()}}const Z9={value:""},J9=Gu({name:"review",initialState:Z9,reducers:{update(e,t){e.value=t.payload},reset(){return Z9}}}),{update:x$,reset:S$}=J9.actions;class E$ extends Fu{constructor(n,i){super(n);P(this,"reviewService");this.reviewService=i,this.registerListener()}dispose(){super.dispose(),this.store.dispatch(S$())}registerListener(){this.disposables.push(this.reviewService.onChange(n=>{this.store.dispatch(x$(n.value))}))}get state(){return this.store.getState().review}toggle(n){this.reviewService.toggle(n)}}const w$=J9.reducer,eO=Gu({name:"rotorNavigation",initialState:{rotor_value:""},reducers:{show(){return{rotor_value:""}},setValue(e,t){e.rotor_value=t.payload}}}),{setValue:Um}=eO.actions;class T$ extends Fu{constructor(n,i){super(n);P(this,"rotorService");this.rotorService=i}get state(){return this.store.getState().rotor}moveToNextNavUnit(){const n=this.rotorService.moveToNextRotorUnit();this.store.dispatch(Um(`${n}`))}moveToPrevNavUnit(){const n=this.rotorService.moveToPrevRotorUnit();this.store.dispatch(Um(`${n}`))}moveUp(){this.store.dispatch(Um(this.rotorService.moveUp()))}moveLeft(){this.store.dispatch(Um(this.rotorService.moveLeft()))}moveDown(){this.store.dispatch(Um(this.rotorService.moveDown()))}moveRight(){this.store.dispatch(Um(this.rotorService.moveRight()))}}const A$=eO.reducer,tO={general:{volume:50,highlightColor:"#03c809",highContrastMode:!1,highContrastLevels:2,highContrastLightColor:"#ffffff",highContrastDarkColor:"#000000",brailleDisplaySize:32,minFrequency:200,maxFrequency:1e3,autoplayDuration:4e3,ariaMode:"assertive",hoverMode:"pointermove"},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"}}}},nO=Gu({name:"settings",initialState:tO,reducers:{update:(e,t)=>({...e,...t.payload}),reset:()=>tO}}),{update:fS,reset:C$}=nO.actions;class O$ extends Fu{constructor(n,i){super(n);P(this,"settingsService");this.settingsService=i,this.load()}dispose(){super.dispose(),this.store.dispatch(C$())}get state(){return this.store.getState().settings}load(){const n=this.settingsService.loadSettings();this.store.dispatch(fS(n))}saveAndClose(n){this.settingsService.saveSettings(n),this.store.dispatch(fS(n)),this.toggle()}saveSettings(n){this.settingsService.saveSettings(n),this.store.dispatch(fS(n))}reset(){const n=this.settingsService.resetSettings();this.store.dispatch(fS(n))}toggle(){this.settingsService.toggle()}}const M$=nO.reducer,rO={enabled:!0,announce:!0,value:"",revision:0,message:null},iO=Gu({name:"text",initialState:rO,reducers:{update(e,t){e.value=t.payload,e.revision+=1},announceText(e,t){e.announce=t.payload},toggle(e,t){e.enabled=t.payload},notify(e,t){e.message=t.payload},clearMessage(e){e.message=null},reset(){return rO}}}),{update:R$,announceText:_$,toggle:D$,notify:N$,clearMessage:k$,reset:z$}=iO.actions;class I$ extends Fu{constructor(n,i,o,s,c){super(n);P(this,"audioService");P(this,"textService");this.audioService=c,this.textService=i,this.registerListeners(o,s)}dispose(){super.dispose(),this.store.dispatch(z$())}registerListeners(n,i){this.disposables.push(this.textService.onChange(o=>{this.update(o.value)})),this.disposables.push(this.textService.onNavigation(o=>{o.type==="first_navigation"&&this.setAnnounce(!0)})),this.disposables.push(n.onChange(o=>{this.notify(o.value)})),this.disposables.push(i.onChange(o=>{switch(o.type){case"start":this.setAnnounce(!1);break;case"stop":this.setAnnounce(!0);break}}))}get state(){return this.store.getState().text}toggle(){const n=this.textService.toggle();this.store.dispatch(D$(n))}update(n){const i=this.textService.format(n);this.store.dispatch(R$(i)),this.store.dispatch(k$())}notify(n){this.store.dispatch(N$(n))}setAnnounce(n){this.store.dispatch(_$(n))}warnIfTextOff(){return this.textService.isOff()?(this.notify("Text mode is off. To enable, press the T key."),this.audioService.playWarningTone(),!0):!1}}const L$=iO.reducer;function V$(e){const t=j$(e),n=P$(e,t),i=document.querySelectorAll('g[id^="axes_"]').length;if(n.length===0)return q$(e,i,t);const o=U$(n),s=$$(o),c=o[0].row,d=H$(n,e.length);return{visualOrderMap:s,topLeftRow:c,invertVertical:d,totalAxesCount:i,axesElements:t}}function B$(e,t){if(e){const n=e.closest('g[id^="axes_"]');if(n)return n}if(t){const n=document.querySelector(t);if(n){const i=n.closest('g[id^="axes_"]');if(i)return i}}return null}function j$(e){const t=new Map;for(let n=0;n<e.length;n++)for(let i=0;i<e[n].length;i++){const o=e[n][i],s=B$(o.getHighlightElement(),o.getLayerSelector());t.set(`${n},${i}`,s)}return t}function P$(e,t){const n=[];for(let i=0;i<e.length;i++)for(let o=0;o<e[i].length;o++){const s=t.get(`${i},${o}`);if(s){const c=s.getBoundingClientRect();n.push({row:i,col:o,y:c.top,x:c.left})}}return n}function U$(e){return[...e].sort((t,n)=>t.y-n.y||t.x-n.x)}function $$(e){const t=new Map;for(let n=0;n<e.length;n++)t.set(`${e[n].row},${e[n].col}`,n+1);return t}function H$(e,t){if(t<=1)return!1;const n=e.find(o=>o.row===0),i=e.find(o=>o.row===1);return n&&i?n.y<i.y:!1}function q$(e,t,n){const i=new Map;let o=1;for(let s=0;s<e.length;s++)for(let c=0;c<e[s].length;c++)i.set(`${s},${c}`,o++);return{visualOrderMap:i,topLeftRow:0,invertVertical:!1,totalAxesCount:t,axesElements:n}}class G${constructor(t,n,i){P(this,"figure");P(this,"context");P(this,"displayService");P(this,"notificationService");P(this,"settingsService");P(this,"formatterService");P(this,"audioService");P(this,"brailleService");P(this,"goToExtremaService");P(this,"textService");P(this,"reviewService");P(this,"rotorNavigationService");P(this,"autoplayService");P(this,"highContrastService");P(this,"highlightService");P(this,"helpService");P(this,"chatService");P(this,"textViewModel");P(this,"brailleViewModel");P(this,"goToExtremaViewModel");P(this,"reviewViewModel");P(this,"displayViewModel");P(this,"helpViewModel");P(this,"chatViewModel");P(this,"settingsViewModel");P(this,"rotorNavigationViewModel");P(this,"commandPaletteViewModel");P(this,"keybinding");P(this,"mousebinding");P(this,"commandExecutor");P(this,"viewModelRegistry");this.viewModelRegistry=new b$,this.figure=new _B(t),this.figure.applyLayout(V$(this.figure.subplots)),this.context=new rB(this.figure),this.notificationService=new wP,this.formatterService=new vP(t),this.textService=new RP(this.notificationService,this.formatterService),this.displayService=new yP(this.context,n,this.textService),this.settingsService=new OP(new MP,this.displayService),this.audioService=new LB(this.notificationService,this.settingsService,this.context.state),this.brailleService=new HB(this.context,this.notificationService,this.displayService),this.goToExtremaService=new bP(this.context,this.displayService),this.reviewService=new TP(this.notificationService,this.displayService,this.textService),this.autoplayService=new PB(this.context,this.notificationService,this.settingsService),this.highContrastService=new SP(this.settingsService,this.notificationService,this.displayService,this.figure,this.context),this.highlightService=new EP(this.settingsService),this.helpService=new xP(this.context,this.displayService),this.chatService=new JB(this.displayService,this.textService,t),this.textViewModel=new I$(i,this.textService,this.notificationService,this.autoplayService,this.audioService),this.brailleViewModel=new FU(i,this.brailleService),this.goToExtremaViewModel=new h$(i,this.goToExtremaService,this.context),this.reviewViewModel=new E$(i,this.reviewService),this.displayViewModel=new c$(i,this.displayService),this.helpViewModel=new y$(i,this.helpService),this.settingsViewModel=new O$(i,this.settingsService),this.rotorNavigationService=new AP(this.context,this.textService),this.rotorNavigationViewModel=new T$(i,this.rotorNavigationService),this.chatViewModel=new e$(i,this.chatService,this.audioService);const o=new mP(this.context,this.displayService);this.commandPaletteViewModel=new i$(i,o),this.keybinding=new dP({context:this.context,audioService:this.audioService,autoplayService:this.autoplayService,displayService:this.displayService,highContrastService:this.highContrastService,highlightService:this.highlightService,rotorNavigationService:this.rotorNavigationService,settingsService:this.settingsService,textService:this.textService,brailleViewModel:this.brailleViewModel,chatViewModel:this.chatViewModel,commandPaletteViewModel:this.commandPaletteViewModel,goToExtremaViewModel:this.goToExtremaViewModel,helpViewModel:this.helpViewModel,reviewViewModel:this.reviewViewModel,settingsViewModel:this.settingsViewModel,textViewModel:this.textViewModel,rotorNavigationViewModel:this.rotorNavigationViewModel}),this.mousebinding=new hP({context:this.context,audioService:this.audioService,autoplayService:this.autoplayService,displayService:this.displayService,highContrastService:this.highContrastService,highlightService:this.highlightService,rotorNavigationService:this.rotorNavigationService,settingsService:this.settingsService,textService:this.textService,brailleViewModel:this.brailleViewModel,chatViewModel:this.chatViewModel,commandPaletteViewModel:this.commandPaletteViewModel,goToExtremaViewModel:this.goToExtremaViewModel,helpViewModel:this.helpViewModel,reviewViewModel:this.reviewViewModel,settingsViewModel:this.settingsViewModel,textViewModel:this.textViewModel,rotorNavigationViewModel:this.rotorNavigationViewModel},this.settingsService,this.displayService),this.commandExecutor=new pP({context:this.context,audioService:this.audioService,autoplayService:this.autoplayService,displayService:this.displayService,highContrastService:this.highContrastService,highlightService:this.highlightService,rotorNavigationService:this.rotorNavigationService,settingsService:this.settingsService,textService:this.textService,brailleViewModel:this.brailleViewModel,chatViewModel:this.chatViewModel,commandPaletteViewModel:this.commandPaletteViewModel,goToExtremaViewModel:this.goToExtremaViewModel,helpViewModel:this.helpViewModel,reviewViewModel:this.reviewViewModel,settingsViewModel:this.settingsViewModel,textViewModel:this.textViewModel,rotorNavigationViewModel:this.rotorNavigationViewModel},this.context.scope),this.registerViewModels(),this.registerObservers(),this.keybinding.register(this.context.scope),this.mousebinding.registerEvents()}announceInitialInstruction(){const t=this.displayService.getInstruction(!1);this.textViewModel.update(t)}getInitialInstruction(){return this.displayService.getInstruction(!1)}showInitialInstructionInText(){const t=this.displayService.getInstruction(!1);this.textViewModel.setAnnounce(!1),this.textViewModel.update(t)}initializeHighContrast(){this.highContrastService.initializeHighContrast()}suspendHighContrast(){this.highContrastService.suspendHighContrast()}dispose(){this.keybinding.unregister(),this.mousebinding.dispose(),this.commandExecutor.dispose(),this.viewModelRegistry.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.rotorNavigationViewModel.dispose(),this.highContrastService.dispose(),this.highlightService.dispose(),this.autoplayService.dispose(),this.textService.dispose(),this.reviewService.dispose(),this.brailleService.dispose(),this.audioService.dispose(),this.formatterService.dispose(),this.settingsService.dispose(),this.notificationService.dispose(),this.displayService.dispose(),this.context.dispose(),this.figure.dispose()}getContextValue(){return{viewModelRegistry:this.viewModelRegistry,commandExecutor:this.commandExecutor}}registerViewModels(){this.viewModelRegistry.register("text",this.textViewModel),this.viewModelRegistry.register("braille",this.brailleViewModel),this.viewModelRegistry.register("goToExtrema",this.goToExtremaViewModel),this.viewModelRegistry.register("review",this.reviewViewModel),this.viewModelRegistry.register("display",this.displayViewModel),this.viewModelRegistry.register("help",this.helpViewModel),this.viewModelRegistry.register("chat",this.chatViewModel),this.viewModelRegistry.register("settings",this.settingsViewModel),this.viewModelRegistry.register("commandPalette",this.commandPaletteViewModel),this.viewModelRegistry.register("commandExecutor",this.commandExecutor),this.viewModelRegistry.register("rotor",this.rotorNavigationViewModel)}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.audioService),n.addObserver(this.brailleService),n.addObserver(this.highlightService),n.traces.forEach(i=>i.forEach(o=>{o.addObserver(this.audioService),o.addObserver(this.brailleService),o.addObserver(this.textService),o.addObserver(this.reviewService),o.addObserver(this.highlightService)}))}))}}function F$(e,t){const n=G.useRef(null),i=G.useRef(null),o=G.useRef(null),s=G.useRef(!1),c=G.useRef(null),d=G.useRef(null),[h,y]=G.useState(null),v=G.useCallback(()=>{const _=n.current;if(!_)return null;const N=structuredClone(e);return new G$(N,_,t)},[e,t]),S=G.useRef(v);S.current=v;const T=G.useCallback(()=>{o.current&&(o.current.suspendHighContrast(),o.current.dispose(),o.current=null),y(null),s.current=!1},[]),w=G.useCallback(()=>{d.current&&(clearTimeout(d.current),d.current=null),c.current&&(clearTimeout(c.current),c.current=null),c.current=setTimeout(()=>{var _;if(c.current=null,!o.current){const N=S.current();if(!N)return;o.current=N,y(N.getContextValue()),N.initializeHighContrast()}s.current||(s.current=!0,(_=o.current)==null||_.showInitialInstructionInText())},0)},[]),C=G.useCallback(()=>{c.current&&(clearTimeout(c.current),c.current=null),d.current=setTimeout(()=>{d.current=null;const _=i.current;if(!_)return;const N=document.activeElement;_.contains(N)||T()},0)},[T]),R=G.useCallback(()=>{if(document.visibilityState==="visible"){if(!o.current)return;c.current&&(clearTimeout(c.current),c.current=null),d.current&&(clearTimeout(d.current),d.current=null),T();const _=S.current();if(!_)return;o.current=_,y(_.getContextValue()),_.initializeHighContrast(),s.current=!1}},[T]);return G.useEffect(()=>(document.addEventListener("visibilitychange",R),()=>{document.removeEventListener("visibilitychange",R)}),[R]),G.useEffect(()=>()=>{c.current&&clearTimeout(c.current),d.current&&clearTimeout(d.current),o.current&&(o.current.suspendHighContrast(),o.current.dispose(),o.current=null)},[]),{plotRef:n,figureRef:i,contextValue:h,onFocusIn:w,onFocusOut:C}}const Y$={braille:YU,chat:t$,commandPalette:a$,display:f$,goToExtrema:p$,help:v$,review:w$,settings:M$,text:L$,rotor:A$};function X$(){return NU({reducer:Y$})}const aO=G.createContext(null);function oO(){const e=G.useContext(aO);if(!e)throw new Error("useMaidrContext must be used within a MaidrContext.Provider. Ensure the component is rendered inside a <Maidr> component.");return e}var dS={exports:{}},w2={};/**
|
|
425
|
+
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),R.warnIfExceeded()),C}}}function uS(e){return typeof e=="boolean"}var MU=()=>function(t){const{thunk:n=!0,immutableCheck:i=!0,serializableCheck:o=!0,actionCreatorCheck:s=!0}=t??{};let c=new _9;if(n&&(uS(n)?c.push(yU):c.push(vU(n.extraArgument))),Jt.NODE_ENV!=="production"){if(i){let d={};uS(i)||(d=i),c.unshift(CU(d))}if(o){let d={};uS(o)||(d=o),c.push(OU(d))}if(s){let d={};uS(s)||(d=s),c.unshift(wU(d))}}return c},RU="RTK_autoBatch",L9=e=>t=>{setTimeout(t,e)},_U=(e={type:"raf"})=>t=>(...n)=>{const i=t(...n);let o=!0,s=!1,c=!1;const d=new Set,h=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:L9(10):e.type==="callback"?e.queueNotification:L9(e.timeout),y=()=>{c=!1,s&&(s=!1,d.forEach(v=>v()))};return Object.assign({},i,{subscribe(v){const S=()=>o&&v(),T=i.subscribe(S);return d.add(v),()=>{T(),d.delete(v)}},dispatch(v){var S;try{return o=!((S=v==null?void 0:v.meta)!=null&&S[RU]),s=!o,s&&(c||(c=!0,h(y))),i.dispatch(v)}finally{o=!0}}})},DU=e=>function(n){const{autoBatch:i=!0}=n??{};let o=new _9(e);return i&&o.push(_U(typeof i=="object"?i:void 0)),o};function NU(e){const t=MU(),{reducer:n=void 0,middleware:i,devTools:o=!0,duplicateMiddlewareCheck:s=!0,preloadedState:c=void 0,enhancers:d=void 0}=e||{};let h;if(typeof n=="function")h=n;else if(bv(n))h=BP(n);else throw new Error(Jt.NODE_ENV==="production"?Tr(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(Jt.NODE_ENV!=="production"&&i&&typeof i!="function")throw new Error(Jt.NODE_ENV==="production"?Tr(2):"`middleware` field must be a callback");let y;if(typeof i=="function"){if(y=i(t),Jt.NODE_ENV!=="production"&&!Array.isArray(y))throw new Error(Jt.NODE_ENV==="production"?Tr(3):"when using a middleware builder function, an array of middleware must be returned")}else y=t();if(Jt.NODE_ENV!=="production"&&y.some(R=>typeof R!="function"))throw new Error(Jt.NODE_ENV==="production"?Tr(4):"each middleware provided to configureStore must be a function");if(Jt.NODE_ENV!=="production"&&s){let R=new Set;y.forEach(_=>{if(R.has(_))throw new Error(Jt.NODE_ENV==="production"?Tr(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");R.add(_)})}let v=H5;o&&(v=bU({trace:Jt.NODE_ENV!=="production",...typeof o=="object"&&o}));const S=jP(...y),T=DU(S);if(Jt.NODE_ENV!=="production"&&d&&typeof d!="function")throw new Error(Jt.NODE_ENV==="production"?Tr(5):"`enhancers` field must be a callback");let w=typeof d=="function"?d(T):T();if(Jt.NODE_ENV!=="production"&&!Array.isArray(w))throw new Error(Jt.NODE_ENV==="production"?Tr(6):"`enhancers` callback must return an array");if(Jt.NODE_ENV!=="production"&&w.some(R=>typeof R!="function"))throw new Error(Jt.NODE_ENV==="production"?Tr(7):"each enhancer provided to configureStore must be a function");Jt.NODE_ENV!=="production"&&y.length&&!w.includes(S)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const C=v(...w);return t9(h,c,C)}function V9(e){const t={},n=[];let i;const o={addCase(s,c){if(Jt.NODE_ENV!=="production"){if(n.length>0)throw new Error(Jt.NODE_ENV==="production"?Tr(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(i)throw new Error(Jt.NODE_ENV==="production"?Tr(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const d=typeof s=="string"?s:s.type;if(!d)throw new Error(Jt.NODE_ENV==="production"?Tr(28):"`builder.addCase` cannot be called with an empty action type");if(d in t)throw new Error(Jt.NODE_ENV==="production"?Tr(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${d}'`);return t[d]=c,o},addAsyncThunk(s,c){if(Jt.NODE_ENV!=="production"&&i)throw new Error(Jt.NODE_ENV==="production"?Tr(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return c.pending&&(t[s.pending.type]=c.pending),c.rejected&&(t[s.rejected.type]=c.rejected),c.fulfilled&&(t[s.fulfilled.type]=c.fulfilled),c.settled&&n.push({matcher:s.settled,reducer:c.settled}),o},addMatcher(s,c){if(Jt.NODE_ENV!=="production"&&i)throw new Error(Jt.NODE_ENV==="production"?Tr(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:s,reducer:c}),o},addDefaultCase(s){if(Jt.NODE_ENV!=="production"&&i)throw new Error(Jt.NODE_ENV==="production"?Tr(31):"`builder.addDefaultCase` can only be called once");return i=s,o}};return e(o),[t,n,i]}function kU(e){return typeof e=="function"}function zU(e,t){if(Jt.NODE_ENV!=="production"&&typeof t=="object")throw new Error(Jt.NODE_ENV==="production"?Tr(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[n,i,o]=V9(t),s;if(kU(e))s=()=>D9(e());else{const d=D9(e);s=()=>d}function c(d=s(),h){let y=[n[h.type],...i.filter(({matcher:v})=>v(h)).map(({reducer:v})=>v)];return y.filter(v=>!!v).length===0&&(y=[o]),y.reduce((v,S)=>{if(S)if(Qc(v)){const w=S(v,h);return w===void 0?v:w}else{if(iu(v))return E9(v,T=>S(T,h));{const T=S(v,h);if(T===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return T}}return v},d)}return c.getInitialState=s,c}var IU=Symbol.for("rtk-slice-createasyncthunk");function LU(e,t){return`${e}/${t}`}function VU({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[IU];return function(o){const{name:s,reducerPath:c=s}=o;if(!s)throw new Error(Jt.NODE_ENV==="production"?Tr(11):"`name` is a required option for createSlice");typeof process<"u"&&Jt.NODE_ENV==="development"&&o.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const d=(typeof o.reducers=="function"?o.reducers(jU()):o.reducers)||{},h=Object.keys(d),y={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},v={addCase(V,L){const U=typeof V=="string"?V:V.type;if(!U)throw new Error(Jt.NODE_ENV==="production"?Tr(12):"`context.addCase` cannot be called with an empty action type");if(U in y.sliceCaseReducersByType)throw new Error(Jt.NODE_ENV==="production"?Tr(13):"`context.addCase` cannot be called with two reducers for the same action type: "+U);return y.sliceCaseReducersByType[U]=L,v},addMatcher(V,L){return y.sliceMatchers.push({matcher:V,reducer:L}),v},exposeAction(V,L){return y.actionCreators[V]=L,v},exposeCaseReducer(V,L){return y.sliceCaseReducersByName[V]=L,v}};h.forEach(V=>{const L=d[V],U={reducerName:V,type:LU(s,V),createNotation:typeof o.reducers=="function"};UU(L)?HU(U,L,v,t):PU(U,L,v)});function S(){if(Jt.NODE_ENV!=="production"&&typeof o.extraReducers=="object")throw new Error(Jt.NODE_ENV==="production"?Tr(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[V={},L=[],U=void 0]=typeof o.extraReducers=="function"?V9(o.extraReducers):[o.extraReducers],X={...V,...y.sliceCaseReducersByType};return zU(o.initialState,se=>{for(let ce in X)se.addCase(ce,X[ce]);for(let ce of y.sliceMatchers)se.addMatcher(ce.matcher,ce.reducer);for(let ce of L)se.addMatcher(ce.matcher,ce.reducer);U&&se.addDefaultCase(U)})}const T=V=>V,w=new Map,C=new WeakMap;let R;function _(V,L){return R||(R=S()),R(V,L)}function N(){return R||(R=S()),R.getInitialState()}function z(V,L=!1){function U(se){let ce=se[V];if(typeof ce>"u"){if(L)ce=sS(C,U,N);else if(Jt.NODE_ENV!=="production")throw new Error(Jt.NODE_ENV==="production"?Tr(15):"selectSlice returned undefined for an uninjected slice reducer")}return ce}function X(se=T){const ce=sS(w,L,()=>new WeakMap);return sS(ce,se,()=>{const ie={};for(const[ue,$]of Object.entries(o.selectors??{}))ie[ue]=BU($,se,()=>sS(C,se,N),L);return ie})}return{reducerPath:V,getSelectors:X,get selectors(){return X(U)},selectSlice:U}}const B={name:s,reducer:_,actions:y.actionCreators,caseReducers:y.sliceCaseReducersByName,getInitialState:N,...z(c),injectInto(V,{reducerPath:L,...U}={}){const X=L??c;return V.inject({reducerPath:X,reducer:_},U),{...B,...z(X,!0)}}};return B}}function BU(e,t,n,i){function o(s,...c){let d=t(s);if(typeof d>"u"){if(i)d=n();else if(Jt.NODE_ENV!=="production")throw new Error(Jt.NODE_ENV==="production"?Tr(16):"selectState returned undefined for an uninjected slice reducer")}return e(d,...c)}return o.unwrapped=e,o}var Gu=VU();function jU(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function PU({type:e,reducerName:t,createNotation:n},i,o){let s,c;if("reducer"in i){if(n&&!$U(i))throw new Error(Jt.NODE_ENV==="production"?Tr(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");s=i.reducer,c=i.prepare}else s=i;o.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,c?M9(e,c):M9(e))}function UU(e){return e._reducerDefinitionType==="asyncThunk"}function $U(e){return e._reducerDefinitionType==="reducerWithPrepare"}function HU({type:e,reducerName:t},n,i,o){if(!o)throw new Error(Jt.NODE_ENV==="production"?Tr(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:s,fulfilled:c,pending:d,rejected:h,settled:y,options:v}=n,S=o(e,s,v);i.exposeAction(t,S),c&&i.addCase(S.fulfilled,c),d&&i.addCase(S.pending,d),h&&i.addCase(S.rejected,h),y&&i.addMatcher(S.settled,y),i.exposeCaseReducer(t,{fulfilled:c||cS,pending:d||cS,rejected:h||cS,settled:y||cS})}function cS(){}function Tr(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}class Fu{constructor(t){P(this,"store");P(this,"disposables");this.store=t,this.disposables=new Array}dispose(){this.disposables.forEach(t=>t.dispose()),this.disposables.length=0}}const B9={value:"",index:-1},j9=Gu({name:"braille",initialState:B9,reducers:{update(e,t){return t.payload},reset(){return B9}}}),{update:qU,reset:GU}=j9.actions;class FU extends Fu{constructor(n,i){super(n);P(this,"brailleService");this.brailleService=i,this.registerListener()}dispose(){super.dispose(),this.store.dispatch(GU())}registerListener(){this.disposables.push(this.brailleService.onChange(n=>{this.store.dispatch(qU(n))}))}get state(){return this.store.getState().braille}moveToIndex(n){this.brailleService.moveToIndex(n)}update(n){this.brailleService.update(n)}toggle(n){this.brailleService.toggle(n)}}const YU=j9.reducer,Tv={OPENAI:{default:"gpt-4o",options:["gpt-4o","gpt-4o-mini","gpt-4.1","o1-mini","o3","o4-mini"],labels:{"gpt-4o":"GPT-4o","gpt-4o-mini":"GPT-4o Mini","gpt-4.1":"GPT-4.1","o1-mini":"o1-mini",o3:"o3","o4-mini":"o4-mini"}},ANTHROPIC_CLAUDE:{default:"claude-3-7-sonnet-latest",options:["claude-3-5-haiku-latest","claude-3-5-sonnet-latest","claude-3-7-sonnet-latest"],labels:{"claude-3-5-haiku-latest":"Claude 3.5 Haiku","claude-3-5-sonnet-latest":"Claude 3.5 Sonnet","claude-3-7-sonnet-latest":"Claude 3.7 Sonnet"}},GOOGLE_GEMINI:{default:"gemini-2.0-flash",options:["gemini-2.0-flash","gemini-2.0-flash-lite","gemini-2.5-flash-preview-04-17","gemini-2.5-pro-preview-05-06"],labels:{"gemini-2.0-flash":"Gemini 2.0 Flash","gemini-2.0-flash-lite":"Gemini 2.0 Flash Lite","gemini-2.5-flash-preview-04-17":"Gemini 2.5 Flash Preview","gemini-2.5-pro-preview-05-06":"Gemini 2.5 Pro Preview"}}},P9={messages:[],suggestions:[]};function U9(e){switch(e){case"OPENAI":return"OpenAI";case"ANTHROPIC_CLAUDE":return"Anthropic Claude";case"GOOGLE_GEMINI":return"Google Gemini";default:return"AI Assistant"}}const $9=Gu({name:"chat",initialState:P9,reducers:{addUserMessage:(e,t)=>{e.messages.push({id:`msg-${Date.now()}`,text:t.payload.text,isUser:!0,timestamp:t.payload.timestamp,status:"SUCCESS"})},addSystemMessage:(e,t)=>{e.messages.push({id:`system-${Date.now()}`,text:t.payload.text,isUser:!1,timestamp:t.payload.timestamp,status:"SUCCESS",modelSelections:t.payload.modelSelections,isWelcomeMessage:t.payload.isWelcomeMessage})},addPendingResponse:(e,t)=>{e.messages.push({id:`resp-${Date.now()}-${t.payload.model}`,text:"Processing request...",isUser:!1,model:t.payload.model,timestamp:t.payload.timestamp,status:"PENDING"})},updateResponse:(e,t)=>{const n=e.messages.find(i=>i.model===t.payload.model&&i.timestamp===t.payload.timestamp);n&&(n.text=t.payload.data,n.status="SUCCESS")},updateError:(e,t)=>{const n=e.messages.find(i=>i.model===t.payload.model&&i.timestamp===t.payload.timestamp);n&&(n.text=`Error: ${t.payload.error}`,n.status="FAILED")},updateSuggestions:(e,t)=>{e.suggestions=t.payload},updateWelcomeMessage:(e,t)=>{const n=e.messages.findIndex(i=>i.isWelcomeMessage);n!==-1&&(e.messages[n].text=t.payload.text,t.payload.modelSelections&&(e.messages[n].modelSelections=t.payload.modelSelections))},reset(){return P9}}}),{addUserMessage:XU,addSystemMessage:WU,addPendingResponse:QU,updateResponse:KU,updateError:H9,updateSuggestions:ZU,updateWelcomeMessage:JU,reset:q9}=$9.actions;class e$ extends Fu{constructor(n,i,o){super(n);P(this,"chatService");P(this,"audioService");this.chatService=i,this.audioService=o,this.loadInitialMessage()}dispose(){super.dispose(),this.store.dispatch(q9())}get state(){return this.snapshot.chat}get snapshot(){return this.store.getState()}get canSend(){const{llm:n}=this.snapshot.settings;return Object.values(n.models).some(i=>i.enabled&&i.apiKey.trim().length>0)}toggle(){this.chatService.toggle()}getEnabledModelsData(){const n=this.snapshot.settings.llm.models,i=Object.entries(n).filter(([s,c])=>c.enabled&&c.apiKey.trim().length>0).map(([s,c])=>{var v;const d=(v=Tv[s])==null?void 0:v.labels,h=(d==null?void 0:d[c.version])||c.version;return`${U9(s)} (${h})`}),o=Object.entries(n).filter(([s,c])=>c.enabled&&c.apiKey.trim().length>0).map(([s,c])=>({modelKey:s,name:U9(s),version:c.version}));return{enabledModels:i,modelSelections:o}}loadInitialMessage(){const n=new Date().toISOString(),{enabledModels:i,modelSelections:o}=this.getEnabledModelsData(),s=i.length>0?`Welcome to the Chart Assistant. You can select and switch between different AI models using the dropdowns below. Currently enabled: ${i.join(", ")}.`:"No agents are enabled. Please enable at least one agent and provide API keys in the settings page.";this.store.dispatch(WU({text:s,timestamp:n,modelSelections:o,isWelcomeMessage:!0}))}refreshInitialMessage(){this.store.dispatch(q9()),this.loadInitialMessage()}updateWelcomeMessage(){const{enabledModels:n,modelSelections:i}=this.getEnabledModelsData(),o=n.length>0?`Welcome to the Chart Assistant. You can select and switch between different AI models using the dropdowns below. Currently enabled: ${n.join(", ")}.`:"No agents are enabled. Please enable at least one agent and provide API keys in the settings page.";this.store.dispatch(JU({text:o,modelSelections:i}))}generateSuggestions(){try{const n=this.state.messages[this.state.messages.length-1];if(!n||n.isUser)return[];const{llm:i}=this.snapshot.settings,o=i.expertiseLevel,s=Date.now(),c=[{id:`suggestion-${s}-1`,text:"Can you explain that in more detail?",type:"clarification"},{id:`suggestion-${s}-2`,text:"What can you say about the current datapoint?",type:"analysis"},{id:`suggestion-${s}-3`,text:"How does this compare to other data points?",type:"analysis"}];return o==="advanced"&&c.push({id:`suggestion-${s}-4`,text:"Can you perform a statistical analysis of this data?",type:"analysis"},{id:`suggestion-${s}-5`,text:"What are the potential outliers in this dataset?",type:"analysis"}),c}catch(n){return console.error("Error generating suggestions:",n),[]}}updateSuggestions(){const n=this.generateSuggestions();this.store.dispatch(ZU(n))}isValidExpertiseLevel(n){return["basic","intermediate","advanced"].includes(n)}async sendMessage(n){const{llm:i}=this.snapshot.settings,o=new Date().toISOString();this.store.dispatch(XU({text:n,timestamp:o}));const s=Object.keys(i.models).filter(c=>i.models[c].enabled&&i.models[c].apiKey.trim().length>0);await Promise.all(s.map(async c=>{const d=this.audioService.playWaitingTone();try{this.store.dispatch(QU({model:c,timestamp:o}));const h=i.models[c],y=i.customExpertise&&["basic","intermediate","advanced"].includes(i.customExpertise)?i.customExpertise:i.expertiseLevel,v=await this.chatService.sendMessage(c,{message:n,customInstruction:i.customInstruction,expertise:y,apiKey:h.apiKey});this.audioService.stop(d),v.error?this.store.dispatch(H9({model:c,error:v.error,timestamp:o})):(this.store.dispatch(KU({model:c,data:v.data,timestamp:o})),this.audioService.playCompleteTone(),this.updateSuggestions())}catch(h){this.audioService.stop(d),this.store.dispatch(H9({model:c,error:h instanceof Error?h.message:"Error processing request",timestamp:o}))}}))}}const t$=$9.reducer,G9=Gu({name:"commandPalette",initialState:{visible:!1,commands:[],selectedIndex:-1,search:""},reducers:{show(e,t){e.visible=!0,e.commands=t.payload.commands,e.selectedIndex=-1,e.search=""},hide(e){e.visible=!1,e.commands=[],e.selectedIndex=-1,e.search=""},updateSelectedIndex(e,t){e.selectedIndex=t.payload},updateSearch(e,t){e.search=t.payload,e.selectedIndex=-1}}}),{show:n$,hide:F9,updateSelectedIndex:S2,updateSearch:r$}=G9.actions;class i$ extends Fu{constructor(n,i){super(n);P(this,"commandPaletteService");this.commandPaletteService=i}dispose(){super.dispose(),this.store.dispatch(F9())}get state(){return this.store.getState().commandPalette}toggle(){this.state.visible?this.hide():this.show()}show(){const n=t2.TRACE,i=Object.entries(n).filter(([o])=>!o.startsWith("ALLOW_")).map(([o,s])=>({key:s,description:this.toTitleCase(o.replace(/_/g," ").toLowerCase()),commandKey:o}));this.store.dispatch(n$({commands:i,scope:dn.TRACE})),this.commandPaletteService.toggle()}hide(){this.store.dispatch(F9()),this.commandPaletteService.returnToTraceScope()}moveUp(){const n=this.state;if(n.commands.length>0){if(n.selectedIndex===0)return;const i=n.selectedIndex>=0?n.selectedIndex:n.commands.length-1,o=Math.max(0,i-1);this.store.dispatch(S2(o))}}moveDown(){const n=this.state;if(n.commands.length>0){const i=n.selectedIndex>=0?n.selectedIndex:-1,o=Math.min(n.commands.length-1,i+1);this.store.dispatch(S2(o))}}moveToSearch(){this.store.dispatch(S2(-1))}selectCurrent(){const n=this.state;n.commands.length>0&&n.selectedIndex}updateSearch(n){this.store.dispatch(r$(n))}executeCommand(n){this.hide()}handleCommandSelect(n){this.hide()}toTitleCase(n){return n.replace(/\w\S*/g,i=>i.charAt(0).toUpperCase()+i.slice(1))}}const a$=G9.reducer,Y9=Gu({name:"display",initialState:{focus:null,tooltip:{visible:!1,value:""}},reducers:{hideTooltip(e){e.tooltip={...e.tooltip,visible:!1,value:""}},showTooltip(e,t){e.tooltip={...e.tooltip,visible:!0,value:t.payload}},updateFocus(e,t){e.focus=t.payload},clearFocus(e){e.focus=null}}}),{hideTooltip:o$,showTooltip:l$,updateFocus:s$,clearFocus:u$}=Y9.actions;class c$ extends Fu{constructor(n,i){super(n);P(this,"displayService");this.displayService=i,this.registerListeners(),this.store.dispatch(o$())}dispose(){this.store.dispatch(u$()),this.store.dispatch(l$(this.displayService.getInstruction())),super.dispose()}registerListeners(){this.disposables.push(this.displayService.onChange(n=>{this.store.dispatch(s$(n.value))}))}get state(){return this.store.getState().display}}const f$=Y9.reducer,X9=Gu({name:"goToExtrema",initialState:{visible:!1,targets:[],selectedIndex:0,description:""},reducers:{show(e,t){return{visible:!0,targets:t.payload.targets,selectedIndex:0,description:t.payload.description}},hide(){return{visible:!1,targets:[],selectedIndex:0,description:""}},updateSelectedIndex(e,t){return{...e,selectedIndex:t.payload}}}}),{show:d$,hide:E2,updateSelectedIndex:W9}=X9.actions;class h$ extends Fu{constructor(n,i,o,s){super(n);P(this,"goToExtremaService");P(this,"context");P(this,"formatter");this.goToExtremaService=i,this.context=o,this.formatter=s}dispose(){super.dispose(),this.store.dispatch(E2())}get state(){return this.store.getState().goToExtrema}toggle(n){if(n.empty)return;const i=this.context.active;if(i&&this.goToExtremaService.isExtremaNavigable(i)){const o=i.getExtremaTargets(),s=this.formatTargetLabels(o,n.layerId),c=this.generateDescription(n.traceType);this.store.dispatch(d$({targets:s,description:c})),this.goToExtremaService.toggle(n)}}hide(){this.store.dispatch(E2()),this.goToExtremaService.returnToTraceScope()}get activeContext(){return this.context}moveUp(){const n=this.state;if(n.targets.length>0){const i=n.selectedIndex||0,o=Math.max(0,i-1);this.store.dispatch(W9(o))}}moveDown(){const n=this.state;if(n.targets.length>0){const i=n.targets.length,o=n.selectedIndex||0,s=Math.min(i,o+1);this.store.dispatch(W9(s))}}selectCurrent(){const n=this.state;if(n.targets.length>0&&n.selectedIndex!==void 0){const i=n.targets[n.selectedIndex];i&&this.handleTargetSelect(i)}}handleTargetSelect(n){const i=this.context.active;if(i&&this.goToExtremaService.isExtremaNavigable(i))try{this.store.dispatch(E2()),this.goToExtremaService.returnToTraceScope(),i.navigateToExtrema(n)}catch{this.goToExtremaService.returnToTraceScope()}else this.goToExtremaService.returnToTraceScope()}formatTargetLabels(n,i){return!this.formatter||!this.formatter.hasCustomFormatter(i,"x")?n:n.map(o=>{if(o.xValue===void 0)return o;const s=this.formatter.formatSingleValue(o.xValue,i,"x"),c=String(o.xValue);return s===c?o:{...o,label:o.label.replaceAll(c,s)}})}generateDescription(n){return`Navigate to points of interest within the current ${n}`}getAvailableXValues(){const n=this.context.active;return n&&this.supportsXValueNavigation(n)?n.getAvailableXValues():[]}isExtremaNavigable(n){return this.goToExtremaService.isExtremaNavigable(n)}supportsXValueNavigation(n){return n!==null&&typeof n=="object"&&"getAvailableXValues"in n&&typeof n.getAvailableXValues=="function"}}const p$=X9.reducer,Q9={items:[]},K9=Gu({name:"help",initialState:Q9,reducers:{setHelpItems(e,t){e.items=t.payload},reset(){return Q9}}}),{setHelpItems:m$,reset:g$}=K9.actions;class y$ extends Fu{constructor(n,i){super(n);P(this,"helpService");this.helpService=i}toggle(){const n=this.helpService.getMenuItems();this.store.dispatch(m$(n)),this.helpService.toggle()}dispose(){super.dispose(),this.store.dispatch(g$())}get state(){return this.store.getState().help}}const v$=K9.reducer;class b${constructor(){P(this,"viewModels",new Map)}register(t,n){this.viewModels.set(t,n)}get(t){if(!this.viewModels.has(t))throw new Error(`Error while loading view model for ${t}`);return this.viewModels.get(t)}dispose(){this.viewModels.clear()}}const Z9={value:""},J9=Gu({name:"review",initialState:Z9,reducers:{update(e,t){e.value=t.payload},reset(){return Z9}}}),{update:x$,reset:S$}=J9.actions;class E$ extends Fu{constructor(n,i){super(n);P(this,"reviewService");this.reviewService=i,this.registerListener()}dispose(){super.dispose(),this.store.dispatch(S$())}registerListener(){this.disposables.push(this.reviewService.onChange(n=>{this.store.dispatch(x$(n.value))}))}get state(){return this.store.getState().review}toggle(n){this.reviewService.toggle(n)}}const w$=J9.reducer,eO=Gu({name:"rotorNavigation",initialState:{rotor_value:""},reducers:{show(){return{rotor_value:""}},setValue(e,t){e.rotor_value=t.payload}}}),{setValue:Um}=eO.actions;class T$ extends Fu{constructor(n,i){super(n);P(this,"rotorService");this.rotorService=i}get state(){return this.store.getState().rotor}moveToNextNavUnit(){const n=this.rotorService.moveToNextRotorUnit();this.store.dispatch(Um(`${n}`))}moveToPrevNavUnit(){const n=this.rotorService.moveToPrevRotorUnit();this.store.dispatch(Um(`${n}`))}moveUp(){this.store.dispatch(Um(this.rotorService.moveUp()))}moveLeft(){this.store.dispatch(Um(this.rotorService.moveLeft()))}moveDown(){this.store.dispatch(Um(this.rotorService.moveDown()))}moveRight(){this.store.dispatch(Um(this.rotorService.moveRight()))}}const A$=eO.reducer,tO={general:{volume:50,highlightColor:"#03c809",highContrastMode:!1,highContrastLevels:2,highContrastLightColor:"#ffffff",highContrastDarkColor:"#000000",brailleDisplaySize:32,minFrequency:200,maxFrequency:1e3,autoplayDuration:4e3,ariaMode:"assertive",hoverMode:"pointermove"},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"}}}},nO=Gu({name:"settings",initialState:tO,reducers:{update:(e,t)=>({...e,...t.payload}),reset:()=>tO}}),{update:fS,reset:C$}=nO.actions;class O$ extends Fu{constructor(n,i){super(n);P(this,"settingsService");this.settingsService=i,this.load()}dispose(){super.dispose(),this.store.dispatch(C$())}get state(){return this.store.getState().settings}load(){const n=this.settingsService.loadSettings();this.store.dispatch(fS(n))}saveAndClose(n){this.settingsService.saveSettings(n),this.store.dispatch(fS(n)),this.toggle()}saveSettings(n){this.settingsService.saveSettings(n),this.store.dispatch(fS(n))}reset(){const n=this.settingsService.resetSettings();this.store.dispatch(fS(n))}toggle(){this.settingsService.toggle()}}const M$=nO.reducer,rO={enabled:!0,announce:!0,value:"",revision:0,message:null},iO=Gu({name:"text",initialState:rO,reducers:{update(e,t){e.value=t.payload,e.revision+=1},announceText(e,t){e.announce=t.payload},toggle(e,t){e.enabled=t.payload},notify(e,t){e.message=t.payload},clearMessage(e){e.message=null},reset(){return rO}}}),{update:R$,announceText:_$,toggle:D$,notify:N$,clearMessage:k$,reset:z$}=iO.actions;class I$ extends Fu{constructor(n,i,o,s,c){super(n);P(this,"audioService");P(this,"textService");this.audioService=c,this.textService=i,this.registerListeners(o,s)}dispose(){super.dispose(),this.store.dispatch(z$())}registerListeners(n,i){this.disposables.push(this.textService.onChange(o=>{this.update(o.value)})),this.disposables.push(this.textService.onNavigation(o=>{o.type==="first_navigation"&&this.setAnnounce(!0)})),this.disposables.push(n.onChange(o=>{this.notify(o.value)})),this.disposables.push(i.onChange(o=>{switch(o.type){case"start":this.setAnnounce(!1);break;case"stop":this.setAnnounce(!0);break}}))}get state(){return this.store.getState().text}toggle(){const n=this.textService.toggle();this.store.dispatch(D$(n))}update(n){const i=this.textService.format(n);this.store.dispatch(R$(i)),this.store.dispatch(k$())}notify(n){this.store.dispatch(N$(n))}setAnnounce(n){this.store.dispatch(_$(n))}warnIfTextOff(){return this.textService.isOff()?(this.notify("Text mode is off. To enable, press the T key."),this.audioService.playWarningTone(),!0):!1}}const L$=iO.reducer;function V$(e){const t=j$(e),n=P$(e,t),i=document.querySelectorAll('g[id^="axes_"]').length;if(n.length===0)return q$(e,i,t);const o=U$(n),s=$$(o),c=o[0].row,d=H$(n,e.length);return{visualOrderMap:s,topLeftRow:c,invertVertical:d,totalAxesCount:i,axesElements:t}}function B$(e,t){if(e){const n=e.closest('g[id^="axes_"]');if(n)return n}if(t){const n=document.querySelector(t);if(n){const i=n.closest('g[id^="axes_"]');if(i)return i}}return null}function j$(e){const t=new Map;for(let n=0;n<e.length;n++)for(let i=0;i<e[n].length;i++){const o=e[n][i],s=B$(o.getHighlightElement(),o.getLayerSelector());t.set(`${n},${i}`,s)}return t}function P$(e,t){const n=[];for(let i=0;i<e.length;i++)for(let o=0;o<e[i].length;o++){const s=t.get(`${i},${o}`);if(s){const c=s.getBoundingClientRect();n.push({row:i,col:o,y:c.top,x:c.left})}}return n}function U$(e){return[...e].sort((t,n)=>t.y-n.y||t.x-n.x)}function $$(e){const t=new Map;for(let n=0;n<e.length;n++)t.set(`${e[n].row},${e[n].col}`,n+1);return t}function H$(e,t){if(t<=1)return!1;const n=e.find(o=>o.row===0),i=e.find(o=>o.row===1);return n&&i?n.y<i.y:!1}function q$(e,t,n){const i=new Map;let o=1;for(let s=0;s<e.length;s++)for(let c=0;c<e[s].length;c++)i.set(`${s},${c}`,o++);return{visualOrderMap:i,topLeftRow:0,invertVertical:!1,totalAxesCount:t,axesElements:n}}class G${constructor(t,n,i){P(this,"figure");P(this,"context");P(this,"displayService");P(this,"notificationService");P(this,"settingsService");P(this,"formatterService");P(this,"audioService");P(this,"brailleService");P(this,"goToExtremaService");P(this,"textService");P(this,"reviewService");P(this,"rotorNavigationService");P(this,"autoplayService");P(this,"highContrastService");P(this,"highlightService");P(this,"helpService");P(this,"chatService");P(this,"textViewModel");P(this,"brailleViewModel");P(this,"goToExtremaViewModel");P(this,"reviewViewModel");P(this,"displayViewModel");P(this,"helpViewModel");P(this,"chatViewModel");P(this,"settingsViewModel");P(this,"rotorNavigationViewModel");P(this,"commandPaletteViewModel");P(this,"keybinding");P(this,"mousebinding");P(this,"commandExecutor");P(this,"viewModelRegistry");this.viewModelRegistry=new b$,this.figure=new _B(t),this.figure.applyLayout(V$(this.figure.subplots)),this.context=new rB(this.figure),this.notificationService=new wP,this.formatterService=new vP(t),this.textService=new RP(this.notificationService,this.formatterService),this.displayService=new yP(this.context,n,this.textService),this.settingsService=new OP(new MP,this.displayService),this.audioService=new LB(this.notificationService,this.settingsService,this.context.state),this.brailleService=new HB(this.context,this.notificationService,this.displayService),this.goToExtremaService=new bP(this.context,this.displayService),this.reviewService=new TP(this.notificationService,this.displayService,this.textService),this.autoplayService=new PB(this.context,this.notificationService,this.settingsService),this.highContrastService=new SP(this.settingsService,this.notificationService,this.displayService,this.figure,this.context),this.highlightService=new EP(this.settingsService),this.helpService=new xP(this.context,this.displayService),this.chatService=new JB(this.displayService,this.textService,t),this.textViewModel=new I$(i,this.textService,this.notificationService,this.autoplayService,this.audioService),this.brailleViewModel=new FU(i,this.brailleService),this.goToExtremaViewModel=new h$(i,this.goToExtremaService,this.context,this.formatterService),this.reviewViewModel=new E$(i,this.reviewService),this.displayViewModel=new c$(i,this.displayService),this.helpViewModel=new y$(i,this.helpService),this.settingsViewModel=new O$(i,this.settingsService),this.rotorNavigationService=new AP(this.context,this.textService),this.rotorNavigationViewModel=new T$(i,this.rotorNavigationService),this.chatViewModel=new e$(i,this.chatService,this.audioService);const o=new mP(this.context,this.displayService);this.commandPaletteViewModel=new i$(i,o),this.keybinding=new dP({context:this.context,audioService:this.audioService,autoplayService:this.autoplayService,displayService:this.displayService,highContrastService:this.highContrastService,highlightService:this.highlightService,rotorNavigationService:this.rotorNavigationService,settingsService:this.settingsService,textService:this.textService,brailleViewModel:this.brailleViewModel,chatViewModel:this.chatViewModel,commandPaletteViewModel:this.commandPaletteViewModel,goToExtremaViewModel:this.goToExtremaViewModel,helpViewModel:this.helpViewModel,reviewViewModel:this.reviewViewModel,settingsViewModel:this.settingsViewModel,textViewModel:this.textViewModel,rotorNavigationViewModel:this.rotorNavigationViewModel}),this.mousebinding=new hP({context:this.context,audioService:this.audioService,autoplayService:this.autoplayService,displayService:this.displayService,highContrastService:this.highContrastService,highlightService:this.highlightService,rotorNavigationService:this.rotorNavigationService,settingsService:this.settingsService,textService:this.textService,brailleViewModel:this.brailleViewModel,chatViewModel:this.chatViewModel,commandPaletteViewModel:this.commandPaletteViewModel,goToExtremaViewModel:this.goToExtremaViewModel,helpViewModel:this.helpViewModel,reviewViewModel:this.reviewViewModel,settingsViewModel:this.settingsViewModel,textViewModel:this.textViewModel,rotorNavigationViewModel:this.rotorNavigationViewModel},this.settingsService,this.displayService),this.commandExecutor=new pP({context:this.context,audioService:this.audioService,autoplayService:this.autoplayService,displayService:this.displayService,highContrastService:this.highContrastService,highlightService:this.highlightService,rotorNavigationService:this.rotorNavigationService,settingsService:this.settingsService,textService:this.textService,brailleViewModel:this.brailleViewModel,chatViewModel:this.chatViewModel,commandPaletteViewModel:this.commandPaletteViewModel,goToExtremaViewModel:this.goToExtremaViewModel,helpViewModel:this.helpViewModel,reviewViewModel:this.reviewViewModel,settingsViewModel:this.settingsViewModel,textViewModel:this.textViewModel,rotorNavigationViewModel:this.rotorNavigationViewModel},this.context.scope),this.registerViewModels(),this.registerObservers(),this.keybinding.register(this.context.scope),this.mousebinding.registerEvents()}announceInitialInstruction(){const t=this.displayService.getInstruction(!1);this.textViewModel.update(t)}getInitialInstruction(){return this.displayService.getInstruction(!1)}showInitialInstructionInText(){const t=this.displayService.getInstruction(!1);this.textViewModel.setAnnounce(!1),this.textViewModel.update(t)}initializeHighContrast(){this.highContrastService.initializeHighContrast()}suspendHighContrast(){this.highContrastService.suspendHighContrast()}dispose(){this.keybinding.unregister(),this.mousebinding.dispose(),this.commandExecutor.dispose(),this.viewModelRegistry.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.rotorNavigationViewModel.dispose(),this.highContrastService.dispose(),this.highlightService.dispose(),this.autoplayService.dispose(),this.textService.dispose(),this.reviewService.dispose(),this.brailleService.dispose(),this.audioService.dispose(),this.formatterService.dispose(),this.settingsService.dispose(),this.notificationService.dispose(),this.displayService.dispose(),this.context.dispose(),this.figure.dispose()}getContextValue(){return{viewModelRegistry:this.viewModelRegistry,commandExecutor:this.commandExecutor}}registerViewModels(){this.viewModelRegistry.register("text",this.textViewModel),this.viewModelRegistry.register("braille",this.brailleViewModel),this.viewModelRegistry.register("goToExtrema",this.goToExtremaViewModel),this.viewModelRegistry.register("review",this.reviewViewModel),this.viewModelRegistry.register("display",this.displayViewModel),this.viewModelRegistry.register("help",this.helpViewModel),this.viewModelRegistry.register("chat",this.chatViewModel),this.viewModelRegistry.register("settings",this.settingsViewModel),this.viewModelRegistry.register("commandPalette",this.commandPaletteViewModel),this.viewModelRegistry.register("commandExecutor",this.commandExecutor),this.viewModelRegistry.register("rotor",this.rotorNavigationViewModel)}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.audioService),n.addObserver(this.brailleService),n.addObserver(this.highlightService),n.traces.forEach(i=>i.forEach(o=>{o.addObserver(this.audioService),o.addObserver(this.brailleService),o.addObserver(this.textService),o.addObserver(this.reviewService),o.addObserver(this.highlightService)}))}))}}function F$(e,t){const n=G.useRef(null),i=G.useRef(null),o=G.useRef(null),s=G.useRef(!1),c=G.useRef(null),d=G.useRef(null),[h,y]=G.useState(null),v=G.useCallback(()=>{const _=n.current;if(!_)return null;const N=structuredClone(e);return new G$(N,_,t)},[e,t]),S=G.useRef(v);S.current=v;const T=G.useCallback(()=>{o.current&&(o.current.suspendHighContrast(),o.current.dispose(),o.current=null),y(null),s.current=!1},[]),w=G.useCallback(()=>{d.current&&(clearTimeout(d.current),d.current=null),c.current&&(clearTimeout(c.current),c.current=null),c.current=setTimeout(()=>{var _;if(c.current=null,!o.current){const N=S.current();if(!N)return;o.current=N,y(N.getContextValue()),N.initializeHighContrast()}s.current||(s.current=!0,(_=o.current)==null||_.showInitialInstructionInText())},0)},[]),C=G.useCallback(()=>{c.current&&(clearTimeout(c.current),c.current=null),d.current=setTimeout(()=>{d.current=null;const _=i.current;if(!_)return;const N=document.activeElement;_.contains(N)||T()},0)},[T]),R=G.useCallback(()=>{if(document.visibilityState==="visible"){if(!o.current)return;c.current&&(clearTimeout(c.current),c.current=null),d.current&&(clearTimeout(d.current),d.current=null),T();const _=S.current();if(!_)return;o.current=_,y(_.getContextValue()),_.initializeHighContrast(),s.current=!1}},[T]);return G.useEffect(()=>(document.addEventListener("visibilitychange",R),()=>{document.removeEventListener("visibilitychange",R)}),[R]),G.useEffect(()=>()=>{c.current&&clearTimeout(c.current),d.current&&clearTimeout(d.current),o.current&&(o.current.suspendHighContrast(),o.current.dispose(),o.current=null)},[]),{plotRef:n,figureRef:i,contextValue:h,onFocusIn:w,onFocusOut:C}}const Y$={braille:YU,chat:t$,commandPalette:a$,display:f$,goToExtrema:p$,help:v$,review:w$,settings:M$,text:L$,rotor:A$};function X$(){return NU({reducer:Y$})}const aO=G.createContext(null);function oO(){const e=G.useContext(aO);if(!e)throw new Error("useMaidrContext must be used within a MaidrContext.Provider. Ensure the component is rendered inside a <Maidr> component.");return e}var dS={exports:{}},w2={};/**
|
|
426
426
|
* @license React
|
|
427
427
|
* use-sync-external-store-with-selector.production.js
|
|
428
428
|
*
|
|
@@ -646,7 +646,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
646
646
|
`))}},[nt,hn,z,B,F]),Ve&&(z?be.length===0?Bt=null:Bt=be.reduce((Ne,We,wt)=>(Ne.push(We),wt<be.length-1&&Ne.push(", "),Ne),[]):Bt=Ze);let ut=Qe;!c&&Xe&&je&&(ut=st.clientWidth);let yt;typeof Z<"u"?yt=Z:yt=S?null:0;const gn=oe.id||(B?`mui-component-select-${B}`:void 0),kt={...t,variant:we,value:F,open:Mt,error:w},jt=hee(kt),Fn={...N.PaperProps,...typeof((cr=N.slotProps)==null?void 0:cr.paper)=="function"?N.slotProps.paper(kt):(J=N.slotProps)==null?void 0:J.paper},bn={...N.MenuListProps,...typeof((Oe=N.slotProps)==null?void 0:Oe.list)=="function"?N.slotProps.list(kt):(tt=N.slotProps)==null?void 0:tt.list},Fr=mh();return H.jsxs(G.Fragment,{children:[H.jsx(uee,{as:"div",ref:Re,tabIndex:yt,role:"combobox","aria-controls":Mt?Fr:void 0,"aria-disabled":S?"true":void 0,"aria-expanded":Mt?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[_,gn].filter(Boolean).join(" ")||void 0,"aria-describedby":i,"aria-required":Q?"true":void 0,"aria-invalid":w?"true":void 0,onKeyDown:At,onMouseDown:S||$?null:xt,onBlur:Rn,onFocus:X,...oe,ownerState:kt,className:St(oe.className,jt.select,h),id:gn,children:dee(Bt)?$_||($_=H.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Bt}),H.jsx(fee,{"aria-invalid":w,value:Array.isArray(F)?F.join(","):F,name:B,ref:Se,"aria-hidden":!0,onChange:mn,tabIndex:-1,disabled:S,className:jt.nativeInput,autoFocus:s,required:Q,...te,ownerState:kt}),H.jsx(cee,{as:C,className:jt.icon,ownerState:kt}),H.jsx(k_,{id:`menu-${B||""}`,anchorEl:st,open:Mt,onClose:Ut,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...N,slotProps:{...N.slotProps,list:{"aria-labelledby":_,role:"listbox","aria-multiselectable":z?"true":void 0,disableListWrap:!0,id:Fr,...bn},paper:{...Fn,style:{minWidth:ut,...Fn!=null?Fn.style:null}}},children:pt})]})});A3.NODE_ENV!=="production"&&(q_.propTypes={"aria-describedby":p.string,"aria-label":p.string,autoFocus:p.bool,autoWidth:p.bool,children:p.node,classes:p.object,className:p.string,defaultOpen:p.bool,defaultValue:p.any,disabled:p.bool,displayEmpty:p.bool,error:p.bool,IconComponent:p.elementType.isRequired,inputRef:ho,labelId:p.string,MenuProps:p.object,multiple:p.bool,name:p.string,onBlur:p.func,onChange:p.func,onClose:p.func,onFocus:p.func,onOpen:p.func,open:p.bool,readOnly:p.bool,renderValue:p.func,required:p.bool,SelectDisplayProps:p.object,tabIndex:p.oneOfType([p.number,p.string]),type:p.any,value:p.any,variant:p.oneOf(["standard","outlined","filled"])});var pee={};const mee=e=>{const{classes:t}=e,i=en({root:["root"]},U_,t);return{...t,...i}},W7={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Ea(e)&&e!=="variant"},gee=it(E3,W7)(""),yee=it(T3,W7)(""),vee=it(S3,W7)(""),xg=G.forwardRef(function(t,n){const i=ln({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:c={},className:d,defaultOpen:h=!1,displayEmpty:y=!1,IconComponent:v=RQ,id:S,input:T,inputProps:w,label:C,labelId:R,MenuProps:_,multiple:N=!1,native:z=!1,onClose:B,onOpen:V,open:L,renderValue:U,SelectDisplayProps:X,variant:se="outlined",...ce}=i,ie=z?V_:q_,ue=su(),$=zd({props:i,muiFormControl:ue,states:["variant","error"]}),le=$.variant||se,Q={...i,variant:le,classes:c},oe=mee(Q),{root:Z,...ae}=oe,de=T||{standard:H.jsx(gee,{ownerState:Q}),outlined:H.jsx(yee,{label:C,ownerState:Q}),filled:H.jsx(vee,{ownerState:Q})}[le],we=ri(n,dg(de));return H.jsx(G.Fragment,{children:G.cloneElement(de,{inputComponent:ie,inputProps:{children:s,error:$.error,IconComponent:v,variant:le,type:void 0,multiple:N,...z?{id:S}:{autoWidth:o,defaultOpen:h,displayEmpty:y,labelId:R,MenuProps:_,onClose:B,onOpen:V,open:L,renderValue:U,SelectDisplayProps:{id:S,...X}},...w,classes:w?Pa(ae,w.classes):ae,...T?T.props.inputProps:{}},...(N&&z||y)&&le==="outlined"?{notched:!0}:{},ref:we,className:St(de.props.className,d,oe.root),...!T&&{variant:le},...ce})})});pee.NODE_ENV!=="production"&&(xg.propTypes={autoWidth:p.bool,children:p.node,classes:p.object,className:p.string,defaultOpen:p.bool,defaultValue:p.any,displayEmpty:p.bool,IconComponent:p.elementType,id:p.string,input:p.element,inputProps:p.object,label:p.node,labelId:p.string,MenuProps:p.object,multiple:p.bool,native:p.bool,onChange:p.func,onClose:p.func,onOpen:p.func,open:p.bool,renderValue:p.func,SelectDisplayProps:p.object,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),value:p.oneOfType([p.oneOf([""]),p.any]),variant:p.oneOf(["filled","outlined","standard"])}),xg.muiName="Select";function bee(e,t,n=(i,o)=>i===o){return e.length===t.length&&e.every((i,o)=>n(i,t[o]))}const xee=2;function Sg(e,t,n,i,o){return n===1?Math.min(e+t,o):Math.max(e-t,i)}function G_(e,t){return e-t}function F_(e,t){const{index:n}=e.reduce((i,o,s)=>{const c=Math.abs(t-o);return i===null||c<i.distance||c===i.distance?{distance:c,index:s}:i},null)??{};return n}function C3(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let i=0;i<n.changedTouches.length;i+=1){const o=n.changedTouches[i];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function O3(e,t,n){return(e-t)*100/(n-t)}function See(e,t,n){return(n-t)*e+t}function Eee(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),i=n[0].split(".")[1];return(i?i.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function wee(e,t,n){const i=Math.round((e-n)/t)*t+n;return Number(i.toFixed(Eee(t)))}function Y_({values:e,newValue:t,index:n}){const i=e.slice();return i[n]=t,i.sort(G_)}function M3({sliderRef:e,activeIndex:t,setActive:n}){var o,s,c;const i=wa(e.current);(!((o=e.current)!=null&&o.contains(i.activeElement))||Number((s=i==null?void 0:i.activeElement)==null?void 0:s.getAttribute("data-index"))!==t)&&((c=e.current)==null||c.querySelector(`[type="range"][data-index="${t}"]`).focus()),n&&n(t)}function R3(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?bee(e,t):!1}const Tee={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Aee=e=>e;let _3;function X_(){return _3===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?_3=CSS.supports("touch-action","none"):_3=!0),_3}function Cee(e){const{"aria-labelledby":t,defaultValue:n,disabled:i=!1,disableSwap:o=!1,isRtl:s=!1,marks:c=!1,max:d=100,min:h=0,name:y,onChange:v,onChangeCommitted:S,orientation:T="horizontal",rootRef:w,scale:C=Aee,step:R=1,shiftStep:_=10,tabIndex:N,value:z}=e,B=G.useRef(void 0),[V,L]=G.useState(-1),[U,X]=G.useState(-1),[se,ce]=G.useState(!1),ie=G.useRef(0),ue=G.useRef(null),[$,le]=ng({controlled:z,default:n??h,name:"Slider"}),Q=v&&((Ze,be,Ve)=>{const nt=Ze.nativeEvent||Ze,pt=new nt.constructor(nt.type,nt);Object.defineProperty(pt,"target",{writable:!0,value:{value:be,name:y}}),ue.current=be,v(pt,be,Ve)}),oe=Array.isArray($);let Z=oe?$.slice().sort(G_):[$];Z=Z.map(Ze=>Ze==null?h:Ym(Ze,h,d));const ae=c===!0&&R!==null?[...Array(Math.floor((d-h)/R)+1)].map((Ze,be)=>({value:h+R*be})):c||[],de=ae.map(Ze=>Ze.value),[we,te]=G.useState(-1),F=G.useRef(null),ee=ri(w,F),Y=Ze=>be=>{var nt;const Ve=Number(be.currentTarget.getAttribute("data-index"));og(be.target)&&te(Ve),X(Ve),(nt=Ze==null?void 0:Ze.onFocus)==null||nt.call(Ze,be)},Me=Ze=>be=>{var Ve;og(be.target)||te(-1),X(-1),(Ve=Ze==null?void 0:Ze.onBlur)==null||Ve.call(Ze,be)},Se=(Ze,be)=>{const Ve=Number(Ze.currentTarget.getAttribute("data-index")),nt=Z[Ve],pt=de.indexOf(nt);let ut=be;if(ae&&R==null){const yt=de[de.length-1];ut>=yt?ut=yt:ut<=de[0]?ut=de[0]:ut=ut<nt?de[pt-1]:de[pt+1]}if(ut=Ym(ut,h,d),oe){o&&(ut=Ym(ut,Z[Ve-1]||-1/0,Z[Ve+1]||1/0));const yt=ut;ut=Y_({values:Z,newValue:ut,index:Ve});let gn=Ve;o||(gn=ut.indexOf(yt)),M3({sliderRef:F,activeIndex:gn})}le(ut),te(Ve),Q&&!R3(ut,$)&&Q(Ze,ut,Ve),S&&S(Ze,ue.current??ut)},_e=Ze=>be=>{var Ve;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(be.key)){be.preventDefault();const nt=Number(be.currentTarget.getAttribute("data-index")),pt=Z[nt];let ut=null;if(R!=null){const yt=be.shiftKey?_:R;switch(be.key){case"ArrowUp":ut=Sg(pt,yt,1,h,d);break;case"ArrowRight":ut=Sg(pt,yt,s?-1:1,h,d);break;case"ArrowDown":ut=Sg(pt,yt,-1,h,d);break;case"ArrowLeft":ut=Sg(pt,yt,s?1:-1,h,d);break;case"PageUp":ut=Sg(pt,_,1,h,d);break;case"PageDown":ut=Sg(pt,_,-1,h,d);break;case"Home":ut=h;break;case"End":ut=d;break}}else if(ae){const yt=de[de.length-1],gn=de.indexOf(pt),kt=[s?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],jt=[s?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];kt.includes(be.key)?gn===0?ut=de[0]:ut=de[gn-1]:jt.includes(be.key)&&(gn===de.length-1?ut=yt:ut=de[gn+1])}ut!=null&&Se(be,ut)}(Ve=Ze==null?void 0:Ze.onKeyDown)==null||Ve.call(Ze,be)};Xl(()=>{var Ze;i&&F.current.contains(document.activeElement)&&((Ze=document.activeElement)==null||Ze.blur())},[i]),i&&V!==-1&&L(-1),i&&we!==-1&&te(-1);const je=Ze=>be=>{var Ve;(Ve=Ze.onChange)==null||Ve.call(Ze,be),Se(be,be.target.valueAsNumber)},He=G.useRef(void 0);let Xe=T;s&&T==="horizontal"&&(Xe+="-reverse");const Qe=({finger:Ze,move:be=!1})=>{const{current:Ve}=F,{width:nt,height:pt,bottom:ut,left:yt}=Ve.getBoundingClientRect();let gn;Xe.startsWith("vertical")?gn=(ut-Ze.y)/pt:gn=(Ze.x-yt)/nt,Xe.includes("-reverse")&&(gn=1-gn);let kt;if(kt=See(gn,h,d),R)kt=wee(kt,R,h);else{const Fn=F_(de,kt);kt=de[Fn]}kt=Ym(kt,h,d);let jt=0;if(oe){be?jt=He.current:jt=F_(Z,kt),o&&(kt=Ym(kt,Z[jt-1]||-1/0,Z[jt+1]||1/0));const Fn=kt;kt=Y_({values:Z,newValue:kt,index:jt}),o&&be||(jt=kt.indexOf(Fn),He.current=jt)}return{newValue:kt,activeIndex:jt}},et=Wl(Ze=>{const be=C3(Ze,B);if(!be)return;if(ie.current+=1,Ze.type==="mousemove"&&Ze.buttons===0){Be(Ze);return}const{newValue:Ve,activeIndex:nt}=Qe({finger:be,move:!0});M3({sliderRef:F,activeIndex:nt,setActive:L}),le(Ve),!se&&ie.current>xee&&ce(!0),Q&&!R3(Ve,$)&&Q(Ze,Ve,nt)}),Be=Wl(Ze=>{const be=C3(Ze,B);if(ce(!1),!be)return;const{newValue:Ve}=Qe({finger:be,move:!0});L(-1),Ze.type==="touchend"&&X(-1),S&&S(Ze,ue.current??Ve),B.current=void 0,st()}),Re=Wl(Ze=>{if(i)return;X_()||Ze.preventDefault();const be=Ze.changedTouches[0];be!=null&&(B.current=be.identifier);const Ve=C3(Ze,B);if(Ve!==!1){const{newValue:pt,activeIndex:ut}=Qe({finger:Ve});M3({sliderRef:F,activeIndex:ut,setActive:L}),le(pt),Q&&!R3(pt,$)&&Q(Ze,pt,ut)}ie.current=0;const nt=wa(F.current);nt.addEventListener("touchmove",et,{passive:!0}),nt.addEventListener("touchend",Be,{passive:!0})}),st=G.useCallback(()=>{const Ze=wa(F.current);Ze.removeEventListener("mousemove",et),Ze.removeEventListener("mouseup",Be),Ze.removeEventListener("touchmove",et),Ze.removeEventListener("touchend",Be)},[Be,et]);G.useEffect(()=>{const{current:Ze}=F;return Ze.addEventListener("touchstart",Re,{passive:X_()}),()=>{Ze.removeEventListener("touchstart",Re),st()}},[st,Re]),G.useEffect(()=>{i&&st()},[i,st]);const Mt=Ze=>be=>{var pt;if((pt=Ze.onMouseDown)==null||pt.call(Ze,be),i||be.defaultPrevented||be.button!==0)return;be.preventDefault();const Ve=C3(be,B);if(Ve!==!1){const{newValue:ut,activeIndex:yt}=Qe({finger:Ve});M3({sliderRef:F,activeIndex:yt,setActive:L}),le(ut),Q&&!R3(ut,$)&&Q(be,ut,yt)}ie.current=0;const nt=wa(F.current);nt.addEventListener("mousemove",et,{passive:!0}),nt.addEventListener("mouseup",Be)},Kt=O3(oe?Z[0]:h,h,d),xt=O3(Z[Z.length-1],h,d)-Kt,Ut=(Ze={})=>{const be=qv(Ze),Ve={onMouseDown:Mt(be||{})},nt={...be,...Ve};return{...Ze,ref:ee,...nt}},hn=Ze=>be=>{var nt;(nt=Ze.onMouseOver)==null||nt.call(Ze,be);const Ve=Number(be.currentTarget.getAttribute("data-index"));X(Ve)},mn=Ze=>be=>{var Ve;(Ve=Ze.onMouseLeave)==null||Ve.call(Ze,be),X(-1)},at=(Ze={})=>{const be=qv(Ze),Ve={onMouseOver:hn(be||{}),onMouseLeave:mn(be||{})};return{...Ze,...be,...Ve}},At=Ze=>({pointerEvents:V!==-1&&V!==Ze?"none":void 0});let Rn;return T==="vertical"&&(Rn=s?"vertical-rl":"vertical-lr"),{active:V,axis:Xe,axisProps:Tee,dragging:se,focusedThumbIndex:we,getHiddenInputProps:(Ze={})=>{const be=qv(Ze),Ve={onChange:je(be||{}),onFocus:Y(be||{}),onBlur:Me(be||{}),onKeyDown:_e(be||{})},nt={...be,...Ve};return{tabIndex:N,"aria-labelledby":t,"aria-orientation":T,"aria-valuemax":C(d),"aria-valuemin":C(h),name:y,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:i,...Ze,...nt,style:{...see,direction:s?"rtl":"ltr",width:"100%",height:"100%",writingMode:Rn}}},getRootProps:Ut,getThumbProps:at,marks:ae,open:U,range:oe,rootRef:ee,trackLeap:xt,trackOffset:Kt,values:Z,getThumbStyle:At}}const Oee=e=>!e||!ec(e);function Mee(e){return Wt("MuiSlider",e)}const es=Qt("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);var Ree={};const _ee=e=>{const{open:t}=e;return{offset:St(t&&es.valueLabelOpen),circle:es.valueLabelCircle,label:es.valueLabelLabel}};function W_(e){const{children:t,className:n,value:i}=e,o=_ee(e);return t?G.cloneElement(t,{className:t.props.className},H.jsxs(G.Fragment,{children:[t.props.children,H.jsx("span",{className:St(o.offset,n),"aria-hidden":!0,children:H.jsx("span",{className:o.circle,children:H.jsx("span",{className:o.label,children:i})})})]})):null}Ree.NODE_ENV!=="production"&&(W_.propTypes={children:p.element.isRequired,className:p.string,value:p.node});var Q_={};function K_(e){return e}const Dee=it("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Je(n.color)}`],n.size!=="medium"&&t[`size${Je(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(Gt(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${es.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${es.dragging}`]:{[`& .${es.thumb}, & .${es.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter($r()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),Nee=it("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),kee=it("span",{name:"MuiSlider",slot:"Track"})(Gt(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter($r()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:e.lighten(e.palette[t].main,.62),borderColor:e.lighten(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:e.darken(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:e.darken(e.palette[t].main,.5)})}}}))]}))),zee=it("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Je(n.color)}`],n.size!=="medium"&&t[`thumbSize${Je(n.size)}`]]}})(Gt(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${es.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter($r()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${es.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${es.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),Z_=it(W_,{name:"MuiSlider",slot:"ValueLabel"})(Gt(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${es.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${es.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));Q_.NODE_ENV!=="production"&&(Z_.propTypes={children:p.element.isRequired,index:p.number.isRequired,open:p.bool.isRequired,value:p.node});const Iee=it("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>QS(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(Gt(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),Lee=it("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>QS(e)&&e!=="markLabelActive"})(Gt(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),Vee=e=>{const{disabled:t,dragging:n,marked:i,orientation:o,track:s,classes:c,color:d,size:h}=e,y={root:["root",t&&"disabled",n&&"dragging",i&&"marked",o==="vertical"&&"vertical",s==="inverted"&&"trackInverted",s===!1&&"trackFalse",d&&`color${Je(d)}`,h&&`size${Je(h)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",h&&`thumbSize${Je(h)}`,d&&`thumbColor${Je(d)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return en(y,Mee,c)},Bee=({children:e})=>e,J_=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiSlider"}),o=GS(),{"aria-label":s,"aria-valuetext":c,"aria-labelledby":d,component:h="span",components:y={},componentsProps:v={},color:S="primary",classes:T,className:w,disableSwap:C=!1,disabled:R=!1,getAriaLabel:_,getAriaValueText:N,marks:z=!1,max:B=100,min:V=0,name:L,onChange:U,onChangeCommitted:X,orientation:se="horizontal",shiftStep:ce=10,size:ie="medium",step:ue=1,scale:$=K_,slotProps:le,slots:Q,tabIndex:oe,track:Z="normal",value:ae,valueLabelDisplay:de="off",valueLabelFormat:we=K_,...te}=i,F={...i,isRtl:o,max:B,min:V,classes:T,disabled:R,disableSwap:C,orientation:se,marks:z,color:S,size:ie,step:ue,shiftStep:ce,scale:$,track:Z,valueLabelDisplay:de,valueLabelFormat:we},{axisProps:ee,getRootProps:Y,getHiddenInputProps:Me,getThumbProps:Se,open:_e,active:je,axis:He,focusedThumbIndex:Xe,range:Qe,dragging:et,marks:Be,values:Re,trackOffset:st,trackLeap:Mt,getThumbStyle:Kt}=Cee({...F,rootRef:n});F.marked=Be.length>0&&Be.some(Ne=>Ne.label),F.dragging=et,F.focusedThumbIndex=Xe;const xt=Vee(F),Ut=(Q==null?void 0:Q.root)??y.Root??Dee,hn=(Q==null?void 0:Q.rail)??y.Rail??Nee,mn=(Q==null?void 0:Q.track)??y.Track??kee,at=(Q==null?void 0:Q.thumb)??y.Thumb??zee,At=(Q==null?void 0:Q.valueLabel)??y.ValueLabel??Z_,Rn=(Q==null?void 0:Q.mark)??y.Mark??Iee,Bt=(Q==null?void 0:Q.markLabel)??y.MarkLabel??Lee,Ze=(Q==null?void 0:Q.input)??y.Input??"input",be=(le==null?void 0:le.root)??v.root,Ve=(le==null?void 0:le.rail)??v.rail,nt=(le==null?void 0:le.track)??v.track,pt=(le==null?void 0:le.thumb)??v.thumb,ut=(le==null?void 0:le.valueLabel)??v.valueLabel,yt=(le==null?void 0:le.mark)??v.mark,gn=(le==null?void 0:le.markLabel)??v.markLabel,kt=(le==null?void 0:le.input)??v.input,jt=rc({elementType:Ut,getSlotProps:Y,externalSlotProps:be,externalForwardedProps:te,additionalProps:{...Oee(Ut)&&{as:h}},ownerState:{...F,...be==null?void 0:be.ownerState},className:[xt.root,w]}),Fn=rc({elementType:hn,externalSlotProps:Ve,ownerState:F,className:xt.rail}),bn=rc({elementType:mn,externalSlotProps:nt,additionalProps:{style:{...ee[He].offset(st),...ee[He].leap(Mt)}},ownerState:{...F,...nt==null?void 0:nt.ownerState},className:xt.track}),Fr=rc({elementType:at,getSlotProps:Se,externalSlotProps:pt,ownerState:{...F,...pt==null?void 0:pt.ownerState},className:xt.thumb}),cr=rc({elementType:At,externalSlotProps:ut,ownerState:{...F,...ut==null?void 0:ut.ownerState},className:xt.valueLabel}),J=rc({elementType:Rn,externalSlotProps:yt,ownerState:F,className:xt.mark}),Oe=rc({elementType:Bt,externalSlotProps:gn,ownerState:F,className:xt.markLabel}),tt=rc({elementType:Ze,getSlotProps:Me,externalSlotProps:kt,ownerState:F});return H.jsxs(Ut,{...jt,children:[H.jsx(hn,{...Fn}),H.jsx(mn,{...bn}),Be.filter(Ne=>Ne.value>=V&&Ne.value<=B).map((Ne,We)=>{const wt=O3(Ne.value,V,B),vt=ee[He].offset(wt);let Yt;return Z===!1?Yt=Re.includes(Ne.value):Yt=Z==="normal"&&(Qe?Ne.value>=Re[0]&&Ne.value<=Re[Re.length-1]:Ne.value<=Re[0])||Z==="inverted"&&(Qe?Ne.value<=Re[0]||Ne.value>=Re[Re.length-1]:Ne.value>=Re[0]),H.jsxs(G.Fragment,{children:[H.jsx(Rn,{"data-index":We,...J,...!ec(Rn)&&{markActive:Yt},style:{...vt,...J.style},className:St(J.className,Yt&&xt.markActive)}),Ne.label!=null?H.jsx(Bt,{"aria-hidden":!0,"data-index":We,...Oe,...!ec(Bt)&&{markLabelActive:Yt},style:{...vt,...Oe.style},className:St(xt.markLabel,Oe.className,Yt&&xt.markLabelActive),children:Ne.label}):null]},We)}),Re.map((Ne,We)=>{const wt=O3(Ne,V,B),vt=ee[He].offset(wt),Yt=de==="off"?Bee:At;return H.jsx(Yt,{...!ec(Yt)&&{valueLabelFormat:we,valueLabelDisplay:de,value:typeof we=="function"?we($(Ne),We):we,index:We,open:_e===We||je===We||de==="on",disabled:R},...cr,children:H.jsx(at,{"data-index":We,...Fr,className:St(xt.thumb,Fr.className,je===We&&xt.active,Xe===We&&xt.focusVisible),style:{...vt,...Kt(We),...Fr.style},children:H.jsx(Ze,{"data-index":We,"aria-label":_?_(We):s,"aria-valuenow":$(Ne),"aria-labelledby":d,"aria-valuetext":N?N($(Ne),We):c,value:Re[We],...tt})})},We)})]})});Q_.NODE_ENV!=="production"&&(J_.propTypes={"aria-label":ou(p.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":p.string,"aria-valuetext":ou(p.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["primary","secondary","error","info","success","warning"]),p.string]),components:p.shape({Input:p.elementType,Mark:p.elementType,MarkLabel:p.elementType,Rail:p.elementType,Root:p.elementType,Thumb:p.elementType,Track:p.elementType,ValueLabel:p.elementType}),componentsProps:p.shape({input:p.oneOfType([p.func,p.object]),mark:p.oneOfType([p.func,p.object]),markLabel:p.oneOfType([p.func,p.object]),rail:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),thumb:p.oneOfType([p.func,p.object]),track:p.oneOfType([p.func,p.object]),valueLabel:p.oneOfType([p.func,p.shape({children:p.element,className:p.string,open:p.bool,style:p.object,value:p.node,valueLabelDisplay:p.oneOf(["auto","off","on"])})])}),defaultValue:p.oneOfType([p.arrayOf(p.number),p.number]),disabled:p.bool,disableSwap:p.bool,getAriaLabel:p.func,getAriaValueText:p.func,marks:p.oneOfType([p.arrayOf(p.shape({label:p.node,value:p.number.isRequired})),p.bool]),max:p.number,min:p.number,name:p.string,onChange:p.func,onChangeCommitted:p.func,orientation:p.oneOf(["horizontal","vertical"]),scale:p.func,shiftStep:p.number,size:p.oneOfType([p.oneOf(["small","medium"]),p.string]),slotProps:p.shape({input:p.oneOfType([p.func,p.object]),mark:p.oneOfType([p.func,p.object]),markLabel:p.oneOfType([p.func,p.object]),rail:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),thumb:p.oneOfType([p.func,p.object]),track:p.oneOfType([p.func,p.object]),valueLabel:p.oneOfType([p.func,p.shape({children:p.element,className:p.string,open:p.bool,style:p.object,value:p.node,valueLabelDisplay:p.oneOf(["auto","off","on"])})])}),slots:p.shape({input:p.elementType,mark:p.elementType,markLabel:p.elementType,rail:p.elementType,root:p.elementType,thumb:p.elementType,track:p.elementType,valueLabel:p.elementType}),step:p.number,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),tabIndex:p.number,track:p.oneOf(["inverted","normal",!1]),value:p.oneOfType([p.arrayOf(p.number),p.number]),valueLabelDisplay:p.oneOf(["auto","off","on"]),valueLabelFormat:p.oneOfType([p.func,p.string])});function jee(e){return Wt("MuiTooltip",e)}const di=Qt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);var D3={};function Pee(e){return Math.round(e*1e5)/1e5}const Uee=e=>{const{classes:t,disableInteractive:n,arrow:i,touch:o,placement:s}=e,c={popper:["popper",!n&&"popperInteractive",i&&"popperArrow"],tooltip:["tooltip",i&&"tooltipArrow",o&&"touch",`tooltipPlacement${Je(s.split("-")[0])}`],arrow:["arrow"]};return en(c,jee,t)},$ee=it(R7,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Gt(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${di.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${di.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${di.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${di.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${di.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${di.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${di.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${di.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Hee=it("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Je(n.placement.split("-")[0])}`]]}})(Gt(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${di.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${di.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${di.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${di.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Pee(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${di.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${di.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${di.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${di.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${di.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${di.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${di.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${di.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${di.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${di.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),qee=it("span",{name:"MuiTooltip",slot:"Arrow"})(Gt(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let N3=!1;const eD=new JS;let gb={x:0,y:0};function k3(e,t){return(n,...i)=>{t&&t(n,...i),e(n,...i)}}const tD=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:s,classes:c,components:d={},componentsProps:h={},describeChild:y=!1,disableFocusListener:v=!1,disableHoverListener:S=!1,disableInteractive:T=!1,disableTouchListener:w=!1,enterDelay:C=100,enterNextDelay:R=0,enterTouchDelay:_=700,followCursor:N=!1,id:z,leaveDelay:B=0,leaveTouchDelay:V=1500,onClose:L,onOpen:U,open:X,placement:se="bottom",PopperComponent:ce,PopperProps:ie={},slotProps:ue={},slots:$={},title:le,TransitionComponent:Q,TransitionProps:oe,...Z}=i,ae=G.isValidElement(s)?s:H.jsx("span",{children:s}),de=tf(),we=GS(),[te,F]=G.useState(),[ee,Y]=G.useState(null),Me=G.useRef(!1),Se=T||N,_e=ag(),je=ag(),He=ag(),Xe=ag(),[Qe,et]=ng({controlled:X,default:!1,name:"Tooltip",state:"open"});let Be=Qe;if(D3.NODE_ENV!=="production"){const{current:ct}=G.useRef(X!==void 0);G.useEffect(()=>{te&&te.disabled&&!ct&&le!==""&&te.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
647
647
|
`))},[le,te,ct])}const Re=mh(z),st=G.useRef(),Mt=Wl(()=>{st.current!==void 0&&(document.body.style.WebkitUserSelect=st.current,st.current=void 0),Xe.clear()});G.useEffect(()=>Mt,[Mt]);const Kt=ct=>{eD.clear(),N3=!0,et(!0),U&&!Be&&U(ct)},xt=Wl(ct=>{eD.start(800+B,()=>{N3=!1}),et(!1),L&&Be&&L(ct),_e.start(de.transitions.duration.shortest,()=>{Me.current=!1})}),Ut=ct=>{Me.current&&ct.type!=="touchstart"||(te&&te.removeAttribute("title"),je.clear(),He.clear(),C||N3&&R?je.start(N3?R:C,()=>{Kt(ct)}):Kt(ct))},hn=ct=>{je.clear(),He.start(B,()=>{xt(ct)})},[,mn]=G.useState(!1),at=ct=>{const Bn=(ct==null?void 0:ct.target)??te;if(!Bn||!og(Bn)){mn(!1);const oi=ct??new Event("blur");!ct&&Bn&&(Object.defineProperty(oi,"target",{value:Bn}),Object.defineProperty(oi,"currentTarget",{value:Bn})),hn(oi)}},At=ct=>{te||F(ct.currentTarget),og(ct.target)&&(mn(!0),Ut(ct))},Rn=ct=>{Me.current=!0;const Bn=ae.props;Bn.onTouchStart&&Bn.onTouchStart(ct)},Bt=ct=>{Rn(ct),He.clear(),_e.clear(),Mt(),st.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Xe.start(_,()=>{document.body.style.WebkitUserSelect=st.current,Ut(ct)})},Ze=ct=>{ae.props.onTouchEnd&&ae.props.onTouchEnd(ct),Mt(),He.start(V,()=>{xt(ct)})};G.useEffect(()=>{if(!Be)return;function ct(Bn){Bn.key==="Escape"&&xt(Bn)}return document.addEventListener("keydown",ct),()=>{document.removeEventListener("keydown",ct)}},[xt,Be]);const be=ri(dg(ae),F,n);!le&&le!==0&&(Be=!1);const Ve=G.useRef(),nt=ct=>{const Bn=ae.props;Bn.onMouseMove&&Bn.onMouseMove(ct),gb={x:ct.clientX,y:ct.clientY},Ve.current&&Ve.current.update()},pt={},ut=typeof le=="string";y?(pt.title=!Be&&ut&&!S?le:null,pt["aria-describedby"]=Be?Re:null):(pt["aria-label"]=ut?le:null,pt["aria-labelledby"]=Be&&!ut?Re:null);const yt={...pt,...Z,...ae.props,className:St(Z.className,ae.props.className),onTouchStart:Rn,ref:be,...N?{onMouseMove:nt}:{}};D3.NODE_ENV!=="production"&&(yt["data-mui-internal-clone-element"]=!0,G.useEffect(()=>{te&&!te.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
648
648
|
`))},[te]));const gn={};w||(yt.onTouchStart=Bt,yt.onTouchEnd=Ze),S||(yt.onMouseOver=k3(Ut,yt.onMouseOver),yt.onMouseLeave=k3(hn,yt.onMouseLeave),Se||(gn.onMouseOver=Ut,gn.onMouseLeave=hn)),v||(yt.onFocus=k3(At,yt.onFocus),yt.onBlur=k3(at,yt.onBlur),Se||(gn.onFocus=At,gn.onBlur=at)),D3.NODE_ENV!=="production"&&ae.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${ae.props.title}\` or the Tooltip component.`].join(`
|
|
649
|
-
`));const kt={...i,isRtl:we,arrow:o,disableInteractive:Se,placement:se,PopperComponentProp:ce,touch:Me.current},jt=typeof ue.popper=="function"?ue.popper(kt):ue.popper,Fn=G.useMemo(()=>{var Bn,oi;let ct=[{name:"arrow",enabled:!!ee,options:{element:ee,padding:4}}];return(Bn=ie.popperOptions)!=null&&Bn.modifiers&&(ct=ct.concat(ie.popperOptions.modifiers)),(oi=jt==null?void 0:jt.popperOptions)!=null&&oi.modifiers&&(ct=ct.concat(jt.popperOptions.modifiers)),{...ie.popperOptions,...jt==null?void 0:jt.popperOptions,modifiers:ct}},[ee,ie.popperOptions,jt==null?void 0:jt.popperOptions]),bn=Uee(kt),Fr=typeof ue.transition=="function"?ue.transition(kt):ue.transition,cr={slots:{popper:d.Popper,transition:d.Transition??Q,tooltip:d.Tooltip,arrow:d.Arrow,...$},slotProps:{arrow:ue.arrow??h.arrow,popper:{...ie,...jt??h.popper},tooltip:ue.tooltip??h.tooltip,transition:{...oe,...Fr??h.transition}}},[J,Oe]=nn("popper",{elementType:$ee,externalForwardedProps:cr,ownerState:kt,className:St(bn.popper,ie==null?void 0:ie.className)}),[tt,Ne]=nn("transition",{elementType:cb,externalForwardedProps:cr,ownerState:kt}),[We,wt]=nn("tooltip",{elementType:Hee,className:bn.tooltip,externalForwardedProps:cr,ownerState:kt}),[vt,Yt]=nn("arrow",{elementType:qee,className:bn.arrow,externalForwardedProps:cr,ownerState:kt,ref:Y});return H.jsxs(G.Fragment,{children:[G.cloneElement(ae,yt),H.jsx(J,{as:ce??R7,placement:se,anchorEl:N?{getBoundingClientRect:()=>({top:gb.y,left:gb.x,right:gb.x,bottom:gb.y,width:0,height:0})}:te,popperRef:Ve,open:te?Be:!1,id:Re,transition:!0,...gn,...Oe,popperOptions:Fn,children:({TransitionProps:ct})=>H.jsx(tt,{timeout:de.transitions.duration.shorter,...ct,...Ne,children:H.jsxs(We,{...wt,children:[le,o?H.jsx(vt,{...Yt}):null]})})})]})});D3.NODE_ENV!=="production"&&(tD.propTypes={arrow:p.bool,children:pg.isRequired,classes:p.object,className:p.string,components:p.shape({Arrow:p.elementType,Popper:p.elementType,Tooltip:p.elementType,Transition:p.elementType}),componentsProps:p.shape({arrow:p.object,popper:p.object,tooltip:p.object,transition:p.object}),describeChild:p.bool,disableFocusListener:p.bool,disableHoverListener:p.bool,disableInteractive:p.bool,disableTouchListener:p.bool,enterDelay:p.number,enterNextDelay:p.number,enterTouchDelay:p.number,followCursor:p.bool,id:p.string,leaveDelay:p.number,leaveTouchDelay:p.number,onClose:p.func,onOpen:p.func,open:p.bool,placement:p.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:p.elementType,PopperProps:p.object,slotProps:p.shape({arrow:p.oneOfType([p.func,p.object]),popper:p.oneOfType([p.func,p.object]),tooltip:p.oneOfType([p.func,p.object]),transition:p.oneOfType([p.func,p.object])}),slots:p.shape({arrow:p.elementType,popper:p.elementType,tooltip:p.elementType,transition:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),title:p.node,TransitionComponent:p.elementType,TransitionProps:p.object});function Gee(e){return Wt("MuiSwitch",e)}const po=Qt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);var Fee={};const Yee=e=>{const{classes:t,edge:n,size:i,color:o,checked:s,disabled:c}=e,d={root:["root",n&&`edge${Je(n)}`,`size${Je(i)}`],switchBase:["switchBase",`color${Je(o)}`,s&&"checked",c&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},h=en(d,Gee,t);return{...t,...h}},Xee=it("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Je(n.edge)}`],t[`size${Je(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${po.thumb}`]:{width:16,height:16},[`& .${po.switchBase}`]:{padding:4,[`&.${po.checked}`]:{transform:"translateX(16px)"}}}}]}),Wee=it(v3,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${po.input}`]:t.input},n.color!=="default"&&t[`color${Je(n.color)}`]]}})(Gt(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${po.checked}`]:{transform:"translateX(20px)"},[`&.${po.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${po.checked} + .${po.track}`]:{opacity:.5},[`&.${po.disabled} + .${po.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${po.input}`]:{left:"-100%",width:"300%"}})),Gt(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter($r(["light"])).map(([t])=>({props:{color:t},style:{[`&.${po.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${po.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${po.checked} + .${po.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),Qee=it("span",{name:"MuiSwitch",slot:"Track"})(Gt(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),Kee=it("span",{name:"MuiSwitch",slot:"Thumb"})(Gt(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),nD=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiSwitch"}),{className:o,color:s="primary",edge:c=!1,size:d="medium",sx:h,slots:y={},slotProps:v={},...S}=i,T={...i,color:s,edge:c,size:d},w=Yee(T),C={slots:y,slotProps:v},[R,_]=nn("root",{className:St(w.root,o),elementType:Xee,externalForwardedProps:C,ownerState:T,additionalProps:{sx:h}}),[N,z]=nn("thumb",{className:w.thumb,elementType:Kee,externalForwardedProps:C,ownerState:T}),B=H.jsx(N,{...z}),[V,L]=nn("track",{className:w.track,elementType:Qee,externalForwardedProps:C,ownerState:T});return H.jsxs(R,{..._,children:[H.jsx(Wee,{type:"checkbox",icon:B,checkedIcon:B,ref:n,ownerState:T,...S,classes:{...w,root:w.switchBase},slots:{...y.switchBase&&{root:y.switchBase},...y.input&&{input:y.input}},slotProps:{...v.switchBase&&{root:typeof v.switchBase=="function"?v.switchBase(T):v.switchBase},input:{role:"switch"},...v.input&&{input:typeof v.input=="function"?v.input(T):v.input}}}),H.jsx(V,{...L})]})});Fee.NODE_ENV!=="production"&&(nD.propTypes={checked:p.bool,checkedIcon:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["default","primary","secondary","error","info","success","warning"]),p.string]),defaultChecked:p.bool,disabled:p.bool,disableRipple:p.bool,edge:p.oneOf(["end","start",!1]),icon:p.node,id:p.string,inputProps:p.object,inputRef:ho,onChange:p.func,required:p.bool,size:p.oneOfType([p.oneOf(["medium","small"]),p.string]),slotProps:p.shape({input:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),switchBase:p.oneOfType([p.func,p.object]),thumb:p.oneOfType([p.func,p.object]),track:p.oneOfType([p.func,p.object])}),slots:p.shape({input:p.elementType,root:p.elementType,switchBase:p.elementType,thumb:p.elementType,track:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),value:p.any});function Zee(e){return Wt("MuiTextField",e)}Qt("MuiTextField",["root"]);var rD={};const Jee={standard:E3,filled:S3,outlined:T3},ete=e=>{const{classes:t}=e;return en({root:["root"]},Zee,t)},tte=it(Hi,{name:"MuiTextField",slot:"Root"})({}),xl=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:c,className:d,color:h="primary",defaultValue:y,disabled:v=!1,error:S=!1,FormHelperTextProps:T,fullWidth:w=!1,helperText:C,id:R,InputLabelProps:_,inputProps:N,InputProps:z,inputRef:B,label:V,maxRows:L,minRows:U,multiline:X=!1,name:se,onBlur:ce,onChange:ie,onFocus:ue,placeholder:$,required:le=!1,rows:Q,select:oe=!1,SelectProps:Z,slots:ae={},slotProps:de={},type:we,value:te,variant:F="outlined",...ee}=i,Y={...i,autoFocus:s,color:h,disabled:v,error:S,fullWidth:w,multiline:X,required:le,select:oe,variant:F},Me=ete(Y);rD.NODE_ENV!=="production"&&oe&&!c&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const Se=mh(R),_e=C&&Se?`${Se}-helper-text`:void 0,je=V&&Se?`${Se}-label`:void 0,He=Jee[F],Xe={slots:ae,slotProps:{input:z,inputLabel:_,htmlInput:N,formHelperText:T,select:Z,...de}},Qe={},et=Xe.slotProps.inputLabel;F==="outlined"&&(et&&typeof et.shrink<"u"&&(Qe.notched=et.shrink),Qe.label=V),oe&&((!Z||!Z.native)&&(Qe.id=void 0),Qe["aria-describedby"]=void 0);const[Be,Re]=nn("root",{elementType:tte,shouldForwardComponentProp:!0,externalForwardedProps:{...Xe,...ee},ownerState:Y,className:St(Me.root,d),ref:n,additionalProps:{disabled:v,error:S,fullWidth:w,required:le,color:h,variant:F}}),[st,Mt]=nn("input",{elementType:He,externalForwardedProps:Xe,additionalProps:Qe,ownerState:Y}),[Kt,xt]=nn("inputLabel",{elementType:v_,externalForwardedProps:Xe,ownerState:Y}),[Ut,hn]=nn("htmlInput",{elementType:"input",externalForwardedProps:Xe,ownerState:Y}),[mn,at]=nn("formHelperText",{elementType:f_,externalForwardedProps:Xe,ownerState:Y}),[At,Rn]=nn("select",{elementType:xg,externalForwardedProps:Xe,ownerState:Y}),Bt=H.jsx(st,{"aria-describedby":_e,autoComplete:o,autoFocus:s,defaultValue:y,fullWidth:w,multiline:X,name:se,rows:Q,maxRows:L,minRows:U,type:we,value:te,id:Se,inputRef:B,onBlur:ce,onChange:ie,onFocus:ue,placeholder:$,inputProps:hn,slots:{input:ae.htmlInput?Ut:void 0},...Mt});return H.jsxs(Be,{...Re,children:[V!=null&&V!==""&&H.jsx(Kt,{htmlFor:Se,id:je,...xt,children:V}),oe?H.jsx(At,{"aria-describedby":_e,id:Se,labelId:je,value:te,input:Bt,...Rn,children:c}):Bt,C&&H.jsx(mn,{id:_e,...at,children:C})]})});rD.NODE_ENV!=="production"&&(xl.propTypes={autoComplete:p.string,autoFocus:p.bool,children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["primary","secondary","error","info","success","warning"]),p.string]),defaultValue:p.any,disabled:p.bool,error:p.bool,FormHelperTextProps:p.object,fullWidth:p.bool,helperText:p.node,id:p.string,InputLabelProps:p.object,inputProps:p.object,InputProps:p.object,inputRef:ho,label:p.node,margin:p.oneOf(["dense","none","normal"]),maxRows:p.oneOfType([p.number,p.string]),minRows:p.oneOfType([p.number,p.string]),multiline:p.bool,name:p.string,onBlur:p.func,onChange:p.func,onFocus:p.func,placeholder:p.string,required:p.bool,rows:p.oneOfType([p.number,p.string]),select:p.bool,SelectProps:p.object,size:p.oneOfType([p.oneOf(["medium","small"]),p.string]),slotProps:p.shape({formHelperText:p.oneOfType([p.func,p.object]),htmlInput:p.oneOfType([p.func,p.object]),input:p.oneOfType([p.func,p.object]),inputLabel:p.oneOfType([p.func,p.object]),select:p.oneOfType([p.func,p.object])}),slots:p.shape({formHelperText:p.elementType,htmlInput:p.elementType,input:p.elementType,inputLabel:p.elementType,root:p.elementType,select:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),type:p.string,value:p.any,variant:p.oneOf(["filled","outlined","standard"])});const nte=({model:e,fontSize:t="small"})=>{if(!e)return H.jsx(KM,{fontSize:t});switch(e){case"OPENAI":return H.jsx(gh,{fontSize:t,viewBox:"0 0 24 24",children:H.jsx("path",{d:"M22.282 9.821a5.985 5.985 0 0 0-.516-4.91 6.046 6.046 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a5.985 5.985 0 0 0-3.998 2.9 6.046 6.046 0 0 0 .743 7.097 5.98 5.98 0 0 0 .51 4.911 6.051 6.051 0 0 0 6.515 2.9A5.985 5.985 0 0 0 13.26 24a6.056 6.056 0 0 0 5.772-4.206 5.99 5.99 0 0 0 3.997-2.9 6.056 6.056 0 0 0-.747-7.073zM13.26 22.43a4.476 4.476 0 0 1-2.876-1.04l.141-.081 4.779-2.758a.795.795 0 0 0 .392-.681v-6.737l2.02 1.168a.071.071 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494zM3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085 4.783 2.759a.78.78 0 0 0 .78 0l5.843-3.369v2.332a.074.074 0 0 1-.028.057l-4.832 2.795a4.504 4.504 0 0 1-6.153-1.645zm-.856-8.246a4.476 4.476 0 0 1 2.346-1.973l-.004.162v5.517a.787.787 0 0 0 .392.681l5.843 3.369-2.02 1.168a.069.069 0 0 1-.066 0l-4.827-2.79a4.504 4.504 0 0 1-1.664-6.134zm16.008 3.73-5.843-3.369 2.02-1.168a.07.07 0 0 1 .066 0l4.827 2.79a4.494 4.494 0 0 1-1.12 8.107v-5.517a.795.795 0 0 0-.397-.681zm2.253-3.395a4.47 4.47 0 0 1-.535.983l-.142-.085-4.779-2.759a.78.78 0 0 0-.78 0L8.927 11.9V9.569a.07.07 0 0 1 .028-.057l4.827-2.79a4.504 4.504 0 0 1 6.682 2.771zm-12.35 3.369-2.02-1.168a.067.067 0 0 1-.037-.052V7.967a4.504 4.504 0 0 1 7.37-3.454l-.142.081-4.779 2.759a.795.795 0 0 0-.392.681zm1.069-2.332 2.606-1.507 2.606 1.507v3.014l-2.606 1.507-2.606-1.507z"})});case"ANTHROPIC_CLAUDE":return H.jsxs(gh,{fontSize:t,viewBox:"0 0 24 24",children:[H.jsx("path",{d:"M15.5 2.25a4.25 4.25 0 0 0-4.25 4.25h-2.5A6.75 6.75 0 0 1 15.5 0h2.5v2.25zM2.25 8.5A4.25 4.25 0 0 0 6.5 12.75v2.5A6.75 6.75 0 0 1 0 8.5v-2.5h2.25zM8.5 21.75a4.25 4.25 0 0 0 4.25-4.25h2.5A6.75 6.75 0 0 1 8.5 24H6v-2.25zM21.75 15.5a4.25 4.25 0 0 0-4.25-4.25v-2.5A6.75 6.75 0 0 1 24 15.5V18h-2.25z"}),H.jsx("path",{d:"M12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0 8a3 3 0 1 1 0-6 3 3 0 0 1 0 6z"})]});case"GOOGLE_GEMINI":return H.jsx(gh,{fontSize:t,viewBox:"0 0 24 24",children:H.jsx("path",{d:"M4 12c0-4.41 3.59-8 8-8s8 3.59 8 8-3.59 8-8 8-8-3.59-8-8m8-10c-5.51 0-10 4.49-10 10s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2m2.5 10c0 1.38-1.12 2.5-2.5 2.5S9.5 13.38 9.5 12 10.62 9.5 12 9.5s2.5 1.12 2.5 2.5M12 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6m0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4"})});default:return H.jsx(KM,{fontSize:t})}},rte=({enabledModels:e})=>{const t=Yu("settings"),n=Yu("chat"),i=t.state,o=(d,h)=>{const y=t.state,v={...y,llm:{...y.llm,models:{...y.llm.models,[d]:{...y.llm.models[d],version:h,enabled:!0}}}};t.saveSettings(v),n.updateWelcomeMessage()},s=d=>{const h=Tv[d],y=h.labels;return h.options.map(v=>{const S=v;return{label:y[S],value:S}})},c=d=>{const h=Tv[d],y=i.llm.models[d].version,v=h.options;return!y||!v.includes(y)?h.default:y};return H.jsx(xi,{sx:{mt:2,display:"flex",flexDirection:"column",gap:1},children:e.map(d=>H.jsxs(xi,{sx:{display:"flex",alignItems:"center",gap:1},children:[H.jsxs(Hr,{variant:"body2",sx:{minWidth:100},children:[d.name,":"]}),H.jsx(Hi,{size:"small",sx:{minWidth:200},children:H.jsx(xg,{value:c(d.modelKey),onChange:h=>o(d.modelKey,h.target.value),"aria-label":`Select ${d.name} version`,MenuProps:{disablePortal:!0,PaperProps:{sx:{maxHeight:200}}},children:s(d.modelKey).map(h=>H.jsx(Ah,{value:h.value,children:h.label},h.value))})})]},d.modelKey))})};function ede(){}function tde(){}function iD(e){const t=[],n=String(e||"");let i=n.indexOf(","),o=0,s=!1;for(;!s;){i===-1&&(i=n.length,s=!0);const c=n.slice(o,i).trim();(c||!s)&&t.push(c),o=i+1,i=n.indexOf(",",o)}return t}function ite(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const ate=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ote=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,lte={};function aD(e,t){return(lte.jsx?ote:ate).test(e)}const ste=/[ \t\n\f\r]/g;function ute(e){return typeof e=="object"?e.type==="text"?oD(e.value):!1:oD(e)}function oD(e){return e.replace(ste,"")===""}class yb{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}yb.prototype.normal={},yb.prototype.property={},yb.prototype.space=void 0;function lD(e,t){const n={},i={};for(const o of e)Object.assign(n,o.property),Object.assign(i,o.normal);return new yb(n,i,t)}function vb(e){return e.toLowerCase()}class Ho{constructor(t,n){this.attribute=n,this.property=t}}Ho.prototype.attribute="",Ho.prototype.booleanish=!1,Ho.prototype.boolean=!1,Ho.prototype.commaOrSpaceSeparated=!1,Ho.prototype.commaSeparated=!1,Ho.prototype.defined=!1,Ho.prototype.mustUseProperty=!1,Ho.prototype.number=!1,Ho.prototype.overloadedBoolean=!1,Ho.prototype.property="",Ho.prototype.spaceSeparated=!1,Ho.prototype.space=void 0;let cte=0;const wn=Ch(),_i=Ch(),Q7=Ch(),dt=Ch(),_r=Ch(),Eg=Ch(),Sl=Ch();function Ch(){return 2**++cte}const K7=Object.freeze(Object.defineProperty({__proto__:null,boolean:wn,booleanish:_i,commaOrSpaceSeparated:Sl,commaSeparated:Eg,number:dt,overloadedBoolean:Q7,spaceSeparated:_r},Symbol.toStringTag,{value:"Module"})),Z7=Object.keys(K7);class J7 extends Ho{constructor(t,n,i,o){let s=-1;if(super(t,n),sD(this,"space",o),typeof i=="number")for(;++s<Z7.length;){const c=Z7[s];sD(this,Z7[s],(i&K7[c])===K7[c])}}}J7.prototype.defined=!0;function sD(e,t,n){n&&(e[t]=n)}function wg(e){const t={},n={};for(const[i,o]of Object.entries(e.properties)){const s=new J7(i,e.transform(e.attributes||{},i),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,n[vb(i)]=i,n[vb(s.attribute)]=i}return new yb(t,n,e.space)}const uD=wg({properties:{ariaActiveDescendant:null,ariaAtomic:_i,ariaAutoComplete:null,ariaBusy:_i,ariaChecked:_i,ariaColCount:dt,ariaColIndex:dt,ariaColSpan:dt,ariaControls:_r,ariaCurrent:null,ariaDescribedBy:_r,ariaDetails:null,ariaDisabled:_i,ariaDropEffect:_r,ariaErrorMessage:null,ariaExpanded:_i,ariaFlowTo:_r,ariaGrabbed:_i,ariaHasPopup:null,ariaHidden:_i,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_r,ariaLevel:dt,ariaLive:null,ariaModal:_i,ariaMultiLine:_i,ariaMultiSelectable:_i,ariaOrientation:null,ariaOwns:_r,ariaPlaceholder:null,ariaPosInSet:dt,ariaPressed:_i,ariaReadOnly:_i,ariaRelevant:null,ariaRequired:_i,ariaRoleDescription:_r,ariaRowCount:dt,ariaRowIndex:dt,ariaRowSpan:dt,ariaSelected:_i,ariaSetSize:dt,ariaSort:null,ariaValueMax:dt,ariaValueMin:dt,ariaValueNow:dt,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function cD(e,t){return t in e?e[t]:t}function fD(e,t){return cD(e,t.toLowerCase())}const fte=wg({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Eg,acceptCharset:_r,accessKey:_r,action:null,allow:null,allowFullScreen:wn,allowPaymentRequest:wn,allowUserMedia:wn,alt:null,as:null,async:wn,autoCapitalize:null,autoComplete:_r,autoFocus:wn,autoPlay:wn,blocking:_r,capture:null,charSet:null,checked:wn,cite:null,className:_r,cols:dt,colSpan:null,content:null,contentEditable:_i,controls:wn,controlsList:_r,coords:dt|Eg,crossOrigin:null,data:null,dateTime:null,decoding:null,default:wn,defer:wn,dir:null,dirName:null,disabled:wn,download:Q7,draggable:_i,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:wn,formTarget:null,headers:_r,height:dt,hidden:Q7,high:dt,href:null,hrefLang:null,htmlFor:_r,httpEquiv:_r,id:null,imageSizes:null,imageSrcSet:null,inert:wn,inputMode:null,integrity:null,is:null,isMap:wn,itemId:null,itemProp:_r,itemRef:_r,itemScope:wn,itemType:_r,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:wn,low:dt,manifest:null,max:null,maxLength:dt,media:null,method:null,min:null,minLength:dt,multiple:wn,muted:wn,name:null,nonce:null,noModule:wn,noValidate:wn,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:wn,optimum:dt,pattern:null,ping:_r,placeholder:null,playsInline:wn,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:wn,referrerPolicy:null,rel:_r,required:wn,reversed:wn,rows:dt,rowSpan:dt,sandbox:_r,scope:null,scoped:wn,seamless:wn,selected:wn,shadowRootClonable:wn,shadowRootDelegatesFocus:wn,shadowRootMode:null,shape:null,size:dt,sizes:null,slot:null,span:dt,spellCheck:_i,src:null,srcDoc:null,srcLang:null,srcSet:null,start:dt,step:null,style:null,tabIndex:dt,target:null,title:null,translate:null,type:null,typeMustMatch:wn,useMap:null,value:_i,width:dt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:_r,axis:null,background:null,bgColor:null,border:dt,borderColor:null,bottomMargin:dt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:wn,declare:wn,event:null,face:null,frame:null,frameBorder:null,hSpace:dt,leftMargin:dt,link:null,longDesc:null,lowSrc:null,marginHeight:dt,marginWidth:dt,noResize:wn,noHref:wn,noShade:wn,noWrap:wn,object:null,profile:null,prompt:null,rev:null,rightMargin:dt,rules:null,scheme:null,scrolling:_i,standby:null,summary:null,text:null,topMargin:dt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:dt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:wn,disableRemotePlayback:wn,prefix:null,property:null,results:dt,security:null,unselectable:null},space:"html",transform:fD}),dte=wg({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Sl,accentHeight:dt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:dt,amplitude:dt,arabicForm:null,ascent:dt,attributeName:null,attributeType:null,azimuth:dt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:dt,by:null,calcMode:null,capHeight:dt,className:_r,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:dt,diffuseConstant:dt,direction:null,display:null,dur:null,divisor:dt,dominantBaseline:null,download:wn,dx:null,dy:null,edgeMode:null,editable:null,elevation:dt,enableBackground:null,end:null,event:null,exponent:dt,externalResourcesRequired:null,fill:null,fillOpacity:dt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Eg,g2:Eg,glyphName:Eg,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:dt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:dt,horizOriginX:dt,horizOriginY:dt,id:null,ideographic:dt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:dt,k:dt,k1:dt,k2:dt,k3:dt,k4:dt,kernelMatrix:Sl,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:dt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:dt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:dt,overlineThickness:dt,paintOrder:null,panose1:null,path:null,pathLength:dt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:_r,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:dt,pointsAtY:dt,pointsAtZ:dt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Sl,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Sl,rev:Sl,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Sl,requiredFeatures:Sl,requiredFonts:Sl,requiredFormats:Sl,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:dt,specularExponent:dt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:dt,strikethroughThickness:dt,string:null,stroke:null,strokeDashArray:Sl,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:dt,strokeOpacity:dt,strokeWidth:null,style:null,surfaceScale:dt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Sl,tabIndex:dt,tableValues:null,target:null,targetX:dt,targetY:dt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Sl,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:dt,underlineThickness:dt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:dt,values:null,vAlphabetic:dt,vMathematical:dt,vectorEffect:null,vHanging:dt,vIdeographic:dt,version:null,vertAdvY:dt,vertOriginX:dt,vertOriginY:dt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:dt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:cD}),dD=wg({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),hD=wg({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:fD}),pD=wg({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),hte={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},pte=/[A-Z]/g,mD=/-[a-z]/g,mte=/^data[-\w.:]+$/i;function gD(e,t){const n=vb(t);let i=t,o=Ho;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&mte.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(mD,yte);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!mD.test(s)){let c=s.replace(pte,gte);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}o=J7}return new o(i,t)}function gte(e){return"-"+e.toLowerCase()}function yte(e){return e.charAt(1).toUpperCase()}const yD=lD([uD,fte,dD,hD,pD],"html"),z3=lD([uD,dte,dD,hD,pD],"svg");function vD(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function vte(e){return e.join(" ").trim()}var Tg={},eT,bD;function bte(){if(bD)return eT;bD=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,h=`
|
|
649
|
+
`));const kt={...i,isRtl:we,arrow:o,disableInteractive:Se,placement:se,PopperComponentProp:ce,touch:Me.current},jt=typeof ue.popper=="function"?ue.popper(kt):ue.popper,Fn=G.useMemo(()=>{var Bn,oi;let ct=[{name:"arrow",enabled:!!ee,options:{element:ee,padding:4}}];return(Bn=ie.popperOptions)!=null&&Bn.modifiers&&(ct=ct.concat(ie.popperOptions.modifiers)),(oi=jt==null?void 0:jt.popperOptions)!=null&&oi.modifiers&&(ct=ct.concat(jt.popperOptions.modifiers)),{...ie.popperOptions,...jt==null?void 0:jt.popperOptions,modifiers:ct}},[ee,ie.popperOptions,jt==null?void 0:jt.popperOptions]),bn=Uee(kt),Fr=typeof ue.transition=="function"?ue.transition(kt):ue.transition,cr={slots:{popper:d.Popper,transition:d.Transition??Q,tooltip:d.Tooltip,arrow:d.Arrow,...$},slotProps:{arrow:ue.arrow??h.arrow,popper:{...ie,...jt??h.popper},tooltip:ue.tooltip??h.tooltip,transition:{...oe,...Fr??h.transition}}},[J,Oe]=nn("popper",{elementType:$ee,externalForwardedProps:cr,ownerState:kt,className:St(bn.popper,ie==null?void 0:ie.className)}),[tt,Ne]=nn("transition",{elementType:cb,externalForwardedProps:cr,ownerState:kt}),[We,wt]=nn("tooltip",{elementType:Hee,className:bn.tooltip,externalForwardedProps:cr,ownerState:kt}),[vt,Yt]=nn("arrow",{elementType:qee,className:bn.arrow,externalForwardedProps:cr,ownerState:kt,ref:Y});return H.jsxs(G.Fragment,{children:[G.cloneElement(ae,yt),H.jsx(J,{as:ce??R7,placement:se,anchorEl:N?{getBoundingClientRect:()=>({top:gb.y,left:gb.x,right:gb.x,bottom:gb.y,width:0,height:0})}:te,popperRef:Ve,open:te?Be:!1,id:Re,transition:!0,...gn,...Oe,popperOptions:Fn,children:({TransitionProps:ct})=>H.jsx(tt,{timeout:de.transitions.duration.shorter,...ct,...Ne,children:H.jsxs(We,{...wt,children:[le,o?H.jsx(vt,{...Yt}):null]})})})]})});D3.NODE_ENV!=="production"&&(tD.propTypes={arrow:p.bool,children:pg.isRequired,classes:p.object,className:p.string,components:p.shape({Arrow:p.elementType,Popper:p.elementType,Tooltip:p.elementType,Transition:p.elementType}),componentsProps:p.shape({arrow:p.object,popper:p.object,tooltip:p.object,transition:p.object}),describeChild:p.bool,disableFocusListener:p.bool,disableHoverListener:p.bool,disableInteractive:p.bool,disableTouchListener:p.bool,enterDelay:p.number,enterNextDelay:p.number,enterTouchDelay:p.number,followCursor:p.bool,id:p.string,leaveDelay:p.number,leaveTouchDelay:p.number,onClose:p.func,onOpen:p.func,open:p.bool,placement:p.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:p.elementType,PopperProps:p.object,slotProps:p.shape({arrow:p.oneOfType([p.func,p.object]),popper:p.oneOfType([p.func,p.object]),tooltip:p.oneOfType([p.func,p.object]),transition:p.oneOfType([p.func,p.object])}),slots:p.shape({arrow:p.elementType,popper:p.elementType,tooltip:p.elementType,transition:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),title:p.node,TransitionComponent:p.elementType,TransitionProps:p.object});function Gee(e){return Wt("MuiSwitch",e)}const po=Qt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);var Fee={};const Yee=e=>{const{classes:t,edge:n,size:i,color:o,checked:s,disabled:c}=e,d={root:["root",n&&`edge${Je(n)}`,`size${Je(i)}`],switchBase:["switchBase",`color${Je(o)}`,s&&"checked",c&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},h=en(d,Gee,t);return{...t,...h}},Xee=it("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Je(n.edge)}`],t[`size${Je(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${po.thumb}`]:{width:16,height:16},[`& .${po.switchBase}`]:{padding:4,[`&.${po.checked}`]:{transform:"translateX(16px)"}}}}]}),Wee=it(v3,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${po.input}`]:t.input},n.color!=="default"&&t[`color${Je(n.color)}`]]}})(Gt(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${po.checked}`]:{transform:"translateX(20px)"},[`&.${po.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${po.checked} + .${po.track}`]:{opacity:.5},[`&.${po.disabled} + .${po.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${po.input}`]:{left:"-100%",width:"300%"}})),Gt(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter($r(["light"])).map(([t])=>({props:{color:t},style:{[`&.${po.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${po.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${po.checked} + .${po.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),Qee=it("span",{name:"MuiSwitch",slot:"Track"})(Gt(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),Kee=it("span",{name:"MuiSwitch",slot:"Thumb"})(Gt(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),nD=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiSwitch"}),{className:o,color:s="primary",edge:c=!1,size:d="medium",sx:h,slots:y={},slotProps:v={},...S}=i,T={...i,color:s,edge:c,size:d},w=Yee(T),C={slots:y,slotProps:v},[R,_]=nn("root",{className:St(w.root,o),elementType:Xee,externalForwardedProps:C,ownerState:T,additionalProps:{sx:h}}),[N,z]=nn("thumb",{className:w.thumb,elementType:Kee,externalForwardedProps:C,ownerState:T}),B=H.jsx(N,{...z}),[V,L]=nn("track",{className:w.track,elementType:Qee,externalForwardedProps:C,ownerState:T});return H.jsxs(R,{..._,children:[H.jsx(Wee,{type:"checkbox",icon:B,checkedIcon:B,ref:n,ownerState:T,...S,classes:{...w,root:w.switchBase},slots:{...y.switchBase&&{root:y.switchBase},...y.input&&{input:y.input}},slotProps:{...v.switchBase&&{root:typeof v.switchBase=="function"?v.switchBase(T):v.switchBase},input:{role:"switch"},...v.input&&{input:typeof v.input=="function"?v.input(T):v.input}}}),H.jsx(V,{...L})]})});Fee.NODE_ENV!=="production"&&(nD.propTypes={checked:p.bool,checkedIcon:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["default","primary","secondary","error","info","success","warning"]),p.string]),defaultChecked:p.bool,disabled:p.bool,disableRipple:p.bool,edge:p.oneOf(["end","start",!1]),icon:p.node,id:p.string,inputProps:p.object,inputRef:ho,onChange:p.func,required:p.bool,size:p.oneOfType([p.oneOf(["medium","small"]),p.string]),slotProps:p.shape({input:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),switchBase:p.oneOfType([p.func,p.object]),thumb:p.oneOfType([p.func,p.object]),track:p.oneOfType([p.func,p.object])}),slots:p.shape({input:p.elementType,root:p.elementType,switchBase:p.elementType,thumb:p.elementType,track:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),value:p.any});function Zee(e){return Wt("MuiTextField",e)}Qt("MuiTextField",["root"]);var rD={};const Jee={standard:E3,filled:S3,outlined:T3},ete=e=>{const{classes:t}=e;return en({root:["root"]},Zee,t)},tte=it(Hi,{name:"MuiTextField",slot:"Root"})({}),xl=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:c,className:d,color:h="primary",defaultValue:y,disabled:v=!1,error:S=!1,FormHelperTextProps:T,fullWidth:w=!1,helperText:C,id:R,InputLabelProps:_,inputProps:N,InputProps:z,inputRef:B,label:V,maxRows:L,minRows:U,multiline:X=!1,name:se,onBlur:ce,onChange:ie,onFocus:ue,placeholder:$,required:le=!1,rows:Q,select:oe=!1,SelectProps:Z,slots:ae={},slotProps:de={},type:we,value:te,variant:F="outlined",...ee}=i,Y={...i,autoFocus:s,color:h,disabled:v,error:S,fullWidth:w,multiline:X,required:le,select:oe,variant:F},Me=ete(Y);rD.NODE_ENV!=="production"&&oe&&!c&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const Se=mh(R),_e=C&&Se?`${Se}-helper-text`:void 0,je=V&&Se?`${Se}-label`:void 0,He=Jee[F],Xe={slots:ae,slotProps:{input:z,inputLabel:_,htmlInput:N,formHelperText:T,select:Z,...de}},Qe={},et=Xe.slotProps.inputLabel;F==="outlined"&&(et&&typeof et.shrink<"u"&&(Qe.notched=et.shrink),Qe.label=V),oe&&((!Z||!Z.native)&&(Qe.id=void 0),Qe["aria-describedby"]=void 0);const[Be,Re]=nn("root",{elementType:tte,shouldForwardComponentProp:!0,externalForwardedProps:{...Xe,...ee},ownerState:Y,className:St(Me.root,d),ref:n,additionalProps:{disabled:v,error:S,fullWidth:w,required:le,color:h,variant:F}}),[st,Mt]=nn("input",{elementType:He,externalForwardedProps:Xe,additionalProps:Qe,ownerState:Y}),[Kt,xt]=nn("inputLabel",{elementType:v_,externalForwardedProps:Xe,ownerState:Y}),[Ut,hn]=nn("htmlInput",{elementType:"input",externalForwardedProps:Xe,ownerState:Y}),[mn,at]=nn("formHelperText",{elementType:f_,externalForwardedProps:Xe,ownerState:Y}),[At,Rn]=nn("select",{elementType:xg,externalForwardedProps:Xe,ownerState:Y}),Bt=H.jsx(st,{"aria-describedby":_e,autoComplete:o,autoFocus:s,defaultValue:y,fullWidth:w,multiline:X,name:se,rows:Q,maxRows:L,minRows:U,type:we,value:te,id:Se,inputRef:B,onBlur:ce,onChange:ie,onFocus:ue,placeholder:$,inputProps:hn,slots:{input:ae.htmlInput?Ut:void 0},...Mt});return H.jsxs(Be,{...Re,children:[V!=null&&V!==""&&H.jsx(Kt,{htmlFor:Se,id:je,...xt,children:V}),oe?H.jsx(At,{"aria-describedby":_e,id:Se,labelId:je,value:te,input:Bt,...Rn,children:c}):Bt,C&&H.jsx(mn,{id:_e,...at,children:C})]})});rD.NODE_ENV!=="production"&&(xl.propTypes={autoComplete:p.string,autoFocus:p.bool,children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["primary","secondary","error","info","success","warning"]),p.string]),defaultValue:p.any,disabled:p.bool,error:p.bool,FormHelperTextProps:p.object,fullWidth:p.bool,helperText:p.node,id:p.string,InputLabelProps:p.object,inputProps:p.object,InputProps:p.object,inputRef:ho,label:p.node,margin:p.oneOf(["dense","none","normal"]),maxRows:p.oneOfType([p.number,p.string]),minRows:p.oneOfType([p.number,p.string]),multiline:p.bool,name:p.string,onBlur:p.func,onChange:p.func,onFocus:p.func,placeholder:p.string,required:p.bool,rows:p.oneOfType([p.number,p.string]),select:p.bool,SelectProps:p.object,size:p.oneOfType([p.oneOf(["medium","small"]),p.string]),slotProps:p.shape({formHelperText:p.oneOfType([p.func,p.object]),htmlInput:p.oneOfType([p.func,p.object]),input:p.oneOfType([p.func,p.object]),inputLabel:p.oneOfType([p.func,p.object]),select:p.oneOfType([p.func,p.object])}),slots:p.shape({formHelperText:p.elementType,htmlInput:p.elementType,input:p.elementType,inputLabel:p.elementType,root:p.elementType,select:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),type:p.string,value:p.any,variant:p.oneOf(["filled","outlined","standard"])});const nte=({model:e,fontSize:t="small"})=>{if(!e)return H.jsx(KM,{fontSize:t});switch(e){case"OPENAI":return H.jsx(gh,{fontSize:t,viewBox:"0 0 24 24",children:H.jsx("path",{d:"M22.282 9.821a5.985 5.985 0 0 0-.516-4.91 6.046 6.046 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a5.985 5.985 0 0 0-3.998 2.9 6.046 6.046 0 0 0 .743 7.097 5.98 5.98 0 0 0 .51 4.911 6.051 6.051 0 0 0 6.515 2.9A5.985 5.985 0 0 0 13.26 24a6.056 6.056 0 0 0 5.772-4.206 5.99 5.99 0 0 0 3.997-2.9 6.056 6.056 0 0 0-.747-7.073zM13.26 22.43a4.476 4.476 0 0 1-2.876-1.04l.141-.081 4.779-2.758a.795.795 0 0 0 .392-.681v-6.737l2.02 1.168a.071.071 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494zM3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085 4.783 2.759a.78.78 0 0 0 .78 0l5.843-3.369v2.332a.074.074 0 0 1-.028.057l-4.832 2.795a4.504 4.504 0 0 1-6.153-1.645zm-.856-8.246a4.476 4.476 0 0 1 2.346-1.973l-.004.162v5.517a.787.787 0 0 0 .392.681l5.843 3.369-2.02 1.168a.069.069 0 0 1-.066 0l-4.827-2.79a4.504 4.504 0 0 1-1.664-6.134zm16.008 3.73-5.843-3.369 2.02-1.168a.07.07 0 0 1 .066 0l4.827 2.79a4.494 4.494 0 0 1-1.12 8.107v-5.517a.795.795 0 0 0-.397-.681zm2.253-3.395a4.47 4.47 0 0 1-.535.983l-.142-.085-4.779-2.759a.78.78 0 0 0-.78 0L8.927 11.9V9.569a.07.07 0 0 1 .028-.057l4.827-2.79a4.504 4.504 0 0 1 6.682 2.771zm-12.35 3.369-2.02-1.168a.067.067 0 0 1-.037-.052V7.967a4.504 4.504 0 0 1 7.37-3.454l-.142.081-4.779 2.759a.795.795 0 0 0-.392.681zm1.069-2.332 2.606-1.507 2.606 1.507v3.014l-2.606 1.507-2.606-1.507z"})});case"ANTHROPIC_CLAUDE":return H.jsxs(gh,{fontSize:t,viewBox:"0 0 24 24",children:[H.jsx("path",{d:"M15.5 2.25a4.25 4.25 0 0 0-4.25 4.25h-2.5A6.75 6.75 0 0 1 15.5 0h2.5v2.25zM2.25 8.5A4.25 4.25 0 0 0 6.5 12.75v2.5A6.75 6.75 0 0 1 0 8.5v-2.5h2.25zM8.5 21.75a4.25 4.25 0 0 0 4.25-4.25h2.5A6.75 6.75 0 0 1 8.5 24H6v-2.25zM21.75 15.5a4.25 4.25 0 0 0-4.25-4.25v-2.5A6.75 6.75 0 0 1 24 15.5V18h-2.25z"}),H.jsx("path",{d:"M12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0 8a3 3 0 1 1 0-6 3 3 0 0 1 0 6z"})]});case"GOOGLE_GEMINI":return H.jsx(gh,{fontSize:t,viewBox:"0 0 24 24",children:H.jsx("path",{d:"M4 12c0-4.41 3.59-8 8-8s8 3.59 8 8-3.59 8-8 8-8-3.59-8-8m8-10c-5.51 0-10 4.49-10 10s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2m2.5 10c0 1.38-1.12 2.5-2.5 2.5S9.5 13.38 9.5 12 10.62 9.5 12 9.5s2.5 1.12 2.5 2.5M12 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6m0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4"})});default:return H.jsx(KM,{fontSize:t})}},rte=({enabledModels:e})=>{const t=Yu("settings"),n=Yu("chat"),i=t.state,o=(d,h)=>{const y=t.state,v={...y,llm:{...y.llm,models:{...y.llm.models,[d]:{...y.llm.models[d],version:h,enabled:!0}}}};t.saveSettings(v),n.updateWelcomeMessage()},s=d=>{const h=Tv[d],y=h.labels;return h.options.map(v=>{const S=v;return{label:y[S],value:S}})},c=d=>{const h=Tv[d],y=i.llm.models[d].version,v=h.options;return!y||!v.includes(y)?h.default:y};return H.jsx(xi,{sx:{mt:2,display:"flex",flexDirection:"column",gap:1},children:e.map(d=>H.jsxs(xi,{sx:{display:"flex",alignItems:"center",gap:1},children:[H.jsxs(Hr,{variant:"body2",sx:{minWidth:100},children:[d.name,":"]}),H.jsx(Hi,{size:"small",sx:{minWidth:200},children:H.jsx(xg,{value:c(d.modelKey),onChange:h=>o(d.modelKey,h.target.value),"aria-label":`Select ${d.name} version`,MenuProps:{disablePortal:!0,PaperProps:{sx:{maxHeight:200}}},children:s(d.modelKey).map(h=>H.jsx(Ah,{value:h.value,children:h.label},h.value))})})]},d.modelKey))})};function ede(){}function tde(){}function iD(e){const t=[],n=String(e||"");let i=n.indexOf(","),o=0,s=!1;for(;!s;){i===-1&&(i=n.length,s=!0);const c=n.slice(o,i).trim();(c||!s)&&t.push(c),o=i+1,i=n.indexOf(",",o)}return t}function ite(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const ate=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ote=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,lte={};function aD(e,t){return(lte.jsx?ote:ate).test(e)}const ste=/[ \t\n\f\r]/g;function ute(e){return typeof e=="object"?e.type==="text"?oD(e.value):!1:oD(e)}function oD(e){return e.replace(ste,"")===""}class yb{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}yb.prototype.normal={},yb.prototype.property={},yb.prototype.space=void 0;function lD(e,t){const n={},i={};for(const o of e)Object.assign(n,o.property),Object.assign(i,o.normal);return new yb(n,i,t)}function vb(e){return e.toLowerCase()}class Ho{constructor(t,n){this.attribute=n,this.property=t}}Ho.prototype.attribute="",Ho.prototype.booleanish=!1,Ho.prototype.boolean=!1,Ho.prototype.commaOrSpaceSeparated=!1,Ho.prototype.commaSeparated=!1,Ho.prototype.defined=!1,Ho.prototype.mustUseProperty=!1,Ho.prototype.number=!1,Ho.prototype.overloadedBoolean=!1,Ho.prototype.property="",Ho.prototype.spaceSeparated=!1,Ho.prototype.space=void 0;let cte=0;const Tn=Ch(),_i=Ch(),Q7=Ch(),dt=Ch(),_r=Ch(),Eg=Ch(),Sl=Ch();function Ch(){return 2**++cte}const K7=Object.freeze(Object.defineProperty({__proto__:null,boolean:Tn,booleanish:_i,commaOrSpaceSeparated:Sl,commaSeparated:Eg,number:dt,overloadedBoolean:Q7,spaceSeparated:_r},Symbol.toStringTag,{value:"Module"})),Z7=Object.keys(K7);class J7 extends Ho{constructor(t,n,i,o){let s=-1;if(super(t,n),sD(this,"space",o),typeof i=="number")for(;++s<Z7.length;){const c=Z7[s];sD(this,Z7[s],(i&K7[c])===K7[c])}}}J7.prototype.defined=!0;function sD(e,t,n){n&&(e[t]=n)}function wg(e){const t={},n={};for(const[i,o]of Object.entries(e.properties)){const s=new J7(i,e.transform(e.attributes||{},i),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,n[vb(i)]=i,n[vb(s.attribute)]=i}return new yb(t,n,e.space)}const uD=wg({properties:{ariaActiveDescendant:null,ariaAtomic:_i,ariaAutoComplete:null,ariaBusy:_i,ariaChecked:_i,ariaColCount:dt,ariaColIndex:dt,ariaColSpan:dt,ariaControls:_r,ariaCurrent:null,ariaDescribedBy:_r,ariaDetails:null,ariaDisabled:_i,ariaDropEffect:_r,ariaErrorMessage:null,ariaExpanded:_i,ariaFlowTo:_r,ariaGrabbed:_i,ariaHasPopup:null,ariaHidden:_i,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_r,ariaLevel:dt,ariaLive:null,ariaModal:_i,ariaMultiLine:_i,ariaMultiSelectable:_i,ariaOrientation:null,ariaOwns:_r,ariaPlaceholder:null,ariaPosInSet:dt,ariaPressed:_i,ariaReadOnly:_i,ariaRelevant:null,ariaRequired:_i,ariaRoleDescription:_r,ariaRowCount:dt,ariaRowIndex:dt,ariaRowSpan:dt,ariaSelected:_i,ariaSetSize:dt,ariaSort:null,ariaValueMax:dt,ariaValueMin:dt,ariaValueNow:dt,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function cD(e,t){return t in e?e[t]:t}function fD(e,t){return cD(e,t.toLowerCase())}const fte=wg({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Eg,acceptCharset:_r,accessKey:_r,action:null,allow:null,allowFullScreen:Tn,allowPaymentRequest:Tn,allowUserMedia:Tn,alt:null,as:null,async:Tn,autoCapitalize:null,autoComplete:_r,autoFocus:Tn,autoPlay:Tn,blocking:_r,capture:null,charSet:null,checked:Tn,cite:null,className:_r,cols:dt,colSpan:null,content:null,contentEditable:_i,controls:Tn,controlsList:_r,coords:dt|Eg,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Tn,defer:Tn,dir:null,dirName:null,disabled:Tn,download:Q7,draggable:_i,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Tn,formTarget:null,headers:_r,height:dt,hidden:Q7,high:dt,href:null,hrefLang:null,htmlFor:_r,httpEquiv:_r,id:null,imageSizes:null,imageSrcSet:null,inert:Tn,inputMode:null,integrity:null,is:null,isMap:Tn,itemId:null,itemProp:_r,itemRef:_r,itemScope:Tn,itemType:_r,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Tn,low:dt,manifest:null,max:null,maxLength:dt,media:null,method:null,min:null,minLength:dt,multiple:Tn,muted:Tn,name:null,nonce:null,noModule:Tn,noValidate:Tn,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Tn,optimum:dt,pattern:null,ping:_r,placeholder:null,playsInline:Tn,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Tn,referrerPolicy:null,rel:_r,required:Tn,reversed:Tn,rows:dt,rowSpan:dt,sandbox:_r,scope:null,scoped:Tn,seamless:Tn,selected:Tn,shadowRootClonable:Tn,shadowRootDelegatesFocus:Tn,shadowRootMode:null,shape:null,size:dt,sizes:null,slot:null,span:dt,spellCheck:_i,src:null,srcDoc:null,srcLang:null,srcSet:null,start:dt,step:null,style:null,tabIndex:dt,target:null,title:null,translate:null,type:null,typeMustMatch:Tn,useMap:null,value:_i,width:dt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:_r,axis:null,background:null,bgColor:null,border:dt,borderColor:null,bottomMargin:dt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Tn,declare:Tn,event:null,face:null,frame:null,frameBorder:null,hSpace:dt,leftMargin:dt,link:null,longDesc:null,lowSrc:null,marginHeight:dt,marginWidth:dt,noResize:Tn,noHref:Tn,noShade:Tn,noWrap:Tn,object:null,profile:null,prompt:null,rev:null,rightMargin:dt,rules:null,scheme:null,scrolling:_i,standby:null,summary:null,text:null,topMargin:dt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:dt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Tn,disableRemotePlayback:Tn,prefix:null,property:null,results:dt,security:null,unselectable:null},space:"html",transform:fD}),dte=wg({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Sl,accentHeight:dt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:dt,amplitude:dt,arabicForm:null,ascent:dt,attributeName:null,attributeType:null,azimuth:dt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:dt,by:null,calcMode:null,capHeight:dt,className:_r,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:dt,diffuseConstant:dt,direction:null,display:null,dur:null,divisor:dt,dominantBaseline:null,download:Tn,dx:null,dy:null,edgeMode:null,editable:null,elevation:dt,enableBackground:null,end:null,event:null,exponent:dt,externalResourcesRequired:null,fill:null,fillOpacity:dt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Eg,g2:Eg,glyphName:Eg,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:dt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:dt,horizOriginX:dt,horizOriginY:dt,id:null,ideographic:dt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:dt,k:dt,k1:dt,k2:dt,k3:dt,k4:dt,kernelMatrix:Sl,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:dt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:dt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:dt,overlineThickness:dt,paintOrder:null,panose1:null,path:null,pathLength:dt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:_r,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:dt,pointsAtY:dt,pointsAtZ:dt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Sl,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Sl,rev:Sl,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Sl,requiredFeatures:Sl,requiredFonts:Sl,requiredFormats:Sl,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:dt,specularExponent:dt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:dt,strikethroughThickness:dt,string:null,stroke:null,strokeDashArray:Sl,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:dt,strokeOpacity:dt,strokeWidth:null,style:null,surfaceScale:dt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Sl,tabIndex:dt,tableValues:null,target:null,targetX:dt,targetY:dt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Sl,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:dt,underlineThickness:dt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:dt,values:null,vAlphabetic:dt,vMathematical:dt,vectorEffect:null,vHanging:dt,vIdeographic:dt,version:null,vertAdvY:dt,vertOriginX:dt,vertOriginY:dt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:dt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:cD}),dD=wg({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),hD=wg({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:fD}),pD=wg({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),hte={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},pte=/[A-Z]/g,mD=/-[a-z]/g,mte=/^data[-\w.:]+$/i;function gD(e,t){const n=vb(t);let i=t,o=Ho;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&mte.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(mD,yte);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!mD.test(s)){let c=s.replace(pte,gte);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}o=J7}return new o(i,t)}function gte(e){return"-"+e.toLowerCase()}function yte(e){return e.charAt(1).toUpperCase()}const yD=lD([uD,fte,dD,hD,pD],"html"),z3=lD([uD,dte,dD,hD,pD],"svg");function vD(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function vte(e){return e.join(" ").trim()}var Tg={},eT,bD;function bte(){if(bD)return eT;bD=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,h=`
|
|
650
650
|
`,y="/",v="*",S="",T="comment",w="declaration";function C(_,N){if(typeof _!="string")throw new TypeError("First argument must be a string");if(!_)return[];N=N||{};var z=1,B=1;function V(Q){var oe=Q.match(t);oe&&(z+=oe.length);var Z=Q.lastIndexOf(h);B=~Z?Q.length-Z:B+Q.length}function L(){var Q={line:z,column:B};return function(oe){return oe.position=new U(Q),ce(),oe}}function U(Q){this.start=Q,this.end={line:z,column:B},this.source=N.source}U.prototype.content=_;function X(Q){var oe=new Error(N.source+":"+z+":"+B+": "+Q);if(oe.reason=Q,oe.filename=N.source,oe.line=z,oe.column=B,oe.source=_,!N.silent)throw oe}function se(Q){var oe=Q.exec(_);if(oe){var Z=oe[0];return V(Z),_=_.slice(Z.length),oe}}function ce(){se(n)}function ie(Q){var oe;for(Q=Q||[];oe=ue();)oe!==!1&&Q.push(oe);return Q}function ue(){var Q=L();if(!(y!=_.charAt(0)||v!=_.charAt(1))){for(var oe=2;S!=_.charAt(oe)&&(v!=_.charAt(oe)||y!=_.charAt(oe+1));)++oe;if(oe+=2,S===_.charAt(oe-1))return X("End of comment missing");var Z=_.slice(2,oe-2);return B+=2,V(Z),_=_.slice(oe),B+=2,Q({type:T,comment:Z})}}function $(){var Q=L(),oe=se(i);if(oe){if(ue(),!se(o))return X("property missing ':'");var Z=se(s),ae=Q({type:w,property:R(oe[0].replace(e,S)),value:Z?R(Z[0].replace(e,S)):S});return se(c),ae}}function le(){var Q=[];ie(Q);for(var oe;oe=$();)oe!==!1&&(Q.push(oe),ie(Q));return Q}return ce(),le()}function R(_){return _?_.replace(d,S):S}return eT=C,eT}var xD;function xte(){if(xD)return Tg;xD=1;var e=Tg&&Tg.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Tg,"__esModule",{value:!0}),Tg.default=n;const t=e(bte());function n(i,o){let s=null;if(!i||typeof i!="string")return s;const c=(0,t.default)(i),d=typeof o=="function";return c.forEach(h=>{if(h.type!=="declaration")return;const{property:y,value:v}=h;d?o(y,v,h):v&&(s=s||{},s[y]=v)}),s}return Tg}var bb={},SD;function Ste(){if(SD)return bb;SD=1,Object.defineProperty(bb,"__esModule",{value:!0}),bb.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(y){return!y||n.test(y)||e.test(y)},c=function(y,v){return v.toUpperCase()},d=function(y,v){return"".concat(v,"-")},h=function(y,v){return v===void 0&&(v={}),s(y)?y:(y=y.toLowerCase(),v.reactCompat?y=y.replace(o,d):y=y.replace(i,d),y.replace(t,c))};return bb.camelCase=h,bb}var xb,ED;function Ete(){if(ED)return xb;ED=1;var e=xb&&xb.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(xte()),n=Ste();function i(o,s){var c={};return!o||typeof o!="string"||(0,t.default)(o,function(d,h){d&&h&&(c[(0,n.camelCase)(d,s)]=h)}),c}return i.default=i,xb=i,xb}var wte=Ete();const Tte=pl(wte),wD=TD("end"),tT=TD("start");function TD(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function AD(e){const t=tT(e),n=wD(e);if(t&&n)return{start:t,end:n}}function Sb(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?CD(e.position):"start"in e||"end"in e?CD(e):"line"in e||"column"in e?nT(e):""}function nT(e){return OD(e&&e.line)+":"+OD(e&&e.column)}function CD(e){return nT(e&&e.start)+"-"+nT(e&&e.end)}function OD(e){return e&&typeof e=="number"?e:1}class $a extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let o="",s={},c=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?o=t:!s.cause&&t&&(c=!0,o=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof i=="string"){const h=i.indexOf(":");h===-1?s.ruleId=i:(s.source=i.slice(0,h),s.ruleId=i.slice(h+1))}if(!s.place&&s.ancestors&&s.ancestors){const h=s.ancestors[s.ancestors.length-1];h&&(s.place=h.position)}const d=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=d?d.line:void 0,this.name=Sb(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=c&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}$a.prototype.file="",$a.prototype.name="",$a.prototype.reason="",$a.prototype.message="",$a.prototype.stack="",$a.prototype.column=void 0,$a.prototype.line=void 0,$a.prototype.ancestors=void 0,$a.prototype.cause=void 0,$a.prototype.fatal=void 0,$a.prototype.place=void 0,$a.prototype.ruleId=void 0,$a.prototype.source=void 0;const rT={}.hasOwnProperty,Ate=new Map,Cte=/[A-Z]/g,Ote=new Set(["table","tbody","thead","tfoot","tr"]),Mte=new Set(["td","th"]),MD="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Rte(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=Vte(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=Lte(n,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?z3:yD,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=RD(o,e,void 0);return s&&typeof s!="string"?s:o.create(e,o.Fragment,{children:s||void 0},void 0)}function RD(e,t,n){if(t.type==="element")return _te(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Dte(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return kte(e,t,n);if(t.type==="mdxjsEsm")return Nte(e,t);if(t.type==="root")return zte(e,t,n);if(t.type==="text")return Ite(e,t)}function _te(e,t,n){const i=e.schema;let o=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(o=z3,e.schema=o),e.ancestors.push(t);const s=DD(e,t.tagName,!1),c=Bte(e,t);let d=aT(e,t);return Ote.has(t.tagName)&&(d=d.filter(function(h){return typeof h=="string"?!ute(h):!0})),_D(e,c,s,t),iT(c,d),e.ancestors.pop(),e.schema=i,e.create(t,s,c,n)}function Dte(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Eb(e,t.position)}function Nte(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Eb(e,t.position)}function kte(e,t,n){const i=e.schema;let o=i;t.name==="svg"&&i.space==="html"&&(o=z3,e.schema=o),e.ancestors.push(t);const s=t.name===null?e.Fragment:DD(e,t.name,!0),c=jte(e,t),d=aT(e,t);return _D(e,c,s,t),iT(c,d),e.ancestors.pop(),e.schema=i,e.create(t,s,c,n)}function zte(e,t,n){const i={};return iT(i,aT(e,t)),e.create(t,e.Fragment,i,n)}function Ite(e,t){return t.value}function _D(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function iT(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Lte(e,t,n){return i;function i(o,s,c,d){const y=Array.isArray(c.children)?n:t;return d?y(s,c,d):y(s,c)}}function Vte(e,t){return n;function n(i,o,s,c){const d=Array.isArray(s.children),h=tT(i);return t(o,s,c,d,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function Bte(e,t){const n={};let i,o;for(o in t.properties)if(o!=="children"&&rT.call(t.properties,o)){const s=Pte(e,o,t.properties[o]);if(s){const[c,d]=s;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&Mte.has(t.tagName)?i=d:n[c]=d}}if(i){const s=n.style||(n.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function jte(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const s=i.data.estree.body[0];s.type;const c=s.expression;c.type;const d=c.properties[0];d.type,Object.assign(n,e.evaluater.evaluateExpression(d.argument))}else Eb(e,t.position);else{const o=i.name;let s;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const d=i.value.data.estree.body[0];d.type,s=e.evaluater.evaluateExpression(d.expression)}else Eb(e,t.position);else s=i.value===null?!0:i.value;n[o]=s}return n}function aT(e,t){const n=[];let i=-1;const o=e.passKeys?new Map:Ate;for(;++i<t.children.length;){const s=t.children[i];let c;if(e.passKeys){const h=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(h){const y=o.get(h)||0;c=h+"-"+y,o.set(h,y+1)}}const d=RD(e,s,c);d!==void 0&&n.push(d)}return n}function Pte(e,t,n){const i=gD(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?ite(n):vte(n)),i.property==="style"){let o=typeof n=="object"?n:Ute(e,String(n));return e.stylePropertyNameCase==="css"&&(o=$te(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&i.space?hte[i.property]||i.property:i.attribute,n]}}function Ute(e,t){try{return Tte(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,o=new $a("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=MD+"#cannot-parse-style-attribute",o}}function DD(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let s=-1,c;for(;++s<o.length;){const d=aD(o[s])?{type:"Identifier",name:o[s]}:{type:"Literal",value:o[s]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(s&&d.type==="Literal"),optional:!1}:d}i=c}else i=aD(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const o=i.value;return rT.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(i);Eb(e)}function Eb(e,t){const n=new $a("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=MD+"#cannot-handle-mdx-estrees-without-createevaluater",n}function $te(e){const t={};let n;for(n in e)rT.call(e,n)&&(t[Hte(n)]=e[n]);return t}function Hte(e){let t=e.replace(Cte,qte);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function qte(e){return"-"+e.toLowerCase()}const oT={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Gte={};function lT(e,t){const n=Gte,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,o=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return ND(e,i,o)}function ND(e,t,n){if(Fte(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return kD(e.children,t,n)}return Array.isArray(e)?kD(e,t,n):""}function kD(e,t,n){const i=[];let o=-1;for(;++o<e.length;)i[o]=ND(e[o],t,n);return i.join("")}function Fte(e){return!!(e&&typeof e=="object")}const zD=document.createElement("i");function sT(e){const t="&"+e+";";zD.innerHTML=t;const n=zD.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function El(e,t,n,i){const o=e.length;let s=0,c;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,i.length<1e4)c=Array.from(i),c.unshift(t,n),e.splice(...c);else for(n&&e.splice(t,n);s<i.length;)c=i.slice(s,s+1e4),c.unshift(t,0),e.splice(...c),s+=1e4,t+=1e4}function ts(e,t){return e.length>0?(El(e,e.length,0,t),e):t}const ID={}.hasOwnProperty;function LD(e){const t={};let n=-1;for(;++n<e.length;)Yte(t,e[n]);return t}function Yte(e,t){let n;for(n in t){const o=(ID.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let c;if(s)for(c in s){ID.call(o,c)||(o[c]=[]);const d=s[c];Xte(o[c],Array.isArray(d)?d:d?[d]:[])}}}function Xte(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);El(e,0,0,i)}function VD(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function cu(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const mo=Id(/[A-Za-z]/),Ha=Id(/[\dA-Za-z]/),Wte=Id(/[#-'*+\--9=?A-Z^-~]/);function I3(e){return e!==null&&(e<32||e===127)}const uT=Id(/\d/),Qte=Id(/[\dA-Fa-f]/),Kte=Id(/[!-/:-@[-`{-~]/);function It(e){return e!==null&&e<-2}function Ar(e){return e!==null&&(e<0||e===32)}function Vn(e){return e===-2||e===-1||e===32}const L3=Id(new RegExp("\\p{P}|\\p{S}","u")),Oh=Id(/\s/);function Id(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ag(e){const t=[];let n=-1,i=0,o=0;for(;++n<e.length;){const s=e.charCodeAt(n);let c="";if(s===37&&Ha(e.charCodeAt(n+1))&&Ha(e.charCodeAt(n+2)))o=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(c=String.fromCharCode(s));else if(s>55295&&s<57344){const d=e.charCodeAt(n+1);s<56320&&d>56319&&d<57344?(c=String.fromCharCode(s,d),o=1):c="�"}else c=String.fromCharCode(s);c&&(t.push(e.slice(i,n),encodeURIComponent(c)),i=n+o+1,c=""),o&&(n+=o,o=0)}return t.join("")+e.slice(i)}function Nn(e,t,n,i){const o=i?i-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(h){return Vn(h)?(e.enter(n),d(h)):t(h)}function d(h){return Vn(h)&&s++<o?(e.consume(h),d):(e.exit(n),t(h))}}const Zte={tokenize:Jte};function Jte(e){const t=e.attempt(this.parser.constructs.contentInitial,i,o);let n;return t;function i(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Nn(e,t,"linePrefix")}function o(d){return e.enter("paragraph"),s(d)}function s(d){const h=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=h),n=h,c(d)}function c(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return It(d)?(e.consume(d),e.exit("chunkText"),s):(e.consume(d),c)}}const ene={tokenize:tne},BD={tokenize:nne};function tne(e){const t=this,n=[];let i=0,o,s,c;return d;function d(B){if(i<n.length){const V=n[i];return t.containerState=V[1],e.attempt(V[0].continuation,h,y)(B)}return y(B)}function h(B){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&z();const V=t.events.length;let L=V,U;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){U=t.events[L][1].end;break}N(i);let X=V;for(;X<t.events.length;)t.events[X][1].end={...U},X++;return El(t.events,L+1,0,t.events.slice(V)),t.events.length=X,y(B)}return d(B)}function y(B){if(i===n.length){if(!o)return T(B);if(o.currentConstruct&&o.currentConstruct.concrete)return C(B);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(BD,v,S)(B)}function v(B){return o&&z(),N(i),T(B)}function S(B){return t.parser.lazy[t.now().line]=i!==n.length,c=t.now().offset,C(B)}function T(B){return t.containerState={},e.attempt(BD,w,C)(B)}function w(B){return i++,n.push([t.currentConstruct,t.containerState]),T(B)}function C(B){if(B===null){o&&z(),N(0),e.consume(B);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:s}),R(B)}function R(B){if(B===null){_(e.exit("chunkFlow"),!0),N(0),e.consume(B);return}return It(B)?(e.consume(B),_(e.exit("chunkFlow")),i=0,t.interrupt=void 0,d):(e.consume(B),R)}function _(B,V){const L=t.sliceStream(B);if(V&&L.push(null),B.previous=s,s&&(s.next=B),s=B,o.defineSkip(B.start),o.write(L),t.parser.lazy[B.start.line]){let U=o.events.length;for(;U--;)if(o.events[U][1].start.offset<c&&(!o.events[U][1].end||o.events[U][1].end.offset>c))return;const X=t.events.length;let se=X,ce,ie;for(;se--;)if(t.events[se][0]==="exit"&&t.events[se][1].type==="chunkFlow"){if(ce){ie=t.events[se][1].end;break}ce=!0}for(N(i),U=X;U<t.events.length;)t.events[U][1].end={...ie},U++;El(t.events,se+1,0,t.events.slice(X)),t.events.length=U}}function N(B){let V=n.length;for(;V-- >B;){const L=n[V];t.containerState=L[1],L[0].exit.call(t,e)}n.length=B}function z(){o.write([null]),s=void 0,o=void 0,t.containerState._closeFlow=void 0}}function nne(e,t,n){return Nn(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Cg(e){if(e===null||Ar(e)||Oh(e))return 1;if(L3(e))return 2}function V3(e,t,n){const i=[];let o=-1;for(;++o<e.length;){const s=e[o].resolveAll;s&&!i.includes(s)&&(t=s(t,n),i.push(s))}return t}const cT={name:"attention",resolveAll:rne,tokenize:ine};function rne(e,t){let n=-1,i,o,s,c,d,h,y,v;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;h=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const S={...e[i][1].end},T={...e[n][1].start};jD(S,-h),jD(T,h),c={type:h>1?"strongSequence":"emphasisSequence",start:S,end:{...e[i][1].end}},d={type:h>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:T},s={type:h>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},o={type:h>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},e[i][1].end={...c.start},e[n][1].start={...d.end},y=[],e[i][1].end.offset-e[i][1].start.offset&&(y=ts(y,[["enter",e[i][1],t],["exit",e[i][1],t]])),y=ts(y,[["enter",o,t],["enter",c,t],["exit",c,t],["enter",s,t]]),y=ts(y,V3(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),y=ts(y,[["exit",s,t],["enter",d,t],["exit",d,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(v=2,y=ts(y,[["enter",e[n][1],t],["exit",e[n][1],t]])):v=0,El(e,i-1,n-i+3,y),n=i+y.length-v-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function ine(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,o=Cg(i);let s;return c;function c(h){return s=h,e.enter("attentionSequence"),d(h)}function d(h){if(h===s)return e.consume(h),d;const y=e.exit("attentionSequence"),v=Cg(h),S=!v||v===2&&o||n.includes(h),T=!o||o===2&&v||n.includes(i);return y._open=!!(s===42?S:S&&(o||!T)),y._close=!!(s===42?T:T&&(v||!S)),t(h)}}function jD(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const ane={name:"autolink",tokenize:one};function one(e,t,n){let i=0;return o;function o(w){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(w){return mo(w)?(e.consume(w),c):w===64?n(w):y(w)}function c(w){return w===43||w===45||w===46||Ha(w)?(i=1,d(w)):y(w)}function d(w){return w===58?(e.consume(w),i=0,h):(w===43||w===45||w===46||Ha(w))&&i++<32?(e.consume(w),d):(i=0,y(w))}function h(w){return w===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):w===null||w===32||w===60||I3(w)?n(w):(e.consume(w),h)}function y(w){return w===64?(e.consume(w),v):Wte(w)?(e.consume(w),y):n(w)}function v(w){return Ha(w)?S(w):n(w)}function S(w){return w===46?(e.consume(w),i=0,v):w===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):T(w)}function T(w){if((w===45||Ha(w))&&i++<63){const C=w===45?T:S;return e.consume(w),C}return n(w)}}const wb={partial:!0,tokenize:lne};function lne(e,t,n){return i;function i(s){return Vn(s)?Nn(e,o,"linePrefix")(s):o(s)}function o(s){return s===null||It(s)?t(s):n(s)}}const PD={continuation:{tokenize:une},exit:cne,name:"blockQuote",tokenize:sne};function sne(e,t,n){const i=this;return o;function o(c){if(c===62){const d=i.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),s}return n(c)}function s(c){return Vn(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(c))}}function une(e,t,n){const i=this;return o;function o(c){return Vn(c)?Nn(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):s(c)}function s(c){return e.attempt(PD,t,n)(c)}}function cne(e){e.exit("blockQuote")}const UD={name:"characterEscape",tokenize:fne};function fne(e,t,n){return i;function i(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),o}function o(s){return Kte(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const $D={name:"characterReference",tokenize:dne};function dne(e,t,n){const i=this;let o=0,s,c;return d;function d(S){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(S),e.exit("characterReferenceMarker"),h}function h(S){return S===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(S),e.exit("characterReferenceMarkerNumeric"),y):(e.enter("characterReferenceValue"),s=31,c=Ha,v(S))}function y(S){return S===88||S===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(S),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,c=Qte,v):(e.enter("characterReferenceValue"),s=7,c=uT,v(S))}function v(S){if(S===59&&o){const T=e.exit("characterReferenceValue");return c===Ha&&!sT(i.sliceSerialize(T))?n(S):(e.enter("characterReferenceMarker"),e.consume(S),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return c(S)&&o++<s?(e.consume(S),v):n(S)}}const HD={partial:!0,tokenize:pne},qD={concrete:!0,name:"codeFenced",tokenize:hne};function hne(e,t,n){const i=this,o={partial:!0,tokenize:L};let s=0,c=0,d;return h;function h(U){return y(U)}function y(U){const X=i.events[i.events.length-1];return s=X&&X[1].type==="linePrefix"?X[2].sliceSerialize(X[1],!0).length:0,d=U,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),v(U)}function v(U){return U===d?(c++,e.consume(U),v):c<3?n(U):(e.exit("codeFencedFenceSequence"),Vn(U)?Nn(e,S,"whitespace")(U):S(U))}function S(U){return U===null||It(U)?(e.exit("codeFencedFence"),i.interrupt?t(U):e.check(HD,R,V)(U)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),T(U))}function T(U){return U===null||It(U)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),S(U)):Vn(U)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Nn(e,w,"whitespace")(U)):U===96&&U===d?n(U):(e.consume(U),T)}function w(U){return U===null||It(U)?S(U):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),C(U))}function C(U){return U===null||It(U)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),S(U)):U===96&&U===d?n(U):(e.consume(U),C)}function R(U){return e.attempt(o,V,_)(U)}function _(U){return e.enter("lineEnding"),e.consume(U),e.exit("lineEnding"),N}function N(U){return s>0&&Vn(U)?Nn(e,z,"linePrefix",s+1)(U):z(U)}function z(U){return U===null||It(U)?e.check(HD,R,V)(U):(e.enter("codeFlowValue"),B(U))}function B(U){return U===null||It(U)?(e.exit("codeFlowValue"),z(U)):(e.consume(U),B)}function V(U){return e.exit("codeFenced"),t(U)}function L(U,X,se){let ce=0;return ie;function ie(oe){return U.enter("lineEnding"),U.consume(oe),U.exit("lineEnding"),ue}function ue(oe){return U.enter("codeFencedFence"),Vn(oe)?Nn(U,$,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(oe):$(oe)}function $(oe){return oe===d?(U.enter("codeFencedFenceSequence"),le(oe)):se(oe)}function le(oe){return oe===d?(ce++,U.consume(oe),le):ce>=c?(U.exit("codeFencedFenceSequence"),Vn(oe)?Nn(U,Q,"whitespace")(oe):Q(oe)):se(oe)}function Q(oe){return oe===null||It(oe)?(U.exit("codeFencedFence"),X(oe)):se(oe)}}}function pne(e,t,n){const i=this;return o;function o(c){return c===null?n(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s)}function s(c){return i.parser.lazy[i.now().line]?n(c):t(c)}}const fT={name:"codeIndented",tokenize:gne},mne={partial:!0,tokenize:yne};function gne(e,t,n){const i=this;return o;function o(y){return e.enter("codeIndented"),Nn(e,s,"linePrefix",5)(y)}function s(y){const v=i.events[i.events.length-1];return v&&v[1].type==="linePrefix"&&v[2].sliceSerialize(v[1],!0).length>=4?c(y):n(y)}function c(y){return y===null?h(y):It(y)?e.attempt(mne,c,h)(y):(e.enter("codeFlowValue"),d(y))}function d(y){return y===null||It(y)?(e.exit("codeFlowValue"),c(y)):(e.consume(y),d)}function h(y){return e.exit("codeIndented"),t(y)}}function yne(e,t,n){const i=this;return o;function o(c){return i.parser.lazy[i.now().line]?n(c):It(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):Nn(e,s,"linePrefix",5)(c)}function s(c){const d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):It(c)?o(c):n(c)}}const vne={name:"codeText",previous:xne,resolve:bne,tokenize:Sne};function bne(e){let t=e.length-4,n=3,i,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)o===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(o=i):(i===t||e[i][1].type==="lineEnding")&&(e[o][1].type="codeTextData",i!==o+2&&(e[o][1].end=e[i-1][1].end,e.splice(o+2,i-o-2),t-=i-o-2,i=o+2),o=void 0);return e}function xne(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Sne(e,t,n){let i=0,o,s;return c;function c(S){return e.enter("codeText"),e.enter("codeTextSequence"),d(S)}function d(S){return S===96?(e.consume(S),i++,d):(e.exit("codeTextSequence"),h(S))}function h(S){return S===null?n(S):S===32?(e.enter("space"),e.consume(S),e.exit("space"),h):S===96?(s=e.enter("codeTextSequence"),o=0,v(S)):It(S)?(e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),h):(e.enter("codeTextData"),y(S))}function y(S){return S===null||S===32||S===96||It(S)?(e.exit("codeTextData"),h(S)):(e.consume(S),y)}function v(S){return S===96?(e.consume(S),o++,v):o===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(S)):(s.type="codeTextData",y(S))}}class Ene{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const o=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return i&&Tb(this.left,i),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Tb(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Tb(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Tb(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Tb(this.left,n.reverse())}}}function Tb(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function GD(e){const t={};let n=-1,i,o,s,c,d,h,y;const v=new Ene(e);for(;++n<v.length;){for(;n in t;)n=t[n];if(i=v.get(n),n&&i[1].type==="chunkFlow"&&v.get(n-1)[1].type==="listItemPrefix"&&(h=i[1]._tokenizer.events,s=0,s<h.length&&h[s][1].type==="lineEndingBlank"&&(s+=2),s<h.length&&h[s][1].type==="content"))for(;++s<h.length&&h[s][1].type!=="content";)h[s][1].type==="chunkText"&&(h[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,wne(v,n)),n=t[n],y=!0);else if(i[1]._container){for(s=n,o=void 0;s--;)if(c=v.get(s),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(v.get(o)[1].type="lineEndingBlank"),c[1].type="lineEnding",o=s);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;o&&(i[1].end={...v.get(o)[1].start},d=v.slice(o,n),d.unshift(i),v.splice(o,n-o+1,d))}}return El(e,0,Number.POSITIVE_INFINITY,v.slice(0)),!y}function wne(e,t){const n=e.get(t)[1],i=e.get(t)[2];let o=t-1;const s=[];let c=n._tokenizer;c||(c=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,h=[],y={};let v,S,T=-1,w=n,C=0,R=0;const _=[R];for(;w;){for(;e.get(++o)[1]!==w;);s.push(o),w._tokenizer||(v=i.sliceStream(w),w.next||v.push(null),S&&c.defineSkip(w.start),w._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(v),w._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),S=w,w=w.next}for(w=n;++T<d.length;)d[T][0]==="exit"&&d[T-1][0]==="enter"&&d[T][1].type===d[T-1][1].type&&d[T][1].start.line!==d[T][1].end.line&&(R=T+1,_.push(R),w._tokenizer=void 0,w.previous=void 0,w=w.next);for(c.events=[],w?(w._tokenizer=void 0,w.previous=void 0):_.pop(),T=_.length;T--;){const N=d.slice(_[T],_[T+1]),z=s.pop();h.push([z,z+N.length-1]),e.splice(z,2,N)}for(h.reverse(),T=-1;++T<h.length;)y[C+h[T][0]]=C+h[T][1],C+=h[T][1]-h[T][0]-1;return y}const Tne={resolve:Cne,tokenize:One},Ane={partial:!0,tokenize:Mne};function Cne(e){return GD(e),e}function One(e,t){let n;return i;function i(d){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(d)}function o(d){return d===null?s(d):It(d)?e.check(Ane,c,s)(d):(e.consume(d),o)}function s(d){return e.exit("chunkContent"),e.exit("content"),t(d)}function c(d){return e.consume(d),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function Mne(e,t,n){const i=this;return o;function o(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Nn(e,s,"linePrefix")}function s(c){if(c===null||It(c))return n(c);const d=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):e.interrupt(i.parser.constructs.flow,n,t)(c)}}function FD(e,t,n,i,o,s,c,d,h){const y=h||Number.POSITIVE_INFINITY;let v=0;return S;function S(N){return N===60?(e.enter(i),e.enter(o),e.enter(s),e.consume(N),e.exit(s),T):N===null||N===32||N===41||I3(N)?n(N):(e.enter(i),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),R(N))}function T(N){return N===62?(e.enter(s),e.consume(N),e.exit(s),e.exit(o),e.exit(i),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),w(N))}function w(N){return N===62?(e.exit("chunkString"),e.exit(d),T(N)):N===null||N===60||It(N)?n(N):(e.consume(N),N===92?C:w)}function C(N){return N===60||N===62||N===92?(e.consume(N),w):w(N)}function R(N){return!v&&(N===null||N===41||Ar(N))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(i),t(N)):v<y&&N===40?(e.consume(N),v++,R):N===41?(e.consume(N),v--,R):N===null||N===32||N===40||I3(N)?n(N):(e.consume(N),N===92?_:R)}function _(N){return N===40||N===41||N===92?(e.consume(N),R):R(N)}}function YD(e,t,n,i,o,s){const c=this;let d=0,h;return y;function y(w){return e.enter(i),e.enter(o),e.consume(w),e.exit(o),e.enter(s),v}function v(w){return d>999||w===null||w===91||w===93&&!h||w===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?n(w):w===93?(e.exit(s),e.enter(o),e.consume(w),e.exit(o),e.exit(i),t):It(w)?(e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),v):(e.enter("chunkString",{contentType:"string"}),S(w))}function S(w){return w===null||w===91||w===93||It(w)||d++>999?(e.exit("chunkString"),v(w)):(e.consume(w),h||(h=!Vn(w)),w===92?T:S)}function T(w){return w===91||w===92||w===93?(e.consume(w),d++,S):S(w)}}function XD(e,t,n,i,o,s){let c;return d;function d(T){return T===34||T===39||T===40?(e.enter(i),e.enter(o),e.consume(T),e.exit(o),c=T===40?41:T,h):n(T)}function h(T){return T===c?(e.enter(o),e.consume(T),e.exit(o),e.exit(i),t):(e.enter(s),y(T))}function y(T){return T===c?(e.exit(s),h(c)):T===null?n(T):It(T)?(e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),Nn(e,y,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),v(T))}function v(T){return T===c||T===null||It(T)?(e.exit("chunkString"),y(T)):(e.consume(T),T===92?S:v)}function S(T){return T===c||T===92?(e.consume(T),v):v(T)}}function Ab(e,t){let n;return i;function i(o){return It(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,i):Vn(o)?Nn(e,i,n?"linePrefix":"lineSuffix")(o):t(o)}}const Rne={name:"definition",tokenize:Dne},_ne={partial:!0,tokenize:Nne};function Dne(e,t,n){const i=this;let o;return s;function s(w){return e.enter("definition"),c(w)}function c(w){return YD.call(i,e,d,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(w)}function d(w){return o=cu(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),h):n(w)}function h(w){return Ar(w)?Ab(e,y)(w):y(w)}function y(w){return FD(e,v,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(w)}function v(w){return e.attempt(_ne,S,S)(w)}function S(w){return Vn(w)?Nn(e,T,"whitespace")(w):T(w)}function T(w){return w===null||It(w)?(e.exit("definition"),i.parser.defined.push(o),t(w)):n(w)}}function Nne(e,t,n){return i;function i(d){return Ar(d)?Ab(e,o)(d):n(d)}function o(d){return XD(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function s(d){return Vn(d)?Nn(e,c,"whitespace")(d):c(d)}function c(d){return d===null||It(d)?t(d):n(d)}}const kne={name:"hardBreakEscape",tokenize:zne};function zne(e,t,n){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),o}function o(s){return It(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const Ine={name:"headingAtx",resolve:Lne,tokenize:Vne};function Lne(e,t){let n=e.length-2,i=3,o,s;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(o={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},s={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},El(e,i,n-i+1,[["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t]])),e}function Vne(e,t,n){let i=0;return o;function o(v){return e.enter("atxHeading"),s(v)}function s(v){return e.enter("atxHeadingSequence"),c(v)}function c(v){return v===35&&i++<6?(e.consume(v),c):v===null||Ar(v)?(e.exit("atxHeadingSequence"),d(v)):n(v)}function d(v){return v===35?(e.enter("atxHeadingSequence"),h(v)):v===null||It(v)?(e.exit("atxHeading"),t(v)):Vn(v)?Nn(e,d,"whitespace")(v):(e.enter("atxHeadingText"),y(v))}function h(v){return v===35?(e.consume(v),h):(e.exit("atxHeadingSequence"),d(v))}function y(v){return v===null||v===35||Ar(v)?(e.exit("atxHeadingText"),d(v)):(e.consume(v),y)}}const Bne=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],WD=["pre","script","style","textarea"],jne={concrete:!0,name:"htmlFlow",resolveTo:$ne,tokenize:Hne},Pne={partial:!0,tokenize:Gne},Une={partial:!0,tokenize:qne};function $ne(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Hne(e,t,n){const i=this;let o,s,c,d,h;return y;function y(Y){return v(Y)}function v(Y){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(Y),S}function S(Y){return Y===33?(e.consume(Y),T):Y===47?(e.consume(Y),s=!0,R):Y===63?(e.consume(Y),o=3,i.interrupt?t:te):mo(Y)?(e.consume(Y),c=String.fromCharCode(Y),_):n(Y)}function T(Y){return Y===45?(e.consume(Y),o=2,w):Y===91?(e.consume(Y),o=5,d=0,C):mo(Y)?(e.consume(Y),o=4,i.interrupt?t:te):n(Y)}function w(Y){return Y===45?(e.consume(Y),i.interrupt?t:te):n(Y)}function C(Y){const Me="CDATA[";return Y===Me.charCodeAt(d++)?(e.consume(Y),d===Me.length?i.interrupt?t:$:C):n(Y)}function R(Y){return mo(Y)?(e.consume(Y),c=String.fromCharCode(Y),_):n(Y)}function _(Y){if(Y===null||Y===47||Y===62||Ar(Y)){const Me=Y===47,Se=c.toLowerCase();return!Me&&!s&&WD.includes(Se)?(o=1,i.interrupt?t(Y):$(Y)):Bne.includes(c.toLowerCase())?(o=6,Me?(e.consume(Y),N):i.interrupt?t(Y):$(Y)):(o=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(Y):s?z(Y):B(Y))}return Y===45||Ha(Y)?(e.consume(Y),c+=String.fromCharCode(Y),_):n(Y)}function N(Y){return Y===62?(e.consume(Y),i.interrupt?t:$):n(Y)}function z(Y){return Vn(Y)?(e.consume(Y),z):ie(Y)}function B(Y){return Y===47?(e.consume(Y),ie):Y===58||Y===95||mo(Y)?(e.consume(Y),V):Vn(Y)?(e.consume(Y),B):ie(Y)}function V(Y){return Y===45||Y===46||Y===58||Y===95||Ha(Y)?(e.consume(Y),V):L(Y)}function L(Y){return Y===61?(e.consume(Y),U):Vn(Y)?(e.consume(Y),L):B(Y)}function U(Y){return Y===null||Y===60||Y===61||Y===62||Y===96?n(Y):Y===34||Y===39?(e.consume(Y),h=Y,X):Vn(Y)?(e.consume(Y),U):se(Y)}function X(Y){return Y===h?(e.consume(Y),h=null,ce):Y===null||It(Y)?n(Y):(e.consume(Y),X)}function se(Y){return Y===null||Y===34||Y===39||Y===47||Y===60||Y===61||Y===62||Y===96||Ar(Y)?L(Y):(e.consume(Y),se)}function ce(Y){return Y===47||Y===62||Vn(Y)?B(Y):n(Y)}function ie(Y){return Y===62?(e.consume(Y),ue):n(Y)}function ue(Y){return Y===null||It(Y)?$(Y):Vn(Y)?(e.consume(Y),ue):n(Y)}function $(Y){return Y===45&&o===2?(e.consume(Y),Z):Y===60&&o===1?(e.consume(Y),ae):Y===62&&o===4?(e.consume(Y),F):Y===63&&o===3?(e.consume(Y),te):Y===93&&o===5?(e.consume(Y),we):It(Y)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(Pne,ee,le)(Y)):Y===null||It(Y)?(e.exit("htmlFlowData"),le(Y)):(e.consume(Y),$)}function le(Y){return e.check(Une,Q,ee)(Y)}function Q(Y){return e.enter("lineEnding"),e.consume(Y),e.exit("lineEnding"),oe}function oe(Y){return Y===null||It(Y)?le(Y):(e.enter("htmlFlowData"),$(Y))}function Z(Y){return Y===45?(e.consume(Y),te):$(Y)}function ae(Y){return Y===47?(e.consume(Y),c="",de):$(Y)}function de(Y){if(Y===62){const Me=c.toLowerCase();return WD.includes(Me)?(e.consume(Y),F):$(Y)}return mo(Y)&&c.length<8?(e.consume(Y),c+=String.fromCharCode(Y),de):$(Y)}function we(Y){return Y===93?(e.consume(Y),te):$(Y)}function te(Y){return Y===62?(e.consume(Y),F):Y===45&&o===2?(e.consume(Y),te):$(Y)}function F(Y){return Y===null||It(Y)?(e.exit("htmlFlowData"),ee(Y)):(e.consume(Y),F)}function ee(Y){return e.exit("htmlFlow"),t(Y)}}function qne(e,t,n){const i=this;return o;function o(c){return It(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):n(c)}function s(c){return i.parser.lazy[i.now().line]?n(c):t(c)}}function Gne(e,t,n){return i;function i(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(wb,t,n)}}const Fne={name:"htmlText",tokenize:Yne};function Yne(e,t,n){const i=this;let o,s,c;return d;function d(te){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(te),h}function h(te){return te===33?(e.consume(te),y):te===47?(e.consume(te),L):te===63?(e.consume(te),B):mo(te)?(e.consume(te),se):n(te)}function y(te){return te===45?(e.consume(te),v):te===91?(e.consume(te),s=0,C):mo(te)?(e.consume(te),z):n(te)}function v(te){return te===45?(e.consume(te),w):n(te)}function S(te){return te===null?n(te):te===45?(e.consume(te),T):It(te)?(c=S,ae(te)):(e.consume(te),S)}function T(te){return te===45?(e.consume(te),w):S(te)}function w(te){return te===62?Z(te):te===45?T(te):S(te)}function C(te){const F="CDATA[";return te===F.charCodeAt(s++)?(e.consume(te),s===F.length?R:C):n(te)}function R(te){return te===null?n(te):te===93?(e.consume(te),_):It(te)?(c=R,ae(te)):(e.consume(te),R)}function _(te){return te===93?(e.consume(te),N):R(te)}function N(te){return te===62?Z(te):te===93?(e.consume(te),N):R(te)}function z(te){return te===null||te===62?Z(te):It(te)?(c=z,ae(te)):(e.consume(te),z)}function B(te){return te===null?n(te):te===63?(e.consume(te),V):It(te)?(c=B,ae(te)):(e.consume(te),B)}function V(te){return te===62?Z(te):B(te)}function L(te){return mo(te)?(e.consume(te),U):n(te)}function U(te){return te===45||Ha(te)?(e.consume(te),U):X(te)}function X(te){return It(te)?(c=X,ae(te)):Vn(te)?(e.consume(te),X):Z(te)}function se(te){return te===45||Ha(te)?(e.consume(te),se):te===47||te===62||Ar(te)?ce(te):n(te)}function ce(te){return te===47?(e.consume(te),Z):te===58||te===95||mo(te)?(e.consume(te),ie):It(te)?(c=ce,ae(te)):Vn(te)?(e.consume(te),ce):Z(te)}function ie(te){return te===45||te===46||te===58||te===95||Ha(te)?(e.consume(te),ie):ue(te)}function ue(te){return te===61?(e.consume(te),$):It(te)?(c=ue,ae(te)):Vn(te)?(e.consume(te),ue):ce(te)}function $(te){return te===null||te===60||te===61||te===62||te===96?n(te):te===34||te===39?(e.consume(te),o=te,le):It(te)?(c=$,ae(te)):Vn(te)?(e.consume(te),$):(e.consume(te),Q)}function le(te){return te===o?(e.consume(te),o=void 0,oe):te===null?n(te):It(te)?(c=le,ae(te)):(e.consume(te),le)}function Q(te){return te===null||te===34||te===39||te===60||te===61||te===96?n(te):te===47||te===62||Ar(te)?ce(te):(e.consume(te),Q)}function oe(te){return te===47||te===62||Ar(te)?ce(te):n(te)}function Z(te){return te===62?(e.consume(te),e.exit("htmlTextData"),e.exit("htmlText"),t):n(te)}function ae(te){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(te),e.exit("lineEnding"),de}function de(te){return Vn(te)?Nn(e,we,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(te):we(te)}function we(te){return e.enter("htmlTextData"),c(te)}}const dT={name:"labelEnd",resolveAll:Kne,resolveTo:Zne,tokenize:Jne},Xne={tokenize:ere},Wne={tokenize:tre},Qne={tokenize:nre};function Kne(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const o=i.type==="labelImage"?4:2;i.type="data",t+=o}}return e.length!==n.length&&El(e,0,e.length,n),e}function Zne(e,t){let n=e.length,i=0,o,s,c,d;for(;n--;)if(o=e[n][1],s){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[n][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(c){if(e[n][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(s=n,o.type!=="labelLink")){i=2;break}}else o.type==="labelEnd"&&(c=n);const h={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},y={type:"label",start:{...e[s][1].start},end:{...e[c][1].end}},v={type:"labelText",start:{...e[s+i+2][1].end},end:{...e[c-2][1].start}};return d=[["enter",h,t],["enter",y,t]],d=ts(d,e.slice(s+1,s+i+3)),d=ts(d,[["enter",v,t]]),d=ts(d,V3(t.parser.constructs.insideSpan.null,e.slice(s+i+4,c-3),t)),d=ts(d,[["exit",v,t],e[c-2],e[c-1],["exit",y,t]]),d=ts(d,e.slice(c+1)),d=ts(d,[["exit",h,t]]),El(e,s,e.length,d),e}function Jne(e,t,n){const i=this;let o=i.events.length,s,c;for(;o--;)if((i.events[o][1].type==="labelImage"||i.events[o][1].type==="labelLink")&&!i.events[o][1]._balanced){s=i.events[o][1];break}return d;function d(T){return s?s._inactive?S(T):(c=i.parser.defined.includes(cu(i.sliceSerialize({start:s.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(T),e.exit("labelMarker"),e.exit("labelEnd"),h):n(T)}function h(T){return T===40?e.attempt(Xne,v,c?v:S)(T):T===91?e.attempt(Wne,v,c?y:S)(T):c?v(T):S(T)}function y(T){return e.attempt(Qne,v,S)(T)}function v(T){return t(T)}function S(T){return s._balanced=!0,n(T)}}function ere(e,t,n){return i;function i(S){return e.enter("resource"),e.enter("resourceMarker"),e.consume(S),e.exit("resourceMarker"),o}function o(S){return Ar(S)?Ab(e,s)(S):s(S)}function s(S){return S===41?v(S):FD(e,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(S)}function c(S){return Ar(S)?Ab(e,h)(S):v(S)}function d(S){return n(S)}function h(S){return S===34||S===39||S===40?XD(e,y,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(S):v(S)}function y(S){return Ar(S)?Ab(e,v)(S):v(S)}function v(S){return S===41?(e.enter("resourceMarker"),e.consume(S),e.exit("resourceMarker"),e.exit("resource"),t):n(S)}}function tre(e,t,n){const i=this;return o;function o(d){return YD.call(i,e,s,c,"reference","referenceMarker","referenceString")(d)}function s(d){return i.parser.defined.includes(cu(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(d):n(d)}function c(d){return n(d)}}function nre(e,t,n){return i;function i(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),o}function o(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const rre={name:"labelStartImage",resolveAll:dT.resolveAll,tokenize:ire};function ire(e,t,n){const i=this;return o;function o(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),s}function s(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),c):n(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(d):t(d)}}const are={name:"labelStartLink",resolveAll:dT.resolveAll,tokenize:ore};function ore(e,t,n){const i=this;return o;function o(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),s}function s(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(c):t(c)}}const hT={name:"lineEnding",tokenize:lre};function lre(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Nn(e,t,"linePrefix")}}const B3={name:"thematicBreak",tokenize:sre};function sre(e,t,n){let i=0,o;return s;function s(y){return e.enter("thematicBreak"),c(y)}function c(y){return o=y,d(y)}function d(y){return y===o?(e.enter("thematicBreakSequence"),h(y)):i>=3&&(y===null||It(y))?(e.exit("thematicBreak"),t(y)):n(y)}function h(y){return y===o?(e.consume(y),i++,h):(e.exit("thematicBreakSequence"),Vn(y)?Nn(e,d,"whitespace")(y):d(y))}}const qo={continuation:{tokenize:dre},exit:pre,name:"list",tokenize:fre},ure={partial:!0,tokenize:mre},cre={partial:!0,tokenize:hre};function fre(e,t,n){const i=this,o=i.events[i.events.length-1];let s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,c=0;return d;function d(w){const C=i.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(C==="listUnordered"?!i.containerState.marker||w===i.containerState.marker:uT(w)){if(i.containerState.type||(i.containerState.type=C,e.enter(C,{_container:!0})),C==="listUnordered")return e.enter("listItemPrefix"),w===42||w===45?e.check(B3,n,y)(w):y(w);if(!i.interrupt||w===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(w)}return n(w)}function h(w){return uT(w)&&++c<10?(e.consume(w),h):(!i.interrupt||c<2)&&(i.containerState.marker?w===i.containerState.marker:w===41||w===46)?(e.exit("listItemValue"),y(w)):n(w)}function y(w){return e.enter("listItemMarker"),e.consume(w),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||w,e.check(wb,i.interrupt?n:v,e.attempt(ure,T,S))}function v(w){return i.containerState.initialBlankLine=!0,s++,T(w)}function S(w){return Vn(w)?(e.enter("listItemPrefixWhitespace"),e.consume(w),e.exit("listItemPrefixWhitespace"),T):n(w)}function T(w){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(w)}}function dre(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(wb,o,s);function o(d){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Nn(e,t,"listItemIndent",i.containerState.size+1)(d)}function s(d){return i.containerState.furtherBlankLines||!Vn(d)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,c(d)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(cre,t,c)(d))}function c(d){return i.containerState._closeFlow=!0,i.interrupt=void 0,Nn(e,e.attempt(qo,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function hre(e,t,n){const i=this;return Nn(e,o,"listItemIndent",i.containerState.size+1);function o(s){const c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?t(s):n(s)}}function pre(e){e.exit(this.containerState.type)}function mre(e,t,n){const i=this;return Nn(e,o,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(s){const c=i.events[i.events.length-1];return!Vn(s)&&c&&c[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const QD={name:"setextUnderline",resolveTo:gre,tokenize:yre};function gre(e,t){let n=e.length,i,o,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const c={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",s?(e.splice(o,0,["enter",c,t]),e.splice(s+1,0,["exit",e[i][1],t]),e[i][1].end={...e[s][1].end}):e[i][1]=c,e.push(["exit",c,t]),e}function yre(e,t,n){const i=this;let o;return s;function s(y){let v=i.events.length,S;for(;v--;)if(i.events[v][1].type!=="lineEnding"&&i.events[v][1].type!=="linePrefix"&&i.events[v][1].type!=="content"){S=i.events[v][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||S)?(e.enter("setextHeadingLine"),o=y,c(y)):n(y)}function c(y){return e.enter("setextHeadingLineSequence"),d(y)}function d(y){return y===o?(e.consume(y),d):(e.exit("setextHeadingLineSequence"),Vn(y)?Nn(e,h,"lineSuffix")(y):h(y))}function h(y){return y===null||It(y)?(e.exit("setextHeadingLine"),t(y)):n(y)}}const vre={tokenize:bre};function bre(e){const t=this,n=e.attempt(wb,i,e.attempt(this.parser.constructs.flowInitial,o,Nn(e,e.attempt(this.parser.constructs.flow,o,e.attempt(Tne,o)),"linePrefix")));return n;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const xre={resolveAll:ZD()},Sre=KD("string"),Ere=KD("text");function KD(e){return{resolveAll:ZD(e==="text"?wre:void 0),tokenize:t};function t(n){const i=this,o=this.parser.constructs[e],s=n.attempt(o,c,d);return c;function c(v){return y(v)?s(v):d(v)}function d(v){if(v===null){n.consume(v);return}return n.enter("data"),n.consume(v),h}function h(v){return y(v)?(n.exit("data"),s(v)):(n.consume(v),h)}function y(v){if(v===null)return!0;const S=o[v];let T=-1;if(S)for(;++T<S.length;){const w=S[T];if(!w.previous||w.previous.call(i,i.previous))return!0}return!1}}}function ZD(e){return t;function t(n,i){let o=-1,s;for(;++o<=n.length;)s===void 0?n[o]&&n[o][1].type==="data"&&(s=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==s+2&&(n[s][1].end=n[o-1][1].end,n.splice(s+2,o-s-2),o=s+2),s=void 0);return e?e(n,i):n}}function wre(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],o=t.sliceStream(i);let s=o.length,c=-1,d=0,h;for(;s--;){const y=o[s];if(typeof y=="string"){for(c=y.length;y.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(y===-2)h=!0,d++;else if(y!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(d=0),d){const y={type:n===e.length||h||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?c:i.start._bufferIndex+c,_index:i.start._index+s,line:i.end.line,column:i.end.column-d,offset:i.end.offset-d},end:{...i.end}};i.end={...y.start},i.start.offset===i.end.offset?Object.assign(i,y):(e.splice(n,0,["enter",y,t],["exit",y,t]),n+=2)}n++}return e}const Tre=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Rne},disable:{null:[]},document:{42:qo,43:qo,45:qo,48:qo,49:qo,50:qo,51:qo,52:qo,53:qo,54:qo,55:qo,56:qo,57:qo,62:PD},flow:{35:Ine,42:B3,45:[QD,B3],60:jne,61:QD,95:B3,96:qD,126:qD},flowInitial:{[-2]:fT,[-1]:fT,32:fT},insideSpan:{null:[cT,xre]},string:{38:$D,92:UD},text:{[-5]:hT,[-4]:hT,[-3]:hT,33:rre,38:$D,42:cT,60:[ane,Fne],91:are,92:[kne,UD],93:dT,95:cT,96:vne}},Symbol.toStringTag,{value:"Module"}));function Are(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},s=[];let c=[],d=[];const h={attempt:X(L),check:X(U),consume:z,enter:B,exit:V,interrupt:X(U,{interrupt:!0})},y={code:null,containerState:{},defineSkip:R,events:[],now:C,parser:e,previous:null,sliceSerialize:T,sliceStream:w,write:S};let v=t.tokenize.call(y,h);return t.resolveAll&&s.push(t),y;function S(ue){return c=ts(c,ue),_(),c[c.length-1]!==null?[]:(se(t,0),y.events=V3(s,y.events,y),y.events)}function T(ue,$){return Ore(w(ue),$)}function w(ue){return Cre(c,ue)}function C(){const{_bufferIndex:ue,_index:$,line:le,column:Q,offset:oe}=i;return{_bufferIndex:ue,_index:$,line:le,column:Q,offset:oe}}function R(ue){o[ue.line]=ue.column,ie()}function _(){let ue;for(;i._index<c.length;){const $=c[i._index];if(typeof $=="string")for(ue=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===ue&&i._bufferIndex<$.length;)N($.charCodeAt(i._bufferIndex));else N($)}}function N(ue){v=v(ue)}function z(ue){It(ue)?(i.line++,i.column=1,i.offset+=ue===-3?2:1,ie()):ue!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===c[i._index].length&&(i._bufferIndex=-1,i._index++)),y.previous=ue}function B(ue,$){const le=$||{};return le.type=ue,le.start=C(),y.events.push(["enter",le,y]),d.push(le),le}function V(ue){const $=d.pop();return $.end=C(),y.events.push(["exit",$,y]),$}function L(ue,$){se(ue,$.from)}function U(ue,$){$.restore()}function X(ue,$){return le;function le(Q,oe,Z){let ae,de,we,te;return Array.isArray(Q)?ee(Q):"tokenize"in Q?ee([Q]):F(Q);function F(_e){return je;function je(He){const Xe=He!==null&&_e[He],Qe=He!==null&&_e.null,et=[...Array.isArray(Xe)?Xe:Xe?[Xe]:[],...Array.isArray(Qe)?Qe:Qe?[Qe]:[]];return ee(et)(He)}}function ee(_e){return ae=_e,de=0,_e.length===0?Z:Y(_e[de])}function Y(_e){return je;function je(He){return te=ce(),we=_e,_e.partial||(y.currentConstruct=_e),_e.name&&y.parser.constructs.disable.null.includes(_e.name)?Se():_e.tokenize.call($?Object.assign(Object.create(y),$):y,h,Me,Se)(He)}}function Me(_e){return ue(we,te),oe}function Se(_e){return te.restore(),++de<ae.length?Y(ae[de]):Z}}}function se(ue,$){ue.resolveAll&&!s.includes(ue)&&s.push(ue),ue.resolve&&El(y.events,$,y.events.length-$,ue.resolve(y.events.slice($),y)),ue.resolveTo&&(y.events=ue.resolveTo(y.events,y))}function ce(){const ue=C(),$=y.previous,le=y.currentConstruct,Q=y.events.length,oe=Array.from(d);return{from:Q,restore:Z};function Z(){i=ue,y.previous=$,y.currentConstruct=le,y.events.length=Q,d=oe,ie()}}function ie(){i.line in o&&i.column<2&&(i.column=o[i.line],i.offset+=o[i.line]-1)}}function Cre(e,t){const n=t.start._index,i=t.start._bufferIndex,o=t.end._index,s=t.end._bufferIndex;let c;if(n===o)c=[e[n].slice(i,s)];else{if(c=e.slice(n,o),i>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(i):c.shift()}s>0&&c.push(e[o].slice(0,s))}return c}function Ore(e,t){let n=-1;const i=[];let o;for(;++n<e.length;){const s=e[n];let c;if(typeof s=="string")c=s;else switch(s){case-5:{c="\r";break}case-4:{c=`
|
|
651
651
|
`;break}case-3:{c=`\r
|
|
652
652
|
`;break}case-2:{c=t?" ":" ";break}case-1:{if(!t&&o)continue;c=" ";break}default:c=String.fromCharCode(s)}o=s===-2,i.push(c)}return i.join("")}function Mre(e){const i={constructs:LD([Tre,...(e||{}).extensions||[]]),content:o(Zte),defined:[],document:o(ene),flow:o(vre),lazy:{},string:o(Sre),text:o(Ere)};return i;function o(s){return c;function c(d){return Are(i,s,d)}}}function Rre(e){for(;!GD(e););return e}const JD=/[\0\t\n\r]/g;function _re(){let e=1,t="",n=!0,i;return o;function o(s,c,d){const h=[];let y,v,S,T,w;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(c||void 0).decode(s)),S=0,t="",n&&(s.charCodeAt(0)===65279&&S++,n=void 0);S<s.length;){if(JD.lastIndex=S,y=JD.exec(s),T=y&&y.index!==void 0?y.index:s.length,w=s.charCodeAt(T),!y){t=s.slice(S);break}if(w===10&&S===T&&i)h.push(-3),i=void 0;else switch(i&&(h.push(-5),i=void 0),S<T&&(h.push(s.slice(S,T)),e+=T-S),w){case 0:{h.push(65533),e++;break}case 9:{for(v=Math.ceil(e/4)*4,h.push(-2);e++<v;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:i=!0,e=1}S=T+1}return d&&(i&&h.push(-5),t&&h.push(t),h.push(null)),h}}const Dre=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Nre(e){return e.replace(Dre,kre)}function kre(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const o=n.charCodeAt(1),s=o===120||o===88;return VD(n.slice(s?2:1),s?16:10)}return sT(n)||e}const eN={}.hasOwnProperty;function zre(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),Ire(n)(Rre(Mre(n).document().write(_re()(e,t,!0))))}function Ire(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(hn),autolinkProtocol:ce,autolinkEmail:ce,atxHeading:s(Mt),blockQuote:s(Qe),characterEscape:ce,characterReference:ce,codeFenced:s(et),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(et,c),codeText:s(Be,c),codeTextData:ce,data:ce,codeFlowValue:ce,definition:s(Re),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(st),hardBreakEscape:s(Kt),hardBreakTrailing:s(Kt),htmlFlow:s(xt,c),htmlFlowData:ce,htmlText:s(xt,c),htmlTextData:ce,image:s(Ut),label:c,link:s(hn),listItem:s(at),listItemValue:T,listOrdered:s(mn,S),listUnordered:s(mn),paragraph:s(At),reference:Y,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(Mt),strong:s(Rn),thematicBreak:s(Ze)},exit:{atxHeading:h(),atxHeadingSequence:L,autolink:h(),autolinkEmail:Xe,autolinkProtocol:He,blockQuote:h(),characterEscapeValue:ie,characterReferenceMarkerHexadecimal:Se,characterReferenceMarkerNumeric:Se,characterReferenceValue:_e,characterReference:je,codeFenced:h(_),codeFencedFence:R,codeFencedFenceInfo:w,codeFencedFenceMeta:C,codeFlowValue:ie,codeIndented:h(N),codeText:h(oe),codeTextData:ie,data:ie,definition:h(),definitionDestinationString:V,definitionLabelString:z,definitionTitleString:B,emphasis:h(),hardBreakEscape:h($),hardBreakTrailing:h($),htmlFlow:h(le),htmlFlowData:ie,htmlText:h(Q),htmlTextData:ie,image:h(ae),label:we,labelText:de,lineEnding:ue,link:h(Z),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:Me,resourceDestinationString:te,resourceTitleString:F,resource:ee,setextHeading:h(se),setextHeadingLineSequence:X,setextHeadingText:U,strong:h(),thematicBreak:h()}};tN(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(be){let Ve={type:"root",children:[]};const nt={stack:[Ve],tokenStack:[],config:t,enter:d,exit:y,buffer:c,resume:v,data:n},pt=[];let ut=-1;for(;++ut<be.length;)if(be[ut][1].type==="listOrdered"||be[ut][1].type==="listUnordered")if(be[ut][0]==="enter")pt.push(ut);else{const yt=pt.pop();ut=o(be,yt,ut)}for(ut=-1;++ut<be.length;){const yt=t[be[ut][0]];eN.call(yt,be[ut][1].type)&&yt[be[ut][1].type].call(Object.assign({sliceSerialize:be[ut][2].sliceSerialize},nt),be[ut][1])}if(nt.tokenStack.length>0){const yt=nt.tokenStack[nt.tokenStack.length-1];(yt[1]||nN).call(nt,void 0,yt[0])}for(Ve.position={start:Ld(be.length>0?be[0][1].start:{line:1,column:1,offset:0}),end:Ld(be.length>0?be[be.length-2][1].end:{line:1,column:1,offset:0})},ut=-1;++ut<t.transforms.length;)Ve=t.transforms[ut](Ve)||Ve;return Ve}function o(be,Ve,nt){let pt=Ve-1,ut=-1,yt=!1,gn,kt,jt,Fn;for(;++pt<=nt;){const bn=be[pt];switch(bn[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{bn[0]==="enter"?ut++:ut--,Fn=void 0;break}case"lineEndingBlank":{bn[0]==="enter"&&(gn&&!Fn&&!ut&&!jt&&(jt=pt),Fn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Fn=void 0}if(!ut&&bn[0]==="enter"&&bn[1].type==="listItemPrefix"||ut===-1&&bn[0]==="exit"&&(bn[1].type==="listUnordered"||bn[1].type==="listOrdered")){if(gn){let Fr=pt;for(kt=void 0;Fr--;){const cr=be[Fr];if(cr[1].type==="lineEnding"||cr[1].type==="lineEndingBlank"){if(cr[0]==="exit")continue;kt&&(be[kt][1].type="lineEndingBlank",yt=!0),cr[1].type="lineEnding",kt=Fr}else if(!(cr[1].type==="linePrefix"||cr[1].type==="blockQuotePrefix"||cr[1].type==="blockQuotePrefixWhitespace"||cr[1].type==="blockQuoteMarker"||cr[1].type==="listItemIndent"))break}jt&&(!kt||jt<kt)&&(gn._spread=!0),gn.end=Object.assign({},kt?be[kt][1].start:bn[1].end),be.splice(kt||pt,0,["exit",gn,bn[2]]),pt++,nt++}if(bn[1].type==="listItemPrefix"){const Fr={type:"listItem",_spread:!1,start:Object.assign({},bn[1].start),end:void 0};gn=Fr,be.splice(pt,0,["enter",Fr,bn[2]]),pt++,nt++,jt=void 0,Fn=!0}}}return be[Ve][1]._spread=yt,nt}function s(be,Ve){return nt;function nt(pt){d.call(this,be(pt),pt),Ve&&Ve.call(this,pt)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(be,Ve,nt){this.stack[this.stack.length-1].children.push(be),this.stack.push(be),this.tokenStack.push([Ve,nt||void 0]),be.position={start:Ld(Ve.start),end:void 0}}function h(be){return Ve;function Ve(nt){be&&be.call(this,nt),y.call(this,nt)}}function y(be,Ve){const nt=this.stack.pop(),pt=this.tokenStack.pop();if(pt)pt[0].type!==be.type&&(Ve?Ve.call(this,be,pt[0]):(pt[1]||nN).call(this,be,pt[0]));else throw new Error("Cannot close `"+be.type+"` ("+Sb({start:be.start,end:be.end})+"): it’s not open");nt.position.end=Ld(be.end)}function v(){return lT(this.stack.pop())}function S(){this.data.expectingFirstListItemValue=!0}function T(be){if(this.data.expectingFirstListItemValue){const Ve=this.stack[this.stack.length-2];Ve.start=Number.parseInt(this.sliceSerialize(be),10),this.data.expectingFirstListItemValue=void 0}}function w(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.lang=be}function C(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.meta=be}function R(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.value=be.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function N(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.value=be.replace(/(\r?\n|\r)$/g,"")}function z(be){const Ve=this.resume(),nt=this.stack[this.stack.length-1];nt.label=Ve,nt.identifier=cu(this.sliceSerialize(be)).toLowerCase()}function B(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.title=be}function V(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.url=be}function L(be){const Ve=this.stack[this.stack.length-1];if(!Ve.depth){const nt=this.sliceSerialize(be).length;Ve.depth=nt}}function U(){this.data.setextHeadingSlurpLineEnding=!0}function X(be){const Ve=this.stack[this.stack.length-1];Ve.depth=this.sliceSerialize(be).codePointAt(0)===61?1:2}function se(){this.data.setextHeadingSlurpLineEnding=void 0}function ce(be){const nt=this.stack[this.stack.length-1].children;let pt=nt[nt.length-1];(!pt||pt.type!=="text")&&(pt=Bt(),pt.position={start:Ld(be.start),end:void 0},nt.push(pt)),this.stack.push(pt)}function ie(be){const Ve=this.stack.pop();Ve.value+=this.sliceSerialize(be),Ve.position.end=Ld(be.end)}function ue(be){const Ve=this.stack[this.stack.length-1];if(this.data.atHardBreak){const nt=Ve.children[Ve.children.length-1];nt.position.end=Ld(be.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Ve.type)&&(ce.call(this,be),ie.call(this,be))}function $(){this.data.atHardBreak=!0}function le(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.value=be}function Q(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.value=be}function oe(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.value=be}function Z(){const be=this.stack[this.stack.length-1];if(this.data.inReference){const Ve=this.data.referenceType||"shortcut";be.type+="Reference",be.referenceType=Ve,delete be.url,delete be.title}else delete be.identifier,delete be.label;this.data.referenceType=void 0}function ae(){const be=this.stack[this.stack.length-1];if(this.data.inReference){const Ve=this.data.referenceType||"shortcut";be.type+="Reference",be.referenceType=Ve,delete be.url,delete be.title}else delete be.identifier,delete be.label;this.data.referenceType=void 0}function de(be){const Ve=this.sliceSerialize(be),nt=this.stack[this.stack.length-2];nt.label=Nre(Ve),nt.identifier=cu(Ve).toLowerCase()}function we(){const be=this.stack[this.stack.length-1],Ve=this.resume(),nt=this.stack[this.stack.length-1];if(this.data.inReference=!0,nt.type==="link"){const pt=be.children;nt.children=pt}else nt.alt=Ve}function te(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.url=be}function F(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.title=be}function ee(){this.data.inReference=void 0}function Y(){this.data.referenceType="collapsed"}function Me(be){const Ve=this.resume(),nt=this.stack[this.stack.length-1];nt.label=Ve,nt.identifier=cu(this.sliceSerialize(be)).toLowerCase(),this.data.referenceType="full"}function Se(be){this.data.characterReferenceType=be.type}function _e(be){const Ve=this.sliceSerialize(be),nt=this.data.characterReferenceType;let pt;nt?(pt=VD(Ve,nt==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):pt=sT(Ve);const ut=this.stack[this.stack.length-1];ut.value+=pt}function je(be){const Ve=this.stack.pop();Ve.position.end=Ld(be.end)}function He(be){ie.call(this,be);const Ve=this.stack[this.stack.length-1];Ve.url=this.sliceSerialize(be)}function Xe(be){ie.call(this,be);const Ve=this.stack[this.stack.length-1];Ve.url="mailto:"+this.sliceSerialize(be)}function Qe(){return{type:"blockquote",children:[]}}function et(){return{type:"code",lang:null,meta:null,value:""}}function Be(){return{type:"inlineCode",value:""}}function Re(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function st(){return{type:"emphasis",children:[]}}function Mt(){return{type:"heading",depth:0,children:[]}}function Kt(){return{type:"break"}}function xt(){return{type:"html",value:""}}function Ut(){return{type:"image",title:null,url:"",alt:null}}function hn(){return{type:"link",title:null,url:"",children:[]}}function mn(be){return{type:"list",ordered:be.type==="listOrdered",start:null,spread:be._spread,children:[]}}function at(be){return{type:"listItem",spread:be._spread,checked:null,children:[]}}function At(){return{type:"paragraph",children:[]}}function Rn(){return{type:"strong",children:[]}}function Bt(){return{type:"text",value:""}}function Ze(){return{type:"thematicBreak"}}}function Ld(e){return{line:e.line,column:e.column,offset:e.offset}}function tN(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?tN(e,i):Lre(e,i)}}function Lre(e,t){let n;for(n in t)if(eN.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function nN(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Sb({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Sb({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Sb({start:t.start,end:t.end})+") is still open")}function Vre(e){const t=this;t.parser=n;function n(i){return zre(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Bre(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function jre(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
@@ -916,7 +916,7 @@ c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
|
|
916
916
|
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
917
917
|
l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
918
918
|
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};let Dg=class{constructor(t){this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),n=0;n<this.children.length;n++)t.appendChild(this.children[n].toNode());return t}toMarkup(){for(var t="",n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t}toText(){var t=n=>n.toText();return this.children.map(t).join("")}};var $T={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},ioe={ex:!0,em:!0,mu:!0},HN=function(t){return typeof t!="string"&&(t=t.unit),t in $T||t in ioe||t==="ex"},ii=function(t,n){var i;if(t.unit in $T)i=$T[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")i=n.fontMetrics().cssEmPerMu;else{var o;if(n.style.isTight()?o=n.havingStyle(n.style.text()):o=n,t.unit==="ex")i=o.fontMetrics().xHeight;else if(t.unit==="em")i=o.fontMetrics().quad;else throw new ft("Invalid unit: '"+t.unit+"'");o!==n&&(i*=o.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*i,n.maxSize)},gt=function(t){return+t.toFixed(4)+"em"},Bd=function(t){return t.filter(n=>n).join(" ")},qN=function(t,n,i){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=i||{},n){n.style.isTight()&&this.classes.push("mtight");var o=n.getColor();o&&(this.style.color=o)}},GN=function(t){var n=document.createElement(t);n.className=Bd(this.classes);for(var i of Object.keys(this.style))n.style[i]=this.style[i];for(var o of Object.keys(this.attributes))n.setAttribute(o,this.attributes[o]);for(var s=0;s<this.children.length;s++)n.appendChild(this.children[s].toNode());return n},aoe=/[\s"'>/=\x00-\x1f]/,FN=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+qa(Bd(this.classes))+'"');var i="";for(var o of Object.keys(this.style))i+=VT(o)+":"+this.style[o]+";";i&&(n+=' style="'+qa(i)+'"');for(var s of Object.keys(this.attributes)){if(aoe.test(s))throw new ft("Invalid attribute name '"+s+"'");n+=" "+s+'="'+qa(this.attributes[s])+'"'}n+=">";for(var c=0;c<this.children.length;c++)n+=this.children[c].toMarkup();return n+="</"+t+">",n};class Ng{constructor(t,n,i,o){qN.call(this,t,i,o),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return GN.call(this,"span")}toMarkup(){return FN.call(this,"span")}}class X3{constructor(t,n,i,o){qN.call(this,n,o),this.children=i||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return GN.call(this,"a")}toMarkup(){return FN.call(this,"a")}}class ooe{constructor(t,n,i){this.alt=n,this.src=t,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=i}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n of Object.keys(this.style))t.style[n]=this.style[n];return t}toMarkup(){var t='<img src="'+qa(this.src)+'"'+(' alt="'+qa(this.alt)+'"'),n="";for(var i of Object.keys(this.style))n+=VT(i)+":"+this.style[i]+";";return n&&(t+=' style="'+qa(n)+'"'),t+="'/>",t}}var loe={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class wl{constructor(t,n,i,o,s,c,d,h){this.text=t,this.height=n||0,this.depth=i||0,this.italic=o||0,this.skew=s||0,this.width=c||0,this.classes=d||[],this.style=h||{},this.maxFontSize=0;var y=Yae(this.text.charCodeAt(0));y&&this.classes.push(y+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=loe[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),n=null;this.italic>0&&(n=document.createElement("span"),n.style.marginRight=gt(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=Bd(this.classes));for(var i of Object.keys(this.style))n=n||document.createElement("span"),n.style[i]=this.style[i];return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="<span";this.classes.length&&(t=!0,n+=' class="',n+=qa(Bd(this.classes)),n+='"');var i="";this.italic>0&&(i+="margin-right:"+this.italic+"em;");for(var o of Object.keys(this.style))i+=VT(o)+":"+this.style[o]+";";i&&(t=!0,n+=' style="'+qa(i)+'"');var s=qa(this.text);return t?(n+=">",n+=s,n+="</span>",n):s}}class uf{constructor(t,n){this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var i of Object.keys(this.attributes))n.setAttribute(i,this.attributes[i]);for(var o=0;o<this.children.length;o++)n.appendChild(this.children[o].toNode());return n}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var n of Object.keys(this.attributes))t+=" "+n+'="'+qa(this.attributes[n])+'"';t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</svg>",t}}class jd{constructor(t,n){this.pathName=t,this.alternate=n}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"path");return this.alternate?n.setAttribute("d",this.alternate):n.setAttribute("d",$N[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+qa(this.alternate)+'"/>':'<path d="'+qa($N[this.pathName])+'"/>'}}class HT{constructor(t){this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var i of Object.keys(this.attributes))n.setAttribute(i,this.attributes[i]);return n}toMarkup(){var t="<line";for(var n of Object.keys(this.attributes))t+=" "+n+'="'+qa(this.attributes[n])+'"';return t+="/>",t}}function soe(e){if(e instanceof wl)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function uoe(e){if(e instanceof Ng)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var coe=e=>e instanceof Ng||e instanceof X3||e instanceof Dg,lc={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},W3={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},YN={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function foe(e,t){lc[e]=t}function qT(e,t,n){if(!lc[t])throw new Error("Font metrics not found for font: "+t+".");var i=e.charCodeAt(0),o=lc[t][i];if(!o&&e[0]in YN&&(i=YN[e[0]].charCodeAt(0),o=lc[t][i]),!o&&n==="text"&&UN(i)&&(o=lc[t][77]),o)return{depth:o[0],height:o[1],italic:o[2],skew:o[3],width:o[4]}}var GT={};function doe(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!GT[t]){var n=GT[t]={cssEmPerMu:W3.quad[t]/18};for(var i in W3)W3.hasOwnProperty(i)&&(n[i]=W3[i][t])}return GT[t]}var hoe={bin:1,close:1,inner:1,open:1,punct:1,rel:1},poe={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},qr={math:{},text:{}};function k(e,t,n,i,o,s){qr[e][o]={font:t,group:n,replace:i},s&&i&&(qr[e][i]=qr[e][o])}var I="math",ot="text",W="main",fe="ams",Gr="accent-token",Ot="bin",yo="close",kg="inner",Ft="mathord",Di="op-token",Tl="open",Q3="punct",pe="rel",cf="spacing",Ce="textord";k(I,W,pe,"≡","\\equiv",!0),k(I,W,pe,"≺","\\prec",!0),k(I,W,pe,"≻","\\succ",!0),k(I,W,pe,"∼","\\sim",!0),k(I,W,pe,"⊥","\\perp"),k(I,W,pe,"⪯","\\preceq",!0),k(I,W,pe,"⪰","\\succeq",!0),k(I,W,pe,"≃","\\simeq",!0),k(I,W,pe,"∣","\\mid",!0),k(I,W,pe,"≪","\\ll",!0),k(I,W,pe,"≫","\\gg",!0),k(I,W,pe,"≍","\\asymp",!0),k(I,W,pe,"∥","\\parallel"),k(I,W,pe,"⋈","\\bowtie",!0),k(I,W,pe,"⌣","\\smile",!0),k(I,W,pe,"⊑","\\sqsubseteq",!0),k(I,W,pe,"⊒","\\sqsupseteq",!0),k(I,W,pe,"≐","\\doteq",!0),k(I,W,pe,"⌢","\\frown",!0),k(I,W,pe,"∋","\\ni",!0),k(I,W,pe,"∝","\\propto",!0),k(I,W,pe,"⊢","\\vdash",!0),k(I,W,pe,"⊣","\\dashv",!0),k(I,W,pe,"∋","\\owns"),k(I,W,Q3,".","\\ldotp"),k(I,W,Q3,"⋅","\\cdotp"),k(I,W,Ce,"#","\\#"),k(ot,W,Ce,"#","\\#"),k(I,W,Ce,"&","\\&"),k(ot,W,Ce,"&","\\&"),k(I,W,Ce,"ℵ","\\aleph",!0),k(I,W,Ce,"∀","\\forall",!0),k(I,W,Ce,"ℏ","\\hbar",!0),k(I,W,Ce,"∃","\\exists",!0),k(I,W,Ce,"∇","\\nabla",!0),k(I,W,Ce,"♭","\\flat",!0),k(I,W,Ce,"ℓ","\\ell",!0),k(I,W,Ce,"♮","\\natural",!0),k(I,W,Ce,"♣","\\clubsuit",!0),k(I,W,Ce,"℘","\\wp",!0),k(I,W,Ce,"♯","\\sharp",!0),k(I,W,Ce,"♢","\\diamondsuit",!0),k(I,W,Ce,"ℜ","\\Re",!0),k(I,W,Ce,"♡","\\heartsuit",!0),k(I,W,Ce,"ℑ","\\Im",!0),k(I,W,Ce,"♠","\\spadesuit",!0),k(I,W,Ce,"§","\\S",!0),k(ot,W,Ce,"§","\\S"),k(I,W,Ce,"¶","\\P",!0),k(ot,W,Ce,"¶","\\P"),k(I,W,Ce,"†","\\dag"),k(ot,W,Ce,"†","\\dag"),k(ot,W,Ce,"†","\\textdagger"),k(I,W,Ce,"‡","\\ddag"),k(ot,W,Ce,"‡","\\ddag"),k(ot,W,Ce,"‡","\\textdaggerdbl"),k(I,W,yo,"⎱","\\rmoustache",!0),k(I,W,Tl,"⎰","\\lmoustache",!0),k(I,W,yo,"⟯","\\rgroup",!0),k(I,W,Tl,"⟮","\\lgroup",!0),k(I,W,Ot,"∓","\\mp",!0),k(I,W,Ot,"⊖","\\ominus",!0),k(I,W,Ot,"⊎","\\uplus",!0),k(I,W,Ot,"⊓","\\sqcap",!0),k(I,W,Ot,"∗","\\ast"),k(I,W,Ot,"⊔","\\sqcup",!0),k(I,W,Ot,"◯","\\bigcirc",!0),k(I,W,Ot,"∙","\\bullet",!0),k(I,W,Ot,"‡","\\ddagger"),k(I,W,Ot,"≀","\\wr",!0),k(I,W,Ot,"⨿","\\amalg"),k(I,W,Ot,"&","\\And"),k(I,W,pe,"⟵","\\longleftarrow",!0),k(I,W,pe,"⇐","\\Leftarrow",!0),k(I,W,pe,"⟸","\\Longleftarrow",!0),k(I,W,pe,"⟶","\\longrightarrow",!0),k(I,W,pe,"⇒","\\Rightarrow",!0),k(I,W,pe,"⟹","\\Longrightarrow",!0),k(I,W,pe,"↔","\\leftrightarrow",!0),k(I,W,pe,"⟷","\\longleftrightarrow",!0),k(I,W,pe,"⇔","\\Leftrightarrow",!0),k(I,W,pe,"⟺","\\Longleftrightarrow",!0),k(I,W,pe,"↦","\\mapsto",!0),k(I,W,pe,"⟼","\\longmapsto",!0),k(I,W,pe,"↗","\\nearrow",!0),k(I,W,pe,"↩","\\hookleftarrow",!0),k(I,W,pe,"↪","\\hookrightarrow",!0),k(I,W,pe,"↘","\\searrow",!0),k(I,W,pe,"↼","\\leftharpoonup",!0),k(I,W,pe,"⇀","\\rightharpoonup",!0),k(I,W,pe,"↙","\\swarrow",!0),k(I,W,pe,"↽","\\leftharpoondown",!0),k(I,W,pe,"⇁","\\rightharpoondown",!0),k(I,W,pe,"↖","\\nwarrow",!0),k(I,W,pe,"⇌","\\rightleftharpoons",!0),k(I,fe,pe,"≮","\\nless",!0),k(I,fe,pe,"","\\@nleqslant"),k(I,fe,pe,"","\\@nleqq"),k(I,fe,pe,"⪇","\\lneq",!0),k(I,fe,pe,"≨","\\lneqq",!0),k(I,fe,pe,"","\\@lvertneqq"),k(I,fe,pe,"⋦","\\lnsim",!0),k(I,fe,pe,"⪉","\\lnapprox",!0),k(I,fe,pe,"⊀","\\nprec",!0),k(I,fe,pe,"⋠","\\npreceq",!0),k(I,fe,pe,"⋨","\\precnsim",!0),k(I,fe,pe,"⪹","\\precnapprox",!0),k(I,fe,pe,"≁","\\nsim",!0),k(I,fe,pe,"","\\@nshortmid"),k(I,fe,pe,"∤","\\nmid",!0),k(I,fe,pe,"⊬","\\nvdash",!0),k(I,fe,pe,"⊭","\\nvDash",!0),k(I,fe,pe,"⋪","\\ntriangleleft"),k(I,fe,pe,"⋬","\\ntrianglelefteq",!0),k(I,fe,pe,"⊊","\\subsetneq",!0),k(I,fe,pe,"","\\@varsubsetneq"),k(I,fe,pe,"⫋","\\subsetneqq",!0),k(I,fe,pe,"","\\@varsubsetneqq"),k(I,fe,pe,"≯","\\ngtr",!0),k(I,fe,pe,"","\\@ngeqslant"),k(I,fe,pe,"","\\@ngeqq"),k(I,fe,pe,"⪈","\\gneq",!0),k(I,fe,pe,"≩","\\gneqq",!0),k(I,fe,pe,"","\\@gvertneqq"),k(I,fe,pe,"⋧","\\gnsim",!0),k(I,fe,pe,"⪊","\\gnapprox",!0),k(I,fe,pe,"⊁","\\nsucc",!0),k(I,fe,pe,"⋡","\\nsucceq",!0),k(I,fe,pe,"⋩","\\succnsim",!0),k(I,fe,pe,"⪺","\\succnapprox",!0),k(I,fe,pe,"≆","\\ncong",!0),k(I,fe,pe,"","\\@nshortparallel"),k(I,fe,pe,"∦","\\nparallel",!0),k(I,fe,pe,"⊯","\\nVDash",!0),k(I,fe,pe,"⋫","\\ntriangleright"),k(I,fe,pe,"⋭","\\ntrianglerighteq",!0),k(I,fe,pe,"","\\@nsupseteqq"),k(I,fe,pe,"⊋","\\supsetneq",!0),k(I,fe,pe,"","\\@varsupsetneq"),k(I,fe,pe,"⫌","\\supsetneqq",!0),k(I,fe,pe,"","\\@varsupsetneqq"),k(I,fe,pe,"⊮","\\nVdash",!0),k(I,fe,pe,"⪵","\\precneqq",!0),k(I,fe,pe,"⪶","\\succneqq",!0),k(I,fe,pe,"","\\@nsubseteqq"),k(I,fe,Ot,"⊴","\\unlhd"),k(I,fe,Ot,"⊵","\\unrhd"),k(I,fe,pe,"↚","\\nleftarrow",!0),k(I,fe,pe,"↛","\\nrightarrow",!0),k(I,fe,pe,"⇍","\\nLeftarrow",!0),k(I,fe,pe,"⇏","\\nRightarrow",!0),k(I,fe,pe,"↮","\\nleftrightarrow",!0),k(I,fe,pe,"⇎","\\nLeftrightarrow",!0),k(I,fe,pe,"△","\\vartriangle"),k(I,fe,Ce,"ℏ","\\hslash"),k(I,fe,Ce,"▽","\\triangledown"),k(I,fe,Ce,"◊","\\lozenge"),k(I,fe,Ce,"Ⓢ","\\circledS"),k(I,fe,Ce,"®","\\circledR"),k(ot,fe,Ce,"®","\\circledR"),k(I,fe,Ce,"∡","\\measuredangle",!0),k(I,fe,Ce,"∄","\\nexists"),k(I,fe,Ce,"℧","\\mho"),k(I,fe,Ce,"Ⅎ","\\Finv",!0),k(I,fe,Ce,"⅁","\\Game",!0),k(I,fe,Ce,"‵","\\backprime"),k(I,fe,Ce,"▲","\\blacktriangle"),k(I,fe,Ce,"▼","\\blacktriangledown"),k(I,fe,Ce,"■","\\blacksquare"),k(I,fe,Ce,"⧫","\\blacklozenge"),k(I,fe,Ce,"★","\\bigstar"),k(I,fe,Ce,"∢","\\sphericalangle",!0),k(I,fe,Ce,"∁","\\complement",!0),k(I,fe,Ce,"ð","\\eth",!0),k(ot,W,Ce,"ð","ð"),k(I,fe,Ce,"╱","\\diagup"),k(I,fe,Ce,"╲","\\diagdown"),k(I,fe,Ce,"□","\\square"),k(I,fe,Ce,"□","\\Box"),k(I,fe,Ce,"◊","\\Diamond"),k(I,fe,Ce,"¥","\\yen",!0),k(ot,fe,Ce,"¥","\\yen",!0),k(I,fe,Ce,"✓","\\checkmark",!0),k(ot,fe,Ce,"✓","\\checkmark"),k(I,fe,Ce,"ℶ","\\beth",!0),k(I,fe,Ce,"ℸ","\\daleth",!0),k(I,fe,Ce,"ℷ","\\gimel",!0),k(I,fe,Ce,"ϝ","\\digamma",!0),k(I,fe,Ce,"ϰ","\\varkappa"),k(I,fe,Tl,"┌","\\@ulcorner",!0),k(I,fe,yo,"┐","\\@urcorner",!0),k(I,fe,Tl,"└","\\@llcorner",!0),k(I,fe,yo,"┘","\\@lrcorner",!0),k(I,fe,pe,"≦","\\leqq",!0),k(I,fe,pe,"⩽","\\leqslant",!0),k(I,fe,pe,"⪕","\\eqslantless",!0),k(I,fe,pe,"≲","\\lesssim",!0),k(I,fe,pe,"⪅","\\lessapprox",!0),k(I,fe,pe,"≊","\\approxeq",!0),k(I,fe,Ot,"⋖","\\lessdot"),k(I,fe,pe,"⋘","\\lll",!0),k(I,fe,pe,"≶","\\lessgtr",!0),k(I,fe,pe,"⋚","\\lesseqgtr",!0),k(I,fe,pe,"⪋","\\lesseqqgtr",!0),k(I,fe,pe,"≑","\\doteqdot"),k(I,fe,pe,"≓","\\risingdotseq",!0),k(I,fe,pe,"≒","\\fallingdotseq",!0),k(I,fe,pe,"∽","\\backsim",!0),k(I,fe,pe,"⋍","\\backsimeq",!0),k(I,fe,pe,"⫅","\\subseteqq",!0),k(I,fe,pe,"⋐","\\Subset",!0),k(I,fe,pe,"⊏","\\sqsubset",!0),k(I,fe,pe,"≼","\\preccurlyeq",!0),k(I,fe,pe,"⋞","\\curlyeqprec",!0),k(I,fe,pe,"≾","\\precsim",!0),k(I,fe,pe,"⪷","\\precapprox",!0),k(I,fe,pe,"⊲","\\vartriangleleft"),k(I,fe,pe,"⊴","\\trianglelefteq"),k(I,fe,pe,"⊨","\\vDash",!0),k(I,fe,pe,"⊪","\\Vvdash",!0),k(I,fe,pe,"⌣","\\smallsmile"),k(I,fe,pe,"⌢","\\smallfrown"),k(I,fe,pe,"≏","\\bumpeq",!0),k(I,fe,pe,"≎","\\Bumpeq",!0),k(I,fe,pe,"≧","\\geqq",!0),k(I,fe,pe,"⩾","\\geqslant",!0),k(I,fe,pe,"⪖","\\eqslantgtr",!0),k(I,fe,pe,"≳","\\gtrsim",!0),k(I,fe,pe,"⪆","\\gtrapprox",!0),k(I,fe,Ot,"⋗","\\gtrdot"),k(I,fe,pe,"⋙","\\ggg",!0),k(I,fe,pe,"≷","\\gtrless",!0),k(I,fe,pe,"⋛","\\gtreqless",!0),k(I,fe,pe,"⪌","\\gtreqqless",!0),k(I,fe,pe,"≖","\\eqcirc",!0),k(I,fe,pe,"≗","\\circeq",!0),k(I,fe,pe,"≜","\\triangleq",!0),k(I,fe,pe,"∼","\\thicksim"),k(I,fe,pe,"≈","\\thickapprox"),k(I,fe,pe,"⫆","\\supseteqq",!0),k(I,fe,pe,"⋑","\\Supset",!0),k(I,fe,pe,"⊐","\\sqsupset",!0),k(I,fe,pe,"≽","\\succcurlyeq",!0),k(I,fe,pe,"⋟","\\curlyeqsucc",!0),k(I,fe,pe,"≿","\\succsim",!0),k(I,fe,pe,"⪸","\\succapprox",!0),k(I,fe,pe,"⊳","\\vartriangleright"),k(I,fe,pe,"⊵","\\trianglerighteq"),k(I,fe,pe,"⊩","\\Vdash",!0),k(I,fe,pe,"∣","\\shortmid"),k(I,fe,pe,"∥","\\shortparallel"),k(I,fe,pe,"≬","\\between",!0),k(I,fe,pe,"⋔","\\pitchfork",!0),k(I,fe,pe,"∝","\\varpropto"),k(I,fe,pe,"◀","\\blacktriangleleft"),k(I,fe,pe,"∴","\\therefore",!0),k(I,fe,pe,"∍","\\backepsilon"),k(I,fe,pe,"▶","\\blacktriangleright"),k(I,fe,pe,"∵","\\because",!0),k(I,fe,pe,"⋘","\\llless"),k(I,fe,pe,"⋙","\\gggtr"),k(I,fe,Ot,"⊲","\\lhd"),k(I,fe,Ot,"⊳","\\rhd"),k(I,fe,pe,"≂","\\eqsim",!0),k(I,W,pe,"⋈","\\Join"),k(I,fe,pe,"≑","\\Doteq",!0),k(I,fe,Ot,"∔","\\dotplus",!0),k(I,fe,Ot,"∖","\\smallsetminus"),k(I,fe,Ot,"⋒","\\Cap",!0),k(I,fe,Ot,"⋓","\\Cup",!0),k(I,fe,Ot,"⩞","\\doublebarwedge",!0),k(I,fe,Ot,"⊟","\\boxminus",!0),k(I,fe,Ot,"⊞","\\boxplus",!0),k(I,fe,Ot,"⋇","\\divideontimes",!0),k(I,fe,Ot,"⋉","\\ltimes",!0),k(I,fe,Ot,"⋊","\\rtimes",!0),k(I,fe,Ot,"⋋","\\leftthreetimes",!0),k(I,fe,Ot,"⋌","\\rightthreetimes",!0),k(I,fe,Ot,"⋏","\\curlywedge",!0),k(I,fe,Ot,"⋎","\\curlyvee",!0),k(I,fe,Ot,"⊝","\\circleddash",!0),k(I,fe,Ot,"⊛","\\circledast",!0),k(I,fe,Ot,"⋅","\\centerdot"),k(I,fe,Ot,"⊺","\\intercal",!0),k(I,fe,Ot,"⋒","\\doublecap"),k(I,fe,Ot,"⋓","\\doublecup"),k(I,fe,Ot,"⊠","\\boxtimes",!0),k(I,fe,pe,"⇢","\\dashrightarrow",!0),k(I,fe,pe,"⇠","\\dashleftarrow",!0),k(I,fe,pe,"⇇","\\leftleftarrows",!0),k(I,fe,pe,"⇆","\\leftrightarrows",!0),k(I,fe,pe,"⇚","\\Lleftarrow",!0),k(I,fe,pe,"↞","\\twoheadleftarrow",!0),k(I,fe,pe,"↢","\\leftarrowtail",!0),k(I,fe,pe,"↫","\\looparrowleft",!0),k(I,fe,pe,"⇋","\\leftrightharpoons",!0),k(I,fe,pe,"↶","\\curvearrowleft",!0),k(I,fe,pe,"↺","\\circlearrowleft",!0),k(I,fe,pe,"↰","\\Lsh",!0),k(I,fe,pe,"⇈","\\upuparrows",!0),k(I,fe,pe,"↿","\\upharpoonleft",!0),k(I,fe,pe,"⇃","\\downharpoonleft",!0),k(I,W,pe,"⊶","\\origof",!0),k(I,W,pe,"⊷","\\imageof",!0),k(I,fe,pe,"⊸","\\multimap",!0),k(I,fe,pe,"↭","\\leftrightsquigarrow",!0),k(I,fe,pe,"⇉","\\rightrightarrows",!0),k(I,fe,pe,"⇄","\\rightleftarrows",!0),k(I,fe,pe,"↠","\\twoheadrightarrow",!0),k(I,fe,pe,"↣","\\rightarrowtail",!0),k(I,fe,pe,"↬","\\looparrowright",!0),k(I,fe,pe,"↷","\\curvearrowright",!0),k(I,fe,pe,"↻","\\circlearrowright",!0),k(I,fe,pe,"↱","\\Rsh",!0),k(I,fe,pe,"⇊","\\downdownarrows",!0),k(I,fe,pe,"↾","\\upharpoonright",!0),k(I,fe,pe,"⇂","\\downharpoonright",!0),k(I,fe,pe,"⇝","\\rightsquigarrow",!0),k(I,fe,pe,"⇝","\\leadsto"),k(I,fe,pe,"⇛","\\Rrightarrow",!0),k(I,fe,pe,"↾","\\restriction"),k(I,W,Ce,"‘","`"),k(I,W,Ce,"$","\\$"),k(ot,W,Ce,"$","\\$"),k(ot,W,Ce,"$","\\textdollar"),k(I,W,Ce,"%","\\%"),k(ot,W,Ce,"%","\\%"),k(I,W,Ce,"_","\\_"),k(ot,W,Ce,"_","\\_"),k(ot,W,Ce,"_","\\textunderscore"),k(I,W,Ce,"∠","\\angle",!0),k(I,W,Ce,"∞","\\infty",!0),k(I,W,Ce,"′","\\prime"),k(I,W,Ce,"△","\\triangle"),k(I,W,Ce,"Γ","\\Gamma",!0),k(I,W,Ce,"Δ","\\Delta",!0),k(I,W,Ce,"Θ","\\Theta",!0),k(I,W,Ce,"Λ","\\Lambda",!0),k(I,W,Ce,"Ξ","\\Xi",!0),k(I,W,Ce,"Π","\\Pi",!0),k(I,W,Ce,"Σ","\\Sigma",!0),k(I,W,Ce,"Υ","\\Upsilon",!0),k(I,W,Ce,"Φ","\\Phi",!0),k(I,W,Ce,"Ψ","\\Psi",!0),k(I,W,Ce,"Ω","\\Omega",!0),k(I,W,Ce,"A","Α"),k(I,W,Ce,"B","Β"),k(I,W,Ce,"E","Ε"),k(I,W,Ce,"Z","Ζ"),k(I,W,Ce,"H","Η"),k(I,W,Ce,"I","Ι"),k(I,W,Ce,"K","Κ"),k(I,W,Ce,"M","Μ"),k(I,W,Ce,"N","Ν"),k(I,W,Ce,"O","Ο"),k(I,W,Ce,"P","Ρ"),k(I,W,Ce,"T","Τ"),k(I,W,Ce,"X","Χ"),k(I,W,Ce,"¬","\\neg",!0),k(I,W,Ce,"¬","\\lnot"),k(I,W,Ce,"⊤","\\top"),k(I,W,Ce,"⊥","\\bot"),k(I,W,Ce,"∅","\\emptyset"),k(I,fe,Ce,"∅","\\varnothing"),k(I,W,Ft,"α","\\alpha",!0),k(I,W,Ft,"β","\\beta",!0),k(I,W,Ft,"γ","\\gamma",!0),k(I,W,Ft,"δ","\\delta",!0),k(I,W,Ft,"ϵ","\\epsilon",!0),k(I,W,Ft,"ζ","\\zeta",!0),k(I,W,Ft,"η","\\eta",!0),k(I,W,Ft,"θ","\\theta",!0),k(I,W,Ft,"ι","\\iota",!0),k(I,W,Ft,"κ","\\kappa",!0),k(I,W,Ft,"λ","\\lambda",!0),k(I,W,Ft,"μ","\\mu",!0),k(I,W,Ft,"ν","\\nu",!0),k(I,W,Ft,"ξ","\\xi",!0),k(I,W,Ft,"ο","\\omicron",!0),k(I,W,Ft,"π","\\pi",!0),k(I,W,Ft,"ρ","\\rho",!0),k(I,W,Ft,"σ","\\sigma",!0),k(I,W,Ft,"τ","\\tau",!0),k(I,W,Ft,"υ","\\upsilon",!0),k(I,W,Ft,"ϕ","\\phi",!0),k(I,W,Ft,"χ","\\chi",!0),k(I,W,Ft,"ψ","\\psi",!0),k(I,W,Ft,"ω","\\omega",!0),k(I,W,Ft,"ε","\\varepsilon",!0),k(I,W,Ft,"ϑ","\\vartheta",!0),k(I,W,Ft,"ϖ","\\varpi",!0),k(I,W,Ft,"ϱ","\\varrho",!0),k(I,W,Ft,"ς","\\varsigma",!0),k(I,W,Ft,"φ","\\varphi",!0),k(I,W,Ot,"∗","*",!0),k(I,W,Ot,"+","+"),k(I,W,Ot,"−","-",!0),k(I,W,Ot,"⋅","\\cdot",!0),k(I,W,Ot,"∘","\\circ",!0),k(I,W,Ot,"÷","\\div",!0),k(I,W,Ot,"±","\\pm",!0),k(I,W,Ot,"×","\\times",!0),k(I,W,Ot,"∩","\\cap",!0),k(I,W,Ot,"∪","\\cup",!0),k(I,W,Ot,"∖","\\setminus",!0),k(I,W,Ot,"∧","\\land"),k(I,W,Ot,"∨","\\lor"),k(I,W,Ot,"∧","\\wedge",!0),k(I,W,Ot,"∨","\\vee",!0),k(I,W,Ce,"√","\\surd"),k(I,W,Tl,"⟨","\\langle",!0),k(I,W,Tl,"∣","\\lvert"),k(I,W,Tl,"∥","\\lVert"),k(I,W,yo,"?","?"),k(I,W,yo,"!","!"),k(I,W,yo,"⟩","\\rangle",!0),k(I,W,yo,"∣","\\rvert"),k(I,W,yo,"∥","\\rVert"),k(I,W,pe,"=","="),k(I,W,pe,":",":"),k(I,W,pe,"≈","\\approx",!0),k(I,W,pe,"≅","\\cong",!0),k(I,W,pe,"≥","\\ge"),k(I,W,pe,"≥","\\geq",!0),k(I,W,pe,"←","\\gets"),k(I,W,pe,">","\\gt",!0),k(I,W,pe,"∈","\\in",!0),k(I,W,pe,"","\\@not"),k(I,W,pe,"⊂","\\subset",!0),k(I,W,pe,"⊃","\\supset",!0),k(I,W,pe,"⊆","\\subseteq",!0),k(I,W,pe,"⊇","\\supseteq",!0),k(I,fe,pe,"⊈","\\nsubseteq",!0),k(I,fe,pe,"⊉","\\nsupseteq",!0),k(I,W,pe,"⊨","\\models"),k(I,W,pe,"←","\\leftarrow",!0),k(I,W,pe,"≤","\\le"),k(I,W,pe,"≤","\\leq",!0),k(I,W,pe,"<","\\lt",!0),k(I,W,pe,"→","\\rightarrow",!0),k(I,W,pe,"→","\\to"),k(I,fe,pe,"≱","\\ngeq",!0),k(I,fe,pe,"≰","\\nleq",!0),k(I,W,cf," ","\\ "),k(I,W,cf," ","\\space"),k(I,W,cf," ","\\nobreakspace"),k(ot,W,cf," ","\\ "),k(ot,W,cf," "," "),k(ot,W,cf," ","\\space"),k(ot,W,cf," ","\\nobreakspace"),k(I,W,cf,null,"\\nobreak"),k(I,W,cf,null,"\\allowbreak"),k(I,W,Q3,",",","),k(I,W,Q3,";",";"),k(I,fe,Ot,"⊼","\\barwedge",!0),k(I,fe,Ot,"⊻","\\veebar",!0),k(I,W,Ot,"⊙","\\odot",!0),k(I,W,Ot,"⊕","\\oplus",!0),k(I,W,Ot,"⊗","\\otimes",!0),k(I,W,Ce,"∂","\\partial",!0),k(I,W,Ot,"⊘","\\oslash",!0),k(I,fe,Ot,"⊚","\\circledcirc",!0),k(I,fe,Ot,"⊡","\\boxdot",!0),k(I,W,Ot,"△","\\bigtriangleup"),k(I,W,Ot,"▽","\\bigtriangledown"),k(I,W,Ot,"†","\\dagger"),k(I,W,Ot,"⋄","\\diamond"),k(I,W,Ot,"⋆","\\star"),k(I,W,Ot,"◃","\\triangleleft"),k(I,W,Ot,"▹","\\triangleright"),k(I,W,Tl,"{","\\{"),k(ot,W,Ce,"{","\\{"),k(ot,W,Ce,"{","\\textbraceleft"),k(I,W,yo,"}","\\}"),k(ot,W,Ce,"}","\\}"),k(ot,W,Ce,"}","\\textbraceright"),k(I,W,Tl,"{","\\lbrace"),k(I,W,yo,"}","\\rbrace"),k(I,W,Tl,"[","\\lbrack",!0),k(ot,W,Ce,"[","\\lbrack",!0),k(I,W,yo,"]","\\rbrack",!0),k(ot,W,Ce,"]","\\rbrack",!0),k(I,W,Tl,"(","\\lparen",!0),k(I,W,yo,")","\\rparen",!0),k(ot,W,Ce,"<","\\textless",!0),k(ot,W,Ce,">","\\textgreater",!0),k(I,W,Tl,"⌊","\\lfloor",!0),k(I,W,yo,"⌋","\\rfloor",!0),k(I,W,Tl,"⌈","\\lceil",!0),k(I,W,yo,"⌉","\\rceil",!0),k(I,W,Ce,"\\","\\backslash"),k(I,W,Ce,"∣","|"),k(I,W,Ce,"∣","\\vert"),k(ot,W,Ce,"|","\\textbar",!0),k(I,W,Ce,"∥","\\|"),k(I,W,Ce,"∥","\\Vert"),k(ot,W,Ce,"∥","\\textbardbl"),k(ot,W,Ce,"~","\\textasciitilde"),k(ot,W,Ce,"\\","\\textbackslash"),k(ot,W,Ce,"^","\\textasciicircum"),k(I,W,pe,"↑","\\uparrow",!0),k(I,W,pe,"⇑","\\Uparrow",!0),k(I,W,pe,"↓","\\downarrow",!0),k(I,W,pe,"⇓","\\Downarrow",!0),k(I,W,pe,"↕","\\updownarrow",!0),k(I,W,pe,"⇕","\\Updownarrow",!0),k(I,W,Di,"∐","\\coprod"),k(I,W,Di,"⋁","\\bigvee"),k(I,W,Di,"⋀","\\bigwedge"),k(I,W,Di,"⨄","\\biguplus"),k(I,W,Di,"⋂","\\bigcap"),k(I,W,Di,"⋃","\\bigcup"),k(I,W,Di,"∫","\\int"),k(I,W,Di,"∫","\\intop"),k(I,W,Di,"∬","\\iint"),k(I,W,Di,"∭","\\iiint"),k(I,W,Di,"∏","\\prod"),k(I,W,Di,"∑","\\sum"),k(I,W,Di,"⨂","\\bigotimes"),k(I,W,Di,"⨁","\\bigoplus"),k(I,W,Di,"⨀","\\bigodot"),k(I,W,Di,"∮","\\oint"),k(I,W,Di,"∯","\\oiint"),k(I,W,Di,"∰","\\oiiint"),k(I,W,Di,"⨆","\\bigsqcup"),k(I,W,Di,"∫","\\smallint"),k(ot,W,kg,"…","\\textellipsis"),k(I,W,kg,"…","\\mathellipsis"),k(ot,W,kg,"…","\\ldots",!0),k(I,W,kg,"…","\\ldots",!0),k(I,W,kg,"⋯","\\@cdots",!0),k(I,W,kg,"⋱","\\ddots",!0),k(I,W,Ce,"⋮","\\varvdots"),k(ot,W,Ce,"⋮","\\varvdots"),k(I,W,Gr,"ˊ","\\acute"),k(I,W,Gr,"ˋ","\\grave"),k(I,W,Gr,"¨","\\ddot"),k(I,W,Gr,"~","\\tilde"),k(I,W,Gr,"ˉ","\\bar"),k(I,W,Gr,"˘","\\breve"),k(I,W,Gr,"ˇ","\\check"),k(I,W,Gr,"^","\\hat"),k(I,W,Gr,"⃗","\\vec"),k(I,W,Gr,"˙","\\dot"),k(I,W,Gr,"˚","\\mathring"),k(I,W,Ft,"","\\@imath"),k(I,W,Ft,"","\\@jmath"),k(I,W,Ce,"ı","ı"),k(I,W,Ce,"ȷ","ȷ"),k(ot,W,Ce,"ı","\\i",!0),k(ot,W,Ce,"ȷ","\\j",!0),k(ot,W,Ce,"ß","\\ss",!0),k(ot,W,Ce,"æ","\\ae",!0),k(ot,W,Ce,"œ","\\oe",!0),k(ot,W,Ce,"ø","\\o",!0),k(ot,W,Ce,"Æ","\\AE",!0),k(ot,W,Ce,"Œ","\\OE",!0),k(ot,W,Ce,"Ø","\\O",!0),k(ot,W,Gr,"ˊ","\\'"),k(ot,W,Gr,"ˋ","\\`"),k(ot,W,Gr,"ˆ","\\^"),k(ot,W,Gr,"˜","\\~"),k(ot,W,Gr,"ˉ","\\="),k(ot,W,Gr,"˘","\\u"),k(ot,W,Gr,"˙","\\."),k(ot,W,Gr,"¸","\\c"),k(ot,W,Gr,"˚","\\r"),k(ot,W,Gr,"ˇ","\\v"),k(ot,W,Gr,"¨",'\\"'),k(ot,W,Gr,"˝","\\H"),k(ot,W,Gr,"◯","\\textcircled");var XN={"--":!0,"---":!0,"``":!0,"''":!0};k(ot,W,Ce,"–","--",!0),k(ot,W,Ce,"–","\\textendash"),k(ot,W,Ce,"—","---",!0),k(ot,W,Ce,"—","\\textemdash"),k(ot,W,Ce,"‘","`",!0),k(ot,W,Ce,"‘","\\textquoteleft"),k(ot,W,Ce,"’","'",!0),k(ot,W,Ce,"’","\\textquoteright"),k(ot,W,Ce,"“","``",!0),k(ot,W,Ce,"“","\\textquotedblleft"),k(ot,W,Ce,"”","''",!0),k(ot,W,Ce,"”","\\textquotedblright"),k(I,W,Ce,"°","\\degree",!0),k(ot,W,Ce,"°","\\degree"),k(ot,W,Ce,"°","\\textdegree",!0),k(I,W,Ce,"£","\\pounds"),k(I,W,Ce,"£","\\mathsterling",!0),k(ot,W,Ce,"£","\\pounds"),k(ot,W,Ce,"£","\\textsterling",!0),k(I,fe,Ce,"✠","\\maltese"),k(ot,fe,Ce,"✠","\\maltese");for(var WN='0123456789/@."',FT=0;FT<WN.length;FT++){var QN=WN.charAt(FT);k(I,W,Ce,QN,QN)}for(var KN='0123456789!@*()-=+";:?/.,',YT=0;YT<KN.length;YT++){var ZN=KN.charAt(YT);k(ot,W,Ce,ZN,ZN)}for(var K3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",XT=0;XT<K3.length;XT++){var Z3=K3.charAt(XT);k(I,W,Ft,Z3,Z3),k(ot,W,Ce,Z3,Z3)}k(I,fe,Ce,"C","ℂ"),k(ot,fe,Ce,"C","ℂ"),k(I,fe,Ce,"H","ℍ"),k(ot,fe,Ce,"H","ℍ"),k(I,fe,Ce,"N","ℕ"),k(ot,fe,Ce,"N","ℕ"),k(I,fe,Ce,"P","ℙ"),k(ot,fe,Ce,"P","ℙ"),k(I,fe,Ce,"Q","ℚ"),k(ot,fe,Ce,"Q","ℚ"),k(I,fe,Ce,"R","ℝ"),k(ot,fe,Ce,"R","ℝ"),k(I,fe,Ce,"Z","ℤ"),k(ot,fe,Ce,"Z","ℤ"),k(I,W,Ft,"h","ℎ"),k(ot,W,Ft,"h","ℎ");for(var rn="",vo=0;vo<K3.length;vo++){var hi=K3.charAt(vo);rn=String.fromCharCode(55349,56320+vo),k(I,W,Ft,hi,rn),k(ot,W,Ce,hi,rn),rn=String.fromCharCode(55349,56372+vo),k(I,W,Ft,hi,rn),k(ot,W,Ce,hi,rn),rn=String.fromCharCode(55349,56424+vo),k(I,W,Ft,hi,rn),k(ot,W,Ce,hi,rn),rn=String.fromCharCode(55349,56580+vo),k(I,W,Ft,hi,rn),k(ot,W,Ce,hi,rn),rn=String.fromCharCode(55349,56684+vo),k(I,W,Ft,hi,rn),k(ot,W,Ce,hi,rn),rn=String.fromCharCode(55349,56736+vo),k(I,W,Ft,hi,rn),k(ot,W,Ce,hi,rn),rn=String.fromCharCode(55349,56788+vo),k(I,W,Ft,hi,rn),k(ot,W,Ce,hi,rn),rn=String.fromCharCode(55349,56840+vo),k(I,W,Ft,hi,rn),k(ot,W,Ce,hi,rn),rn=String.fromCharCode(55349,56944+vo),k(I,W,Ft,hi,rn),k(ot,W,Ce,hi,rn),vo<26&&(rn=String.fromCharCode(55349,56632+vo),k(I,W,Ft,hi,rn),k(ot,W,Ce,hi,rn),rn=String.fromCharCode(55349,56476+vo),k(I,W,Ft,hi,rn),k(ot,W,Ce,hi,rn))}rn="𝕜",k(I,W,Ft,"k",rn),k(ot,W,Ce,"k",rn);for(var Rh=0;Rh<10;Rh++){var Pd=Rh.toString();rn=String.fromCharCode(55349,57294+Rh),k(I,W,Ft,Pd,rn),k(ot,W,Ce,Pd,rn),rn=String.fromCharCode(55349,57314+Rh),k(I,W,Ft,Pd,rn),k(ot,W,Ce,Pd,rn),rn=String.fromCharCode(55349,57324+Rh),k(I,W,Ft,Pd,rn),k(ot,W,Ce,Pd,rn),rn=String.fromCharCode(55349,57334+Rh),k(I,W,Ft,Pd,rn),k(ot,W,Ce,Pd,rn)}for(var WT="ÐÞþ",QT=0;QT<WT.length;QT++){var J3=WT.charAt(QT);k(I,W,Ft,J3,J3),k(ot,W,Ce,J3,J3)}var e6=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],JN=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],moe=(e,t)=>{var n=e.charCodeAt(0),i=e.charCodeAt(1),o=(n-55296)*1024+(i-56320)+65536,s=t==="math"?0:1;if(119808<=o&&o<120484){var c=Math.floor((o-119808)/26);return[e6[c][2],e6[c][s]]}else if(120782<=o&&o<=120831){var d=Math.floor((o-120782)/10);return[JN[d][2],JN[d][s]]}else{if(o===120485||o===120486)return[e6[0][2],e6[0][s]];if(120486<o&&o<120782)return["",""];throw new ft("Unsupported character: "+e)}},t6=function(t,n,i){if(qr[i][t]){var o=qr[i][t].replace;o&&(t=o)}return{value:t,metrics:qT(t,n,i)}},bo=function(t,n,i,o,s){var c=t6(t,n,i),d=c.metrics;t=c.value;var h;if(d){var y=d.italic;(i==="text"||o&&o.font==="mathit")&&(y=0),h=new wl(t,d.height,d.depth,y,d.skew,d.width,s)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+n+"' and mode '"+i+"'")),h=new wl(t,0,0,0,0,0,s);if(o){h.maxFontSize=o.sizeMultiplier,o.style.isTight()&&h.classes.push("mtight");var v=o.getColor();v&&(h.style.color=v)}return h},KT=function(t,n,i,o){return o===void 0&&(o=[]),i.font==="boldsymbol"&&t6(t,"Main-Bold",n).metrics?bo(t,"Main-Bold",n,i,o.concat(["mathbf"])):t==="\\"||qr[n][t].font==="main"?bo(t,"Main-Regular",n,i,o):bo(t,"AMS-Regular",n,i,o.concat(["amsrm"]))},goe=function(t,n,i,o,s){return s!=="textord"&&t6(t,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},n6=function(t,n,i){var o=t.mode,s=t.text,c=["mord"],d=o==="math"||o==="text"&&n.font,h=d?n.font:n.fontFamily,y="",v="";if(s.charCodeAt(0)===55349&&([y,v]=moe(s,o)),y.length>0)return bo(s,y,o,n,c.concat(v));if(h){var S,T;if(h==="boldsymbol"){var w=goe(s,o,n,c,i);S=w.fontName,T=[w.fontClass]}else d?(S=JT[h].fontName,T=[h]):(S=r6(h,n.fontWeight,n.fontShape),T=[h,n.fontWeight,n.fontShape]);if(t6(s,S,o).metrics)return bo(s,S,o,n,c.concat(T));if(XN.hasOwnProperty(s)&&S.slice(0,10)==="Typewriter"){for(var C=[],R=0;R<s.length;R++)C.push(bo(s[R],S,o,n,c.concat(T)));return ff(C)}}if(i==="mathord")return bo(s,"Math-Italic",o,n,c.concat(["mathnormal"]));if(i==="textord"){var _=qr[o][s]&&qr[o][s].font;if(_==="ams"){var N=r6("amsrm",n.fontWeight,n.fontShape);return bo(s,N,o,n,c.concat("amsrm",n.fontWeight,n.fontShape))}else if(_==="main"||!_){var z=r6("textrm",n.fontWeight,n.fontShape);return bo(s,z,o,n,c.concat(n.fontWeight,n.fontShape))}else{var B=r6(_,n.fontWeight,n.fontShape);return bo(s,B,o,n,c.concat(B,n.fontWeight,n.fontShape))}}else throw new Error("unexpected type: "+i+" in makeOrd")},yoe=(e,t)=>{if(Bd(e.classes)!==Bd(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass("mathnormal"))return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var i of Object.keys(e.style))if(e.style[i]!==t.style[i])return!1;for(var o of Object.keys(t.style))if(e.style[o]!==t.style[o])return!1;return!0},ek=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],i=e[t+1];n instanceof wl&&i instanceof wl&&yoe(n,i)&&(n.text+=i.text,n.height=Math.max(n.height,i.height),n.depth=Math.max(n.depth,i.depth),n.italic=i.italic,e.splice(t+1,1),t--)}return e},ZT=function(t){for(var n=0,i=0,o=0,s=0;s<t.children.length;s++){var c=t.children[s];c.height>n&&(n=c.height),c.depth>i&&(i=c.depth),c.maxFontSize>o&&(o=c.maxFontSize)}t.height=n,t.depth=i,t.maxFontSize=o},lt=function(t,n,i,o){var s=new Ng(t,n,i,o);return ZT(s),s},Ud=(e,t,n,i)=>new Ng(e,t,n,i),zg=function(t,n,i){var o=lt([t],[],n);return o.height=Math.max(i||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),o.style.borderBottomWidth=gt(o.height),o.maxFontSize=1,o},voe=function(t,n,i,o){var s=new X3(t,n,i,o);return ZT(s),s},ff=function(t){var n=new Dg(t);return ZT(n),n},Ig=function(t,n){return t instanceof Dg?lt([],[t],n):t},boe=function(t){if(t.positionType==="individualShift"){for(var n=t.children,i=[n[0]],o=-n[0].shift-n[0].elem.depth,s=o,c=1;c<n.length;c++){var d=-n[c].shift-s-n[c].elem.depth,h=d-(n[c-1].elem.height+n[c-1].elem.depth);s=s+d,i.push({type:"kern",size:h}),i.push(n[c])}return{children:i,depth:o}}var y;if(t.positionType==="top"){for(var v=t.positionData,S=0;S<t.children.length;S++){var T=t.children[S];v-=T.type==="kern"?T.size:T.elem.height+T.elem.depth}y=v}else if(t.positionType==="bottom")y=-t.positionData;else{var w=t.children[0];if(w.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")y=-w.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")y=-w.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:y}},er=function(t,n){for(var{children:i,depth:o}=boe(t),s=0,c=0;c<i.length;c++){var d=i[c];if(d.type==="elem"){var h=d.elem;s=Math.max(s,h.maxFontSize,h.height)}}s+=2;var y=lt(["pstrut"],[]);y.style.height=gt(s);for(var v=[],S=o,T=o,w=o,C=0;C<i.length;C++){var R=i[C];if(R.type==="kern")w+=R.size;else{var _=R.elem,N=R.wrapperClasses||[],z=R.wrapperStyle||{},B=lt(N,[y,_],void 0,z);B.style.top=gt(-s-w-_.depth),R.marginLeft&&(B.style.marginLeft=R.marginLeft),R.marginRight&&(B.style.marginRight=R.marginRight),v.push(B),w+=_.height+_.depth}S=Math.min(S,w),T=Math.max(T,w)}var V=lt(["vlist"],v);V.style.height=gt(T);var L;if(S<0){var U=lt([],[]),X=lt(["vlist"],[U]);X.style.height=gt(-S);var se=lt(["vlist-s"],[new wl("")]);L=[lt(["vlist-r"],[V,se]),lt(["vlist-r"],[X])]}else L=[lt(["vlist-r"],[V])];var ce=lt(["vlist-t"],L);return L.length===2&&ce.classes.push("vlist-t2"),ce.height=T,ce.depth=-S,ce},tk=(e,t)=>{var n=lt(["mspace"],[],t),i=ii(e,t);return n.style.marginRight=gt(i),n},r6=function(t,n,i){var o="";switch(t){case"amsrm":o="AMS";break;case"textrm":o="Main";break;case"textsf":o="SansSerif";break;case"texttt":o="Typewriter";break;default:o=t}var s;return n==="textbf"&&i==="textit"?s="BoldItalic":n==="textbf"?s="Bold":n==="textit"?s="Italic":s="Regular",o+"-"+s},JT={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},nk={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},rk=function(t,n){var[i,o,s]=nk[t],c=new jd(i),d=new uf([c],{width:gt(o),height:gt(s),style:"width:"+gt(o),viewBox:"0 0 "+1e3*o+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),h=Ud(["overlay"],[d],n);return h.height=s,h.style.height=gt(s),h.style.width=gt(o),h},ai={number:3,unit:"mu"},_h={number:4,unit:"mu"},df={number:5,unit:"mu"},xoe={mord:{mop:ai,mbin:_h,mrel:df,minner:ai},mop:{mord:ai,mop:ai,mrel:df,minner:ai},mbin:{mord:_h,mop:_h,mopen:_h,minner:_h},mrel:{mord:df,mop:df,mopen:df,minner:df},mopen:{},mclose:{mop:ai,mbin:_h,mrel:df,minner:ai},mpunct:{mord:ai,mop:ai,mrel:df,mopen:ai,mclose:ai,mpunct:ai,minner:ai},minner:{mord:ai,mop:ai,mbin:_h,mrel:df,mopen:ai,mpunct:ai,minner:ai}},Soe={mord:{mop:ai},mop:{mord:ai,mop:ai},mbin:{},mrel:{},mopen:{},mclose:{mop:ai},mpunct:{},minner:{mop:ai}},ik={},i6={},a6={};function Tt(e){for(var{type:t,names:n,props:i,handler:o,htmlBuilder:s,mathmlBuilder:c}=e,d={type:t,numArgs:i.numArgs,argTypes:i.argTypes,allowedInArgument:!!i.allowedInArgument,allowedInText:!!i.allowedInText,allowedInMath:i.allowedInMath===void 0?!0:i.allowedInMath,numOptionalArgs:i.numOptionalArgs||0,infix:!!i.infix,primitive:!!i.primitive,handler:o},h=0;h<n.length;++h)ik[n[h]]=d;t&&(s&&(i6[t]=s),c&&(a6[t]=c))}function Dh(e){var{type:t,htmlBuilder:n,mathmlBuilder:i}=e;Tt({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:i})}var o6=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},Ni=function(t){return t.type==="ordgroup"?t.body:[t]},Eoe=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),woe=new Set(["rightmost","mrel","mclose","mpunct"]),Toe={display:un.DISPLAY,text:un.TEXT,script:un.SCRIPT,scriptscript:un.SCRIPTSCRIPT},Aoe={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},qi=function(t,n,i,o){o===void 0&&(o=[null,null]);for(var s=[],c=0;c<t.length;c++){var d=tr(t[c],n);if(d instanceof Dg){var h=d.children;s.push(...h)}else s.push(d)}if(ek(s),!i)return s;var y=n;if(t.length===1){var v=t[0];v.type==="sizing"?y=n.havingSize(v.size):v.type==="styling"&&(y=n.havingStyle(Toe[v.style]))}var S=lt([o[0]||"leftmost"],[],n),T=lt([o[1]||"rightmost"],[],n),w=i==="root";return e8(s,(C,R)=>{var _=R.classes[0],N=C.classes[0];_==="mbin"&&woe.has(N)?R.classes[0]="mord":N==="mbin"&&Eoe.has(_)&&(C.classes[0]="mord")},{node:S},T,w),e8(s,(C,R)=>{var _,N,z=n8(R),B=n8(C),V=z&&B?C.hasClass("mtight")?(_=Soe[z])==null?void 0:_[B]:(N=xoe[z])==null?void 0:N[B]:null;if(V)return tk(V,y)},{node:S},T,w),s},e8=function(t,n,i,o,s){o&&t.push(o);for(var c=0;c<t.length;c++){var d=t[c],h=ak(d);if(h){e8(h.children,n,i,null,s);continue}var y=!d.hasClass("mspace");if(y){var v=n(d,i.node);v&&(i.insertAfter?i.insertAfter(v):(t.unshift(v),c++))}y?i.node=d:s&&d.hasClass("newline")&&(i.node=lt(["leftmost"])),i.insertAfter=(S=>T=>{t.splice(S+1,0,T),c++})(c)}o&&t.pop()},ak=function(t){return t instanceof Dg||t instanceof X3||t instanceof Ng&&t.hasClass("enclosing")?t:null},t8=function(t,n){var i=ak(t);if(i){var o=i.children;if(o.length){if(n==="right")return t8(o[o.length-1],"right");if(n==="left")return t8(o[0],"left")}}return t},n8=function(t,n){if(!t)return null;n&&(t=t8(t,n));var i=t.classes[0];return Aoe[i]||null},Nb=function(t,n){var i=["nulldelimiter"].concat(t.baseSizingClasses());return lt(n.concat(i))},tr=function(t,n,i){if(!t)return lt();if(i6[t.type]){var o=i6[t.type](t,n);if(i&&n.size!==i.size){o=lt(n.sizingClasses(i),[o],n);var s=n.sizeMultiplier/i.sizeMultiplier;o.height*=s,o.depth*=s}return o}else throw new ft("Got group of unknown type: '"+t.type+"'")};function l6(e,t){var n=lt(["base"],e,t),i=lt(["strut"]);return i.style.height=gt(n.height+n.depth),n.depth&&(i.style.verticalAlign=gt(-n.depth)),n.children.unshift(i),n}function r8(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var i=qi(e,t,"root"),o;i.length===2&&i[1].hasClass("tag")&&(o=i.pop());for(var s=[],c=[],d=0;d<i.length;d++)if(c.push(i[d]),i[d].hasClass("mbin")||i[d].hasClass("mrel")||i[d].hasClass("allowbreak")){for(var h=!1;d<i.length-1&&i[d+1].hasClass("mspace")&&!i[d+1].hasClass("newline");)d++,c.push(i[d]),i[d].hasClass("nobreak")&&(h=!0);h||(s.push(l6(c,t)),c=[])}else i[d].hasClass("newline")&&(c.pop(),c.length>0&&(s.push(l6(c,t)),c=[]),s.push(i[d]));c.length>0&&s.push(l6(c,t));var y;n?(y=l6(qi(n,t,!0),t),y.classes=["tag"],s.push(y)):o&&s.push(o);var v=lt(["katex-html"],s);if(v.setAttribute("aria-hidden","true"),y){var S=y.children[0];S.style.height=gt(v.height+v.depth),v.depth&&(S.style.verticalAlign=gt(-v.depth))}return v}function ok(e){return new Dg(e)}class ht{constructor(t,n,i){this.type=t,this.attributes={},this.children=n||[],this.classes=i||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=Bd(this.classes));for(var i=0;i<this.children.length;i++)if(this.children[i]instanceof ki&&this.children[i+1]instanceof ki){for(var o=this.children[i].toText()+this.children[++i].toText();this.children[i+1]instanceof ki;)o+=this.children[++i].toText();t.appendChild(new ki(o).toNode())}else t.appendChild(this.children[i].toNode());return t}toMarkup(){var t="<"+this.type;for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="',t+=qa(this.attributes[n]),t+='"');this.classes.length>0&&(t+=' class ="'+qa(Bd(this.classes))+'"'),t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class ki{constructor(t){this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return qa(this.toText())}toText(){return this.text}}class lk{constructor(t){this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character=" ":t>=-.05556&&t<=-.05555?this.character=" ":t>=-.1667&&t<=-.1666?this.character=" ":t>=-.2223&&t<=-.2222?this.character=" ":t>=-.2778&&t<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",gt(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+gt(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var Coe=new Set(["\\imath","\\jmath"]),Ooe=new Set(["mrow","mtable"]),rs=function(t,n,i){return qr[n][t]&&qr[n][t].replace&&t.charCodeAt(0)!==55349&&!(XN.hasOwnProperty(t)&&i&&(i.fontFamily&&i.fontFamily.slice(4,6)==="tt"||i.font&&i.font.slice(4,6)==="tt"))&&(t=qr[n][t].replace),new ki(t)},i8=function(t){return t.length===1?t[0]:new ht("mrow",t)},a8=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var i=n.font;if(!i||i==="mathnormal")return null;var o=t.mode;if(i==="mathit")return"italic";if(i==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(i==="mathbf")return"bold";if(i==="mathbb")return"double-struck";if(i==="mathsfit")return"sans-serif-italic";if(i==="mathfrak")return"fraktur";if(i==="mathscr"||i==="mathcal")return"script";if(i==="mathsf")return"sans-serif";if(i==="mathtt")return"monospace";var s=t.text;if(Coe.has(s))return null;if(qr[o][s]){var c=qr[o][s].replace;c&&(s=c)}var d=JT[i].fontName;return qT(s,d,o)?JT[i].variant:null};function o8(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof ki&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var n=e.children[0];return n instanceof ki&&n.text===","}else return!1}var Al=function(t,n,i){if(t.length===1){var o=Cr(t[0],n);return i&&o instanceof ht&&o.type==="mo"&&(o.setAttribute("lspace","0em"),o.setAttribute("rspace","0em")),[o]}for(var s=[],c,d=0;d<t.length;d++){var h=Cr(t[d],n);if(h instanceof ht&&c instanceof ht){if(h.type==="mtext"&&c.type==="mtext"&&h.getAttribute("mathvariant")===c.getAttribute("mathvariant")){c.children.push(...h.children);continue}else if(h.type==="mn"&&c.type==="mn"){c.children.push(...h.children);continue}else if(o8(h)&&c.type==="mn"){c.children.push(...h.children);continue}else if(h.type==="mn"&&o8(c))h.children=[...c.children,...h.children],s.pop();else if((h.type==="msup"||h.type==="msub")&&h.children.length>=1&&(c.type==="mn"||o8(c))){var y=h.children[0];y instanceof ht&&y.type==="mn"&&(y.children=[...c.children,...y.children],s.pop())}else if(c.type==="mi"&&c.children.length===1){var v=c.children[0];if(v instanceof ki&&v.text==="̸"&&(h.type==="mo"||h.type==="mi"||h.type==="mn")){var S=h.children[0];S instanceof ki&&S.text.length>0&&(S.text=S.text.slice(0,1)+"̸"+S.text.slice(1),s.pop())}}}s.push(h),c=h}return s},$d=function(t,n,i){return i8(Al(t,n,i))},Cr=function(t,n){if(!t)return new ht("mrow");if(a6[t.type]){var i=a6[t.type](t,n);return i}else throw new ft("Got group of unknown type: '"+t.type+"'")};function sk(e,t,n,i,o){var s=Al(e,n),c;s.length===1&&s[0]instanceof ht&&Ooe.has(s[0].type)?c=s[0]:c=new ht("mrow",s);var d=new ht("annotation",[new ki(t)]);d.setAttribute("encoding","application/x-tex");var h=new ht("semantics",[c,d]),y=new ht("math",[h]);y.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),i&&y.setAttribute("display","block");var v=o?"katex":"katex-mathml";return lt([v],[y])}var Moe=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],uk=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],ck=function(t,n){return n.size<2?t:Moe[t-1][n.size-1]};class hf{constructor(t){this.style=t.style,this.color=t.color,this.size=t.size||hf.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=uk[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(n,t),new hf(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:ck(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:uk[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=ck(hf.BASESIZE,t);return this.size===n&&this.textSize===hf.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==hf.BASESIZE?["sizing","reset-size"+this.size,"size"+hf.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=doe(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}hf.BASESIZE=6;var fk=function(t){return new hf({style:t.displayMode?un.DISPLAY:un.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},dk=function(t,n){if(n.displayMode){var i=["katex-display"];n.leqno&&i.push("leqno"),n.fleqn&&i.push("fleqn"),t=lt(i,[t])}return t},Roe=function(t,n,i){var o=fk(i),s;if(i.output==="mathml")return sk(t,n,o,i.displayMode,!0);if(i.output==="html"){var c=r8(t,o);s=lt(["katex"],[c])}else{var d=sk(t,n,o,i.displayMode,!1),h=r8(t,o);s=lt(["katex"],[d,h])}return dk(s,i)},_oe=function(t,n,i){var o=fk(i),s=r8(t,o),c=lt(["katex"],[s]);return dk(c,i)},Doe={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},s6=function(t){var n=new ht("mo",[new ki(Doe[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},Noe={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},koe=new Set(["widehat","widecheck","widetilde","utilde"]),u6=function(t,n){function i(){var d=4e5,h=t.label.slice(1);if(koe.has(h)){var y=t,v=y.base.type==="ordgroup"?y.base.body.length:1,S,T,w;if(v>5)h==="widehat"||h==="widecheck"?(S=420,d=2364,w=.42,T=h+"4"):(S=312,d=2340,w=.34,T="tilde4");else{var C=[1,1,2,2,3,3][v];h==="widehat"||h==="widecheck"?(d=[0,1062,2364,2364,2364][C],S=[0,239,300,360,420][C],w=[0,.24,.3,.3,.36,.42][C],T=h+C):(d=[0,600,1033,2339,2340][C],S=[0,260,286,306,312][C],w=[0,.26,.286,.3,.306,.34][C],T="tilde"+C)}var R=new jd(T),_=new uf([R],{width:"100%",height:gt(w),viewBox:"0 0 "+d+" "+S,preserveAspectRatio:"none"});return{span:Ud([],[_],n),minWidth:0,height:w}}else{var N=[],z=Noe[h],[B,V,L]=z,U=L/1e3,X=B.length,se,ce;if(X===1){var ie=z[3];se=["hide-tail"],ce=[ie]}else if(X===2)se=["halfarrow-left","halfarrow-right"],ce=["xMinYMin","xMaxYMin"];else if(X===3)se=["brace-left","brace-center","brace-right"],ce=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
919
|
-
`+X+" children.");for(var ue=0;ue<X;ue++){var $=new jd(B[ue]),le=new uf([$],{width:"400em",height:gt(U),viewBox:"0 0 "+d+" "+L,preserveAspectRatio:ce[ue]+" slice"}),Q=Ud([se[ue]],[le],n);if(X===1)return{span:Q,minWidth:V,height:U};Q.style.height=gt(U),N.push(Q)}return{span:lt(["stretchy"],N,n),minWidth:V,height:U}}}var{span:o,minWidth:s,height:c}=i();return o.height=c,o.style.height=gt(c),s>0&&(o.style.minWidth=gt(s)),o},zoe=function(t,n,i,o,s){var c,d=t.height+t.depth+i+o;if(/fbox|color|angl/.test(n)){if(c=lt(["stretchy",n],[],s),n==="fbox"){var h=s.color&&s.getColor();h&&(c.style.borderColor=h)}}else{var y=[];/^[bx]cancel$/.test(n)&&y.push(new HT({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&y.push(new HT({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var v=new uf(y,{width:"100%",height:gt(d)});c=Ud([],[v],s)}return c.height=d,c.style.height=gt(d),c};function Tn(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function c6(e){var t=f6(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function f6(e){return e&&(e.type==="atom"||poe.hasOwnProperty(e.type))?e:null}var hk=e=>{if(e instanceof wl)return e;if(coe(e)&&e.children.length===1)return hk(e.children[0])},l8=(e,t)=>{var n,i,o;e&&e.type==="supsub"?(i=Tn(e.base,"accent"),n=i.base,e.base=n,o=uoe(tr(e,t)),e.base=i):(i=Tn(e,"accent"),n=i.base);var s=tr(n,t.havingCrampedStyle()),c=i.isShifty&&lf(n),d=0;if(c){var h,y;d=(h=(y=hk(s))==null?void 0:y.skew)!=null?h:0}var v=i.label==="\\c",S=v?s.height+s.depth:Math.min(s.height,t.fontMetrics().xHeight),T;if(i.isStretchy)T=u6(i,t),T=er({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:T,wrapperClasses:["svg-align"],wrapperStyle:d>0?{width:"calc(100% - "+gt(2*d)+")",marginLeft:gt(2*d)}:void 0}]});else{var w,C;i.label==="\\vec"?(w=rk("vec",t),C=nk.vec[1]):(w=n6({mode:i.mode,text:i.label},t,"textord"),w=soe(w),w.italic=0,C=w.width,v&&(S+=w.depth)),T=lt(["accent-body"],[w]);var R=i.label==="\\textcircled";R&&(T.classes.push("accent-full"),S=s.height);var _=d;R||(_-=C/2),T.style.left=gt(_),i.label==="\\textcircled"&&(T.style.top=".2em"),T=er({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-S},{type:"elem",elem:T}]})}var N=lt(["mord","accent"],[T],t);return o?(o.children[0]=N,o.height=Math.max(N.height,o.height),o.classes[0]="mord",o):N},pk=(e,t)=>{var n=e.isStretchy?s6(e.label):new ht("mo",[rs(e.label,e.mode)]),i=new ht("mover",[Cr(e.base,t),n]);return i.setAttribute("accent","true"),i},Ioe=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));Tt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=o6(t[0]),i=!Ioe.test(e.funcName),o=!i||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:i,isShifty:o,base:n}},htmlBuilder:l8,mathmlBuilder:pk}),Tt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],i=e.parser.mode;return i==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),i="text"),{type:"accent",mode:i,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:l8,mathmlBuilder:pk}),Tt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:i}=e,o=t[0];return{type:"accentUnder",mode:n.mode,label:i,base:o}},htmlBuilder:(e,t)=>{var n=tr(e.base,t),i=u6(e,t),o=e.label==="\\utilde"?.12:0,s=er({positionType:"top",positionData:n.height,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:n}]});return lt(["mord","accentunder"],[s],t)},mathmlBuilder:(e,t)=>{var n=s6(e.label),i=new ht("munder",[Cr(e.base,t),n]);return i.setAttribute("accentunder","true"),i}});var d6=e=>{var t=new ht("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Tt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:i,funcName:o}=e;return{type:"xArrow",mode:i.mode,label:o,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,i=t.havingStyle(n.sup()),o=Ig(tr(e.body,i,t),t),s=e.label.slice(0,2)==="\\x"?"x":"cd";o.classes.push(s+"-arrow-pad");var c;e.below&&(i=t.havingStyle(n.sub()),c=Ig(tr(e.below,i,t),t),c.classes.push(s+"-arrow-pad"));var d=u6(e,t),h=-t.fontMetrics().axisHeight+.5*d.height,y=-t.fontMetrics().axisHeight-.5*d.height-.111;(o.depth>.25||e.label==="\\xleftequilibrium")&&(y-=o.depth);var v;if(c){var S=-t.fontMetrics().axisHeight+c.height+.5*d.height+.111;v=er({positionType:"individualShift",children:[{type:"elem",elem:o,shift:y},{type:"elem",elem:d,shift:h},{type:"elem",elem:c,shift:S}]})}else v=er({positionType:"individualShift",children:[{type:"elem",elem:o,shift:y},{type:"elem",elem:d,shift:h}]});return v.children[0].children[0].children[1].classes.push("svg-align"),lt(["mrel","x-arrow"],[v],t)},mathmlBuilder(e,t){var n=s6(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var i;if(e.body){var o=d6(Cr(e.body,t));if(e.below){var s=d6(Cr(e.below,t));i=new ht("munderover",[n,s,o])}else i=new ht("mover",[n,o])}else if(e.below){var c=d6(Cr(e.below,t));i=new ht("munder",[n,c])}else i=d6(),i=new ht("mover",[n,i]);return i}});function mk(e,t){var n=qi(e.body,t,!0);return lt([e.mclass],n,t)}function gk(e,t){var n,i=Al(e.body,t);return e.mclass==="minner"?n=new ht("mpadded",i):e.mclass==="mord"?e.isCharacterBox?(n=i[0],n.type="mi"):n=new ht("mi",i):(e.isCharacterBox?(n=i[0],n.type="mo"):n=new ht("mo",i),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}Tt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:i}=e,o=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+i.slice(5),body:Ni(o),isCharacterBox:lf(o)}},htmlBuilder:mk,mathmlBuilder:gk});var h6=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};Tt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:h6(t[0]),body:Ni(t[1]),isCharacterBox:lf(t[1])}}}),Tt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:i}=e,o=t[1],s=t[0],c;i!=="\\stackrel"?c=h6(o):c="mrel";var d={type:"op",mode:o.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:i!=="\\stackrel",body:Ni(o)},h={type:"supsub",mode:s.mode,base:d,sup:i==="\\underset"?null:s,sub:i==="\\underset"?s:null};return{type:"mclass",mode:n.mode,mclass:c,body:[h],isCharacterBox:lf(h)}},htmlBuilder:mk,mathmlBuilder:gk}),Tt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:h6(t[0]),body:Ni(t[0])}},htmlBuilder(e,t){var n=qi(e.body,t,!0),i=lt([e.mclass],n,t);return i.style.textShadow="0.02em 0.01em 0.04px",i},mathmlBuilder(e,t){var n=Al(e.body,t),i=new ht("mstyle",n);return i.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),i}});var Loe={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},yk=()=>({type:"styling",body:[],mode:"math",style:"display"}),vk=e=>e.type==="textord"&&e.text==="@",Voe=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function Boe(e,t,n){var i=Loe[e];switch(i){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(i,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var o=n.callFunction("\\\\cdleft",[t[0]],[]),s={type:"atom",text:i,mode:"math",family:"rel"},c=n.callFunction("\\Big",[s],[]),d=n.callFunction("\\\\cdright",[t[1]],[]),h={type:"ordgroup",mode:"math",body:[o,c,d]};return n.callFunction("\\\\cdparent",[h],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var y={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[y],[])}default:return{type:"textord",text:" ",mode:"math"}}}function joe(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new ft("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var i=[],o=[i],s=0;s<t.length;s++){for(var c=t[s],d=yk(),h=0;h<c.length;h++)if(!vk(c[h]))d.body.push(c[h]);else{i.push(d),h+=1;var y=c6(c[h]).text,v=new Array(2);if(v[0]={type:"ordgroup",mode:"math",body:[]},v[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(y))if("<>AV".includes(y))for(var S=0;S<2;S++){for(var T=!0,w=h+1;w<c.length;w++){if(Voe(c[w],y)){T=!1,h=w;break}if(vk(c[w]))throw new ft("Missing a "+y+" character to complete a CD arrow.",c[w]);v[S].body.push(c[w])}if(T)throw new ft("Missing a "+y+" character to complete a CD arrow.",c[h])}else throw new ft('Expected one of "<>AV=|." after @',c[h]);var C=Boe(y,v,e),R={type:"styling",body:[C],mode:"math",style:"display"};i.push(R),d=yk()}s%2===0?i.push(d):i.shift(),i=[],o.push(i)}e.gullet.endGroup(),e.gullet.endGroup();var _=new Array(o[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:o,arraystretch:1,addJot:!0,rowGaps:[null],cols:_,colSeparationType:"CD",hLinesBeforeRow:new Array(o.length+1).fill([])}}Tt({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:i}=e;return{type:"cdlabel",mode:n.mode,side:i.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),i=Ig(tr(e.label,n,t),t);return i.classes.push("cd-label-"+e.side),i.style.bottom=gt(.8-i.depth),i.height=0,i.depth=0,i},mathmlBuilder(e,t){var n=new ht("mrow",[Cr(e.label,t)]);return n=new ht("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new ht("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}}),Tt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=Ig(tr(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new ht("mrow",[Cr(e.fragment,t)])}}),Tt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,i=Tn(t[0],"ordgroup"),o=i.body,s="",c=0;c<o.length;c++){var d=Tn(o[c],"textord");s+=d.text}var h=parseInt(s),y;if(isNaN(h))throw new ft("\\@char has non-numeric argument "+s);if(h<0||h>=1114111)throw new ft("\\@char with invalid code point "+s);return h<=65535?y=String.fromCharCode(h):(h-=65536,y=String.fromCharCode((h>>10)+55296,(h&1023)+56320)),{type:"textord",mode:n.mode,text:y}}});var bk=(e,t)=>{var n=qi(e.body,t.withColor(e.color),!1);return ff(n)},xk=(e,t)=>{var n=Al(e.body,t.withColor(e.color)),i=new ht("mstyle",n);return i.setAttribute("mathcolor",e.color),i};Tt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,i=Tn(t[0],"color-token").color,o=t[1];return{type:"color",mode:n.mode,color:i,body:Ni(o)}},htmlBuilder:bk,mathmlBuilder:xk}),Tt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:i}=e,o=Tn(t[0],"color-token").color;n.gullet.macros.set("\\current@color",o);var s=n.parseExpression(!0,i);return{type:"color",mode:n.mode,color:o,body:s}},htmlBuilder:bk,mathmlBuilder:xk}),Tt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:i}=e,o=i.gullet.future().text==="["?i.parseSizeGroup(!0):null,s=!i.settings.displayMode||!i.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:i.mode,newLine:s,size:o&&Tn(o,"size").value}},htmlBuilder(e,t){var n=lt(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=gt(ii(e.size,t)))),n},mathmlBuilder(e,t){var n=new ht("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",gt(ii(e.size,t)))),n}});var s8={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Sk=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new ft("Expected a control sequence",e);return t},Poe=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},Ek=(e,t,n,i)=>{var o=e.gullet.macros.get(n.text);o==null&&(n.noexpand=!0,o={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,o,i)};Tt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var i=t.fetch();if(s8[i.text])return(n==="\\global"||n==="\\\\globallong")&&(i.text=s8[i.text]),Tn(t.parseFunction(),"internal");throw new ft("Invalid token after macro prefix",i)}}),Tt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=t.gullet.popToken(),o=i.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(o))throw new ft("Expected a control sequence",i);for(var s=0,c,d=[[]];t.gullet.future().text!=="{";)if(i=t.gullet.popToken(),i.text==="#"){if(t.gullet.future().text==="{"){c=t.gullet.future(),d[s].push("{");break}if(i=t.gullet.popToken(),!/^[1-9]$/.test(i.text))throw new ft('Invalid argument number "'+i.text+'"');if(parseInt(i.text)!==s+1)throw new ft('Argument number "'+i.text+'" out of order');s++,d.push([])}else{if(i.text==="EOF")throw new ft("Expected a macro definition");d[s].push(i.text)}var{tokens:h}=t.gullet.consumeArg();return c&&h.unshift(c),(n==="\\edef"||n==="\\xdef")&&(h=t.gullet.expandTokens(h),h.reverse()),t.gullet.macros.set(o,{tokens:h,numArgs:s,delimiters:d},n===s8[n]),{type:"internal",mode:t.mode}}}),Tt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=Sk(t.gullet.popToken());t.gullet.consumeSpaces();var o=Poe(t);return Ek(t,i,o,n==="\\\\globallet"),{type:"internal",mode:t.mode}}}),Tt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=Sk(t.gullet.popToken()),o=t.gullet.popToken(),s=t.gullet.popToken();return Ek(t,i,s,n==="\\\\globalfuture"),t.gullet.pushToken(s),t.gullet.pushToken(o),{type:"internal",mode:t.mode}}});var kb=function(t,n,i){var o=qr.math[t]&&qr.math[t].replace,s=qT(o||t,n,i);if(!s)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return s},u8=function(t,n,i,o){var s=i.havingBaseStyle(n),c=lt(o.concat(s.sizingClasses(i)),[t],i),d=s.sizeMultiplier/i.sizeMultiplier;return c.height*=d,c.depth*=d,c.maxFontSize=s.sizeMultiplier,c},wk=function(t,n,i){var o=n.havingBaseStyle(i),s=(1-n.sizeMultiplier/o.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=gt(s),t.height-=s,t.depth+=s},Uoe=function(t,n,i,o,s,c){var d=bo(t,"Main-Regular",s,o),h=u8(d,n,o,c);return wk(h,o,n),h},$oe=function(t,n,i,o){return bo(t,"Size"+n+"-Regular",i,o)},Tk=function(t,n,i,o,s,c){var d=$oe(t,n,s,o),h=u8(lt(["delimsizing","size"+n],[d],o),un.TEXT,o,c);return i&&wk(h,o,un.TEXT),h},c8=function(t,n,i){var o;n==="Size1-Regular"?o="delim-size1":o="delim-size4";var s=lt(["delimsizinginner",o],[lt([],[bo(t,n,i)])]);return{type:"elem",elem:s}},f8=function(t,n,i){var o=lc["Size4-Regular"][t.charCodeAt(0)]?lc["Size4-Regular"][t.charCodeAt(0)][4]:lc["Size1-Regular"][t.charCodeAt(0)][4],s=new jd("inner",noe(t,Math.round(1e3*n))),c=new uf([s],{width:gt(o),height:gt(n),style:"width:"+gt(o),viewBox:"0 0 "+1e3*o+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),d=Ud([],[c],i);return d.height=n,d.style.height=gt(n),d.style.width=gt(o),{type:"elem",elem:d}},d8=.008,p6={type:"kern",size:-1*d8},Hoe=new Set(["|","\\lvert","\\rvert","\\vert"]),qoe=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),Ak=function(t,n,i,o,s,c){var d,h,y,v,S="",T=0;d=y=v=t,h=null;var w="Size1-Regular";t==="\\uparrow"?y=v="⏐":t==="\\Uparrow"?y=v="‖":t==="\\downarrow"?d=y="⏐":t==="\\Downarrow"?d=y="‖":t==="\\updownarrow"?(d="\\uparrow",y="⏐",v="\\downarrow"):t==="\\Updownarrow"?(d="\\Uparrow",y="‖",v="\\Downarrow"):Hoe.has(t)?(y="∣",S="vert",T=333):qoe.has(t)?(y="∥",S="doublevert",T=556):t==="["||t==="\\lbrack"?(d="⎡",y="⎢",v="⎣",w="Size4-Regular",S="lbrack",T=667):t==="]"||t==="\\rbrack"?(d="⎤",y="⎥",v="⎦",w="Size4-Regular",S="rbrack",T=667):t==="\\lfloor"||t==="⌊"?(y=d="⎢",v="⎣",w="Size4-Regular",S="lfloor",T=667):t==="\\lceil"||t==="⌈"?(d="⎡",y=v="⎢",w="Size4-Regular",S="lceil",T=667):t==="\\rfloor"||t==="⌋"?(y=d="⎥",v="⎦",w="Size4-Regular",S="rfloor",T=667):t==="\\rceil"||t==="⌉"?(d="⎤",y=v="⎥",w="Size4-Regular",S="rceil",T=667):t==="("||t==="\\lparen"?(d="⎛",y="⎜",v="⎝",w="Size4-Regular",S="lparen",T=875):t===")"||t==="\\rparen"?(d="⎞",y="⎟",v="⎠",w="Size4-Regular",S="rparen",T=875):t==="\\{"||t==="\\lbrace"?(d="⎧",h="⎨",v="⎩",y="⎪",w="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(d="⎫",h="⎬",v="⎭",y="⎪",w="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(d="⎧",v="⎩",y="⎪",w="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(d="⎫",v="⎭",y="⎪",w="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(d="⎧",v="⎭",y="⎪",w="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(d="⎫",v="⎩",y="⎪",w="Size4-Regular");var C=kb(d,w,s),R=C.height+C.depth,_=kb(y,w,s),N=_.height+_.depth,z=kb(v,w,s),B=z.height+z.depth,V=0,L=1;if(h!==null){var U=kb(h,w,s);V=U.height+U.depth,L=2}var X=R+B+V,se=Math.max(0,Math.ceil((n-X)/(L*N))),ce=X+se*L*N,ie=o.fontMetrics().axisHeight;i&&(ie*=o.sizeMultiplier);var ue=ce/2-ie,$=[];if(S.length>0){var le=ce-R-B,Q=Math.round(ce*1e3),oe=roe(S,Math.round(le*1e3)),Z=new jd(S,oe),ae=(T/1e3).toFixed(3)+"em",de=(Q/1e3).toFixed(3)+"em",we=new uf([Z],{width:ae,height:de,viewBox:"0 0 "+T+" "+Q}),te=Ud([],[we],o);te.height=Q/1e3,te.style.width=ae,te.style.height=de,$.push({type:"elem",elem:te})}else{if($.push(c8(v,w,s)),$.push(p6),h===null){var F=ce-R-B+2*d8;$.push(f8(y,F,o))}else{var ee=(ce-R-B-V)/2+2*d8;$.push(f8(y,ee,o)),$.push(p6),$.push(c8(h,w,s)),$.push(p6),$.push(f8(y,ee,o))}$.push(p6),$.push(c8(d,w,s))}var Y=o.havingBaseStyle(un.TEXT),Me=er({positionType:"bottom",positionData:ue,children:$});return u8(lt(["delimsizing","mult"],[Me],Y),un.TEXT,o,c)},h8=80,p8=.08,m8=function(t,n,i,o,s){var c=toe(t,o,i),d=new jd(t,c),h=new uf([d],{width:"400em",height:gt(n),viewBox:"0 0 400000 "+i,preserveAspectRatio:"xMinYMin slice"});return Ud(["hide-tail"],[h],s)},Goe=function(t,n){var i=n.havingBaseSizing(),o=_k("\\surd",t*i.sizeMultiplier,Rk,i),s=i.sizeMultiplier,c=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),d,h=0,y=0,v=0,S;return o.type==="small"?(v=1e3+1e3*c+h8,t<1?s=1:t<1.4&&(s=.7),h=(1+c+p8)/s,y=(1+c)/s,d=m8("sqrtMain",h,v,c,n),d.style.minWidth="0.853em",S=.833/s):o.type==="large"?(v=(1e3+h8)*zb[o.size],y=(zb[o.size]+c)/s,h=(zb[o.size]+c+p8)/s,d=m8("sqrtSize"+o.size,h,v,c,n),d.style.minWidth="1.02em",S=1/s):(h=t+c+p8,y=t+c,v=Math.floor(1e3*t+c)+h8,d=m8("sqrtTall",h,v,c,n),d.style.minWidth="0.742em",S=1.056),d.height=y,d.style.height=gt(h),{span:d,advanceWidth:S,ruleWidth:(n.fontMetrics().sqrtRuleThickness+c)*s}},Ck=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),Foe=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),Ok=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),zb=[0,1.2,1.8,2.4,3],Mk=function(t,n,i,o,s){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),Ck.has(t)||Ok.has(t))return Tk(t,n,!1,i,o,s);if(Foe.has(t))return Ak(t,zb[n],!1,i,o,s);throw new ft("Illegal delimiter: '"+t+"'")},Yoe=[{type:"small",style:un.SCRIPTSCRIPT},{type:"small",style:un.SCRIPT},{type:"small",style:un.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Xoe=[{type:"small",style:un.SCRIPTSCRIPT},{type:"small",style:un.SCRIPT},{type:"small",style:un.TEXT},{type:"stack"}],Rk=[{type:"small",style:un.SCRIPTSCRIPT},{type:"small",style:un.SCRIPT},{type:"small",style:un.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Woe=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";var n=t.type;throw new Error("Add support for delim type '"+n+"' here.")},_k=function(t,n,i,o){for(var s=Math.min(2,3-o.style.size),c=s;c<i.length;c++){var d=i[c];if(d.type==="stack")break;var h=kb(t,Woe(d),"math"),y=h.height+h.depth;if(d.type==="small"){var v=o.havingBaseStyle(d.style);y*=v.sizeMultiplier}if(y>n)return d}return i[i.length-1]},g8=function(t,n,i,o,s,c){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var d;Ok.has(t)?d=Yoe:Ck.has(t)?d=Rk:d=Xoe;var h=_k(t,n,d,o);return h.type==="small"?Uoe(t,h.style,i,o,s,c):h.type==="large"?Tk(t,h.size,i,o,s,c):Ak(t,n,i,o,s,c)},y8=function(t,n,i,o,s,c){var d=o.fontMetrics().axisHeight*o.sizeMultiplier,h=901,y=5/o.fontMetrics().ptPerEm,v=Math.max(n-d,i+d),S=Math.max(v/500*h,2*v-y);return g8(t,S,!0,o,s,c)},Dk={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Qoe=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function m6(e,t){var n=f6(e);if(n&&Qoe.has(n.text))return n;throw n?new ft("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new ft("Invalid delimiter type '"+e.type+"'",e)}Tt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=m6(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Dk[e.funcName].size,mclass:Dk[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?lt([e.mclass]):Mk(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(rs(e.delim,e.mode));var n=new ht("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var i=gt(zb[e.size]);return n.setAttribute("minsize",i),n.setAttribute("maxsize",i),n}});function Nk(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Tt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new ft("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:m6(t[0],e).text,color:n}}}),Tt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=m6(t[0],e),i=e.parser;++i.leftrightDepth;var o=i.parseExpression(!1);--i.leftrightDepth,i.expect("\\right",!1);var s=Tn(i.parseFunction(),"leftright-right");return{type:"leftright",mode:i.mode,body:o,left:n.text,right:s.delim,rightColor:s.color}},htmlBuilder:(e,t)=>{Nk(e);for(var n=qi(e.body,t,!0,["mopen","mclose"]),i=0,o=0,s=!1,c=0;c<n.length;c++)n[c].isMiddle?s=!0:(i=Math.max(n[c].height,i),o=Math.max(n[c].depth,o));i*=t.sizeMultiplier,o*=t.sizeMultiplier;var d;if(e.left==="."?d=Nb(t,["mopen"]):d=y8(e.left,i,o,t,e.mode,["mopen"]),n.unshift(d),s)for(var h=1;h<n.length;h++){var y=n[h],v=y.isMiddle;v&&(n[h]=y8(v.delim,i,o,v.options,e.mode,[]))}var S;if(e.right===".")S=Nb(t,["mclose"]);else{var T=e.rightColor?t.withColor(e.rightColor):t;S=y8(e.right,i,o,T,e.mode,["mclose"])}return n.push(S),lt(["minner"],n,t)},mathmlBuilder:(e,t)=>{Nk(e);var n=Al(e.body,t);if(e.left!=="."){var i=new ht("mo",[rs(e.left,e.mode)]);i.setAttribute("fence","true"),n.unshift(i)}if(e.right!=="."){var o=new ht("mo",[rs(e.right,e.mode)]);o.setAttribute("fence","true"),e.rightColor&&o.setAttribute("mathcolor",e.rightColor),n.push(o)}return i8(n)}}),Tt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=m6(t[0],e);if(!e.parser.leftrightDepth)throw new ft("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=Nb(t,[]);else{n=Mk(e.delim,1,t,e.mode,[]);var i={delim:e.delim,options:t};n.isMiddle=i}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?rs("|","text"):rs(e.delim,e.mode),i=new ht("mo",[n]);return i.setAttribute("fence","true"),i.setAttribute("lspace","0.05em"),i.setAttribute("rspace","0.05em"),i}});var v8=(e,t)=>{var n=Ig(tr(e.body,t),t),i=e.label.slice(1),o=t.sizeMultiplier,s,c=0,d=lf(e.body);if(i==="sout")s=lt(["stretchy","sout"]),s.height=t.fontMetrics().defaultRuleThickness/o,c=-.5*t.fontMetrics().xHeight;else if(i==="phase"){var h=ii({number:.6,unit:"pt"},t),y=ii({number:.35,unit:"ex"},t),v=t.havingBaseSizing();o=o/v.sizeMultiplier;var S=n.height+n.depth+h+y;n.style.paddingLeft=gt(S/2+h);var T=Math.floor(1e3*S*o),w=Jae(T),C=new uf([new jd("phase",w)],{width:"400em",height:gt(T/1e3),viewBox:"0 0 400000 "+T,preserveAspectRatio:"xMinYMin slice"});s=Ud(["hide-tail"],[C],t),s.style.height=gt(S),c=n.depth+h+y}else{/cancel/.test(i)?d||n.classes.push("cancel-pad"):i==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var R=0,_=0,N=0;/box/.test(i)?(N=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),R=t.fontMetrics().fboxsep+(i==="colorbox"?0:N),_=R):i==="angl"?(N=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),R=4*N,_=Math.max(0,.25-n.depth)):(R=d?.2:0,_=R),s=zoe(n,i,R,_,t),/fbox|boxed|fcolorbox/.test(i)?(s.style.borderStyle="solid",s.style.borderWidth=gt(N)):i==="angl"&&N!==.049&&(s.style.borderTopWidth=gt(N),s.style.borderRightWidth=gt(N)),c=n.depth+_,e.backgroundColor&&(s.style.backgroundColor=e.backgroundColor,e.borderColor&&(s.style.borderColor=e.borderColor))}var z;if(e.backgroundColor)z=er({positionType:"individualShift",children:[{type:"elem",elem:s,shift:c},{type:"elem",elem:n,shift:0}]});else{var B=/cancel|phase/.test(i)?["svg-align"]:[];z=er({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:s,shift:c,wrapperClasses:B}]})}return/cancel/.test(i)&&(z.height=n.height,z.depth=n.depth),/cancel/.test(i)&&!d?lt(["mord","cancel-lap"],[z],t):lt(["mord"],[z],t)},b8=(e,t)=>{var n=0,i=new ht(e.label.includes("colorbox")?"mpadded":"menclose",[Cr(e.body,t)]);switch(e.label){case"\\cancel":i.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":i.setAttribute("notation","downdiagonalstrike");break;case"\\phase":i.setAttribute("notation","phasorangle");break;case"\\sout":i.setAttribute("notation","horizontalstrike");break;case"\\fbox":i.setAttribute("notation","box");break;case"\\angl":i.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,i.setAttribute("width","+"+2*n+"pt"),i.setAttribute("height","+"+2*n+"pt"),i.setAttribute("lspace",n+"pt"),i.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var o=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);i.setAttribute("style","border: "+o+"em solid "+String(e.borderColor))}break;case"\\xcancel":i.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&i.setAttribute("mathbackground",e.backgroundColor),i};Tt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:i,funcName:o}=e,s=Tn(t[0],"color-token").color,c=t[1];return{type:"enclose",mode:i.mode,label:o,backgroundColor:s,body:c}},htmlBuilder:v8,mathmlBuilder:b8}),Tt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:i,funcName:o}=e,s=Tn(t[0],"color-token").color,c=Tn(t[1],"color-token").color,d=t[2];return{type:"enclose",mode:i.mode,label:o,backgroundColor:c,borderColor:s,body:d}},htmlBuilder:v8,mathmlBuilder:b8}),Tt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}}),Tt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:i}=e,o=t[0];return{type:"enclose",mode:n.mode,label:i,body:o}},htmlBuilder:v8,mathmlBuilder:b8}),Tt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var kk={};function sc(e){for(var{type:t,names:n,props:i,handler:o,htmlBuilder:s,mathmlBuilder:c}=e,d={type:t,numArgs:i.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:o},h=0;h<n.length;++h)kk[n[h]]=d;s&&(i6[t]=s),c&&(a6[t]=c)}var zk={};function re(e,t){zk[e]=t}class Go{constructor(t,n,i){this.lexer=t,this.start=n,this.end=i}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new Go(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class Cl{constructor(t,n){this.text=t,this.loc=n}range(t,n){return new Cl(n,Go.range(this,t))}}function Ik(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n==="\\relax"&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n==="\\hline"||n==="\\hdashline";)e.consume(),t.push(n==="\\hdashline"),e.consumeSpaces(),n=e.fetch().text;return t}var g6=e=>{var t=e.parser.settings;if(!t.displayMode)throw new ft("{"+e.envName+"} can be used only in display mode.")},Koe=new Set(["gather","gather*"]);function x8(e){if(!e.includes("ed"))return!e.includes("*")}function Hd(e,t,n){var{hskipBeforeAndAfter:i,addJot:o,cols:s,arraystretch:c,colSeparationType:d,autoTag:h,singleRow:y,emptySingleRow:v,maxNumCols:S,leqno:T}=t;if(e.gullet.beginGroup(),y||e.gullet.macros.set("\\cr","\\\\\\relax"),!c){var w=e.gullet.expandMacroAsText("\\arraystretch");if(w==null)c=1;else if(c=parseFloat(w),!c||c<0)throw new ft("Invalid \\arraystretch: "+w)}e.gullet.beginGroup();var C=[],R=[C],_=[],N=[],z=h!=null?[]:void 0;function B(){h&&e.gullet.macros.set("\\@eqnsw","1",!0)}function V(){z&&(e.gullet.macros.get("\\df@tag")?(z.push(e.subparse([new Cl("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):z.push(!!h&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(B(),N.push(Ik(e));;){var L=e.parseExpression(!1,y?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var U={type:"ordgroup",mode:e.mode,body:L};n&&(U={type:"styling",mode:e.mode,style:n,body:[U]}),C.push(U);var X=e.fetch().text;if(X==="&"){if(S&&C.length===S){if(y||d)throw new ft("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(X==="\\end"){V(),C.length===1&&U.type==="styling"&&U.body.length===1&&U.body[0].type==="ordgroup"&&U.body[0].body.length===0&&(R.length>1||!v)&&R.pop(),N.length<R.length+1&&N.push([]);break}else if(X==="\\\\"){e.consume();var se=void 0;e.gullet.future().text!==" "&&(se=e.parseSizeGroup(!0)),_.push(se?se.value:null),V(),N.push(Ik(e)),C=[],R.push(C),B()}else throw new ft("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:o,arraystretch:c,body:R,cols:s,rowGaps:_,hskipBeforeAndAfter:i,hLinesBeforeRow:N,colSeparationType:d,tags:z,leqno:T}}function S8(e){return e.slice(0,1)==="d"?"display":"text"}var uc=function(t,n){var i,o,s=t.body.length,c=t.hLinesBeforeRow,d=0,h=new Array(s),y=[],v=Math.max(n.fontMetrics().arrayRuleWidth,n.minRuleThickness),S=1/n.fontMetrics().ptPerEm,T=5*S;if(t.colSeparationType&&t.colSeparationType==="small"){var w=n.havingStyle(un.SCRIPT).sizeMultiplier;T=.2778*(w/n.sizeMultiplier)}var C=t.colSeparationType==="CD"?ii({number:3,unit:"ex"},n):12*S,R=3*S,_=t.arraystretch*C,N=.7*_,z=.3*_,B=0;function V(nt){for(var pt=0;pt<nt.length;++pt)pt>0&&(B+=.25),y.push({pos:B,isDashed:nt[pt]})}for(V(c[0]),i=0;i<t.body.length;++i){var L=t.body[i],U=N,X=z;d<L.length&&(d=L.length);var se=new Array(L.length);for(o=0;o<L.length;++o){var ce=tr(L[o],n);X<ce.depth&&(X=ce.depth),U<ce.height&&(U=ce.height),se[o]=ce}var ie=t.rowGaps[i],ue=0;ie&&(ue=ii(ie,n),ue>0&&(ue+=z,X<ue&&(X=ue),ue=0)),t.addJot&&(X+=R),se.height=U,se.depth=X,B+=U,se.pos=B,B+=X+ue,h[i]=se,V(c[i+1])}var $=B/2+n.fontMetrics().axisHeight,le=t.cols||[],Q=[],oe,Z,ae=[];if(t.tags&&t.tags.some(nt=>nt))for(i=0;i<s;++i){var de=h[i],we=de.pos-$,te=t.tags[i],F=void 0;te===!0?F=lt(["eqn-num"],[],n):te===!1?F=lt([],[],n):F=lt([],qi(te,n,!0),n),F.depth=de.depth,F.height=de.height,ae.push({type:"elem",elem:F,shift:we})}for(o=0,Z=0;o<d||Z<le.length;++o,++Z){for(var ee,Y=le[Z],Me=!0;((Se=Y)==null?void 0:Se.type)==="separator";){var Se;if(Me||(oe=lt(["arraycolsep"],[]),oe.style.width=gt(n.fontMetrics().doubleRuleSep),Q.push(oe)),Y.separator==="|"||Y.separator===":"){var _e=Y.separator==="|"?"solid":"dashed",je=lt(["vertical-separator"],[],n);je.style.height=gt(B),je.style.borderRightWidth=gt(v),je.style.borderRightStyle=_e,je.style.margin="0 "+gt(-v/2);var He=B-$;He&&(je.style.verticalAlign=gt(-He)),Q.push(je)}else throw new ft("Invalid separator type: "+Y.separator);Z++,Y=le[Z],Me=!1}if(!(o>=d)){var Xe=void 0;if(o>0||t.hskipBeforeAndAfter){var Qe,et;Xe=(Qe=(et=Y)==null?void 0:et.pregap)!=null?Qe:T,Xe!==0&&(oe=lt(["arraycolsep"],[]),oe.style.width=gt(Xe),Q.push(oe))}var Be=[];for(i=0;i<s;++i){var Re=h[i],st=Re[o];if(st){var Mt=Re.pos-$;st.depth=Re.depth,st.height=Re.height,Be.push({type:"elem",elem:st,shift:Mt})}}var Kt=er({positionType:"individualShift",children:Be}),xt=lt(["col-align-"+(((ee=Y)==null?void 0:ee.align)||"c")],[Kt]);if(Q.push(xt),o<d-1||t.hskipBeforeAndAfter){var Ut,hn;Xe=(Ut=(hn=Y)==null?void 0:hn.postgap)!=null?Ut:T,Xe!==0&&(oe=lt(["arraycolsep"],[]),oe.style.width=gt(Xe),Q.push(oe))}}}var mn=lt(["mtable"],Q);if(y.length>0){for(var at=zg("hline",n,v),At=zg("hdashline",n,v),Rn=[{type:"elem",elem:mn,shift:0}];y.length>0;){var Bt=y.pop(),Ze=Bt.pos-$;Bt.isDashed?Rn.push({type:"elem",elem:At,shift:Ze}):Rn.push({type:"elem",elem:at,shift:Ze})}mn=er({positionType:"individualShift",children:Rn})}if(ae.length===0)return lt(["mord"],[mn],n);var be=er({positionType:"individualShift",children:ae}),Ve=lt(["tag"],[be],n);return ff([mn,Ve])},Zoe={c:"center ",l:"left ",r:"right "},cc=function(t,n){for(var i=[],o=new ht("mtd",[],["mtr-glue"]),s=new ht("mtd",[],["mml-eqn-num"]),c=0;c<t.body.length;c++){for(var d=t.body[c],h=[],y=0;y<d.length;y++)h.push(new ht("mtd",[Cr(d[y],n)]));t.tags&&t.tags[c]&&(h.unshift(o),h.push(o),t.leqno?h.unshift(s):h.push(s)),i.push(new ht("mtr",h))}var v=new ht("mtable",i),S=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);v.setAttribute("rowspacing",gt(S));var T="",w="";if(t.cols&&t.cols.length>0){var C=t.cols,R="",_=!1,N=0,z=C.length;C[0].type==="separator"&&(T+="top ",N=1),C[C.length-1].type==="separator"&&(T+="bottom ",z-=1);for(var B=N;B<z;B++){var V=C[B];V.type==="align"?(w+=Zoe[V.align],_&&(R+="none "),_=!0):V.type==="separator"&&_&&(R+=V.separator==="|"?"solid ":"dashed ",_=!1)}v.setAttribute("columnalign",w.trim()),/[sd]/.test(R)&&v.setAttribute("columnlines",R.trim())}if(t.colSeparationType==="align"){for(var L=t.cols||[],U="",X=1;X<L.length;X++)U+=X%2?"0em ":"1em ";v.setAttribute("columnspacing",U.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?v.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?v.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?v.setAttribute("columnspacing","0.5em"):v.setAttribute("columnspacing","1em");var se="",ce=t.hLinesBeforeRow;T+=ce[0].length>0?"left ":"",T+=ce[ce.length-1].length>0?"right ":"";for(var ie=1;ie<ce.length-1;ie++)se+=ce[ie].length===0?"none ":ce[ie][0]?"dashed ":"solid ";return/[sd]/.test(se)&&v.setAttribute("rowlines",se.trim()),T!==""&&(v=new ht("menclose",[v]),v.setAttribute("notation",T.trim())),t.arraystretch&&t.arraystretch<1&&(v=new ht("mstyle",[v]),v.setAttribute("scriptlevel","1")),v},Lk=function(t,n){t.envName.includes("ed")||g6(t);var i=[],o=t.envName.includes("at")?"alignat":"align",s=t.envName==="split",c=Hd(t.parser,{cols:i,addJot:!0,autoTag:s?void 0:x8(t.envName),emptySingleRow:!0,colSeparationType:o,maxNumCols:s?2:void 0,leqno:t.parser.settings.leqno},"display"),d=0,h=0,y={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var v="",S=0;S<n[0].body.length;S++){var T=Tn(n[0].body[S],"textord");v+=T.text}d=Number(v),h=d*2}var w=!h;c.body.forEach(function(N){for(var z=1;z<N.length;z+=2){var B=Tn(N[z],"styling"),V=Tn(B.body[0],"ordgroup");V.body.unshift(y)}if(w)h<N.length&&(h=N.length);else{var L=N.length/2;if(d<L)throw new ft("Too many math in a row: "+("expected "+d+", but got "+L),N[0])}});for(var C=0;C<h;++C){var R="r",_=0;C%2===1?R="l":C>0&&w&&(_=1),i[C]={type:"align",align:R,pregap:_,postgap:0}}return c.colSeparationType=w?"align":"alignat",c};sc({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=f6(t[0]),i=n?[t[0]]:Tn(t[0],"ordgroup").body,o=i.map(function(c){var d=c6(c),h=d.text;if("lcr".includes(h))return{type:"align",align:h};if(h==="|")return{type:"separator",separator:"|"};if(h===":")return{type:"separator",separator:":"};throw new ft("Unknown column alignment: "+h,c)}),s={cols:o,hskipBeforeAndAfter:!0,maxNumCols:o.length};return Hd(e.parser,s,S8(e.envName))},htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",i={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var o=e.parser;if(o.consumeSpaces(),o.fetch().text==="["){if(o.consume(),o.consumeSpaces(),n=o.fetch().text,!"lcr".includes(n))throw new ft("Expected l or c or r",o.nextToken);o.consume(),o.consumeSpaces(),o.expect("]"),o.consume(),i.cols=[{type:"align",align:n}]}}var s=Hd(e.parser,i,S8(e.envName)),c=Math.max(0,...s.body.map(d=>d.length));return s.cols=new Array(c).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[s],left:t[0],right:t[1],rightColor:void 0}:s},htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=Hd(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=f6(t[0]),i=n?[t[0]]:Tn(t[0],"ordgroup").body,o=i.map(function(d){var h=c6(d),y=h.text;if("lc".includes(y))return{type:"align",align:y};throw new ft("Unknown column alignment: "+y,d)});if(o.length>1)throw new ft("{subarray} can contain only one column");var s={cols:o,hskipBeforeAndAfter:!1,arraystretch:.5},c=Hd(e.parser,s,"script");if(c.body.length>0&&c.body[0].length>1)throw new ft("{subarray} can contain only one column");return c},htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=Hd(e.parser,t,S8(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Lk,htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){Koe.has(e.envName)&&g6(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:x8(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Hd(e.parser,t,"display")},htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Lk,htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){g6(e);var t={autoTag:x8(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Hd(e.parser,t,"display")},htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["CD"],props:{numArgs:0},handler(e){return g6(e),joe(e.parser)},htmlBuilder:uc,mathmlBuilder:cc}),re("\\nonumber","\\gdef\\@eqnsw{0}"),re("\\notag","\\nonumber"),Tt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new ft(e.funcName+" valid only within array environment")}});var Vk=kk;Tt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:i}=e,o=t[0];if(o.type!=="ordgroup")throw new ft("Invalid environment name",o);for(var s="",c=0;c<o.body.length;++c)s+=Tn(o.body[c],"textord").text;if(i==="\\begin"){if(!Vk.hasOwnProperty(s))throw new ft("No such environment: "+s,o);var d=Vk[s],{args:h,optArgs:y}=n.parseArguments("\\begin{"+s+"}",d),v={mode:n.mode,envName:s,parser:n},S=d.handler(v,h,y);n.expect("\\end",!1);var T=n.nextToken,w=Tn(n.parseFunction(),"environment");if(w.name!==s)throw new ft("Mismatch: \\begin{"+s+"} matched by \\end{"+w.name+"}",T);return S}return{type:"environment",mode:n.mode,name:s,nameGroup:o}}});var Bk=(e,t)=>{var n=e.font,i=t.withFont(n);return tr(e.body,i)},jk=(e,t)=>{var n=e.font,i=t.withFont(n);return Cr(e.body,i)},Pk={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Tt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:i}=e,o=o6(t[0]),s=i;return s in Pk&&(s=Pk[s]),{type:"font",mode:n.mode,font:s.slice(1),body:o}},htmlBuilder:Bk,mathmlBuilder:jk}),Tt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:h6(i),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:i}],isCharacterBox:lf(i)}}}),Tt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:i,breakOnTokenText:o}=e,{mode:s}=n,c=n.parseExpression(!0,o),d="math"+i.slice(1);return{type:"font",mode:s,font:d,body:{type:"ordgroup",mode:n.mode,body:c}}},htmlBuilder:Bk,mathmlBuilder:jk});var Joe=(e,t)=>{var n=t.style,i=n.fracNum(),o=n.fracDen(),s;s=t.havingStyle(i);var c=tr(e.numer,s,t);if(e.continued){var d=8.5/t.fontMetrics().ptPerEm,h=3.5/t.fontMetrics().ptPerEm;c.height=c.height<d?d:c.height,c.depth=c.depth<h?h:c.depth}s=t.havingStyle(o);var y=tr(e.denom,s,t),v,S,T;e.hasBarLine?(e.barSize?(S=ii(e.barSize,t),v=zg("frac-line",t,S)):v=zg("frac-line",t),S=v.height,T=v.height):(v=null,S=0,T=t.fontMetrics().defaultRuleThickness);var w,C,R;n.size===un.DISPLAY.size?(w=t.fontMetrics().num1,S>0?C=3*T:C=7*T,R=t.fontMetrics().denom1):(S>0?(w=t.fontMetrics().num2,C=T):(w=t.fontMetrics().num3,C=3*T),R=t.fontMetrics().denom2);var _;if(v){var z=t.fontMetrics().axisHeight;w-c.depth-(z+.5*S)<C&&(w+=C-(w-c.depth-(z+.5*S))),z-.5*S-(y.height-R)<C&&(R+=C-(z-.5*S-(y.height-R)));var B=-(z-.5*S);_=er({positionType:"individualShift",children:[{type:"elem",elem:y,shift:R},{type:"elem",elem:v,shift:B},{type:"elem",elem:c,shift:-w}]})}else{var N=w-c.depth-(y.height-R);N<C&&(w+=.5*(C-N),R+=.5*(C-N)),_=er({positionType:"individualShift",children:[{type:"elem",elem:y,shift:R},{type:"elem",elem:c,shift:-w}]})}s=t.havingStyle(n),_.height*=s.sizeMultiplier/t.sizeMultiplier,_.depth*=s.sizeMultiplier/t.sizeMultiplier;var V;n.size===un.DISPLAY.size?V=t.fontMetrics().delim1:n.size===un.SCRIPTSCRIPT.size?V=t.havingStyle(un.SCRIPT).fontMetrics().delim2:V=t.fontMetrics().delim2;var L,U;return e.leftDelim==null?L=Nb(t,["mopen"]):L=g8(e.leftDelim,V,!0,t.havingStyle(n),e.mode,["mopen"]),e.continued?U=lt([]):e.rightDelim==null?U=Nb(t,["mclose"]):U=g8(e.rightDelim,V,!0,t.havingStyle(n),e.mode,["mclose"]),lt(["mord"].concat(s.sizingClasses(t)),[L,lt(["mfrac"],[_]),U],t)},ele=(e,t)=>{var n=new ht("mfrac",[Cr(e.numer,t),Cr(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var i=ii(e.barSize,t);n.setAttribute("linethickness",gt(i))}if(e.leftDelim!=null||e.rightDelim!=null){var o=[];if(e.leftDelim!=null){var s=new ht("mo",[new ki(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),o.push(s)}if(o.push(n),e.rightDelim!=null){var c=new ht("mo",[new ki(e.rightDelim.replace("\\",""))]);c.setAttribute("fence","true"),o.push(c)}return i8(o)}return n},Uk=(e,t)=>{if(!t)return e;var n={type:"styling",mode:e.mode,style:t,body:[e]};return n};Tt({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:i}=e,o=t[0],s=t[1],c,d=null,h=null;switch(i){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":c=!0;break;case"\\\\atopfrac":c=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":c=!1,d="(",h=")";break;case"\\\\bracefrac":c=!1,d="\\{",h="\\}";break;case"\\\\brackfrac":c=!1,d="[",h="]";break;default:throw new Error("Unrecognized genfrac command")}var y=i==="\\cfrac",v=null;return y||i.startsWith("\\d")?v="display":i.startsWith("\\t")&&(v="text"),Uk({type:"genfrac",mode:n.mode,numer:o,denom:s,continued:y,hasBarLine:c,leftDelim:d,rightDelim:h,barSize:null},v)},htmlBuilder:Joe,mathmlBuilder:ele}),Tt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:i}=e,o;switch(n){case"\\over":o="\\frac";break;case"\\choose":o="\\binom";break;case"\\atop":o="\\\\atopfrac";break;case"\\brace":o="\\\\bracefrac";break;case"\\brack":o="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:o,token:i}}});var $k=["display","text","script","scriptscript"],Hk=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};Tt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,i=t[4],o=t[5],s=o6(t[0]),c=s.type==="atom"&&s.family==="open"?Hk(s.text):null,d=o6(t[1]),h=d.type==="atom"&&d.family==="close"?Hk(d.text):null,y=Tn(t[2],"size"),v,S=null;y.isBlank?v=!0:(S=y.value,v=S.number>0);var T=null,w=t[3];if(w.type==="ordgroup"){if(w.body.length>0){var C=Tn(w.body[0],"textord");T=$k[Number(C.text)]}}else w=Tn(w,"textord"),T=$k[Number(w.text)];return Uk({type:"genfrac",mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:v,barSize:S,leftDelim:c,rightDelim:h},T)}}),Tt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:i,token:o}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:Tn(t[0],"size").value,token:o}}}),Tt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:i}=e,o=t[0],s=Tn(t[1],"infix").size;if(!s)throw new Error("\\\\abovefrac expected size, but got "+String(s));var c=t[2],d=s.number>0;return{type:"genfrac",mode:n.mode,numer:o,denom:c,continued:!1,hasBarLine:d,barSize:s,leftDelim:null,rightDelim:null}}});var qk=(e,t)=>{var n=t.style,i,o;e.type==="supsub"?(i=e.sup?tr(e.sup,t.havingStyle(n.sup()),t):tr(e.sub,t.havingStyle(n.sub()),t),o=Tn(e.base,"horizBrace")):o=Tn(e,"horizBrace");var s=tr(o.base,t.havingBaseStyle(un.DISPLAY)),c=u6(o,t),d;if(o.isOver?(d=er({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:c}]}),d.children[0].children[0].children[1].classes.push("svg-align")):(d=er({positionType:"bottom",positionData:s.depth+.1+c.height,children:[{type:"elem",elem:c},{type:"kern",size:.1},{type:"elem",elem:s}]}),d.children[0].children[0].children[0].classes.push("svg-align")),i){var h=lt(["mord",o.isOver?"mover":"munder"],[d],t);o.isOver?d=er({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:.2},{type:"elem",elem:i}]}):d=er({positionType:"bottom",positionData:h.depth+.2+i.height+i.depth,children:[{type:"elem",elem:i},{type:"kern",size:.2},{type:"elem",elem:h}]})}return lt(["mord",o.isOver?"mover":"munder"],[d],t)},tle=(e,t)=>{var n=s6(e.label);return new ht(e.isOver?"mover":"munder",[Cr(e.base,t),n])};Tt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:i}=e;return{type:"horizBrace",mode:n.mode,label:i,isOver:/^\\over/.test(i),base:t[0]}},htmlBuilder:qk,mathmlBuilder:tle}),Tt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[1],o=Tn(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:n.mode,href:o,body:Ni(i)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=qi(e.body,t,!1);return voe(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=$d(e.body,t);return n instanceof ht||(n=new ht("mrow",[n])),n.setAttribute("href",e.href),n}}),Tt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=Tn(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:i}))return n.formatUnsupportedCmd("\\url");for(var o=[],s=0;s<i.length;s++){var c=i[s];c==="~"&&(c="\\textasciitilde"),o.push({type:"textord",mode:"text",text:c})}var d={type:"text",mode:n.mode,font:"\\texttt",body:o};return{type:"href",mode:n.mode,href:i,body:Ni(d)}}}),Tt({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:"hbox",mode:n.mode,body:Ni(t[0])}},htmlBuilder(e,t){var n=qi(e.body,t,!1);return ff(n)},mathmlBuilder(e,t){return new ht("mrow",Al(e.body,t))}}),Tt({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:i,token:o}=e,s=Tn(t[0],"raw").string,c=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var d,h={};switch(i){case"\\htmlClass":h.class=s,d={command:"\\htmlClass",class:s};break;case"\\htmlId":h.id=s,d={command:"\\htmlId",id:s};break;case"\\htmlStyle":h.style=s,d={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var y=s.split(","),v=0;v<y.length;v++){var S=y[v],T=S.indexOf("=");if(T<0)throw new ft("\\htmlData key/value '"+S+"' missing equals sign");var w=S.slice(0,T),C=S.slice(T+1);h["data-"+w.trim()]=C}d={command:"\\htmlData",attributes:h};break}default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(d)?{type:"html",mode:n.mode,attributes:h,body:Ni(c)}:n.formatUnsupportedCmd(i)},htmlBuilder:(e,t)=>{var n=qi(e.body,t,!1),i=["enclosing"];e.attributes.class&&i.push(...e.attributes.class.trim().split(/\s+/));var o=lt(i,n,t);for(var s in e.attributes)s!=="class"&&e.attributes.hasOwnProperty(s)&&o.setAttribute(s,e.attributes[s]);return o},mathmlBuilder:(e,t)=>$d(e.body,t)}),Tt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:Ni(t[0]),mathml:Ni(t[1])}},htmlBuilder:(e,t)=>{var n=qi(e.html,t,!1);return ff(n)},mathmlBuilder:(e,t)=>$d(e.mathml,t)});var E8=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new ft("Invalid size: '"+t+"' in \\includegraphics");var i={number:+(n[1]+n[2]),unit:n[3]};if(!HN(i))throw new ft("Invalid unit: '"+i.unit+"' in \\includegraphics.");return i};Tt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:i}=e,o={number:0,unit:"em"},s={number:.9,unit:"em"},c={number:0,unit:"em"},d="";if(n[0])for(var h=Tn(n[0],"raw").string,y=h.split(","),v=0;v<y.length;v++){var S=y[v].split("=");if(S.length===2){var T=S[1].trim();switch(S[0].trim()){case"alt":d=T;break;case"width":o=E8(T);break;case"height":s=E8(T);break;case"totalheight":c=E8(T);break;default:throw new ft("Invalid key: '"+S[0]+"' in \\includegraphics.")}}}var w=Tn(t[0],"url").url;return d===""&&(d=w,d=d.replace(/^.*[\\/]/,""),d=d.substring(0,d.lastIndexOf("."))),i.settings.isTrusted({command:"\\includegraphics",url:w})?{type:"includegraphics",mode:i.mode,alt:d,width:o,height:s,totalheight:c,src:w}:i.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=ii(e.height,t),i=0;e.totalheight.number>0&&(i=ii(e.totalheight,t)-n);var o=0;e.width.number>0&&(o=ii(e.width,t));var s={height:gt(n+i)};o>0&&(s.width=gt(o)),i>0&&(s.verticalAlign=gt(-i));var c=new ooe(e.src,e.alt,s);return c.height=n,c.depth=i,c},mathmlBuilder:(e,t)=>{var n=new ht("mglyph",[]);n.setAttribute("alt",e.alt);var i=ii(e.height,t),o=0;if(e.totalheight.number>0&&(o=ii(e.totalheight,t)-i,n.setAttribute("valign",gt(-o))),n.setAttribute("height",gt(i+o)),e.width.number>0){var s=ii(e.width,t);n.setAttribute("width",gt(s))}return n.setAttribute("src",e.src),n}}),Tt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:i}=e,o=Tn(t[0],"size");if(n.settings.strict){var s=i[1]==="m",c=o.value.unit==="mu";s?(c||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" supports only mu units, "+("not "+o.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" works only in math mode")):c&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:o.value}},htmlBuilder(e,t){return tk(e.dimension,t)},mathmlBuilder(e,t){var n=ii(e.dimension,t);return new lk(n)}}),Tt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:i}=e,o=t[0];return{type:"lap",mode:n.mode,alignment:i.slice(5),body:o}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=lt([],[tr(e.body,t)]),n=lt(["inner"],[n],t)):n=lt(["inner"],[tr(e.body,t)]);var i=lt(["fix"],[]),o=lt([e.alignment],[n,i],t),s=lt(["strut"]);return s.style.height=gt(o.height+o.depth),o.depth&&(s.style.verticalAlign=gt(-o.depth)),o.children.unshift(s),o=lt(["thinbox"],[o],t),lt(["mord","vbox"],[o],t)},mathmlBuilder:(e,t)=>{var n=new ht("mpadded",[Cr(e.body,t)]);if(e.alignment!=="rlap"){var i=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",i+"width")}return n.setAttribute("width","0px"),n}}),Tt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:i}=e,o=i.mode;i.switchMode("math");var s=n==="\\("?"\\)":"$",c=i.parseExpression(!1,s);return i.expect(s),i.switchMode(o),{type:"styling",mode:i.mode,style:"text",body:c}}}),Tt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new ft("Mismatched "+e.funcName)}});var Gk=(e,t)=>{switch(t.style.size){case un.DISPLAY.size:return e.display;case un.TEXT.size:return e.text;case un.SCRIPT.size:return e.script;case un.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Tt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:Ni(t[0]),text:Ni(t[1]),script:Ni(t[2]),scriptscript:Ni(t[3])}},htmlBuilder:(e,t)=>{var n=Gk(e,t),i=qi(n,t,!1);return ff(i)},mathmlBuilder:(e,t)=>{var n=Gk(e,t);return $d(n,t)}});var Fk=(e,t,n,i,o,s,c)=>{e=lt([],[e]);var d=n&&lf(n),h,y;if(t){var v=tr(t,i.havingStyle(o.sup()),i);y={elem:v,kern:Math.max(i.fontMetrics().bigOpSpacing1,i.fontMetrics().bigOpSpacing3-v.depth)}}if(n){var S=tr(n,i.havingStyle(o.sub()),i);h={elem:S,kern:Math.max(i.fontMetrics().bigOpSpacing2,i.fontMetrics().bigOpSpacing4-S.height)}}var T;if(y&&h){var w=i.fontMetrics().bigOpSpacing5+h.elem.height+h.elem.depth+h.kern+e.depth+c;T=er({positionType:"bottom",positionData:w,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:gt(-s)},{type:"kern",size:h.kern},{type:"elem",elem:e},{type:"kern",size:y.kern},{type:"elem",elem:y.elem,marginLeft:gt(s)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]})}else if(h){var C=e.height-c;T=er({positionType:"top",positionData:C,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:gt(-s)},{type:"kern",size:h.kern},{type:"elem",elem:e}]})}else if(y){var R=e.depth+c;T=er({positionType:"bottom",positionData:R,children:[{type:"elem",elem:e},{type:"kern",size:y.kern},{type:"elem",elem:y.elem,marginLeft:gt(s)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]})}else return e;var _=[T];if(h&&s!==0&&!d){var N=lt(["mspace"],[],i);N.style.marginRight=gt(s),_.unshift(N)}return lt(["mop","op-limits"],_,i)},Yk=new Set(["\\smallint"]),Lg=(e,t)=>{var n,i,o=!1,s;e.type==="supsub"?(n=e.sup,i=e.sub,s=Tn(e.base,"op"),o=!0):s=Tn(e,"op");var c=t.style,d=!1;c.size===un.DISPLAY.size&&s.symbol&&!Yk.has(s.name)&&(d=!0);var h;if(s.symbol){var y=d?"Size2-Regular":"Size1-Regular",v="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(v=s.name.slice(1),s.name=v==="oiint"?"\\iint":"\\iiint"),h=bo(s.name,y,"math",t,["mop","op-symbol",d?"large-op":"small-op"]),v.length>0){var S=h.italic,T=rk(v+"Size"+(d?"2":"1"),t);h=er({positionType:"individualShift",children:[{type:"elem",elem:h,shift:0},{type:"elem",elem:T,shift:d?.08:0}]}),s.name="\\"+v,h.classes.unshift("mop"),h.italic=S}}else if(s.body){var w=qi(s.body,t,!0);w.length===1&&w[0]instanceof wl?(h=w[0],h.classes[0]="mop"):h=lt(["mop"],w,t)}else{for(var C=[],R=1;R<s.name.length;R++)C.push(KT(s.name[R],s.mode,t));h=lt(["mop"],C,t)}var _=0,N=0;return(h instanceof wl||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift&&(_=(h.height-h.depth)/2-t.fontMetrics().axisHeight,N=h.italic||0),o?Fk(h,n,i,t,c,N,_):(_&&(h.style.position="relative",h.style.top=gt(_)),h)},Ib=(e,t)=>{var n;if(e.symbol)n=new ht("mo",[rs(e.name,e.mode)]),Yk.has(e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new ht("mo",Al(e.body,t));else{n=new ht("mi",[new ki(e.name.slice(1))]);var i=new ht("mo",[rs("","text")]);e.parentIsSupSub?n=new ht("mrow",[n,i]):n=ok([n,i])}return n},nle={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Tt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:i}=e,o=i;return o.length===1&&(o=nle[o]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:Lg,mathmlBuilder:Ib}),Tt({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Ni(i)}},htmlBuilder:Lg,mathmlBuilder:Ib});var rle={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Tt({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Lg,mathmlBuilder:Ib}),Tt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Lg,mathmlBuilder:Ib}),Tt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,i=n;return i.length===1&&(i=rle[i]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Lg,mathmlBuilder:Ib});var Xk=(e,t)=>{var n,i,o=!1,s;e.type==="supsub"?(n=e.sup,i=e.sub,s=Tn(e.base,"operatorname"),o=!0):s=Tn(e,"operatorname");var c;if(s.body.length>0){for(var d=s.body.map(S=>{var T="text"in S?S.text:void 0;return typeof T=="string"?{type:"textord",mode:S.mode,text:T}:S}),h=qi(d,t.withFont("mathrm"),!0),y=0;y<h.length;y++){var v=h[y];v instanceof wl&&(v.text=v.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}c=lt(["mop"],h,t)}else c=lt(["mop"],[],t);return o?Fk(c,n,i,t,t.style,0,0):c},ile=(e,t)=>{for(var n=Al(e.body,t.withFont("mathrm")),i=!0,o=0;o<n.length;o++){var s=n[o];if(!(s instanceof lk))if(s instanceof ht)switch(s.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var c=s.children[0];s.children.length===1&&c instanceof ki?c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):i=!1;break}default:i=!1}else i=!1}if(i){var d=n.map(v=>v.toText()).join("");n=[new ki(d)]}var h=new ht("mi",n);h.setAttribute("mathvariant","normal");var y=new ht("mo",[rs("","text")]);return e.parentIsSupSub?new ht("mrow",[h,y]):ok([h,y])};Tt({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:i}=e,o=t[0];return{type:"operatorname",mode:n.mode,body:Ni(o),alwaysHandleSupSub:i==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Xk,mathmlBuilder:ile}),re("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),Dh({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?ff(qi(e.body,t,!1)):lt(["mord"],qi(e.body,t,!0),t)},mathmlBuilder(e,t){return $d(e.body,t,!0)}}),Tt({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,i=t[0];return{type:"overline",mode:n.mode,body:i}},htmlBuilder(e,t){var n=tr(e.body,t.havingCrampedStyle()),i=zg("overline-line",t),o=t.fontMetrics().defaultRuleThickness,s=er({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*o},{type:"elem",elem:i},{type:"kern",size:o}]});return lt(["mord","overline"],[s],t)},mathmlBuilder(e,t){var n=new ht("mo",[new ki("‾")]);n.setAttribute("stretchy","true");var i=new ht("mover",[Cr(e.body,t),n]);return i.setAttribute("accent","true"),i}}),Tt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"phantom",mode:n.mode,body:Ni(i)}},htmlBuilder:(e,t)=>{var n=qi(e.body,t.withPhantom(),!1);return ff(n)},mathmlBuilder:(e,t)=>{var n=Al(e.body,t);return new ht("mphantom",n)}}),re("\\hphantom","\\smash{\\phantom{#1}}"),Tt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"vphantom",mode:n.mode,body:i}},htmlBuilder:(e,t)=>{var n=lt(["inner"],[tr(e.body,t.withPhantom())]),i=lt(["fix"],[]);return lt(["mord","rlap"],[n,i],t)},mathmlBuilder:(e,t)=>{var n=Al(Ni(e.body),t),i=new ht("mphantom",n),o=new ht("mpadded",[i]);return o.setAttribute("width","0px"),o}}),Tt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,i=Tn(t[0],"size").value,o=t[1];return{type:"raisebox",mode:n.mode,dy:i,body:o}},htmlBuilder(e,t){var n=tr(e.body,t),i=ii(e.dy,t);return er({positionType:"shift",positionData:-i,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new ht("mpadded",[Cr(e.body,t)]),i=e.dy.number+e.dy.unit;return n.setAttribute("voffset",i),n}}),Tt({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),Tt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:i}=e,o=n[0],s=Tn(t[0],"size"),c=Tn(t[1],"size");return{type:"rule",mode:i.mode,shift:o&&Tn(o,"size").value,width:s.value,height:c.value}},htmlBuilder(e,t){var n=lt(["mord","rule"],[],t),i=ii(e.width,t),o=ii(e.height,t),s=e.shift?ii(e.shift,t):0;return n.style.borderRightWidth=gt(i),n.style.borderTopWidth=gt(o),n.style.bottom=gt(s),n.width=i,n.height=o+s,n.depth=-s,n.maxFontSize=o*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=ii(e.width,t),i=ii(e.height,t),o=e.shift?ii(e.shift,t):0,s=t.color&&t.getColor()||"black",c=new ht("mspace");c.setAttribute("mathbackground",s),c.setAttribute("width",gt(n)),c.setAttribute("height",gt(i));var d=new ht("mpadded",[c]);return o>=0?d.setAttribute("height",gt(o)):(d.setAttribute("height",gt(o)),d.setAttribute("depth",gt(-o))),d.setAttribute("voffset",gt(o)),d}});function Wk(e,t,n){for(var i=qi(e,t,!1),o=t.sizeMultiplier/n.sizeMultiplier,s=0;s<i.length;s++){var c=i[s].classes.indexOf("sizing");c<0?Array.prototype.push.apply(i[s].classes,t.sizingClasses(n)):i[s].classes[c+1]==="reset-size"+t.size&&(i[s].classes[c+1]="reset-size"+n.size),i[s].height*=o,i[s].depth*=o}return ff(i)}var Qk=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],ale=(e,t)=>{var n=t.havingSize(e.size);return Wk(e.body,n,t)};Tt({type:"sizing",names:Qk,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:i,parser:o}=e,s=o.parseExpression(!1,n);return{type:"sizing",mode:o.mode,size:Qk.indexOf(i)+1,body:s}},htmlBuilder:ale,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),i=Al(e.body,n),o=new ht("mstyle",i);return o.setAttribute("mathsize",gt(n.sizeMultiplier)),o}}),Tt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:i}=e,o=!1,s=!1,c=n[0]&&Tn(n[0],"ordgroup");if(c)for(var d="",h=0;h<c.body.length;++h){var y=c.body[h];if(d=c6(y).text,d==="t")o=!0;else if(d==="b")s=!0;else{o=!1,s=!1;break}}else o=!0,s=!0;var v=t[0];return{type:"smash",mode:i.mode,body:v,smashHeight:o,smashDepth:s}},htmlBuilder:(e,t)=>{var n=lt([],[tr(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return lt(["mord","smash"],[n],t);if(n.children)for(var i=0;i<n.children.length;i++)e.smashHeight&&(n.children[i].height=0),e.smashDepth&&(n.children[i].depth=0);var o=er({positionType:"firstBaseline",children:[{type:"elem",elem:n}]});return lt(["mord"],[o],t)},mathmlBuilder:(e,t)=>{var n=new ht("mpadded",[Cr(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}}),Tt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:i}=e,o=n[0],s=t[0];return{type:"sqrt",mode:i.mode,body:s,index:o}},htmlBuilder(e,t){var n=tr(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=Ig(n,t);var i=t.fontMetrics(),o=i.defaultRuleThickness,s=o;t.style.id<un.TEXT.id&&(s=t.fontMetrics().xHeight);var c=o+s/4,d=n.height+n.depth+c+o,{span:h,ruleWidth:y,advanceWidth:v}=Goe(d,t),S=h.height-y;S>n.height+n.depth+c&&(c=(c+S-n.height-n.depth)/2);var T=h.height-n.height-c-y;n.style.paddingLeft=gt(v);var w=er({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+T)},{type:"elem",elem:h},{type:"kern",size:y}]});if(e.index){var C=t.havingStyle(un.SCRIPTSCRIPT),R=tr(e.index,C,t),_=.6*(w.height-w.depth),N=er({positionType:"shift",positionData:-_,children:[{type:"elem",elem:R}]}),z=lt(["root"],[N]);return lt(["mord","sqrt"],[z,w],t)}else return lt(["mord","sqrt"],[w],t)},mathmlBuilder(e,t){var{body:n,index:i}=e;return i?new ht("mroot",[Cr(n,t),Cr(i,t)]):new ht("msqrt",[Cr(n,t)])}});var Kk={display:un.DISPLAY,text:un.TEXT,script:un.SCRIPT,scriptscript:un.SCRIPTSCRIPT};Tt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:i,parser:o}=e,s=o.parseExpression(!0,n),c=i.slice(1,i.length-5);return{type:"styling",mode:o.mode,style:c,body:s}},htmlBuilder(e,t){var n=Kk[e.style],i=t.havingStyle(n).withFont("");return Wk(e.body,i,t)},mathmlBuilder(e,t){var n=Kk[e.style],i=t.havingStyle(n),o=Al(e.body,i),s=new ht("mstyle",o),c={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},d=c[e.style];return s.setAttribute("scriptlevel",d[0]),s.setAttribute("displaystyle",d[1]),s}});var ole=function(t,n){var i=t.base;if(i)if(i.type==="op"){var o=i.limits&&(n.style.size===un.DISPLAY.size||i.alwaysHandleSupSub);return o?Lg:null}else if(i.type==="operatorname"){var s=i.alwaysHandleSupSub&&(n.style.size===un.DISPLAY.size||i.limits);return s?Xk:null}else{if(i.type==="accent")return lf(i.base)?l8:null;if(i.type==="horizBrace"){var c=!t.sub;return c===i.isOver?qk:null}else return null}else return null};Dh({type:"supsub",htmlBuilder(e,t){var n=ole(e,t);if(n)return n(e,t);var{base:i,sup:o,sub:s}=e,c=tr(i,t),d,h,y=t.fontMetrics(),v=0,S=0,T=i&&lf(i);if(o){var w=t.havingStyle(t.style.sup());d=tr(o,w,t),T||(v=c.height-w.fontMetrics().supDrop*w.sizeMultiplier/t.sizeMultiplier)}if(s){var C=t.havingStyle(t.style.sub());h=tr(s,C,t),T||(S=c.depth+C.fontMetrics().subDrop*C.sizeMultiplier/t.sizeMultiplier)}var R;t.style===un.DISPLAY?R=y.sup1:t.style.cramped?R=y.sup3:R=y.sup2;var _=t.sizeMultiplier,N=gt(.5/y.ptPerEm/_),z=null;if(h){var B=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(c instanceof wl||B)&&(z=gt(-c.italic))}var V;if(d&&h){v=Math.max(v,R,d.depth+.25*y.xHeight),S=Math.max(S,y.sub2);var L=y.defaultRuleThickness,U=4*L;if(v-d.depth-(h.height-S)<U){S=U-(v-d.depth)+h.height;var X=.8*y.xHeight-(v-d.depth);X>0&&(v+=X,S-=X)}var se=[{type:"elem",elem:h,shift:S,marginRight:N,marginLeft:z},{type:"elem",elem:d,shift:-v,marginRight:N}];V=er({positionType:"individualShift",children:se})}else if(h){S=Math.max(S,y.sub1,h.height-.8*y.xHeight);var ce=[{type:"elem",elem:h,marginLeft:z,marginRight:N}];V=er({positionType:"shift",positionData:S,children:ce})}else if(d)v=Math.max(v,R,d.depth+.25*y.xHeight),V=er({positionType:"shift",positionData:-v,children:[{type:"elem",elem:d,marginRight:N}]});else throw new Error("supsub must have either sup or sub.");var ie=n8(c,"right")||"mord";return lt([ie],[c,lt(["msupsub"],[V])],t)},mathmlBuilder(e,t){var n=!1,i,o;e.base&&e.base.type==="horizBrace"&&(o=!!e.sup,o===e.base.isOver&&(n=!0,i=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var s=[Cr(e.base,t)];e.sub&&s.push(Cr(e.sub,t)),e.sup&&s.push(Cr(e.sup,t));var c;if(n)c=i?"mover":"munder";else if(e.sub)if(e.sup){var y=e.base;y&&y.type==="op"&&y.limits&&t.style===un.DISPLAY||y&&y.type==="operatorname"&&y.alwaysHandleSupSub&&(t.style===un.DISPLAY||y.limits)?c="munderover":c="msubsup"}else{var h=e.base;h&&h.type==="op"&&h.limits&&(t.style===un.DISPLAY||h.alwaysHandleSupSub)||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(h.limits||t.style===un.DISPLAY)?c="munder":c="msub"}else{var d=e.base;d&&d.type==="op"&&d.limits&&(t.style===un.DISPLAY||d.alwaysHandleSupSub)||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(d.limits||t.style===un.DISPLAY)?c="mover":c="msup"}return new ht(c,s)}}),Dh({type:"atom",htmlBuilder(e,t){return KT(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new ht("mo",[rs(e.text,e.mode)]);if(e.family==="bin"){var i=a8(e,t);i==="bold-italic"&&n.setAttribute("mathvariant",i)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var Zk={mi:"italic",mn:"normal",mtext:"normal"};Dh({type:"mathord",htmlBuilder(e,t){return n6(e,t,"mathord")},mathmlBuilder(e,t){var n=new ht("mi",[rs(e.text,e.mode,t)]),i=a8(e,t)||"italic";return i!==Zk[n.type]&&n.setAttribute("mathvariant",i),n}}),Dh({type:"textord",htmlBuilder(e,t){return n6(e,t,"textord")},mathmlBuilder(e,t){var n=rs(e.text,e.mode,t),i=a8(e,t)||"normal",o;return e.mode==="text"?o=new ht("mtext",[n]):/[0-9]/.test(e.text)?o=new ht("mn",[n]):e.text==="\\prime"?o=new ht("mo",[n]):o=new ht("mi",[n]),i!==Zk[o.type]&&o.setAttribute("mathvariant",i),o}});var w8={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},T8={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Dh({type:"spacing",htmlBuilder(e,t){if(T8.hasOwnProperty(e.text)){var n=T8[e.text].className||"";if(e.mode==="text"){var i=n6(e,t,"textord");return i.classes.push(n),i}else return lt(["mspace",n],[KT(e.text,e.mode,t)],t)}else{if(w8.hasOwnProperty(e.text))return lt(["mspace",w8[e.text]],[],t);throw new ft('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(T8.hasOwnProperty(e.text))n=new ht("mtext",[new ki(" ")]);else{if(w8.hasOwnProperty(e.text))return new ht("mspace");throw new ft('Unknown type of space "'+e.text+'"')}return n}});var Jk=()=>{var e=new ht("mtd",[]);return e.setAttribute("width","50%"),e};Dh({type:"tag",mathmlBuilder(e,t){var n=new ht("mtable",[new ht("mtr",[Jk(),new ht("mtd",[$d(e.body,t)]),Jk(),new ht("mtd",[$d(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var ez={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},tz={"\\textbf":"textbf","\\textmd":"textmd"},lle={"\\textit":"textit","\\textup":"textup"},nz=(e,t)=>{var n=e.font;if(n){if(ez[n])return t.withTextFontFamily(ez[n]);if(tz[n])return t.withTextFontWeight(tz[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(lle[n])};Tt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:i}=e,o=t[0];return{type:"text",mode:n.mode,body:Ni(o),font:i}},htmlBuilder(e,t){var n=nz(e,t),i=qi(e.body,n,!0);return lt(["mord","text"],i,n)},mathmlBuilder(e,t){var n=nz(e,t);return $d(e.body,n)}}),Tt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=tr(e.body,t),i=zg("underline-line",t),o=t.fontMetrics().defaultRuleThickness,s=er({positionType:"top",positionData:n.height,children:[{type:"kern",size:o},{type:"elem",elem:i},{type:"kern",size:3*o},{type:"elem",elem:n}]});return lt(["mord","underline"],[s],t)},mathmlBuilder(e,t){var n=new ht("mo",[new ki("‾")]);n.setAttribute("stretchy","true");var i=new ht("munder",[Cr(e.body,t),n]);return i.setAttribute("accentunder","true"),i}}),Tt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=tr(e.body,t),i=t.fontMetrics().axisHeight,o=.5*(n.height-i-(n.depth+i));return er({positionType:"shift",positionData:o,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){return new ht("mpadded",[Cr(e.body,t)],["vcenter"])}}),Tt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new ft("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=rz(e),i=[],o=t.havingStyle(t.style.text()),s=0;s<n.length;s++){var c=n[s];c==="~"&&(c="\\textasciitilde"),i.push(bo(c,"Typewriter-Regular",e.mode,o,["mord","texttt"]))}return lt(["mord","text"].concat(o.sizingClasses(t)),ek(i),o)},mathmlBuilder(e,t){var n=new ki(rz(e)),i=new ht("mtext",[n]);return i.setAttribute("mathvariant","monospace"),i}});var rz=e=>e.body.replace(/ /g,e.star?"␣":" "),qd=ik,iz=`[ \r
|
|
919
|
+
`+X+" children.");for(var ue=0;ue<X;ue++){var $=new jd(B[ue]),le=new uf([$],{width:"400em",height:gt(U),viewBox:"0 0 "+d+" "+L,preserveAspectRatio:ce[ue]+" slice"}),Q=Ud([se[ue]],[le],n);if(X===1)return{span:Q,minWidth:V,height:U};Q.style.height=gt(U),N.push(Q)}return{span:lt(["stretchy"],N,n),minWidth:V,height:U}}}var{span:o,minWidth:s,height:c}=i();return o.height=c,o.style.height=gt(c),s>0&&(o.style.minWidth=gt(s)),o},zoe=function(t,n,i,o,s){var c,d=t.height+t.depth+i+o;if(/fbox|color|angl/.test(n)){if(c=lt(["stretchy",n],[],s),n==="fbox"){var h=s.color&&s.getColor();h&&(c.style.borderColor=h)}}else{var y=[];/^[bx]cancel$/.test(n)&&y.push(new HT({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&y.push(new HT({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var v=new uf(y,{width:"100%",height:gt(d)});c=Ud([],[v],s)}return c.height=d,c.style.height=gt(d),c};function An(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function c6(e){var t=f6(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function f6(e){return e&&(e.type==="atom"||poe.hasOwnProperty(e.type))?e:null}var hk=e=>{if(e instanceof wl)return e;if(coe(e)&&e.children.length===1)return hk(e.children[0])},l8=(e,t)=>{var n,i,o;e&&e.type==="supsub"?(i=An(e.base,"accent"),n=i.base,e.base=n,o=uoe(tr(e,t)),e.base=i):(i=An(e,"accent"),n=i.base);var s=tr(n,t.havingCrampedStyle()),c=i.isShifty&&lf(n),d=0;if(c){var h,y;d=(h=(y=hk(s))==null?void 0:y.skew)!=null?h:0}var v=i.label==="\\c",S=v?s.height+s.depth:Math.min(s.height,t.fontMetrics().xHeight),T;if(i.isStretchy)T=u6(i,t),T=er({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:T,wrapperClasses:["svg-align"],wrapperStyle:d>0?{width:"calc(100% - "+gt(2*d)+")",marginLeft:gt(2*d)}:void 0}]});else{var w,C;i.label==="\\vec"?(w=rk("vec",t),C=nk.vec[1]):(w=n6({mode:i.mode,text:i.label},t,"textord"),w=soe(w),w.italic=0,C=w.width,v&&(S+=w.depth)),T=lt(["accent-body"],[w]);var R=i.label==="\\textcircled";R&&(T.classes.push("accent-full"),S=s.height);var _=d;R||(_-=C/2),T.style.left=gt(_),i.label==="\\textcircled"&&(T.style.top=".2em"),T=er({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-S},{type:"elem",elem:T}]})}var N=lt(["mord","accent"],[T],t);return o?(o.children[0]=N,o.height=Math.max(N.height,o.height),o.classes[0]="mord",o):N},pk=(e,t)=>{var n=e.isStretchy?s6(e.label):new ht("mo",[rs(e.label,e.mode)]),i=new ht("mover",[Cr(e.base,t),n]);return i.setAttribute("accent","true"),i},Ioe=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));Tt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=o6(t[0]),i=!Ioe.test(e.funcName),o=!i||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:i,isShifty:o,base:n}},htmlBuilder:l8,mathmlBuilder:pk}),Tt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],i=e.parser.mode;return i==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),i="text"),{type:"accent",mode:i,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:l8,mathmlBuilder:pk}),Tt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:i}=e,o=t[0];return{type:"accentUnder",mode:n.mode,label:i,base:o}},htmlBuilder:(e,t)=>{var n=tr(e.base,t),i=u6(e,t),o=e.label==="\\utilde"?.12:0,s=er({positionType:"top",positionData:n.height,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:n}]});return lt(["mord","accentunder"],[s],t)},mathmlBuilder:(e,t)=>{var n=s6(e.label),i=new ht("munder",[Cr(e.base,t),n]);return i.setAttribute("accentunder","true"),i}});var d6=e=>{var t=new ht("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Tt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:i,funcName:o}=e;return{type:"xArrow",mode:i.mode,label:o,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,i=t.havingStyle(n.sup()),o=Ig(tr(e.body,i,t),t),s=e.label.slice(0,2)==="\\x"?"x":"cd";o.classes.push(s+"-arrow-pad");var c;e.below&&(i=t.havingStyle(n.sub()),c=Ig(tr(e.below,i,t),t),c.classes.push(s+"-arrow-pad"));var d=u6(e,t),h=-t.fontMetrics().axisHeight+.5*d.height,y=-t.fontMetrics().axisHeight-.5*d.height-.111;(o.depth>.25||e.label==="\\xleftequilibrium")&&(y-=o.depth);var v;if(c){var S=-t.fontMetrics().axisHeight+c.height+.5*d.height+.111;v=er({positionType:"individualShift",children:[{type:"elem",elem:o,shift:y},{type:"elem",elem:d,shift:h},{type:"elem",elem:c,shift:S}]})}else v=er({positionType:"individualShift",children:[{type:"elem",elem:o,shift:y},{type:"elem",elem:d,shift:h}]});return v.children[0].children[0].children[1].classes.push("svg-align"),lt(["mrel","x-arrow"],[v],t)},mathmlBuilder(e,t){var n=s6(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var i;if(e.body){var o=d6(Cr(e.body,t));if(e.below){var s=d6(Cr(e.below,t));i=new ht("munderover",[n,s,o])}else i=new ht("mover",[n,o])}else if(e.below){var c=d6(Cr(e.below,t));i=new ht("munder",[n,c])}else i=d6(),i=new ht("mover",[n,i]);return i}});function mk(e,t){var n=qi(e.body,t,!0);return lt([e.mclass],n,t)}function gk(e,t){var n,i=Al(e.body,t);return e.mclass==="minner"?n=new ht("mpadded",i):e.mclass==="mord"?e.isCharacterBox?(n=i[0],n.type="mi"):n=new ht("mi",i):(e.isCharacterBox?(n=i[0],n.type="mo"):n=new ht("mo",i),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}Tt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:i}=e,o=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+i.slice(5),body:Ni(o),isCharacterBox:lf(o)}},htmlBuilder:mk,mathmlBuilder:gk});var h6=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};Tt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:h6(t[0]),body:Ni(t[1]),isCharacterBox:lf(t[1])}}}),Tt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:i}=e,o=t[1],s=t[0],c;i!=="\\stackrel"?c=h6(o):c="mrel";var d={type:"op",mode:o.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:i!=="\\stackrel",body:Ni(o)},h={type:"supsub",mode:s.mode,base:d,sup:i==="\\underset"?null:s,sub:i==="\\underset"?s:null};return{type:"mclass",mode:n.mode,mclass:c,body:[h],isCharacterBox:lf(h)}},htmlBuilder:mk,mathmlBuilder:gk}),Tt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:h6(t[0]),body:Ni(t[0])}},htmlBuilder(e,t){var n=qi(e.body,t,!0),i=lt([e.mclass],n,t);return i.style.textShadow="0.02em 0.01em 0.04px",i},mathmlBuilder(e,t){var n=Al(e.body,t),i=new ht("mstyle",n);return i.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),i}});var Loe={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},yk=()=>({type:"styling",body:[],mode:"math",style:"display"}),vk=e=>e.type==="textord"&&e.text==="@",Voe=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function Boe(e,t,n){var i=Loe[e];switch(i){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(i,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var o=n.callFunction("\\\\cdleft",[t[0]],[]),s={type:"atom",text:i,mode:"math",family:"rel"},c=n.callFunction("\\Big",[s],[]),d=n.callFunction("\\\\cdright",[t[1]],[]),h={type:"ordgroup",mode:"math",body:[o,c,d]};return n.callFunction("\\\\cdparent",[h],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var y={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[y],[])}default:return{type:"textord",text:" ",mode:"math"}}}function joe(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new ft("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var i=[],o=[i],s=0;s<t.length;s++){for(var c=t[s],d=yk(),h=0;h<c.length;h++)if(!vk(c[h]))d.body.push(c[h]);else{i.push(d),h+=1;var y=c6(c[h]).text,v=new Array(2);if(v[0]={type:"ordgroup",mode:"math",body:[]},v[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(y))if("<>AV".includes(y))for(var S=0;S<2;S++){for(var T=!0,w=h+1;w<c.length;w++){if(Voe(c[w],y)){T=!1,h=w;break}if(vk(c[w]))throw new ft("Missing a "+y+" character to complete a CD arrow.",c[w]);v[S].body.push(c[w])}if(T)throw new ft("Missing a "+y+" character to complete a CD arrow.",c[h])}else throw new ft('Expected one of "<>AV=|." after @',c[h]);var C=Boe(y,v,e),R={type:"styling",body:[C],mode:"math",style:"display"};i.push(R),d=yk()}s%2===0?i.push(d):i.shift(),i=[],o.push(i)}e.gullet.endGroup(),e.gullet.endGroup();var _=new Array(o[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:o,arraystretch:1,addJot:!0,rowGaps:[null],cols:_,colSeparationType:"CD",hLinesBeforeRow:new Array(o.length+1).fill([])}}Tt({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:i}=e;return{type:"cdlabel",mode:n.mode,side:i.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),i=Ig(tr(e.label,n,t),t);return i.classes.push("cd-label-"+e.side),i.style.bottom=gt(.8-i.depth),i.height=0,i.depth=0,i},mathmlBuilder(e,t){var n=new ht("mrow",[Cr(e.label,t)]);return n=new ht("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new ht("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}}),Tt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=Ig(tr(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new ht("mrow",[Cr(e.fragment,t)])}}),Tt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,i=An(t[0],"ordgroup"),o=i.body,s="",c=0;c<o.length;c++){var d=An(o[c],"textord");s+=d.text}var h=parseInt(s),y;if(isNaN(h))throw new ft("\\@char has non-numeric argument "+s);if(h<0||h>=1114111)throw new ft("\\@char with invalid code point "+s);return h<=65535?y=String.fromCharCode(h):(h-=65536,y=String.fromCharCode((h>>10)+55296,(h&1023)+56320)),{type:"textord",mode:n.mode,text:y}}});var bk=(e,t)=>{var n=qi(e.body,t.withColor(e.color),!1);return ff(n)},xk=(e,t)=>{var n=Al(e.body,t.withColor(e.color)),i=new ht("mstyle",n);return i.setAttribute("mathcolor",e.color),i};Tt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,i=An(t[0],"color-token").color,o=t[1];return{type:"color",mode:n.mode,color:i,body:Ni(o)}},htmlBuilder:bk,mathmlBuilder:xk}),Tt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:i}=e,o=An(t[0],"color-token").color;n.gullet.macros.set("\\current@color",o);var s=n.parseExpression(!0,i);return{type:"color",mode:n.mode,color:o,body:s}},htmlBuilder:bk,mathmlBuilder:xk}),Tt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:i}=e,o=i.gullet.future().text==="["?i.parseSizeGroup(!0):null,s=!i.settings.displayMode||!i.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:i.mode,newLine:s,size:o&&An(o,"size").value}},htmlBuilder(e,t){var n=lt(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=gt(ii(e.size,t)))),n},mathmlBuilder(e,t){var n=new ht("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",gt(ii(e.size,t)))),n}});var s8={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Sk=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new ft("Expected a control sequence",e);return t},Poe=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},Ek=(e,t,n,i)=>{var o=e.gullet.macros.get(n.text);o==null&&(n.noexpand=!0,o={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,o,i)};Tt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var i=t.fetch();if(s8[i.text])return(n==="\\global"||n==="\\\\globallong")&&(i.text=s8[i.text]),An(t.parseFunction(),"internal");throw new ft("Invalid token after macro prefix",i)}}),Tt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=t.gullet.popToken(),o=i.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(o))throw new ft("Expected a control sequence",i);for(var s=0,c,d=[[]];t.gullet.future().text!=="{";)if(i=t.gullet.popToken(),i.text==="#"){if(t.gullet.future().text==="{"){c=t.gullet.future(),d[s].push("{");break}if(i=t.gullet.popToken(),!/^[1-9]$/.test(i.text))throw new ft('Invalid argument number "'+i.text+'"');if(parseInt(i.text)!==s+1)throw new ft('Argument number "'+i.text+'" out of order');s++,d.push([])}else{if(i.text==="EOF")throw new ft("Expected a macro definition");d[s].push(i.text)}var{tokens:h}=t.gullet.consumeArg();return c&&h.unshift(c),(n==="\\edef"||n==="\\xdef")&&(h=t.gullet.expandTokens(h),h.reverse()),t.gullet.macros.set(o,{tokens:h,numArgs:s,delimiters:d},n===s8[n]),{type:"internal",mode:t.mode}}}),Tt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=Sk(t.gullet.popToken());t.gullet.consumeSpaces();var o=Poe(t);return Ek(t,i,o,n==="\\\\globallet"),{type:"internal",mode:t.mode}}}),Tt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=Sk(t.gullet.popToken()),o=t.gullet.popToken(),s=t.gullet.popToken();return Ek(t,i,s,n==="\\\\globalfuture"),t.gullet.pushToken(s),t.gullet.pushToken(o),{type:"internal",mode:t.mode}}});var kb=function(t,n,i){var o=qr.math[t]&&qr.math[t].replace,s=qT(o||t,n,i);if(!s)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return s},u8=function(t,n,i,o){var s=i.havingBaseStyle(n),c=lt(o.concat(s.sizingClasses(i)),[t],i),d=s.sizeMultiplier/i.sizeMultiplier;return c.height*=d,c.depth*=d,c.maxFontSize=s.sizeMultiplier,c},wk=function(t,n,i){var o=n.havingBaseStyle(i),s=(1-n.sizeMultiplier/o.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=gt(s),t.height-=s,t.depth+=s},Uoe=function(t,n,i,o,s,c){var d=bo(t,"Main-Regular",s,o),h=u8(d,n,o,c);return wk(h,o,n),h},$oe=function(t,n,i,o){return bo(t,"Size"+n+"-Regular",i,o)},Tk=function(t,n,i,o,s,c){var d=$oe(t,n,s,o),h=u8(lt(["delimsizing","size"+n],[d],o),un.TEXT,o,c);return i&&wk(h,o,un.TEXT),h},c8=function(t,n,i){var o;n==="Size1-Regular"?o="delim-size1":o="delim-size4";var s=lt(["delimsizinginner",o],[lt([],[bo(t,n,i)])]);return{type:"elem",elem:s}},f8=function(t,n,i){var o=lc["Size4-Regular"][t.charCodeAt(0)]?lc["Size4-Regular"][t.charCodeAt(0)][4]:lc["Size1-Regular"][t.charCodeAt(0)][4],s=new jd("inner",noe(t,Math.round(1e3*n))),c=new uf([s],{width:gt(o),height:gt(n),style:"width:"+gt(o),viewBox:"0 0 "+1e3*o+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),d=Ud([],[c],i);return d.height=n,d.style.height=gt(n),d.style.width=gt(o),{type:"elem",elem:d}},d8=.008,p6={type:"kern",size:-1*d8},Hoe=new Set(["|","\\lvert","\\rvert","\\vert"]),qoe=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),Ak=function(t,n,i,o,s,c){var d,h,y,v,S="",T=0;d=y=v=t,h=null;var w="Size1-Regular";t==="\\uparrow"?y=v="⏐":t==="\\Uparrow"?y=v="‖":t==="\\downarrow"?d=y="⏐":t==="\\Downarrow"?d=y="‖":t==="\\updownarrow"?(d="\\uparrow",y="⏐",v="\\downarrow"):t==="\\Updownarrow"?(d="\\Uparrow",y="‖",v="\\Downarrow"):Hoe.has(t)?(y="∣",S="vert",T=333):qoe.has(t)?(y="∥",S="doublevert",T=556):t==="["||t==="\\lbrack"?(d="⎡",y="⎢",v="⎣",w="Size4-Regular",S="lbrack",T=667):t==="]"||t==="\\rbrack"?(d="⎤",y="⎥",v="⎦",w="Size4-Regular",S="rbrack",T=667):t==="\\lfloor"||t==="⌊"?(y=d="⎢",v="⎣",w="Size4-Regular",S="lfloor",T=667):t==="\\lceil"||t==="⌈"?(d="⎡",y=v="⎢",w="Size4-Regular",S="lceil",T=667):t==="\\rfloor"||t==="⌋"?(y=d="⎥",v="⎦",w="Size4-Regular",S="rfloor",T=667):t==="\\rceil"||t==="⌉"?(d="⎤",y=v="⎥",w="Size4-Regular",S="rceil",T=667):t==="("||t==="\\lparen"?(d="⎛",y="⎜",v="⎝",w="Size4-Regular",S="lparen",T=875):t===")"||t==="\\rparen"?(d="⎞",y="⎟",v="⎠",w="Size4-Regular",S="rparen",T=875):t==="\\{"||t==="\\lbrace"?(d="⎧",h="⎨",v="⎩",y="⎪",w="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(d="⎫",h="⎬",v="⎭",y="⎪",w="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(d="⎧",v="⎩",y="⎪",w="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(d="⎫",v="⎭",y="⎪",w="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(d="⎧",v="⎭",y="⎪",w="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(d="⎫",v="⎩",y="⎪",w="Size4-Regular");var C=kb(d,w,s),R=C.height+C.depth,_=kb(y,w,s),N=_.height+_.depth,z=kb(v,w,s),B=z.height+z.depth,V=0,L=1;if(h!==null){var U=kb(h,w,s);V=U.height+U.depth,L=2}var X=R+B+V,se=Math.max(0,Math.ceil((n-X)/(L*N))),ce=X+se*L*N,ie=o.fontMetrics().axisHeight;i&&(ie*=o.sizeMultiplier);var ue=ce/2-ie,$=[];if(S.length>0){var le=ce-R-B,Q=Math.round(ce*1e3),oe=roe(S,Math.round(le*1e3)),Z=new jd(S,oe),ae=(T/1e3).toFixed(3)+"em",de=(Q/1e3).toFixed(3)+"em",we=new uf([Z],{width:ae,height:de,viewBox:"0 0 "+T+" "+Q}),te=Ud([],[we],o);te.height=Q/1e3,te.style.width=ae,te.style.height=de,$.push({type:"elem",elem:te})}else{if($.push(c8(v,w,s)),$.push(p6),h===null){var F=ce-R-B+2*d8;$.push(f8(y,F,o))}else{var ee=(ce-R-B-V)/2+2*d8;$.push(f8(y,ee,o)),$.push(p6),$.push(c8(h,w,s)),$.push(p6),$.push(f8(y,ee,o))}$.push(p6),$.push(c8(d,w,s))}var Y=o.havingBaseStyle(un.TEXT),Me=er({positionType:"bottom",positionData:ue,children:$});return u8(lt(["delimsizing","mult"],[Me],Y),un.TEXT,o,c)},h8=80,p8=.08,m8=function(t,n,i,o,s){var c=toe(t,o,i),d=new jd(t,c),h=new uf([d],{width:"400em",height:gt(n),viewBox:"0 0 400000 "+i,preserveAspectRatio:"xMinYMin slice"});return Ud(["hide-tail"],[h],s)},Goe=function(t,n){var i=n.havingBaseSizing(),o=_k("\\surd",t*i.sizeMultiplier,Rk,i),s=i.sizeMultiplier,c=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),d,h=0,y=0,v=0,S;return o.type==="small"?(v=1e3+1e3*c+h8,t<1?s=1:t<1.4&&(s=.7),h=(1+c+p8)/s,y=(1+c)/s,d=m8("sqrtMain",h,v,c,n),d.style.minWidth="0.853em",S=.833/s):o.type==="large"?(v=(1e3+h8)*zb[o.size],y=(zb[o.size]+c)/s,h=(zb[o.size]+c+p8)/s,d=m8("sqrtSize"+o.size,h,v,c,n),d.style.minWidth="1.02em",S=1/s):(h=t+c+p8,y=t+c,v=Math.floor(1e3*t+c)+h8,d=m8("sqrtTall",h,v,c,n),d.style.minWidth="0.742em",S=1.056),d.height=y,d.style.height=gt(h),{span:d,advanceWidth:S,ruleWidth:(n.fontMetrics().sqrtRuleThickness+c)*s}},Ck=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),Foe=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),Ok=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),zb=[0,1.2,1.8,2.4,3],Mk=function(t,n,i,o,s){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),Ck.has(t)||Ok.has(t))return Tk(t,n,!1,i,o,s);if(Foe.has(t))return Ak(t,zb[n],!1,i,o,s);throw new ft("Illegal delimiter: '"+t+"'")},Yoe=[{type:"small",style:un.SCRIPTSCRIPT},{type:"small",style:un.SCRIPT},{type:"small",style:un.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Xoe=[{type:"small",style:un.SCRIPTSCRIPT},{type:"small",style:un.SCRIPT},{type:"small",style:un.TEXT},{type:"stack"}],Rk=[{type:"small",style:un.SCRIPTSCRIPT},{type:"small",style:un.SCRIPT},{type:"small",style:un.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Woe=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";var n=t.type;throw new Error("Add support for delim type '"+n+"' here.")},_k=function(t,n,i,o){for(var s=Math.min(2,3-o.style.size),c=s;c<i.length;c++){var d=i[c];if(d.type==="stack")break;var h=kb(t,Woe(d),"math"),y=h.height+h.depth;if(d.type==="small"){var v=o.havingBaseStyle(d.style);y*=v.sizeMultiplier}if(y>n)return d}return i[i.length-1]},g8=function(t,n,i,o,s,c){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var d;Ok.has(t)?d=Yoe:Ck.has(t)?d=Rk:d=Xoe;var h=_k(t,n,d,o);return h.type==="small"?Uoe(t,h.style,i,o,s,c):h.type==="large"?Tk(t,h.size,i,o,s,c):Ak(t,n,i,o,s,c)},y8=function(t,n,i,o,s,c){var d=o.fontMetrics().axisHeight*o.sizeMultiplier,h=901,y=5/o.fontMetrics().ptPerEm,v=Math.max(n-d,i+d),S=Math.max(v/500*h,2*v-y);return g8(t,S,!0,o,s,c)},Dk={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Qoe=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function m6(e,t){var n=f6(e);if(n&&Qoe.has(n.text))return n;throw n?new ft("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new ft("Invalid delimiter type '"+e.type+"'",e)}Tt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=m6(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Dk[e.funcName].size,mclass:Dk[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?lt([e.mclass]):Mk(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(rs(e.delim,e.mode));var n=new ht("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var i=gt(zb[e.size]);return n.setAttribute("minsize",i),n.setAttribute("maxsize",i),n}});function Nk(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Tt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new ft("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:m6(t[0],e).text,color:n}}}),Tt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=m6(t[0],e),i=e.parser;++i.leftrightDepth;var o=i.parseExpression(!1);--i.leftrightDepth,i.expect("\\right",!1);var s=An(i.parseFunction(),"leftright-right");return{type:"leftright",mode:i.mode,body:o,left:n.text,right:s.delim,rightColor:s.color}},htmlBuilder:(e,t)=>{Nk(e);for(var n=qi(e.body,t,!0,["mopen","mclose"]),i=0,o=0,s=!1,c=0;c<n.length;c++)n[c].isMiddle?s=!0:(i=Math.max(n[c].height,i),o=Math.max(n[c].depth,o));i*=t.sizeMultiplier,o*=t.sizeMultiplier;var d;if(e.left==="."?d=Nb(t,["mopen"]):d=y8(e.left,i,o,t,e.mode,["mopen"]),n.unshift(d),s)for(var h=1;h<n.length;h++){var y=n[h],v=y.isMiddle;v&&(n[h]=y8(v.delim,i,o,v.options,e.mode,[]))}var S;if(e.right===".")S=Nb(t,["mclose"]);else{var T=e.rightColor?t.withColor(e.rightColor):t;S=y8(e.right,i,o,T,e.mode,["mclose"])}return n.push(S),lt(["minner"],n,t)},mathmlBuilder:(e,t)=>{Nk(e);var n=Al(e.body,t);if(e.left!=="."){var i=new ht("mo",[rs(e.left,e.mode)]);i.setAttribute("fence","true"),n.unshift(i)}if(e.right!=="."){var o=new ht("mo",[rs(e.right,e.mode)]);o.setAttribute("fence","true"),e.rightColor&&o.setAttribute("mathcolor",e.rightColor),n.push(o)}return i8(n)}}),Tt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=m6(t[0],e);if(!e.parser.leftrightDepth)throw new ft("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=Nb(t,[]);else{n=Mk(e.delim,1,t,e.mode,[]);var i={delim:e.delim,options:t};n.isMiddle=i}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?rs("|","text"):rs(e.delim,e.mode),i=new ht("mo",[n]);return i.setAttribute("fence","true"),i.setAttribute("lspace","0.05em"),i.setAttribute("rspace","0.05em"),i}});var v8=(e,t)=>{var n=Ig(tr(e.body,t),t),i=e.label.slice(1),o=t.sizeMultiplier,s,c=0,d=lf(e.body);if(i==="sout")s=lt(["stretchy","sout"]),s.height=t.fontMetrics().defaultRuleThickness/o,c=-.5*t.fontMetrics().xHeight;else if(i==="phase"){var h=ii({number:.6,unit:"pt"},t),y=ii({number:.35,unit:"ex"},t),v=t.havingBaseSizing();o=o/v.sizeMultiplier;var S=n.height+n.depth+h+y;n.style.paddingLeft=gt(S/2+h);var T=Math.floor(1e3*S*o),w=Jae(T),C=new uf([new jd("phase",w)],{width:"400em",height:gt(T/1e3),viewBox:"0 0 400000 "+T,preserveAspectRatio:"xMinYMin slice"});s=Ud(["hide-tail"],[C],t),s.style.height=gt(S),c=n.depth+h+y}else{/cancel/.test(i)?d||n.classes.push("cancel-pad"):i==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var R=0,_=0,N=0;/box/.test(i)?(N=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),R=t.fontMetrics().fboxsep+(i==="colorbox"?0:N),_=R):i==="angl"?(N=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),R=4*N,_=Math.max(0,.25-n.depth)):(R=d?.2:0,_=R),s=zoe(n,i,R,_,t),/fbox|boxed|fcolorbox/.test(i)?(s.style.borderStyle="solid",s.style.borderWidth=gt(N)):i==="angl"&&N!==.049&&(s.style.borderTopWidth=gt(N),s.style.borderRightWidth=gt(N)),c=n.depth+_,e.backgroundColor&&(s.style.backgroundColor=e.backgroundColor,e.borderColor&&(s.style.borderColor=e.borderColor))}var z;if(e.backgroundColor)z=er({positionType:"individualShift",children:[{type:"elem",elem:s,shift:c},{type:"elem",elem:n,shift:0}]});else{var B=/cancel|phase/.test(i)?["svg-align"]:[];z=er({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:s,shift:c,wrapperClasses:B}]})}return/cancel/.test(i)&&(z.height=n.height,z.depth=n.depth),/cancel/.test(i)&&!d?lt(["mord","cancel-lap"],[z],t):lt(["mord"],[z],t)},b8=(e,t)=>{var n=0,i=new ht(e.label.includes("colorbox")?"mpadded":"menclose",[Cr(e.body,t)]);switch(e.label){case"\\cancel":i.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":i.setAttribute("notation","downdiagonalstrike");break;case"\\phase":i.setAttribute("notation","phasorangle");break;case"\\sout":i.setAttribute("notation","horizontalstrike");break;case"\\fbox":i.setAttribute("notation","box");break;case"\\angl":i.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,i.setAttribute("width","+"+2*n+"pt"),i.setAttribute("height","+"+2*n+"pt"),i.setAttribute("lspace",n+"pt"),i.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var o=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);i.setAttribute("style","border: "+o+"em solid "+String(e.borderColor))}break;case"\\xcancel":i.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&i.setAttribute("mathbackground",e.backgroundColor),i};Tt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:i,funcName:o}=e,s=An(t[0],"color-token").color,c=t[1];return{type:"enclose",mode:i.mode,label:o,backgroundColor:s,body:c}},htmlBuilder:v8,mathmlBuilder:b8}),Tt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:i,funcName:o}=e,s=An(t[0],"color-token").color,c=An(t[1],"color-token").color,d=t[2];return{type:"enclose",mode:i.mode,label:o,backgroundColor:c,borderColor:s,body:d}},htmlBuilder:v8,mathmlBuilder:b8}),Tt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}}),Tt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:i}=e,o=t[0];return{type:"enclose",mode:n.mode,label:i,body:o}},htmlBuilder:v8,mathmlBuilder:b8}),Tt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var kk={};function sc(e){for(var{type:t,names:n,props:i,handler:o,htmlBuilder:s,mathmlBuilder:c}=e,d={type:t,numArgs:i.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:o},h=0;h<n.length;++h)kk[n[h]]=d;s&&(i6[t]=s),c&&(a6[t]=c)}var zk={};function re(e,t){zk[e]=t}class Go{constructor(t,n,i){this.lexer=t,this.start=n,this.end=i}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new Go(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class Cl{constructor(t,n){this.text=t,this.loc=n}range(t,n){return new Cl(n,Go.range(this,t))}}function Ik(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n==="\\relax"&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n==="\\hline"||n==="\\hdashline";)e.consume(),t.push(n==="\\hdashline"),e.consumeSpaces(),n=e.fetch().text;return t}var g6=e=>{var t=e.parser.settings;if(!t.displayMode)throw new ft("{"+e.envName+"} can be used only in display mode.")},Koe=new Set(["gather","gather*"]);function x8(e){if(!e.includes("ed"))return!e.includes("*")}function Hd(e,t,n){var{hskipBeforeAndAfter:i,addJot:o,cols:s,arraystretch:c,colSeparationType:d,autoTag:h,singleRow:y,emptySingleRow:v,maxNumCols:S,leqno:T}=t;if(e.gullet.beginGroup(),y||e.gullet.macros.set("\\cr","\\\\\\relax"),!c){var w=e.gullet.expandMacroAsText("\\arraystretch");if(w==null)c=1;else if(c=parseFloat(w),!c||c<0)throw new ft("Invalid \\arraystretch: "+w)}e.gullet.beginGroup();var C=[],R=[C],_=[],N=[],z=h!=null?[]:void 0;function B(){h&&e.gullet.macros.set("\\@eqnsw","1",!0)}function V(){z&&(e.gullet.macros.get("\\df@tag")?(z.push(e.subparse([new Cl("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):z.push(!!h&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(B(),N.push(Ik(e));;){var L=e.parseExpression(!1,y?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var U={type:"ordgroup",mode:e.mode,body:L};n&&(U={type:"styling",mode:e.mode,style:n,body:[U]}),C.push(U);var X=e.fetch().text;if(X==="&"){if(S&&C.length===S){if(y||d)throw new ft("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(X==="\\end"){V(),C.length===1&&U.type==="styling"&&U.body.length===1&&U.body[0].type==="ordgroup"&&U.body[0].body.length===0&&(R.length>1||!v)&&R.pop(),N.length<R.length+1&&N.push([]);break}else if(X==="\\\\"){e.consume();var se=void 0;e.gullet.future().text!==" "&&(se=e.parseSizeGroup(!0)),_.push(se?se.value:null),V(),N.push(Ik(e)),C=[],R.push(C),B()}else throw new ft("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:o,arraystretch:c,body:R,cols:s,rowGaps:_,hskipBeforeAndAfter:i,hLinesBeforeRow:N,colSeparationType:d,tags:z,leqno:T}}function S8(e){return e.slice(0,1)==="d"?"display":"text"}var uc=function(t,n){var i,o,s=t.body.length,c=t.hLinesBeforeRow,d=0,h=new Array(s),y=[],v=Math.max(n.fontMetrics().arrayRuleWidth,n.minRuleThickness),S=1/n.fontMetrics().ptPerEm,T=5*S;if(t.colSeparationType&&t.colSeparationType==="small"){var w=n.havingStyle(un.SCRIPT).sizeMultiplier;T=.2778*(w/n.sizeMultiplier)}var C=t.colSeparationType==="CD"?ii({number:3,unit:"ex"},n):12*S,R=3*S,_=t.arraystretch*C,N=.7*_,z=.3*_,B=0;function V(nt){for(var pt=0;pt<nt.length;++pt)pt>0&&(B+=.25),y.push({pos:B,isDashed:nt[pt]})}for(V(c[0]),i=0;i<t.body.length;++i){var L=t.body[i],U=N,X=z;d<L.length&&(d=L.length);var se=new Array(L.length);for(o=0;o<L.length;++o){var ce=tr(L[o],n);X<ce.depth&&(X=ce.depth),U<ce.height&&(U=ce.height),se[o]=ce}var ie=t.rowGaps[i],ue=0;ie&&(ue=ii(ie,n),ue>0&&(ue+=z,X<ue&&(X=ue),ue=0)),t.addJot&&(X+=R),se.height=U,se.depth=X,B+=U,se.pos=B,B+=X+ue,h[i]=se,V(c[i+1])}var $=B/2+n.fontMetrics().axisHeight,le=t.cols||[],Q=[],oe,Z,ae=[];if(t.tags&&t.tags.some(nt=>nt))for(i=0;i<s;++i){var de=h[i],we=de.pos-$,te=t.tags[i],F=void 0;te===!0?F=lt(["eqn-num"],[],n):te===!1?F=lt([],[],n):F=lt([],qi(te,n,!0),n),F.depth=de.depth,F.height=de.height,ae.push({type:"elem",elem:F,shift:we})}for(o=0,Z=0;o<d||Z<le.length;++o,++Z){for(var ee,Y=le[Z],Me=!0;((Se=Y)==null?void 0:Se.type)==="separator";){var Se;if(Me||(oe=lt(["arraycolsep"],[]),oe.style.width=gt(n.fontMetrics().doubleRuleSep),Q.push(oe)),Y.separator==="|"||Y.separator===":"){var _e=Y.separator==="|"?"solid":"dashed",je=lt(["vertical-separator"],[],n);je.style.height=gt(B),je.style.borderRightWidth=gt(v),je.style.borderRightStyle=_e,je.style.margin="0 "+gt(-v/2);var He=B-$;He&&(je.style.verticalAlign=gt(-He)),Q.push(je)}else throw new ft("Invalid separator type: "+Y.separator);Z++,Y=le[Z],Me=!1}if(!(o>=d)){var Xe=void 0;if(o>0||t.hskipBeforeAndAfter){var Qe,et;Xe=(Qe=(et=Y)==null?void 0:et.pregap)!=null?Qe:T,Xe!==0&&(oe=lt(["arraycolsep"],[]),oe.style.width=gt(Xe),Q.push(oe))}var Be=[];for(i=0;i<s;++i){var Re=h[i],st=Re[o];if(st){var Mt=Re.pos-$;st.depth=Re.depth,st.height=Re.height,Be.push({type:"elem",elem:st,shift:Mt})}}var Kt=er({positionType:"individualShift",children:Be}),xt=lt(["col-align-"+(((ee=Y)==null?void 0:ee.align)||"c")],[Kt]);if(Q.push(xt),o<d-1||t.hskipBeforeAndAfter){var Ut,hn;Xe=(Ut=(hn=Y)==null?void 0:hn.postgap)!=null?Ut:T,Xe!==0&&(oe=lt(["arraycolsep"],[]),oe.style.width=gt(Xe),Q.push(oe))}}}var mn=lt(["mtable"],Q);if(y.length>0){for(var at=zg("hline",n,v),At=zg("hdashline",n,v),Rn=[{type:"elem",elem:mn,shift:0}];y.length>0;){var Bt=y.pop(),Ze=Bt.pos-$;Bt.isDashed?Rn.push({type:"elem",elem:At,shift:Ze}):Rn.push({type:"elem",elem:at,shift:Ze})}mn=er({positionType:"individualShift",children:Rn})}if(ae.length===0)return lt(["mord"],[mn],n);var be=er({positionType:"individualShift",children:ae}),Ve=lt(["tag"],[be],n);return ff([mn,Ve])},Zoe={c:"center ",l:"left ",r:"right "},cc=function(t,n){for(var i=[],o=new ht("mtd",[],["mtr-glue"]),s=new ht("mtd",[],["mml-eqn-num"]),c=0;c<t.body.length;c++){for(var d=t.body[c],h=[],y=0;y<d.length;y++)h.push(new ht("mtd",[Cr(d[y],n)]));t.tags&&t.tags[c]&&(h.unshift(o),h.push(o),t.leqno?h.unshift(s):h.push(s)),i.push(new ht("mtr",h))}var v=new ht("mtable",i),S=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);v.setAttribute("rowspacing",gt(S));var T="",w="";if(t.cols&&t.cols.length>0){var C=t.cols,R="",_=!1,N=0,z=C.length;C[0].type==="separator"&&(T+="top ",N=1),C[C.length-1].type==="separator"&&(T+="bottom ",z-=1);for(var B=N;B<z;B++){var V=C[B];V.type==="align"?(w+=Zoe[V.align],_&&(R+="none "),_=!0):V.type==="separator"&&_&&(R+=V.separator==="|"?"solid ":"dashed ",_=!1)}v.setAttribute("columnalign",w.trim()),/[sd]/.test(R)&&v.setAttribute("columnlines",R.trim())}if(t.colSeparationType==="align"){for(var L=t.cols||[],U="",X=1;X<L.length;X++)U+=X%2?"0em ":"1em ";v.setAttribute("columnspacing",U.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?v.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?v.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?v.setAttribute("columnspacing","0.5em"):v.setAttribute("columnspacing","1em");var se="",ce=t.hLinesBeforeRow;T+=ce[0].length>0?"left ":"",T+=ce[ce.length-1].length>0?"right ":"";for(var ie=1;ie<ce.length-1;ie++)se+=ce[ie].length===0?"none ":ce[ie][0]?"dashed ":"solid ";return/[sd]/.test(se)&&v.setAttribute("rowlines",se.trim()),T!==""&&(v=new ht("menclose",[v]),v.setAttribute("notation",T.trim())),t.arraystretch&&t.arraystretch<1&&(v=new ht("mstyle",[v]),v.setAttribute("scriptlevel","1")),v},Lk=function(t,n){t.envName.includes("ed")||g6(t);var i=[],o=t.envName.includes("at")?"alignat":"align",s=t.envName==="split",c=Hd(t.parser,{cols:i,addJot:!0,autoTag:s?void 0:x8(t.envName),emptySingleRow:!0,colSeparationType:o,maxNumCols:s?2:void 0,leqno:t.parser.settings.leqno},"display"),d=0,h=0,y={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var v="",S=0;S<n[0].body.length;S++){var T=An(n[0].body[S],"textord");v+=T.text}d=Number(v),h=d*2}var w=!h;c.body.forEach(function(N){for(var z=1;z<N.length;z+=2){var B=An(N[z],"styling"),V=An(B.body[0],"ordgroup");V.body.unshift(y)}if(w)h<N.length&&(h=N.length);else{var L=N.length/2;if(d<L)throw new ft("Too many math in a row: "+("expected "+d+", but got "+L),N[0])}});for(var C=0;C<h;++C){var R="r",_=0;C%2===1?R="l":C>0&&w&&(_=1),i[C]={type:"align",align:R,pregap:_,postgap:0}}return c.colSeparationType=w?"align":"alignat",c};sc({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=f6(t[0]),i=n?[t[0]]:An(t[0],"ordgroup").body,o=i.map(function(c){var d=c6(c),h=d.text;if("lcr".includes(h))return{type:"align",align:h};if(h==="|")return{type:"separator",separator:"|"};if(h===":")return{type:"separator",separator:":"};throw new ft("Unknown column alignment: "+h,c)}),s={cols:o,hskipBeforeAndAfter:!0,maxNumCols:o.length};return Hd(e.parser,s,S8(e.envName))},htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",i={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var o=e.parser;if(o.consumeSpaces(),o.fetch().text==="["){if(o.consume(),o.consumeSpaces(),n=o.fetch().text,!"lcr".includes(n))throw new ft("Expected l or c or r",o.nextToken);o.consume(),o.consumeSpaces(),o.expect("]"),o.consume(),i.cols=[{type:"align",align:n}]}}var s=Hd(e.parser,i,S8(e.envName)),c=Math.max(0,...s.body.map(d=>d.length));return s.cols=new Array(c).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[s],left:t[0],right:t[1],rightColor:void 0}:s},htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=Hd(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=f6(t[0]),i=n?[t[0]]:An(t[0],"ordgroup").body,o=i.map(function(d){var h=c6(d),y=h.text;if("lc".includes(y))return{type:"align",align:y};throw new ft("Unknown column alignment: "+y,d)});if(o.length>1)throw new ft("{subarray} can contain only one column");var s={cols:o,hskipBeforeAndAfter:!1,arraystretch:.5},c=Hd(e.parser,s,"script");if(c.body.length>0&&c.body[0].length>1)throw new ft("{subarray} can contain only one column");return c},htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=Hd(e.parser,t,S8(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Lk,htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){Koe.has(e.envName)&&g6(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:x8(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Hd(e.parser,t,"display")},htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Lk,htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){g6(e);var t={autoTag:x8(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Hd(e.parser,t,"display")},htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["CD"],props:{numArgs:0},handler(e){return g6(e),joe(e.parser)},htmlBuilder:uc,mathmlBuilder:cc}),re("\\nonumber","\\gdef\\@eqnsw{0}"),re("\\notag","\\nonumber"),Tt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new ft(e.funcName+" valid only within array environment")}});var Vk=kk;Tt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:i}=e,o=t[0];if(o.type!=="ordgroup")throw new ft("Invalid environment name",o);for(var s="",c=0;c<o.body.length;++c)s+=An(o.body[c],"textord").text;if(i==="\\begin"){if(!Vk.hasOwnProperty(s))throw new ft("No such environment: "+s,o);var d=Vk[s],{args:h,optArgs:y}=n.parseArguments("\\begin{"+s+"}",d),v={mode:n.mode,envName:s,parser:n},S=d.handler(v,h,y);n.expect("\\end",!1);var T=n.nextToken,w=An(n.parseFunction(),"environment");if(w.name!==s)throw new ft("Mismatch: \\begin{"+s+"} matched by \\end{"+w.name+"}",T);return S}return{type:"environment",mode:n.mode,name:s,nameGroup:o}}});var Bk=(e,t)=>{var n=e.font,i=t.withFont(n);return tr(e.body,i)},jk=(e,t)=>{var n=e.font,i=t.withFont(n);return Cr(e.body,i)},Pk={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Tt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:i}=e,o=o6(t[0]),s=i;return s in Pk&&(s=Pk[s]),{type:"font",mode:n.mode,font:s.slice(1),body:o}},htmlBuilder:Bk,mathmlBuilder:jk}),Tt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:h6(i),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:i}],isCharacterBox:lf(i)}}}),Tt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:i,breakOnTokenText:o}=e,{mode:s}=n,c=n.parseExpression(!0,o),d="math"+i.slice(1);return{type:"font",mode:s,font:d,body:{type:"ordgroup",mode:n.mode,body:c}}},htmlBuilder:Bk,mathmlBuilder:jk});var Joe=(e,t)=>{var n=t.style,i=n.fracNum(),o=n.fracDen(),s;s=t.havingStyle(i);var c=tr(e.numer,s,t);if(e.continued){var d=8.5/t.fontMetrics().ptPerEm,h=3.5/t.fontMetrics().ptPerEm;c.height=c.height<d?d:c.height,c.depth=c.depth<h?h:c.depth}s=t.havingStyle(o);var y=tr(e.denom,s,t),v,S,T;e.hasBarLine?(e.barSize?(S=ii(e.barSize,t),v=zg("frac-line",t,S)):v=zg("frac-line",t),S=v.height,T=v.height):(v=null,S=0,T=t.fontMetrics().defaultRuleThickness);var w,C,R;n.size===un.DISPLAY.size?(w=t.fontMetrics().num1,S>0?C=3*T:C=7*T,R=t.fontMetrics().denom1):(S>0?(w=t.fontMetrics().num2,C=T):(w=t.fontMetrics().num3,C=3*T),R=t.fontMetrics().denom2);var _;if(v){var z=t.fontMetrics().axisHeight;w-c.depth-(z+.5*S)<C&&(w+=C-(w-c.depth-(z+.5*S))),z-.5*S-(y.height-R)<C&&(R+=C-(z-.5*S-(y.height-R)));var B=-(z-.5*S);_=er({positionType:"individualShift",children:[{type:"elem",elem:y,shift:R},{type:"elem",elem:v,shift:B},{type:"elem",elem:c,shift:-w}]})}else{var N=w-c.depth-(y.height-R);N<C&&(w+=.5*(C-N),R+=.5*(C-N)),_=er({positionType:"individualShift",children:[{type:"elem",elem:y,shift:R},{type:"elem",elem:c,shift:-w}]})}s=t.havingStyle(n),_.height*=s.sizeMultiplier/t.sizeMultiplier,_.depth*=s.sizeMultiplier/t.sizeMultiplier;var V;n.size===un.DISPLAY.size?V=t.fontMetrics().delim1:n.size===un.SCRIPTSCRIPT.size?V=t.havingStyle(un.SCRIPT).fontMetrics().delim2:V=t.fontMetrics().delim2;var L,U;return e.leftDelim==null?L=Nb(t,["mopen"]):L=g8(e.leftDelim,V,!0,t.havingStyle(n),e.mode,["mopen"]),e.continued?U=lt([]):e.rightDelim==null?U=Nb(t,["mclose"]):U=g8(e.rightDelim,V,!0,t.havingStyle(n),e.mode,["mclose"]),lt(["mord"].concat(s.sizingClasses(t)),[L,lt(["mfrac"],[_]),U],t)},ele=(e,t)=>{var n=new ht("mfrac",[Cr(e.numer,t),Cr(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var i=ii(e.barSize,t);n.setAttribute("linethickness",gt(i))}if(e.leftDelim!=null||e.rightDelim!=null){var o=[];if(e.leftDelim!=null){var s=new ht("mo",[new ki(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),o.push(s)}if(o.push(n),e.rightDelim!=null){var c=new ht("mo",[new ki(e.rightDelim.replace("\\",""))]);c.setAttribute("fence","true"),o.push(c)}return i8(o)}return n},Uk=(e,t)=>{if(!t)return e;var n={type:"styling",mode:e.mode,style:t,body:[e]};return n};Tt({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:i}=e,o=t[0],s=t[1],c,d=null,h=null;switch(i){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":c=!0;break;case"\\\\atopfrac":c=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":c=!1,d="(",h=")";break;case"\\\\bracefrac":c=!1,d="\\{",h="\\}";break;case"\\\\brackfrac":c=!1,d="[",h="]";break;default:throw new Error("Unrecognized genfrac command")}var y=i==="\\cfrac",v=null;return y||i.startsWith("\\d")?v="display":i.startsWith("\\t")&&(v="text"),Uk({type:"genfrac",mode:n.mode,numer:o,denom:s,continued:y,hasBarLine:c,leftDelim:d,rightDelim:h,barSize:null},v)},htmlBuilder:Joe,mathmlBuilder:ele}),Tt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:i}=e,o;switch(n){case"\\over":o="\\frac";break;case"\\choose":o="\\binom";break;case"\\atop":o="\\\\atopfrac";break;case"\\brace":o="\\\\bracefrac";break;case"\\brack":o="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:o,token:i}}});var $k=["display","text","script","scriptscript"],Hk=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};Tt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,i=t[4],o=t[5],s=o6(t[0]),c=s.type==="atom"&&s.family==="open"?Hk(s.text):null,d=o6(t[1]),h=d.type==="atom"&&d.family==="close"?Hk(d.text):null,y=An(t[2],"size"),v,S=null;y.isBlank?v=!0:(S=y.value,v=S.number>0);var T=null,w=t[3];if(w.type==="ordgroup"){if(w.body.length>0){var C=An(w.body[0],"textord");T=$k[Number(C.text)]}}else w=An(w,"textord"),T=$k[Number(w.text)];return Uk({type:"genfrac",mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:v,barSize:S,leftDelim:c,rightDelim:h},T)}}),Tt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:i,token:o}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:An(t[0],"size").value,token:o}}}),Tt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:i}=e,o=t[0],s=An(t[1],"infix").size;if(!s)throw new Error("\\\\abovefrac expected size, but got "+String(s));var c=t[2],d=s.number>0;return{type:"genfrac",mode:n.mode,numer:o,denom:c,continued:!1,hasBarLine:d,barSize:s,leftDelim:null,rightDelim:null}}});var qk=(e,t)=>{var n=t.style,i,o;e.type==="supsub"?(i=e.sup?tr(e.sup,t.havingStyle(n.sup()),t):tr(e.sub,t.havingStyle(n.sub()),t),o=An(e.base,"horizBrace")):o=An(e,"horizBrace");var s=tr(o.base,t.havingBaseStyle(un.DISPLAY)),c=u6(o,t),d;if(o.isOver?(d=er({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:c}]}),d.children[0].children[0].children[1].classes.push("svg-align")):(d=er({positionType:"bottom",positionData:s.depth+.1+c.height,children:[{type:"elem",elem:c},{type:"kern",size:.1},{type:"elem",elem:s}]}),d.children[0].children[0].children[0].classes.push("svg-align")),i){var h=lt(["mord",o.isOver?"mover":"munder"],[d],t);o.isOver?d=er({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:.2},{type:"elem",elem:i}]}):d=er({positionType:"bottom",positionData:h.depth+.2+i.height+i.depth,children:[{type:"elem",elem:i},{type:"kern",size:.2},{type:"elem",elem:h}]})}return lt(["mord",o.isOver?"mover":"munder"],[d],t)},tle=(e,t)=>{var n=s6(e.label);return new ht(e.isOver?"mover":"munder",[Cr(e.base,t),n])};Tt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:i}=e;return{type:"horizBrace",mode:n.mode,label:i,isOver:/^\\over/.test(i),base:t[0]}},htmlBuilder:qk,mathmlBuilder:tle}),Tt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[1],o=An(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:n.mode,href:o,body:Ni(i)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=qi(e.body,t,!1);return voe(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=$d(e.body,t);return n instanceof ht||(n=new ht("mrow",[n])),n.setAttribute("href",e.href),n}}),Tt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=An(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:i}))return n.formatUnsupportedCmd("\\url");for(var o=[],s=0;s<i.length;s++){var c=i[s];c==="~"&&(c="\\textasciitilde"),o.push({type:"textord",mode:"text",text:c})}var d={type:"text",mode:n.mode,font:"\\texttt",body:o};return{type:"href",mode:n.mode,href:i,body:Ni(d)}}}),Tt({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:"hbox",mode:n.mode,body:Ni(t[0])}},htmlBuilder(e,t){var n=qi(e.body,t,!1);return ff(n)},mathmlBuilder(e,t){return new ht("mrow",Al(e.body,t))}}),Tt({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:i,token:o}=e,s=An(t[0],"raw").string,c=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var d,h={};switch(i){case"\\htmlClass":h.class=s,d={command:"\\htmlClass",class:s};break;case"\\htmlId":h.id=s,d={command:"\\htmlId",id:s};break;case"\\htmlStyle":h.style=s,d={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var y=s.split(","),v=0;v<y.length;v++){var S=y[v],T=S.indexOf("=");if(T<0)throw new ft("\\htmlData key/value '"+S+"' missing equals sign");var w=S.slice(0,T),C=S.slice(T+1);h["data-"+w.trim()]=C}d={command:"\\htmlData",attributes:h};break}default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(d)?{type:"html",mode:n.mode,attributes:h,body:Ni(c)}:n.formatUnsupportedCmd(i)},htmlBuilder:(e,t)=>{var n=qi(e.body,t,!1),i=["enclosing"];e.attributes.class&&i.push(...e.attributes.class.trim().split(/\s+/));var o=lt(i,n,t);for(var s in e.attributes)s!=="class"&&e.attributes.hasOwnProperty(s)&&o.setAttribute(s,e.attributes[s]);return o},mathmlBuilder:(e,t)=>$d(e.body,t)}),Tt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:Ni(t[0]),mathml:Ni(t[1])}},htmlBuilder:(e,t)=>{var n=qi(e.html,t,!1);return ff(n)},mathmlBuilder:(e,t)=>$d(e.mathml,t)});var E8=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new ft("Invalid size: '"+t+"' in \\includegraphics");var i={number:+(n[1]+n[2]),unit:n[3]};if(!HN(i))throw new ft("Invalid unit: '"+i.unit+"' in \\includegraphics.");return i};Tt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:i}=e,o={number:0,unit:"em"},s={number:.9,unit:"em"},c={number:0,unit:"em"},d="";if(n[0])for(var h=An(n[0],"raw").string,y=h.split(","),v=0;v<y.length;v++){var S=y[v].split("=");if(S.length===2){var T=S[1].trim();switch(S[0].trim()){case"alt":d=T;break;case"width":o=E8(T);break;case"height":s=E8(T);break;case"totalheight":c=E8(T);break;default:throw new ft("Invalid key: '"+S[0]+"' in \\includegraphics.")}}}var w=An(t[0],"url").url;return d===""&&(d=w,d=d.replace(/^.*[\\/]/,""),d=d.substring(0,d.lastIndexOf("."))),i.settings.isTrusted({command:"\\includegraphics",url:w})?{type:"includegraphics",mode:i.mode,alt:d,width:o,height:s,totalheight:c,src:w}:i.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=ii(e.height,t),i=0;e.totalheight.number>0&&(i=ii(e.totalheight,t)-n);var o=0;e.width.number>0&&(o=ii(e.width,t));var s={height:gt(n+i)};o>0&&(s.width=gt(o)),i>0&&(s.verticalAlign=gt(-i));var c=new ooe(e.src,e.alt,s);return c.height=n,c.depth=i,c},mathmlBuilder:(e,t)=>{var n=new ht("mglyph",[]);n.setAttribute("alt",e.alt);var i=ii(e.height,t),o=0;if(e.totalheight.number>0&&(o=ii(e.totalheight,t)-i,n.setAttribute("valign",gt(-o))),n.setAttribute("height",gt(i+o)),e.width.number>0){var s=ii(e.width,t);n.setAttribute("width",gt(s))}return n.setAttribute("src",e.src),n}}),Tt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:i}=e,o=An(t[0],"size");if(n.settings.strict){var s=i[1]==="m",c=o.value.unit==="mu";s?(c||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" supports only mu units, "+("not "+o.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" works only in math mode")):c&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:o.value}},htmlBuilder(e,t){return tk(e.dimension,t)},mathmlBuilder(e,t){var n=ii(e.dimension,t);return new lk(n)}}),Tt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:i}=e,o=t[0];return{type:"lap",mode:n.mode,alignment:i.slice(5),body:o}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=lt([],[tr(e.body,t)]),n=lt(["inner"],[n],t)):n=lt(["inner"],[tr(e.body,t)]);var i=lt(["fix"],[]),o=lt([e.alignment],[n,i],t),s=lt(["strut"]);return s.style.height=gt(o.height+o.depth),o.depth&&(s.style.verticalAlign=gt(-o.depth)),o.children.unshift(s),o=lt(["thinbox"],[o],t),lt(["mord","vbox"],[o],t)},mathmlBuilder:(e,t)=>{var n=new ht("mpadded",[Cr(e.body,t)]);if(e.alignment!=="rlap"){var i=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",i+"width")}return n.setAttribute("width","0px"),n}}),Tt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:i}=e,o=i.mode;i.switchMode("math");var s=n==="\\("?"\\)":"$",c=i.parseExpression(!1,s);return i.expect(s),i.switchMode(o),{type:"styling",mode:i.mode,style:"text",body:c}}}),Tt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new ft("Mismatched "+e.funcName)}});var Gk=(e,t)=>{switch(t.style.size){case un.DISPLAY.size:return e.display;case un.TEXT.size:return e.text;case un.SCRIPT.size:return e.script;case un.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Tt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:Ni(t[0]),text:Ni(t[1]),script:Ni(t[2]),scriptscript:Ni(t[3])}},htmlBuilder:(e,t)=>{var n=Gk(e,t),i=qi(n,t,!1);return ff(i)},mathmlBuilder:(e,t)=>{var n=Gk(e,t);return $d(n,t)}});var Fk=(e,t,n,i,o,s,c)=>{e=lt([],[e]);var d=n&&lf(n),h,y;if(t){var v=tr(t,i.havingStyle(o.sup()),i);y={elem:v,kern:Math.max(i.fontMetrics().bigOpSpacing1,i.fontMetrics().bigOpSpacing3-v.depth)}}if(n){var S=tr(n,i.havingStyle(o.sub()),i);h={elem:S,kern:Math.max(i.fontMetrics().bigOpSpacing2,i.fontMetrics().bigOpSpacing4-S.height)}}var T;if(y&&h){var w=i.fontMetrics().bigOpSpacing5+h.elem.height+h.elem.depth+h.kern+e.depth+c;T=er({positionType:"bottom",positionData:w,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:gt(-s)},{type:"kern",size:h.kern},{type:"elem",elem:e},{type:"kern",size:y.kern},{type:"elem",elem:y.elem,marginLeft:gt(s)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]})}else if(h){var C=e.height-c;T=er({positionType:"top",positionData:C,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:gt(-s)},{type:"kern",size:h.kern},{type:"elem",elem:e}]})}else if(y){var R=e.depth+c;T=er({positionType:"bottom",positionData:R,children:[{type:"elem",elem:e},{type:"kern",size:y.kern},{type:"elem",elem:y.elem,marginLeft:gt(s)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]})}else return e;var _=[T];if(h&&s!==0&&!d){var N=lt(["mspace"],[],i);N.style.marginRight=gt(s),_.unshift(N)}return lt(["mop","op-limits"],_,i)},Yk=new Set(["\\smallint"]),Lg=(e,t)=>{var n,i,o=!1,s;e.type==="supsub"?(n=e.sup,i=e.sub,s=An(e.base,"op"),o=!0):s=An(e,"op");var c=t.style,d=!1;c.size===un.DISPLAY.size&&s.symbol&&!Yk.has(s.name)&&(d=!0);var h;if(s.symbol){var y=d?"Size2-Regular":"Size1-Regular",v="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(v=s.name.slice(1),s.name=v==="oiint"?"\\iint":"\\iiint"),h=bo(s.name,y,"math",t,["mop","op-symbol",d?"large-op":"small-op"]),v.length>0){var S=h.italic,T=rk(v+"Size"+(d?"2":"1"),t);h=er({positionType:"individualShift",children:[{type:"elem",elem:h,shift:0},{type:"elem",elem:T,shift:d?.08:0}]}),s.name="\\"+v,h.classes.unshift("mop"),h.italic=S}}else if(s.body){var w=qi(s.body,t,!0);w.length===1&&w[0]instanceof wl?(h=w[0],h.classes[0]="mop"):h=lt(["mop"],w,t)}else{for(var C=[],R=1;R<s.name.length;R++)C.push(KT(s.name[R],s.mode,t));h=lt(["mop"],C,t)}var _=0,N=0;return(h instanceof wl||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift&&(_=(h.height-h.depth)/2-t.fontMetrics().axisHeight,N=h.italic||0),o?Fk(h,n,i,t,c,N,_):(_&&(h.style.position="relative",h.style.top=gt(_)),h)},Ib=(e,t)=>{var n;if(e.symbol)n=new ht("mo",[rs(e.name,e.mode)]),Yk.has(e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new ht("mo",Al(e.body,t));else{n=new ht("mi",[new ki(e.name.slice(1))]);var i=new ht("mo",[rs("","text")]);e.parentIsSupSub?n=new ht("mrow",[n,i]):n=ok([n,i])}return n},nle={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Tt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:i}=e,o=i;return o.length===1&&(o=nle[o]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:Lg,mathmlBuilder:Ib}),Tt({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Ni(i)}},htmlBuilder:Lg,mathmlBuilder:Ib});var rle={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Tt({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Lg,mathmlBuilder:Ib}),Tt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Lg,mathmlBuilder:Ib}),Tt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,i=n;return i.length===1&&(i=rle[i]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Lg,mathmlBuilder:Ib});var Xk=(e,t)=>{var n,i,o=!1,s;e.type==="supsub"?(n=e.sup,i=e.sub,s=An(e.base,"operatorname"),o=!0):s=An(e,"operatorname");var c;if(s.body.length>0){for(var d=s.body.map(S=>{var T="text"in S?S.text:void 0;return typeof T=="string"?{type:"textord",mode:S.mode,text:T}:S}),h=qi(d,t.withFont("mathrm"),!0),y=0;y<h.length;y++){var v=h[y];v instanceof wl&&(v.text=v.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}c=lt(["mop"],h,t)}else c=lt(["mop"],[],t);return o?Fk(c,n,i,t,t.style,0,0):c},ile=(e,t)=>{for(var n=Al(e.body,t.withFont("mathrm")),i=!0,o=0;o<n.length;o++){var s=n[o];if(!(s instanceof lk))if(s instanceof ht)switch(s.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var c=s.children[0];s.children.length===1&&c instanceof ki?c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):i=!1;break}default:i=!1}else i=!1}if(i){var d=n.map(v=>v.toText()).join("");n=[new ki(d)]}var h=new ht("mi",n);h.setAttribute("mathvariant","normal");var y=new ht("mo",[rs("","text")]);return e.parentIsSupSub?new ht("mrow",[h,y]):ok([h,y])};Tt({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:i}=e,o=t[0];return{type:"operatorname",mode:n.mode,body:Ni(o),alwaysHandleSupSub:i==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Xk,mathmlBuilder:ile}),re("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),Dh({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?ff(qi(e.body,t,!1)):lt(["mord"],qi(e.body,t,!0),t)},mathmlBuilder(e,t){return $d(e.body,t,!0)}}),Tt({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,i=t[0];return{type:"overline",mode:n.mode,body:i}},htmlBuilder(e,t){var n=tr(e.body,t.havingCrampedStyle()),i=zg("overline-line",t),o=t.fontMetrics().defaultRuleThickness,s=er({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*o},{type:"elem",elem:i},{type:"kern",size:o}]});return lt(["mord","overline"],[s],t)},mathmlBuilder(e,t){var n=new ht("mo",[new ki("‾")]);n.setAttribute("stretchy","true");var i=new ht("mover",[Cr(e.body,t),n]);return i.setAttribute("accent","true"),i}}),Tt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"phantom",mode:n.mode,body:Ni(i)}},htmlBuilder:(e,t)=>{var n=qi(e.body,t.withPhantom(),!1);return ff(n)},mathmlBuilder:(e,t)=>{var n=Al(e.body,t);return new ht("mphantom",n)}}),re("\\hphantom","\\smash{\\phantom{#1}}"),Tt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"vphantom",mode:n.mode,body:i}},htmlBuilder:(e,t)=>{var n=lt(["inner"],[tr(e.body,t.withPhantom())]),i=lt(["fix"],[]);return lt(["mord","rlap"],[n,i],t)},mathmlBuilder:(e,t)=>{var n=Al(Ni(e.body),t),i=new ht("mphantom",n),o=new ht("mpadded",[i]);return o.setAttribute("width","0px"),o}}),Tt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,i=An(t[0],"size").value,o=t[1];return{type:"raisebox",mode:n.mode,dy:i,body:o}},htmlBuilder(e,t){var n=tr(e.body,t),i=ii(e.dy,t);return er({positionType:"shift",positionData:-i,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new ht("mpadded",[Cr(e.body,t)]),i=e.dy.number+e.dy.unit;return n.setAttribute("voffset",i),n}}),Tt({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),Tt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:i}=e,o=n[0],s=An(t[0],"size"),c=An(t[1],"size");return{type:"rule",mode:i.mode,shift:o&&An(o,"size").value,width:s.value,height:c.value}},htmlBuilder(e,t){var n=lt(["mord","rule"],[],t),i=ii(e.width,t),o=ii(e.height,t),s=e.shift?ii(e.shift,t):0;return n.style.borderRightWidth=gt(i),n.style.borderTopWidth=gt(o),n.style.bottom=gt(s),n.width=i,n.height=o+s,n.depth=-s,n.maxFontSize=o*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=ii(e.width,t),i=ii(e.height,t),o=e.shift?ii(e.shift,t):0,s=t.color&&t.getColor()||"black",c=new ht("mspace");c.setAttribute("mathbackground",s),c.setAttribute("width",gt(n)),c.setAttribute("height",gt(i));var d=new ht("mpadded",[c]);return o>=0?d.setAttribute("height",gt(o)):(d.setAttribute("height",gt(o)),d.setAttribute("depth",gt(-o))),d.setAttribute("voffset",gt(o)),d}});function Wk(e,t,n){for(var i=qi(e,t,!1),o=t.sizeMultiplier/n.sizeMultiplier,s=0;s<i.length;s++){var c=i[s].classes.indexOf("sizing");c<0?Array.prototype.push.apply(i[s].classes,t.sizingClasses(n)):i[s].classes[c+1]==="reset-size"+t.size&&(i[s].classes[c+1]="reset-size"+n.size),i[s].height*=o,i[s].depth*=o}return ff(i)}var Qk=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],ale=(e,t)=>{var n=t.havingSize(e.size);return Wk(e.body,n,t)};Tt({type:"sizing",names:Qk,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:i,parser:o}=e,s=o.parseExpression(!1,n);return{type:"sizing",mode:o.mode,size:Qk.indexOf(i)+1,body:s}},htmlBuilder:ale,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),i=Al(e.body,n),o=new ht("mstyle",i);return o.setAttribute("mathsize",gt(n.sizeMultiplier)),o}}),Tt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:i}=e,o=!1,s=!1,c=n[0]&&An(n[0],"ordgroup");if(c)for(var d="",h=0;h<c.body.length;++h){var y=c.body[h];if(d=c6(y).text,d==="t")o=!0;else if(d==="b")s=!0;else{o=!1,s=!1;break}}else o=!0,s=!0;var v=t[0];return{type:"smash",mode:i.mode,body:v,smashHeight:o,smashDepth:s}},htmlBuilder:(e,t)=>{var n=lt([],[tr(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return lt(["mord","smash"],[n],t);if(n.children)for(var i=0;i<n.children.length;i++)e.smashHeight&&(n.children[i].height=0),e.smashDepth&&(n.children[i].depth=0);var o=er({positionType:"firstBaseline",children:[{type:"elem",elem:n}]});return lt(["mord"],[o],t)},mathmlBuilder:(e,t)=>{var n=new ht("mpadded",[Cr(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}}),Tt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:i}=e,o=n[0],s=t[0];return{type:"sqrt",mode:i.mode,body:s,index:o}},htmlBuilder(e,t){var n=tr(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=Ig(n,t);var i=t.fontMetrics(),o=i.defaultRuleThickness,s=o;t.style.id<un.TEXT.id&&(s=t.fontMetrics().xHeight);var c=o+s/4,d=n.height+n.depth+c+o,{span:h,ruleWidth:y,advanceWidth:v}=Goe(d,t),S=h.height-y;S>n.height+n.depth+c&&(c=(c+S-n.height-n.depth)/2);var T=h.height-n.height-c-y;n.style.paddingLeft=gt(v);var w=er({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+T)},{type:"elem",elem:h},{type:"kern",size:y}]});if(e.index){var C=t.havingStyle(un.SCRIPTSCRIPT),R=tr(e.index,C,t),_=.6*(w.height-w.depth),N=er({positionType:"shift",positionData:-_,children:[{type:"elem",elem:R}]}),z=lt(["root"],[N]);return lt(["mord","sqrt"],[z,w],t)}else return lt(["mord","sqrt"],[w],t)},mathmlBuilder(e,t){var{body:n,index:i}=e;return i?new ht("mroot",[Cr(n,t),Cr(i,t)]):new ht("msqrt",[Cr(n,t)])}});var Kk={display:un.DISPLAY,text:un.TEXT,script:un.SCRIPT,scriptscript:un.SCRIPTSCRIPT};Tt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:i,parser:o}=e,s=o.parseExpression(!0,n),c=i.slice(1,i.length-5);return{type:"styling",mode:o.mode,style:c,body:s}},htmlBuilder(e,t){var n=Kk[e.style],i=t.havingStyle(n).withFont("");return Wk(e.body,i,t)},mathmlBuilder(e,t){var n=Kk[e.style],i=t.havingStyle(n),o=Al(e.body,i),s=new ht("mstyle",o),c={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},d=c[e.style];return s.setAttribute("scriptlevel",d[0]),s.setAttribute("displaystyle",d[1]),s}});var ole=function(t,n){var i=t.base;if(i)if(i.type==="op"){var o=i.limits&&(n.style.size===un.DISPLAY.size||i.alwaysHandleSupSub);return o?Lg:null}else if(i.type==="operatorname"){var s=i.alwaysHandleSupSub&&(n.style.size===un.DISPLAY.size||i.limits);return s?Xk:null}else{if(i.type==="accent")return lf(i.base)?l8:null;if(i.type==="horizBrace"){var c=!t.sub;return c===i.isOver?qk:null}else return null}else return null};Dh({type:"supsub",htmlBuilder(e,t){var n=ole(e,t);if(n)return n(e,t);var{base:i,sup:o,sub:s}=e,c=tr(i,t),d,h,y=t.fontMetrics(),v=0,S=0,T=i&&lf(i);if(o){var w=t.havingStyle(t.style.sup());d=tr(o,w,t),T||(v=c.height-w.fontMetrics().supDrop*w.sizeMultiplier/t.sizeMultiplier)}if(s){var C=t.havingStyle(t.style.sub());h=tr(s,C,t),T||(S=c.depth+C.fontMetrics().subDrop*C.sizeMultiplier/t.sizeMultiplier)}var R;t.style===un.DISPLAY?R=y.sup1:t.style.cramped?R=y.sup3:R=y.sup2;var _=t.sizeMultiplier,N=gt(.5/y.ptPerEm/_),z=null;if(h){var B=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(c instanceof wl||B)&&(z=gt(-c.italic))}var V;if(d&&h){v=Math.max(v,R,d.depth+.25*y.xHeight),S=Math.max(S,y.sub2);var L=y.defaultRuleThickness,U=4*L;if(v-d.depth-(h.height-S)<U){S=U-(v-d.depth)+h.height;var X=.8*y.xHeight-(v-d.depth);X>0&&(v+=X,S-=X)}var se=[{type:"elem",elem:h,shift:S,marginRight:N,marginLeft:z},{type:"elem",elem:d,shift:-v,marginRight:N}];V=er({positionType:"individualShift",children:se})}else if(h){S=Math.max(S,y.sub1,h.height-.8*y.xHeight);var ce=[{type:"elem",elem:h,marginLeft:z,marginRight:N}];V=er({positionType:"shift",positionData:S,children:ce})}else if(d)v=Math.max(v,R,d.depth+.25*y.xHeight),V=er({positionType:"shift",positionData:-v,children:[{type:"elem",elem:d,marginRight:N}]});else throw new Error("supsub must have either sup or sub.");var ie=n8(c,"right")||"mord";return lt([ie],[c,lt(["msupsub"],[V])],t)},mathmlBuilder(e,t){var n=!1,i,o;e.base&&e.base.type==="horizBrace"&&(o=!!e.sup,o===e.base.isOver&&(n=!0,i=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var s=[Cr(e.base,t)];e.sub&&s.push(Cr(e.sub,t)),e.sup&&s.push(Cr(e.sup,t));var c;if(n)c=i?"mover":"munder";else if(e.sub)if(e.sup){var y=e.base;y&&y.type==="op"&&y.limits&&t.style===un.DISPLAY||y&&y.type==="operatorname"&&y.alwaysHandleSupSub&&(t.style===un.DISPLAY||y.limits)?c="munderover":c="msubsup"}else{var h=e.base;h&&h.type==="op"&&h.limits&&(t.style===un.DISPLAY||h.alwaysHandleSupSub)||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(h.limits||t.style===un.DISPLAY)?c="munder":c="msub"}else{var d=e.base;d&&d.type==="op"&&d.limits&&(t.style===un.DISPLAY||d.alwaysHandleSupSub)||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(d.limits||t.style===un.DISPLAY)?c="mover":c="msup"}return new ht(c,s)}}),Dh({type:"atom",htmlBuilder(e,t){return KT(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new ht("mo",[rs(e.text,e.mode)]);if(e.family==="bin"){var i=a8(e,t);i==="bold-italic"&&n.setAttribute("mathvariant",i)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var Zk={mi:"italic",mn:"normal",mtext:"normal"};Dh({type:"mathord",htmlBuilder(e,t){return n6(e,t,"mathord")},mathmlBuilder(e,t){var n=new ht("mi",[rs(e.text,e.mode,t)]),i=a8(e,t)||"italic";return i!==Zk[n.type]&&n.setAttribute("mathvariant",i),n}}),Dh({type:"textord",htmlBuilder(e,t){return n6(e,t,"textord")},mathmlBuilder(e,t){var n=rs(e.text,e.mode,t),i=a8(e,t)||"normal",o;return e.mode==="text"?o=new ht("mtext",[n]):/[0-9]/.test(e.text)?o=new ht("mn",[n]):e.text==="\\prime"?o=new ht("mo",[n]):o=new ht("mi",[n]),i!==Zk[o.type]&&o.setAttribute("mathvariant",i),o}});var w8={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},T8={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Dh({type:"spacing",htmlBuilder(e,t){if(T8.hasOwnProperty(e.text)){var n=T8[e.text].className||"";if(e.mode==="text"){var i=n6(e,t,"textord");return i.classes.push(n),i}else return lt(["mspace",n],[KT(e.text,e.mode,t)],t)}else{if(w8.hasOwnProperty(e.text))return lt(["mspace",w8[e.text]],[],t);throw new ft('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(T8.hasOwnProperty(e.text))n=new ht("mtext",[new ki(" ")]);else{if(w8.hasOwnProperty(e.text))return new ht("mspace");throw new ft('Unknown type of space "'+e.text+'"')}return n}});var Jk=()=>{var e=new ht("mtd",[]);return e.setAttribute("width","50%"),e};Dh({type:"tag",mathmlBuilder(e,t){var n=new ht("mtable",[new ht("mtr",[Jk(),new ht("mtd",[$d(e.body,t)]),Jk(),new ht("mtd",[$d(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var ez={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},tz={"\\textbf":"textbf","\\textmd":"textmd"},lle={"\\textit":"textit","\\textup":"textup"},nz=(e,t)=>{var n=e.font;if(n){if(ez[n])return t.withTextFontFamily(ez[n]);if(tz[n])return t.withTextFontWeight(tz[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(lle[n])};Tt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:i}=e,o=t[0];return{type:"text",mode:n.mode,body:Ni(o),font:i}},htmlBuilder(e,t){var n=nz(e,t),i=qi(e.body,n,!0);return lt(["mord","text"],i,n)},mathmlBuilder(e,t){var n=nz(e,t);return $d(e.body,n)}}),Tt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=tr(e.body,t),i=zg("underline-line",t),o=t.fontMetrics().defaultRuleThickness,s=er({positionType:"top",positionData:n.height,children:[{type:"kern",size:o},{type:"elem",elem:i},{type:"kern",size:3*o},{type:"elem",elem:n}]});return lt(["mord","underline"],[s],t)},mathmlBuilder(e,t){var n=new ht("mo",[new ki("‾")]);n.setAttribute("stretchy","true");var i=new ht("munder",[Cr(e.body,t),n]);return i.setAttribute("accentunder","true"),i}}),Tt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=tr(e.body,t),i=t.fontMetrics().axisHeight,o=.5*(n.height-i-(n.depth+i));return er({positionType:"shift",positionData:o,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){return new ht("mpadded",[Cr(e.body,t)],["vcenter"])}}),Tt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new ft("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=rz(e),i=[],o=t.havingStyle(t.style.text()),s=0;s<n.length;s++){var c=n[s];c==="~"&&(c="\\textasciitilde"),i.push(bo(c,"Typewriter-Regular",e.mode,o,["mord","texttt"]))}return lt(["mord","text"].concat(o.sizingClasses(t)),ek(i),o)},mathmlBuilder(e,t){var n=new ki(rz(e)),i=new ht("mtext",[n]);return i.setAttribute("mathvariant","monospace"),i}});var rz=e=>e.body.replace(/ /g,e.star?"␣":" "),qd=ik,iz=`[ \r
|
|
920
920
|
]`,sle="\\\\[a-zA-Z@]+",ule="\\\\[^\uD800-\uDFFF]",cle="("+sle+")"+iz+"*",fle=`\\\\(
|
|
921
921
|
|[ \r ]+
|
|
922
922
|
?)[ \r ]*`,A8="[̀-ͯ]",dle=new RegExp(A8+"+$"),hle="("+iz+"+)|"+(fle+"|")+"([!-\\[\\]-‧-豈-]"+(A8+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(A8+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+cle)+("|"+ule+")");class az{constructor(t,n){this.input=t,this.settings=n,this.tokenRegex=new RegExp(hle,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new Cl("EOF",new Go(this,n,n));var i=this.tokenRegex.exec(t);if(i===null||i.index!==n)throw new ft("Unexpected character: '"+t[n]+"'",new Cl(t[n],new Go(this,n,n+1)));var o=i[6]||i[3]||(i[2]?"\\ ":" ");if(this.catcodes[o]===14){var s=t.indexOf(`
|
|
@@ -940,5 +940,5 @@ l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
940
940
|
`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:i}};function n(s,c,d,h){const y=s.value||"",v=d.createTracker(h),S="$".repeat(Math.max(_z(y,"$")+1,2)),T=d.enter("mathFlow");let w=v.move(S);if(s.meta){const C=d.enter("mathFlowMeta");w+=v.move(d.safe(s.meta,{after:`
|
|
941
941
|
`,before:w,encode:["$"],...v.current()})),C()}return w+=v.move(`
|
|
942
942
|
`),y&&(w+=v.move(y+`
|
|
943
|
-
`)),w+=v.move(S),T(),w}function i(s,c,d){let h=s.value||"",y=1;for(t||y++;new RegExp("(^|[^$])"+"\\$".repeat(y)+"([^$]|$)").test(h);)y++;const v="$".repeat(y);/[^ \r\n]/.test(h)&&(/^[ \r\n]/.test(h)&&/[ \r\n]$/.test(h)||/^\$|\$$/.test(h))&&(h=" "+h+" ");let S=-1;for(;++S<d.unsafe.length;){const T=d.unsafe[S];if(!T.atBreak)continue;const w=d.compilePattern(T);let C;for(;C=w.exec(h);){let R=C.index;h.codePointAt(R)===10&&h.codePointAt(R-1)===13&&R--,h=h.slice(0,R)+" "+h.slice(C.index+1)}}return v+h+v}function o(){return"$"}}const Fue={tokenize:Yue,concrete:!0,name:"mathFlow"},Jz={tokenize:Xue,partial:!0};function Yue(e,t,n){const i=this,o=i.events[i.events.length-1],s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0;let c=0;return d;function d(z){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),h(z)}function h(z){return z===36?(e.consume(z),c++,h):c<2?n(z):(e.exit("mathFlowFenceSequence"),Nn(e,y,"whitespace")(z))}function y(z){return z===null||It(z)?S(z):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(z))}function v(z){return z===null||It(z)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),S(z)):z===36?n(z):(e.consume(z),v)}function S(z){return e.exit("mathFlowFence"),i.interrupt?t(z):e.attempt(Jz,T,_)(z)}function T(z){return e.attempt({tokenize:N,partial:!0},_,w)(z)}function w(z){return(s?Nn(e,C,"linePrefix",s+1):C)(z)}function C(z){return z===null?_(z):It(z)?e.attempt(Jz,T,_)(z):(e.enter("mathFlowValue"),R(z))}function R(z){return z===null||It(z)?(e.exit("mathFlowValue"),C(z)):(e.consume(z),R)}function _(z){return e.exit("mathFlow"),t(z)}function N(z,B,V){let L=0;return Nn(z,U,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function U(ce){return z.enter("mathFlowFence"),z.enter("mathFlowFenceSequence"),X(ce)}function X(ce){return ce===36?(L++,z.consume(ce),X):L<c?V(ce):(z.exit("mathFlowFenceSequence"),Nn(z,se,"whitespace")(ce))}function se(ce){return ce===null||It(ce)?(z.exit("mathFlowFence"),B(ce)):V(ce)}}}function Xue(e,t,n){const i=this;return o;function o(c){return c===null?t(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s)}function s(c){return i.parser.lazy[i.now().line]?n(c):t(c)}}function Wue(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:i,resolve:Que,previous:Kue,name:"mathText"};function i(o,s,c){let d=0,h,y;return v;function v(R){return o.enter("mathText"),o.enter("mathTextSequence"),S(R)}function S(R){return R===36?(o.consume(R),d++,S):d<2&&!n?c(R):(o.exit("mathTextSequence"),T(R))}function T(R){return R===null?c(R):R===36?(y=o.enter("mathTextSequence"),h=0,C(R)):R===32?(o.enter("space"),o.consume(R),o.exit("space"),T):It(R)?(o.enter("lineEnding"),o.consume(R),o.exit("lineEnding"),T):(o.enter("mathTextData"),w(R))}function w(R){return R===null||R===32||R===36||It(R)?(o.exit("mathTextData"),T(R)):(o.consume(R),w)}function C(R){return R===36?(o.consume(R),h++,C):h===d?(o.exit("mathTextSequence"),o.exit("mathText"),s(R)):(y.type="mathTextData",w(R))}}}function Que(e){let t=e.length-4,n=3,i,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[n][1].type="mathTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)o===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(o=i):(i===t||e[i][1].type==="lineEnding")&&(e[o][1].type="mathTextData",i!==o+2&&(e[o][1].end=e[i-1][1].end,e.splice(o+2,i-o-2),t-=i-o-2,i=o+2),o=void 0);return e}function Kue(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function Zue(e){return{flow:{36:Fue},text:{36:Wue(e)}}}const Jue={};function ece(e){const t=this,n=e||Jue,i=t.data(),o=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),c=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);o.push(Zue(n)),s.push(que()),c.push(Gue(n))}const tce=({text:e,isUser:t,onTypingUpdate:n})=>{const[i,o]=G.useState(""),[s,c]=G.useState(!0),d=G.useRef(null),h=au("settings"),y=G.useMemo(()=>{try{return window.self!==window.top}catch{return!0}},[]),v=G.useMemo(()=>y?{contain:"layout style",willChange:"auto",overflowWrap:"anywhere",wordBreak:"break-word"}:{},[y]);return G.useEffect(()=>{if(t||y){o(e),c(!1);return}let S=0;const w=setInterval(()=>{S<=e.length?(o(e.slice(0,S)),S++,n&&n()):(c(!1),clearInterval(w))},10);return()=>clearInterval(w)},[e,t,y]),G.useEffect(()=>{if(!s&&d.current){const S=d.current.textContent||"";d.current.setAttribute("aria-label",`AI message: ${S}`)}},[s]),H.jsxs(xi,{style:v,children:[H.jsx("div",{className:`chat-message-content ${t?"user":""}`,children:H.jsx(tae,{rehypePlugins:[Ale,[Ile,{attributes:{"*":["className","aria-label","aria-hidden","role","aria-busy","aria-live","aria-atomic"],a:["href","target"],img:["src","alt"],math:["display"],span:["style"],svg:["aria-hidden","role","xmlns","width","height","viewBox"],path:["d"]},tagNames:["p","br","b","i","em","strong","a","pre","code","ul","ol","li","blockquote","img","math","span","svg","path"]}]],remarkPlugins:[Hue,ece],components:{pre:({node:S,...T})=>H.jsx("pre",{...T,role:"text","aria-label":"Code block"}),a:({node:S,...T})=>H.jsx("a",{...T,"aria-label":`Link: ${T.children}`}),img:({node:S,...T})=>H.jsx("img",{...T,alt:T.alt||"Image in message"})},children:i})}),H.jsx("div",{className:"sr-only","aria-live":h.general.ariaMode,"aria-atomic":"true",children:s?"":e}),s&&!y&&H.jsx("span",{className:"typing-cursor","aria-hidden":"true",role:"presentation",children:"|"})]})};function j8(e){switch(e){case"OPENAI":return"OpenAI";case"ANTHROPIC_CLAUDE":return"Anthropic Claude";case"GOOGLE_GEMINI":return"Google Gemini";default:return"AI Assistant"}}const nce=({message:e,disabled:t,_onOpenSettings:n,onTypingUpdate:i})=>{const o=()=>e.isUser?H.jsx(DY,{}):H.jsx(nte,{model:e.model}),s=()=>{const c=e.isUser?"Your message":"AI Assistant message",d=e.isUser?"":` from ${j8(e.model)}`,h=!e.isUser&&e.status==="PENDING"?" (typing)":"";return`${c}${d}${h}`};return H.jsx(xi,{sx:{display:"flex",justifyContent:e.isUser?"flex-end":"flex-start",mb:2},role:"listitem",children:H.jsxs(xi,{sx:{display:"flex",alignItems:"flex-start",gap:1.5,maxWidth:"80%",flexDirection:e.isUser?"row-reverse":"row"},children:[H.jsx(WR,{className:`chat-avatar ${e.isUser?"user":""}`,"aria-hidden":"true",children:o()}),H.jsxs(xi,{className:`chat-bubble ${e.isUser?"user":"ai"}`,role:"article","aria-label":s(),children:[!e.isUser&&H.jsx(Hr,{className:"model-name",variant:"caption",fontWeight:"medium",color:"text.secondary",component:"h3",sx:{fontSize:"0.8rem",margin:0,marginBottom:.5},"aria-label":`Model: ${j8(e.model)}`,children:j8(e.model)}),H.jsx(tce,{text:e.text,isUser:e.isUser,onTypingUpdate:i}),e.isWelcomeMessage&&e.modelSelections&&H.jsx(rte,{enabledModels:e.modelSelections}),H.jsxs(xi,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mt:.5},children:[t&&e.id.startsWith("system-")&&H.jsx(mg,{variant:"text",onClick:n,"aria-label":"Open settings",style:{padding:0},children:"Open Settings"}),H.jsx(Hr,{className:"timestamp",variant:"caption",color:"text.secondary",component:"time",dateTime:new Date(e.timestamp).toISOString(),"aria-label":`Sent at ${new Date(e.timestamp).toLocaleTimeString()}`,children:new Date(e.timestamp).toLocaleTimeString()})]}),!e.isUser&&e.status==="PENDING"&&H.jsx(xi,{role:"status","aria-label":"AI is typing",children:H.jsx(Fv,{size:16})})]})]})})},eI=G.memo(({suggestion:e,onClick:t})=>{const n=tf();return H.jsx(qR,{label:e.text,onClick:t,role:"button","aria-label":`Suggestion: ${e.text}`,sx:{bgcolor:n.palette.primary.main,color:n.palette.primary.contrastText,"&:hover":{bgcolor:n.palette.primary.dark}}})});eI.displayName="SuggestionChip";const tI=G.memo(({suggestions:e,onSuggestionClick:t})=>{const n=tf();return!e||!e.length?null:H.jsx(xi,{role:"region","aria-label":"Suggested responses",sx:{p:2,display:"flex",flexWrap:"wrap",gap:1,borderTop:`1px solid ${n.palette.divider}`,bgcolor:n.palette.background.paper},children:e.map(i=>H.jsx(eI,{suggestion:i,onClick:()=>t(i)},i.id))})});tI.displayName="Suggestions";const rce=()=>{var B;const e=G.useId(),t=tf(),n=Yu("chat"),i=Yu("settings"),{messages:o,suggestions:s}=au("chat"),c=!n.canSend,[d,h]=G.useState(""),y=G.useRef(null),v=G.useRef(null),S=G.useRef(0),T=G.useRef(null),w=()=>{i.toggle()},C=(V=!1)=>{if(!v.current)return;const L=v.current;(L.scrollTop+L.clientHeight>=L.scrollHeight-100||V)&&requestAnimationFrame(()=>{L.scrollTo({top:L.scrollHeight,behavior:"smooth"})})};G.useEffect(()=>{const V=setTimeout(()=>{C(!0)},200);return()=>clearTimeout(V)},[o.length]),G.useEffect(()=>{setTimeout(()=>C(!0),200)},[]),G.useEffect(()=>{if(!v.current)return;const V=v.current;return T.current&&T.current.disconnect(),T.current=new MutationObserver(L=>{let U=!1;L.forEach(X=>{(X.type==="childList"||X.type==="characterData")&&V.scrollTop+V.clientHeight>=V.scrollHeight-100&&(U=!0)}),U&&requestAnimationFrame(()=>{V.scrollTo({top:V.scrollHeight,behavior:"auto"})})}),T.current.observe(V,{childList:!0,subtree:!0,characterData:!0}),()=>{T.current&&T.current.disconnect()}},[o.length]),G.useEffect(()=>{if(!v.current)return;const V=v.current,L=V.scrollHeight;L>S.current&&V.scrollTop+V.clientHeight>=S.current-100&&requestAnimationFrame(()=>{V.scrollTo({top:L,behavior:"auto"})}),S.current=L},[o]),G.useEffect(()=>{if(o.length>0){const V=o[o.length-1];if(V.status==="SUCCESS"||V.status==="FAILED"){const L=setTimeout(()=>{C(!0)},300);return()=>clearTimeout(L)}}},[o.length>0?(B=o[o.length-1])==null?void 0:B.status:""]);const R=()=>{n.toggle()},_=()=>{d.trim()&&(n.sendMessage(d),h(""),setTimeout(()=>C(!0),100))},N=V=>{h(V.text)},z=V=>{V.key==="Enter"&&!V.shiftKey&&(V.preventDefault(),_())};return H.jsxs(ob,{id:e,role:"dialog",open:!0,onClose:R,maxWidth:"md",fullWidth:!0,disablePortal:!0,sx:{"& .MuiDialog-paper":{height:"70vh",maxHeight:"90vh"}},children:[H.jsx(j7,{component:"h2",sx:{p:2},children:H.jsxs(zt,{container:!0,justifyContent:"space-between",alignItems:"center",children:[H.jsx(zt,{size:"auto",children:H.jsx(Hr,{variant:"h6",fontWeight:"bold",component:"h2",sx:{margin:0},"aria-label":"Chart Assistant - AI Chat Interface",children:"Chart Assistant"})}),H.jsx(zt,{size:"auto",children:H.jsx(lg,{onClick:R,"aria-label":"Close chat dialog",children:H.jsx(QM,{})})})]})}),H.jsx(lb,{dividers:!0,sx:{p:0,overflow:"hidden"},children:H.jsxs(zt,{container:!0,direction:"column",sx:{height:"100%"},children:[H.jsxs(zt,{ref:v,size:12,component:"section","aria-label":"Chat messages",sx:{flex:1,overflowY:"auto",p:2,bgcolor:t.palette.background.default,"&::-webkit-scrollbar":{width:"6px"},"&::-webkit-scrollbar-track":{background:t.palette.grey[100]},"&::-webkit-scrollbar-thumb":{background:t.palette.grey[400],borderRadius:"3px"}},children:[o.map(V=>H.jsx(nce,{message:V,disabled:c,_onOpenSettings:w,onTypingUpdate:()=>{if(v.current){const L=v.current;L.scrollTop+L.clientHeight>=L.scrollHeight-100&&requestAnimationFrame(()=>{L.scrollTo({top:L.scrollHeight,behavior:"auto"})})}}},V.id)),H.jsx("div",{ref:y})]}),H.jsx(tI,{suggestions:s,onSuggestionClick:N}),H.jsx(zt,{size:12,component:"section","aria-label":"Message input",sx:{p:2,borderTop:`1px solid ${t.palette.divider}`},children:H.jsxs(zt,{container:!0,spacing:1,alignItems:"center",children:[H.jsx(zt,{size:{xs:10},children:H.jsx(xl,{value:d,disabled:c,onChange:V=>h(V.target.value),onKeyDown:z,maxRows:4,placeholder:"What can I help you with?",variant:"outlined",size:"small",autoFocus:!0,fullWidth:!0,multiline:!0,"aria-label":"Type your message to the AI assistant"})}),H.jsx(zt,{size:{xs:2},container:!0,justifyContent:"flex-end",children:H.jsx(lg,{onClick:_,disabled:c,color:"primary","aria-label":"Send message to AI assistant",sx:{bgcolor:t.palette.primary.main,color:t.palette.primary.contrastText,"&:hover":{bgcolor:t.palette.primary.dark}},children:H.jsx(zY,{})})})]})})]})})]})};function ice(){const{commandExecutor:e}=oO(),t=G.useCallback(s=>{e.executeCommand(s)},[e]),n=G.useCallback(s=>{const c=e.onScopeChange(s);return()=>c.dispose()},[e]),i=G.useCallback(()=>e.getCurrentScope(),[e]),o=G.useSyncExternalStore(n,i);return{executeCommand:t,currentScope:o}}const ace=()=>{const e=Yu("commandPalette"),t=au("commandPalette"),{executeCommand:n}=ice(),[i]=G.useState(""),o=G.useRef(null),s=G.useRef(null),c=G.useRef(!1),d=G.useMemo(()=>{if(!t.search.trim())return t.commands;const S=t.search.toLowerCase();return t.commands.filter(T=>T.description.toLowerCase().includes(S)||T.key.toLowerCase().includes(S))},[t.commands,t.search]);G.useEffect(()=>{t.visible&&o.current&&setTimeout(()=>{o.current&&o.current.focus()},100)},[t.visible]),G.useEffect(()=>{t.visible&&o.current&&t.selectedIndex},[t.selectedIndex,t.visible]),G.useEffect(()=>{if(s.current&&t.selectedIndex>=0){const S=s.current,T=S.children[t.selectedIndex];if(T){T.focus();const w=S.getBoundingClientRect(),C=T.getBoundingClientRect();(C.top<w.top||C.bottom>w.bottom)&&T.scrollIntoView({behavior:"smooth",block:"nearest"})}}},[t.selectedIndex]);const h=G.useCallback(()=>{e.hide()},[e]),y=G.useCallback(S=>{n(S),h()},[n,h]),v=G.useCallback(S=>{e.updateSearch(S.target.value)},[e]);return t.visible?H.jsxs(ob,{open:t.visible,onClose:h,maxWidth:"md",fullWidth:!0,disablePortal:!0,role:"dialog","aria-modal":"true","aria-labelledby":"command-palette-title","aria-describedby":"command-palette-description",sx:{"& .MuiDialog-paper":{maxHeight:"80vh"}},children:[H.jsx(xi,{component:"h2",id:"command-palette-title",sx:{p:2,m:0},children:H.jsx(xi,{component:"span",sx:{fontSize:"1.25rem",fontWeight:600},children:"Command Palette"})}),H.jsxs(lb,{dividers:!0,sx:{p:2,overflow:"hidden"},children:[H.jsx(xi,{id:"command-palette-description",sx:{mb:2},children:H.jsx(Hr,{variant:"body2",color:"text.secondary",sx:{m:0},children:"Type to search commands, use arrow keys to navigate the list, and press Enter to execute a command"})}),H.jsx(xl,{ref:o,fullWidth:!0,placeholder:"Search commands...",value:t.search,onChange:v,sx:{mb:2},autoFocus:!0,inputProps:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":"command-list","aria-expanded":!0,"aria-activedescendant":t.selectedIndex>=0?`command-${t.selectedIndex}`:void 0,"aria-label":"Search commands","aria-describedby":"command-palette-description",onKeyDown:S=>{if(S.key==="Enter"){if(S.preventDefault(),S.stopPropagation(),d.length>0&&t.selectedIndex>=0){const T=d[t.selectedIndex];T&&y(T.commandKey)}}else S.key==="ArrowDown"?(S.preventDefault(),S.stopPropagation(),e.moveDown()):S.key==="ArrowUp"&&(S.preventDefault(),S.stopPropagation(),t.selectedIndex===0?e.moveToSearch():e.moveUp())}}}),H.jsx(w3,{ref:s,id:"command-list",role:"listbox","aria-label":"Available commands",sx:{flex:1,overflow:"auto",maxHeight:"60vh"},children:d.map((S,T)=>H.jsx(x_,{id:`command-${T}`,role:"option","aria-selected":T===t.selectedIndex,"aria-label":`${S.description} (${S.key})`,selected:T===t.selectedIndex,tabIndex:T===t.selectedIndex?0:-1,onClick:()=>{c.current||y(S.commandKey)},onKeyDown:w=>{w.key==="Enter"?(w.preventDefault(),w.stopPropagation(),c.current=!0,setTimeout(()=>{c.current=!1},100),y(S.commandKey)):w.key==="ArrowUp"?(w.preventDefault(),w.stopPropagation(),T===0?e.moveToSearch():e.moveUp()):w.key==="ArrowDown"&&(w.preventDefault(),w.stopPropagation(),e.moveDown())},sx:{cursor:"pointer","&:hover":{bgcolor:"action.hover"},"&.Mui-selected":{bgcolor:"action.selected"}},children:H.jsx(H7,{primary:S.description,secondary:`${S.key}`})},S.commandKey))}),i&&H.jsx("div",{"aria-live":"assertive",style:{position:"absolute",left:"-10000px",width:"1px",height:"1px",overflow:"hidden"},children:i})]})]}):null},oce=({label:e,shortcut:t})=>H.jsxs(zt,{container:!0,spacing:1,alignItems:"center",sx:{py:1},children:[H.jsx(zt,{size:{xs:12,sm:6,md:7},children:H.jsx(Hr,{variant:"body2",children:e})}),H.jsx(zt,{size:{xs:12,sm:6,md:5},children:H.jsx(Hr,{variant:"body2",fontWeight:300,children:t})})]}),lce=()=>{const e=G.useId(),t=Yu("help"),{items:n}=t.state,i=()=>{t.toggle()};return H.jsxs(ob,{id:e,role:"dialog",open:!0,onClose:i,maxWidth:"sm",fullWidth:!0,disablePortal:!0,children:[H.jsx(zt,{container:!0,component:j7,children:H.jsx(zt,{size:"grow",children:H.jsx(Hr,{variant:"h6",fontWeight:"bold",children:"Keyboard Shortcuts"})})}),H.jsx(lb,{children:H.jsx(zt,{container:!0,spacing:1,children:n.map((o,s)=>H.jsxs(nu.Fragment,{children:[H.jsx(zt,{size:12,children:H.jsx(oce,{label:o.description,shortcut:o.key})},s),s!==n.length-1&&H.jsx(zt,{size:12,children:H.jsx(gg,{})})]},s))})}),H.jsx(zt,{container:!0,component:B7,children:H.jsx(zt,{size:"grow",container:!0,spacing:1,justifyContent:"flex-end",sx:{px:2,py:1},children:H.jsx(zt,{size:"auto",children:H.jsx(mg,{variant:"contained",color:"primary",onClick:i,children:"Close"})})})})]})},sce=()=>{const e=G.useId(),{value:t}=au("review");return H.jsx("div",{id:e,children:H.jsx("input",{id:`${me.REVIEW_INPUT}-${e}`,defaultValue:t,onFocus:n=>n.target.setSelectionRange(0,0),size:50,type:"text",autoComplete:"off",autoFocus:!0})})};class S6{static async validateApiKey(t,n){try{switch(t){case"OPENAI":return await this.validateOpenAiKey(n);case"ANTHROPIC_CLAUDE":return await this.validateAnthropicKey(n);case"GOOGLE_GEMINI":return await this.validateGeminiKey(n);default:return{isValid:!1,error:"Invalid model key"}}}catch(i){return{isValid:!1,error:i instanceof Error?i.message:"Unknown error occurred"}}}static async validateOpenAiKey(t){try{return(await fetch(this.OPENAI_API_URL,{method:"GET",headers:{Authorization:`Bearer ${t}`,"Content-Type":"application/json"}})).ok?{isValid:!0}:{isValid:!1,error:"Invalid API key"}}catch{return{isValid:!1,error:"Invalid API key"}}}static async validateAnthropicKey(t){try{return(await fetch(this.ANTHROPIC_API_URL,{method:"POST",headers:{"x-api-key":t,"anthropic-version":"2023-06-01","content-type":"application/json"},body:JSON.stringify({model:"claude-3-sonnet-20240229",max_tokens:1,messages:[{role:"user",content:"test"}]})}).catch(()=>({ok:!1}))).ok?{isValid:!0}:{isValid:!1,error:"Invalid API key"}}catch{return{isValid:!1,error:"Invalid API key"}}}static async validateGeminiKey(t){try{return(await fetch(`${this.GEMINI_API_URL}?key=${t}`,{method:"GET"}).catch(()=>({ok:!1}))).ok?{isValid:!0}:{isValid:!1,error:"Invalid API key"}}catch{return{isValid:!1,error:"Invalid API key"}}}}P(S6,"OPENAI_API_URL","https://api.openai.com/v1/models"),P(S6,"ANTHROPIC_API_URL","https://api.anthropic.com/v1/messages"),P(S6,"GEMINI_API_URL","https://generativelanguage.googleapis.com/v1beta/models");const E6=10;function uce(e,t){const n=Tv[e],i=n.options;return!t||!i.includes(t)?n.default:t}const Fo=({label:e,input:t,alignLabel:n="center"})=>H.jsxs(zt,{container:!0,spacing:1,alignItems:n,className:"settings-grid-container",sx:{py:1},children:[H.jsx(zt,{size:{xs:12,sm:6,md:4},sx:n==="flex-start"?{py:1}:void 0,children:H.jsx(Hr,{variant:"body2",fontWeight:"normal",children:e})}),H.jsx(zt,{size:{xs:12,sm:6,md:8},children:t})]}),cce=({modelKey:e,modelSettings:t,onToggle:n,onChangeKey:i,onChangeVersion:o})=>{const s=uce(e,t.version),[c,d]=G.useState(!1),[h,y]=G.useState(null),v=()=>t.enabled?c?"Validating API key...":h===!1?`${t.name} API key is invalid`:h===!0?`${t.name} API key is valid`:"":"",S=async w=>{if(!t.enabled||!w.trim()){y(null);return}d(!0);try{const C=await S6.validateApiKey(e,w);y(C.isValid)}catch{y(!1)}finally{d(!1)}};G.useEffect(()=>{const w=setTimeout(()=>{S(t.apiKey)},500);return()=>clearTimeout(w)},[t.apiKey,t.enabled,e]);const T=()=>{const w=Tv[e];return w.options.map(C=>{const R=w.labels[C],_=t.version===C;return H.jsxs(Ah,{value:C,className:`llm-model-setting-row-menu-item ${_?"selected":""}`,children:[_&&H.jsx(WM,{className:"llm-model-setting-row-check-icon"}),R]},C)})};return H.jsx(Fo,{label:t.name,input:H.jsxs(zt,{container:!0,spacing:1,alignItems:"center",children:[H.jsx(zt,{children:H.jsx(nD,{checked:t.enabled,onChange:w=>n(e,w.target.checked),slotProps:{input:{"aria-label":`Enable ${t.name}`}}})}),H.jsx(zt,{size:7,children:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{disabled:!t.enabled,fullWidth:!0,size:"small",value:t.apiKey,onChange:w=>i(e,w.target.value),placeholder:`Enter ${t.name} API Key`,type:"password",error:h===!1,helperText:v(),slotProps:{input:{"aria-label":`${t.name} API Key`,"aria-describedby":`${e}-status`,endAdornment:H.jsx(y_,{position:"end",children:H.jsx("div",{id:`${e}-status`,role:"status","aria-live":"polite","aria-label":c?"Validating API key":h===!0?"API key is valid":h===!1?"API key is invalid":"",children:c?H.jsx(Fv,{size:20}):h===!0?H.jsx(WM,{color:"success"}):h===!1?H.jsx(NY,{color:"error"}):null})})}}})})}),H.jsx(zt,{size:8,children:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xg,{value:s,onChange:w=>{const C=w.target.value;o(e,C)},disabled:!t.enabled||!t.apiKey.trim()||!h,fullWidth:!0,size:"small",slotProps:{input:{"aria-label":`${t.name} Model Version`}},MenuProps:{disablePortal:!0,PaperProps:{className:"settings-menu-paper"}},children:T()})})})]})})},fce=()=>{const e=G.useId(),t=Yu("settings"),n=Yu("chat"),{general:i,llm:o}=t.state,[s,c]=G.useState(i),[d,h]=G.useState(o);G.useEffect(()=>{t.load()},[t]),G.useEffect(()=>{c(i),h(o)},[i,o]);const y=(z,B)=>{c(V=>({...V,[z]:B}))},v=(z,B)=>{h(V=>({...V,[z]:B}))},S=(z,B,V)=>{h(L=>({...L,models:{...L.models,[z]:{...L.models[z],[B]:B==="apiKey"&&typeof V=="string"?V.trim():V}}}))},T=()=>{t.reset();const{general:z,llm:B}=t.state;c(z),h(B)},w=()=>{t.toggle()},C=()=>{t.saveAndClose({general:s,llm:d}),n.refreshInitialMessage()},R=G.useCallback(z=>{z.stopPropagation()},[]),_=G.useCallback(z=>{z.stopPropagation(),v("expertiseLevel",z.target.value)},[v]),N=d.expertiseLevel!=="custom"||d.customInstruction.length>=E6;return H.jsxs(ob,{id:e,role:"dialog","aria-label":"Settings",open:!0,maxWidth:"sm",fullWidth:!0,disablePortal:!0,disableEnforceFocus:!0,onClick:z=>z.stopPropagation(),className:"settings-dialog",children:[H.jsxs(lb,{className:"settings-dialog-content",children:[H.jsx(zt,{size:"grow",children:H.jsx(Hr,{variant:"h6",fontWeight:"bold",gutterBottom:!0,children:"General Settings"})}),H.jsxs(zt,{container:!0,spacing:.5,children:[H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"Volume",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(J_,{value:s.volume,onChange:(z,B)=>y("volume",Number(B)),min:0,max:100,step:1,valueLabelDisplay:"auto",slotProps:{input:{"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Volume","aria-labelledby":"volume-label"}},className:"settings-slider-value-label"})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"Outline Color",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"color",size:"small",value:s.highlightColor,onChange:z=>y("highlightColor",z.target.value),slotProps:{input:{inputProps:{"aria-label":"Highlight Color"}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"High Contrast Mode",input:H.jsx(Hi,{children:H.jsx(Th,{control:H.jsx(t_,{checked:s.highContrastMode,onChange:z=>y("highContrastMode",z.target.checked),size:"small"}),label:s.highContrastMode?"On":"Off",slotProps:{typography:{variant:"body2"}},"aria-label":"High Contrast Mode"})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"High Contrast Levels",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"number",size:"small",value:s.highContrastLevels,onChange:z=>y("highContrastLevels",Number(z.target.value)),slotProps:{input:{inputProps:{"aria-label":"High Contrast Levels",min:2,max:20}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"High Contrast Light Color",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"color",size:"small",value:s.highContrastLightColor,onChange:z=>y("highContrastLightColor",z.target.value),slotProps:{input:{inputProps:{"aria-label":"High Contrast Light Color"}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"High Contrast Dark Color",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"color",size:"small",value:s.highContrastDarkColor,onChange:z=>y("highContrastDarkColor",z.target.value),slotProps:{input:{inputProps:{"aria-label":"High Contrast Dark Color"}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"Braille Display Size",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"number",size:"small",value:s.brailleDisplaySize,onChange:z=>y("brailleDisplaySize",Number(z.target.value)),slotProps:{input:{inputProps:{"aria-label":"Braille Display Size"}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"Min Frequency (Hz)",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"number",size:"small",value:s.minFrequency,onChange:z=>y("minFrequency",Number(z.target.value)),slotProps:{input:{inputProps:{"aria-label":"Minimum Frequency"}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"Max Frequency (Hz)",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"number",size:"small",value:s.maxFrequency,onChange:z=>y("maxFrequency",Number(z.target.value)),slotProps:{input:{inputProps:{"aria-label":"Maximum Frequency"}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"Autoplay Duration (ms)",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"number",size:"small",value:s.autoplayDuration,onChange:z=>y("autoplayDuration",Number(z.target.value)),slotProps:{input:{inputProps:{"aria-label":"Autoplay Duration"}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"ARIA Mode",input:H.jsx(Hi,{children:H.jsxs(X7,{row:!0,value:s.ariaMode,onChange:z=>y("ariaMode",z.target.value),"aria-label":"ARIA Mode",children:[H.jsx(Th,{value:"assertive",control:H.jsx(bg,{size:"small"}),label:"Assertive"}),H.jsx(Th,{value:"polite",control:H.jsx(bg,{size:"small"}),label:"Polite"})]})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"Hover Mode",input:H.jsx(Hi,{children:H.jsxs(X7,{row:!0,value:s.hoverMode,onChange:z=>y("hoverMode",z.target.value),"aria-label":"Hover Mode",children:[H.jsx(Th,{value:"off",control:H.jsx(bg,{size:"small"}),label:"Off"}),H.jsx(Th,{value:"pointermove",control:H.jsx(bg,{size:"small"}),label:"Hover"}),H.jsx(Th,{value:"click",control:H.jsx(bg,{size:"small"}),label:"Click"})]})})})})]}),H.jsx(zt,{size:12,children:H.jsx(gg,{className:"settings-divider"})}),H.jsxs(zt,{container:!0,spacing:.5,className:"settings-section",children:[H.jsx(zt,{size:12,children:H.jsx(Hr,{variant:"h6",fontWeight:"bold",gutterBottom:!0,className:"settings-section-title",children:"LLM Settings"})}),Object.keys(d.models).map(z=>{const B=d.models[z];return H.jsx(zt,{size:12,className:"settings-model-row",children:H.jsx(cce,{modelKey:z,modelSettings:B,onToggle:(V,L)=>S(V,"enabled",L),onChangeKey:(V,L)=>S(V,"apiKey",L),onChangeVersion:(V,L)=>S(V,"version",L)})},z)}),H.jsx(zt,{size:12,className:"settings-row",children:H.jsx(Hi,{fullWidth:!0,size:"small",className:"settings-model-select",children:H.jsx(Fo,{label:"Expertise Level",input:H.jsxs(xg,{value:d.expertiseLevel,onChange:_,onClick:R,slotProps:{input:{"aria-label":"Expertise Level"}},MenuProps:{disablePortal:!0,PaperProps:{className:"llm-model-setting-select-menu"}},children:[H.jsx(Ah,{value:"basic",children:"Basic"}),H.jsx(Ah,{value:"intermediate",children:"Intermediate"}),H.jsx(Ah,{value:"advanced",children:"Advanced"}),H.jsx(Ah,{value:"custom",children:"Custom"})]})})})}),d.expertiseLevel==="custom"&&H.jsx(zt,{size:12,children:H.jsxs(zt,{container:!0,spacing:1,alignItems:"flex-start",sx:{py:1},children:[H.jsx(zt,{size:12,sx:{py:1},children:H.jsx(Hr,{variant:"body2",fontWeight:"normal",children:"Custom Instructions"})}),H.jsx(zt,{size:12,children:H.jsx(Hi,{fullWidth:!0,children:H.jsx(_7,{minRows:3,maxRows:6,value:d.customInstruction,onChange:z=>v("customInstruction",z.target.value),style:{width:"100%",padding:"8px",border:"1px solid #ccc",borderRadius:"4px"},placeholder:"Enter custom instruction...","aria-label":"Custom Instructions"})})}),d.customInstruction.length<E6&&H.jsx(zt,{size:12,sx:{mt:1},children:H.jsxs(bR,{severity:"warning",children:["Custom instructions must be at least"," ",E6," ","characters long"]})})]})})]}),H.jsx(zt,{size:12,children:H.jsx(gg,{className:"settings-divider"})})]}),H.jsxs(zt,{container:!0,component:B7,alignItems:"center",className:"settings-footer",children:[H.jsx(zt,{size:"auto",className:"settings-grid-padding",children:H.jsx(mg,{variant:"text",color:"inherit",onClick:T,"aria-label":"Reset Settings",children:"Reset"})}),H.jsxs(zt,{size:"grow",container:!0,spacing:1,justifyContent:"flex-end",className:"settings-footer-actions",children:[H.jsx(zt,{size:"auto",children:H.jsx(mg,{variant:"outlined",color:"inherit",onClick:w,"aria-label":"Close Settings with no changes",children:"Close"})}),H.jsx(zt,{size:"auto",children:H.jsx(mg,{variant:"contained",color:"primary",onClick:C,disabled:!N,title:N?"":`Custom instructions must be at least ${E6} characters long`,"aria-label":"Save & Close Settings",children:"Save & Close"})})]})]})]})},dce={position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},hce=()=>{const{enabled:e,announce:t,value:n,revision:i,message:o}=au("text"),{rotor_value:s}=au("rotor"),c=au("settings"),d=e&&n||"",h=typeof o=="string"?o:"",y=h.trim().length>0?h:t&&d?d:"",v=h.trim().length>0?h:d;return H.jsxs("div",{children:[H.jsx("div",{id:me.TEXT_CONTAINER,children:v&&v.trim().length>0&&H.jsx("p",{children:v})}),y&&H.jsx("div",{role:"alert",style:dce,children:y},i),H.jsx("div",{id:me.ROTOR_AREA,"aria-live":c.general.ariaMode,children:s})]})},pce=({plot:e})=>{const{tooltip:t}=au("display"),[n,i]=G.useState(!1),o=G.useRef({x:0,y:0}),s=G.useRef(null),c=G.useMemo(()=>({getBoundingClientRect:()=>new DOMRect(o.current.x,o.current.y,0,0)}),[]);return G.useEffect(()=>{if(!e)return;const d=v=>{var S,T;o.current={x:v.clientX,y:v.clientY},(T=(S=s.current)==null?void 0:S.update)==null||T.call(S),i(!0)},h=()=>i(!0),y=()=>i(!1);return e.addEventListener(qu.MOUSE_MOVE,d),e.addEventListener(qu.MOUSE_ENTER,h),e.addEventListener(qu.MOUSE_LEAVE,y),()=>{e.removeEventListener(qu.MOUSE_MOVE,d),e.removeEventListener(qu.MOUSE_ENTER,h),e.removeEventListener(qu.MOUSE_LEAVE,y)}},[e]),H.jsx(tD,{title:t.value,open:n,placement:"top",arrow:!0,slotProps:{popper:{popperRef:s,anchorEl:c}},children:H.jsx(xi,{sx:{display:"none"},children:"TooltipAnchor"})})};function mce(e){return{p:1.5,border:e?2:1,borderColor:e?"primary.main":"divider",borderRadius:1,mb:.5,cursor:"pointer",bgcolor:e?"action.selected":"transparent",transition:"all 0.2s ease","&:hover":{bgcolor:"action.hover"},"&:focus":{outline:"none",borderColor:"primary.main",bgcolor:"action.selected"}}}const gce=()=>{const e=Yu("goToExtrema"),t=au("goToExtrema"),n=G.useRef(null),i=G.useRef(null),o=G.useRef(null),s=G.useRef(null),[c,d]=G.useState(""),[h,y]=G.useState(!1),[v,S]=G.useState([]),[T,w]=G.useState(-1),C=G.useRef(null),R=G.useRef(null),_=G.useRef(null),N=G.useRef(null);G.useEffect(()=>{o.current&&o.current.focus()},[]);const z=G.useMemo(()=>e.getAvailableXValues(),[e]);G.useEffect(()=>{if(c.trim()==="")S(z);else{const Q=c.toLowerCase();S(z.filter(oe=>String(oe).toLowerCase().includes(Q)))}h&&w(Q=>Q<0?0:Math.min(Q,Math.max(0,z.length-1)))},[c,z,h]);const B=T>=0&&v[T]!==void 0?String(v[T]):void 0,V={input:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":"x-value-listbox","aria-expanded":h,"aria-activedescendant":T>=0?`option-${T}`:void 0,"aria-valuetext":B,"aria-label":"Search and select X value",endAdornment:H.jsx(lg,{"aria-label":h?"Close dropdown":"Open dropdown",size:"small",onClick:Q=>{Q.stopPropagation(),y(!h)},children:H.jsx(kY,{})})}};G.useEffect(()=>{if(N.current){const Q=B??"";N.current.textContent=Q}},[T,B]),G.useEffect(()=>{if(n.current&&i.current){const Q=i.current,oe=n.current;oe.focus();const Z=Q.getBoundingClientRect(),ae=oe.getBoundingClientRect();ae.bottom>Z.bottom?oe.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"}):ae.top<Z.top&&oe.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}},[t.selectedIndex]),G.useEffect(()=>{if(h&&T>=0&&_.current){const Q=_.current.querySelector(`#option-${T}`);Q&&Q.scrollIntoView({block:"nearest"})}},[T,h]);const L=Q=>{var Z;const oe=(Z=e.activeContext)==null?void 0:Z.active;oe&&U(oe)&&oe.navigateToExtrema(Q),e.hide()};function U(Q){return Q!==null&&typeof Q=="object"&&"navigateToExtrema"in Q&&typeof Q.navigateToExtrema=="function"}const X=()=>{N.current&&(N.current.textContent=""),e.hide()},se=Q=>{var Z;const oe=(Z=e.activeContext)==null?void 0:Z.active;oe&&ce(oe)&&(oe.moveToXValue(Q),y(!1),w(-1),d(""),e.hide())};function ce(Q){return Q!==null&&typeof Q=="object"&&"moveToXValue"in Q&&typeof Q.moveToXValue=="function"}const ie=()=>{R.current?R.current.focus():C.current&&C.current.focus()},ue=Q=>{N.current&&(N.current.textContent=Q)},$=Q=>{if(Q.key==="ArrowDown")if(Q.preventDefault(),Q.stopPropagation(),t.selectedIndex===t.targets.length-1)ie(),y(!0),w(0),ue("Moved to search. Type to filter X values.");else{e.moveDown();const oe=t.targets[t.selectedIndex+1];ue(`Selected: ${oe.label}`)}else if(Q.key==="ArrowUp")if(Q.preventDefault(),Q.stopPropagation(),t.selectedIndex===0)ue("At first extrema option");else{e.moveUp();const oe=t.targets[t.selectedIndex-1];ue(`Selected: ${oe.label}`)}else if(Q.key==="Enter"&&(Q.preventDefault(),Q.stopPropagation(),t.selectedIndex<t.targets.length)){const oe=t.targets[t.selectedIndex];oe&&L(oe)}},le=Q=>{if(Q.key==="Enter")Q.preventDefault(),Q.stopPropagation(),T>=0&&v[T]!==void 0&&se(v[T]);else if(Q.key==="ArrowDown")Q.preventDefault(),Q.stopPropagation(),T===v.length-1?ue("At last search result"):(w(oe=>Math.min(oe+1,v.length-1)),v[T+1]&&ue(`Selected: ${v[T+1]}`));else if(Q.key==="ArrowUp")if(Q.preventDefault(),Q.stopPropagation(),T===0){y(!1),w(-1);const oe=t.targets[t.selectedIndex];ue(`Returning to extrema options: ${oe.label}`),n.current&&n.current.focus()}else w(oe=>Math.max(0,oe-1)),v[T-1]&&ue(`Selected: ${v[T-1]}`)};return t.visible&&t.targets.length>0?H.jsxs(H.Fragment,{children:[H.jsx(xi,{sx:{position:"fixed",top:0,left:0,right:0,bottom:0,bgcolor:"rgba(0, 0, 0, 0.5)",zIndex:9999},onClick:X,"aria-hidden":"true"}),H.jsxs(xi,{ref:o,role:"dialog","aria-modal":"true","aria-labelledby":"go-to-extrema-title","aria-describedby":"go-to-extrema-description",tabIndex:0,sx:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",bgcolor:"background.paper",border:1,borderColor:"divider",borderRadius:2,p:3,boxShadow:3,zIndex:1e4,minWidth:300,maxHeight:"80vh",outline:"none"},children:[H.jsxs(xi,{id:"go-to-extrema-title",sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[H.jsx(Hr,{variant:"h6",component:"h3",sx:{m:0,fontWeight:600},children:"Go To"}),H.jsx(lg,{onClick:X,"aria-label":"Close dialog",size:"small",children:H.jsx(QM,{})})]}),H.jsx(xi,{id:"go-to-extrema-description",sx:{mb:2},children:H.jsx(Hr,{variant:"body2",color:"text.secondary",sx:{m:0},children:t.description||"Navigate to points of interest"})}),H.jsxs(xi,{ref:i,role:"listbox","aria-label":"Navigation targets",onKeyDown:$,sx:{maxHeight:300,overflowY:"auto",border:1,borderColor:"divider",borderRadius:1,p:1},children:[t.targets.map((Q,oe)=>{const Z=Q.type==="intersection";let ae;if(Z&&Q.display)ae=`Intersection with ${Q.display.otherLines} at ${Q.display.coords}`;else if(Z)ae=Q.label;else{const de=Q.label.split(" at ");ae=de[1]?`${de[0]} Value: ${Q.value.toFixed(2)} at ${de[1]}`:`${de[0]} Value: ${Q.value.toFixed(2)}`}return H.jsx(xi,{ref:oe===t.selectedIndex?n:null,id:`extrema-target-${oe}`,onClick:()=>L(Q),role:"option","aria-selected":t.selectedIndex===oe,"aria-label":ae,tabIndex:0,sx:mce(t.selectedIndex===oe),children:H.jsx(Hr,{variant:"body2",sx:{fontWeight:600},children:ae})},`target-${oe}-${Q.type}-${Q.label}`)}),z.length>0&&H.jsxs(xi,{ref:s,id:"search-input-option",role:"option","aria-selected":t.selectedIndex===t.targets.length,"aria-label":"Search and navigate to specific X value","aria-expanded":h,"aria-controls":"x-value-listbox",tabIndex:0,sx:{p:1.5,borderRadius:1,mb:.5,border:t.selectedIndex===t.targets.length?2:1,borderColor:t.selectedIndex===t.targets.length?"primary.main":"divider",bgcolor:t.selectedIndex===t.targets.length?"action.selected":"transparent",position:"relative"},onClick:()=>{ie(),y(!0),w(0)},children:[H.jsx(xl,{ref:C,inputRef:R,label:"Search X values",placeholder:`Type to search ${z.length} values`,fullWidth:!0,variant:"outlined",size:"small",value:c,onChange:Q=>{d(Q.target.value),y(!0),T<0&&w(0)},onFocus:()=>{y(!0),T<0&&w(0)},onKeyDown:le,slotProps:V}),h&&v.length>0&&H.jsx(w3,{ref:_,id:"x-value-listbox",role:"listbox","aria-label":"Available X values","aria-hidden":!h,sx:{position:"absolute",top:"100%",left:0,right:0,bgcolor:"background.paper",border:1,borderColor:"divider",borderRadius:1,maxHeight:180,overflowY:"auto",zIndex:2,boxShadow:2,mt:.5},children:v.map((Q,oe)=>H.jsx(S_,{id:`option-${oe}`,role:"option","aria-selected":T===oe,"aria-label":String(Q),tabIndex:0,onClick:()=>se(Q),onKeyDown:Z=>{Z.key==="Enter"?(Z.preventDefault(),Z.stopPropagation(),se(Q)):Z.key==="ArrowDown"?(Z.preventDefault(),Z.stopPropagation(),w(ae=>Math.min(ae+1,v.length-1))):Z.key==="ArrowUp"&&(Z.preventDefault(),Z.stopPropagation(),w(ae=>Math.max(ae-1,0)))},sx:{cursor:"pointer",py:1,px:2,bgcolor:T===oe?"action.selected":"transparent","&:hover":{bgcolor:"action.hover"}},children:H.jsx(H7,{primary:String(Q)})},`${Q}-${oe}`))}),H.jsx("div",{ref:N,id:"sr-active-option-announcer","aria-live":"assertive","aria-atomic":"true",style:{position:"absolute",left:"-10000px",width:"1px",height:"1px",overflow:"hidden"}})]})]})]})]}):null},yce=({plot:e})=>{const{focus:t,tooltip:n}=au("display"),i=o=>{switch(o){case"BRAILLE":return H.jsx(gH,{});case"CHAT":return H.jsx(rce,{});case"COMMAND_PALETTE":return H.jsx(ace,{});case"GO_TO_EXTREMA":return H.jsx(gce,{});case"HELP":return H.jsx(lce,{});case"REVIEW":return H.jsx(sce,{});case"SETTINGS":return H.jsx(fce,{});default:return null}};return H.jsxs(H.Fragment,{children:[n.visible&&H.jsx(pce,{plot:e}),H.jsx(hce,{}),i(t)]})};function vce({plot:e,store:t,contextValue:n}){return H.jsx(cH,{store:t,children:H.jsx(aO.Provider,{value:n,children:H.jsx(yce,{plot:e})})})}function bce(e,t){return t?t===Nt.HORIZONTAL||t==="horz"?`horizontal ${e}`:t===Nt.VERTICAL||t==="vert"?`vertical ${e}`:e:e}function xce(e){var h;const t=e.subplots,n=t.flat().length;if(n>1)return`This is a maidr figure containing ${n} subplots. Click to activate. Use arrow keys to navigate subplots and press 'ENTER'.`;const i=(h=t[0])==null?void 0:h[0],o=(i==null?void 0:i.layers.length)??0,s=i==null?void 0:i.layers[0],c=(s==null?void 0:s.type)??"chart",d=bce(c,s==null?void 0:s.orientation);return o>1?`This is a maidr plot containing ${o} layers, and this is layer 1 of ${o}: ${d} plot. Click to activate. Use Arrows to navigate data points. Toggle B for Braille, T for Text, S for Sonification, and R for Review mode.`:`This is a maidr plot of type: ${d}. Click to activate. Use Arrows to navigate data points. Toggle B for Braille, T for Text, S for Sonification, and R for Review mode.`}function Sce({data:e,children:t}){const n=G.useRef(null);n.current===null&&(n.current=X$());const i=n.current,{plotRef:o,figureRef:s,contextValue:c,onFocusIn:d,onFocusOut:h}=F$(e,i),y=G.useMemo(()=>xce(e),[e]);return H.jsx("article",{id:`maidr-article-${e.id}`,children:H.jsxs("figure",{ref:s,id:`maidr-figure-${e.id}`,onFocus:d,onBlur:h,children:[H.jsx("div",{ref:o,tabIndex:0,role:"img","aria-label":y,title:y,style:{width:"fit-content"},children:t}),c&&o.current&&H.jsx("div",{id:`react-container-${e.id}`,children:H.jsx(vce,{plot:o.current,store:i,contextValue:c})})]})})}document.readyState==="loading"?document.addEventListener(qu.DOM_LOADED,rI):rI();function nI(e,t,n){try{const i=JSON.parse(t);RV(e)&&_V(e,i),iI(i,e)}catch(i){console.error(`Error parsing ${n} attribute:`,i)}}function rI(){const e=document.querySelectorAll(me.MAIDR_JSON_SELECTOR);if(e.length>0){e.forEach(o=>{const s=o.getAttribute(me.MAIDR);s&&nI(o,s,"maidr")});return}const t=document.querySelectorAll(`[${me.MAIDR_DATA}]`);if(t.forEach(o=>{const s=o.getAttribute(me.MAIDR_DATA);s&&nI(o,s,"maidr-data")}),t.length!==0)return;const n=window.maidr;if(!n)return;const i=document.getElementById(n.id);if(!i){console.error("Plot not found for maidr:",n.id);return}iI(n,i)}function Ece({node:e}){const t=G.useCallback(n=>{var i;n?n.contains(e)||n.appendChild(e):(i=e.parentNode)==null||i.removeChild(e)},[e]);return H.jsx("div",{ref:t,style:{display:"contents"}})}function iI(e,t){const n=document.createElement(me.DIV);n.style.display="contents",t.parentNode.replaceChild(n,t),MV.createRoot(n,{identifierPrefix:e.id}).render(H.jsx(Sce,{data:e,children:H.jsx(Ece,{node:t})}))}}));
|
|
943
|
+
`)),w+=v.move(S),T(),w}function i(s,c,d){let h=s.value||"",y=1;for(t||y++;new RegExp("(^|[^$])"+"\\$".repeat(y)+"([^$]|$)").test(h);)y++;const v="$".repeat(y);/[^ \r\n]/.test(h)&&(/^[ \r\n]/.test(h)&&/[ \r\n]$/.test(h)||/^\$|\$$/.test(h))&&(h=" "+h+" ");let S=-1;for(;++S<d.unsafe.length;){const T=d.unsafe[S];if(!T.atBreak)continue;const w=d.compilePattern(T);let C;for(;C=w.exec(h);){let R=C.index;h.codePointAt(R)===10&&h.codePointAt(R-1)===13&&R--,h=h.slice(0,R)+" "+h.slice(C.index+1)}}return v+h+v}function o(){return"$"}}const Fue={tokenize:Yue,concrete:!0,name:"mathFlow"},Jz={tokenize:Xue,partial:!0};function Yue(e,t,n){const i=this,o=i.events[i.events.length-1],s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0;let c=0;return d;function d(z){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),h(z)}function h(z){return z===36?(e.consume(z),c++,h):c<2?n(z):(e.exit("mathFlowFenceSequence"),Nn(e,y,"whitespace")(z))}function y(z){return z===null||It(z)?S(z):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(z))}function v(z){return z===null||It(z)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),S(z)):z===36?n(z):(e.consume(z),v)}function S(z){return e.exit("mathFlowFence"),i.interrupt?t(z):e.attempt(Jz,T,_)(z)}function T(z){return e.attempt({tokenize:N,partial:!0},_,w)(z)}function w(z){return(s?Nn(e,C,"linePrefix",s+1):C)(z)}function C(z){return z===null?_(z):It(z)?e.attempt(Jz,T,_)(z):(e.enter("mathFlowValue"),R(z))}function R(z){return z===null||It(z)?(e.exit("mathFlowValue"),C(z)):(e.consume(z),R)}function _(z){return e.exit("mathFlow"),t(z)}function N(z,B,V){let L=0;return Nn(z,U,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function U(ce){return z.enter("mathFlowFence"),z.enter("mathFlowFenceSequence"),X(ce)}function X(ce){return ce===36?(L++,z.consume(ce),X):L<c?V(ce):(z.exit("mathFlowFenceSequence"),Nn(z,se,"whitespace")(ce))}function se(ce){return ce===null||It(ce)?(z.exit("mathFlowFence"),B(ce)):V(ce)}}}function Xue(e,t,n){const i=this;return o;function o(c){return c===null?t(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s)}function s(c){return i.parser.lazy[i.now().line]?n(c):t(c)}}function Wue(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:i,resolve:Que,previous:Kue,name:"mathText"};function i(o,s,c){let d=0,h,y;return v;function v(R){return o.enter("mathText"),o.enter("mathTextSequence"),S(R)}function S(R){return R===36?(o.consume(R),d++,S):d<2&&!n?c(R):(o.exit("mathTextSequence"),T(R))}function T(R){return R===null?c(R):R===36?(y=o.enter("mathTextSequence"),h=0,C(R)):R===32?(o.enter("space"),o.consume(R),o.exit("space"),T):It(R)?(o.enter("lineEnding"),o.consume(R),o.exit("lineEnding"),T):(o.enter("mathTextData"),w(R))}function w(R){return R===null||R===32||R===36||It(R)?(o.exit("mathTextData"),T(R)):(o.consume(R),w)}function C(R){return R===36?(o.consume(R),h++,C):h===d?(o.exit("mathTextSequence"),o.exit("mathText"),s(R)):(y.type="mathTextData",w(R))}}}function Que(e){let t=e.length-4,n=3,i,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[n][1].type="mathTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)o===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(o=i):(i===t||e[i][1].type==="lineEnding")&&(e[o][1].type="mathTextData",i!==o+2&&(e[o][1].end=e[i-1][1].end,e.splice(o+2,i-o-2),t-=i-o-2,i=o+2),o=void 0);return e}function Kue(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function Zue(e){return{flow:{36:Fue},text:{36:Wue(e)}}}const Jue={};function ece(e){const t=this,n=e||Jue,i=t.data(),o=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),c=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);o.push(Zue(n)),s.push(que()),c.push(Gue(n))}const tce=({text:e,isUser:t,onTypingUpdate:n})=>{const[i,o]=G.useState(""),[s,c]=G.useState(!0),d=G.useRef(null),h=au("settings"),y=G.useMemo(()=>{try{return window.self!==window.top}catch{return!0}},[]),v=G.useMemo(()=>y?{contain:"layout style",willChange:"auto",overflowWrap:"anywhere",wordBreak:"break-word"}:{},[y]);return G.useEffect(()=>{if(t||y){o(e),c(!1);return}let S=0;const w=setInterval(()=>{S<=e.length?(o(e.slice(0,S)),S++,n&&n()):(c(!1),clearInterval(w))},10);return()=>clearInterval(w)},[e,t,y]),G.useEffect(()=>{if(!s&&d.current){const S=d.current.textContent||"";d.current.setAttribute("aria-label",`AI message: ${S}`)}},[s]),H.jsxs(xi,{style:v,children:[H.jsx("div",{className:`chat-message-content ${t?"user":""}`,children:H.jsx(tae,{rehypePlugins:[Ale,[Ile,{attributes:{"*":["className","aria-label","aria-hidden","role","aria-busy","aria-live","aria-atomic"],a:["href","target"],img:["src","alt"],math:["display"],span:["style"],svg:["aria-hidden","role","xmlns","width","height","viewBox"],path:["d"]},tagNames:["p","br","b","i","em","strong","a","pre","code","ul","ol","li","blockquote","img","math","span","svg","path"]}]],remarkPlugins:[Hue,ece],components:{pre:({node:S,...T})=>H.jsx("pre",{...T,role:"text","aria-label":"Code block"}),a:({node:S,...T})=>H.jsx("a",{...T,"aria-label":`Link: ${T.children}`}),img:({node:S,...T})=>H.jsx("img",{...T,alt:T.alt||"Image in message"})},children:i})}),H.jsx("div",{className:"sr-only","aria-live":h.general.ariaMode,"aria-atomic":"true",children:s?"":e}),s&&!y&&H.jsx("span",{className:"typing-cursor","aria-hidden":"true",role:"presentation",children:"|"})]})};function j8(e){switch(e){case"OPENAI":return"OpenAI";case"ANTHROPIC_CLAUDE":return"Anthropic Claude";case"GOOGLE_GEMINI":return"Google Gemini";default:return"AI Assistant"}}const nce=({message:e,disabled:t,_onOpenSettings:n,onTypingUpdate:i})=>{const o=()=>e.isUser?H.jsx(DY,{}):H.jsx(nte,{model:e.model}),s=()=>{const c=e.isUser?"Your message":"AI Assistant message",d=e.isUser?"":` from ${j8(e.model)}`,h=!e.isUser&&e.status==="PENDING"?" (typing)":"";return`${c}${d}${h}`};return H.jsx(xi,{sx:{display:"flex",justifyContent:e.isUser?"flex-end":"flex-start",mb:2},role:"listitem",children:H.jsxs(xi,{sx:{display:"flex",alignItems:"flex-start",gap:1.5,maxWidth:"80%",flexDirection:e.isUser?"row-reverse":"row"},children:[H.jsx(WR,{className:`chat-avatar ${e.isUser?"user":""}`,"aria-hidden":"true",children:o()}),H.jsxs(xi,{className:`chat-bubble ${e.isUser?"user":"ai"}`,role:"article","aria-label":s(),children:[!e.isUser&&H.jsx(Hr,{className:"model-name",variant:"caption",fontWeight:"medium",color:"text.secondary",component:"h3",sx:{fontSize:"0.8rem",margin:0,marginBottom:.5},"aria-label":`Model: ${j8(e.model)}`,children:j8(e.model)}),H.jsx(tce,{text:e.text,isUser:e.isUser,onTypingUpdate:i}),e.isWelcomeMessage&&e.modelSelections&&H.jsx(rte,{enabledModels:e.modelSelections}),H.jsxs(xi,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mt:.5},children:[t&&e.id.startsWith("system-")&&H.jsx(mg,{variant:"text",onClick:n,"aria-label":"Open settings",style:{padding:0},children:"Open Settings"}),H.jsx(Hr,{className:"timestamp",variant:"caption",color:"text.secondary",component:"time",dateTime:new Date(e.timestamp).toISOString(),"aria-label":`Sent at ${new Date(e.timestamp).toLocaleTimeString()}`,children:new Date(e.timestamp).toLocaleTimeString()})]}),!e.isUser&&e.status==="PENDING"&&H.jsx(xi,{role:"status","aria-label":"AI is typing",children:H.jsx(Fv,{size:16})})]})]})})},eI=G.memo(({suggestion:e,onClick:t})=>{const n=tf();return H.jsx(qR,{label:e.text,onClick:t,role:"button","aria-label":`Suggestion: ${e.text}`,sx:{bgcolor:n.palette.primary.main,color:n.palette.primary.contrastText,"&:hover":{bgcolor:n.palette.primary.dark}}})});eI.displayName="SuggestionChip";const tI=G.memo(({suggestions:e,onSuggestionClick:t})=>{const n=tf();return!e||!e.length?null:H.jsx(xi,{role:"region","aria-label":"Suggested responses",sx:{p:2,display:"flex",flexWrap:"wrap",gap:1,borderTop:`1px solid ${n.palette.divider}`,bgcolor:n.palette.background.paper},children:e.map(i=>H.jsx(eI,{suggestion:i,onClick:()=>t(i)},i.id))})});tI.displayName="Suggestions";const rce=()=>{var B;const e=G.useId(),t=tf(),n=Yu("chat"),i=Yu("settings"),{messages:o,suggestions:s}=au("chat"),c=!n.canSend,[d,h]=G.useState(""),y=G.useRef(null),v=G.useRef(null),S=G.useRef(0),T=G.useRef(null),w=()=>{i.toggle()},C=(V=!1)=>{if(!v.current)return;const L=v.current;(L.scrollTop+L.clientHeight>=L.scrollHeight-100||V)&&requestAnimationFrame(()=>{L.scrollTo({top:L.scrollHeight,behavior:"smooth"})})};G.useEffect(()=>{const V=setTimeout(()=>{C(!0)},200);return()=>clearTimeout(V)},[o.length]),G.useEffect(()=>{setTimeout(()=>C(!0),200)},[]),G.useEffect(()=>{if(!v.current)return;const V=v.current;return T.current&&T.current.disconnect(),T.current=new MutationObserver(L=>{let U=!1;L.forEach(X=>{(X.type==="childList"||X.type==="characterData")&&V.scrollTop+V.clientHeight>=V.scrollHeight-100&&(U=!0)}),U&&requestAnimationFrame(()=>{V.scrollTo({top:V.scrollHeight,behavior:"auto"})})}),T.current.observe(V,{childList:!0,subtree:!0,characterData:!0}),()=>{T.current&&T.current.disconnect()}},[o.length]),G.useEffect(()=>{if(!v.current)return;const V=v.current,L=V.scrollHeight;L>S.current&&V.scrollTop+V.clientHeight>=S.current-100&&requestAnimationFrame(()=>{V.scrollTo({top:L,behavior:"auto"})}),S.current=L},[o]),G.useEffect(()=>{if(o.length>0){const V=o[o.length-1];if(V.status==="SUCCESS"||V.status==="FAILED"){const L=setTimeout(()=>{C(!0)},300);return()=>clearTimeout(L)}}},[o.length>0?(B=o[o.length-1])==null?void 0:B.status:""]);const R=()=>{n.toggle()},_=()=>{d.trim()&&(n.sendMessage(d),h(""),setTimeout(()=>C(!0),100))},N=V=>{h(V.text)},z=V=>{V.key==="Enter"&&!V.shiftKey&&(V.preventDefault(),_())};return H.jsxs(ob,{id:e,role:"dialog",open:!0,onClose:R,maxWidth:"md",fullWidth:!0,disablePortal:!0,sx:{"& .MuiDialog-paper":{height:"70vh",maxHeight:"90vh"}},children:[H.jsx(j7,{component:"h2",sx:{p:2},children:H.jsxs(zt,{container:!0,justifyContent:"space-between",alignItems:"center",children:[H.jsx(zt,{size:"auto",children:H.jsx(Hr,{variant:"h6",fontWeight:"bold",component:"h2",sx:{margin:0},"aria-label":"Chart Assistant - AI Chat Interface",children:"Chart Assistant"})}),H.jsx(zt,{size:"auto",children:H.jsx(lg,{onClick:R,"aria-label":"Close chat dialog",children:H.jsx(QM,{})})})]})}),H.jsx(lb,{dividers:!0,sx:{p:0,overflow:"hidden"},children:H.jsxs(zt,{container:!0,direction:"column",sx:{height:"100%"},children:[H.jsxs(zt,{ref:v,size:12,component:"section","aria-label":"Chat messages",sx:{flex:1,overflowY:"auto",p:2,bgcolor:t.palette.background.default,"&::-webkit-scrollbar":{width:"6px"},"&::-webkit-scrollbar-track":{background:t.palette.grey[100]},"&::-webkit-scrollbar-thumb":{background:t.palette.grey[400],borderRadius:"3px"}},children:[o.map(V=>H.jsx(nce,{message:V,disabled:c,_onOpenSettings:w,onTypingUpdate:()=>{if(v.current){const L=v.current;L.scrollTop+L.clientHeight>=L.scrollHeight-100&&requestAnimationFrame(()=>{L.scrollTo({top:L.scrollHeight,behavior:"auto"})})}}},V.id)),H.jsx("div",{ref:y})]}),H.jsx(tI,{suggestions:s,onSuggestionClick:N}),H.jsx(zt,{size:12,component:"section","aria-label":"Message input",sx:{p:2,borderTop:`1px solid ${t.palette.divider}`},children:H.jsxs(zt,{container:!0,spacing:1,alignItems:"center",children:[H.jsx(zt,{size:{xs:10},children:H.jsx(xl,{value:d,disabled:c,onChange:V=>h(V.target.value),onKeyDown:z,maxRows:4,placeholder:"What can I help you with?",variant:"outlined",size:"small",autoFocus:!0,fullWidth:!0,multiline:!0,"aria-label":"Type your message to the AI assistant"})}),H.jsx(zt,{size:{xs:2},container:!0,justifyContent:"flex-end",children:H.jsx(lg,{onClick:_,disabled:c,color:"primary","aria-label":"Send message to AI assistant",sx:{bgcolor:t.palette.primary.main,color:t.palette.primary.contrastText,"&:hover":{bgcolor:t.palette.primary.dark}},children:H.jsx(zY,{})})})]})})]})})]})};function ice(){const{commandExecutor:e}=oO(),t=G.useCallback(s=>{e.executeCommand(s)},[e]),n=G.useCallback(s=>{const c=e.onScopeChange(s);return()=>c.dispose()},[e]),i=G.useCallback(()=>e.getCurrentScope(),[e]),o=G.useSyncExternalStore(n,i);return{executeCommand:t,currentScope:o}}const ace=()=>{const e=Yu("commandPalette"),t=au("commandPalette"),{executeCommand:n}=ice(),[i]=G.useState(""),o=G.useRef(null),s=G.useRef(null),c=G.useRef(!1),d=G.useMemo(()=>{if(!t.search.trim())return t.commands;const S=t.search.toLowerCase();return t.commands.filter(T=>T.description.toLowerCase().includes(S)||T.key.toLowerCase().includes(S))},[t.commands,t.search]);G.useEffect(()=>{t.visible&&o.current&&setTimeout(()=>{o.current&&o.current.focus()},100)},[t.visible]),G.useEffect(()=>{t.visible&&o.current&&t.selectedIndex},[t.selectedIndex,t.visible]),G.useEffect(()=>{if(s.current&&t.selectedIndex>=0){const S=s.current,T=S.children[t.selectedIndex];if(T){T.focus();const w=S.getBoundingClientRect(),C=T.getBoundingClientRect();(C.top<w.top||C.bottom>w.bottom)&&T.scrollIntoView({behavior:"smooth",block:"nearest"})}}},[t.selectedIndex]);const h=G.useCallback(()=>{e.hide()},[e]),y=G.useCallback(S=>{n(S),h()},[n,h]),v=G.useCallback(S=>{e.updateSearch(S.target.value)},[e]);return t.visible?H.jsxs(ob,{open:t.visible,onClose:h,maxWidth:"md",fullWidth:!0,disablePortal:!0,role:"dialog","aria-modal":"true","aria-labelledby":"command-palette-title","aria-describedby":"command-palette-description",sx:{"& .MuiDialog-paper":{maxHeight:"80vh"}},children:[H.jsx(xi,{component:"h2",id:"command-palette-title",sx:{p:2,m:0},children:H.jsx(xi,{component:"span",sx:{fontSize:"1.25rem",fontWeight:600},children:"Command Palette"})}),H.jsxs(lb,{dividers:!0,sx:{p:2,overflow:"hidden"},children:[H.jsx(xi,{id:"command-palette-description",sx:{mb:2},children:H.jsx(Hr,{variant:"body2",color:"text.secondary",sx:{m:0},children:"Type to search commands, use arrow keys to navigate the list, and press Enter to execute a command"})}),H.jsx(xl,{ref:o,fullWidth:!0,placeholder:"Search commands...",value:t.search,onChange:v,sx:{mb:2},autoFocus:!0,inputProps:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":"command-list","aria-expanded":!0,"aria-activedescendant":t.selectedIndex>=0?`command-${t.selectedIndex}`:void 0,"aria-label":"Search commands","aria-describedby":"command-palette-description",onKeyDown:S=>{if(S.key==="Enter"){if(S.preventDefault(),S.stopPropagation(),d.length>0&&t.selectedIndex>=0){const T=d[t.selectedIndex];T&&y(T.commandKey)}}else S.key==="ArrowDown"?(S.preventDefault(),S.stopPropagation(),e.moveDown()):S.key==="ArrowUp"&&(S.preventDefault(),S.stopPropagation(),t.selectedIndex===0?e.moveToSearch():e.moveUp())}}}),H.jsx(w3,{ref:s,id:"command-list",role:"listbox","aria-label":"Available commands",sx:{flex:1,overflow:"auto",maxHeight:"60vh"},children:d.map((S,T)=>H.jsx(x_,{id:`command-${T}`,role:"option","aria-selected":T===t.selectedIndex,"aria-label":`${S.description} (${S.key})`,selected:T===t.selectedIndex,tabIndex:T===t.selectedIndex?0:-1,onClick:()=>{c.current||y(S.commandKey)},onKeyDown:w=>{w.key==="Enter"?(w.preventDefault(),w.stopPropagation(),c.current=!0,setTimeout(()=>{c.current=!1},100),y(S.commandKey)):w.key==="ArrowUp"?(w.preventDefault(),w.stopPropagation(),T===0?e.moveToSearch():e.moveUp()):w.key==="ArrowDown"&&(w.preventDefault(),w.stopPropagation(),e.moveDown())},sx:{cursor:"pointer","&:hover":{bgcolor:"action.hover"},"&.Mui-selected":{bgcolor:"action.selected"}},children:H.jsx(H7,{primary:S.description,secondary:`${S.key}`})},S.commandKey))}),i&&H.jsx("div",{"aria-live":"assertive",style:{position:"absolute",left:"-10000px",width:"1px",height:"1px",overflow:"hidden"},children:i})]})]}):null},oce=({label:e,shortcut:t})=>H.jsxs(zt,{container:!0,spacing:1,alignItems:"center",sx:{py:1},children:[H.jsx(zt,{size:{xs:12,sm:6,md:7},children:H.jsx(Hr,{variant:"body2",children:e})}),H.jsx(zt,{size:{xs:12,sm:6,md:5},children:H.jsx(Hr,{variant:"body2",fontWeight:300,children:t})})]}),lce=()=>{const e=G.useId(),t=Yu("help"),{items:n}=t.state,i=()=>{t.toggle()};return H.jsxs(ob,{id:e,role:"dialog",open:!0,onClose:i,maxWidth:"sm",fullWidth:!0,disablePortal:!0,children:[H.jsx(zt,{container:!0,component:j7,children:H.jsx(zt,{size:"grow",children:H.jsx(Hr,{variant:"h6",fontWeight:"bold",children:"Keyboard Shortcuts"})})}),H.jsx(lb,{children:H.jsx(zt,{container:!0,spacing:1,children:n.map((o,s)=>H.jsxs(nu.Fragment,{children:[H.jsx(zt,{size:12,children:H.jsx(oce,{label:o.description,shortcut:o.key})},s),s!==n.length-1&&H.jsx(zt,{size:12,children:H.jsx(gg,{})})]},s))})}),H.jsx(zt,{container:!0,component:B7,children:H.jsx(zt,{size:"grow",container:!0,spacing:1,justifyContent:"flex-end",sx:{px:2,py:1},children:H.jsx(zt,{size:"auto",children:H.jsx(mg,{variant:"contained",color:"primary",onClick:i,children:"Close"})})})})]})},sce=()=>{const e=G.useId(),{value:t}=au("review");return H.jsx("div",{id:e,children:H.jsx("input",{id:`${me.REVIEW_INPUT}-${e}`,defaultValue:t,onFocus:n=>n.target.setSelectionRange(0,0),size:50,type:"text",autoComplete:"off",autoFocus:!0})})};class S6{static async validateApiKey(t,n){try{switch(t){case"OPENAI":return await this.validateOpenAiKey(n);case"ANTHROPIC_CLAUDE":return await this.validateAnthropicKey(n);case"GOOGLE_GEMINI":return await this.validateGeminiKey(n);default:return{isValid:!1,error:"Invalid model key"}}}catch(i){return{isValid:!1,error:i instanceof Error?i.message:"Unknown error occurred"}}}static async validateOpenAiKey(t){try{return(await fetch(this.OPENAI_API_URL,{method:"GET",headers:{Authorization:`Bearer ${t}`,"Content-Type":"application/json"}})).ok?{isValid:!0}:{isValid:!1,error:"Invalid API key"}}catch{return{isValid:!1,error:"Invalid API key"}}}static async validateAnthropicKey(t){try{return(await fetch(this.ANTHROPIC_API_URL,{method:"POST",headers:{"x-api-key":t,"anthropic-version":"2023-06-01","content-type":"application/json"},body:JSON.stringify({model:"claude-3-sonnet-20240229",max_tokens:1,messages:[{role:"user",content:"test"}]})}).catch(()=>({ok:!1}))).ok?{isValid:!0}:{isValid:!1,error:"Invalid API key"}}catch{return{isValid:!1,error:"Invalid API key"}}}static async validateGeminiKey(t){try{return(await fetch(`${this.GEMINI_API_URL}?key=${t}`,{method:"GET"}).catch(()=>({ok:!1}))).ok?{isValid:!0}:{isValid:!1,error:"Invalid API key"}}catch{return{isValid:!1,error:"Invalid API key"}}}}P(S6,"OPENAI_API_URL","https://api.openai.com/v1/models"),P(S6,"ANTHROPIC_API_URL","https://api.anthropic.com/v1/messages"),P(S6,"GEMINI_API_URL","https://generativelanguage.googleapis.com/v1beta/models");const E6=10;function uce(e,t){const n=Tv[e],i=n.options;return!t||!i.includes(t)?n.default:t}const Fo=({label:e,input:t,alignLabel:n="center"})=>H.jsxs(zt,{container:!0,spacing:1,alignItems:n,className:"settings-grid-container",sx:{py:1},children:[H.jsx(zt,{size:{xs:12,sm:6,md:4},sx:n==="flex-start"?{py:1}:void 0,children:H.jsx(Hr,{variant:"body2",fontWeight:"normal",children:e})}),H.jsx(zt,{size:{xs:12,sm:6,md:8},children:t})]}),cce=({modelKey:e,modelSettings:t,onToggle:n,onChangeKey:i,onChangeVersion:o})=>{const s=uce(e,t.version),[c,d]=G.useState(!1),[h,y]=G.useState(null),v=()=>t.enabled?c?"Validating API key...":h===!1?`${t.name} API key is invalid`:h===!0?`${t.name} API key is valid`:"":"",S=async w=>{if(!t.enabled||!w.trim()){y(null);return}d(!0);try{const C=await S6.validateApiKey(e,w);y(C.isValid)}catch{y(!1)}finally{d(!1)}};G.useEffect(()=>{const w=setTimeout(()=>{S(t.apiKey)},500);return()=>clearTimeout(w)},[t.apiKey,t.enabled,e]);const T=()=>{const w=Tv[e];return w.options.map(C=>{const R=w.labels[C],_=t.version===C;return H.jsxs(Ah,{value:C,className:`llm-model-setting-row-menu-item ${_?"selected":""}`,children:[_&&H.jsx(WM,{className:"llm-model-setting-row-check-icon"}),R]},C)})};return H.jsx(Fo,{label:t.name,input:H.jsxs(zt,{container:!0,spacing:1,alignItems:"center",children:[H.jsx(zt,{children:H.jsx(nD,{checked:t.enabled,onChange:w=>n(e,w.target.checked),slotProps:{input:{"aria-label":`Enable ${t.name}`}}})}),H.jsx(zt,{size:7,children:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{disabled:!t.enabled,fullWidth:!0,size:"small",value:t.apiKey,onChange:w=>i(e,w.target.value),placeholder:`Enter ${t.name} API Key`,type:"password",error:h===!1,helperText:v(),slotProps:{input:{"aria-label":`${t.name} API Key`,"aria-describedby":`${e}-status`,endAdornment:H.jsx(y_,{position:"end",children:H.jsx("div",{id:`${e}-status`,role:"status","aria-live":"polite","aria-label":c?"Validating API key":h===!0?"API key is valid":h===!1?"API key is invalid":"",children:c?H.jsx(Fv,{size:20}):h===!0?H.jsx(WM,{color:"success"}):h===!1?H.jsx(NY,{color:"error"}):null})})}}})})}),H.jsx(zt,{size:8,children:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xg,{value:s,onChange:w=>{const C=w.target.value;o(e,C)},disabled:!t.enabled||!t.apiKey.trim()||!h,fullWidth:!0,size:"small",slotProps:{input:{"aria-label":`${t.name} Model Version`}},MenuProps:{disablePortal:!0,PaperProps:{className:"settings-menu-paper"}},children:T()})})})]})})},fce=()=>{const e=G.useId(),t=Yu("settings"),n=Yu("chat"),{general:i,llm:o}=t.state,[s,c]=G.useState(i),[d,h]=G.useState(o);G.useEffect(()=>{t.load()},[t]),G.useEffect(()=>{c(i),h(o)},[i,o]);const y=(z,B)=>{c(V=>({...V,[z]:B}))},v=(z,B)=>{h(V=>({...V,[z]:B}))},S=(z,B,V)=>{h(L=>({...L,models:{...L.models,[z]:{...L.models[z],[B]:B==="apiKey"&&typeof V=="string"?V.trim():V}}}))},T=()=>{t.reset();const{general:z,llm:B}=t.state;c(z),h(B)},w=()=>{t.toggle()},C=()=>{t.saveAndClose({general:s,llm:d}),n.refreshInitialMessage()},R=G.useCallback(z=>{z.stopPropagation()},[]),_=G.useCallback(z=>{z.stopPropagation(),v("expertiseLevel",z.target.value)},[v]),N=d.expertiseLevel!=="custom"||d.customInstruction.length>=E6;return H.jsxs(ob,{id:e,role:"dialog","aria-label":"Settings",open:!0,maxWidth:"sm",fullWidth:!0,disablePortal:!0,disableEnforceFocus:!0,onClick:z=>z.stopPropagation(),className:"settings-dialog",children:[H.jsxs(lb,{className:"settings-dialog-content",children:[H.jsx(zt,{size:"grow",children:H.jsx(Hr,{variant:"h6",fontWeight:"bold",gutterBottom:!0,children:"General Settings"})}),H.jsxs(zt,{container:!0,spacing:.5,children:[H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"Volume",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(J_,{value:s.volume,onChange:(z,B)=>y("volume",Number(B)),min:0,max:100,step:1,valueLabelDisplay:"auto",slotProps:{input:{"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Volume","aria-labelledby":"volume-label"}},className:"settings-slider-value-label"})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"Outline Color",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"color",size:"small",value:s.highlightColor,onChange:z=>y("highlightColor",z.target.value),slotProps:{input:{inputProps:{"aria-label":"Highlight Color"}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"High Contrast Mode",input:H.jsx(Hi,{children:H.jsx(Th,{control:H.jsx(t_,{checked:s.highContrastMode,onChange:z=>y("highContrastMode",z.target.checked),size:"small"}),label:s.highContrastMode?"On":"Off",slotProps:{typography:{variant:"body2"}},"aria-label":"High Contrast Mode"})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"High Contrast Levels",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"number",size:"small",value:s.highContrastLevels,onChange:z=>y("highContrastLevels",Number(z.target.value)),slotProps:{input:{inputProps:{"aria-label":"High Contrast Levels",min:2,max:20}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"High Contrast Light Color",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"color",size:"small",value:s.highContrastLightColor,onChange:z=>y("highContrastLightColor",z.target.value),slotProps:{input:{inputProps:{"aria-label":"High Contrast Light Color"}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"High Contrast Dark Color",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"color",size:"small",value:s.highContrastDarkColor,onChange:z=>y("highContrastDarkColor",z.target.value),slotProps:{input:{inputProps:{"aria-label":"High Contrast Dark Color"}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"Braille Display Size",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"number",size:"small",value:s.brailleDisplaySize,onChange:z=>y("brailleDisplaySize",Number(z.target.value)),slotProps:{input:{inputProps:{"aria-label":"Braille Display Size"}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"Min Frequency (Hz)",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"number",size:"small",value:s.minFrequency,onChange:z=>y("minFrequency",Number(z.target.value)),slotProps:{input:{inputProps:{"aria-label":"Minimum Frequency"}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"Max Frequency (Hz)",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"number",size:"small",value:s.maxFrequency,onChange:z=>y("maxFrequency",Number(z.target.value)),slotProps:{input:{inputProps:{"aria-label":"Maximum Frequency"}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"Autoplay Duration (ms)",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"number",size:"small",value:s.autoplayDuration,onChange:z=>y("autoplayDuration",Number(z.target.value)),slotProps:{input:{inputProps:{"aria-label":"Autoplay Duration"}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"ARIA Mode",input:H.jsx(Hi,{children:H.jsxs(X7,{row:!0,value:s.ariaMode,onChange:z=>y("ariaMode",z.target.value),"aria-label":"ARIA Mode",children:[H.jsx(Th,{value:"assertive",control:H.jsx(bg,{size:"small"}),label:"Assertive"}),H.jsx(Th,{value:"polite",control:H.jsx(bg,{size:"small"}),label:"Polite"})]})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"Hover Mode",input:H.jsx(Hi,{children:H.jsxs(X7,{row:!0,value:s.hoverMode,onChange:z=>y("hoverMode",z.target.value),"aria-label":"Hover Mode",children:[H.jsx(Th,{value:"off",control:H.jsx(bg,{size:"small"}),label:"Off"}),H.jsx(Th,{value:"pointermove",control:H.jsx(bg,{size:"small"}),label:"Hover"}),H.jsx(Th,{value:"click",control:H.jsx(bg,{size:"small"}),label:"Click"})]})})})})]}),H.jsx(zt,{size:12,children:H.jsx(gg,{className:"settings-divider"})}),H.jsxs(zt,{container:!0,spacing:.5,className:"settings-section",children:[H.jsx(zt,{size:12,children:H.jsx(Hr,{variant:"h6",fontWeight:"bold",gutterBottom:!0,className:"settings-section-title",children:"LLM Settings"})}),Object.keys(d.models).map(z=>{const B=d.models[z];return H.jsx(zt,{size:12,className:"settings-model-row",children:H.jsx(cce,{modelKey:z,modelSettings:B,onToggle:(V,L)=>S(V,"enabled",L),onChangeKey:(V,L)=>S(V,"apiKey",L),onChangeVersion:(V,L)=>S(V,"version",L)})},z)}),H.jsx(zt,{size:12,className:"settings-row",children:H.jsx(Hi,{fullWidth:!0,size:"small",className:"settings-model-select",children:H.jsx(Fo,{label:"Expertise Level",input:H.jsxs(xg,{value:d.expertiseLevel,onChange:_,onClick:R,slotProps:{input:{"aria-label":"Expertise Level"}},MenuProps:{disablePortal:!0,PaperProps:{className:"llm-model-setting-select-menu"}},children:[H.jsx(Ah,{value:"basic",children:"Basic"}),H.jsx(Ah,{value:"intermediate",children:"Intermediate"}),H.jsx(Ah,{value:"advanced",children:"Advanced"}),H.jsx(Ah,{value:"custom",children:"Custom"})]})})})}),d.expertiseLevel==="custom"&&H.jsx(zt,{size:12,children:H.jsxs(zt,{container:!0,spacing:1,alignItems:"flex-start",sx:{py:1},children:[H.jsx(zt,{size:12,sx:{py:1},children:H.jsx(Hr,{variant:"body2",fontWeight:"normal",children:"Custom Instructions"})}),H.jsx(zt,{size:12,children:H.jsx(Hi,{fullWidth:!0,children:H.jsx(_7,{minRows:3,maxRows:6,value:d.customInstruction,onChange:z=>v("customInstruction",z.target.value),style:{width:"100%",padding:"8px",border:"1px solid #ccc",borderRadius:"4px"},placeholder:"Enter custom instruction...","aria-label":"Custom Instructions"})})}),d.customInstruction.length<E6&&H.jsx(zt,{size:12,sx:{mt:1},children:H.jsxs(bR,{severity:"warning",children:["Custom instructions must be at least"," ",E6," ","characters long"]})})]})})]}),H.jsx(zt,{size:12,children:H.jsx(gg,{className:"settings-divider"})})]}),H.jsxs(zt,{container:!0,component:B7,alignItems:"center",className:"settings-footer",children:[H.jsx(zt,{size:"auto",className:"settings-grid-padding",children:H.jsx(mg,{variant:"text",color:"inherit",onClick:T,"aria-label":"Reset Settings",children:"Reset"})}),H.jsxs(zt,{size:"grow",container:!0,spacing:1,justifyContent:"flex-end",className:"settings-footer-actions",children:[H.jsx(zt,{size:"auto",children:H.jsx(mg,{variant:"outlined",color:"inherit",onClick:w,"aria-label":"Close Settings with no changes",children:"Close"})}),H.jsx(zt,{size:"auto",children:H.jsx(mg,{variant:"contained",color:"primary",onClick:C,disabled:!N,title:N?"":`Custom instructions must be at least ${E6} characters long`,"aria-label":"Save & Close Settings",children:"Save & Close"})})]})]})]})},dce={position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},hce=()=>{const{enabled:e,announce:t,value:n,revision:i,message:o}=au("text"),{rotor_value:s}=au("rotor"),c=au("settings"),d=e&&n||"",h=typeof o=="string"?o:"",y=h.trim().length>0?h:t&&d?d:"",v=h.trim().length>0?h:d;return H.jsxs("div",{children:[H.jsx("div",{id:me.TEXT_CONTAINER,children:v&&v.trim().length>0&&H.jsx("p",{children:v})}),y&&H.jsx("div",{role:"alert",style:dce,children:y},i),H.jsx("div",{id:me.ROTOR_AREA,"aria-live":c.general.ariaMode,children:s})]})},pce=({plot:e})=>{const{tooltip:t}=au("display"),[n,i]=G.useState(!1),o=G.useRef({x:0,y:0}),s=G.useRef(null),c=G.useMemo(()=>({getBoundingClientRect:()=>new DOMRect(o.current.x,o.current.y,0,0)}),[]);return G.useEffect(()=>{if(!e)return;const d=v=>{var S,T;o.current={x:v.clientX,y:v.clientY},(T=(S=s.current)==null?void 0:S.update)==null||T.call(S),i(!0)},h=()=>i(!0),y=()=>i(!1);return e.addEventListener(qu.MOUSE_MOVE,d),e.addEventListener(qu.MOUSE_ENTER,h),e.addEventListener(qu.MOUSE_LEAVE,y),()=>{e.removeEventListener(qu.MOUSE_MOVE,d),e.removeEventListener(qu.MOUSE_ENTER,h),e.removeEventListener(qu.MOUSE_LEAVE,y)}},[e]),H.jsx(tD,{title:t.value,open:n,placement:"top",arrow:!0,slotProps:{popper:{popperRef:s,anchorEl:c}},children:H.jsx(xi,{sx:{display:"none"},children:"TooltipAnchor"})})};function mce(e){return{p:1.5,border:e?2:1,borderColor:e?"primary.main":"divider",borderRadius:1,mb:.5,cursor:"pointer",bgcolor:e?"action.selected":"transparent",transition:"all 0.2s ease","&:hover":{bgcolor:"action.hover"},"&:focus":{outline:"none",borderColor:"primary.main",bgcolor:"action.selected"}}}const gce=()=>{const e=Yu("goToExtrema"),t=au("goToExtrema"),n=G.useRef(null),i=G.useRef(null),o=G.useRef(null),s=G.useRef(null),[c,d]=G.useState(""),[h,y]=G.useState(!1),[v,S]=G.useState([]),[T,w]=G.useState(-1),C=G.useRef(null),R=G.useRef(null),_=G.useRef(null),N=G.useRef(null);G.useEffect(()=>{o.current&&o.current.focus()},[]);const z=G.useMemo(()=>e.getAvailableXValues(),[e]);G.useEffect(()=>{if(c.trim()==="")S(z);else{const Q=c.toLowerCase();S(z.filter(oe=>String(oe).toLowerCase().includes(Q)))}h&&w(Q=>Q<0?0:Math.min(Q,Math.max(0,z.length-1)))},[c,z,h]);const B=T>=0&&v[T]!==void 0?String(v[T]):void 0,V={input:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":"x-value-listbox","aria-expanded":h,"aria-activedescendant":T>=0?`option-${T}`:void 0,"aria-valuetext":B,"aria-label":"Search and select X value",endAdornment:H.jsx(lg,{"aria-label":h?"Close dropdown":"Open dropdown",size:"small",onClick:Q=>{Q.stopPropagation(),y(!h)},children:H.jsx(kY,{})})}};G.useEffect(()=>{if(N.current){const Q=B??"";N.current.textContent=Q}},[T,B]),G.useEffect(()=>{if(n.current&&i.current){const Q=i.current,oe=n.current;oe.focus();const Z=Q.getBoundingClientRect(),ae=oe.getBoundingClientRect();ae.bottom>Z.bottom?oe.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"}):ae.top<Z.top&&oe.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}},[t.selectedIndex]),G.useEffect(()=>{if(h&&T>=0&&_.current){const Q=_.current.querySelector(`#option-${T}`);Q&&Q.scrollIntoView({block:"nearest"})}},[T,h]);const L=Q=>{var Z;const oe=(Z=e.activeContext)==null?void 0:Z.active;oe&&U(oe)&&oe.navigateToExtrema(Q),e.hide()};function U(Q){return Q!==null&&typeof Q=="object"&&"navigateToExtrema"in Q&&typeof Q.navigateToExtrema=="function"}const X=()=>{N.current&&(N.current.textContent=""),e.hide()},se=Q=>{var Z;const oe=(Z=e.activeContext)==null?void 0:Z.active;oe&&ce(oe)&&(oe.moveToXValue(Q),y(!1),w(-1),d(""),e.hide())};function ce(Q){return Q!==null&&typeof Q=="object"&&"moveToXValue"in Q&&typeof Q.moveToXValue=="function"}const ie=()=>{R.current?R.current.focus():C.current&&C.current.focus()},ue=Q=>{N.current&&(N.current.textContent=Q)},$=Q=>{if(Q.key==="ArrowDown")if(Q.preventDefault(),Q.stopPropagation(),t.selectedIndex===t.targets.length-1)ie(),y(!0),w(0),ue("Moved to search. Type to filter X values.");else{e.moveDown();const oe=t.targets[t.selectedIndex+1];ue(`Selected: ${oe.label}`)}else if(Q.key==="ArrowUp")if(Q.preventDefault(),Q.stopPropagation(),t.selectedIndex===0)ue("At first extrema option");else{e.moveUp();const oe=t.targets[t.selectedIndex-1];ue(`Selected: ${oe.label}`)}else if(Q.key==="Enter"&&(Q.preventDefault(),Q.stopPropagation(),t.selectedIndex<t.targets.length)){const oe=t.targets[t.selectedIndex];oe&&L(oe)}},le=Q=>{if(Q.key==="Enter")Q.preventDefault(),Q.stopPropagation(),T>=0&&v[T]!==void 0&&se(v[T]);else if(Q.key==="ArrowDown")Q.preventDefault(),Q.stopPropagation(),T===v.length-1?ue("At last search result"):(w(oe=>Math.min(oe+1,v.length-1)),v[T+1]&&ue(`Selected: ${v[T+1]}`));else if(Q.key==="ArrowUp")if(Q.preventDefault(),Q.stopPropagation(),T===0){y(!1),w(-1);const oe=t.targets[t.selectedIndex];ue(`Returning to extrema options: ${oe.label}`),n.current&&n.current.focus()}else w(oe=>Math.max(0,oe-1)),v[T-1]&&ue(`Selected: ${v[T-1]}`)};return t.visible&&t.targets.length>0?H.jsxs(H.Fragment,{children:[H.jsx(xi,{sx:{position:"fixed",top:0,left:0,right:0,bottom:0,bgcolor:"rgba(0, 0, 0, 0.5)",zIndex:9999},onClick:X,"aria-hidden":"true"}),H.jsxs(xi,{ref:o,role:"dialog","aria-modal":"true","aria-labelledby":"go-to-extrema-title","aria-describedby":"go-to-extrema-description",tabIndex:0,sx:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",bgcolor:"background.paper",border:1,borderColor:"divider",borderRadius:2,p:3,boxShadow:3,zIndex:1e4,minWidth:300,maxHeight:"80vh",outline:"none"},children:[H.jsxs(xi,{id:"go-to-extrema-title",sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[H.jsx(Hr,{variant:"h6",component:"h3",sx:{m:0,fontWeight:600},children:"Go To"}),H.jsx(lg,{onClick:X,"aria-label":"Close dialog",size:"small",children:H.jsx(QM,{})})]}),H.jsx(xi,{id:"go-to-extrema-description",sx:{mb:2},children:H.jsx(Hr,{variant:"body2",color:"text.secondary",sx:{m:0},children:t.description||"Navigate to points of interest"})}),H.jsxs(xi,{ref:i,role:"listbox","aria-label":"Navigation targets",onKeyDown:$,sx:{maxHeight:300,overflowY:"auto",border:1,borderColor:"divider",borderRadius:1,p:1},children:[t.targets.map((Q,oe)=>{const Z=Q.type==="intersection";let ae;if(Z&&Q.display)ae=`Intersection with ${Q.display.otherLines} at ${Q.display.coords}`;else if(Z)ae=Q.label;else{const de=Q.label.split(" at ");ae=de[1]?`${de[0]} Value: ${Q.value.toFixed(2)} at ${de[1]}`:`${de[0]} Value: ${Q.value.toFixed(2)}`}return H.jsx(xi,{ref:oe===t.selectedIndex?n:null,id:`extrema-target-${oe}`,onClick:()=>L(Q),role:"option","aria-selected":t.selectedIndex===oe,"aria-label":ae,tabIndex:0,sx:mce(t.selectedIndex===oe),children:H.jsx(Hr,{variant:"body2",sx:{fontWeight:600},children:ae})},`target-${oe}-${Q.type}-${Q.label}`)}),z.length>0&&H.jsxs(xi,{ref:s,id:"search-input-option",role:"option","aria-selected":t.selectedIndex===t.targets.length,"aria-label":"Search and navigate to specific X value","aria-expanded":h,"aria-controls":"x-value-listbox",tabIndex:0,sx:{p:1.5,borderRadius:1,mb:.5,border:t.selectedIndex===t.targets.length?2:1,borderColor:t.selectedIndex===t.targets.length?"primary.main":"divider",bgcolor:t.selectedIndex===t.targets.length?"action.selected":"transparent",position:"relative"},onClick:()=>{ie(),y(!0),w(0)},children:[H.jsx(xl,{ref:C,inputRef:R,label:"Search X values",placeholder:`Type to search ${z.length} values`,fullWidth:!0,variant:"outlined",size:"small",value:c,onChange:Q=>{d(Q.target.value),y(!0),T<0&&w(0)},onFocus:()=>{y(!0),T<0&&w(0)},onKeyDown:le,slotProps:V}),h&&v.length>0&&H.jsx(w3,{ref:_,id:"x-value-listbox",role:"listbox","aria-label":"Available X values","aria-hidden":!h,sx:{position:"absolute",top:"100%",left:0,right:0,bgcolor:"background.paper",border:1,borderColor:"divider",borderRadius:1,maxHeight:180,overflowY:"auto",zIndex:2,boxShadow:2,mt:.5},children:v.map((Q,oe)=>H.jsx(S_,{id:`option-${oe}`,role:"option","aria-selected":T===oe,"aria-label":String(Q),tabIndex:0,onClick:()=>se(Q),onKeyDown:Z=>{Z.key==="Enter"?(Z.preventDefault(),Z.stopPropagation(),se(Q)):Z.key==="ArrowDown"?(Z.preventDefault(),Z.stopPropagation(),w(ae=>Math.min(ae+1,v.length-1))):Z.key==="ArrowUp"&&(Z.preventDefault(),Z.stopPropagation(),w(ae=>Math.max(ae-1,0)))},sx:{cursor:"pointer",py:1,px:2,bgcolor:T===oe?"action.selected":"transparent","&:hover":{bgcolor:"action.hover"}},children:H.jsx(H7,{primary:String(Q)})},`${Q}-${oe}`))}),H.jsx("div",{ref:N,id:"sr-active-option-announcer","aria-live":"assertive","aria-atomic":"true",style:{position:"absolute",left:"-10000px",width:"1px",height:"1px",overflow:"hidden"}})]})]})]})]}):null},yce=({plot:e})=>{const{focus:t,tooltip:n}=au("display"),i=o=>{switch(o){case"BRAILLE":return H.jsx(gH,{});case"CHAT":return H.jsx(rce,{});case"COMMAND_PALETTE":return H.jsx(ace,{});case"GO_TO_EXTREMA":return H.jsx(gce,{});case"HELP":return H.jsx(lce,{});case"REVIEW":return H.jsx(sce,{});case"SETTINGS":return H.jsx(fce,{});default:return null}};return H.jsxs(H.Fragment,{children:[n.visible&&H.jsx(pce,{plot:e}),H.jsx(hce,{}),i(t)]})};function vce({plot:e,store:t,contextValue:n}){return H.jsx(cH,{store:t,children:H.jsx(aO.Provider,{value:n,children:H.jsx(yce,{plot:e})})})}function bce(e,t){return t?t===_t.HORIZONTAL||t==="horz"?`horizontal ${e}`:t===_t.VERTICAL||t==="vert"?`vertical ${e}`:e:e}function xce(e){var v;const t=e.subplots,n=t.flat().length;if(n>1)return`This is a maidr figure containing ${n} subplots. Click to activate. Use arrow keys to navigate subplots and press 'ENTER'.`;const i=(v=t[0])==null?void 0:v[0],o=(i==null?void 0:i.layers.length)??0,s=i==null?void 0:i.layers[0],c=(s==null?void 0:s.type)??"chart";let d=c,h="";if(c===wn.LINE&&Array.isArray(s==null?void 0:s.data)){const S=s.data.length;S>1?(d="multiline",h=` with ${S} groups`):d="single line"}const y=bce(d,s==null?void 0:s.orientation);return o>1?`This is a maidr plot containing ${o} layers, and this is layer 1 of ${o}: ${y} plot. Click to activate. Use Arrows to navigate data points. Toggle B for Braille, T for Text, S for Sonification, and R for Review mode.`:`This is a maidr plot of type: ${y}${h}. Click to activate. Use Arrows to navigate data points. Toggle B for Braille, T for Text, S for Sonification, and R for Review mode.`}function Sce({data:e,children:t}){const n=G.useRef(null);n.current===null&&(n.current=X$());const i=n.current,{plotRef:o,figureRef:s,contextValue:c,onFocusIn:d,onFocusOut:h}=F$(e,i),y=G.useMemo(()=>xce(e),[e]);return H.jsx("article",{id:`maidr-article-${e.id}`,children:H.jsxs("figure",{ref:s,id:`maidr-figure-${e.id}`,onFocus:d,onBlur:h,children:[H.jsx("div",{ref:o,tabIndex:0,role:"img","aria-label":y,title:y,style:{width:"fit-content"},children:t}),c&&o.current&&H.jsx("div",{id:`react-container-${e.id}`,children:H.jsx(vce,{plot:o.current,store:i,contextValue:c})})]})})}document.readyState==="loading"?document.addEventListener(qu.DOM_LOADED,rI):rI();function nI(e,t,n){try{const i=JSON.parse(t);RV(e)&&_V(e,i),iI(i,e)}catch(i){console.error(`Error parsing ${n} attribute:`,i)}}function rI(){const e=document.querySelectorAll(me.MAIDR_JSON_SELECTOR);if(e.length>0){e.forEach(o=>{const s=o.getAttribute(me.MAIDR);s&&nI(o,s,"maidr")});return}const t=document.querySelectorAll(`[${me.MAIDR_DATA}]`);if(t.forEach(o=>{const s=o.getAttribute(me.MAIDR_DATA);s&&nI(o,s,"maidr-data")}),t.length!==0)return;const n=window.maidr;if(!n)return;const i=document.getElementById(n.id);if(!i){console.error("Plot not found for maidr:",n.id);return}iI(n,i)}function Ece({node:e}){const t=G.useCallback(n=>{var i;n?n.contains(e)||n.appendChild(e):(i=e.parentNode)==null||i.removeChild(e)},[e]);return H.jsx("div",{ref:t,style:{display:"contents"}})}function iI(e,t){const n=document.createElement(me.DIV);n.style.display="contents",t.parentNode.replaceChild(n,t),MV.createRoot(n,{identifierPrefix:e.id}).render(H.jsx(Sce,{data:e,children:H.jsx(Ece,{node:t})}))}}));
|
|
944
944
|
//# sourceMappingURL=maidr.js.map
|