@seriousgaming/sdk-tools 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +3216 -2538
- package/dist/client.js +693 -161
- package/dist/core/session-host.d.ts +4 -2
- package/dist/core/settings-locks.d.ts +27 -2
- package/dist/dev/console/assets/{index-DEV8N0na.js → index-BvB-LFQZ.js} +10 -10
- package/dist/dev/console/index.html +1 -1
- package/dist/dev/routes.d.ts +4 -0
- package/dist/dev/view/batch.d.ts +7 -1
- package/dist/docs/api/index.md +1 -1
- package/dist/docs/api/sdk-tools-client.md +1 -0
- package/dist/docs/api/sdk.md +79 -2
- package/dist/docs/changelog.md +25 -0
- package/dist/docs/concepts/terminology.md +1 -1
- package/dist/docs/guides/capabilities.md +2 -0
- package/dist/docs/guides/endpoints.md +2 -2
- package/dist/docs/guides/engine-testing.md +1 -1
- package/dist/docs/guides/file-handling.md +113 -21
- package/dist/docs/guides/llm-integration.md +1 -1
- package/dist/docs/guides/scenario-editor.md +1 -1
- package/dist/docs/guides/scenarios.md +9 -1
- package/dist/docs/guides/settings.md +62 -2
- package/dist/docs/guides/validators.md +62 -4
- package/dist/docs/recipes/upload-and-display-files.md +7 -7
- package/dist/docs/recipes/validate-scenarios.md +4 -1
- package/dist/execution/endpoint-runner.d.ts +6 -0
- package/dist/execution/logic-calls.d.ts +7 -2
- package/dist/execution/scenario-gates.d.ts +21 -1
- package/dist/guide/settings.d.ts +1 -1
- package/dist/host.js +64 -2
- package/dist/runtime/manifest-version.d.ts +1 -1
- package/dist/runtime.js +7 -2
- package/dist/storage/asset-resolver.d.ts +24 -1
- package/dist/storage/blob-store.d.ts +7 -0
- package/dist/utils/local-refs.d.ts +40 -0
- package/dist/utils/schema-members.d.ts +19 -0
- package/package.json +3 -3
|
@@ -45,7 +45,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
45
45
|
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Oe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?De(n):``}function Ae(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De(`Lazy`);case 13:return e.child!==t&&t!==null?De(`Suspense Fallback`):De(`Suspense`);case 19:return De(`SuspenseList`);case 0:case 15:return ke(e.type,!1);case 11:return ke(e.type.render,!1);case 1:return ke(e.type,!0);case 31:return De(`Activity`);case 30:return De(`ViewTransition`);default:return``}}function je(e){try{var t=``,n=null;do t+=Ae(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
46
46
|
Error generating stack: `+e.message+`
|
|
47
47
|
`+e.stack}}var Me=Object.prototype.hasOwnProperty,Ne=t.unstable_scheduleCallback,Pe=t.unstable_cancelCallback,Fe=t.unstable_shouldYield,Ie=t.unstable_requestPaint,Le=t.unstable_now,Re=t.unstable_getCurrentPriorityLevel,ze=t.unstable_ImmediatePriority,Be=t.unstable_UserBlockingPriority,Ve=t.unstable_NormalPriority,He=t.unstable_LowPriority,Ue=t.unstable_IdlePriority,We=t.log,Ge=t.unstable_setDisableYieldValue,Ke=null,qe=null;function Je(e){if(typeof We==`function`&&Ge(e),qe&&typeof qe.setStrictMode==`function`)try{qe.setStrictMode(Ke,e)}catch{}}var Ye=Math.clz32?Math.clz32:Qe,Xe=Math.log,Ze=Math.LN2;function Qe(e){return e>>>=0,e===0?32:31-(Xe(e)/Ze|0)|0}var $e=256,et=262144,tt=4194304;function nt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function rt(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=nt(n))):i=nt(o):i=nt(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=nt(n))):i=nt(o)):i=nt(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function it(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function at(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-Ye(n),i=1<<r;t|=e[r],n&=~i}return t}function ot(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 st(){var e=tt;return tt<<=1,!(tt&62914560)&&(tt=4194304),e}function ct(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function lt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ut(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ye(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&dt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function dt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ye(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function ft(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ye(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function pt(e,t){var n=t&-t;return n=n&42?1:mt(n),(n&(e.suspendedLanes|t))===0?n:0}function mt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ht(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function gt(){var e=R.p;return e===0?(e=window.event,e===void 0?32:Th(e.type)):e}function _t(e,t){var n=R.p;try{return R.p=e,t()}finally{R.p=n}}var vt=Math.random().toString(36).slice(2),yt=`__reactFiber$`+vt,bt=`__reactProps$`+vt,xt=`__reactContainer$`+vt,St=`__reactEvents$`+vt,Ct=`__reactListeners$`+vt,wt=`__reactHandles$`+vt,Tt=`__reactResources$`+vt,Et=`__reactMarker$`+vt,Dt=`__reactLoad$`+vt;function Ot(e){delete e[yt],delete e[bt],delete e[Ct],delete e[wt]}function kt(e){var t;if(t=e[yt])return t;for(var n=e.parentNode;n;){if(t=n[xt]||n[yt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=mm(e);e!==null;){if(n=e[yt])return n;e=mm(e)}return t}e=n,n=e.parentNode}return null}function At(e){if(e=e[yt]||e[xt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function jt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Mt(e){var t=e[Tt];return t||=e[Tt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Nt(e){e[Et]=!0}function Pt(e){e[Dt]=void 0}var Ft=new Set,It={};function Lt(e,t){Rt(e,t),Rt(e+`Capture`,t)}function Rt(e,t){for(It[e]=t,e=0;e<t.length;e++)Ft.add(t[e])}var zt=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]*$`),Bt={},Vt={};function Ht(e){return Me.call(Vt,e)?!0:Me.call(Bt,e)?!1:zt.test(e)?Vt[e]=!0:(Bt[e]=!0,!1)}var B=!1;function Ut(){var e=B;return B=!1,e}function Wt(e,t,n){if(Ht(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,n)}}}function Gt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,n)}}function Kt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function qt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Jt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Yt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xt(e){if(!e._valueTracker){var t=Jt(e)?`checked`:`value`;e._valueTracker=Yt(e,t,``+e[t])}}function Zt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Jt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var Qt=/[\n"\\]/g;function $t(e){return e.replace(Qt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function en(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+qt(t)):e.value!==``+qt(t)&&(e.value=``+qt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):nn(e,qt(n)):o===`number`&&e.value==t?nn(e,qt(e.value)):nn(e,qt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+qt(s):e.removeAttribute(`name`)}function tn(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Xt(e);return}n=n==null?``:``+qt(n),t=t==null?n:``+qt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Xt(e)}function nn(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function rn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+qt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function an(e,t,n){t!=null&&(t=``+qt(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+qt(n)}function on(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(de(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=qt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Xt(e)}function sn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var cn=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 ln(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||cn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function un(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,B=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(ln(e,a,r),B=!0)}else for(var o in t)t.hasOwnProperty(o)&&ln(e,o,t[o])}function dn(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var fn=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`],[`maskType`,`mask-type`],[`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`]]),pn=/^[\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 mn(e){return pn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function hn(){}var gn=null;function _n(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vn=null,yn=null;function bn(e){var t=At(e);if(t&&(e=t.stateNode)){var n=e[bt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(en(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+$t(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[bt]||null;if(!a)throw Error(i(90));en(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Zt(r)}break a;case`textarea`:an(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&rn(e,!!n.multiple,t,!1)}}}var xn=!1;function Sn(e,t,n){if(xn)return e(t,n);xn=!0;try{return e(t)}finally{if(xn=!1,(vn!==null||yn!==null)&&(Rd(),vn&&(t=vn,e=yn,yn=vn=null,bn(t),e)))for(t=0;t<e.length;t++)bn(e[t])}}function Cn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[bt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var wn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Tn=!1;if(wn)try{var En={};Object.defineProperty(En,"passive",{get:function(){Tn=!0}}),window.addEventListener(`test`,En,En),window.removeEventListener(`test`,En,En)}catch{Tn=!1}var Dn=null,On=null,kn=null;function An(){if(kn)return kn;var e,t=On,n=t.length,r,i=`value`in Dn?Dn.value:Dn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return kn=i.slice(e,1<r?1-r:void 0)}function jn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Mn(){return!0}function Nn(){return!1}function Pn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Mn:Nn,this.isPropagationStopped=Nn,this}return T(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Mn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Mn)},persist:function(){},isPersistent:Mn}),t}var Fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},In=Pn(Fn),Ln=T({},Fn,{view:0,detail:0}),Rn=Pn(Ln),zn,Bn,Vn,Hn=T({},Ln,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$n,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Vn&&(Vn&&e.type===`mousemove`?(zn=e.screenX-Vn.screenX,Bn=e.screenY-Vn.screenY):Bn=zn=0,Vn=e),zn)},movementY:function(e){return`movementY`in e?e.movementY:Bn}}),Un=Pn(Hn),Wn=Pn(T({},Hn,{dataTransfer:0})),Gn=Pn(T({},Ln,{relatedTarget:0})),Kn=Pn(T({},Fn,{animationName:0,elapsedTime:0,pseudoElement:0})),qn=Pn(T({},Fn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Jn=Pn(T({},Fn,{data:0})),Yn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Xn={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`},Zn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Qn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Zn[e])?!!t[e]:!1}function $n(){return Qn}var er=Pn(T({},Ln,{key:function(e){if(e.key){var t=Yn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=jn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Xn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$n,charCode:function(e){return e.type===`keypress`?jn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?jn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),tr=Pn(T({},Hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),nr=Pn(T({},Fn,{submitter:0})),rr=Pn(T({},Ln,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$n})),ir=Pn(T({},Fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),ar=Pn(T({},Hn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),or=Pn(T({},Fn,{newState:0,oldState:0,source:0})),sr=[9,13,27,32],cr=wn&&`CompositionEvent`in window,lr=null;wn&&`documentMode`in document&&(lr=document.documentMode);var ur=wn&&`TextEvent`in window&&!lr,dr=wn&&(!cr||lr&&8<lr&&11>=lr),fr=` `,pr=!1;function mr(e,t){switch(e){case`keyup`:return sr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function hr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var gr=!1;function _r(e,t){switch(e){case`compositionend`:return hr(t);case`keypress`:return t.which===32?(pr=!0,fr):null;case`textInput`:return e=t.data,e===fr&&pr?null:e;default:return null}}function V(e,t){if(gr)return e===`compositionend`||!cr&&mr(e,t)?(e=An(),kn=On=Dn=null,gr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return dr&&t.locale!==`ko`?null:t.data;default:return null}}var vr={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 yr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!vr[e.type]:t===`textarea`}function br(e,t,n,r){vn?yn?yn.push(r):yn=[r]:vn=r,t=Yf(t,`onChange`),0<t.length&&(n=new In(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var xr=null,Sr=null;function Cr(e){Vf(e,0)}function wr(e){if(Zt(jt(e)))return e}function Tr(e,t){if(e===`change`)return t}var Er=!1;if(wn){var Dr;if(wn){var Or=`oninput`in document;if(!Or){var kr=document.createElement(`div`);kr.setAttribute(`oninput`,`return;`),Or=typeof kr.oninput==`function`}Dr=Or}else Dr=!1;Er=Dr&&(!document.documentMode||9<document.documentMode)}function Ar(){xr&&(xr.detachEvent(`onpropertychange`,jr),Sr=xr=null)}function jr(e){if(e.propertyName===`value`&&wr(Sr)){var t=[];br(t,Sr,e,_n(e)),Sn(Cr,t)}}function Mr(e,t,n){e===`focusin`?(Ar(),xr=t,Sr=n,xr.attachEvent(`onpropertychange`,jr)):e===`focusout`&&Ar()}function Nr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return wr(Sr)}function Pr(e,t){if(e===`click`)return wr(t)}function Fr(e,t){if(e===`input`||e===`change`)return wr(t)}function Ir(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var H=typeof Object.is==`function`?Object.is:Ir;function Lr(e,t){if(H(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Me.call(t,i)||!H(e[i],t[i]))return!1}return!0}function Rr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function zr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function U(e,t){var n=zr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=zr(n)}}function Br(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Br(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Rr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Rr(e.document)}return t}function Hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Ur=wn&&`documentMode`in document&&11>=document.documentMode,Wr=null,Gr=null,Kr=null,qr=!1;function Jr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qr||Wr==null||Wr!==Rr(r)||(r=Wr,`selectionStart`in r&&Hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Kr&&Lr(Kr,r)||(Kr=r,r=Yf(Gr,`onSelect`),0<r.length&&(t=new In(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Wr)))}function Yr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Xr={animationend:Yr(`Animation`,`AnimationEnd`),animationiteration:Yr(`Animation`,`AnimationIteration`),animationstart:Yr(`Animation`,`AnimationStart`),transitionrun:Yr(`Transition`,`TransitionRun`),transitionstart:Yr(`Transition`,`TransitionStart`),transitioncancel:Yr(`Transition`,`TransitionCancel`),transitionend:Yr(`Transition`,`TransitionEnd`)},Zr={},Qr={};wn&&(Qr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Xr.animationend.animation,delete Xr.animationiteration.animation,delete Xr.animationstart.animation),`TransitionEvent`in window||delete Xr.transitionend.transition);function $r(e){if(Zr[e])return Zr[e];if(!Xr[e])return e;var t=Xr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Qr)return Zr[e]=t[n];return e}var ei=$r(`animationend`),ti=$r(`animationiteration`),ni=$r(`animationstart`),ri=$r(`transitionrun`),ii=$r(`transitionstart`),ai=$r(`transitioncancel`),oi=$r(`transitionend`),si=new Map,ci=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(` `);ci.push(`scrollEnd`);function li(e,t){si.set(e,t),Lt(t,[e])}var ui=0;function di(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=bd.identifierPrefix;var n=ui++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function fi(e){if(e==null||typeof e==`string`)return e;var t=null,n=Dd;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function pi(e,t){return e=fi(e),t=fi(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var mi=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},hi=[],gi=0,_i=0;function vi(){for(var e=gi,t=_i=gi=0;t<e;){var n=hi[t];hi[t++]=null;var r=hi[t];hi[t++]=null;var i=hi[t];hi[t++]=null;var a=hi[t];if(hi[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Si(n,i,a)}}function yi(e,t,n,r){hi[gi++]=e,hi[gi++]=t,hi[gi++]=n,hi[gi++]=r,_i|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function bi(e,t,n,r){return yi(e,t,n,r),Ci(e)}function xi(e,t){return yi(e,null,null,t),Ci(e)}function Si(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ye(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Ci(e){if(50<Od)throw Od=0,kd=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var wi={};function Ti(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ei(e,t,n,r){return new Ti(e,t,n,r)}function Di(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Oi(e,t){var n=e.alternate;return n===null?(n=Ei(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ki(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ai(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Di(r)&&(s=1);else if(typeof r==`string`)s=Ym(e,n,_e.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case ne:return e=Ei(31,n,t,a),e.elementType=ne,e.lanes=o,e;case k:return ji(n.children,a,o,t);case A:s=8,a|=24;break;case j:return e=Ei(12,n,t,a|2),e.elementType=j,e.lanes=o,e;case F:return e=Ei(13,n,t,a),e.elementType=F,e.lanes=o,e;case ee:return e=Ei(19,n,t,a),e.elementType=ee,e.lanes=o,e;case re:case ae:return e=a|32,e=Ei(30,n,t,e),e.elementType=ae,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case N:s=10;break a;case M:s=9;break a;case P:s=11;break a;case te:s=14;break a;case I:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Ei(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ji(e,t,n,r){return e=Ei(7,e,r,t),e.lanes=n,e}function Mi(e,t,n){return e=Ei(6,e,null,t),e.lanes=n,e}function Ni(e){var t=Ei(18,null,null,0);return t.stateNode=e,t}function Pi(e,t,n){return t=Ei(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Fi=new WeakMap;function Ii(e,t){if(typeof e==`object`&&e){var n=Fi.get(e);return n===void 0?(t={value:e,source:t,stack:je(t)},Fi.set(e,t),t):n}return{value:e,source:t,stack:je(t)}}var Li=[],Ri=0,zi=null,Bi=0,Vi=[],Hi=0,Ui=null,Wi=1,Gi=``;function Ki(e,t){Li[Ri++]=Bi,Li[Ri++]=zi,zi=e,Bi=t}function qi(e,t,n){Vi[Hi++]=Wi,Vi[Hi++]=Gi,Vi[Hi++]=Ui,Ui=e;var r=Wi;e=Gi;var i=32-Ye(r)-1;r&=~(1<<i),n+=1;var a=32-Ye(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Wi=1<<32-Ye(t)+i|n<<i|r,Gi=a+e}else Wi=1<<a|n<<i|r,Gi=e}function Ji(e){e.return!==null&&(Ki(e,1),qi(e,1,0))}function Yi(e){for(;e===zi;)zi=Li[--Ri],Li[Ri]=null,Bi=Li[--Ri],Li[Ri]=null;for(;e===Ui;)Ui=Vi[--Hi],Vi[Hi]=null,Gi=Vi[--Hi],Vi[Hi]=null,Wi=Vi[--Hi],Vi[Hi]=null}function Xi(e,t){Vi[Hi++]=Wi,Vi[Hi++]=Gi,Vi[Hi++]=Ui,Wi=t.id,Gi=t.overflow,Ui=e}var Zi=null,Qi=null,$i=!1,ea=null,ta=!1,na=Error(i(519));function ra(e){throw la(Ii(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),na}function ia(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[yt]=e,t[bt]=r,n){case`dialog`:Hf(`cancel`,t),Hf(`close`,t);break;case`iframe`:case`object`:case`embed`:Hf(`load`,t);break;case`video`:case`audio`:for(n=0;n<zf.length;n++)Hf(zf[n],t);break;case`source`:Hf(`error`,t);break;case`img`:case`image`:case`link`:Hf(`error`,t),Hf(`load`,t);break;case`details`:Hf(`toggle`,t);break;case`input`:Hf(`invalid`,t),tn(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Hf(`invalid`,t);break;case`textarea`:Hf(`invalid`,t),on(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||tp(t.textContent,n)?(r.popover!=null&&(Hf(`beforetoggle`,t),Hf(`toggle`,t)),r.onScroll!=null&&Hf(`scroll`,t),r.onScrollEnd!=null&&Hf(`scrollend`,t),r.onClick!=null&&(t.onclick=hn),t=!0):t=!1,t||ra(e,!0)}function aa(e){for(Zi=e.return;Zi;)switch(Zi.tag){case 5:case 31:case 13:ta=!1;return;case 27:case 3:ta=!0;return;default:Zi=Zi.return}}function oa(e){if(e!==Zi)return!1;if(!$i)return aa(e),$i=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||hp(e.type,e.memoizedProps)),n=!n),n&&Qi&&ra(e),aa(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Qi=pm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Qi=pm(e)}else t===27?(t=Qi,wp(e.type)?(e=fm,fm=null,Qi=e):Qi=t):Qi=Zi?dm(e.stateNode.nextSibling):null;return!0}function sa(){Qi=Zi=null,$i=!1}function ca(){var e=ea;return e!==null&&(fd===null?fd=e:fd.push.apply(fd,e),ea=null),e}function la(e){ea===null?ea=[e]:ea.push(e)}var ua=he(null),da=null,fa=null;function pa(e,t,n){ge(ua,t._currentValue),t._currentValue=n}function ma(e){e._currentValue=ua.current,z(ua)}function W(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ha(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),W(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),W(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),W(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function ga(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;H(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===be.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[lh]:e.push(lh))}a=a.return}return e!==null&&ha(t,e,n,r),t.flags|=262144,e!==null}function _a(e){for(e=e.firstContext;e!==null;){if(!H(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function va(e){da=e,fa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ya(e){return xa(da,e)}function ba(e,t){return da===null&&va(e),xa(e,t)}function xa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},fa===null){if(e===null)throw Error(i(308));fa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else fa=fa.next=t;return n}var Sa=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Ca=t.unstable_scheduleCallback,wa=t.unstable_NormalPriority,Ta={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ea(){return{controller:new Sa,data:new Map,refCount:0}}function Da(e){e.refCount--,e.refCount===0&&Ca(wa,function(){e.controller.abort()})}function Oa(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var ka=null;function Aa(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var ja=null,Ma=0,Na=0,Pa=null;function Fa(e,t){if(ja===null){var n=ja=[];Ma=0,Na=Pf(),Pa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Ma++,t.then(Ia,Ia),t}function Ia(){if(--Ma===0&&(ka=null,ja!==null)){Pa!==null&&(Pa.status=`fulfilled`);var e=ja;ja=null,Na=0,Pa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function La(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var Ra=L.S;L.S=function(e,t){if(hd=Le(),typeof t==`object`&&t&&typeof t.then==`function`&&Fa(e,t),ka!==null)for(var n=bf;n!==null;)Oa(n,ka),n=n.next;if(n=e.types,n!==null){for(var r=bf;r!==null;)Oa(r,n),r=r.next;if(Na!==0){r=ka,r===null&&(r=ka=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Ra!==null&&Ra(e,t)};var za=he(null);function Ba(){var e=za.current;return e===null?Xu.pooledCache:e}function Va(e,t){t===null?ge(za,za.current):ge(za,t.pool)}function Ha(){var e=Ba();return e===null?null:{parent:Ta._currentValue,pool:e}}var Ua=Error(i(460)),Wa=Error(i(474)),Ga=Error(i(542)),Ka={then:function(){}};function qa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ja(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(hn,hn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Qa(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(hn,hn);else{if(e=Xu,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Qa(e),e}throw Xa=t,Ua}}function Ya(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Xa=e,Ua):e}}var Xa=null;function Za(){if(Xa===null)throw Error(i(459));var e=Xa;return Xa=null,e}function Qa(e){if(e===Ua||e===Ga)throw Error(i(483))}var $a=null,eo=0;function to(e){var t=eo;return eo+=1,$a===null&&($a=[]),Ja($a,e,t)}function no(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function ro(e,t){throw t.$$typeof===E?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function io(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=Oi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Mi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===k?(e=d(e,t,n.props.children,r,n.key),no(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===I&&Ya(i)===t.type)?(t=a(t,n.props),no(t,n),t.return=e,t):(t=Ai(n.type,n.key,n.props,null,e.mode,r),no(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Pi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=ji(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Mi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case D:return n=Ai(t.type,t.key,t.props,null,e.mode,n),no(n,t),n.return=e,n;case O:return t=Pi(t,e.mode,n),t.return=e,t;case I:return t=Ya(t),f(e,t,n)}if(de(t)||ce(t))return t=ji(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,to(t),n);if(t.$$typeof===N)return f(e,ba(e,t),n);ro(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case D:return n.key===i?l(e,t,n,r):null;case O:return n.key===i?u(e,t,n,r):null;case I:return n=Ya(n),p(e,t,n,r)}if(de(n)||ce(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,to(n),r);if(n.$$typeof===N)return p(e,t,ba(e,n),r);ro(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case D:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case O:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case I:return r=Ya(r),m(e,t,n,r,i)}if(de(r)||ce(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,to(r),i);if(r.$$typeof===N)return m(e,t,n,ba(t,r),i);ro(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),$i&&Ki(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return $i&&Ki(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),$i&&Ki(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),$i&&Ki(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return $i&&Ki(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),$i&&Ki(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===k&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case D:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===k){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),no(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===I&&Ya(l)===r.type){n(e,r.sibling),c=a(r,o.props),no(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===k?(c=ji(o.props.children,e.mode,c,o.key),no(c,o),c.return=e,e=c):(c=Ai(o.type,o.key,o.props,null,e.mode,c),no(c,o),c.return=e,e=c)}return s(e);case O:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Pi(o,e.mode,c),c.return=e,e=c}return s(e);case I:return o=Ya(o),_(e,r,o,c)}if(de(o))return h(e,r,o,c);if(ce(o)){if(l=ce(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,to(o),c);if(o.$$typeof===N)return _(e,r,ba(e,o),c);ro(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Mi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{eo=0;var i=_(e,t,n,r);return $a=null,i}catch(t){if(t===Ua||t===Ga)throw t;var a=Ei(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var ao=io(!0),oo=io(!1),so=!1;function co(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function uo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function fo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Yu&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Ci(e),Si(e,null,n),t}return yi(e,r,t,n),Ci(e)}function po(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ft(e,n)}}function mo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ho=!1;function go(){if(ho){var e=Pa;if(e!==null)throw e}}function _o(e,t,n,r){ho=!1;var i=e.updateQueue;so=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Qu&f)===f:(r&f)===f){f!==0&&f===Na&&(ho=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=T({},d,f);break a;case 2:so=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),od|=o,e.lanes=o,e.memoizedState=d}}function vo(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function yo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)vo(n[e],t)}var bo=he(null),xo=he(0);function So(e,t){e=id,ge(xo,e),ge(bo,t),id=e|t.baseLanes}function Co(){ge(xo,id),ge(bo,bo.current)}function wo(){id=xo.current,z(bo),z(xo)}var To=he(null),Eo=null;function Do(e){var t=e.alternate;ge(Mo,Mo.current&1),ge(To,e),Eo===null&&(t===null||bo.current!==null||t.memoizedState!==null)&&(Eo=e)}function Oo(e){ge(Mo,Mo.current),ge(To,e),Eo===null&&(Eo=e)}function ko(e){e.tag===22?(ge(Mo,Mo.current),ge(To,e),Eo===null&&(Eo=e)):Ao()}function Ao(){ge(Mo,Mo.current),ge(To,To.current)}function jo(e){z(To),Eo===e&&(Eo=null),z(Mo)}var Mo=he(0);function No(e,t){ge(To,To.current),ge(Mo,t)}function Po(e){z(Mo),z(To),Eo===e&&(Eo=null)}function Fo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||cm(n)||lm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Io=0,Lo=null,Ro=null,zo=null,Bo=!1,Vo=!1,G=!1,Ho=0,Uo=0,Wo=null,Go=0;function Ko(){throw Error(i(321))}function qo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!H(e[n],t[n]))return!1;return!0}function Jo(e,t,n,r,i,a){return Io=a,Lo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e===null||e.memoizedState===null?sc:cc,G=!1,a=n(r,i),G=!1,Vo&&(a=Xo(t,n,r,i)),Yo(e),a}function Yo(e){L.H=oc;var t=Ro!==null&&Ro.next!==null;if(Io=0,zo=Ro=Lo=null,Bo=!1,Uo=0,Wo=null,t)throw Error(i(300));e===null||Tc||(e=e.dependencies,e!==null&&_a(e)&&(Tc=!0))}function Xo(e,t,n,r){Lo=e;var a=0;do{if(Vo&&(Wo=null),Uo=0,Vo=!1,25<=a)throw Error(i(301));if(a+=1,zo=Ro=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}L.H=lc,o=t(n,r)}while(Vo);return o}function Zo(){var e=L.H,t=e.useState()[0];return t=typeof t.then==`function`?rs(t):t,e=e.useState()[0],(Ro===null?null:Ro.memoizedState)!==e&&(Lo.flags|=1024),t}function Qo(){var e=Ho!==0;return Ho=0,e}function $o(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function es(e){if(Bo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Bo=!1}Io=0,zo=Ro=Lo=null,Vo=!1,Uo=Ho=0,Wo=null}function ts(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return zo===null?Lo.memoizedState=zo=e:zo=zo.next=e,zo}function ns(){if(Ro===null){var e=Lo.alternate;e=e===null?null:e.memoizedState}else e=Ro.next;var t=zo===null?Lo.memoizedState:zo.next;if(t!==null)zo=t,Ro=e;else{if(e===null)throw Lo.alternate===null?Error(i(467)):Error(i(310));Ro=e,e={memoizedState:Ro.memoizedState,baseState:Ro.baseState,baseQueue:Ro.baseQueue,queue:Ro.queue,next:null},zo===null?Lo.memoizedState=zo=e:zo=zo.next=e}return zo}function K(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function rs(e){var t=Uo;return Uo+=1,Wo===null&&(Wo=[]),e=Ja(Wo,e,t),t=Lo,(zo===null?t.memoizedState:zo.next)===null&&(t=t.alternate,L.H=t===null||t.memoizedState===null?sc:cc),e}function q(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return rs(e);if(e.$$typeof===oe)return;if(e.$$typeof===N)return ya(e)}throw Error(i(438,String(e)))}function is(e){var t=null,n=Lo.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Lo.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=K(),Lo.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=ie;return t.index++,n}function as(e,t){return typeof t==`function`?t(e):t}function os(e){return ss(ns(),Ro,e)}function ss(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Io&f)===f:(Qu&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Na&&(d=!0);else if((Io&p)===p){u=u.next,p===Na&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,Lo.lanes|=p,od|=p;f=u.action,G&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,Lo.lanes|=f,od|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!H(o,e.memoizedState)&&(Tc=!0,d&&(n=Pa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function cs(e){var t=ns(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);H(o,t.memoizedState)||(Tc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ls(e,t,n){var r=Lo,a=ns(),o=$i;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!H((Ro||a).memoizedState,n);if(s&&(a.memoizedState=n,Tc=!0),a=a.queue,Ms(fs.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||zo!==null&&!!(zo.memoizedState.tag&1),Ds(e?9:8,{destroy:void 0},ds.bind(null,r,a,n,t),null),e){if(r.flags|=2048,Xu===null)throw Error(i(349));o||Io&127||us(r,t,n)}return n}function us(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Lo.updateQueue,t===null?(t=K(),Lo.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ds(e,t,n,r){t.value=n,t.getSnapshot=r,ps(t)&&ms(e)}function fs(e,t,n){return n(function(){ps(t)&&ms(e)})}function ps(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!H(e,n)}catch{return!0}}function ms(e){var t=xi(e,2);t!==null&&Nd(t,e,2)}function hs(e){var t=ts();if(typeof e==`function`){var n=e;if(e=n(),G){Je(!0);try{n()}finally{Je(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:as,lastRenderedState:e},t}function gs(e,t,n,r){return e.baseState=n,ss(e,Ro,typeof r==`function`?r:as)}function _s(e,t,n,r,a){if(rc(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};L.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,vs(t,o)):(o.next=n.next,t.pending=n.next=o)}}function vs(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=L.T,o={};o.types=a===null?null:a.types,L.T=o;try{var s=n(i,r),c=L.S;c!==null&&c(o,s),ys(e,t,s)}catch(n){xs(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),L.T=a}}else try{a=n(i,r),ys(e,t,a)}catch(n){xs(e,t,n)}}function ys(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){bs(e,t,n)},function(n){return xs(e,t,n)}):bs(e,t,n)}function bs(e,t,n){t.status=`fulfilled`,t.value=n,Ss(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,vs(e,n)))}function xs(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ss(t),t=t.next;while(t!==r)}e.action=null}function Ss(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Cs(e,t){return t}function ws(e,t){if($i){var n=Xu.formState;if(n!==null){a:{var r=Lo;if($i){if(Qi){b:{for(var i=Qi,a=ta;i.nodeType!==8;)if(!a||(i=dm(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Qi=dm(i.nextSibling),r=i.data===`F!`;break a}}ra(r)}r=!1}r&&(t=n[0])}}return n=ts(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cs,lastRenderedState:t},n.queue=r,n=ec.bind(null,Lo,r),r.dispatch=n,r=hs(!1),a=nc.bind(null,Lo,!1,r.queue),r=ts(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=_s.bind(null,Lo,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function J(e){return Y(ns(),Ro,e)}function Y(e,t,n){if(t=ss(e,t,Cs)[0],e=os(as)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=rs(t)}catch(e){throw e===Ua?Ga:e}else r=t;t=ns();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Lo.flags|=2048,Ds(9,{destroy:void 0},Ts.bind(null,i,n),null)),[r,a,e]}function Ts(e,t){e.action=t}function Es(e){var t=ns(),n=Ro;if(n!==null)return Y(t,n,e);ns(),t=t.memoizedState,n=ns();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ds(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Lo.updateQueue,t===null&&(t=K(),Lo.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Os(){return ns().memoizedState}function ks(e,t,n,r){var i=ts();Lo.flags|=e,i.memoizedState=Ds(1|t,{destroy:void 0},n,r===void 0?null:r)}function As(e,t,n,r){var i=ns();r=r===void 0?null:r;var a=i.memoizedState.inst;Ro!==null&&r!==null&&qo(r,Ro.memoizedState.deps)?i.memoizedState=Ds(t,a,n,r):(Lo.flags|=e,i.memoizedState=Ds(1|t,a,n,r))}function js(e,t){ks(8390656,8,e,t)}function Ms(e,t){As(2048,8,e,t)}function Ns(e){Lo.flags|=4;var t=Lo.updateQueue;if(t===null)t=K(),Lo.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Ps(e){var t=ns().memoizedState;return Ns({ref:t,nextImpl:e}),function(){if(Yu&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Fs(e,t){return As(4,2,e,t)}function Is(e,t){return As(4,4,e,t)}function Ls(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Rs(e,t,n){n=n==null?null:n.concat([e]),As(4,4,Ls.bind(null,t,e),n)}function zs(){}function Bs(e,t){var n=ns();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&qo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Vs(e,t){var n=ns();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&qo(t,r[1]))return r[0];if(r=e(),G){Je(!0);try{e()}finally{Je(!1)}}return n.memoizedState=[r,t],r}function Hs(e,t,n){return n===void 0||Io&1073741824&&!(Qu&261930)?e.memoizedState=t:(e.memoizedState=n,e=jd(),Lo.lanes|=e,od|=e,n)}function Us(e,t,n,r){return H(n,t)?n:bo.current===null?!(Io&106)||Io&1073741824&&!(Qu&261930)?(Tc=!0,e.memoizedState=n):(e=jd(),Lo.lanes|=e,od|=e,t):(e=Hs(e,n,r),H(e,t)||(Tc=!0),e)}function Ws(e,t,n,r,i){var a=R.p;R.p=a!==0&&8>a?a:8;var o=L.T,s={};s.types=o===null?null:o.types,L.T=s,nc(e,!1,t,n);try{var c=i(),l=L.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?tc(e,t,La(c,r),Ad(e)):tc(e,t,r,Ad(e))}catch(n){tc(e,t,{then:function(){},status:`rejected`,reason:n},Ad())}finally{R.p=a,o!==null&&s.types!==null&&(o.types=s.types),L.T=o}}function Gs(){}function Ks(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=qs(e).queue;Ws(e,a,t,fe,n===null?Gs:function(){return Js(e),n(r)})}function qs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:fe,baseState:fe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:as,lastRenderedState:fe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:as,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Js(e){var t=qs(e);t.next===null&&(t=e.alternate.memoizedState),tc(e,t.next.queue,{},Ad())}function Ys(){return ya(lh)}function Xs(){return ns().memoizedState}function Zs(){return ns().memoizedState}function Qs(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Ad();e=uo(n);var r=fo(t,e,n);r!==null&&(Nd(r,t,n),po(r,t,n)),t={cache:Ea()},e.payload=t;return}t=t.return}}function $s(e,t,n){var r=Ad();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},rc(e)?ic(t,n):(n=bi(e,t,n,r),n!==null&&(Nd(n,e,r),ac(n,t,r)))}function ec(e,t,n){tc(e,t,n,Ad())}function tc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(rc(e))ic(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,H(s,o))return yi(e,t,i,0),Xu===null&&vi(),!1}catch{}if(n=bi(e,t,i,r),n!==null)return Nd(n,e,r),ac(n,t,r),!0}return!1}function nc(e,t,n,r){if(r={lane:2,revertLane:Pf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},rc(e)){if(t)throw Error(i(479))}else t=bi(e,n,r,2),t!==null&&Nd(t,e,2)}function rc(e){var t=e.alternate;return e===Lo||t!==null&&t===Lo}function ic(e,t){Vo=Bo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ac(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ft(e,n)}}var oc={readContext:ya,use:q,useCallback:Ko,useContext:Ko,useEffect:Ko,useImperativeHandle:Ko,useLayoutEffect:Ko,useInsertionEffect:Ko,useMemo:Ko,useReducer:Ko,useRef:Ko,useState:Ko,useDebugValue:Ko,useDeferredValue:Ko,useTransition:Ko,useSyncExternalStore:Ko,useId:Ko,useHostTransitionStatus:Ko,useFormState:Ko,useActionState:Ko,useOptimistic:Ko,useMemoCache:Ko,useCacheRefresh:Ko,useEffectEvent:Ko},sc={readContext:ya,use:q,useCallback:function(e,t){return ts().memoizedState=[e,t===void 0?null:t],e},useContext:ya,useEffect:js,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ks(4194308,4,Ls.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ks(4194308,4,e,t)},useInsertionEffect:function(e,t){ks(4,2,e,t)},useMemo:function(e,t){var n=ts();t=t===void 0?null:t;var r=e();if(G){Je(!0);try{e()}finally{Je(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ts();if(n!==void 0){var i=n(t);if(G){Je(!0);try{n(t)}finally{Je(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=$s.bind(null,Lo,e),[r.memoizedState,e]},useRef:function(e){var t=ts();return e={current:e},t.memoizedState=e},useState:function(e){e=hs(e);var t=e.queue,n=ec.bind(null,Lo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:zs,useDeferredValue:function(e,t){return Hs(ts(),e,t)},useTransition:function(){var e=hs(!1);return e=Ws.bind(null,Lo,e.queue,!0,!1),ts().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Lo,a=ts();if($i){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Xu===null)throw Error(i(349));Qu&127||us(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,js(fs.bind(null,r,o,e),[e]),r.flags|=2048,Ds(9,{destroy:void 0},ds.bind(null,r,o,n,t),null),n},useId:function(){var e=ts(),t=Xu.identifierPrefix;if($i){var n=Gi,r=Wi;n=(r&~(1<<32-Ye(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Ho++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Go++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ys,useFormState:ws,useActionState:ws,useOptimistic:function(e){var t=ts();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=nc.bind(null,Lo,!0,n),n.dispatch=t,[e,t]},useMemoCache:is,useCacheRefresh:function(){return ts().memoizedState=Qs.bind(null,Lo)},useEffectEvent:function(e){var t=ts(),n={impl:e};return t.memoizedState=n,function(){if(Yu&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},cc={readContext:ya,use:q,useCallback:Bs,useContext:ya,useEffect:Ms,useImperativeHandle:Rs,useInsertionEffect:Fs,useLayoutEffect:Is,useMemo:Vs,useReducer:os,useRef:Os,useState:function(){return os(as)},useDebugValue:zs,useDeferredValue:function(e,t){return Us(ns(),Ro.memoizedState,e,t)},useTransition:function(){var e=os(as)[0],t=ns().memoizedState;return[typeof e==`boolean`?e:rs(e),t]},useSyncExternalStore:ls,useId:Xs,useHostTransitionStatus:Ys,useFormState:J,useActionState:J,useOptimistic:function(e,t){return gs(ns(),Ro,e,t)},useMemoCache:is,useCacheRefresh:Zs,useEffectEvent:Ps},lc={readContext:ya,use:q,useCallback:Bs,useContext:ya,useEffect:Ms,useImperativeHandle:Rs,useInsertionEffect:Fs,useLayoutEffect:Is,useMemo:Vs,useReducer:cs,useRef:Os,useState:function(){return cs(as)},useDebugValue:zs,useDeferredValue:function(e,t){var n=ns();return Ro===null?Hs(n,e,t):Us(n,Ro.memoizedState,e,t)},useTransition:function(){var e=cs(as)[0],t=ns().memoizedState;return[typeof e==`boolean`?e:rs(e),t]},useSyncExternalStore:ls,useId:Xs,useHostTransitionStatus:Ys,useFormState:Es,useActionState:Es,useOptimistic:function(e,t){var n=ns();return Ro===null?(n.baseState=e,[e,n.queue.dispatch]):gs(n,Ro,e,t)},useMemoCache:is,useCacheRefresh:Zs,useEffectEvent:Ps};function uc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:T({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var dc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ad(),i=uo(r);i.payload=t,n!=null&&(i.callback=n),t=fo(e,i,r),t!==null&&(Nd(t,e,r),po(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ad(),i=uo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=fo(e,i,r),t!==null&&(Nd(t,e,r),po(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ad(),r=uo(n);r.tag=2,t!=null&&(r.callback=t),t=fo(e,r,n),t!==null&&(Nd(t,e,n),po(t,e,n))}};function fc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Lr(n,r)||!Lr(i,a):!0}function pc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&dc.enqueueReplaceState(t,t.state,null)}function mc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=T({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function hc(e){mi(e)}function gc(e){console.error(e)}function _c(e){mi(e)}function vc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function yc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function bc(e,t,n){return n=uo(n),n.tag=3,n.payload={element:null},n.callback=function(){vc(e,t)},n}function xc(e){return e=uo(e),e.tag=3,e}function Sc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){yc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){yc(t,n,r),typeof i!=`function`&&(vd===null?vd=new Set([this]):vd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Cc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ga(t,n,a,!0),n=To.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Eo===null?Gd():n.alternate===null&&ad===0&&(ad=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ka?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),mf(e,r,a)),!1;case 22:return n.flags|=65536,r===Ka?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),mf(e,r,a)),!1}throw Error(i(435,n.tag))}return mf(e,r,a),Gd(),!1}if($i)return t=To.current,t===null?(r!==na&&(t=Error(i(423),{cause:r}),la(Ii(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Ii(r,n),a=bc(e.stateNode,r,a),mo(e,a),ad!==4&&(ad=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==na&&(e=Error(i(422),{cause:r}),la(Ii(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Ii(o,n),dd===null?dd=[o]:dd.push(o),ad!==4&&(ad=2),t===null)return!0;r=Ii(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=bc(n.stateNode,r,e),mo(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(vd===null||!vd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=xc(a),Sc(a,e,n,r),mo(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var wc=Error(i(461)),Tc=!1;function Ec(e,t,n,r){t.child=e===null?oo(t,null,n,r):ao(t,e.child,n,r)}function Dc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return va(t),r=Jo(e,t,n,o,a,i),s=Qo(),e!==null&&!Tc?($o(e,t,i),rl(e,t,i)):($i&&s&&Ji(t),t.flags|=1,Ec(e,t,r,i),t.child)}function Oc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Di(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,kc(e,t,a,r,i)):(e=Ai(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!il(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Lr:n,n(o,r)&&e.ref===t.ref)return rl(e,t,i)}return t.flags|=1,e=Oi(a,r),e.ref=t.ref,e.return=t,t.child=e}function kc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Lr(a,r)&&e.ref===t.ref){if(Tc=!1,t.pendingProps=r=a,il(e,i))e.flags&131072&&(Tc=!0);else return t.lanes=e.lanes,rl(e,t,i)}}return zc(e,t,n,r,i)}function Ac(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Nc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Va(t,a===null?null:a.cachePool),a===null?Co():So(t,a),ko(t);else return r=t.lanes=536870912,Nc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Va(t,null),Co(),Ao()):(Va(t,a.cachePool),So(t,a),Ao(),t.memoizedState=null);return Ec(e,t,i,n),t.child}function jc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Nc(e,t,n,r,i){var a=Ba();return a=a===null?null:{parent:Ta._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Va(t,null),Co(),ko(t),e!==null&&ga(e,t,r,!0),t.childLanes=i,null}function Fc(e,t){return t=Jc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ic(e,t,n){return ao(t,e.child,null,n),e=Fc(t,t.pendingProps),e.flags|=2,jo(t),t.memoizedState=null,e}function Lc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if($i){if(r.mode===`hidden`)return e=Fc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},jc(null,e);if(Oo(t),(e=Qi)?(e=sm(e,ta),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ui===null?null:{id:Wi,overflow:Gi},retryLane:536870912,hydrationErrors:null},n=Ni(e),n.return=t,t.child=n,Zi=t,Qi=null)):e=null,e===null)throw ra(t);return t.lanes=536870912,null}return Fc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Oo(t),a){if(t.flags&256)t.flags&=-257,t=Ic(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Tc||ga(e,t,n,!1),a=(n&e.childLanes)!==0,Tc||a){if(bo.current===null){if(r=Xu,r!==null&&(s=pt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,xi(e,s),Nd(r,e,s),wc;Gd()}t=Ic(e,t,n)}else e=o.treeContext,Qi=dm(s.nextSibling),Zi=t,$i=!0,ea=null,ta=!1,e!==null&&Xi(t,e),t=Fc(t,r),t.flags|=134221824;return t}return e=Oi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Rc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function zc(e,t,n,r,i){return va(t),n=Jo(e,t,n,r,void 0,i),r=Qo(),e!==null&&!Tc?($o(e,t,i),rl(e,t,i)):($i&&r&&Ji(t),t.flags|=1,Ec(e,t,n,i),t.child)}function Bc(e,t,n,r,i,a){return va(t),t.updateQueue=null,n=Xo(t,r,n,i),Yo(e),r=Qo(),e!==null&&!Tc?($o(e,t,a),rl(e,t,a)):($i&&r&&Ji(t),t.flags|=1,Ec(e,t,n,a),t.child)}function Vc(e,t,n,r,i){if(va(t),t.stateNode===null){var a=wi,o=n.contextType;typeof o==`object`&&o&&(a=ya(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=dc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},co(t),o=n.contextType,a.context=typeof o==`object`&&o?ya(o):wi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(uc(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&dc.enqueueReplaceState(a,a.state,null),_o(t,r,a,i),go(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=mc(n,s);a.props=c;var l=a.context,u=n.contextType;o=wi,typeof u==`object`&&u&&(o=ya(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&pc(t,a,r,o),so=!1;var f=t.memoizedState;a.state=f,_o(t,r,a,i),go(),l=t.memoizedState,s||f!==l||so?(typeof d==`function`&&(uc(t,n,d,r),l=t.memoizedState),(c=so||fc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,lo(e,t),o=t.memoizedProps,u=mc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=wi,typeof l==`object`&&l&&(c=ya(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&pc(t,a,r,c),so=!1,f=t.memoizedState,a.state=f,_o(t,r,a,i),go();var p=t.memoizedState;o!==d||f!==p||so||e!==null&&e.dependencies!==null&&_a(e.dependencies)?(typeof s==`function`&&(uc(t,n,s,r),p=t.memoizedState),(u=so||fc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&_a(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Rc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=ao(t,e.child,null,i),t.child=ao(t,null,n,i)):Ec(e,t,n,i),t.memoizedState=a.state,e=t.child):e=rl(e,t,i),e}function Hc(e,t,n,r){return sa(),t.flags|=256,Ec(e,t,n,r),t.child}var Uc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Wc(e){return{baseLanes:e,cachePool:Ha()}}function Gc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=ld),e}function Kc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Mo.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if($i){if(i?Do(t):Ao(),(e=Qi)?(e=sm(e,ta),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ui===null?null:{id:Wi,overflow:Gi},retryLane:536870912,hydrationErrors:null},n=Ni(e),n.return=t,t.child=n,Zi=t,Qi=null)):e=null,e===null)throw ra(t);return t.lanes=lm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Ao(),i=t.mode,a=Jc({mode:`hidden`,children:a},i),r=ji(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Wc(n),r.childLanes=Gc(e,o,n),t.memoizedState=Uc,jc(null,r)):(Do(t),qc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return Xc(e,t,a,o,r,c,s,n)}return i?(Ao(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Oi(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=ji(i,a,n,null),i.flags|=2):i=Oi(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,jc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Wc(n):(a=i.cachePool,a===null?a=Ha():(s=Ta._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Gc(e,o,n),t.memoizedState=Uc,jc(e.child,r)):(Do(t),n=e.child,e=n.sibling,n=Oi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function qc(e,t){return t=Jc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Jc(e,t){return e=Ei(22,e,null,t),e.lanes=0,e}function Yc(e,t,n){return ao(t,e.child,null,n),e=qc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xc(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(Do(t),t.flags&=-257,Yc(e,t,c)):t.memoizedState===null?(Ao(),o=a.fallback,s=t.mode,a=Jc({mode:`visible`,children:a.children},s),o=ji(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,ao(t,e.child,null,c),a=t.child,a.memoizedState=Wc(c),a.childLanes=Gc(e,r,c),t.memoizedState=Uc,jc(null,a)):(Ao(),t.child=e.child,t.flags|=128,null);if(Do(t),lm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,la({value:a,source:null,stack:null})),Yc(e,t,c)}if(Tc||ga(e,t,c,!1),r=(c&e.childLanes)!==0,Tc||r){if(bo.current!==null)return Yc(e,t,c);if(r=Xu,r!==null&&(a=pt(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,xi(e,a),Nd(r,e,a),wc;return cm(o)||Gd(),Yc(e,t,c)}return cm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,Qi=dm(o.nextSibling),Zi=t,$i=!0,ea=null,ta=!1,e!==null&&Xi(t,e),t=qc(t,a.children),t.flags|=134221824,t)}function Zc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),W(e.return,t,n)}function Qc(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Fo(n)===null&&(t=e),e=e.sibling}return t}function $c(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function el(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function tl(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Mo.current;if(t.flags&128)return No(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,No(t,o),i===`backwards`&&e!==null?(el(e),Ec(e,t,r,n),el(e)):Ec(e,t,r,n),r=$i?Bi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Zc(e,n,t);else if(e.tag===19)Zc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=Qc(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,el(t)),$c(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Fo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}$c(t,!0,n,null,a,r);break;case`together`:$c(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=Qc(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),$c(t,!1,i,n,a,r)}return t.child}function nl(e,t,n){var r=t.pendingProps;return pa(t,t.type,r.value),Ec(e,t,r.children,n),t.child}function rl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),od|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(ga(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=Oi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Oi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function il(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&_a(e)))}function al(e,t,n){switch(t.tag){case 3:xe(t,t.stateNode.containerInfo),pa(t,Ta,e.memoizedState.cache),sa();break;case 27:case 5:Ce(t);break;case 4:xe(t,t.stateNode.containerInfo);break;case 10:pa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Oo(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return Do(t),t.flags|=128,null;r=ga(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Kc(e,t,n):(Do(t),e=rl(e,t,n),e===null?null:e.sibling)}Do(t);break;case 19:if(t.flags&128)return tl(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(ga(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return tl(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),No(t,Mo.current),r)break;return null;case 22:return t.lanes=0,Ac(e,t,n,t.pendingProps);case 24:pa(t,Ta,e.memoizedState.cache)}return rl(e,t,n)}function ol(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Tc=!0;else{if(!il(e,n)&&!(t.flags&128))return Tc=!1,al(e,t,n);Tc=!!(e.flags&131072)}}else Tc=!1,$i&&t.flags&1048576&&qi(t,Bi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ya(t.elementType),t.type=e,typeof e==`function`)Di(e)?(r=mc(e,r),t.tag=1,t=Vc(null,t,e,r,n)):(t.tag=0,t=zc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===P){t.tag=11,t=Dc(null,t,e,r,n);break a}if(a===te){t.tag=14,t=Oc(null,t,e,r,n);break a}if(a===N){t.tag=10,t.type=e,t=nl(null,t,n);break a}}throw t=ue(e)||e,Error(i(306,t,``))}}return t;case 0:return zc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=mc(r,t.pendingProps),Vc(e,t,r,a,n);case 3:a:{if(xe(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,lo(e,t),_o(t,r,null,n);var s=t.memoizedState;if(r=s.cache,pa(t,Ta,r),r!==o.cache&&ha(t,[Ta],n,!0),go(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Hc(e,t,r,n);break a}if(r!==a){a=Ii(Error(i(424)),t),la(a),t=Hc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Qi=dm(e.firstChild),Zi=t,$i=!0,ea=null,ta=!0,n=oo(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(sa(),r===a){t=rl(e,t,n);break a}Ec(e,t,r,n)}t=t.child}return t;case 26:return Rc(e,t),e===null?(n=Fm(t.type,null,t.pendingProps,null))?t.memoizedState=n:$i||(t.stateNode=mp(t.type,t.pendingProps,ye.current,t)):t.memoizedState=Fm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ce(t),e===null&&$i&&(r=t.stateNode=_m(t.type,t.pendingProps,ye.current),Zi=t,ta=!0,a=Qi,wp(t.type)?(fm=a,Qi=dm(r.firstChild)):Qi=a),Ec(e,t,t.pendingProps.children,n),Rc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&$i&&((a=r=Qi)&&(r=am(r,t.type,t.pendingProps,ta),r===null?a=!1:(t.stateNode=r,Zi=t,Qi=dm(r.firstChild),ta=!1,a=!0)),a||ra(t)),Ce(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,hp(a,o)?r=null:s!==null&&hp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Jo(e,t,Zo,null,null,n),lh._currentValue=a),Rc(e,t),Ec(e,t,r,n),t.child;case 6:return e===null&&$i&&((e=n=Qi)&&(n=om(n,t.pendingProps,ta),n===null?e=!1:(t.stateNode=n,Zi=t,Qi=null,e=!0)),e||ra(t)),null;case 13:return Kc(e,t,n);case 4:return xe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ao(t,null,r,n):Ec(e,t,r,n),t.child;case 11:return Dc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Rc(e,t),Ec(e,t,r,n),t.child;case 8:return Ec(e,t,t.pendingProps.children,n),t.child;case 12:return Ec(e,t,t.pendingProps.children,n),t.child;case 10:return nl(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,va(t),a=ya(a),r=r(a),t.flags|=1,Ec(e,t,r,n),t.child;case 14:return Oc(e,t,t.type,t.pendingProps,n);case 15:return kc(e,t,t.type,t.pendingProps,n);case 19:return tl(e,t,n);case 31:return Lc(e,t,n);case 22:return Ac(e,t,n,t.pendingProps);case 24:return va(t),r=ya(Ta),e===null?(a=Ba(),a===null&&(a=Xu,o=Ea(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},co(t),pa(t,Ta,a)):((e.lanes&n)!==0&&(lo(e,t),_o(t,null,null,n),go()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,pa(t,Ta,r),r!==a.cache&&ha(t,[Ta],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),pa(t,Ta,r))),Ec(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:$i&&Ji(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Rc(e,t),Ec(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function sl(e){e.flags|=4}function cl(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?Xm(t,r):Xm(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Hd())e.flags|=8192;else throw Xa=Ka,Wa}}else e.flags&=-16777217}function ll(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Zm(t)){if(Hd())e.flags|=8192;else throw Xa=Ka,Wa}}function ul(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:st(),e.lanes|=t,ud|=t)}function dl(e,t){if(!$i)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function fl(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function pl(e,t,n){var r=t.pendingProps;switch(Yi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return fl(t),null;case 1:return fl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ma(Ta),Se(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(oa(t)?sl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ca())),fl(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(sl(t),o===null?(fl(t),cl(t,a,null,r,n)):(fl(t),ll(t,o))):o?o===e.memoizedState?(fl(t),t.flags&=-16777217):(sl(t),fl(t),ll(t,o)):(e=e.memoizedProps,e!==r&&sl(t),fl(t),cl(t,a,e,r,n)),null;case 27:if(we(t),n=ye.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&sl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return fl(t),t.subtreeFlags&=-33554433,null}e=_e.current,oa(t)?ia(t,e):(e=_m(a,r,n),t.stateNode=e,sl(t))}return fl(t),t.subtreeFlags&=-33554433,null;case 5:if(we(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&sl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return fl(t),t.subtreeFlags&=-33554433,null}if(o=_e.current,oa(t))ia(t,o);else{var s=dp(ye.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[yt]=t,o[bt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(ip(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&sl(t)}}return fl(t),t.subtreeFlags&=-33554433,cl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&sl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ye.current,oa(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Zi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[yt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||tp(e.nodeValue,n)),e||ra(t,!0)}else e=dp(e).createTextNode(r),e[yt]=t,t.stateNode=e}return fl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=oa(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[yt]=t}else sa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;fl(t),e=!1}else n=ca(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(jo(t),t):(jo(t),null);if(t.flags&128)throw Error(i(558))}return fl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=oa(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[yt]=t}else sa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;fl(t),a=!1}else a=ca(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(jo(t),t):(jo(t),null)}return jo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ul(t,t.updateQueue),fl(t),null);case 4:return Se(),e===null&&Gf(t.stateNode.containerInfo),t.flags|=67108864,fl(t),null;case 10:return ma(t.type),fl(t),null;case 19:if(Po(t),r=t.memoizedState,r===null)return fl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)dl(r,!1);else{if(ad!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Fo(e),o!==null){for(t.flags|=128,dl(r,!1),e=o.updateQueue,t.updateQueue=e,ul(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ki(n,e),n=n.sibling;return No(t,Mo.current&1|2),$i&&Ki(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Le()>gd&&(t.flags|=128,a=!0,dl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Fo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,ul(t,e),dl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!$i)return fl(t),null}else 2*Le()-r.renderingStartTime>gd&&n!==536870912&&(t.flags|=128,a=!0,dl(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Le(),e.sibling=null,o=Mo.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||$i?No(t,o):(n=o,ge(To,t),ge(Mo,n),Eo===null&&(Eo=t)),$i&&Ki(t,r.treeForkCount),e}return fl(t),null;case 22:case 23:return jo(t),wo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(fl(t),t.subtreeFlags&6&&(t.flags|=8192)):fl(t),n=t.updateQueue,n!==null&&ul(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&z(za),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ma(Ta),fl(t),null;case 25:return null;case 30:return t.flags|=33554432,fl(t),null}throw Error(i(156,t.tag))}function ml(e,t){switch(Yi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ma(Ta),Se(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return we(t),null;case 31:if(t.memoizedState!==null){if(jo(t),t.alternate===null)throw Error(i(340));sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(jo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Po(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Se(),null;case 10:return ma(t.type),null;case 22:case 23:return jo(t),wo(),e!==null&&z(za),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ma(Ta),null;case 25:return null;default:return null}}function hl(e,t){switch(Yi(t),t.tag){case 3:ma(Ta),Se();break;case 26:case 27:case 5:we(t);break;case 4:Se();break;case 31:t.memoizedState!==null&&jo(t);break;case 13:jo(t);break;case 19:Po(t);break;case 10:ma(t.type);break;case 22:case 23:jo(t),wo(),e!==null&&z(za);break;case 24:ma(Ta)}}function gl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){pf(t,t.return,e)}}function _l(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){pf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){pf(t,t.return,e)}}function vl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{yo(t,n)}catch(t){pf(e,e.return,t)}}}function yl(e,t,n){n.props=mc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){pf(e,t,n)}}function bl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=di(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Ip(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Lp(e);p(e.child,!1,em,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){pf(e,t,n)}}function xl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){pf(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){pf(e,t,n)}else n.current=null}}function Sl(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)nm(e.stateNode,t[n])}function Cl(e){for(var t=e.return;t!==null&&(El(t)&&nm(e.stateNode,t.stateNode),!Tl(t));)t=t.return}function wl(e){for(var t=e.return;t!==null&&(El(t)&&rm(e.stateNode,t.stateNode),!Tl(t));)t=t.return}function Tl(e){return e.tag===5||e.tag===3||e.tag===27}function El(e){return e&&e.tag===7&&e.stateNode!==null}function Dl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){pf(e,e.return,t)}}function Ol(e,t,n){try{var r=e.stateNode;op(r,e.type,n,t),r[bt]=t}catch(t){pf(e,e.return,t)}}function kl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&wp(e.type)||e.tag===4}function Al(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||kl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&wp(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function jl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=hn)),Sl(e,r),B=!0;else if(i!==4&&(i===27&&(Sl(e,r),r=null,wp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(jl(e,t,n,r),e=e.sibling;e!==null;)jl(e,t,n,r),e=e.sibling}function Ml(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Sl(e,r),B=!0;else if(i!==4&&(i===27&&(Sl(e,r),r=null,wp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Ml(e,t,n,r),e=e.sibling;e!==null;)Ml(e,t,n,r),e=e.sibling}function Nl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);ip(t,r,n),t[yt]=e,t[bt]=n}catch(t){pf(e,e.return,t)}}var Pl=!1,Fl=null;function Il(e){(e.tag===30||e.subtreeFlags&33554432)&&(Pl=!0)}var Ll=null;function Rl(){var e=Ll;return Ll=null,e}var zl=0;function Bl(e,t,n,r,i){return zl=0,Vl(e.child,t,n,r,i)}function Vl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Ap(o);r.push(s),s.view&&(a=!0)}else a||Ap(o).view&&(a=!0);Pl=!0,Dp(o,zl===0?t:t+`_`+zl,n),zl++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||Vl(e.child,t,n,r,i)&&(a=!0));e=e.sibling}return a}function Hl(e,t){for(;e!==null;)e.tag===5?Op(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Hl(e.child,t)),e=e.sibling}function Ul(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Ul(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=pi(t.default,t.share),t!==`none`&&(Bl(e,n,t,null,!1)||Hl(e.child,!1))}e=e.sibling}}function Wl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=di(r,n),a=pi(r.default,n.paired?r.share:r.enter);a===`none`?Ul(e):Bl(e,i,a,null,!1)?(Ul(e),n.paired||t||Md(e,r.onEnter)):Hl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Wl(e,t),e=e.sibling;else Ul(e)}function Gl(e){if(Fl!==null&&Fl.size!==0){var t=Fl;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=pi(n.default,n.share);if(a!==`none`&&(Bl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Md(e,n.onShare)):Hl(e.child,!1)),t.delete(r),t.size===0)break}}}Gl(e)}e=e.sibling}}}function Kl(e){if(e.tag===30){var t=e.memoizedProps,n=di(t,e.stateNode),r=Fl===null?void 0:Fl.get(n),i=pi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Bl(e,n,i,null,!1)?r===void 0?Md(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Fl.delete(n),Md(e,t.onShare)):Hl(e.child,!1)),Fl!==null&&Gl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Kl(e),e=e.sibling;else Fl!==null&&Gl(e)}function ql(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=di(t,e.stateNode);t=pi(t.default,t.update),e.flags&=-5,t!==`none`&&Bl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&ql(e);e=e.sibling}}function Jl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Hl(e.child,!1))}Jl(e)}e=e.sibling}}function Yl(e){if(e.tag===30)e.stateNode.paired=null,Hl(e.child,!1),Jl(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Yl(e),e=e.sibling;else Jl(e)}function Xl(e){for(e=e.child;e!==null;)e.tag===30?Hl(e.child,!1):e.subtreeFlags&33554432&&Xl(e),e=e.sibling}function Zl(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&zl<a.length){var l=a[zl],u=Ap(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&Dp(c,zl===0?n:n+`_`+zl,i),s&&e.flags&4||(Ll===null&&(Ll=[]),Ll.push(c,zl===0?r:r+`_`+zl,t.memoizedProps)),zl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:Zl(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function Ql(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=di(n,r),a=pi(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(jp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;zl=0,i=Zl(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Md(e,n.onUpdate))}else e.subtreeFlags&33554432&&Ql(e,t);e=e.sibling}}var $l=!1,eu=!1,tu=!1,nu=!1,ru=typeof WeakSet==`function`?WeakSet:Set,iu=null,X=!1,au=!1,ou=!1,su=!1;function cu(e,t,n){if(e=e.containerInfo,lp=vh,e=Vr(e),Hr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(up={focusedElem:e,selectionRange:r},vh=!1,n=(n&335544064)===n,iu=t,t=n?9270:1024;iu!==null;){if(e=iu,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&Kl(r[a]);if(e.alternate===null&&e.flags&2)n&&Il(e),lu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&Kl(r),lu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Il(e),lu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,iu=r):(n&&ql(e),lu(n))}}Fl=null}function lu(e){for(;iu!==null;){var t=iu,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=mc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){pf(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)im(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:im(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=di(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=pi(a.default,a.update),a!==`none`&&Bl(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,iu=r;break}iu=t.return}}function uu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Au(e,n),r&4&&gl(5,n);break;case 1:if(Au(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){pf(n,n.return,e)}else{var i=mc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){pf(n,n.return,e)}}}r&64&&vl(n),r&512&&bl(n,n.return);break;case 3:if(Au(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{yo(e,t)}catch(e){pf(n,n.return,e)}}break;case 27:t===null&&r&4&&Nl(n);case 26:case 5:Au(e,n),t===null&&r&4&&Dl(n),r&512&&bl(n,n.return);break;case 12:Au(e,n);break;case 31:Au(e,n),r&4&&yu(e,n);break;case 13:Au(e,n),r&4&&bu(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=_f.bind(null,n),um(e,n))));break;case 22:if(r=n.memoizedState!==null||$l,!r){var a=t!==null&&t.memoizedState!==null||eu;t=$l,i=eu,$l=r,(eu=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Mu(e,n,r)):Au(e,n),$l=t,eu=i}break;case 30:Au(e,n),r&512&&bl(n,n.return);break;case 7:r&512&&bl(n,n.return);default:Au(e,n)}}function du(e,t){for(e=e.child;e!==null;)fu(e,t),e=e.sibling}function fu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){pf(e,e.return,t)}pu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,B=!0}catch(t){pf(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?Ep(s,!0):Ep(e.stateNode,!1)}catch(t){pf(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&du(e,t);break;default:du(e,t)}}function pu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:fu(n,r);break a;case 22:n.memoizedState===null&&pu(n,r);break a;default:pu(n,r)}}e=e.sibling}}function mu(e){var t=e.alternate;t!==null&&(e.alternate=null,mu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ot(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var hu=null,gu=!1;function _u(e,t,n){for(n=n.child;n!==null;)vu(e,t,n),n=n.sibling}function vu(e,t,n){if(qe&&typeof qe.onCommitFiberUnmount==`function`)try{qe.onCommitFiberUnmount(Ke,n)}catch{}switch(n.tag){case 26:eu||xl(n,t),_u(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!eu&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:eu||xl(n,t),wl(n);var r=hu,i=gu;wp(n.type)&&(hu=n.stateNode,gu=!1),_u(e,t,n),vm(n.stateNode,n.type,n.memoizedProps),hu=r,gu=i;break;case 5:eu||xl(n,t),wl(n);case 6:if(n.tag===6&&wl(n),r=hu,i=gu,hu=null,_u(e,t,n),hu=r,gu=i,hu!==null){if(gu)try{(hu.nodeType===9?hu.body:hu.nodeName===`HTML`?hu.ownerDocument.body:hu).removeChild(n.stateNode),B=!0}catch(e){pf(n,t,e)}else try{hu.removeChild(n.stateNode),B=!0}catch(e){pf(n,t,e)}}break;case 18:hu!==null&&(gu?(e=hu,Tp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Wh(e)):Tp(hu,n.stateNode));break;case 4:r=hu,i=gu,hu=n.stateNode.containerInfo,gu=!0,_u(e,t,n),hu=r,gu=i;break;case 0:case 11:case 14:case 15:_l(2,n,t),eu||_l(4,n,t),_u(e,t,n);break;case 1:eu||(xl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&yl(n,t,r)),_u(e,t,n);break;case 21:_u(e,t,n);break;case 22:eu=(r=eu)||n.memoizedState!==null,_u(e,t,n),eu=r;break;case 30:xl(n,t),_u(e,t,n);break;case 7:eu||xl(n,t),_u(e,t,n);break;default:_u(e,t,n)}}function yu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Wh(e)}catch(e){pf(t,t.return,e)}}}function bu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Wh(e)}catch(e){pf(t,t.return,e)}}function xu(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ru),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ru),t;default:throw Error(i(435,e.tag))}}function Su(e,t){var n=xu(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=vf.bind(null,e,t);t.then(r,r)}})}function Cu(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(wp(l.type)){hu=l.stateNode,gu=!1;break a}break;case 5:hu=l.stateNode,gu=!1;break a;case 3:case 4:hu=l.stateNode.containerInfo,gu=!0;break a}l=l.return}if(hu===null)throw Error(i(160));vu(s,c,o),hu=null,gu=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Tu(t,e,n),t=t.sibling}var wu=null;function Tu(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}Cu(t,e,n),Eu(e),a&4&&(_l(3,e,e.return),gl(3,e),_l(5,e,e.return));break;case 1:Cu(t,e,n),Eu(e),a&512&&(eu||r===null||xl(r,r.return)),a&64&&$l&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=wu,Cu(t,e,n),Eu(e),a&512&&(eu||r===null||xl(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if($l)e.stateNode=mp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[Et]||r[yt]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),ip(r,t,n),r[yt]=e,Nt(r),t=r;break a;case`link`:if(o=qm(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),ip(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=qm(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),ip(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[yt]=e,Nt(r),t=r}e.stateNode=t}}else $l||Jm(o,e.type,e.stateNode)}else e.stateNode=Hm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&Ol(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||eu||t.parentNode.removeChild(t)):a.count--,n===null?$l||Jm(o,e.type,e.stateNode):Hm(o,n,e.memoizedProps))}break;case 27:Cu(t,e,n),Eu(e),a&512&&(eu||r===null||xl(r,r.return)),r!==null&&a&4&&Ol(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=tu,tu=!1,Cu(t,e,n),tu=o,Eu(e),a&512&&(eu||r===null||xl(r,r.return)),e.flags&32){t=e.stateNode;try{sn(t,``),B=!0}catch(t){pf(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Ol(e,t,r===null?t:r.memoizedProps)),a&1024&&(nu=!0);break;case 6:if(Cu(t,e,n),Eu(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,B=!0}catch(t){pf(e,e.return,t)}}break;case 3:if(B=!1,Km=null,o=wu,wu=Sm(t.containerInfo),Cu(t,e,n),wu=o,Eu(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Wh(t.containerInfo)}catch(t){pf(e,e.return,t)}nu&&(nu=!1,Du(e)),B=!1;break;case 4:a=tu,tu=$l,r=Ut(),o=wu,wu=Sm(e.stateNode.containerInfo),Cu(t,e,n),Eu(e),wu=o,B&&au&&(ou=!0),B=r,tu=a;break;case 12:Cu(t,e,n),Eu(e);break;case 31:Cu(t,e,n),Eu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Su(e,t)));break;case 13:Cu(t,e,n),Eu(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(md=Le()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Su(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=$l,l=eu,u=tu;$l=c||o,tu=u||o,eu=l||s,Cu(t,e,n),eu=l,tu=u,$l=c,Eu(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||$l||eu||(t=s||eu,n=$l,r=eu,$l=o||$l,eu=t,ju(e,2),$l=n,eu=r),!o&&tu||du(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Su(e,n))));break;case 19:Cu(t,e,n),Eu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Su(e,t)));break;case 30:a&512&&(eu||r===null||xl(r,r.return)),a=Ut(),o=au,s=(n&335544064)===n,c=e.memoizedProps,au=s&&pi(c.default,c.update)!==`none`,Cu(t,e,n),Eu(e),s&&r!==null&&B&&(e.flags|=4),au=o,B=a;break;case 21:break;case 7:a&512&&(eu||r===null||xl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Cu(t,e,n),Eu(e)}}function Eu(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(kl(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(El(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(Tl(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Ml(e,Al(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(sn(l,``),n.flags&=-33),Ml(e,Al(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;jl(e,Al(e),u,s);break;default:throw Error(i(161))}}catch(t){pf(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Du(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Du(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,vh=!0,t.reset(),vh=!1),e=e.sibling}}function Ou(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)ku(t,e),t=t.sibling;else Ql(t,!1)}function ku(e,t){var n=e.alternate;if(n===null)Wl(e,!1);else switch(e.tag){case 3:if(su=X=!1,Rl(),Ou(t,e),!X&&!ou){if(e=Ll,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Op(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),su=!0}Ll=null;break;case 5:Ou(t,e);break;case 4:r=X,X=!1,Ou(t,e),X&&(ou=!0),X=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Ou(t,e):Wl(e,!1));break;case 30:r=X,i=Rl(),X=!1,Ou(t,e),X&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=di(a,o),o=di(n.memoizedProps,o);var s=pi(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,zl=0,t=Zl(e,n,t,o,s,a,!0),zl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Md(e,e.memoizedProps.onUpdate),Ll=i):i!==null&&(i.push.apply(i,Ll),Ll=i),X=e.flags&32?!0:r;break;default:Ou(t,e)}}function Au(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)uu(e,t.alternate,t),t=t.sibling}function ju(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:_l(4,n,n.return),ju(n,r);break;case 1:xl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&yl(n,n.return,i),ju(n,r);break;case 27:r&2&&vm(n.stateNode,n.type,n.memoizedProps);case 5:xl(n,n.return),n.tag!==5&&n.tag!==27||wl(n),ju(n,r);break;case 6:wl(n);break;case 26:xl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||eu||i.parentNode.removeChild(i),ju(n,r);break;case 22:n.memoizedState===null&&ju(n,r);break;case 30:xl(n,n.return),ju(n,r);break;case 7:xl(n,n.return);default:ju(n,r)}e=e.sibling}}function Mu(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Mu(i,a,n),gl(4,a);break;case 1:if(Mu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){pf(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)vo(l[i],c)}catch(e){pf(r,r.return,e)}}s&&o&64&&vl(a),bl(a,a.return);break;case 27:n&2&&Nl(a);case 5:a.tag!==5&&a.tag!==27||Cl(a),Mu(i,a,n),s&&r===null&&o&4&&Dl(a),bl(a,a.return);break;case 6:Cl(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||$l||Jm(Sm(c.ownerDocument),a.type,c),Mu(i,a,n),s&&r===null&&o&4&&Dl(a),bl(a,a.return);break;case 12:Mu(i,a,n);break;case 31:Mu(i,a,n),s&&o&4&&yu(i,a);break;case 13:Mu(i,a,n),s&&o&4&&bu(i,a);break;case 22:a.memoizedState===null&&Mu(i,a,n),bl(a,a.return);break;case 30:Mu(i,a,n),bl(a,a.return);break;case 7:bl(a,a.return);default:Mu(i,a,n)}t=t.sibling}}function Nu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Da(n))}function Pu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Da(e))}function Fu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Iu(e,t,n,r),t=t.sibling;else i&&Xl(t)}function Iu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Yl(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Fu(e,t,n,r),a&2048&&gl(9,t);break;case 1:Fu(e,t,n,r);break;case 3:Fu(e,t,n,r),i&&su&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Da(a)));break;case 12:if(a&2048){Fu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){pf(t,t.return,e)}}else Fu(e,t,n,r);break;case 31:Fu(e,t,n,r);break;case 13:Fu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&Yl(t),o._visibility&2?Fu(e,t,n,r):(o._visibility|=2,Lu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&Yl(s),o._visibility&2?Fu(e,t,n,r):Ru(e,t)),a&2048&&Nu(s,t);break;case 24:Fu(e,t,n,r),a&2048&&Pu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Hl(a.child,!0),Hl(t.child,!0))),Fu(e,t,n,r);break;default:Fu(e,t,n,r)}}function Lu(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Lu(a,o,s,c,i),gl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Lu(a,o,s,c,i)):u._visibility&2?Lu(a,o,s,c,i):Ru(a,o),i&&l&2048&&Nu(o.alternate,o);break;case 24:Lu(a,o,s,c,i),i&&l&2048&&Pu(o.alternate,o);break;default:Lu(a,o,s,c,i)}t=t.sibling}}function Ru(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Ru(n,r),i&2048&&Nu(r.alternate,r);break;case 24:Ru(n,r),i&2048&&Pu(r.alternate,r);break;default:Ru(n,r)}t=t.sibling}}var zu=8192;function Bu(e,t,n){if(e.subtreeFlags&zu)for(e=e.child;e!==null;)Vu(e,t,n),e=e.sibling}function Vu(e,t,n){switch(e.tag){case 26:Bu(e,t,n),e.flags&zu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&$m(n,e)):eh(n,wu,e.memoizedState,e.memoizedProps));break;case 5:Bu(e,t,n),e.flags&zu&&(e=e.stateNode,(t&335544128)===t&&$m(n,e));break;case 3:case 4:var r=wu;wu=Sm(e.stateNode.containerInfo),Bu(e,t,n),wu=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=zu,zu=16777216,Bu(e,t,n),zu=r):Bu(e,t,n));break;case 30:if((e.flags&zu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Fl===null&&(Fl=new Map),Fl.set(r,i)}Bu(e,t,n);break;default:Bu(e,t,n)}}function Hu(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Uu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];iu=r,Ku(r,e)}Hu(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Wu(e),e=e.sibling}function Wu(e){switch(e.tag){case 0:case 11:case 15:Uu(e),e.flags&2048&&_l(9,e,e.return);break;case 3:Uu(e);break;case 12:Uu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Gu(e)):Uu(e);break;default:Uu(e)}}function Gu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];iu=r,Ku(r,e)}Hu(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:_l(8,t,t.return),Gu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Gu(t));break;default:Gu(t)}e=e.sibling}}function Ku(e,t){for(;iu!==null;){var n=iu;switch(n.tag){case 0:case 11:case 15:_l(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Da(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,iu=r;else a:for(n=e;iu!==null;){r=iu;var i=r.sibling,a=r.return;if(mu(r),r===n){iu=null;break a}if(i!==null){i.return=a,iu=i;break a}iu=a}}}var qu={getCacheForType:function(e){var t=ya(Ta),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ya(Ta).controller.signal}},Ju=typeof WeakMap==`function`?WeakMap:Map,Yu=0,Xu=null,Zu=null,Qu=0,$u=0,ed=null,td=!1,nd=!1,rd=!1,id=0,ad=0,od=0,sd=0,cd=0,ld=0,ud=0,dd=null,fd=null,pd=!1,md=0,hd=0,gd=1/0,_d=null,vd=null,yd=0,bd=null,xd=null,Sd=0,Cd=0,wd=null,Td=null,Ed=null,Z=null,Dd=null,Od=0,kd=null;function Ad(){return Yu&2&&Qu!==0?Qu&-Qu:L.T===null?gt():Pf()}function jd(){if(ld===0){if(!(Qu&536870912)||$i){var e=et;et<<=1,!(et&3932160)&&(et=262144),ld=e}else ld=536870912}return e=To.current,e!==null&&(e.flags|=32),ld}function Md(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Ip(di(e.memoizedProps,n))),Z===null&&(Z=[]),Z.push(t.bind(null,r))}}function Nd(e,t,n){(e===Xu&&($u===2||$u===9)||e.cancelPendingCommit!==null)&&(Bd(e,0),Ld(e,Qu,ld,!1)),lt(e,n),(!(Yu&2)||e!==Xu)&&(e===Xu&&(!(Yu&2)&&(sd|=n),ad===4&&Ld(e,Qu,ld,!1)),Ef(e))}function Pd(e,t,n){if(Yu&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||it(e,t),a=r?Jd(e,t):Kd(e,t,!0),o=r;do{if(a===0){nd&&!r&&Ld(e,t,0,!1);break}if(n=e.current.alternate,o&&!Id(n))a=Kd(e,t,!1),o=!1;else{if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=dd;var l=c.current.memoizedState.isDehydrated;if(l&&(Bd(c,s).flags|=256),s=Kd(c,s,!1),s!==2&&s!==6){if(rd&&!l){c.errorRecoveryDisabledLanes|=o,sd|=o,a=4;break a}o=fd,fd=a,o!==null&&(fd===null?fd=o:fd.push.apply(fd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Bd(e,0),Ld(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Ld(r,t,ld,!td);break a;case 2:fd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=md+300-Le(),10<a)){if(Ld(r,t,ld,!td),rt(r,0,!0)!==0)break a;Sd=t,r.timeoutHandle=vp(Fd.bind(null,r,n,fd,_d,pd,t,ld,sd,ud,td,o,`Throttled`,-0,0),a);break a}Fd(r,n,fd,_d,pd,t,ld,sd,ud,td,o,null,-0,0)}break}}while(1);Ef(e)}function Fd(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:hn},Fl=null,Vu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=ih.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?md-Le():(a&4194048)===a?hd-Le():0,m=nh(d,m),m!==null)?(Sd=a,e.cancelPendingCommit=m(tf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Ld(e,a,o,!l)):tf(e,t,a,n,r,i,o,s,c,l,u,d)}function Id(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!H(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ld(e,t,n,r){t=at(e,t),t&=~cd,t&=~sd,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ye(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&dt(e,n,t)}function Rd(){return Yu&6?!0:(Df(0,!1),!1)}function zd(){if(Zu!==null){if($u===0)var e=Zu.return;else e=Zu,fa=da=null,es(e),$a=null,eo=0,e=Zu;for(;e!==null;)hl(e.alternate,e),e=e.return;Zu=null}}function Bd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,yp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Sd=0,zd(),Xu=e,Zu=n=Oi(e.current,null),Qu=t,$u=0,ed=null,td=!1,nd=it(e,t),rd=!1,ud=ld=cd=sd=od=ad=0,fd=dd=null,pd=!1,id=at(e,t),vi(),n}function Vd(e,t){Lo=null,L.H=oc,t===Ua||t===Ga?(t=Za(),$u=3):t===Wa?(t=Za(),$u=4):$u=t===wc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,ed=t,Zu===null&&(ad=1,vc(e,Ii(t,e.current)))}function Hd(){var e=To.current;return e===null?!0:(Qu&4194048)===Qu?Eo===null:(Qu&62914560)===Qu||Qu&536870912?e===Eo:!1}function Ud(){var e=L.H;return L.H=oc,e===null?oc:e}function Wd(){var e=L.A;return L.A=qu,e}function Gd(){ad=4,td||(Qu&4194048)!==Qu&&To.current!==null||(nd=!0),!(od&134217727)&&!(sd&134217727)||Xu===null||Ld(Xu,Qu,ld,!1)}function Kd(e,t,n){var r=Yu;Yu|=2;var i=Ud(),a=Wd();(Xu!==e||Qu!==t)&&(_d=null,Bd(e,t)),t=!1;var o=ad;a:do try{if($u!==0&&Zu!==null){var s=Zu,c=ed;switch($u){case 8:zd(),o=6;break a;case 3:case 2:case 9:case 6:To.current===null&&(t=!0);var l=$u;if($u=0,ed=null,Qd(e,s,c,l),n&&nd){o=0;break a}break;default:l=$u,$u=0,ed=null,Qd(e,s,c,l)}}qd(),o=ad;break}catch(t){Vd(e,t)}while(1);return t&&e.shellSuspendCounter++,fa=da=null,Yu=r,L.H=i,L.A=a,Zu===null&&(Xu=null,Qu=0,vi()),o}function qd(){for(;Zu!==null;)Xd(Zu)}function Jd(e,t){var n=Yu;Yu|=2;var r=Ud(),a=Wd();Xu!==e||Qu!==t?(_d=null,gd=Le()+500,Bd(e,t)):nd=it(e,t);a:do try{if($u!==0&&Zu!==null){t=Zu;var o=ed;b:switch($u){case 1:$u=0,ed=null,Qd(e,t,o,1);break;case 2:case 9:if(qa(o)){$u=0,ed=null,Zd(t);break}t=function(){$u!==2&&$u!==9||Xu!==e||($u=7),Ef(e)},o.then(t,t);break a;case 3:$u=7;break a;case 4:$u=5;break a;case 7:qa(o)?($u=0,ed=null,Zd(t)):($u=0,ed=null,Qd(e,t,o,7));break;case 5:var s=null;switch(Zu.tag){case 26:s=Zu.memoizedState;case 5:case 27:var c=Zu;if(s?Zm(s):c.stateNode.complete){$u=0,ed=null;var l=c.sibling;if(l!==null)Zu=l;else{var u=c.return;u===null?Zu=null:(Zu=u,$d(u))}break b}}$u=0,ed=null,Qd(e,t,o,5);break;case 6:$u=0,ed=null,Qd(e,t,o,6);break;case 8:zd(),ad=6;break a;default:throw Error(i(462))}}Yd();break}catch(t){Vd(e,t)}while(1);return fa=da=null,L.H=r,L.A=a,Yu=n,Zu===null?(Xu=null,Qu=0,vi(),ad):0}function Yd(){for(;Zu!==null&&!Fe();)Xd(Zu)}function Xd(e){var t=ol(e.alternate,e,id);e.memoizedProps=e.pendingProps,t===null?$d(e):Zu=t}function Zd(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Bc(n,t,t.pendingProps,t.type,void 0,Qu);break;case 11:t=Bc(n,t,t.pendingProps,t.type.render,t.ref,Qu);break;case 5:es(t);var r=t;r===Zi&&($i?(aa(r),r.tag===5&&r.stateNode!=null&&(Qi=r.stateNode)):(aa(r),$i=!0));default:hl(n,t),t=Zu=ki(t,id),t=ol(n,t,id)}e.memoizedProps=e.pendingProps,t===null?$d(e):Zu=t}function Qd(e,t,n,r){fa=da=null,es(t),$a=null,eo=0;var i=t.return;try{if(Cc(e,i,t,n,Qu)){ad=1,vc(e,Ii(n,e.current)),Zu=null;return}}catch(t){if(i!==null)throw Zu=i,t;ad=1,vc(e,Ii(n,e.current)),Zu=null;return}t.flags&32768?($i||r===1?e=!0:nd||Qu&536870912?e=!1:(td=e=!0,(r===2||r===9||r===3||r===6)&&(r=To.current,r!==null&&r.tag===13&&(r.flags|=16384))),ef(t,e)):$d(t)}function $d(e){var t=e;do{if(t.flags&32768){ef(t,td);return}e=t.return;var n=pl(t.alternate,t,id);if(n!==null){Zu=n;return}if(t=t.sibling,t!==null){Zu=t;return}Zu=t=e}while(t!==null);ad===0&&(ad=5)}function ef(e,t){do{var n=ml(e.alternate,e);if(n!==null){n.flags&=32767,Zu=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Zu=e;return}Zu=e=n}while(e!==null);ad=6,Zu=null}function tf(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do uf();while(yd!==0);if(Yu&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===Xu&&(Zu=Xu=null,Qu=0),xd=t,bd=e,Sd=n,wd=a,Td=r,nf(e,t,n,s,c,l,f)}}function nf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Cd=s,s|=_i,ut(e,n,s,r,i,a),Z=null,(n&335544064)===n?(Dd=Aa(e),r=10262):(Dd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,yf(Ve,function(){return df(),null})):(e.callbackNode=null,e.callbackPriority=0),Pl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=L.T,L.T=null,i=R.p,R.p=2,a=Yu,Yu|=4;try{cu(e,t,n)}finally{Yu=a,R.p=i,L.T=r}}yd=1,Pl?Ed=Pp(o,e.containerInfo,Dd,of,sf,af,cf,df,rf,null,null):(of(),sf(),cf())}function rf(e){if(yd!==0){var t=bd.onRecoverableError;t(e,{componentStack:null})}}function af(){yd===3&&(yd=0,ku(xd,bd),yd=4)}function of(){if(yd===1){yd=0;var e=bd,t=xd,n=Sd,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=L.T,L.T=null;var i=R.p;R.p=2;var a=Yu;Yu|=4;try{au=ou=!1,Tu(t,e,n),n=up;var o=Vr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Br(s.ownerDocument.documentElement,s)){if(c!==null&&Hr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=U(s,h),v=U(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}vh=!!lp,up=lp=null}finally{Yu=a,R.p=i,L.T=r}}e.current=t,yd=2}}function sf(){if(yd===2){yd=0;var e=bd,t=xd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=L.T,L.T=null;var r=R.p;R.p=2;var i=Yu;Yu|=4;try{uu(e,t.alternate,t)}finally{Yu=i,R.p=r,L.T=n}}yd=3}}function cf(){if(yd===4||yd===3){yd=0;var e=Ed;Ed=null,Ie();var t=bd,n=xd,r=Sd,i=Td,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?yd=5:(yd=0,xd=bd=null,lf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(vd=null),ht(r),n=n.stateNode,qe&&typeof qe.onCommitFiberRoot==`function`)try{qe.onCommitFiberRoot(Ke,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=L.T,a=R.p,R.p=2,L.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{L.T=n,R.p=a}}if(i=Z,o=Dd,Dd=null,i!==null&&(Z=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);Sd&3&&uf(),Ef(t),a=t.pendingLanes,r&261930&&a&42?t===kd?Od++:(Od=0,kd=t):(Od=0,kd=null),Df(0,!1)}}function lf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Da(t)))}function uf(){return Ed!==null&&(Ed.skipTransition(),Ed=null),of(),sf(),cf(),df()}function df(){if(yd!==5)return!1;var e=bd,t=Cd;Cd=0;var n=ht(Sd),r=L.T,a=R.p;try{R.p=32>n?32:n,L.T=null,n=wd,wd=null;var o=bd,s=Sd;if(yd=0,xd=bd=null,Sd=0,Yu&6)throw Error(i(331));var c=Yu;if(Yu|=4,Wu(o.current),Iu(o,o.current,s,n),Yu=c,Df(0,!1),qe&&typeof qe.onPostCommitFiberRoot==`function`)try{qe.onPostCommitFiberRoot(Ke,o)}catch{}return!0}finally{R.p=a,L.T=r,lf(e,t)}}function ff(e,t,n){t=Ii(n,t),t=bc(e.stateNode,t,2),e=fo(e,t,2),e!==null&&(lt(e,2),Ef(e))}function pf(e,t,n){if(e.tag===3)ff(e,e,n);else for(;t!==null;){if(t.tag===3){ff(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(vd===null||!vd.has(r))){e=Ii(n,e),n=xc(2),r=fo(t,n,2),r!==null&&(Sc(n,r,t,e),lt(r,2),Ef(r));break}}t=t.return}}function mf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ju;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(rd=!0,i.add(n),e=hf.bind(null,e,t,n),t.then(e,e))}function hf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Xu===e&&(Qu&n)===n&&(ad===4||ad===3&&(Qu&62914560)===Qu&&300>Le()-md?Yu&2?cd|=n:Bd(e,0):cd|=n,ud===Qu&&(ud=0)),Ef(e)}function gf(e,t){t===0&&(t=st()),e=xi(e,t),e!==null&&(lt(e,t),Ef(e))}function _f(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),gf(e,n)}function vf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),gf(e,n)}function yf(e,t){return Ne(e,t)}var bf=null,xf=null,Sf=!1,Cf=!1,wf=!1,Tf=0;function Ef(e){e!==xf&&e.next===null&&(xf===null?bf=xf=e:xf=xf.next=e),Cf=!0,Sf||(Sf=!0,Nf())}function Df(e,t){if(!wf&&Cf){wf=!0;do for(var n=!1,r=bf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ye(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Mf(r,a))}else a=Qu,a=rt(r,r===Xu?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||it(r,a)||(n=!0,Mf(r,a))}r=r.next}while(n);wf=!1}}function Of(){kf()}function kf(){Cf=Sf=!1;var e=0;Tf!==0&&_p()&&(e=Tf);for(var t=Le(),n=null,r=bf;r!==null;){var i=r.next,a=Af(r,t);a===0?(r.next=null,n===null?bf=i:n.next=i,i===null&&(xf=n)):(n=r,(e!==0||a&3)&&(Cf=!0)),r=i}yd!==0&&yd!==5||Df(e,!1),Tf!==0&&(Tf=0)}function Af(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ye(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=ot(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Xu,n=Qu,n=rt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&($u===2||$u===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Pe(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||it(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Pe(r),ht(n)){case 2:case 8:n=Be;break;case 32:n=Ve;break;case 268435456:n=Ue;break;default:n=Ve}return r=jf.bind(null,e),n=Ne(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Pe(r),e.callbackPriority=2,e.callbackNode=null,2}function jf(e,t){if(yd!==0&&yd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(uf()&&e.callbackNode!==n)return null;var r=Qu;return r=rt(e,e===Xu?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Pd(e,r,t),Af(e,Le()),e.callbackNode!=null&&e.callbackNode===n?jf.bind(null,e):null)}function Mf(e,t){if(uf())return null;Pd(e,t,!0)}function Nf(){Sp(function(){Yu&6?Ne(ze,Of):kf()})}function Pf(){if(Tf===0){var e=Na;e===0&&(e=$e,$e<<=1,!($e&261888)&&($e=256)),Tf=e}return Tf}function Ff(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:mn(e)}function If(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Ff((i[bt]||null).action),o=r.submitter;o&&(t=(t=o[bt]||null)?Ff(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new In(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Tf!==0){var e=new FormData(i,o);Ks(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),Ks(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Lf=0;Lf<ci.length;Lf++){var Rf=ci[Lf];li(Rf.toLowerCase(),`on`+(Rf[0].toUpperCase()+Rf.slice(1)))}li(ei,`onAnimationEnd`),li(ti,`onAnimationIteration`),li(ni,`onAnimationStart`),li(`dblclick`,`onDoubleClick`),li(`focusin`,`onFocus`),li(`focusout`,`onBlur`),li(ri,`onTransitionRun`),li(ii,`onTransitionStart`),li(ai,`onTransitionCancel`),li(oi,`onTransitionEnd`),Rt(`onMouseEnter`,[`mouseout`,`mouseover`]),Rt(`onMouseLeave`,[`mouseout`,`mouseover`]),Rt(`onPointerEnter`,[`pointerout`,`pointerover`]),Rt(`onPointerLeave`,[`pointerout`,`pointerover`]),Lt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Lt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Lt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Lt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Lt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Lt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var zf=`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(` `),Bf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(zf));function Vf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){mi(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){mi(e)}i.currentTarget=null,a=c}}}}function Hf(e,t){var n=t[St];n===void 0&&(n=t[St]=new Set);var r=e+`__bubble`;n.has(r)||(Kf(t,e,2,!1),n.add(r))}function Uf(e,t,n){var r=0;t&&(r|=4),Kf(n,e,r,t)}var Wf=`_reactListening`+Math.random().toString(36).slice(2);function Gf(e){if(!e[Wf]){e[Wf]=!0,Ft.forEach(function(t){t!==`selectionchange`&&(Bf.has(t)||Uf(t,!1,e),Uf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wf]||(t[Wf]=!0,Uf(`selectionchange`,!1,t))}}function Kf(e,t,n,r){switch(Th(t)){case 2:var i=yh;break;case 8:i=bh;break;default:i=xh}n=i.bind(null,t,n,e),i=void 0,!Tn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function qf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=kt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}Sn(function(){var r=a,i=_n(n),s=[];a:{var c=si.get(e);if(c!==void 0){var l=In,u=e;switch(e){case`keypress`:if(jn(n)===0)break a;case`keydown`:case`keyup`:l=er;break;case`focusin`:u=`focus`,l=Gn;break;case`focusout`:u=`blur`,l=Gn;break;case`beforeblur`:case`afterblur`:l=Gn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Un;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Wn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=rr;break;case ei:case ti:case ni:l=Kn;break;case oi:l=ir;break;case`scroll`:case`scrollend`:l=Rn;break;case`wheel`:l=ar;break;case`copy`:case`cut`:case`paste`:l=qn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=tr;break;case`submit`:l=nr;break;case`toggle`:case`beforetoggle`:l=or}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=Cn(m,p),g!=null&&d.push(Jf(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==gn&&(u=n.relatedTarget||n.fromElement)&&(kt(u)||u[xt]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?kt(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Un,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=tr,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:jt(c),h=l==null?u:jt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,kt(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?w(c,l,Xf):null,c!==null&&Zf(s,u,c,d,!1),l!==null&&f!==null&&Zf(s,f,l,d,!0)))}a:{if(c=r?jt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Tr;else if(yr(c)){if(Er)_=Fr;else{_=Nr;var v=Mr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&dn(r.elementType)&&(_=Tr):_=Pr;if(_&&=_(e,r)){br(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?jt(r):window,e){case`focusin`:(yr(v)||v.contentEditable===`true`)&&(Wr=v,Gr=r,Kr=null);break;case`focusout`:Kr=Gr=Wr=null;break;case`mousedown`:qr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:qr=!1,Jr(s,n,i);break;case`selectionchange`:if(Ur)break;case`keydown`:case`keyup`:Jr(s,n,i)}var y;if(cr)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else gr?mr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(dr&&n.locale!==`ko`&&(gr||b!==`onCompositionStart`?b===`onCompositionEnd`&&gr&&(y=An()):(Dn=i,On=`value`in Dn?Dn.value:Dn.textContent,gr=!0)),v=Yf(r,b),0<v.length&&(b=new Jn(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=hr(n),y!==null&&(b.data=y)))),(y=ur?_r(e,n):V(e,n))&&(b=Yf(r,`onBeforeInput`),0<b.length&&(v=new Jn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),If(s,e,r,n,i)}Vf(s,t)})}function Jf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yf(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=Cn(e,n),i!=null&&r.unshift(Jf(e,i,a)),i=Cn(e,t),i!=null&&r.push(Jf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Xf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Zf(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=Cn(n,a),l!=null&&o.unshift(Jf(n,l,c))):i||(l=Cn(n,a),l!=null&&o.push(Jf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Qf=/\r\n?/g,$f=/\u0000|\uFFFD/g;function ep(e){return(typeof e==`string`?e:``+e).replace(Qf,`
|
|
48
|
-
`).replace($f,``)}function tp(e,t){return t=ep(t),ep(e)===t}function np(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||sn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&sn(e,``+r);else return;break;case`className`:Gt(e,`class`,r);break;case`tabIndex`:Gt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Gt(e,n,r);break;case`style`:un(e,r,o);return;case`data`:if(t!==`object`){Gt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=mn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&np(e,t,`name`,a.name,a,null),np(e,t,`formEncType`,a.formEncType,a,null),np(e,t,`formMethod`,a.formMethod,a,null),np(e,t,`formTarget`,a.formTarget,a,null)):(np(e,t,`encType`,a.encType,a,null),np(e,t,`method`,a.method,a,null),np(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=mn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=hn);return;case`onScroll`:r!=null&&Hf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Hf(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=mn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`: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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Hf(`beforetoggle`,e),Hf(`toggle`,e),Wt(e,`popover`,r);break;case`xlinkActuate`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Wt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=fn.get(n)||n,Wt(e,n,r);else return}B=!0}function rp(e,t,n,r,a,o){switch(n){case`style`:un(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)sn(e,r);else if(typeof r==`number`||typeof r==`bigint`)sn(e,``+r);else return;break;case`onScroll`:r!=null&&Hf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Hf(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=hn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!It.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[bt]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}B=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Wt(e,n,r)}return}B=!0}function ip(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Hf(`error`,e),Hf(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:np(e,t,o,s,n,null)}}a&&np(e,t,`srcSet`,n.srcSet,n,null),r&&np(e,t,`src`,n.src,n,null);return;case`input`:Hf(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:np(e,t,r,d,n,null)}}tn(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Hf(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:np(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&rn(e,!!r,n,!0):rn(e,!!r,t,!1);return;case`textarea`:for(s in Hf(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:np(e,t,s,c,n,null)}on(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:np(e,t,l,r,n,null)}return;case`dialog`:Hf(`beforetoggle`,e),Hf(`toggle`,e),Hf(`cancel`,e),Hf(`close`,e);break;case`iframe`:case`object`:Hf(`load`,e);break;case`video`:case`audio`:for(r=0;r<zf.length;r++)Hf(zf[r],e);break;case`image`:Hf(`error`,e),Hf(`load`,e);break;case`details`:Hf(`toggle`,e);break;case`embed`:case`source`:case`link`:Hf(`error`,e),Hf(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:np(e,t,u,r,n,null)}return;default:if(dn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&rp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&np(e,t,c,r,n,null))}var ap={};function op(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||np(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(B=!0),o=m;break;case`name`:m!==f&&(B=!0),a=m;break;case`checked`:m!==f&&(B=!0),u=m;break;case`defaultChecked`:m!==f&&(B=!0),d=m;break;case`value`:m!==f&&(B=!0),s=m;break;case`defaultValue`:m!==f&&(B=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&np(e,t,p,m,r,f)}}en(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||np(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(B=!0),p=o;break;case`defaultValue`:o!==l&&(B=!0),c=o;break;case`multiple`:o!==l&&(B=!0),s=o;default:o!==l&&np(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?rn(e,!!n,n?[]:``,!1):rn(e,!!n,t,!0)):rn(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:np(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(B=!0),p=a;break;case`defaultValue`:a!==o&&(B=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&np(e,t,s,a,r,o)}an(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:np(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(B=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:np(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&np(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:np(e,t,u,p,r,m)}return;default:if(dn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&rp(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||rp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&np(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||np(e,t,f,p,r,m)}function sp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function cp(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&sp(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&sp(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var lp=null,up=null;function dp(e){return e.nodeType===9?e:e.ownerDocument}function fp(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function pp(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function mp(e,t,n,r){return n=dp(n).createElement(e),n[yt]=r,n[bt]=t,ip(n,e,t),Nt(n),n}function hp(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var gp=null;function _p(){var e=window.event;return e&&e.type===`popstate`?e!==gp&&(gp=e,!0):(gp=null,!1)}var vp=typeof setTimeout==`function`?setTimeout:void 0,yp=typeof clearTimeout==`function`?clearTimeout:void 0,bp=typeof Promise==`function`?Promise:void 0,xp=typeof requestAnimationFrame==`function`?requestAnimationFrame:vp,Sp=typeof queueMicrotask==`function`?queueMicrotask:bp===void 0?vp:function(e){return bp.resolve(null).then(e).catch(Cp)};function Cp(e){setTimeout(function(){throw e})}function wp(e){return e===`head`}function Tp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Wh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)ym(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,ym(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Et]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&ym(e.ownerDocument.body)}n=i}while(n);Wh(t)}function Ep(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function Dp(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Op(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function kp(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Ap(e){return kp(e.getBoundingClientRect(),getComputedStyle(e),e)}function jp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return kp(t,n,e)}function Mp(e){return e.documentElement.clientHeight}function Np(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Pp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Mp(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=Qm(f),u>th){s.length=o;break}f=new Promise(Np.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Fp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Fp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:T({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Fp.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Fp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Ip(e){return{name:e,group:new Fp(`group`,e),imagePair:new Fp(`image-pair`,e),old:new Fp(`old`,e),new:new Fp(`new`,e)}}function Lp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Lp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Hp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Bp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),p(this._fragmentFiber.child,!1,Rp,e,s,r)}this._eventListeners=a}};function Rp(e,t,n,r){return v(e).addEventListener(t,n,r),!1}Lp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Hp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Bp(i.optionsOrUseCapture),p(this._fragmentFiber.child,!1,zp,e,n,i),r.splice(t,1),a!==null&&a()}};function zp(e,t,n,r){return v(e).removeEventListener(t,n,r),!1}function Bp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Vp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Hp(e,t,n,r){if(e.length===0)return-1;r=Vp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Vp(a.optionsOrUseCapture)===r)return i}return-1}Lp.prototype.dispatchEvent=function(e){var t=m(this._fragmentFiber);if(t===null)return!0;t=v(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Bp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Bp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Lp.prototype.focus=function(e){p(this._fragmentFiber.child,!0,Up,e,void 0,void 0)};function Up(e,t){return e.tag!==6&&(e=v(e),hm(e,t))}Lp.prototype.focusLast=function(e){var t=[];p(this._fragmentFiber.child,!0,Wp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Up(t[n],e);n--);};function Wp(e,t){return t.push(e),!1}Lp.prototype.blur=function(){var e=m(this._fragmentFiber);e!==null&&(e=v(e),e=dp(e).activeElement,e!==null&&p(this._fragmentFiber.child,!1,Gp,e,void 0,void 0))};function Gp(e,t){return e.tag!==6&&(e=v(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Lp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),p(this._fragmentFiber.child,!1,Kp,e,void 0,void 0)};function Kp(e,t){return e.tag===6||(e=v(e),t.observe(e)),!1}Lp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),p(this._fragmentFiber.child,!1,qp,e,void 0,void 0);for(var n=t=0;n<Jp.length;n++){var r=Jp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Jp[t++]=r}Jp.length=t}};function qp(e,t){return e.tag===6||(e=v(e),t.unobserve(e)),!1}var Jp=[],Yp=!1;function Xp(e,t,n){Jp.push({fragmentInstance:e,observer:t,instance:n}),Yp||(Yp=!0,gm(function(){Yp=!1;var e=Jp;Jp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Lp.prototype.getClientRects=function(){var e=[];return p(this._fragmentFiber.child,!1,Zp,e,void 0,void 0),e};function Zp(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=v(e),t.push.apply(t,e.getClientRects());return!1}Lp.prototype.getRootNode=function(e){var t=m(this._fragmentFiber);return t===null?this:v(t).getRootNode(e)},Lp.prototype.compareDocumentPosition=function(e){var t=m(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];p(this._fragmentFiber.child,!1,Wp,n,void 0,void 0);var r=v(t);if(n.length===0){if(n=r,h(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=g(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=v(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=v(n[0]),i=v(n[n.length-1]);var a=h(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Qp(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Qp(e,t,n,r,i){var a=kt(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=m(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=w(n,a,C),t===null?t=!1:(p(t,!0,x,a,n),a=y,y=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=w(r,a,C),t===null?t=!1:(p(t,!0,S,a,r),a=y,b=y=null,t=a!==null)),t):!1}function $p(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Lp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];p(this._fragmentFiber.child,!1,Wp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=g(this._fragmentFiber);if(r=n?r[1]||r[0]||m(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=v(r),$p(e,n);return}if(r=v(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=v(a),$p(a,n)):v(a).scrollIntoView(e),r+=n?-1:1}};function em(e,t){return e=v(e),tm(e,t),!1}function tm(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function nm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Bp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Jp.length;i++){var a=Jp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Jp[r++]=a)}Jp.length=r,n.observe(e)}),tm(e,t))}function rm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Bp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Xp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function im(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:im(n),Ot(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function am(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[Et])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=dm(e.nextSibling),e===null)break}return null}function om(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=dm(e.nextSibling),e===null))return null;return e}function sm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=dm(e.nextSibling),e===null))return null;return e}function cm(e){return e.data===`$?`||e.data===`$~`}function lm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function um(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function dm(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var fm=null;function pm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return dm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function mm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function hm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function gm(e){xp(function(){xp(function(t){return e(t)})})}function _m(e,t,n){switch(t=dp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function vm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&np(e,t,r,null,ap,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===hn&&(e.onclick=null),Ot(e)}function ym(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ot(e)}var bm=new Map,xm=new Set;function Sm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Cm=R.d;R.d={f:wm,r:Tm,D:Om,C:km,L:Am,m:jm,X:Nm,S:Mm,M:Pm};function wm(){var e=Cm.f(),t=Rd();return e||t}function Tm(e){var t=At(e);t!==null&&t.tag===5&&t.type===`form`?Js(t):Cm.r(e)}var Em=typeof document>`u`?null:document;function Dm(e,t,n){var r=Em;if(r&&typeof t==`string`&&t){var i=$t(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),xm.has(i)||(xm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),ip(t,`link`,e),Nt(t),r.head.appendChild(t)))}}function Om(e){Cm.D(e),Dm(`dns-prefetch`,e,null)}function km(e,t){Cm.C(e,t),Dm(`preconnect`,e,t)}function Am(e,t,n){Cm.L(e,t,n);var r=Em;if(r&&e&&t){var i=`link[rel="preload"][as="`+$t(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+$t(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+$t(n.imageSizes)+`"]`)):i+=`[href="`+$t(e)+`"]`;var a=i;switch(t){case`style`:a=Im(e);break;case`script`:a=Bm(e)}if(!(bm.has(a)||(e=T({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),bm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Lm(a))||t===`script`&&r.querySelector(Vm(a))))){var o=r.createElement(`link`);ip(o,`link`,e),t===`style`&&(o[Dt]=!0,o.onload=o.onerror=function(){Pt(o)}),Nt(o),r.head.appendChild(o)}}}function jm(e,t){Cm.m(e,t);var n=Em;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+$t(r)+`"][href="`+$t(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Bm(e)}if(!bm.has(a)&&(e=T({rel:`modulepreload`,href:e},t),bm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Vm(a)))return}r=n.createElement(`link`),ip(r,`link`,e),Nt(r),n.head.appendChild(r)}}}function Mm(e,t,n){Cm.S(e,t,n);var r=Em;if(r&&e){var i=Mt(r).hoistableStyles,a=Im(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Lm(a)))s.loading=5;else{e=T({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=bm.get(a))&&Wm(e,n);var c=o=r.createElement(`link`);Nt(c),ip(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Um(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Nm(e,t){Cm.X(e,t);var n=Em;if(n&&e){var r=Mt(n).hoistableScripts,i=Bm(e),a=r.get(i);a||(a=n.querySelector(Vm(i)),a||(e=T({src:e,async:!0},t),(t=bm.get(i))&&Gm(e,t),a=n.createElement(`script`),Nt(a),ip(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Pm(e,t){Cm.M(e,t);var n=Em;if(n&&e){var r=Mt(n).hoistableScripts,i=Bm(e),a=r.get(i);a||(a=n.querySelector(Vm(i)),a||(e=T({src:e,async:!0,type:`module`},t),(t=bm.get(i))&&Gm(e,t),a=n.createElement(`script`),Nt(a),ip(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Fm(e,t,n,r){var a=(a=ye.current)?Sm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Im(n.href),t=Mt(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Im(n.href);var o=Mt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Lm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=bm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},bm.set(e,o)),zm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Bm(n),t=Mt(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Im(e){return`href="`+$t(e)+`"`}function Lm(e){return`link[rel="stylesheet"][`+e+`]`}function Rm(e){return T({},e,{"data-precedence":e.precedence,precedence:null})}function zm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Dt]){r.loading=1;return}}else t=e.createElement(`link`),t[Dt]=!0,t.onload=t.onerror=Pt.bind(null,t),ip(t,`link`,n),Nt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Bm(e){return`[src="`+$t(e)+`"]`}function Vm(e){return`script[async]`+e}function Hm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+$t(n.href)+`"]`);if(r)return t.instance=r,Nt(r),r;var a=T({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Nt(r),ip(r,`style`,a),Um(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Im(n.href);var o=e.querySelector(Lm(a));if(o)return t.state.loading|=4,t.instance=o,Nt(o),o;r=Rm(n),(a=bm.get(a))&&Wm(r,a),o=(e.ownerDocument||e).createElement(`link`),Nt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),ip(o,`link`,r),t.state.loading|=4,Um(o,n.precedence,e),t.instance=o;case`script`:return o=Bm(n.src),(a=e.querySelector(Vm(o)))?(t.instance=a,Nt(a),a):(r=n,(a=bm.get(o))&&(r=T({},n),Gm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Nt(a),ip(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Um(r,n.precedence,e));return t.instance}function Um(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Wm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Gm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Km=null;function qm(e,t,n){if(Km===null){var r=new Map,i=Km=new Map;i.set(n,r)}else i=Km,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Et]||a[yt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Jm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Ym(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Xm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Zm(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Qm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function $m(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Qm(t),e.suspenseyImages.push(t)),e=ah.bind(e),t.decode().then(e,e))}function eh(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Im(r.href),a=t.querySelector(Lm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=ih.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Nt(a);return}a=t.ownerDocument||t,r=Rm(r),(i=bm.get(i))&&Wm(r,i),a=a.createElement(`link`),Nt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),ip(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=ih.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var th=0;function nh(e,t){return e.stylesheets&&e.count===0&&sh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&sh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&th===0&&(th=62500*cp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&sh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>th?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function rh(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)sh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function ih(){this.count--,rh(this)}function ah(){this.imgCount--,rh(this)}var oh=null;function sh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,oh=new Map,t.forEach(ch,e),oh=null,ih.call(e))}function ch(e,t){if(!(t.state.loading&4)){var n=oh.get(e);if(n)var r=n.get(null);else{n=new Map,oh.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=ih.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var lh={$$typeof:N,Provider:null,Consumer:null,_currentValue:fe,_currentValue2:fe,_threadCount:0};function uh(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,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=ct(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ct(0),this.hiddenUpdates=ct(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function dh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new uh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Ei(3,null,null,t),e.current=a,a.stateNode=e,t=Ea(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},co(a),e}function fh(e){return e?(e=wi,e):wi}function ph(e,t,n,r,i,a){i=fh(i),r.context===null?r.context=i:r.pendingContext=i,r=uo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=fo(e,r,t),n!==null&&(Nd(n,e,t),po(n,e,t))}function mh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function hh(e,t){mh(e,t),(e=e.alternate)&&mh(e,t)}function gh(e){if(e.tag===13||e.tag===31){var t=xi(e,67108864);t!==null&&Nd(t,e,67108864),hh(e,67108864)}}function _h(e){if(e.tag===13||e.tag===31){var t=Ad();t=mt(t);var n=xi(e,t);n!==null&&Nd(n,e,t),hh(e,t)}}var vh=!0;function yh(e,t,n,r){var i=L.T;L.T=null;var a=R.p;try{R.p=2,xh(e,t,n,r)}finally{R.p=a,L.T=i}}function bh(e,t,n,r){var i=L.T;L.T=null;var a=R.p;try{R.p=8,xh(e,t,n,r)}finally{R.p=a,L.T=i}}function xh(e,t,n,r){if(vh){var i=Sh(r);if(i===null)qf(e,t,r,Ch,n),Ph(e,r);else if(Ih(i,e,t,n,r))r.stopPropagation();else if(Ph(e,r),t&4&&-1<Nh.indexOf(e)){for(;i!==null;){var a=At(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=nt(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ye(o);s.entanglements[1]|=c,o&=~c}Ef(a),!(Yu&6)&&(gd=Le()+500,Df(0,!1))}}break;case 31:case 13:s=xi(a,2),s!==null&&Nd(s,a,2),Rd(),hh(a,2)}if(a=Sh(r),a===null&&qf(e,t,r,Ch,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else qf(e,t,r,null,n)}}function Sh(e){return e=_n(e),wh(e)}var Ch=null;function wh(e){if(Ch=null,e=kt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ch=e,null}function Th(e){switch(e){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`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`fullscreenerror`: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`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Re()){case ze:return 2;case Be:return 8;case Ve:case He:return 32;case Ue:return 268435456;default:return 32}default:return 32}}var Eh=!1,Dh=null,Oh=null,kh=null,Ah=new Map,jh=new Map,Mh=[],Nh=`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 Ph(e,t){switch(e){case`focusin`:case`focusout`:Dh=null;break;case`dragenter`:case`dragleave`:Oh=null;break;case`mouseover`:case`mouseout`:kh=null;break;case`pointerover`:case`pointerout`:Ah.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:jh.delete(t.pointerId)}}function Fh(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=At(t),t!==null&&gh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ih(e,t,n,r,i){switch(t){case`focusin`:return Dh=Fh(Dh,e,t,n,r,i),!0;case`dragenter`:return Oh=Fh(Oh,e,t,n,r,i),!0;case`mouseover`:return kh=Fh(kh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Ah.set(a,Fh(Ah.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,jh.set(a,Fh(jh.get(a)||null,e,t,n,r,i)),!0}return!1}function Lh(e){var t=kt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,_t(e.priority,function(){_h(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,_t(e.priority,function(){_h(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Rh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Sh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);gn=r,n.target.dispatchEvent(r),gn=null}else return t=At(n),t!==null&&gh(t),e.blockedOn=n,!1;t.shift()}return!0}function zh(e,t,n){Rh(e)&&n.delete(t)}function Bh(){Eh=!1,Dh!==null&&Rh(Dh)&&(Dh=null),Oh!==null&&Rh(Oh)&&(Oh=null),kh!==null&&Rh(kh)&&(kh=null),Ah.forEach(zh),jh.forEach(zh)}function Vh(e,n){e.blockedOn===n&&(e.blockedOn=null,Eh||(Eh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Bh)))}var Hh=null;function Uh(e){Hh!==e&&(Hh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Hh===e&&(Hh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(wh(r||n)===null)continue;break}var a=At(n);a!==null&&(e.splice(t,3),t-=3,Ks(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Wh(e){function t(t){return Vh(t,e)}Dh!==null&&Vh(Dh,e),Oh!==null&&Vh(Oh,e),kh!==null&&Vh(kh,e),Ah.forEach(t),jh.forEach(t);for(var n=0;n<Mh.length;n++){var r=Mh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Mh.length&&(n=Mh[0],n.blockedOn===null);)Lh(n),n.blockedOn===null&&Mh.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[bt]||null;if(typeof a==`function`)o||Uh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[bt]||null)s=o.formAction;else if(wh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Uh(n)}}}function Gh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!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 r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Kh(e){this._internalRoot=e}qh.prototype.render=Kh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;ph(n,Ad(),e,t,null,null)},qh.prototype.unmount=Kh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ph(e.current,2,null,e,null,null),Rd(),t[xt]=null}};function qh(e){this._internalRoot=e}qh.prototype.unstable_scheduleHydration=function(e){if(e){var t=gt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mh.length&&t!==0&&t<Mh[n].priority;n++);Mh.splice(n,0,e),n===0&&Lh(e)}};var Jh=n.version;if(Jh!==`19.3.1`)throw Error(i(527,Jh,`19.3.1`));R.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var Yh={bundleType:0,version:`19.3.1`,rendererPackageName:`react-dom`,currentDispatcherRef:L,reconcilerVersion:`19.3.1`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Xh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xh.isDisabled&&Xh.supportsFiber)try{Ke=Xh.inject(Yh),qe=Xh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=hc,s=gc,c=_c;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=dh(e,1,!1,null,null,n,r,null,o,s,c,Gh),e[xt]=t.current,Gf(e),new Kh(t)}})),Ic=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Fc()}))();Object.freeze({settings:[],manifest:[],capabilities:[]});function Lc(e){return e!==void 0&&e.settings.length+e.manifest.length+e.capabilities.length>0}function Rc(e){return e.settings.length>0?`Settings changed: re-initialise to apply`:`Package changed: re-initialise to apply`}function zc(e){let t=e=>e.map(e=>`"${e}"`).join(`, `);return`Changed on disk since the session started: ${[...e.settings.length>0?[`settings ${t(e.settings)}`]:[],...e.manifest.length>0?[`seriousgaming.sdk.json ${t(e.manifest)}`]:[],...e.capabilities.length>0?[`the scope or presence of capabilities ${t(e.capabilities)}`]:[]].join(`; `)}. These apply only when the session initialises, so it is still running on what it started with`}var Bc=[[/^\/walkthrough\/?$/,()=>({kind:`player`,teamIndex:0,participant:1})],[/^\/team\/(\d+)\/player\/(\d+)\/?$/,e=>Vc(e[1],e[2])],[/^\/team\/(\d+)\/player\/?$/,e=>Vc(e[1],`1`)],[/^\/team\/(\d+)\/observe\/?$/,e=>({kind:`observer`,teamIndex:Hc(e[1])})],[/^\/team\/(\d+)\/join\/?$/,e=>({kind:`join`,teamIndex:Hc(e[1])})],[/^\/team\/(\d+)\/waiting-room\/?$/,e=>({kind:`waiting-room`,teamIndex:Hc(e[1])})],[/^\/setup\/?$/,()=>({kind:`setup`})],[/^\/scenario-editor\/?$/,()=>({kind:`scenario-editor`})],[/^\/guide\/?$/,()=>({kind:`guide`})],[/^\/print\/?$/,()=>({kind:`print`})],[/^\/presentation\/?$/,()=>({kind:`presentation`})]];function Vc(e,t){return{kind:`player`,teamIndex:Hc(e),participant:Math.max(1,Number(t))}}function Hc(e){return Math.max(0,Number(e)-1)}function Uc(e,t){let n=new URLSearchParams(t),r=n.has(`bare`),i=n.has(`preview`),a=n.get(`scenario`),o=/^\/walkthrough(\/|$)/.test(e)?`walkthrough`:`session`;for(let[t,n]of Bc){let s=e.match(t);if(s)return{...n(s),bare:r,run:o,...a===null?{}:{scenario:a},...i?{preview:i}:{}}}return{kind:`console`,bare:r,run:o}}function Wc(e){let t=(e.teamIndex??0)+1,n=e.run===`walkthrough`?`/walkthrough`:e.kind===`player`?`/team/${t}/player/${e.participant??1}`:e.kind===`observer`?`/team/${t}/observe`:e.kind===`join`?`/team/${t}/join`:e.kind===`waiting-room`?`/team/${t}/waiting-room`:e.kind===`console`?`/`:`/${e.kind}`,r=new URLSearchParams;e.scenario!==void 0&&r.set(`scenario`,e.scenario),e.preview&&r.set(`preview`,``),e.bare&&r.set(`bare`,``);let i=r.toString().replace(/(bare|preview)=(?=&|$)/g,`$1`);return i?`${n}?${i}`:n}function Gc(e){let t=e.teams;return{maxTicks:e.maxTicks??null,teams:{min:t?.min??null,max:t?.max??null,perTeam:{minParticipants:t?.perTeam?.minParticipants??null,maxParticipants:t?.perTeam?.maxParticipants??null},defaultNames:t?.defaultNames??[]},waitingRoom:{openOnStart:e.waitingRoom?.openOnStart===!0}}}function Kc(e){let t=Gc({}),n=e.game??{};return{maxTicks:n.maxTicks??null,teams:{min:n.teams?.min??null,max:n.teams?.max??null,perTeam:{minParticipants:n.teams?.perTeam?.minParticipants??null,maxParticipants:n.teams?.perTeam?.maxParticipants??null},defaultNames:n.teams?.defaultNames??t.teams.defaultNames},waitingRoom:{openOnStart:n.waitingRoom?.openOnStart===!0}}}function qc(e,t){let n=new Set([...t.reads,...t.writes]),r={};for(let[t,i]of Object.entries(e))n.has(t)&&(r[t]=i);return r}function Jc(e,t,{withoutSession:n=!1}={}){let r=n?e.settingsWithoutSession:e.settings;return Object.fromEntries(t.settings.filter(e=>e in r).map(e=>[e,r[e]]))}function Yc(e,t,n){let r=n.scenario??null,i=e.scenarioDrafts?.find(e=>e.scenarioId===r)?.settings??{};return Object.fromEntries(t.settings.filter(e=>e in i).map(e=>[e,i[e]]))}function Xc(e,t,{sessionless:n=!1}={}){return t.kind===`scenario-editor`||t.kind===`presentation`&&n?`outside-session:${e.game.identifier}`:e.session.sessionKey}function Zc(e){return[{type:`setTheme`,payload:e.palette},{type:`themePreferenceChanged`,preference:e.preference}]}function Qc(e){return{blobPrefix:`${e}/assets/blobs/`,scenarioAssetPrefix:`${e}/assets/scenario/`,sharedAssetPrefix:`${e}/assets/shared/`,assetAuthRedeemUrl:`${e}/assets/auth/redeem`}}function $c(e,t){return t===void 0?e.teams[0]:e.teams.find(e=>e.index===t)}function el(e){return[...e.teams].sort((e,t)=>e.index-t.index).map(e=>({teamId:e.teamId,index:e.index,name:e.name}))}var tl={enabled:!1,paused:!1,nextTickAt:null,intervalMs:null,pausedAt:null,pausedMs:0,extendedMs:0,scheduleStartedAt:null};function nl(e){let{surface:t,state:n,theme:r,origin:i,assetOrigin:a}=e,o=[{type:`setLocale`,payload:{locale:n.session.locale}},{type:`setAssetUrls`,payload:Qc(a??i)},...r?Zc(r):[]];switch(t.kind){case`game`:case`waiting-room`:return[...al(e),...o];case`session`:return[...ol(e),...o];case`setup`:return[{type:`setSettings`,payload:Jc(n,t)},...o];case`scenario-editor`:return[{type:`setSettings`,payload:Yc(n,t,e.viewer)},...o];case`presentation`:return[...sl(e),...o]}return o}function rl(e,t,n){let r=new Set(t.crossTeamReads);return[...e.teams].sort((e,t)=>e.index-t.index).map(e=>({teamId:e.teamId,index:e.index,name:e.name,context:e.index===n?qc(e.context,t):Object.fromEntries(Object.entries(e.context).filter(([e])=>r.has(e)))}))}function il(e,t){return`${e}/team/${t+1}/join?bare`}function al({surface:e,state:t,viewer:n,origin:r,roundProcessing:i}){let a=$c(t,n.teamIndex),o=n.observer?void 0:a?.participants.find(e=>e.id===n.participantId)??a?.participants[0],s=[{type:`stateChanged`,payload:qc(a?.context??{},e),completedTicks:a?.completedTicks??t.session.completedTicks},{type:`setSettings`,payload:Jc(t,e)}];return o&&s.push({type:`setParticipant`,payload:{id:o.id,name:o.name,index:o.index,teamId:a?.teamId??`team-1`},canRenameSelf:!0}),s.push({type:`setViewerRole`,role:n.observer?`observer`:`participant`},{type:`setRunKind`,runKind:t.session.runKind},{type:`setScenarioName`,scenarioName:t.game.scenarioName},{type:`setOwnTeam`,payload:a?{teamId:a.teamId,index:a.index,name:a.name}:{teamId:`team-1`,index:0,name:`Team 1`}},{type:`setOwnTeamJoinLink`,payload:a?{joinUrl:il(r,a.index)}:null},{type:`setParticipantList`,participants:a?.participants??[]},{type:`setTeamList`,payload:el(t)},{type:`setTimer`,payload:a?.timer??tl}),e.kind===`game`&&s.push({type:`setRoundProcessing`,processing:i===!0}),(e.kind===`game`||e.kind===`waiting-room`)&&e.crossTeamReads.length>0&&t.session.mode===`shared-state`&&s.push({type:`setCrossTeamData`,payload:rl(t,e,a?.index)}),s}function ol({surface:e,state:t,gameName:n,origin:r,overlays:i}){return[{type:`setSessionMeta`,payload:{sessionId:`dev-session`,name:n,readOnly:!1,waitingRoomOpen:t.session.waitingRoomOpen,joinPin:null,canSetLocale:!0}},{type:`setSessionData`,payload:pl(t,e)},{type:`setSettings`,payload:Jc(t,e)},{type:`setTeamConfiguration`,payload:fl(t)},{type:`setTeamList`,payload:el(t)},{type:`setParticipantList`,participants:ul(t)},{type:`setTeamLinks`,payload:dl(t,r)},{type:`setWalkthroughLink`,payload:cl(r)},{type:`setRunKind`,runKind:t.session.runKind},{type:`setScenarioName`,scenarioName:t.game.scenarioName},{type:`setAvailableOverlays`,overlays:i??ll()}]}function sl({surface:e,state:t,gameName:n,origin:r,sessionless:i}){return[{type:`setPresentation`,payload:{game:{name:t.game.name,maxTicks:i?Kc(t.settingsWithoutSession).maxTicks:t.session.maxTicks,mode:t.session.mode,scenarioName:t.game.scenarioName},session:i?null:{id:`dev-session`,name:n,completedTicks:Math.max(t.session.completedTicks,...t.teams.map(e=>e.completedTicks)),data:pl(t,e),teams:el(t),participants:ul(t),joinLinks:dl(t,r).map(({teamId:e,joinUrl:t})=>({teamId:e,joinUrl:t})),joinPin:null}}},{type:`setSettings`,payload:Jc(t,e,{withoutSession:i})}]}function cl(e){return{url:`${e}/walkthrough`}}function ll(e={}){return[...e.guide?[`facilitator-guide`]:[],`print-sheets`,...e.presentation?[`presentation`]:[]]}function ul(e){return e.teams.flatMap(e=>e.participants.map(t=>({id:t.id,name:t.name,index:t.index,connected:t.connected,teamId:e.teamId})))}function dl(e,t){return[...e.teams].sort((e,t)=>e.index-t.index).map(e=>({teamId:e.teamId,joinUrl:il(t,e.index),observeUrl:`${t}/team/${e.index+1}/observe`}))}function fl(e){return{mode:e.session.mode,...e.session.teamBounds.min===void 0?{}:{min:e.session.teamBounds.min},max:e.session.teamBounds.max}}function pl(e,t){let n={};for(let r of e.teams){let i={};for(let[t,n]of Object.entries(r.context))t in e.shared||(i[t]=n);n[r.teamId]={context:qc(i,t),completedTicks:r.completedTicks,timer:r.timer??tl,revision:r.completedTicks}}return{shared:{context:qc(e.shared,t),revision:e.session.completedTicks},teams:n}}function ml(e,t){let n={...t.teamIndex===void 0?{}:{teamIndex:t.teamIndex},...t.kind===`observer`?{observer:!0,role:`observer`}:{}};if(t.kind!==`player`||t.teamIndex===void 0)return{kind:`viewer`,viewer:n};let r=e.teams.find(e=>e.index===t.teamIndex);if(!r)return{kind:`no-such-team`,teamIndex:t.teamIndex};let i=t.participant??1,a=r.participants[i-1];return a?{kind:`viewer`,viewer:{...n,participantId:a.id,role:`participant`}}:{kind:`no-such-participant`,teamIndex:t.teamIndex,slot:i,held:r.participants.length}}var hl={console:`session`,player:`game`,observer:`game`,"waiting-room":`waiting-room`,setup:`setup`,"scenario-editor":`scenario-editor`,presentation:`presentation`},gl=new Set([`console`,`player`,`observer`,`waiting-room`,`join`,`setup`]);function _l(e){return e.bare&&gl.has(e.kind)}function vl(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function yl(e){return zr(`MuiSvgIcon`,e)}U(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var bl=e=>{let{color:t,fontSize:n,classes:r}=e;return W({root:[`root`,t!==`inherit`&&`color${Y(t)}`,`fontSize${Y(n)}`]},yl,r)},xl=K(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${Y(n.color)}`],t[`fontSize${Y(n.fontSize)}`]]}})(J(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,...Zs(e,`fill`,{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:`currentColor`}},{props:{fontSize:`inherit`},style:{fontSize:`inherit`}},{props:{fontSize:`small`},style:{fontSize:e.typography?.pxToRem?.(20)||`1.25rem`}},{props:{fontSize:`medium`},style:{fontSize:e.typography?.pxToRem?.(24)||`1.5rem`}},{props:{fontSize:`large`},style:{fontSize:e.typography?.pxToRem?.(35)||`2.1875rem`}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:`action`},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:`disabled`},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:`inherit`},style:{color:void 0}}]}))),Sl=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiSvgIcon`}),{children:r,className:i,color:a=`inherit`,component:o=`svg`,fontSize:s=`medium`,htmlColor:c,inheritViewBox:l=!1,titleAccess:u,viewBox:d=`0 0 24 24`,...f}=n,p=E.isValidElement(r)&&r.type===`svg`,m={...n,color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p},h={};l||(h.viewBox=d);let g=bl(m);return(0,V.jsxs)(xl,{as:o,className:H(g.root,i),focusable:`false`,color:c,"aria-hidden":!u||void 0,role:u?`img`:void 0,ref:t,...h,...f,...p&&r.props,ownerState:m,children:[p?r.props.children:r,u?(0,V.jsx)(`title`,{children:u}):null]})});Sl.muiName=`SvgIcon`;function Cl(e,t){function n(t,n){return(0,V.jsx)(Sl,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=Sl.muiName,E.memo(E.forwardRef(n))}var wl=ps,Tl=ha,El=_s;function Dl(e,t){typeof e==`function`?e(t):e&&(e.current=t)}var Ol=zi;function kl(e){let{controlled:t,default:n,name:r,state:i=`value`}=e,{current:a}=E.useRef(t!==void 0),[o,s]=E.useState(n);return[a?t:o,E.useCallback(e=>{a||s(e)},[])]}var Al=kl,jl=hs;function Ml(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function Nl(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{Ml(r,t[r])&&typeof e[r]==`function`&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if(typeof e==`function`||typeof t==`function`)return r=>{let i=typeof t==`function`?t(r):t,a=typeof e==`function`?e({...r,...i}):e,o=H(r?.className,i?.className,a?.className),s=n(a,i),c={...i,...a,...s};return o&&(c.className=o),i?.style&&a?.style&&(c.style={...i.style,...a.style}),i?.sx&&a?.sx&&(c.sx=[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]),c};let r=t,i=n(e,r),a=H(r?.className,e?.className),o={...t,...e,...i};return a&&(o.className=a),r?.style&&e?.style&&(o.style={...r.style,...e.style}),r?.sx&&e?.sx&&(o.sx=[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]),o}var Pl={};function Fl(e,t){let n=E.useRef(Pl);return n.current===Pl&&(n.current=e(t)),n}function Il(e){let t=Fl(()=>Ll(e)).current;return t.next=e,ti(t.effect),t}function Ll(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var Rl=E.createContext(null);function zl(e){if(e==null)return{appear:void 0,enter:void 0,exit:void 0};if(typeof e==`number`)return{appear:e,enter:e,exit:e};let t=e.enter,n=e.exit;return{appear:e.appear===void 0?t:e.appear,enter:t,exit:n}}function Bl(e){if(e.autoTimeout!=null)return e.autoTimeout;let t=zl(e.timeout);return e.currentStatus===`entering`?e.isAppearing?t.appear??t.enter??null:t.enter??null:t.exit??null}function Vl(e){let{in:t=!1,appear:n=!1,enter:r=!0,exit:i=!0,mountOnEnter:a=!1,unmountOnExit:o=!1,timeout:s,addEndListener:c,reduceMotion:l=!1,getAutoTimeout:u,nodeRef:d,onEnter:f,onEntering:p,onEntered:m,onExit:h,onExiting:g,onExited:_,children:v,...y}=e,b=E.useContext(Rl),x=b&&!b.isMounting?r:n,[S,C]=E.useState(()=>t?x?`exited`:`entered`:a||o?`unmounted`:`exited`),w=E.useRef(S);w.current=S,t&&S===`unmounted`&&(w.current=`exited`,C(`exited`));let T=E.useRef(t&&x),D=E.useRef(!1),O=E.useRef(null),k=E.useRef(S),A=E.useRef(!1),j=E.useRef(l),M=Il({timeout:s,addEndListener:c,reduceMotion:l,getAutoTimeout:u,onEnter:f,onEntering:p,onEntered:m,onExit:h,onExiting:g,onExited:_,enter:r,exit:i,mountOnEnter:a,unmountOnExit:o,nodeRef:d,parentGroup:b}),N=E.useCallback(()=>{O.current!==null&&(O.current.cancel(),O.current=null)},[]),P=E.useCallback(e=>{let t=!0,n=()=>{t&&(t=!1,O.current=null,e())};return n.cancel=()=>{t=!1},O.current=n,n},[]),F=E.useCallback((e,t)=>{let n,r=()=>{n!==void 0&&(clearTimeout(n),n=void 0)},i=P(()=>{r(),w.current=e,C(e)}),a=i.cancel;i.cancel=()=>{r(),a()};let o=M.current.nodeRef.current,s=M.current.addEndListener,c=M.current.getAutoTimeout!==void 0,l=M.current.getAutoTimeout?.(),u=Bl({currentStatus:t,isAppearing:A.current,timeout:M.current.timeout,autoTimeout:l}),d=j.current,f=u??(d&&c?0:null),p=e=>{n=setTimeout(i,e)};o?s?(f!=null&&p(d?0:f),s.length>=2?s(o,i):s(i)):p(d?0:u??0):p(0)},[P,M]),ee=E.useCallback(e=>{let t=M.current,n=t.parentGroup?t.parentGroup.isMounting:e;A.current=n,!e&&!t.enter?(w.current=`entered`,C(`entered`)):(j.current=t.reduceMotion,t.onEnter?.(n),w.current=`entering`,C(`entering`))},[M]),te=E.useCallback(()=>{let e=M.current;e.exit?(j.current=e.reduceMotion,e.onExit?.(),w.current=`exiting`,C(`exiting`)):(w.current=`exited`,C(`exited`))},[M]),I=E.useCallback((e,t)=>{if(N(),t===`entering`){let t=M.current;if(t.mountOnEnter||t.unmountOnExit){let e=t.nodeRef.current;e&&Ls(e)}ee(e)}else te()},[N,ee,te,M]);return ti(()=>(D.current=!0,T.current&&(T.current=!1,I(!0,`entering`)),()=>{D.current=!1,N()}),[N,I]),ti(()=>{if(!D.current)return;let e=w.current;t?e!==`entering`&&e!==`entered`&&I(!1,`entering`):e===`entering`||e===`entered`?I(!1,`exiting`):e===`exited`&&o&&(w.current=`unmounted`,C(`unmounted`))},[t,S,o,I]),ti(()=>{if(S===`unmounted`||k.current===`unmounted`){k.current=S;return}let e=k.current!==S;e&&(k.current=S);let t=M.current;S===`entering`?(e&&t.onEntering?.(A.current),O.current===null&&w.current===S&&F(`entered`,`entering`)):S===`exiting`?(e&&t.onExiting?.(),O.current===null&&w.current===S&&F(`exited`,`exiting`)):S===`entered`&&e?t.onEntered?.(A.current):S===`exited`&&e&&t.onExited?.()},[M,F,S]),S===`unmounted`?null:(0,V.jsx)(Rl.Provider,{value:null,children:v(S,y)})}var Hl=`(prefers-reduced-motion: reduce)`,Ul=0,Wl=`0ms`,Gl=()=>{},Kl=()=>!1,ql=()=>!0,Jl=()=>Gl;function Yl(e){let[t,n]=E.useState(()=>({enabled:e,matches:e?null:!1})),r=t.matches;return t.enabled!==e&&(r=null,e||(r=!1)),ti(()=>{let r=t=>{n(n=>n.enabled===e&&n.matches===t?n:{enabled:e,matches:t})};if(!e){t.enabled&&r(!1);return}if(typeof window>`u`||typeof window.matchMedia!=`function`){r(!1);return}let i=window.matchMedia(Hl),a=()=>{r(i.matches)};return a(),i.addEventListener(`change`,a),()=>{i.removeEventListener(`change`,a)}},[e,t.enabled]),r}var Xl={...E}.useSyncExternalStore;function Zl(e){let t=e?ql:Kl,[n,r]=E.useMemo(()=>{if(!e||typeof window>`u`||typeof window.matchMedia!=`function`)return[Kl,Jl];let t=window.matchMedia(Hl);return[()=>t.matches,e=>(t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)})]},[e]);return Xl(r,n,t)}var Ql=Xl===void 0?Yl:Zl;function $l(e,t){let n=Ql(!t&&e===`system`),r=!t&&(e===`always`||e===`system`&&n!==!1);return E.useMemo(()=>({shouldReduceMotion:r,getTransitionTiming(e){return r?{duration:Ul,delay:Wl}:e}}),[r])}function eu(e,t,n){return e===void 0||fs(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function tu(e,t,n){return typeof e==`function`?e(t,n):e}function nu(e){if(e===void 0)return{};let t={},n=Object.keys(e);for(let r=0;r<n.length;r+=1){let i=n[r];Ml(i,e[i])&&(t[i]=e[i])}return t}function ru(e){if(e===void 0)return{};let t={},n=Object.keys(e);for(let r=0;r<n.length;r+=1){let i=n[r];Ml(i,e[i])||(t[i]=e[i])}return t}function iu(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=H(n?.className,a,i?.className,r?.className),t={...n,...i,...r};if(e.length>0&&(t.className=e),n?.style||i?.style||r?.style){let e={...n?.style,...i?.style,...r?.style};Object.keys(e).length>0&&(t.style=e)}return{props:t,internalRef:void 0}}let o=nu({...i,...r}),s=ru(r),c=ru(i),l=t(o),u=H(l?.className,n?.className,a,i?.className,r?.className),d={...l,...n,...c,...s};if(u.length>0&&(d.className=u),l?.style||n?.style||i?.style||r?.style){let e={...l?.style,...n?.style,...i?.style,...r?.style};Object.keys(e).length>0&&(d.style=e)}return{props:d,internalRef:l.ref}}function X(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,m=tu(d[e],i),{props:{component:h,...g},internalRef:_}=iu({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=ms(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,eu(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}function au(e){return zr(`MuiPaper`,e)}U(`MuiPaper`,`root.rounded.outlined.elevation.elevation0.elevation1.elevation2.elevation3.elevation4.elevation5.elevation6.elevation7.elevation8.elevation9.elevation10.elevation11.elevation12.elevation13.elevation14.elevation15.elevation16.elevation17.elevation18.elevation19.elevation20.elevation21.elevation22.elevation23.elevation24`.split(`.`));var ou=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return W({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},au,i)},su=K(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(J(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,...Zs(e,`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),cu=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiPaper`}),r=$o(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c},d=ou(u);return(0,V.jsx)(su,{as:a,ownerState:u,className:H(d.root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${gi(`#fff`,No(o))}, ${gi(`#fff`,No(o))})`}},...l.style}})});function lu(e){try{return e.matches(`:focus-visible`)}catch{}return!1}function uu(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return E.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}var du={};function fu(e){let{nativeButton:t,nativeButtonProp:n,internalNativeButton:r=t,allowInferredHostMismatch:i=!1,disabled:a,type:o,hasFormAction:s=!1,tabIndex:c=0,focusableWhenDisabled:l,stopEventPropagation:u=!1,onBeforeKeyDown:d,onBeforeKeyUp:f}=e,p=E.useRef(null),m=l===!0,h=uu({focusableWhenDisabled:m,disabled:a,isNativeButton:t,tabIndex:c}),g=E.useCallback(()=>{let e=p.current;return e==null?t:e.tagName===`BUTTON`||!!(e.tagName===`A`&&e.href)},[t]),_=E.useMemo(()=>{let e=m?{}:{tabIndex:a?-1:c};return t?(e.type=o===void 0&&!s?`button`:o,m||(e.disabled=a)):(e.role=`button`,!m&&a&&(e[`aria-disabled`]=a)),m?{...e,...h}:e},[a,m,h,s,t,c,o]);return{getButtonProps:E.useCallback((e=du)=>{let{onClick:t,onKeyDown:n,onKeyUp:r,...i}=e,o=e=>{u&&e.stopPropagation(),a?e.preventDefault():t?.(e)},s=e=>{m&&h.onKeyDown(e),!a&&(d?.(e),n?.(e),!(e.target!==e.currentTarget||g())&&(e.key===` `?e.preventDefault():e.key===`Enter`&&(e.preventDefault(),e.currentTarget.click())))},c=e=>{a||(f?.(e),r?.(e),e.target===e.currentTarget&&!g()&&e.key===` `&&!e.defaultPrevented&&e.currentTarget.click())};return{..._,...i,onClick:o,onKeyDown:s,onKeyUp:c}},[_,a,m,h,g,d,f,u]),rootRef:p}}var pu=class e{ref={current:null};shouldMount=!1;mounted=null;didMount=!1;setShouldMount=null;static create(){return new e}static use(){let t=Fl(e.create).current,[n,r]=E.useState(!1);return t.shouldMount=n,t.setShouldMount=r,E.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=hu(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&(this.ref.current!==null&&(this.didMount=!0),this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function mu(){return pu.use()}function hu(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}var gu=[];function _u(e){E.useEffect(e,gu)}var vu=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function yu(){let e=Fl(vu.create).current;return _u(e.disposeEffect),e}function bu(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=E.useState(!1),f=yu(),p=E.useRef(!1),m=E.useRef(c);m.current=c;let h=c!=null,g=H(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),_={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},v=H(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),E.useEffect(()=>{!s&&h?p.current||(p.current=!0,f.start(l,()=>{p.current=!1,m.current?.()})):(p.current=!1,f.clear())},[f,h,s,l]),(0,V.jsx)(`span`,{className:g,style:_,children:(0,V.jsx)(`span`,{className:v})})}var xu=U(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),Su=550,Cu={},wu=[],Tu=()=>{};function Eu(e,t){let n=new Set(t),r=new Map,i=[];for(let t of e)n.has(t)?i.length>0&&(r.set(t,i),i=[]):i.push(t);let a=[];for(let e of t){let t=r.get(e);t&&a.push(...t),a.push(e)}return a.push(...i),a}function Du({event:e,element:t,center:n}){let r=t?t.getBoundingClientRect():{width:0,height:0,left:0,top:0},i,a;if(n||e===void 0||e.clientX===0&&e.clientY===0||!e.clientX&&!e.touches)i=Math.round(r.width/2),a=Math.round(r.height/2);else{let{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;i=Math.round(t-r.left),a=Math.round(n-r.top)}let o;if(n)o=Math.sqrt((2*r.width**2+r.height**2)/3),o%2==0&&(o+=1);else{let e=Math.max(Math.abs((t?t.clientWidth:0)-i),i)*2+2,n=Math.max(Math.abs((t?t.clientHeight:0)-a),a)*2+2;o=Math.sqrt(e**2+n**2)}return{rippleX:i,rippleY:a,rippleSize:o}}var Ou=sr`
|
|
48
|
+
`).replace($f,``)}function tp(e,t){return t=ep(t),ep(e)===t}function np(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||sn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&sn(e,``+r);else return;break;case`className`:Gt(e,`class`,r);break;case`tabIndex`:Gt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Gt(e,n,r);break;case`style`:un(e,r,o);return;case`data`:if(t!==`object`){Gt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=mn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&np(e,t,`name`,a.name,a,null),np(e,t,`formEncType`,a.formEncType,a,null),np(e,t,`formMethod`,a.formMethod,a,null),np(e,t,`formTarget`,a.formTarget,a,null)):(np(e,t,`encType`,a.encType,a,null),np(e,t,`method`,a.method,a,null),np(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=mn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=hn);return;case`onScroll`:r!=null&&Hf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Hf(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=mn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`: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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Hf(`beforetoggle`,e),Hf(`toggle`,e),Wt(e,`popover`,r);break;case`xlinkActuate`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Wt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=fn.get(n)||n,Wt(e,n,r);else return}B=!0}function rp(e,t,n,r,a,o){switch(n){case`style`:un(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)sn(e,r);else if(typeof r==`number`||typeof r==`bigint`)sn(e,``+r);else return;break;case`onScroll`:r!=null&&Hf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Hf(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=hn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!It.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[bt]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}B=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Wt(e,n,r)}return}B=!0}function ip(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Hf(`error`,e),Hf(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:np(e,t,o,s,n,null)}}a&&np(e,t,`srcSet`,n.srcSet,n,null),r&&np(e,t,`src`,n.src,n,null);return;case`input`:Hf(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:np(e,t,r,d,n,null)}}tn(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Hf(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:np(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&rn(e,!!r,n,!0):rn(e,!!r,t,!1);return;case`textarea`:for(s in Hf(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:np(e,t,s,c,n,null)}on(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:np(e,t,l,r,n,null)}return;case`dialog`:Hf(`beforetoggle`,e),Hf(`toggle`,e),Hf(`cancel`,e),Hf(`close`,e);break;case`iframe`:case`object`:Hf(`load`,e);break;case`video`:case`audio`:for(r=0;r<zf.length;r++)Hf(zf[r],e);break;case`image`:Hf(`error`,e),Hf(`load`,e);break;case`details`:Hf(`toggle`,e);break;case`embed`:case`source`:case`link`:Hf(`error`,e),Hf(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:np(e,t,u,r,n,null)}return;default:if(dn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&rp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&np(e,t,c,r,n,null))}var ap={};function op(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||np(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(B=!0),o=m;break;case`name`:m!==f&&(B=!0),a=m;break;case`checked`:m!==f&&(B=!0),u=m;break;case`defaultChecked`:m!==f&&(B=!0),d=m;break;case`value`:m!==f&&(B=!0),s=m;break;case`defaultValue`:m!==f&&(B=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&np(e,t,p,m,r,f)}}en(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||np(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(B=!0),p=o;break;case`defaultValue`:o!==l&&(B=!0),c=o;break;case`multiple`:o!==l&&(B=!0),s=o;default:o!==l&&np(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?rn(e,!!n,n?[]:``,!1):rn(e,!!n,t,!0)):rn(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:np(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(B=!0),p=a;break;case`defaultValue`:a!==o&&(B=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&np(e,t,s,a,r,o)}an(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:np(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(B=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:np(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&np(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:np(e,t,u,p,r,m)}return;default:if(dn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&rp(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||rp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&np(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||np(e,t,f,p,r,m)}function sp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function cp(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&sp(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&sp(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var lp=null,up=null;function dp(e){return e.nodeType===9?e:e.ownerDocument}function fp(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function pp(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function mp(e,t,n,r){return n=dp(n).createElement(e),n[yt]=r,n[bt]=t,ip(n,e,t),Nt(n),n}function hp(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var gp=null;function _p(){var e=window.event;return e&&e.type===`popstate`?e!==gp&&(gp=e,!0):(gp=null,!1)}var vp=typeof setTimeout==`function`?setTimeout:void 0,yp=typeof clearTimeout==`function`?clearTimeout:void 0,bp=typeof Promise==`function`?Promise:void 0,xp=typeof requestAnimationFrame==`function`?requestAnimationFrame:vp,Sp=typeof queueMicrotask==`function`?queueMicrotask:bp===void 0?vp:function(e){return bp.resolve(null).then(e).catch(Cp)};function Cp(e){setTimeout(function(){throw e})}function wp(e){return e===`head`}function Tp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Wh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)ym(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,ym(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Et]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&ym(e.ownerDocument.body)}n=i}while(n);Wh(t)}function Ep(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function Dp(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Op(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function kp(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Ap(e){return kp(e.getBoundingClientRect(),getComputedStyle(e),e)}function jp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return kp(t,n,e)}function Mp(e){return e.documentElement.clientHeight}function Np(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Pp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Mp(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=Qm(f),u>th){s.length=o;break}f=new Promise(Np.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Fp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Fp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:T({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Fp.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Fp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Ip(e){return{name:e,group:new Fp(`group`,e),imagePair:new Fp(`image-pair`,e),old:new Fp(`old`,e),new:new Fp(`new`,e)}}function Lp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Lp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Hp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Bp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),p(this._fragmentFiber.child,!1,Rp,e,s,r)}this._eventListeners=a}};function Rp(e,t,n,r){return v(e).addEventListener(t,n,r),!1}Lp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Hp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Bp(i.optionsOrUseCapture),p(this._fragmentFiber.child,!1,zp,e,n,i),r.splice(t,1),a!==null&&a()}};function zp(e,t,n,r){return v(e).removeEventListener(t,n,r),!1}function Bp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Vp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Hp(e,t,n,r){if(e.length===0)return-1;r=Vp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Vp(a.optionsOrUseCapture)===r)return i}return-1}Lp.prototype.dispatchEvent=function(e){var t=m(this._fragmentFiber);if(t===null)return!0;t=v(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Bp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Bp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Lp.prototype.focus=function(e){p(this._fragmentFiber.child,!0,Up,e,void 0,void 0)};function Up(e,t){return e.tag!==6&&(e=v(e),hm(e,t))}Lp.prototype.focusLast=function(e){var t=[];p(this._fragmentFiber.child,!0,Wp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Up(t[n],e);n--);};function Wp(e,t){return t.push(e),!1}Lp.prototype.blur=function(){var e=m(this._fragmentFiber);e!==null&&(e=v(e),e=dp(e).activeElement,e!==null&&p(this._fragmentFiber.child,!1,Gp,e,void 0,void 0))};function Gp(e,t){return e.tag!==6&&(e=v(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Lp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),p(this._fragmentFiber.child,!1,Kp,e,void 0,void 0)};function Kp(e,t){return e.tag===6||(e=v(e),t.observe(e)),!1}Lp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),p(this._fragmentFiber.child,!1,qp,e,void 0,void 0);for(var n=t=0;n<Jp.length;n++){var r=Jp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Jp[t++]=r}Jp.length=t}};function qp(e,t){return e.tag===6||(e=v(e),t.unobserve(e)),!1}var Jp=[],Yp=!1;function Xp(e,t,n){Jp.push({fragmentInstance:e,observer:t,instance:n}),Yp||(Yp=!0,gm(function(){Yp=!1;var e=Jp;Jp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Lp.prototype.getClientRects=function(){var e=[];return p(this._fragmentFiber.child,!1,Zp,e,void 0,void 0),e};function Zp(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=v(e),t.push.apply(t,e.getClientRects());return!1}Lp.prototype.getRootNode=function(e){var t=m(this._fragmentFiber);return t===null?this:v(t).getRootNode(e)},Lp.prototype.compareDocumentPosition=function(e){var t=m(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];p(this._fragmentFiber.child,!1,Wp,n,void 0,void 0);var r=v(t);if(n.length===0){if(n=r,h(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=g(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=v(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=v(n[0]),i=v(n[n.length-1]);var a=h(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Qp(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Qp(e,t,n,r,i){var a=kt(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=m(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=w(n,a,C),t===null?t=!1:(p(t,!0,x,a,n),a=y,y=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=w(r,a,C),t===null?t=!1:(p(t,!0,S,a,r),a=y,b=y=null,t=a!==null)),t):!1}function $p(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Lp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];p(this._fragmentFiber.child,!1,Wp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=g(this._fragmentFiber);if(r=n?r[1]||r[0]||m(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=v(r),$p(e,n);return}if(r=v(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=v(a),$p(a,n)):v(a).scrollIntoView(e),r+=n?-1:1}};function em(e,t){return e=v(e),tm(e,t),!1}function tm(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function nm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Bp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Jp.length;i++){var a=Jp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Jp[r++]=a)}Jp.length=r,n.observe(e)}),tm(e,t))}function rm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Bp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Xp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function im(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:im(n),Ot(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function am(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[Et])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=dm(e.nextSibling),e===null)break}return null}function om(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=dm(e.nextSibling),e===null))return null;return e}function sm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=dm(e.nextSibling),e===null))return null;return e}function cm(e){return e.data===`$?`||e.data===`$~`}function lm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function um(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function dm(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var fm=null;function pm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return dm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function mm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function hm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function gm(e){xp(function(){xp(function(t){return e(t)})})}function _m(e,t,n){switch(t=dp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function vm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&np(e,t,r,null,ap,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===hn&&(e.onclick=null),Ot(e)}function ym(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ot(e)}var bm=new Map,xm=new Set;function Sm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Cm=R.d;R.d={f:wm,r:Tm,D:Om,C:km,L:Am,m:jm,X:Nm,S:Mm,M:Pm};function wm(){var e=Cm.f(),t=Rd();return e||t}function Tm(e){var t=At(e);t!==null&&t.tag===5&&t.type===`form`?Js(t):Cm.r(e)}var Em=typeof document>`u`?null:document;function Dm(e,t,n){var r=Em;if(r&&typeof t==`string`&&t){var i=$t(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),xm.has(i)||(xm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),ip(t,`link`,e),Nt(t),r.head.appendChild(t)))}}function Om(e){Cm.D(e),Dm(`dns-prefetch`,e,null)}function km(e,t){Cm.C(e,t),Dm(`preconnect`,e,t)}function Am(e,t,n){Cm.L(e,t,n);var r=Em;if(r&&e&&t){var i=`link[rel="preload"][as="`+$t(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+$t(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+$t(n.imageSizes)+`"]`)):i+=`[href="`+$t(e)+`"]`;var a=i;switch(t){case`style`:a=Im(e);break;case`script`:a=Bm(e)}if(!(bm.has(a)||(e=T({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),bm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Lm(a))||t===`script`&&r.querySelector(Vm(a))))){var o=r.createElement(`link`);ip(o,`link`,e),t===`style`&&(o[Dt]=!0,o.onload=o.onerror=function(){Pt(o)}),Nt(o),r.head.appendChild(o)}}}function jm(e,t){Cm.m(e,t);var n=Em;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+$t(r)+`"][href="`+$t(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Bm(e)}if(!bm.has(a)&&(e=T({rel:`modulepreload`,href:e},t),bm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Vm(a)))return}r=n.createElement(`link`),ip(r,`link`,e),Nt(r),n.head.appendChild(r)}}}function Mm(e,t,n){Cm.S(e,t,n);var r=Em;if(r&&e){var i=Mt(r).hoistableStyles,a=Im(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Lm(a)))s.loading=5;else{e=T({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=bm.get(a))&&Wm(e,n);var c=o=r.createElement(`link`);Nt(c),ip(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Um(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Nm(e,t){Cm.X(e,t);var n=Em;if(n&&e){var r=Mt(n).hoistableScripts,i=Bm(e),a=r.get(i);a||(a=n.querySelector(Vm(i)),a||(e=T({src:e,async:!0},t),(t=bm.get(i))&&Gm(e,t),a=n.createElement(`script`),Nt(a),ip(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Pm(e,t){Cm.M(e,t);var n=Em;if(n&&e){var r=Mt(n).hoistableScripts,i=Bm(e),a=r.get(i);a||(a=n.querySelector(Vm(i)),a||(e=T({src:e,async:!0,type:`module`},t),(t=bm.get(i))&&Gm(e,t),a=n.createElement(`script`),Nt(a),ip(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Fm(e,t,n,r){var a=(a=ye.current)?Sm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Im(n.href),t=Mt(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Im(n.href);var o=Mt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Lm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=bm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},bm.set(e,o)),zm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Bm(n),t=Mt(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Im(e){return`href="`+$t(e)+`"`}function Lm(e){return`link[rel="stylesheet"][`+e+`]`}function Rm(e){return T({},e,{"data-precedence":e.precedence,precedence:null})}function zm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Dt]){r.loading=1;return}}else t=e.createElement(`link`),t[Dt]=!0,t.onload=t.onerror=Pt.bind(null,t),ip(t,`link`,n),Nt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Bm(e){return`[src="`+$t(e)+`"]`}function Vm(e){return`script[async]`+e}function Hm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+$t(n.href)+`"]`);if(r)return t.instance=r,Nt(r),r;var a=T({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Nt(r),ip(r,`style`,a),Um(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Im(n.href);var o=e.querySelector(Lm(a));if(o)return t.state.loading|=4,t.instance=o,Nt(o),o;r=Rm(n),(a=bm.get(a))&&Wm(r,a),o=(e.ownerDocument||e).createElement(`link`),Nt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),ip(o,`link`,r),t.state.loading|=4,Um(o,n.precedence,e),t.instance=o;case`script`:return o=Bm(n.src),(a=e.querySelector(Vm(o)))?(t.instance=a,Nt(a),a):(r=n,(a=bm.get(o))&&(r=T({},n),Gm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Nt(a),ip(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Um(r,n.precedence,e));return t.instance}function Um(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Wm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Gm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Km=null;function qm(e,t,n){if(Km===null){var r=new Map,i=Km=new Map;i.set(n,r)}else i=Km,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Et]||a[yt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Jm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Ym(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Xm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Zm(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Qm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function $m(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Qm(t),e.suspenseyImages.push(t)),e=ah.bind(e),t.decode().then(e,e))}function eh(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Im(r.href),a=t.querySelector(Lm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=ih.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Nt(a);return}a=t.ownerDocument||t,r=Rm(r),(i=bm.get(i))&&Wm(r,i),a=a.createElement(`link`),Nt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),ip(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=ih.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var th=0;function nh(e,t){return e.stylesheets&&e.count===0&&sh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&sh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&th===0&&(th=62500*cp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&sh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>th?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function rh(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)sh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function ih(){this.count--,rh(this)}function ah(){this.imgCount--,rh(this)}var oh=null;function sh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,oh=new Map,t.forEach(ch,e),oh=null,ih.call(e))}function ch(e,t){if(!(t.state.loading&4)){var n=oh.get(e);if(n)var r=n.get(null);else{n=new Map,oh.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=ih.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var lh={$$typeof:N,Provider:null,Consumer:null,_currentValue:fe,_currentValue2:fe,_threadCount:0};function uh(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,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=ct(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ct(0),this.hiddenUpdates=ct(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function dh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new uh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Ei(3,null,null,t),e.current=a,a.stateNode=e,t=Ea(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},co(a),e}function fh(e){return e?(e=wi,e):wi}function ph(e,t,n,r,i,a){i=fh(i),r.context===null?r.context=i:r.pendingContext=i,r=uo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=fo(e,r,t),n!==null&&(Nd(n,e,t),po(n,e,t))}function mh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function hh(e,t){mh(e,t),(e=e.alternate)&&mh(e,t)}function gh(e){if(e.tag===13||e.tag===31){var t=xi(e,67108864);t!==null&&Nd(t,e,67108864),hh(e,67108864)}}function _h(e){if(e.tag===13||e.tag===31){var t=Ad();t=mt(t);var n=xi(e,t);n!==null&&Nd(n,e,t),hh(e,t)}}var vh=!0;function yh(e,t,n,r){var i=L.T;L.T=null;var a=R.p;try{R.p=2,xh(e,t,n,r)}finally{R.p=a,L.T=i}}function bh(e,t,n,r){var i=L.T;L.T=null;var a=R.p;try{R.p=8,xh(e,t,n,r)}finally{R.p=a,L.T=i}}function xh(e,t,n,r){if(vh){var i=Sh(r);if(i===null)qf(e,t,r,Ch,n),Ph(e,r);else if(Ih(i,e,t,n,r))r.stopPropagation();else if(Ph(e,r),t&4&&-1<Nh.indexOf(e)){for(;i!==null;){var a=At(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=nt(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ye(o);s.entanglements[1]|=c,o&=~c}Ef(a),!(Yu&6)&&(gd=Le()+500,Df(0,!1))}}break;case 31:case 13:s=xi(a,2),s!==null&&Nd(s,a,2),Rd(),hh(a,2)}if(a=Sh(r),a===null&&qf(e,t,r,Ch,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else qf(e,t,r,null,n)}}function Sh(e){return e=_n(e),wh(e)}var Ch=null;function wh(e){if(Ch=null,e=kt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ch=e,null}function Th(e){switch(e){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`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`fullscreenerror`: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`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Re()){case ze:return 2;case Be:return 8;case Ve:case He:return 32;case Ue:return 268435456;default:return 32}default:return 32}}var Eh=!1,Dh=null,Oh=null,kh=null,Ah=new Map,jh=new Map,Mh=[],Nh=`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 Ph(e,t){switch(e){case`focusin`:case`focusout`:Dh=null;break;case`dragenter`:case`dragleave`:Oh=null;break;case`mouseover`:case`mouseout`:kh=null;break;case`pointerover`:case`pointerout`:Ah.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:jh.delete(t.pointerId)}}function Fh(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=At(t),t!==null&&gh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ih(e,t,n,r,i){switch(t){case`focusin`:return Dh=Fh(Dh,e,t,n,r,i),!0;case`dragenter`:return Oh=Fh(Oh,e,t,n,r,i),!0;case`mouseover`:return kh=Fh(kh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Ah.set(a,Fh(Ah.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,jh.set(a,Fh(jh.get(a)||null,e,t,n,r,i)),!0}return!1}function Lh(e){var t=kt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,_t(e.priority,function(){_h(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,_t(e.priority,function(){_h(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Rh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Sh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);gn=r,n.target.dispatchEvent(r),gn=null}else return t=At(n),t!==null&&gh(t),e.blockedOn=n,!1;t.shift()}return!0}function zh(e,t,n){Rh(e)&&n.delete(t)}function Bh(){Eh=!1,Dh!==null&&Rh(Dh)&&(Dh=null),Oh!==null&&Rh(Oh)&&(Oh=null),kh!==null&&Rh(kh)&&(kh=null),Ah.forEach(zh),jh.forEach(zh)}function Vh(e,n){e.blockedOn===n&&(e.blockedOn=null,Eh||(Eh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Bh)))}var Hh=null;function Uh(e){Hh!==e&&(Hh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Hh===e&&(Hh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(wh(r||n)===null)continue;break}var a=At(n);a!==null&&(e.splice(t,3),t-=3,Ks(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Wh(e){function t(t){return Vh(t,e)}Dh!==null&&Vh(Dh,e),Oh!==null&&Vh(Oh,e),kh!==null&&Vh(kh,e),Ah.forEach(t),jh.forEach(t);for(var n=0;n<Mh.length;n++){var r=Mh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Mh.length&&(n=Mh[0],n.blockedOn===null);)Lh(n),n.blockedOn===null&&Mh.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[bt]||null;if(typeof a==`function`)o||Uh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[bt]||null)s=o.formAction;else if(wh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Uh(n)}}}function Gh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!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 r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Kh(e){this._internalRoot=e}qh.prototype.render=Kh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;ph(n,Ad(),e,t,null,null)},qh.prototype.unmount=Kh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ph(e.current,2,null,e,null,null),Rd(),t[xt]=null}};function qh(e){this._internalRoot=e}qh.prototype.unstable_scheduleHydration=function(e){if(e){var t=gt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mh.length&&t!==0&&t<Mh[n].priority;n++);Mh.splice(n,0,e),n===0&&Lh(e)}};var Jh=n.version;if(Jh!==`19.3.1`)throw Error(i(527,Jh,`19.3.1`));R.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var Yh={bundleType:0,version:`19.3.1`,rendererPackageName:`react-dom`,currentDispatcherRef:L,reconcilerVersion:`19.3.1`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Xh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xh.isDisabled&&Xh.supportsFiber)try{Ke=Xh.inject(Yh),qe=Xh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=hc,s=gc,c=_c;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=dh(e,1,!1,null,null,n,r,null,o,s,c,Gh),e[xt]=t.current,Gf(e),new Kh(t)}})),Ic=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Fc()}))();Object.freeze({settings:[],manifest:[],capabilities:[]});function Lc(e){return e!==void 0&&e.settings.length+e.manifest.length+e.capabilities.length>0}function Rc(e){return e.settings.length>0?`Settings changed: re-initialise to apply`:`Package changed: re-initialise to apply`}function zc(e){let t=e=>e.map(e=>`"${e}"`).join(`, `);return`Changed on disk since the session started: ${[...e.settings.length>0?[`settings ${t(e.settings)}`]:[],...e.manifest.length>0?[`seriousgaming.sdk.json ${t(e.manifest)}`]:[],...e.capabilities.length>0?[`the scope or presence of capabilities ${t(e.capabilities)}`]:[]].join(`; `)}. These apply only when the session initialises, so it is still running on what it started with`}var Bc=[[/^\/walkthrough\/?$/,()=>({kind:`player`,teamIndex:0,participant:1})],[/^\/team\/(\d+)\/player\/(\d+)\/?$/,e=>Vc(e[1],e[2])],[/^\/team\/(\d+)\/player\/?$/,e=>Vc(e[1],`1`)],[/^\/team\/(\d+)\/observe\/?$/,e=>({kind:`observer`,teamIndex:Hc(e[1])})],[/^\/team\/(\d+)\/join\/?$/,e=>({kind:`join`,teamIndex:Hc(e[1])})],[/^\/team\/(\d+)\/waiting-room\/?$/,e=>({kind:`waiting-room`,teamIndex:Hc(e[1])})],[/^\/setup\/?$/,()=>({kind:`setup`})],[/^\/scenario-editor\/?$/,()=>({kind:`scenario-editor`})],[/^\/guide\/?$/,()=>({kind:`guide`})],[/^\/print\/?$/,()=>({kind:`print`})],[/^\/presentation\/?$/,()=>({kind:`presentation`})]];function Vc(e,t){return{kind:`player`,teamIndex:Hc(e),participant:Math.max(1,Number(t))}}function Hc(e){return Math.max(0,Number(e)-1)}function Uc(e,t){let n=new URLSearchParams(t),r=n.has(`bare`),i=n.has(`preview`),a=n.get(`scenario`),o=/^\/walkthrough(\/|$)/.test(e)?`walkthrough`:`session`;for(let[t,n]of Bc){let s=e.match(t);if(s)return{...n(s),bare:r,run:o,...a===null?{}:{scenario:a},...i?{preview:i}:{}}}return{kind:`console`,bare:r,run:o}}function Wc(e){let t=(e.teamIndex??0)+1,n=e.run===`walkthrough`?`/walkthrough`:e.kind===`player`?`/team/${t}/player/${e.participant??1}`:e.kind===`observer`?`/team/${t}/observe`:e.kind===`join`?`/team/${t}/join`:e.kind===`waiting-room`?`/team/${t}/waiting-room`:e.kind===`console`?`/`:`/${e.kind}`,r=new URLSearchParams;e.scenario!==void 0&&r.set(`scenario`,e.scenario),e.preview&&r.set(`preview`,``),e.bare&&r.set(`bare`,``);let i=r.toString().replace(/(bare|preview)=(?=&|$)/g,`$1`);return i?`${n}?${i}`:n}function Gc(e){let t=e.teams;return{maxTicks:e.maxTicks??null,teams:{min:t?.min??null,max:t?.max??null,perTeam:{minParticipants:t?.perTeam?.minParticipants??null,maxParticipants:t?.perTeam?.maxParticipants??null},defaultNames:t?.defaultNames??[]},waitingRoom:{openOnStart:e.waitingRoom?.openOnStart===!0}}}function Kc(e){let t=Gc({}),n=e.game??{};return{maxTicks:n.maxTicks??null,teams:{min:n.teams?.min??null,max:n.teams?.max??null,perTeam:{minParticipants:n.teams?.perTeam?.minParticipants??null,maxParticipants:n.teams?.perTeam?.maxParticipants??null},defaultNames:n.teams?.defaultNames??t.teams.defaultNames},waitingRoom:{openOnStart:n.waitingRoom?.openOnStart===!0}}}function qc(e,t){let n=new Set([...t.reads,...t.writes]),r={};for(let[t,i]of Object.entries(e))n.has(t)&&(r[t]=i);return r}function Jc(e,t,{withoutSession:n=!1}={}){let r=n?e.settingsWithoutSession:e.settings;return Object.fromEntries(t.settings.filter(e=>e in r).map(e=>[e,r[e]]))}function Yc(e,t,n){let r=n.scenario??null,i=e.scenarioDrafts?.find(e=>e.scenarioId===r)?.settings??{};return Object.fromEntries(t.settings.filter(e=>e in i).map(e=>[e,i[e]]))}function Xc(e,t,{sessionless:n=!1}={}){return t.kind===`scenario-editor`||t.kind===`presentation`&&n?`outside-session:${e.game.identifier}`:e.session.sessionKey}function Zc(e){return[{type:`setTheme`,payload:e.palette},{type:`themePreferenceChanged`,preference:e.preference}]}function Qc(e,t){let n=t===void 0?`scenario/`:t.scenario===null?`no-scenario/`:`scenarios/${encodeURIComponent(t.scenario)}/`;return{blobPrefix:`${e}/assets/blobs/`,scenarioAssetPrefix:`${e}/assets/${n}`,sharedAssetPrefix:`${e}/assets/shared/`,assetAuthRedeemUrl:`${e}/assets/auth/redeem`}}function $c(e,t){return t===void 0?e.teams[0]:e.teams.find(e=>e.index===t)}function el(e){return[...e.teams].sort((e,t)=>e.index-t.index).map(e=>({teamId:e.teamId,index:e.index,name:e.name}))}var tl={enabled:!1,paused:!1,nextTickAt:null,intervalMs:null,pausedAt:null,pausedMs:0,extendedMs:0,scheduleStartedAt:null};function nl(e){let{surface:t,state:n,theme:r,origin:i,assetOrigin:a}=e,o=[{type:`setLocale`,payload:{locale:n.session.locale}},{type:`setAssetUrls`,payload:Qc(a??i,t.kind===`scenario-editor`?{scenario:e.viewer.scenario??null}:void 0)},...r?Zc(r):[]];switch(t.kind){case`game`:case`waiting-room`:return[...al(e),...o];case`session`:return[...ol(e),...o];case`setup`:return[{type:`setSettings`,payload:Jc(n,t)},...o];case`scenario-editor`:return[{type:`setSettings`,payload:Yc(n,t,e.viewer)},...o];case`presentation`:return[...sl(e),...o]}return o}function rl(e,t,n){let r=new Set(t.crossTeamReads);return[...e.teams].sort((e,t)=>e.index-t.index).map(e=>({teamId:e.teamId,index:e.index,name:e.name,context:e.index===n?qc(e.context,t):Object.fromEntries(Object.entries(e.context).filter(([e])=>r.has(e)))}))}function il(e,t){return`${e}/team/${t+1}/join?bare`}function al({surface:e,state:t,viewer:n,origin:r,roundProcessing:i}){let a=$c(t,n.teamIndex),o=n.observer?void 0:a?.participants.find(e=>e.id===n.participantId)??a?.participants[0],s=[{type:`stateChanged`,payload:qc(a?.context??{},e),completedTicks:a?.completedTicks??t.session.completedTicks},{type:`setSettings`,payload:Jc(t,e)}];return o&&s.push({type:`setParticipant`,payload:{id:o.id,name:o.name,index:o.index,teamId:a?.teamId??`team-1`},canRenameSelf:!0}),s.push({type:`setViewerRole`,role:n.observer?`observer`:`participant`},{type:`setRunKind`,runKind:t.session.runKind},{type:`setScenarioName`,scenarioName:t.game.scenarioName},{type:`setOwnTeam`,payload:a?{teamId:a.teamId,index:a.index,name:a.name}:{teamId:`team-1`,index:0,name:`Team 1`}},{type:`setOwnTeamJoinLink`,payload:a?{joinUrl:il(r,a.index)}:null},{type:`setParticipantList`,participants:a?.participants??[]},{type:`setTeamList`,payload:el(t)},{type:`setTimer`,payload:a?.timer??tl}),e.kind===`game`&&s.push({type:`setRoundProcessing`,processing:i===!0}),(e.kind===`game`||e.kind===`waiting-room`)&&e.crossTeamReads.length>0&&t.session.mode===`shared-state`&&s.push({type:`setCrossTeamData`,payload:rl(t,e,a?.index)}),s}function ol({surface:e,state:t,gameName:n,origin:r,overlays:i}){return[{type:`setSessionMeta`,payload:{sessionId:`dev-session`,name:n,readOnly:!1,waitingRoomOpen:t.session.waitingRoomOpen,joinPin:null,canSetLocale:!0}},{type:`setSessionData`,payload:pl(t,e)},{type:`setSettings`,payload:Jc(t,e)},{type:`setTeamConfiguration`,payload:fl(t)},{type:`setTeamList`,payload:el(t)},{type:`setParticipantList`,participants:ul(t)},{type:`setTeamLinks`,payload:dl(t,r)},{type:`setWalkthroughLink`,payload:cl(r)},{type:`setRunKind`,runKind:t.session.runKind},{type:`setScenarioName`,scenarioName:t.game.scenarioName},{type:`setAvailableOverlays`,overlays:i??ll()}]}function sl({surface:e,state:t,gameName:n,origin:r,sessionless:i}){return[{type:`setPresentation`,payload:{game:{name:t.game.name,maxTicks:i?Kc(t.settingsWithoutSession).maxTicks:t.session.maxTicks,mode:t.session.mode,scenarioName:t.game.scenarioName},session:i?null:{id:`dev-session`,name:n,completedTicks:Math.max(t.session.completedTicks,...t.teams.map(e=>e.completedTicks)),data:pl(t,e),teams:el(t),participants:ul(t),joinLinks:dl(t,r).map(({teamId:e,joinUrl:t})=>({teamId:e,joinUrl:t})),joinPin:null}}},{type:`setSettings`,payload:Jc(t,e,{withoutSession:i})}]}function cl(e){return{url:`${e}/walkthrough`}}function ll(e={}){return[...e.guide?[`facilitator-guide`]:[],`print-sheets`,...e.presentation?[`presentation`]:[]]}function ul(e){return e.teams.flatMap(e=>e.participants.map(t=>({id:t.id,name:t.name,index:t.index,connected:t.connected,teamId:e.teamId})))}function dl(e,t){return[...e.teams].sort((e,t)=>e.index-t.index).map(e=>({teamId:e.teamId,joinUrl:il(t,e.index),observeUrl:`${t}/team/${e.index+1}/observe`}))}function fl(e){return{mode:e.session.mode,...e.session.teamBounds.min===void 0?{}:{min:e.session.teamBounds.min},max:e.session.teamBounds.max}}function pl(e,t){let n={};for(let r of e.teams){let i={};for(let[t,n]of Object.entries(r.context))t in e.shared||(i[t]=n);n[r.teamId]={context:qc(i,t),completedTicks:r.completedTicks,timer:r.timer??tl,revision:r.completedTicks}}return{shared:{context:qc(e.shared,t),revision:e.session.completedTicks},teams:n}}function ml(e,t){let n={...t.teamIndex===void 0?{}:{teamIndex:t.teamIndex},...t.kind===`observer`?{observer:!0,role:`observer`}:{}};if(t.kind!==`player`||t.teamIndex===void 0)return{kind:`viewer`,viewer:n};let r=e.teams.find(e=>e.index===t.teamIndex);if(!r)return{kind:`no-such-team`,teamIndex:t.teamIndex};let i=t.participant??1,a=r.participants[i-1];return a?{kind:`viewer`,viewer:{...n,participantId:a.id,role:`participant`}}:{kind:`no-such-participant`,teamIndex:t.teamIndex,slot:i,held:r.participants.length}}var hl={console:`session`,player:`game`,observer:`game`,"waiting-room":`waiting-room`,setup:`setup`,"scenario-editor":`scenario-editor`,presentation:`presentation`},gl=new Set([`console`,`player`,`observer`,`waiting-room`,`join`,`setup`]);function _l(e){return e.bare&&gl.has(e.kind)}function vl(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function yl(e){return zr(`MuiSvgIcon`,e)}U(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var bl=e=>{let{color:t,fontSize:n,classes:r}=e;return W({root:[`root`,t!==`inherit`&&`color${Y(t)}`,`fontSize${Y(n)}`]},yl,r)},xl=K(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${Y(n.color)}`],t[`fontSize${Y(n.fontSize)}`]]}})(J(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,...Zs(e,`fill`,{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:`currentColor`}},{props:{fontSize:`inherit`},style:{fontSize:`inherit`}},{props:{fontSize:`small`},style:{fontSize:e.typography?.pxToRem?.(20)||`1.25rem`}},{props:{fontSize:`medium`},style:{fontSize:e.typography?.pxToRem?.(24)||`1.5rem`}},{props:{fontSize:`large`},style:{fontSize:e.typography?.pxToRem?.(35)||`2.1875rem`}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:`action`},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:`disabled`},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:`inherit`},style:{color:void 0}}]}))),Sl=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiSvgIcon`}),{children:r,className:i,color:a=`inherit`,component:o=`svg`,fontSize:s=`medium`,htmlColor:c,inheritViewBox:l=!1,titleAccess:u,viewBox:d=`0 0 24 24`,...f}=n,p=E.isValidElement(r)&&r.type===`svg`,m={...n,color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p},h={};l||(h.viewBox=d);let g=bl(m);return(0,V.jsxs)(xl,{as:o,className:H(g.root,i),focusable:`false`,color:c,"aria-hidden":!u||void 0,role:u?`img`:void 0,ref:t,...h,...f,...p&&r.props,ownerState:m,children:[p?r.props.children:r,u?(0,V.jsx)(`title`,{children:u}):null]})});Sl.muiName=`SvgIcon`;function Cl(e,t){function n(t,n){return(0,V.jsx)(Sl,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=Sl.muiName,E.memo(E.forwardRef(n))}var wl=ps,Tl=ha,El=_s;function Dl(e,t){typeof e==`function`?e(t):e&&(e.current=t)}var Ol=zi;function kl(e){let{controlled:t,default:n,name:r,state:i=`value`}=e,{current:a}=E.useRef(t!==void 0),[o,s]=E.useState(n);return[a?t:o,E.useCallback(e=>{a||s(e)},[])]}var Al=kl,jl=hs;function Ml(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function Nl(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{Ml(r,t[r])&&typeof e[r]==`function`&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if(typeof e==`function`||typeof t==`function`)return r=>{let i=typeof t==`function`?t(r):t,a=typeof e==`function`?e({...r,...i}):e,o=H(r?.className,i?.className,a?.className),s=n(a,i),c={...i,...a,...s};return o&&(c.className=o),i?.style&&a?.style&&(c.style={...i.style,...a.style}),i?.sx&&a?.sx&&(c.sx=[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]),c};let r=t,i=n(e,r),a=H(r?.className,e?.className),o={...t,...e,...i};return a&&(o.className=a),r?.style&&e?.style&&(o.style={...r.style,...e.style}),r?.sx&&e?.sx&&(o.sx=[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]),o}var Pl={};function Fl(e,t){let n=E.useRef(Pl);return n.current===Pl&&(n.current=e(t)),n}function Il(e){let t=Fl(()=>Ll(e)).current;return t.next=e,ti(t.effect),t}function Ll(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var Rl=E.createContext(null);function zl(e){if(e==null)return{appear:void 0,enter:void 0,exit:void 0};if(typeof e==`number`)return{appear:e,enter:e,exit:e};let t=e.enter,n=e.exit;return{appear:e.appear===void 0?t:e.appear,enter:t,exit:n}}function Bl(e){if(e.autoTimeout!=null)return e.autoTimeout;let t=zl(e.timeout);return e.currentStatus===`entering`?e.isAppearing?t.appear??t.enter??null:t.enter??null:t.exit??null}function Vl(e){let{in:t=!1,appear:n=!1,enter:r=!0,exit:i=!0,mountOnEnter:a=!1,unmountOnExit:o=!1,timeout:s,addEndListener:c,reduceMotion:l=!1,getAutoTimeout:u,nodeRef:d,onEnter:f,onEntering:p,onEntered:m,onExit:h,onExiting:g,onExited:_,children:v,...y}=e,b=E.useContext(Rl),x=b&&!b.isMounting?r:n,[S,C]=E.useState(()=>t?x?`exited`:`entered`:a||o?`unmounted`:`exited`),w=E.useRef(S);w.current=S,t&&S===`unmounted`&&(w.current=`exited`,C(`exited`));let T=E.useRef(t&&x),D=E.useRef(!1),O=E.useRef(null),k=E.useRef(S),A=E.useRef(!1),j=E.useRef(l),M=Il({timeout:s,addEndListener:c,reduceMotion:l,getAutoTimeout:u,onEnter:f,onEntering:p,onEntered:m,onExit:h,onExiting:g,onExited:_,enter:r,exit:i,mountOnEnter:a,unmountOnExit:o,nodeRef:d,parentGroup:b}),N=E.useCallback(()=>{O.current!==null&&(O.current.cancel(),O.current=null)},[]),P=E.useCallback(e=>{let t=!0,n=()=>{t&&(t=!1,O.current=null,e())};return n.cancel=()=>{t=!1},O.current=n,n},[]),F=E.useCallback((e,t)=>{let n,r=()=>{n!==void 0&&(clearTimeout(n),n=void 0)},i=P(()=>{r(),w.current=e,C(e)}),a=i.cancel;i.cancel=()=>{r(),a()};let o=M.current.nodeRef.current,s=M.current.addEndListener,c=M.current.getAutoTimeout!==void 0,l=M.current.getAutoTimeout?.(),u=Bl({currentStatus:t,isAppearing:A.current,timeout:M.current.timeout,autoTimeout:l}),d=j.current,f=u??(d&&c?0:null),p=e=>{n=setTimeout(i,e)};o?s?(f!=null&&p(d?0:f),s.length>=2?s(o,i):s(i)):p(d?0:u??0):p(0)},[P,M]),ee=E.useCallback(e=>{let t=M.current,n=t.parentGroup?t.parentGroup.isMounting:e;A.current=n,!e&&!t.enter?(w.current=`entered`,C(`entered`)):(j.current=t.reduceMotion,t.onEnter?.(n),w.current=`entering`,C(`entering`))},[M]),te=E.useCallback(()=>{let e=M.current;e.exit?(j.current=e.reduceMotion,e.onExit?.(),w.current=`exiting`,C(`exiting`)):(w.current=`exited`,C(`exited`))},[M]),I=E.useCallback((e,t)=>{if(N(),t===`entering`){let t=M.current;if(t.mountOnEnter||t.unmountOnExit){let e=t.nodeRef.current;e&&Ls(e)}ee(e)}else te()},[N,ee,te,M]);return ti(()=>(D.current=!0,T.current&&(T.current=!1,I(!0,`entering`)),()=>{D.current=!1,N()}),[N,I]),ti(()=>{if(!D.current)return;let e=w.current;t?e!==`entering`&&e!==`entered`&&I(!1,`entering`):e===`entering`||e===`entered`?I(!1,`exiting`):e===`exited`&&o&&(w.current=`unmounted`,C(`unmounted`))},[t,S,o,I]),ti(()=>{if(S===`unmounted`||k.current===`unmounted`){k.current=S;return}let e=k.current!==S;e&&(k.current=S);let t=M.current;S===`entering`?(e&&t.onEntering?.(A.current),O.current===null&&w.current===S&&F(`entered`,`entering`)):S===`exiting`?(e&&t.onExiting?.(),O.current===null&&w.current===S&&F(`exited`,`exiting`)):S===`entered`&&e?t.onEntered?.(A.current):S===`exited`&&e&&t.onExited?.()},[M,F,S]),S===`unmounted`?null:(0,V.jsx)(Rl.Provider,{value:null,children:v(S,y)})}var Hl=`(prefers-reduced-motion: reduce)`,Ul=0,Wl=`0ms`,Gl=()=>{},Kl=()=>!1,ql=()=>!0,Jl=()=>Gl;function Yl(e){let[t,n]=E.useState(()=>({enabled:e,matches:e?null:!1})),r=t.matches;return t.enabled!==e&&(r=null,e||(r=!1)),ti(()=>{let r=t=>{n(n=>n.enabled===e&&n.matches===t?n:{enabled:e,matches:t})};if(!e){t.enabled&&r(!1);return}if(typeof window>`u`||typeof window.matchMedia!=`function`){r(!1);return}let i=window.matchMedia(Hl),a=()=>{r(i.matches)};return a(),i.addEventListener(`change`,a),()=>{i.removeEventListener(`change`,a)}},[e,t.enabled]),r}var Xl={...E}.useSyncExternalStore;function Zl(e){let t=e?ql:Kl,[n,r]=E.useMemo(()=>{if(!e||typeof window>`u`||typeof window.matchMedia!=`function`)return[Kl,Jl];let t=window.matchMedia(Hl);return[()=>t.matches,e=>(t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)})]},[e]);return Xl(r,n,t)}var Ql=Xl===void 0?Yl:Zl;function $l(e,t){let n=Ql(!t&&e===`system`),r=!t&&(e===`always`||e===`system`&&n!==!1);return E.useMemo(()=>({shouldReduceMotion:r,getTransitionTiming(e){return r?{duration:Ul,delay:Wl}:e}}),[r])}function eu(e,t,n){return e===void 0||fs(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function tu(e,t,n){return typeof e==`function`?e(t,n):e}function nu(e){if(e===void 0)return{};let t={},n=Object.keys(e);for(let r=0;r<n.length;r+=1){let i=n[r];Ml(i,e[i])&&(t[i]=e[i])}return t}function ru(e){if(e===void 0)return{};let t={},n=Object.keys(e);for(let r=0;r<n.length;r+=1){let i=n[r];Ml(i,e[i])||(t[i]=e[i])}return t}function iu(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=H(n?.className,a,i?.className,r?.className),t={...n,...i,...r};if(e.length>0&&(t.className=e),n?.style||i?.style||r?.style){let e={...n?.style,...i?.style,...r?.style};Object.keys(e).length>0&&(t.style=e)}return{props:t,internalRef:void 0}}let o=nu({...i,...r}),s=ru(r),c=ru(i),l=t(o),u=H(l?.className,n?.className,a,i?.className,r?.className),d={...l,...n,...c,...s};if(u.length>0&&(d.className=u),l?.style||n?.style||i?.style||r?.style){let e={...l?.style,...n?.style,...i?.style,...r?.style};Object.keys(e).length>0&&(d.style=e)}return{props:d,internalRef:l.ref}}function X(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,m=tu(d[e],i),{props:{component:h,...g},internalRef:_}=iu({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=ms(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,eu(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}function au(e){return zr(`MuiPaper`,e)}U(`MuiPaper`,`root.rounded.outlined.elevation.elevation0.elevation1.elevation2.elevation3.elevation4.elevation5.elevation6.elevation7.elevation8.elevation9.elevation10.elevation11.elevation12.elevation13.elevation14.elevation15.elevation16.elevation17.elevation18.elevation19.elevation20.elevation21.elevation22.elevation23.elevation24`.split(`.`));var ou=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return W({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},au,i)},su=K(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(J(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,...Zs(e,`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),cu=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiPaper`}),r=$o(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c},d=ou(u);return(0,V.jsx)(su,{as:a,ownerState:u,className:H(d.root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${gi(`#fff`,No(o))}, ${gi(`#fff`,No(o))})`}},...l.style}})});function lu(e){try{return e.matches(`:focus-visible`)}catch{}return!1}function uu(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return E.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}var du={};function fu(e){let{nativeButton:t,nativeButtonProp:n,internalNativeButton:r=t,allowInferredHostMismatch:i=!1,disabled:a,type:o,hasFormAction:s=!1,tabIndex:c=0,focusableWhenDisabled:l,stopEventPropagation:u=!1,onBeforeKeyDown:d,onBeforeKeyUp:f}=e,p=E.useRef(null),m=l===!0,h=uu({focusableWhenDisabled:m,disabled:a,isNativeButton:t,tabIndex:c}),g=E.useCallback(()=>{let e=p.current;return e==null?t:e.tagName===`BUTTON`||!!(e.tagName===`A`&&e.href)},[t]),_=E.useMemo(()=>{let e=m?{}:{tabIndex:a?-1:c};return t?(e.type=o===void 0&&!s?`button`:o,m||(e.disabled=a)):(e.role=`button`,!m&&a&&(e[`aria-disabled`]=a)),m?{...e,...h}:e},[a,m,h,s,t,c,o]);return{getButtonProps:E.useCallback((e=du)=>{let{onClick:t,onKeyDown:n,onKeyUp:r,...i}=e,o=e=>{u&&e.stopPropagation(),a?e.preventDefault():t?.(e)},s=e=>{m&&h.onKeyDown(e),!a&&(d?.(e),n?.(e),!(e.target!==e.currentTarget||g())&&(e.key===` `?e.preventDefault():e.key===`Enter`&&(e.preventDefault(),e.currentTarget.click())))},c=e=>{a||(f?.(e),r?.(e),e.target===e.currentTarget&&!g()&&e.key===` `&&!e.defaultPrevented&&e.currentTarget.click())};return{..._,...i,onClick:o,onKeyDown:s,onKeyUp:c}},[_,a,m,h,g,d,f,u]),rootRef:p}}var pu=class e{ref={current:null};shouldMount=!1;mounted=null;didMount=!1;setShouldMount=null;static create(){return new e}static use(){let t=Fl(e.create).current,[n,r]=E.useState(!1);return t.shouldMount=n,t.setShouldMount=r,E.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=hu(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&(this.ref.current!==null&&(this.didMount=!0),this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function mu(){return pu.use()}function hu(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}var gu=[];function _u(e){E.useEffect(e,gu)}var vu=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function yu(){let e=Fl(vu.create).current;return _u(e.disposeEffect),e}function bu(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=E.useState(!1),f=yu(),p=E.useRef(!1),m=E.useRef(c);m.current=c;let h=c!=null,g=H(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),_={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},v=H(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),E.useEffect(()=>{!s&&h?p.current||(p.current=!0,f.start(l,()=>{p.current=!1,m.current?.()})):(p.current=!1,f.clear())},[f,h,s,l]),(0,V.jsx)(`span`,{className:g,style:_,children:(0,V.jsx)(`span`,{className:v})})}var xu=U(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),Su=550,Cu={},wu=[],Tu=()=>{};function Eu(e,t){let n=new Set(t),r=new Map,i=[];for(let t of e)n.has(t)?i.length>0&&(r.set(t,i),i=[]):i.push(t);let a=[];for(let e of t){let t=r.get(e);t&&a.push(...t),a.push(e)}return a.push(...i),a}function Du({event:e,element:t,center:n}){let r=t?t.getBoundingClientRect():{width:0,height:0,left:0,top:0},i,a;if(n||e===void 0||e.clientX===0&&e.clientY===0||!e.clientX&&!e.touches)i=Math.round(r.width/2),a=Math.round(r.height/2);else{let{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;i=Math.round(t-r.left),a=Math.round(n-r.top)}let o;if(n)o=Math.sqrt((2*r.width**2+r.height**2)/3),o%2==0&&(o+=1);else{let e=Math.max(Math.abs((t?t.clientWidth:0)-i),i)*2+2,n=Math.max(Math.abs((t?t.clientHeight:0)-a),a)*2+2;o=Math.sqrt(e**2+n**2)}return{rippleX:i,rippleY:a,rippleSize:o}}var Ou=sr`
|
|
49
49
|
0% {
|
|
50
50
|
transform: scale(0);
|
|
51
51
|
opacity: 0.1;
|
|
@@ -189,16 +189,16 @@ Error generating stack: `+e.message+`
|
|
|
189
189
|
`,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(`
|
|
190
190
|
`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return IC(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=Fw.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function Qw(){return{exit:{taskListCheckValueChecked:eT,taskListCheckValueUnchecked:eT,paragraph:tT}}}function $w(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:nT}}}function eT(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function tT(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function nT(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=Fw.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function rT(){return[QS(),CC(),OC(),Uw(),Qw()]}function iT(e){return{extensions:[$S(),wC(e),kC(),Zw(e),$w()]}}function aT(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function oT(e,t){return e.length>0?(aT(e,e.length,0,t),e):t}var sT={}.hasOwnProperty;function cT(e){let t={},n=-1;for(;++n<e.length;)lT(t,e[n]);return t}function lT(e,t){let n;for(n in t){let r=(sT.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){sT.call(r,a)||(r[a]=[]);let e=i[a];uT(r[a],Array.isArray(e)?e:e?[e]:[])}}}function uT(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);aT(e,0,0,r)}var dT={tokenize:TT,partial:!0},fT={tokenize:ET,partial:!0},pT={tokenize:DT,partial:!0},mT={tokenize:OT,partial:!0},hT={tokenize:kT,partial:!0},gT={name:`wwwAutolink`,tokenize:CT,previous:AT},_T={name:`protocolAutolink`,tokenize:wT,previous:jT},vT={name:`emailAutolink`,tokenize:ST,previous:MT},yT={};function bT(){return{text:yT}}for(var xT=48;xT<123;)yT[xT]=vT,xT++,xT===58?xT=65:xT===91&&(xT=97);yT[43]=vT,yT[45]=vT,yT[46]=vT,yT[95]=vT,yT[72]=[vT,_T],yT[104]=[vT,_T],yT[87]=[vT,gT],yT[119]=[vT,gT];function ST(e,t,n){let r=this,i,a;return o;function o(t){return!NT(t)||!MT.call(r,r.previous)||PT(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return NT(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(hT,u,l)(t):t===45||t===95||nx(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&tx(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function CT(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!AT.call(r,r.previous)||PT(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(dT,e.attempt(fT,e.attempt(pT,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function wT(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&jT.call(r,r.previous)&&!PT(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(tx(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||ix(t)||cx(t)||dx(t)||ux(t)?n(t):e.attempt(fT,e.attempt(pT,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function TT(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function ET(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(mT,c,s)(t):t===null||cx(t)||dx(t)||t!==45&&ux(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function DT(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(mT,t,a)(o):o===null||cx(o)||dx(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function OT(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||cx(o)||dx(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||cx(e)||dx(e)?t(e):r(e)}function a(e){return tx(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):tx(t)?(e.consume(t),o):n(t)}}function kT(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return nx(e)?n(e):t(e)}}function AT(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||cx(e)}function jT(e){return!tx(e)}function MT(e){return!(e===47||NT(e))}function NT(e){return e===43||e===45||e===46||e===95||nx(e)}function PT(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function FT(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&nx(e.charCodeAt(n+1))&&nx(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function IT(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var LT={name:`attention`,resolveAll:RT,tokenize:zT};function RT(e,t){let n=-1,r;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){let i=n;for(;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;let a=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,o={...e[i][1].end},s={...e[n][1].start};BT(o,-a),BT(s,a);let c={type:a>1?`strongSequence`:`emphasisSequence`,start:o,end:{...e[i][1].end}},l={type:a>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:s},u={type:a>1?`strongText`:`emphasisText`,start:{...e[i][1].end},end:{...e[n][1].start}},d={type:a>1?`strong`:`emphasis`,start:{...c.start},end:{...l.end}};e[i][1].end={...c.start},e[n][1].start={...l.end},r=[],e[i][1].end.offset-e[i][1].start.offset&&(r=oT(r,[[`enter`,e[i][1],t],[`exit`,e[i][1],t]])),r=oT(r,[[`enter`,d,t],[`enter`,c,t],[`exit`,c,t],[`enter`,u,t]]),r=oT(r,IT(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),r=oT(r,[[`exit`,u,t],[`enter`,l,t],[`exit`,l,t],[`exit`,d,t]]);let f=0;e[n][1].end.offset-e[n][1].start.offset&&(f=2,r=oT(r,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])),aT(e,i-1,n-i+3,r),n=i+r.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function zT(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Hw(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=Hw(o),u=!l||l===2&&i||n.includes(o)&&o!==42&&o!==95,d=!i||i===2&&l||n.includes(r)&&r!==42&&r!==95;return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function BT(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var VT={name:`autolink`,tokenize:HT};function HT(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return tx(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||nx(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||nx(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||ix(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):rx(t)?(e.consume(t),l):n(t)}function u(e){return nx(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||nx(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var UT={partial:!0,tokenize:WT};function WT(e,t,n){return r;function r(t){return lx(t)?gS(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||Q(e)?t(e):n(e)}}var GT={continuation:{tokenize:qT},exit:JT,name:`blockQuote`,tokenize:KT};function KT(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return lx(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function qT(e,t,n){let r=this;return i;function i(t){return lx(t)?gS(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(GT,t,n)(r)}}function JT(e){e.exit(`blockQuote`)}var YT={name:`characterEscape`,tokenize:XT};function XT(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return sx(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var ZT={name:`characterReference`,tokenize:QT};function QT(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=nx,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=ox,u):(e.enter(`characterReferenceValue`),a=7,o=ax,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===nx&&!bx(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var $T={partial:!0,tokenize:eE};function eE(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var tE={concrete:!0,name:`codeFenced`,tokenize:nE};function nE(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),lx(t)?gS(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||Q(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check($T,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||Q(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):lx(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),gS(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||Q(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||Q(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&lx(t)?gS(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||Q(t)?e.check($T,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||Q(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),lx(t)?gS(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),lx(t)?gS(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||Q(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}var rE={name:`codeIndented`,tokenize:aE},iE={partial:!0,tokenize:oE};function aE(e,t,n){return r;function r(t){return e.enter(`codeIndented`),_S(e,i,n,`linePrefix`,4,4)(t)}function i(t){return t===null?o(t):Q(t)?e.attempt(iE,i,o)(t):(e.enter(`codeFlowValue`),a(t))}function a(t){return t===null||Q(t)?(e.exit(`codeFlowValue`),i(t)):(e.consume(t),a)}function o(n){return e.exit(`codeIndented`),t(n)}}function oE(e,t,n){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Q(o)?(e.enter(`lineEnding`),e.consume(o),e.exit(`lineEnding`),i):_S(e,t,a,`linePrefix`,4,4)(o)}function a(e){return Q(e)?i(e):n(e)}}var sE={name:`codeText`,previous:lE,resolve:cE,tokenize:uE};function cE(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function lE(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function uE(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):Q(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||Q(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var dE=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&fE(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),fE(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),fE(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0)){if(e<this.left.length){let t=this.left.splice(e,1/0);fE(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);fE(this.left,t.reverse())}}}};function fE(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 pE(e){let t={},n=-1,r,i,a,o,s,c,l,u=new dE(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,mE(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(o[1].type!==`linePrefix`&&o[1].type!==`listItemIndent`)break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return aT(e,0,1/0,u.slice(0)),!l}function mE(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var hE={resolve:_E,tokenize:vE},gE={partial:!0,tokenize:yE};function _E(e){return pE(e),e}function vE(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):Q(t)?e.check(gE,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function yE(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),gS(e,a,`linePrefix`)}function a(i){if(i===null||Q(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function bE(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||ix(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||Q(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||cx(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||ix(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function xE(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):Q(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||Q(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!lx(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function SE(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):Q(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),gS(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||Q(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}var CE={name:`definition`,tokenize:TE},wE={partial:!0,tokenize:EE};function TE(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return xE.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=fC(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return cx(t)?vS(e,l)(t):l(t)}function l(t){return bE(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(wE,d,d)(t)}function d(t){return lx(t)?gS(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||Q(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function EE(e,t,n){return r;function r(t){return cx(t)?vS(e,i)(t):n(t)}function i(t){return SE(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return lx(t)?gS(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||Q(e)?t(e):n(e)}}var DE={name:`hardBreakEscape`,tokenize:OE};function OE(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return Q(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var kE={name:`headingAtx`,resolve:AE,tokenize:jE};function AE(e,t){let n=e.length-2,r=3;if(e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r){let i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`};aT(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])}return e}function jE(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||cx(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||Q(n)?(e.exit(`atxHeading`),t(n)):lx(n)?gS(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||cx(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var ME={concrete:!0,name:`htmlFlow`,resolveTo:PE,tokenize:FE},NE={partial:!0,tokenize:IE};function PE(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 FE(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:ee):tx(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):tx(a)?(e.consume(a),i=4,r.interrupt?t:ee):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:ee):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return tx(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||cx(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&Lw.includes(l)?(i=1,r.interrupt?t(s):O(s)):Iw.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||nx(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return lx(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||tx(t)?(e.consume(t),b):lx(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||nx(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):lx(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):lx(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||Q(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||cx(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||lx(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||Q(t)?O(t):lx(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),N):t===62&&i===4?(e.consume(t),te):t===63&&i===3?(e.consume(t),ee):t===93&&i===5?(e.consume(t),F):Q(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(NE,I,k)(t)):t===null||Q(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check($T,A,I)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||Q(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),ee):O(t)}function N(t){return t===47?(e.consume(t),o=``,P):O(t)}function P(t){if(t===62){let n=o.toLowerCase();return Lw.includes(n)?(e.consume(t),te):O(t)}return tx(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):O(t)}function F(t){return t===93?(e.consume(t),ee):O(t)}function ee(t){return t===62?(e.consume(t),te):t===45&&i===2?(e.consume(t),ee):O(t)}function te(t){return t===null||Q(t)?(e.exit(`htmlFlowData`),I(t)):(e.consume(t),te)}function I(n){return e.exit(`htmlFlow`),t(n)}}function IE(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(UT,t,n)}}var LE={name:`htmlText`,tokenize:RE};function RE(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):tx(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):tx(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):Q(t)?(o=d,N(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):Q(t)?(o=h,N(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):Q(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):Q(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return tx(t)?(e.consume(t),S):n(t)}function S(t){return t===45||nx(t)?(e.consume(t),S):C(t)}function C(t){return Q(t)?(o=C,N(t)):lx(t)?(e.consume(t),C):M(t)}function w(t){return t===45||nx(t)?(e.consume(t),w):t===47||t===62||cx(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||tx(t)?(e.consume(t),E):Q(t)?(o=T,N(t)):lx(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||nx(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):Q(t)?(o=D,N(t)):lx(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):Q(t)?(o=O,N(t)):lx(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):Q(t)?(o=k,N(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||cx(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||cx(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function N(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),P}function P(t){return lx(t)?gS(e,F,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):F(t)}function F(t){return e.enter(`htmlTextData`),o(t)}}var zE={name:`labelEnd`,resolveAll:UE,resolveTo:WE,tokenize:GE},BE={tokenize:KE},VE={tokenize:qE},HE={tokenize:JE};function UE(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&aT(e,0,e.length,n),e}function WE(e,t){let n=e.length,r=0,i,a,o;for(;n--;){let t=e[n][1];if(i){if(t.type===`link`||t.type===`labelLink`&&t._inactive)break;e[n][0]===`enter`&&t.type===`labelLink`&&(t._inactive=!0)}else if(a){if(e[n][0]===`enter`&&(t.type===`labelImage`||t.type===`labelLink`)&&!t._balanced&&(i=n,t.type!==`labelLink`)){r=2;break}}else t.type===`labelEnd`&&(a=n)}let s={type:e[i][1].type===`labelLink`?`link`:`image`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:`label`,start:{...e[i][1].start},end:{...e[a][1].end}},l={type:`labelText`,start:{...e[i+r+2][1].end},end:{...e[a-2][1].start}};return o=[[`enter`,s,t],[`enter`,c,t]],o=oT(o,e.slice(i+1,i+r+3)),o=oT(o,[[`enter`,l,t]]),o=oT(o,IT(t.parser.constructs.insideSpan.null,e.slice(i+r+4,a-3),t)),o=oT(o,[[`exit`,l,t],e[a-2],e[a-1],[`exit`,c,t]]),o=oT(o,e.slice(a+1)),o=oT(o,[[`exit`,s,t]]),aT(e,i,e.length,o),e}function GE(e,t,n){let r=this,i=r._labelStarts,a,o;if(i){for(;i.length>0&&i[i.length-1]._balanced;)i.pop();a=i[i.length-1]}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(fC(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(BE,u,o?u:d)(t):t===91?e.attempt(VE,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(HE,u,d)(t)}function u(e){return i.pop(),t(e)}function d(e){return a._balanced=!0,n(e)}}function KE(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return cx(t)?vS(e,a)(t):a(t)}function a(t){return t===41?u(t):bE(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return cx(t)?vS(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?SE(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return cx(t)?vS(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function qE(e,t,n){let r=this;return i;function i(t){return xE.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(fC(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function JE(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var YE={name:`labelStartImage`,resolveAll:zE.resolveAll,tokenize:XE};function XE(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),o}function o(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelImage`),s):n(t)}function s(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var ZE={name:`labelStartLink`,resolveAll:zE.resolveAll,tokenize:QE};function QE(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelLink`),o}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var $E={name:`lineEnding`,tokenize:eD};function eD(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),gS(e,t,`linePrefix`)}}var tD={name:`thematicBreak`,tokenize:nD};function nD(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||Q(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),lx(t)?gS(e,s,`whitespace`)(t):s(t))}}var rD={continuation:{tokenize:sD},exit:lD,name:`list`,tokenize:oD},iD={partial:!0,tokenize:uD},aD={partial:!0,tokenize:cD};function oD(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:ax(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(tD,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return ax(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(UT,r.interrupt?n:u,e.attempt(iD,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return lx(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function sD(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(UT,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,gS(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!lx(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(aD,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,gS(e,e.attempt(rD,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function cD(e,t,n){let r=this;return gS(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function lD(e){e.exit(this.containerState.type)}function uD(e,t,n){let r=this;return gS(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!lx(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var dD=class{constructor(){this.index=new Map,this.map=[]}add(e,t,n){fD(this,e,t,n,!1)}addBefore(e,t,n){fD(this,e,t,n,!0)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function fD(e,t,n,r,i){if(n===0&&r.length===0)return;let a=e.index.get(t);if(a){a[1]+=n,i?(r.push(...a[2]),a[2]=r):a[2].push(...r);return}let o=[t,n,r];e.map.push(o),e.index.set(t,o)}var pD={name:`setextUnderline`,resolveTo:mD,tokenize:hD};function mD(e,t){let n=new dD,r=e.length,i,a,o;for(;r--;)if(e[r][0]===`enter`){if(e[r][1].type===`content`){i=r;break}e[r][1].type===`paragraph`&&(a=r)}else e[r][1].type===`content`&&n.add(r,1,[]),!o&&e[r][1].type===`definition`&&(o=r);let s={type:`setextHeading`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type=`setextHeadingText`,o?(n.add(a,0,[[`enter`,s,t]]),n.add(o+1,0,[[`exit`,e[i][1],t]]),e[i][1].end={...e[o][1].end}):e[i][1]=s,n.add(e.length,0,[[`exit`,s,t]]),n.consume(e),e}function hD(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),lx(t)?gS(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||Q(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var gD={tokenize:wD,partial:!0};function _D(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:xD,continuation:{tokenize:SD},exit:CD}},text:{91:{name:`gfmFootnoteCall`,tokenize:bD},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:vD,resolveTo:yD}}}}function vD(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=fC(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function yD(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function bD(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||cx(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(fC(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return cx(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function xD(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||cx(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=fC(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return cx(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),gS(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function SD(e,t,n){return e.check(UT,t,e.attempt(gD,t,n))}function CD(e){e.exit(`gfmFootnoteDefinition`)}function wD(e,t,n){let r=this;return gS(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function TD(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&aT(o,o.length,0,IT(s,e.slice(r+1,n),t)),aT(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),aT(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=Hw(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=Hw(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var ED=class{constructor(){this.map=[],this.index=new Map}add(e,t,n){DD(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function DD(e,t,n,r){if(n===0&&r.length===0)return;let i=e.index.get(t);if(i){i[1]+=n,i[2].push(...r);return}let a=[t,n,r];e.map.push(a),e.index.set(t,a)}function OD(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function kD(){return{flow:{null:{name:`table`,tokenize:AD,resolveAll:jD}}}}function AD(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let{type:e}=r.events[t][1];if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124||(o=!0,a+=1),u(e)}function u(t){return t===null?n(t):Q(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):lx(t)?gS(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||cx(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,lx(t)?gS(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return lx(t)?gS(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||Q(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return lx(t)?gS(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||Q(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||Q(n)?(e.exit(`tableRow`),t(n)):lx(n)?gS(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||cx(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function jD(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new ED;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(ND(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=MD(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=MD(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=MD(f,t,o,i,n,d)):(o[0]=o[1],d=MD(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&ND(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=OD(t.events,n))}return e}function MD(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},PD(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=PD(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=PD(t.events,n[2]),a=PD(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},PD(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function ND(e,t,n,r,i){let a=[],o=PD(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function PD(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var FD={name:`tasklistCheck`,tokenize:LD};function ID(){return{text:{91:FD}}}function LD(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return cx(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return Q(r)?t(r):lx(r)?e.check({tokenize:RD},t,n)(r):n(r)}}function RD(e,t,n){return gS(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function zD(e){return cT([bT(),_D(),TD(e),kD(),ID()])}var BD={};function VD(e){let t=this,n=e||BD,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(zD(n)),a.push(rT()),o.push(iT(n))}var HD={tokenize:UD};function UD(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null)e.consume(n);else return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),gS(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null)e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);else return Q(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var WD={tokenize:KD},GD={tokenize:qD};function KD(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;let c=new dD;return c.add(a+1,0,t.events.slice(n)),c.add(n,s-n,[]),c.consume(t.events),l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!(!i.currentConstruct||i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(GD,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(GD,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null)i&&v(),_(0),e.consume(n);else return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null)g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);else return Q(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;let l=new dD;l.add(a+1,0,t.events.slice(n)),l.add(n,e-n,[]),l.consume(t.events)}}function _(r){let i=n.length;for(;i-->r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function qD(e,t,n){return gS(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}var JD={tokenize:YD};function YD(e){let t=this,n=e.attempt(UT,r,e.attempt(this.parser.constructs.flowInitial,i,gS(e,e.attempt(this.parser.constructs.flow,i,e.attempt(hE,i)),`linePrefix`)));return n;function r(r){if(r===null)e.consume(r);else return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null)e.consume(r);else return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var XD={resolveAll:eO()},ZD=$D(`string`),QD=$D(`text`);function $D(e){return{resolveAll:eO(e===`text`?tO:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null)t.consume(e);else return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function eO(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function tO(e,t){let n=new dD,r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type===`lineEnding`)&&e[r-1][1].type===`data`){let i=e[r-1][1],a=t.sliceStream(i),o=a.length,s=-1,c=0,l;for(;o--;){let e=a[o];if(typeof e==`string`){for(s=e.length;e.charCodeAt(s-1)===32;)c++,s--;if(s)break;s=-1}else if(e===-2)l=!0,c++;else if(e!==-1){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(c=0),c){let a={type:r===e.length||l||c<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):n.add(r,0,[[`enter`,a,t],[`exit`,a,t]])}r++}return n.consume(e),e}var nO=s({attentionMarkers:()=>uO,contentInitial:()=>iO,disable:()=>dO,document:()=>rO,flow:()=>oO,flowInitial:()=>aO,insideSpan:()=>lO,string:()=>sO,text:()=>cO}),rO={42:rD,43:rD,45:rD,48:rD,49:rD,50:rD,51:rD,52:rD,53:rD,54:rD,55:rD,56:rD,57:rD,62:GT},iO={91:CE},aO={[-2]:rE,[-1]:rE,32:rE},oO={35:kE,42:tD,45:[pD,tD],60:ME,61:pD,95:tD,96:tE,126:tE},sO={38:ZT,92:YT},cO={[-5]:$E,[-4]:$E,[-3]:$E,33:YE,38:ZT,42:LT,60:[VT,LE],91:ZE,92:[DE,YT],93:zE,95:LT,96:sE},lO={null:[LT,XD]},uO={null:[42,95]},dO={null:[]};function fO(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=oT(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=IT(a,l.events,l),l.events):[]}function f(e,t){return mO(p(e),t)}function p(e){return pO(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){for(;r._index<o.length;){let e=o[r._index];if(typeof e==`string`){let t=r._index;for(r._bufferIndex<0&&(r._bufferIndex=0);r._index===t&&r._bufferIndex<e.length;)_(e.charCodeAt(r._bufferIndex))}else _(e)}}function _(e){u=u(e)}function v(e){Q(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&aT(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function pO(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function mO(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
191
191
|
`;break;case-3:o=`\r
|
|
192
|
-
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function hO(e){let t={constructs:cT([nO,...(e||{}).extensions||[]]),content:n(HD),defined:[],document:n(WD),flow:n(JD),lazy:{},string:n(ZD),text:n(QD)};return t;function n(e){return n;function n(n){return fO(t,e,n)}}}function gO(e){for(;!pE(e););return e}var _O=/[\0\t\n\r]/g;function vO(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i));let s=[],c=0;for(t=``,n&&=(i.charCodeAt(0)===65279&&c++,void 0);c<i.length;){_O.lastIndex=c;let n=_O.exec(i),a=n&&n.index!==void 0?n.index:i.length,o=i.charCodeAt(a);if(!n){t=i.slice(c);break}if(o===10&&c===a&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),c<a&&(s.push(i.slice(c,a)),e+=a-c),o){case 0:s.push(65533),e++;break;case 9:{let t=Math.ceil(e/4)*4;for(s.push(-2);e++<t;)s.push(-1);break}case 10:s.push(-4),e=1;break;default:r=!0,e=1}c=a+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}function yO(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?xO(e.position):`start`in e||`end`in e?xO(e):`line`in e||`column`in e?bO(e):``}function bO(e){return SO(e&&e.line)+`:`+SO(e&&e.column)}function xO(e){return bO(e&&e.start)+`-`+bO(e&&e.end)}function SO(e){return e&&typeof e==`number`?e:1}var CO={}.hasOwnProperty;function wO(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),TO(n)(gO(hO(n).document().write(vO()(e,t,!0))))}function TO(e){let t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:o(ge),autolinkProtocol:E,autolinkEmail:E,atxHeading:o(pe),blockQuote:o(ue),characterEscape:E,characterReference:E,codeFenced:o(de),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(de,s),codeText:o(L,s),codeTextData:E,data:E,codeFlowValue:E,definition:o(R),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(fe),hardBreakEscape:o(me),hardBreakTrailing:o(me),htmlFlow:o(he,s),htmlFlowData:E,htmlText:o(he,s),htmlTextData:E,image:o(z),label:s,link:o(ge),listItem:o(ve),listItemValue:p,listOrdered:o(_e,f),listUnordered:o(_e),paragraph:o(ye),reference:re,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(pe),strong:o(be),thematicBreak:o(Se)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:le,autolinkProtocol:ce,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:ae,characterReferenceMarkerNumeric:ae,characterReferenceValue:oe,characterReference:se,codeFenced:l(_),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:h,codeFlowValue:D,codeIndented:l(v),codeText:l(M),codeTextData:D,data:D,definition:l(),definitionDestinationString:x,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(k),hardBreakTrailing:l(k),htmlFlow:l(A),htmlFlowData:D,htmlText:l(j),htmlTextData:D,image:l(P),label:ee,labelText:F,lineEnding:O,link:l(N),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:ie,resourceDestinationString:te,resourceTitleString:I,resource:ne,setextHeading:l(T),setextHeadingLineSequence:w,setextHeadingText:C,strong:l(),thematicBreak:l()}};DO(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[],position:void 0},o={stack:[r],tokenStack:[],config:t,enter:c,exit:u,buffer:s,resume:d,data:n},l=[],f=[],p=-1;for(;++p<e.length;)f.push(e[p]),(e[p][1].type===`listOrdered`||e[p][1].type===`listUnordered`)&&(e[p][0]===`enter`?l.push(f.length-1):a(f,l.pop()));for(e=f,p=-1;++p<e.length;){let n=t[e[p][0]];e[p][0]===`enter`&&t.beforeEnter.length>0&&i(t.beforeEnter,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),CO.call(n,e[p][1].type)&&n[e[p][1].type].call({...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),e[p][0]===`exit`&&t.afterExit.length>0&&i(t.afterExit,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||kO).call(o,void 0,e[0])}for(r.position={start:EO(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:EO(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p<t.transforms.length;)r=t.transforms[p](r)||r;return r}function i(e,t,n){let r=-1;for(;++r<e.length;)e[r].call(t,n)}function a(e,t){let n=e.length-1,r=t-1,i=-1,a=!1,o,s,c,l,u=[];for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let n=r;for(s=void 0;n--;){let t=e[n];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=n}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),u.push({at:s||r,event:[`exit`,o,t[2]]})}if(t[1].type===`listItemPrefix`){let e={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=e,u.push({at:r,event:[`enter`,e,t[2]]}),c=void 0,l=!0}}}let d=e.splice(t),f=0;for(r=-1;++r<d.length;){for(;f<u.length&&u[f].at===t+r;)e.push(u[f++].event);e.push(d[r])}e[t][1]._spread=a}function o(e,t){return n;function n(n){c.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:`fragment`,children:[]})}function c(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:EO(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw Error("Cannot close `"+e.type+"` ("+yO({start:e.start,end:e.end})+`): it’s not open`);r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||kO).call(this,e,r[0])),n.position.end=EO(e.end)}function d(){return Xb(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function h(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function v(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function y(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=fC(this.sliceSerialize(e)).toLowerCase()}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function x(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function S(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function C(){this.data.setextHeadingSlurpLineEnding=!0}function w(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function T(){this.data.setextHeadingSlurpLineEnding=void 0}function E(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=xe(),n.position={start:EO(e.start),end:void 0},t.push(n)),this.stack.push(n)}function D(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=EO(e.end)}function O(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=EO(e.end),this.data.atHardBreak=void 0}else!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(E.call(this,e),D.call(this,e))}function k(){this.data.atHardBreak=!0}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function M(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function N(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function F(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=Bw(t),n.identifier=fC(t).toLowerCase()}function ee(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function te(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function I(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function ne(){this.data.inReference=void 0}function re(){this.data.referenceType=`collapsed`}function ie(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=fC(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function ae(e){this.data.characterReferenceType=e.type}function oe(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=Rw(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=bx(t);let i=this.stack[this.stack.length-1];i.value+=r}function se(e){let t=this.stack.pop();t.position.end=EO(e.end)}function ce(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function le(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function ue(){return{type:`blockquote`,children:[],position:void 0}}function de(){return{type:`code`,lang:null,meta:null,value:``,position:void 0}}function L(){return{type:`inlineCode`,value:``,position:void 0}}function R(){return{type:`definition`,identifier:``,label:null,title:null,url:``,position:void 0}}function fe(){return{type:`emphasis`,children:[],position:void 0}}function pe(){return{type:`heading`,depth:0,children:[],position:void 0}}function me(){return{type:`break`,position:void 0}}function he(){return{type:`html`,value:``,position:void 0}}function z(){return{type:`image`,title:null,url:``,alt:null,position:void 0}}function ge(){return{type:`link`,title:null,url:``,children:[],position:void 0}}function _e(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[],position:void 0}}function ve(e){return{type:`listItem`,spread:e._spread,checked:null,children:[],position:void 0}}function ye(){return{type:`paragraph`,children:[],position:void 0}}function be(){return{type:`strong`,children:[],position:void 0}}function xe(){return{type:`text`,value:``,position:void 0}}function Se(){return{type:`thematicBreak`,position:void 0}}}function EO(e){return{line:e.line,column:e.column,offset:e.offset}}function DO(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?DO(e,r):OO(e,r)}}function OO(e,t){let n;for(n in t)if(CO.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`afterExit`:case`beforeEnter`:{let r=t[n];r&&e[n].push(r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function kO(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+yO({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+yO({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+yO({start:t.start,end:t.end})+`) is still open`)}function AO(e){let t=this;t.parser=n;function n(n){return wO(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function jO(e){if(e)throw e}var MO=o(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function NO(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function PO(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a)r(a);else{for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?FO(s,i)(...o):r(null,...o)}}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function FO(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var IO=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=yO(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};IO.prototype.file=``,IO.prototype.name=``,IO.prototype.reason=``,IO.prototype.message=``,IO.prototype.stack=``,IO.prototype.column=void 0,IO.prototype.line=void 0,IO.prototype.ancestors=void 0,IO.prototype.cause=void 0,IO.prototype.fatal=void 0,IO.prototype.place=void 0,IO.prototype.ruleId=void 0,IO.prototype.source=void 0;var LO={basename:RO,dirname:zO,extname:BO,join:VO,sep:`/`};function RO(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);WO(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function zO(e){if(WO(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function BO(e){WO(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}}else n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function VO(...e){let t=-1,n;for(;++t<e.length;)WO(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:HO(n)}function HO(e){WO(e);let t=e.codePointAt(0)===47,n=UO(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function UO(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(i!==o-1&&a!==1){if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1}i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function WO(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var GO={cwd:KO};function KO(){return`/`}function qO(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function JO(e){if(typeof e==`string`)e=new URL(e);else if(!qO(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return YO(e)}function YO(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var XO=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],ZO=class{constructor(e){let t;t=e?qO(e)?{path:e}:typeof e==`string`||tk(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:GO.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<XO.length;){let e=XO[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)XO.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?LO.basename(this.path):void 0}set basename(e){$O(e,`basename`),QO(e,`basename`),this.path=LO.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?LO.dirname(this.path):void 0}set dirname(e){ek(this.basename,`dirname`),this.path=LO.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?LO.extname(this.path):void 0}set extname(e){if(QO(e,`extname`),ek(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=LO.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){qO(e)&&(e=JO(e)),$O(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?LO.basename(this.path,this.extname):void 0}set stem(e){$O(e,`stem`),QO(e,`stem`),this.path=LO.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new IO(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function QO(e,t){if(e&&e.includes(LO.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+LO.sep+"`")}function $O(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function ek(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function tk(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var nk=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),rk=l(MO(),1),ik={}.hasOwnProperty,ak=new class e extends nk{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=PO()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,rk.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(ck(`data`,this.frozen),this.namespace[e]=t,this):ik.call(this.namespace,e)&&this.namespace[e]||void 0:e?(ck(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=dk(e),n=this.parser||this.Parser;return ok(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),ok(`process`,this.parser||this.Parser),sk(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=dk(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);pk(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),ok(`processSync`,this.parser||this.Parser),sk(`processSync`,this.compiler||this.Compiler),this.process(e,r),uk(`processSync`,`process`,t),n;function r(e,r){t=!0,jO(e),n=r}}run(e,t,n){lk(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=dk(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),uk(`runSync`,`run`,n),r;function i(e,t){jO(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=dk(t),r=this.compiler||this.Compiler;return sk(`stringify`,r),lk(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(ck(`use`,this.frozen),e!=null){if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`")}return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`){if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e)}else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,rk.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null){if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];NO(o)&&NO(r)&&(r=(0,rk.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function ok(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function sk(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function ck(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function lk(e){if(!NO(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function uk(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function dk(e){return fk(e)?e:new ZO(e)}function fk(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function pk(e){return typeof e==`string`||mk(e)}function mk(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var hk=[`note`,`warning`,`tip`,`say`,`do`,`timing`];function gk(e){return hk.includes(e)}function _k(){return e=>{rw(e,(e,t,n)=>{if(e.type!==`containerDirective`&&e.type!==`leafDirective`&&e.type!==`textDirective`)return;let r=e;if(r.type===`containerDirective`)r.data={...r.data,hName:`div`,hProperties:gk(r.name)?{dataAdmonition:r.name}:{dataAdmonitionUnknown:r.name}};else if(n&&typeof t==`number`){let e={type:`text`,value:`:${r.name}`},i=r.type===`leafDirective`?{type:`paragraph`,children:[e]}:e;return n.children.splice(t,1,i),[Wx,t]}})}}function vk(){return e=>{rw(e,`html`,(e,t,n)=>{if(n&&typeof t==`number`){let r={type:`text`,value:e.value},i=n.type===`root`?{type:`paragraph`,children:[r]}:r;return n.children.splice(t,1,i),[Wx,t]}})}}function yk(e,t){let[n,...r]=t.split(`.`);if(!n||r.length===0||!(n in e))return{found:!1};let i=e[n];for(let e of r){if(typeof i!=`object`||!i||Array.isArray(i)||!Object.prototype.hasOwnProperty.call(i,e))return{found:!1};i=i[e]}return{found:!0,value:i}}function bk(e,t){if(typeof e==`number`)try{return new Intl.NumberFormat(t).format(e)}catch{return new Intl.NumberFormat(`en`).format(e)}return typeof e==`string`?e:null}function xk(e,t){let n=t.setting;if(!n)return{error:`:::when names no setting`};let r=yk(e,n);if(!r.found)return{error:`:::when names "${n}", which this guide is not given`};let{value:i}=r,a=t.not!==void 0&&t.not!==null,o;if(t.is===void 0||t.is===null){if(typeof i!=`boolean`)return{error:`:::when on "${n}" needs is="…", since it is not true or false`};o=i}else if(typeof i==`number`)o=t.is.trim()!==``&&Number(t.is)===i;else if(typeof i==`string`||typeof i==`boolean`)o=String(i)===t.is;else return{error:`:::when on "${n}" compares a value that is not a single value`};return{show:a?!o:o}}function Sk(e){return{type:`emphasis`,data:{hName:`span`,hProperties:{dataGuideError:e}},children:[{type:`text`,value:e}]}}function Ck(e){return{type:`paragraph`,data:{hName:`div`,hProperties:{dataGuideError:e}},children:[{type:`text`,value:e}]}}function wk(e){return t=>{rw(t,(t,n,r)=>{if(!r||typeof n!=`number`)return;let i=t;if(i.type===`containerDirective`&&i.name===`when`){let t=xk(e.settings,i.attributes??{}),a=`error`in t?[Ck(t.error)]:t.show?i.children:[];return r.children.splice(n,1,...a),[Wx,n]}if(i.type===`textDirective`&&i.name===`setting`){let t=Tk(i),a=yk(e.settings,t),o=a.found?bk(a.value,e.locale):null,s=o===null?Sk(a.found?`:setting[${t}] is not a number or text`:`:setting[${t}] is not given to this guide`):{type:`text`,value:o};return r.children.splice(n,1,s),[Wx,n+1]}})}}function Tk(e){return e.children.map(e=>`value`in e&&typeof e.value==`string`?e.value:``).join(``).trim()}var Ek=/\s*\{-\}\s*$/;function Dk(e){return e.replace(/\.md$/,``)}function Ok(e,t){let n=new qb,r=Dk(t),i=[];return rw(e,`heading`,e=>{let t=Xb(e),a=Ek.test(t),o=t.replace(Ek,``);i.push({node:e,id:`${r}--${n.slug(o)}`,text:o,omitted:a})}),i}function kk(e){let t=e.children[e.children.length-1];t?.type===`text`&&Ek.test(t.value)&&(t.value=t.value.replace(Ek,``))}function Ak(e){return t=>{for(let n of Ok(t,e.chapterFile))kk(n.node),n.node.data={...n.node.data,hProperties:{...n.node.data?.hProperties,id:n.id}}}}function jk(e,t,n){let r=n?.minDepth??2,i=n?.maxDepth??3,a=ak().use(AO).use(VD).use(WS).parse(t);return wk({settings:n?.settings??{},locale:n?.locale??`en`})(a),_k()(a),Ok(a,e).filter(e=>!e.omitted).filter(e=>e.node.depth===1||e.node.depth>=r&&e.node.depth<=i).map(e=>({id:e.id,text:e.text,depth:e.node.depth}))}var Mk={youtube:{idPattern:/^[A-Za-z0-9_-]{11}$/,embedUrl:e=>`https://www.youtube-nocookie.com/embed/${e}`,embedHosts:[`www.youtube-nocookie.com`]}},Nk=`file`,Pk={src:[`mp4`,`webm`],poster:[`png`,`jpg`,`jpeg`,`gif`,`webp`,`avif`],captions:[`vtt`]},Fk={youtube:new Set([`provider`,`id`]),[Nk]:new Set([`provider`,`src`,`title`,`poster`,`captions`])},Ik=[...Object.keys(Mk),Nk],Lk=`https://guide.invalid/content/locale/chapter.md`;function Rk(e){if(/^[a-z][a-z0-9+.-]*:/i.test(e)||e.startsWith(`/`)||e.includes(`\\`)||/[?#]/.test(e))return;let t;try{t=new URL(e,Lk)}catch{return}if(t.origin===`https://guide.invalid`&&t.pathname.startsWith(`/assets/`))try{let e=decodeURIComponent(t.pathname.slice(8));return e.split(`/`).some(e=>e===``||e===`.`||e===`..`||e.includes(`\\`))?void 0:e}catch{return}}function zk(e){let t=e.lastIndexOf(`.`);return t===-1?``:e.slice(t+1).toLowerCase()}function Bk(e){let t={};for(let n of e.split(`
|
|
193
|
-
`)){let e=n.trim();if(e.length===0)continue;let r=e.match(/^([A-Za-z][A-Za-z0-9_-]*):\s*(.*)$/);if(!r)return{ok:!1,error:`Malformed line in video block: "${e}"`};let i=r[1],a=r[2].trim();if(i in t)return{ok:!1,error:`Duplicate key "${i}" in video block`};t[i]=a}let n=t.provider;if(!n)return{ok:!1,error:`Video block is missing "provider"`};let r=Fk[n];if(!r)return{ok:!1,error:`Unknown video provider "${n}". Supported providers: ${Ik.join(`, `)}`};for(let e of Object.keys(t))if(!r.has(e))return{ok:!1,error:`Unknown key "${e}" in video block`};if(n===`file`)return Vk(t);let i=Mk[n],a=t.id;return a?i.idPattern.test(a)?{ok:!0,kind:`embed`,provider:n,id:a,embedUrl:i.embedUrl(a)}:{ok:!1,error:`Video id "${a}" is not a valid ${n} id`}:{ok:!1,error:`Video block is missing "id"`}}function Vk(e){if(!e.src)return{ok:!1,error:`Video block is missing "src"`};let t={};for(let n of Object.keys(Pk)){let r=e[n];if(r===void 0)continue;let i=Rk(r);if(!i)return{ok:!1,error:`Video ${n} "${r}" must be a file in the guide's assets/ directory`};let a=Pk[n];if(!a.includes(zk(i)))return{ok:!1,error:`Video ${n} "${r}" must be a ${a.map(e=>`.${e}`).join(`, `)} file`};t[n]=i}return{ok:!0,kind:`file`,provider:Nk,src:t.src,...t.poster?{poster:t.poster}:{},...t.captions?{captions:t.captions}:{},...e.title?{title:e.title}:{}}}var Hk=Cl((0,V.jsx)(`path`,{d:`M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8`}),`InfoOutlined`),Uk=Cl((0,V.jsx)(`path`,{d:`M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7m2.85 11.1-.85.6V16h-4v-2.3l-.85-.6C7.8 12.16 7 10.63 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.63-.8 3.16-2.15 4.1`}),`LightbulbOutlined`),Wk=Cl([(0,V.jsx)(`circle`,{cx:`9`,cy:`9`,r:`4`},`0`),(0,V.jsx)(`path`,{d:`M9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4m7.76-9.64-1.68 1.69c.84 1.18.84 2.71 0 3.89l1.68 1.69c2.02-2.02 2.02-5.07 0-7.27M20.07 2l-1.63 1.63c2.77 3.02 2.77 7.56 0 10.74L20.07 16c3.9-3.89 3.91-9.95 0-14`},`1`)],`RecordVoiceOver`),Gk=Cl((0,V.jsx)(`path`,{d:`M22 5.18 10.59 16.6l-4.24-4.24 1.41-1.41 2.83 2.83 10-10zm-2.21 5.04c.13.57.21 1.17.21 1.78 0 4.42-3.58 8-8 8s-8-3.58-8-8 3.58-8 8-8c1.58 0 3.04.46 4.28 1.25l1.44-1.44C16.1 2.67 14.13 2 12 2 6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-1.19-.22-2.33-.6-3.39z`}),`TaskAlt`),Kk=Cl((0,V.jsx)(`path`,{d:`M15 1H9v2h6zm-4 13h2V8h-2zm8.03-6.61 1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61M12 20c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7`}),`TimerOutlined`),qk=Cl([(0,V.jsx)(`path`,{d:`M12 5.99 19.53 19H4.47zM12 2 1 21h22z`},`0`),(0,V.jsx)(`path`,{d:`M13 16h-2v2h2zm0-6h-2v5h2z`},`1`)],`WarningAmber`);function Jk(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Yk=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Xk=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Zk={};function Qk(e,t){return((t||Zk).jsx?Xk:Yk).test(e)}var $k=/[ \t\n\f\r]/g;function eA(e){return typeof e==`object`?e.type===`text`&&tA(e.value):tA(e)}function tA(e){return e.replace($k,``)===``}var nA=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};nA.prototype.normal={},nA.prototype.property={},nA.prototype.space=void 0;function rA(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new nA(n,r,t)}function iA(e){return e.toLowerCase()}var aA=class{constructor(e,t){this.attribute=t,this.property=e}};aA.prototype.attribute=``,aA.prototype.booleanish=!1,aA.prototype.boolean=!1,aA.prototype.commaOrSpaceSeparated=!1,aA.prototype.commaSeparated=!1,aA.prototype.defined=!1,aA.prototype.mustUseProperty=!1,aA.prototype.number=!1,aA.prototype.overloadedBoolean=!1,aA.prototype.property=``,aA.prototype.spaceSeparated=!1,aA.prototype.space=void 0;var oA=s({boolean:()=>cA,booleanish:()=>lA,commaOrSpaceSeparated:()=>pA,commaSeparated:()=>fA,number:()=>$,overloadedBoolean:()=>uA,spaceSeparated:()=>dA}),sA=0,cA=mA(),lA=mA(),uA=mA(),$=mA(),dA=mA(),fA=mA(),pA=mA();function mA(){return 2**++sA}var hA=Object.keys(oA),gA=class extends aA{constructor(e,t,n,r){let i=-1;if(super(e,t),_A(this,`space`,r),typeof n==`number`)for(;++i<hA.length;){let e=hA[i];_A(this,hA[i],(n&oA[e])===oA[e])}}};gA.prototype.defined=!0;function _A(e,t,n){n&&(e[t]=n)}function vA(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new gA(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[iA(r)]=r,n[iA(a.attribute)]=r}return new nA(t,n,e.space)}var yA=vA({properties:{ariaActiveDescendant:null,ariaAtomic:lA,ariaAutoComplete:null,ariaBusy:lA,ariaChecked:lA,ariaColCount:$,ariaColIndex:$,ariaColSpan:$,ariaControls:dA,ariaCurrent:null,ariaDescribedBy:dA,ariaDetails:null,ariaDisabled:lA,ariaDropEffect:dA,ariaErrorMessage:null,ariaExpanded:lA,ariaFlowTo:dA,ariaGrabbed:lA,ariaHasPopup:null,ariaHidden:lA,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:dA,ariaLevel:$,ariaLive:null,ariaModal:lA,ariaMultiLine:lA,ariaMultiSelectable:lA,ariaOrientation:null,ariaOwns:dA,ariaPlaceholder:null,ariaPosInSet:$,ariaPressed:lA,ariaReadOnly:lA,ariaRelevant:null,ariaRequired:lA,ariaRoleDescription:dA,ariaRowCount:$,ariaRowIndex:$,ariaRowSpan:$,ariaSelected:lA,ariaSetSize:$,ariaSort:null,ariaValueMax:$,ariaValueMin:$,ariaValueNow:$,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function bA(e,t){return t in e?e[t]:t}function xA(e,t){return bA(e,t.toLowerCase())}var SA=vA({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:fA,acceptCharset:dA,accessKey:dA,action:null,allow:null,allowFullScreen:cA,allowPaymentRequest:cA,allowUserMedia:cA,alpha:cA,alt:null,as:null,async:cA,autoCapitalize:null,autoComplete:dA,autoFocus:cA,autoPlay:cA,blocking:dA,capture:null,charSet:null,checked:cA,cite:null,className:dA,closedBy:null,colorSpace:null,cols:$,colSpan:$,command:null,commandFor:null,content:null,contentEditable:lA,controls:cA,controlsList:dA,coords:$|fA,crossOrigin:null,data:null,dateTime:null,decoding:null,default:cA,defer:cA,dir:null,dirName:null,disabled:cA,download:uA,draggable:lA,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:cA,formTarget:null,headers:dA,height:$,hidden:uA,high:$,href:null,hrefLang:null,htmlFor:dA,httpEquiv:dA,id:null,imageSizes:null,imageSrcSet:null,inert:cA,inputMode:null,integrity:null,is:null,isMap:cA,itemId:null,itemProp:dA,itemRef:dA,itemScope:cA,itemType:dA,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:cA,low:$,manifest:null,max:null,maxLength:$,media:null,method:null,min:null,minLength:$,multiple:cA,muted:cA,name:null,nonce:null,noModule:cA,noValidate:cA,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:cA,optimum:$,pattern:null,ping:dA,placeholder:null,playsInline:cA,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:cA,referrerPolicy:null,rel:dA,required:cA,reversed:cA,rows:$,rowSpan:$,sandbox:dA,scope:null,scoped:cA,seamless:cA,selected:cA,shadowRootClonable:cA,shadowRootCustomElementRegistry:cA,shadowRootDelegatesFocus:cA,shadowRootMode:null,shadowRootSerializable:cA,shape:null,size:$,sizes:null,slot:null,span:$,spellCheck:lA,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$,step:null,style:null,tabIndex:$,target:null,title:null,translate:null,type:null,typeMustMatch:cA,useMap:null,value:lA,width:$,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:dA,axis:null,background:null,bgColor:null,border:$,borderColor:null,bottomMargin:$,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:cA,declare:cA,event:null,face:null,frame:null,frameBorder:null,hSpace:$,leftMargin:$,link:null,longDesc:null,lowSrc:null,marginHeight:$,marginWidth:$,noResize:cA,noHref:cA,noShade:cA,noWrap:cA,object:null,profile:null,prompt:null,rev:null,rightMargin:$,rules:null,scheme:null,scrolling:lA,standby:null,summary:null,text:null,topMargin:$,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:cA,disablePictureInPicture:cA,disableRemotePlayback:cA,exportParts:fA,part:dA,prefix:null,property:null,results:$,security:null,unselectable:null},space:`html`,transform:xA}),CA=vA({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`,maskType:`mask-type`,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:pA,accentHeight:$,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$,amplitude:$,arabicForm:null,ascent:$,attributeName:null,attributeType:null,azimuth:$,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$,by:null,calcMode:null,capHeight:$,className:dA,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:$,diffuseConstant:$,direction:null,display:null,dur:null,divisor:$,dominantBaseline:null,download:cA,dx:null,dy:null,edgeMode:null,editable:null,elevation:$,enableBackground:null,end:null,event:null,exponent:$,externalResourcesRequired:null,fill:null,fillOpacity:$,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:fA,g2:fA,glyphName:fA,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$,horizOriginX:$,horizOriginY:$,id:null,ideographic:$,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$,k:$,k1:$,k2:$,k3:$,k4:$,kernelMatrix:pA,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:$,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:$,overlineThickness:$,paintOrder:null,panose1:null,path:null,pathLength:$,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:dA,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$,pointsAtY:$,pointsAtZ:$,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:pA,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:pA,rev:pA,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:pA,requiredFeatures:pA,requiredFonts:pA,requiredFormats:pA,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:$,specularExponent:$,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$,strikethroughThickness:$,string:null,stroke:null,strokeDashArray:pA,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$,strokeOpacity:$,strokeWidth:null,style:null,surfaceScale:$,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:pA,tabIndex:$,tableValues:null,target:null,targetX:$,targetY:$,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:pA,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$,underlineThickness:$,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$,values:null,vAlphabetic:$,vMathematical:$,vectorEffect:null,vHanging:$,vIdeographic:$,version:null,vertAdvY:$,vertOriginX:$,vertOriginY:$,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:bA}),wA=vA({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()}}),TA=vA({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:xA}),EA=vA({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),DA={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`},OA=/[A-Z]/g,kA=/-[a-z]/g,AA=/^data[-\w.:]+$/i;function jA(e,t){let n=iA(t),r=t,i=aA;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&AA.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(kA,NA);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!kA.test(e)){let n=e.replace(OA,MA);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=gA}return new i(r,t)}function MA(e){return`-`+e.toLowerCase()}function NA(e){return e.charAt(1).toUpperCase()}var PA=rA([yA,SA,wA,TA,EA],`html`),FA=rA([yA,CA,wA,TA,EA],`svg`);function IA(e){return e.join(` `).trim()}var LA=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
|
|
194
|
-
`);u=~n?e.length-n:u+e.length}function p(){var e={line:l,column:u};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:l,column:u},this.source=t.source}m.prototype.content=e;function h(n){var r=Error(t.source+`:`+l+`:`+u+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=u,r.source=e,!t.silent)throw r}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function _(){g(i)}function v(e){var t;for(e||=[];t=y();)t!==!1&&e.push(t);return e}function y(){var t=p();if(e.charAt(0)==`/`&&e.charAt(1)==`*`){for(var n=2;e.charAt(n)!=``&&(e.charAt(n)!=`*`||e.charAt(n+1)!=`/`);)++n;if(n+=2,e.charAt(n-1)===``)return h(`End of comment missing`);var r=e.slice(2,n-2);return u+=2,f(r),e=e.slice(n),u+=2,t({type:`comment`,comment:r})}}function b(){var e=p(),t=g(a);if(t){if(y(),!g(o))return h(`property missing ':'`);var r=g(s),i=e({type:`declaration`,property:d(t[0].replace(n,``)),value:r?d(r[0].replace(n,``)):``});return g(c),i}}function x(){var e=[];v(e);for(var t;t=b();)t!==!1&&(e.push(t),v(e));return e}return _(),x()}function d(e){return e?e.replace(l,``):``}t.exports=u})),
|
|
195
|
-
`}]}function
|
|
196
|
-
`:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function
|
|
192
|
+
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function hO(e){let t={constructs:cT([nO,...(e||{}).extensions||[]]),content:n(HD),defined:[],document:n(WD),flow:n(JD),lazy:{},string:n(ZD),text:n(QD)};return t;function n(e){return n;function n(n){return fO(t,e,n)}}}function gO(e){for(;!pE(e););return e}var _O=/[\0\t\n\r]/g;function vO(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i));let s=[],c=0;for(t=``,n&&=(i.charCodeAt(0)===65279&&c++,void 0);c<i.length;){_O.lastIndex=c;let n=_O.exec(i),a=n&&n.index!==void 0?n.index:i.length,o=i.charCodeAt(a);if(!n){t=i.slice(c);break}if(o===10&&c===a&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),c<a&&(s.push(i.slice(c,a)),e+=a-c),o){case 0:s.push(65533),e++;break;case 9:{let t=Math.ceil(e/4)*4;for(s.push(-2);e++<t;)s.push(-1);break}case 10:s.push(-4),e=1;break;default:r=!0,e=1}c=a+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}function yO(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?xO(e.position):`start`in e||`end`in e?xO(e):`line`in e||`column`in e?bO(e):``}function bO(e){return SO(e&&e.line)+`:`+SO(e&&e.column)}function xO(e){return bO(e&&e.start)+`-`+bO(e&&e.end)}function SO(e){return e&&typeof e==`number`?e:1}var CO={}.hasOwnProperty;function wO(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),TO(n)(gO(hO(n).document().write(vO()(e,t,!0))))}function TO(e){let t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:o(ge),autolinkProtocol:E,autolinkEmail:E,atxHeading:o(pe),blockQuote:o(ue),characterEscape:E,characterReference:E,codeFenced:o(de),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(de,s),codeText:o(L,s),codeTextData:E,data:E,codeFlowValue:E,definition:o(R),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(fe),hardBreakEscape:o(me),hardBreakTrailing:o(me),htmlFlow:o(he,s),htmlFlowData:E,htmlText:o(he,s),htmlTextData:E,image:o(z),label:s,link:o(ge),listItem:o(ve),listItemValue:p,listOrdered:o(_e,f),listUnordered:o(_e),paragraph:o(ye),reference:re,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(pe),strong:o(be),thematicBreak:o(Se)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:le,autolinkProtocol:ce,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:ae,characterReferenceMarkerNumeric:ae,characterReferenceValue:oe,characterReference:se,codeFenced:l(_),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:h,codeFlowValue:D,codeIndented:l(v),codeText:l(M),codeTextData:D,data:D,definition:l(),definitionDestinationString:x,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(k),hardBreakTrailing:l(k),htmlFlow:l(A),htmlFlowData:D,htmlText:l(j),htmlTextData:D,image:l(P),label:ee,labelText:F,lineEnding:O,link:l(N),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:ie,resourceDestinationString:te,resourceTitleString:I,resource:ne,setextHeading:l(T),setextHeadingLineSequence:w,setextHeadingText:C,strong:l(),thematicBreak:l()}};DO(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[],position:void 0},o={stack:[r],tokenStack:[],config:t,enter:c,exit:u,buffer:s,resume:d,data:n},l=[],f=[],p=-1;for(;++p<e.length;)f.push(e[p]),(e[p][1].type===`listOrdered`||e[p][1].type===`listUnordered`)&&(e[p][0]===`enter`?l.push(f.length-1):a(f,l.pop()));for(e=f,p=-1;++p<e.length;){let n=t[e[p][0]];e[p][0]===`enter`&&t.beforeEnter.length>0&&i(t.beforeEnter,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),CO.call(n,e[p][1].type)&&n[e[p][1].type].call({...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),e[p][0]===`exit`&&t.afterExit.length>0&&i(t.afterExit,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||kO).call(o,void 0,e[0])}for(r.position={start:EO(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:EO(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p<t.transforms.length;)r=t.transforms[p](r)||r;return r}function i(e,t,n){let r=-1;for(;++r<e.length;)e[r].call(t,n)}function a(e,t){let n=e.length-1,r=t-1,i=-1,a=!1,o,s,c,l,u=[];for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let n=r;for(s=void 0;n--;){let t=e[n];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=n}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),u.push({at:s||r,event:[`exit`,o,t[2]]})}if(t[1].type===`listItemPrefix`){let e={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=e,u.push({at:r,event:[`enter`,e,t[2]]}),c=void 0,l=!0}}}let d=e.splice(t),f=0;for(r=-1;++r<d.length;){for(;f<u.length&&u[f].at===t+r;)e.push(u[f++].event);e.push(d[r])}e[t][1]._spread=a}function o(e,t){return n;function n(n){c.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:`fragment`,children:[]})}function c(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:EO(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw Error("Cannot close `"+e.type+"` ("+yO({start:e.start,end:e.end})+`): it’s not open`);r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||kO).call(this,e,r[0])),n.position.end=EO(e.end)}function d(){return Xb(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function h(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function v(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function y(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=fC(this.sliceSerialize(e)).toLowerCase()}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function x(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function S(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function C(){this.data.setextHeadingSlurpLineEnding=!0}function w(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function T(){this.data.setextHeadingSlurpLineEnding=void 0}function E(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=xe(),n.position={start:EO(e.start),end:void 0},t.push(n)),this.stack.push(n)}function D(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=EO(e.end)}function O(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=EO(e.end),this.data.atHardBreak=void 0}else!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(E.call(this,e),D.call(this,e))}function k(){this.data.atHardBreak=!0}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function M(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function N(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function F(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=Bw(t),n.identifier=fC(t).toLowerCase()}function ee(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function te(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function I(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function ne(){this.data.inReference=void 0}function re(){this.data.referenceType=`collapsed`}function ie(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=fC(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function ae(e){this.data.characterReferenceType=e.type}function oe(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=Rw(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=bx(t);let i=this.stack[this.stack.length-1];i.value+=r}function se(e){let t=this.stack.pop();t.position.end=EO(e.end)}function ce(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function le(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function ue(){return{type:`blockquote`,children:[],position:void 0}}function de(){return{type:`code`,lang:null,meta:null,value:``,position:void 0}}function L(){return{type:`inlineCode`,value:``,position:void 0}}function R(){return{type:`definition`,identifier:``,label:null,title:null,url:``,position:void 0}}function fe(){return{type:`emphasis`,children:[],position:void 0}}function pe(){return{type:`heading`,depth:0,children:[],position:void 0}}function me(){return{type:`break`,position:void 0}}function he(){return{type:`html`,value:``,position:void 0}}function z(){return{type:`image`,title:null,url:``,alt:null,position:void 0}}function ge(){return{type:`link`,title:null,url:``,children:[],position:void 0}}function _e(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[],position:void 0}}function ve(e){return{type:`listItem`,spread:e._spread,checked:null,children:[],position:void 0}}function ye(){return{type:`paragraph`,children:[],position:void 0}}function be(){return{type:`strong`,children:[],position:void 0}}function xe(){return{type:`text`,value:``,position:void 0}}function Se(){return{type:`thematicBreak`,position:void 0}}}function EO(e){return{line:e.line,column:e.column,offset:e.offset}}function DO(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?DO(e,r):OO(e,r)}}function OO(e,t){let n;for(n in t)if(CO.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`afterExit`:case`beforeEnter`:{let r=t[n];r&&e[n].push(r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function kO(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+yO({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+yO({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+yO({start:t.start,end:t.end})+`) is still open`)}function AO(e){let t=this;t.parser=n;function n(n){return wO(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function jO(e){if(e)throw e}var MO=o(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function NO(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function PO(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a)r(a);else{for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?FO(s,i)(...o):r(null,...o)}}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function FO(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var IO=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=yO(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};IO.prototype.file=``,IO.prototype.name=``,IO.prototype.reason=``,IO.prototype.message=``,IO.prototype.stack=``,IO.prototype.column=void 0,IO.prototype.line=void 0,IO.prototype.ancestors=void 0,IO.prototype.cause=void 0,IO.prototype.fatal=void 0,IO.prototype.place=void 0,IO.prototype.ruleId=void 0,IO.prototype.source=void 0;var LO={basename:RO,dirname:zO,extname:BO,join:VO,sep:`/`};function RO(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);WO(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function zO(e){if(WO(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function BO(e){WO(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}}else n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function VO(...e){let t=-1,n;for(;++t<e.length;)WO(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:HO(n)}function HO(e){WO(e);let t=e.codePointAt(0)===47,n=UO(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function UO(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(i!==o-1&&a!==1){if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1}i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function WO(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var GO={cwd:KO};function KO(){return`/`}function qO(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function JO(e){if(typeof e==`string`)e=new URL(e);else if(!qO(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return YO(e)}function YO(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var XO=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],ZO=class{constructor(e){let t;t=e?qO(e)?{path:e}:typeof e==`string`||tk(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:GO.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<XO.length;){let e=XO[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)XO.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?LO.basename(this.path):void 0}set basename(e){$O(e,`basename`),QO(e,`basename`),this.path=LO.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?LO.dirname(this.path):void 0}set dirname(e){ek(this.basename,`dirname`),this.path=LO.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?LO.extname(this.path):void 0}set extname(e){if(QO(e,`extname`),ek(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=LO.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){qO(e)&&(e=JO(e)),$O(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?LO.basename(this.path,this.extname):void 0}set stem(e){$O(e,`stem`),QO(e,`stem`),this.path=LO.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new IO(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function QO(e,t){if(e&&e.includes(LO.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+LO.sep+"`")}function $O(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function ek(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function tk(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var nk=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),rk=l(MO(),1),ik={}.hasOwnProperty,ak=new class e extends nk{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=PO()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,rk.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(ck(`data`,this.frozen),this.namespace[e]=t,this):ik.call(this.namespace,e)&&this.namespace[e]||void 0:e?(ck(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=dk(e),n=this.parser||this.Parser;return ok(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),ok(`process`,this.parser||this.Parser),sk(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=dk(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);pk(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),ok(`processSync`,this.parser||this.Parser),sk(`processSync`,this.compiler||this.Compiler),this.process(e,r),uk(`processSync`,`process`,t),n;function r(e,r){t=!0,jO(e),n=r}}run(e,t,n){lk(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=dk(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),uk(`runSync`,`run`,n),r;function i(e,t){jO(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=dk(t),r=this.compiler||this.Compiler;return sk(`stringify`,r),lk(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(ck(`use`,this.frozen),e!=null){if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`")}return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`){if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e)}else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,rk.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null){if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];NO(o)&&NO(r)&&(r=(0,rk.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function ok(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function sk(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function ck(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function lk(e){if(!NO(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function uk(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function dk(e){return fk(e)?e:new ZO(e)}function fk(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function pk(e){return typeof e==`string`||mk(e)}function mk(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var hk=[`note`,`warning`,`tip`,`say`,`do`,`timing`];function gk(e){return hk.includes(e)}function _k(){return e=>{rw(e,(e,t,n)=>{if(e.type!==`containerDirective`&&e.type!==`leafDirective`&&e.type!==`textDirective`)return;let r=e;if(r.type===`containerDirective`)r.data={...r.data,hName:`div`,hProperties:gk(r.name)?{dataAdmonition:r.name}:{dataAdmonitionUnknown:r.name}};else if(n&&typeof t==`number`){let e={type:`text`,value:`:${r.name}`},i=r.type===`leafDirective`?{type:`paragraph`,children:[e]}:e;return n.children.splice(t,1,i),[Wx,t]}})}}function vk(){return e=>{rw(e,`html`,(e,t,n)=>{if(n&&typeof t==`number`){let r={type:`text`,value:e.value},i=n.type===`root`?{type:`paragraph`,children:[r]}:r;return n.children.splice(t,1,i),[Wx,t]}})}}var yk=/[.[\]"\s]/u;function bk(e){return e!==``&&!yk.test(e)}function xk(e){let t=[],n=0;for(;n<e.length;){if(e[n]===`[`){let r=Sk(e,n+1);if(r===void 0||e[r+1]!==`]`)return;let i;try{i=JSON.parse(e.slice(n+1,r+1))}catch{return}if(typeof i!=`string`)return;t.push(i),n=r+2;continue}if(t.length>0){if(e[n]!==`.`)return;n+=1}let r=n;for(;r<e.length&&e[r]!==`.`&&e[r]!==`[`;)r+=1;let i=e.slice(n,r);if(!bk(i))return;t.push(i),n=r}let[r,...i]=t;return r===void 0?void 0:{identifier:r,keys:i}}function Sk(e,t){if(e[t]===`"`){for(let n=t+1;n<e.length;n+=1)if(e[n]===`\\`)n+=1;else if(e[n]===`"`)return n}}function Ck(e,t){let n=xk(t);if(!n||n.keys.length===0)return{found:!1};let{identifier:r,keys:i}=n;if(!Object.prototype.hasOwnProperty.call(e,r))return{found:!1};let a=e[r];for(let e of i){if(typeof a!=`object`||!a||Array.isArray(a)||!Object.prototype.hasOwnProperty.call(a,e))return{found:!1};a=a[e]}return{found:!0,value:a}}function wk(e,t){if(typeof e==`number`)try{return new Intl.NumberFormat(t).format(e)}catch{return new Intl.NumberFormat(`en`).format(e)}return typeof e==`string`?e:null}function Tk(e,t){let n=t.setting;if(!n)return{error:`:::when names no setting`};let r=Ck(e,n);if(!r.found)return{error:`:::when names "${n}", which this guide is not given`};let{value:i}=r,a=t.not!==void 0&&t.not!==null,o;if(t.is===void 0||t.is===null){if(typeof i!=`boolean`)return{error:`:::when on "${n}" needs is="…", since it is not true or false`};o=i}else if(typeof i==`number`)o=t.is.trim()!==``&&Number(t.is)===i;else if(typeof i==`string`||typeof i==`boolean`)o=String(i)===t.is;else return{error:`:::when on "${n}" compares a value that is not a single value`};return{show:a?!o:o}}function Ek(e){return{type:`emphasis`,data:{hName:`span`,hProperties:{dataGuideError:e}},children:[{type:`text`,value:e}]}}function Dk(e){return{type:`paragraph`,data:{hName:`div`,hProperties:{dataGuideError:e}},children:[{type:`text`,value:e}]}}function Ok(e){return t=>{rw(t,(t,n,r)=>{if(!r||typeof n!=`number`)return;let i=t;if(i.type===`containerDirective`&&i.name===`when`){let t=Tk(e.settings,i.attributes??{}),a=`error`in t?[Dk(t.error)]:t.show?i.children:[];return r.children.splice(n,1,...a),[Wx,n]}if(i.type===`textDirective`&&i.name===`setting`){let t=kk(i),a=Ck(e.settings,t),o=a.found?wk(a.value,e.locale):null,s=o===null?Ek(a.found?`:setting[${t}] is not a number or text`:`:setting[${t}] is not given to this guide`):{type:`text`,value:o};return r.children.splice(n,1,s),[Wx,n+1]}})}}function kk(e){return e.children.map(e=>`value`in e&&typeof e.value==`string`?e.value:``).join(``).trim()}var Ak=/\s*\{-\}\s*$/;function jk(e){return e.replace(/\.md$/,``)}function Mk(e,t){let n=new qb,r=jk(t),i=[];return rw(e,`heading`,e=>{let t=Xb(e),a=Ak.test(t),o=t.replace(Ak,``);i.push({node:e,id:`${r}--${n.slug(o)}`,text:o,omitted:a})}),i}function Nk(e){let t=e.children[e.children.length-1];t?.type===`text`&&Ak.test(t.value)&&(t.value=t.value.replace(Ak,``))}function Pk(e){return t=>{for(let n of Mk(t,e.chapterFile))Nk(n.node),n.node.data={...n.node.data,hProperties:{...n.node.data?.hProperties,id:n.id}}}}function Fk(e,t,n){let r=n?.minDepth??2,i=n?.maxDepth??3,a=ak().use(AO).use(VD).use(WS).parse(t);return Ok({settings:n?.settings??{},locale:n?.locale??`en`})(a),_k()(a),Mk(a,e).filter(e=>!e.omitted).filter(e=>e.node.depth===1||e.node.depth>=r&&e.node.depth<=i).map(e=>({id:e.id,text:e.text,depth:e.node.depth}))}var Ik={youtube:{idPattern:/^[A-Za-z0-9_-]{11}$/,embedUrl:e=>`https://www.youtube-nocookie.com/embed/${e}`,embedHosts:[`www.youtube-nocookie.com`]}},Lk=`file`,Rk={src:[`mp4`,`webm`],poster:[`png`,`jpg`,`jpeg`,`gif`,`webp`,`avif`],captions:[`vtt`]},zk={youtube:new Set([`provider`,`id`]),[Lk]:new Set([`provider`,`src`,`title`,`poster`,`captions`])},Bk=[...Object.keys(Ik),Lk],Vk=`https://guide.invalid/content/locale/chapter.md`;function Hk(e){if(/^[a-z][a-z0-9+.-]*:/i.test(e)||e.startsWith(`/`)||e.includes(`\\`)||/[?#]/.test(e))return;let t;try{t=new URL(e,Vk)}catch{return}if(t.origin===`https://guide.invalid`&&t.pathname.startsWith(`/assets/`))try{let e=decodeURIComponent(t.pathname.slice(8));return e.split(`/`).some(e=>e===``||e===`.`||e===`..`||e.includes(`\\`))?void 0:e}catch{return}}function Uk(e){let t=e.lastIndexOf(`.`);return t===-1?``:e.slice(t+1).toLowerCase()}function Wk(e){let t={};for(let n of e.split(`
|
|
193
|
+
`)){let e=n.trim();if(e.length===0)continue;let r=e.match(/^([A-Za-z][A-Za-z0-9_-]*):\s*(.*)$/);if(!r)return{ok:!1,error:`Malformed line in video block: "${e}"`};let i=r[1],a=r[2].trim();if(i in t)return{ok:!1,error:`Duplicate key "${i}" in video block`};t[i]=a}let n=t.provider;if(!n)return{ok:!1,error:`Video block is missing "provider"`};let r=zk[n];if(!r)return{ok:!1,error:`Unknown video provider "${n}". Supported providers: ${Bk.join(`, `)}`};for(let e of Object.keys(t))if(!r.has(e))return{ok:!1,error:`Unknown key "${e}" in video block`};if(n===`file`)return Gk(t);let i=Ik[n],a=t.id;return a?i.idPattern.test(a)?{ok:!0,kind:`embed`,provider:n,id:a,embedUrl:i.embedUrl(a)}:{ok:!1,error:`Video id "${a}" is not a valid ${n} id`}:{ok:!1,error:`Video block is missing "id"`}}function Gk(e){if(!e.src)return{ok:!1,error:`Video block is missing "src"`};let t={};for(let n of Object.keys(Rk)){let r=e[n];if(r===void 0)continue;let i=Hk(r);if(!i)return{ok:!1,error:`Video ${n} "${r}" must be a file in the guide's assets/ directory`};let a=Rk[n];if(!a.includes(Uk(i)))return{ok:!1,error:`Video ${n} "${r}" must be a ${a.map(e=>`.${e}`).join(`, `)} file`};t[n]=i}return{ok:!0,kind:`file`,provider:Lk,src:t.src,...t.poster?{poster:t.poster}:{},...t.captions?{captions:t.captions}:{},...e.title?{title:e.title}:{}}}var Kk=Cl((0,V.jsx)(`path`,{d:`M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8`}),`InfoOutlined`),qk=Cl((0,V.jsx)(`path`,{d:`M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7m2.85 11.1-.85.6V16h-4v-2.3l-.85-.6C7.8 12.16 7 10.63 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.63-.8 3.16-2.15 4.1`}),`LightbulbOutlined`),Jk=Cl([(0,V.jsx)(`circle`,{cx:`9`,cy:`9`,r:`4`},`0`),(0,V.jsx)(`path`,{d:`M9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4m7.76-9.64-1.68 1.69c.84 1.18.84 2.71 0 3.89l1.68 1.69c2.02-2.02 2.02-5.07 0-7.27M20.07 2l-1.63 1.63c2.77 3.02 2.77 7.56 0 10.74L20.07 16c3.9-3.89 3.91-9.95 0-14`},`1`)],`RecordVoiceOver`),Yk=Cl((0,V.jsx)(`path`,{d:`M22 5.18 10.59 16.6l-4.24-4.24 1.41-1.41 2.83 2.83 10-10zm-2.21 5.04c.13.57.21 1.17.21 1.78 0 4.42-3.58 8-8 8s-8-3.58-8-8 3.58-8 8-8c1.58 0 3.04.46 4.28 1.25l1.44-1.44C16.1 2.67 14.13 2 12 2 6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-1.19-.22-2.33-.6-3.39z`}),`TaskAlt`),Xk=Cl((0,V.jsx)(`path`,{d:`M15 1H9v2h6zm-4 13h2V8h-2zm8.03-6.61 1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61M12 20c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7`}),`TimerOutlined`),Zk=Cl([(0,V.jsx)(`path`,{d:`M12 5.99 19.53 19H4.47zM12 2 1 21h22z`},`0`),(0,V.jsx)(`path`,{d:`M13 16h-2v2h2zm0-6h-2v5h2z`},`1`)],`WarningAmber`);function Qk(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var $k=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,eA=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tA={};function nA(e,t){return((t||tA).jsx?eA:$k).test(e)}var rA=/[ \t\n\f\r]/g;function iA(e){return typeof e==`object`?e.type===`text`&&aA(e.value):aA(e)}function aA(e){return e.replace(rA,``)===``}var oA=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};oA.prototype.normal={},oA.prototype.property={},oA.prototype.space=void 0;function sA(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new oA(n,r,t)}function cA(e){return e.toLowerCase()}var lA=class{constructor(e,t){this.attribute=t,this.property=e}};lA.prototype.attribute=``,lA.prototype.booleanish=!1,lA.prototype.boolean=!1,lA.prototype.commaOrSpaceSeparated=!1,lA.prototype.commaSeparated=!1,lA.prototype.defined=!1,lA.prototype.mustUseProperty=!1,lA.prototype.number=!1,lA.prototype.overloadedBoolean=!1,lA.prototype.property=``,lA.prototype.spaceSeparated=!1,lA.prototype.space=void 0;var uA=s({boolean:()=>fA,booleanish:()=>pA,commaOrSpaceSeparated:()=>_A,commaSeparated:()=>gA,number:()=>$,overloadedBoolean:()=>mA,spaceSeparated:()=>hA}),dA=0,fA=vA(),pA=vA(),mA=vA(),$=vA(),hA=vA(),gA=vA(),_A=vA();function vA(){return 2**++dA}var yA=Object.keys(uA),bA=class extends lA{constructor(e,t,n,r){let i=-1;if(super(e,t),xA(this,`space`,r),typeof n==`number`)for(;++i<yA.length;){let e=yA[i];xA(this,yA[i],(n&uA[e])===uA[e])}}};bA.prototype.defined=!0;function xA(e,t,n){n&&(e[t]=n)}function SA(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new bA(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[cA(r)]=r,n[cA(a.attribute)]=r}return new oA(t,n,e.space)}var CA=SA({properties:{ariaActiveDescendant:null,ariaAtomic:pA,ariaAutoComplete:null,ariaBusy:pA,ariaChecked:pA,ariaColCount:$,ariaColIndex:$,ariaColSpan:$,ariaControls:hA,ariaCurrent:null,ariaDescribedBy:hA,ariaDetails:null,ariaDisabled:pA,ariaDropEffect:hA,ariaErrorMessage:null,ariaExpanded:pA,ariaFlowTo:hA,ariaGrabbed:pA,ariaHasPopup:null,ariaHidden:pA,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:hA,ariaLevel:$,ariaLive:null,ariaModal:pA,ariaMultiLine:pA,ariaMultiSelectable:pA,ariaOrientation:null,ariaOwns:hA,ariaPlaceholder:null,ariaPosInSet:$,ariaPressed:pA,ariaReadOnly:pA,ariaRelevant:null,ariaRequired:pA,ariaRoleDescription:hA,ariaRowCount:$,ariaRowIndex:$,ariaRowSpan:$,ariaSelected:pA,ariaSetSize:$,ariaSort:null,ariaValueMax:$,ariaValueMin:$,ariaValueNow:$,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function wA(e,t){return t in e?e[t]:t}function TA(e,t){return wA(e,t.toLowerCase())}var EA=SA({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:gA,acceptCharset:hA,accessKey:hA,action:null,allow:null,allowFullScreen:fA,allowPaymentRequest:fA,allowUserMedia:fA,alpha:fA,alt:null,as:null,async:fA,autoCapitalize:null,autoComplete:hA,autoFocus:fA,autoPlay:fA,blocking:hA,capture:null,charSet:null,checked:fA,cite:null,className:hA,closedBy:null,colorSpace:null,cols:$,colSpan:$,command:null,commandFor:null,content:null,contentEditable:pA,controls:fA,controlsList:hA,coords:$|gA,crossOrigin:null,data:null,dateTime:null,decoding:null,default:fA,defer:fA,dir:null,dirName:null,disabled:fA,download:mA,draggable:pA,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:fA,formTarget:null,headers:hA,height:$,hidden:mA,high:$,href:null,hrefLang:null,htmlFor:hA,httpEquiv:hA,id:null,imageSizes:null,imageSrcSet:null,inert:fA,inputMode:null,integrity:null,is:null,isMap:fA,itemId:null,itemProp:hA,itemRef:hA,itemScope:fA,itemType:hA,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:fA,low:$,manifest:null,max:null,maxLength:$,media:null,method:null,min:null,minLength:$,multiple:fA,muted:fA,name:null,nonce:null,noModule:fA,noValidate:fA,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:fA,optimum:$,pattern:null,ping:hA,placeholder:null,playsInline:fA,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:fA,referrerPolicy:null,rel:hA,required:fA,reversed:fA,rows:$,rowSpan:$,sandbox:hA,scope:null,scoped:fA,seamless:fA,selected:fA,shadowRootClonable:fA,shadowRootCustomElementRegistry:fA,shadowRootDelegatesFocus:fA,shadowRootMode:null,shadowRootSerializable:fA,shape:null,size:$,sizes:null,slot:null,span:$,spellCheck:pA,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$,step:null,style:null,tabIndex:$,target:null,title:null,translate:null,type:null,typeMustMatch:fA,useMap:null,value:pA,width:$,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:hA,axis:null,background:null,bgColor:null,border:$,borderColor:null,bottomMargin:$,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:fA,declare:fA,event:null,face:null,frame:null,frameBorder:null,hSpace:$,leftMargin:$,link:null,longDesc:null,lowSrc:null,marginHeight:$,marginWidth:$,noResize:fA,noHref:fA,noShade:fA,noWrap:fA,object:null,profile:null,prompt:null,rev:null,rightMargin:$,rules:null,scheme:null,scrolling:pA,standby:null,summary:null,text:null,topMargin:$,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:fA,disablePictureInPicture:fA,disableRemotePlayback:fA,exportParts:gA,part:hA,prefix:null,property:null,results:$,security:null,unselectable:null},space:`html`,transform:TA}),DA=SA({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`,maskType:`mask-type`,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:_A,accentHeight:$,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$,amplitude:$,arabicForm:null,ascent:$,attributeName:null,attributeType:null,azimuth:$,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$,by:null,calcMode:null,capHeight:$,className:hA,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:$,diffuseConstant:$,direction:null,display:null,dur:null,divisor:$,dominantBaseline:null,download:fA,dx:null,dy:null,edgeMode:null,editable:null,elevation:$,enableBackground:null,end:null,event:null,exponent:$,externalResourcesRequired:null,fill:null,fillOpacity:$,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:gA,g2:gA,glyphName:gA,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$,horizOriginX:$,horizOriginY:$,id:null,ideographic:$,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$,k:$,k1:$,k2:$,k3:$,k4:$,kernelMatrix:_A,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:$,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:$,overlineThickness:$,paintOrder:null,panose1:null,path:null,pathLength:$,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:hA,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$,pointsAtY:$,pointsAtZ:$,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:_A,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:_A,rev:_A,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:_A,requiredFeatures:_A,requiredFonts:_A,requiredFormats:_A,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:$,specularExponent:$,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$,strikethroughThickness:$,string:null,stroke:null,strokeDashArray:_A,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$,strokeOpacity:$,strokeWidth:null,style:null,surfaceScale:$,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:_A,tabIndex:$,tableValues:null,target:null,targetX:$,targetY:$,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:_A,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$,underlineThickness:$,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$,values:null,vAlphabetic:$,vMathematical:$,vectorEffect:null,vHanging:$,vIdeographic:$,version:null,vertAdvY:$,vertOriginX:$,vertOriginY:$,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:wA}),OA=SA({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()}}),kA=SA({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:TA}),AA=SA({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),jA={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`},MA=/[A-Z]/g,NA=/-[a-z]/g,PA=/^data[-\w.:]+$/i;function FA(e,t){let n=cA(t),r=t,i=lA;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&PA.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(NA,LA);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!NA.test(e)){let n=e.replace(MA,IA);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=bA}return new i(r,t)}function IA(e){return`-`+e.toLowerCase()}function LA(e){return e.charAt(1).toUpperCase()}var RA=sA([CA,EA,OA,kA,AA],`html`),zA=sA([CA,DA,OA,kA,AA],`svg`);function BA(e){return e.join(` `).trim()}var VA=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
|
|
194
|
+
`);u=~n?e.length-n:u+e.length}function p(){var e={line:l,column:u};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:l,column:u},this.source=t.source}m.prototype.content=e;function h(n){var r=Error(t.source+`:`+l+`:`+u+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=u,r.source=e,!t.silent)throw r}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function _(){g(i)}function v(e){var t;for(e||=[];t=y();)t!==!1&&e.push(t);return e}function y(){var t=p();if(e.charAt(0)==`/`&&e.charAt(1)==`*`){for(var n=2;e.charAt(n)!=``&&(e.charAt(n)!=`*`||e.charAt(n+1)!=`/`);)++n;if(n+=2,e.charAt(n-1)===``)return h(`End of comment missing`);var r=e.slice(2,n-2);return u+=2,f(r),e=e.slice(n),u+=2,t({type:`comment`,comment:r})}}function b(){var e=p(),t=g(a);if(t){if(y(),!g(o))return h(`property missing ':'`);var r=g(s),i=e({type:`declaration`,property:d(t[0].replace(n,``)),value:r?d(r[0].replace(n,``)):``});return g(c),i}}function x(){var e=[];v(e);for(var t;t=b();)t!==!1&&(e.push(t),v(e));return e}return _(),x()}function d(e){return e?e.replace(l,``):``}t.exports=u})),HA=o(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var i=r(VA());function a(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=(0,i.default)(e),a=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:i}=e;a?t(r,i,e):i&&(n||={},n[r]=i)}),n}})),UA=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),WA=o(((e,t,n)=>{var r=(n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(HA()),i=UA();function a(e,t){var n={};return!e||typeof e!=`string`||(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,t.exports=a})),GA=qA(`end`),KA=qA(`start`);function qA(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function JA(e){let t=KA(e),n=GA(e);if(t&&n)return{start:t,end:n}}var YA=l(WA(),1),XA={}.hasOwnProperty,ZA=new Map,QA=/[A-Z]/g,$A=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),ej=new Set([`td`,`th`]),tj=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function nj(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=pj(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=fj(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,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`?zA:RA,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=rj(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function rj(e,t,n){if(t.type===`element`)return ij(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return aj(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return sj(e,t,n);if(t.type===`mdxjsEsm`)return oj(e,t);if(t.type===`root`)return cj(e,t,n);if(t.type===`text`)return lj(e,t)}function ij(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=zA,e.schema=i),e.ancestors.push(t);let a=yj(e,t.tagName,!1),o=mj(e,t),s=gj(e,t);return $A.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!iA(e)})),uj(e,o,a,t),dj(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function aj(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}bj(e,t.position)}function oj(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);bj(e,t.position)}function sj(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=zA,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:yj(e,t.name,!0),o=hj(e,t),s=gj(e,t);return uj(e,o,a,t),dj(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function cj(e,t,n){let r={};return dj(r,gj(e,t)),e.create(t,e.Fragment,r,n)}function lj(e,t){return t.value}function uj(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function dj(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function fj(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function pj(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=KA(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function mj(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&XA.call(t.properties,i)){let a=_j(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&ej.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function hj(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else bj(e,t.position)}else{let i=r.name,a;if(r.value&&typeof r.value==`object`){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else bj(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function gj(e,t){let n=[],r=-1,i=e.passKeys?new Map:ZA;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=rj(e,a,o);s!==void 0&&n.push(s)}return n}function _j(e,t,n){let r=FA(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Qk(n):BA(n)),r.property===`style`){let t=typeof n==`object`?n:vj(e,String(n));return e.stylePropertyNameCase===`css`&&(t=xj(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?jA[r.property]||r.property:r.attribute,n]}}function vj(e,t){try{return(0,YA.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new IO("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=tj+`#cannot-parse-style-attribute`,r}}function yj(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=nA(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=nA(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return XA.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);bj(e)}function bj(e,t){let n=new IO("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=tj+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function xj(e){let t={},n;for(n in e)XA.call(e,n)&&(t[Sj(n)]=e[n]);return t}function Sj(e){let t=e.replace(QA,Cj);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function Cj(e){return`-`+e.toLowerCase()}var wj={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`]};function Tj(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Ej(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
195
|
+
`}]}function Dj(e,t){let n=t.value?t.value+`
|
|
196
|
+
`:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function Oj(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function kj(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Aj(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=FT(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function jj(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Mj(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Nj(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function Pj(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Nj(e,t);let i={src:FT(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Fj(e,t){let n={src:FT(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Ij(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Lj(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Nj(e,t);let i={href:FT(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Rj(e,t){let n={href:FT(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function zj(e,t,n){let r=e.all(t),i=n?Bj(n):Vj(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
197
197
|
`}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
198
|
-
`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function
|
|
198
|
+
`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function Bj(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=Vj(n[r])}return t}function Vj(e){return e.spread??e.children.length>1}function Hj(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function Uj(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Wj(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Gj(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Kj(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=KA(t.children[1]),o=GA(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function qj(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function Jj(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var Yj=9,Xj=32;function Zj(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(Qj(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Qj(t.slice(i),i>0,!1)),a.join(``)}function Qj(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===Yj||t===Xj;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===Yj||t===Xj;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function $j(e,t){let n={type:`text`,value:Zj(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function eM(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var tM={blockquote:Tj,break:Ej,code:Dj,delete:Oj,emphasis:kj,footnoteReference:Aj,heading:jj,html:Mj,imageReference:Pj,image:Fj,inlineCode:Ij,linkReference:Lj,link:Rj,listItem:zj,list:Hj,paragraph:Uj,root:Wj,strong:Gj,table:Kj,tableCell:Jj,tableRow:qj,text:$j,thematicBreak:eM,toml:nM,yaml:nM,definition:nM,footnoteDefinition:nM};function nM(){}var{defineProperty:rM}=Object,iM=typeof self==`object`?self:globalThis,aM=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new iM[e](t)},oM=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o){let i=r(t),a=r(n);i===`__proto__`?rM(e,i,{value:a,configurable:!0,enumerable:!0,writable:!0}):e[i]=a}return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(typeof iM[e]==`function`?aM(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}case`-0`:return-0}return n(aM(a,o),i)};return r},sM=e=>oM(new Map,e)(0),cM=``,{toString:lM}={},{keys:uM,is:dM}=Object,fM=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=lM.call(e).slice(8,-1);switch(n){case`Array`:return[1,cM];case`Object`:return[2,cM];case`Date`:return[3,cM];case`RegExp`:return[4,cM];case`Map`:return[5,cM];case`Set`:return[6,cM];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},pM=([e,t])=>e===0&&(t===`function`||t===`symbol`),mM=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=o=>{if(n.has(o))return n.get(o);let[s,c]=fM(o);switch(s){case 0:{let t=o;switch(c){case`bigint`:s=8,t=o.toString();break;case`number`:if(!o&&dM(o,-0))return r.push([`-0`])-1;break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+c);t=null;break;case`undefined`:return i([-1],o)}return i([s,t],o)}case 1:{if(c){let e=o;return c===`DataView`?e=new Uint8Array(o.buffer):c===`ArrayBuffer`&&(e=new Uint8Array(o)),i([c,[...e]],o)}let e=[],t=i([s,e],o);for(let t of o)e.push(a(t));return t}case 2:{if(c)switch(c){case`BigInt`:return i([c,o.toString()],o);case`Boolean`:case`Number`:case`String`:return i([c,o.valueOf()],o)}if(t&&`toJSON`in o)return a(o.toJSON());let n=[],r=i([s,n],o);for(let t of uM(o))(e||!pM(fM(o[t])))&&n.push([a(t),a(o[t])]);return r}case 3:return i([s,isNaN(o.getTime())?cM:o.toISOString()],o);case 4:{let{source:e,flags:t}=o;return i([s,{source:e,flags:t}],o)}case 5:{let t=[],n=i([s,t],o);for(let[n,r]of o)(e||!(pM(fM(n))||pM(fM(r))))&&t.push([a(n),a(r)]);return n}case 6:{let t=[],n=i([s,t],o);for(let n of o)(e||!pM(fM(n)))&&t.push(a(n));return n}}let{message:l}=o;return i([s,{name:c,message:l}],o)};return a},hM=(e,{json:t,lossy:n}={})=>{let r=[];return mM(!(t||n),!!t,new Map,r)(e),r},gM=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?sM(hM(e,t)):structuredClone(e):(e,t)=>sM(hM(e,t));function _M(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function vM(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function yM(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||_M,r=e.options.footnoteBackLabel||vM,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=FT(o.toLowerCase()),u=0,d=[],f=e.footnoteCounts.get(o);for(;f!==void 0&&++u<=f;){d.length>0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...gM(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:`
|
|
199
199
|
`},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:`
|
|
200
|
-
`}]}}var
|
|
200
|
+
`}]}}var bM={}.hasOwnProperty,xM={};function SM(e,t){let n=t||xM,r=new Map,i=new Map,a={all:s,applyData:wM,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...tM,...n.handlers},one:o,options:n,patch:CM,wrap:EM};return rw(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(bM.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=gM(n);return r.children=a.all(e),r}return gM(e)}return(a.options.unknownHandler||TM)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=DM(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=DM(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function CM(e,t){e.position&&(t.position=JA(e))}function wM(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,gM(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function TM(e,t){let n=t.data||{},r=`value`in t&&!(bM.call(n,`hProperties`)||bM.call(n,`hChildren`))?{type:`text`,value:t.value}:{type:`element`,tagName:`div`,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function EM(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
|
|
201
201
|
`});++r<e.length;)r&&n.push({type:`text`,value:`
|
|
202
202
|
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
|
|
203
|
-
`}),n}function
|
|
204
|
-
`},i)),a}function TM(e,t){return e&&`run`in e?async function(n,r){let i=wM(n,{file:r,...t});await e.run(i,r)}:function(n,r){return wM(n,{file:r,...e||t})}}var EM=[],DM={allowDangerousHtml:!0},OM=/^(https?|ircs?|mailto|xmpp)$/i,kM=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function AM(e){let t=jM(e),n=MM(e);return NM(t.runSync(t.parse(n),n),e)}function jM(e){let t=e.rehypePlugins||EM,n=e.remarkPlugins||EM,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...DM}:DM;return ak().use(AO).use(n).use(TM,r).use(t)}function MM(e){let t=e.children||``,n=new ZO;return typeof t==`string`?n.value=t:``+t,n}function NM(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||PM;for(let e of kM)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return rw(e,l),QA(e,{Fragment:V.Fragment,components:i,ignoreInvalidStyle:!0,jsx:V.jsx,jsxs:V.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in bj)if(Object.hasOwn(bj,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=bj[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function PM(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||OM.test(e.slice(0,t))?e:``}var FM={note:{label:`Note`,palette:`info`,icon:(0,V.jsx)(Hk,{fontSize:`small`})},warning:{label:`Warning`,palette:`warning`,icon:(0,V.jsx)(qk,{fontSize:`small`})},tip:{label:`Tip`,palette:`success`,icon:(0,V.jsx)(Uk,{fontSize:`small`})},say:{label:`Say`,palette:`primary`,icon:(0,V.jsx)(Wk,{fontSize:`small`})},do:{label:`Do`,palette:`secondary`,icon:(0,V.jsx)(Gk,{fontSize:`small`})},timing:{label:`Timing`,palette:`info`,icon:(0,V.jsx)(Kk,{fontSize:`small`})}};function IM({type:e,children:t}){let n=FM[e];return(0,V.jsxs)(am,{sx:e=>({my:2,px:2,py:1.5,borderLeft:3,borderColor:`${n.palette}.main`,borderRadius:1,bgcolor:gi(e.palette[n.palette].main,.08),"& p:first-of-type":{mt:0},"& p:last-of-type":{mb:0}}),"data-testid":`guide-admonition-${e}`,children:[(0,V.jsxs)(Z,{variant:`overline`,component:`p`,sx:{display:`flex`,alignItems:`center`,gap:.75,fontWeight:600,lineHeight:1.5,mb:.5,color:`${n.palette}.main`},children:[n.icon,n.label]}),t]})}function LM(e){return`/api/guide/assets/${e.split(`/`).map(encodeURIComponent).join(`/`)}`}function RM({body:e,locale:t}){let n=Bk(e);return n.ok?n.kind===`file`?(0,V.jsxs)(am,{component:`figure`,sx:{my:2,mx:0,maxWidth:720},"data-testid":`guide-video-file`,children:[(0,V.jsxs)(am,{component:`video`,controls:!0,preload:`metadata`,playsInline:!0,src:LM(n.src),poster:n.poster?LM(n.poster):void 0,"aria-label":n.title,sx:{display:`block`,width:`100%`,"@media print":{display:`none`}},children:[n.captions&&(0,V.jsx)(`track`,{kind:`captions`,src:LM(n.captions),srcLang:t,label:t,default:!0}),n.title]}),(0,V.jsxs)(am,{sx:{display:`none`,"@media print":{display:`block`}},children:[n.poster&&(0,V.jsx)(am,{component:`img`,src:LM(n.poster),alt:``,sx:{display:`block`,maxWidth:`100%`}}),n.title&&(0,V.jsx)(Z,{component:`figcaption`,variant:`body2`,children:n.title})]})]}):(0,V.jsx)(am,{sx:{my:2,position:`relative`,aspectRatio:`16 / 9`,maxWidth:720},"data-testid":`guide-video-embed`,children:(0,V.jsx)(am,{component:`iframe`,src:n.embedUrl,title:`${n.provider} video`,sandbox:`allow-scripts allow-same-origin allow-presentation`,allow:`encrypted-media; fullscreen; picture-in-picture`,referrerPolicy:`strict-origin-when-cross-origin`,sx:{position:`absolute`,inset:0,width:`100%`,height:`100%`,border:0}})}):(0,V.jsxs)(xd,{severity:`error`,sx:{my:2},"data-testid":`guide-video-error`,children:[`Video block error: `,n.error]})}function zM(e){return e.children.map(e=>e.type===`text`?e.value:e.type===`element`?zM(e):``).join(``)}function BM({markdown:e,chapterFile:t,locale:n,settings:r}){return(0,V.jsx)(AM,{remarkPlugins:[VD,WS,[wk,{settings:r,locale:n}],_k,vk,[Ak,{chapterFile:t}]],urlTransform:e=>{let r=PM(e);if(!r)return;if(/^[a-z][a-z0-9+.-]*:/i.test(r)||r.startsWith(`//`)||r.startsWith(`#`)||r.startsWith(`/`))return r;let i=new URL(`/api/guide/content/${n}/${t}`,window.location.origin),a=new URL(r,i);if(a.origin===window.location.origin&&a.pathname.startsWith(`/api/guide/`))return a.pathname+a.search},components:{pre({node:e,children:t,...r}){let i=e?.children[0];return i&&i.type===`element`&&i.tagName===`code`&&Array.isArray(i.properties?.className)&&i.properties.className.includes(`language-video`)?(0,V.jsx)(RM,{body:zM(i),locale:n}):(0,V.jsx)(`pre`,{...r,children:t})},span(e){let{node:t,children:n,...r}=e;return typeof r[`data-guide-error`]==`string`?(0,V.jsx)(am,{component:`span`,"data-testid":`guide-setting-error`,sx:{color:`error.main`,fontStyle:`italic`},children:n}):(0,V.jsx)(`span`,{...r,children:n})},div(e){let{node:t,children:n,...r}=e,i=r;if(typeof i[`data-guide-error`]==`string`)return(0,V.jsx)(xd,{severity:`error`,sx:{my:2},"data-testid":`guide-setting-error`,children:n});let a=i[`data-admonition`];if(typeof a==`string`&&gk(a))return(0,V.jsx)(IM,{type:a,children:n});let o=i[`data-admonition-unknown`];return typeof o==`string`?(0,V.jsxs)(xd,{severity:`error`,sx:{my:2},"data-testid":`guide-admonition-unknown`,children:[`Unknown admonition type ":::`,o,`"`]}):(0,V.jsx)(`div`,{...e})},a({node:e,children:t,href:n,...r}){let i=typeof n==`string`&&/^https?:\/\//.test(n);return(0,V.jsx)(`a`,{href:n,...r,...i?{target:`_blank`,rel:`noreferrer noopener`}:{},children:t})}},children:e})}function VM(e){let t=e.replace(/\.md$/,``).replace(/^\d+[-_. ]*/,``).replace(/[-_]+/g,` `).trim();return t.charAt(0).toUpperCase()+t.slice(1)}function HM({locale:e,reloads:t}){let n=new URLSearchParams(window.location.search),[r,i]=(0,E.useState)(void 0),[a,o]=(0,E.useState)(n.get(`locale`)??e),[s,c]=(0,E.useState)(n.get(`chapter`)),[l,u]=(0,E.useState)(``);(0,E.useEffect)(()=>{fetch(`/api/guide`).then(e=>e.json()).then(e=>i(e.guide))},[t]);let d=(0,E.useMemo)(()=>Object.keys(r?.locales??{}),[r]),f=(0,E.useMemo)(()=>r?Wb(r.locales,r.chapters,a):[],[r,a]),p=(0,E.useMemo)(()=>f.map(e=>e.file),[f]),m=f.find(e=>e.file===s)?.locale??a;(0,E.useEffect)(()=>{if(r){if(p.length===0)return c(null);s&&p.includes(s)||c(p[0])}},[r,p,s]),(0,E.useEffect)(()=>{if(!r||!s)return u(``);let e=!0;return fetch(`/api/guide/content/${encodeURIComponent(m)}/${encodeURIComponent(s)}`).then(e=>e.ok?e.text():`This chapter could not be read.`).then(t=>{e&&u(t)}),()=>{e=!1}},[r,m,s,t]);let h=(0,E.useMemo)(()=>s&&l&&r?jk(s,l,{settings:r.settings,locale:m}):[],[s,l,r,m]);return r===void 0?(0,V.jsx)(uy,{sx:{alignItems:`center`,justifyContent:`center`,height:`100%`},children:(0,V.jsx)(rd,{size:28})}):r===null?(0,V.jsx)(uy,{sx:{alignItems:`center`,justifyContent:`center`,height:`100%`,p:4},children:(0,V.jsx)(Z,{color:`text.secondary`,children:`This package declares no facilitator guide, or none of its chapters applies to this session.`})}):(0,V.jsxs)(uy,{direction:`row`,sx:{height:`100%`},children:[(0,V.jsxs)(am,{sx:{width:280,borderRight:1,borderColor:`divider`,overflow:`auto`,"@media print":{display:`none`}},children:[d.length>1&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(am,{sx:{p:2},children:(0,V.jsx)(Bv,{size:`small`,fullWidth:!0,value:d.includes(a)?a:d[0]??``,onChange:e=>o(e.target.value),children:d.map(e=>(0,V.jsx)($_,{value:e,children:r.locales[e]?.name??e},e))})}),(0,V.jsx)(Nh,{})]}),(0,V.jsxs)(Rg,{dense:!0,children:[p.map(e=>(0,V.jsx)(Hg,{selected:e===s,onClick:()=>c(e),children:(0,V.jsx)(Jg,{primary:VM(e)})},e)),p.length===0&&(0,V.jsx)(am,{sx:{px:2,py:1},children:(0,V.jsx)(Z,{variant:`body2`,color:`text.secondary`,children:`This guide has no chapters yet.`})})]}),h.some(e=>e.depth>1)&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Nh,{}),(0,V.jsx)(Z,{variant:`overline`,color:`text.secondary`,sx:{display:`block`,px:2,pt:1.5},children:`On this page`}),(0,V.jsx)(Rg,{dense:!0,disablePadding:!0,sx:{pb:2},children:h.filter(e=>e.depth>1).map(e=>(0,V.jsx)(Hg,{dense:!0,sx:{pl:2+(e.depth-2)*1.5,py:.25},onClick:()=>document.getElementById(e.id)?.scrollIntoView({block:`start`}),children:(0,V.jsx)(Jg,{primary:e.text,slotProps:{primary:{variant:`body2`,color:`text.secondary`}}})},e.id))})]})]}),(0,V.jsx)(am,{sx:{flex:1,minWidth:0,overflow:`auto`},children:(0,V.jsxs)(am,{"data-testid":`guide-content`,sx:{maxWidth:780,mx:`auto`,px:4,py:3,"& img":{maxWidth:`100%`},"& pre":{p:2,borderRadius:1,overflow:`auto`,bgcolor:`action.hover`},"& table":{borderCollapse:`collapse`,width:`100%`},"& th, & td":{border:1,borderColor:`divider`,px:1,py:.5},"& h1, & h2, & h3":{scrollMarginTop:16},"@media print":{maxWidth:`none`,px:0,py:0}},children:[s&&m!==a&&(0,V.jsxs)(xd,{severity:`info`,"data-testid":`guide-untranslated`,sx:{mb:2,"@media print":{display:`none`}},children:[`This chapter is not yet translated into`,` `,r.locales[a]?.name??a,`, so it is shown in`,` `,r.locales[m]?.name??m,`.`]}),s&&(0,V.jsx)(BM,{markdown:l,chapterFile:s,locale:m,settings:r.settings})]})})]})}function UM({team:e,bare:t}){return e?e.participants.length===0?(0,V.jsxs)(WM,{children:[(0,V.jsxs)(uy,{spacing:1,sx:{alignItems:`center`,maxWidth:420},children:[(0,V.jsx)(Z,{variant:`overline`,color:`text.secondary`,children:e.name}),(0,V.jsx)(Z,{variant:`h5`,children:`Nobody is on this team yet`}),(0,V.jsxs)(Z,{color:`text.secondary`,sx:{textAlign:`center`},children:[`Add a participant from the dev drawer, or with`,` `,(0,V.jsxs)(`code`,{children:[`sdk participant add --team `,e.index+1]}),`, and they will be listed here.`]})]}),(0,V.jsx)(_m,{size:`small`,href:Wc({kind:`observer`,teamIndex:e.index,bare:t}),children:`Watch without joining`})]}):(0,V.jsxs)(WM,{children:[(0,V.jsxs)(uy,{spacing:1,sx:{alignItems:`center`},children:[(0,V.jsx)(Z,{variant:`overline`,color:`text.secondary`,children:e.name}),(0,V.jsx)(Z,{variant:`h5`,children:`Who are you?`})]}),(0,V.jsx)(uy,{spacing:1.5,sx:{width:`100%`,maxWidth:420},children:e.participants.map((n,r)=>(0,V.jsx)(xm,{variant:`outlined`,"data-testid":`join-participant`,children:(0,V.jsxs)(Dm,{href:Wc({kind:`player`,teamIndex:e.index,participant:r+1,bare:t}),sx:{p:2},children:[(0,V.jsx)(Z,{variant:`subtitle1`,children:n.name}),(0,V.jsxs)(Z,{variant:`body2`,color:`text.secondary`,children:[`Participant `,r+1]})]})},n.id))}),(0,V.jsx)(_m,{size:`small`,href:Wc({kind:`observer`,teamIndex:e.index,bare:t}),children:`Watch without joining`})]}):(0,V.jsxs)(WM,{children:[(0,V.jsx)(Z,{color:`text.secondary`,children:`This session has no such team. It may have been removed.`}),(0,V.jsx)(_m,{href:`/`,children:`Back to the session`})]})}function WM({children:e}){return(0,V.jsx)(uy,{spacing:3,sx:{alignItems:`center`,justifyContent:`center`,height:`100%`,p:4,bgcolor:`background.default`},children:(0,V.jsx)(am,{sx:{display:`contents`},children:e})})}function GM({state:e}){let t=new URLSearchParams(window.location.search).get(`team`),n=t?e.teams.filter(e=>e.teamId===t):e.teams;return(0,E.useEffect)(()=>{let t=document.title;return document.title=`${e.game.name} — team sheets`,()=>{document.title=t}},[e.game.name]),(0,V.jsxs)(am,{"data-testid":`print-sheets`,sx:{height:`100%`,overflow:`auto`,bgcolor:`background.default`,"@media print":{height:`auto`,overflow:`visible`}},children:[(0,V.jsxs)(uy,{direction:`row`,spacing:2,sx:{alignItems:`center`,p:2,"@media print":{display:`none`}},children:[(0,V.jsx)(Z,{variant:`h6`,sx:{flex:1},children:`Team sheets`}),(0,V.jsx)(_m,{variant:`contained`,onClick:()=>window.print(),children:`Print`})]}),n.map(t=>(0,V.jsxs)(am,{sx:{m:2,p:4,bgcolor:`background.paper`,border:1,borderColor:`divider`,borderRadius:1,"@media print":{breakAfter:`page`,breakInside:`avoid`,border:0,m:0}},children:[(0,V.jsx)(Z,{variant:`overline`,color:`text.secondary`,children:e.game.name}),(0,V.jsx)(Z,{variant:`h3`,gutterBottom:!0,children:t.name}),(0,V.jsx)(Nh,{sx:{my:2}}),(0,V.jsx)(Z,{variant:`subtitle2`,gutterBottom:!0,children:`Open your screen at`}),(0,V.jsx)(Z,{sx:{fontFamily:`monospace`,fontSize:18,mb:3,wordBreak:`break-all`},children:`${window.location.origin}${Wc({kind:`player`,teamIndex:t.index,participant:1})}`}),(0,V.jsx)(Z,{variant:`subtitle2`,gutterBottom:!0,children:`On this team`}),(0,V.jsxs)(uy,{spacing:.5,children:[t.participants.map((e,n)=>(0,V.jsxs)(Z,{children:[n+1,`. `,e.name,(0,V.jsx)(Z,{component:`span`,variant:`caption`,color:`text.secondary`,sx:{ml:1,fontFamily:`monospace`},children:Wc({kind:`player`,teamIndex:t.index,participant:n+1})})]},e.id)),t.participants.length===0&&(0,V.jsx)(Z,{color:`text.secondary`,children:`Nobody yet.`})]})]},t.teamId))]})}var KM={game:new Set([`updateData`,`requestTick`,`renameOwnTeam`,`renameSelf`]),"waiting-room":new Set([`updateData`,`requestTick`,`renameOwnTeam`,`renameSelf`]),session:new Set([`updateSessionData`,`updateSharedData`,`requestTick`,`undoTick`,`resetGame`,`resetWalkthrough`,`setWaitingRoom`,`setLocale`,`createTeam`,`renameTeam`,`renameParticipant`,`moveParticipant`,`deleteTeam`,`pauseTimer`,`resumeTimer`,`extendTick`]),setup:new Set([`updateSettings`,`requestPlay`]),"scenario-editor":new Set([`updateSettings`]),presentation:new Set},qM={setWaitingRoom:`The waiting room is session-wide, so setWaitingRoom takes no teamId`,renameOwnTeam:`renameOwnTeam renames the caller's own team, which the host resolves; it takes no teamId`,resetWalkthrough:`A walkthrough holds one team, so resetWalkthrough takes no teamId`,setLocale:`The locale is the session's, so setLocale takes no teamId`,renameSelf:`renameSelf renames the caller, whom the host resolves; it takes no teamId`},JM={game:new Set([`callEndpoint`,`getPastState`,`getAllTeamsParticipants`]),"waiting-room":new Set([`callEndpoint`,`getPastState`,`getAllTeamsParticipants`]),session:new Set([`callEndpoint`,`getPastState`]),setup:new Set([`callEndpoint`]),"scenario-editor":new Set([`callEndpoint`]),presentation:new Set([`getPastState`])};function YM(e){return e.teamIndex===void 0?{}:{teamIndex:e.teamIndex}}function XM(e){return e.participantId===void 0?{}:{participantId:e.participantId,teamId:`team-${(e.teamIndex??0)+1}`}}function ZM(e){return e.role===void 0?{}:{viewerRole:e.role}}function QM(e){return{...YM(e),...XM(e),...ZM(e)}}function $M(e){let t=typeof e==`string`?/^team-([1-9]\d*)$/.exec(e):null;return t?Number(t[1])-1:-1}function eN(e,t){return e.teamId===void 0?t:{teamIndex:$M(e.teamId)}}function tN(e){return typeof e==`object`&&!!e&&`refused`in e}function nN(e,t,n){if(!KM[t.kind].has(e.type))return null;if(e.teamId!==void 0&&e.type in qM)return{refused:qM[e.type]};if(e.type===`renameSelf`&&e.participantId!==void 0)return{refused:`renameSelf renames the caller, whom the host resolves; it takes no participantId`};let r=YM(n),i=XM(n),a=ZM(n);switch(e.type){case`updateData`:return{type:`updateContext`,uiIdentifier:t.identifier,payload:e.payload,...e.deletes?{deletes:e.deletes}:{},...r,...i,...a};case`updateSessionData`:return{type:`updateContext`,payload:e.payload,teamIndex:$M(e.teamId),sessionUiIdentifier:t.identifier,...e.deletes?{deletes:e.deletes}:{}};case`updateSharedData`:return{type:`updateSharedContext`,uiIdentifier:t.identifier,payload:e.payload,...e.deletes?{deletes:e.deletes}:{}};case`updateSettings`:return t.kind===`scenario-editor`?{type:`updateScenarioDraft`,scenarioId:n.scenario??null,payload:e.payload,uiIdentifier:t.identifier}:{type:`updateSettings`,payload:e.payload,uiIdentifier:t.identifier};case`requestTick`:return{type:`tick`,...eN(e,r),...t.kind===`session`?{}:{...i,...a}};case`undoTick`:return{type:`undo`,...eN(e,r)};case`resetGame`:return{type:`reset`,...eN(e,{})};case`setWaitingRoom`:return{type:`setWaitingRoom`,open:e.open===!0};case`setLocale`:return{type:`setLocale`,locale:String(e.locale)};case`resetWalkthrough`:return{type:`resetWalkthrough`};case`createTeam`:return{type:`addTeam`,...typeof e.name==`string`?{name:e.name}:{}};case`renameTeam`:return{type:`renameTeam`,teamId:String(e.teamId),name:String(e.name)};case`renameOwnTeam`:return{type:`renameOwnTeam`,name:String(e.name),...i};case`renameSelf`:return{type:`renameSelf`,name:String(e.name),...i};case`renameParticipant`:return{type:`renameParticipant`,participantId:String(e.participantId),name:String(e.name)};case`moveParticipant`:return{type:`moveParticipant`,participantId:String(e.participantId),teamId:String(e.teamId)};case`deleteTeam`:return{type:`removeTeam`,teamIndex:$M(e.teamId)};case`requestPlay`:return{type:`play`};case`pauseTimer`:return{type:`pauseTimer`,...eN(e,r)};case`resumeTimer`:return{type:`resumeTimer`,...eN(e,r)};case`extendTick`:return{type:`extendTick`,byMs:Number(e.byMs??0),...eN(e,r)};default:return null}}function rN(e,t,n){if(!JM[t.kind].has(e.type))return null;switch(e.type){case`callEndpoint`:return{type:`callEndpoint`,endpointIdentifier:String(e.endpointIdentifier),request:e.request,uiIdentifier:t.identifier,...QM(n),...t.kind===`scenario-editor`?{scenarioId:n.scenario??null}:{}};case`getPastState`:return{type:`getPastState`,query:e.query,uiIdentifier:t.identifier,...n.teamIndex===void 0?{}:{teamId:`team-${n.teamIndex+1}`}};case`getAllTeamsParticipants`:return{type:`getAllTeamsParticipants`,uiIdentifier:t.identifier};default:return null}}var iN={game:{required:[`stateChanged`,`setSettings`,`setTheme`,`setLocale`,`setAssetUrls`,`setParticipant`],alsoSent:[`setTimer`,`setViewerRole`,`setOwnTeam`,`setOwnTeamJoinLink`,`setParticipantList`,`setTeamList`,`setRunKind`,`setScenarioName`,`setRoundProcessing`,`setCrossTeamData`,`themePreferenceChanged`],isPlayerSurface:!0},"waiting-room":{required:[`stateChanged`,`setSettings`,`setTheme`,`setLocale`,`setAssetUrls`,`setParticipant`],alsoSent:[`setTimer`,`setViewerRole`,`setOwnTeam`,`setOwnTeamJoinLink`,`setParticipantList`,`setTeamList`,`setRunKind`,`setScenarioName`,`setCrossTeamData`,`themePreferenceChanged`],isPlayerSurface:!0},session:{required:[`setSessionMeta`,`setSessionData`,`setSettings`,`setTheme`,`setLocale`,`setAssetUrls`,`setTeamConfiguration`],alsoSent:[`setTeamList`,`setParticipantList`,`setTeamLinks`,`setAvailableOverlays`,`setRunKind`,`setScenarioName`,`setWalkthroughLink`,`themePreferenceChanged`],isPlayerSurface:!1},presentation:{required:[`setPresentation`,`setSettings`,`setTheme`,`setLocale`,`setAssetUrls`],alsoSent:[`themePreferenceChanged`],isPlayerSurface:!1},setup:{required:[`setSettings`,`setTheme`,`setLocale`,`setAssetUrls`],alsoSent:[`themePreferenceChanged`],isPlayerSurface:!1},"scenario-editor":{required:[`setSettings`,`setTheme`,`setLocale`,`setAssetUrls`],alsoSent:[`themePreferenceChanged`],isPlayerSurface:!1}};function aN(e,t={}){let{required:n,isPlayerSurface:r}=iN[e];return!t.observer||!r?n:n.filter(e=>e!==`setParticipant`)}var oN=new Set([`callEndpoint`,`uploadBlob`,`getPastState`,`getAllTeamsParticipants`]),sN=class{options;host;logger;port=null;readyListener=null;loadListener=null;handshakeTimer=null;disposed=!1;lastSent=new Map;sticky=new Map;outbound=[];pending=new Map;requestCounter=0;constructor(e){this.options=e,this.host=e.window??globalThis.window,this.logger=e.logger??console,this.listenForReady()}get connected(){return this.port!==null}send(e){this.disposed||(this.lastSent.set(e.type,cN(e)),this.port?this.port.postMessage(e):this.outbound.push(e))}sendState(e){this.disposed||(this.sticky.set(e.type,e),this.lastSent.set(e.type,cN(e)),this.port?.postMessage(e))}sendIfChanged(e){return this.disposed||this.lastSent.get(e.type)===cN(e)?!1:(this.sendState(e),!0)}sendInitialBatch(e){let t=aN(this.options.surface,{observer:this.options.observer}),n=new Set(e.map(e=>e.type)),r=t.filter(e=>!n.has(e));if(r.length>0)throw Error(`Initial batch for a "${this.options.surface}" surface is missing ${r.join(`, `)}. The guest blocks its first paint on ${t.join(`, `)}.`);for(let t of e)this.sendState(t)}request(e,t=3e4){let n=`host-${++this.requestCounter}`;return new Promise((r,i)=>{let a=setTimeout(()=>{this.pending.delete(n),i(Error(`Guest did not answer "${e.type}" in ${t}ms`))},t);this.pending.set(n,{resolve:()=>{clearTimeout(a),r()},reject:e=>{clearTimeout(a),i(e)}}),this.send({...e,requestId:n})})}dispose(){this.disposed||(this.disposed=!0,this.clearHandshakeTimer(),this.readyListener&&=(this.host.removeEventListener(`message`,this.readyListener),null),this.loadListener&&=(this.options.iframe.removeEventListener?.(`load`,this.loadListener),null),this.closePort(),this.rejectPending(`Channel disposed`),this.options.onTeardown?.(`disposed`))}listenForReady(){let e=e=>{if(this.disposed)return;let t=e.data;if(!t||t.type!==`ready`||e.source!==this.options.iframe.contentWindow)return;if(e.origin!==this.options.iframeOrigin){this.logger.warn(`[${this.options.uiIdentifier}] ignoring a handshake from ${e.origin}; this frame is pinned to ${this.options.iframeOrigin}`);return}let n=t.protocolVersion;typeof n==`number`&&n!==4&&this.logger.warn(`[${this.options.uiIdentifier}] host↔iframe protocol version mismatch: iframe ${n}, host 4`),this.connect(t.signalsRendered===!0)};this.readyListener=e,this.host.addEventListener(`message`,e),this.armHandshakeTimer(),this.listenForLoads()}listenForLoads(){let{iframe:e}=this.options;if(!e.addEventListener)return;let t=()=>{this.disposed||(this.armHandshakeTimer(),this.port?.postMessage({type:`ping`}))};this.loadListener=t,e.addEventListener(`load`,t)}armHandshakeTimer(){this.clearHandshakeTimer();let e=this.options.handshakeTimeoutMs??1e4;this.handshakeTimer=setTimeout(()=>{this.handshakeTimer=null,!this.disposed&&(this.closePort(),this.options.onTeardown?.(`handshake-timeout`))},e)}connect(e){this.closePort(),this.rejectPending(`Connection reset`),this.lastSent.clear();let t=[...this.sticky.values()],n=new MessageChannel;this.port=n.port1,this.port.onmessage=e=>this.receive(e.data),this.port.start(),this.clearHandshakeTimer(),this.options.iframe.contentWindow?.postMessage({type:`init`,protocolVersion:4,sessionKey:this.options.sessionKey},this.options.iframeOrigin,[n.port2]);for(let e of t)this.sendState(e);let r=this.outbound;this.outbound=[];for(let e of r)this.port.postMessage(e);this.options.onConnect?.({signalsRendered:e})}closePort(){this.port&&=(this.port.onmessage=null,this.port.close(),null)}clearHandshakeTimer(){this.handshakeTimer!==null&&(clearTimeout(this.handshakeTimer),this.handshakeTimer=null)}rejectPending(e){for(let{reject:t}of this.pending.values())t(Error(e));this.pending.clear()}receive(e){if(e&&typeof e.type==`string`){switch(e.type){case`pong`:this.clearHandshakeTimer();return;case`rendered`:this.options.onRendered?.();return;case`refreshAssetAuth:response`:{let{requestId:t,ok:n,error:r}=e;if(typeof t!=`string`)return;let i=this.pending.get(t);this.pending.delete(t),n?i?.resolve():i?.reject(Error(r??`Asset auth refresh failed`));return}}oN.has(e.type)?this.answer(e):this.options.onMessage?.(e)}}async answer(e){let t=e.requestId;if(typeof t!=`string`){this.logger.warn(`[${this.options.uiIdentifier}] dropped a "${e.type}" with no requestId`);return}let n=`${e.type}:response`;try{let r=await this.dispatch(e);this.send({type:n,requestId:t,ok:!0,...r})}catch(r){this.send(e.type===`callEndpoint`?{type:n,requestId:t,ok:!1,...lN(r)}:{type:n,requestId:t,ok:!1,error:r instanceof Error?r.message:String(r)})}}async dispatch(e){let t=this.options.adapter,n={uiIdentifier:this.options.uiIdentifier,...this.options.origin};switch(e.type){case`callEndpoint`:if(!t?.callEndpoint)throw Error(`This host serves no endpoints`);return{response:await t.callEndpoint({endpointIdentifier:String(e.endpointIdentifier),request:e.request},n)};case`uploadBlob`:if(!t?.uploadBlob)throw Error(`This host stores no blobs`);return{reference:await t.uploadBlob({data:e.data,name:String(e.name),mimeType:String(e.mimeType)},n)};case`getPastState`:if(!t?.getPastState)throw Error(`This host serves no past state`);return{entries:await t.getPastState(e.query,n)};case`getAllTeamsParticipants`:return{participants:await t?.getAllTeamsParticipants?.(n)??[]};default:throw Error(`Unroutable request "${e.type}"`)}}};function cN(e){return typeof e!=`object`||!e?JSON.stringify(e)??`undefined`:Array.isArray(e)?`[${e.map(cN).join(`,`)}]`:`{${Object.entries(e).filter(([,e])=>e!==void 0).sort(([e],[t])=>e<t?-1:+(e>t)).map(([e,t])=>`${JSON.stringify(e)}:${cN(t)}`).join(`,`)}}`}function lN(e){let t=typeof e==`object`&&e?e.failure:void 0;return typeof t==`object`&&t&&typeof t.outcome?.kind==`string`&&Array.isArray(t.applied)?t:{outcome:{kind:`error`,message:e instanceof Error?e.message:String(e)},applied:[]}}var uN=[`primary`,`secondary`,`success`,`error`,`warning`,`info`];function dN(e){let t=e.trim().toLowerCase(),n=/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.exec(t);if(n){let e=n[1];e.length<=4&&(e=[...e].map(e=>e+e).join(``));let t=t=>parseInt(e.slice(t,t+2),16);return{r:t(0),g:t(2),b:t(4),a:e.length===8?t(6)/255:1}}let r=/^rgba?\(([^)]*)\)$/.exec(t);if(r){let e=r[1].split(/[\s,/]+/).filter(Boolean);if(e.length!==3&&e.length!==4)return null;let[t,n,i]=e.slice(0,3).map(e=>e.endsWith(`%`)?parseFloat(e)/100*255:parseFloat(e)),a=e[3],o=a===void 0?1:a.endsWith(`%`)?parseFloat(a)/100:parseFloat(a);return[t,n,i,o].some(e=>!Number.isFinite(e))?null:{r:fN(t,255),g:fN(n,255),b:fN(i,255),a:fN(o,1)}}return null}function fN(e,t){return Math.min(t,Math.max(0,e))}function pN(e,t){let n=(t,n)=>t*e.a+n*(1-e.a);return{r:n(e.r,t.r),g:n(e.g,t.g),b:n(e.b,t.b),a:1}}function mN({r:e,g:t,b:n}){let r=e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};return .2126*r(e)+.7152*r(t)+.0722*r(n)}function hN(e,t){let[n,r]=[mN(e),mN(t)].sort((e,t)=>t-e);return(n+.05)/(r+.05)}function gN({r:e,g:t,b:n}){let r=e=>Math.round(e).toString(16).padStart(2,`0`);return`#${r(e)}${r(t)}${r(n)}`}var _N={r:0,g:0,b:0,a:1},vN={r:255,g:255,b:255,a:1};function yN(e,t){let n=dN(e);if(!n)return gN(_N);let r=n.a<1?pN(n,vN):n,i=t===void 0?null:dN(t);if(i){let e=pN(i,r);if(hN(e,r)>=4.5)return gN(e)}return hN(_N,r)>=hN(vN,r)?gN(_N):gN(vN)}var bN={light:{background:`#ffffff`,surface:`#ffffff`,text:`#000000`},dark:{background:`#121212`,surface:`#1e1e1e`,text:`#ffffff`}};function xN(e){let{background:t,surface:n,text:r}=e;if(!t||!n)return;let i=dN(t),a=dN(n);if(!i||!a)return;let o=e=>e.a<1?pN(e,vN):e,s=[o(i),o(a)],c=e=>Math.min(...s.map(t=>hN(pN(e,t),t))),l=r===void 0?null:dN(r);if(l&&l.a===1&&c(l)>=4.5)return{background:t,surface:n,text:gN(l)};let u=c(_N)>=c(vN)?_N:vN;if(!(c(u)<4.5))return{background:t,surface:n,text:gN(u)}}function SN(e,t){let n=Object.fromEntries(uN.map(t=>[t,yN(e[t],e.contrastText?.[t])]));return{...Object.fromEntries(uN.map(t=>[t,e[t]])),contrastText:n,...xN(e)??bN[t]}}function CN(e){return{mode:e.mode,light:SN(e.light,`light`),dark:SN(e.dark,`dark`),brand:e.brand}}var wN={primary:{main:`#6B00FF`,contrastText:`#ffffff`},secondary:{main:`#17D1C7`,contrastText:`rgba(0,0,0,0.87)`},error:{main:`#DB324D`,contrastText:`#ffffff`},success:{main:`#00c894`,contrastText:`rgba(0,0,0,0.87)`},warning:{main:`#ffb65c`,contrastText:`rgba(0,0,0,0.87)`},info:{main:`#336BEB`,contrastText:`#ffffff`}},TN={primary:{main:`#BC8CFF`,contrastText:`rgba(0,0,0,0.87)`},secondary:{main:`#17D1C7`,contrastText:`rgba(0,0,0,0.87)`},error:{main:`#ef7a8e`,contrastText:`rgba(0,0,0,0.87)`},success:{main:`#00c894`,contrastText:`rgba(0,0,0,0.87)`},warning:{main:`#ffb65c`,contrastText:`rgba(0,0,0,0.87)`},info:{main:`#7d9bf2`,contrastText:`rgba(0,0,0,0.87)`}},EN=`#414042`,DN=`-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif`,ON=`"Work Sans", ${DN}`,kN=`Sora, ${DN}`;function AN(e){return{primary:e.primary.main,secondary:e.secondary.main,success:e.success.main,error:e.error.main,warning:e.warning.main,info:e.info.main,contrastText:{primary:e.primary.contrastText,secondary:e.secondary.contrastText,success:e.success.contrastText,error:e.error.contrastText,warning:e.warning.contrastText,info:e.info.contrastText}}}function jN(e,t){return CN(t?{mode:e,...t.theme}:{mode:e,light:AN(wN),dark:AN(TN),brand:{name:`Serious Gaming`}})}var MN=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function NN(e){return Xo({palette:e===`dark`?{mode:`dark`,...TN}:{mode:`light`,...wN,text:{primary:EN}},typography:{fontFamily:ON,...Object.fromEntries(MN.map(e=>[e,{fontFamily:kN}]))},components:{MuiButton:{styleOverrides:{root:{textTransform:`none`}}}}})}function PN(e){return e===`system`?window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:e}function FN(e,t){return{"Content-Type":e.mimeType,"X-Blob-Name":encodeURIComponent(e.name),"X-Blob-Mime":e.mimeType,"X-Blob-Retention":t===`setup`?`settings`:t===`scenario-editor`?`scenario`:`game`}}var IN=5e3,LN=[`allow-scripts`,`allow-same-origin`,`allow-forms`,`allow-downloads`,`allow-modals`,`allow-presentation`,`allow-popups`,`allow-popups-to-escape-sandbox`].join(` `),RN=[`clipboard-write`,`autoplay`,`screen-wake-lock`,`fullscreen`,`microphone`,`camera`,`geolocation`,`picture-in-picture`,`web-share`,`gamepad`,`window-management`,`speaker-selection`].join(`; `);function zN(e){return Object.assign(Error(e.outcome.message??e.outcome.kind),{failure:e})}function BN(e,t,n){return async r=>{let i=rN(r,e,t)??nN(r,e,t);return tN(i)?{ok:!1,outcome:{kind:`denied`,message:i.refused}}:i?n(i):null}}function VN(e,t,n){return JSON.stringify([e.kind,e.identifier,t.observer??null,t.teamIndex??null,t.participantId??null,t.role??null,n])}function HN({surface:e,viewer:t,feed:n,mode:r,resolved:i,onModeChange:a,rejection:o,hookFailure:s,onTeardown:c}){let l=n.kind===`view`?n.dispatch:BN(e,t,n.send),u=e.origin??window.location.origin,d=(0,E.useRef)(null),f=(0,E.useRef)(null),p=KN(n),m=(0,E.useRef)({dispatch:l,onModeChange:a,overlays:p});m.current={dispatch:l,onModeChange:a,overlays:p};let[h,g]=(0,E.useState)(!1),[_,v]=(0,E.useState)(!1),[y,b]=(0,E.useState)(!1),{selected:x}=ob(),{hold:S}=pb(),C=n.kind===`view`?n.sessionKey:Xc(n.state,e,{sessionless:n.sessionless===!0});return(0,E.useEffect)(()=>{let n=d.current;if(!n)return;let r;return r=new sN({iframe:n,surface:e.kind,uiIdentifier:e.identifier,iframeOrigin:u,sessionKey:C,adapter:{callEndpoint:async({endpointIdentifier:e,request:t})=>{let n=await m.current.dispatch({type:`callEndpoint`,endpointIdentifier:e,request:t});if(n&&`type`in n){if(n.type===`endpoint`)return n.response;if(n.type===`endpointFailure`)throw zN(n.failure)}throw zN({outcome:n&&`ok`in n&&!n.ok?n.outcome:{kind:`error`,message:`The endpoint did not answer`},applied:[]})},uploadBlob:async t=>{let n=await(await fetch(`/api/blobs`,{method:`POST`,headers:FN(t,e.kind),body:t.data})).json();if(!n.reference)throw Error(`The blob was not stored`);return n.reference},getPastState:async e=>{let t=await m.current.dispatch({type:`getPastState`,query:e});return t&&`type`in t&&t.type===`pastState`?t.entries:[]},getAllTeamsParticipants:async()=>{let e=await m.current.dispatch({type:`getAllTeamsParticipants`});return e&&`type`in e&&e.type===`participants`?e.participants:[]}},observer:t.observer===!0,onConnect:({signalsRendered:e})=>{g(!0),v(!e),b(!1)},onRendered:()=>v(!0),onTeardown:e=>{e===`handshake-timeout`&&(g(!1),b(!0),c?.())},onMessage:e=>{e.type===`setThemePreference`?m.current.onModeChange?.(e.preference):WN(r,e,m.current.dispatch,m.current.overlays)}}),f.current=r,()=>{r.dispose(),f.current=null,g(!1),v(!1)}},[e.identifier,e.kind,t.observer,t.teamIndex,t.participantId,t.role,C,S]),(0,E.useEffect)(()=>{let a=f.current;if(!a)return;let o={mode:i,preference:r,palette:jN(i,x)},s=n.kind===`view`?[...n.messages,...Zc(o)]:nl({surface:e,state:n.state,viewer:t,theme:o,origin:window.location.origin,assetOrigin:u,gameName:n.state.game.name,...n.overlays===void 0?{}:{overlays:n.overlays},...n.roundProcessing===void 0?{}:{roundProcessing:n.roundProcessing},...n.sessionless===void 0?{}:{sessionless:n.sessionless}});if(S===`surface`)for(let e of lb(s,S))a.sendIfChanged(e);else if(a.connected)for(let e of s)a.sendIfChanged(e);else a.sendInitialBatch(s)},[e,n,t,r,i,u,x,S]),(0,E.useEffect)(()=>{if(!h||_||S===`host`)return;let e=setTimeout(()=>v(!0),IN);return()=>clearTimeout(e)},[h,_,S]),(0,E.useEffect)(()=>{let e=f.current;e&&o&&(o.teamIndex===void 0||o.teamIndex===t.teamIndex)&&e.send({type:`validationRejected`,rejections:o.rejections})},[o?.nonce,o,t.teamIndex]),(0,E.useEffect)(()=>{let t=f.current;t&&s&&e.kind===`session`&&t.send({type:`hookFailed`,payload:s.payload})},[s?.nonce,s,e.kind]),(0,V.jsxs)(am,{sx:{position:`relative`,width:`100%`,height:`100%`},children:[(0,V.jsx)(am,{component:`iframe`,ref:d,title:e.identifier,src:`${u}${e.src}?expectedParentOrigin=${encodeURIComponent(window.location.origin)}`,sandbox:LN,allow:RN,sx:{width:`100%`,height:`100%`,border:0,display:`block`}},`${VN(e,t,C)}:${S}`),(!h||S===`host`||!_&&S!==`surface`)&&(0,V.jsx)(uy,{spacing:2,"data-testid":`surface-loading`,sx:{alignItems:`center`,justifyContent:`center`,position:`absolute`,inset:0,bgcolor:`background.default`},children:y?(0,V.jsx)(Z,{color:`text.secondary`,children:`This surface did not connect. Check its console for an error.`}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(YN,{brand:x,resolved:i}),(0,V.jsxs)(Z,{color:`text.secondary`,variant:`body2`,children:[`Loading `,e.identifier]})]})})]})}function UN(e,t,n){return e!==`facilitator-guide`&&e!==`print-sheets`&&e!==`presentation`?`"${String(e)}" is not a host overlay`:n.available.includes(e)?e===`print-sheets`&&t!==void 0&&n.teamIds!==void 0&&!n.teamIds.includes(String(t))?`There is no team "${String(t)}" to print`:null:`This host does not offer the "${e}" overlay for this game`}async function WN(e,t,n,r={available:[`facilitator-guide`,`print-sheets`,`presentation`]}){if(t.type===`setThemePreference`)return;if(t.type===`openHostOverlay`){let n=UN(t.overlay,t.target,r);n||GN(t.overlay,t.target),qN(e,t,n?{ok:!1,outcome:{kind:`denied`,message:n}}:{ok:!0});return}let i;try{i=await n(t)}catch(e){i={ok:!1,outcome:{kind:`error`,message:e instanceof Error?e.message:`The command failed`}}}if(!i){qN(e,t,{ok:!1,outcome:{kind:`denied`,message:`This host does not handle "${String(t.type)}"`}});return}let a=typeof t.requestId==`string`?t.requestId:null;a&&(`ok`in i?e.send(i.ok?{type:`mutation:response`,requestId:a,ok:!0,...i.committedAtTick===void 0?{}:{committedAtTick:i.committedAtTick}}:{type:`mutation:response`,requestId:a,ok:!1,outcome:i.outcome}):e.send({type:`mutation:response`,requestId:a,ok:!0}))}function GN(e,t){if(e===`facilitator-guide`)return window.open(`/guide`,`_blank`,`noreferrer`),!0;if(e===`print-sheets`){let e=typeof t==`string`?`?team=${encodeURIComponent(t)}`:``;return window.open(`/print${e}`,`_blank`,`noreferrer`),!0}return e===`presentation`&&(window.open(`/presentation`,`_blank`,`noreferrer`),!0)}function KN(e){if(e.kind===`operator`)return{available:e.overlays??ll(),teamIds:e.state.teams.map(e=>e.teamId)};let t=e.messages.find(e=>e.type===`setAvailableOverlays`),n=e.messages.find(e=>e.type===`setTeamList`);return{available:Array.isArray(t?.overlays)?t.overlays:[],...Array.isArray(n?.payload)?{teamIds:n.payload.map(e=>e.teamId)}:{}}}function qN(e,t,n){typeof t.requestId==`string`&&e.send({type:`mutation:response`,requestId:t.requestId,...n})}function JN(e,t){return t===`dark`?e?.onDark??e?.onLight:e?.onLight??e?.onDark}function YN({brand:e,resolved:t}){let n=JN(e?.loader,t);if(n)return(0,V.jsx)(am,{component:`img`,src:n,alt:``,sx:{width:72,height:72}});let r=JN(e?.theme.brand?.logo,t),i=e?.theme[t].primary;return(0,V.jsxs)(V.Fragment,{children:[r&&(0,V.jsx)(am,{component:`img`,src:r,alt:e?.name??``,sx:{maxHeight:48,maxWidth:`min(320px, 80%)`,objectFit:`contain`}}),(0,V.jsx)(rd,{size:28,sx:i?{color:i}:void 0})]})}function XN({scenario:e,surface:t,state:n,mode:r,resolved:i,send:a,onModeChange:o,rejection:s}){let[c,l]=(0,E.useState)(!1),[u,d]=(0,E.useState)(!1),[f,p]=(0,E.useState)(null),m=e===``?null:e,h=n.scenarioDrafts?.some(e=>e.scenarioId===m)===!0,[g,_]=(0,E.useState)(null);(0,E.useEffect)(()=>{h||a({type:`editScenario`,scenarioId:m}).then(e=>{`ok`in e&&!e.ok&&_(e.outcome.message??`The scenario could not be opened`)})},[h,m,a]);let v=async()=>{l(!0),p(null);try{let t=await fetch(`/api/scenarios`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({identifier:e,overwrite:!0,draft:!0})});if(!t.ok){let e=await t.json();p(e.error??`The scenario could not be saved`);return}d(!0)}finally{l(!1)}};return(0,V.jsxs)(am,{sx:{display:`flex`,flexDirection:`column`,height:`100vh`},children:[(0,V.jsx)(jd,{position:`static`,color:`default`,elevation:1,children:(0,V.jsxs)(yy,{variant:`dense`,sx:{gap:2},children:[(0,V.jsxs)(uy,{sx:{flex:1},children:[(0,V.jsx)(Z,{variant:`subtitle2`,children:`Editing scenario`}),(0,V.jsx)(Z,{variant:`caption`,color:`text.secondary`,children:e})]}),u&&!f&&(0,V.jsx)(Z,{variant:`body2`,color:`success.main`,children:`Saved`}),(0,V.jsx)(_m,{variant:`contained`,"data-testid":`save-scenario`,disabled:c,onClick:()=>void v(),children:`Save`}),(0,V.jsx)(_m,{href:`/`,children:`Done`})]})}),(f??g)&&(0,V.jsx)(xd,{severity:`error`,sx:{borderRadius:0},children:f??g}),(0,V.jsx)(am,{sx:{flex:1,minHeight:0,position:`relative`},children:h?t?(0,V.jsx)(HN,{surface:t,viewer:m===null?{}:{scenario:m},feed:{kind:`operator`,state:n,send:e=>(e.type===`updateScenarioDraft`&&d(!1),a(e))},mode:r,resolved:i,onModeChange:o,rejection:s}):(0,V.jsxs)(uy,{spacing:2,sx:{alignItems:`center`,justifyContent:`center`,height:`100%`,p:4},children:[(0,V.jsxs)(xd,{severity:`info`,sx:{maxWidth:560},children:[(0,V.jsxs)(Z,{gutterBottom:!0,children:[`This game has no `,(0,V.jsx)(`strong`,{children:`scenario_editor`}),` slot.`]}),(0,V.jsxs)(Z,{variant:`body2`,color:`text.secondary`,children:[`A scenario editor is optional (§6.5). Without one there is nothing to author a scenario in here; the values can still be set with`,` `,(0,V.jsx)(`code`,{children:`sdk configure`}),` and captured from the Scenario tab, and an agent can edit a game's settings directly from their schemas.`]})]}),(0,V.jsx)(_m,{href:`/`,children:`Back to the session`})]}):(0,V.jsxs)(uy,{spacing:2,sx:{alignItems:`center`,justifyContent:`center`,height:`100%`},children:[(0,V.jsx)(rd,{size:28}),(0,V.jsxs)(Z,{color:`text.secondary`,variant:`body2`,children:[`Opening `,e||`the package settings`]})]})})]})}var ZN={processing:new Set,errors:[],rejection:null,hookFailure:null,reloads:0,restarted:null},QN=new Set([`bundles-reloaded`,`reinitialised-on-change`,`logic-reloaded`]);function $N(e=`session`){let[t,n]=(0,E.useState)(null),[r,i]=(0,E.useState)(!1),[a,o]=(0,E.useState)(0),[s,c]=(0,E.useState)(ZN),l=(0,E.useRef)(null),u=(0,E.useRef)(null),d=(0,E.useRef)(new Map),f=(0,E.useRef)(0);(0,E.useEffect)(()=>{let t=!1,r,a=()=>{let s=e===`walkthrough`?`?run=walkthrough`:``,f=new WebSocket(`${location.protocol===`https:`?`wss`:`ws`}://${location.host}/ws${s}`);l.current=f,f.onopen=()=>{i(!0),o(0),u.current!==null&&f.send(JSON.stringify({presence:u.current}))},f.onclose=()=>{i(!1),o(e=>e+1),t||(r=setTimeout(a,1e3))},f.onmessage=e=>{let t=JSON.parse(e.data);t.type===`result`?(d.current.get(t.requestId)?.(t.result),d.current.delete(t.requestId)):eP(t,n,c)}};return a(),()=>{t=!0,clearTimeout(r),l.current?.close()}},[e]);let p=(0,E.useCallback)(e=>{let t=l.current;if(!t||t.readyState!==WebSocket.OPEN)return Promise.resolve({ok:!1,outcome:{kind:`error`,message:`Not connected to the session`}});let n=`console-${++f.current}`;return new Promise(r=>{d.current.set(n,r),t.send(JSON.stringify({requestId:n,command:e}))})},[]),m=(0,E.useCallback)(e=>{if(u.current===e)return;u.current=e;let t=l.current;t&&t.readyState===WebSocket.OPEN&&t.send(JSON.stringify({presence:e}))},[]);return(0,E.useMemo)(()=>({state:t,connected:r,attempts:a,transients:s,send:p,announce:m}),[t,r,a,s,p,m])}function eP(e,t,n){switch(e.type){case`state`:t(e.state),QN.has(e.cause)&&n(t=>({...t,reloads:t.reloads+1,restarted:e.cause===`reinitialised-on-change`?{nonce:(t.restarted?.nonce??0)+1}:t.restarted}));return;case`round-processing`:n(t=>{let n=new Set(t.processing),r=e.teamIndex??-1;return e.processing?n.add(r):n.delete(r),{...t,processing:n}});return;case`error`:n(t=>({...t,errors:[...t.errors,`${e.source}: ${e.message}`],hookFailure:e.source.startsWith(`hook:`)?{payload:{signal:e.source.slice(5),teamId:e.teamId??``,message:e.message},nonce:(t.hookFailure?.nonce??0)+1}:t.hookFailure}));return;case`validation-rejected`:n(t=>({...t,rejection:{...e.teamIndex===void 0?{}:{teamIndex:e.teamIndex},rejections:e.rejections,nonce:(t.rejection?.nonce??0)+1}}));return}}function tP(){let[e,t]=(0,E.useState)(null),[n,r]=(0,E.useState)(!1),[i,a]=(0,E.useState)(0),[o,s]=(0,E.useState)(null),[c,l]=(0,E.useState)(null),u=(0,E.useRef)(null),d=(0,E.useRef)(new Map),f=(0,E.useRef)(0);(0,E.useEffect)(()=>{let e=!1,n,i=()=>{let o=encodeURIComponent(location.pathname+location.search),c=new WebSocket(`${location.protocol===`https:`?`wss`:`ws`}://${location.host}/ws/view?page=${o}`);u.current=c,c.onopen=()=>{r(!0),a(0)},c.onclose=()=>{r(!1),a(e=>e+1),e||(n=setTimeout(i,1e3))},c.onmessage=e=>{let n=JSON.parse(e.data);switch(n.type){case`view`:(0,Ap.flushSync)(()=>t({page:n.page,messages:n.messages}));return;case`result`:d.current.get(n.requestId)?.(n.result),d.current.delete(n.requestId);return;case`validation-rejected`:s(e=>({rejections:n.rejections,nonce:(e?.nonce??0)+1}));return;case`hookFailed`:l(e=>({payload:n.payload,nonce:(e?.nonce??0)+1}));return}}};return i(),()=>{e=!0,clearTimeout(n),u.current?.close()}},[]);let p=(0,E.useCallback)(e=>{let t=u.current;if(!t||t.readyState!==WebSocket.OPEN)return Promise.resolve({ok:!1,outcome:{kind:`error`,message:`Not connected to the session`}});let n=`view-${++f.current}`;return new Promise(r=>{d.current.set(n,r),t.send(JSON.stringify({requestId:n,message:e}))})},[]);return(0,E.useMemo)(()=>({view:e,connected:n,attempts:i,rejection:o,hookFailure:c,dispatch:p}),[e,n,i,o,c,p])}function nP(e){let t=(0,E.useMemo)(()=>Uc(location.pathname,location.search),[]);return _l(t)?(0,V.jsx)(rP,{...e}):(0,V.jsx)(aP,{...e,route:t})}function rP({mode:e,resolved:t,onModeChange:n}){let{view:r,connected:i,attempts:a,rejection:o,hookFailure:s,dispatch:c}=tP();if(!r)return(0,V.jsx)(dP,{connected:i,attempts:a});let{page:l,messages:u}=r;switch(l.status){case`redirect`:return location.replace(l.href),(0,V.jsx)(dP,{connected:i,attempts:a});case`configuring`:return(0,V.jsx)(iP,{children:`The facilitator is setting the session up. This page opens when it starts.`});case`closed`:return(0,V.jsx)(iP,{children:`This session has already started, so its configuration is closed.`});case`join`:return(0,V.jsx)(UM,{team:l.team??void 0,bare:!0});case`no-such-team`:return(0,V.jsx)(fP,{resolution:{kind:`no-such-team`,teamIndex:l.teamIndex},bare:!0});case`no-such-participant`:return(0,V.jsx)(fP,{resolution:{kind:`no-such-participant`,teamIndex:l.teamIndex,slot:l.slot,held:l.held},bare:!0});case`missing-surface`:return(0,V.jsx)(pP,{kind:l.kind});case`surface`:return(0,V.jsxs)(am,{sx:{display:`flex`,flexDirection:`column`,height:`100vh`},children:[!i&&(0,V.jsx)(lP,{attempts:a}),l.inSetup&&l.surface.kind===`setup`&&(0,V.jsx)(jd,{position:`static`,color:`default`,elevation:1,children:(0,V.jsxs)(yy,{variant:`dense`,sx:{gap:2},children:[(0,V.jsx)(Z,{variant:`subtitle2`,sx:{flex:1},children:`Configure the session, then start it`}),(0,V.jsx)(_m,{variant:`contained`,"data-testid":`play`,onClick:()=>void c({type:`requestPlay`}),children:`Play`})]})}),(0,V.jsx)(am,{sx:{flex:1,minHeight:0,position:`relative`},children:(0,V.jsx)(HN,{surface:l.surface,viewer:l.viewer,feed:{kind:`view`,messages:u,dispatch:c,sessionKey:l.sessionKey},mode:e,resolved:t,onModeChange:n,rejection:o,hookFailure:s})})]})}}function iP({children:e}){return(0,V.jsx)(uy,{sx:{alignItems:`center`,justifyContent:`center`,height:`100vh`,p:4},children:(0,V.jsx)(xd,{severity:`info`,sx:{maxWidth:560},"data-testid":`view-notice`,children:(0,V.jsx)(Z,{children:e})})})}function aP({mode:e,resolved:t,onModeChange:n,route:r}){let{state:i,connected:a,attempts:o,transients:s,send:c,announce:l}=$N(r.run),[u,d]=(0,E.useState)(null),[f,p]=(0,E.useState)([`print-sheets`]);(0,E.useEffect)(()=>{fetch(`/api/surfaces`).then(e=>e.json()).then(d)},[s.reloads]);let[m,h]=(0,E.useState)([]);(0,E.useEffect)(()=>{fetch(`/api/session`).then(e=>e.json()).then(e=>h((e.warnings??[]).filter(e=>e.build)))},[s.reloads]);let[g,_]=(0,E.useState)(!1);(0,E.useEffect)(()=>{s.restarted&&_(!0)},[s.restarted]),(0,E.useEffect)(()=>{fetch(`/api/overlays`).then(e=>e.json()).then(e=>p(e.overlays))},[s.reloads]);let v=i&&r.kind===`player`?(()=>{let e=ml(i,r);return e.kind===`viewer`?e.viewer.participantId??null:null})():null;if((0,E.useEffect)(()=>l(v),[l,v]),!i||!u)return(0,V.jsx)(dP,{connected:a,attempts:o});let y=u.some(e=>e.kind===`setup`),b=i.session.inSetup,x=r.kind===`guide`||r.kind===`print`||r.kind===`scenario-editor`||r.kind===`presentation`,S=b&&!x?{...r,kind:`setup`}:r;if(!b&&S.kind===`setup`)return(0,V.jsx)(cP,{configurable:y,onReconfigure:()=>void c({type:`reconfigure`})});if(S.kind===`scenario-editor`)return S.scenario===void 0?(0,V.jsx)(uP,{}):(0,V.jsx)(XN,{scenario:S.scenario,surface:u.find(e=>e.kind===`scenario-editor`),state:i,mode:e,resolved:t,send:c,onModeChange:n,rejection:s.rejection});if(S.kind===`join`){let e=i.teams.find(e=>e.index===S.teamIndex);return e?.participants.length===1?(location.replace(Wc({kind:`player`,teamIndex:e.index,participant:1,bare:S.bare})),(0,V.jsx)(dP,{connected:a,attempts:o})):(0,V.jsx)(UM,{team:e,bare:S.bare})}let C=ml(i,S);if(C.kind!==`viewer`)return(0,V.jsx)(fP,{resolution:C,bare:S.bare,onAddParticipant:()=>void c({type:`addParticipant`,teamId:`team-${C.teamIndex+1}`})});let w=i.session.waitingRoomOpen&&(S.kind===`player`||S.kind===`waiting-room`)?`waiting-room`:hl[S.kind],T=w?u.find(e=>e.kind===w):void 0;return(0,V.jsxs)(am,{sx:{display:`flex`,flexDirection:`column`,height:`100vh`},children:[!a&&(0,V.jsx)(lP,{attempts:o}),Lc(i.session.pending)&&!S.bare&&(0,V.jsx)(oP,{pending:i.session.pending,onReinitialise:()=>void c({type:`reset`})}),m.length>0&&!S.bare&&(0,V.jsx)(sP,{errors:m}),b&&(0,V.jsx)(jd,{position:`static`,color:`default`,elevation:1,children:(0,V.jsxs)(yy,{variant:`dense`,sx:{gap:2},children:[(0,V.jsx)(Z,{variant:`subtitle2`,sx:{flex:1},children:`Configure the session, then start it`}),(0,V.jsx)(_m,{variant:`contained`,"data-testid":`play`,onClick:()=>void c({type:`play`}),children:`Play`})]})}),(0,V.jsx)(am,{sx:{flex:1,minHeight:0,position:`relative`},children:S.kind===`guide`?(0,V.jsx)(HM,{locale:i.session.locale,reloads:s.reloads}):S.kind===`print`?(0,V.jsx)(GM,{state:i}):T?(0,V.jsx)(HN,{surface:T,viewer:C.viewer,feed:{kind:`operator`,state:i,overlays:f,...S.kind===`presentation`?{sessionless:S.preview===!0}:{},roundProcessing:s.processing.has(-1)||C.viewer.teamIndex!==void 0&&s.processing.has(C.viewer.teamIndex),send:c},mode:e,resolved:t,onModeChange:n,rejection:s.rejection,hookFailure:s.hookFailure}):(0,V.jsx)(pP,{kind:w??`session`})}),!S.bare&&(0,V.jsx)(hb,{state:i,route:S,inSetup:b,configurable:y,connected:a,transients:s,mode:e,onModeChange:n,send:c}),(0,V.jsx)(Zv,{open:g,autoHideDuration:4e3,onClose:()=>_(!1),anchorOrigin:{vertical:`top`,horizontal:`center`},children:(0,V.jsx)(xd,{severity:`info`,"data-testid":`restarted-notice`,children:`Settings changed, game restarted`})})]})}function oP({pending:e,onReinitialise:t}){return(0,V.jsxs)(xd,{severity:`warning`,square:!0,"data-testid":`pending-changes`,sx:{borderRadius:0,py:.25},action:(0,V.jsx)(_m,{size:`small`,color:`inherit`,"data-testid":`reinitialise`,onClick:t,children:`Re-initialise`}),children:[(0,V.jsx)(`strong`,{children:Rc(e)}),`. `,zc(e),`. Re-initialising returns play to tick 0.`]})}function sP({errors:e}){return(0,V.jsxs)(xd,{severity:`error`,square:!0,"data-testid":`build-errors`,sx:{borderRadius:0,py:.25},children:[(0,V.jsxs)(`strong`,{children:["`sdk build` would refuse this package (",e.length===1?`one error`:`${e.length} errors`,`)`]}),`. It runs here anyway, so it can be fixed while you watch.`,e.map((e,t)=>(0,V.jsx)(Z,{variant:`body2`,sx:{fontFamily:`monospace`},children:e.message},t))]})}function cP({configurable:e,onReconfigure:t}){return(0,V.jsxs)(uy,{spacing:2,sx:{alignItems:`center`,justifyContent:`center`,height:`100vh`,p:4},children:[(0,V.jsxs)(xd,{severity:`info`,sx:{maxWidth:560},children:[(0,V.jsx)(Z,{gutterBottom:!0,children:`This session has already started.`}),(0,V.jsx)(Z,{variant:`body2`,color:`text.secondary`,children:e?`Settings are resolved when a session initialises, so changing them now would change nothing until the session starts again. Reconfiguring puts the session back to its setup step and returns every team to tick 0.`:`This game has no setup step.`})]}),(0,V.jsxs)(uy,{direction:`row`,spacing:1,children:[e&&(0,V.jsx)(_m,{variant:`contained`,"data-testid":`reconfigure`,onClick:t,children:`Reconfigure`}),(0,V.jsx)(_m,{href:`/`,children:`Back to the session`})]})]})}function lP({attempts:e}){return(0,V.jsxs)(xd,{severity:`warning`,square:!0,"data-testid":`disconnected`,sx:{borderRadius:0,py:.25},action:(0,V.jsx)(_m,{size:`small`,color:`inherit`,onClick:()=>location.reload(),children:`Reload`}),children:[`Disconnected from the session — nothing on this page is live.`,e>1?` Retrying (${e}).`:` Retrying…`]})}function uP(){return(0,V.jsxs)(uy,{spacing:2,sx:{alignItems:`center`,justifyContent:`center`,height:`100vh`,p:4},children:[(0,V.jsxs)(xd,{severity:`info`,sx:{maxWidth:560},children:[(0,V.jsx)(Z,{gutterBottom:!0,children:`The scenario editor opens on a scenario.`}),(0,V.jsxs)(Z,{variant:`body2`,color:`text.secondary`,children:[`Open the dev drawer (press `,(0,V.jsx)(`kbd`,{children:"`"}),`) and use the Scenario tab:`,` `,(0,V.jsx)(`strong`,{children:`Add scenario`}),` to start a new one, or `,(0,V.jsx)(`strong`,{children:`Edit`}),` on an existing one. An editor with no scenario behind it has nowhere to save what you do in it.`]})]}),(0,V.jsx)(_m,{href:`/`,children:`Back to the session`})]})}function dP({connected:e,attempts:t}){let n=!e&&t>=2,r=$o().palette.mode===`dark`;return(0,V.jsxs)(uy,{spacing:2,sx:{alignItems:`center`,justifyContent:`center`,height:`100vh`,p:4},children:[(0,V.jsx)(am,{component:`img`,src:r?Jy:Yy,alt:`Serious Gaming`,sx:{width:72,height:72}}),!n&&(0,V.jsx)(Z,{color:`text.secondary`,children:e?`Loading the session…`:`Connecting to the session…`}),n&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(xd,{severity:`warning`,sx:{maxWidth:620},children:[(0,V.jsxs)(Z,{gutterBottom:!0,children:[`Nothing is answering at`,` `,(0,V.jsxs)(`code`,{children:[location.host,`/ws`]}),`.`]}),(0,V.jsxs)(Z,{variant:`body2`,color:`text.secondary`,component:`div`,children:[`This page loaded, so something is serving it — most likely an older dev server still holding this port. Check two things:`,(0,V.jsxs)(`ul`,{style:{marginBottom:0},children:[(0,V.jsxs)(`li`,{children:[`The address your server actually printed. A port already in use makes it move to the next one, so it may be on`,` `,(0,V.jsx)(`code`,{children:Number(location.port||80)+1})]}),(0,V.jsxs)(`li`,{children:[`Whether an old one is still running:`,` `,(0,V.jsx)(`code`,{children:`pnpm run sdk dev status`}),`, and`,` `,(0,V.jsx)(`code`,{children:`pnpm run sdk dev stop`}),` to end it`]})]})]})]}),(0,V.jsx)(_m,{variant:`outlined`,onClick:()=>location.reload(),children:`Try again`})]})]})}function fP({resolution:e,bare:t,onAddParticipant:n}){let r=e.teamIndex+1;return(0,V.jsxs)(uy,{spacing:2,sx:{alignItems:`center`,justifyContent:`center`,height:`100vh`,p:4},"data-testid":`no-such-participant`,children:[(0,V.jsx)(xd,{severity:`warning`,sx:{maxWidth:560},children:e.kind===`no-such-team`?(0,V.jsxs)(Z,{gutterBottom:!0,children:[`This session has no team `,r,`. It may have been removed.`]}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(Z,{gutterBottom:!0,children:[`Team `,r,` has`,` `,e.held===0?`no participants`:e.held===1?`one participant`:`${e.held} participants`,`, and this URL asks for participant `,e.slot,`.`]}),(0,V.jsx)(Z,{variant:`body2`,color:`text.secondary`,children:`A second tab is not a second participant. Add one, then open their surface: a participant is who a write is attributed to, and a surface with nobody behind it cannot submit one.`})]})}),e.kind===`no-such-participant`&&n&&(0,V.jsx)(_m,{variant:`contained`,onClick:n,"data-testid":`add-participant`,children:`Add participant`}),(0,V.jsxs)(_m,{size:`small`,href:Wc({kind:`observer`,teamIndex:e.teamIndex,bare:t}),children:[`Watch team `,r,` without joining`]})]})}function pP({kind:e}){return(0,V.jsxs)(uy,{spacing:2,sx:{alignItems:`center`,justifyContent:`center`,height:`100%`,p:4},children:[(0,V.jsxs)(xd,{severity:`info`,sx:{maxWidth:560},children:[(0,V.jsxs)(Z,{gutterBottom:!0,children:[`This package wires no `,(0,V.jsx)(`strong`,{children:e}),` surface.`]}),(0,V.jsx)(Z,{variant:`body2`,color:`text.secondary`,children:`A game supplies its own facilitator and player surfaces; the dev server renders them rather than substituting a console of its own, so there is nothing to show until the package fills that slot.`})]}),(0,V.jsx)(_m,{href:`/`,size:`small`,children:`Back to the session`})]})}function mP(){let[e,t]=(0,E.useState)(()=>localStorage.getItem(`theme`)??`light`),n=PN(e),r=(0,E.useMemo)(()=>NN(n),[n]);return(0,V.jsxs)(Ac,{theme:r,children:[(0,V.jsx)(ds,{}),(0,V.jsx)(ab,{children:(0,V.jsx)(fb,{children:(0,V.jsx)(nP,{mode:e,resolved:n,onModeChange:e=>{localStorage.setItem(`theme`,e),t(e)}})})})]})}(0,Ic.createRoot)(document.getElementById(`root`)).render((0,V.jsx)(E.StrictMode,{children:(0,V.jsx)(mP,{})}));
|
|
203
|
+
`}),n}function DM(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function OM(e,t){let n=SM(e,t),r=n.one(e,void 0),i=yM(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
|
|
204
|
+
`},i)),a}function kM(e,t){return e&&`run`in e?async function(n,r){let i=OM(n,{file:r,...t});await e.run(i,r)}:function(n,r){return OM(n,{file:r,...e||t})}}var AM=[],jM={allowDangerousHtml:!0},MM=/^(https?|ircs?|mailto|xmpp)$/i,NM=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function PM(e){let t=FM(e),n=IM(e);return LM(t.runSync(t.parse(n),n),e)}function FM(e){let t=e.rehypePlugins||AM,n=e.remarkPlugins||AM,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...jM}:jM;return ak().use(AO).use(n).use(kM,r).use(t)}function IM(e){let t=e.children||``,n=new ZO;return typeof t==`string`?n.value=t:``+t,n}function LM(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||RM;for(let e of NM)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return rw(e,l),nj(e,{Fragment:V.Fragment,components:i,ignoreInvalidStyle:!0,jsx:V.jsx,jsxs:V.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in wj)if(Object.hasOwn(wj,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=wj[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function RM(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||MM.test(e.slice(0,t))?e:``}var zM={note:{label:`Note`,palette:`info`,icon:(0,V.jsx)(Kk,{fontSize:`small`})},warning:{label:`Warning`,palette:`warning`,icon:(0,V.jsx)(Zk,{fontSize:`small`})},tip:{label:`Tip`,palette:`success`,icon:(0,V.jsx)(qk,{fontSize:`small`})},say:{label:`Say`,palette:`primary`,icon:(0,V.jsx)(Jk,{fontSize:`small`})},do:{label:`Do`,palette:`secondary`,icon:(0,V.jsx)(Yk,{fontSize:`small`})},timing:{label:`Timing`,palette:`info`,icon:(0,V.jsx)(Xk,{fontSize:`small`})}};function BM({type:e,children:t}){let n=zM[e];return(0,V.jsxs)(am,{sx:e=>({my:2,px:2,py:1.5,borderLeft:3,borderColor:`${n.palette}.main`,borderRadius:1,bgcolor:gi(e.palette[n.palette].main,.08),"& p:first-of-type":{mt:0},"& p:last-of-type":{mb:0}}),"data-testid":`guide-admonition-${e}`,children:[(0,V.jsxs)(Z,{variant:`overline`,component:`p`,sx:{display:`flex`,alignItems:`center`,gap:.75,fontWeight:600,lineHeight:1.5,mb:.5,color:`${n.palette}.main`},children:[n.icon,n.label]}),t]})}function VM(e){return`/api/guide/assets/${e.split(`/`).map(encodeURIComponent).join(`/`)}`}function HM({body:e,locale:t}){let n=Wk(e);return n.ok?n.kind===`file`?(0,V.jsxs)(am,{component:`figure`,sx:{my:2,mx:0,maxWidth:720},"data-testid":`guide-video-file`,children:[(0,V.jsxs)(am,{component:`video`,controls:!0,preload:`metadata`,playsInline:!0,src:VM(n.src),poster:n.poster?VM(n.poster):void 0,"aria-label":n.title,sx:{display:`block`,width:`100%`,"@media print":{display:`none`}},children:[n.captions&&(0,V.jsx)(`track`,{kind:`captions`,src:VM(n.captions),srcLang:t,label:t,default:!0}),n.title]}),(0,V.jsxs)(am,{sx:{display:`none`,"@media print":{display:`block`}},children:[n.poster&&(0,V.jsx)(am,{component:`img`,src:VM(n.poster),alt:``,sx:{display:`block`,maxWidth:`100%`}}),n.title&&(0,V.jsx)(Z,{component:`figcaption`,variant:`body2`,children:n.title})]})]}):(0,V.jsx)(am,{sx:{my:2,position:`relative`,aspectRatio:`16 / 9`,maxWidth:720},"data-testid":`guide-video-embed`,children:(0,V.jsx)(am,{component:`iframe`,src:n.embedUrl,title:`${n.provider} video`,sandbox:`allow-scripts allow-same-origin allow-presentation`,allow:`encrypted-media; fullscreen; picture-in-picture`,referrerPolicy:`strict-origin-when-cross-origin`,sx:{position:`absolute`,inset:0,width:`100%`,height:`100%`,border:0}})}):(0,V.jsxs)(xd,{severity:`error`,sx:{my:2},"data-testid":`guide-video-error`,children:[`Video block error: `,n.error]})}function UM(e){return e.children.map(e=>e.type===`text`?e.value:e.type===`element`?UM(e):``).join(``)}function WM({markdown:e,chapterFile:t,locale:n,settings:r}){return(0,V.jsx)(PM,{remarkPlugins:[VD,WS,[Ok,{settings:r,locale:n}],_k,vk,[Pk,{chapterFile:t}]],urlTransform:e=>{let r=RM(e);if(!r)return;if(/^[a-z][a-z0-9+.-]*:/i.test(r)||r.startsWith(`//`)||r.startsWith(`#`)||r.startsWith(`/`))return r;let i=new URL(`/api/guide/content/${n}/${t}`,window.location.origin),a=new URL(r,i);if(a.origin===window.location.origin&&a.pathname.startsWith(`/api/guide/`))return a.pathname+a.search},components:{pre({node:e,children:t,...r}){let i=e?.children[0];return i&&i.type===`element`&&i.tagName===`code`&&Array.isArray(i.properties?.className)&&i.properties.className.includes(`language-video`)?(0,V.jsx)(HM,{body:UM(i),locale:n}):(0,V.jsx)(`pre`,{...r,children:t})},span(e){let{node:t,children:n,...r}=e;return typeof r[`data-guide-error`]==`string`?(0,V.jsx)(am,{component:`span`,"data-testid":`guide-setting-error`,sx:{color:`error.main`,fontStyle:`italic`},children:n}):(0,V.jsx)(`span`,{...r,children:n})},div(e){let{node:t,children:n,...r}=e,i=r;if(typeof i[`data-guide-error`]==`string`)return(0,V.jsx)(xd,{severity:`error`,sx:{my:2},"data-testid":`guide-setting-error`,children:n});let a=i[`data-admonition`];if(typeof a==`string`&&gk(a))return(0,V.jsx)(BM,{type:a,children:n});let o=i[`data-admonition-unknown`];return typeof o==`string`?(0,V.jsxs)(xd,{severity:`error`,sx:{my:2},"data-testid":`guide-admonition-unknown`,children:[`Unknown admonition type ":::`,o,`"`]}):(0,V.jsx)(`div`,{...e})},a({node:e,children:t,href:n,...r}){let i=typeof n==`string`&&/^https?:\/\//.test(n);return(0,V.jsx)(`a`,{href:n,...r,...i?{target:`_blank`,rel:`noreferrer noopener`}:{},children:t})}},children:e})}function GM(e){let t=e.replace(/\.md$/,``).replace(/^\d+[-_. ]*/,``).replace(/[-_]+/g,` `).trim();return t.charAt(0).toUpperCase()+t.slice(1)}function KM({locale:e,reloads:t}){let n=new URLSearchParams(window.location.search),[r,i]=(0,E.useState)(void 0),[a,o]=(0,E.useState)(n.get(`locale`)??e),[s,c]=(0,E.useState)(n.get(`chapter`)),[l,u]=(0,E.useState)(``);(0,E.useEffect)(()=>{fetch(`/api/guide`).then(e=>e.json()).then(e=>i(e.guide))},[t]);let d=(0,E.useMemo)(()=>Object.keys(r?.locales??{}),[r]),f=(0,E.useMemo)(()=>r?Wb(r.locales,r.chapters,a):[],[r,a]),p=(0,E.useMemo)(()=>f.map(e=>e.file),[f]),m=f.find(e=>e.file===s)?.locale??a;(0,E.useEffect)(()=>{if(r){if(p.length===0)return c(null);s&&p.includes(s)||c(p[0])}},[r,p,s]),(0,E.useEffect)(()=>{if(!r||!s)return u(``);let e=!0;return fetch(`/api/guide/content/${encodeURIComponent(m)}/${encodeURIComponent(s)}`).then(e=>e.ok?e.text():`This chapter could not be read.`).then(t=>{e&&u(t)}),()=>{e=!1}},[r,m,s,t]);let h=(0,E.useMemo)(()=>s&&l&&r?Fk(s,l,{settings:r.settings,locale:m}):[],[s,l,r,m]);return r===void 0?(0,V.jsx)(uy,{sx:{alignItems:`center`,justifyContent:`center`,height:`100%`},children:(0,V.jsx)(rd,{size:28})}):r===null?(0,V.jsx)(uy,{sx:{alignItems:`center`,justifyContent:`center`,height:`100%`,p:4},children:(0,V.jsx)(Z,{color:`text.secondary`,children:`This package declares no facilitator guide, or none of its chapters applies to this session.`})}):(0,V.jsxs)(uy,{direction:`row`,sx:{height:`100%`},children:[(0,V.jsxs)(am,{sx:{width:280,borderRight:1,borderColor:`divider`,overflow:`auto`,"@media print":{display:`none`}},children:[d.length>1&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(am,{sx:{p:2},children:(0,V.jsx)(Bv,{size:`small`,fullWidth:!0,value:d.includes(a)?a:d[0]??``,onChange:e=>o(e.target.value),children:d.map(e=>(0,V.jsx)($_,{value:e,children:r.locales[e]?.name??e},e))})}),(0,V.jsx)(Nh,{})]}),(0,V.jsxs)(Rg,{dense:!0,children:[p.map(e=>(0,V.jsx)(Hg,{selected:e===s,onClick:()=>c(e),children:(0,V.jsx)(Jg,{primary:GM(e)})},e)),p.length===0&&(0,V.jsx)(am,{sx:{px:2,py:1},children:(0,V.jsx)(Z,{variant:`body2`,color:`text.secondary`,children:`This guide has no chapters yet.`})})]}),h.some(e=>e.depth>1)&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Nh,{}),(0,V.jsx)(Z,{variant:`overline`,color:`text.secondary`,sx:{display:`block`,px:2,pt:1.5},children:`On this page`}),(0,V.jsx)(Rg,{dense:!0,disablePadding:!0,sx:{pb:2},children:h.filter(e=>e.depth>1).map(e=>(0,V.jsx)(Hg,{dense:!0,sx:{pl:2+(e.depth-2)*1.5,py:.25},onClick:()=>document.getElementById(e.id)?.scrollIntoView({block:`start`}),children:(0,V.jsx)(Jg,{primary:e.text,slotProps:{primary:{variant:`body2`,color:`text.secondary`}}})},e.id))})]})]}),(0,V.jsx)(am,{sx:{flex:1,minWidth:0,overflow:`auto`},children:(0,V.jsxs)(am,{"data-testid":`guide-content`,sx:{maxWidth:780,mx:`auto`,px:4,py:3,"& img":{maxWidth:`100%`},"& pre":{p:2,borderRadius:1,overflow:`auto`,bgcolor:`action.hover`},"& table":{borderCollapse:`collapse`,width:`100%`},"& th, & td":{border:1,borderColor:`divider`,px:1,py:.5},"& h1, & h2, & h3":{scrollMarginTop:16},"@media print":{maxWidth:`none`,px:0,py:0}},children:[s&&m!==a&&(0,V.jsxs)(xd,{severity:`info`,"data-testid":`guide-untranslated`,sx:{mb:2,"@media print":{display:`none`}},children:[`This chapter is not yet translated into`,` `,r.locales[a]?.name??a,`, so it is shown in`,` `,r.locales[m]?.name??m,`.`]}),s&&(0,V.jsx)(WM,{markdown:l,chapterFile:s,locale:m,settings:r.settings})]})})]})}function qM({team:e,bare:t}){return e?e.participants.length===0?(0,V.jsxs)(JM,{children:[(0,V.jsxs)(uy,{spacing:1,sx:{alignItems:`center`,maxWidth:420},children:[(0,V.jsx)(Z,{variant:`overline`,color:`text.secondary`,children:e.name}),(0,V.jsx)(Z,{variant:`h5`,children:`Nobody is on this team yet`}),(0,V.jsxs)(Z,{color:`text.secondary`,sx:{textAlign:`center`},children:[`Add a participant from the dev drawer, or with`,` `,(0,V.jsxs)(`code`,{children:[`sdk participant add --team `,e.index+1]}),`, and they will be listed here.`]})]}),(0,V.jsx)(_m,{size:`small`,href:Wc({kind:`observer`,teamIndex:e.index,bare:t}),children:`Watch without joining`})]}):(0,V.jsxs)(JM,{children:[(0,V.jsxs)(uy,{spacing:1,sx:{alignItems:`center`},children:[(0,V.jsx)(Z,{variant:`overline`,color:`text.secondary`,children:e.name}),(0,V.jsx)(Z,{variant:`h5`,children:`Who are you?`})]}),(0,V.jsx)(uy,{spacing:1.5,sx:{width:`100%`,maxWidth:420},children:e.participants.map((n,r)=>(0,V.jsx)(xm,{variant:`outlined`,"data-testid":`join-participant`,children:(0,V.jsxs)(Dm,{href:Wc({kind:`player`,teamIndex:e.index,participant:r+1,bare:t}),sx:{p:2},children:[(0,V.jsx)(Z,{variant:`subtitle1`,children:n.name}),(0,V.jsxs)(Z,{variant:`body2`,color:`text.secondary`,children:[`Participant `,r+1]})]})},n.id))}),(0,V.jsx)(_m,{size:`small`,href:Wc({kind:`observer`,teamIndex:e.index,bare:t}),children:`Watch without joining`})]}):(0,V.jsxs)(JM,{children:[(0,V.jsx)(Z,{color:`text.secondary`,children:`This session has no such team. It may have been removed.`}),(0,V.jsx)(_m,{href:`/`,children:`Back to the session`})]})}function JM({children:e}){return(0,V.jsx)(uy,{spacing:3,sx:{alignItems:`center`,justifyContent:`center`,height:`100%`,p:4,bgcolor:`background.default`},children:(0,V.jsx)(am,{sx:{display:`contents`},children:e})})}function YM({state:e}){let t=new URLSearchParams(window.location.search).get(`team`),n=t?e.teams.filter(e=>e.teamId===t):e.teams;return(0,E.useEffect)(()=>{let t=document.title;return document.title=`${e.game.name} — team sheets`,()=>{document.title=t}},[e.game.name]),(0,V.jsxs)(am,{"data-testid":`print-sheets`,sx:{height:`100%`,overflow:`auto`,bgcolor:`background.default`,"@media print":{height:`auto`,overflow:`visible`}},children:[(0,V.jsxs)(uy,{direction:`row`,spacing:2,sx:{alignItems:`center`,p:2,"@media print":{display:`none`}},children:[(0,V.jsx)(Z,{variant:`h6`,sx:{flex:1},children:`Team sheets`}),(0,V.jsx)(_m,{variant:`contained`,onClick:()=>window.print(),children:`Print`})]}),n.map(t=>(0,V.jsxs)(am,{sx:{m:2,p:4,bgcolor:`background.paper`,border:1,borderColor:`divider`,borderRadius:1,"@media print":{breakAfter:`page`,breakInside:`avoid`,border:0,m:0}},children:[(0,V.jsx)(Z,{variant:`overline`,color:`text.secondary`,children:e.game.name}),(0,V.jsx)(Z,{variant:`h3`,gutterBottom:!0,children:t.name}),(0,V.jsx)(Nh,{sx:{my:2}}),(0,V.jsx)(Z,{variant:`subtitle2`,gutterBottom:!0,children:`Open your screen at`}),(0,V.jsx)(Z,{sx:{fontFamily:`monospace`,fontSize:18,mb:3,wordBreak:`break-all`},children:`${window.location.origin}${Wc({kind:`player`,teamIndex:t.index,participant:1})}`}),(0,V.jsx)(Z,{variant:`subtitle2`,gutterBottom:!0,children:`On this team`}),(0,V.jsxs)(uy,{spacing:.5,children:[t.participants.map((e,n)=>(0,V.jsxs)(Z,{children:[n+1,`. `,e.name,(0,V.jsx)(Z,{component:`span`,variant:`caption`,color:`text.secondary`,sx:{ml:1,fontFamily:`monospace`},children:Wc({kind:`player`,teamIndex:t.index,participant:n+1})})]},e.id)),t.participants.length===0&&(0,V.jsx)(Z,{color:`text.secondary`,children:`Nobody yet.`})]})]},t.teamId))]})}var XM={game:new Set([`updateData`,`requestTick`,`renameOwnTeam`,`renameSelf`]),"waiting-room":new Set([`updateData`,`requestTick`,`renameOwnTeam`,`renameSelf`]),session:new Set([`updateSessionData`,`updateSharedData`,`requestTick`,`undoTick`,`resetGame`,`resetWalkthrough`,`setWaitingRoom`,`setLocale`,`createTeam`,`renameTeam`,`renameParticipant`,`moveParticipant`,`deleteTeam`,`pauseTimer`,`resumeTimer`,`extendTick`]),setup:new Set([`updateSettings`,`requestPlay`]),"scenario-editor":new Set([`updateSettings`]),presentation:new Set},ZM={setWaitingRoom:`The waiting room is session-wide, so setWaitingRoom takes no teamId`,renameOwnTeam:`renameOwnTeam renames the caller's own team, which the host resolves; it takes no teamId`,resetWalkthrough:`A walkthrough holds one team, so resetWalkthrough takes no teamId`,setLocale:`The locale is the session's, so setLocale takes no teamId`,renameSelf:`renameSelf renames the caller, whom the host resolves; it takes no teamId`},QM={game:new Set([`callEndpoint`,`getPastState`,`getAllTeamsParticipants`]),"waiting-room":new Set([`callEndpoint`,`getPastState`,`getAllTeamsParticipants`]),session:new Set([`callEndpoint`,`getPastState`]),setup:new Set([`callEndpoint`]),"scenario-editor":new Set([`callEndpoint`]),presentation:new Set([`getPastState`])};function $M(e){return e.teamIndex===void 0?{}:{teamIndex:e.teamIndex}}function eN(e){return e.participantId===void 0?{}:{participantId:e.participantId,teamId:`team-${(e.teamIndex??0)+1}`}}function tN(e){return e.role===void 0?{}:{viewerRole:e.role}}function nN(e){return{...$M(e),...eN(e),...tN(e)}}function rN(e){let t=typeof e==`string`?/^team-([1-9]\d*)$/.exec(e):null;return t?Number(t[1])-1:-1}function iN(e,t){return e.teamId===void 0?t:{teamIndex:rN(e.teamId)}}function aN(e){return typeof e==`object`&&!!e&&`refused`in e}function oN(e,t,n){if(!XM[t.kind].has(e.type))return null;if(e.teamId!==void 0&&e.type in ZM)return{refused:ZM[e.type]};if(e.type===`renameSelf`&&e.participantId!==void 0)return{refused:`renameSelf renames the caller, whom the host resolves; it takes no participantId`};let r=$M(n),i=eN(n),a=tN(n);switch(e.type){case`updateData`:return{type:`updateContext`,uiIdentifier:t.identifier,payload:e.payload,...e.deletes?{deletes:e.deletes}:{},...r,...i,...a};case`updateSessionData`:return{type:`updateContext`,payload:e.payload,teamIndex:rN(e.teamId),sessionUiIdentifier:t.identifier,...e.deletes?{deletes:e.deletes}:{}};case`updateSharedData`:return{type:`updateSharedContext`,uiIdentifier:t.identifier,payload:e.payload,...e.deletes?{deletes:e.deletes}:{}};case`updateSettings`:return t.kind===`scenario-editor`?{type:`updateScenarioDraft`,scenarioId:n.scenario??null,payload:e.payload,uiIdentifier:t.identifier}:{type:`updateSettings`,payload:e.payload,uiIdentifier:t.identifier};case`requestTick`:return{type:`tick`,...iN(e,r),...t.kind===`session`?{}:{...i,...a}};case`undoTick`:return{type:`undo`,...iN(e,r)};case`resetGame`:return{type:`reset`,...iN(e,{})};case`setWaitingRoom`:return{type:`setWaitingRoom`,open:e.open===!0};case`setLocale`:return{type:`setLocale`,locale:String(e.locale)};case`resetWalkthrough`:return{type:`resetWalkthrough`};case`createTeam`:return{type:`addTeam`,...typeof e.name==`string`?{name:e.name}:{}};case`renameTeam`:return{type:`renameTeam`,teamId:String(e.teamId),name:String(e.name)};case`renameOwnTeam`:return{type:`renameOwnTeam`,name:String(e.name),...i};case`renameSelf`:return{type:`renameSelf`,name:String(e.name),...i};case`renameParticipant`:return{type:`renameParticipant`,participantId:String(e.participantId),name:String(e.name)};case`moveParticipant`:return{type:`moveParticipant`,participantId:String(e.participantId),teamId:String(e.teamId)};case`deleteTeam`:return{type:`removeTeam`,teamIndex:rN(e.teamId)};case`requestPlay`:return{type:`play`};case`pauseTimer`:return{type:`pauseTimer`,...iN(e,r)};case`resumeTimer`:return{type:`resumeTimer`,...iN(e,r)};case`extendTick`:return{type:`extendTick`,byMs:Number(e.byMs??0),...iN(e,r)};default:return null}}function sN(e,t,n){if(!QM[t.kind].has(e.type))return null;switch(e.type){case`callEndpoint`:return{type:`callEndpoint`,endpointIdentifier:String(e.endpointIdentifier),request:e.request,uiIdentifier:t.identifier,...nN(n),...t.kind===`scenario-editor`?{scenarioId:n.scenario??null}:{}};case`getPastState`:return{type:`getPastState`,query:e.query,uiIdentifier:t.identifier,...n.teamIndex===void 0?{}:{teamId:`team-${n.teamIndex+1}`}};case`getAllTeamsParticipants`:return{type:`getAllTeamsParticipants`,uiIdentifier:t.identifier};default:return null}}var cN={game:{required:[`stateChanged`,`setSettings`,`setTheme`,`setLocale`,`setAssetUrls`,`setParticipant`],alsoSent:[`setTimer`,`setViewerRole`,`setOwnTeam`,`setOwnTeamJoinLink`,`setParticipantList`,`setTeamList`,`setRunKind`,`setScenarioName`,`setRoundProcessing`,`setCrossTeamData`,`themePreferenceChanged`],isPlayerSurface:!0},"waiting-room":{required:[`stateChanged`,`setSettings`,`setTheme`,`setLocale`,`setAssetUrls`,`setParticipant`],alsoSent:[`setTimer`,`setViewerRole`,`setOwnTeam`,`setOwnTeamJoinLink`,`setParticipantList`,`setTeamList`,`setRunKind`,`setScenarioName`,`setCrossTeamData`,`themePreferenceChanged`],isPlayerSurface:!0},session:{required:[`setSessionMeta`,`setSessionData`,`setSettings`,`setTheme`,`setLocale`,`setAssetUrls`,`setTeamConfiguration`],alsoSent:[`setTeamList`,`setParticipantList`,`setTeamLinks`,`setAvailableOverlays`,`setRunKind`,`setScenarioName`,`setWalkthroughLink`,`themePreferenceChanged`],isPlayerSurface:!1},presentation:{required:[`setPresentation`,`setSettings`,`setTheme`,`setLocale`,`setAssetUrls`],alsoSent:[`themePreferenceChanged`],isPlayerSurface:!1},setup:{required:[`setSettings`,`setTheme`,`setLocale`,`setAssetUrls`],alsoSent:[`themePreferenceChanged`],isPlayerSurface:!1},"scenario-editor":{required:[`setSettings`,`setTheme`,`setLocale`,`setAssetUrls`],alsoSent:[`themePreferenceChanged`],isPlayerSurface:!1}};function lN(e,t={}){let{required:n,isPlayerSurface:r}=cN[e];return!t.observer||!r?n:n.filter(e=>e!==`setParticipant`)}var uN=new Set([`callEndpoint`,`uploadBlob`,`getPastState`,`getAllTeamsParticipants`]),dN=class{options;host;logger;port=null;readyListener=null;loadListener=null;handshakeTimer=null;disposed=!1;lastSent=new Map;sticky=new Map;outbound=[];pending=new Map;requestCounter=0;constructor(e){this.options=e,this.host=e.window??globalThis.window,this.logger=e.logger??console,this.listenForReady()}get connected(){return this.port!==null}send(e){this.disposed||(this.lastSent.set(e.type,fN(e)),this.port?this.port.postMessage(e):this.outbound.push(e))}sendState(e){this.disposed||(this.sticky.set(e.type,e),this.lastSent.set(e.type,fN(e)),this.port?.postMessage(e))}sendIfChanged(e){return this.disposed||this.lastSent.get(e.type)===fN(e)?!1:(this.sendState(e),!0)}sendInitialBatch(e){let t=lN(this.options.surface,{observer:this.options.observer}),n=new Set(e.map(e=>e.type)),r=t.filter(e=>!n.has(e));if(r.length>0)throw Error(`Initial batch for a "${this.options.surface}" surface is missing ${r.join(`, `)}. The guest blocks its first paint on ${t.join(`, `)}.`);for(let t of e)this.sendState(t)}request(e,t=3e4){let n=`host-${++this.requestCounter}`;return new Promise((r,i)=>{let a=setTimeout(()=>{this.pending.delete(n),i(Error(`Guest did not answer "${e.type}" in ${t}ms`))},t);this.pending.set(n,{resolve:()=>{clearTimeout(a),r()},reject:e=>{clearTimeout(a),i(e)}}),this.send({...e,requestId:n})})}dispose(){this.disposed||(this.disposed=!0,this.clearHandshakeTimer(),this.readyListener&&=(this.host.removeEventListener(`message`,this.readyListener),null),this.loadListener&&=(this.options.iframe.removeEventListener?.(`load`,this.loadListener),null),this.closePort(),this.rejectPending(`Channel disposed`),this.options.onTeardown?.(`disposed`))}listenForReady(){let e=e=>{if(this.disposed)return;let t=e.data;if(!t||t.type!==`ready`||e.source!==this.options.iframe.contentWindow)return;if(e.origin!==this.options.iframeOrigin){this.logger.warn(`[${this.options.uiIdentifier}] ignoring a handshake from ${e.origin}; this frame is pinned to ${this.options.iframeOrigin}`);return}let n=t.protocolVersion;typeof n==`number`&&n!==4&&this.logger.warn(`[${this.options.uiIdentifier}] host↔iframe protocol version mismatch: iframe ${n}, host 4`),this.connect(t.signalsRendered===!0)};this.readyListener=e,this.host.addEventListener(`message`,e),this.armHandshakeTimer(),this.listenForLoads()}listenForLoads(){let{iframe:e}=this.options;if(!e.addEventListener)return;let t=()=>{this.disposed||(this.armHandshakeTimer(),this.port?.postMessage({type:`ping`}))};this.loadListener=t,e.addEventListener(`load`,t)}armHandshakeTimer(){this.clearHandshakeTimer();let e=this.options.handshakeTimeoutMs??1e4;this.handshakeTimer=setTimeout(()=>{this.handshakeTimer=null,!this.disposed&&(this.closePort(),this.options.onTeardown?.(`handshake-timeout`))},e)}connect(e){this.closePort(),this.rejectPending(`Connection reset`),this.lastSent.clear();let t=[...this.sticky.values()],n=new MessageChannel;this.port=n.port1,this.port.onmessage=e=>this.receive(e.data),this.port.start(),this.clearHandshakeTimer(),this.options.iframe.contentWindow?.postMessage({type:`init`,protocolVersion:4,sessionKey:this.options.sessionKey},this.options.iframeOrigin,[n.port2]);for(let e of t)this.sendState(e);let r=this.outbound;this.outbound=[];for(let e of r)this.port.postMessage(e);this.options.onConnect?.({signalsRendered:e})}closePort(){this.port&&=(this.port.onmessage=null,this.port.close(),null)}clearHandshakeTimer(){this.handshakeTimer!==null&&(clearTimeout(this.handshakeTimer),this.handshakeTimer=null)}rejectPending(e){for(let{reject:t}of this.pending.values())t(Error(e));this.pending.clear()}receive(e){if(e&&typeof e.type==`string`){switch(e.type){case`pong`:this.clearHandshakeTimer();return;case`rendered`:this.options.onRendered?.();return;case`refreshAssetAuth:response`:{let{requestId:t,ok:n,error:r}=e;if(typeof t!=`string`)return;let i=this.pending.get(t);this.pending.delete(t),n?i?.resolve():i?.reject(Error(r??`Asset auth refresh failed`));return}}uN.has(e.type)?this.answer(e):this.options.onMessage?.(e)}}async answer(e){let t=e.requestId;if(typeof t!=`string`){this.logger.warn(`[${this.options.uiIdentifier}] dropped a "${e.type}" with no requestId`);return}let n=`${e.type}:response`;try{let r=await this.dispatch(e);this.send({type:n,requestId:t,ok:!0,...r})}catch(r){this.send(e.type===`callEndpoint`?{type:n,requestId:t,ok:!1,...pN(r)}:{type:n,requestId:t,ok:!1,error:r instanceof Error?r.message:String(r)})}}async dispatch(e){let t=this.options.adapter,n={uiIdentifier:this.options.uiIdentifier,...this.options.origin};switch(e.type){case`callEndpoint`:if(!t?.callEndpoint)throw Error(`This host serves no endpoints`);return{response:await t.callEndpoint({endpointIdentifier:String(e.endpointIdentifier),request:e.request},n)};case`uploadBlob`:if(!t?.uploadBlob)throw Error(`This host stores no blobs`);return{reference:await t.uploadBlob({data:e.data,name:String(e.name),mimeType:String(e.mimeType)},n)};case`getPastState`:if(!t?.getPastState)throw Error(`This host serves no past state`);return{entries:await t.getPastState(e.query,n)};case`getAllTeamsParticipants`:return{participants:await t?.getAllTeamsParticipants?.(n)??[]};default:throw Error(`Unroutable request "${e.type}"`)}}};function fN(e){return typeof e!=`object`||!e?JSON.stringify(e)??`undefined`:Array.isArray(e)?`[${e.map(fN).join(`,`)}]`:`{${Object.entries(e).filter(([,e])=>e!==void 0).sort(([e],[t])=>e<t?-1:+(e>t)).map(([e,t])=>`${JSON.stringify(e)}:${fN(t)}`).join(`,`)}}`}function pN(e){let t=typeof e==`object`&&e?e.failure:void 0;return typeof t==`object`&&t&&typeof t.outcome?.kind==`string`&&Array.isArray(t.applied)?t:{outcome:{kind:`error`,message:e instanceof Error?e.message:String(e)},applied:[]}}var mN=[`primary`,`secondary`,`success`,`error`,`warning`,`info`];function hN(e){let t=e.trim().toLowerCase(),n=/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.exec(t);if(n){let e=n[1];e.length<=4&&(e=[...e].map(e=>e+e).join(``));let t=t=>parseInt(e.slice(t,t+2),16);return{r:t(0),g:t(2),b:t(4),a:e.length===8?t(6)/255:1}}let r=/^rgba?\(([^)]*)\)$/.exec(t);if(r){let e=r[1].split(/[\s,/]+/).filter(Boolean);if(e.length!==3&&e.length!==4)return null;let[t,n,i]=e.slice(0,3).map(e=>e.endsWith(`%`)?parseFloat(e)/100*255:parseFloat(e)),a=e[3],o=a===void 0?1:a.endsWith(`%`)?parseFloat(a)/100:parseFloat(a);return[t,n,i,o].some(e=>!Number.isFinite(e))?null:{r:gN(t,255),g:gN(n,255),b:gN(i,255),a:gN(o,1)}}return null}function gN(e,t){return Math.min(t,Math.max(0,e))}function _N(e,t){let n=(t,n)=>t*e.a+n*(1-e.a);return{r:n(e.r,t.r),g:n(e.g,t.g),b:n(e.b,t.b),a:1}}function vN({r:e,g:t,b:n}){let r=e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};return .2126*r(e)+.7152*r(t)+.0722*r(n)}function yN(e,t){let[n,r]=[vN(e),vN(t)].sort((e,t)=>t-e);return(n+.05)/(r+.05)}function bN({r:e,g:t,b:n}){let r=e=>Math.round(e).toString(16).padStart(2,`0`);return`#${r(e)}${r(t)}${r(n)}`}var xN={r:0,g:0,b:0,a:1},SN={r:255,g:255,b:255,a:1};function CN(e,t){let n=hN(e);if(!n)return bN(xN);let r=n.a<1?_N(n,SN):n,i=t===void 0?null:hN(t);if(i){let e=_N(i,r);if(yN(e,r)>=4.5)return bN(e)}return yN(xN,r)>=yN(SN,r)?bN(xN):bN(SN)}var wN={light:{background:`#ffffff`,surface:`#ffffff`,text:`#000000`},dark:{background:`#121212`,surface:`#1e1e1e`,text:`#ffffff`}};function TN(e){let{background:t,surface:n,text:r}=e;if(!t||!n)return;let i=hN(t),a=hN(n);if(!i||!a)return;let o=e=>e.a<1?_N(e,SN):e,s=[o(i),o(a)],c=e=>Math.min(...s.map(t=>yN(_N(e,t),t))),l=r===void 0?null:hN(r);if(l&&l.a===1&&c(l)>=4.5)return{background:t,surface:n,text:bN(l)};let u=c(xN)>=c(SN)?xN:SN;if(!(c(u)<4.5))return{background:t,surface:n,text:bN(u)}}function EN(e,t){let n=Object.fromEntries(mN.map(t=>[t,CN(e[t],e.contrastText?.[t])]));return{...Object.fromEntries(mN.map(t=>[t,e[t]])),contrastText:n,...TN(e)??wN[t]}}function DN(e){return{mode:e.mode,light:EN(e.light,`light`),dark:EN(e.dark,`dark`),brand:e.brand}}var ON={primary:{main:`#6B00FF`,contrastText:`#ffffff`},secondary:{main:`#17D1C7`,contrastText:`rgba(0,0,0,0.87)`},error:{main:`#DB324D`,contrastText:`#ffffff`},success:{main:`#00c894`,contrastText:`rgba(0,0,0,0.87)`},warning:{main:`#ffb65c`,contrastText:`rgba(0,0,0,0.87)`},info:{main:`#336BEB`,contrastText:`#ffffff`}},kN={primary:{main:`#BC8CFF`,contrastText:`rgba(0,0,0,0.87)`},secondary:{main:`#17D1C7`,contrastText:`rgba(0,0,0,0.87)`},error:{main:`#ef7a8e`,contrastText:`rgba(0,0,0,0.87)`},success:{main:`#00c894`,contrastText:`rgba(0,0,0,0.87)`},warning:{main:`#ffb65c`,contrastText:`rgba(0,0,0,0.87)`},info:{main:`#7d9bf2`,contrastText:`rgba(0,0,0,0.87)`}},AN=`#414042`,jN=`-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif`,MN=`"Work Sans", ${jN}`,NN=`Sora, ${jN}`;function PN(e){return{primary:e.primary.main,secondary:e.secondary.main,success:e.success.main,error:e.error.main,warning:e.warning.main,info:e.info.main,contrastText:{primary:e.primary.contrastText,secondary:e.secondary.contrastText,success:e.success.contrastText,error:e.error.contrastText,warning:e.warning.contrastText,info:e.info.contrastText}}}function FN(e,t){return DN(t?{mode:e,...t.theme}:{mode:e,light:PN(ON),dark:PN(kN),brand:{name:`Serious Gaming`}})}var IN=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function LN(e){return Xo({palette:e===`dark`?{mode:`dark`,...kN}:{mode:`light`,...ON,text:{primary:AN}},typography:{fontFamily:MN,...Object.fromEntries(IN.map(e=>[e,{fontFamily:NN}]))},components:{MuiButton:{styleOverrides:{root:{textTransform:`none`}}}}})}function RN(e){return e===`system`?window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:e}function zN(e,t){return{"Content-Type":e.mimeType,"X-Blob-Name":encodeURIComponent(e.name),"X-Blob-Mime":e.mimeType,"X-Blob-Retention":t===`setup`?`settings`:t===`scenario-editor`?`scenario`:`game`}}var BN=5e3,VN=[`allow-scripts`,`allow-same-origin`,`allow-forms`,`allow-downloads`,`allow-modals`,`allow-presentation`,`allow-popups`,`allow-popups-to-escape-sandbox`].join(` `),HN=[`clipboard-write`,`autoplay`,`screen-wake-lock`,`fullscreen`,`microphone`,`camera`,`geolocation`,`picture-in-picture`,`web-share`,`gamepad`,`window-management`,`speaker-selection`].join(`; `);function UN(e){return Object.assign(Error(e.outcome.message??e.outcome.kind),{failure:e})}function WN(e,t,n){return async r=>{let i=sN(r,e,t)??oN(r,e,t);return aN(i)?{ok:!1,outcome:{kind:`denied`,message:i.refused}}:i?n(i):null}}function GN(e,t,n){return JSON.stringify([e.kind,e.identifier,t.observer??null,t.teamIndex??null,t.participantId??null,t.role??null,n])}function KN({surface:e,viewer:t,feed:n,mode:r,resolved:i,onModeChange:a,rejection:o,hookFailure:s,onTeardown:c}){let l=n.kind===`view`?n.dispatch:WN(e,t,n.send),u=e.origin??window.location.origin,d=(0,E.useRef)(null),f=(0,E.useRef)(null),p=XN(n),m=(0,E.useRef)({dispatch:l,onModeChange:a,overlays:p});m.current={dispatch:l,onModeChange:a,overlays:p};let[h,g]=(0,E.useState)(!1),[_,v]=(0,E.useState)(!1),[y,b]=(0,E.useState)(!1),{selected:x}=ob(),{hold:S}=pb(),C=n.kind===`view`?n.sessionKey:Xc(n.state,e,{sessionless:n.sessionless===!0});return(0,E.useEffect)(()=>{let n=d.current;if(!n)return;let r;return r=new dN({iframe:n,surface:e.kind,uiIdentifier:e.identifier,iframeOrigin:u,sessionKey:C,adapter:{callEndpoint:async({endpointIdentifier:e,request:t})=>{let n=await m.current.dispatch({type:`callEndpoint`,endpointIdentifier:e,request:t});if(n&&`type`in n){if(n.type===`endpoint`)return n.response;if(n.type===`endpointFailure`)throw UN(n.failure)}throw UN({outcome:n&&`ok`in n&&!n.ok?n.outcome:{kind:`error`,message:`The endpoint did not answer`},applied:[]})},uploadBlob:async t=>{let n=await(await fetch(`/api/blobs`,{method:`POST`,headers:zN(t,e.kind),body:t.data})).json();if(!n.reference)throw Error(`The blob was not stored`);return n.reference},getPastState:async e=>{let t=await m.current.dispatch({type:`getPastState`,query:e});return t&&`type`in t&&t.type===`pastState`?t.entries:[]},getAllTeamsParticipants:async()=>{let e=await m.current.dispatch({type:`getAllTeamsParticipants`});return e&&`type`in e&&e.type===`participants`?e.participants:[]}},observer:t.observer===!0,onConnect:({signalsRendered:e})=>{g(!0),v(!e),b(!1)},onRendered:()=>v(!0),onTeardown:e=>{e===`handshake-timeout`&&(g(!1),b(!0),c?.())},onMessage:e=>{e.type===`setThemePreference`?m.current.onModeChange?.(e.preference):JN(r,e,m.current.dispatch,m.current.overlays)}}),f.current=r,()=>{r.dispose(),f.current=null,g(!1),v(!1)}},[e.identifier,e.kind,t.observer,t.teamIndex,t.participantId,t.role,C,S]),(0,E.useEffect)(()=>{let a=f.current;if(!a)return;let o={mode:i,preference:r,palette:FN(i,x)},s=n.kind===`view`?[...n.messages,...Zc(o)]:nl({surface:e,state:n.state,viewer:t,theme:o,origin:window.location.origin,assetOrigin:u,gameName:n.state.game.name,...n.overlays===void 0?{}:{overlays:n.overlays},...n.roundProcessing===void 0?{}:{roundProcessing:n.roundProcessing},...n.sessionless===void 0?{}:{sessionless:n.sessionless}});if(S===`surface`)for(let e of lb(s,S))a.sendIfChanged(e);else if(a.connected)for(let e of s)a.sendIfChanged(e);else a.sendInitialBatch(s)},[e,n,t,r,i,u,x,S]),(0,E.useEffect)(()=>{if(!h||_||S===`host`)return;let e=setTimeout(()=>v(!0),BN);return()=>clearTimeout(e)},[h,_,S]),(0,E.useEffect)(()=>{let e=f.current;e&&o&&(o.teamIndex===void 0||o.teamIndex===t.teamIndex)&&e.send({type:`validationRejected`,rejections:o.rejections})},[o?.nonce,o,t.teamIndex]),(0,E.useEffect)(()=>{let t=f.current;t&&s&&e.kind===`session`&&t.send({type:`hookFailed`,payload:s.payload})},[s?.nonce,s,e.kind]),(0,V.jsxs)(am,{sx:{position:`relative`,width:`100%`,height:`100%`},children:[(0,V.jsx)(am,{component:`iframe`,ref:d,title:e.identifier,src:`${u}${e.src}?expectedParentOrigin=${encodeURIComponent(window.location.origin)}`,sandbox:VN,allow:HN,sx:{width:`100%`,height:`100%`,border:0,display:`block`}},`${GN(e,t,C)}:${S}`),(!h||S===`host`||!_&&S!==`surface`)&&(0,V.jsx)(uy,{spacing:2,"data-testid":`surface-loading`,sx:{alignItems:`center`,justifyContent:`center`,position:`absolute`,inset:0,bgcolor:`background.default`},children:y?(0,V.jsx)(Z,{color:`text.secondary`,children:`This surface did not connect. Check its console for an error.`}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)($N,{brand:x,resolved:i}),(0,V.jsxs)(Z,{color:`text.secondary`,variant:`body2`,children:[`Loading `,e.identifier]})]})})]})}function qN(e,t,n){return e!==`facilitator-guide`&&e!==`print-sheets`&&e!==`presentation`?`"${String(e)}" is not a host overlay`:n.available.includes(e)?e===`print-sheets`&&t!==void 0&&n.teamIds!==void 0&&!n.teamIds.includes(String(t))?`There is no team "${String(t)}" to print`:null:`This host does not offer the "${e}" overlay for this game`}async function JN(e,t,n,r={available:[`facilitator-guide`,`print-sheets`,`presentation`]}){if(t.type===`setThemePreference`)return;if(t.type===`openHostOverlay`){let n=qN(t.overlay,t.target,r);n||YN(t.overlay,t.target),ZN(e,t,n?{ok:!1,outcome:{kind:`denied`,message:n}}:{ok:!0});return}let i;try{i=await n(t)}catch(e){i={ok:!1,outcome:{kind:`error`,message:e instanceof Error?e.message:`The command failed`}}}if(!i){ZN(e,t,{ok:!1,outcome:{kind:`denied`,message:`This host does not handle "${String(t.type)}"`}});return}let a=typeof t.requestId==`string`?t.requestId:null;a&&(`ok`in i?e.send(i.ok?{type:`mutation:response`,requestId:a,ok:!0,...i.committedAtTick===void 0?{}:{committedAtTick:i.committedAtTick}}:{type:`mutation:response`,requestId:a,ok:!1,outcome:i.outcome}):e.send({type:`mutation:response`,requestId:a,ok:!0}))}function YN(e,t){if(e===`facilitator-guide`)return window.open(`/guide`,`_blank`,`noreferrer`),!0;if(e===`print-sheets`){let e=typeof t==`string`?`?team=${encodeURIComponent(t)}`:``;return window.open(`/print${e}`,`_blank`,`noreferrer`),!0}return e===`presentation`&&(window.open(`/presentation`,`_blank`,`noreferrer`),!0)}function XN(e){if(e.kind===`operator`)return{available:e.overlays??ll(),teamIds:e.state.teams.map(e=>e.teamId)};let t=e.messages.find(e=>e.type===`setAvailableOverlays`),n=e.messages.find(e=>e.type===`setTeamList`);return{available:Array.isArray(t?.overlays)?t.overlays:[],...Array.isArray(n?.payload)?{teamIds:n.payload.map(e=>e.teamId)}:{}}}function ZN(e,t,n){typeof t.requestId==`string`&&e.send({type:`mutation:response`,requestId:t.requestId,...n})}function QN(e,t){return t===`dark`?e?.onDark??e?.onLight:e?.onLight??e?.onDark}function $N({brand:e,resolved:t}){let n=QN(e?.loader,t);if(n)return(0,V.jsx)(am,{component:`img`,src:n,alt:``,sx:{width:72,height:72}});let r=QN(e?.theme.brand?.logo,t),i=e?.theme[t].primary;return(0,V.jsxs)(V.Fragment,{children:[r&&(0,V.jsx)(am,{component:`img`,src:r,alt:e?.name??``,sx:{maxHeight:48,maxWidth:`min(320px, 80%)`,objectFit:`contain`}}),(0,V.jsx)(rd,{size:28,sx:i?{color:i}:void 0})]})}function eP({scenario:e,surface:t,state:n,mode:r,resolved:i,send:a,onModeChange:o,rejection:s}){let[c,l]=(0,E.useState)(!1),[u,d]=(0,E.useState)(!1),[f,p]=(0,E.useState)(null),m=e===``?null:e,h=n.scenarioDrafts?.some(e=>e.scenarioId===m)===!0,[g,_]=(0,E.useState)(null);(0,E.useEffect)(()=>{h||a({type:`editScenario`,scenarioId:m}).then(e=>{`ok`in e&&!e.ok&&_(e.outcome.message??`The scenario could not be opened`)})},[h,m,a]);let v=async()=>{l(!0),p(null);try{let t=await fetch(`/api/scenarios`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({identifier:e,overwrite:!0,draft:!0})});if(!t.ok){let e=await t.json();p(e.error??`The scenario could not be saved`);return}d(!0)}finally{l(!1)}};return(0,V.jsxs)(am,{sx:{display:`flex`,flexDirection:`column`,height:`100vh`},children:[(0,V.jsx)(jd,{position:`static`,color:`default`,elevation:1,children:(0,V.jsxs)(yy,{variant:`dense`,sx:{gap:2},children:[(0,V.jsxs)(uy,{sx:{flex:1},children:[(0,V.jsx)(Z,{variant:`subtitle2`,children:`Editing scenario`}),(0,V.jsx)(Z,{variant:`caption`,color:`text.secondary`,children:e})]}),u&&!f&&(0,V.jsx)(Z,{variant:`body2`,color:`success.main`,children:`Saved`}),(0,V.jsx)(_m,{variant:`contained`,"data-testid":`save-scenario`,disabled:c,onClick:()=>void v(),children:`Save`}),(0,V.jsx)(_m,{href:`/`,children:`Done`})]})}),(f??g)&&(0,V.jsx)(xd,{severity:`error`,sx:{borderRadius:0},children:f??g}),(0,V.jsx)(am,{sx:{flex:1,minHeight:0,position:`relative`},children:h?t?(0,V.jsx)(KN,{surface:t,viewer:m===null?{}:{scenario:m},feed:{kind:`operator`,state:n,send:e=>(e.type===`updateScenarioDraft`&&d(!1),a(e))},mode:r,resolved:i,onModeChange:o,rejection:s}):(0,V.jsxs)(uy,{spacing:2,sx:{alignItems:`center`,justifyContent:`center`,height:`100%`,p:4},children:[(0,V.jsxs)(xd,{severity:`info`,sx:{maxWidth:560},children:[(0,V.jsxs)(Z,{gutterBottom:!0,children:[`This game has no `,(0,V.jsx)(`strong`,{children:`scenario_editor`}),` slot.`]}),(0,V.jsxs)(Z,{variant:`body2`,color:`text.secondary`,children:[`A scenario editor is optional (§6.5). Without one there is nothing to author a scenario in here; the values can still be set with`,` `,(0,V.jsx)(`code`,{children:`sdk configure`}),` and captured from the Scenario tab, and an agent can edit a game's settings directly from their schemas.`]})]}),(0,V.jsx)(_m,{href:`/`,children:`Back to the session`})]}):(0,V.jsxs)(uy,{spacing:2,sx:{alignItems:`center`,justifyContent:`center`,height:`100%`},children:[(0,V.jsx)(rd,{size:28}),(0,V.jsxs)(Z,{color:`text.secondary`,variant:`body2`,children:[`Opening `,e||`the package settings`]})]})})]})}var tP={processing:new Set,errors:[],rejection:null,hookFailure:null,reloads:0,restarted:null},nP=new Set([`bundles-reloaded`,`reinitialised-on-change`,`logic-reloaded`]);function rP(e=`session`){let[t,n]=(0,E.useState)(null),[r,i]=(0,E.useState)(!1),[a,o]=(0,E.useState)(0),[s,c]=(0,E.useState)(tP),l=(0,E.useRef)(null),u=(0,E.useRef)(null),d=(0,E.useRef)(new Map),f=(0,E.useRef)(0);(0,E.useEffect)(()=>{let t=!1,r,a=()=>{let s=e===`walkthrough`?`?run=walkthrough`:``,f=new WebSocket(`${location.protocol===`https:`?`wss`:`ws`}://${location.host}/ws${s}`);l.current=f,f.onopen=()=>{i(!0),o(0),u.current!==null&&f.send(JSON.stringify({presence:u.current}))},f.onclose=()=>{i(!1),o(e=>e+1),t||(r=setTimeout(a,1e3))},f.onmessage=e=>{let t=JSON.parse(e.data);t.type===`result`?(d.current.get(t.requestId)?.(t.result),d.current.delete(t.requestId)):iP(t,n,c)}};return a(),()=>{t=!0,clearTimeout(r),l.current?.close()}},[e]);let p=(0,E.useCallback)(e=>{let t=l.current;if(!t||t.readyState!==WebSocket.OPEN)return Promise.resolve({ok:!1,outcome:{kind:`error`,message:`Not connected to the session`}});let n=`console-${++f.current}`;return new Promise(r=>{d.current.set(n,r),t.send(JSON.stringify({requestId:n,command:e}))})},[]),m=(0,E.useCallback)(e=>{if(u.current===e)return;u.current=e;let t=l.current;t&&t.readyState===WebSocket.OPEN&&t.send(JSON.stringify({presence:e}))},[]);return(0,E.useMemo)(()=>({state:t,connected:r,attempts:a,transients:s,send:p,announce:m}),[t,r,a,s,p,m])}function iP(e,t,n){switch(e.type){case`state`:t(e.state),nP.has(e.cause)&&n(t=>({...t,reloads:t.reloads+1,restarted:e.cause===`reinitialised-on-change`?{nonce:(t.restarted?.nonce??0)+1}:t.restarted}));return;case`round-processing`:n(t=>{let n=new Set(t.processing),r=e.teamIndex??-1;return e.processing?n.add(r):n.delete(r),{...t,processing:n}});return;case`error`:n(t=>({...t,errors:[...t.errors,`${e.source}: ${e.message}`],hookFailure:e.source.startsWith(`hook:`)?{payload:{signal:e.source.slice(5),teamId:e.teamId??``,message:e.message},nonce:(t.hookFailure?.nonce??0)+1}:t.hookFailure}));return;case`validation-rejected`:n(t=>({...t,rejection:{...e.teamIndex===void 0?{}:{teamIndex:e.teamIndex},rejections:e.rejections,nonce:(t.rejection?.nonce??0)+1}}));return}}function aP(){let[e,t]=(0,E.useState)(null),[n,r]=(0,E.useState)(!1),[i,a]=(0,E.useState)(0),[o,s]=(0,E.useState)(null),[c,l]=(0,E.useState)(null),u=(0,E.useRef)(null),d=(0,E.useRef)(new Map),f=(0,E.useRef)(0);(0,E.useEffect)(()=>{let e=!1,n,i=()=>{let o=encodeURIComponent(location.pathname+location.search),c=new WebSocket(`${location.protocol===`https:`?`wss`:`ws`}://${location.host}/ws/view?page=${o}`);u.current=c,c.onopen=()=>{r(!0),a(0)},c.onclose=()=>{r(!1),a(e=>e+1),e||(n=setTimeout(i,1e3))},c.onmessage=e=>{let n=JSON.parse(e.data);switch(n.type){case`view`:(0,Ap.flushSync)(()=>t({page:n.page,messages:n.messages}));return;case`result`:d.current.get(n.requestId)?.(n.result),d.current.delete(n.requestId);return;case`validation-rejected`:s(e=>({rejections:n.rejections,nonce:(e?.nonce??0)+1}));return;case`hookFailed`:l(e=>({payload:n.payload,nonce:(e?.nonce??0)+1}));return}}};return i(),()=>{e=!0,clearTimeout(n),u.current?.close()}},[]);let p=(0,E.useCallback)(e=>{let t=u.current;if(!t||t.readyState!==WebSocket.OPEN)return Promise.resolve({ok:!1,outcome:{kind:`error`,message:`Not connected to the session`}});let n=`view-${++f.current}`;return new Promise(r=>{d.current.set(n,r),t.send(JSON.stringify({requestId:n,message:e}))})},[]);return(0,E.useMemo)(()=>({view:e,connected:n,attempts:i,rejection:o,hookFailure:c,dispatch:p}),[e,n,i,o,c,p])}function oP(e){let t=(0,E.useMemo)(()=>Uc(location.pathname,location.search),[]);return _l(t)?(0,V.jsx)(sP,{...e}):(0,V.jsx)(lP,{...e,route:t})}function sP({mode:e,resolved:t,onModeChange:n}){let{view:r,connected:i,attempts:a,rejection:o,hookFailure:s,dispatch:c}=aP();if(!r)return(0,V.jsx)(hP,{connected:i,attempts:a});let{page:l,messages:u}=r;switch(l.status){case`redirect`:return location.replace(l.href),(0,V.jsx)(hP,{connected:i,attempts:a});case`configuring`:return(0,V.jsx)(cP,{children:`The facilitator is setting the session up. This page opens when it starts.`});case`closed`:return(0,V.jsx)(cP,{children:`This session has already started, so its configuration is closed.`});case`join`:return(0,V.jsx)(qM,{team:l.team??void 0,bare:!0});case`no-such-team`:return(0,V.jsx)(gP,{resolution:{kind:`no-such-team`,teamIndex:l.teamIndex},bare:!0});case`no-such-participant`:return(0,V.jsx)(gP,{resolution:{kind:`no-such-participant`,teamIndex:l.teamIndex,slot:l.slot,held:l.held},bare:!0});case`missing-surface`:return(0,V.jsx)(_P,{kind:l.kind});case`surface`:return(0,V.jsxs)(am,{sx:{display:`flex`,flexDirection:`column`,height:`100vh`},children:[!i&&(0,V.jsx)(pP,{attempts:a}),l.inSetup&&l.surface.kind===`setup`&&(0,V.jsx)(jd,{position:`static`,color:`default`,elevation:1,children:(0,V.jsxs)(yy,{variant:`dense`,sx:{gap:2},children:[(0,V.jsx)(Z,{variant:`subtitle2`,sx:{flex:1},children:`Configure the session, then start it`}),(0,V.jsx)(_m,{variant:`contained`,"data-testid":`play`,onClick:()=>void c({type:`requestPlay`}),children:`Play`})]})}),(0,V.jsx)(am,{sx:{flex:1,minHeight:0,position:`relative`},children:(0,V.jsx)(KN,{surface:l.surface,viewer:l.viewer,feed:{kind:`view`,messages:u,dispatch:c,sessionKey:l.sessionKey},mode:e,resolved:t,onModeChange:n,rejection:o,hookFailure:s})})]})}}function cP({children:e}){return(0,V.jsx)(uy,{sx:{alignItems:`center`,justifyContent:`center`,height:`100vh`,p:4},children:(0,V.jsx)(xd,{severity:`info`,sx:{maxWidth:560},"data-testid":`view-notice`,children:(0,V.jsx)(Z,{children:e})})})}function lP({mode:e,resolved:t,onModeChange:n,route:r}){let{state:i,connected:a,attempts:o,transients:s,send:c,announce:l}=rP(r.run),[u,d]=(0,E.useState)(null),[f,p]=(0,E.useState)([`print-sheets`]);(0,E.useEffect)(()=>{fetch(`/api/surfaces`).then(e=>e.json()).then(d)},[s.reloads]);let[m,h]=(0,E.useState)([]);(0,E.useEffect)(()=>{fetch(`/api/session`).then(e=>e.json()).then(e=>h((e.warnings??[]).filter(e=>e.build)))},[s.reloads]);let[g,_]=(0,E.useState)(!1);(0,E.useEffect)(()=>{s.restarted&&_(!0)},[s.restarted]),(0,E.useEffect)(()=>{fetch(`/api/overlays`).then(e=>e.json()).then(e=>p(e.overlays))},[s.reloads]);let v=i&&r.kind===`player`?(()=>{let e=ml(i,r);return e.kind===`viewer`?e.viewer.participantId??null:null})():null;if((0,E.useEffect)(()=>l(v),[l,v]),!i||!u)return(0,V.jsx)(hP,{connected:a,attempts:o});let y=u.some(e=>e.kind===`setup`),b=i.session.inSetup,x=r.kind===`guide`||r.kind===`print`||r.kind===`scenario-editor`||r.kind===`presentation`,S=b&&!x?{...r,kind:`setup`}:r;if(!b&&S.kind===`setup`)return(0,V.jsx)(fP,{configurable:y,onReconfigure:()=>void c({type:`reconfigure`})});if(S.kind===`scenario-editor`)return S.scenario===void 0?(0,V.jsx)(mP,{}):(0,V.jsx)(eP,{scenario:S.scenario,surface:u.find(e=>e.kind===`scenario-editor`),state:i,mode:e,resolved:t,send:c,onModeChange:n,rejection:s.rejection});if(S.kind===`join`){let e=i.teams.find(e=>e.index===S.teamIndex);return e?.participants.length===1?(location.replace(Wc({kind:`player`,teamIndex:e.index,participant:1,bare:S.bare})),(0,V.jsx)(hP,{connected:a,attempts:o})):(0,V.jsx)(qM,{team:e,bare:S.bare})}let C=ml(i,S);if(C.kind!==`viewer`)return(0,V.jsx)(gP,{resolution:C,bare:S.bare,onAddParticipant:()=>void c({type:`addParticipant`,teamId:`team-${C.teamIndex+1}`})});let w=i.session.waitingRoomOpen&&(S.kind===`player`||S.kind===`waiting-room`)?`waiting-room`:hl[S.kind],T=w?u.find(e=>e.kind===w):void 0;return(0,V.jsxs)(am,{sx:{display:`flex`,flexDirection:`column`,height:`100vh`},children:[!a&&(0,V.jsx)(pP,{attempts:o}),Lc(i.session.pending)&&!S.bare&&(0,V.jsx)(uP,{pending:i.session.pending,onReinitialise:()=>void c({type:`reset`})}),m.length>0&&!S.bare&&(0,V.jsx)(dP,{errors:m}),b&&(0,V.jsx)(jd,{position:`static`,color:`default`,elevation:1,children:(0,V.jsxs)(yy,{variant:`dense`,sx:{gap:2},children:[(0,V.jsx)(Z,{variant:`subtitle2`,sx:{flex:1},children:`Configure the session, then start it`}),(0,V.jsx)(_m,{variant:`contained`,"data-testid":`play`,onClick:()=>void c({type:`play`}),children:`Play`})]})}),(0,V.jsx)(am,{sx:{flex:1,minHeight:0,position:`relative`},children:S.kind===`guide`?(0,V.jsx)(KM,{locale:i.session.locale,reloads:s.reloads}):S.kind===`print`?(0,V.jsx)(YM,{state:i}):T?(0,V.jsx)(KN,{surface:T,viewer:C.viewer,feed:{kind:`operator`,state:i,overlays:f,...S.kind===`presentation`?{sessionless:S.preview===!0}:{},roundProcessing:s.processing.has(-1)||C.viewer.teamIndex!==void 0&&s.processing.has(C.viewer.teamIndex),send:c},mode:e,resolved:t,onModeChange:n,rejection:s.rejection,hookFailure:s.hookFailure}):(0,V.jsx)(_P,{kind:w??`session`})}),!S.bare&&(0,V.jsx)(hb,{state:i,route:S,inSetup:b,configurable:y,connected:a,transients:s,mode:e,onModeChange:n,send:c}),(0,V.jsx)(Zv,{open:g,autoHideDuration:4e3,onClose:()=>_(!1),anchorOrigin:{vertical:`top`,horizontal:`center`},children:(0,V.jsx)(xd,{severity:`info`,"data-testid":`restarted-notice`,children:`Settings changed, game restarted`})})]})}function uP({pending:e,onReinitialise:t}){return(0,V.jsxs)(xd,{severity:`warning`,square:!0,"data-testid":`pending-changes`,sx:{borderRadius:0,py:.25},action:(0,V.jsx)(_m,{size:`small`,color:`inherit`,"data-testid":`reinitialise`,onClick:t,children:`Re-initialise`}),children:[(0,V.jsx)(`strong`,{children:Rc(e)}),`. `,zc(e),`. Re-initialising returns play to tick 0.`]})}function dP({errors:e}){return(0,V.jsxs)(xd,{severity:`error`,square:!0,"data-testid":`build-errors`,sx:{borderRadius:0,py:.25},children:[(0,V.jsxs)(`strong`,{children:["`sdk build` would refuse this package (",e.length===1?`one error`:`${e.length} errors`,`)`]}),`. It runs here anyway, so it can be fixed while you watch.`,e.map((e,t)=>(0,V.jsx)(Z,{variant:`body2`,sx:{fontFamily:`monospace`},children:e.message},t))]})}function fP({configurable:e,onReconfigure:t}){return(0,V.jsxs)(uy,{spacing:2,sx:{alignItems:`center`,justifyContent:`center`,height:`100vh`,p:4},children:[(0,V.jsxs)(xd,{severity:`info`,sx:{maxWidth:560},children:[(0,V.jsx)(Z,{gutterBottom:!0,children:`This session has already started.`}),(0,V.jsx)(Z,{variant:`body2`,color:`text.secondary`,children:e?`Settings are resolved when a session initialises, so changing them now would change nothing until the session starts again. Reconfiguring puts the session back to its setup step and returns every team to tick 0.`:`This game has no setup step.`})]}),(0,V.jsxs)(uy,{direction:`row`,spacing:1,children:[e&&(0,V.jsx)(_m,{variant:`contained`,"data-testid":`reconfigure`,onClick:t,children:`Reconfigure`}),(0,V.jsx)(_m,{href:`/`,children:`Back to the session`})]})]})}function pP({attempts:e}){return(0,V.jsxs)(xd,{severity:`warning`,square:!0,"data-testid":`disconnected`,sx:{borderRadius:0,py:.25},action:(0,V.jsx)(_m,{size:`small`,color:`inherit`,onClick:()=>location.reload(),children:`Reload`}),children:[`Disconnected from the session — nothing on this page is live.`,e>1?` Retrying (${e}).`:` Retrying…`]})}function mP(){return(0,V.jsxs)(uy,{spacing:2,sx:{alignItems:`center`,justifyContent:`center`,height:`100vh`,p:4},children:[(0,V.jsxs)(xd,{severity:`info`,sx:{maxWidth:560},children:[(0,V.jsx)(Z,{gutterBottom:!0,children:`The scenario editor opens on a scenario.`}),(0,V.jsxs)(Z,{variant:`body2`,color:`text.secondary`,children:[`Open the dev drawer (press `,(0,V.jsx)(`kbd`,{children:"`"}),`) and use the Scenario tab:`,` `,(0,V.jsx)(`strong`,{children:`Add scenario`}),` to start a new one, or `,(0,V.jsx)(`strong`,{children:`Edit`}),` on an existing one. An editor with no scenario behind it has nowhere to save what you do in it.`]})]}),(0,V.jsx)(_m,{href:`/`,children:`Back to the session`})]})}function hP({connected:e,attempts:t}){let n=!e&&t>=2,r=$o().palette.mode===`dark`;return(0,V.jsxs)(uy,{spacing:2,sx:{alignItems:`center`,justifyContent:`center`,height:`100vh`,p:4},children:[(0,V.jsx)(am,{component:`img`,src:r?Jy:Yy,alt:`Serious Gaming`,sx:{width:72,height:72}}),!n&&(0,V.jsx)(Z,{color:`text.secondary`,children:e?`Loading the session…`:`Connecting to the session…`}),n&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(xd,{severity:`warning`,sx:{maxWidth:620},children:[(0,V.jsxs)(Z,{gutterBottom:!0,children:[`Nothing is answering at`,` `,(0,V.jsxs)(`code`,{children:[location.host,`/ws`]}),`.`]}),(0,V.jsxs)(Z,{variant:`body2`,color:`text.secondary`,component:`div`,children:[`This page loaded, so something is serving it — most likely an older dev server still holding this port. Check two things:`,(0,V.jsxs)(`ul`,{style:{marginBottom:0},children:[(0,V.jsxs)(`li`,{children:[`The address your server actually printed. A port already in use makes it move to the next one, so it may be on`,` `,(0,V.jsx)(`code`,{children:Number(location.port||80)+1})]}),(0,V.jsxs)(`li`,{children:[`Whether an old one is still running:`,` `,(0,V.jsx)(`code`,{children:`pnpm run sdk dev status`}),`, and`,` `,(0,V.jsx)(`code`,{children:`pnpm run sdk dev stop`}),` to end it`]})]})]})]}),(0,V.jsx)(_m,{variant:`outlined`,onClick:()=>location.reload(),children:`Try again`})]})]})}function gP({resolution:e,bare:t,onAddParticipant:n}){let r=e.teamIndex+1;return(0,V.jsxs)(uy,{spacing:2,sx:{alignItems:`center`,justifyContent:`center`,height:`100vh`,p:4},"data-testid":`no-such-participant`,children:[(0,V.jsx)(xd,{severity:`warning`,sx:{maxWidth:560},children:e.kind===`no-such-team`?(0,V.jsxs)(Z,{gutterBottom:!0,children:[`This session has no team `,r,`. It may have been removed.`]}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(Z,{gutterBottom:!0,children:[`Team `,r,` has`,` `,e.held===0?`no participants`:e.held===1?`one participant`:`${e.held} participants`,`, and this URL asks for participant `,e.slot,`.`]}),(0,V.jsx)(Z,{variant:`body2`,color:`text.secondary`,children:`A second tab is not a second participant. Add one, then open their surface: a participant is who a write is attributed to, and a surface with nobody behind it cannot submit one.`})]})}),e.kind===`no-such-participant`&&n&&(0,V.jsx)(_m,{variant:`contained`,onClick:n,"data-testid":`add-participant`,children:`Add participant`}),(0,V.jsxs)(_m,{size:`small`,href:Wc({kind:`observer`,teamIndex:e.teamIndex,bare:t}),children:[`Watch team `,r,` without joining`]})]})}function _P({kind:e}){return(0,V.jsxs)(uy,{spacing:2,sx:{alignItems:`center`,justifyContent:`center`,height:`100%`,p:4},children:[(0,V.jsxs)(xd,{severity:`info`,sx:{maxWidth:560},children:[(0,V.jsxs)(Z,{gutterBottom:!0,children:[`This package wires no `,(0,V.jsx)(`strong`,{children:e}),` surface.`]}),(0,V.jsx)(Z,{variant:`body2`,color:`text.secondary`,children:`A game supplies its own facilitator and player surfaces; the dev server renders them rather than substituting a console of its own, so there is nothing to show until the package fills that slot.`})]}),(0,V.jsx)(_m,{href:`/`,size:`small`,children:`Back to the session`})]})}function vP(){let[e,t]=(0,E.useState)(()=>localStorage.getItem(`theme`)??`light`),n=RN(e),r=(0,E.useMemo)(()=>LN(n),[n]);return(0,V.jsxs)(Ac,{theme:r,children:[(0,V.jsx)(ds,{}),(0,V.jsx)(ab,{children:(0,V.jsx)(fb,{children:(0,V.jsx)(oP,{mode:e,resolved:n,onModeChange:e=>{localStorage.setItem(`theme`,e),t(e)}})})})]})}(0,Ic.createRoot)(document.getElementById(`root`)).render((0,V.jsx)(E.StrictMode,{children:(0,V.jsx)(vP,{})}));
|