@obsrviq/widgets 0.3.0 → 0.3.2
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.
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
"use strict";var ObsrviqReplayBundle=(()=>{var jS=Object.create;var Vs=Object.defineProperty;var VS=Object.getOwnPropertyDescriptor;var GS=Object.getOwnPropertyNames;var XS=Object.getPrototypeOf,KS=Object.prototype.hasOwnProperty;var Tr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),QS=(e,t)=>{for(var r in t)Vs(e,r,{get:t[r],enumerable:!0})},dm=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of GS(t))!KS.call(e,n)&&n!==r&&Vs(e,n,{get:()=>t[n],enumerable:!(a=VS(t,n))||a.enumerable});return e};var F=(e,t,r)=>(r=e!=null?jS(XS(e)):{},dm(t||!e||!e.__esModule?Vs(r,"default",{value:e,enumerable:!0}):r,e)),YS=e=>dm(Vs({},"__esModule",{value:!0}),e);var bm=Tr(oe=>{"use strict";var so=Symbol.for("react.element"),JS=Symbol.for("react.portal"),ZS=Symbol.for("react.fragment"),e0=Symbol.for("react.strict_mode"),t0=Symbol.for("react.profiler"),r0=Symbol.for("react.provider"),a0=Symbol.for("react.context"),n0=Symbol.for("react.forward_ref"),o0=Symbol.for("react.suspense"),s0=Symbol.for("react.memo"),i0=Symbol.for("react.lazy"),cm=Symbol.iterator;function l0(e){return e===null||typeof e!="object"?null:(e=cm&&e[cm]||e["@@iterator"],typeof e=="function"?e:null)}var mm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},hm=Object.assign,gm={};function cn(e,t,r){this.props=e,this.context=t,this.refs=gm,this.updater=r||mm}cn.prototype.isReactComponent={};cn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};cn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function xm(){}xm.prototype=cn.prototype;function Iu(e,t,r){this.props=e,this.context=t,this.refs=gm,this.updater=r||mm}var Mu=Iu.prototype=new xm;Mu.constructor=Iu;hm(Mu,cn.prototype);Mu.isPureReactComponent=!0;var fm=Array.isArray,vm=Object.prototype.hasOwnProperty,_u={current:null},ym={key:!0,ref:!0,__self:!0,__source:!0};function wm(e,t,r){var a,n={},o=null,i=null;if(t!=null)for(a in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)vm.call(t,a)&&!ym.hasOwnProperty(a)&&(n[a]=t[a]);var s=arguments.length-2;if(s===1)n.children=r;else if(1<s){for(var l=Array(s),d=0;d<s;d++)l[d]=arguments[d+2];n.children=l}if(e&&e.defaultProps)for(a in s=e.defaultProps,s)n[a]===void 0&&(n[a]=s[a]);return{$$typeof:so,type:e,key:o,ref:i,props:n,_owner:_u.current}}function u0(e,t){return{$$typeof:so,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ru(e){return typeof e=="object"&&e!==null&&e.$$typeof===so}function d0(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var pm=/\/+/g;function ku(e,t){return typeof e=="object"&&e!==null&&e.key!=null?d0(""+e.key):t.toString(36)}function Xs(e,t,r,a,n){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case so:case JS:i=!0}}if(i)return i=e,n=n(i),e=a===""?"."+ku(i,0):a,fm(n)?(r="",e!=null&&(r=e.replace(pm,"$&/")+"/"),Xs(n,t,r,"",function(d){return d})):n!=null&&(Ru(n)&&(n=u0(n,r+(!n.key||i&&i.key===n.key?"":(""+n.key).replace(pm,"$&/")+"/")+e)),t.push(n)),1;if(i=0,a=a===""?".":a+":",fm(e))for(var s=0;s<e.length;s++){o=e[s];var l=a+ku(o,s);i+=Xs(o,t,r,l,n)}else if(l=l0(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=a+ku(o,s++),i+=Xs(o,t,r,l,n);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Gs(e,t,r){if(e==null)return e;var a=[],n=0;return Xs(e,a,"","",function(o){return t.call(r,o,n++)}),a}function c0(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var wt={current:null},Ks={transition:null},f0={ReactCurrentDispatcher:wt,ReactCurrentBatchConfig:Ks,ReactCurrentOwner:_u};function Sm(){throw Error("act(...) is not supported in production builds of React.")}oe.Children={map:Gs,forEach:function(e,t,r){Gs(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Gs(e,function(){t++}),t},toArray:function(e){return Gs(e,function(t){return t})||[]},only:function(e){if(!Ru(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};oe.Component=cn;oe.Fragment=ZS;oe.Profiler=t0;oe.PureComponent=Iu;oe.StrictMode=e0;oe.Suspense=o0;oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=f0;oe.act=Sm;oe.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=hm({},e.props),n=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=_u.current),t.key!==void 0&&(n=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)vm.call(t,l)&&!ym.hasOwnProperty(l)&&(a[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)a.children=r;else if(1<l){s=Array(l);for(var d=0;d<l;d++)s[d]=arguments[d+2];a.children=s}return{$$typeof:so,type:e.type,key:n,ref:o,props:a,_owner:i}};oe.createContext=function(e){return e={$$typeof:a0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:r0,_context:e},e.Consumer=e};oe.createElement=wm;oe.createFactory=function(e){var t=wm.bind(null,e);return t.type=e,t};oe.createRef=function(){return{current:null}};oe.forwardRef=function(e){return{$$typeof:n0,render:e}};oe.isValidElement=Ru;oe.lazy=function(e){return{$$typeof:i0,_payload:{_status:-1,_result:e},_init:c0}};oe.memo=function(e,t){return{$$typeof:s0,type:e,compare:t===void 0?null:t}};oe.startTransition=function(e){var t=Ks.transition;Ks.transition={};try{e()}finally{Ks.transition=t}};oe.unstable_act=Sm;oe.useCallback=function(e,t){return wt.current.useCallback(e,t)};oe.useContext=function(e){return wt.current.useContext(e)};oe.useDebugValue=function(){};oe.useDeferredValue=function(e){return wt.current.useDeferredValue(e)};oe.useEffect=function(e,t){return wt.current.useEffect(e,t)};oe.useId=function(){return wt.current.useId()};oe.useImperativeHandle=function(e,t,r){return wt.current.useImperativeHandle(e,t,r)};oe.useInsertionEffect=function(e,t){return wt.current.useInsertionEffect(e,t)};oe.useLayoutEffect=function(e,t){return wt.current.useLayoutEffect(e,t)};oe.useMemo=function(e,t){return wt.current.useMemo(e,t)};oe.useReducer=function(e,t,r){return wt.current.useReducer(e,t,r)};oe.useRef=function(e){return wt.current.useRef(e)};oe.useState=function(e){return wt.current.useState(e)};oe.useSyncExternalStore=function(e,t,r){return wt.current.useSyncExternalStore(e,t,r)};oe.useTransition=function(){return wt.current.useTransition()};oe.version="18.3.1"});var fe=Tr((_M,Cm)=>{"use strict";Cm.exports=bm()});var Nm=Tr(Ee=>{"use strict";function Nu(e,t){var r=e.length;e.push(t);e:for(;0<r;){var a=r-1>>>1,n=e[a];if(0<Qs(n,t))e[a]=t,e[r]=n,r=a;else break e}}function ir(e){return e.length===0?null:e[0]}function Js(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var a=0,n=e.length,o=n>>>1;a<o;){var i=2*(a+1)-1,s=e[i],l=i+1,d=e[l];if(0>Qs(s,r))l<n&&0>Qs(d,s)?(e[a]=d,e[l]=r,a=l):(e[a]=s,e[i]=r,a=i);else if(l<n&&0>Qs(d,r))e[a]=d,e[l]=r,a=l;else break e}}return t}function Qs(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Lm=performance,Ee.unstable_now=function(){return Lm.now()}):(Eu=Date,km=Eu.now(),Ee.unstable_now=function(){return Eu.now()-km});var Lm,Eu,km,Cr=[],Yr=[],p0=1,jt=null,dt=3,Zs=!1,_a=!1,lo=!1,_m=typeof setTimeout=="function"?setTimeout:null,Rm=typeof clearTimeout=="function"?clearTimeout:null,Im=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Au(e){for(var t=ir(Yr);t!==null;){if(t.callback===null)Js(Yr);else if(t.startTime<=e)Js(Yr),t.sortIndex=t.expirationTime,Nu(Cr,t);else break;t=ir(Yr)}}function Du(e){if(lo=!1,Au(e),!_a)if(ir(Cr)!==null)_a=!0,Fu(Ou);else{var t=ir(Yr);t!==null&&Bu(Du,t.startTime-e)}}function Ou(e,t){_a=!1,lo&&(lo=!1,Rm(uo),uo=-1),Zs=!0;var r=dt;try{for(Au(t),jt=ir(Cr);jt!==null&&(!(jt.expirationTime>t)||e&&!Tm());){var a=jt.callback;if(typeof a=="function"){jt.callback=null,dt=jt.priorityLevel;var n=a(jt.expirationTime<=t);t=Ee.unstable_now(),typeof n=="function"?jt.callback=n:jt===ir(Cr)&&Js(Cr),Au(t)}else Js(Cr);jt=ir(Cr)}if(jt!==null)var o=!0;else{var i=ir(Yr);i!==null&&Bu(Du,i.startTime-t),o=!1}return o}finally{jt=null,dt=r,Zs=!1}}var ei=!1,Ys=null,uo=-1,Em=5,Pm=-1;function Tm(){return!(Ee.unstable_now()-Pm<Em)}function Pu(){if(Ys!==null){var e=Ee.unstable_now();Pm=e;var t=!0;try{t=Ys(!0,e)}finally{t?io():(ei=!1,Ys=null)}}else ei=!1}var io;typeof Im=="function"?io=function(){Im(Pu)}:typeof MessageChannel<"u"?(Tu=new MessageChannel,Mm=Tu.port2,Tu.port1.onmessage=Pu,io=function(){Mm.postMessage(null)}):io=function(){_m(Pu,0)};var Tu,Mm;function Fu(e){Ys=e,ei||(ei=!0,io())}function Bu(e,t){uo=_m(function(){e(Ee.unstable_now())},t)}Ee.unstable_IdlePriority=5;Ee.unstable_ImmediatePriority=1;Ee.unstable_LowPriority=4;Ee.unstable_NormalPriority=3;Ee.unstable_Profiling=null;Ee.unstable_UserBlockingPriority=2;Ee.unstable_cancelCallback=function(e){e.callback=null};Ee.unstable_continueExecution=function(){_a||Zs||(_a=!0,Fu(Ou))};Ee.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Em=0<e?Math.floor(1e3/e):5};Ee.unstable_getCurrentPriorityLevel=function(){return dt};Ee.unstable_getFirstCallbackNode=function(){return ir(Cr)};Ee.unstable_next=function(e){switch(dt){case 1:case 2:case 3:var t=3;break;default:t=dt}var r=dt;dt=t;try{return e()}finally{dt=r}};Ee.unstable_pauseExecution=function(){};Ee.unstable_requestPaint=function(){};Ee.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=dt;dt=e;try{return t()}finally{dt=r}};Ee.unstable_scheduleCallback=function(e,t,r){var a=Ee.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?a+r:a):r=a,e){case 1:var n=-1;break;case 2:n=250;break;case 5:n=1073741823;break;case 4:n=1e4;break;default:n=5e3}return n=r+n,e={id:p0++,callback:t,priorityLevel:e,startTime:r,expirationTime:n,sortIndex:-1},r>a?(e.sortIndex=r,Nu(Yr,e),ir(Cr)===null&&e===ir(Yr)&&(lo?(Rm(uo),uo=-1):lo=!0,Bu(Du,r-a))):(e.sortIndex=n,Nu(Cr,e),_a||Zs||(_a=!0,Fu(Ou))),e};Ee.unstable_shouldYield=Tm;Ee.unstable_wrapCallback=function(e){var t=dt;return function(){var r=dt;dt=t;try{return e.apply(this,arguments)}finally{dt=r}}}});var Dm=Tr((EM,Am)=>{"use strict";Am.exports=Nm()});var zx=Tr(qt=>{"use strict";var m0=fe(),zt=Dm();function P(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var $h=new Set,To={};function qa(e,t){Tn(e,t),Tn(e+"Capture",t)}function Tn(e,t){for(To[e]=t,e=0;e<t.length;e++)$h.add(t[e])}var Br=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),id=Object.prototype.hasOwnProperty,h0=/^[: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]*$/,Om={},Fm={};function g0(e){return id.call(Fm,e)?!0:id.call(Om,e)?!1:h0.test(e)?Fm[e]=!0:(Om[e]=!0,!1)}function x0(e,t,r,a){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return a?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function v0(e,t,r,a){if(t===null||typeof t>"u"||x0(e,t,r,a))return!0;if(a)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ct(e,t,r,a,n,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=a,this.attributeNamespace=n,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var ot={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ot[e]=new Ct(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ot[t]=new Ct(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ot[e]=new Ct(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ot[e]=new Ct(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ot[e]=new Ct(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ot[e]=new Ct(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ot[e]=new Ct(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ot[e]=new Ct(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ot[e]=new Ct(e,5,!1,e.toLowerCase(),null,!1,!1)});var Zd=/[\-:]([a-z])/g;function ec(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Zd,ec);ot[t]=new Ct(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Zd,ec);ot[t]=new Ct(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Zd,ec);ot[t]=new Ct(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ot[e]=new Ct(e,1,!1,e.toLowerCase(),null,!1,!1)});ot.xlinkHref=new Ct("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ot[e]=new Ct(e,1,!1,e.toLowerCase(),null,!0,!0)});function tc(e,t,r,a){var n=ot.hasOwnProperty(t)?ot[t]:null;(n!==null?n.type!==0:a||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(v0(t,r,n,a)&&(r=null),a||n===null?g0(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):n.mustUseProperty?e[n.propertyName]=r===null?n.type===3?!1:"":r:(t=n.attributeName,a=n.attributeNamespace,r===null?e.removeAttribute(t):(n=n.type,r=n===3||n===4&&r===!0?"":""+r,a?e.setAttributeNS(a,t,r):e.setAttribute(t,r))))}var $r=m0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ti=Symbol.for("react.element"),mn=Symbol.for("react.portal"),hn=Symbol.for("react.fragment"),rc=Symbol.for("react.strict_mode"),ld=Symbol.for("react.profiler"),Hh=Symbol.for("react.provider"),Wh=Symbol.for("react.context"),ac=Symbol.for("react.forward_ref"),ud=Symbol.for("react.suspense"),dd=Symbol.for("react.suspense_list"),nc=Symbol.for("react.memo"),Zr=Symbol.for("react.lazy"),jh=Symbol.for("react.offscreen"),Bm=Symbol.iterator;function co(e){return e===null||typeof e!="object"?null:(e=Bm&&e[Bm]||e["@@iterator"],typeof e=="function"?e:null)}var $e=Object.assign,zu;function yo(e){if(zu===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);zu=t&&t[1]||""}return`
|
|
2
|
-
`+
|
|
3
|
-
`),o=
|
|
4
|
-
`),
|
|
5
|
-
`+n[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=i&&0<=s);break}}}finally{Uu=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?yo(e):""}function y0(e){switch(e.tag){case 5:return yo(e.type);case 16:return yo("Lazy");case 13:return yo("Suspense");case 19:return yo("SuspenseList");case 0:case 2:case 15:return e=qu(e.type,!1),e;case 11:return e=qu(e.type.render,!1),e;case 1:return e=qu(e.type,!0),e;default:return""}}function cd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case hn:return"Fragment";case mn:return"Portal";case ld:return"Profiler";case rc:return"StrictMode";case ud:return"Suspense";case dd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Wh:return(e.displayName||"Context")+".Consumer";case Hh:return(e._context.displayName||"Context")+".Provider";case ac:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case nc:return t=e.displayName||null,t!==null?t:cd(e.type)||"Memo";case Zr:t=e._payload,e=e._init;try{return cd(e(t))}catch{}}return null}function w0(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return cd(t);case 8:return t===rc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function pa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Vh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function S0(e){var t=Vh(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var n=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(i){a=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return a},setValue:function(i){a=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ri(e){e._valueTracker||(e._valueTracker=S0(e))}function Gh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),a="";return e&&(a=Vh(e)?e.checked?"true":"false":e.value),e=a,e!==r?(t.setValue(e),!0):!1}function Ei(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function fd(e,t){var r=t.checked;return $e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function zm(e,t){var r=t.defaultValue==null?"":t.defaultValue,a=t.checked!=null?t.checked:t.defaultChecked;r=pa(t.value!=null?t.value:r),e._wrapperState={initialChecked:a,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Xh(e,t){t=t.checked,t!=null&&tc(e,"checked",t,!1)}function pd(e,t){Xh(e,t);var r=pa(t.value),a=t.type;if(r!=null)a==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?md(e,t.type,r):t.hasOwnProperty("defaultValue")&&md(e,t.type,pa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Um(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type;if(!(a!=="submit"&&a!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function md(e,t,r){(t!=="number"||Ei(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var wo=Array.isArray;function In(e,t,r,a){if(e=e.options,t){t={};for(var n=0;n<r.length;n++)t["$"+r[n]]=!0;for(r=0;r<e.length;r++)n=t.hasOwnProperty("$"+e[r].value),e[r].selected!==n&&(e[r].selected=n),n&&a&&(e[r].defaultSelected=!0)}else{for(r=""+pa(r),t=null,n=0;n<e.length;n++){if(e[n].value===r){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function hd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(P(91));return $e({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function qm(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(P(92));if(wo(r)){if(1<r.length)throw Error(P(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:pa(r)}}function Kh(e,t){var r=pa(t.value),a=pa(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),a!=null&&(e.defaultValue=""+a)}function $m(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Qh(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function gd(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Qh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ai,Yh=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,a,n){MSApp.execUnsafeLocalFunction(function(){return e(t,r,a,n)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ai=ai||document.createElement("div"),ai.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ai.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function No(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Co={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},b0=["Webkit","ms","Moz","O"];Object.keys(Co).forEach(function(e){b0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Co[t]=Co[e]})});function Jh(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Co.hasOwnProperty(e)&&Co[e]?(""+t).trim():t+"px"}function Zh(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var a=r.indexOf("--")===0,n=Jh(r,t[r],a);r==="float"&&(r="cssFloat"),a?e.setProperty(r,n):e[r]=n}}var C0=$e({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xd(e,t){if(t){if(C0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(P(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(P(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(P(61))}if(t.style!=null&&typeof t.style!="object")throw Error(P(62))}}function vd(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 yd=null;function oc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wd=null,Mn=null,_n=null;function Hm(e){if(e=Yo(e)){if(typeof wd!="function")throw Error(P(280));var t=e.stateNode;t&&(t=nl(t),wd(e.stateNode,e.type,t))}}function eg(e){Mn?_n?_n.push(e):_n=[e]:Mn=e}function tg(){if(Mn){var e=Mn,t=_n;if(_n=Mn=null,Hm(e),t)for(e=0;e<t.length;e++)Hm(t[e])}}function rg(e,t){return e(t)}function ag(){}var $u=!1;function ng(e,t,r){if($u)return e(t,r);$u=!0;try{return rg(e,t,r)}finally{$u=!1,(Mn!==null||_n!==null)&&(ag(),tg())}}function Ao(e,t){var r=e.stateNode;if(r===null)return null;var a=nl(r);if(a===null)return null;r=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(P(231,t,typeof r));return r}var Sd=!1;if(Br)try{fn={},Object.defineProperty(fn,"passive",{get:function(){Sd=!0}}),window.addEventListener("test",fn,fn),window.removeEventListener("test",fn,fn)}catch{Sd=!1}var fn;function L0(e,t,r,a,n,o,i,s,l){var d=Array.prototype.slice.call(arguments,3);try{t.apply(r,d)}catch(u){this.onError(u)}}var Lo=!1,Pi=null,Ti=!1,bd=null,k0={onError:function(e){Lo=!0,Pi=e}};function I0(e,t,r,a,n,o,i,s,l){Lo=!1,Pi=null,L0.apply(k0,arguments)}function M0(e,t,r,a,n,o,i,s,l){if(I0.apply(this,arguments),Lo){if(Lo){var d=Pi;Lo=!1,Pi=null}else throw Error(P(198));Ti||(Ti=!0,bd=d)}}function $a(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function og(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Wm(e){if($a(e)!==e)throw Error(P(188))}function _0(e){var t=e.alternate;if(!t){if(t=$a(e),t===null)throw Error(P(188));return t!==e?null:e}for(var r=e,a=t;;){var n=r.return;if(n===null)break;var o=n.alternate;if(o===null){if(a=n.return,a!==null){r=a;continue}break}if(n.child===o.child){for(o=n.child;o;){if(o===r)return Wm(n),e;if(o===a)return Wm(n),t;o=o.sibling}throw Error(P(188))}if(r.return!==a.return)r=n,a=o;else{for(var i=!1,s=n.child;s;){if(s===r){i=!0,r=n,a=o;break}if(s===a){i=!0,a=n,r=o;break}s=s.sibling}if(!i){for(s=o.child;s;){if(s===r){i=!0,r=o,a=n;break}if(s===a){i=!0,a=o,r=n;break}s=s.sibling}if(!i)throw Error(P(189))}}if(r.alternate!==a)throw Error(P(190))}if(r.tag!==3)throw Error(P(188));return r.stateNode.current===r?e:t}function sg(e){return e=_0(e),e!==null?ig(e):null}function ig(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ig(e);if(t!==null)return t;e=e.sibling}return null}var lg=zt.unstable_scheduleCallback,jm=zt.unstable_cancelCallback,R0=zt.unstable_shouldYield,E0=zt.unstable_requestPaint,Ve=zt.unstable_now,P0=zt.unstable_getCurrentPriorityLevel,sc=zt.unstable_ImmediatePriority,ug=zt.unstable_UserBlockingPriority,Ni=zt.unstable_NormalPriority,T0=zt.unstable_LowPriority,dg=zt.unstable_IdlePriority,el=null,Mr=null;function N0(e){if(Mr&&typeof Mr.onCommitFiberRoot=="function")try{Mr.onCommitFiberRoot(el,e,void 0,(e.current.flags&128)===128)}catch{}}var fr=Math.clz32?Math.clz32:O0,A0=Math.log,D0=Math.LN2;function O0(e){return e>>>=0,e===0?32:31-(A0(e)/D0|0)|0}var ni=64,oi=4194304;function So(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ai(e,t){var r=e.pendingLanes;if(r===0)return 0;var a=0,n=e.suspendedLanes,o=e.pingedLanes,i=r&268435455;if(i!==0){var s=i&~n;s!==0?a=So(s):(o&=i,o!==0&&(a=So(o)))}else i=r&~n,i!==0?a=So(i):o!==0&&(a=So(o));if(a===0)return 0;if(t!==0&&t!==a&&(t&n)===0&&(n=a&-a,o=t&-t,n>=o||n===16&&(o&4194240)!==0))return t;if((a&4)!==0&&(a|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=a;0<t;)r=31-fr(t),n=1<<r,a|=e[r],t&=~n;return a}function F0(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function B0(e,t){for(var r=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-fr(o),s=1<<i,l=n[i];l===-1?((s&r)===0||(s&a)!==0)&&(n[i]=F0(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}function Cd(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function cg(){var e=ni;return ni<<=1,(ni&4194240)===0&&(ni=64),e}function Hu(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Ko(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-fr(t),e[t]=r}function z0(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var a=e.eventTimes;for(e=e.expirationTimes;0<r;){var n=31-fr(r),o=1<<n;t[n]=0,a[n]=-1,e[n]=-1,r&=~o}}function ic(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var a=31-fr(r),n=1<<a;n&t|e[a]&t&&(e[a]|=t),r&=~n}}var Le=0;function fg(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var pg,lc,mg,hg,gg,Ld=!1,si=[],oa=null,sa=null,ia=null,Do=new Map,Oo=new Map,ta=[],U0="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 submit".split(" ");function Vm(e,t){switch(e){case"focusin":case"focusout":oa=null;break;case"dragenter":case"dragleave":sa=null;break;case"mouseover":case"mouseout":ia=null;break;case"pointerover":case"pointerout":Do.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Oo.delete(t.pointerId)}}function fo(e,t,r,a,n,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:a,nativeEvent:o,targetContainers:[n]},t!==null&&(t=Yo(t),t!==null&&lc(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function q0(e,t,r,a,n){switch(t){case"focusin":return oa=fo(oa,e,t,r,a,n),!0;case"dragenter":return sa=fo(sa,e,t,r,a,n),!0;case"mouseover":return ia=fo(ia,e,t,r,a,n),!0;case"pointerover":var o=n.pointerId;return Do.set(o,fo(Do.get(o)||null,e,t,r,a,n)),!0;case"gotpointercapture":return o=n.pointerId,Oo.set(o,fo(Oo.get(o)||null,e,t,r,a,n)),!0}return!1}function xg(e){var t=Pa(e.target);if(t!==null){var r=$a(t);if(r!==null){if(t=r.tag,t===13){if(t=og(r),t!==null){e.blockedOn=t,gg(e.priority,function(){mg(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function wi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=kd(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var a=new r.constructor(r.type,r);yd=a,r.target.dispatchEvent(a),yd=null}else return t=Yo(r),t!==null&&lc(t),e.blockedOn=r,!1;t.shift()}return!0}function Gm(e,t,r){wi(e)&&r.delete(t)}function $0(){Ld=!1,oa!==null&&wi(oa)&&(oa=null),sa!==null&&wi(sa)&&(sa=null),ia!==null&&wi(ia)&&(ia=null),Do.forEach(Gm),Oo.forEach(Gm)}function po(e,t){e.blockedOn===t&&(e.blockedOn=null,Ld||(Ld=!0,zt.unstable_scheduleCallback(zt.unstable_NormalPriority,$0)))}function Fo(e){function t(n){return po(n,e)}if(0<si.length){po(si[0],e);for(var r=1;r<si.length;r++){var a=si[r];a.blockedOn===e&&(a.blockedOn=null)}}for(oa!==null&&po(oa,e),sa!==null&&po(sa,e),ia!==null&&po(ia,e),Do.forEach(t),Oo.forEach(t),r=0;r<ta.length;r++)a=ta[r],a.blockedOn===e&&(a.blockedOn=null);for(;0<ta.length&&(r=ta[0],r.blockedOn===null);)xg(r),r.blockedOn===null&&ta.shift()}var Rn=$r.ReactCurrentBatchConfig,Di=!0;function H0(e,t,r,a){var n=Le,o=Rn.transition;Rn.transition=null;try{Le=1,uc(e,t,r,a)}finally{Le=n,Rn.transition=o}}function W0(e,t,r,a){var n=Le,o=Rn.transition;Rn.transition=null;try{Le=4,uc(e,t,r,a)}finally{Le=n,Rn.transition=o}}function uc(e,t,r,a){if(Di){var n=kd(e,t,r,a);if(n===null)Qu(e,t,a,Oi,r),Vm(e,a);else if(q0(n,e,t,r,a))a.stopPropagation();else if(Vm(e,a),t&4&&-1<U0.indexOf(e)){for(;n!==null;){var o=Yo(n);if(o!==null&&pg(o),o=kd(e,t,r,a),o===null&&Qu(e,t,a,Oi,r),o===n)break;n=o}n!==null&&a.stopPropagation()}else Qu(e,t,a,null,r)}}var Oi=null;function kd(e,t,r,a){if(Oi=null,e=oc(a),e=Pa(e),e!==null)if(t=$a(e),t===null)e=null;else if(r=t.tag,r===13){if(e=og(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Oi=e,null}function vg(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(P0()){case sc:return 1;case ug:return 4;case Ni:case T0:return 16;case dg:return 536870912;default:return 16}default:return 16}}var aa=null,dc=null,Si=null;function yg(){if(Si)return Si;var e,t=dc,r=t.length,a,n="value"in aa?aa.value:aa.textContent,o=n.length;for(e=0;e<r&&t[e]===n[e];e++);var i=r-e;for(a=1;a<=i&&t[r-a]===n[o-a];a++);return Si=n.slice(e,1<a?1-a:void 0)}function bi(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 ii(){return!0}function Xm(){return!1}function Ut(e){function t(r,a,n,o,i){this._reactName=r,this._targetInst=n,this.type=a,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ii:Xm,this.isPropagationStopped=Xm,this}return $e(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=ii)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=ii)},persist:function(){},isPersistent:ii}),t}var zn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cc=Ut(zn),Qo=$e({},zn,{view:0,detail:0}),j0=Ut(Qo),Wu,ju,mo,tl=$e({},Qo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fc,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!==mo&&(mo&&e.type==="mousemove"?(Wu=e.screenX-mo.screenX,ju=e.screenY-mo.screenY):ju=Wu=0,mo=e),Wu)},movementY:function(e){return"movementY"in e?e.movementY:ju}}),Km=Ut(tl),V0=$e({},tl,{dataTransfer:0}),G0=Ut(V0),X0=$e({},Qo,{relatedTarget:0}),Vu=Ut(X0),K0=$e({},zn,{animationName:0,elapsedTime:0,pseudoElement:0}),Q0=Ut(K0),Y0=$e({},zn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),J0=Ut(Y0),Z0=$e({},zn,{data:0}),Qm=Ut(Z0),eb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tb={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"},rb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ab(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=rb[e])?!!t[e]:!1}function fc(){return ab}var nb=$e({},Qo,{key:function(e){if(e.key){var t=eb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=bi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?tb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fc,charCode:function(e){return e.type==="keypress"?bi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?bi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ob=Ut(nb),sb=$e({},tl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ym=Ut(sb),ib=$e({},Qo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fc}),lb=Ut(ib),ub=$e({},zn,{propertyName:0,elapsedTime:0,pseudoElement:0}),db=Ut(ub),cb=$e({},tl,{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}),fb=Ut(cb),pb=[9,13,27,32],pc=Br&&"CompositionEvent"in window,ko=null;Br&&"documentMode"in document&&(ko=document.documentMode);var mb=Br&&"TextEvent"in window&&!ko,wg=Br&&(!pc||ko&&8<ko&&11>=ko),Jm=" ",Zm=!1;function Sg(e,t){switch(e){case"keyup":return pb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var gn=!1;function hb(e,t){switch(e){case"compositionend":return bg(t);case"keypress":return t.which!==32?null:(Zm=!0,Jm);case"textInput":return e=t.data,e===Jm&&Zm?null:e;default:return null}}function gb(e,t){if(gn)return e==="compositionend"||!pc&&Sg(e,t)?(e=yg(),Si=dc=aa=null,gn=!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 wg&&t.locale!=="ko"?null:t.data;default:return null}}var xb={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 eh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!xb[e.type]:t==="textarea"}function Cg(e,t,r,a){eg(a),t=Fi(t,"onChange"),0<t.length&&(r=new cc("onChange","change",null,r,a),e.push({event:r,listeners:t}))}var Io=null,Bo=null;function vb(e){Ag(e,0)}function rl(e){var t=yn(e);if(Gh(t))return e}function yb(e,t){if(e==="change")return t}var Lg=!1;Br&&(Br?(ui="oninput"in document,ui||(Gu=document.createElement("div"),Gu.setAttribute("oninput","return;"),ui=typeof Gu.oninput=="function"),li=ui):li=!1,Lg=li&&(!document.documentMode||9<document.documentMode));var li,ui,Gu;function th(){Io&&(Io.detachEvent("onpropertychange",kg),Bo=Io=null)}function kg(e){if(e.propertyName==="value"&&rl(Bo)){var t=[];Cg(t,Bo,e,oc(e)),ng(vb,t)}}function wb(e,t,r){e==="focusin"?(th(),Io=t,Bo=r,Io.attachEvent("onpropertychange",kg)):e==="focusout"&&th()}function Sb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return rl(Bo)}function bb(e,t){if(e==="click")return rl(t)}function Cb(e,t){if(e==="input"||e==="change")return rl(t)}function Lb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mr=typeof Object.is=="function"?Object.is:Lb;function zo(e,t){if(mr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(a=0;a<r.length;a++){var n=r[a];if(!id.call(t,n)||!mr(e[n],t[n]))return!1}return!0}function rh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ah(e,t){var r=rh(e);e=0;for(var a;r;){if(r.nodeType===3){if(a=e+r.textContent.length,e<=t&&a>=t)return{node:r,offset:t-e};e=a}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=rh(r)}}function Ig(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ig(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mg(){for(var e=window,t=Ei();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Ei(e.document)}return t}function mc(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")}function kb(e){var t=Mg(),r=e.focusedElem,a=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Ig(r.ownerDocument.documentElement,r)){if(a!==null&&mc(r)){if(t=a.start,e=a.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var n=r.textContent.length,o=Math.min(a.start,n);a=a.end===void 0?o:Math.min(a.end,n),!e.extend&&o>a&&(n=a,a=o,o=n),n=ah(r,o);var i=ah(r,a);n&&i&&(e.rangeCount!==1||e.anchorNode!==n.node||e.anchorOffset!==n.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(n.node,n.offset),e.removeAllRanges(),o>a?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Ib=Br&&"documentMode"in document&&11>=document.documentMode,xn=null,Id=null,Mo=null,Md=!1;function nh(e,t,r){var a=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Md||xn==null||xn!==Ei(a)||(a=xn,"selectionStart"in a&&mc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Mo&&zo(Mo,a)||(Mo=a,a=Fi(Id,"onSelect"),0<a.length&&(t=new cc("onSelect","select",null,t,r),e.push({event:t,listeners:a}),t.target=xn)))}function di(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var vn={animationend:di("Animation","AnimationEnd"),animationiteration:di("Animation","AnimationIteration"),animationstart:di("Animation","AnimationStart"),transitionend:di("Transition","TransitionEnd")},Xu={},_g={};Br&&(_g=document.createElement("div").style,"AnimationEvent"in window||(delete vn.animationend.animation,delete vn.animationiteration.animation,delete vn.animationstart.animation),"TransitionEvent"in window||delete vn.transitionend.transition);function al(e){if(Xu[e])return Xu[e];if(!vn[e])return e;var t=vn[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in _g)return Xu[e]=t[r];return e}var Rg=al("animationend"),Eg=al("animationiteration"),Pg=al("animationstart"),Tg=al("transitionend"),Ng=new Map,oh="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ha(e,t){Ng.set(e,t),qa(t,[e])}for(ci=0;ci<oh.length;ci++)fi=oh[ci],sh=fi.toLowerCase(),ih=fi[0].toUpperCase()+fi.slice(1),ha(sh,"on"+ih);var fi,sh,ih,ci;ha(Rg,"onAnimationEnd");ha(Eg,"onAnimationIteration");ha(Pg,"onAnimationStart");ha("dblclick","onDoubleClick");ha("focusin","onFocus");ha("focusout","onBlur");ha(Tg,"onTransitionEnd");Tn("onMouseEnter",["mouseout","mouseover"]);Tn("onMouseLeave",["mouseout","mouseover"]);Tn("onPointerEnter",["pointerout","pointerover"]);Tn("onPointerLeave",["pointerout","pointerover"]);qa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));qa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));qa("onBeforeInput",["compositionend","keypress","textInput","paste"]);qa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));qa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));qa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bo="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(" "),Mb=new Set("cancel close invalid load scroll toggle".split(" ").concat(bo));function lh(e,t,r){var a=e.type||"unknown-event";e.currentTarget=r,M0(a,t,void 0,e),e.currentTarget=null}function Ag(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var a=e[r],n=a.event;a=a.listeners;e:{var o=void 0;if(t)for(var i=a.length-1;0<=i;i--){var s=a[i],l=s.instance,d=s.currentTarget;if(s=s.listener,l!==o&&n.isPropagationStopped())break e;lh(n,s,d),o=l}else for(i=0;i<a.length;i++){if(s=a[i],l=s.instance,d=s.currentTarget,s=s.listener,l!==o&&n.isPropagationStopped())break e;lh(n,s,d),o=l}}}if(Ti)throw e=bd,Ti=!1,bd=null,e}function Ae(e,t){var r=t[Td];r===void 0&&(r=t[Td]=new Set);var a=e+"__bubble";r.has(a)||(Dg(t,e,2,!1),r.add(a))}function Ku(e,t,r){var a=0;t&&(a|=4),Dg(r,e,a,t)}var pi="_reactListening"+Math.random().toString(36).slice(2);function Uo(e){if(!e[pi]){e[pi]=!0,$h.forEach(function(r){r!=="selectionchange"&&(Mb.has(r)||Ku(r,!1,e),Ku(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[pi]||(t[pi]=!0,Ku("selectionchange",!1,t))}}function Dg(e,t,r,a){switch(vg(t)){case 1:var n=H0;break;case 4:n=W0;break;default:n=uc}r=n.bind(null,t,r,e),n=void 0,!Sd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,r,{capture:!0,passive:n}):e.addEventListener(t,r,!0):n!==void 0?e.addEventListener(t,r,{passive:n}):e.addEventListener(t,r,!1)}function Qu(e,t,r,a,n){var o=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var s=a.stateNode.containerInfo;if(s===n||s.nodeType===8&&s.parentNode===n)break;if(i===4)for(i=a.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===n||l.nodeType===8&&l.parentNode===n))return;i=i.return}for(;s!==null;){if(i=Pa(s),i===null)return;if(l=i.tag,l===5||l===6){a=o=i;continue e}s=s.parentNode}}a=a.return}ng(function(){var d=o,u=oc(r),f=[];e:{var c=Ng.get(e);if(c!==void 0){var p=cc,h=e;switch(e){case"keypress":if(bi(r)===0)break e;case"keydown":case"keyup":p=ob;break;case"focusin":h="focus",p=Vu;break;case"focusout":h="blur",p=Vu;break;case"beforeblur":case"afterblur":p=Vu;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Km;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=G0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=lb;break;case Rg:case Eg:case Pg:p=Q0;break;case Tg:p=db;break;case"scroll":p=j0;break;case"wheel":p=fb;break;case"copy":case"cut":case"paste":p=J0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Ym}var m=(t&4)!==0,S=!m&&e==="scroll",g=m?c!==null?c+"Capture":null:c;m=[];for(var x=d,v;x!==null;){v=x;var b=v.stateNode;if(v.tag===5&&b!==null&&(v=b,g!==null&&(b=Ao(x,g),b!=null&&m.push(qo(x,b,v)))),S)break;x=x.return}0<m.length&&(c=new p(c,h,null,r,u),f.push({event:c,listeners:m}))}}if((t&7)===0){e:{if(c=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",c&&r!==yd&&(h=r.relatedTarget||r.fromElement)&&(Pa(h)||h[zr]))break e;if((p||c)&&(c=u.window===u?u:(c=u.ownerDocument)?c.defaultView||c.parentWindow:window,p?(h=r.relatedTarget||r.toElement,p=d,h=h?Pa(h):null,h!==null&&(S=$a(h),h!==S||h.tag!==5&&h.tag!==6)&&(h=null)):(p=null,h=d),p!==h)){if(m=Km,b="onMouseLeave",g="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(m=Ym,b="onPointerLeave",g="onPointerEnter",x="pointer"),S=p==null?c:yn(p),v=h==null?c:yn(h),c=new m(b,x+"leave",p,r,u),c.target=S,c.relatedTarget=v,b=null,Pa(u)===d&&(m=new m(g,x+"enter",h,r,u),m.target=v,m.relatedTarget=S,b=m),S=b,p&&h)t:{for(m=p,g=h,x=0,v=m;v;v=pn(v))x++;for(v=0,b=g;b;b=pn(b))v++;for(;0<x-v;)m=pn(m),x--;for(;0<v-x;)g=pn(g),v--;for(;x--;){if(m===g||g!==null&&m===g.alternate)break t;m=pn(m),g=pn(g)}m=null}else m=null;p!==null&&uh(f,c,p,m,!1),h!==null&&S!==null&&uh(f,S,h,m,!0)}}e:{if(c=d?yn(d):window,p=c.nodeName&&c.nodeName.toLowerCase(),p==="select"||p==="input"&&c.type==="file")var w=yb;else if(eh(c))if(Lg)w=Cb;else{w=Sb;var y=wb}else(p=c.nodeName)&&p.toLowerCase()==="input"&&(c.type==="checkbox"||c.type==="radio")&&(w=bb);if(w&&(w=w(e,d))){Cg(f,w,r,u);break e}y&&y(e,c,d),e==="focusout"&&(y=c._wrapperState)&&y.controlled&&c.type==="number"&&md(c,"number",c.value)}switch(y=d?yn(d):window,e){case"focusin":(eh(y)||y.contentEditable==="true")&&(xn=y,Id=d,Mo=null);break;case"focusout":Mo=Id=xn=null;break;case"mousedown":Md=!0;break;case"contextmenu":case"mouseup":case"dragend":Md=!1,nh(f,r,u);break;case"selectionchange":if(Ib)break;case"keydown":case"keyup":nh(f,r,u)}var L;if(pc)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else gn?Sg(e,r)&&(C="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(C="onCompositionStart");C&&(wg&&r.locale!=="ko"&&(gn||C!=="onCompositionStart"?C==="onCompositionEnd"&&gn&&(L=yg()):(aa=u,dc="value"in aa?aa.value:aa.textContent,gn=!0)),y=Fi(d,C),0<y.length&&(C=new Qm(C,e,null,r,u),f.push({event:C,listeners:y}),L?C.data=L:(L=bg(r),L!==null&&(C.data=L)))),(L=mb?hb(e,r):gb(e,r))&&(d=Fi(d,"onBeforeInput"),0<d.length&&(u=new Qm("onBeforeInput","beforeinput",null,r,u),f.push({event:u,listeners:d}),u.data=L))}Ag(f,t)})}function qo(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Fi(e,t){for(var r=t+"Capture",a=[];e!==null;){var n=e,o=n.stateNode;n.tag===5&&o!==null&&(n=o,o=Ao(e,r),o!=null&&a.unshift(qo(e,o,n)),o=Ao(e,t),o!=null&&a.push(qo(e,o,n))),e=e.return}return a}function pn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function uh(e,t,r,a,n){for(var o=t._reactName,i=[];r!==null&&r!==a;){var s=r,l=s.alternate,d=s.stateNode;if(l!==null&&l===a)break;s.tag===5&&d!==null&&(s=d,n?(l=Ao(r,o),l!=null&&i.unshift(qo(r,l,s))):n||(l=Ao(r,o),l!=null&&i.push(qo(r,l,s)))),r=r.return}i.length!==0&&e.push({event:t,listeners:i})}var _b=/\r\n?/g,Rb=/\u0000|\uFFFD/g;function dh(e){return(typeof e=="string"?e:""+e).replace(_b,`
|
|
6
|
-
`).replace(Rb,"")}function mi(e,t,r){if(t=dh(t),dh(e)!==t&&r)throw Error(P(425))}function Bi(){}var _d=null,Rd=null;function Ed(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Pd=typeof setTimeout=="function"?setTimeout:void 0,Eb=typeof clearTimeout=="function"?clearTimeout:void 0,ch=typeof Promise=="function"?Promise:void 0,Pb=typeof queueMicrotask=="function"?queueMicrotask:typeof ch<"u"?function(e){return ch.resolve(null).then(e).catch(Tb)}:Pd;function Tb(e){setTimeout(function(){throw e})}function Yu(e,t){var r=t,a=0;do{var n=r.nextSibling;if(e.removeChild(r),n&&n.nodeType===8)if(r=n.data,r==="/$"){if(a===0){e.removeChild(n),Fo(t);return}a--}else r!=="$"&&r!=="$?"&&r!=="$!"||a++;r=n}while(r);Fo(t)}function la(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==="$?")break;if(t==="/$")return null}}return e}function fh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Un=Math.random().toString(36).slice(2),Ir="__reactFiber$"+Un,$o="__reactProps$"+Un,zr="__reactContainer$"+Un,Td="__reactEvents$"+Un,Nb="__reactListeners$"+Un,Ab="__reactHandles$"+Un;function Pa(e){var t=e[Ir];if(t)return t;for(var r=e.parentNode;r;){if(t=r[zr]||r[Ir]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=fh(e);e!==null;){if(r=e[Ir])return r;e=fh(e)}return t}e=r,r=e.parentNode}return null}function Yo(e){return e=e[Ir]||e[zr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function yn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(P(33))}function nl(e){return e[$o]||null}var Nd=[],wn=-1;function ga(e){return{current:e}}function De(e){0>wn||(e.current=Nd[wn],Nd[wn]=null,wn--)}function Pe(e,t){wn++,Nd[wn]=e.current,e.current=t}var ma={},mt=ga(ma),Rt=ga(!1),Oa=ma;function Nn(e,t){var r=e.type.contextTypes;if(!r)return ma;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var n={},o;for(o in r)n[o]=t[o];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=n),n}function Et(e){return e=e.childContextTypes,e!=null}function zi(){De(Rt),De(mt)}function ph(e,t,r){if(mt.current!==ma)throw Error(P(168));Pe(mt,t),Pe(Rt,r)}function Og(e,t,r){var a=e.stateNode;if(t=t.childContextTypes,typeof a.getChildContext!="function")return r;a=a.getChildContext();for(var n in a)if(!(n in t))throw Error(P(108,w0(e)||"Unknown",n));return $e({},r,a)}function Ui(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ma,Oa=mt.current,Pe(mt,e),Pe(Rt,Rt.current),!0}function mh(e,t,r){var a=e.stateNode;if(!a)throw Error(P(169));r?(e=Og(e,t,Oa),a.__reactInternalMemoizedMergedChildContext=e,De(Rt),De(mt),Pe(mt,e)):De(Rt),Pe(Rt,r)}var Ar=null,ol=!1,Ju=!1;function Fg(e){Ar===null?Ar=[e]:Ar.push(e)}function Db(e){ol=!0,Fg(e)}function xa(){if(!Ju&&Ar!==null){Ju=!0;var e=0,t=Le;try{var r=Ar;for(Le=1;e<r.length;e++){var a=r[e];do a=a(!0);while(a!==null)}Ar=null,ol=!1}catch(n){throw Ar!==null&&(Ar=Ar.slice(e+1)),lg(sc,xa),n}finally{Le=t,Ju=!1}}return null}var Sn=[],bn=0,qi=null,$i=0,Vt=[],Gt=0,Fa=null,Dr=1,Or="";function Ra(e,t){Sn[bn++]=$i,Sn[bn++]=qi,qi=e,$i=t}function Bg(e,t,r){Vt[Gt++]=Dr,Vt[Gt++]=Or,Vt[Gt++]=Fa,Fa=e;var a=Dr;e=Or;var n=32-fr(a)-1;a&=~(1<<n),r+=1;var o=32-fr(t)+n;if(30<o){var i=n-n%5;o=(a&(1<<i)-1).toString(32),a>>=i,n-=i,Dr=1<<32-fr(t)+n|r<<n|a,Or=o+e}else Dr=1<<o|r<<n|a,Or=e}function hc(e){e.return!==null&&(Ra(e,1),Bg(e,1,0))}function gc(e){for(;e===qi;)qi=Sn[--bn],Sn[bn]=null,$i=Sn[--bn],Sn[bn]=null;for(;e===Fa;)Fa=Vt[--Gt],Vt[Gt]=null,Or=Vt[--Gt],Vt[Gt]=null,Dr=Vt[--Gt],Vt[Gt]=null}var Bt=null,Ft=null,Fe=!1,cr=null;function zg(e,t){var r=Xt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function hh(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Bt=e,Ft=la(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Bt=e,Ft=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Fa!==null?{id:Dr,overflow:Or}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Xt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Bt=e,Ft=null,!0):!1;default:return!1}}function Ad(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Dd(e){if(Fe){var t=Ft;if(t){var r=t;if(!hh(e,t)){if(Ad(e))throw Error(P(418));t=la(r.nextSibling);var a=Bt;t&&hh(e,t)?zg(a,r):(e.flags=e.flags&-4097|2,Fe=!1,Bt=e)}}else{if(Ad(e))throw Error(P(418));e.flags=e.flags&-4097|2,Fe=!1,Bt=e}}}function gh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Bt=e}function hi(e){if(e!==Bt)return!1;if(!Fe)return gh(e),Fe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ed(e.type,e.memoizedProps)),t&&(t=Ft)){if(Ad(e))throw Ug(),Error(P(418));for(;t;)zg(e,t),t=la(t.nextSibling)}if(gh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(P(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Ft=la(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Ft=null}}else Ft=Bt?la(e.stateNode.nextSibling):null;return!0}function Ug(){for(var e=Ft;e;)e=la(e.nextSibling)}function An(){Ft=Bt=null,Fe=!1}function xc(e){cr===null?cr=[e]:cr.push(e)}var Ob=$r.ReactCurrentBatchConfig;function ho(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(P(309));var a=r.stateNode}if(!a)throw Error(P(147,e));var n=a,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var s=n.refs;i===null?delete s[o]:s[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(P(284));if(!r._owner)throw Error(P(290,e))}return e}function gi(e,t){throw e=Object.prototype.toString.call(t),Error(P(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function xh(e){var t=e._init;return t(e._payload)}function qg(e){function t(g,x){if(e){var v=g.deletions;v===null?(g.deletions=[x],g.flags|=16):v.push(x)}}function r(g,x){if(!e)return null;for(;x!==null;)t(g,x),x=x.sibling;return null}function a(g,x){for(g=new Map;x!==null;)x.key!==null?g.set(x.key,x):g.set(x.index,x),x=x.sibling;return g}function n(g,x){return g=fa(g,x),g.index=0,g.sibling=null,g}function o(g,x,v){return g.index=v,e?(v=g.alternate,v!==null?(v=v.index,v<x?(g.flags|=2,x):v):(g.flags|=2,x)):(g.flags|=1048576,x)}function i(g){return e&&g.alternate===null&&(g.flags|=2),g}function s(g,x,v,b){return x===null||x.tag!==6?(x=od(v,g.mode,b),x.return=g,x):(x=n(x,v),x.return=g,x)}function l(g,x,v,b){var w=v.type;return w===hn?u(g,x,v.props.children,b,v.key):x!==null&&(x.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Zr&&xh(w)===x.type)?(b=n(x,v.props),b.ref=ho(g,x,v),b.return=g,b):(b=Ri(v.type,v.key,v.props,null,g.mode,b),b.ref=ho(g,x,v),b.return=g,b)}function d(g,x,v,b){return x===null||x.tag!==4||x.stateNode.containerInfo!==v.containerInfo||x.stateNode.implementation!==v.implementation?(x=sd(v,g.mode,b),x.return=g,x):(x=n(x,v.children||[]),x.return=g,x)}function u(g,x,v,b,w){return x===null||x.tag!==7?(x=Da(v,g.mode,b,w),x.return=g,x):(x=n(x,v),x.return=g,x)}function f(g,x,v){if(typeof x=="string"&&x!==""||typeof x=="number")return x=od(""+x,g.mode,v),x.return=g,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case ti:return v=Ri(x.type,x.key,x.props,null,g.mode,v),v.ref=ho(g,null,x),v.return=g,v;case mn:return x=sd(x,g.mode,v),x.return=g,x;case Zr:var b=x._init;return f(g,b(x._payload),v)}if(wo(x)||co(x))return x=Da(x,g.mode,v,null),x.return=g,x;gi(g,x)}return null}function c(g,x,v,b){var w=x!==null?x.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return w!==null?null:s(g,x,""+v,b);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case ti:return v.key===w?l(g,x,v,b):null;case mn:return v.key===w?d(g,x,v,b):null;case Zr:return w=v._init,c(g,x,w(v._payload),b)}if(wo(v)||co(v))return w!==null?null:u(g,x,v,b,null);gi(g,v)}return null}function p(g,x,v,b,w){if(typeof b=="string"&&b!==""||typeof b=="number")return g=g.get(v)||null,s(x,g,""+b,w);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case ti:return g=g.get(b.key===null?v:b.key)||null,l(x,g,b,w);case mn:return g=g.get(b.key===null?v:b.key)||null,d(x,g,b,w);case Zr:var y=b._init;return p(g,x,v,y(b._payload),w)}if(wo(b)||co(b))return g=g.get(v)||null,u(x,g,b,w,null);gi(x,b)}return null}function h(g,x,v,b){for(var w=null,y=null,L=x,C=x=0,M=null;L!==null&&C<v.length;C++){L.index>C?(M=L,L=null):M=L.sibling;var I=c(g,L,v[C],b);if(I===null){L===null&&(L=M);break}e&&L&&I.alternate===null&&t(g,L),x=o(I,x,C),y===null?w=I:y.sibling=I,y=I,L=M}if(C===v.length)return r(g,L),Fe&&Ra(g,C),w;if(L===null){for(;C<v.length;C++)L=f(g,v[C],b),L!==null&&(x=o(L,x,C),y===null?w=L:y.sibling=L,y=L);return Fe&&Ra(g,C),w}for(L=a(g,L);C<v.length;C++)M=p(L,g,C,v[C],b),M!==null&&(e&&M.alternate!==null&&L.delete(M.key===null?C:M.key),x=o(M,x,C),y===null?w=M:y.sibling=M,y=M);return e&&L.forEach(function(D){return t(g,D)}),Fe&&Ra(g,C),w}function m(g,x,v,b){var w=co(v);if(typeof w!="function")throw Error(P(150));if(v=w.call(v),v==null)throw Error(P(151));for(var y=w=null,L=x,C=x=0,M=null,I=v.next();L!==null&&!I.done;C++,I=v.next()){L.index>C?(M=L,L=null):M=L.sibling;var D=c(g,L,I.value,b);if(D===null){L===null&&(L=M);break}e&&L&&D.alternate===null&&t(g,L),x=o(D,x,C),y===null?w=D:y.sibling=D,y=D,L=M}if(I.done)return r(g,L),Fe&&Ra(g,C),w;if(L===null){for(;!I.done;C++,I=v.next())I=f(g,I.value,b),I!==null&&(x=o(I,x,C),y===null?w=I:y.sibling=I,y=I);return Fe&&Ra(g,C),w}for(L=a(g,L);!I.done;C++,I=v.next())I=p(L,g,C,I.value,b),I!==null&&(e&&I.alternate!==null&&L.delete(I.key===null?C:I.key),x=o(I,x,C),y===null?w=I:y.sibling=I,y=I);return e&&L.forEach(function(A){return t(g,A)}),Fe&&Ra(g,C),w}function S(g,x,v,b){if(typeof v=="object"&&v!==null&&v.type===hn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case ti:e:{for(var w=v.key,y=x;y!==null;){if(y.key===w){if(w=v.type,w===hn){if(y.tag===7){r(g,y.sibling),x=n(y,v.props.children),x.return=g,g=x;break e}}else if(y.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Zr&&xh(w)===y.type){r(g,y.sibling),x=n(y,v.props),x.ref=ho(g,y,v),x.return=g,g=x;break e}r(g,y);break}else t(g,y);y=y.sibling}v.type===hn?(x=Da(v.props.children,g.mode,b,v.key),x.return=g,g=x):(b=Ri(v.type,v.key,v.props,null,g.mode,b),b.ref=ho(g,x,v),b.return=g,g=b)}return i(g);case mn:e:{for(y=v.key;x!==null;){if(x.key===y)if(x.tag===4&&x.stateNode.containerInfo===v.containerInfo&&x.stateNode.implementation===v.implementation){r(g,x.sibling),x=n(x,v.children||[]),x.return=g,g=x;break e}else{r(g,x);break}else t(g,x);x=x.sibling}x=sd(v,g.mode,b),x.return=g,g=x}return i(g);case Zr:return y=v._init,S(g,x,y(v._payload),b)}if(wo(v))return h(g,x,v,b);if(co(v))return m(g,x,v,b);gi(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,x!==null&&x.tag===6?(r(g,x.sibling),x=n(x,v),x.return=g,g=x):(r(g,x),x=od(v,g.mode,b),x.return=g,g=x),i(g)):r(g,x)}return S}var Dn=qg(!0),$g=qg(!1),Hi=ga(null),Wi=null,Cn=null,vc=null;function yc(){vc=Cn=Wi=null}function wc(e){var t=Hi.current;De(Hi),e._currentValue=t}function Od(e,t,r){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===r)break;e=e.return}}function En(e,t){Wi=e,vc=Cn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(_t=!0),e.firstContext=null)}function Qt(e){var t=e._currentValue;if(vc!==e)if(e={context:e,memoizedValue:t,next:null},Cn===null){if(Wi===null)throw Error(P(308));Cn=e,Wi.dependencies={lanes:0,firstContext:e}}else Cn=Cn.next=e;return t}var Ta=null;function Sc(e){Ta===null?Ta=[e]:Ta.push(e)}function Hg(e,t,r,a){var n=t.interleaved;return n===null?(r.next=r,Sc(t)):(r.next=n.next,n.next=r),t.interleaved=r,Ur(e,a)}function Ur(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var ea=!1;function bc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Wg(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ua(e,t,r){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(he&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,Ur(e,r)}return n=a.interleaved,n===null?(t.next=t,Sc(a)):(t.next=n.next,n.next=t),a.interleaved=t,Ur(e,r)}function Ci(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var a=t.lanes;a&=e.pendingLanes,r|=a,t.lanes=r,ic(e,r)}}function vh(e,t){var r=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,r===a)){var n=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?n=o=i:o=o.next=i,r=r.next}while(r!==null);o===null?n=o=t:o=o.next=t}else n=o=t;r={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:o,shared:a.shared,effects:a.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function ji(e,t,r,a){var n=e.updateQueue;ea=!1;var o=n.firstBaseUpdate,i=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.shared.pending=null;var l=s,d=l.next;l.next=null,i===null?o=d:i.next=d,i=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==i&&(s===null?u.firstBaseUpdate=d:s.next=d,u.lastBaseUpdate=l))}if(o!==null){var f=n.baseState;i=0,u=d=l=null,s=o;do{var c=s.lane,p=s.eventTime;if((a&c)===c){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(c=t,p=r,m.tag){case 1:if(h=m.payload,typeof h=="function"){f=h.call(p,f,c);break e}f=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=m.payload,c=typeof h=="function"?h.call(p,f,c):h,c==null)break e;f=$e({},f,c);break e;case 2:ea=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,c=n.effects,c===null?n.effects=[s]:c.push(s))}else p={eventTime:p,lane:c,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(d=u=p,l=f):u=u.next=p,i|=c;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;c=s,s=c.next,c.next=null,n.lastBaseUpdate=c,n.shared.pending=null}}while(!0);if(u===null&&(l=f),n.baseState=l,n.firstBaseUpdate=d,n.lastBaseUpdate=u,t=n.shared.interleaved,t!==null){n=t;do i|=n.lane,n=n.next;while(n!==t)}else o===null&&(n.shared.lanes=0);za|=i,e.lanes=i,e.memoizedState=f}}function yh(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var a=e[t],n=a.callback;if(n!==null){if(a.callback=null,a=r,typeof n!="function")throw Error(P(191,n));n.call(a)}}}var Jo={},_r=ga(Jo),Ho=ga(Jo),Wo=ga(Jo);function Na(e){if(e===Jo)throw Error(P(174));return e}function Cc(e,t){switch(Pe(Wo,t),Pe(Ho,e),Pe(_r,Jo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:gd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=gd(t,e)}De(_r),Pe(_r,t)}function On(){De(_r),De(Ho),De(Wo)}function jg(e){Na(Wo.current);var t=Na(_r.current),r=gd(t,e.type);t!==r&&(Pe(Ho,e),Pe(_r,r))}function Lc(e){Ho.current===e&&(De(_r),De(Ho))}var Ue=ga(0);function Vi(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)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 Zu=[];function kc(){for(var e=0;e<Zu.length;e++)Zu[e]._workInProgressVersionPrimary=null;Zu.length=0}var Li=$r.ReactCurrentDispatcher,ed=$r.ReactCurrentBatchConfig,Ba=0,qe=null,Ye=null,tt=null,Gi=!1,_o=!1,jo=0,Fb=0;function ct(){throw Error(P(321))}function Ic(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!mr(e[r],t[r]))return!1;return!0}function Mc(e,t,r,a,n,o){if(Ba=o,qe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Li.current=e===null||e.memoizedState===null?qb:$b,e=r(a,n),_o){o=0;do{if(_o=!1,jo=0,25<=o)throw Error(P(301));o+=1,tt=Ye=null,t.updateQueue=null,Li.current=Hb,e=r(a,n)}while(_o)}if(Li.current=Xi,t=Ye!==null&&Ye.next!==null,Ba=0,tt=Ye=qe=null,Gi=!1,t)throw Error(P(300));return e}function _c(){var e=jo!==0;return jo=0,e}function kr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tt===null?qe.memoizedState=tt=e:tt=tt.next=e,tt}function Yt(){if(Ye===null){var e=qe.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=tt===null?qe.memoizedState:tt.next;if(t!==null)tt=t,Ye=e;else{if(e===null)throw Error(P(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},tt===null?qe.memoizedState=tt=e:tt=tt.next=e}return tt}function Vo(e,t){return typeof t=="function"?t(e):t}function td(e){var t=Yt(),r=t.queue;if(r===null)throw Error(P(311));r.lastRenderedReducer=e;var a=Ye,n=a.baseQueue,o=r.pending;if(o!==null){if(n!==null){var i=n.next;n.next=o.next,o.next=i}a.baseQueue=n=o,r.pending=null}if(n!==null){o=n.next,a=a.baseState;var s=i=null,l=null,d=o;do{var u=d.lane;if((Ba&u)===u)l!==null&&(l=l.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),a=d.hasEagerState?d.eagerState:e(a,d.action);else{var f={lane:u,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};l===null?(s=l=f,i=a):l=l.next=f,qe.lanes|=u,za|=u}d=d.next}while(d!==null&&d!==o);l===null?i=a:l.next=s,mr(a,t.memoizedState)||(_t=!0),t.memoizedState=a,t.baseState=i,t.baseQueue=l,r.lastRenderedState=a}if(e=r.interleaved,e!==null){n=e;do o=n.lane,qe.lanes|=o,za|=o,n=n.next;while(n!==e)}else n===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function rd(e){var t=Yt(),r=t.queue;if(r===null)throw Error(P(311));r.lastRenderedReducer=e;var a=r.dispatch,n=r.pending,o=t.memoizedState;if(n!==null){r.pending=null;var i=n=n.next;do o=e(o,i.action),i=i.next;while(i!==n);mr(o,t.memoizedState)||(_t=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,a]}function Vg(){}function Gg(e,t){var r=qe,a=Yt(),n=t(),o=!mr(a.memoizedState,n);if(o&&(a.memoizedState=n,_t=!0),a=a.queue,Rc(Qg.bind(null,r,a,e),[e]),a.getSnapshot!==t||o||tt!==null&&tt.memoizedState.tag&1){if(r.flags|=2048,Go(9,Kg.bind(null,r,a,n,t),void 0,null),rt===null)throw Error(P(349));(Ba&30)!==0||Xg(r,t,n)}return n}function Xg(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=qe.updateQueue,t===null?(t={lastEffect:null,stores:null},qe.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function Kg(e,t,r,a){t.value=r,t.getSnapshot=a,Yg(t)&&Jg(e)}function Qg(e,t,r){return r(function(){Yg(t)&&Jg(e)})}function Yg(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!mr(e,r)}catch{return!0}}function Jg(e){var t=Ur(e,1);t!==null&&pr(t,e,1,-1)}function wh(e){var t=kr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vo,lastRenderedState:e},t.queue=e,e=e.dispatch=Ub.bind(null,qe,e),[t.memoizedState,e]}function Go(e,t,r,a){return e={tag:e,create:t,destroy:r,deps:a,next:null},t=qe.updateQueue,t===null?(t={lastEffect:null,stores:null},qe.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(a=r.next,r.next=e,e.next=a,t.lastEffect=e)),e}function Zg(){return Yt().memoizedState}function ki(e,t,r,a){var n=kr();qe.flags|=e,n.memoizedState=Go(1|t,r,void 0,a===void 0?null:a)}function sl(e,t,r,a){var n=Yt();a=a===void 0?null:a;var o=void 0;if(Ye!==null){var i=Ye.memoizedState;if(o=i.destroy,a!==null&&Ic(a,i.deps)){n.memoizedState=Go(t,r,o,a);return}}qe.flags|=e,n.memoizedState=Go(1|t,r,o,a)}function Sh(e,t){return ki(8390656,8,e,t)}function Rc(e,t){return sl(2048,8,e,t)}function ex(e,t){return sl(4,2,e,t)}function tx(e,t){return sl(4,4,e,t)}function rx(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ax(e,t,r){return r=r!=null?r.concat([e]):null,sl(4,4,rx.bind(null,t,e),r)}function Ec(){}function nx(e,t){var r=Yt();t=t===void 0?null:t;var a=r.memoizedState;return a!==null&&t!==null&&Ic(t,a[1])?a[0]:(r.memoizedState=[e,t],e)}function ox(e,t){var r=Yt();t=t===void 0?null:t;var a=r.memoizedState;return a!==null&&t!==null&&Ic(t,a[1])?a[0]:(e=e(),r.memoizedState=[e,t],e)}function sx(e,t,r){return(Ba&21)===0?(e.baseState&&(e.baseState=!1,_t=!0),e.memoizedState=r):(mr(r,t)||(r=cg(),qe.lanes|=r,za|=r,e.baseState=!0),t)}function Bb(e,t){var r=Le;Le=r!==0&&4>r?r:4,e(!0);var a=ed.transition;ed.transition={};try{e(!1),t()}finally{Le=r,ed.transition=a}}function ix(){return Yt().memoizedState}function zb(e,t,r){var a=ca(e);if(r={lane:a,action:r,hasEagerState:!1,eagerState:null,next:null},lx(e))ux(t,r);else if(r=Hg(e,t,r,a),r!==null){var n=bt();pr(r,e,a,n),dx(r,t,a)}}function Ub(e,t,r){var a=ca(e),n={lane:a,action:r,hasEagerState:!1,eagerState:null,next:null};if(lx(e))ux(t,n);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,r);if(n.hasEagerState=!0,n.eagerState=s,mr(s,i)){var l=t.interleaved;l===null?(n.next=n,Sc(t)):(n.next=l.next,l.next=n),t.interleaved=n;return}}catch{}r=Hg(e,t,n,a),r!==null&&(n=bt(),pr(r,e,a,n),dx(r,t,a))}}function lx(e){var t=e.alternate;return e===qe||t!==null&&t===qe}function ux(e,t){_o=Gi=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function dx(e,t,r){if((r&4194240)!==0){var a=t.lanes;a&=e.pendingLanes,r|=a,t.lanes=r,ic(e,r)}}var Xi={readContext:Qt,useCallback:ct,useContext:ct,useEffect:ct,useImperativeHandle:ct,useInsertionEffect:ct,useLayoutEffect:ct,useMemo:ct,useReducer:ct,useRef:ct,useState:ct,useDebugValue:ct,useDeferredValue:ct,useTransition:ct,useMutableSource:ct,useSyncExternalStore:ct,useId:ct,unstable_isNewReconciler:!1},qb={readContext:Qt,useCallback:function(e,t){return kr().memoizedState=[e,t===void 0?null:t],e},useContext:Qt,useEffect:Sh,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,ki(4194308,4,rx.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ki(4194308,4,e,t)},useInsertionEffect:function(e,t){return ki(4,2,e,t)},useMemo:function(e,t){var r=kr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var a=kr();return t=r!==void 0?r(t):t,a.memoizedState=a.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},a.queue=e,e=e.dispatch=zb.bind(null,qe,e),[a.memoizedState,e]},useRef:function(e){var t=kr();return e={current:e},t.memoizedState=e},useState:wh,useDebugValue:Ec,useDeferredValue:function(e){return kr().memoizedState=e},useTransition:function(){var e=wh(!1),t=e[0];return e=Bb.bind(null,e[1]),kr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var a=qe,n=kr();if(Fe){if(r===void 0)throw Error(P(407));r=r()}else{if(r=t(),rt===null)throw Error(P(349));(Ba&30)!==0||Xg(a,t,r)}n.memoizedState=r;var o={value:r,getSnapshot:t};return n.queue=o,Sh(Qg.bind(null,a,o,e),[e]),a.flags|=2048,Go(9,Kg.bind(null,a,o,r,t),void 0,null),r},useId:function(){var e=kr(),t=rt.identifierPrefix;if(Fe){var r=Or,a=Dr;r=(a&~(1<<32-fr(a)-1)).toString(32)+r,t=":"+t+"R"+r,r=jo++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=Fb++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},$b={readContext:Qt,useCallback:nx,useContext:Qt,useEffect:Rc,useImperativeHandle:ax,useInsertionEffect:ex,useLayoutEffect:tx,useMemo:ox,useReducer:td,useRef:Zg,useState:function(){return td(Vo)},useDebugValue:Ec,useDeferredValue:function(e){var t=Yt();return sx(t,Ye.memoizedState,e)},useTransition:function(){var e=td(Vo)[0],t=Yt().memoizedState;return[e,t]},useMutableSource:Vg,useSyncExternalStore:Gg,useId:ix,unstable_isNewReconciler:!1},Hb={readContext:Qt,useCallback:nx,useContext:Qt,useEffect:Rc,useImperativeHandle:ax,useInsertionEffect:ex,useLayoutEffect:tx,useMemo:ox,useReducer:rd,useRef:Zg,useState:function(){return rd(Vo)},useDebugValue:Ec,useDeferredValue:function(e){var t=Yt();return Ye===null?t.memoizedState=e:sx(t,Ye.memoizedState,e)},useTransition:function(){var e=rd(Vo)[0],t=Yt().memoizedState;return[e,t]},useMutableSource:Vg,useSyncExternalStore:Gg,useId:ix,unstable_isNewReconciler:!1};function ur(e,t){if(e&&e.defaultProps){t=$e({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Fd(e,t,r,a){t=e.memoizedState,r=r(a,t),r=r==null?t:$e({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var il={isMounted:function(e){return(e=e._reactInternals)?$a(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var a=bt(),n=ca(e),o=Fr(a,n);o.payload=t,r!=null&&(o.callback=r),t=ua(e,o,n),t!==null&&(pr(t,e,n,a),Ci(t,e,n))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var a=bt(),n=ca(e),o=Fr(a,n);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=ua(e,o,n),t!==null&&(pr(t,e,n,a),Ci(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=bt(),a=ca(e),n=Fr(r,a);n.tag=2,t!=null&&(n.callback=t),t=ua(e,n,a),t!==null&&(pr(t,e,a,r),Ci(t,e,a))}};function bh(e,t,r,a,n,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,o,i):t.prototype&&t.prototype.isPureReactComponent?!zo(r,a)||!zo(n,o):!0}function cx(e,t,r){var a=!1,n=ma,o=t.contextType;return typeof o=="object"&&o!==null?o=Qt(o):(n=Et(t)?Oa:mt.current,a=t.contextTypes,o=(a=a!=null)?Nn(e,n):ma),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=il,e.stateNode=t,t._reactInternals=e,a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ch(e,t,r,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,a),t.state!==e&&il.enqueueReplaceState(t,t.state,null)}function Bd(e,t,r,a){var n=e.stateNode;n.props=r,n.state=e.memoizedState,n.refs={},bc(e);var o=t.contextType;typeof o=="object"&&o!==null?n.context=Qt(o):(o=Et(t)?Oa:mt.current,n.context=Nn(e,o)),n.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Fd(e,t,o,r),n.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(t=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),t!==n.state&&il.enqueueReplaceState(n,n.state,null),ji(e,r,n,a),n.state=e.memoizedState),typeof n.componentDidMount=="function"&&(e.flags|=4194308)}function Fn(e,t){try{var r="",a=t;do r+=y0(a),a=a.return;while(a);var n=r}catch(o){n=`
|
|
1
|
+
"use strict";var ObsrviqReplayBundle=(()=>{var e0=Object.create;var Qs=Object.defineProperty;var t0=Object.getOwnPropertyDescriptor;var r0=Object.getOwnPropertyNames;var n0=Object.getPrototypeOf,a0=Object.prototype.hasOwnProperty;var Tr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),o0=(e,t)=>{for(var r in t)Qs(e,r,{get:t[r],enumerable:!0})},ym=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of r0(t))!a0.call(e,a)&&a!==r&&Qs(e,a,{get:()=>t[a],enumerable:!(n=t0(t,a))||n.enumerable});return e};var B=(e,t,r)=>(r=e!=null?e0(n0(e)):{},ym(t||!e||!e.__esModule?Qs(r,"default",{value:e,enumerable:!0}):r,e)),s0=e=>ym(Qs({},"__esModule",{value:!0}),e);var Nm=Tr(ie=>{"use strict";var co=Symbol.for("react.element"),l0=Symbol.for("react.portal"),i0=Symbol.for("react.fragment"),u0=Symbol.for("react.strict_mode"),d0=Symbol.for("react.profiler"),c0=Symbol.for("react.provider"),f0=Symbol.for("react.context"),p0=Symbol.for("react.forward_ref"),m0=Symbol.for("react.suspense"),h0=Symbol.for("react.memo"),g0=Symbol.for("react.lazy"),wm=Symbol.iterator;function x0(e){return e===null||typeof e!="object"?null:(e=wm&&e[wm]||e["@@iterator"],typeof e=="function"?e:null)}var Cm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Lm=Object.assign,km={};function ga(e,t,r){this.props=e,this.context=t,this.refs=km,this.updater=r||Cm}ga.prototype.isReactComponent={};ga.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ga.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Im(){}Im.prototype=ga.prototype;function Eu(e,t,r){this.props=e,this.context=t,this.refs=km,this.updater=r||Cm}var Nu=Eu.prototype=new Im;Nu.constructor=Eu;Lm(Nu,ga.prototype);Nu.isPureReactComponent=!0;var bm=Array.isArray,_m=Object.prototype.hasOwnProperty,Pu={current:null},Mm={key:!0,ref:!0,__self:!0,__source:!0};function Rm(e,t,r){var n,a={},o=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)_m.call(t,n)&&!Mm.hasOwnProperty(n)&&(a[n]=t[n]);var l=arguments.length-2;if(l===1)a.children=r;else if(1<l){for(var i=Array(l),d=0;d<l;d++)i[d]=arguments[d+2];a.children=i}if(e&&e.defaultProps)for(n in l=e.defaultProps,l)a[n]===void 0&&(a[n]=l[n]);return{$$typeof:co,type:e,key:o,ref:s,props:a,_owner:Pu.current}}function v0(e,t){return{$$typeof:co,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Tu(e){return typeof e=="object"&&e!==null&&e.$$typeof===co}function y0(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Sm=/\/+/g;function Ru(e,t){return typeof e=="object"&&e!==null&&e.key!=null?y0(""+e.key):t.toString(36)}function Js(e,t,r,n,a){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case co:case l0:s=!0}}if(s)return s=e,a=a(s),e=n===""?"."+Ru(s,0):n,bm(a)?(r="",e!=null&&(r=e.replace(Sm,"$&/")+"/"),Js(a,t,r,"",function(d){return d})):a!=null&&(Tu(a)&&(a=v0(a,r+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(Sm,"$&/")+"/")+e)),t.push(a)),1;if(s=0,n=n===""?".":n+":",bm(e))for(var l=0;l<e.length;l++){o=e[l];var i=n+Ru(o,l);s+=Js(o,t,r,i,a)}else if(i=x0(e),typeof i=="function")for(e=i.call(e),l=0;!(o=e.next()).done;)o=o.value,i=n+Ru(o,l++),s+=Js(o,t,r,i,a);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Ys(e,t,r){if(e==null)return e;var n=[],a=0;return Js(e,n,"","",function(o){return t.call(r,o,a++)}),n}function w0(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var bt={current:null},Zs={transition:null},b0={ReactCurrentDispatcher:bt,ReactCurrentBatchConfig:Zs,ReactCurrentOwner:Pu};function Em(){throw Error("act(...) is not supported in production builds of React.")}ie.Children={map:Ys,forEach:function(e,t,r){Ys(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Ys(e,function(){t++}),t},toArray:function(e){return Ys(e,function(t){return t})||[]},only:function(e){if(!Tu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ie.Component=ga;ie.Fragment=i0;ie.Profiler=d0;ie.PureComponent=Eu;ie.StrictMode=u0;ie.Suspense=m0;ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=b0;ie.act=Em;ie.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=Lm({},e.props),a=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Pu.current),t.key!==void 0&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(i in t)_m.call(t,i)&&!Mm.hasOwnProperty(i)&&(n[i]=t[i]===void 0&&l!==void 0?l[i]:t[i])}var i=arguments.length-2;if(i===1)n.children=r;else if(1<i){l=Array(i);for(var d=0;d<i;d++)l[d]=arguments[d+2];n.children=l}return{$$typeof:co,type:e.type,key:a,ref:o,props:n,_owner:s}};ie.createContext=function(e){return e={$$typeof:f0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:c0,_context:e},e.Consumer=e};ie.createElement=Rm;ie.createFactory=function(e){var t=Rm.bind(null,e);return t.type=e,t};ie.createRef=function(){return{current:null}};ie.forwardRef=function(e){return{$$typeof:p0,render:e}};ie.isValidElement=Tu;ie.lazy=function(e){return{$$typeof:g0,_payload:{_status:-1,_result:e},_init:w0}};ie.memo=function(e,t){return{$$typeof:h0,type:e,compare:t===void 0?null:t}};ie.startTransition=function(e){var t=Zs.transition;Zs.transition={};try{e()}finally{Zs.transition=t}};ie.unstable_act=Em;ie.useCallback=function(e,t){return bt.current.useCallback(e,t)};ie.useContext=function(e){return bt.current.useContext(e)};ie.useDebugValue=function(){};ie.useDeferredValue=function(e){return bt.current.useDeferredValue(e)};ie.useEffect=function(e,t){return bt.current.useEffect(e,t)};ie.useId=function(){return bt.current.useId()};ie.useImperativeHandle=function(e,t,r){return bt.current.useImperativeHandle(e,t,r)};ie.useInsertionEffect=function(e,t){return bt.current.useInsertionEffect(e,t)};ie.useLayoutEffect=function(e,t){return bt.current.useLayoutEffect(e,t)};ie.useMemo=function(e,t){return bt.current.useMemo(e,t)};ie.useReducer=function(e,t,r){return bt.current.useReducer(e,t,r)};ie.useRef=function(e){return bt.current.useRef(e)};ie.useState=function(e){return bt.current.useState(e)};ie.useSyncExternalStore=function(e,t,r){return bt.current.useSyncExternalStore(e,t,r)};ie.useTransition=function(){return bt.current.useTransition()};ie.version="18.3.1"});var me=Tr((H_,Pm)=>{"use strict";Pm.exports=Nm()});var $m=Tr(Ne=>{"use strict";function Fu(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,a=e[n];if(0<el(a,t))e[n]=t,e[r]=a,r=n;else break e}}function ur(e){return e.length===0?null:e[0]}function rl(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,a=e.length,o=a>>>1;n<o;){var s=2*(n+1)-1,l=e[s],i=s+1,d=e[i];if(0>el(l,r))i<a&&0>el(d,l)?(e[n]=d,e[i]=r,n=i):(e[n]=l,e[s]=r,n=s);else if(i<a&&0>el(d,r))e[n]=d,e[i]=r,n=i;else break e}}return t}function el(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Tm=performance,Ne.unstable_now=function(){return Tm.now()}):(Au=Date,Am=Au.now(),Ne.unstable_now=function(){return Au.now()-Am});var Tm,Au,Am,Lr=[],Jr=[],S0=1,Gt=null,ct=3,nl=!1,Pn=!1,po=!1,Fm=typeof setTimeout=="function"?setTimeout:null,Bm=typeof clearTimeout=="function"?clearTimeout:null,Dm=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Bu(e){for(var t=ur(Jr);t!==null;){if(t.callback===null)rl(Jr);else if(t.startTime<=e)rl(Jr),t.sortIndex=t.expirationTime,Fu(Lr,t);else break;t=ur(Jr)}}function zu(e){if(po=!1,Bu(e),!Pn)if(ur(Lr)!==null)Pn=!0,qu(Uu);else{var t=ur(Jr);t!==null&&$u(zu,t.startTime-e)}}function Uu(e,t){Pn=!1,po&&(po=!1,Bm(mo),mo=-1),nl=!0;var r=ct;try{for(Bu(t),Gt=ur(Lr);Gt!==null&&(!(Gt.expirationTime>t)||e&&!qm());){var n=Gt.callback;if(typeof n=="function"){Gt.callback=null,ct=Gt.priorityLevel;var a=n(Gt.expirationTime<=t);t=Ne.unstable_now(),typeof a=="function"?Gt.callback=a:Gt===ur(Lr)&&rl(Lr),Bu(t)}else rl(Lr);Gt=ur(Lr)}if(Gt!==null)var o=!0;else{var s=ur(Jr);s!==null&&$u(zu,s.startTime-t),o=!1}return o}finally{Gt=null,ct=r,nl=!1}}var al=!1,tl=null,mo=-1,zm=5,Um=-1;function qm(){return!(Ne.unstable_now()-Um<zm)}function Du(){if(tl!==null){var e=Ne.unstable_now();Um=e;var t=!0;try{t=tl(!0,e)}finally{t?fo():(al=!1,tl=null)}}else al=!1}var fo;typeof Dm=="function"?fo=function(){Dm(Du)}:typeof MessageChannel<"u"?(Ou=new MessageChannel,Om=Ou.port2,Ou.port1.onmessage=Du,fo=function(){Om.postMessage(null)}):fo=function(){Fm(Du,0)};var Ou,Om;function qu(e){tl=e,al||(al=!0,fo())}function $u(e,t){mo=Fm(function(){e(Ne.unstable_now())},t)}Ne.unstable_IdlePriority=5;Ne.unstable_ImmediatePriority=1;Ne.unstable_LowPriority=4;Ne.unstable_NormalPriority=3;Ne.unstable_Profiling=null;Ne.unstable_UserBlockingPriority=2;Ne.unstable_cancelCallback=function(e){e.callback=null};Ne.unstable_continueExecution=function(){Pn||nl||(Pn=!0,qu(Uu))};Ne.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):zm=0<e?Math.floor(1e3/e):5};Ne.unstable_getCurrentPriorityLevel=function(){return ct};Ne.unstable_getFirstCallbackNode=function(){return ur(Lr)};Ne.unstable_next=function(e){switch(ct){case 1:case 2:case 3:var t=3;break;default:t=ct}var r=ct;ct=t;try{return e()}finally{ct=r}};Ne.unstable_pauseExecution=function(){};Ne.unstable_requestPaint=function(){};Ne.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=ct;ct=e;try{return t()}finally{ct=r}};Ne.unstable_scheduleCallback=function(e,t,r){var n=Ne.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?n+r:n):r=n,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return a=r+a,e={id:S0++,callback:t,priorityLevel:e,startTime:r,expirationTime:a,sortIndex:-1},r>n?(e.sortIndex=r,Fu(Jr,e),ur(Lr)===null&&e===ur(Jr)&&(po?(Bm(mo),mo=-1):po=!0,$u(zu,r-n))):(e.sortIndex=a,Fu(Lr,e),Pn||nl||(Pn=!0,qu(Uu))),e};Ne.unstable_shouldYield=qm;Ne.unstable_wrapCallback=function(e){var t=ct;return function(){var r=ct;ct=t;try{return e.apply(this,arguments)}finally{ct=r}}}});var jm=Tr((W_,Hm)=>{"use strict";Hm.exports=$m()});var Xx=Tr($t=>{"use strict";var C0=me(),Ut=jm();function A(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Yh=new Set,Oo={};function Wn(e,t){Fa(e,t),Fa(e+"Capture",t)}function Fa(e,t){for(Oo[e]=t,e=0;e<t.length;e++)Yh.add(t[e])}var zr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cd=Object.prototype.hasOwnProperty,L0=/^[: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]*$/,Wm={},Vm={};function k0(e){return cd.call(Vm,e)?!0:cd.call(Wm,e)?!1:L0.test(e)?Vm[e]=!0:(Wm[e]=!0,!1)}function I0(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function _0(e,t,r,n){if(t===null||typeof t>"u"||I0(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Lt(e,t,r,n,a,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var st={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){st[e]=new Lt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];st[t]=new Lt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){st[e]=new Lt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){st[e]=new Lt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){st[e]=new Lt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){st[e]=new Lt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){st[e]=new Lt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){st[e]=new Lt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){st[e]=new Lt(e,5,!1,e.toLowerCase(),null,!1,!1)});var nc=/[\-:]([a-z])/g;function ac(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(nc,ac);st[t]=new Lt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(nc,ac);st[t]=new Lt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(nc,ac);st[t]=new Lt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){st[e]=new Lt(e,1,!1,e.toLowerCase(),null,!1,!1)});st.xlinkHref=new Lt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){st[e]=new Lt(e,1,!1,e.toLowerCase(),null,!0,!0)});function oc(e,t,r,n){var a=st.hasOwnProperty(t)?st[t]:null;(a!==null?a.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(_0(t,r,a,n)&&(r=null),n||a===null?k0(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):a.mustUseProperty?e[a.propertyName]=r===null?a.type===3?!1:"":r:(t=a.attributeName,n=a.attributeNamespace,r===null?e.removeAttribute(t):(a=a.type,r=a===3||a===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Hr=C0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ol=Symbol.for("react.element"),ya=Symbol.for("react.portal"),wa=Symbol.for("react.fragment"),sc=Symbol.for("react.strict_mode"),fd=Symbol.for("react.profiler"),Jh=Symbol.for("react.provider"),Zh=Symbol.for("react.context"),lc=Symbol.for("react.forward_ref"),pd=Symbol.for("react.suspense"),md=Symbol.for("react.suspense_list"),ic=Symbol.for("react.memo"),en=Symbol.for("react.lazy"),eg=Symbol.for("react.offscreen"),Gm=Symbol.iterator;function ho(e){return e===null||typeof e!="object"?null:(e=Gm&&e[Gm]||e["@@iterator"],typeof e=="function"?e:null)}var He=Object.assign,Hu;function Co(e){if(Hu===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Hu=t&&t[1]||""}return`
|
|
2
|
+
`+Hu+e}var ju=!1;function Wu(e,t){if(!e||ju)return"";ju=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var n=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){n=d}e.call(t.prototype)}else{try{throw Error()}catch(d){n=d}e()}}catch(d){if(d&&n&&typeof d.stack=="string"){for(var a=d.stack.split(`
|
|
3
|
+
`),o=n.stack.split(`
|
|
4
|
+
`),s=a.length-1,l=o.length-1;1<=s&&0<=l&&a[s]!==o[l];)l--;for(;1<=s&&0<=l;s--,l--)if(a[s]!==o[l]){if(s!==1||l!==1)do if(s--,l--,0>l||a[s]!==o[l]){var i=`
|
|
5
|
+
`+a[s].replace(" at new "," at ");return e.displayName&&i.includes("<anonymous>")&&(i=i.replace("<anonymous>",e.displayName)),i}while(1<=s&&0<=l);break}}}finally{ju=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Co(e):""}function M0(e){switch(e.tag){case 5:return Co(e.type);case 16:return Co("Lazy");case 13:return Co("Suspense");case 19:return Co("SuspenseList");case 0:case 2:case 15:return e=Wu(e.type,!1),e;case 11:return e=Wu(e.type.render,!1),e;case 1:return e=Wu(e.type,!0),e;default:return""}}function hd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case wa:return"Fragment";case ya:return"Portal";case fd:return"Profiler";case sc:return"StrictMode";case pd:return"Suspense";case md:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Zh:return(e.displayName||"Context")+".Consumer";case Jh:return(e._context.displayName||"Context")+".Provider";case lc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ic:return t=e.displayName||null,t!==null?t:hd(e.type)||"Memo";case en:t=e._payload,e=e._init;try{return hd(e(t))}catch{}}return null}function R0(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return hd(t);case 8:return t===sc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function hn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function E0(e){var t=tg(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(s){n=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function sl(e){e._valueTracker||(e._valueTracker=E0(e))}function rg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=tg(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Al(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function gd(e,t){var r=t.checked;return He({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Xm(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=hn(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ng(e,t){t=t.checked,t!=null&&oc(e,"checked",t,!1)}function xd(e,t){ng(e,t);var r=hn(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?vd(e,t.type,r):t.hasOwnProperty("defaultValue")&&vd(e,t.type,hn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Km(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function vd(e,t,r){(t!=="number"||Al(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Lo=Array.isArray;function Na(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&n&&(e[r].defaultSelected=!0)}else{for(r=""+hn(r),t=null,a=0;a<e.length;a++){if(e[a].value===r){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function yd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(A(91));return He({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Qm(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(A(92));if(Lo(r)){if(1<r.length)throw Error(A(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:hn(r)}}function ag(e,t){var r=hn(t.value),n=hn(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function Ym(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function og(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function wd(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?og(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ll,sg=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,a){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,a)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ll=ll||document.createElement("div"),ll.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ll.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fo(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var _o={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},N0=["Webkit","ms","Moz","O"];Object.keys(_o).forEach(function(e){N0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),_o[t]=_o[e]})});function lg(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||_o.hasOwnProperty(e)&&_o[e]?(""+t).trim():t+"px"}function ig(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=lg(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var P0=He({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function bd(e,t){if(t){if(P0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function Sd(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Cd=null;function uc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ld=null,Pa=null,Ta=null;function Jm(e){if(e=ts(e)){if(typeof Ld!="function")throw Error(A(280));var t=e.stateNode;t&&(t=ii(t),Ld(e.stateNode,e.type,t))}}function ug(e){Pa?Ta?Ta.push(e):Ta=[e]:Pa=e}function dg(){if(Pa){var e=Pa,t=Ta;if(Ta=Pa=null,Jm(e),t)for(e=0;e<t.length;e++)Jm(t[e])}}function cg(e,t){return e(t)}function fg(){}var Vu=!1;function pg(e,t,r){if(Vu)return e(t,r);Vu=!0;try{return cg(e,t,r)}finally{Vu=!1,(Pa!==null||Ta!==null)&&(fg(),dg())}}function Bo(e,t){var r=e.stateNode;if(r===null)return null;var n=ii(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(A(231,t,typeof r));return r}var kd=!1;if(zr)try{xa={},Object.defineProperty(xa,"passive",{get:function(){kd=!0}}),window.addEventListener("test",xa,xa),window.removeEventListener("test",xa,xa)}catch{kd=!1}var xa;function T0(e,t,r,n,a,o,s,l,i){var d=Array.prototype.slice.call(arguments,3);try{t.apply(r,d)}catch(u){this.onError(u)}}var Mo=!1,Dl=null,Ol=!1,Id=null,A0={onError:function(e){Mo=!0,Dl=e}};function D0(e,t,r,n,a,o,s,l,i){Mo=!1,Dl=null,T0.apply(A0,arguments)}function O0(e,t,r,n,a,o,s,l,i){if(D0.apply(this,arguments),Mo){if(Mo){var d=Dl;Mo=!1,Dl=null}else throw Error(A(198));Ol||(Ol=!0,Id=d)}}function Vn(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function mg(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Zm(e){if(Vn(e)!==e)throw Error(A(188))}function F0(e){var t=e.alternate;if(!t){if(t=Vn(e),t===null)throw Error(A(188));return t!==e?null:e}for(var r=e,n=t;;){var a=r.return;if(a===null)break;var o=a.alternate;if(o===null){if(n=a.return,n!==null){r=n;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===r)return Zm(a),e;if(o===n)return Zm(a),t;o=o.sibling}throw Error(A(188))}if(r.return!==n.return)r=a,n=o;else{for(var s=!1,l=a.child;l;){if(l===r){s=!0,r=a,n=o;break}if(l===n){s=!0,n=a,r=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===r){s=!0,r=o,n=a;break}if(l===n){s=!0,n=o,r=a;break}l=l.sibling}if(!s)throw Error(A(189))}}if(r.alternate!==n)throw Error(A(190))}if(r.tag!==3)throw Error(A(188));return r.stateNode.current===r?e:t}function hg(e){return e=F0(e),e!==null?gg(e):null}function gg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=gg(e);if(t!==null)return t;e=e.sibling}return null}var xg=Ut.unstable_scheduleCallback,eh=Ut.unstable_cancelCallback,B0=Ut.unstable_shouldYield,z0=Ut.unstable_requestPaint,Ge=Ut.unstable_now,U0=Ut.unstable_getCurrentPriorityLevel,dc=Ut.unstable_ImmediatePriority,vg=Ut.unstable_UserBlockingPriority,Fl=Ut.unstable_NormalPriority,q0=Ut.unstable_LowPriority,yg=Ut.unstable_IdlePriority,ai=null,Mr=null;function $0(e){if(Mr&&typeof Mr.onCommitFiberRoot=="function")try{Mr.onCommitFiberRoot(ai,e,void 0,(e.current.flags&128)===128)}catch{}}var mr=Math.clz32?Math.clz32:W0,H0=Math.log,j0=Math.LN2;function W0(e){return e>>>=0,e===0?32:31-(H0(e)/j0|0)|0}var il=64,ul=4194304;function ko(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Bl(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,o=e.pingedLanes,s=r&268435455;if(s!==0){var l=s&~a;l!==0?n=ko(l):(o&=s,o!==0&&(n=ko(o)))}else s=r&~a,s!==0?n=ko(s):o!==0&&(n=ko(o));if(n===0)return 0;if(t!==0&&t!==n&&(t&a)===0&&(a=n&-n,o=t&-t,a>=o||a===16&&(o&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-mr(t),a=1<<r,n|=e[r],t&=~a;return n}function V0(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function G0(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-mr(o),l=1<<s,i=a[s];i===-1?((l&r)===0||(l&n)!==0)&&(a[s]=V0(l,t)):i<=t&&(e.expiredLanes|=l),o&=~l}}function _d(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function wg(){var e=il;return il<<=1,(il&4194240)===0&&(il=64),e}function Gu(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Zo(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-mr(t),e[t]=r}function X0(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var a=31-mr(r),o=1<<a;t[a]=0,n[a]=-1,e[a]=-1,r&=~o}}function cc(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-mr(r),a=1<<n;a&t|e[n]&t&&(e[n]|=t),r&=~a}}var Ie=0;function bg(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Sg,fc,Cg,Lg,kg,Md=!1,dl=[],sn=null,ln=null,un=null,zo=new Map,Uo=new Map,rn=[],K0="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 submit".split(" ");function th(e,t){switch(e){case"focusin":case"focusout":sn=null;break;case"dragenter":case"dragleave":ln=null;break;case"mouseover":case"mouseout":un=null;break;case"pointerover":case"pointerout":zo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Uo.delete(t.pointerId)}}function go(e,t,r,n,a,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:o,targetContainers:[a]},t!==null&&(t=ts(t),t!==null&&fc(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function Q0(e,t,r,n,a){switch(t){case"focusin":return sn=go(sn,e,t,r,n,a),!0;case"dragenter":return ln=go(ln,e,t,r,n,a),!0;case"mouseover":return un=go(un,e,t,r,n,a),!0;case"pointerover":var o=a.pointerId;return zo.set(o,go(zo.get(o)||null,e,t,r,n,a)),!0;case"gotpointercapture":return o=a.pointerId,Uo.set(o,go(Uo.get(o)||null,e,t,r,n,a)),!0}return!1}function Ig(e){var t=Dn(e.target);if(t!==null){var r=Vn(t);if(r!==null){if(t=r.tag,t===13){if(t=mg(r),t!==null){e.blockedOn=t,kg(e.priority,function(){Cg(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ll(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Rd(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Cd=n,r.target.dispatchEvent(n),Cd=null}else return t=ts(r),t!==null&&fc(t),e.blockedOn=r,!1;t.shift()}return!0}function rh(e,t,r){Ll(e)&&r.delete(t)}function Y0(){Md=!1,sn!==null&&Ll(sn)&&(sn=null),ln!==null&&Ll(ln)&&(ln=null),un!==null&&Ll(un)&&(un=null),zo.forEach(rh),Uo.forEach(rh)}function xo(e,t){e.blockedOn===t&&(e.blockedOn=null,Md||(Md=!0,Ut.unstable_scheduleCallback(Ut.unstable_NormalPriority,Y0)))}function qo(e){function t(a){return xo(a,e)}if(0<dl.length){xo(dl[0],e);for(var r=1;r<dl.length;r++){var n=dl[r];n.blockedOn===e&&(n.blockedOn=null)}}for(sn!==null&&xo(sn,e),ln!==null&&xo(ln,e),un!==null&&xo(un,e),zo.forEach(t),Uo.forEach(t),r=0;r<rn.length;r++)n=rn[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<rn.length&&(r=rn[0],r.blockedOn===null);)Ig(r),r.blockedOn===null&&rn.shift()}var Aa=Hr.ReactCurrentBatchConfig,zl=!0;function J0(e,t,r,n){var a=Ie,o=Aa.transition;Aa.transition=null;try{Ie=1,pc(e,t,r,n)}finally{Ie=a,Aa.transition=o}}function Z0(e,t,r,n){var a=Ie,o=Aa.transition;Aa.transition=null;try{Ie=4,pc(e,t,r,n)}finally{Ie=a,Aa.transition=o}}function pc(e,t,r,n){if(zl){var a=Rd(e,t,r,n);if(a===null)ed(e,t,n,Ul,r),th(e,n);else if(Q0(a,e,t,r,n))n.stopPropagation();else if(th(e,n),t&4&&-1<K0.indexOf(e)){for(;a!==null;){var o=ts(a);if(o!==null&&Sg(o),o=Rd(e,t,r,n),o===null&&ed(e,t,n,Ul,r),o===a)break;a=o}a!==null&&n.stopPropagation()}else ed(e,t,n,null,r)}}var Ul=null;function Rd(e,t,r,n){if(Ul=null,e=uc(n),e=Dn(e),e!==null)if(t=Vn(e),t===null)e=null;else if(r=t.tag,r===13){if(e=mg(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ul=e,null}function _g(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(U0()){case dc:return 1;case vg:return 4;case Fl:case q0:return 16;case yg:return 536870912;default:return 16}default:return 16}}var an=null,mc=null,kl=null;function Mg(){if(kl)return kl;var e,t=mc,r=t.length,n,a="value"in an?an.value:an.textContent,o=a.length;for(e=0;e<r&&t[e]===a[e];e++);var s=r-e;for(n=1;n<=s&&t[r-n]===a[o-n];n++);return kl=a.slice(e,1<n?1-n:void 0)}function Il(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 cl(){return!0}function nh(){return!1}function qt(e){function t(r,n,a,o,s){this._reactName=r,this._targetInst=a,this.type=n,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?cl:nh,this.isPropagationStopped=nh,this}return He(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=cl)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=cl)},persist:function(){},isPersistent:cl}),t}var ja={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hc=qt(ja),es=He({},ja,{view:0,detail:0}),eS=qt(es),Xu,Ku,vo,oi=He({},es,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gc,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!==vo&&(vo&&e.type==="mousemove"?(Xu=e.screenX-vo.screenX,Ku=e.screenY-vo.screenY):Ku=Xu=0,vo=e),Xu)},movementY:function(e){return"movementY"in e?e.movementY:Ku}}),ah=qt(oi),tS=He({},oi,{dataTransfer:0}),rS=qt(tS),nS=He({},es,{relatedTarget:0}),Qu=qt(nS),aS=He({},ja,{animationName:0,elapsedTime:0,pseudoElement:0}),oS=qt(aS),sS=He({},ja,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lS=qt(sS),iS=He({},ja,{data:0}),oh=qt(iS),uS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dS={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"},cS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=cS[e])?!!t[e]:!1}function gc(){return fS}var pS=He({},es,{key:function(e){if(e.key){var t=uS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Il(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?dS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gc,charCode:function(e){return e.type==="keypress"?Il(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Il(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),mS=qt(pS),hS=He({},oi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sh=qt(hS),gS=He({},es,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gc}),xS=qt(gS),vS=He({},ja,{propertyName:0,elapsedTime:0,pseudoElement:0}),yS=qt(vS),wS=He({},oi,{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}),bS=qt(wS),SS=[9,13,27,32],xc=zr&&"CompositionEvent"in window,Ro=null;zr&&"documentMode"in document&&(Ro=document.documentMode);var CS=zr&&"TextEvent"in window&&!Ro,Rg=zr&&(!xc||Ro&&8<Ro&&11>=Ro),lh=" ",ih=!1;function Eg(e,t){switch(e){case"keyup":return SS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ng(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ba=!1;function LS(e,t){switch(e){case"compositionend":return Ng(t);case"keypress":return t.which!==32?null:(ih=!0,lh);case"textInput":return e=t.data,e===lh&&ih?null:e;default:return null}}function kS(e,t){if(ba)return e==="compositionend"||!xc&&Eg(e,t)?(e=Mg(),kl=mc=an=null,ba=!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 Rg&&t.locale!=="ko"?null:t.data;default:return null}}var IS={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 uh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!IS[e.type]:t==="textarea"}function Pg(e,t,r,n){ug(n),t=ql(t,"onChange"),0<t.length&&(r=new hc("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Eo=null,$o=null;function _S(e){Hg(e,0)}function si(e){var t=La(e);if(rg(t))return e}function MS(e,t){if(e==="change")return t}var Tg=!1;zr&&(zr?(pl="oninput"in document,pl||(Yu=document.createElement("div"),Yu.setAttribute("oninput","return;"),pl=typeof Yu.oninput=="function"),fl=pl):fl=!1,Tg=fl&&(!document.documentMode||9<document.documentMode));var fl,pl,Yu;function dh(){Eo&&(Eo.detachEvent("onpropertychange",Ag),$o=Eo=null)}function Ag(e){if(e.propertyName==="value"&&si($o)){var t=[];Pg(t,$o,e,uc(e)),pg(_S,t)}}function RS(e,t,r){e==="focusin"?(dh(),Eo=t,$o=r,Eo.attachEvent("onpropertychange",Ag)):e==="focusout"&&dh()}function ES(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return si($o)}function NS(e,t){if(e==="click")return si(t)}function PS(e,t){if(e==="input"||e==="change")return si(t)}function TS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gr=typeof Object.is=="function"?Object.is:TS;function Ho(e,t){if(gr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var a=r[n];if(!cd.call(t,a)||!gr(e[a],t[a]))return!1}return!0}function ch(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fh(e,t){var r=ch(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ch(r)}}function Dg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Og(){for(var e=window,t=Al();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Al(e.document)}return t}function vc(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")}function AS(e){var t=Og(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Dg(r.ownerDocument.documentElement,r)){if(n!==null&&vc(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,o=Math.min(n.start,a);n=n.end===void 0?o:Math.min(n.end,a),!e.extend&&o>n&&(a=n,n=o,o=a),a=fh(r,o);var s=fh(r,n);a&&s&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var DS=zr&&"documentMode"in document&&11>=document.documentMode,Sa=null,Ed=null,No=null,Nd=!1;function ph(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Nd||Sa==null||Sa!==Al(n)||(n=Sa,"selectionStart"in n&&vc(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),No&&Ho(No,n)||(No=n,n=ql(Ed,"onSelect"),0<n.length&&(t=new hc("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Sa)))}function ml(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Ca={animationend:ml("Animation","AnimationEnd"),animationiteration:ml("Animation","AnimationIteration"),animationstart:ml("Animation","AnimationStart"),transitionend:ml("Transition","TransitionEnd")},Ju={},Fg={};zr&&(Fg=document.createElement("div").style,"AnimationEvent"in window||(delete Ca.animationend.animation,delete Ca.animationiteration.animation,delete Ca.animationstart.animation),"TransitionEvent"in window||delete Ca.transitionend.transition);function li(e){if(Ju[e])return Ju[e];if(!Ca[e])return e;var t=Ca[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Fg)return Ju[e]=t[r];return e}var Bg=li("animationend"),zg=li("animationiteration"),Ug=li("animationstart"),qg=li("transitionend"),$g=new Map,mh="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function xn(e,t){$g.set(e,t),Wn(t,[e])}for(hl=0;hl<mh.length;hl++)gl=mh[hl],hh=gl.toLowerCase(),gh=gl[0].toUpperCase()+gl.slice(1),xn(hh,"on"+gh);var gl,hh,gh,hl;xn(Bg,"onAnimationEnd");xn(zg,"onAnimationIteration");xn(Ug,"onAnimationStart");xn("dblclick","onDoubleClick");xn("focusin","onFocus");xn("focusout","onBlur");xn(qg,"onTransitionEnd");Fa("onMouseEnter",["mouseout","mouseover"]);Fa("onMouseLeave",["mouseout","mouseover"]);Fa("onPointerEnter",["pointerout","pointerover"]);Fa("onPointerLeave",["pointerout","pointerover"]);Wn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Wn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Wn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Wn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Wn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Wn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Io="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(" "),OS=new Set("cancel close invalid load scroll toggle".split(" ").concat(Io));function xh(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,O0(n,t,void 0,e),e.currentTarget=null}function Hg(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],a=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var s=n.length-1;0<=s;s--){var l=n[s],i=l.instance,d=l.currentTarget;if(l=l.listener,i!==o&&a.isPropagationStopped())break e;xh(a,l,d),o=i}else for(s=0;s<n.length;s++){if(l=n[s],i=l.instance,d=l.currentTarget,l=l.listener,i!==o&&a.isPropagationStopped())break e;xh(a,l,d),o=i}}}if(Ol)throw e=Id,Ol=!1,Id=null,e}function Oe(e,t){var r=t[Od];r===void 0&&(r=t[Od]=new Set);var n=e+"__bubble";r.has(n)||(jg(t,e,2,!1),r.add(n))}function Zu(e,t,r){var n=0;t&&(n|=4),jg(r,e,n,t)}var xl="_reactListening"+Math.random().toString(36).slice(2);function jo(e){if(!e[xl]){e[xl]=!0,Yh.forEach(function(r){r!=="selectionchange"&&(OS.has(r)||Zu(r,!1,e),Zu(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xl]||(t[xl]=!0,Zu("selectionchange",!1,t))}}function jg(e,t,r,n){switch(_g(t)){case 1:var a=J0;break;case 4:a=Z0;break;default:a=pc}r=a.bind(null,t,r,e),a=void 0,!kd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,r,{capture:!0,passive:a}):e.addEventListener(t,r,!0):a!==void 0?e.addEventListener(t,r,{passive:a}):e.addEventListener(t,r,!1)}function ed(e,t,r,n,a){var o=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var s=n.tag;if(s===3||s===4){var l=n.stateNode.containerInfo;if(l===a||l.nodeType===8&&l.parentNode===a)break;if(s===4)for(s=n.return;s!==null;){var i=s.tag;if((i===3||i===4)&&(i=s.stateNode.containerInfo,i===a||i.nodeType===8&&i.parentNode===a))return;s=s.return}for(;l!==null;){if(s=Dn(l),s===null)return;if(i=s.tag,i===5||i===6){n=o=s;continue e}l=l.parentNode}}n=n.return}pg(function(){var d=o,u=uc(r),p=[];e:{var c=$g.get(e);if(c!==void 0){var f=hc,h=e;switch(e){case"keypress":if(Il(r)===0)break e;case"keydown":case"keyup":f=mS;break;case"focusin":h="focus",f=Qu;break;case"focusout":h="blur",f=Qu;break;case"beforeblur":case"afterblur":f=Qu;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=ah;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=rS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=xS;break;case Bg:case zg:case Ug:f=oS;break;case qg:f=yS;break;case"scroll":f=eS;break;case"wheel":f=bS;break;case"copy":case"cut":case"paste":f=lS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=sh}var m=(t&4)!==0,y=!m&&e==="scroll",g=m?c!==null?c+"Capture":null:c;m=[];for(var x=d,v;x!==null;){v=x;var S=v.stateNode;if(v.tag===5&&S!==null&&(v=S,g!==null&&(S=Bo(x,g),S!=null&&m.push(Wo(x,S,v)))),y)break;x=x.return}0<m.length&&(c=new f(c,h,null,r,u),p.push({event:c,listeners:m}))}}if((t&7)===0){e:{if(c=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",c&&r!==Cd&&(h=r.relatedTarget||r.fromElement)&&(Dn(h)||h[Ur]))break e;if((f||c)&&(c=u.window===u?u:(c=u.ownerDocument)?c.defaultView||c.parentWindow:window,f?(h=r.relatedTarget||r.toElement,f=d,h=h?Dn(h):null,h!==null&&(y=Vn(h),h!==y||h.tag!==5&&h.tag!==6)&&(h=null)):(f=null,h=d),f!==h)){if(m=ah,S="onMouseLeave",g="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(m=sh,S="onPointerLeave",g="onPointerEnter",x="pointer"),y=f==null?c:La(f),v=h==null?c:La(h),c=new m(S,x+"leave",f,r,u),c.target=y,c.relatedTarget=v,S=null,Dn(u)===d&&(m=new m(g,x+"enter",h,r,u),m.target=v,m.relatedTarget=y,S=m),y=S,f&&h)t:{for(m=f,g=h,x=0,v=m;v;v=va(v))x++;for(v=0,S=g;S;S=va(S))v++;for(;0<x-v;)m=va(m),x--;for(;0<v-x;)g=va(g),v--;for(;x--;){if(m===g||g!==null&&m===g.alternate)break t;m=va(m),g=va(g)}m=null}else m=null;f!==null&&vh(p,c,f,m,!1),h!==null&&y!==null&&vh(p,y,h,m,!0)}}e:{if(c=d?La(d):window,f=c.nodeName&&c.nodeName.toLowerCase(),f==="select"||f==="input"&&c.type==="file")var b=MS;else if(uh(c))if(Tg)b=PS;else{b=ES;var w=RS}else(f=c.nodeName)&&f.toLowerCase()==="input"&&(c.type==="checkbox"||c.type==="radio")&&(b=NS);if(b&&(b=b(e,d))){Pg(p,b,r,u);break e}w&&w(e,c,d),e==="focusout"&&(w=c._wrapperState)&&w.controlled&&c.type==="number"&&vd(c,"number",c.value)}switch(w=d?La(d):window,e){case"focusin":(uh(w)||w.contentEditable==="true")&&(Sa=w,Ed=d,No=null);break;case"focusout":No=Ed=Sa=null;break;case"mousedown":Nd=!0;break;case"contextmenu":case"mouseup":case"dragend":Nd=!1,ph(p,r,u);break;case"selectionchange":if(DS)break;case"keydown":case"keyup":ph(p,r,u)}var C;if(xc)e:{switch(e){case"compositionstart":var L="onCompositionStart";break e;case"compositionend":L="onCompositionEnd";break e;case"compositionupdate":L="onCompositionUpdate";break e}L=void 0}else ba?Eg(e,r)&&(L="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(L="onCompositionStart");L&&(Rg&&r.locale!=="ko"&&(ba||L!=="onCompositionStart"?L==="onCompositionEnd"&&ba&&(C=Mg()):(an=u,mc="value"in an?an.value:an.textContent,ba=!0)),w=ql(d,L),0<w.length&&(L=new oh(L,e,null,r,u),p.push({event:L,listeners:w}),C?L.data=C:(C=Ng(r),C!==null&&(L.data=C)))),(C=CS?LS(e,r):kS(e,r))&&(d=ql(d,"onBeforeInput"),0<d.length&&(u=new oh("onBeforeInput","beforeinput",null,r,u),p.push({event:u,listeners:d}),u.data=C))}Hg(p,t)})}function Wo(e,t,r){return{instance:e,listener:t,currentTarget:r}}function ql(e,t){for(var r=t+"Capture",n=[];e!==null;){var a=e,o=a.stateNode;a.tag===5&&o!==null&&(a=o,o=Bo(e,r),o!=null&&n.unshift(Wo(e,o,a)),o=Bo(e,t),o!=null&&n.push(Wo(e,o,a))),e=e.return}return n}function va(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function vh(e,t,r,n,a){for(var o=t._reactName,s=[];r!==null&&r!==n;){var l=r,i=l.alternate,d=l.stateNode;if(i!==null&&i===n)break;l.tag===5&&d!==null&&(l=d,a?(i=Bo(r,o),i!=null&&s.unshift(Wo(r,i,l))):a||(i=Bo(r,o),i!=null&&s.push(Wo(r,i,l)))),r=r.return}s.length!==0&&e.push({event:t,listeners:s})}var FS=/\r\n?/g,BS=/\u0000|\uFFFD/g;function yh(e){return(typeof e=="string"?e:""+e).replace(FS,`
|
|
6
|
+
`).replace(BS,"")}function vl(e,t,r){if(t=yh(t),yh(e)!==t&&r)throw Error(A(425))}function $l(){}var Pd=null,Td=null;function Ad(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Dd=typeof setTimeout=="function"?setTimeout:void 0,zS=typeof clearTimeout=="function"?clearTimeout:void 0,wh=typeof Promise=="function"?Promise:void 0,US=typeof queueMicrotask=="function"?queueMicrotask:typeof wh<"u"?function(e){return wh.resolve(null).then(e).catch(qS)}:Dd;function qS(e){setTimeout(function(){throw e})}function td(e,t){var r=t,n=0;do{var a=r.nextSibling;if(e.removeChild(r),a&&a.nodeType===8)if(r=a.data,r==="/$"){if(n===0){e.removeChild(a),qo(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=a}while(r);qo(t)}function dn(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==="$?")break;if(t==="/$")return null}}return e}function bh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Wa=Math.random().toString(36).slice(2),_r="__reactFiber$"+Wa,Vo="__reactProps$"+Wa,Ur="__reactContainer$"+Wa,Od="__reactEvents$"+Wa,$S="__reactListeners$"+Wa,HS="__reactHandles$"+Wa;function Dn(e){var t=e[_r];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Ur]||r[_r]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=bh(e);e!==null;){if(r=e[_r])return r;e=bh(e)}return t}e=r,r=e.parentNode}return null}function ts(e){return e=e[_r]||e[Ur],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function La(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(A(33))}function ii(e){return e[Vo]||null}var Fd=[],ka=-1;function vn(e){return{current:e}}function Fe(e){0>ka||(e.current=Fd[ka],Fd[ka]=null,ka--)}function Pe(e,t){ka++,Fd[ka]=e.current,e.current=t}var gn={},ht=vn(gn),Et=vn(!1),Un=gn;function Ba(e,t){var r=e.type.contextTypes;if(!r)return gn;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in r)a[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Nt(e){return e=e.childContextTypes,e!=null}function Hl(){Fe(Et),Fe(ht)}function Sh(e,t,r){if(ht.current!==gn)throw Error(A(168));Pe(ht,t),Pe(Et,r)}function Wg(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(A(108,R0(e)||"Unknown",a));return He({},r,n)}function jl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gn,Un=ht.current,Pe(ht,e),Pe(Et,Et.current),!0}function Ch(e,t,r){var n=e.stateNode;if(!n)throw Error(A(169));r?(e=Wg(e,t,Un),n.__reactInternalMemoizedMergedChildContext=e,Fe(Et),Fe(ht),Pe(ht,e)):Fe(Et),Pe(Et,r)}var Dr=null,ui=!1,rd=!1;function Vg(e){Dr===null?Dr=[e]:Dr.push(e)}function jS(e){ui=!0,Vg(e)}function yn(){if(!rd&&Dr!==null){rd=!0;var e=0,t=Ie;try{var r=Dr;for(Ie=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Dr=null,ui=!1}catch(a){throw Dr!==null&&(Dr=Dr.slice(e+1)),xg(dc,yn),a}finally{Ie=t,rd=!1}}return null}var Ia=[],_a=0,Wl=null,Vl=0,Xt=[],Kt=0,qn=null,Or=1,Fr="";function Tn(e,t){Ia[_a++]=Vl,Ia[_a++]=Wl,Wl=e,Vl=t}function Gg(e,t,r){Xt[Kt++]=Or,Xt[Kt++]=Fr,Xt[Kt++]=qn,qn=e;var n=Or;e=Fr;var a=32-mr(n)-1;n&=~(1<<a),r+=1;var o=32-mr(t)+a;if(30<o){var s=a-a%5;o=(n&(1<<s)-1).toString(32),n>>=s,a-=s,Or=1<<32-mr(t)+a|r<<a|n,Fr=o+e}else Or=1<<o|r<<a|n,Fr=e}function yc(e){e.return!==null&&(Tn(e,1),Gg(e,1,0))}function wc(e){for(;e===Wl;)Wl=Ia[--_a],Ia[_a]=null,Vl=Ia[--_a],Ia[_a]=null;for(;e===qn;)qn=Xt[--Kt],Xt[Kt]=null,Fr=Xt[--Kt],Xt[Kt]=null,Or=Xt[--Kt],Xt[Kt]=null}var zt=null,Bt=null,ze=!1,pr=null;function Xg(e,t){var r=Qt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Lh(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,zt=e,Bt=dn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,zt=e,Bt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=qn!==null?{id:Or,overflow:Fr}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Qt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,zt=e,Bt=null,!0):!1;default:return!1}}function Bd(e){return(e.mode&1)!==0&&(e.flags&128)===0}function zd(e){if(ze){var t=Bt;if(t){var r=t;if(!Lh(e,t)){if(Bd(e))throw Error(A(418));t=dn(r.nextSibling);var n=zt;t&&Lh(e,t)?Xg(n,r):(e.flags=e.flags&-4097|2,ze=!1,zt=e)}}else{if(Bd(e))throw Error(A(418));e.flags=e.flags&-4097|2,ze=!1,zt=e}}}function kh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;zt=e}function yl(e){if(e!==zt)return!1;if(!ze)return kh(e),ze=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ad(e.type,e.memoizedProps)),t&&(t=Bt)){if(Bd(e))throw Kg(),Error(A(418));for(;t;)Xg(e,t),t=dn(t.nextSibling)}if(kh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Bt=dn(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Bt=null}}else Bt=zt?dn(e.stateNode.nextSibling):null;return!0}function Kg(){for(var e=Bt;e;)e=dn(e.nextSibling)}function za(){Bt=zt=null,ze=!1}function bc(e){pr===null?pr=[e]:pr.push(e)}var WS=Hr.ReactCurrentBatchConfig;function yo(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(A(309));var n=r.stateNode}if(!n)throw Error(A(147,e));var a=n,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var l=a.refs;s===null?delete l[o]:l[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(A(284));if(!r._owner)throw Error(A(290,e))}return e}function wl(e,t){throw e=Object.prototype.toString.call(t),Error(A(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ih(e){var t=e._init;return t(e._payload)}function Qg(e){function t(g,x){if(e){var v=g.deletions;v===null?(g.deletions=[x],g.flags|=16):v.push(x)}}function r(g,x){if(!e)return null;for(;x!==null;)t(g,x),x=x.sibling;return null}function n(g,x){for(g=new Map;x!==null;)x.key!==null?g.set(x.key,x):g.set(x.index,x),x=x.sibling;return g}function a(g,x){return g=mn(g,x),g.index=0,g.sibling=null,g}function o(g,x,v){return g.index=v,e?(v=g.alternate,v!==null?(v=v.index,v<x?(g.flags|=2,x):v):(g.flags|=2,x)):(g.flags|=1048576,x)}function s(g){return e&&g.alternate===null&&(g.flags|=2),g}function l(g,x,v,S){return x===null||x.tag!==6?(x=ud(v,g.mode,S),x.return=g,x):(x=a(x,v),x.return=g,x)}function i(g,x,v,S){var b=v.type;return b===wa?u(g,x,v.props.children,S,v.key):x!==null&&(x.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===en&&Ih(b)===x.type)?(S=a(x,v.props),S.ref=yo(g,x,v),S.return=g,S):(S=Tl(v.type,v.key,v.props,null,g.mode,S),S.ref=yo(g,x,v),S.return=g,S)}function d(g,x,v,S){return x===null||x.tag!==4||x.stateNode.containerInfo!==v.containerInfo||x.stateNode.implementation!==v.implementation?(x=dd(v,g.mode,S),x.return=g,x):(x=a(x,v.children||[]),x.return=g,x)}function u(g,x,v,S,b){return x===null||x.tag!==7?(x=zn(v,g.mode,S,b),x.return=g,x):(x=a(x,v),x.return=g,x)}function p(g,x,v){if(typeof x=="string"&&x!==""||typeof x=="number")return x=ud(""+x,g.mode,v),x.return=g,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case ol:return v=Tl(x.type,x.key,x.props,null,g.mode,v),v.ref=yo(g,null,x),v.return=g,v;case ya:return x=dd(x,g.mode,v),x.return=g,x;case en:var S=x._init;return p(g,S(x._payload),v)}if(Lo(x)||ho(x))return x=zn(x,g.mode,v,null),x.return=g,x;wl(g,x)}return null}function c(g,x,v,S){var b=x!==null?x.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return b!==null?null:l(g,x,""+v,S);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case ol:return v.key===b?i(g,x,v,S):null;case ya:return v.key===b?d(g,x,v,S):null;case en:return b=v._init,c(g,x,b(v._payload),S)}if(Lo(v)||ho(v))return b!==null?null:u(g,x,v,S,null);wl(g,v)}return null}function f(g,x,v,S,b){if(typeof S=="string"&&S!==""||typeof S=="number")return g=g.get(v)||null,l(x,g,""+S,b);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case ol:return g=g.get(S.key===null?v:S.key)||null,i(x,g,S,b);case ya:return g=g.get(S.key===null?v:S.key)||null,d(x,g,S,b);case en:var w=S._init;return f(g,x,v,w(S._payload),b)}if(Lo(S)||ho(S))return g=g.get(v)||null,u(x,g,S,b,null);wl(x,S)}return null}function h(g,x,v,S){for(var b=null,w=null,C=x,L=x=0,k=null;C!==null&&L<v.length;L++){C.index>L?(k=C,C=null):k=C.sibling;var _=c(g,C,v[L],S);if(_===null){C===null&&(C=k);break}e&&C&&_.alternate===null&&t(g,C),x=o(_,x,L),w===null?b=_:w.sibling=_,w=_,C=k}if(L===v.length)return r(g,C),ze&&Tn(g,L),b;if(C===null){for(;L<v.length;L++)C=p(g,v[L],S),C!==null&&(x=o(C,x,L),w===null?b=C:w.sibling=C,w=C);return ze&&Tn(g,L),b}for(C=n(g,C);L<v.length;L++)k=f(C,g,L,v[L],S),k!==null&&(e&&k.alternate!==null&&C.delete(k.key===null?L:k.key),x=o(k,x,L),w===null?b=k:w.sibling=k,w=k);return e&&C.forEach(function(N){return t(g,N)}),ze&&Tn(g,L),b}function m(g,x,v,S){var b=ho(v);if(typeof b!="function")throw Error(A(150));if(v=b.call(v),v==null)throw Error(A(151));for(var w=b=null,C=x,L=x=0,k=null,_=v.next();C!==null&&!_.done;L++,_=v.next()){C.index>L?(k=C,C=null):k=C.sibling;var N=c(g,C,_.value,S);if(N===null){C===null&&(C=k);break}e&&C&&N.alternate===null&&t(g,C),x=o(N,x,L),w===null?b=N:w.sibling=N,w=N,C=k}if(_.done)return r(g,C),ze&&Tn(g,L),b;if(C===null){for(;!_.done;L++,_=v.next())_=p(g,_.value,S),_!==null&&(x=o(_,x,L),w===null?b=_:w.sibling=_,w=_);return ze&&Tn(g,L),b}for(C=n(g,C);!_.done;L++,_=v.next())_=f(C,g,L,_.value,S),_!==null&&(e&&_.alternate!==null&&C.delete(_.key===null?L:_.key),x=o(_,x,L),w===null?b=_:w.sibling=_,w=_);return e&&C.forEach(function(P){return t(g,P)}),ze&&Tn(g,L),b}function y(g,x,v,S){if(typeof v=="object"&&v!==null&&v.type===wa&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case ol:e:{for(var b=v.key,w=x;w!==null;){if(w.key===b){if(b=v.type,b===wa){if(w.tag===7){r(g,w.sibling),x=a(w,v.props.children),x.return=g,g=x;break e}}else if(w.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===en&&Ih(b)===w.type){r(g,w.sibling),x=a(w,v.props),x.ref=yo(g,w,v),x.return=g,g=x;break e}r(g,w);break}else t(g,w);w=w.sibling}v.type===wa?(x=zn(v.props.children,g.mode,S,v.key),x.return=g,g=x):(S=Tl(v.type,v.key,v.props,null,g.mode,S),S.ref=yo(g,x,v),S.return=g,g=S)}return s(g);case ya:e:{for(w=v.key;x!==null;){if(x.key===w)if(x.tag===4&&x.stateNode.containerInfo===v.containerInfo&&x.stateNode.implementation===v.implementation){r(g,x.sibling),x=a(x,v.children||[]),x.return=g,g=x;break e}else{r(g,x);break}else t(g,x);x=x.sibling}x=dd(v,g.mode,S),x.return=g,g=x}return s(g);case en:return w=v._init,y(g,x,w(v._payload),S)}if(Lo(v))return h(g,x,v,S);if(ho(v))return m(g,x,v,S);wl(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,x!==null&&x.tag===6?(r(g,x.sibling),x=a(x,v),x.return=g,g=x):(r(g,x),x=ud(v,g.mode,S),x.return=g,g=x),s(g)):r(g,x)}return y}var Ua=Qg(!0),Yg=Qg(!1),Gl=vn(null),Xl=null,Ma=null,Sc=null;function Cc(){Sc=Ma=Xl=null}function Lc(e){var t=Gl.current;Fe(Gl),e._currentValue=t}function Ud(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Da(e,t){Xl=e,Sc=Ma=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Rt=!0),e.firstContext=null)}function Jt(e){var t=e._currentValue;if(Sc!==e)if(e={context:e,memoizedValue:t,next:null},Ma===null){if(Xl===null)throw Error(A(308));Ma=e,Xl.dependencies={lanes:0,firstContext:e}}else Ma=Ma.next=e;return t}var On=null;function kc(e){On===null?On=[e]:On.push(e)}function Jg(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,kc(t)):(r.next=a.next,a.next=r),t.interleaved=r,qr(e,n)}function qr(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var tn=!1;function Ic(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Zg(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Br(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function cn(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(xe&2)!==0){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,qr(e,r)}return a=n.interleaved,a===null?(t.next=t,kc(n)):(t.next=a.next,a.next=t),n.interleaved=t,qr(e,r)}function _l(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,cc(e,r)}}function _h(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?a=o=s:o=o.next=s,r=r.next}while(r!==null);o===null?a=o=t:o=o.next=t}else a=o=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Kl(e,t,r,n){var a=e.updateQueue;tn=!1;var o=a.firstBaseUpdate,s=a.lastBaseUpdate,l=a.shared.pending;if(l!==null){a.shared.pending=null;var i=l,d=i.next;i.next=null,s===null?o=d:s.next=d,s=i;var u=e.alternate;u!==null&&(u=u.updateQueue,l=u.lastBaseUpdate,l!==s&&(l===null?u.firstBaseUpdate=d:l.next=d,u.lastBaseUpdate=i))}if(o!==null){var p=a.baseState;s=0,u=d=i=null,l=o;do{var c=l.lane,f=l.eventTime;if((n&c)===c){u!==null&&(u=u.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(c=t,f=r,m.tag){case 1:if(h=m.payload,typeof h=="function"){p=h.call(f,p,c);break e}p=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=m.payload,c=typeof h=="function"?h.call(f,p,c):h,c==null)break e;p=He({},p,c);break e;case 2:tn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,c=a.effects,c===null?a.effects=[l]:c.push(l))}else f={eventTime:f,lane:c,tag:l.tag,payload:l.payload,callback:l.callback,next:null},u===null?(d=u=f,i=p):u=u.next=f,s|=c;if(l=l.next,l===null){if(l=a.shared.pending,l===null)break;c=l,l=c.next,c.next=null,a.lastBaseUpdate=c,a.shared.pending=null}}while(!0);if(u===null&&(i=p),a.baseState=i,a.firstBaseUpdate=d,a.lastBaseUpdate=u,t=a.shared.interleaved,t!==null){a=t;do s|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);Hn|=s,e.lanes=s,e.memoizedState=p}}function Mh(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],a=n.callback;if(a!==null){if(n.callback=null,n=r,typeof a!="function")throw Error(A(191,a));a.call(n)}}}var rs={},Rr=vn(rs),Go=vn(rs),Xo=vn(rs);function Fn(e){if(e===rs)throw Error(A(174));return e}function _c(e,t){switch(Pe(Xo,t),Pe(Go,e),Pe(Rr,rs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:wd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=wd(t,e)}Fe(Rr),Pe(Rr,t)}function qa(){Fe(Rr),Fe(Go),Fe(Xo)}function ex(e){Fn(Xo.current);var t=Fn(Rr.current),r=wd(t,e.type);t!==r&&(Pe(Go,e),Pe(Rr,r))}function Mc(e){Go.current===e&&(Fe(Rr),Fe(Go))}var qe=vn(0);function Ql(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)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 nd=[];function Rc(){for(var e=0;e<nd.length;e++)nd[e]._workInProgressVersionPrimary=null;nd.length=0}var Ml=Hr.ReactCurrentDispatcher,ad=Hr.ReactCurrentBatchConfig,$n=0,$e=null,Je=null,rt=null,Yl=!1,Po=!1,Ko=0,VS=0;function ft(){throw Error(A(321))}function Ec(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!gr(e[r],t[r]))return!1;return!0}function Nc(e,t,r,n,a,o){if($n=o,$e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ml.current=e===null||e.memoizedState===null?QS:YS,e=r(n,a),Po){o=0;do{if(Po=!1,Ko=0,25<=o)throw Error(A(301));o+=1,rt=Je=null,t.updateQueue=null,Ml.current=JS,e=r(n,a)}while(Po)}if(Ml.current=Jl,t=Je!==null&&Je.next!==null,$n=0,rt=Je=$e=null,Yl=!1,t)throw Error(A(300));return e}function Pc(){var e=Ko!==0;return Ko=0,e}function Ir(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return rt===null?$e.memoizedState=rt=e:rt=rt.next=e,rt}function Zt(){if(Je===null){var e=$e.alternate;e=e!==null?e.memoizedState:null}else e=Je.next;var t=rt===null?$e.memoizedState:rt.next;if(t!==null)rt=t,Je=e;else{if(e===null)throw Error(A(310));Je=e,e={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},rt===null?$e.memoizedState=rt=e:rt=rt.next=e}return rt}function Qo(e,t){return typeof t=="function"?t(e):t}function od(e){var t=Zt(),r=t.queue;if(r===null)throw Error(A(311));r.lastRenderedReducer=e;var n=Je,a=n.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}n.baseQueue=a=o,r.pending=null}if(a!==null){o=a.next,n=n.baseState;var l=s=null,i=null,d=o;do{var u=d.lane;if(($n&u)===u)i!==null&&(i=i.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),n=d.hasEagerState?d.eagerState:e(n,d.action);else{var p={lane:u,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};i===null?(l=i=p,s=n):i=i.next=p,$e.lanes|=u,Hn|=u}d=d.next}while(d!==null&&d!==o);i===null?s=n:i.next=l,gr(n,t.memoizedState)||(Rt=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=i,r.lastRenderedState=n}if(e=r.interleaved,e!==null){a=e;do o=a.lane,$e.lanes|=o,Hn|=o,a=a.next;while(a!==e)}else a===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function sd(e){var t=Zt(),r=t.queue;if(r===null)throw Error(A(311));r.lastRenderedReducer=e;var n=r.dispatch,a=r.pending,o=t.memoizedState;if(a!==null){r.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);gr(o,t.memoizedState)||(Rt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function tx(){}function rx(e,t){var r=$e,n=Zt(),a=t(),o=!gr(n.memoizedState,a);if(o&&(n.memoizedState=a,Rt=!0),n=n.queue,Tc(ox.bind(null,r,n,e),[e]),n.getSnapshot!==t||o||rt!==null&&rt.memoizedState.tag&1){if(r.flags|=2048,Yo(9,ax.bind(null,r,n,a,t),void 0,null),nt===null)throw Error(A(349));($n&30)!==0||nx(r,t,a)}return a}function nx(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=$e.updateQueue,t===null?(t={lastEffect:null,stores:null},$e.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function ax(e,t,r,n){t.value=r,t.getSnapshot=n,sx(t)&&lx(e)}function ox(e,t,r){return r(function(){sx(t)&&lx(e)})}function sx(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!gr(e,r)}catch{return!0}}function lx(e){var t=qr(e,1);t!==null&&hr(t,e,1,-1)}function Rh(e){var t=Ir();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Qo,lastRenderedState:e},t.queue=e,e=e.dispatch=KS.bind(null,$e,e),[t.memoizedState,e]}function Yo(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=$e.updateQueue,t===null?(t={lastEffect:null,stores:null},$e.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function ix(){return Zt().memoizedState}function Rl(e,t,r,n){var a=Ir();$e.flags|=e,a.memoizedState=Yo(1|t,r,void 0,n===void 0?null:n)}function di(e,t,r,n){var a=Zt();n=n===void 0?null:n;var o=void 0;if(Je!==null){var s=Je.memoizedState;if(o=s.destroy,n!==null&&Ec(n,s.deps)){a.memoizedState=Yo(t,r,o,n);return}}$e.flags|=e,a.memoizedState=Yo(1|t,r,o,n)}function Eh(e,t){return Rl(8390656,8,e,t)}function Tc(e,t){return di(2048,8,e,t)}function ux(e,t){return di(4,2,e,t)}function dx(e,t){return di(4,4,e,t)}function cx(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function fx(e,t,r){return r=r!=null?r.concat([e]):null,di(4,4,cx.bind(null,t,e),r)}function Ac(){}function px(e,t){var r=Zt();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Ec(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function mx(e,t){var r=Zt();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Ec(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function hx(e,t,r){return($n&21)===0?(e.baseState&&(e.baseState=!1,Rt=!0),e.memoizedState=r):(gr(r,t)||(r=wg(),$e.lanes|=r,Hn|=r,e.baseState=!0),t)}function GS(e,t){var r=Ie;Ie=r!==0&&4>r?r:4,e(!0);var n=ad.transition;ad.transition={};try{e(!1),t()}finally{Ie=r,ad.transition=n}}function gx(){return Zt().memoizedState}function XS(e,t,r){var n=pn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},xx(e))vx(t,r);else if(r=Jg(e,t,r,n),r!==null){var a=Ct();hr(r,e,n,a),yx(r,t,n)}}function KS(e,t,r){var n=pn(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(xx(e))vx(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,r);if(a.hasEagerState=!0,a.eagerState=l,gr(l,s)){var i=t.interleaved;i===null?(a.next=a,kc(t)):(a.next=i.next,i.next=a),t.interleaved=a;return}}catch{}r=Jg(e,t,a,n),r!==null&&(a=Ct(),hr(r,e,n,a),yx(r,t,n))}}function xx(e){var t=e.alternate;return e===$e||t!==null&&t===$e}function vx(e,t){Po=Yl=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function yx(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,cc(e,r)}}var Jl={readContext:Jt,useCallback:ft,useContext:ft,useEffect:ft,useImperativeHandle:ft,useInsertionEffect:ft,useLayoutEffect:ft,useMemo:ft,useReducer:ft,useRef:ft,useState:ft,useDebugValue:ft,useDeferredValue:ft,useTransition:ft,useMutableSource:ft,useSyncExternalStore:ft,useId:ft,unstable_isNewReconciler:!1},QS={readContext:Jt,useCallback:function(e,t){return Ir().memoizedState=[e,t===void 0?null:t],e},useContext:Jt,useEffect:Eh,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Rl(4194308,4,cx.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Rl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Rl(4,2,e,t)},useMemo:function(e,t){var r=Ir();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Ir();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=XS.bind(null,$e,e),[n.memoizedState,e]},useRef:function(e){var t=Ir();return e={current:e},t.memoizedState=e},useState:Rh,useDebugValue:Ac,useDeferredValue:function(e){return Ir().memoizedState=e},useTransition:function(){var e=Rh(!1),t=e[0];return e=GS.bind(null,e[1]),Ir().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=$e,a=Ir();if(ze){if(r===void 0)throw Error(A(407));r=r()}else{if(r=t(),nt===null)throw Error(A(349));($n&30)!==0||nx(n,t,r)}a.memoizedState=r;var o={value:r,getSnapshot:t};return a.queue=o,Eh(ox.bind(null,n,o,e),[e]),n.flags|=2048,Yo(9,ax.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=Ir(),t=nt.identifierPrefix;if(ze){var r=Fr,n=Or;r=(n&~(1<<32-mr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Ko++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=VS++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},YS={readContext:Jt,useCallback:px,useContext:Jt,useEffect:Tc,useImperativeHandle:fx,useInsertionEffect:ux,useLayoutEffect:dx,useMemo:mx,useReducer:od,useRef:ix,useState:function(){return od(Qo)},useDebugValue:Ac,useDeferredValue:function(e){var t=Zt();return hx(t,Je.memoizedState,e)},useTransition:function(){var e=od(Qo)[0],t=Zt().memoizedState;return[e,t]},useMutableSource:tx,useSyncExternalStore:rx,useId:gx,unstable_isNewReconciler:!1},JS={readContext:Jt,useCallback:px,useContext:Jt,useEffect:Tc,useImperativeHandle:fx,useInsertionEffect:ux,useLayoutEffect:dx,useMemo:mx,useReducer:sd,useRef:ix,useState:function(){return sd(Qo)},useDebugValue:Ac,useDeferredValue:function(e){var t=Zt();return Je===null?t.memoizedState=e:hx(t,Je.memoizedState,e)},useTransition:function(){var e=sd(Qo)[0],t=Zt().memoizedState;return[e,t]},useMutableSource:tx,useSyncExternalStore:rx,useId:gx,unstable_isNewReconciler:!1};function cr(e,t){if(e&&e.defaultProps){t=He({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function qd(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:He({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var ci={isMounted:function(e){return(e=e._reactInternals)?Vn(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Ct(),a=pn(e),o=Br(n,a);o.payload=t,r!=null&&(o.callback=r),t=cn(e,o,a),t!==null&&(hr(t,e,a,n),_l(t,e,a))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Ct(),a=pn(e),o=Br(n,a);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=cn(e,o,a),t!==null&&(hr(t,e,a,n),_l(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ct(),n=pn(e),a=Br(r,n);a.tag=2,t!=null&&(a.callback=t),t=cn(e,a,n),t!==null&&(hr(t,e,n,r),_l(t,e,n))}};function Nh(e,t,r,n,a,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,s):t.prototype&&t.prototype.isPureReactComponent?!Ho(r,n)||!Ho(a,o):!0}function wx(e,t,r){var n=!1,a=gn,o=t.contextType;return typeof o=="object"&&o!==null?o=Jt(o):(a=Nt(t)?Un:ht.current,n=t.contextTypes,o=(n=n!=null)?Ba(e,a):gn),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ci,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ph(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&ci.enqueueReplaceState(t,t.state,null)}function $d(e,t,r,n){var a=e.stateNode;a.props=r,a.state=e.memoizedState,a.refs={},Ic(e);var o=t.contextType;typeof o=="object"&&o!==null?a.context=Jt(o):(o=Nt(t)?Un:ht.current,a.context=Ba(e,o)),a.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(qd(e,t,o,r),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&ci.enqueueReplaceState(a,a.state,null),Kl(e,r,a,n),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function $a(e,t){try{var r="",n=t;do r+=M0(n),n=n.return;while(n);var a=r}catch(o){a=`
|
|
7
7
|
Error generating stack: `+o.message+`
|
|
8
|
-
`+o.stack}return{value:e,source:t,stack:n,digest:null}}function ad(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function zd(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var Wb=typeof WeakMap=="function"?WeakMap:Map;function fx(e,t,r){r=Fr(-1,r),r.tag=3,r.payload={element:null};var a=t.value;return r.callback=function(){Qi||(Qi=!0,Kd=a),zd(e,t)},r}function px(e,t,r){r=Fr(-1,r),r.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var n=t.value;r.payload=function(){return a(n)},r.callback=function(){zd(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){zd(e,t),typeof a!="function"&&(da===null?da=new Set([this]):da.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),r}function Lh(e,t,r){var a=e.pingCache;if(a===null){a=e.pingCache=new Wb;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(r)||(n.add(r),e=nC.bind(null,e,t,r),t.then(e,e))}function kh(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ih(e,t,r,a,n){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Fr(-1,1),t.tag=2,ua(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=n,e)}var jb=$r.ReactCurrentOwner,_t=!1;function St(e,t,r,a){t.child=e===null?$g(t,null,r,a):Dn(t,e.child,r,a)}function Mh(e,t,r,a,n){r=r.render;var o=t.ref;return En(t,n),a=Mc(e,t,r,a,o,n),r=_c(),e!==null&&!_t?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,qr(e,t,n)):(Fe&&r&&hc(t),t.flags|=1,St(e,t,a,n),t.child)}function _h(e,t,r,a,n){if(e===null){var o=r.type;return typeof o=="function"&&!Bc(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,mx(e,t,o,a,n)):(e=Ri(r.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&n)===0){var i=o.memoizedProps;if(r=r.compare,r=r!==null?r:zo,r(i,a)&&e.ref===t.ref)return qr(e,t,n)}return t.flags|=1,e=fa(o,a),e.ref=t.ref,e.return=t,t.child=e}function mx(e,t,r,a,n){if(e!==null){var o=e.memoizedProps;if(zo(o,a)&&e.ref===t.ref)if(_t=!1,t.pendingProps=a=o,(e.lanes&n)!==0)(e.flags&131072)!==0&&(_t=!0);else return t.lanes=e.lanes,qr(e,t,n)}return Ud(e,t,r,a,n)}function hx(e,t,r){var a=t.pendingProps,n=a.children,o=e!==null?e.memoizedState:null;if(a.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Pe(kn,Ot),Ot|=r;else{if((r&1073741824)===0)return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Pe(kn,Ot),Ot|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=o!==null?o.baseLanes:r,Pe(kn,Ot),Ot|=a}else o!==null?(a=o.baseLanes|r,t.memoizedState=null):a=r,Pe(kn,Ot),Ot|=a;return St(e,t,n,r),t.child}function gx(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Ud(e,t,r,a,n){var o=Et(r)?Oa:mt.current;return o=Nn(t,o),En(t,n),r=Mc(e,t,r,a,o,n),a=_c(),e!==null&&!_t?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,qr(e,t,n)):(Fe&&a&&hc(t),t.flags|=1,St(e,t,r,n),t.child)}function Rh(e,t,r,a,n){if(Et(r)){var o=!0;Ui(t)}else o=!1;if(En(t,n),t.stateNode===null)Ii(e,t),cx(t,r,a),Bd(t,r,a,n),a=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,d=r.contextType;typeof d=="object"&&d!==null?d=Qt(d):(d=Et(r)?Oa:mt.current,d=Nn(t,d));var u=r.getDerivedStateFromProps,f=typeof u=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==a||l!==d)&&Ch(t,i,a,d),ea=!1;var c=t.memoizedState;i.state=c,ji(t,a,i,n),l=t.memoizedState,s!==a||c!==l||Rt.current||ea?(typeof u=="function"&&(Fd(t,r,u,a),l=t.memoizedState),(s=ea||bh(t,r,s,a,c,l,d))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=l),i.props=a,i.state=l,i.context=d,a=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,Wg(e,t),s=t.memoizedProps,d=t.type===t.elementType?s:ur(t.type,s),i.props=d,f=t.pendingProps,c=i.context,l=r.contextType,typeof l=="object"&&l!==null?l=Qt(l):(l=Et(r)?Oa:mt.current,l=Nn(t,l));var p=r.getDerivedStateFromProps;(u=typeof p=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==f||c!==l)&&Ch(t,i,a,l),ea=!1,c=t.memoizedState,i.state=c,ji(t,a,i,n);var h=t.memoizedState;s!==f||c!==h||Rt.current||ea?(typeof p=="function"&&(Fd(t,r,p,a),h=t.memoizedState),(d=ea||bh(t,r,d,a,c,h,l)||!1)?(u||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,h,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,h,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&c===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=h),i.props=a,i.state=h,i.context=l,a=d):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&c===e.memoizedState||(t.flags|=1024),a=!1)}return qd(e,t,r,a,o,n)}function qd(e,t,r,a,n,o){gx(e,t);var i=(t.flags&128)!==0;if(!a&&!i)return n&&mh(t,r,!1),qr(e,t,o);a=t.stateNode,jb.current=t;var s=i&&typeof r.getDerivedStateFromError!="function"?null:a.render();return t.flags|=1,e!==null&&i?(t.child=Dn(t,e.child,null,o),t.child=Dn(t,null,s,o)):St(e,t,s,o),t.memoizedState=a.state,n&&mh(t,r,!0),t.child}function xx(e){var t=e.stateNode;t.pendingContext?ph(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ph(e,t.context,!1),Cc(e,t.containerInfo)}function Eh(e,t,r,a,n){return An(),xc(n),t.flags|=256,St(e,t,r,a),t.child}var $d={dehydrated:null,treeContext:null,retryLane:0};function Hd(e){return{baseLanes:e,cachePool:null,transitions:null}}function vx(e,t,r){var a=t.pendingProps,n=Ue.current,o=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(n&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(n|=1),Pe(Ue,n&1),e===null)return Dd(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(i=a.children,e=a.fallback,o?(a=t.mode,o=t.child,i={mode:"hidden",children:i},(a&1)===0&&o!==null?(o.childLanes=0,o.pendingProps=i):o=dl(i,a,0,null),e=Da(e,a,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Hd(r),t.memoizedState=$d,e):Pc(t,i));if(n=e.memoizedState,n!==null&&(s=n.dehydrated,s!==null))return Vb(e,t,i,a,s,n,r);if(o){o=a.fallback,i=t.mode,n=e.child,s=n.sibling;var l={mode:"hidden",children:a.children};return(i&1)===0&&t.child!==n?(a=t.child,a.childLanes=0,a.pendingProps=l,t.deletions=null):(a=fa(n,l),a.subtreeFlags=n.subtreeFlags&14680064),s!==null?o=fa(s,o):(o=Da(o,i,r,null),o.flags|=2),o.return=t,a.return=t,a.sibling=o,t.child=a,a=o,o=t.child,i=e.child.memoizedState,i=i===null?Hd(r):{baseLanes:i.baseLanes|r,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~r,t.memoizedState=$d,a}return o=e.child,e=o.sibling,a=fa(o,{mode:"visible",children:a.children}),(t.mode&1)===0&&(a.lanes=r),a.return=t,a.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=a,t.memoizedState=null,a}function Pc(e,t){return t=dl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function xi(e,t,r,a){return a!==null&&xc(a),Dn(t,e.child,null,r),e=Pc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Vb(e,t,r,a,n,o,i){if(r)return t.flags&256?(t.flags&=-257,a=ad(Error(P(422))),xi(e,t,i,a)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=a.fallback,n=t.mode,a=dl({mode:"visible",children:a.children},n,0,null),o=Da(o,n,i,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,(t.mode&1)!==0&&Dn(t,e.child,null,i),t.child.memoizedState=Hd(i),t.memoizedState=$d,o);if((t.mode&1)===0)return xi(e,t,i,null);if(n.data==="$!"){if(a=n.nextSibling&&n.nextSibling.dataset,a)var s=a.dgst;return a=s,o=Error(P(419)),a=ad(o,a,void 0),xi(e,t,i,a)}if(s=(i&e.childLanes)!==0,_t||s){if(a=rt,a!==null){switch(i&-i){case 4:n=2;break;case 16:n=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:n=32;break;case 536870912:n=268435456;break;default:n=0}n=(n&(a.suspendedLanes|i))!==0?0:n,n!==0&&n!==o.retryLane&&(o.retryLane=n,Ur(e,n),pr(a,e,n,-1))}return Fc(),a=ad(Error(P(421))),xi(e,t,i,a)}return n.data==="$?"?(t.flags|=128,t.child=e.child,t=oC.bind(null,e),n._reactRetry=t,null):(e=o.treeContext,Ft=la(n.nextSibling),Bt=t,Fe=!0,cr=null,e!==null&&(Vt[Gt++]=Dr,Vt[Gt++]=Or,Vt[Gt++]=Fa,Dr=e.id,Or=e.overflow,Fa=t),t=Pc(t,a.children),t.flags|=4096,t)}function Ph(e,t,r){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Od(e.return,t,r)}function nd(e,t,r,a,n){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:r,tailMode:n}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=a,o.tail=r,o.tailMode=n)}function yx(e,t,r){var a=t.pendingProps,n=a.revealOrder,o=a.tail;if(St(e,t,a.children,r),a=Ue.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ph(e,r,t);else if(e.tag===19)Ph(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}if(Pe(Ue,a),(t.mode&1)===0)t.memoizedState=null;else switch(n){case"forwards":for(r=t.child,n=null;r!==null;)e=r.alternate,e!==null&&Vi(e)===null&&(n=r),r=r.sibling;r=n,r===null?(n=t.child,t.child=null):(n=r.sibling,r.sibling=null),nd(t,!1,n,r,o);break;case"backwards":for(r=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Vi(e)===null){t.child=n;break}e=n.sibling,n.sibling=r,r=n,n=e}nd(t,!0,r,null,o);break;case"together":nd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ii(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),za|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(P(153));if(t.child!==null){for(e=t.child,r=fa(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=fa(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Gb(e,t,r){switch(t.tag){case 3:xx(t),An();break;case 5:jg(t);break;case 1:Et(t.type)&&Ui(t);break;case 4:Cc(t,t.stateNode.containerInfo);break;case 10:var a=t.type._context,n=t.memoizedProps.value;Pe(Hi,a._currentValue),a._currentValue=n;break;case 13:if(a=t.memoizedState,a!==null)return a.dehydrated!==null?(Pe(Ue,Ue.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?vx(e,t,r):(Pe(Ue,Ue.current&1),e=qr(e,t,r),e!==null?e.sibling:null);Pe(Ue,Ue.current&1);break;case 19:if(a=(r&t.childLanes)!==0,(e.flags&128)!==0){if(a)return yx(e,t,r);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Pe(Ue,Ue.current),a)break;return null;case 22:case 23:return t.lanes=0,hx(e,t,r)}return qr(e,t,r)}var wx,Wd,Sx,bx;wx=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Wd=function(){};Sx=function(e,t,r,a){var n=e.memoizedProps;if(n!==a){e=t.stateNode,Na(_r.current);var o=null;switch(r){case"input":n=fd(e,n),a=fd(e,a),o=[];break;case"select":n=$e({},n,{value:void 0}),a=$e({},a,{value:void 0}),o=[];break;case"textarea":n=hd(e,n),a=hd(e,a),o=[];break;default:typeof n.onClick!="function"&&typeof a.onClick=="function"&&(e.onclick=Bi)}xd(r,a);var i;r=null;for(d in n)if(!a.hasOwnProperty(d)&&n.hasOwnProperty(d)&&n[d]!=null)if(d==="style"){var s=n[d];for(i in s)s.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(To.hasOwnProperty(d)?o||(o=[]):(o=o||[]).push(d,null));for(d in a){var l=a[d];if(s=n?.[d],a.hasOwnProperty(d)&&l!==s&&(l!=null||s!=null))if(d==="style")if(s){for(i in s)!s.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(r||(r={}),r[i]="");for(i in l)l.hasOwnProperty(i)&&s[i]!==l[i]&&(r||(r={}),r[i]=l[i])}else r||(o||(o=[]),o.push(d,r)),r=l;else d==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(d,l)):d==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(d,""+l):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(To.hasOwnProperty(d)?(l!=null&&d==="onScroll"&&Ae("scroll",e),o||s===l||(o=[])):(o=o||[]).push(d,l))}r&&(o=o||[]).push("style",r);var d=o;(t.updateQueue=d)&&(t.flags|=4)}};bx=function(e,t,r,a){r!==a&&(t.flags|=4)};function go(e,t){if(!Fe)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var a=null;r!==null;)r.alternate!==null&&(a=r),r=r.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function ft(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,a=0;if(t)for(var n=e.child;n!==null;)r|=n.lanes|n.childLanes,a|=n.subtreeFlags&14680064,a|=n.flags&14680064,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)r|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=r,t}function Xb(e,t,r){var a=t.pendingProps;switch(gc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(t),null;case 1:return Et(t.type)&&zi(),ft(t),null;case 3:return a=t.stateNode,On(),De(Rt),De(mt),kc(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(hi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,cr!==null&&(Jd(cr),cr=null))),Wd(e,t),ft(t),null;case 5:Lc(t);var n=Na(Wo.current);if(r=t.type,e!==null&&t.stateNode!=null)Sx(e,t,r,a,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!a){if(t.stateNode===null)throw Error(P(166));return ft(t),null}if(e=Na(_r.current),hi(t)){a=t.stateNode,r=t.type;var o=t.memoizedProps;switch(a[Ir]=t,a[$o]=o,e=(t.mode&1)!==0,r){case"dialog":Ae("cancel",a),Ae("close",a);break;case"iframe":case"object":case"embed":Ae("load",a);break;case"video":case"audio":for(n=0;n<bo.length;n++)Ae(bo[n],a);break;case"source":Ae("error",a);break;case"img":case"image":case"link":Ae("error",a),Ae("load",a);break;case"details":Ae("toggle",a);break;case"input":zm(a,o),Ae("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!o.multiple},Ae("invalid",a);break;case"textarea":qm(a,o),Ae("invalid",a)}xd(r,o),n=null;for(var i in o)if(o.hasOwnProperty(i)){var s=o[i];i==="children"?typeof s=="string"?a.textContent!==s&&(o.suppressHydrationWarning!==!0&&mi(a.textContent,s,e),n=["children",s]):typeof s=="number"&&a.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&mi(a.textContent,s,e),n=["children",""+s]):To.hasOwnProperty(i)&&s!=null&&i==="onScroll"&&Ae("scroll",a)}switch(r){case"input":ri(a),Um(a,o,!0);break;case"textarea":ri(a),$m(a);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(a.onclick=Bi)}a=n,t.updateQueue=a,a!==null&&(t.flags|=4)}else{i=n.nodeType===9?n:n.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Qh(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=i.createElement(r,{is:a.is}):(e=i.createElement(r),r==="select"&&(i=e,a.multiple?i.multiple=!0:a.size&&(i.size=a.size))):e=i.createElementNS(e,r),e[Ir]=t,e[$o]=a,wx(e,t,!1,!1),t.stateNode=e;e:{switch(i=vd(r,a),r){case"dialog":Ae("cancel",e),Ae("close",e),n=a;break;case"iframe":case"object":case"embed":Ae("load",e),n=a;break;case"video":case"audio":for(n=0;n<bo.length;n++)Ae(bo[n],e);n=a;break;case"source":Ae("error",e),n=a;break;case"img":case"image":case"link":Ae("error",e),Ae("load",e),n=a;break;case"details":Ae("toggle",e),n=a;break;case"input":zm(e,a),n=fd(e,a),Ae("invalid",e);break;case"option":n=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},n=$e({},a,{value:void 0}),Ae("invalid",e);break;case"textarea":qm(e,a),n=hd(e,a),Ae("invalid",e);break;default:n=a}xd(r,n),s=n;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?Zh(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Yh(e,l)):o==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&No(e,l):typeof l=="number"&&No(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(To.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Ae("scroll",e):l!=null&&tc(e,o,l,i))}switch(r){case"input":ri(e),Um(e,a,!1);break;case"textarea":ri(e),$m(e);break;case"option":a.value!=null&&e.setAttribute("value",""+pa(a.value));break;case"select":e.multiple=!!a.multiple,o=a.value,o!=null?In(e,!!a.multiple,o,!1):a.defaultValue!=null&&In(e,!!a.multiple,a.defaultValue,!0);break;default:typeof n.onClick=="function"&&(e.onclick=Bi)}switch(r){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ft(t),null;case 6:if(e&&t.stateNode!=null)bx(e,t,e.memoizedProps,a);else{if(typeof a!="string"&&t.stateNode===null)throw Error(P(166));if(r=Na(Wo.current),Na(_r.current),hi(t)){if(a=t.stateNode,r=t.memoizedProps,a[Ir]=t,(o=a.nodeValue!==r)&&(e=Bt,e!==null))switch(e.tag){case 3:mi(a.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&mi(a.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else a=(r.nodeType===9?r:r.ownerDocument).createTextNode(a),a[Ir]=t,t.stateNode=a}return ft(t),null;case 13:if(De(Ue),a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Fe&&Ft!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Ug(),An(),t.flags|=98560,o=!1;else if(o=hi(t),a!==null&&a.dehydrated!==null){if(e===null){if(!o)throw Error(P(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(P(317));o[Ir]=t}else An(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ft(t),o=!1}else cr!==null&&(Jd(cr),cr=null),o=!0;if(!o)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(a=a!==null,a!==(e!==null&&e.memoizedState!==null)&&a&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Ue.current&1)!==0?Je===0&&(Je=3):Fc())),t.updateQueue!==null&&(t.flags|=4),ft(t),null);case 4:return On(),Wd(e,t),e===null&&Uo(t.stateNode.containerInfo),ft(t),null;case 10:return wc(t.type._context),ft(t),null;case 17:return Et(t.type)&&zi(),ft(t),null;case 19:if(De(Ue),o=t.memoizedState,o===null)return ft(t),null;if(a=(t.flags&128)!==0,i=o.rendering,i===null)if(a)go(o,!1);else{if(Je!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Vi(e),i!==null){for(t.flags|=128,go(o,!1),a=i.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),t.subtreeFlags=0,a=r,r=t.child;r!==null;)o=r,e=a,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Pe(Ue,Ue.current&1|2),t.child}e=e.sibling}o.tail!==null&&Ve()>Bn&&(t.flags|=128,a=!0,go(o,!1),t.lanes=4194304)}else{if(!a)if(e=Vi(i),e!==null){if(t.flags|=128,a=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),go(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Fe)return ft(t),null}else 2*Ve()-o.renderingStartTime>Bn&&r!==1073741824&&(t.flags|=128,a=!0,go(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(r=o.last,r!==null?r.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ve(),t.sibling=null,r=Ue.current,Pe(Ue,a?r&1|2:r&1),t):(ft(t),null);case 22:case 23:return Oc(),a=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(t.flags|=8192),a&&(t.mode&1)!==0?(Ot&1073741824)!==0&&(ft(t),t.subtreeFlags&6&&(t.flags|=8192)):ft(t),null;case 24:return null;case 25:return null}throw Error(P(156,t.tag))}function Kb(e,t){switch(gc(t),t.tag){case 1:return Et(t.type)&&zi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return On(),De(Rt),De(mt),kc(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Lc(t),null;case 13:if(De(Ue),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(P(340));An()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return De(Ue),null;case 4:return On(),null;case 10:return wc(t.type._context),null;case 22:case 23:return Oc(),null;case 24:return null;default:return null}}var vi=!1,pt=!1,Qb=typeof WeakSet=="function"?WeakSet:Set,B=null;function Ln(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(a){He(e,t,a)}else r.current=null}function jd(e,t,r){try{r()}catch(a){He(e,t,a)}}var Th=!1;function Yb(e,t){if(_d=Di,e=Mg(),mc(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var a=r.getSelection&&r.getSelection();if(a&&a.rangeCount!==0){r=a.anchorNode;var n=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var i=0,s=-1,l=-1,d=0,u=0,f=e,c=null;t:for(;;){for(var p;f!==r||n!==0&&f.nodeType!==3||(s=i+n),f!==o||a!==0&&f.nodeType!==3||(l=i+a),f.nodeType===3&&(i+=f.nodeValue.length),(p=f.firstChild)!==null;)c=f,f=p;for(;;){if(f===e)break t;if(c===r&&++d===n&&(s=i),c===o&&++u===a&&(l=i),(p=f.nextSibling)!==null)break;f=c,c=f.parentNode}f=p}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Rd={focusedElem:e,selectionRange:r},Di=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var h=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var m=h.memoizedProps,S=h.memoizedState,g=t.stateNode,x=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:ur(t.type,m),S);g.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(163))}}catch(b){He(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return h=Th,Th=!1,h}function Ro(e,t,r){var a=t.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var n=a=a.next;do{if((n.tag&e)===e){var o=n.destroy;n.destroy=void 0,o!==void 0&&jd(t,r,o)}n=n.next}while(n!==a)}}function ll(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var a=r.create;r.destroy=a()}r=r.next}while(r!==t)}}function Vd(e){var t=e.ref;if(t!==null){var r=e.stateNode;e.tag,e=r,typeof t=="function"?t(e):t.current=e}}function Cx(e){var t=e.alternate;t!==null&&(e.alternate=null,Cx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ir],delete t[$o],delete t[Td],delete t[Nb],delete t[Ab])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Lx(e){return e.tag===5||e.tag===3||e.tag===4}function Nh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Lx(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.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gd(e,t,r){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Bi));else if(a!==4&&(e=e.child,e!==null))for(Gd(e,t,r),e=e.sibling;e!==null;)Gd(e,t,r),e=e.sibling}function Xd(e,t,r){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(Xd(e,t,r),e=e.sibling;e!==null;)Xd(e,t,r),e=e.sibling}var at=null,dr=!1;function Jr(e,t,r){for(r=r.child;r!==null;)kx(e,t,r),r=r.sibling}function kx(e,t,r){if(Mr&&typeof Mr.onCommitFiberUnmount=="function")try{Mr.onCommitFiberUnmount(el,r)}catch{}switch(r.tag){case 5:pt||Ln(r,t);case 6:var a=at,n=dr;at=null,Jr(e,t,r),at=a,dr=n,at!==null&&(dr?(e=at,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):at.removeChild(r.stateNode));break;case 18:at!==null&&(dr?(e=at,r=r.stateNode,e.nodeType===8?Yu(e.parentNode,r):e.nodeType===1&&Yu(e,r),Fo(e)):Yu(at,r.stateNode));break;case 4:a=at,n=dr,at=r.stateNode.containerInfo,dr=!0,Jr(e,t,r),at=a,dr=n;break;case 0:case 11:case 14:case 15:if(!pt&&(a=r.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){n=a=a.next;do{var o=n,i=o.destroy;o=o.tag,i!==void 0&&((o&2)!==0||(o&4)!==0)&&jd(r,t,i),n=n.next}while(n!==a)}Jr(e,t,r);break;case 1:if(!pt&&(Ln(r,t),a=r.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=r.memoizedProps,a.state=r.memoizedState,a.componentWillUnmount()}catch(s){He(r,t,s)}Jr(e,t,r);break;case 21:Jr(e,t,r);break;case 22:r.mode&1?(pt=(a=pt)||r.memoizedState!==null,Jr(e,t,r),pt=a):Jr(e,t,r);break;default:Jr(e,t,r)}}function Ah(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Qb),t.forEach(function(a){var n=sC.bind(null,e,a);r.has(a)||(r.add(a),a.then(n,n))})}}function lr(e,t){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var n=r[a];try{var o=e,i=t,s=i;e:for(;s!==null;){switch(s.tag){case 5:at=s.stateNode,dr=!1;break e;case 3:at=s.stateNode.containerInfo,dr=!0;break e;case 4:at=s.stateNode.containerInfo,dr=!0;break e}s=s.return}if(at===null)throw Error(P(160));kx(o,i,n),at=null,dr=!1;var l=n.alternate;l!==null&&(l.return=null),n.return=null}catch(d){He(n,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ix(t,e),t=t.sibling}function Ix(e,t){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(lr(t,e),Lr(e),a&4){try{Ro(3,e,e.return),ll(3,e)}catch(m){He(e,e.return,m)}try{Ro(5,e,e.return)}catch(m){He(e,e.return,m)}}break;case 1:lr(t,e),Lr(e),a&512&&r!==null&&Ln(r,r.return);break;case 5:if(lr(t,e),Lr(e),a&512&&r!==null&&Ln(r,r.return),e.flags&32){var n=e.stateNode;try{No(n,"")}catch(m){He(e,e.return,m)}}if(a&4&&(n=e.stateNode,n!=null)){var o=e.memoizedProps,i=r!==null?r.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&Xh(n,o),vd(s,i);var d=vd(s,o);for(i=0;i<l.length;i+=2){var u=l[i],f=l[i+1];u==="style"?Zh(n,f):u==="dangerouslySetInnerHTML"?Yh(n,f):u==="children"?No(n,f):tc(n,u,f,d)}switch(s){case"input":pd(n,o);break;case"textarea":Kh(n,o);break;case"select":var c=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?In(n,!!o.multiple,p,!1):c!==!!o.multiple&&(o.defaultValue!=null?In(n,!!o.multiple,o.defaultValue,!0):In(n,!!o.multiple,o.multiple?[]:"",!1))}n[$o]=o}catch(m){He(e,e.return,m)}}break;case 6:if(lr(t,e),Lr(e),a&4){if(e.stateNode===null)throw Error(P(162));n=e.stateNode,o=e.memoizedProps;try{n.nodeValue=o}catch(m){He(e,e.return,m)}}break;case 3:if(lr(t,e),Lr(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Fo(t.containerInfo)}catch(m){He(e,e.return,m)}break;case 4:lr(t,e),Lr(e);break;case 13:lr(t,e),Lr(e),n=e.child,n.flags&8192&&(o=n.memoizedState!==null,n.stateNode.isHidden=o,!o||n.alternate!==null&&n.alternate.memoizedState!==null||(Ac=Ve())),a&4&&Ah(e);break;case 22:if(u=r!==null&&r.memoizedState!==null,e.mode&1?(pt=(d=pt)||u,lr(t,e),pt=d):lr(t,e),Lr(e),a&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!u&&(e.mode&1)!==0)for(B=e,u=e.child;u!==null;){for(f=B=u;B!==null;){switch(c=B,p=c.child,c.tag){case 0:case 11:case 14:case 15:Ro(4,c,c.return);break;case 1:Ln(c,c.return);var h=c.stateNode;if(typeof h.componentWillUnmount=="function"){a=c,r=c.return;try{t=a,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(m){He(a,r,m)}}break;case 5:Ln(c,c.return);break;case 22:if(c.memoizedState!==null){Oh(f);continue}}p!==null?(p.return=c,B=p):Oh(f)}u=u.sibling}e:for(u=null,f=e;;){if(f.tag===5){if(u===null){u=f;try{n=f.stateNode,d?(o=n.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=f.stateNode,l=f.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=Jh("display",i))}catch(m){He(e,e.return,m)}}}else if(f.tag===6){if(u===null)try{f.stateNode.nodeValue=d?"":f.memoizedProps}catch(m){He(e,e.return,m)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;u===f&&(u=null),f=f.return}u===f&&(u=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:lr(t,e),Lr(e),a&4&&Ah(e);break;case 21:break;default:lr(t,e),Lr(e)}}function Lr(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Lx(r)){var a=r;break e}r=r.return}throw Error(P(160))}switch(a.tag){case 5:var n=a.stateNode;a.flags&32&&(No(n,""),a.flags&=-33);var o=Nh(e);Xd(e,o,n);break;case 3:case 4:var i=a.stateNode.containerInfo,s=Nh(e);Gd(e,s,i);break;default:throw Error(P(161))}}catch(l){He(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Jb(e,t,r){B=e,Mx(e,t,r)}function Mx(e,t,r){for(var a=(e.mode&1)!==0;B!==null;){var n=B,o=n.child;if(n.tag===22&&a){var i=n.memoizedState!==null||vi;if(!i){var s=n.alternate,l=s!==null&&s.memoizedState!==null||pt;s=vi;var d=pt;if(vi=i,(pt=l)&&!d)for(B=n;B!==null;)i=B,l=i.child,i.tag===22&&i.memoizedState!==null?Fh(n):l!==null?(l.return=i,B=l):Fh(n);for(;o!==null;)B=o,Mx(o,t,r),o=o.sibling;B=n,vi=s,pt=d}Dh(e,t,r)}else(n.subtreeFlags&8772)!==0&&o!==null?(o.return=n,B=o):Dh(e,t,r)}}function Dh(e){for(;B!==null;){var t=B;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:pt||ll(5,t);break;case 1:var a=t.stateNode;if(t.flags&4&&!pt)if(r===null)a.componentDidMount();else{var n=t.elementType===t.type?r.memoizedProps:ur(t.type,r.memoizedProps);a.componentDidUpdate(n,r.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&yh(t,o,a);break;case 3:var i=t.updateQueue;if(i!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}yh(t,i,r)}break;case 5:var s=t.stateNode;if(r===null&&t.flags&4){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var u=d.memoizedState;if(u!==null){var f=u.dehydrated;f!==null&&Fo(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(P(163))}pt||t.flags&512&&Vd(t)}catch(c){He(t,t.return,c)}}if(t===e){B=null;break}if(r=t.sibling,r!==null){r.return=t.return,B=r;break}B=t.return}}function Oh(e){for(;B!==null;){var t=B;if(t===e){B=null;break}var r=t.sibling;if(r!==null){r.return=t.return,B=r;break}B=t.return}}function Fh(e){for(;B!==null;){var t=B;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{ll(4,t)}catch(l){He(t,r,l)}break;case 1:var a=t.stateNode;if(typeof a.componentDidMount=="function"){var n=t.return;try{a.componentDidMount()}catch(l){He(t,n,l)}}var o=t.return;try{Vd(t)}catch(l){He(t,o,l)}break;case 5:var i=t.return;try{Vd(t)}catch(l){He(t,i,l)}}}catch(l){He(t,t.return,l)}if(t===e){B=null;break}var s=t.sibling;if(s!==null){s.return=t.return,B=s;break}B=t.return}}var Zb=Math.ceil,Ki=$r.ReactCurrentDispatcher,Tc=$r.ReactCurrentOwner,Kt=$r.ReactCurrentBatchConfig,he=0,rt=null,Ge=null,nt=0,Ot=0,kn=ga(0),Je=0,Xo=null,za=0,ul=0,Nc=0,Eo=null,Mt=null,Ac=0,Bn=1/0,Nr=null,Qi=!1,Kd=null,da=null,yi=!1,na=null,Yi=0,Po=0,Qd=null,Mi=-1,_i=0;function bt(){return(he&6)!==0?Ve():Mi!==-1?Mi:Mi=Ve()}function ca(e){return(e.mode&1)===0?1:(he&2)!==0&&nt!==0?nt&-nt:Ob.transition!==null?(_i===0&&(_i=cg()),_i):(e=Le,e!==0||(e=window.event,e=e===void 0?16:vg(e.type)),e)}function pr(e,t,r,a){if(50<Po)throw Po=0,Qd=null,Error(P(185));Ko(e,r,a),((he&2)===0||e!==rt)&&(e===rt&&((he&2)===0&&(ul|=r),Je===4&&ra(e,nt)),Pt(e,a),r===1&&he===0&&(t.mode&1)===0&&(Bn=Ve()+500,ol&&xa()))}function Pt(e,t){var r=e.callbackNode;B0(e,t);var a=Ai(e,e===rt?nt:0);if(a===0)r!==null&&jm(r),e.callbackNode=null,e.callbackPriority=0;else if(t=a&-a,e.callbackPriority!==t){if(r!=null&&jm(r),t===1)e.tag===0?Db(Bh.bind(null,e)):Fg(Bh.bind(null,e)),Pb(function(){(he&6)===0&&xa()}),r=null;else{switch(fg(a)){case 1:r=sc;break;case 4:r=ug;break;case 16:r=Ni;break;case 536870912:r=dg;break;default:r=Ni}r=Dx(r,_x.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function _x(e,t){if(Mi=-1,_i=0,(he&6)!==0)throw Error(P(327));var r=e.callbackNode;if(Pn()&&e.callbackNode!==r)return null;var a=Ai(e,e===rt?nt:0);if(a===0)return null;if((a&30)!==0||(a&e.expiredLanes)!==0||t)t=Ji(e,a);else{t=a;var n=he;he|=2;var o=Ex();(rt!==e||nt!==t)&&(Nr=null,Bn=Ve()+500,Aa(e,t));do try{rC();break}catch(s){Rx(e,s)}while(!0);yc(),Ki.current=o,he=n,Ge!==null?t=0:(rt=null,nt=0,t=Je)}if(t!==0){if(t===2&&(n=Cd(e),n!==0&&(a=n,t=Yd(e,n))),t===1)throw r=Xo,Aa(e,0),ra(e,a),Pt(e,Ve()),r;if(t===6)ra(e,a);else{if(n=e.current.alternate,(a&30)===0&&!eC(n)&&(t=Ji(e,a),t===2&&(o=Cd(e),o!==0&&(a=o,t=Yd(e,o))),t===1))throw r=Xo,Aa(e,0),ra(e,a),Pt(e,Ve()),r;switch(e.finishedWork=n,e.finishedLanes=a,t){case 0:case 1:throw Error(P(345));case 2:Ea(e,Mt,Nr);break;case 3:if(ra(e,a),(a&130023424)===a&&(t=Ac+500-Ve(),10<t)){if(Ai(e,0)!==0)break;if(n=e.suspendedLanes,(n&a)!==a){bt(),e.pingedLanes|=e.suspendedLanes&n;break}e.timeoutHandle=Pd(Ea.bind(null,e,Mt,Nr),t);break}Ea(e,Mt,Nr);break;case 4:if(ra(e,a),(a&4194240)===a)break;for(t=e.eventTimes,n=-1;0<a;){var i=31-fr(a);o=1<<i,i=t[i],i>n&&(n=i),a&=~o}if(a=n,a=Ve()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*Zb(a/1960))-a,10<a){e.timeoutHandle=Pd(Ea.bind(null,e,Mt,Nr),a);break}Ea(e,Mt,Nr);break;case 5:Ea(e,Mt,Nr);break;default:throw Error(P(329))}}}return Pt(e,Ve()),e.callbackNode===r?_x.bind(null,e):null}function Yd(e,t){var r=Eo;return e.current.memoizedState.isDehydrated&&(Aa(e,t).flags|=256),e=Ji(e,t),e!==2&&(t=Mt,Mt=r,t!==null&&Jd(t)),e}function Jd(e){Mt===null?Mt=e:Mt.push.apply(Mt,e)}function eC(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var a=0;a<r.length;a++){var n=r[a],o=n.getSnapshot;n=n.value;try{if(!mr(o(),n))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 ra(e,t){for(t&=~Nc,t&=~ul,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-fr(t),a=1<<r;e[r]=-1,t&=~a}}function Bh(e){if((he&6)!==0)throw Error(P(327));Pn();var t=Ai(e,0);if((t&1)===0)return Pt(e,Ve()),null;var r=Ji(e,t);if(e.tag!==0&&r===2){var a=Cd(e);a!==0&&(t=a,r=Yd(e,a))}if(r===1)throw r=Xo,Aa(e,0),ra(e,t),Pt(e,Ve()),r;if(r===6)throw Error(P(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ea(e,Mt,Nr),Pt(e,Ve()),null}function Dc(e,t){var r=he;he|=1;try{return e(t)}finally{he=r,he===0&&(Bn=Ve()+500,ol&&xa())}}function Ua(e){na!==null&&na.tag===0&&(he&6)===0&&Pn();var t=he;he|=1;var r=Kt.transition,a=Le;try{if(Kt.transition=null,Le=1,e)return e()}finally{Le=a,Kt.transition=r,he=t,(he&6)===0&&xa()}}function Oc(){Ot=kn.current,De(kn)}function Aa(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,Eb(r)),Ge!==null)for(r=Ge.return;r!==null;){var a=r;switch(gc(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&zi();break;case 3:On(),De(Rt),De(mt),kc();break;case 5:Lc(a);break;case 4:On();break;case 13:De(Ue);break;case 19:De(Ue);break;case 10:wc(a.type._context);break;case 22:case 23:Oc()}r=r.return}if(rt=e,Ge=e=fa(e.current,null),nt=Ot=t,Je=0,Xo=null,Nc=ul=za=0,Mt=Eo=null,Ta!==null){for(t=0;t<Ta.length;t++)if(r=Ta[t],a=r.interleaved,a!==null){r.interleaved=null;var n=a.next,o=r.pending;if(o!==null){var i=o.next;o.next=n,a.next=i}r.pending=a}Ta=null}return e}function Rx(e,t){do{var r=Ge;try{if(yc(),Li.current=Xi,Gi){for(var a=qe.memoizedState;a!==null;){var n=a.queue;n!==null&&(n.pending=null),a=a.next}Gi=!1}if(Ba=0,tt=Ye=qe=null,_o=!1,jo=0,Tc.current=null,r===null||r.return===null){Je=1,Xo=t,Ge=null;break}e:{var o=e,i=r.return,s=r,l=t;if(t=nt,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var d=l,u=s,f=u.tag;if((u.mode&1)===0&&(f===0||f===11||f===15)){var c=u.alternate;c?(u.updateQueue=c.updateQueue,u.memoizedState=c.memoizedState,u.lanes=c.lanes):(u.updateQueue=null,u.memoizedState=null)}var p=kh(i);if(p!==null){p.flags&=-257,Ih(p,i,s,o,t),p.mode&1&&Lh(o,d,t),t=p,l=d;var h=t.updateQueue;if(h===null){var m=new Set;m.add(l),t.updateQueue=m}else h.add(l);break e}else{if((t&1)===0){Lh(o,d,t),Fc();break e}l=Error(P(426))}}else if(Fe&&s.mode&1){var S=kh(i);if(S!==null){(S.flags&65536)===0&&(S.flags|=256),Ih(S,i,s,o,t),xc(Fn(l,s));break e}}o=l=Fn(l,s),Je!==4&&(Je=2),Eo===null?Eo=[o]:Eo.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var g=fx(o,l,t);vh(o,g);break e;case 1:s=l;var x=o.type,v=o.stateNode;if((o.flags&128)===0&&(typeof x.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(da===null||!da.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t;var b=px(o,s,t);vh(o,b);break e}}o=o.return}while(o!==null)}Tx(r)}catch(w){t=w,Ge===r&&r!==null&&(Ge=r=r.return);continue}break}while(!0)}function Ex(){var e=Ki.current;return Ki.current=Xi,e===null?Xi:e}function Fc(){(Je===0||Je===3||Je===2)&&(Je=4),rt===null||(za&268435455)===0&&(ul&268435455)===0||ra(rt,nt)}function Ji(e,t){var r=he;he|=2;var a=Ex();(rt!==e||nt!==t)&&(Nr=null,Aa(e,t));do try{tC();break}catch(n){Rx(e,n)}while(!0);if(yc(),he=r,Ki.current=a,Ge!==null)throw Error(P(261));return rt=null,nt=0,Je}function tC(){for(;Ge!==null;)Px(Ge)}function rC(){for(;Ge!==null&&!R0();)Px(Ge)}function Px(e){var t=Ax(e.alternate,e,Ot);e.memoizedProps=e.pendingProps,t===null?Tx(e):Ge=t,Tc.current=null}function Tx(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=Xb(r,t,Ot),r!==null){Ge=r;return}}else{if(r=Kb(r,t),r!==null){r.flags&=32767,Ge=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Je=6,Ge=null;return}}if(t=t.sibling,t!==null){Ge=t;return}Ge=t=e}while(t!==null);Je===0&&(Je=5)}function Ea(e,t,r){var a=Le,n=Kt.transition;try{Kt.transition=null,Le=1,aC(e,t,r,a)}finally{Kt.transition=n,Le=a}return null}function aC(e,t,r,a){do Pn();while(na!==null);if((he&6)!==0)throw Error(P(327));r=e.finishedWork;var n=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(P(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(z0(e,o),e===rt&&(Ge=rt=null,nt=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||yi||(yi=!0,Dx(Ni,function(){return Pn(),null})),o=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||o){o=Kt.transition,Kt.transition=null;var i=Le;Le=1;var s=he;he|=4,Tc.current=null,Yb(e,r),Ix(r,e),kb(Rd),Di=!!_d,Rd=_d=null,e.current=r,Jb(r,e,n),E0(),he=s,Le=i,Kt.transition=o}else e.current=r;if(yi&&(yi=!1,na=e,Yi=n),o=e.pendingLanes,o===0&&(da=null),N0(r.stateNode,a),Pt(e,Ve()),t!==null)for(a=e.onRecoverableError,r=0;r<t.length;r++)n=t[r],a(n.value,{componentStack:n.stack,digest:n.digest});if(Qi)throw Qi=!1,e=Kd,Kd=null,e;return(Yi&1)!==0&&e.tag!==0&&Pn(),o=e.pendingLanes,(o&1)!==0?e===Qd?Po++:(Po=0,Qd=e):Po=0,xa(),null}function Pn(){if(na!==null){var e=fg(Yi),t=Kt.transition,r=Le;try{if(Kt.transition=null,Le=16>e?16:e,na===null)var a=!1;else{if(e=na,na=null,Yi=0,(he&6)!==0)throw Error(P(331));var n=he;for(he|=4,B=e.current;B!==null;){var o=B,i=o.child;if((B.flags&16)!==0){var s=o.deletions;if(s!==null){for(var l=0;l<s.length;l++){var d=s[l];for(B=d;B!==null;){var u=B;switch(u.tag){case 0:case 11:case 15:Ro(8,u,o)}var f=u.child;if(f!==null)f.return=u,B=f;else for(;B!==null;){u=B;var c=u.sibling,p=u.return;if(Cx(u),u===d){B=null;break}if(c!==null){c.return=p,B=c;break}B=p}}}var h=o.alternate;if(h!==null){var m=h.child;if(m!==null){h.child=null;do{var S=m.sibling;m.sibling=null,m=S}while(m!==null)}}B=o}}if((o.subtreeFlags&2064)!==0&&i!==null)i.return=o,B=i;else e:for(;B!==null;){if(o=B,(o.flags&2048)!==0)switch(o.tag){case 0:case 11:case 15:Ro(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,B=g;break e}B=o.return}}var x=e.current;for(B=x;B!==null;){i=B;var v=i.child;if((i.subtreeFlags&2064)!==0&&v!==null)v.return=i,B=v;else e:for(i=x;B!==null;){if(s=B,(s.flags&2048)!==0)try{switch(s.tag){case 0:case 11:case 15:ll(9,s)}}catch(w){He(s,s.return,w)}if(s===i){B=null;break e}var b=s.sibling;if(b!==null){b.return=s.return,B=b;break e}B=s.return}}if(he=n,xa(),Mr&&typeof Mr.onPostCommitFiberRoot=="function")try{Mr.onPostCommitFiberRoot(el,e)}catch{}a=!0}return a}finally{Le=r,Kt.transition=t}}return!1}function zh(e,t,r){t=Fn(r,t),t=fx(e,t,1),e=ua(e,t,1),t=bt(),e!==null&&(Ko(e,1,t),Pt(e,t))}function He(e,t,r){if(e.tag===3)zh(e,e,r);else for(;t!==null;){if(t.tag===3){zh(t,e,r);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(da===null||!da.has(a))){e=Fn(r,e),e=px(t,e,1),t=ua(t,e,1),e=bt(),t!==null&&(Ko(t,1,e),Pt(t,e));break}}t=t.return}}function nC(e,t,r){var a=e.pingCache;a!==null&&a.delete(t),t=bt(),e.pingedLanes|=e.suspendedLanes&r,rt===e&&(nt&r)===r&&(Je===4||Je===3&&(nt&130023424)===nt&&500>Ve()-Ac?Aa(e,0):Nc|=r),Pt(e,t)}function Nx(e,t){t===0&&((e.mode&1)===0?t=1:(t=oi,oi<<=1,(oi&130023424)===0&&(oi=4194304)));var r=bt();e=Ur(e,t),e!==null&&(Ko(e,t,r),Pt(e,r))}function oC(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Nx(e,r)}function sC(e,t){var r=0;switch(e.tag){case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(r=n.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(P(314))}a!==null&&a.delete(t),Nx(e,r)}var Ax;Ax=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Rt.current)_t=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return _t=!1,Gb(e,t,r);_t=(e.flags&131072)!==0}else _t=!1,Fe&&(t.flags&1048576)!==0&&Bg(t,$i,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;Ii(e,t),e=t.pendingProps;var n=Nn(t,mt.current);En(t,r),n=Mc(null,t,a,e,n,r);var o=_c();return t.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Et(a)?(o=!0,Ui(t)):o=!1,t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,bc(t),n.updater=il,t.stateNode=n,n._reactInternals=t,Bd(t,a,e,r),t=qd(null,t,a,!0,o,r)):(t.tag=0,Fe&&o&&hc(t),St(null,t,n,r),t=t.child),t;case 16:a=t.elementType;e:{switch(Ii(e,t),e=t.pendingProps,n=a._init,a=n(a._payload),t.type=a,n=t.tag=lC(a),e=ur(a,e),n){case 0:t=Ud(null,t,a,e,r);break e;case 1:t=Rh(null,t,a,e,r);break e;case 11:t=Mh(null,t,a,e,r);break e;case 14:t=_h(null,t,a,ur(a.type,e),r);break e}throw Error(P(306,a,""))}return t;case 0:return a=t.type,n=t.pendingProps,n=t.elementType===a?n:ur(a,n),Ud(e,t,a,n,r);case 1:return a=t.type,n=t.pendingProps,n=t.elementType===a?n:ur(a,n),Rh(e,t,a,n,r);case 3:e:{if(xx(t),e===null)throw Error(P(387));a=t.pendingProps,o=t.memoizedState,n=o.element,Wg(e,t),ji(t,a,null,r);var i=t.memoizedState;if(a=i.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){n=Fn(Error(P(423)),t),t=Eh(e,t,a,r,n);break e}else if(a!==n){n=Fn(Error(P(424)),t),t=Eh(e,t,a,r,n);break e}else for(Ft=la(t.stateNode.containerInfo.firstChild),Bt=t,Fe=!0,cr=null,r=$g(t,null,a,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(An(),a===n){t=qr(e,t,r);break e}St(e,t,a,r)}t=t.child}return t;case 5:return jg(t),e===null&&Dd(t),a=t.type,n=t.pendingProps,o=e!==null?e.memoizedProps:null,i=n.children,Ed(a,n)?i=null:o!==null&&Ed(a,o)&&(t.flags|=32),gx(e,t),St(e,t,i,r),t.child;case 6:return e===null&&Dd(t),null;case 13:return vx(e,t,r);case 4:return Cc(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Dn(t,null,a,r):St(e,t,a,r),t.child;case 11:return a=t.type,n=t.pendingProps,n=t.elementType===a?n:ur(a,n),Mh(e,t,a,n,r);case 7:return St(e,t,t.pendingProps,r),t.child;case 8:return St(e,t,t.pendingProps.children,r),t.child;case 12:return St(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(a=t.type._context,n=t.pendingProps,o=t.memoizedProps,i=n.value,Pe(Hi,a._currentValue),a._currentValue=i,o!==null)if(mr(o.value,i)){if(o.children===n.children&&!Rt.current){t=qr(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var l=s.firstContext;l!==null;){if(l.context===a){if(o.tag===1){l=Fr(-1,r&-r),l.tag=2;var d=o.updateQueue;if(d!==null){d=d.shared;var u=d.pending;u===null?l.next=l:(l.next=u.next,u.next=l),d.pending=l}}o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),Od(o.return,r,t),s.lanes|=r;break}l=l.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(P(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),Od(i,r,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}St(e,t,n.children,r),t=t.child}return t;case 9:return n=t.type,a=t.pendingProps.children,En(t,r),n=Qt(n),a=a(n),t.flags|=1,St(e,t,a,r),t.child;case 14:return a=t.type,n=ur(a,t.pendingProps),n=ur(a.type,n),_h(e,t,a,n,r);case 15:return mx(e,t,t.type,t.pendingProps,r);case 17:return a=t.type,n=t.pendingProps,n=t.elementType===a?n:ur(a,n),Ii(e,t),t.tag=1,Et(a)?(e=!0,Ui(t)):e=!1,En(t,r),cx(t,a,n),Bd(t,a,n,r),qd(null,t,a,!0,e,r);case 19:return yx(e,t,r);case 22:return hx(e,t,r)}throw Error(P(156,t.tag))};function Dx(e,t){return lg(e,t)}function iC(e,t,r,a){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xt(e,t,r,a){return new iC(e,t,r,a)}function Bc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lC(e){if(typeof e=="function")return Bc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ac)return 11;if(e===nc)return 14}return 2}function fa(e,t){var r=e.alternate;return r===null?(r=Xt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ri(e,t,r,a,n,o){var i=2;if(a=e,typeof e=="function")Bc(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case hn:return Da(r.children,n,o,t);case rc:i=8,n|=8;break;case ld:return e=Xt(12,r,t,n|2),e.elementType=ld,e.lanes=o,e;case ud:return e=Xt(13,r,t,n),e.elementType=ud,e.lanes=o,e;case dd:return e=Xt(19,r,t,n),e.elementType=dd,e.lanes=o,e;case jh:return dl(r,n,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Hh:i=10;break e;case Wh:i=9;break e;case ac:i=11;break e;case nc:i=14;break e;case Zr:i=16,a=null;break e}throw Error(P(130,e==null?e:typeof e,""))}return t=Xt(i,r,t,n),t.elementType=e,t.type=a,t.lanes=o,t}function Da(e,t,r,a){return e=Xt(7,e,a,t),e.lanes=r,e}function dl(e,t,r,a){return e=Xt(22,e,a,t),e.elementType=jh,e.lanes=r,e.stateNode={isHidden:!1},e}function od(e,t,r){return e=Xt(6,e,null,t),e.lanes=r,e}function sd(e,t,r){return t=Xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function uC(e,t,r,a,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Hu(0),this.expirationTimes=Hu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hu(0),this.identifierPrefix=a,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function zc(e,t,r,a,n,o,i,s,l){return e=new uC(e,t,r,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Xt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:a,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},bc(o),e}function dC(e,t,r){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:mn,key:a==null?null:""+a,children:e,containerInfo:t,implementation:r}}function Ox(e){if(!e)return ma;e=e._reactInternals;e:{if($a(e)!==e||e.tag!==1)throw Error(P(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Et(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(P(171))}if(e.tag===1){var r=e.type;if(Et(r))return Og(e,r,t)}return t}function Fx(e,t,r,a,n,o,i,s,l){return e=zc(r,a,!0,e,n,o,i,s,l),e.context=Ox(null),r=e.current,a=bt(),n=ca(r),o=Fr(a,n),o.callback=t??null,ua(r,o,n),e.current.lanes=n,Ko(e,n,a),Pt(e,a),e}function cl(e,t,r,a){var n=t.current,o=bt(),i=ca(n);return r=Ox(r),t.context===null?t.context=r:t.pendingContext=r,t=Fr(o,i),t.payload={element:e},a=a===void 0?null:a,a!==null&&(t.callback=a),e=ua(n,t,i),e!==null&&(pr(e,n,i,o),Ci(e,n,i)),i}function Zi(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function Uh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Uc(e,t){Uh(e,t),(e=e.alternate)&&Uh(e,t)}function cC(){return null}var Bx=typeof reportError=="function"?reportError:function(e){console.error(e)};function qc(e){this._internalRoot=e}fl.prototype.render=qc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(P(409));cl(e,t,null,null)};fl.prototype.unmount=qc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ua(function(){cl(null,e,null,null)}),t[zr]=null}};function fl(e){this._internalRoot=e}fl.prototype.unstable_scheduleHydration=function(e){if(e){var t=hg();e={blockedOn:null,target:e,priority:t};for(var r=0;r<ta.length&&t!==0&&t<ta[r].priority;r++);ta.splice(r,0,e),r===0&&xg(e)}};function $c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function pl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function qh(){}function fC(e,t,r,a,n){if(n){if(typeof a=="function"){var o=a;a=function(){var d=Zi(i);o.call(d)}}var i=Fx(t,a,e,0,null,!1,!1,"",qh);return e._reactRootContainer=i,e[zr]=i.current,Uo(e.nodeType===8?e.parentNode:e),Ua(),i}for(;n=e.lastChild;)e.removeChild(n);if(typeof a=="function"){var s=a;a=function(){var d=Zi(l);s.call(d)}}var l=zc(e,0,!1,null,null,!1,!1,"",qh);return e._reactRootContainer=l,e[zr]=l.current,Uo(e.nodeType===8?e.parentNode:e),Ua(function(){cl(t,l,r,a)}),l}function ml(e,t,r,a,n){var o=r._reactRootContainer;if(o){var i=o;if(typeof n=="function"){var s=n;n=function(){var l=Zi(i);s.call(l)}}cl(t,i,e,n)}else i=fC(r,t,e,n,a);return Zi(i)}pg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=So(t.pendingLanes);r!==0&&(ic(t,r|1),Pt(t,Ve()),(he&6)===0&&(Bn=Ve()+500,xa()))}break;case 13:Ua(function(){var a=Ur(e,1);if(a!==null){var n=bt();pr(a,e,1,n)}}),Uc(e,1)}};lc=function(e){if(e.tag===13){var t=Ur(e,134217728);if(t!==null){var r=bt();pr(t,e,134217728,r)}Uc(e,134217728)}};mg=function(e){if(e.tag===13){var t=ca(e),r=Ur(e,t);if(r!==null){var a=bt();pr(r,e,t,a)}Uc(e,t)}};hg=function(){return Le};gg=function(e,t){var r=Le;try{return Le=e,t()}finally{Le=r}};wd=function(e,t,r){switch(t){case"input":if(pd(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var a=r[t];if(a!==e&&a.form===e.form){var n=nl(a);if(!n)throw Error(P(90));Gh(a),pd(a,n)}}}break;case"textarea":Kh(e,r);break;case"select":t=r.value,t!=null&&In(e,!!r.multiple,t,!1)}};rg=Dc;ag=Ua;var pC={usingClientEntryPoint:!1,Events:[Yo,yn,nl,eg,tg,Dc]},xo={findFiberByHostInstance:Pa,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},mC={bundleType:xo.bundleType,version:xo.version,rendererPackageName:xo.rendererPackageName,rendererConfig:xo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:$r.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=sg(e),e===null?null:e.stateNode},findFiberByHostInstance:xo.findFiberByHostInstance||cC,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(vo=__REACT_DEVTOOLS_GLOBAL_HOOK__,!vo.isDisabled&&vo.supportsFiber))try{el=vo.inject(mC),Mr=vo}catch{}var vo;qt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pC;qt.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!$c(t))throw Error(P(200));return dC(e,t,null,r)};qt.createRoot=function(e,t){if(!$c(e))throw Error(P(299));var r=!1,a="",n=Bx;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onRecoverableError!==void 0&&(n=t.onRecoverableError)),t=zc(e,1,!1,null,null,r,!1,a,n),e[zr]=t.current,Uo(e.nodeType===8?e.parentNode:e),new qc(t)};qt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(P(188)):(e=Object.keys(e).join(","),Error(P(268,e)));return e=sg(t),e=e===null?null:e.stateNode,e};qt.flushSync=function(e){return Ua(e)};qt.hydrate=function(e,t,r){if(!pl(t))throw Error(P(200));return ml(null,e,t,!0,r)};qt.hydrateRoot=function(e,t,r){if(!$c(e))throw Error(P(405));var a=r!=null&&r.hydratedSources||null,n=!1,o="",i=Bx;if(r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(i=r.onRecoverableError)),t=Fx(t,null,e,1,r??null,n,!1,o,i),e[zr]=t.current,Uo(e),a)for(e=0;e<a.length;e++)r=a[e],n=r._getVersion,n=n(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,n]:t.mutableSourceEagerHydrationData.push(r,n);return new fl(t)};qt.render=function(e,t,r){if(!pl(t))throw Error(P(200));return ml(null,e,t,!1,r)};qt.unmountComponentAtNode=function(e){if(!pl(e))throw Error(P(40));return e._reactRootContainer?(Ua(function(){ml(null,null,e,!1,function(){e._reactRootContainer=null,e[zr]=null})}),!0):!1};qt.unstable_batchedUpdates=Dc;qt.unstable_renderSubtreeIntoContainer=function(e,t,r,a){if(!pl(r))throw Error(P(200));if(e==null||e._reactInternals===void 0)throw Error(P(38));return ml(e,t,r,!1,a)};qt.version="18.3.1-next-f1338f8080-20240426"});var $x=Tr((TM,qx)=>{"use strict";function Ux(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ux)}catch(e){console.error(e)}}Ux(),qx.exports=zx()});var Wx=Tr(Hc=>{"use strict";var Hx=$x();Hc.createRoot=Hx.createRoot,Hc.hydrateRoot=Hx.hydrateRoot;var NM});var Vx=Tr(hl=>{"use strict";var hC=fe(),gC=Symbol.for("react.element"),xC=Symbol.for("react.fragment"),vC=Object.prototype.hasOwnProperty,yC=hC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,wC={key:!0,ref:!0,__self:!0,__source:!0};function jx(e,t,r){var a,n={},o=null,i=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(a in t)vC.call(t,a)&&!wC.hasOwnProperty(a)&&(n[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps,t)n[a]===void 0&&(n[a]=t[a]);return{$$typeof:gC,type:e,key:o,ref:i,props:n,_owner:yC.current}}hl.Fragment=xC;hl.jsx=jx;hl.jsxs=jx});var le=Tr((OM,Gx)=>{"use strict";Gx.exports=Vx()});var kM={};QS(kM,{default:()=>LM,mount:()=>OS});var AS=F(fe(),1),DS=F(Wx(),1);var Qr=F(fe(),1);var G=F(fe(),1);var Tt=F(fe(),1),de=F(le(),1),gl=(...e)=>e.filter(Boolean).join(" ");function ht({label:e,pressed:t,className:r,children:a,...n}){return(0,de.jsx)(SC,{content:e,children:(0,de.jsx)("button",{className:gl("lum-iconbtn",r),"aria-label":e,"aria-pressed":t,...n,children:a})})}function qn({tone:e="default",children:t,className:r}){return(0,de.jsx)("span",{className:gl("lum-badge",e!=="default"&&`lum-badge--${e}`,r),children:t})}function SC({content:e,children:t}){return e?(0,de.jsxs)("span",{className:"lum-tip",children:[t,(0,de.jsx)("span",{className:"lum-tip__bubble",role:"tooltip",children:e})]}):(0,de.jsx)(de.Fragment,{children:t})}function Xx({open:e,onClose:t,title:r,children:a}){return(0,Tt.useEffect)(()=>{if(!e)return;let n=o=>o.key==="Escape"&&t();return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[e,t]),e?(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)("div",{className:"lum-drawer__scrim",onClick:t}),(0,de.jsxs)("aside",{className:"lum-drawer",role:"dialog","aria-modal":"true","aria-label":typeof r=="string"?r:"Details",children:[(0,de.jsxs)("div",{className:"lum-drawer__header",children:[(0,de.jsx)("strong",{children:r}),(0,de.jsx)(ht,{label:"Close",onClick:t,children:"\u2715"})]}),(0,de.jsx)("div",{className:"lum-drawer__body",children:a})]})]}):null}function Wc({width:e,height:t=14,className:r,radius:a}){return(0,de.jsx)("div",{className:gl("lum-skeleton",r),style:{width:e??"100%",height:t,borderRadius:a},"aria-hidden":!0})}var bC=(0,Tt.createContext)(()=>{});function Kx({children:e}){let[t,r]=(0,Tt.useState)([]),a=(0,Tt.useCallback)((n,o="default")=>{let i=Date.now()+Math.floor(performance.now());r(s=>[...s,{id:i,text:n,tone:o}]),setTimeout(()=>r(s=>s.filter(l=>l.id!==i)),3200)},[]);return(0,de.jsxs)(bC.Provider,{value:a,children:[e,(0,de.jsx)("div",{className:"lum-toasts",role:"status","aria-live":"polite",children:t.map(n=>(0,de.jsx)("div",{className:gl("lum-toast",n.tone&&n.tone!=="default"&&`lum-toast--${n.tone}`),children:n.text},n.id))})]})}function Qx({trigger:e,options:t,value:r,onSelect:a,placement:n="bottom"}){let[o,i]=(0,Tt.useState)(!1),s=(0,Tt.useRef)(null);return(0,Tt.useEffect)(()=>{if(!o)return;let l=u=>{s.current&&!s.current.contains(u.target)&&i(!1)},d=u=>u.key==="Escape"&&i(!1);return document.addEventListener("mousedown",l),document.addEventListener("keydown",d),()=>{document.removeEventListener("mousedown",l),document.removeEventListener("keydown",d)}},[o]),(0,de.jsxs)("div",{className:"lum-menu",ref:s,children:[(0,de.jsx)("span",{onClick:()=>i(l=>!l),children:e}),o&&(0,de.jsx)("div",{className:`lum-menu__list${n==="top"?" lum-menu__list--up":""}`,role:"menu",children:t.map(l=>(0,de.jsxs)("button",{role:"menuitemradio","aria-checked":r===l.value,className:"lum-menu__item",onClick:()=>{a(l.value),i(!1)},children:[l.label,r===l.value&&(0,de.jsx)("span",{"aria-hidden":!0,children:"\u2713"})]},String(l.value)))})]})}function Jt({title:e,children:t,icon:r,action:a}){return(0,de.jsxs)("div",{className:"lum-state",children:[r&&(0,de.jsx)("div",{className:"lum-state__icon",children:r}),(0,de.jsx)("div",{className:"lum-state__title",children:e}),t&&(0,de.jsx)("div",{children:t}),a]})}function Yx({title:e,children:t,action:r}){return(0,de.jsxs)("div",{className:"lum-state lum-state--error",role:"alert",children:[(0,de.jsx)("div",{className:"lum-state__icon",children:"\u26A0"}),(0,de.jsx)("div",{className:"lum-state__title",children:e}),t&&(0,de.jsx)("div",{children:t}),r]})}var Jx=e=>{let t,r=new Set,a=(d,u)=>{let f=typeof d=="function"?d(t):d;if(!Object.is(f,t)){let c=t;t=u??(typeof f!="object"||f===null)?f:Object.assign({},t,f),r.forEach(p=>p(t,c))}},n=()=>t,s={setState:a,getState:n,getInitialState:()=>l,subscribe:d=>(r.add(d),()=>r.delete(d))},l=t=e(a,n,s);return s},Zx=(e=>e?Jx(e):Jx);var mu=F(fe(),1);var Zo=F(fe(),1);var CC=e=>e;function ev(e,t=CC){let r=Zo.default.useSyncExternalStore(e.subscribe,Zo.default.useCallback(()=>t(e.getState()),[e,t]),Zo.default.useCallback(()=>t(e.getInitialState()),[e,t]));return Zo.default.useDebugValue(r),r}var uS=F(le(),1),hu=F(fe(),1),cS=F(le(),1);var LC=Object.defineProperty,kC=(e,t,r)=>t in e?LC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t,r)=>kC(e,typeof t!="symbol"?t+"":t,r),tv,IC=Object.defineProperty,MC=(e,t,r)=>t in e?IC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rv=(e,t,r)=>MC(e,typeof t!="symbol"?t+"":t,r),re=(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))(re||{}),av={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},nv={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},xl={},qy={},_C=()=>!!globalThis.Zone;function Lp(e){if(xl[e])return xl[e];let t=globalThis[e],r=t.prototype,a=e in av?av[e]:void 0,n=!!(a&&a.every(s=>{var l,d;return!!((d=(l=Object.getOwnPropertyDescriptor(r,s))==null?void 0:l.get)!=null&&d.toString().includes("[native code]"))})),o=e in nv?nv[e]:void 0,i=!!(o&&o.every(s=>{var l;return typeof r[s]=="function"&&((l=r[s])==null?void 0:l.toString().includes("[native code]"))}));if(n&&i&&!_C())return xl[e]=t.prototype,t.prototype;try{let s=document.createElement("iframe");s.style.display="none",document.body.appendChild(s);let l=s.contentWindow;if(!l)return t.prototype;let d=l[e].prototype;if(!d)return s.remove(),r;let u=navigator.userAgent;return u.includes("Safari")&&!u.includes("Chrome")?(s.classList.add("rr-block"),s.setAttribute("__rrwebUntaintedMutationObserver",""),qy[e]=()=>s.remove()):s.remove(),xl[e]=d}catch{return r}}var jc={};function Vr(e,t,r){var a;let n=`${e}.${String(r)}`;if(jc[n])return jc[n].call(t);let o=Lp(e),i=(a=Object.getOwnPropertyDescriptor(o,r))==null?void 0:a.get;return i?(jc[n]=i,i.call(t)):t[r]}var Vc={};function $y(e,t,r){let a=`${e}.${String(r)}`;if(Vc[a])return Vc[a].bind(t);let o=Lp(e)[r];return typeof o!="function"?t[r]:(Vc[a]=o,o.bind(t))}function RC(e){return Vr("Node",e,"ownerDocument")}function EC(e){return Vr("Node",e,"childNodes")}function PC(e){return Vr("Node",e,"parentNode")}function TC(e){return Vr("Node",e,"parentElement")}function NC(e){return Vr("Node",e,"textContent")}function AC(e,t){return $y("Node",e,"contains")(t)}function DC(e){return $y("Node",e,"getRootNode")()}function OC(e){return!e||!("host"in e)?null:Vr("ShadowRoot",e,"host")}function FC(e){return e.styleSheets}function BC(e){return!e||!("shadowRoot"in e)?null:Vr("Element",e,"shadowRoot")}function zC(e,t){return Vr("Element",e,"querySelector")(t)}function UC(e,t){return Vr("Element",e,"querySelectorAll")(t)}function qC(){return[Lp("MutationObserver").constructor,qy.MutationObserver??(()=>{})]}var Hy=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Hy=()=>new Date().getTime());function $C(e,t,r){try{if(!(t in e))return()=>{};let a=e[t],n=r(a);return typeof n=="function"&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:a}})),e[t]=n,()=>{e[t]=a}}catch{return()=>{}}}var gt={ownerDocument:RC,childNodes:EC,parentNode:PC,parentElement:TC,textContent:NC,contains:AC,getRootNode:DC,host:OC,styleSheets:FC,shadowRoot:BC,querySelector:zC,querySelectorAll:UC,nowTimestamp:Hy,mutationObserverCtor:qC,patch:$C};function kp(e){return e.nodeType===e.ELEMENT_NODE}function as(e){let t=e&&"host"in e&&"mode"in e&>.host(e)||null;return!!(t&&"shadowRoot"in t&>.shadowRoot(t)===e)}function ns(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function HC(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 WC(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function ep(e){try{let t=e.rules||e.cssRules;if(!t)return null;let r=e.href;!r&&e.ownerNode&&(r=e.ownerNode.baseURI);let a=Array.from(t,n=>Wy(n,r)).join("");return HC(a)}catch{return null}}function Wy(e,t){if(VC(e)){let r;try{r=ep(e.styleSheet)||WC(e)}catch{r=e.cssText}return e.styleSheet.href?Pl(r,e.styleSheet.href):r}else{let r=e.cssText;return GC(e)&&e.selectorText.includes(":")&&(r=jC(r)),t?Pl(r,t):r}}function jC(e){let t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function VC(e){return"styleSheet"in e}function GC(e){return"selectorText"in e}var ls=class{constructor(){rv(this,"idNodeMap",new Map),rv(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(a=>this.removeNodeFromMap(a))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let a=r.id;this.idNodeMap.set(a,t),this.nodeMetaMap.set(t,r)}replace(t,r){let a=this.getNode(t);if(a){let n=this.nodeMetaMap.get(a);n&&this.nodeMetaMap.set(r,n)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function jy(){return new ls}function Rl({element:e,maskInputOptions:t,tagName:r,type:a,value:n,maskInputFn:o}){let i=n||"",s=a&&Sa(a);return(t[r.toLowerCase()]||s&&t[s])&&(o?i=o(i,e):i="*".repeat(i.length)),i}function Sa(e){return e.toLowerCase()}var ov="__rrweb_original__";function XC(e){let t=e.getContext("2d");if(!t)return!0;let r=50;for(let a=0;a<e.width;a+=r)for(let n=0;n<e.height;n+=r){let o=t.getImageData,i=ov in o?o[ov]:o;if(new Uint32Array(i.call(t,a,n,Math.min(r,e.width-a),Math.min(r,e.height-n)).data.buffer).some(l=>l!==0))return!1}return!0}function KC(e,t){return!e||!t||e.type!==t.type?!1:e.type===re.Document?e.compatMode===t.compatMode:e.type===re.DocumentType?e.name===t.name&&e.publicId===t.publicId&&e.systemId===t.systemId:e.type===re.Comment||e.type===re.Text||e.type===re.CDATA?e.textContent===t.textContent:e.type===re.Element?e.tagName===t.tagName&&JSON.stringify(e.attributes)===JSON.stringify(t.attributes)&&e.isSVG===t.isSVG&&e.needBlock===t.needBlock:!1}function El(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Sa(t):null}function Ip(e,t){let r;try{r=new URL(e,t??window.location.href)}catch{return null}let a=/\.([0-9a-z]+)(?:$)/i,n=r.pathname.match(a);return n?.[1]??null}function QC(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var YC=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,JC=/^(?:[a-z+]+:)?\/\//i,ZC=/^www\..*/i,eL=/^(data:)([^,]*),(.*)/i;function Pl(e,t){return(e||"").replace(YC,(r,a,n,o,i,s)=>{let l=n||i||s,d=a||o||"";if(!l)return r;if(JC.test(l)||ZC.test(l))return`url(${d}${l}${d})`;if(eL.test(l))return`url(${d}${l}${d})`;if(l[0]==="/")return`url(${d}${QC(t)+l}${d})`;let u=t.split("/"),f=l.split("/");u.pop();for(let c of f)c!=="."&&(c===".."?u.pop():u.push(c));return`url(${d}${u.join("/")}${d})`})}function vl(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function tL(e,t,r=!1){let a=Array.from(t.childNodes),n=[],o=0;if(a.length>1&&e&&typeof e=="string"){let i=vl(e,r),s=i.length/e.length;for(let l=1;l<a.length;l++)if(a[l].textContent&&typeof a[l].textContent=="string"){let d=vl(a[l].textContent,r),u=100,f=3;for(;f<d.length&&(d[f].match(/[a-zA-Z0-9]/)||d.indexOf(d.substring(0,f),1)!==-1);f++);for(;f<d.length;f++){let c=d.substring(0,f),p=i.split(c),h=-1;if(p.length===2)h=p[0].length;else if(p.length>2&&p[0]===""&&a[l-1].textContent!=="")h=i.indexOf(c,1);else if(p.length===1){if(c=c.substring(0,c.length-1),p=i.split(c),p.length<=1)return n.push(e),n;f=u+1}else f===d.length-1&&(h=i.indexOf(c));if(p.length>=2&&f>u){let m=a[l-1].textContent;if(m&&typeof m=="string"){let S=vl(m).length;h=i.indexOf(c,S)}h===-1&&(h=p[0].length)}if(h!==-1){let m=Math.floor(h/s);for(;m>0&&m<e.length;){if(o+=1,o>50*a.length)return n.push(e),n;let S=vl(e.substring(0,m),r);if(S.length===h){n.push(e.substring(0,m)),e=e.substring(m),i=i.substring(h);break}else S.length<h?m+=Math.max(1,Math.floor((h-S.length)/s)):m-=Math.max(1,Math.floor((S.length-h)*s))}break}}}}return n.push(e),n}function rL(e,t){return tL(e,t).join("/* rr_split */")}var aL=1,nL=new RegExp("[^a-z0-9-_:]"),us=-2;function Vy(){return aL++}function oL(e){if(e instanceof HTMLFormElement)return"form";let t=Sa(e.tagName);return nL.test(t)?"div":t}var $n,sv,sL=/^[^ \t\n\r\u000c]+/,iL=/^[, \t\n\r\u000c]+/;function lL(e,t){if(t.trim()==="")return t;let r=0;function a(o){let i,s=o.exec(t.substring(r));return s?(i=s[0],r+=i.length,i):""}let n=[];for(;a(iL),!(r>=t.length);){let o=a(sL);if(o.slice(-1)===",")o=Vn(e,o.substring(0,o.length-1)),n.push(o);else{let i="";o=Vn(e,o);let s=!1;for(;;){let l=t.charAt(r);if(l===""){n.push((o+i).trim());break}else if(s)l===")"&&(s=!1);else if(l===","){r+=1,n.push((o+i).trim());break}else l==="("&&(s=!0);i+=l,r+=1}}}return n.join(", ")}var iv=new WeakMap;function Vn(e,t){return!t||t.trim()===""?t:Mp(e,t)}function uL(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Mp(e,t){let r=iv.get(e);if(r||(r=e.createElement("a"),iv.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function Gy(e,t,r,a){return a&&(r==="src"||r==="href"&&!(t==="use"&&a[0]==="#")||r==="xlink:href"&&a[0]!=="#"||r==="background"&&["table","td","th"].includes(t)?Vn(e,a):r==="srcset"?lL(e,a):r==="style"?Pl(a,Mp(e)):t==="object"&&r==="data"?Vn(e,a):a)}function Xy(e,t,r){return["video","audio"].includes(e)&&t==="autoplay"}function dL(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let a=e.classList.length;a--;){let n=e.classList[a];if(t.test(n))return!0}if(r)return e.matches(r)}catch{}return!1}function Tl(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?Tl(gt.parentNode(e),t,r):!1;for(let a=e.classList.length;a--;){let n=e.classList[a];if(t.test(n))return!0}return r?Tl(gt.parentNode(e),t,r):!1}function Ky(e,t,r,a){let n;if(kp(e)){if(n=e,!gt.childNodes(n).length)return!1}else{if(gt.parentElement(e)===null)return!1;n=gt.parentElement(e)}try{if(typeof t=="string"){if(a){if(n.closest(`.${t}`))return!0}else if(n.classList.contains(t))return!0}else if(Tl(n,t,a))return!0;if(r){if(a){if(n.closest(r))return!0}else if(n.matches(r))return!0}}catch{}return!1}function cL(e,t,r){let a=e.contentWindow;if(!a)return;let n=!1,o;try{o=a.document.readyState}catch{return}if(o!=="complete"){let s=setTimeout(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{clearTimeout(s),n=!0,t()});return}let i="about:blank";if(a.location.href!==i||e.src===i||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function fL(e,t,r){let a=!1,n;try{n=e.sheet}catch{return}if(n)return;let o=setTimeout(()=>{a||(t(),a=!0)},r);e.addEventListener("load",()=>{clearTimeout(o),a=!0,t()})}function pL(e,t){let{doc:r,mirror:a,blockClass:n,blockSelector:o,needsMask:i,inlineStylesheet:s,maskInputOptions:l={},maskTextFn:d,maskInputFn:u,dataURLOptions:f={},inlineImages:c,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:m=!1,cssCaptured:S=!1}=t,g=mL(r,a);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:re.Document,childNodes:[],compatMode:e.compatMode}:{type:re.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:re.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:g};case e.ELEMENT_NODE:return gL(e,{doc:r,blockClass:n,blockSelector:o,inlineStylesheet:s,maskInputOptions:l,maskInputFn:u,dataURLOptions:f,inlineImages:c,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:m,rootId:g});case e.TEXT_NODE:return hL(e,{doc:r,needsMask:i,maskTextFn:d,rootId:g,cssCaptured:S});case e.CDATA_SECTION_NODE:return{type:re.CDATA,textContent:"",rootId:g};case e.COMMENT_NODE:return{type:re.Comment,textContent:gt.textContent(e)||"",rootId:g};default:return!1}}function mL(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return r===1?void 0:r}function hL(e,t){let{needsMask:r,maskTextFn:a,rootId:n,cssCaptured:o}=t,i=gt.parentNode(e),s=i&&i.tagName,l="",d=s==="STYLE"?!0:void 0,u=s==="SCRIPT"?!0:void 0;return u?l="SCRIPT_PLACEHOLDER":o||(l=gt.textContent(e),d&&l&&(l=Pl(l,Mp(t.doc)))),!d&&!u&&l&&r&&(l=a?a(l,gt.parentElement(e)):l.replace(/[\S]/g,"*")),{type:re.Text,textContent:l||"",rootId:n}}function gL(e,t){let{doc:r,blockClass:a,blockSelector:n,inlineStylesheet:o,maskInputOptions:i={},maskInputFn:s,dataURLOptions:l={},inlineImages:d,recordCanvas:u,keepIframeSrcFn:f,newlyAddedElement:c=!1,rootId:p}=t,h=dL(e,a,n),m=oL(e),S={},g=e.attributes.length;for(let v=0;v<g;v++){let b=e.attributes[v];Xy(m,b.name,b.value)||(S[b.name]=Gy(r,m,Sa(b.name),b.value))}if(m==="link"&&o){let v=Array.from(r.styleSheets).find(w=>w.href===e.href),b=null;v&&(b=ep(v)),b&&(delete S.rel,delete S.href,S._cssText=b)}if(m==="style"&&e.sheet){let v=ep(e.sheet);v&&(e.childNodes.length>1&&(v=rL(v,e)),S._cssText=v)}if(["input","textarea","select"].includes(m)){let v=e.value,b=e.checked;S.type!=="radio"&&S.type!=="checkbox"&&S.type!=="submit"&&S.type!=="button"&&v?S.value=Rl({element:e,type:El(e),tagName:m,value:v,maskInputOptions:i,maskInputFn:s}):b&&(S.checked=b)}if(m==="option"&&(e.selected&&!i.select?S.selected=!0:delete S.selected),m==="dialog"&&e.open&&(S.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),m==="canvas"&&u){if(e.__context==="2d")XC(e)||(S.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){let v=e.toDataURL(l.type,l.quality),b=r.createElement("canvas");b.width=e.width,b.height=e.height;let w=b.toDataURL(l.type,l.quality);v!==w&&(S.rr_dataURL=v)}}if(m==="img"&&d){$n||($n=r.createElement("canvas"),sv=$n.getContext("2d"));let v=e,b=v.currentSrc||v.getAttribute("src")||"<unknown-src>",w=v.crossOrigin,y=()=>{v.removeEventListener("load",y);try{$n.width=v.naturalWidth,$n.height=v.naturalHeight,sv.drawImage(v,0,0),S.rr_dataURL=$n.toDataURL(l.type,l.quality)}catch(L){if(v.crossOrigin!=="anonymous"){v.crossOrigin="anonymous",v.complete&&v.naturalWidth!==0?y():v.addEventListener("load",y);return}else console.warn(`Cannot inline img src=${b}! Error: ${L}`)}v.crossOrigin==="anonymous"&&(w?S.crossOrigin=w:v.removeAttribute("crossorigin"))};v.complete&&v.naturalWidth!==0?y():v.addEventListener("load",y)}if(["audio","video"].includes(m)){let v=S;v.rr_mediaState=e.paused?"paused":"played",v.rr_mediaCurrentTime=e.currentTime,v.rr_mediaPlaybackRate=e.playbackRate,v.rr_mediaMuted=e.muted,v.rr_mediaLoop=e.loop,v.rr_mediaVolume=e.volume}if(c||(e.scrollLeft&&(S.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(S.rr_scrollTop=e.scrollTop)),h){let{width:v,height:b}=e.getBoundingClientRect();S={class:S.class,rr_width:`${v}px`,rr_height:`${b}px`}}m==="iframe"&&!f(S.src)&&(e.contentDocument||(S.rr_src=S.src),delete S.src);let x;try{customElements.get(m)&&(x=!0)}catch{}return{type:re.Element,tagName:m,attributes:S,childNodes:[],isSVG:uL(e)||void 0,needBlock:h,rootId:p,isCustom:x}}function Te(e){return e==null?"":e.toLowerCase()}function Qy(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 xL(e,t){if(t.comment&&e.type===re.Comment)return!0;if(e.type===re.Element){if(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"&&Ip(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Te(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Te(e.attributes.name)==="application-name"||Te(e.attributes.rel)==="icon"||Te(e.attributes.rel)==="apple-touch-icon"||Te(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Te(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Te(e.attributes.property).match(/^(og|twitter|fb):/)||Te(e.attributes.name).match(/^(og|twitter):/)||Te(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Te(e.attributes.name)==="robots"||Te(e.attributes.name)==="googlebot"||Te(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Te(e.attributes.name)==="author"||Te(e.attributes.name)==="generator"||Te(e.attributes.name)==="framework"||Te(e.attributes.name)==="publisher"||Te(e.attributes.name)==="progid"||Te(e.attributes.property).match(/^article:/)||Te(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Te(e.attributes.name)==="google-site-verification"||Te(e.attributes.name)==="yandex-verification"||Te(e.attributes.name)==="csrf-token"||Te(e.attributes.name)==="p:domain_verify"||Te(e.attributes.name)==="verify-v1"||Te(e.attributes.name)==="verification"||Te(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Gn(e,t){let{doc:r,mirror:a,blockClass:n,blockSelector:o,maskTextClass:i,maskTextSelector:s,skipChild:l=!1,inlineStylesheet:d=!0,maskInputOptions:u={},maskTextFn:f,maskInputFn:c,slimDOMOptions:p,dataURLOptions:h={},inlineImages:m=!1,recordCanvas:S=!1,onSerialize:g,onIframeLoad:x,iframeLoadTimeout:v=5e3,onStylesheetLoad:b,stylesheetLoadTimeout:w=5e3,keepIframeSrcFn:y=()=>!1,newlyAddedElement:L=!1,cssCaptured:C=!1}=t,{needsMask:M}=t,{preserveWhiteSpace:I=!0}=t;M||(M=Ky(e,i,s,M===void 0));let D=pL(e,{doc:r,mirror:a,blockClass:n,blockSelector:o,needsMask:M,inlineStylesheet:d,maskInputOptions:u,maskTextFn:f,maskInputFn:c,dataURLOptions:h,inlineImages:m,recordCanvas:S,keepIframeSrcFn:y,newlyAddedElement:L,cssCaptured:C});if(!D)return console.warn(e,"not serialized"),null;let A;a.hasNode(e)?A=a.getId(e):xL(D,p)||!I&&D.type===re.Text&&!D.textContent.replace(/^\s+|\s+$/gm,"").length?A=us:A=Vy();let k=Object.assign(D,{id:A});if(a.add(e,k),A===us)return null;g&&g(e);let ke=!l;if(k.type===re.Element){ke=ke&&!k.needBlock,delete k.needBlock;let ue=gt.shadowRoot(e);ue&&ns(ue)&&(k.isShadowHost=!0)}if((k.type===re.Document||k.type===re.Element)&&ke){p.headWhitespace&&k.type===re.Element&&k.tagName==="head"&&(I=!1);let ue={doc:r,mirror:a,blockClass:n,blockSelector:o,needsMask:M,maskTextClass:i,maskTextSelector:s,skipChild:l,inlineStylesheet:d,maskInputOptions:u,maskTextFn:f,maskInputFn:c,slimDOMOptions:p,dataURLOptions:h,inlineImages:m,recordCanvas:S,preserveWhiteSpace:I,onSerialize:g,onIframeLoad:x,iframeLoadTimeout:v,onStylesheetLoad:b,stylesheetLoadTimeout:w,keepIframeSrcFn:y,cssCaptured:!1};if(!(k.type===re.Element&&k.tagName==="textarea"&&k.attributes.value!==void 0)){k.type===re.Element&&k.attributes._cssText!==void 0&&typeof k.attributes._cssText=="string"&&(ue.cssCaptured=!0);for(let Se of Array.from(gt.childNodes(e))){let ze=Gn(Se,ue);ze&&k.childNodes.push(ze)}}let j=null;if(kp(e)&&(j=gt.shadowRoot(e)))for(let Se of Array.from(gt.childNodes(j))){let ze=Gn(Se,ue);ze&&(ns(j)&&(ze.isShadow=!0),k.childNodes.push(ze))}}let Ie=gt.parentNode(e);return Ie&&as(Ie)&&ns(Ie)&&(k.isShadow=!0),k.type===re.Element&&k.tagName==="iframe"&&cL(e,()=>{let ue=e.contentDocument;if(ue&&x){let j=Gn(ue,{doc:ue,mirror:a,blockClass:n,blockSelector:o,needsMask:M,maskTextClass:i,maskTextSelector:s,skipChild:!1,inlineStylesheet:d,maskInputOptions:u,maskTextFn:f,maskInputFn:c,slimDOMOptions:p,dataURLOptions:h,inlineImages:m,recordCanvas:S,preserveWhiteSpace:I,onSerialize:g,onIframeLoad:x,iframeLoadTimeout:v,onStylesheetLoad:b,stylesheetLoadTimeout:w,keepIframeSrcFn:y});j&&x(e,j)}},v),k.type===re.Element&&k.tagName==="link"&&typeof k.attributes.rel=="string"&&(k.attributes.rel==="stylesheet"||k.attributes.rel==="preload"&&typeof k.attributes.href=="string"&&Ip(k.attributes.href)==="css")&&fL(e,()=>{if(b){let ue=Gn(e,{doc:r,mirror:a,blockClass:n,blockSelector:o,needsMask:M,maskTextClass:i,maskTextSelector:s,skipChild:!1,inlineStylesheet:d,maskInputOptions:u,maskTextFn:f,maskInputFn:c,slimDOMOptions:p,dataURLOptions:h,inlineImages:m,recordCanvas:S,preserveWhiteSpace:I,onSerialize:g,onIframeLoad:x,iframeLoadTimeout:v,onStylesheetLoad:b,stylesheetLoadTimeout:w,keepIframeSrcFn:y});ue&&b(e,ue)}},w),k}function vL(e,t){let{mirror:r=new ls,blockClass:a="rr-block",blockSelector:n=null,maskTextClass:o="rr-mask",maskTextSelector:i=null,inlineStylesheet:s=!0,inlineImages:l=!1,recordCanvas:d=!1,maskAllInputs:u=!1,maskTextFn:f,maskInputFn:c,slimDOM:p=!1,dataURLOptions:h,preserveWhiteSpace:m,onSerialize:S,onIframeLoad:g,iframeLoadTimeout:x,onStylesheetLoad:v,stylesheetLoadTimeout:b,keepIframeSrcFn:w=()=>!1}=t,y=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,L=Qy(p);return Gn(e,{doc:e,mirror:r,blockClass:a,blockSelector:n,maskTextClass:o,maskTextSelector:i,skipChild:!1,inlineStylesheet:s,maskInputOptions:y,maskTextFn:f,maskInputFn:c,slimDOMOptions:L,dataURLOptions:h,inlineImages:l,recordCanvas:d,preserveWhiteSpace:m,onSerialize:S,onIframeLoad:g,iframeLoadTimeout:x,onStylesheetLoad:v,stylesheetLoadTimeout:b,keepIframeSrcFn:w,newlyAddedElement:!1})}var yL=/(max|min)-device-(width|height)/,lv=new RegExp(yL.source,"g"),wL={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(lv)&&(e.params=e.params.replace(lv,"$1-$2"))}}}},SL={postcssPlugin:"postcss-hover-classes",prepare:function(){let e=[];return{Rule:function(t){e.indexOf(t)===-1&&(e.push(t),t.selectors.forEach(function(r){r.includes(":hover")&&(t.selector+=`,
|
|
9
|
-
`+r.replace(/:hover/g,".\\:hover"))}))}}}};function
|
|
10
|
-
`+
|
|
11
|
-
`)}toString(){let
|
|
8
|
+
`+o.stack}return{value:e,source:t,stack:a,digest:null}}function ld(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Hd(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var ZS=typeof WeakMap=="function"?WeakMap:Map;function bx(e,t,r){r=Br(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){ei||(ei=!0,Zd=n),Hd(e,t)},r}function Sx(e,t,r){r=Br(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var a=t.value;r.payload=function(){return n(a)},r.callback=function(){Hd(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){Hd(e,t),typeof n!="function"&&(fn===null?fn=new Set([this]):fn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}function Th(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new ZS;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(r)||(a.add(r),e=p1.bind(null,e,t,r),t.then(e,e))}function Ah(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Dh(e,t,r,n,a){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Br(-1,1),t.tag=2,cn(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var e1=Hr.ReactCurrentOwner,Rt=!1;function St(e,t,r,n){t.child=e===null?Yg(t,null,r,n):Ua(t,e.child,r,n)}function Oh(e,t,r,n,a){r=r.render;var o=t.ref;return Da(t,a),n=Nc(e,t,r,n,o,a),r=Pc(),e!==null&&!Rt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,$r(e,t,a)):(ze&&r&&yc(t),t.flags|=1,St(e,t,n,a),t.child)}function Fh(e,t,r,n,a){if(e===null){var o=r.type;return typeof o=="function"&&!$c(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,Cx(e,t,o,n,a)):(e=Tl(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&a)===0){var s=o.memoizedProps;if(r=r.compare,r=r!==null?r:Ho,r(s,n)&&e.ref===t.ref)return $r(e,t,a)}return t.flags|=1,e=mn(o,n),e.ref=t.ref,e.return=t,t.child=e}function Cx(e,t,r,n,a){if(e!==null){var o=e.memoizedProps;if(Ho(o,n)&&e.ref===t.ref)if(Rt=!1,t.pendingProps=n=o,(e.lanes&a)!==0)(e.flags&131072)!==0&&(Rt=!0);else return t.lanes=e.lanes,$r(e,t,a)}return jd(e,t,r,n,a)}function Lx(e,t,r){var n=t.pendingProps,a=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Pe(Ea,Ft),Ft|=r;else{if((r&1073741824)===0)return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Pe(Ea,Ft),Ft|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,Pe(Ea,Ft),Ft|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,Pe(Ea,Ft),Ft|=n;return St(e,t,a,r),t.child}function kx(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function jd(e,t,r,n,a){var o=Nt(r)?Un:ht.current;return o=Ba(t,o),Da(t,a),r=Nc(e,t,r,n,o,a),n=Pc(),e!==null&&!Rt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,$r(e,t,a)):(ze&&n&&yc(t),t.flags|=1,St(e,t,r,a),t.child)}function Bh(e,t,r,n,a){if(Nt(r)){var o=!0;jl(t)}else o=!1;if(Da(t,a),t.stateNode===null)El(e,t),wx(t,r,n),$d(t,r,n,a),n=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var i=s.context,d=r.contextType;typeof d=="object"&&d!==null?d=Jt(d):(d=Nt(r)?Un:ht.current,d=Ba(t,d));var u=r.getDerivedStateFromProps,p=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";p||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==n||i!==d)&&Ph(t,s,n,d),tn=!1;var c=t.memoizedState;s.state=c,Kl(t,n,s,a),i=t.memoizedState,l!==n||c!==i||Et.current||tn?(typeof u=="function"&&(qd(t,r,u,n),i=t.memoizedState),(l=tn||Nh(t,r,l,n,c,i,d))?(p||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=i),s.props=n,s.state=i,s.context=d,n=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{s=t.stateNode,Zg(e,t),l=t.memoizedProps,d=t.type===t.elementType?l:cr(t.type,l),s.props=d,p=t.pendingProps,c=s.context,i=r.contextType,typeof i=="object"&&i!==null?i=Jt(i):(i=Nt(r)?Un:ht.current,i=Ba(t,i));var f=r.getDerivedStateFromProps;(u=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==p||c!==i)&&Ph(t,s,n,i),tn=!1,c=t.memoizedState,s.state=c,Kl(t,n,s,a);var h=t.memoizedState;l!==p||c!==h||Et.current||tn?(typeof f=="function"&&(qd(t,r,f,n),h=t.memoizedState),(d=tn||Nh(t,r,d,n,c,h,i)||!1)?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,h,i),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,h,i)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=h),s.props=n,s.state=h,s.context=i,n=d):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=1024),n=!1)}return Wd(e,t,r,n,o,a)}function Wd(e,t,r,n,a,o){kx(e,t);var s=(t.flags&128)!==0;if(!n&&!s)return a&&Ch(t,r,!1),$r(e,t,o);n=t.stateNode,e1.current=t;var l=s&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&s?(t.child=Ua(t,e.child,null,o),t.child=Ua(t,null,l,o)):St(e,t,l,o),t.memoizedState=n.state,a&&Ch(t,r,!0),t.child}function Ix(e){var t=e.stateNode;t.pendingContext?Sh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Sh(e,t.context,!1),_c(e,t.containerInfo)}function zh(e,t,r,n,a){return za(),bc(a),t.flags|=256,St(e,t,r,n),t.child}var Vd={dehydrated:null,treeContext:null,retryLane:0};function Gd(e){return{baseLanes:e,cachePool:null,transitions:null}}function _x(e,t,r){var n=t.pendingProps,a=qe.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(a&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Pe(qe,a&1),e===null)return zd(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(s=n.children,e=n.fallback,o?(n=t.mode,o=t.child,s={mode:"hidden",children:s},(n&1)===0&&o!==null?(o.childLanes=0,o.pendingProps=s):o=mi(s,n,0,null),e=zn(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Gd(r),t.memoizedState=Vd,e):Dc(t,s));if(a=e.memoizedState,a!==null&&(l=a.dehydrated,l!==null))return t1(e,t,s,n,l,a,r);if(o){o=n.fallback,s=t.mode,a=e.child,l=a.sibling;var i={mode:"hidden",children:n.children};return(s&1)===0&&t.child!==a?(n=t.child,n.childLanes=0,n.pendingProps=i,t.deletions=null):(n=mn(a,i),n.subtreeFlags=a.subtreeFlags&14680064),l!==null?o=mn(l,o):(o=zn(o,s,r,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,n=o,o=t.child,s=e.child.memoizedState,s=s===null?Gd(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~r,t.memoizedState=Vd,n}return o=e.child,e=o.sibling,n=mn(o,{mode:"visible",children:n.children}),(t.mode&1)===0&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function Dc(e,t){return t=mi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function bl(e,t,r,n){return n!==null&&bc(n),Ua(t,e.child,null,r),e=Dc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function t1(e,t,r,n,a,o,s){if(r)return t.flags&256?(t.flags&=-257,n=ld(Error(A(422))),bl(e,t,s,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,a=t.mode,n=mi({mode:"visible",children:n.children},a,0,null),o=zn(o,a,s,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,(t.mode&1)!==0&&Ua(t,e.child,null,s),t.child.memoizedState=Gd(s),t.memoizedState=Vd,o);if((t.mode&1)===0)return bl(e,t,s,null);if(a.data==="$!"){if(n=a.nextSibling&&a.nextSibling.dataset,n)var l=n.dgst;return n=l,o=Error(A(419)),n=ld(o,n,void 0),bl(e,t,s,n)}if(l=(s&e.childLanes)!==0,Rt||l){if(n=nt,n!==null){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(n.suspendedLanes|s))!==0?0:a,a!==0&&a!==o.retryLane&&(o.retryLane=a,qr(e,a),hr(n,e,a,-1))}return qc(),n=ld(Error(A(421))),bl(e,t,s,n)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=m1.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,Bt=dn(a.nextSibling),zt=t,ze=!0,pr=null,e!==null&&(Xt[Kt++]=Or,Xt[Kt++]=Fr,Xt[Kt++]=qn,Or=e.id,Fr=e.overflow,qn=t),t=Dc(t,n.children),t.flags|=4096,t)}function Uh(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Ud(e.return,t,r)}function id(e,t,r,n,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=a)}function Mx(e,t,r){var n=t.pendingProps,a=n.revealOrder,o=n.tail;if(St(e,t,n.children,r),n=qe.current,(n&2)!==0)n=n&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Uh(e,r,t);else if(e.tag===19)Uh(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Pe(qe,n),(t.mode&1)===0)t.memoizedState=null;else switch(a){case"forwards":for(r=t.child,a=null;r!==null;)e=r.alternate,e!==null&&Ql(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),id(t,!1,a,r,o);break;case"backwards":for(r=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Ql(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}id(t,!0,r,null,o);break;case"together":id(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function El(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $r(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Hn|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(A(153));if(t.child!==null){for(e=t.child,r=mn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=mn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function r1(e,t,r){switch(t.tag){case 3:Ix(t),za();break;case 5:ex(t);break;case 1:Nt(t.type)&&jl(t);break;case 4:_c(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,a=t.memoizedProps.value;Pe(Gl,n._currentValue),n._currentValue=a;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Pe(qe,qe.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?_x(e,t,r):(Pe(qe,qe.current&1),e=$r(e,t,r),e!==null?e.sibling:null);Pe(qe,qe.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&128)!==0){if(n)return Mx(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Pe(qe,qe.current),n)break;return null;case 22:case 23:return t.lanes=0,Lx(e,t,r)}return $r(e,t,r)}var Rx,Xd,Ex,Nx;Rx=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Xd=function(){};Ex=function(e,t,r,n){var a=e.memoizedProps;if(a!==n){e=t.stateNode,Fn(Rr.current);var o=null;switch(r){case"input":a=gd(e,a),n=gd(e,n),o=[];break;case"select":a=He({},a,{value:void 0}),n=He({},n,{value:void 0}),o=[];break;case"textarea":a=yd(e,a),n=yd(e,n),o=[];break;default:typeof a.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=$l)}bd(r,n);var s;r=null;for(d in a)if(!n.hasOwnProperty(d)&&a.hasOwnProperty(d)&&a[d]!=null)if(d==="style"){var l=a[d];for(s in l)l.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Oo.hasOwnProperty(d)?o||(o=[]):(o=o||[]).push(d,null));for(d in n){var i=n[d];if(l=a?.[d],n.hasOwnProperty(d)&&i!==l&&(i!=null||l!=null))if(d==="style")if(l){for(s in l)!l.hasOwnProperty(s)||i&&i.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in i)i.hasOwnProperty(s)&&l[s]!==i[s]&&(r||(r={}),r[s]=i[s])}else r||(o||(o=[]),o.push(d,r)),r=i;else d==="dangerouslySetInnerHTML"?(i=i?i.__html:void 0,l=l?l.__html:void 0,i!=null&&l!==i&&(o=o||[]).push(d,i)):d==="children"?typeof i!="string"&&typeof i!="number"||(o=o||[]).push(d,""+i):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Oo.hasOwnProperty(d)?(i!=null&&d==="onScroll"&&Oe("scroll",e),o||l===i||(o=[])):(o=o||[]).push(d,i))}r&&(o=o||[]).push("style",r);var d=o;(t.updateQueue=d)&&(t.flags|=4)}};Nx=function(e,t,r,n){r!==n&&(t.flags|=4)};function wo(e,t){if(!ze)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function pt(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags&14680064,n|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function n1(e,t,r){var n=t.pendingProps;switch(wc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pt(t),null;case 1:return Nt(t.type)&&Hl(),pt(t),null;case 3:return n=t.stateNode,qa(),Fe(Et),Fe(ht),Rc(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(yl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,pr!==null&&(rc(pr),pr=null))),Xd(e,t),pt(t),null;case 5:Mc(t);var a=Fn(Xo.current);if(r=t.type,e!==null&&t.stateNode!=null)Ex(e,t,r,n,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(A(166));return pt(t),null}if(e=Fn(Rr.current),yl(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[_r]=t,n[Vo]=o,e=(t.mode&1)!==0,r){case"dialog":Oe("cancel",n),Oe("close",n);break;case"iframe":case"object":case"embed":Oe("load",n);break;case"video":case"audio":for(a=0;a<Io.length;a++)Oe(Io[a],n);break;case"source":Oe("error",n);break;case"img":case"image":case"link":Oe("error",n),Oe("load",n);break;case"details":Oe("toggle",n);break;case"input":Xm(n,o),Oe("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},Oe("invalid",n);break;case"textarea":Qm(n,o),Oe("invalid",n)}bd(r,o),a=null;for(var s in o)if(o.hasOwnProperty(s)){var l=o[s];s==="children"?typeof l=="string"?n.textContent!==l&&(o.suppressHydrationWarning!==!0&&vl(n.textContent,l,e),a=["children",l]):typeof l=="number"&&n.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&vl(n.textContent,l,e),a=["children",""+l]):Oo.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&Oe("scroll",n)}switch(r){case"input":sl(n),Km(n,o,!0);break;case"textarea":sl(n),Ym(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=$l)}n=a,t.updateQueue=n,n!==null&&(t.flags|=4)}else{s=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=og(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[_r]=t,e[Vo]=n,Rx(e,t,!1,!1),t.stateNode=e;e:{switch(s=Sd(r,n),r){case"dialog":Oe("cancel",e),Oe("close",e),a=n;break;case"iframe":case"object":case"embed":Oe("load",e),a=n;break;case"video":case"audio":for(a=0;a<Io.length;a++)Oe(Io[a],e);a=n;break;case"source":Oe("error",e),a=n;break;case"img":case"image":case"link":Oe("error",e),Oe("load",e),a=n;break;case"details":Oe("toggle",e),a=n;break;case"input":Xm(e,n),a=gd(e,n),Oe("invalid",e);break;case"option":a=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},a=He({},n,{value:void 0}),Oe("invalid",e);break;case"textarea":Qm(e,n),a=yd(e,n),Oe("invalid",e);break;default:a=n}bd(r,a),l=a;for(o in l)if(l.hasOwnProperty(o)){var i=l[o];o==="style"?ig(e,i):o==="dangerouslySetInnerHTML"?(i=i?i.__html:void 0,i!=null&&sg(e,i)):o==="children"?typeof i=="string"?(r!=="textarea"||i!=="")&&Fo(e,i):typeof i=="number"&&Fo(e,""+i):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Oo.hasOwnProperty(o)?i!=null&&o==="onScroll"&&Oe("scroll",e):i!=null&&oc(e,o,i,s))}switch(r){case"input":sl(e),Km(e,n,!1);break;case"textarea":sl(e),Ym(e);break;case"option":n.value!=null&&e.setAttribute("value",""+hn(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?Na(e,!!n.multiple,o,!1):n.defaultValue!=null&&Na(e,!!n.multiple,n.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=$l)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return pt(t),null;case 6:if(e&&t.stateNode!=null)Nx(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(A(166));if(r=Fn(Xo.current),Fn(Rr.current),yl(t)){if(n=t.stateNode,r=t.memoizedProps,n[_r]=t,(o=n.nodeValue!==r)&&(e=zt,e!==null))switch(e.tag){case 3:vl(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&vl(n.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[_r]=t,t.stateNode=n}return pt(t),null;case 13:if(Fe(qe),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ze&&Bt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Kg(),za(),t.flags|=98560,o=!1;else if(o=yl(t),n!==null&&n.dehydrated!==null){if(e===null){if(!o)throw Error(A(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(A(317));o[_r]=t}else za(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;pt(t),o=!1}else pr!==null&&(rc(pr),pr=null),o=!0;if(!o)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(qe.current&1)!==0?Ze===0&&(Ze=3):qc())),t.updateQueue!==null&&(t.flags|=4),pt(t),null);case 4:return qa(),Xd(e,t),e===null&&jo(t.stateNode.containerInfo),pt(t),null;case 10:return Lc(t.type._context),pt(t),null;case 17:return Nt(t.type)&&Hl(),pt(t),null;case 19:if(Fe(qe),o=t.memoizedState,o===null)return pt(t),null;if(n=(t.flags&128)!==0,s=o.rendering,s===null)if(n)wo(o,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Ql(e),s!==null){for(t.flags|=128,wo(o,!1),n=s.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)o=r,e=n,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Pe(qe,qe.current&1|2),t.child}e=e.sibling}o.tail!==null&&Ge()>Ha&&(t.flags|=128,n=!0,wo(o,!1),t.lanes=4194304)}else{if(!n)if(e=Ql(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),wo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!ze)return pt(t),null}else 2*Ge()-o.renderingStartTime>Ha&&r!==1073741824&&(t.flags|=128,n=!0,wo(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(r=o.last,r!==null?r.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ge(),t.sibling=null,r=qe.current,Pe(qe,n?r&1|2:r&1),t):(pt(t),null);case 22:case 23:return Uc(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(Ft&1073741824)!==0&&(pt(t),t.subtreeFlags&6&&(t.flags|=8192)):pt(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function a1(e,t){switch(wc(t),t.tag){case 1:return Nt(t.type)&&Hl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qa(),Fe(Et),Fe(ht),Rc(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Mc(t),null;case 13:if(Fe(qe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));za()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fe(qe),null;case 4:return qa(),null;case 10:return Lc(t.type._context),null;case 22:case 23:return Uc(),null;case 24:return null;default:return null}}var Sl=!1,mt=!1,o1=typeof WeakSet=="function"?WeakSet:Set,z=null;function Ra(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){je(e,t,n)}else r.current=null}function Kd(e,t,r){try{r()}catch(n){je(e,t,n)}}var qh=!1;function s1(e,t){if(Pd=zl,e=Og(),vc(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var s=0,l=-1,i=-1,d=0,u=0,p=e,c=null;t:for(;;){for(var f;p!==r||a!==0&&p.nodeType!==3||(l=s+a),p!==o||n!==0&&p.nodeType!==3||(i=s+n),p.nodeType===3&&(s+=p.nodeValue.length),(f=p.firstChild)!==null;)c=p,p=f;for(;;){if(p===e)break t;if(c===r&&++d===a&&(l=s),c===o&&++u===n&&(i=s),(f=p.nextSibling)!==null)break;p=c,c=p.parentNode}p=f}r=l===-1||i===-1?null:{start:l,end:i}}else r=null}r=r||{start:0,end:0}}else r=null;for(Td={focusedElem:e,selectionRange:r},zl=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var h=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var m=h.memoizedProps,y=h.memoizedState,g=t.stateNode,x=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:cr(t.type,m),y);g.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(S){je(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return h=qh,qh=!1,h}function To(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&&Kd(t,r,o)}a=a.next}while(a!==n)}}function fi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Qd(e){var t=e.ref;if(t!==null){var r=e.stateNode;e.tag,e=r,typeof t=="function"?t(e):t.current=e}}function Px(e){var t=e.alternate;t!==null&&(e.alternate=null,Px(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_r],delete t[Vo],delete t[Od],delete t[$S],delete t[HS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Tx(e){return e.tag===5||e.tag===3||e.tag===4}function $h(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Tx(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.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Yd(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=$l));else if(n!==4&&(e=e.child,e!==null))for(Yd(e,t,r),e=e.sibling;e!==null;)Yd(e,t,r),e=e.sibling}function Jd(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Jd(e,t,r),e=e.sibling;e!==null;)Jd(e,t,r),e=e.sibling}var at=null,fr=!1;function Zr(e,t,r){for(r=r.child;r!==null;)Ax(e,t,r),r=r.sibling}function Ax(e,t,r){if(Mr&&typeof Mr.onCommitFiberUnmount=="function")try{Mr.onCommitFiberUnmount(ai,r)}catch{}switch(r.tag){case 5:mt||Ra(r,t);case 6:var n=at,a=fr;at=null,Zr(e,t,r),at=n,fr=a,at!==null&&(fr?(e=at,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):at.removeChild(r.stateNode));break;case 18:at!==null&&(fr?(e=at,r=r.stateNode,e.nodeType===8?td(e.parentNode,r):e.nodeType===1&&td(e,r),qo(e)):td(at,r.stateNode));break;case 4:n=at,a=fr,at=r.stateNode.containerInfo,fr=!0,Zr(e,t,r),at=n,fr=a;break;case 0:case 11:case 14:case 15:if(!mt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var o=a,s=o.destroy;o=o.tag,s!==void 0&&((o&2)!==0||(o&4)!==0)&&Kd(r,t,s),a=a.next}while(a!==n)}Zr(e,t,r);break;case 1:if(!mt&&(Ra(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){je(r,t,l)}Zr(e,t,r);break;case 21:Zr(e,t,r);break;case 22:r.mode&1?(mt=(n=mt)||r.memoizedState!==null,Zr(e,t,r),mt=n):Zr(e,t,r);break;default:Zr(e,t,r)}}function Hh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new o1),t.forEach(function(n){var a=h1.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function dr(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var a=r[n];try{var o=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:at=l.stateNode,fr=!1;break e;case 3:at=l.stateNode.containerInfo,fr=!0;break e;case 4:at=l.stateNode.containerInfo,fr=!0;break e}l=l.return}if(at===null)throw Error(A(160));Ax(o,s,a),at=null,fr=!1;var i=a.alternate;i!==null&&(i.return=null),a.return=null}catch(d){je(a,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Dx(t,e),t=t.sibling}function Dx(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(dr(t,e),kr(e),n&4){try{To(3,e,e.return),fi(3,e)}catch(m){je(e,e.return,m)}try{To(5,e,e.return)}catch(m){je(e,e.return,m)}}break;case 1:dr(t,e),kr(e),n&512&&r!==null&&Ra(r,r.return);break;case 5:if(dr(t,e),kr(e),n&512&&r!==null&&Ra(r,r.return),e.flags&32){var a=e.stateNode;try{Fo(a,"")}catch(m){je(e,e.return,m)}}if(n&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,s=r!==null?r.memoizedProps:o,l=e.type,i=e.updateQueue;if(e.updateQueue=null,i!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&ng(a,o),Sd(l,s);var d=Sd(l,o);for(s=0;s<i.length;s+=2){var u=i[s],p=i[s+1];u==="style"?ig(a,p):u==="dangerouslySetInnerHTML"?sg(a,p):u==="children"?Fo(a,p):oc(a,u,p,d)}switch(l){case"input":xd(a,o);break;case"textarea":ag(a,o);break;case"select":var c=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var f=o.value;f!=null?Na(a,!!o.multiple,f,!1):c!==!!o.multiple&&(o.defaultValue!=null?Na(a,!!o.multiple,o.defaultValue,!0):Na(a,!!o.multiple,o.multiple?[]:"",!1))}a[Vo]=o}catch(m){je(e,e.return,m)}}break;case 6:if(dr(t,e),kr(e),n&4){if(e.stateNode===null)throw Error(A(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(m){je(e,e.return,m)}}break;case 3:if(dr(t,e),kr(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{qo(t.containerInfo)}catch(m){je(e,e.return,m)}break;case 4:dr(t,e),kr(e);break;case 13:dr(t,e),kr(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(Bc=Ge())),n&4&&Hh(e);break;case 22:if(u=r!==null&&r.memoizedState!==null,e.mode&1?(mt=(d=mt)||u,dr(t,e),mt=d):dr(t,e),kr(e),n&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!u&&(e.mode&1)!==0)for(z=e,u=e.child;u!==null;){for(p=z=u;z!==null;){switch(c=z,f=c.child,c.tag){case 0:case 11:case 14:case 15:To(4,c,c.return);break;case 1:Ra(c,c.return);var h=c.stateNode;if(typeof h.componentWillUnmount=="function"){n=c,r=c.return;try{t=n,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(m){je(n,r,m)}}break;case 5:Ra(c,c.return);break;case 22:if(c.memoizedState!==null){Wh(p);continue}}f!==null?(f.return=c,z=f):Wh(p)}u=u.sibling}e:for(u=null,p=e;;){if(p.tag===5){if(u===null){u=p;try{a=p.stateNode,d?(o=a.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=p.stateNode,i=p.memoizedProps.style,s=i!=null&&i.hasOwnProperty("display")?i.display:null,l.style.display=lg("display",s))}catch(m){je(e,e.return,m)}}}else if(p.tag===6){if(u===null)try{p.stateNode.nodeValue=d?"":p.memoizedProps}catch(m){je(e,e.return,m)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;u===p&&(u=null),p=p.return}u===p&&(u=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:dr(t,e),kr(e),n&4&&Hh(e);break;case 21:break;default:dr(t,e),kr(e)}}function kr(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Tx(r)){var n=r;break e}r=r.return}throw Error(A(160))}switch(n.tag){case 5:var a=n.stateNode;n.flags&32&&(Fo(a,""),n.flags&=-33);var o=$h(e);Jd(e,o,a);break;case 3:case 4:var s=n.stateNode.containerInfo,l=$h(e);Yd(e,l,s);break;default:throw Error(A(161))}}catch(i){je(e,e.return,i)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function l1(e,t,r){z=e,Ox(e,t,r)}function Ox(e,t,r){for(var n=(e.mode&1)!==0;z!==null;){var a=z,o=a.child;if(a.tag===22&&n){var s=a.memoizedState!==null||Sl;if(!s){var l=a.alternate,i=l!==null&&l.memoizedState!==null||mt;l=Sl;var d=mt;if(Sl=s,(mt=i)&&!d)for(z=a;z!==null;)s=z,i=s.child,s.tag===22&&s.memoizedState!==null?Vh(a):i!==null?(i.return=s,z=i):Vh(a);for(;o!==null;)z=o,Ox(o,t,r),o=o.sibling;z=a,Sl=l,mt=d}jh(e,t,r)}else(a.subtreeFlags&8772)!==0&&o!==null?(o.return=a,z=o):jh(e,t,r)}}function jh(e){for(;z!==null;){var t=z;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:mt||fi(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!mt)if(r===null)n.componentDidMount();else{var a=t.elementType===t.type?r.memoizedProps:cr(t.type,r.memoizedProps);n.componentDidUpdate(a,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Mh(t,o,n);break;case 3:var s=t.updateQueue;if(s!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Mh(t,s,r)}break;case 5:var l=t.stateNode;if(r===null&&t.flags&4){r=l;var i=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":i.autoFocus&&r.focus();break;case"img":i.src&&(r.src=i.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var u=d.memoizedState;if(u!==null){var p=u.dehydrated;p!==null&&qo(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(A(163))}mt||t.flags&512&&Qd(t)}catch(c){je(t,t.return,c)}}if(t===e){z=null;break}if(r=t.sibling,r!==null){r.return=t.return,z=r;break}z=t.return}}function Wh(e){for(;z!==null;){var t=z;if(t===e){z=null;break}var r=t.sibling;if(r!==null){r.return=t.return,z=r;break}z=t.return}}function Vh(e){for(;z!==null;){var t=z;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{fi(4,t)}catch(i){je(t,r,i)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var a=t.return;try{n.componentDidMount()}catch(i){je(t,a,i)}}var o=t.return;try{Qd(t)}catch(i){je(t,o,i)}break;case 5:var s=t.return;try{Qd(t)}catch(i){je(t,s,i)}}}catch(i){je(t,t.return,i)}if(t===e){z=null;break}var l=t.sibling;if(l!==null){l.return=t.return,z=l;break}z=t.return}}var i1=Math.ceil,Zl=Hr.ReactCurrentDispatcher,Oc=Hr.ReactCurrentOwner,Yt=Hr.ReactCurrentBatchConfig,xe=0,nt=null,Ke=null,ot=0,Ft=0,Ea=vn(0),Ze=0,Jo=null,Hn=0,pi=0,Fc=0,Ao=null,Mt=null,Bc=0,Ha=1/0,Ar=null,ei=!1,Zd=null,fn=null,Cl=!1,on=null,ti=0,Do=0,ec=null,Nl=-1,Pl=0;function Ct(){return(xe&6)!==0?Ge():Nl!==-1?Nl:Nl=Ge()}function pn(e){return(e.mode&1)===0?1:(xe&2)!==0&&ot!==0?ot&-ot:WS.transition!==null?(Pl===0&&(Pl=wg()),Pl):(e=Ie,e!==0||(e=window.event,e=e===void 0?16:_g(e.type)),e)}function hr(e,t,r,n){if(50<Do)throw Do=0,ec=null,Error(A(185));Zo(e,r,n),((xe&2)===0||e!==nt)&&(e===nt&&((xe&2)===0&&(pi|=r),Ze===4&&nn(e,ot)),Pt(e,n),r===1&&xe===0&&(t.mode&1)===0&&(Ha=Ge()+500,ui&&yn()))}function Pt(e,t){var r=e.callbackNode;G0(e,t);var n=Bl(e,e===nt?ot:0);if(n===0)r!==null&&eh(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&eh(r),t===1)e.tag===0?jS(Gh.bind(null,e)):Vg(Gh.bind(null,e)),US(function(){(xe&6)===0&&yn()}),r=null;else{switch(bg(n)){case 1:r=dc;break;case 4:r=vg;break;case 16:r=Fl;break;case 536870912:r=yg;break;default:r=Fl}r=jx(r,Fx.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Fx(e,t){if(Nl=-1,Pl=0,(xe&6)!==0)throw Error(A(327));var r=e.callbackNode;if(Oa()&&e.callbackNode!==r)return null;var n=Bl(e,e===nt?ot:0);if(n===0)return null;if((n&30)!==0||(n&e.expiredLanes)!==0||t)t=ri(e,n);else{t=n;var a=xe;xe|=2;var o=zx();(nt!==e||ot!==t)&&(Ar=null,Ha=Ge()+500,Bn(e,t));do try{c1();break}catch(l){Bx(e,l)}while(!0);Cc(),Zl.current=o,xe=a,Ke!==null?t=0:(nt=null,ot=0,t=Ze)}if(t!==0){if(t===2&&(a=_d(e),a!==0&&(n=a,t=tc(e,a))),t===1)throw r=Jo,Bn(e,0),nn(e,n),Pt(e,Ge()),r;if(t===6)nn(e,n);else{if(a=e.current.alternate,(n&30)===0&&!u1(a)&&(t=ri(e,n),t===2&&(o=_d(e),o!==0&&(n=o,t=tc(e,o))),t===1))throw r=Jo,Bn(e,0),nn(e,n),Pt(e,Ge()),r;switch(e.finishedWork=a,e.finishedLanes=n,t){case 0:case 1:throw Error(A(345));case 2:An(e,Mt,Ar);break;case 3:if(nn(e,n),(n&130023424)===n&&(t=Bc+500-Ge(),10<t)){if(Bl(e,0)!==0)break;if(a=e.suspendedLanes,(a&n)!==n){Ct(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Dd(An.bind(null,e,Mt,Ar),t);break}An(e,Mt,Ar);break;case 4:if(nn(e,n),(n&4194240)===n)break;for(t=e.eventTimes,a=-1;0<n;){var s=31-mr(n);o=1<<s,s=t[s],s>a&&(a=s),n&=~o}if(n=a,n=Ge()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*i1(n/1960))-n,10<n){e.timeoutHandle=Dd(An.bind(null,e,Mt,Ar),n);break}An(e,Mt,Ar);break;case 5:An(e,Mt,Ar);break;default:throw Error(A(329))}}}return Pt(e,Ge()),e.callbackNode===r?Fx.bind(null,e):null}function tc(e,t){var r=Ao;return e.current.memoizedState.isDehydrated&&(Bn(e,t).flags|=256),e=ri(e,t),e!==2&&(t=Mt,Mt=r,t!==null&&rc(t)),e}function rc(e){Mt===null?Mt=e:Mt.push.apply(Mt,e)}function u1(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var a=r[n],o=a.getSnapshot;a=a.value;try{if(!gr(o(),a))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 nn(e,t){for(t&=~Fc,t&=~pi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-mr(t),n=1<<r;e[r]=-1,t&=~n}}function Gh(e){if((xe&6)!==0)throw Error(A(327));Oa();var t=Bl(e,0);if((t&1)===0)return Pt(e,Ge()),null;var r=ri(e,t);if(e.tag!==0&&r===2){var n=_d(e);n!==0&&(t=n,r=tc(e,n))}if(r===1)throw r=Jo,Bn(e,0),nn(e,t),Pt(e,Ge()),r;if(r===6)throw Error(A(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,An(e,Mt,Ar),Pt(e,Ge()),null}function zc(e,t){var r=xe;xe|=1;try{return e(t)}finally{xe=r,xe===0&&(Ha=Ge()+500,ui&&yn())}}function jn(e){on!==null&&on.tag===0&&(xe&6)===0&&Oa();var t=xe;xe|=1;var r=Yt.transition,n=Ie;try{if(Yt.transition=null,Ie=1,e)return e()}finally{Ie=n,Yt.transition=r,xe=t,(xe&6)===0&&yn()}}function Uc(){Ft=Ea.current,Fe(Ea)}function Bn(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,zS(r)),Ke!==null)for(r=Ke.return;r!==null;){var n=r;switch(wc(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Hl();break;case 3:qa(),Fe(Et),Fe(ht),Rc();break;case 5:Mc(n);break;case 4:qa();break;case 13:Fe(qe);break;case 19:Fe(qe);break;case 10:Lc(n.type._context);break;case 22:case 23:Uc()}r=r.return}if(nt=e,Ke=e=mn(e.current,null),ot=Ft=t,Ze=0,Jo=null,Fc=pi=Hn=0,Mt=Ao=null,On!==null){for(t=0;t<On.length;t++)if(r=On[t],n=r.interleaved,n!==null){r.interleaved=null;var a=n.next,o=r.pending;if(o!==null){var s=o.next;o.next=a,n.next=s}r.pending=n}On=null}return e}function Bx(e,t){do{var r=Ke;try{if(Cc(),Ml.current=Jl,Yl){for(var n=$e.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}Yl=!1}if($n=0,rt=Je=$e=null,Po=!1,Ko=0,Oc.current=null,r===null||r.return===null){Ze=1,Jo=t,Ke=null;break}e:{var o=e,s=r.return,l=r,i=t;if(t=ot,l.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){var d=i,u=l,p=u.tag;if((u.mode&1)===0&&(p===0||p===11||p===15)){var c=u.alternate;c?(u.updateQueue=c.updateQueue,u.memoizedState=c.memoizedState,u.lanes=c.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=Ah(s);if(f!==null){f.flags&=-257,Dh(f,s,l,o,t),f.mode&1&&Th(o,d,t),t=f,i=d;var h=t.updateQueue;if(h===null){var m=new Set;m.add(i),t.updateQueue=m}else h.add(i);break e}else{if((t&1)===0){Th(o,d,t),qc();break e}i=Error(A(426))}}else if(ze&&l.mode&1){var y=Ah(s);if(y!==null){(y.flags&65536)===0&&(y.flags|=256),Dh(y,s,l,o,t),bc($a(i,l));break e}}o=i=$a(i,l),Ze!==4&&(Ze=2),Ao===null?Ao=[o]:Ao.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var g=bx(o,i,t);_h(o,g);break e;case 1:l=i;var x=o.type,v=o.stateNode;if((o.flags&128)===0&&(typeof x.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(fn===null||!fn.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=Sx(o,l,t);_h(o,S);break e}}o=o.return}while(o!==null)}qx(r)}catch(b){t=b,Ke===r&&r!==null&&(Ke=r=r.return);continue}break}while(!0)}function zx(){var e=Zl.current;return Zl.current=Jl,e===null?Jl:e}function qc(){(Ze===0||Ze===3||Ze===2)&&(Ze=4),nt===null||(Hn&268435455)===0&&(pi&268435455)===0||nn(nt,ot)}function ri(e,t){var r=xe;xe|=2;var n=zx();(nt!==e||ot!==t)&&(Ar=null,Bn(e,t));do try{d1();break}catch(a){Bx(e,a)}while(!0);if(Cc(),xe=r,Zl.current=n,Ke!==null)throw Error(A(261));return nt=null,ot=0,Ze}function d1(){for(;Ke!==null;)Ux(Ke)}function c1(){for(;Ke!==null&&!B0();)Ux(Ke)}function Ux(e){var t=Hx(e.alternate,e,Ft);e.memoizedProps=e.pendingProps,t===null?qx(e):Ke=t,Oc.current=null}function qx(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=n1(r,t,Ft),r!==null){Ke=r;return}}else{if(r=a1(r,t),r!==null){r.flags&=32767,Ke=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ze=6,Ke=null;return}}if(t=t.sibling,t!==null){Ke=t;return}Ke=t=e}while(t!==null);Ze===0&&(Ze=5)}function An(e,t,r){var n=Ie,a=Yt.transition;try{Yt.transition=null,Ie=1,f1(e,t,r,n)}finally{Yt.transition=a,Ie=n}return null}function f1(e,t,r,n){do Oa();while(on!==null);if((xe&6)!==0)throw Error(A(327));r=e.finishedWork;var a=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(A(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(X0(e,o),e===nt&&(Ke=nt=null,ot=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Cl||(Cl=!0,jx(Fl,function(){return Oa(),null})),o=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||o){o=Yt.transition,Yt.transition=null;var s=Ie;Ie=1;var l=xe;xe|=4,Oc.current=null,s1(e,r),Dx(r,e),AS(Td),zl=!!Pd,Td=Pd=null,e.current=r,l1(r,e,a),z0(),xe=l,Ie=s,Yt.transition=o}else e.current=r;if(Cl&&(Cl=!1,on=e,ti=a),o=e.pendingLanes,o===0&&(fn=null),$0(r.stateNode,n),Pt(e,Ge()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)a=t[r],n(a.value,{componentStack:a.stack,digest:a.digest});if(ei)throw ei=!1,e=Zd,Zd=null,e;return(ti&1)!==0&&e.tag!==0&&Oa(),o=e.pendingLanes,(o&1)!==0?e===ec?Do++:(Do=0,ec=e):Do=0,yn(),null}function Oa(){if(on!==null){var e=bg(ti),t=Yt.transition,r=Ie;try{if(Yt.transition=null,Ie=16>e?16:e,on===null)var n=!1;else{if(e=on,on=null,ti=0,(xe&6)!==0)throw Error(A(331));var a=xe;for(xe|=4,z=e.current;z!==null;){var o=z,s=o.child;if((z.flags&16)!==0){var l=o.deletions;if(l!==null){for(var i=0;i<l.length;i++){var d=l[i];for(z=d;z!==null;){var u=z;switch(u.tag){case 0:case 11:case 15:To(8,u,o)}var p=u.child;if(p!==null)p.return=u,z=p;else for(;z!==null;){u=z;var c=u.sibling,f=u.return;if(Px(u),u===d){z=null;break}if(c!==null){c.return=f,z=c;break}z=f}}}var h=o.alternate;if(h!==null){var m=h.child;if(m!==null){h.child=null;do{var y=m.sibling;m.sibling=null,m=y}while(m!==null)}}z=o}}if((o.subtreeFlags&2064)!==0&&s!==null)s.return=o,z=s;else e:for(;z!==null;){if(o=z,(o.flags&2048)!==0)switch(o.tag){case 0:case 11:case 15:To(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,z=g;break e}z=o.return}}var x=e.current;for(z=x;z!==null;){s=z;var v=s.child;if((s.subtreeFlags&2064)!==0&&v!==null)v.return=s,z=v;else e:for(s=x;z!==null;){if(l=z,(l.flags&2048)!==0)try{switch(l.tag){case 0:case 11:case 15:fi(9,l)}}catch(b){je(l,l.return,b)}if(l===s){z=null;break e}var S=l.sibling;if(S!==null){S.return=l.return,z=S;break e}z=l.return}}if(xe=a,yn(),Mr&&typeof Mr.onPostCommitFiberRoot=="function")try{Mr.onPostCommitFiberRoot(ai,e)}catch{}n=!0}return n}finally{Ie=r,Yt.transition=t}}return!1}function Xh(e,t,r){t=$a(r,t),t=bx(e,t,1),e=cn(e,t,1),t=Ct(),e!==null&&(Zo(e,1,t),Pt(e,t))}function je(e,t,r){if(e.tag===3)Xh(e,e,r);else for(;t!==null;){if(t.tag===3){Xh(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(fn===null||!fn.has(n))){e=$a(r,e),e=Sx(t,e,1),t=cn(t,e,1),e=Ct(),t!==null&&(Zo(t,1,e),Pt(t,e));break}}t=t.return}}function p1(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Ct(),e.pingedLanes|=e.suspendedLanes&r,nt===e&&(ot&r)===r&&(Ze===4||Ze===3&&(ot&130023424)===ot&&500>Ge()-Bc?Bn(e,0):Fc|=r),Pt(e,t)}function $x(e,t){t===0&&((e.mode&1)===0?t=1:(t=ul,ul<<=1,(ul&130023424)===0&&(ul=4194304)));var r=Ct();e=qr(e,t),e!==null&&(Zo(e,t,r),Pt(e,r))}function m1(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),$x(e,r)}function h1(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(A(314))}n!==null&&n.delete(t),$x(e,r)}var Hx;Hx=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Et.current)Rt=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Rt=!1,r1(e,t,r);Rt=(e.flags&131072)!==0}else Rt=!1,ze&&(t.flags&1048576)!==0&&Gg(t,Vl,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;El(e,t),e=t.pendingProps;var a=Ba(t,ht.current);Da(t,r),a=Nc(null,t,n,e,a,r);var o=Pc();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Nt(n)?(o=!0,jl(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Ic(t),a.updater=ci,t.stateNode=a,a._reactInternals=t,$d(t,n,e,r),t=Wd(null,t,n,!0,o,r)):(t.tag=0,ze&&o&&yc(t),St(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(El(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=x1(n),e=cr(n,e),a){case 0:t=jd(null,t,n,e,r);break e;case 1:t=Bh(null,t,n,e,r);break e;case 11:t=Oh(null,t,n,e,r);break e;case 14:t=Fh(null,t,n,cr(n.type,e),r);break e}throw Error(A(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:cr(n,a),jd(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:cr(n,a),Bh(e,t,n,a,r);case 3:e:{if(Ix(t),e===null)throw Error(A(387));n=t.pendingProps,o=t.memoizedState,a=o.element,Zg(e,t),Kl(t,n,null,r);var s=t.memoizedState;if(n=s.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=$a(Error(A(423)),t),t=zh(e,t,n,r,a);break e}else if(n!==a){a=$a(Error(A(424)),t),t=zh(e,t,n,r,a);break e}else for(Bt=dn(t.stateNode.containerInfo.firstChild),zt=t,ze=!0,pr=null,r=Yg(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(za(),n===a){t=$r(e,t,r);break e}St(e,t,n,r)}t=t.child}return t;case 5:return ex(t),e===null&&zd(t),n=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,s=a.children,Ad(n,a)?s=null:o!==null&&Ad(n,o)&&(t.flags|=32),kx(e,t),St(e,t,s,r),t.child;case 6:return e===null&&zd(t),null;case 13:return _x(e,t,r);case 4:return _c(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ua(t,null,n,r):St(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:cr(n,a),Oh(e,t,n,a,r);case 7:return St(e,t,t.pendingProps,r),t.child;case 8:return St(e,t,t.pendingProps.children,r),t.child;case 12:return St(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,Pe(Gl,n._currentValue),n._currentValue=s,o!==null)if(gr(o.value,s)){if(o.children===a.children&&!Et.current){t=$r(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var i=l.firstContext;i!==null;){if(i.context===n){if(o.tag===1){i=Br(-1,r&-r),i.tag=2;var d=o.updateQueue;if(d!==null){d=d.shared;var u=d.pending;u===null?i.next=i:(i.next=u.next,u.next=i),d.pending=i}}o.lanes|=r,i=o.alternate,i!==null&&(i.lanes|=r),Ud(o.return,r,t),l.lanes|=r;break}i=i.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(A(341));s.lanes|=r,l=s.alternate,l!==null&&(l.lanes|=r),Ud(s,r,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}St(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,Da(t,r),a=Jt(a),n=n(a),t.flags|=1,St(e,t,n,r),t.child;case 14:return n=t.type,a=cr(n,t.pendingProps),a=cr(n.type,a),Fh(e,t,n,a,r);case 15:return Cx(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:cr(n,a),El(e,t),t.tag=1,Nt(n)?(e=!0,jl(t)):e=!1,Da(t,r),wx(t,n,a),$d(t,n,a,r),Wd(null,t,n,!0,e,r);case 19:return Mx(e,t,r);case 22:return Lx(e,t,r)}throw Error(A(156,t.tag))};function jx(e,t){return xg(e,t)}function g1(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qt(e,t,r,n){return new g1(e,t,r,n)}function $c(e){return e=e.prototype,!(!e||!e.isReactComponent)}function x1(e){if(typeof e=="function")return $c(e)?1:0;if(e!=null){if(e=e.$$typeof,e===lc)return 11;if(e===ic)return 14}return 2}function mn(e,t){var r=e.alternate;return r===null?(r=Qt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Tl(e,t,r,n,a,o){var s=2;if(n=e,typeof e=="function")$c(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case wa:return zn(r.children,a,o,t);case sc:s=8,a|=8;break;case fd:return e=Qt(12,r,t,a|2),e.elementType=fd,e.lanes=o,e;case pd:return e=Qt(13,r,t,a),e.elementType=pd,e.lanes=o,e;case md:return e=Qt(19,r,t,a),e.elementType=md,e.lanes=o,e;case eg:return mi(r,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Jh:s=10;break e;case Zh:s=9;break e;case lc:s=11;break e;case ic:s=14;break e;case en:s=16,n=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=Qt(s,r,t,a),t.elementType=e,t.type=n,t.lanes=o,t}function zn(e,t,r,n){return e=Qt(7,e,n,t),e.lanes=r,e}function mi(e,t,r,n){return e=Qt(22,e,n,t),e.elementType=eg,e.lanes=r,e.stateNode={isHidden:!1},e}function ud(e,t,r){return e=Qt(6,e,null,t),e.lanes=r,e}function dd(e,t,r){return t=Qt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function v1(e,t,r,n,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Gu(0),this.expirationTimes=Gu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gu(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Hc(e,t,r,n,a,o,s,l,i){return e=new v1(e,t,r,l,i),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Qt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ic(o),e}function y1(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ya,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function Wx(e){if(!e)return gn;e=e._reactInternals;e:{if(Vn(e)!==e||e.tag!==1)throw Error(A(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Nt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(A(171))}if(e.tag===1){var r=e.type;if(Nt(r))return Wg(e,r,t)}return t}function Vx(e,t,r,n,a,o,s,l,i){return e=Hc(r,n,!0,e,a,o,s,l,i),e.context=Wx(null),r=e.current,n=Ct(),a=pn(r),o=Br(n,a),o.callback=t??null,cn(r,o,a),e.current.lanes=a,Zo(e,a,n),Pt(e,n),e}function hi(e,t,r,n){var a=t.current,o=Ct(),s=pn(a);return r=Wx(r),t.context===null?t.context=r:t.pendingContext=r,t=Br(o,s),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=cn(a,t,s),e!==null&&(hr(e,a,s,o),_l(e,a,s)),s}function ni(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function Kh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function jc(e,t){Kh(e,t),(e=e.alternate)&&Kh(e,t)}function w1(){return null}var Gx=typeof reportError=="function"?reportError:function(e){console.error(e)};function Wc(e){this._internalRoot=e}gi.prototype.render=Wc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(A(409));hi(e,t,null,null)};gi.prototype.unmount=Wc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jn(function(){hi(null,e,null,null)}),t[Ur]=null}};function gi(e){this._internalRoot=e}gi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Lg();e={blockedOn:null,target:e,priority:t};for(var r=0;r<rn.length&&t!==0&&t<rn[r].priority;r++);rn.splice(r,0,e),r===0&&Ig(e)}};function Vc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function xi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Qh(){}function b1(e,t,r,n,a){if(a){if(typeof n=="function"){var o=n;n=function(){var d=ni(s);o.call(d)}}var s=Vx(t,n,e,0,null,!1,!1,"",Qh);return e._reactRootContainer=s,e[Ur]=s.current,jo(e.nodeType===8?e.parentNode:e),jn(),s}for(;a=e.lastChild;)e.removeChild(a);if(typeof n=="function"){var l=n;n=function(){var d=ni(i);l.call(d)}}var i=Hc(e,0,!1,null,null,!1,!1,"",Qh);return e._reactRootContainer=i,e[Ur]=i.current,jo(e.nodeType===8?e.parentNode:e),jn(function(){hi(t,i,r,n)}),i}function vi(e,t,r,n,a){var o=r._reactRootContainer;if(o){var s=o;if(typeof a=="function"){var l=a;a=function(){var i=ni(s);l.call(i)}}hi(t,s,e,a)}else s=b1(r,t,e,a,n);return ni(s)}Sg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=ko(t.pendingLanes);r!==0&&(cc(t,r|1),Pt(t,Ge()),(xe&6)===0&&(Ha=Ge()+500,yn()))}break;case 13:jn(function(){var n=qr(e,1);if(n!==null){var a=Ct();hr(n,e,1,a)}}),jc(e,1)}};fc=function(e){if(e.tag===13){var t=qr(e,134217728);if(t!==null){var r=Ct();hr(t,e,134217728,r)}jc(e,134217728)}};Cg=function(e){if(e.tag===13){var t=pn(e),r=qr(e,t);if(r!==null){var n=Ct();hr(r,e,t,n)}jc(e,t)}};Lg=function(){return Ie};kg=function(e,t){var r=Ie;try{return Ie=e,t()}finally{Ie=r}};Ld=function(e,t,r){switch(t){case"input":if(xd(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var a=ii(n);if(!a)throw Error(A(90));rg(n),xd(n,a)}}}break;case"textarea":ag(e,r);break;case"select":t=r.value,t!=null&&Na(e,!!r.multiple,t,!1)}};cg=zc;fg=jn;var S1={usingClientEntryPoint:!1,Events:[ts,La,ii,ug,dg,zc]},bo={findFiberByHostInstance:Dn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},C1={bundleType:bo.bundleType,version:bo.version,rendererPackageName:bo.rendererPackageName,rendererConfig:bo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Hr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=hg(e),e===null?null:e.stateNode},findFiberByHostInstance:bo.findFiberByHostInstance||w1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(So=__REACT_DEVTOOLS_GLOBAL_HOOK__,!So.isDisabled&&So.supportsFiber))try{ai=So.inject(C1),Mr=So}catch{}var So;$t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=S1;$t.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Vc(t))throw Error(A(200));return y1(e,t,null,r)};$t.createRoot=function(e,t){if(!Vc(e))throw Error(A(299));var r=!1,n="",a=Gx;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=Hc(e,1,!1,null,null,r,!1,n,a),e[Ur]=t.current,jo(e.nodeType===8?e.parentNode:e),new Wc(t)};$t.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(A(188)):(e=Object.keys(e).join(","),Error(A(268,e)));return e=hg(t),e=e===null?null:e.stateNode,e};$t.flushSync=function(e){return jn(e)};$t.hydrate=function(e,t,r){if(!xi(t))throw Error(A(200));return vi(null,e,t,!0,r)};$t.hydrateRoot=function(e,t,r){if(!Vc(e))throw Error(A(405));var n=r!=null&&r.hydratedSources||null,a=!1,o="",s=Gx;if(r!=null&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(s=r.onRecoverableError)),t=Vx(t,null,e,1,r??null,a,!1,o,s),e[Ur]=t.current,jo(e),n)for(e=0;e<n.length;e++)r=n[e],a=r._getVersion,a=a(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,a]:t.mutableSourceEagerHydrationData.push(r,a);return new gi(t)};$t.render=function(e,t,r){if(!xi(t))throw Error(A(200));return vi(null,e,t,!1,r)};$t.unmountComponentAtNode=function(e){if(!xi(e))throw Error(A(40));return e._reactRootContainer?(jn(function(){vi(null,null,e,!1,function(){e._reactRootContainer=null,e[Ur]=null})}),!0):!1};$t.unstable_batchedUpdates=zc;$t.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!xi(r))throw Error(A(200));if(e==null||e._reactInternals===void 0)throw Error(A(38));return vi(e,t,r,!1,n)};$t.version="18.3.1-next-f1338f8080-20240426"});var Yx=Tr((G_,Qx)=>{"use strict";function Kx(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Kx)}catch(e){console.error(e)}}Kx(),Qx.exports=Xx()});var Zx=Tr(Gc=>{"use strict";var Jx=Yx();Gc.createRoot=Jx.createRoot,Gc.hydrateRoot=Jx.hydrateRoot;var X_});var tv=Tr(yi=>{"use strict";var L1=me(),k1=Symbol.for("react.element"),I1=Symbol.for("react.fragment"),_1=Object.prototype.hasOwnProperty,M1=L1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,R1={key:!0,ref:!0,__self:!0,__source:!0};function ev(e,t,r){var n,a={},o=null,s=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(n in t)_1.call(t,n)&&!R1.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)a[n]===void 0&&(a[n]=t[n]);return{$$typeof:k1,type:e,key:o,ref:s,props:a,_owner:M1.current}}yi.Fragment=I1;yi.jsx=ev;yi.jsxs=ev});var ce=Tr((Y_,rv)=>{"use strict";rv.exports=tv()});var U_={};o0(U_,{default:()=>z_,mount:()=>Wb});var Hb=B(me(),1),jb=B(Zx(),1);var Yr=B(me(),1);var X=B(me(),1);var Tt=B(me(),1),fe=B(ce(),1),wi=(...e)=>e.filter(Boolean).join(" ");function gt({label:e,pressed:t,className:r,children:n,...a}){return(0,fe.jsx)(Xc,{content:e,children:(0,fe.jsx)("button",{className:wi("lum-iconbtn",r),"aria-label":e,"aria-pressed":t,...a,children:n})})}function wn({tone:e="default",children:t,className:r}){return(0,fe.jsx)("span",{className:wi("lum-badge",e!=="default"&&`lum-badge--${e}`,r),children:t})}function Xc({content:e,children:t}){return e?(0,fe.jsxs)("span",{className:"lum-tip",children:[t,(0,fe.jsx)("span",{className:"lum-tip__bubble",role:"tooltip",children:e})]}):(0,fe.jsx)(fe.Fragment,{children:t})}function Kc({open:e,onClose:t,title:r,children:n}){return(0,Tt.useEffect)(()=>{if(!e)return;let a=o=>o.key==="Escape"&&t();return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[e,t]),e?(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)("div",{className:"lum-drawer__scrim",onClick:t}),(0,fe.jsxs)("aside",{className:"lum-drawer",role:"dialog","aria-modal":"true","aria-label":typeof r=="string"?r:"Details",children:[(0,fe.jsxs)("div",{className:"lum-drawer__header",children:[(0,fe.jsx)("strong",{children:r}),(0,fe.jsx)(gt,{label:"Close",onClick:t,children:"\u2715"})]}),(0,fe.jsx)("div",{className:"lum-drawer__body",children:n})]})]}):null}function Qc({width:e,height:t=14,className:r,radius:n}){return(0,fe.jsx)("div",{className:wi("lum-skeleton",r),style:{width:e??"100%",height:t,borderRadius:n},"aria-hidden":!0})}var E1=(0,Tt.createContext)(()=>{});function nv({children:e}){let[t,r]=(0,Tt.useState)([]),n=(0,Tt.useCallback)((a,o="default")=>{let s=Date.now()+Math.floor(performance.now());r(l=>[...l,{id:s,text:a,tone:o}]),setTimeout(()=>r(l=>l.filter(i=>i.id!==s)),3200)},[]);return(0,fe.jsxs)(E1.Provider,{value:n,children:[e,(0,fe.jsx)("div",{className:"lum-toasts",role:"status","aria-live":"polite",children:t.map(a=>(0,fe.jsx)("div",{className:wi("lum-toast",a.tone&&a.tone!=="default"&&`lum-toast--${a.tone}`),children:a.text},a.id))})]})}function av({trigger:e,options:t,value:r,onSelect:n,placement:a="bottom"}){let[o,s]=(0,Tt.useState)(!1),l=(0,Tt.useRef)(null);return(0,Tt.useEffect)(()=>{if(!o)return;let i=u=>{l.current&&!l.current.contains(u.target)&&s(!1)},d=u=>u.key==="Escape"&&s(!1);return document.addEventListener("mousedown",i),document.addEventListener("keydown",d),()=>{document.removeEventListener("mousedown",i),document.removeEventListener("keydown",d)}},[o]),(0,fe.jsxs)("div",{className:"lum-menu",ref:l,children:[(0,fe.jsx)("span",{onClick:()=>s(i=>!i),children:e}),o&&(0,fe.jsx)("div",{className:`lum-menu__list${a==="top"?" lum-menu__list--up":""}`,role:"menu",children:t.map(i=>(0,fe.jsxs)("button",{role:"menuitemradio","aria-checked":r===i.value,className:"lum-menu__item",onClick:()=>{n(i.value),s(!1)},children:[i.label,r===i.value&&(0,fe.jsx)("span",{"aria-hidden":!0,children:"\u2713"})]},String(i.value)))})]})}function er({title:e,children:t,icon:r,action:n}){return(0,fe.jsxs)("div",{className:"lum-state",children:[r&&(0,fe.jsx)("div",{className:"lum-state__icon",children:r}),(0,fe.jsx)("div",{className:"lum-state__title",children:e}),t&&(0,fe.jsx)("div",{children:t}),n]})}function ov({title:e,children:t,action:r}){return(0,fe.jsxs)("div",{className:"lum-state lum-state--error",role:"alert",children:[(0,fe.jsx)("div",{className:"lum-state__icon",children:"\u26A0"}),(0,fe.jsx)("div",{className:"lum-state__title",children:e}),t&&(0,fe.jsx)("div",{children:t}),r]})}var sv=e=>{let t,r=new Set,n=(d,u)=>{let p=typeof d=="function"?d(t):d;if(!Object.is(p,t)){let c=t;t=u??(typeof p!="object"||p===null)?p:Object.assign({},t,p),r.forEach(f=>f(t,c))}},a=()=>t,l={setState:n,getState:a,getInitialState:()=>i,subscribe:d=>(r.add(d),()=>r.delete(d))},i=t=e(n,a,l);return l},lv=(e=>e?sv(e):sv);var vu=B(me(),1);var ns=B(me(),1);var N1=e=>e;function iv(e,t=N1){let r=ns.default.useSyncExternalStore(e.subscribe,ns.default.useCallback(()=>t(e.getState()),[e,t]),ns.default.useCallback(()=>t(e.getInitialState()),[e,t]));return ns.default.useDebugValue(r),r}var yb=B(ce(),1),yu=B(me(),1),bb=B(ce(),1);var P1=Object.defineProperty,T1=(e,t,r)=>t in e?P1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t,r)=>T1(e,typeof t!="symbol"?t+"":t,r),uv,A1=Object.defineProperty,D1=(e,t,r)=>t in e?A1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,dv=(e,t,r)=>D1(e,typeof t!="symbol"?t+"":t,r),ae=(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))(ae||{}),cv={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},fv={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},bi={},Ky={},O1=()=>!!globalThis.Zone;function Ep(e){if(bi[e])return bi[e];let t=globalThis[e],r=t.prototype,n=e in cv?cv[e]:void 0,a=!!(n&&n.every(l=>{var i,d;return!!((d=(i=Object.getOwnPropertyDescriptor(r,l))==null?void 0:i.get)!=null&&d.toString().includes("[native code]"))})),o=e in fv?fv[e]:void 0,s=!!(o&&o.every(l=>{var i;return typeof r[l]=="function"&&((i=r[l])==null?void 0:i.toString().includes("[native code]"))}));if(a&&s&&!O1())return bi[e]=t.prototype,t.prototype;try{let l=document.createElement("iframe");l.style.display="none",document.body.appendChild(l);let i=l.contentWindow;if(!i)return t.prototype;let d=i[e].prototype;if(!d)return l.remove(),r;let u=navigator.userAgent;return u.includes("Safari")&&!u.includes("Chrome")?(l.classList.add("rr-block"),l.setAttribute("__rrwebUntaintedMutationObserver",""),Ky[e]=()=>l.remove()):l.remove(),bi[e]=d}catch{return r}}var Yc={};function Gr(e,t,r){var n;let a=`${e}.${String(r)}`;if(Yc[a])return Yc[a].call(t);let o=Ep(e),s=(n=Object.getOwnPropertyDescriptor(o,r))==null?void 0:n.get;return s?(Yc[a]=s,s.call(t)):t[r]}var Jc={};function Qy(e,t,r){let n=`${e}.${String(r)}`;if(Jc[n])return Jc[n].bind(t);let o=Ep(e)[r];return typeof o!="function"?t[r]:(Jc[n]=o,o.bind(t))}function F1(e){return Gr("Node",e,"ownerDocument")}function B1(e){return Gr("Node",e,"childNodes")}function z1(e){return Gr("Node",e,"parentNode")}function U1(e){return Gr("Node",e,"parentElement")}function q1(e){return Gr("Node",e,"textContent")}function $1(e,t){return Qy("Node",e,"contains")(t)}function H1(e){return Qy("Node",e,"getRootNode")()}function j1(e){return!e||!("host"in e)?null:Gr("ShadowRoot",e,"host")}function W1(e){return e.styleSheets}function V1(e){return!e||!("shadowRoot"in e)?null:Gr("Element",e,"shadowRoot")}function G1(e,t){return Gr("Element",e,"querySelector")(t)}function X1(e,t){return Gr("Element",e,"querySelectorAll")(t)}function K1(){return[Ep("MutationObserver").constructor,Ky.MutationObserver??(()=>{})]}var Yy=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Yy=()=>new Date().getTime());function Q1(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],a=r(n);return typeof a=="function"&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=a,()=>{e[t]=n}}catch{return()=>{}}}var xt={ownerDocument:F1,childNodes:B1,parentNode:z1,parentElement:U1,textContent:q1,contains:$1,getRootNode:H1,host:j1,styleSheets:W1,shadowRoot:V1,querySelector:G1,querySelectorAll:X1,nowTimestamp:Yy,mutationObserverCtor:K1,patch:Q1};function Np(e){return e.nodeType===e.ELEMENT_NODE}function ls(e){let t=e&&"host"in e&&"mode"in e&&xt.host(e)||null;return!!(t&&"shadowRoot"in t&&xt.shadowRoot(t)===e)}function is(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Y1(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 J1(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function sp(e){try{let t=e.rules||e.cssRules;if(!t)return null;let r=e.href;!r&&e.ownerNode&&(r=e.ownerNode.baseURI);let n=Array.from(t,a=>Jy(a,r)).join("");return Y1(n)}catch{return null}}function Jy(e,t){if(eC(e)){let r;try{r=sp(e.styleSheet)||J1(e)}catch{r=e.cssText}return e.styleSheet.href?Di(r,e.styleSheet.href):r}else{let r=e.cssText;return tC(e)&&e.selectorText.includes(":")&&(r=Z1(r)),t?Di(r,t):r}}function Z1(e){let t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function eC(e){return"styleSheet"in e}function tC(e){return"selectorText"in e}var fs=class{constructor(){dv(this,"idNodeMap",new Map),dv(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){let n=this.getNode(t);if(n){let a=this.nodeMetaMap.get(n);a&&this.nodeMetaMap.set(r,a)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Zy(){return new fs}function Ti({element:e,maskInputOptions:t,tagName:r,type:n,value:a,maskInputFn:o}){let s=a||"",l=n&&Ln(n);return(t[r.toLowerCase()]||l&&t[l])&&(o?s=o(s,e):s="*".repeat(s.length)),s}function Ln(e){return e.toLowerCase()}var pv="__rrweb_original__";function rC(e){let t=e.getContext("2d");if(!t)return!0;let r=50;for(let n=0;n<e.width;n+=r)for(let a=0;a<e.height;a+=r){let o=t.getImageData,s=pv in o?o[pv]:o;if(new Uint32Array(s.call(t,n,a,Math.min(r,e.width-n),Math.min(r,e.height-a)).data.buffer).some(i=>i!==0))return!1}return!0}function nC(e,t){return!e||!t||e.type!==t.type?!1:e.type===ae.Document?e.compatMode===t.compatMode:e.type===ae.DocumentType?e.name===t.name&&e.publicId===t.publicId&&e.systemId===t.systemId:e.type===ae.Comment||e.type===ae.Text||e.type===ae.CDATA?e.textContent===t.textContent:e.type===ae.Element?e.tagName===t.tagName&&JSON.stringify(e.attributes)===JSON.stringify(t.attributes)&&e.isSVG===t.isSVG&&e.needBlock===t.needBlock:!1}function Ai(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Ln(t):null}function Pp(e,t){let r;try{r=new URL(e,t??window.location.href)}catch{return null}let n=/\.([0-9a-z]+)(?:$)/i,a=r.pathname.match(n);return a?.[1]??null}function aC(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var oC=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,sC=/^(?:[a-z+]+:)?\/\//i,lC=/^www\..*/i,iC=/^(data:)([^,]*),(.*)/i;function Di(e,t){return(e||"").replace(oC,(r,n,a,o,s,l)=>{let i=a||s||l,d=n||o||"";if(!i)return r;if(sC.test(i)||lC.test(i))return`url(${d}${i}${d})`;if(iC.test(i))return`url(${d}${i}${d})`;if(i[0]==="/")return`url(${d}${aC(t)+i}${d})`;let u=t.split("/"),p=i.split("/");u.pop();for(let c of p)c!=="."&&(c===".."?u.pop():u.push(c));return`url(${d}${u.join("/")}${d})`})}function Si(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function uC(e,t,r=!1){let n=Array.from(t.childNodes),a=[],o=0;if(n.length>1&&e&&typeof e=="string"){let s=Si(e,r),l=s.length/e.length;for(let i=1;i<n.length;i++)if(n[i].textContent&&typeof n[i].textContent=="string"){let d=Si(n[i].textContent,r),u=100,p=3;for(;p<d.length&&(d[p].match(/[a-zA-Z0-9]/)||d.indexOf(d.substring(0,p),1)!==-1);p++);for(;p<d.length;p++){let c=d.substring(0,p),f=s.split(c),h=-1;if(f.length===2)h=f[0].length;else if(f.length>2&&f[0]===""&&n[i-1].textContent!=="")h=s.indexOf(c,1);else if(f.length===1){if(c=c.substring(0,c.length-1),f=s.split(c),f.length<=1)return a.push(e),a;p=u+1}else p===d.length-1&&(h=s.indexOf(c));if(f.length>=2&&p>u){let m=n[i-1].textContent;if(m&&typeof m=="string"){let y=Si(m).length;h=s.indexOf(c,y)}h===-1&&(h=f[0].length)}if(h!==-1){let m=Math.floor(h/l);for(;m>0&&m<e.length;){if(o+=1,o>50*n.length)return a.push(e),a;let y=Si(e.substring(0,m),r);if(y.length===h){a.push(e.substring(0,m)),e=e.substring(m),s=s.substring(h);break}else y.length<h?m+=Math.max(1,Math.floor((h-y.length)/l)):m-=Math.max(1,Math.floor((y.length-h)*l))}break}}}}return a.push(e),a}function dC(e,t){return uC(e,t).join("/* rr_split */")}var cC=1,fC=new RegExp("[^a-z0-9-_:]"),ps=-2;function ew(){return cC++}function pC(e){if(e instanceof HTMLFormElement)return"form";let t=Ln(e.tagName);return fC.test(t)?"div":t}var Va,mv,mC=/^[^ \t\n\r\u000c]+/,hC=/^[, \t\n\r\u000c]+/;function gC(e,t){if(t.trim()==="")return t;let r=0;function n(o){let s,l=o.exec(t.substring(r));return l?(s=l[0],r+=s.length,s):""}let a=[];for(;n(hC),!(r>=t.length);){let o=n(mC);if(o.slice(-1)===",")o=Qa(e,o.substring(0,o.length-1)),a.push(o);else{let s="";o=Qa(e,o);let l=!1;for(;;){let i=t.charAt(r);if(i===""){a.push((o+s).trim());break}else if(l)i===")"&&(l=!1);else if(i===","){r+=1,a.push((o+s).trim());break}else i==="("&&(l=!0);s+=i,r+=1}}}return a.join(", ")}var hv=new WeakMap;function Qa(e,t){return!t||t.trim()===""?t:Tp(e,t)}function xC(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Tp(e,t){let r=hv.get(e);if(r||(r=e.createElement("a"),hv.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function tw(e,t,r,n){return n&&(r==="src"||r==="href"&&!(t==="use"&&n[0]==="#")||r==="xlink:href"&&n[0]!=="#"||r==="background"&&["table","td","th"].includes(t)?Qa(e,n):r==="srcset"?gC(e,n):r==="style"?Di(n,Tp(e)):t==="object"&&r==="data"?Qa(e,n):n)}function rw(e,t,r){return["video","audio"].includes(e)&&t==="autoplay"}function vC(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){let a=e.classList[n];if(t.test(a))return!0}if(r)return e.matches(r)}catch{}return!1}function Oi(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?Oi(xt.parentNode(e),t,r):!1;for(let n=e.classList.length;n--;){let a=e.classList[n];if(t.test(a))return!0}return r?Oi(xt.parentNode(e),t,r):!1}function nw(e,t,r,n){let a;if(Np(e)){if(a=e,!xt.childNodes(a).length)return!1}else{if(xt.parentElement(e)===null)return!1;a=xt.parentElement(e)}try{if(typeof t=="string"){if(n){if(a.closest(`.${t}`))return!0}else if(a.classList.contains(t))return!0}else if(Oi(a,t,n))return!0;if(r){if(n){if(a.closest(r))return!0}else if(a.matches(r))return!0}}catch{}return!1}function yC(e,t,r){let n=e.contentWindow;if(!n)return;let a=!1,o;try{o=n.document.readyState}catch{return}if(o!=="complete"){let l=setTimeout(()=>{a||(t(),a=!0)},r);e.addEventListener("load",()=>{clearTimeout(l),a=!0,t()});return}let s="about:blank";if(n.location.href!==s||e.src===s||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function wC(e,t,r){let n=!1,a;try{a=e.sheet}catch{return}if(a)return;let o=setTimeout(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{clearTimeout(o),n=!0,t()})}function bC(e,t){let{doc:r,mirror:n,blockClass:a,blockSelector:o,needsMask:s,inlineStylesheet:l,maskInputOptions:i={},maskTextFn:d,maskInputFn:u,dataURLOptions:p={},inlineImages:c,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:m=!1,cssCaptured:y=!1}=t,g=SC(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:ae.Document,childNodes:[],compatMode:e.compatMode}:{type:ae.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ae.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:g};case e.ELEMENT_NODE:return LC(e,{doc:r,blockClass:a,blockSelector:o,inlineStylesheet:l,maskInputOptions:i,maskInputFn:u,dataURLOptions:p,inlineImages:c,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:m,rootId:g});case e.TEXT_NODE:return CC(e,{doc:r,needsMask:s,maskTextFn:d,rootId:g,cssCaptured:y});case e.CDATA_SECTION_NODE:return{type:ae.CDATA,textContent:"",rootId:g};case e.COMMENT_NODE:return{type:ae.Comment,textContent:xt.textContent(e)||"",rootId:g};default:return!1}}function SC(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return r===1?void 0:r}function CC(e,t){let{needsMask:r,maskTextFn:n,rootId:a,cssCaptured:o}=t,s=xt.parentNode(e),l=s&&s.tagName,i="",d=l==="STYLE"?!0:void 0,u=l==="SCRIPT"?!0:void 0;return u?i="SCRIPT_PLACEHOLDER":o||(i=xt.textContent(e),d&&i&&(i=Di(i,Tp(t.doc)))),!d&&!u&&i&&r&&(i=n?n(i,xt.parentElement(e)):i.replace(/[\S]/g,"*")),{type:ae.Text,textContent:i||"",rootId:a}}function LC(e,t){let{doc:r,blockClass:n,blockSelector:a,inlineStylesheet:o,maskInputOptions:s={},maskInputFn:l,dataURLOptions:i={},inlineImages:d,recordCanvas:u,keepIframeSrcFn:p,newlyAddedElement:c=!1,rootId:f}=t,h=vC(e,n,a),m=pC(e),y={},g=e.attributes.length;for(let v=0;v<g;v++){let S=e.attributes[v];rw(m,S.name,S.value)||(y[S.name]=tw(r,m,Ln(S.name),S.value))}if(m==="link"&&o){let v=Array.from(r.styleSheets).find(b=>b.href===e.href),S=null;v&&(S=sp(v)),S&&(delete y.rel,delete y.href,y._cssText=S)}if(m==="style"&&e.sheet){let v=sp(e.sheet);v&&(e.childNodes.length>1&&(v=dC(v,e)),y._cssText=v)}if(["input","textarea","select"].includes(m)){let v=e.value,S=e.checked;y.type!=="radio"&&y.type!=="checkbox"&&y.type!=="submit"&&y.type!=="button"&&v?y.value=Ti({element:e,type:Ai(e),tagName:m,value:v,maskInputOptions:s,maskInputFn:l}):S&&(y.checked=S)}if(m==="option"&&(e.selected&&!s.select?y.selected=!0:delete y.selected),m==="dialog"&&e.open&&(y.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),m==="canvas"&&u){if(e.__context==="2d")rC(e)||(y.rr_dataURL=e.toDataURL(i.type,i.quality));else if(!("__context"in e)){let v=e.toDataURL(i.type,i.quality),S=r.createElement("canvas");S.width=e.width,S.height=e.height;let b=S.toDataURL(i.type,i.quality);v!==b&&(y.rr_dataURL=v)}}if(m==="img"&&d){Va||(Va=r.createElement("canvas"),mv=Va.getContext("2d"));let v=e,S=v.currentSrc||v.getAttribute("src")||"<unknown-src>",b=v.crossOrigin,w=()=>{v.removeEventListener("load",w);try{Va.width=v.naturalWidth,Va.height=v.naturalHeight,mv.drawImage(v,0,0),y.rr_dataURL=Va.toDataURL(i.type,i.quality)}catch(C){if(v.crossOrigin!=="anonymous"){v.crossOrigin="anonymous",v.complete&&v.naturalWidth!==0?w():v.addEventListener("load",w);return}else console.warn(`Cannot inline img src=${S}! Error: ${C}`)}v.crossOrigin==="anonymous"&&(b?y.crossOrigin=b:v.removeAttribute("crossorigin"))};v.complete&&v.naturalWidth!==0?w():v.addEventListener("load",w)}if(["audio","video"].includes(m)){let v=y;v.rr_mediaState=e.paused?"paused":"played",v.rr_mediaCurrentTime=e.currentTime,v.rr_mediaPlaybackRate=e.playbackRate,v.rr_mediaMuted=e.muted,v.rr_mediaLoop=e.loop,v.rr_mediaVolume=e.volume}if(c||(e.scrollLeft&&(y.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(y.rr_scrollTop=e.scrollTop)),h){let{width:v,height:S}=e.getBoundingClientRect();y={class:y.class,rr_width:`${v}px`,rr_height:`${S}px`}}m==="iframe"&&!p(y.src)&&(e.contentDocument||(y.rr_src=y.src),delete y.src);let x;try{customElements.get(m)&&(x=!0)}catch{}return{type:ae.Element,tagName:m,attributes:y,childNodes:[],isSVG:xC(e)||void 0,needBlock:h,rootId:f,isCustom:x}}function Te(e){return e==null?"":e.toLowerCase()}function aw(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 kC(e,t){if(t.comment&&e.type===ae.Comment)return!0;if(e.type===ae.Element){if(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"&&Pp(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Te(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Te(e.attributes.name)==="application-name"||Te(e.attributes.rel)==="icon"||Te(e.attributes.rel)==="apple-touch-icon"||Te(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Te(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Te(e.attributes.property).match(/^(og|twitter|fb):/)||Te(e.attributes.name).match(/^(og|twitter):/)||Te(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Te(e.attributes.name)==="robots"||Te(e.attributes.name)==="googlebot"||Te(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Te(e.attributes.name)==="author"||Te(e.attributes.name)==="generator"||Te(e.attributes.name)==="framework"||Te(e.attributes.name)==="publisher"||Te(e.attributes.name)==="progid"||Te(e.attributes.property).match(/^article:/)||Te(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Te(e.attributes.name)==="google-site-verification"||Te(e.attributes.name)==="yandex-verification"||Te(e.attributes.name)==="csrf-token"||Te(e.attributes.name)==="p:domain_verify"||Te(e.attributes.name)==="verify-v1"||Te(e.attributes.name)==="verification"||Te(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ya(e,t){let{doc:r,mirror:n,blockClass:a,blockSelector:o,maskTextClass:s,maskTextSelector:l,skipChild:i=!1,inlineStylesheet:d=!0,maskInputOptions:u={},maskTextFn:p,maskInputFn:c,slimDOMOptions:f,dataURLOptions:h={},inlineImages:m=!1,recordCanvas:y=!1,onSerialize:g,onIframeLoad:x,iframeLoadTimeout:v=5e3,onStylesheetLoad:S,stylesheetLoadTimeout:b=5e3,keepIframeSrcFn:w=()=>!1,newlyAddedElement:C=!1,cssCaptured:L=!1}=t,{needsMask:k}=t,{preserveWhiteSpace:_=!0}=t;k||(k=nw(e,s,l,k===void 0));let N=bC(e,{doc:r,mirror:n,blockClass:a,blockSelector:o,needsMask:k,inlineStylesheet:d,maskInputOptions:u,maskTextFn:p,maskInputFn:c,dataURLOptions:h,inlineImages:m,recordCanvas:y,keepIframeSrcFn:w,newlyAddedElement:C,cssCaptured:L});if(!N)return console.warn(e,"not serialized"),null;let P;n.hasNode(e)?P=n.getId(e):kC(N,f)||!_&&N.type===ae.Text&&!N.textContent.replace(/^\s+|\s+$/gm,"").length?P=ps:P=ew();let I=Object.assign(N,{id:P});if(n.add(e,I),P===ps)return null;g&&g(e);let re=!i;if(I.type===ae.Element){re=re&&!I.needBlock,delete I.needBlock;let se=xt.shadowRoot(e);se&&is(se)&&(I.isShadowHost=!0)}if((I.type===ae.Document||I.type===ae.Element)&&re){f.headWhitespace&&I.type===ae.Element&&I.tagName==="head"&&(_=!1);let se={doc:r,mirror:n,blockClass:a,blockSelector:o,needsMask:k,maskTextClass:s,maskTextSelector:l,skipChild:i,inlineStylesheet:d,maskInputOptions:u,maskTextFn:p,maskInputFn:c,slimDOMOptions:f,dataURLOptions:h,inlineImages:m,recordCanvas:y,preserveWhiteSpace:_,onSerialize:g,onIframeLoad:x,iframeLoadTimeout:v,onStylesheetLoad:S,stylesheetLoadTimeout:b,keepIframeSrcFn:w,cssCaptured:!1};if(!(I.type===ae.Element&&I.tagName==="textarea"&&I.attributes.value!==void 0)){I.type===ae.Element&&I.attributes._cssText!==void 0&&typeof I.attributes._cssText=="string"&&(se.cssCaptured=!0);for(let ve of Array.from(xt.childNodes(e))){let Me=Ya(ve,se);Me&&I.childNodes.push(Me)}}let j=null;if(Np(e)&&(j=xt.shadowRoot(e)))for(let ve of Array.from(xt.childNodes(j))){let Me=Ya(ve,se);Me&&(is(j)&&(Me.isShadow=!0),I.childNodes.push(Me))}}let _e=xt.parentNode(e);return _e&&ls(_e)&&is(_e)&&(I.isShadow=!0),I.type===ae.Element&&I.tagName==="iframe"&&yC(e,()=>{let se=e.contentDocument;if(se&&x){let j=Ya(se,{doc:se,mirror:n,blockClass:a,blockSelector:o,needsMask:k,maskTextClass:s,maskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:u,maskTextFn:p,maskInputFn:c,slimDOMOptions:f,dataURLOptions:h,inlineImages:m,recordCanvas:y,preserveWhiteSpace:_,onSerialize:g,onIframeLoad:x,iframeLoadTimeout:v,onStylesheetLoad:S,stylesheetLoadTimeout:b,keepIframeSrcFn:w});j&&x(e,j)}},v),I.type===ae.Element&&I.tagName==="link"&&typeof I.attributes.rel=="string"&&(I.attributes.rel==="stylesheet"||I.attributes.rel==="preload"&&typeof I.attributes.href=="string"&&Pp(I.attributes.href)==="css")&&wC(e,()=>{if(S){let se=Ya(e,{doc:r,mirror:n,blockClass:a,blockSelector:o,needsMask:k,maskTextClass:s,maskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:u,maskTextFn:p,maskInputFn:c,slimDOMOptions:f,dataURLOptions:h,inlineImages:m,recordCanvas:y,preserveWhiteSpace:_,onSerialize:g,onIframeLoad:x,iframeLoadTimeout:v,onStylesheetLoad:S,stylesheetLoadTimeout:b,keepIframeSrcFn:w});se&&S(e,se)}},b),I}function IC(e,t){let{mirror:r=new fs,blockClass:n="rr-block",blockSelector:a=null,maskTextClass:o="rr-mask",maskTextSelector:s=null,inlineStylesheet:l=!0,inlineImages:i=!1,recordCanvas:d=!1,maskAllInputs:u=!1,maskTextFn:p,maskInputFn:c,slimDOM:f=!1,dataURLOptions:h,preserveWhiteSpace:m,onSerialize:y,onIframeLoad:g,iframeLoadTimeout:x,onStylesheetLoad:v,stylesheetLoadTimeout:S,keepIframeSrcFn:b=()=>!1}=t,w=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,C=aw(f);return Ya(e,{doc:e,mirror:r,blockClass:n,blockSelector:a,maskTextClass:o,maskTextSelector:s,skipChild:!1,inlineStylesheet:l,maskInputOptions:w,maskTextFn:p,maskInputFn:c,slimDOMOptions:C,dataURLOptions:h,inlineImages:i,recordCanvas:d,preserveWhiteSpace:m,onSerialize:y,onIframeLoad:g,iframeLoadTimeout:x,onStylesheetLoad:v,stylesheetLoadTimeout:S,keepIframeSrcFn:b,newlyAddedElement:!1})}var _C=/(max|min)-device-(width|height)/,gv=new RegExp(_C.source,"g"),MC={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(gv)&&(e.params=e.params.replace(gv,"$1-$2"))}}}},RC={postcssPlugin:"postcss-hover-classes",prepare:function(){let e=[];return{Rule:function(t){e.indexOf(t)===-1&&(e.push(t),t.selectors.forEach(function(r){r.includes(":hover")&&(t.selector+=`,
|
|
9
|
+
`+r.replace(/:hover/g,".\\:hover"))}))}}}};function EC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function NC(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var Ci={exports:{}},xv;function PC(){if(xv)return Ci.exports;xv=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 Ci.exports=t(),Ci.exports.createColors=t,Ci.exports}var TC={},AC=Object.freeze(Object.defineProperty({__proto__:null,default:TC},Symbol.toStringTag,{value:"Module"})),vr=NC(AC),Zc,vv;function Ap(){if(vv)return Zc;vv=1;let e=PC(),t=vr;class r extends Error{constructor(a,o,s,l,i,d){super(a),this.name="CssSyntaxError",this.reason=a,i&&(this.file=i),l&&(this.source=l),d&&(this.plugin=d),typeof o<"u"&&typeof s<"u"&&(typeof o=="number"?(this.line=o,this.column=s):(this.line=o.line,this.column=o.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(a){if(!this.source)return"";let o=this.source;a==null&&(a=e.isColorSupported),t&&a&&(o=t(o));let s=o.split(/\r?\n/),l=Math.max(this.line-3,0),i=Math.min(this.line+2,s.length),d=String(i).length,u,p;if(a){let{bold:c,gray:f,red:h}=e.createColors(!0);u=m=>c(h(m)),p=m=>f(m)}else u=p=c=>c;return s.slice(l,i).map((c,f)=>{let h=l+1+f,m=" "+(" "+h).slice(-d)+" | ";if(h===this.line){let y=p(m.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+p(m)+c+`
|
|
10
|
+
`+y+u("^")}return" "+p(m)+c}).join(`
|
|
11
|
+
`)}toString(){let a=this.showSourceCode();return a&&(a=`
|
|
12
12
|
|
|
13
|
-
`+
|
|
14
|
-
`),this.name+": "+this.message+
|
|
13
|
+
`+a+`
|
|
14
|
+
`),this.name+": "+this.message+a}}return Zc=r,r.default=r,Zc}var Li={},yv;function Dp(){return yv||(yv=1,Li.isClean=Symbol("isClean"),Li.my=Symbol("my")),Li}var ef,wv;function ow(){if(wv)return ef;wv=1;let e={after:`
|
|
15
15
|
`,beforeClose:`
|
|
16
16
|
`,beforeComment:`
|
|
17
17
|
`,beforeDecl:`
|
|
18
18
|
`,beforeOpen:" ",beforeRule:`
|
|
19
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(
|
|
20
|
-
`)){let d=this.raw(
|
|
21
|
-
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(
|
|
22
|
-
`)&&(
|
|
23
|
-
`)&&(
|
|
24
|
-
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(
|
|
25
|
-
`);return o=
|
|
26
|
-
`?(
|
|
27
|
-
`);g=new Array(v.length);let
|
|
19
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(n){return n[0].toUpperCase()+n.slice(1)}class r{constructor(a){this.builder=a}atrule(a,o){let s="@"+a.name,l=a.params?this.rawValue(a,"params"):"";if(typeof a.raws.afterName<"u"?s+=a.raws.afterName:l&&(s+=" "),a.nodes)this.block(a,s+l);else{let i=(a.raws.between||"")+(o?";":"");this.builder(s+l+i,a)}}beforeAfter(a,o){let s;a.type==="decl"?s=this.raw(a,null,"beforeDecl"):a.type==="comment"?s=this.raw(a,null,"beforeComment"):o==="before"?s=this.raw(a,null,"beforeRule"):s=this.raw(a,null,"beforeClose");let l=a.parent,i=0;for(;l&&l.type!=="root";)i+=1,l=l.parent;if(s.includes(`
|
|
20
|
+
`)){let d=this.raw(a,null,"indent");if(d.length)for(let u=0;u<i;u++)s+=d}return s}block(a,o){let s=this.raw(a,"between","beforeOpen");this.builder(o+s+"{",a,"start");let l;a.nodes&&a.nodes.length?(this.body(a),l=this.raw(a,"after")):l=this.raw(a,"after","emptyBody"),l&&this.builder(l),this.builder("}",a,"end")}body(a){let o=a.nodes.length-1;for(;o>0&&a.nodes[o].type==="comment";)o-=1;let s=this.raw(a,"semicolon");for(let l=0;l<a.nodes.length;l++){let i=a.nodes[l],d=this.raw(i,"before");d&&this.builder(d),this.stringify(i,o!==l||s)}}comment(a){let o=this.raw(a,"left","commentLeft"),s=this.raw(a,"right","commentRight");this.builder("/*"+o+a.text+s+"*/",a)}decl(a,o){let s=this.raw(a,"between","colon"),l=a.prop+s+this.rawValue(a,"value");a.important&&(l+=a.raws.important||" !important"),o&&(l+=";"),this.builder(l,a)}document(a){this.body(a)}raw(a,o,s){let l;if(s||(s=o),o&&(l=a.raws[o],typeof l<"u"))return l;let i=a.parent;if(s==="before"&&(!i||i.type==="root"&&i.first===a||i&&i.type==="document"))return"";if(!i)return e[s];let d=a.root();if(d.rawCache||(d.rawCache={}),typeof d.rawCache[s]<"u")return d.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(a,s);{let u="raw"+t(s);this[u]?l=this[u](d,a):d.walk(p=>{if(l=p.raws[o],typeof l<"u")return!1})}return typeof l>"u"&&(l=e[s]),d.rawCache[s]=l,l}rawBeforeClose(a){let o;return a.walk(s=>{if(s.nodes&&s.nodes.length>0&&typeof s.raws.after<"u")return o=s.raws.after,o.includes(`
|
|
21
|
+
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(a,o){let s;return a.walkComments(l=>{if(typeof l.raws.before<"u")return s=l.raws.before,s.includes(`
|
|
22
|
+
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(o,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(a,o){let s;return a.walkDecls(l=>{if(typeof l.raws.before<"u")return s=l.raws.before,s.includes(`
|
|
23
|
+
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(o,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(a){let o;return a.walk(s=>{if(s.type!=="decl"&&(o=s.raws.between,typeof o<"u"))return!1}),o}rawBeforeRule(a){let o;return a.walk(s=>{if(s.nodes&&(s.parent!==a||a.first!==s)&&typeof s.raws.before<"u")return o=s.raws.before,o.includes(`
|
|
24
|
+
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(a){let o;return a.walkDecls(s=>{if(typeof s.raws.between<"u")return o=s.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(a){let o;return a.walk(s=>{if(s.nodes&&s.nodes.length===0&&(o=s.raws.after,typeof o<"u"))return!1}),o}rawIndent(a){if(a.raws.indent)return a.raws.indent;let o;return a.walk(s=>{let l=s.parent;if(l&&l!==a&&l.parent&&l.parent===a&&typeof s.raws.before<"u"){let i=s.raws.before.split(`
|
|
25
|
+
`);return o=i[i.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(a){let o;return a.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(o=s.raws.semicolon,typeof o<"u"))return!1}),o}rawValue(a,o){let s=a[o],l=a.raws[o];return l&&l.value===s?l.raw:s}root(a){this.body(a),a.raws.after&&this.builder(a.raws.after)}rule(a){this.block(a,this.rawValue(a,"selector")),a.raws.ownSemicolon&&this.builder(a.raws.ownSemicolon,a,"end")}stringify(a,o){if(!this[a.type])throw new Error("Unknown AST node type "+a.type+". Maybe you need to change PostCSS stringifier.");this[a.type](a,o)}}return ef=r,r.default=r,ef}var tf,bv;function Ki(){if(bv)return tf;bv=1;let e=ow();function t(r,n){new e(n).stringify(r)}return tf=t,t.default=t,tf}var rf,Sv;function Qi(){if(Sv)return rf;Sv=1;let{isClean:e,my:t}=Dp(),r=Ap(),n=ow(),a=Ki();function o(l,i){let d=new l.constructor;for(let u in l){if(!Object.prototype.hasOwnProperty.call(l,u)||u==="proxyCache")continue;let p=l[u],c=typeof p;u==="parent"&&c==="object"?i&&(d[u]=i):u==="source"?d[u]=p:Array.isArray(p)?d[u]=p.map(f=>o(f,d)):(c==="object"&&p!==null&&(p=o(p)),d[u]=p)}return d}class s{constructor(i={}){this.raws={},this[e]=!1,this[t]=!0;for(let d in i)if(d==="nodes"){this.nodes=[];for(let u of i[d])typeof u.clone=="function"?this.append(u.clone()):this.append(u)}else this[d]=i[d]}addToError(i){if(i.postcssNode=this,i.stack&&this.source&&/\n\s{4}at /.test(i.stack)){let d=this.source;i.stack=i.stack.replace(/\n\s{4}at /,`$&${d.input.from}:${d.start.line}:${d.start.column}$&`)}return i}after(i){return this.parent.insertAfter(this,i),this}assign(i={}){for(let d in i)this[d]=i[d];return this}before(i){return this.parent.insertBefore(this,i),this}cleanRaws(i){delete this.raws.before,delete this.raws.after,i||delete this.raws.between}clone(i={}){let d=o(this);for(let u in i)d[u]=i[u];return d}cloneAfter(i={}){let d=this.clone(i);return this.parent.insertAfter(this,d),d}cloneBefore(i={}){let d=this.clone(i);return this.parent.insertBefore(this,d),d}error(i,d={}){if(this.source){let{end:u,start:p}=this.rangeBy(d);return this.source.input.error(i,{column:p.column,line:p.line},{column:u.column,line:u.line},d)}return new r(i)}getProxyProcessor(){return{get(i,d){return d==="proxyOf"?i:d==="root"?()=>i.root().toProxy():i[d]},set(i,d,u){return i[d]===u||(i[d]=u,(d==="prop"||d==="value"||d==="name"||d==="params"||d==="important"||d==="text")&&i.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let i=this;for(;i=i.parent;)i[e]=!1}}next(){if(!this.parent)return;let i=this.parent.index(this);return this.parent.nodes[i+1]}positionBy(i,d){let u=this.source.start;if(i.index)u=this.positionInside(i.index,d);else if(i.word){d=this.toString();let p=d.indexOf(i.word);p!==-1&&(u=this.positionInside(p,d))}return u}positionInside(i,d){let u=d||this.toString(),p=this.source.start.column,c=this.source.start.line;for(let f=0;f<i;f++)u[f]===`
|
|
26
|
+
`?(p=1,c+=1):p+=1;return{column:p,line:c}}prev(){if(!this.parent)return;let i=this.parent.index(this);return this.parent.nodes[i-1]}rangeBy(i){let d={column:this.source.start.column,line:this.source.start.line},u=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:d.column+1,line:d.line};if(i.word){let p=this.toString(),c=p.indexOf(i.word);c!==-1&&(d=this.positionInside(c,p),u=this.positionInside(c+i.word.length,p))}else i.start?d={column:i.start.column,line:i.start.line}:i.index&&(d=this.positionInside(i.index)),i.end?u={column:i.end.column,line:i.end.line}:typeof i.endIndex=="number"?u=this.positionInside(i.endIndex):i.index&&(u=this.positionInside(i.index+1));return(u.line<d.line||u.line===d.line&&u.column<=d.column)&&(u={column:d.column+1,line:d.line}),{end:u,start:d}}raw(i,d){return new n().raw(this,i,d)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...i){if(this.parent){let d=this,u=!1;for(let p of i)p===this?u=!0:u?(this.parent.insertAfter(d,p),d=p):this.parent.insertBefore(d,p);u||this.remove()}return this}root(){let i=this;for(;i.parent&&i.parent.type!=="document";)i=i.parent;return i}toJSON(i,d){let u={},p=d==null;d=d||new Map;let c=0;for(let f in this){if(!Object.prototype.hasOwnProperty.call(this,f)||f==="parent"||f==="proxyCache")continue;let h=this[f];if(Array.isArray(h))u[f]=h.map(m=>typeof m=="object"&&m.toJSON?m.toJSON(null,d):m);else if(typeof h=="object"&&h.toJSON)u[f]=h.toJSON(null,d);else if(f==="source"){let m=d.get(h.input);m==null&&(m=c,d.set(h.input,c),c++),u[f]={end:h.end,inputId:m,start:h.start}}else u[f]=h}return p&&(u.inputs=[...d.keys()].map(f=>f.toJSON())),u}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(i=a){i.stringify&&(i=i.stringify);let d="";return i(this,u=>{d+=u}),d}warn(i,d,u){let p={node:this};for(let c in u)p[c]=u[c];return i.warn(d,p)}get proxyOf(){return this}}return rf=s,s.default=s,rf}var nf,Cv;function Yi(){if(Cv)return nf;Cv=1;let e=Qi();class t extends e{constructor(n){n&&typeof n.value<"u"&&typeof n.value!="string"&&(n={...n,value:String(n.value)}),super(n),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return nf=t,t.default=t,nf}var af,Lv;function DC(){if(Lv)return af;Lv=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return af={nanoid:(n=21)=>{let a="",o=n;for(;o--;)a+=e[Math.random()*64|0];return a},customAlphabet:(n,a=21)=>(o=a)=>{let s="",l=o;for(;l--;)s+=n[Math.random()*n.length|0];return s}},af}var of,kv;function sw(){if(kv)return of;kv=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=vr,{existsSync:r,readFileSync:n}=vr,{dirname:a,join:o}=vr;function s(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}class l{constructor(d,u){if(u.map===!1)return;this.loadAnnotation(d),this.inline=this.startWith(this.annotation,"data:");let p=u.map?u.map.prev:void 0,c=this.loadMap(u.from,p);!this.mapFile&&u.from&&(this.mapFile=u.from),this.mapFile&&(this.root=a(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(d){let u=/^data:application\/json;charset=utf-?8;base64,/,p=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,f=/^data:application\/json,/;if(c.test(d)||f.test(d))return decodeURIComponent(d.substr(RegExp.lastMatch.length));if(u.test(d)||p.test(d))return s(d.substr(RegExp.lastMatch.length));let h=d.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+h)}getAnnotationURL(d){return d.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(d){return typeof d!="object"?!1:typeof d.mappings=="string"||typeof d._mappings=="string"||Array.isArray(d.sections)}loadAnnotation(d){let u=d.match(/\/\*\s*# sourceMappingURL=/gm);if(!u)return;let p=d.lastIndexOf(u.pop()),c=d.indexOf("*/",p);p>-1&&c>-1&&(this.annotation=this.getAnnotationURL(d.substring(p,c)))}loadFile(d){if(this.root=a(d),r(d))return this.mapFile=d,n(d,"utf-8").toString().trim()}loadMap(d,u){if(u===!1)return!1;if(u){if(typeof u=="string")return u;if(typeof u=="function"){let p=u(d);if(p){let c=this.loadFile(p);if(!c)throw new Error("Unable to load previous source map: "+p.toString());return c}}else{if(u instanceof e)return t.fromSourceMap(u).toString();if(u instanceof t)return u.toString();if(this.isMap(u))return JSON.stringify(u);throw new Error("Unsupported previous source map format: "+u.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let p=this.annotation;return d&&(p=o(a(d),p)),this.loadFile(p)}}}startWith(d,u){return d?d.substr(0,u.length)===u:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return of=l,l.default=l,of}var sf,Iv;function Ji(){if(Iv)return sf;Iv=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=vr,{fileURLToPath:r,pathToFileURL:n}=vr,{isAbsolute:a,resolve:o}=vr,{nanoid:s}=DC(),l=vr,i=Ap(),d=sw(),u=Symbol("fromOffsetCache"),p=!!(e&&t),c=!!(o&&a);class f{constructor(m,y={}){if(m===null||typeof m>"u"||typeof m=="object"&&!m.toString)throw new Error(`PostCSS received ${m} instead of CSS string`);if(this.css=m.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,y.from&&(!c||/^\w+:\/\//.test(y.from)||a(y.from)?this.file=y.from:this.file=o(y.from)),c&&p){let g=new d(this.css,y);if(g.text){this.map=g;let x=g.consumer().file;!this.file&&x&&(this.file=this.mapResolve(x))}}this.file||(this.id="<input css "+s(6)+">"),this.map&&(this.map.file=this.from)}error(m,y,g,x={}){let v,S,b;if(y&&typeof y=="object"){let C=y,L=g;if(typeof C.offset=="number"){let k=this.fromOffset(C.offset);y=k.line,g=k.col}else y=C.line,g=C.column;if(typeof L.offset=="number"){let k=this.fromOffset(L.offset);S=k.line,b=k.col}else S=L.line,b=L.column}else if(!g){let C=this.fromOffset(y);y=C.line,g=C.col}let w=this.origin(y,g,S,b);return w?v=new i(m,w.endLine===void 0?w.line:{column:w.column,line:w.line},w.endLine===void 0?w.column:{column:w.endColumn,line:w.endLine},w.source,w.file,x.plugin):v=new i(m,S===void 0?y:{column:g,line:y},S===void 0?g:{column:b,line:S},this.css,this.file,x.plugin),v.input={column:g,endColumn:b,endLine:S,line:y,source:this.css},this.file&&(n&&(v.input.url=n(this.file).toString()),v.input.file=this.file),v}fromOffset(m){let y,g;if(this[u])g=this[u];else{let v=this.css.split(`
|
|
27
|
+
`);g=new Array(v.length);let S=0;for(let b=0,w=v.length;b<w;b++)g[b]=S,S+=v[b].length+1;this[u]=g}y=g[g.length-1];let x=0;if(m>=y)x=g.length-1;else{let v=g.length-2,S;for(;x<v;)if(S=x+(v-x>>1),m<g[S])v=S-1;else if(m>=g[S+1])x=S+1;else{x=S;break}}return{col:m-g[x]+1,line:x+1}}mapResolve(m){return/^\w+:\/\//.test(m)?m:o(this.map.consumer().sourceRoot||this.map.root||".",m)}origin(m,y,g,x){if(!this.map)return!1;let v=this.map.consumer(),S=v.originalPositionFor({column:y,line:m});if(!S.source)return!1;let b;typeof g=="number"&&(b=v.originalPositionFor({column:x,line:g}));let w;a(S.source)?w=n(S.source):w=new URL(S.source,this.map.consumer().sourceRoot||n(this.map.mapFile));let C={column:S.column,endColumn:b&&b.column,endLine:b&&b.line,line:S.line,url:w.toString()};if(w.protocol==="file:")if(r)C.file=r(w);else throw new Error("file: protocol is not available in this PostCSS build");let L=v.sourceContentFor(S.source);return L&&(C.source=L),C}toJSON(){let m={};for(let y of["hasBOM","css","file","id"])this[y]!=null&&(m[y]=this[y]);return this.map&&(m.map={...this.map},m.map.consumerCache&&(m.map.consumerCache=void 0)),m}get from(){return this.file||this.id}}return sf=f,f.default=f,l&&l.registerInput&&l.registerInput(f),sf}var lf,_v;function lw(){if(_v)return lf;_v=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=vr,{dirname:r,relative:n,resolve:a,sep:o}=vr,{pathToFileURL:s}=vr,l=Ji(),i=!!(e&&t),d=!!(r&&a&&n&&o);class u{constructor(c,f,h,m){this.stringify=c,this.mapOpts=h.map||{},this.root=f,this.opts=h,this.css=m,this.originalCSS=m,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let f=`
|
|
28
28
|
`;this.css.includes(`\r
|
|
29
|
-
`)&&(
|
|
30
|
-
`),this.css+=
|
|
31
|
-
`),p=x.length-g):p+=x.length,v&&b!=="start"){let w=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==w.last||w.raws.semicolon)&&(v.source&&v.source.end?(m.source=this.sourcePath(v),m.original.line=v.source.end.line,m.original.column=v.source.end.column-1,m.generated.line=c,m.generated.column=p-2,this.map.addMapping(m)):(m.source=h,m.original.line=1,m.original.column=0,m.generated.line=c,m.generated.column=p-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!0?!1:this.previous().length?this.previous().some(p=>p.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let p=this.memoizedPaths.get(c);if(p)return p;let h=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(h=r(n(h,this.mapOpts.annotation)));let m=a(h,c);return this.memoizedPaths.set(c,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let p=c.source.input.map;this.previousMaps.includes(p)||this.previousMaps.push(p)}});else{let c=new s(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(p=>{if(p.source){let h=p.source.input.from;if(h&&!c[h]){c[h]=!0;let m=this.usesFileUrls?this.toFileUrl(h):this.toUrl(this.path(h));this.map.setSourceContent(m,p.source.input.css)}}});else if(this.css){let p=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(p,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let p=this.memoizedFileURLs.get(c);if(p)return p;if(i){let h=i(c).toString();return this.memoizedFileURLs.set(c,h),h}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let p=this.memoizedURLs.get(c);if(p)return p;o==="\\"&&(c=c.replace(/\\/g,"/"));let h=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,h),h}}return tf=u,tf}var rf,wv;function Kl(){if(wv)return rf;wv=1;let e=Vl();class t extends e{constructor(a){super(a),this.type="comment"}}return rf=t,t.default=t,rf}var af,Sv;function ja(){if(Sv)return af;Sv=1;let{isClean:e,my:t}=Rp(),r=Gl(),a=Kl(),n=Vl(),o,i,s,l;function d(c){return c.map(p=>(p.nodes&&(p.nodes=d(p.nodes)),delete p.source,p))}function u(c){if(c[e]=!1,c.proxyOf.nodes)for(let p of c.proxyOf.nodes)u(p)}class f extends n{append(...p){for(let h of p){let m=this.normalize(h,this.last);for(let S of m)this.proxyOf.nodes.push(S)}return this.markDirty(),this}cleanRaws(p){if(super.cleanRaws(p),this.nodes)for(let h of this.nodes)h.cleanRaws(p)}each(p){if(!this.proxyOf.nodes)return;let h=this.getIterator(),m,S;for(;this.indexes[h]<this.proxyOf.nodes.length&&(m=this.indexes[h],S=p(this.proxyOf.nodes[m],m),S!==!1);)this.indexes[h]+=1;return delete this.indexes[h],S}every(p){return this.nodes.every(p)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let p=this.lastEach;return this.indexes[p]=0,p}getProxyProcessor(){return{get(p,h){return h==="proxyOf"?p:p[h]?h==="each"||typeof h=="string"&&h.startsWith("walk")?(...m)=>p[h](...m.map(S=>typeof S=="function"?(g,x)=>S(g.toProxy(),x):S)):h==="every"||h==="some"?m=>p[h]((S,...g)=>m(S.toProxy(),...g)):h==="root"?()=>p.root().toProxy():h==="nodes"?p.nodes.map(m=>m.toProxy()):h==="first"||h==="last"?p[h].toProxy():p[h]:p[h]},set(p,h,m){return p[h]===m||(p[h]=m,(h==="name"||h==="params"||h==="selector")&&p.markDirty()),!0}}}index(p){return typeof p=="number"?p:(p.proxyOf&&(p=p.proxyOf),this.proxyOf.nodes.indexOf(p))}insertAfter(p,h){let m=this.index(p),S=this.normalize(h,this.proxyOf.nodes[m]).reverse();m=this.index(p);for(let x of S)this.proxyOf.nodes.splice(m+1,0,x);let g;for(let x in this.indexes)g=this.indexes[x],m<g&&(this.indexes[x]=g+S.length);return this.markDirty(),this}insertBefore(p,h){let m=this.index(p),S=m===0?"prepend":!1,g=this.normalize(h,this.proxyOf.nodes[m],S).reverse();m=this.index(p);for(let v of g)this.proxyOf.nodes.splice(m,0,v);let x;for(let v in this.indexes)x=this.indexes[v],m<=x&&(this.indexes[v]=x+g.length);return this.markDirty(),this}normalize(p,h){if(typeof p=="string")p=d(o(p).nodes);else if(typeof p>"u")p=[];else if(Array.isArray(p)){p=p.slice(0);for(let S of p)S.parent&&S.parent.removeChild(S,"ignore")}else if(p.type==="root"&&this.type!=="document"){p=p.nodes.slice(0);for(let S of p)S.parent&&S.parent.removeChild(S,"ignore")}else if(p.type)p=[p];else if(p.prop){if(typeof p.value>"u")throw new Error("Value field is missed in node creation");typeof p.value!="string"&&(p.value=String(p.value)),p=[new r(p)]}else if(p.selector)p=[new i(p)];else if(p.name)p=[new s(p)];else if(p.text)p=[new a(p)];else throw new Error("Unknown node type in node creation");return p.map(S=>(S[t]||f.rebuild(S),S=S.proxyOf,S.parent&&S.parent.removeChild(S),S[e]&&u(S),typeof S.raws.before>"u"&&h&&typeof h.raws.before<"u"&&(S.raws.before=h.raws.before.replace(/\S/g,"")),S.parent=this.proxyOf,S))}prepend(...p){p=p.reverse();for(let h of p){let m=this.normalize(h,this.first,"prepend").reverse();for(let S of m)this.proxyOf.nodes.unshift(S);for(let S in this.indexes)this.indexes[S]=this.indexes[S]+m.length}return this.markDirty(),this}push(p){return p.parent=this,this.proxyOf.nodes.push(p),this}removeAll(){for(let p of this.proxyOf.nodes)p.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(p){p=this.index(p),this.proxyOf.nodes[p].parent=void 0,this.proxyOf.nodes.splice(p,1);let h;for(let m in this.indexes)h=this.indexes[m],h>=p&&(this.indexes[m]=h-1);return this.markDirty(),this}replaceValues(p,h,m){return m||(m=h,h={}),this.walkDecls(S=>{h.props&&!h.props.includes(S.prop)||h.fast&&!S.value.includes(h.fast)||(S.value=S.value.replace(p,m))}),this.markDirty(),this}some(p){return this.nodes.some(p)}walk(p){return this.each((h,m)=>{let S;try{S=p(h,m)}catch(g){throw h.addToError(g)}return S!==!1&&h.walk&&(S=h.walk(p)),S})}walkAtRules(p,h){return h?p instanceof RegExp?this.walk((m,S)=>{if(m.type==="atrule"&&p.test(m.name))return h(m,S)}):this.walk((m,S)=>{if(m.type==="atrule"&&m.name===p)return h(m,S)}):(h=p,this.walk((m,S)=>{if(m.type==="atrule")return h(m,S)}))}walkComments(p){return this.walk((h,m)=>{if(h.type==="comment")return p(h,m)})}walkDecls(p,h){return h?p instanceof RegExp?this.walk((m,S)=>{if(m.type==="decl"&&p.test(m.prop))return h(m,S)}):this.walk((m,S)=>{if(m.type==="decl"&&m.prop===p)return h(m,S)}):(h=p,this.walk((m,S)=>{if(m.type==="decl")return h(m,S)}))}walkRules(p,h){return h?p instanceof RegExp?this.walk((m,S)=>{if(m.type==="rule"&&p.test(m.selector))return h(m,S)}):this.walk((m,S)=>{if(m.type==="rule"&&m.selector===p)return h(m,S)}):(h=p,this.walk((m,S)=>{if(m.type==="rule")return h(m,S)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return f.registerParse=c=>{o=c},f.registerRule=c=>{i=c},f.registerAtRule=c=>{s=c},f.registerRoot=c=>{l=c},af=f,f.default=f,f.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,s.prototype):c.type==="rule"?Object.setPrototypeOf(c,i.prototype):c.type==="decl"?Object.setPrototypeOf(c,r.prototype):c.type==="comment"?Object.setPrototypeOf(c,a.prototype):c.type==="root"&&Object.setPrototypeOf(c,l.prototype),c[t]=!0,c.nodes&&c.nodes.forEach(p=>{f.rebuild(p)})},af}var nf,bv;function Ep(){if(bv)return nf;bv=1;let e=ja(),t,r;class a extends e{constructor(o){super({type:"document",...o}),this.nodes||(this.nodes=[])}toResult(o={}){return new t(new r,this,o).stringify()}}return a.registerLazyResult=n=>{t=n},a.registerProcessor=n=>{r=n},nf=a,a.default=a,nf}var of,Cv;function ew(){if(Cv)return of;Cv=1;let e={};return of=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},of}var sf,Lv;function tw(){if(Lv)return sf;Lv=1;class e{constructor(r,a={}){if(this.type="warning",this.text=r,a.node&&a.node.source){let n=a.node.rangeBy(a);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in a)this[n]=a[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return sf=e,e.default=e,sf}var lf,kv;function Pp(){if(kv)return lf;kv=1;let e=tw();class t{constructor(a,n,o){this.processor=a,this.messages=[],this.root=n,this.opts=o,this.css=void 0,this.map=void 0}toString(){return this.css}warn(a,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let o=new e(a,n);return this.messages.push(o),o}warnings(){return this.messages.filter(a=>a.type==="warning")}get content(){return this.css}}return lf=t,t.default=t,lf}var uf,Iv;function _L(){if(Iv)return uf;Iv=1;let e=39,t=34,r=92,a=47,n=10,o=32,i=12,s=9,l=13,d=91,u=93,f=40,c=41,p=123,h=125,m=59,S=42,g=58,x=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,b=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return uf=function(C,M={}){let I=C.css.valueOf(),D=M.ignoreErrors,A,k,ke,Ie,ue,j,Se,ze,be,we,wr=I.length,E=0,vt=[],yt=[];function Ia(){return E}function Qe(X){throw C.error("Unclosed "+X,E)}function it(){return yt.length===0&&E>=wr}function Sr(X){if(yt.length)return yt.pop();if(E>=wr)return;let _e=X?X.ignoreUnclosed:!1;switch(A=I.charCodeAt(E),A){case n:case o:case s:case l:case i:{k=E;do k+=1,A=I.charCodeAt(k);while(A===o||A===n||A===s||A===l||A===i);we=["space",I.slice(E,k)],E=k-1;break}case d:case u:case p:case h:case g:case m:case c:{let se=String.fromCharCode(A);we=[se,se,E];break}case f:{if(ze=vt.length?vt.pop()[1]:"",be=I.charCodeAt(E+1),ze==="url"&&be!==e&&be!==t&&be!==o&&be!==n&&be!==s&&be!==i&&be!==l){k=E;do{if(j=!1,k=I.indexOf(")",k+1),k===-1)if(D||_e){k=E;break}else Qe("bracket");for(Se=k;I.charCodeAt(Se-1)===r;)Se-=1,j=!j}while(j);we=["brackets",I.slice(E,k+1),E,k],E=k}else k=I.indexOf(")",E+1),Ie=I.slice(E,k+1),k===-1||w.test(Ie)?we=["(","(",E]:(we=["brackets",Ie,E,k],E=k);break}case e:case t:{ke=A===e?"'":'"',k=E;do{if(j=!1,k=I.indexOf(ke,k+1),k===-1)if(D||_e){k=E+1;break}else Qe("string");for(Se=k;I.charCodeAt(Se-1)===r;)Se-=1,j=!j}while(j);we=["string",I.slice(E,k+1),E,k],E=k;break}case x:{v.lastIndex=E+1,v.test(I),v.lastIndex===0?k=I.length-1:k=v.lastIndex-2,we=["at-word",I.slice(E,k+1),E,k],E=k;break}case r:{for(k=E,ue=!0;I.charCodeAt(k+1)===r;)k+=1,ue=!ue;if(A=I.charCodeAt(k+1),ue&&A!==a&&A!==o&&A!==n&&A!==s&&A!==l&&A!==i&&(k+=1,y.test(I.charAt(k)))){for(;y.test(I.charAt(k+1));)k+=1;I.charCodeAt(k+1)===o&&(k+=1)}we=["word",I.slice(E,k+1),E,k],E=k;break}default:{A===a&&I.charCodeAt(E+1)===S?(k=I.indexOf("*/",E+2)+1,k===0&&(D||_e?k=I.length:Qe("comment")),we=["comment",I.slice(E,k+1),E,k],E=k):(b.lastIndex=E+1,b.test(I),b.lastIndex===0?k=I.length-1:k=b.lastIndex-2,we=["word",I.slice(E,k+1),E,k],vt.push(we),E=k);break}}return E++,we}function br(X){yt.push(X)}return{back:br,endOfFile:it,nextToken:Sr,position:Ia}},uf}var df,Mv;function Tp(){if(Mv)return df;Mv=1;let e=ja();class t extends e{constructor(a){super(a),this.type="atrule"}append(...a){return this.proxyOf.nodes||(this.nodes=[]),super.append(...a)}prepend(...a){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...a)}}return df=t,t.default=t,e.registerAtRule(t),df}var cf,_v;function fs(){if(_v)return cf;_v=1;let e=ja(),t,r;class a extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,i,s){let l=super.normalize(o);if(i){if(s==="prepend")this.nodes.length>1?i.raws.before=this.nodes[1].raws.before:delete i.raws.before;else if(this.first!==i)for(let d of l)d.raws.before=i.raws.before}return l}removeChild(o,i){let s=this.index(o);return!i&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),super.removeChild(o)}toResult(o={}){return new t(new r,this,o).stringify()}}return a.registerLazyResult=n=>{t=n},a.registerProcessor=n=>{r=n},cf=a,a.default=a,e.registerRoot(a),cf}var ff,Rv;function rw(){if(Rv)return ff;Rv=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
|
|
32
|
-
`," "];return e.split(t,r)},split(t,r,a){let n=[],o="",i=!1,s=0,l=!1,d="",u=!1;for(let f of t)u?u=!1:f==="\\"?u=!0:l?f===d&&(l=!1):f==='"'||f==="'"?(l=!0,d=f):f==="("?s+=1:f===")"?s>0&&(s-=1):s===0&&r.includes(f)&&(i=!0),i?(o!==""&&n.push(o.trim()),o="",i=!1):o+=f;return(a||o!=="")&&n.push(o.trim()),n}};return ff=e,e.default=e,ff}var pf,Ev;function Np(){if(Ev)return pf;Ev=1;let e=ja(),t=rw();class r extends e{constructor(n){super(n),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(n){let o=this.selector?this.selector.match(/,\s*/):null,i=o?o[0]:","+this.raw("between","beforeOpen");this.selector=n.join(i)}}return pf=r,r.default=r,e.registerRule(r),pf}var mf,Pv;function RL(){if(Pv)return mf;Pv=1;let e=Gl(),t=_L(),r=Kl(),a=Tp(),n=fs(),o=Np(),i={empty:!0,space:!0};function s(d){for(let u=d.length-1;u>=0;u--){let f=d[u],c=f[3]||f[2];if(c)return c}}class l{constructor(u){this.input=u,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:u,start:{column:1,line:1,offset:0}}}atrule(u){let f=new a;f.name=u[1].slice(1),f.name===""&&this.unnamedAtrule(f,u),this.init(f,u[2]);let c,p,h,m=!1,S=!1,g=[],x=[];for(;!this.tokenizer.endOfFile();){if(u=this.tokenizer.nextToken(),c=u[0],c==="("||c==="["?x.push(c==="("?")":"]"):c==="{"&&x.length>0?x.push("}"):c===x[x.length-1]&&x.pop(),x.length===0)if(c===";"){f.source.end=this.getPosition(u[2]),f.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){S=!0;break}else if(c==="}"){if(g.length>0){for(h=g.length-1,p=g[h];p&&p[0]==="space";)p=g[--h];p&&(f.source.end=this.getPosition(p[3]||p[2]),f.source.end.offset++)}this.end(u);break}else g.push(u);else g.push(u);if(this.tokenizer.endOfFile()){m=!0;break}}f.raws.between=this.spacesAndCommentsFromEnd(g),g.length?(f.raws.afterName=this.spacesAndCommentsFromStart(g),this.raw(f,"params",g),m&&(u=g[g.length-1],f.source.end=this.getPosition(u[3]||u[2]),f.source.end.offset++,this.spaces=f.raws.between,f.raws.between="")):(f.raws.afterName="",f.params=""),S&&(f.nodes=[],this.current=f)}checkMissedSemicolon(u){let f=this.colon(u);if(f===!1)return;let c=0,p;for(let h=f-1;h>=0&&(p=u[h],!(p[0]!=="space"&&(c+=1,c===2)));h--);throw this.input.error("Missed semicolon",p[0]==="word"?p[3]+1:p[2])}colon(u){let f=0,c,p,h;for(let[m,S]of u.entries()){if(c=S,p=c[0],p==="("&&(f+=1),p===")"&&(f-=1),f===0&&p===":")if(!h)this.doubleColon(c);else{if(h[0]==="word"&&h[1]==="progid")continue;return m}h=c}return!1}comment(u){let f=new r;this.init(f,u[2]),f.source.end=this.getPosition(u[3]||u[2]),f.source.end.offset++;let c=u[1].slice(2,-2);if(/^\s*$/.test(c))f.text="",f.raws.left=c,f.raws.right="";else{let p=c.match(/^(\s*)([^]*\S)(\s*)$/);f.text=p[2],f.raws.left=p[1],f.raws.right=p[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(u,f){let c=new e;this.init(c,u[0][2]);let p=u[u.length-1];for(p[0]===";"&&(this.semicolon=!0,u.pop()),c.source.end=this.getPosition(p[3]||p[2]||s(u)),c.source.end.offset++;u[0][0]!=="word";)u.length===1&&this.unknownWord(u),c.raws.before+=u.shift()[1];for(c.source.start=this.getPosition(u[0][2]),c.prop="";u.length;){let x=u[0][0];if(x===":"||x==="space"||x==="comment")break;c.prop+=u.shift()[1]}c.raws.between="";let h;for(;u.length;)if(h=u.shift(),h[0]===":"){c.raws.between+=h[1];break}else h[0]==="word"&&/\w/.test(h[1])&&this.unknownWord([h]),c.raws.between+=h[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let m=[],S;for(;u.length&&(S=u[0][0],!(S!=="space"&&S!=="comment"));)m.push(u.shift());this.precheckMissedSemicolon(u);for(let x=u.length-1;x>=0;x--){if(h=u[x],h[1].toLowerCase()==="!important"){c.important=!0;let v=this.stringFrom(u,x);v=this.spacesFromEnd(u)+v,v!==" !important"&&(c.raws.important=v);break}else if(h[1].toLowerCase()==="important"){let v=u.slice(0),b="";for(let w=x;w>0;w--){let y=v[w][0];if(b.trim().indexOf("!")===0&&y!=="space")break;b=v.pop()[1]+b}b.trim().indexOf("!")===0&&(c.important=!0,c.raws.important=b,u=v)}if(h[0]!=="space"&&h[0]!=="comment")break}u.some(x=>x[0]!=="space"&&x[0]!=="comment")&&(c.raws.between+=m.map(x=>x[1]).join(""),m=[]),this.raw(c,"value",m.concat(u),f),c.value.includes(":")&&!f&&this.checkMissedSemicolon(u)}doubleColon(u){throw this.input.error("Double colon",{offset:u[2]},{offset:u[2]+u[1].length})}emptyRule(u){let f=new o;this.init(f,u[2]),f.selector="",f.raws.between="",this.current=f}end(u){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(u[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(u)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(u){if(this.spaces+=u[1],this.current.nodes){let f=this.current.nodes[this.current.nodes.length-1];f&&f.type==="rule"&&!f.raws.ownSemicolon&&(f.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(u){let f=this.input.fromOffset(u);return{column:f.col,line:f.line,offset:u}}init(u,f){this.current.push(u),u.source={input:this.input,start:this.getPosition(f)},u.raws.before=this.spaces,this.spaces="",u.type!=="comment"&&(this.semicolon=!1)}other(u){let f=!1,c=null,p=!1,h=null,m=[],S=u[1].startsWith("--"),g=[],x=u;for(;x;){if(c=x[0],g.push(x),c==="("||c==="[")h||(h=x),m.push(c==="("?")":"]");else if(S&&p&&c==="{")h||(h=x),m.push("}");else if(m.length===0)if(c===";")if(p){this.decl(g,S);return}else break;else if(c==="{"){this.rule(g);return}else if(c==="}"){this.tokenizer.back(g.pop()),f=!0;break}else c===":"&&(p=!0);else c===m[m.length-1]&&(m.pop(),m.length===0&&(h=null));x=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(f=!0),m.length>0&&this.unclosedBracket(h),f&&p){if(!S)for(;g.length&&(x=g[g.length-1][0],!(x!=="space"&&x!=="comment"));)this.tokenizer.back(g.pop());this.decl(g,S)}else this.unknownWord(g)}parse(){let u;for(;!this.tokenizer.endOfFile();)switch(u=this.tokenizer.nextToken(),u[0]){case"space":this.spaces+=u[1];break;case";":this.freeSemicolon(u);break;case"}":this.end(u);break;case"comment":this.comment(u);break;case"at-word":this.atrule(u);break;case"{":this.emptyRule(u);break;default:this.other(u);break}this.endFile()}precheckMissedSemicolon(){}raw(u,f,c,p){let h,m,S=c.length,g="",x=!0,v,b;for(let w=0;w<S;w+=1)h=c[w],m=h[0],m==="space"&&w===S-1&&!p?x=!1:m==="comment"?(b=c[w-1]?c[w-1][0]:"empty",v=c[w+1]?c[w+1][0]:"empty",!i[b]&&!i[v]?g.slice(-1)===","?x=!1:g+=h[1]:x=!1):g+=h[1];if(!x){let w=c.reduce((y,L)=>y+L[1],"");u.raws[f]={raw:w,value:g}}u[f]=g}rule(u){u.pop();let f=new o;this.init(f,u[0][2]),f.raws.between=this.spacesAndCommentsFromEnd(u),this.raw(f,"selector",u),this.current=f}spacesAndCommentsFromEnd(u){let f,c="";for(;u.length&&(f=u[u.length-1][0],!(f!=="space"&&f!=="comment"));)c=u.pop()[1]+c;return c}spacesAndCommentsFromStart(u){let f,c="";for(;u.length&&(f=u[0][0],!(f!=="space"&&f!=="comment"));)c+=u.shift()[1];return c}spacesFromEnd(u){let f,c="";for(;u.length&&(f=u[u.length-1][0],f==="space");)c=u.pop()[1]+c;return c}stringFrom(u,f){let c="";for(let p=f;p<u.length;p++)c+=u[p][1];return u.splice(f,u.length-f),c}unclosedBlock(){let u=this.current.source.start;throw this.input.error("Unclosed block",u.line,u.column)}unclosedBracket(u){throw this.input.error("Unclosed bracket",{offset:u[2]},{offset:u[2]+1})}unexpectedClose(u){throw this.input.error("Unexpected }",{offset:u[2]},{offset:u[2]+1})}unknownWord(u){throw this.input.error("Unknown word",{offset:u[0][2]},{offset:u[0][2]+u[0][1].length})}unnamedAtrule(u,f){throw this.input.error("At-rule without name",{offset:f[2]},{offset:f[2]+f[1].length})}}return mf=l,mf}var hf,Tv;function Ap(){if(Tv)return hf;Tv=1;let e=ja(),t=RL(),r=Xl();function a(n,o){let i=new r(n,o),s=new t(i);try{s.parse()}catch(l){throw l}return s.root}return hf=a,a.default=a,e.registerParse(a),hf}var gf,Nv;function aw(){if(Nv)return gf;Nv=1;let{isClean:e,my:t}=Rp(),r=Zy(),a=jl(),n=ja(),o=Ep(),i=ew(),s=Pp(),l=Ap(),d=fs(),u={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},p=0;function h(b){return typeof b=="object"&&typeof b.then=="function"}function m(b){let w=!1,y=u[b.type];return b.type==="decl"?w=b.prop.toLowerCase():b.type==="atrule"&&(w=b.name.toLowerCase()),w&&b.append?[y,y+"-"+w,p,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:b.append?[y,p,y+"Exit"]:[y,y+"Exit"]}function S(b){let w;return b.type==="document"?w=["Document",p,"DocumentExit"]:b.type==="root"?w=["Root",p,"RootExit"]:w=m(b),{eventIndex:0,events:w,iterator:0,node:b,visitorIndex:0,visitors:[]}}function g(b){return b[e]=!1,b.nodes&&b.nodes.forEach(w=>g(w)),b}let x={};class v{constructor(w,y,L){this.stringified=!1,this.processed=!1;let C;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))C=g(y);else if(y instanceof v||y instanceof s)C=g(y.root),y.map&&(typeof L.map>"u"&&(L.map={}),L.map.inline||(L.map.inline=!1),L.map.prev=y.map);else{let M=l;L.syntax&&(M=L.syntax.parse),L.parser&&(M=L.parser),M.parse&&(M=M.parse);try{C=M(y,L)}catch(I){this.processed=!0,this.error=I}C&&!C[t]&&n.rebuild(C)}this.result=new s(w,C,L),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?{...M,...M.prepare(this.result)}:M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let L=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=L.postcssPlugin,w.setMessage()):L.postcssVersion}catch(C){console&&console.error&&console.error(C)}return w}prepareVisitors(){this.listeners={};let w=(y,L,C)=>{this.listeners[L]||(this.listeners[L]=[]),this.listeners[L].push([y,C])};for(let y of this.plugins)if(typeof y=="object")for(let L in y){if(!f[L]&&/^[A-Z]/.test(L))throw new Error(`Unknown event ${L} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[L])if(typeof y[L]=="object")for(let C in y[L])C==="*"?w(y,L,y[L][C]):w(y,L+"-"+C.toLowerCase(),y[L][C]);else typeof y[L]=="function"&&w(y,L,y[L])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],L=this.runOnRoot(y);if(h(L))try{await L}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];){w[e]=!0;let y=[S(w)];for(;y.length>0;){let L=this.visitTick(y);if(h(L))try{await L}catch(C){let M=y[y.length-1].node;throw this.handleError(C,M)}}}if(this.listeners.OnceExit)for(let[y,L]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let C=w.nodes.map(M=>L(M,this.helpers));await Promise.all(C)}else await L(w,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(L=>w.Once(L,this.helpers));return h(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=a;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let C=new r(y,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let y=this.runOnRoot(w);if(h(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];)w[e]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let y of w.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,y){return this.async().then(w,y)}toString(){return this.css}visitSync(w,y){for(let[L,C]of w){this.result.lastPlugin=L;let M;try{M=C(y,this.helpers)}catch(I){throw this.handleError(I,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(h(M))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:L,visitors:C}=y;if(L.type!=="root"&&L.type!=="document"&&!L.parent){w.pop();return}if(C.length>0&&y.visitorIndex<C.length){let[I,D]=C[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===C.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=I;try{return D(L.toProxy(),this.helpers)}catch(A){throw this.handleError(A,L)}}if(y.iterator!==0){let I=y.iterator,D;for(;D=L.nodes[L.indexes[I]];)if(L.indexes[I]+=1,!D[e]){D[e]=!0,w.push(S(D));return}y.iterator=0,delete L.indexes[I]}let M=y.events;for(;y.eventIndex<M.length;){let I=M[y.eventIndex];if(y.eventIndex+=1,I===p){L.nodes&&L.nodes.length&&(L[e]=!0,y.iterator=L.getIterator());return}else if(this.listeners[I]){y.visitors=this.listeners[I];return}}w.pop()}walkSync(w){w[e]=!0;let y=m(w);for(let L of y)if(L===p)w.nodes&&w.each(C=>{C[e]||this.walkSync(C)});else{let C=this.listeners[L];if(C&&this.visitSync(C,w.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return v.registerPostcss=b=>{x=b},gf=v,v.default=v,d.registerLazyResult(v),o.registerLazyResult(v),gf}var xf,Av;function EL(){if(Av)return xf;Av=1;let e=Zy(),t=jl(),r=ew(),a=Ap(),n=Pp();class o{constructor(s,l,d){l=l.toString(),this.stringified=!1,this._processor=s,this._css=l,this._opts=d,this._map=void 0;let u,f=t;this.result=new n(this._processor,u,this._opts),this.result.css=l;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let p=new e(f,u,this._opts,l);if(p.isMap()){let[h,m]=p.generate();h&&(this.result.css=h),m&&(this.result.map=m)}else p.clearAnnotation(),this.result.css=p.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(s){return this.async().catch(s)}finally(s){return this.async().then(s,s)}sync(){if(this.error)throw this.error;return this.result}then(s,l){return this.async().then(s,l)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let s,l=a;try{s=l(this._css,this._opts)}catch(d){this.error=d}if(this.error)throw this.error;return this._root=s,s}get[Symbol.toStringTag](){return"NoWorkResult"}}return xf=o,o.default=o,xf}var vf,Dv;function PL(){if(Dv)return vf;Dv=1;let e=EL(),t=aw(),r=Ep(),a=fs();class n{constructor(i=[]){this.version="8.4.38",this.plugins=this.normalize(i)}normalize(i){let s=[];for(let l of i)if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),typeof l=="object"&&Array.isArray(l.plugins))s=s.concat(l.plugins);else if(typeof l=="object"&&l.postcssPlugin)s.push(l);else if(typeof l=="function")s.push(l);else if(!(typeof l=="object"&&(l.parse||l.stringify)))throw new Error(l+" is not a PostCSS plugin");return s}process(i,s={}){return!this.plugins.length&&!s.parser&&!s.stringifier&&!s.syntax?new e(this,i,s):new t(this,i,s)}use(i){return this.plugins=this.plugins.concat(this.normalize([i])),this}}return vf=n,n.default=n,a.registerProcessor(n),r.registerProcessor(n),vf}var yf,Ov;function TL(){if(Ov)return yf;Ov=1;let e=Gl(),t=Jy(),r=Kl(),a=Tp(),n=Xl(),o=fs(),i=Np();function s(l,d){if(Array.isArray(l))return l.map(c=>s(c));let{inputs:u,...f}=l;if(u){d=[];for(let c of u){let p={...c,__proto__:n.prototype};p.map&&(p.map={...p.map,__proto__:t.prototype}),d.push(p)}}if(f.nodes&&(f.nodes=l.nodes.map(c=>s(c,d))),f.source){let{inputId:c,...p}=f.source;f.source=p,c!=null&&(f.source.input=d[c])}if(f.type==="root")return new o(f);if(f.type==="decl")return new e(f);if(f.type==="rule")return new i(f);if(f.type==="comment")return new r(f);if(f.type==="atrule")return new a(f);throw new Error("Unknown node type: "+l.type)}return yf=s,s.default=s,yf}var wf,Fv;function NL(){if(Fv)return wf;Fv=1;let e=_p(),t=Gl(),r=aw(),a=ja(),n=PL(),o=jl(),i=TL(),s=Ep(),l=tw(),d=Kl(),u=Tp(),f=Pp(),c=Xl(),p=Ap(),h=rw(),m=Np(),S=fs(),g=Vl();function x(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new n(v)}return x.plugin=function(b,w){let y=!1;function L(...M){console&&console.warn&&!y&&(y=!0,console.warn(b+`: postcss.plugin was deprecated. Migration guide:
|
|
33
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(
|
|
34
|
-
https://www.w3ctech.com/topic/2226`));let I=w(...M);return I.postcssPlugin=b,I.postcssVersion=new n().version,I}let C;return Object.defineProperty(L,"postcss",{get(){return C||(C=L()),C}}),L.process=function(M,I,D){return x([L(D)]).process(M,I)},L},x.stringify=o,x.parse=p,x.fromJSON=i,x.list=h,x.comment=v=>new d(v),x.atRule=v=>new u(v),x.decl=v=>new t(v),x.rule=v=>new m(v),x.root=v=>new S(v),x.document=v=>new s(v),x.CssSyntaxError=e,x.Declaration=t,x.Container=a,x.Processor=n,x.Document=s,x.Comment=d,x.Warning=l,x.AtRule=u,x.Result=f,x.Input=c,x.Rule=m,x.Root=S,x.Node=g,r.registerPostcss(x),wf=x,x.default=x,wf}var AL=NL(),Oe=bL(AL);Oe.stringify;Oe.fromJSON;Oe.plugin;Oe.parse;Oe.list;Oe.document;Oe.comment;Oe.atRule;Oe.rule;Oe.decl;Oe.root;Oe.CssSyntaxError;Oe.Declaration;Oe.Container;Oe.Processor;Oe.Document;Oe.Comment;Oe.Warning;Oe.AtRule;Oe.Result;Oe.Input;Oe.Rule;Oe.Root;Oe.Node;var Bv={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function DL(e){let t=Bv[e.tagName]?Bv[e.tagName]:e.tagName;return t==="link"&&e.attributes._cssText&&(t="style"),t}function Ql(e,t){let r=t?.stylesWithHoverClass.get(e);if(r)return r;let a=e;try{a=Oe([wL,SL]).process(e).css}catch(n){console.warn("Failed to adapt css for replay",n)}return t?.stylesWithHoverClass.set(e,a),a}function zv(){return{stylesWithHoverClass:new Map}}var OL="rrweb-snapshot.rebuild() cannot rebuild into an unprotected browser document. Use rebuildIntoSandboxedIframe() or set UNSAFE_allowUnprotectedRebuild: true only when you accept the script-execution risk.",Uv="rrweb-snapshot.createSandboxedIframe() requires root to be connected to a document before creating a sandboxed iframe.",nw=new WeakSet;function FL(e){if(!e||e.tagName!=="IFRAME"||!("sandbox"in e))return!1;let t=Array.from(e.sandbox);return t.length===1&&t[0]==="allow-same-origin"}function BL(e){if(e.UNSAFE_allowUnprotectedRebuild)return;let t=e.doc.defaultView;if(t&&!(nw.has(e.doc)&&FL(t.frameElement)))throw new Error(OL)}function zL(e,t,r,a){let n=[];for(let l of e.childNodes)l.type===re.Text&&n.push(l);let o=t.split("/* rr_split */");for(;o.length>1&&o.length>n.length;)o.splice(-2,2,o.slice(-2).join(""));let i="";r&&(i=Ql(o.join(""),a));let s=0;for(let l=0;l<n.length&&l!==o.length;l++){let d=n[l];if(!r)d.textContent=o[l];else if(l<o.length-1){let u=s,f=o[l+1].length;f=Math.min(f,30);let c=!1;for(;f>2;f--){let p=o[l+1].substring(0,f),h=i.substring(s).indexOf(p);if(c=h!==-1,c){u+=h;break}}c||(u+=o[l].length),d.textContent=i.substring(s,u),s=u}else d.textContent=i.substring(s)}}function UL(e,t,r,a){let{doc:n,hackCss:o,cache:i}=a;e.childNodes.length?zL(e,r,o,i):(o&&(r=Ql(r,i)),t.appendChild(n.createTextNode(r)))}function qL(e,t){var r;let{doc:a,hackCss:n,cache:o}=t;switch(e.type){case re.Document:return a.implementation.createDocument(null,"",null);case re.DocumentType:return a.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case re.Element:{let i=DL(e),s;e.isSVG?s=a.createElementNS("http://www.w3.org/2000/svg",i):(e.isCustom&&((r=a.defaultView)!=null&&r.customElements)&&!a.defaultView.customElements.get(e.tagName)&&a.defaultView.customElements.define(e.tagName,class extends a.defaultView.HTMLElement{}),s=a.createElement(i));let l={};for(let d in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,d))continue;let u=e.attributes[d];if(!(i==="option"&&d==="selected"&&u===!1)&&u!==null){if(u===!0&&(u=""),d.startsWith("rr_")){l[d]=u;continue}if(typeof u=="string"){if(i==="style"&&d==="_cssText"){UL(e,s,u,t);continue}else if(i==="textarea"&&d==="value"){s.appendChild(a.createTextNode(u)),e.childNodes=[];continue}}try{if(e.isSVG&&d==="xlink:href")s.setAttributeNS("http://www.w3.org/1999/xlink",d,u.toString());else if(d==="onload"||d==="onclick"||d.substring(0,7)==="onmouse")s.setAttribute("_"+d,u.toString());else if(i==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&d==="content"){s.setAttribute("csp-content",u.toString());continue}else i==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||i==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Ip(e.attributes.href)==="js"||(i==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?s.setAttribute("rrweb-original-srcset",e.attributes.srcset):s.setAttribute(d,u.toString()))}catch{}}}for(let d in l){let u=l[d];if(i==="canvas"&&d==="rr_dataURL"){let f=a.createElement("img");f.onload=()=>{let c=s.getContext("2d");c&&c.drawImage(f,0,0,f.width,f.height)},f.src=u.toString(),s.RRNodeType&&(s.rr_dataURL=u.toString())}else if(i==="img"&&d==="rr_dataURL"){let f=s;f.currentSrc.startsWith("data:")||(f.setAttribute("rrweb-original-src",e.attributes.src),f.src=u.toString())}if(d==="rr_width")s.style.setProperty("width",u.toString());else if(d==="rr_height")s.style.setProperty("height",u.toString());else if(d==="rr_mediaCurrentTime"&&typeof u=="number")s.currentTime=u;else if(d==="rr_mediaState")switch(u){case"played":s.play().catch(f=>console.warn("media playback error",f));break;case"paused":s.pause();break}else d==="rr_mediaPlaybackRate"&&typeof u=="number"?s.playbackRate=u:d==="rr_mediaMuted"&&typeof u=="boolean"?s.muted=u:d==="rr_mediaLoop"&&typeof u=="boolean"?s.loop=u:d==="rr_mediaVolume"&&typeof u=="number"?s.volume=u:d==="rr_open_mode"&&s.setAttribute("rr_open_mode",u)}if(e.isShadowHost)if(!s.shadowRoot)s.attachShadow({mode:"open"});else for(;s.shadowRoot.firstChild;)s.shadowRoot.removeChild(s.shadowRoot.firstChild);return s}case re.Text:return e.isStyle&&n?a.createTextNode(Ql(e.textContent,o)):a.createTextNode(e.textContent);case re.CDATA:return a.createCDATASection(e.textContent);case re.Comment:return a.createComment(e.textContent);default:return null}}function os(e,t){let{doc:r,mirror:a,skipChild:n=!1,hackCss:o=!0,afterAppend:i,cache:s}=t;if(a.has(e.id)){let d=a.getNode(e.id),u=a.getMeta(d);if(KC(u,e))return a.getNode(e.id)}let l=qL(e,{doc:r,hackCss:o,cache:s});if(!l)return null;if(e.rootId&&a.getNode(e.rootId)!==r&&a.replace(e.rootId,r),e.type===re.Document&&(r.close(),r.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==re.DocumentType&&(e.childNodes[0].type===re.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),l=r),a.add(l,e),(e.type===re.Document||e.type===re.Element)&&!n)for(let d of e.childNodes){let u=os(d,{doc:r,mirror:a,skipChild:!1,hackCss:o,afterAppend:i,cache:s});if(!u){console.warn("Failed to rebuild",d);continue}if(d.isShadow&&kp(l)&&l.shadowRoot)l.shadowRoot.appendChild(u);else if(e.type===re.Document&&d.type==re.Element){let f=u,c=null;f.childNodes.forEach(p=>{p.nodeName==="BODY"&&(c=p)}),c?(f.removeChild(c),l.appendChild(u),f.appendChild(c)):l.appendChild(u)}else l.appendChild(u);i&&i(u,d.id)}return l}function $L(e,t){function r(a){t(a)}for(let a of e.getIds())e.has(a)&&r(e.getNode(a))}function HL(e,t){let r=t.getMeta(e);if(r?.type!==re.Element)return;let a=e;for(let n in r.attributes){if(!(Object.prototype.hasOwnProperty.call(r.attributes,n)&&n.startsWith("rr_")))continue;let o=r.attributes[n];n==="rr_scrollLeft"&&(a.scrollLeft=o),n==="rr_scrollTop"&&(a.scrollTop=o)}}function WL(e,t){BL(t);let{doc:r,onVisit:a,hackCss:n=!0,afterAppend:o,cache:i,mirror:s=new ls}=t,l=os(e,{doc:r,mirror:s,skipChild:!1,hackCss:n,afterAppend:o,cache:i});return $L(s,d=>{a&&a(d),HL(d,s)}),l}function jL(e){var t;if(!e.root.isConnected)throw new Error(Uv);let r=e.root.ownerDocument.createElement("iframe");for(let[n,o]of Object.entries(e.iframeAttributes||{}))n!=="sandbox"&&r.setAttribute(n,o);r.setAttribute("sandbox","allow-same-origin"),e.root.appendChild(r);let a=r.contentDocument;if(!a||!r.contentWindow)throw(t=r.parentNode)==null||t.removeChild(r),new Error(Uv);return nw.add(a),r}var VL=Object.defineProperty,GL=(e,t,r)=>t in e?VL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,z=(e,t,r)=>GL(e,typeof t!="symbol"?t+"":t,r),XL=Object.defineProperty,KL=(e,t,r)=>t in e?XL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qv=(e,t,r)=>KL(e,typeof t!="symbol"?t+"":t,r);Date.now().toString();var QL=class{constructor(){qv(this,"idNodeMap",new Map),qv(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(a=>this.removeNodeFromMap(a))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let a=r.id;this.idNodeMap.set(a,t),this.nodeMetaMap.set(t,r)}replace(t,r){let a=this.getNode(t);if(a){let n=this.nodeMetaMap.get(a);n&&this.nodeMetaMap.set(r,n)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function YL(){return new QL}function JL(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ZL(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function a(){return this instanceof a?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,n.get?n:{enumerable:!0,get:function(){return e[a]}})}),r}var Sl={exports:{}},$v;function e1(){if($v)return Sl.exports;$v=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 Sl.exports=t(),Sl.exports.createColors=t,Sl.exports}var t1={},r1=Object.freeze(Object.defineProperty({__proto__:null,default:t1},Symbol.toStringTag,{value:"Module"})),xr=ZL(r1),Sf,Hv;function Dp(){if(Hv)return Sf;Hv=1;let e=e1(),t=xr;class r extends Error{constructor(n,o,i,s,l,d){super(n),this.name="CssSyntaxError",this.reason=n,l&&(this.file=l),s&&(this.source=s),d&&(this.plugin=d),typeof o<"u"&&typeof i<"u"&&(typeof o=="number"?(this.line=o,this.column=i):(this.line=o.line,this.column=o.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let o=this.source;n==null&&(n=e.isColorSupported),t&&n&&(o=t(o));let i=o.split(/\r?\n/),s=Math.max(this.line-3,0),l=Math.min(this.line+2,i.length),d=String(l).length,u,f;if(n){let{bold:c,gray:p,red:h}=e.createColors(!0);u=m=>c(h(m)),f=m=>p(m)}else u=f=c=>c;return i.slice(s,l).map((c,p)=>{let h=s+1+p,m=" "+(" "+h).slice(-d)+" | ";if(h===this.line){let S=f(m.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+f(m)+c+`
|
|
35
|
-
`+
|
|
36
|
-
`)}toString(){let
|
|
37
|
-
|
|
38
|
-
`+
|
|
39
|
-
`),this.name+": "+this.message+
|
|
29
|
+
`)&&(f=`\r
|
|
30
|
+
`),this.css+=f+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let f=this.toUrl(this.path(c.file)),h=c.root||r(c.file),m;this.mapOpts.sourcesContent===!1?(m=new e(c.text),m.sourcesContent&&(m.sourcesContent=null)):m=c.consumer(),this.map.applySourceMap(m,f,this.toUrl(this.path(h)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let f=this.root.nodes.length-1;f>=0;f--)c=this.root.nodes[f],c.type==="comment"&&c.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(f)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),d&&i&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,f=>{c+=f}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=t.fromSourceMap(c,{ignoreInvalidMapping:!0})}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,f=1,h="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},y,g;this.stringify(this.root,(x,v,S)=>{if(this.css+=x,v&&S!=="end"&&(m.generated.line=c,m.generated.column=f-1,v.source&&v.source.start?(m.source=this.sourcePath(v),m.original.line=v.source.start.line,m.original.column=v.source.start.column-1,this.map.addMapping(m)):(m.source=h,m.original.line=1,m.original.column=0,this.map.addMapping(m))),y=x.match(/\n/g),y?(c+=y.length,g=x.lastIndexOf(`
|
|
31
|
+
`),f=x.length-g):f+=x.length,v&&S!=="start"){let b=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==b.last||b.raws.semicolon)&&(v.source&&v.source.end?(m.source=this.sourcePath(v),m.original.line=v.source.end.line,m.original.column=v.source.end.column-1,m.generated.line=c,m.generated.column=f-2,this.map.addMapping(m)):(m.source=h,m.original.line=1,m.original.column=0,m.generated.line=c,m.generated.column=f-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!0?!1:this.previous().length?this.previous().some(f=>f.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let f=this.memoizedPaths.get(c);if(f)return f;let h=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(h=r(a(h,this.mapOpts.annotation)));let m=n(h,c);return this.memoizedPaths.set(c,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let f=c.source.input.map;this.previousMaps.includes(f)||this.previousMaps.push(f)}});else{let c=new l(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(f=>{if(f.source){let h=f.source.input.from;if(h&&!c[h]){c[h]=!0;let m=this.usesFileUrls?this.toFileUrl(h):this.toUrl(this.path(h));this.map.setSourceContent(m,f.source.input.css)}}});else if(this.css){let f=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(f,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let f=this.memoizedFileURLs.get(c);if(f)return f;if(s){let h=s(c).toString();return this.memoizedFileURLs.set(c,h),h}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let f=this.memoizedURLs.get(c);if(f)return f;o==="\\"&&(c=c.replace(/\\/g,"/"));let h=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,h),h}}return lf=u,lf}var uf,Mv;function Zi(){if(Mv)return uf;Mv=1;let e=Qi();class t extends e{constructor(n){super(n),this.type="comment"}}return uf=t,t.default=t,uf}var df,Rv;function Kn(){if(Rv)return df;Rv=1;let{isClean:e,my:t}=Dp(),r=Yi(),n=Zi(),a=Qi(),o,s,l,i;function d(c){return c.map(f=>(f.nodes&&(f.nodes=d(f.nodes)),delete f.source,f))}function u(c){if(c[e]=!1,c.proxyOf.nodes)for(let f of c.proxyOf.nodes)u(f)}class p extends a{append(...f){for(let h of f){let m=this.normalize(h,this.last);for(let y of m)this.proxyOf.nodes.push(y)}return this.markDirty(),this}cleanRaws(f){if(super.cleanRaws(f),this.nodes)for(let h of this.nodes)h.cleanRaws(f)}each(f){if(!this.proxyOf.nodes)return;let h=this.getIterator(),m,y;for(;this.indexes[h]<this.proxyOf.nodes.length&&(m=this.indexes[h],y=f(this.proxyOf.nodes[m],m),y!==!1);)this.indexes[h]+=1;return delete this.indexes[h],y}every(f){return this.nodes.every(f)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let f=this.lastEach;return this.indexes[f]=0,f}getProxyProcessor(){return{get(f,h){return h==="proxyOf"?f:f[h]?h==="each"||typeof h=="string"&&h.startsWith("walk")?(...m)=>f[h](...m.map(y=>typeof y=="function"?(g,x)=>y(g.toProxy(),x):y)):h==="every"||h==="some"?m=>f[h]((y,...g)=>m(y.toProxy(),...g)):h==="root"?()=>f.root().toProxy():h==="nodes"?f.nodes.map(m=>m.toProxy()):h==="first"||h==="last"?f[h].toProxy():f[h]:f[h]},set(f,h,m){return f[h]===m||(f[h]=m,(h==="name"||h==="params"||h==="selector")&&f.markDirty()),!0}}}index(f){return typeof f=="number"?f:(f.proxyOf&&(f=f.proxyOf),this.proxyOf.nodes.indexOf(f))}insertAfter(f,h){let m=this.index(f),y=this.normalize(h,this.proxyOf.nodes[m]).reverse();m=this.index(f);for(let x of y)this.proxyOf.nodes.splice(m+1,0,x);let g;for(let x in this.indexes)g=this.indexes[x],m<g&&(this.indexes[x]=g+y.length);return this.markDirty(),this}insertBefore(f,h){let m=this.index(f),y=m===0?"prepend":!1,g=this.normalize(h,this.proxyOf.nodes[m],y).reverse();m=this.index(f);for(let v of g)this.proxyOf.nodes.splice(m,0,v);let x;for(let v in this.indexes)x=this.indexes[v],m<=x&&(this.indexes[v]=x+g.length);return this.markDirty(),this}normalize(f,h){if(typeof f=="string")f=d(o(f).nodes);else if(typeof f>"u")f=[];else if(Array.isArray(f)){f=f.slice(0);for(let y of f)y.parent&&y.parent.removeChild(y,"ignore")}else if(f.type==="root"&&this.type!=="document"){f=f.nodes.slice(0);for(let y of f)y.parent&&y.parent.removeChild(y,"ignore")}else if(f.type)f=[f];else if(f.prop){if(typeof f.value>"u")throw new Error("Value field is missed in node creation");typeof f.value!="string"&&(f.value=String(f.value)),f=[new r(f)]}else if(f.selector)f=[new s(f)];else if(f.name)f=[new l(f)];else if(f.text)f=[new n(f)];else throw new Error("Unknown node type in node creation");return f.map(y=>(y[t]||p.rebuild(y),y=y.proxyOf,y.parent&&y.parent.removeChild(y),y[e]&&u(y),typeof y.raws.before>"u"&&h&&typeof h.raws.before<"u"&&(y.raws.before=h.raws.before.replace(/\S/g,"")),y.parent=this.proxyOf,y))}prepend(...f){f=f.reverse();for(let h of f){let m=this.normalize(h,this.first,"prepend").reverse();for(let y of m)this.proxyOf.nodes.unshift(y);for(let y in this.indexes)this.indexes[y]=this.indexes[y]+m.length}return this.markDirty(),this}push(f){return f.parent=this,this.proxyOf.nodes.push(f),this}removeAll(){for(let f of this.proxyOf.nodes)f.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(f){f=this.index(f),this.proxyOf.nodes[f].parent=void 0,this.proxyOf.nodes.splice(f,1);let h;for(let m in this.indexes)h=this.indexes[m],h>=f&&(this.indexes[m]=h-1);return this.markDirty(),this}replaceValues(f,h,m){return m||(m=h,h={}),this.walkDecls(y=>{h.props&&!h.props.includes(y.prop)||h.fast&&!y.value.includes(h.fast)||(y.value=y.value.replace(f,m))}),this.markDirty(),this}some(f){return this.nodes.some(f)}walk(f){return this.each((h,m)=>{let y;try{y=f(h,m)}catch(g){throw h.addToError(g)}return y!==!1&&h.walk&&(y=h.walk(f)),y})}walkAtRules(f,h){return h?f instanceof RegExp?this.walk((m,y)=>{if(m.type==="atrule"&&f.test(m.name))return h(m,y)}):this.walk((m,y)=>{if(m.type==="atrule"&&m.name===f)return h(m,y)}):(h=f,this.walk((m,y)=>{if(m.type==="atrule")return h(m,y)}))}walkComments(f){return this.walk((h,m)=>{if(h.type==="comment")return f(h,m)})}walkDecls(f,h){return h?f instanceof RegExp?this.walk((m,y)=>{if(m.type==="decl"&&f.test(m.prop))return h(m,y)}):this.walk((m,y)=>{if(m.type==="decl"&&m.prop===f)return h(m,y)}):(h=f,this.walk((m,y)=>{if(m.type==="decl")return h(m,y)}))}walkRules(f,h){return h?f instanceof RegExp?this.walk((m,y)=>{if(m.type==="rule"&&f.test(m.selector))return h(m,y)}):this.walk((m,y)=>{if(m.type==="rule"&&m.selector===f)return h(m,y)}):(h=f,this.walk((m,y)=>{if(m.type==="rule")return h(m,y)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return p.registerParse=c=>{o=c},p.registerRule=c=>{s=c},p.registerAtRule=c=>{l=c},p.registerRoot=c=>{i=c},df=p,p.default=p,p.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,l.prototype):c.type==="rule"?Object.setPrototypeOf(c,s.prototype):c.type==="decl"?Object.setPrototypeOf(c,r.prototype):c.type==="comment"?Object.setPrototypeOf(c,n.prototype):c.type==="root"&&Object.setPrototypeOf(c,i.prototype),c[t]=!0,c.nodes&&c.nodes.forEach(f=>{p.rebuild(f)})},df}var cf,Ev;function Op(){if(Ev)return cf;Ev=1;let e=Kn(),t,r;class n extends e{constructor(o){super({type:"document",...o}),this.nodes||(this.nodes=[])}toResult(o={}){return new t(new r,this,o).stringify()}}return n.registerLazyResult=a=>{t=a},n.registerProcessor=a=>{r=a},cf=n,n.default=n,cf}var ff,Nv;function iw(){if(Nv)return ff;Nv=1;let e={};return ff=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},ff}var pf,Pv;function uw(){if(Pv)return pf;Pv=1;class e{constructor(r,n={}){if(this.type="warning",this.text=r,n.node&&n.node.source){let a=n.node.rangeBy(n);this.line=a.start.line,this.column=a.start.column,this.endLine=a.end.line,this.endColumn=a.end.column}for(let a in n)this[a]=n[a]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return pf=e,e.default=e,pf}var mf,Tv;function Fp(){if(Tv)return mf;Tv=1;let e=uw();class t{constructor(n,a,o){this.processor=n,this.messages=[],this.root=a,this.opts=o,this.css=void 0,this.map=void 0}toString(){return this.css}warn(n,a={}){a.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(a.plugin=this.lastPlugin.postcssPlugin);let o=new e(n,a);return this.messages.push(o),o}warnings(){return this.messages.filter(n=>n.type==="warning")}get content(){return this.css}}return mf=t,t.default=t,mf}var hf,Av;function OC(){if(Av)return hf;Av=1;let e=39,t=34,r=92,n=47,a=10,o=32,s=12,l=9,i=13,d=91,u=93,p=40,c=41,f=123,h=125,m=59,y=42,g=58,x=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,S=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return hf=function(L,k={}){let _=L.css.valueOf(),N=k.ignoreErrors,P,I,re,_e,se,j,ve,Me,Le,Ce,br=_.length,T=0,yt=[],wt=[];function En(){return T}function Ye(K){throw L.error("Unclosed "+K,T)}function it(){return wt.length===0&&T>=br}function Sr(K){if(wt.length)return wt.pop();if(T>=br)return;let Re=K?K.ignoreUnclosed:!1;switch(P=_.charCodeAt(T),P){case a:case o:case l:case i:case s:{I=T;do I+=1,P=_.charCodeAt(I);while(P===o||P===a||P===l||P===i||P===s);Ce=["space",_.slice(T,I)],T=I-1;break}case d:case u:case f:case h:case g:case m:case c:{let ue=String.fromCharCode(P);Ce=[ue,ue,T];break}case p:{if(Me=yt.length?yt.pop()[1]:"",Le=_.charCodeAt(T+1),Me==="url"&&Le!==e&&Le!==t&&Le!==o&&Le!==a&&Le!==l&&Le!==s&&Le!==i){I=T;do{if(j=!1,I=_.indexOf(")",I+1),I===-1)if(N||Re){I=T;break}else Ye("bracket");for(ve=I;_.charCodeAt(ve-1)===r;)ve-=1,j=!j}while(j);Ce=["brackets",_.slice(T,I+1),T,I],T=I}else I=_.indexOf(")",T+1),_e=_.slice(T,I+1),I===-1||b.test(_e)?Ce=["(","(",T]:(Ce=["brackets",_e,T,I],T=I);break}case e:case t:{re=P===e?"'":'"',I=T;do{if(j=!1,I=_.indexOf(re,I+1),I===-1)if(N||Re){I=T+1;break}else Ye("string");for(ve=I;_.charCodeAt(ve-1)===r;)ve-=1,j=!j}while(j);Ce=["string",_.slice(T,I+1),T,I],T=I;break}case x:{v.lastIndex=T+1,v.test(_),v.lastIndex===0?I=_.length-1:I=v.lastIndex-2,Ce=["at-word",_.slice(T,I+1),T,I],T=I;break}case r:{for(I=T,se=!0;_.charCodeAt(I+1)===r;)I+=1,se=!se;if(P=_.charCodeAt(I+1),se&&P!==n&&P!==o&&P!==a&&P!==l&&P!==i&&P!==s&&(I+=1,w.test(_.charAt(I)))){for(;w.test(_.charAt(I+1));)I+=1;_.charCodeAt(I+1)===o&&(I+=1)}Ce=["word",_.slice(T,I+1),T,I],T=I;break}default:{P===n&&_.charCodeAt(T+1)===y?(I=_.indexOf("*/",T+2)+1,I===0&&(N||Re?I=_.length:Ye("comment")),Ce=["comment",_.slice(T,I+1),T,I],T=I):(S.lastIndex=T+1,S.test(_),S.lastIndex===0?I=_.length-1:I=S.lastIndex-2,Ce=["word",_.slice(T,I+1),T,I],yt.push(Ce),T=I);break}}return T++,Ce}function Cr(K){wt.push(K)}return{back:Cr,endOfFile:it,nextToken:Sr,position:En}},hf}var gf,Dv;function Bp(){if(Dv)return gf;Dv=1;let e=Kn();class t extends e{constructor(n){super(n),this.type="atrule"}append(...n){return this.proxyOf.nodes||(this.nodes=[]),super.append(...n)}prepend(...n){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...n)}}return gf=t,t.default=t,e.registerAtRule(t),gf}var xf,Ov;function gs(){if(Ov)return xf;Ov=1;let e=Kn(),t,r;class n extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,s,l){let i=super.normalize(o);if(s){if(l==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let d of i)d.raws.before=s.raws.before}return i}removeChild(o,s){let l=this.index(o);return!s&&l===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[l].raws.before),super.removeChild(o)}toResult(o={}){return new t(new r,this,o).stringify()}}return n.registerLazyResult=a=>{t=a},n.registerProcessor=a=>{r=a},xf=n,n.default=n,e.registerRoot(n),xf}var vf,Fv;function dw(){if(Fv)return vf;Fv=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
|
|
32
|
+
`," "];return e.split(t,r)},split(t,r,n){let a=[],o="",s=!1,l=0,i=!1,d="",u=!1;for(let p of t)u?u=!1:p==="\\"?u=!0:i?p===d&&(i=!1):p==='"'||p==="'"?(i=!0,d=p):p==="("?l+=1:p===")"?l>0&&(l-=1):l===0&&r.includes(p)&&(s=!0),s?(o!==""&&a.push(o.trim()),o="",s=!1):o+=p;return(n||o!=="")&&a.push(o.trim()),a}};return vf=e,e.default=e,vf}var yf,Bv;function zp(){if(Bv)return yf;Bv=1;let e=Kn(),t=dw();class r extends e{constructor(a){super(a),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(a){let o=this.selector?this.selector.match(/,\s*/):null,s=o?o[0]:","+this.raw("between","beforeOpen");this.selector=a.join(s)}}return yf=r,r.default=r,e.registerRule(r),yf}var wf,zv;function FC(){if(zv)return wf;zv=1;let e=Yi(),t=OC(),r=Zi(),n=Bp(),a=gs(),o=zp(),s={empty:!0,space:!0};function l(d){for(let u=d.length-1;u>=0;u--){let p=d[u],c=p[3]||p[2];if(c)return c}}class i{constructor(u){this.input=u,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:u,start:{column:1,line:1,offset:0}}}atrule(u){let p=new n;p.name=u[1].slice(1),p.name===""&&this.unnamedAtrule(p,u),this.init(p,u[2]);let c,f,h,m=!1,y=!1,g=[],x=[];for(;!this.tokenizer.endOfFile();){if(u=this.tokenizer.nextToken(),c=u[0],c==="("||c==="["?x.push(c==="("?")":"]"):c==="{"&&x.length>0?x.push("}"):c===x[x.length-1]&&x.pop(),x.length===0)if(c===";"){p.source.end=this.getPosition(u[2]),p.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){y=!0;break}else if(c==="}"){if(g.length>0){for(h=g.length-1,f=g[h];f&&f[0]==="space";)f=g[--h];f&&(p.source.end=this.getPosition(f[3]||f[2]),p.source.end.offset++)}this.end(u);break}else g.push(u);else g.push(u);if(this.tokenizer.endOfFile()){m=!0;break}}p.raws.between=this.spacesAndCommentsFromEnd(g),g.length?(p.raws.afterName=this.spacesAndCommentsFromStart(g),this.raw(p,"params",g),m&&(u=g[g.length-1],p.source.end=this.getPosition(u[3]||u[2]),p.source.end.offset++,this.spaces=p.raws.between,p.raws.between="")):(p.raws.afterName="",p.params=""),y&&(p.nodes=[],this.current=p)}checkMissedSemicolon(u){let p=this.colon(u);if(p===!1)return;let c=0,f;for(let h=p-1;h>=0&&(f=u[h],!(f[0]!=="space"&&(c+=1,c===2)));h--);throw this.input.error("Missed semicolon",f[0]==="word"?f[3]+1:f[2])}colon(u){let p=0,c,f,h;for(let[m,y]of u.entries()){if(c=y,f=c[0],f==="("&&(p+=1),f===")"&&(p-=1),p===0&&f===":")if(!h)this.doubleColon(c);else{if(h[0]==="word"&&h[1]==="progid")continue;return m}h=c}return!1}comment(u){let p=new r;this.init(p,u[2]),p.source.end=this.getPosition(u[3]||u[2]),p.source.end.offset++;let c=u[1].slice(2,-2);if(/^\s*$/.test(c))p.text="",p.raws.left=c,p.raws.right="";else{let f=c.match(/^(\s*)([^]*\S)(\s*)$/);p.text=f[2],p.raws.left=f[1],p.raws.right=f[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(u,p){let c=new e;this.init(c,u[0][2]);let f=u[u.length-1];for(f[0]===";"&&(this.semicolon=!0,u.pop()),c.source.end=this.getPosition(f[3]||f[2]||l(u)),c.source.end.offset++;u[0][0]!=="word";)u.length===1&&this.unknownWord(u),c.raws.before+=u.shift()[1];for(c.source.start=this.getPosition(u[0][2]),c.prop="";u.length;){let x=u[0][0];if(x===":"||x==="space"||x==="comment")break;c.prop+=u.shift()[1]}c.raws.between="";let h;for(;u.length;)if(h=u.shift(),h[0]===":"){c.raws.between+=h[1];break}else h[0]==="word"&&/\w/.test(h[1])&&this.unknownWord([h]),c.raws.between+=h[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let m=[],y;for(;u.length&&(y=u[0][0],!(y!=="space"&&y!=="comment"));)m.push(u.shift());this.precheckMissedSemicolon(u);for(let x=u.length-1;x>=0;x--){if(h=u[x],h[1].toLowerCase()==="!important"){c.important=!0;let v=this.stringFrom(u,x);v=this.spacesFromEnd(u)+v,v!==" !important"&&(c.raws.important=v);break}else if(h[1].toLowerCase()==="important"){let v=u.slice(0),S="";for(let b=x;b>0;b--){let w=v[b][0];if(S.trim().indexOf("!")===0&&w!=="space")break;S=v.pop()[1]+S}S.trim().indexOf("!")===0&&(c.important=!0,c.raws.important=S,u=v)}if(h[0]!=="space"&&h[0]!=="comment")break}u.some(x=>x[0]!=="space"&&x[0]!=="comment")&&(c.raws.between+=m.map(x=>x[1]).join(""),m=[]),this.raw(c,"value",m.concat(u),p),c.value.includes(":")&&!p&&this.checkMissedSemicolon(u)}doubleColon(u){throw this.input.error("Double colon",{offset:u[2]},{offset:u[2]+u[1].length})}emptyRule(u){let p=new o;this.init(p,u[2]),p.selector="",p.raws.between="",this.current=p}end(u){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(u[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(u)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(u){if(this.spaces+=u[1],this.current.nodes){let p=this.current.nodes[this.current.nodes.length-1];p&&p.type==="rule"&&!p.raws.ownSemicolon&&(p.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(u){let p=this.input.fromOffset(u);return{column:p.col,line:p.line,offset:u}}init(u,p){this.current.push(u),u.source={input:this.input,start:this.getPosition(p)},u.raws.before=this.spaces,this.spaces="",u.type!=="comment"&&(this.semicolon=!1)}other(u){let p=!1,c=null,f=!1,h=null,m=[],y=u[1].startsWith("--"),g=[],x=u;for(;x;){if(c=x[0],g.push(x),c==="("||c==="[")h||(h=x),m.push(c==="("?")":"]");else if(y&&f&&c==="{")h||(h=x),m.push("}");else if(m.length===0)if(c===";")if(f){this.decl(g,y);return}else break;else if(c==="{"){this.rule(g);return}else if(c==="}"){this.tokenizer.back(g.pop()),p=!0;break}else c===":"&&(f=!0);else c===m[m.length-1]&&(m.pop(),m.length===0&&(h=null));x=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(p=!0),m.length>0&&this.unclosedBracket(h),p&&f){if(!y)for(;g.length&&(x=g[g.length-1][0],!(x!=="space"&&x!=="comment"));)this.tokenizer.back(g.pop());this.decl(g,y)}else this.unknownWord(g)}parse(){let u;for(;!this.tokenizer.endOfFile();)switch(u=this.tokenizer.nextToken(),u[0]){case"space":this.spaces+=u[1];break;case";":this.freeSemicolon(u);break;case"}":this.end(u);break;case"comment":this.comment(u);break;case"at-word":this.atrule(u);break;case"{":this.emptyRule(u);break;default:this.other(u);break}this.endFile()}precheckMissedSemicolon(){}raw(u,p,c,f){let h,m,y=c.length,g="",x=!0,v,S;for(let b=0;b<y;b+=1)h=c[b],m=h[0],m==="space"&&b===y-1&&!f?x=!1:m==="comment"?(S=c[b-1]?c[b-1][0]:"empty",v=c[b+1]?c[b+1][0]:"empty",!s[S]&&!s[v]?g.slice(-1)===","?x=!1:g+=h[1]:x=!1):g+=h[1];if(!x){let b=c.reduce((w,C)=>w+C[1],"");u.raws[p]={raw:b,value:g}}u[p]=g}rule(u){u.pop();let p=new o;this.init(p,u[0][2]),p.raws.between=this.spacesAndCommentsFromEnd(u),this.raw(p,"selector",u),this.current=p}spacesAndCommentsFromEnd(u){let p,c="";for(;u.length&&(p=u[u.length-1][0],!(p!=="space"&&p!=="comment"));)c=u.pop()[1]+c;return c}spacesAndCommentsFromStart(u){let p,c="";for(;u.length&&(p=u[0][0],!(p!=="space"&&p!=="comment"));)c+=u.shift()[1];return c}spacesFromEnd(u){let p,c="";for(;u.length&&(p=u[u.length-1][0],p==="space");)c=u.pop()[1]+c;return c}stringFrom(u,p){let c="";for(let f=p;f<u.length;f++)c+=u[f][1];return u.splice(p,u.length-p),c}unclosedBlock(){let u=this.current.source.start;throw this.input.error("Unclosed block",u.line,u.column)}unclosedBracket(u){throw this.input.error("Unclosed bracket",{offset:u[2]},{offset:u[2]+1})}unexpectedClose(u){throw this.input.error("Unexpected }",{offset:u[2]},{offset:u[2]+1})}unknownWord(u){throw this.input.error("Unknown word",{offset:u[0][2]},{offset:u[0][2]+u[0][1].length})}unnamedAtrule(u,p){throw this.input.error("At-rule without name",{offset:p[2]},{offset:p[2]+p[1].length})}}return wf=i,wf}var bf,Uv;function Up(){if(Uv)return bf;Uv=1;let e=Kn(),t=FC(),r=Ji();function n(a,o){let s=new r(a,o),l=new t(s);try{l.parse()}catch(i){throw i}return l.root}return bf=n,n.default=n,e.registerParse(n),bf}var Sf,qv;function cw(){if(qv)return Sf;qv=1;let{isClean:e,my:t}=Dp(),r=lw(),n=Ki(),a=Kn(),o=Op(),s=iw(),l=Fp(),i=Up(),d=gs(),u={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},p={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},f=0;function h(S){return typeof S=="object"&&typeof S.then=="function"}function m(S){let b=!1,w=u[S.type];return S.type==="decl"?b=S.prop.toLowerCase():S.type==="atrule"&&(b=S.name.toLowerCase()),b&&S.append?[w,w+"-"+b,f,w+"Exit",w+"Exit-"+b]:b?[w,w+"-"+b,w+"Exit",w+"Exit-"+b]:S.append?[w,f,w+"Exit"]:[w,w+"Exit"]}function y(S){let b;return S.type==="document"?b=["Document",f,"DocumentExit"]:S.type==="root"?b=["Root",f,"RootExit"]:b=m(S),{eventIndex:0,events:b,iterator:0,node:S,visitorIndex:0,visitors:[]}}function g(S){return S[e]=!1,S.nodes&&S.nodes.forEach(b=>g(b)),S}let x={};class v{constructor(b,w,C){this.stringified=!1,this.processed=!1;let L;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))L=g(w);else if(w instanceof v||w instanceof l)L=g(w.root),w.map&&(typeof C.map>"u"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=w.map);else{let k=i;C.syntax&&(k=C.syntax.parse),C.parser&&(k=C.parser),k.parse&&(k=k.parse);try{L=k(w,C)}catch(_){this.processed=!0,this.error=_}L&&!L[t]&&a.rebuild(L)}this.result=new l(b,L,C),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(k=>typeof k=="object"&&k.prepare?{...k,...k.prepare(this.result)}:k)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(b){return this.async().catch(b)}finally(b){return this.async().then(b,b)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(b,w){let C=this.result.lastPlugin;try{w&&w.addToError(b),this.error=b,b.name==="CssSyntaxError"&&!b.plugin?(b.plugin=C.postcssPlugin,b.setMessage()):C.postcssVersion}catch(L){console&&console.error&&console.error(L)}return b}prepareVisitors(){this.listeners={};let b=(w,C,L)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([w,L])};for(let w of this.plugins)if(typeof w=="object")for(let C in w){if(!p[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[C])if(typeof w[C]=="object")for(let L in w[C])L==="*"?b(w,C,w[C][L]):b(w,C+"-"+L.toLowerCase(),w[C][L]);else typeof w[C]=="function"&&b(w,C,w[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let b=0;b<this.plugins.length;b++){let w=this.plugins[b],C=this.runOnRoot(w);if(h(C))try{await C}catch(L){throw this.handleError(L)}}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];){b[e]=!0;let w=[y(b)];for(;w.length>0;){let C=this.visitTick(w);if(h(C))try{await C}catch(L){let k=w[w.length-1].node;throw this.handleError(L,k)}}}if(this.listeners.OnceExit)for(let[w,C]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(b.type==="document"){let L=b.nodes.map(k=>C(k,this.helpers));await Promise.all(L)}else await C(b,this.helpers)}catch(L){throw this.handleError(L)}}}return this.processed=!0,this.stringify()}runOnRoot(b){this.result.lastPlugin=b;try{if(typeof b=="object"&&b.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(C=>b.Once(C,this.helpers));return h(w[0])?Promise.all(w):w}return b.Once(this.result.root,this.helpers)}else if(typeof b=="function")return b(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let b=this.result.opts,w=n;b.syntax&&(w=b.syntax.stringify),b.stringifier&&(w=b.stringifier),w.stringify&&(w=w.stringify);let L=new r(w,this.result.root,this.result.opts).generate();return this.result.css=L[0],this.result.map=L[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let b of this.plugins){let w=this.runOnRoot(b);if(h(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];)b[e]=!0,this.walkSync(b);if(this.listeners.OnceExit)if(b.type==="document")for(let w of b.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,b)}return this.result}then(b,w){return this.async().then(b,w)}toString(){return this.css}visitSync(b,w){for(let[C,L]of b){this.result.lastPlugin=C;let k;try{k=L(w,this.helpers)}catch(_){throw this.handleError(_,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(h(k))throw this.getAsyncError()}}visitTick(b){let w=b[b.length-1],{node:C,visitors:L}=w;if(C.type!=="root"&&C.type!=="document"&&!C.parent){b.pop();return}if(L.length>0&&w.visitorIndex<L.length){let[_,N]=L[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===L.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=_;try{return N(C.toProxy(),this.helpers)}catch(P){throw this.handleError(P,C)}}if(w.iterator!==0){let _=w.iterator,N;for(;N=C.nodes[C.indexes[_]];)if(C.indexes[_]+=1,!N[e]){N[e]=!0,b.push(y(N));return}w.iterator=0,delete C.indexes[_]}let k=w.events;for(;w.eventIndex<k.length;){let _=k[w.eventIndex];if(w.eventIndex+=1,_===f){C.nodes&&C.nodes.length&&(C[e]=!0,w.iterator=C.getIterator());return}else if(this.listeners[_]){w.visitors=this.listeners[_];return}}b.pop()}walkSync(b){b[e]=!0;let w=m(b);for(let C of w)if(C===f)b.nodes&&b.each(L=>{L[e]||this.walkSync(L)});else{let L=this.listeners[C];if(L&&this.visitSync(L,b.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return v.registerPostcss=S=>{x=S},Sf=v,v.default=v,d.registerLazyResult(v),o.registerLazyResult(v),Sf}var Cf,$v;function BC(){if($v)return Cf;$v=1;let e=lw(),t=Ki(),r=iw(),n=Up(),a=Fp();class o{constructor(l,i,d){i=i.toString(),this.stringified=!1,this._processor=l,this._css=i,this._opts=d,this._map=void 0;let u,p=t;this.result=new a(this._processor,u,this._opts),this.result.css=i;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let f=new e(p,u,this._opts,i);if(f.isMap()){let[h,m]=f.generate();h&&(this.result.css=h),m&&(this.result.map=m)}else f.clearAnnotation(),this.result.css=f.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(l){return this.async().catch(l)}finally(l){return this.async().then(l,l)}sync(){if(this.error)throw this.error;return this.result}then(l,i){return this.async().then(l,i)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let l,i=n;try{l=i(this._css,this._opts)}catch(d){this.error=d}if(this.error)throw this.error;return this._root=l,l}get[Symbol.toStringTag](){return"NoWorkResult"}}return Cf=o,o.default=o,Cf}var Lf,Hv;function zC(){if(Hv)return Lf;Hv=1;let e=BC(),t=cw(),r=Op(),n=gs();class a{constructor(s=[]){this.version="8.4.38",this.plugins=this.normalize(s)}normalize(s){let l=[];for(let i of s)if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),typeof i=="object"&&Array.isArray(i.plugins))l=l.concat(i.plugins);else if(typeof i=="object"&&i.postcssPlugin)l.push(i);else if(typeof i=="function")l.push(i);else if(!(typeof i=="object"&&(i.parse||i.stringify)))throw new Error(i+" is not a PostCSS plugin");return l}process(s,l={}){return!this.plugins.length&&!l.parser&&!l.stringifier&&!l.syntax?new e(this,s,l):new t(this,s,l)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return Lf=a,a.default=a,n.registerProcessor(a),r.registerProcessor(a),Lf}var kf,jv;function UC(){if(jv)return kf;jv=1;let e=Yi(),t=sw(),r=Zi(),n=Bp(),a=Ji(),o=gs(),s=zp();function l(i,d){if(Array.isArray(i))return i.map(c=>l(c));let{inputs:u,...p}=i;if(u){d=[];for(let c of u){let f={...c,__proto__:a.prototype};f.map&&(f.map={...f.map,__proto__:t.prototype}),d.push(f)}}if(p.nodes&&(p.nodes=i.nodes.map(c=>l(c,d))),p.source){let{inputId:c,...f}=p.source;p.source=f,c!=null&&(p.source.input=d[c])}if(p.type==="root")return new o(p);if(p.type==="decl")return new e(p);if(p.type==="rule")return new s(p);if(p.type==="comment")return new r(p);if(p.type==="atrule")return new n(p);throw new Error("Unknown node type: "+i.type)}return kf=l,l.default=l,kf}var If,Wv;function qC(){if(Wv)return If;Wv=1;let e=Ap(),t=Yi(),r=cw(),n=Kn(),a=zC(),o=Ki(),s=UC(),l=Op(),i=uw(),d=Zi(),u=Bp(),p=Fp(),c=Ji(),f=Up(),h=dw(),m=zp(),y=gs(),g=Qi();function x(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new a(v)}return x.plugin=function(S,b){let w=!1;function C(...k){console&&console.warn&&!w&&(w=!0,console.warn(S+`: postcss.plugin was deprecated. Migration guide:
|
|
33
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(S+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
34
|
+
https://www.w3ctech.com/topic/2226`));let _=b(...k);return _.postcssPlugin=S,_.postcssVersion=new a().version,_}let L;return Object.defineProperty(C,"postcss",{get(){return L||(L=C()),L}}),C.process=function(k,_,N){return x([C(N)]).process(k,_)},C},x.stringify=o,x.parse=f,x.fromJSON=s,x.list=h,x.comment=v=>new d(v),x.atRule=v=>new u(v),x.decl=v=>new t(v),x.rule=v=>new m(v),x.root=v=>new y(v),x.document=v=>new l(v),x.CssSyntaxError=e,x.Declaration=t,x.Container=n,x.Processor=a,x.Document=l,x.Comment=d,x.Warning=i,x.AtRule=u,x.Result=p,x.Input=c,x.Rule=m,x.Root=y,x.Node=g,r.registerPostcss(x),If=x,x.default=x,If}var $C=qC(),Be=EC($C);Be.stringify;Be.fromJSON;Be.plugin;Be.parse;Be.list;Be.document;Be.comment;Be.atRule;Be.rule;Be.decl;Be.root;Be.CssSyntaxError;Be.Declaration;Be.Container;Be.Processor;Be.Document;Be.Comment;Be.Warning;Be.AtRule;Be.Result;Be.Input;Be.Rule;Be.Root;Be.Node;var Vv={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function HC(e){let t=Vv[e.tagName]?Vv[e.tagName]:e.tagName;return t==="link"&&e.attributes._cssText&&(t="style"),t}function eu(e,t){let r=t?.stylesWithHoverClass.get(e);if(r)return r;let n=e;try{n=Be([MC,RC]).process(e).css}catch(a){console.warn("Failed to adapt css for replay",a)}return t?.stylesWithHoverClass.set(e,n),n}function Gv(){return{stylesWithHoverClass:new Map}}var jC="rrweb-snapshot.rebuild() cannot rebuild into an unprotected browser document. Use rebuildIntoSandboxedIframe() or set UNSAFE_allowUnprotectedRebuild: true only when you accept the script-execution risk.",Xv="rrweb-snapshot.createSandboxedIframe() requires root to be connected to a document before creating a sandboxed iframe.",fw=new WeakSet;function WC(e){if(!e||e.tagName!=="IFRAME"||!("sandbox"in e))return!1;let t=Array.from(e.sandbox);return t.length===1&&t[0]==="allow-same-origin"}function VC(e){if(e.UNSAFE_allowUnprotectedRebuild)return;let t=e.doc.defaultView;if(t&&!(fw.has(e.doc)&&WC(t.frameElement)))throw new Error(jC)}function GC(e,t,r,n){let a=[];for(let i of e.childNodes)i.type===ae.Text&&a.push(i);let o=t.split("/* rr_split */");for(;o.length>1&&o.length>a.length;)o.splice(-2,2,o.slice(-2).join(""));let s="";r&&(s=eu(o.join(""),n));let l=0;for(let i=0;i<a.length&&i!==o.length;i++){let d=a[i];if(!r)d.textContent=o[i];else if(i<o.length-1){let u=l,p=o[i+1].length;p=Math.min(p,30);let c=!1;for(;p>2;p--){let f=o[i+1].substring(0,p),h=s.substring(l).indexOf(f);if(c=h!==-1,c){u+=h;break}}c||(u+=o[i].length),d.textContent=s.substring(l,u),l=u}else d.textContent=s.substring(l)}}function XC(e,t,r,n){let{doc:a,hackCss:o,cache:s}=n;e.childNodes.length?GC(e,r,o,s):(o&&(r=eu(r,s)),t.appendChild(a.createTextNode(r)))}function KC(e,t){var r;let{doc:n,hackCss:a,cache:o}=t;switch(e.type){case ae.Document:return n.implementation.createDocument(null,"",null);case ae.DocumentType:return n.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case ae.Element:{let s=HC(e),l;e.isSVG?l=n.createElementNS("http://www.w3.org/2000/svg",s):(e.isCustom&&((r=n.defaultView)!=null&&r.customElements)&&!n.defaultView.customElements.get(e.tagName)&&n.defaultView.customElements.define(e.tagName,class extends n.defaultView.HTMLElement{}),l=n.createElement(s));let i={};for(let d in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,d))continue;let u=e.attributes[d];if(!(s==="option"&&d==="selected"&&u===!1)&&u!==null){if(u===!0&&(u=""),d.startsWith("rr_")){i[d]=u;continue}if(typeof u=="string"){if(s==="style"&&d==="_cssText"){XC(e,l,u,t);continue}else if(s==="textarea"&&d==="value"){l.appendChild(n.createTextNode(u)),e.childNodes=[];continue}}try{if(e.isSVG&&d==="xlink:href")l.setAttributeNS("http://www.w3.org/1999/xlink",d,u.toString());else if(d==="onload"||d==="onclick"||d.substring(0,7)==="onmouse")l.setAttribute("_"+d,u.toString());else if(s==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&d==="content"){l.setAttribute("csp-content",u.toString());continue}else s==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||s==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Pp(e.attributes.href)==="js"||(s==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?l.setAttribute("rrweb-original-srcset",e.attributes.srcset):l.setAttribute(d,u.toString()))}catch{}}}for(let d in i){let u=i[d];if(s==="canvas"&&d==="rr_dataURL"){let p=n.createElement("img");p.onload=()=>{let c=l.getContext("2d");c&&c.drawImage(p,0,0,p.width,p.height)},p.src=u.toString(),l.RRNodeType&&(l.rr_dataURL=u.toString())}else if(s==="img"&&d==="rr_dataURL"){let p=l;p.currentSrc.startsWith("data:")||(p.setAttribute("rrweb-original-src",e.attributes.src),p.src=u.toString())}if(d==="rr_width")l.style.setProperty("width",u.toString());else if(d==="rr_height")l.style.setProperty("height",u.toString());else if(d==="rr_mediaCurrentTime"&&typeof u=="number")l.currentTime=u;else if(d==="rr_mediaState")switch(u){case"played":l.play().catch(p=>console.warn("media playback error",p));break;case"paused":l.pause();break}else d==="rr_mediaPlaybackRate"&&typeof u=="number"?l.playbackRate=u:d==="rr_mediaMuted"&&typeof u=="boolean"?l.muted=u:d==="rr_mediaLoop"&&typeof u=="boolean"?l.loop=u:d==="rr_mediaVolume"&&typeof u=="number"?l.volume=u:d==="rr_open_mode"&&l.setAttribute("rr_open_mode",u)}if(e.isShadowHost)if(!l.shadowRoot)l.attachShadow({mode:"open"});else for(;l.shadowRoot.firstChild;)l.shadowRoot.removeChild(l.shadowRoot.firstChild);return l}case ae.Text:return e.isStyle&&a?n.createTextNode(eu(e.textContent,o)):n.createTextNode(e.textContent);case ae.CDATA:return n.createCDATASection(e.textContent);case ae.Comment:return n.createComment(e.textContent);default:return null}}function us(e,t){let{doc:r,mirror:n,skipChild:a=!1,hackCss:o=!0,afterAppend:s,cache:l}=t;if(n.has(e.id)){let d=n.getNode(e.id),u=n.getMeta(d);if(nC(u,e))return n.getNode(e.id)}let i=KC(e,{doc:r,hackCss:o,cache:l});if(!i)return null;if(e.rootId&&n.getNode(e.rootId)!==r&&n.replace(e.rootId,r),e.type===ae.Document&&(r.close(),r.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==ae.DocumentType&&(e.childNodes[0].type===ae.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),i=r),n.add(i,e),(e.type===ae.Document||e.type===ae.Element)&&!a)for(let d of e.childNodes){let u=us(d,{doc:r,mirror:n,skipChild:!1,hackCss:o,afterAppend:s,cache:l});if(!u){console.warn("Failed to rebuild",d);continue}if(d.isShadow&&Np(i)&&i.shadowRoot)i.shadowRoot.appendChild(u);else if(e.type===ae.Document&&d.type==ae.Element){let p=u,c=null;p.childNodes.forEach(f=>{f.nodeName==="BODY"&&(c=f)}),c?(p.removeChild(c),i.appendChild(u),p.appendChild(c)):i.appendChild(u)}else i.appendChild(u);s&&s(u,d.id)}return i}function QC(e,t){function r(n){t(n)}for(let n of e.getIds())e.has(n)&&r(e.getNode(n))}function YC(e,t){let r=t.getMeta(e);if(r?.type!==ae.Element)return;let n=e;for(let a in r.attributes){if(!(Object.prototype.hasOwnProperty.call(r.attributes,a)&&a.startsWith("rr_")))continue;let o=r.attributes[a];a==="rr_scrollLeft"&&(n.scrollLeft=o),a==="rr_scrollTop"&&(n.scrollTop=o)}}function JC(e,t){VC(t);let{doc:r,onVisit:n,hackCss:a=!0,afterAppend:o,cache:s,mirror:l=new fs}=t,i=us(e,{doc:r,mirror:l,skipChild:!1,hackCss:a,afterAppend:o,cache:s});return QC(l,d=>{n&&n(d),YC(d,l)}),i}function ZC(e){var t;if(!e.root.isConnected)throw new Error(Xv);let r=e.root.ownerDocument.createElement("iframe");for(let[a,o]of Object.entries(e.iframeAttributes||{}))a!=="sandbox"&&r.setAttribute(a,o);r.setAttribute("sandbox","allow-same-origin"),e.root.appendChild(r);let n=r.contentDocument;if(!n||!r.contentWindow)throw(t=r.parentNode)==null||t.removeChild(r),new Error(Xv);return fw.add(n),r}var eL=Object.defineProperty,tL=(e,t,r)=>t in e?eL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,U=(e,t,r)=>tL(e,typeof t!="symbol"?t+"":t,r),rL=Object.defineProperty,nL=(e,t,r)=>t in e?rL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Kv=(e,t,r)=>nL(e,typeof t!="symbol"?t+"":t,r);Date.now().toString();var aL=class{constructor(){Kv(this,"idNodeMap",new Map),Kv(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){let n=this.getNode(t);if(n){let a=this.nodeMetaMap.get(n);a&&this.nodeMetaMap.set(r,a)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function oL(){return new aL}function sL(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function lL(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var ki={exports:{}},Qv;function iL(){if(Qv)return ki.exports;Qv=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 ki.exports=t(),ki.exports.createColors=t,ki.exports}var uL={},dL=Object.freeze(Object.defineProperty({__proto__:null,default:uL},Symbol.toStringTag,{value:"Module"})),yr=lL(dL),_f,Yv;function qp(){if(Yv)return _f;Yv=1;let e=iL(),t=yr;class r extends Error{constructor(a,o,s,l,i,d){super(a),this.name="CssSyntaxError",this.reason=a,i&&(this.file=i),l&&(this.source=l),d&&(this.plugin=d),typeof o<"u"&&typeof s<"u"&&(typeof o=="number"?(this.line=o,this.column=s):(this.line=o.line,this.column=o.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(a){if(!this.source)return"";let o=this.source;a==null&&(a=e.isColorSupported),t&&a&&(o=t(o));let s=o.split(/\r?\n/),l=Math.max(this.line-3,0),i=Math.min(this.line+2,s.length),d=String(i).length,u,p;if(a){let{bold:c,gray:f,red:h}=e.createColors(!0);u=m=>c(h(m)),p=m=>f(m)}else u=p=c=>c;return s.slice(l,i).map((c,f)=>{let h=l+1+f,m=" "+(" "+h).slice(-d)+" | ";if(h===this.line){let y=p(m.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+p(m)+c+`
|
|
35
|
+
`+y+u("^")}return" "+p(m)+c}).join(`
|
|
36
|
+
`)}toString(){let a=this.showSourceCode();return a&&(a=`
|
|
37
|
+
|
|
38
|
+
`+a+`
|
|
39
|
+
`),this.name+": "+this.message+a}}return _f=r,r.default=r,_f}var Ii={},Jv;function $p(){return Jv||(Jv=1,Ii.isClean=Symbol("isClean"),Ii.my=Symbol("my")),Ii}var Mf,Zv;function pw(){if(Zv)return Mf;Zv=1;let e={after:`
|
|
40
40
|
`,beforeClose:`
|
|
41
41
|
`,beforeComment:`
|
|
42
42
|
`,beforeDecl:`
|
|
43
43
|
`,beforeOpen:" ",beforeRule:`
|
|
44
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(
|
|
45
|
-
`)){let d=this.raw(
|
|
46
|
-
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(
|
|
47
|
-
`)&&(
|
|
48
|
-
`)&&(
|
|
49
|
-
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(
|
|
50
|
-
`);return o=
|
|
51
|
-
`?(
|
|
52
|
-
`);g=new Array(v.length);let
|
|
44
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(n){return n[0].toUpperCase()+n.slice(1)}class r{constructor(a){this.builder=a}atrule(a,o){let s="@"+a.name,l=a.params?this.rawValue(a,"params"):"";if(typeof a.raws.afterName<"u"?s+=a.raws.afterName:l&&(s+=" "),a.nodes)this.block(a,s+l);else{let i=(a.raws.between||"")+(o?";":"");this.builder(s+l+i,a)}}beforeAfter(a,o){let s;a.type==="decl"?s=this.raw(a,null,"beforeDecl"):a.type==="comment"?s=this.raw(a,null,"beforeComment"):o==="before"?s=this.raw(a,null,"beforeRule"):s=this.raw(a,null,"beforeClose");let l=a.parent,i=0;for(;l&&l.type!=="root";)i+=1,l=l.parent;if(s.includes(`
|
|
45
|
+
`)){let d=this.raw(a,null,"indent");if(d.length)for(let u=0;u<i;u++)s+=d}return s}block(a,o){let s=this.raw(a,"between","beforeOpen");this.builder(o+s+"{",a,"start");let l;a.nodes&&a.nodes.length?(this.body(a),l=this.raw(a,"after")):l=this.raw(a,"after","emptyBody"),l&&this.builder(l),this.builder("}",a,"end")}body(a){let o=a.nodes.length-1;for(;o>0&&a.nodes[o].type==="comment";)o-=1;let s=this.raw(a,"semicolon");for(let l=0;l<a.nodes.length;l++){let i=a.nodes[l],d=this.raw(i,"before");d&&this.builder(d),this.stringify(i,o!==l||s)}}comment(a){let o=this.raw(a,"left","commentLeft"),s=this.raw(a,"right","commentRight");this.builder("/*"+o+a.text+s+"*/",a)}decl(a,o){let s=this.raw(a,"between","colon"),l=a.prop+s+this.rawValue(a,"value");a.important&&(l+=a.raws.important||" !important"),o&&(l+=";"),this.builder(l,a)}document(a){this.body(a)}raw(a,o,s){let l;if(s||(s=o),o&&(l=a.raws[o],typeof l<"u"))return l;let i=a.parent;if(s==="before"&&(!i||i.type==="root"&&i.first===a||i&&i.type==="document"))return"";if(!i)return e[s];let d=a.root();if(d.rawCache||(d.rawCache={}),typeof d.rawCache[s]<"u")return d.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(a,s);{let u="raw"+t(s);this[u]?l=this[u](d,a):d.walk(p=>{if(l=p.raws[o],typeof l<"u")return!1})}return typeof l>"u"&&(l=e[s]),d.rawCache[s]=l,l}rawBeforeClose(a){let o;return a.walk(s=>{if(s.nodes&&s.nodes.length>0&&typeof s.raws.after<"u")return o=s.raws.after,o.includes(`
|
|
46
|
+
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(a,o){let s;return a.walkComments(l=>{if(typeof l.raws.before<"u")return s=l.raws.before,s.includes(`
|
|
47
|
+
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(o,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(a,o){let s;return a.walkDecls(l=>{if(typeof l.raws.before<"u")return s=l.raws.before,s.includes(`
|
|
48
|
+
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(o,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(a){let o;return a.walk(s=>{if(s.type!=="decl"&&(o=s.raws.between,typeof o<"u"))return!1}),o}rawBeforeRule(a){let o;return a.walk(s=>{if(s.nodes&&(s.parent!==a||a.first!==s)&&typeof s.raws.before<"u")return o=s.raws.before,o.includes(`
|
|
49
|
+
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(a){let o;return a.walkDecls(s=>{if(typeof s.raws.between<"u")return o=s.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(a){let o;return a.walk(s=>{if(s.nodes&&s.nodes.length===0&&(o=s.raws.after,typeof o<"u"))return!1}),o}rawIndent(a){if(a.raws.indent)return a.raws.indent;let o;return a.walk(s=>{let l=s.parent;if(l&&l!==a&&l.parent&&l.parent===a&&typeof s.raws.before<"u"){let i=s.raws.before.split(`
|
|
50
|
+
`);return o=i[i.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(a){let o;return a.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(o=s.raws.semicolon,typeof o<"u"))return!1}),o}rawValue(a,o){let s=a[o],l=a.raws[o];return l&&l.value===s?l.raw:s}root(a){this.body(a),a.raws.after&&this.builder(a.raws.after)}rule(a){this.block(a,this.rawValue(a,"selector")),a.raws.ownSemicolon&&this.builder(a.raws.ownSemicolon,a,"end")}stringify(a,o){if(!this[a.type])throw new Error("Unknown AST node type "+a.type+". Maybe you need to change PostCSS stringifier.");this[a.type](a,o)}}return Mf=r,r.default=r,Mf}var Rf,ey;function tu(){if(ey)return Rf;ey=1;let e=pw();function t(r,n){new e(n).stringify(r)}return Rf=t,t.default=t,Rf}var Ef,ty;function ru(){if(ty)return Ef;ty=1;let{isClean:e,my:t}=$p(),r=qp(),n=pw(),a=tu();function o(l,i){let d=new l.constructor;for(let u in l){if(!Object.prototype.hasOwnProperty.call(l,u)||u==="proxyCache")continue;let p=l[u],c=typeof p;u==="parent"&&c==="object"?i&&(d[u]=i):u==="source"?d[u]=p:Array.isArray(p)?d[u]=p.map(f=>o(f,d)):(c==="object"&&p!==null&&(p=o(p)),d[u]=p)}return d}class s{constructor(i={}){this.raws={},this[e]=!1,this[t]=!0;for(let d in i)if(d==="nodes"){this.nodes=[];for(let u of i[d])typeof u.clone=="function"?this.append(u.clone()):this.append(u)}else this[d]=i[d]}addToError(i){if(i.postcssNode=this,i.stack&&this.source&&/\n\s{4}at /.test(i.stack)){let d=this.source;i.stack=i.stack.replace(/\n\s{4}at /,`$&${d.input.from}:${d.start.line}:${d.start.column}$&`)}return i}after(i){return this.parent.insertAfter(this,i),this}assign(i={}){for(let d in i)this[d]=i[d];return this}before(i){return this.parent.insertBefore(this,i),this}cleanRaws(i){delete this.raws.before,delete this.raws.after,i||delete this.raws.between}clone(i={}){let d=o(this);for(let u in i)d[u]=i[u];return d}cloneAfter(i={}){let d=this.clone(i);return this.parent.insertAfter(this,d),d}cloneBefore(i={}){let d=this.clone(i);return this.parent.insertBefore(this,d),d}error(i,d={}){if(this.source){let{end:u,start:p}=this.rangeBy(d);return this.source.input.error(i,{column:p.column,line:p.line},{column:u.column,line:u.line},d)}return new r(i)}getProxyProcessor(){return{get(i,d){return d==="proxyOf"?i:d==="root"?()=>i.root().toProxy():i[d]},set(i,d,u){return i[d]===u||(i[d]=u,(d==="prop"||d==="value"||d==="name"||d==="params"||d==="important"||d==="text")&&i.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let i=this;for(;i=i.parent;)i[e]=!1}}next(){if(!this.parent)return;let i=this.parent.index(this);return this.parent.nodes[i+1]}positionBy(i,d){let u=this.source.start;if(i.index)u=this.positionInside(i.index,d);else if(i.word){d=this.toString();let p=d.indexOf(i.word);p!==-1&&(u=this.positionInside(p,d))}return u}positionInside(i,d){let u=d||this.toString(),p=this.source.start.column,c=this.source.start.line;for(let f=0;f<i;f++)u[f]===`
|
|
51
|
+
`?(p=1,c+=1):p+=1;return{column:p,line:c}}prev(){if(!this.parent)return;let i=this.parent.index(this);return this.parent.nodes[i-1]}rangeBy(i){let d={column:this.source.start.column,line:this.source.start.line},u=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:d.column+1,line:d.line};if(i.word){let p=this.toString(),c=p.indexOf(i.word);c!==-1&&(d=this.positionInside(c,p),u=this.positionInside(c+i.word.length,p))}else i.start?d={column:i.start.column,line:i.start.line}:i.index&&(d=this.positionInside(i.index)),i.end?u={column:i.end.column,line:i.end.line}:typeof i.endIndex=="number"?u=this.positionInside(i.endIndex):i.index&&(u=this.positionInside(i.index+1));return(u.line<d.line||u.line===d.line&&u.column<=d.column)&&(u={column:d.column+1,line:d.line}),{end:u,start:d}}raw(i,d){return new n().raw(this,i,d)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...i){if(this.parent){let d=this,u=!1;for(let p of i)p===this?u=!0:u?(this.parent.insertAfter(d,p),d=p):this.parent.insertBefore(d,p);u||this.remove()}return this}root(){let i=this;for(;i.parent&&i.parent.type!=="document";)i=i.parent;return i}toJSON(i,d){let u={},p=d==null;d=d||new Map;let c=0;for(let f in this){if(!Object.prototype.hasOwnProperty.call(this,f)||f==="parent"||f==="proxyCache")continue;let h=this[f];if(Array.isArray(h))u[f]=h.map(m=>typeof m=="object"&&m.toJSON?m.toJSON(null,d):m);else if(typeof h=="object"&&h.toJSON)u[f]=h.toJSON(null,d);else if(f==="source"){let m=d.get(h.input);m==null&&(m=c,d.set(h.input,c),c++),u[f]={end:h.end,inputId:m,start:h.start}}else u[f]=h}return p&&(u.inputs=[...d.keys()].map(f=>f.toJSON())),u}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(i=a){i.stringify&&(i=i.stringify);let d="";return i(this,u=>{d+=u}),d}warn(i,d,u){let p={node:this};for(let c in u)p[c]=u[c];return i.warn(d,p)}get proxyOf(){return this}}return Ef=s,s.default=s,Ef}var Nf,ry;function nu(){if(ry)return Nf;ry=1;let e=ru();class t extends e{constructor(n){n&&typeof n.value<"u"&&typeof n.value!="string"&&(n={...n,value:String(n.value)}),super(n),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Nf=t,t.default=t,Nf}var Pf,ny;function cL(){if(ny)return Pf;ny=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Pf={nanoid:(n=21)=>{let a="",o=n;for(;o--;)a+=e[Math.random()*64|0];return a},customAlphabet:(n,a=21)=>(o=a)=>{let s="",l=o;for(;l--;)s+=n[Math.random()*n.length|0];return s}},Pf}var Tf,ay;function mw(){if(ay)return Tf;ay=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=yr,{existsSync:r,readFileSync:n}=yr,{dirname:a,join:o}=yr;function s(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}class l{constructor(d,u){if(u.map===!1)return;this.loadAnnotation(d),this.inline=this.startWith(this.annotation,"data:");let p=u.map?u.map.prev:void 0,c=this.loadMap(u.from,p);!this.mapFile&&u.from&&(this.mapFile=u.from),this.mapFile&&(this.root=a(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(d){let u=/^data:application\/json;charset=utf-?8;base64,/,p=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,f=/^data:application\/json,/;if(c.test(d)||f.test(d))return decodeURIComponent(d.substr(RegExp.lastMatch.length));if(u.test(d)||p.test(d))return s(d.substr(RegExp.lastMatch.length));let h=d.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+h)}getAnnotationURL(d){return d.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(d){return typeof d!="object"?!1:typeof d.mappings=="string"||typeof d._mappings=="string"||Array.isArray(d.sections)}loadAnnotation(d){let u=d.match(/\/\*\s*# sourceMappingURL=/gm);if(!u)return;let p=d.lastIndexOf(u.pop()),c=d.indexOf("*/",p);p>-1&&c>-1&&(this.annotation=this.getAnnotationURL(d.substring(p,c)))}loadFile(d){if(this.root=a(d),r(d))return this.mapFile=d,n(d,"utf-8").toString().trim()}loadMap(d,u){if(u===!1)return!1;if(u){if(typeof u=="string")return u;if(typeof u=="function"){let p=u(d);if(p){let c=this.loadFile(p);if(!c)throw new Error("Unable to load previous source map: "+p.toString());return c}}else{if(u instanceof e)return t.fromSourceMap(u).toString();if(u instanceof t)return u.toString();if(this.isMap(u))return JSON.stringify(u);throw new Error("Unsupported previous source map format: "+u.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let p=this.annotation;return d&&(p=o(a(d),p)),this.loadFile(p)}}}startWith(d,u){return d?d.substr(0,u.length)===u:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Tf=l,l.default=l,Tf}var Af,oy;function au(){if(oy)return Af;oy=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=yr,{fileURLToPath:r,pathToFileURL:n}=yr,{isAbsolute:a,resolve:o}=yr,{nanoid:s}=cL(),l=yr,i=qp(),d=mw(),u=Symbol("fromOffsetCache"),p=!!(e&&t),c=!!(o&&a);class f{constructor(m,y={}){if(m===null||typeof m>"u"||typeof m=="object"&&!m.toString)throw new Error(`PostCSS received ${m} instead of CSS string`);if(this.css=m.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,y.from&&(!c||/^\w+:\/\//.test(y.from)||a(y.from)?this.file=y.from:this.file=o(y.from)),c&&p){let g=new d(this.css,y);if(g.text){this.map=g;let x=g.consumer().file;!this.file&&x&&(this.file=this.mapResolve(x))}}this.file||(this.id="<input css "+s(6)+">"),this.map&&(this.map.file=this.from)}error(m,y,g,x={}){let v,S,b;if(y&&typeof y=="object"){let C=y,L=g;if(typeof C.offset=="number"){let k=this.fromOffset(C.offset);y=k.line,g=k.col}else y=C.line,g=C.column;if(typeof L.offset=="number"){let k=this.fromOffset(L.offset);S=k.line,b=k.col}else S=L.line,b=L.column}else if(!g){let C=this.fromOffset(y);y=C.line,g=C.col}let w=this.origin(y,g,S,b);return w?v=new i(m,w.endLine===void 0?w.line:{column:w.column,line:w.line},w.endLine===void 0?w.column:{column:w.endColumn,line:w.endLine},w.source,w.file,x.plugin):v=new i(m,S===void 0?y:{column:g,line:y},S===void 0?g:{column:b,line:S},this.css,this.file,x.plugin),v.input={column:g,endColumn:b,endLine:S,line:y,source:this.css},this.file&&(n&&(v.input.url=n(this.file).toString()),v.input.file=this.file),v}fromOffset(m){let y,g;if(this[u])g=this[u];else{let v=this.css.split(`
|
|
52
|
+
`);g=new Array(v.length);let S=0;for(let b=0,w=v.length;b<w;b++)g[b]=S,S+=v[b].length+1;this[u]=g}y=g[g.length-1];let x=0;if(m>=y)x=g.length-1;else{let v=g.length-2,S;for(;x<v;)if(S=x+(v-x>>1),m<g[S])v=S-1;else if(m>=g[S+1])x=S+1;else{x=S;break}}return{col:m-g[x]+1,line:x+1}}mapResolve(m){return/^\w+:\/\//.test(m)?m:o(this.map.consumer().sourceRoot||this.map.root||".",m)}origin(m,y,g,x){if(!this.map)return!1;let v=this.map.consumer(),S=v.originalPositionFor({column:y,line:m});if(!S.source)return!1;let b;typeof g=="number"&&(b=v.originalPositionFor({column:x,line:g}));let w;a(S.source)?w=n(S.source):w=new URL(S.source,this.map.consumer().sourceRoot||n(this.map.mapFile));let C={column:S.column,endColumn:b&&b.column,endLine:b&&b.line,line:S.line,url:w.toString()};if(w.protocol==="file:")if(r)C.file=r(w);else throw new Error("file: protocol is not available in this PostCSS build");let L=v.sourceContentFor(S.source);return L&&(C.source=L),C}toJSON(){let m={};for(let y of["hasBOM","css","file","id"])this[y]!=null&&(m[y]=this[y]);return this.map&&(m.map={...this.map},m.map.consumerCache&&(m.map.consumerCache=void 0)),m}get from(){return this.file||this.id}}return Af=f,f.default=f,l&&l.registerInput&&l.registerInput(f),Af}var Df,sy;function hw(){if(sy)return Df;sy=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=yr,{dirname:r,relative:n,resolve:a,sep:o}=yr,{pathToFileURL:s}=yr,l=au(),i=!!(e&&t),d=!!(r&&a&&n&&o);class u{constructor(c,f,h,m){this.stringify=c,this.mapOpts=h.map||{},this.root=f,this.opts=h,this.css=m,this.originalCSS=m,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let f=`
|
|
53
53
|
`;this.css.includes(`\r
|
|
54
|
-
`)&&(
|
|
55
|
-
`),this.css+=
|
|
56
|
-
`),p=x.length-g):p+=x.length,v&&b!=="start"){let w=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==w.last||w.raws.semicolon)&&(v.source&&v.source.end?(m.source=this.sourcePath(v),m.original.line=v.source.end.line,m.original.column=v.source.end.column-1,m.generated.line=c,m.generated.column=p-2,this.map.addMapping(m)):(m.source=h,m.original.line=1,m.original.column=0,m.generated.line=c,m.generated.column=p-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!0?!1:this.previous().length?this.previous().some(p=>p.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let p=this.memoizedPaths.get(c);if(p)return p;let h=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(h=r(n(h,this.mapOpts.annotation)));let m=a(h,c);return this.memoizedPaths.set(c,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let p=c.source.input.map;this.previousMaps.includes(p)||this.previousMaps.push(p)}});else{let c=new s(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(p=>{if(p.source){let h=p.source.input.from;if(h&&!c[h]){c[h]=!0;let m=this.usesFileUrls?this.toFileUrl(h):this.toUrl(this.path(h));this.map.setSourceContent(m,p.source.input.css)}}});else if(this.css){let p=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(p,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let p=this.memoizedFileURLs.get(c);if(p)return p;if(i){let h=i(c).toString();return this.memoizedFileURLs.set(c,h),h}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let p=this.memoizedURLs.get(c);if(p)return p;o==="\\"&&(c=c.replace(/\\/g,"/"));let h=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,h),h}}return Rf=u,Rf}var Ef,Zv;function tu(){if(Zv)return Ef;Zv=1;let e=Jl();class t extends e{constructor(a){super(a),this.type="comment"}}return Ef=t,t.default=t,Ef}var Pf,ey;function Va(){if(ey)return Pf;ey=1;let{isClean:e,my:t}=Op(),r=Zl(),a=tu(),n=Jl(),o,i,s,l;function d(c){return c.map(p=>(p.nodes&&(p.nodes=d(p.nodes)),delete p.source,p))}function u(c){if(c[e]=!1,c.proxyOf.nodes)for(let p of c.proxyOf.nodes)u(p)}class f extends n{append(...p){for(let h of p){let m=this.normalize(h,this.last);for(let S of m)this.proxyOf.nodes.push(S)}return this.markDirty(),this}cleanRaws(p){if(super.cleanRaws(p),this.nodes)for(let h of this.nodes)h.cleanRaws(p)}each(p){if(!this.proxyOf.nodes)return;let h=this.getIterator(),m,S;for(;this.indexes[h]<this.proxyOf.nodes.length&&(m=this.indexes[h],S=p(this.proxyOf.nodes[m],m),S!==!1);)this.indexes[h]+=1;return delete this.indexes[h],S}every(p){return this.nodes.every(p)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let p=this.lastEach;return this.indexes[p]=0,p}getProxyProcessor(){return{get(p,h){return h==="proxyOf"?p:p[h]?h==="each"||typeof h=="string"&&h.startsWith("walk")?(...m)=>p[h](...m.map(S=>typeof S=="function"?(g,x)=>S(g.toProxy(),x):S)):h==="every"||h==="some"?m=>p[h]((S,...g)=>m(S.toProxy(),...g)):h==="root"?()=>p.root().toProxy():h==="nodes"?p.nodes.map(m=>m.toProxy()):h==="first"||h==="last"?p[h].toProxy():p[h]:p[h]},set(p,h,m){return p[h]===m||(p[h]=m,(h==="name"||h==="params"||h==="selector")&&p.markDirty()),!0}}}index(p){return typeof p=="number"?p:(p.proxyOf&&(p=p.proxyOf),this.proxyOf.nodes.indexOf(p))}insertAfter(p,h){let m=this.index(p),S=this.normalize(h,this.proxyOf.nodes[m]).reverse();m=this.index(p);for(let x of S)this.proxyOf.nodes.splice(m+1,0,x);let g;for(let x in this.indexes)g=this.indexes[x],m<g&&(this.indexes[x]=g+S.length);return this.markDirty(),this}insertBefore(p,h){let m=this.index(p),S=m===0?"prepend":!1,g=this.normalize(h,this.proxyOf.nodes[m],S).reverse();m=this.index(p);for(let v of g)this.proxyOf.nodes.splice(m,0,v);let x;for(let v in this.indexes)x=this.indexes[v],m<=x&&(this.indexes[v]=x+g.length);return this.markDirty(),this}normalize(p,h){if(typeof p=="string")p=d(o(p).nodes);else if(typeof p>"u")p=[];else if(Array.isArray(p)){p=p.slice(0);for(let S of p)S.parent&&S.parent.removeChild(S,"ignore")}else if(p.type==="root"&&this.type!=="document"){p=p.nodes.slice(0);for(let S of p)S.parent&&S.parent.removeChild(S,"ignore")}else if(p.type)p=[p];else if(p.prop){if(typeof p.value>"u")throw new Error("Value field is missed in node creation");typeof p.value!="string"&&(p.value=String(p.value)),p=[new r(p)]}else if(p.selector)p=[new i(p)];else if(p.name)p=[new s(p)];else if(p.text)p=[new a(p)];else throw new Error("Unknown node type in node creation");return p.map(S=>(S[t]||f.rebuild(S),S=S.proxyOf,S.parent&&S.parent.removeChild(S),S[e]&&u(S),typeof S.raws.before>"u"&&h&&typeof h.raws.before<"u"&&(S.raws.before=h.raws.before.replace(/\S/g,"")),S.parent=this.proxyOf,S))}prepend(...p){p=p.reverse();for(let h of p){let m=this.normalize(h,this.first,"prepend").reverse();for(let S of m)this.proxyOf.nodes.unshift(S);for(let S in this.indexes)this.indexes[S]=this.indexes[S]+m.length}return this.markDirty(),this}push(p){return p.parent=this,this.proxyOf.nodes.push(p),this}removeAll(){for(let p of this.proxyOf.nodes)p.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(p){p=this.index(p),this.proxyOf.nodes[p].parent=void 0,this.proxyOf.nodes.splice(p,1);let h;for(let m in this.indexes)h=this.indexes[m],h>=p&&(this.indexes[m]=h-1);return this.markDirty(),this}replaceValues(p,h,m){return m||(m=h,h={}),this.walkDecls(S=>{h.props&&!h.props.includes(S.prop)||h.fast&&!S.value.includes(h.fast)||(S.value=S.value.replace(p,m))}),this.markDirty(),this}some(p){return this.nodes.some(p)}walk(p){return this.each((h,m)=>{let S;try{S=p(h,m)}catch(g){throw h.addToError(g)}return S!==!1&&h.walk&&(S=h.walk(p)),S})}walkAtRules(p,h){return h?p instanceof RegExp?this.walk((m,S)=>{if(m.type==="atrule"&&p.test(m.name))return h(m,S)}):this.walk((m,S)=>{if(m.type==="atrule"&&m.name===p)return h(m,S)}):(h=p,this.walk((m,S)=>{if(m.type==="atrule")return h(m,S)}))}walkComments(p){return this.walk((h,m)=>{if(h.type==="comment")return p(h,m)})}walkDecls(p,h){return h?p instanceof RegExp?this.walk((m,S)=>{if(m.type==="decl"&&p.test(m.prop))return h(m,S)}):this.walk((m,S)=>{if(m.type==="decl"&&m.prop===p)return h(m,S)}):(h=p,this.walk((m,S)=>{if(m.type==="decl")return h(m,S)}))}walkRules(p,h){return h?p instanceof RegExp?this.walk((m,S)=>{if(m.type==="rule"&&p.test(m.selector))return h(m,S)}):this.walk((m,S)=>{if(m.type==="rule"&&m.selector===p)return h(m,S)}):(h=p,this.walk((m,S)=>{if(m.type==="rule")return h(m,S)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return f.registerParse=c=>{o=c},f.registerRule=c=>{i=c},f.registerAtRule=c=>{s=c},f.registerRoot=c=>{l=c},Pf=f,f.default=f,f.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,s.prototype):c.type==="rule"?Object.setPrototypeOf(c,i.prototype):c.type==="decl"?Object.setPrototypeOf(c,r.prototype):c.type==="comment"?Object.setPrototypeOf(c,a.prototype):c.type==="root"&&Object.setPrototypeOf(c,l.prototype),c[t]=!0,c.nodes&&c.nodes.forEach(p=>{f.rebuild(p)})},Pf}var Tf,ty;function Fp(){if(ty)return Tf;ty=1;let e=Va(),t,r;class a extends e{constructor(o){super({type:"document",...o}),this.nodes||(this.nodes=[])}toResult(o={}){return new t(new r,this,o).stringify()}}return a.registerLazyResult=n=>{t=n},a.registerProcessor=n=>{r=n},Tf=a,a.default=a,Tf}var Nf,ry;function lw(){if(ry)return Nf;ry=1;let e={};return Nf=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},Nf}var Af,ay;function uw(){if(ay)return Af;ay=1;class e{constructor(r,a={}){if(this.type="warning",this.text=r,a.node&&a.node.source){let n=a.node.rangeBy(a);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in a)this[n]=a[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Af=e,e.default=e,Af}var Df,ny;function Bp(){if(ny)return Df;ny=1;let e=uw();class t{constructor(a,n,o){this.processor=a,this.messages=[],this.root=n,this.opts=o,this.css=void 0,this.map=void 0}toString(){return this.css}warn(a,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let o=new e(a,n);return this.messages.push(o),o}warnings(){return this.messages.filter(a=>a.type==="warning")}get content(){return this.css}}return Df=t,t.default=t,Df}var Of,oy;function n1(){if(oy)return Of;oy=1;let e=39,t=34,r=92,a=47,n=10,o=32,i=12,s=9,l=13,d=91,u=93,f=40,c=41,p=123,h=125,m=59,S=42,g=58,x=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,b=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return Of=function(C,M={}){let I=C.css.valueOf(),D=M.ignoreErrors,A,k,ke,Ie,ue,j,Se,ze,be,we,wr=I.length,E=0,vt=[],yt=[];function Ia(){return E}function Qe(X){throw C.error("Unclosed "+X,E)}function it(){return yt.length===0&&E>=wr}function Sr(X){if(yt.length)return yt.pop();if(E>=wr)return;let _e=X?X.ignoreUnclosed:!1;switch(A=I.charCodeAt(E),A){case n:case o:case s:case l:case i:{k=E;do k+=1,A=I.charCodeAt(k);while(A===o||A===n||A===s||A===l||A===i);we=["space",I.slice(E,k)],E=k-1;break}case d:case u:case p:case h:case g:case m:case c:{let se=String.fromCharCode(A);we=[se,se,E];break}case f:{if(ze=vt.length?vt.pop()[1]:"",be=I.charCodeAt(E+1),ze==="url"&&be!==e&&be!==t&&be!==o&&be!==n&&be!==s&&be!==i&&be!==l){k=E;do{if(j=!1,k=I.indexOf(")",k+1),k===-1)if(D||_e){k=E;break}else Qe("bracket");for(Se=k;I.charCodeAt(Se-1)===r;)Se-=1,j=!j}while(j);we=["brackets",I.slice(E,k+1),E,k],E=k}else k=I.indexOf(")",E+1),Ie=I.slice(E,k+1),k===-1||w.test(Ie)?we=["(","(",E]:(we=["brackets",Ie,E,k],E=k);break}case e:case t:{ke=A===e?"'":'"',k=E;do{if(j=!1,k=I.indexOf(ke,k+1),k===-1)if(D||_e){k=E+1;break}else Qe("string");for(Se=k;I.charCodeAt(Se-1)===r;)Se-=1,j=!j}while(j);we=["string",I.slice(E,k+1),E,k],E=k;break}case x:{v.lastIndex=E+1,v.test(I),v.lastIndex===0?k=I.length-1:k=v.lastIndex-2,we=["at-word",I.slice(E,k+1),E,k],E=k;break}case r:{for(k=E,ue=!0;I.charCodeAt(k+1)===r;)k+=1,ue=!ue;if(A=I.charCodeAt(k+1),ue&&A!==a&&A!==o&&A!==n&&A!==s&&A!==l&&A!==i&&(k+=1,y.test(I.charAt(k)))){for(;y.test(I.charAt(k+1));)k+=1;I.charCodeAt(k+1)===o&&(k+=1)}we=["word",I.slice(E,k+1),E,k],E=k;break}default:{A===a&&I.charCodeAt(E+1)===S?(k=I.indexOf("*/",E+2)+1,k===0&&(D||_e?k=I.length:Qe("comment")),we=["comment",I.slice(E,k+1),E,k],E=k):(b.lastIndex=E+1,b.test(I),b.lastIndex===0?k=I.length-1:k=b.lastIndex-2,we=["word",I.slice(E,k+1),E,k],vt.push(we),E=k);break}}return E++,we}function br(X){yt.push(X)}return{back:br,endOfFile:it,nextToken:Sr,position:Ia}},Of}var Ff,sy;function zp(){if(sy)return Ff;sy=1;let e=Va();class t extends e{constructor(a){super(a),this.type="atrule"}append(...a){return this.proxyOf.nodes||(this.nodes=[]),super.append(...a)}prepend(...a){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...a)}}return Ff=t,t.default=t,e.registerAtRule(t),Ff}var Bf,iy;function ps(){if(iy)return Bf;iy=1;let e=Va(),t,r;class a extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,i,s){let l=super.normalize(o);if(i){if(s==="prepend")this.nodes.length>1?i.raws.before=this.nodes[1].raws.before:delete i.raws.before;else if(this.first!==i)for(let d of l)d.raws.before=i.raws.before}return l}removeChild(o,i){let s=this.index(o);return!i&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),super.removeChild(o)}toResult(o={}){return new t(new r,this,o).stringify()}}return a.registerLazyResult=n=>{t=n},a.registerProcessor=n=>{r=n},Bf=a,a.default=a,e.registerRoot(a),Bf}var zf,ly;function dw(){if(ly)return zf;ly=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
|
|
57
|
-
`," "];return e.split(t,r)},split(t,r,a){let n=[],o="",i=!1,s=0,l=!1,d="",u=!1;for(let f of t)u?u=!1:f==="\\"?u=!0:l?f===d&&(l=!1):f==='"'||f==="'"?(l=!0,d=f):f==="("?s+=1:f===")"?s>0&&(s-=1):s===0&&r.includes(f)&&(i=!0),i?(o!==""&&n.push(o.trim()),o="",i=!1):o+=f;return(a||o!=="")&&n.push(o.trim()),n}};return zf=e,e.default=e,zf}var Uf,uy;function Up(){if(uy)return Uf;uy=1;let e=Va(),t=dw();class r extends e{constructor(n){super(n),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(n){let o=this.selector?this.selector.match(/,\s*/):null,i=o?o[0]:","+this.raw("between","beforeOpen");this.selector=n.join(i)}}return Uf=r,r.default=r,e.registerRule(r),Uf}var qf,dy;function o1(){if(dy)return qf;dy=1;let e=Zl(),t=n1(),r=tu(),a=zp(),n=ps(),o=Up(),i={empty:!0,space:!0};function s(d){for(let u=d.length-1;u>=0;u--){let f=d[u],c=f[3]||f[2];if(c)return c}}class l{constructor(u){this.input=u,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:u,start:{column:1,line:1,offset:0}}}atrule(u){let f=new a;f.name=u[1].slice(1),f.name===""&&this.unnamedAtrule(f,u),this.init(f,u[2]);let c,p,h,m=!1,S=!1,g=[],x=[];for(;!this.tokenizer.endOfFile();){if(u=this.tokenizer.nextToken(),c=u[0],c==="("||c==="["?x.push(c==="("?")":"]"):c==="{"&&x.length>0?x.push("}"):c===x[x.length-1]&&x.pop(),x.length===0)if(c===";"){f.source.end=this.getPosition(u[2]),f.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){S=!0;break}else if(c==="}"){if(g.length>0){for(h=g.length-1,p=g[h];p&&p[0]==="space";)p=g[--h];p&&(f.source.end=this.getPosition(p[3]||p[2]),f.source.end.offset++)}this.end(u);break}else g.push(u);else g.push(u);if(this.tokenizer.endOfFile()){m=!0;break}}f.raws.between=this.spacesAndCommentsFromEnd(g),g.length?(f.raws.afterName=this.spacesAndCommentsFromStart(g),this.raw(f,"params",g),m&&(u=g[g.length-1],f.source.end=this.getPosition(u[3]||u[2]),f.source.end.offset++,this.spaces=f.raws.between,f.raws.between="")):(f.raws.afterName="",f.params=""),S&&(f.nodes=[],this.current=f)}checkMissedSemicolon(u){let f=this.colon(u);if(f===!1)return;let c=0,p;for(let h=f-1;h>=0&&(p=u[h],!(p[0]!=="space"&&(c+=1,c===2)));h--);throw this.input.error("Missed semicolon",p[0]==="word"?p[3]+1:p[2])}colon(u){let f=0,c,p,h;for(let[m,S]of u.entries()){if(c=S,p=c[0],p==="("&&(f+=1),p===")"&&(f-=1),f===0&&p===":")if(!h)this.doubleColon(c);else{if(h[0]==="word"&&h[1]==="progid")continue;return m}h=c}return!1}comment(u){let f=new r;this.init(f,u[2]),f.source.end=this.getPosition(u[3]||u[2]),f.source.end.offset++;let c=u[1].slice(2,-2);if(/^\s*$/.test(c))f.text="",f.raws.left=c,f.raws.right="";else{let p=c.match(/^(\s*)([^]*\S)(\s*)$/);f.text=p[2],f.raws.left=p[1],f.raws.right=p[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(u,f){let c=new e;this.init(c,u[0][2]);let p=u[u.length-1];for(p[0]===";"&&(this.semicolon=!0,u.pop()),c.source.end=this.getPosition(p[3]||p[2]||s(u)),c.source.end.offset++;u[0][0]!=="word";)u.length===1&&this.unknownWord(u),c.raws.before+=u.shift()[1];for(c.source.start=this.getPosition(u[0][2]),c.prop="";u.length;){let x=u[0][0];if(x===":"||x==="space"||x==="comment")break;c.prop+=u.shift()[1]}c.raws.between="";let h;for(;u.length;)if(h=u.shift(),h[0]===":"){c.raws.between+=h[1];break}else h[0]==="word"&&/\w/.test(h[1])&&this.unknownWord([h]),c.raws.between+=h[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let m=[],S;for(;u.length&&(S=u[0][0],!(S!=="space"&&S!=="comment"));)m.push(u.shift());this.precheckMissedSemicolon(u);for(let x=u.length-1;x>=0;x--){if(h=u[x],h[1].toLowerCase()==="!important"){c.important=!0;let v=this.stringFrom(u,x);v=this.spacesFromEnd(u)+v,v!==" !important"&&(c.raws.important=v);break}else if(h[1].toLowerCase()==="important"){let v=u.slice(0),b="";for(let w=x;w>0;w--){let y=v[w][0];if(b.trim().indexOf("!")===0&&y!=="space")break;b=v.pop()[1]+b}b.trim().indexOf("!")===0&&(c.important=!0,c.raws.important=b,u=v)}if(h[0]!=="space"&&h[0]!=="comment")break}u.some(x=>x[0]!=="space"&&x[0]!=="comment")&&(c.raws.between+=m.map(x=>x[1]).join(""),m=[]),this.raw(c,"value",m.concat(u),f),c.value.includes(":")&&!f&&this.checkMissedSemicolon(u)}doubleColon(u){throw this.input.error("Double colon",{offset:u[2]},{offset:u[2]+u[1].length})}emptyRule(u){let f=new o;this.init(f,u[2]),f.selector="",f.raws.between="",this.current=f}end(u){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(u[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(u)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(u){if(this.spaces+=u[1],this.current.nodes){let f=this.current.nodes[this.current.nodes.length-1];f&&f.type==="rule"&&!f.raws.ownSemicolon&&(f.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(u){let f=this.input.fromOffset(u);return{column:f.col,line:f.line,offset:u}}init(u,f){this.current.push(u),u.source={input:this.input,start:this.getPosition(f)},u.raws.before=this.spaces,this.spaces="",u.type!=="comment"&&(this.semicolon=!1)}other(u){let f=!1,c=null,p=!1,h=null,m=[],S=u[1].startsWith("--"),g=[],x=u;for(;x;){if(c=x[0],g.push(x),c==="("||c==="[")h||(h=x),m.push(c==="("?")":"]");else if(S&&p&&c==="{")h||(h=x),m.push("}");else if(m.length===0)if(c===";")if(p){this.decl(g,S);return}else break;else if(c==="{"){this.rule(g);return}else if(c==="}"){this.tokenizer.back(g.pop()),f=!0;break}else c===":"&&(p=!0);else c===m[m.length-1]&&(m.pop(),m.length===0&&(h=null));x=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(f=!0),m.length>0&&this.unclosedBracket(h),f&&p){if(!S)for(;g.length&&(x=g[g.length-1][0],!(x!=="space"&&x!=="comment"));)this.tokenizer.back(g.pop());this.decl(g,S)}else this.unknownWord(g)}parse(){let u;for(;!this.tokenizer.endOfFile();)switch(u=this.tokenizer.nextToken(),u[0]){case"space":this.spaces+=u[1];break;case";":this.freeSemicolon(u);break;case"}":this.end(u);break;case"comment":this.comment(u);break;case"at-word":this.atrule(u);break;case"{":this.emptyRule(u);break;default:this.other(u);break}this.endFile()}precheckMissedSemicolon(){}raw(u,f,c,p){let h,m,S=c.length,g="",x=!0,v,b;for(let w=0;w<S;w+=1)h=c[w],m=h[0],m==="space"&&w===S-1&&!p?x=!1:m==="comment"?(b=c[w-1]?c[w-1][0]:"empty",v=c[w+1]?c[w+1][0]:"empty",!i[b]&&!i[v]?g.slice(-1)===","?x=!1:g+=h[1]:x=!1):g+=h[1];if(!x){let w=c.reduce((y,L)=>y+L[1],"");u.raws[f]={raw:w,value:g}}u[f]=g}rule(u){u.pop();let f=new o;this.init(f,u[0][2]),f.raws.between=this.spacesAndCommentsFromEnd(u),this.raw(f,"selector",u),this.current=f}spacesAndCommentsFromEnd(u){let f,c="";for(;u.length&&(f=u[u.length-1][0],!(f!=="space"&&f!=="comment"));)c=u.pop()[1]+c;return c}spacesAndCommentsFromStart(u){let f,c="";for(;u.length&&(f=u[0][0],!(f!=="space"&&f!=="comment"));)c+=u.shift()[1];return c}spacesFromEnd(u){let f,c="";for(;u.length&&(f=u[u.length-1][0],f==="space");)c=u.pop()[1]+c;return c}stringFrom(u,f){let c="";for(let p=f;p<u.length;p++)c+=u[p][1];return u.splice(f,u.length-f),c}unclosedBlock(){let u=this.current.source.start;throw this.input.error("Unclosed block",u.line,u.column)}unclosedBracket(u){throw this.input.error("Unclosed bracket",{offset:u[2]},{offset:u[2]+1})}unexpectedClose(u){throw this.input.error("Unexpected }",{offset:u[2]},{offset:u[2]+1})}unknownWord(u){throw this.input.error("Unknown word",{offset:u[0][2]},{offset:u[0][2]+u[0][1].length})}unnamedAtrule(u,f){throw this.input.error("At-rule without name",{offset:f[2]},{offset:f[2]+f[1].length})}}return qf=l,qf}var $f,cy;function qp(){if(cy)return $f;cy=1;let e=Va(),t=o1(),r=eu();function a(n,o){let i=new r(n,o),s=new t(i);try{s.parse()}catch(l){throw l}return s.root}return $f=a,a.default=a,e.registerParse(a),$f}var Hf,fy;function cw(){if(fy)return Hf;fy=1;let{isClean:e,my:t}=Op(),r=iw(),a=Yl(),n=Va(),o=Fp(),i=lw(),s=Bp(),l=qp(),d=ps(),u={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},p=0;function h(b){return typeof b=="object"&&typeof b.then=="function"}function m(b){let w=!1,y=u[b.type];return b.type==="decl"?w=b.prop.toLowerCase():b.type==="atrule"&&(w=b.name.toLowerCase()),w&&b.append?[y,y+"-"+w,p,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:b.append?[y,p,y+"Exit"]:[y,y+"Exit"]}function S(b){let w;return b.type==="document"?w=["Document",p,"DocumentExit"]:b.type==="root"?w=["Root",p,"RootExit"]:w=m(b),{eventIndex:0,events:w,iterator:0,node:b,visitorIndex:0,visitors:[]}}function g(b){return b[e]=!1,b.nodes&&b.nodes.forEach(w=>g(w)),b}let x={};class v{constructor(w,y,L){this.stringified=!1,this.processed=!1;let C;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))C=g(y);else if(y instanceof v||y instanceof s)C=g(y.root),y.map&&(typeof L.map>"u"&&(L.map={}),L.map.inline||(L.map.inline=!1),L.map.prev=y.map);else{let M=l;L.syntax&&(M=L.syntax.parse),L.parser&&(M=L.parser),M.parse&&(M=M.parse);try{C=M(y,L)}catch(I){this.processed=!0,this.error=I}C&&!C[t]&&n.rebuild(C)}this.result=new s(w,C,L),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?{...M,...M.prepare(this.result)}:M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let L=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=L.postcssPlugin,w.setMessage()):L.postcssVersion}catch(C){console&&console.error&&console.error(C)}return w}prepareVisitors(){this.listeners={};let w=(y,L,C)=>{this.listeners[L]||(this.listeners[L]=[]),this.listeners[L].push([y,C])};for(let y of this.plugins)if(typeof y=="object")for(let L in y){if(!f[L]&&/^[A-Z]/.test(L))throw new Error(`Unknown event ${L} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[L])if(typeof y[L]=="object")for(let C in y[L])C==="*"?w(y,L,y[L][C]):w(y,L+"-"+C.toLowerCase(),y[L][C]);else typeof y[L]=="function"&&w(y,L,y[L])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],L=this.runOnRoot(y);if(h(L))try{await L}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];){w[e]=!0;let y=[S(w)];for(;y.length>0;){let L=this.visitTick(y);if(h(L))try{await L}catch(C){let M=y[y.length-1].node;throw this.handleError(C,M)}}}if(this.listeners.OnceExit)for(let[y,L]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let C=w.nodes.map(M=>L(M,this.helpers));await Promise.all(C)}else await L(w,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(L=>w.Once(L,this.helpers));return h(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=a;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let C=new r(y,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let y=this.runOnRoot(w);if(h(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];)w[e]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let y of w.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,y){return this.async().then(w,y)}toString(){return this.css}visitSync(w,y){for(let[L,C]of w){this.result.lastPlugin=L;let M;try{M=C(y,this.helpers)}catch(I){throw this.handleError(I,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(h(M))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:L,visitors:C}=y;if(L.type!=="root"&&L.type!=="document"&&!L.parent){w.pop();return}if(C.length>0&&y.visitorIndex<C.length){let[I,D]=C[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===C.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=I;try{return D(L.toProxy(),this.helpers)}catch(A){throw this.handleError(A,L)}}if(y.iterator!==0){let I=y.iterator,D;for(;D=L.nodes[L.indexes[I]];)if(L.indexes[I]+=1,!D[e]){D[e]=!0,w.push(S(D));return}y.iterator=0,delete L.indexes[I]}let M=y.events;for(;y.eventIndex<M.length;){let I=M[y.eventIndex];if(y.eventIndex+=1,I===p){L.nodes&&L.nodes.length&&(L[e]=!0,y.iterator=L.getIterator());return}else if(this.listeners[I]){y.visitors=this.listeners[I];return}}w.pop()}walkSync(w){w[e]=!0;let y=m(w);for(let L of y)if(L===p)w.nodes&&w.each(C=>{C[e]||this.walkSync(C)});else{let C=this.listeners[L];if(C&&this.visitSync(C,w.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return v.registerPostcss=b=>{x=b},Hf=v,v.default=v,d.registerLazyResult(v),o.registerLazyResult(v),Hf}var Wf,py;function s1(){if(py)return Wf;py=1;let e=iw(),t=Yl(),r=lw(),a=qp(),n=Bp();class o{constructor(s,l,d){l=l.toString(),this.stringified=!1,this._processor=s,this._css=l,this._opts=d,this._map=void 0;let u,f=t;this.result=new n(this._processor,u,this._opts),this.result.css=l;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let p=new e(f,u,this._opts,l);if(p.isMap()){let[h,m]=p.generate();h&&(this.result.css=h),m&&(this.result.map=m)}else p.clearAnnotation(),this.result.css=p.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(s){return this.async().catch(s)}finally(s){return this.async().then(s,s)}sync(){if(this.error)throw this.error;return this.result}then(s,l){return this.async().then(s,l)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let s,l=a;try{s=l(this._css,this._opts)}catch(d){this.error=d}if(this.error)throw this.error;return this._root=s,s}get[Symbol.toStringTag](){return"NoWorkResult"}}return Wf=o,o.default=o,Wf}var jf,my;function i1(){if(my)return jf;my=1;let e=s1(),t=cw(),r=Fp(),a=ps();class n{constructor(i=[]){this.version="8.4.38",this.plugins=this.normalize(i)}normalize(i){let s=[];for(let l of i)if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),typeof l=="object"&&Array.isArray(l.plugins))s=s.concat(l.plugins);else if(typeof l=="object"&&l.postcssPlugin)s.push(l);else if(typeof l=="function")s.push(l);else if(!(typeof l=="object"&&(l.parse||l.stringify)))throw new Error(l+" is not a PostCSS plugin");return s}process(i,s={}){return!this.plugins.length&&!s.parser&&!s.stringifier&&!s.syntax?new e(this,i,s):new t(this,i,s)}use(i){return this.plugins=this.plugins.concat(this.normalize([i])),this}}return jf=n,n.default=n,a.registerProcessor(n),r.registerProcessor(n),jf}var Vf,hy;function l1(){if(hy)return Vf;hy=1;let e=Zl(),t=sw(),r=tu(),a=zp(),n=eu(),o=ps(),i=Up();function s(l,d){if(Array.isArray(l))return l.map(c=>s(c));let{inputs:u,...f}=l;if(u){d=[];for(let c of u){let p={...c,__proto__:n.prototype};p.map&&(p.map={...p.map,__proto__:t.prototype}),d.push(p)}}if(f.nodes&&(f.nodes=l.nodes.map(c=>s(c,d))),f.source){let{inputId:c,...p}=f.source;f.source=p,c!=null&&(f.source.input=d[c])}if(f.type==="root")return new o(f);if(f.type==="decl")return new e(f);if(f.type==="rule")return new i(f);if(f.type==="comment")return new r(f);if(f.type==="atrule")return new a(f);throw new Error("Unknown node type: "+l.type)}return Vf=s,s.default=s,Vf}var Gf,gy;function u1(){if(gy)return Gf;gy=1;let e=Dp(),t=Zl(),r=cw(),a=Va(),n=i1(),o=Yl(),i=l1(),s=Fp(),l=uw(),d=tu(),u=zp(),f=Bp(),c=eu(),p=qp(),h=dw(),m=Up(),S=ps(),g=Jl();function x(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new n(v)}return x.plugin=function(b,w){let y=!1;function L(...M){console&&console.warn&&!y&&(y=!0,console.warn(b+`: postcss.plugin was deprecated. Migration guide:
|
|
58
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(
|
|
59
|
-
https://www.w3ctech.com/topic/2226`));let I=w(...M);return I.postcssPlugin=b,I.postcssVersion=new n().version,I}let C;return Object.defineProperty(L,"postcss",{get(){return C||(C=L()),C}}),L.process=function(M,I,D){return x([L(D)]).process(M,I)},L},x.stringify=o,x.parse=p,x.fromJSON=i,x.list=h,x.comment=v=>new d(v),x.atRule=v=>new u(v),x.decl=v=>new t(v),x.rule=v=>new m(v),x.root=v=>new S(v),x.document=v=>new s(v),x.CssSyntaxError=e,x.Declaration=t,x.Container=a,x.Processor=n,x.Document=s,x.Comment=d,x.Warning=l,x.AtRule=u,x.Result=f,x.Input=c,x.Rule=m,x.Root=S,x.Node=g,r.registerPostcss(x),Gf=x,x.default=x,Gf}var d1=u1(),Be=JL(d1);Be.stringify;Be.fromJSON;Be.plugin;Be.parse;Be.list;Be.document;Be.comment;Be.atRule;Be.rule;Be.decl;Be.root;Be.CssSyntaxError;Be.Declaration;Be.Container;Be.Processor;Be.Document;Be.Comment;Be.Warning;Be.AtRule;Be.Result;Be.Input;Be.Rule;Be.Root;Be.Node;var ce=(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))(ce||{});function c1(e){let t={},r=/;(?![^(]*\))/g,a=/:(.+)/,n=/\/\*.*?\*\//g;return e.replace(n,"").split(r).forEach(function(o){if(o){let i=o.split(a);i.length>1&&(t[tp(i[0].trim())]=i[1].trim())}}),t}function xy(e){let t=[];for(let r in e){let a=e[r];if(typeof a!="string")continue;let n=h1(r);t.push(`${n}: ${a};`)}return t.join(" ")}var f1=/-([a-z])/g,p1=/^--[a-zA-Z0-9-]+$/,tp=e=>p1.test(e)?e:e.replace(f1,(t,r)=>r?r.toUpperCase():""),m1=/\B([A-Z])/g,h1=e=>e.replace(m1,"-$1").toLowerCase(),vr=class e{constructor(...t){z(this,"parentElement",null),z(this,"parentNode",null),z(this,"ownerDocument"),z(this,"firstChild",null),z(this,"lastChild",null),z(this,"previousSibling",null),z(this,"nextSibling",null),z(this,"ELEMENT_NODE",1),z(this,"TEXT_NODE",3),z(this,"nodeType"),z(this,"nodeName"),z(this,"RRNodeType")}get childNodes(){let t=[],r=this.firstChild;for(;r;)t.push(r),r=r.nextSibling;return t}contains(t){if(t instanceof e){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}},rp=class e extends vr{constructor(...t){super(t),z(this,"nodeType",9),z(this,"nodeName","#document"),z(this,"compatMode","CSS1Compat"),z(this,"RRNodeType",ce.Document),z(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(t=>t.RRNodeType===ce.Element&&t.tagName==="HTML")||null}get body(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===ce.Element&&r.tagName==="BODY"))||null}get head(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===ce.Element&&r.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(t){let r=t.RRNodeType;if((r===ce.Element||r===ce.DocumentType)&&this.childNodes.some(n=>n.RRNodeType===r))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${r===ce.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);let a=$p(this,t);return a.parentElement=null,a}insertBefore(t,r){let a=t.RRNodeType;if((a===ce.Element||a===ce.DocumentType)&&this.childNodes.some(o=>o.RRNodeType===a))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${a===ce.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);let n=fw(this,t,r);return n.parentElement=null,n}removeChild(t){return pw(this,t)}open(){this.firstChild=null,this.lastChild=null}close(){}write(t){let r;if(t==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?r="-//W3C//DTD XHTML 1.0 Transitional//EN":t==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(r="-//W3C//DTD HTML 4.0 Transitional//EN"),r){let a=this.createDocumentType("html",r,"");this.open(),this.appendChild(a)}}createDocument(t,r,a){return new e}createDocumentType(t,r,a){let n=new Nl(t,r,a);return n.ownerDocument=this,n}createElement(t){let r=new Qn(t);return r.ownerDocument=this,r}createElementNS(t,r){return this.createElement(r)}createTextNode(t){let r=new Al(t);return r.ownerDocument=this,r}createComment(t){let r=new Dl(t);return r.ownerDocument=this,r}createCDATASection(t){let r=new Ol(t);return r.ownerDocument=this,r}toString(){return"RRDocument"}},Nl=class extends vr{constructor(t,r,a){super(),z(this,"nodeType",10),z(this,"RRNodeType",ce.DocumentType),z(this,"name"),z(this,"publicId"),z(this,"systemId"),z(this,"textContent",null),this.name=t,this.publicId=r,this.systemId=a,this.nodeName=t}toString(){return"RRDocumentType"}},Qn=class extends vr{constructor(t){super(),z(this,"nodeType",1),z(this,"RRNodeType",ce.Element),z(this,"tagName"),z(this,"attributes",{}),z(this,"shadowRoot",null),z(this,"scrollLeft"),z(this,"scrollTop"),this.tagName=t.toUpperCase(),this.nodeName=t.toUpperCase()}get textContent(){let t="";return this.childNodes.forEach(r=>t+=r.textContent),t}set textContent(t){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(t))}get classList(){return new op(this.attributes.class,t=>{this.attributes.class=t})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){let t=this.attributes.style?c1(this.attributes.style):{},r=/\B([A-Z])/g;return t.setProperty=(a,n,o)=>{if(r.test(a))return;let i=tp(a);n?t[i]=n:delete t[i],o==="important"&&(t[i]+=" !important"),this.attributes.style=xy(t)},t.removeProperty=a=>{if(r.test(a))return"";let n=tp(a),o=t[n]||"";return delete t[n],this.attributes.style=xy(t),o},t}getAttribute(t){return this.attributes[t]===void 0?null:this.attributes[t]}setAttribute(t,r){this.attributes[t]=r}setAttributeNS(t,r,a){this.setAttribute(r,a)}removeAttribute(t){delete this.attributes[t]}appendChild(t){return $p(this,t)}insertBefore(t,r){return fw(this,t,r)}removeChild(t){return pw(this,t)}attachShadow(t){let r=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=r,r}dispatchEvent(t){return!0}toString(){let t="";for(let r in this.attributes)t+=`${r}="${this.attributes[r]}" `;return`${this.tagName} ${t}`}},ap=class extends Qn{constructor(){super(...arguments),z(this,"currentTime"),z(this,"volume"),z(this,"paused"),z(this,"muted"),z(this,"playbackRate"),z(this,"loop")}attachShadow(t){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}},np=class extends Qn{constructor(){super(...arguments),z(this,"tagName","DIALOG"),z(this,"nodeName","DIALOG")}get isModal(){return this.getAttribute("rr_open_mode")==="modal"}get open(){return this.getAttribute("open")!==null}close(){this.removeAttribute("open"),this.removeAttribute("rr_open_mode")}show(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","non-modal")}showModal(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","modal")}},Al=class extends vr{constructor(t){super(),z(this,"nodeType",3),z(this,"nodeName","#text"),z(this,"RRNodeType",ce.Text),z(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRText text=${JSON.stringify(this.data)}`}},Dl=class extends vr{constructor(t){super(),z(this,"nodeType",8),z(this,"nodeName","#comment"),z(this,"RRNodeType",ce.Comment),z(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRComment text=${JSON.stringify(this.data)}`}},Ol=class extends vr{constructor(t){super(),z(this,"nodeName","#cdata-section"),z(this,"nodeType",4),z(this,"RRNodeType",ce.CDATA),z(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}},op=class{constructor(t,r){if(z(this,"onChange"),z(this,"classes",[]),z(this,"add",(...a)=>{for(let n of a){let o=String(n);this.classes.indexOf(o)>=0||this.classes.push(o)}this.onChange&&this.onChange(this.classes.join(" "))}),z(this,"remove",(...a)=>{this.classes=this.classes.filter(n=>a.indexOf(n)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),t){let a=t.trim().split(/\s+/);this.classes.push(...a)}this.onChange=r}};function $p(e,t){return t.parentNode&&t.parentNode.removeChild(t),e.lastChild?(e.lastChild.nextSibling=t,t.previousSibling=e.lastChild):(e.firstChild=t,t.previousSibling=null),e.lastChild=t,t.nextSibling=null,t.parentNode=e,t.parentElement=e,t.ownerDocument=e.ownerDocument,t}function fw(e,t,r){if(!r)return $p(e,t);if(r.parentNode!==e)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return t===r||(t.parentNode&&t.parentNode.removeChild(t),t.previousSibling=r.previousSibling,r.previousSibling=t,t.nextSibling=r,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,t.parentElement=e,t.parentNode=e,t.ownerDocument=e.ownerDocument),t}function pw(e,t){if(t.parentNode!==e)throw new Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return t.previousSibling?t.previousSibling.nextSibling=t.nextSibling:e.firstChild=t.nextSibling,t.nextSibling?t.nextSibling.previousSibling=t.previousSibling:e.lastChild=t.previousSibling,t.previousSibling=null,t.nextSibling=null,t.parentElement=null,t.parentNode=null,t}var $t=(e=>(e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",e))($t||{}),sp={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},g1={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"},Rr=null;function Fl(e,t,r,a=t.mirror||t.ownerDocument.mirror){e=x1(e,t,r,a),mw(e,t,r,a),v1(e,t,r)}function x1(e,t,r,a){var n;if(r.afterAppend&&!Rr&&(Rr=new WeakSet,setTimeout(()=>{Rr=null},0)),!Hp(e,t)){let o=Bl(t,r.mirror,a);(n=e.parentNode)==null||n.replaceChild(o,e),e=o}switch(t.RRNodeType){case ce.Document:{if(!Hn(e,t,r.mirror,a)){let o=a.getMeta(t);o&&(r.mirror.removeNodeFromMap(e),e.close(),e.open(),r.mirror.add(e,o),Rr?.add(e))}break}case ce.Element:{let o=e,i=t;switch(i.tagName){case"IFRAME":{let s=e.contentDocument;if(!s)break;Fl(s,t.contentDocument,r,a);break}}i.shadowRoot&&(o.shadowRoot||o.attachShadow({mode:"open"}),mw(o.shadowRoot,i.shadowRoot,r,a)),y1(o,i,a);break}}return e}function v1(e,t,r){var a;switch(t.RRNodeType){case ce.Document:{let n=t.scrollData;n&&r.applyScroll(n,!0);break}case ce.Element:{let n=e,o=t;switch(o.scrollData&&r.applyScroll(o.scrollData,!0),o.inputData&&r.applyInput(o.inputData),o.tagName){case"AUDIO":case"VIDEO":{let i=e,s=o;s.paused!==void 0&&(s.paused?i.pause():i.play()),s.muted!==void 0&&(i.muted=s.muted),s.volume!==void 0&&(i.volume=s.volume),s.currentTime!==void 0&&(i.currentTime=s.currentTime),s.playbackRate!==void 0&&(i.playbackRate=s.playbackRate),s.loop!==void 0&&(i.loop=s.loop);break}case"CANVAS":{let i=t;if(i.rr_dataURL!==null){let s=document.createElement("img");s.onload=()=>{let l=n.getContext("2d");l&&l.drawImage(s,0,0,s.width,s.height)},s.src=i.rr_dataURL}i.canvasMutations.forEach(s=>r.applyCanvas(s.event,s.mutation,e));break}case"STYLE":{let i=n.sheet;i&&t.rules.forEach(s=>r.applyStyleSheetMutation(s,i));break}case"DIALOG":{let i=n,s=o,l=i.open,d=i.matches("dialog:modal"),u=s.open,f=s.isModal,c=d!==f,p=l!==u;if((c||l&&p)&&i.close(),u&&(p||c))try{f?i.showModal():i.show()}catch(h){console.warn(h)}break}}break}case ce.Text:case ce.Comment:case ce.CDATA:{e.textContent!==t.data&&(e.textContent=t.data);break}}Rr?.has(e)&&(Rr.delete(e),(a=r.afterAppend)==null||a.call(r,e,r.mirror.getId(e)))}function y1(e,t,r){let a=e.attributes,n=t.attributes;for(let o in n){let i=n[o],s=r.getMeta(t);if(s?.isSVG&&sp[o])e.setAttributeNS(sp[o],o,i);else if(t.tagName==="CANVAS"&&o==="rr_dataURL"){let l=document.createElement("img");l.src=i,l.onload=()=>{let d=e.getContext("2d");d&&d.drawImage(l,0,0,l.width,l.height)}}else{if(t.tagName==="IFRAME"&&o==="srcdoc")continue;try{e.setAttribute(o,i)}catch(l){console.warn(l)}}}for(let{name:o}of Array.from(a))o in n||e.removeAttribute(o);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}function mw(e,t,r,a){let n=Array.from(e.childNodes),o=t.childNodes;if(n.length===0&&o.length===0)return;let i=0,s=n.length-1,l=0,d=o.length-1,u=n[i],f=n[s],c=o[l],p=o[d],h,m;for(;i<=s&&l<=d;)if(u===void 0)u=n[++i];else if(f===void 0)f=n[--s];else if(Hn(u,c,r.mirror,a))u=n[++i],c=o[++l];else if(Hn(f,p,r.mirror,a))f=n[--s],p=o[--d];else if(Hn(u,p,r.mirror,a)){try{e.insertBefore(u,f.nextSibling)}catch(x){console.warn(x)}u=n[++i],p=o[--d]}else if(Hn(f,c,r.mirror,a)){try{e.insertBefore(f,u)}catch(x){console.warn(x)}f=n[--s],c=o[++l]}else{if(!h){h={};for(let v=i;v<=s;v++){let b=n[v];b&&r.mirror.hasNode(b)&&(h[r.mirror.getId(b)]=v)}}m=h[a.getId(c)];let x=n[m];if(m!==void 0&&x&&Hn(x,c,r.mirror,a)){try{e.insertBefore(x,u)}catch(v){console.warn(v)}n[m]=void 0}else{let v=Bl(c,r.mirror,a);e.nodeName==="#document"&&u&&(v.nodeType===v.DOCUMENT_TYPE_NODE&&u.nodeType===u.DOCUMENT_TYPE_NODE||v.nodeType===v.ELEMENT_NODE&&u.nodeType===u.ELEMENT_NODE)&&(e.removeChild(u),r.mirror.removeNodeFromMap(u),u=n[++i]);try{e.insertBefore(v,u||null)}catch(b){console.warn(b)}}c=o[++l]}if(i>s){let x=o[d+1],v=null;for(x&&(v=r.mirror.getNode(a.getId(x)));l<=d;++l){let b=Bl(o[l],r.mirror,a);try{e.insertBefore(b,v)}catch(w){console.warn(w)}}}else if(l>d)for(;i<=s;i++){let x=n[i];if(!(!x||x.parentNode!==e))try{e.removeChild(x),r.mirror.removeNodeFromMap(x)}catch(v){console.warn(v)}}let S=e.firstChild,g=t.firstChild;for(;S!==null&&g!==null;)Fl(S,g,r,a),S=S.nextSibling,g=g.nextSibling}function Bl(e,t,r){let a=r.getId(e),n=r.getMeta(e),o=null;if(a>-1&&(o=t.getNode(a)),o!==null&&Hp(o,e))return o;switch(e.RRNodeType){case ce.Document:o=new Document;break;case ce.DocumentType:o=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case ce.Element:{let i=e.tagName.toLowerCase();i=g1[i]||i,n&&"isSVG"in n&&n?.isSVG?o=document.createElementNS(sp.svg,i):o=document.createElement(e.tagName);break}case ce.Text:o=document.createTextNode(e.data);break;case ce.Comment:o=document.createComment(e.data);break;case ce.CDATA:o=document.createCDATASection(e.data);break}n&&t.add(o,{...n});try{Rr?.add(o)}catch{}return o}function Hp(e,t){return e.nodeType!==t.nodeType?!1:e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName}function Hn(e,t,r,a){let n=r.getId(e),o=a.getId(t);return n===-1||n!==o?!1:Hp(e,t)}var Yn=class e extends rp{constructor(t){super(),z(this,"UNSERIALIZED_STARTING_ID",-2),z(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),z(this,"mirror",I1()),z(this,"scrollData",null),t&&(this.mirror=t)}get unserializedId(){return this._unserializedId--}createDocument(t,r,a){return new e}createDocumentType(t,r,a){let n=new w1(t,r,a);return n.ownerDocument=this,n}createElement(t){let r=t.toUpperCase(),a;switch(r){case"AUDIO":case"VIDEO":a=new ip(r);break;case"IFRAME":a=new cp(r,this.mirror);break;case"CANVAS":a=new up(r);break;case"STYLE":a=new dp(r);break;case"DIALOG":a=new lp(r);break;default:a=new Jn(r);break}return a.ownerDocument=this,a}createComment(t){let r=new b1(t);return r.ownerDocument=this,r}createCDATASection(t){let r=new C1(t);return r.ownerDocument=this,r}createTextNode(t){let r=new S1(t);return r.ownerDocument=this,r}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}},w1=Nl,Jn=class extends Qn{constructor(){super(...arguments),z(this,"inputData",null),z(this,"scrollData",null)}},ip=class extends ap{},lp=class extends np{},up=class extends Jn{constructor(){super(...arguments),z(this,"rr_dataURL",null),z(this,"canvasMutations",[])}getContext(){return null}},dp=class extends Jn{constructor(){super(...arguments),z(this,"rules",[])}},cp=class extends Jn{constructor(t,r){super(t),z(this,"contentDocument",new Yn),this.contentDocument.mirror=r}},S1=Al,b1=Dl,C1=Ol;function L1(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}function hw(e,t,r,a){let n;switch(e.nodeType){case $t.DOCUMENT_NODE:a&&a.nodeName==="IFRAME"?n=a.contentDocument:(n=t,n.compatMode=e.compatMode);break;case $t.DOCUMENT_TYPE_NODE:{let i=e;n=t.createDocumentType(i.name,i.publicId,i.systemId);break}case $t.ELEMENT_NODE:{let i=e,s=L1(i);n=t.createElement(s);let l=n;for(let{name:d,value:u}of Array.from(i.attributes))l.attributes[d]=u;i.scrollLeft&&(l.scrollLeft=i.scrollLeft),i.scrollTop&&(l.scrollTop=i.scrollTop);break}case $t.TEXT_NODE:n=t.createTextNode(e.textContent||"");break;case $t.CDATA_SECTION_NODE:n=t.createCDATASection(e.data);break;case $t.COMMENT_NODE:n=t.createComment(e.textContent||"");break;case $t.DOCUMENT_FRAGMENT_NODE:n=a.attachShadow({mode:"open"});break;default:return null}let o=r.getMeta(e);return t instanceof Yn&&(o||(o=gw(n,t.unserializedId),r.add(e,o)),t.mirror.add(n,{...o})),n}function k1(e,t=YL(),r=new Yn){function a(n,o){let i=hw(n,r,t,o);if(i!==null)if(o?.nodeName!=="IFRAME"&&n.nodeType!==$t.DOCUMENT_FRAGMENT_NODE&&(o?.appendChild(i),i.parentNode=o,i.parentElement=o),n.nodeName==="IFRAME"){let s=n.contentDocument;s&&a(s,i)}else(n.nodeType===$t.DOCUMENT_NODE||n.nodeType===$t.ELEMENT_NODE||n.nodeType===$t.DOCUMENT_FRAGMENT_NODE)&&(n.nodeType===$t.ELEMENT_NODE&&n.shadowRoot&&a(n.shadowRoot,i),n.childNodes.forEach(s=>a(s,i)))}return a(e,null),r}function I1(){return new fp}var fp=class{constructor(){z(this,"idNodeMap",new Map),z(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(a=>this.removeNodeFromMap(a))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let a=r.id;this.idNodeMap.set(a,t),this.nodeMetaMap.set(t,r)}replace(t,r){let a=this.getNode(t);if(a){let n=this.nodeMetaMap.get(a);n&&this.nodeMetaMap.set(r,n)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function gw(e,t){switch(e.RRNodeType){case ce.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case ce.DocumentType:{let r=e;return{id:t,type:e.RRNodeType,name:r.name,publicId:r.publicId,systemId:r.systemId}}case ce.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case ce.Text:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case ce.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case ce.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}var vy={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},yy={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Cl={},xw={},M1=()=>!!globalThis.Zone;function Wp(e){if(Cl[e])return Cl[e];let t=globalThis[e],r=t.prototype,a=e in vy?vy[e]:void 0,n=!!(a&&a.every(s=>{var l,d;return!!((d=(l=Object.getOwnPropertyDescriptor(r,s))==null?void 0:l.get)!=null&&d.toString().includes("[native code]"))})),o=e in yy?yy[e]:void 0,i=!!(o&&o.every(s=>{var l;return typeof r[s]=="function"&&((l=r[s])==null?void 0:l.toString().includes("[native code]"))}));if(n&&i&&!M1())return Cl[e]=t.prototype,t.prototype;try{let s=document.createElement("iframe");s.style.display="none",document.body.appendChild(s);let l=s.contentWindow;if(!l)return t.prototype;let d=l[e].prototype;if(!d)return s.remove(),r;let u=navigator.userAgent;return u.includes("Safari")&&!u.includes("Chrome")?(s.classList.add("rr-block"),s.setAttribute("__rrwebUntaintedMutationObserver",""),xw[e]=()=>s.remove()):s.remove(),Cl[e]=d}catch{return r}}var Xf={};function Gr(e,t,r){var a;let n=`${e}.${String(r)}`;if(Xf[n])return Xf[n].call(t);let o=Wp(e),i=(a=Object.getOwnPropertyDescriptor(o,r))==null?void 0:a.get;return i?(Xf[n]=i,i.call(t)):t[r]}var Kf={};function vw(e,t,r){let a=`${e}.${String(r)}`;if(Kf[a])return Kf[a].bind(t);let o=Wp(e)[r];return typeof o!="function"?t[r]:(Kf[a]=o,o.bind(t))}function _1(e){return Gr("Node",e,"ownerDocument")}function R1(e){return Gr("Node",e,"childNodes")}function E1(e){return Gr("Node",e,"parentNode")}function P1(e){return Gr("Node",e,"parentElement")}function T1(e){return Gr("Node",e,"textContent")}function N1(e,t){return vw("Node",e,"contains")(t)}function A1(e){return vw("Node",e,"getRootNode")()}function D1(e){return!e||!("host"in e)?null:Gr("ShadowRoot",e,"host")}function O1(e){return e.styleSheets}function F1(e){return!e||!("shadowRoot"in e)?null:Gr("Element",e,"shadowRoot")}function B1(e,t){return Gr("Element",e,"querySelector")(t)}function z1(e,t){return Gr("Element",e,"querySelectorAll")(t)}function yw(){return[Wp("MutationObserver").constructor,xw.MutationObserver??(()=>{})]}var ds=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(ds=()=>new Date().getTime());function Ga(e,t,r){try{if(!(t in e))return()=>{};let a=e[t],n=r(a);return typeof n=="function"&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:a}})),e[t]=n,()=>{e[t]=a}}catch{return()=>{}}}var ae={ownerDocument:_1,childNodes:R1,parentNode:E1,parentElement:P1,textContent:T1,contains:N1,getRootNode:A1,host:D1,styleSheets:O1,shadowRoot:F1,querySelector:B1,querySelectorAll:z1,nowTimestamp:ds,mutationObserverCtor:yw,patch:Ga};function Lt(e,t,r=document){let a={capture:!0,passive:!0};return r.addEventListener(e,t,a),()=>r.removeEventListener(e,t,a)}var Wn=`Please stop import mirror directly. Instead of that,\r
|
|
54
|
+
`)&&(f=`\r
|
|
55
|
+
`),this.css+=f+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let f=this.toUrl(this.path(c.file)),h=c.root||r(c.file),m;this.mapOpts.sourcesContent===!1?(m=new e(c.text),m.sourcesContent&&(m.sourcesContent=null)):m=c.consumer(),this.map.applySourceMap(m,f,this.toUrl(this.path(h)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let f=this.root.nodes.length-1;f>=0;f--)c=this.root.nodes[f],c.type==="comment"&&c.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(f)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),d&&i&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,f=>{c+=f}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=t.fromSourceMap(c,{ignoreInvalidMapping:!0})}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,f=1,h="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},y,g;this.stringify(this.root,(x,v,S)=>{if(this.css+=x,v&&S!=="end"&&(m.generated.line=c,m.generated.column=f-1,v.source&&v.source.start?(m.source=this.sourcePath(v),m.original.line=v.source.start.line,m.original.column=v.source.start.column-1,this.map.addMapping(m)):(m.source=h,m.original.line=1,m.original.column=0,this.map.addMapping(m))),y=x.match(/\n/g),y?(c+=y.length,g=x.lastIndexOf(`
|
|
56
|
+
`),f=x.length-g):f+=x.length,v&&S!=="start"){let b=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==b.last||b.raws.semicolon)&&(v.source&&v.source.end?(m.source=this.sourcePath(v),m.original.line=v.source.end.line,m.original.column=v.source.end.column-1,m.generated.line=c,m.generated.column=f-2,this.map.addMapping(m)):(m.source=h,m.original.line=1,m.original.column=0,m.generated.line=c,m.generated.column=f-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!0?!1:this.previous().length?this.previous().some(f=>f.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let f=this.memoizedPaths.get(c);if(f)return f;let h=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(h=r(a(h,this.mapOpts.annotation)));let m=n(h,c);return this.memoizedPaths.set(c,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let f=c.source.input.map;this.previousMaps.includes(f)||this.previousMaps.push(f)}});else{let c=new l(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(f=>{if(f.source){let h=f.source.input.from;if(h&&!c[h]){c[h]=!0;let m=this.usesFileUrls?this.toFileUrl(h):this.toUrl(this.path(h));this.map.setSourceContent(m,f.source.input.css)}}});else if(this.css){let f=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(f,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let f=this.memoizedFileURLs.get(c);if(f)return f;if(s){let h=s(c).toString();return this.memoizedFileURLs.set(c,h),h}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let f=this.memoizedURLs.get(c);if(f)return f;o==="\\"&&(c=c.replace(/\\/g,"/"));let h=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,h),h}}return Df=u,Df}var Of,ly;function ou(){if(ly)return Of;ly=1;let e=ru();class t extends e{constructor(n){super(n),this.type="comment"}}return Of=t,t.default=t,Of}var Ff,iy;function Qn(){if(iy)return Ff;iy=1;let{isClean:e,my:t}=$p(),r=nu(),n=ou(),a=ru(),o,s,l,i;function d(c){return c.map(f=>(f.nodes&&(f.nodes=d(f.nodes)),delete f.source,f))}function u(c){if(c[e]=!1,c.proxyOf.nodes)for(let f of c.proxyOf.nodes)u(f)}class p extends a{append(...f){for(let h of f){let m=this.normalize(h,this.last);for(let y of m)this.proxyOf.nodes.push(y)}return this.markDirty(),this}cleanRaws(f){if(super.cleanRaws(f),this.nodes)for(let h of this.nodes)h.cleanRaws(f)}each(f){if(!this.proxyOf.nodes)return;let h=this.getIterator(),m,y;for(;this.indexes[h]<this.proxyOf.nodes.length&&(m=this.indexes[h],y=f(this.proxyOf.nodes[m],m),y!==!1);)this.indexes[h]+=1;return delete this.indexes[h],y}every(f){return this.nodes.every(f)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let f=this.lastEach;return this.indexes[f]=0,f}getProxyProcessor(){return{get(f,h){return h==="proxyOf"?f:f[h]?h==="each"||typeof h=="string"&&h.startsWith("walk")?(...m)=>f[h](...m.map(y=>typeof y=="function"?(g,x)=>y(g.toProxy(),x):y)):h==="every"||h==="some"?m=>f[h]((y,...g)=>m(y.toProxy(),...g)):h==="root"?()=>f.root().toProxy():h==="nodes"?f.nodes.map(m=>m.toProxy()):h==="first"||h==="last"?f[h].toProxy():f[h]:f[h]},set(f,h,m){return f[h]===m||(f[h]=m,(h==="name"||h==="params"||h==="selector")&&f.markDirty()),!0}}}index(f){return typeof f=="number"?f:(f.proxyOf&&(f=f.proxyOf),this.proxyOf.nodes.indexOf(f))}insertAfter(f,h){let m=this.index(f),y=this.normalize(h,this.proxyOf.nodes[m]).reverse();m=this.index(f);for(let x of y)this.proxyOf.nodes.splice(m+1,0,x);let g;for(let x in this.indexes)g=this.indexes[x],m<g&&(this.indexes[x]=g+y.length);return this.markDirty(),this}insertBefore(f,h){let m=this.index(f),y=m===0?"prepend":!1,g=this.normalize(h,this.proxyOf.nodes[m],y).reverse();m=this.index(f);for(let v of g)this.proxyOf.nodes.splice(m,0,v);let x;for(let v in this.indexes)x=this.indexes[v],m<=x&&(this.indexes[v]=x+g.length);return this.markDirty(),this}normalize(f,h){if(typeof f=="string")f=d(o(f).nodes);else if(typeof f>"u")f=[];else if(Array.isArray(f)){f=f.slice(0);for(let y of f)y.parent&&y.parent.removeChild(y,"ignore")}else if(f.type==="root"&&this.type!=="document"){f=f.nodes.slice(0);for(let y of f)y.parent&&y.parent.removeChild(y,"ignore")}else if(f.type)f=[f];else if(f.prop){if(typeof f.value>"u")throw new Error("Value field is missed in node creation");typeof f.value!="string"&&(f.value=String(f.value)),f=[new r(f)]}else if(f.selector)f=[new s(f)];else if(f.name)f=[new l(f)];else if(f.text)f=[new n(f)];else throw new Error("Unknown node type in node creation");return f.map(y=>(y[t]||p.rebuild(y),y=y.proxyOf,y.parent&&y.parent.removeChild(y),y[e]&&u(y),typeof y.raws.before>"u"&&h&&typeof h.raws.before<"u"&&(y.raws.before=h.raws.before.replace(/\S/g,"")),y.parent=this.proxyOf,y))}prepend(...f){f=f.reverse();for(let h of f){let m=this.normalize(h,this.first,"prepend").reverse();for(let y of m)this.proxyOf.nodes.unshift(y);for(let y in this.indexes)this.indexes[y]=this.indexes[y]+m.length}return this.markDirty(),this}push(f){return f.parent=this,this.proxyOf.nodes.push(f),this}removeAll(){for(let f of this.proxyOf.nodes)f.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(f){f=this.index(f),this.proxyOf.nodes[f].parent=void 0,this.proxyOf.nodes.splice(f,1);let h;for(let m in this.indexes)h=this.indexes[m],h>=f&&(this.indexes[m]=h-1);return this.markDirty(),this}replaceValues(f,h,m){return m||(m=h,h={}),this.walkDecls(y=>{h.props&&!h.props.includes(y.prop)||h.fast&&!y.value.includes(h.fast)||(y.value=y.value.replace(f,m))}),this.markDirty(),this}some(f){return this.nodes.some(f)}walk(f){return this.each((h,m)=>{let y;try{y=f(h,m)}catch(g){throw h.addToError(g)}return y!==!1&&h.walk&&(y=h.walk(f)),y})}walkAtRules(f,h){return h?f instanceof RegExp?this.walk((m,y)=>{if(m.type==="atrule"&&f.test(m.name))return h(m,y)}):this.walk((m,y)=>{if(m.type==="atrule"&&m.name===f)return h(m,y)}):(h=f,this.walk((m,y)=>{if(m.type==="atrule")return h(m,y)}))}walkComments(f){return this.walk((h,m)=>{if(h.type==="comment")return f(h,m)})}walkDecls(f,h){return h?f instanceof RegExp?this.walk((m,y)=>{if(m.type==="decl"&&f.test(m.prop))return h(m,y)}):this.walk((m,y)=>{if(m.type==="decl"&&m.prop===f)return h(m,y)}):(h=f,this.walk((m,y)=>{if(m.type==="decl")return h(m,y)}))}walkRules(f,h){return h?f instanceof RegExp?this.walk((m,y)=>{if(m.type==="rule"&&f.test(m.selector))return h(m,y)}):this.walk((m,y)=>{if(m.type==="rule"&&m.selector===f)return h(m,y)}):(h=f,this.walk((m,y)=>{if(m.type==="rule")return h(m,y)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return p.registerParse=c=>{o=c},p.registerRule=c=>{s=c},p.registerAtRule=c=>{l=c},p.registerRoot=c=>{i=c},Ff=p,p.default=p,p.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,l.prototype):c.type==="rule"?Object.setPrototypeOf(c,s.prototype):c.type==="decl"?Object.setPrototypeOf(c,r.prototype):c.type==="comment"?Object.setPrototypeOf(c,n.prototype):c.type==="root"&&Object.setPrototypeOf(c,i.prototype),c[t]=!0,c.nodes&&c.nodes.forEach(f=>{p.rebuild(f)})},Ff}var Bf,uy;function Hp(){if(uy)return Bf;uy=1;let e=Qn(),t,r;class n extends e{constructor(o){super({type:"document",...o}),this.nodes||(this.nodes=[])}toResult(o={}){return new t(new r,this,o).stringify()}}return n.registerLazyResult=a=>{t=a},n.registerProcessor=a=>{r=a},Bf=n,n.default=n,Bf}var zf,dy;function gw(){if(dy)return zf;dy=1;let e={};return zf=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},zf}var Uf,cy;function xw(){if(cy)return Uf;cy=1;class e{constructor(r,n={}){if(this.type="warning",this.text=r,n.node&&n.node.source){let a=n.node.rangeBy(n);this.line=a.start.line,this.column=a.start.column,this.endLine=a.end.line,this.endColumn=a.end.column}for(let a in n)this[a]=n[a]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Uf=e,e.default=e,Uf}var qf,fy;function jp(){if(fy)return qf;fy=1;let e=xw();class t{constructor(n,a,o){this.processor=n,this.messages=[],this.root=a,this.opts=o,this.css=void 0,this.map=void 0}toString(){return this.css}warn(n,a={}){a.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(a.plugin=this.lastPlugin.postcssPlugin);let o=new e(n,a);return this.messages.push(o),o}warnings(){return this.messages.filter(n=>n.type==="warning")}get content(){return this.css}}return qf=t,t.default=t,qf}var $f,py;function fL(){if(py)return $f;py=1;let e=39,t=34,r=92,n=47,a=10,o=32,s=12,l=9,i=13,d=91,u=93,p=40,c=41,f=123,h=125,m=59,y=42,g=58,x=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,S=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return $f=function(L,k={}){let _=L.css.valueOf(),N=k.ignoreErrors,P,I,re,_e,se,j,ve,Me,Le,Ce,br=_.length,T=0,yt=[],wt=[];function En(){return T}function Ye(K){throw L.error("Unclosed "+K,T)}function it(){return wt.length===0&&T>=br}function Sr(K){if(wt.length)return wt.pop();if(T>=br)return;let Re=K?K.ignoreUnclosed:!1;switch(P=_.charCodeAt(T),P){case a:case o:case l:case i:case s:{I=T;do I+=1,P=_.charCodeAt(I);while(P===o||P===a||P===l||P===i||P===s);Ce=["space",_.slice(T,I)],T=I-1;break}case d:case u:case f:case h:case g:case m:case c:{let ue=String.fromCharCode(P);Ce=[ue,ue,T];break}case p:{if(Me=yt.length?yt.pop()[1]:"",Le=_.charCodeAt(T+1),Me==="url"&&Le!==e&&Le!==t&&Le!==o&&Le!==a&&Le!==l&&Le!==s&&Le!==i){I=T;do{if(j=!1,I=_.indexOf(")",I+1),I===-1)if(N||Re){I=T;break}else Ye("bracket");for(ve=I;_.charCodeAt(ve-1)===r;)ve-=1,j=!j}while(j);Ce=["brackets",_.slice(T,I+1),T,I],T=I}else I=_.indexOf(")",T+1),_e=_.slice(T,I+1),I===-1||b.test(_e)?Ce=["(","(",T]:(Ce=["brackets",_e,T,I],T=I);break}case e:case t:{re=P===e?"'":'"',I=T;do{if(j=!1,I=_.indexOf(re,I+1),I===-1)if(N||Re){I=T+1;break}else Ye("string");for(ve=I;_.charCodeAt(ve-1)===r;)ve-=1,j=!j}while(j);Ce=["string",_.slice(T,I+1),T,I],T=I;break}case x:{v.lastIndex=T+1,v.test(_),v.lastIndex===0?I=_.length-1:I=v.lastIndex-2,Ce=["at-word",_.slice(T,I+1),T,I],T=I;break}case r:{for(I=T,se=!0;_.charCodeAt(I+1)===r;)I+=1,se=!se;if(P=_.charCodeAt(I+1),se&&P!==n&&P!==o&&P!==a&&P!==l&&P!==i&&P!==s&&(I+=1,w.test(_.charAt(I)))){for(;w.test(_.charAt(I+1));)I+=1;_.charCodeAt(I+1)===o&&(I+=1)}Ce=["word",_.slice(T,I+1),T,I],T=I;break}default:{P===n&&_.charCodeAt(T+1)===y?(I=_.indexOf("*/",T+2)+1,I===0&&(N||Re?I=_.length:Ye("comment")),Ce=["comment",_.slice(T,I+1),T,I],T=I):(S.lastIndex=T+1,S.test(_),S.lastIndex===0?I=_.length-1:I=S.lastIndex-2,Ce=["word",_.slice(T,I+1),T,I],yt.push(Ce),T=I);break}}return T++,Ce}function Cr(K){wt.push(K)}return{back:Cr,endOfFile:it,nextToken:Sr,position:En}},$f}var Hf,my;function Wp(){if(my)return Hf;my=1;let e=Qn();class t extends e{constructor(n){super(n),this.type="atrule"}append(...n){return this.proxyOf.nodes||(this.nodes=[]),super.append(...n)}prepend(...n){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...n)}}return Hf=t,t.default=t,e.registerAtRule(t),Hf}var jf,hy;function xs(){if(hy)return jf;hy=1;let e=Qn(),t,r;class n extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,s,l){let i=super.normalize(o);if(s){if(l==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let d of i)d.raws.before=s.raws.before}return i}removeChild(o,s){let l=this.index(o);return!s&&l===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[l].raws.before),super.removeChild(o)}toResult(o={}){return new t(new r,this,o).stringify()}}return n.registerLazyResult=a=>{t=a},n.registerProcessor=a=>{r=a},jf=n,n.default=n,e.registerRoot(n),jf}var Wf,gy;function vw(){if(gy)return Wf;gy=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
|
|
57
|
+
`," "];return e.split(t,r)},split(t,r,n){let a=[],o="",s=!1,l=0,i=!1,d="",u=!1;for(let p of t)u?u=!1:p==="\\"?u=!0:i?p===d&&(i=!1):p==='"'||p==="'"?(i=!0,d=p):p==="("?l+=1:p===")"?l>0&&(l-=1):l===0&&r.includes(p)&&(s=!0),s?(o!==""&&a.push(o.trim()),o="",s=!1):o+=p;return(n||o!=="")&&a.push(o.trim()),a}};return Wf=e,e.default=e,Wf}var Vf,xy;function Vp(){if(xy)return Vf;xy=1;let e=Qn(),t=vw();class r extends e{constructor(a){super(a),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(a){let o=this.selector?this.selector.match(/,\s*/):null,s=o?o[0]:","+this.raw("between","beforeOpen");this.selector=a.join(s)}}return Vf=r,r.default=r,e.registerRule(r),Vf}var Gf,vy;function pL(){if(vy)return Gf;vy=1;let e=nu(),t=fL(),r=ou(),n=Wp(),a=xs(),o=Vp(),s={empty:!0,space:!0};function l(d){for(let u=d.length-1;u>=0;u--){let p=d[u],c=p[3]||p[2];if(c)return c}}class i{constructor(u){this.input=u,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:u,start:{column:1,line:1,offset:0}}}atrule(u){let p=new n;p.name=u[1].slice(1),p.name===""&&this.unnamedAtrule(p,u),this.init(p,u[2]);let c,f,h,m=!1,y=!1,g=[],x=[];for(;!this.tokenizer.endOfFile();){if(u=this.tokenizer.nextToken(),c=u[0],c==="("||c==="["?x.push(c==="("?")":"]"):c==="{"&&x.length>0?x.push("}"):c===x[x.length-1]&&x.pop(),x.length===0)if(c===";"){p.source.end=this.getPosition(u[2]),p.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){y=!0;break}else if(c==="}"){if(g.length>0){for(h=g.length-1,f=g[h];f&&f[0]==="space";)f=g[--h];f&&(p.source.end=this.getPosition(f[3]||f[2]),p.source.end.offset++)}this.end(u);break}else g.push(u);else g.push(u);if(this.tokenizer.endOfFile()){m=!0;break}}p.raws.between=this.spacesAndCommentsFromEnd(g),g.length?(p.raws.afterName=this.spacesAndCommentsFromStart(g),this.raw(p,"params",g),m&&(u=g[g.length-1],p.source.end=this.getPosition(u[3]||u[2]),p.source.end.offset++,this.spaces=p.raws.between,p.raws.between="")):(p.raws.afterName="",p.params=""),y&&(p.nodes=[],this.current=p)}checkMissedSemicolon(u){let p=this.colon(u);if(p===!1)return;let c=0,f;for(let h=p-1;h>=0&&(f=u[h],!(f[0]!=="space"&&(c+=1,c===2)));h--);throw this.input.error("Missed semicolon",f[0]==="word"?f[3]+1:f[2])}colon(u){let p=0,c,f,h;for(let[m,y]of u.entries()){if(c=y,f=c[0],f==="("&&(p+=1),f===")"&&(p-=1),p===0&&f===":")if(!h)this.doubleColon(c);else{if(h[0]==="word"&&h[1]==="progid")continue;return m}h=c}return!1}comment(u){let p=new r;this.init(p,u[2]),p.source.end=this.getPosition(u[3]||u[2]),p.source.end.offset++;let c=u[1].slice(2,-2);if(/^\s*$/.test(c))p.text="",p.raws.left=c,p.raws.right="";else{let f=c.match(/^(\s*)([^]*\S)(\s*)$/);p.text=f[2],p.raws.left=f[1],p.raws.right=f[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(u,p){let c=new e;this.init(c,u[0][2]);let f=u[u.length-1];for(f[0]===";"&&(this.semicolon=!0,u.pop()),c.source.end=this.getPosition(f[3]||f[2]||l(u)),c.source.end.offset++;u[0][0]!=="word";)u.length===1&&this.unknownWord(u),c.raws.before+=u.shift()[1];for(c.source.start=this.getPosition(u[0][2]),c.prop="";u.length;){let x=u[0][0];if(x===":"||x==="space"||x==="comment")break;c.prop+=u.shift()[1]}c.raws.between="";let h;for(;u.length;)if(h=u.shift(),h[0]===":"){c.raws.between+=h[1];break}else h[0]==="word"&&/\w/.test(h[1])&&this.unknownWord([h]),c.raws.between+=h[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let m=[],y;for(;u.length&&(y=u[0][0],!(y!=="space"&&y!=="comment"));)m.push(u.shift());this.precheckMissedSemicolon(u);for(let x=u.length-1;x>=0;x--){if(h=u[x],h[1].toLowerCase()==="!important"){c.important=!0;let v=this.stringFrom(u,x);v=this.spacesFromEnd(u)+v,v!==" !important"&&(c.raws.important=v);break}else if(h[1].toLowerCase()==="important"){let v=u.slice(0),S="";for(let b=x;b>0;b--){let w=v[b][0];if(S.trim().indexOf("!")===0&&w!=="space")break;S=v.pop()[1]+S}S.trim().indexOf("!")===0&&(c.important=!0,c.raws.important=S,u=v)}if(h[0]!=="space"&&h[0]!=="comment")break}u.some(x=>x[0]!=="space"&&x[0]!=="comment")&&(c.raws.between+=m.map(x=>x[1]).join(""),m=[]),this.raw(c,"value",m.concat(u),p),c.value.includes(":")&&!p&&this.checkMissedSemicolon(u)}doubleColon(u){throw this.input.error("Double colon",{offset:u[2]},{offset:u[2]+u[1].length})}emptyRule(u){let p=new o;this.init(p,u[2]),p.selector="",p.raws.between="",this.current=p}end(u){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(u[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(u)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(u){if(this.spaces+=u[1],this.current.nodes){let p=this.current.nodes[this.current.nodes.length-1];p&&p.type==="rule"&&!p.raws.ownSemicolon&&(p.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(u){let p=this.input.fromOffset(u);return{column:p.col,line:p.line,offset:u}}init(u,p){this.current.push(u),u.source={input:this.input,start:this.getPosition(p)},u.raws.before=this.spaces,this.spaces="",u.type!=="comment"&&(this.semicolon=!1)}other(u){let p=!1,c=null,f=!1,h=null,m=[],y=u[1].startsWith("--"),g=[],x=u;for(;x;){if(c=x[0],g.push(x),c==="("||c==="[")h||(h=x),m.push(c==="("?")":"]");else if(y&&f&&c==="{")h||(h=x),m.push("}");else if(m.length===0)if(c===";")if(f){this.decl(g,y);return}else break;else if(c==="{"){this.rule(g);return}else if(c==="}"){this.tokenizer.back(g.pop()),p=!0;break}else c===":"&&(f=!0);else c===m[m.length-1]&&(m.pop(),m.length===0&&(h=null));x=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(p=!0),m.length>0&&this.unclosedBracket(h),p&&f){if(!y)for(;g.length&&(x=g[g.length-1][0],!(x!=="space"&&x!=="comment"));)this.tokenizer.back(g.pop());this.decl(g,y)}else this.unknownWord(g)}parse(){let u;for(;!this.tokenizer.endOfFile();)switch(u=this.tokenizer.nextToken(),u[0]){case"space":this.spaces+=u[1];break;case";":this.freeSemicolon(u);break;case"}":this.end(u);break;case"comment":this.comment(u);break;case"at-word":this.atrule(u);break;case"{":this.emptyRule(u);break;default:this.other(u);break}this.endFile()}precheckMissedSemicolon(){}raw(u,p,c,f){let h,m,y=c.length,g="",x=!0,v,S;for(let b=0;b<y;b+=1)h=c[b],m=h[0],m==="space"&&b===y-1&&!f?x=!1:m==="comment"?(S=c[b-1]?c[b-1][0]:"empty",v=c[b+1]?c[b+1][0]:"empty",!s[S]&&!s[v]?g.slice(-1)===","?x=!1:g+=h[1]:x=!1):g+=h[1];if(!x){let b=c.reduce((w,C)=>w+C[1],"");u.raws[p]={raw:b,value:g}}u[p]=g}rule(u){u.pop();let p=new o;this.init(p,u[0][2]),p.raws.between=this.spacesAndCommentsFromEnd(u),this.raw(p,"selector",u),this.current=p}spacesAndCommentsFromEnd(u){let p,c="";for(;u.length&&(p=u[u.length-1][0],!(p!=="space"&&p!=="comment"));)c=u.pop()[1]+c;return c}spacesAndCommentsFromStart(u){let p,c="";for(;u.length&&(p=u[0][0],!(p!=="space"&&p!=="comment"));)c+=u.shift()[1];return c}spacesFromEnd(u){let p,c="";for(;u.length&&(p=u[u.length-1][0],p==="space");)c=u.pop()[1]+c;return c}stringFrom(u,p){let c="";for(let f=p;f<u.length;f++)c+=u[f][1];return u.splice(p,u.length-p),c}unclosedBlock(){let u=this.current.source.start;throw this.input.error("Unclosed block",u.line,u.column)}unclosedBracket(u){throw this.input.error("Unclosed bracket",{offset:u[2]},{offset:u[2]+1})}unexpectedClose(u){throw this.input.error("Unexpected }",{offset:u[2]},{offset:u[2]+1})}unknownWord(u){throw this.input.error("Unknown word",{offset:u[0][2]},{offset:u[0][2]+u[0][1].length})}unnamedAtrule(u,p){throw this.input.error("At-rule without name",{offset:p[2]},{offset:p[2]+p[1].length})}}return Gf=i,Gf}var Xf,yy;function Gp(){if(yy)return Xf;yy=1;let e=Qn(),t=pL(),r=au();function n(a,o){let s=new r(a,o),l=new t(s);try{l.parse()}catch(i){throw i}return l.root}return Xf=n,n.default=n,e.registerParse(n),Xf}var Kf,wy;function yw(){if(wy)return Kf;wy=1;let{isClean:e,my:t}=$p(),r=hw(),n=tu(),a=Qn(),o=Hp(),s=gw(),l=jp(),i=Gp(),d=xs(),u={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},p={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},f=0;function h(S){return typeof S=="object"&&typeof S.then=="function"}function m(S){let b=!1,w=u[S.type];return S.type==="decl"?b=S.prop.toLowerCase():S.type==="atrule"&&(b=S.name.toLowerCase()),b&&S.append?[w,w+"-"+b,f,w+"Exit",w+"Exit-"+b]:b?[w,w+"-"+b,w+"Exit",w+"Exit-"+b]:S.append?[w,f,w+"Exit"]:[w,w+"Exit"]}function y(S){let b;return S.type==="document"?b=["Document",f,"DocumentExit"]:S.type==="root"?b=["Root",f,"RootExit"]:b=m(S),{eventIndex:0,events:b,iterator:0,node:S,visitorIndex:0,visitors:[]}}function g(S){return S[e]=!1,S.nodes&&S.nodes.forEach(b=>g(b)),S}let x={};class v{constructor(b,w,C){this.stringified=!1,this.processed=!1;let L;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))L=g(w);else if(w instanceof v||w instanceof l)L=g(w.root),w.map&&(typeof C.map>"u"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=w.map);else{let k=i;C.syntax&&(k=C.syntax.parse),C.parser&&(k=C.parser),k.parse&&(k=k.parse);try{L=k(w,C)}catch(_){this.processed=!0,this.error=_}L&&!L[t]&&a.rebuild(L)}this.result=new l(b,L,C),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(k=>typeof k=="object"&&k.prepare?{...k,...k.prepare(this.result)}:k)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(b){return this.async().catch(b)}finally(b){return this.async().then(b,b)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(b,w){let C=this.result.lastPlugin;try{w&&w.addToError(b),this.error=b,b.name==="CssSyntaxError"&&!b.plugin?(b.plugin=C.postcssPlugin,b.setMessage()):C.postcssVersion}catch(L){console&&console.error&&console.error(L)}return b}prepareVisitors(){this.listeners={};let b=(w,C,L)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([w,L])};for(let w of this.plugins)if(typeof w=="object")for(let C in w){if(!p[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[C])if(typeof w[C]=="object")for(let L in w[C])L==="*"?b(w,C,w[C][L]):b(w,C+"-"+L.toLowerCase(),w[C][L]);else typeof w[C]=="function"&&b(w,C,w[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let b=0;b<this.plugins.length;b++){let w=this.plugins[b],C=this.runOnRoot(w);if(h(C))try{await C}catch(L){throw this.handleError(L)}}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];){b[e]=!0;let w=[y(b)];for(;w.length>0;){let C=this.visitTick(w);if(h(C))try{await C}catch(L){let k=w[w.length-1].node;throw this.handleError(L,k)}}}if(this.listeners.OnceExit)for(let[w,C]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(b.type==="document"){let L=b.nodes.map(k=>C(k,this.helpers));await Promise.all(L)}else await C(b,this.helpers)}catch(L){throw this.handleError(L)}}}return this.processed=!0,this.stringify()}runOnRoot(b){this.result.lastPlugin=b;try{if(typeof b=="object"&&b.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(C=>b.Once(C,this.helpers));return h(w[0])?Promise.all(w):w}return b.Once(this.result.root,this.helpers)}else if(typeof b=="function")return b(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let b=this.result.opts,w=n;b.syntax&&(w=b.syntax.stringify),b.stringifier&&(w=b.stringifier),w.stringify&&(w=w.stringify);let L=new r(w,this.result.root,this.result.opts).generate();return this.result.css=L[0],this.result.map=L[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let b of this.plugins){let w=this.runOnRoot(b);if(h(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];)b[e]=!0,this.walkSync(b);if(this.listeners.OnceExit)if(b.type==="document")for(let w of b.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,b)}return this.result}then(b,w){return this.async().then(b,w)}toString(){return this.css}visitSync(b,w){for(let[C,L]of b){this.result.lastPlugin=C;let k;try{k=L(w,this.helpers)}catch(_){throw this.handleError(_,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(h(k))throw this.getAsyncError()}}visitTick(b){let w=b[b.length-1],{node:C,visitors:L}=w;if(C.type!=="root"&&C.type!=="document"&&!C.parent){b.pop();return}if(L.length>0&&w.visitorIndex<L.length){let[_,N]=L[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===L.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=_;try{return N(C.toProxy(),this.helpers)}catch(P){throw this.handleError(P,C)}}if(w.iterator!==0){let _=w.iterator,N;for(;N=C.nodes[C.indexes[_]];)if(C.indexes[_]+=1,!N[e]){N[e]=!0,b.push(y(N));return}w.iterator=0,delete C.indexes[_]}let k=w.events;for(;w.eventIndex<k.length;){let _=k[w.eventIndex];if(w.eventIndex+=1,_===f){C.nodes&&C.nodes.length&&(C[e]=!0,w.iterator=C.getIterator());return}else if(this.listeners[_]){w.visitors=this.listeners[_];return}}b.pop()}walkSync(b){b[e]=!0;let w=m(b);for(let C of w)if(C===f)b.nodes&&b.each(L=>{L[e]||this.walkSync(L)});else{let L=this.listeners[C];if(L&&this.visitSync(L,b.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return v.registerPostcss=S=>{x=S},Kf=v,v.default=v,d.registerLazyResult(v),o.registerLazyResult(v),Kf}var Qf,by;function mL(){if(by)return Qf;by=1;let e=hw(),t=tu(),r=gw(),n=Gp(),a=jp();class o{constructor(l,i,d){i=i.toString(),this.stringified=!1,this._processor=l,this._css=i,this._opts=d,this._map=void 0;let u,p=t;this.result=new a(this._processor,u,this._opts),this.result.css=i;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let f=new e(p,u,this._opts,i);if(f.isMap()){let[h,m]=f.generate();h&&(this.result.css=h),m&&(this.result.map=m)}else f.clearAnnotation(),this.result.css=f.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(l){return this.async().catch(l)}finally(l){return this.async().then(l,l)}sync(){if(this.error)throw this.error;return this.result}then(l,i){return this.async().then(l,i)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let l,i=n;try{l=i(this._css,this._opts)}catch(d){this.error=d}if(this.error)throw this.error;return this._root=l,l}get[Symbol.toStringTag](){return"NoWorkResult"}}return Qf=o,o.default=o,Qf}var Yf,Sy;function hL(){if(Sy)return Yf;Sy=1;let e=mL(),t=yw(),r=Hp(),n=xs();class a{constructor(s=[]){this.version="8.4.38",this.plugins=this.normalize(s)}normalize(s){let l=[];for(let i of s)if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),typeof i=="object"&&Array.isArray(i.plugins))l=l.concat(i.plugins);else if(typeof i=="object"&&i.postcssPlugin)l.push(i);else if(typeof i=="function")l.push(i);else if(!(typeof i=="object"&&(i.parse||i.stringify)))throw new Error(i+" is not a PostCSS plugin");return l}process(s,l={}){return!this.plugins.length&&!l.parser&&!l.stringifier&&!l.syntax?new e(this,s,l):new t(this,s,l)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return Yf=a,a.default=a,n.registerProcessor(a),r.registerProcessor(a),Yf}var Jf,Cy;function gL(){if(Cy)return Jf;Cy=1;let e=nu(),t=mw(),r=ou(),n=Wp(),a=au(),o=xs(),s=Vp();function l(i,d){if(Array.isArray(i))return i.map(c=>l(c));let{inputs:u,...p}=i;if(u){d=[];for(let c of u){let f={...c,__proto__:a.prototype};f.map&&(f.map={...f.map,__proto__:t.prototype}),d.push(f)}}if(p.nodes&&(p.nodes=i.nodes.map(c=>l(c,d))),p.source){let{inputId:c,...f}=p.source;p.source=f,c!=null&&(p.source.input=d[c])}if(p.type==="root")return new o(p);if(p.type==="decl")return new e(p);if(p.type==="rule")return new s(p);if(p.type==="comment")return new r(p);if(p.type==="atrule")return new n(p);throw new Error("Unknown node type: "+i.type)}return Jf=l,l.default=l,Jf}var Zf,Ly;function xL(){if(Ly)return Zf;Ly=1;let e=qp(),t=nu(),r=yw(),n=Qn(),a=hL(),o=tu(),s=gL(),l=Hp(),i=xw(),d=ou(),u=Wp(),p=jp(),c=au(),f=Gp(),h=vw(),m=Vp(),y=xs(),g=ru();function x(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new a(v)}return x.plugin=function(S,b){let w=!1;function C(...k){console&&console.warn&&!w&&(w=!0,console.warn(S+`: postcss.plugin was deprecated. Migration guide:
|
|
58
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(S+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
59
|
+
https://www.w3ctech.com/topic/2226`));let _=b(...k);return _.postcssPlugin=S,_.postcssVersion=new a().version,_}let L;return Object.defineProperty(C,"postcss",{get(){return L||(L=C()),L}}),C.process=function(k,_,N){return x([C(N)]).process(k,_)},C},x.stringify=o,x.parse=f,x.fromJSON=s,x.list=h,x.comment=v=>new d(v),x.atRule=v=>new u(v),x.decl=v=>new t(v),x.rule=v=>new m(v),x.root=v=>new y(v),x.document=v=>new l(v),x.CssSyntaxError=e,x.Declaration=t,x.Container=n,x.Processor=a,x.Document=l,x.Comment=d,x.Warning=i,x.AtRule=u,x.Result=p,x.Input=c,x.Rule=m,x.Root=y,x.Node=g,r.registerPostcss(x),Zf=x,x.default=x,Zf}var vL=xL(),Ue=sL(vL);Ue.stringify;Ue.fromJSON;Ue.plugin;Ue.parse;Ue.list;Ue.document;Ue.comment;Ue.atRule;Ue.rule;Ue.decl;Ue.root;Ue.CssSyntaxError;Ue.Declaration;Ue.Container;Ue.Processor;Ue.Document;Ue.Comment;Ue.Warning;Ue.AtRule;Ue.Result;Ue.Input;Ue.Rule;Ue.Root;Ue.Node;var pe=(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))(pe||{});function yL(e){let t={},r=/;(?![^(]*\))/g,n=/:(.+)/,a=/\/\*.*?\*\//g;return e.replace(a,"").split(r).forEach(function(o){if(o){let s=o.split(n);s.length>1&&(t[lp(s[0].trim())]=s[1].trim())}}),t}function ky(e){let t=[];for(let r in e){let n=e[r];if(typeof n!="string")continue;let a=CL(r);t.push(`${a}: ${n};`)}return t.join(" ")}var wL=/-([a-z])/g,bL=/^--[a-zA-Z0-9-]+$/,lp=e=>bL.test(e)?e:e.replace(wL,(t,r)=>r?r.toUpperCase():""),SL=/\B([A-Z])/g,CL=e=>e.replace(SL,"-$1").toLowerCase(),wr=class e{constructor(...t){U(this,"parentElement",null),U(this,"parentNode",null),U(this,"ownerDocument"),U(this,"firstChild",null),U(this,"lastChild",null),U(this,"previousSibling",null),U(this,"nextSibling",null),U(this,"ELEMENT_NODE",1),U(this,"TEXT_NODE",3),U(this,"nodeType"),U(this,"nodeName"),U(this,"RRNodeType")}get childNodes(){let t=[],r=this.firstChild;for(;r;)t.push(r),r=r.nextSibling;return t}contains(t){if(t instanceof e){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}},ip=class e extends wr{constructor(...t){super(t),U(this,"nodeType",9),U(this,"nodeName","#document"),U(this,"compatMode","CSS1Compat"),U(this,"RRNodeType",pe.Document),U(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(t=>t.RRNodeType===pe.Element&&t.tagName==="HTML")||null}get body(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===pe.Element&&r.tagName==="BODY"))||null}get head(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===pe.Element&&r.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(t){let r=t.RRNodeType;if((r===pe.Element||r===pe.DocumentType)&&this.childNodes.some(a=>a.RRNodeType===r))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${r===pe.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);let n=Xp(this,t);return n.parentElement=null,n}insertBefore(t,r){let n=t.RRNodeType;if((n===pe.Element||n===pe.DocumentType)&&this.childNodes.some(o=>o.RRNodeType===n))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${n===pe.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);let a=ww(this,t,r);return a.parentElement=null,a}removeChild(t){return bw(this,t)}open(){this.firstChild=null,this.lastChild=null}close(){}write(t){let r;if(t==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?r="-//W3C//DTD XHTML 1.0 Transitional//EN":t==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(r="-//W3C//DTD HTML 4.0 Transitional//EN"),r){let n=this.createDocumentType("html",r,"");this.open(),this.appendChild(n)}}createDocument(t,r,n){return new e}createDocumentType(t,r,n){let a=new Fi(t,r,n);return a.ownerDocument=this,a}createElement(t){let r=new eo(t);return r.ownerDocument=this,r}createElementNS(t,r){return this.createElement(r)}createTextNode(t){let r=new Bi(t);return r.ownerDocument=this,r}createComment(t){let r=new zi(t);return r.ownerDocument=this,r}createCDATASection(t){let r=new Ui(t);return r.ownerDocument=this,r}toString(){return"RRDocument"}},Fi=class extends wr{constructor(t,r,n){super(),U(this,"nodeType",10),U(this,"RRNodeType",pe.DocumentType),U(this,"name"),U(this,"publicId"),U(this,"systemId"),U(this,"textContent",null),this.name=t,this.publicId=r,this.systemId=n,this.nodeName=t}toString(){return"RRDocumentType"}},eo=class extends wr{constructor(t){super(),U(this,"nodeType",1),U(this,"RRNodeType",pe.Element),U(this,"tagName"),U(this,"attributes",{}),U(this,"shadowRoot",null),U(this,"scrollLeft"),U(this,"scrollTop"),this.tagName=t.toUpperCase(),this.nodeName=t.toUpperCase()}get textContent(){let t="";return this.childNodes.forEach(r=>t+=r.textContent),t}set textContent(t){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(t))}get classList(){return new cp(this.attributes.class,t=>{this.attributes.class=t})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){let t=this.attributes.style?yL(this.attributes.style):{},r=/\B([A-Z])/g;return t.setProperty=(n,a,o)=>{if(r.test(n))return;let s=lp(n);a?t[s]=a:delete t[s],o==="important"&&(t[s]+=" !important"),this.attributes.style=ky(t)},t.removeProperty=n=>{if(r.test(n))return"";let a=lp(n),o=t[a]||"";return delete t[a],this.attributes.style=ky(t),o},t}getAttribute(t){return this.attributes[t]===void 0?null:this.attributes[t]}setAttribute(t,r){this.attributes[t]=r}setAttributeNS(t,r,n){this.setAttribute(r,n)}removeAttribute(t){delete this.attributes[t]}appendChild(t){return Xp(this,t)}insertBefore(t,r){return ww(this,t,r)}removeChild(t){return bw(this,t)}attachShadow(t){let r=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=r,r}dispatchEvent(t){return!0}toString(){let t="";for(let r in this.attributes)t+=`${r}="${this.attributes[r]}" `;return`${this.tagName} ${t}`}},up=class extends eo{constructor(){super(...arguments),U(this,"currentTime"),U(this,"volume"),U(this,"paused"),U(this,"muted"),U(this,"playbackRate"),U(this,"loop")}attachShadow(t){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}},dp=class extends eo{constructor(){super(...arguments),U(this,"tagName","DIALOG"),U(this,"nodeName","DIALOG")}get isModal(){return this.getAttribute("rr_open_mode")==="modal"}get open(){return this.getAttribute("open")!==null}close(){this.removeAttribute("open"),this.removeAttribute("rr_open_mode")}show(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","non-modal")}showModal(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","modal")}},Bi=class extends wr{constructor(t){super(),U(this,"nodeType",3),U(this,"nodeName","#text"),U(this,"RRNodeType",pe.Text),U(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRText text=${JSON.stringify(this.data)}`}},zi=class extends wr{constructor(t){super(),U(this,"nodeType",8),U(this,"nodeName","#comment"),U(this,"RRNodeType",pe.Comment),U(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRComment text=${JSON.stringify(this.data)}`}},Ui=class extends wr{constructor(t){super(),U(this,"nodeName","#cdata-section"),U(this,"nodeType",4),U(this,"RRNodeType",pe.CDATA),U(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}},cp=class{constructor(t,r){if(U(this,"onChange"),U(this,"classes",[]),U(this,"add",(...n)=>{for(let a of n){let o=String(a);this.classes.indexOf(o)>=0||this.classes.push(o)}this.onChange&&this.onChange(this.classes.join(" "))}),U(this,"remove",(...n)=>{this.classes=this.classes.filter(a=>n.indexOf(a)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),t){let n=t.trim().split(/\s+/);this.classes.push(...n)}this.onChange=r}};function Xp(e,t){return t.parentNode&&t.parentNode.removeChild(t),e.lastChild?(e.lastChild.nextSibling=t,t.previousSibling=e.lastChild):(e.firstChild=t,t.previousSibling=null),e.lastChild=t,t.nextSibling=null,t.parentNode=e,t.parentElement=e,t.ownerDocument=e.ownerDocument,t}function ww(e,t,r){if(!r)return Xp(e,t);if(r.parentNode!==e)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return t===r||(t.parentNode&&t.parentNode.removeChild(t),t.previousSibling=r.previousSibling,r.previousSibling=t,t.nextSibling=r,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,t.parentElement=e,t.parentNode=e,t.ownerDocument=e.ownerDocument),t}function bw(e,t){if(t.parentNode!==e)throw new Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return t.previousSibling?t.previousSibling.nextSibling=t.nextSibling:e.firstChild=t.nextSibling,t.nextSibling?t.nextSibling.previousSibling=t.previousSibling:e.lastChild=t.previousSibling,t.previousSibling=null,t.nextSibling=null,t.parentElement=null,t.parentNode=null,t}var Ht=(e=>(e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",e))(Ht||{}),fp={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},LL={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"},Er=null;function qi(e,t,r,n=t.mirror||t.ownerDocument.mirror){e=kL(e,t,r,n),Sw(e,t,r,n),IL(e,t,r)}function kL(e,t,r,n){var a;if(r.afterAppend&&!Er&&(Er=new WeakSet,setTimeout(()=>{Er=null},0)),!Kp(e,t)){let o=$i(t,r.mirror,n);(a=e.parentNode)==null||a.replaceChild(o,e),e=o}switch(t.RRNodeType){case pe.Document:{if(!Ga(e,t,r.mirror,n)){let o=n.getMeta(t);o&&(r.mirror.removeNodeFromMap(e),e.close(),e.open(),r.mirror.add(e,o),Er?.add(e))}break}case pe.Element:{let o=e,s=t;switch(s.tagName){case"IFRAME":{let l=e.contentDocument;if(!l)break;qi(l,t.contentDocument,r,n);break}}s.shadowRoot&&(o.shadowRoot||o.attachShadow({mode:"open"}),Sw(o.shadowRoot,s.shadowRoot,r,n)),_L(o,s,n);break}}return e}function IL(e,t,r){var n;switch(t.RRNodeType){case pe.Document:{let a=t.scrollData;a&&r.applyScroll(a,!0);break}case pe.Element:{let a=e,o=t;switch(o.scrollData&&r.applyScroll(o.scrollData,!0),o.inputData&&r.applyInput(o.inputData),o.tagName){case"AUDIO":case"VIDEO":{let s=e,l=o;l.paused!==void 0&&(l.paused?s.pause():s.play()),l.muted!==void 0&&(s.muted=l.muted),l.volume!==void 0&&(s.volume=l.volume),l.currentTime!==void 0&&(s.currentTime=l.currentTime),l.playbackRate!==void 0&&(s.playbackRate=l.playbackRate),l.loop!==void 0&&(s.loop=l.loop);break}case"CANVAS":{let s=t;if(s.rr_dataURL!==null){let l=document.createElement("img");l.onload=()=>{let i=a.getContext("2d");i&&i.drawImage(l,0,0,l.width,l.height)},l.src=s.rr_dataURL}s.canvasMutations.forEach(l=>r.applyCanvas(l.event,l.mutation,e));break}case"STYLE":{let s=a.sheet;s&&t.rules.forEach(l=>r.applyStyleSheetMutation(l,s));break}case"DIALOG":{let s=a,l=o,i=s.open,d=s.matches("dialog:modal"),u=l.open,p=l.isModal,c=d!==p,f=i!==u;if((c||i&&f)&&s.close(),u&&(f||c))try{p?s.showModal():s.show()}catch(h){console.warn(h)}break}}break}case pe.Text:case pe.Comment:case pe.CDATA:{e.textContent!==t.data&&(e.textContent=t.data);break}}Er?.has(e)&&(Er.delete(e),(n=r.afterAppend)==null||n.call(r,e,r.mirror.getId(e)))}function _L(e,t,r){let n=e.attributes,a=t.attributes;for(let o in a){let s=a[o],l=r.getMeta(t);if(l?.isSVG&&fp[o])e.setAttributeNS(fp[o],o,s);else if(t.tagName==="CANVAS"&&o==="rr_dataURL"){let i=document.createElement("img");i.src=s,i.onload=()=>{let d=e.getContext("2d");d&&d.drawImage(i,0,0,i.width,i.height)}}else{if(t.tagName==="IFRAME"&&o==="srcdoc")continue;try{e.setAttribute(o,s)}catch(i){console.warn(i)}}}for(let{name:o}of Array.from(n))o in a||e.removeAttribute(o);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}function Sw(e,t,r,n){let a=Array.from(e.childNodes),o=t.childNodes;if(a.length===0&&o.length===0)return;let s=0,l=a.length-1,i=0,d=o.length-1,u=a[s],p=a[l],c=o[i],f=o[d],h,m;for(;s<=l&&i<=d;)if(u===void 0)u=a[++s];else if(p===void 0)p=a[--l];else if(Ga(u,c,r.mirror,n))u=a[++s],c=o[++i];else if(Ga(p,f,r.mirror,n))p=a[--l],f=o[--d];else if(Ga(u,f,r.mirror,n)){try{e.insertBefore(u,p.nextSibling)}catch(x){console.warn(x)}u=a[++s],f=o[--d]}else if(Ga(p,c,r.mirror,n)){try{e.insertBefore(p,u)}catch(x){console.warn(x)}p=a[--l],c=o[++i]}else{if(!h){h={};for(let v=s;v<=l;v++){let S=a[v];S&&r.mirror.hasNode(S)&&(h[r.mirror.getId(S)]=v)}}m=h[n.getId(c)];let x=a[m];if(m!==void 0&&x&&Ga(x,c,r.mirror,n)){try{e.insertBefore(x,u)}catch(v){console.warn(v)}a[m]=void 0}else{let v=$i(c,r.mirror,n);e.nodeName==="#document"&&u&&(v.nodeType===v.DOCUMENT_TYPE_NODE&&u.nodeType===u.DOCUMENT_TYPE_NODE||v.nodeType===v.ELEMENT_NODE&&u.nodeType===u.ELEMENT_NODE)&&(e.removeChild(u),r.mirror.removeNodeFromMap(u),u=a[++s]);try{e.insertBefore(v,u||null)}catch(S){console.warn(S)}}c=o[++i]}if(s>l){let x=o[d+1],v=null;for(x&&(v=r.mirror.getNode(n.getId(x)));i<=d;++i){let S=$i(o[i],r.mirror,n);try{e.insertBefore(S,v)}catch(b){console.warn(b)}}}else if(i>d)for(;s<=l;s++){let x=a[s];if(!(!x||x.parentNode!==e))try{e.removeChild(x),r.mirror.removeNodeFromMap(x)}catch(v){console.warn(v)}}let y=e.firstChild,g=t.firstChild;for(;y!==null&&g!==null;)qi(y,g,r,n),y=y.nextSibling,g=g.nextSibling}function $i(e,t,r){let n=r.getId(e),a=r.getMeta(e),o=null;if(n>-1&&(o=t.getNode(n)),o!==null&&Kp(o,e))return o;switch(e.RRNodeType){case pe.Document:o=new Document;break;case pe.DocumentType:o=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case pe.Element:{let s=e.tagName.toLowerCase();s=LL[s]||s,a&&"isSVG"in a&&a?.isSVG?o=document.createElementNS(fp.svg,s):o=document.createElement(e.tagName);break}case pe.Text:o=document.createTextNode(e.data);break;case pe.Comment:o=document.createComment(e.data);break;case pe.CDATA:o=document.createCDATASection(e.data);break}a&&t.add(o,{...a});try{Er?.add(o)}catch{}return o}function Kp(e,t){return e.nodeType!==t.nodeType?!1:e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName}function Ga(e,t,r,n){let a=r.getId(e),o=n.getId(t);return a===-1||a!==o?!1:Kp(e,t)}var to=class e extends ip{constructor(t){super(),U(this,"UNSERIALIZED_STARTING_ID",-2),U(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),U(this,"mirror",AL()),U(this,"scrollData",null),t&&(this.mirror=t)}get unserializedId(){return this._unserializedId--}createDocument(t,r,n){return new e}createDocumentType(t,r,n){let a=new ML(t,r,n);return a.ownerDocument=this,a}createElement(t){let r=t.toUpperCase(),n;switch(r){case"AUDIO":case"VIDEO":n=new pp(r);break;case"IFRAME":n=new xp(r,this.mirror);break;case"CANVAS":n=new hp(r);break;case"STYLE":n=new gp(r);break;case"DIALOG":n=new mp(r);break;default:n=new ro(r);break}return n.ownerDocument=this,n}createComment(t){let r=new EL(t);return r.ownerDocument=this,r}createCDATASection(t){let r=new NL(t);return r.ownerDocument=this,r}createTextNode(t){let r=new RL(t);return r.ownerDocument=this,r}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}},ML=Fi,ro=class extends eo{constructor(){super(...arguments),U(this,"inputData",null),U(this,"scrollData",null)}},pp=class extends up{},mp=class extends dp{},hp=class extends ro{constructor(){super(...arguments),U(this,"rr_dataURL",null),U(this,"canvasMutations",[])}getContext(){return null}},gp=class extends ro{constructor(){super(...arguments),U(this,"rules",[])}},xp=class extends ro{constructor(t,r){super(t),U(this,"contentDocument",new to),this.contentDocument.mirror=r}},RL=Bi,EL=zi,NL=Ui;function PL(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}function Cw(e,t,r,n){let a;switch(e.nodeType){case Ht.DOCUMENT_NODE:n&&n.nodeName==="IFRAME"?a=n.contentDocument:(a=t,a.compatMode=e.compatMode);break;case Ht.DOCUMENT_TYPE_NODE:{let s=e;a=t.createDocumentType(s.name,s.publicId,s.systemId);break}case Ht.ELEMENT_NODE:{let s=e,l=PL(s);a=t.createElement(l);let i=a;for(let{name:d,value:u}of Array.from(s.attributes))i.attributes[d]=u;s.scrollLeft&&(i.scrollLeft=s.scrollLeft),s.scrollTop&&(i.scrollTop=s.scrollTop);break}case Ht.TEXT_NODE:a=t.createTextNode(e.textContent||"");break;case Ht.CDATA_SECTION_NODE:a=t.createCDATASection(e.data);break;case Ht.COMMENT_NODE:a=t.createComment(e.textContent||"");break;case Ht.DOCUMENT_FRAGMENT_NODE:a=n.attachShadow({mode:"open"});break;default:return null}let o=r.getMeta(e);return t instanceof to&&(o||(o=Lw(a,t.unserializedId),r.add(e,o)),t.mirror.add(a,{...o})),a}function TL(e,t=oL(),r=new to){function n(a,o){let s=Cw(a,r,t,o);if(s!==null)if(o?.nodeName!=="IFRAME"&&a.nodeType!==Ht.DOCUMENT_FRAGMENT_NODE&&(o?.appendChild(s),s.parentNode=o,s.parentElement=o),a.nodeName==="IFRAME"){let l=a.contentDocument;l&&n(l,s)}else(a.nodeType===Ht.DOCUMENT_NODE||a.nodeType===Ht.ELEMENT_NODE||a.nodeType===Ht.DOCUMENT_FRAGMENT_NODE)&&(a.nodeType===Ht.ELEMENT_NODE&&a.shadowRoot&&n(a.shadowRoot,s),a.childNodes.forEach(l=>n(l,s)))}return n(e,null),r}function AL(){return new vp}var vp=class{constructor(){U(this,"idNodeMap",new Map),U(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){let n=this.getNode(t);if(n){let a=this.nodeMetaMap.get(n);a&&this.nodeMetaMap.set(r,a)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Lw(e,t){switch(e.RRNodeType){case pe.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case pe.DocumentType:{let r=e;return{id:t,type:e.RRNodeType,name:r.name,publicId:r.publicId,systemId:r.systemId}}case pe.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case pe.Text:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case pe.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case pe.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}var Iy={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},_y={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},_i={},kw={},DL=()=>!!globalThis.Zone;function Qp(e){if(_i[e])return _i[e];let t=globalThis[e],r=t.prototype,n=e in Iy?Iy[e]:void 0,a=!!(n&&n.every(l=>{var i,d;return!!((d=(i=Object.getOwnPropertyDescriptor(r,l))==null?void 0:i.get)!=null&&d.toString().includes("[native code]"))})),o=e in _y?_y[e]:void 0,s=!!(o&&o.every(l=>{var i;return typeof r[l]=="function"&&((i=r[l])==null?void 0:i.toString().includes("[native code]"))}));if(a&&s&&!DL())return _i[e]=t.prototype,t.prototype;try{let l=document.createElement("iframe");l.style.display="none",document.body.appendChild(l);let i=l.contentWindow;if(!i)return t.prototype;let d=i[e].prototype;if(!d)return l.remove(),r;let u=navigator.userAgent;return u.includes("Safari")&&!u.includes("Chrome")?(l.classList.add("rr-block"),l.setAttribute("__rrwebUntaintedMutationObserver",""),kw[e]=()=>l.remove()):l.remove(),_i[e]=d}catch{return r}}var ep={};function Xr(e,t,r){var n;let a=`${e}.${String(r)}`;if(ep[a])return ep[a].call(t);let o=Qp(e),s=(n=Object.getOwnPropertyDescriptor(o,r))==null?void 0:n.get;return s?(ep[a]=s,s.call(t)):t[r]}var tp={};function Iw(e,t,r){let n=`${e}.${String(r)}`;if(tp[n])return tp[n].bind(t);let o=Qp(e)[r];return typeof o!="function"?t[r]:(tp[n]=o,o.bind(t))}function OL(e){return Xr("Node",e,"ownerDocument")}function FL(e){return Xr("Node",e,"childNodes")}function BL(e){return Xr("Node",e,"parentNode")}function zL(e){return Xr("Node",e,"parentElement")}function UL(e){return Xr("Node",e,"textContent")}function qL(e,t){return Iw("Node",e,"contains")(t)}function $L(e){return Iw("Node",e,"getRootNode")()}function HL(e){return!e||!("host"in e)?null:Xr("ShadowRoot",e,"host")}function jL(e){return e.styleSheets}function WL(e){return!e||!("shadowRoot"in e)?null:Xr("Element",e,"shadowRoot")}function VL(e,t){return Xr("Element",e,"querySelector")(t)}function GL(e,t){return Xr("Element",e,"querySelectorAll")(t)}function _w(){return[Qp("MutationObserver").constructor,kw.MutationObserver??(()=>{})]}var ms=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(ms=()=>new Date().getTime());function Yn(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],a=r(n);return typeof a=="function"&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=a,()=>{e[t]=n}}catch{return()=>{}}}var le={ownerDocument:OL,childNodes:FL,parentNode:BL,parentElement:zL,textContent:UL,contains:qL,getRootNode:$L,host:HL,styleSheets:jL,shadowRoot:WL,querySelector:VL,querySelectorAll:GL,nowTimestamp:ms,mutationObserverCtor:_w,patch:Yn};function kt(e,t,r=document){let n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}var Xa=`Please stop import mirror directly. Instead of that,\r
|
|
60
60
|
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
61
|
-
or you can use record.mirror to access the mirror instance during recording.`,wy={map:{},getId(){return console.error(Wn),-1},getNode(){return console.error(Wn),null},removeNodeFromMap(){console.error(Wn)},has(){return console.error(Wn),!1},reset(){console.error(Wn)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(wy=new Proxy(wy,{get(e,t,r){return t==="map"&&console.error(Wn),Reflect.get(e,t,r)}}));function cs(e,t,r={}){let a=null,n=0;return function(...o){let i=Date.now();!n&&r.leading===!1&&(n=i);let s=t-(i-n),l=this;s<=0||s>t?(a&&(clearTimeout(a),a=null),n=i,e.apply(l,o)):!a&&r.trailing!==!1&&(a=setTimeout(()=>{n=r.leading===!1?0:Date.now(),a=null,e.apply(l,o)},s))}}function ru(e,t,r,a,n=window){let o=n.Object.getOwnPropertyDescriptor(e,t);return n.Object.defineProperty(e,t,a?r:{set(i){setTimeout(()=>{r.set.call(this,i)},0),o&&o.set&&o.set.call(this,i)}}),()=>ru(e,t,o||{},!0)}function ww(e){var t,r,a,n;let o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:o.documentElement.scrollLeft||o?.body&&((t=ae.parentElement(o.body))==null?void 0:t.scrollLeft)||((r=o?.body)==null?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:o?.documentElement.scrollTop||o?.body&&((a=ae.parentElement(o.body))==null?void 0:a.scrollTop)||((n=o?.body)==null?void 0:n.scrollTop)||0}}function Sw(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function bw(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Cw(e){return e?e.nodeType===e.ELEMENT_NODE?e:ae.parentElement(e):null}function kt(e,t,r,a){if(!e)return!1;let n=Cw(e);if(!n)return!1;try{if(typeof t=="string"){if(n.classList.contains(t)||a&&n.closest("."+t)!==null)return!0}else if(Tl(n,t,a))return!0}catch{}return!!(r&&(n.matches(r)||a&&n.closest(r)!==null))}function U1(e,t){return t.getId(e)!==-1}function Qf(e,t,r){return e.tagName==="TITLE"&&r.headTitleMutations?!0:t.getId(e)===us}function Lw(e,t){if(as(e))return!1;let r=t.getId(e);if(!t.has(r))return!0;let a=ae.parentNode(e);return a&&a.nodeType===e.DOCUMENT_NODE?!1:a?Lw(a,t):!0}function pp(e){return!!e.changedTouches}function kw(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function q1(e){let t={},r=(n,o)=>{let i={value:n,parent:o,children:[]};return t[n.node.id]=i,i},a=[];for(let n of e){let{nextId:o,parentId:i}=n;if(o&&o in t){let s=t[o];if(s.parent){let l=s.parent.children.indexOf(s);s.parent.children.splice(l,0,r(n,s.parent))}else{let l=a.indexOf(s);a.splice(l,0,r(n,null))}continue}if(i in t){let s=t[i];s.children.push(r(n,s));continue}a.push(r(n,null))}return a}function Iw(e,t){t(e.value);for(let r=e.children.length-1;r>=0;r--)Iw(e.children[r],t)}function ss(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Mw(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function _w(e,t){var r,a;let n=(a=(r=e.ownerDocument)==null?void 0:r.defaultView)==null?void 0:a.frameElement;if(!n||n===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};let o=n.getBoundingClientRect(),i=_w(n,t),s=o.height/n.clientHeight;return{x:o.x*i.relativeScale+i.x,y:o.y*i.relativeScale+i.y,relativeScale:s,absoluteScale:i.absoluteScale*s}}function Ha(e){return e?e instanceof vr&&"shadowRoot"in e?!!e.shadowRoot:!!ae.shadowRoot(e):!1}function ts(e,t){let r=e?.[t[0]];return r?t.length===1?r:ts(r.cssRules,t.slice(1)):null}function Sy(e){let t=[...e],r=t.pop();return{positions:t,index:r}}function $1(e){let t=new Set,r=[];for(let a=e.length;a--;){let n=e[a];t.has(n.id)||(r.push(n),t.add(n.id))}return r}var zl=class{constructor(){R(this,"id",1),R(this,"styleIDMap",new WeakMap),R(this,"idStyleMap",new Map)}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let a;return r===void 0?a=this.id++:a=r,this.styleIDMap.set(t,a),this.idStyleMap.set(a,t),a}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function Rw(e){var t;let r=null;return"getRootNode"in e&&((t=ae.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&ae.host(ae.getRootNode(e))&&(r=ae.host(ae.getRootNode(e))),r}function H1(e){let t=e,r;for(;r=Rw(t);)t=r;return t}function W1(e){let t=ae.ownerDocument(e);if(!t)return!1;let r=H1(e);return ae.contains(t,r)}function Ew(e){let t=ae.ownerDocument(e);return t?ae.contains(t,e)||W1(e):!1}var W=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.Asset=7]="Asset",e))(W||{}),U=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(U||{}),ye=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ye||{}),Hr=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Hr||{}),jr=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(jr||{}),ya=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(ya||{}),ve=(e=>(e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back",e.Destroy="destroy",e))(ve||{}),Wr=(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))(Wr||{});function by(e){return"__ln"in e}var mp=class{constructor(){R(this,"length",0),R(this,"head",null),R(this,"tail",null)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let r=this.head;for(let a=0;a<t;a++)r=r?.next||null;return r}addNode(t){let r={value:t,previous:null,next:null};if(t.__ln=r,t.previousSibling&&by(t.previousSibling)){let a=t.previousSibling.__ln.next;r.next=a,r.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=r,a&&(a.previous=r)}else if(t.nextSibling&&by(t.nextSibling)&&t.nextSibling.__ln.previous){let a=t.nextSibling.__ln.previous;r.previous=a,r.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=r,a&&(a.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++}removeNode(t){let r=t.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}},Cy=(e,t)=>`${e}@${t}`,hp=class{constructor(){R(this,"frozen",!1),R(this,"locked",!1),R(this,"texts",[]),R(this,"attributes",[]),R(this,"attributeMap",new WeakMap),R(this,"removes",[]),R(this,"mapRemoves",[]),R(this,"movedMap",{}),R(this,"addedSet",new Set),R(this,"movedSet",new Set),R(this,"droppedSet",new Set),R(this,"removesSubTreeCache",new Set),R(this,"mutationCb"),R(this,"blockClass"),R(this,"blockSelector"),R(this,"maskTextClass"),R(this,"maskTextSelector"),R(this,"inlineStylesheet"),R(this,"maskInputOptions"),R(this,"maskTextFn"),R(this,"maskInputFn"),R(this,"keepIframeSrcFn"),R(this,"recordCanvas"),R(this,"inlineImages"),R(this,"slimDOMOptions"),R(this,"dataURLOptions"),R(this,"doc"),R(this,"mirror"),R(this,"iframeManager"),R(this,"stylesheetManager"),R(this,"shadowDomManager"),R(this,"canvasManager"),R(this,"processedNodeManager"),R(this,"unattachedDoc"),R(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),R(this,"emit",()=>{if(this.frozen||this.locked)return;let t=[],r=new Set,a=new mp,n=l=>{let d=l,u=us;for(;u===us;)d=d&&d.nextSibling,u=d&&this.mirror.getId(d);return u},o=l=>{let d=ae.parentNode(l);if(!d||!Ew(l))return;let u=!1;if(l.nodeType===Node.TEXT_NODE){let h=d.tagName;if(h==="TEXTAREA")return;h==="STYLE"&&this.addedSet.has(d)&&(u=!0)}let f=as(d)?this.mirror.getId(Rw(l)):this.mirror.getId(d),c=n(l);if(f===-1||c===-1)return a.addNode(l);let p=Gn(l,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:h=>{ss(h,this.mirror)&&this.iframeManager.addIframe(h),Mw(h,this.mirror)&&this.stylesheetManager.trackLinkElement(h),Ha(l)&&this.shadowDomManager.addShadowRoot(ae.shadowRoot(l),this.doc)},onIframeLoad:(h,m)=>{this.iframeManager.attachIframe(h,m),this.shadowDomManager.observeAttachShadow(h)},onStylesheetLoad:(h,m)=>{this.stylesheetManager.attachLinkElement(h,m)},cssCaptured:u});p&&(t.push({parentId:f,nextId:c,node:p}),r.add(p.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let l of this.movedSet)Ly(this.removesSubTreeCache,l,this.mirror)&&!this.movedSet.has(ae.parentNode(l))||o(l);for(let l of this.addedSet)!ky(this.droppedSet,l)&&!Ly(this.removesSubTreeCache,l,this.mirror)||ky(this.movedSet,l)?o(l):this.droppedSet.add(l);let i=null;for(;a.length;){let l=null;if(i){let d=this.mirror.getId(ae.parentNode(i.value)),u=n(i.value);d!==-1&&u!==-1&&(l=i)}if(!l){let d=a.tail;for(;d;){let u=d;if(d=d.previous,u){let f=this.mirror.getId(ae.parentNode(u.value));if(n(u.value)===-1)continue;if(f!==-1){l=u;break}else{let p=u.value,h=ae.parentNode(p);if(h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let m=ae.host(h);if(this.mirror.getId(m)!==-1){l=u;break}}}}}}if(!l){for(;a.head;)a.removeNode(a.head.value);break}i=l.previous,a.removeNode(l.value),o(l.value)}let s={texts:this.texts.map(l=>{let d=l.node,u=ae.parentNode(d);return u&&u.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(u),{id:this.mirror.getId(d),value:l.value}}).filter(l=>!r.has(l.id)).filter(l=>this.mirror.has(l.id)),attributes:this.attributes.map(l=>{let{attributes:d}=l;if(typeof d.style=="string"){let u=JSON.stringify(l.styleDiff),f=JSON.stringify(l._unchangedStyles);u.length<d.style.length&&(u+f).split("var(").length===d.style.split("var(").length&&(d.style=l.styleDiff)}return{id:this.mirror.getId(l.node),attributes:d}}).filter(l=>!r.has(l.id)).filter(l=>this.mirror.has(l.id)),removes:this.removes,adds:t};!s.texts.length&&!s.attributes.length&&!s.removes.length&&!s.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(s))}),R(this,"genTextAreaValueMutation",t=>{let r=this.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(t,r));let a=Array.from(ae.childNodes(t),n=>ae.textContent(n)||"").join("");r.attributes.value=Rl({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:El(t),value:a,maskInputFn:this.maskInputFn})}),R(this,"processMutation",t=>{if(!Qf(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":{let r=ae.textContent(t.target);!kt(t.target,this.blockClass,this.blockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:Ky(t.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,Cw(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{let r=t.target,a=t.attributeName,n=t.target.getAttribute(a);if(a==="value"){let i=El(r);n=Rl({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:i,value:n,maskInputFn:this.maskInputFn})}if(kt(t.target,this.blockClass,this.blockSelector,!1)||n===t.oldValue)return;let o=this.attributeMap.get(t.target);if(r.tagName==="IFRAME"&&a==="src"&&!this.keepIframeSrcFn(n))if(!r.contentDocument)a="rr_src";else return;if(o||(o={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(t.target,o)),a==="type"&&r.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!Xy(r.tagName,a))if(o.attributes[a]=Gy(this.doc,Sa(r.tagName),Sa(a),n),a==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let i=this.unattachedDoc.createElement("span");t.oldValue&&i.setAttribute("style",t.oldValue);for(let s of Array.from(r.style)){let l=r.style.getPropertyValue(s),d=r.style.getPropertyPriority(s);l!==i.style.getPropertyValue(s)||d!==i.style.getPropertyPriority(s)?d===""?o.styleDiff[s]=l:o.styleDiff[s]=[l,d]:o._unchangedStyles[s]=[l,d]}for(let s of Array.from(i.style))r.style.getPropertyValue(s)===""&&(o.styleDiff[s]=!1)}else a==="open"&&r.tagName==="DIALOG"&&(r.matches("dialog:modal")?o.attributes.rr_open_mode="modal":o.attributes.rr_open_mode="non-modal");break}case"childList":{if(kt(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{let a=this.mirror.getId(r),n=as(t.target)?this.mirror.getId(ae.host(t.target)):this.mirror.getId(t.target);kt(t.target,this.blockClass,this.blockSelector,!1)||Qf(r,this.mirror,this.slimDOMOptions)||!U1(r,this.mirror)||(this.addedSet.has(r)?(gp(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&a===-1||Lw(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[Cy(a,n)]?gp(this.movedSet,r):(this.removes.push({parentId:n,id:a,isShadow:as(t.target)&&ns(t.target)?!0:void 0}),j1(r,this.removesSubTreeCache))),this.mapRemoves.push(r))});break}}}),R(this,"genAdds",(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Qf(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let a=null;r&&this.mirror.hasNode(r)&&(a=this.mirror.getId(r)),a&&a!==-1&&(this.movedMap[Cy(this.mirror.getId(t),a)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);kt(t,this.blockClass,this.blockSelector,!1)||(ae.childNodes(t).forEach(a=>this.genAdds(a)),Ha(t)&&ae.childNodes(ae.shadowRoot(t)).forEach(a=>{this.processedNodeManager.add(a,this),this.genAdds(a,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(r=>{this[r]=t[r]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function gp(e,t){e.delete(t),ae.childNodes(t).forEach(r=>gp(e,r))}function j1(e,t){let r=[e];for(;r.length;){let a=r.pop();t.has(a)||(t.add(a),ae.childNodes(a).forEach(n=>r.push(n)))}}function Ly(e,t,r){return e.size===0?!1:V1(e,t)}function V1(e,t,r){let a=ae.parentNode(t);return a?e.has(a):!1}function ky(e,t){return e.size===0?!1:Pw(e,t)}function Pw(e,t){let r=ae.parentNode(t);return r?e.has(r)?!0:Pw(e,r):!1}var is;function G1(e){is=e}function X1(){is=void 0}var pe=e=>is?(...r)=>{try{return e(...r)}catch(a){if(is&&is(a)===!0)return;throw a}}:e,Wa=[];function ms(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Tw(e,t){let r=new hp;Wa.push(r),r.init(e);let[a,n]=yw(),o=new a(pe(r.processMutations.bind(r)));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),[o,n]}function K1({mousemoveCb:e,sampling:t,doc:r,mirror:a}){if(t.mousemove===!1)return()=>{};let n=typeof t.mousemove=="number"?t.mousemove:50,o=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500,i=[],s,l=cs(pe(f=>{let c=Date.now()-s;e(i.map(p=>(p.timeOffset-=c,p)),f),i=[],s=null}),o),d=pe(cs(pe(f=>{let c=ms(f),{clientX:p,clientY:h}=pp(f)?f.changedTouches[0]:f;s||(s=ds()),i.push({x:p,y:h,id:a.getId(c),timeOffset:ds()-s}),l(typeof DragEvent<"u"&&f instanceof DragEvent?U.Drag:f instanceof MouseEvent?U.MouseMove:U.TouchMove)}),n,{trailing:!1})),u=[Lt("mousemove",d,r),Lt("touchmove",d,r),Lt("drag",d,r)];return pe(()=>{u.forEach(f=>f())})}function Q1({mouseInteractionCb:e,doc:t,mirror:r,blockClass:a,blockSelector:n,sampling:o}){if(o.mouseInteraction===!1)return()=>{};let i=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,s=[],l=null,d=u=>f=>{let c=ms(f);if(kt(c,a,n,!0))return;let p=null,h=u;if("pointerType"in f){switch(f.pointerType){case"mouse":p=Hr.Mouse;break;case"touch":p=Hr.Touch;break;case"pen":p=Hr.Pen;break}p===Hr.Touch?ye[u]===ye.MouseDown?h="TouchStart":ye[u]===ye.MouseUp&&(h="TouchEnd"):Hr.Pen}else pp(f)&&(p=Hr.Touch);p!==null?(l=p,(h.startsWith("Touch")&&p===Hr.Touch||h.startsWith("Mouse")&&p===Hr.Mouse)&&(p=null)):ye[u]===ye.Click&&(p=l,l=null);let m=pp(f)?f.changedTouches[0]:f;if(!m)return;let S=r.getId(c),{clientX:g,clientY:x}=m;pe(e)({type:ye[h],id:S,x:g,y:x,...p!==null&&{pointerType:p}})};return Object.keys(ye).filter(u=>Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&i[u]!==!1).forEach(u=>{let f=Sa(u),c=d(u);if(window.PointerEvent)switch(ye[u]){case ye.MouseDown:case ye.MouseUp:f=f.replace("mouse","pointer");break;case ye.TouchStart:case ye.TouchEnd:return}s.push(Lt(f,c,t))}),pe(()=>{s.forEach(u=>u())})}function Nw({scrollCb:e,doc:t,mirror:r,blockClass:a,blockSelector:n,sampling:o}){let i=pe(cs(pe(s=>{let l=ms(s);if(!l||kt(l,a,n,!0))return;let d=r.getId(l);if(l===t&&t.defaultView){let u=ww(t.defaultView);e({id:d,x:u.left,y:u.top})}else e({id:d,x:l.scrollLeft,y:l.scrollTop})}),o.scroll||100));return Lt("scroll",i,t)}function Y1({viewportResizeCb:e},{win:t}){let r=-1,a=-1,n=pe(cs(pe(()=>{let o=Sw(),i=bw();(r!==o||a!==i)&&(e({width:Number(i),height:Number(o)}),r=o,a=i)}),200));return Lt("resize",n,t)}var J1=["INPUT","TEXTAREA","SELECT"],Iy=new WeakMap;function Z1({inputCb:e,doc:t,mirror:r,blockClass:a,blockSelector:n,ignoreClass:o,ignoreSelector:i,maskInputOptions:s,maskInputFn:l,sampling:d,userTriggeredOnInput:u}){function f(x){let v=ms(x),b=x.isTrusted,w=v&&v.tagName;if(v&&w==="OPTION"&&(v=ae.parentElement(v)),!v||!w||J1.indexOf(w)<0||kt(v,a,n,!0)||v.classList.contains(o)||i&&v.matches(i))return;let y=v.value,L=!1,C=El(v)||"";C==="radio"||C==="checkbox"?L=v.checked:(s[w.toLowerCase()]||s[C])&&(y=Rl({element:v,maskInputOptions:s,tagName:w,type:C,value:y,maskInputFn:l})),c(v,u?{text:y,isChecked:L,userTriggered:b}:{text:y,isChecked:L});let M=v.name;C==="radio"&&M&&L&&t.querySelectorAll(`input[type="radio"][name="${M}"]`).forEach(I=>{if(I!==v){let D=I.value;c(I,u?{text:D,isChecked:!L,userTriggered:!1}:{text:D,isChecked:!L})}})}function c(x,v){let b=Iy.get(x);if(!b||b.text!==v.text||b.isChecked!==v.isChecked){Iy.set(x,v);let w=r.getId(x);pe(e)({...v,id:w})}}let h=(d.input==="last"?["change"]:["input","change"]).map(x=>Lt(x,pe(f),t)),m=t.defaultView;if(!m)return()=>{h.forEach(x=>x())};let S=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),g=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];return S&&S.set&&h.push(...g.map(x=>ru(x[0],x[1],{set(){pe(f)({target:this,isTrusted:!1})}},!1,m))),pe(()=>{h.forEach(x=>x())})}function Ul(e){let t=[];function r(a,n){if(Ll("CSSGroupingRule")&&a.parentRule instanceof CSSGroupingRule||Ll("CSSMediaRule")&&a.parentRule instanceof CSSMediaRule||Ll("CSSSupportsRule")&&a.parentRule instanceof CSSSupportsRule||Ll("CSSConditionRule")&&a.parentRule instanceof CSSConditionRule){let i=Array.from(a.parentRule.cssRules).indexOf(a);return n.unshift(i),r(a.parentRule,n)}else if(a.parentStyleSheet){let i=Array.from(a.parentStyleSheet.cssRules).indexOf(a);n.unshift(i)}return n}return r(e,t)}function va(e,t,r){let a,n;return e?(e.ownerNode?a=t.getId(e.ownerNode):n=r.getId(e),{styleId:n,id:a}):{}}function ek({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:a}){if(!a.CSSStyleSheet||!a.CSSStyleSheet.prototype)return()=>{};let n=a.CSSStyleSheet.prototype.insertRule;a.CSSStyleSheet.prototype.insertRule=new Proxy(n,{apply:pe((u,f,c)=>{let[p,h]=c,{id:m,styleId:S}=va(f,t,r.styleMirror);return(m&&m!==-1||S&&S!==-1)&&e({id:m,styleId:S,adds:[{rule:p,index:h}]}),u.apply(f,c)})}),a.CSSStyleSheet.prototype.addRule=function(u,f,c=this.cssRules.length){let p=`${u} { ${f} }`;return a.CSSStyleSheet.prototype.insertRule.apply(this,[p,c])};let o=a.CSSStyleSheet.prototype.deleteRule;a.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:pe((u,f,c)=>{let[p]=c,{id:h,styleId:m}=va(f,t,r.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,removes:[{index:p}]}),u.apply(f,c)})}),a.CSSStyleSheet.prototype.removeRule=function(u){return a.CSSStyleSheet.prototype.deleteRule.apply(this,[u])};let i;a.CSSStyleSheet.prototype.replace&&(i=a.CSSStyleSheet.prototype.replace,a.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:pe((u,f,c)=>{let[p]=c,{id:h,styleId:m}=va(f,t,r.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replace:p}),u.apply(f,c)})}));let s;a.CSSStyleSheet.prototype.replaceSync&&(s=a.CSSStyleSheet.prototype.replaceSync,a.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:pe((u,f,c)=>{let[p]=c,{id:h,styleId:m}=va(f,t,r.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replaceSync:p}),u.apply(f,c)})}));let l={};kl("CSSGroupingRule")?l.CSSGroupingRule=a.CSSGroupingRule:(kl("CSSMediaRule")&&(l.CSSMediaRule=a.CSSMediaRule),kl("CSSConditionRule")&&(l.CSSConditionRule=a.CSSConditionRule),kl("CSSSupportsRule")&&(l.CSSSupportsRule=a.CSSSupportsRule));let d={};return Object.entries(l).forEach(([u,f])=>{d[u]={insertRule:f.prototype.insertRule,deleteRule:f.prototype.deleteRule},f.prototype.insertRule=new Proxy(d[u].insertRule,{apply:pe((c,p,h)=>{let[m,S]=h,{id:g,styleId:x}=va(p.parentStyleSheet,t,r.styleMirror);return(g&&g!==-1||x&&x!==-1)&&e({id:g,styleId:x,adds:[{rule:m,index:[...Ul(p),S||0]}]}),c.apply(p,h)})}),f.prototype.deleteRule=new Proxy(d[u].deleteRule,{apply:pe((c,p,h)=>{let[m]=h,{id:S,styleId:g}=va(p.parentStyleSheet,t,r.styleMirror);return(S&&S!==-1||g&&g!==-1)&&e({id:S,styleId:g,removes:[{index:[...Ul(p),m]}]}),c.apply(p,h)})})}),pe(()=>{a.CSSStyleSheet.prototype.insertRule=n,a.CSSStyleSheet.prototype.deleteRule=o,i&&(a.CSSStyleSheet.prototype.replace=i),s&&(a.CSSStyleSheet.prototype.replaceSync=s),Object.entries(l).forEach(([u,f])=>{f.prototype.insertRule=d[u].insertRule,f.prototype.deleteRule=d[u].deleteRule})})}function Aw({mirror:e,stylesheetManager:t},r){var a,n,o;let i=null;r.nodeName==="#document"?i=e.getId(r):i=e.getId(ae.host(r));let s=r.nodeName==="#document"?(a=r.defaultView)==null?void 0:a.Document:(o=(n=r.ownerDocument)==null?void 0:n.defaultView)==null?void 0:o.ShadowRoot,l=s?.prototype?Object.getOwnPropertyDescriptor(s?.prototype,"adoptedStyleSheets"):void 0;return i===null||i===-1||!s||!l?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var d;return(d=l.get)==null?void 0:d.call(this)},set(d){var u;let f=(u=l.set)==null?void 0:u.call(this,d);if(i!==null&&i!==-1)try{t.adoptStyleSheets(d,i)}catch{}return f}}),pe(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))}function tk({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:a},{win:n}){let o=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:pe((s,l,d)=>{var u;let[f,c,p]=d;if(r.has(f))return o.apply(l,[f,c,p]);let{id:h,styleId:m}=va((u=l.parentRule)==null?void 0:u.parentStyleSheet,t,a.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,set:{property:f,value:c,priority:p},index:Ul(l.parentRule)}),s.apply(l,d)})});let i=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:pe((s,l,d)=>{var u;let[f]=d;if(r.has(f))return i.apply(l,[f]);let{id:c,styleId:p}=va((u=l.parentRule)==null?void 0:u.parentStyleSheet,t,a.styleMirror);return(c&&c!==-1||p&&p!==-1)&&e({id:c,styleId:p,remove:{property:f},index:Ul(l.parentRule)}),s.apply(l,d)})}),pe(()=>{n.CSSStyleDeclaration.prototype.setProperty=o,n.CSSStyleDeclaration.prototype.removeProperty=i})}function rk({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:a,sampling:n,doc:o}){let i=pe(l=>cs(pe(d=>{let u=ms(d);if(!u||kt(u,t,r,!0))return;let{currentTime:f,volume:c,muted:p,playbackRate:h,loop:m}=u;e({type:l,id:a.getId(u),currentTime:f,volume:c,muted:p,playbackRate:h,loop:m})}),n.media||500)),s=[Lt("play",i(ya.Play),o),Lt("pause",i(ya.Pause),o),Lt("seeked",i(ya.Seeked),o),Lt("volumechange",i(ya.VolumeChange),o),Lt("ratechange",i(ya.RateChange),o)];return pe(()=>{s.forEach(l=>l())})}function ak({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let a=[],n=new WeakMap,o=r.FontFace;r.FontFace=function(l,d,u){let f=new o(l,d,u);return n.set(f,{family:l,buffer:typeof d!="string",descriptors:u,fontSource:typeof d=="string"?d:JSON.stringify(Array.from(new Uint8Array(d)))}),f};let i=Ga(t.fonts,"add",function(s){return function(l){return setTimeout(pe(()=>{let d=n.get(l);d&&(e(d),n.delete(l))}),0),s.apply(this,[l])}});return a.push(()=>{r.FontFace=o}),a.push(i),pe(()=>{a.forEach(s=>s())})}function nk(e){let{doc:t,mirror:r,blockClass:a,blockSelector:n,selectionCb:o}=e,i=!0,s=pe(()=>{let l=t.getSelection();if(!l||i&&l?.isCollapsed)return;i=l.isCollapsed||!1;let d=[],u=l.rangeCount||0;for(let f=0;f<u;f++){let c=l.getRangeAt(f),{startContainer:p,startOffset:h,endContainer:m,endOffset:S}=c;kt(p,a,n,!0)||kt(m,a,n,!0)||d.push({start:r.getId(p),startOffset:h,end:r.getId(m),endOffset:S})}o({ranges:d})});return s(),Lt("selectionchange",s)}function ok({doc:e,customElementCb:t}){let r=e.defaultView;return!r||!r.customElements?()=>{}:Ga(r.customElements,"define",function(n){return function(o,i,s){try{t({define:{name:o}})}catch{console.warn(`Custom element callback failed for ${o}`)}return n.apply(this,[o,i,s])}})}function sk(e,t){let{mutationCb:r,mousemoveCb:a,mouseInteractionCb:n,scrollCb:o,viewportResizeCb:i,inputCb:s,mediaInteractionCb:l,styleSheetRuleCb:d,styleDeclarationCb:u,canvasMutationCb:f,fontCb:c,selectionCb:p,customElementCb:h}=e;e.mutationCb=(...m)=>{t.mutation&&t.mutation(...m),r(...m)},e.mousemoveCb=(...m)=>{t.mousemove&&t.mousemove(...m),a(...m)},e.mouseInteractionCb=(...m)=>{t.mouseInteraction&&t.mouseInteraction(...m),n(...m)},e.scrollCb=(...m)=>{t.scroll&&t.scroll(...m),o(...m)},e.viewportResizeCb=(...m)=>{t.viewportResize&&t.viewportResize(...m),i(...m)},e.inputCb=(...m)=>{t.input&&t.input(...m),s(...m)},e.mediaInteractionCb=(...m)=>{t.mediaInteaction&&t.mediaInteaction(...m),l(...m)},e.styleSheetRuleCb=(...m)=>{t.styleSheetRule&&t.styleSheetRule(...m),d(...m)},e.styleDeclarationCb=(...m)=>{t.styleDeclaration&&t.styleDeclaration(...m),u(...m)},e.canvasMutationCb=(...m)=>{t.canvasMutation&&t.canvasMutation(...m),f(...m)},e.fontCb=(...m)=>{t.font&&t.font(...m),c(...m)},e.selectionCb=(...m)=>{t.selection&&t.selection(...m),p(...m)},e.customElementCb=(...m)=>{t.customElement&&t.customElement(...m),h(...m)}}function ik(e,t={}){let r=e.doc.defaultView;if(!r)return()=>{};sk(e,t);let a,n=()=>{};e.recordDOM&&([a,n]=Tw(e,e.doc));let o=K1(e),i=Q1(e),s=Nw(e),l=Y1(e,{win:r}),d=Z1(e),u=rk(e),f=()=>{},c=()=>{},p=()=>{},h=()=>{};e.recordDOM&&(f=ek(e,{win:r}),c=Aw(e,e.doc),p=tk(e,{win:r}),e.collectFonts&&(h=ak(e)));let m=nk(e),S=ok(e),g=[];for(let x of e.plugins)g.push(x.observer(x.callback,r,x.options));return pe(()=>{Wa.forEach(x=>x.reset()),a?.disconnect(),n(),o(),i(),s(),l(),d(),u(),f(),c(),p(),h(),m(),S(),g.forEach(x=>x())})}function Ll(e){return typeof window[e]<"u"}function kl(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var ql=class{constructor(t){R(this,"iframeIdToRemoteIdMap",new WeakMap),R(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,r,a,n){let o=a||this.getIdToRemoteIdMap(t),i=n||this.getRemoteIdToIdMap(t),s=o.get(r);return s||(s=this.generateIdFn(),o.set(r,s),i.set(s,r)),s}getIds(t,r){let a=this.getIdToRemoteIdMap(t),n=this.getRemoteIdToIdMap(t);return r.map(o=>this.getId(t,o,a,n))}getRemoteId(t,r,a){let n=a||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;let o=n.get(r);return o||-1}getRemoteIds(t,r){let a=this.getRemoteIdToIdMap(t);return r.map(n=>this.getRemoteId(t,n,a))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r}getRemoteIdToIdMap(t){let r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r}},xp=class{constructor(t){R(this,"iframes",new WeakMap),R(this,"crossOriginIframeMap",new WeakMap),R(this,"crossOriginIframeMirror",new ql(Vy)),R(this,"crossOriginIframeStyleMirror"),R(this,"crossOriginIframeRootIdMap",new WeakMap),R(this,"mirror"),R(this,"mutationCb"),R(this,"wrappedEmit"),R(this,"loadListener"),R(this,"stylesheetManager"),R(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new ql(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,r){var a,n;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((a=t.contentWindow)==null||a.addEventListener("message",this.handleMessage.bind(this))),(n=this.loadListener)==null||n.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){let r=t;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!t.source)return;let n=this.crossOriginIframeMap.get(t.source);if(!n)return;let o=this.transformCrossOriginEvent(n,r.data.event);o&&this.wrappedEmit(o,r.data.isCheckout)}transformCrossOriginEvent(t,r){var a;switch(r.type){case W.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);let n=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,n),this.patchRootIdOnNode(r.data.node,n),{timestamp:r.timestamp,type:W.IncrementalSnapshot,data:{source:U.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case W.Meta:case W.Load:case W.DomContentLoaded:return!1;case W.Plugin:return r;case W.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case W.IncrementalSnapshot:switch(r.data.source){case U.Mutation:return r.data.adds.forEach(n=>{this.replaceIds(n,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(n.node,t);let o=this.crossOriginIframeRootIdMap.get(t);o&&this.patchRootIdOnNode(n.node,o)}),r.data.removes.forEach(n=>{this.replaceIds(n,t,["parentId","id"])}),r.data.attributes.forEach(n=>{this.replaceIds(n,t,["id"])}),r.data.texts.forEach(n=>{this.replaceIds(n,t,["id"])}),r;case U.Drag:case U.TouchMove:case U.MouseMove:return r.data.positions.forEach(n=>{this.replaceIds(n,t,["id"])}),r;case U.ViewportResize:return!1;case U.MediaInteraction:case U.MouseInteraction:case U.Scroll:case U.CanvasMutation:case U.Input:return this.replaceIds(r.data,t,["id"]),r;case U.StyleSheetRule:case U.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case U.Font:return r;case U.Selection:return r.data.ranges.forEach(n=>{this.replaceIds(n,t,["start","end"])}),r;case U.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(a=r.data.styles)==null||a.forEach(n=>{this.replaceStyleIds(n,t,["styleId"])}),r}}return!1}replace(t,r,a,n){for(let o of n)!Array.isArray(r[o])&&typeof r[o]!="number"||(Array.isArray(r[o])?r[o]=t.getIds(a,r[o]):r[o]=t.getId(a,r[o]));return r}replaceIds(t,r,a){return this.replace(this.crossOriginIframeMirror,t,r,a)}replaceStyleIds(t,r,a){return this.replace(this.crossOriginIframeStyleMirror,t,r,a)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(a=>{this.replaceIdOnNode(a,r)})}patchRootIdOnNode(t,r){t.type!==Wr.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(a=>{this.patchRootIdOnNode(a,r)})}},vp=class{constructor(t){R(this,"shadowDoms",new WeakSet),R(this,"mutationCb"),R(this,"scrollCb"),R(this,"bypassOptions"),R(this,"mirror"),R(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,r){if(!ns(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);let[a]=Tw({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>a.disconnect()),this.restoreHandlers.push(Nw({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(ae.host(t))),this.restoreHandlers.push(Aw({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,r){let a=this;this.restoreHandlers.push(Ga(t.prototype,"attachShadow",function(n){return function(o){let i=n.call(this,o),s=ae.shadowRoot(this);return s&&Ew(this)&&a.addShadowRoot(s,r),i}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},Xn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rs=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(es=0;es<Xn.length;es++)rs[Xn.charCodeAt(es)]=es;var es,lk=function(e){var t=new Uint8Array(e),r,a=t.length,n="";for(r=0;r<a;r+=3)n+=Xn[t[r]>>2],n+=Xn[(t[r]&3)<<4|t[r+1]>>4],n+=Xn[(t[r+1]&15)<<2|t[r+2]>>6],n+=Xn[t[r+2]&63];return a%3===2?n=n.substring(0,n.length-1)+"=":a%3===1&&(n=n.substring(0,n.length-2)+"=="),n},uk=function(e){var t=e.length*.75,r=e.length,a,n=0,o,i,s,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var d=new ArrayBuffer(t),u=new Uint8Array(d);for(a=0;a<r;a+=4)o=rs[e.charCodeAt(a)],i=rs[e.charCodeAt(a+1)],s=rs[e.charCodeAt(a+2)],l=rs[e.charCodeAt(a+3)],u[n++]=o<<2|i>>4,u[n++]=(i&15)<<4|s>>2,u[n++]=(s&3)<<6|l&63;return d},My=new Map;function dk(e,t){let r=My.get(e);return r||(r=new Map,My.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var Dw=(e,t,r)=>{if(!e||!(Fw(e,t)||typeof e=="object"))return;let a=e.constructor.name,n=dk(r,a),o=n.indexOf(e);return o===-1&&(o=n.length,n.push(e)),o};function Ml(e,t,r){if(e instanceof Array)return e.map(a=>Ml(a,t,r));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){let a=e.constructor.name,n=lk(e);return{rr_type:a,base64:n}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Ml(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let a=e.constructor.name,{src:n}=e;return{rr_type:a,src:n}}else if(e instanceof HTMLCanvasElement){let a="HTMLImageElement",n=e.toDataURL();return{rr_type:a,src:n}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Ml(e.data,t,r),e.width,e.height]};if(Fw(e,t)||typeof e=="object"){let a=e.constructor.name,n=Dw(e,t,r);return{rr_type:a,index:n}}}}return e}var Ow=(e,t,r)=>e.map(a=>Ml(a,t,r)),Fw=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(n=>typeof t[n]=="function").find(n=>e instanceof t[n]);function ck(e,t,r,a){let n=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let i of o)try{if(typeof t.CanvasRenderingContext2D.prototype[i]!="function")continue;let s=Ga(t.CanvasRenderingContext2D.prototype,i,function(l){return function(...d){return kt(this.canvas,r,a,!0)||setTimeout(()=>{let u=Ow(d,t,this);e(this.canvas,{type:jr["2D"],property:i,args:u})},0),l.apply(this,d)}});n.push(s)}catch{let s=ru(t.CanvasRenderingContext2D.prototype,i,{set(l){e(this.canvas,{type:jr["2D"],property:i,args:[l],setter:!0})}});n.push(s)}return()=>{n.forEach(i=>i())}}function fk(e){return e==="experimental-webgl"?"webgl":e}function _y(e,t,r,a){let n=[];try{let o=Ga(e.HTMLCanvasElement.prototype,"getContext",function(i){return function(s,...l){if(!kt(this,t,r,!0)){let d=fk(s);if("__context"in this||(this.__context=d),a&&["webgl","webgl2"].includes(d))if(l[0]&&typeof l[0]=="object"){let u=l[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else l.splice(0,1,{preserveDrawingBuffer:!0})}return i.apply(this,[s,...l])}});n.push(o)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{n.forEach(o=>o())}}function Ry(e,t,r,a,n,o){let i=[],s=Object.getOwnPropertyNames(e);for(let l of s)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))try{if(typeof e[l]!="function")continue;let d=Ga(e,l,function(u){return function(...f){let c=u.apply(this,f);if(Dw(c,o,this),"tagName"in this.canvas&&!kt(this.canvas,a,n,!0)){let p=Ow(f,o,this),h={type:t,property:l,args:p};r(this.canvas,h)}return c}});i.push(d)}catch{let d=ru(e,l,{set(u){r(this.canvas,{type:t,property:l,args:[u],setter:!0})}});i.push(d)}return i}function pk(e,t,r,a){let n=[];return typeof t.WebGLRenderingContext<"u"&&n.push(...Ry(t.WebGLRenderingContext.prototype,jr.WebGL,e,r,a,t)),typeof t.WebGL2RenderingContext<"u"&&n.push(...Ry(t.WebGL2RenderingContext.prototype,jr.WebGL2,e,r,a,t)),()=>{n.forEach(o=>o())}}var Bw=`(function() {
|
|
61
|
+
or you can use record.mirror to access the mirror instance during recording.`,My={map:{},getId(){return console.error(Xa),-1},getNode(){return console.error(Xa),null},removeNodeFromMap(){console.error(Xa)},has(){return console.error(Xa),!1},reset(){console.error(Xa)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(My=new Proxy(My,{get(e,t,r){return t==="map"&&console.error(Xa),Reflect.get(e,t,r)}}));function hs(e,t,r={}){let n=null,a=0;return function(...o){let s=Date.now();!a&&r.leading===!1&&(a=s);let l=t-(s-a),i=this;l<=0||l>t?(n&&(clearTimeout(n),n=null),a=s,e.apply(i,o)):!n&&r.trailing!==!1&&(n=setTimeout(()=>{a=r.leading===!1?0:Date.now(),n=null,e.apply(i,o)},l))}}function su(e,t,r,n,a=window){let o=a.Object.getOwnPropertyDescriptor(e,t);return a.Object.defineProperty(e,t,n?r:{set(s){setTimeout(()=>{r.set.call(this,s)},0),o&&o.set&&o.set.call(this,s)}}),()=>su(e,t,o||{},!0)}function Mw(e){var t,r,n,a;let o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:o.documentElement.scrollLeft||o?.body&&((t=le.parentElement(o.body))==null?void 0:t.scrollLeft)||((r=o?.body)==null?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:o?.documentElement.scrollTop||o?.body&&((n=le.parentElement(o.body))==null?void 0:n.scrollTop)||((a=o?.body)==null?void 0:a.scrollTop)||0}}function Rw(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ew(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Nw(e){return e?e.nodeType===e.ELEMENT_NODE?e:le.parentElement(e):null}function It(e,t,r,n){if(!e)return!1;let a=Nw(e);if(!a)return!1;try{if(typeof t=="string"){if(a.classList.contains(t)||n&&a.closest("."+t)!==null)return!0}else if(Oi(a,t,n))return!0}catch{}return!!(r&&(a.matches(r)||n&&a.closest(r)!==null))}function XL(e,t){return t.getId(e)!==-1}function rp(e,t,r){return e.tagName==="TITLE"&&r.headTitleMutations?!0:t.getId(e)===ps}function Pw(e,t){if(ls(e))return!1;let r=t.getId(e);if(!t.has(r))return!0;let n=le.parentNode(e);return n&&n.nodeType===e.DOCUMENT_NODE?!1:n?Pw(n,t):!0}function yp(e){return!!e.changedTouches}function Tw(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function KL(e){let t={},r=(a,o)=>{let s={value:a,parent:o,children:[]};return t[a.node.id]=s,s},n=[];for(let a of e){let{nextId:o,parentId:s}=a;if(o&&o in t){let l=t[o];if(l.parent){let i=l.parent.children.indexOf(l);l.parent.children.splice(i,0,r(a,l.parent))}else{let i=n.indexOf(l);n.splice(i,0,r(a,null))}continue}if(s in t){let l=t[s];l.children.push(r(a,l));continue}n.push(r(a,null))}return n}function Aw(e,t){t(e.value);for(let r=e.children.length-1;r>=0;r--)Aw(e.children[r],t)}function ds(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Dw(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Ow(e,t){var r,n;let a=(n=(r=e.ownerDocument)==null?void 0:r.defaultView)==null?void 0:n.frameElement;if(!a||a===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};let o=a.getBoundingClientRect(),s=Ow(a,t),l=o.height/a.clientHeight;return{x:o.x*s.relativeScale+s.x,y:o.y*s.relativeScale+s.y,relativeScale:l,absoluteScale:s.absoluteScale*l}}function Gn(e){return e?e instanceof wr&&"shadowRoot"in e?!!e.shadowRoot:!!le.shadowRoot(e):!1}function os(e,t){let r=e?.[t[0]];return r?t.length===1?r:os(r.cssRules,t.slice(1)):null}function Ry(e){let t=[...e],r=t.pop();return{positions:t,index:r}}function QL(e){let t=new Set,r=[];for(let n=e.length;n--;){let a=e[n];t.has(a.id)||(r.push(a),t.add(a.id))}return r}var Hi=class{constructor(){R(this,"id",1),R(this,"styleIDMap",new WeakMap),R(this,"idStyleMap",new Map)}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let n;return r===void 0?n=this.id++:n=r,this.styleIDMap.set(t,n),this.idStyleMap.set(n,t),n}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function Fw(e){var t;let r=null;return"getRootNode"in e&&((t=le.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&le.host(le.getRootNode(e))&&(r=le.host(le.getRootNode(e))),r}function YL(e){let t=e,r;for(;r=Fw(t);)t=r;return t}function JL(e){let t=le.ownerDocument(e);if(!t)return!1;let r=YL(e);return le.contains(t,r)}function Bw(e){let t=le.ownerDocument(e);return t?le.contains(t,e)||JL(e):!1}var V=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.Asset=7]="Asset",e))(V||{}),$=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))($||{}),Se=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Se||{}),jr=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(jr||{}),Vr=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Vr||{}),Sn=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Sn||{}),be=(e=>(e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back",e.Destroy="destroy",e))(be||{}),Wr=(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))(Wr||{});function Ey(e){return"__ln"in e}var wp=class{constructor(){R(this,"length",0),R(this,"head",null),R(this,"tail",null)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let r=this.head;for(let n=0;n<t;n++)r=r?.next||null;return r}addNode(t){let r={value:t,previous:null,next:null};if(t.__ln=r,t.previousSibling&&Ey(t.previousSibling)){let n=t.previousSibling.__ln.next;r.next=n,r.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=r,n&&(n.previous=r)}else if(t.nextSibling&&Ey(t.nextSibling)&&t.nextSibling.__ln.previous){let n=t.nextSibling.__ln.previous;r.previous=n,r.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=r,n&&(n.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++}removeNode(t){let r=t.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}},Ny=(e,t)=>`${e}@${t}`,bp=class{constructor(){R(this,"frozen",!1),R(this,"locked",!1),R(this,"texts",[]),R(this,"attributes",[]),R(this,"attributeMap",new WeakMap),R(this,"removes",[]),R(this,"mapRemoves",[]),R(this,"movedMap",{}),R(this,"addedSet",new Set),R(this,"movedSet",new Set),R(this,"droppedSet",new Set),R(this,"removesSubTreeCache",new Set),R(this,"mutationCb"),R(this,"blockClass"),R(this,"blockSelector"),R(this,"maskTextClass"),R(this,"maskTextSelector"),R(this,"inlineStylesheet"),R(this,"maskInputOptions"),R(this,"maskTextFn"),R(this,"maskInputFn"),R(this,"keepIframeSrcFn"),R(this,"recordCanvas"),R(this,"inlineImages"),R(this,"slimDOMOptions"),R(this,"dataURLOptions"),R(this,"doc"),R(this,"mirror"),R(this,"iframeManager"),R(this,"stylesheetManager"),R(this,"shadowDomManager"),R(this,"canvasManager"),R(this,"processedNodeManager"),R(this,"unattachedDoc"),R(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),R(this,"emit",()=>{if(this.frozen||this.locked)return;let t=[],r=new Set,n=new wp,a=i=>{let d=i,u=ps;for(;u===ps;)d=d&&d.nextSibling,u=d&&this.mirror.getId(d);return u},o=i=>{let d=le.parentNode(i);if(!d||!Bw(i))return;let u=!1;if(i.nodeType===Node.TEXT_NODE){let h=d.tagName;if(h==="TEXTAREA")return;h==="STYLE"&&this.addedSet.has(d)&&(u=!0)}let p=ls(d)?this.mirror.getId(Fw(i)):this.mirror.getId(d),c=a(i);if(p===-1||c===-1)return n.addNode(i);let f=Ya(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:h=>{ds(h,this.mirror)&&this.iframeManager.addIframe(h),Dw(h,this.mirror)&&this.stylesheetManager.trackLinkElement(h),Gn(i)&&this.shadowDomManager.addShadowRoot(le.shadowRoot(i),this.doc)},onIframeLoad:(h,m)=>{this.iframeManager.attachIframe(h,m),this.shadowDomManager.observeAttachShadow(h)},onStylesheetLoad:(h,m)=>{this.stylesheetManager.attachLinkElement(h,m)},cssCaptured:u});f&&(t.push({parentId:p,nextId:c,node:f}),r.add(f.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let i of this.movedSet)Py(this.removesSubTreeCache,i,this.mirror)&&!this.movedSet.has(le.parentNode(i))||o(i);for(let i of this.addedSet)!Ty(this.droppedSet,i)&&!Py(this.removesSubTreeCache,i,this.mirror)||Ty(this.movedSet,i)?o(i):this.droppedSet.add(i);let s=null;for(;n.length;){let i=null;if(s){let d=this.mirror.getId(le.parentNode(s.value)),u=a(s.value);d!==-1&&u!==-1&&(i=s)}if(!i){let d=n.tail;for(;d;){let u=d;if(d=d.previous,u){let p=this.mirror.getId(le.parentNode(u.value));if(a(u.value)===-1)continue;if(p!==-1){i=u;break}else{let f=u.value,h=le.parentNode(f);if(h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let m=le.host(h);if(this.mirror.getId(m)!==-1){i=u;break}}}}}}if(!i){for(;n.head;)n.removeNode(n.head.value);break}s=i.previous,n.removeNode(i.value),o(i.value)}let l={texts:this.texts.map(i=>{let d=i.node,u=le.parentNode(d);return u&&u.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(u),{id:this.mirror.getId(d),value:i.value}}).filter(i=>!r.has(i.id)).filter(i=>this.mirror.has(i.id)),attributes:this.attributes.map(i=>{let{attributes:d}=i;if(typeof d.style=="string"){let u=JSON.stringify(i.styleDiff),p=JSON.stringify(i._unchangedStyles);u.length<d.style.length&&(u+p).split("var(").length===d.style.split("var(").length&&(d.style=i.styleDiff)}return{id:this.mirror.getId(i.node),attributes:d}}).filter(i=>!r.has(i.id)).filter(i=>this.mirror.has(i.id)),removes:this.removes,adds:t};!l.texts.length&&!l.attributes.length&&!l.removes.length&&!l.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(l))}),R(this,"genTextAreaValueMutation",t=>{let r=this.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(t,r));let n=Array.from(le.childNodes(t),a=>le.textContent(a)||"").join("");r.attributes.value=Ti({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:Ai(t),value:n,maskInputFn:this.maskInputFn})}),R(this,"processMutation",t=>{if(!rp(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":{let r=le.textContent(t.target);!It(t.target,this.blockClass,this.blockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:nw(t.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,Nw(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{let r=t.target,n=t.attributeName,a=t.target.getAttribute(n);if(n==="value"){let s=Ai(r);a=Ti({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:s,value:a,maskInputFn:this.maskInputFn})}if(It(t.target,this.blockClass,this.blockSelector,!1)||a===t.oldValue)return;let o=this.attributeMap.get(t.target);if(r.tagName==="IFRAME"&&n==="src"&&!this.keepIframeSrcFn(a))if(!r.contentDocument)n="rr_src";else return;if(o||(o={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(t.target,o)),n==="type"&&r.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!rw(r.tagName,n))if(o.attributes[n]=tw(this.doc,Ln(r.tagName),Ln(n),a),n==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let s=this.unattachedDoc.createElement("span");t.oldValue&&s.setAttribute("style",t.oldValue);for(let l of Array.from(r.style)){let i=r.style.getPropertyValue(l),d=r.style.getPropertyPriority(l);i!==s.style.getPropertyValue(l)||d!==s.style.getPropertyPriority(l)?d===""?o.styleDiff[l]=i:o.styleDiff[l]=[i,d]:o._unchangedStyles[l]=[i,d]}for(let l of Array.from(s.style))r.style.getPropertyValue(l)===""&&(o.styleDiff[l]=!1)}else n==="open"&&r.tagName==="DIALOG"&&(r.matches("dialog:modal")?o.attributes.rr_open_mode="modal":o.attributes.rr_open_mode="non-modal");break}case"childList":{if(It(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{let n=this.mirror.getId(r),a=ls(t.target)?this.mirror.getId(le.host(t.target)):this.mirror.getId(t.target);It(t.target,this.blockClass,this.blockSelector,!1)||rp(r,this.mirror,this.slimDOMOptions)||!XL(r,this.mirror)||(this.addedSet.has(r)?(Sp(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&n===-1||Pw(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[Ny(n,a)]?Sp(this.movedSet,r):(this.removes.push({parentId:a,id:n,isShadow:ls(t.target)&&is(t.target)?!0:void 0}),ZL(r,this.removesSubTreeCache))),this.mapRemoves.push(r))});break}}}),R(this,"genAdds",(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(rp(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let n=null;r&&this.mirror.hasNode(r)&&(n=this.mirror.getId(r)),n&&n!==-1&&(this.movedMap[Ny(this.mirror.getId(t),n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);It(t,this.blockClass,this.blockSelector,!1)||(le.childNodes(t).forEach(n=>this.genAdds(n)),Gn(t)&&le.childNodes(le.shadowRoot(t)).forEach(n=>{this.processedNodeManager.add(n,this),this.genAdds(n,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(r=>{this[r]=t[r]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function Sp(e,t){e.delete(t),le.childNodes(t).forEach(r=>Sp(e,r))}function ZL(e,t){let r=[e];for(;r.length;){let n=r.pop();t.has(n)||(t.add(n),le.childNodes(n).forEach(a=>r.push(a)))}}function Py(e,t,r){return e.size===0?!1:ek(e,t)}function ek(e,t,r){let n=le.parentNode(t);return n?e.has(n):!1}function Ty(e,t){return e.size===0?!1:zw(e,t)}function zw(e,t){let r=le.parentNode(t);return r?e.has(r)?!0:zw(e,r):!1}var cs;function tk(e){cs=e}function rk(){cs=void 0}var he=e=>cs?(...r)=>{try{return e(...r)}catch(n){if(cs&&cs(n)===!0)return;throw n}}:e,Xn=[];function vs(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Uw(e,t){let r=new bp;Xn.push(r),r.init(e);let[n,a]=_w(),o=new n(he(r.processMutations.bind(r)));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),[o,a]}function nk({mousemoveCb:e,sampling:t,doc:r,mirror:n}){if(t.mousemove===!1)return()=>{};let a=typeof t.mousemove=="number"?t.mousemove:50,o=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500,s=[],l,i=hs(he(p=>{let c=Date.now()-l;e(s.map(f=>(f.timeOffset-=c,f)),p),s=[],l=null}),o),d=he(hs(he(p=>{let c=vs(p),{clientX:f,clientY:h}=yp(p)?p.changedTouches[0]:p;l||(l=ms()),s.push({x:f,y:h,id:n.getId(c),timeOffset:ms()-l}),i(typeof DragEvent<"u"&&p instanceof DragEvent?$.Drag:p instanceof MouseEvent?$.MouseMove:$.TouchMove)}),a,{trailing:!1})),u=[kt("mousemove",d,r),kt("touchmove",d,r),kt("drag",d,r)];return he(()=>{u.forEach(p=>p())})}function ak({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:a,sampling:o}){if(o.mouseInteraction===!1)return()=>{};let s=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,l=[],i=null,d=u=>p=>{let c=vs(p);if(It(c,n,a,!0))return;let f=null,h=u;if("pointerType"in p){switch(p.pointerType){case"mouse":f=jr.Mouse;break;case"touch":f=jr.Touch;break;case"pen":f=jr.Pen;break}f===jr.Touch?Se[u]===Se.MouseDown?h="TouchStart":Se[u]===Se.MouseUp&&(h="TouchEnd"):jr.Pen}else yp(p)&&(f=jr.Touch);f!==null?(i=f,(h.startsWith("Touch")&&f===jr.Touch||h.startsWith("Mouse")&&f===jr.Mouse)&&(f=null)):Se[u]===Se.Click&&(f=i,i=null);let m=yp(p)?p.changedTouches[0]:p;if(!m)return;let y=r.getId(c),{clientX:g,clientY:x}=m;he(e)({type:Se[h],id:y,x:g,y:x,...f!==null&&{pointerType:f}})};return Object.keys(Se).filter(u=>Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&s[u]!==!1).forEach(u=>{let p=Ln(u),c=d(u);if(window.PointerEvent)switch(Se[u]){case Se.MouseDown:case Se.MouseUp:p=p.replace("mouse","pointer");break;case Se.TouchStart:case Se.TouchEnd:return}l.push(kt(p,c,t))}),he(()=>{l.forEach(u=>u())})}function qw({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:a,sampling:o}){let s=he(hs(he(l=>{let i=vs(l);if(!i||It(i,n,a,!0))return;let d=r.getId(i);if(i===t&&t.defaultView){let u=Mw(t.defaultView);e({id:d,x:u.left,y:u.top})}else e({id:d,x:i.scrollLeft,y:i.scrollTop})}),o.scroll||100));return kt("scroll",s,t)}function ok({viewportResizeCb:e},{win:t}){let r=-1,n=-1,a=he(hs(he(()=>{let o=Rw(),s=Ew();(r!==o||n!==s)&&(e({width:Number(s),height:Number(o)}),r=o,n=s)}),200));return kt("resize",a,t)}var sk=["INPUT","TEXTAREA","SELECT"],Ay=new WeakMap;function lk({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:a,ignoreClass:o,ignoreSelector:s,maskInputOptions:l,maskInputFn:i,sampling:d,userTriggeredOnInput:u}){function p(x){let v=vs(x),S=x.isTrusted,b=v&&v.tagName;if(v&&b==="OPTION"&&(v=le.parentElement(v)),!v||!b||sk.indexOf(b)<0||It(v,n,a,!0)||v.classList.contains(o)||s&&v.matches(s))return;let w=v.value,C=!1,L=Ai(v)||"";L==="radio"||L==="checkbox"?C=v.checked:(l[b.toLowerCase()]||l[L])&&(w=Ti({element:v,maskInputOptions:l,tagName:b,type:L,value:w,maskInputFn:i})),c(v,u?{text:w,isChecked:C,userTriggered:S}:{text:w,isChecked:C});let k=v.name;L==="radio"&&k&&C&&t.querySelectorAll(`input[type="radio"][name="${k}"]`).forEach(_=>{if(_!==v){let N=_.value;c(_,u?{text:N,isChecked:!C,userTriggered:!1}:{text:N,isChecked:!C})}})}function c(x,v){let S=Ay.get(x);if(!S||S.text!==v.text||S.isChecked!==v.isChecked){Ay.set(x,v);let b=r.getId(x);he(e)({...v,id:b})}}let h=(d.input==="last"?["change"]:["input","change"]).map(x=>kt(x,he(p),t)),m=t.defaultView;if(!m)return()=>{h.forEach(x=>x())};let y=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),g=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];return y&&y.set&&h.push(...g.map(x=>su(x[0],x[1],{set(){he(p)({target:this,isTrusted:!1})}},!1,m))),he(()=>{h.forEach(x=>x())})}function ji(e){let t=[];function r(n,a){if(Mi("CSSGroupingRule")&&n.parentRule instanceof CSSGroupingRule||Mi("CSSMediaRule")&&n.parentRule instanceof CSSMediaRule||Mi("CSSSupportsRule")&&n.parentRule instanceof CSSSupportsRule||Mi("CSSConditionRule")&&n.parentRule instanceof CSSConditionRule){let s=Array.from(n.parentRule.cssRules).indexOf(n);return a.unshift(s),r(n.parentRule,a)}else if(n.parentStyleSheet){let s=Array.from(n.parentStyleSheet.cssRules).indexOf(n);a.unshift(s)}return a}return r(e,t)}function bn(e,t,r){let n,a;return e?(e.ownerNode?n=t.getId(e.ownerNode):a=r.getId(e),{styleId:a,id:n}):{}}function ik({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let a=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:he((u,p,c)=>{let[f,h]=c,{id:m,styleId:y}=bn(p,t,r.styleMirror);return(m&&m!==-1||y&&y!==-1)&&e({id:m,styleId:y,adds:[{rule:f,index:h}]}),u.apply(p,c)})}),n.CSSStyleSheet.prototype.addRule=function(u,p,c=this.cssRules.length){let f=`${u} { ${p} }`;return n.CSSStyleSheet.prototype.insertRule.apply(this,[f,c])};let o=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:he((u,p,c)=>{let[f]=c,{id:h,styleId:m}=bn(p,t,r.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,removes:[{index:f}]}),u.apply(p,c)})}),n.CSSStyleSheet.prototype.removeRule=function(u){return n.CSSStyleSheet.prototype.deleteRule.apply(this,[u])};let s;n.CSSStyleSheet.prototype.replace&&(s=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:he((u,p,c)=>{let[f]=c,{id:h,styleId:m}=bn(p,t,r.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replace:f}),u.apply(p,c)})}));let l;n.CSSStyleSheet.prototype.replaceSync&&(l=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:he((u,p,c)=>{let[f]=c,{id:h,styleId:m}=bn(p,t,r.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replaceSync:f}),u.apply(p,c)})}));let i={};Ri("CSSGroupingRule")?i.CSSGroupingRule=n.CSSGroupingRule:(Ri("CSSMediaRule")&&(i.CSSMediaRule=n.CSSMediaRule),Ri("CSSConditionRule")&&(i.CSSConditionRule=n.CSSConditionRule),Ri("CSSSupportsRule")&&(i.CSSSupportsRule=n.CSSSupportsRule));let d={};return Object.entries(i).forEach(([u,p])=>{d[u]={insertRule:p.prototype.insertRule,deleteRule:p.prototype.deleteRule},p.prototype.insertRule=new Proxy(d[u].insertRule,{apply:he((c,f,h)=>{let[m,y]=h,{id:g,styleId:x}=bn(f.parentStyleSheet,t,r.styleMirror);return(g&&g!==-1||x&&x!==-1)&&e({id:g,styleId:x,adds:[{rule:m,index:[...ji(f),y||0]}]}),c.apply(f,h)})}),p.prototype.deleteRule=new Proxy(d[u].deleteRule,{apply:he((c,f,h)=>{let[m]=h,{id:y,styleId:g}=bn(f.parentStyleSheet,t,r.styleMirror);return(y&&y!==-1||g&&g!==-1)&&e({id:y,styleId:g,removes:[{index:[...ji(f),m]}]}),c.apply(f,h)})})}),he(()=>{n.CSSStyleSheet.prototype.insertRule=a,n.CSSStyleSheet.prototype.deleteRule=o,s&&(n.CSSStyleSheet.prototype.replace=s),l&&(n.CSSStyleSheet.prototype.replaceSync=l),Object.entries(i).forEach(([u,p])=>{p.prototype.insertRule=d[u].insertRule,p.prototype.deleteRule=d[u].deleteRule})})}function $w({mirror:e,stylesheetManager:t},r){var n,a,o;let s=null;r.nodeName==="#document"?s=e.getId(r):s=e.getId(le.host(r));let l=r.nodeName==="#document"?(n=r.defaultView)==null?void 0:n.Document:(o=(a=r.ownerDocument)==null?void 0:a.defaultView)==null?void 0:o.ShadowRoot,i=l?.prototype?Object.getOwnPropertyDescriptor(l?.prototype,"adoptedStyleSheets"):void 0;return s===null||s===-1||!l||!i?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){var d;return(d=i.get)==null?void 0:d.call(this)},set(d){var u;let p=(u=i.set)==null?void 0:u.call(this,d);if(s!==null&&s!==-1)try{t.adoptStyleSheets(d,s)}catch{}return p}}),he(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))}function uk({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:a}){let o=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:he((l,i,d)=>{var u;let[p,c,f]=d;if(r.has(p))return o.apply(i,[p,c,f]);let{id:h,styleId:m}=bn((u=i.parentRule)==null?void 0:u.parentStyleSheet,t,n.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,set:{property:p,value:c,priority:f},index:ji(i.parentRule)}),l.apply(i,d)})});let s=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:he((l,i,d)=>{var u;let[p]=d;if(r.has(p))return s.apply(i,[p]);let{id:c,styleId:f}=bn((u=i.parentRule)==null?void 0:u.parentStyleSheet,t,n.styleMirror);return(c&&c!==-1||f&&f!==-1)&&e({id:c,styleId:f,remove:{property:p},index:ji(i.parentRule)}),l.apply(i,d)})}),he(()=>{a.CSSStyleDeclaration.prototype.setProperty=o,a.CSSStyleDeclaration.prototype.removeProperty=s})}function dk({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:n,sampling:a,doc:o}){let s=he(i=>hs(he(d=>{let u=vs(d);if(!u||It(u,t,r,!0))return;let{currentTime:p,volume:c,muted:f,playbackRate:h,loop:m}=u;e({type:i,id:n.getId(u),currentTime:p,volume:c,muted:f,playbackRate:h,loop:m})}),a.media||500)),l=[kt("play",s(Sn.Play),o),kt("pause",s(Sn.Pause),o),kt("seeked",s(Sn.Seeked),o),kt("volumechange",s(Sn.VolumeChange),o),kt("ratechange",s(Sn.RateChange),o)];return he(()=>{l.forEach(i=>i())})}function ck({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let n=[],a=new WeakMap,o=r.FontFace;r.FontFace=function(i,d,u){let p=new o(i,d,u);return a.set(p,{family:i,buffer:typeof d!="string",descriptors:u,fontSource:typeof d=="string"?d:JSON.stringify(Array.from(new Uint8Array(d)))}),p};let s=Yn(t.fonts,"add",function(l){return function(i){return setTimeout(he(()=>{let d=a.get(i);d&&(e(d),a.delete(i))}),0),l.apply(this,[i])}});return n.push(()=>{r.FontFace=o}),n.push(s),he(()=>{n.forEach(l=>l())})}function fk(e){let{doc:t,mirror:r,blockClass:n,blockSelector:a,selectionCb:o}=e,s=!0,l=he(()=>{let i=t.getSelection();if(!i||s&&i?.isCollapsed)return;s=i.isCollapsed||!1;let d=[],u=i.rangeCount||0;for(let p=0;p<u;p++){let c=i.getRangeAt(p),{startContainer:f,startOffset:h,endContainer:m,endOffset:y}=c;It(f,n,a,!0)||It(m,n,a,!0)||d.push({start:r.getId(f),startOffset:h,end:r.getId(m),endOffset:y})}o({ranges:d})});return l(),kt("selectionchange",l)}function pk({doc:e,customElementCb:t}){let r=e.defaultView;return!r||!r.customElements?()=>{}:Yn(r.customElements,"define",function(a){return function(o,s,l){try{t({define:{name:o}})}catch{console.warn(`Custom element callback failed for ${o}`)}return a.apply(this,[o,s,l])}})}function mk(e,t){let{mutationCb:r,mousemoveCb:n,mouseInteractionCb:a,scrollCb:o,viewportResizeCb:s,inputCb:l,mediaInteractionCb:i,styleSheetRuleCb:d,styleDeclarationCb:u,canvasMutationCb:p,fontCb:c,selectionCb:f,customElementCb:h}=e;e.mutationCb=(...m)=>{t.mutation&&t.mutation(...m),r(...m)},e.mousemoveCb=(...m)=>{t.mousemove&&t.mousemove(...m),n(...m)},e.mouseInteractionCb=(...m)=>{t.mouseInteraction&&t.mouseInteraction(...m),a(...m)},e.scrollCb=(...m)=>{t.scroll&&t.scroll(...m),o(...m)},e.viewportResizeCb=(...m)=>{t.viewportResize&&t.viewportResize(...m),s(...m)},e.inputCb=(...m)=>{t.input&&t.input(...m),l(...m)},e.mediaInteractionCb=(...m)=>{t.mediaInteaction&&t.mediaInteaction(...m),i(...m)},e.styleSheetRuleCb=(...m)=>{t.styleSheetRule&&t.styleSheetRule(...m),d(...m)},e.styleDeclarationCb=(...m)=>{t.styleDeclaration&&t.styleDeclaration(...m),u(...m)},e.canvasMutationCb=(...m)=>{t.canvasMutation&&t.canvasMutation(...m),p(...m)},e.fontCb=(...m)=>{t.font&&t.font(...m),c(...m)},e.selectionCb=(...m)=>{t.selection&&t.selection(...m),f(...m)},e.customElementCb=(...m)=>{t.customElement&&t.customElement(...m),h(...m)}}function hk(e,t={}){let r=e.doc.defaultView;if(!r)return()=>{};mk(e,t);let n,a=()=>{};e.recordDOM&&([n,a]=Uw(e,e.doc));let o=nk(e),s=ak(e),l=qw(e),i=ok(e,{win:r}),d=lk(e),u=dk(e),p=()=>{},c=()=>{},f=()=>{},h=()=>{};e.recordDOM&&(p=ik(e,{win:r}),c=$w(e,e.doc),f=uk(e,{win:r}),e.collectFonts&&(h=ck(e)));let m=fk(e),y=pk(e),g=[];for(let x of e.plugins)g.push(x.observer(x.callback,r,x.options));return he(()=>{Xn.forEach(x=>x.reset()),n?.disconnect(),a(),o(),s(),l(),i(),d(),u(),p(),c(),f(),h(),m(),y(),g.forEach(x=>x())})}function Mi(e){return typeof window[e]<"u"}function Ri(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var Wi=class{constructor(t){R(this,"iframeIdToRemoteIdMap",new WeakMap),R(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,r,n,a){let o=n||this.getIdToRemoteIdMap(t),s=a||this.getRemoteIdToIdMap(t),l=o.get(r);return l||(l=this.generateIdFn(),o.set(r,l),s.set(l,r)),l}getIds(t,r){let n=this.getIdToRemoteIdMap(t),a=this.getRemoteIdToIdMap(t);return r.map(o=>this.getId(t,o,n,a))}getRemoteId(t,r,n){let a=n||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;let o=a.get(r);return o||-1}getRemoteIds(t,r){let n=this.getRemoteIdToIdMap(t);return r.map(a=>this.getRemoteId(t,a,n))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r}getRemoteIdToIdMap(t){let r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r}},Cp=class{constructor(t){R(this,"iframes",new WeakMap),R(this,"crossOriginIframeMap",new WeakMap),R(this,"crossOriginIframeMirror",new Wi(ew)),R(this,"crossOriginIframeStyleMirror"),R(this,"crossOriginIframeRootIdMap",new WeakMap),R(this,"mirror"),R(this,"mutationCb"),R(this,"wrappedEmit"),R(this,"loadListener"),R(this,"stylesheetManager"),R(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Wi(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,r){var n,a;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((n=t.contentWindow)==null||n.addEventListener("message",this.handleMessage.bind(this))),(a=this.loadListener)==null||a.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){let r=t;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!t.source)return;let a=this.crossOriginIframeMap.get(t.source);if(!a)return;let o=this.transformCrossOriginEvent(a,r.data.event);o&&this.wrappedEmit(o,r.data.isCheckout)}transformCrossOriginEvent(t,r){var n;switch(r.type){case V.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);let a=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,a),this.patchRootIdOnNode(r.data.node,a),{timestamp:r.timestamp,type:V.IncrementalSnapshot,data:{source:$.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case V.Meta:case V.Load:case V.DomContentLoaded:return!1;case V.Plugin:return r;case V.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case V.IncrementalSnapshot:switch(r.data.source){case $.Mutation:return r.data.adds.forEach(a=>{this.replaceIds(a,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(a.node,t);let o=this.crossOriginIframeRootIdMap.get(t);o&&this.patchRootIdOnNode(a.node,o)}),r.data.removes.forEach(a=>{this.replaceIds(a,t,["parentId","id"])}),r.data.attributes.forEach(a=>{this.replaceIds(a,t,["id"])}),r.data.texts.forEach(a=>{this.replaceIds(a,t,["id"])}),r;case $.Drag:case $.TouchMove:case $.MouseMove:return r.data.positions.forEach(a=>{this.replaceIds(a,t,["id"])}),r;case $.ViewportResize:return!1;case $.MediaInteraction:case $.MouseInteraction:case $.Scroll:case $.CanvasMutation:case $.Input:return this.replaceIds(r.data,t,["id"]),r;case $.StyleSheetRule:case $.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case $.Font:return r;case $.Selection:return r.data.ranges.forEach(a=>{this.replaceIds(a,t,["start","end"])}),r;case $.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(n=r.data.styles)==null||n.forEach(a=>{this.replaceStyleIds(a,t,["styleId"])}),r}}return!1}replace(t,r,n,a){for(let o of a)!Array.isArray(r[o])&&typeof r[o]!="number"||(Array.isArray(r[o])?r[o]=t.getIds(n,r[o]):r[o]=t.getId(n,r[o]));return r}replaceIds(t,r,n){return this.replace(this.crossOriginIframeMirror,t,r,n)}replaceStyleIds(t,r,n){return this.replace(this.crossOriginIframeStyleMirror,t,r,n)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(n=>{this.replaceIdOnNode(n,r)})}patchRootIdOnNode(t,r){t.type!==Wr.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(n=>{this.patchRootIdOnNode(n,r)})}},Lp=class{constructor(t){R(this,"shadowDoms",new WeakSet),R(this,"mutationCb"),R(this,"scrollCb"),R(this,"bypassOptions"),R(this,"mirror"),R(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,r){if(!is(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);let[n]=Uw({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(qw({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(le.host(t))),this.restoreHandlers.push($w({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,r){let n=this;this.restoreHandlers.push(Yn(t.prototype,"attachShadow",function(a){return function(o){let s=a.call(this,o),l=le.shadowRoot(this);return l&&Bw(this)&&n.addShadowRoot(l,r),s}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},Ja="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ss=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(as=0;as<Ja.length;as++)ss[Ja.charCodeAt(as)]=as;var as,gk=function(e){var t=new Uint8Array(e),r,n=t.length,a="";for(r=0;r<n;r+=3)a+=Ja[t[r]>>2],a+=Ja[(t[r]&3)<<4|t[r+1]>>4],a+=Ja[(t[r+1]&15)<<2|t[r+2]>>6],a+=Ja[t[r+2]&63];return n%3===2?a=a.substring(0,a.length-1)+"=":n%3===1&&(a=a.substring(0,a.length-2)+"=="),a},xk=function(e){var t=e.length*.75,r=e.length,n,a=0,o,s,l,i;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var d=new ArrayBuffer(t),u=new Uint8Array(d);for(n=0;n<r;n+=4)o=ss[e.charCodeAt(n)],s=ss[e.charCodeAt(n+1)],l=ss[e.charCodeAt(n+2)],i=ss[e.charCodeAt(n+3)],u[a++]=o<<2|s>>4,u[a++]=(s&15)<<4|l>>2,u[a++]=(l&3)<<6|i&63;return d},Dy=new Map;function vk(e,t){let r=Dy.get(e);return r||(r=new Map,Dy.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var Hw=(e,t,r)=>{if(!e||!(Ww(e,t)||typeof e=="object"))return;let n=e.constructor.name,a=vk(r,n),o=a.indexOf(e);return o===-1&&(o=a.length,a.push(e)),o};function Ni(e,t,r){if(e instanceof Array)return e.map(n=>Ni(n,t,r));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){let n=e.constructor.name,a=gk(e);return{rr_type:n,base64:a}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Ni(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let n=e.constructor.name,{src:a}=e;return{rr_type:n,src:a}}else if(e instanceof HTMLCanvasElement){let n="HTMLImageElement",a=e.toDataURL();return{rr_type:n,src:a}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Ni(e.data,t,r),e.width,e.height]};if(Ww(e,t)||typeof e=="object"){let n=e.constructor.name,a=Hw(e,t,r);return{rr_type:n,index:a}}}}return e}var jw=(e,t,r)=>e.map(n=>Ni(n,t,r)),Ww=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(a=>typeof t[a]=="function").find(a=>e instanceof t[a]);function yk(e,t,r,n){let a=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let s of o)try{if(typeof t.CanvasRenderingContext2D.prototype[s]!="function")continue;let l=Yn(t.CanvasRenderingContext2D.prototype,s,function(i){return function(...d){return It(this.canvas,r,n,!0)||setTimeout(()=>{let u=jw(d,t,this);e(this.canvas,{type:Vr["2D"],property:s,args:u})},0),i.apply(this,d)}});a.push(l)}catch{let l=su(t.CanvasRenderingContext2D.prototype,s,{set(i){e(this.canvas,{type:Vr["2D"],property:s,args:[i],setter:!0})}});a.push(l)}return()=>{a.forEach(s=>s())}}function wk(e){return e==="experimental-webgl"?"webgl":e}function Oy(e,t,r,n){let a=[];try{let o=Yn(e.HTMLCanvasElement.prototype,"getContext",function(s){return function(l,...i){if(!It(this,t,r,!0)){let d=wk(l);if("__context"in this||(this.__context=d),n&&["webgl","webgl2"].includes(d))if(i[0]&&typeof i[0]=="object"){let u=i[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else i.splice(0,1,{preserveDrawingBuffer:!0})}return s.apply(this,[l,...i])}});a.push(o)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{a.forEach(o=>o())}}function Fy(e,t,r,n,a,o){let s=[],l=Object.getOwnPropertyNames(e);for(let i of l)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(i))try{if(typeof e[i]!="function")continue;let d=Yn(e,i,function(u){return function(...p){let c=u.apply(this,p);if(Hw(c,o,this),"tagName"in this.canvas&&!It(this.canvas,n,a,!0)){let f=jw(p,o,this),h={type:t,property:i,args:f};r(this.canvas,h)}return c}});s.push(d)}catch{let d=su(e,i,{set(u){r(this.canvas,{type:t,property:i,args:[u],setter:!0})}});s.push(d)}return s}function bk(e,t,r,n){let a=[];return typeof t.WebGLRenderingContext<"u"&&a.push(...Fy(t.WebGLRenderingContext.prototype,Vr.WebGL,e,r,n,t)),typeof t.WebGL2RenderingContext<"u"&&a.push(...Fy(t.WebGL2RenderingContext.prototype,Vr.WebGL2,e,r,n,t)),()=>{a.forEach(o=>o())}}var Vw=`(function() {
|
|
62
62
|
"use strict";
|
|
63
63
|
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
64
64
|
var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
|
|
@@ -133,11 +133,12 @@ or you can use record.mirror to access the mirror instance during recording.`,wy
|
|
|
133
133
|
};
|
|
134
134
|
})();
|
|
135
135
|
//# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
|
|
136
|
-
`,Ey=typeof self<"u"&&self.Blob&&new Blob([Bw],{type:"text/javascript;charset=utf-8"});function mk(e){let t;try{if(t=Ey&&(self.URL||self.webkitURL).createObjectURL(Ey),!t)throw"";let r=new Worker(t,{name:e?.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),r}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(Bw),{name:e?.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}var yp=class{constructor(t){R(this,"pendingCanvasMutations",new Map),R(this,"rafStamps",{latestId:0,invokeId:null}),R(this,"mirror"),R(this,"mutationCb"),R(this,"resetObservers"),R(this,"frozen",!1),R(this,"locked",!1),R(this,"processMutation",(l,d)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(l)||this.pendingCanvasMutations.set(l,[]),this.pendingCanvasMutations.get(l).push(d)});let{sampling:r="all",win:a,blockClass:n,blockSelector:o,recordCanvas:i,dataURLOptions:s}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,i&&r==="all"&&this.initCanvasMutationObserver(a,n,o),i&&typeof r=="number"&&this.initCanvasFPSObserver(r,a,n,o,{dataURLOptions:s})}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(t,r,a,n,o){let i=_y(r,a,n,!0),s=new Map,l=new mk;l.onmessage=h=>{let{id:m}=h.data;if(s.set(m,!1),!("base64"in h.data))return;let{base64:S,type:g,width:x,height:v}=h.data;this.mutationCb({id:m,type:jr["2D"],commands:[{property:"clearRect",args:[0,0,x,v]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:S}],type:g}]},0,0]}]})};let d=1e3/t,u=0,f,c=()=>{let h=[];return r.document.querySelectorAll("canvas").forEach(m=>{kt(m,a,n,!0)||h.push(m)}),h},p=h=>{if(u&&h-u<d){f=requestAnimationFrame(p);return}u=h,c().forEach(async m=>{var S;let g=this.mirror.getId(m);if(s.get(g)||m.width===0||m.height===0)return;if(s.set(g,!0),["webgl","webgl2"].includes(m.__context)){let v=m.getContext(m.__context);((S=v?.getContextAttributes())==null?void 0:S.preserveDrawingBuffer)===!1&&v.clear(v.COLOR_BUFFER_BIT)}let x=await createImageBitmap(m);l.postMessage({id:g,bitmap:x,width:m.width,height:m.height,dataURLOptions:o.dataURLOptions},[x])}),f=requestAnimationFrame(p)};f=requestAnimationFrame(p),this.resetObservers=()=>{i(),cancelAnimationFrame(f)}}initCanvasMutationObserver(t,r,a){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let n=_y(t,r,a,!1),o=ck(this.processMutation.bind(this),t,r,a),i=pk(this.processMutation.bind(this),t,r,a);this.resetObservers=()=>{n(),o(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{let a=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,a)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;let a=this.pendingCanvasMutations.get(t);if(!a||r===-1)return;let n=a.map(i=>{let{type:s,...l}=i;return l}),{type:o}=a[0];this.mutationCb({id:r,type:o,commands:n}),this.pendingCanvasMutations.delete(t)}},wp=class{constructor(t){R(this,"trackedLinkElements",new WeakSet),R(this,"mutationCb"),R(this,"adoptedStyleSheetCb"),R(this,"styleMirror",new zl),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,r){if(t.length===0)return;let a={id:r,styleIds:[]},n=[];for(let o of t){let i;this.styleMirror.has(o)?i=this.styleMirror.getId(o):(i=this.styleMirror.add(o),n.push({styleId:i,rules:Array.from(o.rules||CSSRule,(s,l)=>({rule:Wy(s,o.href),index:l}))})),a.styleIds.push(i)}n.length>0&&(a.styles=n),this.adoptedStyleSheetCb(a)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}},Sp=class{constructor(){R(this,"nodeMap",new WeakMap),R(this,"active",!1)}inOtherBuffer(t,r){let a=this.nodeMap.get(t);return a&&Array.from(a).some(n=>n!==r)}add(t,r){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))}destroy(){}},We,_l,Yf,$l=!1;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=((tv=e.contentWindow)==null?void 0:tv.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var hr=jy();function Xa(e={}){let{emit:t,checkoutEveryNms:r,checkoutEveryNth:a,blockClass:n="rr-block",blockSelector:o=null,ignoreClass:i="rr-ignore",ignoreSelector:s=null,maskTextClass:l="rr-mask",maskTextSelector:d=null,inlineStylesheet:u=!0,maskAllInputs:f,maskInputOptions:c,slimDOMOptions:p,maskInputFn:h,maskTextFn:m,hooks:S,packFn:g,sampling:x={},dataURLOptions:v={},mousemoveWait:b,recordDOM:w=!0,recordCanvas:y=!1,recordCrossOriginIframes:L=!1,recordAfter:C=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:M=!1,collectFonts:I=!1,inlineImages:D=!1,plugins:A,keepIframeSrcFn:k=()=>!1,ignoreCSSAttributes:ke=new Set([]),errorHandler:Ie}=e;G1(Ie);let ue=L?window.parent===window:!0,j=!1;if(!ue)try{window.parent.document&&(j=!1)}catch{j=!0}if(ue&&!t)throw new Error("emit function is required");if(!ue&&!j)return()=>{};b!==void 0&&x.mousemove===void 0&&(x.mousemove=b),hr.reset();let Se=f===!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}:c!==void 0?c:{password:!0},ze=Qy(p);kw();let be,we=0,wr=X=>{for(let _e of A||[])_e.eventProcessor&&(X=_e.eventProcessor(X));return g&&!j&&(X=g(X)),X};We=(X,_e)=>{var se;let Re=X;if(Re.timestamp=ds(),(se=Wa[0])!=null&&se.isFrozen()&&Re.type!==W.FullSnapshot&&!(Re.type===W.IncrementalSnapshot&&Re.data.source===U.Mutation)&&Wa.forEach(lt=>lt.unfreeze()),ue)t?.(wr(Re),_e);else if(j){let lt={type:"rrweb",event:wr(Re),origin:window.location.origin,isCheckout:_e};window.parent.postMessage(lt,"*")}if(Re.type===W.FullSnapshot)be=Re,we=0;else if(Re.type===W.IncrementalSnapshot){if(Re.data.source===U.Mutation&&Re.data.isAttachIframe)return;we++;let lt=a&&we>=a,me=r&&Re.timestamp-be.timestamp>r;(lt||me)&&_l(!0)}};let E=X=>{We({type:W.IncrementalSnapshot,data:{source:U.Mutation,...X}})},vt=X=>We({type:W.IncrementalSnapshot,data:{source:U.Scroll,...X}}),yt=X=>We({type:W.IncrementalSnapshot,data:{source:U.CanvasMutation,...X}}),Ia=X=>We({type:W.IncrementalSnapshot,data:{source:U.AdoptedStyleSheet,...X}}),Qe=new wp({mutationCb:E,adoptedStyleSheetCb:Ia}),it=new xp({mirror:hr,mutationCb:E,stylesheetManager:Qe,recordCrossOriginIframes:L,wrappedEmit:We});for(let X of A||[])X.getMirror&&X.getMirror({nodeMirror:hr,crossOriginIframeMirror:it.crossOriginIframeMirror,crossOriginIframeStyleMirror:it.crossOriginIframeStyleMirror});let Sr=new Sp;Yf=new yp({recordCanvas:y,mutationCb:yt,win:window,blockClass:n,blockSelector:o,mirror:hr,sampling:x.canvas,dataURLOptions:v});let br=new vp({mutationCb:E,scrollCb:vt,bypassOptions:{blockClass:n,blockSelector:o,maskTextClass:l,maskTextSelector:d,inlineStylesheet:u,maskInputOptions:Se,dataURLOptions:v,maskTextFn:m,maskInputFn:h,recordCanvas:y,inlineImages:D,sampling:x,slimDOMOptions:ze,iframeManager:it,stylesheetManager:Qe,canvasManager:Yf,keepIframeSrcFn:k,processedNodeManager:Sr},mirror:hr});_l=(X=!1)=>{if(!w)return;We({type:W.Meta,data:{href:window.location.href,width:bw(),height:Sw()}},X),Qe.reset(),br.init(),Wa.forEach(se=>se.lock());let _e=vL(document,{mirror:hr,blockClass:n,blockSelector:o,maskTextClass:l,maskTextSelector:d,inlineStylesheet:u,maskAllInputs:Se,maskTextFn:m,maskInputFn:h,slimDOM:ze,dataURLOptions:v,recordCanvas:y,inlineImages:D,onSerialize:se=>{ss(se,hr)&&it.addIframe(se),Mw(se,hr)&&Qe.trackLinkElement(se),Ha(se)&&br.addShadowRoot(ae.shadowRoot(se),document)},onIframeLoad:(se,Re)=>{it.attachIframe(se,Re),br.observeAttachShadow(se)},onStylesheetLoad:(se,Re)=>{Qe.attachLinkElement(se,Re)},keepIframeSrcFn:k});if(!_e)return console.warn("Failed to snapshot the document");We({type:W.FullSnapshot,data:{node:_e,initialOffset:ww(window)}},X),Wa.forEach(se=>se.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Qe.adoptStyleSheets(document.adoptedStyleSheets,hr.getId(document))};try{let X=[],_e=Re=>{var lt;return pe(ik)({mutationCb:E,mousemoveCb:(me,sn)=>We({type:W.IncrementalSnapshot,data:{source:sn,positions:me}}),mouseInteractionCb:me=>We({type:W.IncrementalSnapshot,data:{source:U.MouseInteraction,...me}}),scrollCb:vt,viewportResizeCb:me=>We({type:W.IncrementalSnapshot,data:{source:U.ViewportResize,...me}}),inputCb:me=>We({type:W.IncrementalSnapshot,data:{source:U.Input,...me}}),mediaInteractionCb:me=>We({type:W.IncrementalSnapshot,data:{source:U.MediaInteraction,...me}}),styleSheetRuleCb:me=>We({type:W.IncrementalSnapshot,data:{source:U.StyleSheetRule,...me}}),styleDeclarationCb:me=>We({type:W.IncrementalSnapshot,data:{source:U.StyleDeclaration,...me}}),canvasMutationCb:yt,fontCb:me=>We({type:W.IncrementalSnapshot,data:{source:U.Font,...me}}),selectionCb:me=>{We({type:W.IncrementalSnapshot,data:{source:U.Selection,...me}})},customElementCb:me=>{We({type:W.IncrementalSnapshot,data:{source:U.CustomElement,...me}})},blockClass:n,ignoreClass:i,ignoreSelector:s,maskTextClass:l,maskTextSelector:d,maskInputOptions:Se,inlineStylesheet:u,sampling:x,recordDOM:w,recordCanvas:y,inlineImages:D,userTriggeredOnInput:M,collectFonts:I,doc:Re,maskInputFn:h,maskTextFn:m,keepIframeSrcFn:k,blockSelector:o,slimDOMOptions:ze,dataURLOptions:v,mirror:hr,iframeManager:it,stylesheetManager:Qe,shadowDomManager:br,processedNodeManager:Sr,canvasManager:Yf,ignoreCSSAttributes:ke,plugins:((lt=A?.filter(me=>me.observer))==null?void 0:lt.map(me=>({observer:me.observer,options:me.options,callback:sn=>We({type:W.Plugin,data:{plugin:me.name,payload:sn}})})))||[]},S)};it.addLoadListener(Re=>{try{X.push(_e(Re.contentDocument))}catch(lt){console.warn(lt)}});let se=()=>{_l(),X.push(_e(document)),$l=!0};return["interactive","complete"].includes(document.readyState)?se():(X.push(Lt("DOMContentLoaded",()=>{We({type:W.DomContentLoaded,data:{}}),C==="DOMContentLoaded"&&se()})),X.push(Lt("load",()=>{We({type:W.Load,data:{}}),C==="load"&&se()},window))),()=>{X.forEach(Re=>{try{Re()}catch(lt){String(lt).toLowerCase().includes("cross-origin")||console.warn(lt)}}),Sr.destroy(),$l=!1,X1()}}catch(X){console.warn(X)}}Xa.addCustomEvent=(e,t)=>{if(!$l)throw new Error("please add custom event after start recording");We({type:W.Custom,data:{tag:e,payload:t}})};Xa.freezePage=()=>{Wa.forEach(e=>e.freeze())};Xa.takeFullSnapshot=e=>{if(!$l)throw new Error("please take full snapshot after start recording");_l(e)};Xa.mirror=hr;function hk(e){return{all:e=e||new Map,on:function(t,r){var a=e.get(t);a?a.push(r):e.set(t,[r])},off:function(t,r){var a=e.get(t);a&&(r?a.splice(a.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var a=e.get(t);a&&a.slice().map(function(n){n(r)}),(a=e.get("*"))&&a.slice().map(function(n){n(t,r)})}}}function gk(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;let r=e.HTMLElement||e.Element,a=468,n={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||l,scrollIntoView:r.prototype.scrollIntoView},o=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function i(g){let x=["MSIE ","Trident/","Edge/"];return new RegExp(x.join("|")).test(g)}let s=i(e.navigator.userAgent)?1:0;function l(g,x){this.scrollLeft=g,this.scrollTop=x}function d(g){return .5*(1-Math.cos(Math.PI*g))}function u(g){if(g===null||typeof g!="object"||g.behavior===void 0||g.behavior==="auto"||g.behavior==="instant")return!0;if(typeof g=="object"&&g.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+g.behavior+" is not a valid value for enumeration ScrollBehavior.")}function f(g,x){if(x==="Y")return g.clientHeight+s<g.scrollHeight;if(x==="X")return g.clientWidth+s<g.scrollWidth}function c(g,x){let v=e.getComputedStyle(g,null)["overflow"+x];return v==="auto"||v==="scroll"}function p(g){let x=f(g,"Y")&&c(g,"Y"),v=f(g,"X")&&c(g,"X");return x||v}function h(g){for(;g!==t.body&&p(g)===!1;)g=g.parentNode||g.host;return g}function m(g){let x=o(),v,b,w,y=(x-g.startTime)/a;y=y>1?1:y,v=d(y),b=g.startX+(g.x-g.startX)*v,w=g.startY+(g.y-g.startY)*v,g.method.call(g.scrollable,b,w),(b!==g.x||w!==g.y)&&e.requestAnimationFrame(m.bind(e,g))}function S(g,x,v){let b,w,y,L,C=o();g===t.body?(b=e,w=e.scrollX||e.pageXOffset,y=e.scrollY||e.pageYOffset,L=n.scroll):(b=g,w=g.scrollLeft,y=g.scrollTop,L=l),m({scrollable:b,method:L,startTime:C,startX:w,startY:y,x,y:v})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(u(arguments[0])===!0){n.scroll.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:e.scrollY||e.pageYOffset);return}S.call(e,t.body,arguments[0].left!==void 0?~~arguments[0].left:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:e.scrollY||e.pageYOffset)}},e.scrollBy=function(){if(arguments[0]!==void 0){if(u(arguments[0])){n.scrollBy.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}S.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},r.prototype.scroll=r.prototype.scrollTo=function(){if(arguments[0]===void 0)return;if(u(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");n.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}let g=arguments[0].left,x=arguments[0].top;S.call(this,this,typeof g>"u"?this.scrollLeft:~~g,typeof x>"u"?this.scrollTop:~~x)},r.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(u(arguments[0])===!0){n.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},r.prototype.scrollIntoView=function(){if(u(arguments[0])===!0){n.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}let g=h(this),x=g.getBoundingClientRect(),v=this.getBoundingClientRect();g!==t.body?(S.call(this,g,g.scrollLeft+v.left-x.left,g.scrollTop+v.top-x.top),e.getComputedStyle(g).position!=="fixed"&&e.scrollBy({left:x.left,top:x.top,behavior:"smooth"})):e.scrollBy({left:v.left,top:v.top,behavior:"smooth"})}}var bp=class{constructor(t=[],r){R(this,"timeOffset",0),R(this,"speed"),R(this,"actions"),R(this,"raf",null),R(this,"lastTimestamp"),this.actions=t,this.speed=r.speed}addAction(t){let r=this.raf===!0;if(!this.actions.length||this.actions[this.actions.length-1].delay<=t.delay)this.actions.push(t);else{let a=this.findActionIndex(t);this.actions.splice(a,0,t)}r&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}rafCheck(){let t=performance.now();for(this.timeOffset+=(t-this.lastTimestamp)*this.speed,this.lastTimestamp=t;this.actions.length;){let r=this.actions[0];if(this.timeOffset>=r.delay)this.actions.shift(),r.doAction();else break}this.actions.length>0?this.raf=requestAnimationFrame(this.rafCheck.bind(this)):this.raf=!0}clear(){this.raf&&(this.raf!==!0&&cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(t){this.speed=t}isActive(){return this.raf!==null}findActionIndex(t){let r=0,a=this.actions.length-1;for(;r<=a;){let n=Math.floor((r+a)/2);if(this.actions[n].delay<t.delay)r=n+1;else if(this.actions[n].delay>t.delay)a=n-1;else return n+1}return r}};function Py(e,t){if(e.type===W.IncrementalSnapshot&&e.data.source===U.MouseMove&&e.data.positions&&e.data.positions.length){let r=e.data.positions[0].timeOffset,a=e.timestamp+r;return e.delay=a-t,a-t}return e.delay=e.timestamp-t,e.delay}function Ty(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var a,n,o=r.call(e),i=[];try{for(;(t===void 0||t-- >0)&&!(a=o.next()).done;)i.push(a.value)}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}var Kn;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Kn||(Kn={}));var zw={type:"xstate.init"};function Jf(e){return e===void 0?[]:[].concat(e)}function jn(e){return{type:"xstate.assign",assignment:e}}function Ny(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 Hl(e){return function(t){return e===t}}function Uw(e){return typeof e=="string"?{type:e}:e}function Ay(e,t){return{value:e,context:t,actions:[],changed:!1,matches:Hl(e)}}function Dy(e,t,r){var a=t,n=!1;return[e.filter(function(o){if(o.type==="xstate.assign"){n=!0;var i=Object.assign({},a);return typeof o.assignment=="function"?i=o.assignment(a,r):Object.keys(o.assignment).forEach(function(s){i[s]=typeof o.assignment[s]=="function"?o.assignment[s](a,r):o.assignment[s]}),a=i,!1}return!0}),a,n]}function qw(e,t){t===void 0&&(t={});var r=Ty(Dy(Jf(e.states[e.initial].entry).map(function(i){return Ny(i,t.actions)}),e.context,zw),2),a=r[0],n=r[1],o={config:e,_options:t,initialState:{value:e.initial,actions:a,context:n,matches:Hl(e.initial)},transition:function(i,s){var l,d,u=typeof i=="string"?{value:i,context:e.context}:i,f=u.value,c=u.context,p=Uw(s),h=e.states[f];if(h.on){var m=Jf(h.on[p.type]);try{for(var S=(function(j){var Se=typeof Symbol=="function"&&Symbol.iterator,ze=Se&&j[Se],be=0;if(ze)return ze.call(j);if(j&&typeof j.length=="number")return{next:function(){return j&&be>=j.length&&(j=void 0),{value:j&&j[be++],done:!j}}};throw new TypeError(Se?"Object is not iterable.":"Symbol.iterator is not defined.")})(m),g=S.next();!g.done;g=S.next()){var x=g.value;if(x===void 0)return Ay(f,c);var v=typeof x=="string"?{target:x}:x,b=v.target,w=v.actions,y=w===void 0?[]:w,L=v.cond,C=L===void 0?function(){return!0}:L,M=b===void 0,I=b??f,D=e.states[I];if(C(c,p)){var A=Ty(Dy((M?Jf(y):[].concat(h.exit,y,D.entry).filter(function(j){return j})).map(function(j){return Ny(j,o._options.actions)}),c,p),3),k=A[0],ke=A[1],Ie=A[2],ue=b??f;return{value:ue,context:ke,actions:k,changed:b!==f||k.length>0||Ie,matches:Hl(ue)}}}}catch(j){l={error:j}}finally{try{g&&!g.done&&(d=S.return)&&d.call(S)}finally{if(l)throw l.error}}}return Ay(f,c)}};return o}var Oy=function(e,t){return e.actions.forEach(function(r){var a=r.exec;return a&&a(e.context,t)})};function $w(e){var t=e.initialState,r=Kn.NotStarted,a=new Set,n={_machine:e,send:function(o){r===Kn.Running&&(t=e.transition(t,o),Oy(t,Uw(o)),a.forEach(function(i){return i(t)}))},subscribe:function(o){return a.add(o),o(t),{unsubscribe:function(){return a.delete(o)}}},start:function(o){if(o){var i=typeof o=="object"?o:{context:e.config.context,value:o};t={value:i.value,actions:[],context:i.context,matches:Hl(i.value)}}return r=Kn.Running,Oy(t,zw),n},stop:function(){return r=Kn.Stopped,a.clear(),n},get state(){return t},get status(){return r}};return n}function xk(e,t){for(let r=e.length-1;r>=0;r--){let a=e[r];if(a.type===W.Meta&&a.timestamp<=t)return e.slice(r)}return e}function vk(e,{getCastFn:t,applyEventsSynchronously:r,emitter:a}){let n=qw({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:jn({lastPlayedEvent:(o,i)=>i.type==="CAST_EVENT"?i.payload.event:o.lastPlayedEvent}),recordTimeOffset:jn((o,i)=>{let s=o.timeOffset;return"payload"in i&&"timeOffset"in i.payload&&(s=i.payload.timeOffset),{...o,timeOffset:s,baselineTime:o.events[0].timestamp+s}}),play(o){var i;let{timer:s,events:l,baselineTime:d,lastPlayedEvent:u}=o;s.clear();for(let h of l)Py(h,d);let f=xk(l,d),c=u?.timestamp;u?.type===W.IncrementalSnapshot&&u.data.source===U.MouseMove&&(c=u.timestamp+((i=u.data.positions[0])==null?void 0:i.timeOffset)),d<(c||0)&&a.emit(ve.PlayBack);let p=new Array;for(let h of f)if(!(c&&c<d&&(h.timestamp<=c||h===u)))if(h.timestamp<d)p.push(h);else{let m=t(h,!1);s.addAction({doAction:()=>{m()},delay:h.delay})}r(p),a.emit(ve.Flush),s.start()},pause(o){o.timer.clear()},resetLastPlayedEvent:jn(o=>({...o,lastPlayedEvent:null})),startLive:jn({baselineTime:(o,i)=>(o.timer.start(),i.type==="TO_LIVE"&&i.payload.baselineTime?i.payload.baselineTime:Date.now())}),addEvent:jn((o,i)=>{let{baselineTime:s,timer:l,events:d}=o;if(i.type==="ADD_EVENT"){let{event:u}=i.payload;Py(u,s);let f=d.length-1;if(!d[f]||d[f].timestamp<=u.timestamp)d.push(u);else{let h=-1,m=0;for(;m<=f;){let S=Math.floor((m+f)/2);d[S].timestamp<=u.timestamp?m=S+1:f=S-1}h===-1&&(h=m),d.splice(h,0,u)}let c=u.timestamp<s,p=t(u,c);c?p():l.isActive()&&l.addAction({doAction:()=>{p()},delay:u.delay})}return{...o,events:d}})}});return $w(n)}function yk(e){let t=qw({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:(r,a)=>{"payload"in a&&r.timer.setSpeed(a.payload.speed)},recordSpeed:jn({normalSpeed:r=>r.timer.speed}),restoreSpeed:r=>{r.timer.setSpeed(r.normalSpeed)}}});return $w(t)}var wk=e=>[`.${e} { background: currentColor }`,"noscript { display: none !important; }"],Fy=new Map;function Hw(e,t){let r=Fy.get(e);return r||(r=new Map,Fy.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}function wa(e,t,r){return async a=>{if(a&&typeof a=="object"&&"rr_type"in a)if(r&&(r.isUnchanged=!1),a.rr_type==="ImageBitmap"&&"args"in a){let n=await wa(e,t,r)(a.args);return await createImageBitmap.apply(null,n)}else if("index"in a){if(r||t===null)return a;let{rr_type:n,index:o}=a;return Hw(t,n)[o]}else if("args"in a){let{rr_type:n,args:o}=a,i=window[n];return new i(...await Promise.all(o.map(wa(e,t,r))))}else{if("base64"in a)return uk(a.base64);if("src"in a){let n=e.get(a.src);if(n)return n;{let o=new Image;return o.src=a.src,e.set(a.src,o),o}}else if("data"in a&&a.rr_type==="Blob"){let n=await Promise.all(a.data.map(wa(e,t,r)));return new Blob(n,{type:a.type})}}else if(Array.isArray(a))return await Promise.all(a.map(wa(e,t,r)));return a}}function Sk(e,t){try{return t===jr.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch{return null}}var bk=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function Ck(e,t){if(!t?.constructor)return;let{name:r}=t.constructor;if(!bk.includes(r))return;let a=Hw(e,r);a.includes(t)||a.push(t)}async function Lk({mutation:e,target:t,type:r,imageMap:a,errorHandler:n}){try{let o=Sk(t,r);if(!o)return;if(e.setter){o[e.property]=e.args[0];return}let i=o[e.property],s=await Promise.all(e.args.map(wa(a,o))),l=i.apply(o,s);Ck(o,l);let d=!1}catch(o){n(e,o)}}async function kk({event:e,mutations:t,target:r,imageMap:a,errorHandler:n}){let o=r.getContext("2d");if(!o){n(t[0],new Error("Canvas context is null"));return}let i=t.map(async l=>Promise.all(l.args.map(wa(a,o))));(await Promise.all(i)).forEach((l,d)=>{let u=t[d];try{if(u.setter){o[u.property]=u.args[0];return}let f=o[u.property];u.property==="drawImage"&&typeof u.args[0]=="string"?(a.get(e),f.apply(o,u.args)):f.apply(o,l)}catch(f){n(u,f)}})}async function By({event:e,mutation:t,target:r,imageMap:a,canvasEventMap:n,errorHandler:o}){try{let i=n.get(e)||t,s="commands"in i?i.commands:[i];if([jr.WebGL,jr.WebGL2].includes(t.type)){for(let l=0;l<s.length;l++){let d=s[l];await Lk({mutation:d,type:t.type,target:r,imageMap:a,errorHandler:o})}return}await kk({event:e,mutations:s,target:r,imageMap:a,errorHandler:o})}catch(i){o(t,i)}}var Cp=class{constructor(t){R(this,"mediaMap",new Map),R(this,"warn"),R(this,"service"),R(this,"speedService"),R(this,"emitter"),R(this,"getCurrentTime"),R(this,"metadataCallbackMap",new Map),this.warn=t.warn,this.service=t.service,this.speedService=t.speedService,this.emitter=t.emitter,this.getCurrentTime=t.getCurrentTime,this.emitter.on(ve.Start,this.start.bind(this)),this.emitter.on(ve.SkipStart,this.start.bind(this)),this.emitter.on(ve.Pause,this.pause.bind(this)),this.emitter.on(ve.Finish,this.pause.bind(this)),this.speedService.subscribe(()=>{this.syncAllMediaElements()})}syncAllMediaElements(t={pause:!1}){this.mediaMap.forEach((r,a)=>{this.syncTargetWithState(a),t.pause&&a.pause()})}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:t,target:r,mediaState:a}){if(a.isPlaying){let o=(t-a.lastInteractionTimeOffset)/1e3*a.playbackRate,i="duration"in r&&r.duration;if(Number.isNaN(i)){this.waitForMetadata(r);return}let s=a.currentTimeAtLastInteraction+o;r.loop&&i!==!1&&(s=s%i),r.currentTime=s}else r.pause(),r.currentTime=a.currentTimeAtLastInteraction}waitForMetadata(t){if(this.metadataCallbackMap.has(t)||!("addEventListener"in t))return;let r=()=>{this.metadataCallbackMap.delete(t);let a=this.mediaMap.get(t);a&&this.seekTo({time:this.getCurrentTime(),target:t,mediaState:a})};this.metadataCallbackMap.set(t,r),t.addEventListener("loadedmetadata",r,{once:!0})}getMediaStateFromMutation({target:t,timeOffset:r,mutation:a}){let n=this.mediaMap.get(t),{type:o,playbackRate:i,currentTime:s,muted:l,volume:d,loop:u}=a;return{isPlaying:o===ya.Play||o!==ya.Pause&&(n?.isPlaying||t.getAttribute("autoplay")!==null),currentTimeAtLastInteraction:s??n?.currentTimeAtLastInteraction??0,lastInteractionTimeOffset:r,playbackRate:i??n?.playbackRate??1,volume:d??n?.volume??1,muted:l??n?.muted??t.getAttribute("muted")===null,loop:u??n?.loop??t.getAttribute("loop")===null}}syncTargetWithState(t){let r=this.mediaMap.get(t);if(!r)return;let{muted:a,loop:n,volume:o,isPlaying:i}=r,s=this.service.state.matches("paused"),l=r.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:t,mediaState:r}),t.volume!==o&&(t.volume=o),t.muted=a,t.loop=n,t.playbackRate!==l&&(t.playbackRate=l),i&&!s?t.play():t.pause()}catch(d){this.warn(`Failed to replay media interactions: ${d.message||d}`)}}addMediaElements(t,r,a){if(!["AUDIO","VIDEO"].includes(t.nodeName))return;let n=t,o=a.getMeta(n);if(!o||!("attributes"in o))return;let i=this.service.state.matches("paused"),s=o.attributes,l=!1;s.rr_mediaState?l=s.rr_mediaState==="played":l=n.getAttribute("autoplay")!==null,l&&i&&n.pause();let d=1;typeof s.rr_mediaPlaybackRate=="number"&&(d=s.rr_mediaPlaybackRate);let u=!1;typeof s.rr_mediaMuted=="boolean"?u=s.rr_mediaMuted:u=n.getAttribute("muted")!==null;let f=!1;typeof s.rr_mediaLoop=="boolean"?f=s.rr_mediaLoop:f=n.getAttribute("loop")!==null;let c=1;typeof s.rr_mediaVolume=="number"&&(c=s.rr_mediaVolume);let p=0;typeof s.rr_mediaCurrentTime=="number"&&(p=s.rr_mediaCurrentTime),this.mediaMap.set(n,{isPlaying:l,currentTimeAtLastInteraction:p,lastInteractionTimeOffset:r,playbackRate:d,volume:c,muted:u,loop:f}),this.syncTargetWithState(n)}mediaMutation({target:t,timeOffset:r,mutation:a}){this.mediaMap.set(t,this.getMediaStateFromMutation({target:t,timeOffset:r,mutation:a})),this.syncTargetWithState(t)}isSupportedMediaElement(t){return["AUDIO","VIDEO"].includes(t.nodeName)}reset(){this.mediaMap.clear()}};function Il(e,t){if(e.nodeName!=="DIALOG"||e instanceof vr)return;let r=e,a=r.open,n=a&&r.matches("dialog:modal"),o=r.getAttribute("rr_open_mode"),i=typeof t?.attributes.open=="string"||typeof r.getAttribute("open")=="string",s=o==="modal";if(!(a&&!(n&&o==="non-modal"||!n&&s))){if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}a&&r.close(),i&&(s?r.showModal():r.show())}}function Ik(e,t){if(e.nodeName!=="DIALOG"||e instanceof vr)return;let r=e;if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}t.attributes.open===null&&(r.removeAttribute("open"),r.removeAttribute("rr_open_mode"))}var Mk=5*1e3,_k=hk,zy="[replayer]",Zf={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function Uy(e){return e.type==W.IncrementalSnapshot&&(e.data.source==U.TouchMove||e.data.source==U.MouseInteraction&&e.data.type==ye.TouchStart)}var Wl=class{constructor(t,r){if(R(this,"wrapper"),R(this,"iframe"),R(this,"UNSAFE_replayCanvas",!1),R(this,"service"),R(this,"speedService"),R(this,"config"),R(this,"usingVirtualDom",!1),R(this,"virtualDom",new Yn),R(this,"mouse"),R(this,"mouseTail",null),R(this,"tailPositions",[]),R(this,"emitter",_k()),R(this,"nextUserInteractionEvent"),R(this,"legacy_missingNodeRetryMap",{}),R(this,"cache",zv()),R(this,"imageMap",new Map),R(this,"canvasEventMap",new Map),R(this,"mirror",jy()),R(this,"styleMirror",new zl),R(this,"mediaManager"),R(this,"firstFullSnapshot",null),R(this,"newDocumentQueue",[]),R(this,"mousePos",null),R(this,"touchActive",null),R(this,"lastMouseDownEvent",null),R(this,"lastHoveredRootNode"),R(this,"lastSelectionData",null),R(this,"constructedStyleMutations",[]),R(this,"adoptedStyleSheets",[]),R(this,"handleResize",s=>{this.iframe.style.display="inherit";for(let l of[this.mouseTail,this.iframe])l&&(l.setAttribute("width",String(s.width)),l.setAttribute("height",String(s.height)))}),R(this,"applyEventsSynchronously",s=>{for(let l of s){switch(l.type){case W.DomContentLoaded:case W.Load:case W.Custom:continue;case W.FullSnapshot:case W.Meta:case W.Plugin:case W.IncrementalSnapshot:break}this.getCastFn(l,!0)()}}),R(this,"getCastFn",(s,l=!1)=>{let d;switch(s.type){case W.DomContentLoaded:case W.Load:break;case W.Custom:d=()=>{this.emitter.emit(ve.CustomEvent,s)};break;case W.Meta:d=()=>this.emitter.emit(ve.Resize,{width:s.data.width,height:s.data.height});break;case W.FullSnapshot:d=()=>{var f;if(this.firstFullSnapshot){if(this.firstFullSnapshot===s){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(s,l),(f=this.iframe.contentWindow)==null||f.scrollTo(s.data.initialOffset)};break;case W.IncrementalSnapshot:d=()=>{if(this.applyIncremental(s,l),!l&&(s===this.nextUserInteractionEvent&&(this.nextUserInteractionEvent=null,this.backToNormal()),this.config.skipInactive&&!this.nextUserInteractionEvent)){for(let f of this.service.state.context.events)if(!(f.timestamp<=s.timestamp)&&this.isUserInteraction(f)){f.delay-s.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=f);break}if(this.nextUserInteractionEvent){let f=this.nextUserInteractionEvent.delay-s.delay,c={speed:Math.min(Math.round(f/Mk),this.config.maxSpeed)};this.speedService.send({type:"FAST_FORWARD",payload:c}),this.emitter.emit(ve.SkipStart,c)}}};break}return()=>{d&&d();for(let c of this.config.plugins||[])c.handler&&c.handler(s,l,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:s}});let f=this.service.state.context.events.length-1;if(!this.config.liveMode&&s===this.service.state.context.events[f]){let c=()=>{f<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(ve.Finish))},p=50;s.type===W.IncrementalSnapshot&&s.data.source===U.MouseMove&&s.data.positions.length&&(p+=Math.max(0,-s.data.positions[0].timeOffset)),setTimeout(c,p)}this.emitter.emit(ve.EventCast,s)}}),!r?.liveMode&&t.length<2)throw new Error("Replayer need at least 2 events.");let a={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,inactivePeriodThreshold:10*1e3,showWarning:!0,showDebug:!1,blockClass:"rr-block",liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:Zf,useVirtualDom:!0,logger:console};this.config=Object.assign({},a,r),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(ve.Resize,this.handleResize),this.setupDom();for(let s of this.config.plugins||[])s.getMirror&&s.getMirror({nodeMirror:this.mirror});this.emitter.on(ve.Flush,()=>{if(this.usingVirtualDom){let s={mirror:this.mirror,applyCanvas:(l,d,u)=>{By({event:l,mutation:d,target:u,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(l,d)=>{l.source===U.StyleSheetRule?this.applyStyleSheetRule(l,d):l.source===U.StyleDeclaration&&this.applyStyleDeclaration(l,d)},afterAppend:(l,d)=>{for(let u of this.config.plugins||[])u.onBuild&&u.onBuild(l,{id:d,replayer:this})}};if(this.iframe.contentDocument)try{Fl(this.iframe.contentDocument,this.virtualDom,s,this.virtualDom.mirror)}catch(l){console.warn(l)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(let l in this.legacy_missingNodeRetryMap)try{let d=this.legacy_missingNodeRetryMap[l],u=Bl(d.node,this.mirror,this.virtualDom.mirror);Fl(u,d.node,s,this.virtualDom.mirror),d.node=u}catch(d){this.warn(d)}this.constructedStyleMutations.forEach(l=>{this.applyStyleSheetMutation(l)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(l=>{this.applyAdoptedStyleSheet(l)}),this.adoptedStyleSheets=[]}if(this.mousePos&&(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=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[s,l]=this.lastMouseDownEvent;s.dispatchEvent(l)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)}),this.emitter.on(ve.PlayBack,()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()});let n=new bp([],{speed:this.config.speed});this.service=vk({events:t.map(s=>r&&r.unpackFn?r.unpackFn(s):s).sort((s,l)=>s.timestamp-l.timestamp),timer:n,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(s=>{this.emitter.emit(ve.StateChange,{player:s})}),this.speedService=yk({normalSpeed:-1,timer:n}),this.speedService.start(),this.speedService.subscribe(s=>{this.emitter.emit(ve.StateChange,{speed:s})}),this.mediaManager=new Cp({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});let o=this.service.state.context.events.find(s=>s.type===W.Meta),i=this.service.state.context.events.find(s=>s.type===W.FullSnapshot);if(o){let{width:s,height:l}=o.data;setTimeout(()=>{this.emitter.emit(ve.Resize,{width:s,height:l})},0)}i&&setTimeout(()=>{var s;this.firstFullSnapshot||(this.firstFullSnapshot=i,this.rebuildFullSnapshot(i),(s=this.iframe.contentWindow)==null||s.scrollTo(i.data.initialOffset))},1),this.service.state.context.events.find(Uy)&&this.mouse.classList.add("touch-device")}get timer(){return this.service.state.context.timer}on(t,r){return this.emitter.on(t,r),this}off(t,r){return this.emitter.off(t,r),this}setConfig(t){Object.keys(t).forEach(r=>{t[r],this.config[r]=t[r]}),this.config.skipInactive||this.backToNormal(),typeof t.speed<"u"&&this.speedService.send({type:"SET_SPEED",payload:{speed:t.speed}}),typeof t.mouseTail<"u"&&(t.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 t=this.service.state.context.events[0],r=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:t.timestamp,endTime:r.timestamp,totalTime:r.timestamp-t.timestamp}}getCurrentTime(){return this.timer.timeOffset+this.getTimeOffset()}getTimeOffset(){let{baselineTime:t,events:r}=this.service.state.context;return t-r[0].timestamp}getMirror(){return this.mirror}play(t=0){var r,a;this.service.state.matches("paused")?this.service.send({type:"PLAY",payload:{timeOffset:t}}):(this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:t}})),(a=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||a.classList.remove("rrweb-paused"),this.emitter.emit(ve.Start)}pause(t){var r,a;t===void 0&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),typeof t=="number"&&(this.play(t),this.service.send({type:"PAUSE"})),(a=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||a.classList.add("rrweb-paused"),this.emitter.emit(ve.Pause)}resume(t=0){this.warn("The 'resume' was deprecated in 1.0. Please use 'play' method which has the same interface."),this.play(t),this.emitter.emit(ve.Resume)}destroy(){this.pause(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.config.root.removeChild(this.wrapper),this.emitter.emit(ve.Destroy)}startLive(t){this.service.send({type:"TO_LIVE",payload:{baselineTime:t}})}addEvent(t){let r=this.config.unpackFn?this.config.unpackFn(t):t;Uy(r)&&this.mouse.classList.add("touch-device"),Promise.resolve().then(()=>this.service.send({type:"ADD_EVENT",payload:{event:r}}))}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=zv()}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=jL({root:this.wrapper}),this.UNSAFE_replayCanvas=!1),this.iframe.style.display="none",this.disableInteract(),this.iframe.contentWindow&&this.iframe.contentDocument&&(gk(this.iframe.contentWindow,this.iframe.contentDocument),kw(this.iframe.contentWindow))}rebuildFullSnapshot(t,r=!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 a=[],n=new Set,o=(l,d)=>{if(l.nodeName==="DIALOG"&&n.add(l),this.collectIframeAndAttachDocument(a,l),this.mediaManager.isSupportedMediaElement(l)){let{events:u}=this.service.state.context;this.mediaManager.addMediaElements(l,t.timestamp-u[0].timestamp,this.mirror)}for(let u of this.config.plugins||[])u.onBuild&&u.onBuild(l,{id:d,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),WL(t.data.node,{doc:this.iframe.contentDocument,afterAppend:o,cache:this.cache,mirror:this.mirror,UNSAFE_allowUnprotectedRebuild:this.UNSAFE_replayCanvas}),o(this.iframe.contentDocument,t.data.node.id);for(let{mutationInQueue:l,builtNode:d}of a)this.attachDocumentToIframe(l,d),this.newDocumentQueue=this.newDocumentQueue.filter(u=>u!==l);let{documentElement:i,head:s}=this.iframe.contentDocument;this.insertStyleRules(i,s),n.forEach(l=>Il(l)),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(ve.FullsnapshotRebuilded,t),r||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(t,r){var a;let n=wk(this.config.blockClass).concat(this.config.insertStyleRules);if(this.config.pauseAnimation&&n.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),!!n.length)if(this.usingVirtualDom){let o=this.virtualDom.createElement("style");this.virtualDom.mirror.add(o,gw(o,this.virtualDom.unserializedId)),t.insertBefore(o,r),o.rules.push({source:U.StyleSheetRule,adds:n.map((i,s)=>({rule:i,index:s}))})}else{let o=document.createElement("style");t.insertBefore(o,r);for(let i=0;i<n.length;i++)(a=o.sheet)==null||a.insertRule(n[i],i)}}attachDocumentToIframe(t,r){let a=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,n=[],o=new Set,i=(s,l)=>{s.nodeName==="DIALOG"&&o.add(s),this.collectIframeAndAttachDocument(n,s);let d=a.getMeta(s);if(d?.type===Wr.Element&&d?.tagName.toUpperCase()==="HTML"){let{documentElement:u,head:f}=r.contentDocument;this.insertStyleRules(u,f)}if(!this.usingVirtualDom)for(let u of this.config.plugins||[])u.onBuild&&u.onBuild(s,{id:l,replayer:this})};os(t.node,{doc:r.contentDocument,mirror:a,hackCss:!0,skipChild:!1,afterAppend:i,cache:this.cache}),i(r.contentDocument,t.node.id);for(let{mutationInQueue:s,builtNode:l}of n)this.attachDocumentToIframe(s,l),this.newDocumentQueue=this.newDocumentQueue.filter(d=>d!==s);o.forEach(s=>Il(s))}collectIframeAndAttachDocument(t,r){if(ss(r,this.mirror)){let a=this.newDocumentQueue.find(n=>n.parentId===this.mirror.getId(r));a&&t.push({mutationInQueue:a,builtNode:r})}}waitForStylesheetLoad(){var t;let r=(t=this.iframe.contentDocument)==null?void 0:t.head;if(r){let a=new Set,n,o=this.service.state,i=()=>{o=this.service.state};this.emitter.on(ve.Start,i),this.emitter.on(ve.Pause,i);let s=()=>{this.emitter.off(ve.Start,i),this.emitter.off(ve.Pause,i)};r.querySelectorAll('link[rel="stylesheet"]').forEach(l=>{l.sheet||(a.add(l),l.addEventListener("load",()=>{a.delete(l),a.size===0&&n!==-1&&(o.matches("playing")&&this.play(this.getCurrentTime()),this.emitter.emit(ve.LoadStylesheetEnd),n&&clearTimeout(n),s())}))}),a.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(ve.LoadStylesheetStart),n=setTimeout(()=>{o.matches("playing")&&this.play(this.getCurrentTime()),n=-1,s()},this.config.loadTimeout))}}async preloadAllImages(){let t=[];for(let r of this.service.state.context.events)r.type===W.IncrementalSnapshot&&r.data.source===U.CanvasMutation&&(t.push(this.deserializeAndPreloadCanvasEvents(r.data,r)),("commands"in r.data?r.data.commands:[r.data]).forEach(n=>{this.preloadImages(n,r)}));return Promise.all(t)}preloadImages(t,r){if(t.property==="drawImage"&&typeof t.args[0]=="string"&&!this.imageMap.has(r)){let a=document.createElement("canvas"),n=a.getContext("2d"),o=n?.createImageData(a.width,a.height);n?.putImageData(o,0,0)}}async deserializeAndPreloadCanvasEvents(t,r){if(!this.canvasEventMap.has(r)){let a={isUnchanged:!0};if("commands"in t){let n=await Promise.all(t.commands.map(async o=>{let i=await Promise.all(o.args.map(wa(this.imageMap,null,a)));return{...o,args:i}}));a.isUnchanged===!1&&this.canvasEventMap.set(r,{...t,commands:n})}else{let n=await Promise.all(t.args.map(wa(this.imageMap,null,a)));a.isUnchanged===!1&&this.canvasEventMap.set(r,{...t,args:n})}}}applyIncremental(t,r){var a,n,o;let{data:i}=t;switch(i.source){case U.Mutation:{try{this.applyMutation(i,r)}catch(s){this.warn(`Exception in mutation ${s.message||s}`,i)}break}case U.Drag:case U.TouchMove:case U.MouseMove:if(r){let s=i.positions[i.positions.length-1];this.mousePos={x:s.x,y:s.y,id:s.id,debugData:i}}else i.positions.forEach(s=>{let l={doAction:()=>{this.moveAndHover(s.x,s.y,s.id,r,i)},delay:s.timeOffset+t.timestamp-this.service.state.context.baselineTime};this.timer.addAction(l)}),this.timer.addAction({doAction(){},delay:t.delay-((a=i.positions[0])==null?void 0:a.timeOffset)});break;case U.MouseInteraction:{if(i.id===-1)break;let s=new Event(Sa(ye[i.type])),l=this.mirror.getNode(i.id);if(!l)return this.debugNodeNotFound(i,i.id);this.emitter.emit(ve.MouseInteraction,{type:i.type,target:l});let{triggerFocus:d}=this.config;switch(i.type){case ye.Blur:"blur"in l&&l.blur();break;case ye.Focus:d&&l.focus&&l.focus({preventScroll:!0});break;case ye.Click:case ye.TouchStart:case ye.TouchEnd:case ye.MouseDown:case ye.MouseUp:r?(i.type===ye.TouchStart?this.touchActive=!0:i.type===ye.TouchEnd&&(this.touchActive=!1),i.type===ye.MouseDown?this.lastMouseDownEvent=[l,s]:i.type===ye.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:i.x||0,y:i.y||0,id:i.id,debugData:i}):(i.type===ye.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(i.x||0,i.y||0,i.id,r,i),i.type===ye.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):i.type===ye.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):i.type===ye.TouchEnd?this.mouse.classList.remove("touch-active"):l.dispatchEvent(s));break;case ye.TouchCancel:r?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:l.dispatchEvent(s)}break}case U.Scroll:{if(i.id===-1)break;if(this.usingVirtualDom){let s=this.virtualDom.mirror.getNode(i.id);if(!s)return this.debugNodeNotFound(i,i.id);s.scrollData=i;break}this.applyScroll(i,r);break}case U.ViewportResize:this.emitter.emit(ve.Resize,{width:i.width,height:i.height});break;case U.Input:{if(i.id===-1)break;if(this.usingVirtualDom){let s=this.virtualDom.mirror.getNode(i.id);if(!s)return this.debugNodeNotFound(i,i.id);s.inputData=i;break}this.applyInput(i);break}case U.MediaInteraction:{let s=this.usingVirtualDom?this.virtualDom.mirror.getNode(i.id):this.mirror.getNode(i.id);if(!s)return this.debugNodeNotFound(i,i.id);let l=s,{events:d}=this.service.state.context;this.mediaManager.mediaMutation({target:l,timeOffset:t.timestamp-d[0].timestamp,mutation:i});break}case U.StyleSheetRule:case U.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 U.CanvasMutation:{if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){let s=this.virtualDom.mirror.getNode(i.id);if(!s)return this.debugNodeNotFound(i,i.id);s.canvasMutations.push({event:t,mutation:i})}else{let s=this.mirror.getNode(i.id);if(!s)return this.debugNodeNotFound(i,i.id);By({event:t,mutation:i,target:s,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break}case U.Font:{try{let s=new FontFace(i.family,i.buffer?new Uint8Array(JSON.parse(i.fontSource)):i.fontSource,i.descriptors);(o=this.iframe.contentDocument)==null||o.fonts.add(s)}catch(s){this.warn(s)}break}case U.Selection:{if(r){this.lastSelectionData=i;break}this.applySelection(i);break}case U.AdoptedStyleSheet:{this.usingVirtualDom?this.adoptedStyleSheets.push(i):this.applyAdoptedStyleSheet(i);break}}}applyMutation(t,r){if(this.config.useVirtualDom&&!this.usingVirtualDom&&r&&(this.usingVirtualDom=!0,k1(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(let d in this.legacy_missingNodeRetryMap)try{let u=this.legacy_missingNodeRetryMap[d],f=hw(u.node,this.virtualDom,this.mirror);f&&(u.node=f)}catch(u){this.warn(u)}let a=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;t.removes=t.removes.filter(d=>a.getNode(d.id)?!0:(this.warnNodeNotFound(t,d.id),!1)),t.removes.forEach(d=>{var u;let f=a.getNode(d.id);if(!f)return;let c=a.getNode(d.parentId);if(!c)return this.warnNodeNotFound(t,d.parentId);if(d.isShadow&&Ha(c)&&(c=c.shadowRoot),a.removeNodeFromMap(f),c)try{c.removeChild(f),this.usingVirtualDom&&f.nodeName==="#text"&&c.nodeName==="STYLE"&&((u=c.rules)==null?void 0:u.length)>0&&(c.rules=[])}catch(p){if(p instanceof DOMException)this.warn("parent could not remove child in mutation",c,f,t);else throw p}});let n={...this.legacy_missingNodeRetryMap},o=[],i=d=>{let u=null;return d.nextId&&(u=a.getNode(d.nextId)),d.nextId!==null&&d.nextId!==void 0&&d.nextId!==-1&&!u},s=d=>{var u,f;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let c=a.getNode(d.parentId);if(!c)return d.node.type===Wr.Document?this.newDocumentQueue.push(d):o.push(d);d.node.isShadow&&(Ha(c)||c.attachShadow({mode:"open"}),c=c.shadowRoot);let p=null,h=null;if(d.previousId&&(p=a.getNode(d.previousId)),d.nextId&&(h=a.getNode(d.nextId)),i(d))return o.push(d);if(d.node.rootId&&!a.getNode(d.node.rootId))return;let m=d.node.rootId?a.getNode(d.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(ss(c,a)){this.attachDocumentToIframe(d,c);return}let S=(v,b)=>{if(!this.usingVirtualDom){Il(v);for(let w of this.config.plugins||[])w.onBuild&&w.onBuild(v,{id:b,replayer:this})}},g=os(d.node,{doc:m,mirror:a,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:S});if(d.previousId===-1||d.nextId===-1){n[d.node.id]={node:g,mutation:d};return}let x=a.getMeta(c);if(x&&x.type===Wr.Element&&d.node.type===Wr.Text){let v=Array.isArray(c.childNodes)?c.childNodes:Array.from(c.childNodes);if(x.tagName==="textarea")for(let b of v)b.nodeType===c.TEXT_NODE&&c.removeChild(b);else if(x.tagName==="style"&&v.length===1)for(let b of v)b.nodeType===c.TEXT_NODE&&!a.hasNode(b)&&(g.textContent=b.textContent,c.removeChild(b))}else if(x?.type===Wr.Document){let v=c;d.node.type===Wr.DocumentType&&((u=v.childNodes[0])==null?void 0:u.nodeType)===Node.DOCUMENT_TYPE_NODE&&v.removeChild(v.childNodes[0]),g.nodeName==="HTML"&&v.documentElement&&v.removeChild(v.documentElement)}if(p&&p.nextSibling&&p.nextSibling.parentNode?c.insertBefore(g,p.nextSibling):h&&h.parentNode?c.contains(h)?c.insertBefore(g,h):c.insertBefore(g,null):c.appendChild(g),S(g,d.node.id),this.usingVirtualDom&&g.nodeName==="#text"&&c.nodeName==="STYLE"&&((f=c.rules)==null?void 0:f.length)>0&&(c.rules=[]),ss(g,this.mirror)){let v=this.mirror.getId(g),b=this.newDocumentQueue.find(w=>w.parentId===v);b&&(this.attachDocumentToIframe(b,g),this.newDocumentQueue=this.newDocumentQueue.filter(w=>w!==b))}(d.previousId||d.nextId)&&this.legacy_resolveMissingNode(n,c,g,d)};t.adds.forEach(d=>{s(d)});let l=Date.now();for(;o.length;){let d=q1(o);if(o.length=0,Date.now()-l>500){this.warn("Timeout in the loop, please check the resolve tree data:",d);break}for(let u of d)a.getNode(u.value.parentId)?Iw(u,c=>{s(c)}):this.debug("Drop resolve tree since there is no parent for the root node.",u)}Object.keys(n).length&&Object.assign(this.legacy_missingNodeRetryMap,n),$1(t.texts).forEach(d=>{var u;let f=a.getNode(d.id);if(!f)return t.removes.find(p=>p.id===d.id)?void 0:this.warnNodeNotFound(t,d.id);let c=f.parentElement;if(d.value&&c&&c.tagName==="STYLE"?f.textContent=Ql(d.value,this.cache):f.textContent=d.value,this.usingVirtualDom){let p=f.parentNode;((u=p?.rules)==null?void 0:u.length)>0&&(p.rules=[])}}),t.attributes.forEach(d=>{var u;let f=a.getNode(d.id);if(!f)return t.removes.find(c=>c.id===d.id)?void 0:this.warnNodeNotFound(t,d.id);for(let c in d.attributes)if(typeof c=="string"){let p=d.attributes[c];if(p===null)f.removeAttribute(c),c==="open"&&Ik(f,d);else if(typeof p=="string")try{if(c==="_cssText"&&(f.nodeName==="LINK"||f.nodeName==="STYLE"))try{let h=a.getMeta(f),m=os({...h,attributes:{...h.attributes,...d.attributes}},{doc:f.ownerDocument,mirror:a,skipChild:!0,hackCss:!0,cache:this.cache});Object.assign(h.attributes,d.attributes);let S=f.nextSibling,g=f.parentNode;if(m&&g){g.removeChild(f),g.insertBefore(m,S),a.replace(d.id,m);break}}catch{}if(c==="value"&&f.nodeName==="TEXTAREA"){let h=f;h.childNodes.forEach(S=>h.removeChild(S));let m=(u=f.ownerDocument)==null?void 0:u.createTextNode(p);m&&h.appendChild(m)}else f.setAttribute(c,p);c==="rr_open_mode"&&f.nodeName==="DIALOG"&&Il(f,d)}catch(h){this.warn("An error occurred may due to the checkout feature.",h)}else if(c==="style"){let h=p,m=f;for(let S in h)if(h[S]===!1)m.style.removeProperty(S);else if(h[S]instanceof Array){let g=h[S];m.style.setProperty(S,g[0],g[1])}else{let g=h[S];m.style.setProperty(S,g)}}}})}applyScroll(t,r){var a,n;let o=this.mirror.getNode(t.id);if(!o)return this.debugNodeNotFound(t,t.id);let i=this.mirror.getMeta(o);if(o===this.iframe.contentDocument)(a=this.iframe.contentWindow)==null||a.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else if(i?.type===Wr.Document)(n=o.defaultView)==null||n.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else try{o.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"})}catch{}}applyInput(t){let r=this.mirror.getNode(t.id);if(!r)return this.debugNodeNotFound(t,t.id);try{r.checked=t.isChecked,r.value=t.text}catch{}}applySelection(t){try{let r=new Set,a=t.ranges.map(({start:n,startOffset:o,end:i,endOffset:s})=>{let l=this.mirror.getNode(n),d=this.mirror.getNode(i);if(!l||!d)return;let u=new Range;u.setStart(l,o),u.setEnd(d,s);let f=l.ownerDocument,c=f?.getSelection();return c&&r.add(c),{range:u,selection:c}});r.forEach(n=>n.removeAllRanges()),a.forEach(n=>{var o;return n&&((o=n.selection)==null?void 0:o.addRange(n.range))})}catch{}}applyStyleSheetMutation(t){var r;let a=null;t.styleId?a=this.styleMirror.getStyle(t.styleId):t.id&&(a=((r=this.mirror.getNode(t.id))==null?void 0:r.sheet)||null),a&&(t.source===U.StyleSheetRule?this.applyStyleSheetRule(t,a):t.source===U.StyleDeclaration&&this.applyStyleDeclaration(t,a))}applyStyleSheetRule(t,r){var a,n,o,i;if((a=t.adds)==null||a.forEach(({rule:s,index:l})=>{try{if(Array.isArray(l)){let{positions:d,index:u}=Sy(l),f=ts(r.cssRules,d);f?.insertRule(s,u)}else{let d=l===void 0?void 0:Math.min(l,r.cssRules.length);r?.insertRule(s,d)}}catch{}}),(n=t.removes)==null||n.forEach(({index:s})=>{try{if(Array.isArray(s)){let{positions:l,index:d}=Sy(s),u=ts(r.cssRules,l);u?.deleteRule(d||0)}else r?.deleteRule(s)}catch{}}),typeof t.replace=="string")try{(o=r.replace)==null||o.call(r,t.replace)}catch{}if(typeof t.replaceSync=="string")try{(i=r.replaceSync)==null||i.call(r,t.replaceSync)}catch{}}applyStyleDeclaration(t,r){if(t.set){let a=ts(r.rules,t.index);a?.style&&a.style.setProperty(t.set.property,t.set.value,t.set.priority)}if(t.remove){let a=ts(r.rules,t.index);a?.style&&a.style.removeProperty(t.remove.property)}}applyAdoptedStyleSheet(t){var r;let a=this.mirror.getNode(t.id);if(!a)return;(r=t.styles)==null||r.forEach(s=>{var l;let d=null,u=null;if(Ha(a)?u=((l=a.ownerDocument)==null?void 0:l.defaultView)||null:a.nodeName==="#document"&&(u=a.defaultView),!!u)try{d=new u.CSSStyleSheet,this.styleMirror.add(d,s.styleId),this.applyStyleSheetRule({source:U.StyleSheetRule,adds:s.rules},d)}catch{}});let n=10,o=0,i=(s,l)=>{let d=l.map(u=>this.styleMirror.getStyle(u)).filter(u=>u!==null);Ha(s)?s.shadowRoot.adoptedStyleSheets=d:s.nodeName==="#document"&&(s.adoptedStyleSheets=d),d.length!==l.length&&o<n&&(setTimeout(()=>i(s,l),0+100*o),o++)};i(a,t.styleIds)}legacy_resolveMissingNode(t,r,a,n){let{previousId:o,nextId:i}=n,s=o&&t[o],l=i&&t[i];if(s){let{node:d,mutation:u}=s;r.insertBefore(d,a),delete t[u.node.id],delete this.legacy_missingNodeRetryMap[u.node.id],(u.previousId||u.nextId)&&this.legacy_resolveMissingNode(t,r,d,u)}if(l){let{node:d,mutation:u}=l;r.insertBefore(d,a.nextSibling),delete t[u.node.id],delete this.legacy_missingNodeRetryMap[u.node.id],(u.previousId||u.nextId)&&this.legacy_resolveMissingNode(t,r,d,u)}}moveAndHover(t,r,a,n,o){let i=this.mirror.getNode(a);if(!i)return this.debugNodeNotFound(o,a);let s=_w(i,this.iframe),l=t*s.absoluteScale+s.x,d=r*s.absoluteScale+s.y;this.mouse.style.left=`${l}px`,this.mouse.style.top=`${d}px`,n||this.drawMouseTail({x:l,y:d}),this.hoverElements(i)}drawMouseTail(t){if(!this.mouseTail)return;let{lineCap:r,lineWidth:a,strokeStyle:n,duration:o}=this.config.mouseTail===!0?Zf:Object.assign({},Zf,this.config.mouseTail),i=()=>{if(!this.mouseTail)return;let s=this.mouseTail.getContext("2d");!s||!this.tailPositions.length||(s.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),s.beginPath(),s.lineWidth=a,s.lineCap=r,s.strokeStyle=n,s.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach(l=>s.lineTo(l.x,l.y)),s.stroke())};this.tailPositions.push(t),i(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(s=>s!==t),i()},o/this.speedService.state.context.timer.speed)}hoverElements(t){var r;(r=this.lastHoveredRootNode||this.iframe.contentDocument)==null||r.querySelectorAll(".\\:hover").forEach(n=>{n.classList.remove(":hover")}),this.lastHoveredRootNode=t.getRootNode();let a=t;for(;a;)a.classList&&a.classList.add(":hover"),a=a.parentElement}isUserInteraction(t){return t.type!==W.IncrementalSnapshot?!1:t.data.source>U.Mutation&&t.data.source<=U.Input}backToNormal(){this.nextUserInteractionEvent=null,!this.speedService.state.matches("normal")&&(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(ve.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))}warnNodeNotFound(t,r){this.warn(`Node with id '${r}' not found. `,t)}warnCanvasMutationFailed(t,r){this.warn("Has error on canvas update",r,"canvas mutation:",t)}debugNodeNotFound(t,r){this.debug(`Node with id '${r}' not found. `,t)}warn(...t){this.config.showWarning&&this.config.logger.warn(zy,...t)}debug(...t){this.config.showDebug&&this.config.logger.log(zy,...t)}},{addCustomEvent:qM}=Xa,{freezePage:$M}=Xa,{takeFullSnapshot:HM}=Xa;var It=F(fe(),1);var nu=F(fe());var Ww=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),au=(...e)=>e.filter((t,r,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===r).join(" ").trim();var hs=F(fe());var jw={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Vw=(0,hs.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:n="",children:o,iconNode:i,...s},l)=>(0,hs.createElement)("svg",{ref:l,...jw,width:t,height:t,stroke:e,strokeWidth:a?Number(r)*24/Number(t):r,className:au("lucide",n),...s},[...i.map(([d,u])=>(0,hs.createElement)(d,u)),...Array.isArray(o)?o:[o]]));var q=(e,t)=>{let r=(0,nu.forwardRef)(({className:a,...n},o)=>(0,nu.createElement)(Vw,{ref:o,iconNode:t,className:au(`lucide-${Ww(e)}`,a),...n}));return r.displayName=`${e}`,r};var Zn=q("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var Ka=q("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var Qa=q("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var Ya=q("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var gs=q("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);var xs=q("Command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]);var vs=q("Disc",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);var Ja=q("FastForward",[["polygon",{points:"13 19 22 12 13 5 13 19",key:"587y9g"}],["polygon",{points:"2 19 11 12 2 5 2 19",key:"3pweh0"}]]);var ys=q("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);var ws=q("Keyboard",[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]);var ba=q("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);var Ss=q("Magnet",[["path",{d:"m6 15-4-4 6.75-6.77a7.79 7.79 0 0 1 11 11L13 22l-4-4 6.39-6.36a2.14 2.14 0 0 0-3-3L6 15",key:"1i3lhw"}],["path",{d:"m5 8 4 4",key:"j6kj7e"}],["path",{d:"m12 15 4 4",key:"lnac28"}]]);var Za=q("Maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]);var en=q("Minimize",[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]]);var bs=q("MonitorPlay",[["path",{d:"M10 7.75a.75.75 0 0 1 1.142-.638l3.664 2.249a.75.75 0 0 1 0 1.278l-3.664 2.25a.75.75 0 0 1-1.142-.64z",key:"1pctta"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",key:"x3v2xh"}]]);var Cs=q("MousePointer2",[["path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z",key:"edeuup"}]]);var Ls=q("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);var tn=q("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);var ks=q("Repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]);var Is=q("Rewind",[["polygon",{points:"11 19 2 12 11 5 11 19",key:"14yba5"}],["polygon",{points:"22 19 13 12 22 5 22 19",key:"1pi1cj"}]]);var Ms=q("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);var _s=q("Scissors",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]);var Rs=q("SkipBack",[["polygon",{points:"19 20 9 12 19 4 19 20",key:"o2sva"}],["line",{x1:"5",x2:"5",y1:"19",y2:"5",key:"1ocqjk"}]]);var Es=q("SkipForward",[["polygon",{points:"5 4 15 12 5 20 5 4",key:"16p6eg"}],["line",{x1:"19",x2:"19",y1:"5",y2:"19",key:"futhcm"}]]);var Zt=q("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);var Ps=q("StepBack",[["line",{x1:"18",x2:"18",y1:"20",y2:"4",key:"cun8e5"}],["polygon",{points:"14,20 4,12 14,4",key:"ypakod"}]]);var Ts=q("StepForward",[["line",{x1:"6",x2:"6",y1:"4",y2:"20",key:"fy8qot"}],["polygon",{points:"10,4 20,12 10,20",key:"1mc1pf"}]]);var Ns=q("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);var As=q("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);var Ds=q("VolumeX",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]);var rn=q("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var an=q("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);var Bs=F(le(),1),$=F(le(),1),gu=F(fe(),1);var Dt=F(le(),1),gS=F(fe(),1);var Ne=F(le(),1),xS=F(fe(),1),lu=F(le(),1),ar=F(fe(),1);var vS=F(fe(),1);var xu=F(fe(),1),J=F(le(),1),SS=F(fe(),1);var et=F(le(),1);var bS=F(fe(),1);var Xe=F(le(),1),Ca=F(le(),1),vu=F(fe(),1);var Fs=F(le(),1),Kp=F(le(),1),Qp=F(le(),1),uu=F(fe(),1);var Ke=F(fe(),1);var ka=F(fe(),1),Me=F(le(),1),zs=F(fe(),1);var xt=F(le(),1),Nt=F(le(),1),Z=F(le(),1),MS=F(fe(),1),ao=F(fe(),1),yr=F(le(),1),ro=F(fe(),1),La=F(le(),1);var Q=F(le(),1),Jp=F(fe(),1),Ht=F(le(),1);var At=F(le(),1),pu=F(le(),1),Us=F(fe(),1),to=F(le(),1),Ze=F(le(),1),rr=F(fe(),1),tr=F(le(),1),er=F(le(),1),yu=F(fe(),1);var je=F(le(),1),qs=F(fe(),1);var RS=F(le(),1),lS=[.5,1,1.5,2,4,8],iu=["stage","balanced","debug"];function Zp(e){if(!e||!e.length)return[...iu];let t=new Set;for(let r of e)iu.includes(r)&&t.add(r);return t.size?[...t]:[...iu]}var du=["chapters","interaction","console","network","error","task","vitals"],st={speed:"obsrviq.player.speed",autoSkip:"obsrviq.player.autoSkip",autoSkim:"obsrviq.player.autoSkim",showCursor:"obsrviq.player.showCursor",mode:"obsrviq.player.mode",laneState:"obsrviq.player.laneState",snap:"obsrviq.player.snap"};function nn(e,t,r){try{let a=localStorage.getItem(e);return a==null?t:r(a)}catch{return t}}function Xr(e,t){try{localStorage.setItem(e,t)}catch{}}function Rk(){let e={};for(let t of du)e[t]={collapsed:t==="console"||t==="vitals",solo:!1,mute:!1};return e}function Ek(){let e=Rk();try{let t=localStorage.getItem(st.laneState);if(!t)return e;let r=JSON.parse(t);for(let a of du){let n=r[a];n&&(e[a]={collapsed:!!n.collapsed,solo:!!n.solo,mute:!!n.mute})}return e}catch{return e}}function Pk(){let e=null,t=null;return Zx((r,a)=>{let n=()=>{e&&(clearInterval(e),e=null)},o=()=>{n();let s=performance.now();e=setInterval(()=>{let l=performance.now(),d=(l-s)*a().speed;s=l;let u=a().currentTime+d;u>=a().durationMs?(r({currentTime:a().durationMs}),a()._onFinish()):a()._onTime(u)},33.333333333333336)},i=s=>{let l=a(),d=l.events.find(f=>f.id===s);if(d)return d.t;let u=l.markers.find(f=>f.ref===s);return u?u.t:null};return{status:"idle",durationMs:0,currentTime:0,bufferedMs:0,speed:nn(st.speed,1,s=>Number(s)),autoSkip:nn(st.autoSkip,!1,s=>s==="true"),autoSkim:nn(st.autoSkip,!1,s=>s==="true")?!1:nn(st.autoSkim,!0,s=>s==="true"),isSkimming:!1,isSkipping:!1,lastSkipMs:0,loop:!1,clipStart:null,clipEnd:null,clipLoop:!1,autoplayNext:!1,showCursor:nn(st.showCursor,!0,s=>s==="true"),activePanel:"console",events:[],markers:[],summary:null,offset:0,hasReplay:!1,error:null,errorNotFound:!1,loadProgress:0,live:!1,following:!1,pendingSeek:null,controller:null,_covers:null,_moreForward:null,focusMode:nn(st.mode,"balanced",s=>s==="stage"||s==="debug"?s:"balanced"),allowedModes:[...iu],selectedEventId:null,selectionRange:null,zoomStack:[],laneState:Ek(),hover:null,snap:nn(st.snap,!0,s=>s==="true"),feedFilter:"all",paletteOpen:!1,toRelative:s=>{let l=s-a().offset;return Math.max(0,Math.min(a().durationMs,l))},play:()=>{let s=a();if(s.status==="error")return;s.clipEnd!=null&&s.currentTime>=s.clipEnd&&r({clipStart:null,clipEnd:null,clipLoop:!1});let l=s.clipEnd==null&&s.currentTime>=s.durationMs-20?0:s.currentTime;s.controller?s.controller.play(l):(l===0&&r({currentTime:0}),o()),r({status:"playing"})},pause:()=>{let s=a();s.controller?s.controller.pause():n(),r({status:"paused"})},toggle:()=>a().status==="playing"?a().pause():a().play(),restart:()=>{a().seek(0),a().play()},seek:s=>{let l=a(),d=Math.max(0,Math.min(l.durationMs,s)),u=l._covers?l._covers(d):d<=l.bufferedMs+1;!l.controller||u?(l.controller&&l.controller.seek(d),r({currentTime:d,pendingSeek:null,status:l.status==="ended"||l.status==="buffering"?"paused":l.status,following:!1})):r({currentTime:d,pendingSeek:d,status:"buffering",following:!1})},step:s=>{let l=a(),d=l.controller?.mutationTimes??[];if(!d.length){a().seek(l.currentTime+s*200);return}let u=l.currentTime,f=s>0?d.find(c=>c>u+1):[...d].reverse().find(c=>c<u-1);f!=null&&a().seek(f)},jumpEvent:s=>{let l=a(),d=l.markers.map(c=>l.toRelative(c.t)).sort((c,p)=>c-p);if(!d.length)return;let u=l.currentTime,f=s>0?d.find(c=>c>u+1):[...d].reverse().find(c=>c<u-1);f!=null&&a().seek(f)},setSpeed:s=>{a().controller?.setSpeed(s),Xr(st.speed,String(s)),r({speed:s})},setPanel:s=>r({activePanel:s}),setAutoSkip:s=>{a().controller?.setAutoSkip(s),Xr(st.autoSkip,String(s)),s&&a().autoSkim&&(a().controller?.setAutoSkim(!1),Xr(st.autoSkim,"false"),r({autoSkim:!1,isSkimming:!1})),r({autoSkip:s,isSkipping:s?a().isSkipping:!1})},setAutoSkim:s=>{a().controller?.setAutoSkim(s),Xr(st.autoSkim,String(s)),s&&a().autoSkip&&(a().controller?.setAutoSkip(!1),Xr(st.autoSkip,"false"),r({autoSkip:!1,isSkipping:!1})),r({autoSkim:s,isSkimming:s?a().isSkimming:!1})},setLoop:s=>r({loop:s}),setClip:(s,l,d=!1)=>r({clipStart:s,clipEnd:l,clipLoop:d}),setAutoplayNext:s=>r({autoplayNext:s}),setShowCursor:s=>{a().controller?.setShowCursor(s),Xr(st.showCursor,String(s)),r({showCursor:s})},setFollowing:s=>{let l=a();s&&l.controller&&(l.controller.seek(l.durationMs),r({currentTime:l.durationMs})),r({following:s})},setFocusMode:s=>{a().allowedModes.includes(s)&&(Xr(st.mode,s),r({focusMode:s}))},setAllowedModes:s=>{let l=Zp(s),d=l.includes(a().focusMode)?a().focusMode:l[0];r({allowedModes:l,focusMode:d})},select:s=>{if(r({selectedEventId:s}),s!=null){let l=i(s);l!=null&&a().seek(a().toRelative(l))}},selectAndSeek:s=>{let l=i(s);r({selectedEventId:s}),l!=null&&a().seek(a().toRelative(l))},brush:(s,l)=>{if(l==null){r({selectionRange:null});return}let d=Math.min(s,l),u=Math.max(s,l);r({selectionRange:[d,u]})},zoomTo:(s,l)=>{let d=a(),u=Math.max(0,Math.min(s,l)),f=Math.min(d.offset+d.durationMs,Math.max(s,l));f-u<50||r({zoomStack:[...d.zoomStack,[u,f]]})},zoomOutTo:s=>{let l=a();r({zoomStack:l.zoomStack.slice(0,Math.max(0,s))})},setHover:s=>r({hover:s==null?null:{t:s}}),toggleSnap:()=>{let s=!a().snap;Xr(st.snap,String(s)),r({snap:s})},toggleLane:(s,l)=>{let d=a(),u=d.laneState[s],f={...d.laneState,[s]:{...u,[l]:!u[l]}};Xr(st.laneState,JSON.stringify(f)),r({laneState:f})},setFeedFilter:s=>r({feedFilter:s}),nextProblem:s=>{let l=a(),d={error:5,network:4,rage:3,dead:2,nav:1,conversion:1,ai:0},u=l.markers.filter(p=>(d[p.kind]??0)>=2).map(p=>({rel:l.toRelative(p.t),m:p})).sort((p,h)=>p.rel-h.rel);if(!u.length)return;let f=l.currentTime,c=s>0?u.find(p=>p.rel>f+1):[...u].reverse().find(p=>p.rel<f-1);c&&(r({selectedEventId:c.m.ref}),a().seek(c.rel))},walkLane:(s,l)=>{let d=a(),u=d.events.filter(p=>Tk(s,p)).map(p=>({rel:d.toRelative(p.t),id:p.id})).sort((p,h)=>p.rel-h.rel);if(!u.length)return;let f=d.currentTime,c=l>0?u.find(p=>p.rel>f+1):[...u].reverse().find(p=>p.rel<f-1);c&&(r({selectedEventId:c.id}),a().seek(c.rel))},openPalette:s=>r({paletteOpen:s}),rewindToCause:s=>{let l=a(),d=i(s);if(d==null)return;let u=l.toRelative(d);a().seek(Math.max(0,u-5e3))},_attachController:s=>{let l=a().durationMs;r({controller:s,durationMs:Math.max(l,s.meta.totalTime),bufferedMs:s.meta.totalTime,status:"paused"})},_detachController:()=>{n();let s=a().controller;s&&s.destroy(),r({controller:null})},_setLoaderProbes:(s,l)=>r({_covers:s,_moreForward:l}),_onTime:s=>{let l=a();if(l.clipEnd!=null&&s>=l.clipEnd&&l.status==="playing"){l.clipLoop?a().seek(l.clipStart??0):(l.controller?l.controller.pause(l.clipEnd):n(),r({currentTime:l.clipEnd,status:"paused"}));return}r({currentTime:s})},_onSkip:s=>{r({isSkipping:!0,lastSkipMs:s}),t&&clearTimeout(t),t=setTimeout(()=>r({isSkipping:!1}),1100)},_onFinish:()=>{let s=a();s.live&&s.following?r({status:"paused",currentTime:s.durationMs}):s.clipEnd!=null&&s.currentTime>=s.clipEnd-1?s.clipLoop?(a().seek(s.clipStart??0),a().play()):(n(),r({currentTime:s.clipEnd,status:"paused"})):s.controller&&(s._moreForward?s._moreForward(s.currentTime):s.currentTime<s.durationMs-1)?r({status:"buffering"}):s.loop?a().restart():(n(),r({status:"ended"}))},_setData:s=>r(s)}})}function Tk(e,t){switch(e){case"network":return t.type==="network";case"error":return t.type==="error"||t.type==="console"&&t.level==="error";case"console":return t.type==="console";case"vitals":return t.type==="perf";case"task":return t.type==="custom"&&/^(.+):(started|ended)$/.test(t.name??"");case"interaction":return t.type==="custom"&&!/^(.+):(started|ended)$/.test(t.name??"")&&!["_tag","identify","metadata"].includes(t.name??"");case"chapters":return t.type==="custom"&&["navigation","pageview"].includes(t.name??"");default:return!1}}var dS=(0,mu.createContext)(null);function Nk({store:e,children:t}){return(0,uS.jsx)(dS.Provider,{value:e,children:t})}function em(){let e=(0,mu.useContext)(dS);if(!e)throw new Error("usePlayer must be used within <ReplayPlayer>");return e}function _(e){return ev(em(),e)}var fS=(0,hu.createContext)(null);function Ak({value:e,children:t}){return(0,cS.jsx)(fS.Provider,{value:e,children:t})}function Dk(){return(0,hu.useContext)(fS)}async function*Ok(e,t,r,a){let n={"content-type":"application/json"};t.token?n.authorization=`Bearer ${t.token}`:t.apiKey&&(n.authorization=`Bearer ${t.apiKey}`,n["x-obsrviq-key"]=t.apiKey);let o=await fetch(e,{method:"POST",headers:n,body:JSON.stringify(r),signal:a});if(!o.ok||!o.body)throw new Error(`${o.status} ${o.statusText}`);let i=o.body.getReader(),s=new TextDecoder,l="";for(;;){let{done:d,value:u}=await i.read();if(d)break;l+=s.decode(u,{stream:!0});let f=l.split(`
|
|
136
|
+
`,By=typeof self<"u"&&self.Blob&&new Blob([Vw],{type:"text/javascript;charset=utf-8"});function Sk(e){let t;try{if(t=By&&(self.URL||self.webkitURL).createObjectURL(By),!t)throw"";let r=new Worker(t,{name:e?.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),r}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(Vw),{name:e?.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}var kp=class{constructor(t){R(this,"pendingCanvasMutations",new Map),R(this,"rafStamps",{latestId:0,invokeId:null}),R(this,"mirror"),R(this,"mutationCb"),R(this,"resetObservers"),R(this,"frozen",!1),R(this,"locked",!1),R(this,"processMutation",(i,d)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(i)||this.pendingCanvasMutations.set(i,[]),this.pendingCanvasMutations.get(i).push(d)});let{sampling:r="all",win:n,blockClass:a,blockSelector:o,recordCanvas:s,dataURLOptions:l}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,s&&r==="all"&&this.initCanvasMutationObserver(n,a,o),s&&typeof r=="number"&&this.initCanvasFPSObserver(r,n,a,o,{dataURLOptions:l})}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(t,r,n,a,o){let s=Oy(r,n,a,!0),l=new Map,i=new Sk;i.onmessage=h=>{let{id:m}=h.data;if(l.set(m,!1),!("base64"in h.data))return;let{base64:y,type:g,width:x,height:v}=h.data;this.mutationCb({id:m,type:Vr["2D"],commands:[{property:"clearRect",args:[0,0,x,v]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:y}],type:g}]},0,0]}]})};let d=1e3/t,u=0,p,c=()=>{let h=[];return r.document.querySelectorAll("canvas").forEach(m=>{It(m,n,a,!0)||h.push(m)}),h},f=h=>{if(u&&h-u<d){p=requestAnimationFrame(f);return}u=h,c().forEach(async m=>{var y;let g=this.mirror.getId(m);if(l.get(g)||m.width===0||m.height===0)return;if(l.set(g,!0),["webgl","webgl2"].includes(m.__context)){let v=m.getContext(m.__context);((y=v?.getContextAttributes())==null?void 0:y.preserveDrawingBuffer)===!1&&v.clear(v.COLOR_BUFFER_BIT)}let x=await createImageBitmap(m);i.postMessage({id:g,bitmap:x,width:m.width,height:m.height,dataURLOptions:o.dataURLOptions},[x])}),p=requestAnimationFrame(f)};p=requestAnimationFrame(f),this.resetObservers=()=>{s(),cancelAnimationFrame(p)}}initCanvasMutationObserver(t,r,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let a=Oy(t,r,n,!1),o=yk(this.processMutation.bind(this),t,r,n),s=bk(this.processMutation.bind(this),t,r,n);this.resetObservers=()=>{a(),o(),s()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{let n=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;let n=this.pendingCanvasMutations.get(t);if(!n||r===-1)return;let a=n.map(s=>{let{type:l,...i}=s;return i}),{type:o}=n[0];this.mutationCb({id:r,type:o,commands:a}),this.pendingCanvasMutations.delete(t)}},Ip=class{constructor(t){R(this,"trackedLinkElements",new WeakSet),R(this,"mutationCb"),R(this,"adoptedStyleSheetCb"),R(this,"styleMirror",new Hi),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,r){if(t.length===0)return;let n={id:r,styleIds:[]},a=[];for(let o of t){let s;this.styleMirror.has(o)?s=this.styleMirror.getId(o):(s=this.styleMirror.add(o),a.push({styleId:s,rules:Array.from(o.rules||CSSRule,(l,i)=>({rule:Jy(l,o.href),index:i}))})),n.styleIds.push(s)}a.length>0&&(n.styles=a),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}},_p=class{constructor(){R(this,"nodeMap",new WeakMap),R(this,"active",!1)}inOtherBuffer(t,r){let n=this.nodeMap.get(t);return n&&Array.from(n).some(a=>a!==r)}add(t,r){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))}destroy(){}},We,Pi,np,Vi=!1;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=((uv=e.contentWindow)==null?void 0:uv.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var xr=Zy();function Jn(e={}){let{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:a="rr-block",blockSelector:o=null,ignoreClass:s="rr-ignore",ignoreSelector:l=null,maskTextClass:i="rr-mask",maskTextSelector:d=null,inlineStylesheet:u=!0,maskAllInputs:p,maskInputOptions:c,slimDOMOptions:f,maskInputFn:h,maskTextFn:m,hooks:y,packFn:g,sampling:x={},dataURLOptions:v={},mousemoveWait:S,recordDOM:b=!0,recordCanvas:w=!1,recordCrossOriginIframes:C=!1,recordAfter:L=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:k=!1,collectFonts:_=!1,inlineImages:N=!1,plugins:P,keepIframeSrcFn:I=()=>!1,ignoreCSSAttributes:re=new Set([]),errorHandler:_e}=e;tk(_e);let se=C?window.parent===window:!0,j=!1;if(!se)try{window.parent.document&&(j=!1)}catch{j=!0}if(se&&!t)throw new Error("emit function is required");if(!se&&!j)return()=>{};S!==void 0&&x.mousemove===void 0&&(x.mousemove=S),xr.reset();let ve=p===!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}:c!==void 0?c:{password:!0},Me=aw(f);Tw();let Le,Ce=0,br=K=>{for(let Re of P||[])Re.eventProcessor&&(K=Re.eventProcessor(K));return g&&!j&&(K=g(K)),K};We=(K,Re)=>{var ue;let Ee=K;if(Ee.timestamp=ms(),(ue=Xn[0])!=null&&ue.isFrozen()&&Ee.type!==V.FullSnapshot&&!(Ee.type===V.IncrementalSnapshot&&Ee.data.source===$.Mutation)&&Xn.forEach(ut=>ut.unfreeze()),se)t?.(br(Ee),Re);else if(j){let ut={type:"rrweb",event:br(Ee),origin:window.location.origin,isCheckout:Re};window.parent.postMessage(ut,"*")}if(Ee.type===V.FullSnapshot)Le=Ee,Ce=0;else if(Ee.type===V.IncrementalSnapshot){if(Ee.data.source===$.Mutation&&Ee.data.isAttachIframe)return;Ce++;let ut=n&&Ce>=n,ge=r&&Ee.timestamp-Le.timestamp>r;(ut||ge)&&Pi(!0)}};let T=K=>{We({type:V.IncrementalSnapshot,data:{source:$.Mutation,...K}})},yt=K=>We({type:V.IncrementalSnapshot,data:{source:$.Scroll,...K}}),wt=K=>We({type:V.IncrementalSnapshot,data:{source:$.CanvasMutation,...K}}),En=K=>We({type:V.IncrementalSnapshot,data:{source:$.AdoptedStyleSheet,...K}}),Ye=new Ip({mutationCb:T,adoptedStyleSheetCb:En}),it=new Cp({mirror:xr,mutationCb:T,stylesheetManager:Ye,recordCrossOriginIframes:C,wrappedEmit:We});for(let K of P||[])K.getMirror&&K.getMirror({nodeMirror:xr,crossOriginIframeMirror:it.crossOriginIframeMirror,crossOriginIframeStyleMirror:it.crossOriginIframeStyleMirror});let Sr=new _p;np=new kp({recordCanvas:w,mutationCb:wt,win:window,blockClass:a,blockSelector:o,mirror:xr,sampling:x.canvas,dataURLOptions:v});let Cr=new Lp({mutationCb:T,scrollCb:yt,bypassOptions:{blockClass:a,blockSelector:o,maskTextClass:i,maskTextSelector:d,inlineStylesheet:u,maskInputOptions:ve,dataURLOptions:v,maskTextFn:m,maskInputFn:h,recordCanvas:w,inlineImages:N,sampling:x,slimDOMOptions:Me,iframeManager:it,stylesheetManager:Ye,canvasManager:np,keepIframeSrcFn:I,processedNodeManager:Sr},mirror:xr});Pi=(K=!1)=>{if(!b)return;We({type:V.Meta,data:{href:window.location.href,width:Ew(),height:Rw()}},K),Ye.reset(),Cr.init(),Xn.forEach(ue=>ue.lock());let Re=IC(document,{mirror:xr,blockClass:a,blockSelector:o,maskTextClass:i,maskTextSelector:d,inlineStylesheet:u,maskAllInputs:ve,maskTextFn:m,maskInputFn:h,slimDOM:Me,dataURLOptions:v,recordCanvas:w,inlineImages:N,onSerialize:ue=>{ds(ue,xr)&&it.addIframe(ue),Dw(ue,xr)&&Ye.trackLinkElement(ue),Gn(ue)&&Cr.addShadowRoot(le.shadowRoot(ue),document)},onIframeLoad:(ue,Ee)=>{it.attachIframe(ue,Ee),Cr.observeAttachShadow(ue)},onStylesheetLoad:(ue,Ee)=>{Ye.attachLinkElement(ue,Ee)},keepIframeSrcFn:I});if(!Re)return console.warn("Failed to snapshot the document");We({type:V.FullSnapshot,data:{node:Re,initialOffset:Mw(window)}},K),Xn.forEach(ue=>ue.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Ye.adoptStyleSheets(document.adoptedStyleSheets,xr.getId(document))};try{let K=[],Re=Ee=>{var ut;return he(hk)({mutationCb:T,mousemoveCb:(ge,fa)=>We({type:V.IncrementalSnapshot,data:{source:fa,positions:ge}}),mouseInteractionCb:ge=>We({type:V.IncrementalSnapshot,data:{source:$.MouseInteraction,...ge}}),scrollCb:yt,viewportResizeCb:ge=>We({type:V.IncrementalSnapshot,data:{source:$.ViewportResize,...ge}}),inputCb:ge=>We({type:V.IncrementalSnapshot,data:{source:$.Input,...ge}}),mediaInteractionCb:ge=>We({type:V.IncrementalSnapshot,data:{source:$.MediaInteraction,...ge}}),styleSheetRuleCb:ge=>We({type:V.IncrementalSnapshot,data:{source:$.StyleSheetRule,...ge}}),styleDeclarationCb:ge=>We({type:V.IncrementalSnapshot,data:{source:$.StyleDeclaration,...ge}}),canvasMutationCb:wt,fontCb:ge=>We({type:V.IncrementalSnapshot,data:{source:$.Font,...ge}}),selectionCb:ge=>{We({type:V.IncrementalSnapshot,data:{source:$.Selection,...ge}})},customElementCb:ge=>{We({type:V.IncrementalSnapshot,data:{source:$.CustomElement,...ge}})},blockClass:a,ignoreClass:s,ignoreSelector:l,maskTextClass:i,maskTextSelector:d,maskInputOptions:ve,inlineStylesheet:u,sampling:x,recordDOM:b,recordCanvas:w,inlineImages:N,userTriggeredOnInput:k,collectFonts:_,doc:Ee,maskInputFn:h,maskTextFn:m,keepIframeSrcFn:I,blockSelector:o,slimDOMOptions:Me,dataURLOptions:v,mirror:xr,iframeManager:it,stylesheetManager:Ye,shadowDomManager:Cr,processedNodeManager:Sr,canvasManager:np,ignoreCSSAttributes:re,plugins:((ut=P?.filter(ge=>ge.observer))==null?void 0:ut.map(ge=>({observer:ge.observer,options:ge.options,callback:fa=>We({type:V.Plugin,data:{plugin:ge.name,payload:fa}})})))||[]},y)};it.addLoadListener(Ee=>{try{K.push(Re(Ee.contentDocument))}catch(ut){console.warn(ut)}});let ue=()=>{Pi(),K.push(Re(document)),Vi=!0};return["interactive","complete"].includes(document.readyState)?ue():(K.push(kt("DOMContentLoaded",()=>{We({type:V.DomContentLoaded,data:{}}),L==="DOMContentLoaded"&&ue()})),K.push(kt("load",()=>{We({type:V.Load,data:{}}),L==="load"&&ue()},window))),()=>{K.forEach(Ee=>{try{Ee()}catch(ut){String(ut).toLowerCase().includes("cross-origin")||console.warn(ut)}}),Sr.destroy(),Vi=!1,rk()}}catch(K){console.warn(K)}}Jn.addCustomEvent=(e,t)=>{if(!Vi)throw new Error("please add custom event after start recording");We({type:V.Custom,data:{tag:e,payload:t}})};Jn.freezePage=()=>{Xn.forEach(e=>e.freeze())};Jn.takeFullSnapshot=e=>{if(!Vi)throw new Error("please take full snapshot after start recording");Pi(e)};Jn.mirror=xr;function Ck(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(a){a(r)}),(n=e.get("*"))&&n.slice().map(function(a){a(t,r)})}}}function Lk(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;let r=e.HTMLElement||e.Element,n=468,a={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||i,scrollIntoView:r.prototype.scrollIntoView},o=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function s(g){let x=["MSIE ","Trident/","Edge/"];return new RegExp(x.join("|")).test(g)}let l=s(e.navigator.userAgent)?1:0;function i(g,x){this.scrollLeft=g,this.scrollTop=x}function d(g){return .5*(1-Math.cos(Math.PI*g))}function u(g){if(g===null||typeof g!="object"||g.behavior===void 0||g.behavior==="auto"||g.behavior==="instant")return!0;if(typeof g=="object"&&g.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+g.behavior+" is not a valid value for enumeration ScrollBehavior.")}function p(g,x){if(x==="Y")return g.clientHeight+l<g.scrollHeight;if(x==="X")return g.clientWidth+l<g.scrollWidth}function c(g,x){let v=e.getComputedStyle(g,null)["overflow"+x];return v==="auto"||v==="scroll"}function f(g){let x=p(g,"Y")&&c(g,"Y"),v=p(g,"X")&&c(g,"X");return x||v}function h(g){for(;g!==t.body&&f(g)===!1;)g=g.parentNode||g.host;return g}function m(g){let x=o(),v,S,b,w=(x-g.startTime)/n;w=w>1?1:w,v=d(w),S=g.startX+(g.x-g.startX)*v,b=g.startY+(g.y-g.startY)*v,g.method.call(g.scrollable,S,b),(S!==g.x||b!==g.y)&&e.requestAnimationFrame(m.bind(e,g))}function y(g,x,v){let S,b,w,C,L=o();g===t.body?(S=e,b=e.scrollX||e.pageXOffset,w=e.scrollY||e.pageYOffset,C=a.scroll):(S=g,b=g.scrollLeft,w=g.scrollTop,C=i),m({scrollable:S,method:C,startTime:L,startX:b,startY:w,x,y:v})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(u(arguments[0])===!0){a.scroll.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:e.scrollY||e.pageYOffset);return}y.call(e,t.body,arguments[0].left!==void 0?~~arguments[0].left:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:e.scrollY||e.pageYOffset)}},e.scrollBy=function(){if(arguments[0]!==void 0){if(u(arguments[0])){a.scrollBy.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}y.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},r.prototype.scroll=r.prototype.scrollTo=function(){if(arguments[0]===void 0)return;if(u(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");a.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}let g=arguments[0].left,x=arguments[0].top;y.call(this,this,typeof g>"u"?this.scrollLeft:~~g,typeof x>"u"?this.scrollTop:~~x)},r.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(u(arguments[0])===!0){a.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},r.prototype.scrollIntoView=function(){if(u(arguments[0])===!0){a.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}let g=h(this),x=g.getBoundingClientRect(),v=this.getBoundingClientRect();g!==t.body?(y.call(this,g,g.scrollLeft+v.left-x.left,g.scrollTop+v.top-x.top),e.getComputedStyle(g).position!=="fixed"&&e.scrollBy({left:x.left,top:x.top,behavior:"smooth"})):e.scrollBy({left:v.left,top:v.top,behavior:"smooth"})}}var Mp=class{constructor(t=[],r){R(this,"timeOffset",0),R(this,"speed"),R(this,"actions"),R(this,"raf",null),R(this,"lastTimestamp"),this.actions=t,this.speed=r.speed}addAction(t){let r=this.raf===!0;if(!this.actions.length||this.actions[this.actions.length-1].delay<=t.delay)this.actions.push(t);else{let n=this.findActionIndex(t);this.actions.splice(n,0,t)}r&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}rafCheck(){let t=performance.now();for(this.timeOffset+=(t-this.lastTimestamp)*this.speed,this.lastTimestamp=t;this.actions.length;){let r=this.actions[0];if(this.timeOffset>=r.delay)this.actions.shift(),r.doAction();else break}this.actions.length>0?this.raf=requestAnimationFrame(this.rafCheck.bind(this)):this.raf=!0}clear(){this.raf&&(this.raf!==!0&&cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(t){this.speed=t}isActive(){return this.raf!==null}findActionIndex(t){let r=0,n=this.actions.length-1;for(;r<=n;){let a=Math.floor((r+n)/2);if(this.actions[a].delay<t.delay)r=a+1;else if(this.actions[a].delay>t.delay)n=a-1;else return a+1}return r}};function zy(e,t){if(e.type===V.IncrementalSnapshot&&e.data.source===$.MouseMove&&e.data.positions&&e.data.positions.length){let r=e.data.positions[0].timeOffset,n=e.timestamp+r;return e.delay=n-t,n-t}return e.delay=e.timestamp-t,e.delay}function Uy(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),s=[];try{for(;(t===void 0||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return s}var Za;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Za||(Za={}));var Gw={type:"xstate.init"};function ap(e){return e===void 0?[]:[].concat(e)}function Ka(e){return{type:"xstate.assign",assignment:e}}function qy(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 Gi(e){return function(t){return e===t}}function Xw(e){return typeof e=="string"?{type:e}:e}function $y(e,t){return{value:e,context:t,actions:[],changed:!1,matches:Gi(e)}}function Hy(e,t,r){var n=t,a=!1;return[e.filter(function(o){if(o.type==="xstate.assign"){a=!0;var s=Object.assign({},n);return typeof o.assignment=="function"?s=o.assignment(n,r):Object.keys(o.assignment).forEach(function(l){s[l]=typeof o.assignment[l]=="function"?o.assignment[l](n,r):o.assignment[l]}),n=s,!1}return!0}),n,a]}function Kw(e,t){t===void 0&&(t={});var r=Uy(Hy(ap(e.states[e.initial].entry).map(function(s){return qy(s,t.actions)}),e.context,Gw),2),n=r[0],a=r[1],o={config:e,_options:t,initialState:{value:e.initial,actions:n,context:a,matches:Gi(e.initial)},transition:function(s,l){var i,d,u=typeof s=="string"?{value:s,context:e.context}:s,p=u.value,c=u.context,f=Xw(l),h=e.states[p];if(h.on){var m=ap(h.on[f.type]);try{for(var y=(function(j){var ve=typeof Symbol=="function"&&Symbol.iterator,Me=ve&&j[ve],Le=0;if(Me)return Me.call(j);if(j&&typeof j.length=="number")return{next:function(){return j&&Le>=j.length&&(j=void 0),{value:j&&j[Le++],done:!j}}};throw new TypeError(ve?"Object is not iterable.":"Symbol.iterator is not defined.")})(m),g=y.next();!g.done;g=y.next()){var x=g.value;if(x===void 0)return $y(p,c);var v=typeof x=="string"?{target:x}:x,S=v.target,b=v.actions,w=b===void 0?[]:b,C=v.cond,L=C===void 0?function(){return!0}:C,k=S===void 0,_=S??p,N=e.states[_];if(L(c,f)){var P=Uy(Hy((k?ap(w):[].concat(h.exit,w,N.entry).filter(function(j){return j})).map(function(j){return qy(j,o._options.actions)}),c,f),3),I=P[0],re=P[1],_e=P[2],se=S??p;return{value:se,context:re,actions:I,changed:S!==p||I.length>0||_e,matches:Gi(se)}}}}catch(j){i={error:j}}finally{try{g&&!g.done&&(d=y.return)&&d.call(y)}finally{if(i)throw i.error}}}return $y(p,c)}};return o}var jy=function(e,t){return e.actions.forEach(function(r){var n=r.exec;return n&&n(e.context,t)})};function Qw(e){var t=e.initialState,r=Za.NotStarted,n=new Set,a={_machine:e,send:function(o){r===Za.Running&&(t=e.transition(t,o),jy(t,Xw(o)),n.forEach(function(s){return s(t)}))},subscribe:function(o){return n.add(o),o(t),{unsubscribe:function(){return n.delete(o)}}},start:function(o){if(o){var s=typeof o=="object"?o:{context:e.config.context,value:o};t={value:s.value,actions:[],context:s.context,matches:Gi(s.value)}}return r=Za.Running,jy(t,Gw),a},stop:function(){return r=Za.Stopped,n.clear(),a},get state(){return t},get status(){return r}};return a}function kk(e,t){for(let r=e.length-1;r>=0;r--){let n=e[r];if(n.type===V.Meta&&n.timestamp<=t)return e.slice(r)}return e}function Ik(e,{getCastFn:t,applyEventsSynchronously:r,emitter:n}){let a=Kw({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:Ka({lastPlayedEvent:(o,s)=>s.type==="CAST_EVENT"?s.payload.event:o.lastPlayedEvent}),recordTimeOffset:Ka((o,s)=>{let l=o.timeOffset;return"payload"in s&&"timeOffset"in s.payload&&(l=s.payload.timeOffset),{...o,timeOffset:l,baselineTime:o.events[0].timestamp+l}}),play(o){var s;let{timer:l,events:i,baselineTime:d,lastPlayedEvent:u}=o;l.clear();for(let h of i)zy(h,d);let p=kk(i,d),c=u?.timestamp;u?.type===V.IncrementalSnapshot&&u.data.source===$.MouseMove&&(c=u.timestamp+((s=u.data.positions[0])==null?void 0:s.timeOffset)),d<(c||0)&&n.emit(be.PlayBack);let f=new Array;for(let h of p)if(!(c&&c<d&&(h.timestamp<=c||h===u)))if(h.timestamp<d)f.push(h);else{let m=t(h,!1);l.addAction({doAction:()=>{m()},delay:h.delay})}r(f),n.emit(be.Flush),l.start()},pause(o){o.timer.clear()},resetLastPlayedEvent:Ka(o=>({...o,lastPlayedEvent:null})),startLive:Ka({baselineTime:(o,s)=>(o.timer.start(),s.type==="TO_LIVE"&&s.payload.baselineTime?s.payload.baselineTime:Date.now())}),addEvent:Ka((o,s)=>{let{baselineTime:l,timer:i,events:d}=o;if(s.type==="ADD_EVENT"){let{event:u}=s.payload;zy(u,l);let p=d.length-1;if(!d[p]||d[p].timestamp<=u.timestamp)d.push(u);else{let h=-1,m=0;for(;m<=p;){let y=Math.floor((m+p)/2);d[y].timestamp<=u.timestamp?m=y+1:p=y-1}h===-1&&(h=m),d.splice(h,0,u)}let c=u.timestamp<l,f=t(u,c);c?f():i.isActive()&&i.addAction({doAction:()=>{f()},delay:u.delay})}return{...o,events:d}})}});return Qw(a)}function _k(e){let t=Kw({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:(r,n)=>{"payload"in n&&r.timer.setSpeed(n.payload.speed)},recordSpeed:Ka({normalSpeed:r=>r.timer.speed}),restoreSpeed:r=>{r.timer.setSpeed(r.normalSpeed)}}});return Qw(t)}var Mk=e=>[`.${e} { background: currentColor }`,"noscript { display: none !important; }"],Wy=new Map;function Yw(e,t){let r=Wy.get(e);return r||(r=new Map,Wy.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}function Cn(e,t,r){return async n=>{if(n&&typeof n=="object"&&"rr_type"in n)if(r&&(r.isUnchanged=!1),n.rr_type==="ImageBitmap"&&"args"in n){let a=await Cn(e,t,r)(n.args);return await createImageBitmap.apply(null,a)}else if("index"in n){if(r||t===null)return n;let{rr_type:a,index:o}=n;return Yw(t,a)[o]}else if("args"in n){let{rr_type:a,args:o}=n,s=window[a];return new s(...await Promise.all(o.map(Cn(e,t,r))))}else{if("base64"in n)return xk(n.base64);if("src"in n){let a=e.get(n.src);if(a)return a;{let o=new Image;return o.src=n.src,e.set(n.src,o),o}}else if("data"in n&&n.rr_type==="Blob"){let a=await Promise.all(n.data.map(Cn(e,t,r)));return new Blob(a,{type:n.type})}}else if(Array.isArray(n))return await Promise.all(n.map(Cn(e,t,r)));return n}}function Rk(e,t){try{return t===Vr.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch{return null}}var Ek=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function Nk(e,t){if(!t?.constructor)return;let{name:r}=t.constructor;if(!Ek.includes(r))return;let n=Yw(e,r);n.includes(t)||n.push(t)}async function Pk({mutation:e,target:t,type:r,imageMap:n,errorHandler:a}){try{let o=Rk(t,r);if(!o)return;if(e.setter){o[e.property]=e.args[0];return}let s=o[e.property],l=await Promise.all(e.args.map(Cn(n,o))),i=s.apply(o,l);Nk(o,i);let d=!1}catch(o){a(e,o)}}async function Tk({event:e,mutations:t,target:r,imageMap:n,errorHandler:a}){let o=r.getContext("2d");if(!o){a(t[0],new Error("Canvas context is null"));return}let s=t.map(async i=>Promise.all(i.args.map(Cn(n,o))));(await Promise.all(s)).forEach((i,d)=>{let u=t[d];try{if(u.setter){o[u.property]=u.args[0];return}let p=o[u.property];u.property==="drawImage"&&typeof u.args[0]=="string"?(n.get(e),p.apply(o,u.args)):p.apply(o,i)}catch(p){a(u,p)}})}async function Vy({event:e,mutation:t,target:r,imageMap:n,canvasEventMap:a,errorHandler:o}){try{let s=a.get(e)||t,l="commands"in s?s.commands:[s];if([Vr.WebGL,Vr.WebGL2].includes(t.type)){for(let i=0;i<l.length;i++){let d=l[i];await Pk({mutation:d,type:t.type,target:r,imageMap:n,errorHandler:o})}return}await Tk({event:e,mutations:l,target:r,imageMap:n,errorHandler:o})}catch(s){o(t,s)}}var Rp=class{constructor(t){R(this,"mediaMap",new Map),R(this,"warn"),R(this,"service"),R(this,"speedService"),R(this,"emitter"),R(this,"getCurrentTime"),R(this,"metadataCallbackMap",new Map),this.warn=t.warn,this.service=t.service,this.speedService=t.speedService,this.emitter=t.emitter,this.getCurrentTime=t.getCurrentTime,this.emitter.on(be.Start,this.start.bind(this)),this.emitter.on(be.SkipStart,this.start.bind(this)),this.emitter.on(be.Pause,this.pause.bind(this)),this.emitter.on(be.Finish,this.pause.bind(this)),this.speedService.subscribe(()=>{this.syncAllMediaElements()})}syncAllMediaElements(t={pause:!1}){this.mediaMap.forEach((r,n)=>{this.syncTargetWithState(n),t.pause&&n.pause()})}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:t,target:r,mediaState:n}){if(n.isPlaying){let o=(t-n.lastInteractionTimeOffset)/1e3*n.playbackRate,s="duration"in r&&r.duration;if(Number.isNaN(s)){this.waitForMetadata(r);return}let l=n.currentTimeAtLastInteraction+o;r.loop&&s!==!1&&(l=l%s),r.currentTime=l}else r.pause(),r.currentTime=n.currentTimeAtLastInteraction}waitForMetadata(t){if(this.metadataCallbackMap.has(t)||!("addEventListener"in t))return;let r=()=>{this.metadataCallbackMap.delete(t);let n=this.mediaMap.get(t);n&&this.seekTo({time:this.getCurrentTime(),target:t,mediaState:n})};this.metadataCallbackMap.set(t,r),t.addEventListener("loadedmetadata",r,{once:!0})}getMediaStateFromMutation({target:t,timeOffset:r,mutation:n}){let a=this.mediaMap.get(t),{type:o,playbackRate:s,currentTime:l,muted:i,volume:d,loop:u}=n;return{isPlaying:o===Sn.Play||o!==Sn.Pause&&(a?.isPlaying||t.getAttribute("autoplay")!==null),currentTimeAtLastInteraction:l??a?.currentTimeAtLastInteraction??0,lastInteractionTimeOffset:r,playbackRate:s??a?.playbackRate??1,volume:d??a?.volume??1,muted:i??a?.muted??t.getAttribute("muted")===null,loop:u??a?.loop??t.getAttribute("loop")===null}}syncTargetWithState(t){let r=this.mediaMap.get(t);if(!r)return;let{muted:n,loop:a,volume:o,isPlaying:s}=r,l=this.service.state.matches("paused"),i=r.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:t,mediaState:r}),t.volume!==o&&(t.volume=o),t.muted=n,t.loop=a,t.playbackRate!==i&&(t.playbackRate=i),s&&!l?t.play():t.pause()}catch(d){this.warn(`Failed to replay media interactions: ${d.message||d}`)}}addMediaElements(t,r,n){if(!["AUDIO","VIDEO"].includes(t.nodeName))return;let a=t,o=n.getMeta(a);if(!o||!("attributes"in o))return;let s=this.service.state.matches("paused"),l=o.attributes,i=!1;l.rr_mediaState?i=l.rr_mediaState==="played":i=a.getAttribute("autoplay")!==null,i&&s&&a.pause();let d=1;typeof l.rr_mediaPlaybackRate=="number"&&(d=l.rr_mediaPlaybackRate);let u=!1;typeof l.rr_mediaMuted=="boolean"?u=l.rr_mediaMuted:u=a.getAttribute("muted")!==null;let p=!1;typeof l.rr_mediaLoop=="boolean"?p=l.rr_mediaLoop:p=a.getAttribute("loop")!==null;let c=1;typeof l.rr_mediaVolume=="number"&&(c=l.rr_mediaVolume);let f=0;typeof l.rr_mediaCurrentTime=="number"&&(f=l.rr_mediaCurrentTime),this.mediaMap.set(a,{isPlaying:i,currentTimeAtLastInteraction:f,lastInteractionTimeOffset:r,playbackRate:d,volume:c,muted:u,loop:p}),this.syncTargetWithState(a)}mediaMutation({target:t,timeOffset:r,mutation:n}){this.mediaMap.set(t,this.getMediaStateFromMutation({target:t,timeOffset:r,mutation:n})),this.syncTargetWithState(t)}isSupportedMediaElement(t){return["AUDIO","VIDEO"].includes(t.nodeName)}reset(){this.mediaMap.clear()}};function Ei(e,t){if(e.nodeName!=="DIALOG"||e instanceof wr)return;let r=e,n=r.open,a=n&&r.matches("dialog:modal"),o=r.getAttribute("rr_open_mode"),s=typeof t?.attributes.open=="string"||typeof r.getAttribute("open")=="string",l=o==="modal";if(!(n&&!(a&&o==="non-modal"||!a&&l))){if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}n&&r.close(),s&&(l?r.showModal():r.show())}}function Ak(e,t){if(e.nodeName!=="DIALOG"||e instanceof wr)return;let r=e;if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}t.attributes.open===null&&(r.removeAttribute("open"),r.removeAttribute("rr_open_mode"))}var Dk=5*1e3,Ok=Ck,Gy="[replayer]",op={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function Xy(e){return e.type==V.IncrementalSnapshot&&(e.data.source==$.TouchMove||e.data.source==$.MouseInteraction&&e.data.type==Se.TouchStart)}var Xi=class{constructor(t,r){if(R(this,"wrapper"),R(this,"iframe"),R(this,"UNSAFE_replayCanvas",!1),R(this,"service"),R(this,"speedService"),R(this,"config"),R(this,"usingVirtualDom",!1),R(this,"virtualDom",new to),R(this,"mouse"),R(this,"mouseTail",null),R(this,"tailPositions",[]),R(this,"emitter",Ok()),R(this,"nextUserInteractionEvent"),R(this,"legacy_missingNodeRetryMap",{}),R(this,"cache",Gv()),R(this,"imageMap",new Map),R(this,"canvasEventMap",new Map),R(this,"mirror",Zy()),R(this,"styleMirror",new Hi),R(this,"mediaManager"),R(this,"firstFullSnapshot",null),R(this,"newDocumentQueue",[]),R(this,"mousePos",null),R(this,"touchActive",null),R(this,"lastMouseDownEvent",null),R(this,"lastHoveredRootNode"),R(this,"lastSelectionData",null),R(this,"constructedStyleMutations",[]),R(this,"adoptedStyleSheets",[]),R(this,"handleResize",l=>{this.iframe.style.display="inherit";for(let i of[this.mouseTail,this.iframe])i&&(i.setAttribute("width",String(l.width)),i.setAttribute("height",String(l.height)))}),R(this,"applyEventsSynchronously",l=>{for(let i of l){switch(i.type){case V.DomContentLoaded:case V.Load:case V.Custom:continue;case V.FullSnapshot:case V.Meta:case V.Plugin:case V.IncrementalSnapshot:break}this.getCastFn(i,!0)()}}),R(this,"getCastFn",(l,i=!1)=>{let d;switch(l.type){case V.DomContentLoaded:case V.Load:break;case V.Custom:d=()=>{this.emitter.emit(be.CustomEvent,l)};break;case V.Meta:d=()=>this.emitter.emit(be.Resize,{width:l.data.width,height:l.data.height});break;case V.FullSnapshot:d=()=>{var p;if(this.firstFullSnapshot){if(this.firstFullSnapshot===l){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(l,i),(p=this.iframe.contentWindow)==null||p.scrollTo(l.data.initialOffset)};break;case V.IncrementalSnapshot:d=()=>{if(this.applyIncremental(l,i),!i&&(l===this.nextUserInteractionEvent&&(this.nextUserInteractionEvent=null,this.backToNormal()),this.config.skipInactive&&!this.nextUserInteractionEvent)){for(let p of this.service.state.context.events)if(!(p.timestamp<=l.timestamp)&&this.isUserInteraction(p)){p.delay-l.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=p);break}if(this.nextUserInteractionEvent){let p=this.nextUserInteractionEvent.delay-l.delay,c={speed:Math.min(Math.round(p/Dk),this.config.maxSpeed)};this.speedService.send({type:"FAST_FORWARD",payload:c}),this.emitter.emit(be.SkipStart,c)}}};break}return()=>{d&&d();for(let c of this.config.plugins||[])c.handler&&c.handler(l,i,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:l}});let p=this.service.state.context.events.length-1;if(!this.config.liveMode&&l===this.service.state.context.events[p]){let c=()=>{p<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(be.Finish))},f=50;l.type===V.IncrementalSnapshot&&l.data.source===$.MouseMove&&l.data.positions.length&&(f+=Math.max(0,-l.data.positions[0].timeOffset)),setTimeout(c,f)}this.emitter.emit(be.EventCast,l)}}),!r?.liveMode&&t.length<2)throw new Error("Replayer need at least 2 events.");let n={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,inactivePeriodThreshold:10*1e3,showWarning:!0,showDebug:!1,blockClass:"rr-block",liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:op,useVirtualDom:!0,logger:console};this.config=Object.assign({},n,r),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(be.Resize,this.handleResize),this.setupDom();for(let l of this.config.plugins||[])l.getMirror&&l.getMirror({nodeMirror:this.mirror});this.emitter.on(be.Flush,()=>{if(this.usingVirtualDom){let l={mirror:this.mirror,applyCanvas:(i,d,u)=>{Vy({event:i,mutation:d,target:u,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(i,d)=>{i.source===$.StyleSheetRule?this.applyStyleSheetRule(i,d):i.source===$.StyleDeclaration&&this.applyStyleDeclaration(i,d)},afterAppend:(i,d)=>{for(let u of this.config.plugins||[])u.onBuild&&u.onBuild(i,{id:d,replayer:this})}};if(this.iframe.contentDocument)try{qi(this.iframe.contentDocument,this.virtualDom,l,this.virtualDom.mirror)}catch(i){console.warn(i)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(let i in this.legacy_missingNodeRetryMap)try{let d=this.legacy_missingNodeRetryMap[i],u=$i(d.node,this.mirror,this.virtualDom.mirror);qi(u,d.node,l,this.virtualDom.mirror),d.node=u}catch(d){this.warn(d)}this.constructedStyleMutations.forEach(i=>{this.applyStyleSheetMutation(i)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(i=>{this.applyAdoptedStyleSheet(i)}),this.adoptedStyleSheets=[]}if(this.mousePos&&(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=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[l,i]=this.lastMouseDownEvent;l.dispatchEvent(i)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)}),this.emitter.on(be.PlayBack,()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()});let a=new Mp([],{speed:this.config.speed});this.service=Ik({events:t.map(l=>r&&r.unpackFn?r.unpackFn(l):l).sort((l,i)=>l.timestamp-i.timestamp),timer:a,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(l=>{this.emitter.emit(be.StateChange,{player:l})}),this.speedService=_k({normalSpeed:-1,timer:a}),this.speedService.start(),this.speedService.subscribe(l=>{this.emitter.emit(be.StateChange,{speed:l})}),this.mediaManager=new Rp({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});let o=this.service.state.context.events.find(l=>l.type===V.Meta),s=this.service.state.context.events.find(l=>l.type===V.FullSnapshot);if(o){let{width:l,height:i}=o.data;setTimeout(()=>{this.emitter.emit(be.Resize,{width:l,height:i})},0)}s&&setTimeout(()=>{var l;this.firstFullSnapshot||(this.firstFullSnapshot=s,this.rebuildFullSnapshot(s),(l=this.iframe.contentWindow)==null||l.scrollTo(s.data.initialOffset))},1),this.service.state.context.events.find(Xy)&&this.mouse.classList.add("touch-device")}get timer(){return this.service.state.context.timer}on(t,r){return this.emitter.on(t,r),this}off(t,r){return this.emitter.off(t,r),this}setConfig(t){Object.keys(t).forEach(r=>{t[r],this.config[r]=t[r]}),this.config.skipInactive||this.backToNormal(),typeof t.speed<"u"&&this.speedService.send({type:"SET_SPEED",payload:{speed:t.speed}}),typeof t.mouseTail<"u"&&(t.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 t=this.service.state.context.events[0],r=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:t.timestamp,endTime:r.timestamp,totalTime:r.timestamp-t.timestamp}}getCurrentTime(){return this.timer.timeOffset+this.getTimeOffset()}getTimeOffset(){let{baselineTime:t,events:r}=this.service.state.context;return t-r[0].timestamp}getMirror(){return this.mirror}play(t=0){var r,n;this.service.state.matches("paused")?this.service.send({type:"PLAY",payload:{timeOffset:t}}):(this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:t}})),(n=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||n.classList.remove("rrweb-paused"),this.emitter.emit(be.Start)}pause(t){var r,n;t===void 0&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),typeof t=="number"&&(this.play(t),this.service.send({type:"PAUSE"})),(n=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||n.classList.add("rrweb-paused"),this.emitter.emit(be.Pause)}resume(t=0){this.warn("The 'resume' was deprecated in 1.0. Please use 'play' method which has the same interface."),this.play(t),this.emitter.emit(be.Resume)}destroy(){this.pause(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.config.root.removeChild(this.wrapper),this.emitter.emit(be.Destroy)}startLive(t){this.service.send({type:"TO_LIVE",payload:{baselineTime:t}})}addEvent(t){let r=this.config.unpackFn?this.config.unpackFn(t):t;Xy(r)&&this.mouse.classList.add("touch-device"),Promise.resolve().then(()=>this.service.send({type:"ADD_EVENT",payload:{event:r}}))}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=Gv()}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=ZC({root:this.wrapper}),this.UNSAFE_replayCanvas=!1),this.iframe.style.display="none",this.disableInteract(),this.iframe.contentWindow&&this.iframe.contentDocument&&(Lk(this.iframe.contentWindow,this.iframe.contentDocument),Tw(this.iframe.contentWindow))}rebuildFullSnapshot(t,r=!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=[],a=new Set,o=(i,d)=>{if(i.nodeName==="DIALOG"&&a.add(i),this.collectIframeAndAttachDocument(n,i),this.mediaManager.isSupportedMediaElement(i)){let{events:u}=this.service.state.context;this.mediaManager.addMediaElements(i,t.timestamp-u[0].timestamp,this.mirror)}for(let u of this.config.plugins||[])u.onBuild&&u.onBuild(i,{id:d,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),JC(t.data.node,{doc:this.iframe.contentDocument,afterAppend:o,cache:this.cache,mirror:this.mirror,UNSAFE_allowUnprotectedRebuild:this.UNSAFE_replayCanvas}),o(this.iframe.contentDocument,t.data.node.id);for(let{mutationInQueue:i,builtNode:d}of n)this.attachDocumentToIframe(i,d),this.newDocumentQueue=this.newDocumentQueue.filter(u=>u!==i);let{documentElement:s,head:l}=this.iframe.contentDocument;this.insertStyleRules(s,l),a.forEach(i=>Ei(i)),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(be.FullsnapshotRebuilded,t),r||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(t,r){var n;let a=Mk(this.config.blockClass).concat(this.config.insertStyleRules);if(this.config.pauseAnimation&&a.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),!!a.length)if(this.usingVirtualDom){let o=this.virtualDom.createElement("style");this.virtualDom.mirror.add(o,Lw(o,this.virtualDom.unserializedId)),t.insertBefore(o,r),o.rules.push({source:$.StyleSheetRule,adds:a.map((s,l)=>({rule:s,index:l}))})}else{let o=document.createElement("style");t.insertBefore(o,r);for(let s=0;s<a.length;s++)(n=o.sheet)==null||n.insertRule(a[s],s)}}attachDocumentToIframe(t,r){let n=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,a=[],o=new Set,s=(l,i)=>{l.nodeName==="DIALOG"&&o.add(l),this.collectIframeAndAttachDocument(a,l);let d=n.getMeta(l);if(d?.type===Wr.Element&&d?.tagName.toUpperCase()==="HTML"){let{documentElement:u,head:p}=r.contentDocument;this.insertStyleRules(u,p)}if(!this.usingVirtualDom)for(let u of this.config.plugins||[])u.onBuild&&u.onBuild(l,{id:i,replayer:this})};us(t.node,{doc:r.contentDocument,mirror:n,hackCss:!0,skipChild:!1,afterAppend:s,cache:this.cache}),s(r.contentDocument,t.node.id);for(let{mutationInQueue:l,builtNode:i}of a)this.attachDocumentToIframe(l,i),this.newDocumentQueue=this.newDocumentQueue.filter(d=>d!==l);o.forEach(l=>Ei(l))}collectIframeAndAttachDocument(t,r){if(ds(r,this.mirror)){let n=this.newDocumentQueue.find(a=>a.parentId===this.mirror.getId(r));n&&t.push({mutationInQueue:n,builtNode:r})}}waitForStylesheetLoad(){var t;let r=(t=this.iframe.contentDocument)==null?void 0:t.head;if(r){let n=new Set,a,o=this.service.state,s=()=>{o=this.service.state};this.emitter.on(be.Start,s),this.emitter.on(be.Pause,s);let l=()=>{this.emitter.off(be.Start,s),this.emitter.off(be.Pause,s)};r.querySelectorAll('link[rel="stylesheet"]').forEach(i=>{i.sheet||(n.add(i),i.addEventListener("load",()=>{n.delete(i),n.size===0&&a!==-1&&(o.matches("playing")&&this.play(this.getCurrentTime()),this.emitter.emit(be.LoadStylesheetEnd),a&&clearTimeout(a),l())}))}),n.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(be.LoadStylesheetStart),a=setTimeout(()=>{o.matches("playing")&&this.play(this.getCurrentTime()),a=-1,l()},this.config.loadTimeout))}}async preloadAllImages(){let t=[];for(let r of this.service.state.context.events)r.type===V.IncrementalSnapshot&&r.data.source===$.CanvasMutation&&(t.push(this.deserializeAndPreloadCanvasEvents(r.data,r)),("commands"in r.data?r.data.commands:[r.data]).forEach(a=>{this.preloadImages(a,r)}));return Promise.all(t)}preloadImages(t,r){if(t.property==="drawImage"&&typeof t.args[0]=="string"&&!this.imageMap.has(r)){let n=document.createElement("canvas"),a=n.getContext("2d"),o=a?.createImageData(n.width,n.height);a?.putImageData(o,0,0)}}async deserializeAndPreloadCanvasEvents(t,r){if(!this.canvasEventMap.has(r)){let n={isUnchanged:!0};if("commands"in t){let a=await Promise.all(t.commands.map(async o=>{let s=await Promise.all(o.args.map(Cn(this.imageMap,null,n)));return{...o,args:s}}));n.isUnchanged===!1&&this.canvasEventMap.set(r,{...t,commands:a})}else{let a=await Promise.all(t.args.map(Cn(this.imageMap,null,n)));n.isUnchanged===!1&&this.canvasEventMap.set(r,{...t,args:a})}}}applyIncremental(t,r){var n,a,o;let{data:s}=t;switch(s.source){case $.Mutation:{try{this.applyMutation(s,r)}catch(l){this.warn(`Exception in mutation ${l.message||l}`,s)}break}case $.Drag:case $.TouchMove:case $.MouseMove:if(r){let l=s.positions[s.positions.length-1];this.mousePos={x:l.x,y:l.y,id:l.id,debugData:s}}else s.positions.forEach(l=>{let i={doAction:()=>{this.moveAndHover(l.x,l.y,l.id,r,s)},delay:l.timeOffset+t.timestamp-this.service.state.context.baselineTime};this.timer.addAction(i)}),this.timer.addAction({doAction(){},delay:t.delay-((n=s.positions[0])==null?void 0:n.timeOffset)});break;case $.MouseInteraction:{if(s.id===-1)break;let l=new Event(Ln(Se[s.type])),i=this.mirror.getNode(s.id);if(!i)return this.debugNodeNotFound(s,s.id);this.emitter.emit(be.MouseInteraction,{type:s.type,target:i});let{triggerFocus:d}=this.config;switch(s.type){case Se.Blur:"blur"in i&&i.blur();break;case Se.Focus:d&&i.focus&&i.focus({preventScroll:!0});break;case Se.Click:case Se.TouchStart:case Se.TouchEnd:case Se.MouseDown:case Se.MouseUp:r?(s.type===Se.TouchStart?this.touchActive=!0:s.type===Se.TouchEnd&&(this.touchActive=!1),s.type===Se.MouseDown?this.lastMouseDownEvent=[i,l]:s.type===Se.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:s.x||0,y:s.y||0,id:s.id,debugData:s}):(s.type===Se.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(s.x||0,s.y||0,s.id,r,s),s.type===Se.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):s.type===Se.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):s.type===Se.TouchEnd?this.mouse.classList.remove("touch-active"):i.dispatchEvent(l));break;case Se.TouchCancel:r?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:i.dispatchEvent(l)}break}case $.Scroll:{if(s.id===-1)break;if(this.usingVirtualDom){let l=this.virtualDom.mirror.getNode(s.id);if(!l)return this.debugNodeNotFound(s,s.id);l.scrollData=s;break}this.applyScroll(s,r);break}case $.ViewportResize:this.emitter.emit(be.Resize,{width:s.width,height:s.height});break;case $.Input:{if(s.id===-1)break;if(this.usingVirtualDom){let l=this.virtualDom.mirror.getNode(s.id);if(!l)return this.debugNodeNotFound(s,s.id);l.inputData=s;break}this.applyInput(s);break}case $.MediaInteraction:{let l=this.usingVirtualDom?this.virtualDom.mirror.getNode(s.id):this.mirror.getNode(s.id);if(!l)return this.debugNodeNotFound(s,s.id);let i=l,{events:d}=this.service.state.context;this.mediaManager.mediaMutation({target:i,timeOffset:t.timestamp-d[0].timestamp,mutation:s});break}case $.StyleSheetRule:case $.StyleDeclaration:{this.usingVirtualDom?s.styleId?this.constructedStyleMutations.push(s):s.id&&((a=this.virtualDom.mirror.getNode(s.id))==null||a.rules.push(s)):this.applyStyleSheetMutation(s);break}case $.CanvasMutation:{if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){let l=this.virtualDom.mirror.getNode(s.id);if(!l)return this.debugNodeNotFound(s,s.id);l.canvasMutations.push({event:t,mutation:s})}else{let l=this.mirror.getNode(s.id);if(!l)return this.debugNodeNotFound(s,s.id);Vy({event:t,mutation:s,target:l,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break}case $.Font:{try{let l=new FontFace(s.family,s.buffer?new Uint8Array(JSON.parse(s.fontSource)):s.fontSource,s.descriptors);(o=this.iframe.contentDocument)==null||o.fonts.add(l)}catch(l){this.warn(l)}break}case $.Selection:{if(r){this.lastSelectionData=s;break}this.applySelection(s);break}case $.AdoptedStyleSheet:{this.usingVirtualDom?this.adoptedStyleSheets.push(s):this.applyAdoptedStyleSheet(s);break}}}applyMutation(t,r){if(this.config.useVirtualDom&&!this.usingVirtualDom&&r&&(this.usingVirtualDom=!0,TL(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(let d in this.legacy_missingNodeRetryMap)try{let u=this.legacy_missingNodeRetryMap[d],p=Cw(u.node,this.virtualDom,this.mirror);p&&(u.node=p)}catch(u){this.warn(u)}let n=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;t.removes=t.removes.filter(d=>n.getNode(d.id)?!0:(this.warnNodeNotFound(t,d.id),!1)),t.removes.forEach(d=>{var u;let p=n.getNode(d.id);if(!p)return;let c=n.getNode(d.parentId);if(!c)return this.warnNodeNotFound(t,d.parentId);if(d.isShadow&&Gn(c)&&(c=c.shadowRoot),n.removeNodeFromMap(p),c)try{c.removeChild(p),this.usingVirtualDom&&p.nodeName==="#text"&&c.nodeName==="STYLE"&&((u=c.rules)==null?void 0:u.length)>0&&(c.rules=[])}catch(f){if(f instanceof DOMException)this.warn("parent could not remove child in mutation",c,p,t);else throw f}});let a={...this.legacy_missingNodeRetryMap},o=[],s=d=>{let u=null;return d.nextId&&(u=n.getNode(d.nextId)),d.nextId!==null&&d.nextId!==void 0&&d.nextId!==-1&&!u},l=d=>{var u,p;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let c=n.getNode(d.parentId);if(!c)return d.node.type===Wr.Document?this.newDocumentQueue.push(d):o.push(d);d.node.isShadow&&(Gn(c)||c.attachShadow({mode:"open"}),c=c.shadowRoot);let f=null,h=null;if(d.previousId&&(f=n.getNode(d.previousId)),d.nextId&&(h=n.getNode(d.nextId)),s(d))return o.push(d);if(d.node.rootId&&!n.getNode(d.node.rootId))return;let m=d.node.rootId?n.getNode(d.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(ds(c,n)){this.attachDocumentToIframe(d,c);return}let y=(v,S)=>{if(!this.usingVirtualDom){Ei(v);for(let b of this.config.plugins||[])b.onBuild&&b.onBuild(v,{id:S,replayer:this})}},g=us(d.node,{doc:m,mirror:n,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:y});if(d.previousId===-1||d.nextId===-1){a[d.node.id]={node:g,mutation:d};return}let x=n.getMeta(c);if(x&&x.type===Wr.Element&&d.node.type===Wr.Text){let v=Array.isArray(c.childNodes)?c.childNodes:Array.from(c.childNodes);if(x.tagName==="textarea")for(let S of v)S.nodeType===c.TEXT_NODE&&c.removeChild(S);else if(x.tagName==="style"&&v.length===1)for(let S of v)S.nodeType===c.TEXT_NODE&&!n.hasNode(S)&&(g.textContent=S.textContent,c.removeChild(S))}else if(x?.type===Wr.Document){let v=c;d.node.type===Wr.DocumentType&&((u=v.childNodes[0])==null?void 0:u.nodeType)===Node.DOCUMENT_TYPE_NODE&&v.removeChild(v.childNodes[0]),g.nodeName==="HTML"&&v.documentElement&&v.removeChild(v.documentElement)}if(f&&f.nextSibling&&f.nextSibling.parentNode?c.insertBefore(g,f.nextSibling):h&&h.parentNode?c.contains(h)?c.insertBefore(g,h):c.insertBefore(g,null):c.appendChild(g),y(g,d.node.id),this.usingVirtualDom&&g.nodeName==="#text"&&c.nodeName==="STYLE"&&((p=c.rules)==null?void 0:p.length)>0&&(c.rules=[]),ds(g,this.mirror)){let v=this.mirror.getId(g),S=this.newDocumentQueue.find(b=>b.parentId===v);S&&(this.attachDocumentToIframe(S,g),this.newDocumentQueue=this.newDocumentQueue.filter(b=>b!==S))}(d.previousId||d.nextId)&&this.legacy_resolveMissingNode(a,c,g,d)};t.adds.forEach(d=>{l(d)});let i=Date.now();for(;o.length;){let d=KL(o);if(o.length=0,Date.now()-i>500){this.warn("Timeout in the loop, please check the resolve tree data:",d);break}for(let u of d)n.getNode(u.value.parentId)?Aw(u,c=>{l(c)}):this.debug("Drop resolve tree since there is no parent for the root node.",u)}Object.keys(a).length&&Object.assign(this.legacy_missingNodeRetryMap,a),QL(t.texts).forEach(d=>{var u;let p=n.getNode(d.id);if(!p)return t.removes.find(f=>f.id===d.id)?void 0:this.warnNodeNotFound(t,d.id);let c=p.parentElement;if(d.value&&c&&c.tagName==="STYLE"?p.textContent=eu(d.value,this.cache):p.textContent=d.value,this.usingVirtualDom){let f=p.parentNode;((u=f?.rules)==null?void 0:u.length)>0&&(f.rules=[])}}),t.attributes.forEach(d=>{var u;let p=n.getNode(d.id);if(!p)return t.removes.find(c=>c.id===d.id)?void 0:this.warnNodeNotFound(t,d.id);for(let c in d.attributes)if(typeof c=="string"){let f=d.attributes[c];if(f===null)p.removeAttribute(c),c==="open"&&Ak(p,d);else if(typeof f=="string")try{if(c==="_cssText"&&(p.nodeName==="LINK"||p.nodeName==="STYLE"))try{let h=n.getMeta(p),m=us({...h,attributes:{...h.attributes,...d.attributes}},{doc:p.ownerDocument,mirror:n,skipChild:!0,hackCss:!0,cache:this.cache});Object.assign(h.attributes,d.attributes);let y=p.nextSibling,g=p.parentNode;if(m&&g){g.removeChild(p),g.insertBefore(m,y),n.replace(d.id,m);break}}catch{}if(c==="value"&&p.nodeName==="TEXTAREA"){let h=p;h.childNodes.forEach(y=>h.removeChild(y));let m=(u=p.ownerDocument)==null?void 0:u.createTextNode(f);m&&h.appendChild(m)}else p.setAttribute(c,f);c==="rr_open_mode"&&p.nodeName==="DIALOG"&&Ei(p,d)}catch(h){this.warn("An error occurred may due to the checkout feature.",h)}else if(c==="style"){let h=f,m=p;for(let y in h)if(h[y]===!1)m.style.removeProperty(y);else if(h[y]instanceof Array){let g=h[y];m.style.setProperty(y,g[0],g[1])}else{let g=h[y];m.style.setProperty(y,g)}}}})}applyScroll(t,r){var n,a;let o=this.mirror.getNode(t.id);if(!o)return this.debugNodeNotFound(t,t.id);let s=this.mirror.getMeta(o);if(o===this.iframe.contentDocument)(n=this.iframe.contentWindow)==null||n.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else if(s?.type===Wr.Document)(a=o.defaultView)==null||a.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else try{o.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"})}catch{}}applyInput(t){let r=this.mirror.getNode(t.id);if(!r)return this.debugNodeNotFound(t,t.id);try{r.checked=t.isChecked,r.value=t.text}catch{}}applySelection(t){try{let r=new Set,n=t.ranges.map(({start:a,startOffset:o,end:s,endOffset:l})=>{let i=this.mirror.getNode(a),d=this.mirror.getNode(s);if(!i||!d)return;let u=new Range;u.setStart(i,o),u.setEnd(d,l);let p=i.ownerDocument,c=p?.getSelection();return c&&r.add(c),{range:u,selection:c}});r.forEach(a=>a.removeAllRanges()),n.forEach(a=>{var o;return a&&((o=a.selection)==null?void 0:o.addRange(a.range))})}catch{}}applyStyleSheetMutation(t){var r;let n=null;t.styleId?n=this.styleMirror.getStyle(t.styleId):t.id&&(n=((r=this.mirror.getNode(t.id))==null?void 0:r.sheet)||null),n&&(t.source===$.StyleSheetRule?this.applyStyleSheetRule(t,n):t.source===$.StyleDeclaration&&this.applyStyleDeclaration(t,n))}applyStyleSheetRule(t,r){var n,a,o,s;if((n=t.adds)==null||n.forEach(({rule:l,index:i})=>{try{if(Array.isArray(i)){let{positions:d,index:u}=Ry(i),p=os(r.cssRules,d);p?.insertRule(l,u)}else{let d=i===void 0?void 0:Math.min(i,r.cssRules.length);r?.insertRule(l,d)}}catch{}}),(a=t.removes)==null||a.forEach(({index:l})=>{try{if(Array.isArray(l)){let{positions:i,index:d}=Ry(l),u=os(r.cssRules,i);u?.deleteRule(d||0)}else r?.deleteRule(l)}catch{}}),typeof t.replace=="string")try{(o=r.replace)==null||o.call(r,t.replace)}catch{}if(typeof t.replaceSync=="string")try{(s=r.replaceSync)==null||s.call(r,t.replaceSync)}catch{}}applyStyleDeclaration(t,r){if(t.set){let n=os(r.rules,t.index);n?.style&&n.style.setProperty(t.set.property,t.set.value,t.set.priority)}if(t.remove){let n=os(r.rules,t.index);n?.style&&n.style.removeProperty(t.remove.property)}}applyAdoptedStyleSheet(t){var r;let n=this.mirror.getNode(t.id);if(!n)return;(r=t.styles)==null||r.forEach(l=>{var i;let d=null,u=null;if(Gn(n)?u=((i=n.ownerDocument)==null?void 0:i.defaultView)||null:n.nodeName==="#document"&&(u=n.defaultView),!!u)try{d=new u.CSSStyleSheet,this.styleMirror.add(d,l.styleId),this.applyStyleSheetRule({source:$.StyleSheetRule,adds:l.rules},d)}catch{}});let a=10,o=0,s=(l,i)=>{let d=i.map(u=>this.styleMirror.getStyle(u)).filter(u=>u!==null);Gn(l)?l.shadowRoot.adoptedStyleSheets=d:l.nodeName==="#document"&&(l.adoptedStyleSheets=d),d.length!==i.length&&o<a&&(setTimeout(()=>s(l,i),0+100*o),o++)};s(n,t.styleIds)}legacy_resolveMissingNode(t,r,n,a){let{previousId:o,nextId:s}=a,l=o&&t[o],i=s&&t[s];if(l){let{node:d,mutation:u}=l;r.insertBefore(d,n),delete t[u.node.id],delete this.legacy_missingNodeRetryMap[u.node.id],(u.previousId||u.nextId)&&this.legacy_resolveMissingNode(t,r,d,u)}if(i){let{node:d,mutation:u}=i;r.insertBefore(d,n.nextSibling),delete t[u.node.id],delete this.legacy_missingNodeRetryMap[u.node.id],(u.previousId||u.nextId)&&this.legacy_resolveMissingNode(t,r,d,u)}}moveAndHover(t,r,n,a,o){let s=this.mirror.getNode(n);if(!s)return this.debugNodeNotFound(o,n);let l=Ow(s,this.iframe),i=t*l.absoluteScale+l.x,d=r*l.absoluteScale+l.y;this.mouse.style.left=`${i}px`,this.mouse.style.top=`${d}px`,a||this.drawMouseTail({x:i,y:d}),this.hoverElements(s)}drawMouseTail(t){if(!this.mouseTail)return;let{lineCap:r,lineWidth:n,strokeStyle:a,duration:o}=this.config.mouseTail===!0?op:Object.assign({},op,this.config.mouseTail),s=()=>{if(!this.mouseTail)return;let l=this.mouseTail.getContext("2d");!l||!this.tailPositions.length||(l.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),l.beginPath(),l.lineWidth=n,l.lineCap=r,l.strokeStyle=a,l.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach(i=>l.lineTo(i.x,i.y)),l.stroke())};this.tailPositions.push(t),s(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(l=>l!==t),s()},o/this.speedService.state.context.timer.speed)}hoverElements(t){var r;(r=this.lastHoveredRootNode||this.iframe.contentDocument)==null||r.querySelectorAll(".\\:hover").forEach(a=>{a.classList.remove(":hover")}),this.lastHoveredRootNode=t.getRootNode();let n=t;for(;n;)n.classList&&n.classList.add(":hover"),n=n.parentElement}isUserInteraction(t){return t.type!==V.IncrementalSnapshot?!1:t.data.source>$.Mutation&&t.data.source<=$.Input}backToNormal(){this.nextUserInteractionEvent=null,!this.speedService.state.matches("normal")&&(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(be.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))}warnNodeNotFound(t,r){this.warn(`Node with id '${r}' not found. `,t)}warnCanvasMutationFailed(t,r){this.warn("Has error on canvas update",r,"canvas mutation:",t)}debugNodeNotFound(t,r){this.debug(`Node with id '${r}' not found. `,t)}warn(...t){this.config.showWarning&&this.config.logger.warn(Gy,...t)}debug(...t){this.config.showDebug&&this.config.logger.log(Gy,...t)}},{addCustomEvent:rM}=Jn,{freezePage:nM}=Jn,{takeFullSnapshot:aM}=Jn;var _t=B(me(),1);var iu=B(me());var Jw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),lu=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();var ys=B(me());var Zw={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var eb=(0,ys.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:a="",children:o,iconNode:s,...l},i)=>(0,ys.createElement)("svg",{ref:i,...Zw,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:lu("lucide",a),...l},[...s.map(([d,u])=>(0,ys.createElement)(d,u)),...Array.isArray(o)?o:[o]]));var q=(e,t)=>{let r=(0,iu.forwardRef)(({className:n,...a},o)=>(0,iu.createElement)(eb,{ref:o,iconNode:t,className:lu(`lucide-${Jw(e)}`,n),...a}));return r.displayName=`${e}`,r};var no=q("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var Zn=q("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var ea=q("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var ta=q("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var ws=q("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);var bs=q("Command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]);var Ss=q("Disc",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);var ra=q("FastForward",[["polygon",{points:"13 19 22 12 13 5 13 19",key:"587y9g"}],["polygon",{points:"2 19 11 12 2 5 2 19",key:"3pweh0"}]]);var Cs=q("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);var na=q("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);var Ls=q("Keyboard",[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]);var kn=q("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);var ks=q("Magnet",[["path",{d:"m6 15-4-4 6.75-6.77a7.79 7.79 0 0 1 11 11L13 22l-4-4 6.39-6.36a2.14 2.14 0 0 0-3-3L6 15",key:"1i3lhw"}],["path",{d:"m5 8 4 4",key:"j6kj7e"}],["path",{d:"m12 15 4 4",key:"lnac28"}]]);var aa=q("Maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]);var oa=q("Minimize",[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]]);var Is=q("MonitorPlay",[["path",{d:"M10 7.75a.75.75 0 0 1 1.142-.638l3.664 2.249a.75.75 0 0 1 0 1.278l-3.664 2.25a.75.75 0 0 1-1.142-.64z",key:"1pctta"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",key:"x3v2xh"}]]);var _s=q("MousePointer2",[["path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z",key:"edeuup"}]]);var Ms=q("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);var sa=q("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);var Rs=q("Repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]);var Es=q("Rewind",[["polygon",{points:"11 19 2 12 11 5 11 19",key:"14yba5"}],["polygon",{points:"22 19 13 12 22 5 22 19",key:"1pi1cj"}]]);var Ns=q("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);var Ps=q("Scissors",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]);var Ts=q("SkipBack",[["polygon",{points:"19 20 9 12 19 4 19 20",key:"o2sva"}],["line",{x1:"5",x2:"5",y1:"19",y2:"5",key:"1ocqjk"}]]);var As=q("SkipForward",[["polygon",{points:"5 4 15 12 5 20 5 4",key:"16p6eg"}],["line",{x1:"19",x2:"19",y1:"5",y2:"19",key:"futhcm"}]]);var tr=q("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);var Ds=q("StepBack",[["line",{x1:"18",x2:"18",y1:"20",y2:"4",key:"cun8e5"}],["polygon",{points:"14,20 4,12 14,4",key:"ypakod"}]]);var Os=q("StepForward",[["line",{x1:"6",x2:"6",y1:"4",y2:"20",key:"fy8qot"}],["polygon",{points:"10,4 20,12 10,20",key:"1mc1pf"}]]);var Fs=q("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);var Bs=q("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);var zs=q("VolumeX",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]);var la=q("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var ia=q("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);var $s=B(ce(),1),H=B(ce(),1),wu=B(me(),1);var Ot=B(ce(),1),Ib=B(me(),1);var Ae=B(ce(),1),_b=B(me(),1),du=B(ce(),1),or=B(me(),1);var lo=B(me(),1);var bu=B(me(),1),E=B(ce(),1),Nb=B(me(),1);var tt=B(ce(),1);var Pb=B(me(),1);var Qe=B(ce(),1),In=B(ce(),1),Su=B(me(),1);var qs=B(ce(),1),rm=B(ce(),1),nm=B(ce(),1),cu=B(me(),1);var Xe=B(me(),1);var Rn=B(me(),1),oe=B(ce(),1),Hs=B(me(),1);var vt=B(ce(),1),At=B(ce(),1),Y=B(ce(),1),Fb=B(me(),1),_n=B(me(),1);var De=B(ce(),1),so=B(me(),1),Mn=B(ce(),1);var J=B(ce(),1),om=B(me(),1),Wt=B(ce(),1);var Dt=B(ce(),1),xu=B(ce(),1),js=B(me(),1),oo=B(ce(),1),et=B(ce(),1),ar=B(me(),1),nr=B(ce(),1),rr=B(ce(),1),Cu=B(me(),1);var Ve=B(ce(),1),Ws=B(me(),1);var cm=B(ce(),1);var vb=[.5,1,1.5,2,4,8],uu=["stage","balanced","debug"];function sm(e){if(!e||!e.length)return[...uu];let t=new Set;for(let r of e)uu.includes(r)&&t.add(r);return t.size?[...t]:[...uu]}var fu=["chapters","interaction","console","network","error","task","vitals"],lt={speed:"obsrviq.player.speed",autoSkip:"obsrviq.player.autoSkip",autoSkim:"obsrviq.player.autoSkim",showCursor:"obsrviq.player.showCursor",mode:"obsrviq.player.mode",laneState:"obsrviq.player.laneState",snap:"obsrviq.player.snap"};function ua(e,t,r){try{let n=localStorage.getItem(e);return n==null?t:r(n)}catch{return t}}function Kr(e,t){try{localStorage.setItem(e,t)}catch{}}function Fk(){let e={};for(let t of fu)e[t]={collapsed:t==="console"||t==="vitals",solo:!1,mute:!1};return e}function Bk(){let e=Fk();try{let t=localStorage.getItem(lt.laneState);if(!t)return e;let r=JSON.parse(t);for(let n of fu){let a=r[n];a&&(e[n]={collapsed:!!a.collapsed,solo:!!a.solo,mute:!!a.mute})}return e}catch{return e}}function zk(){let e=null,t=null;return lv((r,n)=>{let a=()=>{e&&(clearInterval(e),e=null)},o=()=>{a();let l=performance.now();e=setInterval(()=>{let i=performance.now(),d=(i-l)*n().speed;l=i;let u=n().currentTime+d;u>=n().durationMs?(r({currentTime:n().durationMs}),n()._onFinish()):n()._onTime(u)},33.333333333333336)},s=l=>{let i=n(),d=i.events.find(p=>p.id===l);if(d)return d.t;let u=i.markers.find(p=>p.ref===l);return u?u.t:null};return{status:"idle",durationMs:0,currentTime:0,bufferedMs:0,speed:ua(lt.speed,1,l=>Number(l)),autoSkip:ua(lt.autoSkip,!1,l=>l==="true"),autoSkim:ua(lt.autoSkip,!1,l=>l==="true")?!1:ua(lt.autoSkim,!0,l=>l==="true"),isSkimming:!1,isSkipping:!1,lastSkipMs:0,loop:!1,clipStart:null,clipEnd:null,clipLoop:!1,autoplayNext:!1,showCursor:ua(lt.showCursor,!0,l=>l==="true"),activePanel:"console",events:[],markers:[],summary:null,offset:0,hasReplay:!1,error:null,errorNotFound:!1,loadProgress:0,live:!1,following:!1,pendingSeek:null,controller:null,_covers:null,_moreForward:null,focusMode:ua(lt.mode,"balanced",l=>l==="stage"||l==="debug"?l:"balanced"),allowedModes:[...uu],selectedEventId:null,selectionRange:null,zoomStack:[],laneState:Bk(),hover:null,snap:ua(lt.snap,!0,l=>l==="true"),feedFilter:"all",paletteOpen:!1,toRelative:l=>{let i=l-n().offset;return Math.max(0,Math.min(n().durationMs,i))},play:()=>{let l=n();if(l.status==="error")return;l.clipEnd!=null&&l.currentTime>=l.clipEnd&&r({clipStart:null,clipEnd:null,clipLoop:!1});let i=l.clipEnd==null&&l.currentTime>=l.durationMs-20?0:l.currentTime;l.controller?l.controller.play(i):(i===0&&r({currentTime:0}),o()),r({status:"playing"})},pause:()=>{let l=n();l.controller?l.controller.pause():a(),r({status:"paused"})},toggle:()=>n().status==="playing"?n().pause():n().play(),restart:()=>{n().seek(0),n().play()},seek:l=>{let i=n(),d=Math.max(0,Math.min(i.durationMs,l)),u=i._covers?i._covers(d):d<=i.bufferedMs+1;!i.controller||u?(i.controller&&i.controller.seek(d),r({currentTime:d,pendingSeek:null,status:i.status==="ended"||i.status==="buffering"?"paused":i.status,following:!1})):r({currentTime:d,pendingSeek:d,status:"buffering",following:!1})},step:l=>{let i=n(),d=i.controller?.mutationTimes??[];if(!d.length){n().seek(i.currentTime+l*200);return}let u=i.currentTime,p=l>0?d.find(c=>c>u+1):[...d].reverse().find(c=>c<u-1);p!=null&&n().seek(p)},jumpEvent:l=>{let i=n(),d=i.markers.map(c=>i.toRelative(c.t)).sort((c,f)=>c-f);if(!d.length)return;let u=i.currentTime,p=l>0?d.find(c=>c>u+1):[...d].reverse().find(c=>c<u-1);p!=null&&n().seek(p)},setSpeed:l=>{n().controller?.setSpeed(l),Kr(lt.speed,String(l)),r({speed:l})},setPanel:l=>r({activePanel:l}),setAutoSkip:l=>{n().controller?.setAutoSkip(l),Kr(lt.autoSkip,String(l)),l&&n().autoSkim&&(n().controller?.setAutoSkim(!1),Kr(lt.autoSkim,"false"),r({autoSkim:!1,isSkimming:!1})),r({autoSkip:l,isSkipping:l?n().isSkipping:!1})},setAutoSkim:l=>{n().controller?.setAutoSkim(l),Kr(lt.autoSkim,String(l)),l&&n().autoSkip&&(n().controller?.setAutoSkip(!1),Kr(lt.autoSkip,"false"),r({autoSkip:!1,isSkipping:!1})),r({autoSkim:l,isSkimming:l?n().isSkimming:!1})},setLoop:l=>r({loop:l}),setClip:(l,i,d=!1)=>r({clipStart:l,clipEnd:i,clipLoop:d}),setAutoplayNext:l=>r({autoplayNext:l}),setShowCursor:l=>{n().controller?.setShowCursor(l),Kr(lt.showCursor,String(l)),r({showCursor:l})},setFollowing:l=>{let i=n();l&&i.controller&&(i.controller.seek(i.durationMs),r({currentTime:i.durationMs})),r({following:l})},setFocusMode:l=>{n().allowedModes.includes(l)&&(Kr(lt.mode,l),r({focusMode:l}))},setAllowedModes:l=>{let i=sm(l),d=i.includes(n().focusMode)?n().focusMode:i[0];r({allowedModes:i,focusMode:d})},select:l=>{if(r({selectedEventId:l}),l!=null){let i=s(l);i!=null&&n().seek(n().toRelative(i))}},selectAndSeek:l=>{let i=s(l);r({selectedEventId:l}),i!=null&&n().seek(n().toRelative(i))},brush:(l,i)=>{if(i==null){r({selectionRange:null});return}let d=Math.min(l,i),u=Math.max(l,i);r({selectionRange:[d,u]})},zoomTo:(l,i)=>{let d=n(),u=Math.max(0,Math.min(l,i)),p=Math.min(d.offset+d.durationMs,Math.max(l,i));p-u<50||r({zoomStack:[...d.zoomStack,[u,p]]})},zoomOutTo:l=>{let i=n();r({zoomStack:i.zoomStack.slice(0,Math.max(0,l))})},setHover:l=>r({hover:l==null?null:{t:l}}),toggleSnap:()=>{let l=!n().snap;Kr(lt.snap,String(l)),r({snap:l})},toggleLane:(l,i)=>{let d=n(),u=d.laneState[l],p={...d.laneState,[l]:{...u,[i]:!u[i]}};Kr(lt.laneState,JSON.stringify(p)),r({laneState:p})},setFeedFilter:l=>r({feedFilter:l}),nextProblem:l=>{let i=n(),d={error:5,network:4,rage:3,dead:2,nav:1,conversion:1,ai:0},u=i.markers.filter(f=>(d[f.kind]??0)>=2).map(f=>({rel:i.toRelative(f.t),m:f})).sort((f,h)=>f.rel-h.rel);if(!u.length)return;let p=i.currentTime,c=l>0?u.find(f=>f.rel>p+1):[...u].reverse().find(f=>f.rel<p-1);c&&(r({selectedEventId:c.m.ref}),n().seek(c.rel))},walkLane:(l,i)=>{let d=n(),u=d.events.filter(f=>Uk(l,f)).map(f=>({rel:d.toRelative(f.t),id:f.id})).sort((f,h)=>f.rel-h.rel);if(!u.length)return;let p=d.currentTime,c=i>0?u.find(f=>f.rel>p+1):[...u].reverse().find(f=>f.rel<p-1);c&&(r({selectedEventId:c.id}),n().seek(c.rel))},openPalette:l=>r({paletteOpen:l}),rewindToCause:l=>{let i=n(),d=s(l);if(d==null)return;let u=i.toRelative(d);n().seek(Math.max(0,u-5e3))},_attachController:l=>{let i=n().durationMs;r({controller:l,durationMs:Math.max(i,l.meta.totalTime),bufferedMs:l.meta.totalTime,status:"paused"})},_detachController:()=>{a();let l=n().controller;l&&l.destroy(),r({controller:null})},_setLoaderProbes:(l,i)=>r({_covers:l,_moreForward:i}),_onTime:l=>{let i=n();if(i.clipEnd!=null&&l>=i.clipEnd&&i.status==="playing"){i.clipLoop?n().seek(i.clipStart??0):(i.controller?i.controller.pause(i.clipEnd):a(),r({currentTime:i.clipEnd,status:"paused"}));return}r({currentTime:l})},_onSkip:l=>{r({isSkipping:!0,lastSkipMs:l}),t&&clearTimeout(t),t=setTimeout(()=>r({isSkipping:!1}),1100)},_onFinish:()=>{let l=n();l.live&&l.following?r({status:"paused",currentTime:l.durationMs}):l.clipEnd!=null&&l.currentTime>=l.clipEnd-1?l.clipLoop?(n().seek(l.clipStart??0),n().play()):(a(),r({currentTime:l.clipEnd,status:"paused"})):l.controller&&(l._moreForward?l._moreForward(l.currentTime):l.currentTime<l.durationMs-1)?r({status:"buffering"}):l.loop?n().restart():(a(),r({status:"ended"}))},_setData:l=>r(l)}})}function Uk(e,t){switch(e){case"network":return t.type==="network";case"error":return t.type==="error"||t.type==="console"&&t.level==="error";case"console":return t.type==="console";case"vitals":return t.type==="perf";case"task":return t.type==="custom"&&/^(.+):(started|ended)$/.test(t.name??"");case"interaction":return t.type==="custom"&&!/^(.+):(started|ended)$/.test(t.name??"")&&!["_tag","identify","metadata","_click","_scroll"].includes(t.name??"");case"chapters":return t.type==="custom"&&["navigation","pageview"].includes(t.name??"");default:return!1}}var wb=(0,vu.createContext)(null);function qk({store:e,children:t}){return(0,yb.jsx)(wb.Provider,{value:e,children:t})}function lm(){let e=(0,vu.useContext)(wb);if(!e)throw new Error("usePlayer must be used within <ReplayPlayer>");return e}function M(e){return iv(lm(),e)}var Sb=(0,yu.createContext)(null);function $k({value:e,children:t}){return(0,bb.jsx)(Sb.Provider,{value:e,children:t})}function Hk(){return(0,yu.useContext)(Sb)}async function*jk(e,t,r,n){let a={"content-type":"application/json"};t.token?a.authorization=`Bearer ${t.token}`:t.apiKey&&(a.authorization=`Bearer ${t.apiKey}`,a["x-obsrviq-key"]=t.apiKey);let o=await fetch(e,{method:"POST",headers:a,body:JSON.stringify(r),signal:n});if(!o.ok||!o.body)throw new Error(`${o.status} ${o.statusText}`);let s=o.body.getReader(),l=new TextDecoder,i="";for(;;){let{done:d,value:u}=await s.read();if(d)break;i+=l.decode(u,{stream:!0});let p=i.split(`
|
|
137
137
|
|
|
138
|
-
`);l=f.pop()??"";for(let c of f){let p=c.trim();if(!p.startsWith("data:"))continue;let h=p.slice(5).trim();if(h==="[DONE]")return;try{yield JSON.parse(h)}catch{}}}}async function Fk(e,t){let r=t.apiBaseUrl.replace(/\/$/,""),a=await Kr(`${r}/v1/sessions/${e}`,t),n=await Kr(`${r}/v1/sessions/${e}/events`,t);return{detail:a,events:n.items}}async function jp(e,t){return(await Kr(e,t)).slice().sort((a,n)=>a.timestamp-n.timestamp)}function Bk(e){return e.token?{authorization:`Bearer ${e.token}`}:e.apiKey?{authorization:`Bearer ${e.apiKey}`,"x-obsrviq-key":e.apiKey}:{}}async function Kr(e,t){let r=await fetch(e,{headers:Bk(t)});if(!r.ok)throw Object.assign(new Error(`${r.status} ${r.statusText} (${e})`),{notFound:r.status===404});return await r.json()}async function zk(e,t,r){let a=t.apiBaseUrl.replace(/\/$/,""),n=await Kr(`${a}/v1/sessions/${e}`,t),o=await Kr(`${a}/v1/sessions/${e}/events`,t),i=[...n.replayChunks].sort((u,f)=>u.seq-f.seq),s=0,d=(await Promise.allSettled(i.map(async u=>{let f=await Kr(u.url,t);return r?.(++s,i.length),f}))).filter(u=>u.status==="fulfilled").flatMap(u=>u.value).sort((u,f)=>u.timestamp-f.timestamp);return{detail:n,events:o.items,rrwebEvents:d}}async function Uk(e,t,r,a){let n=t.apiBaseUrl.replace(/\/$/,""),o=await Kr(`${n}/v1/sessions/${e}`,t),i=o.replayChunks.filter(c=>c.seq>r).sort((c,p)=>c.seq-p.seq),s=r,d=(await Promise.allSettled(i.map(async c=>{let p=await Kr(c.url,t);return c.seq>s&&(s=c.seq),p}))).filter(c=>c.status==="fulfilled").flatMap(c=>c.value).sort((c,p)=>c.timestamp-p.timestamp),f=(await Kr(`${n}/v1/sessions/${e}/events`,t)).items.filter(c=>c.t>a);return{summary:o.summary,newRrwebEvents:d,newEvents:f,maxSeq:s}}var qk=2e3;function Os(e){let t=[];for(let r of e){let a=null,n="";switch(r.type){case"error":{a="error",n=`${r.name??"Error"}: ${r.message??""}`.slice(0,120);break}case"console":{let o=r;o.level==="error"&&(a="error",n=$k(o));break}case"network":{let o=r;(o.status===0||o.status>=400||o.timing&&o.timing.duration>qk)&&(a="network",n=`${o.method} ${o.url} \u2014 ${o.status||"failed"}`.slice(0,120));break}case"custom":{let o=r;if(o.name==="rage_click")a="rage",n=`Rage click ${Gw(o)}`;else if(o.name==="dead_click")a="dead",n=`Dead click ${Gw(o)}`;else if(o.props&&o.props.conversion===!0)a="conversion",n=`Conversion: ${o.name}`;else if(o.name==="navigation"||o.name==="pageview")a="nav",n="Page change";else{let i=/^(.+):started$/.exec(o.name??""),s=/^(.+):ended$/.exec(o.name??"");i?(a="task",n=`Task: ${o.props?.task??i[1]}`):s&&(a="task",n=`Task ended: ${o.props?.task??s[1]}`)}break}case"ai":{a="ai",n="AI step";break}}a&&t.push({kind:a,t:r.t,label:n,ref:r.id})}return t.sort((r,a)=>r.t-a.t)}function $k(e){let t=e.args[0];return t?t.kind==="string"?t.value.slice(0,120):t.kind==="error"?`${t.name}: ${t.message}`.slice(0,120):t.kind==="object"?t.preview.slice(0,120):t.kind==="primitive"?String(t.value):"console.error":"console.error"}function Gw(e){return e.props?.selector??""}var Xw="#6e76f1",Hk=8,Wk=2500,jk=1200,Vk=600,Gk=400,Kw=250,Xk=class{constructor(e,t,r,a){this.root=e,this.cb=a,this.playing=!1,this.raf=0,this.destroyed=!1,this.activityTimes=[],this.extraActivity=[],this.idleGaps=[],this.autoSkim=!1,this.autoSkip=!1,this.skimming=!1,this.replayer=new Wl(t,{root:e,speed:r.speed,skipInactive:!1,showWarning:!1,showDebug:!1,mouseTail:r.showCursor?{strokeStyle:Xw}:!1,UNSAFE_replayCanvas:!1});let n=this.replayer.getMetaData();this.meta={startTime:n.startTime,endTime:n.endTime,totalTime:n.totalTime},this.mutationTimes=t.filter(o=>o.type===3).map(o=>o.timestamp-n.startTime).filter(o=>o>=0).sort((o,i)=>o-i),this.userSpeed=r.speed,this.autoSkim=!!r.autoSkim,this.autoSkip=!!r.autoSkip,this.rebuildActivity(),this.replayer.on("finish",()=>{this.playing=!1,this.stopLoop(),this.cb.onFinish()}),this.replayer.on("resize",()=>this.fit()),requestAnimationFrame(()=>this.fit())}appendEvents(e){let t=!1;for(let r of e){try{this.replayer.addEvent(r)}catch{}if(r.timestamp>this.meta.endTime&&(this.meta.endTime=r.timestamp),r.type===3){let a=r.timestamp-this.meta.startTime;a>=0&&(this.mutationTimes.push(a),t=!0)}}return t&&(this.mutationTimes.sort((r,a)=>r-a),this.rebuildActivity()),this.meta.totalTime=Math.max(this.meta.totalTime,this.meta.endTime-this.meta.startTime),this.meta.totalTime}setActivityTimes(e){this.extraActivity=e.filter(t=>t>=0),this.rebuildActivity()}setAutoSkim(e){this.autoSkim=e,e||this.exitSkim()}setAutoSkip(e){this.autoSkip=e}rebuildActivity(){let e=new Set(this.mutationTimes);for(let t of this.extraActivity)e.add(t);this.activityTimes=Array.from(e).sort((t,r)=>t-r),this.recomputeGaps()}recomputeGaps(){let e=this.activityTimes,t=[];for(let r=0;r<e.length-1;r++){let a=e[r],n=e[r+1];n-a>=Wk&&t.push({start:a,end:n})}this.idleGaps=t}idleGapAt(e){for(let t of this.idleGaps)if(e>=t.start&&e<t.end)return t;return null}evaluateSkim(e){if(!this.autoSkim||!this.playing){this.skimming&&this.exitSkim();return}let t=this.idleGapAt(e),r=t!=null&&e-t.start>=jk&&t.end-e>Vk;r&&!this.skimming?this.enterSkim():!r&&this.skimming&&this.exitSkim()}evaluateSkip(e){if(!this.autoSkip||!this.playing)return;let t=this.idleGapAt(e);if(t==null||e-t.start<Gk||t.end-e<=Kw+50||t.end>this.meta.totalTime)return;let r=t.end-Kw,a=Math.max(0,r-e);this.seek(r),this.cb.onSkip?.(a)}enterSkim(){this.skimming=!0,this.replayer.setConfig({speed:Hk}),this.cb.onSkim?.(!0)}exitSkim(){this.skimming&&(this.skimming=!1,this.replayer.setConfig({speed:this.userSpeed}),this.cb.onSkim?.(!1))}fit(){try{let e=this.replayer.iframe,t=this.replayer.wrapper;if(!e||!t)return;let r=Number(e.getAttribute("width"))||e.offsetWidth,a=Number(e.getAttribute("height"))||e.offsetHeight,n=this.root.clientWidth,o=this.root.clientHeight;if(!r||!a||!n||!o)return;let i=Math.min(n/r,o/a,1);t.style.position="absolute",t.style.transformOrigin="top left",t.style.transform=`scale(${i})`,t.style.left=`${Math.max(0,(n-r*i)/2)}px`,t.style.top=`${Math.max(0,(o-a*i)/2)}px`}catch{}}play(e){this.destroyed||(this.replayer.play(e),this.playing=!0,this.cb.onState("playing"),this.startLoop())}pause(e){this.destroyed||(this.exitSkim(),this.replayer.pause(e),this.playing=!1,this.stopLoop(),this.cb.onState("paused"),this.cb.onTime(e??this.currentTime()))}seek(e){this.exitSkim();let t=Math.max(0,Math.min(this.meta.totalTime,e));this.playing?this.replayer.play(t):this.replayer.pause(t),this.cb.onTime(t)}currentTime(){try{return this.replayer.getCurrentTime()}catch{return 0}}setSpeed(e){this.userSpeed=e,this.skimming||this.replayer.setConfig({speed:e})}setShowCursor(e){this.replayer.setConfig({mouseTail:e?{strokeStyle:Xw}:!1})}isPlaying(){return this.playing}startLoop(){this.stopLoop();let e=()=>{if(!this.playing||this.destroyed)return;let t=this.currentTime();this.evaluateSkim(t),this.evaluateSkip(t),this.cb.onTime(this.currentTime()),this.raf=requestAnimationFrame(e)};this.raf=requestAnimationFrame(e)}stopLoop(){this.raf&&cancelAnimationFrame(this.raf),this.raf=0}destroy(){this.destroyed=!0,this.exitSkim(),this.stopLoop();try{this.replayer.pause()}catch{}try{let e=this.replayer.wrapper;e?.parentElement?.removeChild(e)}catch{}}};function ne(e){let t=Math.max(0,Math.floor(e/1e3)),r=t%60,a=Math.floor(t/60)%60,n=Math.floor(t/3600),o=i=>String(i).padStart(2,"0");return n>0?`${n}:${o(a)}:${o(r)}`:`${a}:${o(r)}`}function Kk(e){return e==null?"\u2014":e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function cu(e){return e==null?"\u2014":e<1e3?`${Math.round(e)} ms`:`${(e/1e3).toFixed(2)} s`}function Qk(e){let t=Math.max(0,e);if(t<1e3)return`${(t/1e3).toFixed(1)}s`;let r=Math.round(t/1e3);if(r<60)return`${r}s`;let a=Math.floor(r/60),n=r%60;return n?`${a}m ${n}s`:`${a}m`}var Yk=[{id:"stage",label:"Watch",key:"T",hint:"Just play and watch \u2014 full-screen replay, slim scrubber"},{id:"balanced",label:"Balanced",key:"",hint:"Replay + timeline + inspector together"},{id:"debug",label:"Debug",key:"D",hint:"Maximize the timeline + inspector for deep debugging"}];function Jk(){let e=_(n=>n.focusMode),t=_(n=>n.setFocusMode),r=_(n=>n.allowedModes),a=Yk.filter(n=>r.includes(n.id));return a.length<=1?null:(0,Bs.jsx)("div",{className:"lum-st-focus",role:"group","aria-label":"Focus mode",children:a.map(n=>(0,Bs.jsxs)("button",{className:`lum-st-focus__pill ${e===n.id?"is-active":""}`,"aria-pressed":e===n.id,title:n.key?`${n.hint} (${n.key})`:n.hint,onClick:()=>t(n.id),children:[n.label,n.key&&(0,Bs.jsx)("kbd",{className:"lum-st-focus__key",children:n.key})]},n.id))})}async function pS(e){try{if(navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.top="-1000px",t.style.opacity="0",document.body.appendChild(t),t.focus(),t.select();let r=document.execCommand("copy");return document.body.removeChild(t),r}catch{return!1}}var mS=["clipFrom","clipTo","clipFromMs","clipToMs","clipFromUtc","clipToUtc","clipLoop"];function hS(e){let{sessionId:t,shareUrl:r,apiBaseUrl:a}=e,n=typeof window<"u"?window.location.href:void 0;if(r)try{if(r.includes(":id"))return new URL(r.replace(":id",encodeURIComponent(t)),n);let i=new URL(r,n);return i.pathname=`${i.pathname.replace(/\/+$/,"")}/sessions/${t}`,i}catch{}try{let i=new URL(window.location.href);if(t&&i.pathname.includes(t))return i}catch{}let o;try{o=new URL(a,window.location.href).origin}catch{o=window.location.origin}return new URL(`/sessions/${t}`,o)}function Zk({sessionId:e,shareUrl:t,apiBaseUrl:r}){let a=em(),n=_(d=>d.status),[o,i]=(0,It.useState)(null),s=(0,It.useRef)(void 0);(0,It.useEffect)(()=>()=>clearTimeout(s.current),[]);async function l(){let d=a.getState(),u=Math.max(0,Math.round(d.currentTime+d.offset)),f;try{let c=hS({sessionId:e,shareUrl:t,apiBaseUrl:r});c.searchParams.set("t",String(u)),d.selectedEventId?c.searchParams.set("event",d.selectedEventId):c.searchParams.delete("event");for(let p of["focus","sel","live",...mS])c.searchParams.delete(p);f=c.toString()}catch{return}await pS(f)&&(i(ne(u)),clearTimeout(s.current),s.current=setTimeout(()=>i(null),2e3))}return(0,$.jsxs)("button",{className:`lum-st-share ${o?"is-copied":""}`,onClick:l,disabled:n==="loading","aria-label":"Copy a link to this exact moment",title:"Copy a link to this exact moment",children:[o?(0,$.jsx)(Zn,{size:13,"aria-hidden":!0}):(0,$.jsx)(ba,{size:13,"aria-hidden":!0}),(0,$.jsx)("span",{children:o?`Copied @ ${o}`:"Copy link"})]})}function eI({sessionId:e,shareUrl:t,apiBaseUrl:r}){let a=em(),n=_(w=>w.status),[o,i]=(0,It.useState)(!1),[s,l]=(0,It.useState)(null),[d,u]=(0,It.useState)(null),[f,c]=(0,It.useState)(!1),[p,h]=(0,It.useState)(!1),m=(0,It.useRef)(void 0);(0,It.useEffect)(()=>()=>clearTimeout(m.current),[]);let S=()=>{let w=a.getState();return Math.max(0,Math.round(w.currentTime+w.offset))},g=s!=null&&d!=null&&d>s;function x(){let w=s,y=d;if(w==null||y==null||y<=w)return;let L=a.getState(),C=L.toRelative(w),M=L.toRelative(y);M<=C||(L.setClip(C,M,f),L.seek(C),L.play())}async function v(){let w=s,y=d;if(w==null||y==null||y<=w)return;let L;try{let C=hS({sessionId:e,shareUrl:t,apiBaseUrl:r});for(let M of["event","t","focus","sel","live",...mS])C.searchParams.delete(M);C.searchParams.set("clipFromMs",String(w)),C.searchParams.set("clipToMs",String(y)),f&&C.searchParams.set("clipLoop","1"),L=C.toString()}catch{return}await pS(L)&&(h(!0),clearTimeout(m.current),m.current=setTimeout(()=>h(!1),2e3))}function b(){l(null),u(null),a.getState().setClip(null,null)}return(0,$.jsxs)("div",{className:"lum-st-clipwrap",children:[(0,$.jsxs)("button",{className:`lum-st-clip ${o?"is-open":""}`,onClick:()=>i(w=>!w),disabled:n==="loading","aria-label":"Clip a segment","aria-expanded":o,title:"Clip a segment to play or share",children:[(0,$.jsx)(_s,{size:13,"aria-hidden":!0}),(0,$.jsx)("span",{children:"Clip"})]}),o&&(0,$.jsxs)("div",{className:"lum-st-clippop",role:"dialog","aria-label":"Clip a segment",children:[(0,$.jsxs)("div",{className:"lum-st-clippop__row",children:[(0,$.jsx)("span",{className:"lum-st-clippop__lbl",children:"Start"}),(0,$.jsx)("span",{className:"lum-st-clippop__val",children:s!=null?ne(s):"\u2014"}),(0,$.jsx)("button",{className:"lum-st-clippop__set",onClick:()=>l(S()),children:"Set to playhead"})]}),(0,$.jsxs)("div",{className:"lum-st-clippop__row",children:[(0,$.jsx)("span",{className:"lum-st-clippop__lbl",children:"End"}),(0,$.jsx)("span",{className:"lum-st-clippop__val",children:d!=null?ne(d):"\u2014"}),(0,$.jsx)("button",{className:"lum-st-clippop__set",onClick:()=>u(S()),children:"Set to playhead"})]}),(0,$.jsxs)("label",{className:"lum-st-clippop__loop",children:[(0,$.jsx)("input",{type:"checkbox",checked:f,onChange:w=>c(w.target.checked)}),"Loop the clip"]}),(0,$.jsx)("p",{className:"lum-st-clippop__hint",children:"Click a marker (or scrub) to a moment, then capture it."}),(0,$.jsxs)("div",{className:"lum-st-clippop__actions",children:[(0,$.jsxs)("button",{className:"lum-st-clippop__play",disabled:!g,onClick:x,children:[(0,$.jsx)(tn,{size:12,"aria-hidden":!0})," Play clip"]}),(0,$.jsxs)("button",{className:"lum-st-clippop__copy",disabled:!g,onClick:v,children:[p?(0,$.jsx)(Zn,{size:12,"aria-hidden":!0}):(0,$.jsx)(ba,{size:12,"aria-hidden":!0}),p?"Copied":"Copy clip link"]}),(0,$.jsx)("button",{className:"lum-st-clippop__clear",onClick:b,"aria-label":"Clear clip",children:(0,$.jsx)(rn,{size:12,"aria-hidden":!0})})]})]})]})}function tI({isFullscreen:e,onFullscreen:t,allowFullscreen:r=!0,sessionId:a,shareUrl:n,apiBaseUrl:o,onHelp:i,onBack:s,backLabel:l,topbarActions:d}){let u=_(M=>M.summary),f=_(M=>M.durationMs),c=_(M=>M.events),p=_(M=>M.openPalette),h=_(M=>M.status),m=_(M=>M.live),S=_(M=>M.following),g=_(M=>M.setFollowing),x=(0,It.useMemo)(()=>{let M=0,I=0,D=0,A=0;for(let k of c)if(k.type==="error")M++;else if(k.type==="console"&&k.level==="error")M++;else if(k.type==="network"){let ke=k;(ke.status>=400||ke.status===0)&&I++}else if(k.type==="custom"){let ke=k;ke.name==="rage_click"&&D++,ke.props&&ke.props.conversion===!0&&A++}return{errors:M,netFail:I,rage:D,conversions:A}},[c]),v=u?.conversionNames??[],b=v.length?`Conversions: ${v.join(", ")}`:`${x.conversions} conversions`,w=u?.customSignals??[],y=u?.device,L=u?.id??"\u2014",C=h==="loading";return(0,$.jsxs)("header",{className:"lum-st-topbar",children:[(0,$.jsxs)("div",{className:"lum-st-topbar__left",children:[s&&(0,$.jsx)("button",{className:"lum-st-topbar__back lum-iconbtn",onClick:s,"aria-label":l??"Back",title:l??"Back",children:(0,$.jsx)(Qa,{size:17})}),(0,$.jsx)("span",{className:"lum-st-logo","aria-hidden":!0,children:"\u25C6"}),(0,$.jsx)("strong",{className:"lum-st-topbar__title",children:"Strata"}),(0,$.jsx)("span",{className:"lum-st-topbar__sep",children:"\xB7"}),(0,$.jsx)("span",{className:"lum-st-topbar__sid lum-mono",title:String(L),children:String(L).slice(0,8)}),y&&(0,$.jsxs)("span",{className:"lum-st-topbar__device lum-muted",children:[y.type,y.browser?` \xB7 ${y.browser}`:""]}),u?.userId&&(0,$.jsxs)("span",{className:"lum-st-topbar__user lum-mono",title:`User: ${u.userId}`,children:[(0,$.jsx)(Ns,{size:12,"aria-hidden":!0})," ",u.userId]}),(0,$.jsx)("span",{className:"lum-st-topbar__clock lum-mono",children:C?"\u2014":ne(f)}),m&&(S?(0,$.jsxs)("span",{className:"lum-st-livebadge",title:"Watching live",children:[(0,$.jsx)("span",{className:"lum-st-livebadge__dot","aria-hidden":!0})," LIVE"]}):(0,$.jsxs)("button",{className:"lum-st-livebadge lum-st-livebadge--paused",onClick:()=>g(!0),title:"Jump back to the live edge",children:[(0,$.jsx)("span",{className:"lum-st-livebadge__dot","aria-hidden":!0})," GO LIVE"]}))]}),(0,$.jsxs)("div",{className:"lum-st-topbar__badges","aria-label":"Session triage badges",children:[(0,$.jsxs)("span",{className:`lum-st-badge lum-st-badge--error ${x.errors?"":"is-zero"}`,title:`${x.errors} errors`,children:["\u26A0 ",C?"\u2014":x.errors]}),(0,$.jsxs)("span",{className:`lum-st-badge lum-st-badge--net ${x.netFail?"":"is-zero"}`,title:`${x.netFail} failed requests`,children:["\u25C6 ",C?"\u2014":x.netFail]}),(0,$.jsxs)("span",{className:`lum-st-badge lum-st-badge--rage ${x.rage?"":"is-zero"}`,title:`${x.rage} rage clicks`,children:["\u21AF ",C?"\u2014":x.rage]}),!C&&x.conversions>0&&(0,$.jsxs)("span",{className:"lum-st-badge lum-st-badge--conv",title:b,children:["\u2726 ",v.length===1?v[0]:x.conversions]}),!C&&w.map(M=>(0,$.jsxs)("span",{className:"lum-st-badge lum-st-badge--signal",title:`Custom signal: ${M}`,children:["\u2756 ",M]},M))]}),(0,$.jsxs)("div",{className:"lum-st-topbar__right",children:[d,!m&&(0,$.jsx)(eI,{sessionId:a,shareUrl:n,apiBaseUrl:o}),!m&&(0,$.jsx)(Zk,{sessionId:a,shareUrl:n,apiBaseUrl:o}),(0,$.jsxs)("button",{className:"lum-st-cmdk",onClick:()=>p(!0),title:"Command palette (\u2318K)",children:[(0,$.jsx)(xs,{size:13}),(0,$.jsx)("span",{children:"K"})]}),(0,$.jsx)(Jk,{}),(0,$.jsx)("button",{className:"lum-iconbtn","aria-label":"Keyboard shortcuts (?)",onClick:i,title:"Shortcuts (?)",children:(0,$.jsx)(ws,{size:16})}),r&&(0,$.jsx)("button",{className:"lum-iconbtn","aria-label":e?"Exit fullscreen":"Fullscreen",onClick:t,title:"Fullscreen (F)",children:e?(0,$.jsx)(en,{size:16}):(0,$.jsx)(Za,{size:16})})]})]})}var rI=8e3;function aI(e){if(!e)return"";try{return new URL(e).pathname||"/"}catch{return e.split("?")[0]??e}}function tm(e,t){if(!e.length)return[];let r=[...e].sort((s,l)=>s.t-l.t),a=new Set([0]),n=0;for(let s of r)s.t-n>rI&&a.add(s.t),(s.type==="custom"&&["navigation","pageview"].includes(s.name)||s.type==="perf"&&s.metric==="navigation")&&a.add(s.t),n=s.t;let o=[...a].sort((s,l)=>s-l);o.push(Math.max(t,n)+1);let i=[];for(let s=0;s<o.length-1;s++){let l=o[s],d=o[s+1],u=r.filter(x=>x.t>=l&&x.t<d),f={errors:0,network:0,rage:0,dead:0,conversion:0},c="",p=u.length===0;for(let x of u)if(x.type==="error")f.errors++;else if(x.type==="console"&&x.level==="error")f.errors++;else if(x.type==="network"){f.network++;let v=x;(v.status===0||v.status>=400)&&f.errors++,v.url&&(c=v.url)}else if(x.type==="custom"){let v=x;v.name==="rage_click"?f.rage++:v.name==="dead_click"&&f.dead++,v.props&&v.props.conversion===!0&&f.conversion++}let h,m;s===0?(h="start",m="Session start"):f.conversion>0?(h="conversion",m="Converted"):f.errors>0?(h="error",m="Hit an error"):f.rage>0||f.dead>0?(h="frustration",m="Got stuck"):p?(h="idle",m="Paused"):f.network>3?(h="load",m="Loaded data"):(h="browse",m=c?`Browsed ${aI(c)}`:"Browsing");let S=[];f.errors&&S.push(`${f.errors} error${f.errors>1?"s":""}`),f.rage&&S.push(`${f.rage} rage`),f.network&&S.push(`${f.network} request${f.network>1?"s":""}`);let g=S.join(" \xB7 ")||`${Math.round((d-l)/1e3)}s`;i.push({id:`ch_${s}`,startT:l,endT:d,kind:h,title:m,subtitle:g,counts:f})}return i}function nI(){let e=_(h=>h.events),t=_(h=>h.markers),r=_(h=>h.durationMs),a=_(h=>h.offset),n=_(h=>h.summary),o=_(h=>h.seek),i=_(h=>h.select),s=_(h=>h.toRelative),[l,d]=(0,gu.useState)(!1),{text:u,clauses:f}=(0,gu.useMemo)(()=>{let h=n?.aiStory;if(h&&h.summary)return{text:h.summary,clauses:h.clauses.map(L=>({text:L.text,t:L.t,ref:L.ref}))};if(!e.length)return{text:"",clauses:[]};let m=tm(e,r+a),S=[],g=t.find(L=>L.kind==="rage"),x=t.find(L=>L.kind==="error"),v=t.find(L=>L.kind==="network"),b=t.find(L=>L.kind==="conversion"),w=[];x&&(w.push("Hit an error"),S.push({text:`error @ ${ne(s(x.t))}`,t:s(x.t),ref:x.ref})),v&&(w.push("a failed request"),S.push({text:`request @ ${ne(s(v.t))}`,t:s(v.t),ref:v.ref})),g&&(w.push("rage-clicked while stuck"),S.push({text:`rage @ ${ne(s(g.t))}`,t:s(g.t),ref:g.ref})),b&&(w.push("then converted"),S.push({text:`conversion @ ${ne(s(b.t))}`,t:s(b.t),ref:b.ref}));let y;if(w.length?y=`This visitor ${w.join(", ")}.`:m.length>1?y=`Calm session: ${m.slice(0,3).map(C=>C.title.toLowerCase()).join(" \u2192 ")}.`:y="",S.length<2)for(let L of m.slice(1,4))S.push({text:`${L.title} ${ne(s(L.startT))}`,t:s(L.startT)});return{text:y,clauses:S}},[e,t,r,a,s,n]);if(!u&&!n)return(0,Dt.jsxs)("div",{className:"lum-st-synopsis lum-st-synopsis--empty",children:[(0,Dt.jsx)(Zt,{size:13,"aria-hidden":!0})," ",(0,Dt.jsx)("span",{className:"lum-muted",children:"No AI summary for this session."})]});let c=u||"A quiet, uneventful session.",p=c.length>90;return(0,Dt.jsxs)("div",{className:`lum-st-synopsis ${l?"is-expanded":""}`,role:"note","aria-label":"Session synopsis",children:[(0,Dt.jsx)("span",{className:"lum-st-synopsis__icon","aria-hidden":!0,children:(0,Dt.jsx)(Zt,{size:13})}),(0,Dt.jsx)("button",{type:"button",className:"lum-st-synopsis__text",title:p?c:void 0,onClick:p?()=>d(h=>!h):void 0,"aria-expanded":p?l:void 0,children:c}),p&&(0,Dt.jsx)("button",{type:"button",className:"lum-st-synopsis__more",onClick:()=>d(h=>!h),"aria-label":l?"Collapse summary":"Read full summary",title:l?"Collapse":"Read full summary",children:l?(0,Dt.jsx)(gs,{size:14}):(0,Dt.jsx)(Ka,{size:14})}),(0,Dt.jsx)("span",{className:"lum-st-synopsis__chips",children:f.map((h,m)=>(0,Dt.jsxs)("button",{className:"lum-st-chip",onClick:()=>{h.ref?i(h.ref):o(h.t)},children:["\u27F6 ",h.text]},m))})]})}var oI=(0,gS.forwardRef)(function({onRetry:t,overlay:r},a){let n=_(c=>c.status),o=_(c=>c.hasReplay),i=_(c=>c.error),s=_(c=>c.loadProgress),l=_(c=>!!c.controller),d=_(c=>c.isSkimming),u=_(c=>c.isSkipping),f=_(c=>c.lastSkipMs);return(0,Ne.jsxs)("div",{className:"lum-st-monitor",children:[(0,Ne.jsxs)("div",{className:"lum-st-monitor__frame",children:[(0,Ne.jsx)("div",{ref:a,className:"lum-pl-mount lum-st-mount","aria-label":"Session replay",role:"img"}),r,d&&(0,Ne.jsxs)("div",{className:"lum-st-skimbadge","aria-live":"polite",children:[(0,Ne.jsx)(an,{size:13,"aria-hidden":!0})," Skimming idle \xB7 8\xD7"]}),u&&!d&&(0,Ne.jsxs)("div",{className:"lum-st-skimbadge lum-st-skimbadge--skip","aria-live":"polite",children:[(0,Ne.jsx)(Ja,{size:13,"aria-hidden":!0})," Skipped idle (",Qk(f),")"]}),(0,Ne.jsx)("div",{className:"lum-st-monitor__edge","aria-hidden":!0})]}),n==="loading"&&(0,Ne.jsx)("div",{className:"lum-pl-overlay",children:(0,Ne.jsxs)("div",{className:"lum-pl-loading",children:[(0,Ne.jsx)(Wc,{width:"70%",height:18}),(0,Ne.jsx)(Wc,{width:"90%",height:120}),(0,Ne.jsx)("div",{className:"lum-pl-progress",children:(0,Ne.jsx)("div",{className:"lum-pl-progress__bar",style:{width:`${Math.round(s*100)}%`}})}),(0,Ne.jsx)("span",{className:"lum-muted",children:"Loading replay\u2026"})]})}),n==="buffering"&&o&&l&&(0,Ne.jsxs)("div",{className:"lum-st-buffering","aria-live":"polite",children:[(0,Ne.jsx)("span",{className:"lum-st-buffering__spinner","aria-hidden":!0}),(0,Ne.jsx)("span",{children:"Buffering\u2026"})]}),n==="error"&&(0,Ne.jsx)("div",{className:"lum-pl-overlay",children:(0,Ne.jsx)(Yx,{title:"We couldn't load this replay.",action:t?(0,Ne.jsx)("button",{className:"lum-btn lum-btn--primary lum-btn--sm",onClick:t,children:"Retry"}):void 0,children:i??"View the console and network logs instead."})}),n!=="loading"&&n!=="error"&&!o&&(0,Ne.jsx)("div",{className:"lum-pl-overlay",children:(0,Ne.jsx)(Jt,{title:"This session wasn't recorded for replay.",icon:(0,Ne.jsx)(bs,{size:28}),children:"You can still review its console and network activity on the timeline."})})]})});function sI(e){try{let t=e.replayer.wrapper;if(!t)return{scale:1,left:0,top:0};let r=t.style.transform||"",a=/scale\(([0-9.]+)\)/.exec(r),n=a?parseFloat(a[1]):1,o=parseFloat(t.style.left||"0")||0,i=parseFloat(t.style.top||"0")||0;return{scale:n,left:o,top:i}}catch{return{scale:1,left:0,top:0}}}function iI(e,t,r,a){if(!e||!t)return{x:0,y:0,ok:!1};let{scale:n,left:o,top:i}=sI(e);return{x:o+r*n,y:i+a*n,ok:!0}}function lI(e){if(!e)return null;let t=e.x??e.clientX??e.pageX,r=e.y??e.clientY??e.pageY;return typeof t=="number"&&typeof r=="number"?{x:t,y:r}:null}function uI({stageRef:e}){let t=_(u=>u.controller),r=_(u=>u.currentTime),a=_(u=>u.events),n=_(u=>u.offset),o=(0,xS.useMemo)(()=>{let u=r+n,f=null,c=700;for(let p of a){let h=Math.abs(p.t-u);h>c||(p.type==="custom"&&p.name==="rage_click"?(f={kind:"rage",props:p.props},c=h):p.type==="error"&&(f={kind:"error"},c=h))}return f},[a,r,n]);if(!o)return null;let i=lI(o.props),s=i?iI(t,e.current,i.x,i.y):null,d=s?.ok?{left:`${s.x}px`,top:`${s.y}px`}:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"};return(0,lu.jsx)("div",{className:"lum-st-overlay","aria-hidden":!0,children:(0,lu.jsx)("div",{className:`lum-st-callout lum-st-callout--${o.kind}`,style:d,children:(0,lu.jsx)("span",{className:"lum-st-callout__ring"})})})}function dI(e){let t=_(a=>a.currentTime),r=-1;for(let a=0;a<e.length&&e[a]<=t+1;a++)r=a;return r}function cI(e,t){let r=(0,xu.useRef)(null);return(0,xu.useEffect)(()=>{if(!t||e<0)return;r.current?.querySelector(`[data-row="${e}"]`)?.scrollIntoView({block:"nearest"})},[e,t]),r}function yS(e){return e.status===0||e.status>=500?"error":e.status>=400?"warn":e.status>=300?"info":"default"}function wS(e){try{let t=new URL(e);return(t.pathname.split("/").pop()||t.hostname)+(t.search?t.search:"")}catch{return e.split("/").pop()||e}}function fI({n:e,relStart:t}){let[r,a]=(0,vS.useState)("headers"),n=["headers","payload","response","timing"];return(0,J.jsxs)("div",{className:"lum-pl-detail",children:[(0,J.jsxs)("div",{className:"lum-pl-detail__head lum-mono",children:[(0,J.jsx)(qn,{tone:yS(e),children:e.status||(e.error??"ERR")})," ",e.method," ",(0,J.jsxs)("span",{className:"lum-muted",children:["@ ",ne(t)]}),(0,J.jsx)("div",{className:"lum-pl-detail__url",children:e.url})]}),(0,J.jsx)("div",{className:"lum-pl-tabs2",children:n.map(o=>(0,J.jsx)("button",{className:`lum-pl-tab2 ${r===o?"is-active":""}`,onClick:()=>a(o),children:o[0].toUpperCase()+o.slice(1)},o))}),r==="headers"&&(0,J.jsxs)("div",{className:"lum-pl-kv lum-mono",children:[(0,J.jsx)("h5",{children:"General"}),(0,J.jsx)(ou,{k:"URL",v:e.url}),(0,J.jsx)(ou,{k:"Method",v:e.method}),(0,J.jsx)(ou,{k:"Status",v:String(e.status)}),(0,J.jsx)(ou,{k:"Initiator",v:e.initiator}),(0,J.jsx)("h5",{children:"Request headers"}),Qw(e.requestHeaders),(0,J.jsx)("h5",{children:"Response headers"}),Qw(e.responseHeaders)]}),r==="payload"&&(0,J.jsx)(Yw,{label:"Request body",body:e.requestBody}),r==="response"&&(0,J.jsx)(Yw,{label:"Response",body:e.responseBody}),r==="timing"&&(0,J.jsx)(pI,{n:e})]})}function ou({k:e,v:t}){return(0,J.jsxs)("div",{className:"lum-pl-kv__row",children:[(0,J.jsx)("span",{className:"lum-muted",children:e}),(0,J.jsx)("span",{className:"lum-pl-kv__val",children:t})]})}function Qw(e){return!e||Object.keys(e).length===0?(0,J.jsx)("div",{className:"lum-muted",children:"None captured."}):(0,J.jsx)(J.Fragment,{children:Object.entries(e).map(([t,r])=>(0,J.jsxs)("div",{className:"lum-pl-kv__row",children:[(0,J.jsx)("span",{className:"lum-muted",children:t}),(0,J.jsx)("span",{className:"lum-pl-kv__val",children:r==="redacted"?(0,J.jsx)("em",{className:"lum-pl-redacted",children:"redacted"}):r})]},t))})}function Yw({label:e,body:t}){return t?(0,J.jsxs)("div",{children:[(0,J.jsxs)("h5",{children:[e,t.contentType?` \xB7 ${t.contentType}`:""]}),t.redacted&&(0,J.jsx)("div",{className:"lum-pl-redacted",children:"Contains redacted fields."}),(0,J.jsxs)("pre",{className:"lum-pl-json",children:[mI(t.preview),t.truncated?`
|
|
139
|
-
\u2026 (truncated)`:""]})
|
|
140
|
-
`,s=Array.from(e.children).slice(0,30);for(let l of s)i+=CS(l,t+1);return i}function LI(){return(0,Fs.jsx)(Jt,{title:"State capture is off for this site",children:"Enable the framework-state plugin (Redux / Zustand / Pinia) to see state snapshots on the same clock."})}function kI(){return(0,Kp.jsx)("div",{className:"lum-st-inspbody",children:(0,Kp.jsx)(CI,{})})}function II(){return(0,Qp.jsx)("div",{className:"lum-st-inspbody",children:(0,Qp.jsx)(LI,{})})}var LS=/^(.+):(started|ended)$/;function MI(e){return LS.test(e)}function _I(e){let t=new Map,r=[];for(let a of e){if(a.type!=="custom")continue;let n=a,o=n.props??{};if(o.conversion===!0)continue;let i=LS.exec(n.name);if(!i)continue;let s=typeof o.task=="string"&&o.task?o.task:i[1],l=o.spanId!=null?String(o.spanId):`${s}@${a.t}`,d=t.get(l);d||(d={spanId:l,task:s},t.set(l,d),r.push(l)),i[2]==="started"?(d.startT=a.t,d.startEvent=n):(d.endT=a.t,d.endEvent=n)}return r.map(a=>t.get(a))}function RI(e){let t=e.startT!=null,r=e.endT!=null,a=t?e.startT:e.endT??0,n=t&&r?Math.max(0,e.endT-e.startT):void 0,o=e.startEvent??e.endEvent,i=n!=null?cu(n):t?"running\u2026":"ended (no start)";return{id:o.id,t:a,kind:"task",lane:"task",severity:"info",title:e.task,subtitle:i,durationMs:n,spanId:e.spanId,running:t&&!r,raw:o}}function EI(e){let t=e.args[0];return t?t.kind==="string"?t.value:t.kind==="error"?`${t.name}: ${t.message}`:t.kind==="object"?t.preview:t.kind==="primitive"?String(t.value):t.kind==="dom"?t.selector:`console.${e.level}`:`console.${e.level}`}function Vp(e){try{let t=new URL(e);return(t.pathname.split("/").pop()||t.hostname)+(t.search?t.search:"")}catch{return e.split("/").pop()||e}}var PI=new Set(["_tag","identify","metadata"]);function rm(e){let t=[];for(let r of _I(e))t.push(RI(r));for(let r of e)switch(r.type){case"console":{let a=r,n=a.level==="error"?"error":a.level==="warn"?"warn":a.level==="info"?"info":"muted";t.push({id:r.id,t:r.t,kind:"console",lane:"console",severity:n,title:EI(a),subtitle:a.source?.url?`${Vp(a.source.url)}:${a.source.line??""}`:void 0,raw:r});break}case"network":{let a=r,n=a.status===0||a.status>=400,o=a.timing?.duration>2e3;t.push({id:r.id,t:r.t,kind:"network",lane:"network",severity:n?"error":o?"warn":a.ok?"ok":"muted",title:`${a.method} ${Vp(a.url)}`,subtitle:`${a.status||a.error||"failed"} \xB7 ${Math.round(a.timing?.duration??0)}ms`,durationMs:a.timing?.duration,raw:r});break}case"error":{let a=r;t.push({id:r.id,t:r.t,kind:"error",lane:"error",severity:"error",title:`${a.name}: ${a.message}`,subtitle:a.source?.url?`${Vp(a.source.url)}:${a.source.line??""}`:void 0,raw:r});break}case"perf":{let a=r;if(a.rating!=="poor")break;t.push({id:r.id,t:r.t,kind:"perf",lane:"console",severity:"warn",title:`${a.metric} ${Math.round(a.value)}${a.metric==="CLS"?"":"ms"}`,subtitle:"poor",raw:r});break}case"custom":{let a=r;if(!!!(a.props&&a.props.conversion===!0)&&(MI(a.name)||PI.has(a.name)))break;a.name==="rage_click"?t.push({id:r.id,t:r.t,kind:"rage",lane:"interaction",severity:"warn",title:"Rage click",subtitle:Jw(a),raw:r}):a.name==="dead_click"?t.push({id:r.id,t:r.t,kind:"dead",lane:"interaction",severity:"muted",title:"Dead click",subtitle:Jw(a),raw:r}):a.name==="navigation"||a.name==="pageview"?t.push({id:r.id,t:r.t,kind:"nav",lane:"nav",severity:"info",title:"Page change",raw:r}):a.props&&a.props.conversion===!0?t.push({id:r.id,t:r.t,kind:"conversion",lane:"interaction",severity:"ok",title:`Conversion: ${a.name}`,raw:r}):t.push({id:r.id,t:r.t,kind:"custom",lane:"interaction",severity:"muted",title:a.name,raw:r});break}default:break}return t.sort((r,a)=>r.t-a.t)}function Jw(e){return e.props?.selector??""}function TI(e,t,r){let a=e[e.length-1];return a||[t,r]}function Yp(e,t,r){let[a,n]=t,o=n-a;return o<=0?0:(e-a)/o*r}function kS(e,t,r){let[a,n]=t,o=n-a;return r<=0?a:a+e/r*o}function fu(e,t){let[r,a]=t,n=a-r;return n<=0?0:Math.max(0,Math.min(1,(e-r)/n))}function NI(e,t,r,a,n,o=200){let[i,s]=e,l=s-i,d=Math.max(o,Math.min(n-a,l*r)),u=l>0?(t-i)/l:.5,f=t-u*d,c=f+d;return f<a&&(f=a,c=f+d),c>n&&(c=n,f=c-d),f=Math.max(a,f),c=Math.min(n,c),c-f>=n-a-1?null:[f,c]}function AI(){let e=(0,ka.useRef)(null),[t,r]=(0,ka.useState)(0);return(0,ka.useEffect)(()=>{let a=e.current;if(!a)return;let n=new ResizeObserver(()=>r(a.clientWidth));return n.observe(a),r(a.clientWidth),()=>n.disconnect()},[]),{ref:e,width:t}}function IS(){let e=_(a=>a.offset),t=_(a=>a.durationMs),r=_(a=>a.zoomStack);return(0,ka.useMemo)(()=>TI(r,e,e+t),[r,e,t])}var Zw=28,Gp=150,DI=6e4;function OI(e){let t=e.timing.duration||0,{dns:r=0,tcp:a=0,tls:n=0,ttfb:o=0,download:i=0}=e.timing,s=r+a+n+o+i;return t<=0||s<=0?[{cls:"tone",ms:Math.max(t,1)}]:[{cls:"blocked",ms:Math.max(0,t-s)},{cls:"dns",ms:r},{cls:"connect",ms:a},{cls:"ssl",ms:n},{cls:"wait",ms:o},{cls:"download",ms:i}].filter(d=>d.ms>0)}function FI(e){let t=Math.max(1e3,e),r=Math.pow(10,Math.floor(Math.log10(t/1e3))),a=t/1e3/r;return(a>=5?5:a>=2?2:1)*r*1e3}function BI(){let e=_(C=>C.events),t=_(C=>C.offset),r=_(C=>C.toRelative),a=_(C=>C.selectAndSeek),n=_(C=>C.selectedEventId),o=_(C=>C.zoomStack),i=IS(),s=(0,Ke.useRef)(null),l=(0,Ke.useRef)(null),[d,u]=(0,Ke.useState)(600),f=(0,Ke.useCallback)(C=>{if(l.current?.disconnect(),l.current=null,s.current=C,!C)return;let M=()=>u(Math.max(120,C.clientWidth-Gp));M();let I=new ResizeObserver(M);I.observe(C),l.current=I},[]),c=(0,Ke.useMemo)(()=>e.filter(C=>C.type==="network").slice().sort((C,M)=>C.t-M.t),[e]),p=(0,Ke.useMemo)(()=>{if(!c.length)return null;let C=1/0,M=-1/0;for(let I of c){let D=r(I.t),A=D+(I.timing.duration||0);D<C&&(C=D),A>M&&(M=A)}return[C,Math.max(C+1,M)]},[c,r]),h=o.length>0,m=h?i[0]-t:p?.[0]??0,S=h?Math.max(1,i[1]-i[0]):Math.max(1,(p?.[1]??1)-(p?.[0]??0))*1.02,g=h?S:Math.min(S,DI),x=d/g,v=S*x,b=v>d+1,w=(0,Ke.useMemo)(()=>c.map(C=>{let M=r(C.t),I=M+(C.timing.duration||0);return{id:C.id,n:C,start:M,end:I,tone:yS(C),leftPx:(M-m)*x,widthPx:Math.max((I-M)*x,2)}}),[c,r,m,x]),y=c.filter(C=>C.status===0||C.status>=400).length,L=c.reduce((C,M)=>C+(M.responseSize??0),0);return c.length?(0,Me.jsxs)("div",{className:"lum-wf",children:[(0,Me.jsxs)("div",{className:"lum-wf__toolbar lum-mono lum-muted",children:[c.length," requests \xB7 ",Kk(L)," \xB7 ",y," failed",b&&(0,Me.jsxs)("span",{className:"lum-wf__hint",children:[" \xB7 ",Math.round(g/1e3),"s window \xB7 scroll \u2192"]})]}),(0,Me.jsx)("div",{className:"lum-wf__scroll",ref:f,children:(0,Me.jsxs)("div",{className:"lum-wf__grid",style:{width:Gp+v},children:[(0,Me.jsx)(zI,{scrollRef:s,t0:m,pxPerMs:x,windowMs:g,vpTrackW:d,trackW:v}),(0,Me.jsxs)("div",{className:"lum-wf__rows",children:[w.map((C,M)=>(0,Me.jsxs)("div",{"data-row":M,className:`lum-wf__row lum-wf__row--${C.tone} ${C.id===n?"is-selected":""}`,style:{width:Gp+v},onClick:()=>a(C.id),title:C.n.url,children:[(0,Me.jsxs)("div",{className:"lum-wf__label lum-mono",children:[(0,Me.jsx)("span",{className:`lum-wf__dot lum-wf__dot--${C.tone}`,"aria-hidden":!0}),(0,Me.jsx)("span",{className:"lum-wf__name",children:wS(C.n.url)}),(0,Me.jsx)("span",{className:"lum-wf__method lum-muted",children:C.n.method}),(0,Me.jsx)("span",{className:"lum-wf__time lum-muted",children:cu(C.n.timing.duration)})]}),(0,Me.jsx)("div",{className:"lum-wf__track",style:{width:v},children:(0,Me.jsx)("span",{className:`lum-wf__bar lum-wf__bar--${C.tone}`,style:{left:C.leftPx,width:C.widthPx},children:OI(C.n).map((I,D)=>(0,Me.jsx)("span",{className:`lum-wf__seg lum-wf__seg--${I.cls}`,style:{flexGrow:I.ms}},D))})})]},C.id)),(0,Me.jsx)(UI,{bars:w,t0:m,pxPerMs:x,vpTrackW:d,scrollRef:s})]})]})})]}):(0,Me.jsx)(Jt,{title:"No network activity",children:"Nothing matched this filter."})}function zI({scrollRef:e,t0:t,pxPerMs:r,windowMs:a,vpTrackW:n,trackW:o}){let[i,s]=(0,Ke.useState)(0);(0,Ke.useEffect)(()=>{let d=e.current;if(!d)return;let u=()=>s(d.scrollLeft);return d.addEventListener("scroll",u,{passive:!0}),u(),()=>d.removeEventListener("scroll",u)},[e]);let l=(0,Ke.useMemo)(()=>{let d=FI(a/6),u=i/r,f=(i+n)/r,c=[],p=Math.max(0,Math.floor(u/d)*d);for(let h=p;h<=f+d;h+=d)c.push({leftPx:h*r,label:ne(t+h)});return c},[a,i,r,n,t]);return(0,Me.jsxs)("div",{className:"lum-wf__ruler","aria-hidden":!0,children:[(0,Me.jsx)("div",{className:"lum-wf__rulerspacer"}),(0,Me.jsx)("div",{className:"lum-wf__rulertrack",style:{width:o},children:l.map((d,u)=>(0,Me.jsx)("span",{className:"lum-wf__tick",style:{left:d.leftPx},children:d.label},u))})]})}function UI({bars:e,t0:t,pxPerMs:r,vpTrackW:a,scrollRef:n}){let o=_(c=>c.currentTime),i=_(c=>c.status),s=(0,Ke.useRef)(-1),l=(0,Ke.useRef)(0);(0,Ke.useEffect)(()=>{let c=n.current;if(!c)return;let p=()=>{l.current=performance.now()+1500};return c.addEventListener("wheel",p,{passive:!0}),c.addEventListener("pointerdown",p,{passive:!0}),()=>{c.removeEventListener("wheel",p),c.removeEventListener("pointerdown",p)}},[n]);let d=(o-t)*r,u=[],f=-1;for(let c=0;c<e.length;c++){let p=e[c];p.start<=o+1&&(f=c),o>=p.start&&o<=p.end+1&&u.push(c)}return(0,Ke.useEffect)(()=>{i!=="playing"||f<0||f===s.current||(s.current=f,n.current?.querySelector(`[data-row="${f}"]`)?.scrollIntoView({block:"nearest",inline:"nearest"}))},[f,i,n]),(0,Ke.useEffect)(()=>{let c=n.current;if(!c||i!=="playing"||performance.now()<l.current)return;let p=c.scrollLeft;if(d<p+.1*a||d>p+.9*a){let h=Math.max(0,c.scrollWidth-c.clientWidth);c.scrollLeft=Math.max(0,Math.min(h,d-.25*a))}},[d,i,a,n]),(0,Me.jsxs)("div",{className:"lum-wf__cursor",style:{height:e.length*Zw},"aria-hidden":!0,children:[u.map(c=>{let p=e[c];return(0,Me.jsx)("div",{className:"lum-wf__running",style:{top:c*Zw+7,height:14,left:p.leftPx,width:Math.max(2,p.widthPx)}},p.id)}),(0,Me.jsx)("div",{className:"lum-wf__playhead",style:{left:d}})]})}function qI(){let e=_(f=>f.events),t=_(f=>f.summary),r=_(f=>f.selectedEventId),a=_(f=>f.selectAndSeek),n=_(f=>f.toRelative),[o,i]=(0,zs.useState)(""),s=(0,zs.useMemo)(()=>rm(e).filter(f=>f.kind==="task"),[e]),l=t?.tags??[],d=o.trim().toLowerCase(),u=(0,zs.useMemo)(()=>d?s.filter(f=>f.title.toLowerCase().includes(d)):s,[s,d]);return(0,xt.jsxs)("div",{className:"lum-st-spans",children:[l.length>0&&(0,xt.jsx)("div",{className:"lum-st-spans__tags","aria-label":"Session tags",children:l.map(f=>(0,xt.jsxs)("span",{className:"lum-st-tag",children:["#",f]},f))}),(0,xt.jsxs)("div",{className:"lum-st-spans__search",children:[(0,xt.jsx)("input",{className:"lum-st-spans__input lum-mono",placeholder:"Search tasks\u2026",value:o,onChange:f=>i(f.target.value),"aria-label":"Search task spans by name"}),s.length>0&&(0,xt.jsxs)("span",{className:"lum-st-spans__count lum-muted",children:[u.length,"/",s.length]})]}),s.length===0?(0,xt.jsx)(Jt,{title:"No tasks tracked",children:"Call Obsrviq.startTask('name') / endTask('name') to record searchable sub-events on the session."}):u.length===0?(0,xt.jsx)(Jt,{title:"No tasks match that search"}):(0,xt.jsx)("div",{className:"lum-st-spans__rows lum-mono",role:"list","aria-label":"Task spans",children:u.map(f=>(0,xt.jsxs)("button",{className:`lum-st-spanrow ${f.id===r?"is-selected":""} ${f.running?"is-running":""}`,onClick:()=>a(f.id),"aria-label":`${f.title} (${f.subtitle??""}) @ ${ne(n(f.t))}`,children:[(0,xt.jsx)("span",{className:"lum-st-spanrow__glyph","aria-hidden":!0,children:"\u25B0"}),(0,xt.jsx)("span",{className:"lum-st-spanrow__time",children:ne(n(f.t))}),(0,xt.jsx)("span",{className:"lum-st-spanrow__title",children:f.title}),(0,xt.jsx)("span",{className:"lum-st-spanrow__dur lum-muted",children:f.subtitle})]},f.id))})]})}var $I={console:"\u203A",network:"\u25AD",error:"\u25CF",rage:"\u25C6",dead:"\u25CB",conversion:"\u2726",nav:"\u258E",perf:"\u25C7",task:"\u25B0",custom:"\xB7"},HI=[{id:"all",label:"All"},{id:"network",label:"Network"},{id:"console",label:"Console"},{id:"error",label:"Errors"},{id:"signal",label:"Signals"},{id:"task",label:"Tasks"},{id:"nav",label:"Nav"}];function WI(e,t){switch(t){case"all":return!0;case"network":return e.kind==="network";case"console":return e.kind==="console"||e.kind==="perf";case"error":return e.kind==="error"||e.severity==="error";case"signal":return e.kind==="rage"||e.kind==="dead"||e.kind==="conversion";case"task":return e.kind==="task";case"nav":return e.kind==="nav";default:return!0}}function eS(){let e=_(p=>p.events),t=_(p=>p.feedFilter),r=_(p=>p.setFeedFilter),a=_(p=>p.selectedEventId),n=_(p=>p.selectionRange),o=_(p=>p.selectAndSeek),i=_(p=>p.toRelative),s=_(p=>p.status),l=(0,uu.useMemo)(()=>rm(e),[e]),d=(0,uu.useMemo)(()=>{let p=l.filter(h=>WI(h,t));return n&&(p=p.filter(h=>h.t>=n[0]&&h.t<=n[1])),p},[l,t,n]),u=(0,uu.useMemo)(()=>d.map(p=>i(p.t)),[d,i]),f=dI(u),c=cI(f,s==="playing");return(0,Nt.jsxs)("div",{className:"lum-st-feed",children:[(0,Nt.jsx)("div",{className:"lum-st-feed__chips",children:HI.map(p=>(0,Nt.jsx)("button",{className:`lum-pl-chip ${t===p.id?"is-active":""}`,onClick:()=>r(p.id),children:p.label},p.id))}),t==="network"?(0,Nt.jsx)(BI,{}):t==="task"?(0,Nt.jsx)(qI,{}):d.length===0?(0,Nt.jsx)(Jt,{title:"Nothing matched this filter"}):(0,Nt.jsx)("div",{className:"lum-st-feed__rows lum-mono",ref:c,role:"log","aria-label":"Unified activity feed",children:d.map((p,h)=>(0,Nt.jsxs)("button",{"data-row":h,className:`lum-st-feedrow lum-st-feedrow--${p.severity} ${h===f?"is-active":""} ${p.id===a?"is-selected":""}`,onClick:()=>o(p.id),"aria-label":`${p.title} @ ${ne(i(p.t))}`,children:[(0,Nt.jsx)("span",{className:"lum-st-feedrow__glyph","aria-hidden":!0,children:$I[p.kind]}),(0,Nt.jsx)("span",{className:"lum-st-feedrow__time",children:ne(i(p.t))}),(0,Nt.jsx)("span",{className:"lum-st-feedrow__title",children:p.title}),p.subtitle&&(0,Nt.jsx)("span",{className:"lum-st-feedrow__sub lum-muted",children:p.subtitle})]},p.id))})]})}function tS({feedFocusKey:e}){let t=_(u=>u.selectedEventId),r=_(u=>u.events),a=_(u=>u.select),[n,o]=(0,ar.useState)("feed"),i=(0,ar.useRef)(null),s=(0,ar.useMemo)(()=>r.find(u=>u.id===t)??null,[r,t]);(0,ar.useEffect)(()=>{t&&t!==i.current&&o("detail"),!t&&n==="detail"&&o("feed"),i.current=t},[t]);let l=n==="detail"&&!s?"feed":n,d=[{id:"feed",label:"Feed"},...s?[{id:"detail",label:"Detail"}]:[],{id:"dom",label:"DOM"},{id:"state",label:"State"}];return(0,Z.jsxs)("aside",{className:"lum-st-inspector","aria-label":"Inspector",children:[(0,Z.jsxs)("div",{className:"lum-st-inspector__tabs",children:[d.map(u=>(0,Z.jsx)("button",{className:`lum-pl-tab2 ${l===u.id?"is-active":""}`,onClick:()=>o(u.id),children:u.label},u.id)),s&&(0,Z.jsx)("button",{className:"lum-st-inspector__clear","aria-label":"Clear selection (Esc)",onClick:()=>a(null),children:(0,Z.jsx)(rn,{size:13})})]}),(0,Z.jsxs)("div",{className:"lum-st-inspector__body",children:[l==="feed"&&(0,Z.jsx)(eS,{}),l==="dom"&&(0,Z.jsx)(kI,{}),l==="state"&&(0,Z.jsx)(II,{}),l==="detail"&&s&&(0,Z.jsx)(jI,{ev:s}),l==="detail"&&!s&&(0,Z.jsx)(eS,{})]})]},e)}function jI({ev:e}){let t=_(r=>r.toRelative);if(e.type==="network"){let r=e;return(0,Z.jsxs)("div",{className:"lum-st-inspbody",children:[(0,Z.jsx)("div",{className:"lum-st-inspector__crumb lum-mono",children:wS(r.url)}),(0,Z.jsx)(fI,{n:r,relStart:t(r.t)}),(0,Z.jsx)(Xp,{ev:e})]})}if(e.type==="error")return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(hI,{ev:e}),(0,Z.jsx)("div",{className:"lum-st-inspbody",children:(0,Z.jsx)(Xp,{ev:e})})]});if(e.type==="console")return(0,Z.jsx)(bI,{ev:e});if(e.type==="custom"){let r=e;return(0,Z.jsxs)("div",{className:"lum-st-inspbody lum-pl-detail",children:[(0,Z.jsxs)("div",{className:"lum-pl-detail__head",children:[(0,Z.jsx)("strong",{children:r.name})," ",(0,Z.jsxs)("span",{className:"lum-muted lum-mono",children:["@ ",ne(t(e.t))]})]}),r.props&&(0,Z.jsx)("pre",{className:"lum-pl-json",children:JSON.stringify(r.props,null,2).slice(0,1200)}),(0,Z.jsx)(Xp,{ev:e})]})}if(e.type==="perf"){let r=e;return(0,Z.jsx)("div",{className:"lum-st-inspbody lum-pl-detail",children:(0,Z.jsxs)("div",{className:"lum-pl-detail__head",children:[(0,Z.jsx)("strong",{children:r.metric})," ",(0,Z.jsx)("span",{className:"lum-mono",children:Math.round(r.value)})," ",(0,Z.jsx)("span",{className:"lum-muted",children:r.rating})]})})}return(0,Z.jsx)("div",{className:"lum-st-inspbody lum-muted",children:"No detail view for this event."})}function Xp({ev:e}){let t=Dk(),[r,a]=(0,ar.useState)(""),[n,o]=(0,ar.useState)("idle"),i=(0,ar.useRef)(null);if((0,ar.useEffect)(()=>(a(""),o("idle"),i.current?.abort(),()=>i.current?.abort()),[e.id]),!t)return null;let s=async()=>{i.current?.abort();let l=new AbortController;i.current=l,a(""),o("loading");try{let d=`${t.apiBaseUrl.replace(/\/$/,"")}/v1/sessions/${t.sessionId}/explain`,u="";for await(let f of Ok(d,t,{ref:e.id},l.signal))if(f.kind==="token"&&f.text)u+=f.text,a(u);else if(f.kind==="error"){o("error"),a(f.message||"Explain failed.");return}o("done")}catch(d){if(l.signal.aborted)return;o("error"),a(d instanceof Error?d.message:"Explain failed.")}};return(0,Z.jsx)("div",{className:"lum-st-explain",children:n==="idle"?(0,Z.jsxs)("button",{className:"lum-st-explain__btn",onClick:s,children:[(0,Z.jsx)(Zt,{size:13,"aria-hidden":!0})," Explain with AI"]}):(0,Z.jsxs)("div",{className:"lum-st-explain__out",role:"status","aria-live":"polite",children:[(0,Z.jsxs)("span",{className:"lum-st-explain__label",children:[(0,Z.jsx)(Zt,{size:12,"aria-hidden":!0})," Likely cause",n==="loading"&&(0,Z.jsx)("span",{className:"lum-st-explain__dots","aria-hidden":!0,children:" \u2026"})]}),(0,Z.jsx)("p",{className:`lum-st-explain__text ${n==="error"?"is-error":""}`,children:r||"\u2026"}),n!=="loading"&&(0,Z.jsx)("button",{className:"lum-st-explain__re",onClick:s,children:"Regenerate"})]})})}var eo={error:6,net5xx:5,net4xx:4,rage:3,dead:2,nav:1};function VI(e){let t=[];for(let r of e)if(r.type==="error")t.push({t:r.t,kind:"error",rank:eo.error,ref:r.id,label:`${r.name??"Error"}: ${r.message??""}`});else if(r.type==="console"&&r.level==="error")t.push({t:r.t,kind:"error",rank:eo.error,ref:r.id,label:"console.error"});else if(r.type==="network"){let a=r;a.status>=500||a.status===0?t.push({t:r.t,kind:"net5xx",rank:eo.net5xx,ref:r.id,label:`${a.method} ${a.url} \u2014 ${a.status||"failed"}`}):a.status>=400&&t.push({t:r.t,kind:"net4xx",rank:eo.net4xx,ref:r.id,label:`${a.method} ${a.url} \u2014 ${a.status}`})}else if(r.type==="custom"){let a=r;a.name==="rage_click"?t.push({t:r.t,kind:"rage",rank:eo.rage,ref:r.id,label:"Rage click"}):a.name==="dead_click"&&t.push({t:r.t,kind:"dead",rank:eo.dead,ref:r.id,label:"Dead click"})}return t.sort((r,a)=>r.t-a.t)}function GI(e){let t=rm(e),r={chapters:[],interaction:[],console:[],network:[],error:[],task:[],vitals:[]};for(let a of t){let n={id:a.id,t:a.t,durationMs:a.durationMs,running:a.running,kind:a.kind,severity:a.severity,label:a.title,sub:a.subtitle};switch(a.lane){case"interaction":r.interaction.push(n);break;case"console":if(a.kind==="perf")break;r.console.push(n),a.kind==="console"&&a.severity==="error"&&r.error.push({...n,kind:"error"});break;case"network":r.network.push(n);break;case"error":r.error.push(n);break;case"task":r.task.push(n);break;case"nav":r.chapters.push({...n,kind:"nav"});break}}for(let a of e){if(a.type!=="perf")continue;let n=a;["LCP","CLS","INP","FCP"].includes(n.metric)&&r.vitals.push({id:a.id,t:a.t,kind:n.rating==="poor"?"perf-poor":"perf-good",severity:n.rating==="poor"?"error":"ok",label:`${n.metric} ${Math.round(n.value)}${n.metric==="CLS"?"":"ms"}`,sub:n.rating})}return r}var rS={chapters:"Chapters",interaction:"Interactions",console:"Console",network:"Network",error:"Errors",task:"Tasks",vitals:"Vitals"};function XI(e){let t=[];for(let r of e)if(r.type==="error"){let a=r;t.push({id:r.id,label:`Error \xB7 ${a.name??"Error"}`,detail:a.message??"",t:r.t,ref:r.id,keywords:`error exception ${a.name??""} ${a.message??""}`})}else if(r.type==="network"){let a=r,n=a.status>=400||a.status===0,o=a.status>=500?"5xx":a.status>=400?"4xx":"ok";n&&t.push({id:r.id,label:`${a.method} ${KI(a.url)} \xB7 ${a.status||"failed"}`,detail:`${o} network failure`,t:r.t,ref:r.id,keywords:`network request ${o} fail failed error ${a.method} ${a.url} ${a.status}`})}else if(r.type==="custom"){let a=r;if(a.name==="rage_click")t.push({id:r.id,label:"Rage click",detail:"frustration signal",t:r.t,ref:r.id,keywords:"rage frustration click stuck"});else if(a.name==="dead_click")t.push({id:r.id,label:"Dead click",detail:"frustration signal",t:r.t,ref:r.id,keywords:"dead click frustration stuck"});else if(a.props&&a.props.conversion===!0)t.push({id:r.id,label:`Conversion \xB7 ${a.name}`,detail:"the conversion",t:r.t,ref:r.id,keywords:`conversion convert success goal ${a.name}`});else{let n=/^(.+):started$/.exec(a.name??"");if(n){let o=a.props?.task??n[1];t.push({id:r.id,label:`Task \xB7 ${o}`,detail:"sub-event span",t:r.t,ref:r.id,keywords:`task span sub-event ${o}`})}}}return t.sort((r,a)=>r.t-a.t)}function KI(e){try{let t=new URL(e);return(t.pathname.split("/").pop()||t.hostname)+(t.search?t.search:"")}catch{return e.split("/").pop()||e}}function QI(e,t){if(!e.length)return null;let r=null,a=1/0;for(let n of e){let o=Math.abs(n.t-t);o<a&&(a=o,r=n)}return r&&a<1200?r.label:null}var su=60;function YI(e){if(e.type==="error"||e.type==="console"&&e.level==="error")return"error";if(e.type==="network"){let t=e;return t.status>=400||t.status===0?"error":"network"}if(e.type==="custom"){let t=e;if(t.name==="rage_click"||t.name==="dead_click")return"frustration";if(t.props&&t.props.conversion===!0)return"conversion";if(t.name==="navigation"||t.name==="pageview")return"nav"}return"other"}var JI={error:"var(--lum-error)",frustration:"var(--lum-warn)",conversion:"var(--lum-ok)",network:"#a06bff",nav:"var(--lum-info)",other:"var(--lum-faint)"};function ZI(){let e=_(w=>w.events),t=_(w=>w.offset),r=_(w=>w.durationMs),a=_(w=>w.bufferedMs),n=_(w=>w.zoomStack),o=_(w=>w.zoomTo),i=_(w=>w.zoomOutTo),s=_(w=>w.seek),l=_(w=>w.toRelative),d=(0,ao.useRef)(null),[u,f]=(0,ao.useState)(null),c=t,p=t+r,h=Math.max(1,p-c),m=(0,ao.useMemo)(()=>{let w=new Array(su).fill(0),y=Array.from({length:su},()=>({error:0,frustration:0,conversion:0,network:0,nav:0,other:0}));for(let C of e){let M=(C.t-c)/h,I=Math.min(su-1,Math.max(0,Math.floor(M*su)));w[I]++,y[I][YI(C)]++}let L=Math.max(1,...w);return w.map((C,M)=>{let I=y[M],D="other",A=0;return Object.keys(I).forEach(k=>{let ke=k==="error"?100:k==="frustration"?50:k==="conversion"?40:1,Ie=I[k]*ke;I[k]>0&&Ie>A&&(A=Ie,D=k)}),{h:C/L,kind:D}})},[e,c,h]),S=w=>{let y=d.current;if(!y)return c;let L=y.getBoundingClientRect(),C=Math.min(1,Math.max(0,(w-L.left)/L.width));return c+C*h},g=w=>(w-c)/h*100,x=n[n.length-1],v=r>0?Math.min(100,a/r*100):100,b=[{label:"Full",index:0},...n.map((w,y)=>({label:`${ne(l(w[0]))}\u2013${ne(l(w[1]))}`,index:y+1}))];return(0,yr.jsxs)("div",{className:"lum-st-overview",children:[(0,yr.jsx)("span",{className:"lum-st-overview__label lum-muted",children:"OVERVIEW"}),(0,yr.jsxs)("div",{ref:d,className:"lum-st-overview__spark",onPointerDown:w=>{w.target.setPointerCapture?.(w.pointerId);let y=S(w.clientX);f({a:y,b:y})},onPointerMove:w=>{u&&f(y=>y&&{...y,b:S(w.clientX)})},onPointerUp:()=>{u&&(Math.abs(u.b-u.a)>h*.01?o(Math.min(u.a,u.b),Math.max(u.a,u.b)):s(l(u.a))),f(null)},onPointerLeave:()=>f(null),children:[v<99.5&&(0,yr.jsx)("div",{className:"lum-st-overview__buffered",style:{width:`${v}%`},"aria-hidden":!0}),m.map((w,y)=>(0,yr.jsx)("div",{className:"lum-st-overview__bar",style:{height:`${Math.max(8,w.h*100)}%`,background:JI[w.kind]}},y)),x&&(0,yr.jsx)("div",{className:"lum-st-overview__window",style:{left:`${g(x[0])}%`,width:`${g(x[1])-g(x[0])}%`}}),u&&(0,yr.jsx)("div",{className:"lum-st-overview__brush",style:{left:`${g(Math.min(u.a,u.b))}%`,width:`${Math.abs(g(u.b)-g(u.a))}%`}})]}),(0,yr.jsx)("div",{className:"lum-st-overview__crumbs",children:b.map((w,y)=>(0,yr.jsx)("button",{className:`lum-st-crumb ${y===b.length-1?"is-active":""}`,onClick:()=>i(w.index),children:w.label},y))})]})}function eM(e){let t=[1e3,2e3,5e3,1e4,15e3,3e4,6e4,12e4,3e5,6e5],r=e/8;for(let a of t)if(a>=r)return a;return t[t.length-1]}function tM({win:e}){let t=(0,ro.useRef)(null),r=(0,ro.useRef)(!1),a=_(b=>b.currentTime),n=_(b=>b.durationMs),o=_(b=>b.offset),i=_(b=>b.events),s=_(b=>b.markers),l=_(b=>b.snap),d=_(b=>b.seek),u=_(b=>b.setHover),f=_(b=>b.toRelative),[c,p]=e,h=Math.max(1,p-c),m=(0,ro.useMemo)(()=>{let b=eM(h),w=[],y=c-o,L=Math.ceil(y/b)*b;for(let C=L;C<=p-o;C+=b){let M=C+o;w.push({tRel:C,pct:(M-c)/h*100})}return w},[h,c,p,o]),S=(0,ro.useMemo)(()=>tm(i,n+o),[i,n,o]),g=b=>{let w=t.current;if(!w)return c;let y=w.getBoundingClientRect();return kS(b-y.left,e,y.width)},x=b=>{if(!l)return b;let w=t.current;if(!w)return b;let y=w.getBoundingClientRect().width,L=Yp(b,e,y),C=b,M=8;for(let I of s){let D=Yp(I.t,e,y),A=Math.abs(D-L);A<M&&(M=A,C=I.t)}return C},v=b=>{let w=x(g(b));d(f(w))};return(0,La.jsxs)("div",{ref:t,className:"lum-st-ruler",role:"slider",tabIndex:0,"aria-label":"Timeline scrubber","aria-valuemin":0,"aria-valuemax":Math.round(n),"aria-valuenow":Math.round(a),"aria-valuetext":`${ne(a)} of ${ne(n)}`,onPointerDown:b=>{r.current=!0,b.target.setPointerCapture?.(b.pointerId),v(b.clientX)},onPointerMove:b=>{let w=g(b.clientX);u(f(w)),r.current&&v(b.clientX)},onPointerUp:b=>{r.current=!1,b.target.releasePointerCapture?.(b.pointerId)},onPointerLeave:()=>u(null),onKeyDown:b=>{if(b.key==="ArrowRight")d(a+1e3);else if(b.key==="ArrowLeft")d(a-1e3);else if(b.key==="Home")d(0);else if(b.key==="End")d(n);else if(b.key==="PageUp")d(a+1e4);else if(b.key==="PageDown")d(a-1e4);else return;b.preventDefault()},children:[S.slice(1).map(b=>{let w=(b.startT-c)/h*100;return w<0||w>100?null:(0,La.jsx)("span",{className:"lum-st-ruler__chdiv",style:{left:`${w}%`},title:b.title},b.id)}),m.map((b,w)=>(0,La.jsx)("span",{className:"lum-st-ruler__tick",style:{left:`${b.pct}%`},children:(0,La.jsx)("span",{className:"lum-st-ruler__ticklabel lum-mono",children:ne(b.tRel)})},w))]})}function rM({win:e}){let t=_(d=>d.hover),r=_(d=>d.offset),a=_(d=>d.markers);if(t==null)return null;let n=t.t+r,[o,i]=e,s=(n-o)/Math.max(1,i-o)*100;if(s<0||s>100)return null;let l=QI(a,n);return(0,La.jsxs)("div",{className:"lum-st-ghosttip lum-mono",style:{left:`${s}%`},children:[ne(t.t),l&&(0,La.jsxs)("span",{className:"lum-st-ghosttip__lbl",children:[" \xB7 ",l.slice(0,48)]})]})}function aM({isFullscreen:e,onFullscreen:t,allowFullscreen:r=!0}){let a=_(k=>k.status),n=_(k=>k.currentTime),o=_(k=>k.durationMs),i=_(k=>k.summary?.inactiveMs),s=_(k=>k.summary?.durationMs),l=_(k=>k.speed),d=_(k=>k.autoSkip),u=_(k=>k.isSkipping),f=_(k=>k.autoSkim),c=_(k=>k.isSkimming),p=_(k=>k.loop),h=_(k=>k.showCursor),m=_(k=>k.snap),S=_(k=>k.toggle),g=_(k=>k.restart),x=_(k=>k.seek),v=_(k=>k.step),b=_(k=>k.jumpEvent),w=_(k=>k.setSpeed),y=_(k=>k.setAutoSkip),L=_(k=>k.setAutoSkim),C=_(k=>k.setLoop),M=_(k=>k.setShowCursor),I=_(k=>k.toggleSnap),D=a==="playing";return(0,Q.jsxs)("div",{className:"lum-st-transport",children:[(0,Q.jsxs)("div",{className:"lum-st-transport__group",children:[(0,Q.jsx)("span",{className:"lum-pl-play",children:(0,Q.jsx)(ht,{label:D?"Pause (Space)":"Play (Space)",pressed:D,onClick:S,children:D?(0,Q.jsx)(Ls,{size:17}):(0,Q.jsx)(tn,{size:17})})}),(0,Q.jsx)(ht,{label:"Restart (R)",onClick:g,children:(0,Q.jsx)(Ms,{size:16})}),(0,Q.jsx)(ht,{label:"Back 10s (\u2190)",onClick:()=>x(n-1e4),children:(0,Q.jsx)(Rs,{size:16})}),(0,Q.jsx)(ht,{label:"Forward 10s (\u2192)",onClick:()=>x(n+1e4),children:(0,Q.jsx)(Es,{size:16})}),(0,Q.jsx)(ht,{label:"Previous event ([)",onClick:()=>b(-1),children:(0,Q.jsx)(Qa,{size:17})}),(0,Q.jsx)(ht,{label:"Next event (])",onClick:()=>b(1),children:(0,Q.jsx)(Ya,{size:17})}),(a==="paused"||a==="ended"||a==="idle")&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(ht,{label:"Frame back (,)",onClick:()=>v(-1),children:(0,Q.jsx)(Ps,{size:15})}),(0,Q.jsx)(ht,{label:"Frame forward (.)",onClick:()=>v(1),children:(0,Q.jsx)(Ts,{size:15})})]})]}),(0,Q.jsxs)("div",{className:"lum-st-transport__group lum-st-transport__group--right",children:[(0,Q.jsx)(Qx,{trigger:(0,Q.jsxs)("span",{className:"lum-iconbtn","aria-label":`Speed ${l}\xD7`,title:"Playback speed (< / >)",children:[(0,Q.jsx)(ys,{size:15}),(0,Q.jsxs)("span",{className:"lum-mono lum-pl-speed",children:[l,"\xD7"]})]}),options:lS.map(k=>({value:k,label:`${k}\xD7`})),value:l,onSelect:w,placement:"top"}),(0,Q.jsx)("span",{className:`lum-st-skim${u?" is-skimming":""}`,children:(0,Q.jsx)(ht,{label:`Auto-skip idle \u2014 jump to next activity (S)${d?" \u2014 on":""}`,pressed:d,onClick:()=>y(!d),children:(0,Q.jsx)(Ja,{size:16})})}),(0,Q.jsx)("span",{className:`lum-st-skim${c?" is-skimming":""}`,children:(0,Q.jsx)(ht,{label:`Auto-skim idle at 8\xD7 (\u21E7S)${f?" \u2014 on":""}`,pressed:f,onClick:()=>L(!f),children:(0,Q.jsx)(an,{size:15})})}),(0,Q.jsx)(ht,{label:"Loop (L)",pressed:p,onClick:()=>C(!p),children:(0,Q.jsx)(ks,{size:15})}),(0,Q.jsx)(ht,{label:"Magnetic snap (X)",pressed:m,onClick:I,children:(0,Q.jsx)(Ss,{size:15})}),(0,Q.jsx)(ht,{label:"Cursor trail",pressed:h,onClick:()=>M(!h),children:(0,Q.jsx)(Cs,{size:15})}),r&&(0,Q.jsx)(ht,{label:e?"Exit fullscreen (F)":"Fullscreen (F)",pressed:e,onClick:t,children:e?(0,Q.jsx)(en,{size:16}):(0,Q.jsx)(Za,{size:16})}),(0,Q.jsxs)("span",{className:"lum-st-transport__time lum-mono",children:[ne(n)," ",(0,Q.jsxs)("span",{className:"lum-muted",children:["/ ",ne(o)]}),i!=null&&i>0&&s?(0,Q.jsxs)("span",{className:"lum-st-transport__idle lum-muted",title:`${ne(i)} of this recording (${Math.round(i/s*100)}%) had no interaction`,children:[" \xB7 ",Math.round(i/s*100),"% idle"]}):null]})]})]})}function nM(e){switch(e.kind){case"rage":return"\u25C6";case"dead":return"\u25CB";case"conversion":return"\u2726";case"error":return"\u25CF";case"network":return"\u25AD";case"task":return"\u25B0";case"nav":return"\u258E";case"perf-poor":return"\u25C7";case"perf-good":return"\u25C7";case"console":return e.severity==="error"?"\u25CF":"\xB7";default:return"\xB7"}}function oM(e){switch(e.severity){case"error":return"var(--lum-error)";case"warn":return"var(--lum-warn)";case"ok":return"var(--lum-ok)";case"info":return"var(--lum-info)";default:return"var(--lum-faint)"}}function sM(e,t,r){let a=[...e].sort((o,i)=>o.t-i.t),n=[];for(let o of a){if(o.t<t[0]-1||o.t>t[1]+1)continue;let i=Yp(o.t,t,r),s=n[n.length-1];s&&i-s.xPx<6?s.items.push(o):n.push({t:o.t,xPx:i,items:[o]})}return n}function iM({id:e,label:t,glyphs:r,win:a,width:n,collapsed:o}){let i=_(g=>g.offset),s=_(g=>g.durationMs),l=_(g=>g.events),d=_(g=>g.selectedEventId),u=_(g=>g.selectAndSeek),f=_(g=>g.zoomTo),c=_(g=>g.toRelative),p=Math.max(1,a[1]-a[0]),h=g=>(g-a[0])/p*100,m=(0,Jp.useMemo)(()=>e==="chapters"?tm(l,s+i):[],[e,l,s,i]),S=(0,Jp.useMemo)(()=>e==="network"||e==="chapters"||e==="task"?[]:sM(r,a,n||1),[e,r,a,n]);return o?(0,Ht.jsx)("div",{className:"lum-st-lane lum-st-lane--collapsed",role:"listbox","aria-label":`${t} lane (collapsed)`,tabIndex:0,children:(0,Ht.jsx)("span",{className:"lum-st-lane__count lum-mono",children:r.length||m.length||"\u2014"})}):(0,Ht.jsxs)("div",{className:`lum-st-lane lum-st-lane--${e}`,role:"listbox","aria-label":`${t} lane`,tabIndex:0,"data-lane":e,children:[e==="chapters"&&m.map(g=>{let x=h(g.startT),v=h(g.endT)-x;return x>100||x+v<0?null:(0,Ht.jsx)("button",{className:`lum-st-chapter lum-st-chapter--${g.kind} ${g.kind==="idle"?"is-idle":""}`,style:{left:`${x}%`,width:`${Math.max(.5,v)}%`},role:"option","aria-selected":!1,"aria-label":`${g.title} \xB7 ${g.subtitle} @ ${ne(c(g.startT))}`,title:`${g.title} \u2014 ${g.subtitle}`,onClick:()=>f(g.startT,g.endT),children:(0,Ht.jsx)("span",{className:"lum-st-chapter__label",children:g.title})},g.id)}),e==="network"&&r.map(g=>{let x=h(g.t);if(x>101||x<-1)return null;let v=(g.durationMs??0)/p*100,b=Math.max(.4,v),w=d===g.id;return(0,Ht.jsx)("button",{className:`lum-st-netbar lum-st-netbar--${g.severity} ${w?"is-selected":""}`,style:{left:`${x}%`,width:`${b}%`},role:"option","aria-selected":w,"aria-label":`${g.label} \xB7 ${g.sub??""} @ ${ne(c(g.t))}`,title:`${g.label} \u2014 ${g.sub??""}`,onClick:()=>u(g.id)},g.id)}),e==="task"&&r.map(g=>{let x=h(g.t);if(x>101||x<-1)return null;let v=(g.durationMs??0)/p*100,b=Math.max(.5,v),w=d===g.id,y=!!g.running;return(0,Ht.jsx)("button",{className:`lum-st-taskbar ${w?"is-selected":""} ${y?"is-running":""}`,style:{left:`${x}%`,width:`${b}%`},role:"option","aria-selected":w,"aria-label":`Task ${g.label} \xB7 ${g.sub??""} @ ${ne(c(g.t))}`,title:`${g.label}${g.sub?` \u2014 ${g.sub}`:""}`,onClick:()=>u(g.id)},g.id)}),e!=="network"&&e!=="chapters"&&e!=="task"&&S.map((g,x)=>{let v=h(g.t);if(v>101||v<-1)return null;let b=g.items[0],w=g.items.some(L=>L.id===d),y=g.items.length;return(0,Ht.jsxs)("button",{className:`lum-st-glyph lum-st-glyph--${e} ${w?"is-selected":""} ${b.kind==="rage"?"lum-st-glyph--pulse":""}`,style:{left:`${v}%`,color:oM(b)},role:"option","aria-selected":w,"aria-label":y>1?`${y} events @ ${ne(c(g.t))}`:`${b.label} @ ${ne(c(g.t))}`,title:y>1?`${y} events`:`${b.label}${b.sub?` \xB7 ${b.sub}`:""}`,onClick:()=>{y>1&&p>4e3?f(g.t-1500,g.t+1500):u(b.id)},children:[(0,Ht.jsx)("span",{className:"lum-st-glyph__char","aria-hidden":!0,children:nM(b)}),y>1&&(0,Ht.jsx)("span",{className:"lum-st-glyph__count",children:y})]},`${g.t}-${x}`)}),r.length===0&&m.length===0&&(0,Ht.jsx)("span",{className:"lum-st-lane__empty",children:"\u2014"})]})}function lM({id:e,label:t,count:r}){let a=_(o=>o.laneState[e]),n=_(o=>o.toggleLane);return(0,At.jsxs)("div",{className:`lum-st-rail ${a.mute?"is-muted":""} ${a.solo?"is-solo":""}`,children:[(0,At.jsx)("button",{className:"lum-st-rail__collapse","aria-label":`${a.collapsed?"Expand":"Collapse"} ${t}`,onClick:()=>n(e,"collapsed"),children:a.collapsed?(0,At.jsx)(Ya,{size:13}):(0,At.jsx)(Ka,{size:13})}),(0,At.jsx)("span",{className:"lum-st-rail__label",children:t}),(0,At.jsx)("span",{className:"lum-st-rail__count lum-mono",children:r}),(0,At.jsxs)("span",{className:"lum-st-rail__ctrls",children:[(0,At.jsx)("button",{className:`lum-st-rail__btn ${a.solo?"is-on":""}`,"aria-pressed":a.solo,title:"Solo lane",onClick:()=>n(e,"solo"),children:(0,At.jsx)(vs,{size:11})}),(0,At.jsx)("button",{className:`lum-st-rail__btn ${a.mute?"is-on":""}`,"aria-pressed":a.mute,title:"Mute lane",onClick:()=>n(e,"mute"),children:a.mute?(0,At.jsx)(Ds,{size:11}):(0,At.jsx)(As,{size:11})})]})]})}function uM({win:e}){let t=_(s=>s.currentTime),r=_(s=>s.offset),a=t+r,n=fu(a,e),o=a<e[0],i=a>e[1];return(0,pu.jsx)("div",{className:`lum-st-playhead ${o?"is-offleft":""} ${i?"is-offright":""}`,style:{left:`${n*100}%`},"aria-hidden":!0,children:(0,pu.jsx)("span",{className:"lum-st-playhead__cap"})})}function dM({win:e}){let t=_(o=>o.hover),r=_(o=>o.offset);if(t==null)return null;let a=t.t+r,n=fu(a,e);return a<e[0]||a>e[1]?null:(0,pu.jsx)("div",{className:"lum-st-ghost",style:{left:`${n*100}%`},"aria-hidden":!0})}var cM={error:"var(--lum-error)",net5xx:"#a06bff",net4xx:"var(--lum-warn)",rage:"var(--lum-warn)",dead:"var(--lum-faint)",nav:"var(--lum-info)"};function fM({win:e}){let t=(0,Us.useRef)(null),r=(0,Us.useRef)(!1),a=_(m=>m.currentTime),n=_(m=>m.durationMs),o=_(m=>m.offset),i=_(m=>m.events),s=_(m=>m.seek),l=_(m=>m.selectAndSeek),d=_(m=>m.setHover),u=_(m=>m.toRelative),f=(0,Us.useMemo)(()=>VI(i),[i]),c=a+o,p=fu(c,e),h=m=>{let S=t.current;if(!S)return e[0];let g=S.getBoundingClientRect();return kS(m-g.left,e,g.width)};return(0,to.jsxs)("div",{ref:t,className:"lum-st-ribbon",role:"slider",tabIndex:0,"aria-label":"Signal ribbon scrubber","aria-valuemin":0,"aria-valuemax":Math.round(n),"aria-valuenow":Math.round(a),"aria-valuetext":`${ne(a)} of ${ne(n)}`,onPointerDown:m=>{r.current=!0,m.target.setPointerCapture?.(m.pointerId),s(u(h(m.clientX)))},onPointerMove:m=>{d(u(h(m.clientX))),r.current&&s(u(h(m.clientX)))},onPointerUp:()=>r.current=!1,onPointerLeave:()=>d(null),onKeyDown:m=>{if(m.key==="ArrowRight")s(a+1e3);else if(m.key==="ArrowLeft")s(a-1e3);else if(m.key==="Home")s(0);else if(m.key==="End")s(n);else return;m.preventDefault()},children:[(0,to.jsx)("div",{className:"lum-st-ribbon__track"}),f.map(m=>{let S=fu(m.t,e);return m.t<e[0]||m.t>e[1]?null:(0,to.jsx)("button",{className:"lum-st-ribbon__glyph",style:{left:`${S*100}%`,color:cM[m.kind]??"var(--lum-faint)"},title:`${m.label} @ ${ne(u(m.t))}`,"aria-label":`${m.label} @ ${ne(u(m.t))}`,onClick:g=>{g.stopPropagation(),l(m.ref)},children:"\u25C6"},m.ref)}),(0,to.jsx)("div",{className:"lum-st-ribbon__head",style:{left:`${p*100}%`},"aria-hidden":!0})]})}function pM({breakpoint:e,isFullscreen:t,onFullscreen:r,allowFullscreen:a,onResizeStart:n,onResizeReset:o}){let i=_(y=>y.events),s=_(y=>y.laneState),l=_(y=>y.offset),d=_(y=>y.durationMs),u=_(y=>y.zoomStack),f=_(y=>y.zoomTo),c=_(y=>y.zoomOutTo),p=_(y=>y.focusMode),h=IS(),{ref:m,width:S}=AI(),g=(0,MS.useMemo)(()=>GI(i),[i]),x=e==="narrow"||e==="compact"||p==="stage",v=du.some(y=>s[y].solo),b=du.filter(y=>!(s[y].mute||v&&!s[y].solo));return(0,Ze.jsxs)("section",{className:"lum-st-timeline","aria-label":"Timeline",children:[n&&(0,Ze.jsx)("div",{className:"lum-st-resize lum-st-resize--y",role:"separator","aria-orientation":"horizontal","aria-label":"Resize timeline height",title:"Drag to resize \xB7 double-click to reset",onPointerDown:n,onDoubleClick:o}),(0,Ze.jsx)(ZI,{}),(0,Ze.jsxs)("div",{className:"lum-st-rulerrow",children:[(0,Ze.jsx)(aM,{isFullscreen:t,onFullscreen:r,allowFullscreen:a}),(0,Ze.jsx)("div",{className:"lum-st-rulerrow__ruler",children:(0,Ze.jsx)(tM,{win:h})})]}),x?(0,Ze.jsx)("div",{className:"lum-st-ribbonwrap",children:(0,Ze.jsx)(fM,{win:h})}):(0,Ze.jsxs)("div",{className:"lum-st-lanes",onWheel:y=>{if(x||!y.ctrlKey&&!y.metaKey)return;y.preventDefault();let L=m.current;if(!L)return;let C=L.getBoundingClientRect(),M=Math.min(1,Math.max(0,(y.clientX-C.left)/C.width)),I=h[0]+M*(h[1]-h[0]),D=y.deltaY>0?1.2:.83,A=NI(h,I,D,l,l+d);A==null?u.length&&c(u.length-1):f(A[0],A[1])},children:[(0,Ze.jsx)("div",{className:"lum-st-lanes__rails",children:b.map(y=>(0,Ze.jsx)(lM,{id:y,label:rS[y],count:g[y].length},y))}),(0,Ze.jsxs)("div",{className:"lum-st-lanes__tracks",ref:m,children:[b.map(y=>(0,Ze.jsx)(iM,{id:y,label:rS[y],glyphs:g[y],win:h,width:S,collapsed:s[y].collapsed},y)),(0,Ze.jsx)(uM,{win:h}),(0,Ze.jsx)(dM,{win:h}),(0,Ze.jsx)(rM,{win:h})]})]})]})}function mM(){let e=_(g=>g.paletteOpen),t=_(g=>g.openPalette),r=_(g=>g.events),a=_(g=>g.currentTime),n=_(g=>g.nextProblem),o=_(g=>g.selectAndSeek),i=_(g=>g.toRelative),[s,l]=(0,rr.useState)(""),[d,u]=(0,rr.useState)(0),f=(0,rr.useRef)(null),c=(0,rr.useMemo)(()=>XI(r),[r]),p=(0,rr.useMemo)(()=>{let g=[];g.push({id:"next-problem",label:"Next problem",detail:"jump to the next error / failure / rage",keywords:"next problem error fail rage",run:()=>n(1)}),g.push({id:"prev-problem",label:"Previous problem",detail:"jump backward",keywords:"previous prev problem back",run:()=>n(-1)});let x=c.find(L=>L.keywords.includes("error"));x&&g.push(y("first-error","First error",x));let v=c.find(L=>L.keywords.includes("network"));v&&g.push(y("next-5xx","Next failed request",v));let b=c.find(L=>L.keywords.includes("rage"));b&&g.push(y("next-rage","Next rage click",b));let w=c.find(L=>L.keywords.includes("conversion"));w&&g.push(y("the-conversion","The conversion",w));for(let L of c)g.push(y(`go-${L.id}`,`${L.label} \xB7 ${ne(i(L.t))}`,L));return g;function y(L,C,M){return{id:L,label:C,detail:M.detail,keywords:`${C} ${M.keywords}`.toLowerCase(),run:()=>o(M.ref)}}},[c,n,o,i]),h=(0,rr.useMemo)(()=>{let g=s.trim().toLowerCase();return g?p.filter(x=>x.keywords.includes(g)||x.label.toLowerCase().includes(g)).slice(0,20):p.slice(0,12)},[p,s]);if((0,rr.useEffect)(()=>{e&&(l(""),u(0),requestAnimationFrame(()=>f.current?.focus()))},[e]),(0,rr.useEffect)(()=>u(0),[s]),!e)return null;let m=()=>t(!1),S=g=>{g&&(g.run(),m())};return(0,tr.jsx)("div",{className:"lum-st-palette",role:"dialog","aria-modal":"true","aria-label":"Command palette",onClick:m,children:(0,tr.jsxs)("div",{className:"lum-st-palette__card",onClick:g=>g.stopPropagation(),children:[(0,tr.jsx)("input",{ref:f,className:"lum-st-palette__input lum-mono",placeholder:"Jump to\u2026 (next 5xx, next rage, first error, the conversion)",value:s,onChange:g=>l(g.target.value),"aria-label":"Command query",onKeyDown:g=>{g.key==="ArrowDown"?(g.preventDefault(),u(x=>Math.min(h.length-1,x+1))):g.key==="ArrowUp"?(g.preventDefault(),u(x=>Math.max(0,x-1))):g.key==="Enter"?(g.preventDefault(),S(h[d])):g.key==="Escape"&&(g.preventDefault(),m())}}),(0,tr.jsxs)("div",{className:"lum-st-palette__hint lum-muted",children:[h.length," match",h.length===1?"":"es"]}),(0,tr.jsxs)("ul",{className:"lum-st-palette__list",role:"listbox",children:[h.map((g,x)=>(0,tr.jsx)("li",{role:"option","aria-selected":x===d,children:(0,tr.jsxs)("button",{className:`lum-st-palette__item ${x===d?"is-active":""}`,onMouseEnter:()=>u(x),onClick:()=>S(g),children:[(0,tr.jsx)("span",{className:"lum-st-palette__label",children:g.label}),(0,tr.jsx)("span",{className:"lum-st-palette__detail lum-muted",children:g.detail})]})},g.id)),h.length===0&&(0,tr.jsx)("li",{className:"lum-st-palette__empty lum-muted",children:"No matches"})]})]})})}var hM=[["Space / K","Play / pause"],["R","Restart"],["\u2190 / \u2192","Seek \u221310s (\u22131s on ruler)"],["[ / ]","Walk prev / next event in lane"],[", / .","Frame step (paused)"],["< / >","Slower / faster"],["N / \u21E7N","Next / previous problem"],["\u2318K / Ctrl K","Command palette"],["E","Cycle feed type filter"],["Z / \u21E7Z","Zoom to selection / out"],["X","Toggle magnetic snap"],["T / D","Stage / Debug focus"],["`","Toggle feed focus"],["S","Auto-skip idle (jump)"],["\u21E7S","Auto-skim idle (8\xD7)"],["L","Loop"],["F","Fullscreen"],["C","Comment at playhead"],["Home / End","Start / end (ruler)"],["Esc","Clear selection / close"],["?","This help"]];function gM({open:e,onClose:t}){return e?(0,er.jsx)("div",{className:"lum-pl-help",role:"dialog","aria-modal":"true","aria-label":"Keyboard shortcuts",onClick:t,children:(0,er.jsxs)("div",{className:"lum-pl-help__card",onClick:r=>r.stopPropagation(),children:[(0,er.jsxs)("div",{className:"lum-pl-help__head",children:[(0,er.jsx)("strong",{children:"Keyboard shortcuts"}),(0,er.jsx)("button",{className:"lum-iconbtn","aria-label":"Close",onClick:t,children:"\u2715"})]}),(0,er.jsx)("div",{className:"lum-pl-help__grid",children:hM.map(([r,a])=>(0,er.jsxs)("div",{className:"lum-pl-help__row",children:[(0,er.jsx)("kbd",{className:"lum-pl-kbd lum-mono",children:r}),(0,er.jsx)("span",{children:a})]},r))}),(0,er.jsx)("p",{className:"lum-muted",children:"Shortcuts are disabled while typing in a text field."})]})}):null}function xM(e){let[t,r]=(0,yu.useState)("wide");return(0,yu.useEffect)(()=>{let a=e.current;if(!a)return;let n=(i,s)=>i<480?"compact":i<720||s<400?"narrow":i<1100?"mid":"wide",o=new ResizeObserver(i=>{let s=i[0];if(!s)return;let{width:l,height:d}=s.contentRect;r(n(l,d))});return o.observe(a),r(n(a.clientWidth,a.clientHeight)),()=>o.disconnect()},[e]),t}function aS(e,t){let r=Zp(t);return e&&r.includes(e)?e:r.includes("debug")?"debug":r[0]}var nS="obsrviq.player.inspectorW",oS="obsrviq.player.timelineH";function sS(e){try{let t=Number(localStorage.getItem(e));return Number.isFinite(t)&&t>0?t:null}catch{return null}}function iS(e,t){try{t!=null?localStorage.setItem(e,String(t)):localStorage.removeItem(e)}catch{}}function _S(e){let t=(0,G.useRef)();t.current||(t.current=Pk());let r=t.current;return(0,je.jsx)(Nk,{store:r,children:(0,je.jsx)(Ak,{value:{apiBaseUrl:e.apiBaseUrl,token:e.token,apiKey:e.apiKey,sessionId:e.sessionId},children:(0,je.jsx)(Kx,{children:(0,je.jsx)(vM,{...e,store:r})})})})}function vM({sessionId:e,apiBaseUrl:t,token:r,apiKey:a,startAtMs:n,startMode:o,defaultMode:i,allowedModes:s,defaultSpeed:l,allowFullscreen:d,shareUrl:u,onEnded:f,onError:c,onSeek:p,onComment:h,onBack:m,backLabel:S,live:g,theme:x,embedded:v,className:b,topbarActions:w,focus:y,clip:L,store:C}){let M=(0,G.useRef)(null),I=(0,G.useRef)(null),D=(0,G.useRef)(null),A=(0,G.useRef)([]),k=(0,G.useRef)(-1),ke=(0,G.useRef)(0),Ie=(0,G.useRef)([]),ue=(0,G.useRef)(-1),j=(0,G.useRef)(new Set),Se=(0,G.useRef)(new Set),ze=(0,G.useRef)(0),be=(0,G.useRef)(!1),[we,wr]=(0,G.useState)(0),[E,vt]=(0,G.useState)(!1),[yt,Ia]=(0,G.useState)(!1),[Qe,it]=(0,G.useState)(!1),[Sr,br]=(0,G.useState)(0),[X,_e]=(0,G.useState)(!1),[se,Re]=(0,G.useState)(null),lt=(0,G.useRef)(null),[me,sn]=(0,G.useState)(()=>sS(nS)),[wu,nm]=(0,G.useState)(()=>sS(oS));(0,G.useEffect)(()=>{iS(nS,me)},[me]),(0,G.useEffect)(()=>{iS(oS,wu)},[wu]);let BS=(0,G.useCallback)(T=>{let H=lt.current;if(!H)return;T.preventDefault();let O=H.getBoundingClientRect(),ee=T.currentTarget;ee.setPointerCapture(T.pointerId),ee.classList.add("is-active");let N=te=>{let ut=Math.max(320,Math.min(820,O.width-360));sn(Math.min(ut,Math.max(300,Math.round(O.right-te.clientX))))},ie=()=>{ee.classList.remove("is-active"),window.removeEventListener("pointermove",N),window.removeEventListener("pointerup",ie)};window.addEventListener("pointermove",N),window.addEventListener("pointerup",ie)},[]),zS=(0,G.useCallback)(T=>{let H=M.current;if(!H)return;T.preventDefault();let O=H.getBoundingClientRect(),ee=T.currentTarget;ee.setPointerCapture(T.pointerId),ee.classList.add("is-active");let N=te=>{let ut=Math.max(140,O.height-240);nm(Math.min(ut,Math.max(120,Math.round(O.bottom-te.clientY))))},ie=()=>{ee.classList.remove("is-active"),window.removeEventListener("pointermove",N),window.removeEventListener("pointerup",ie)};window.addEventListener("pointermove",N),window.addEventListener("pointerup",ie)},[]),Er=xM(M),ln=_(T=>T.focusMode),un={apiBaseUrl:t,token:r,apiKey:a},$s=d??se?.allowFullscreen??!0,US=u??se?.shareUrl,om=(0,G.useRef)($s);om.current=$s;let sm=(0,G.useRef)(!1);(0,G.useEffect)(()=>{if(sm.current)return;let T=s!=null&&(i??o)!=null&&l!=null;if(se==null&&!T)return;sm.current=!0;let H=C.getState(),O=Zp(s??se?.allowedModes);H.setAllowedModes(O);let ee=i??o??se?.defaultMode;ee&&O.includes(ee)&&C.setState({focusMode:ee});let N=l??se?.defaultSpeed;if(N!=null){let ie=lS.reduce((te,ut)=>Math.abs(ut-N)<Math.abs(te-N)?ut:te);C.setState({speed:ie}),H.controller?.setSpeed(ie)}},[se]),(0,G.useEffect)(()=>{let T=!1;return vt(!1),Ie.current=[],ue.current=-1,j.current=new Set,Se.current=new Set,ze.current=0,be.current=!1,C.setState({status:"loading",error:null,loadProgress:0,controller:null,pendingSeek:null}),(async()=>{if(g){let{detail:Y,events:ge,rrwebEvents:or}=await zk(e,un,(sr,K)=>!T&&C.setState({loadProgress:K?sr/K:1}));if(T)return;if(Re(Y.replaySettings??{}),A.current=or,k.current=Y.replayChunks.reduce((sr,K)=>Math.max(sr,K.seq),-1),ke.current=ge.reduce((sr,K)=>Math.max(sr,K.t),0),Y.summary.hasReplay&&or.length>0)C.setState({events:ge,markers:Os(ge),summary:Y.summary,hasReplay:!0,status:"buffering",live:!0,following:!0});else{let sr=ge.map(Ce=>Ce.t),K=sr.length?Math.min(...sr):0,V=sr.length?Math.max(...sr):0;C.setState({events:ge,markers:Os(ge),summary:Y.summary,hasReplay:!1,offset:K,durationMs:Math.max(0,V-K),currentTime:0,status:"paused",focusMode:aS(i??o??Y.replaySettings?.defaultMode,s??Y.replaySettings?.allowedModes)})}vt(!0);return}let{detail:O,events:ee}=await Fk(e,un);if(T)return;Re(O.replaySettings??{});let N=[...O.replayChunks].sort((Y,ge)=>Y.seq-ge.seq);if(Ie.current=N,N.forEach((Y,ge)=>{Y.hasSnapshot&&Se.current.add(ge)}),ke.current=ee.reduce((Y,ge)=>Math.max(Y,ge.t),0),!(O.summary.hasReplay&&N.length>0)){let Y=ee.map(no=>no.t),ge=Y.length?Math.min(...Y):0,or=Y.length?Math.max(...Y):0;C.setState({events:ee,markers:Os(ee),summary:O.summary,hasReplay:!1,offset:ge,durationMs:Math.max(0,or-ge),currentTime:0,status:"paused",focusMode:aS(i??o??O.replaySettings?.defaultMode,s??O.replaySettings?.allowedModes)}),vt(!0);return}let te=N.reduce((Y,ge)=>Math.min(Y,ge.firstT),N[0].firstT),ut=N.reduce((Y,ge)=>Math.max(Y,ge.lastT),0);ze.current=Math.max(0,ut-te),C.setState({events:ee,markers:Os(ee),summary:O.summary,hasReplay:!0,status:"loading",durationMs:ze.current,bufferedMs:0,live:!1,following:!1});let nr=Math.min(N.length,8),Wt=[],Ma=-1;for(let Y=0;Y<nr;Y++){let ge=await jp(N[Y].url,un).catch(()=>[]);if(T)return;if(Wt=Wt.concat(ge),Ma=Y,j.current.add(Y),ge.some(or=>or.type===2)&&Se.current.add(Y),Wt.some(or=>or.type===2))break}if(Wt.length<2||!Wt.some(Y=>Y.type===2)){C.setState({status:"error",error:"Replay data unavailable.",errorNotFound:!1});return}A.current=Wt,ue.current=Ma,C.setState({loadProgress:N.length?(Ma+1)/N.length:1}),vt(!0)})().catch(O=>{T||(Re(ee=>ee??{}),C.setState({status:"error",error:O instanceof Error?O.message:"Load failed",errorNotFound:!!O?.notFound}))}),()=>{T=!0}},[e,we]),(0,G.useEffect)(()=>{if(!E)return;let T=C.getState();if(!T.hasReplay)return;let H=I.current;if(!H)return;H.innerHTML="";let O;try{O=new Xk(H,A.current,{speed:T.speed,showCursor:T.showCursor,autoSkim:T.autoSkim,autoSkip:T.autoSkip},{onTime:te=>C.getState()._onTime(te),onFinish:()=>C.getState()._onFinish(),onState:te=>C.setState({status:te}),onSkim:te=>C.setState({isSkimming:te}),onSkip:te=>C.getState()._onSkip(te)})}catch(te){C.setState({status:"error",error:te instanceof Error?te.message:"Replay initialization failed",errorNotFound:!1});return}C.getState()._attachController(O);let ee=O.meta.startTime-T.summary.startedAt;C.setState({offset:ee});let N=C.getState().events.map(te=>te.t-ee).filter(te=>te>=0);N.length&&O.setActivityTimes(N),g?(O.seek(O.meta.totalTime),C.setState({currentTime:O.meta.totalTime})):n!=null&&!y&&!L&&C.getState().seek(n-ee);let ie=new ResizeObserver(()=>O.fit());return ie.observe(H),()=>{ie.disconnect(),C.getState()._detachController()}},[E]),(0,G.useEffect)(()=>{if(!E||g||!y)return;let T=C.getState(),H;y.eventId&&T.events.some(O=>O.id===y.eventId)&&(H=y.eventId),!H&&y.kind&&y.selector&&(H=T.events.find(ee=>ee.type==="custom"&&ee.name===`${y.kind}_click`&&String(ee.props?.selector??"")===y.selector)?.id),!H&&y.kind&&(H=T.markers.find(O=>O.kind===y.kind&&O.ref)?.ref),H?T.select(H):n!=null&&T.seek(T.toRelative(n))},[E]),(0,G.useEffect)(()=>{if(!E||g)return;let T=C.getState();if(!L){T.setClip(null,null,!1);return}let H=Y=>Y.name,O=T.summary?.startedAt??null,ee=Y=>Y!=null&&O!=null?Y-O:void 0,N=L.fromMs??ee(L.fromUtc);if(N==null&&L.fromEvent){let Y=T.events.find(ge=>ge.type==="custom"&&H(ge)===L.fromEvent);Y&&(N=Y.t)}if(N==null){T.setClip(null,null,!1);return}let ie=L.toMs??ee(L.toUtc);if(ie==null&&L.toEvent){let Y=T.events.find(ge=>ge.type==="custom"&&H(ge)===L.toEvent&&ge.t>N);Y&&(ie=Y.t)}(L.toMs!=null||L.toUtc!=null||L.toEvent!=null)&&ie==null&&console.warn(`[obsrviq] clip end ${L.toEvent?`event "${L.toEvent}"`:"time"} did not resolve \u2014 playing from the start, unbounded.`);let te=T.toRelative(N),ut=ie!=null?T.toRelative(ie):null,nr=ut!=null&&ut>te?ut:null;T.setClip(te,nr,!!L.loop&&nr!=null),T.seek(te);let Wt=C.getState();(Wt._covers?Wt._covers(te):te<=Wt.bufferedMs+1)?T.play():be.current=!0},[E,L?.fromEvent,L?.toEvent,L?.fromMs,L?.toMs,L?.fromUtc,L?.toUtc,L?.loop]),(0,G.useEffect)(()=>C.subscribe(T=>{T.status==="playing"?be.current=!0:(T.status==="paused"||T.status==="ended")&&(be.current=!1)}),[C]),(0,G.useEffect)(()=>C.subscribe((T,H)=>{T.status==="ended"&&H.status!=="ended"&&f?.()}),[C,f]),(0,G.useEffect)(()=>C.subscribe((T,H)=>{T.status==="error"&&H.status!=="error"&&c?.({reason:T.errorNotFound?"not_found":"error",message:T.error??"Could not load the recording."})}),[C,c]),(0,G.useEffect)(()=>{if(g||!E||!C.getState().hasReplay)return;let T=!1,H=j.current,O=Se.current,ee=Ie.current.some(K=>K.hasSnapshot),N=K=>{let V=Ie.current,Ce=0;for(let xe=0;xe<V.length&&V[xe].firstT<=K;xe++)Ce=xe;return Ce},ie=K=>{let V=K+C.getState().offset,Ce=N(V);if(!H.has(Ce))return!1;for(let xe=Ce;xe>=0&&H.has(xe);xe--)if(O.has(xe))return!0;return!1},te=K=>{let V=N(K+C.getState().offset),Ce=Ie.current;for(let xe=V+1;xe<Ce.length;xe++)if(!H.has(xe))return!0;return!1};C.getState()._setLoaderProbes(ie,te);let ut=()=>{let K=Ie.current,V=-1;for(;H.has(V+1);)V++;let Ce=V>=0?Math.max(0,K[V].lastT-C.getState().offset):0;C.setState({bufferedMs:Math.max(C.getState().bufferedMs,Ce),loadProgress:K.length?H.size/K.length:1})},nr=()=>{let K=C.getState();if(K.controller){if(K.pendingSeek!=null){if(ie(K.pendingSeek)){let V=K.pendingSeek;K.controller.seek(V),be.current?(K.controller.play(V),C.setState({pendingSeek:null,currentTime:V,status:"playing"})):C.setState({pendingSeek:null,currentTime:V,status:"paused"})}return}if(K.status==="buffering"){let V=N(K.currentTime+K.offset);if(!H.has(V))return;no(V)>V?be.current?(K.controller.play(K.currentTime),C.setState({status:"playing"})):C.setState({status:"paused"}):V>=Ie.current.length-1&&C.setState({status:"ended",currentTime:C.getState().durationMs})}}},Wt=async K=>{try{return await jp(K,un)}catch{await new Promise(V=>setTimeout(V,250));try{return await jp(K,un)}catch{return null}}},Ma=6,Y=async(K,V)=>{let Ce=Ie.current,xe=Math.max(0,K),oo=Math.min(Ce.length-1,V),bu=[];for(let Pr=xe;Pr<=oo;Pr++)H.has(Pr)||bu.push(Pr);for(let Pr=0;Pr<bu.length&&!T;Pr+=Ma){let Cu=bu.slice(Pr,Pr+Ma),HS=await Promise.all(Cu.map(dn=>Wt(Ce[dn].url)));if(T)return;let um=C.getState().controller;if(!um)return;for(let dn=0;dn<Cu.length;dn++){let Lu=Cu[dn],js=HS[dn];js&&js.length?(um.appendEvents(js),js.some(WS=>WS.type===2)&&O.add(Lu)):console.warn(`[obsrviq] replay chunk seq ${Ce[Lu]?.seq} unavailable \u2014 skipping`),H.add(Lu)}ut(),nr()}},ge=8,or=async K=>{for(let Ce=K;Ce>=0;Ce--)if(O.has(Ce)){if(ee||K-Ce<=ge)return Ce;break}let V=K;for(;V>=0&&!T;){let Ce=Math.max(0,V-ge+1);await Y(Ce,V);for(let xe=V;xe>=Ce;xe--)if(O.has(xe))return xe;if(Ce===0)return 0;V=Ce-1}return 0},no=K=>{let V=K;for(;H.has(V+1);)V++;return V};return(async()=>{for(;!T&&!C.getState().controller;)await new Promise(K=>setTimeout(K,30));for(;!T;){let K=Ie.current;if(H.size>=K.length)break;let V=C.getState();if(V.pendingSeek!=null&&V.controller){if(!ie(V.pendingSeek)){let xe=N(V.pendingSeek+V.offset),oo=await or(xe);await Y(oo,xe)}nr();continue}if((V.status==="playing"||V.status==="buffering")&&!ie(V.currentTime)){let xe=N(V.currentTime+V.offset),oo=await or(xe);await Y(oo,xe),nr();continue}let Ce=N(V.currentTime+V.offset);if(H.has(Ce)){let xe=no(Ce);if(xe<K.length-1){await Y(xe+1,xe+1);continue}}await new Promise(xe=>setTimeout(xe,200))}T||nr()})(),()=>{T=!0,C.getState()._setLoaderProbes(null,null)}},[g,E]),(0,G.useEffect)(()=>{if(!g||!E)return;let T=!1,H=async()=>{let ee=C.getState().controller;if(!(!ee||T))try{let N=await Uk(e,un,k.current,ke.current);if(T)return;if(k.current=N.maxSeq,N.newRrwebEvents.length){let te=ee.appendEvents(N.newRrwebEvents);C.setState({durationMs:te,bufferedMs:te}),C.getState().following&&(ee.seek(te),C.setState({currentTime:te}))}if(N.newEvents.length){ke.current=N.newEvents.reduce((ut,nr)=>Math.max(ut,nr.t),ke.current);let te=[...C.getState().events,...N.newEvents];C.setState({events:te,markers:Os(te)})}let ie=N.summary.lastEventAt??0;ie&&Date.now()-ie>4e4&&(C.setState({live:!1,following:!1}),T=!0)}catch{}};H();let O=setInterval(()=>{H()},1e3);return()=>{T=!0,clearInterval(O)}},[g,E]),(0,G.useEffect)(()=>{let T=C.getState().controller;T&&requestAnimationFrame(()=>T.fit())},[ln,Er,C]),(0,G.useEffect)(()=>{let T=M.current;if(!T)return;let H=O=>{let ee=O.target;if(ee&&(ee.tagName==="INPUT"||ee.tagName==="TEXTAREA"||ee.isContentEditable))return;let N=C.getState();if((O.metaKey||O.ctrlKey)&&(O.key==="k"||O.key==="K")){O.preventDefault(),N.openPalette(!N.paletteOpen);return}if(!(O.metaKey||O.ctrlKey))switch(O.key){case" ":case"k":O.preventDefault(),N.toggle();break;case"r":N.restart();break;case"ArrowLeft":O.preventDefault(),N.seek(N.currentTime-1e4);break;case"ArrowRight":O.preventDefault(),N.seek(N.currentTime+1e4);break;case"[":N.jumpEvent(-1);break;case"]":N.jumpEvent(1);break;case",":O.shiftKey?Hs(-1):N.step(-1);break;case".":O.shiftKey?Hs(1):N.step(1);break;case"s":case"S":O.shiftKey?N.setAutoSkim(!N.autoSkim):N.setAutoSkip(!N.autoSkip);break;case"l":case"L":N.setLoop(!N.loop);break;case"f":case"F":om.current&&Su();break;case"c":case"C":h?.(N.currentTime+N.offset);break;case"n":case"N":O.preventDefault(),N.nextProblem(O.shiftKey?-1:1);break;case"e":case"E":{let ie=["all","network","console","error","signal","task","nav"],te=ie.indexOf(N.feedFilter);N.setFeedFilter(ie[(te+1)%ie.length]);break}case"z":case"Z":O.shiftKey?N.zoomStack.length&&N.zoomOutTo(N.zoomStack.length-1):N.selectionRange&&N.zoomTo(N.selectionRange[0],N.selectionRange[1]);break;case"x":case"X":N.toggleSnap();break;case"t":case"T":N.setFocusMode(N.focusMode==="stage"?"balanced":"stage");break;case"d":case"D":N.setFocusMode(N.focusMode==="debug"?"balanced":"debug");break;case"`":br(ie=>ie+1),Er==="mid"&&_e(ie=>!ie);break;case">":Hs(1);break;case"<":Hs(-1);break;case"?":it(ie=>!ie);break;case"Escape":N.paletteOpen?N.openPalette(!1):N.selectedEventId?N.select(null):N.zoomStack.length?N.zoomOutTo(N.zoomStack.length-1):Qe?it(!1):X&&_e(!1);break;default:break}};return T.addEventListener("keydown",H),()=>T.removeEventListener("keydown",H)},[Er,Qe,X]);let Hs=(0,G.useCallback)(T=>{let H=C.getState(),O=[.5,1,1.5,2,4,8],ee=O.indexOf(H.speed),N=O[Math.min(O.length-1,Math.max(0,ee+T))]??H.speed;H.setSpeed(N)},[C]),Su=(0,G.useCallback)(()=>{let T=M.current;T&&(document.fullscreenElement?document.exitFullscreen?.().catch(()=>{}):T.requestFullscreen?.().catch(()=>{}))},[]);(0,G.useEffect)(()=>{let T=()=>Ia(!!document.fullscreenElement);return document.addEventListener("fullscreenchange",T),()=>document.removeEventListener("fullscreenchange",T)},[]),(0,G.useEffect)(()=>{if(!p)return;let T=-1;return C.subscribe(H=>{H.currentTime!==T&&(T=H.currentTime,p(H.currentTime+H.offset))})},[p,C]),(0,G.useEffect)(()=>{if(Er!=="mid"){_e(!1);return}return C.subscribe((T,H)=>{T.selectedEventId&&T.selectedEventId!==H.selectedEventId&&_e(!0)})},[Er,C]);let im=x,Ws=Er==="wide"&&ln!=="stage",lm=ln==="stage"?null:wu,qS=lm!=null?{...im??{},gridTemplateRows:`48px auto minmax(0, 1fr) ${lm}px`}:im,$S=Ws&&me!=null?{gridTemplateColumns:`minmax(0, 1fr) ${me}px`}:void 0;return(0,je.jsxs)("div",{ref:M,className:`lum-root lum lum-pl lum-strata lum-strata--${Er} lum-strata--${ln} ${v?"lum-pl--embedded":""} ${b??""}`,style:qS,"data-breakpoint":Er,"data-focus":ln,tabIndex:0,children:[(0,je.jsx)(tI,{isFullscreen:yt,onFullscreen:Su,allowFullscreen:$s,sessionId:e,shareUrl:US,apiBaseUrl:t,onHelp:()=>it(T=>!T),onBack:m,backLabel:S,topbarActions:w}),(0,je.jsx)(nI,{}),(0,je.jsxs)("div",{className:"lum-st-stagerow",ref:lt,style:$S,children:[(0,je.jsx)("div",{className:"lum-st-stagecol",ref:D,children:(0,je.jsx)(oI,{ref:I,onRetry:()=>wr(T=>T+1),overlay:(0,je.jsx)(uI,{stageRef:I})})}),Ws&&(0,je.jsxs)("div",{className:"lum-st-inspectorcol",children:[(0,je.jsx)("div",{className:"lum-st-resize lum-st-resize--x",role:"separator","aria-orientation":"vertical","aria-label":"Resize inspector width",title:"Drag to resize \xB7 double-click to reset",onPointerDown:BS,onDoubleClick:()=>sn(null)}),(0,je.jsx)(tS,{feedFocusKey:Sr})]})]}),(0,je.jsx)(pM,{breakpoint:Er,isFullscreen:yt,onFullscreen:Su,allowFullscreen:$s,onResizeStart:ln==="stage"?void 0:zS,onResizeReset:()=>nm(null)}),!Ws&&(0,je.jsx)(Xx,{open:X,onClose:()=>_e(!1),title:"Inspector",children:(0,je.jsx)(tS,{feedFocusKey:Sr})}),!Ws&&!X&&(0,je.jsx)("button",{className:"lum-st-inspectortab",onClick:()=>_e(!0),"aria-label":"Open inspector (`)",children:"Inspector"}),(0,je.jsx)(mM,{}),(0,je.jsx)(gM,{open:Qe,onClose:()=>it(!1)})]})}var ES=F(le(),1);function am({theme:e,className:t,children:r}){let a=typeof e=="string"?e:void 0,n=e&&typeof e=="object"?e:void 0;return(0,ES.jsx)("div",{className:`lum-root lum lum-widget ${t??""}`,"data-lum-theme":a,style:n,children:r})}var on=F(le(),1);function yM(e,t){return e?{authorization:`Bearer ${e}`}:t?{authorization:`Bearer ${t}`,"x-obsrviq-key":t}:{}}function wM(e,t){let{apiBaseUrl:r,token:a,apiKey:n,userId:o,siteId:i,clip:s}=t,[l,d]=(0,Qr.useState)({sessionId:null,loading:e,error:null,notFound:!1}),u=JSON.stringify([o,i,s?.fromUtc,s?.toUtc,s?.fromEvent,s?.toEvent]);return(0,Qr.useEffect)(()=>{if(!e||!o)return;let f=new AbortController;d({sessionId:null,loading:!0,error:null,notFound:!1});let c=new URLSearchParams({userId:o});i&&c.set("siteId",i),s?.fromUtc!=null&&s?.toUtc!=null?(c.set("fromUtc",String(s.fromUtc)),c.set("toUtc",String(s.toUtc))):s?.fromEvent&&(c.set("fromEvent",s.fromEvent),s.toEvent&&c.set("toEvent",s.toEvent));let p=r.replace(/\/$/,"");return fetch(`${p}/v1/sessions/locate?${c.toString()}`,{headers:yM(a,n),signal:f.signal}).then(async h=>{if(!h.ok){let m=h.status===404;throw Object.assign(new Error(m?"No matching recording for that user.":`Lookup failed (${h.status}).`),{notFound:m})}return h.json()}).then(h=>{f.signal.aborted||d({sessionId:h.sessionId,loading:!1,error:null,notFound:!1})}).catch(h=>{if(f.signal.aborted)return;let m=!!h?.notFound;d({sessionId:null,loading:!1,error:h instanceof Error?h.message:"Lookup failed.",notFound:m})}),()=>f.abort()},[e,u,r]),l}var SM={display:"flex",alignItems:"center",justifyContent:"center",height:"100%",padding:16,textAlign:"center",color:"var(--lum-muted)",fontSize:14};function PS({sessionId:e,userId:t,siteId:r,apiBaseUrl:a,apiKey:n,token:o,theme:i,startAtMs:s,clip:l,defaultMode:d,allowedModes:u,defaultSpeed:f,allowFullscreen:c,shareUrl:p,onEnded:h,onError:m,fallback:S="message",height:g=560}){let x=!e&&!!t,v=wM(x,{apiBaseUrl:a,token:o,apiKey:n,userId:t,siteId:r,clip:l}),[b,w]=(0,Qr.useState)(null),y=e??v.sessionId;(0,Qr.useEffect)(()=>w(null),[y]);let L=(0,Qr.useRef)(null);if((0,Qr.useEffect)(()=>{let C=null;!e&&!t?C={reason:"error",message:"Provide a sessionId or a userId."}:v.error?C={reason:v.notFound?"not_found":"error",message:v.error}:b&&(C=b),C?L.current!==C.message&&(L.current=C.message,m?.(C)):L.current=null},[e,t,v.error,v.notFound,b]),!y){if(S==="hide")return null;let C=!e&&!t?"Provide a sessionId or a userId to play a recording.":x&&v.loading?"Finding the recording\u2026":v.error??"Recording unavailable.";return(0,on.jsx)(am,{theme:i,className:"lum-widget--replay",children:(0,on.jsx)("div",{style:{height:g},children:(0,on.jsx)("div",{style:SM,children:C})})})}return b&&S==="hide"?null:(0,on.jsx)(am,{theme:i,className:"lum-widget--replay",children:(0,on.jsx)("div",{style:{height:g},children:(0,on.jsx)(_S,{sessionId:y,apiBaseUrl:a,apiKey:n,token:o,startAtMs:s,clip:l,defaultMode:d,allowedModes:u,defaultSpeed:f,allowFullscreen:c,shareUrl:p,onEnded:h,onError:C=>w(C),embedded:!0})})})}var TS=`/* Obsrviq design tokens (\xA716) \u2014 refined. Override any --lum-* var to white-label.
|
|
138
|
+
`);i=p.pop()??"";for(let c of p){let f=c.trim();if(!f.startsWith("data:"))continue;let h=f.slice(5).trim();if(h==="[DONE]")return;try{yield JSON.parse(h)}catch{}}}}async function Wk(e,t){let r=t.apiBaseUrl.replace(/\/$/,""),n=await Qr(`${r}/v1/sessions/${e}`,t),a=await Qr(`${r}/v1/sessions/${e}/events`,t);return{detail:n,events:a.items}}async function Yp(e,t){return(await Qr(e,t)).slice().sort((n,a)=>n.timestamp-a.timestamp)}function Vk(e){return e.token?{authorization:`Bearer ${e.token}`}:e.apiKey?{authorization:`Bearer ${e.apiKey}`,"x-obsrviq-key":e.apiKey}:{}}async function Qr(e,t){let r=await fetch(e,{headers:Vk(t)});if(!r.ok)throw Object.assign(new Error(`${r.status} ${r.statusText} (${e})`),{notFound:r.status===404});return await r.json()}async function Gk(e,t,r){let n=t.apiBaseUrl.replace(/\/$/,""),a=await Qr(`${n}/v1/sessions/${e}`,t),o=await Qr(`${n}/v1/sessions/${e}/events`,t),s=[...a.replayChunks].sort((u,p)=>u.seq-p.seq),l=0,d=(await Promise.allSettled(s.map(async u=>{let p=await Qr(u.url,t);return r?.(++l,s.length),p}))).filter(u=>u.status==="fulfilled").flatMap(u=>u.value).sort((u,p)=>u.timestamp-p.timestamp);return{detail:a,events:o.items,rrwebEvents:d}}async function Xk(e,t,r,n){let a=t.apiBaseUrl.replace(/\/$/,""),o=await Qr(`${a}/v1/sessions/${e}`,t),s=o.replayChunks.filter(c=>c.seq>r).sort((c,f)=>c.seq-f.seq),l=r,d=(await Promise.allSettled(s.map(async c=>{let f=await Qr(c.url,t);return c.seq>l&&(l=c.seq),f}))).filter(c=>c.status==="fulfilled").flatMap(c=>c.value).sort((c,f)=>c.timestamp-f.timestamp),p=(await Qr(`${a}/v1/sessions/${e}/events`,t)).items.filter(c=>c.t>n);return{summary:o.summary,newRrwebEvents:d,newEvents:p,maxSeq:l}}var Kk=2e3;function Us(e){let t=[];for(let r of e){let n=null,a="";switch(r.type){case"error":{n="error",a=`${r.name??"Error"}: ${r.message??""}`.slice(0,120);break}case"console":{let o=r;o.level==="error"&&(n="error",a=Qk(o));break}case"network":{let o=r;(o.status===0||o.status>=400||o.timing&&o.timing.duration>Kk)&&(n="network",a=`${o.method} ${o.url} \u2014 ${o.status||"failed"}`.slice(0,120));break}case"custom":{let o=r;if(o.name==="rage_click")n="rage",a=`Rage click ${tb(o)}`;else if(o.name==="dead_click")n="dead",a=`Dead click ${tb(o)}`;else if(o.props&&o.props.conversion===!0)n="conversion",a=`Conversion: ${o.name}`;else if(o.name==="navigation"||o.name==="pageview")n="nav",a="Page change";else{let s=/^(.+):started$/.exec(o.name??""),l=/^(.+):ended$/.exec(o.name??"");s?(n="task",a=`Task: ${o.props?.task??s[1]}`):l&&(n="task",a=`Task ended: ${o.props?.task??l[1]}`)}break}case"ai":{n="ai",a="AI step";break}}n&&t.push({kind:n,t:r.t,label:a,ref:r.id})}return t.sort((r,n)=>r.t-n.t)}function Qk(e){let t=e.args[0];return t?t.kind==="string"?t.value.slice(0,120):t.kind==="error"?`${t.name}: ${t.message}`.slice(0,120):t.kind==="object"?t.preview.slice(0,120):t.kind==="primitive"?String(t.value):"console.error":"console.error"}function tb(e){return e.props?.selector??""}var rb="#6e76f1",Yk=8,Jk=2500,Zk=1200,eI=600,tI=400,nb=250,rI=class{constructor(e,t,r,n){this.root=e,this.cb=n,this.playing=!1,this.raf=0,this.destroyed=!1,this.activityTimes=[],this.extraActivity=[],this.idleGaps=[],this.autoSkim=!1,this.autoSkip=!1,this.skimming=!1,this.replayer=new Xi(t,{root:e,speed:r.speed,skipInactive:!1,showWarning:!1,showDebug:!1,mouseTail:r.showCursor?{strokeStyle:rb}:!1,UNSAFE_replayCanvas:!1});let a=this.replayer.getMetaData();this.meta={startTime:a.startTime,endTime:a.endTime,totalTime:a.totalTime},this.mutationTimes=t.filter(o=>o.type===3).map(o=>o.timestamp-a.startTime).filter(o=>o>=0).sort((o,s)=>o-s),this.userSpeed=r.speed,this.autoSkim=!!r.autoSkim,this.autoSkip=!!r.autoSkip,this.rebuildActivity(),this.replayer.on("finish",()=>{this.playing=!1,this.stopLoop(),this.cb.onFinish()}),this.replayer.on("resize",()=>this.fit()),requestAnimationFrame(()=>this.fit())}appendEvents(e){let t=!1;for(let r of e){try{this.replayer.addEvent(r)}catch{}if(r.timestamp>this.meta.endTime&&(this.meta.endTime=r.timestamp),r.type===3){let n=r.timestamp-this.meta.startTime;n>=0&&(this.mutationTimes.push(n),t=!0)}}return t&&(this.mutationTimes.sort((r,n)=>r-n),this.rebuildActivity()),this.meta.totalTime=Math.max(this.meta.totalTime,this.meta.endTime-this.meta.startTime),this.meta.totalTime}setActivityTimes(e){this.extraActivity=e.filter(t=>t>=0),this.rebuildActivity()}setAutoSkim(e){this.autoSkim=e,e||this.exitSkim()}setAutoSkip(e){this.autoSkip=e}rebuildActivity(){let e=new Set(this.mutationTimes);for(let t of this.extraActivity)e.add(t);this.activityTimes=Array.from(e).sort((t,r)=>t-r),this.recomputeGaps()}recomputeGaps(){let e=this.activityTimes,t=[];for(let r=0;r<e.length-1;r++){let n=e[r],a=e[r+1];a-n>=Jk&&t.push({start:n,end:a})}this.idleGaps=t}idleGapAt(e){for(let t of this.idleGaps)if(e>=t.start&&e<t.end)return t;return null}evaluateSkim(e){if(!this.autoSkim||!this.playing){this.skimming&&this.exitSkim();return}let t=this.idleGapAt(e),r=t!=null&&e-t.start>=Zk&&t.end-e>eI;r&&!this.skimming?this.enterSkim():!r&&this.skimming&&this.exitSkim()}evaluateSkip(e){if(!this.autoSkip||!this.playing)return;let t=this.idleGapAt(e);if(t==null||e-t.start<tI||t.end-e<=nb+50||t.end>this.meta.totalTime)return;let r=t.end-nb,n=Math.max(0,r-e);this.seek(r),this.cb.onSkip?.(n)}enterSkim(){this.skimming=!0,this.replayer.setConfig({speed:Yk}),this.cb.onSkim?.(!0)}exitSkim(){this.skimming&&(this.skimming=!1,this.replayer.setConfig({speed:this.userSpeed}),this.cb.onSkim?.(!1))}fit(){try{let e=this.replayer.iframe,t=this.replayer.wrapper;if(!e||!t)return;let r=Number(e.getAttribute("width"))||e.offsetWidth,n=Number(e.getAttribute("height"))||e.offsetHeight,a=this.root.clientWidth,o=this.root.clientHeight;if(!r||!n||!a||!o)return;let s=Math.min(a/r,o/n,1);t.style.position="absolute",t.style.transformOrigin="top left",t.style.transform=`scale(${s})`,t.style.left=`${Math.max(0,(a-r*s)/2)}px`,t.style.top=`${Math.max(0,(o-n*s)/2)}px`}catch{}}play(e){this.destroyed||(this.replayer.play(e),this.playing=!0,this.cb.onState("playing"),this.startLoop())}pause(e){this.destroyed||(this.exitSkim(),this.replayer.pause(e),this.playing=!1,this.stopLoop(),this.cb.onState("paused"),this.cb.onTime(e??this.currentTime()))}seek(e){this.exitSkim();let t=Math.max(0,Math.min(this.meta.totalTime,e));this.playing?this.replayer.play(t):this.replayer.pause(t),this.cb.onTime(t)}currentTime(){try{return this.replayer.getCurrentTime()}catch{return 0}}setSpeed(e){this.userSpeed=e,this.skimming||this.replayer.setConfig({speed:e})}setShowCursor(e){this.replayer.setConfig({mouseTail:e?{strokeStyle:rb}:!1})}isPlaying(){return this.playing}startLoop(){this.stopLoop();let e=()=>{if(!this.playing||this.destroyed)return;let t=this.currentTime();this.evaluateSkim(t),this.evaluateSkip(t),this.cb.onTime(this.currentTime()),this.raf=requestAnimationFrame(e)};this.raf=requestAnimationFrame(e)}stopLoop(){this.raf&&cancelAnimationFrame(this.raf),this.raf=0}destroy(){this.destroyed=!0,this.exitSkim(),this.stopLoop();try{this.replayer.pause()}catch{}try{let e=this.replayer.wrapper;e?.parentElement?.removeChild(e)}catch{}}};function te(e){let t=Math.max(0,Math.floor(e/1e3)),r=t%60,n=Math.floor(t/60)%60,a=Math.floor(t/3600),o=s=>String(s).padStart(2,"0");return a>0?`${a}:${o(n)}:${o(r)}`:`${n}:${o(r)}`}function pu(e){return e==null?"\u2014":e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function mu(e){return e==null?"\u2014":e<1e3?`${Math.round(e)} ms`:`${(e/1e3).toFixed(2)} s`}function nI(e){let t=Math.max(0,e);if(t<1e3)return`${(t/1e3).toFixed(1)}s`;let r=Math.round(t/1e3);if(r<60)return`${r}s`;let n=Math.floor(r/60),a=r%60;return a?`${n}m ${a}s`:`${n}m`}var aI=[{id:"stage",label:"Watch",key:"T",hint:"Just play and watch \u2014 full-screen replay, slim scrubber"},{id:"balanced",label:"Balanced",key:"",hint:"Replay + timeline + inspector together"},{id:"debug",label:"Debug",key:"D",hint:"Maximize the timeline + inspector for deep debugging"}];function oI(){let e=M(a=>a.focusMode),t=M(a=>a.setFocusMode),r=M(a=>a.allowedModes),n=aI.filter(a=>r.includes(a.id));return n.length<=1?null:(0,$s.jsx)("div",{className:"lum-st-focus",role:"group","aria-label":"Focus mode",children:n.map(a=>(0,$s.jsxs)("button",{className:`lum-st-focus__pill ${e===a.id?"is-active":""}`,"aria-pressed":e===a.id,title:a.key?`${a.hint} (${a.key})`:a.hint,onClick:()=>t(a.id),children:[a.label,a.key&&(0,$s.jsx)("kbd",{className:"lum-st-focus__key",children:a.key})]},a.id))})}async function Cb(e){try{if(navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.top="-1000px",t.style.opacity="0",document.body.appendChild(t),t.focus(),t.select();let r=document.execCommand("copy");return document.body.removeChild(t),r}catch{return!1}}var Lb=["clipFrom","clipTo","clipFromMs","clipToMs","clipFromUtc","clipToUtc","clipLoop"];function kb(e){let{sessionId:t,shareUrl:r,apiBaseUrl:n}=e,a=typeof window<"u"?window.location.href:void 0;if(r)try{if(r.includes(":id"))return new URL(r.replace(":id",encodeURIComponent(t)),a);let s=new URL(r,a);return s.pathname=`${s.pathname.replace(/\/+$/,"")}/sessions/${t}`,s}catch{}try{let s=new URL(window.location.href);if(t&&s.pathname.includes(t))return s}catch{}let o;try{o=new URL(n,window.location.href).origin}catch{o=window.location.origin}return new URL(`/sessions/${t}`,o)}function sI({sessionId:e,shareUrl:t,apiBaseUrl:r}){let n=lm(),a=M(d=>d.status),[o,s]=(0,_t.useState)(null),l=(0,_t.useRef)(void 0);(0,_t.useEffect)(()=>()=>clearTimeout(l.current),[]);async function i(){let d=n.getState(),u=Math.max(0,Math.round(d.currentTime+d.offset)),p;try{let c=kb({sessionId:e,shareUrl:t,apiBaseUrl:r});c.searchParams.set("t",String(u)),d.selectedEventId?c.searchParams.set("event",d.selectedEventId):c.searchParams.delete("event");for(let f of["focus","sel","live",...Lb])c.searchParams.delete(f);p=c.toString()}catch{return}await Cb(p)&&(s(te(u)),clearTimeout(l.current),l.current=setTimeout(()=>s(null),2e3))}return(0,H.jsxs)("button",{className:`lum-st-share ${o?"is-copied":""}`,onClick:i,disabled:a==="loading","aria-label":"Copy a link to this exact moment",title:"Copy a link to this exact moment",children:[o?(0,H.jsx)(no,{size:13,"aria-hidden":!0}):(0,H.jsx)(kn,{size:13,"aria-hidden":!0}),(0,H.jsx)("span",{children:o?`Copied @ ${o}`:"Copy link"})]})}function lI({sessionId:e,shareUrl:t,apiBaseUrl:r}){let n=lm(),a=M(b=>b.status),[o,s]=(0,_t.useState)(!1),[l,i]=(0,_t.useState)(null),[d,u]=(0,_t.useState)(null),[p,c]=(0,_t.useState)(!1),[f,h]=(0,_t.useState)(!1),m=(0,_t.useRef)(void 0);(0,_t.useEffect)(()=>()=>clearTimeout(m.current),[]);let y=()=>{let b=n.getState();return Math.max(0,Math.round(b.currentTime+b.offset))},g=l!=null&&d!=null&&d>l;function x(){let b=l,w=d;if(b==null||w==null||w<=b)return;let C=n.getState(),L=C.toRelative(b),k=C.toRelative(w);k<=L||(C.setClip(L,k,p),C.seek(L),C.play())}async function v(){let b=l,w=d;if(b==null||w==null||w<=b)return;let C;try{let L=kb({sessionId:e,shareUrl:t,apiBaseUrl:r});for(let k of["event","t","focus","sel","live",...Lb])L.searchParams.delete(k);L.searchParams.set("clipFromMs",String(b)),L.searchParams.set("clipToMs",String(w)),p&&L.searchParams.set("clipLoop","1"),C=L.toString()}catch{return}await Cb(C)&&(h(!0),clearTimeout(m.current),m.current=setTimeout(()=>h(!1),2e3))}function S(){i(null),u(null),n.getState().setClip(null,null)}return(0,H.jsxs)("div",{className:"lum-st-clipwrap",children:[(0,H.jsxs)("button",{className:`lum-st-clip ${o?"is-open":""}`,onClick:()=>s(b=>!b),disabled:a==="loading","aria-label":"Clip a segment","aria-expanded":o,title:"Clip a segment to play or share",children:[(0,H.jsx)(Ps,{size:13,"aria-hidden":!0}),(0,H.jsx)("span",{children:"Clip"})]}),o&&(0,H.jsxs)("div",{className:"lum-st-clippop",role:"dialog","aria-label":"Clip a segment",children:[(0,H.jsxs)("div",{className:"lum-st-clippop__row",children:[(0,H.jsx)("span",{className:"lum-st-clippop__lbl",children:"Start"}),(0,H.jsx)("span",{className:"lum-st-clippop__val",children:l!=null?te(l):"\u2014"}),(0,H.jsx)("button",{className:"lum-st-clippop__set",onClick:()=>i(y()),children:"Set to playhead"})]}),(0,H.jsxs)("div",{className:"lum-st-clippop__row",children:[(0,H.jsx)("span",{className:"lum-st-clippop__lbl",children:"End"}),(0,H.jsx)("span",{className:"lum-st-clippop__val",children:d!=null?te(d):"\u2014"}),(0,H.jsx)("button",{className:"lum-st-clippop__set",onClick:()=>u(y()),children:"Set to playhead"})]}),(0,H.jsxs)("label",{className:"lum-st-clippop__loop",children:[(0,H.jsx)("input",{type:"checkbox",checked:p,onChange:b=>c(b.target.checked)}),"Loop the clip"]}),(0,H.jsx)("p",{className:"lum-st-clippop__hint",children:"Click a marker (or scrub) to a moment, then capture it."}),(0,H.jsxs)("div",{className:"lum-st-clippop__actions",children:[(0,H.jsxs)("button",{className:"lum-st-clippop__play",disabled:!g,onClick:x,children:[(0,H.jsx)(sa,{size:12,"aria-hidden":!0})," Play clip"]}),(0,H.jsxs)("button",{className:"lum-st-clippop__copy",disabled:!g,onClick:v,children:[f?(0,H.jsx)(no,{size:12,"aria-hidden":!0}):(0,H.jsx)(kn,{size:12,"aria-hidden":!0}),f?"Copied":"Copy clip link"]}),(0,H.jsx)("button",{className:"lum-st-clippop__clear",onClick:S,"aria-label":"Clear clip",children:(0,H.jsx)(la,{size:12,"aria-hidden":!0})})]})]})]})}function iI({isFullscreen:e,onFullscreen:t,allowFullscreen:r=!0,sessionId:n,shareUrl:a,apiBaseUrl:o,onHelp:s,onBack:l,backLabel:i,topbarActions:d}){let u=M(k=>k.summary),p=M(k=>k.durationMs),c=M(k=>k.events),f=M(k=>k.openPalette),h=M(k=>k.status),m=M(k=>k.live),y=M(k=>k.following),g=M(k=>k.setFollowing),x=(0,_t.useMemo)(()=>{let k=0,_=0,N=0,P=0;for(let I of c)if(I.type==="error")k++;else if(I.type==="console"&&I.level==="error")k++;else if(I.type==="network"){let re=I;(re.status>=400||re.status===0)&&_++}else if(I.type==="custom"){let re=I;re.name==="rage_click"&&N++,re.props&&re.props.conversion===!0&&P++}return{errors:k,netFail:_,rage:N,conversions:P}},[c]),v=u?.conversionNames??[],S=v.length?`Conversions: ${v.join(", ")}`:`${x.conversions} conversions`,b=u?.customSignals??[],w=u?.device,C=u?.id??"\u2014",L=h==="loading";return(0,H.jsxs)("header",{className:"lum-st-topbar",children:[(0,H.jsxs)("div",{className:"lum-st-topbar__left",children:[l&&(0,H.jsx)("button",{className:"lum-st-topbar__back lum-iconbtn",onClick:l,"aria-label":i??"Back",title:i??"Back",children:(0,H.jsx)(ea,{size:17})}),(0,H.jsx)("span",{className:"lum-st-logo","aria-hidden":!0,children:"\u25C6"}),(0,H.jsx)("strong",{className:"lum-st-topbar__title",children:"Strata"}),(0,H.jsx)("span",{className:"lum-st-topbar__sep",children:"\xB7"}),(0,H.jsx)("span",{className:"lum-st-topbar__sid lum-mono",title:String(C),children:String(C).slice(0,8)}),w&&(0,H.jsxs)("span",{className:"lum-st-topbar__device lum-muted",children:[w.type,w.browser?` \xB7 ${w.browser}`:""]}),u?.userId&&(0,H.jsxs)("span",{className:"lum-st-topbar__user lum-mono",title:`User: ${u.userId}`,children:[(0,H.jsx)(Fs,{size:12,"aria-hidden":!0})," ",u.userId]}),(0,H.jsx)("span",{className:"lum-st-topbar__clock lum-mono",children:L?"\u2014":te(p)}),m&&(y?(0,H.jsxs)("span",{className:"lum-st-livebadge",title:"Watching live",children:[(0,H.jsx)("span",{className:"lum-st-livebadge__dot","aria-hidden":!0})," LIVE"]}):(0,H.jsxs)("button",{className:"lum-st-livebadge lum-st-livebadge--paused",onClick:()=>g(!0),title:"Jump back to the live edge",children:[(0,H.jsx)("span",{className:"lum-st-livebadge__dot","aria-hidden":!0})," GO LIVE"]}))]}),(0,H.jsxs)("div",{className:"lum-st-topbar__badges","aria-label":"Session triage badges",children:[(0,H.jsxs)("span",{className:`lum-st-badge lum-st-badge--error ${x.errors?"":"is-zero"}`,title:`${x.errors} errors`,children:["\u26A0 ",L?"\u2014":x.errors]}),(0,H.jsxs)("span",{className:`lum-st-badge lum-st-badge--net ${x.netFail?"":"is-zero"}`,title:`${x.netFail} failed requests`,children:["\u25C6 ",L?"\u2014":x.netFail]}),(0,H.jsxs)("span",{className:`lum-st-badge lum-st-badge--rage ${x.rage?"":"is-zero"}`,title:`${x.rage} rage clicks`,children:["\u21AF ",L?"\u2014":x.rage]}),!L&&x.conversions>0&&(0,H.jsxs)("span",{className:"lum-st-badge lum-st-badge--conv",title:S,children:["\u2726 ",v.length===1?v[0]:x.conversions]}),!L&&b.map(k=>(0,H.jsxs)("span",{className:"lum-st-badge lum-st-badge--signal",title:`Custom signal: ${k}`,children:["\u2756 ",k]},k))]}),(0,H.jsxs)("div",{className:"lum-st-topbar__right",children:[d,!m&&(0,H.jsx)(lI,{sessionId:n,shareUrl:a,apiBaseUrl:o}),!m&&(0,H.jsx)(sI,{sessionId:n,shareUrl:a,apiBaseUrl:o}),(0,H.jsxs)("button",{className:"lum-st-cmdk",onClick:()=>f(!0),title:"Command palette (\u2318K)",children:[(0,H.jsx)(bs,{size:13}),(0,H.jsx)("span",{children:"K"})]}),(0,H.jsx)(oI,{}),(0,H.jsx)("button",{className:"lum-iconbtn","aria-label":"Keyboard shortcuts (?)",onClick:s,title:"Shortcuts (?)",children:(0,H.jsx)(Ls,{size:16})}),r&&(0,H.jsx)("button",{className:"lum-iconbtn","aria-label":e?"Exit fullscreen":"Fullscreen",onClick:t,title:"Fullscreen (F)",children:e?(0,H.jsx)(oa,{size:16}):(0,H.jsx)(aa,{size:16})})]})]})}var uI=8e3,dI=2e3;function cI(e){if(!e)return"";try{return new URL(e).pathname||"/"}catch{return e.split("?")[0]??e}}function fI(e){if(e.type==="error"||e.type==="console"&&e.level==="error")return!0;if(e.type==="network"){let t=e;return t.status===0||t.status>=400}if(e.type==="custom"){let t=e;if(t.name==="rage_click"||t.name==="dead_click"||t.props&&t.props.conversion===!0)return!0}return!1}function im(e,t){if(!e.length)return[];let r=[...e].sort((d,u)=>d.t-u.t),n=new Set([0]),a=0;for(let d of r)d.t-a>uI&&n.add(d.t),(d.type==="custom"&&["navigation","pageview"].includes(d.name)||d.type==="perf"&&d.metric==="navigation")&&n.add(d.t),a=d.t;let o=[...n].sort((d,u)=>d-u),s=[...o.slice(1),Math.max(t,a)+1];for(let d=0;d<o.length;d++){let u=o[d],p=s[d],c=r.find(f=>f.t>=u&&f.t<p&&fI(f));c&&c.t-u>dI&&n.add(c.t)}let l=[...n].sort((d,u)=>d-u);l.push(Math.max(t,a)+1);let i=[];for(let d=0;d<l.length-1;d++){let u=l[d],p=l[d+1],c=r.filter(S=>S.t>=u&&S.t<p),f={errors:0,network:0,rage:0,dead:0,conversion:0},h="",m=c.length===0;for(let S of c)if(S.type==="error")f.errors++;else if(S.type==="console"&&S.level==="error")f.errors++;else if(S.type==="network"){f.network++;let b=S;(b.status===0||b.status>=400)&&f.errors++,b.url&&(h=b.url)}else if(S.type==="custom"){let b=S;b.name==="rage_click"?f.rage++:b.name==="dead_click"&&f.dead++,b.props&&b.props.conversion===!0&&f.conversion++}let y,g;d===0?(y="start",g="Session start"):f.conversion>0?(y="conversion",g="Converted"):f.errors>0?(y="error",g="Hit an error"):f.rage>0||f.dead>0?(y="frustration",g="Got stuck"):m?(y="idle",g="Paused"):f.network>3?(y="load",g="Loaded data"):(y="browse",g=h?`Browsed ${cI(h)}`:"Browsing");let x=[];f.errors&&x.push(`${f.errors} error${f.errors>1?"s":""}`),f.rage&&x.push(`${f.rage} rage`),f.network&&x.push(`${f.network} request${f.network>1?"s":""}`);let v=x.join(" \xB7 ")||`${Math.round((p-u)/1e3)}s`;i.push({id:`ch_${d}`,startT:u,endT:p,kind:y,title:g,subtitle:v,counts:f})}return i}function pI(){let e=M(h=>h.events),t=M(h=>h.markers),r=M(h=>h.durationMs),n=M(h=>h.offset),a=M(h=>h.summary),o=M(h=>h.seek),s=M(h=>h.select),l=M(h=>h.toRelative),[i,d]=(0,wu.useState)(!1),{text:u,clauses:p}=(0,wu.useMemo)(()=>{let h=a?.aiStory;if(h&&h.summary)return{text:h.summary,clauses:h.clauses.map(C=>({text:C.text,t:C.t,ref:C.ref}))};if(!e.length)return{text:"",clauses:[]};let m=im(e,r+n),y=[],g=t.find(C=>C.kind==="rage"),x=t.find(C=>C.kind==="error"),v=t.find(C=>C.kind==="network"),S=t.find(C=>C.kind==="conversion"),b=[];x&&(b.push("Hit an error"),y.push({text:`error @ ${te(l(x.t))}`,t:l(x.t),ref:x.ref})),v&&(b.push("a failed request"),y.push({text:`request @ ${te(l(v.t))}`,t:l(v.t),ref:v.ref})),g&&(b.push("rage-clicked while stuck"),y.push({text:`rage @ ${te(l(g.t))}`,t:l(g.t),ref:g.ref})),S&&(b.push("then converted"),y.push({text:`conversion @ ${te(l(S.t))}`,t:l(S.t),ref:S.ref}));let w;if(b.length?w=`This visitor ${b.join(", ")}.`:m.length>1?w=`Calm session: ${m.slice(0,3).map(L=>L.title.toLowerCase()).join(" \u2192 ")}.`:w="",y.length<2)for(let C of m.slice(1,4))y.push({text:`${C.title} ${te(l(C.startT))}`,t:l(C.startT)});return{text:w,clauses:y}},[e,t,r,n,l,a]);if(!u&&!a)return(0,Ot.jsxs)("div",{className:"lum-st-synopsis lum-st-synopsis--empty",children:[(0,Ot.jsx)(tr,{size:13,"aria-hidden":!0})," ",(0,Ot.jsx)("span",{className:"lum-muted",children:"No AI summary for this session."})]});let c=u||"A quiet, uneventful session.",f=c.length>90;return(0,Ot.jsxs)("div",{className:`lum-st-synopsis ${i?"is-expanded":""}`,role:"note","aria-label":"Session synopsis",children:[(0,Ot.jsx)("span",{className:"lum-st-synopsis__icon","aria-hidden":!0,children:(0,Ot.jsx)(tr,{size:13})}),(0,Ot.jsx)("button",{type:"button",className:"lum-st-synopsis__text",title:f?c:void 0,onClick:f?()=>d(h=>!h):void 0,"aria-expanded":f?i:void 0,children:c}),f&&(0,Ot.jsx)("button",{type:"button",className:"lum-st-synopsis__more",onClick:()=>d(h=>!h),"aria-label":i?"Collapse summary":"Read full summary",title:i?"Collapse":"Read full summary",children:i?(0,Ot.jsx)(ws,{size:14}):(0,Ot.jsx)(Zn,{size:14})}),(0,Ot.jsx)("span",{className:"lum-st-synopsis__chips",children:p.map((h,m)=>(0,Ot.jsxs)("button",{className:"lum-st-chip",onClick:()=>{h.ref?s(h.ref):o(h.t)},children:["\u27F6 ",h.text]},m))})]})}var mI=(0,Ib.forwardRef)(function({onRetry:t,overlay:r},n){let a=M(c=>c.status),o=M(c=>c.hasReplay),s=M(c=>c.error),l=M(c=>c.loadProgress),i=M(c=>!!c.controller),d=M(c=>c.isSkimming),u=M(c=>c.isSkipping),p=M(c=>c.lastSkipMs);return(0,Ae.jsxs)("div",{className:"lum-st-monitor",children:[(0,Ae.jsxs)("div",{className:"lum-st-monitor__frame",children:[(0,Ae.jsx)("div",{ref:n,className:"lum-pl-mount lum-st-mount","aria-label":"Session replay",role:"img"}),r,d&&(0,Ae.jsxs)("div",{className:"lum-st-skimbadge","aria-live":"polite",children:[(0,Ae.jsx)(ia,{size:13,"aria-hidden":!0})," Skimming idle \xB7 8\xD7"]}),u&&!d&&(0,Ae.jsxs)("div",{className:"lum-st-skimbadge lum-st-skimbadge--skip","aria-live":"polite",children:[(0,Ae.jsx)(ra,{size:13,"aria-hidden":!0})," Skipped idle (",nI(p),")"]}),(0,Ae.jsx)("div",{className:"lum-st-monitor__edge","aria-hidden":!0})]}),a==="loading"&&(0,Ae.jsx)("div",{className:"lum-pl-overlay",children:(0,Ae.jsxs)("div",{className:"lum-pl-loading",children:[(0,Ae.jsx)(Qc,{width:"70%",height:18}),(0,Ae.jsx)(Qc,{width:"90%",height:120}),(0,Ae.jsx)("div",{className:"lum-pl-progress",children:(0,Ae.jsx)("div",{className:"lum-pl-progress__bar",style:{width:`${Math.round(l*100)}%`}})}),(0,Ae.jsx)("span",{className:"lum-muted",children:"Loading replay\u2026"})]})}),a==="buffering"&&o&&i&&(0,Ae.jsxs)("div",{className:"lum-st-buffering","aria-live":"polite",children:[(0,Ae.jsx)("span",{className:"lum-st-buffering__spinner","aria-hidden":!0}),(0,Ae.jsx)("span",{children:"Buffering\u2026"})]}),a==="error"&&(0,Ae.jsx)("div",{className:"lum-pl-overlay",children:(0,Ae.jsx)(ov,{title:"We couldn't load this replay.",action:t?(0,Ae.jsx)("button",{className:"lum-btn lum-btn--primary lum-btn--sm",onClick:t,children:"Retry"}):void 0,children:s??"View the console and network logs instead."})}),a!=="loading"&&a!=="error"&&!o&&(0,Ae.jsx)("div",{className:"lum-pl-overlay",children:(0,Ae.jsx)(er,{title:"This session wasn't recorded for replay.",icon:(0,Ae.jsx)(Is,{size:28}),children:"You can still review its console and network activity on the timeline."})})]})});function hI(e){try{let t=e.replayer.wrapper;if(!t)return{scale:1,left:0,top:0};let r=t.style.transform||"",n=/scale\(([0-9.]+)\)/.exec(r),a=n?parseFloat(n[1]):1,o=parseFloat(t.style.left||"0")||0,s=parseFloat(t.style.top||"0")||0;return{scale:a,left:o,top:s}}catch{return{scale:1,left:0,top:0}}}function gI(e,t,r,n){if(!e||!t)return{x:0,y:0,ok:!1};let{scale:a,left:o,top:s}=hI(e);return{x:o+r*a,y:s+n*a,ok:!0}}function xI(e){if(!e)return null;let t=e.x??e.clientX??e.pageX,r=e.y??e.clientY??e.pageY;return typeof t=="number"&&typeof r=="number"?{x:t,y:r}:null}function vI({stageRef:e}){let t=M(u=>u.controller),r=M(u=>u.currentTime),n=M(u=>u.events),a=M(u=>u.offset),o=(0,_b.useMemo)(()=>{let u=r+a,p=null,c=700;for(let f of n){let h=Math.abs(f.t-u);h>c||(f.type==="custom"&&f.name==="rage_click"?(p={kind:"rage",props:f.props},c=h):f.type==="error"&&(p={kind:"error"},c=h))}return p},[n,r,a]);if(!o)return null;let s=xI(o.props),l=s?gI(t,e.current,s.x,s.y):null,d=l?.ok?{left:`${l.x}px`,top:`${l.y}px`}:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"};return(0,du.jsx)("div",{className:"lum-st-overlay","aria-hidden":!0,children:(0,du.jsx)("div",{className:`lum-st-callout lum-st-callout--${o.kind}`,style:d,children:(0,du.jsx)("span",{className:"lum-st-callout__ring"})})})}function yI(e){let t=M(n=>n.currentTime),r=-1;for(let n=0;n<e.length&&e[n]<=t+1;n++)r=n;return r}function wI(e,t){let r=(0,bu.useRef)(null);return(0,bu.useEffect)(()=>{if(!t||e<0)return;r.current?.querySelector(`[data-row="${e}"]`)?.scrollIntoView({block:"nearest"})},[e,t]),r}function Mb(e){let t=new Map;for(let n of e){if(n.type!=="ws")continue;let a=n,o=t.get(a.connId);o||(o={connId:a.connId,eventId:a.id,url:a.url??"(unknown)",t:a.t,status:"open",frames:[],bytes:0},t.set(a.connId,o)),a.url&&o.url==="(unknown)"&&(o.url=a.url),o.t=Math.min(o.t,a.t),a.kind==="open"?(o.openT=a.t,o.eventId=a.id,o.protocols=a.protocols):a.kind==="close"?(o.closeT=a.t,o.code=a.code,o.reason=a.reason,o.status!=="error"&&(o.status="closed")):a.kind==="error"?o.status="error":a.kind==="message"&&(o.frames.push({id:a.id,t:a.t,dir:a.dir??"recv",encoding:a.encoding??"text",size:a.size??0,body:a.body}),o.bytes+=a.size??0)}let r=Array.from(t.values());for(let n of r)n.frames.sort((a,o)=>a.t-o.t);return r.sort((n,a)=>n.t-a.t)}function Rb(e){return e.status===0||e.status>=500?"error":e.status>=400?"warn":e.status>=300?"info":"default"}function hu(e){try{let t=new URL(e);return(t.pathname.split("/").pop()||t.hostname)+(t.search?t.search:"")}catch{return e.split("/").pop()||e}}function bI({conn:e,toRelative:t}){let[r,n]=(0,lo.useState)("messages"),a=e.status==="error"?"error":e.status==="closed"?"default":"info";return(0,E.jsxs)("div",{className:"lum-pl-detail",children:[(0,E.jsxs)("div",{className:"lum-pl-detail__head lum-mono",children:[(0,E.jsx)(wn,{tone:a,children:e.status})," WS ",(0,E.jsxs)("span",{className:"lum-muted",children:["@ ",te(t(e.t))]}),(0,E.jsx)("div",{className:"lum-pl-detail__url",children:e.url})]}),(0,E.jsx)("div",{className:"lum-pl-tabs2",children:["messages","info"].map(o=>(0,E.jsx)("button",{className:`lum-pl-tab2 ${r===o?"is-active":""}`,onClick:()=>n(o),children:o==="messages"?`Messages (${e.frames.length})`:"Info"},o))}),r==="info"&&(0,E.jsxs)("div",{className:"lum-pl-kv lum-mono",children:[(0,E.jsx)("h5",{children:"General"}),(0,E.jsx)(jt,{k:"URL",v:e.url}),(0,E.jsx)(jt,{k:"Status",v:e.status}),e.protocols&&e.protocols.length>0&&(0,E.jsx)(jt,{k:"Protocols",v:e.protocols.join(", ")}),e.code!=null&&(0,E.jsx)(jt,{k:"Close code",v:String(e.code)}),e.reason&&(0,E.jsx)(jt,{k:"Close reason",v:e.reason}),(0,E.jsx)(jt,{k:"Frames",v:String(e.frames.length)}),(0,E.jsx)(jt,{k:"Transferred",v:pu(e.bytes)}),e.openT!=null&&(0,E.jsx)(jt,{k:"Opened",v:te(t(e.openT))}),e.closeT!=null&&(0,E.jsx)(jt,{k:"Closed",v:te(t(e.closeT))})]}),r==="messages"&&(e.frames.length===0?(0,E.jsx)("div",{className:"lum-muted",children:"No frames captured."}):(0,E.jsx)("div",{className:"lum-pl-ws-msgs",children:e.frames.map(o=>(0,E.jsx)(SI,{f:o,toRelative:t},o.id))}))]})}function SI({f:e,toRelative:t}){let[r,n]=(0,lo.useState)(!1),a=!!e.body?.preview,o=e.dir==="send";return(0,E.jsxs)("div",{className:`lum-pl-ws-frame lum-pl-ws-frame--${e.dir}`,children:[(0,E.jsxs)("button",{className:"lum-pl-ws-frame__head",onClick:()=>a&&n(s=>!s),disabled:!a,children:[(0,E.jsx)("span",{className:`lum-pl-ws-frame__dir ${o?"is-send":"is-recv"}`,"aria-hidden":!0,children:o?"\u25B2":"\u25BC"}),(0,E.jsx)("span",{className:"lum-pl-ws-frame__time lum-mono lum-muted",children:te(t(e.t))}),(0,E.jsx)("span",{className:"lum-pl-ws-frame__data lum-mono",children:a?CI(e.body.preview):(0,E.jsxs)("em",{className:"lum-muted",children:[e.encoding,e.encoding==="binary"?" frame":" \xB7 payload not captured"]})}),(0,E.jsx)("span",{className:"lum-pl-ws-frame__size lum-mono lum-muted",children:pu(e.size)})]}),r&&a&&(0,E.jsxs)("div",{className:"lum-pl-ws-frame__body",children:[e.body.redacted&&(0,E.jsx)("div",{className:"lum-pl-redacted",children:"Contains redacted fields."}),(0,E.jsx)(LI,{text:e.body.preview,truncated:e.body.truncated})]})]})}function CI(e){let t=e.replace(/\s+/g," ").trim();return t.length>140?t.slice(0,140)+"\u2026":t}function LI({text:e,truncated:t}){let r=e.trim();if(!t&&(r.startsWith("{")||r.startsWith("[")))try{let n=JSON.parse(r);return(0,E.jsx)("div",{className:"lum-jt lum-mono",children:(0,E.jsx)(um,{value:n,depth:0})})}catch{}return(0,E.jsxs)("pre",{className:"lum-pl-json",children:[Eb(e),t?`
|
|
139
|
+
\u2026 (truncated)`:""]})}function kI({n:e,relStart:t}){let[r,n]=(0,lo.useState)("headers"),a=["headers","payload","response","timing"];return(0,E.jsxs)("div",{className:"lum-pl-detail",children:[(0,E.jsxs)("div",{className:"lum-pl-detail__head lum-mono",children:[(0,E.jsx)(wn,{tone:Rb(e),children:e.status||(e.error??"ERR")})," ",e.method," ",(0,E.jsxs)("span",{className:"lum-muted",children:["@ ",te(t)]}),(0,E.jsx)("div",{className:"lum-pl-detail__url",children:e.url})]}),(0,E.jsx)("div",{className:"lum-pl-tabs2",children:a.map(o=>(0,E.jsx)("button",{className:`lum-pl-tab2 ${r===o?"is-active":""}`,onClick:()=>n(o),children:o[0].toUpperCase()+o.slice(1)},o))}),r==="headers"&&(0,E.jsxs)("div",{className:"lum-pl-kv lum-mono",children:[(0,E.jsx)("h5",{children:"General"}),(0,E.jsx)(jt,{k:"URL",v:e.url}),(0,E.jsx)(jt,{k:"Method",v:e.method}),(0,E.jsx)(jt,{k:"Status",v:String(e.status)}),(0,E.jsx)(jt,{k:"Initiator",v:e.initiator}),(0,E.jsx)("h5",{children:"Request headers"}),ab(e.requestHeaders),(0,E.jsx)("h5",{children:"Response headers"}),ab(e.responseHeaders)]}),r==="payload"&&(0,E.jsx)(ob,{label:"Request body",body:e.requestBody}),r==="response"&&(0,E.jsx)(ob,{label:"Response",body:e.responseBody}),r==="timing"&&(0,E.jsx)(_I,{n:e})]})}function jt({k:e,v:t}){return(0,E.jsxs)("div",{className:"lum-pl-kv__row",children:[(0,E.jsx)("span",{className:"lum-muted",children:e}),(0,E.jsx)("span",{className:"lum-pl-kv__val",children:t})]})}function ab(e){return!e||Object.keys(e).length===0?(0,E.jsx)("div",{className:"lum-muted",children:"None captured."}):(0,E.jsx)(E.Fragment,{children:Object.entries(e).map(([t,r])=>(0,E.jsxs)("div",{className:"lum-pl-kv__row",children:[(0,E.jsx)("span",{className:"lum-muted",children:t}),(0,E.jsx)("span",{className:"lum-pl-kv__val",children:r==="redacted"?(0,E.jsx)("em",{className:"lum-pl-redacted",children:"redacted"}):r})]},t))})}function ob({label:e,body:t}){let[r,n]=(0,lo.useState)(!1);if(!t)return(0,E.jsx)("div",{className:"lum-muted",children:"Bodies aren't captured by default (privacy). Enable captureNetworkBodies to see them."});let a,o=!1,s=(t.preview??"").trim();if(!t.truncated&&(s.startsWith("{")||s.startsWith("[")))try{a=JSON.parse(s),o=!0}catch{}return(0,E.jsxs)("div",{children:[(0,E.jsxs)("div",{className:"lum-pl-body__head",children:[(0,E.jsxs)("h5",{children:[e,t.contentType?` \xB7 ${t.contentType}`:""]}),o&&(0,E.jsxs)("div",{className:"lum-pl-seg",children:[(0,E.jsx)("button",{className:`lum-pl-seg__btn ${r?"":"is-active"}`,onClick:()=>n(!1),children:"Parsed"}),(0,E.jsx)("button",{className:`lum-pl-seg__btn ${r?"is-active":""}`,onClick:()=>n(!0),children:"Raw"})]})]}),t.redacted&&(0,E.jsx)("div",{className:"lum-pl-redacted",children:"Contains redacted fields."}),o&&!r?(0,E.jsx)("div",{className:"lum-jt lum-mono",children:(0,E.jsx)(um,{value:a,depth:0})}):(0,E.jsxs)("pre",{className:"lum-pl-json",children:[Eb(t.preview),t.truncated?`
|
|
140
|
+
\u2026 (truncated)`:""]})]})}function um({nodeKey:e,value:t,depth:r}){let n=t!==null&&typeof t=="object",[a,o]=(0,lo.useState)(r<1),s={paddingLeft:r*14};if(!n)return(0,E.jsxs)("div",{className:"lum-jt__row",style:s,children:[(0,E.jsx)("span",{className:"lum-jt__caret"}),e!=null&&(0,E.jsxs)("span",{className:"lum-jt__key",children:[e,":"]}),(0,E.jsx)(II,{v:t})]});let l=Array.isArray(t),i=l?t.map((u,p)=>[String(p),u]):Object.entries(t),d=l?`[ ${i.length} ${i.length===1?"item":"items"} ]`:`{ ${i.length} ${i.length===1?"key":"keys"} }`;return(0,E.jsxs)("div",{children:[(0,E.jsxs)("div",{className:"lum-jt__row lum-jt__branch",style:s,onClick:()=>o(u=>!u),children:[(0,E.jsx)("span",{className:"lum-jt__caret",children:a?"\u25BE":"\u25B8"}),e!=null&&(0,E.jsxs)("span",{className:"lum-jt__key",children:[e,":"]}),a?(0,E.jsx)("span",{className:"lum-jt__punc",children:l?"[":"{"}):(0,E.jsx)("span",{className:"lum-jt__preview",children:d})]}),a&&(0,E.jsxs)(E.Fragment,{children:[i.map(([u,p])=>(0,E.jsx)(um,{nodeKey:l?void 0:u,value:p,depth:r+1},u)),(0,E.jsxs)("div",{className:"lum-jt__row",style:s,children:[(0,E.jsx)("span",{className:"lum-jt__caret"}),(0,E.jsx)("span",{className:"lum-jt__punc",children:l?"]":"}"})]})]})]})}function II({v:e}){return e===null?(0,E.jsx)("span",{className:"lum-jt__null",children:"null"}):typeof e=="string"?(0,E.jsxs)("span",{className:"lum-jt__str",children:['"',e,'"']}):typeof e=="number"?(0,E.jsx)("span",{className:"lum-jt__num",children:String(e)}):typeof e=="boolean"?(0,E.jsx)("span",{className:"lum-jt__bool",children:String(e)}):(0,E.jsx)("span",{children:String(e)})}function _I({n:e}){let t=e.timing,r=[["DNS",t.dns,"DNS lookup \u2014 resolving the hostname to an IP address. Happens only on the first request to a host; shows \u201C\u2014\u201D when the connection is reused (keep-alive)."],["TCP",t.tcp,"TCP handshake \u2014 opening the network connection. Happens only on the first request to a host; \u201C\u2014\u201D when the connection is reused."],["TLS",t.tls,"TLS handshake \u2014 negotiating the secure HTTPS connection. Happens only on the first request to a host; \u201C\u2014\u201D when the connection is reused."],["TTFB",t.ttfb,"Time to First Byte \u2014 from the request being sent to the first response byte arriving (server processing + network round-trip)."],["Download",t.download,"Download \u2014 receiving the response body, from the first byte to the last."]],n=t.duration||1;return(0,E.jsxs)("div",{className:"lum-pl-timing",children:[r.map(([a,o,s])=>(0,E.jsxs)("div",{className:"lum-pl-timing__row",children:[(0,E.jsxs)("span",{className:"lum-muted lum-pl-timing__label",children:[(0,E.jsx)(Xc,{content:s,children:(0,E.jsx)(na,{size:12,className:"lum-pl-timing__i","aria-label":`${a}: ${s}`})}),a]}),(0,E.jsx)("div",{className:"lum-pl-timing__bar",children:(0,E.jsx)("span",{style:{width:`${Math.min(100,(o??0)/n*100)}%`}})}),(0,E.jsx)("span",{className:"lum-mono",children:mu(o)})]},a)),(0,E.jsxs)("div",{className:"lum-pl-timing__row",children:[(0,E.jsx)("span",{className:"lum-muted",children:"Total"}),(0,E.jsx)("div",{}),(0,E.jsx)("span",{className:"lum-mono",children:mu(t.duration)})]})]})}function Eb(e){if(!e)return"";try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}function MI({ev:e}){let t=M(l=>l.events),r=M(l=>l.rewindToCause),n=M(l=>l.selectAndSeek),a=M(l=>l.toRelative),o=(0,Nb.useMemo)(()=>{let l=null;for(let i of t)i.t>e.t||i.t<e.t-4e3||(i.type==="network"||i.type==="custom"&&["rage_click","dead_click","click"].includes(i.name??""))&&(!l||i.t>l.t)&&(l=i);return l},[t,e]),s=l=>{if(l.type==="network"){let d=l;return`${d.method} ${d.url} \xB7 ${d.status||"failed"}`}let i=l;return`${i.name??"interaction"} ${i.props?.selector??""}`};return(0,tt.jsxs)("div",{className:"lum-pl-detail lum-st-inspbody",children:[(0,tt.jsxs)("div",{className:"lum-pl-detail__head",children:[(0,tt.jsx)(wn,{tone:"error",children:e.name})," ",(0,tt.jsxs)("span",{className:"lum-muted lum-mono",children:["@ ",te(a(e.t))]}),(0,tt.jsx)("div",{className:"lum-st-err__msg lum-mono",children:e.message})]}),(0,tt.jsxs)("div",{className:"lum-st-inspactions",children:[(0,tt.jsxs)("button",{className:"lum-btn lum-btn--primary lum-btn--sm",onClick:()=>r(e.id),children:[(0,tt.jsx)(Es,{size:13})," Rewind 5s"]}),o&&(0,tt.jsxs)("button",{className:"lum-btn lum-btn--ghost lum-btn--sm",onClick:()=>n(o.id),children:[(0,tt.jsx)(kn,{size:13})," Likely cause"]})]}),o&&(0,tt.jsxs)("div",{className:"lum-st-cause lum-mono",children:[(0,tt.jsx)("span",{className:"lum-muted",children:"caused by \u2192"})," ",s(o)," ",(0,tt.jsxs)("span",{className:"lum-muted",children:["@ ",te(a(o.t))]})]}),(0,tt.jsx)("h5",{className:"lum-st-detail__h",children:"Stack trace"}),e.stack?(0,tt.jsx)("pre",{className:"lum-pl-stack",children:e.stack}):(0,tt.jsx)("div",{className:"lum-muted",children:"No stack captured."}),e.source?.url&&(0,tt.jsxs)("div",{className:"lum-st-err__src lum-muted lum-mono",children:[e.source.url,":",e.source.line??""]})]})}var RI={error:{color:"var(--lum-error)",glyph:"\u2715"},warn:{color:"var(--lum-warn)",glyph:"\u26A0"},info:{color:"var(--lum-info)",glyph:"\u2139"},log:{color:"var(--lum-muted)",glyph:"\u203A"},debug:{color:"var(--lum-muted)",glyph:"\xB7"}};function EI({ev:e}){let[t,r]=(0,Pb.useState)(!1),n=RI[e.level];return(0,Qe.jsxs)("div",{className:`lum-pl-row lum-pl-row--console lum-pl-row--${e.level}`,style:{borderBottom:"none"},children:[(0,Qe.jsx)("span",{className:"lum-pl-row__lvl",style:{color:n.color},"aria-hidden":!0,children:n.glyph}),(0,Qe.jsx)("span",{}),(0,Qe.jsxs)("div",{className:"lum-pl-row__msg lum-mono",children:[e.args.map((a,o)=>(0,Qe.jsx)(NI,{arg:a,expanded:t,onToggle:()=>r(s=>!s),search:""},o)),e.level==="error"&&e.stack&&(0,Qe.jsx)("pre",{className:"lum-pl-stack",children:e.stack})]}),e.source?.url&&(0,Qe.jsxs)("span",{className:"lum-pl-row__src lum-muted",title:e.source.url,children:[TI(e.source.url),":",e.source.line]})]})}function NI({arg:e,expanded:t,onToggle:r,search:n}){switch(e.kind){case"primitive":return(0,Qe.jsxs)("span",{className:"lum-pl-arg lum-pl-arg--prim",children:[String(e.value)," "]});case"string":return(0,Qe.jsxs)("span",{className:"lum-pl-arg",children:[AI(e.value,n),e.truncated?"\u2026":""," "]});case"error":return(0,Qe.jsxs)("span",{className:"lum-pl-arg lum-pl-arg--err",children:[e.name,": ",e.message," "]});case"dom":return(0,Qe.jsxs)("span",{className:"lum-pl-arg lum-pl-arg--dom",children:[e.selector," "]});case"object":return(0,Qe.jsxs)("span",{className:"lum-pl-arg lum-pl-arg--obj",children:[(0,Qe.jsxs)("button",{className:"lum-pl-arg__toggle",onClick:r,children:[t?"\u25BE":"\u25B8"," ",e.preview]}),t&&e.json&&(0,Qe.jsx)("pre",{className:"lum-pl-json",children:PI(e.json)})," "]});default:return null}}function PI(e){try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}function TI(e){try{return new URL(e).pathname.split("/").pop()||e}catch{return e.split("/").pop()||e}}function AI(e,t){if(!t)return e;let r=e.toLowerCase().indexOf(t.toLowerCase());return r<0?e:(0,Qe.jsxs)(Qe.Fragment,{children:[e.slice(0,r),(0,Qe.jsx)("mark",{className:"lum-pl-mark",children:e.slice(r,r+t.length)}),e.slice(r+t.length)]})}function DI({ev:e}){let t=M(n=>n.toRelative),r=e.level==="error"?"error":e.level==="warn"?"warn":"info";return(0,In.jsxs)("div",{className:"lum-pl-detail lum-st-inspbody",children:[(0,In.jsxs)("div",{className:"lum-pl-detail__head",children:[(0,In.jsx)(wn,{tone:r,children:e.level})," ",(0,In.jsxs)("span",{className:"lum-muted lum-mono",children:["@ ",te(t(e.t))]})]}),(0,In.jsx)(EI,{ev:e}),e.source?.url&&(0,In.jsxs)("div",{className:"lum-st-err__src lum-muted lum-mono",children:[e.source.url,":",e.source.line??""]})]})}function OI(){let e=M(a=>a.controller),t=M(a=>a.currentTime),[r,n]=(0,Su.useState)("");return(0,Su.useEffect)(()=>{let o=e?.replayer.iframe?.contentDocument;if(!o?.body){n("");return}n(Tb(o.body,0).slice(0,2e4))},[e,t]),e?(0,qs.jsx)("div",{className:"lum-pl-panel lum-pl-rows",children:(0,qs.jsx)("pre",{className:"lum-pl-inspector lum-mono",children:r||"Reading DOM\u2026"})}):(0,qs.jsx)(er,{title:"No replay",children:"The DOM inspector needs replay data."})}function Tb(e,t){if(t>6)return"";let r=" ".repeat(t),n=e.tagName.toLowerCase(),a=e.id?`#${e.id}`:"",o=e.className&&typeof e.className=="string"?"."+e.className.trim().split(/\s+/).slice(0,2).join("."):"",s=`${r}<${n}${a}${o}>
|
|
141
|
+
`,l=Array.from(e.children).slice(0,30);for(let i of l)s+=Tb(i,t+1);return s}function FI(){return(0,qs.jsx)(er,{title:"State capture is off for this site",children:"Enable the framework-state plugin (Redux / Zustand / Pinia) to see state snapshots on the same clock."})}function BI(){return(0,rm.jsx)("div",{className:"lum-st-inspbody",children:(0,rm.jsx)(OI,{})})}function zI(){return(0,nm.jsx)("div",{className:"lum-st-inspbody",children:(0,nm.jsx)(FI,{})})}var Ab=/^(.+):(started|ended)$/;function UI(e){return Ab.test(e)}function qI(e){let t=new Map,r=[];for(let n of e){if(n.type!=="custom")continue;let a=n,o=a.props??{};if(o.conversion===!0)continue;let s=Ab.exec(a.name);if(!s)continue;let l=typeof o.task=="string"&&o.task?o.task:s[1],i=o.spanId!=null?String(o.spanId):`${l}@${n.t}`,d=t.get(i);d||(d={spanId:i,task:l},t.set(i,d),r.push(i)),s[2]==="started"?(d.startT=n.t,d.startEvent=a):(d.endT=n.t,d.endEvent=a)}return r.map(n=>t.get(n))}function $I(e){let t=e.startT!=null,r=e.endT!=null,n=t?e.startT:e.endT??0,a=t&&r?Math.max(0,e.endT-e.startT):void 0,o=e.startEvent??e.endEvent,s=a!=null?mu(a):t?"running\u2026":"ended (no start)";return{id:o.id,t:n,kind:"task",lane:"task",severity:"info",title:e.task,subtitle:s,durationMs:a,spanId:e.spanId,running:t&&!r,raw:o}}function HI(e){let t=e.args[0];return t?t.kind==="string"?t.value:t.kind==="error"?`${t.name}: ${t.message}`:t.kind==="object"?t.preview:t.kind==="primitive"?String(t.value):t.kind==="dom"?t.selector:`console.${e.level}`:`console.${e.level}`}function Jp(e){try{let t=new URL(e);return(t.pathname.split("/").pop()||t.hostname)+(t.search?t.search:"")}catch{return e.split("/").pop()||e}}var jI=new Set(["_tag","identify","metadata","_click","_scroll"]);function dm(e){let t=[];for(let r of qI(e))t.push($I(r));for(let r of e)switch(r.type){case"console":{let n=r,a=n.level==="error"?"error":n.level==="warn"?"warn":n.level==="info"?"info":"muted";t.push({id:r.id,t:r.t,kind:"console",lane:"console",severity:a,title:HI(n),subtitle:n.source?.url?`${Jp(n.source.url)}:${n.source.line??""}`:void 0,raw:r});break}case"network":{let n=r,a=n.status===0||n.status>=400,o=n.timing?.duration>2e3;t.push({id:r.id,t:r.t,kind:"network",lane:"network",severity:a?"error":o?"warn":n.ok?"ok":"muted",title:`${n.method} ${Jp(n.url)}`,subtitle:`${n.status||n.error||"failed"} \xB7 ${Math.round(n.timing?.duration??0)}ms`,durationMs:n.timing?.duration,raw:r});break}case"error":{let n=r;t.push({id:r.id,t:r.t,kind:"error",lane:"error",severity:"error",title:`${n.name}: ${n.message}`,subtitle:n.source?.url?`${Jp(n.source.url)}:${n.source.line??""}`:void 0,raw:r});break}case"perf":{let n=r;if(n.rating!=="poor")break;t.push({id:r.id,t:r.t,kind:"perf",lane:"console",severity:"warn",title:`${n.metric} ${Math.round(n.value)}${n.metric==="CLS"?"":"ms"}`,subtitle:"poor",raw:r});break}case"custom":{let n=r;if(!!!(n.props&&n.props.conversion===!0)&&(UI(n.name)||jI.has(n.name)))break;n.name==="rage_click"?t.push({id:r.id,t:r.t,kind:"rage",lane:"interaction",severity:"warn",title:"Rage click",subtitle:sb(n),raw:r}):n.name==="dead_click"?t.push({id:r.id,t:r.t,kind:"dead",lane:"interaction",severity:"muted",title:"Dead click",subtitle:sb(n),raw:r}):n.name==="navigation"||n.name==="pageview"?t.push({id:r.id,t:r.t,kind:"nav",lane:"nav",severity:"info",title:"Page change",raw:r}):n.props&&n.props.conversion===!0?t.push({id:r.id,t:r.t,kind:"conversion",lane:"interaction",severity:"ok",title:`Conversion: ${n.name}`,raw:r}):t.push({id:r.id,t:r.t,kind:"custom",lane:"interaction",severity:"muted",title:n.name,raw:r});break}default:break}return t.sort((r,n)=>r.t-n.t)}function sb(e){return e.props?.selector??""}function WI(e,t,r){let n=e[e.length-1];return n||[t,r]}function am(e,t,r){let[n,a]=t,o=a-n;return o<=0?0:(e-n)/o*r}function Db(e,t,r){let[n,a]=t,o=a-n;return r<=0?n:n+e/r*o}function gu(e,t){let[r,n]=t,a=n-r;return a<=0?0:Math.max(0,Math.min(1,(e-r)/a))}function VI(e,t,r,n,a,o=200){let[s,l]=e,i=l-s,d=Math.max(o,Math.min(a-n,i*r)),u=i>0?(t-s)/i:.5,p=t-u*d,c=p+d;return p<n&&(p=n,c=p+d),c>a&&(c=a,p=c-d),p=Math.max(n,p),c=Math.min(a,c),c-p>=a-n-1?null:[p,c]}function GI(){let e=(0,Rn.useRef)(null),[t,r]=(0,Rn.useState)(0);return(0,Rn.useEffect)(()=>{let n=e.current;if(!n)return;let a=new ResizeObserver(()=>r(n.clientWidth));return a.observe(n),r(n.clientWidth),()=>a.disconnect()},[]),{ref:e,width:t}}function Ob(){let e=M(n=>n.offset),t=M(n=>n.durationMs),r=M(n=>n.zoomStack);return(0,Rn.useMemo)(()=>WI(r,e,e+t),[r,e,t])}var lb=28,Zp=150,XI=6e4;function ib(e){return e.closeT??(e.frames.length?e.frames[e.frames.length-1].t:e.openT??e.t)}function KI(e){return e.status==="error"?"error":e.status==="closed"?"default":"info"}function QI(e){let t=e.timing.duration||0,{dns:r=0,tcp:n=0,tls:a=0,ttfb:o=0,download:s=0}=e.timing,l=r+n+a+o+s;return t<=0||l<=0?[{cls:"tone",ms:Math.max(t,1)}]:[{cls:"blocked",ms:Math.max(0,t-l)},{cls:"dns",ms:r},{cls:"connect",ms:n},{cls:"ssl",ms:a},{cls:"wait",ms:o},{cls:"download",ms:s}].filter(d=>d.ms>0)}function YI(e){let t=Math.max(1e3,e),r=Math.pow(10,Math.floor(Math.log10(t/1e3))),n=t/1e3/r;return(n>=5?5:n>=2?2:1)*r*1e3}function JI(){let e=M(k=>k.events),t=M(k=>k.offset),r=M(k=>k.toRelative),n=M(k=>k.selectAndSeek),a=M(k=>k.selectedEventId),o=M(k=>k.zoomStack),s=Ob(),l=(0,Xe.useRef)(null),i=(0,Xe.useRef)(null),[d,u]=(0,Xe.useState)(600),p=(0,Xe.useCallback)(k=>{if(i.current?.disconnect(),i.current=null,l.current=k,!k)return;let _=()=>u(Math.max(120,k.clientWidth-Zp));_();let N=new ResizeObserver(_);N.observe(k),i.current=N},[]),c=(0,Xe.useMemo)(()=>e.filter(k=>k.type==="network").slice().sort((k,_)=>k.t-_.t),[e]),f=(0,Xe.useMemo)(()=>Mb(e),[e]),h=(0,Xe.useMemo)(()=>{if(!c.length&&!f.length)return null;let k=1/0,_=-1/0;for(let N of c){let P=r(N.t),I=P+(N.timing.duration||0);P<k&&(k=P),I>_&&(_=I)}for(let N of f){let P=r(N.openT??N.t),I=r(ib(N));P<k&&(k=P),I>_&&(_=I)}return[k,Math.max(k+1,_)]},[c,f,r]),m=o.length>0,y=m?s[0]-t:h?.[0]??0,g=m?Math.max(1,s[1]-s[0]):Math.max(1,(h?.[1]??1)-(h?.[0]??0))*1.02,x=m?g:Math.min(g,XI),v=d/x,S=g*v,b=S>d+1,w=(0,Xe.useMemo)(()=>{let k=c.map(N=>{let P=r(N.t),I=P+(N.timing.duration||0);return{kind:"http",id:N.id,n:N,start:P,end:I,tone:Rb(N),leftPx:(P-y)*v,widthPx:Math.max((I-P)*v,2)}}),_=f.map(N=>{let P=r(N.openT??N.t),I=r(ib(N));return{kind:"ws",id:N.eventId,conn:N,start:P,end:I,tone:KI(N),leftPx:(P-y)*v,widthPx:Math.max((I-P)*v,2)}});return[...k,..._].sort((N,P)=>N.start-P.start)},[c,f,r,y,v]),C=c.filter(k=>k.status===0||k.status>=400).length+f.filter(k=>k.status==="error").length,L=c.reduce((k,_)=>k+(_.responseSize??0),0)+f.reduce((k,_)=>k+_.bytes,0);return!c.length&&!f.length?(0,oe.jsx)(er,{title:"No network activity",children:"Nothing matched this filter."}):(0,oe.jsxs)("div",{className:"lum-wf",children:[(0,oe.jsxs)("div",{className:"lum-wf__toolbar lum-mono lum-muted",children:[c.length," requests",f.length?` \xB7 ${f.length} ws`:""," \xB7 ",pu(L)," \xB7 ",C," failed",b&&(0,oe.jsxs)("span",{className:"lum-wf__hint",children:[" \xB7 ",Math.round(x/1e3),"s window \xB7 scroll \u2192"]})]}),(0,oe.jsx)("div",{className:"lum-wf__scroll",ref:p,children:(0,oe.jsxs)("div",{className:"lum-wf__grid",style:{width:Zp+S},children:[(0,oe.jsx)(ZI,{scrollRef:l,t0:y,pxPerMs:v,windowMs:x,vpTrackW:d,trackW:S}),(0,oe.jsxs)("div",{className:"lum-wf__rows",children:[w.map((k,_)=>(0,oe.jsx)("div",{"data-row":_,className:`lum-wf__row lum-wf__row--${k.tone} ${k.id===a?"is-selected":""}`,style:{width:Zp+S},onClick:()=>n(k.id),title:k.kind==="http"?k.n.url:k.conn.url,children:k.kind==="http"?(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsxs)("div",{className:"lum-wf__label lum-mono",children:[(0,oe.jsx)("span",{className:`lum-wf__dot lum-wf__dot--${k.tone}`,"aria-hidden":!0}),(0,oe.jsx)("span",{className:"lum-wf__name",children:hu(k.n.url)}),(0,oe.jsx)("span",{className:"lum-wf__method lum-muted",children:k.n.method}),(0,oe.jsx)("span",{className:"lum-wf__time lum-muted",children:mu(k.n.timing.duration)})]}),(0,oe.jsx)("div",{className:"lum-wf__track",style:{width:S},children:(0,oe.jsx)("span",{className:`lum-wf__bar lum-wf__bar--${k.tone}`,style:{left:k.leftPx,width:k.widthPx},children:QI(k.n).map((N,P)=>(0,oe.jsx)("span",{className:`lum-wf__seg lum-wf__seg--${N.cls}`,style:{flexGrow:N.ms}},P))})})]}):(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsxs)("div",{className:"lum-wf__label lum-mono",children:[(0,oe.jsx)("span",{className:`lum-wf__dot lum-wf__dot--${k.tone}`,"aria-hidden":!0}),(0,oe.jsx)("span",{className:"lum-wf__name",children:hu(k.conn.url)}),(0,oe.jsx)("span",{className:"lum-wf__method lum-muted",children:"WS"}),(0,oe.jsxs)("span",{className:"lum-wf__time lum-muted",children:[k.conn.frames.length,"f"]})]}),(0,oe.jsxs)("div",{className:"lum-wf__track",style:{width:S},children:[(0,oe.jsx)("span",{className:`lum-wf__bar lum-wf__bar--ws lum-wf__bar--${k.tone}`,style:{left:k.leftPx,width:k.widthPx}}),k.conn.frames.map(N=>(0,oe.jsx)("span",{className:`lum-wf__wsframe lum-wf__wsframe--${N.dir}`,style:{left:(r(N.t)-y)*v},title:`${N.dir} \xB7 ${pu(N.size)}`},N.id))]})]})},k.id)),(0,oe.jsx)(e_,{bars:w,t0:y,pxPerMs:v,vpTrackW:d,scrollRef:l})]})]})})]})}function ZI({scrollRef:e,t0:t,pxPerMs:r,windowMs:n,vpTrackW:a,trackW:o}){let[s,l]=(0,Xe.useState)(0);(0,Xe.useEffect)(()=>{let d=e.current;if(!d)return;let u=()=>l(d.scrollLeft);return d.addEventListener("scroll",u,{passive:!0}),u(),()=>d.removeEventListener("scroll",u)},[e]);let i=(0,Xe.useMemo)(()=>{let d=YI(n/6),u=s/r,p=(s+a)/r,c=[],f=Math.max(0,Math.floor(u/d)*d);for(let h=f;h<=p+d;h+=d)c.push({leftPx:h*r,label:te(t+h)});return c},[n,s,r,a,t]);return(0,oe.jsxs)("div",{className:"lum-wf__ruler","aria-hidden":!0,children:[(0,oe.jsx)("div",{className:"lum-wf__rulerspacer"}),(0,oe.jsx)("div",{className:"lum-wf__rulertrack",style:{width:o},children:i.map((d,u)=>(0,oe.jsx)("span",{className:"lum-wf__tick",style:{left:d.leftPx},children:d.label},u))})]})}function e_({bars:e,t0:t,pxPerMs:r,vpTrackW:n,scrollRef:a}){let o=M(c=>c.currentTime),s=M(c=>c.status),l=(0,Xe.useRef)(-1),i=(0,Xe.useRef)(0);(0,Xe.useEffect)(()=>{let c=a.current;if(!c)return;let f=()=>{i.current=performance.now()+1500};return c.addEventListener("wheel",f,{passive:!0}),c.addEventListener("pointerdown",f,{passive:!0}),()=>{c.removeEventListener("wheel",f),c.removeEventListener("pointerdown",f)}},[a]);let d=(o-t)*r,u=[],p=-1;for(let c=0;c<e.length;c++){let f=e[c];f.start<=o+1&&(p=c),o>=f.start&&o<=f.end+1&&u.push(c)}return(0,Xe.useEffect)(()=>{s!=="playing"||p<0||p===l.current||(l.current=p,a.current?.querySelector(`[data-row="${p}"]`)?.scrollIntoView({block:"nearest",inline:"nearest"}))},[p,s,a]),(0,Xe.useEffect)(()=>{let c=a.current;if(!c||s!=="playing"||performance.now()<i.current)return;let f=c.scrollLeft;if(d<f+.1*n||d>f+.9*n){let h=Math.max(0,c.scrollWidth-c.clientWidth);c.scrollLeft=Math.max(0,Math.min(h,d-.25*n))}},[d,s,n,a]),(0,oe.jsxs)("div",{className:"lum-wf__cursor",style:{height:e.length*lb},"aria-hidden":!0,children:[u.map(c=>{let f=e[c];return(0,oe.jsx)("div",{className:"lum-wf__running",style:{top:c*lb+7,height:14,left:f.leftPx,width:Math.max(2,f.widthPx)}},f.id)}),(0,oe.jsx)("div",{className:"lum-wf__playhead",style:{left:d}})]})}function t_(){let e=M(p=>p.events),t=M(p=>p.summary),r=M(p=>p.selectedEventId),n=M(p=>p.selectAndSeek),a=M(p=>p.toRelative),[o,s]=(0,Hs.useState)(""),l=(0,Hs.useMemo)(()=>dm(e).filter(p=>p.kind==="task"),[e]),i=t?.tags??[],d=o.trim().toLowerCase(),u=(0,Hs.useMemo)(()=>d?l.filter(p=>p.title.toLowerCase().includes(d)):l,[l,d]);return(0,vt.jsxs)("div",{className:"lum-st-spans",children:[i.length>0&&(0,vt.jsx)("div",{className:"lum-st-spans__tags","aria-label":"Session tags",children:i.map(p=>(0,vt.jsxs)("span",{className:"lum-st-tag",children:["#",p]},p))}),(0,vt.jsxs)("div",{className:"lum-st-spans__search",children:[(0,vt.jsx)("input",{className:"lum-st-spans__input lum-mono",placeholder:"Search tasks\u2026",value:o,onChange:p=>s(p.target.value),"aria-label":"Search task spans by name"}),l.length>0&&(0,vt.jsxs)("span",{className:"lum-st-spans__count lum-muted",children:[u.length,"/",l.length]})]}),l.length===0?(0,vt.jsx)(er,{title:"No tasks tracked",children:"Call Obsrviq.startTask('name') / endTask('name') to record searchable sub-events on the session."}):u.length===0?(0,vt.jsx)(er,{title:"No tasks match that search"}):(0,vt.jsx)("div",{className:"lum-st-spans__rows lum-mono",role:"list","aria-label":"Task spans",children:u.map(p=>(0,vt.jsxs)("button",{className:`lum-st-spanrow ${p.id===r?"is-selected":""} ${p.running?"is-running":""}`,onClick:()=>n(p.id),"aria-label":`${p.title} (${p.subtitle??""}) @ ${te(a(p.t))}`,children:[(0,vt.jsx)("span",{className:"lum-st-spanrow__glyph","aria-hidden":!0,children:"\u25B0"}),(0,vt.jsx)("span",{className:"lum-st-spanrow__time",children:te(a(p.t))}),(0,vt.jsx)("span",{className:"lum-st-spanrow__title",children:p.title}),(0,vt.jsx)("span",{className:"lum-st-spanrow__dur lum-muted",children:p.subtitle})]},p.id))})]})}var r_={console:"\u203A",network:"\u25AD",error:"\u25CF",rage:"\u25C6",dead:"\u25CB",conversion:"\u2726",nav:"\u258E",perf:"\u25C7",task:"\u25B0",custom:"\xB7"},n_=[{id:"all",label:"All"},{id:"network",label:"Network"},{id:"console",label:"Console"},{id:"error",label:"Errors"},{id:"signal",label:"Signals"},{id:"task",label:"Tasks"},{id:"nav",label:"Nav"}];function a_(e,t){switch(t){case"all":return!0;case"network":return e.kind==="network";case"console":return e.kind==="console"||e.kind==="perf";case"error":return e.kind==="error"||e.severity==="error";case"signal":return e.kind==="rage"||e.kind==="dead"||e.kind==="conversion";case"task":return e.kind==="task";case"nav":return e.kind==="nav";default:return!0}}function ub(){let e=M(f=>f.events),t=M(f=>f.feedFilter),r=M(f=>f.setFeedFilter),n=M(f=>f.selectedEventId),a=M(f=>f.selectionRange),o=M(f=>f.selectAndSeek),s=M(f=>f.toRelative),l=M(f=>f.status),i=(0,cu.useMemo)(()=>dm(e),[e]),d=(0,cu.useMemo)(()=>{let f=i.filter(h=>a_(h,t));return a&&(f=f.filter(h=>h.t>=a[0]&&h.t<=a[1])),f},[i,t,a]),u=(0,cu.useMemo)(()=>d.map(f=>s(f.t)),[d,s]),p=yI(u),c=wI(p,l==="playing");return(0,At.jsxs)("div",{className:"lum-st-feed",children:[(0,At.jsx)("div",{className:"lum-st-feed__chips",children:n_.map(f=>(0,At.jsx)("button",{className:`lum-pl-chip ${t===f.id?"is-active":""}`,onClick:()=>r(f.id),children:f.label},f.id))}),t==="network"?(0,At.jsx)(JI,{}):t==="task"?(0,At.jsx)(t_,{}):d.length===0?(0,At.jsx)(er,{title:"Nothing matched this filter"}):(0,At.jsx)("div",{className:"lum-st-feed__rows lum-mono",ref:c,role:"log","aria-label":"Unified activity feed",children:d.map((f,h)=>(0,At.jsxs)("button",{"data-row":h,className:`lum-st-feedrow lum-st-feedrow--${f.severity} ${h===p?"is-active":""} ${f.id===n?"is-selected":""}`,onClick:()=>o(f.id),"aria-label":`${f.title} @ ${te(s(f.t))}`,children:[(0,At.jsx)("span",{className:"lum-st-feedrow__glyph","aria-hidden":!0,children:r_[f.kind]}),(0,At.jsx)("span",{className:"lum-st-feedrow__time",children:te(s(f.t))}),(0,At.jsx)("span",{className:"lum-st-feedrow__title",children:f.title}),f.subtitle&&(0,At.jsx)("span",{className:"lum-st-feedrow__sub lum-muted",children:f.subtitle})]},f.id))})]})}function db({feedFocusKey:e}){let t=M(u=>u.selectedEventId),r=M(u=>u.events),n=M(u=>u.select),[a,o]=(0,or.useState)("feed"),s=(0,or.useRef)(null),l=(0,or.useMemo)(()=>r.find(u=>u.id===t)??null,[r,t]);(0,or.useEffect)(()=>{t&&t!==s.current&&o("detail"),!t&&a==="detail"&&o("feed"),s.current=t},[t]);let i=a==="detail"&&!l?"feed":a,d=[{id:"feed",label:"Feed"},...l?[{id:"detail",label:"Detail"}]:[],{id:"dom",label:"DOM"},{id:"state",label:"State"}];return(0,Y.jsxs)("aside",{className:"lum-st-inspector","aria-label":"Inspector",children:[(0,Y.jsxs)("div",{className:"lum-st-inspector__tabs",children:[d.map(u=>(0,Y.jsx)("button",{className:`lum-pl-tab2 ${i===u.id?"is-active":""}`,onClick:()=>o(u.id),children:u.label},u.id)),l&&(0,Y.jsx)("button",{className:"lum-st-inspector__clear","aria-label":"Clear selection (Esc)",onClick:()=>n(null),children:(0,Y.jsx)(la,{size:13})})]}),(0,Y.jsxs)("div",{className:"lum-st-inspector__body",children:[i==="feed"&&(0,Y.jsx)(ub,{}),i==="dom"&&(0,Y.jsx)(BI,{}),i==="state"&&(0,Y.jsx)(zI,{}),i==="detail"&&l&&(0,Y.jsx)(o_,{ev:l}),i==="detail"&&!l&&(0,Y.jsx)(ub,{})]})]},e)}function o_({ev:e}){let t=M(n=>n.toRelative),r=M(n=>n.events);if(e.type==="network"){let n=e;return(0,Y.jsxs)("div",{className:"lum-st-inspbody",children:[(0,Y.jsx)("div",{className:"lum-st-inspector__crumb lum-mono",children:hu(n.url)}),(0,Y.jsx)(kI,{n,relStart:t(n.t)}),(0,Y.jsx)(em,{ev:e})]})}if(e.type==="ws"){let n=Mb(r).find(a=>a.connId===e.connId);return(0,Y.jsxs)("div",{className:"lum-st-inspbody",children:[(0,Y.jsx)("div",{className:"lum-st-inspector__crumb lum-mono",children:n?hu(n.url):"WebSocket"}),n?(0,Y.jsx)(bI,{conn:n,toRelative:t}):(0,Y.jsx)("div",{className:"lum-muted",children:"No WebSocket detail."})]})}if(e.type==="error")return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(MI,{ev:e}),(0,Y.jsx)("div",{className:"lum-st-inspbody",children:(0,Y.jsx)(em,{ev:e})})]});if(e.type==="console")return(0,Y.jsx)(DI,{ev:e});if(e.type==="custom"){let n=e;return(0,Y.jsxs)("div",{className:"lum-st-inspbody lum-pl-detail",children:[(0,Y.jsxs)("div",{className:"lum-pl-detail__head",children:[(0,Y.jsx)("strong",{children:n.name})," ",(0,Y.jsxs)("span",{className:"lum-muted lum-mono",children:["@ ",te(t(e.t))]})]}),n.props&&(0,Y.jsx)("pre",{className:"lum-pl-json",children:JSON.stringify(n.props,null,2).slice(0,1200)}),(0,Y.jsx)(em,{ev:e})]})}if(e.type==="perf"){let n=e;return(0,Y.jsx)("div",{className:"lum-st-inspbody lum-pl-detail",children:(0,Y.jsxs)("div",{className:"lum-pl-detail__head",children:[(0,Y.jsx)("strong",{children:n.metric})," ",(0,Y.jsx)("span",{className:"lum-mono",children:Math.round(n.value)})," ",(0,Y.jsx)("span",{className:"lum-muted",children:n.rating})]})})}return(0,Y.jsx)("div",{className:"lum-st-inspbody lum-muted",children:"No detail view for this event."})}function em({ev:e}){let t=Hk(),[r,n]=(0,or.useState)(""),[a,o]=(0,or.useState)("idle"),s=(0,or.useRef)(null);if((0,or.useEffect)(()=>(n(""),o("idle"),s.current?.abort(),()=>s.current?.abort()),[e.id]),!t)return null;let l=async()=>{s.current?.abort();let i=new AbortController;s.current=i,n(""),o("loading");try{let d=`${t.apiBaseUrl.replace(/\/$/,"")}/v1/sessions/${t.sessionId}/explain`,u="";for await(let p of jk(d,t,{ref:e.id},i.signal))if(p.kind==="token"&&p.text)u+=p.text,n(u);else if(p.kind==="error"){o("error"),n(p.message||"Explain failed.");return}o("done")}catch(d){if(i.signal.aborted)return;o("error"),n(d instanceof Error?d.message:"Explain failed.")}};return(0,Y.jsx)("div",{className:"lum-st-explain",children:a==="idle"?(0,Y.jsxs)("button",{className:"lum-st-explain__btn",onClick:l,children:[(0,Y.jsx)(tr,{size:13,"aria-hidden":!0})," Explain with AI"]}):(0,Y.jsxs)("div",{className:"lum-st-explain__out",role:"status","aria-live":"polite",children:[(0,Y.jsxs)("span",{className:"lum-st-explain__label",children:[(0,Y.jsx)(tr,{size:12,"aria-hidden":!0})," Likely cause",a==="loading"&&(0,Y.jsx)("span",{className:"lum-st-explain__dots","aria-hidden":!0,children:" \u2026"})]}),(0,Y.jsx)("p",{className:`lum-st-explain__text ${a==="error"?"is-error":""}`,children:r||"\u2026"}),a!=="loading"&&(0,Y.jsx)("button",{className:"lum-st-explain__re",onClick:l,children:"Regenerate"})]})})}var ao={error:6,net5xx:5,net4xx:4,rage:3,dead:2,nav:1};function s_(e){let t=[];for(let r of e)if(r.type==="error")t.push({t:r.t,kind:"error",rank:ao.error,ref:r.id,label:`${r.name??"Error"}: ${r.message??""}`});else if(r.type==="console"&&r.level==="error")t.push({t:r.t,kind:"error",rank:ao.error,ref:r.id,label:"console.error"});else if(r.type==="network"){let n=r;n.status>=500||n.status===0?t.push({t:r.t,kind:"net5xx",rank:ao.net5xx,ref:r.id,label:`${n.method} ${n.url} \u2014 ${n.status||"failed"}`}):n.status>=400&&t.push({t:r.t,kind:"net4xx",rank:ao.net4xx,ref:r.id,label:`${n.method} ${n.url} \u2014 ${n.status}`})}else if(r.type==="custom"){let n=r;n.name==="rage_click"?t.push({t:r.t,kind:"rage",rank:ao.rage,ref:r.id,label:"Rage click"}):n.name==="dead_click"&&t.push({t:r.t,kind:"dead",rank:ao.dead,ref:r.id,label:"Dead click"})}return t.sort((r,n)=>r.t-n.t)}function l_(e){let t=dm(e),r={chapters:[],interaction:[],console:[],network:[],error:[],task:[],vitals:[]};for(let n of t){let a={id:n.id,t:n.t,durationMs:n.durationMs,running:n.running,kind:n.kind,severity:n.severity,label:n.title,sub:n.subtitle};switch(n.lane){case"interaction":r.interaction.push(a);break;case"console":if(n.kind==="perf")break;r.console.push(a),n.kind==="console"&&n.severity==="error"&&r.error.push({...a,kind:"error"});break;case"network":r.network.push(a);break;case"error":r.error.push(a);break;case"task":r.task.push(a);break;case"nav":r.chapters.push({...a,kind:"nav"});break}}for(let n of e){if(n.type!=="perf")continue;let a=n;["LCP","CLS","INP","FCP"].includes(a.metric)&&r.vitals.push({id:n.id,t:n.t,kind:a.rating==="poor"?"perf-poor":"perf-good",severity:a.rating==="poor"?"error":"ok",label:`${a.metric} ${Math.round(a.value)}${a.metric==="CLS"?"":"ms"}`,sub:a.rating})}return r}var cb={chapters:"Chapters",interaction:"Interactions",console:"Console",network:"Network",error:"Errors",task:"Tasks",vitals:"Vitals"};function i_(e){let t=[];for(let r of e)if(r.type==="error"){let n=r;t.push({id:r.id,label:`Error \xB7 ${n.name??"Error"}`,detail:n.message??"",t:r.t,ref:r.id,keywords:`error exception ${n.name??""} ${n.message??""}`})}else if(r.type==="network"){let n=r,a=n.status>=400||n.status===0,o=n.status>=500?"5xx":n.status>=400?"4xx":"ok";a&&t.push({id:r.id,label:`${n.method} ${u_(n.url)} \xB7 ${n.status||"failed"}`,detail:`${o} network failure`,t:r.t,ref:r.id,keywords:`network request ${o} fail failed error ${n.method} ${n.url} ${n.status}`})}else if(r.type==="custom"){let n=r;if(n.name==="rage_click")t.push({id:r.id,label:"Rage click",detail:"frustration signal",t:r.t,ref:r.id,keywords:"rage frustration click stuck"});else if(n.name==="dead_click")t.push({id:r.id,label:"Dead click",detail:"frustration signal",t:r.t,ref:r.id,keywords:"dead click frustration stuck"});else if(n.props&&n.props.conversion===!0)t.push({id:r.id,label:`Conversion \xB7 ${n.name}`,detail:"the conversion",t:r.t,ref:r.id,keywords:`conversion convert success goal ${n.name}`});else{let a=/^(.+):started$/.exec(n.name??"");if(a){let o=n.props?.task??a[1];t.push({id:r.id,label:`Task \xB7 ${o}`,detail:"sub-event span",t:r.t,ref:r.id,keywords:`task span sub-event ${o}`})}}}return t.sort((r,n)=>r.t-n.t)}function u_(e){try{let t=new URL(e);return(t.pathname.split("/").pop()||t.hostname)+(t.search?t.search:"")}catch{return e.split("/").pop()||e}}function d_(e,t){if(!e.length)return null;let r=null,n=1/0;for(let a of e){let o=Math.abs(a.t-t);o<n&&(n=o,r=a)}return r&&n<1200?r.label:null}var da=60;function c_(e){if(e.type==="error"||e.type==="console"&&e.level==="error")return"error";if(e.type==="network"){let t=e;return t.status>=400||t.status===0?"error":"network"}if(e.type==="custom"){let t=e;if(t.name==="rage_click"||t.name==="dead_click")return"frustration";if(t.props&&t.props.conversion===!0)return"conversion";if(t.name==="navigation"||t.name==="pageview")return"nav"}return"other"}var tm={error:"var(--lum-error)",frustration:"var(--lum-warn)",conversion:"var(--lum-ok)",network:"#a06bff",nav:"var(--lum-info)",other:"var(--lum-faint)"},fb={error:"error",frustration:"frustration",conversion:"conversion",network:"network",nav:"navigation",other:"other"},f_=["error","frustration","conversion","network","nav"],p_=(e,t)=>`${e} ${t}${e===1?"":"s"}`;function m_(){let e=M(k=>k.events),t=M(k=>k.offset),r=M(k=>k.durationMs),n=M(k=>k.bufferedMs),a=M(k=>k.zoomStack),o=M(k=>k.zoomTo),s=M(k=>k.zoomOutTo),l=M(k=>k.seek),i=M(k=>k.toRelative),d=(0,_n.useRef)(null),[u,p]=(0,_n.useState)(null),[c,f]=(0,_n.useState)(null),[h,m]=(0,_n.useState)(!1),y=t,g=t+r,x=Math.max(1,g-y),v=(0,_n.useMemo)(()=>{let k=new Array(da).fill(0),_=Array.from({length:da},()=>({error:0,frustration:0,conversion:0,network:0,nav:0,other:0}));for(let P of e){let I=(P.t-y)/x,re=Math.min(da-1,Math.max(0,Math.floor(I*da)));k[re]++,_[re][c_(P)]++}let N=Math.max(1,...k);return k.map((P,I)=>{let re=_[I],_e="other",se=0;return Object.keys(re).forEach(j=>{let ve=j==="error"?100:j==="frustration"?50:j==="conversion"?40:1,Me=re[j]*ve;re[j]>0&&Me>se&&(se=Me,_e=j)}),{h:P/N,kind:_e,total:P,counts:re}})},[e,y,x]),S=k=>{let _=d.current;if(!_)return y;let N=_.getBoundingClientRect(),P=Math.min(1,Math.max(0,(k-N.left)/N.width));return y+P*x},b=k=>(k-y)/x*100,w=a[a.length-1],C=r>0?Math.min(100,n/r*100):100,L=[{label:"Full",index:0},...a.map((k,_)=>({label:`${te(i(k[0]))}\u2013${te(i(k[1]))}`,index:_+1}))];return(0,De.jsxs)("div",{className:"lum-st-overview",children:[(0,De.jsxs)("span",{className:"lum-st-overview__labelwrap",children:[(0,De.jsx)("span",{className:"lum-st-overview__label lum-muted",children:"OVERVIEW"}),(0,De.jsxs)("span",{className:"lum-st-overview__i-wrap",onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:[(0,De.jsx)(na,{size:12,className:"lum-st-overview__i","aria-label":"What is this?"}),h&&(0,De.jsxs)("div",{className:"lum-st-overview__legend-pop",role:"tooltip",children:[(0,De.jsx)("div",{className:"lum-st-overview__legend-lead",children:"Activity across the whole recording. Each bar is a slice of time \u2014 height shows how busy it was, color shows the most important thing that happened. Click to jump there, drag to zoom into a range."}),(0,De.jsx)("div",{className:"lum-st-overview__legend",children:f_.map(k=>(0,De.jsxs)("span",{className:"lum-st-overview__legend-item",children:[(0,De.jsx)("span",{className:"lum-st-overview__tip-dot",style:{background:tm[k]}}),(0,De.jsx)("span",{style:{textTransform:"capitalize"},children:fb[k]})]},k))})]})]})]}),(0,De.jsxs)("div",{ref:d,className:"lum-st-overview__spark",onPointerDown:k=>{k.target.setPointerCapture?.(k.pointerId),f(null);let _=S(k.clientX);p({a:_,b:_})},onPointerMove:k=>{u&&p(_=>_&&{..._,b:S(k.clientX)})},onPointerUp:()=>{u&&(Math.abs(u.b-u.a)>x*.01?o(Math.min(u.a,u.b),Math.max(u.a,u.b)):l(i(u.a))),p(null)},onPointerLeave:()=>p(null),onMouseLeave:()=>f(null),children:[C<99.5&&(0,De.jsx)("div",{className:"lum-st-overview__buffered",style:{width:`${C}%`},"aria-hidden":!0}),v.map((k,_)=>(0,De.jsx)("div",{className:"lum-st-overview__bar",style:{height:`${Math.max(8,k.h*100)}%`,background:tm[k.kind]},onMouseEnter:()=>f(_)},_)),c!=null&&v[c]&&(()=>{let k=v[c],_=y+c/da*x,N=y+(c+1)/da*x,P=Math.min(93,Math.max(7,(c+.5)/da*100)),I=Object.keys(k.counts).filter(re=>k.counts[re]>0);return(0,De.jsxs)("div",{className:"lum-st-overview__tip",style:{left:`${P}%`},role:"tooltip",children:[(0,De.jsxs)("div",{className:"lum-st-overview__tip-time",children:[te(i(_)),"\u2013",te(i(N))]}),k.total===0?(0,De.jsx)("div",{className:"lum-muted",children:"No activity"}):(0,De.jsx)("ul",{className:"lum-st-overview__tip-list",children:I.map(re=>(0,De.jsxs)("li",{children:[(0,De.jsx)("span",{className:"lum-st-overview__tip-dot",style:{background:tm[re]}}),p_(k.counts[re],fb[re])]},re))})]})})(),w&&(0,De.jsx)("div",{className:"lum-st-overview__window",style:{left:`${b(w[0])}%`,width:`${b(w[1])-b(w[0])}%`}}),u&&(0,De.jsx)("div",{className:"lum-st-overview__brush",style:{left:`${b(Math.min(u.a,u.b))}%`,width:`${Math.abs(b(u.b)-b(u.a))}%`}})]}),(0,De.jsx)("div",{className:"lum-st-overview__crumbs",children:L.map((k,_)=>(0,De.jsx)("button",{className:`lum-st-crumb ${_===L.length-1?"is-active":""}`,onClick:()=>s(k.index),children:k.label},_))})]})}function h_(e){let t=[1e3,2e3,5e3,1e4,15e3,3e4,6e4,12e4,3e5,6e5],r=e/8;for(let n of t)if(n>=r)return n;return t[t.length-1]}function g_({win:e}){let t=(0,so.useRef)(null),r=(0,so.useRef)(!1),n=M(S=>S.currentTime),a=M(S=>S.durationMs),o=M(S=>S.offset),s=M(S=>S.events),l=M(S=>S.markers),i=M(S=>S.snap),d=M(S=>S.seek),u=M(S=>S.setHover),p=M(S=>S.toRelative),[c,f]=e,h=Math.max(1,f-c),m=(0,so.useMemo)(()=>{let S=h_(h),b=[],w=c-o,C=Math.ceil(w/S)*S;for(let L=C;L<=f-o;L+=S){let k=L+o;b.push({tRel:L,pct:(k-c)/h*100})}return b},[h,c,f,o]),y=(0,so.useMemo)(()=>im(s,a+o),[s,a,o]),g=S=>{let b=t.current;if(!b)return c;let w=b.getBoundingClientRect();return Db(S-w.left,e,w.width)},x=S=>{if(!i)return S;let b=t.current;if(!b)return S;let w=b.getBoundingClientRect().width,C=am(S,e,w),L=S,k=8;for(let _ of l){let N=am(_.t,e,w),P=Math.abs(N-C);P<k&&(k=P,L=_.t)}return L},v=S=>{let b=x(g(S));d(p(b))};return(0,Mn.jsxs)("div",{ref:t,className:"lum-st-ruler",role:"slider",tabIndex:0,"aria-label":"Timeline scrubber","aria-valuemin":0,"aria-valuemax":Math.round(a),"aria-valuenow":Math.round(n),"aria-valuetext":`${te(n)} of ${te(a)}`,onPointerDown:S=>{r.current=!0,S.target.setPointerCapture?.(S.pointerId),v(S.clientX)},onPointerMove:S=>{let b=g(S.clientX);u(p(b)),r.current&&v(S.clientX)},onPointerUp:S=>{r.current=!1,S.target.releasePointerCapture?.(S.pointerId)},onPointerLeave:()=>u(null),onKeyDown:S=>{if(S.key==="ArrowRight")d(n+1e3);else if(S.key==="ArrowLeft")d(n-1e3);else if(S.key==="Home")d(0);else if(S.key==="End")d(a);else if(S.key==="PageUp")d(n+1e4);else if(S.key==="PageDown")d(n-1e4);else return;S.preventDefault()},children:[y.slice(1).map(S=>{let b=(S.startT-c)/h*100;return b<0||b>100?null:(0,Mn.jsx)("span",{className:"lum-st-ruler__chdiv",style:{left:`${b}%`},title:S.title},S.id)}),m.map((S,b)=>(0,Mn.jsx)("span",{className:"lum-st-ruler__tick",style:{left:`${S.pct}%`},children:(0,Mn.jsx)("span",{className:"lum-st-ruler__ticklabel lum-mono",children:te(S.tRel)})},b))]})}function x_({win:e}){let t=M(d=>d.hover),r=M(d=>d.offset),n=M(d=>d.markers);if(t==null)return null;let a=t.t+r,[o,s]=e,l=(a-o)/Math.max(1,s-o)*100;if(l<0||l>100)return null;let i=d_(n,a);return(0,Mn.jsxs)("div",{className:"lum-st-ghosttip lum-mono",style:{left:`${l}%`},children:[te(t.t),i&&(0,Mn.jsxs)("span",{className:"lum-st-ghosttip__lbl",children:[" \xB7 ",i.slice(0,48)]})]})}function v_({isFullscreen:e,onFullscreen:t,allowFullscreen:r=!0}){let n=M(I=>I.status),a=M(I=>I.currentTime),o=M(I=>I.durationMs),s=M(I=>I.summary?.inactiveMs),l=M(I=>I.summary?.durationMs),i=M(I=>I.speed),d=M(I=>I.autoSkip),u=M(I=>I.isSkipping),p=M(I=>I.autoSkim),c=M(I=>I.isSkimming),f=M(I=>I.loop),h=M(I=>I.showCursor),m=M(I=>I.snap),y=M(I=>I.toggle),g=M(I=>I.restart),x=M(I=>I.seek),v=M(I=>I.step),S=M(I=>I.jumpEvent),b=M(I=>I.setSpeed),w=M(I=>I.setAutoSkip),C=M(I=>I.setAutoSkim),L=M(I=>I.setLoop),k=M(I=>I.setShowCursor),_=M(I=>I.toggleSnap),N=n==="playing";return(0,J.jsxs)("div",{className:"lum-st-transport",children:[(0,J.jsxs)("div",{className:"lum-st-transport__group",children:[(0,J.jsx)("span",{className:"lum-pl-play",children:(0,J.jsx)(gt,{label:N?"Pause (Space)":"Play (Space)",pressed:N,onClick:y,children:N?(0,J.jsx)(Ms,{size:17}):(0,J.jsx)(sa,{size:17})})}),(0,J.jsx)(gt,{label:"Restart (R)",onClick:g,children:(0,J.jsx)(Ns,{size:16})}),(0,J.jsx)(gt,{label:"Back 10s (\u2190)",onClick:()=>x(a-1e4),children:(0,J.jsx)(Ts,{size:16})}),(0,J.jsx)(gt,{label:"Forward 10s (\u2192)",onClick:()=>x(a+1e4),children:(0,J.jsx)(As,{size:16})}),(0,J.jsx)(gt,{label:"Previous event ([)",onClick:()=>S(-1),children:(0,J.jsx)(ea,{size:17})}),(0,J.jsx)(gt,{label:"Next event (])",onClick:()=>S(1),children:(0,J.jsx)(ta,{size:17})}),(n==="paused"||n==="ended"||n==="idle")&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(gt,{label:"Frame back (,)",onClick:()=>v(-1),children:(0,J.jsx)(Ds,{size:15})}),(0,J.jsx)(gt,{label:"Frame forward (.)",onClick:()=>v(1),children:(0,J.jsx)(Os,{size:15})})]})]}),(0,J.jsxs)("div",{className:"lum-st-transport__group lum-st-transport__group--right",children:[(0,J.jsx)(av,{trigger:(0,J.jsxs)("span",{className:"lum-iconbtn","aria-label":`Speed ${i}\xD7`,title:"Playback speed (< / >)",children:[(0,J.jsx)(Cs,{size:15}),(0,J.jsxs)("span",{className:"lum-mono lum-pl-speed",children:[i,"\xD7"]})]}),options:vb.map(I=>({value:I,label:`${I}\xD7`})),value:i,onSelect:b,placement:"top"}),(0,J.jsx)("span",{className:`lum-st-skim${u?" is-skimming":""}`,children:(0,J.jsx)(gt,{label:`Auto-skip idle \u2014 jump to next activity (S)${d?" \u2014 on":""}`,pressed:d,onClick:()=>w(!d),children:(0,J.jsx)(ra,{size:16})})}),(0,J.jsx)("span",{className:`lum-st-skim${c?" is-skimming":""}`,children:(0,J.jsx)(gt,{label:`Auto-skim idle at 8\xD7 (\u21E7S)${p?" \u2014 on":""}`,pressed:p,onClick:()=>C(!p),children:(0,J.jsx)(ia,{size:15})})}),(0,J.jsx)(gt,{label:"Loop (L)",pressed:f,onClick:()=>L(!f),children:(0,J.jsx)(Rs,{size:15})}),(0,J.jsx)(gt,{label:"Magnetic snap (X)",pressed:m,onClick:_,children:(0,J.jsx)(ks,{size:15})}),(0,J.jsx)(gt,{label:"Cursor trail",pressed:h,onClick:()=>k(!h),children:(0,J.jsx)(_s,{size:15})}),r&&(0,J.jsx)(gt,{label:e?"Exit fullscreen (F)":"Fullscreen (F)",pressed:e,onClick:t,children:e?(0,J.jsx)(oa,{size:16}):(0,J.jsx)(aa,{size:16})}),(0,J.jsxs)("span",{className:"lum-st-transport__time lum-mono",children:[te(a)," ",(0,J.jsxs)("span",{className:"lum-muted",children:["/ ",te(o)]}),s!=null&&s>0&&l?(0,J.jsxs)("span",{className:"lum-st-transport__idle lum-muted",title:`${te(s)} of this recording (${Math.round(s/l*100)}%) had no interaction`,children:[" \xB7 ",Math.round(s/l*100),"% idle"]}):null]})]})]})}function y_(e){switch(e.kind){case"rage":return"\u25C6";case"dead":return"\u25CB";case"conversion":return"\u2726";case"error":return"\u25CF";case"network":return"\u25AD";case"task":return"\u25B0";case"nav":return"\u258E";case"perf-poor":return"\u25C7";case"perf-good":return"\u25C7";case"console":return e.severity==="error"?"\u25CF":"\xB7";default:return"\xB7"}}function w_(e){switch(e.severity){case"error":return"var(--lum-error)";case"warn":return"var(--lum-warn)";case"ok":return"var(--lum-ok)";case"info":return"var(--lum-info)";default:return"var(--lum-faint)"}}function b_(e,t,r){let n=[...e].sort((o,s)=>o.t-s.t),a=[];for(let o of n){if(o.t<t[0]-1||o.t>t[1]+1)continue;let s=am(o.t,t,r),l=a[a.length-1];l&&s-l.xPx<6?l.items.push(o):a.push({t:o.t,xPx:s,items:[o]})}return a}function S_({id:e,label:t,glyphs:r,win:n,width:a,collapsed:o}){let s=M(g=>g.offset),l=M(g=>g.durationMs),i=M(g=>g.events),d=M(g=>g.selectedEventId),u=M(g=>g.selectAndSeek),p=M(g=>g.zoomTo),c=M(g=>g.toRelative),f=Math.max(1,n[1]-n[0]),h=g=>(g-n[0])/f*100,m=(0,om.useMemo)(()=>e==="chapters"?im(i,l+s):[],[e,i,l,s]),y=(0,om.useMemo)(()=>e==="network"||e==="chapters"||e==="task"?[]:b_(r,n,a||1),[e,r,n,a]);return o?(0,Wt.jsx)("div",{className:"lum-st-lane lum-st-lane--collapsed",role:"listbox","aria-label":`${t} lane (collapsed)`,tabIndex:0,children:(0,Wt.jsx)("span",{className:"lum-st-lane__count lum-mono",children:r.length||m.length||"\u2014"})}):(0,Wt.jsxs)("div",{className:`lum-st-lane lum-st-lane--${e}`,role:"listbox","aria-label":`${t} lane`,tabIndex:0,"data-lane":e,children:[e==="chapters"&&m.map(g=>{let x=h(g.startT),v=h(g.endT)-x;return x>100||x+v<0?null:(0,Wt.jsx)("button",{className:`lum-st-chapter lum-st-chapter--${g.kind} ${g.kind==="idle"?"is-idle":""}`,style:{left:`${x}%`,width:`${Math.max(.5,v)}%`},role:"option","aria-selected":!1,"aria-label":`${g.title} \xB7 ${g.subtitle} @ ${te(c(g.startT))}`,title:`${g.title} \u2014 ${g.subtitle}`,onClick:()=>p(g.startT,g.endT),children:(0,Wt.jsx)("span",{className:"lum-st-chapter__label",children:g.title})},g.id)}),e==="network"&&r.map(g=>{let x=h(g.t);if(x>101||x<-1)return null;let v=(g.durationMs??0)/f*100,S=Math.max(.4,v),b=d===g.id;return(0,Wt.jsx)("button",{className:`lum-st-netbar lum-st-netbar--${g.severity} ${b?"is-selected":""}`,style:{left:`${x}%`,width:`${S}%`},role:"option","aria-selected":b,"aria-label":`${g.label} \xB7 ${g.sub??""} @ ${te(c(g.t))}`,title:`${g.label} \u2014 ${g.sub??""}`,onClick:()=>u(g.id)},g.id)}),e==="task"&&r.map(g=>{let x=h(g.t);if(x>101||x<-1)return null;let v=(g.durationMs??0)/f*100,S=Math.max(.5,v),b=d===g.id,w=!!g.running;return(0,Wt.jsx)("button",{className:`lum-st-taskbar ${b?"is-selected":""} ${w?"is-running":""}`,style:{left:`${x}%`,width:`${S}%`},role:"option","aria-selected":b,"aria-label":`Task ${g.label} \xB7 ${g.sub??""} @ ${te(c(g.t))}`,title:`${g.label}${g.sub?` \u2014 ${g.sub}`:""}`,onClick:()=>u(g.id)},g.id)}),e!=="network"&&e!=="chapters"&&e!=="task"&&y.map((g,x)=>{let v=h(g.t);if(v>101||v<-1)return null;let S=g.items[0],b=g.items.some(C=>C.id===d),w=g.items.length;return(0,Wt.jsxs)("button",{className:`lum-st-glyph lum-st-glyph--${e} ${b?"is-selected":""} ${S.kind==="rage"?"lum-st-glyph--pulse":""}`,style:{left:`${v}%`,color:w_(S)},role:"option","aria-selected":b,"aria-label":w>1?`${w} events @ ${te(c(g.t))}`:`${S.label} @ ${te(c(g.t))}`,title:w>1?`${w} events`:`${S.label}${S.sub?` \xB7 ${S.sub}`:""}`,onClick:()=>{w>1&&f>4e3?p(g.t-1500,g.t+1500):u(S.id)},children:[(0,Wt.jsx)("span",{className:"lum-st-glyph__char","aria-hidden":!0,children:y_(S)}),w>1&&(0,Wt.jsx)("span",{className:"lum-st-glyph__count",children:w})]},`${g.t}-${x}`)}),r.length===0&&m.length===0&&(0,Wt.jsx)("span",{className:"lum-st-lane__empty",children:"\u2014"})]})}function C_({id:e,label:t,count:r}){let n=M(o=>o.laneState[e]),a=M(o=>o.toggleLane);return(0,Dt.jsxs)("div",{className:`lum-st-rail ${n.collapsed?"is-collapsed":""} ${n.mute?"is-muted":""} ${n.solo?"is-solo":""}`,children:[(0,Dt.jsx)("button",{className:"lum-st-rail__collapse","aria-label":`${n.collapsed?"Expand":"Collapse"} ${t}`,onClick:()=>a(e,"collapsed"),children:n.collapsed?(0,Dt.jsx)(ta,{size:13}):(0,Dt.jsx)(Zn,{size:13})}),(0,Dt.jsx)("span",{className:"lum-st-rail__label",children:t}),(0,Dt.jsx)("span",{className:"lum-st-rail__count lum-mono",children:r}),(0,Dt.jsxs)("span",{className:"lum-st-rail__ctrls",children:[(0,Dt.jsx)("button",{className:`lum-st-rail__btn ${n.solo?"is-on":""}`,"aria-pressed":n.solo,title:"Solo lane",onClick:()=>a(e,"solo"),children:(0,Dt.jsx)(Ss,{size:11})}),(0,Dt.jsx)("button",{className:`lum-st-rail__btn ${n.mute?"is-on":""}`,"aria-pressed":n.mute,title:"Mute lane",onClick:()=>a(e,"mute"),children:n.mute?(0,Dt.jsx)(zs,{size:11}):(0,Dt.jsx)(Bs,{size:11})})]})]})}function L_({win:e}){let t=M(l=>l.currentTime),r=M(l=>l.offset),n=t+r,a=gu(n,e),o=n<e[0],s=n>e[1];return(0,xu.jsx)("div",{className:`lum-st-playhead ${o?"is-offleft":""} ${s?"is-offright":""}`,style:{left:`${a*100}%`},"aria-hidden":!0,children:(0,xu.jsx)("span",{className:"lum-st-playhead__cap"})})}function k_({win:e}){let t=M(o=>o.hover),r=M(o=>o.offset);if(t==null)return null;let n=t.t+r,a=gu(n,e);return n<e[0]||n>e[1]?null:(0,xu.jsx)("div",{className:"lum-st-ghost",style:{left:`${a*100}%`},"aria-hidden":!0})}var I_={error:"var(--lum-error)",net5xx:"#a06bff",net4xx:"var(--lum-warn)",rage:"var(--lum-warn)",dead:"var(--lum-faint)",nav:"var(--lum-info)"};function __({win:e}){let t=(0,js.useRef)(null),r=(0,js.useRef)(!1),n=M(m=>m.currentTime),a=M(m=>m.durationMs),o=M(m=>m.offset),s=M(m=>m.events),l=M(m=>m.seek),i=M(m=>m.selectAndSeek),d=M(m=>m.setHover),u=M(m=>m.toRelative),p=(0,js.useMemo)(()=>s_(s),[s]),c=n+o,f=gu(c,e),h=m=>{let y=t.current;if(!y)return e[0];let g=y.getBoundingClientRect();return Db(m-g.left,e,g.width)};return(0,oo.jsxs)("div",{ref:t,className:"lum-st-ribbon",role:"slider",tabIndex:0,"aria-label":"Signal ribbon scrubber","aria-valuemin":0,"aria-valuemax":Math.round(a),"aria-valuenow":Math.round(n),"aria-valuetext":`${te(n)} of ${te(a)}`,onPointerDown:m=>{r.current=!0,m.target.setPointerCapture?.(m.pointerId),l(u(h(m.clientX)))},onPointerMove:m=>{d(u(h(m.clientX))),r.current&&l(u(h(m.clientX)))},onPointerUp:()=>r.current=!1,onPointerLeave:()=>d(null),onKeyDown:m=>{if(m.key==="ArrowRight")l(n+1e3);else if(m.key==="ArrowLeft")l(n-1e3);else if(m.key==="Home")l(0);else if(m.key==="End")l(a);else return;m.preventDefault()},children:[(0,oo.jsx)("div",{className:"lum-st-ribbon__track"}),p.map(m=>{let y=gu(m.t,e);return m.t<e[0]||m.t>e[1]?null:(0,oo.jsx)("button",{className:"lum-st-ribbon__glyph",style:{left:`${y*100}%`,color:I_[m.kind]??"var(--lum-faint)"},title:`${m.label} @ ${te(u(m.t))}`,"aria-label":`${m.label} @ ${te(u(m.t))}`,onClick:g=>{g.stopPropagation(),i(m.ref)},children:"\u25C6"},m.ref)}),(0,oo.jsx)("div",{className:"lum-st-ribbon__head",style:{left:`${f*100}%`},"aria-hidden":!0})]})}function M_({breakpoint:e,isFullscreen:t,onFullscreen:r,allowFullscreen:n,onResizeStart:a,onResizeReset:o}){let s=M(w=>w.events),l=M(w=>w.laneState),i=M(w=>w.offset),d=M(w=>w.durationMs),u=M(w=>w.zoomStack),p=M(w=>w.zoomTo),c=M(w=>w.zoomOutTo),f=M(w=>w.focusMode),h=Ob(),{ref:m,width:y}=GI(),g=(0,Fb.useMemo)(()=>l_(s),[s]),x=e==="narrow"||e==="compact"||f==="stage",v=fu.some(w=>l[w].solo),S=fu.filter(w=>!(l[w].mute||v&&!l[w].solo));return(0,et.jsxs)("section",{className:"lum-st-timeline","aria-label":"Timeline",children:[a&&(0,et.jsx)("div",{className:"lum-st-resize lum-st-resize--y",role:"separator","aria-orientation":"horizontal","aria-label":"Resize timeline height",title:"Drag to resize \xB7 double-click to reset",onPointerDown:a,onDoubleClick:o}),(0,et.jsx)(m_,{}),(0,et.jsxs)("div",{className:"lum-st-rulerrow",children:[(0,et.jsx)(v_,{isFullscreen:t,onFullscreen:r,allowFullscreen:n}),(0,et.jsx)("div",{className:"lum-st-rulerrow__ruler",children:(0,et.jsx)(g_,{win:h})})]}),x?(0,et.jsx)("div",{className:"lum-st-ribbonwrap",children:(0,et.jsx)(__,{win:h})}):(0,et.jsxs)("div",{className:"lum-st-lanes",onWheel:w=>{if(x||!w.ctrlKey&&!w.metaKey)return;w.preventDefault();let C=m.current;if(!C)return;let L=C.getBoundingClientRect(),k=Math.min(1,Math.max(0,(w.clientX-L.left)/L.width)),_=h[0]+k*(h[1]-h[0]),N=w.deltaY>0?1.2:.83,P=VI(h,_,N,i,i+d);P==null?u.length&&c(u.length-1):p(P[0],P[1])},children:[(0,et.jsx)("div",{className:"lum-st-lanes__rails",children:S.map(w=>(0,et.jsx)(C_,{id:w,label:cb[w],count:g[w].length},w))}),(0,et.jsxs)("div",{className:"lum-st-lanes__tracks",ref:m,children:[S.map(w=>(0,et.jsx)(S_,{id:w,label:cb[w],glyphs:g[w],win:h,width:y,collapsed:l[w].collapsed},w)),(0,et.jsx)(L_,{win:h}),(0,et.jsx)(k_,{win:h}),(0,et.jsx)(x_,{win:h})]})]})]})}function R_(){let e=M(g=>g.paletteOpen),t=M(g=>g.openPalette),r=M(g=>g.events),n=M(g=>g.currentTime),a=M(g=>g.nextProblem),o=M(g=>g.selectAndSeek),s=M(g=>g.toRelative),[l,i]=(0,ar.useState)(""),[d,u]=(0,ar.useState)(0),p=(0,ar.useRef)(null),c=(0,ar.useMemo)(()=>i_(r),[r]),f=(0,ar.useMemo)(()=>{let g=[];g.push({id:"next-problem",label:"Next problem",detail:"jump to the next error / failure / rage",keywords:"next problem error fail rage",run:()=>a(1)}),g.push({id:"prev-problem",label:"Previous problem",detail:"jump backward",keywords:"previous prev problem back",run:()=>a(-1)});let x=c.find(C=>C.keywords.includes("error"));x&&g.push(w("first-error","First error",x));let v=c.find(C=>C.keywords.includes("network"));v&&g.push(w("next-5xx","Next failed request",v));let S=c.find(C=>C.keywords.includes("rage"));S&&g.push(w("next-rage","Next rage click",S));let b=c.find(C=>C.keywords.includes("conversion"));b&&g.push(w("the-conversion","The conversion",b));for(let C of c)g.push(w(`go-${C.id}`,`${C.label} \xB7 ${te(s(C.t))}`,C));return g;function w(C,L,k){return{id:C,label:L,detail:k.detail,keywords:`${L} ${k.keywords}`.toLowerCase(),run:()=>o(k.ref)}}},[c,a,o,s]),h=(0,ar.useMemo)(()=>{let g=l.trim().toLowerCase();return g?f.filter(x=>x.keywords.includes(g)||x.label.toLowerCase().includes(g)).slice(0,20):f.slice(0,12)},[f,l]);if((0,ar.useEffect)(()=>{e&&(i(""),u(0),requestAnimationFrame(()=>p.current?.focus()))},[e]),(0,ar.useEffect)(()=>u(0),[l]),!e)return null;let m=()=>t(!1),y=g=>{g&&(g.run(),m())};return(0,nr.jsx)("div",{className:"lum-st-palette",role:"dialog","aria-modal":"true","aria-label":"Command palette",onClick:m,children:(0,nr.jsxs)("div",{className:"lum-st-palette__card",onClick:g=>g.stopPropagation(),children:[(0,nr.jsx)("input",{ref:p,className:"lum-st-palette__input lum-mono",placeholder:"Jump to\u2026 (next 5xx, next rage, first error, the conversion)",value:l,onChange:g=>i(g.target.value),"aria-label":"Command query",onKeyDown:g=>{g.key==="ArrowDown"?(g.preventDefault(),u(x=>Math.min(h.length-1,x+1))):g.key==="ArrowUp"?(g.preventDefault(),u(x=>Math.max(0,x-1))):g.key==="Enter"?(g.preventDefault(),y(h[d])):g.key==="Escape"&&(g.preventDefault(),m())}}),(0,nr.jsxs)("div",{className:"lum-st-palette__hint lum-muted",children:[h.length," match",h.length===1?"":"es"]}),(0,nr.jsxs)("ul",{className:"lum-st-palette__list",role:"listbox",children:[h.map((g,x)=>(0,nr.jsx)("li",{role:"option","aria-selected":x===d,children:(0,nr.jsxs)("button",{className:`lum-st-palette__item ${x===d?"is-active":""}`,onMouseEnter:()=>u(x),onClick:()=>y(g),children:[(0,nr.jsx)("span",{className:"lum-st-palette__label",children:g.label}),(0,nr.jsx)("span",{className:"lum-st-palette__detail lum-muted",children:g.detail})]})},g.id)),h.length===0&&(0,nr.jsx)("li",{className:"lum-st-palette__empty lum-muted",children:"No matches"})]})]})})}var E_=[["Space / K","Play / pause"],["R","Restart"],["\u2190 / \u2192","Seek \u221310s (\u22131s on ruler)"],["[ / ]","Walk prev / next event in lane"],[", / .","Frame step (paused)"],["< / >","Slower / faster"],["N / \u21E7N","Next / previous problem"],["\u2318K / Ctrl K","Command palette"],["E","Cycle feed type filter"],["Z / \u21E7Z","Zoom to selection / out"],["X","Toggle magnetic snap"],["T / D","Stage / Debug focus"],["`","Toggle feed focus"],["S","Auto-skip idle (jump)"],["\u21E7S","Auto-skim idle (8\xD7)"],["L","Loop"],["F","Fullscreen"],["C","Comment at playhead"],["Home / End","Start / end (ruler)"],["Esc","Clear selection / close"],["?","This help"]];function N_({open:e,onClose:t}){return e?(0,rr.jsx)("div",{className:"lum-pl-help",role:"dialog","aria-modal":"true","aria-label":"Keyboard shortcuts",onClick:t,children:(0,rr.jsxs)("div",{className:"lum-pl-help__card",onClick:r=>r.stopPropagation(),children:[(0,rr.jsxs)("div",{className:"lum-pl-help__head",children:[(0,rr.jsx)("strong",{children:"Keyboard shortcuts"}),(0,rr.jsx)("button",{className:"lum-iconbtn","aria-label":"Close",onClick:t,children:"\u2715"})]}),(0,rr.jsx)("div",{className:"lum-pl-help__grid",children:E_.map(([r,n])=>(0,rr.jsxs)("div",{className:"lum-pl-help__row",children:[(0,rr.jsx)("kbd",{className:"lum-pl-kbd lum-mono",children:r}),(0,rr.jsx)("span",{children:n})]},r))}),(0,rr.jsx)("p",{className:"lum-muted",children:"Shortcuts are disabled while typing in a text field."})]})}):null}function P_(e){let[t,r]=(0,Cu.useState)("wide");return(0,Cu.useEffect)(()=>{let n=e.current;if(!n)return;let a=(s,l)=>s<480?"compact":s<720||l<400?"narrow":s<1100?"mid":"wide",o=new ResizeObserver(s=>{let l=s[0];if(!l)return;let{width:i,height:d}=l.contentRect;r(a(i,d))});return o.observe(n),r(a(n.clientWidth,n.clientHeight)),()=>o.disconnect()},[e]),t}function pb(e,t){let r=sm(t);return e&&r.includes(e)?e:r.includes("debug")?"debug":r[0]}var mb="obsrviq.player.inspectorW",hb="obsrviq.player.timelineH";function gb(e){try{let t=Number(localStorage.getItem(e));return Number.isFinite(t)&&t>0?t:null}catch{return null}}function xb(e,t){try{t!=null?localStorage.setItem(e,String(t)):localStorage.removeItem(e)}catch{}}function Bb(e){let t=(0,X.useRef)();t.current||(t.current=zk());let r=t.current;return(0,Ve.jsx)(qk,{store:r,children:(0,Ve.jsx)($k,{value:{apiBaseUrl:e.apiBaseUrl,token:e.token,apiKey:e.apiKey,sessionId:e.sessionId},children:(0,Ve.jsx)(nv,{children:(0,Ve.jsx)(T_,{...e,store:r})})})})}function T_({sessionId:e,apiBaseUrl:t,token:r,apiKey:n,startAtMs:a,startMode:o,defaultMode:s,allowedModes:l,defaultSpeed:i,allowFullscreen:d,shareUrl:u,onEnded:p,onError:c,onSeek:f,onComment:h,onBack:m,backLabel:y,live:g,theme:x,embedded:v,className:S,topbarActions:b,focus:w,clip:C,store:L}){let k=(0,X.useRef)(null),_=(0,X.useRef)(null),N=(0,X.useRef)(null),P=(0,X.useRef)([]),I=(0,X.useRef)(-1),re=(0,X.useRef)(0),_e=(0,X.useRef)([]),se=(0,X.useRef)(-1),j=(0,X.useRef)(new Set),ve=(0,X.useRef)(new Set),Me=(0,X.useRef)(0),Le=(0,X.useRef)(!1),[Ce,br]=(0,X.useState)(0),[T,yt]=(0,X.useState)(!1),[wt,En]=(0,X.useState)(!1),[Ye,it]=(0,X.useState)(!1),[Sr,Cr]=(0,X.useState)(0),[K,Re]=(0,X.useState)(!1),[ue,Ee]=(0,X.useState)(null),ut=(0,X.useRef)(null),[ge,fa]=(0,X.useState)(()=>gb(mb)),[Lu,pm]=(0,X.useState)(()=>gb(hb));(0,X.useEffect)(()=>{xb(mb,ge)},[ge]),(0,X.useEffect)(()=>{xb(hb,Lu)},[Lu]);let Gb=(0,X.useCallback)(D=>{let W=ut.current;if(!W)return;D.preventDefault();let F=W.getBoundingClientRect(),ee=D.currentTarget;ee.setPointerCapture(D.pointerId),ee.classList.add("is-active");let O=ne=>{let dt=Math.max(320,Math.min(820,F.width-360));fa(Math.min(dt,Math.max(300,Math.round(F.right-ne.clientX))))},de=()=>{ee.classList.remove("is-active"),window.removeEventListener("pointermove",O),window.removeEventListener("pointerup",de)};window.addEventListener("pointermove",O),window.addEventListener("pointerup",de)},[]),Xb=(0,X.useCallback)(D=>{let W=k.current;if(!W)return;D.preventDefault();let F=W.getBoundingClientRect(),ee=D.currentTarget;ee.setPointerCapture(D.pointerId),ee.classList.add("is-active");let O=ne=>{let dt=Math.max(140,F.height-240);pm(Math.min(dt,Math.max(120,Math.round(F.bottom-ne.clientY))))},de=()=>{ee.classList.remove("is-active"),window.removeEventListener("pointermove",O),window.removeEventListener("pointerup",de)};window.addEventListener("pointermove",O),window.addEventListener("pointerup",de)},[]),Nr=P_(k),pa=M(D=>D.focusMode),ma={apiBaseUrl:t,token:r,apiKey:n},Vs=d??ue?.allowFullscreen??!0,Kb=u??ue?.shareUrl,mm=(0,X.useRef)(Vs);mm.current=Vs;let hm=(0,X.useRef)(!1);(0,X.useEffect)(()=>{if(hm.current)return;let D=l!=null&&(s??o)!=null&&i!=null;if(ue==null&&!D)return;hm.current=!0;let W=L.getState(),F=sm(l??ue?.allowedModes);W.setAllowedModes(F);let ee=s??o??ue?.defaultMode;ee&&F.includes(ee)&&L.setState({focusMode:ee});let O=i??ue?.defaultSpeed;if(O!=null){let de=vb.reduce((ne,dt)=>Math.abs(dt-O)<Math.abs(ne-O)?dt:ne);L.setState({speed:de}),W.controller?.setSpeed(de)}},[ue]),(0,X.useEffect)(()=>{let D=!1;return yt(!1),_e.current=[],se.current=-1,j.current=new Set,ve.current=new Set,Me.current=0,Le.current=!1,L.setState({status:"loading",error:null,loadProgress:0,controller:null,pendingSeek:null}),(async()=>{if(g){let{detail:Z,events:ye,rrwebEvents:lr}=await Gk(e,ma,(ir,Q)=>!D&&L.setState({loadProgress:Q?ir/Q:1}));if(D)return;if(Ee(Z.replaySettings??{}),P.current=lr,I.current=Z.replayChunks.reduce((ir,Q)=>Math.max(ir,Q.seq),-1),re.current=ye.reduce((ir,Q)=>Math.max(ir,Q.t),0),Z.summary.hasReplay&&lr.length>0)L.setState({events:ye,markers:Us(ye),summary:Z.summary,hasReplay:!0,status:"buffering",live:!0,following:!0});else{let ir=ye.map(ke=>ke.t),Q=ir.length?Math.min(...ir):0,G=ir.length?Math.max(...ir):0;L.setState({events:ye,markers:Us(ye),summary:Z.summary,hasReplay:!1,offset:Q,durationMs:Math.max(0,G-Q),currentTime:0,status:"paused",focusMode:pb(s??o??Z.replaySettings?.defaultMode,l??Z.replaySettings?.allowedModes)})}yt(!0);return}let{detail:F,events:ee}=await Wk(e,ma);if(D)return;Ee(F.replaySettings??{});let O=[...F.replayChunks].sort((Z,ye)=>Z.seq-ye.seq);if(_e.current=O,O.forEach((Z,ye)=>{Z.hasSnapshot&&ve.current.add(ye)}),re.current=ee.reduce((Z,ye)=>Math.max(Z,ye.t),0),!(F.summary.hasReplay&&O.length>0)){let Z=ee.map(io=>io.t),ye=Z.length?Math.min(...Z):0,lr=Z.length?Math.max(...Z):0;L.setState({events:ee,markers:Us(ee),summary:F.summary,hasReplay:!1,offset:ye,durationMs:Math.max(0,lr-ye),currentTime:0,status:"paused",focusMode:pb(s??o??F.replaySettings?.defaultMode,l??F.replaySettings?.allowedModes)}),yt(!0);return}let ne=O.reduce((Z,ye)=>Math.min(Z,ye.firstT),O[0].firstT),dt=O.reduce((Z,ye)=>Math.max(Z,ye.lastT),0);Me.current=Math.max(0,dt-ne),L.setState({events:ee,markers:Us(ee),summary:F.summary,hasReplay:!0,status:"loading",durationMs:Me.current,bufferedMs:0,live:!1,following:!1});let sr=Math.min(O.length,8),Vt=[],Nn=-1;for(let Z=0;Z<sr;Z++){let ye=await Yp(O[Z].url,ma).catch(()=>[]);if(D)return;if(Vt=Vt.concat(ye),Nn=Z,j.current.add(Z),ye.some(lr=>lr.type===2)&&ve.current.add(Z),Vt.some(lr=>lr.type===2))break}if(Vt.length<2||!Vt.some(Z=>Z.type===2)){L.setState({status:"error",error:"Replay data unavailable.",errorNotFound:!1});return}P.current=Vt,se.current=Nn,L.setState({loadProgress:O.length?(Nn+1)/O.length:1}),yt(!0)})().catch(F=>{D||(Ee(ee=>ee??{}),L.setState({status:"error",error:F instanceof Error?F.message:"Load failed",errorNotFound:!!F?.notFound}))}),()=>{D=!0}},[e,Ce]),(0,X.useEffect)(()=>{if(!T)return;let D=L.getState();if(!D.hasReplay)return;let W=_.current;if(!W)return;W.innerHTML="";let F;try{F=new rI(W,P.current,{speed:D.speed,showCursor:D.showCursor,autoSkim:D.autoSkim,autoSkip:D.autoSkip},{onTime:ne=>L.getState()._onTime(ne),onFinish:()=>L.getState()._onFinish(),onState:ne=>L.setState({status:ne}),onSkim:ne=>L.setState({isSkimming:ne}),onSkip:ne=>L.getState()._onSkip(ne)})}catch(ne){L.setState({status:"error",error:ne instanceof Error?ne.message:"Replay initialization failed",errorNotFound:!1});return}L.getState()._attachController(F);let ee=F.meta.startTime-D.summary.startedAt;L.setState({offset:ee});let O=L.getState().events.map(ne=>ne.t-ee).filter(ne=>ne>=0);O.length&&F.setActivityTimes(O),g?(F.seek(F.meta.totalTime),L.setState({currentTime:F.meta.totalTime})):a!=null&&!w&&!C&&L.getState().seek(a-ee);let de=new ResizeObserver(()=>F.fit());return de.observe(W),()=>{de.disconnect(),L.getState()._detachController()}},[T]),(0,X.useEffect)(()=>{if(!T||g||!w)return;let D=L.getState(),W;w.eventId&&D.events.some(F=>F.id===w.eventId)&&(W=w.eventId),!W&&w.kind&&w.selector&&(W=D.events.find(ee=>ee.type==="custom"&&ee.name===`${w.kind}_click`&&String(ee.props?.selector??"")===w.selector)?.id),!W&&w.kind&&(W=D.markers.find(F=>F.kind===w.kind&&F.ref)?.ref),W?D.select(W):a!=null&&D.seek(D.toRelative(a))},[T]),(0,X.useEffect)(()=>{if(!T||g)return;let D=L.getState();if(!C){D.setClip(null,null,!1);return}let W=Z=>Z.name,F=D.summary?.startedAt??null,ee=Z=>Z!=null&&F!=null?Z-F:void 0,O=C.fromMs??ee(C.fromUtc);if(O==null&&C.fromEvent){let Z=D.events.find(ye=>ye.type==="custom"&&W(ye)===C.fromEvent);Z&&(O=Z.t)}if(O==null){D.setClip(null,null,!1);return}let de=C.toMs??ee(C.toUtc);if(de==null&&C.toEvent){let Z=D.events.find(ye=>ye.type==="custom"&&W(ye)===C.toEvent&&ye.t>O);Z&&(de=Z.t)}(C.toMs!=null||C.toUtc!=null||C.toEvent!=null)&&de==null&&console.warn(`[obsrviq] clip end ${C.toEvent?`event "${C.toEvent}"`:"time"} did not resolve \u2014 playing from the start, unbounded.`);let ne=D.toRelative(O),dt=de!=null?D.toRelative(de):null,sr=dt!=null&&dt>ne?dt:null;D.setClip(ne,sr,!!C.loop&&sr!=null),D.seek(ne);let Vt=L.getState();(Vt._covers?Vt._covers(ne):ne<=Vt.bufferedMs+1)?D.play():Le.current=!0},[T,C?.fromEvent,C?.toEvent,C?.fromMs,C?.toMs,C?.fromUtc,C?.toUtc,C?.loop]),(0,X.useEffect)(()=>L.subscribe(D=>{D.status==="playing"?Le.current=!0:(D.status==="paused"||D.status==="ended")&&(Le.current=!1)}),[L]),(0,X.useEffect)(()=>L.subscribe((D,W)=>{D.status==="ended"&&W.status!=="ended"&&p?.()}),[L,p]),(0,X.useEffect)(()=>L.subscribe((D,W)=>{D.status==="error"&&W.status!=="error"&&c?.({reason:D.errorNotFound?"not_found":"error",message:D.error??"Could not load the recording."})}),[L,c]),(0,X.useEffect)(()=>{if(g||!T||!L.getState().hasReplay)return;let D=!1,W=j.current,F=ve.current,ee=_e.current.some(Q=>Q.hasSnapshot),O=Q=>{let G=_e.current,ke=0;for(let we=0;we<G.length&&G[we].firstT<=Q;we++)ke=we;return ke},de=Q=>{let G=Q+L.getState().offset,ke=O(G);if(!W.has(ke))return!1;for(let we=ke;we>=0&&W.has(we);we--)if(F.has(we))return!0;return!1},ne=Q=>{let G=O(Q+L.getState().offset),ke=_e.current;for(let we=G+1;we<ke.length;we++)if(!W.has(we))return!0;return!1};L.getState()._setLoaderProbes(de,ne);let dt=()=>{let Q=_e.current,G=-1;for(;W.has(G+1);)G++;let ke=G>=0?Math.max(0,Q[G].lastT-L.getState().offset):0;L.setState({bufferedMs:Math.max(L.getState().bufferedMs,ke),loadProgress:Q.length?W.size/Q.length:1})},sr=()=>{let Q=L.getState();if(Q.controller){if(Q.pendingSeek!=null){if(de(Q.pendingSeek)){let G=Q.pendingSeek;Q.controller.seek(G),Le.current?(Q.controller.play(G),L.setState({pendingSeek:null,currentTime:G,status:"playing"})):L.setState({pendingSeek:null,currentTime:G,status:"paused"})}return}if(Q.status==="buffering"){let G=O(Q.currentTime+Q.offset);if(!W.has(G))return;io(G)>G?Le.current?(Q.controller.play(Q.currentTime),L.setState({status:"playing"})):L.setState({status:"paused"}):G>=_e.current.length-1&&L.setState({status:"ended",currentTime:L.getState().durationMs})}}},Vt=async Q=>{try{return await Yp(Q,ma)}catch{await new Promise(G=>setTimeout(G,250));try{return await Yp(Q,ma)}catch{return null}}},Nn=6,Z=async(Q,G)=>{let ke=_e.current,we=Math.max(0,Q),uo=Math.min(ke.length-1,G),Iu=[];for(let Pr=we;Pr<=uo;Pr++)W.has(Pr)||Iu.push(Pr);for(let Pr=0;Pr<Iu.length&&!D;Pr+=Nn){let _u=Iu.slice(Pr,Pr+Nn),Jb=await Promise.all(_u.map(ha=>Vt(ke[ha].url)));if(D)return;let vm=L.getState().controller;if(!vm)return;for(let ha=0;ha<_u.length;ha++){let Mu=_u[ha],Ks=Jb[ha];Ks&&Ks.length?(vm.appendEvents(Ks),Ks.some(Zb=>Zb.type===2)&&F.add(Mu)):console.warn(`[obsrviq] replay chunk seq ${ke[Mu]?.seq} unavailable \u2014 skipping`),W.add(Mu)}dt(),sr()}},ye=8,lr=async Q=>{for(let ke=Q;ke>=0;ke--)if(F.has(ke)){if(ee||Q-ke<=ye)return ke;break}let G=Q;for(;G>=0&&!D;){let ke=Math.max(0,G-ye+1);await Z(ke,G);for(let we=G;we>=ke;we--)if(F.has(we))return we;if(ke===0)return 0;G=ke-1}return 0},io=Q=>{let G=Q;for(;W.has(G+1);)G++;return G};return(async()=>{for(;!D&&!L.getState().controller;)await new Promise(Q=>setTimeout(Q,30));for(;!D;){let Q=_e.current;if(W.size>=Q.length)break;let G=L.getState();if(G.pendingSeek!=null&&G.controller){if(!de(G.pendingSeek)){let we=O(G.pendingSeek+G.offset),uo=await lr(we);await Z(uo,we)}sr();continue}if((G.status==="playing"||G.status==="buffering")&&!de(G.currentTime)){let we=O(G.currentTime+G.offset),uo=await lr(we);await Z(uo,we),sr();continue}let ke=O(G.currentTime+G.offset);if(W.has(ke)){let we=io(ke);if(we<Q.length-1){await Z(we+1,we+1);continue}}await new Promise(we=>setTimeout(we,200))}D||sr()})(),()=>{D=!0,L.getState()._setLoaderProbes(null,null)}},[g,T]),(0,X.useEffect)(()=>{if(!g||!T)return;let D=!1,W=async()=>{let ee=L.getState().controller;if(!(!ee||D))try{let O=await Xk(e,ma,I.current,re.current);if(D)return;if(I.current=O.maxSeq,O.newRrwebEvents.length){let ne=ee.appendEvents(O.newRrwebEvents);L.setState({durationMs:ne,bufferedMs:ne}),L.getState().following&&(ee.seek(ne),L.setState({currentTime:ne}))}if(O.newEvents.length){re.current=O.newEvents.reduce((dt,sr)=>Math.max(dt,sr.t),re.current);let ne=[...L.getState().events,...O.newEvents];L.setState({events:ne,markers:Us(ne)})}let de=O.summary.lastEventAt??0;de&&Date.now()-de>4e4&&(L.setState({live:!1,following:!1}),D=!0)}catch{}};W();let F=setInterval(()=>{W()},1e3);return()=>{D=!0,clearInterval(F)}},[g,T]),(0,X.useEffect)(()=>{let D=L.getState().controller;D&&requestAnimationFrame(()=>D.fit())},[pa,Nr,L]),(0,X.useEffect)(()=>{let D=k.current;if(!D)return;let W=F=>{let ee=F.target;if(ee&&(ee.tagName==="INPUT"||ee.tagName==="TEXTAREA"||ee.isContentEditable))return;let O=L.getState();if((F.metaKey||F.ctrlKey)&&(F.key==="k"||F.key==="K")){F.preventDefault(),O.openPalette(!O.paletteOpen);return}if(!(F.metaKey||F.ctrlKey))switch(F.key){case" ":case"k":F.preventDefault(),O.toggle();break;case"r":O.restart();break;case"ArrowLeft":F.preventDefault(),O.seek(O.currentTime-1e4);break;case"ArrowRight":F.preventDefault(),O.seek(O.currentTime+1e4);break;case"[":O.jumpEvent(-1);break;case"]":O.jumpEvent(1);break;case",":F.shiftKey?Gs(-1):O.step(-1);break;case".":F.shiftKey?Gs(1):O.step(1);break;case"s":case"S":F.shiftKey?O.setAutoSkim(!O.autoSkim):O.setAutoSkip(!O.autoSkip);break;case"l":case"L":O.setLoop(!O.loop);break;case"f":case"F":mm.current&&ku();break;case"c":case"C":h?.(O.currentTime+O.offset);break;case"n":case"N":F.preventDefault(),O.nextProblem(F.shiftKey?-1:1);break;case"e":case"E":{let de=["all","network","console","error","signal","task","nav"],ne=de.indexOf(O.feedFilter);O.setFeedFilter(de[(ne+1)%de.length]);break}case"z":case"Z":F.shiftKey?O.zoomStack.length&&O.zoomOutTo(O.zoomStack.length-1):O.selectionRange&&O.zoomTo(O.selectionRange[0],O.selectionRange[1]);break;case"x":case"X":O.toggleSnap();break;case"t":case"T":O.setFocusMode(O.focusMode==="stage"?"balanced":"stage");break;case"d":case"D":O.setFocusMode(O.focusMode==="debug"?"balanced":"debug");break;case"`":Cr(de=>de+1),Nr==="mid"&&Re(de=>!de);break;case">":Gs(1);break;case"<":Gs(-1);break;case"?":it(de=>!de);break;case"Escape":O.paletteOpen?O.openPalette(!1):O.selectedEventId?O.select(null):O.zoomStack.length?O.zoomOutTo(O.zoomStack.length-1):Ye?it(!1):K&&Re(!1);break;default:break}};return D.addEventListener("keydown",W),()=>D.removeEventListener("keydown",W)},[Nr,Ye,K]);let Gs=(0,X.useCallback)(D=>{let W=L.getState(),F=[.5,1,1.5,2,4,8],ee=F.indexOf(W.speed),O=F[Math.min(F.length-1,Math.max(0,ee+D))]??W.speed;W.setSpeed(O)},[L]),ku=(0,X.useCallback)(()=>{let D=k.current;D&&(document.fullscreenElement?document.exitFullscreen?.().catch(()=>{}):D.requestFullscreen?.().catch(()=>{}))},[]);(0,X.useEffect)(()=>{let D=()=>En(!!document.fullscreenElement);return document.addEventListener("fullscreenchange",D),()=>document.removeEventListener("fullscreenchange",D)},[]),(0,X.useEffect)(()=>{if(!f)return;let D=-1;return L.subscribe(W=>{W.currentTime!==D&&(D=W.currentTime,f(W.currentTime+W.offset))})},[f,L]),(0,X.useEffect)(()=>{if(Nr!=="mid"){Re(!1);return}return L.subscribe((D,W)=>{D.selectedEventId&&D.selectedEventId!==W.selectedEventId&&Re(!0)})},[Nr,L]);let gm=x,Xs=Nr==="wide"&&pa!=="stage",xm=pa==="stage"?null:Lu,Qb=xm!=null?{...gm??{},gridTemplateRows:`48px auto minmax(0, 1fr) ${xm}px`}:gm,Yb=Xs&&ge!=null?{gridTemplateColumns:`minmax(0, 1fr) ${ge}px`}:void 0;return(0,Ve.jsxs)("div",{ref:k,className:`lum-root lum lum-pl lum-strata lum-strata--${Nr} lum-strata--${pa} ${v?"lum-pl--embedded":""} ${S??""}`,style:Qb,"data-breakpoint":Nr,"data-focus":pa,tabIndex:0,children:[(0,Ve.jsx)(iI,{isFullscreen:wt,onFullscreen:ku,allowFullscreen:Vs,sessionId:e,shareUrl:Kb,apiBaseUrl:t,onHelp:()=>it(D=>!D),onBack:m,backLabel:y,topbarActions:b}),(0,Ve.jsx)(pI,{}),(0,Ve.jsxs)("div",{className:"lum-st-stagerow",ref:ut,style:Yb,children:[(0,Ve.jsx)("div",{className:"lum-st-stagecol",ref:N,children:(0,Ve.jsx)(mI,{ref:_,onRetry:()=>br(D=>D+1),overlay:(0,Ve.jsx)(vI,{stageRef:_})})}),Xs&&(0,Ve.jsxs)("div",{className:"lum-st-inspectorcol",children:[(0,Ve.jsx)("div",{className:"lum-st-resize lum-st-resize--x",role:"separator","aria-orientation":"vertical","aria-label":"Resize inspector width",title:"Drag to resize \xB7 double-click to reset",onPointerDown:Gb,onDoubleClick:()=>fa(null)}),(0,Ve.jsx)(db,{feedFocusKey:Sr})]})]}),(0,Ve.jsx)(M_,{breakpoint:Nr,isFullscreen:wt,onFullscreen:ku,allowFullscreen:Vs,onResizeStart:pa==="stage"?void 0:Xb,onResizeReset:()=>pm(null)}),!Xs&&(0,Ve.jsx)(Kc,{open:K,onClose:()=>Re(!1),title:"Inspector",children:(0,Ve.jsx)(db,{feedFocusKey:Sr})}),!Xs&&!K&&(0,Ve.jsx)("button",{className:"lum-st-inspectortab",onClick:()=>Re(!0),"aria-label":"Open inspector (`)",children:"Inspector"}),(0,Ve.jsx)(R_,{}),(0,Ve.jsx)(N_,{open:Ye,onClose:()=>it(!1)})]})}var zb=B(ce(),1);function fm({theme:e,className:t,children:r}){let n=typeof e=="string"?e:void 0,a=e&&typeof e=="object"?e:void 0;return(0,zb.jsx)("div",{className:`lum-root lum lum-widget ${t??""}`,"data-lum-theme":n,style:a,children:r})}var ca=B(ce(),1);function A_(e,t){return e?{authorization:`Bearer ${e}`}:t?{authorization:`Bearer ${t}`,"x-obsrviq-key":t}:{}}function D_(e,t){let{apiBaseUrl:r,token:n,apiKey:a,userId:o,siteId:s,clip:l}=t,[i,d]=(0,Yr.useState)({sessionId:null,loading:e,error:null,notFound:!1}),u=JSON.stringify([o,s,l?.fromUtc,l?.toUtc,l?.fromEvent,l?.toEvent]);return(0,Yr.useEffect)(()=>{if(!e||!o)return;let p=new AbortController;d({sessionId:null,loading:!0,error:null,notFound:!1});let c=new URLSearchParams({userId:o});s&&c.set("siteId",s),l?.fromUtc!=null&&l?.toUtc!=null?(c.set("fromUtc",String(l.fromUtc)),c.set("toUtc",String(l.toUtc))):l?.fromEvent&&(c.set("fromEvent",l.fromEvent),l.toEvent&&c.set("toEvent",l.toEvent));let f=r.replace(/\/$/,"");return fetch(`${f}/v1/sessions/locate?${c.toString()}`,{headers:A_(n,a),signal:p.signal}).then(async h=>{if(!h.ok){let m=h.status===404;throw Object.assign(new Error(m?"No matching recording for that user.":`Lookup failed (${h.status}).`),{notFound:m})}return h.json()}).then(h=>{p.signal.aborted||d({sessionId:h.sessionId,loading:!1,error:null,notFound:!1})}).catch(h=>{if(p.signal.aborted)return;let m=!!h?.notFound;d({sessionId:null,loading:!1,error:h instanceof Error?h.message:"Lookup failed.",notFound:m})}),()=>p.abort()},[e,u,r]),i}var O_={display:"flex",alignItems:"center",justifyContent:"center",height:"100%",padding:16,textAlign:"center",color:"var(--lum-muted)",fontSize:14};function Ub({sessionId:e,userId:t,siteId:r,apiBaseUrl:n,apiKey:a,token:o,theme:s,startAtMs:l,clip:i,defaultMode:d,allowedModes:u,defaultSpeed:p,allowFullscreen:c,shareUrl:f,onEnded:h,onError:m,fallback:y="message",height:g=560}){let x=!e&&!!t,v=D_(x,{apiBaseUrl:n,token:o,apiKey:a,userId:t,siteId:r,clip:i}),[S,b]=(0,Yr.useState)(null),w=e??v.sessionId;(0,Yr.useEffect)(()=>b(null),[w]);let C=(0,Yr.useRef)(null);if((0,Yr.useEffect)(()=>{let L=null;!e&&!t?L={reason:"error",message:"Provide a sessionId or a userId."}:v.error?L={reason:v.notFound?"not_found":"error",message:v.error}:S&&(L=S),L?C.current!==L.message&&(C.current=L.message,m?.(L)):C.current=null},[e,t,v.error,v.notFound,S]),!w){if(y==="hide")return null;let L=!e&&!t?"Provide a sessionId or a userId to play a recording.":x&&v.loading?"Finding the recording\u2026":v.error??"Recording unavailable.";return(0,ca.jsx)(fm,{theme:s,className:"lum-widget--replay",children:(0,ca.jsx)("div",{style:{height:g},children:(0,ca.jsx)("div",{style:O_,children:L})})})}return S&&y==="hide"?null:(0,ca.jsx)(fm,{theme:s,className:"lum-widget--replay",children:(0,ca.jsx)("div",{style:{height:g},children:(0,ca.jsx)(Bb,{sessionId:w,apiBaseUrl:n,apiKey:a,token:o,startAtMs:l,clip:i,defaultMode:d,allowedModes:u,defaultSpeed:p,allowFullscreen:c,shareUrl:f,onEnded:h,onError:L=>b(L),embedded:!0})})})}var qb=`/* Obsrviq design tokens (\xA716) \u2014 refined. Override any --lum-* var to white-label.
|
|
141
142
|
All neutrals carry a faint cool-blue hue (~232\xB0) for identity; the accent is a
|
|
142
143
|
confident iris reserved for live / now / active + primary CTA. */
|
|
143
144
|
:root,
|
|
@@ -1891,6 +1892,35 @@ or you can use record.mirror to access the mirror instance during recording.`,wy
|
|
|
1891
1892
|
overflow: hidden;
|
|
1892
1893
|
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
|
|
1893
1894
|
}
|
|
1895
|
+
/* WebSocket connection: a thin lifetime line with per-frame ticks (send/recv). */
|
|
1896
|
+
.lum-wf__bar--ws {
|
|
1897
|
+
top: 12px;
|
|
1898
|
+
height: 4px;
|
|
1899
|
+
box-shadow: none;
|
|
1900
|
+
border-radius: 2px;
|
|
1901
|
+
background: color-mix(in srgb, var(--lum-info) 55%, transparent);
|
|
1902
|
+
}
|
|
1903
|
+
.lum-wf__bar--ws.lum-wf__bar--default {
|
|
1904
|
+
background: color-mix(in srgb, var(--lum-faint) 60%, transparent);
|
|
1905
|
+
}
|
|
1906
|
+
.lum-wf__bar--ws.lum-wf__bar--error {
|
|
1907
|
+
background: color-mix(in srgb, var(--lum-error) 60%, transparent);
|
|
1908
|
+
}
|
|
1909
|
+
.lum-wf__wsframe {
|
|
1910
|
+
position: absolute;
|
|
1911
|
+
top: 8px;
|
|
1912
|
+
width: 2px;
|
|
1913
|
+
height: 12px;
|
|
1914
|
+
border-radius: 1px;
|
|
1915
|
+
transform: translateX(-1px);
|
|
1916
|
+
pointer-events: none;
|
|
1917
|
+
}
|
|
1918
|
+
.lum-wf__wsframe--send {
|
|
1919
|
+
background: var(--lum-accent);
|
|
1920
|
+
}
|
|
1921
|
+
.lum-wf__wsframe--recv {
|
|
1922
|
+
background: var(--lum-ok);
|
|
1923
|
+
}
|
|
1894
1924
|
.lum-wf__seg {
|
|
1895
1925
|
display: block;
|
|
1896
1926
|
min-width: 0;
|
|
@@ -2152,11 +2182,102 @@ or you can use record.mirror to access the mirror instance during recording.`,wy
|
|
|
2152
2182
|
height: 40px;
|
|
2153
2183
|
border-bottom: 1px solid var(--lum-border);
|
|
2154
2184
|
}
|
|
2185
|
+
.lum-st-overview__labelwrap {
|
|
2186
|
+
display: inline-flex;
|
|
2187
|
+
align-items: center;
|
|
2188
|
+
gap: 4px;
|
|
2189
|
+
}
|
|
2155
2190
|
.lum-st-overview__label {
|
|
2156
2191
|
font-size: 10px;
|
|
2157
2192
|
letter-spacing: 0.08em;
|
|
2158
2193
|
font-weight: 600;
|
|
2159
2194
|
}
|
|
2195
|
+
.lum-st-overview__i-wrap {
|
|
2196
|
+
position: relative;
|
|
2197
|
+
display: inline-flex;
|
|
2198
|
+
align-items: center;
|
|
2199
|
+
}
|
|
2200
|
+
.lum-st-overview__i {
|
|
2201
|
+
color: var(--lum-muted);
|
|
2202
|
+
opacity: 0.55;
|
|
2203
|
+
cursor: help;
|
|
2204
|
+
}
|
|
2205
|
+
.lum-st-overview__i-wrap:hover .lum-st-overview__i {
|
|
2206
|
+
opacity: 0.9;
|
|
2207
|
+
}
|
|
2208
|
+
/* \u24D8 legend + explanation popover (opens above the icon) */
|
|
2209
|
+
.lum-st-overview__legend-pop {
|
|
2210
|
+
position: absolute;
|
|
2211
|
+
bottom: calc(100% + 8px);
|
|
2212
|
+
left: 0;
|
|
2213
|
+
z-index: 30;
|
|
2214
|
+
width: 260px;
|
|
2215
|
+
background: var(--lum-overlay);
|
|
2216
|
+
border: 1px solid var(--lum-border-strong);
|
|
2217
|
+
border-radius: 10px;
|
|
2218
|
+
box-shadow: var(--lum-shadow-lg);
|
|
2219
|
+
padding: 9px 11px;
|
|
2220
|
+
pointer-events: none;
|
|
2221
|
+
}
|
|
2222
|
+
.lum-st-overview__legend-lead {
|
|
2223
|
+
font-size: 11px;
|
|
2224
|
+
line-height: 1.45;
|
|
2225
|
+
color: var(--lum-muted);
|
|
2226
|
+
margin-bottom: 8px;
|
|
2227
|
+
}
|
|
2228
|
+
.lum-st-overview__legend {
|
|
2229
|
+
display: flex;
|
|
2230
|
+
flex-wrap: wrap;
|
|
2231
|
+
gap: 5px 12px;
|
|
2232
|
+
}
|
|
2233
|
+
.lum-st-overview__legend-item {
|
|
2234
|
+
display: inline-flex;
|
|
2235
|
+
align-items: center;
|
|
2236
|
+
gap: 5px;
|
|
2237
|
+
font-size: 11px;
|
|
2238
|
+
color: var(--lum-text);
|
|
2239
|
+
}
|
|
2240
|
+
/* per-bar hover insight (opens above the hovered bar) */
|
|
2241
|
+
.lum-st-overview__tip {
|
|
2242
|
+
position: absolute;
|
|
2243
|
+
bottom: calc(100% + 6px);
|
|
2244
|
+
transform: translateX(-50%);
|
|
2245
|
+
z-index: 30;
|
|
2246
|
+
background: var(--lum-overlay);
|
|
2247
|
+
border: 1px solid var(--lum-border-strong);
|
|
2248
|
+
border-radius: 8px;
|
|
2249
|
+
box-shadow: var(--lum-shadow-lg);
|
|
2250
|
+
padding: 6px 9px;
|
|
2251
|
+
pointer-events: none;
|
|
2252
|
+
white-space: nowrap;
|
|
2253
|
+
}
|
|
2254
|
+
.lum-st-overview__tip-time {
|
|
2255
|
+
font-size: 11px;
|
|
2256
|
+
font-family: var(--lum-font-mono);
|
|
2257
|
+
color: var(--lum-muted);
|
|
2258
|
+
margin-bottom: 3px;
|
|
2259
|
+
}
|
|
2260
|
+
.lum-st-overview__tip-list {
|
|
2261
|
+
list-style: none;
|
|
2262
|
+
margin: 0;
|
|
2263
|
+
padding: 0;
|
|
2264
|
+
display: flex;
|
|
2265
|
+
flex-direction: column;
|
|
2266
|
+
gap: 2px;
|
|
2267
|
+
}
|
|
2268
|
+
.lum-st-overview__tip-list li {
|
|
2269
|
+
display: flex;
|
|
2270
|
+
align-items: center;
|
|
2271
|
+
gap: 6px;
|
|
2272
|
+
font-size: 12px;
|
|
2273
|
+
color: var(--lum-text);
|
|
2274
|
+
}
|
|
2275
|
+
.lum-st-overview__tip-dot {
|
|
2276
|
+
width: 7px;
|
|
2277
|
+
height: 7px;
|
|
2278
|
+
border-radius: 2px;
|
|
2279
|
+
flex: none;
|
|
2280
|
+
}
|
|
2160
2281
|
.lum-st-overview__spark {
|
|
2161
2282
|
position: relative;
|
|
2162
2283
|
flex: 1;
|
|
@@ -2373,6 +2494,19 @@ or you can use record.mirror to access the mirror instance during recording.`,wy
|
|
|
2373
2494
|
.lum-st-rail.is-muted {
|
|
2374
2495
|
opacity: 0.4;
|
|
2375
2496
|
}
|
|
2497
|
+
/* Collapsed rail must match the collapsed track height (.lum-st-lane--collapsed,
|
|
2498
|
+
16px) or the taller rail dictates the row and nothing visibly reduces. Drop the
|
|
2499
|
+
solo/mute controls to fit the shorter row; the chevron + label + count remain. */
|
|
2500
|
+
.lum-st-rail.is-collapsed {
|
|
2501
|
+
height: 16px;
|
|
2502
|
+
font-size: 11px;
|
|
2503
|
+
}
|
|
2504
|
+
.lum-st-rail.is-collapsed .lum-st-rail__collapse {
|
|
2505
|
+
padding: 0;
|
|
2506
|
+
}
|
|
2507
|
+
.lum-st-rail.is-collapsed .lum-st-rail__ctrls {
|
|
2508
|
+
display: none;
|
|
2509
|
+
}
|
|
2376
2510
|
.lum-st-rail__collapse {
|
|
2377
2511
|
background: transparent;
|
|
2378
2512
|
border: none;
|
|
@@ -2945,6 +3079,147 @@ or you can use record.mirror to access the mirror instance during recording.`,wy
|
|
|
2945
3079
|
border-radius: 2px;
|
|
2946
3080
|
}
|
|
2947
3081
|
|
|
3082
|
+
/* Network body \u2014 DevTools-style JSON tree + Parsed/Raw toggle */
|
|
3083
|
+
.lum-pl-body__head {
|
|
3084
|
+
display: flex;
|
|
3085
|
+
align-items: center;
|
|
3086
|
+
justify-content: space-between;
|
|
3087
|
+
gap: 8px;
|
|
3088
|
+
}
|
|
3089
|
+
.lum-pl-seg {
|
|
3090
|
+
display: inline-flex;
|
|
3091
|
+
border: 1px solid var(--lum-border);
|
|
3092
|
+
border-radius: var(--lum-radius-sm);
|
|
3093
|
+
overflow: hidden;
|
|
3094
|
+
}
|
|
3095
|
+
.lum-pl-seg__btn {
|
|
3096
|
+
background: transparent;
|
|
3097
|
+
border: none;
|
|
3098
|
+
color: var(--lum-muted);
|
|
3099
|
+
font-size: 11px;
|
|
3100
|
+
padding: 2px 9px;
|
|
3101
|
+
cursor: pointer;
|
|
3102
|
+
}
|
|
3103
|
+
.lum-pl-seg__btn.is-active {
|
|
3104
|
+
background: var(--lum-accent-soft);
|
|
3105
|
+
color: var(--lum-accent);
|
|
3106
|
+
}
|
|
3107
|
+
.lum-jt {
|
|
3108
|
+
background: var(--lum-bg);
|
|
3109
|
+
border: 1px solid var(--lum-border);
|
|
3110
|
+
border-radius: var(--lum-radius-sm);
|
|
3111
|
+
padding: 6px 8px;
|
|
3112
|
+
margin: 4px 0;
|
|
3113
|
+
overflow: auto;
|
|
3114
|
+
max-height: 340px;
|
|
3115
|
+
font-size: 12px;
|
|
3116
|
+
line-height: 1.55;
|
|
3117
|
+
}
|
|
3118
|
+
.lum-jt__row {
|
|
3119
|
+
border-radius: 3px;
|
|
3120
|
+
}
|
|
3121
|
+
.lum-jt__branch {
|
|
3122
|
+
cursor: pointer;
|
|
3123
|
+
}
|
|
3124
|
+
.lum-jt__branch:hover {
|
|
3125
|
+
background: var(--lum-surface-2);
|
|
3126
|
+
}
|
|
3127
|
+
.lum-jt__caret {
|
|
3128
|
+
display: inline-block;
|
|
3129
|
+
width: 12px;
|
|
3130
|
+
color: var(--lum-faint);
|
|
3131
|
+
user-select: none;
|
|
3132
|
+
}
|
|
3133
|
+
.lum-jt__key {
|
|
3134
|
+
color: var(--lum-accent);
|
|
3135
|
+
margin-right: 6px;
|
|
3136
|
+
}
|
|
3137
|
+
.lum-jt__str {
|
|
3138
|
+
color: var(--lum-ok);
|
|
3139
|
+
word-break: break-all;
|
|
3140
|
+
}
|
|
3141
|
+
.lum-jt__num {
|
|
3142
|
+
color: var(--lum-info);
|
|
3143
|
+
}
|
|
3144
|
+
.lum-jt__bool {
|
|
3145
|
+
color: var(--lum-warn);
|
|
3146
|
+
}
|
|
3147
|
+
.lum-jt__null {
|
|
3148
|
+
color: var(--lum-faint);
|
|
3149
|
+
}
|
|
3150
|
+
.lum-jt__punc {
|
|
3151
|
+
color: var(--lum-muted);
|
|
3152
|
+
}
|
|
3153
|
+
.lum-jt__preview {
|
|
3154
|
+
color: var(--lum-faint);
|
|
3155
|
+
font-style: italic;
|
|
3156
|
+
}
|
|
3157
|
+
|
|
3158
|
+
/* WebSocket rows + Messages view */
|
|
3159
|
+
.lum-pl-ws__dot {
|
|
3160
|
+
display: inline-block;
|
|
3161
|
+
width: 6px;
|
|
3162
|
+
height: 6px;
|
|
3163
|
+
border-radius: 50%;
|
|
3164
|
+
background: var(--lum-info);
|
|
3165
|
+
margin-right: 5px;
|
|
3166
|
+
vertical-align: middle;
|
|
3167
|
+
}
|
|
3168
|
+
.lum-pl-ws__bar {
|
|
3169
|
+
opacity: 0.55;
|
|
3170
|
+
background-image: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 10px);
|
|
3171
|
+
}
|
|
3172
|
+
.lum-pl-ws-msgs {
|
|
3173
|
+
display: flex;
|
|
3174
|
+
flex-direction: column;
|
|
3175
|
+
gap: 1px;
|
|
3176
|
+
margin-top: 4px;
|
|
3177
|
+
}
|
|
3178
|
+
.lum-pl-ws-frame {
|
|
3179
|
+
border-radius: 5px;
|
|
3180
|
+
overflow: hidden;
|
|
3181
|
+
}
|
|
3182
|
+
.lum-pl-ws-frame--send {
|
|
3183
|
+
background: color-mix(in srgb, var(--lum-accent) 7%, transparent);
|
|
3184
|
+
}
|
|
3185
|
+
.lum-pl-ws-frame__head {
|
|
3186
|
+
width: 100%;
|
|
3187
|
+
display: grid;
|
|
3188
|
+
grid-template-columns: 16px 62px 1fr auto;
|
|
3189
|
+
gap: 8px;
|
|
3190
|
+
align-items: center;
|
|
3191
|
+
text-align: left;
|
|
3192
|
+
background: transparent;
|
|
3193
|
+
border: none;
|
|
3194
|
+
color: var(--lum-text);
|
|
3195
|
+
padding: 4px 7px;
|
|
3196
|
+
cursor: pointer;
|
|
3197
|
+
font-size: 12px;
|
|
3198
|
+
}
|
|
3199
|
+
.lum-pl-ws-frame__head:disabled {
|
|
3200
|
+
cursor: default;
|
|
3201
|
+
}
|
|
3202
|
+
.lum-pl-ws-frame__head:not(:disabled):hover {
|
|
3203
|
+
background: var(--lum-surface-2);
|
|
3204
|
+
}
|
|
3205
|
+
.lum-pl-ws-frame__dir {
|
|
3206
|
+
font-size: 10px;
|
|
3207
|
+
}
|
|
3208
|
+
.lum-pl-ws-frame__dir.is-send {
|
|
3209
|
+
color: var(--lum-accent);
|
|
3210
|
+
}
|
|
3211
|
+
.lum-pl-ws-frame__dir.is-recv {
|
|
3212
|
+
color: var(--lum-ok);
|
|
3213
|
+
}
|
|
3214
|
+
.lum-pl-ws-frame__data {
|
|
3215
|
+
overflow: hidden;
|
|
3216
|
+
text-overflow: ellipsis;
|
|
3217
|
+
white-space: nowrap;
|
|
3218
|
+
}
|
|
3219
|
+
.lum-pl-ws-frame__body {
|
|
3220
|
+
padding: 2px 8px 8px 32px;
|
|
3221
|
+
}
|
|
3222
|
+
|
|
2948
3223
|
/* Network detail (reused verbatim by Inspector \u2192 NetworkDetail) */
|
|
2949
3224
|
.lum-pl-detail__head {
|
|
2950
3225
|
font-size: 13px;
|
|
@@ -3002,12 +3277,26 @@ or you can use record.mirror to access the mirror instance during recording.`,wy
|
|
|
3002
3277
|
}
|
|
3003
3278
|
.lum-pl-timing__row {
|
|
3004
3279
|
display: grid;
|
|
3005
|
-
grid-template-columns:
|
|
3280
|
+
grid-template-columns: 92px 1fr 64px;
|
|
3006
3281
|
gap: 8px;
|
|
3007
3282
|
align-items: center;
|
|
3008
3283
|
padding: 3px 0;
|
|
3009
3284
|
font-size: 12px;
|
|
3010
3285
|
}
|
|
3286
|
+
.lum-pl-timing__label {
|
|
3287
|
+
display: inline-flex;
|
|
3288
|
+
align-items: center;
|
|
3289
|
+
gap: 4px;
|
|
3290
|
+
}
|
|
3291
|
+
.lum-pl-timing__i {
|
|
3292
|
+
flex: none;
|
|
3293
|
+
opacity: 0.45;
|
|
3294
|
+
cursor: help;
|
|
3295
|
+
vertical-align: middle;
|
|
3296
|
+
}
|
|
3297
|
+
.lum-pl-timing__i:hover {
|
|
3298
|
+
opacity: 0.85;
|
|
3299
|
+
}
|
|
3011
3300
|
.lum-pl-timing__bar {
|
|
3012
3301
|
background: var(--lum-surface-2);
|
|
3013
3302
|
height: 8px;
|
|
@@ -3292,21 +3581,43 @@ or you can use record.mirror to access the mirror instance during recording.`,wy
|
|
|
3292
3581
|
width: 240px;
|
|
3293
3582
|
height: 100%;
|
|
3294
3583
|
}
|
|
3295
|
-
/* Tap ripple
|
|
3296
|
-
.lum-mob-
|
|
3584
|
+
/* Tap ripple \u2014 small + quick, so it reads as a precise touch, not a blob. */
|
|
3585
|
+
.lum-mob-tap {
|
|
3297
3586
|
position: absolute;
|
|
3298
|
-
width:
|
|
3299
|
-
height:
|
|
3300
|
-
margin: -
|
|
3587
|
+
width: 18px;
|
|
3588
|
+
height: 18px;
|
|
3589
|
+
margin: -9px 0 0 -9px;
|
|
3301
3590
|
border-radius: 50%;
|
|
3302
|
-
background: rgba(
|
|
3303
|
-
box-shadow: 0 0 0
|
|
3591
|
+
background: rgba(129, 140, 248, 0.26);
|
|
3592
|
+
box-shadow: 0 0 0 1.5px rgba(129, 140, 248, 0.9) inset, 0 0 10px rgba(129, 140, 248, 0.5);
|
|
3593
|
+
pointer-events: none;
|
|
3594
|
+
animation: lum-mob-tap 0.42s ease-out forwards;
|
|
3595
|
+
}
|
|
3596
|
+
@keyframes lum-mob-tap {
|
|
3597
|
+
from { transform: scale(0.35); opacity: 0.95; }
|
|
3598
|
+
60% { opacity: 0.7; }
|
|
3599
|
+
to { transform: scale(1.15); opacity: 0; }
|
|
3600
|
+
}
|
|
3601
|
+
/* Swipe streak \u2014 a soft glowing comet tracing the finger's recent path (per-segment fade
|
|
3602
|
+
set inline). Non-scaling strokes keep a constant visual weight across device sizes. */
|
|
3603
|
+
.lum-mob-swipe {
|
|
3604
|
+
position: absolute;
|
|
3605
|
+
inset: 0;
|
|
3606
|
+
width: 100%;
|
|
3607
|
+
height: 100%;
|
|
3304
3608
|
pointer-events: none;
|
|
3305
|
-
|
|
3609
|
+
overflow: visible;
|
|
3306
3610
|
}
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3611
|
+
.lum-mob-swipe__seg {
|
|
3612
|
+
stroke: rgba(129, 140, 248, 0.95);
|
|
3613
|
+
stroke-width: 3.5;
|
|
3614
|
+
stroke-linecap: round;
|
|
3615
|
+
filter: drop-shadow(0 0 3px rgba(129, 140, 248, 0.65));
|
|
3616
|
+
}
|
|
3617
|
+
.lum-mob-swipe__head {
|
|
3618
|
+
fill: #c7d2fe;
|
|
3619
|
+
stroke: rgba(129, 140, 248, 0.95);
|
|
3620
|
+
filter: drop-shadow(0 0 5px rgba(129, 140, 248, 0.9));
|
|
3310
3621
|
}
|
|
3311
3622
|
|
|
3312
3623
|
/* Synced structured-event feed. */
|
|
@@ -3328,6 +3639,116 @@ or you can use record.mirror to access the mirror instance during recording.`,wy
|
|
|
3328
3639
|
color: var(--lum-muted);
|
|
3329
3640
|
border-bottom: 1px solid var(--lum-border);
|
|
3330
3641
|
}
|
|
3642
|
+
/* Feed / Network tabs */
|
|
3643
|
+
.lum-mob-feed__tabs { display: flex; border-bottom: 1px solid var(--lum-border); flex: none; }
|
|
3644
|
+
.lum-mob-feed__tab {
|
|
3645
|
+
flex: 1; padding: 9px 0; background: none; border: 0; cursor: pointer;
|
|
3646
|
+
font-size: 11.5px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
|
|
3647
|
+
color: var(--lum-muted); border-bottom: 2px solid transparent;
|
|
3648
|
+
}
|
|
3649
|
+
.lum-mob-feed__tab:hover { color: var(--lum-text-2); }
|
|
3650
|
+
.lum-mob-feed__tab.is-active { color: var(--lum-text); border-bottom-color: var(--lum-accent); }
|
|
3651
|
+
|
|
3652
|
+
/* Network waterfall + inspector \u2014 modelled on the web NetworkPanel. */
|
|
3653
|
+
.lum-mob-net { display: flex; flex-direction: column; flex: 1; min-height: 0; font-size: 12px; }
|
|
3654
|
+
.lum-mob-net__empty { padding: 18px 14px; color: var(--lum-muted); font-size: 12.5px; }
|
|
3655
|
+
|
|
3656
|
+
.lum-mob-net__toolbar {
|
|
3657
|
+
display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; flex: none;
|
|
3658
|
+
border-bottom: 1px solid var(--lum-border);
|
|
3659
|
+
}
|
|
3660
|
+
.lum-mob-net__chips { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
|
|
3661
|
+
.lum-mob-net__chip {
|
|
3662
|
+
padding: 2px 9px; border-radius: 999px; cursor: pointer; font-size: 11px; font-weight: 600;
|
|
3663
|
+
color: var(--lum-muted); background: var(--lum-raised); border: 1px solid transparent;
|
|
3664
|
+
}
|
|
3665
|
+
.lum-mob-net__chip:hover { color: var(--lum-text-2); }
|
|
3666
|
+
.lum-mob-net__chip.is-active { color: var(--lum-text); background: var(--lum-surface); border-color: var(--lum-accent); }
|
|
3667
|
+
.lum-mob-net__follow {
|
|
3668
|
+
margin-left: auto; display: inline-flex; align-items: center; gap: 4px;
|
|
3669
|
+
font-size: 11px; color: var(--lum-muted); cursor: pointer;
|
|
3670
|
+
}
|
|
3671
|
+
.lum-mob-net__search {
|
|
3672
|
+
width: 100%; padding: 4px 8px; border-radius: 6px; font-size: 12px;
|
|
3673
|
+
background: var(--lum-bg); border: 1px solid var(--lum-border); color: var(--lum-text);
|
|
3674
|
+
}
|
|
3675
|
+
|
|
3676
|
+
.lum-mob-net__rows { overflow-y: auto; flex: 1; min-height: 0; padding: 2px 0; }
|
|
3677
|
+
.lum-mob-net__row {
|
|
3678
|
+
display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left;
|
|
3679
|
+
padding: 7px 10px 8px; background: none; border: 0; border-bottom: 1px solid var(--lum-border);
|
|
3680
|
+
cursor: pointer; color: var(--lum-text); border-left: 2px solid transparent;
|
|
3681
|
+
}
|
|
3682
|
+
.lum-mob-net__row:hover { background: var(--lum-raised); }
|
|
3683
|
+
.lum-mob-net__row.is-active { background: var(--lum-raised); border-left-color: var(--lum-accent); }
|
|
3684
|
+
.lum-mob-net__rowtop { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 7px; align-items: center; }
|
|
3685
|
+
.lum-mob-net__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--lum-text); }
|
|
3686
|
+
.lum-mob-net__method { font-size: 10.5px; font-weight: 700; color: var(--lum-muted); }
|
|
3687
|
+
.lum-mob-net__time { font-size: 11px; color: var(--lum-muted); font-variant-numeric: tabular-nums; }
|
|
3688
|
+
/* Timeline-positioned waterfall bar (start offset + duration over the whole session). */
|
|
3689
|
+
.lum-mob-net__wf { position: relative; display: block; height: 4px; border-radius: 2px; background: var(--lum-raised); }
|
|
3690
|
+
.lum-mob-net__bar { position: absolute; top: 0; height: 100%; min-width: 2px; border-radius: 2px; background: var(--lum-accent); }
|
|
3691
|
+
.lum-mob-net__bar--error { background: var(--lum-error); }
|
|
3692
|
+
.lum-mob-net__bar--warn { background: #d97706; }
|
|
3693
|
+
.lum-mob-net__bar--info { background: #3b82f6; }
|
|
3694
|
+
.lum-mob-net__bar--default { background: #1f9d55; }
|
|
3695
|
+
|
|
3696
|
+
.lum-mob-net__footer {
|
|
3697
|
+
flex: none; padding: 6px 10px; font-size: 11px; color: var(--lum-muted);
|
|
3698
|
+
border-top: 1px solid var(--lum-border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
|
3699
|
+
}
|
|
3700
|
+
|
|
3701
|
+
/* Console rows \u2014 reuse the web ConsoleArgs renderer, with a compact time/jump header. */
|
|
3702
|
+
.lum-mob-crow { padding: 5px 10px 6px; border-bottom: 1px solid var(--lum-border); border-left: 2px solid transparent; }
|
|
3703
|
+
.lum-mob-crow.is-active { background: var(--lum-raised); border-left-color: var(--lum-accent); }
|
|
3704
|
+
.lum-mob-crow__t { display: inline-block; margin-bottom: 2px; padding: 0; background: none; border: 0; cursor: pointer; font-size: 10.5px; color: var(--lum-muted); }
|
|
3705
|
+
.lum-mob-crow__t:hover { color: var(--lum-accent); }
|
|
3706
|
+
|
|
3707
|
+
/* Mobile AI panel \u2014 vision-grounded narrative + seekable findings. */
|
|
3708
|
+
.lum-mob-ai { overflow-y: auto; flex: 1; min-height: 0; padding: 10px 12px 14px; font-size: 12.5px; }
|
|
3709
|
+
.lum-mob-ai__msg { padding: 18px 14px; color: var(--lum-muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
|
|
3710
|
+
.lum-mob-ai__cta { padding: 26px 18px; text-align: center; color: var(--lum-muted); display: flex; flex-direction: column; align-items: center; gap: 6px; }
|
|
3711
|
+
.lum-mob-ai__ctatitle { margin: 4px 0 0; font-size: 14px; font-weight: 650; color: var(--lum-text); }
|
|
3712
|
+
.lum-mob-ai__ctasub { margin: 0; font-size: 12px; line-height: 1.5; max-width: 280px; }
|
|
3713
|
+
.lum-mob-ai__ctabtn { margin-top: 8px; padding: 7px 18px; border-radius: 8px; cursor: pointer; font-size: 12.5px; font-weight: 650; color: #fff; background: var(--lum-accent); border: 0; }
|
|
3714
|
+
.lum-mob-ai__ctabtn:hover { filter: brightness(1.06); }
|
|
3715
|
+
.lum-mob-ai__cap { margin-bottom: 8px; padding: 6px 9px; border-radius: 6px; font-size: 11px; color: var(--lum-warn); background: var(--lum-raised); border: 1px solid var(--lum-border); }
|
|
3716
|
+
.lum-mob-ai__retry { padding: 2px 9px; border-radius: 6px; cursor: pointer; font-size: 11px; font-weight: 600; color: var(--lum-accent); background: var(--lum-raised); border: 1px solid var(--lum-border); }
|
|
3717
|
+
.lum-mob-ai__head { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
|
|
3718
|
+
.lum-mob-ai__headline { font-size: 13px; font-weight: 650; color: var(--lum-text); flex: 1; min-width: 0; }
|
|
3719
|
+
.lum-mob-ai__refresh { flex: none; padding: 3px; border-radius: 5px; cursor: pointer; color: var(--lum-muted); background: none; border: 1px solid var(--lum-border); display: inline-flex; }
|
|
3720
|
+
.lum-mob-ai__refresh:hover { color: var(--lum-text); }
|
|
3721
|
+
.lum-mob-ai__narrative { margin: 0 0 12px; color: var(--lum-text-2); line-height: 1.5; }
|
|
3722
|
+
.lum-mob-ai__sec { margin-bottom: 12px; }
|
|
3723
|
+
.lum-mob-ai__sectitle { font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; color: var(--lum-muted); margin-bottom: 5px; }
|
|
3724
|
+
.lum-mob-ai__findings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
|
|
3725
|
+
.lum-mob-ai__finding { display: flex; gap: 8px; padding: 6px; border-radius: 7px; cursor: pointer; }
|
|
3726
|
+
.lum-mob-ai__finding:hover { background: var(--lum-raised); }
|
|
3727
|
+
.lum-mob-ai__dot { flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--lum-muted); }
|
|
3728
|
+
.lum-mob-ai__dot--err { background: var(--lum-error); }
|
|
3729
|
+
.lum-mob-ai__dot--warn { background: #d97706; }
|
|
3730
|
+
.lum-mob-ai__dot--info { background: #3b82f6; }
|
|
3731
|
+
.lum-mob-ai__fbody { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
|
|
3732
|
+
.lum-mob-ai__ftitle { font-weight: 600; color: var(--lum-text); }
|
|
3733
|
+
.lum-mob-ai__ft { font-weight: 400; font-size: 10.5px; color: var(--lum-muted); }
|
|
3734
|
+
.lum-mob-ai__fdetail { font-size: 11.5px; color: var(--lum-text-2); line-height: 1.4; }
|
|
3735
|
+
.lum-mob-ai__screens { display: flex; flex-wrap: wrap; gap: 5px; }
|
|
3736
|
+
.lum-mob-ai__screen { padding: 3px 8px; border-radius: 999px; cursor: pointer; font-size: 11px; color: var(--lum-text-2); background: var(--lum-raised); border: 1px solid var(--lum-border); }
|
|
3737
|
+
.lum-mob-ai__screen:hover { color: var(--lum-text); border-color: var(--lum-accent); }
|
|
3738
|
+
.lum-mob-ai__st { color: var(--lum-muted); }
|
|
3739
|
+
.lum-mob-ai__foot { font-size: 10.5px; color: var(--lum-muted); padding-top: 4px; border-top: 1px solid var(--lum-border); }
|
|
3740
|
+
|
|
3741
|
+
/* Error groups \u2014 compact mirror of the web ErrorsPanel. */
|
|
3742
|
+
.lum-mob-errgrp { padding: 9px 10px; border-bottom: 1px solid var(--lum-border); }
|
|
3743
|
+
.lum-mob-errgrp__head { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
|
|
3744
|
+
.lum-mob-errgrp__name { font-size: 12px; color: var(--lum-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
3745
|
+
.lum-mob-errgrp__jump { margin-left: auto; padding: 0; background: none; border: 0; cursor: pointer; font-size: 10.5px; color: var(--lum-accent); white-space: nowrap; }
|
|
3746
|
+
.lum-mob-errgrp__msg { font-size: 11.5px; color: var(--lum-text-2); word-break: break-word; }
|
|
3747
|
+
.lum-mob-errgrp__stack {
|
|
3748
|
+
margin: 5px 0 0; padding: 7px; border-radius: 6px; max-height: 180px; overflow: auto;
|
|
3749
|
+
font-size: 10.5px; line-height: 1.4; white-space: pre-wrap; word-break: break-all;
|
|
3750
|
+
background: var(--lum-bg); border: 1px solid var(--lum-border); color: var(--lum-muted);
|
|
3751
|
+
}
|
|
3331
3752
|
.lum-mob-feed__list {
|
|
3332
3753
|
list-style: none;
|
|
3333
3754
|
margin: 0;
|
|
@@ -3711,7 +4132,7 @@ or you can use record.mirror to access the mirror instance during recording.`,wy
|
|
|
3711
4132
|
.lum-w-copilot__bar .lum-pl-search {
|
|
3712
4133
|
flex: 1;
|
|
3713
4134
|
}
|
|
3714
|
-
`;var
|
|
4135
|
+
`;var $b="obsrviq-embed-styles";function F_(){if(typeof document>"u"||document.getElementById($b))return;let e=document.createElement("style");e.id=$b,e.textContent=qb,document.head.appendChild(e)}function B_(e){let t=typeof e=="string"?document.querySelector(e):e;if(!t)throw new Error(`ObsrviqReplay.mount: no element matched "${String(e)}"`);return t}function Wb(e,t){let r=B_(e);F_();let n=(0,jb.createRoot)(r);return n.render((0,Hb.createElement)(Ub,t)),{unmount:()=>n.unmount()}}var Vb={mount:Wb};typeof window<"u"&&(window.ObsrviqReplay=Vb);var z_=Vb;return s0(U_);})();
|
|
3715
4136
|
/*! Bundled license information:
|
|
3716
4137
|
|
|
3717
4138
|
react/cjs/react.production.min.js:
|
|
@@ -3787,6 +4208,7 @@ lucide-react/dist/esm/icons/command.js:
|
|
|
3787
4208
|
lucide-react/dist/esm/icons/disc.js:
|
|
3788
4209
|
lucide-react/dist/esm/icons/fast-forward.js:
|
|
3789
4210
|
lucide-react/dist/esm/icons/gauge.js:
|
|
4211
|
+
lucide-react/dist/esm/icons/info.js:
|
|
3790
4212
|
lucide-react/dist/esm/icons/keyboard.js:
|
|
3791
4213
|
lucide-react/dist/esm/icons/link-2.js:
|
|
3792
4214
|
lucide-react/dist/esm/icons/magnet.js:
|