repoburg 1.3.270 → 1.3.272
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/agent-pane/backend/dist/index.js +54904 -277
- package/agent-pane/backend/dist/server.js +54904 -277
- package/agent-pane/examples/pr-review/manifest.json +1 -1
- package/agent-pane/frontend/dist/assets/index-BuZ-_HXG.js +606 -0
- package/agent-pane/frontend/dist/assets/index-DlwZnsU3.css +1 -0
- package/agent-pane/frontend/dist/index.html +2 -2
- package/daemon/dist/tabtape/config.js +1 -1
- package/daemon/dist/tabtape/mcp/definitions.js +2 -2
- package/daemon/dist/tabtape/mcp/server.js +2 -2
- package/daemon/dist/tabtape/mcp/server.spec.js +18 -0
- package/daemon/dist/tabtape/mcp/tools.js +10 -0
- package/daemon/dist/tabtape/query/perf.js +53 -1
- package/daemon/dist/tabtape/query/query.spec.js +13 -1
- package/daemon/dist/tabtape/query/types.js +4 -0
- package/daemon/dist/tabtape/testing/querytest.js +8 -1
- package/package.json +5 -1
- package/tabtape/extension/dist/build-info.json +4 -4
- package/tabtape/extension/dist/manifest.json +2 -2
- package/tabtape/extension/dist/recorder.js +21 -21
- package/tabtape/extension/dist/recorder.js.map +1 -1
- package/tabtape/ui/dist/app/assets/{index-iWNSSrAE.js → index-B7yWGVQ_.js} +10 -9
- package/tabtape/ui/dist/app/assets/{index-Canv3Ljk.css → index-BE22UToa.css} +1 -1
- package/tabtape/ui/dist/app/index.html +2 -2
- package/tabtape/ui/dist/build-info.json +4 -4
- package/tabtape/ui/dist/export/viewer.css +1 -1
- package/tabtape/ui/dist/export/viewer.js +6 -5
- package/agent-pane/frontend/dist/assets/index-CcL4MDxZ.js +0 -572
- package/agent-pane/frontend/dist/assets/index-Cr-XES2b.css +0 -1
|
@@ -5,8 +5,8 @@ var e=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports);(function
|
|
|
5
5
|
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
6
6
|
`+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{Re=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Le(n):``}function Be(e,t){switch(e.tag){case 26:case 27:case 5:return Le(e.type);case 16:return Le(`Lazy`);case 13:return e.child!==t&&t!==null?Le(`Suspense Fallback`):Le(`Suspense`);case 19:return Le(`SuspenseList`);case 0:case 15:return ze(e.type,!1);case 11:return ze(e.type.render,!1);case 1:return ze(e.type,!0);case 31:return Le(`Activity`);case 30:return Le(`ViewTransition`);default:return``}}function Ve(e){try{var t=``,n=null;do t+=Be(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
7
7
|
Error generating stack: `+e.message+`
|
|
8
|
-
`+e.stack}}var He=Object.prototype.hasOwnProperty,Ue=t.unstable_scheduleCallback,We=t.unstable_cancelCallback,Ge=t.unstable_shouldYield,Ke=t.unstable_requestPaint,qe=t.unstable_now,Je=t.unstable_getCurrentPriorityLevel,Ye=t.unstable_ImmediatePriority,Xe=t.unstable_UserBlockingPriority,Ze=t.unstable_NormalPriority,Qe=t.unstable_LowPriority,$e=t.unstable_IdlePriority,et=t.log,tt=t.unstable_setDisableYieldValue,nt=null,rt=null;function it(e){if(typeof et==`function`&&tt(e),rt&&typeof rt.setStrictMode==`function`)try{rt.setStrictMode(nt,e)}catch{}}var at=Math.clz32?Math.clz32:ct,ot=Math.log,st=Math.LN2;function ct(e){return e>>>=0,e===0?32:31-(ot(e)/st|0)|0}var lt=256,ut=262144,dt=4194304;function ft(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 pt(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=ft(n))):i=ft(o):i=ft(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=ft(n))):i=ft(o)):i=ft(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 mt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ht(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-at(n),i=1<<r;t|=e[r],n&=~i}return t}function gt(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 _t(){var e=dt;return dt<<=1,!(dt&62914560)&&(dt=4194304),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function bt(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-at(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&&xt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function xt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-at(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function St(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Ct(e,t){var n=t&-t;return n=n&42?1:wt(n),(n&(e.suspendedLanes|t))===0?n:0}function wt(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 Tt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Et(){var e=A.p;return e===0?(e=window.event,e===void 0?32:Ch(e.type)):e}function Dt(e,t){var n=A.p;try{return A.p=e,t()}finally{A.p=n}}var Ot=Math.random().toString(36).slice(2),kt=`__reactFiber$`+Ot,At=`__reactProps$`+Ot,jt=`__reactContainer$`+Ot,Mt=`__reactEvents$`+Ot,Nt=`__reactListeners$`+Ot,Pt=`__reactHandles$`+Ot,Ft=`__reactResources$`+Ot,It=`__reactMarker$`+Ot,Lt=`__reactLoad$`+Ot;function Rt(e){delete e[kt],delete e[At],delete e[Nt],delete e[Pt]}function zt(e){var t;if(t=e[kt])return t;for(var n=e.parentNode;n;){if(t=n[jt]||n[kt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=fm(e);e!==null;){if(n=e[kt])return n;e=fm(e)}return t}e=n,n=e.parentNode}return null}function Bt(e){if(e=e[kt]||e[jt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Vt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Ht(e){var t=e[Ft];return t||=e[Ft]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Ut(e){e[It]=!0}function Wt(e){e[Lt]=void 0}var Gt=new Set,Kt={};function qt(e,t){Jt(e,t),Jt(e+`Capture`,t)}function Jt(e,t){for(Kt[e]=t,e=0;e<t.length;e++)Gt.add(t[e])}var Yt=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]*$`),Xt={},Zt={};function Qt(e){return He.call(Zt,e)?!0:He.call(Xt,e)?!1:Yt.test(e)?Zt[e]=!0:(Xt[e]=!0,!1)}var M=!1;function $t(){var e=M;return M=!1,e}function en(e,t,n){if(Qt(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 tn(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 N(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 nn(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function rn(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function an(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 on(e){if(!e._valueTracker){var t=rn(e)?`checked`:`value`;e._valueTracker=an(e,t,``+e[t])}}function sn(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=rn(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var cn=/[\n"\\]/g;function ln(e){return e.replace(cn,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function un(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=``+nn(t)):e.value!==``+nn(t)&&(e.value=``+nn(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):fn(e,nn(n)):o===`number`&&e.value==t?fn(e,nn(e.value)):fn(e,nn(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=``+nn(s):e.removeAttribute(`name`)}function dn(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)){on(e);return}n=n==null?``:``+nn(n),t=t==null?n:``+nn(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),on(e)}function fn(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function pn(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=``+nn(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 mn(e,t,n){if(t!=null&&(t=``+nn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+nn(n)}function hn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(s(92));if(xe(r)){if(1<r.length)throw Error(s(93));r=r[0]}n=r}n??=``,t=n}n=nn(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),on(e)}function gn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var _n=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 vn(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||_n.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function yn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(s(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]=``,M=!0);for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&(vn(e,i,r),M=!0)}else for(var a in t)t.hasOwnProperty(a)&&vn(e,a,t[a])}function bn(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 xn=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`]]),Sn=/^[\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 Cn(e){return Sn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function wn(){}var Tn=null;function En(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Dn=null,On=null;function kn(e){var t=Bt(e);if(t&&(e=t.stateNode)){var n=e[At]||null;a:switch(e=t.stateNode,t.type){case`input`:if(un(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="`+ln(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[At]||null;if(!i)throw Error(s(90));un(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&sn(r)}break a;case`textarea`:mn(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&pn(e,!!n.multiple,t,!1)}}}var An=!1;function jn(e,t,n){if(An)return e(t,n);An=!0;try{return e(t)}finally{if(An=!1,(Dn!==null||On!==null)&&(Rd(),Dn&&(t=Dn,e=On,On=Dn=null,kn(t),e)))for(t=0;t<e.length;t++)kn(e[t])}}function Mn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[At]||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(s(231,t,typeof n));return n}var Nn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Pn=!1;if(Nn)try{var Fn={};Object.defineProperty(Fn,"passive",{get:function(){Pn=!0}}),window.addEventListener(`test`,Fn,Fn),window.removeEventListener(`test`,Fn,Fn)}catch{Pn=!1}var In=null,Ln=null,Rn=null;function zn(){if(Rn)return Rn;var e,t=Ln,n=t.length,r,i=`value`in In?In.value:In.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 Rn=i.slice(e,1<r?1-r:void 0)}function Bn(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 Vn(){return!0}function Hn(){return!1}function Un(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)?Vn:Hn,this.isPropagationStopped=Hn,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=Vn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Vn)},persist:function(){},isPersistent:Vn}),t}var Wn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gn=Un(Wn),Kn=T({},Wn,{view:0,detail:0}),qn=Un(Kn),Jn,Yn,Xn,Zn=T({},Kn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:cr,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!==Xn&&(Xn&&e.type===`mousemove`?(Jn=e.screenX-Xn.screenX,Yn=e.screenY-Xn.screenY):Yn=Jn=0,Xn=e),Jn)},movementY:function(e){return`movementY`in e?e.movementY:Yn}}),Qn=Un(Zn),$n=Un(T({},Zn,{dataTransfer:0})),er=Un(T({},Kn,{relatedTarget:0})),tr=Un(T({},Wn,{animationName:0,elapsedTime:0,pseudoElement:0})),nr=Un(T({},Wn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),rr=Un(T({},Wn,{data:0})),ir={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},ar={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`},or={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function sr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=or[e])?!!t[e]:!1}function cr(){return sr}var lr=Un(T({},Kn,{key:function(e){if(e.key){var t=ir[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Bn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?ar[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:cr,charCode:function(e){return e.type===`keypress`?Bn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Bn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),ur=Un(T({},Zn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),dr=Un(T({},Wn,{submitter:0})),fr=Un(T({},Kn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cr})),pr=Un(T({},Wn,{propertyName:0,elapsedTime:0,pseudoElement:0})),mr=Un(T({},Zn,{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})),hr=Un(T({},Wn,{newState:0,oldState:0,source:0})),gr=[9,13,27,32],_r=Nn&&`CompositionEvent`in window,vr=null;Nn&&`documentMode`in document&&(vr=document.documentMode);var yr=Nn&&`TextEvent`in window&&!vr,br=Nn&&(!_r||vr&&8<vr&&11>=vr),xr=` `,Sr=!1;function Cr(e,t){switch(e){case`keyup`:return gr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function wr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Tr=!1;function Er(e,t){switch(e){case`compositionend`:return wr(t);case`keypress`:return t.which===32?(Sr=!0,xr):null;case`textInput`:return e=t.data,e===xr&&Sr?null:e;default:return null}}function Dr(e,t){if(Tr)return e===`compositionend`||!_r&&Cr(e,t)?(e=zn(),Rn=Ln=In=null,Tr=!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 br&&t.locale!==`ko`?null:t.data;default:return null}}var Or={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 kr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Or[e.type]:t===`textarea`}function Ar(e,t,n,r){Dn?On?On.push(r):On=[r]:Dn=r,t=qf(t,`onChange`),0<t.length&&(n=new Gn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var jr=null,Mr=null;function Nr(e){Bf(e,0)}function Pr(e){if(sn(Vt(e)))return e}function Fr(e,t){if(e===`change`)return t}var Ir=!1;if(Nn){var Lr;if(Nn){var Rr=`oninput`in document;if(!Rr){var zr=document.createElement(`div`);zr.setAttribute(`oninput`,`return;`),Rr=typeof zr.oninput==`function`}Lr=Rr}else Lr=!1;Ir=Lr&&(!document.documentMode||9<document.documentMode)}function Br(){jr&&(jr.detachEvent(`onpropertychange`,Vr),Mr=jr=null)}function Vr(e){if(e.propertyName===`value`&&Pr(Mr)){var t=[];Ar(t,Mr,e,En(e)),jn(Nr,t)}}function Hr(e,t,n){e===`focusin`?(Br(),jr=t,Mr=n,jr.attachEvent(`onpropertychange`,Vr)):e===`focusout`&&Br()}function Ur(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Pr(Mr)}function Wr(e,t){if(e===`click`)return Pr(t)}function Gr(e,t){if(e===`input`||e===`change`)return Pr(t)}function Kr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var qr=typeof Object.is==`function`?Object.is:Kr;function Jr(e,t){if(qr(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(!He.call(t,i)||!qr(e[i],t[i]))return!1}return!0}function Yr(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 Xr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zr(e,t){var n=Xr(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=Xr(n)}}function Qr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $r(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Yr(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=Yr(e.document)}return t}function ei(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 ti=Nn&&`documentMode`in document&&11>=document.documentMode,ni=null,ri=null,ii=null,ai=!1;function oi(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ai||ni==null||ni!==Yr(r)||(r=ni,`selectionStart`in r&&ei(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}),ii&&Jr(ii,r)||(ii=r,r=qf(ri,`onSelect`),0<r.length&&(t=new Gn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=ni)))}function si(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var ci={animationend:si(`Animation`,`AnimationEnd`),animationiteration:si(`Animation`,`AnimationIteration`),animationstart:si(`Animation`,`AnimationStart`),transitionrun:si(`Transition`,`TransitionRun`),transitionstart:si(`Transition`,`TransitionStart`),transitioncancel:si(`Transition`,`TransitionCancel`),transitionend:si(`Transition`,`TransitionEnd`)},li={},ui={};Nn&&(ui=document.createElement(`div`).style,`AnimationEvent`in window||(delete ci.animationend.animation,delete ci.animationiteration.animation,delete ci.animationstart.animation),`TransitionEvent`in window||delete ci.transitionend.transition);function di(e){if(li[e])return li[e];if(!ci[e])return e;var t=ci[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ui)return li[e]=t[n];return e}var P=di(`animationend`),fi=di(`animationiteration`),pi=di(`animationstart`),mi=di(`transitionrun`),hi=di(`transitionstart`),gi=di(`transitioncancel`),_i=di(`transitionend`),vi=new Map,yi=`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(` `);yi.push(`scrollEnd`);function bi(e,t){vi.set(e,t),qt(t,[e])}var xi=0;function Si(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=yd.identifierPrefix;var n=xi++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function Ci(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 wi(e,t){return e=Ci(e),t=Ci(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var Ti=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)},Ei=[],Di=0,Oi=0;function ki(){for(var e=Di,t=Oi=Di=0;t<e;){var n=Ei[t];Ei[t++]=null;var r=Ei[t];Ei[t++]=null;var i=Ei[t];Ei[t++]=null;var a=Ei[t];if(Ei[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&&Ni(n,i,a)}}function Ai(e,t,n,r){Ei[Di++]=e,Ei[Di++]=t,Ei[Di++]=n,Ei[Di++]=r,Oi|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ji(e,t,n,r){return Ai(e,t,n,r),Pi(e)}function Mi(e,t){return Ai(e,null,null,t),Pi(e)}function Ni(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-at(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Pi(e){if(50<Od)throw Od=0,kd=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Fi={};function Ii(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 Li(e,t,n,r){return new Ii(e,t,n,r)}function Ri(e){return e=e.prototype,!(!e||!e.isReactComponent)}function zi(e,t){var n=e.alternate;return n===null?(n=Li(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 Bi(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 Vi(e,t,n,r,i,a){var o=0;if(r=e,typeof r==`function`)Ri(r)&&(o=1);else if(typeof r==`string`)o=qm(e,n,De.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case pe:return e=Li(31,n,t,i),e.elementType=pe,e.lanes=a,e;case ie:return Hi(n.children,i,a,t);case ae:o=8,i|=24;break;case oe:return e=Li(12,n,t,i|2),e.elementType=oe,e.lanes=a,e;case le:return e=Li(13,n,t,i),e.elementType=le,e.lanes=a,e;case ue:return e=Li(19,n,t,i),e.elementType=ue,e.lanes=a,e;case O:case he:return e=i|32,e=Li(30,n,t,e),e.elementType=he,e.lanes=a,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case D:o=10;break a;case se:o=9;break a;case ce:o=11;break a;case de:o=14;break a;case fe:o=16,r=null;break a}o=29,n=Error(s(130,e===null?`null`:typeof e,``)),r=null}return t=Li(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Hi(e,t,n,r){return e=Li(7,e,r,t),e.lanes=n,e}function Ui(e,t,n){return e=Li(6,e,null,t),e.lanes=n,e}function Wi(e){var t=Li(18,null,null,0);return t.stateNode=e,t}function Gi(e,t,n){return t=Li(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ki=new WeakMap;function qi(e,t){if(typeof e==`object`&&e){var n=Ki.get(e);return n===void 0?(t={value:e,source:t,stack:Ve(t)},Ki.set(e,t),t):n}return{value:e,source:t,stack:Ve(t)}}var Ji=[],Yi=0,Xi=null,Zi=0,Qi=[],$i=0,ea=null,ta=1,na=``;function ra(e,t){Ji[Yi++]=Zi,Ji[Yi++]=Xi,Xi=e,Zi=t}function ia(e,t,n){Qi[$i++]=ta,Qi[$i++]=na,Qi[$i++]=ea,ea=e;var r=ta;e=na;var i=32-at(r)-1;r&=~(1<<i),n+=1;var a=32-at(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ta=1<<32-at(t)+i|n<<i|r,na=a+e}else ta=1<<a|n<<i|r,na=e}function aa(e){e.return!==null&&(ra(e,1),ia(e,1,0))}function oa(e){for(;e===Xi;)Xi=Ji[--Yi],Ji[Yi]=null,Zi=Ji[--Yi],Ji[Yi]=null;for(;e===ea;)ea=Qi[--$i],Qi[$i]=null,na=Qi[--$i],Qi[$i]=null,ta=Qi[--$i],Qi[$i]=null}function sa(e,t){Qi[$i++]=ta,Qi[$i++]=na,Qi[$i++]=ea,ta=t.id,na=t.overflow,ea=e}var ca=null,la=null,F=!1,ua=null,da=!1,fa=Error(s(519));function pa(e){throw ya(qi(Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),fa}function ma(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[kt]=e,t[At]=r,n){case`dialog`:$(`cancel`,t),$(`close`,t);break;case`iframe`:case`object`:case`embed`:$(`load`,t);break;case`video`:case`audio`:for(n=0;n<Rf.length;n++)$(Rf[n],t);break;case`source`:$(`error`,t);break;case`img`:case`image`:case`link`:$(`error`,t),$(`load`,t);break;case`details`:$(`toggle`,t);break;case`input`:$(`invalid`,t),dn(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:$(`invalid`,t);break;case`textarea`:$(`invalid`,t),hn(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||$f(t.textContent,n)?(r.popover!=null&&($(`beforetoggle`,t),$(`toggle`,t)),r.onScroll!=null&&$(`scroll`,t),r.onScrollEnd!=null&&$(`scrollend`,t),r.onClick!=null&&(t.onclick=wn),t=!0):t=!1,t||pa(e,!0)}function ha(e){for(ca=e.return;ca;)switch(ca.tag){case 5:case 31:case 13:da=!1;return;case 27:case 3:da=!0;return;default:ca=ca.return}}function ga(e){if(e!==ca)return!1;if(!F)return ha(e),F=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||pp(e.type,e.memoizedProps)),n=!n),n&&la&&pa(e),ha(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(317));la=dm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(317));la=dm(e)}else t===27?(t=la,Sp(e.type)?(e=um,um=null,la=e):la=t):la=ca?lm(e.stateNode.nextSibling):null;return!0}function _a(){la=ca=null,F=!1}function va(){var e=ua;return e!==null&&(fd===null?fd=e:fd.push.apply(fd,e),ua=null),e}function ya(e){ua===null?ua=[e]:ua.push(e)}var ba=j(null),xa=null,Sa=null;function Ca(e,t,n){Ee(ba,t._currentValue),t._currentValue=n}function wa(e){e._currentValue=ba.current,Te(ba)}function Ta(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 Ea(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var o=i.child;a=a.firstContext;a:for(;a!==null;){var c=a;a=i;for(var l=0;l<t.length;l++)if(c.context===t[l]){a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),Ta(a.return,n,e),r||(o=null);break a}a=c.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(s(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Ta(o,n,e),o=null}else i.tag===13&&i.memoizedState!==null&&i.memoizedState.dehydrated===null?(i.lanes|=n,o=i.alternate,o!==null&&(o.lanes|=n),Ta(i.return,n,e),o=i.child,o=o===null?null:o.sibling):o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function Da(e,t,n,r){e=null;for(var i=t,a=!1;i!==null;){if(!a){if(i.flags&524288)a=!0;else if(i.flags&262144)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(s(387));if(o=o.memoizedProps,o!==null){var c=i.type;qr(i.pendingProps.value,o.value)||(e===null?e=[c]:e.push(c))}}else if(i===Ae.current){if(o=i.alternate,o===null)throw Error(s(387));o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[sh]:e.push(sh))}i=i.return}return e!==null&&Ea(t,e,n,r),t.flags|=262144,e!==null}function Oa(e){for(e=e.firstContext;e!==null;){if(!qr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ka(e){xa=e,Sa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Aa(e){return Ma(xa,e)}function ja(e,t){return xa===null&&ka(e),Ma(e,t)}function Ma(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Sa===null){if(e===null)throw Error(s(308));Sa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Sa=Sa.next=t;return n}var Na=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()})}},Pa=t.unstable_scheduleCallback,Fa=t.unstable_NormalPriority,Ia={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function La(){return{controller:new Na,data:new Map,refCount:0}}function Ra(e){e.refCount--,e.refCount===0&&Pa(Fa,function(){e.controller.abort()})}function za(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 Ba=null;function Va(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Ha=null,Ua=0,Wa=0,Ga=null;function Ka(e,t){if(Ha===null){var n=Ha=[];Ua=0,Wa=Nf(),Ga={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Ua++,t.then(qa,qa),t}function qa(){if(--Ua===0&&(Ba=null,Ha!==null)){Ga!==null&&(Ga.status=`fulfilled`);var e=Ha;Ha=null,Wa=0,Ga=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ja(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 Ya=k.S;k.S=function(e,t){if(hd=qe(),typeof t==`object`&&t&&typeof t.then==`function`&&Ka(e,t),Ba!==null)for(var n=yf;n!==null;)za(n,Ba),n=n.next;if(n=e.types,n!==null){for(var r=yf;r!==null;)za(r,n),r=r.next;if(Wa!==0){r=Ba,r===null&&(r=Ba=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Ya!==null&&Ya(e,t)};var Xa=j(null);function Za(){var e=Xa.current;return e===null?ed.pooledCache:e}function Qa(e,t){t===null?Ee(Xa,Xa.current):Ee(Xa,t.pool)}function I(){var e=Za();return e===null?null:{parent:Ia._currentValue,pool:e}}var $a=Error(s(460)),eo=Error(s(474)),to=Error(s(542)),no={then:function(){}};function ro(e){return e=e.status,e===`fulfilled`||e===`rejected`}function io(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(wn,wn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,co(e),e===void 0&&!(`reason`in t)?Error(s(600)):e;default:if(typeof t.status==`string`)t.then(wn,wn);else{if(e=ed,e!==null&&100<e.shellSuspendCounter)throw Error(s(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,co(e),e}throw oo=t,$a}}function ao(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(oo=e,$a):e}}var oo=null;function so(){if(oo===null)throw Error(s(459));var e=oo;return oo=null,e}function co(e){if(e===$a||e===to)throw Error(s(483))}var lo=null,uo=0;function fo(e){var t=uo;return uo+=1,lo===null&&(lo=[]),io(lo,e,t)}function po(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function mo(e,t){throw t.$$typeof===ne?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function ho(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 i(e,t){return e=zi(e,t),e.index=0,e.sibling=null,e}function a(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 o(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Ui(n,e.mode,r),t.return=e,t):(t=i(t,n),t.return=e,t)}function l(e,t,n,r){var a=n.type;return a===ie?(e=d(e,t,n.props.children,r,n.key),po(e,n),e):t!==null&&(t.elementType===a||typeof a==`object`&&a&&a.$$typeof===fe&&ao(a)===t.type)?(t=i(t,n.props),po(t,n),t.return=e,t):(t=Vi(n.type,n.key,n.props,null,e.mode,r),po(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=Gi(n,e.mode,r),t.return=e,t):(t=i(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,a){return t===null||t.tag!==7?(t=Hi(n,e.mode,r,a),t.return=e,t):(t=i(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Ui(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case E:return n=Vi(t.type,t.key,t.props,null,e.mode,n),po(n,t),n.return=e,n;case re:return t=Gi(t,e.mode,n),t.return=e,t;case fe:return t=ao(t),f(e,t,n)}if(xe(t)||ve(t))return t=Hi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,fo(t),n);if(t.$$typeof===D)return f(e,ja(e,t),n);mo(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 E:return n.key===i?l(e,t,n,r):null;case re:return n.key===i?u(e,t,n,r):null;case fe:return n=ao(n),p(e,t,n,r)}if(xe(n)||ve(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,fo(n),r);if(n.$$typeof===D)return p(e,t,ja(e,n),r);mo(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 E:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case re:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case fe:return r=ao(r),m(e,t,n,r,i)}if(xe(r)||ve(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,fo(r),i);if(r.$$typeof===D)return m(e,t,n,ja(t,r),i);mo(t,r)}return null}function h(i,o,s,c){for(var l=null,u=null,d=o,h=o=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),o=a(_,o,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),F&&ra(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(o=a(d,o,h),u===null?l=d:u.sibling=d,u=d);return F&&ra(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)),o=a(g,o,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),F&&ra(i,h),l}function g(i,o,c,l){if(c==null)throw Error(s(151));for(var u=null,d=null,h=o,g=o=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),o=a(y,o,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),F&&ra(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(o=a(v,o,g),d===null?u=v:d.sibling=v,d=v);return F&&ra(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),o=a(v,o,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),F&&ra(i,g),u}function _(e,r,a,c){if(typeof a==`object`&&a&&a.type===ie&&a.key===null&&a.props.ref===void 0&&(a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case E:a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===ie){if(r.tag===7){n(e,r.sibling),c=i(r,a.props.children),po(c,a),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===fe&&ao(l)===r.type){n(e,r.sibling),c=i(r,a.props),po(c,a),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}a.type===ie?(c=Hi(a.props.children,e.mode,c,a.key),po(c,a),c.return=e,e=c):(c=Vi(a.type,a.key,a.props,null,e.mode,c),po(c,a),c.return=e,e=c)}return o(e);case re:a:{for(l=a.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),c=i(r,a.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Gi(a,e.mode,c),c.return=e,e=c}return o(e);case fe:return a=ao(a),_(e,r,a,c)}if(xe(a))return h(e,r,a,c);if(ve(a)){if(l=ve(a),typeof l!=`function`)throw Error(s(150));return a=l.call(a),g(e,r,a,c)}if(typeof a.then==`function`)return _(e,r,fo(a),c);if(a.$$typeof===D)return _(e,r,ja(e,a),c);mo(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(a=``+a,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,a),c.return=e,e=c):(n(e,r),c=Ui(a,e.mode,c),c.return=e,e=c),o(e)):n(e,r)}return function(e,t,n,r){try{uo=0;var i=_(e,t,n,r);return lo=null,i}catch(t){if(t===$a||t===to)throw t;var a=Li(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var go=ho(!0),_o=ho(!1),vo=!1;function yo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bo(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 xo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function So(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,K&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Pi(e),Ni(e,null,n),t}return Ai(e,r,t,n),Pi(e)}function Co(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,St(e,n)}}function wo(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;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var To=!1;function Eo(){if(To){var e=Ga;if(e!==null)throw e}}function Do(e,t,n,r){To=!1;var i=e.updateQueue;vo=!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?(J&f)===f:(r&f)===f){f!==0&&f===Wa&&(To=!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:vo=!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 Oo(e,t){if(typeof e!=`function`)throw Error(s(191,e));e.call(t)}function ko(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Oo(n[e],t)}var Ao=j(null),jo=j(0);function Mo(e,t){e=X,Ee(jo,e),Ee(Ao,t),X=e|t.baseLanes}function No(){Ee(jo,X),Ee(Ao,Ao.current)}function Po(){X=jo.current,Te(Ao),Te(jo)}var Fo=j(null),Io=null;function Lo(e){var t=e.alternate;Ee(Ho,Ho.current&1),Ee(Fo,e),Io===null&&(t===null||Ao.current!==null||t.memoizedState!==null)&&(Io=e)}function Ro(e){Ee(Ho,Ho.current),Ee(Fo,e),Io===null&&(Io=e)}function zo(e){e.tag===22?(Ee(Ho,Ho.current),Ee(Fo,e),Io===null&&(Io=e)):Bo()}function Bo(){Ee(Ho,Ho.current),Ee(Fo,Fo.current)}function Vo(e){Te(Fo),Io===e&&(Io=null),Te(Ho)}var Ho=j(0);function Uo(e,t){Ee(Fo,Fo.current),Ee(Ho,t)}function Wo(e){Te(Ho),Te(Fo),Io===e&&(Io=null)}function Go(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||om(n)||sm(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 Ko=0,L=null,R=null,qo=null,Jo=!1,Yo=!1,Xo=!1,Zo=0,Qo=0,$o=null,es=0;function ts(){throw Error(s(321))}function ns(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!qr(e[n],t[n]))return!1;return!0}function rs(e,t,n,r,i,a){return Ko=a,L=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?mc:hc,Xo=!1,a=n(r,i),Xo=!1,Yo&&(a=as(t,n,r,i)),is(e),a}function is(e){k.H=pc;var t=R!==null&&R.next!==null;if(Ko=0,qo=R=L=null,Jo=!1,Qo=0,$o=null,t)throw Error(s(300));e===null||Mc||(e=e.dependencies,e!==null&&Oa(e)&&(Mc=!0))}function as(e,t,n,r){L=e;var i=0;do{if(Yo&&($o=null),Qo=0,Yo=!1,25<=i)throw Error(s(301));if(i+=1,qo=R=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}k.H=gc,a=t(n,r)}while(Yo);return a}function os(){var e=k.H,t=e.useState()[0];return t=typeof t.then==`function`?ps(t):t,e=e.useState()[0],(R===null?null:R.memoizedState)!==e&&(L.flags|=1024),t}function ss(){var e=Zo!==0;return Zo=0,e}function cs(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ls(e){if(Jo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Jo=!1}Ko=0,qo=R=L=null,Yo=!1,Qo=Zo=0,$o=null}function us(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qo===null?L.memoizedState=qo=e:qo=qo.next=e,qo}function ds(){if(R===null){var e=L.alternate;e=e===null?null:e.memoizedState}else e=R.next;var t=qo===null?L.memoizedState:qo.next;if(t!==null)qo=t,R=e;else{if(e===null)throw L.alternate===null?Error(s(467)):Error(s(310));R=e,e={memoizedState:R.memoizedState,baseState:R.baseState,baseQueue:R.baseQueue,queue:R.queue,next:null},qo===null?L.memoizedState=qo=e:qo=qo.next=e}return qo}function fs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ps(e){var t=Qo;return Qo+=1,$o===null&&($o=[]),e=io($o,e,t),t=L,(qo===null?t.memoizedState:qo.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?mc:hc),e}function ms(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ps(e);if(e.$$typeof===ge)return;if(e.$$typeof===D)return Aa(e)}throw Error(s(438,String(e)))}function hs(e){var t=null,n=L.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=L.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=fs(),L.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]=me;return t.index++,n}function gs(e,t){return typeof t==`function`?t(e):t}function _s(e){return vs(ds(),R,e)}function vs(e,t,n){var r=e.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=n;var i=e.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}t.baseQueue=i=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var c=o=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Ko&f)===f:(J&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===Wa&&(d=!0);else if((Ko&p)===p){u=u.next,p===Wa&&(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,o=a):l=l.next=f,L.lanes|=p,od|=p;f=u.action,Xo&&n(a,f),a=u.hasEagerState?u.eagerState:n(a,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,o=a):l=l.next=p,L.lanes|=f,od|=f;u=u.next}while(u!==null&&u!==t);if(l===null?o=a:l.next=c,!qr(a,e.memoizedState)&&(Mc=!0,d&&(n=Ga,n!==null)))throw n;e.memoizedState=a,e.baseState=o,e.baseQueue=l,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ys(e){var t=ds(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);qr(a,t.memoizedState)||(Mc=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function bs(e,t,n){var r=L,i=ds(),a=F;if(a){if(n===void 0)throw Error(s(407));n=n()}else n=t();var o=!qr((R||i).memoizedState,n);if(o&&(i.memoizedState=n,Mc=!0),i=i.queue,Ws(Ss.bind(null,r,i,e),[e]),e=i.getSnapshot!==t||o||qo!==null&&!!(qo.memoizedState.tag&1),zs(e?9:8,{destroy:void 0},z.bind(null,r,i,n,t),null),e){if(r.flags|=2048,ed===null)throw Error(s(349));a||Ko&127||xs(r,t,n)}return n}function xs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=L.updateQueue,t===null?(t=fs(),L.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function z(e,t,n,r){t.value=n,t.getSnapshot=r,Cs(t)&&ws(e)}function Ss(e,t,n){return n(function(){Cs(t)&&ws(e)})}function Cs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qr(e,n)}catch{return!0}}function ws(e){var t=Mi(e,2);t!==null&&Nd(t,e,2)}function Ts(e){var t=us();if(typeof e==`function`){var n=e;if(e=n(),Xo){it(!0);try{n()}finally{it(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gs,lastRenderedState:e},t}function Es(e,t,n,r){return e.baseState=n,vs(e,R,typeof r==`function`?r:gs)}function Ds(e,t,n,r,i){if(uc(e))throw Error(s(485));if(e=t.action,e!==null){var a={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};k.T===null?a.isTransition=!1:n(!0),r(a),n=t.pending,n===null?(a.next=t.pending=a,Os(t,a)):(a.next=n.next,t.pending=n.next=a)}}function Os(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=k.T,o={};o.types=a===null?null:a.types,k.T=o;try{var s=n(i,r),c=k.S;c!==null&&c(o,s),ks(e,t,s)}catch(n){js(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),k.T=a}}else try{a=n(i,r),ks(e,t,a)}catch(n){js(e,t,n)}}function ks(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){As(e,t,n)},function(n){return js(e,t,n)}):As(e,t,n)}function As(e,t,n){t.status=`fulfilled`,t.value=n,Ms(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Os(e,n)))}function js(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ms(t),t=t.next;while(t!==r)}e.action=null}function Ms(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ns(e,t){return t}function Ps(e,t){if(F){var n=ed.formState;if(n!==null){a:{var r=L;if(F){if(la){b:{for(var i=la,a=da;i.nodeType!==8;){if(!a){i=null;break b}if(i=lm(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){la=lm(i.nextSibling),r=i.data===`F!`;break a}}pa(r)}r=!1}r&&(t=n[0])}}return n=us(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ns,lastRenderedState:t},n.queue=r,n=cc.bind(null,L,r),r.dispatch=n,r=Ts(!1),a=W.bind(null,L,!1,r.queue),r=us(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Ds.bind(null,L,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Fs(e){return Is(ds(),R,e)}function Is(e,t,n){if(t=vs(e,t,Ns)[0],e=_s(gs)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=ps(t)}catch(e){throw e===$a?to:e}else r=t;t=ds();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(L.flags|=2048,zs(9,{destroy:void 0},Ls.bind(null,i,n),null)),[r,a,e]}function Ls(e,t){e.action=t}function Rs(e){var t=ds(),n=R;if(n!==null)return Is(t,n,e);ds(),t=t.memoizedState,n=ds();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function zs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=L.updateQueue,t===null&&(t=fs(),L.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 Bs(){return ds().memoizedState}function Vs(e,t,n,r){var i=us();L.flags|=e,i.memoizedState=zs(1|t,{destroy:void 0},n,r===void 0?null:r)}function Hs(e,t,n,r){var i=ds();r=r===void 0?null:r;var a=i.memoizedState.inst;R!==null&&r!==null&&ns(r,R.memoizedState.deps)?i.memoizedState=zs(t,a,n,r):(L.flags|=e,i.memoizedState=zs(1|t,a,n,r))}function Us(e,t){Vs(8390656,8,e,t)}function Ws(e,t){Hs(2048,8,e,t)}function Gs(e){L.flags|=4;var t=L.updateQueue;if(t===null)t=fs(),L.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Ks(e){var t=ds().memoizedState;return Gs({ref:t,nextImpl:e}),function(){if(K&2)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function qs(e,t){return Hs(4,2,e,t)}function Js(e,t){return Hs(4,4,e,t)}function Ys(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 Xs(e,t,n){n=n==null?null:n.concat([e]),Hs(4,4,Ys.bind(null,t,e),n)}function B(){}function V(e,t){var n=ds();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&ns(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function H(e,t){var n=ds();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&ns(t,r[1]))return r[0];if(r=e(),Xo){it(!0);try{e()}finally{it(!1)}}return n.memoizedState=[r,t],r}function Zs(e,t,n){return n===void 0||Ko&1073741824&&!(J&261930)?e.memoizedState=t:(e.memoizedState=n,e=jd(),L.lanes|=e,od|=e,n)}function Qs(e,t,n,r){return qr(n,t)?n:Ao.current===null?!(Ko&106)||Ko&1073741824&&!(J&261930)?(Mc=!0,e.memoizedState=n):(e=jd(),L.lanes|=e,od|=e,t):(e=Zs(e,n,r),qr(e,t)||(Mc=!0),e)}function $s(e,t,n,r,i){var a=A.p;A.p=a!==0&&8>a?a:8;var o=k.T,s={};s.types=o===null?null:o.types,k.T=s,W(e,!1,t,n);try{var c=i(),l=k.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?lc(e,t,Ja(c,r),Ad(e)):lc(e,t,r,Ad(e))}catch(n){lc(e,t,{then:function(){},status:`rejected`,reason:n},Ad())}finally{A.p=a,o!==null&&s.types!==null&&(o.types=s.types),k.T=o}}function U(){}function ec(e,t,n,r){if(e.tag!==5)throw Error(s(476));var i=tc(e).queue;$s(e,i,t,Se,n===null?U:function(){return nc(e),n(r)})}function tc(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Se,baseState:Se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gs,lastRenderedState:Se},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gs,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function nc(e){var t=tc(e);t.next===null&&(t=e.alternate.memoizedState),lc(e,t.next.queue,{},Ad())}function rc(){return Aa(sh)}function ic(){return ds().memoizedState}function ac(){return ds().memoizedState}function oc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Ad();e=xo(n);var r=So(t,e,n);r!==null&&(Nd(r,t,n),Co(r,t,n)),t={cache:La()},e.payload=t;return}t=t.return}}function sc(e,t,n){var r=Ad();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},uc(e)?dc(t,n):(n=ji(e,t,n,r),n!==null&&(Nd(n,e,r),fc(n,t,r)))}function cc(e,t,n){lc(e,t,n,Ad())}function lc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(uc(e))dc(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,qr(s,o))return Ai(e,t,i,0),ed===null&&ki(),!1}catch{}if(n=ji(e,t,i,r),n!==null)return Nd(n,e,r),fc(n,t,r),!0}return!1}function W(e,t,n,r){if(r={lane:2,revertLane:Nf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},uc(e)){if(t)throw Error(s(479))}else t=ji(e,n,r,2),t!==null&&Nd(t,e,2)}function uc(e){var t=e.alternate;return e===L||t!==null&&t===L}function dc(e,t){Yo=Jo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,St(e,n)}}var pc={readContext:Aa,use:ms,useCallback:ts,useContext:ts,useEffect:ts,useImperativeHandle:ts,useLayoutEffect:ts,useInsertionEffect:ts,useMemo:ts,useReducer:ts,useRef:ts,useState:ts,useDebugValue:ts,useDeferredValue:ts,useTransition:ts,useSyncExternalStore:ts,useId:ts,useHostTransitionStatus:ts,useFormState:ts,useActionState:ts,useOptimistic:ts,useMemoCache:ts,useCacheRefresh:ts,useEffectEvent:ts},mc={readContext:Aa,use:ms,useCallback:function(e,t){return us().memoizedState=[e,t===void 0?null:t],e},useContext:Aa,useEffect:Us,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Vs(4194308,4,Ys.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vs(4194308,4,e,t)},useInsertionEffect:function(e,t){Vs(4,2,e,t)},useMemo:function(e,t){var n=us();t=t===void 0?null:t;var r=e();if(Xo){it(!0);try{e()}finally{it(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=us();if(n!==void 0){var i=n(t);if(Xo){it(!0);try{n(t)}finally{it(!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=sc.bind(null,L,e),[r.memoizedState,e]},useRef:function(e){var t=us();return e={current:e},t.memoizedState=e},useState:function(e){e=Ts(e);var t=e.queue,n=cc.bind(null,L,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:B,useDeferredValue:function(e,t){return Zs(us(),e,t)},useTransition:function(){var e=Ts(!1);return e=$s.bind(null,L,e.queue,!0,!1),us().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=L,i=us();if(F){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),ed===null)throw Error(s(349));J&127||xs(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Us(Ss.bind(null,r,a,e),[e]),r.flags|=2048,zs(9,{destroy:void 0},z.bind(null,r,a,n,t),null),n},useId:function(){var e=us(),t=ed.identifierPrefix;if(F){var n=na,r=ta;n=(r&~(1<<32-at(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Zo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=es++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:rc,useFormState:Ps,useActionState:Ps,useOptimistic:function(e){var t=us();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=W.bind(null,L,!0,n),n.dispatch=t,[e,t]},useMemoCache:hs,useCacheRefresh:function(){return us().memoizedState=oc.bind(null,L)},useEffectEvent:function(e){var t=us(),n={impl:e};return t.memoizedState=n,function(){if(K&2)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},hc={readContext:Aa,use:ms,useCallback:V,useContext:Aa,useEffect:Ws,useImperativeHandle:Xs,useInsertionEffect:qs,useLayoutEffect:Js,useMemo:H,useReducer:_s,useRef:Bs,useState:function(){return _s(gs)},useDebugValue:B,useDeferredValue:function(e,t){return Qs(ds(),R.memoizedState,e,t)},useTransition:function(){var e=_s(gs)[0],t=ds().memoizedState;return[typeof e==`boolean`?e:ps(e),t]},useSyncExternalStore:bs,useId:ic,useHostTransitionStatus:rc,useFormState:Fs,useActionState:Fs,useOptimistic:function(e,t){return Es(ds(),R,e,t)},useMemoCache:hs,useCacheRefresh:ac,useEffectEvent:Ks},gc={readContext:Aa,use:ms,useCallback:V,useContext:Aa,useEffect:Ws,useImperativeHandle:Xs,useInsertionEffect:qs,useLayoutEffect:Js,useMemo:H,useReducer:ys,useRef:Bs,useState:function(){return ys(gs)},useDebugValue:B,useDeferredValue:function(e,t){var n=ds();return R===null?Zs(n,e,t):Qs(n,R.memoizedState,e,t)},useTransition:function(){var e=ys(gs)[0],t=ds().memoizedState;return[typeof e==`boolean`?e:ps(e),t]},useSyncExternalStore:bs,useId:ic,useHostTransitionStatus:rc,useFormState:Rs,useActionState:Rs,useOptimistic:function(e,t){var n=ds();return R===null?(n.baseState=e,[e,n.queue.dispatch]):Es(n,R,e,t)},useMemoCache:hs,useCacheRefresh:ac,useEffectEvent:Ks};function _c(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 vc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ad(),i=xo(r);i.payload=t,n!=null&&(i.callback=n),t=So(e,i,r),t!==null&&(Nd(t,e,r),Co(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ad(),i=xo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=So(e,i,r),t!==null&&(Nd(t,e,r),Co(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ad(),r=xo(n);r.tag=2,t!=null&&(r.callback=t),t=So(e,r,n),t!==null&&(Nd(t,e,n),Co(t,e,n))}};function yc(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?!Jr(n,r)||!Jr(i,a):!0}function bc(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&&vc.enqueueReplaceState(t,t.state,null)}function xc(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 Sc(e){Ti(e)}function Cc(e){console.error(e)}function wc(e){Ti(e)}function Tc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ec(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 Dc(e,t,n){return n=xo(n),n.tag=3,n.payload={element:null},n.callback=function(){Tc(e,t)},n}function Oc(e){return e=xo(e),e.tag=3,e}function kc(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(){Ec(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Ec(t,n,r),typeof i!=`function`&&(Z===null?Z=new Set([this]):Z.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Ac(e,t,n,r,i){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Da(t,n,i,!0),n=Fo.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Io===null?Gd():n.alternate===null&&ad===0&&(ad=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===no?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),pf(e,r,i)),!1;case 22:return n.flags|=65536,r===no?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)),pf(e,r,i)),!1}throw Error(s(435,n.tag))}return pf(e,r,i),Gd(),!1}if(F)return t=Fo.current,t===null?(r!==fa&&(t=Error(s(423),{cause:r}),ya(qi(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=qi(r,n),i=Dc(e.stateNode,r,i),wo(e,i),ad!==4&&(ad=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==fa&&(e=Error(s(422),{cause:r}),ya(qi(e,n)))),!1;var a=Error(s(520),{cause:r});if(a=qi(a,n),dd===null?dd=[a]:dd.push(a),ad!==4&&(ad=2),t===null)return!0;r=qi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Dc(n.stateNode,r,e),wo(n,e),!1;case 1:if(t=n.type,a=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||a!==null&&typeof a.componentDidCatch==`function`&&(Z===null||!Z.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=Oc(i),kc(i,e,n,r),wo(n,i),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var jc=Error(s(461)),Mc=!1;function Nc(e,t,n,r){t.child=e===null?_o(t,null,n,r):go(t,e.child,n,r)}function Pc(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 ka(t),r=rs(e,t,n,o,a,i),s=ss(),e!==null&&!Mc?(cs(e,t,i),cl(e,t,i)):(F&&s&&aa(t),t.flags|=1,Nc(e,t,r,i),t.child)}function Fc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Ri(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Ic(e,t,a,r,i)):(e=Vi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!ll(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Jr:n,n(o,r)&&e.ref===t.ref)return cl(e,t,i)}return t.flags|=1,e=zi(a,r),e.ref=t.ref,e.return=t,t.child=e}function Ic(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Jr(a,r)&&e.ref===t.ref){if(Mc=!1,t.pendingProps=r=a,ll(e,i))e.flags&131072&&(Mc=!0);else return t.lanes=e.lanes,cl(e,t,i)}}return Wc(e,t,n,r,i)}function Lc(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 zc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Qa(t,a===null?null:a.cachePool),a===null?No():Mo(t,a),zo(t);else return r=t.lanes=536870912,zc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Qa(t,null),No(),Bo()):(Qa(t,a.cachePool),Mo(t,a),Bo(),t.memoizedState=null);return Nc(e,t,i,n),t.child}function Rc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function zc(e,t,n,r,i){var a=Za();return a=a===null?null:{parent:Ia._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Qa(t,null),No(),zo(t),e!==null&&Da(e,t,r,!0),t.childLanes=i,null}function Bc(e,t){return t=$c({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Vc(e,t,n){return go(t,e.child,null,n),e=Bc(t,t.pendingProps),e.flags|=2,Vo(t),t.memoizedState=null,e}function Hc(e,t,n){var r=t.pendingProps,i=!!(t.flags&128);if(t.flags&=-129,e===null){if(F){if(r.mode===`hidden`)return e=Bc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Rc(null,e);if(Ro(t),(e=la)?(e=am(e,da),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ea===null?null:{id:ta,overflow:na},retryLane:536870912,hydrationErrors:null},n=Wi(e),n.return=t,t.child=n,ca=t,la=null)):e=null,e===null)throw pa(t);return t.lanes=536870912,null}return Bc(t,r)}var a=e.memoizedState;if(a!==null){var o=a.dehydrated;if(Ro(t),i){if(t.flags&256)t.flags&=-257,t=Vc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558))}else if(Mc||Da(e,t,n,!1),i=(n&e.childLanes)!==0,Mc||i){if(Ao.current===null){if(r=ed,r!==null&&(o=Ct(r,n),o!==0&&o!==a.retryLane))throw a.retryLane=o,Mi(e,o),Nd(r,e,o),jc;Gd()}t=Vc(e,t,n)}else e=a.treeContext,la=lm(o.nextSibling),ca=t,F=!0,ua=null,da=!1,e!==null&&sa(t,e),t=Bc(t,r),t.flags|=134221824;return t}return e=zi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Uc(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(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Wc(e,t,n,r,i){return ka(t),n=rs(e,t,n,r,void 0,i),r=ss(),e!==null&&!Mc?(cs(e,t,i),cl(e,t,i)):(F&&r&&aa(t),t.flags|=1,Nc(e,t,n,i),t.child)}function Gc(e,t,n,r,i,a){return ka(t),t.updateQueue=null,n=as(t,r,n,i),is(e),r=ss(),e!==null&&!Mc?(cs(e,t,a),cl(e,t,a)):(F&&r&&aa(t),t.flags|=1,Nc(e,t,n,a),t.child)}function Kc(e,t,n,r,i){if(ka(t),t.stateNode===null){var a=Fi,o=n.contextType;typeof o==`object`&&o&&(a=Aa(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=vc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},yo(t),o=n.contextType,a.context=typeof o==`object`&&o?Aa(o):Fi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(_c(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&&vc.enqueueReplaceState(a,a.state,null),Do(t,r,a,i),Eo(),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=xc(n,s);a.props=c;var l=a.context,u=n.contextType;o=Fi,typeof u==`object`&&u&&(o=Aa(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)&&bc(t,a,r,o),vo=!1;var f=t.memoizedState;a.state=f,Do(t,r,a,i),Eo(),l=t.memoizedState,s||f!==l||vo?(typeof d==`function`&&(_c(t,n,d,r),l=t.memoizedState),(c=vo||yc(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,bo(e,t),o=t.memoizedProps,u=xc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Fi,typeof l==`object`&&l&&(c=Aa(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)&&bc(t,a,r,c),vo=!1,f=t.memoizedState,a.state=f,Do(t,r,a,i),Eo();var p=t.memoizedState;o!==d||f!==p||vo||e!==null&&e.dependencies!==null&&Oa(e.dependencies)?(typeof s==`function`&&(_c(t,n,s,r),p=t.memoizedState),(u=vo||yc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Oa(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,Uc(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=go(t,e.child,null,i),t.child=go(t,null,n,i)):Nc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=cl(e,t,i),e}function qc(e,t,n,r){return _a(),t.flags|=256,Nc(e,t,n,r),t.child}var Jc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yc(e){return{baseLanes:e,cachePool:I()}}function Xc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=ld),e}function Zc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Ho.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(F){if(i?Lo(t):Bo(),(e=la)?(e=am(e,da),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ea===null?null:{id:ta,overflow:na},retryLane:536870912,hydrationErrors:null},n=Wi(e),n.return=t,t.child=n,ca=t,la=null)):e=null,e===null)throw pa(t);return t.lanes=sm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Bo(),i=t.mode,a=$c({mode:`hidden`,children:a},i),r=Hi(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Yc(n),r.childLanes=Xc(e,o,n),t.memoizedState=Jc,Rc(null,r)):(Lo(t),Qc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return tl(e,t,a,o,r,c,s,n)}return i?(Bo(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=zi(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Hi(i,a,n,null),i.flags|=2):i=zi(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Rc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Yc(n):(a=i.cachePool,a===null?a=I():(s=Ia._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Xc(e,o,n),t.memoizedState=Jc,Rc(e.child,r)):(Lo(t),n=e.child,e=n.sibling,n=zi(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=$c({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function $c(e,t){return e=Li(22,e,null,t),e.lanes=0,e}function el(e,t,n){return go(t,e.child,null,n),e=Qc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function tl(e,t,n,r,i,a,o,c){if(n)return t.flags&256?(Lo(t),t.flags&=-257,el(e,t,c)):t.memoizedState===null?(Bo(),a=i.fallback,o=t.mode,i=$c({mode:`visible`,children:i.children},o),a=Hi(a,o,c,null),a.flags|=2,i.return=t,a.return=t,i.sibling=a,t.child=i,go(t,e.child,null,c),i=t.child,i.memoizedState=Yc(c),i.childLanes=Xc(e,r,c),t.memoizedState=Jc,Rc(null,i)):(Bo(),t.child=e.child,t.flags|=128,null);if(Lo(t),sm(a)){if(r=a.nextSibling&&a.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(i=Error(s(419)),i.stack=``,i.digest=r,ya({value:i,source:null,stack:null})),el(e,t,c)}if(Mc||Da(e,t,c,!1),r=(c&e.childLanes)!==0,Mc||r){if(Ao.current!==null)return el(e,t,c);if(r=ed,r!==null&&(i=Ct(r,c),i!==0&&i!==o.retryLane))throw o.retryLane=i,Mi(e,i),Nd(r,e,i),jc;return om(a)||Gd(),el(e,t,c)}return om(a)?(t.flags|=192,t.child=e.child,null):(e=o.treeContext,la=lm(a.nextSibling),ca=t,F=!0,ua=null,da=!1,e!==null&&sa(t,e),t=Qc(t,i.children),t.flags|=134221824,t)}function nl(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ta(e.return,t,n)}function rl(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Go(n)===null&&(t=e),e=e.sibling}return t}function il(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 al(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 ol(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Ho.current;if(t.flags&128)return Uo(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Uo(t,o),i===`backwards`&&e!==null?(al(e),Nc(e,t,r,n),al(e)):Nc(e,t,r,n),r=F?Zi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&nl(e,n,t);else if(e.tag===19)nl(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=rl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,al(t)),il(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&&Go(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}il(t,!0,n,null,a,r);break;case`together`:il(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=rl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),il(t,!1,i,n,a,r)}return t.child}function sl(e,t,n){var r=t.pendingProps;return Ca(t,t.type,r.value),Nc(e,t,r.children,n),t.child}function cl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),od|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(Da(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=zi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=zi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ll(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&Oa(e)))}function ul(e,t,n){switch(t.tag){case 3:je(t,t.stateNode.containerInfo),Ca(t,Ia,e.memoizedState.cache),_a();break;case 27:case 5:Ne(t);break;case 4:je(t,t.stateNode.containerInfo);break;case 10:Ca(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ro(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return Lo(t),t.flags|=128,null;r=Da(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Zc(e,t,n):(Lo(t),e=cl(e,t,n),e===null?null:e.sibling)}Lo(t);break;case 19:if(t.flags&128)return ol(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(Da(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return ol(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Uo(t,Ho.current),r)break;return null;case 22:return t.lanes=0,Lc(e,t,n,t.pendingProps);case 24:Ca(t,Ia,e.memoizedState.cache)}return cl(e,t,n)}function dl(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Mc=!0;else{if(!ll(e,n)&&!(t.flags&128))return Mc=!1,ul(e,t,n);Mc=!!(e.flags&131072)}}else Mc=!1,F&&t.flags&1048576&&ia(t,Zi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=ao(t.elementType),t.type=e,typeof e==`function`)Ri(e)?(r=xc(e,r),t.tag=1,t=Kc(null,t,e,r,n)):(t.tag=0,t=Wc(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===ce){t.tag=11,t=Pc(null,t,e,r,n);break a}if(i===de){t.tag=14,t=Fc(null,t,e,r,n);break a}if(i===D){t.tag=10,t.type=e,t=sl(null,t,n);break a}}throw t=be(e)||e,Error(s(306,t,``))}}return t;case 0:return Wc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=xc(r,t.pendingProps),Kc(e,t,r,i,n);case 3:a:{if(je(t,t.stateNode.containerInfo),e===null)throw Error(s(387));r=t.pendingProps;var a=t.memoizedState;i=a.element,bo(e,t),Do(t,r,null,n);var o=t.memoizedState;if(r=o.cache,Ca(t,Ia,r),r!==a.cache&&Ea(t,[Ia],n,!0),Eo(),r=o.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=qc(e,t,r,n);break a}if(r!==i){i=qi(Error(s(424)),t),ya(i),t=qc(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(la=lm(e.firstChild),ca=t,F=!0,ua=null,da=!0,n=_o(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(_a(),r===i){t=cl(e,t,n);break a}Nc(e,t,r,n)}t=t.child}return t;case 26:return Uc(e,t),e===null?(n=Nm(t.type,null,t.pendingProps,null))?t.memoizedState=n:F||(t.stateNode=fp(t.type,t.pendingProps,ke.current,t)):t.memoizedState=Nm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ne(t),e===null&&F&&(r=t.stateNode=hm(t.type,t.pendingProps,ke.current),ca=t,da=!0,i=la,Sp(t.type)?(um=i,la=lm(r.firstChild)):la=i),Nc(e,t,t.pendingProps.children,n),Uc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&F&&((i=r=la)&&(r=rm(r,t.type,t.pendingProps,da),r===null?i=!1:(t.stateNode=r,ca=t,la=lm(r.firstChild),da=!1,i=!0)),i||pa(t)),Ne(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,r=a.children,pp(i,a)?r=null:o!==null&&pp(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=rs(e,t,os,null,null,n),sh._currentValue=i),Uc(e,t),Nc(e,t,r,n),t.child;case 6:return e===null&&F&&((e=n=la)&&(n=im(n,t.pendingProps,da),n===null?e=!1:(t.stateNode=n,ca=t,la=null,e=!0)),e||pa(t)),null;case 13:return Zc(e,t,n);case 4:return je(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=go(t,null,r,n):Nc(e,t,r,n),t.child;case 11:return Pc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Uc(e,t),Nc(e,t,r,n),t.child;case 8:return Nc(e,t,t.pendingProps.children,n),t.child;case 12:return Nc(e,t,t.pendingProps.children,n),t.child;case 10:return sl(e,t,n);case 9:return i=t.type._context,r=t.pendingProps.children,ka(t),i=Aa(i),r=r(i),t.flags|=1,Nc(e,t,r,n),t.child;case 14:return Fc(e,t,t.type,t.pendingProps,n);case 15:return Ic(e,t,t.type,t.pendingProps,n);case 19:return ol(e,t,n);case 31:return Hc(e,t,n);case 22:return Lc(e,t,n,t.pendingProps);case 24:return ka(t),r=Aa(Ia),e===null?(i=Za(),i===null&&(i=ed,a=La(),i.pooledCache=a,a.refCount++,a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},yo(t),Ca(t,Ia,i)):((e.lanes&n)!==0&&(bo(e,t),Do(t,null,null,n),Eo()),i=e.memoizedState,a=t.memoizedState,i.parent===r?(r=a.cache,Ca(t,Ia,r),r!==i.cache&&Ea(t,[Ia],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Ca(t,Ia,r))),Nc(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:F&&aa(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Uc(e,t),Nc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function fl(e){e.flags|=4}function pl(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?Jm(t,r):Jm(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 oo=no,eo}}else e.flags&=-16777217}function ml(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Ym(t)){if(Hd())e.flags|=8192;else throw oo=no,eo}}function hl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:_t(),e.lanes|=t,ud|=t)}function gl(e,t){if(!F)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 _l(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 vl(e,t,n){var r=t.pendingProps;switch(oa(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _l(t),null;case 1:return _l(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),wa(Ia),Me(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ga(t)?fl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,va())),_l(t),null;case 26:var i=t.type,a=t.memoizedState;return e===null?(fl(t),a===null?(_l(t),pl(t,i,null,r,n)):(_l(t),ml(t,a))):a?a===e.memoizedState?(_l(t),t.flags&=-16777217):(fl(t),_l(t),ml(t,a)):(e=e.memoizedProps,e!==r&&fl(t),_l(t),pl(t,i,e,r,n)),null;case 27:if(Pe(t),n=ke.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&fl(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return _l(t),t.subtreeFlags&=-33554433,null}e=De.current,ga(t)?ma(t,e):(e=hm(i,r,n),t.stateNode=e,fl(t))}return _l(t),t.subtreeFlags&=-33554433,null;case 5:if(Pe(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&fl(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return _l(t),t.subtreeFlags&=-33554433,null}if(a=De.current,ga(t))ma(t,a);else{var o=lp(ke.current);switch(a){case 1:a=o.createElementNS(`http://www.w3.org/2000/svg`,i);break;case 2:a=o.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;default:switch(i){case`svg`:a=o.createElementNS(`http://www.w3.org/2000/svg`,i);break;case`math`:a=o.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;case`script`:a=o.createElement(`div`),a.innerHTML=`<script><\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?o.createElement(`select`,{is:r.is}):o.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?o.createElement(i,{is:r.is}):o.createElement(i)}}a[kt]=t,a[At]=r;a:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break a;for(;o.sibling===null;){if(o.return===null||o.return===t)break a;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;a:switch(np(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&fl(t)}}return _l(t),t.subtreeFlags&=-33554433,pl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&fl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(s(166));if(e=ke.current,ga(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=ca,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[kt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||$f(e.nodeValue,n)),e||pa(t,!0)}else e=lp(e).createTextNode(r),e[kt]=t,t.stateNode=e}return _l(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=ga(t),n!==null){if(e===null){if(!r)throw Error(s(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(557));e[kt]=t}else _a(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_l(t),e=!1}else n=va(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Vo(t),t):(Vo(t),null);if(t.flags&128)throw Error(s(558))}return _l(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=ga(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(s(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(s(317));i[kt]=t}else _a(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_l(t),i=!1}else i=va(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Vo(t),t):(Vo(t),null)}return Vo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),hl(t,t.updateQueue),_l(t),null);case 4:return Me(),e===null&&Uf(t.stateNode.containerInfo),t.flags|=67108864,_l(t),null;case 10:return wa(t.type),_l(t),null;case 19:if(Wo(t),r=t.memoizedState,r===null)return _l(t),null;if(i=!!(t.flags&128),a=r.rendering,a===null){if(i)gl(r,!1);else{if(ad!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Go(e),a!==null){for(t.flags|=128,gl(r,!1),e=a.updateQueue,t.updateQueue=e,hl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Bi(n,e),n=n.sibling;return Uo(t,Ho.current&1|2),F&&ra(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&qe()>gd&&(t.flags|=128,i=!0,gl(r,!1),t.lanes=4194304)}}else{if(!i){if(e=Go(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,hl(t,e),gl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!a.alternate&&!F)return _l(t),null}else 2*qe()-r.renderingStartTime>gd&&n!==536870912&&(t.flags|=128,i=!0,gl(r,!1),t.lanes=4194304)}r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}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=qe(),e.sibling=null,a=Ho.current,a=i?a&1|2:a&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||F?Uo(t,a):(n=a,Ee(Fo,t),Ee(Ho,n),Io===null&&(Io=t)),F&&ra(t,r.treeForkCount),e}return _l(t),null;case 22:case 23:return Vo(t),Po(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(_l(t),t.subtreeFlags&6&&(t.flags|=8192)):_l(t),n=t.updateQueue,n!==null&&hl(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&&Te(Xa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),wa(Ia),_l(t),null;case 25:return null;case 30:return t.flags|=33554432,_l(t),null}throw Error(s(156,t.tag))}function yl(e,t){switch(oa(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wa(Ia),Me(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Pe(t),null;case 31:if(t.memoizedState!==null){if(Vo(t),t.alternate===null)throw Error(s(340));_a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Vo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));_a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Wo(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 Me(),null;case 10:return wa(t.type),null;case 22:case 23:return Vo(t),Po(),e!==null&&Te(Xa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return wa(Ia),null;case 25:return null;default:return null}}function bl(e,t){switch(oa(t),t.tag){case 3:wa(Ia),Me();break;case 26:case 27:case 5:Pe(t);break;case 4:Me();break;case 31:t.memoizedState!==null&&Vo(t);break;case 13:Vo(t);break;case 19:Wo(t);break;case 10:wa(t.type);break;case 22:case 23:Vo(t),Po(),e!==null&&Te(Xa);break;case 24:wa(Ia)}}function xl(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){Q(t,t.return,e)}}function Sl(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){Q(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Q(t,t.return,e)}}function Cl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{ko(t,n)}catch(t){Q(e,e.return,t)}}}function wl(e,t,n){n.props=xc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Q(e,t,n)}}function Tl(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=Si(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Pp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Fp(e);h(e.child,!1,Qp,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){Q(e,t,n)}}function El(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Q(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){Q(e,t,n)}else n.current=null}}function Dl(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++)em(e.stateNode,t[n])}function Ol(e){for(var t=e.return;t!==null&&(jl(t)&&em(e.stateNode,t.stateNode),!Al(t));)t=t.return}function kl(e){for(var t=e.return;t!==null&&(jl(t)&&tm(e.stateNode,t.stateNode),!Al(t));)t=t.return}function Al(e){return e.tag===5||e.tag===3||e.tag===27}function jl(e){return e&&e.tag===7&&e.stateNode!==null}function Ml(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){Q(e,e.return,t)}}function Nl(e,t,n){try{var r=e.stateNode;ip(r,e.type,n,t),r[At]=t}catch(t){Q(e,e.return,t)}}function Pl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Sp(e.type)||e.tag===4}function Fl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Pl(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&&Sp(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 Il(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=wn)),Dl(e,r),M=!0;else if(i!==4&&(i===27&&(Dl(e,r),r=null,Sp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Il(e,t,n,r),e=e.sibling;e!==null;)Il(e,t,n,r),e=e.sibling}function Ll(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Dl(e,r),M=!0;else if(i!==4&&(i===27&&(Dl(e,r),r=null,Sp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Ll(e,t,n,r),e=e.sibling;e!==null;)Ll(e,t,n,r),e=e.sibling}function Rl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);np(t,r,n),t[kt]=e,t[At]=n}catch(t){Q(e,e.return,t)}}var zl=!1,Bl=null;function Vl(e){(e.tag===30||e.subtreeFlags&33554432)&&(zl=!0)}var Hl=null;function Ul(){var e=Hl;return Hl=null,e}var Wl=0;function Gl(e,t,n,r,i){return Wl=0,Kl(e.child,t,n,r,i)}function Kl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Op(o);r.push(s),s.view&&(a=!0)}else a||Op(o).view&&(a=!0);zl=!0,Tp(o,Wl===0?t:t+`_`+Wl,n),Wl++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||Kl(e.child,t,n,r,i)&&(a=!0));e=e.sibling}return a}function ql(e,t){for(;e!==null;)e.tag===5?Ep(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||ql(e.child,t)),e=e.sibling}function Jl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Jl(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(s(544));var n=t.name;t=wi(t.default,t.share),t!==`none`&&(Gl(e,n,t,null,!1)||ql(e.child,!1))}e=e.sibling}}function Yl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=Si(r,n),a=wi(r.default,n.paired?r.share:r.enter);a===`none`?Jl(e):Gl(e,i,a,null,!1)?(Jl(e),n.paired||t||Md(e,r.onEnter)):ql(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Yl(e,t),e=e.sibling;else Jl(e)}function Xl(e){if(Bl!==null&&Bl.size!==0){var t=Bl;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=wi(n.default,n.share);if(a!==`none`&&(Gl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Md(e,n.onShare)):ql(e.child,!1)),t.delete(r),t.size===0)break}}}Xl(e)}e=e.sibling}}}function Zl(e){if(e.tag===30){var t=e.memoizedProps,n=Si(t,e.stateNode),r=Bl===null?void 0:Bl.get(n),i=wi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Gl(e,n,i,null,!1)?r===void 0?Md(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Bl.delete(n),Md(e,t.onShare)):ql(e.child,!1)),Bl!==null&&Xl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Zl(e),e=e.sibling;else Bl!==null&&Xl(e)}function Ql(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=Si(t,e.stateNode);t=wi(t.default,t.update),e.flags&=-5,t!==`none`&&Gl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&Ql(e);e=e.sibling}}function $l(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,ql(e.child,!1))}$l(e)}e=e.sibling}}function eu(e){if(e.tag===30)e.stateNode.paired=null,ql(e.child,!1),$l(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)eu(e),e=e.sibling;else $l(e)}function tu(e){for(e=e.child;e!==null;)e.tag===30?ql(e.child,!1):e.subtreeFlags&33554432&&tu(e),e=e.sibling}function nu(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Wl<a.length){var l=a[Wl],u=Op(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&&Tp(c,Wl===0?n:n+`_`+Wl,i),s&&e.flags&4||(Hl===null&&(Hl=[]),Hl.push(c,Wl===0?r:r+`_`+Wl,t.memoizedProps)),Wl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:nu(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function ru(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=Si(n,r),a=wi(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(kp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Wl=0,i=nu(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Md(e,n.onUpdate))}else e.subtreeFlags&33554432&&ru(e,t);e=e.sibling}}var iu=!1,G=!1,au=!1,ou=!1,su=typeof WeakSet==`function`?WeakSet:Set,cu=null,lu=!1,uu=!1,du=!1,fu=!1;function pu(e,t,n){if(e=e.containerInfo,sp=gh,e=$r(e),ei(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(cp={focusedElem:e,selectionRange:r},gh=!1,n=(n&335544064)===n,cu=t,t=n?9270:1024;cu!==null;){if(e=cu,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&Zl(r[a]);if(e.alternate===null&&e.flags&2)n&&Vl(e),mu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&Zl(r),mu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Vl(e),mu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,cu=r):(n&&Ql(e),mu(n))}}Bl=null}function mu(e){for(;cu!==null;){var t=cu,n=e,r=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(i&1024&&r!==null){n=void 0,i=r.memoizedProps,r=r.memoizedState;var a=t.stateNode;try{var o=xc(t.type,i);n=a.getSnapshotBeforeUpdate(o,r),a.__reactInternalSnapshotBeforeUpdate=n}catch(e){Q(t,t.return,e)}}break;case 3:if(i&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)nm(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:nm(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=Si(r.memoizedProps,r.stateNode),i=t.memoizedProps,i=wi(i.default,i.update),i!==`none`&&Gl(r,n,i,r.memoizedState=[],!0));break;default:if(i&1024)throw Error(s(163))}if(r=t.sibling,r!==null){r.return=t.return,cu=r;break}cu=t.return}}function hu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Fu(e,n),r&4&&xl(5,n);break;case 1:if(Fu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Q(n,n.return,e)}else{var i=xc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Q(n,n.return,e)}}}r&64&&Cl(n),r&512&&Tl(n,n.return);break;case 3:if(Fu(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{ko(e,t)}catch(e){Q(n,n.return,e)}}break;case 27:t===null&&r&4&&Rl(n);case 26:case 5:Fu(e,n),t===null&&r&4&&Ml(n),r&512&&Tl(n,n.return);break;case 12:Fu(e,n);break;case 31:Fu(e,n),r&4&&wu(e,n);break;case 13:Fu(e,n),r&4&&Tu(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=gf.bind(null,n),cm(e,n))));break;case 22:if(r=n.memoizedState!==null||iu,!r){var a=t!==null&&t.memoizedState!==null||G;t=iu,i=G,iu=r,(G=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Lu(e,n,r)):Fu(e,n),iu=t,G=i}break;case 30:Fu(e,n),r&512&&Tl(n,n.return);break;case 7:r&512&&Tl(n,n.return);default:Fu(e,n)}}function gu(e,t){for(e=e.child;e!==null;)_u(e,t),e=e.sibling}function _u(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){Q(e,e.return,t)}vu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,M=!0}catch(t){Q(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?wp(s,!0):wp(e.stateNode,!1)}catch(t){Q(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&gu(e,t);break;default:gu(e,t)}}function vu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:_u(n,r);break a;case 22:n.memoizedState===null&&vu(n,r);break a;default:vu(n,r)}}e=e.sibling}}function yu(e){var t=e.alternate;t!==null&&(e.alternate=null,yu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Rt(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 bu=null,xu=!1;function Su(e,t,n){for(n=n.child;n!==null;)Cu(e,t,n),n=n.sibling}function Cu(e,t,n){if(rt&&typeof rt.onCommitFiberUnmount==`function`)try{rt.onCommitFiberUnmount(nt,n)}catch{}switch(n.tag){case 26:G||El(n,t),Su(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!G&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:G||El(n,t),kl(n);var r=bu,i=xu;Sp(n.type)&&(bu=n.stateNode,xu=!1),Su(e,t,n),gm(n.stateNode,n.type,n.memoizedProps),bu=r,xu=i;break;case 5:G||El(n,t),kl(n);case 6:if(n.tag===6&&kl(n),r=bu,i=xu,bu=null,Su(e,t,n),bu=r,xu=i,bu!==null){if(xu)try{(bu.nodeType===9?bu.body:bu.nodeName===`HTML`?bu.ownerDocument.body:bu).removeChild(n.stateNode),M=!0}catch(e){Q(n,t,e)}else try{bu.removeChild(n.stateNode),M=!0}catch(e){Q(n,t,e)}}break;case 18:bu!==null&&(xu?(e=bu,Cp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Hh(e)):Cp(bu,n.stateNode));break;case 4:r=bu,i=xu,bu=n.stateNode.containerInfo,xu=!0,Su(e,t,n),bu=r,xu=i;break;case 0:case 11:case 14:case 15:Sl(2,n,t),G||Sl(4,n,t),Su(e,t,n);break;case 1:G||(El(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&wl(n,t,r)),Su(e,t,n);break;case 21:Su(e,t,n);break;case 22:G=(r=G)||n.memoizedState!==null,Su(e,t,n),G=r;break;case 30:El(n,t),Su(e,t,n);break;case 7:G||El(n,t),Su(e,t,n);break;default:Su(e,t,n)}}function wu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Hh(e)}catch(e){Q(t,t.return,e)}}}function Tu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Hh(e)}catch(e){Q(t,t.return,e)}}function Eu(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new su),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new su),t;default:throw Error(s(435,e.tag))}}function Du(e,t){var n=Eu(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=_f.bind(null,e,t);t.then(r,r)}})}function Ou(e,t,n){var r=t.deletions;if(r!==null)for(var i=0;i<r.length;i++){var a=r[i],o=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(Sp(l.type)){bu=l.stateNode,xu=!1;break a}break;case 5:bu=l.stateNode,xu=!1;break a;case 3:case 4:bu=l.stateNode.containerInfo,xu=!0;break a}l=l.return}if(bu===null)throw Error(s(160));Cu(o,c,a),bu=null,xu=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Au(t,e,n),t=t.sibling}var ku=null;function Au(e,t,n){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(i&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var a=0;a<r.length;a++){var o=r[a];o.ref.impl=o.nextImpl}Ou(t,e,n),ju(e),i&4&&(Sl(3,e,e.return),xl(3,e),Sl(5,e,e.return));break;case 1:Ou(t,e,n),ju(e),i&512&&(G||r===null||El(r,r.return)),i&64&&iu&&(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(a=ku,Ou(t,e,n),ju(e),i&512&&(G||r===null||El(r,r.return)),i&4){if(i=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(iu)e.stateNode=fp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,i=a.ownerDocument||a;b:switch(t){case`title`:r=i.getElementsByTagName(`title`)[0],(!r||r[It]||r[kt]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=i.createElement(t),i.head.insertBefore(r,i.querySelector(`head > title`))),np(r,t,n),r[kt]=e,Ut(r),t=r;break a;case`link`:if(a=Gm(`link`,`href`,i).get(t+(n.href||``))){for(o=0;o<a.length;o++)if(r=a[o],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)){a.splice(o,1);break b}}r=i.createElement(t),np(r,t,n),i.head.appendChild(r);break;case`meta`:if(a=Gm(`meta`,`content`,i).get(t+(n.content||``))){for(o=0;o<a.length;o++)if(r=a[o],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)){a.splice(o,1);break b}}r=i.createElement(t),np(r,t,n),i.head.appendChild(r);break;default:throw Error(s(468,t))}r[kt]=e,Ut(r),t=r}e.stateNode=t}}else iu||Km(a,e.type,e.stateNode)}else e.stateNode=Bm(a,n,e.memoizedProps)}else i===n?n===null&&e.stateNode!==null&&Nl(e,e.memoizedProps,r.memoizedProps):(i===null?(t=r.stateNode,t===null||G||t.parentNode.removeChild(t)):i.count--,n===null?iu||Km(a,e.type,e.stateNode):Bm(a,n,e.memoizedProps))}break;case 27:Ou(t,e,n),ju(e),i&512&&(G||r===null||El(r,r.return)),r!==null&&i&4&&Nl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(a=au,au=!1,Ou(t,e,n),au=a,ju(e),i&512&&(G||r===null||El(r,r.return)),e.flags&32){t=e.stateNode;try{gn(t,``),M=!0}catch(t){Q(e,e.return,t)}}i&4&&e.stateNode!=null&&(t=e.memoizedProps,Nl(e,t,r===null?t:r.memoizedProps)),i&1024&&(ou=!0);break;case 6:if(Ou(t,e,n),ju(e),i&4){if(e.stateNode===null)throw Error(s(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,M=!0}catch(t){Q(e,e.return,t)}}break;case 3:if(M=!1,Wm=null,a=ku,ku=bm(t.containerInfo),Ou(t,e,n),ku=a,ju(e),i&4&&r!==null&&r.memoizedState.isDehydrated)try{Hh(t.containerInfo)}catch(t){Q(e,e.return,t)}ou&&(ou=!1,Mu(e)),M=!1;break;case 4:i=au,au=iu,r=$t(),a=ku,ku=bm(e.stateNode.containerInfo),Ou(t,e,n),ju(e),ku=a,M&&uu&&(du=!0),M=r,au=i;break;case 12:Ou(t,e,n),ju(e);break;case 31:Ou(t,e,n),ju(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Du(e,t)));break;case 13:Ou(t,e,n),ju(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(md=qe()),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Du(e,t)));break;case 22:a=e.memoizedState!==null,o=r!==null&&r.memoizedState!==null;var c=iu,l=G,u=au;iu=c||a,au=u||a,G=l||o,Ou(t,e,n),G=l,au=u,iu=c,ju(e),i&8192&&(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,!a||r===null||o||iu||G||(t=o||G,n=iu,r=G,iu=a||iu,G=t,Iu(e,2),iu=n,G=r),!a&&au||gu(e,a)),i&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Du(e,n))));break;case 19:Ou(t,e,n),ju(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Du(e,t)));break;case 30:i&512&&(G||r===null||El(r,r.return)),i=$t(),a=uu,o=(n&335544064)===n,c=e.memoizedProps,uu=o&&wi(c.default,c.update)!==`none`,Ou(t,e,n),ju(e),o&&r!==null&&M&&(e.flags|=4),uu=a,M=i;break;case 21:break;case 7:i&512&&(G||r===null||El(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Ou(t,e,n),ju(e)}}function ju(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Pl(r)){n=r;break}r=r.return}r=null;for(var i=e.return;i!==null;){if(jl(i)){var a=i.stateNode;r===null?r=[a]:r.push(a)}if(Al(i))break;i=i.return}var o=r;if(n==null)throw Error(s(160));switch(n.tag){case 27:var c=n.stateNode;Ll(e,Fl(e),c,o);break;case 5:var l=n.stateNode;n.flags&32&&(gn(l,``),n.flags&=-33),Ll(e,Fl(e),l,o);break;case 3:case 4:var u=n.stateNode.containerInfo;Il(e,Fl(e),u,o);break;default:throw Error(s(161))}}catch(t){Q(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Mu(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Mu(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,gh=!0,t.reset(),gh=!1),e=e.sibling}}function Nu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Pu(t,e),t=t.sibling;else ru(t,!1)}function Pu(e,t){var n=e.alternate;if(n===null)Yl(e,!1);else switch(e.tag){case 3:if(fu=lu=!1,Ul(),Nu(t,e),!lu&&!du){if(e=Hl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Ep(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`})),fu=!0}Hl=null;break;case 5:Nu(t,e);break;case 4:r=lu,lu=!1,Nu(t,e),lu&&(du=!0),lu=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Nu(t,e):Yl(e,!1));break;case 30:r=lu,i=Ul(),lu=!1,Nu(t,e),lu&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=Si(a,o),o=Si(n.memoizedProps,o);var s=wi(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Wl=0,t=nu(e,n,t,o,s,a,!0),Wl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Md(e,e.memoizedProps.onUpdate),Hl=i):i!==null&&(i.push.apply(i,Hl),Hl=i),lu=e.flags&32?!0:r;break;default:Nu(t,e)}}function Fu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)hu(e,t.alternate,t),t=t.sibling}function Iu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:Sl(4,n,n.return),Iu(n,r);break;case 1:El(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&wl(n,n.return,i),Iu(n,r);break;case 27:r&2&&gm(n.stateNode,n.type,n.memoizedProps);case 5:El(n,n.return),n.tag!==5&&n.tag!==27||kl(n),Iu(n,r);break;case 6:kl(n);break;case 26:El(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||G||i.parentNode.removeChild(i),Iu(n,r);break;case 22:n.memoizedState===null&&Iu(n,r);break;case 30:El(n,n.return),Iu(n,r);break;case 7:El(n,n.return);default:Iu(n,r)}e=e.sibling}}function Lu(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:Lu(i,a,n),xl(4,a);break;case 1:if(Lu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Q(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++)Oo(l[i],c)}catch(e){Q(r,r.return,e)}}s&&o&64&&Cl(a),Tl(a,a.return);break;case 27:n&2&&Rl(a);case 5:a.tag!==5&&a.tag!==27||Ol(a),Lu(i,a,n),s&&r===null&&o&4&&Ml(a),Tl(a,a.return);break;case 6:Ol(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||iu||Km(bm(c.ownerDocument),a.type,c),Lu(i,a,n),s&&r===null&&o&4&&Ml(a),Tl(a,a.return);break;case 12:Lu(i,a,n);break;case 31:Lu(i,a,n),s&&o&4&&wu(i,a);break;case 13:Lu(i,a,n),s&&o&4&&Tu(i,a);break;case 22:a.memoizedState===null&&Lu(i,a,n),Tl(a,a.return);break;case 30:Lu(i,a,n),Tl(a,a.return);break;case 7:Tl(a,a.return);default:Lu(i,a,n)}t=t.sibling}}function Ru(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&&Ra(n))}function zu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ra(e))}function Bu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Vu(e,t,n,r),t=t.sibling;else i&&tu(t)}function Vu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&eu(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Bu(e,t,n,r),a&2048&&xl(9,t);break;case 1:Bu(e,t,n,r);break;case 3:Bu(e,t,n,r),i&&fu&&(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&&Ra(a)));break;case 12:if(a&2048){Bu(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){Q(t,t.return,e)}}else Bu(e,t,n,r);break;case 31:Bu(e,t,n,r);break;case 13:Bu(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&&eu(t),o._visibility&2?Bu(e,t,n,r):(o._visibility|=2,Hu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&eu(s),o._visibility&2?Bu(e,t,n,r):Uu(e,t)),a&2048&&Ru(s,t);break;case 24:Bu(e,t,n,r),a&2048&&zu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(ql(a.child,!0),ql(t.child,!0))),Bu(e,t,n,r);break;default:Bu(e,t,n,r)}}function Hu(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:Hu(a,o,s,c,i),xl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Hu(a,o,s,c,i)):u._visibility&2?Hu(a,o,s,c,i):Uu(a,o),i&&l&2048&&Ru(o.alternate,o);break;case 24:Hu(a,o,s,c,i),i&&l&2048&&zu(o.alternate,o);break;default:Hu(a,o,s,c,i)}t=t.sibling}}function Uu(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:Uu(n,r),i&2048&&Ru(r.alternate,r);break;case 24:Uu(n,r),i&2048&&zu(r.alternate,r);break;default:Uu(n,r)}t=t.sibling}}var Wu=8192;function Gu(e,t,n){if(e.subtreeFlags&Wu)for(e=e.child;e!==null;)Ku(e,t,n),e=e.sibling}function Ku(e,t,n){switch(e.tag){case 26:Gu(e,t,n),e.flags&Wu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&Zm(n,e)):Qm(n,ku,e.memoizedState,e.memoizedProps));break;case 5:Gu(e,t,n),e.flags&Wu&&(e=e.stateNode,(t&335544128)===t&&Zm(n,e));break;case 3:case 4:var r=ku;ku=bm(e.stateNode.containerInfo),Gu(e,t,n),ku=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Wu,Wu=16777216,Gu(e,t,n),Wu=r):Gu(e,t,n));break;case 30:if((e.flags&Wu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Bl===null&&(Bl=new Map),Bl.set(r,i)}Gu(e,t,n);break;default:Gu(e,t,n)}}function qu(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 Ju(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];cu=r,Zu(r,e)}qu(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Yu(e),e=e.sibling}function Yu(e){switch(e.tag){case 0:case 11:case 15:Ju(e),e.flags&2048&&Sl(9,e,e.return);break;case 3:Ju(e);break;case 12:Ju(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Xu(e)):Ju(e);break;default:Ju(e)}}function Xu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];cu=r,Zu(r,e)}qu(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Sl(8,t,t.return),Xu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Xu(t));break;default:Xu(t)}e=e.sibling}}function Zu(e,t){for(;cu!==null;){var n=cu;switch(n.tag){case 0:case 11:case 15:Sl(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:Ra(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,cu=r;else a:for(n=e;cu!==null;){r=cu;var i=r.sibling,a=r.return;if(yu(r),r===n){cu=null;break a}if(i!==null){i.return=a,cu=i;break a}cu=a}}}var Qu={getCacheForType:function(e){var t=Aa(Ia),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Aa(Ia).controller.signal}},$u=typeof WeakMap==`function`?WeakMap:Map,K=0,ed=null,q=null,J=0,Y=0,td=null,nd=!1,rd=!1,id=!1,X=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,Z=null,vd=0,yd=null,bd=null,xd=0,Sd=0,Cd=null,wd=null,Td=null,Ed=null,Dd=null,Od=0,kd=null;function Ad(){return K&2&&J!==0?J&-J:k.T===null?Et():Nf()}function jd(){if(ld===0){if(!(J&536870912)||F){var e=ut;ut<<=1,!(ut&3932160)&&(ut=262144),ld=e}else ld=536870912}return e=Fo.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=Pp(Si(e.memoizedProps,n))),Ed===null&&(Ed=[]),Ed.push(t.bind(null,r))}}function Nd(e,t,n){(e===ed&&(Y===2||Y===9)||e.cancelPendingCommit!==null)&&(Bd(e,0),Ld(e,J,ld,!1)),yt(e,n),(!(K&2)||e!==ed)&&(e===ed&&(!(K&2)&&(sd|=n),ad===4&&Ld(e,J,ld,!1)),Tf(e))}function Pd(e,t,n){if(K&6)throw Error(s(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||mt(e,t),i=r?Jd(e,t):Kd(e,t,!0),a=r;do{if(i===0){rd&&!r&&Ld(e,t,0,!1);break}if(n=e.current.alternate,a&&!Id(n)){i=Kd(e,t,!1),a=!1;continue}if(i===2){if(a=t,e.errorRecoveryDisabledLanes&a)var o=0;else o=e.pendingLanes&-536870913,o=o===0?o&536870912?536870912:0:o;if(o!==0){t=o;a:{var c=e;i=dd;var l=c.current.memoizedState.isDehydrated;if(l&&(Bd(c,o).flags|=256),o=Kd(c,o,!1),o!==2&&o!==6){if(id&&!l){c.errorRecoveryDisabledLanes|=a,sd|=a,i=4;break a}a=fd,fd=i,a!==null&&(fd===null?fd=a:fd.push.apply(fd,a))}i=o}if(a=!1,i!==2)continue}}if(i===1){Bd(e,0),Ld(e,t,0,!0);break}a:{switch(r=e,a=i,a){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Ld(r,t,ld,!nd);break a;case 2:fd=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(i=md+300-qe(),10<i)){if(Ld(r,t,ld,!nd),pt(r,0,!0)!==0)break a;xd=t,r.timeoutHandle=gp(Fd.bind(null,r,n,fd,_d,pd,t,ld,sd,ud,nd,a,`Throttled`,-0,0),i);break a}Fd(r,n,fd,_d,pd,t,ld,sd,ud,nd,a,null,-0,0)}break}while(1);Tf(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;if(d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:wn},Bl=null,Ku(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=nh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?md-qe():(a&4194048)===a?hd-qe():0,m=eh(d,m),m!==null)){xd=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);return}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(!qr(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=ht(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-at(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&xt(e,n,t)}function Rd(){return K&6?!0:(Ef(0,!1),!1)}function zd(){if(q!==null){if(Y===0)var e=q.return;else e=q,Sa=xa=null,ls(e),lo=null,uo=0,e=q;for(;e!==null;)bl(e.alternate,e),e=e.return;q=null}}function Bd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,_p(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),xd=0,zd(),ed=e,q=n=zi(e.current,null),J=t,Y=0,td=null,nd=!1,rd=mt(e,t),id=!1,ud=ld=cd=sd=od=ad=0,fd=dd=null,pd=!1,X=ht(e,t),ki(),n}function Vd(e,t){L=null,k.H=pc,t===$a||t===to?(t=so(),Y=3):t===eo?(t=so(),Y=4):Y=t===jc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,td=t,q===null&&(ad=1,Tc(e,qi(t,e.current)))}function Hd(){var e=Fo.current;return e===null?!0:(J&4194048)===J?Io===null:(J&62914560)===J||J&536870912?e===Io:!1}function Ud(){var e=k.H;return k.H=pc,e===null?pc:e}function Wd(){var e=k.A;return k.A=Qu,e}function Gd(){ad=4,nd||(J&4194048)!==J&&Fo.current!==null||(rd=!0),!(od&134217727)&&!(sd&134217727)||ed===null||Ld(ed,J,ld,!1)}function Kd(e,t,n){var r=K;K|=2;var i=Ud(),a=Wd();(ed!==e||J!==t)&&(_d=null,Bd(e,t)),t=!1;var o=ad;a:do try{if(Y!==0&&q!==null){var s=q,c=td;switch(Y){case 8:zd(),o=6;break a;case 3:case 2:case 9:case 6:Fo.current===null&&(t=!0);var l=Y;if(Y=0,td=null,Qd(e,s,c,l),n&&rd){o=0;break a}break;default:l=Y,Y=0,td=null,Qd(e,s,c,l)}}qd(),o=ad;break}catch(t){Vd(e,t)}while(1);return t&&e.shellSuspendCounter++,Sa=xa=null,K=r,k.H=i,k.A=a,q===null&&(ed=null,J=0,ki()),o}function qd(){for(;q!==null;)Xd(q)}function Jd(e,t){var n=K;K|=2;var r=Ud(),i=Wd();ed!==e||J!==t?(_d=null,gd=qe()+500,Bd(e,t)):rd=mt(e,t);a:do try{if(Y!==0&&q!==null){t=q;var a=td;b:switch(Y){case 1:Y=0,td=null,Qd(e,t,a,1);break;case 2:case 9:if(ro(a)){Y=0,td=null,Zd(t);break}t=function(){Y!==2&&Y!==9||ed!==e||(Y=7),Tf(e)},a.then(t,t);break a;case 3:Y=7;break a;case 4:Y=5;break a;case 7:ro(a)?(Y=0,td=null,Zd(t)):(Y=0,td=null,Qd(e,t,a,7));break;case 5:var o=null;switch(q.tag){case 26:o=q.memoizedState;case 5:case 27:var c=q;if(o?Ym(o):c.stateNode.complete){Y=0,td=null;var l=c.sibling;if(l!==null)q=l;else{var u=c.return;u===null?q=null:(q=u,$d(u))}break b}}Y=0,td=null,Qd(e,t,a,5);break;case 6:Y=0,td=null,Qd(e,t,a,6);break;case 8:zd(),ad=6;break a;default:throw Error(s(462))}}Yd();break}catch(t){Vd(e,t)}while(1);return Sa=xa=null,k.H=r,k.A=i,K=n,q===null?(ed=null,J=0,ki(),ad):0}function Yd(){for(;q!==null&&!Ge();)Xd(q)}function Xd(e){var t=dl(e.alternate,e,X);e.memoizedProps=e.pendingProps,t===null?$d(e):q=t}function Zd(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Gc(n,t,t.pendingProps,t.type,void 0,J);break;case 11:t=Gc(n,t,t.pendingProps,t.type.render,t.ref,J);break;case 5:ls(t);var r=t;r===ca&&(F?(ha(r),r.tag===5&&r.stateNode!=null&&(la=r.stateNode)):(ha(r),F=!0));default:bl(n,t),t=q=Bi(t,X),t=dl(n,t,X)}e.memoizedProps=e.pendingProps,t===null?$d(e):q=t}function Qd(e,t,n,r){Sa=xa=null,ls(t),lo=null,uo=0;var i=t.return;try{if(Ac(e,i,t,n,J)){ad=1,Tc(e,qi(n,e.current)),q=null;return}}catch(t){if(i!==null)throw q=i,t;ad=1,Tc(e,qi(n,e.current)),q=null;return}t.flags&32768?(F||r===1?e=!0:rd||J&536870912?e=!1:(nd=e=!0,(r===2||r===9||r===3||r===6)&&(r=Fo.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,nd);return}e=t.return;var n=vl(t.alternate,t,X);if(n!==null){q=n;return}if(t=t.sibling,t!==null){q=t;return}q=t=e}while(t!==null);ad===0&&(ad=5)}function ef(e,t){do{var n=yl(e.alternate,e);if(n!==null){n.flags&=32767,q=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){q=e;return}q=e=n}while(e!==null);ad=6,q=null}function tf(e,t,n,r,i,a,o,c,l,u,d,f){e.cancelPendingCommit=null;do uf();while(vd!==0);if(K&6)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));e===ed&&(q=ed=null,J=0),bd=t,yd=e,xd=n,Cd=i,wd=r,nf(e,t,n,o,c,l,f)}}function nf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Sd=s,s|=Oi,bt(e,n,s,r,i,a),Ed=null,(n&335544064)===n?(Dd=Va(e),r=10262):(Dd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,vf(Ze,function(){return df(),null})):(e.callbackNode=null,e.callbackPriority=0),zl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=k.T,k.T=null,i=A.p,A.p=2,a=K,K|=4;try{pu(e,t,n)}finally{K=a,A.p=i,k.T=r}}vd=1,zl?Td=Mp(o,e.containerInfo,Dd,of,sf,af,cf,df,rf,null,null):(of(),sf(),cf())}function rf(e){if(vd!==0){var t=yd.onRecoverableError;t(e,{componentStack:null})}}function af(){vd===3&&(vd=0,Pu(bd,yd),vd=4)}function of(){if(vd===1){vd=0;var e=yd,t=bd,n=xd,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=k.T,k.T=null;var i=A.p;A.p=2;var a=K;K|=4;try{uu=du=!1,Au(t,e,n),n=cp;var o=$r(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Qr(s.ownerDocument.documentElement,s)){if(c!==null&&ei(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 _=Zr(s,h),v=Zr(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}}gh=!!sp,cp=sp=null}finally{K=a,A.p=i,k.T=r}}e.current=t,vd=2}}function sf(){if(vd===2){vd=0;var e=yd,t=bd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=k.T,k.T=null;var r=A.p;A.p=2;var i=K;K|=4;try{hu(e,t.alternate,t)}finally{K=i,A.p=r,k.T=n}}vd=3}}function cf(){if(vd===4||vd===3){vd=0;var e=Td;Td=null,Ke();var t=yd,n=bd,r=xd,i=wd,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?vd=5:(vd=0,bd=yd=null,lf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(Z=null),Tt(r),n=n.stateNode,rt&&typeof rt.onCommitFiberRoot==`function`)try{rt.onCommitFiberRoot(nt,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=k.T,a=A.p,A.p=2,k.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{k.T=n,A.p=a}}if(i=Ed,o=Dd,Dd=null,i!==null&&(Ed=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);xd&3&&uf(),Tf(t),a=t.pendingLanes,r&261930&&a&42?t===kd?Od++:(Od=0,kd=t):(Od=0,kd=null),Ef(0,!1)}}function lf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ra(t)))}function uf(){return Td!==null&&(Td.skipTransition(),Td=null),of(),sf(),cf(),df()}function df(){if(vd!==5)return!1;var e=yd,t=Sd;Sd=0;var n=Tt(xd),r=k.T,i=A.p;try{A.p=32>n?32:n,k.T=null,n=Cd,Cd=null;var a=yd,o=xd;if(vd=0,bd=yd=null,xd=0,K&6)throw Error(s(331));var c=K;if(K|=4,Yu(a.current),Vu(a,a.current,o,n),K=c,Ef(0,!1),rt&&typeof rt.onPostCommitFiberRoot==`function`)try{rt.onPostCommitFiberRoot(nt,a)}catch{}return!0}finally{A.p=i,k.T=r,lf(e,t)}}function ff(e,t,n){t=qi(n,t),t=Dc(e.stateNode,t,2),e=So(e,t,2),e!==null&&(yt(e,2),Tf(e))}function Q(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`&&(Z===null||!Z.has(r))){e=qi(n,e),n=Oc(2),r=So(t,n,2),r!==null&&(kc(n,r,t,e),yt(r,2),Tf(r));break}}t=t.return}}function pf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new $u;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)||(id=!0,i.add(n),e=mf.bind(null,e,t,n),t.then(e,e))}function mf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ed===e&&(J&n)===n&&(ad===4||ad===3&&(J&62914560)===J&&300>qe()-md?K&2?cd|=n:Bd(e,0):cd|=n,ud===J&&(ud=0)),Tf(e)}function hf(e,t){t===0&&(t=_t()),e=Mi(e,t),e!==null&&(yt(e,t),Tf(e))}function gf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),hf(e,n)}function _f(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}r!==null&&r.delete(t),hf(e,n)}function vf(e,t){return Ue(e,t)}var yf=null,bf=null,xf=!1,Sf=!1,Cf=!1,wf=0;function Tf(e){e!==bf&&e.next===null&&(bf===null?yf=bf=e:bf=bf.next=e),Sf=!0,xf||(xf=!0,Mf())}function Ef(e,t){if(!Cf&&Sf){Cf=!0;do for(var n=!1,r=yf;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-at(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,jf(r,a))}else a=J,a=pt(r,r===ed?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||mt(r,a)||(n=!0,jf(r,a))}r=r.next}while(n);Cf=!1}}function Df(){Of()}function Of(){Sf=xf=!1;var e=0;wf!==0&&hp()&&(e=wf);for(var t=qe(),n=null,r=yf;r!==null;){var i=r.next,a=kf(r,t);a===0?(r.next=null,n===null?yf=i:n.next=i,i===null&&(bf=n)):(n=r,(e!==0||a&3)&&(Sf=!0)),r=i}vd!==0&&vd!==5||Ef(e,!1),wf!==0&&(wf=0)}function kf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-at(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=gt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=ed,n=J,n=pt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Y===2||Y===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&We(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||mt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&We(r),Tt(n)){case 2:case 8:n=Xe;break;case 32:n=Ze;break;case 268435456:n=$e;break;default:n=Ze}return r=Af.bind(null,e),n=Ue(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&We(r),e.callbackPriority=2,e.callbackNode=null,2}function Af(e,t){if(vd!==0&&vd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(uf()&&e.callbackNode!==n)return null;var r=J;return r=pt(e,e===ed?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Pd(e,r,t),kf(e,qe()),e.callbackNode!=null&&e.callbackNode===n?Af.bind(null,e):null)}function jf(e,t){if(uf())return null;Pd(e,t,!0)}function Mf(){bp(function(){K&6?Ue(Ye,Df):Of()})}function Nf(){if(wf===0){var e=Wa;e===0&&(e=lt,lt<<=1,!(lt&261888)&&(lt=256)),wf=e}return wf}function Pf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Cn(e)}function Ff(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Pf((i[At]||null).action),o=r.submitter;o&&(t=(t=o[At]||null)?Pf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Gn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(wf!==0){var e=new FormData(i,o);ec(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),ec(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var If=0;If<yi.length;If++){var Lf=yi[If];bi(Lf.toLowerCase(),`on`+(Lf[0].toUpperCase()+Lf.slice(1)))}bi(P,`onAnimationEnd`),bi(fi,`onAnimationIteration`),bi(pi,`onAnimationStart`),bi(`dblclick`,`onDoubleClick`),bi(`focusin`,`onFocus`),bi(`focusout`,`onBlur`),bi(mi,`onTransitionRun`),bi(hi,`onTransitionStart`),bi(gi,`onTransitionCancel`),bi(_i,`onTransitionEnd`),Jt(`onMouseEnter`,[`mouseout`,`mouseover`]),Jt(`onMouseLeave`,[`mouseout`,`mouseover`]),Jt(`onPointerEnter`,[`pointerout`,`pointerover`]),Jt(`onPointerLeave`,[`pointerout`,`pointerover`]),qt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),qt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),qt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),qt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),qt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),qt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Rf=`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(` `),zf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Rf));function Bf(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){Ti(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){Ti(e)}i.currentTarget=null,a=c}}}}function $(e,t){var n=t[Mt];n===void 0&&(n=t[Mt]=new Set);var r=e+`__bubble`;n.has(r)||(Wf(t,e,2,!1),n.add(r))}function Vf(e,t,n){var r=0;t&&(r|=4),Wf(n,e,r,t)}var Hf=`_reactListening`+Math.random().toString(36).slice(2);function Uf(e){if(!e[Hf]){e[Hf]=!0,Gt.forEach(function(t){t!==`selectionchange`&&(zf.has(t)||Vf(t,!1,e),Vf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hf]||(t[Hf]=!0,Vf(`selectionchange`,!1,t))}}function Wf(e,t,n,r){switch(Ch(t)){case 2:var i=_h;break;case 8:i=vh;break;default:i=yh}n=i.bind(null,t,n,e),i=void 0,!Pn||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 Gf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=zt(s),o===null)return;if(c=o.tag,c===5||c===6||c===26||c===27){r=a=o;continue a}s=s.parentNode}}r=r.return}jn(function(){var r=a,i=En(n),o=[];a:{var s=vi.get(e);if(s!==void 0){var c=Gn,u=e;switch(e){case`keypress`:if(Bn(n)===0)break a;case`keydown`:case`keyup`:c=lr;break;case`focusin`:u=`focus`,c=er;break;case`focusout`:u=`blur`,c=er;break;case`beforeblur`:case`afterblur`:c=er;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`:c=Qn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=$n;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=fr;break;case P:case fi:case pi:c=tr;break;case _i:c=pr;break;case`scroll`:case`scrollend`:c=qn;break;case`wheel`:c=mr;break;case`copy`:case`cut`:case`paste`:c=nr;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=ur;break;case`submit`:c=dr;break;case`toggle`:case`beforetoggle`:c=hr}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?s===null?null:s+`Capture`:s;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=Mn(m,p),g!=null&&d.push(Kf(m,g,h))),f)break;m=m.return}0<d.length&&(s=new c(s,u,null,n,i),o.push({event:s,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,s=e===`mouseout`||e===`pointerout`,c&&n!==Tn&&(u=n.relatedTarget||n.fromElement)&&(zt(u)||u[jt]))break a;(s||c)&&(u=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,s?(c=n.relatedTarget||n.toElement,s=r,c=c?zt(c):null,c!==null&&(f=l(c),d=c.tag,c!==f||d!==5&&d!==27&&d!==6)&&(c=null)):(s=null,c=r),s!==c&&(d=Qn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=ur,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=s==null?u:Vt(s),h=c==null?u:Vt(c),u=new d(g,m+`leave`,s,n,i),u.target=f,u.relatedTarget=h,g=null,zt(i)===r&&(d=new d(p,m+`enter`,c,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=s&&c?te(s,c,Jf):null,s!==null&&Yf(o,u,s,d,!1),c!==null&&f!==null&&Yf(o,f,c,d,!0)))}a:{if(s=r?Vt(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var _=Fr;else if(kr(s)){if(Ir)_=Gr;else{_=Ur;var v=Hr}}else c=s.nodeName,!c||c.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&bn(r.elementType)&&(_=Fr):_=Wr;if(_&&=_(e,r)){Ar(o,_,n,i);break a}v&&v(e,s,r)}switch(v=r?Vt(r):window,e){case`focusin`:(kr(v)||v.contentEditable===`true`)&&(ni=v,ri=r,ii=null);break;case`focusout`:ii=ri=ni=null;break;case`mousedown`:ai=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:ai=!1,oi(o,n,i);break;case`selectionchange`:if(ti)break;case`keydown`:case`keyup`:oi(o,n,i)}var y;if(_r)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 Tr?Cr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(br&&n.locale!==`ko`&&(Tr||b!==`onCompositionStart`?b===`onCompositionEnd`&&Tr&&(y=zn()):(In=i,Ln=`value`in In?In.value:In.textContent,Tr=!0)),v=qf(r,b),0<v.length&&(b=new rr(b,e,null,n,i),o.push({event:b,listeners:v}),y?b.data=y:(y=wr(n),y!==null&&(b.data=y)))),(y=yr?Er(e,n):Dr(e,n))&&(b=qf(r,`onBeforeInput`),0<b.length&&(v=new rr(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:v,listeners:b}),v.data=y)),Ff(o,e,r,n,i)}Bf(o,t)})}function Kf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qf(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=Mn(e,n),i!=null&&r.unshift(Kf(e,i,a)),i=Mn(e,t),i!=null&&r.push(Kf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Jf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Yf(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=Mn(n,a),l!=null&&o.unshift(Kf(n,l,c))):i||(l=Mn(n,a),l!=null&&o.push(Kf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Xf=/\r\n?/g,Zf=/\u0000|\uFFFD/g;function Qf(e){return(typeof e==`string`?e:``+e).replace(Xf,`
|
|
9
|
-
`).replace(Zf,``)}function $f(e,t){return t=Qf(t),Qf(e)===t}function ep(e,t,n,r,i,a){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||gn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&gn(e,``+r);else return;break;case`className`:tn(e,`class`,r);break;case`tabIndex`:tn(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:tn(e,n,r);break;case`style`:yn(e,r,a);return;case`data`:if(t!==`object`){tn(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Cn(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 a==`function`&&(n===`formAction`?(t!==`input`&&ep(e,t,`name`,i.name,i,null),ep(e,t,`formEncType`,i.formEncType,i,null),ep(e,t,`formMethod`,i.formMethod,i,null),ep(e,t,`formTarget`,i.formTarget,i,null)):(ep(e,t,`encType`,i.encType,i,null),ep(e,t,`method`,i.method,i,null),ep(e,t,`target`,i.target,i,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Cn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=wn);return;case`onScroll`:r!=null&&$(`scroll`,e);return;case`onScrollEnd`:r!=null&&$(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(s(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(s(60));a?.__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=Cn(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`:$(`beforetoggle`,e),$(`toggle`,e),en(e,`popover`,r);break;case`xlinkActuate`:N(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:N(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:N(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:N(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:N(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:N(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:N(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:N(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:N(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:en(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=xn.get(n)||n,en(e,n,r);else return}M=!0}function tp(e,t,n,r,i,a){switch(n){case`style`:yn(e,r,a);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(s(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(s(60));a?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)gn(e,r);else if(typeof r==`number`||typeof r==`bigint`)gn(e,``+r);else return;break;case`onScroll`:r!=null&&$(`scroll`,e);return;case`onScrollEnd`:r!=null&&$(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=wn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Kt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),a=n.slice(2,i?n.length-7:void 0),t=e[At]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(a,t,i),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(a,r,i);break a}M=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):en(e,n,r)}return}M=!0}function np(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:$(`error`,e),$(`load`,e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var o=n[a];if(o!=null)switch(a){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(s(137,t));default:ep(e,t,a,o,n,null)}}i&&ep(e,t,`srcSet`,n.srcSet,n,null),r&&ep(e,t,`src`,n.src,n,null);return;case`input`:$(`invalid`,e);var c=a=o=i=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:i=d;break;case`type`:o=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:a=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(s(137,t));break;default:ep(e,t,r,d,n,null)}}dn(e,a,c,l,u,o,i,!1);return;case`select`:for(i in $(`invalid`,e),r=o=a=null,n)if(n.hasOwnProperty(i)&&(c=n[i],c!=null))switch(i){case`value`:a=c;break;case`defaultValue`:o=c;break;case`multiple`:r=c;default:ep(e,t,i,c,n,null)}t=a,n=o,e.multiple=!!r,t==null?n!=null&&pn(e,!!r,n,!0):pn(e,!!r,t,!1);return;case`textarea`:for(o in $(`invalid`,e),a=i=r=null,n)if(n.hasOwnProperty(o)&&(c=n[o],c!=null))switch(o){case`value`:r=c;break;case`defaultValue`:i=c;break;case`children`:a=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(s(91));break;default:ep(e,t,o,c,n,null)}hn(e,r,i,a);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:ep(e,t,l,r,n,null)}return;case`dialog`:$(`beforetoggle`,e),$(`toggle`,e),$(`cancel`,e),$(`close`,e);break;case`iframe`:case`object`:$(`load`,e);break;case`video`:case`audio`:for(r=0;r<Rf.length;r++)$(Rf[r],e);break;case`image`:$(`error`,e),$(`load`,e);break;case`details`:$(`toggle`,e);break;case`embed`:case`source`:case`link`:$(`error`,e),$(`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(s(137,t));default:ep(e,t,u,r,n,null)}return;default:if(bn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&tp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&ep(e,t,c,r,n,null))}var rp={};function ip(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 i=null,a=null,o=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)||ep(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&&(M=!0),a=m;break;case`name`:m!==f&&(M=!0),i=m;break;case`checked`:m!==f&&(M=!0),u=m;break;case`defaultChecked`:m!==f&&(M=!0),d=m;break;case`value`:m!==f&&(M=!0),o=m;break;case`defaultValue`:m!==f&&(M=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(s(137,t));break;default:m!==f&&ep(e,t,p,m,r,f)}}un(e,o,c,l,u,d,a,i);return;case`select`:for(a in m=o=c=p=null,n)if(l=n[a],n.hasOwnProperty(a)&&l!=null)switch(a){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(a)||ep(e,t,a,null,r,l)}for(i in r)if(a=r[i],l=n[i],r.hasOwnProperty(i)&&(a!=null||l!=null))switch(i){case`value`:a!==l&&(M=!0),p=a;break;case`defaultValue`:a!==l&&(M=!0),c=a;break;case`multiple`:a!==l&&(M=!0),o=a;default:a!==l&&ep(e,t,i,a,r,l)}t=c,n=o,r=m,p==null?!!r!=!!n&&(t==null?pn(e,!!n,n?[]:``,!1):pn(e,!!n,t,!0)):pn(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(i=n[c],n.hasOwnProperty(c)&&i!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:ep(e,t,c,null,r,i)}for(o in r)if(i=r[o],a=n[o],r.hasOwnProperty(o)&&(i!=null||a!=null))switch(o){case`value`:i!==a&&(M=!0),p=i;break;case`defaultValue`:i!==a&&(M=!0),m=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error(s(91));break;default:i!==a&&ep(e,t,o,i,r,a)}mn(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:ep(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&&(M=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:ep(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)&&ep(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(s(137,t));break;default:ep(e,t,u,p,r,m)}return;default:if(bn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&tp(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||tp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&ep(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||ep(e,t,f,p,r,m)}function ap(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function op(){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&&ap(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&&ap(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 sp=null,cp=null;function lp(e){return e.nodeType===9?e:e.ownerDocument}function up(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 dp(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 fp(e,t,n,r){return n=lp(n).createElement(e),n[kt]=r,n[At]=t,np(n,e,t),Ut(n),n}function pp(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 mp=null;function hp(){var e=window.event;return e&&e.type===`popstate`?e!==mp&&(mp=e,!0):(mp=null,!1)}var gp=typeof setTimeout==`function`?setTimeout:void 0,_p=typeof clearTimeout==`function`?clearTimeout:void 0,vp=typeof Promise==`function`?Promise:void 0,yp=typeof requestAnimationFrame==`function`?requestAnimationFrame:gp,bp=typeof queueMicrotask==`function`?queueMicrotask:vp===void 0?gp:function(e){return vp.resolve(null).then(e).catch(xp)};function xp(e){setTimeout(function(){throw e})}function Sp(e){return e===`head`}function Cp(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),Hh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)_m(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,_m(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[It]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&_m(e.ownerDocument.body)}n=i}while(n);Hh(t)}function wp(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 Tp(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 Ep(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 Dp(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 Op(e){return Dp(e.getBoundingClientRect(),getComputedStyle(e),e)}function kp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Dp(t,n,e)}function Ap(e){return e.documentElement.clientHeight}function jp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Mp(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`&&(Ap(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+=Xm(f),u>$m){s.length=o;break}f=new Promise(jp.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 Np(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Np.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:T({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Np.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},Np.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Pp(e){return{name:e,group:new Np(`group`,e),imagePair:new Np(`image-pair`,e),old:new Np(`old`,e),new:new Np(`new`,e)}}function Fp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Fp.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(Bp(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=Rp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),h(this._fragmentFiber.child,!1,Ip,e,s,r)}this._eventListeners=a}};function Ip(e,t,n,r){return b(e).addEventListener(t,n,r),!1}Fp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Bp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Rp(i.optionsOrUseCapture),h(this._fragmentFiber.child,!1,Lp,e,n,i),r.splice(t,1),a!==null&&a()}};function Lp(e,t,n,r){return b(e).removeEventListener(t,n,r),!1}function Rp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function zp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Bp(e,t,n,r){if(e.length===0)return-1;r=zp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&zp(a.optionsOrUseCapture)===r)return i}return-1}Fp.prototype.dispatchEvent=function(e){var t=g(this._fragmentFiber);if(t===null)return!0;t=b(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,Rp(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,Rp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Fp.prototype.focus=function(e){h(this._fragmentFiber.child,!0,Vp,e,void 0,void 0)};function Vp(e,t){return e.tag!==6&&(e=b(e),pm(e,t))}Fp.prototype.focusLast=function(e){var t=[];h(this._fragmentFiber.child,!0,Hp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Vp(t[n],e);n--);};function Hp(e,t){return t.push(e),!1}Fp.prototype.blur=function(){var e=g(this._fragmentFiber);e!==null&&(e=b(e),e=lp(e).activeElement,e!==null&&h(this._fragmentFiber.child,!1,Up,e,void 0,void 0))};function Up(e,t){return e.tag!==6&&(e=b(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Fp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),h(this._fragmentFiber.child,!1,Wp,e,void 0,void 0)};function Wp(e,t){return e.tag!==6&&(e=b(e),t.observe(e),!1)}Fp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),h(this._fragmentFiber.child,!1,Gp,e,void 0,void 0);for(var n=t=0;n<Kp.length;n++){var r=Kp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Kp[t++]=r}Kp.length=t}};function Gp(e,t){return e.tag!==6&&(e=b(e),t.unobserve(e),!1)}var Kp=[],qp=!1;function Jp(e,t,n){Kp.push({fragmentInstance:e,observer:t,instance:n}),qp||(qp=!0,mm(function(){qp=!1;var e=Kp;Kp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Fp.prototype.getClientRects=function(){var e=[];return h(this._fragmentFiber.child,!1,Yp,e,void 0,void 0),e};function Yp(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=b(e),t.push.apply(t,e.getClientRects());return!1}Fp.prototype.getRootNode=function(e){var t=g(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},Fp.prototype.compareDocumentPosition=function(e){var t=g(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];h(this._fragmentFiber.child,!1,Hp,n,void 0,void 0);var r=b(t);if(n.length===0){if(n=r,_(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=v(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=b(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=b(n[0]),i=b(n[n.length-1]);var a=_(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||Xp(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Xp(e,t,n,r,i){var a=zt(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=g(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=te(n,a,w),t===null?t=!1:(h(t,!0,C,a,n),a=x,x=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=te(r,a,w),t===null?t=!1:(h(t,!0,ee,a,r),a=x,S=x=null,t=a!==null)),t):!1}function Zp(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)}Fp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(s(566));var t=[];h(this._fragmentFiber.child,!1,Hp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=v(this._fragmentFiber);if(r=n?r[1]||r[0]||g(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=b(r),Zp(e,n);return}if(r=b(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 i=t[r];i.tag===6?(i=b(i),Zp(i,n)):b(i).scrollIntoView(e),r+=n?-1:1}};function Qp(e,t){return e=b(e),$p(e,t),!1}function $p(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function em(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,Rp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Kp.length;i++){var a=Kp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Kp[r++]=a)}Kp.length=r,n.observe(e)}),$p(e,t))}function tm(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,Rp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Jp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function nm(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`:nm(n),Rt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function rm(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[It])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=lm(e.nextSibling),e===null)break}return null}function im(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=lm(e.nextSibling),e===null))return null;return e}function am(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=lm(e.nextSibling),e===null))return null;return e}function om(e){return e.data===`$?`||e.data===`$~`}function sm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function cm(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 lm(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 um=null;function dm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return lm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function fm(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 pm(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 mm(e){yp(function(){yp(function(t){return e(t)})})}function hm(e,t,n){switch(t=lp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(s(452));return e;case`head`:if(e=t.head,!e)throw Error(s(453));return e;case`body`:if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function gm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&ep(e,t,r,null,rp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===wn&&(e.onclick=null),Rt(e)}function _m(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Rt(e)}var vm=new Map,ym=new Set;function bm(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 xm=A.d;A.d={f:Sm,r:Cm,D:Em,C:Dm,L:Om,m:km,X:jm,S:Am,M:Mm};function Sm(){var e=xm.f(),t=Rd();return e||t}function Cm(e){var t=Bt(e);t!==null&&t.tag===5&&t.type===`form`?nc(t):xm.r(e)}var wm=typeof document>`u`?null:document;function Tm(e,t,n){var r=wm;if(r&&typeof t==`string`&&t){var i=ln(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),ym.has(i)||(ym.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),np(t,`link`,e),Ut(t),r.head.appendChild(t)))}}function Em(e){xm.D(e),Tm(`dns-prefetch`,e,null)}function Dm(e,t){xm.C(e,t),Tm(`preconnect`,e,t)}function Om(e,t,n){xm.L(e,t,n);var r=wm;if(r&&e&&t){var i=`link[rel="preload"][as="`+ln(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+ln(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+ln(n.imageSizes)+`"]`)):i+=`[href="`+ln(e)+`"]`;var a=i;switch(t){case`style`:a=Pm(e);break;case`script`:a=Rm(e)}if(!(vm.has(a)||(e=T({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Fm(a))||t===`script`&&r.querySelector(zm(a))))){var o=r.createElement(`link`);np(o,`link`,e),t===`style`&&(o[Lt]=!0,o.onload=o.onerror=function(){Wt(o)}),Ut(o),r.head.appendChild(o)}}}function km(e,t){xm.m(e,t);var n=wm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+ln(r)+`"][href="`+ln(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Rm(e)}if(!vm.has(a)&&(e=T({rel:`modulepreload`,href:e},t),vm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zm(a)))return}r=n.createElement(`link`),np(r,`link`,e),Ut(r),n.head.appendChild(r)}}}function Am(e,t,n){xm.S(e,t,n);var r=wm;if(r&&e){var i=Ht(r).hoistableStyles,a=Pm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Fm(a)))s.loading=5;else{e=T({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vm.get(a))&&Hm(e,n);var c=o=r.createElement(`link`);Ut(c),np(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,Vm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jm(e,t){xm.X(e,t);var n=wm;if(n&&e){var r=Ht(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=T({src:e,async:!0},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Ut(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mm(e,t){xm.M(e,t);var n=wm;if(n&&e){var r=Ht(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=T({src:e,async:!0,type:`module`},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Ut(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nm(e,t,n,r){var i=(i=ke.current)?bm(i):null;if(!i)throw Error(s(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Pm(n.href),t=Ht(i).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=Pm(n.href);var a=Ht(i).hoistableStyles,o=a.get(e);if(o||(i=i.ownerDocument||i,o={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},a.set(e,o),(a=i.querySelector(Fm(e)))?a._p||(o.instance=a,o.state.loading=5):(a=vm.get(e),a||(a={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vm.set(e,a)),Lm(i,e,a,o.state))),t&&r===null)throw Error(s(528,``));return o}if(t&&r!==null)throw Error(s(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Rm(n),t=Ht(i).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(s(444,e))}}function Pm(e){return`href="`+ln(e)+`"`}function Fm(e){return`link[rel="stylesheet"][`+e+`]`}function Im(e){return T({},e,{"data-precedence":e.precedence,precedence:null})}function Lm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Lt]){r.loading=1;return}}else t=e.createElement(`link`),t[Lt]=!0,t.onload=t.onerror=Wt.bind(null,t),np(t,`link`,n),Ut(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 Rm(e){return`[src="`+ln(e)+`"]`}function zm(e){return`script[async]`+e}function Bm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+ln(n.href)+`"]`);if(r)return t.instance=r,Ut(r),r;var i=T({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ut(r),np(r,`style`,i),Vm(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Pm(n.href);var a=e.querySelector(Fm(i));if(a)return t.state.loading|=4,t.instance=a,Ut(a),a;r=Im(n),(i=vm.get(i))&&Hm(r,i),a=(e.ownerDocument||e).createElement(`link`),Ut(a);var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),np(a,`link`,r),t.state.loading|=4,Vm(a,n.precedence,e),t.instance=a;case`script`:return a=Rm(n.src),(i=e.querySelector(zm(a)))?(t.instance=i,Ut(i),i):(r=n,(i=vm.get(a))&&(r=T({},n),Um(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),Ut(i),np(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(s(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Vm(r,n.precedence,e));return t.instance}function Vm(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 Hm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Um(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Wm=null;function Gm(e,t,n){if(Wm===null){var r=new Map,i=Wm=new Map;i.set(n,r)}else i=Wm,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[It]||a[kt]||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 Km(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function qm(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 Jm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Ym(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Xm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Zm(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Xm(t),e.suspenseyImages.push(t)),e=rh.bind(e),t.decode().then(e,e))}function Qm(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=Pm(r.href),a=t.querySelector(Fm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=nh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ut(a);return}a=t.ownerDocument||t,r=Im(r),(i=vm.get(i))&&Hm(r,i),a=a.createElement(`link`),Ut(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),np(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=nh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var $m=0;function eh(e,t){return e.stylesheets&&e.count===0&&ah(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ah(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&$m===0&&($m=62500*op());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ah(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>$m?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function th(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ah(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function nh(){this.count--,th(this)}function rh(){this.imgCount--,th(this)}var ih=null;function ah(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ih=new Map,t.forEach(oh,e),ih=null,nh.call(e))}function oh(e,t){if(!(t.state.loading&4)){var n=ih.get(e);if(n)var r=n.get(null);else{n=new Map,ih.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=nh.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 sh={$$typeof:D,Provider:null,Consumer:null,_currentValue:Se,_currentValue2:Se,_threadCount:0};function ch(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=vt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.hiddenUpdates=vt(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 lh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ch(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Li(3,null,null,t),e.current=a,a.stateNode=e,t=La(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},yo(a),e}function uh(e){return e?(e=Fi,e):Fi}function dh(e,t,n,r,i,a){i=uh(i),r.context===null?r.context=i:r.pendingContext=i,r=xo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=So(e,r,t),n!==null&&(Nd(n,e,t),Co(n,e,t))}function fh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ph(e,t){fh(e,t),(e=e.alternate)&&fh(e,t)}function mh(e){if(e.tag===13||e.tag===31){var t=Mi(e,67108864);t!==null&&Nd(t,e,67108864),ph(e,67108864)}}function hh(e){if(e.tag===13||e.tag===31){var t=Ad();t=wt(t);var n=Mi(e,t);n!==null&&Nd(n,e,t),ph(e,t)}}var gh=!0;function _h(e,t,n,r){var i=k.T;k.T=null;var a=A.p;try{A.p=2,yh(e,t,n,r)}finally{A.p=a,k.T=i}}function vh(e,t,n,r){var i=k.T;k.T=null;var a=A.p;try{A.p=8,yh(e,t,n,r)}finally{A.p=a,k.T=i}}function yh(e,t,n,r){if(gh){var i=bh(r);if(i===null)Gf(e,t,r,xh,n),Mh(e,r);else if(Ph(i,e,t,n,r))r.stopPropagation();else if(Mh(e,r),t&4&&-1<jh.indexOf(e)){for(;i!==null;){var a=Bt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=ft(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-at(o);s.entanglements[1]|=c,o&=~c}Tf(a),!(K&6)&&(gd=qe()+500,Ef(0,!1))}}break;case 31:case 13:s=Mi(a,2),s!==null&&Nd(s,a,2),Rd(),ph(a,2)}if(a=bh(r),a===null&&Gf(e,t,r,xh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Gf(e,t,r,null,n)}}function bh(e){return e=En(e),Sh(e)}var xh=null;function Sh(e){if(xh=null,e=zt(e),e!==null){var t=l(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=u(t),e!==null)return e;e=null}else if(n===31){if(e=d(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 xh=e,null}function Ch(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(Je()){case Ye:return 2;case Xe:return 8;case Ze:case Qe:return 32;case $e:return 268435456;default:return 32}default:return 32}}var wh=!1,Th=null,Eh=null,Dh=null,Oh=new Map,kh=new Map,Ah=[],jh=`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 Mh(e,t){switch(e){case`focusin`:case`focusout`:Th=null;break;case`dragenter`:case`dragleave`:Eh=null;break;case`mouseover`:case`mouseout`:Dh=null;break;case`pointerover`:case`pointerout`:Oh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:kh.delete(t.pointerId)}}function Nh(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=Bt(t),t!==null&&mh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ph(e,t,n,r,i){switch(t){case`focusin`:return Th=Nh(Th,e,t,n,r,i),!0;case`dragenter`:return Eh=Nh(Eh,e,t,n,r,i),!0;case`mouseover`:return Dh=Nh(Dh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Oh.set(a,Nh(Oh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,kh.set(a,Nh(kh.get(a)||null,e,t,n,r,i)),!0}return!1}function Fh(e){var t=zt(e.target);if(t!==null){var n=l(t);if(n!==null){if(t=n.tag,t===13){if(t=u(n),t!==null){e.blockedOn=t,Dt(e.priority,function(){hh(n)});return}}else if(t===31){if(t=d(n),t!==null){e.blockedOn=t,Dt(e.priority,function(){hh(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 Ih(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=bh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Tn=r,n.target.dispatchEvent(r),Tn=null}else return t=Bt(n),t!==null&&mh(t),e.blockedOn=n,!1;t.shift()}return!0}function Lh(e,t,n){Ih(e)&&n.delete(t)}function Rh(){wh=!1,Th!==null&&Ih(Th)&&(Th=null),Eh!==null&&Ih(Eh)&&(Eh=null),Dh!==null&&Ih(Dh)&&(Dh=null),Oh.forEach(Lh),kh.forEach(Lh)}function zh(e,n){e.blockedOn===n&&(e.blockedOn=null,wh||(wh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Rh)))}var Bh=null;function Vh(e){Bh!==e&&(Bh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Bh===e&&(Bh=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(Sh(r||n)===null)continue;break}var a=Bt(n);a!==null&&(e.splice(t,3),t-=3,ec(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Hh(e){function t(t){return zh(t,e)}Th!==null&&zh(Th,e),Eh!==null&&zh(Eh,e),Dh!==null&&zh(Dh,e),Oh.forEach(t),kh.forEach(t);for(var n=0;n<Ah.length;n++){var r=Ah[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ah.length&&(n=Ah[0],n.blockedOn===null);)Fh(n),n.blockedOn===null&&Ah.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[At]||null;if(typeof a==`function`)o||Vh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[At]||null)s=o.formAction;else if(Sh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Vh(n)}}}function Uh(){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 Wh(e){this._internalRoot=e}Gh.prototype.render=Wh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current;dh(n,Ad(),e,t,null,null)},Gh.prototype.unmount=Wh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dh(e.current,2,null,e,null,null),Rd(),t[jt]=null}};function Gh(e){this._internalRoot=e}Gh.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ah.length&&t!==0&&t<Ah[n].priority;n++);Ah.splice(n,0,e),n===0&&Fh(e)}};var Kh=r.version;if(Kh!==`19.3.0`)throw Error(s(527,Kh,`19.3.0`));A.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(s(188)):(e=Object.keys(e).join(`,`),Error(s(268,e)));return e=p(t),e=e===null?null:m(e),e=e===null?null:e.stateNode,e};var qh={bundleType:0,version:`19.3.0`,rendererPackageName:`react-dom`,currentDispatcherRef:k,reconcilerVersion:`19.3.0`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Jh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jh.isDisabled&&Jh.supportsFiber)try{nt=Jh.inject(qh),rt=Jh}catch{}}e.createRoot=function(e,t){if(!c(e))throw Error(s(299));var n=!1,r=``,i=Sc,a=Cc,o=wc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=lh(e,1,!1,null,null,n,r,null,i,a,o,Uh),e[jt]=t.current,Uf(e),new Wh(t)}})),c=e(((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=s()})),l=n(),u=c();function d(e){if(!e.trim())return null;try{let t=JSON.parse(e);return!t||typeof t!=`object`||typeof t.type!=`string`?null:t}catch{return null}}function f(e){return e.type===`tabtape`}var p=class{h;initial=[];batch=[];ended=!1;constructor(e){this.h=e}get live(){return this.initial===null}lines(e){for(let t of e){let e=d(t);e&&(f(e)?this.control(e.data?.event):this.initial?this.initial.push(e):this.batch.push(e))}this.flush()}close(){this.goLive(),this.flush()}control(e){switch(e){case`live`:this.goLive();break;case`trimmed`:this.flush(),this.h.onTrimmed();break;case`ended`:this.goLive(),this.flush(),this.ended||(this.ended=!0,this.h.onEnded())}}goLive(){if(!this.initial)return;let e=this.initial;this.initial=null,this.h.onLive(e)}flush(){if(!this.batch.length)return;let e=this.batch;this.batch=[],this.h.onRecords(e)}},m=class{records=[];rrweb=[];listeners=new Set;push(e){for(let t of e)this.records.push(t),t.type===`rrweb`&&this.rrweb.push(t.data);if(e.length)for(let e of this.listeners)e()}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}},h=`/tabtape/api`,g={"X-Tabtape-Client":`ui`},_=class extends Error{status;constructor(e,t){super(t),this.status=e}};async function v(e){let t=await e.text().catch(()=>``);return new _(e.status,`${e.status} ${t.trim()}`.trim())}async function y(e){if(!e.ok)throw await v(e);return e.json()}var b=e=>`${h}/sessions/${encodeURIComponent(e)}`,x=()=>fetch(`${h}/health`).then(e=>y(e)),S=()=>fetch(`${h}/sessions`).then(e=>y(e)),C=e=>fetch(b(e)).then(e=>y(e)),ee=e=>`${b(e)}/events`,w=e=>`${ee(e)}?gzip=1`;function te(e,t){let n=new URLSearchParams({format:`json`,lang:t.lang??`en`});return t.from!==void 0&&n.set(`from`,String(Math.round(t.from))),t.to!==void 0&&n.set(`to`,String(Math.round(t.to))),fetch(`${b(e)}/repro?${n}`).then(e=>y(e))}function T(e,t){t&&(e.set(`from`,String(Math.round(t.from))),e.set(`to`,String(Math.round(t.to))))}function ne(e,t,n=!1){let r=new URLSearchParams;t.secrets&&r.set(`secrets`,`1`),t.bodies||r.set(`bodies`,`0`),t.consoleArgs||r.set(`args`,`0`),T(r,t.range),n&&r.set(`estimate`,`1`);let i=r.toString();return`${b(e)}/export${i?`?${i}`:``}`}function E(e,t={}){let n=new URLSearchParams;t.secrets&&n.set(`secrets`,`1`),T(n,t.range);let r=n.toString();return`${b(e)}/har${r?`?${r}`:``}`}var re=(e,t,n)=>fetch(ne(e,t,!0),{signal:n}).then(e=>y(e));async function ie(e){let t=await fetch(b(e),{method:`DELETE`,headers:g});if(!t.ok)throw await v(t)}async function ae(e,t,n){if(!e.body)throw new _(e.status,`empty response`);let r=e.body.getReader(),i=new TextDecoder,a=``,o=0;for(;;){let{done:e,value:s}=await r.read();if(e)break;o+=s.byteLength,n?.(o);let c=(a+i.decode(s,{stream:!0})).split(`
|
|
8
|
+
`+e.stack}}var He=Object.prototype.hasOwnProperty,Ue=t.unstable_scheduleCallback,We=t.unstable_cancelCallback,Ge=t.unstable_shouldYield,Ke=t.unstable_requestPaint,qe=t.unstable_now,Je=t.unstable_getCurrentPriorityLevel,Ye=t.unstable_ImmediatePriority,Xe=t.unstable_UserBlockingPriority,Ze=t.unstable_NormalPriority,Qe=t.unstable_LowPriority,$e=t.unstable_IdlePriority,et=t.log,tt=t.unstable_setDisableYieldValue,nt=null,rt=null;function it(e){if(typeof et==`function`&&tt(e),rt&&typeof rt.setStrictMode==`function`)try{rt.setStrictMode(nt,e)}catch{}}var at=Math.clz32?Math.clz32:ct,ot=Math.log,st=Math.LN2;function ct(e){return e>>>=0,e===0?32:31-(ot(e)/st|0)|0}var lt=256,ut=262144,dt=4194304;function ft(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 pt(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=ft(n))):i=ft(o):i=ft(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=ft(n))):i=ft(o)):i=ft(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 mt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ht(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-at(n),i=1<<r;t|=e[r],n&=~i}return t}function gt(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 _t(){var e=dt;return dt<<=1,!(dt&62914560)&&(dt=4194304),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function bt(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-at(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&&xt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function xt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-at(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function St(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Ct(e,t){var n=t&-t;return n=n&42?1:wt(n),(n&(e.suspendedLanes|t))===0?n:0}function wt(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 Tt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Et(){var e=A.p;return e===0?(e=window.event,e===void 0?32:Ch(e.type)):e}function Dt(e,t){var n=A.p;try{return A.p=e,t()}finally{A.p=n}}var Ot=Math.random().toString(36).slice(2),kt=`__reactFiber$`+Ot,At=`__reactProps$`+Ot,jt=`__reactContainer$`+Ot,Mt=`__reactEvents$`+Ot,Nt=`__reactListeners$`+Ot,Pt=`__reactHandles$`+Ot,Ft=`__reactResources$`+Ot,It=`__reactMarker$`+Ot,Lt=`__reactLoad$`+Ot;function Rt(e){delete e[kt],delete e[At],delete e[Nt],delete e[Pt]}function zt(e){var t;if(t=e[kt])return t;for(var n=e.parentNode;n;){if(t=n[jt]||n[kt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=fm(e);e!==null;){if(n=e[kt])return n;e=fm(e)}return t}e=n,n=e.parentNode}return null}function Bt(e){if(e=e[kt]||e[jt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Vt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Ht(e){var t=e[Ft];return t||=e[Ft]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Ut(e){e[It]=!0}function Wt(e){e[Lt]=void 0}var Gt=new Set,Kt={};function qt(e,t){Jt(e,t),Jt(e+`Capture`,t)}function Jt(e,t){for(Kt[e]=t,e=0;e<t.length;e++)Gt.add(t[e])}var Yt=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]*$`),Xt={},Zt={};function Qt(e){return He.call(Zt,e)?!0:He.call(Xt,e)?!1:Yt.test(e)?Zt[e]=!0:(Xt[e]=!0,!1)}var M=!1;function $t(){var e=M;return M=!1,e}function en(e,t,n){if(Qt(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 tn(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 N(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 nn(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function rn(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function an(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 on(e){if(!e._valueTracker){var t=rn(e)?`checked`:`value`;e._valueTracker=an(e,t,``+e[t])}}function sn(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=rn(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var cn=/[\n"\\]/g;function ln(e){return e.replace(cn,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function un(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=``+nn(t)):e.value!==``+nn(t)&&(e.value=``+nn(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):fn(e,nn(n)):o===`number`&&e.value==t?fn(e,nn(e.value)):fn(e,nn(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=``+nn(s):e.removeAttribute(`name`)}function dn(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)){on(e);return}n=n==null?``:``+nn(n),t=t==null?n:``+nn(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),on(e)}function fn(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function pn(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=``+nn(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 mn(e,t,n){if(t!=null&&(t=``+nn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+nn(n)}function hn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(s(92));if(xe(r)){if(1<r.length)throw Error(s(93));r=r[0]}n=r}n??=``,t=n}n=nn(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),on(e)}function gn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var _n=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 vn(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||_n.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function yn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(s(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]=``,M=!0);for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&(vn(e,i,r),M=!0)}else for(var a in t)t.hasOwnProperty(a)&&vn(e,a,t[a])}function bn(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 xn=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`]]),Sn=/^[\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 Cn(e){return Sn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function wn(){}var Tn=null;function En(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Dn=null,On=null;function kn(e){var t=Bt(e);if(t&&(e=t.stateNode)){var n=e[At]||null;a:switch(e=t.stateNode,t.type){case`input`:if(un(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="`+ln(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[At]||null;if(!i)throw Error(s(90));un(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&sn(r)}break a;case`textarea`:mn(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&pn(e,!!n.multiple,t,!1)}}}var An=!1;function jn(e,t,n){if(An)return e(t,n);An=!0;try{return e(t)}finally{if(An=!1,(Dn!==null||On!==null)&&(Rd(),Dn&&(t=Dn,e=On,On=Dn=null,kn(t),e)))for(t=0;t<e.length;t++)kn(e[t])}}function Mn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[At]||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(s(231,t,typeof n));return n}var Nn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Pn=!1;if(Nn)try{var Fn={};Object.defineProperty(Fn,"passive",{get:function(){Pn=!0}}),window.addEventListener(`test`,Fn,Fn),window.removeEventListener(`test`,Fn,Fn)}catch{Pn=!1}var In=null,Ln=null,Rn=null;function zn(){if(Rn)return Rn;var e,t=Ln,n=t.length,r,i=`value`in In?In.value:In.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 Rn=i.slice(e,1<r?1-r:void 0)}function Bn(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 Vn(){return!0}function Hn(){return!1}function Un(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)?Vn:Hn,this.isPropagationStopped=Hn,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=Vn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Vn)},persist:function(){},isPersistent:Vn}),t}var Wn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gn=Un(Wn),Kn=T({},Wn,{view:0,detail:0}),qn=Un(Kn),Jn,Yn,Xn,Zn=T({},Kn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:cr,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!==Xn&&(Xn&&e.type===`mousemove`?(Jn=e.screenX-Xn.screenX,Yn=e.screenY-Xn.screenY):Yn=Jn=0,Xn=e),Jn)},movementY:function(e){return`movementY`in e?e.movementY:Yn}}),Qn=Un(Zn),$n=Un(T({},Zn,{dataTransfer:0})),er=Un(T({},Kn,{relatedTarget:0})),tr=Un(T({},Wn,{animationName:0,elapsedTime:0,pseudoElement:0})),nr=Un(T({},Wn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),rr=Un(T({},Wn,{data:0})),ir={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},ar={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`},or={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function sr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=or[e])?!!t[e]:!1}function cr(){return sr}var lr=Un(T({},Kn,{key:function(e){if(e.key){var t=ir[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Bn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?ar[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:cr,charCode:function(e){return e.type===`keypress`?Bn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Bn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),ur=Un(T({},Zn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),dr=Un(T({},Wn,{submitter:0})),fr=Un(T({},Kn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cr})),pr=Un(T({},Wn,{propertyName:0,elapsedTime:0,pseudoElement:0})),mr=Un(T({},Zn,{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})),hr=Un(T({},Wn,{newState:0,oldState:0,source:0})),gr=[9,13,27,32],_r=Nn&&`CompositionEvent`in window,vr=null;Nn&&`documentMode`in document&&(vr=document.documentMode);var yr=Nn&&`TextEvent`in window&&!vr,br=Nn&&(!_r||vr&&8<vr&&11>=vr),xr=` `,Sr=!1;function Cr(e,t){switch(e){case`keyup`:return gr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function wr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Tr=!1;function Er(e,t){switch(e){case`compositionend`:return wr(t);case`keypress`:return t.which===32?(Sr=!0,xr):null;case`textInput`:return e=t.data,e===xr&&Sr?null:e;default:return null}}function Dr(e,t){if(Tr)return e===`compositionend`||!_r&&Cr(e,t)?(e=zn(),Rn=Ln=In=null,Tr=!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 br&&t.locale!==`ko`?null:t.data;default:return null}}var Or={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 kr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Or[e.type]:t===`textarea`}function Ar(e,t,n,r){Dn?On?On.push(r):On=[r]:Dn=r,t=qf(t,`onChange`),0<t.length&&(n=new Gn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var jr=null,Mr=null;function Nr(e){Bf(e,0)}function Pr(e){if(sn(Vt(e)))return e}function Fr(e,t){if(e===`change`)return t}var Ir=!1;if(Nn){var Lr;if(Nn){var Rr=`oninput`in document;if(!Rr){var zr=document.createElement(`div`);zr.setAttribute(`oninput`,`return;`),Rr=typeof zr.oninput==`function`}Lr=Rr}else Lr=!1;Ir=Lr&&(!document.documentMode||9<document.documentMode)}function Br(){jr&&(jr.detachEvent(`onpropertychange`,Vr),Mr=jr=null)}function Vr(e){if(e.propertyName===`value`&&Pr(Mr)){var t=[];Ar(t,Mr,e,En(e)),jn(Nr,t)}}function Hr(e,t,n){e===`focusin`?(Br(),jr=t,Mr=n,jr.attachEvent(`onpropertychange`,Vr)):e===`focusout`&&Br()}function Ur(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Pr(Mr)}function Wr(e,t){if(e===`click`)return Pr(t)}function Gr(e,t){if(e===`input`||e===`change`)return Pr(t)}function Kr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var qr=typeof Object.is==`function`?Object.is:Kr;function Jr(e,t){if(qr(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(!He.call(t,i)||!qr(e[i],t[i]))return!1}return!0}function Yr(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 Xr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zr(e,t){var n=Xr(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=Xr(n)}}function Qr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $r(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Yr(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=Yr(e.document)}return t}function ei(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 ti=Nn&&`documentMode`in document&&11>=document.documentMode,ni=null,ri=null,ii=null,ai=!1;function oi(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ai||ni==null||ni!==Yr(r)||(r=ni,`selectionStart`in r&&ei(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}),ii&&Jr(ii,r)||(ii=r,r=qf(ri,`onSelect`),0<r.length&&(t=new Gn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=ni)))}function si(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var ci={animationend:si(`Animation`,`AnimationEnd`),animationiteration:si(`Animation`,`AnimationIteration`),animationstart:si(`Animation`,`AnimationStart`),transitionrun:si(`Transition`,`TransitionRun`),transitionstart:si(`Transition`,`TransitionStart`),transitioncancel:si(`Transition`,`TransitionCancel`),transitionend:si(`Transition`,`TransitionEnd`)},li={},ui={};Nn&&(ui=document.createElement(`div`).style,`AnimationEvent`in window||(delete ci.animationend.animation,delete ci.animationiteration.animation,delete ci.animationstart.animation),`TransitionEvent`in window||delete ci.transitionend.transition);function di(e){if(li[e])return li[e];if(!ci[e])return e;var t=ci[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ui)return li[e]=t[n];return e}var P=di(`animationend`),fi=di(`animationiteration`),pi=di(`animationstart`),mi=di(`transitionrun`),hi=di(`transitionstart`),gi=di(`transitioncancel`),_i=di(`transitionend`),vi=new Map,yi=`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(` `);yi.push(`scrollEnd`);function bi(e,t){vi.set(e,t),qt(t,[e])}var xi=0;function Si(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=yd.identifierPrefix;var n=xi++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function Ci(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 wi(e,t){return e=Ci(e),t=Ci(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var Ti=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)},Ei=[],Di=0,Oi=0;function ki(){for(var e=Di,t=Oi=Di=0;t<e;){var n=Ei[t];Ei[t++]=null;var r=Ei[t];Ei[t++]=null;var i=Ei[t];Ei[t++]=null;var a=Ei[t];if(Ei[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&&Ni(n,i,a)}}function Ai(e,t,n,r){Ei[Di++]=e,Ei[Di++]=t,Ei[Di++]=n,Ei[Di++]=r,Oi|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ji(e,t,n,r){return Ai(e,t,n,r),Pi(e)}function Mi(e,t){return Ai(e,null,null,t),Pi(e)}function Ni(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-at(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Pi(e){if(50<Od)throw Od=0,kd=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Fi={};function Ii(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 Li(e,t,n,r){return new Ii(e,t,n,r)}function Ri(e){return e=e.prototype,!(!e||!e.isReactComponent)}function zi(e,t){var n=e.alternate;return n===null?(n=Li(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 Bi(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 Vi(e,t,n,r,i,a){var o=0;if(r=e,typeof r==`function`)Ri(r)&&(o=1);else if(typeof r==`string`)o=qm(e,n,De.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case pe:return e=Li(31,n,t,i),e.elementType=pe,e.lanes=a,e;case ie:return Hi(n.children,i,a,t);case ae:o=8,i|=24;break;case oe:return e=Li(12,n,t,i|2),e.elementType=oe,e.lanes=a,e;case le:return e=Li(13,n,t,i),e.elementType=le,e.lanes=a,e;case ue:return e=Li(19,n,t,i),e.elementType=ue,e.lanes=a,e;case O:case he:return e=i|32,e=Li(30,n,t,e),e.elementType=he,e.lanes=a,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case D:o=10;break a;case se:o=9;break a;case ce:o=11;break a;case de:o=14;break a;case fe:o=16,r=null;break a}o=29,n=Error(s(130,e===null?`null`:typeof e,``)),r=null}return t=Li(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Hi(e,t,n,r){return e=Li(7,e,r,t),e.lanes=n,e}function Ui(e,t,n){return e=Li(6,e,null,t),e.lanes=n,e}function Wi(e){var t=Li(18,null,null,0);return t.stateNode=e,t}function Gi(e,t,n){return t=Li(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ki=new WeakMap;function qi(e,t){if(typeof e==`object`&&e){var n=Ki.get(e);return n===void 0?(t={value:e,source:t,stack:Ve(t)},Ki.set(e,t),t):n}return{value:e,source:t,stack:Ve(t)}}var Ji=[],Yi=0,Xi=null,Zi=0,Qi=[],$i=0,ea=null,ta=1,na=``;function ra(e,t){Ji[Yi++]=Zi,Ji[Yi++]=Xi,Xi=e,Zi=t}function ia(e,t,n){Qi[$i++]=ta,Qi[$i++]=na,Qi[$i++]=ea,ea=e;var r=ta;e=na;var i=32-at(r)-1;r&=~(1<<i),n+=1;var a=32-at(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ta=1<<32-at(t)+i|n<<i|r,na=a+e}else ta=1<<a|n<<i|r,na=e}function aa(e){e.return!==null&&(ra(e,1),ia(e,1,0))}function oa(e){for(;e===Xi;)Xi=Ji[--Yi],Ji[Yi]=null,Zi=Ji[--Yi],Ji[Yi]=null;for(;e===ea;)ea=Qi[--$i],Qi[$i]=null,na=Qi[--$i],Qi[$i]=null,ta=Qi[--$i],Qi[$i]=null}function sa(e,t){Qi[$i++]=ta,Qi[$i++]=na,Qi[$i++]=ea,ta=t.id,na=t.overflow,ea=e}var ca=null,la=null,F=!1,ua=null,da=!1,fa=Error(s(519));function pa(e){throw ya(qi(Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),fa}function ma(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[kt]=e,t[At]=r,n){case`dialog`:$(`cancel`,t),$(`close`,t);break;case`iframe`:case`object`:case`embed`:$(`load`,t);break;case`video`:case`audio`:for(n=0;n<Rf.length;n++)$(Rf[n],t);break;case`source`:$(`error`,t);break;case`img`:case`image`:case`link`:$(`error`,t),$(`load`,t);break;case`details`:$(`toggle`,t);break;case`input`:$(`invalid`,t),dn(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:$(`invalid`,t);break;case`textarea`:$(`invalid`,t),hn(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||$f(t.textContent,n)?(r.popover!=null&&($(`beforetoggle`,t),$(`toggle`,t)),r.onScroll!=null&&$(`scroll`,t),r.onScrollEnd!=null&&$(`scrollend`,t),r.onClick!=null&&(t.onclick=wn),t=!0):t=!1,t||pa(e,!0)}function ha(e){for(ca=e.return;ca;)switch(ca.tag){case 5:case 31:case 13:da=!1;return;case 27:case 3:da=!0;return;default:ca=ca.return}}function ga(e){if(e!==ca)return!1;if(!F)return ha(e),F=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||pp(e.type,e.memoizedProps)),n=!n),n&&la&&pa(e),ha(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(317));la=dm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(317));la=dm(e)}else t===27?(t=la,Sp(e.type)?(e=um,um=null,la=e):la=t):la=ca?lm(e.stateNode.nextSibling):null;return!0}function _a(){la=ca=null,F=!1}function va(){var e=ua;return e!==null&&(dd===null?dd=e:dd.push.apply(dd,e),ua=null),e}function ya(e){ua===null?ua=[e]:ua.push(e)}var ba=j(null),xa=null,Sa=null;function Ca(e,t,n){Ee(ba,t._currentValue),t._currentValue=n}function wa(e){e._currentValue=ba.current,Te(ba)}function Ta(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 Ea(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var o=i.child;a=a.firstContext;a:for(;a!==null;){var c=a;a=i;for(var l=0;l<t.length;l++)if(c.context===t[l]){a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),Ta(a.return,n,e),r||(o=null);break a}a=c.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(s(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Ta(o,n,e),o=null}else i.tag===13&&i.memoizedState!==null&&i.memoizedState.dehydrated===null?(i.lanes|=n,o=i.alternate,o!==null&&(o.lanes|=n),Ta(i.return,n,e),o=i.child,o=o===null?null:o.sibling):o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function Da(e,t,n,r){e=null;for(var i=t,a=!1;i!==null;){if(!a){if(i.flags&524288)a=!0;else if(i.flags&262144)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(s(387));if(o=o.memoizedProps,o!==null){var c=i.type;qr(i.pendingProps.value,o.value)||(e===null?e=[c]:e.push(c))}}else if(i===Ae.current){if(o=i.alternate,o===null)throw Error(s(387));o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[sh]:e.push(sh))}i=i.return}return e!==null&&Ea(t,e,n,r),t.flags|=262144,e!==null}function Oa(e){for(e=e.firstContext;e!==null;){if(!qr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ka(e){xa=e,Sa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Aa(e){return Ma(xa,e)}function ja(e,t){return xa===null&&ka(e),Ma(e,t)}function Ma(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Sa===null){if(e===null)throw Error(s(308));Sa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Sa=Sa.next=t;return n}var Na=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()})}},Pa=t.unstable_scheduleCallback,Fa=t.unstable_NormalPriority,Ia={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function La(){return{controller:new Na,data:new Map,refCount:0}}function Ra(e){e.refCount--,e.refCount===0&&Pa(Fa,function(){e.controller.abort()})}function za(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 Ba=null;function Va(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Ha=null,Ua=0,Wa=0,Ga=null;function Ka(e,t){if(Ha===null){var n=Ha=[];Ua=0,Wa=Nf(),Ga={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Ua++,t.then(qa,qa),t}function qa(){if(--Ua===0&&(Ba=null,Ha!==null)){Ga!==null&&(Ga.status=`fulfilled`);var e=Ha;Ha=null,Wa=0,Ga=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ja(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 Ya=k.S;k.S=function(e,t){if(md=qe(),typeof t==`object`&&t&&typeof t.then==`function`&&Ka(e,t),Ba!==null)for(var n=yf;n!==null;)za(n,Ba),n=n.next;if(n=e.types,n!==null){for(var r=yf;r!==null;)za(r,n),r=r.next;if(Wa!==0){r=Ba,r===null&&(r=Ba=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Ya!==null&&Ya(e,t)};var Xa=j(null);function Za(){var e=Xa.current;return e===null?$u.pooledCache:e}function Qa(e,t){t===null?Ee(Xa,Xa.current):Ee(Xa,t.pool)}function I(){var e=Za();return e===null?null:{parent:Ia._currentValue,pool:e}}var $a=Error(s(460)),eo=Error(s(474)),to=Error(s(542)),no={then:function(){}};function ro(e){return e=e.status,e===`fulfilled`||e===`rejected`}function io(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(wn,wn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,co(e),e===void 0&&!(`reason`in t)?Error(s(600)):e;default:if(typeof t.status==`string`)t.then(wn,wn);else{if(e=$u,e!==null&&100<e.shellSuspendCounter)throw Error(s(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,co(e),e}throw oo=t,$a}}function ao(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(oo=e,$a):e}}var oo=null;function so(){if(oo===null)throw Error(s(459));var e=oo;return oo=null,e}function co(e){if(e===$a||e===to)throw Error(s(483))}var lo=null,uo=0;function fo(e){var t=uo;return uo+=1,lo===null&&(lo=[]),io(lo,e,t)}function po(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function mo(e,t){throw t.$$typeof===ne?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function ho(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 i(e,t){return e=zi(e,t),e.index=0,e.sibling=null,e}function a(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 o(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Ui(n,e.mode,r),t.return=e,t):(t=i(t,n),t.return=e,t)}function l(e,t,n,r){var a=n.type;return a===ie?(e=d(e,t,n.props.children,r,n.key),po(e,n),e):t!==null&&(t.elementType===a||typeof a==`object`&&a&&a.$$typeof===fe&&ao(a)===t.type)?(t=i(t,n.props),po(t,n),t.return=e,t):(t=Vi(n.type,n.key,n.props,null,e.mode,r),po(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=Gi(n,e.mode,r),t.return=e,t):(t=i(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,a){return t===null||t.tag!==7?(t=Hi(n,e.mode,r,a),t.return=e,t):(t=i(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Ui(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case E:return n=Vi(t.type,t.key,t.props,null,e.mode,n),po(n,t),n.return=e,n;case re:return t=Gi(t,e.mode,n),t.return=e,t;case fe:return t=ao(t),f(e,t,n)}if(xe(t)||ve(t))return t=Hi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,fo(t),n);if(t.$$typeof===D)return f(e,ja(e,t),n);mo(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 E:return n.key===i?l(e,t,n,r):null;case re:return n.key===i?u(e,t,n,r):null;case fe:return n=ao(n),p(e,t,n,r)}if(xe(n)||ve(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,fo(n),r);if(n.$$typeof===D)return p(e,t,ja(e,n),r);mo(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 E:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case re:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case fe:return r=ao(r),m(e,t,n,r,i)}if(xe(r)||ve(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,fo(r),i);if(r.$$typeof===D)return m(e,t,n,ja(t,r),i);mo(t,r)}return null}function h(i,o,s,c){for(var l=null,u=null,d=o,h=o=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),o=a(_,o,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),F&&ra(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(o=a(d,o,h),u===null?l=d:u.sibling=d,u=d);return F&&ra(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)),o=a(g,o,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),F&&ra(i,h),l}function g(i,o,c,l){if(c==null)throw Error(s(151));for(var u=null,d=null,h=o,g=o=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),o=a(y,o,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),F&&ra(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(o=a(v,o,g),d===null?u=v:d.sibling=v,d=v);return F&&ra(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),o=a(v,o,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),F&&ra(i,g),u}function _(e,r,a,c){if(typeof a==`object`&&a&&a.type===ie&&a.key===null&&a.props.ref===void 0&&(a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case E:a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===ie){if(r.tag===7){n(e,r.sibling),c=i(r,a.props.children),po(c,a),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===fe&&ao(l)===r.type){n(e,r.sibling),c=i(r,a.props),po(c,a),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}a.type===ie?(c=Hi(a.props.children,e.mode,c,a.key),po(c,a),c.return=e,e=c):(c=Vi(a.type,a.key,a.props,null,e.mode,c),po(c,a),c.return=e,e=c)}return o(e);case re:a:{for(l=a.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),c=i(r,a.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Gi(a,e.mode,c),c.return=e,e=c}return o(e);case fe:return a=ao(a),_(e,r,a,c)}if(xe(a))return h(e,r,a,c);if(ve(a)){if(l=ve(a),typeof l!=`function`)throw Error(s(150));return a=l.call(a),g(e,r,a,c)}if(typeof a.then==`function`)return _(e,r,fo(a),c);if(a.$$typeof===D)return _(e,r,ja(e,a),c);mo(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(a=``+a,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,a),c.return=e,e=c):(n(e,r),c=Ui(a,e.mode,c),c.return=e,e=c),o(e)):n(e,r)}return function(e,t,n,r){try{uo=0;var i=_(e,t,n,r);return lo=null,i}catch(t){if(t===$a||t===to)throw t;var a=Li(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var go=ho(!0),_o=ho(!1),vo=!1;function yo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bo(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 xo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function So(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,q&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Pi(e),Ni(e,null,n),t}return Ai(e,r,t,n),Pi(e)}function Co(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,St(e,n)}}function wo(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;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var To=!1;function Eo(){if(To){var e=Ga;if(e!==null)throw e}}function Do(e,t,n,r){To=!1;var i=e.updateQueue;vo=!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?(Y&f)===f:(r&f)===f){f!==0&&f===Wa&&(To=!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:vo=!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),ad|=o,e.lanes=o,e.memoizedState=d}}function Oo(e,t){if(typeof e!=`function`)throw Error(s(191,e));e.call(t)}function ko(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Oo(n[e],t)}var Ao=j(null),jo=j(0);function Mo(e,t){e=Z,Ee(jo,e),Ee(Ao,t),Z=e|t.baseLanes}function No(){Ee(jo,Z),Ee(Ao,Ao.current)}function Po(){Z=jo.current,Te(Ao),Te(jo)}var Fo=j(null),Io=null;function Lo(e){var t=e.alternate;Ee(Ho,Ho.current&1),Ee(Fo,e),Io===null&&(t===null||Ao.current!==null||t.memoizedState!==null)&&(Io=e)}function Ro(e){Ee(Ho,Ho.current),Ee(Fo,e),Io===null&&(Io=e)}function zo(e){e.tag===22?(Ee(Ho,Ho.current),Ee(Fo,e),Io===null&&(Io=e)):Bo()}function Bo(){Ee(Ho,Ho.current),Ee(Fo,Fo.current)}function Vo(e){Te(Fo),Io===e&&(Io=null),Te(Ho)}var Ho=j(0);function Uo(e,t){Ee(Fo,Fo.current),Ee(Ho,t)}function Wo(e){Te(Ho),Te(Fo),Io===e&&(Io=null)}function Go(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||om(n)||sm(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 Ko=0,L=null,R=null,qo=null,Jo=!1,Yo=!1,Xo=!1,Zo=0,Qo=0,$o=null,es=0;function ts(){throw Error(s(321))}function ns(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!qr(e[n],t[n]))return!1;return!0}function rs(e,t,n,r,i,a){return Ko=a,L=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?mc:hc,Xo=!1,a=n(r,i),Xo=!1,Yo&&(a=as(t,n,r,i)),is(e),a}function is(e){k.H=pc;var t=R!==null&&R.next!==null;if(Ko=0,qo=R=L=null,Jo=!1,Qo=0,$o=null,t)throw Error(s(300));e===null||Mc||(e=e.dependencies,e!==null&&Oa(e)&&(Mc=!0))}function as(e,t,n,r){L=e;var i=0;do{if(Yo&&($o=null),Qo=0,Yo=!1,25<=i)throw Error(s(301));if(i+=1,qo=R=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}k.H=gc,a=t(n,r)}while(Yo);return a}function os(){var e=k.H,t=e.useState()[0];return t=typeof t.then==`function`?ps(t):t,e=e.useState()[0],(R===null?null:R.memoizedState)!==e&&(L.flags|=1024),t}function ss(){var e=Zo!==0;return Zo=0,e}function cs(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ls(e){if(Jo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Jo=!1}Ko=0,qo=R=L=null,Yo=!1,Qo=Zo=0,$o=null}function us(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qo===null?L.memoizedState=qo=e:qo=qo.next=e,qo}function ds(){if(R===null){var e=L.alternate;e=e===null?null:e.memoizedState}else e=R.next;var t=qo===null?L.memoizedState:qo.next;if(t!==null)qo=t,R=e;else{if(e===null)throw L.alternate===null?Error(s(467)):Error(s(310));R=e,e={memoizedState:R.memoizedState,baseState:R.baseState,baseQueue:R.baseQueue,queue:R.queue,next:null},qo===null?L.memoizedState=qo=e:qo=qo.next=e}return qo}function fs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ps(e){var t=Qo;return Qo+=1,$o===null&&($o=[]),e=io($o,e,t),t=L,(qo===null?t.memoizedState:qo.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?mc:hc),e}function ms(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ps(e);if(e.$$typeof===ge)return;if(e.$$typeof===D)return Aa(e)}throw Error(s(438,String(e)))}function hs(e){var t=null,n=L.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=L.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=fs(),L.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]=me;return t.index++,n}function gs(e,t){return typeof t==`function`?t(e):t}function _s(e){return vs(ds(),R,e)}function vs(e,t,n){var r=e.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=n;var i=e.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}t.baseQueue=i=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var c=o=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Ko&f)===f:(Y&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===Wa&&(d=!0);else if((Ko&p)===p){u=u.next,p===Wa&&(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,o=a):l=l.next=f,L.lanes|=p,ad|=p;f=u.action,Xo&&n(a,f),a=u.hasEagerState?u.eagerState:n(a,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,o=a):l=l.next=p,L.lanes|=f,ad|=f;u=u.next}while(u!==null&&u!==t);if(l===null?o=a:l.next=c,!qr(a,e.memoizedState)&&(Mc=!0,d&&(n=Ga,n!==null)))throw n;e.memoizedState=a,e.baseState=o,e.baseQueue=l,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ys(e){var t=ds(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);qr(a,t.memoizedState)||(Mc=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function bs(e,t,n){var r=L,i=ds(),a=F;if(a){if(n===void 0)throw Error(s(407));n=n()}else n=t();var o=!qr((R||i).memoizedState,n);if(o&&(i.memoizedState=n,Mc=!0),i=i.queue,Ws(Ss.bind(null,r,i,e),[e]),e=i.getSnapshot!==t||o||qo!==null&&!!(qo.memoizedState.tag&1),zs(e?9:8,{destroy:void 0},z.bind(null,r,i,n,t),null),e){if(r.flags|=2048,$u===null)throw Error(s(349));a||Ko&127||xs(r,t,n)}return n}function xs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=L.updateQueue,t===null?(t=fs(),L.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function z(e,t,n,r){t.value=n,t.getSnapshot=r,Cs(t)&&ws(e)}function Ss(e,t,n){return n(function(){Cs(t)&&ws(e)})}function Cs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qr(e,n)}catch{return!0}}function ws(e){var t=Mi(e,2);t!==null&&Nd(t,e,2)}function Ts(e){var t=us();if(typeof e==`function`){var n=e;if(e=n(),Xo){it(!0);try{n()}finally{it(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gs,lastRenderedState:e},t}function Es(e,t,n,r){return e.baseState=n,vs(e,R,typeof r==`function`?r:gs)}function Ds(e,t,n,r,i){if(uc(e))throw Error(s(485));if(e=t.action,e!==null){var a={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};k.T===null?a.isTransition=!1:n(!0),r(a),n=t.pending,n===null?(a.next=t.pending=a,Os(t,a)):(a.next=n.next,t.pending=n.next=a)}}function Os(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=k.T,o={};o.types=a===null?null:a.types,k.T=o;try{var s=n(i,r),c=k.S;c!==null&&c(o,s),ks(e,t,s)}catch(n){js(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),k.T=a}}else try{a=n(i,r),ks(e,t,a)}catch(n){js(e,t,n)}}function ks(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){As(e,t,n)},function(n){return js(e,t,n)}):As(e,t,n)}function As(e,t,n){t.status=`fulfilled`,t.value=n,Ms(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Os(e,n)))}function js(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ms(t),t=t.next;while(t!==r)}e.action=null}function Ms(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ns(e,t){return t}function Ps(e,t){if(F){var n=$u.formState;if(n!==null){a:{var r=L;if(F){if(la){b:{for(var i=la,a=da;i.nodeType!==8;){if(!a){i=null;break b}if(i=lm(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){la=lm(i.nextSibling),r=i.data===`F!`;break a}}pa(r)}r=!1}r&&(t=n[0])}}return n=us(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ns,lastRenderedState:t},n.queue=r,n=cc.bind(null,L,r),r.dispatch=n,r=Ts(!1),a=W.bind(null,L,!1,r.queue),r=us(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Ds.bind(null,L,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Fs(e){return Is(ds(),R,e)}function Is(e,t,n){if(t=vs(e,t,Ns)[0],e=_s(gs)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=ps(t)}catch(e){throw e===$a?to:e}else r=t;t=ds();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(L.flags|=2048,zs(9,{destroy:void 0},Ls.bind(null,i,n),null)),[r,a,e]}function Ls(e,t){e.action=t}function Rs(e){var t=ds(),n=R;if(n!==null)return Is(t,n,e);ds(),t=t.memoizedState,n=ds();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function zs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=L.updateQueue,t===null&&(t=fs(),L.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 Bs(){return ds().memoizedState}function Vs(e,t,n,r){var i=us();L.flags|=e,i.memoizedState=zs(1|t,{destroy:void 0},n,r===void 0?null:r)}function Hs(e,t,n,r){var i=ds();r=r===void 0?null:r;var a=i.memoizedState.inst;R!==null&&r!==null&&ns(r,R.memoizedState.deps)?i.memoizedState=zs(t,a,n,r):(L.flags|=e,i.memoizedState=zs(1|t,a,n,r))}function Us(e,t){Vs(8390656,8,e,t)}function Ws(e,t){Hs(2048,8,e,t)}function Gs(e){L.flags|=4;var t=L.updateQueue;if(t===null)t=fs(),L.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Ks(e){var t=ds().memoizedState;return Gs({ref:t,nextImpl:e}),function(){if(q&2)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function qs(e,t){return Hs(4,2,e,t)}function Js(e,t){return Hs(4,4,e,t)}function Ys(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 Xs(e,t,n){n=n==null?null:n.concat([e]),Hs(4,4,Ys.bind(null,t,e),n)}function B(){}function V(e,t){var n=ds();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&ns(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function H(e,t){var n=ds();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&ns(t,r[1]))return r[0];if(r=e(),Xo){it(!0);try{e()}finally{it(!1)}}return n.memoizedState=[r,t],r}function Zs(e,t,n){return n===void 0||Ko&1073741824&&!(Y&261930)?e.memoizedState=t:(e.memoizedState=n,e=jd(),L.lanes|=e,ad|=e,n)}function Qs(e,t,n,r){return qr(n,t)?n:Ao.current===null?!(Ko&106)||Ko&1073741824&&!(Y&261930)?(Mc=!0,e.memoizedState=n):(e=jd(),L.lanes|=e,ad|=e,t):(e=Zs(e,n,r),qr(e,t)||(Mc=!0),e)}function $s(e,t,n,r,i){var a=A.p;A.p=a!==0&&8>a?a:8;var o=k.T,s={};s.types=o===null?null:o.types,k.T=s,W(e,!1,t,n);try{var c=i(),l=k.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?lc(e,t,Ja(c,r),Ad(e)):lc(e,t,r,Ad(e))}catch(n){lc(e,t,{then:function(){},status:`rejected`,reason:n},Ad())}finally{A.p=a,o!==null&&s.types!==null&&(o.types=s.types),k.T=o}}function U(){}function ec(e,t,n,r){if(e.tag!==5)throw Error(s(476));var i=tc(e).queue;$s(e,i,t,Se,n===null?U:function(){return nc(e),n(r)})}function tc(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Se,baseState:Se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gs,lastRenderedState:Se},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gs,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function nc(e){var t=tc(e);t.next===null&&(t=e.alternate.memoizedState),lc(e,t.next.queue,{},Ad())}function rc(){return Aa(sh)}function ic(){return ds().memoizedState}function ac(){return ds().memoizedState}function oc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Ad();e=xo(n);var r=So(t,e,n);r!==null&&(Nd(r,t,n),Co(r,t,n)),t={cache:La()},e.payload=t;return}t=t.return}}function sc(e,t,n){var r=Ad();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},uc(e)?dc(t,n):(n=ji(e,t,n,r),n!==null&&(Nd(n,e,r),fc(n,t,r)))}function cc(e,t,n){lc(e,t,n,Ad())}function lc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(uc(e))dc(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,qr(s,o))return Ai(e,t,i,0),$u===null&&ki(),!1}catch{}if(n=ji(e,t,i,r),n!==null)return Nd(n,e,r),fc(n,t,r),!0}return!1}function W(e,t,n,r){if(r={lane:2,revertLane:Nf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},uc(e)){if(t)throw Error(s(479))}else t=ji(e,n,r,2),t!==null&&Nd(t,e,2)}function uc(e){var t=e.alternate;return e===L||t!==null&&t===L}function dc(e,t){Yo=Jo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,St(e,n)}}var pc={readContext:Aa,use:ms,useCallback:ts,useContext:ts,useEffect:ts,useImperativeHandle:ts,useLayoutEffect:ts,useInsertionEffect:ts,useMemo:ts,useReducer:ts,useRef:ts,useState:ts,useDebugValue:ts,useDeferredValue:ts,useTransition:ts,useSyncExternalStore:ts,useId:ts,useHostTransitionStatus:ts,useFormState:ts,useActionState:ts,useOptimistic:ts,useMemoCache:ts,useCacheRefresh:ts,useEffectEvent:ts},mc={readContext:Aa,use:ms,useCallback:function(e,t){return us().memoizedState=[e,t===void 0?null:t],e},useContext:Aa,useEffect:Us,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Vs(4194308,4,Ys.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vs(4194308,4,e,t)},useInsertionEffect:function(e,t){Vs(4,2,e,t)},useMemo:function(e,t){var n=us();t=t===void 0?null:t;var r=e();if(Xo){it(!0);try{e()}finally{it(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=us();if(n!==void 0){var i=n(t);if(Xo){it(!0);try{n(t)}finally{it(!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=sc.bind(null,L,e),[r.memoizedState,e]},useRef:function(e){var t=us();return e={current:e},t.memoizedState=e},useState:function(e){e=Ts(e);var t=e.queue,n=cc.bind(null,L,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:B,useDeferredValue:function(e,t){return Zs(us(),e,t)},useTransition:function(){var e=Ts(!1);return e=$s.bind(null,L,e.queue,!0,!1),us().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=L,i=us();if(F){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),$u===null)throw Error(s(349));Y&127||xs(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Us(Ss.bind(null,r,a,e),[e]),r.flags|=2048,zs(9,{destroy:void 0},z.bind(null,r,a,n,t),null),n},useId:function(){var e=us(),t=$u.identifierPrefix;if(F){var n=na,r=ta;n=(r&~(1<<32-at(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Zo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=es++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:rc,useFormState:Ps,useActionState:Ps,useOptimistic:function(e){var t=us();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=W.bind(null,L,!0,n),n.dispatch=t,[e,t]},useMemoCache:hs,useCacheRefresh:function(){return us().memoizedState=oc.bind(null,L)},useEffectEvent:function(e){var t=us(),n={impl:e};return t.memoizedState=n,function(){if(q&2)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},hc={readContext:Aa,use:ms,useCallback:V,useContext:Aa,useEffect:Ws,useImperativeHandle:Xs,useInsertionEffect:qs,useLayoutEffect:Js,useMemo:H,useReducer:_s,useRef:Bs,useState:function(){return _s(gs)},useDebugValue:B,useDeferredValue:function(e,t){return Qs(ds(),R.memoizedState,e,t)},useTransition:function(){var e=_s(gs)[0],t=ds().memoizedState;return[typeof e==`boolean`?e:ps(e),t]},useSyncExternalStore:bs,useId:ic,useHostTransitionStatus:rc,useFormState:Fs,useActionState:Fs,useOptimistic:function(e,t){return Es(ds(),R,e,t)},useMemoCache:hs,useCacheRefresh:ac,useEffectEvent:Ks},gc={readContext:Aa,use:ms,useCallback:V,useContext:Aa,useEffect:Ws,useImperativeHandle:Xs,useInsertionEffect:qs,useLayoutEffect:Js,useMemo:H,useReducer:ys,useRef:Bs,useState:function(){return ys(gs)},useDebugValue:B,useDeferredValue:function(e,t){var n=ds();return R===null?Zs(n,e,t):Qs(n,R.memoizedState,e,t)},useTransition:function(){var e=ys(gs)[0],t=ds().memoizedState;return[typeof e==`boolean`?e:ps(e),t]},useSyncExternalStore:bs,useId:ic,useHostTransitionStatus:rc,useFormState:Rs,useActionState:Rs,useOptimistic:function(e,t){var n=ds();return R===null?(n.baseState=e,[e,n.queue.dispatch]):Es(n,R,e,t)},useMemoCache:hs,useCacheRefresh:ac,useEffectEvent:Ks};function _c(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 vc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ad(),i=xo(r);i.payload=t,n!=null&&(i.callback=n),t=So(e,i,r),t!==null&&(Nd(t,e,r),Co(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ad(),i=xo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=So(e,i,r),t!==null&&(Nd(t,e,r),Co(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ad(),r=xo(n);r.tag=2,t!=null&&(r.callback=t),t=So(e,r,n),t!==null&&(Nd(t,e,n),Co(t,e,n))}};function yc(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?!Jr(n,r)||!Jr(i,a):!0}function bc(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&&vc.enqueueReplaceState(t,t.state,null)}function xc(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 Sc(e){Ti(e)}function Cc(e){console.error(e)}function wc(e){Ti(e)}function Tc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ec(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 Dc(e,t,n){return n=xo(n),n.tag=3,n.payload={element:null},n.callback=function(){Tc(e,t)},n}function Oc(e){return e=xo(e),e.tag=3,e}function kc(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(){Ec(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Ec(t,n,r),typeof i!=`function`&&(_d===null?_d=new Set([this]):_d.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Ac(e,t,n,r,i){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Da(t,n,i,!0),n=Fo.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Io===null?Gd():n.alternate===null&&id===0&&(id=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===no?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),pf(e,r,i)),!1;case 22:return n.flags|=65536,r===no?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)),pf(e,r,i)),!1}throw Error(s(435,n.tag))}return pf(e,r,i),Gd(),!1}if(F)return t=Fo.current,t===null?(r!==fa&&(t=Error(s(423),{cause:r}),ya(qi(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=qi(r,n),i=Dc(e.stateNode,r,i),wo(e,i),id!==4&&(id=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==fa&&(e=Error(s(422),{cause:r}),ya(qi(e,n)))),!1;var a=Error(s(520),{cause:r});if(a=qi(a,n),ud===null?ud=[a]:ud.push(a),id!==4&&(id=2),t===null)return!0;r=qi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Dc(n.stateNode,r,e),wo(n,e),!1;case 1:if(t=n.type,a=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||a!==null&&typeof a.componentDidCatch==`function`&&(_d===null||!_d.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=Oc(i),kc(i,e,n,r),wo(n,i),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var jc=Error(s(461)),Mc=!1;function Nc(e,t,n,r){t.child=e===null?_o(t,null,n,r):go(t,e.child,n,r)}function Pc(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 ka(t),r=rs(e,t,n,o,a,i),s=ss(),e!==null&&!Mc?(cs(e,t,i),cl(e,t,i)):(F&&s&&aa(t),t.flags|=1,Nc(e,t,r,i),t.child)}function Fc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Ri(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Ic(e,t,a,r,i)):(e=Vi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!ll(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Jr:n,n(o,r)&&e.ref===t.ref)return cl(e,t,i)}return t.flags|=1,e=zi(a,r),e.ref=t.ref,e.return=t,t.child=e}function Ic(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Jr(a,r)&&e.ref===t.ref){if(Mc=!1,t.pendingProps=r=a,ll(e,i))e.flags&131072&&(Mc=!0);else return t.lanes=e.lanes,cl(e,t,i)}}return Wc(e,t,n,r,i)}function Lc(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 zc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Qa(t,a===null?null:a.cachePool),a===null?No():Mo(t,a),zo(t);else return r=t.lanes=536870912,zc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Qa(t,null),No(),Bo()):(Qa(t,a.cachePool),Mo(t,a),Bo(),t.memoizedState=null);return Nc(e,t,i,n),t.child}function Rc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function zc(e,t,n,r,i){var a=Za();return a=a===null?null:{parent:Ia._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Qa(t,null),No(),zo(t),e!==null&&Da(e,t,r,!0),t.childLanes=i,null}function Bc(e,t){return t=$c({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Vc(e,t,n){return go(t,e.child,null,n),e=Bc(t,t.pendingProps),e.flags|=2,Vo(t),t.memoizedState=null,e}function Hc(e,t,n){var r=t.pendingProps,i=!!(t.flags&128);if(t.flags&=-129,e===null){if(F){if(r.mode===`hidden`)return e=Bc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Rc(null,e);if(Ro(t),(e=la)?(e=am(e,da),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ea===null?null:{id:ta,overflow:na},retryLane:536870912,hydrationErrors:null},n=Wi(e),n.return=t,t.child=n,ca=t,la=null)):e=null,e===null)throw pa(t);return t.lanes=536870912,null}return Bc(t,r)}var a=e.memoizedState;if(a!==null){var o=a.dehydrated;if(Ro(t),i){if(t.flags&256)t.flags&=-257,t=Vc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558))}else if(Mc||Da(e,t,n,!1),i=(n&e.childLanes)!==0,Mc||i){if(Ao.current===null){if(r=$u,r!==null&&(o=Ct(r,n),o!==0&&o!==a.retryLane))throw a.retryLane=o,Mi(e,o),Nd(r,e,o),jc;Gd()}t=Vc(e,t,n)}else e=a.treeContext,la=lm(o.nextSibling),ca=t,F=!0,ua=null,da=!1,e!==null&&sa(t,e),t=Bc(t,r),t.flags|=134221824;return t}return e=zi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Uc(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(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Wc(e,t,n,r,i){return ka(t),n=rs(e,t,n,r,void 0,i),r=ss(),e!==null&&!Mc?(cs(e,t,i),cl(e,t,i)):(F&&r&&aa(t),t.flags|=1,Nc(e,t,n,i),t.child)}function Gc(e,t,n,r,i,a){return ka(t),t.updateQueue=null,n=as(t,r,n,i),is(e),r=ss(),e!==null&&!Mc?(cs(e,t,a),cl(e,t,a)):(F&&r&&aa(t),t.flags|=1,Nc(e,t,n,a),t.child)}function Kc(e,t,n,r,i){if(ka(t),t.stateNode===null){var a=Fi,o=n.contextType;typeof o==`object`&&o&&(a=Aa(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=vc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},yo(t),o=n.contextType,a.context=typeof o==`object`&&o?Aa(o):Fi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(_c(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&&vc.enqueueReplaceState(a,a.state,null),Do(t,r,a,i),Eo(),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=xc(n,s);a.props=c;var l=a.context,u=n.contextType;o=Fi,typeof u==`object`&&u&&(o=Aa(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)&&bc(t,a,r,o),vo=!1;var f=t.memoizedState;a.state=f,Do(t,r,a,i),Eo(),l=t.memoizedState,s||f!==l||vo?(typeof d==`function`&&(_c(t,n,d,r),l=t.memoizedState),(c=vo||yc(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,bo(e,t),o=t.memoizedProps,u=xc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Fi,typeof l==`object`&&l&&(c=Aa(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)&&bc(t,a,r,c),vo=!1,f=t.memoizedState,a.state=f,Do(t,r,a,i),Eo();var p=t.memoizedState;o!==d||f!==p||vo||e!==null&&e.dependencies!==null&&Oa(e.dependencies)?(typeof s==`function`&&(_c(t,n,s,r),p=t.memoizedState),(u=vo||yc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Oa(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,Uc(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=go(t,e.child,null,i),t.child=go(t,null,n,i)):Nc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=cl(e,t,i),e}function qc(e,t,n,r){return _a(),t.flags|=256,Nc(e,t,n,r),t.child}var Jc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yc(e){return{baseLanes:e,cachePool:I()}}function Xc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=cd),e}function Zc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Ho.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(F){if(i?Lo(t):Bo(),(e=la)?(e=am(e,da),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ea===null?null:{id:ta,overflow:na},retryLane:536870912,hydrationErrors:null},n=Wi(e),n.return=t,t.child=n,ca=t,la=null)):e=null,e===null)throw pa(t);return t.lanes=sm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Bo(),i=t.mode,a=$c({mode:`hidden`,children:a},i),r=Hi(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Yc(n),r.childLanes=Xc(e,o,n),t.memoizedState=Jc,Rc(null,r)):(Lo(t),Qc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return tl(e,t,a,o,r,c,s,n)}return i?(Bo(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=zi(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Hi(i,a,n,null),i.flags|=2):i=zi(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Rc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Yc(n):(a=i.cachePool,a===null?a=I():(s=Ia._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Xc(e,o,n),t.memoizedState=Jc,Rc(e.child,r)):(Lo(t),n=e.child,e=n.sibling,n=zi(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=$c({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function $c(e,t){return e=Li(22,e,null,t),e.lanes=0,e}function el(e,t,n){return go(t,e.child,null,n),e=Qc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function tl(e,t,n,r,i,a,o,c){if(n)return t.flags&256?(Lo(t),t.flags&=-257,el(e,t,c)):t.memoizedState===null?(Bo(),a=i.fallback,o=t.mode,i=$c({mode:`visible`,children:i.children},o),a=Hi(a,o,c,null),a.flags|=2,i.return=t,a.return=t,i.sibling=a,t.child=i,go(t,e.child,null,c),i=t.child,i.memoizedState=Yc(c),i.childLanes=Xc(e,r,c),t.memoizedState=Jc,Rc(null,i)):(Bo(),t.child=e.child,t.flags|=128,null);if(Lo(t),sm(a)){if(r=a.nextSibling&&a.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(i=Error(s(419)),i.stack=``,i.digest=r,ya({value:i,source:null,stack:null})),el(e,t,c)}if(Mc||Da(e,t,c,!1),r=(c&e.childLanes)!==0,Mc||r){if(Ao.current!==null)return el(e,t,c);if(r=$u,r!==null&&(i=Ct(r,c),i!==0&&i!==o.retryLane))throw o.retryLane=i,Mi(e,i),Nd(r,e,i),jc;return om(a)||Gd(),el(e,t,c)}return om(a)?(t.flags|=192,t.child=e.child,null):(e=o.treeContext,la=lm(a.nextSibling),ca=t,F=!0,ua=null,da=!1,e!==null&&sa(t,e),t=Qc(t,i.children),t.flags|=134221824,t)}function nl(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ta(e.return,t,n)}function rl(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Go(n)===null&&(t=e),e=e.sibling}return t}function il(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 al(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 ol(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Ho.current;if(t.flags&128)return Uo(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Uo(t,o),i===`backwards`&&e!==null?(al(e),Nc(e,t,r,n),al(e)):Nc(e,t,r,n),r=F?Zi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&nl(e,n,t);else if(e.tag===19)nl(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=rl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,al(t)),il(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&&Go(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}il(t,!0,n,null,a,r);break;case`together`:il(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=rl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),il(t,!1,i,n,a,r)}return t.child}function sl(e,t,n){var r=t.pendingProps;return Ca(t,t.type,r.value),Nc(e,t,r.children,n),t.child}function cl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ad|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(Da(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=zi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=zi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ll(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&Oa(e)))}function ul(e,t,n){switch(t.tag){case 3:je(t,t.stateNode.containerInfo),Ca(t,Ia,e.memoizedState.cache),_a();break;case 27:case 5:Ne(t);break;case 4:je(t,t.stateNode.containerInfo);break;case 10:Ca(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ro(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return Lo(t),t.flags|=128,null;r=Da(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Zc(e,t,n):(Lo(t),e=cl(e,t,n),e===null?null:e.sibling)}Lo(t);break;case 19:if(t.flags&128)return ol(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(Da(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return ol(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Uo(t,Ho.current),r)break;return null;case 22:return t.lanes=0,Lc(e,t,n,t.pendingProps);case 24:Ca(t,Ia,e.memoizedState.cache)}return cl(e,t,n)}function dl(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Mc=!0;else{if(!ll(e,n)&&!(t.flags&128))return Mc=!1,ul(e,t,n);Mc=!!(e.flags&131072)}}else Mc=!1,F&&t.flags&1048576&&ia(t,Zi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=ao(t.elementType),t.type=e,typeof e==`function`)Ri(e)?(r=xc(e,r),t.tag=1,t=Kc(null,t,e,r,n)):(t.tag=0,t=Wc(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===ce){t.tag=11,t=Pc(null,t,e,r,n);break a}if(i===de){t.tag=14,t=Fc(null,t,e,r,n);break a}if(i===D){t.tag=10,t.type=e,t=sl(null,t,n);break a}}throw t=be(e)||e,Error(s(306,t,``))}}return t;case 0:return Wc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=xc(r,t.pendingProps),Kc(e,t,r,i,n);case 3:a:{if(je(t,t.stateNode.containerInfo),e===null)throw Error(s(387));r=t.pendingProps;var a=t.memoizedState;i=a.element,bo(e,t),Do(t,r,null,n);var o=t.memoizedState;if(r=o.cache,Ca(t,Ia,r),r!==a.cache&&Ea(t,[Ia],n,!0),Eo(),r=o.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=qc(e,t,r,n);break a}if(r!==i){i=qi(Error(s(424)),t),ya(i),t=qc(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(la=lm(e.firstChild),ca=t,F=!0,ua=null,da=!0,n=_o(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(_a(),r===i){t=cl(e,t,n);break a}Nc(e,t,r,n)}t=t.child}return t;case 26:return Uc(e,t),e===null?(n=Nm(t.type,null,t.pendingProps,null))?t.memoizedState=n:F||(t.stateNode=fp(t.type,t.pendingProps,ke.current,t)):t.memoizedState=Nm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ne(t),e===null&&F&&(r=t.stateNode=hm(t.type,t.pendingProps,ke.current),ca=t,da=!0,i=la,Sp(t.type)?(um=i,la=lm(r.firstChild)):la=i),Nc(e,t,t.pendingProps.children,n),Uc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&F&&((i=r=la)&&(r=rm(r,t.type,t.pendingProps,da),r===null?i=!1:(t.stateNode=r,ca=t,la=lm(r.firstChild),da=!1,i=!0)),i||pa(t)),Ne(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,r=a.children,pp(i,a)?r=null:o!==null&&pp(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=rs(e,t,os,null,null,n),sh._currentValue=i),Uc(e,t),Nc(e,t,r,n),t.child;case 6:return e===null&&F&&((e=n=la)&&(n=im(n,t.pendingProps,da),n===null?e=!1:(t.stateNode=n,ca=t,la=null,e=!0)),e||pa(t)),null;case 13:return Zc(e,t,n);case 4:return je(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=go(t,null,r,n):Nc(e,t,r,n),t.child;case 11:return Pc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Uc(e,t),Nc(e,t,r,n),t.child;case 8:return Nc(e,t,t.pendingProps.children,n),t.child;case 12:return Nc(e,t,t.pendingProps.children,n),t.child;case 10:return sl(e,t,n);case 9:return i=t.type._context,r=t.pendingProps.children,ka(t),i=Aa(i),r=r(i),t.flags|=1,Nc(e,t,r,n),t.child;case 14:return Fc(e,t,t.type,t.pendingProps,n);case 15:return Ic(e,t,t.type,t.pendingProps,n);case 19:return ol(e,t,n);case 31:return Hc(e,t,n);case 22:return Lc(e,t,n,t.pendingProps);case 24:return ka(t),r=Aa(Ia),e===null?(i=Za(),i===null&&(i=$u,a=La(),i.pooledCache=a,a.refCount++,a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},yo(t),Ca(t,Ia,i)):((e.lanes&n)!==0&&(bo(e,t),Do(t,null,null,n),Eo()),i=e.memoizedState,a=t.memoizedState,i.parent===r?(r=a.cache,Ca(t,Ia,r),r!==i.cache&&Ea(t,[Ia],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Ca(t,Ia,r))),Nc(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:F&&aa(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Uc(e,t),Nc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function fl(e){e.flags|=4}function pl(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?Jm(t,r):Jm(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 oo=no,eo}}else e.flags&=-16777217}function ml(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Ym(t)){if(Hd())e.flags|=8192;else throw oo=no,eo}}function hl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:_t(),e.lanes|=t,ld|=t)}function gl(e,t){if(!F)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 G(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 _l(e,t,n){var r=t.pendingProps;switch(oa(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return G(t),null;case 1:return G(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),wa(Ia),Me(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ga(t)?fl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,va())),G(t),null;case 26:var i=t.type,a=t.memoizedState;return e===null?(fl(t),a===null?(G(t),pl(t,i,null,r,n)):(G(t),ml(t,a))):a?a===e.memoizedState?(G(t),t.flags&=-16777217):(fl(t),G(t),ml(t,a)):(e=e.memoizedProps,e!==r&&fl(t),G(t),pl(t,i,e,r,n)),null;case 27:if(Pe(t),n=ke.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&fl(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return G(t),t.subtreeFlags&=-33554433,null}e=De.current,ga(t)?ma(t,e):(e=hm(i,r,n),t.stateNode=e,fl(t))}return G(t),t.subtreeFlags&=-33554433,null;case 5:if(Pe(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&fl(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return G(t),t.subtreeFlags&=-33554433,null}if(a=De.current,ga(t))ma(t,a);else{var o=lp(ke.current);switch(a){case 1:a=o.createElementNS(`http://www.w3.org/2000/svg`,i);break;case 2:a=o.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;default:switch(i){case`svg`:a=o.createElementNS(`http://www.w3.org/2000/svg`,i);break;case`math`:a=o.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;case`script`:a=o.createElement(`div`),a.innerHTML=`<script><\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?o.createElement(`select`,{is:r.is}):o.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?o.createElement(i,{is:r.is}):o.createElement(i)}}a[kt]=t,a[At]=r;a:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break a;for(;o.sibling===null;){if(o.return===null||o.return===t)break a;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;a:switch(np(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&fl(t)}}return G(t),t.subtreeFlags&=-33554433,pl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&fl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(s(166));if(e=ke.current,ga(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=ca,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[kt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||$f(e.nodeValue,n)),e||pa(t,!0)}else e=lp(e).createTextNode(r),e[kt]=t,t.stateNode=e}return G(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=ga(t),n!==null){if(e===null){if(!r)throw Error(s(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(557));e[kt]=t}else _a(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;G(t),e=!1}else n=va(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Vo(t),t):(Vo(t),null);if(t.flags&128)throw Error(s(558))}return G(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=ga(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(s(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(s(317));i[kt]=t}else _a(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;G(t),i=!1}else i=va(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Vo(t),t):(Vo(t),null)}return Vo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),hl(t,t.updateQueue),G(t),null);case 4:return Me(),e===null&&Uf(t.stateNode.containerInfo),t.flags|=67108864,G(t),null;case 10:return wa(t.type),G(t),null;case 19:if(Wo(t),r=t.memoizedState,r===null)return G(t),null;if(i=!!(t.flags&128),a=r.rendering,a===null){if(i)gl(r,!1);else{if(id!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Go(e),a!==null){for(t.flags|=128,gl(r,!1),e=a.updateQueue,t.updateQueue=e,hl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Bi(n,e),n=n.sibling;return Uo(t,Ho.current&1|2),F&&ra(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&qe()>hd&&(t.flags|=128,i=!0,gl(r,!1),t.lanes=4194304)}}else{if(!i){if(e=Go(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,hl(t,e),gl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!a.alternate&&!F)return G(t),null}else 2*qe()-r.renderingStartTime>hd&&n!==536870912&&(t.flags|=128,i=!0,gl(r,!1),t.lanes=4194304)}r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}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=qe(),e.sibling=null,a=Ho.current,a=i?a&1|2:a&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||F?Uo(t,a):(n=a,Ee(Fo,t),Ee(Ho,n),Io===null&&(Io=t)),F&&ra(t,r.treeForkCount),e}return G(t),null;case 22:case 23:return Vo(t),Po(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(G(t),t.subtreeFlags&6&&(t.flags|=8192)):G(t),n=t.updateQueue,n!==null&&hl(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&&Te(Xa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),wa(Ia),G(t),null;case 25:return null;case 30:return t.flags|=33554432,G(t),null}throw Error(s(156,t.tag))}function vl(e,t){switch(oa(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wa(Ia),Me(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Pe(t),null;case 31:if(t.memoizedState!==null){if(Vo(t),t.alternate===null)throw Error(s(340));_a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Vo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));_a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Wo(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 Me(),null;case 10:return wa(t.type),null;case 22:case 23:return Vo(t),Po(),e!==null&&Te(Xa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return wa(Ia),null;case 25:return null;default:return null}}function yl(e,t){switch(oa(t),t.tag){case 3:wa(Ia),Me();break;case 26:case 27:case 5:Pe(t);break;case 4:Me();break;case 31:t.memoizedState!==null&&Vo(t);break;case 13:Vo(t);break;case 19:Wo(t);break;case 10:wa(t.type);break;case 22:case 23:Vo(t),Po(),e!==null&&Te(Xa);break;case 24:wa(Ia)}}function bl(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){Q(t,t.return,e)}}function xl(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){Q(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Q(t,t.return,e)}}function Sl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{ko(t,n)}catch(t){Q(e,e.return,t)}}}function Cl(e,t,n){n.props=xc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Q(e,t,n)}}function wl(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=Si(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Pp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Fp(e);h(e.child,!1,Qp,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){Q(e,t,n)}}function Tl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Q(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){Q(e,t,n)}else n.current=null}}function El(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++)em(e.stateNode,t[n])}function Dl(e){for(var t=e.return;t!==null&&(Al(t)&&em(e.stateNode,t.stateNode),!kl(t));)t=t.return}function Ol(e){for(var t=e.return;t!==null&&(Al(t)&&tm(e.stateNode,t.stateNode),!kl(t));)t=t.return}function kl(e){return e.tag===5||e.tag===3||e.tag===27}function Al(e){return e&&e.tag===7&&e.stateNode!==null}function jl(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){Q(e,e.return,t)}}function Ml(e,t,n){try{var r=e.stateNode;ip(r,e.type,n,t),r[At]=t}catch(t){Q(e,e.return,t)}}function Nl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Sp(e.type)||e.tag===4}function Pl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Nl(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&&Sp(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 Fl(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=wn)),El(e,r),M=!0;else if(i!==4&&(i===27&&(El(e,r),r=null,Sp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Fl(e,t,n,r),e=e.sibling;e!==null;)Fl(e,t,n,r),e=e.sibling}function Il(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),El(e,r),M=!0;else if(i!==4&&(i===27&&(El(e,r),r=null,Sp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Il(e,t,n,r),e=e.sibling;e!==null;)Il(e,t,n,r),e=e.sibling}function Ll(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);np(t,r,n),t[kt]=e,t[At]=n}catch(t){Q(e,e.return,t)}}var Rl=!1,zl=null;function Bl(e){(e.tag===30||e.subtreeFlags&33554432)&&(Rl=!0)}var Vl=null;function Hl(){var e=Vl;return Vl=null,e}var Ul=0;function Wl(e,t,n,r,i){return Ul=0,Gl(e.child,t,n,r,i)}function Gl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Op(o);r.push(s),s.view&&(a=!0)}else a||Op(o).view&&(a=!0);Rl=!0,Tp(o,Ul===0?t:t+`_`+Ul,n),Ul++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||Gl(e.child,t,n,r,i)&&(a=!0));e=e.sibling}return a}function Kl(e,t){for(;e!==null;)e.tag===5?Ep(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Kl(e.child,t)),e=e.sibling}function ql(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(ql(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(s(544));var n=t.name;t=wi(t.default,t.share),t!==`none`&&(Wl(e,n,t,null,!1)||Kl(e.child,!1))}e=e.sibling}}function Jl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=Si(r,n),a=wi(r.default,n.paired?r.share:r.enter);a===`none`?ql(e):Wl(e,i,a,null,!1)?(ql(e),n.paired||t||Md(e,r.onEnter)):Kl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Jl(e,t),e=e.sibling;else ql(e)}function Yl(e){if(zl!==null&&zl.size!==0){var t=zl;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=wi(n.default,n.share);if(a!==`none`&&(Wl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Md(e,n.onShare)):Kl(e.child,!1)),t.delete(r),t.size===0)break}}}Yl(e)}e=e.sibling}}}function Xl(e){if(e.tag===30){var t=e.memoizedProps,n=Si(t,e.stateNode),r=zl===null?void 0:zl.get(n),i=wi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Wl(e,n,i,null,!1)?r===void 0?Md(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,zl.delete(n),Md(e,t.onShare)):Kl(e.child,!1)),zl!==null&&Yl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Xl(e),e=e.sibling;else zl!==null&&Yl(e)}function Zl(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=Si(t,e.stateNode);t=wi(t.default,t.update),e.flags&=-5,t!==`none`&&Wl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&Zl(e);e=e.sibling}}function Ql(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,Kl(e.child,!1))}Ql(e)}e=e.sibling}}function $l(e){if(e.tag===30)e.stateNode.paired=null,Kl(e.child,!1),Ql(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)$l(e),e=e.sibling;else Ql(e)}function eu(e){for(e=e.child;e!==null;)e.tag===30?Kl(e.child,!1):e.subtreeFlags&33554432&&eu(e),e=e.sibling}function tu(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Ul<a.length){var l=a[Ul],u=Op(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&&Tp(c,Ul===0?n:n+`_`+Ul,i),s&&e.flags&4||(Vl===null&&(Vl=[]),Vl.push(c,Ul===0?r:r+`_`+Ul,t.memoizedProps)),Ul++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:tu(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function nu(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=Si(n,r),a=wi(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(kp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Ul=0,i=tu(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Md(e,n.onUpdate))}else e.subtreeFlags&33554432&&nu(e,t);e=e.sibling}}var ru=!1,K=!1,iu=!1,au=!1,ou=typeof WeakSet==`function`?WeakSet:Set,su=null,cu=!1,lu=!1,uu=!1,du=!1;function fu(e,t,n){if(e=e.containerInfo,sp=gh,e=$r(e),ei(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(cp={focusedElem:e,selectionRange:r},gh=!1,n=(n&335544064)===n,su=t,t=n?9270:1024;su!==null;){if(e=su,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&Xl(r[a]);if(e.alternate===null&&e.flags&2)n&&Bl(e),pu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&Xl(r),pu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Bl(e),pu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,su=r):(n&&Zl(e),pu(n))}}zl=null}function pu(e){for(;su!==null;){var t=su,n=e,r=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(i&1024&&r!==null){n=void 0,i=r.memoizedProps,r=r.memoizedState;var a=t.stateNode;try{var o=xc(t.type,i);n=a.getSnapshotBeforeUpdate(o,r),a.__reactInternalSnapshotBeforeUpdate=n}catch(e){Q(t,t.return,e)}}break;case 3:if(i&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)nm(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:nm(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=Si(r.memoizedProps,r.stateNode),i=t.memoizedProps,i=wi(i.default,i.update),i!==`none`&&Wl(r,n,i,r.memoizedState=[],!0));break;default:if(i&1024)throw Error(s(163))}if(r=t.sibling,r!==null){r.return=t.return,su=r;break}su=t.return}}function mu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Pu(e,n),r&4&&bl(5,n);break;case 1:if(Pu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Q(n,n.return,e)}else{var i=xc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Q(n,n.return,e)}}}r&64&&Sl(n),r&512&&wl(n,n.return);break;case 3:if(Pu(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{ko(e,t)}catch(e){Q(n,n.return,e)}}break;case 27:t===null&&r&4&&Ll(n);case 26:case 5:Pu(e,n),t===null&&r&4&&jl(n),r&512&&wl(n,n.return);break;case 12:Pu(e,n);break;case 31:Pu(e,n),r&4&&Cu(e,n);break;case 13:Pu(e,n),r&4&&wu(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=gf.bind(null,n),cm(e,n))));break;case 22:if(r=n.memoizedState!==null||ru,!r){var a=t!==null&&t.memoizedState!==null||K;t=ru,i=K,ru=r,(K=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Iu(e,n,r)):Pu(e,n),ru=t,K=i}break;case 30:Pu(e,n),r&512&&wl(n,n.return);break;case 7:r&512&&wl(n,n.return);default:Pu(e,n)}}function hu(e,t){for(e=e.child;e!==null;)gu(e,t),e=e.sibling}function gu(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){Q(e,e.return,t)}_u(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,M=!0}catch(t){Q(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?wp(s,!0):wp(e.stateNode,!1)}catch(t){Q(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&hu(e,t);break;default:hu(e,t)}}function _u(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:gu(n,r);break a;case 22:n.memoizedState===null&&_u(n,r);break a;default:_u(n,r)}}e=e.sibling}}function vu(e){var t=e.alternate;t!==null&&(e.alternate=null,vu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Rt(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 yu=null,bu=!1;function xu(e,t,n){for(n=n.child;n!==null;)Su(e,t,n),n=n.sibling}function Su(e,t,n){if(rt&&typeof rt.onCommitFiberUnmount==`function`)try{rt.onCommitFiberUnmount(nt,n)}catch{}switch(n.tag){case 26:K||Tl(n,t),xu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!K&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:K||Tl(n,t),Ol(n);var r=yu,i=bu;Sp(n.type)&&(yu=n.stateNode,bu=!1),xu(e,t,n),gm(n.stateNode,n.type,n.memoizedProps),yu=r,bu=i;break;case 5:K||Tl(n,t),Ol(n);case 6:if(n.tag===6&&Ol(n),r=yu,i=bu,yu=null,xu(e,t,n),yu=r,bu=i,yu!==null){if(bu)try{(yu.nodeType===9?yu.body:yu.nodeName===`HTML`?yu.ownerDocument.body:yu).removeChild(n.stateNode),M=!0}catch(e){Q(n,t,e)}else try{yu.removeChild(n.stateNode),M=!0}catch(e){Q(n,t,e)}}break;case 18:yu!==null&&(bu?(e=yu,Cp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Hh(e)):Cp(yu,n.stateNode));break;case 4:r=yu,i=bu,yu=n.stateNode.containerInfo,bu=!0,xu(e,t,n),yu=r,bu=i;break;case 0:case 11:case 14:case 15:xl(2,n,t),K||xl(4,n,t),xu(e,t,n);break;case 1:K||(Tl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Cl(n,t,r)),xu(e,t,n);break;case 21:xu(e,t,n);break;case 22:K=(r=K)||n.memoizedState!==null,xu(e,t,n),K=r;break;case 30:Tl(n,t),xu(e,t,n);break;case 7:K||Tl(n,t),xu(e,t,n);break;default:xu(e,t,n)}}function Cu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Hh(e)}catch(e){Q(t,t.return,e)}}}function wu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Hh(e)}catch(e){Q(t,t.return,e)}}function Tu(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ou),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ou),t;default:throw Error(s(435,e.tag))}}function Eu(e,t){var n=Tu(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=_f.bind(null,e,t);t.then(r,r)}})}function Du(e,t,n){var r=t.deletions;if(r!==null)for(var i=0;i<r.length;i++){var a=r[i],o=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(Sp(l.type)){yu=l.stateNode,bu=!1;break a}break;case 5:yu=l.stateNode,bu=!1;break a;case 3:case 4:yu=l.stateNode.containerInfo,bu=!0;break a}l=l.return}if(yu===null)throw Error(s(160));Su(o,c,a),yu=null,bu=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ku(t,e,n),t=t.sibling}var Ou=null;function ku(e,t,n){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(i&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var a=0;a<r.length;a++){var o=r[a];o.ref.impl=o.nextImpl}Du(t,e,n),Au(e),i&4&&(xl(3,e,e.return),bl(3,e),xl(5,e,e.return));break;case 1:Du(t,e,n),Au(e),i&512&&(K||r===null||Tl(r,r.return)),i&64&&ru&&(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(a=Ou,Du(t,e,n),Au(e),i&512&&(K||r===null||Tl(r,r.return)),i&4){if(i=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(ru)e.stateNode=fp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,i=a.ownerDocument||a;b:switch(t){case`title`:r=i.getElementsByTagName(`title`)[0],(!r||r[It]||r[kt]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=i.createElement(t),i.head.insertBefore(r,i.querySelector(`head > title`))),np(r,t,n),r[kt]=e,Ut(r),t=r;break a;case`link`:if(a=Gm(`link`,`href`,i).get(t+(n.href||``))){for(o=0;o<a.length;o++)if(r=a[o],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)){a.splice(o,1);break b}}r=i.createElement(t),np(r,t,n),i.head.appendChild(r);break;case`meta`:if(a=Gm(`meta`,`content`,i).get(t+(n.content||``))){for(o=0;o<a.length;o++)if(r=a[o],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)){a.splice(o,1);break b}}r=i.createElement(t),np(r,t,n),i.head.appendChild(r);break;default:throw Error(s(468,t))}r[kt]=e,Ut(r),t=r}e.stateNode=t}}else ru||Km(a,e.type,e.stateNode)}else e.stateNode=Bm(a,n,e.memoizedProps)}else i===n?n===null&&e.stateNode!==null&&Ml(e,e.memoizedProps,r.memoizedProps):(i===null?(t=r.stateNode,t===null||K||t.parentNode.removeChild(t)):i.count--,n===null?ru||Km(a,e.type,e.stateNode):Bm(a,n,e.memoizedProps))}break;case 27:Du(t,e,n),Au(e),i&512&&(K||r===null||Tl(r,r.return)),r!==null&&i&4&&Ml(e,e.memoizedProps,r.memoizedProps);break;case 5:if(a=iu,iu=!1,Du(t,e,n),iu=a,Au(e),i&512&&(K||r===null||Tl(r,r.return)),e.flags&32){t=e.stateNode;try{gn(t,``),M=!0}catch(t){Q(e,e.return,t)}}i&4&&e.stateNode!=null&&(t=e.memoizedProps,Ml(e,t,r===null?t:r.memoizedProps)),i&1024&&(au=!0);break;case 6:if(Du(t,e,n),Au(e),i&4){if(e.stateNode===null)throw Error(s(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,M=!0}catch(t){Q(e,e.return,t)}}break;case 3:if(M=!1,Wm=null,a=Ou,Ou=bm(t.containerInfo),Du(t,e,n),Ou=a,Au(e),i&4&&r!==null&&r.memoizedState.isDehydrated)try{Hh(t.containerInfo)}catch(t){Q(e,e.return,t)}au&&(au=!1,ju(e)),M=!1;break;case 4:i=iu,iu=ru,r=$t(),a=Ou,Ou=bm(e.stateNode.containerInfo),Du(t,e,n),Au(e),Ou=a,M&&lu&&(uu=!0),M=r,iu=i;break;case 12:Du(t,e,n),Au(e);break;case 31:Du(t,e,n),Au(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Eu(e,t)));break;case 13:Du(t,e,n),Au(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(pd=qe()),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Eu(e,t)));break;case 22:a=e.memoizedState!==null,o=r!==null&&r.memoizedState!==null;var c=ru,l=K,u=iu;ru=c||a,iu=u||a,K=l||o,Du(t,e,n),K=l,iu=u,ru=c,Au(e),i&8192&&(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,!a||r===null||o||ru||K||(t=o||K,n=ru,r=K,ru=a||ru,K=t,Fu(e,2),ru=n,K=r),!a&&iu||hu(e,a)),i&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Eu(e,n))));break;case 19:Du(t,e,n),Au(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Eu(e,t)));break;case 30:i&512&&(K||r===null||Tl(r,r.return)),i=$t(),a=lu,o=(n&335544064)===n,c=e.memoizedProps,lu=o&&wi(c.default,c.update)!==`none`,Du(t,e,n),Au(e),o&&r!==null&&M&&(e.flags|=4),lu=a,M=i;break;case 21:break;case 7:i&512&&(K||r===null||Tl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Du(t,e,n),Au(e)}}function Au(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Nl(r)){n=r;break}r=r.return}r=null;for(var i=e.return;i!==null;){if(Al(i)){var a=i.stateNode;r===null?r=[a]:r.push(a)}if(kl(i))break;i=i.return}var o=r;if(n==null)throw Error(s(160));switch(n.tag){case 27:var c=n.stateNode;Il(e,Pl(e),c,o);break;case 5:var l=n.stateNode;n.flags&32&&(gn(l,``),n.flags&=-33),Il(e,Pl(e),l,o);break;case 3:case 4:var u=n.stateNode.containerInfo;Fl(e,Pl(e),u,o);break;default:throw Error(s(161))}}catch(t){Q(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ju(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ju(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,gh=!0,t.reset(),gh=!1),e=e.sibling}}function Mu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Nu(t,e),t=t.sibling;else nu(t,!1)}function Nu(e,t){var n=e.alternate;if(n===null)Jl(e,!1);else switch(e.tag){case 3:if(du=cu=!1,Hl(),Mu(t,e),!cu&&!uu){if(e=Vl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Ep(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`})),du=!0}Vl=null;break;case 5:Mu(t,e);break;case 4:r=cu,cu=!1,Mu(t,e),cu&&(uu=!0),cu=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Mu(t,e):Jl(e,!1));break;case 30:r=cu,i=Hl(),cu=!1,Mu(t,e),cu&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=Si(a,o),o=Si(n.memoizedProps,o);var s=wi(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Ul=0,t=tu(e,n,t,o,s,a,!0),Ul!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Md(e,e.memoizedProps.onUpdate),Vl=i):i!==null&&(i.push.apply(i,Vl),Vl=i),cu=e.flags&32?!0:r;break;default:Mu(t,e)}}function Pu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)mu(e,t.alternate,t),t=t.sibling}function Fu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:xl(4,n,n.return),Fu(n,r);break;case 1:Tl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&Cl(n,n.return,i),Fu(n,r);break;case 27:r&2&&gm(n.stateNode,n.type,n.memoizedProps);case 5:Tl(n,n.return),n.tag!==5&&n.tag!==27||Ol(n),Fu(n,r);break;case 6:Ol(n);break;case 26:Tl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||K||i.parentNode.removeChild(i),Fu(n,r);break;case 22:n.memoizedState===null&&Fu(n,r);break;case 30:Tl(n,n.return),Fu(n,r);break;case 7:Tl(n,n.return);default:Fu(n,r)}e=e.sibling}}function Iu(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:Iu(i,a,n),bl(4,a);break;case 1:if(Iu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Q(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++)Oo(l[i],c)}catch(e){Q(r,r.return,e)}}s&&o&64&&Sl(a),wl(a,a.return);break;case 27:n&2&&Ll(a);case 5:a.tag!==5&&a.tag!==27||Dl(a),Iu(i,a,n),s&&r===null&&o&4&&jl(a),wl(a,a.return);break;case 6:Dl(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||ru||Km(bm(c.ownerDocument),a.type,c),Iu(i,a,n),s&&r===null&&o&4&&jl(a),wl(a,a.return);break;case 12:Iu(i,a,n);break;case 31:Iu(i,a,n),s&&o&4&&Cu(i,a);break;case 13:Iu(i,a,n),s&&o&4&&wu(i,a);break;case 22:a.memoizedState===null&&Iu(i,a,n),wl(a,a.return);break;case 30:Iu(i,a,n),wl(a,a.return);break;case 7:wl(a,a.return);default:Iu(i,a,n)}t=t.sibling}}function Lu(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&&Ra(n))}function Ru(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ra(e))}function zu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Bu(e,t,n,r),t=t.sibling;else i&&eu(t)}function Bu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&$l(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:zu(e,t,n,r),a&2048&&bl(9,t);break;case 1:zu(e,t,n,r);break;case 3:zu(e,t,n,r),i&&du&&(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&&Ra(a)));break;case 12:if(a&2048){zu(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){Q(t,t.return,e)}}else zu(e,t,n,r);break;case 31:zu(e,t,n,r);break;case 13:zu(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&&$l(t),o._visibility&2?zu(e,t,n,r):(o._visibility|=2,Vu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&$l(s),o._visibility&2?zu(e,t,n,r):Hu(e,t)),a&2048&&Lu(s,t);break;case 24:zu(e,t,n,r),a&2048&&Ru(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Kl(a.child,!0),Kl(t.child,!0))),zu(e,t,n,r);break;default:zu(e,t,n,r)}}function Vu(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:Vu(a,o,s,c,i),bl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Vu(a,o,s,c,i)):u._visibility&2?Vu(a,o,s,c,i):Hu(a,o),i&&l&2048&&Lu(o.alternate,o);break;case 24:Vu(a,o,s,c,i),i&&l&2048&&Ru(o.alternate,o);break;default:Vu(a,o,s,c,i)}t=t.sibling}}function Hu(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:Hu(n,r),i&2048&&Lu(r.alternate,r);break;case 24:Hu(n,r),i&2048&&Ru(r.alternate,r);break;default:Hu(n,r)}t=t.sibling}}var Uu=8192;function Wu(e,t,n){if(e.subtreeFlags&Uu)for(e=e.child;e!==null;)Gu(e,t,n),e=e.sibling}function Gu(e,t,n){switch(e.tag){case 26:Wu(e,t,n),e.flags&Uu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&Zm(n,e)):Qm(n,Ou,e.memoizedState,e.memoizedProps));break;case 5:Wu(e,t,n),e.flags&Uu&&(e=e.stateNode,(t&335544128)===t&&Zm(n,e));break;case 3:case 4:var r=Ou;Ou=bm(e.stateNode.containerInfo),Wu(e,t,n),Ou=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Uu,Uu=16777216,Wu(e,t,n),Uu=r):Wu(e,t,n));break;case 30:if((e.flags&Uu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,zl===null&&(zl=new Map),zl.set(r,i)}Wu(e,t,n);break;default:Wu(e,t,n)}}function Ku(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 qu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];su=r,Xu(r,e)}Ku(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ju(e),e=e.sibling}function Ju(e){switch(e.tag){case 0:case 11:case 15:qu(e),e.flags&2048&&xl(9,e,e.return);break;case 3:qu(e);break;case 12:qu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Yu(e)):qu(e);break;default:qu(e)}}function Yu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];su=r,Xu(r,e)}Ku(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:xl(8,t,t.return),Yu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Yu(t));break;default:Yu(t)}e=e.sibling}}function Xu(e,t){for(;su!==null;){var n=su;switch(n.tag){case 0:case 11:case 15:xl(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:Ra(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,su=r;else a:for(n=e;su!==null;){r=su;var i=r.sibling,a=r.return;if(vu(r),r===n){su=null;break a}if(i!==null){i.return=a,su=i;break a}su=a}}}var Zu={getCacheForType:function(e){var t=Aa(Ia),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Aa(Ia).controller.signal}},Qu=typeof WeakMap==`function`?WeakMap:Map,q=0,$u=null,J=null,Y=0,X=0,ed=null,td=!1,nd=!1,rd=!1,Z=0,id=0,ad=0,od=0,sd=0,cd=0,ld=0,ud=null,dd=null,fd=!1,pd=0,md=0,hd=1/0,gd=null,_d=null,vd=0,yd=null,bd=null,xd=0,Sd=0,Cd=null,wd=null,Td=null,Ed=null,Dd=null,Od=0,kd=null;function Ad(){return q&2&&Y!==0?Y&-Y:k.T===null?Et():Nf()}function jd(){if(cd===0){if(!(Y&536870912)||F){var e=ut;ut<<=1,!(ut&3932160)&&(ut=262144),cd=e}else cd=536870912}return e=Fo.current,e!==null&&(e.flags|=32),cd}function Md(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Pp(Si(e.memoizedProps,n))),Ed===null&&(Ed=[]),Ed.push(t.bind(null,r))}}function Nd(e,t,n){(e===$u&&(X===2||X===9)||e.cancelPendingCommit!==null)&&(Bd(e,0),Ld(e,Y,cd,!1)),yt(e,n),(!(q&2)||e!==$u)&&(e===$u&&(!(q&2)&&(od|=n),id===4&&Ld(e,Y,cd,!1)),Tf(e))}function Pd(e,t,n){if(q&6)throw Error(s(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||mt(e,t),i=r?Jd(e,t):Kd(e,t,!0),a=r;do{if(i===0){nd&&!r&&Ld(e,t,0,!1);break}if(n=e.current.alternate,a&&!Id(n)){i=Kd(e,t,!1),a=!1;continue}if(i===2){if(a=t,e.errorRecoveryDisabledLanes&a)var o=0;else o=e.pendingLanes&-536870913,o=o===0?o&536870912?536870912:0:o;if(o!==0){t=o;a:{var c=e;i=ud;var l=c.current.memoizedState.isDehydrated;if(l&&(Bd(c,o).flags|=256),o=Kd(c,o,!1),o!==2&&o!==6){if(rd&&!l){c.errorRecoveryDisabledLanes|=a,od|=a,i=4;break a}a=dd,dd=i,a!==null&&(dd===null?dd=a:dd.push.apply(dd,a))}i=o}if(a=!1,i!==2)continue}}if(i===1){Bd(e,0),Ld(e,t,0,!0);break}a:{switch(r=e,a=i,a){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Ld(r,t,cd,!td);break a;case 2:dd=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(i=pd+300-qe(),10<i)){if(Ld(r,t,cd,!td),pt(r,0,!0)!==0)break a;xd=t,r.timeoutHandle=gp(Fd.bind(null,r,n,dd,gd,fd,t,cd,od,ld,td,a,`Throttled`,-0,0),i);break a}Fd(r,n,dd,gd,fd,t,cd,od,ld,td,a,null,-0,0)}break}while(1);Tf(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;if(d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:wn},zl=null,Gu(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=nh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?pd-qe():(a&4194048)===a?md-qe():0,m=eh(d,m),m!==null)){xd=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);return}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(!qr(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=ht(e,t),t&=~sd,t&=~od,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-at(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&xt(e,n,t)}function Rd(){return q&6?!0:(Ef(0,!1),!1)}function zd(){if(J!==null){if(X===0)var e=J.return;else e=J,Sa=xa=null,ls(e),lo=null,uo=0,e=J;for(;e!==null;)yl(e.alternate,e),e=e.return;J=null}}function Bd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,_p(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),xd=0,zd(),$u=e,J=n=zi(e.current,null),Y=t,X=0,ed=null,td=!1,nd=mt(e,t),rd=!1,ld=cd=sd=od=ad=id=0,dd=ud=null,fd=!1,Z=ht(e,t),ki(),n}function Vd(e,t){L=null,k.H=pc,t===$a||t===to?(t=so(),X=3):t===eo?(t=so(),X=4):X=t===jc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,ed=t,J===null&&(id=1,Tc(e,qi(t,e.current)))}function Hd(){var e=Fo.current;return e===null?!0:(Y&4194048)===Y?Io===null:(Y&62914560)===Y||Y&536870912?e===Io:!1}function Ud(){var e=k.H;return k.H=pc,e===null?pc:e}function Wd(){var e=k.A;return k.A=Zu,e}function Gd(){id=4,td||(Y&4194048)!==Y&&Fo.current!==null||(nd=!0),!(ad&134217727)&&!(od&134217727)||$u===null||Ld($u,Y,cd,!1)}function Kd(e,t,n){var r=q;q|=2;var i=Ud(),a=Wd();($u!==e||Y!==t)&&(gd=null,Bd(e,t)),t=!1;var o=id;a:do try{if(X!==0&&J!==null){var s=J,c=ed;switch(X){case 8:zd(),o=6;break a;case 3:case 2:case 9:case 6:Fo.current===null&&(t=!0);var l=X;if(X=0,ed=null,Qd(e,s,c,l),n&&nd){o=0;break a}break;default:l=X,X=0,ed=null,Qd(e,s,c,l)}}qd(),o=id;break}catch(t){Vd(e,t)}while(1);return t&&e.shellSuspendCounter++,Sa=xa=null,q=r,k.H=i,k.A=a,J===null&&($u=null,Y=0,ki()),o}function qd(){for(;J!==null;)Xd(J)}function Jd(e,t){var n=q;q|=2;var r=Ud(),i=Wd();$u!==e||Y!==t?(gd=null,hd=qe()+500,Bd(e,t)):nd=mt(e,t);a:do try{if(X!==0&&J!==null){t=J;var a=ed;b:switch(X){case 1:X=0,ed=null,Qd(e,t,a,1);break;case 2:case 9:if(ro(a)){X=0,ed=null,Zd(t);break}t=function(){X!==2&&X!==9||$u!==e||(X=7),Tf(e)},a.then(t,t);break a;case 3:X=7;break a;case 4:X=5;break a;case 7:ro(a)?(X=0,ed=null,Zd(t)):(X=0,ed=null,Qd(e,t,a,7));break;case 5:var o=null;switch(J.tag){case 26:o=J.memoizedState;case 5:case 27:var c=J;if(o?Ym(o):c.stateNode.complete){X=0,ed=null;var l=c.sibling;if(l!==null)J=l;else{var u=c.return;u===null?J=null:(J=u,$d(u))}break b}}X=0,ed=null,Qd(e,t,a,5);break;case 6:X=0,ed=null,Qd(e,t,a,6);break;case 8:zd(),id=6;break a;default:throw Error(s(462))}}Yd();break}catch(t){Vd(e,t)}while(1);return Sa=xa=null,k.H=r,k.A=i,q=n,J===null?($u=null,Y=0,ki(),id):0}function Yd(){for(;J!==null&&!Ge();)Xd(J)}function Xd(e){var t=dl(e.alternate,e,Z);e.memoizedProps=e.pendingProps,t===null?$d(e):J=t}function Zd(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Gc(n,t,t.pendingProps,t.type,void 0,Y);break;case 11:t=Gc(n,t,t.pendingProps,t.type.render,t.ref,Y);break;case 5:ls(t);var r=t;r===ca&&(F?(ha(r),r.tag===5&&r.stateNode!=null&&(la=r.stateNode)):(ha(r),F=!0));default:yl(n,t),t=J=Bi(t,Z),t=dl(n,t,Z)}e.memoizedProps=e.pendingProps,t===null?$d(e):J=t}function Qd(e,t,n,r){Sa=xa=null,ls(t),lo=null,uo=0;var i=t.return;try{if(Ac(e,i,t,n,Y)){id=1,Tc(e,qi(n,e.current)),J=null;return}}catch(t){if(i!==null)throw J=i,t;id=1,Tc(e,qi(n,e.current)),J=null;return}t.flags&32768?(F||r===1?e=!0:nd||Y&536870912?e=!1:(td=e=!0,(r===2||r===9||r===3||r===6)&&(r=Fo.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=_l(t.alternate,t,Z);if(n!==null){J=n;return}if(t=t.sibling,t!==null){J=t;return}J=t=e}while(t!==null);id===0&&(id=5)}function ef(e,t){do{var n=vl(e.alternate,e);if(n!==null){n.flags&=32767,J=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){J=e;return}J=e=n}while(e!==null);id=6,J=null}function tf(e,t,n,r,i,a,o,c,l,u,d,f){e.cancelPendingCommit=null;do uf();while(vd!==0);if(q&6)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));e===$u&&(J=$u=null,Y=0),bd=t,yd=e,xd=n,Cd=i,wd=r,nf(e,t,n,o,c,l,f)}}function nf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Sd=s,s|=Oi,bt(e,n,s,r,i,a),Ed=null,(n&335544064)===n?(Dd=Va(e),r=10262):(Dd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,vf(Ze,function(){return df(),null})):(e.callbackNode=null,e.callbackPriority=0),Rl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=k.T,k.T=null,i=A.p,A.p=2,a=q,q|=4;try{fu(e,t,n)}finally{q=a,A.p=i,k.T=r}}vd=1,Rl?Td=Mp(o,e.containerInfo,Dd,of,sf,af,cf,df,rf,null,null):(of(),sf(),cf())}function rf(e){if(vd!==0){var t=yd.onRecoverableError;t(e,{componentStack:null})}}function af(){vd===3&&(vd=0,Nu(bd,yd),vd=4)}function of(){if(vd===1){vd=0;var e=yd,t=bd,n=xd,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=k.T,k.T=null;var i=A.p;A.p=2;var a=q;q|=4;try{lu=uu=!1,ku(t,e,n),n=cp;var o=$r(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Qr(s.ownerDocument.documentElement,s)){if(c!==null&&ei(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 _=Zr(s,h),v=Zr(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}}gh=!!sp,cp=sp=null}finally{q=a,A.p=i,k.T=r}}e.current=t,vd=2}}function sf(){if(vd===2){vd=0;var e=yd,t=bd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=k.T,k.T=null;var r=A.p;A.p=2;var i=q;q|=4;try{mu(e,t.alternate,t)}finally{q=i,A.p=r,k.T=n}}vd=3}}function cf(){if(vd===4||vd===3){vd=0;var e=Td;Td=null,Ke();var t=yd,n=bd,r=xd,i=wd,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?vd=5:(vd=0,bd=yd=null,lf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(_d=null),Tt(r),n=n.stateNode,rt&&typeof rt.onCommitFiberRoot==`function`)try{rt.onCommitFiberRoot(nt,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=k.T,a=A.p,A.p=2,k.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{k.T=n,A.p=a}}if(i=Ed,o=Dd,Dd=null,i!==null&&(Ed=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);xd&3&&uf(),Tf(t),a=t.pendingLanes,r&261930&&a&42?t===kd?Od++:(Od=0,kd=t):(Od=0,kd=null),Ef(0,!1)}}function lf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ra(t)))}function uf(){return Td!==null&&(Td.skipTransition(),Td=null),of(),sf(),cf(),df()}function df(){if(vd!==5)return!1;var e=yd,t=Sd;Sd=0;var n=Tt(xd),r=k.T,i=A.p;try{A.p=32>n?32:n,k.T=null,n=Cd,Cd=null;var a=yd,o=xd;if(vd=0,bd=yd=null,xd=0,q&6)throw Error(s(331));var c=q;if(q|=4,Ju(a.current),Bu(a,a.current,o,n),q=c,Ef(0,!1),rt&&typeof rt.onPostCommitFiberRoot==`function`)try{rt.onPostCommitFiberRoot(nt,a)}catch{}return!0}finally{A.p=i,k.T=r,lf(e,t)}}function ff(e,t,n){t=qi(n,t),t=Dc(e.stateNode,t,2),e=So(e,t,2),e!==null&&(yt(e,2),Tf(e))}function Q(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`&&(_d===null||!_d.has(r))){e=qi(n,e),n=Oc(2),r=So(t,n,2),r!==null&&(kc(n,r,t,e),yt(r,2),Tf(r));break}}t=t.return}}function pf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Qu;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=mf.bind(null,e,t,n),t.then(e,e))}function mf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,$u===e&&(Y&n)===n&&(id===4||id===3&&(Y&62914560)===Y&&300>qe()-pd?q&2?sd|=n:Bd(e,0):sd|=n,ld===Y&&(ld=0)),Tf(e)}function hf(e,t){t===0&&(t=_t()),e=Mi(e,t),e!==null&&(yt(e,t),Tf(e))}function gf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),hf(e,n)}function _f(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}r!==null&&r.delete(t),hf(e,n)}function vf(e,t){return Ue(e,t)}var yf=null,bf=null,xf=!1,Sf=!1,Cf=!1,wf=0;function Tf(e){e!==bf&&e.next===null&&(bf===null?yf=bf=e:bf=bf.next=e),Sf=!0,xf||(xf=!0,Mf())}function Ef(e,t){if(!Cf&&Sf){Cf=!0;do for(var n=!1,r=yf;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-at(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,jf(r,a))}else a=Y,a=pt(r,r===$u?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||mt(r,a)||(n=!0,jf(r,a))}r=r.next}while(n);Cf=!1}}function Df(){Of()}function Of(){Sf=xf=!1;var e=0;wf!==0&&hp()&&(e=wf);for(var t=qe(),n=null,r=yf;r!==null;){var i=r.next,a=kf(r,t);a===0?(r.next=null,n===null?yf=i:n.next=i,i===null&&(bf=n)):(n=r,(e!==0||a&3)&&(Sf=!0)),r=i}vd!==0&&vd!==5||Ef(e,!1),wf!==0&&(wf=0)}function kf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-at(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=gt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=$u,n=Y,n=pt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(X===2||X===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&We(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||mt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&We(r),Tt(n)){case 2:case 8:n=Xe;break;case 32:n=Ze;break;case 268435456:n=$e;break;default:n=Ze}return r=Af.bind(null,e),n=Ue(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&We(r),e.callbackPriority=2,e.callbackNode=null,2}function Af(e,t){if(vd!==0&&vd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(uf()&&e.callbackNode!==n)return null;var r=Y;return r=pt(e,e===$u?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Pd(e,r,t),kf(e,qe()),e.callbackNode!=null&&e.callbackNode===n?Af.bind(null,e):null)}function jf(e,t){if(uf())return null;Pd(e,t,!0)}function Mf(){bp(function(){q&6?Ue(Ye,Df):Of()})}function Nf(){if(wf===0){var e=Wa;e===0&&(e=lt,lt<<=1,!(lt&261888)&&(lt=256)),wf=e}return wf}function Pf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Cn(e)}function Ff(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Pf((i[At]||null).action),o=r.submitter;o&&(t=(t=o[At]||null)?Pf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Gn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(wf!==0){var e=new FormData(i,o);ec(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),ec(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var If=0;If<yi.length;If++){var Lf=yi[If];bi(Lf.toLowerCase(),`on`+(Lf[0].toUpperCase()+Lf.slice(1)))}bi(P,`onAnimationEnd`),bi(fi,`onAnimationIteration`),bi(pi,`onAnimationStart`),bi(`dblclick`,`onDoubleClick`),bi(`focusin`,`onFocus`),bi(`focusout`,`onBlur`),bi(mi,`onTransitionRun`),bi(hi,`onTransitionStart`),bi(gi,`onTransitionCancel`),bi(_i,`onTransitionEnd`),Jt(`onMouseEnter`,[`mouseout`,`mouseover`]),Jt(`onMouseLeave`,[`mouseout`,`mouseover`]),Jt(`onPointerEnter`,[`pointerout`,`pointerover`]),Jt(`onPointerLeave`,[`pointerout`,`pointerover`]),qt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),qt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),qt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),qt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),qt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),qt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Rf=`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(` `),zf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Rf));function Bf(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){Ti(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){Ti(e)}i.currentTarget=null,a=c}}}}function $(e,t){var n=t[Mt];n===void 0&&(n=t[Mt]=new Set);var r=e+`__bubble`;n.has(r)||(Wf(t,e,2,!1),n.add(r))}function Vf(e,t,n){var r=0;t&&(r|=4),Wf(n,e,r,t)}var Hf=`_reactListening`+Math.random().toString(36).slice(2);function Uf(e){if(!e[Hf]){e[Hf]=!0,Gt.forEach(function(t){t!==`selectionchange`&&(zf.has(t)||Vf(t,!1,e),Vf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hf]||(t[Hf]=!0,Vf(`selectionchange`,!1,t))}}function Wf(e,t,n,r){switch(Ch(t)){case 2:var i=_h;break;case 8:i=vh;break;default:i=yh}n=i.bind(null,t,n,e),i=void 0,!Pn||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 Gf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=zt(s),o===null)return;if(c=o.tag,c===5||c===6||c===26||c===27){r=a=o;continue a}s=s.parentNode}}r=r.return}jn(function(){var r=a,i=En(n),o=[];a:{var s=vi.get(e);if(s!==void 0){var c=Gn,u=e;switch(e){case`keypress`:if(Bn(n)===0)break a;case`keydown`:case`keyup`:c=lr;break;case`focusin`:u=`focus`,c=er;break;case`focusout`:u=`blur`,c=er;break;case`beforeblur`:case`afterblur`:c=er;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`:c=Qn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=$n;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=fr;break;case P:case fi:case pi:c=tr;break;case _i:c=pr;break;case`scroll`:case`scrollend`:c=qn;break;case`wheel`:c=mr;break;case`copy`:case`cut`:case`paste`:c=nr;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=ur;break;case`submit`:c=dr;break;case`toggle`:case`beforetoggle`:c=hr}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?s===null?null:s+`Capture`:s;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=Mn(m,p),g!=null&&d.push(Kf(m,g,h))),f)break;m=m.return}0<d.length&&(s=new c(s,u,null,n,i),o.push({event:s,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,s=e===`mouseout`||e===`pointerout`,c&&n!==Tn&&(u=n.relatedTarget||n.fromElement)&&(zt(u)||u[jt]))break a;(s||c)&&(u=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,s?(c=n.relatedTarget||n.toElement,s=r,c=c?zt(c):null,c!==null&&(f=l(c),d=c.tag,c!==f||d!==5&&d!==27&&d!==6)&&(c=null)):(s=null,c=r),s!==c&&(d=Qn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=ur,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=s==null?u:Vt(s),h=c==null?u:Vt(c),u=new d(g,m+`leave`,s,n,i),u.target=f,u.relatedTarget=h,g=null,zt(i)===r&&(d=new d(p,m+`enter`,c,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=s&&c?te(s,c,Jf):null,s!==null&&Yf(o,u,s,d,!1),c!==null&&f!==null&&Yf(o,f,c,d,!0)))}a:{if(s=r?Vt(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var _=Fr;else if(kr(s)){if(Ir)_=Gr;else{_=Ur;var v=Hr}}else c=s.nodeName,!c||c.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&bn(r.elementType)&&(_=Fr):_=Wr;if(_&&=_(e,r)){Ar(o,_,n,i);break a}v&&v(e,s,r)}switch(v=r?Vt(r):window,e){case`focusin`:(kr(v)||v.contentEditable===`true`)&&(ni=v,ri=r,ii=null);break;case`focusout`:ii=ri=ni=null;break;case`mousedown`:ai=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:ai=!1,oi(o,n,i);break;case`selectionchange`:if(ti)break;case`keydown`:case`keyup`:oi(o,n,i)}var y;if(_r)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 Tr?Cr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(br&&n.locale!==`ko`&&(Tr||b!==`onCompositionStart`?b===`onCompositionEnd`&&Tr&&(y=zn()):(In=i,Ln=`value`in In?In.value:In.textContent,Tr=!0)),v=qf(r,b),0<v.length&&(b=new rr(b,e,null,n,i),o.push({event:b,listeners:v}),y?b.data=y:(y=wr(n),y!==null&&(b.data=y)))),(y=yr?Er(e,n):Dr(e,n))&&(b=qf(r,`onBeforeInput`),0<b.length&&(v=new rr(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:v,listeners:b}),v.data=y)),Ff(o,e,r,n,i)}Bf(o,t)})}function Kf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qf(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=Mn(e,n),i!=null&&r.unshift(Kf(e,i,a)),i=Mn(e,t),i!=null&&r.push(Kf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Jf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Yf(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=Mn(n,a),l!=null&&o.unshift(Kf(n,l,c))):i||(l=Mn(n,a),l!=null&&o.push(Kf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Xf=/\r\n?/g,Zf=/\u0000|\uFFFD/g;function Qf(e){return(typeof e==`string`?e:``+e).replace(Xf,`
|
|
9
|
+
`).replace(Zf,``)}function $f(e,t){return t=Qf(t),Qf(e)===t}function ep(e,t,n,r,i,a){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||gn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&gn(e,``+r);else return;break;case`className`:tn(e,`class`,r);break;case`tabIndex`:tn(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:tn(e,n,r);break;case`style`:yn(e,r,a);return;case`data`:if(t!==`object`){tn(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Cn(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 a==`function`&&(n===`formAction`?(t!==`input`&&ep(e,t,`name`,i.name,i,null),ep(e,t,`formEncType`,i.formEncType,i,null),ep(e,t,`formMethod`,i.formMethod,i,null),ep(e,t,`formTarget`,i.formTarget,i,null)):(ep(e,t,`encType`,i.encType,i,null),ep(e,t,`method`,i.method,i,null),ep(e,t,`target`,i.target,i,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Cn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=wn);return;case`onScroll`:r!=null&&$(`scroll`,e);return;case`onScrollEnd`:r!=null&&$(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(s(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(s(60));a?.__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=Cn(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`:$(`beforetoggle`,e),$(`toggle`,e),en(e,`popover`,r);break;case`xlinkActuate`:N(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:N(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:N(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:N(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:N(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:N(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:N(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:N(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:N(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:en(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=xn.get(n)||n,en(e,n,r);else return}M=!0}function tp(e,t,n,r,i,a){switch(n){case`style`:yn(e,r,a);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(s(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(s(60));a?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)gn(e,r);else if(typeof r==`number`||typeof r==`bigint`)gn(e,``+r);else return;break;case`onScroll`:r!=null&&$(`scroll`,e);return;case`onScrollEnd`:r!=null&&$(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=wn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Kt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),a=n.slice(2,i?n.length-7:void 0),t=e[At]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(a,t,i),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(a,r,i);break a}M=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):en(e,n,r)}return}M=!0}function np(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:$(`error`,e),$(`load`,e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var o=n[a];if(o!=null)switch(a){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(s(137,t));default:ep(e,t,a,o,n,null)}}i&&ep(e,t,`srcSet`,n.srcSet,n,null),r&&ep(e,t,`src`,n.src,n,null);return;case`input`:$(`invalid`,e);var c=a=o=i=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:i=d;break;case`type`:o=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:a=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(s(137,t));break;default:ep(e,t,r,d,n,null)}}dn(e,a,c,l,u,o,i,!1);return;case`select`:for(i in $(`invalid`,e),r=o=a=null,n)if(n.hasOwnProperty(i)&&(c=n[i],c!=null))switch(i){case`value`:a=c;break;case`defaultValue`:o=c;break;case`multiple`:r=c;default:ep(e,t,i,c,n,null)}t=a,n=o,e.multiple=!!r,t==null?n!=null&&pn(e,!!r,n,!0):pn(e,!!r,t,!1);return;case`textarea`:for(o in $(`invalid`,e),a=i=r=null,n)if(n.hasOwnProperty(o)&&(c=n[o],c!=null))switch(o){case`value`:r=c;break;case`defaultValue`:i=c;break;case`children`:a=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(s(91));break;default:ep(e,t,o,c,n,null)}hn(e,r,i,a);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:ep(e,t,l,r,n,null)}return;case`dialog`:$(`beforetoggle`,e),$(`toggle`,e),$(`cancel`,e),$(`close`,e);break;case`iframe`:case`object`:$(`load`,e);break;case`video`:case`audio`:for(r=0;r<Rf.length;r++)$(Rf[r],e);break;case`image`:$(`error`,e),$(`load`,e);break;case`details`:$(`toggle`,e);break;case`embed`:case`source`:case`link`:$(`error`,e),$(`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(s(137,t));default:ep(e,t,u,r,n,null)}return;default:if(bn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&tp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&ep(e,t,c,r,n,null))}var rp={};function ip(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 i=null,a=null,o=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)||ep(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&&(M=!0),a=m;break;case`name`:m!==f&&(M=!0),i=m;break;case`checked`:m!==f&&(M=!0),u=m;break;case`defaultChecked`:m!==f&&(M=!0),d=m;break;case`value`:m!==f&&(M=!0),o=m;break;case`defaultValue`:m!==f&&(M=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(s(137,t));break;default:m!==f&&ep(e,t,p,m,r,f)}}un(e,o,c,l,u,d,a,i);return;case`select`:for(a in m=o=c=p=null,n)if(l=n[a],n.hasOwnProperty(a)&&l!=null)switch(a){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(a)||ep(e,t,a,null,r,l)}for(i in r)if(a=r[i],l=n[i],r.hasOwnProperty(i)&&(a!=null||l!=null))switch(i){case`value`:a!==l&&(M=!0),p=a;break;case`defaultValue`:a!==l&&(M=!0),c=a;break;case`multiple`:a!==l&&(M=!0),o=a;default:a!==l&&ep(e,t,i,a,r,l)}t=c,n=o,r=m,p==null?!!r!=!!n&&(t==null?pn(e,!!n,n?[]:``,!1):pn(e,!!n,t,!0)):pn(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(i=n[c],n.hasOwnProperty(c)&&i!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:ep(e,t,c,null,r,i)}for(o in r)if(i=r[o],a=n[o],r.hasOwnProperty(o)&&(i!=null||a!=null))switch(o){case`value`:i!==a&&(M=!0),p=i;break;case`defaultValue`:i!==a&&(M=!0),m=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error(s(91));break;default:i!==a&&ep(e,t,o,i,r,a)}mn(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:ep(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&&(M=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:ep(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)&&ep(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(s(137,t));break;default:ep(e,t,u,p,r,m)}return;default:if(bn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&tp(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||tp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&ep(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||ep(e,t,f,p,r,m)}function ap(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function op(){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&&ap(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&&ap(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 sp=null,cp=null;function lp(e){return e.nodeType===9?e:e.ownerDocument}function up(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 dp(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 fp(e,t,n,r){return n=lp(n).createElement(e),n[kt]=r,n[At]=t,np(n,e,t),Ut(n),n}function pp(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 mp=null;function hp(){var e=window.event;return e&&e.type===`popstate`?e!==mp&&(mp=e,!0):(mp=null,!1)}var gp=typeof setTimeout==`function`?setTimeout:void 0,_p=typeof clearTimeout==`function`?clearTimeout:void 0,vp=typeof Promise==`function`?Promise:void 0,yp=typeof requestAnimationFrame==`function`?requestAnimationFrame:gp,bp=typeof queueMicrotask==`function`?queueMicrotask:vp===void 0?gp:function(e){return vp.resolve(null).then(e).catch(xp)};function xp(e){setTimeout(function(){throw e})}function Sp(e){return e===`head`}function Cp(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),Hh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)_m(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,_m(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[It]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&_m(e.ownerDocument.body)}n=i}while(n);Hh(t)}function wp(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 Tp(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 Ep(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 Dp(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 Op(e){return Dp(e.getBoundingClientRect(),getComputedStyle(e),e)}function kp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Dp(t,n,e)}function Ap(e){return e.documentElement.clientHeight}function jp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Mp(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`&&(Ap(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+=Xm(f),u>$m){s.length=o;break}f=new Promise(jp.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 Np(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Np.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:T({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Np.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},Np.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Pp(e){return{name:e,group:new Np(`group`,e),imagePair:new Np(`image-pair`,e),old:new Np(`old`,e),new:new Np(`new`,e)}}function Fp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Fp.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(Bp(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=Rp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),h(this._fragmentFiber.child,!1,Ip,e,s,r)}this._eventListeners=a}};function Ip(e,t,n,r){return b(e).addEventListener(t,n,r),!1}Fp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Bp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Rp(i.optionsOrUseCapture),h(this._fragmentFiber.child,!1,Lp,e,n,i),r.splice(t,1),a!==null&&a()}};function Lp(e,t,n,r){return b(e).removeEventListener(t,n,r),!1}function Rp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function zp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Bp(e,t,n,r){if(e.length===0)return-1;r=zp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&zp(a.optionsOrUseCapture)===r)return i}return-1}Fp.prototype.dispatchEvent=function(e){var t=g(this._fragmentFiber);if(t===null)return!0;t=b(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,Rp(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,Rp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Fp.prototype.focus=function(e){h(this._fragmentFiber.child,!0,Vp,e,void 0,void 0)};function Vp(e,t){return e.tag!==6&&(e=b(e),pm(e,t))}Fp.prototype.focusLast=function(e){var t=[];h(this._fragmentFiber.child,!0,Hp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Vp(t[n],e);n--);};function Hp(e,t){return t.push(e),!1}Fp.prototype.blur=function(){var e=g(this._fragmentFiber);e!==null&&(e=b(e),e=lp(e).activeElement,e!==null&&h(this._fragmentFiber.child,!1,Up,e,void 0,void 0))};function Up(e,t){return e.tag!==6&&(e=b(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Fp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),h(this._fragmentFiber.child,!1,Wp,e,void 0,void 0)};function Wp(e,t){return e.tag!==6&&(e=b(e),t.observe(e),!1)}Fp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),h(this._fragmentFiber.child,!1,Gp,e,void 0,void 0);for(var n=t=0;n<Kp.length;n++){var r=Kp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Kp[t++]=r}Kp.length=t}};function Gp(e,t){return e.tag!==6&&(e=b(e),t.unobserve(e),!1)}var Kp=[],qp=!1;function Jp(e,t,n){Kp.push({fragmentInstance:e,observer:t,instance:n}),qp||(qp=!0,mm(function(){qp=!1;var e=Kp;Kp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Fp.prototype.getClientRects=function(){var e=[];return h(this._fragmentFiber.child,!1,Yp,e,void 0,void 0),e};function Yp(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=b(e),t.push.apply(t,e.getClientRects());return!1}Fp.prototype.getRootNode=function(e){var t=g(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},Fp.prototype.compareDocumentPosition=function(e){var t=g(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];h(this._fragmentFiber.child,!1,Hp,n,void 0,void 0);var r=b(t);if(n.length===0){if(n=r,_(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=v(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=b(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=b(n[0]),i=b(n[n.length-1]);var a=_(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||Xp(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Xp(e,t,n,r,i){var a=zt(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=g(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=te(n,a,w),t===null?t=!1:(h(t,!0,C,a,n),a=x,x=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=te(r,a,w),t===null?t=!1:(h(t,!0,ee,a,r),a=x,S=x=null,t=a!==null)),t):!1}function Zp(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)}Fp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(s(566));var t=[];h(this._fragmentFiber.child,!1,Hp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=v(this._fragmentFiber);if(r=n?r[1]||r[0]||g(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=b(r),Zp(e,n);return}if(r=b(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 i=t[r];i.tag===6?(i=b(i),Zp(i,n)):b(i).scrollIntoView(e),r+=n?-1:1}};function Qp(e,t){return e=b(e),$p(e,t),!1}function $p(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function em(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,Rp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Kp.length;i++){var a=Kp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Kp[r++]=a)}Kp.length=r,n.observe(e)}),$p(e,t))}function tm(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,Rp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Jp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function nm(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`:nm(n),Rt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function rm(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[It])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=lm(e.nextSibling),e===null)break}return null}function im(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=lm(e.nextSibling),e===null))return null;return e}function am(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=lm(e.nextSibling),e===null))return null;return e}function om(e){return e.data===`$?`||e.data===`$~`}function sm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function cm(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 lm(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 um=null;function dm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return lm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function fm(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 pm(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 mm(e){yp(function(){yp(function(t){return e(t)})})}function hm(e,t,n){switch(t=lp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(s(452));return e;case`head`:if(e=t.head,!e)throw Error(s(453));return e;case`body`:if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function gm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&ep(e,t,r,null,rp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===wn&&(e.onclick=null),Rt(e)}function _m(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Rt(e)}var vm=new Map,ym=new Set;function bm(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 xm=A.d;A.d={f:Sm,r:Cm,D:Em,C:Dm,L:Om,m:km,X:jm,S:Am,M:Mm};function Sm(){var e=xm.f(),t=Rd();return e||t}function Cm(e){var t=Bt(e);t!==null&&t.tag===5&&t.type===`form`?nc(t):xm.r(e)}var wm=typeof document>`u`?null:document;function Tm(e,t,n){var r=wm;if(r&&typeof t==`string`&&t){var i=ln(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),ym.has(i)||(ym.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),np(t,`link`,e),Ut(t),r.head.appendChild(t)))}}function Em(e){xm.D(e),Tm(`dns-prefetch`,e,null)}function Dm(e,t){xm.C(e,t),Tm(`preconnect`,e,t)}function Om(e,t,n){xm.L(e,t,n);var r=wm;if(r&&e&&t){var i=`link[rel="preload"][as="`+ln(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+ln(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+ln(n.imageSizes)+`"]`)):i+=`[href="`+ln(e)+`"]`;var a=i;switch(t){case`style`:a=Pm(e);break;case`script`:a=Rm(e)}if(!(vm.has(a)||(e=T({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Fm(a))||t===`script`&&r.querySelector(zm(a))))){var o=r.createElement(`link`);np(o,`link`,e),t===`style`&&(o[Lt]=!0,o.onload=o.onerror=function(){Wt(o)}),Ut(o),r.head.appendChild(o)}}}function km(e,t){xm.m(e,t);var n=wm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+ln(r)+`"][href="`+ln(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Rm(e)}if(!vm.has(a)&&(e=T({rel:`modulepreload`,href:e},t),vm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zm(a)))return}r=n.createElement(`link`),np(r,`link`,e),Ut(r),n.head.appendChild(r)}}}function Am(e,t,n){xm.S(e,t,n);var r=wm;if(r&&e){var i=Ht(r).hoistableStyles,a=Pm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Fm(a)))s.loading=5;else{e=T({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vm.get(a))&&Hm(e,n);var c=o=r.createElement(`link`);Ut(c),np(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,Vm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jm(e,t){xm.X(e,t);var n=wm;if(n&&e){var r=Ht(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=T({src:e,async:!0},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Ut(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mm(e,t){xm.M(e,t);var n=wm;if(n&&e){var r=Ht(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=T({src:e,async:!0,type:`module`},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Ut(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nm(e,t,n,r){var i=(i=ke.current)?bm(i):null;if(!i)throw Error(s(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Pm(n.href),t=Ht(i).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=Pm(n.href);var a=Ht(i).hoistableStyles,o=a.get(e);if(o||(i=i.ownerDocument||i,o={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},a.set(e,o),(a=i.querySelector(Fm(e)))?a._p||(o.instance=a,o.state.loading=5):(a=vm.get(e),a||(a={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vm.set(e,a)),Lm(i,e,a,o.state))),t&&r===null)throw Error(s(528,``));return o}if(t&&r!==null)throw Error(s(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Rm(n),t=Ht(i).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(s(444,e))}}function Pm(e){return`href="`+ln(e)+`"`}function Fm(e){return`link[rel="stylesheet"][`+e+`]`}function Im(e){return T({},e,{"data-precedence":e.precedence,precedence:null})}function Lm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Lt]){r.loading=1;return}}else t=e.createElement(`link`),t[Lt]=!0,t.onload=t.onerror=Wt.bind(null,t),np(t,`link`,n),Ut(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 Rm(e){return`[src="`+ln(e)+`"]`}function zm(e){return`script[async]`+e}function Bm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+ln(n.href)+`"]`);if(r)return t.instance=r,Ut(r),r;var i=T({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ut(r),np(r,`style`,i),Vm(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Pm(n.href);var a=e.querySelector(Fm(i));if(a)return t.state.loading|=4,t.instance=a,Ut(a),a;r=Im(n),(i=vm.get(i))&&Hm(r,i),a=(e.ownerDocument||e).createElement(`link`),Ut(a);var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),np(a,`link`,r),t.state.loading|=4,Vm(a,n.precedence,e),t.instance=a;case`script`:return a=Rm(n.src),(i=e.querySelector(zm(a)))?(t.instance=i,Ut(i),i):(r=n,(i=vm.get(a))&&(r=T({},n),Um(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),Ut(i),np(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(s(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Vm(r,n.precedence,e));return t.instance}function Vm(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 Hm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Um(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Wm=null;function Gm(e,t,n){if(Wm===null){var r=new Map,i=Wm=new Map;i.set(n,r)}else i=Wm,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[It]||a[kt]||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 Km(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function qm(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 Jm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Ym(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Xm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Zm(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Xm(t),e.suspenseyImages.push(t)),e=rh.bind(e),t.decode().then(e,e))}function Qm(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=Pm(r.href),a=t.querySelector(Fm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=nh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ut(a);return}a=t.ownerDocument||t,r=Im(r),(i=vm.get(i))&&Hm(r,i),a=a.createElement(`link`),Ut(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),np(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=nh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var $m=0;function eh(e,t){return e.stylesheets&&e.count===0&&ah(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ah(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&$m===0&&($m=62500*op());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ah(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>$m?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function th(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ah(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function nh(){this.count--,th(this)}function rh(){this.imgCount--,th(this)}var ih=null;function ah(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ih=new Map,t.forEach(oh,e),ih=null,nh.call(e))}function oh(e,t){if(!(t.state.loading&4)){var n=ih.get(e);if(n)var r=n.get(null);else{n=new Map,ih.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=nh.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 sh={$$typeof:D,Provider:null,Consumer:null,_currentValue:Se,_currentValue2:Se,_threadCount:0};function ch(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=vt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.hiddenUpdates=vt(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 lh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ch(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Li(3,null,null,t),e.current=a,a.stateNode=e,t=La(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},yo(a),e}function uh(e){return e?(e=Fi,e):Fi}function dh(e,t,n,r,i,a){i=uh(i),r.context===null?r.context=i:r.pendingContext=i,r=xo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=So(e,r,t),n!==null&&(Nd(n,e,t),Co(n,e,t))}function fh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ph(e,t){fh(e,t),(e=e.alternate)&&fh(e,t)}function mh(e){if(e.tag===13||e.tag===31){var t=Mi(e,67108864);t!==null&&Nd(t,e,67108864),ph(e,67108864)}}function hh(e){if(e.tag===13||e.tag===31){var t=Ad();t=wt(t);var n=Mi(e,t);n!==null&&Nd(n,e,t),ph(e,t)}}var gh=!0;function _h(e,t,n,r){var i=k.T;k.T=null;var a=A.p;try{A.p=2,yh(e,t,n,r)}finally{A.p=a,k.T=i}}function vh(e,t,n,r){var i=k.T;k.T=null;var a=A.p;try{A.p=8,yh(e,t,n,r)}finally{A.p=a,k.T=i}}function yh(e,t,n,r){if(gh){var i=bh(r);if(i===null)Gf(e,t,r,xh,n),Mh(e,r);else if(Ph(i,e,t,n,r))r.stopPropagation();else if(Mh(e,r),t&4&&-1<jh.indexOf(e)){for(;i!==null;){var a=Bt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=ft(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-at(o);s.entanglements[1]|=c,o&=~c}Tf(a),!(q&6)&&(hd=qe()+500,Ef(0,!1))}}break;case 31:case 13:s=Mi(a,2),s!==null&&Nd(s,a,2),Rd(),ph(a,2)}if(a=bh(r),a===null&&Gf(e,t,r,xh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Gf(e,t,r,null,n)}}function bh(e){return e=En(e),Sh(e)}var xh=null;function Sh(e){if(xh=null,e=zt(e),e!==null){var t=l(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=u(t),e!==null)return e;e=null}else if(n===31){if(e=d(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 xh=e,null}function Ch(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(Je()){case Ye:return 2;case Xe:return 8;case Ze:case Qe:return 32;case $e:return 268435456;default:return 32}default:return 32}}var wh=!1,Th=null,Eh=null,Dh=null,Oh=new Map,kh=new Map,Ah=[],jh=`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 Mh(e,t){switch(e){case`focusin`:case`focusout`:Th=null;break;case`dragenter`:case`dragleave`:Eh=null;break;case`mouseover`:case`mouseout`:Dh=null;break;case`pointerover`:case`pointerout`:Oh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:kh.delete(t.pointerId)}}function Nh(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=Bt(t),t!==null&&mh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ph(e,t,n,r,i){switch(t){case`focusin`:return Th=Nh(Th,e,t,n,r,i),!0;case`dragenter`:return Eh=Nh(Eh,e,t,n,r,i),!0;case`mouseover`:return Dh=Nh(Dh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Oh.set(a,Nh(Oh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,kh.set(a,Nh(kh.get(a)||null,e,t,n,r,i)),!0}return!1}function Fh(e){var t=zt(e.target);if(t!==null){var n=l(t);if(n!==null){if(t=n.tag,t===13){if(t=u(n),t!==null){e.blockedOn=t,Dt(e.priority,function(){hh(n)});return}}else if(t===31){if(t=d(n),t!==null){e.blockedOn=t,Dt(e.priority,function(){hh(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 Ih(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=bh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Tn=r,n.target.dispatchEvent(r),Tn=null}else return t=Bt(n),t!==null&&mh(t),e.blockedOn=n,!1;t.shift()}return!0}function Lh(e,t,n){Ih(e)&&n.delete(t)}function Rh(){wh=!1,Th!==null&&Ih(Th)&&(Th=null),Eh!==null&&Ih(Eh)&&(Eh=null),Dh!==null&&Ih(Dh)&&(Dh=null),Oh.forEach(Lh),kh.forEach(Lh)}function zh(e,n){e.blockedOn===n&&(e.blockedOn=null,wh||(wh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Rh)))}var Bh=null;function Vh(e){Bh!==e&&(Bh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Bh===e&&(Bh=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(Sh(r||n)===null)continue;break}var a=Bt(n);a!==null&&(e.splice(t,3),t-=3,ec(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Hh(e){function t(t){return zh(t,e)}Th!==null&&zh(Th,e),Eh!==null&&zh(Eh,e),Dh!==null&&zh(Dh,e),Oh.forEach(t),kh.forEach(t);for(var n=0;n<Ah.length;n++){var r=Ah[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ah.length&&(n=Ah[0],n.blockedOn===null);)Fh(n),n.blockedOn===null&&Ah.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[At]||null;if(typeof a==`function`)o||Vh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[At]||null)s=o.formAction;else if(Sh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Vh(n)}}}function Uh(){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 Wh(e){this._internalRoot=e}Gh.prototype.render=Wh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current;dh(n,Ad(),e,t,null,null)},Gh.prototype.unmount=Wh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dh(e.current,2,null,e,null,null),Rd(),t[jt]=null}};function Gh(e){this._internalRoot=e}Gh.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ah.length&&t!==0&&t<Ah[n].priority;n++);Ah.splice(n,0,e),n===0&&Fh(e)}};var Kh=r.version;if(Kh!==`19.3.0`)throw Error(s(527,Kh,`19.3.0`));A.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(s(188)):(e=Object.keys(e).join(`,`),Error(s(268,e)));return e=p(t),e=e===null?null:m(e),e=e===null?null:e.stateNode,e};var qh={bundleType:0,version:`19.3.0`,rendererPackageName:`react-dom`,currentDispatcherRef:k,reconcilerVersion:`19.3.0`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Jh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jh.isDisabled&&Jh.supportsFiber)try{nt=Jh.inject(qh),rt=Jh}catch{}}e.createRoot=function(e,t){if(!c(e))throw Error(s(299));var n=!1,r=``,i=Sc,a=Cc,o=wc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=lh(e,1,!1,null,null,n,r,null,i,a,o,Uh),e[jt]=t.current,Uf(e),new Wh(t)}})),c=e(((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=s()})),l=n(),u=c();function d(e){if(!e.trim())return null;try{let t=JSON.parse(e);return!t||typeof t!=`object`||typeof t.type!=`string`?null:t}catch{return null}}function f(e){return e.type===`tabtape`}var p=class{h;initial=[];batch=[];ended=!1;constructor(e){this.h=e}get live(){return this.initial===null}lines(e){for(let t of e){let e=d(t);e&&(f(e)?this.control(e.data?.event):this.initial?this.initial.push(e):this.batch.push(e))}this.flush()}close(){this.goLive(),this.flush()}control(e){switch(e){case`live`:this.goLive();break;case`trimmed`:this.flush(),this.h.onTrimmed();break;case`ended`:this.goLive(),this.flush(),this.ended||(this.ended=!0,this.h.onEnded())}}goLive(){if(!this.initial)return;let e=this.initial;this.initial=null,this.h.onLive(e)}flush(){if(!this.batch.length)return;let e=this.batch;this.batch=[],this.h.onRecords(e)}},m=class{records=[];rrweb=[];listeners=new Set;push(e){for(let t of e)this.records.push(t),t.type===`rrweb`&&this.rrweb.push(t.data);if(e.length)for(let e of this.listeners)e()}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}},h=`/tabtape/api`,g={"X-Tabtape-Client":`ui`},_=class extends Error{status;constructor(e,t){super(t),this.status=e}};async function v(e){let t=await e.text().catch(()=>``);return new _(e.status,`${e.status} ${t.trim()}`.trim())}async function y(e){if(!e.ok)throw await v(e);return e.json()}var b=e=>`${h}/sessions/${encodeURIComponent(e)}`,x=()=>fetch(`${h}/health`).then(e=>y(e)),S=()=>fetch(`${h}/sessions`).then(e=>y(e)),C=e=>fetch(b(e)).then(e=>y(e)),ee=e=>`${b(e)}/events`,w=e=>`${ee(e)}?gzip=1`;function te(e,t){let n=new URLSearchParams({format:`json`,lang:t.lang??`en`});return t.from!==void 0&&n.set(`from`,String(Math.round(t.from))),t.to!==void 0&&n.set(`to`,String(Math.round(t.to))),fetch(`${b(e)}/repro?${n}`).then(e=>y(e))}function T(e,t){t&&(e.set(`from`,String(Math.round(t.from))),e.set(`to`,String(Math.round(t.to))))}function ne(e,t,n=!1){let r=new URLSearchParams;t.secrets&&r.set(`secrets`,`1`),t.bodies||r.set(`bodies`,`0`),t.consoleArgs||r.set(`args`,`0`),T(r,t.range),n&&r.set(`estimate`,`1`);let i=r.toString();return`${b(e)}/export${i?`?${i}`:``}`}function E(e,t={}){let n=new URLSearchParams;t.secrets&&n.set(`secrets`,`1`),T(n,t.range);let r=n.toString();return`${b(e)}/har${r?`?${r}`:``}`}var re=(e,t,n)=>fetch(ne(e,t,!0),{signal:n}).then(e=>y(e));async function ie(e){let t=await fetch(b(e),{method:`DELETE`,headers:g});if(!t.ok)throw await v(t)}async function ae(e,t,n){if(!e.body)throw new _(e.status,`empty response`);let r=e.body.getReader(),i=new TextDecoder,a=``,o=0;for(;;){let{done:e,value:s}=await r.read();if(e)break;o+=s.byteLength,n?.(o);let c=(a+i.decode(s,{stream:!0})).split(`
|
|
10
10
|
`);a=c.pop()??``,t(c)}t([a+i.decode()])}async function oe(e,t){let n=await fetch(ee(e));if(!n.ok)throw await v(n);let r=[];return await ae(n,e=>{for(let t of e){let e=d(t);e&&!f(e)&&r.push(e)}},t),r}function se(e,t=location){return`${t.protocol===`https:`?`wss:`:`ws:`}//${t.host}${ee(e)}?follow=1`}var D={normal:1e3,goingAway:1001,abnormal:1006,notFound:4404,tooManyViewers:4429};function ce(e,t,n){return new Promise((r,i)=>{let a=()=>n.reason??new DOMException(`The live connection was aborted.`,`AbortError`);if(n.aborted){i(a());return}let o=new p(t),s=new TextEncoder,c=new TextDecoder,l=``,u=0,d=!1,f=!1,m=new WebSocket(se(e));m.binaryType=`arraybuffer`;let h=e=>{f||(f=!0,n.removeEventListener(`abort`,v),m.onopen=m.onmessage=m.onclose=null,e())},g=e=>{h(()=>i(e)),m.close()},v=()=>g(a());n.addEventListener(`abort`,v),m.onopen=()=>{d=!0},m.onmessage=e=>{try{let n=typeof e.data==`string`?e.data:c.decode(e.data,{stream:!0});!o.live&&t.onProgress&&(u+=typeof e.data==`string`?s.encode(e.data).byteLength:e.data.byteLength,t.onProgress(u));let r=(l+n).split(`
|
|
11
11
|
`);l=r.pop()??``,o.lines(r)}catch(e){g(e)}},m.onclose=e=>{h(()=>{if(e.code===D.normal||e.code===D.goingAway||o.ended){try{o.lines([l+c.decode()]),o.close()}catch(e){i(e);return}r({ended:o.ended})}else e.code===D.notFound?i(new _(404,e.reason||`session not found`)):e.code===D.tooManyViewers?i(new _(429,e.reason||`too many live viewers`)):i(Error(le(e,d)))})}})}function le(e,t){return e.code===D.abnormal?t?`the live connection was lost`:`could not open the live connection`:`the live connection closed (${e.code}${e.reason?`: ${e.reason}`:``})`}var ue=e=>String(e).padStart(2,`0`);function de(e){let t=Math.max(0,Math.floor(e/1e3)),n=Math.floor(t/3600),r=Math.floor(t%3600/60);return n?`${n}:${ue(r)}:${ue(t%60)}`:`${ue(r)}:${ue(t%60)}`}function fe(e){let t=Math.max(0,Math.floor(e));return`${de(t)}.${String(t%1e3).padStart(3,`0`)}`}function pe(e){return e===void 0?``:e<1e3?`${Math.round(e)} ms`:`${(e/1e3).toFixed(e<1e4?2:1)} s`}function O(e){return e===void 0?``:e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:e<1024**3?`${(e/1024/1024).toFixed(1)} MB`:`${(e/1024**3).toFixed(2)} GB`}function me(e,t){return he(e,t)?`${O(e)} on disk · ${O(t)} raw`:O(e)}function he(e,t){return t!==void 0&&t>e&&O(t)!==O(e)}var ge=new Intl.DateTimeFormat(void 0,{day:`numeric`,month:`short`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`}),_e=e=>ge.format(e);function ve(e){try{let t=new URL(e);return{host:t.host,path:`${t.pathname}${t.search}${t.hash}`||`/`}}catch{return{host:``,path:e}}}function ye(e){if(!e)return``;let t=/Edg\/(\d+)/.exec(e)?.[0].replace(`Edg/`,`Edge `)??/OPR\/(\d+)/.exec(e)?.[0].replace(`OPR/`,`Opera `)??/Chrome\/(\d+)/.exec(e)?.[0].replace(`Chrome/`,`Chrome `)??`Browser`,n=/Mac OS X/.test(e)?`macOS`:/Windows/.test(e)?`Windows`:/Linux/.test(e)?`Linux`:``;return n?`${t} · ${n}`:t}function be(e){let t=e.trim();if(t.length<5e6&&(t.startsWith(`{`)||t.startsWith(`[`)))try{return{text:JSON.stringify(JSON.parse(t),null,2),json:!0}}catch{}return{text:e,json:!1}}var xe=Object.defineProperty,k=(e,t,n)=>t in e?xe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,A=(e,t,n)=>k(e,typeof t==`symbol`?t:t+``,n),Se=Object.defineProperty,Ce=(e,t,n)=>t in e?Se(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,we=(e,t,n)=>Ce(e,typeof t==`symbol`?t:t+``,n),j=(e=>(e[e.Document=0]=`Document`,e[e.DocumentType=1]=`DocumentType`,e[e.Element=2]=`Element`,e[e.Text=3]=`Text`,e[e.CDATA=4]=`CDATA`,e[e.Comment=5]=`Comment`,e))(j||{}),Te={Node:[`childNodes`,`parentNode`,`parentElement`,`textContent`,`ownerDocument`,`firstChild`,`lastChild`,`nextSibling`,`previousSibling`],ShadowRoot:[`host`,`styleSheets`],Element:[`shadowRoot`,`querySelector`,`querySelectorAll`],MutationObserver:[]},Ee={Node:[`contains`,`getRootNode`],ShadowRoot:[`getSelection`],Element:[],MutationObserver:[`constructor`]},De={},Oe={},ke=()=>!!globalThis.Zone;function Ae(e){if(De[e])return De[e];let t=globalThis[e],n=t.prototype,r=e in Te?Te[e]:void 0,i=!!(r&&r.every(e=>!!(Object.getOwnPropertyDescriptor(n,e)?.get)?.toString().includes(`[native code]`))),a=e in Ee?Ee[e]:void 0,o=!!(a&&a.every(e=>typeof n[e]==`function`&&n[e]?.toString().includes(`[native code]`)));if(i&&o&&!ke())return De[e]=t.prototype,t.prototype;try{let r=document.createElement(`iframe`);r.style.display=`none`,document.body.appendChild(r);let i=r.contentWindow;if(!i)return t.prototype;let a=i[e].prototype;if(!a)return r.remove(),n;let o=navigator.userAgent;return o.includes(`Safari`)&&!o.includes(`Chrome`)?(r.classList.add(`rr-block`),r.setAttribute(`__rrwebUntaintedMutationObserver`,``),Oe[e]=()=>r.remove()):r.remove(),De[e]=a}catch{return n}}var je={};function Me(e,t,n){let r=je[e]?.[n];if(r)return r.call(t);let i=Ae(e),a=Object.getOwnPropertyDescriptor(i,n)?.get;return a?((je[e]||(je[e]={}))[n]=a,a.call(t)):t[n]}var Ne={};function Pe(e,t,n){let r=`${e}.${String(n)}`;if(Ne[r])return Ne[r].bind(t);let i=Ae(e)[n];return typeof i==`function`?(Ne[r]=i,i.bind(t)):t[n]}function Fe(e){return Me(`Node`,e,`ownerDocument`)}function Ie(e){return Me(`Node`,e,`childNodes`)}function Le(e){return Me(`Node`,e,`parentNode`)}function Re(e){return Me(`Node`,e,`parentElement`)}function ze(e){return Me(`Node`,e,`textContent`)}function Be(e){return Me(`Node`,e,`firstChild`)}function Ve(e){return Me(`Node`,e,`lastChild`)}function He(e){return Me(`Node`,e,`nextSibling`)}function Ue(e){return Me(`Node`,e,`previousSibling`)}function We(e,t){return Pe(`Node`,e,`contains`)(t)}function Ge(e){return Pe(`Node`,e,`getRootNode`)()}function Ke(e){return!e||!(`host`in e)?null:Me(`ShadowRoot`,e,`host`)}function qe(e){return e.styleSheets}function Je(e){return!e||!(`shadowRoot`in e)?null:Me(`Element`,e,`shadowRoot`)}function Ye(e,t){return Me(`Element`,e,`querySelector`)(t)}function Xe(e,t){return Me(`Element`,e,`querySelectorAll`)(t)}function Ze(){return[Ae(`MutationObserver`).constructor,Oe.MutationObserver??(()=>{})]}var Qe=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Qe=()=>new Date().getTime());function $e(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return typeof i==`function`&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}var et={ownerDocument:Fe,childNodes:Ie,parentNode:Le,parentElement:Re,textContent:ze,firstChild:Be,lastChild:Ve,nextSibling:He,previousSibling:Ue,contains:We,getRootNode:Ge,host:Ke,styleSheets:qe,shadowRoot:Je,querySelector:Ye,querySelectorAll:Xe,nowTimestamp:Qe,mutationObserverCtor:Ze,patch:$e};function tt(e){return e.nodeType===e.ELEMENT_NODE}function nt(e){let t=e&&`host`in e&&`mode`in e&&et.host(e)||null;return!!(t&&`shadowRoot`in t&&et.shadowRoot(t)===e)}function rt(e){return Object.prototype.toString.call(e)===`[object ShadowRoot]`}function it(e){return e.includes(` background-clip: text;`)&&!e.includes(` -webkit-background-clip: text;`)&&(e=e.replace(/\sbackground-clip:\s*text;/g,` -webkit-background-clip: text; background-clip: text;`)),e}function at(e){let{cssText:t}=e;if(t.split(`"`).length<3)return t;let n=[`@import`,`url(${JSON.stringify(e.href)})`];return e.layerName===``?n.push(`layer`):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(` `)+`;`}function ot(e){try{let t=e.rules||e.cssRules;if(!t)return null;let n=e.href;return!n&&e.ownerNode&&(n=e.ownerNode.baseURI),it(Array.from(t,e=>st(e,n)).join(``))}catch{return null}}function st(e,t){if(lt(e)){let t;try{t=ot(e.styleSheet)||at(e)}catch{t=e.cssText}return e.styleSheet.href?Tt(t,e.styleSheet.href):t}{let n=e.cssText;return ut(e)&&e.selectorText.includes(`:`)&&(n=ct(n)),t?Tt(n,t):n}}function ct(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,`$1\\$2`)}function lt(e){return`styleSheet`in e}function ut(e){return`selectorText`in e}var dt=class{constructor(){we(this,`idNodeMap`,new Map),we(this,`nodeMetaMap`,new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function ft(){return new dt}function pt({element:e,maskInputOptions:t,tagName:n,type:r,value:i,maskInputFn:a}){let o=i||``,s=r&&mt(r);return(t[n.toLowerCase()]||s&&t[s])&&(o=a?a(o,e):`*`.repeat(o.length)),o}function mt(e){return e.toLowerCase()}var ht=`__rrweb_original__`;function gt(e){let t=e.getContext(`2d`);if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){let i=t.getImageData,a=ht in i?i[ht]:i;if(new Uint32Array(a.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>e!==0))return!1}return!0}function _t(e,t){return!e||!t||e.type!==t.type?!1:e.type===j.Document?e.compatMode===t.compatMode:e.type===j.DocumentType?e.name===t.name&&e.publicId===t.publicId&&e.systemId===t.systemId:e.type===j.Comment||e.type===j.Text||e.type===j.CDATA?e.textContent===t.textContent:e.type===j.Element&&e.tagName===t.tagName&&JSON.stringify(e.attributes)===JSON.stringify(t.attributes)&&e.isSVG===t.isSVG&&e.needBlock===t.needBlock}function vt(e){let t=e.type;return e.hasAttribute(`data-rr-is-password`)?`password`:t?mt(t):null}function yt(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}return n.pathname.match(/\.([0-9a-z]+)(?:$)/i)?.[1]??null}function bt(e){let t=``;return t=e.indexOf(`//`)>-1?e.split(`/`).slice(0,3).join(`/`):e.split(`/`)[0],t=t.split(`?`)[0],t}var xt=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,St=/^(?:[a-z+]+:)?\/\//i,Ct=/^www\..*/i,wt=/^(data:)([^,]*),(.*)/i;function Tt(e,t){return(e||``).replace(xt,(e,n,r,i,a,o)=>{let s=r||a||o,c=n||i||``;if(!s)return e;if(St.test(s)||Ct.test(s)||wt.test(s))return`url(${c}${s}${c})`;if(s[0]===`/`)return`url(${c}${bt(t)+s}${c})`;let l=s.split(`#`)[0],u=s.substring(l.length),d=t.split(`#`)[0].split(`/`),f=l.split(`/`);d.pop();for(let e of f)if(e===`.`)continue;else e===`..`?d.pop():d.push(e);return`url(${c}${d.join(`/`)}${u}${c})`})}var Et=`(?:/\\*[^*]*\\*/)|[\\s;]`,Dt=RegExp(`${Et}|\\b(0)px?`,`g`),Ot=new RegExp(Et,`g`);function kt(e,t=!1){return t?e.replace(Ot,``):e.replace(Dt,`$1`)}function At(e,t,n=!1){let r=Array.from(t.childNodes),i=[],a=0;if(r.length>1&&e&&typeof e==`string`){let t=kt(e,n),o=t.length/e.length;for(let s=1;s<r.length;s++)if(r[s].textContent&&typeof r[s].textContent==`string`){let c=kt(r[s].textContent,n),l=3;for(;l<c.length&&(c[l].match(/[a-zA-Z0-9]/)||c.indexOf(c.substring(0,l),1)!==-1);l++);for(;l<c.length;l++){let u=c.substring(0,l),d=t.split(u),f=-1;if(d.length===2)f=d[0].length;else if(d.length>2&&d[0]===``&&r[s-1].textContent!==``)f=t.indexOf(u,1);else if(d.length===1){if(u=u.substring(0,u.length-1),d=t.split(u),d.length<=1)return i.push(e),i;l=101}else l===c.length-1&&(f=t.indexOf(u));if(d.length>=2&&l>100){let e=r[s-1].textContent;if(e&&typeof e==`string`){let n=kt(e).length;f=t.indexOf(u,n)}f===-1&&(f=d[0].length)}if(f!==-1){let s=Math.floor(f/o);for(;s>0&&s<e.length;){if(a+=1,a>50*r.length)return i.push(e),i;let c=kt(e.substring(0,s),n);if(c.length===f){i.push(e.substring(0,s)),e=e.substring(s),t=t.substring(f);break}c.length<f?s+=Math.max(1,Math.floor((f-c.length)/o)):s-=Math.max(1,Math.floor((c.length-f)*o))}break}}}}return i.push(e),i}function jt(e,t){return At(e,t).join(`/* rr_split */`)}var Mt=1,Nt=RegExp(`[^a-z0-9-_:]`),Pt=-2;function Ft(){return Mt++}function It(e){if(e instanceof HTMLFormElement)return`form`;let t=mt(e.tagName);return Nt.test(t)?`div`:t}var Lt,Rt,zt=/^[^ \t\n\r\u000c]+/,Bt=/^[, \t\n\r\u000c]+/;function Vt(e,t){if(t.trim()===``)return t;let n=0;function r(e){let r,i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):``}let i=[];for(;r(Bt),!(n>=t.length);){let a=r(zt);if(a.slice(-1)===`,`)a=Ut(e,a.substring(0,a.length-1)),i.push(a);else{let r=``;a=Ut(e,a);let o=!1;for(;;){let e=t.charAt(n);if(e===``){i.push((a+r).trim());break}if(o)e===`)`&&(o=!1);else{if(e===`,`){n+=1,i.push((a+r).trim());break}e===`(`&&(o=!0)}r+=e,n+=1}}}return i.join(`, `)}var Ht=new WeakMap;function Ut(e,t){return!t||t.trim()===``?t:Gt(e,t)}function Wt(e){return!!(e.tagName===`svg`||e.ownerSVGElement)}function Gt(e,t){let n=Ht.get(e);if(n||(n=e.createElement(`a`),Ht.set(e,n)),!t)t=``;else if(t.startsWith(`blob:`)||t.startsWith(`data:`))return t;return n.setAttribute(`href`,t),n.href}function Kt(e,t,n,r){return r&&(n===`src`||n===`href`&&(t!==`use`||r[0]!==`#`)||n===`xlink:href`&&r[0]!==`#`||n===`background`&&[`table`,`td`,`th`].includes(t)?Ut(e,r):n===`srcset`?Vt(e,r):n===`style`?Tt(r,Gt(e)):t===`object`&&n===`data`?Ut(e,r):r)}function qt(e,t,n){return[`video`,`audio`].includes(e)&&mt(t)===`autoplay`}function Jt(e,t,n){try{if(typeof t==`string`){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch{}return!1}function Yt(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return n?Yt(et.parentNode(e),t,n):!1;for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return n?Yt(et.parentNode(e),t,n):!1}function Xt(e,t,n,r){let i;if(tt(e)){if(i=e,!et.childNodes(i).length)return!1}else if(et.parentElement(e)===null)return!1;else i=et.parentElement(e);try{if(typeof t==`string`){if(r){if(i.closest(`.${t}`))return!0}else if(i.classList.contains(t))return!0}else if(Yt(i,t,r))return!0;if(n){if(r){if(i.closest(n))return!0}else if(i.matches(n))return!0}}catch{}return!1}function Zt(e,t,n){let r=e.contentWindow;if(!r)return;let i=!1,a;try{a=r.document.readyState}catch{return}if(a!==`complete`){let r=setTimeout(()=>{i||=(t(),!0)},n);e.addEventListener(`load`,()=>{clearTimeout(r),i=!0,t()});return}let o=`about:blank`;if(r.location.href!==o||e.src===o||e.src===``)return setTimeout(t,0),e.addEventListener(`load`,t);e.addEventListener(`load`,t)}function Qt(e,t,n){let r=!1,i;try{i=e.sheet}catch{return}if(i)return;let a=setTimeout(()=>{r||=(t(),!0)},n);e.addEventListener(`load`,()=>{clearTimeout(a),r=!0,t()})}function M(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:a,needsMask:o,inlineStylesheet:s,maskInputOptions:c={},maskTextFn:l,maskInputFn:u,dataURLOptions:d={},inlineImages:f,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:h=!1,cssCaptured:g=!1}=t,_=$t(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode===`CSS1Compat`?{type:j.Document,childNodes:[]}:{type:j.Document,childNodes:[],compatMode:e.compatMode};case e.DOCUMENT_TYPE_NODE:return{type:j.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:_};case e.ELEMENT_NODE:return tn(e,{doc:n,blockClass:i,blockSelector:a,inlineStylesheet:s,maskInputOptions:c,maskInputFn:u,dataURLOptions:d,inlineImages:f,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:h,rootId:_});case e.TEXT_NODE:return en(e,{doc:n,needsMask:o,maskTextFn:l,rootId:_,cssCaptured:g});case e.CDATA_SECTION_NODE:return{type:j.CDATA,textContent:``,rootId:_};case e.COMMENT_NODE:return{type:j.Comment,textContent:et.textContent(e)||``,rootId:_};default:return!1}}function $t(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return n===1?void 0:n}function en(e,t){let{needsMask:n,maskTextFn:r,rootId:i,cssCaptured:a}=t,o=et.parentNode(e),s=o&&o.tagName,c=``,l=s===`STYLE`||void 0,u=s===`SCRIPT`||void 0;return u?c=`SCRIPT_PLACEHOLDER`:a||(c=et.textContent(e),l&&c&&(c=Tt(c,Gt(t.doc)))),!l&&!u&&c&&n&&(c=r?r(c,et.parentElement(e)):c.replace(/[\S]/g,`*`)),{type:j.Text,textContent:c||``,rootId:i}}function tn(e,t){let{doc:n,blockClass:r,blockSelector:i,inlineStylesheet:a,maskInputOptions:o={},maskInputFn:s,dataURLOptions:c={},inlineImages:l,recordCanvas:u,keepIframeSrcFn:d,newlyAddedElement:f=!1,rootId:p}=t,m=Jt(e,r,i),h=It(e),g={},_=e.attributes.length;for(let t=0;t<_;t++){let r=e.attributes[t];qt(h,r.name,r.value)||(g[r.name]=Kt(n,h,mt(r.name),r.value))}if(h===`link`&&a){let t=Array.from(n.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=ot(t)),r&&(delete g.rel,delete g.href,g._cssText=r)}if(h===`style`&&e.sheet){let t=ot(e.sheet);t&&(e.childNodes.length>1&&(t=jt(t,e)),g._cssText=t)}if([`input`,`textarea`,`select`].includes(h)){let t=e.value,n=e.checked;g.type!==`radio`&&g.type!==`checkbox`&&g.type!==`submit`&&g.type!==`button`&&t?g.value=pt({element:e,type:vt(e),tagName:h,value:t,maskInputOptions:o,maskInputFn:s}):n&&(g.checked=n)}if(h===`option`&&(e.selected&&!o.select?g.selected=!0:delete g.selected),h===`dialog`&&e.open&&(g.rr_open_mode=e.matches(`dialog:modal`)?`modal`:`non-modal`),h===`canvas`&&u){if(e.__context===`2d`)gt(e)||(g.rr_dataURL=e.toDataURL(c.type,c.quality));else if(!(`__context`in e)){let t=e.toDataURL(c.type,c.quality),r=n.createElement(`canvas`);r.width=e.width,r.height=e.height,t!==r.toDataURL(c.type,c.quality)&&(g.rr_dataURL=t)}}if(h===`img`&&l){Lt||(Lt=n.createElement(`canvas`),Rt=Lt.getContext(`2d`));let t=e,r=t.currentSrc||t.getAttribute(`src`)||`<unknown-src>`,i=t.crossOrigin,a=()=>{t.removeEventListener(`load`,a);try{Lt.width=t.naturalWidth,Lt.height=t.naturalHeight,Rt.drawImage(t,0,0),g.rr_dataURL=Lt.toDataURL(c.type,c.quality)}catch(e){if(t.crossOrigin!==`anonymous`){t.crossOrigin=`anonymous`,t.complete&&t.naturalWidth!==0?a():t.addEventListener(`load`,a);return}console.warn(`Cannot inline img src=${r}! Error: ${e}`)}t.crossOrigin===`anonymous`&&(i?g.crossOrigin=i:t.removeAttribute(`crossorigin`))};t.complete&&t.naturalWidth!==0?a():t.addEventListener(`load`,a)}if([`audio`,`video`].includes(h)){let t=g;t.rr_mediaState=e.paused?`paused`:`played`,t.rr_mediaCurrentTime=e.currentTime,t.rr_mediaPlaybackRate=e.playbackRate,t.rr_mediaMuted=e.muted,t.rr_mediaLoop=e.loop,t.rr_mediaVolume=e.volume}if(f||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),m){let{width:t,height:n}=e.getBoundingClientRect();g={class:g.class,rr_width:`${t}px`,rr_height:`${n}px`}}h===`iframe`&&!d(g.src)&&(e.contentDocument||(g.rr_src=g.src),delete g.src);let v;try{customElements.get(h)&&(v=!0)}catch{}return{type:j.Element,tagName:h,attributes:g,childNodes:[],isSVG:Wt(e)||void 0,needBlock:m,rootId:p,isCustom:v}}function N(e){return e==null?``:e.toLowerCase()}function nn(e){return e===!0||e===`all`?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:e===`all`,headMetaDescKeywords:e===`all`,headTitleMutations:e===`all`}:e||{}}function rn(e,t){return!!(t.comment&&e.type===j.Comment||e.type===j.Element&&(t.script&&(e.tagName===`script`||e.tagName===`link`&&(e.attributes.rel===`preload`&&e.attributes.as===`script`||e.attributes.rel===`modulepreload`)||e.tagName===`link`&&e.attributes.rel===`prefetch`&&typeof e.attributes.href==`string`&&yt(e.attributes.href)===`js`)||t.headFavicon&&(e.tagName===`link`&&e.attributes.rel===`shortcut icon`||e.tagName===`meta`&&(N(e.attributes.name).match(/^msapplication-tile(image|color)$/)||N(e.attributes.name)===`application-name`||N(e.attributes.rel)===`icon`||N(e.attributes.rel)===`apple-touch-icon`||N(e.attributes.rel)===`shortcut icon`))||e.tagName===`meta`&&(t.headMetaDescKeywords&&N(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(N(e.attributes.property).match(/^(og|twitter|fb):/)||N(e.attributes.name).match(/^(og|twitter):/)||N(e.attributes.name)===`pinterest`)||t.headMetaRobots&&(N(e.attributes.name)===`robots`||N(e.attributes.name)===`googlebot`||N(e.attributes.name)===`bingbot`)||t.headMetaHttpEquiv&&e.attributes[`http-equiv`]!==void 0||t.headMetaAuthorship&&(N(e.attributes.name)===`author`||N(e.attributes.name)===`generator`||N(e.attributes.name)===`framework`||N(e.attributes.name)===`publisher`||N(e.attributes.name)===`progid`||N(e.attributes.property).match(/^article:/)||N(e.attributes.property).match(/^product:/))||t.headMetaVerification&&(N(e.attributes.name)===`google-site-verification`||N(e.attributes.name)===`yandex-verification`||N(e.attributes.name)===`csrf-token`||N(e.attributes.name)===`p:domain_verify`||N(e.attributes.name)===`verify-v1`||N(e.attributes.name)===`verification`||N(e.attributes.name)===`shopify-checkout-api-token`))))}function an(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:a,maskTextClass:o,maskTextSelector:s,skipChild:c=!1,inlineStylesheet:l=!0,maskInputOptions:u={},maskTextFn:d,maskInputFn:f,slimDOMOptions:p,dataURLOptions:m={},inlineImages:h=!1,recordCanvas:g=!1,onSerialize:_,onIframeLoad:v,iframeLoadTimeout:y=5e3,onStylesheetLoad:b,stylesheetLoadTimeout:x=5e3,keepIframeSrcFn:S=()=>!1,newlyAddedElement:C=!1,cssCaptured:ee=!1}=t,{needsMask:w}=t,{preserveWhiteSpace:te=!0}=t;w||=Xt(e,o,s,w===void 0);let T=M(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,needsMask:w,inlineStylesheet:l,maskInputOptions:u,maskTextFn:d,maskInputFn:f,dataURLOptions:m,inlineImages:h,recordCanvas:g,keepIframeSrcFn:S,newlyAddedElement:C,cssCaptured:ee});if(!T)return console.warn(e,`not serialized`),null;let ne;ne=r.hasNode(e)?r.getId(e):rn(T,p)||!te&&T.type===j.Text&&!T.textContent.replace(/^\s+|\s+$/gm,``).length?Pt:Ft();let E=Object.assign(T,{id:ne});if(r.add(e,E),ne===Pt)return null;_&&_(e);let re=!c;if(E.type===j.Element){re&&=!E.needBlock,delete E.needBlock;let t=et.shadowRoot(e);t&&rt(t)&&(E.isShadowHost=!0)}if((E.type===j.Document||E.type===j.Element)&&re){p.headWhitespace&&E.type===j.Element&&E.tagName===`head`&&(te=!1);let t={doc:n,mirror:r,blockClass:i,blockSelector:a,needsMask:w,maskTextClass:o,maskTextSelector:s,skipChild:c,inlineStylesheet:l,maskInputOptions:u,maskTextFn:d,maskInputFn:f,slimDOMOptions:p,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:te,onSerialize:_,onIframeLoad:v,iframeLoadTimeout:y,onStylesheetLoad:b,stylesheetLoadTimeout:x,keepIframeSrcFn:S,cssCaptured:!1};if(E.type!==j.Element||E.tagName!==`textarea`||E.attributes.value===void 0){E.type===j.Element&&E.attributes._cssText!==void 0&&typeof E.attributes._cssText==`string`&&(t.cssCaptured=!0);for(let n of Array.from(et.childNodes(e))){let e=an(n,t);e&&E.childNodes.push(e)}}let C=null;if(tt(e)&&(C=et.shadowRoot(e)))for(let e of Array.from(et.childNodes(C))){let n=an(e,t);n&&(rt(C)&&(n.isShadow=!0),E.childNodes.push(n))}}let ie=et.parentNode(e);return ie&&nt(ie)&&rt(ie)&&(E.isShadow=!0),E.type===j.Element&&E.tagName===`iframe`&&Zt(e,()=>{let t=e.contentDocument;if(t&&v){let n=an(t,{doc:t,mirror:r,blockClass:i,blockSelector:a,needsMask:w,maskTextClass:o,maskTextSelector:s,skipChild:!1,inlineStylesheet:l,maskInputOptions:u,maskTextFn:d,maskInputFn:f,slimDOMOptions:p,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:te,onSerialize:_,onIframeLoad:v,iframeLoadTimeout:y,onStylesheetLoad:b,stylesheetLoadTimeout:x,keepIframeSrcFn:S});n&&v(e,n)}},y),E.type===j.Element&&E.tagName===`link`&&typeof E.attributes.rel==`string`&&(E.attributes.rel===`stylesheet`||E.attributes.rel===`preload`&&typeof E.attributes.href==`string`&&yt(E.attributes.href)===`css`)&&Qt(e,()=>{if(b){let t=an(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,needsMask:w,maskTextClass:o,maskTextSelector:s,skipChild:!1,inlineStylesheet:l,maskInputOptions:u,maskTextFn:d,maskInputFn:f,slimDOMOptions:p,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:te,onSerialize:_,onIframeLoad:v,iframeLoadTimeout:y,onStylesheetLoad:b,stylesheetLoadTimeout:x,keepIframeSrcFn:S});t&&b(e,t)}},x),E}function on(e,t){let{mirror:n=new dt,blockClass:r=`rr-block`,blockSelector:i=null,maskTextClass:a=`rr-mask`,maskTextSelector:o=null,inlineStylesheet:s=!0,inlineImages:c=!1,recordCanvas:l=!1,maskAllInputs:u=!1,maskTextFn:d,maskInputFn:f,slimDOM:p=!1,dataURLOptions:m,preserveWhiteSpace:h,onSerialize:g,onIframeLoad:_,iframeLoadTimeout:v,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:x=()=>!1}=t;return an(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,maskTextClass:a,maskTextSelector:o,skipChild:!1,inlineStylesheet:s,maskInputOptions:u===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:u===!1?{password:!0}:u,maskTextFn:d,maskInputFn:f,slimDOMOptions:nn(p),dataURLOptions:m,inlineImages:c,recordCanvas:l,preserveWhiteSpace:h,onSerialize:g,onIframeLoad:_,iframeLoadTimeout:v,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:x,newlyAddedElement:!1})}var sn=RegExp(`(max|min)-device-(width|height)`,`g`),cn={postcssPlugin:`postcss-custom-selectors`,prepare(){return{postcssPlugin:`postcss-custom-selectors`,AtRule:function(e){e.params.match(sn)&&(e.params=e.params.replace(sn,`$1-$2`))}}}},ln={postcssPlugin:`postcss-hover-classes`,prepare:function(){let e=[];return{Rule:function(t){e.indexOf(t)===-1&&(e.push(t),t.selectors.forEach(function(e){e.includes(`:hover`)&&(t.selector+=`,
|
|
12
12
|
`+e.replace(/:hover/g,`.\\:hover`))}))}}}};function un(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function dn(e){if(e.__esModule)return e;var t=e.default;if(typeof t==`function`){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var fn={exports:{}},pn;function mn(){if(pn)return fn.exports;pn=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return fn.exports=t(),fn.exports.createColors=t,fn.exports}var hn=dn(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:`Module`}))),gn,_n;function vn(){if(_n)return gn;_n=1;let e=mn(),t=hn;class n extends Error{constructor(e,t,r,i,a,o){super(e),this.name=`CssSyntaxError`,this.reason=e,a&&(this.file=a),i&&(this.source=i),o&&(this.plugin=o),t!==void 0&&r!==void 0&&(typeof t==`number`?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,n)}setMessage(){this.message=this.plugin?this.plugin+`: `:``,this.message+=this.file?this.file:`<css input>`,this.line!==void 0&&(this.message+=`:`+this.line+`:`+this.column),this.message+=`: `+this.reason}showSourceCode(n){if(!this.source)return``;let r=this.source;n??=e.isColorSupported,t&&n&&(r=t(r));let i=r.split(/\r?\n/),a=Math.max(this.line-3,0),o=Math.min(this.line+2,i.length),s=String(o).length,c,l;if(n){let{bold:t,gray:n,red:r}=e.createColors(!0);c=e=>t(r(e)),l=e=>n(e)}else c=l=e=>e;return i.slice(a,o).map((e,t)=>{let n=a+1+t,r=` `+(` `+n).slice(-s)+` | `;if(n===this.line){let t=l(r.replace(/\d/g,` `))+e.slice(0,this.column-1).replace(/[^\t]/g,` `);return c(`>`)+l(r)+e+`
|
|
@@ -136,10 +136,11 @@ or you can use record.mirror to access the mirror instance during recording.`,ws
|
|
|
136
136
|
};
|
|
137
137
|
})();
|
|
138
138
|
//# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
|
|
139
|
-
`,$c=typeof self<`u`&&self.Blob&&new Blob([Qc],{type:`text/javascript;charset=utf-8`});function el(e){let t;try{if(t=$c&&(self.URL||self.webkitURL).createObjectURL($c),!t)throw``;let n=new Worker(t,{name:e?.name});return n.addEventListener(`error`,()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),n}catch{return new Worker(`data:text/javascript;charset=utf-8,`+encodeURIComponent(Qc),{name:e?.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}var tl=class{constructor(e){A(this,`pendingCanvasMutations`,new Map),A(this,`rafStamps`,{latestId:0,invokeId:null}),A(this,`mirror`),A(this,`mutationCb`),A(this,`resetObservers`),A(this,`frozen`,!1),A(this,`locked`,!1),A(this,`processMutation`,(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)});let{sampling:t=`all`,win:n,blockClass:r,blockSelector:i,recordCanvas:a,dataURLOptions:o}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&t===`all`&&this.initCanvasMutationObserver(n,r,i),a&&typeof t==`number`&&this.initCanvasFPSObserver(t,n,r,i,{dataURLOptions:o})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,t,n,r,i){let a=Yc(t,n,r,!0),o=new Map,s=new el;s.onmessage=e=>{let{id:t}=e.data;if(o.set(t,!1),!(`base64`in e.data))return;let{base64:n,type:r,width:i,height:a}=e.data;this.mutationCb({id:t,type:Qs[`2D`],commands:[{property:`clearRect`,args:[0,0,i,a]},{property:`drawImage`,args:[{rr_type:`ImageBitmap`,args:[{rr_type:`Blob`,data:[{rr_type:`ArrayBuffer`,base64:n}],type:r}]},0,0]}]})};let c=1e3/e,l=0,u,d=()=>{let e=[];return t.document.querySelectorAll(`canvas`).forEach(t=>{js(t,n,r,!0)||e.push(t)}),e},f=e=>{if(l&&e-l<c){u=requestAnimationFrame(f);return}l=e,d().forEach(async e=>{let t=this.mirror.getId(e);if(o.get(t)||e.width===0||e.height===0)return;if(o.set(t,!0),[`webgl`,`webgl2`].includes(e.__context)){let t=e.getContext(e.__context);t?.getContextAttributes()?.preserveDrawingBuffer===!1&&t.clear(t.COLOR_BUFFER_BIT)}let n=await createImageBitmap(e);s.postMessage({id:t,bitmap:n,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[n])}),u=requestAnimationFrame(f)};u=requestAnimationFrame(f),this.resetObservers=()=>{a(),cancelAnimationFrame(u)}}initCanvasMutationObserver(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let r=Yc(e,t,n,!1),i=qc(this.processMutation.bind(this),e,t,n),a=Zc(this.processMutation.bind(this),e,t,n);this.resetObservers=()=>{r(),i(),a()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let n=this.pendingCanvasMutations.get(e);if(!n||t===-1)return;let r=n.map(e=>{let{type:t,...n}=e;return n}),{type:i}=n[0];this.mutationCb({id:t,type:i,commands:r}),this.pendingCanvasMutations.delete(e)}},nl=class{constructor(e){A(this,`trackedLinkElements`,new WeakSet),A(this,`mutationCb`),A(this,`adoptedStyleSheetCb`),A(this,`styleMirror`,new Ks),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){`_cssText`in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(e.length===0)return;let n={id:t,styleIds:[]},r=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,n)=>({rule:st(e,t.href),index:n}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}},rl=class{constructor(){A(this,`nodeMap`,new WeakMap),A(this,`active`,!1)}inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}},il,al,ol,sl=!1;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement(`iframe`);document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug(`Unable to override Array.from`,e)}var cl=ft();function ll(e={}){let{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i=`rr-block`,blockSelector:a=null,ignoreClass:o=`rr-ignore`,ignoreSelector:s=null,maskTextClass:c=`rr-mask`,maskTextSelector:l=null,inlineStylesheet:u=!0,maskAllInputs:d,maskInputOptions:f,slimDOMOptions:p,maskInputFn:m,maskTextFn:h,hooks:g,packFn:_,sampling:v={},dataURLOptions:y={},mousemoveWait:b,recordDOM:x=!0,recordCanvas:S=!1,recordCrossOriginIframes:C=!1,recordAfter:ee=e.recordAfter===`DOMContentLoaded`?e.recordAfter:`load`,userTriggeredOnInput:w=!1,collectFonts:te=!1,inlineImages:T=!1,plugins:ne,keepIframeSrcFn:E=()=>!1,ignoreCSSAttributes:re=new Set([]),errorHandler:ie}=e;cc(ie);let ae=!C||window.parent===window,oe=!1;if(!ae)try{window.parent.document&&(oe=!1)}catch{oe=!0}if(ae&&!t)throw Error(`emit function is required`);if(!ae&&!oe)return()=>{};b!==void 0&&v.mousemove===void 0&&(v.mousemove=b),cl.reset();let se=d===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:f===void 0?{password:!0}:f,D=nn(p);Is();let ce,le=0,ue=e=>{for(let t of ne||[])t.eventProcessor&&(e=t.eventProcessor(e));return _&&!oe&&(e=_(e)),e};il=(e,i)=>{let a=e;if(a.timestamp=bs(),uc[0]?.isFrozen()&&a.type!==B.FullSnapshot&&(a.type!==B.IncrementalSnapshot||a.data.source!==V.Mutation)&&uc.forEach(e=>e.unfreeze()),ae)t?.(ue(a),i);else if(oe){let e={type:`rrweb`,event:ue(a),origin:window.location.origin,isCheckout:i};window.parent.postMessage(e,`*`)}if(a.type===B.FullSnapshot)ce=a,le=0;else if(a.type===B.IncrementalSnapshot){if(a.data.source===V.Mutation&&a.data.isAttachIframe)return;le++;let e=r&&le>=r,t=n&&a.timestamp-ce.timestamp>n;(e||t)&&al(!0)}};let de=e=>{il({type:B.IncrementalSnapshot,data:{source:V.Mutation,...e}})},fe=e=>il({type:B.IncrementalSnapshot,data:{source:V.Scroll,...e}}),pe=e=>il({type:B.IncrementalSnapshot,data:{source:V.CanvasMutation,...e}}),O=new nl({mutationCb:de,adoptedStyleSheetCb:e=>il({type:B.IncrementalSnapshot,data:{source:V.AdoptedStyleSheet,...e}})}),me=new Pc({mirror:cl,mutationCb:de,stylesheetManager:O,recordCrossOriginIframes:C,wrappedEmit:il});for(let e of ne||[])e.getMirror&&e.getMirror({nodeMirror:cl,crossOriginIframeMirror:me.crossOriginIframeMirror,crossOriginIframeStyleMirror:me.crossOriginIframeStyleMirror});let he=new rl;ol=new tl({recordCanvas:S,mutationCb:pe,win:window,blockClass:i,blockSelector:a,mirror:cl,sampling:v.canvas,dataURLOptions:y});let ge=new Fc({mutationCb:de,scrollCb:fe,bypassOptions:{blockClass:i,blockSelector:a,maskTextClass:c,maskTextSelector:l,inlineStylesheet:u,maskInputOptions:se,dataURLOptions:y,maskTextFn:h,maskInputFn:m,recordCanvas:S,inlineImages:T,sampling:v,slimDOMOptions:D,iframeManager:me,stylesheetManager:O,canvasManager:ol,keepIframeSrcFn:E,processedNodeManager:he},mirror:cl});al=(e=!1)=>{if(!x)return;il({type:B.Meta,data:{href:window.location.href,width:ks(),height:Os()}},e),O.reset(),ge.init(),uc.forEach(e=>e.lock());let t=on(document,{mirror:cl,blockClass:i,blockSelector:a,maskTextClass:c,maskTextSelector:l,inlineStylesheet:u,maskAllInputs:se,maskTextFn:h,maskInputFn:m,slimDOM:D,dataURLOptions:y,recordCanvas:S,inlineImages:T,onSerialize:e=>{zs(e,cl)&&me.addIframe(e),Bs(e,cl)&&O.trackLinkElement(e),Hs(e)&&ge.addShadowRoot(z.shadowRoot(e),document)},onIframeLoad:(e,t)=>{me.attachIframe(e,t),ge.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{O.attachLinkElement(e,t)},keepIframeSrcFn:E});if(!t)return console.warn(`Failed to snapshot the document`);il({type:B.FullSnapshot,data:{node:t,initialOffset:Ds(window)}},e),uc.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&O.adoptStyleSheets(document.adoptedStyleSheets,cl.getId(document))};try{let e=[],t=e=>W(Ac)({mutationCb:de,mousemoveCb:(e,t)=>il({type:B.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>il({type:B.IncrementalSnapshot,data:{source:V.MouseInteraction,...e}}),scrollCb:fe,viewportResizeCb:e=>il({type:B.IncrementalSnapshot,data:{source:V.ViewportResize,...e}}),inputCb:e=>il({type:B.IncrementalSnapshot,data:{source:V.Input,...e}}),mediaInteractionCb:e=>il({type:B.IncrementalSnapshot,data:{source:V.MediaInteraction,...e}}),styleSheetRuleCb:e=>il({type:B.IncrementalSnapshot,data:{source:V.StyleSheetRule,...e}}),styleDeclarationCb:e=>il({type:B.IncrementalSnapshot,data:{source:V.StyleDeclaration,...e}}),canvasMutationCb:pe,fontCb:e=>il({type:B.IncrementalSnapshot,data:{source:V.Font,...e}}),selectionCb:e=>{il({type:B.IncrementalSnapshot,data:{source:V.Selection,...e}})},customElementCb:e=>{il({type:B.IncrementalSnapshot,data:{source:V.CustomElement,...e}})},blockClass:i,ignoreClass:o,ignoreSelector:s,maskTextClass:c,maskTextSelector:l,maskInputOptions:se,inlineStylesheet:u,sampling:v,recordDOM:x,recordCanvas:S,inlineImages:T,userTriggeredOnInput:w,collectFonts:te,doc:e,maskInputFn:m,maskTextFn:h,keepIframeSrcFn:E,blockSelector:a,slimDOMOptions:D,dataURLOptions:y,mirror:cl,iframeManager:me,stylesheetManager:O,shadowDomManager:ge,processedNodeManager:he,canvasManager:ol,ignoreCSSAttributes:re,plugins:(ne?.filter(e=>e.observer))?.map(e=>({observer:e.observer,options:e.options,callback:t=>il({type:B.Plugin,data:{plugin:e.name,payload:t}})}))||[]},g);me.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{al(),e.push(t(document)),sl=!0};return[`interactive`,`complete`].includes(document.readyState)?n():(e.push(Ss(`DOMContentLoaded`,()=>{il({type:B.DomContentLoaded,data:{}}),ee===`DOMContentLoaded`&&n()})),e.push(Ss(`load`,()=>{il({type:B.Load,data:{}}),ee===`load`&&n()},window))),()=>{e.forEach(e=>{try{e()}catch(e){String(e).toLowerCase().includes(`cross-origin`)||console.warn(e)}}),he.destroy(),sl=!1,lc()}}catch(e){console.warn(e)}}ll.addCustomEvent=(e,t)=>{if(!sl)throw Error(`please add custom event after start recording`);il({type:B.Custom,data:{tag:e,payload:t}})},ll.freezePage=()=>{uc.forEach(e=>e.freeze())},ll.takeFullSnapshot=e=>{if(!sl)throw Error(`please take full snapshot after start recording`);al(e)},ll.mirror=cl;function ul(e){return{all:e||=new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(e){e(n)}),(r=e.get(`*`))&&r.slice().map(function(e){e(t,n)})}}}function dl(e=window,t=document){if(`scrollBehavior`in t.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;let n=e.HTMLElement||e.Element,r={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:n.prototype.scroll||s,scrollIntoView:n.prototype.scrollIntoView},i=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function a(e){return new RegExp([`MSIE `,`Trident/`,`Edge/`].join(`|`)).test(e)}let o=+!!a(e.navigator.userAgent);function s(e,t){this.scrollLeft=e,this.scrollTop=t}function c(e){return .5*(1-Math.cos(Math.PI*e))}function l(e){if(typeof e!=`object`||!e||e.behavior===void 0||e.behavior===`auto`||e.behavior===`instant`)return!0;if(typeof e==`object`&&e.behavior===`smooth`)return!1;throw TypeError(`behavior member of ScrollOptions `+e.behavior+` is not a valid value for enumeration ScrollBehavior.`)}function u(e,t){if(t===`Y`)return e.clientHeight+o<e.scrollHeight;if(t===`X`)return e.clientWidth+o<e.scrollWidth}function d(t,n){let r=e.getComputedStyle(t,null)[`overflow`+n];return r===`auto`||r===`scroll`}function f(e){let t=u(e,`Y`)&&d(e,`Y`),n=u(e,`X`)&&d(e,`X`);return t||n}function p(e){for(;e!==t.body&&f(e)===!1;)e=e.parentNode||e.host;return e}function m(t){let n=i(),r,a,o,s=(n-t.startTime)/468;s=s>1?1:s,r=c(s),a=t.startX+(t.x-t.startX)*r,o=t.startY+(t.y-t.startY)*r,t.method.call(t.scrollable,a,o),(a!==t.x||o!==t.y)&&e.requestAnimationFrame(m.bind(e,t))}function h(n,a,o){let c,l,u,d,f=i();n===t.body?(c=e,l=e.scrollX||e.pageXOffset,u=e.scrollY||e.pageYOffset,d=r.scroll):(c=n,l=n.scrollLeft,u=n.scrollTop,d=s),m({scrollable:c,method:d,startTime:f,startX:l,startY:u,x:a,y:o})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(l(arguments[0])===!0){r.scroll.call(e,arguments[0].left===void 0?typeof arguments[0]==`object`?e.scrollX||e.pageXOffset:arguments[0]:arguments[0].left,arguments[0].top===void 0?arguments[1]===void 0?e.scrollY||e.pageYOffset:arguments[1]:arguments[0].top);return}h.call(e,t.body,arguments[0].left===void 0?e.scrollX||e.pageXOffset:~~arguments[0].left,arguments[0].top===void 0?e.scrollY||e.pageYOffset:~~arguments[0].top)}},e.scrollBy=function(){if(arguments[0]!==void 0){if(l(arguments[0])){r.scrollBy.call(e,arguments[0].left===void 0?typeof arguments[0]==`object`?0:arguments[0]:arguments[0].left,arguments[0].top===void 0?arguments[1]===void 0?0:arguments[1]:arguments[0].top);return}h.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},n.prototype.scroll=n.prototype.scrollTo=function(){if(arguments[0]===void 0)return;if(l(arguments[0])===!0){if(typeof arguments[0]==`number`&&arguments[1]===void 0)throw SyntaxError(`Value could not be converted`);r.elementScroll.call(this,arguments[0].left===void 0?typeof arguments[0]==`object`?this.scrollLeft:~~arguments[0]:~~arguments[0].left,arguments[0].top===void 0?arguments[1]===void 0?this.scrollTop:~~arguments[1]:~~arguments[0].top);return}let e=arguments[0].left,t=arguments[0].top;h.call(this,this,e===void 0?this.scrollLeft:~~e,t===void 0?this.scrollTop:~~t)},n.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(l(arguments[0])===!0){r.elementScroll.call(this,arguments[0].left===void 0?~~arguments[0]+this.scrollLeft:~~arguments[0].left+this.scrollLeft,arguments[0].top===void 0?~~arguments[1]+this.scrollTop:~~arguments[0].top+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},n.prototype.scrollIntoView=function(){if(l(arguments[0])===!0){r.scrollIntoView.call(this,arguments[0]===void 0||arguments[0]);return}let n=p(this),i=n.getBoundingClientRect(),a=this.getBoundingClientRect();n===t.body?e.scrollBy({left:a.left,top:a.top,behavior:`smooth`}):(h.call(this,n,n.scrollLeft+a.left-i.left,n.scrollTop+a.top-i.top),e.getComputedStyle(n).position!==`fixed`&&e.scrollBy({left:i.left,top:i.top,behavior:`smooth`}))}}var fl=class{constructor(e=[],t){A(this,`timeOffset`,0),A(this,`speed`),A(this,`actions`),A(this,`raf`,null),A(this,`lastTimestamp`),this.actions=e,this.speed=t.speed}addAction(e){let t=this.raf===!0;if(!this.actions.length||this.actions[this.actions.length-1].delay<=e.delay)this.actions.push(e);else{let t=this.findActionIndex(e);this.actions.splice(t,0,e)}t&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}updateLiveTime(){this.raf===!0&&this.rafCheck()}rafCheck(){let e=performance.now();for(this.timeOffset+=(e-this.lastTimestamp)*this.speed,this.lastTimestamp=e;this.actions.length;){let e=this.actions[0];if(this.timeOffset>=e.delay)this.actions.shift(),e.doAction();else break}this.raf=this.actions.length>0?requestAnimationFrame(this.rafCheck.bind(this)):!0}clear(){this.raf&&=(this.raf!==!0&&cancelAnimationFrame(this.raf),null),this.actions.length=0}setSpeed(e){this.speed=e}isActive(){return this.raf!==null}findActionIndex(e){let t=0,n=this.actions.length-1;for(;t<=n;){let r=Math.floor((t+n)/2);if(this.actions[r].delay<e.delay)t=r+1;else if(this.actions[r].delay>e.delay)n=r-1;else return r+1}return t}};function pl(e,t){if(e.type===B.IncrementalSnapshot&&e.data.source===V.MouseMove&&e.data.positions&&e.data.positions.length){let n=e.data.positions[0].timeOffset,r=e.timestamp+n;return e.delay=r-t,r-t}return e.delay=e.timestamp-t,e.delay}function ml(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-->0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}var hl;(function(e){e[e.NotStarted=0]=`NotStarted`,e[e.Running=1]=`Running`,e[e.Stopped=2]=`Stopped`})(hl||={});var gl={type:`xstate.init`};function _l(e){return e===void 0?[]:[].concat(e)}function vl(e){return{type:`xstate.assign`,assignment:e}}function yl(e,t){return typeof(e=typeof e==`string`&&t&&t[e]?t[e]:e)==`string`?{type:e}:typeof e==`function`?{type:e.name,exec:e}:e}function bl(e){return function(t){return e===t}}function xl(e){return typeof e==`string`?{type:e}:e}function Sl(e,t){return{value:e,context:t,actions:[],changed:!1,matches:bl(e)}}function Cl(e,t,n){var r=t,i=!1;return[e.filter(function(e){if(e.type===`xstate.assign`){i=!0;var t=Object.assign({},r);return typeof e.assignment==`function`?t=e.assignment(r,n):Object.keys(e.assignment).forEach(function(i){t[i]=typeof e.assignment[i]==`function`?e.assignment[i](r,n):e.assignment[i]}),r=t,!1}return!0}),r,i]}function wl(e,t){t===void 0&&(t={});var n=ml(Cl(_l(e.states[e.initial].entry).map(function(e){return yl(e,t.actions)}),e.context,gl),2),r=n[0],i=n[1],a={config:e,_options:t,initialState:{value:e.initial,actions:r,context:i,matches:bl(e.initial)},transition:function(t,n){var r,i,o=typeof t==`string`?{value:t,context:e.context}:t,s=o.value,c=o.context,l=xl(n),u=e.states[s];if(u.on){var d=_l(u.on[l.type]);try{for(var f=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}(d),p=f.next();!p.done;p=f.next()){var m=p.value;if(m===void 0)return Sl(s,c);var h=typeof m==`string`?{target:m}:m,g=h.target,_=h.actions,v=_===void 0?[]:_,y=h.cond,b=y===void 0?function(){return!0}:y,x=g===void 0,S=g??s,C=e.states[S];if(b(c,l)){var ee=ml(Cl((x?_l(v):[].concat(u.exit,v,C.entry).filter(function(e){return e})).map(function(e){return yl(e,a._options.actions)}),c,l),3),w=ee[0],te=ee[1],T=ee[2],ne=g??s;return{value:ne,context:te,actions:w,changed:g!==s||w.length>0||T,matches:bl(ne)}}}}catch(e){r={error:e}}finally{try{p&&!p.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}}return Sl(s,c)}};return a}var Tl=function(e,t){return e.actions.forEach(function(n){var r=n.exec;return r&&r(e.context,t)})};function El(e){var t=e.initialState,n=hl.NotStarted,r=new Set,i={_machine:e,send:function(i){n===hl.Running&&(t=e.transition(t,i),Tl(t,xl(i)),r.forEach(function(e){return e(t)}))},subscribe:function(e){return r.add(e),e(t),{unsubscribe:function(){return r.delete(e)}}},start:function(r){if(r){var a=typeof r==`object`?r:{context:e.config.context,value:r};t={value:a.value,actions:[],context:a.context,matches:bl(a.value)}}return n=hl.Running,Tl(t,gl),i},stop:function(){return n=hl.Stopped,r.clear(),i},get state(){return t},get status(){return n}};return i}function Dl(e,t){for(let n=e.length-1;n>=0;n--){let r=e[n];if(r.type===B.Meta&&r.timestamp<=t)return e.slice(n)}return e}function Ol(e,{getCastFn:t,applyEventsSynchronously:n,emitter:r}){return El(wl({id:`player`,context:e,initial:`paused`,states:{playing:{on:{PAUSE:{target:`paused`,actions:[`pause`]},CAST_EVENT:{target:`playing`,actions:`castEvent`},END:{target:`paused`,actions:[`resetLastPlayedEvent`,`pause`]},ADD_EVENT:{target:`playing`,actions:[`addEvent`]}}},paused:{on:{PLAY:{target:`playing`,actions:[`recordTimeOffset`,`play`]},CAST_EVENT:{target:`paused`,actions:`castEvent`},TO_LIVE:{target:`live`,actions:[`startLive`]},ADD_EVENT:{target:`paused`,actions:[`addEvent`]}}},live:{on:{ADD_EVENT:{target:`live`,actions:[`addEvent`]},CAST_EVENT:{target:`live`,actions:[`castEvent`]}}}}},{actions:{castEvent:vl({lastPlayedEvent:(e,t)=>t.type===`CAST_EVENT`?t.payload.event:e.lastPlayedEvent}),recordTimeOffset:vl((e,t)=>{let n=e.timeOffset;return`payload`in t&&`timeOffset`in t.payload&&(n=t.payload.timeOffset),{...e,timeOffset:n,baselineTime:e.events[0].timestamp+n}}),play(e){let{timer:i,events:a,baselineTime:o,lastPlayedEvent:s}=e;i.clear();for(let e of a)pl(e,o);let c=Dl(a,o),l=s?.timestamp;s?.type===B.IncrementalSnapshot&&s.data.source===V.MouseMove&&(l=s.timestamp+s.data.positions[0]?.timeOffset),o<(l||0)&&r.emit(U.PlayBack);let u=[];for(let e of c)if(!(l&&l<o&&(e.timestamp<=l||e===s))){if(e.timestamp<o)u.push(e);else{let n=t(e,!1);i.addAction({doAction:()=>{n()},delay:e.delay})}}n(u),r.emit(U.Flush),i.start()},pause(e){e.timer.clear()},resetLastPlayedEvent:vl(e=>({...e,lastPlayedEvent:null})),startLive:vl({baselineTime:(e,t)=>(e.timer.start(),t.type===`TO_LIVE`&&t.payload.baselineTime?t.payload.baselineTime:Date.now())}),addEvent:vl((e,n)=>{let{baselineTime:r,timer:i,events:a}=e;if(n.type===`ADD_EVENT`){let{event:e}=n.payload;pl(e,r);let o=a.length-1;if(!a[o]||a[o].timestamp<=e.timestamp)a.push(e);else{let t=-1,n=0;for(;n<=o;){let t=Math.floor((n+o)/2);a[t].timestamp<=e.timestamp?n=t+1:o=t-1}t===-1&&(t=n),a.splice(t,0,e)}let s=e.timestamp<r,c=t(e,s);s?c():i.isActive()&&i.addAction({doAction:()=>{c()},delay:e.delay})}return{...e,events:a}})}}))}function kl(e){return El(wl({id:`speed`,context:e,initial:`normal`,states:{normal:{on:{FAST_FORWARD:{target:`skipping`,actions:[`recordSpeed`,`setSpeed`]},SET_SPEED:{target:`normal`,actions:[`setSpeed`]}}},skipping:{on:{BACK_TO_NORMAL:{target:`normal`,actions:[`restoreSpeed`]},SET_SPEED:{target:`normal`,actions:[`setSpeed`]}}}}},{actions:{setSpeed:(e,t)=>{`payload`in t&&e.timer.setSpeed(t.payload.speed)},recordSpeed:vl({normalSpeed:e=>e.timer.speed}),restoreSpeed:e=>{e.timer.setSpeed(e.normalSpeed)}}}))}var Al=e=>[`.${e} { background: currentColor }`,`noscript { display: none !important; }`],jl=new Map;function Ml(e,t){let n=jl.get(e);return n||(n=new Map,jl.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}function Nl(e,t,n){return async r=>{if(r&&typeof r==`object`&&`rr_type`in r){if(n&&(n.isUnchanged=!1),r.rr_type===`ImageBitmap`&&`args`in r){let i=await Nl(e,t,n)(r.args);return await createImageBitmap.apply(null,i)}if(`index`in r){if(n||t===null)return r;let{rr_type:e,index:i}=r;return Ml(t,e)[i]}if(`args`in r){let{rr_type:i,args:a}=r,o=window[i];return new o(...await Promise.all(a.map(Nl(e,t,n))))}if(`base64`in r)return Bc(r.base64);if(`src`in r){let t=e.get(r.src);if(t)return t;{let t=new Image;return t.src=r.src,e.set(r.src,t),t}}if(`data`in r&&r.rr_type===`Blob`){let i=await Promise.all(r.data.map(Nl(e,t,n)));return new Blob(i,{type:r.type})}}else if(Array.isArray(r))return await Promise.all(r.map(Nl(e,t,n)));return r}}function Pl(e,t){try{return t===Qs.WebGL?e.getContext(`webgl`)||e.getContext(`experimental-webgl`):e.getContext(`webgl2`)}catch{return null}}var Fl=[`WebGLActiveInfo`,`WebGLBuffer`,`WebGLFramebuffer`,`WebGLProgram`,`WebGLRenderbuffer`,`WebGLShader`,`WebGLShaderPrecisionFormat`,`WebGLTexture`,`WebGLUniformLocation`,`WebGLVertexArrayObject`];function Il(e,t){if(!t?.constructor)return;let{name:n}=t.constructor;if(!Fl.includes(n))return;let r=Ml(e,n);r.includes(t)||r.push(t)}async function Ll({mutation:e,target:t,type:n,imageMap:r,errorHandler:i}){try{let i=Pl(t,n);if(!i)return;if(e.setter){i[e.property]=e.args[0];return}let a=i[e.property],o=await Promise.all(e.args.map(Nl(r,i)));Il(i,a.apply(i,o))}catch(t){i(e,t)}}async function Rl({event:e,mutations:t,target:n,imageMap:r,errorHandler:i}){let a=n.getContext(`2d`);if(!a){i(t[0],Error(`Canvas context is null`));return}let o=t.map(async e=>Promise.all(e.args.map(Nl(r,a))));(await Promise.all(o)).forEach((n,o)=>{let s=t[o];try{if(s.setter){a[s.property]=s.args[0];return}let t=a[s.property];s.property===`drawImage`&&typeof s.args[0]==`string`?(r.get(e),t.apply(a,s.args)):t.apply(a,n)}catch(e){i(s,e)}})}async function zl({event:e,mutation:t,target:n,imageMap:r,canvasEventMap:i,errorHandler:a}){try{let o=i.get(e)||t,s=`commands`in o?o.commands:[o];if([Qs.WebGL,Qs.WebGL2].includes(t.type)){for(let e=0;e<s.length;e++){let i=s[e];await Ll({mutation:i,type:t.type,target:n,imageMap:r,errorHandler:a})}return}await Rl({event:e,mutations:s,target:n,imageMap:r,errorHandler:a})}catch(e){a(t,e)}}var Bl=class{constructor(e){A(this,`mediaMap`,new Map),A(this,`warn`),A(this,`service`),A(this,`speedService`),A(this,`emitter`),A(this,`getCurrentTime`),A(this,`metadataCallbackMap`,new Map),this.warn=e.warn,this.service=e.service,this.speedService=e.speedService,this.emitter=e.emitter,this.getCurrentTime=e.getCurrentTime,this.emitter.on(U.Start,this.start.bind(this)),this.emitter.on(U.SkipStart,this.start.bind(this)),this.emitter.on(U.Pause,this.pause.bind(this)),this.emitter.on(U.Finish,this.pause.bind(this)),this.speedService.subscribe(()=>{this.syncAllMediaElements()})}syncAllMediaElements(e={pause:!1}){this.mediaMap.forEach((t,n)=>{this.syncTargetWithState(n),e.pause&&n.pause()})}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:e,target:t,mediaState:n}){if(n.isPlaying){let r=(e-n.lastInteractionTimeOffset)/1e3*n.playbackRate,i=`duration`in t&&t.duration;if(Number.isNaN(i)){this.waitForMetadata(t);return}let a=n.currentTimeAtLastInteraction+r;t.loop&&i!==!1&&(a%=i),t.currentTime=a}else t.pause(),t.currentTime=n.currentTimeAtLastInteraction}waitForMetadata(e){if(this.metadataCallbackMap.has(e)||!(`addEventListener`in e))return;let t=()=>{this.metadataCallbackMap.delete(e);let t=this.mediaMap.get(e);t&&this.seekTo({time:this.getCurrentTime(),target:e,mediaState:t})};this.metadataCallbackMap.set(e,t),e.addEventListener(`loadedmetadata`,t,{once:!0})}getMediaStateFromMutation({target:e,timeOffset:t,mutation:n}){let r=this.mediaMap.get(e),{type:i,playbackRate:a,currentTime:o,muted:s,volume:c,loop:l}=n;return{isPlaying:i===$s.Play||i!==$s.Pause&&(r?.isPlaying||e.getAttribute(`autoplay`)!==null),currentTimeAtLastInteraction:o??r?.currentTimeAtLastInteraction??0,lastInteractionTimeOffset:t,playbackRate:a??r?.playbackRate??1,volume:c??r?.volume??1,muted:s??r?.muted??e.getAttribute(`muted`)===null,loop:l??r?.loop??e.getAttribute(`loop`)===null}}syncTargetWithState(e){let t=this.mediaMap.get(e);if(!t)return;let{muted:n,loop:r,volume:i,isPlaying:a}=t,o=this.service.state.matches(`paused`),s=t.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:e,mediaState:t}),e.volume!==i&&(e.volume=i),e.muted=n,e.loop=r,e.playbackRate!==s&&(e.playbackRate=s),a&&!o?e.play():e.pause()}catch(e){this.warn(`Failed to replay media interactions: ${e.message||e}`)}}addMediaElements(e,t,n){if(![`AUDIO`,`VIDEO`].includes(e.nodeName))return;let r=e,i=n.getMeta(r);if(!i||!(`attributes`in i))return;let a=this.service.state.matches(`paused`),o=i.attributes,s=!1;s=o.rr_mediaState?o.rr_mediaState===`played`:r.getAttribute(`autoplay`)!==null,s&&a&&r.pause();let c=1;typeof o.rr_mediaPlaybackRate==`number`&&(c=o.rr_mediaPlaybackRate);let l=!1;l=typeof o.rr_mediaMuted==`boolean`?o.rr_mediaMuted:r.getAttribute(`muted`)!==null;let u=!1;u=typeof o.rr_mediaLoop==`boolean`?o.rr_mediaLoop:r.getAttribute(`loop`)!==null;let d=1;typeof o.rr_mediaVolume==`number`&&(d=o.rr_mediaVolume);let f=0;typeof o.rr_mediaCurrentTime==`number`&&(f=o.rr_mediaCurrentTime),this.mediaMap.set(r,{isPlaying:s,currentTimeAtLastInteraction:f,lastInteractionTimeOffset:t,playbackRate:c,volume:d,muted:l,loop:u}),this.syncTargetWithState(r)}mediaMutation({target:e,timeOffset:t,mutation:n}){this.mediaMap.set(e,this.getMediaStateFromMutation({target:e,timeOffset:t,mutation:n})),this.syncTargetWithState(e)}isSupportedMediaElement(e){return[`AUDIO`,`VIDEO`].includes(e.nodeName)}reset(){this.mediaMap.clear()}};function Vl(e,t){if(e.nodeName!==`DIALOG`||e instanceof oo)return;let n=e,r=n.open,i=r&&n.matches(`dialog:modal`),a=n.getAttribute(`rr_open_mode`),o=typeof t?.attributes.open==`string`||typeof n.getAttribute(`open`)==`string`,s=a===`modal`;if(!r||i&&a===`non-modal`||!i&&s){if(!n.isConnected){console.warn(`dialog is not attached to the dom`,n);return}r&&n.close(),o&&(s?n.showModal():n.show())}}function Hl(e,t){if(e.nodeName!==`DIALOG`||e instanceof oo)return;let n=e;if(!n.isConnected){console.warn(`dialog is not attached to the dom`,n);return}t.attributes.open===null&&(n.removeAttribute(`open`),n.removeAttribute(`rr_open_mode`))}var Ul=5e3,Wl=ul,Gl=`[replayer]`,Kl={duration:500,lineCap:`round`,lineWidth:3,strokeStyle:`red`};function ql(e){return e.type==B.IncrementalSnapshot&&(e.data.source==V.TouchMove||e.data.source==V.MouseInteraction&&e.data.type==H.TouchStart)}var Jl=class{constructor(e,t){if(A(this,`wrapper`),A(this,`iframe`),A(this,`UNSAFE_replayCanvas`,!1),A(this,`service`),A(this,`speedService`),A(this,`config`),A(this,`usingVirtualDom`,!1),A(this,`virtualDom`,new Mo),A(this,`mouse`),A(this,`mouseTail`,null),A(this,`tailPositions`,[]),A(this,`emitter`,Wl()),A(this,`nextUserInteractionEvent`),A(this,`legacy_missingNodeRetryMap`,{}),A(this,`cache`,Xr()),A(this,`imageMap`,new Map),A(this,`canvasEventMap`,new Map),A(this,`mirror`,ft()),A(this,`styleMirror`,new Ks),A(this,`mediaManager`),A(this,`firstFullSnapshot`,null),A(this,`newDocumentQueue`,[]),A(this,`mousePos`,null),A(this,`touchActive`,null),A(this,`lastMouseDownEvent`,null),A(this,`lastHoveredRootNode`),A(this,`lastSelectionData`,null),A(this,`constructedStyleMutations`,[]),A(this,`adoptedStyleSheets`,[]),A(this,`handleResize`,e=>{this.iframe.style.display=`inherit`;for(let t of[this.mouseTail,this.iframe])t&&(t.setAttribute(`width`,String(e.width)),t.setAttribute(`height`,String(e.height)))}),A(this,`applyEventsSynchronously`,e=>{for(let t of e){switch(t.type){case B.DomContentLoaded:case B.Load:continue;case B.FullSnapshot:case B.Meta:case B.Plugin:case B.IncrementalSnapshot:}this.getCastFn(t,!0)()}}),A(this,`getCastFn`,(e,t=!1)=>{let n;switch(e.type){case B.DomContentLoaded:case B.Load:break;case B.Custom:n=()=>{this.emitter.emit(U.CustomEvent,e)};break;case B.Meta:n=()=>this.emitter.emit(U.Resize,{width:e.data.width,height:e.data.height});break;case B.FullSnapshot:n=()=>{var n;if(this.firstFullSnapshot){if(this.firstFullSnapshot===e){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(e,t),(n=this.iframe.contentWindow)==null||n.scrollTo(e.data.initialOffset)};break;case B.IncrementalSnapshot:n=()=>{if(this.applyIncremental(e,t),!t&&(e===this.nextUserInteractionEvent&&(this.nextUserInteractionEvent=null,this.backToNormal()),this.config.skipInactive&&!this.nextUserInteractionEvent)){for(let t of this.service.state.context.events)if(!(t.timestamp<=e.timestamp)&&this.isUserInteraction(t)){t.delay-e.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=t);break}if(this.nextUserInteractionEvent){let t=this.nextUserInteractionEvent.delay-e.delay,n={speed:Math.min(Math.round(t/Ul),this.config.maxSpeed)};this.speedService.send({type:`FAST_FORWARD`,payload:n}),this.emitter.emit(U.SkipStart,n)}}}}return()=>{n&&n();for(let n of this.config.plugins||[])n.handler&&n.handler(e,t,{replayer:this});this.service.send({type:`CAST_EVENT`,payload:{event:e}});let r=this.service.state.context.events.length-1;if(!this.config.liveMode&&e===this.service.state.context.events[r]){let t=()=>{r<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send(`END`),this.emitter.emit(U.Finish))},n=50;e.type===B.IncrementalSnapshot&&e.data.source===V.MouseMove&&e.data.positions.length&&(n+=Math.max(0,-e.data.positions[0].timeOffset)),setTimeout(t,n)}this.emitter.emit(U.EventCast,e)}}),!t?.liveMode&&e.length<2)throw Error(`Replayer need at least 2 events.`);let n={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,inactivePeriodThreshold:1e4,showWarning:!0,showDebug:!1,blockClass:`rr-block`,liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:Kl,useVirtualDom:!0,logger:console};this.config=Object.assign({},n,t),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(U.Resize,this.handleResize),this.setupDom();for(let e of this.config.plugins||[])e.getMirror&&e.getMirror({nodeMirror:this.mirror});this.emitter.on(U.Flush,()=>{if(this.usingVirtualDom){let e={mirror:this.mirror,applyCanvas:(e,t,n)=>{zl({event:e,mutation:t,target:n,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(e,t)=>{e.source===V.StyleSheetRule?this.applyStyleSheetRule(e,t):e.source===V.StyleDeclaration&&this.applyStyleDeclaration(e,t)},afterAppend:(e,t)=>{for(let n of this.config.plugins||[])n.onBuild&&n.onBuild(e,{id:t,replayer:this})}};if(this.iframe.contentDocument)try{wo(this.iframe.contentDocument,this.virtualDom,e,this.virtualDom.mirror)}catch(e){this.warn(e)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(let t in this.legacy_missingNodeRetryMap)try{let n=this.legacy_missingNodeRetryMap[t],r=ko(n.node,this.mirror,this.virtualDom.mirror);wo(r,n.node,e,this.virtualDom.mirror),n.node=r}catch(e){this.warn(e)}this.constructedStyleMutations.forEach(e=>{this.applyStyleSheetMutation(e)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(e=>{this.applyAdoptedStyleSheet(e)}),this.adoptedStyleSheets=[]}if(this.mousePos&&=(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),null),this.touchActive===!0?this.mouse.classList.add(`touch-active`):this.touchActive===!1&&this.mouse.classList.remove(`touch-active`),this.touchActive=null,this.lastMouseDownEvent){let[e,t]=this.lastMouseDownEvent;e.dispatchEvent(t)}this.lastMouseDownEvent=null,this.lastSelectionData&&=(this.applySelection(this.lastSelectionData),null)}),this.emitter.on(U.PlayBack,()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()});let r=new fl([],{speed:this.config.speed});this.service=Ol({events:e.map(e=>t&&t.unpackFn?t.unpackFn(e):e).sort((e,t)=>e.timestamp-t.timestamp),timer:r,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(e=>{this.emitter.emit(U.StateChange,{player:e})}),this.speedService=kl({normalSpeed:-1,timer:r}),this.speedService.start(),this.speedService.subscribe(e=>{this.emitter.emit(U.StateChange,{speed:e})}),this.mediaManager=new Bl({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});let i=this.service.state.context.events.find(e=>e.type===B.Meta),a=this.service.state.context.events.find(e=>e.type===B.FullSnapshot);if(i){let{width:e,height:t}=i.data;setTimeout(()=>{this.emitter.emit(U.Resize,{width:e,height:t})},0)}a&&setTimeout(()=>{var e;this.firstFullSnapshot||(this.firstFullSnapshot=a,this.rebuildFullSnapshot(a),(e=this.iframe.contentWindow)==null||e.scrollTo(a.data.initialOffset))},1),this.service.state.context.events.find(ql)&&this.mouse.classList.add(`touch-device`)}get timer(){return this.service.state.context.timer}on(e,t){return this.emitter.on(e,t),this}off(e,t){return this.emitter.off(e,t),this}setConfig(e){Object.keys(e).forEach(t=>{e[t],this.config[t]=e[t]}),this.config.skipInactive||this.backToNormal(),e.speed!==void 0&&this.speedService.send({type:`SET_SPEED`,payload:{speed:e.speed}}),e.mouseTail!==void 0&&(e.mouseTail===!1?this.mouseTail&&(this.mouseTail.style.display=`none`):(this.mouseTail||(this.mouseTail=document.createElement(`canvas`),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add(`replayer-mouse-tail`),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display=`inherit`))}getMetaData(){let e=this.service.state.context.events[0],t=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:e.timestamp,endTime:t.timestamp,totalTime:t.timestamp-e.timestamp}}getCurrentTime(){return this.config.liveMode&&this.timer.updateLiveTime(),this.timer.timeOffset+this.getTimeOffset()}getTimeOffset(){let{baselineTime:e,events:t}=this.service.state.context;return e-t[0].timestamp}getMirror(){return this.mirror}play(e=0){var t;this.service.state.matches(`paused`)||this.service.send({type:`PAUSE`}),this.service.send({type:`PLAY`,payload:{timeOffset:e}}),(t=this.iframe.contentDocument?.getElementsByTagName(`html`)[0])==null||t.classList.remove(`rrweb-paused`),this.emitter.emit(U.Start)}pause(e){var t;e===void 0&&this.service.state.matches(`playing`)&&this.service.send({type:`PAUSE`}),typeof e==`number`&&(this.play(e),this.service.send({type:`PAUSE`})),(t=this.iframe.contentDocument?.getElementsByTagName(`html`)[0])==null||t.classList.add(`rrweb-paused`),this.emitter.emit(U.Pause)}resume(e=0){this.warn(`The 'resume' was deprecated in 1.0. Please use 'play' method which has the same interface.`),this.play(e),this.emitter.emit(U.Resume)}destroy(){this.pause(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.config.root.removeChild(this.wrapper),this.emitter.emit(U.Destroy)}startLive(e){this.service.send({type:`TO_LIVE`,payload:{baselineTime:e}})}addEvent(e){let t=this.config.unpackFn?this.config.unpackFn(e):e;ql(t)&&this.mouse.classList.add(`touch-device`),Promise.resolve().then(()=>this.service.send({type:`ADD_EVENT`,payload:{event:t}}))}enableInteract(){this.iframe.setAttribute(`scrolling`,`auto`),this.iframe.style.pointerEvents=`auto`}disableInteract(){this.iframe.setAttribute(`scrolling`,`no`),this.iframe.style.pointerEvents=`none`}resetCache(){this.cache=Xr()}setupDom(){this.wrapper=document.createElement(`div`),this.wrapper.classList.add(`replayer-wrapper`),this.config.root.appendChild(this.wrapper),this.mouse=document.createElement(`div`),this.mouse.classList.add(`replayer-mouse`),this.wrapper.appendChild(this.mouse),this.config.mouseTail!==!1&&(this.mouseTail=document.createElement(`canvas`),this.mouseTail.classList.add(`replayer-mouse-tail`),this.mouseTail.style.display=`inherit`,this.wrapper.appendChild(this.mouseTail)),this.config.UNSAFE_replayCanvas?(this.iframe=document.createElement(`iframe`),this.iframe.setAttribute(`sandbox`,`allow-same-origin allow-scripts`),this.wrapper.appendChild(this.iframe),this.UNSAFE_replayCanvas=!0):(this.iframe=li({root:this.wrapper}),this.UNSAFE_replayCanvas=!1),this.iframe.style.display=`none`,this.disableInteract(),this.iframe.contentWindow&&this.iframe.contentDocument&&(dl(this.iframe.contentWindow,this.iframe.contentDocument),Is(this.iframe.contentWindow))}rebuildFullSnapshot(e,t=!1){if(!this.iframe.contentDocument)return this.warn(`Looks like your replayer has been destroyed.`);Object.keys(this.legacy_missingNodeRetryMap).length&&this.warn(`Found unresolved missing node map`,this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};let n=[],r=new Set,i=(t,i)=>{if(t.nodeName===`DIALOG`&&r.add(t),this.collectIframeAndAttachDocument(n,t),this.mediaManager.isSupportedMediaElement(t)){let{events:n}=this.service.state.context;this.mediaManager.addMediaElements(t,e.timestamp-n[0].timestamp,this.mirror)}for(let e of this.config.plugins||[])e.onBuild&&e.onBuild(t,{id:i,replayer:this})};this.usingVirtualDom&&=(this.virtualDom.destroyTree(),!1),this.mirror.reset(),ci(e.data.node,{doc:this.iframe.contentDocument,afterAppend:i,cache:this.cache,mirror:this.mirror,UNSAFE_allowUnprotectedRebuild:this.UNSAFE_replayCanvas}),i(this.iframe.contentDocument,e.data.node.id);for(let{mutationInQueue:e,builtNode:t}of n)this.attachDocumentToIframe(e,t),this.newDocumentQueue=this.newDocumentQueue.filter(t=>t!==e);let{documentElement:a,head:o}=this.iframe.contentDocument;this.insertStyleRules(a,o),r.forEach(e=>Vl(e)),this.service.state.matches(`playing`)||this.iframe.contentDocument.getElementsByTagName(`html`)[0].classList.add(`rrweb-paused`),this.emitter.emit(U.FullsnapshotRebuilded,e),t||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(e,t){var n;let r=Al(this.config.blockClass).concat(this.config.insertStyleRules);if(this.config.pauseAnimation&&r.push(`html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }`),r.length){if(this.usingVirtualDom){let n=this.virtualDom.createElement(`style`);this.virtualDom.mirror.add(n,R(n,this.virtualDom.unserializedId)),e.insertBefore(n,t),n.rules.push({source:V.StyleSheetRule,adds:r.map((e,t)=>({rule:e,index:t}))})}else{let i=document.createElement(`style`);e.insertBefore(i,t);for(let e=0;e<r.length;e++)(n=i.sheet)==null||n.insertRule(r[e],e)}}}attachDocumentToIframe(e,t){let n=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,r=[],i=new Set,a=(e,a)=>{e.nodeName===`DIALOG`&&i.add(e),this.collectIframeAndAttachDocument(r,e);let o=n.getMeta(e);if(o?.type===ec.Element&&o?.tagName.toUpperCase()===`HTML`){let{documentElement:e,head:n}=t.contentDocument;this.insertStyleRules(e,n)}if(!this.usingVirtualDom)for(let t of this.config.plugins||[])t.onBuild&&t.onBuild(e,{id:a,replayer:this})};ai(e.node,{doc:t.contentDocument,mirror:n,hackCss:!0,skipChild:!1,afterAppend:a,cache:this.cache}),a(t.contentDocument,e.node.id);for(let{mutationInQueue:e,builtNode:t}of r)this.attachDocumentToIframe(e,t),this.newDocumentQueue=this.newDocumentQueue.filter(t=>t!==e);i.forEach(e=>Vl(e))}collectIframeAndAttachDocument(e,t){if(zs(t,this.mirror)){let n=this.newDocumentQueue.find(e=>e.parentId===this.mirror.getId(t));n&&e.push({mutationInQueue:n,builtNode:t})}}waitForStylesheetLoad(){let e=this.iframe.contentDocument?.head;if(e){let t=new Set,n,r=this.service.state,i=()=>{r=this.service.state};this.emitter.on(U.Start,i),this.emitter.on(U.Pause,i);let a=()=>{this.emitter.off(U.Start,i),this.emitter.off(U.Pause,i)};e.querySelectorAll(`link[rel="stylesheet"]`).forEach(e=>{e.sheet||(t.add(e),e.addEventListener(`load`,()=>{t.delete(e),t.size===0&&n!==-1&&(r.matches(`playing`)&&this.play(this.getCurrentTime()),this.emitter.emit(U.LoadStylesheetEnd),n&&clearTimeout(n),a())}))}),t.size>0&&(this.service.send({type:`PAUSE`}),this.emitter.emit(U.LoadStylesheetStart),n=setTimeout(()=>{r.matches(`playing`)&&this.play(this.getCurrentTime()),n=-1,a()},this.config.loadTimeout))}}async preloadAllImages(){let e=[];for(let t of this.service.state.context.events)t.type===B.IncrementalSnapshot&&t.data.source===V.CanvasMutation&&(e.push(this.deserializeAndPreloadCanvasEvents(t.data,t)),(`commands`in t.data?t.data.commands:[t.data]).forEach(e=>{this.preloadImages(e,t)}));return Promise.all(e)}preloadImages(e,t){if(e.property===`drawImage`&&typeof e.args[0]==`string`&&!this.imageMap.has(t)){let e=document.createElement(`canvas`),t=e.getContext(`2d`),n=t?.createImageData(e.width,e.height);t?.putImageData(n,0,0)}}async deserializeAndPreloadCanvasEvents(e,t){if(!this.canvasEventMap.has(t)){let n={isUnchanged:!0};if(`commands`in e){let r=await Promise.all(e.commands.map(async e=>{let t=await Promise.all(e.args.map(Nl(this.imageMap,null,n)));return{...e,args:t}}));n.isUnchanged===!1&&this.canvasEventMap.set(t,{...e,commands:r})}else{let r=await Promise.all(e.args.map(Nl(this.imageMap,null,n)));n.isUnchanged===!1&&this.canvasEventMap.set(t,{...e,args:r})}}}applyIncremental(e,t){var n,r;let{data:i}=e;switch(i.source){case V.Mutation:try{this.applyMutation(i,t)}catch(e){this.warn(`Exception in mutation ${e.message||e}`,i)}break;case V.Drag:case V.TouchMove:case V.MouseMove:if(t){let e=i.positions[i.positions.length-1];this.mousePos={x:e.x,y:e.y,id:e.id,debugData:i}}else i.positions.forEach(n=>{let r={doAction:()=>{this.moveAndHover(n.x,n.y,n.id,t,i)},delay:n.timeOffset+e.timestamp-this.service.state.context.baselineTime};this.timer.addAction(r)}),this.timer.addAction({doAction(){},delay:e.delay-i.positions[0]?.timeOffset});break;case V.MouseInteraction:{if(i.id===-1)break;let e=new Event(mt(H[i.type])),n=this.mirror.getNode(i.id);if(!n)return this.debugNodeNotFound(i,i.id);this.emitter.emit(U.MouseInteraction,{type:i.type,target:n});let{triggerFocus:r}=this.config;switch(i.type){case H.Blur:`blur`in n&&n.blur();break;case H.Focus:r&&n.focus&&n.focus({preventScroll:!0});break;case H.Click:case H.TouchStart:case H.TouchEnd:case H.MouseDown:case H.MouseUp:t?(i.type===H.TouchStart?this.touchActive=!0:i.type===H.TouchEnd&&(this.touchActive=!1),i.type===H.MouseDown?this.lastMouseDownEvent=[n,e]:i.type===H.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:i.x||0,y:i.y||0,id:i.id,debugData:i}):(i.type===H.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(i.x||0,i.y||0,i.id,t,i),i.type===H.Click?(this.mouse.classList.remove(`active`),this.mouse.offsetWidth,this.mouse.classList.add(`active`)):i.type===H.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add(`touch-active`)):i.type===H.TouchEnd?this.mouse.classList.remove(`touch-active`):n.dispatchEvent(e));break;case H.TouchCancel:t?this.touchActive=!1:this.mouse.classList.remove(`touch-active`);break;default:n.dispatchEvent(e)}break}case V.Scroll:if(i.id===-1)break;if(this.usingVirtualDom){let e=this.virtualDom.mirror.getNode(i.id);if(!e)return this.debugNodeNotFound(i,i.id);e.scrollData=i;break}this.applyScroll(i,t);break;case V.ViewportResize:this.emitter.emit(U.Resize,{width:i.width,height:i.height});break;case V.Input:if(i.id===-1)break;if(this.usingVirtualDom){let e=this.virtualDom.mirror.getNode(i.id);if(!e)return this.debugNodeNotFound(i,i.id);e.inputData=i;break}this.applyInput(i);break;case V.MediaInteraction:{let t=this.usingVirtualDom?this.virtualDom.mirror.getNode(i.id):this.mirror.getNode(i.id);if(!t)return this.debugNodeNotFound(i,i.id);let n=t,{events:r}=this.service.state.context;this.mediaManager.mediaMutation({target:n,timeOffset:e.timestamp-r[0].timestamp,mutation:i});break}case V.StyleSheetRule:case V.StyleDeclaration:this.usingVirtualDom?i.styleId?this.constructedStyleMutations.push(i):i.id&&((n=this.virtualDom.mirror.getNode(i.id))==null||n.rules.push(i)):this.applyStyleSheetMutation(i);break;case V.CanvasMutation:if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){let t=this.virtualDom.mirror.getNode(i.id);if(!t)return this.debugNodeNotFound(i,i.id);t.canvasMutations.push({event:e,mutation:i})}else{let t=this.mirror.getNode(i.id);if(!t)return this.debugNodeNotFound(i,i.id);zl({event:e,mutation:i,target:t,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break;case V.Font:try{let e=new FontFace(i.family,i.buffer?new Uint8Array(JSON.parse(i.fontSource)):i.fontSource,i.descriptors);(r=this.iframe.contentDocument)==null||r.fonts.add(e)}catch(e){this.warn(e)}break;case V.Selection:if(t){this.lastSelectionData=i;break}this.applySelection(i);break;case V.AdoptedStyleSheet:this.usingVirtualDom?this.adoptedStyleSheets.push(i):this.applyAdoptedStyleSheet(i)}}applyMutation(e,t){if(this.config.useVirtualDom&&!this.usingVirtualDom&&t&&(this.usingVirtualDom=!0,Go(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(let e in this.legacy_missingNodeRetryMap)try{let t=this.legacy_missingNodeRetryMap[e],n=Wo(t.node,this.virtualDom,this.mirror);n&&(t.node=n)}catch(e){this.warn(e)}let n=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;e.removes=e.removes.filter(t=>n.getNode(t.id)?!0:(this.warnNodeNotFound(e,t.id),!1)),e.removes.forEach(t=>{let r=n.getNode(t.id);if(!r)return;let i=n.getNode(t.parentId);if(!i)return this.warnNodeNotFound(e,t.parentId);if(t.isShadow&&Hs(i)&&(i=i.shadowRoot),n.removeNodeFromMap(r),i)try{i.removeChild(r),this.usingVirtualDom&&r.nodeName===`#text`&&i.nodeName===`STYLE`&&i.rules?.length>0&&(i.rules=[])}catch(t){if(t instanceof DOMException)this.warn(`parent could not remove child in mutation`,i,r,e);else throw t}});let r={...this.legacy_missingNodeRetryMap},i=[],a=e=>{let t=null;return e.nextId&&(t=n.getNode(e.nextId)),e.nextId!==null&&e.nextId!==void 0&&e.nextId!==-1&&!t},o=e=>{if(!this.iframe.contentDocument)return this.warn(`Looks like your replayer has been destroyed.`);let t=n.getNode(e.parentId);if(!t)return e.node.type===ec.Document?this.newDocumentQueue.push(e):i.push(e);e.node.isShadow&&(Hs(t)||t.attachShadow({mode:`open`}),t=t.shadowRoot);let o=null,s=null;if(e.previousId&&(o=n.getNode(e.previousId)),e.nextId&&(s=n.getNode(e.nextId)),a(e))return i.push(e);if(e.node.rootId&&!n.getNode(e.node.rootId))return;let c=e.node.rootId?n.getNode(e.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(zs(t,n)){this.attachDocumentToIframe(e,t);return}let l=(e,t)=>{if(!this.usingVirtualDom){Vl(e);for(let n of this.config.plugins||[])n.onBuild&&n.onBuild(e,{id:t,replayer:this})}},u=ai(e.node,{doc:c,mirror:n,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:l});if(e.previousId===-1||e.nextId===-1){r[e.node.id]={node:u,mutation:e};return}let d=n.getMeta(t);if(d&&d.type===ec.Element&&e.node.type===ec.Text){let e=Array.isArray(t.childNodes)?t.childNodes:Array.from(t.childNodes);if(d.tagName===`textarea`)for(let n of e)n.nodeType===t.TEXT_NODE&&t.removeChild(n);else if(d.tagName===`style`&&e.length===1)for(let r of e)r.nodeType===t.TEXT_NODE&&!n.hasNode(r)&&(u.textContent=r.textContent,t.removeChild(r))}else if(d?.type===ec.Document){let n=t;e.node.type===ec.DocumentType&&n.childNodes[0]?.nodeType===Node.DOCUMENT_TYPE_NODE&&n.removeChild(n.childNodes[0]),u.nodeName===`HTML`&&n.documentElement&&n.removeChild(n.documentElement)}if(o&&o.nextSibling&&o.nextSibling.parentNode?t.insertBefore(u,o.nextSibling):s&&s.parentNode?t.contains(s)?t.insertBefore(u,s):t.insertBefore(u,null):t.appendChild(u),l(u,e.node.id),this.usingVirtualDom&&u.nodeName===`#text`&&t.nodeName===`STYLE`&&t.rules?.length>0&&(t.rules=[]),zs(u,this.mirror)){let e=this.mirror.getId(u),t=this.newDocumentQueue.find(t=>t.parentId===e);t&&(this.attachDocumentToIframe(t,u),this.newDocumentQueue=this.newDocumentQueue.filter(e=>e!==t))}(e.previousId||e.nextId)&&this.legacy_resolveMissingNode(r,t,u,e)};e.adds.forEach(e=>{o(e)});let s=Date.now();for(;i.length;){let e=Ls(i);if(i.length=0,Date.now()-s>500){this.warn(`Timeout in the loop, please check the resolve tree data:`,e);break}for(let t of e)n.getNode(t.value.parentId)?Rs(t,e=>{o(e)}):this.debug(`Drop resolve tree since there is no parent for the root node.`,t)}Object.keys(r).length&&Object.assign(this.legacy_missingNodeRetryMap,r),Gs(e.texts).forEach(t=>{let r=n.getNode(t.id);if(!r)return e.removes.find(e=>e.id===t.id)?void 0:this.warnNodeNotFound(e,t.id);let i=r.parentElement;if(r.textContent=t.value&&i&&i.tagName===`STYLE`?Yr(t.value,this.cache):t.value,this.usingVirtualDom){let e=r.parentNode;e?.rules?.length>0&&(e.rules=[])}}),e.attributes.forEach(t=>{let r=n.getNode(t.id);if(!r)return e.removes.find(e=>e.id===t.id)?void 0:this.warnNodeNotFound(e,t.id);for(let e in t.attributes)if(typeof e==`string`){let i=t.attributes[e];if(i===null)r.removeAttribute(e),e===`open`&&Hl(r,t);else if(typeof i==`string`)try{if(e===`_cssText`&&(r.nodeName===`LINK`||r.nodeName===`STYLE`))try{let e=n.getMeta(r),i=ai({...e,attributes:{...e.attributes,...t.attributes}},{doc:r.ownerDocument,mirror:n,skipChild:!0,hackCss:!0,cache:this.cache});Object.assign(e.attributes,t.attributes);let a=r.nextSibling,o=r.parentNode;if(i&&o){o.removeChild(r),o.insertBefore(i,a),n.replace(t.id,i);break}}catch{}if(e===`value`&&r.nodeName===`TEXTAREA`){let e=r;e.childNodes.forEach(t=>e.removeChild(t));let t=r.ownerDocument?.createTextNode(i);t&&e.appendChild(t)}else r.setAttribute(e,i);e===`rr_open_mode`&&r.nodeName===`DIALOG`&&Vl(r,t)}catch(e){this.warn(`An error occurred may due to the checkout feature.`,e)}else if(e===`style`){let e=i,t=r;for(let n in e)if(e[n]===!1)t.style.removeProperty(n);else if(e[n]instanceof Array){let r=e[n];t.style.setProperty(n,r[0],r[1])}else{let r=e[n];t.style.setProperty(n,r)}}}})}applyScroll(e,t){var n,r;let i=this.mirror.getNode(e.id);if(!i)return this.debugNodeNotFound(e,e.id);let a=this.mirror.getMeta(i);if(i===this.iframe.contentDocument)(n=this.iframe.contentWindow)==null||n.scrollTo({top:e.y,left:e.x,behavior:t?`auto`:`smooth`});else if(a?.type===ec.Document)(r=i.defaultView)==null||r.scrollTo({top:e.y,left:e.x,behavior:t?`auto`:`smooth`});else try{i.scrollTo({top:e.y,left:e.x,behavior:t?`auto`:`smooth`})}catch{}}applyInput(e){let t=this.mirror.getNode(e.id);if(!t)return this.debugNodeNotFound(e,e.id);try{t.checked=e.isChecked,t.value=e.text}catch{}}applySelection(e){try{let t=new Set,n=e.ranges.map(({start:e,startOffset:n,end:r,endOffset:i})=>{let a=this.mirror.getNode(e),o=this.mirror.getNode(r);if(!a||!o)return;let s=new Range;s.setStart(a,n),s.setEnd(o,i);let c=a.ownerDocument?.getSelection();return c&&t.add(c),{range:s,selection:c}});t.forEach(e=>e.removeAllRanges()),n.forEach(e=>e&&e.selection?.addRange(e.range))}catch{}}applyStyleSheetMutation(e){let t=null;e.styleId?t=this.styleMirror.getStyle(e.styleId):e.id&&(t=this.mirror.getNode(e.id)?.sheet||null),t&&(e.source===V.StyleSheetRule?this.applyStyleSheetRule(e,t):e.source===V.StyleDeclaration&&this.applyStyleDeclaration(e,t))}applyStyleSheetRule(e,t){var n,r,i,a;if((n=e.adds)==null||n.forEach(({rule:e,index:n})=>{try{if(Array.isArray(n)){let{positions:r,index:i}=Ws(n);Us(t.cssRules,r)?.insertRule(e,i)}else{let r=n===void 0?void 0:Math.min(n,t.cssRules.length);t?.insertRule(e,r)}}catch{}}),(r=e.removes)==null||r.forEach(({index:e})=>{try{if(Array.isArray(e)){let{positions:n,index:r}=Ws(e);Us(t.cssRules,n)?.deleteRule(r||0)}else t?.deleteRule(e)}catch{}}),typeof e.replace==`string`)try{(i=t.replace)==null||i.call(t,e.replace)}catch{}if(typeof e.replaceSync==`string`)try{(a=t.replaceSync)==null||a.call(t,e.replaceSync)}catch{}}applyStyleDeclaration(e,t){if(e.set){let n=Us(t.rules,e.index);n?.style&&n.style.setProperty(e.set.property,e.set.value,e.set.priority)}if(e.remove){let n=Us(t.rules,e.index);n?.style&&n.style.removeProperty(e.remove.property)}}applyAdoptedStyleSheet(e){var t;let n=this.mirror.getNode(e.id);if(!n)return;(t=e.styles)==null||t.forEach(e=>{let t=null,r=null;if(Hs(n)?r=n.ownerDocument?.defaultView||null:n.nodeName===`#document`&&(r=n.defaultView),r)try{t=new r.CSSStyleSheet,this.styleMirror.add(t,e.styleId),this.applyStyleSheetRule({source:V.StyleSheetRule,adds:e.rules},t)}catch{}});let r=0,i=(e,t)=>{let n=t.map(e=>this.styleMirror.getStyle(e)).filter(e=>e!==null);Hs(e)?e.shadowRoot.adoptedStyleSheets=n:e.nodeName===`#document`&&(e.adoptedStyleSheets=n),n.length!==t.length&&r<10&&(setTimeout(()=>i(e,t),0+100*r),r++)};i(n,e.styleIds)}legacy_resolveMissingNode(e,t,n,r){let{previousId:i,nextId:a}=r,o=i&&e[i],s=a&&e[a];if(o){let{node:r,mutation:i}=o;t.insertBefore(r,n),delete e[i.node.id],delete this.legacy_missingNodeRetryMap[i.node.id],(i.previousId||i.nextId)&&this.legacy_resolveMissingNode(e,t,r,i)}if(s){let{node:r,mutation:i}=s;t.insertBefore(r,n.nextSibling),delete e[i.node.id],delete this.legacy_missingNodeRetryMap[i.node.id],(i.previousId||i.nextId)&&this.legacy_resolveMissingNode(e,t,r,i)}}moveAndHover(e,t,n,r,i){let a=this.mirror.getNode(n);if(!a)return this.debugNodeNotFound(i,n);let o=Vs(a,this.iframe),s=e*o.absoluteScale+o.x,c=t*o.absoluteScale+o.y;this.mouse.style.left=`${s}px`,this.mouse.style.top=`${c}px`,r||this.drawMouseTail({x:s,y:c}),this.hoverElements(a)}drawMouseTail(e){if(!this.mouseTail)return;let{lineCap:t,lineWidth:n,strokeStyle:r,duration:i}=this.config.mouseTail===!0?Kl:Object.assign({},Kl,this.config.mouseTail),a=()=>{if(!this.mouseTail)return;let e=this.mouseTail.getContext(`2d`);e&&this.tailPositions.length&&(e.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),e.beginPath(),e.lineWidth=n,e.lineCap=t,e.strokeStyle=r,e.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach(t=>e.lineTo(t.x,t.y)),e.stroke())};this.tailPositions.push(e),a(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(t=>t!==e),a()},i/this.speedService.state.context.timer.speed)}hoverElements(e){var t;(t=this.lastHoveredRootNode||this.iframe.contentDocument)==null||t.querySelectorAll(`.\\:hover`).forEach(e=>{e.classList.remove(`:hover`)}),this.lastHoveredRootNode=e.getRootNode();let n=e;for(;n;)n.classList&&n.classList.add(`:hover`),n=n.parentElement}isUserInteraction(e){return e.type===B.IncrementalSnapshot&&e.data.source>V.Mutation&&e.data.source<=V.Input}backToNormal(){this.nextUserInteractionEvent=null,!this.speedService.state.matches(`normal`)&&(this.speedService.send({type:`BACK_TO_NORMAL`}),this.emitter.emit(U.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))}warnNodeNotFound(e,t){this.warn(`Node with id '${t}' not found. `,e)}warnCanvasMutationFailed(e,t){this.warn(`Has error on canvas update`,t,`canvas mutation:`,e)}debugNodeNotFound(e,t){this.debug(`Node with id '${t}' not found. `,e)}warn(...e){this.config.showWarning&&this.config.logger.warn(Gl,...e)}debug(...e){this.config.showDebug&&this.config.logger.log(Gl,...e)}},{addCustomEvent:Yl}=ll,{freezePage:Xl}=ll,{takeFullSnapshot:Zl}=ll,Ql=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),$l={MissingAllowOriginHeader:`CORS: the response has no Access-Control-Allow-Origin header`,AllowOriginMismatch:`CORS: Access-Control-Allow-Origin does not match this page's origin`,MultipleAllowOriginValues:`CORS: the response has more than one Access-Control-Allow-Origin value`,InvalidAllowOriginValue:`CORS: Access-Control-Allow-Origin has an invalid value`,WildcardOriginNotAllowed:`CORS: Access-Control-Allow-Origin is * but the request sends credentials`,InvalidAllowCredentials:`CORS: Access-Control-Allow-Credentials must be true for a request with credentials`,PreflightInvalidStatus:`CORS: the preflight request did not succeed (HTTP status not 2xx)`,PreflightMissingAllowOriginHeader:`CORS: the preflight response has no Access-Control-Allow-Origin header`,PreflightAllowOriginMismatch:`CORS: the preflight's Access-Control-Allow-Origin does not match this page's origin`,MethodDisallowedByPreflightResponse:`CORS: the preflight does not allow this method`,HeaderDisallowedByPreflightResponse:`CORS: the preflight does not allow this header`,PreflightDisallowedRedirect:`CORS: the preflight was redirected, which is not allowed`,DisallowedByMode:`CORS: the request mode does not allow cross-origin responses`,CorsDisabledScheme:`CORS: cross-origin requests are not supported for this URL scheme`},eu={"mixed-content":`Blocked: mixed content (an http:// request from an https:// page)`,csp:`Blocked by the page's Content Security Policy`,inspector:`Blocked by DevTools request blocking`,"subresource-filter":`Blocked by Chrome's ad filter`,"content-type":`Blocked: the response's Content-Type is not allowed here`,origin:`Blocked: the request's origin is not allowed`};function tu(e){let t=e.corsErrorStatus;if(t&&typeof t.corsError==`string`&&t.corsError){let e=Ql($l,t.corsError)?$l[t.corsError]:`CORS error: ${t.corsError}`;return t.failedParameter?`${e} (${t.failedParameter})`:e}let n=e.blockedReason;return typeof n==`string`&&n?Ql(eu,n)?eu[n]:n.startsWith(`corp-`)?`Blocked by the response's Cross-Origin-Resource-Policy header`:n.startsWith(`coep-`)?`Blocked by Cross-Origin-Embedder-Policy`:`Blocked by Chrome (${n})`:e.error||void 0}function nu(e){return(e.status??0)>=400||!!e.error||!!e.blockedReason||!!e.corsErrorStatus}function ru(e){return e.kind===`websocket`?e.error&&e.status!==101?`failed`:e.pending?`open`:String(e.status??101):e.pending?`pending`:e.corsErrorStatus?`CORS`:e.blockedReason?`blocked`:e.error?`failed`:e.status?String(e.status):e.kind===`beacon`?`sent`:`—`}function iu(e){return e.error||e.blockedReason||e.corsErrorStatus||(e.status??0)>=400?`bad`:e.pending?`pending`:(e.status??0)>=300?`redirect`:`ok`}function G(e){switch(e.kind){case`resource`:return e.initiator?`resource (${e.initiator})`:`resource`;case`navigation`:return e.navType?`document (${e.navType})`:`document`;default:return e.resourceType&&e.resourceType!==e.kind?`${e.kind} (${e.resourceType})`:e.kind}}function au(e){let t=[];return e.cache&&t.push(`${e.cache} cache`),e.fromServiceWorker&&t.push(e.swSource?`service worker (${e.swSource})`:`service worker`),t.length?t.join(` · `):void 0}var ou={worker:`worker`,shared_worker:`shared worker`,service_worker:`service worker`};function su(e){let t=e.worker;if(!t||typeof t!=`object`)return;let n=Ql(ou,t.type)?ou[t.type]:String(t.type??`worker`);return t.url?`${n} · ${t.url}`:n}var cu={SameSiteNoneInsecure:`SameSite=None requires Secure`,SecureOnly:`Secure cookie on an insecure connection`,SameSiteLax:`SameSite=Lax: not sent on cross-site requests`,SameSiteStrict:`SameSite=Strict: not sent on cross-site requests`,SameSiteUnspecifiedTreatedAsLax:`no SameSite attribute (treated as Lax)`,DomainMismatch:`domain does not match`,NotOnPath:`path does not match`,UserPreferences:`blocked by the user's cookie settings`,ThirdPartyPhaseout:`third-party cookies are blocked`,ThirdPartyBlockedInFirstPartySet:`third-party cookies are blocked`,SyntaxError:`invalid Set-Cookie syntax`,InvalidDomain:`invalid Domain attribute`,InvalidPrefix:`invalid __Secure-/__Host- prefix`,OverwriteSecure:`would overwrite a Secure cookie`,SchemeNotSupported:`URL scheme does not support cookies`};function lu(e){return Ql(cu,e)?cu[e]:e}function uu(e){let t=lu(e);return t===e?e:`${t} (${e})`}var du=`[redacted]`;function fu(e,t,n=`
|
|
140
|
-
`){if(!e||typeof e!=`object`)return;let r=t.toLowerCase(),i=[];for(let[t,n]of Object.entries(e))t.toLowerCase()===r&&typeof n==`string`&&i.push(n);return i.length?i.join(n):void 0}var
|
|
141
|
-
`)){let e=n.trim();if(!e)continue;let r=e.indexOf(`;`),i=r<0?e:e.slice(0,r),a=i.indexOf(`=`),o=a<0?{name:``,value:i.trim()}:{name:i.slice(0,a).trim(),value:i.slice(a+1).trim()},s=r<0?``:e.slice(r+1).trim();s&&(o.attrs=s),t.push(o)}return t}function
|
|
142
|
-
`),n=!!t&&pu(t),r=t&&!n?hu(t):[];for(let t of gu(e.blockedSetCookies)){let e=r.find(e=>!e.blocked&&e.name===t.name);e?Object.assign(e,{blocked:t.blocked,domain:t.domain,path:t.path}):r.push(t)}return{rows:r,redacted:n}}var yu=e=>typeof e==`number`&&Number.isFinite(e)&&e>=0;function bu(e){if(!e||typeof e!=`object`)return null;let t=yu(e.ssl)?e.ssl:void 0,n=yu(e.connect)?t===void 0?e.connect:Math.max(0,e.connect-t):void 0,r=[[`blocked`,`Queueing / stalled`,e.blocked],[`dns`,`DNS lookup`,e.dns],[`connect`,`Initial connection`,n],[`ssl`,`TLS`,t],[`send`,`Request sent`,e.send],[`wait`,`Waiting (TTFB)`,e.wait],[`receive`,`Content download`,e.receive]],i=[],a=0;for(let[e,t,n]of r)yu(n)&&(i.push({key:e,label:t,start:a,ms:n}),a+=n);return i.length?{phases:i,total:a}:null}function xu(e){return e===0?`0 ms`:e<10?`${e.toFixed(1)} ms`:e<1e3?`${Math.round(e)} ms`:`${(e/1e3).toFixed(e<1e4?2:1)} s`}function Su(e){let t={sent:0,received:0,sentBytes:0,receivedBytes:0},n=0,r=0;for(let{data:i}of e){if(typeof i.dropped==`number`&&i.dropped>0&&(n+=i.dropped),i.error)continue;i.dataOmitted&&r++;let e=typeof i.size==`number`&&i.size>0?i.size:0;i.dir===`send`?(t.sent++,t.sentBytes+=e):i.dir===`recv`&&(t.received++,t.receivedBytes+=e)}return n&&(t.dropped=n),r&&(t.dataOmitted=r),t}function Cu(e){return`${e.sent??0}↑ ${e.received??0}↓ · ${O((e.sentBytes??0)+(e.receivedBytes??0))}`}var wu=e=>(typeof e==`number`&&Number.isFinite(e)?e:0).toLocaleString(`en-US`),Tu=(e,t,n=`${t}s`)=>`${wu(e)} ${e===1?t:n}`,Eu=300;function Du(e){if(e.error)return{text:e.error,tone:`error`};switch(e.opcode){case 2:return{text:`binary, ${Tu(e.size??0,`byte`)}`,tone:`note`};case 8:return{text:e.data?`close · ${Ou(e.data)}`:`close`,tone:`note`};case 9:return{text:`ping`,tone:`note`};case 10:return{text:`pong`,tone:`note`}}return e.dataRemoved?{text:`data removed from this export`,tone:`note`}:e.dataOmitted?{text:`data not recorded (over 1 MB/s)`,tone:`note`}:typeof e.data==`string`?e.data?{text:Ou(e.data),tone:`data`}:{text:`(empty)`,tone:`note`}:{text:e.size?`no data`:`(empty)`,tone:`note`}}function Ou(e){return(e.length>Eu?e.slice(0,Eu):e).replace(/\s+/g,` `).trim()}var ku={1:`text`,2:`binary`,8:`close`,9:`ping`,10:`pong`};function Au(e){return ku[e]??`opcode ${e}`}var ju=new Set([`load`,`start`,`bfcache`]),Mu=[`LCP`,`CLS`,`INP`];function Nu(e,t){return e.split(`#`,1)[0]===t.split(`#`,1)[0]}function Pu(e,t){let n=[];for(let e of[...t].sort((e,t)=>e.ts-t.ts))ju.has(e.kind)?n.push({ts:e.ts,offset:e.offset,url:e.url,metrics:{},routes:[],slots:new Map}):n.at(-1)?.routes.push({ts:e.ts,offset:e.offset,url:e.url});let r=n.length>0,i=new Map;for(let t of e){let e=t.data,n=e.id||`${e.name} ${e.url}`,r=i.get(n);if(!r){i.set(n,{name:e.name,url:e.url,first:t,latest:t});continue}t.ts<r.first.ts&&(r.first=t,r.url=e.url),t.ts>=r.latest.ts&&(r.latest=t)}let a=[...i.values()].sort((e,t)=>e.first.ts-t.first.ts);for(let e of a){let t;if(r){let r=Fu(n,e.first.ts),i=n[r],a=n[r+1];t=a&&a.ts-e.first.ts<=1e4&&(!i||i.slots.has(e.name)||!Nu(i.url,e.url)&&Nu(a.url,e.url))?a:i??n[0]}else{let r=n.at(-1);r&&!r.slots.has(e.name)&&Nu(r.url,e.url)?t=r:(t={ts:e.first.ts,offset:e.first.offset,url:e.url,metrics:{},routes:[],slots:new Map},n.push(t))}let i=t.slots.get(e.name);(!i||e.latest.ts>=i.latest.ts)&&t.slots.set(e.name,e)}return n.map(({slots:e,...t})=>{for(let[n,r]of e)t.metrics[n]=r.latest;return t})}function Fu(e,t){let n=-1;for(let r=0;r<e.length&&e[r].ts<=t;r++)n=r;return n}function Iu(e,t){let n=e[0];for(let r of e){if(r.offset>t)break;n=r}return n}function Lu(e,t){let n;for(let r of e.routes){if(r.offset>t)break;n=r}return n}function Ru(e){let t=e.data.attribution?.time;return typeof t==`number`&&Number.isFinite(t)&&t>0xe8d4a51000?t:e.ts}var zu={good:`good`,"needs-improvement":`needs improvement`,poor:`poor`},Bu={LCP:`Largest Contentful Paint`,CLS:`Cumulative Layout Shift`,INP:`Interaction to Next Paint`,FCP:`First Contentful Paint`,TTFB:`Time to First Byte`};function Vu(e,t){return e===`CLS`?t===0?`0`:t<.01?`<0.01`:t.toFixed(2):t<1e3?`${Math.round(t)} ms`:`${(t/1e3).toFixed(2)} s`}var Hu=e=>e===void 0?void 0:`${Math.round(e)} ms`;function Uu(e){let t=e.attribution??{},n=[],r=(e,t)=>{t!==void 0&&t!==``&&n.push(`${e}: ${t}`)};switch(e.name){case`LCP`:r(`Element`,t.target),r(`Resource`,t.url),r(`Time to first byte`,Hu(t.timeToFirstByte)),r(`Resource load delay`,Hu(t.resourceLoadDelay)),r(`Resource load duration`,Hu(t.resourceLoadDuration)),r(`Element render delay`,Hu(t.elementRenderDelay));break;case`CLS`:r(`Largest shift`,t.target),r(`Largest shift value`,t.largestShiftValue===void 0?void 0:Vu(`CLS`,t.largestShiftValue));break;case`INP`:r(`Target`,t.target),r(`Interaction`,t.interactionType),r(`Input delay`,Hu(t.inputDelay)),r(`Processing`,Hu(t.processingDuration)),r(`Presentation delay`,Hu(t.presentationDelay));break;default:r(`Load state`,t.loadState)}return n}var Wu=new Set([`init`,`action`,`snapshot`]),Gu=e=>`wc:${e}`;function Ku(e,t){if(t===null)return;let n=e.find(e=>e.key===t);if(n||!t.startsWith(Gu(``)))return n;let r=t.slice(Gu(``).length);return e.find(e=>e.data.kind===`websocket`&&e.data.id===r)}function qu(e){let t=[];e.forEach((e,n)=>{e&&typeof e==`object`&&Number.isFinite(e.ts)&&e.data!==null&&typeof e.data==`object`&&t.push(n)}),t.sort((t,n)=>e[t].ts-e[n].ts);let n=[];for(let r of t)e[r].type===`rrweb`&&n.push(e[r].data);let r=n.length,i=n.findIndex((e,t)=>e.type===B.Meta&&n[t+1]?.type===B.FullSnapshot),a=i>=0,o=n.slice(0,Math.max(i,0)).filter(e=>e.type!==B.DomContentLoaded&&e.type!==B.Load).length;i>0&&(n=n.slice(i));let s=t.length?e[t[0]].ts:0,c=t.length?e[t[t.length-1]].ts:0,l=a?n[0].timestamp:s,u=Math.max(a?n[n.length-1].timestamp:c,l)-l,d=e=>Math.min(Math.max(e-l,0),u),f=n[0]?.type===B.Meta?n[0].data:void 0,p={rrweb:n,replayable:a,skipped:o,rrwebCount:r,start:l,duration:u,viewport:f?{width:f.width,height:f.height}:void 0,network:[],console:[],events:[],story:[],pages:[],vitals:[],vitalPages:[],freezes:[],ws:new Map,state:[],stores:[]},m=[],h=new Set,g=(e,t)=>{let n=`${e.type[0]}${t}`,r=d(e.ts);switch(e.type){case`network`:if(p.network.push({key:n,ts:e.ts,offset:r,data:e.data}),nu(e.data)){let{path:t}=ve(e.data.url);p.story.push({key:n,ts:e.ts,offset:r,kind:`net-error`,title:`${e.data.kind===`websocket`?`WS`:e.data.method} ${t}`,detail:tu(e.data)??`${e.data.status} ${e.data.statusText??``}`.trim(),ref:{tab:`network`,key:n}})}break;case`ws`:{let t=e.data.conn;if(typeof t!=`string`)break;let i=p.ws.get(t);i||p.ws.set(t,i=[]),i.push({key:n,ts:e.ts,offset:r,data:e.data});break}case`state`:{let t=e.data;if(typeof t.store!=`string`||!Wu.has(t.kind))break;p.state.push({key:n,ts:e.ts,offset:r,data:t}),h.has(t.store)||(h.add(t.store),p.stores.push(t.store));break}case`console`:p.console.push({key:n,ts:e.ts,offset:r,data:e.data}),e.data.level===`error`&&p.story.push({key:n,ts:e.ts,offset:r,kind:`error`,title:J(e.data.text),detail:Y(e.data),ref:{tab:`console`,key:n}});break;case`event`:{p.events.push({key:n,ts:e.ts,offset:r,data:e.data});let t=Ju(e.data);t&&p.story.push({key:n,ts:e.ts,offset:r,...t}),e.data.name===`page_view`&&(p.pages.push({offset:r,url:e.data.url,title:e.data.title}),m.push({ts:e.ts,offset:r,url:e.data.url,kind:e.data.kind}));break}case`perf`:{let t=e.data;t?.kind===`vital`?p.vitals.push({key:n,ts:e.ts,offset:r,data:t}):t?.kind===`loaf`&&t.duration>200&&(p.freezes.push({key:n,ts:e.ts,offset:r,data:t}),p.story.push({key:n,ts:e.ts,offset:r,...$u(t)}));break}}};for(let n of t)try{g(e[n],n)}catch{}let _=new Set;for(let e of p.network)e.data.kind===`websocket`&&_.add(e.data.id);let v=[];for(let[e,t]of p.ws){if(_.has(e))continue;let n=t[0];v.push({key:Gu(e),ts:n.ts,offset:n.offset,placeholder:!0,data:{id:e,kind:`websocket`,method:`GET`,url:``,status:101,pending:!0,source:`cdp`,frames:Su(t)}})}if(v.length&&(p.network=p.network.concat(v).sort((e,t)=>e.ts-t.ts)),!p.pages.length)for(let e of n)e.type===B.Meta&&p.pages.push({offset:d(e.timestamp),url:e.data.href});return p.vitalPages=p.vitals.length?Pu(p.vitals,m):[],p}function Ju(e){switch(e.name){case`page_view`:{let{host:t,path:n}=ve(e.url);return{kind:`page`,title:`Page viewed ${n}`,detail:[e.title,t].filter(Boolean).join(` · `)}}case`click`:return{kind:`click`,title:`Clicked ${ed(e.target)}`,detail:e.target.selector};case`rage_click`:return{kind:`rage`,title:`Rage click ×${e.count} on ${ed(e.target)}`,detail:e.target.selector};case`change`:return{kind:`change`,title:`Changed ${q(e.target)}`,detail:e.masked?`•••••••• (password, not recorded)`:e.value?`“${e.value}”`:`(empty)`};case`submit`:return{kind:`submit`,title:`Submitted form ${q(e.target)}`,detail:[e.method,e.action].filter(Boolean).join(` `)};case`marker`:return{kind:`marker`,title:e.label};case`custom`:return{kind:`custom`,title:String(e.event),detail:Yu(Zu(e.props),e.propsTruncated&&`props shortened to 8 KB`,Xu(e.dropped)),payload:e.props};case`identify`:return{kind:`identify`,title:e.userId?`Identified as ${e.userId}`:`Identified`,detail:Yu(Zu(e.traits),e.propsTruncated&&`traits shortened to 8 KB`,Xu(e.dropped)),payload:e.traits}}return null}function Yu(...e){return e.filter(Boolean).join(` · `)||void 0}function Xu(e){return e?`${e.toLocaleString()} earlier call${e===1?``:`s`} dropped (rate limit)`:void 0}function Zu(e){return!e||typeof e!=`object`?``:Object.entries(e).map(([e,t])=>`${e}: ${Qu(t)}`).join(` · `)}function Qu(e){if(typeof e==`string`)return e;if(typeof e!=`object`||!e)return String(e);let t=JSON.stringify(e);return t.length>80?`${t.slice(0,79)}…`:t}function $u(e){let t=e.scripts?.[0],n=t?K(t):``;return{kind:`freeze`,title:`Freeze ${pe(e.duration)}${n?` · ${n}`:``}`,detail:Yu(e.blockingDuration>0&&`blocking ${pe(e.blockingDuration)}`,t?.invoker&&t.invoker!==n&&t.invoker,t?.url&&ve(t.url).path)}}function K(e){return[e.url?e.url.split(/[?#]/,1)[0].split(`/`).filter(Boolean).pop()??``:``,e.fn].filter(Boolean).join(` `)||e.invoker||``}function ed(e){let t=e.text||e.ariaLabel||e.title||e.alt||e.placeholder;return t?`“${t}”`:e.id?`<${e.tag}#${e.id}>`:`<${e.tag}>`}function q(e){let t=e.name||e.id||e.ariaLabel||e.placeholder||e.testId;return t?`“${t}”`:`<${e.tag}>`}function J(e){let t=String(e??``).split(`
|
|
143
|
-
`,1)[0];return t.length>160?`${t.slice(0,159)}…`:t}function Y(e){switch(e.source){case`uncaught`:return e.url?`Uncaught · ${ve(e.url).path}:${e.line??0}`:`Uncaught exception`;case`unhandledrejection`:return`Unhandled promise rejection`;case`resource`:return`Resource failed to load`;default:return`console.error`}}function td(e,t){let n=0,r=e.length-1,i=-1;for(;n<=r;){let a=n+r>>1;e[a].offset<=t?(i=a,n=a+1):r=a-1}return i}var nd=e=>`'${e.replace(/'/g,`'\\''`)}'`;function rd(e){let t=[`curl`,nd(e.url)];e.method!==`GET`&&t.push(`-X`,e.method);for(let[n,r]of Object.entries(e.reqHeaders??{}))n.startsWith(`:`)||t.push(`-H`,nd(`${n}: ${r}`));return e.reqBody!==void 0&&e.reqBodyNote!==`FormData`&&t.push(`--data-raw`,nd(e.reqBody)),t.join(` `)}var id=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),X=e(((e,t)=>{t.exports=id()}))(),ad=52428800;function od({meta:e,range:t,onClose:n}){let r=(0,l.useRef)(null),[i,a]=(0,l.useState)(!0),[o,s]=(0,l.useState)(!1),[c,u]=(0,l.useState)(!1),[d,f]=(0,l.useState)(!!t),[p,m]=(0,l.useState)([]),[h,g]=(0,l.useState)(null),[_,v]=(0,l.useState)(``),y={secrets:!i,bodies:!o,consoleArgs:!c,range:d?t:null},b=JSON.stringify(y);return(0,l.useEffect)(()=>{r.current?.showModal(),x().then(e=>m(e.redactHeaders??[])).catch(()=>{})},[]),(0,l.useEffect)(()=>{let t=new AbortController;g(null),v(``);let n=setTimeout(()=>{re(e.id,y,t.signal).then(e=>g(e.bytes),e=>!t.signal.aborted&&v(e instanceof Error?e.message:String(e)))},150);return()=>{clearTimeout(n),t.abort()}},[e.id,b]),(0,X.jsx)(`dialog`,{ref:r,className:`export-dialog`,onClose:n,onCancel:n,children:(0,X.jsxs)(`form`,{method:`dialog`,children:[(0,X.jsx)(`h2`,{children:`Download as HTML`}),(0,X.jsx)(`p`,{className:`muted`,children:`One file that opens offline in any browser, with the player and the Events, Network and Console tabs. Images and fonts still load from the recorded site.`}),(0,X.jsxs)(`label`,{className:`check`,children:[(0,X.jsx)(`input`,{type:`checkbox`,checked:i,onChange:e=>a(e.target.checked)}),(0,X.jsxs)(`span`,{children:[`Hide sensitive headers`,p.length>0&&(0,X.jsxs)(`span`,{className:`muted small`,children:[` (`,p.join(`, `),`)`]})]})]}),(0,X.jsxs)(`label`,{className:`check`,children:[(0,X.jsx)(`input`,{type:`checkbox`,checked:o,onChange:e=>s(e.target.checked)}),(0,X.jsx)(`span`,{children:`Remove request and response bodies`})]}),(0,X.jsxs)(`label`,{className:`check`,children:[(0,X.jsx)(`input`,{type:`checkbox`,checked:c,onChange:e=>u(e.target.checked)}),(0,X.jsx)(`span`,{children:`Remove console arguments`})]}),t&&(0,X.jsxs)(`label`,{className:`check`,children:[(0,X.jsx)(`input`,{type:`checkbox`,checked:d,onChange:e=>f(e.target.checked)}),(0,X.jsxs)(`span`,{children:[`Only the selected range `,de(t.from),`–`,de(t.to),(0,X.jsx)(`span`,{className:`muted small`,children:` (starts at the nearest full snapshot before it)`})]})]}),(0,X.jsxs)(`div`,{className:`estimate`,children:[_?(0,X.jsxs)(`span`,{className:`bad`,children:[`Cannot estimate the size: `,_]}):h===null?(0,X.jsx)(`span`,{className:`muted`,children:`Estimating the file size…`}):(0,X.jsxs)(`span`,{children:[`File size: `,(0,X.jsx)(`strong`,{children:O(h)})]}),h!==null&&h>ad&&(0,X.jsx)(`div`,{className:`warn-box`,children:`Over 50 MB: hard to attach to Jira or Slack. Export a range or remove bodies to make it smaller.`})]}),(0,X.jsxs)(`div`,{className:`dialog-actions`,children:[(0,X.jsx)(`button`,{type:`submit`,className:`chip-btn`,children:`Cancel`}),(0,X.jsx)(`a`,{className:`chip-btn primary`,href:ne(e.id,y),download:`tabtape-${e.id}.html`,onClick:()=>setTimeout(n,300),children:`Download`})]})]})})}var sd=300,cd=[1,2,4,8],ld=1e3;function ud({data:e,onTime:t,initialTime:n=0,range:r=null,onRangeChange:i,live:a,ref:o}){let s=(0,l.useRef)(null),c=(0,l.useRef)(null),u=(0,l.useRef)(t);u.current=t;let d=(0,l.useRef)(e);d.current=e;let f=(0,l.useRef)(a);f.current=a;let p=a?.feed,m=!!a?.streaming,[h,g]=(0,l.useState)(!1),[_,v]=(0,l.useState)(()=>Math.min(Math.max(n,0),e.duration)),[y,b]=(0,l.useState)(1),[x,S]=(0,l.useState)(!0),[C,ee]=(0,l.useState)(!1),[w,te]=(0,l.useState)(m),[T,ne]=(0,l.useState)(0),[E,re]=(0,l.useState)(0),ie=Math.max(e.duration,m&&e.replayable?E:0,w?_:0),ae=(0,l.useRef)(h);ae.current=h;let oe=(0,l.useRef)(_);oe.current=_;let se=(0,l.useRef)(ie);se.current=ie;let D=(0,l.useRef)(w);D.current=w;let ce=(0,l.useRef)(y);ce.current=y;let le=(0,l.useRef)(x);le.current=x;let ue=(0,l.useRef)({at:n,play:!1}),fe=(0,l.useRef)(0),pe=(0,l.useRef)(0);(0,l.useEffect)(()=>{let e=s.current,t=d.current;if(!e||!t.replayable)return;let n=f.current,r=!!n?.streaming&&D.current,i=t.rrweb[0].timestamp,a=t.rrweb;n&&n.feed.rrweb.length>t.rrwebCount&&(a=a.concat(n.feed.rrweb.slice(t.rrwebCount).filter(e=>e.timestamp>=i)));let o=new Jl(a,{root:e,liveMode:r,speed:r?1:ce.current,skipInactive:!r&&le.current,showWarning:!1,triggerFocus:!1,mouseTail:{strokeStyle:`rgba(229, 72, 77, 0.55)`,lineWidth:2,duration:600}});c.current=o,pe.current=i,fe.current=n?n.feed.rrweb.length:0;let l=!1,p={w:t.viewport?.width??1280,h:t.viewport?.height??800},m={last:null},h=o.wrapper,_=()=>{let{width:t,height:n}=e.getBoundingClientRect(),r=Math.min((t-24)/p.w,(n-24)/p.h);Object.assign(h.style,{position:`absolute`,left:`50%`,top:`50%`,transformOrigin:`center center`,transform:`translate(-50%, -50%) scale(${Math.max(r,.05)})`})};o.on(`resize`,e=>{m.last=e,p={w:m.last.width,h:m.last.height},_()}),o.on(`finish`,()=>{let e=d.current.duration;g(!1),v(e),u.current(e)}),o.on(`skip-start`,()=>ee(!0)),o.on(`skip-end`,()=>ee(!1));let y=new ResizeObserver(_);if(y.observe(e),_(),r)o.pause(a[a.length-1].timestamp-i+1),o.startLive(Date.now()-ld),g(!0);else{let{at:e,play:n}=ue.current,r=Math.min(Math.max(e,0),t.duration);n?(o.play(r),g(!0)):r>0&&o.pause(r<t.duration?r:r+1),v(r),u.current(r)}let b=m.last,x=a.find(e=>e.type===B.Meta)?.data;return b&&x&&(b.width!==x.width||b.height!==x.height)&&setTimeout(()=>{let e=m.last;if(!l&&e&&e!==b&&e.width===x.width&&e.height===x.height){o.iframe.style.display=`inherit`;for(let e of[o.iframe,h.querySelector(`canvas.replayer-mouse-tail`)])e?.setAttribute(`width`,String(b.width)),e?.setAttribute(`height`,String(b.height));m.last=b,p={w:b.width,h:b.height},_()}},0),()=>{l=!0,y.disconnect(),o.timer.clear(),o.destroy(),o.service.stop(),o.speedService.stop(),c.current===o&&(c.current=null),g(!1),ee(!1)}},[p,p?null:e,e.replayable,T]),(0,l.useEffect)(()=>{if(p)return p.subscribe(()=>{let e=c.current;if(!e)return;let t=p.rrweb;for(let n=fe.current;n<t.length;n++)t[n].timestamp>=pe.current&&e.addEvent(t[n]);fe.current=t.length})},[p]),(0,l.useEffect)(()=>{if(!m)return;let e=()=>re(Math.max(0,Date.now()-ld-d.current.start));e();let t=setInterval(e,250);return()=>clearInterval(t)},[m]),(0,l.useEffect)(()=>{!m&&D.current&&(ue.current={at:d.current.duration,play:!1},te(!1),ne(e=>e+1))},[m]),(0,l.useEffect)(()=>{if(!h)return;let e=0,t=0,n=r=>{let i=c.current;if(i&&r-t>80){t=r;let e=D.current?i.getCurrentTime():Math.min(i.getCurrentTime(),se.current);v(e),u.current(e)}e=requestAnimationFrame(n)};return e=requestAnimationFrame(n),()=>cancelAnimationFrame(e)},[h]);let O=(0,l.useCallback)((e,t)=>{let n=Math.max(0,Math.min(e,d.current.duration));ue.current={at:n,play:t},te(!1),v(n),u.current(n),ne(e=>e+1)},[]),me=(0,l.useCallback)(()=>{f.current?.streaming&&d.current.replayable&&(te(!0),ne(e=>e+1))},[]),he=(0,l.useCallback)(e=>{let t=d.current,n=Math.max(0,Math.min(e,se.current));if(D.current){t.replayable&&O(n,n<t.duration);return}v(n),u.current(n);let r=c.current;r&&(ae.current?r.play(n):r.pause(n))},[O]),ge=(0,l.useCallback)(()=>{let e=c.current;if(!e)return;if(D.current){O(e.getCurrentTime(),!1);return}if(ae.current){e.pause(),g(!1);return}let t=d.current;if(f.current?.streaming&&oe.current>=t.duration-50){me();return}let n=oe.current>=se.current-50?0:oe.current;e.play(n),g(!0)},[O,me]),_e=(0,l.useCallback)(e=>{D.current&&e>0||he(oe.current+e)},[he]);(0,l.useImperativeHandle)(o,()=>({seek:he,toggle:ge,nudge:_e}),[he,ge,_e]);let ve=e=>{b(e),D.current||c.current?.setConfig({speed:e})},ye=e=>{S(e),D.current||c.current?.setConfig({skipInactive:e})};return(0,X.jsxs)(`div`,{className:`player`,children:[(0,X.jsxs)(`div`,{className:`stage`,ref:s,children:[!e.replayable&&(m?(0,X.jsxs)(`div`,{className:`stage-message`,children:[(0,X.jsx)(`div`,{className:`spinner`}),(0,X.jsx)(`strong`,{children:`Waiting for the first snapshot…`}),(0,X.jsx)(`span`,{children:`The replay starts as soon as the recorder sends the page's snapshot.`})]}):(0,X.jsxs)(`div`,{className:`stage-message`,children:[(0,X.jsx)(`strong`,{children:`No replayable snapshot`}),(0,X.jsx)(`span`,{children:`The beginning of this recording was deleted by the ring buffer and no later snapshot is left. Network, console and events are still listed on the right.`})]})),C&&(0,X.jsx)(`div`,{className:`skip-badge`,children:`Skipping inactivity…`})]}),(0,X.jsxs)(`div`,{className:`controls`,children:[(0,X.jsx)(`button`,{className:`play`,onClick:ge,disabled:!e.replayable,title:w?`Pause (leaves live mode)`:`Play/pause (space)`,children:h?`❚❚`:`▶`}),(0,X.jsxs)(`span`,{className:`clock mono`,children:[de(_),` `,(0,X.jsxs)(`span`,{className:`muted`,children:[`/ `,de(ie)]})]}),m&&(w?(0,X.jsx)(`span`,{className:`live-pill`,title:`Following the recording as it happens, 1 s behind. Pause or seek to look back.`,children:`LIVE`}):(0,X.jsx)(`button`,{className:`chip-btn back-live`,onClick:me,disabled:!e.replayable,title:`Follow the recording as it happens`,children:`Back to live`})),(0,X.jsx)(dd,{time:_,total:ie,markers:e.story,freezes:e.freezes,onSeek:he,range:r,onRangeChange:i}),r&&(0,X.jsxs)(`span`,{className:`range-chip mono`,title:`Selected range: Copy steps, Download HTML and Download HAR use it. Shift+drag or [ and ] to change, Esc to clear.`,children:[de(r.from),`–`,de(r.to),(0,X.jsx)(`button`,{className:`icon-btn`,onClick:()=>i?.(null),title:`Clear the selection (Esc)`,children:`✕`})]}),(0,X.jsx)(`div`,{className:`speed`,title:w?`Live playback runs at 1×`:void 0,children:cd.map(e=>(0,X.jsxs)(`button`,{className:e===y?`on`:``,onClick:()=>ve(e),disabled:w,children:[e,`×`]},e))}),(0,X.jsxs)(`label`,{className:`skip-toggle`,title:`Fast-forward through periods without interaction`,children:[(0,X.jsx)(`input`,{type:`checkbox`,checked:x,onChange:e=>ye(e.target.checked)}),` Skip idle`]})]})]})}function dd({time:e,total:t,markers:n,freezes:r,onSeek:i,range:a,onRangeChange:o}){let s=(0,l.useRef)(null),[c,u]=(0,l.useState)(null),[d,f]=(0,l.useState)(null),[p,m]=(0,l.useState)(null),h=e=>`${t>0?e/t*100:0}%`,g=e=>{let n=s.current.getBoundingClientRect();return Math.min(Math.max((e-n.left)/n.width,0),1)*t},_=d??e,v=p?{from:Math.min(p.anchor,p.at),to:Math.max(p.anchor,p.at)}:a;return(0,X.jsxs)(`div`,{className:`timeline`,ref:s,title:`Click to seek · Shift+drag to select a range`,onPointerDown:e=>{e.currentTarget.setPointerCapture(e.pointerId);let t=g(e.clientX);e.shiftKey&&o?m({anchor:t,at:t}):f(t)},onPointerMove:e=>{let t=g(e.clientX);u(t),p?m({...p,at:t}):d!==null&&f(t)},onPointerUp:e=>{let t=g(e.clientX);if(p){let e=Math.min(p.anchor,t),n=Math.max(p.anchor,t);o?.(n-e>=sd?{from:Math.round(e),to:Math.round(n)}:null),m(null);return}d!==null&&i(t),f(null)},onPointerLeave:()=>u(null),children:[(0,X.jsx)(`div`,{className:`track`,children:(0,X.jsx)(`div`,{className:`fill`,style:{width:h(_)}})}),r.map(e=>(0,X.jsx)(`span`,{className:`freeze`,title:`Freeze ${pe(e.data.duration)}`,style:{left:h(e.offset),width:h(Math.max(0,Math.min(e.data.duration,t-e.offset)))}},e.key)),v&&(0,X.jsx)(`div`,{className:`range-band`,style:{left:h(v.from),width:h(v.to-v.from)}}),n.map(e=>e.kind===`freeze`?null:(0,X.jsx)(`span`,{className:`marker ${e.kind}`,style:{left:h(e.offset)}},e.key)),(0,X.jsx)(`div`,{className:`thumb`,style:{left:h(_)}}),c!==null&&(0,X.jsx)(`div`,{className:`hover-time mono`,style:{left:h(c)},children:de(c)})]})}function fd({items:e,time:t,follow:n,selected:r,empty:i,onPick:a,children:o}){let s=td(e,t),c=(0,l.useRef)(null);return(0,l.useEffect)(()=>{!n||s<0||(c.current?.querySelector(`[data-index="${s}"]`))?.scrollIntoView({block:`nearest`})},[s,n]),e.length?(0,X.jsx)(`div`,{className:`list`,ref:c,children:e.map((e,t)=>(0,X.jsxs)(`div`,{"data-index":t,className:`row ${t===s?`current`:t>s?`future`:``} ${e.key===r?`selected`:``}`,onClick:()=>a(e),children:[(0,X.jsx)(`span`,{className:`row-time mono`,children:de(e.offset)}),o(e)]},e.key))}):(0,X.jsx)(`div`,{className:`list-empty`,children:i})}var pd=2e3;function md({frames:e,time:t,onSeek:n}){let[r,i]=(0,l.useState)(pd),[a,o]=(0,l.useState)(null),s=td(e,t),c=e.length>r?e.slice(0,r):e,u=e.length-c.length,d=e=>{if(!getSelection()?.toString()){if(a===e.key){o(null);return}o(e.key),n(e.offset+50)}};return(0,X.jsxs)(`details`,{open:!0,className:`ws-section`,children:[(0,X.jsxs)(`summary`,{children:[`Messages `,(0,X.jsx)(`span`,{className:`muted`,children:wu(e.length)})]}),e.length?(0,X.jsx)(`div`,{className:`ws-messages`,children:c.map((e,t)=>{let n=e.data,r=Du(n),i=a===e.key,o=n.dir===`send`;return(0,X.jsxs)(l.Fragment,{children:[typeof n.dropped==`number`&&n.dropped>0&&(0,X.jsxs)(`div`,{className:`ws-note`,children:[Tu(n.dropped,`message`),` not recorded (over 200/s)`]}),(0,X.jsxs)(`div`,{className:`ws-msg ${o?`send`:`recv`} ${t===s?`current`:t>s?`future`:``} ${i?`selected`:``}`,title:`${o?`Sent`:`Received`} ${n.error?`frame error`:Au(n.opcode)} at ${fe(e.offset)}, ${Tu(n.size??0,`byte`)}`,onClick:()=>d(e),children:[(0,X.jsx)(`span`,{className:`ws-dir`,"aria-label":o?`sent`:`received`,children:o?`↑`:`↓`}),(0,X.jsx)(`span`,{className:`ws-time mono`,children:de(e.offset)}),(0,X.jsx)(`span`,{className:`ws-size mono`,children:O(n.size??0)}),n.truncated&&(0,X.jsx)(`span`,{className:`badge warn`,title:`Recorded up to 64 KB`,children:`TRUNCATED`}),(0,X.jsx)(`span`,{className:`ws-data ${r.tone} ${i?`expanded`:``}`,children:i?hd(n,r):r.text})]})]},e.key)})}):(0,X.jsx)(`div`,{className:`muted body-note`,children:`No messages recorded.`}),u>0&&(0,X.jsxs)(`button`,{className:`chip-btn ws-more`,onClick:()=>i(e=>e+pd),children:[`Show `,wu(Math.min(pd,u)),` more (`,wu(u),` not shown)`]})]})}function hd(e,t){if(t.tone!==`data`||typeof e.data!=`string`)return t.text;let n=be(e.data).text;return e.truncated?`${n}\n… cut at 64 KB`:n}var gd=[];function _d({item:e,frames:t=gd,start:n,time:r,onSeek:i,onClose:a}){let o=e.data,s=o.kind===`websocket`,c=tu(o);return(0,X.jsxs)(`section`,{className:`net-detail${s?` ws-detail`:``}`,children:[(0,X.jsxs)(`header`,{children:[(0,X.jsx)(`span`,{className:`status ${iu(o)}`,children:ru(o)}),(0,X.jsx)(`span`,{className:`method`,children:s?`WS`:o.method}),(0,X.jsx)(`span`,{className:`url mono`,title:o.url,children:e.placeholder?`WebSocket (open)`:o.url}),(0,X.jsx)(`button`,{className:`icon-btn`,onClick:a,title:`Close`,children:`✕`})]}),!!o.url&&(0,X.jsxs)(`div`,{className:`net-actions`,children:[(0,X.jsx)(Od,{label:`Copy URL`,text:o.url}),!s&&o.kind!==`resource`&&o.kind!==`navigation`&&(0,X.jsx)(Od,{label:`Copy as cURL`,text:rd(o)}),o.resBody!==void 0&&(0,X.jsx)(Od,{label:`Copy response`,text:o.resBody})]}),(0,X.jsxs)(`div`,{className:`net-body`,children:[c&&(0,X.jsx)(`div`,{className:`failure`,children:c}),s?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(xd,{item:e,frames:t,start:n,reason:c}),(0,X.jsx)(Ed,{title:`Handshake request headers`,headers:o.reqHeaders}),(0,X.jsx)(Ed,{title:`Handshake response headers`,headers:o.resHeaders}),(0,X.jsx)(md,{frames:t,time:r,onSeek:i})]}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(vd,{item:e,reason:c}),(0,X.jsx)(Cd,{timing:o.timing}),(0,X.jsx)(wd,{d:o}),(0,X.jsx)(Ed,{title:`Request headers`,headers:o.reqHeaders}),(0,X.jsx)(Dd,{title:`Request body`,text:o.reqBody,note:o.reqBodyNote,truncated:o.reqBodyTruncated}),(0,X.jsx)(Ed,{title:`Response headers`,headers:o.resHeaders}),(0,X.jsx)(Dd,{title:`Response body`,text:o.resBody,note:o.resBodyNote,truncated:o.resBodyTruncated})]})]})]})}function Z({label:e,children:t,className:n}){return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`dt`,{children:e}),(0,X.jsx)(`dd`,{className:n,children:t})]})}function vd({item:e,reason:t}){let n=e.data;return(0,X.jsxs)(`dl`,{className:`facts`,children:[(0,X.jsx)(Z,{label:`Started`,children:de(e.offset)}),(0,X.jsx)(Z,{label:`Type`,children:G(n)}),n.status!==void 0&&(0,X.jsxs)(Z,{label:`Status`,children:[n.status,` `,n.statusText]}),n.duration!==void 0&&(0,X.jsxs)(Z,{label:`Duration`,children:[pe(n.duration),n.ttfb!==void 0&&(0,X.jsxs)(`span`,{className:`muted`,children:[` (first byte `,pe(n.ttfb),`)`]})]}),(n.resSize??n.transferSize)!==void 0&&(0,X.jsxs)(Z,{label:`Size`,children:[O(n.resSize),n.transferSize?(0,X.jsxs)(`span`,{className:`muted`,children:[` (`,O(n.transferSize),` transferred)`]}):null]}),n.mime&&(0,X.jsx)(Z,{label:`Content type`,className:`mono`,children:n.mime}),(0,X.jsx)(yd,{d:n,reason:t}),n.pending&&(0,X.jsx)(Z,{label:`Note`,children:`Still in flight when the page unloaded or recording stopped.`}),(0,X.jsx)(bd,{d:n})]})}function yd({d:e,reason:t}){return(0,X.jsxs)(X.Fragment,{children:[e.error&&e.error!==t&&(0,X.jsx)(Z,{label:`Error`,className:`mono`,children:e.error}),e.corsErrorStatus?.corsError&&(0,X.jsxs)(Z,{label:`CORS error`,className:`mono`,children:[e.corsErrorStatus.corsError,e.corsErrorStatus.failedParameter&&` (${e.corsErrorStatus.failedParameter})`]}),e.blockedReason&&(0,X.jsx)(Z,{label:`Blocked reason`,className:`mono`,children:e.blockedReason})]})}function bd({d:e}){let t=au(e),n=su(e);return(0,X.jsxs)(X.Fragment,{children:[e.protocol&&(0,X.jsx)(Z,{label:`Protocol`,children:e.protocol}),e.remoteAddress&&(0,X.jsx)(Z,{label:`Remote address`,className:`mono`,children:e.remoteAddress}),t&&(0,X.jsx)(Z,{label:`Cache`,children:t}),n&&(0,X.jsx)(Z,{label:`Worker`,children:n}),e.source===`cdp`&&(0,X.jsx)(Z,{label:`Recorded`,children:`deep mode (Chrome DevTools Protocol)`})]})}function xd({item:e,frames:t,start:n,reason:r}){let i=e.data,a=i.frames??Su(t);return(0,X.jsxs)(`dl`,{className:`facts`,children:[(0,X.jsx)(Z,{label:e.placeholder?`First message`:`Opened`,children:de(e.offset)}),(0,X.jsx)(Z,{label:`Closed`,children:i.closedAt===void 0?e.placeholder?`not known yet`:i.pending?`still open when the recording stopped`:i.error?`— (the handshake failed)`:`—`:de(i.closedAt-n)}),e.placeholder&&(0,X.jsx)(Z,{label:`Note`,children:`The connection record (URL, handshake, counts) is written when the socket closes; until it is there, this row is built from the messages.`}),i.duration!==void 0&&(0,X.jsx)(Z,{label:`Duration`,children:pe(i.duration)}),i.status!==void 0&&!e.placeholder&&(0,X.jsxs)(Z,{label:`Status`,children:[i.status,` `,i.statusText]}),(0,X.jsxs)(Z,{label:`Messages`,children:[wu(a.sent),` sent `,(0,X.jsxs)(`span`,{className:`muted`,children:[`(`,O(a.sentBytes??0),`)`]}),` · `,wu(a.received),` received`,` `,(0,X.jsxs)(`span`,{className:`muted`,children:[`(`,O(a.receivedBytes??0),`)`]})]}),!!a.dropped&&(0,X.jsxs)(Z,{label:`Dropped`,children:[Tu(a.dropped,`message`),` not recorded: over 200 messages per second`]}),!!a.dataOmitted&&(0,X.jsxs)(Z,{label:`Without data`,children:[wu(a.dataOmitted),` recorded without data: over 1 MB per second`]}),(0,X.jsx)(yd,{d:i,reason:r}),(0,X.jsx)(bd,{d:i})]})}var Sd=(e,t)=>`${t>0?Math.min(100,e/t*100):0}%`;function Cd({timing:e}){let t=bu(e);return t?(0,X.jsxs)(`details`,{open:!0,className:`timing`,children:[(0,X.jsxs)(`summary`,{children:[`Timing `,(0,X.jsx)(`span`,{className:`muted`,children:xu(t.total)})]}),(0,X.jsxs)(`div`,{className:`waterfall`,children:[t.phases.map(e=>(0,X.jsxs)(`div`,{className:`wf-row wf-${e.key}`,children:[(0,X.jsx)(`span`,{className:`wf-label`,children:e.label}),(0,X.jsx)(`span`,{className:`wf-track`,children:(0,X.jsx)(`span`,{className:`wf-bar`,style:{left:Sd(e.start,t.total),width:Sd(e.ms,t.total)}})}),(0,X.jsx)(`span`,{className:`wf-ms mono`,children:xu(e.ms)})]},e.key)),(0,X.jsxs)(`div`,{className:`wf-row wf-total`,children:[(0,X.jsx)(`span`,{className:`wf-label`,children:`Total`}),(0,X.jsx)(`span`,{}),(0,X.jsx)(`span`,{className:`wf-ms mono`,children:xu(t.total)})]})]})]}):null}function wd({d:e}){let t=_u(e),n=vu(e),r=t.rows.length+n.rows.length;if(!r&&!t.redacted&&!n.redacted)return null;let i=t.rows.concat(n.rows).filter(e=>e.blocked).length;return(0,X.jsxs)(`details`,{open:!0,className:`cookies`,children:[(0,X.jsxs)(`summary`,{children:[`Cookies `,(0,X.jsx)(`span`,{className:`muted`,children:r}),i>0&&(0,X.jsxs)(`span`,{className:`badge blocked`,children:[i,` BLOCKED`]})]}),(0,X.jsx)(Td,{title:`Request cookies`,list:t}),(0,X.jsx)(Td,{title:`Response cookies (Set-Cookie)`,list:n})]})}function Td({title:e,list:t}){return!t.rows.length&&!t.redacted?null:(0,X.jsxs)(`div`,{className:`cookie-group`,children:[(0,X.jsx)(`div`,{className:`cookie-title`,children:e}),t.redacted&&(0,X.jsx)(`div`,{className:`muted body-note`,children:`The header is hidden ([redacted]).`}),t.rows.length>0&&(0,X.jsx)(`table`,{className:`headers cookie-table`,children:(0,X.jsx)(`tbody`,{children:t.rows.map((e,t)=>(0,X.jsxs)(`tr`,{className:e.blocked?`cookie blocked`:`cookie`,children:[(0,X.jsx)(`th`,{children:e.name||(0,X.jsx)(`span`,{className:`muted`,children:`(no name)`})}),(0,X.jsxs)(`td`,{children:[e.value!==void 0&&(0,X.jsx)(`span`,{className:`mono`,children:e.value}),e.attrs&&(0,X.jsxs)(`span`,{className:`cookie-attrs muted`,children:[` `,e.attrs]}),e.blocked&&(0,X.jsxs)(`div`,{className:`cookie-blocked`,children:[(0,X.jsx)(`span`,{className:`badge blocked`,children:`BLOCKED`}),e.blocked.length?e.blocked.map(uu).join(` · `):`no reason given`,(e.domain||e.path)&&(0,X.jsxs)(`span`,{className:`muted`,children:[` `,`· `,e.domain??``,e.path??``]})]})]})]},t))})})]})}function Ed({title:e,headers:t}){let n=Object.entries(t??{});return n.length?(0,X.jsxs)(`details`,{open:!0,children:[(0,X.jsxs)(`summary`,{children:[e,` `,(0,X.jsx)(`span`,{className:`muted`,children:n.length})]}),(0,X.jsx)(`table`,{className:`headers`,children:(0,X.jsx)(`tbody`,{children:n.map(([e,t])=>(0,X.jsxs)(`tr`,{children:[(0,X.jsx)(`th`,{children:e}),(0,X.jsx)(`td`,{className:`mono`,children:t})]},e))})})]}):null}function Dd({title:e,text:t,note:n,truncated:r}){if(t===void 0&&!n)return null;let i=t===void 0?void 0:be(t);return(0,X.jsxs)(`details`,{open:!0,children:[(0,X.jsxs)(`summary`,{children:[e,i?.json&&(0,X.jsx)(`span`,{className:`muted`,children:` JSON`}),r&&(0,X.jsx)(`span`,{className:`badge warn`,children:`TRUNCATED`})]}),n&&(0,X.jsx)(`div`,{className:`muted body-note`,children:n}),i&&(0,X.jsx)(`pre`,{className:`body`,children:i.text||(0,X.jsx)(`span`,{className:`muted`,children:`(empty)`})})]})}function Od({label:e,text:t}){let[n,r]=(0,l.useState)(!1);return(0,X.jsx)(`button`,{className:`chip-btn`,onClick:async()=>{await navigator.clipboard.writeText(t),r(!0),setTimeout(()=>r(!1),1200)},children:n?`Copied`:e})}var kd=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Ad=e=>typeof e==`object`&&!!e,jd=/^(0|[1-9]\d*)$/;function Md(e){return e===``?[]:typeof e!=`string`||e[0]!==`/`?null:e.slice(1).split(`/`).map(e=>e.includes(`~`)?e.replace(/~1/g,`/`).replace(/~0/g,`~`):e)}function Nd(e){return e.map(e=>`/${e.replace(/~/g,`~0`).replace(/\//g,`~1`)}`).join(``)}var Pd=Object.freeze({found:!1});function Fd(e,t){if(Array.isArray(e)){if(!jd.test(t))return Pd;let n=Number(t);return n<e.length?{found:!0,value:e[n]}:Pd}return Ad(e)&&kd(e,t)?{found:!0,value:e[t]}:Pd}function Id(e,t){let n=typeof t==`string`?Md(t):t;if(!n)return Pd;if(!n.length)return e===void 0?Pd:{found:!0,value:e};let r=e;for(let e of n){let t=Fd(r,e);if(!t.found)return Pd;r=t.value}return{found:!0,value:r}}function Ld(e,t,n){if(!Array.isArray(t))return e;for(let r of t){if(!r||typeof r!=`object`||typeof r.path!=`string`)continue;let t=Md(r.path);t&&(e=Rd(e,t,r,n))}return e}function Rd(e,t,n,r){let i=n.deleted===!0;if(!t.length)return i?void 0:n.value;if(i?!Id(e,t).found:!zd(e,t))return e;let a=Bd(e,t[0],r),o=a;for(let e=0;e<t.length-1;e++){let n=Fd(o,t[e]),i=Bd(n.value,t[e+1],r);i!==n.value&&Vd(o,t[e],i),o=i}let s=t[t.length-1];return i?Hd(o,s):Vd(o,s,n.value),a}function zd(e,t){let n=e;for(let e of t){if(Array.isArray(n)){if(e!==`-`&&!(jd.test(e)&&Number(e)<=n.length))return!1}else if(n===void 0)return!0;else if(!Ad(n))return!1;n=Fd(n,e).value}return!0}function Bd(e,t,n){if(Ad(e)){if(n.has(e))return e;let t=Array.isArray(e)?e.slice():{...e};return n.add(t),t}let r=t===`-`?[]:{};return n.add(r),r}function Vd(e,t,n){Array.isArray(e)?e[t===`-`?e.length:Number(t)]=n:t===`__proto__`?Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0}):e[t]=n}function Hd(e,t){Array.isArray(e)?e.splice(Number(t),1):delete e[t]}var Ud=16,Wd=class{store;items;lastFull;lastBurst;checkpoints=new Map;recent=new Map;byKey=new Map;constructor(e,t,n){this.store=e,this.items=t,this.lastFull=new Int32Array(t.length),this.lastBurst=new Int32Array(t.length);let r=-1,i=-1;t.forEach((e,t)=>{e.data.state===void 0?e.data.burst&&(i=t):r=t,this.lastFull[t]=r,this.lastBurst[t]=i,this.byKey.set(e.key,t)});let a=n?.items.length??0;if(n&&a>0&&a<=t.length&&t[a-1].key===n.items[a-1].key){for(let[e,t]of n.checkpoints)this.checkpoints.set(e,t);for(let[e,t]of n.recent)this.recent.set(e,t)}}indexOf(e){return this.byKey.get(e)??-1}indexAt(e){return td(this.items,e)}at(e){let t=this.items.length;if(e<0||!t)return{index:-1,state:void 0,base:-1,uncertain:!1};e>=t&&(e=t-1);let n=this.lastFull[e];return{index:e,state:this.stateAfter(e),base:n,uncertain:this.lastBurst[e]>n}}atTime(e){return this.at(this.indexAt(e))}changesOf(e){let t=this.items[e]?.data;if(!t||t.kind!==`action`||t.state===void 0&&!Array.isArray(t.changes))return{rows:[],full:!1,more:!1,uncertain:!1};let n=this.at(e-1),r=n.uncertain||n.base<0;if(t.state!==void 0)return{...Kd(n.state,t.state,100),full:!0,uncertain:r};let i=[];for(let e of t.changes){if(!e||typeof e.path!=`string`)continue;let t=Id(n.state,e.path),r=e.deleted===!0;i.push({path:e.path,hadPrev:t.found,prev:t.value,deleted:r,next:r?void 0:e.value})}return{rows:i,full:!1,more:!1,uncertain:r}}stateAfter(e){let t=this.lastFull[e];if(t===e)return this.items[e].data.state;if(this.recent.has(e)){let t=this.recent.get(e);return this.recent.delete(e),this.recent.set(e,t),t}let n=t,r=t>=0?this.items[t].data.state:void 0;for(let i=e-e%32;i>t;i-=32)if(this.checkpoints.has(i)){n=i,r=this.checkpoints.get(i);break}let i=new Set;for(let t=n+1;t<=e;t++)r=Ld(r,this.items[t].data.changes,i),t%32==0&&(this.checkpoints.set(t,r),i=new Set);return this.recent.set(e,r),this.recent.size>Ud&&this.recent.delete(this.recent.keys().next().value),r}};function Gd(e,t){let n=new Map;for(let t of e){let e=n.get(t.data.store);e||n.set(t.data.store,e=[]),e.push(t)}let r=new Map;for(let[e,i]of n)r.set(e,new Wd(e,i,t?.get(e)));return r}function Kd(e,t,n=100){let r=[],i=[],a=!1,o=e=>{r.length>=n?a=!0:r.push({path:Nd(i),...e})},s=(e,t)=>{i.push(e),t(),i.pop()},c=(e,t)=>{if(!(e===t||a)){if(Ad(e)&&Ad(t)&&Array.isArray(e)===Array.isArray(t)){if(Array.isArray(e)){let n=t;for(let t=0;t<Math.max(e.length,n.length)&&!a;t++)s(String(t),()=>{t>=n.length?o({hadPrev:!0,prev:e[t],deleted:!0}):t>=e.length?o({hadPrev:!1,deleted:!1,next:n[t]}):c(e[t],n[t])})}else{let n=e,r=t;for(let e of Object.keys(n)){if(a)break;s(e,()=>kd(r,e)?c(n[e],r[e]):o({hadPrev:!0,prev:n[e],deleted:!0}))}for(let e of Object.keys(r)){if(a)break;kd(n,e)||s(e,()=>o({hadPrev:!1,deleted:!1,next:r[e]}))}}return}o(e===void 0?{hadPrev:!1,deleted:!1,next:t}:t===void 0?{hadPrev:!0,prev:e,deleted:!0}:{hadPrev:!0,prev:e,deleted:!1,next:t})}};return c(e,t),{rows:r,more:a}}function qd(e){return e.kind===`action`?e.action||`(action)`:e.kind===`init`?`@@INIT`:`snapshot`}function Jd(e){if(e.kind!==`action`||e.state!==void 0)return`full state`;if(e.burst)return`burst`;let t=Array.isArray(e.changes)?e.changes.length:0;return t?`${t} change${t===1?``:`s`}`:`no changes`}function Yd(e){return typeof e==`string`&&e.startsWith(`[…`)&&e.endsWith(`not recorded]`)}function Xd(e,t=120){let n=``,r=e=>(n+=e,n.length<=t),i=e=>{if(e===void 0)return r(`undefined`);if(typeof e==`string`)return r(JSON.stringify(e.length>t?e.slice(0,t):e));if(!Ad(e))return r(String(e));if(Array.isArray(e)){if(!r(`[`))return!1;for(let t=0;t<e.length;t++)if(t>0&&!r(`,`)||!i(e[t]))return!1;return r(`]`)}if(!r(`{`))return!1;let n=!0;for(let t in e)if(kd(e,t)){if(!n&&!r(`,`)||!r(`${JSON.stringify(t)}:`)||!i(e[t]))return!1;n=!1}return r(`}`)};return i(e),n.length>t?`${n.slice(0,t-1)}…`:n}var Zd=`No state recorded. Redux Toolkit and Zustand stores (devtools) are recorded automatically; other apps can call tabtape.state().`,Qd=`State may be incomplete here: actions came too fast (over 50/s); the next snapshot re-syncs it.`;function $d({items:e,stores:t,time:n,follow:r,query:i,selected:a,onPick:o,onClose:s}){let[c,u]=(0,l.useState)(``),d=(0,l.useRef)(void 0),f=(0,l.useMemo)(()=>d.current=Gd(e,d.current),[e]),p=(0,l.useMemo)(()=>new Map(e.map(e=>[e.key,e])),[e]),m=c&&f.has(c)?c:``,h=(0,l.useMemo)(()=>e.filter(e=>e.data.kind!==`snapshot`&&(!m||e.data.store===m)&&(!i||`${qd(e.data)} ${e.data.store}`.toLowerCase().includes(i))),[e,m,i]);if(!e.length)return(0,X.jsx)(`div`,{className:`state-panel`,children:(0,X.jsx)(`div`,{className:`list-empty`,children:Zd})});let g=a?p.get(a):void 0,_=g&&(!m||g.data.store===m)?f.get(g.data.store):void 0,v=g&&_?_.indexOf(g.key):-1;return(0,X.jsxs)(`div`,{className:`state-panel`,children:[t.length>1&&(0,X.jsx)(`div`,{className:`state-toolbar`,children:(0,X.jsxs)(`select`,{className:`state-store`,value:m,onChange:e=>u(e.target.value),"aria-label":`Store`,children:[(0,X.jsx)(`option`,{value:``,children:`All stores`}),t.map(e=>(0,X.jsx)(`option`,{value:e,children:e},e))]})}),(0,X.jsx)(fd,{items:h,time:n,follow:r,selected:a,empty:i?`No matching actions.`:`No actions.`,onPick:o,children:e=>(0,X.jsx)(ef,{d:e.data})}),(0,X.jsxs)(`div`,{className:`state-view`,children:[_&&v>=0&&(0,X.jsx)(tf,{history:_,index:v,onClose:s},g.key),(0,X.jsx)(`div`,{className:`state-tree`,children:(m?[m]:t).map(e=>{let t=f.get(e);return t?(0,X.jsx)(rf,{history:t,time:n},e):null})})]})]})}function ef({d:e}){let t=Jd(e);return(0,X.jsxs)(`div`,{className:`row-main`,children:[(0,X.jsx)(`div`,{className:`row-title`,children:qd(e)}),(0,X.jsxs)(`div`,{className:`row-detail`,children:[e.store,` · `,(0,X.jsx)(`span`,{className:t===`burst`?`state-burst`:void 0,children:t})]})]})}function tf({history:e,index:t,onClose:n}){let r=e.items[t],i=r.data,a=(0,l.useMemo)(()=>e.changesOf(t),[e,t]),o=i.payload&&typeof i.payload==`object`&&Object.keys(i.payload).length?i.payload:void 0;return(0,X.jsxs)(`section`,{className:`state-detail`,children:[(0,X.jsxs)(`header`,{children:[(0,X.jsx)(`span`,{className:`state-action mono`,children:qd(i)}),(0,X.jsxs)(`span`,{className:`muted small`,children:[i.store,` · `,fe(r.offset)]}),(0,X.jsx)(`button`,{className:`icon-btn`,onClick:n,title:`Close`,children:`✕`})]}),i.kind===`action`?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(`div`,{className:`state-sub`,children:[`Payload`,i.payloadTruncated&&(0,X.jsx)(`span`,{className:`badge warn`,title:`Shortened to 8 KB`,children:`TRUNCATED`})]}),o?(0,X.jsx)(`pre`,{className:`state-payload`,children:JSON.stringify(o,null,2)}):(0,X.jsx)(`div`,{className:`muted body-note`,children:`No payload.`}),i.burst?(0,X.jsx)(`div`,{className:`state-note`,children:`Recorded during a burst (over 50 actions per second): only the action type is known, not what it changed.`}):(0,X.jsx)(nf,{changes:a})]}):(0,X.jsx)(`div`,{className:`muted body-note`,children:i.kind===`init`?`The store connected: its full state was recorded.`:`A snapshot of the full state${i.reason?` (${i.reason})`:``}.`})]})}function nf({changes:e}){let{rows:t,full:n,more:r,uncertain:i}=e;return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(`div`,{className:`state-sub`,children:[`Changed fields `,(0,X.jsx)(`span`,{className:`muted`,children:r?`${t.length}+`:t.length})]}),n&&(0,X.jsxs)(`div`,{className:`muted body-note`,children:[`The change was too big to record path by path (over 200 paths or 64 KB), so the full new state was recorded; these are the differences`,r?` (the first 100)`:``,`.`]}),i&&(0,X.jsx)(`div`,{className:`state-note`,children:`Previous values may be incomplete: no full state of this store is known right before this action.`}),t.length?(0,X.jsxs)(`table`,{className:`state-changes`,children:[(0,X.jsx)(`thead`,{children:(0,X.jsxs)(`tr`,{children:[(0,X.jsx)(`th`,{children:`Path`}),(0,X.jsx)(`th`,{children:`Previous → new`})]})}),(0,X.jsx)(`tbody`,{children:t.map((e,t)=>(0,X.jsxs)(`tr`,{children:[(0,X.jsx)(`td`,{className:`state-path mono`,children:e.path||`(whole state)`}),(0,X.jsxs)(`td`,{className:`state-values mono`,children:[e.hadPrev?(0,X.jsx)(`span`,{className:`state-prev`,title:Xd(e.prev,2e3),children:Xd(e.prev)}):(0,X.jsx)(`span`,{className:`state-added`,children:`(added)`}),(0,X.jsx)(`span`,{className:`state-arrow`,children:` → `}),e.deleted?(0,X.jsx)(`span`,{className:`state-deleted`,children:`(deleted)`}):(0,X.jsx)(`span`,{className:`state-next`,title:Xd(e.next,2e3),children:Xd(e.next)})]})]},t))})]}):(0,X.jsx)(`div`,{className:`muted body-note`,children:`No state change.`})]})}function rf({history:e,time:t}){let n=e.indexAt(t),r=(0,l.useMemo)(()=>e.at(n),[e,n]),i=n>=0?e.items[n]:void 0,a=r.base>=0?e.items[r.base]:void 0;return i?(0,X.jsxs)(`div`,{className:`state-root`,children:[(0,X.jsxs)(`div`,{className:`state-basis`,children:[`after `,(0,X.jsx)(`span`,{className:`mono`,children:qd(i.data)}),` at `,fe(i.offset)]}),r.uncertain&&(0,X.jsx)(`div`,{className:`state-note`,children:Qd}),r.base<0&&(0,X.jsx)(`div`,{className:`state-note`,children:`No full state of this store was recorded before this moment: only the changes since are shown.`}),a?.data.truncated&&(0,X.jsx)(`div`,{className:`muted body-note`,children:`Branches over 1 MB were not recorded: they show as notes.`}),(0,X.jsx)(sf,{name:e.store,value:r.state,depth:0})]}):(0,X.jsx)(`div`,{className:`state-root`,children:(0,X.jsxs)(`div`,{className:`state-basis`,children:[(0,X.jsx)(`span`,{className:`mono`,children:e.store}),`: no state yet, its first record is at `,fe(e.items[0].offset)]})})}var af=200,of=1e3,sf=(0,l.memo)(function e({name:t,value:n,depth:r}){let[i,a]=(0,l.useState)(r<2),[o,s]=(0,l.useState)(af);if(typeof n!=`object`||!n)return(0,X.jsxs)(`div`,{className:`tree-row`,children:[(0,X.jsx)(`span`,{className:`tree-caret`}),(0,X.jsx)(`span`,{className:`tree-key`,children:t}),`: `,(0,X.jsx)(cf,{value:n})]});let c=Array.isArray(n)?n:null,u=n,d=c?null:Object.keys(u),f=c?c.length:d.length,p=c?f?`Array(${f})`:`[]`:f?`{…} ${f} ${f===1?`key`:`keys`}`:`{}`,m=Math.min(f,o);return(0,X.jsxs)(`div`,{className:`tree-node`,children:[(0,X.jsxs)(`div`,{className:f?`tree-row toggle`:`tree-row`,onClick:f?()=>a(!i):void 0,children:[(0,X.jsx)(`span`,{className:`tree-caret`,children:f?i?`▾`:`▸`:``}),(0,X.jsx)(`span`,{className:`tree-key`,children:t}),`: `,(0,X.jsx)(`span`,{className:`tree-summary`,children:p})]}),i&&f>0&&(0,X.jsxs)(`div`,{className:`tree-children`,children:[c?Array.from({length:m},(t,n)=>(0,X.jsx)(e,{name:String(n),value:c[n],depth:r+1},n)):d.slice(0,m).map(t=>(0,X.jsx)(e,{name:t,value:u[t],depth:r+1},t)),f>m&&(0,X.jsxs)(`button`,{className:`tree-more`,onClick:()=>s(e=>e+af),children:[`show `,Math.min(af,f-m).toLocaleString(`en-US`),` more (`,(f-m).toLocaleString(`en-US`),` not shown)`]})]})]})});function cf({value:e}){if(typeof e==`string`){if(Yd(e))return(0,X.jsx)(`span`,{className:`tree-note`,title:`This branch was over 1 MB and was not recorded`,children:e});let t=e.length>of;return(0,X.jsx)(`span`,{className:`tree-str`,title:t?`${e.length.toLocaleString(`en-US`)} characters`:void 0,children:JSON.stringify(t?`${e.slice(0,of)}…`:e)})}return typeof e==`number`?(0,X.jsx)(`span`,{className:`tree-num`,children:String(e)}):typeof e==`boolean`?(0,X.jsx)(`span`,{className:`tree-bool`,children:String(e)}):(0,X.jsx)(`span`,{className:`tree-null`,children:e===null?`null`:`undefined`})}var lf={page:`◰`,click:`◉`,rage:`✸`,change:`✎`,submit:`⏎`,error:`!`,"net-error":`⇄`,marker:`⚑`,custom:`★`,identify:`@`,freeze:`◔`},uf={all:`All`,api:`Fetch/XHR`,doc:`Doc`,other:`Assets`,ws:`WS`,failed:`Failed`},df=[];function ff({data:e,time:t,onSeek:n}){let[r,i]=(0,l.useState)(`events`),[a,o]=(0,l.useState)(``),[s,c]=(0,l.useState)(null),[u,d]=(0,l.useState)(!0),[f,p]=(0,l.useState)(`all`),m=a.trim().toLowerCase(),h=(0,l.useMemo)(()=>e.story.filter(e=>!m||`${e.title} ${e.detail??``}`.toLowerCase().includes(m)),[e,m]),g=(0,l.useMemo)(()=>e.network.filter(e=>{let t=e.data;return f===`api`&&t.kind!==`fetch`&&t.kind!==`xhr`&&t.kind!==`beacon`||f===`doc`&&t.kind!==`navigation`||f===`other`&&t.kind!==`resource`||f===`ws`&&t.kind!==`websocket`||f===`failed`&&!nu(t)?!1:!m||`${t.method} ${t.url} ${t.status??``} ${t.kind===`websocket`?`ws websocket`:``}`.toLowerCase().includes(m)}),[e,m,f]),_=(0,l.useMemo)(()=>e.console.filter(e=>!m||String(e.data.text??``).toLowerCase().includes(m)),[e,m]),v=(0,l.useMemo)(()=>e.network.filter(e=>nu(e.data)).length,[e]),y=(0,l.useMemo)(()=>e.console.filter(e=>e.data.level===`error`).length,[e]),b=(0,l.useMemo)(()=>e.state.filter(e=>e.data.kind===`action`).length,[e]),x=(e,t)=>{c(t),n(e+50)},S=r===`network`?Ku(e.network,s):void 0,C=S?.data.kind===`websocket`?S.data.id:void 0;return(0,X.jsxs)(`aside`,{className:`side`,children:[(0,X.jsxs)(`nav`,{className:`tabs`,children:[(0,X.jsx)(Q,{active:r===`events`,onClick:()=>i(`events`),label:`Events`,count:e.story.length}),(0,X.jsx)(Q,{active:r===`network`,onClick:()=>i(`network`),label:`Network`,count:e.network.length,alert:v}),(0,X.jsx)(Q,{active:r===`console`,onClick:()=>i(`console`),label:`Console`,count:e.console.length,alert:y}),(0,X.jsx)(Q,{active:r===`state`,onClick:()=>i(`state`),label:`State`,count:b})]}),(0,X.jsxs)(`div`,{className:`side-toolbar`,children:[(0,X.jsx)(`input`,{className:`search`,placeholder:`Filter ${r}…`,value:a,onChange:e=>o(e.target.value)}),(0,X.jsxs)(`label`,{className:`follow`,title:`Keep the item at the playhead in view`,children:[(0,X.jsx)(`input`,{type:`checkbox`,checked:u,onChange:e=>d(e.target.checked)}),` Follow`]})]}),r===`network`&&(0,X.jsx)(`div`,{className:`chips`,children:Object.keys(uf).map(e=>(0,X.jsx)(`button`,{className:f===e?`on`:``,onClick:()=>p(e),children:uf[e]},e))}),r===`events`&&(0,X.jsx)(fd,{items:h,time:t,follow:u,selected:s,empty:`No events recorded.`,onPick:e=>x(e.offset,e.key),children:e=>(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`span`,{className:`story-icon ${e.kind}`,children:lf[e.kind]}),(0,X.jsxs)(`div`,{className:`row-main`,children:[(0,X.jsx)(`div`,{className:`row-title`,children:e.title}),e.detail&&(0,X.jsx)(`div`,{className:`row-detail`,children:e.detail}),e.key===s&&e.payload&&Object.keys(e.payload).length>0&&(0,X.jsx)(`pre`,{className:`stack`,children:JSON.stringify(e.payload,null,2)})]})]})}),r===`network`&&(0,X.jsxs)(`div`,{className:`network-split ${S?`with-detail`:``}`,children:[(0,X.jsx)(fd,{items:g,time:t,follow:u&&!S,selected:S?.key??s,empty:`No requests.`,onPick:e=>x(e.offset,e.key),children:t=>(0,X.jsx)(pf,{item:t,frames:t.data.kind===`websocket`?e.ws.get(t.data.id):void 0})}),S&&(0,X.jsx)(_d,{item:S,frames:C===void 0?void 0:e.ws.get(C)??df,start:e.start,time:t,onSeek:n,onClose:()=>c(null)},C===void 0?S.key:Gu(C))]}),r===`console`&&(0,X.jsx)(fd,{items:_,time:t,follow:u,selected:s,empty:`No console output.`,onPick:e=>x(e.offset,e.key),children:e=>(0,X.jsx)(mf,{item:e,expanded:e.key===s})}),r===`state`&&(0,X.jsx)($d,{items:e.state,stores:e.stores,time:t,follow:u,query:m,selected:s,onPick:e=>x(e.offset,e.key),onClose:()=>c(null)})]})}function Q({active:e,onClick:t,label:n,count:r,alert:i}){return(0,X.jsxs)(`button`,{className:e?`on`:``,onClick:t,children:[n,` `,(0,X.jsx)(`span`,{className:`count`,children:r}),!!i&&(0,X.jsx)(`span`,{className:`alert`,children:i})]})}function pf({item:e,frames:t}){let n=e.data,{host:r,path:i}=ve(n.url),a=tu(n);if(n.kind===`websocket`){let o=n.frames??Su(t??df),s=!!n.error&&!o.sent&&!o.received;return(0,X.jsxs)(`div`,{className:`row-main`,children:[(0,X.jsxs)(`div`,{className:`row-title net-title`,children:[(0,X.jsx)(`span`,{className:`status ${iu(n)}`,children:ru(n)}),(0,X.jsx)(`span`,{className:`method`,children:`WS`}),(0,X.jsx)(`span`,{className:`path`,title:n.url,children:e.placeholder?`WebSocket (open)`:i})]}),(0,X.jsxs)(`div`,{className:`row-detail`,children:[r&&`${r} · `,`websocket`,!s&&` · ${Cu(o)}`,a&&(0,X.jsxs)(`span`,{className:`bad`,title:a,children:[` `,`· `,a]})]})]})}let o=au(n);return(0,X.jsxs)(`div`,{className:`row-main`,children:[(0,X.jsxs)(`div`,{className:`row-title net-title`,children:[(0,X.jsx)(`span`,{className:`status ${iu(n)}`,children:ru(n)}),(0,X.jsx)(`span`,{className:`method`,children:n.method}),(0,X.jsx)(`span`,{className:`path`,title:n.url,children:i})]}),(0,X.jsxs)(`div`,{className:`row-detail`,children:[r,` · `,n.kind===`resource`?n.initiator??`resource`:n.kind,n.duration!==void 0&&` · ${pe(n.duration)}`,n.resSize??n.transferSize?` · ${O(n.resSize??n.transferSize)}`:``,o&&` · ${o}`,a&&(0,X.jsxs)(`span`,{className:`bad`,title:a,children:[` `,`· `,a]})]})]})}function mf({item:e,expanded:t}){let n=e.data,r=n.url?`${ve(n.url).path}${n.line?`:${n.line}`:``}`:``;return(0,X.jsxs)(`div`,{className:`row-main console-row ${n.level}`,children:[(0,X.jsxs)(`div`,{className:`row-title`,children:[(0,X.jsx)(`span`,{className:`level ${n.level}`,children:n.level}),(0,X.jsx)(`span`,{className:t?`console-text full`:`console-text`,children:n.text})]}),t&&(0,X.jsxs)(X.Fragment,{children:[r&&(0,X.jsx)(`div`,{className:`row-detail mono`,children:r}),n.stack&&(0,X.jsx)(`pre`,{className:`stack`,children:n.stack}),n.args&&n.args.some(e=>typeof e==`object`&&!!e)&&(0,X.jsx)(`pre`,{className:`stack`,children:JSON.stringify(n.args,null,2)})]})]})}var hf=50,gf={LCP:`the moment the largest element rendered`,CLS:`the largest layout shift`,INP:`the slowest interaction`},_f={LCP:`LCP was not collected for this page, for example because recording started after the page loaded and the browser had no buffered entry.`,CLS:`CLS was not collected for this page: no layout shift was reported.`,INP:`INP was not collected for this page: no interaction was measured.`};function vf({data:e,time:t,onSeek:n}){if(!e.vitals.length)return null;let r=Iu(e.vitalPages,t);return(0,X.jsx)(`div`,{className:`vitals`,role:`group`,"aria-label":`Web Vitals of this page`,children:Mu.map(t=>{let i=r?.metrics[t];if(!i)return(0,X.jsxs)(`span`,{className:`vital missing`,title:_f[t],children:[t,` `,(0,X.jsx)(`b`,{children:`missing`})]},t);let a=Vu(t,i.data.value),o=[`${Bu[t]}: ${a} (${zu[i.data.rating]??i.data.rating})`,...Uu(i.data),`Click to jump to ${gf[t]}.`];return(0,X.jsxs)(`button`,{className:`vital ${i.data.rating}`,title:o.join(`
|
|
144
|
-
`),onClick:()=>n(Ru(i)-e.start+hf),children:[t,` `,(0,X.jsx)(`b`,{children:a})]},t)})})}function yf({data:e,time:t}){if(!e.vitals.length)return null;let n=Iu(e.vitalPages,t);return!n||!Lu(n,t)?null:(0,X.jsxs)(`div`,{className:`vitals-hint`,children:[`SPA route change: LCP and CLS are not reset without a page load, so the chips still describe the load of`,` `,(0,X.jsx)(`span`,{className:`mono`,children:ve(n.url).path}),`.`]})}function bf({data:e,fallbackUrl:t,initialTime:n=0,range:r,onRangeChange:i,live:a}){let[o,s]=(0,l.useState)(n),c=(0,l.useRef)(null),u=(0,l.useRef)(o);u.current=o;let d=(0,l.useRef)(r);d.current=r;let f=(0,l.useCallback)(e=>c.current?.seek(e),[]),p=(0,l.useRef)(n);(0,l.useEffect)(()=>{p.current!==n&&(p.current=n,c.current?.seek(n))},[n]),(0,l.useEffect)(()=>{let t=t=>{if(t.target.closest(`input, textarea, select, dialog`)||t.metaKey||t.ctrlKey||t.altKey)return;let n=Math.round(u.current),r=d.current;switch(t.key){case` `:t.preventDefault(),c.current?.toggle();break;case`ArrowRight`:c.current?.nudge(5e3);break;case`ArrowLeft`:c.current?.nudge(-5e3);break;case`[`:i({from:n,to:r&&r.to>n?r.to:Math.max(e.duration,n)});break;case`]`:i({from:r&&r.from<n?r.from:0,to:n});break;case`Escape`:r&&i(null)}};return addEventListener(`keydown`,t),()=>removeEventListener(`keydown`,t)},[e,i]);let m=e.pages[Math.max(td(e.pages,o),0)]?.url??t??``;return(0,X.jsxs)(`div`,{className:`player-body`,children:[(0,X.jsxs)(`div`,{className:`stage-col`,children:[(0,X.jsxs)(`div`,{className:`urlbar`,children:[(0,X.jsx)(`span`,{className:`lock`,children:m.startsWith(`https:`)?`🔒`:`ⓘ`}),(0,X.jsx)(`span`,{className:`mono ellipsis`,children:m}),e.skipped>0&&(0,X.jsx)(`span`,{className:`badge warn`,children:`replay starts at the oldest snapshot still on disk`}),(0,X.jsx)(vf,{data:e,time:o,onSeek:f})]}),(0,X.jsx)(yf,{data:e,time:o}),(0,X.jsx)(ud,{ref:c,data:e,onTime:s,initialTime:n,range:r,onRangeChange:i,live:a})]}),(0,X.jsx)(ff,{data:e,time:o,onSeek:f})]})}var xf=3e4;function Sf(e){return!e.endedAt&&!!e.lastWriteAt&&Date.now()-e.lastWriteAt<xf}function Cf(e){let t=e.endedAt??e.lastTs??e.startedAt;return Math.max(0,t-e.startedAt)}function wf(){let[e,t]=(0,l.useState)(null),[n,r]=(0,l.useState)(null),[i,a]=(0,l.useState)(``),[o,s]=(0,l.useState)(``),c=(0,l.useCallback)(async()=>{try{let[e,n]=await Promise.all([x(),S()]);r(e),t(n),a(``)}catch(e){a(e instanceof Error?e.message:String(e))}},[]);(0,l.useEffect)(()=>{c();let e=setInterval(()=>void c(),5e3);return()=>clearInterval(e)},[c]);let u=async e=>{if(confirm(`Delete the recording of “${e.title||e.url||e.id}”?`)){try{await ie(e.id)}catch(e){a(e instanceof Error?e.message:String(e))}await c()}},d=o.trim().toLowerCase(),f=(e??[]).filter(e=>!d||`${e.title} ${e.url} ${e.lastUrl} ${e.id} ${e.userId??``}`.toLowerCase().includes(d)),p=n?Math.min(1,n.totalBytes/n.maxBytes):0;return(0,X.jsxs)(`div`,{className:`sessions-page`,children:[(0,X.jsxs)(`header`,{className:`topbar`,children:[(0,X.jsxs)(`div`,{className:`brand`,children:[(0,X.jsx)(`span`,{className:`logo`}),` tabtape `,(0,X.jsx)(`span`,{className:`muted`,children:`session replay`})]}),n&&(0,X.jsx)(Tf,{health:n,usage:p})]}),(0,X.jsxs)(`main`,{className:`sessions-main`,children:[(0,X.jsxs)(`div`,{className:`sessions-toolbar`,children:[(0,X.jsx)(`h1`,{children:`Recordings`}),(0,X.jsx)(`input`,{className:`search`,placeholder:`Filter by title, URL or user…`,value:o,onChange:e=>s(e.target.value)})]}),i&&(0,X.jsxs)(`div`,{className:`banner error`,children:[`Cannot reach tabtape in the Repoburg daemon: `,i]}),e&&!e.length&&(0,X.jsxs)(`div`,{className:`empty`,children:[(0,X.jsx)(`div`,{className:`empty-dot`}),(0,X.jsx)(`h2`,{children:`No recordings yet`}),(0,X.jsxs)(`p`,{children:[`Open the `,(0,X.jsx)(`strong`,{children:`tabtape`}),` extension on any tab and press `,(0,X.jsx)(`strong`,{children:`Start recording`}),` (or `,(0,X.jsx)(`kbd`,{children:`⌥`}),` `,(0,X.jsx)(`kbd`,{children:`⇧`}),` `,(0,X.jsx)(`kbd`,{children:`R`}),`).`]})]}),!!f.length&&(0,X.jsxs)(`table`,{className:`sessions`,children:[(0,X.jsx)(`thead`,{children:(0,X.jsxs)(`tr`,{children:[(0,X.jsx)(`th`,{children:`Started`}),(0,X.jsx)(`th`,{children:`Page`}),(0,X.jsx)(`th`,{children:`User`}),(0,X.jsx)(`th`,{className:`num`,children:`Duration`}),(0,X.jsx)(`th`,{className:`num`,children:`Pages`}),(0,X.jsx)(`th`,{className:`num`,children:`Clicks`}),(0,X.jsx)(`th`,{className:`num`,children:`Errors`}),(0,X.jsx)(`th`,{className:`num`,children:`Failed requests`}),(0,X.jsx)(`th`,{title:`Worst Web Vitals rating in the recording`,children:`Perf`}),(0,X.jsx)(`th`,{className:`num`,children:`Size`}),(0,X.jsx)(`th`,{})]})}),(0,X.jsx)(`tbody`,{children:f.map(e=>{let{host:t,path:n}=ve(e.url??``);return(0,X.jsxs)(`tr`,{onClick:()=>location.hash=`#/s/${e.id}`,children:[(0,X.jsxs)(`td`,{className:`nowrap`,children:[_e(e.startedAt),(0,X.jsx)(`div`,{className:`muted small`,children:ye(e.userAgent)})]}),(0,X.jsxs)(`td`,{className:`page-cell`,children:[(0,X.jsxs)(`div`,{className:`title`,children:[Sf(e)&&(0,X.jsx)(`a`,{className:`badge live`,href:`#/s/${e.id}?live=1`,title:`Watch live`,onClick:e=>e.stopPropagation(),children:`LIVE`}),e.truncated&&(0,X.jsx)(`span`,{className:`badge warn`,title:`The ring buffer deleted the oldest part of this recording`,children:`TRIMMED`}),e.source===`buffer`&&(0,X.jsx)(`span`,{className:`badge buffer`,title:`Saved from buffer mode`,children:`BUFFER`}),e.source===`automation`&&(0,X.jsx)(`span`,{className:`badge buffer`,title:`Started by automation: a record link (Playwright MCP) or a Playwright script`,children:`AUTO`}),e.title||t||e.id]}),(0,X.jsxs)(`div`,{className:`muted small ellipsis`,children:[t,n]})]}),(0,X.jsx)(`td`,{className:`user-cell`,children:e.userId?(0,X.jsx)(`span`,{className:`mono`,title:e.userId,children:e.userId}):(0,X.jsx)(`span`,{className:`muted`,children:`—`})}),(0,X.jsx)(`td`,{className:`num mono`,children:de(Cf(e))}),(0,X.jsx)(`td`,{className:`num`,children:e.counts.pages}),(0,X.jsx)(`td`,{className:`num`,children:e.counts.clicks}),(0,X.jsx)(`td`,{className:`num ${e.counts.errors?`bad`:``}`,children:e.counts.errors}),(0,X.jsx)(`td`,{className:`num ${e.counts.netErrors?`bad`:``}`,children:e.counts.netErrors}),(0,X.jsx)(`td`,{children:(0,X.jsx)(Ef,{rating:e.perf})}),(0,X.jsxs)(`td`,{className:`num`,title:he(e.bytes,e.rawBytes)?`${O(e.bytes)} on disk, ${O(e.rawBytes)} uncompressed`:void 0,children:[O(e.bytes),he(e.bytes,e.rawBytes)&&(0,X.jsxs)(`div`,{className:`muted small`,children:[O(e.rawBytes),` raw`]})]}),(0,X.jsx)(`td`,{className:`actions`,children:(0,X.jsx)(`button`,{className:`icon-btn`,title:`Delete recording`,onClick:t=>{t.stopPropagation(),u(e)},children:`✕`})})]},e.id)})})]})]})]})}function Tf({health:e,usage:t}){let n=he(e.totalBytes,e.rawBytes)?e.rawBytes:void 0,r=n?n/Math.max(e.totalBytes,1):0,i=[`Data directory: ${e.dir}`,`Segment size: ${O(e.segmentBytes)}`,e.compress?`Compression: ${e.compress}${r>=1.05?` (${r.toFixed(1)}× smaller on disk)`:``}`:``].filter(Boolean);return(0,X.jsxs)(`div`,{className:`storage`,title:i.join(`
|
|
145
|
-
`),
|
|
139
|
+
`,$c=typeof self<`u`&&self.Blob&&new Blob([Qc],{type:`text/javascript;charset=utf-8`});function el(e){let t;try{if(t=$c&&(self.URL||self.webkitURL).createObjectURL($c),!t)throw``;let n=new Worker(t,{name:e?.name});return n.addEventListener(`error`,()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),n}catch{return new Worker(`data:text/javascript;charset=utf-8,`+encodeURIComponent(Qc),{name:e?.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}var tl=class{constructor(e){A(this,`pendingCanvasMutations`,new Map),A(this,`rafStamps`,{latestId:0,invokeId:null}),A(this,`mirror`),A(this,`mutationCb`),A(this,`resetObservers`),A(this,`frozen`,!1),A(this,`locked`,!1),A(this,`processMutation`,(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)});let{sampling:t=`all`,win:n,blockClass:r,blockSelector:i,recordCanvas:a,dataURLOptions:o}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&t===`all`&&this.initCanvasMutationObserver(n,r,i),a&&typeof t==`number`&&this.initCanvasFPSObserver(t,n,r,i,{dataURLOptions:o})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,t,n,r,i){let a=Yc(t,n,r,!0),o=new Map,s=new el;s.onmessage=e=>{let{id:t}=e.data;if(o.set(t,!1),!(`base64`in e.data))return;let{base64:n,type:r,width:i,height:a}=e.data;this.mutationCb({id:t,type:Qs[`2D`],commands:[{property:`clearRect`,args:[0,0,i,a]},{property:`drawImage`,args:[{rr_type:`ImageBitmap`,args:[{rr_type:`Blob`,data:[{rr_type:`ArrayBuffer`,base64:n}],type:r}]},0,0]}]})};let c=1e3/e,l=0,u,d=()=>{let e=[];return t.document.querySelectorAll(`canvas`).forEach(t=>{js(t,n,r,!0)||e.push(t)}),e},f=e=>{if(l&&e-l<c){u=requestAnimationFrame(f);return}l=e,d().forEach(async e=>{let t=this.mirror.getId(e);if(o.get(t)||e.width===0||e.height===0)return;if(o.set(t,!0),[`webgl`,`webgl2`].includes(e.__context)){let t=e.getContext(e.__context);t?.getContextAttributes()?.preserveDrawingBuffer===!1&&t.clear(t.COLOR_BUFFER_BIT)}let n=await createImageBitmap(e);s.postMessage({id:t,bitmap:n,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[n])}),u=requestAnimationFrame(f)};u=requestAnimationFrame(f),this.resetObservers=()=>{a(),cancelAnimationFrame(u)}}initCanvasMutationObserver(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let r=Yc(e,t,n,!1),i=qc(this.processMutation.bind(this),e,t,n),a=Zc(this.processMutation.bind(this),e,t,n);this.resetObservers=()=>{r(),i(),a()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let n=this.pendingCanvasMutations.get(e);if(!n||t===-1)return;let r=n.map(e=>{let{type:t,...n}=e;return n}),{type:i}=n[0];this.mutationCb({id:t,type:i,commands:r}),this.pendingCanvasMutations.delete(e)}},nl=class{constructor(e){A(this,`trackedLinkElements`,new WeakSet),A(this,`mutationCb`),A(this,`adoptedStyleSheetCb`),A(this,`styleMirror`,new Ks),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){`_cssText`in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(e.length===0)return;let n={id:t,styleIds:[]},r=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,n)=>({rule:st(e,t.href),index:n}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}},rl=class{constructor(){A(this,`nodeMap`,new WeakMap),A(this,`active`,!1)}inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}},il,al,ol,sl=!1;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement(`iframe`);document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug(`Unable to override Array.from`,e)}var cl=ft();function ll(e={}){let{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i=`rr-block`,blockSelector:a=null,ignoreClass:o=`rr-ignore`,ignoreSelector:s=null,maskTextClass:c=`rr-mask`,maskTextSelector:l=null,inlineStylesheet:u=!0,maskAllInputs:d,maskInputOptions:f,slimDOMOptions:p,maskInputFn:m,maskTextFn:h,hooks:g,packFn:_,sampling:v={},dataURLOptions:y={},mousemoveWait:b,recordDOM:x=!0,recordCanvas:S=!1,recordCrossOriginIframes:C=!1,recordAfter:ee=e.recordAfter===`DOMContentLoaded`?e.recordAfter:`load`,userTriggeredOnInput:w=!1,collectFonts:te=!1,inlineImages:T=!1,plugins:ne,keepIframeSrcFn:E=()=>!1,ignoreCSSAttributes:re=new Set([]),errorHandler:ie}=e;cc(ie);let ae=!C||window.parent===window,oe=!1;if(!ae)try{window.parent.document&&(oe=!1)}catch{oe=!0}if(ae&&!t)throw Error(`emit function is required`);if(!ae&&!oe)return()=>{};b!==void 0&&v.mousemove===void 0&&(v.mousemove=b),cl.reset();let se=d===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:f===void 0?{password:!0}:f,D=nn(p);Is();let ce,le=0,ue=e=>{for(let t of ne||[])t.eventProcessor&&(e=t.eventProcessor(e));return _&&!oe&&(e=_(e)),e};il=(e,i)=>{let a=e;if(a.timestamp=bs(),uc[0]?.isFrozen()&&a.type!==B.FullSnapshot&&(a.type!==B.IncrementalSnapshot||a.data.source!==V.Mutation)&&uc.forEach(e=>e.unfreeze()),ae)t?.(ue(a),i);else if(oe){let e={type:`rrweb`,event:ue(a),origin:window.location.origin,isCheckout:i};window.parent.postMessage(e,`*`)}if(a.type===B.FullSnapshot)ce=a,le=0;else if(a.type===B.IncrementalSnapshot){if(a.data.source===V.Mutation&&a.data.isAttachIframe)return;le++;let e=r&&le>=r,t=n&&a.timestamp-ce.timestamp>n;(e||t)&&al(!0)}};let de=e=>{il({type:B.IncrementalSnapshot,data:{source:V.Mutation,...e}})},fe=e=>il({type:B.IncrementalSnapshot,data:{source:V.Scroll,...e}}),pe=e=>il({type:B.IncrementalSnapshot,data:{source:V.CanvasMutation,...e}}),O=new nl({mutationCb:de,adoptedStyleSheetCb:e=>il({type:B.IncrementalSnapshot,data:{source:V.AdoptedStyleSheet,...e}})}),me=new Pc({mirror:cl,mutationCb:de,stylesheetManager:O,recordCrossOriginIframes:C,wrappedEmit:il});for(let e of ne||[])e.getMirror&&e.getMirror({nodeMirror:cl,crossOriginIframeMirror:me.crossOriginIframeMirror,crossOriginIframeStyleMirror:me.crossOriginIframeStyleMirror});let he=new rl;ol=new tl({recordCanvas:S,mutationCb:pe,win:window,blockClass:i,blockSelector:a,mirror:cl,sampling:v.canvas,dataURLOptions:y});let ge=new Fc({mutationCb:de,scrollCb:fe,bypassOptions:{blockClass:i,blockSelector:a,maskTextClass:c,maskTextSelector:l,inlineStylesheet:u,maskInputOptions:se,dataURLOptions:y,maskTextFn:h,maskInputFn:m,recordCanvas:S,inlineImages:T,sampling:v,slimDOMOptions:D,iframeManager:me,stylesheetManager:O,canvasManager:ol,keepIframeSrcFn:E,processedNodeManager:he},mirror:cl});al=(e=!1)=>{if(!x)return;il({type:B.Meta,data:{href:window.location.href,width:ks(),height:Os()}},e),O.reset(),ge.init(),uc.forEach(e=>e.lock());let t=on(document,{mirror:cl,blockClass:i,blockSelector:a,maskTextClass:c,maskTextSelector:l,inlineStylesheet:u,maskAllInputs:se,maskTextFn:h,maskInputFn:m,slimDOM:D,dataURLOptions:y,recordCanvas:S,inlineImages:T,onSerialize:e=>{zs(e,cl)&&me.addIframe(e),Bs(e,cl)&&O.trackLinkElement(e),Hs(e)&&ge.addShadowRoot(z.shadowRoot(e),document)},onIframeLoad:(e,t)=>{me.attachIframe(e,t),ge.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{O.attachLinkElement(e,t)},keepIframeSrcFn:E});if(!t)return console.warn(`Failed to snapshot the document`);il({type:B.FullSnapshot,data:{node:t,initialOffset:Ds(window)}},e),uc.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&O.adoptStyleSheets(document.adoptedStyleSheets,cl.getId(document))};try{let e=[],t=e=>W(Ac)({mutationCb:de,mousemoveCb:(e,t)=>il({type:B.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>il({type:B.IncrementalSnapshot,data:{source:V.MouseInteraction,...e}}),scrollCb:fe,viewportResizeCb:e=>il({type:B.IncrementalSnapshot,data:{source:V.ViewportResize,...e}}),inputCb:e=>il({type:B.IncrementalSnapshot,data:{source:V.Input,...e}}),mediaInteractionCb:e=>il({type:B.IncrementalSnapshot,data:{source:V.MediaInteraction,...e}}),styleSheetRuleCb:e=>il({type:B.IncrementalSnapshot,data:{source:V.StyleSheetRule,...e}}),styleDeclarationCb:e=>il({type:B.IncrementalSnapshot,data:{source:V.StyleDeclaration,...e}}),canvasMutationCb:pe,fontCb:e=>il({type:B.IncrementalSnapshot,data:{source:V.Font,...e}}),selectionCb:e=>{il({type:B.IncrementalSnapshot,data:{source:V.Selection,...e}})},customElementCb:e=>{il({type:B.IncrementalSnapshot,data:{source:V.CustomElement,...e}})},blockClass:i,ignoreClass:o,ignoreSelector:s,maskTextClass:c,maskTextSelector:l,maskInputOptions:se,inlineStylesheet:u,sampling:v,recordDOM:x,recordCanvas:S,inlineImages:T,userTriggeredOnInput:w,collectFonts:te,doc:e,maskInputFn:m,maskTextFn:h,keepIframeSrcFn:E,blockSelector:a,slimDOMOptions:D,dataURLOptions:y,mirror:cl,iframeManager:me,stylesheetManager:O,shadowDomManager:ge,processedNodeManager:he,canvasManager:ol,ignoreCSSAttributes:re,plugins:(ne?.filter(e=>e.observer))?.map(e=>({observer:e.observer,options:e.options,callback:t=>il({type:B.Plugin,data:{plugin:e.name,payload:t}})}))||[]},g);me.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{al(),e.push(t(document)),sl=!0};return[`interactive`,`complete`].includes(document.readyState)?n():(e.push(Ss(`DOMContentLoaded`,()=>{il({type:B.DomContentLoaded,data:{}}),ee===`DOMContentLoaded`&&n()})),e.push(Ss(`load`,()=>{il({type:B.Load,data:{}}),ee===`load`&&n()},window))),()=>{e.forEach(e=>{try{e()}catch(e){String(e).toLowerCase().includes(`cross-origin`)||console.warn(e)}}),he.destroy(),sl=!1,lc()}}catch(e){console.warn(e)}}ll.addCustomEvent=(e,t)=>{if(!sl)throw Error(`please add custom event after start recording`);il({type:B.Custom,data:{tag:e,payload:t}})},ll.freezePage=()=>{uc.forEach(e=>e.freeze())},ll.takeFullSnapshot=e=>{if(!sl)throw Error(`please take full snapshot after start recording`);al(e)},ll.mirror=cl;function ul(e){return{all:e||=new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(e){e(n)}),(r=e.get(`*`))&&r.slice().map(function(e){e(t,n)})}}}function dl(e=window,t=document){if(`scrollBehavior`in t.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;let n=e.HTMLElement||e.Element,r={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:n.prototype.scroll||s,scrollIntoView:n.prototype.scrollIntoView},i=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function a(e){return new RegExp([`MSIE `,`Trident/`,`Edge/`].join(`|`)).test(e)}let o=+!!a(e.navigator.userAgent);function s(e,t){this.scrollLeft=e,this.scrollTop=t}function c(e){return .5*(1-Math.cos(Math.PI*e))}function l(e){if(typeof e!=`object`||!e||e.behavior===void 0||e.behavior===`auto`||e.behavior===`instant`)return!0;if(typeof e==`object`&&e.behavior===`smooth`)return!1;throw TypeError(`behavior member of ScrollOptions `+e.behavior+` is not a valid value for enumeration ScrollBehavior.`)}function u(e,t){if(t===`Y`)return e.clientHeight+o<e.scrollHeight;if(t===`X`)return e.clientWidth+o<e.scrollWidth}function d(t,n){let r=e.getComputedStyle(t,null)[`overflow`+n];return r===`auto`||r===`scroll`}function f(e){let t=u(e,`Y`)&&d(e,`Y`),n=u(e,`X`)&&d(e,`X`);return t||n}function p(e){for(;e!==t.body&&f(e)===!1;)e=e.parentNode||e.host;return e}function m(t){let n=i(),r,a,o,s=(n-t.startTime)/468;s=s>1?1:s,r=c(s),a=t.startX+(t.x-t.startX)*r,o=t.startY+(t.y-t.startY)*r,t.method.call(t.scrollable,a,o),(a!==t.x||o!==t.y)&&e.requestAnimationFrame(m.bind(e,t))}function h(n,a,o){let c,l,u,d,f=i();n===t.body?(c=e,l=e.scrollX||e.pageXOffset,u=e.scrollY||e.pageYOffset,d=r.scroll):(c=n,l=n.scrollLeft,u=n.scrollTop,d=s),m({scrollable:c,method:d,startTime:f,startX:l,startY:u,x:a,y:o})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(l(arguments[0])===!0){r.scroll.call(e,arguments[0].left===void 0?typeof arguments[0]==`object`?e.scrollX||e.pageXOffset:arguments[0]:arguments[0].left,arguments[0].top===void 0?arguments[1]===void 0?e.scrollY||e.pageYOffset:arguments[1]:arguments[0].top);return}h.call(e,t.body,arguments[0].left===void 0?e.scrollX||e.pageXOffset:~~arguments[0].left,arguments[0].top===void 0?e.scrollY||e.pageYOffset:~~arguments[0].top)}},e.scrollBy=function(){if(arguments[0]!==void 0){if(l(arguments[0])){r.scrollBy.call(e,arguments[0].left===void 0?typeof arguments[0]==`object`?0:arguments[0]:arguments[0].left,arguments[0].top===void 0?arguments[1]===void 0?0:arguments[1]:arguments[0].top);return}h.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},n.prototype.scroll=n.prototype.scrollTo=function(){if(arguments[0]===void 0)return;if(l(arguments[0])===!0){if(typeof arguments[0]==`number`&&arguments[1]===void 0)throw SyntaxError(`Value could not be converted`);r.elementScroll.call(this,arguments[0].left===void 0?typeof arguments[0]==`object`?this.scrollLeft:~~arguments[0]:~~arguments[0].left,arguments[0].top===void 0?arguments[1]===void 0?this.scrollTop:~~arguments[1]:~~arguments[0].top);return}let e=arguments[0].left,t=arguments[0].top;h.call(this,this,e===void 0?this.scrollLeft:~~e,t===void 0?this.scrollTop:~~t)},n.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(l(arguments[0])===!0){r.elementScroll.call(this,arguments[0].left===void 0?~~arguments[0]+this.scrollLeft:~~arguments[0].left+this.scrollLeft,arguments[0].top===void 0?~~arguments[1]+this.scrollTop:~~arguments[0].top+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},n.prototype.scrollIntoView=function(){if(l(arguments[0])===!0){r.scrollIntoView.call(this,arguments[0]===void 0||arguments[0]);return}let n=p(this),i=n.getBoundingClientRect(),a=this.getBoundingClientRect();n===t.body?e.scrollBy({left:a.left,top:a.top,behavior:`smooth`}):(h.call(this,n,n.scrollLeft+a.left-i.left,n.scrollTop+a.top-i.top),e.getComputedStyle(n).position!==`fixed`&&e.scrollBy({left:i.left,top:i.top,behavior:`smooth`}))}}var fl=class{constructor(e=[],t){A(this,`timeOffset`,0),A(this,`speed`),A(this,`actions`),A(this,`raf`,null),A(this,`lastTimestamp`),this.actions=e,this.speed=t.speed}addAction(e){let t=this.raf===!0;if(!this.actions.length||this.actions[this.actions.length-1].delay<=e.delay)this.actions.push(e);else{let t=this.findActionIndex(e);this.actions.splice(t,0,e)}t&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}updateLiveTime(){this.raf===!0&&this.rafCheck()}rafCheck(){let e=performance.now();for(this.timeOffset+=(e-this.lastTimestamp)*this.speed,this.lastTimestamp=e;this.actions.length;){let e=this.actions[0];if(this.timeOffset>=e.delay)this.actions.shift(),e.doAction();else break}this.raf=this.actions.length>0?requestAnimationFrame(this.rafCheck.bind(this)):!0}clear(){this.raf&&=(this.raf!==!0&&cancelAnimationFrame(this.raf),null),this.actions.length=0}setSpeed(e){this.speed=e}isActive(){return this.raf!==null}findActionIndex(e){let t=0,n=this.actions.length-1;for(;t<=n;){let r=Math.floor((t+n)/2);if(this.actions[r].delay<e.delay)t=r+1;else if(this.actions[r].delay>e.delay)n=r-1;else return r+1}return t}};function pl(e,t){if(e.type===B.IncrementalSnapshot&&e.data.source===V.MouseMove&&e.data.positions&&e.data.positions.length){let n=e.data.positions[0].timeOffset,r=e.timestamp+n;return e.delay=r-t,r-t}return e.delay=e.timestamp-t,e.delay}function ml(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-->0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}var hl;(function(e){e[e.NotStarted=0]=`NotStarted`,e[e.Running=1]=`Running`,e[e.Stopped=2]=`Stopped`})(hl||={});var gl={type:`xstate.init`};function G(e){return e===void 0?[]:[].concat(e)}function _l(e){return{type:`xstate.assign`,assignment:e}}function vl(e,t){return typeof(e=typeof e==`string`&&t&&t[e]?t[e]:e)==`string`?{type:e}:typeof e==`function`?{type:e.name,exec:e}:e}function yl(e){return function(t){return e===t}}function bl(e){return typeof e==`string`?{type:e}:e}function xl(e,t){return{value:e,context:t,actions:[],changed:!1,matches:yl(e)}}function Sl(e,t,n){var r=t,i=!1;return[e.filter(function(e){if(e.type===`xstate.assign`){i=!0;var t=Object.assign({},r);return typeof e.assignment==`function`?t=e.assignment(r,n):Object.keys(e.assignment).forEach(function(i){t[i]=typeof e.assignment[i]==`function`?e.assignment[i](r,n):e.assignment[i]}),r=t,!1}return!0}),r,i]}function Cl(e,t){t===void 0&&(t={});var n=ml(Sl(G(e.states[e.initial].entry).map(function(e){return vl(e,t.actions)}),e.context,gl),2),r=n[0],i=n[1],a={config:e,_options:t,initialState:{value:e.initial,actions:r,context:i,matches:yl(e.initial)},transition:function(t,n){var r,i,o=typeof t==`string`?{value:t,context:e.context}:t,s=o.value,c=o.context,l=bl(n),u=e.states[s];if(u.on){var d=G(u.on[l.type]);try{for(var f=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}(d),p=f.next();!p.done;p=f.next()){var m=p.value;if(m===void 0)return xl(s,c);var h=typeof m==`string`?{target:m}:m,g=h.target,_=h.actions,v=_===void 0?[]:_,y=h.cond,b=y===void 0?function(){return!0}:y,x=g===void 0,S=g??s,C=e.states[S];if(b(c,l)){var ee=ml(Sl((x?G(v):[].concat(u.exit,v,C.entry).filter(function(e){return e})).map(function(e){return vl(e,a._options.actions)}),c,l),3),w=ee[0],te=ee[1],T=ee[2],ne=g??s;return{value:ne,context:te,actions:w,changed:g!==s||w.length>0||T,matches:yl(ne)}}}}catch(e){r={error:e}}finally{try{p&&!p.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}}return xl(s,c)}};return a}var wl=function(e,t){return e.actions.forEach(function(n){var r=n.exec;return r&&r(e.context,t)})};function Tl(e){var t=e.initialState,n=hl.NotStarted,r=new Set,i={_machine:e,send:function(i){n===hl.Running&&(t=e.transition(t,i),wl(t,bl(i)),r.forEach(function(e){return e(t)}))},subscribe:function(e){return r.add(e),e(t),{unsubscribe:function(){return r.delete(e)}}},start:function(r){if(r){var a=typeof r==`object`?r:{context:e.config.context,value:r};t={value:a.value,actions:[],context:a.context,matches:yl(a.value)}}return n=hl.Running,wl(t,gl),i},stop:function(){return n=hl.Stopped,r.clear(),i},get state(){return t},get status(){return n}};return i}function El(e,t){for(let n=e.length-1;n>=0;n--){let r=e[n];if(r.type===B.Meta&&r.timestamp<=t)return e.slice(n)}return e}function Dl(e,{getCastFn:t,applyEventsSynchronously:n,emitter:r}){return Tl(Cl({id:`player`,context:e,initial:`paused`,states:{playing:{on:{PAUSE:{target:`paused`,actions:[`pause`]},CAST_EVENT:{target:`playing`,actions:`castEvent`},END:{target:`paused`,actions:[`resetLastPlayedEvent`,`pause`]},ADD_EVENT:{target:`playing`,actions:[`addEvent`]}}},paused:{on:{PLAY:{target:`playing`,actions:[`recordTimeOffset`,`play`]},CAST_EVENT:{target:`paused`,actions:`castEvent`},TO_LIVE:{target:`live`,actions:[`startLive`]},ADD_EVENT:{target:`paused`,actions:[`addEvent`]}}},live:{on:{ADD_EVENT:{target:`live`,actions:[`addEvent`]},CAST_EVENT:{target:`live`,actions:[`castEvent`]}}}}},{actions:{castEvent:_l({lastPlayedEvent:(e,t)=>t.type===`CAST_EVENT`?t.payload.event:e.lastPlayedEvent}),recordTimeOffset:_l((e,t)=>{let n=e.timeOffset;return`payload`in t&&`timeOffset`in t.payload&&(n=t.payload.timeOffset),{...e,timeOffset:n,baselineTime:e.events[0].timestamp+n}}),play(e){let{timer:i,events:a,baselineTime:o,lastPlayedEvent:s}=e;i.clear();for(let e of a)pl(e,o);let c=El(a,o),l=s?.timestamp;s?.type===B.IncrementalSnapshot&&s.data.source===V.MouseMove&&(l=s.timestamp+s.data.positions[0]?.timeOffset),o<(l||0)&&r.emit(U.PlayBack);let u=[];for(let e of c)if(!(l&&l<o&&(e.timestamp<=l||e===s))){if(e.timestamp<o)u.push(e);else{let n=t(e,!1);i.addAction({doAction:()=>{n()},delay:e.delay})}}n(u),r.emit(U.Flush),i.start()},pause(e){e.timer.clear()},resetLastPlayedEvent:_l(e=>({...e,lastPlayedEvent:null})),startLive:_l({baselineTime:(e,t)=>(e.timer.start(),t.type===`TO_LIVE`&&t.payload.baselineTime?t.payload.baselineTime:Date.now())}),addEvent:_l((e,n)=>{let{baselineTime:r,timer:i,events:a}=e;if(n.type===`ADD_EVENT`){let{event:e}=n.payload;pl(e,r);let o=a.length-1;if(!a[o]||a[o].timestamp<=e.timestamp)a.push(e);else{let t=-1,n=0;for(;n<=o;){let t=Math.floor((n+o)/2);a[t].timestamp<=e.timestamp?n=t+1:o=t-1}t===-1&&(t=n),a.splice(t,0,e)}let s=e.timestamp<r,c=t(e,s);s?c():i.isActive()&&i.addAction({doAction:()=>{c()},delay:e.delay})}return{...e,events:a}})}}))}function Ol(e){return Tl(Cl({id:`speed`,context:e,initial:`normal`,states:{normal:{on:{FAST_FORWARD:{target:`skipping`,actions:[`recordSpeed`,`setSpeed`]},SET_SPEED:{target:`normal`,actions:[`setSpeed`]}}},skipping:{on:{BACK_TO_NORMAL:{target:`normal`,actions:[`restoreSpeed`]},SET_SPEED:{target:`normal`,actions:[`setSpeed`]}}}}},{actions:{setSpeed:(e,t)=>{`payload`in t&&e.timer.setSpeed(t.payload.speed)},recordSpeed:_l({normalSpeed:e=>e.timer.speed}),restoreSpeed:e=>{e.timer.setSpeed(e.normalSpeed)}}}))}var kl=e=>[`.${e} { background: currentColor }`,`noscript { display: none !important; }`],Al=new Map;function jl(e,t){let n=Al.get(e);return n||(n=new Map,Al.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}function Ml(e,t,n){return async r=>{if(r&&typeof r==`object`&&`rr_type`in r){if(n&&(n.isUnchanged=!1),r.rr_type===`ImageBitmap`&&`args`in r){let i=await Ml(e,t,n)(r.args);return await createImageBitmap.apply(null,i)}if(`index`in r){if(n||t===null)return r;let{rr_type:e,index:i}=r;return jl(t,e)[i]}if(`args`in r){let{rr_type:i,args:a}=r,o=window[i];return new o(...await Promise.all(a.map(Ml(e,t,n))))}if(`base64`in r)return Bc(r.base64);if(`src`in r){let t=e.get(r.src);if(t)return t;{let t=new Image;return t.src=r.src,e.set(r.src,t),t}}if(`data`in r&&r.rr_type===`Blob`){let i=await Promise.all(r.data.map(Ml(e,t,n)));return new Blob(i,{type:r.type})}}else if(Array.isArray(r))return await Promise.all(r.map(Ml(e,t,n)));return r}}function Nl(e,t){try{return t===Qs.WebGL?e.getContext(`webgl`)||e.getContext(`experimental-webgl`):e.getContext(`webgl2`)}catch{return null}}var Pl=[`WebGLActiveInfo`,`WebGLBuffer`,`WebGLFramebuffer`,`WebGLProgram`,`WebGLRenderbuffer`,`WebGLShader`,`WebGLShaderPrecisionFormat`,`WebGLTexture`,`WebGLUniformLocation`,`WebGLVertexArrayObject`];function Fl(e,t){if(!t?.constructor)return;let{name:n}=t.constructor;if(!Pl.includes(n))return;let r=jl(e,n);r.includes(t)||r.push(t)}async function Il({mutation:e,target:t,type:n,imageMap:r,errorHandler:i}){try{let i=Nl(t,n);if(!i)return;if(e.setter){i[e.property]=e.args[0];return}let a=i[e.property],o=await Promise.all(e.args.map(Ml(r,i)));Fl(i,a.apply(i,o))}catch(t){i(e,t)}}async function Ll({event:e,mutations:t,target:n,imageMap:r,errorHandler:i}){let a=n.getContext(`2d`);if(!a){i(t[0],Error(`Canvas context is null`));return}let o=t.map(async e=>Promise.all(e.args.map(Ml(r,a))));(await Promise.all(o)).forEach((n,o)=>{let s=t[o];try{if(s.setter){a[s.property]=s.args[0];return}let t=a[s.property];s.property===`drawImage`&&typeof s.args[0]==`string`?(r.get(e),t.apply(a,s.args)):t.apply(a,n)}catch(e){i(s,e)}})}async function Rl({event:e,mutation:t,target:n,imageMap:r,canvasEventMap:i,errorHandler:a}){try{let o=i.get(e)||t,s=`commands`in o?o.commands:[o];if([Qs.WebGL,Qs.WebGL2].includes(t.type)){for(let e=0;e<s.length;e++){let i=s[e];await Il({mutation:i,type:t.type,target:n,imageMap:r,errorHandler:a})}return}await Ll({event:e,mutations:s,target:n,imageMap:r,errorHandler:a})}catch(e){a(t,e)}}var zl=class{constructor(e){A(this,`mediaMap`,new Map),A(this,`warn`),A(this,`service`),A(this,`speedService`),A(this,`emitter`),A(this,`getCurrentTime`),A(this,`metadataCallbackMap`,new Map),this.warn=e.warn,this.service=e.service,this.speedService=e.speedService,this.emitter=e.emitter,this.getCurrentTime=e.getCurrentTime,this.emitter.on(U.Start,this.start.bind(this)),this.emitter.on(U.SkipStart,this.start.bind(this)),this.emitter.on(U.Pause,this.pause.bind(this)),this.emitter.on(U.Finish,this.pause.bind(this)),this.speedService.subscribe(()=>{this.syncAllMediaElements()})}syncAllMediaElements(e={pause:!1}){this.mediaMap.forEach((t,n)=>{this.syncTargetWithState(n),e.pause&&n.pause()})}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:e,target:t,mediaState:n}){if(n.isPlaying){let r=(e-n.lastInteractionTimeOffset)/1e3*n.playbackRate,i=`duration`in t&&t.duration;if(Number.isNaN(i)){this.waitForMetadata(t);return}let a=n.currentTimeAtLastInteraction+r;t.loop&&i!==!1&&(a%=i),t.currentTime=a}else t.pause(),t.currentTime=n.currentTimeAtLastInteraction}waitForMetadata(e){if(this.metadataCallbackMap.has(e)||!(`addEventListener`in e))return;let t=()=>{this.metadataCallbackMap.delete(e);let t=this.mediaMap.get(e);t&&this.seekTo({time:this.getCurrentTime(),target:e,mediaState:t})};this.metadataCallbackMap.set(e,t),e.addEventListener(`loadedmetadata`,t,{once:!0})}getMediaStateFromMutation({target:e,timeOffset:t,mutation:n}){let r=this.mediaMap.get(e),{type:i,playbackRate:a,currentTime:o,muted:s,volume:c,loop:l}=n;return{isPlaying:i===$s.Play||i!==$s.Pause&&(r?.isPlaying||e.getAttribute(`autoplay`)!==null),currentTimeAtLastInteraction:o??r?.currentTimeAtLastInteraction??0,lastInteractionTimeOffset:t,playbackRate:a??r?.playbackRate??1,volume:c??r?.volume??1,muted:s??r?.muted??e.getAttribute(`muted`)===null,loop:l??r?.loop??e.getAttribute(`loop`)===null}}syncTargetWithState(e){let t=this.mediaMap.get(e);if(!t)return;let{muted:n,loop:r,volume:i,isPlaying:a}=t,o=this.service.state.matches(`paused`),s=t.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:e,mediaState:t}),e.volume!==i&&(e.volume=i),e.muted=n,e.loop=r,e.playbackRate!==s&&(e.playbackRate=s),a&&!o?e.play():e.pause()}catch(e){this.warn(`Failed to replay media interactions: ${e.message||e}`)}}addMediaElements(e,t,n){if(![`AUDIO`,`VIDEO`].includes(e.nodeName))return;let r=e,i=n.getMeta(r);if(!i||!(`attributes`in i))return;let a=this.service.state.matches(`paused`),o=i.attributes,s=!1;s=o.rr_mediaState?o.rr_mediaState===`played`:r.getAttribute(`autoplay`)!==null,s&&a&&r.pause();let c=1;typeof o.rr_mediaPlaybackRate==`number`&&(c=o.rr_mediaPlaybackRate);let l=!1;l=typeof o.rr_mediaMuted==`boolean`?o.rr_mediaMuted:r.getAttribute(`muted`)!==null;let u=!1;u=typeof o.rr_mediaLoop==`boolean`?o.rr_mediaLoop:r.getAttribute(`loop`)!==null;let d=1;typeof o.rr_mediaVolume==`number`&&(d=o.rr_mediaVolume);let f=0;typeof o.rr_mediaCurrentTime==`number`&&(f=o.rr_mediaCurrentTime),this.mediaMap.set(r,{isPlaying:s,currentTimeAtLastInteraction:f,lastInteractionTimeOffset:t,playbackRate:c,volume:d,muted:l,loop:u}),this.syncTargetWithState(r)}mediaMutation({target:e,timeOffset:t,mutation:n}){this.mediaMap.set(e,this.getMediaStateFromMutation({target:e,timeOffset:t,mutation:n})),this.syncTargetWithState(e)}isSupportedMediaElement(e){return[`AUDIO`,`VIDEO`].includes(e.nodeName)}reset(){this.mediaMap.clear()}};function Bl(e,t){if(e.nodeName!==`DIALOG`||e instanceof oo)return;let n=e,r=n.open,i=r&&n.matches(`dialog:modal`),a=n.getAttribute(`rr_open_mode`),o=typeof t?.attributes.open==`string`||typeof n.getAttribute(`open`)==`string`,s=a===`modal`;if(!r||i&&a===`non-modal`||!i&&s){if(!n.isConnected){console.warn(`dialog is not attached to the dom`,n);return}r&&n.close(),o&&(s?n.showModal():n.show())}}function Vl(e,t){if(e.nodeName!==`DIALOG`||e instanceof oo)return;let n=e;if(!n.isConnected){console.warn(`dialog is not attached to the dom`,n);return}t.attributes.open===null&&(n.removeAttribute(`open`),n.removeAttribute(`rr_open_mode`))}var Hl=5e3,Ul=ul,Wl=`[replayer]`,Gl={duration:500,lineCap:`round`,lineWidth:3,strokeStyle:`red`};function Kl(e){return e.type==B.IncrementalSnapshot&&(e.data.source==V.TouchMove||e.data.source==V.MouseInteraction&&e.data.type==H.TouchStart)}var ql=class{constructor(e,t){if(A(this,`wrapper`),A(this,`iframe`),A(this,`UNSAFE_replayCanvas`,!1),A(this,`service`),A(this,`speedService`),A(this,`config`),A(this,`usingVirtualDom`,!1),A(this,`virtualDom`,new Mo),A(this,`mouse`),A(this,`mouseTail`,null),A(this,`tailPositions`,[]),A(this,`emitter`,Ul()),A(this,`nextUserInteractionEvent`),A(this,`legacy_missingNodeRetryMap`,{}),A(this,`cache`,Xr()),A(this,`imageMap`,new Map),A(this,`canvasEventMap`,new Map),A(this,`mirror`,ft()),A(this,`styleMirror`,new Ks),A(this,`mediaManager`),A(this,`firstFullSnapshot`,null),A(this,`newDocumentQueue`,[]),A(this,`mousePos`,null),A(this,`touchActive`,null),A(this,`lastMouseDownEvent`,null),A(this,`lastHoveredRootNode`),A(this,`lastSelectionData`,null),A(this,`constructedStyleMutations`,[]),A(this,`adoptedStyleSheets`,[]),A(this,`handleResize`,e=>{this.iframe.style.display=`inherit`;for(let t of[this.mouseTail,this.iframe])t&&(t.setAttribute(`width`,String(e.width)),t.setAttribute(`height`,String(e.height)))}),A(this,`applyEventsSynchronously`,e=>{for(let t of e){switch(t.type){case B.DomContentLoaded:case B.Load:continue;case B.FullSnapshot:case B.Meta:case B.Plugin:case B.IncrementalSnapshot:}this.getCastFn(t,!0)()}}),A(this,`getCastFn`,(e,t=!1)=>{let n;switch(e.type){case B.DomContentLoaded:case B.Load:break;case B.Custom:n=()=>{this.emitter.emit(U.CustomEvent,e)};break;case B.Meta:n=()=>this.emitter.emit(U.Resize,{width:e.data.width,height:e.data.height});break;case B.FullSnapshot:n=()=>{var n;if(this.firstFullSnapshot){if(this.firstFullSnapshot===e){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(e,t),(n=this.iframe.contentWindow)==null||n.scrollTo(e.data.initialOffset)};break;case B.IncrementalSnapshot:n=()=>{if(this.applyIncremental(e,t),!t&&(e===this.nextUserInteractionEvent&&(this.nextUserInteractionEvent=null,this.backToNormal()),this.config.skipInactive&&!this.nextUserInteractionEvent)){for(let t of this.service.state.context.events)if(!(t.timestamp<=e.timestamp)&&this.isUserInteraction(t)){t.delay-e.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=t);break}if(this.nextUserInteractionEvent){let t=this.nextUserInteractionEvent.delay-e.delay,n={speed:Math.min(Math.round(t/Hl),this.config.maxSpeed)};this.speedService.send({type:`FAST_FORWARD`,payload:n}),this.emitter.emit(U.SkipStart,n)}}}}return()=>{n&&n();for(let n of this.config.plugins||[])n.handler&&n.handler(e,t,{replayer:this});this.service.send({type:`CAST_EVENT`,payload:{event:e}});let r=this.service.state.context.events.length-1;if(!this.config.liveMode&&e===this.service.state.context.events[r]){let t=()=>{r<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send(`END`),this.emitter.emit(U.Finish))},n=50;e.type===B.IncrementalSnapshot&&e.data.source===V.MouseMove&&e.data.positions.length&&(n+=Math.max(0,-e.data.positions[0].timeOffset)),setTimeout(t,n)}this.emitter.emit(U.EventCast,e)}}),!t?.liveMode&&e.length<2)throw Error(`Replayer need at least 2 events.`);let n={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,inactivePeriodThreshold:1e4,showWarning:!0,showDebug:!1,blockClass:`rr-block`,liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:Gl,useVirtualDom:!0,logger:console};this.config=Object.assign({},n,t),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(U.Resize,this.handleResize),this.setupDom();for(let e of this.config.plugins||[])e.getMirror&&e.getMirror({nodeMirror:this.mirror});this.emitter.on(U.Flush,()=>{if(this.usingVirtualDom){let e={mirror:this.mirror,applyCanvas:(e,t,n)=>{Rl({event:e,mutation:t,target:n,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(e,t)=>{e.source===V.StyleSheetRule?this.applyStyleSheetRule(e,t):e.source===V.StyleDeclaration&&this.applyStyleDeclaration(e,t)},afterAppend:(e,t)=>{for(let n of this.config.plugins||[])n.onBuild&&n.onBuild(e,{id:t,replayer:this})}};if(this.iframe.contentDocument)try{wo(this.iframe.contentDocument,this.virtualDom,e,this.virtualDom.mirror)}catch(e){this.warn(e)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(let t in this.legacy_missingNodeRetryMap)try{let n=this.legacy_missingNodeRetryMap[t],r=ko(n.node,this.mirror,this.virtualDom.mirror);wo(r,n.node,e,this.virtualDom.mirror),n.node=r}catch(e){this.warn(e)}this.constructedStyleMutations.forEach(e=>{this.applyStyleSheetMutation(e)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(e=>{this.applyAdoptedStyleSheet(e)}),this.adoptedStyleSheets=[]}if(this.mousePos&&=(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),null),this.touchActive===!0?this.mouse.classList.add(`touch-active`):this.touchActive===!1&&this.mouse.classList.remove(`touch-active`),this.touchActive=null,this.lastMouseDownEvent){let[e,t]=this.lastMouseDownEvent;e.dispatchEvent(t)}this.lastMouseDownEvent=null,this.lastSelectionData&&=(this.applySelection(this.lastSelectionData),null)}),this.emitter.on(U.PlayBack,()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()});let r=new fl([],{speed:this.config.speed});this.service=Dl({events:e.map(e=>t&&t.unpackFn?t.unpackFn(e):e).sort((e,t)=>e.timestamp-t.timestamp),timer:r,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(e=>{this.emitter.emit(U.StateChange,{player:e})}),this.speedService=Ol({normalSpeed:-1,timer:r}),this.speedService.start(),this.speedService.subscribe(e=>{this.emitter.emit(U.StateChange,{speed:e})}),this.mediaManager=new zl({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});let i=this.service.state.context.events.find(e=>e.type===B.Meta),a=this.service.state.context.events.find(e=>e.type===B.FullSnapshot);if(i){let{width:e,height:t}=i.data;setTimeout(()=>{this.emitter.emit(U.Resize,{width:e,height:t})},0)}a&&setTimeout(()=>{var e;this.firstFullSnapshot||(this.firstFullSnapshot=a,this.rebuildFullSnapshot(a),(e=this.iframe.contentWindow)==null||e.scrollTo(a.data.initialOffset))},1),this.service.state.context.events.find(Kl)&&this.mouse.classList.add(`touch-device`)}get timer(){return this.service.state.context.timer}on(e,t){return this.emitter.on(e,t),this}off(e,t){return this.emitter.off(e,t),this}setConfig(e){Object.keys(e).forEach(t=>{e[t],this.config[t]=e[t]}),this.config.skipInactive||this.backToNormal(),e.speed!==void 0&&this.speedService.send({type:`SET_SPEED`,payload:{speed:e.speed}}),e.mouseTail!==void 0&&(e.mouseTail===!1?this.mouseTail&&(this.mouseTail.style.display=`none`):(this.mouseTail||(this.mouseTail=document.createElement(`canvas`),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add(`replayer-mouse-tail`),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display=`inherit`))}getMetaData(){let e=this.service.state.context.events[0],t=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:e.timestamp,endTime:t.timestamp,totalTime:t.timestamp-e.timestamp}}getCurrentTime(){return this.config.liveMode&&this.timer.updateLiveTime(),this.timer.timeOffset+this.getTimeOffset()}getTimeOffset(){let{baselineTime:e,events:t}=this.service.state.context;return e-t[0].timestamp}getMirror(){return this.mirror}play(e=0){var t;this.service.state.matches(`paused`)||this.service.send({type:`PAUSE`}),this.service.send({type:`PLAY`,payload:{timeOffset:e}}),(t=this.iframe.contentDocument?.getElementsByTagName(`html`)[0])==null||t.classList.remove(`rrweb-paused`),this.emitter.emit(U.Start)}pause(e){var t;e===void 0&&this.service.state.matches(`playing`)&&this.service.send({type:`PAUSE`}),typeof e==`number`&&(this.play(e),this.service.send({type:`PAUSE`})),(t=this.iframe.contentDocument?.getElementsByTagName(`html`)[0])==null||t.classList.add(`rrweb-paused`),this.emitter.emit(U.Pause)}resume(e=0){this.warn(`The 'resume' was deprecated in 1.0. Please use 'play' method which has the same interface.`),this.play(e),this.emitter.emit(U.Resume)}destroy(){this.pause(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.config.root.removeChild(this.wrapper),this.emitter.emit(U.Destroy)}startLive(e){this.service.send({type:`TO_LIVE`,payload:{baselineTime:e}})}addEvent(e){let t=this.config.unpackFn?this.config.unpackFn(e):e;Kl(t)&&this.mouse.classList.add(`touch-device`),Promise.resolve().then(()=>this.service.send({type:`ADD_EVENT`,payload:{event:t}}))}enableInteract(){this.iframe.setAttribute(`scrolling`,`auto`),this.iframe.style.pointerEvents=`auto`}disableInteract(){this.iframe.setAttribute(`scrolling`,`no`),this.iframe.style.pointerEvents=`none`}resetCache(){this.cache=Xr()}setupDom(){this.wrapper=document.createElement(`div`),this.wrapper.classList.add(`replayer-wrapper`),this.config.root.appendChild(this.wrapper),this.mouse=document.createElement(`div`),this.mouse.classList.add(`replayer-mouse`),this.wrapper.appendChild(this.mouse),this.config.mouseTail!==!1&&(this.mouseTail=document.createElement(`canvas`),this.mouseTail.classList.add(`replayer-mouse-tail`),this.mouseTail.style.display=`inherit`,this.wrapper.appendChild(this.mouseTail)),this.config.UNSAFE_replayCanvas?(this.iframe=document.createElement(`iframe`),this.iframe.setAttribute(`sandbox`,`allow-same-origin allow-scripts`),this.wrapper.appendChild(this.iframe),this.UNSAFE_replayCanvas=!0):(this.iframe=li({root:this.wrapper}),this.UNSAFE_replayCanvas=!1),this.iframe.style.display=`none`,this.disableInteract(),this.iframe.contentWindow&&this.iframe.contentDocument&&(dl(this.iframe.contentWindow,this.iframe.contentDocument),Is(this.iframe.contentWindow))}rebuildFullSnapshot(e,t=!1){if(!this.iframe.contentDocument)return this.warn(`Looks like your replayer has been destroyed.`);Object.keys(this.legacy_missingNodeRetryMap).length&&this.warn(`Found unresolved missing node map`,this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};let n=[],r=new Set,i=(t,i)=>{if(t.nodeName===`DIALOG`&&r.add(t),this.collectIframeAndAttachDocument(n,t),this.mediaManager.isSupportedMediaElement(t)){let{events:n}=this.service.state.context;this.mediaManager.addMediaElements(t,e.timestamp-n[0].timestamp,this.mirror)}for(let e of this.config.plugins||[])e.onBuild&&e.onBuild(t,{id:i,replayer:this})};this.usingVirtualDom&&=(this.virtualDom.destroyTree(),!1),this.mirror.reset(),ci(e.data.node,{doc:this.iframe.contentDocument,afterAppend:i,cache:this.cache,mirror:this.mirror,UNSAFE_allowUnprotectedRebuild:this.UNSAFE_replayCanvas}),i(this.iframe.contentDocument,e.data.node.id);for(let{mutationInQueue:e,builtNode:t}of n)this.attachDocumentToIframe(e,t),this.newDocumentQueue=this.newDocumentQueue.filter(t=>t!==e);let{documentElement:a,head:o}=this.iframe.contentDocument;this.insertStyleRules(a,o),r.forEach(e=>Bl(e)),this.service.state.matches(`playing`)||this.iframe.contentDocument.getElementsByTagName(`html`)[0].classList.add(`rrweb-paused`),this.emitter.emit(U.FullsnapshotRebuilded,e),t||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(e,t){var n;let r=kl(this.config.blockClass).concat(this.config.insertStyleRules);if(this.config.pauseAnimation&&r.push(`html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }`),r.length){if(this.usingVirtualDom){let n=this.virtualDom.createElement(`style`);this.virtualDom.mirror.add(n,R(n,this.virtualDom.unserializedId)),e.insertBefore(n,t),n.rules.push({source:V.StyleSheetRule,adds:r.map((e,t)=>({rule:e,index:t}))})}else{let i=document.createElement(`style`);e.insertBefore(i,t);for(let e=0;e<r.length;e++)(n=i.sheet)==null||n.insertRule(r[e],e)}}}attachDocumentToIframe(e,t){let n=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,r=[],i=new Set,a=(e,a)=>{e.nodeName===`DIALOG`&&i.add(e),this.collectIframeAndAttachDocument(r,e);let o=n.getMeta(e);if(o?.type===ec.Element&&o?.tagName.toUpperCase()===`HTML`){let{documentElement:e,head:n}=t.contentDocument;this.insertStyleRules(e,n)}if(!this.usingVirtualDom)for(let t of this.config.plugins||[])t.onBuild&&t.onBuild(e,{id:a,replayer:this})};ai(e.node,{doc:t.contentDocument,mirror:n,hackCss:!0,skipChild:!1,afterAppend:a,cache:this.cache}),a(t.contentDocument,e.node.id);for(let{mutationInQueue:e,builtNode:t}of r)this.attachDocumentToIframe(e,t),this.newDocumentQueue=this.newDocumentQueue.filter(t=>t!==e);i.forEach(e=>Bl(e))}collectIframeAndAttachDocument(e,t){if(zs(t,this.mirror)){let n=this.newDocumentQueue.find(e=>e.parentId===this.mirror.getId(t));n&&e.push({mutationInQueue:n,builtNode:t})}}waitForStylesheetLoad(){let e=this.iframe.contentDocument?.head;if(e){let t=new Set,n,r=this.service.state,i=()=>{r=this.service.state};this.emitter.on(U.Start,i),this.emitter.on(U.Pause,i);let a=()=>{this.emitter.off(U.Start,i),this.emitter.off(U.Pause,i)};e.querySelectorAll(`link[rel="stylesheet"]`).forEach(e=>{e.sheet||(t.add(e),e.addEventListener(`load`,()=>{t.delete(e),t.size===0&&n!==-1&&(r.matches(`playing`)&&this.play(this.getCurrentTime()),this.emitter.emit(U.LoadStylesheetEnd),n&&clearTimeout(n),a())}))}),t.size>0&&(this.service.send({type:`PAUSE`}),this.emitter.emit(U.LoadStylesheetStart),n=setTimeout(()=>{r.matches(`playing`)&&this.play(this.getCurrentTime()),n=-1,a()},this.config.loadTimeout))}}async preloadAllImages(){let e=[];for(let t of this.service.state.context.events)t.type===B.IncrementalSnapshot&&t.data.source===V.CanvasMutation&&(e.push(this.deserializeAndPreloadCanvasEvents(t.data,t)),(`commands`in t.data?t.data.commands:[t.data]).forEach(e=>{this.preloadImages(e,t)}));return Promise.all(e)}preloadImages(e,t){if(e.property===`drawImage`&&typeof e.args[0]==`string`&&!this.imageMap.has(t)){let e=document.createElement(`canvas`),t=e.getContext(`2d`),n=t?.createImageData(e.width,e.height);t?.putImageData(n,0,0)}}async deserializeAndPreloadCanvasEvents(e,t){if(!this.canvasEventMap.has(t)){let n={isUnchanged:!0};if(`commands`in e){let r=await Promise.all(e.commands.map(async e=>{let t=await Promise.all(e.args.map(Ml(this.imageMap,null,n)));return{...e,args:t}}));n.isUnchanged===!1&&this.canvasEventMap.set(t,{...e,commands:r})}else{let r=await Promise.all(e.args.map(Ml(this.imageMap,null,n)));n.isUnchanged===!1&&this.canvasEventMap.set(t,{...e,args:r})}}}applyIncremental(e,t){var n,r;let{data:i}=e;switch(i.source){case V.Mutation:try{this.applyMutation(i,t)}catch(e){this.warn(`Exception in mutation ${e.message||e}`,i)}break;case V.Drag:case V.TouchMove:case V.MouseMove:if(t){let e=i.positions[i.positions.length-1];this.mousePos={x:e.x,y:e.y,id:e.id,debugData:i}}else i.positions.forEach(n=>{let r={doAction:()=>{this.moveAndHover(n.x,n.y,n.id,t,i)},delay:n.timeOffset+e.timestamp-this.service.state.context.baselineTime};this.timer.addAction(r)}),this.timer.addAction({doAction(){},delay:e.delay-i.positions[0]?.timeOffset});break;case V.MouseInteraction:{if(i.id===-1)break;let e=new Event(mt(H[i.type])),n=this.mirror.getNode(i.id);if(!n)return this.debugNodeNotFound(i,i.id);this.emitter.emit(U.MouseInteraction,{type:i.type,target:n});let{triggerFocus:r}=this.config;switch(i.type){case H.Blur:`blur`in n&&n.blur();break;case H.Focus:r&&n.focus&&n.focus({preventScroll:!0});break;case H.Click:case H.TouchStart:case H.TouchEnd:case H.MouseDown:case H.MouseUp:t?(i.type===H.TouchStart?this.touchActive=!0:i.type===H.TouchEnd&&(this.touchActive=!1),i.type===H.MouseDown?this.lastMouseDownEvent=[n,e]:i.type===H.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:i.x||0,y:i.y||0,id:i.id,debugData:i}):(i.type===H.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(i.x||0,i.y||0,i.id,t,i),i.type===H.Click?(this.mouse.classList.remove(`active`),this.mouse.offsetWidth,this.mouse.classList.add(`active`)):i.type===H.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add(`touch-active`)):i.type===H.TouchEnd?this.mouse.classList.remove(`touch-active`):n.dispatchEvent(e));break;case H.TouchCancel:t?this.touchActive=!1:this.mouse.classList.remove(`touch-active`);break;default:n.dispatchEvent(e)}break}case V.Scroll:if(i.id===-1)break;if(this.usingVirtualDom){let e=this.virtualDom.mirror.getNode(i.id);if(!e)return this.debugNodeNotFound(i,i.id);e.scrollData=i;break}this.applyScroll(i,t);break;case V.ViewportResize:this.emitter.emit(U.Resize,{width:i.width,height:i.height});break;case V.Input:if(i.id===-1)break;if(this.usingVirtualDom){let e=this.virtualDom.mirror.getNode(i.id);if(!e)return this.debugNodeNotFound(i,i.id);e.inputData=i;break}this.applyInput(i);break;case V.MediaInteraction:{let t=this.usingVirtualDom?this.virtualDom.mirror.getNode(i.id):this.mirror.getNode(i.id);if(!t)return this.debugNodeNotFound(i,i.id);let n=t,{events:r}=this.service.state.context;this.mediaManager.mediaMutation({target:n,timeOffset:e.timestamp-r[0].timestamp,mutation:i});break}case V.StyleSheetRule:case V.StyleDeclaration:this.usingVirtualDom?i.styleId?this.constructedStyleMutations.push(i):i.id&&((n=this.virtualDom.mirror.getNode(i.id))==null||n.rules.push(i)):this.applyStyleSheetMutation(i);break;case V.CanvasMutation:if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){let t=this.virtualDom.mirror.getNode(i.id);if(!t)return this.debugNodeNotFound(i,i.id);t.canvasMutations.push({event:e,mutation:i})}else{let t=this.mirror.getNode(i.id);if(!t)return this.debugNodeNotFound(i,i.id);Rl({event:e,mutation:i,target:t,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break;case V.Font:try{let e=new FontFace(i.family,i.buffer?new Uint8Array(JSON.parse(i.fontSource)):i.fontSource,i.descriptors);(r=this.iframe.contentDocument)==null||r.fonts.add(e)}catch(e){this.warn(e)}break;case V.Selection:if(t){this.lastSelectionData=i;break}this.applySelection(i);break;case V.AdoptedStyleSheet:this.usingVirtualDom?this.adoptedStyleSheets.push(i):this.applyAdoptedStyleSheet(i)}}applyMutation(e,t){if(this.config.useVirtualDom&&!this.usingVirtualDom&&t&&(this.usingVirtualDom=!0,Go(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(let e in this.legacy_missingNodeRetryMap)try{let t=this.legacy_missingNodeRetryMap[e],n=Wo(t.node,this.virtualDom,this.mirror);n&&(t.node=n)}catch(e){this.warn(e)}let n=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;e.removes=e.removes.filter(t=>n.getNode(t.id)?!0:(this.warnNodeNotFound(e,t.id),!1)),e.removes.forEach(t=>{let r=n.getNode(t.id);if(!r)return;let i=n.getNode(t.parentId);if(!i)return this.warnNodeNotFound(e,t.parentId);if(t.isShadow&&Hs(i)&&(i=i.shadowRoot),n.removeNodeFromMap(r),i)try{i.removeChild(r),this.usingVirtualDom&&r.nodeName===`#text`&&i.nodeName===`STYLE`&&i.rules?.length>0&&(i.rules=[])}catch(t){if(t instanceof DOMException)this.warn(`parent could not remove child in mutation`,i,r,e);else throw t}});let r={...this.legacy_missingNodeRetryMap},i=[],a=e=>{let t=null;return e.nextId&&(t=n.getNode(e.nextId)),e.nextId!==null&&e.nextId!==void 0&&e.nextId!==-1&&!t},o=e=>{if(!this.iframe.contentDocument)return this.warn(`Looks like your replayer has been destroyed.`);let t=n.getNode(e.parentId);if(!t)return e.node.type===ec.Document?this.newDocumentQueue.push(e):i.push(e);e.node.isShadow&&(Hs(t)||t.attachShadow({mode:`open`}),t=t.shadowRoot);let o=null,s=null;if(e.previousId&&(o=n.getNode(e.previousId)),e.nextId&&(s=n.getNode(e.nextId)),a(e))return i.push(e);if(e.node.rootId&&!n.getNode(e.node.rootId))return;let c=e.node.rootId?n.getNode(e.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(zs(t,n)){this.attachDocumentToIframe(e,t);return}let l=(e,t)=>{if(!this.usingVirtualDom){Bl(e);for(let n of this.config.plugins||[])n.onBuild&&n.onBuild(e,{id:t,replayer:this})}},u=ai(e.node,{doc:c,mirror:n,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:l});if(e.previousId===-1||e.nextId===-1){r[e.node.id]={node:u,mutation:e};return}let d=n.getMeta(t);if(d&&d.type===ec.Element&&e.node.type===ec.Text){let e=Array.isArray(t.childNodes)?t.childNodes:Array.from(t.childNodes);if(d.tagName===`textarea`)for(let n of e)n.nodeType===t.TEXT_NODE&&t.removeChild(n);else if(d.tagName===`style`&&e.length===1)for(let r of e)r.nodeType===t.TEXT_NODE&&!n.hasNode(r)&&(u.textContent=r.textContent,t.removeChild(r))}else if(d?.type===ec.Document){let n=t;e.node.type===ec.DocumentType&&n.childNodes[0]?.nodeType===Node.DOCUMENT_TYPE_NODE&&n.removeChild(n.childNodes[0]),u.nodeName===`HTML`&&n.documentElement&&n.removeChild(n.documentElement)}if(o&&o.nextSibling&&o.nextSibling.parentNode?t.insertBefore(u,o.nextSibling):s&&s.parentNode?t.contains(s)?t.insertBefore(u,s):t.insertBefore(u,null):t.appendChild(u),l(u,e.node.id),this.usingVirtualDom&&u.nodeName===`#text`&&t.nodeName===`STYLE`&&t.rules?.length>0&&(t.rules=[]),zs(u,this.mirror)){let e=this.mirror.getId(u),t=this.newDocumentQueue.find(t=>t.parentId===e);t&&(this.attachDocumentToIframe(t,u),this.newDocumentQueue=this.newDocumentQueue.filter(e=>e!==t))}(e.previousId||e.nextId)&&this.legacy_resolveMissingNode(r,t,u,e)};e.adds.forEach(e=>{o(e)});let s=Date.now();for(;i.length;){let e=Ls(i);if(i.length=0,Date.now()-s>500){this.warn(`Timeout in the loop, please check the resolve tree data:`,e);break}for(let t of e)n.getNode(t.value.parentId)?Rs(t,e=>{o(e)}):this.debug(`Drop resolve tree since there is no parent for the root node.`,t)}Object.keys(r).length&&Object.assign(this.legacy_missingNodeRetryMap,r),Gs(e.texts).forEach(t=>{let r=n.getNode(t.id);if(!r)return e.removes.find(e=>e.id===t.id)?void 0:this.warnNodeNotFound(e,t.id);let i=r.parentElement;if(r.textContent=t.value&&i&&i.tagName===`STYLE`?Yr(t.value,this.cache):t.value,this.usingVirtualDom){let e=r.parentNode;e?.rules?.length>0&&(e.rules=[])}}),e.attributes.forEach(t=>{let r=n.getNode(t.id);if(!r)return e.removes.find(e=>e.id===t.id)?void 0:this.warnNodeNotFound(e,t.id);for(let e in t.attributes)if(typeof e==`string`){let i=t.attributes[e];if(i===null)r.removeAttribute(e),e===`open`&&Vl(r,t);else if(typeof i==`string`)try{if(e===`_cssText`&&(r.nodeName===`LINK`||r.nodeName===`STYLE`))try{let e=n.getMeta(r),i=ai({...e,attributes:{...e.attributes,...t.attributes}},{doc:r.ownerDocument,mirror:n,skipChild:!0,hackCss:!0,cache:this.cache});Object.assign(e.attributes,t.attributes);let a=r.nextSibling,o=r.parentNode;if(i&&o){o.removeChild(r),o.insertBefore(i,a),n.replace(t.id,i);break}}catch{}if(e===`value`&&r.nodeName===`TEXTAREA`){let e=r;e.childNodes.forEach(t=>e.removeChild(t));let t=r.ownerDocument?.createTextNode(i);t&&e.appendChild(t)}else r.setAttribute(e,i);e===`rr_open_mode`&&r.nodeName===`DIALOG`&&Bl(r,t)}catch(e){this.warn(`An error occurred may due to the checkout feature.`,e)}else if(e===`style`){let e=i,t=r;for(let n in e)if(e[n]===!1)t.style.removeProperty(n);else if(e[n]instanceof Array){let r=e[n];t.style.setProperty(n,r[0],r[1])}else{let r=e[n];t.style.setProperty(n,r)}}}})}applyScroll(e,t){var n,r;let i=this.mirror.getNode(e.id);if(!i)return this.debugNodeNotFound(e,e.id);let a=this.mirror.getMeta(i);if(i===this.iframe.contentDocument)(n=this.iframe.contentWindow)==null||n.scrollTo({top:e.y,left:e.x,behavior:t?`auto`:`smooth`});else if(a?.type===ec.Document)(r=i.defaultView)==null||r.scrollTo({top:e.y,left:e.x,behavior:t?`auto`:`smooth`});else try{i.scrollTo({top:e.y,left:e.x,behavior:t?`auto`:`smooth`})}catch{}}applyInput(e){let t=this.mirror.getNode(e.id);if(!t)return this.debugNodeNotFound(e,e.id);try{t.checked=e.isChecked,t.value=e.text}catch{}}applySelection(e){try{let t=new Set,n=e.ranges.map(({start:e,startOffset:n,end:r,endOffset:i})=>{let a=this.mirror.getNode(e),o=this.mirror.getNode(r);if(!a||!o)return;let s=new Range;s.setStart(a,n),s.setEnd(o,i);let c=a.ownerDocument?.getSelection();return c&&t.add(c),{range:s,selection:c}});t.forEach(e=>e.removeAllRanges()),n.forEach(e=>e&&e.selection?.addRange(e.range))}catch{}}applyStyleSheetMutation(e){let t=null;e.styleId?t=this.styleMirror.getStyle(e.styleId):e.id&&(t=this.mirror.getNode(e.id)?.sheet||null),t&&(e.source===V.StyleSheetRule?this.applyStyleSheetRule(e,t):e.source===V.StyleDeclaration&&this.applyStyleDeclaration(e,t))}applyStyleSheetRule(e,t){var n,r,i,a;if((n=e.adds)==null||n.forEach(({rule:e,index:n})=>{try{if(Array.isArray(n)){let{positions:r,index:i}=Ws(n);Us(t.cssRules,r)?.insertRule(e,i)}else{let r=n===void 0?void 0:Math.min(n,t.cssRules.length);t?.insertRule(e,r)}}catch{}}),(r=e.removes)==null||r.forEach(({index:e})=>{try{if(Array.isArray(e)){let{positions:n,index:r}=Ws(e);Us(t.cssRules,n)?.deleteRule(r||0)}else t?.deleteRule(e)}catch{}}),typeof e.replace==`string`)try{(i=t.replace)==null||i.call(t,e.replace)}catch{}if(typeof e.replaceSync==`string`)try{(a=t.replaceSync)==null||a.call(t,e.replaceSync)}catch{}}applyStyleDeclaration(e,t){if(e.set){let n=Us(t.rules,e.index);n?.style&&n.style.setProperty(e.set.property,e.set.value,e.set.priority)}if(e.remove){let n=Us(t.rules,e.index);n?.style&&n.style.removeProperty(e.remove.property)}}applyAdoptedStyleSheet(e){var t;let n=this.mirror.getNode(e.id);if(!n)return;(t=e.styles)==null||t.forEach(e=>{let t=null,r=null;if(Hs(n)?r=n.ownerDocument?.defaultView||null:n.nodeName===`#document`&&(r=n.defaultView),r)try{t=new r.CSSStyleSheet,this.styleMirror.add(t,e.styleId),this.applyStyleSheetRule({source:V.StyleSheetRule,adds:e.rules},t)}catch{}});let r=0,i=(e,t)=>{let n=t.map(e=>this.styleMirror.getStyle(e)).filter(e=>e!==null);Hs(e)?e.shadowRoot.adoptedStyleSheets=n:e.nodeName===`#document`&&(e.adoptedStyleSheets=n),n.length!==t.length&&r<10&&(setTimeout(()=>i(e,t),0+100*r),r++)};i(n,e.styleIds)}legacy_resolveMissingNode(e,t,n,r){let{previousId:i,nextId:a}=r,o=i&&e[i],s=a&&e[a];if(o){let{node:r,mutation:i}=o;t.insertBefore(r,n),delete e[i.node.id],delete this.legacy_missingNodeRetryMap[i.node.id],(i.previousId||i.nextId)&&this.legacy_resolveMissingNode(e,t,r,i)}if(s){let{node:r,mutation:i}=s;t.insertBefore(r,n.nextSibling),delete e[i.node.id],delete this.legacy_missingNodeRetryMap[i.node.id],(i.previousId||i.nextId)&&this.legacy_resolveMissingNode(e,t,r,i)}}moveAndHover(e,t,n,r,i){let a=this.mirror.getNode(n);if(!a)return this.debugNodeNotFound(i,n);let o=Vs(a,this.iframe),s=e*o.absoluteScale+o.x,c=t*o.absoluteScale+o.y;this.mouse.style.left=`${s}px`,this.mouse.style.top=`${c}px`,r||this.drawMouseTail({x:s,y:c}),this.hoverElements(a)}drawMouseTail(e){if(!this.mouseTail)return;let{lineCap:t,lineWidth:n,strokeStyle:r,duration:i}=this.config.mouseTail===!0?Gl:Object.assign({},Gl,this.config.mouseTail),a=()=>{if(!this.mouseTail)return;let e=this.mouseTail.getContext(`2d`);e&&this.tailPositions.length&&(e.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),e.beginPath(),e.lineWidth=n,e.lineCap=t,e.strokeStyle=r,e.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach(t=>e.lineTo(t.x,t.y)),e.stroke())};this.tailPositions.push(e),a(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(t=>t!==e),a()},i/this.speedService.state.context.timer.speed)}hoverElements(e){var t;(t=this.lastHoveredRootNode||this.iframe.contentDocument)==null||t.querySelectorAll(`.\\:hover`).forEach(e=>{e.classList.remove(`:hover`)}),this.lastHoveredRootNode=e.getRootNode();let n=e;for(;n;)n.classList&&n.classList.add(`:hover`),n=n.parentElement}isUserInteraction(e){return e.type===B.IncrementalSnapshot&&e.data.source>V.Mutation&&e.data.source<=V.Input}backToNormal(){this.nextUserInteractionEvent=null,!this.speedService.state.matches(`normal`)&&(this.speedService.send({type:`BACK_TO_NORMAL`}),this.emitter.emit(U.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))}warnNodeNotFound(e,t){this.warn(`Node with id '${t}' not found. `,e)}warnCanvasMutationFailed(e,t){this.warn(`Has error on canvas update`,t,`canvas mutation:`,e)}debugNodeNotFound(e,t){this.debug(`Node with id '${t}' not found. `,e)}warn(...e){this.config.showWarning&&this.config.logger.warn(Wl,...e)}debug(...e){this.config.showDebug&&this.config.logger.log(Wl,...e)}},{addCustomEvent:Jl}=ll,{freezePage:Yl}=ll,{takeFullSnapshot:Xl}=ll,Zl=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Ql={MissingAllowOriginHeader:`CORS: the response has no Access-Control-Allow-Origin header`,AllowOriginMismatch:`CORS: Access-Control-Allow-Origin does not match this page's origin`,MultipleAllowOriginValues:`CORS: the response has more than one Access-Control-Allow-Origin value`,InvalidAllowOriginValue:`CORS: Access-Control-Allow-Origin has an invalid value`,WildcardOriginNotAllowed:`CORS: Access-Control-Allow-Origin is * but the request sends credentials`,InvalidAllowCredentials:`CORS: Access-Control-Allow-Credentials must be true for a request with credentials`,PreflightInvalidStatus:`CORS: the preflight request did not succeed (HTTP status not 2xx)`,PreflightMissingAllowOriginHeader:`CORS: the preflight response has no Access-Control-Allow-Origin header`,PreflightAllowOriginMismatch:`CORS: the preflight's Access-Control-Allow-Origin does not match this page's origin`,MethodDisallowedByPreflightResponse:`CORS: the preflight does not allow this method`,HeaderDisallowedByPreflightResponse:`CORS: the preflight does not allow this header`,PreflightDisallowedRedirect:`CORS: the preflight was redirected, which is not allowed`,DisallowedByMode:`CORS: the request mode does not allow cross-origin responses`,CorsDisabledScheme:`CORS: cross-origin requests are not supported for this URL scheme`},$l={"mixed-content":`Blocked: mixed content (an http:// request from an https:// page)`,csp:`Blocked by the page's Content Security Policy`,inspector:`Blocked by DevTools request blocking`,"subresource-filter":`Blocked by Chrome's ad filter`,"content-type":`Blocked: the response's Content-Type is not allowed here`,origin:`Blocked: the request's origin is not allowed`};function eu(e){let t=e.corsErrorStatus;if(t&&typeof t.corsError==`string`&&t.corsError){let e=Zl(Ql,t.corsError)?Ql[t.corsError]:`CORS error: ${t.corsError}`;return t.failedParameter?`${e} (${t.failedParameter})`:e}let n=e.blockedReason;return typeof n==`string`&&n?Zl($l,n)?$l[n]:n.startsWith(`corp-`)?`Blocked by the response's Cross-Origin-Resource-Policy header`:n.startsWith(`coep-`)?`Blocked by Cross-Origin-Embedder-Policy`:`Blocked by Chrome (${n})`:e.error||void 0}function tu(e){return(e.status??0)>=400||!!e.error||!!e.blockedReason||!!e.corsErrorStatus}function nu(e){return e.kind===`websocket`?e.error&&e.status!==101?`failed`:e.pending?`open`:String(e.status??101):e.pending?`pending`:e.corsErrorStatus?`CORS`:e.blockedReason?`blocked`:e.error?`failed`:e.status?String(e.status):e.kind===`beacon`?`sent`:`—`}function ru(e){return e.error||e.blockedReason||e.corsErrorStatus||(e.status??0)>=400?`bad`:e.pending?`pending`:(e.status??0)>=300?`redirect`:`ok`}function K(e){switch(e.kind){case`resource`:return e.initiator?`resource (${e.initiator})`:`resource`;case`navigation`:return e.navType?`document (${e.navType})`:`document`;default:return e.resourceType&&e.resourceType!==e.kind?`${e.kind} (${e.resourceType})`:e.kind}}function iu(e){let t=[];return e.cache&&t.push(`${e.cache} cache`),e.fromServiceWorker&&t.push(e.swSource?`service worker (${e.swSource})`:`service worker`),t.length?t.join(` · `):void 0}var au={worker:`worker`,shared_worker:`shared worker`,service_worker:`service worker`};function ou(e){let t=e.worker;if(!t||typeof t!=`object`)return;let n=Zl(au,t.type)?au[t.type]:String(t.type??`worker`);return t.url?`${n} · ${t.url}`:n}var su={SameSiteNoneInsecure:`SameSite=None requires Secure`,SecureOnly:`Secure cookie on an insecure connection`,SameSiteLax:`SameSite=Lax: not sent on cross-site requests`,SameSiteStrict:`SameSite=Strict: not sent on cross-site requests`,SameSiteUnspecifiedTreatedAsLax:`no SameSite attribute (treated as Lax)`,DomainMismatch:`domain does not match`,NotOnPath:`path does not match`,UserPreferences:`blocked by the user's cookie settings`,ThirdPartyPhaseout:`third-party cookies are blocked`,ThirdPartyBlockedInFirstPartySet:`third-party cookies are blocked`,SyntaxError:`invalid Set-Cookie syntax`,InvalidDomain:`invalid Domain attribute`,InvalidPrefix:`invalid __Secure-/__Host- prefix`,OverwriteSecure:`would overwrite a Secure cookie`,SchemeNotSupported:`URL scheme does not support cookies`};function cu(e){return Zl(su,e)?su[e]:e}function lu(e){let t=cu(e);return t===e?e:`${t} (${e})`}var uu=`[redacted]`;function du(e,t,n=`
|
|
140
|
+
`){if(!e||typeof e!=`object`)return;let r=t.toLowerCase(),i=[];for(let[t,n]of Object.entries(e))t.toLowerCase()===r&&typeof n==`string`&&i.push(n);return i.length?i.join(n):void 0}var fu=e=>e.includes(uu)&&e.replaceAll(uu,``).replace(/[\s;]/g,``)===``;function pu(e){let t=[];for(let n of e.split(`;`)){let e=n.trim();if(!e)continue;let r=e.indexOf(`=`);t.push(r<0?{name:``,value:e}:{name:e.slice(0,r).trim(),value:e.slice(r+1).trim()})}return t}function mu(e){let t=[];for(let n of e.split(`
|
|
141
|
+
`)){let e=n.trim();if(!e)continue;let r=e.indexOf(`;`),i=r<0?e:e.slice(0,r),a=i.indexOf(`=`),o=a<0?{name:``,value:i.trim()}:{name:i.slice(0,a).trim(),value:i.slice(a+1).trim()},s=r<0?``:e.slice(r+1).trim();s&&(o.attrs=s),t.push(o)}return t}function hu(e){return Array.isArray(e)?e.filter(e=>e&&typeof e.name==`string`).map(e=>({name:e.name,blocked:Array.isArray(e.reasons)?e.reasons.map(String):[],domain:e.domain,path:e.path})):[]}function gu(e){let t=du(e.reqHeaders,`cookie`,`; `),n=!!t&&fu(t),r=t&&!n?pu(t):[];return r.push(...hu(e.blockedCookies)),{rows:r,redacted:n}}function _u(e){let t=du(e.resHeaders,`set-cookie`,`
|
|
142
|
+
`),n=!!t&&fu(t),r=t&&!n?mu(t):[];for(let t of hu(e.blockedSetCookies)){let e=r.find(e=>!e.blocked&&e.name===t.name);e?Object.assign(e,{blocked:t.blocked,domain:t.domain,path:t.path}):r.push(t)}return{rows:r,redacted:n}}var vu=e=>typeof e==`number`&&Number.isFinite(e)&&e>=0;function yu(e){if(!e||typeof e!=`object`)return null;let t=vu(e.ssl)?e.ssl:void 0,n=vu(e.connect)?t===void 0?e.connect:Math.max(0,e.connect-t):void 0,r=[[`blocked`,`Queueing / stalled`,e.blocked],[`dns`,`DNS lookup`,e.dns],[`connect`,`Initial connection`,n],[`ssl`,`TLS`,t],[`send`,`Request sent`,e.send],[`wait`,`Waiting (TTFB)`,e.wait],[`receive`,`Content download`,e.receive]],i=[],a=0;for(let[e,t,n]of r)vu(n)&&(i.push({key:e,label:t,start:a,ms:n}),a+=n);return i.length?{phases:i,total:a}:null}function bu(e){return e===0?`0 ms`:e<10?`${e.toFixed(1)} ms`:e<1e3?`${Math.round(e)} ms`:`${(e/1e3).toFixed(e<1e4?2:1)} s`}function xu(e){let t={sent:0,received:0,sentBytes:0,receivedBytes:0},n=0,r=0;for(let{data:i}of e){if(typeof i.dropped==`number`&&i.dropped>0&&(n+=i.dropped),i.error)continue;i.dataOmitted&&r++;let e=typeof i.size==`number`&&i.size>0?i.size:0;i.dir===`send`?(t.sent++,t.sentBytes+=e):i.dir===`recv`&&(t.received++,t.receivedBytes+=e)}return n&&(t.dropped=n),r&&(t.dataOmitted=r),t}function Su(e){return`${e.sent??0}↑ ${e.received??0}↓ · ${O((e.sentBytes??0)+(e.receivedBytes??0))}`}var Cu=e=>(typeof e==`number`&&Number.isFinite(e)?e:0).toLocaleString(`en-US`),wu=(e,t,n=`${t}s`)=>`${Cu(e)} ${e===1?t:n}`,Tu=300;function Eu(e){if(e.error)return{text:e.error,tone:`error`};switch(e.opcode){case 2:return{text:`binary, ${wu(e.size??0,`byte`)}`,tone:`note`};case 8:return{text:e.data?`close · ${Du(e.data)}`:`close`,tone:`note`};case 9:return{text:`ping`,tone:`note`};case 10:return{text:`pong`,tone:`note`}}return e.dataRemoved?{text:`data removed from this export`,tone:`note`}:e.dataOmitted?{text:`data not recorded (over 1 MB/s)`,tone:`note`}:typeof e.data==`string`?e.data?{text:Du(e.data),tone:`data`}:{text:`(empty)`,tone:`note`}:{text:e.size?`no data`:`(empty)`,tone:`note`}}function Du(e){return(e.length>Tu?e.slice(0,Tu):e).replace(/\s+/g,` `).trim()}var Ou={1:`text`,2:`binary`,8:`close`,9:`ping`,10:`pong`};function ku(e){return Ou[e]??`opcode ${e}`}var Au=new Set([`load`,`start`,`bfcache`]),ju=[`LCP`,`CLS`,`INP`];function Mu(e,t){return e.split(`#`,1)[0]===t.split(`#`,1)[0]}function Nu(e,t){let n=[];for(let e of[...t].sort((e,t)=>e.ts-t.ts))Au.has(e.kind)?n.push({ts:e.ts,offset:e.offset,url:e.url,metrics:{},routes:[],slots:new Map}):n.at(-1)?.routes.push({ts:e.ts,offset:e.offset,url:e.url});let r=n.length>0,i=new Map;for(let t of e){let e=t.data,n=e.id||`${e.name} ${e.url}`,r=i.get(n);if(!r){i.set(n,{name:e.name,url:e.url,first:t,latest:t});continue}t.ts<r.first.ts&&(r.first=t,r.url=e.url),t.ts>=r.latest.ts&&(r.latest=t)}let a=[...i.values()].sort((e,t)=>e.first.ts-t.first.ts);for(let e of a){let t;if(r){let r=Pu(n,e.first.ts),i=n[r],a=n[r+1];t=a&&a.ts-e.first.ts<=1e4&&(!i||i.slots.has(e.name)||!Mu(i.url,e.url)&&Mu(a.url,e.url))?a:i??n[0]}else{let r=n.at(-1);r&&!r.slots.has(e.name)&&Mu(r.url,e.url)?t=r:(t={ts:e.first.ts,offset:e.first.offset,url:e.url,metrics:{},routes:[],slots:new Map},n.push(t))}let i=t.slots.get(e.name);(!i||e.latest.ts>=i.latest.ts)&&t.slots.set(e.name,e)}return n.map(({slots:e,...t})=>{for(let[n,r]of e)t.metrics[n]=r.latest;return t})}function Pu(e,t){let n=-1;for(let r=0;r<e.length&&e[r].ts<=t;r++)n=r;return n}function Fu(e,t){let n=e[0];for(let r of e){if(r.offset>t)break;n=r}return n}function Iu(e,t){let n;for(let r of e.routes){if(r.offset>t)break;n=r}return n}function Lu(e){let t=e.data.attribution?.time;return typeof t==`number`&&Number.isFinite(t)&&t>0xe8d4a51000?t:e.ts}var Ru={good:`good`,"needs-improvement":`needs improvement`,poor:`poor`},zu={LCP:`Largest Contentful Paint`,CLS:`Cumulative Layout Shift`,INP:`Interaction to Next Paint`,FCP:`First Contentful Paint`,TTFB:`Time to First Byte`};function Bu(e,t){return e===`CLS`?t===0?`0`:t<.01?`<0.01`:t.toFixed(2):t<1e3?`${Math.round(t)} ms`:`${(t/1e3).toFixed(2)} s`}var Vu=e=>e===void 0?void 0:`${Math.round(e)} ms`;function Hu(e){let t=e.attribution??{},n=[],r=(e,t)=>{t!==void 0&&t!==``&&n.push(`${e}: ${t}`)};switch(e.name){case`LCP`:r(`Element`,t.target),r(`Resource`,t.url),r(`Time to first byte`,Vu(t.timeToFirstByte)),r(`Resource load delay`,Vu(t.resourceLoadDelay)),r(`Resource load duration`,Vu(t.resourceLoadDuration)),r(`Element render delay`,Vu(t.elementRenderDelay));break;case`CLS`:r(`Largest shift`,t.target),r(`Largest shift value`,t.largestShiftValue===void 0?void 0:Bu(`CLS`,t.largestShiftValue));break;case`INP`:r(`Target`,t.target),r(`Interaction`,t.interactionType),r(`Input delay`,Vu(t.inputDelay)),r(`Processing`,Vu(t.processingDuration)),r(`Presentation delay`,Vu(t.presentationDelay));break;default:r(`Load state`,t.loadState)}return n}var Uu=new Set([`init`,`action`,`snapshot`]),Wu=e=>`wc:${e}`;function Gu(e,t){if(t===null)return;let n=e.find(e=>e.key===t);if(n||!t.startsWith(Wu(``)))return n;let r=t.slice(Wu(``).length);return e.find(e=>e.data.kind===`websocket`&&e.data.id===r)}function Ku(e){let t=[];e.forEach((e,n)=>{e&&typeof e==`object`&&Number.isFinite(e.ts)&&e.data!==null&&typeof e.data==`object`&&t.push(n)}),t.sort((t,n)=>e[t].ts-e[n].ts);let n=[];for(let r of t)e[r].type===`rrweb`&&n.push(e[r].data);let r=n.length,i=n.findIndex((e,t)=>e.type===B.Meta&&n[t+1]?.type===B.FullSnapshot),a=i>=0,o=n.slice(0,Math.max(i,0)).filter(e=>e.type!==B.DomContentLoaded&&e.type!==B.Load).length;i>0&&(n=n.slice(i));let s=t.length?e[t[0]].ts:0,c=t.length?e[t[t.length-1]].ts:0,l=a?n[0].timestamp:s,u=Math.max(a?n[n.length-1].timestamp:c,l)-l,d=e=>Math.min(Math.max(e-l,0),u),f=n[0]?.type===B.Meta?n[0].data:void 0,p={rrweb:n,replayable:a,skipped:o,rrwebCount:r,start:l,duration:u,viewport:f?{width:f.width,height:f.height}:void 0,network:[],console:[],events:[],story:[],pages:[],vitals:[],vitalPages:[],freezes:[],memory:[],ws:new Map,state:[],stores:[]},m=[],h=new Set,g=(e,t)=>{let n=`${e.type[0]}${t}`,r=d(e.ts);switch(e.type){case`network`:if(p.network.push({key:n,ts:e.ts,offset:r,data:e.data}),tu(e.data)){let{path:t}=ve(e.data.url);p.story.push({key:n,ts:e.ts,offset:r,kind:`net-error`,title:`${e.data.kind===`websocket`?`WS`:e.data.method} ${t}`,detail:eu(e.data)??`${e.data.status} ${e.data.statusText??``}`.trim(),ref:{tab:`network`,key:n}})}break;case`ws`:{let t=e.data.conn;if(typeof t!=`string`)break;let i=p.ws.get(t);i||p.ws.set(t,i=[]),i.push({key:n,ts:e.ts,offset:r,data:e.data});break}case`state`:{let t=e.data;if(typeof t.store!=`string`||!Uu.has(t.kind))break;p.state.push({key:n,ts:e.ts,offset:r,data:t}),h.has(t.store)||(h.add(t.store),p.stores.push(t.store));break}case`console`:p.console.push({key:n,ts:e.ts,offset:r,data:e.data}),e.data.level===`error`&&p.story.push({key:n,ts:e.ts,offset:r,kind:`error`,title:Y(e.data.text),detail:X(e.data),ref:{tab:`console`,key:n}});break;case`event`:{p.events.push({key:n,ts:e.ts,offset:r,data:e.data});let t=qu(e.data);t&&p.story.push({key:n,ts:e.ts,offset:r,...t}),e.data.name===`page_view`&&(p.pages.push({offset:r,url:e.data.url,title:e.data.title}),m.push({ts:e.ts,offset:r,url:e.data.url,kind:e.data.kind}));break}case`perf`:{let t=e.data;t?.kind===`vital`?p.vitals.push({key:n,ts:e.ts,offset:r,data:t}):t?.kind===`loaf`&&t.duration>200?(p.freezes.push({key:n,ts:e.ts,offset:r,data:t}),p.story.push({key:n,ts:e.ts,offset:r,...Qu(t)})):t?.kind===`memory`&&Number.isFinite(t.used)&&p.memory.push({key:n,ts:e.ts,offset:r,data:t});break}}};for(let n of t)try{g(e[n],n)}catch{}let _=new Set;for(let e of p.network)e.data.kind===`websocket`&&_.add(e.data.id);let v=[];for(let[e,t]of p.ws){if(_.has(e))continue;let n=t[0];v.push({key:Wu(e),ts:n.ts,offset:n.offset,placeholder:!0,data:{id:e,kind:`websocket`,method:`GET`,url:``,status:101,pending:!0,source:`cdp`,frames:xu(t)}})}if(v.length&&(p.network=p.network.concat(v).sort((e,t)=>e.ts-t.ts)),!p.pages.length)for(let e of n)e.type===B.Meta&&p.pages.push({offset:d(e.timestamp),url:e.data.href});return p.vitalPages=p.vitals.length?Nu(p.vitals,m):[],p}function qu(e){switch(e.name){case`page_view`:{let{host:t,path:n}=ve(e.url);return{kind:`page`,title:`Page viewed ${n}`,detail:[e.title,t].filter(Boolean).join(` · `)}}case`click`:return{kind:`click`,title:`Clicked ${$u(e.target)}`,detail:e.target.selector};case`rage_click`:return{kind:`rage`,title:`Rage click ×${e.count} on ${$u(e.target)}`,detail:e.target.selector};case`change`:return{kind:`change`,title:`Changed ${J(e.target)}`,detail:e.masked?`•••••••• (password, not recorded)`:e.value?`“${e.value}”`:`(empty)`};case`submit`:return{kind:`submit`,title:`Submitted form ${J(e.target)}`,detail:[e.method,e.action].filter(Boolean).join(` `)};case`marker`:return{kind:`marker`,title:e.label};case`custom`:return{kind:`custom`,title:String(e.event),detail:Ju(Xu(e.props),e.propsTruncated&&`props shortened to 8 KB`,Yu(e.dropped)),payload:e.props};case`identify`:return{kind:`identify`,title:e.userId?`Identified as ${e.userId}`:`Identified`,detail:Ju(Xu(e.traits),e.propsTruncated&&`traits shortened to 8 KB`,Yu(e.dropped)),payload:e.traits}}return null}function Ju(...e){return e.filter(Boolean).join(` · `)||void 0}function Yu(e){return e?`${e.toLocaleString()} earlier call${e===1?``:`s`} dropped (rate limit)`:void 0}function Xu(e){return!e||typeof e!=`object`?``:Object.entries(e).map(([e,t])=>`${e}: ${Zu(t)}`).join(` · `)}function Zu(e){if(typeof e==`string`)return e;if(typeof e!=`object`||!e)return String(e);let t=JSON.stringify(e);return t.length>80?`${t.slice(0,79)}…`:t}function Qu(e){let t=e.scripts?.[0],n=t?q(t):``;return{kind:`freeze`,title:`Freeze ${pe(e.duration)}${n?` · ${n}`:``}`,detail:Ju(e.blockingDuration>0&&`blocking ${pe(e.blockingDuration)}`,t?.invoker&&t.invoker!==n&&t.invoker,t?.url&&ve(t.url).path)}}function q(e){return[e.url?e.url.split(/[?#]/,1)[0].split(`/`).filter(Boolean).pop()??``:``,e.fn].filter(Boolean).join(` `)||e.invoker||``}function $u(e){let t=e.text||e.ariaLabel||e.title||e.alt||e.placeholder;return t?`“${t}”`:e.id?`<${e.tag}#${e.id}>`:`<${e.tag}>`}function J(e){let t=e.name||e.id||e.ariaLabel||e.placeholder||e.testId;return t?`“${t}”`:`<${e.tag}>`}function Y(e){let t=String(e??``).split(`
|
|
143
|
+
`,1)[0];return t.length>160?`${t.slice(0,159)}…`:t}function X(e){switch(e.source){case`uncaught`:return e.url?`Uncaught · ${ve(e.url).path}:${e.line??0}`:`Uncaught exception`;case`unhandledrejection`:return`Unhandled promise rejection`;case`resource`:return`Resource failed to load`;default:return`console.error`}}function ed(e,t){let n=0,r=e.length-1,i=-1;for(;n<=r;){let a=n+r>>1;e[a].offset<=t?(i=a,n=a+1):r=a-1}return i}var td=e=>`'${e.replace(/'/g,`'\\''`)}'`;function nd(e){let t=[`curl`,td(e.url)];e.method!==`GET`&&t.push(`-X`,e.method);for(let[n,r]of Object.entries(e.reqHeaders??{}))n.startsWith(`:`)||t.push(`-H`,td(`${n}: ${r}`));return e.reqBody!==void 0&&e.reqBodyNote!==`FormData`&&t.push(`--data-raw`,td(e.reqBody)),t.join(` `)}var rd=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Z=e(((e,t)=>{t.exports=rd()}))(),id=52428800;function ad({meta:e,range:t,onClose:n}){let r=(0,l.useRef)(null),[i,a]=(0,l.useState)(!0),[o,s]=(0,l.useState)(!1),[c,u]=(0,l.useState)(!1),[d,f]=(0,l.useState)(!!t),[p,m]=(0,l.useState)([]),[h,g]=(0,l.useState)(null),[_,v]=(0,l.useState)(``),y={secrets:!i,bodies:!o,consoleArgs:!c,range:d?t:null},b=JSON.stringify(y);return(0,l.useEffect)(()=>{r.current?.showModal(),x().then(e=>m(e.redactHeaders??[])).catch(()=>{})},[]),(0,l.useEffect)(()=>{let t=new AbortController;g(null),v(``);let n=setTimeout(()=>{re(e.id,y,t.signal).then(e=>g(e.bytes),e=>!t.signal.aborted&&v(e instanceof Error?e.message:String(e)))},150);return()=>{clearTimeout(n),t.abort()}},[e.id,b]),(0,Z.jsx)(`dialog`,{ref:r,className:`export-dialog`,onClose:n,onCancel:n,children:(0,Z.jsxs)(`form`,{method:`dialog`,children:[(0,Z.jsx)(`h2`,{children:`Download as HTML`}),(0,Z.jsx)(`p`,{className:`muted`,children:`One file that opens offline in any browser, with the player and the Events, Network and Console tabs. Images and fonts still load from the recorded site.`}),(0,Z.jsxs)(`label`,{className:`check`,children:[(0,Z.jsx)(`input`,{type:`checkbox`,checked:i,onChange:e=>a(e.target.checked)}),(0,Z.jsxs)(`span`,{children:[`Hide sensitive headers`,p.length>0&&(0,Z.jsxs)(`span`,{className:`muted small`,children:[` (`,p.join(`, `),`)`]})]})]}),(0,Z.jsxs)(`label`,{className:`check`,children:[(0,Z.jsx)(`input`,{type:`checkbox`,checked:o,onChange:e=>s(e.target.checked)}),(0,Z.jsx)(`span`,{children:`Remove request and response bodies`})]}),(0,Z.jsxs)(`label`,{className:`check`,children:[(0,Z.jsx)(`input`,{type:`checkbox`,checked:c,onChange:e=>u(e.target.checked)}),(0,Z.jsx)(`span`,{children:`Remove console arguments`})]}),t&&(0,Z.jsxs)(`label`,{className:`check`,children:[(0,Z.jsx)(`input`,{type:`checkbox`,checked:d,onChange:e=>f(e.target.checked)}),(0,Z.jsxs)(`span`,{children:[`Only the selected range `,de(t.from),`–`,de(t.to),(0,Z.jsx)(`span`,{className:`muted small`,children:` (starts at the nearest full snapshot before it)`})]})]}),(0,Z.jsxs)(`div`,{className:`estimate`,children:[_?(0,Z.jsxs)(`span`,{className:`bad`,children:[`Cannot estimate the size: `,_]}):h===null?(0,Z.jsx)(`span`,{className:`muted`,children:`Estimating the file size…`}):(0,Z.jsxs)(`span`,{children:[`File size: `,(0,Z.jsx)(`strong`,{children:O(h)})]}),h!==null&&h>id&&(0,Z.jsx)(`div`,{className:`warn-box`,children:`Over 50 MB: hard to attach to Jira or Slack. Export a range or remove bodies to make it smaller.`})]}),(0,Z.jsxs)(`div`,{className:`dialog-actions`,children:[(0,Z.jsx)(`button`,{type:`submit`,className:`chip-btn`,children:`Cancel`}),(0,Z.jsx)(`a`,{className:`chip-btn primary`,href:ne(e.id,y),download:`tabtape-${e.id}.html`,onClick:()=>setTimeout(n,300),children:`Download`})]})]})})}function od(e,t){let n=e[0];for(let r of e){if(r.offset>t)break;n=r}return n}function sd(e){let t;for(let n of e)(!t||n.data.used>t.data.used)&&(t=n);return t}var cd=e=>e.limit>0&&e.used>=e.limit*.8;function ld(e,t){let n=[`JavaScript heap: ${O(e.used)} used of ${O(e.total)} allocated`];return e.limit>0&&n.push(`Heap limit: ${O(e.limit)} (${Math.round(e.used/e.limit*100)}% used)`),e.nodes!==void 0&&n.push(`DOM elements: ${e.nodes.toLocaleString(`en-US`)}`),t&&n.push(`Peak in this recording: ${O(t.data.used)} at ${de(t.offset)}`),n.push(`The heap includes tabtape's own in-page recorder.`),n}function ud(e,t,n=200){if(!e.length||t<=0)return``;let r=dd/Math.max(n,1),i=[];for(let n of e){let e=Math.min(Math.max(n.offset/t,0),1)*dd,a=i.at(-1);a&&Math.floor(e/r)===Math.floor(a.x/r)?a.v=Math.max(a.v,n.data.used):i.push({x:e,v:n.data.used})}let a=1/0,o=-1/0;for(let e of i)a=Math.min(a,e.v),o=Math.max(o,e.v);let s=e=>o===a?50:100*(.9-.8*(e-a)/(o-a)),c=e=>Math.round(e*10)/10,l=i[i.length-1];l.x<1e3&&i.push({x:dd,v:l.v});let u=i.map(e=>`L${c(e.x)},${c(s(e.v))}`).join(``);return`M${c(i[0].x)},100${u}L${dd},100Z`}var dd=1e3,fd=50;function pd({data:e,time:t,onSeek:n}){let r=(0,l.useMemo)(()=>sd(e.memory),[e.memory]),i=od(e.memory,t);if(!i||!r)return null;let a=[...ld(i.data,r),`Click to jump to the peak.`].join(`
|
|
144
|
+
`);return(0,Z.jsxs)(`button`,{className:`vital memory${cd(i.data)?` poor`:``}`,title:a,onClick:()=>n(r.offset+fd),children:[`Heap `,(0,Z.jsx)(`b`,{children:O(i.data.used)})]})}function md({samples:e,total:t}){let n=(0,l.useMemo)(()=>ud(e,t),[e,t]);return n?(0,Z.jsx)(`svg`,{className:`memory-curve`,viewBox:`0 0 ${dd} 100`,preserveAspectRatio:`none`,"aria-hidden":`true`,children:(0,Z.jsx)(`path`,{d:n})}):null}var hd=300,gd=[1,2,4,8],_d=1e3;function vd({data:e,onTime:t,initialTime:n=0,range:r=null,onRangeChange:i,live:a,ref:o}){let s=(0,l.useRef)(null),c=(0,l.useRef)(null),u=(0,l.useRef)(t);u.current=t;let d=(0,l.useRef)(e);d.current=e;let f=(0,l.useRef)(a);f.current=a;let p=a?.feed,m=!!a?.streaming,[h,g]=(0,l.useState)(!1),[_,v]=(0,l.useState)(()=>Math.min(Math.max(n,0),e.duration)),[y,b]=(0,l.useState)(1),[x,S]=(0,l.useState)(!0),[C,ee]=(0,l.useState)(!1),[w,te]=(0,l.useState)(m),[T,ne]=(0,l.useState)(0),[E,re]=(0,l.useState)(0),ie=Math.max(e.duration,m&&e.replayable?E:0,w?_:0),ae=(0,l.useRef)(h);ae.current=h;let oe=(0,l.useRef)(_);oe.current=_;let se=(0,l.useRef)(ie);se.current=ie;let D=(0,l.useRef)(w);D.current=w;let ce=(0,l.useRef)(y);ce.current=y;let le=(0,l.useRef)(x);le.current=x;let ue=(0,l.useRef)({at:n,play:!1}),fe=(0,l.useRef)(0),pe=(0,l.useRef)(0);(0,l.useEffect)(()=>{let e=s.current,t=d.current;if(!e||!t.replayable)return;let n=f.current,r=!!n?.streaming&&D.current,i=t.rrweb[0].timestamp,a=t.rrweb;n&&n.feed.rrweb.length>t.rrwebCount&&(a=a.concat(n.feed.rrweb.slice(t.rrwebCount).filter(e=>e.timestamp>=i)));let o=new ql(a,{root:e,liveMode:r,speed:r?1:ce.current,skipInactive:!r&&le.current,showWarning:!1,triggerFocus:!1,mouseTail:{strokeStyle:`rgba(229, 72, 77, 0.55)`,lineWidth:2,duration:600}});c.current=o,pe.current=i,fe.current=n?n.feed.rrweb.length:0;let l=!1,p={w:t.viewport?.width??1280,h:t.viewport?.height??800},m={last:null},h=o.wrapper,_=()=>{let{width:t,height:n}=e.getBoundingClientRect(),r=Math.min((t-24)/p.w,(n-24)/p.h);Object.assign(h.style,{position:`absolute`,left:`50%`,top:`50%`,transformOrigin:`center center`,transform:`translate(-50%, -50%) scale(${Math.max(r,.05)})`})};o.on(`resize`,e=>{m.last=e,p={w:m.last.width,h:m.last.height},_()}),o.on(`finish`,()=>{let e=d.current.duration;g(!1),v(e),u.current(e)}),o.on(`skip-start`,()=>ee(!0)),o.on(`skip-end`,()=>ee(!1));let y=new ResizeObserver(_);if(y.observe(e),_(),r)o.pause(a[a.length-1].timestamp-i+1),o.startLive(Date.now()-_d),g(!0);else{let{at:e,play:n}=ue.current,r=Math.min(Math.max(e,0),t.duration);n?(o.play(r),g(!0)):r>0&&o.pause(r<t.duration?r:r+1),v(r),u.current(r)}let b=m.last,x=a.find(e=>e.type===B.Meta)?.data;return b&&x&&(b.width!==x.width||b.height!==x.height)&&setTimeout(()=>{let e=m.last;if(!l&&e&&e!==b&&e.width===x.width&&e.height===x.height){o.iframe.style.display=`inherit`;for(let e of[o.iframe,h.querySelector(`canvas.replayer-mouse-tail`)])e?.setAttribute(`width`,String(b.width)),e?.setAttribute(`height`,String(b.height));m.last=b,p={w:b.width,h:b.height},_()}},0),()=>{l=!0,y.disconnect(),o.timer.clear(),o.destroy(),o.service.stop(),o.speedService.stop(),c.current===o&&(c.current=null),g(!1),ee(!1)}},[p,p?null:e,e.replayable,T]),(0,l.useEffect)(()=>{if(p)return p.subscribe(()=>{let e=c.current;if(!e)return;let t=p.rrweb;for(let n=fe.current;n<t.length;n++)t[n].timestamp>=pe.current&&e.addEvent(t[n]);fe.current=t.length})},[p]),(0,l.useEffect)(()=>{if(!m)return;let e=()=>re(Math.max(0,Date.now()-_d-d.current.start));e();let t=setInterval(e,250);return()=>clearInterval(t)},[m]),(0,l.useEffect)(()=>{!m&&D.current&&(ue.current={at:d.current.duration,play:!1},te(!1),ne(e=>e+1))},[m]),(0,l.useEffect)(()=>{if(!h)return;let e=0,t=0,n=r=>{let i=c.current;if(i&&r-t>80){t=r;let e=D.current?i.getCurrentTime():Math.min(i.getCurrentTime(),se.current);v(e),u.current(e)}e=requestAnimationFrame(n)};return e=requestAnimationFrame(n),()=>cancelAnimationFrame(e)},[h]);let O=(0,l.useCallback)((e,t)=>{let n=Math.max(0,Math.min(e,d.current.duration));ue.current={at:n,play:t},te(!1),v(n),u.current(n),ne(e=>e+1)},[]),me=(0,l.useCallback)(()=>{f.current?.streaming&&d.current.replayable&&(te(!0),ne(e=>e+1))},[]),he=(0,l.useCallback)(e=>{let t=d.current,n=Math.max(0,Math.min(e,se.current));if(D.current){t.replayable&&O(n,n<t.duration);return}v(n),u.current(n);let r=c.current;r&&(ae.current?r.play(n):r.pause(n))},[O]),ge=(0,l.useCallback)(()=>{let e=c.current;if(!e)return;if(D.current){O(e.getCurrentTime(),!1);return}if(ae.current){e.pause(),g(!1);return}let t=d.current;if(f.current?.streaming&&oe.current>=t.duration-50){me();return}let n=oe.current>=se.current-50?0:oe.current;e.play(n),g(!0)},[O,me]),_e=(0,l.useCallback)(e=>{D.current&&e>0||he(oe.current+e)},[he]);(0,l.useImperativeHandle)(o,()=>({seek:he,toggle:ge,nudge:_e}),[he,ge,_e]);let ve=e=>{b(e),D.current||c.current?.setConfig({speed:e})},ye=e=>{S(e),D.current||c.current?.setConfig({skipInactive:e})};return(0,Z.jsxs)(`div`,{className:`player`,children:[(0,Z.jsxs)(`div`,{className:`stage`,ref:s,children:[!e.replayable&&(m?(0,Z.jsxs)(`div`,{className:`stage-message`,children:[(0,Z.jsx)(`div`,{className:`spinner`}),(0,Z.jsx)(`strong`,{children:`Waiting for the first snapshot…`}),(0,Z.jsx)(`span`,{children:`The replay starts as soon as the recorder sends the page's snapshot.`})]}):(0,Z.jsxs)(`div`,{className:`stage-message`,children:[(0,Z.jsx)(`strong`,{children:`No replayable snapshot`}),(0,Z.jsx)(`span`,{children:`The beginning of this recording was deleted by the ring buffer and no later snapshot is left. Network, console and events are still listed on the right.`})]})),C&&(0,Z.jsx)(`div`,{className:`skip-badge`,children:`Skipping inactivity…`})]}),(0,Z.jsxs)(`div`,{className:`controls`,children:[(0,Z.jsx)(`button`,{className:`play`,onClick:ge,disabled:!e.replayable,title:w?`Pause (leaves live mode)`:`Play/pause (space)`,children:h?`❚❚`:`▶`}),(0,Z.jsxs)(`span`,{className:`clock mono`,children:[de(_),` `,(0,Z.jsxs)(`span`,{className:`muted`,children:[`/ `,de(ie)]})]}),m&&(w?(0,Z.jsx)(`span`,{className:`live-pill`,title:`Following the recording as it happens, 1 s behind. Pause or seek to look back.`,children:`LIVE`}):(0,Z.jsx)(`button`,{className:`chip-btn back-live`,onClick:me,disabled:!e.replayable,title:`Follow the recording as it happens`,children:`Back to live`})),(0,Z.jsx)(yd,{time:_,total:ie,markers:e.story,freezes:e.freezes,memory:e.memory,onSeek:he,range:r,onRangeChange:i}),r&&(0,Z.jsxs)(`span`,{className:`range-chip mono`,title:`Selected range: Copy steps, Download HTML and Download HAR use it. Shift+drag or [ and ] to change, Esc to clear.`,children:[de(r.from),`–`,de(r.to),(0,Z.jsx)(`button`,{className:`icon-btn`,onClick:()=>i?.(null),title:`Clear the selection (Esc)`,children:`✕`})]}),(0,Z.jsx)(`div`,{className:`speed`,title:w?`Live playback runs at 1×`:void 0,children:gd.map(e=>(0,Z.jsxs)(`button`,{className:e===y?`on`:``,onClick:()=>ve(e),disabled:w,children:[e,`×`]},e))}),(0,Z.jsxs)(`label`,{className:`skip-toggle`,title:`Fast-forward through periods without interaction`,children:[(0,Z.jsx)(`input`,{type:`checkbox`,checked:x,onChange:e=>ye(e.target.checked)}),` Skip idle`]})]})]})}function yd({time:e,total:t,markers:n,freezes:r,memory:i,onSeek:a,range:o,onRangeChange:s}){let c=(0,l.useRef)(null),[u,d]=(0,l.useState)(null),[f,p]=(0,l.useState)(null),[m,h]=(0,l.useState)(null),g=e=>`${t>0?e/t*100:0}%`,_=e=>{let n=c.current.getBoundingClientRect();return Math.min(Math.max((e-n.left)/n.width,0),1)*t},v=f??e,y=m?{from:Math.min(m.anchor,m.at),to:Math.max(m.anchor,m.at)}:o;return(0,Z.jsxs)(`div`,{className:`timeline`,ref:c,title:`Click to seek · Shift+drag to select a range`,onPointerDown:e=>{e.currentTarget.setPointerCapture(e.pointerId);let t=_(e.clientX);e.shiftKey&&s?h({anchor:t,at:t}):p(t)},onPointerMove:e=>{let t=_(e.clientX);d(t),m?h({...m,at:t}):f!==null&&p(t)},onPointerUp:e=>{let t=_(e.clientX);if(m){let e=Math.min(m.anchor,t),n=Math.max(m.anchor,t);s?.(n-e>=hd?{from:Math.round(e),to:Math.round(n)}:null),h(null);return}f!==null&&a(t),p(null)},onPointerLeave:()=>d(null),children:[(0,Z.jsx)(md,{samples:i,total:t}),(0,Z.jsx)(`div`,{className:`track`,children:(0,Z.jsx)(`div`,{className:`fill`,style:{width:g(v)}})}),r.map(e=>(0,Z.jsx)(`span`,{className:`freeze`,title:`Freeze ${pe(e.data.duration)}`,style:{left:g(e.offset),width:g(Math.max(0,Math.min(e.data.duration,t-e.offset)))}},e.key)),y&&(0,Z.jsx)(`div`,{className:`range-band`,style:{left:g(y.from),width:g(y.to-y.from)}}),n.map(e=>e.kind===`freeze`?null:(0,Z.jsx)(`span`,{className:`marker ${e.kind}`,style:{left:g(e.offset)}},e.key)),(0,Z.jsx)(`div`,{className:`thumb`,style:{left:g(v)}}),u!==null&&(0,Z.jsx)(`div`,{className:`hover-time mono`,style:{left:g(u)},children:de(u)})]})}function bd({items:e,time:t,follow:n,selected:r,empty:i,onPick:a,children:o}){let s=ed(e,t),c=(0,l.useRef)(null);return(0,l.useEffect)(()=>{!n||s<0||(c.current?.querySelector(`[data-index="${s}"]`))?.scrollIntoView({block:`nearest`})},[s,n]),e.length?(0,Z.jsx)(`div`,{className:`list`,ref:c,children:e.map((e,t)=>(0,Z.jsxs)(`div`,{"data-index":t,className:`row ${t===s?`current`:t>s?`future`:``} ${e.key===r?`selected`:``}`,onClick:()=>a(e),children:[(0,Z.jsx)(`span`,{className:`row-time mono`,children:de(e.offset)}),o(e)]},e.key))}):(0,Z.jsx)(`div`,{className:`list-empty`,children:i})}var xd=2e3;function Sd({frames:e,time:t,onSeek:n}){let[r,i]=(0,l.useState)(xd),[a,o]=(0,l.useState)(null),s=ed(e,t),c=e.length>r?e.slice(0,r):e,u=e.length-c.length,d=e=>{if(!getSelection()?.toString()){if(a===e.key){o(null);return}o(e.key),n(e.offset+50)}};return(0,Z.jsxs)(`details`,{open:!0,className:`ws-section`,children:[(0,Z.jsxs)(`summary`,{children:[`Messages `,(0,Z.jsx)(`span`,{className:`muted`,children:Cu(e.length)})]}),e.length?(0,Z.jsx)(`div`,{className:`ws-messages`,children:c.map((e,t)=>{let n=e.data,r=Eu(n),i=a===e.key,o=n.dir===`send`;return(0,Z.jsxs)(l.Fragment,{children:[typeof n.dropped==`number`&&n.dropped>0&&(0,Z.jsxs)(`div`,{className:`ws-note`,children:[wu(n.dropped,`message`),` not recorded (over 200/s)`]}),(0,Z.jsxs)(`div`,{className:`ws-msg ${o?`send`:`recv`} ${t===s?`current`:t>s?`future`:``} ${i?`selected`:``}`,title:`${o?`Sent`:`Received`} ${n.error?`frame error`:ku(n.opcode)} at ${fe(e.offset)}, ${wu(n.size??0,`byte`)}`,onClick:()=>d(e),children:[(0,Z.jsx)(`span`,{className:`ws-dir`,"aria-label":o?`sent`:`received`,children:o?`↑`:`↓`}),(0,Z.jsx)(`span`,{className:`ws-time mono`,children:de(e.offset)}),(0,Z.jsx)(`span`,{className:`ws-size mono`,children:O(n.size??0)}),n.truncated&&(0,Z.jsx)(`span`,{className:`badge warn`,title:`Recorded up to 64 KB`,children:`TRUNCATED`}),(0,Z.jsx)(`span`,{className:`ws-data ${r.tone} ${i?`expanded`:``}`,children:i?Cd(n,r):r.text})]})]},e.key)})}):(0,Z.jsx)(`div`,{className:`muted body-note`,children:`No messages recorded.`}),u>0&&(0,Z.jsxs)(`button`,{className:`chip-btn ws-more`,onClick:()=>i(e=>e+xd),children:[`Show `,Cu(Math.min(xd,u)),` more (`,Cu(u),` not shown)`]})]})}function Cd(e,t){if(t.tone!==`data`||typeof e.data!=`string`)return t.text;let n=be(e.data).text;return e.truncated?`${n}\n… cut at 64 KB`:n}var wd=[];function Td({item:e,frames:t=wd,start:n,time:r,onSeek:i,onClose:a}){let o=e.data,s=o.kind===`websocket`,c=eu(o);return(0,Z.jsxs)(`section`,{className:`net-detail${s?` ws-detail`:``}`,children:[(0,Z.jsxs)(`header`,{children:[(0,Z.jsx)(`span`,{className:`status ${ru(o)}`,children:nu(o)}),(0,Z.jsx)(`span`,{className:`method`,children:s?`WS`:o.method}),(0,Z.jsx)(`span`,{className:`url mono`,title:o.url,children:e.placeholder?`WebSocket (open)`:o.url}),(0,Z.jsx)(`button`,{className:`icon-btn`,onClick:a,title:`Close`,children:`✕`})]}),!!o.url&&(0,Z.jsxs)(`div`,{className:`net-actions`,children:[(0,Z.jsx)(Ld,{label:`Copy URL`,text:o.url}),!s&&o.kind!==`resource`&&o.kind!==`navigation`&&(0,Z.jsx)(Ld,{label:`Copy as cURL`,text:nd(o)}),o.resBody!==void 0&&(0,Z.jsx)(Ld,{label:`Copy response`,text:o.resBody})]}),(0,Z.jsxs)(`div`,{className:`net-body`,children:[c&&(0,Z.jsx)(`div`,{className:`failure`,children:c}),s?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Ad,{item:e,frames:t,start:n,reason:c}),(0,Z.jsx)(Fd,{title:`Handshake request headers`,headers:o.reqHeaders}),(0,Z.jsx)(Fd,{title:`Handshake response headers`,headers:o.resHeaders}),(0,Z.jsx)(Sd,{frames:t,time:r,onSeek:i})]}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Dd,{item:e,reason:c}),(0,Z.jsx)(Md,{timing:o.timing}),(0,Z.jsx)(Nd,{d:o}),(0,Z.jsx)(Fd,{title:`Request headers`,headers:o.reqHeaders}),(0,Z.jsx)(Id,{title:`Request body`,text:o.reqBody,note:o.reqBodyNote,truncated:o.reqBodyTruncated}),(0,Z.jsx)(Fd,{title:`Response headers`,headers:o.resHeaders}),(0,Z.jsx)(Id,{title:`Response body`,text:o.resBody,note:o.resBodyNote,truncated:o.resBodyTruncated})]})]})]})}function Ed({label:e,children:t,className:n}){return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`dt`,{children:e}),(0,Z.jsx)(`dd`,{className:n,children:t})]})}function Dd({item:e,reason:t}){let n=e.data;return(0,Z.jsxs)(`dl`,{className:`facts`,children:[(0,Z.jsx)(Ed,{label:`Started`,children:de(e.offset)}),(0,Z.jsx)(Ed,{label:`Type`,children:K(n)}),n.status!==void 0&&(0,Z.jsxs)(Ed,{label:`Status`,children:[n.status,` `,n.statusText]}),n.duration!==void 0&&(0,Z.jsxs)(Ed,{label:`Duration`,children:[pe(n.duration),n.ttfb!==void 0&&(0,Z.jsxs)(`span`,{className:`muted`,children:[` (first byte `,pe(n.ttfb),`)`]})]}),(n.resSize??n.transferSize)!==void 0&&(0,Z.jsxs)(Ed,{label:`Size`,children:[O(n.resSize),n.transferSize?(0,Z.jsxs)(`span`,{className:`muted`,children:[` (`,O(n.transferSize),` transferred)`]}):null]}),n.mime&&(0,Z.jsx)(Ed,{label:`Content type`,className:`mono`,children:n.mime}),(0,Z.jsx)(Od,{d:n,reason:t}),n.pending&&(0,Z.jsx)(Ed,{label:`Note`,children:`Still in flight when the page unloaded or recording stopped.`}),(0,Z.jsx)(kd,{d:n})]})}function Od({d:e,reason:t}){return(0,Z.jsxs)(Z.Fragment,{children:[e.error&&e.error!==t&&(0,Z.jsx)(Ed,{label:`Error`,className:`mono`,children:e.error}),e.corsErrorStatus?.corsError&&(0,Z.jsxs)(Ed,{label:`CORS error`,className:`mono`,children:[e.corsErrorStatus.corsError,e.corsErrorStatus.failedParameter&&` (${e.corsErrorStatus.failedParameter})`]}),e.blockedReason&&(0,Z.jsx)(Ed,{label:`Blocked reason`,className:`mono`,children:e.blockedReason})]})}function kd({d:e}){let t=iu(e),n=ou(e);return(0,Z.jsxs)(Z.Fragment,{children:[e.protocol&&(0,Z.jsx)(Ed,{label:`Protocol`,children:e.protocol}),e.remoteAddress&&(0,Z.jsx)(Ed,{label:`Remote address`,className:`mono`,children:e.remoteAddress}),t&&(0,Z.jsx)(Ed,{label:`Cache`,children:t}),n&&(0,Z.jsx)(Ed,{label:`Worker`,children:n}),e.source===`cdp`&&(0,Z.jsx)(Ed,{label:`Recorded`,children:`deep mode (Chrome DevTools Protocol)`})]})}function Ad({item:e,frames:t,start:n,reason:r}){let i=e.data,a=i.frames??xu(t);return(0,Z.jsxs)(`dl`,{className:`facts`,children:[(0,Z.jsx)(Ed,{label:e.placeholder?`First message`:`Opened`,children:de(e.offset)}),(0,Z.jsx)(Ed,{label:`Closed`,children:i.closedAt===void 0?e.placeholder?`not known yet`:i.pending?`still open when the recording stopped`:i.error?`— (the handshake failed)`:`—`:de(i.closedAt-n)}),e.placeholder&&(0,Z.jsx)(Ed,{label:`Note`,children:`The connection record (URL, handshake, counts) is written when the socket closes; until it is there, this row is built from the messages.`}),i.duration!==void 0&&(0,Z.jsx)(Ed,{label:`Duration`,children:pe(i.duration)}),i.status!==void 0&&!e.placeholder&&(0,Z.jsxs)(Ed,{label:`Status`,children:[i.status,` `,i.statusText]}),(0,Z.jsxs)(Ed,{label:`Messages`,children:[Cu(a.sent),` sent `,(0,Z.jsxs)(`span`,{className:`muted`,children:[`(`,O(a.sentBytes??0),`)`]}),` · `,Cu(a.received),` received`,` `,(0,Z.jsxs)(`span`,{className:`muted`,children:[`(`,O(a.receivedBytes??0),`)`]})]}),!!a.dropped&&(0,Z.jsxs)(Ed,{label:`Dropped`,children:[wu(a.dropped,`message`),` not recorded: over 200 messages per second`]}),!!a.dataOmitted&&(0,Z.jsxs)(Ed,{label:`Without data`,children:[Cu(a.dataOmitted),` recorded without data: over 1 MB per second`]}),(0,Z.jsx)(Od,{d:i,reason:r}),(0,Z.jsx)(kd,{d:i})]})}var jd=(e,t)=>`${t>0?Math.min(100,e/t*100):0}%`;function Md({timing:e}){let t=yu(e);return t?(0,Z.jsxs)(`details`,{open:!0,className:`timing`,children:[(0,Z.jsxs)(`summary`,{children:[`Timing `,(0,Z.jsx)(`span`,{className:`muted`,children:bu(t.total)})]}),(0,Z.jsxs)(`div`,{className:`waterfall`,children:[t.phases.map(e=>(0,Z.jsxs)(`div`,{className:`wf-row wf-${e.key}`,children:[(0,Z.jsx)(`span`,{className:`wf-label`,children:e.label}),(0,Z.jsx)(`span`,{className:`wf-track`,children:(0,Z.jsx)(`span`,{className:`wf-bar`,style:{left:jd(e.start,t.total),width:jd(e.ms,t.total)}})}),(0,Z.jsx)(`span`,{className:`wf-ms mono`,children:bu(e.ms)})]},e.key)),(0,Z.jsxs)(`div`,{className:`wf-row wf-total`,children:[(0,Z.jsx)(`span`,{className:`wf-label`,children:`Total`}),(0,Z.jsx)(`span`,{}),(0,Z.jsx)(`span`,{className:`wf-ms mono`,children:bu(t.total)})]})]})]}):null}function Nd({d:e}){let t=gu(e),n=_u(e),r=t.rows.length+n.rows.length;if(!r&&!t.redacted&&!n.redacted)return null;let i=t.rows.concat(n.rows).filter(e=>e.blocked).length;return(0,Z.jsxs)(`details`,{open:!0,className:`cookies`,children:[(0,Z.jsxs)(`summary`,{children:[`Cookies `,(0,Z.jsx)(`span`,{className:`muted`,children:r}),i>0&&(0,Z.jsxs)(`span`,{className:`badge blocked`,children:[i,` BLOCKED`]})]}),(0,Z.jsx)(Pd,{title:`Request cookies`,list:t}),(0,Z.jsx)(Pd,{title:`Response cookies (Set-Cookie)`,list:n})]})}function Pd({title:e,list:t}){return!t.rows.length&&!t.redacted?null:(0,Z.jsxs)(`div`,{className:`cookie-group`,children:[(0,Z.jsx)(`div`,{className:`cookie-title`,children:e}),t.redacted&&(0,Z.jsx)(`div`,{className:`muted body-note`,children:`The header is hidden ([redacted]).`}),t.rows.length>0&&(0,Z.jsx)(`table`,{className:`headers cookie-table`,children:(0,Z.jsx)(`tbody`,{children:t.rows.map((e,t)=>(0,Z.jsxs)(`tr`,{className:e.blocked?`cookie blocked`:`cookie`,children:[(0,Z.jsx)(`th`,{children:e.name||(0,Z.jsx)(`span`,{className:`muted`,children:`(no name)`})}),(0,Z.jsxs)(`td`,{children:[e.value!==void 0&&(0,Z.jsx)(`span`,{className:`mono`,children:e.value}),e.attrs&&(0,Z.jsxs)(`span`,{className:`cookie-attrs muted`,children:[` `,e.attrs]}),e.blocked&&(0,Z.jsxs)(`div`,{className:`cookie-blocked`,children:[(0,Z.jsx)(`span`,{className:`badge blocked`,children:`BLOCKED`}),e.blocked.length?e.blocked.map(lu).join(` · `):`no reason given`,(e.domain||e.path)&&(0,Z.jsxs)(`span`,{className:`muted`,children:[` `,`· `,e.domain??``,e.path??``]})]})]})]},t))})})]})}function Fd({title:e,headers:t}){let n=Object.entries(t??{});return n.length?(0,Z.jsxs)(`details`,{open:!0,children:[(0,Z.jsxs)(`summary`,{children:[e,` `,(0,Z.jsx)(`span`,{className:`muted`,children:n.length})]}),(0,Z.jsx)(`table`,{className:`headers`,children:(0,Z.jsx)(`tbody`,{children:n.map(([e,t])=>(0,Z.jsxs)(`tr`,{children:[(0,Z.jsx)(`th`,{children:e}),(0,Z.jsx)(`td`,{className:`mono`,children:t})]},e))})})]}):null}function Id({title:e,text:t,note:n,truncated:r}){if(t===void 0&&!n)return null;let i=t===void 0?void 0:be(t);return(0,Z.jsxs)(`details`,{open:!0,children:[(0,Z.jsxs)(`summary`,{children:[e,i?.json&&(0,Z.jsx)(`span`,{className:`muted`,children:` JSON`}),r&&(0,Z.jsx)(`span`,{className:`badge warn`,children:`TRUNCATED`})]}),n&&(0,Z.jsx)(`div`,{className:`muted body-note`,children:n}),i&&(0,Z.jsx)(`pre`,{className:`body`,children:i.text||(0,Z.jsx)(`span`,{className:`muted`,children:`(empty)`})})]})}function Ld({label:e,text:t}){let[n,r]=(0,l.useState)(!1);return(0,Z.jsx)(`button`,{className:`chip-btn`,onClick:async()=>{await navigator.clipboard.writeText(t),r(!0),setTimeout(()=>r(!1),1200)},children:n?`Copied`:e})}var Rd=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),zd=e=>typeof e==`object`&&!!e,Bd=/^(0|[1-9]\d*)$/;function Vd(e){return e===``?[]:typeof e!=`string`||e[0]!==`/`?null:e.slice(1).split(`/`).map(e=>e.includes(`~`)?e.replace(/~1/g,`/`).replace(/~0/g,`~`):e)}function Hd(e){return e.map(e=>`/${e.replace(/~/g,`~0`).replace(/\//g,`~1`)}`).join(``)}var Ud=Object.freeze({found:!1});function Wd(e,t){if(Array.isArray(e)){if(!Bd.test(t))return Ud;let n=Number(t);return n<e.length?{found:!0,value:e[n]}:Ud}return zd(e)&&Rd(e,t)?{found:!0,value:e[t]}:Ud}function Gd(e,t){let n=typeof t==`string`?Vd(t):t;if(!n)return Ud;if(!n.length)return e===void 0?Ud:{found:!0,value:e};let r=e;for(let e of n){let t=Wd(r,e);if(!t.found)return Ud;r=t.value}return{found:!0,value:r}}function Kd(e,t,n){if(!Array.isArray(t))return e;for(let r of t){if(!r||typeof r!=`object`||typeof r.path!=`string`)continue;let t=Vd(r.path);t&&(e=qd(e,t,r,n))}return e}function qd(e,t,n,r){let i=n.deleted===!0;if(!t.length)return i?void 0:n.value;if(i?!Gd(e,t).found:!Jd(e,t))return e;let a=Yd(e,t[0],r),o=a;for(let e=0;e<t.length-1;e++){let n=Wd(o,t[e]),i=Yd(n.value,t[e+1],r);i!==n.value&&Xd(o,t[e],i),o=i}let s=t[t.length-1];return i?Zd(o,s):Xd(o,s,n.value),a}function Jd(e,t){let n=e;for(let e of t){if(Array.isArray(n)){if(e!==`-`&&!(Bd.test(e)&&Number(e)<=n.length))return!1}else if(n===void 0)return!0;else if(!zd(n))return!1;n=Wd(n,e).value}return!0}function Yd(e,t,n){if(zd(e)){if(n.has(e))return e;let t=Array.isArray(e)?e.slice():{...e};return n.add(t),t}let r=t===`-`?[]:{};return n.add(r),r}function Xd(e,t,n){Array.isArray(e)?e[t===`-`?e.length:Number(t)]=n:t===`__proto__`?Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0}):e[t]=n}function Zd(e,t){Array.isArray(e)?e.splice(Number(t),1):delete e[t]}var Qd=16,$d=class{store;items;lastFull;lastBurst;checkpoints=new Map;recent=new Map;byKey=new Map;constructor(e,t,n){this.store=e,this.items=t,this.lastFull=new Int32Array(t.length),this.lastBurst=new Int32Array(t.length);let r=-1,i=-1;t.forEach((e,t)=>{e.data.state===void 0?e.data.burst&&(i=t):r=t,this.lastFull[t]=r,this.lastBurst[t]=i,this.byKey.set(e.key,t)});let a=n?.items.length??0;if(n&&a>0&&a<=t.length&&t[a-1].key===n.items[a-1].key){for(let[e,t]of n.checkpoints)this.checkpoints.set(e,t);for(let[e,t]of n.recent)this.recent.set(e,t)}}indexOf(e){return this.byKey.get(e)??-1}indexAt(e){return ed(this.items,e)}at(e){let t=this.items.length;if(e<0||!t)return{index:-1,state:void 0,base:-1,uncertain:!1};e>=t&&(e=t-1);let n=this.lastFull[e];return{index:e,state:this.stateAfter(e),base:n,uncertain:this.lastBurst[e]>n}}atTime(e){return this.at(this.indexAt(e))}changesOf(e){let t=this.items[e]?.data;if(!t||t.kind!==`action`||t.state===void 0&&!Array.isArray(t.changes))return{rows:[],full:!1,more:!1,uncertain:!1};let n=this.at(e-1),r=n.uncertain||n.base<0;if(t.state!==void 0)return{...tf(n.state,t.state,100),full:!0,uncertain:r};let i=[];for(let e of t.changes){if(!e||typeof e.path!=`string`)continue;let t=Gd(n.state,e.path),r=e.deleted===!0;i.push({path:e.path,hadPrev:t.found,prev:t.value,deleted:r,next:r?void 0:e.value})}return{rows:i,full:!1,more:!1,uncertain:r}}stateAfter(e){let t=this.lastFull[e];if(t===e)return this.items[e].data.state;if(this.recent.has(e)){let t=this.recent.get(e);return this.recent.delete(e),this.recent.set(e,t),t}let n=t,r=t>=0?this.items[t].data.state:void 0;for(let i=e-e%32;i>t;i-=32)if(this.checkpoints.has(i)){n=i,r=this.checkpoints.get(i);break}let i=new Set;for(let t=n+1;t<=e;t++)r=Kd(r,this.items[t].data.changes,i),t%32==0&&(this.checkpoints.set(t,r),i=new Set);return this.recent.set(e,r),this.recent.size>Qd&&this.recent.delete(this.recent.keys().next().value),r}};function ef(e,t){let n=new Map;for(let t of e){let e=n.get(t.data.store);e||n.set(t.data.store,e=[]),e.push(t)}let r=new Map;for(let[e,i]of n)r.set(e,new $d(e,i,t?.get(e)));return r}function tf(e,t,n=100){let r=[],i=[],a=!1,o=e=>{r.length>=n?a=!0:r.push({path:Hd(i),...e})},s=(e,t)=>{i.push(e),t(),i.pop()},c=(e,t)=>{if(!(e===t||a)){if(zd(e)&&zd(t)&&Array.isArray(e)===Array.isArray(t)){if(Array.isArray(e)){let n=t;for(let t=0;t<Math.max(e.length,n.length)&&!a;t++)s(String(t),()=>{t>=n.length?o({hadPrev:!0,prev:e[t],deleted:!0}):t>=e.length?o({hadPrev:!1,deleted:!1,next:n[t]}):c(e[t],n[t])})}else{let n=e,r=t;for(let e of Object.keys(n)){if(a)break;s(e,()=>Rd(r,e)?c(n[e],r[e]):o({hadPrev:!0,prev:n[e],deleted:!0}))}for(let e of Object.keys(r)){if(a)break;Rd(n,e)||s(e,()=>o({hadPrev:!1,deleted:!1,next:r[e]}))}}return}o(e===void 0?{hadPrev:!1,deleted:!1,next:t}:t===void 0?{hadPrev:!0,prev:e,deleted:!0}:{hadPrev:!0,prev:e,deleted:!1,next:t})}};return c(e,t),{rows:r,more:a}}function nf(e){return e.kind===`action`?e.action||`(action)`:e.kind===`init`?`@@INIT`:`snapshot`}function rf(e){if(e.kind!==`action`||e.state!==void 0)return`full state`;if(e.burst)return`burst`;let t=Array.isArray(e.changes)?e.changes.length:0;return t?`${t} change${t===1?``:`s`}`:`no changes`}function af(e){return typeof e==`string`&&e.startsWith(`[…`)&&e.endsWith(`not recorded]`)}function of(e,t=120){let n=``,r=e=>(n+=e,n.length<=t),i=e=>{if(e===void 0)return r(`undefined`);if(typeof e==`string`)return r(JSON.stringify(e.length>t?e.slice(0,t):e));if(!zd(e))return r(String(e));if(Array.isArray(e)){if(!r(`[`))return!1;for(let t=0;t<e.length;t++)if(t>0&&!r(`,`)||!i(e[t]))return!1;return r(`]`)}if(!r(`{`))return!1;let n=!0;for(let t in e)if(Rd(e,t)){if(!n&&!r(`,`)||!r(`${JSON.stringify(t)}:`)||!i(e[t]))return!1;n=!1}return r(`}`)};return i(e),n.length>t?`${n.slice(0,t-1)}…`:n}var sf=`No state recorded. Redux Toolkit and Zustand stores (devtools) are recorded automatically; other apps can call tabtape.state().`,cf=`State may be incomplete here: actions came too fast (over 50/s); the next snapshot re-syncs it.`;function lf({items:e,stores:t,time:n,follow:r,query:i,selected:a,onPick:o,onClose:s}){let[c,u]=(0,l.useState)(``),d=(0,l.useRef)(void 0),f=(0,l.useMemo)(()=>d.current=ef(e,d.current),[e]),p=(0,l.useMemo)(()=>new Map(e.map(e=>[e.key,e])),[e]),m=c&&f.has(c)?c:``,h=(0,l.useMemo)(()=>e.filter(e=>e.data.kind!==`snapshot`&&(!m||e.data.store===m)&&(!i||`${nf(e.data)} ${e.data.store}`.toLowerCase().includes(i))),[e,m,i]);if(!e.length)return(0,Z.jsx)(`div`,{className:`state-panel`,children:(0,Z.jsx)(`div`,{className:`list-empty`,children:sf})});let g=a?p.get(a):void 0,_=g&&(!m||g.data.store===m)?f.get(g.data.store):void 0,v=g&&_?_.indexOf(g.key):-1;return(0,Z.jsxs)(`div`,{className:`state-panel`,children:[t.length>1&&(0,Z.jsx)(`div`,{className:`state-toolbar`,children:(0,Z.jsxs)(`select`,{className:`state-store`,value:m,onChange:e=>u(e.target.value),"aria-label":`Store`,children:[(0,Z.jsx)(`option`,{value:``,children:`All stores`}),t.map(e=>(0,Z.jsx)(`option`,{value:e,children:e},e))]})}),(0,Z.jsx)(bd,{items:h,time:n,follow:r,selected:a,empty:i?`No matching actions.`:`No actions.`,onPick:o,children:e=>(0,Z.jsx)(uf,{d:e.data})}),(0,Z.jsxs)(`div`,{className:`state-view`,children:[_&&v>=0&&(0,Z.jsx)(df,{history:_,index:v,onClose:s},g.key),(0,Z.jsx)(`div`,{className:`state-tree`,children:(m?[m]:t).map(e=>{let t=f.get(e);return t?(0,Z.jsx)(Q,{history:t,time:n},e):null})})]})]})}function uf({d:e}){let t=rf(e);return(0,Z.jsxs)(`div`,{className:`row-main`,children:[(0,Z.jsx)(`div`,{className:`row-title`,children:nf(e)}),(0,Z.jsxs)(`div`,{className:`row-detail`,children:[e.store,` · `,(0,Z.jsx)(`span`,{className:t===`burst`?`state-burst`:void 0,children:t})]})]})}function df({history:e,index:t,onClose:n}){let r=e.items[t],i=r.data,a=(0,l.useMemo)(()=>e.changesOf(t),[e,t]),o=i.payload&&typeof i.payload==`object`&&Object.keys(i.payload).length?i.payload:void 0;return(0,Z.jsxs)(`section`,{className:`state-detail`,children:[(0,Z.jsxs)(`header`,{children:[(0,Z.jsx)(`span`,{className:`state-action mono`,children:nf(i)}),(0,Z.jsxs)(`span`,{className:`muted small`,children:[i.store,` · `,fe(r.offset)]}),(0,Z.jsx)(`button`,{className:`icon-btn`,onClick:n,title:`Close`,children:`✕`})]}),i.kind===`action`?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(`div`,{className:`state-sub`,children:[`Payload`,i.payloadTruncated&&(0,Z.jsx)(`span`,{className:`badge warn`,title:`Shortened to 8 KB`,children:`TRUNCATED`})]}),o?(0,Z.jsx)(`pre`,{className:`state-payload`,children:JSON.stringify(o,null,2)}):(0,Z.jsx)(`div`,{className:`muted body-note`,children:`No payload.`}),i.burst?(0,Z.jsx)(`div`,{className:`state-note`,children:`Recorded during a burst (over 50 actions per second): only the action type is known, not what it changed.`}):(0,Z.jsx)(ff,{changes:a})]}):(0,Z.jsx)(`div`,{className:`muted body-note`,children:i.kind===`init`?`The store connected: its full state was recorded.`:`A snapshot of the full state${i.reason?` (${i.reason})`:``}.`})]})}function ff({changes:e}){let{rows:t,full:n,more:r,uncertain:i}=e;return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(`div`,{className:`state-sub`,children:[`Changed fields `,(0,Z.jsx)(`span`,{className:`muted`,children:r?`${t.length}+`:t.length})]}),n&&(0,Z.jsxs)(`div`,{className:`muted body-note`,children:[`The change was too big to record path by path (over 200 paths or 64 KB), so the full new state was recorded; these are the differences`,r?` (the first 100)`:``,`.`]}),i&&(0,Z.jsx)(`div`,{className:`state-note`,children:`Previous values may be incomplete: no full state of this store is known right before this action.`}),t.length?(0,Z.jsxs)(`table`,{className:`state-changes`,children:[(0,Z.jsx)(`thead`,{children:(0,Z.jsxs)(`tr`,{children:[(0,Z.jsx)(`th`,{children:`Path`}),(0,Z.jsx)(`th`,{children:`Previous → new`})]})}),(0,Z.jsx)(`tbody`,{children:t.map((e,t)=>(0,Z.jsxs)(`tr`,{children:[(0,Z.jsx)(`td`,{className:`state-path mono`,children:e.path||`(whole state)`}),(0,Z.jsxs)(`td`,{className:`state-values mono`,children:[e.hadPrev?(0,Z.jsx)(`span`,{className:`state-prev`,title:of(e.prev,2e3),children:of(e.prev)}):(0,Z.jsx)(`span`,{className:`state-added`,children:`(added)`}),(0,Z.jsx)(`span`,{className:`state-arrow`,children:` → `}),e.deleted?(0,Z.jsx)(`span`,{className:`state-deleted`,children:`(deleted)`}):(0,Z.jsx)(`span`,{className:`state-next`,title:of(e.next,2e3),children:of(e.next)})]})]},t))})]}):(0,Z.jsx)(`div`,{className:`muted body-note`,children:`No state change.`})]})}function Q({history:e,time:t}){let n=e.indexAt(t),r=(0,l.useMemo)(()=>e.at(n),[e,n]),i=n>=0?e.items[n]:void 0,a=r.base>=0?e.items[r.base]:void 0;return i?(0,Z.jsxs)(`div`,{className:`state-root`,children:[(0,Z.jsxs)(`div`,{className:`state-basis`,children:[`after `,(0,Z.jsx)(`span`,{className:`mono`,children:nf(i.data)}),` at `,fe(i.offset)]}),r.uncertain&&(0,Z.jsx)(`div`,{className:`state-note`,children:cf}),r.base<0&&(0,Z.jsx)(`div`,{className:`state-note`,children:`No full state of this store was recorded before this moment: only the changes since are shown.`}),a?.data.truncated&&(0,Z.jsx)(`div`,{className:`muted body-note`,children:`Branches over 1 MB were not recorded: they show as notes.`}),(0,Z.jsx)(hf,{name:e.store,value:r.state,depth:0})]}):(0,Z.jsx)(`div`,{className:`state-root`,children:(0,Z.jsxs)(`div`,{className:`state-basis`,children:[(0,Z.jsx)(`span`,{className:`mono`,children:e.store}),`: no state yet, its first record is at `,fe(e.items[0].offset)]})})}var pf=200,mf=1e3,hf=(0,l.memo)(function e({name:t,value:n,depth:r}){let[i,a]=(0,l.useState)(r<2),[o,s]=(0,l.useState)(pf);if(typeof n!=`object`||!n)return(0,Z.jsxs)(`div`,{className:`tree-row`,children:[(0,Z.jsx)(`span`,{className:`tree-caret`}),(0,Z.jsx)(`span`,{className:`tree-key`,children:t}),`: `,(0,Z.jsx)(gf,{value:n})]});let c=Array.isArray(n)?n:null,u=n,d=c?null:Object.keys(u),f=c?c.length:d.length,p=c?f?`Array(${f})`:`[]`:f?`{…} ${f} ${f===1?`key`:`keys`}`:`{}`,m=Math.min(f,o);return(0,Z.jsxs)(`div`,{className:`tree-node`,children:[(0,Z.jsxs)(`div`,{className:f?`tree-row toggle`:`tree-row`,onClick:f?()=>a(!i):void 0,children:[(0,Z.jsx)(`span`,{className:`tree-caret`,children:f?i?`▾`:`▸`:``}),(0,Z.jsx)(`span`,{className:`tree-key`,children:t}),`: `,(0,Z.jsx)(`span`,{className:`tree-summary`,children:p})]}),i&&f>0&&(0,Z.jsxs)(`div`,{className:`tree-children`,children:[c?Array.from({length:m},(t,n)=>(0,Z.jsx)(e,{name:String(n),value:c[n],depth:r+1},n)):d.slice(0,m).map(t=>(0,Z.jsx)(e,{name:t,value:u[t],depth:r+1},t)),f>m&&(0,Z.jsxs)(`button`,{className:`tree-more`,onClick:()=>s(e=>e+pf),children:[`show `,Math.min(pf,f-m).toLocaleString(`en-US`),` more (`,(f-m).toLocaleString(`en-US`),` not shown)`]})]})]})});function gf({value:e}){if(typeof e==`string`){if(af(e))return(0,Z.jsx)(`span`,{className:`tree-note`,title:`This branch was over 1 MB and was not recorded`,children:e});let t=e.length>mf;return(0,Z.jsx)(`span`,{className:`tree-str`,title:t?`${e.length.toLocaleString(`en-US`)} characters`:void 0,children:JSON.stringify(t?`${e.slice(0,mf)}…`:e)})}return typeof e==`number`?(0,Z.jsx)(`span`,{className:`tree-num`,children:String(e)}):typeof e==`boolean`?(0,Z.jsx)(`span`,{className:`tree-bool`,children:String(e)}):(0,Z.jsx)(`span`,{className:`tree-null`,children:e===null?`null`:`undefined`})}var _f={page:`◰`,click:`◉`,rage:`✸`,change:`✎`,submit:`⏎`,error:`!`,"net-error":`⇄`,marker:`⚑`,custom:`★`,identify:`@`,freeze:`◔`},vf={all:`All`,api:`Fetch/XHR`,doc:`Doc`,other:`Assets`,ws:`WS`,failed:`Failed`},yf=[];function bf({data:e,time:t,onSeek:n}){let[r,i]=(0,l.useState)(`events`),[a,o]=(0,l.useState)(``),[s,c]=(0,l.useState)(null),[u,d]=(0,l.useState)(!0),[f,p]=(0,l.useState)(`all`),m=a.trim().toLowerCase(),h=(0,l.useMemo)(()=>e.story.filter(e=>!m||`${e.title} ${e.detail??``}`.toLowerCase().includes(m)),[e,m]),g=(0,l.useMemo)(()=>e.network.filter(e=>{let t=e.data;return f===`api`&&t.kind!==`fetch`&&t.kind!==`xhr`&&t.kind!==`beacon`||f===`doc`&&t.kind!==`navigation`||f===`other`&&t.kind!==`resource`||f===`ws`&&t.kind!==`websocket`||f===`failed`&&!tu(t)?!1:!m||`${t.method} ${t.url} ${t.status??``} ${t.kind===`websocket`?`ws websocket`:``}`.toLowerCase().includes(m)}),[e,m,f]),_=(0,l.useMemo)(()=>e.console.filter(e=>!m||String(e.data.text??``).toLowerCase().includes(m)),[e,m]),v=(0,l.useMemo)(()=>e.network.filter(e=>tu(e.data)).length,[e]),y=(0,l.useMemo)(()=>e.console.filter(e=>e.data.level===`error`).length,[e]),b=(0,l.useMemo)(()=>e.state.filter(e=>e.data.kind===`action`).length,[e]),x=(e,t)=>{c(t),n(e+50)},S=r===`network`?Gu(e.network,s):void 0,C=S?.data.kind===`websocket`?S.data.id:void 0;return(0,Z.jsxs)(`aside`,{className:`side`,children:[(0,Z.jsxs)(`nav`,{className:`tabs`,children:[(0,Z.jsx)(xf,{active:r===`events`,onClick:()=>i(`events`),label:`Events`,count:e.story.length}),(0,Z.jsx)(xf,{active:r===`network`,onClick:()=>i(`network`),label:`Network`,count:e.network.length,alert:v}),(0,Z.jsx)(xf,{active:r===`console`,onClick:()=>i(`console`),label:`Console`,count:e.console.length,alert:y}),(0,Z.jsx)(xf,{active:r===`state`,onClick:()=>i(`state`),label:`State`,count:b})]}),(0,Z.jsxs)(`div`,{className:`side-toolbar`,children:[(0,Z.jsx)(`input`,{className:`search`,placeholder:`Filter ${r}…`,value:a,onChange:e=>o(e.target.value)}),(0,Z.jsxs)(`label`,{className:`follow`,title:`Keep the item at the playhead in view`,children:[(0,Z.jsx)(`input`,{type:`checkbox`,checked:u,onChange:e=>d(e.target.checked)}),` Follow`]})]}),r===`network`&&(0,Z.jsx)(`div`,{className:`chips`,children:Object.keys(vf).map(e=>(0,Z.jsx)(`button`,{className:f===e?`on`:``,onClick:()=>p(e),children:vf[e]},e))}),r===`events`&&(0,Z.jsx)(bd,{items:h,time:t,follow:u,selected:s,empty:`No events recorded.`,onPick:e=>x(e.offset,e.key),children:e=>(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`span`,{className:`story-icon ${e.kind}`,children:_f[e.kind]}),(0,Z.jsxs)(`div`,{className:`row-main`,children:[(0,Z.jsx)(`div`,{className:`row-title`,children:e.title}),e.detail&&(0,Z.jsx)(`div`,{className:`row-detail`,children:e.detail}),e.key===s&&e.payload&&Object.keys(e.payload).length>0&&(0,Z.jsx)(`pre`,{className:`stack`,children:JSON.stringify(e.payload,null,2)})]})]})}),r===`network`&&(0,Z.jsxs)(`div`,{className:`network-split ${S?`with-detail`:``}`,children:[(0,Z.jsx)(bd,{items:g,time:t,follow:u&&!S,selected:S?.key??s,empty:`No requests.`,onPick:e=>x(e.offset,e.key),children:t=>(0,Z.jsx)(Sf,{item:t,frames:t.data.kind===`websocket`?e.ws.get(t.data.id):void 0})}),S&&(0,Z.jsx)(Td,{item:S,frames:C===void 0?void 0:e.ws.get(C)??yf,start:e.start,time:t,onSeek:n,onClose:()=>c(null)},C===void 0?S.key:Wu(C))]}),r===`console`&&(0,Z.jsx)(bd,{items:_,time:t,follow:u,selected:s,empty:`No console output.`,onPick:e=>x(e.offset,e.key),children:e=>(0,Z.jsx)(Cf,{item:e,expanded:e.key===s})}),r===`state`&&(0,Z.jsx)(lf,{items:e.state,stores:e.stores,time:t,follow:u,query:m,selected:s,onPick:e=>x(e.offset,e.key),onClose:()=>c(null)})]})}function xf({active:e,onClick:t,label:n,count:r,alert:i}){return(0,Z.jsxs)(`button`,{className:e?`on`:``,onClick:t,children:[n,` `,(0,Z.jsx)(`span`,{className:`count`,children:r}),!!i&&(0,Z.jsx)(`span`,{className:`alert`,children:i})]})}function Sf({item:e,frames:t}){let n=e.data,{host:r,path:i}=ve(n.url),a=eu(n);if(n.kind===`websocket`){let o=n.frames??xu(t??yf),s=!!n.error&&!o.sent&&!o.received;return(0,Z.jsxs)(`div`,{className:`row-main`,children:[(0,Z.jsxs)(`div`,{className:`row-title net-title`,children:[(0,Z.jsx)(`span`,{className:`status ${ru(n)}`,children:nu(n)}),(0,Z.jsx)(`span`,{className:`method`,children:`WS`}),(0,Z.jsx)(`span`,{className:`path`,title:n.url,children:e.placeholder?`WebSocket (open)`:i})]}),(0,Z.jsxs)(`div`,{className:`row-detail`,children:[r&&`${r} · `,`websocket`,!s&&` · ${Su(o)}`,a&&(0,Z.jsxs)(`span`,{className:`bad`,title:a,children:[` `,`· `,a]})]})]})}let o=iu(n);return(0,Z.jsxs)(`div`,{className:`row-main`,children:[(0,Z.jsxs)(`div`,{className:`row-title net-title`,children:[(0,Z.jsx)(`span`,{className:`status ${ru(n)}`,children:nu(n)}),(0,Z.jsx)(`span`,{className:`method`,children:n.method}),(0,Z.jsx)(`span`,{className:`path`,title:n.url,children:i})]}),(0,Z.jsxs)(`div`,{className:`row-detail`,children:[r,` · `,n.kind===`resource`?n.initiator??`resource`:n.kind,n.duration!==void 0&&` · ${pe(n.duration)}`,n.resSize??n.transferSize?` · ${O(n.resSize??n.transferSize)}`:``,o&&` · ${o}`,a&&(0,Z.jsxs)(`span`,{className:`bad`,title:a,children:[` `,`· `,a]})]})]})}function Cf({item:e,expanded:t}){let n=e.data,r=n.url?`${ve(n.url).path}${n.line?`:${n.line}`:``}`:``;return(0,Z.jsxs)(`div`,{className:`row-main console-row ${n.level}`,children:[(0,Z.jsxs)(`div`,{className:`row-title`,children:[(0,Z.jsx)(`span`,{className:`level ${n.level}`,children:n.level}),(0,Z.jsx)(`span`,{className:t?`console-text full`:`console-text`,children:n.text})]}),t&&(0,Z.jsxs)(Z.Fragment,{children:[r&&(0,Z.jsx)(`div`,{className:`row-detail mono`,children:r}),n.stack&&(0,Z.jsx)(`pre`,{className:`stack`,children:n.stack}),n.args&&n.args.some(e=>typeof e==`object`&&!!e)&&(0,Z.jsx)(`pre`,{className:`stack`,children:JSON.stringify(n.args,null,2)})]})]})}var wf=50,Tf={LCP:`the moment the largest element rendered`,CLS:`the largest layout shift`,INP:`the slowest interaction`},Ef={LCP:`LCP was not collected for this page, for example because recording started after the page loaded and the browser had no buffered entry.`,CLS:`CLS was not collected for this page: no layout shift was reported.`,INP:`INP was not collected for this page: no interaction was measured.`};function Df({data:e,time:t,onSeek:n}){if(!e.vitals.length)return null;let r=Fu(e.vitalPages,t);return(0,Z.jsx)(`div`,{className:`vitals`,role:`group`,"aria-label":`Web Vitals of this page`,children:ju.map(t=>{let i=r?.metrics[t];if(!i)return(0,Z.jsxs)(`span`,{className:`vital missing`,title:Ef[t],children:[t,` `,(0,Z.jsx)(`b`,{children:`missing`})]},t);let a=Bu(t,i.data.value),o=[`${zu[t]}: ${a} (${Ru[i.data.rating]??i.data.rating})`,...Hu(i.data),`Click to jump to ${Tf[t]}.`];return(0,Z.jsxs)(`button`,{className:`vital ${i.data.rating}`,title:o.join(`
|
|
145
|
+
`),onClick:()=>n(Lu(i)-e.start+wf),children:[t,` `,(0,Z.jsx)(`b`,{children:a})]},t)})})}function Of({data:e,time:t}){if(!e.vitals.length)return null;let n=Fu(e.vitalPages,t);return!n||!Iu(n,t)?null:(0,Z.jsxs)(`div`,{className:`vitals-hint`,children:[`SPA route change: LCP and CLS are not reset without a page load, so the chips still describe the load of`,` `,(0,Z.jsx)(`span`,{className:`mono`,children:ve(n.url).path}),`.`]})}function kf({data:e,fallbackUrl:t,initialTime:n=0,range:r,onRangeChange:i,live:a}){let[o,s]=(0,l.useState)(n),c=(0,l.useRef)(null),u=(0,l.useRef)(o);u.current=o;let d=(0,l.useRef)(r);d.current=r;let f=(0,l.useCallback)(e=>c.current?.seek(e),[]),p=(0,l.useRef)(n);(0,l.useEffect)(()=>{p.current!==n&&(p.current=n,c.current?.seek(n))},[n]),(0,l.useEffect)(()=>{let t=t=>{if(t.target.closest(`input, textarea, select, dialog`)||t.metaKey||t.ctrlKey||t.altKey)return;let n=Math.round(u.current),r=d.current;switch(t.key){case` `:t.preventDefault(),c.current?.toggle();break;case`ArrowRight`:c.current?.nudge(5e3);break;case`ArrowLeft`:c.current?.nudge(-5e3);break;case`[`:i({from:n,to:r&&r.to>n?r.to:Math.max(e.duration,n)});break;case`]`:i({from:r&&r.from<n?r.from:0,to:n});break;case`Escape`:r&&i(null)}};return addEventListener(`keydown`,t),()=>removeEventListener(`keydown`,t)},[e,i]);let m=e.pages[Math.max(ed(e.pages,o),0)]?.url??t??``;return(0,Z.jsxs)(`div`,{className:`player-body`,children:[(0,Z.jsxs)(`div`,{className:`stage-col`,children:[(0,Z.jsxs)(`div`,{className:`urlbar`,children:[(0,Z.jsx)(`span`,{className:`lock`,children:m.startsWith(`https:`)?`🔒`:`ⓘ`}),(0,Z.jsx)(`span`,{className:`mono ellipsis`,children:m}),e.skipped>0&&(0,Z.jsx)(`span`,{className:`badge warn`,children:`replay starts at the oldest snapshot still on disk`}),(0,Z.jsx)(Df,{data:e,time:o,onSeek:f}),(0,Z.jsx)(pd,{data:e,time:o,onSeek:f})]}),(0,Z.jsx)(Of,{data:e,time:o}),(0,Z.jsx)(vd,{ref:c,data:e,onTime:s,initialTime:n,range:r,onRangeChange:i,live:a})]}),(0,Z.jsx)(bf,{data:e,time:o,onSeek:f})]})}var Af=3e4;function jf(e){return!e.endedAt&&!!e.lastWriteAt&&Date.now()-e.lastWriteAt<Af}function Mf(e){let t=e.endedAt??e.lastTs??e.startedAt;return Math.max(0,t-e.startedAt)}function Nf(){let[e,t]=(0,l.useState)(null),[n,r]=(0,l.useState)(null),[i,a]=(0,l.useState)(``),[o,s]=(0,l.useState)(``),c=(0,l.useCallback)(async()=>{try{let[e,n]=await Promise.all([x(),S()]);r(e),t(n),a(``)}catch(e){a(e instanceof Error?e.message:String(e))}},[]);(0,l.useEffect)(()=>{c();let e=setInterval(()=>void c(),5e3);return()=>clearInterval(e)},[c]);let u=async e=>{if(confirm(`Delete the recording of “${e.title||e.url||e.id}”?`)){try{await ie(e.id)}catch(e){a(e instanceof Error?e.message:String(e))}await c()}},d=o.trim().toLowerCase(),f=(e??[]).filter(e=>!d||`${e.title} ${e.url} ${e.lastUrl} ${e.id} ${e.userId??``}`.toLowerCase().includes(d)),p=n?Math.min(1,n.totalBytes/n.maxBytes):0;return(0,Z.jsxs)(`div`,{className:`sessions-page`,children:[(0,Z.jsxs)(`header`,{className:`topbar`,children:[(0,Z.jsxs)(`div`,{className:`brand`,children:[(0,Z.jsx)(`span`,{className:`logo`}),` tabtape `,(0,Z.jsx)(`span`,{className:`muted`,children:`session replay`})]}),n&&(0,Z.jsx)(Pf,{health:n,usage:p})]}),(0,Z.jsxs)(`main`,{className:`sessions-main`,children:[(0,Z.jsxs)(`div`,{className:`sessions-toolbar`,children:[(0,Z.jsx)(`h1`,{children:`Recordings`}),(0,Z.jsx)(`input`,{className:`search`,placeholder:`Filter by title, URL or user…`,value:o,onChange:e=>s(e.target.value)})]}),i&&(0,Z.jsxs)(`div`,{className:`banner error`,children:[`Cannot reach tabtape in the Repoburg daemon: `,i]}),e&&!e.length&&(0,Z.jsxs)(`div`,{className:`empty`,children:[(0,Z.jsx)(`div`,{className:`empty-dot`}),(0,Z.jsx)(`h2`,{children:`No recordings yet`}),(0,Z.jsxs)(`p`,{children:[`Open the `,(0,Z.jsx)(`strong`,{children:`tabtape`}),` extension on any tab and press `,(0,Z.jsx)(`strong`,{children:`Start recording`}),` (or `,(0,Z.jsx)(`kbd`,{children:`⌥`}),` `,(0,Z.jsx)(`kbd`,{children:`⇧`}),` `,(0,Z.jsx)(`kbd`,{children:`R`}),`).`]})]}),!!f.length&&(0,Z.jsxs)(`table`,{className:`sessions`,children:[(0,Z.jsx)(`thead`,{children:(0,Z.jsxs)(`tr`,{children:[(0,Z.jsx)(`th`,{children:`Started`}),(0,Z.jsx)(`th`,{children:`Page`}),(0,Z.jsx)(`th`,{children:`User`}),(0,Z.jsx)(`th`,{className:`num`,children:`Duration`}),(0,Z.jsx)(`th`,{className:`num`,children:`Pages`}),(0,Z.jsx)(`th`,{className:`num`,children:`Clicks`}),(0,Z.jsx)(`th`,{className:`num`,children:`Errors`}),(0,Z.jsx)(`th`,{className:`num`,children:`Failed requests`}),(0,Z.jsx)(`th`,{title:`Worst Web Vitals rating in the recording`,children:`Perf`}),(0,Z.jsx)(`th`,{className:`num`,children:`Size`}),(0,Z.jsx)(`th`,{})]})}),(0,Z.jsx)(`tbody`,{children:f.map(e=>{let{host:t,path:n}=ve(e.url??``);return(0,Z.jsxs)(`tr`,{onClick:()=>location.hash=`#/s/${e.id}`,children:[(0,Z.jsxs)(`td`,{className:`nowrap`,children:[_e(e.startedAt),(0,Z.jsx)(`div`,{className:`muted small`,children:ye(e.userAgent)})]}),(0,Z.jsxs)(`td`,{className:`page-cell`,children:[(0,Z.jsxs)(`div`,{className:`title`,children:[jf(e)&&(0,Z.jsx)(`a`,{className:`badge live`,href:`#/s/${e.id}?live=1`,title:`Watch live`,onClick:e=>e.stopPropagation(),children:`LIVE`}),e.truncated&&(0,Z.jsx)(`span`,{className:`badge warn`,title:`The ring buffer deleted the oldest part of this recording`,children:`TRIMMED`}),e.source===`buffer`&&(0,Z.jsx)(`span`,{className:`badge buffer`,title:`Saved from buffer mode`,children:`BUFFER`}),e.source===`automation`&&(0,Z.jsx)(`span`,{className:`badge buffer`,title:`Started by automation: a record link (Playwright MCP) or a Playwright script`,children:`AUTO`}),e.title||t||e.id]}),(0,Z.jsxs)(`div`,{className:`muted small ellipsis`,children:[t,n]})]}),(0,Z.jsx)(`td`,{className:`user-cell`,children:e.userId?(0,Z.jsx)(`span`,{className:`mono`,title:e.userId,children:e.userId}):(0,Z.jsx)(`span`,{className:`muted`,children:`—`})}),(0,Z.jsx)(`td`,{className:`num mono`,children:de(Mf(e))}),(0,Z.jsx)(`td`,{className:`num`,children:e.counts.pages}),(0,Z.jsx)(`td`,{className:`num`,children:e.counts.clicks}),(0,Z.jsx)(`td`,{className:`num ${e.counts.errors?`bad`:``}`,children:e.counts.errors}),(0,Z.jsx)(`td`,{className:`num ${e.counts.netErrors?`bad`:``}`,children:e.counts.netErrors}),(0,Z.jsx)(`td`,{children:(0,Z.jsx)(Ff,{rating:e.perf})}),(0,Z.jsxs)(`td`,{className:`num`,title:he(e.bytes,e.rawBytes)?`${O(e.bytes)} on disk, ${O(e.rawBytes)} uncompressed`:void 0,children:[O(e.bytes),he(e.bytes,e.rawBytes)&&(0,Z.jsxs)(`div`,{className:`muted small`,children:[O(e.rawBytes),` raw`]})]}),(0,Z.jsx)(`td`,{className:`actions`,children:(0,Z.jsx)(`button`,{className:`icon-btn`,title:`Delete recording`,onClick:t=>{t.stopPropagation(),u(e)},children:`✕`})})]},e.id)})})]})]})]})}function Pf({health:e,usage:t}){let n=he(e.totalBytes,e.rawBytes)?e.rawBytes:void 0,r=n?n/Math.max(e.totalBytes,1):0,i=[`Data directory: ${e.dir}`,`Segment size: ${O(e.segmentBytes)}`,e.compress?`Compression: ${e.compress}${r>=1.05?` (${r.toFixed(1)}× smaller on disk)`:``}`:``].filter(Boolean);return(0,Z.jsxs)(`div`,{className:`storage`,title:i.join(`
|
|
146
|
+
`),children:[(0,Z.jsx)(`div`,{className:`storage-text`,children:n?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`strong`,{children:O(e.totalBytes)}),` on disk · `,O(n),` raw · `,O(e.maxBytes),` ring buffer`]}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`strong`,{children:O(e.totalBytes)}),` of `,O(e.maxBytes),` ring buffer`]})}),(0,Z.jsx)(`div`,{className:`storage-bar`,children:(0,Z.jsx)(`div`,{style:{width:`${t*100}%`}})}),(0,Z.jsx)(`div`,{className:`muted mono small`,children:e.dir})]})}function Ff({rating:e}){return e?(0,Z.jsx)(`span`,{className:`rating ${e}`,children:Ru[e]??e}):(0,Z.jsx)(`span`,{className:`muted`,children:`—`})}var If=500,Lf=5e3,Rf=e=>e instanceof Error?e.message:String(e);function zf(e){let t=e.trim().replace(/\.+$/,``);return t?/live viewer/i.test(t)?`${t[0].toUpperCase()}${t.slice(1)}.`:`Too many live viewers (${t}).`:`Too many live viewers.`}function Bf({id:e,initialTime:t,live:n=!1}){let[r,i]=(0,l.useState)(null),[a,o]=(0,l.useState)(null),[s,c]=(0,l.useState)(0),[u,d]=(0,l.useState)(``),[f,p]=(0,l.useState)(0),[h,g]=(0,l.useState)(null),[v,y]=(0,l.useState)(()=>localStorage.getItem(`tabtape.reproLang`)===`tr`?`tr`:`en`),[b,x]=(0,l.useState)(``),[S,T]=(0,l.useState)(!1),[ne,re]=(0,l.useState)(!1),[ie,ae]=(0,l.useState)(n?`connecting`:`off`),[se,D]=(0,l.useState)(``),[le,ue]=(0,l.useState)(null),[fe,pe]=(0,l.useState)(!1),[he,ge]=(0,l.useState)(!1);(0,l.useEffect)(()=>{let t=!1;if(o(null),c(0),d(``),!n)return(async()=>{try{let n=await C(e);if(t)return;i(n);let r=await oe(e,e=>!t&&c(e));t||o(Ku(r))}catch(e){t||d(Rf(e))}})(),()=>{t=!0};let r=new AbortController,a=new m;ue(a),ae(`connecting`),pe(!1),ge(!1);let s,l=If,u=!1,f=!1,p=()=>{if(clearTimeout(s),s=void 0,t||!u)return;u=!1;let e=performance.now();o(Ku(a.records)),l=Math.max(If,4*(performance.now()-e))},h=()=>{t||(ae(`ended`),ge(!0),history.replaceState(history.state,``,`#/s/${encodeURIComponent(e)}`))},g=async()=>{p();let n=await C(e).catch(()=>null);t||(n&&i(n),!f&&(n?.endedAt?h():ae(`lost`)))};return(async()=>{try{let n=await C(e);if(t)return;i(n),await ce(e,{onProgress:e=>!t&&c(e),onLive:e=>{a.push(e),u=!0,p(),ae(`live`)},onRecords:e=>{a.push(e),u=!0,s??=setTimeout(p,l)},onTrimmed:()=>pe(!0),onEnded:()=>{f=!0,p(),h()}},r.signal),t||await g()}catch(e){if(t)return;e instanceof _&&e.status===429?(D(e.message),ae(`busy`)):a.records.length?await g():d(Rf(e))}})(),()=>{t=!0,r.abort(),clearTimeout(s)}},[e,n,f]),(0,l.useEffect)(()=>{if(ie!==`live`)return;let t=setInterval(()=>void C(e).then(i,()=>{}),Lf);return()=>clearInterval(t)},[e,ie]),(0,l.useEffect)(()=>{if(!b)return;let e=setTimeout(()=>x(``),3500);return()=>clearTimeout(e)},[b]);let be=(0,l.useMemo)(()=>le?{feed:le,streaming:ie===`live`}:void 0,[le,ie]),{host:xe}=ve(r?.url??``),k=()=>p(e=>e+1),A=async()=>{try{let t=await te(e,{...h,lang:v});await navigator.clipboard.writeText(t.markdown);let n=h?`${de(h.from)}–${de(h.to)}`:`the whole recording`;x(`Copied ${t.steps} step${t.steps===1?``:`s`} for ${n} as markdown`)}catch(e){x(`Could not copy the steps: ${Rf(e)}`)}},Se=e=>{y(e),localStorage.setItem(`tabtape.reproLang`,e)},Ce=!!r&&jf(r)&&ie!==`ended`;return(0,Z.jsxs)(`div`,{className:`player-page`,children:[(0,Z.jsxs)(`header`,{className:`topbar`,children:[(0,Z.jsx)(`a`,{className:`back`,href:`#/`,children:`← Recordings`}),(0,Z.jsxs)(`div`,{className:`session-title`,children:[(0,Z.jsxs)(`div`,{className:`title`,children:[ie===`live`?(0,Z.jsx)(`span`,{className:`badge live`,title:`Watching live`,children:`LIVE`}):Ce&&!n&&(0,Z.jsx)(`a`,{className:`badge live`,href:`#/s/${encodeURIComponent(e)}?live=1`,title:`Watch live`,children:`LIVE`}),r?.truncated&&(0,Z.jsx)(`span`,{className:`badge warn`,title:`The ring buffer deleted the oldest part of this recording`,children:`TRIMMED`}),r?.source===`buffer`&&(0,Z.jsx)(`span`,{className:`badge buffer`,title:`Saved from buffer mode`,children:`BUFFER`}),r?.title||xe||e]}),r&&(0,Z.jsxs)(`div`,{className:`muted small`,children:[_e(r.startedAt),` · `,de(Mf(r)),` · `,ye(r.userAgent),` · `,r.counts.total.toLocaleString(),` events ·`,` `,me(r.bytes,r.rawBytes),r.userId&&(0,Z.jsxs)(Z.Fragment,{children:[` `,`· user `,(0,Z.jsx)(`span`,{className:`mono`,children:r.userId})]})]})]}),(0,Z.jsxs)(`div`,{className:`header-actions`,children:[Ce&&!n&&(0,Z.jsx)(`button`,{className:`chip-btn`,onClick:k,children:`Reload`}),(0,Z.jsxs)(`div`,{className:`split-btn`,title:h?`Steps for the selected range`:`Steps for the whole recording`,children:[(0,Z.jsx)(`button`,{className:`chip-btn`,onClick:()=>void A(),disabled:!a,children:`Copy steps`}),(0,Z.jsxs)(`select`,{value:v,onChange:e=>Se(e.target.value),"aria-label":`Language of the steps`,children:[(0,Z.jsx)(`option`,{value:`en`,children:`EN`}),(0,Z.jsx)(`option`,{value:`tr`,children:`TR`})]})]}),(0,Z.jsx)(`button`,{className:`chip-btn`,onClick:()=>T(!0),disabled:!r,children:`Download HTML`}),(0,Z.jsxs)(`div`,{className:`split-btn`,title:`HAR 1.2 of the network requests${h?` in the selected range`:``}, for Chrome DevTools, Charles or Proxyman. Sanitized: sensitive headers removed.`,children:[(0,Z.jsx)(`a`,{className:`chip-btn`,href:E(e,{secrets:ne,range:h}),download:`tabtape-${e}.har`,children:`Download HAR`}),(0,Z.jsxs)(`select`,{value:ne?`secrets`:`sanitized`,onChange:e=>re(e.target.value===`secrets`),"aria-label":`Sensitive headers in the HAR`,children:[(0,Z.jsx)(`option`,{value:`sanitized`,children:`sanitized`}),(0,Z.jsx)(`option`,{value:`secrets`,children:`with secrets`})]})]}),(0,Z.jsxs)(`div`,{className:`split-btn`,children:[(0,Z.jsx)(`a`,{className:`chip-btn`,href:ee(e),download:`${e}.jsonl`,children:`Download JSONL`}),(0,Z.jsx)(`a`,{className:`chip-btn`,href:w(e),download:`${e}.jsonl.gz`,title:`Download the JSONL gzip-compressed (.jsonl.gz)`,children:`.gz`})]})]})]}),u&&(0,Z.jsxs)(`div`,{className:`banner error`,children:[`Could not load this recording: `,u]}),ie===`busy`&&(0,Z.jsxs)(`div`,{className:`banner error`,children:[(0,Z.jsxs)(`span`,{children:[zf(se),` Close another live window and try again.`]}),(0,Z.jsxs)(`span`,{className:`banner-actions`,children:[(0,Z.jsx)(`button`,{className:`chip-btn`,onClick:k,children:`Try again`}),(0,Z.jsx)(`a`,{className:`chip-btn`,href:`#/s/${encodeURIComponent(e)}`,children:`Open without live updates`})]})]}),ie===`lost`&&(0,Z.jsxs)(`div`,{className:`banner warn`,children:[(0,Z.jsx)(`span`,{children:`The live connection was lost. The replay shows what arrived until then.`}),(0,Z.jsx)(`span`,{className:`banner-actions`,children:(0,Z.jsx)(`button`,{className:`chip-btn`,onClick:k,children:`Reconnect`})})]}),fe&&(0,Z.jsxs)(`div`,{className:`banner warn`,children:[(0,Z.jsx)(`span`,{children:`Recording trimmed: the ring buffer deleted data before this window could load it. The replay may be incomplete until the next full snapshot.`}),(0,Z.jsx)(`button`,{className:`icon-btn`,onClick:()=>pe(!1),title:`Dismiss`,children:`✕`})]}),he&&(0,Z.jsxs)(`div`,{className:`banner info`,children:[(0,Z.jsx)(`span`,{children:`Recording ended. This is now a normal replay of the whole recording.`}),(0,Z.jsx)(`button`,{className:`icon-btn`,onClick:()=>ge(!1),title:`Dismiss`,children:`✕`})]}),!u&&!a&&ie!==`busy`&&(0,Z.jsxs)(`div`,{className:`loading`,children:[(0,Z.jsx)(`div`,{className:`spinner`}),n?`Connecting to the live recording…`:`Loading recording…`,` `,r?`${O(s)} of ${O(r.rawBytes||r.bytes)}`:``]}),a&&(0,Z.jsx)(kf,{data:a,fallbackUrl:r?.url,initialTime:t,range:h,onRangeChange:g,live:be},f),b&&(0,Z.jsx)(`div`,{className:`toast`,children:b}),S&&r&&(0,Z.jsx)(ad,{meta:r,range:h,onClose:()=>T(!1)})]})}function $(){let[e,t]=(0,l.useState)(location.hash);return(0,l.useEffect)(()=>{let e=()=>t(location.hash);return addEventListener(`hashchange`,e),()=>removeEventListener(`hashchange`,e)},[]),e}function Vf(){let e=$(),t=/^#\/s\/([\w-]+)(?:\?(.*))?$/.exec(e);if(!t)return(0,Z.jsx)(Nf,{});let n=new URLSearchParams(t[2]??``),r=n.get(`live`)===`1`,i=Number(n.get(`t`));return(0,Z.jsx)(Bf,{id:t[1],live:r,initialTime:!r&&Number.isFinite(i)&&i>0?i:void 0},r?`${t[1]}:live`:t[1])}(0,u.createRoot)(document.getElementById(`root`)).render((0,Z.jsx)(l.StrictMode,{children:(0,Z.jsx)(Vf,{})}));
|