@multiplayer-app/session-recorder-browser 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SessionRecorder=t():e.SessionRecorder=t()}(this,()=>(()=>{var e={"../../node_modules/@opentelemetry/api-logs/build/esm/NoopLogger.js":(e,t,n)=>{"use strict";n.d(t,{NOOP_LOGGER:()=>r,NoopLogger:()=>s});class s{emit(e){}}const r=new s},"../../node_modules/@opentelemetry/api-logs/build/esm/NoopLoggerProvider.js":(e,t,n)=>{"use strict";n.d(t,{NOOP_LOGGER_PROVIDER:()=>r});var s=n("../../node_modules/@opentelemetry/api-logs/build/esm/NoopLogger.js");const r=new class{getLogger(e,t,n){return new s.NoopLogger}}},"../../node_modules/@opentelemetry/api-logs/build/esm/ProxyLogger.js":(e,t,n)=>{"use strict";n.d(t,{ProxyLogger:()=>r});var s=n("../../node_modules/@opentelemetry/api-logs/build/esm/NoopLogger.js");class r{constructor(e,t,n,s){this._provider=e,this.name=t,this.version=n,this.options=s}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;const e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):s.NOOP_LOGGER}}},"../../node_modules/@opentelemetry/api-logs/build/esm/ProxyLoggerProvider.js":(e,t,n)=>{"use strict";n.d(t,{ProxyLoggerProvider:()=>o});var s=n("../../node_modules/@opentelemetry/api-logs/build/esm/NoopLoggerProvider.js"),r=n("../../node_modules/@opentelemetry/api-logs/build/esm/ProxyLogger.js");class o{getLogger(e,t,n){var s;return null!==(s=this.getDelegateLogger(e,t,n))&&void 0!==s?s:new r.ProxyLogger(this,e,t,n)}getDelegate(){var e;return null!==(e=this._delegate)&&void 0!==e?e:s.NOOP_LOGGER_PROVIDER}setDelegate(e){this._delegate=e}getDelegateLogger(e,t,n){var s;return null===(s=this._delegate)||void 0===s?void 0:s.getLogger(e,t,n)}}},"../../node_modules/@opentelemetry/api-logs/build/esm/api/logs.js":(e,t,n)=>{"use strict";n.d(t,{LogsAPI:()=>i});var s=n("../../node_modules/@opentelemetry/api-logs/build/esm/internal/global-utils.js"),r=n("../../node_modules/@opentelemetry/api-logs/build/esm/NoopLoggerProvider.js"),o=n("../../node_modules/@opentelemetry/api-logs/build/esm/ProxyLoggerProvider.js");class i{constructor(){this._proxyLoggerProvider=new o.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new i),this._instance}setGlobalLoggerProvider(e){return s._global[s.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(s._global[s.GLOBAL_LOGS_API_KEY]=(0,s.makeGetter)(s.API_BACKWARDS_COMPATIBILITY_VERSION,e,r.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,t;return null!==(t=null===(e=s._global[s.GLOBAL_LOGS_API_KEY])||void 0===e?void 0:e.call(s._global,s.API_BACKWARDS_COMPATIBILITY_VERSION))&&void 0!==t?t:this._proxyLoggerProvider}getLogger(e,t,n){return this.getLoggerProvider().getLogger(e,t,n)}disable(){delete s._global[s.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new o.ProxyLoggerProvider}}},"../../node_modules/@opentelemetry/api-logs/build/esm/index.js":(e,t,n)=>{"use strict";n.d(t,{logs:()=>s});const s=n("../../node_modules/@opentelemetry/api-logs/build/esm/api/logs.js").LogsAPI.getInstance()},"../../node_modules/@opentelemetry/api-logs/build/esm/internal/global-utils.js":(e,t,n)=>{"use strict";n.d(t,{API_BACKWARDS_COMPATIBILITY_VERSION:()=>a,GLOBAL_LOGS_API_KEY:()=>r,_global:()=>o,makeGetter:()=>i});var s=n("../../node_modules/@opentelemetry/api-logs/build/esm/platform/browser/globalThis.js");const r=Symbol.for("io.opentelemetry.js.api.logs"),o=s._globalThis;function i(e,t,n){return s=>s===e?t:n}const a=1},"../../node_modules/@opentelemetry/api-logs/build/esm/platform/browser/globalThis.js":(e,t,n)=>{"use strict";n.d(t,{_globalThis:()=>s});const s="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof n.g?n.g:{}},"../../node_modules/@opentelemetry/api/build/esm/api/context.js":(e,t,n)=>{"use strict";n.d(t,{ContextAPI:()=>u});var s=n("../../node_modules/@opentelemetry/api/build/esm/context/NoopContextManager.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/api/diag.js"),i=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var s,r,o=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(s=o.next()).done;)i.push(s.value)}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i},a=function(e,t,n){if(n||2===arguments.length)for(var s,r=0,o=t.length;r<o;r++)!s&&r in t||(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))},l="context",c=new s.NoopContextManager,u=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(e){return(0,r.registerGlobal)(l,e,o.DiagAPI.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(e,t,n){for(var s,r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];return(s=this._getContextManager()).with.apply(s,a([e,t,n],i(r),!1))},e.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},e.prototype._getContextManager=function(){return(0,r.getGlobal)(l)||c},e.prototype.disable=function(){this._getContextManager().disable(),(0,r.unregisterGlobal)(l,o.DiagAPI.instance())},e}()},"../../node_modules/@opentelemetry/api/build/esm/api/diag.js":(e,t,n)=>{"use strict";n.d(t,{DiagAPI:()=>c});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag/ComponentLogger.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/diag/internal/logLevelLogger.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/diag/types.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),a=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var s,r,o=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(s=o.next()).done;)i.push(s.value)}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i},l=function(e,t,n){if(n||2===arguments.length)for(var s,r=0,o=t.length;r<o;r++)!s&&r in t||(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))},c=function(){function e(){function e(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var s=(0,i.getGlobal)("diag");if(s)return s[e].apply(s,l([],a(t),!1))}}var t=this;t.setLogger=function(e,n){var s,a,l;if(void 0===n&&(n={logLevel:o.DiagLogLevel.INFO}),e===t){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!==(s=c.stack)&&void 0!==s?s:c.message),!1}"number"==typeof n&&(n={logLevel:n});var u=(0,i.getGlobal)("diag"),d=(0,r.createLogLevelDiagLogger)(null!==(a=n.logLevel)&&void 0!==a?a:o.DiagLogLevel.INFO,e);if(u&&!n.suppressOverrideMessage){var p=null!==(l=(new Error).stack)&&void 0!==l?l:"<failed to generate stacktrace>";u.warn("Current logger will be overwritten from "+p),d.warn("Current logger will overwrite one already registered from "+p)}return(0,i.registerGlobal)("diag",d,t,!0)},t.disable=function(){(0,i.unregisterGlobal)("diag",t)},t.createComponentLogger=function(e){return new s.DiagComponentLogger(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}()},"../../node_modules/@opentelemetry/api/build/esm/api/metrics.js":(e,t,n)=>{"use strict";n.d(t,{MetricsAPI:()=>a});var s=n("../../node_modules/@opentelemetry/api/build/esm/metrics/NoopMeterProvider.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/api/diag.js"),i="metrics",a=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(e){return(0,r.registerGlobal)(i,e,o.DiagAPI.instance())},e.prototype.getMeterProvider=function(){return(0,r.getGlobal)(i)||s.NOOP_METER_PROVIDER},e.prototype.getMeter=function(e,t,n){return this.getMeterProvider().getMeter(e,t,n)},e.prototype.disable=function(){(0,r.unregisterGlobal)(i,o.DiagAPI.instance())},e}()},"../../node_modules/@opentelemetry/api/build/esm/api/propagation.js":(e,t,n)=>{"use strict";n.d(t,{PropagationAPI:()=>d});var s=n("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/propagation/NoopTextMapPropagator.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/propagation/TextMapPropagator.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/baggage/context-helpers.js"),a=n("../../node_modules/@opentelemetry/api/build/esm/baggage/utils.js"),l=n("../../node_modules/@opentelemetry/api/build/esm/api/diag.js"),c="propagation",u=new r.NoopTextMapPropagator,d=function(){function e(){this.createBaggage=a.createBaggage,this.getBaggage=i.getBaggage,this.getActiveBaggage=i.getActiveBaggage,this.setBaggage=i.setBaggage,this.deleteBaggage=i.deleteBaggage}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(e){return(0,s.registerGlobal)(c,e,l.DiagAPI.instance())},e.prototype.inject=function(e,t,n){return void 0===n&&(n=o.defaultTextMapSetter),this._getGlobalPropagator().inject(e,t,n)},e.prototype.extract=function(e,t,n){return void 0===n&&(n=o.defaultTextMapGetter),this._getGlobalPropagator().extract(e,t,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){(0,s.unregisterGlobal)(c,l.DiagAPI.instance())},e.prototype._getGlobalPropagator=function(){return(0,s.getGlobal)(c)||u},e}()},"../../node_modules/@opentelemetry/api/build/esm/api/trace.js":(e,t,n)=>{"use strict";n.d(t,{TraceAPI:()=>c});var s=n("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/trace/ProxyTracerProvider.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/trace/context-utils.js"),a=n("../../node_modules/@opentelemetry/api/build/esm/api/diag.js"),l="trace",c=function(){function e(){this._proxyTracerProvider=new r.ProxyTracerProvider,this.wrapSpanContext=o.wrapSpanContext,this.isSpanContextValid=o.isSpanContextValid,this.deleteSpan=i.deleteSpan,this.getSpan=i.getSpan,this.getActiveSpan=i.getActiveSpan,this.getSpanContext=i.getSpanContext,this.setSpan=i.setSpan,this.setSpanContext=i.setSpanContext}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(e){var t=(0,s.registerGlobal)(l,this._proxyTracerProvider,a.DiagAPI.instance());return t&&this._proxyTracerProvider.setDelegate(e),t},e.prototype.getTracerProvider=function(){return(0,s.getGlobal)(l)||this._proxyTracerProvider},e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},e.prototype.disable=function(){(0,s.unregisterGlobal)(l,a.DiagAPI.instance()),this._proxyTracerProvider=new r.ProxyTracerProvider},e}()},"../../node_modules/@opentelemetry/api/build/esm/baggage/context-helpers.js":(e,t,n)=>{"use strict";n.d(t,{deleteBaggage:()=>l,getActiveBaggage:()=>i,getBaggage:()=>o,setBaggage:()=>a});var s=n("../../node_modules/@opentelemetry/api/build/esm/api/context.js"),r=(0,n("../../node_modules/@opentelemetry/api/build/esm/context/context.js").createContextKey)("OpenTelemetry Baggage Key");function o(e){return e.getValue(r)||void 0}function i(){return o(s.ContextAPI.getInstance().active())}function a(e,t){return e.setValue(r,t)}function l(e){return e.deleteValue(r)}},"../../node_modules/@opentelemetry/api/build/esm/baggage/internal/baggage-impl.js":(e,t,n)=>{"use strict";n.d(t,{BaggageImpl:()=>o});var s=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var s,r,o=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(s=o.next()).done;)i.push(s.value)}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i},r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],s=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&s>=e.length&&(e=void 0),{value:e&&e[s++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=function(){function e(e){this._entries=e?new Map(e):new Map}return e.prototype.getEntry=function(e){var t=this._entries.get(e);if(t)return Object.assign({},t)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var t=s(e,2);return[t[0],t[1]]})},e.prototype.setEntry=function(t,n){var s=new e(this._entries);return s._entries.set(t,n),s},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t,n,s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];var i=new e(this._entries);try{for(var a=r(s),l=a.next();!l.done;l=a.next()){var c=l.value;i._entries.delete(c)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i},e.prototype.clear=function(){return new e},e}()},"../../node_modules/@opentelemetry/api/build/esm/baggage/internal/symbol.js":(e,t,n)=>{"use strict";n.d(t,{baggageEntryMetadataSymbol:()=>s});var s=Symbol("BaggageEntryMetadata")},"../../node_modules/@opentelemetry/api/build/esm/baggage/utils.js":(e,t,n)=>{"use strict";n.d(t,{baggageEntryMetadataFromString:()=>l,createBaggage:()=>a});var s=n("../../node_modules/@opentelemetry/api/build/esm/api/diag.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/baggage/internal/baggage-impl.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/baggage/internal/symbol.js"),i=s.DiagAPI.instance();function a(e){return void 0===e&&(e={}),new r.BaggageImpl(new Map(Object.entries(e)))}function l(e){return"string"!=typeof e&&(i.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:o.baggageEntryMetadataSymbol,toString:function(){return e}}}},"../../node_modules/@opentelemetry/api/build/esm/context-api.js":(e,t,n)=>{"use strict";n.d(t,{context:()=>s});var s=n("../../node_modules/@opentelemetry/api/build/esm/api/context.js").ContextAPI.getInstance()},"../../node_modules/@opentelemetry/api/build/esm/context/NoopContextManager.js":(e,t,n)=>{"use strict";n.d(t,{NoopContextManager:()=>i});var s=n("../../node_modules/@opentelemetry/api/build/esm/context/context.js"),r=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var s,r,o=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(s=o.next()).done;)i.push(s.value)}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i},o=function(e,t,n){if(n||2===arguments.length)for(var s,r=0,o=t.length;r<o;r++)!s&&r in t||(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))},i=function(){function e(){}return e.prototype.active=function(){return s.ROOT_CONTEXT},e.prototype.with=function(e,t,n){for(var s=[],i=3;i<arguments.length;i++)s[i-3]=arguments[i];return t.call.apply(t,o([n],r(s),!1))},e.prototype.bind=function(e,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}()},"../../node_modules/@opentelemetry/api/build/esm/context/context.js":(e,t,n)=>{"use strict";function s(e){return Symbol.for(e)}n.d(t,{ROOT_CONTEXT:()=>r,createContextKey:()=>s});var r=new function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(e){return n._currentContext.get(e)},n.setValue=function(t,s){var r=new e(n._currentContext);return r._currentContext.set(t,s),r},n.deleteValue=function(t){var s=new e(n._currentContext);return s._currentContext.delete(t),s}}},"../../node_modules/@opentelemetry/api/build/esm/diag-api.js":(e,t,n)=>{"use strict";n.d(t,{diag:()=>s});var s=n("../../node_modules/@opentelemetry/api/build/esm/api/diag.js").DiagAPI.instance()},"../../node_modules/@opentelemetry/api/build/esm/diag/ComponentLogger.js":(e,t,n)=>{"use strict";n.d(t,{DiagComponentLogger:()=>i});var s=n("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),r=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var s,r,o=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(s=o.next()).done;)i.push(s.value)}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i},o=function(e,t,n){if(n||2===arguments.length)for(var s,r=0,o=t.length;r<o;r++)!s&&r in t||(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))},i=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a("debug",this._namespace,e)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a("error",this._namespace,e)},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a("info",this._namespace,e)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a("warn",this._namespace,e)},e.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a("verbose",this._namespace,e)},e}();function a(e,t,n){var i=(0,s.getGlobal)("diag");if(i)return n.unshift(t),i[e].apply(i,o([],r(n),!1))}},"../../node_modules/@opentelemetry/api/build/esm/diag/internal/logLevelLogger.js":(e,t,n)=>{"use strict";n.d(t,{createLogLevelDiagLogger:()=>r});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag/types.js");function r(e,t){function n(n,s){var r=t[n];return"function"==typeof r&&e>=s?r.bind(t):function(){}}return e<s.DiagLogLevel.NONE?e=s.DiagLogLevel.NONE:e>s.DiagLogLevel.ALL&&(e=s.DiagLogLevel.ALL),t=t||{},{error:n("error",s.DiagLogLevel.ERROR),warn:n("warn",s.DiagLogLevel.WARN),info:n("info",s.DiagLogLevel.INFO),debug:n("debug",s.DiagLogLevel.DEBUG),verbose:n("verbose",s.DiagLogLevel.VERBOSE)}}},"../../node_modules/@opentelemetry/api/build/esm/diag/types.js":(e,t,n)=>{"use strict";var s;n.d(t,{DiagLogLevel:()=>s}),function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"}(s||(s={}))},"../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js":(e,t,n)=>{"use strict";n.d(t,{getGlobal:()=>u,registerGlobal:()=>c,unregisterGlobal:()=>d});var s=n("../../node_modules/@opentelemetry/api/build/esm/platform/browser/globalThis.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/version.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/internal/semver.js"),i=r.VERSION.split(".")[0],a=Symbol.for("opentelemetry.js.api."+i),l=s._globalThis;function c(e,t,n,s){var o;void 0===s&&(s=!1);var i=l[a]=null!==(o=l[a])&&void 0!==o?o:{version:r.VERSION};if(!s&&i[e]){var c=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return n.error(c.stack||c.message),!1}if(i.version!==r.VERSION){c=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+e+" does not match previously registered API v"+r.VERSION);return n.error(c.stack||c.message),!1}return i[e]=t,n.debug("@opentelemetry/api: Registered a global for "+e+" v"+r.VERSION+"."),!0}function u(e){var t,n,s=null===(t=l[a])||void 0===t?void 0:t.version;if(s&&(0,o.isCompatible)(s))return null===(n=l[a])||void 0===n?void 0:n[e]}function d(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+r.VERSION+".");var n=l[a];n&&delete n[e]}},"../../node_modules/@opentelemetry/api/build/esm/internal/semver.js":(e,t,n)=>{"use strict";n.d(t,{isCompatible:()=>o});var s=n("../../node_modules/@opentelemetry/api/build/esm/version.js"),r=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;var o=function(e){var t=new Set([e]),n=new Set,s=e.match(r);if(!s)return function(){return!1};var o=+s[1],i=+s[2],a=+s[3];if(null!=s[4])return function(t){return t===e};function l(e){return n.add(e),!1}function c(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(n.has(e))return!1;var s=e.match(r);if(!s)return l(e);var u=+s[1],d=+s[2],p=+s[3];return null!=s[4]||o!==u?l(e):0===o?i===d&&a<=p?c(e):l(e):i<=d?c(e):l(e)}}(s.VERSION)},"../../node_modules/@opentelemetry/api/build/esm/metrics-api.js":(e,t,n)=>{"use strict";n.d(t,{metrics:()=>s});var s=n("../../node_modules/@opentelemetry/api/build/esm/api/metrics.js").MetricsAPI.getInstance()},"../../node_modules/@opentelemetry/api/build/esm/metrics/NoopMeter.js":(e,t,n)=>{"use strict";n.d(t,{NOOP_METER:()=>A});var s,r=(s=function(e,t){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},s(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=function(){function e(){}return e.prototype.createGauge=function(e,t){return f},e.prototype.createHistogram=function(e,t){return _},e.prototype.createCounter=function(e,t){return g},e.prototype.createUpDownCounter=function(e,t){return E},e.prototype.createObservableGauge=function(e,t){return y},e.prototype.createObservableCounter=function(e,t){return b},e.prototype.createObservableUpDownCounter=function(e,t){return T},e.prototype.addBatchObservableCallback=function(e,t){},e.prototype.removeBatchObservableCallback=function(e){},e}(),i=function(){},a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.add=function(e,t){},t}(i),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.add=function(e,t){},t}(i),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.record=function(e,t){},t}(i),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.record=function(e,t){},t}(i),d=function(){function e(){}return e.prototype.addCallback=function(e){},e.prototype.removeCallback=function(e){},e}(),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(d),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(d),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(d),A=new o,g=new a,f=new c,_=new u,E=new l,b=new p,y=new m,T=new h},"../../node_modules/@opentelemetry/api/build/esm/metrics/NoopMeterProvider.js":(e,t,n)=>{"use strict";n.d(t,{NOOP_METER_PROVIDER:()=>r});var s=n("../../node_modules/@opentelemetry/api/build/esm/metrics/NoopMeter.js"),r=new(function(){function e(){}return e.prototype.getMeter=function(e,t,n){return s.NOOP_METER},e}())},"../../node_modules/@opentelemetry/api/build/esm/platform/browser/globalThis.js":(e,t,n)=>{"use strict";n.d(t,{_globalThis:()=>s});var s="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof n.g?n.g:{}},"../../node_modules/@opentelemetry/api/build/esm/propagation-api.js":(e,t,n)=>{"use strict";n.d(t,{propagation:()=>s});var s=n("../../node_modules/@opentelemetry/api/build/esm/api/propagation.js").PropagationAPI.getInstance()},"../../node_modules/@opentelemetry/api/build/esm/propagation/NoopTextMapPropagator.js":(e,t,n)=>{"use strict";n.d(t,{NoopTextMapPropagator:()=>s});var s=function(){function e(){}return e.prototype.inject=function(e,t){},e.prototype.extract=function(e,t){return e},e.prototype.fields=function(){return[]},e}()},"../../node_modules/@opentelemetry/api/build/esm/propagation/TextMapPropagator.js":(e,t,n)=>{"use strict";n.d(t,{defaultTextMapGetter:()=>s,defaultTextMapSetter:()=>r});var s={get:function(e,t){if(null!=e)return e[t]},keys:function(e){return null==e?[]:Object.keys(e)}},r={set:function(e,t,n){null!=e&&(e[t]=n)}}},"../../node_modules/@opentelemetry/api/build/esm/trace-api.js":(e,t,n)=>{"use strict";n.d(t,{trace:()=>s});var s=n("../../node_modules/@opentelemetry/api/build/esm/api/trace.js").TraceAPI.getInstance()},"../../node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js":(e,t,n)=>{"use strict";n.d(t,{NonRecordingSpan:()=>r});var s=n("../../node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js"),r=function(){function e(e){void 0===e&&(e=s.INVALID_SPAN_CONTEXT),this._spanContext=e}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return this},e.prototype.setAttributes=function(e){return this},e.prototype.addEvent=function(e,t){return this},e.prototype.addLink=function(e){return this},e.prototype.addLinks=function(e){return this},e.prototype.setStatus=function(e){return this},e.prototype.updateName=function(e){return this},e.prototype.end=function(e){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(e,t){},e}()},"../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js":(e,t,n)=>{"use strict";n.d(t,{NoopTracer:()=>l});var s=n("../../node_modules/@opentelemetry/api/build/esm/api/context.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/trace/context-utils.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"),a=s.ContextAPI.getInstance(),l=function(){function e(){}return e.prototype.startSpan=function(e,t,n){if(void 0===n&&(n=a.active()),Boolean(null==t?void 0:t.root))return new o.NonRecordingSpan;var s,l=n&&(0,r.getSpanContext)(n);return"object"==typeof(s=l)&&"string"==typeof s.spanId&&"string"==typeof s.traceId&&"number"==typeof s.traceFlags&&(0,i.isSpanContextValid)(l)?new o.NonRecordingSpan(l):new o.NonRecordingSpan},e.prototype.startActiveSpan=function(e,t,n,s){var o,i,l;if(!(arguments.length<2)){2===arguments.length?l=t:3===arguments.length?(o=t,l=n):(o=t,i=n,l=s);var c=null!=i?i:a.active(),u=this.startSpan(e,o,c),d=(0,r.setSpan)(c,u);return a.with(d,l,void 0,u)}},e}()},"../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracerProvider.js":(e,t,n)=>{"use strict";n.d(t,{NoopTracerProvider:()=>r});var s=n("../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js"),r=function(){function e(){}return e.prototype.getTracer=function(e,t,n){return new s.NoopTracer},e}()},"../../node_modules/@opentelemetry/api/build/esm/trace/ProxyTracer.js":(e,t,n)=>{"use strict";n.d(t,{ProxyTracer:()=>r});var s=new(n("../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js").NoopTracer),r=function(){function e(e,t,n,s){this._provider=e,this.name=t,this.version=n,this.options=s}return e.prototype.startSpan=function(e,t,n){return this._getTracer().startSpan(e,t,n)},e.prototype.startActiveSpan=function(e,t,n,s){var r=this._getTracer();return Reflect.apply(r.startActiveSpan,r,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):s},e}()},"../../node_modules/@opentelemetry/api/build/esm/trace/ProxyTracerProvider.js":(e,t,n)=>{"use strict";n.d(t,{ProxyTracerProvider:()=>o});var s=n("../../node_modules/@opentelemetry/api/build/esm/trace/ProxyTracer.js"),r=new(n("../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracerProvider.js").NoopTracerProvider),o=function(){function e(){}return e.prototype.getTracer=function(e,t,n){var r;return null!==(r=this.getDelegateTracer(e,t,n))&&void 0!==r?r:new s.ProxyTracer(this,e,t,n)},e.prototype.getDelegate=function(){var e;return null!==(e=this._delegate)&&void 0!==e?e:r},e.prototype.setDelegate=function(e){this._delegate=e},e.prototype.getDelegateTracer=function(e,t,n){var s;return null===(s=this._delegate)||void 0===s?void 0:s.getTracer(e,t,n)},e}()},"../../node_modules/@opentelemetry/api/build/esm/trace/SamplingResult.js":(e,t,n)=>{"use strict";var s;n.d(t,{SamplingDecision:()=>s}),function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(s||(s={}))},"../../node_modules/@opentelemetry/api/build/esm/trace/context-utils.js":(e,t,n)=>{"use strict";n.d(t,{deleteSpan:()=>u,getActiveSpan:()=>l,getSpan:()=>a,getSpanContext:()=>p,setSpan:()=>c,setSpanContext:()=>d});var s=n("../../node_modules/@opentelemetry/api/build/esm/context/context.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/api/context.js"),i=(0,s.createContextKey)("OpenTelemetry Context Key SPAN");function a(e){return e.getValue(i)||void 0}function l(){return a(o.ContextAPI.getInstance().active())}function c(e,t){return e.setValue(i,t)}function u(e){return e.deleteValue(i)}function d(e,t){return c(e,new r.NonRecordingSpan(t))}function p(e){var t;return null===(t=a(e))||void 0===t?void 0:t.spanContext()}},"../../node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js":(e,t,n)=>{"use strict";n.d(t,{INVALID_SPANID:()=>r,INVALID_SPAN_CONTEXT:()=>i,INVALID_TRACEID:()=>o});var s=n("../../node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js"),r="0000000000000000",o="00000000000000000000000000000000",i={traceId:o,spanId:r,traceFlags:s.TraceFlags.NONE}},"../../node_modules/@opentelemetry/api/build/esm/trace/span_kind.js":(e,t,n)=>{"use strict";var s;n.d(t,{SpanKind:()=>s}),function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"}(s||(s={}))},"../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js":(e,t,n)=>{"use strict";n.d(t,{isSpanContextValid:()=>l,isValidTraceId:()=>a,wrapSpanContext:()=>c});var s=n("../../node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js"),o=/^([0-9a-f]{32})$/i,i=/^[0-9a-f]{16}$/i;function a(e){return o.test(e)&&e!==s.INVALID_TRACEID}function l(e){return a(e.traceId)&&(t=e.spanId,i.test(t)&&t!==s.INVALID_SPANID);var t}function c(e){return new r.NonRecordingSpan(e)}},"../../node_modules/@opentelemetry/api/build/esm/trace/status.js":(e,t,n)=>{"use strict";var s;n.d(t,{SpanStatusCode:()=>s}),function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"}(s||(s={}))},"../../node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js":(e,t,n)=>{"use strict";var s;n.d(t,{TraceFlags:()=>s}),function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"}(s||(s={}))},"../../node_modules/@opentelemetry/api/build/esm/version.js":(e,t,n)=>{"use strict";n.d(t,{VERSION:()=>s});var s="1.9.0"},"../../node_modules/@opentelemetry/auto-instrumentations-web/build/esm/index.js":(e,t,n)=>{"use strict";n.d(t,{getWebAutoInstrumentations:()=>s.getWebAutoInstrumentations});var s=n("../../node_modules/@opentelemetry/auto-instrumentations-web/build/esm/utils.js")},"../../node_modules/@opentelemetry/auto-instrumentations-web/build/esm/utils.js":(e,t,n)=>{"use strict";n.d(t,{getWebAutoInstrumentations:()=>c});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),r=n("../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/index.js"),o=n("../../node_modules/@opentelemetry/instrumentation-fetch/build/esm/fetch.js"),i=n("../../node_modules/@opentelemetry/instrumentation-user-interaction/build/esm/instrumentation.js"),a=n("../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/xhr.js");const l={"@opentelemetry/instrumentation-document-load":r.DocumentLoadInstrumentation,"@opentelemetry/instrumentation-fetch":o.FetchInstrumentation,"@opentelemetry/instrumentation-user-interaction":i.UserInteractionInstrumentation,"@opentelemetry/instrumentation-xml-http-request":a.XMLHttpRequestInstrumentation};function c(e={}){for(const t of Object.keys(e))Object.prototype.hasOwnProperty.call(l,t)||s.diag.error(`Provided instrumentation name "${t}" not found`);const t=[];for(const n of Object.keys(l)){const r=l[n],o=e[n]??{};if(!1!==o.enabled)try{s.diag.debug(`Loading instrumentation for ${n}`),t.push(new r(o))}catch(e){s.diag.error(e)}else s.diag.debug(`Disabling instrumentation for ${n}`)}return t}},"../../node_modules/@opentelemetry/core/build/esm/ExportResult.js":(e,t,n)=>{"use strict";var s;n.d(t,{ExportResultCode:()=>s}),function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"}(s||(s={}))},"../../node_modules/@opentelemetry/core/build/esm/baggage/constants.js":(e,t,n)=>{"use strict";n.d(t,{BAGGAGE_HEADER:()=>i,BAGGAGE_ITEMS_SEPARATOR:()=>o,BAGGAGE_KEY_PAIR_SEPARATOR:()=>s,BAGGAGE_MAX_NAME_VALUE_PAIRS:()=>a,BAGGAGE_MAX_PER_NAME_VALUE_PAIRS:()=>l,BAGGAGE_MAX_TOTAL_LENGTH:()=>c,BAGGAGE_PROPERTIES_SEPARATOR:()=>r});const s="=",r=";",o=",",i="baggage",a=180,l=4096,c=8192},"../../node_modules/@opentelemetry/core/build/esm/baggage/propagation/W3CBaggagePropagator.js":(e,t,n)=>{"use strict";n.d(t,{W3CBaggagePropagator:()=>a});var s=n("../../node_modules/@opentelemetry/api/build/esm/propagation-api.js"),r=n("../../node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js"),o=n("../../node_modules/@opentelemetry/core/build/esm/baggage/constants.js"),i=n("../../node_modules/@opentelemetry/core/build/esm/baggage/utils.js");class a{inject(e,t,n){const a=s.propagation.getBaggage(e);if(!a||(0,r.isTracingSuppressed)(e))return;const l=(0,i.getKeyPairs)(a).filter(e=>e.length<=o.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,o.BAGGAGE_MAX_NAME_VALUE_PAIRS),c=(0,i.serializeKeyPairs)(l);c.length>0&&n.set(t,o.BAGGAGE_HEADER,c)}extract(e,t,n){const r=n.get(t,o.BAGGAGE_HEADER),a=Array.isArray(r)?r.join(o.BAGGAGE_ITEMS_SEPARATOR):r;if(!a)return e;const l={};if(0===a.length)return e;return a.split(o.BAGGAGE_ITEMS_SEPARATOR).forEach(e=>{const t=(0,i.parsePairKeyValue)(e);if(t){const e={value:t.value};t.metadata&&(e.metadata=t.metadata),l[t.key]=e}}),0===Object.entries(l).length?e:s.propagation.setBaggage(e,s.propagation.createBaggage(l))}fields(){return[o.BAGGAGE_HEADER]}}},"../../node_modules/@opentelemetry/core/build/esm/baggage/utils.js":(e,t,n)=>{"use strict";n.d(t,{getKeyPairs:()=>i,parsePairKeyValue:()=>a,serializeKeyPairs:()=>o});var s=n("../../node_modules/@opentelemetry/api/build/esm/baggage/utils.js"),r=n("../../node_modules/@opentelemetry/core/build/esm/baggage/constants.js");function o(e){return e.reduce((e,t)=>{const n=`${e}${""!==e?r.BAGGAGE_ITEMS_SEPARATOR:""}${t}`;return n.length>r.BAGGAGE_MAX_TOTAL_LENGTH?e:n},"")}function i(e){return e.getAllEntries().map(([e,t])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(t.value)}`;return void 0!==t.metadata&&(n+=r.BAGGAGE_PROPERTIES_SEPARATOR+t.metadata.toString()),n})}function a(e){const t=e.split(r.BAGGAGE_PROPERTIES_SEPARATOR);if(t.length<=0)return;const n=t.shift();if(!n)return;const o=n.indexOf(r.BAGGAGE_KEY_PAIR_SEPARATOR);if(o<=0)return;const i=decodeURIComponent(n.substring(0,o).trim()),a=decodeURIComponent(n.substring(o+1).trim());let l;return t.length>0&&(l=(0,s.baggageEntryMetadataFromString)(t.join(r.BAGGAGE_PROPERTIES_SEPARATOR))),{key:i,value:a,metadata:l}}},"../../node_modules/@opentelemetry/core/build/esm/common/attributes.js":(e,t,n)=>{"use strict";n.d(t,{isAttributeValue:()=>i,sanitizeAttributes:()=>r});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js");function r(e){const t={};if("object"!=typeof e||null==e)return t;for(const[n,r]of Object.entries(e))o(n)?i(r)?Array.isArray(r)?t[n]=r.slice():t[n]=r:s.diag.warn(`Invalid attribute value set for key: ${n}`):s.diag.warn(`Invalid attribute key: ${n}`);return t}function o(e){return"string"==typeof e&&e.length>0}function i(e){return null==e||(Array.isArray(e)?function(e){let t;for(const n of e)if(null!=n){if(!t){if(a(n)){t=typeof n;continue}return!1}if(typeof n!==t)return!1}return!0}(e):a(e))}function a(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}},"../../node_modules/@opentelemetry/core/build/esm/common/global-error-handler.js":(e,t,n)=>{"use strict";n.d(t,{globalErrorHandler:()=>r});let s=(0,n("../../node_modules/@opentelemetry/core/build/esm/common/logging-error-handler.js").loggingErrorHandler)();function r(e){try{s(e)}catch{}}},"../../node_modules/@opentelemetry/core/build/esm/common/logging-error-handler.js":(e,t,n)=>{"use strict";n.d(t,{loggingErrorHandler:()=>r});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js");function r(){return e=>{s.diag.error(function(e){return"string"==typeof e?e:JSON.stringify(function(e){const t={};let n=e;for(;null!==n;)Object.getOwnPropertyNames(n).forEach(e=>{if(t[e])return;const s=n[e];s&&(t[e]=String(s))}),n=Object.getPrototypeOf(n);return t}(e))}(e))}}},"../../node_modules/@opentelemetry/core/build/esm/common/time.js":(e,t,n)=>{"use strict";n.d(t,{addHrTimes:()=>h,getTimeOrigin:()=>a,hrTime:()=>l,hrTimeDuration:()=>u,hrTimeToNanoseconds:()=>d,isTimeInput:()=>m,isTimeInputHrTime:()=>p,millisToHrTime:()=>i,timeInputToHrTime:()=>c});var s=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js");const r=Math.pow(10,6),o=Math.pow(10,9);function i(e){const t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*r)]}function a(){let e=s.otperformance.timeOrigin;if("number"!=typeof e){const t=s.otperformance;e=t.timing&&t.timing.fetchStart}return e}function l(e){return h(i(a()),i("number"==typeof e?e:s.otperformance.now()))}function c(e){if(p(e))return e;if("number"==typeof e)return e<a()?l(e):i(e);if(e instanceof Date)return i(e.getTime());throw TypeError("Invalid input type")}function u(e,t){let n=t[0]-e[0],s=t[1]-e[1];return s<0&&(n-=1,s+=o),[n,s]}function d(e){return e[0]*o+e[1]}function p(e){return Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}function m(e){return p(e)||"number"==typeof e||e instanceof Date}function h(e,t){const n=[e[0]+t[0],e[1]+t[1]];return n[1]>=o&&(n[1]-=o,n[0]+=1),n}},"../../node_modules/@opentelemetry/core/build/esm/internal/validators.js":(e,t,n)=>{"use strict";n.d(t,{validateKey:()=>a,validateValue:()=>l});const s="[_0-9a-z-*/]",r=new RegExp(`^(?:${`[a-z]${s}{0,255}`}|${`[a-z0-9]${s}{0,240}@[a-z]${s}{0,13}`})$`),o=/^[ -~]{0,255}[!-~]$/,i=/,|=/;function a(e){return r.test(e)}function l(e){return o.test(e)&&!i.test(e)}},"../../node_modules/@opentelemetry/core/build/esm/platform/browser/environment.js":(e,t,n)=>{"use strict";function s(e){}function r(e){}function o(e){}n.d(t,{getNumberFromEnv:()=>r,getStringFromEnv:()=>s,getStringListFromEnv:()=>o})},"../../node_modules/@opentelemetry/core/build/esm/platform/browser/globalThis.js":(e,t,n)=>{"use strict";n.d(t,{_globalThis:()=>s});const s="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof n.g?n.g:{}},"../../node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js":(e,t,n)=>{"use strict";n.d(t,{otperformance:()=>s});const s=performance},"../../node_modules/@opentelemetry/core/build/esm/platform/browser/sdk-info.js":(e,t,n)=>{"use strict";n.d(t,{SDK_INFO:()=>i});var s=n("../../node_modules/@opentelemetry/core/build/esm/version.js"),r=n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js"),o=n("../../node_modules/@opentelemetry/core/build/esm/semconv.js");const i={[r.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[o.ATTR_PROCESS_RUNTIME_NAME]:"browser",[r.ATTR_TELEMETRY_SDK_LANGUAGE]:r.TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS,[r.ATTR_TELEMETRY_SDK_VERSION]:s.VERSION}},"../../node_modules/@opentelemetry/core/build/esm/platform/browser/timer-util.js":(e,t,n)=>{"use strict";function s(e){}n.d(t,{unrefTimer:()=>s})},"../../node_modules/@opentelemetry/core/build/esm/propagation/composite.js":(e,t,n)=>{"use strict";n.d(t,{CompositePropagator:()=>r});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js");class r{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(e=>"function"==typeof e.fields?e.fields():[]).reduce((e,t)=>e.concat(t),[])))}inject(e,t,n){for(const r of this._propagators)try{r.inject(e,t,n)}catch(e){s.diag.warn(`Failed to inject with ${r.constructor.name}. Err: ${e.message}`)}}extract(e,t,n){return this._propagators.reduce((e,r)=>{try{return r.extract(e,t,n)}catch(e){s.diag.warn(`Failed to extract with ${r.constructor.name}. Err: ${e.message}`)}return e},e)}fields(){return this._fields.slice()}}},"../../node_modules/@opentelemetry/core/build/esm/semconv.js":(e,t,n)=>{"use strict";n.d(t,{ATTR_PROCESS_RUNTIME_NAME:()=>s});const s="process.runtime.name"},"../../node_modules/@opentelemetry/core/build/esm/trace/TraceState.js":(e,t,n)=>{"use strict";n.d(t,{TraceState:()=>r});var s=n("../../node_modules/@opentelemetry/core/build/esm/internal/validators.js");class r{_internalState=new Map;constructor(e){e&&this._parse(e)}set(e,t){const n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n}unset(e){const t=this._clone();return t._internalState.delete(e),t}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,t)=>(e.push(t+"="+this.get(t)),e),[]).join(",")}_parse(e){e.length>512||(this._internalState=e.split(",").reverse().reduce((e,t)=>{const n=t.trim(),r=n.indexOf("=");if(-1!==r){const o=n.slice(0,r),i=n.slice(r+1,t.length);(0,s.validateKey)(o)&&(0,s.validateValue)(i)&&e.set(o,i)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const e=new r;return e._internalState=new Map(this._internalState),e}}},"../../node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js":(e,t,n)=>{"use strict";n.d(t,{TRACE_PARENT_HEADER:()=>l,W3CTraceContextPropagator:()=>d});var s=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js"),i=n("../../node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js"),a=n("../../node_modules/@opentelemetry/core/build/esm/trace/TraceState.js");const l="traceparent",c="tracestate",u=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");class d{inject(e,t,n){const a=s.trace.getSpanContext(e);if(!a||(0,i.isTracingSuppressed)(e)||!(0,r.isSpanContextValid)(a))return;const u=`00-${a.traceId}-${a.spanId}-0${Number(a.traceFlags||o.TraceFlags.NONE).toString(16)}`;n.set(t,l,u),a.traceState&&n.set(t,c,a.traceState.serialize())}extract(e,t,n){const r=n.get(t,l);if(!r)return e;const o=Array.isArray(r)?r[0]:r;if("string"!=typeof o)return e;const i=function(e){const t=u.exec(e);return t?"00"===t[1]&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}:null}(o);if(!i)return e;i.isRemote=!0;const d=n.get(t,c);if(d){const e=Array.isArray(d)?d.join(","):d;i.traceState=new a.TraceState("string"==typeof e?e:void 0)}return s.trace.setSpanContext(e,i)}fields(){return[l,c]}}},"../../node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js":(e,t,n)=>{"use strict";n.d(t,{isTracingSuppressed:()=>o,suppressTracing:()=>r});const s=(0,n("../../node_modules/@opentelemetry/api/build/esm/context/context.js").createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function r(e){return e.setValue(s,!0)}function o(e){return!0===e.getValue(s)}},"../../node_modules/@opentelemetry/core/build/esm/utils/callback.js":(e,t,n)=>{"use strict";n.d(t,{BindOnceFuture:()=>r});var s=n("../../node_modules/@opentelemetry/core/build/esm/utils/promise.js");class r{_callback;_that;_isCalled=!1;_deferred=new s.Deferred;constructor(e,t){this._callback=e,this._that=t}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(e=>this._deferred.resolve(e),e=>this._deferred.reject(e))}catch(e){this._deferred.reject(e)}}return this._deferred.promise}}},"../../node_modules/@opentelemetry/core/build/esm/utils/lodash.merge.js":(e,t,n)=>{"use strict";n.d(t,{isPlainObject:()=>m});const s="[object Object]",r="[object Null]",o="[object Undefined]",i=Function.prototype.toString,a=i.call(Object),l=Object.getPrototypeOf,c=Object.prototype,u=c.hasOwnProperty,d=Symbol?Symbol.toStringTag:void 0,p=c.toString;function m(e){if(!function(e){return null!=e&&"object"==typeof e}(e)||function(e){if(null==e)return void 0===e?o:r;return d&&d in Object(e)?function(e){const t=u.call(e,d),n=e[d];let s=!1;try{e[d]=void 0,s=!0}catch(e){}const r=p.call(e);s&&(t?e[d]=n:delete e[d]);return r}(e):function(e){return p.call(e)}(e)}(e)!==s)return!1;const t=l(e);if(null===t)return!0;const n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&i.call(n)===a}},"../../node_modules/@opentelemetry/core/build/esm/utils/merge.js":(e,t,n)=>{"use strict";n.d(t,{merge:()=>o});var s=n("../../node_modules/@opentelemetry/core/build/esm/utils/lodash.merge.js");const r=20;function o(...e){let t=e.shift();const n=new WeakMap;for(;e.length>0;)t=a(t,e.shift(),0,n);return t}function i(e){return c(e)?e.slice():e}function a(e,t,n=0,o){let m;if(!(n>r)){if(n++,p(e)||p(t)||u(t))m=i(t);else if(c(e)){if(m=e.slice(),c(t))for(let e=0,n=t.length;e<n;e++)m.push(i(t[e]));else if(d(t)){const e=Object.keys(t);for(let n=0,s=e.length;n<s;n++){const s=e[n];m[s]=i(t[s])}}}else if(d(e))if(d(t)){if(!function(e,t){if(!(0,s.isPlainObject)(e)||!(0,s.isPlainObject)(t))return!1;return!0}(e,t))return t;m=Object.assign({},e);const r=Object.keys(t);for(let s=0,i=r.length;s<i;s++){const i=r[s],c=t[i];if(p(c))void 0===c?delete m[i]:m[i]=c;else{const s=m[i],r=c;if(l(e,i,o)||l(t,i,o))delete m[i];else{if(d(s)&&d(r)){const n=o.get(s)||[],a=o.get(r)||[];n.push({obj:e,key:i}),a.push({obj:t,key:i}),o.set(s,n),o.set(r,a)}m[i]=a(m[i],c,n,o)}}}}else m=t;return m}}function l(e,t,n){const s=n.get(e[t])||[];for(let n=0,r=s.length;n<r;n++){const r=s[n];if(r.key===t&&r.obj===e)return!0}return!1}function c(e){return Array.isArray(e)}function u(e){return"function"==typeof e}function d(e){return!p(e)&&!c(e)&&!u(e)&&"object"==typeof e}function p(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||void 0===e||e instanceof Date||e instanceof RegExp||null===e}},"../../node_modules/@opentelemetry/core/build/esm/utils/promise.js":(e,t,n)=>{"use strict";n.d(t,{Deferred:()=>s});class s{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}}},"../../node_modules/@opentelemetry/core/build/esm/utils/url.js":(e,t,n)=>{"use strict";function s(e,t){return"string"==typeof t?e===t:!!e.match(t)}function r(e,t){if(!t)return!1;for(const n of t)if(s(e,n))return!0;return!1}n.d(t,{isUrlIgnored:()=>r,urlMatches:()=>s})},"../../node_modules/@opentelemetry/core/build/esm/version.js":(e,t,n)=>{"use strict";n.d(t,{VERSION:()=>s});const s="2.0.1"},"../../node_modules/@opentelemetry/exporter-trace-otlp-http/build/esm/platform/browser/OTLPTraceExporter.js":(e,t,n)=>{"use strict";n.d(t,{OTLPTraceExporter:()=>i});var s=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/OTLPExporterBase.js"),r=n("../../node_modules/@opentelemetry/otlp-transformer/build/esm/trace/json/trace.js"),o=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/create-legacy-browser-delegate.js");class i extends s.OTLPExporterBase{constructor(e={}){super((0,o.createLegacyOtlpBrowserExportDelegate)(e,r.JsonTraceSerializer,"v1/traces",{"Content-Type":"application/json"}))}}},"../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/enums/AttributeNames.js":(e,t,n)=>{"use strict";var s;n.d(t,{AttributeNames:()=>s}),function(e){e.DOCUMENT_LOAD="documentLoad",e.DOCUMENT_FETCH="documentFetch",e.RESOURCE_FETCH="resourceFetch"}(s||(s={}))},"../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/enums/EventNames.js":(e,t,n)=>{"use strict";var s;n.d(t,{EventNames:()=>s}),function(e){e.FIRST_PAINT="firstPaint",e.FIRST_CONTENTFUL_PAINT="firstContentfulPaint"}(s||(s={}))},"../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/index.js":(e,t,n)=>{"use strict";n.d(t,{DocumentLoadInstrumentation:()=>s.DocumentLoadInstrumentation});var s=n("../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/instrumentation.js");n("../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/enums/AttributeNames.js")},"../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/instrumentation.js":(e,t,n)=>{"use strict";n.d(t,{DocumentLoadInstrumentation:()=>f});var s=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/propagation-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/context/context.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),a=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js"),l=n("../../node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js"),c=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/enums/PerformanceTimingNames.js"),u=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/utils.js"),d=n("../../node_modules/@opentelemetry/instrumentation/build/esm/platform/browser/instrumentation.js"),p=n("../../node_modules/@opentelemetry/instrumentation/build/esm/utils.js"),m=n("../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/enums/AttributeNames.js"),h=n("../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/version.js"),A=n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js"),g=n("../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/utils.js");class f extends d.InstrumentationBase{component="document-load";version="1";moduleName=this.component;constructor(e={}){super(h.PACKAGE_NAME,h.PACKAGE_VERSION,e)}init(){}_onDocumentLoaded(){window.setTimeout(()=>{this._collectPerformance()})}_addResourcesSpans(e){const t=a.otperformance.getEntriesByType?.("resource");t&&t.forEach(t=>{this._initResourceSpan(t,e)})}_collectPerformance(){const e=Array.from(document.getElementsByTagName("meta")).find(e=>e.getAttribute("name")===l.TRACE_PARENT_HEADER),t=(0,g.getPerformanceNavigationEntries)(),n=e&&e.content||"";s.context.with(r.propagation.extract(o.ROOT_CONTEXT,{traceparent:n}),()=>{const e=this._startSpan(m.AttributeNames.DOCUMENT_LOAD,c.PerformanceTimingNames.FETCH_START,t);e&&(s.context.with(i.trace.setSpan(s.context.active(),e),()=>{const e=this._startSpan(m.AttributeNames.DOCUMENT_FETCH,c.PerformanceTimingNames.FETCH_START,t);e&&(e.setAttribute(A.SEMATTRS_HTTP_URL,location.href),s.context.with(i.trace.setSpan(s.context.active(),e),()=>{(0,u.addSpanNetworkEvents)(e,t,this.getConfig().ignoreNetworkEvents),this._addCustomAttributesOnSpan(e,this.getConfig().applyCustomAttributesOnSpan?.documentFetch),this._endSpan(e,c.PerformanceTimingNames.RESPONSE_END,t)}))}),e.setAttribute(A.SEMATTRS_HTTP_URL,location.href),e.setAttribute(A.SEMATTRS_HTTP_USER_AGENT,navigator.userAgent),this._addResourcesSpans(e),this.getConfig().ignoreNetworkEvents||((0,u.addSpanNetworkEvent)(e,c.PerformanceTimingNames.FETCH_START,t),(0,u.addSpanNetworkEvent)(e,c.PerformanceTimingNames.UNLOAD_EVENT_START,t),(0,u.addSpanNetworkEvent)(e,c.PerformanceTimingNames.UNLOAD_EVENT_END,t),(0,u.addSpanNetworkEvent)(e,c.PerformanceTimingNames.DOM_INTERACTIVE,t),(0,u.addSpanNetworkEvent)(e,c.PerformanceTimingNames.DOM_CONTENT_LOADED_EVENT_START,t),(0,u.addSpanNetworkEvent)(e,c.PerformanceTimingNames.DOM_CONTENT_LOADED_EVENT_END,t),(0,u.addSpanNetworkEvent)(e,c.PerformanceTimingNames.DOM_COMPLETE,t),(0,u.addSpanNetworkEvent)(e,c.PerformanceTimingNames.LOAD_EVENT_START,t),(0,u.addSpanNetworkEvent)(e,c.PerformanceTimingNames.LOAD_EVENT_END,t)),this.getConfig().ignorePerformancePaintEvents||(0,g.addSpanPerformancePaintEvents)(e),this._addCustomAttributesOnSpan(e,this.getConfig().applyCustomAttributesOnSpan?.documentLoad),this._endSpan(e,c.PerformanceTimingNames.LOAD_EVENT_END,t))})}_endSpan(e,t,n){e&&((0,u.hasKey)(n,t)?e.end(n[t]):e.end())}_initResourceSpan(e,t){const n=this._startSpan(m.AttributeNames.RESOURCE_FETCH,c.PerformanceTimingNames.FETCH_START,e,t);n&&(n.setAttribute(A.SEMATTRS_HTTP_URL,e.name),(0,u.addSpanNetworkEvents)(n,e,this.getConfig().ignoreNetworkEvents),this._addCustomAttributesOnResourceSpan(n,e,this.getConfig().applyCustomAttributesOnSpan?.resourceFetch),this._endSpan(n,c.PerformanceTimingNames.RESPONSE_END,e))}_startSpan(e,t,n,r){if((0,u.hasKey)(n,t)&&"number"==typeof n[t]){return this.tracer.startSpan(e,{startTime:n[t]},r?i.trace.setSpan(s.context.active(),r):void 0)}}_waitForPageLoad(){"complete"===window.document.readyState?this._onDocumentLoaded():(this._onDocumentLoaded=this._onDocumentLoaded.bind(this),window.addEventListener("load",this._onDocumentLoaded))}_addCustomAttributesOnSpan(e,t){t&&(0,p.safeExecuteInTheMiddle)(()=>t(e),e=>{e&&this._diag.error("addCustomAttributesOnSpan",e)},!0)}_addCustomAttributesOnResourceSpan(e,t,n){n&&(0,p.safeExecuteInTheMiddle)(()=>n(e,t),e=>{e&&this._diag.error("addCustomAttributesOnResourceSpan",e)},!0)}enable(){window.removeEventListener("load",this._onDocumentLoaded),this._waitForPageLoad()}disable(){window.removeEventListener("load",this._onDocumentLoaded)}}},"../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/utils.js":(e,t,n)=>{"use strict";n.d(t,{addSpanPerformancePaintEvents:()=>c,getPerformanceNavigationEntries:()=>a});var s=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js"),r=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/enums/PerformanceTimingNames.js"),o=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/utils.js"),i=n("../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/enums/EventNames.js");const a=()=>{const e={},t=s.otperformance.getEntriesByType?.("navigation")[0];if(t){Object.values(r.PerformanceTimingNames).forEach(n=>{if((0,o.hasKey)(t,n)){const s=t[n];"number"==typeof s&&(e[n]=s)}})}else{const t=s.otperformance.timing;if(t){Object.values(r.PerformanceTimingNames).forEach(n=>{if((0,o.hasKey)(t,n)){const s=t[n];"number"==typeof s&&(e[n]=s)}})}}return e},l={"first-paint":i.EventNames.FIRST_PAINT,"first-contentful-paint":i.EventNames.FIRST_CONTENTFUL_PAINT},c=e=>{const t=s.otperformance.getEntriesByType?.("paint");t&&t.forEach(({name:t,startTime:n})=>{(0,o.hasKey)(l,t)&&e.addEvent(l[t],n)})}},"../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/version.js":(e,t,n)=>{"use strict";n.d(t,{PACKAGE_NAME:()=>r,PACKAGE_VERSION:()=>s});const s="0.48.0",r="@opentelemetry/instrumentation-document-load"},"../../node_modules/@opentelemetry/instrumentation-fetch/build/esm/enums/AttributeNames.js":(e,t,n)=>{"use strict";var s;n.d(t,{AttributeNames:()=>s}),function(e){e.COMPONENT="component",e.HTTP_STATUS_TEXT="http.status_text"}(s||(s={}))},"../../node_modules/@opentelemetry/instrumentation-fetch/build/esm/fetch.js":(e,t,n)=>{"use strict";n.d(t,{FetchInstrumentation:()=>T});var s=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/propagation-api.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/trace/span_kind.js"),a=n("../../node_modules/@opentelemetry/api/build/esm/trace/status.js"),l=n("../../node_modules/@opentelemetry/instrumentation/build/esm/platform/browser/instrumentation.js"),c=n("../../node_modules/@opentelemetry/instrumentation/build/esm/semconvStability.js"),u=n("../../node_modules/@opentelemetry/instrumentation/build/esm/utils.js"),d=n("../../node_modules/@opentelemetry/core/build/esm/utils/url.js"),p=n("../../node_modules/@opentelemetry/core/build/esm/common/time.js"),m=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/enums/PerformanceTimingNames.js"),h=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/utils.js"),A=n("../../node_modules/@opentelemetry/instrumentation-fetch/build/esm/enums/AttributeNames.js"),g=n("../../node_modules/@opentelemetry/instrumentation-fetch/build/src/semconv.js"),f=n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js"),_=n("../../node_modules/@opentelemetry/instrumentation-fetch/build/esm/utils.js"),E=n("../../node_modules/@opentelemetry/instrumentation-fetch/build/esm/version.js"),b=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/globalThis.js");const y="object"==typeof process&&"node"===process.release?.name;class T extends l.InstrumentationBase{component="fetch";version=E.VERSION;moduleName=this.component;_usedResources=new WeakSet;_tasksCount=0;_semconvStability;constructor(e={}){super("@opentelemetry/instrumentation-fetch",E.VERSION,e),this._semconvStability=(0,c.semconvStabilityFromStr)("http",e?.semconvStabilityOptIn)}init(){}_addChildSpan(e,t){const n=this.tracer.startSpan("CORS Preflight",{startTime:t[m.PerformanceTimingNames.FETCH_START]},s.trace.setSpan(r.context.active(),e)),o=!(this._semconvStability&c.SemconvStability.OLD);h.addSpanNetworkEvents(n,t,this.getConfig().ignoreNetworkEvents,void 0,o),n.end(t[m.PerformanceTimingNames.RESPONSE_END])}_addFinalSpanAttributes(e,t){const n=h.parseUrl(t.url);if(this._semconvStability&c.SemconvStability.OLD&&(e.setAttribute(g.ATTR_HTTP_STATUS_CODE,t.status),null!=t.statusText&&e.setAttribute(A.AttributeNames.HTTP_STATUS_TEXT,t.statusText),e.setAttribute(g.ATTR_HTTP_HOST,n.host),e.setAttribute(g.ATTR_HTTP_SCHEME,n.protocol.replace(":","")),"undefined"!=typeof navigator&&e.setAttribute(g.ATTR_HTTP_USER_AGENT,navigator.userAgent)),this._semconvStability&c.SemconvStability.STABLE){e.setAttribute(f.ATTR_HTTP_RESPONSE_STATUS_CODE,t.status),e.setAttribute(f.ATTR_SERVER_ADDRESS,n.hostname);const s=(0,_.serverPortFromUrl)(n);s&&e.setAttribute(f.ATTR_SERVER_PORT,s)}}_addHeaders(e,t){if(!h.shouldPropagateTraceHeaders(t,this.getConfig().propagateTraceHeaderCorsUrls)){const e={};return o.propagation.inject(r.context.active(),e),void(Object.keys(e).length>0&&this._diag.debug("headers inject skipped due to CORS policy"))}if(e instanceof Request)o.propagation.inject(r.context.active(),e.headers,{set:(e,t,n)=>e.set(t,"string"==typeof n?n:String(n))});else if(e.headers instanceof Headers)o.propagation.inject(r.context.active(),e.headers,{set:(e,t,n)=>e.set(t,"string"==typeof n?n:String(n))});else if(e.headers instanceof Map)o.propagation.inject(r.context.active(),e.headers,{set:(e,t,n)=>e.set(t,"string"==typeof n?n:String(n))});else{const t={};o.propagation.inject(r.context.active(),t),e.headers=Object.assign({},t,e.headers||{})}}_clearResources(){0===this._tasksCount&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)}_createSpan(e,t={}){if(d.isUrlIgnored(e,this.getConfig().ignoreUrls))return void this._diag.debug("ignoring span as url matches ignored url");let n="";const s={};if(this._semconvStability&c.SemconvStability.OLD){const r=(t.method||"GET").toUpperCase();n=`HTTP ${r}`,s[A.AttributeNames.COMPONENT]=this.moduleName,s[g.ATTR_HTTP_METHOD]=r,s[g.ATTR_HTTP_URL]=e}if(this._semconvStability&c.SemconvStability.STABLE){const r=t.method,o=(0,_.normalizeHttpRequestMethod)(t.method||"GET");n||(n=o),s[f.ATTR_HTTP_REQUEST_METHOD]=o,o!==r&&(s[f.ATTR_HTTP_REQUEST_METHOD_ORIGINAL]=r),s[f.ATTR_URL_FULL]=e}return this.tracer.startSpan(n,{kind:i.SpanKind.CLIENT,attributes:s})}_findResourceAndAddNetworkEvents(e,t,n){let s=t.entries;if(!s.length){if(!performance.getEntriesByType)return;s=performance.getEntriesByType("resource")}const r=h.getResource(t.spanUrl,t.startTime,n,s,this._usedResources,"fetch");if(r.mainRequest){const t=r.mainRequest;this._markResourceAsUsed(t);const n=r.corsPreFlightRequest;n&&(this._addChildSpan(e,n),this._markResourceAsUsed(n));const s=!(this._semconvStability&c.SemconvStability.OLD);h.addSpanNetworkEvents(e,t,this.getConfig().ignoreNetworkEvents,void 0,s)}}_markResourceAsUsed(e){this._usedResources.add(e)}_endSpan(e,t,n){const s=p.millisToHrTime(Date.now()),r=p.hrTime();this._addFinalSpanAttributes(e,n),this._semconvStability&c.SemconvStability.STABLE&&n.status>=400&&(e.setStatus({code:a.SpanStatusCode.ERROR}),e.setAttribute(f.ATTR_ERROR_TYPE,String(n.status))),setTimeout(()=>{t.observer?.disconnect(),this._findResourceAndAddNetworkEvents(e,t,r),this._tasksCount--,this._clearResources(),e.end(s)},300)}_patchConstructor(){return e=>{const t=this;return function(...n){const o=this,i=h.parseUrl(n[0]instanceof Request?n[0].url:String(n[0])).href,a=n[0]instanceof Request?n[0]:n[1]||{},l=t._createSpan(i,a);if(!l)return e.apply(this,n);const u=t._prepareSpanData(i);function d(e,n){t._applyAttributesAfterFetch(e,a,n),t._endSpan(e,u,{status:n.status||0,statusText:n.message,url:i})}function p(e,n){t._applyAttributesAfterFetch(e,a,n),n.status>=200&&n.status<400?t._endSpan(e,u,n):t._endSpan(e,u,{status:n.status,statusText:n.statusText,url:i})}function m(e,t,n){try{const t=n.clone().body;if(t){const s=t.getReader(),r=()=>{s.read().then(({done:t})=>{t?p(e,n):r()},t=>{d(e,t)})};r()}else p(e,n)}finally{t(n)}}function A(e,t,n){try{d(e,n)}finally{t(n)}}return t.getConfig().measureRequestSize&&(0,_.getFetchBodyLength)(...n).then(e=>{e&&(t._semconvStability&c.SemconvStability.OLD&&l.setAttribute(g.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED,e),t._semconvStability&c.SemconvStability.STABLE&&l.setAttribute(g.ATTR_HTTP_REQUEST_BODY_SIZE,e))}).catch(e=>{t._diag.warn("getFetchBodyLength",e)}),new Promise((n,c)=>r.context.with(s.trace.setSpan(r.context.active(),l),()=>(t._addHeaders(a,i),t._callRequestHook(l,a),t._tasksCount++,e.apply(o,a instanceof Request?[a]:[i,a]).then(m.bind(o,l,n),A.bind(o,l,c)))))}}}_applyAttributesAfterFetch(e,t,n){const s=this.getConfig().applyCustomAttributesOnSpan;s&&(0,u.safeExecuteInTheMiddle)(()=>s(e,t,n),e=>{e&&this._diag.error("applyCustomAttributesOnSpan",e)},!0)}_callRequestHook(e,t){const n=this.getConfig().requestHook;n&&(0,u.safeExecuteInTheMiddle)(()=>n(e,t),e=>{e&&this._diag.error("requestHook",e)},!0)}_prepareSpanData(e){const t=p.hrTime(),n=[];if("function"!=typeof PerformanceObserver)return{entries:n,startTime:t,spanUrl:e};const s=new PerformanceObserver(t=>{t.getEntries().forEach(t=>{"fetch"===t.initiatorType&&t.name===e&&n.push(t)})});return s.observe({entryTypes:["resource"]}),{entries:n,observer:s,startTime:t,spanUrl:e}}enable(){y?this._diag.warn("this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()"):((0,u.isWrapped)(fetch)&&(this._unwrap(b._globalThis,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(b._globalThis,"fetch",this._patchConstructor()))}disable(){y||(this._unwrap(b._globalThis,"fetch"),this._usedResources=new WeakSet)}}},"../../node_modules/@opentelemetry/instrumentation-fetch/build/esm/utils.js":(e,t,n)=>{"use strict";n.d(t,{getFetchBodyLength:()=>i,normalizeHttpRequestMethod:()=>c,serverPortFromUrl:()=>h});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),r=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/environment.js");const o=s.diag.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-fetch/utils"});function i(...e){if(e[0]instanceof URL||"string"==typeof e[0]){const t=e[1];if(!t?.body)return Promise.resolve();if(t.body instanceof ReadableStream){const{body:e,length:n}=function(e){if(!e.pipeThrough)return o.warn("Platform has ReadableStream but not pipeThrough!"),{body:e,length:Promise.resolve(void 0)};let t,n=0;const s=new Promise(e=>{t=e}),r=new TransformStream({start(){},async transform(e,t){const s=await e;n+=s.byteLength,t.enqueue(e)},flush(){t(n)}});return{body:e.pipeThrough(r),length:s}}(t.body);return t.body=e,n}return Promise.resolve(function(e){if(t=e,"undefined"!=typeof Document&&t instanceof Document)return(new XMLSerializer).serializeToString(document).length;var t;if("string"==typeof e)return l(e);if(e instanceof Blob)return e.size;if(e instanceof FormData)return function(e){let t=0;for(const[n,s]of e.entries())t+=n.length,s instanceof Blob?t+=s.size:t+=s.length;return t}(e);if(e instanceof URLSearchParams)return l(e.toString());if(void 0!==e.byteLength)return e.byteLength;return void o.warn("unknown body type")}(t.body))}{const t=e[0];return t?.body?t.clone().text().then(e=>l(e)):Promise.resolve()}}const a=new TextEncoder;function l(e){return a.encode(e).byteLength}function c(e){const t=p(),n=e.toUpperCase();return n in t?n:"_OTHER"}const u={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0};let d;function p(){if(void 0===d){const e=(0,r.getStringListFromEnv)("OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS");e&&e.length>0?(d={},e.forEach(e=>{d[e]=!0})):d=u}return d}const m={"https:":"443","http:":"80"};function h(e){const t=Number(e.port||m[e.protocol]);return t&&!isNaN(t)?t:void 0}},"../../node_modules/@opentelemetry/instrumentation-fetch/build/esm/version.js":(e,t,n)=>{"use strict";n.d(t,{VERSION:()=>s});const s="0.203.0"},"../../node_modules/@opentelemetry/instrumentation-fetch/build/src/semconv.js":(e,t)=>{"use strict";t.ATTR_HTTP_USER_AGENT=t.ATTR_HTTP_URL=t.ATTR_HTTP_STATUS_CODE=t.ATTR_HTTP_SCHEME=t.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED=t.ATTR_HTTP_REQUEST_BODY_SIZE=t.ATTR_HTTP_METHOD=t.ATTR_HTTP_HOST=void 0,t.ATTR_HTTP_HOST="http.host",t.ATTR_HTTP_METHOD="http.method",t.ATTR_HTTP_REQUEST_BODY_SIZE="http.request.body.size",t.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED="http.request_content_length_uncompressed",t.ATTR_HTTP_SCHEME="http.scheme",t.ATTR_HTTP_STATUS_CODE="http.status_code",t.ATTR_HTTP_URL="http.url",t.ATTR_HTTP_USER_AGENT="http.user_agent"},"../../node_modules/@opentelemetry/instrumentation-user-interaction/build/esm/enums/AttributeNames.js":(e,t,n)=>{"use strict";var s;n.d(t,{AttributeNames:()=>s}),function(e){e.EVENT_TYPE="event_type",e.TARGET_ELEMENT="target_element",e.TARGET_XPATH="target_xpath",e.HTTP_URL="http.url"}(s||(s={}))},"../../node_modules/@opentelemetry/instrumentation-user-interaction/build/esm/instrumentation.js":(e,t,n)=>{"use strict";n.d(t,{UserInteractionInstrumentation:()=>m});var s=n("../../node_modules/@opentelemetry/instrumentation/build/esm/platform/browser/instrumentation.js"),r=n("../../node_modules/@opentelemetry/instrumentation/build/esm/utils.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),a=n("../../node_modules/@opentelemetry/core/build/esm/common/time.js"),l=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/utils.js"),c=n("../../node_modules/@opentelemetry/instrumentation-user-interaction/build/esm/enums/AttributeNames.js"),u=n("../../node_modules/@opentelemetry/instrumentation-user-interaction/build/esm/version.js");const d=["click"];function p(){return!1}class m extends s.InstrumentationBase{version=u.PACKAGE_VERSION;moduleName="user-interaction";_spansData=new WeakMap;_wrappedListeners=new WeakMap;_eventsSpanMap=new WeakMap;_eventNames;_shouldPreventSpanCreation;constructor(e={}){super(u.PACKAGE_NAME,u.PACKAGE_VERSION,e),this._eventNames=new Set(e?.eventNames??d),this._shouldPreventSpanCreation="function"==typeof e?.shouldPreventSpanCreation?e.shouldPreventSpanCreation:p}init(){}_checkForTimeout(e,t){const n=this._spansData.get(t);n&&("setTimeout"===e.source?n.hrTimeLastTimeout=(0,a.hrTime)():"Promise.then"!==e.source&&"setTimeout"!==e.source&&(n.hrTimeLastTimeout=void 0))}_allowEventName(e){return this._eventNames.has(e)}_createSpan(e,t,n){if(!(e instanceof HTMLElement))return;if(!e.getAttribute)return;if(e.hasAttribute("disabled"))return;if(!this._allowEventName(t))return;const s=(0,l.getElementXPath)(e,!0);try{const r=this.tracer.startSpan(t,{attributes:{[c.AttributeNames.EVENT_TYPE]:t,[c.AttributeNames.TARGET_ELEMENT]:e.tagName,[c.AttributeNames.TARGET_XPATH]:s,[c.AttributeNames.HTTP_URL]:window.location.href}},n?o.trace.setSpan(i.context.active(),n):void 0);if(!0===this._shouldPreventSpanCreation(t,e,r))return;return this._spansData.set(r,{taskCount:0}),r}catch(e){this._diag.error("failed to start create new user interaction span",e)}}_decrementTask(e){const t=this._spansData.get(e);t&&(t.taskCount--,0===t.taskCount&&this._tryToEndSpan(e,t.hrTimeLastTimeout))}_getCurrentSpan(e){const t=e.get("OT_ZONE_CONTEXT");return t?o.trace.getSpan(t):t}_incrementTask(e){const t=this._spansData.get(e);t&&t.taskCount++}addPatchedListener(e,t,n,s){let r=this._wrappedListeners.get(n);r||(r=new Map,this._wrappedListeners.set(n,r));let o=r.get(t);return o||(o=new Map,r.set(t,o)),!o.has(e)&&(o.set(e,s),!0)}removePatchedListener(e,t,n){const s=this._wrappedListeners.get(n);if(!s)return;const r=s.get(t);if(!r)return;const o=r.get(e);return o&&(r.delete(e),0===r.size&&(s.delete(t),0===s.size&&this._wrappedListeners.delete(n))),o}_invokeListener(e,t,n){return"function"==typeof e?e.apply(t,n):e.handleEvent(n[0])}_patchAddEventListener(){const e=this;return t=>function(n,s,r){if(!s)return t.call(this,n,s,r);const a=r&&"object"==typeof r&&r.once,l=function(...t){let r;const l=t[0],c=l?.target;l&&(r=e._eventsSpanMap.get(l)),a&&e.removePatchedListener(this,n,s);const u=e._createSpan(c,n,r);return u?(l&&e._eventsSpanMap.set(l,u),i.context.with(o.trace.setSpan(i.context.active(),u),()=>{const n=e._invokeListener(s,this,t);return u.end(),n})):e._invokeListener(s,this,t)};return e.addPatchedListener(this,n,s,l)?t.call(this,n,l,r):void 0}}_patchRemoveEventListener(){const e=this;return t=>function(n,s,r){const o=e.removePatchedListener(this,n,s);return o?t.call(this,n,o,r):t.call(this,n,s,r)}}_getPatchableEventTargets(){return window.EventTarget?[EventTarget.prototype]:[Node.prototype,Window.prototype]}_patchHistoryApi(){this._unpatchHistoryApi(),this._wrap(history,"replaceState",this._patchHistoryMethod()),this._wrap(history,"pushState",this._patchHistoryMethod()),this._wrap(history,"back",this._patchHistoryMethod()),this._wrap(history,"forward",this._patchHistoryMethod()),this._wrap(history,"go",this._patchHistoryMethod())}_patchHistoryMethod(){const e=this;return t=>function(...n){const s=`${location.pathname}${location.hash}${location.search}`,r=t.apply(this,n),o=`${location.pathname}${location.hash}${location.search}`;return s!==o&&e._updateInteractionName(o),r}}_unpatchHistoryApi(){(0,r.isWrapped)(history.replaceState)&&this._unwrap(history,"replaceState"),(0,r.isWrapped)(history.pushState)&&this._unwrap(history,"pushState"),(0,r.isWrapped)(history.back)&&this._unwrap(history,"back"),(0,r.isWrapped)(history.forward)&&this._unwrap(history,"forward"),(0,r.isWrapped)(history.go)&&this._unwrap(history,"go")}_updateInteractionName(e){const t=o.trace.getSpan(i.context.active());t&&"function"==typeof t.updateName&&t.updateName(`Navigation: ${e}`)}_patchZoneCancelTask(){const e=this;return t=>function(n){const s=Zone.current,r=e._getCurrentSpan(s);return r&&e._shouldCountTask(n,s)&&e._decrementTask(r),t.call(this,n)}}_patchZoneScheduleTask(){const e=this;return t=>function(n){const s=Zone.current,r=e._getCurrentSpan(s);return r&&e._shouldCountTask(n,s)&&(e._incrementTask(r),e._checkForTimeout(n,r)),t.call(this,n)}}_patchZoneRunTask(){const e=this;return t=>function(n,s,r){const a=Array.isArray(r)&&r[0]instanceof Event?r[0]:void 0,l=a?.target;let c;const u=this;if(l){if(c=e._createSpan(l,n.eventName),c)return e._incrementTask(c),u.run(()=>{try{return i.context.with(o.trace.setSpan(i.context.active(),c),()=>{const e=Zone.current;return n._zone=e,t.call(e,n,s,r)})}finally{e._decrementTask(c)}})}else c=e._getCurrentSpan(u);try{return t.call(u,n,s,r)}finally{c&&e._shouldCountTask(n,u)&&e._decrementTask(c)}}}_shouldCountTask(e,t){if(e._zone&&(t=e._zone),!t||!e.data||e.data.isPeriodic)return!1;const n=this._getCurrentSpan(t);return!!n&&(!!this._spansData.get(n)&&("macroTask"===e.type||"microTask"===e.type))}_tryToEndSpan(e,t){if(e){this._spansData.get(e)&&(e.end(t),this._spansData.delete(e))}}enable(){const e=this._getZoneWithPrototype();if(this._diag.debug("applying patch to",this.moduleName,this.version,"zone:",!!e),e)(0,r.isWrapped)(e.prototype.runTask)&&(this._unwrap(e.prototype,"runTask"),this._diag.debug("removing previous patch from method runTask")),(0,r.isWrapped)(e.prototype.scheduleTask)&&(this._unwrap(e.prototype,"scheduleTask"),this._diag.debug("removing previous patch from method scheduleTask")),(0,r.isWrapped)(e.prototype.cancelTask)&&(this._unwrap(e.prototype,"cancelTask"),this._diag.debug("removing previous patch from method cancelTask")),this._zonePatched=!0,this._wrap(e.prototype,"runTask",this._patchZoneRunTask()),this._wrap(e.prototype,"scheduleTask",this._patchZoneScheduleTask()),this._wrap(e.prototype,"cancelTask",this._patchZoneCancelTask());else{this._zonePatched=!1;this._getPatchableEventTargets().forEach(e=>{(0,r.isWrapped)(e.addEventListener)&&(this._unwrap(e,"addEventListener"),this._diag.debug("removing previous patch from method addEventListener")),(0,r.isWrapped)(e.removeEventListener)&&(this._unwrap(e,"removeEventListener"),this._diag.debug("removing previous patch from method removeEventListener")),this._wrap(e,"addEventListener",this._patchAddEventListener()),this._wrap(e,"removeEventListener",this._patchRemoveEventListener())})}this._patchHistoryApi()}disable(){const e=this._getZoneWithPrototype();if(this._diag.debug("removing patch from",this.moduleName,this.version,"zone:",!!e),e&&this._zonePatched)(0,r.isWrapped)(e.prototype.runTask)&&this._unwrap(e.prototype,"runTask"),(0,r.isWrapped)(e.prototype.scheduleTask)&&this._unwrap(e.prototype,"scheduleTask"),(0,r.isWrapped)(e.prototype.cancelTask)&&this._unwrap(e.prototype,"cancelTask");else{this._getPatchableEventTargets().forEach(e=>{(0,r.isWrapped)(e.addEventListener)&&this._unwrap(e,"addEventListener"),(0,r.isWrapped)(e.removeEventListener)&&this._unwrap(e,"removeEventListener")})}this._unpatchHistoryApi()}_getZoneWithPrototype(){return window.Zone}}},"../../node_modules/@opentelemetry/instrumentation-user-interaction/build/esm/version.js":(e,t,n)=>{"use strict";n.d(t,{PACKAGE_NAME:()=>r,PACKAGE_VERSION:()=>s});const s="0.48.0",r="@opentelemetry/instrumentation-user-interaction"},"../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/enums/AttributeNames.js":(e,t,n)=>{"use strict";var s;n.d(t,{AttributeNames:()=>s}),function(e){e.HTTP_STATUS_TEXT="http.status_text"}(s||(s={}))},"../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/enums/EventNames.js":(e,t,n)=>{"use strict";var s;n.d(t,{EventNames:()=>s}),function(e){e.METHOD_OPEN="open",e.METHOD_SEND="send",e.EVENT_ABORT="abort",e.EVENT_ERROR="error",e.EVENT_LOAD="loaded",e.EVENT_TIMEOUT="timeout"}(s||(s={}))},"../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/semconv.js":(e,t,n)=>{"use strict";n.d(t,{ATTR_HTTP_HOST:()=>s,ATTR_HTTP_METHOD:()=>r,ATTR_HTTP_REQUEST_BODY_SIZE:()=>o,ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>i,ATTR_HTTP_SCHEME:()=>a,ATTR_HTTP_STATUS_CODE:()=>l,ATTR_HTTP_URL:()=>c,ATTR_HTTP_USER_AGENT:()=>u});const s="http.host",r="http.method",o="http.request.body.size",i="http.request_content_length_uncompressed",a="http.scheme",l="http.status_code",c="http.url",u="http.user_agent"},"../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/utils.js":(e,t,n)=>{"use strict";n.d(t,{getXHRBodyLength:()=>i,normalizeHttpRequestMethod:()=>c,serverPortFromUrl:()=>h});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),r=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/environment.js");const o=s.diag.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-xml-http-request/utils"});function i(e){return t=e,"undefined"!=typeof Document&&t instanceof Document?(new XMLSerializer).serializeToString(document).length:"string"==typeof e?l(e):e instanceof Blob?e.size:e instanceof FormData?function(e){let t=0;for(const[n,s]of e.entries())t+=n.length,s instanceof Blob?t+=s.size:t+=s.length;return t}(e):e instanceof URLSearchParams?l(e.toString()):void 0!==e.byteLength?e.byteLength:void o.warn("unknown body type");var t}const a=new TextEncoder;function l(e){return a.encode(e).byteLength}function c(e){const t=p(),n=e.toUpperCase();return n in t?n:"_OTHER"}const u={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0};let d;function p(){if(void 0===d){const e=(0,r.getStringListFromEnv)("OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS");e&&e.length>0?(d={},e.forEach(e=>{d[e]=!0})):d=u}return d}const m={"https:":"443","http:":"80"};function h(e){const t=Number(e.port||m[e.protocol]);return t&&!isNaN(t)?t:void 0}},"../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/version.js":(e,t,n)=>{"use strict";n.d(t,{VERSION:()=>s});const s="0.203.0"},"../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/xhr.js":(e,t,n)=>{"use strict";n.d(t,{XMLHttpRequestInstrumentation:()=>T});var s=n("../../node_modules/@opentelemetry/api/build/esm/propagation-api.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/trace/span_kind.js"),a=n("../../node_modules/@opentelemetry/api/build/esm/trace/status.js"),l=n("../../node_modules/@opentelemetry/instrumentation/build/esm/platform/browser/instrumentation.js"),c=n("../../node_modules/@opentelemetry/instrumentation/build/esm/semconvStability.js"),u=n("../../node_modules/@opentelemetry/instrumentation/build/esm/utils.js"),d=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js"),p=n("../../node_modules/@opentelemetry/core/build/esm/utils/url.js"),m=n("../../node_modules/@opentelemetry/core/build/esm/common/time.js"),h=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/utils.js"),A=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/enums/PerformanceTimingNames.js"),g=n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js"),f=n("../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/semconv.js"),_=n("../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/enums/EventNames.js"),E=n("../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/utils.js"),b=n("../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/version.js"),y=n("../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/enums/AttributeNames.js");class T extends l.InstrumentationBase{component="xml-http-request";version=b.VERSION;moduleName=this.component;_tasksCount=0;_xhrMem=new WeakMap;_usedResources=new WeakSet;_semconvStability;constructor(e={}){super("@opentelemetry/instrumentation-xml-http-request",b.VERSION,e),this._semconvStability=(0,c.semconvStabilityFromStr)("http",e?.semconvStabilityOptIn)}init(){}_addHeaders(e,t){const n=(0,h.parseUrl)(t).href;if(!(0,h.shouldPropagateTraceHeaders)(n,this.getConfig().propagateTraceHeaderCorsUrls)){const e={};return s.propagation.inject(r.context.active(),e),void(Object.keys(e).length>0&&this._diag.debug("headers inject skipped due to CORS policy"))}const o={};s.propagation.inject(r.context.active(),o),Object.keys(o).forEach(t=>{e.setRequestHeader(t,String(o[t]))})}_addChildSpan(e,t){r.context.with(o.trace.setSpan(r.context.active(),e),()=>{const e=this.tracer.startSpan("CORS Preflight",{startTime:t[A.PerformanceTimingNames.FETCH_START]}),n=!(this._semconvStability&c.SemconvStability.OLD);(0,h.addSpanNetworkEvents)(e,t,this.getConfig().ignoreNetworkEvents,void 0,n),e.end(t[A.PerformanceTimingNames.RESPONSE_END])})}_addFinalSpanAttributes(e,t,n){if(this._semconvStability&c.SemconvStability.OLD){if(void 0!==t.status&&e.setAttribute(f.ATTR_HTTP_STATUS_CODE,t.status),void 0!==t.statusText&&e.setAttribute(y.AttributeNames.HTTP_STATUS_TEXT,t.statusText),"string"==typeof n){const t=(0,h.parseUrl)(n);e.setAttribute(f.ATTR_HTTP_HOST,t.host),e.setAttribute(f.ATTR_HTTP_SCHEME,t.protocol.replace(":",""))}e.setAttribute(f.ATTR_HTTP_USER_AGENT,navigator.userAgent)}this._semconvStability&c.SemconvStability.STABLE&&t.status&&e.setAttribute(g.ATTR_HTTP_RESPONSE_STATUS_CODE,t.status)}_applyAttributesAfterXHR(e,t){const n=this.getConfig().applyCustomAttributesOnSpan;"function"==typeof n&&(0,u.safeExecuteInTheMiddle)(()=>n(e,t),e=>{e&&this._diag.error("applyCustomAttributesOnSpan",e)},!0)}_addResourceObserver(e,t){const n=this._xhrMem.get(e);n&&"function"==typeof PerformanceObserver&&"function"==typeof PerformanceResourceTiming&&(n.createdResources={observer:new PerformanceObserver(e=>{const s=e.getEntries(),r=(0,h.parseUrl)(t);s.forEach(e=>{"xmlhttprequest"===e.initiatorType&&e.name===r.href&&n.createdResources&&n.createdResources.entries.push(e)})}),entries:[]},n.createdResources.observer.observe({entryTypes:["resource"]}))}_clearResources(){0===this._tasksCount&&this.getConfig().clearTimingResources&&(d.otperformance.clearResourceTimings(),this._xhrMem=new WeakMap,this._usedResources=new WeakSet)}_findResourceAndAddNetworkEvents(e,t,n,s,r){if(!(n&&s&&r&&e.createdResources))return;let o=e.createdResources.entries;o&&o.length||(o=d.otperformance.getEntriesByType("resource"));const i=(0,h.getResource)((0,h.parseUrl)(n).href,s,r,o,this._usedResources);if(i.mainRequest){const e=i.mainRequest;this._markResourceAsUsed(e);const n=i.corsPreFlightRequest;n&&(this._addChildSpan(t,n),this._markResourceAsUsed(n));const s=!(this._semconvStability&c.SemconvStability.OLD);(0,h.addSpanNetworkEvents)(t,e,this.getConfig().ignoreNetworkEvents,void 0,s)}}_cleanPreviousSpanInformation(e){const t=this._xhrMem.get(e);if(t){const n=t.callbackToRemoveEvents;n&&n(),this._xhrMem.delete(e)}}_createSpan(e,t,n){if((0,p.isUrlIgnored)(t,this.getConfig().ignoreUrls))return void this._diag.debug("ignoring span as url matches ignored url");let s="";const r=(0,h.parseUrl)(t),o={};if(this._semconvStability&c.SemconvStability.OLD&&(s=n.toUpperCase(),o[f.ATTR_HTTP_METHOD]=n,o[f.ATTR_HTTP_URL]=r.toString()),this._semconvStability&c.SemconvStability.STABLE){const e=n,t=(0,E.normalizeHttpRequestMethod)(n);s||(s=t),o[g.ATTR_HTTP_REQUEST_METHOD]=t,t!==e&&(o[g.ATTR_HTTP_REQUEST_METHOD_ORIGINAL]=e),o[g.ATTR_URL_FULL]=r.toString(),o[g.ATTR_SERVER_ADDRESS]=r.hostname;const i=(0,E.serverPortFromUrl)(r);i&&(o[g.ATTR_SERVER_PORT]=i)}const a=this.tracer.startSpan(s,{kind:i.SpanKind.CLIENT,attributes:o});return a.addEvent(_.EventNames.METHOD_OPEN),this._cleanPreviousSpanInformation(e),this._xhrMem.set(e,{span:a,spanUrl:t}),a}_markResourceAsUsed(e){this._usedResources.add(e)}_patchOpen(){return e=>{const t=this;return function(...n){const s=n[0],r=n[1];return t._createSpan(this,r,s),e.apply(this,n)}}}_patchSend(){const e=this;function t(t,n,s,r){const o=e._xhrMem.get(n);if(!o)return;if(o.status=n.status,o.statusText=n.statusText,e._xhrMem.delete(n),o.span){const t=o.span;e._applyAttributesAfterXHR(t,n),e._semconvStability&c.SemconvStability.STABLE&&(s?r&&(t.setStatus({code:a.SpanStatusCode.ERROR,message:r}),t.setAttribute(g.ATTR_ERROR_TYPE,r)):o.status&&o.status>=400&&(t.setStatus({code:a.SpanStatusCode.ERROR}),t.setAttribute(g.ATTR_ERROR_TYPE,String(o.status))))}const i=(0,m.hrTime)(),l=Date.now();setTimeout(()=>{!function(t,n,s,r){const o=n.callbackToRemoveEvents;"function"==typeof o&&o();const{span:i,spanUrl:a,sendStartTime:l}=n;i&&(e._findResourceAndAddNetworkEvents(n,i,a,l,s),i.addEvent(t,r),e._addFinalSpanAttributes(i,n,a),i.end(r),e._tasksCount--),e._clearResources()}(t,o,i,l)},300)}function n(){t(_.EventNames.EVENT_ERROR,this,!0,"error")}function s(){t(_.EventNames.EVENT_ABORT,this,!1)}function i(){t(_.EventNames.EVENT_TIMEOUT,this,!0,"timeout")}function l(){this.status<299?t(_.EventNames.EVENT_LOAD,this,!1):t(_.EventNames.EVENT_ERROR,this,!1)}return t=>function(...a){const u=e._xhrMem.get(this);if(!u)return t.apply(this,a);const d=u.span,p=u.spanUrl;if(d&&p){if(e.getConfig().measureRequestSize&&a?.[0]){const t=a[0],n=(0,E.getXHRBodyLength)(t);void 0!==n&&(e._semconvStability&c.SemconvStability.OLD&&d.setAttribute(f.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED,n),e._semconvStability&c.SemconvStability.STABLE&&d.setAttribute(f.ATTR_HTTP_REQUEST_BODY_SIZE,n))}r.context.with(o.trace.setSpan(r.context.active(),d),()=>{e._tasksCount++,u.sendStartTime=(0,m.hrTime)(),d.addEvent(_.EventNames.METHOD_SEND),this.addEventListener("abort",s),this.addEventListener("error",n),this.addEventListener("load",l),this.addEventListener("timeout",i),u.callbackToRemoveEvents=()=>{!function(t){t.removeEventListener("abort",s),t.removeEventListener("error",n),t.removeEventListener("load",l),t.removeEventListener("timeout",i);const r=e._xhrMem.get(t);r&&(r.callbackToRemoveEvents=void 0)}(this),u.createdResources&&u.createdResources.observer.disconnect()},e._addHeaders(this,p),e._addResourceObserver(this,p)})}return t.apply(this,a)}}enable(){this._diag.debug("applying patch to",this.moduleName,this.version),(0,u.isWrapped)(XMLHttpRequest.prototype.open)&&(this._unwrap(XMLHttpRequest.prototype,"open"),this._diag.debug("removing previous patch from method open")),(0,u.isWrapped)(XMLHttpRequest.prototype.send)&&(this._unwrap(XMLHttpRequest.prototype,"send"),this._diag.debug("removing previous patch from method send")),this._wrap(XMLHttpRequest.prototype,"open",this._patchOpen()),this._wrap(XMLHttpRequest.prototype,"send",this._patchSend())}disable(){this._diag.debug("removing patch from",this.moduleName,this.version),this._unwrap(XMLHttpRequest.prototype,"open"),this._unwrap(XMLHttpRequest.prototype,"send"),this._tasksCount=0,this._xhrMem=new WeakMap,this._usedResources=new WeakSet}}},"../../node_modules/@opentelemetry/instrumentation/build/esm/autoLoader.js":(e,t,n)=>{"use strict";n.d(t,{registerInstrumentations:()=>a});var s=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/metrics-api.js"),o=n("../../node_modules/@opentelemetry/api-logs/build/esm/index.js"),i=n("../../node_modules/@opentelemetry/instrumentation/build/esm/autoLoaderUtils.js");function a(e){const t=e.tracerProvider||s.trace.getTracerProvider(),n=e.meterProvider||r.metrics.getMeterProvider(),a=e.loggerProvider||o.logs.getLoggerProvider(),l=e.instrumentations?.flat()??[];return(0,i.enableInstrumentations)(l,t,n,a),()=>{(0,i.disableInstrumentations)(l)}}},"../../node_modules/@opentelemetry/instrumentation/build/esm/autoLoaderUtils.js":(e,t,n)=>{"use strict";function s(e,t,n,s){for(let r=0,o=e.length;r<o;r++){const o=e[r];t&&o.setTracerProvider(t),n&&o.setMeterProvider(n),s&&o.setLoggerProvider&&o.setLoggerProvider(s),o.getConfig().enabled||o.enable()}}function r(e){e.forEach(e=>e.disable())}n.d(t,{disableInstrumentations:()=>r,enableInstrumentations:()=>s})},"../../node_modules/@opentelemetry/instrumentation/build/esm/instrumentation.js":(e,t,n)=>{"use strict";n.d(t,{InstrumentationAbstract:()=>l});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/metrics-api.js"),i=n("../../node_modules/@opentelemetry/api-logs/build/esm/index.js"),a=n("../../node_modules/@opentelemetry/instrumentation/build/esm/shimmer.js");class l{instrumentationName;instrumentationVersion;_config={};_tracer;_meter;_logger;_diag;constructor(e,t,n){this.instrumentationName=e,this.instrumentationVersion=t,this.setConfig(n),this._diag=s.diag.createComponentLogger({namespace:e}),this._tracer=r.trace.getTracer(e,t),this._meter=o.metrics.getMeter(e,t),this._logger=i.logs.getLogger(e,t),this._updateMetricInstruments()}_wrap=a.wrap;_unwrap=a.unwrap;_massWrap=a.massWrap;_massUnwrap=a.massUnwrap;get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){const e=this.init()??[];return Array.isArray(e)?e:[e]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config={enabled:!0,...e}}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,t,n,s){if(e)try{e(n,s)}catch(e){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:t},e)}}}},"../../node_modules/@opentelemetry/instrumentation/build/esm/platform/browser/instrumentation.js":(e,t,n)=>{"use strict";n.d(t,{InstrumentationBase:()=>r});var s=n("../../node_modules/@opentelemetry/instrumentation/build/esm/instrumentation.js");class r extends s.InstrumentationAbstract{constructor(e,t,n){super(e,t,n),this._config.enabled&&this.enable()}}},"../../node_modules/@opentelemetry/instrumentation/build/esm/semconvStability.js":(e,t,n)=>{"use strict";var s;function r(e,t){let n=s.OLD;const r=t?.split(",").map(e=>e.trim()).filter(e=>""!==e);for(const t of r??[]){if(t.toLowerCase()===e+"/dup"){n=s.DUPLICATE;break}t.toLowerCase()===e&&(n=s.STABLE)}return n}n.d(t,{SemconvStability:()=>s,semconvStabilityFromStr:()=>r}),function(e){e[e.STABLE=1]="STABLE",e[e.OLD=2]="OLD",e[e.DUPLICATE=3]="DUPLICATE"}(s||(s={}))},"../../node_modules/@opentelemetry/instrumentation/build/esm/shimmer.js":(e,t,n)=>{"use strict";n.d(t,{massUnwrap:()=>l,massWrap:()=>i,unwrap:()=>a,wrap:()=>o});let s=console.error.bind(console);function r(e,t,n){const s=!!e[t]&&Object.prototype.propertyIsEnumerable.call(e,t);Object.defineProperty(e,t,{configurable:!0,enumerable:s,writable:!0,value:n})}const o=(e,t,n)=>{if(!e||!e[t])return void s("no original function "+String(t)+" to wrap");if(!n)return s("no wrapper function"),void s((new Error).stack);const o=e[t];if("function"!=typeof o||"function"!=typeof n)return void s("original object and wrapper must be functions");const i=n(o,t);return r(i,"__original",o),r(i,"__unwrap",()=>{e[t]===i&&r(e,t,o)}),r(i,"__wrapped",!0),r(e,t,i),i},i=(e,t,n)=>{if(!e)return s("must provide one or more modules to patch"),void s((new Error).stack);Array.isArray(e)||(e=[e]),t&&Array.isArray(t)?e.forEach(e=>{t.forEach(t=>{o(e,t,n)})}):s("must provide one or more functions to wrap on modules")},a=(e,t)=>{if(!e||!e[t])return s("no function to unwrap."),void s((new Error).stack);const n=e[t];n.__unwrap?n.__unwrap():s("no original to unwrap to -- has "+String(t)+" already been unwrapped?")},l=(e,t)=>{if(!e)return s("must provide one or more modules to patch"),void s((new Error).stack);Array.isArray(e)||(e=[e]),t&&Array.isArray(t)?e.forEach(e=>{t.forEach(t=>{a(e,t)})}):s("must provide one or more functions to unwrap on modules")};function c(e){e&&e.logger&&("function"!=typeof e.logger?s("new logger isn't a function, not replacing"):s=e.logger)}c.wrap=o,c.massWrap=i,c.unwrap=a,c.massUnwrap=l},"../../node_modules/@opentelemetry/instrumentation/build/esm/utils.js":(e,t,n)=>{"use strict";function s(e,t,n){let s,r;try{r=e()}catch(e){s=e}finally{if(t(s,r),s&&!n)throw s;return r}}function r(e){return"function"==typeof e&&"function"==typeof e.__original&&"function"==typeof e.__unwrap&&!0===e.__wrapped}n.d(t,{isWrapped:()=>r,safeExecuteInTheMiddle:()=>s})},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/OTLPExporterBase.js":(e,t,n)=>{"use strict";n.d(t,{OTLPExporterBase:()=>s});class s{_delegate;constructor(e){this._delegate=e}export(e,t){this._delegate.export(e,t)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/bounded-queue-export-promise-handler.js":(e,t,n)=>{"use strict";n.d(t,{createBoundedQueueExportPromiseHandler:()=>r});class s{_concurrencyLimit;_sendingPromises=[];constructor(e){this._concurrencyLimit=e}pushPromise(e){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(e);const t=()=>{const t=this._sendingPromises.indexOf(e);this._sendingPromises.splice(t,1)};e.then(t,t)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function r(e){return new s(e.concurrencyLimit)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/convert-legacy-browser-http-options.js":(e,t,n)=>{"use strict";n.d(t,{convertLegacyBrowserHttpOptions:()=>o});var s=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/otlp-http-configuration.js"),r=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/shared-configuration.js");function o(e,t,n){return(0,s.mergeOtlpHttpConfigurationWithDefaults)({url:e.url,timeoutMillis:e.timeoutMillis,headers:(0,r.wrapStaticHeadersInFunction)(e.headers),concurrencyLimit:e.concurrencyLimit},{},(0,s.getHttpConfigurationDefaults)(n,t))}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/create-legacy-browser-delegate.js":(e,t,n)=>{"use strict";n.d(t,{createLegacyOtlpBrowserExportDelegate:()=>o});var s=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-browser-http-export-delegate.js"),r=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/convert-legacy-browser-http-options.js");function o(e,t,n,o){const i=!!e.headers||"function"!=typeof navigator.sendBeacon,a=(0,r.convertLegacyBrowserHttpOptions)(e,n,o);return i?(0,s.createOtlpXhrExportDelegate)(a,t):(0,s.createOtlpSendBeaconExportDelegate)(a,t)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/otlp-http-configuration.js":(e,t,n)=>{"use strict";n.d(t,{getHttpConfigurationDefaults:()=>l,mergeOtlpHttpConfigurationWithDefaults:()=>a});var s=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/shared-configuration.js"),r=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/util.js");function o(e,t,n){const s={...n()},r={};return()=>(null!=t&&Object.assign(r,t()),null!=e&&Object.assign(r,e()),Object.assign(r,s))}function i(e){if(null!=e)try{return new URL(e),e}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function a(e,t,n){return{...(0,s.mergeOtlpSharedConfigurationWithDefaults)(e,t,n),headers:o((0,r.validateAndNormalizeHeaders)(e.headers),t.headers,n.headers),url:i(e.url)??t.url??n.url,agentOptions:e.agentOptions??t.agentOptions??n.agentOptions}}function l(e,t){return{...(0,s.getSharedConfigurationDefaults)(),headers:()=>e,url:"http://localhost:4318/"+t,agentOptions:{keepAlive:!0}}}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/shared-configuration.js":(e,t,n)=>{"use strict";function s(e){if(Number.isFinite(e)&&e>0)return e;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function r(e){if(null!=e)return()=>e}function o(e,t,n){return{timeoutMillis:s(e.timeoutMillis??t.timeoutMillis??n.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??n.concurrencyLimit,compression:e.compression??t.compression??n.compression}}function i(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}n.d(t,{getSharedConfigurationDefaults:()=>i,mergeOtlpSharedConfigurationWithDefaults:()=>o,wrapStaticHeadersInFunction:()=>r})},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/is-export-retryable.js":(e,t,n)=>{"use strict";function s(e){return[429,502,503,504].includes(e)}function r(e){if(null==e)return;const t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?1e3*t:-1;const n=new Date(e).getTime()-Date.now();return n>=0?n:0}n.d(t,{isExportRetryable:()=>s,parseRetryAfterToMills:()=>r})},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/logging-response-handler.js":(e,t,n)=>{"use strict";n.d(t,{createLoggingPartialSuccessResponseHandler:()=>r});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js");function r(){return{handleResponse(e){null!=e&&function(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}(e)&&null!=e.partialSuccess&&0!==Object.keys(e.partialSuccess).length&&s.diag.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}}}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-browser-http-export-delegate.js":(e,t,n)=>{"use strict";n.d(t,{createOtlpSendBeaconExportDelegate:()=>l,createOtlpXhrExportDelegate:()=>a});var s=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/retrying-transport.js"),r=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/xhr-transport.js"),o=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/send-beacon-transport.js"),i=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-network-export-delegate.js");function a(e,t){return(0,i.createOtlpNetworkExportDelegate)(e,t,(0,s.createRetryingTransport)({transport:(0,r.createXhrTransport)(e)}))}function l(e,t){return(0,i.createOtlpNetworkExportDelegate)(e,t,(0,s.createRetryingTransport)({transport:(0,o.createSendBeaconTransport)({url:e.url,blobType:e.headers()["Content-Type"]})}))}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-export-delegate.js":(e,t,n)=>{"use strict";n.d(t,{createOtlpExportDelegate:()=>l});var s=n("../../node_modules/@opentelemetry/core/build/esm/ExportResult.js"),r=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/types.js"),o=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/logging-response-handler.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js");class a{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(e,t,n,s,r){this._transport=e,this._serializer=t,this._responseHandler=n,this._promiseQueue=s,this._timeout=r,this._diagLogger=i.diag.createComponentLogger({namespace:"OTLPExportDelegate"})}export(e,t){if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit())return void t({code:s.ExportResultCode.FAILED,error:new Error("Concurrent export limit reached")});const n=this._serializer.serializeRequest(e);null!=n?this._promiseQueue.pushPromise(this._transport.send(n,this._timeout).then(e=>{if("success"!==e.status)"failure"===e.status&&e.error?t({code:s.ExportResultCode.FAILED,error:e.error}):"retryable"===e.status?t({code:s.ExportResultCode.FAILED,error:new r.OTLPExporterError("Export failed with retryable status")}):t({code:s.ExportResultCode.FAILED,error:new r.OTLPExporterError("Export failed with unknown error")});else{if(null!=e.data)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(e.data))}catch(t){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",t,e.data)}t({code:s.ExportResultCode.SUCCESS})}},e=>t({code:s.ExportResultCode.FAILED,error:e}))):t({code:s.ExportResultCode.FAILED,error:new Error("Nothing to send")})}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function l(e,t){return new a(e.transport,e.serializer,(0,o.createLoggingPartialSuccessResponseHandler)(),e.promiseHandler,t.timeout)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-network-export-delegate.js":(e,t,n)=>{"use strict";n.d(t,{createOtlpNetworkExportDelegate:()=>o});var s=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/bounded-queue-export-promise-handler.js"),r=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-export-delegate.js");function o(e,t,n){return(0,r.createOtlpExportDelegate)({transport:n,serializer:t,promiseHandler:(0,s.createBoundedQueueExportPromiseHandler)(e)},{timeout:e.timeoutMillis})}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/retrying-transport.js":(e,t,n)=>{"use strict";n.d(t,{createRetryingTransport:()=>o});function s(){return.4*Math.random()-.2}class r{_transport;constructor(e){this._transport=e}retry(e,t,n){return new Promise((s,r)=>{setTimeout(()=>{this._transport.send(e,t).then(s,r)},n)})}async send(e,t){const n=Date.now()+t;let r=await this._transport.send(e,t),o=5,i=1e3;for(;"retryable"===r.status&&o>0;){o--;const t=Math.max(Math.min(i,5e3)+s(),0);i*=1.5;const a=r.retryInMillis??t,l=n-Date.now();if(a>l)return r;r=await this.retry(e,l,a)}return r}shutdown(){return this._transport.shutdown()}}function o(e){return new r(e.transport)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/send-beacon-transport.js":(e,t,n)=>{"use strict";n.d(t,{createSendBeaconTransport:()=>o});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js");class r{_params;constructor(e){this._params=e}send(e){return new Promise(t=>{navigator.sendBeacon(this._params.url,new Blob([e],{type:this._params.blobType}))?(s.diag.debug("SendBeacon success"),t({status:"success"})):t({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function o(e){return new r(e)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/xhr-transport.js":(e,t,n)=>{"use strict";n.d(t,{createXhrTransport:()=>i});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),r=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/is-export-retryable.js");class o{_parameters;constructor(e){this._parameters=e}send(e,t){return new Promise(n=>{const o=new XMLHttpRequest;o.timeout=t,o.open("POST",this._parameters.url);const i=this._parameters.headers();Object.entries(i).forEach(([e,t])=>{o.setRequestHeader(e,t)}),o.ontimeout=e=>{n({status:"failure",error:new Error("XHR request timed out")})},o.onreadystatechange=()=>{o.status>=200&&o.status<=299?(s.diag.debug("XHR success"),n({status:"success"})):o.status&&(0,r.isExportRetryable)(o.status)?n({status:"retryable",retryInMillis:(0,r.parseRetryAfterToMills)(o.getResponseHeader("Retry-After"))}):0!==o.status&&n({status:"failure",error:new Error("XHR request failed with non-retryable status")})},o.onabort=()=>{n({status:"failure",error:new Error("XHR request aborted")})},o.onerror=()=>{n({status:"failure",error:new Error("XHR request errored")})},o.send(e)})}shutdown(){}}function i(e){return new o(e)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/types.js":(e,t,n)=>{"use strict";n.d(t,{OTLPExporterError:()=>s});class s extends Error{code;name="OTLPExporterError";data;constructor(e,t,n){super(e),this.data=n,this.code=t}}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/util.js":(e,t,n)=>{"use strict";n.d(t,{validateAndNormalizeHeaders:()=>r});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js");function r(e){return()=>{const t={};return Object.entries(e?.()??{}).forEach(([e,n])=>{void 0!==n?t[e]=String(n):s.diag.warn(`Header "${e}" has invalid value (${n}) and will be ignored`)}),t}}},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/hex-to-binary.js":(e,t,n)=>{"use strict";function s(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function r(e){const t=new Uint8Array(e.length/2);let n=0;for(let r=0;r<e.length;r+=2){const o=s(e.charCodeAt(r)),i=s(e.charCodeAt(r+1));t[n++]=o<<4|i}return t}n.d(t,{hexToBinary:()=>r})},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/internal.js":(e,t,n)=>{"use strict";function s(e){return{attributes:o(e.attributes),droppedAttributesCount:0}}function r(e){return{name:e.name,version:e.version}}function o(e){return Object.keys(e).map(t=>i(t,e[t]))}function i(e,t){return{key:e,value:a(t)}}function a(e){const t=typeof e;return"string"===t?{stringValue:e}:"number"===t?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:"boolean"===t?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(a)}}:"object"===t&&null!=e?{kvlistValue:{values:Object.entries(e).map(([e,t])=>i(e,t))}}:{}}n.d(t,{createInstrumentationScope:()=>r,createResource:()=>s,toAttributes:()=>o})},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/utils.js":(e,t,n)=>{"use strict";n.d(t,{getOtlpEncoder:()=>d});var s=n("../../node_modules/@opentelemetry/core/build/esm/common/time.js"),r=n("../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/hex-to-binary.js");function o(e){const t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function i(e){const t=o(e);return n=t,{low:Number(BigInt.asUintN(32,n)),high:Number(BigInt.asUintN(32,n>>BigInt(32)))};var n}const a="undefined"!=typeof BigInt?function(e){return o(e).toString()}:s.hrTimeToNanoseconds;function l(e){return e}function c(e){if(void 0!==e)return(0,r.hexToBinary)(e)}const u={encodeHrTime:i,encodeSpanContext:r.hexToBinary,encodeOptionalSpanContext:c};function d(e){if(void 0===e)return u;const t=e.useLongBits??!0,n=e.useHex??!1;return{encodeHrTime:t?i:a,encodeSpanContext:n?l:r.hexToBinary,encodeOptionalSpanContext:n?l:c}}},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/trace/internal.js":(e,t,n)=>{"use strict";n.d(t,{createExportTraceServiceRequest:()=>i});var s=n("../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/internal.js"),r=n("../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/utils.js");function o(e,t){const n=e.spanContext(),r=e.status,o=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(n.traceId),spanId:t.encodeSpanContext(n.spanId),parentSpanId:o,traceState:n.traceState?.serialize(),name:e.name,kind:null==e.kind?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:(0,s.toAttributes)(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(e=>function(e,t){return{attributes:e.attributes?(0,s.toAttributes)(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}(e,t)),droppedEventsCount:e.droppedEventsCount,status:{code:r.code,message:r.message},links:e.links.map(e=>function(e,t){return{attributes:e.attributes?(0,s.toAttributes)(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}(e,t)),droppedLinksCount:e.droppedLinksCount}}function i(e,t){return{resourceSpans:a(e,(0,r.getOtlpEncoder)(t))}}function a(e,t){const n=function(e){const t=new Map;for(const n of e){let e=t.get(n.resource);e||(e=new Map,t.set(n.resource,e));const s=`${n.instrumentationScope.name}@${n.instrumentationScope.version||""}:${n.instrumentationScope.schemaUrl||""}`;let r=e.get(s);r||(r=[],e.set(s,r)),r.push(n)}return t}(e),r=[],i=n.entries();let a=i.next();for(;!a.done;){const[e,n]=a.value,l=[],c=n.values();let u=c.next();for(;!u.done;){const e=u.value;if(e.length>0){const n=e.map(e=>o(e,t));l.push({scope:(0,s.createInstrumentationScope)(e[0].instrumentationScope),spans:n,schemaUrl:e[0].instrumentationScope.schemaUrl})}u=c.next()}const d={resource:(0,s.createResource)(e),scopeSpans:l,schemaUrl:void 0};r.push(d),a=i.next()}return r}},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/trace/json/trace.js":(e,t,n)=>{"use strict";n.d(t,{JsonTraceSerializer:()=>r});var s=n("../../node_modules/@opentelemetry/otlp-transformer/build/esm/trace/internal.js");const r={serializeRequest:e=>{const t=(0,s.createExportTraceServiceRequest)(e,{useHex:!0,useLongBits:!1});return(new TextEncoder).encode(JSON.stringify(t))},deserializeResponse:e=>{if(0===e.length)return{};const t=new TextDecoder;return JSON.parse(t.decode(e))}}},"../../node_modules/@opentelemetry/resources/build/esm/ResourceImpl.js":(e,t,n)=>{"use strict";n.d(t,{defaultResource:()=>u,resourceFromAttributes:()=>c});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),r=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/sdk-info.js"),o=n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js"),i=n("../../node_modules/@opentelemetry/resources/build/esm/platform/browser/default-service-name.js"),a=n("../../node_modules/@opentelemetry/resources/build/esm/utils.js");class l{_rawAttributes;_asyncAttributesPending=!1;_memoizedAttributes;static FromAttributeList(e){const t=new l({});return t._rawAttributes=d(e),t._asyncAttributesPending=e.filter(([e,t])=>(0,a.isPromiseLike)(t)).length>0,t}constructor(e){const t=e.attributes??{};this._rawAttributes=Object.entries(t).map(([e,t])=>((0,a.isPromiseLike)(t)&&(this._asyncAttributesPending=!0),[e,t])),this._rawAttributes=d(this._rawAttributes)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){const[t,n]=this._rawAttributes[e];this._rawAttributes[e]=[t,(0,a.isPromiseLike)(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&s.diag.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const e={};for(const[t,n]of this._rawAttributes)(0,a.isPromiseLike)(n)?s.diag.debug(`Unsettled resource attribute ${t} skipped`):null!=n&&(e[t]??=n);return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}merge(e){return null==e?this:l.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()])}}function c(e){return l.FromAttributeList(Object.entries(e))}function u(){return c({[o.ATTR_SERVICE_NAME]:(0,i.defaultServiceName)(),[o.ATTR_TELEMETRY_SDK_LANGUAGE]:r.SDK_INFO[o.ATTR_TELEMETRY_SDK_LANGUAGE],[o.ATTR_TELEMETRY_SDK_NAME]:r.SDK_INFO[o.ATTR_TELEMETRY_SDK_NAME],[o.ATTR_TELEMETRY_SDK_VERSION]:r.SDK_INFO[o.ATTR_TELEMETRY_SDK_VERSION]})}function d(e){return e.map(([e,t])=>(0,a.isPromiseLike)(t)?[e,t.catch(t=>{s.diag.debug("promise rejection for resource attribute: %s - %s",e,t)})]:[e,t])}},"../../node_modules/@opentelemetry/resources/build/esm/platform/browser/default-service-name.js":(e,t,n)=>{"use strict";function s(){return"unknown_service"}n.d(t,{defaultServiceName:()=>s})},"../../node_modules/@opentelemetry/resources/build/esm/utils.js":(e,t,n)=>{"use strict";n.d(t,{isPromiseLike:()=>s});const s=e=>null!==e&&"object"==typeof e&&"function"==typeof e.then},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/BasicTracerProvider.js":(e,t,n)=>{"use strict";n.d(t,{BasicTracerProvider:()=>u});var s,r=n("../../node_modules/@opentelemetry/core/build/esm/utils/merge.js"),o=n("../../node_modules/@opentelemetry/resources/build/esm/ResourceImpl.js"),i=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Tracer.js"),a=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/config.js"),l=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/MultiSpanProcessor.js"),c=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/utility.js");!function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"}(s||(s={}));class u{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(e={}){const t=(0,r.merge)({},(0,a.loadDefaultConfig)(),(0,c.reconfigureLimits)(e));this._resource=t.resource??(0,o.defaultResource)(),this._config=Object.assign({},t,{resource:this._resource});const n=[];e.spanProcessors?.length&&n.push(...e.spanProcessors),this._activeSpanProcessor=new l.MultiSpanProcessor(n)}getTracer(e,t,n){const s=`${e}@${t||""}:${n?.schemaUrl||""}`;return this._tracers.has(s)||this._tracers.set(s,new i.Tracer({name:e,version:t,schemaUrl:n?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(s)}forceFlush(){const e=this._config.forceFlushTimeoutMillis,t=this._activeSpanProcessor._spanProcessors.map(t=>new Promise(n=>{let r;const o=setTimeout(()=>{n(new Error(`Span processor did not completed within timeout period of ${e} ms`)),r=s.timeout},e);t.forceFlush().then(()=>{clearTimeout(o),r!==s.timeout&&(r=s.resolved,n(r))}).catch(e=>{clearTimeout(o),r=s.error,n(e)})}));return new Promise((e,n)=>{Promise.all(t).then(t=>{const r=t.filter(e=>e!==s.resolved);r.length>0?n(r):e()}).catch(e=>n([e]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/MultiSpanProcessor.js":(e,t,n)=>{"use strict";n.d(t,{MultiSpanProcessor:()=>r});var s=n("../../node_modules/@opentelemetry/core/build/esm/common/global-error-handler.js");class r{_spanProcessors;constructor(e){this._spanProcessors=e}forceFlush(){const e=[];for(const t of this._spanProcessors)e.push(t.forceFlush());return new Promise(t=>{Promise.all(e).then(()=>{t()}).catch(e=>{(0,s.globalErrorHandler)(e||new Error("MultiSpanProcessor: forceFlush failed")),t()})})}onStart(e,t){for(const n of this._spanProcessors)n.onStart(e,t)}onEnd(e){for(const t of this._spanProcessors)t.onEnd(e)}shutdown(){const e=[];for(const t of this._spanProcessors)e.push(t.shutdown());return new Promise((t,n)=>{Promise.all(e).then(()=>{t()},n)})}}},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Sampler.js":(e,t,n)=>{"use strict";var s;n.d(t,{SamplingDecision:()=>s}),function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(s||(s={}))},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Span.js":(e,t,n)=>{"use strict";n.d(t,{SpanImpl:()=>u});var s=n("../../node_modules/@opentelemetry/api/build/esm/trace/status.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),o=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js"),i=n("../../node_modules/@opentelemetry/core/build/esm/common/time.js"),a=n("../../node_modules/@opentelemetry/core/build/esm/common/attributes.js"),l=n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js"),c=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/enums.js");class u{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:s.SpanStatusCode.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(e){const t=Date.now();this._spanContext=e.spanContext,this._performanceStartTime=o.otperformance.now(),this._performanceOffset=t-(this._performanceStartTime+(0,i.getTimeOrigin)()),this._startTimeProvided=null!=e.startTime,this._spanLimits=e.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=e.spanProcessor,this.name=e.name,this.parentSpanContext=e.parentSpanContext,this.kind=e.kind,this.links=e.links||[],this.startTime=this._getTime(e.startTime??t),this.resource=e.resource,this.instrumentationScope=e.scope,null!=e.attributes&&this.setAttributes(e.attributes),this._spanProcessor.onStart(this,e.context)}spanContext(){return this._spanContext}setAttribute(e,t){if(null==t||this._isSpanEnded())return this;if(0===e.length)return r.diag.warn(`Invalid attribute key: ${e}`),this;if(!(0,a.isAttributeValue)(t))return r.diag.warn(`Invalid attribute value set for key: ${e}`),this;const{attributeCountLimit:n}=this._spanLimits;return void 0!==n&&Object.keys(this.attributes).length>=n&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(t),this)}setAttributes(e){for(const[t,n]of Object.entries(e))this.setAttribute(t,n);return this}addEvent(e,t,n){if(this._isSpanEnded())return this;const{eventCountLimit:s}=this._spanLimits;if(0===s)return r.diag.warn("No events allowed."),this._droppedEventsCount++,this;void 0!==s&&this.events.length>=s&&(0===this._droppedEventsCount&&r.diag.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),(0,i.isTimeInput)(t)&&((0,i.isTimeInput)(n)||(n=t),t=void 0);const o=(0,a.sanitizeAttributes)(t);return this.events.push({name:e,attributes:o,time:this._getTime(n),droppedAttributesCount:0}),this}addLink(e){return this.links.push(e),this}addLinks(e){return this.links.push(...e),this}setStatus(e){return this._isSpanEnded()||(this.status={...e},null!=this.status.message&&"string"!=typeof e.message&&(r.diag.warn(`Dropping invalid status.message of type '${typeof e.message}', expected 'string'`),delete this.status.message)),this}updateName(e){return this._isSpanEnded()||(this.name=e),this}end(e){this._isSpanEnded()?r.diag.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`):(this._ended=!0,this.endTime=this._getTime(e),this._duration=(0,i.hrTimeDuration)(this.startTime,this.endTime),this._duration[0]<0&&(r.diag.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&r.diag.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this))}_getTime(e){if("number"==typeof e&&e<=o.otperformance.now())return(0,i.hrTime)(e+this._performanceOffset);if("number"==typeof e)return(0,i.millisToHrTime)(e);if(e instanceof Date)return(0,i.millisToHrTime)(e.getTime());if((0,i.isTimeInputHrTime)(e))return e;if(this._startTimeProvided)return(0,i.millisToHrTime)(Date.now());const t=o.otperformance.now()-this._performanceStartTime;return(0,i.addHrTimes)(this.startTime,(0,i.millisToHrTime)(t))}isRecording(){return!1===this._ended}recordException(e,t){const n={};"string"==typeof e?n[l.ATTR_EXCEPTION_MESSAGE]=e:e&&(e.code?n[l.ATTR_EXCEPTION_TYPE]=e.code.toString():e.name&&(n[l.ATTR_EXCEPTION_TYPE]=e.name),e.message&&(n[l.ATTR_EXCEPTION_MESSAGE]=e.message),e.stack&&(n[l.ATTR_EXCEPTION_STACKTRACE]=e.stack)),n[l.ATTR_EXCEPTION_TYPE]||n[l.ATTR_EXCEPTION_MESSAGE]?this.addEvent(c.ExceptionEventName,n,t):r.diag.warn(`Failed to record an exception ${e}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const e=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);r.diag.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,e)}return this._ended}_truncateToLimitUtil(e,t){return e.length<=t?e:e.substring(0,t)}_truncateToSize(e){const t=this._attributeValueLengthLimit;return t<=0?(r.diag.warn(`Attribute value limit must be positive, got ${t}`),e):"string"==typeof e?this._truncateToLimitUtil(e,t):Array.isArray(e)?e.map(e=>"string"==typeof e?this._truncateToLimitUtil(e,t):e):e}}},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Tracer.js":(e,t,n)=>{"use strict";n.d(t,{Tracer:()=>A});var s=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js"),a=n("../../node_modules/@opentelemetry/api/build/esm/trace/span_kind.js"),l=n("../../node_modules/@opentelemetry/api/build/esm/trace/SamplingResult.js"),c=n("../../node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js"),u=n("../../node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js"),d=n("../../node_modules/@opentelemetry/core/build/esm/common/attributes.js"),p=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Span.js"),m=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/utility.js"),h=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/platform/browser/RandomIdGenerator.js");class A{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(e,t,n,s){const r=(0,m.mergeConfig)(t);this._sampler=r.sampler,this._generalLimits=r.generalLimits,this._spanLimits=r.spanLimits,this._idGenerator=t.idGenerator||new h.RandomIdGenerator,this._resource=n,this._spanProcessor=s,this.instrumentationScope=e}startSpan(e,t={},n=s.context.active()){t.root&&(n=r.trace.deleteSpan(n));const m=r.trace.getSpan(n);if((0,u.isTracingSuppressed)(n)){o.diag.debug("Instrumentation suppressed, returning Noop Span");return r.trace.wrapSpanContext(i.INVALID_SPAN_CONTEXT)}const h=m?.spanContext(),A=this._idGenerator.generateSpanId();let g,f,_;h&&r.trace.isSpanContextValid(h)?(f=h.traceId,_=h.traceState,g=h):f=this._idGenerator.generateTraceId();const E=t.kind??a.SpanKind.INTERNAL,b=(t.links??[]).map(e=>({context:e.context,attributes:(0,d.sanitizeAttributes)(e.attributes)})),y=(0,d.sanitizeAttributes)(t.attributes),T=this._sampler.shouldSample(n,f,e,E,y,b);_=T.traceState??_;const S={traceId:f,spanId:A,traceFlags:T.decision===l.SamplingDecision.RECORD_AND_SAMPLED?c.TraceFlags.SAMPLED:c.TraceFlags.NONE,traceState:_};if(T.decision===l.SamplingDecision.NOT_RECORD){o.diag.debug("Recording is off, propagating context in a non-recording span");return r.trace.wrapSpanContext(S)}const v=(0,d.sanitizeAttributes)(Object.assign(y,T.attributes));return new p.SpanImpl({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:S,name:e,kind:E,links:b,parentSpanContext:g,attributes:v,startTime:t.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(e,t,n,o){let i,a,l;if(arguments.length<2)return;2===arguments.length?l=t:3===arguments.length?(i=t,l=n):(i=t,a=n,l=o);const c=a??s.context.active(),u=this.startSpan(e,i,c),d=r.trace.setSpan(c,u);return s.context.with(d,l,void 0,u)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/config.js":(e,t,n)=>{"use strict";n.d(t,{buildSamplerFromEnv:()=>d,loadDefaultConfig:()=>u});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),r=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/environment.js"),o=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/AlwaysOffSampler.js"),i=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/AlwaysOnSampler.js"),a=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/ParentBasedSampler.js"),l=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/TraceIdRatioBasedSampler.js");const c=1;function u(){return{sampler:d(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:(0,r.getNumberFromEnv)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,r.getNumberFromEnv)("OTEL_ATTRIBUTE_COUNT_LIMIT")??128},spanLimits:{attributeValueLengthLimit:(0,r.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,r.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??128,linkCountLimit:(0,r.getNumberFromEnv)("OTEL_SPAN_LINK_COUNT_LIMIT")??128,eventCountLimit:(0,r.getNumberFromEnv)("OTEL_SPAN_EVENT_COUNT_LIMIT")??128,attributePerEventCountLimit:(0,r.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT")??128,attributePerLinkCountLimit:(0,r.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT")??128}}}function d(){const e=(0,r.getStringFromEnv)("OTEL_TRACES_SAMPLER")??"parentbased_always_on";switch(e){case"always_on":return new i.AlwaysOnSampler;case"always_off":return new o.AlwaysOffSampler;case"parentbased_always_on":return new a.ParentBasedSampler({root:new i.AlwaysOnSampler});case"parentbased_always_off":return new a.ParentBasedSampler({root:new o.AlwaysOffSampler});case"traceidratio":return new l.TraceIdRatioBasedSampler(p());case"parentbased_traceidratio":return new a.ParentBasedSampler({root:new l.TraceIdRatioBasedSampler(p())});default:return s.diag.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "parentbased_always_on".`),new a.ParentBasedSampler({root:new i.AlwaysOnSampler})}}function p(){const e=(0,r.getNumberFromEnv)("OTEL_TRACES_SAMPLER_ARG");return null==e?(s.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${c}.`),c):e<0||e>1?(s.diag.error(`OTEL_TRACES_SAMPLER_ARG=${e} was given, but it is out of range ([0..1]), defaulting to ${c}.`),c):e}},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/enums.js":(e,t,n)=>{"use strict";n.d(t,{ExceptionEventName:()=>s});const s="exception"},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/export/BatchSpanProcessorBase.js":(e,t,n)=>{"use strict";n.d(t,{BatchSpanProcessorBase:()=>p});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),i=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/environment.js"),a=n("../../node_modules/@opentelemetry/core/build/esm/utils/callback.js"),l=n("../../node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js"),c=n("../../node_modules/@opentelemetry/core/build/esm/ExportResult.js"),u=n("../../node_modules/@opentelemetry/core/build/esm/common/global-error-handler.js"),d=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/timer-util.js");class p{_exporter;_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(e,t){this._exporter=e,this._maxExportBatchSize="number"==typeof t?.maxExportBatchSize?t.maxExportBatchSize:(0,i.getNumberFromEnv)("OTEL_BSP_MAX_EXPORT_BATCH_SIZE")??512,this._maxQueueSize="number"==typeof t?.maxQueueSize?t.maxQueueSize:(0,i.getNumberFromEnv)("OTEL_BSP_MAX_QUEUE_SIZE")??2048,this._scheduledDelayMillis="number"==typeof t?.scheduledDelayMillis?t.scheduledDelayMillis:(0,i.getNumberFromEnv)("OTEL_BSP_SCHEDULE_DELAY")??5e3,this._exportTimeoutMillis="number"==typeof t?.exportTimeoutMillis?t.exportTimeoutMillis:(0,i.getNumberFromEnv)("OTEL_BSP_EXPORT_TIMEOUT")??3e4,this._shutdownOnce=new a.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(s.diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(e,t){}onEnd(e){this._shutdownOnce.isCalled||0!==(e.spanContext().traceFlags&r.TraceFlags.SAMPLED)&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(e){if(this._finishedSpans.length>=this._maxQueueSize)return 0===this._droppedSpansCount&&s.diag.debug("maxQueueSize reached, dropping spans"),void this._droppedSpansCount++;this._droppedSpansCount>0&&(s.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,t)=>{const n=[];for(let e=0,t=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);e<t;e++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{e()}).catch(t)})}_flushOneBatch(){return this._clearTimer(),0===this._finishedSpans.length?Promise.resolve():new Promise((e,t)=>{const n=setTimeout(()=>{t(new Error("Timeout"))},this._exportTimeoutMillis);o.context.with((0,l.suppressTracing)(o.context.active()),()=>{let s;this._finishedSpans.length<=this._maxExportBatchSize?(s=this._finishedSpans,this._finishedSpans=[]):s=this._finishedSpans.splice(0,this._maxExportBatchSize);const r=()=>this._exporter.export(s,s=>{clearTimeout(n),s.code===c.ExportResultCode.SUCCESS?e():t(s.error??new Error("BatchSpanProcessor: span export failed"))});let o=null;for(let e=0,t=s.length;e<t;e++){const t=s[e];t.resource.asyncAttributesPending&&t.resource.waitForAsyncAttributes&&(o??=[],o.push(t.resource.waitForAsyncAttributes()))}null===o?r():Promise.all(o).then(r,e=>{(0,u.globalErrorHandler)(e),t(e)})})})}_maybeStartTimer(){if(this._isExporting)return;const e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(e=>{this._isExporting=!1,(0,u.globalErrorHandler)(e)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();void 0===this._timer&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),(0,d.unrefTimer)(this._timer))}_clearTimer(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)}}},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/platform/browser/RandomIdGenerator.js":(e,t,n)=>{"use strict";n.d(t,{RandomIdGenerator:()=>s});class s{generateTraceId=o(16);generateSpanId=o(8)}const r=Array(32);function o(e){return function(){for(let t=0;t<2*e;t++)r[t]=Math.floor(16*Math.random())+48,r[t]>=58&&(r[t]+=39);return String.fromCharCode.apply(null,r.slice(0,2*e))}}},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/platform/browser/export/BatchSpanProcessor.js":(e,t,n)=>{"use strict";n.d(t,{BatchSpanProcessor:()=>o});var s=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/export/BatchSpanProcessorBase.js"),r=n("../../node_modules/@opentelemetry/core/build/esm/common/global-error-handler.js");class o extends s.BatchSpanProcessorBase{_visibilityChangeListener;_pageHideListener;constructor(e,t){super(e,t),this.onInit(t)}onInit(e){!0!==e?.disableAutoFlushOnDocumentHide&&"undefined"!=typeof document&&(this._visibilityChangeListener=()=>{"hidden"===document.visibilityState&&this.forceFlush().catch(e=>{(0,r.globalErrorHandler)(e)})},this._pageHideListener=()=>{this.forceFlush().catch(e=>{(0,r.globalErrorHandler)(e)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){"undefined"!=typeof document&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}}},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/AlwaysOffSampler.js":(e,t,n)=>{"use strict";n.d(t,{AlwaysOffSampler:()=>r});var s=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Sampler.js");class r{shouldSample(){return{decision:s.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/AlwaysOnSampler.js":(e,t,n)=>{"use strict";n.d(t,{AlwaysOnSampler:()=>r});var s=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Sampler.js");class r{shouldSample(){return{decision:s.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/ParentBasedSampler.js":(e,t,n)=>{"use strict";n.d(t,{ParentBasedSampler:()=>c});var s=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js"),i=n("../../node_modules/@opentelemetry/core/build/esm/common/global-error-handler.js"),a=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/AlwaysOffSampler.js"),l=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/AlwaysOnSampler.js");class c{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(e){this._root=e.root,this._root||((0,i.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new l.AlwaysOnSampler),this._remoteParentSampled=e.remoteParentSampled??new l.AlwaysOnSampler,this._remoteParentNotSampled=e.remoteParentNotSampled??new a.AlwaysOffSampler,this._localParentSampled=e.localParentSampled??new l.AlwaysOnSampler,this._localParentNotSampled=e.localParentNotSampled??new a.AlwaysOffSampler}shouldSample(e,t,n,i,a,l){const c=s.trace.getSpanContext(e);return c&&(0,r.isSpanContextValid)(c)?c.isRemote?c.traceFlags&o.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,t,n,i,a,l):this._remoteParentNotSampled.shouldSample(e,t,n,i,a,l):c.traceFlags&o.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(e,t,n,i,a,l):this._localParentNotSampled.shouldSample(e,t,n,i,a,l):this._root.shouldSample(e,t,n,i,a,l)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/TraceIdRatioBasedSampler.js":(e,t,n)=>{"use strict";n.d(t,{TraceIdRatioBasedSampler:()=>o});var s=n("../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"),r=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Sampler.js");class o{_ratio;_upperBound;constructor(e=0){this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(4294967295*this._ratio)}shouldSample(e,t){return{decision:(0,s.isValidTraceId)(t)&&this._accumulate(t)<this._upperBound?r.SamplingDecision.RECORD_AND_SAMPLED:r.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return"number"!=typeof e||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let t=0;for(let n=0;n<e.length/8;n++){const s=8*n;t=(t^parseInt(e.slice(s,s+8),16))>>>0}return t}}},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/utility.js":(e,t,n)=>{"use strict";n.d(t,{mergeConfig:()=>a,reconfigureLimits:()=>l});var s=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/config.js"),r=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/environment.js");const o=128,i=1/0;function a(e){const t={sampler:(0,s.buildSamplerFromEnv)()},n=(0,s.loadDefaultConfig)(),r=Object.assign({},n,t,e);return r.generalLimits=Object.assign({},n.generalLimits,e.generalLimits||{}),r.spanLimits=Object.assign({},n.spanLimits,e.spanLimits||{}),r}function l(e){const t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??(0,r.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??(0,r.getNumberFromEnv)("OTEL_ATTRIBUTE_COUNT_LIMIT")??o,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??(0,r.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??(0,r.getNumberFromEnv)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??i,Object.assign({},e,{spanLimits:t})}},"../../node_modules/@opentelemetry/sdk-trace-web/build/esm/StackContextManager.js":(e,t,n)=>{"use strict";n.d(t,{StackContextManager:()=>r});var s=n("../../node_modules/@opentelemetry/api/build/esm/context/context.js");class r{_enabled=!1;_currentContext=s.ROOT_CONTEXT;_bindFunction(e=s.ROOT_CONTEXT,t){const n=this,r=function(...s){return n.with(e,()=>t.apply(this,s))};return Object.defineProperty(r,"length",{enumerable:!1,configurable:!0,writable:!1,value:t.length}),r}active(){return this._currentContext}bind(e,t){return void 0===e&&(e=this.active()),"function"==typeof t?this._bindFunction(e,t):t}disable(){return this._currentContext=s.ROOT_CONTEXT,this._enabled=!1,this}enable(){return this._enabled||(this._enabled=!0,this._currentContext=s.ROOT_CONTEXT),this}with(e,t,n,...r){const o=this._currentContext;this._currentContext=e||s.ROOT_CONTEXT;try{return t.call(n,...r)}finally{this._currentContext=o}}}},"../../node_modules/@opentelemetry/sdk-trace-web/build/esm/WebTracerProvider.js":(e,t,n)=>{"use strict";n.d(t,{WebTracerProvider:()=>d});var s=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/BasicTracerProvider.js"),r=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/StackContextManager.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/propagation-api.js"),a=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),l=n("../../node_modules/@opentelemetry/core/build/esm/propagation/composite.js"),c=n("../../node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js"),u=n("../../node_modules/@opentelemetry/core/build/esm/baggage/propagation/W3CBaggagePropagator.js");class d extends s.BasicTracerProvider{constructor(e={}){super(e)}register(e={}){var t;a.trace.setGlobalTracerProvider(this),null!==(t=e.propagator)&&(void 0!==t?i.propagation.setGlobalPropagator(t):i.propagation.setGlobalPropagator(new l.CompositePropagator({propagators:[new c.W3CTraceContextPropagator,new u.W3CBaggagePropagator]}))),function(e){if(null!==e){if(void 0===e){const e=new r.StackContextManager;return e.enable(),void o.context.setGlobalContextManager(e)}e.enable(),o.context.setGlobalContextManager(e)}}(e.contextManager)}}},"../../node_modules/@opentelemetry/sdk-trace-web/build/esm/enums/PerformanceTimingNames.js":(e,t,n)=>{"use strict";var s;n.d(t,{PerformanceTimingNames:()=>s}),function(e){e.CONNECT_END="connectEnd",e.CONNECT_START="connectStart",e.DECODED_BODY_SIZE="decodedBodySize",e.DOM_COMPLETE="domComplete",e.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",e.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",e.DOM_INTERACTIVE="domInteractive",e.DOMAIN_LOOKUP_END="domainLookupEnd",e.DOMAIN_LOOKUP_START="domainLookupStart",e.ENCODED_BODY_SIZE="encodedBodySize",e.FETCH_START="fetchStart",e.LOAD_EVENT_END="loadEventEnd",e.LOAD_EVENT_START="loadEventStart",e.NAVIGATION_START="navigationStart",e.REDIRECT_END="redirectEnd",e.REDIRECT_START="redirectStart",e.REQUEST_START="requestStart",e.RESPONSE_END="responseEnd",e.RESPONSE_START="responseStart",e.SECURE_CONNECTION_START="secureConnectionStart",e.START_TIME="startTime",e.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"}(s||(s={}))},"../../node_modules/@opentelemetry/sdk-trace-web/build/esm/semconv.js":(e,t,n)=>{"use strict";n.d(t,{ATTR_HTTP_RESPONSE_CONTENT_LENGTH:()=>s,ATTR_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>r});const s="http.response_content_length",r="http.response_content_length_uncompressed"},"../../node_modules/@opentelemetry/sdk-trace-web/build/esm/utils.js":(e,t,n)=>{"use strict";n.d(t,{addSpanNetworkEvent:()=>c,addSpanNetworkEvents:()=>u,getElementXPath:()=>h,getResource:()=>p,hasKey:()=>l,parseUrl:()=>m,shouldPropagateTraceHeaders:()=>A});var s=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/enums/PerformanceTimingNames.js"),r=n("../../node_modules/@opentelemetry/core/build/esm/common/time.js"),o=n("../../node_modules/@opentelemetry/core/build/esm/utils/url.js"),i=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/semconv.js");let a;function l(e,t){return t in e}function c(e,t,n,s=!0){if(l(n,t)&&"number"==typeof n[t]&&(!s||0!==n[t]))return e.addEvent(t,n[t])}function u(e,t,n=!1,r,o){if(void 0===r&&(r=0!==t[s.PerformanceTimingNames.START_TIME]),n||(c(e,s.PerformanceTimingNames.FETCH_START,t,r),c(e,s.PerformanceTimingNames.DOMAIN_LOOKUP_START,t,r),c(e,s.PerformanceTimingNames.DOMAIN_LOOKUP_END,t,r),c(e,s.PerformanceTimingNames.CONNECT_START,t,r),c(e,s.PerformanceTimingNames.SECURE_CONNECTION_START,t,r),c(e,s.PerformanceTimingNames.CONNECT_END,t,r),c(e,s.PerformanceTimingNames.REQUEST_START,t,r),c(e,s.PerformanceTimingNames.RESPONSE_START,t,r),c(e,s.PerformanceTimingNames.RESPONSE_END,t,r)),!o){const n=t[s.PerformanceTimingNames.ENCODED_BODY_SIZE];void 0!==n&&e.setAttribute(i.ATTR_HTTP_RESPONSE_CONTENT_LENGTH,n);const r=t[s.PerformanceTimingNames.DECODED_BODY_SIZE];void 0!==r&&n!==r&&e.setAttribute(i.ATTR_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED,r)}}function d(){return"undefined"!=typeof location?location.origin:void 0}function p(e,t,n,o,i=new WeakSet,a){const l=m(e),c=function(e,t,n,o,i,a){const l=(0,r.hrTimeToNanoseconds)(t),c=(0,r.hrTimeToNanoseconds)(n);let u=o.filter(t=>{const n=(0,r.hrTimeToNanoseconds)((0,r.timeInputToHrTime)(t[s.PerformanceTimingNames.FETCH_START])),o=(0,r.hrTimeToNanoseconds)((0,r.timeInputToHrTime)(t[s.PerformanceTimingNames.RESPONSE_END]));return t.initiatorType.toLowerCase()===(a||"xmlhttprequest")&&t.name===e&&n>=l&&o<=c});u.length>0&&(u=u.filter(e=>!i.has(e)));return u}(e=l.toString(),t,n,o,i,a);if(0===c.length)return{mainRequest:void 0};if(1===c.length)return{mainRequest:c[0]};const u=function(e){return e.slice().sort((e,t)=>{const n=e[s.PerformanceTimingNames.FETCH_START],r=t[s.PerformanceTimingNames.FETCH_START];return n>r?1:n<r?-1:0})}(c);if(l.origin!==d()&&u.length>1){let e=u[0],t=function(e,t,n){const o=(0,r.hrTimeToNanoseconds)(n),i=(0,r.hrTimeToNanoseconds)((0,r.timeInputToHrTime)(t));let a,l=e[1];const c=e.length;for(let t=1;t<c;t++){const n=e[t],c=(0,r.hrTimeToNanoseconds)((0,r.timeInputToHrTime)(n[s.PerformanceTimingNames.FETCH_START])),u=o-(0,r.hrTimeToNanoseconds)((0,r.timeInputToHrTime)(n[s.PerformanceTimingNames.RESPONSE_END]));c>=i&&(!a||u<a)&&(a=u,l=n)}return l}(u,e[s.PerformanceTimingNames.RESPONSE_END],n);const o=e[s.PerformanceTimingNames.RESPONSE_END];return t[s.PerformanceTimingNames.FETCH_START]<o&&(t=e,e=void 0),{corsPreFlightRequest:e,mainRequest:t}}return{mainRequest:c[0]}}function m(e){if("function"==typeof URL)return new URL(e,"undefined"!=typeof document?document.baseURI:"undefined"!=typeof location?location.href:void 0);const t=(a||(a=document.createElement("a")),a);return t.href=e,t}function h(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return"/";const n=function(e,t){const n=e.nodeType,s=function(e){if(!e.parentNode)return 0;const t=[e.nodeType];e.nodeType===Node.CDATA_SECTION_NODE&&t.push(Node.TEXT_NODE);let n=Array.from(e.parentNode.childNodes);if(n=n.filter(n=>{const s=n.localName;return t.indexOf(n.nodeType)>=0&&s===e.localName}),n.length>=1)return n.indexOf(e)+1;return 0}(e);let r="";if(n===Node.ELEMENT_NODE){const n=e.getAttribute("id");if(t&&n)return`//*[@id="${n}"]`;r=e.localName}else if(n===Node.TEXT_NODE||n===Node.CDATA_SECTION_NODE)r="text()";else{if(n!==Node.COMMENT_NODE)return"";r="comment()"}if(r&&s>1)return`/${r}[${s}]`;return`/${r}`}(e,t);if(t&&n.indexOf("@id")>0)return n;let s="";return e.parentNode&&(s+=h(e.parentNode,!1)),s+=n,s}function A(e,t){let n=t||[];("string"==typeof n||n instanceof RegExp)&&(n=[n]);return m(e).origin===d()||n.some(t=>(0,o.urlMatches)(e,t))}},"../../node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js":(e,t,n)=>{"use strict";function s(e){let t={};const n=e.length;for(let s=0;s<n;s++){const n=e[s];n&&(t[String(n).toUpperCase().replace(/[-.]/g,"_")]=n)}return t}n.d(t,{createConstMap:()=>s})},"../../node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js":(e,t,n)=>{"use strict";n.d(t,{SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>i,SEMRESATTRS_SERVICE_NAME:()=>a,SEMRESATTRS_SERVICE_VERSION:()=>l});n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js");const s="deployment.environment",r="service.name",o="service.version",i=s,a=r,l=o},"../../node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js":(e,t,n)=>{"use strict";n.d(t,{ATTR_ERROR_TYPE:()=>s,ATTR_EXCEPTION_MESSAGE:()=>r,ATTR_EXCEPTION_STACKTRACE:()=>o,ATTR_EXCEPTION_TYPE:()=>i,ATTR_HTTP_REQUEST_METHOD:()=>a,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>l,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>c,ATTR_SERVER_ADDRESS:()=>u,ATTR_SERVER_PORT:()=>d,ATTR_SERVICE_NAME:()=>p,ATTR_TELEMETRY_SDK_LANGUAGE:()=>m,ATTR_TELEMETRY_SDK_NAME:()=>A,ATTR_TELEMETRY_SDK_VERSION:()=>g,ATTR_URL_FULL:()=>f,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>h});const s="error.type",r="exception.message",o="exception.stacktrace",i="exception.type",a="http.request.method",l="http.request.method_original",c="http.response.status_code",u="server.address",d="server.port",p="service.name",m="telemetry.sdk.language",h="webjs",A="telemetry.sdk.name",g="telemetry.sdk.version",f="url.full"},"../../node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js":(e,t,n)=>{"use strict";n.d(t,{SEMATTRS_HTTP_URL:()=>o,SEMATTRS_HTTP_USER_AGENT:()=>i});n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js");const s="http.url",r="http.user_agent",o=s,i=r},"../../node_modules/css-loader/dist/cjs.js!../../node_modules/rrweb-player/dist/style.css":(e,t,n)=>{"use strict";n.d(t,{default:()=>p});var s=n("../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js"),r=n.n(s),o=n("../../node_modules/css-loader/dist/runtime/api.js"),i=n.n(o),a=n("../../node_modules/css-loader/dist/runtime/getUrl.js"),l=n.n(a),c=new URL(n("data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzMwMHB4JyB3aWR0aD0nMzAwcHgnICBmaWxsPSIjMDAwMDAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGRhdGEtbmFtZT0iTGF5ZXIgMSIgdmlld0JveD0iMCAwIDUwIDUwIiB4PSIwcHgiIHk9IjBweCI+PHRpdGxlPkRlc2lnbl90bnA8L3RpdGxlPjxwYXRoIGQ9Ik00OC43MSw0Mi45MUwzNC4wOCwyOC4yOSw0NC4zMywxOEExLDEsMCwwLDAsNDQsMTYuMzlMMi4zNSwxLjA2QTEsMSwwLDAsMCwxLjA2LDIuMzVMMTYuMzksNDRhMSwxLDAsMCwwLDEuNjUuMzZMMjguMjksMzQuMDgsNDIuOTEsNDguNzFhMSwxLDAsMCwwLDEuNDEsMGw0LjM4LTQuMzhBMSwxLDAsMCwwLDQ4LjcxLDQyLjkxWm0tNS4wOSwzLjY3TDI5LDMyYTEsMSwwLDAsMC0xLjQxLDBsLTkuODUsOS44NUwzLjY5LDMuNjlsMzguMTIsMTRMMzIsMjcuNThBMSwxLDAsMCwwLDMyLDI5TDQ2LjU5LDQzLjYyWiI+PC9wYXRoPjwvc3ZnPg=="),n.b),u=i()(r()),d=l()(c);u.push([e.id,".switch.svelte-a6h7w7.svelte-a6h7w7.svelte-a6h7w7{height:1em;display:flex;align-items:center}.switch.disabled.svelte-a6h7w7.svelte-a6h7w7.svelte-a6h7w7{opacity:0.5}.label.svelte-a6h7w7.svelte-a6h7w7.svelte-a6h7w7{margin:0 8px}.switch.svelte-a6h7w7 input[type='checkbox'].svelte-a6h7w7.svelte-a6h7w7{position:absolute;opacity:0}.switch.svelte-a6h7w7 label.svelte-a6h7w7.svelte-a6h7w7{width:2em;height:1em;position:relative;cursor:pointer;display:block}.switch.disabled.svelte-a6h7w7 label.svelte-a6h7w7.svelte-a6h7w7{cursor:not-allowed}.switch.svelte-a6h7w7 label.svelte-a6h7w7.svelte-a6h7w7:before{content:'';position:absolute;width:2em;height:1em;left:0.1em;transition:background 0.1s ease;background:rgba(73, 80, 246, 0.5);border-radius:50px}.switch.svelte-a6h7w7 label.svelte-a6h7w7.svelte-a6h7w7:after{content:'';position:absolute;width:1em;height:1em;border-radius:50px;left:0;transition:all 0.2s ease;box-shadow:0px 2px 5px 0px rgba(0, 0, 0, 0.3);background:#fcfff4;animation:switch-off 0.2s ease-out;z-index:2}.switch.svelte-a6h7w7 input[type='checkbox'].svelte-a6h7w7:checked+label.svelte-a6h7w7:before{background:rgb(73, 80, 246)}.switch.svelte-a6h7w7 input[type='checkbox'].svelte-a6h7w7:checked+label.svelte-a6h7w7:after{animation:switch-on 0.2s ease-out;left:1.1em}.rr-controller.svelte-189zk2r.svelte-189zk2r{width:100%;height:80px;background:#fff;display:flex;flex-direction:column;justify-content:space-around;align-items:center;border-radius:0 0 5px 5px}.rr-timeline.svelte-189zk2r.svelte-189zk2r{width:80%;display:flex;align-items:center}.rr-timeline__time.svelte-189zk2r.svelte-189zk2r{display:inline-block;width:100px;text-align:center;color:#11103e}.rr-progress.svelte-189zk2r.svelte-189zk2r{flex:1;height:12px;background:#eee;position:relative;border-radius:3px;cursor:pointer;box-sizing:border-box;border-top:solid 4px #fff;border-bottom:solid 4px #fff}.rr-progress.disabled.svelte-189zk2r.svelte-189zk2r{cursor:not-allowed}.rr-progress__step.svelte-189zk2r.svelte-189zk2r{height:100%;position:absolute;left:0;top:0;background:#e0e1fe}.rr-progress__handler.svelte-189zk2r.svelte-189zk2r{width:20px;height:20px;border-radius:10px;position:absolute;top:2px;transform:translate(-50%, -50%);background:rgb(73, 80, 246)}.rr-controller__btns.svelte-189zk2r.svelte-189zk2r{display:flex;align-items:center;justify-content:center;font-size:13px}.rr-controller__btns.svelte-189zk2r button.svelte-189zk2r{width:32px;height:32px;display:flex;padding:0;align-items:center;justify-content:center;background:none;border:none;border-radius:50%;cursor:pointer}.rr-controller__btns.svelte-189zk2r button.svelte-189zk2r:active{background:#e0e1fe}.rr-controller__btns.svelte-189zk2r button.active.svelte-189zk2r{color:#fff;background:rgb(73, 80, 246)}.rr-controller__btns.svelte-189zk2r button.svelte-189zk2r:disabled{cursor:not-allowed}.replayer-wrapper {\n position: relative;\n}\n.replayer-mouse {\n position: absolute;\n width: 20px;\n height: 20px;\n transition: left 0.05s linear, top 0.05s linear;\n background-size: contain;\n background-position: center center;\n background-repeat: no-repeat;\n background-image: url("+d+");\n border-color: transparent; /* otherwise we transition from black when .touch-device class is added */\n}\n.replayer-mouse::after {\n content: '';\n display: inline-block;\n width: 20px;\n height: 20px;\n background: rgb(73, 80, 246);\n border-radius: 100%;\n transform: translate(-50%, -50%);\n opacity: 0.3;\n}\n.replayer-mouse.active::after {\n animation: click 0.2s ease-in-out 1;\n}\n.replayer-mouse.touch-device {\n background-image: none; /* there's no passive cursor on touch-only screens */\n width: 70px;\n height: 70px;\n border-width: 4px;\n border-style: solid;\n border-radius: 100%;\n margin-left: -37px;\n margin-top: -37px;\n border-color: rgba(73, 80, 246, 0);\n transition: left 0s linear, top 0s linear, border-color 0.2s ease-in-out;\n}\n.replayer-mouse.touch-device.touch-active {\n border-color: rgba(73, 80, 246, 1);\n transition: left 0.25s linear, top 0.25s linear, border-color 0.2s ease-in-out;\n}\n.replayer-mouse.touch-device::after {\n opacity: 0; /* there's no passive cursor on touch-only screens */\n}\n.replayer-mouse.touch-device.active::after {\n animation: touch-click 0.2s ease-in-out 1;\n}\n.replayer-mouse-tail {\n position: absolute;\n pointer-events: none;\n}\n@keyframes click {\n 0% {\n opacity: 0.3;\n width: 20px;\n height: 20px;\n }\n 50% {\n opacity: 0.5;\n width: 10px;\n height: 10px;\n }\n}\n@keyframes touch-click {\n 0% {\n opacity: 0;\n width: 20px;\n height: 20px;\n }\n 50% {\n opacity: 0.5;\n width: 10px;\n height: 10px;\n }\n}\n.rr-player{position:relative;background:white;float:left;border-radius:5px;box-shadow:0 24px 48px rgba(17, 16, 62, 0.12)}\n.rr-player__frame{overflow:hidden}\n.replayer-wrapper{float:left;clear:both;transform-origin:top left;left:50%;top:50%}\n.replayer-wrapper>iframe{border:none}","",{version:3,sources:["webpack://./../../node_modules/rrweb-player/dist/style.css"],names:[],mappings:"AAAA,kDAAkD,UAAU,CAAC,YAAY,CAAC,kBAAkB,CAAC,2DAA2D,WAAW,CAAC,iDAAiD,YAAY,CAAC,yEAAyE,iBAAiB,CAAC,SAAS,CAAC,wDAAwD,SAAS,CAAC,UAAU,CAAC,iBAAiB,CAAC,cAAc,CAAC,aAAa,CAAC,iEAAiE,kBAAkB,CAAC,+DAA+D,UAAU,CAAC,iBAAiB,CAAC,SAAS,CAAC,UAAU,CAAC,UAAU,CAAC,+BAA+B,CAAC,iCAAiC,CAAC,kBAAkB,CAAC,8DAA8D,UAAU,CAAC,iBAAiB,CAAC,SAAS,CAAC,UAAU,CAAC,kBAAkB,CAAC,MAAM,CAAC,wBAAwB,CAAC,6CAA6C,CAAC,kBAAkB,CAAC,kCAAkC,CAAC,SAAS,CAAC,8FAA8F,2BAA2B,CAAC,6FAA6F,iCAAiC,CAAC,UAAU,CAAC,6CAA6C,UAAU,CAAC,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,qBAAqB,CAAC,4BAA4B,CAAC,kBAAkB,CAAC,yBAAyB,CAAC,2CAA2C,SAAS,CAAC,YAAY,CAAC,kBAAkB,CAAC,iDAAiD,oBAAoB,CAAC,WAAW,CAAC,iBAAiB,CAAC,aAAa,CAAC,2CAA2C,MAAM,CAAC,WAAW,CAAC,eAAe,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,cAAc,CAAC,qBAAqB,CAAC,yBAAyB,CAAC,4BAA4B,CAAC,oDAAoD,kBAAkB,CAAC,iDAAiD,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAAC,oDAAoD,UAAU,CAAC,WAAW,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,OAAO,CAAC,+BAA+B,CAAC,2BAA2B,CAAC,mDAAmD,YAAY,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,cAAc,CAAC,0DAA0D,UAAU,CAAC,WAAW,CAAC,YAAY,CAAC,SAAS,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,eAAe,CAAC,WAAW,CAAC,iBAAiB,CAAC,cAAc,CAAC,iEAAiE,kBAAkB,CAAC,iEAAiE,UAAU,CAAC,2BAA2B,CAAC,mEAAmE,kBAAkB,CAAC;EACrxF,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,WAAW;EACX,YAAY;EACZ,+CAA+C;EAC/C,wBAAwB;EACxB,kCAAkC;EAClC,4BAA4B;EAC5B,yDAA+qB;EAC/qB,yBAAyB,GAAG,yEAAyE;AACvG;AACA;EACE,WAAW;EACX,qBAAqB;EACrB,WAAW;EACX,YAAY;EACZ,4BAA4B;EAC5B,mBAAmB;EACnB,gCAAgC;EAChC,YAAY;AACd;AACA;EACE,mCAAmC;AACrC;AACA;EACE,sBAAsB,GAAG,oDAAoD;EAC7E,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,mBAAmB;EACnB,mBAAmB;EACnB,kBAAkB;EAClB,iBAAiB;EACjB,kCAAkC;EAClC,wEAAwE;AAC1E;AACA;EACE,kCAAkC;EAClC,8EAA8E;AAChF;AACA;EACE,UAAU,GAAG,oDAAoD;AACnE;AACA;EACE,yCAAyC;AAC3C;AACA;EACE,kBAAkB;EAClB,oBAAoB;AACtB;AACA;EACE;IACE,YAAY;IACZ,WAAW;IACX,YAAY;EACd;EACA;IACE,YAAY;IACZ,WAAW;IACX,YAAY;EACd;AACF;AACA;EACE;IACE,UAAU;IACV,WAAW;IACX,YAAY;EACd;EACA;IACE,YAAY;IACZ,WAAW;IACX,YAAY;EACd;AACF;AACA,WAAW,iBAAiB,CAAC,gBAAgB,CAAC,UAAU,CAAC,iBAAiB,CAAC,6CAA6C;AACxH,kBAAkB,eAAe;AACjC,kBAAkB,UAAU,CAAC,UAAU,CAAC,yBAAyB,CAAC,QAAQ,CAAC,OAAO;AAClF,yBAAyB,WAAW",sourcesContent:[".switch.svelte-a6h7w7.svelte-a6h7w7.svelte-a6h7w7{height:1em;display:flex;align-items:center}.switch.disabled.svelte-a6h7w7.svelte-a6h7w7.svelte-a6h7w7{opacity:0.5}.label.svelte-a6h7w7.svelte-a6h7w7.svelte-a6h7w7{margin:0 8px}.switch.svelte-a6h7w7 input[type='checkbox'].svelte-a6h7w7.svelte-a6h7w7{position:absolute;opacity:0}.switch.svelte-a6h7w7 label.svelte-a6h7w7.svelte-a6h7w7{width:2em;height:1em;position:relative;cursor:pointer;display:block}.switch.disabled.svelte-a6h7w7 label.svelte-a6h7w7.svelte-a6h7w7{cursor:not-allowed}.switch.svelte-a6h7w7 label.svelte-a6h7w7.svelte-a6h7w7:before{content:'';position:absolute;width:2em;height:1em;left:0.1em;transition:background 0.1s ease;background:rgba(73, 80, 246, 0.5);border-radius:50px}.switch.svelte-a6h7w7 label.svelte-a6h7w7.svelte-a6h7w7:after{content:'';position:absolute;width:1em;height:1em;border-radius:50px;left:0;transition:all 0.2s ease;box-shadow:0px 2px 5px 0px rgba(0, 0, 0, 0.3);background:#fcfff4;animation:switch-off 0.2s ease-out;z-index:2}.switch.svelte-a6h7w7 input[type='checkbox'].svelte-a6h7w7:checked+label.svelte-a6h7w7:before{background:rgb(73, 80, 246)}.switch.svelte-a6h7w7 input[type='checkbox'].svelte-a6h7w7:checked+label.svelte-a6h7w7:after{animation:switch-on 0.2s ease-out;left:1.1em}.rr-controller.svelte-189zk2r.svelte-189zk2r{width:100%;height:80px;background:#fff;display:flex;flex-direction:column;justify-content:space-around;align-items:center;border-radius:0 0 5px 5px}.rr-timeline.svelte-189zk2r.svelte-189zk2r{width:80%;display:flex;align-items:center}.rr-timeline__time.svelte-189zk2r.svelte-189zk2r{display:inline-block;width:100px;text-align:center;color:#11103e}.rr-progress.svelte-189zk2r.svelte-189zk2r{flex:1;height:12px;background:#eee;position:relative;border-radius:3px;cursor:pointer;box-sizing:border-box;border-top:solid 4px #fff;border-bottom:solid 4px #fff}.rr-progress.disabled.svelte-189zk2r.svelte-189zk2r{cursor:not-allowed}.rr-progress__step.svelte-189zk2r.svelte-189zk2r{height:100%;position:absolute;left:0;top:0;background:#e0e1fe}.rr-progress__handler.svelte-189zk2r.svelte-189zk2r{width:20px;height:20px;border-radius:10px;position:absolute;top:2px;transform:translate(-50%, -50%);background:rgb(73, 80, 246)}.rr-controller__btns.svelte-189zk2r.svelte-189zk2r{display:flex;align-items:center;justify-content:center;font-size:13px}.rr-controller__btns.svelte-189zk2r button.svelte-189zk2r{width:32px;height:32px;display:flex;padding:0;align-items:center;justify-content:center;background:none;border:none;border-radius:50%;cursor:pointer}.rr-controller__btns.svelte-189zk2r button.svelte-189zk2r:active{background:#e0e1fe}.rr-controller__btns.svelte-189zk2r button.active.svelte-189zk2r{color:#fff;background:rgb(73, 80, 246)}.rr-controller__btns.svelte-189zk2r button.svelte-189zk2r:disabled{cursor:not-allowed}.replayer-wrapper {\n position: relative;\n}\n.replayer-mouse {\n position: absolute;\n width: 20px;\n height: 20px;\n transition: left 0.05s linear, top 0.05s linear;\n background-size: contain;\n background-position: center center;\n background-repeat: no-repeat;\n background-image: url('data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzMwMHB4JyB3aWR0aD0nMzAwcHgnICBmaWxsPSIjMDAwMDAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGRhdGEtbmFtZT0iTGF5ZXIgMSIgdmlld0JveD0iMCAwIDUwIDUwIiB4PSIwcHgiIHk9IjBweCI+PHRpdGxlPkRlc2lnbl90bnA8L3RpdGxlPjxwYXRoIGQ9Ik00OC43MSw0Mi45MUwzNC4wOCwyOC4yOSw0NC4zMywxOEExLDEsMCwwLDAsNDQsMTYuMzlMMi4zNSwxLjA2QTEsMSwwLDAsMCwxLjA2LDIuMzVMMTYuMzksNDRhMSwxLDAsMCwwLDEuNjUuMzZMMjguMjksMzQuMDgsNDIuOTEsNDguNzFhMSwxLDAsMCwwLDEuNDEsMGw0LjM4LTQuMzhBMSwxLDAsMCwwLDQ4LjcxLDQyLjkxWm0tNS4wOSwzLjY3TDI5LDMyYTEsMSwwLDAsMC0xLjQxLDBsLTkuODUsOS44NUwzLjY5LDMuNjlsMzguMTIsMTRMMzIsMjcuNThBMSwxLDAsMCwwLDMyLDI5TDQ2LjU5LDQzLjYyWiI+PC9wYXRoPjwvc3ZnPg==');\n border-color: transparent; /* otherwise we transition from black when .touch-device class is added */\n}\n.replayer-mouse::after {\n content: '';\n display: inline-block;\n width: 20px;\n height: 20px;\n background: rgb(73, 80, 246);\n border-radius: 100%;\n transform: translate(-50%, -50%);\n opacity: 0.3;\n}\n.replayer-mouse.active::after {\n animation: click 0.2s ease-in-out 1;\n}\n.replayer-mouse.touch-device {\n background-image: none; /* there's no passive cursor on touch-only screens */\n width: 70px;\n height: 70px;\n border-width: 4px;\n border-style: solid;\n border-radius: 100%;\n margin-left: -37px;\n margin-top: -37px;\n border-color: rgba(73, 80, 246, 0);\n transition: left 0s linear, top 0s linear, border-color 0.2s ease-in-out;\n}\n.replayer-mouse.touch-device.touch-active {\n border-color: rgba(73, 80, 246, 1);\n transition: left 0.25s linear, top 0.25s linear, border-color 0.2s ease-in-out;\n}\n.replayer-mouse.touch-device::after {\n opacity: 0; /* there's no passive cursor on touch-only screens */\n}\n.replayer-mouse.touch-device.active::after {\n animation: touch-click 0.2s ease-in-out 1;\n}\n.replayer-mouse-tail {\n position: absolute;\n pointer-events: none;\n}\n@keyframes click {\n 0% {\n opacity: 0.3;\n width: 20px;\n height: 20px;\n }\n 50% {\n opacity: 0.5;\n width: 10px;\n height: 10px;\n }\n}\n@keyframes touch-click {\n 0% {\n opacity: 0;\n width: 20px;\n height: 20px;\n }\n 50% {\n opacity: 0.5;\n width: 10px;\n height: 10px;\n }\n}\n.rr-player{position:relative;background:white;float:left;border-radius:5px;box-shadow:0 24px 48px rgba(17, 16, 62, 0.12)}\n.rr-player__frame{overflow:hidden}\n.replayer-wrapper{float:left;clear:both;transform-origin:top left;left:50%;top:50%}\n.replayer-wrapper>iframe{border:none}"],sourceRoot:""}]);const p=u},"../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./src/index.scss":(e,t,n)=>{"use strict";n.d(t,{default:()=>a});var s=n("../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js"),r=n.n(s),o=n("../../node_modules/css-loader/dist/runtime/api.js"),i=n.n(o)()(r());i.push([e.id,'.mp-root-wrapper * {\n font-family: "PP Neue Montreal", Montserrat, Roboto, Arial, sans-serif !important;\n box-sizing: border-box;\n}\n.mp-root-wrapper textarea {\n background: #ffffff;\n color: #2d3748;\n}\n\n.mp-session-debugger-button {\n cursor: pointer;\n border-radius: 12px;\n font-family: Inter, sans-serif;\n font-size: 14px;\n font-weight: 500;\n transition: all 0.2s;\n display: flex;\n align-items: center;\n justify-content: center;\n position: fixed;\n z-index: 2247483003;\n padding: 5px;\n background-color: #ffffff;\n border: solid 1px #bebfc1;\n border-radius: 36px;\n color: #718096;\n transition: background 0.3s;\n width: 42px;\n height: 42px;\n will-change: right, bottom;\n}\n.mp-session-debugger-button.is-started {\n color: #493bff;\n}\n.mp-session-debugger-button.top-left {\n top: 24px;\n left: 24px;\n}\n.mp-session-debugger-button.top-right {\n top: 24px;\n right: 24px;\n}\n.mp-session-debugger-button.bottom-left {\n bottom: 24px;\n left: 24px;\n}\n.mp-session-debugger-button.bottom-right {\n bottom: 24px;\n right: 24px;\n}\n.mp-session-debugger-button.no-draggable {\n position: static;\n}\n.mp-session-debugger-button.no-draggable::before {\n transform: translateY(-18px) !important;\n top: -10px !important;\n left: 10px !important;\n}\n.mp-session-debugger-button.no-draggable:hover::before {\n z-index: 1;\n transform: translateY(-18px);\n top: -10px;\n left: 10px;\n right: unset;\n}\n.mp-session-debugger-button.no-draggable.no-tooltip::before {\n display: none;\n}\n.mp-session-debugger-button.mp-button-blue {\n border: 1px rgba(0, 0, 0, 0.2);\n background: #493bff;\n}\n.mp-session-debugger-button.mp-button-blue::before {\n opacity: 1;\n transform: translateX(0);\n}\n.mp-session-debugger-button:not([data-tooltip=""]):before {\n content: attr(data-tooltip);\n position: absolute;\n pointer-events: none;\n height: 28px;\n top: 6px;\n padding: 6px 8px 6px 8px;\n border-radius: 8px;\n font-family: Inter, sans-serif;\n font-size: 12px;\n font-weight: 500;\n line-height: 16px;\n opacity: 0;\n transition: all 0.3s;\n background: #1a202c;\n color: white;\n white-space: nowrap;\n box-sizing: border-box;\n z-index: -1;\n transform: translateX(-8px);\n left: unset;\n right: 100%;\n}\n.mp-session-debugger-button:not([data-tooltip=""]).top-left:before, .mp-session-debugger-button:not([data-tooltip=""]).bottom-left:before, .mp-session-debugger-button:not([data-tooltip=""]).button-leftside:before {\n transform: translateX(8px);\n left: 100%;\n right: unset;\n}\n.mp-session-debugger-button:not(.no-hover):hover {\n color: #473cfb;\n box-shadow: 0 3px 3px -1.5px rgba(0, 0, 0, 0.06), 0 1px 1px -0.5px rgba(0, 0, 0, 0.06);\n}\n.mp-session-debugger-button:not(.no-hover):hover:before {\n opacity: 1;\n}\n.mp-session-debugger-button:not(.no-hover):hover:not(.no-draggable) .mp-drag-hint svg {\n opacity: 1;\n}\n.mp-session-debugger-button svg {\n transform: rotate(0deg);\n transition: transform 0.3s linear;\n}\n.mp-session-debugger-button.rotate-on-hover:hover svg {\n transform: rotate(-180deg);\n}\n.mp-session-debugger-button.animate-rotate svg {\n animation: _rotateAnimation 3s linear infinite;\n}\n\n.animate-bounce {\n animation: _bounceAnimation 1.6s infinite;\n animation-timing-function: cubic-bezier(0.87, 0, 0.13, 1);\n}\n\n.mp-drag-hint svg {\n position: absolute;\n width: 14px;\n height: 14px;\n top: -3px;\n right: -9px;\n opacity: 0;\n transform: unset !important;\n transition: opacity 0.1ms ease-in !important;\n cursor: grab;\n}\n\n.mp-session-debugger-popover-textarea {\n border: 1px solid #cbd5e0;\n box-shadow: 0 12px 12px -12px rgba(0, 0, 0, 0.0588235294), 0 6px 6px -3px rgba(0, 0, 0, 0.0588235294), 0 3px 3px -1.5px rgba(0, 0, 0, 0.0588235294), 0 1px 1px -0.5px rgba(0, 0, 0, 0.0588235294);\n padding: 10px 13px 10px 13px;\n border-radius: 12px;\n font-family: Inter, serif;\n font-size: 14px;\n font-weight: 400;\n color: #718096;\n margin-bottom: 32px;\n width: 100%;\n height: 80px;\n resize: none;\n}\n\n.mp-session-debugger-popover {\n position: fixed;\n bottom: 90px;\n right: 24px;\n width: 300px;\n background: #ffffff;\n border-radius: 24px;\n overflow: hidden;\n border: 1px solid rgb(245, 245, 245);\n box-shadow: 0 1px 1px -0.5px rgba(0, 0, 0, 0.06), 0 3px 3px -1.5px rgba(0, 0, 0, 0.06);\n z-index: 10000;\n}\n.mp-session-debugger-popover.hidden {\n display: none;\n}\n.mp-session-debugger-popover-content {\n position: relative;\n padding: 65px 16px 16px;\n}\n.mp-session-debugger-popover-header {\n position: absolute;\n top: 0;\n width: 100%;\n right: 0;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 16px;\n gap: 8px;\n background: linear-gradient(180deg, rgba(255, 255, 255, 0) 50%, rgb(255, 255, 255) 100%), linear-gradient(90deg, #d8f3fd 0%, #e3ecfd 100%);\n}\n.mp-session-debugger-popover-header a {\n color: inherit;\n margin-right: auto;\n text-decoration: none;\n}\n.mp-session-debugger-popover-body h2 {\n margin-bottom: 4px;\n font-size: 18px;\n font-weight: 600;\n color: #2d3748;\n font-family: "PP Neue Montreal", Montserrat, Roboto, Arial, sans-serif;\n}\n.mp-session-debugger-popover-body p {\n font-family: "PP Neue Montreal", Montserrat, Roboto, Arial, sans-serif;\n font-size: 14px;\n font-weight: 400;\n color: #718096;\n margin-bottom: 32px;\n}\n.mp-session-debugger-popover-body:has(#mp-session-debugger-continuous-debugging-checkbox:checked) .mp-session-debugger-continuous-debugging-overlay {\n display: flex;\n}\n.mp-session-debugger-popover-footer {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n}\n.mp-session-debugger-popover-button {\n cursor: pointer;\n border-radius: 12px;\n font-family: Inter, sans-serif;\n font-size: 14px;\n font-weight: 500;\n transition: all 0.2s;\n border: none;\n color: #ffffff;\n width: 100%;\n position: relative;\n padding: 12px 16px;\n border-radius: 12px;\n background: transparent;\n overflow: hidden;\n z-index: 1;\n}\n.mp-session-debugger-popover-button::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: linear-gradient(180deg, #493bff 0%, #382be4 100%);\n transition: opacity 0.3s linear;\n z-index: -1;\n}\n.mp-session-debugger-popover-button::after {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: linear-gradient(180deg, #160d9c 0%, #160d9c 100%);\n transition: opacity 0.3s linear;\n z-index: -1;\n opacity: 0;\n}\n.mp-session-debugger-popover-button:hover::after {\n opacity: 1;\n}\n.mp-session-debugger-popover-button:disabled, .mp-session-debugger-popover-button.disabled {\n pointer-events: none;\n opacity: 0.6;\n cursor: not-allowed;\n transition: opacity 0.2s ease;\n}\n.mp-session-debugger-popover-button:disabled:hover, .mp-session-debugger-popover-button:disabled:focus, .mp-session-debugger-popover-button.disabled:hover, .mp-session-debugger-popover-button.disabled:focus {\n background-color: inherit;\n box-shadow: none;\n}\n.mp-session-debugger-continuous-debugging {\n position: relative;\n z-index: 3;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n padding: 12px;\n border-radius: 12px;\n border: 1px solid #e1e8f1;\n box-shadow: 0 1px 1px -0.5px rgba(0, 0, 0, 0.06), 0 3px 3px -1.5px rgba(0, 0, 0, 0.06);\n margin-bottom: 20px;\n}\n.mp-session-debugger-continuous-debugging-overlay {\n position: absolute;\n inset: 65px 0 0 0;\n z-index: 2;\n display: none;\n border-radius: 12px;\n backdrop-filter: blur(10px);\n background: rgba(255, 255, 255, 0.5);\n flex-direction: column;\n justify-content: flex-end;\n padding: 12px;\n gap: 12px;\n}\n.mp-session-debugger-continuous-debugging-overlay-content {\n padding: 12px;\n background: #ffffff;\n border-radius: 12px;\n border: 1px solid #e1e8f1;\n box-shadow: 0 1px 1px -0.5px rgba(0, 0, 0, 0.06), 0 3px 3px -1.5px rgba(0, 0, 0, 0.06);\n}\n.mp-session-debugger-continuous-debugging-overlay-content h3 {\n display: flex;\n align-items: center;\n justify-content: center;\n justify-content: flex-start;\n margin: 0;\n gap: 8px;\n font-size: 14px;\n font-weight: 500;\n}\n.mp-session-debugger-continuous-debugging-overlay-content h3 svg {\n width: 20px;\n height: 20px;\n animation: _bounceAnimation 1.6s infinite;\n animation-timing-function: cubic-bezier(0.87, 0, 0.13, 1);\n}\n.mp-session-debugger-continuous-debugging-overlay-content p {\n margin: 0;\n}\n.mp-session-debugger-continuous-debugging-label {\n gap: 8px;\n display: flex;\n font-size: 14px;\n color: #2d3748;\n font-weight: 500;\n}\n.mp-session-debugger-continuous-debugging-switch {\n display: flex;\n align-items: center;\n width: 44px;\n height: 24px;\n padding: 2px;\n cursor: pointer;\n border-radius: 36px;\n background: #e2e8f0;\n}\n.mp-session-debugger-continuous-debugging-switch:has(input:checked) {\n background: #493bff;\n justify-content: flex-end;\n}\n.mp-session-debugger-continuous-debugging-switch input {\n display: none;\n}\n.mp-session-debugger-continuous-debugging-switch span {\n width: 20px;\n height: 20px;\n border-radius: 50%;\n background: #ffffff;\n transition: transform 0.2s;\n}\n\n.mp-recording-overlay {\n background: #5c5d5d;\n color: #ffffff;\n display: flex;\n z-index: 2147483007;\n left: 50%;\n bottom: 20px;\n position: fixed;\n transform: translate(-50%, 0);\n border: 0.5px solid #5c5d5d;\n border-radius: 24px;\n font-family: Arial, sans-serif;\n flex-direction: row;\n font-size: 14px;\n box-shadow: 0 1px 1px -0.5px rgba(0, 0, 0, 0.3);\n}\n.mp-recording-overlay.hidden {\n display: none;\n}\n.mp-recording-status {\n gap: 8px;\n display: flex;\n padding: 12px 12px;\n flex-direction: row;\n align-items: center;\n}\n.mp-recording-indicator {\n width: 24px;\n height: 24px;\n animation: pulse 1.5s infinite;\n}\n.mp-recording-controls {\n display: flex;\n}\n.mp-recording-btn {\n border: none;\n border-right: 0.5px solid #5c5d5d;\n background: #414141;\n padding: 6px 12px;\n font-weight: bold;\n cursor: pointer;\n color: #ffffff;\n gap: 8px;\n}\n\n.mp-session-debugger-modal.hidden {\n display: none;\n}\n\n.mp-session-debugger-popover-logo svg {\n width: 30px;\n}\n\n.mp-session-debugger-dismiss-button {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 6px 16px;\n background: white;\n border: 1px solid #e1e8f1;\n box-shadow: 0 3px 3px -1.5px rgba(0, 0, 0, 0.0588235294), 0 1px 1px -0.5px rgba(0, 0, 0, 0.0588235294);\n border-radius: 12px;\n font-size: 14px;\n color: #2d3748;\n font-weight: 500;\n}\n\n.mp-session-debugger-modal-backdrop {\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 10003;\n}\n\n/* Modal content */\n.mp-session-debugger-modal-content {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background: white;\n padding: 20px;\n border-radius: 8px;\n width: 80vw;\n min-height: 70vh;\n max-height: 90vh;\n z-index: 10004;\n display: flex;\n flex-direction: column;\n}\n\n/* Close button */\n.mp-session-debugger-modal-close {\n background: none;\n border: none;\n padding: 8px;\n cursor: pointer;\n color: grey;\n line-height: 1;\n}\n.mp-session-debugger-modal-close svg {\n vertical-align: top;\n}\n\n/* Modal body */\n.mp-session-debugger-modal-body {\n flex: 1;\n display: flex;\n flex-direction: column;\n padding: 20px 0;\n height: 100%;\n overflow: hidden;\n background: white;\n}\n.mp-session-debugger-modal-body .rr-player {\n border-radius: 4px;\n border: 1px solid #c1c5ca;\n box-shadow: unset;\n overflow: hidden;\n}\n\n.mp-session-debugger-player-frame {\n display: flex;\n flex: 1;\n overflow: hidden;\n}\n.mp-session-debugger-player-frame .replayer-wrapper {\n box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);\n}\n\n/* Modal footer */\n.mp-session-debugger-modal-footer {\n display: flex;\n justify-content: flex-end;\n gap: 10px;\n}\n\n/* Buttons */\n.mp-session-debugger-modal-button {\n width: auto;\n}\n\n.mp-dismiss-recording,\n.mp-dismiss-recording:before,\n.mp-dismiss-recording:after {\n background: white;\n border: 1px solid #e1e8f1;\n color: #2d3748;\n}\n\n@keyframes _rotateAnimation {\n 0% {\n transform: rotate(0);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes _bounceAnimation {\n 0%, 100% {\n padding: 3px;\n }\n 50% {\n padding: 0;\n }\n}\n#mp-submission-dialog {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 99999;\n display: flex;\n align-items: center;\n justify-content: center;\n font-family: -apple-system, BlinkMacSystemFont, sans-serif;\n}\n#mp-submission-dialog.hidden {\n display: none;\n}\n#mp-submission-dialog .mp-dialog-backdrop {\n background: rgba(0, 0, 0, 0.4);\n position: fixed;\n width: 100%;\n height: 100%;\n}\n#mp-submission-dialog .mp-dialog-content {\n top: 30%;\n left: 40%;\n position: absolute;\n background: #ffffff;\n border-radius: 24px;\n padding: 24px;\n width: 90%;\n max-width: 450px;\n z-index: 100000;\n animation: fadeIn 0.3s ease-out;\n box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);\n}\n#mp-submission-dialog .mp-dialog-actions {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n}\n#mp-submission-dialog h3 {\n margin-bottom: 16px;\n font-size: 20px;\n color: #2a374a;\n}\n#mp-submission-dialog .subtitle {\n font-size: 12px;\n color: #6d8198;\n margin-bottom: 16px;\n}\n#mp-submission-dialog .form-group {\n margin-bottom: 20px;\n}\n#mp-submission-dialog label {\n display: block;\n margin-bottom: 8px;\n color: #555;\n font-size: 14px;\n}\n#mp-submission-dialog textarea {\n width: 100%;\n padding: 12px;\n border: 1px solid #e0e0e0;\n border-radius: 8px;\n resize: vertical;\n min-height: 100px;\n max-height: 350px;\n font-family: inherit;\n font-size: 14px;\n transition: border 0.2s;\n}\n#mp-submission-dialog textarea:focus {\n outline: none;\n border-color: #382be4;\n box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);\n}\n#mp-submission-dialog textarea::placeholder {\n color: #6d8198;\n opacity: 1;\n}\n#mp-submission-dialog button {\n padding: 12px 16px;\n border-radius: 12px;\n cursor: pointer;\n font-size: 14px;\n font-weight: 500;\n transition: all 0.2s;\n}\n#mp-submission-dialog #mp-cancel-submission {\n background: #f5f5f5;\n border: 1px solid #e1e8f1;\n color: #2d3748;\n box-shadow: 0 1px 1px -0.5px rgba(0, 0, 0, 0.06), 0 3px 3px -1.5px rgba(0, 0, 0, 0.06);\n}\n#mp-submission-dialog #mp-submit-recording {\n background: linear-gradient(180deg, #493bff 0%, #382be4 100%);\n border: none;\n color: #ffffff;\n}\n#mp-submission-dialog #mp-submit-recording:hover {\n background: linear-gradient(180deg, #493bff 0%, #160d9c 100%);\n}\n\n#mp-confirmation-dialog {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n font-size: 14px;\n background: rgba(0, 0, 0, 0.4);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 9999;\n}\n#mp-confirmation-dialog .mp-dialog-content {\n padding: 20px;\n color: #2a374a;\n max-width: 410px;\n background: #ffffff;\n border-radius: 24px;\n}\n#mp-confirmation-dialog .mp-dialog-buttons {\n gap: 12px;\n display: flex;\n margin-top: 16px;\n justify-content: flex-end;\n}\n#mp-confirmation-dialog button {\n font-weight: 500;\n cursor: pointer;\n padding: 12px 16px;\n border-radius: 12px;\n transition: all 0.2s;\n}\n#mp-confirmation-dialog #mp-dialog-confirm {\n background: #dd524c;\n color: #ffffff;\n}\n#mp-confirmation-dialog #mp-dialog-confirm:hover {\n background: #c53030;\n}\n#mp-confirmation-dialog #mp-dialog-cancel {\n background: #f5f5f5;\n border: 1px solid #e1e8f1;\n color: #2d3748;\n box-shadow: 0 1px 1px -0.5px rgba(0, 0, 0, 0.06), 0 3px 3px -1.5px rgba(0, 0, 0, 0.06);\n}\n\n.mp-drag-handle {\n padding: 12px 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.mp-toast {\n left: 50%;\n bottom: 40px;\n position: fixed;\n transform: translateX(-50%);\n background: #535454;\n z-index: 10001;\n padding: 0;\n border: none;\n border-radius: 14px;\n box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);\n display: flex;\n font-size: 14px;\n font-weight: 500;\n animation: slideUpCenter 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n}\n.mp-toast-error .mp-toast-icon {\n color: #dd524c;\n}\n.mp-toast.hidden {\n display: none;\n}\n.mp-toast-content {\n padding: 0;\n gap: 12px;\n color: white;\n display: flex;\n align-items: center;\n width: 100%;\n height: 100%;\n white-space: nowrap;\n}\n.mp-toast-icon {\n margin-left: 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.mp-toast-icon svg {\n width: 20px;\n height: 20px;\n}\n.mp-toast-message {\n flex: 1;\n margin-right: 12px;\n font-weight: 500;\n}\n.mp-toast-button {\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-right-radius: 14px;\n border-bottom-right-radius: 14px;\n padding: 12px 16px !important;\n background: #414141 !important;\n font-weight: 500 !important;\n border: 0.5px solid #5C5D5D;\n cursor: pointer;\n text-decoration: none !important;\n transition: background 0.18s;\n}\n.mp-toast-button:hover, .mp-toast-button:focus {\n background: rgba(255, 255, 255, 0.18);\n}\n\n@keyframes slideUpCenter {\n from {\n transform: translateX(-50%) translateY(40px);\n opacity: 0;\n }\n to {\n transform: translateX(-50%) translateY(0);\n opacity: 1;\n }\n}',"",{version:3,sources:["webpack://./src/index.scss"],names:[],mappings:"AAsEE;EACE,iFAAA;EACA,sBAAA;AArEJ;AAwEE;EACE,mBAjEe;EAkEf,cArEiB;AADrB;;AA2EA;EAnCE,eAAA;EACA,mBAxBiB;EAyBjB,8BA/CkB;EAgDlB,eAAA;EACA,gBAAA;EACA,oBAAA;EAjBA,aAAA;EACA,mBAAA;EACA,uBAAA;EAgDA,eAAA;EACA,mBAAA;EACA,YAAA;EACA,yBA7EiB;EA8EjB,yBAAA;EACA,mBAhEmB;EAiEnB,cAlFqB;EAmFrB,2BAAA;EAEA,WAAA;EACA,YAAA;EACA,0BAAA;AAlEF;AAoEE;EACE,cA9FY;AA4BhB;AAsEE;EACE,SApFU;EAqFV,UArFU;AAiBd;AAuEE;EACE,SAzFU;EA0FV,WA1FU;AAqBd;AAwEE;EACE,YA9FU;EA+FV,UA/FU;AAyBd;AAyEE;EACE,YAnGU;EAoGV,WApGU;AA6Bd;AA0EE;EACE,gBAAA;AAxEJ;AAyEI;EACE,uCAAA;EACA,qBAAA;EACA,qBAAA;AAvEN;AAyEI;EACE,UAAA;EACA,4BAAA;EACA,UAAA;EACA,UAAA;EACA,YAAA;AAvEN;AAyEI;EACE,aAAA;AAvEN;AA0EE;EACE,8BAAA;EACA,mBAAA;AAxEJ;AAyEI;EACE,UAAA;EACA,wBAAA;AAvEN;AA2EI;EACE,2BAAA;EACA,kBAAA;EACA,oBAAA;EACA,YAAA;EACA,QAAA;EACA,wBAAA;EACA,kBAAA;EACA,8BAAA;EACA,eAAA;EACA,gBAAA;EACA,iBAAA;EACA,UAAA;EACA,oBAAA;EACA,mBAAA;EACA,YAAA;EACA,mBAAA;EACA,sBAAA;EACA,WAAA;EACA,2BAAA;EACA,WAAA;EACA,WAAA;AAzEN;AA2EI;EAGE,0BAAA;EACA,UAAA;EACA,YAAA;AA3EN;AA+EI;EACE,cAAA;EACA,sFAAA;AA7EN;AA+EM;EACE,UAAA;AA7ER;AAgFQ;EACE,UAAA;AA9EV;AAmFE;EACE,uBAAA;EACA,iCAAA;AAjFJ;AAqFM;EACE,0BAAA;AAnFR;AAuFE;EACE,8CAAA;AArFJ;;AAyFA;EACE,yCAAA;EACA,yDAAA;AAtFF;;AAyFA;EACE,kBAAA;EACA,WAAA;EACA,YAAA;EACA,SAAA;EACA,WAAA;EACA,UAAA;EACA,2BAAA;EACA,4CAAA;EACA,YAAA;AAtFF;;AAyFA;EACE,yBAAA;EACA,iMAAA;EAEA,4BAAA;EACA,mBAAA;EACA,yBAAA;EACA,eAAA;EACA,gBAAA;EACA,cAAA;EACA,mBAAA;EACA,WAAA;EACA,YAAA;EACA,YAAA;AAvFF;;AA2FE;EACE,eAAA;EACA,YAAA;EACA,WArOU;EAsOV,YAAA;EACA,mBAhPe;EAiPf,mBAnOe;EAoOf,gBAAA;EACA,oCAAA;EA9LF,sFAAA;EAgME,cAnOW;AA2If;AA0FI;EACE,aAAA;AAxFN;AA2FI;EACE,kBAAA;EACA,uBAAA;AAzFN;AA4FI;EACE,kBAAA;EACA,MAAA;EACA,WAAA;EACA,QAAA;EAtOJ,aAAA;EACA,mBAAA;EACA,8BAAA;EAsOI,aA/PO;EAgQP,QAlQO;EAmQP,0IAAA;AAxFN;AA+FM;EACE,cAAA;EACA,kBAAA;EACA,qBAAA;AA7FR;AAkGM;EACE,kBApRK;EAqRL,eAAA;EACA,gBAAA;EACA,cA9Ra;EA+Rb,sEAtSW;AAsMnB;AAmGM;EACE,sEA1SW;EA2SX,eAAA;EACA,gBAAA;EACA,cArSe;EAsSf,mBAAA;AAjGR;AAoGQ;EACE,aAAA;AAlGV;AAuGI;EA/QF,aAAA;EACA,mBAAA;EACA,8BAAA;EA+QI,QA1SO;AAuMb;AAsGI;EA9QF,eAAA;EACA,mBAxBiB;EAyBjB,8BA/CkB;EAgDlB,eAAA;EACA,gBAAA;EACA,oBAAA;EA2QI,YAAA;EACA,cArTa;EAsTb,WAAA;EACA,kBAAA;EACA,kBAAA;EACA,mBA5Sa;EA6Sb,uBAAA;EACA,gBAAA;EACA,UAAA;AA/FN;AAiGM;EACE,WAAA;EACA,kBAAA;EACA,MAAA;EACA,OAAA;EACA,QAAA;EACA,SAAA;EAvRN,6DAAA;EAyRM,+BAAA;EACA,WAAA;AA/FR;AAkGM;EACE,WAAA;EACA,kBAAA;EACA,MAAA;EACA,OAAA;EACA,QAAA;EACA,SAAA;EACA,6DAAA;EAKA,+BAAA;EACA,WAAA;EACA,UAAA;AApGR;AAuGM;EACE,UAAA;AArGR;AAwGM;EAEE,oBAAA;EACA,YAAA;EACA,mBAAA;EACA,6BAAA;AAvGR;AAyGQ;EAEE,yBAAA;EACA,gBAAA;AAxGV;AA8GE;EACE,kBAAA;EACA,UAAA;EAnVF,aAAA;EACA,mBAAA;EACA,8BAAA;EAmVE,QA9WS;EA+WT,aA9WS;EA+WT,mBAxWe;EAyWf,yBAAA;EAjUF,sFAAA;EAmUE,mBAhXS;AAsQb;AA4GI;EACE,kBAAA;EACA,iBAAA;EACA,UAAA;EACA,aAAA;EACA,mBAlXa;EAmXb,2BAAA;EACA,oCAAA;EACA,sBAAA;EACA,yBAAA;EACA,aA9XO;EA+XP,SA/XO;AAqRb;AA4GM;EACE,aAlYK;EAmYL,mBAzYW;EA0YX,mBA7XW;EA8XX,yBAAA;EAtVN,sFAAA;AA6OF;AA4GQ;EAtXN,aAAA;EACA,mBAAA;EACA,uBAAA;EAsXQ,2BAAA;EACA,SAAA;EACA,QA7YG;EA8YH,eAAA;EACA,gBAAA;AAxGV;AAyGU;EACE,WAAA;EACA,YAAA;EACA,yCAAA;EACA,yDAAA;AAvGZ;AA0GQ;EACE,SAAA;AAxGV;AA6GI;EACE,QA9ZO;EA+ZP,aAAA;EACA,eAAA;EACA,cAzae;EA0af,gBAAA;AA3GN;AA8GI;EACE,aAAA;EACA,mBAAA;EACA,WAAA;EACA,YAAA;EACA,YAAA;EACA,eAAA;EACA,mBAlae;EAmaf,mBAAA;AA5GN;AA8GM;EACE,mBA3bQ;EA4bR,yBAAA;AA5GR;AA+GM;EACE,aAAA;AA7GR;AAgHM;EACE,WAAA;EACA,YAAA;EACA,kBAAA;EACA,mBAjcW;EAkcX,0BAAA;AA9GR;;AAsHE;EACE,mBAAA;EACA,cA5ce;EA6cf,aAAA;EACA,mBAAA;EACA,SAAA;EACA,YAxcS;EAycT,eAAA;EACA,6BAAA;EACA,2BAAA;EACA,mBAtce;EAucf,8BAAA;EACA,mBAAA;EACA,eAAA;EACA,+CAAA;AAnHJ;AAqHI;EACE,aAAA;AAnHN;AAuHE;EACE,QA3dS;EA4dT,aAAA;EACA,kBAAA;EACA,mBAAA;EACA,mBAAA;AArHJ;AAwHE;EACE,WAAA;EACA,YAAA;EACA,8BAAA;AAtHJ;AAyHE;EACE,aAAA;AAvHJ;AA0HE;EACE,YAAA;EACA,iCAAA;EACA,mBAAA;EACA,iBAAA;EACA,iBAAA;EACA,eAAA;EACA,cAxfe;EAyff,QApfS;AA4Xb;;AA4HA;EACE,aAAA;AAzHF;;AA4HA;EACE,WAAA;AAzHF;;AA4HA;EACE,aAAA;EACA,uBAAA;EACA,mBAAA;EACA,iBAAA;EACA,iBAAA;EACA,yBAAA;EACA,sGAAA;EACA,mBAAA;EACA,eAAA;EACA,cAAA;EACA,gBAAA;AAzHF;;AA4HA;EACE,eAAA;EACA,MAAA;EACA,OAAA;EACA,YAAA;EACA,aAAA;EACA,oCAAA;EACA,cAAA;AAzHF;;AA4HA,kBAAA;AACA;EACE,eAAA;EACA,QAAA;EACA,SAAA;EACA,gCAAA;EACA,iBAAA;EACA,aAAA;EACA,kBAAA;EACA,WAAA;EACA,gBAAA;EACA,gBAAA;EACA,cAAA;EACA,aAAA;EACA,sBAAA;AAzHF;;AA4HA,iBAAA;AACA;EACE,gBAAA;EACA,YAAA;EACA,YA7iBW;EA8iBX,eAAA;EACA,WAAA;EACA,cAAA;AAzHF;AA0HE;EACC,mBAAA;AAxHH;;AA4HA,eAAA;AACA;EACE,OAAA;EACA,aAAA;EACA,sBAAA;EACA,eAAA;EACA,YAAA;EACA,gBAAA;EACA,iBAAA;AAzHF;AA0HE;EACE,kBAAA;EACA,yBAAA;EACA,iBAAA;EACA,gBAAA;AAxHJ;;AA6HA;EACE,aAAA;EACA,OAAA;EACA,gBAAA;AA1HF;AA2HE;EACE,iDAAA;AAzHJ;;AA6HA,iBAAA;AACA;EACE,aAAA;EACA,yBAAA;EACA,SAAA;AA1HF;;AA6HA,YAAA;AACA;EACE,WAAA;AA1HF;;AA6HA;;;EAGE,iBAAA;EACA,yBAAA;EACA,cAAA;AA1HF;;AA6HA;EACE;IACE,oBAAA;EA1HF;EA6HA;IACE,yBAAA;EA3HF;AACF;AA8HA;EACE;IAEE,YAAA;EA7HF;EA+HA;IACE,UAAA;EA7HF;AACF;AAiIA;EACE,eAAA;EACA,MAAA;EACA,OAAA;EACA,QAAA;EACA,SAAA;EACA,cAAA;EA7mBA,aAAA;EACA,mBAAA;EACA,uBAAA;EA6mBA,0DAAA;AA7HF;AA+HE;EACE,aAAA;AA7HJ;AAiII;EACE,8BAAA;EACA,eAAA;EACA,WAAA;EACA,YAAA;AA/HN;AAkII;EACE,QAAA;EACA,SAAA;EACA,kBAAA;EACA,mBAzpBa;EA0pBb,mBA5oBa;EA6oBb,aAlpBQ;EAmpBR,UAAA;EACA,gBAAA;EACA,eAAA;EACA,+BAAA;EACA,yCAAA;AAhIN;AAmII;EAroBF,aAAA;EACA,mBAAA;EACA,8BAAA;EAqoBI,SA/pBO;AAgiBb;AAmIE;EACE,mBAnqBS;EAoqBT,eAAA;EACA,cAAA;AAjIJ;AAoIE;EACE,eAAA;EACA,cAAA;EACA,mBA3qBS;AAyiBb;AAqIE;EACE,mBA9qBS;AA2iBb;AAsIE;EACE,cAAA;EACA,kBAtrBS;EAurBT,WAAA;EACA,eAAA;AApIJ;AAuIE;EACE,WAAA;EACA,aA5rBS;EA6rBT,yBAAA;EACA,kBAxrBe;EAyrBf,gBAAA;EACA,iBAAA;EACA,iBAAA;EACA,oBAAA;EACA,eAAA;EACA,uBAAA;AArIJ;AAuII;EACE,aAAA;EACA,qBAntBe;EAotBf,6CAAA;AArIN;AAwII;EACE,cAAA;EACA,UAAA;AAtIN;AA0IE;EACE,kBAAA;EACA,mBA7sBe;EA8sBf,eAAA;EACA,eAAA;EACA,gBAAA;EACA,oBAAA;AAxIJ;AA2IE;EACE,mBAAA;EACA,yBAAA;EACA,cAvuBiB;EAwDnB,sFAAA;AAuiBF;AA4IE;EA3rBA,6DAAA;EA6rBE,YAAA;EACA,cA3uBe;AAimBnB;AA4II;EACE,6DAAA;AA1IN;;AAmJA;EACE,eAAA;EACA,MAAA;EACA,OAAA;EACA,WAAA;EACA,YAAA;EACA,eAAA;EACA,8BAAA;EAtuBA,aAAA;EACA,mBAAA;EACA,uBAAA;EAsuBA,aAAA;AA9IF;AAiJI;EACE,aA5vBO;EA6vBP,cAAA;EACA,gBAAA;EACA,mBAvwBa;EAwwBb,mBA1vBa;AA2mBnB;AAkJI;EACE,SAtwBO;EAuwBP,aAAA;EACA,gBAvwBO;EAwwBP,yBAAA;AAhJN;AAoJE;EACE,gBAAA;EACA,eAAA;EACA,kBAAA;EACA,mBA1wBe;EA2wBf,oBAAA;AAlJJ;AAqJE;EACE,mBAAA;EACA,cA7xBe;AA0oBnB;AAqJI;EACE,mBAAA;AAnJN;AAuJE;EACE,mBAAA;EACA,yBAAA;EACA,cA1yBiB;EAwDnB,sFAAA;AA8lBF;;AA0JA;EACE,kBAAA;EAtxBA,aAAA;EACA,mBAAA;EACA,uBAAA;AAgoBF;;AA2JA;EACE,SAAA;EACA,YAAA;EACA,eAAA;EACA,2BAAA;EACA,mBAAA;EACA,cAAA;EACA,UAAA;EACA,YAAA;EACA,mBAAA;EACA,0CAAA;EACA,aAAA;EACA,eAAA;EACA,gBAAA;EACA,0DAAA;AAxJF;AA0JI;EACE,cAAA;AAxJN;AA2JE;EACE,aAAA;AAzJJ;AA4JE;EACE,UAAA;EACA,SAAA;EACA,YAAA;EACA,aAAA;EACA,mBAAA;EACA,WAAA;EACA,YAAA;EACA,mBAAA;AA1JJ;AA6JE;EACE,iBAAA;EACA,aAAA;EACA,mBAAA;EACA,uBAAA;AA3JJ;AA4JI;EACE,WAAA;EACA,YAAA;AA1JN;AA8JE;EACE,OAAA;EACA,kBAAA;EACA,gBAAA;AA5JJ;AA+JE;EACE,aAAA;EACA,mBAAA;EACA,uBAAA;EACA,6BAAA;EACA,gCAAA;EACA,6BAAA;EACA,8BAAA;EACA,2BAAA;EACA,2BAAA;EACA,eAAA;EACA,gCAAA;EACA,4BAAA;AA7JJ;AA+JE;EACE,qCAAA;AA7JJ;;AAiKA;EACE;IACE,4CAAA;IACA,UAAA;EA9JF;EAgKA;IACE,yCAAA;IACA,UAAA;EA9JF;AACF",sourceRoot:""}]);const a=i},"../../node_modules/css-loader/dist/runtime/api.js":e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n}).join("")},t.i=function(e,n,s){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(s)for(var o=0;o<this.length;o++){var i=this[o][0];null!=i&&(r[i]=!0)}for(var a=0;a<e.length;a++){var l=[].concat(e[a]);s&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},"../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js":e=>{"use strict";function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var s,r,o=[],i=!0,a=!1;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(o.push(s.value),!t||o.length!==t);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(a)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var s=Object.prototype.toString.call(e).slice(8,-1);"Object"===s&&e.constructor&&(s=e.constructor.name);if("Map"===s||"Set"===s)return Array.from(e);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return n(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}e.exports=function(e){var n=t(e,4),s=n[1],r=n[3];if(!r)return s;if("function"==typeof btoa){var o=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),a="/*# ".concat(i," */"),l=r.sources.map(function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")});return[s].concat(l).concat([a]).join("\n")}return[s].join("\n")}},"../../node_modules/css-loader/dist/runtime/getUrl.js":e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},"../../node_modules/events/events.js":e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,s=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var r=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(n,s){function r(n){e.removeListener(t,o),s(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",r),n([].slice.call(arguments))}A(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&A(e,"error",t,n)}(e,r,{once:!0})})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var i=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,s){var r,o,i,c;if(a(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),i=o[t]),void 0===i)i=o[t]=n,++e._eventsCount;else if("function"==typeof i?i=o[t]=s?[n,i]:[i,n]:s?i.unshift(n):i.push(n),(r=l(e))>0&&i.length>r&&!i.warned){i.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=i.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var s={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=u.bind(s);return r.listener=n,s.wrapFn=r,r}function p(e,t,n){var s=e._events;if(void 0===s)return[];var r=s[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(r):h(r,r.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),s=0;s<t;++s)n[s]=e[s];return n}function A(e,t,n,s){if("function"==typeof e.on)s.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function r(o){s.once&&e.removeEventListener(t,r),n(o)})}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");i=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)s(l,this,t);else{var c=l.length,u=h(l,c);for(n=0;n<c;++n)s(u[n],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,s,r,o,i;if(a(t),void 0===(s=this._events))return this;if(void 0===(n=s[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete s[e],s.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(r=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){i=n[o].listener,r=o;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,r),1===n.length&&(s[e]=n[0]),void 0!==s.removeListener&&this.emit("removeListener",e,i||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,s;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var r,o=Object.keys(n);for(s=0;s<o.length;++s)"removeListener"!==(r=o[s])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(s=t.length-1;s>=0;s--)this.removeListener(e,t[s]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},o.prototype.listenerCount=m,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},"../../node_modules/lodash.isequal/index.js":(e,t,n)=>{e=n.nmd(e);var s="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",d="[object Map]",p="[object Number]",m="[object Object]",h="[object Promise]",A="[object RegExp]",g="[object Set]",f="[object String]",_="[object Symbol]",E="[object WeakMap]",b="[object ArrayBuffer]",y="[object DataView]",T=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,v={};v["[object Float32Array]"]=v["[object Float64Array]"]=v["[object Int8Array]"]=v["[object Int16Array]"]=v["[object Int32Array]"]=v["[object Uint8Array]"]=v["[object Uint8ClampedArray]"]=v["[object Uint16Array]"]=v["[object Uint32Array]"]=!0,v[o]=v[i]=v[b]=v[a]=v[y]=v[l]=v[c]=v[u]=v[d]=v[p]=v[m]=v[A]=v[g]=v[f]=v[E]=!1;var C="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,R="object"==typeof self&&self&&self.Object===Object&&self,I=C||R||Function("return this")(),w=t&&!t.nodeType&&t,L=w&&e&&!e.nodeType&&e,O=L&&L.exports===w,P=O&&C.process,N=function(){try{return P&&P.binding&&P.binding("util")}catch(e){}}(),x=N&&N.isTypedArray;function M(e,t){for(var n=-1,s=null==e?0:e.length;++n<s;)if(t(e[n],n,e))return!0;return!1}function k(e){var t=-1,n=Array(e.size);return e.forEach(function(e,s){n[++t]=[s,e]}),n}function D(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var B,j,U,G=Array.prototype,F=Function.prototype,H=Object.prototype,Y=I["__core-js_shared__"],z=F.toString,W=H.hasOwnProperty,V=(B=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+B:"",X=H.toString,Z=RegExp("^"+z.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q=O?I.Buffer:void 0,K=I.Symbol,Q=I.Uint8Array,$=H.propertyIsEnumerable,J=G.splice,ee=K?K.toStringTag:void 0,te=Object.getOwnPropertySymbols,ne=q?q.isBuffer:void 0,se=(j=Object.keys,U=Object,function(e){return j(U(e))}),re=Ne(I,"DataView"),oe=Ne(I,"Map"),ie=Ne(I,"Promise"),ae=Ne(I,"Set"),le=Ne(I,"WeakMap"),ce=Ne(Object,"create"),ue=De(re),de=De(oe),pe=De(ie),me=De(ae),he=De(le),Ae=K?K.prototype:void 0,ge=Ae?Ae.valueOf:void 0;function fe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}function _e(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}function Ee(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}function be(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Ee;++t<n;)this.add(e[t])}function ye(e){var t=this.__data__=new _e(e);this.size=t.size}function Te(e,t){var n=Ue(e),s=!n&&je(e),r=!n&&!s&&Ge(e),o=!n&&!s&&!r&&We(e),i=n||s||r||o,a=i?function(e,t){for(var n=-1,s=Array(e);++n<e;)s[n]=t(n);return s}(e.length,String):[],l=a.length;for(var c in e)!t&&!W.call(e,c)||i&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ke(c,l))||a.push(c);return a}function Se(e,t){for(var n=e.length;n--;)if(Be(e[n][0],t))return n;return-1}function ve(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ee&&ee in Object(e)?function(e){var t=W.call(e,ee),n=e[ee];try{e[ee]=void 0;var s=!0}catch(e){}var r=X.call(e);s&&(t?e[ee]=n:delete e[ee]);return r}(e):function(e){return X.call(e)}(e)}function Ce(e){return ze(e)&&ve(e)==o}function Re(e,t,n,s,r){return e===t||(null==e||null==t||!ze(e)&&!ze(t)?e!=e&&t!=t:function(e,t,n,s,r,u){var h=Ue(e),E=Ue(t),T=h?i:Me(e),S=E?i:Me(t),v=(T=T==o?m:T)==m,C=(S=S==o?m:S)==m,R=T==S;if(R&&Ge(e)){if(!Ge(t))return!1;h=!0,v=!1}if(R&&!v)return u||(u=new ye),h||We(e)?Le(e,t,n,s,r,u):function(e,t,n,s,r,o,i){switch(n){case y:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case b:return!(e.byteLength!=t.byteLength||!o(new Q(e),new Q(t)));case a:case l:case p:return Be(+e,+t);case c:return e.name==t.name&&e.message==t.message;case A:case f:return e==t+"";case d:var u=k;case g:var m=1&s;if(u||(u=D),e.size!=t.size&&!m)return!1;var h=i.get(e);if(h)return h==t;s|=2,i.set(e,t);var E=Le(u(e),u(t),s,r,o,i);return i.delete(e),E;case _:if(ge)return ge.call(e)==ge.call(t)}return!1}(e,t,T,n,s,r,u);if(!(1&n)){var I=v&&W.call(e,"__wrapped__"),w=C&&W.call(t,"__wrapped__");if(I||w){var L=I?e.value():e,O=w?t.value():t;return u||(u=new ye),r(L,O,n,s,u)}}if(!R)return!1;return u||(u=new ye),function(e,t,n,s,r,o){var i=1&n,a=Oe(e),l=a.length,c=Oe(t),u=c.length;if(l!=u&&!i)return!1;var d=l;for(;d--;){var p=a[d];if(!(i?p in t:W.call(t,p)))return!1}var m=o.get(e);if(m&&o.get(t))return m==t;var h=!0;o.set(e,t),o.set(t,e);var A=i;for(;++d<l;){var g=e[p=a[d]],f=t[p];if(s)var _=i?s(f,g,p,t,e,o):s(g,f,p,e,t,o);if(!(void 0===_?g===f||r(g,f,n,s,o):_)){h=!1;break}A||(A="constructor"==p)}if(h&&!A){var E=e.constructor,b=t.constructor;E==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof E&&E instanceof E&&"function"==typeof b&&b instanceof b||(h=!1)}return o.delete(e),o.delete(t),h}(e,t,n,s,r,u)}(e,t,n,s,Re,r))}function Ie(e){return!(!Ye(e)||function(e){return!!V&&V in e}(e))&&(Fe(e)?Z:T).test(De(e))}function we(e){if(n=(t=e)&&t.constructor,s="function"==typeof n&&n.prototype||H,t!==s)return se(e);var t,n,s,r=[];for(var o in Object(e))W.call(e,o)&&"constructor"!=o&&r.push(o);return r}function Le(e,t,n,s,r,o){var i=1&n,a=e.length,l=t.length;if(a!=l&&!(i&&l>a))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var u=-1,d=!0,p=2&n?new be:void 0;for(o.set(e,t),o.set(t,e);++u<a;){var m=e[u],h=t[u];if(s)var A=i?s(h,m,u,t,e,o):s(m,h,u,e,t,o);if(void 0!==A){if(A)continue;d=!1;break}if(p){if(!M(t,function(e,t){if(i=t,!p.has(i)&&(m===e||r(m,e,n,s,o)))return p.push(t);var i})){d=!1;break}}else if(m!==h&&!r(m,h,n,s,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function Oe(e){return function(e,t,n){var s=t(e);return Ue(e)?s:function(e,t){for(var n=-1,s=t.length,r=e.length;++n<s;)e[r+n]=t[n];return e}(s,n(e))}(e,Ve,xe)}function Pe(e,t){var n,s,r=e.__data__;return("string"==(s=typeof(n=t))||"number"==s||"symbol"==s||"boolean"==s?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function Ne(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ie(n)?n:void 0}fe.prototype.clear=function(){this.__data__=ce?ce(null):{},this.size=0},fe.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},fe.prototype.get=function(e){var t=this.__data__;if(ce){var n=t[e];return n===s?void 0:n}return W.call(t,e)?t[e]:void 0},fe.prototype.has=function(e){var t=this.__data__;return ce?void 0!==t[e]:W.call(t,e)},fe.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ce&&void 0===t?s:t,this},_e.prototype.clear=function(){this.__data__=[],this.size=0},_e.prototype.delete=function(e){var t=this.__data__,n=Se(t,e);return!(n<0)&&(n==t.length-1?t.pop():J.call(t,n,1),--this.size,!0)},_e.prototype.get=function(e){var t=this.__data__,n=Se(t,e);return n<0?void 0:t[n][1]},_e.prototype.has=function(e){return Se(this.__data__,e)>-1},_e.prototype.set=function(e,t){var n=this.__data__,s=Se(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this},Ee.prototype.clear=function(){this.size=0,this.__data__={hash:new fe,map:new(oe||_e),string:new fe}},Ee.prototype.delete=function(e){var t=Pe(this,e).delete(e);return this.size-=t?1:0,t},Ee.prototype.get=function(e){return Pe(this,e).get(e)},Ee.prototype.has=function(e){return Pe(this,e).has(e)},Ee.prototype.set=function(e,t){var n=Pe(this,e),s=n.size;return n.set(e,t),this.size+=n.size==s?0:1,this},be.prototype.add=be.prototype.push=function(e){return this.__data__.set(e,s),this},be.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.clear=function(){this.__data__=new _e,this.size=0},ye.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ye.prototype.get=function(e){return this.__data__.get(e)},ye.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.set=function(e,t){var n=this.__data__;if(n instanceof _e){var s=n.__data__;if(!oe||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ee(s)}return n.set(e,t),this.size=n.size,this};var xe=te?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,s=null==e?0:e.length,r=0,o=[];++n<s;){var i=e[n];t(i,n,e)&&(o[r++]=i)}return o}(te(e),function(t){return $.call(e,t)}))}:function(){return[]},Me=ve;function ke(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||S.test(e))&&e>-1&&e%1==0&&e<t}function De(e){if(null!=e){try{return z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Be(e,t){return e===t||e!=e&&t!=t}(re&&Me(new re(new ArrayBuffer(1)))!=y||oe&&Me(new oe)!=d||ie&&Me(ie.resolve())!=h||ae&&Me(new ae)!=g||le&&Me(new le)!=E)&&(Me=function(e){var t=ve(e),n=t==m?e.constructor:void 0,s=n?De(n):"";if(s)switch(s){case ue:return y;case de:return d;case pe:return h;case me:return g;case he:return E}return t});var je=Ce(function(){return arguments}())?Ce:function(e){return ze(e)&&W.call(e,"callee")&&!$.call(e,"callee")},Ue=Array.isArray;var Ge=ne||function(){return!1};function Fe(e){if(!Ye(e))return!1;var t=ve(e);return t==u||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function He(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Ye(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ze(e){return null!=e&&"object"==typeof e}var We=x?function(e){return function(t){return e(t)}}(x):function(e){return ze(e)&&He(e.length)&&!!v[ve(e)]};function Ve(e){return null!=(t=e)&&He(t.length)&&!Fe(t)?Te(e):we(e);var t}e.exports=function(e,t){return Re(e,t)}},"../../node_modules/lodash.keys/index.js":e=>{var t=9007199254740991,n="[object Arguments]",s="[object Function]",r="[object GeneratorFunction]",o=/^(?:0|[1-9]\d*)$/;var i,a,l=Object.prototype,c=l.hasOwnProperty,u=l.toString,d=l.propertyIsEnumerable,p=(i=Object.keys,a=Object,function(e){return i(a(e))});function m(e,t){var s=g(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&f(e)}(e)&&c.call(e,"callee")&&(!d.call(e,"callee")||u.call(e)==n)}(e)?function(e,t){for(var n=-1,s=Array(e);++n<e;)s[n]=t(n);return s}(e.length,String):[],r=s.length,o=!!r;for(var i in e)!t&&!c.call(e,i)||o&&("length"==i||A(i,r))||s.push(i);return s}function h(e){if(n=(t=e)&&t.constructor,s="function"==typeof n&&n.prototype||l,t!==s)return p(e);var t,n,s,r=[];for(var o in Object(e))c.call(e,o)&&"constructor"!=o&&r.push(o);return r}function A(e,n){return!!(n=null==n?t:n)&&("number"==typeof e||o.test(e))&&e>-1&&e%1==0&&e<n}var g=Array.isArray;function f(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=t}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?u.call(e):"";return t==s||t==r}(e)}e.exports=function(e){return f(e)?m(e):h(e)}},"../../node_modules/lodash.merge/index.js":(e,t,n)=>{e=n.nmd(e);var s="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Function]",a="[object Object]",l=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u[o]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u[i]=u["[object Map]"]=u["[object Number]"]=u[a]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1;var d="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,p="object"==typeof self&&self&&self.Object===Object&&self,m=d||p||Function("return this")(),h=t&&!t.nodeType&&t,A=h&&e&&!e.nodeType&&e,g=A&&A.exports===h,f=g&&d.process,_=function(){try{var e=A&&A.require&&A.require("util").types;return e||f&&f.binding&&f.binding("util")}catch(e){}}(),E=_&&_.isTypedArray;var b,y,T,S=Array.prototype,v=Function.prototype,C=Object.prototype,R=m["__core-js_shared__"],I=v.toString,w=C.hasOwnProperty,L=(b=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||""))?"Symbol(src)_1."+b:"",O=C.toString,P=I.call(Object),N=RegExp("^"+I.call(w).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),x=g?m.Buffer:void 0,M=m.Symbol,k=m.Uint8Array,D=x?x.allocUnsafe:void 0,B=(y=Object.getPrototypeOf,T=Object,function(e){return y(T(e))}),j=Object.create,U=C.propertyIsEnumerable,G=S.splice,F=M?M.toStringTag:void 0,H=function(){try{var e=he(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Y=x?x.isBuffer:void 0,z=Math.max,W=Date.now,V=he(m,"Map"),X=he(Object,"create"),Z=function(){function e(){}return function(t){if(!Re(t))return{};if(j)return j(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}function K(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}function Q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}function $(e){var t=this.__data__=new K(e);this.size=t.size}function J(e,t){var n=ye(e),s=!n&&be(e),r=!n&&!s&&Se(e),o=!n&&!s&&!r&&we(e),i=n||s||r||o,a=i?function(e,t){for(var n=-1,s=Array(e);++n<e;)s[n]=t(n);return s}(e.length,String):[],l=a.length;for(var c in e)!t&&!w.call(e,c)||i&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ae(c,l))||a.push(c);return a}function ee(e,t,n){(void 0!==n&&!Ee(e[t],n)||void 0===n&&!(t in e))&&se(e,t,n)}function te(e,t,n){var s=e[t];w.call(e,t)&&Ee(s,n)&&(void 0!==n||t in e)||se(e,t,n)}function ne(e,t){for(var n=e.length;n--;)if(Ee(e[n][0],t))return n;return-1}function se(e,t,n){"__proto__"==t&&H?H(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}q.prototype.clear=function(){this.__data__=X?X(null):{},this.size=0},q.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},q.prototype.get=function(e){var t=this.__data__;if(X){var n=t[e];return n===s?void 0:n}return w.call(t,e)?t[e]:void 0},q.prototype.has=function(e){var t=this.__data__;return X?void 0!==t[e]:w.call(t,e)},q.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=X&&void 0===t?s:t,this},K.prototype.clear=function(){this.__data__=[],this.size=0},K.prototype.delete=function(e){var t=this.__data__,n=ne(t,e);return!(n<0)&&(n==t.length-1?t.pop():G.call(t,n,1),--this.size,!0)},K.prototype.get=function(e){var t=this.__data__,n=ne(t,e);return n<0?void 0:t[n][1]},K.prototype.has=function(e){return ne(this.__data__,e)>-1},K.prototype.set=function(e,t){var n=this.__data__,s=ne(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this},Q.prototype.clear=function(){this.size=0,this.__data__={hash:new q,map:new(V||K),string:new q}},Q.prototype.delete=function(e){var t=me(this,e).delete(e);return this.size-=t?1:0,t},Q.prototype.get=function(e){return me(this,e).get(e)},Q.prototype.has=function(e){return me(this,e).has(e)},Q.prototype.set=function(e,t){var n=me(this,e),s=n.size;return n.set(e,t),this.size+=n.size==s?0:1,this},$.prototype.clear=function(){this.__data__=new K,this.size=0},$.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},$.prototype.get=function(e){return this.__data__.get(e)},$.prototype.has=function(e){return this.__data__.has(e)},$.prototype.set=function(e,t){var n=this.__data__;if(n instanceof K){var s=n.__data__;if(!V||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new Q(s)}return n.set(e,t),this.size=n.size,this};var re,oe=function(e,t,n){for(var s=-1,r=Object(e),o=n(e),i=o.length;i--;){var a=o[re?i:++s];if(!1===t(r[a],a,r))break}return e};function ie(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":F&&F in Object(e)?function(e){var t=w.call(e,F),n=e[F];try{e[F]=void 0;var s=!0}catch(e){}var r=O.call(e);s&&(t?e[F]=n:delete e[F]);return r}(e):function(e){return O.call(e)}(e)}function ae(e){return Ie(e)&&ie(e)==o}function le(e){return!(!Re(e)||function(e){return!!L&&L in e}(e))&&(ve(e)?N:l).test(function(e){if(null!=e){try{return I.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function ce(e){if(!Re(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ge(e),n=[];for(var s in e)("constructor"!=s||!t&&w.call(e,s))&&n.push(s);return n}function ue(e,t,n,s,r){e!==t&&oe(t,function(o,i){if(r||(r=new $),Re(o))!function(e,t,n,s,r,o,i){var l=fe(e,n),c=fe(t,n),u=i.get(c);if(u)return void ee(e,n,u);var d=o?o(l,c,n+"",e,t,i):void 0,p=void 0===d;if(p){var m=ye(c),h=!m&&Se(c),A=!m&&!h&&we(c);d=c,m||h||A?ye(l)?d=l:Ie(b=l)&&Te(b)?d=function(e,t){var n=-1,s=e.length;t||(t=Array(s));for(;++n<s;)t[n]=e[n];return t}(l):h?(p=!1,d=function(e,t){if(t)return e.slice();var n=e.length,s=D?D(n):new e.constructor(n);return e.copy(s),s}(c,!0)):A?(p=!1,g=c,f=!0?(_=g.buffer,E=new _.constructor(_.byteLength),new k(E).set(new k(_)),E):g.buffer,d=new g.constructor(f,g.byteOffset,g.length)):d=[]:function(e){if(!Ie(e)||ie(e)!=a)return!1;var t=B(e);if(null===t)return!0;var n=w.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&I.call(n)==P}(c)||be(c)?(d=l,be(l)?d=function(e){return function(e,t,n,s){var r=!n;n||(n={});var o=-1,i=t.length;for(;++o<i;){var a=t[o],l=s?s(n[a],e[a],a,n,e):void 0;void 0===l&&(l=e[a]),r?se(n,a,l):te(n,a,l)}return n}(e,Le(e))}(l):Re(l)&&!ve(l)||(d=function(e){return"function"!=typeof e.constructor||ge(e)?{}:Z(B(e))}(c))):p=!1}var g,f,_,E;var b;p&&(i.set(c,d),r(d,c,s,o,i),i.delete(c));ee(e,n,d)}(e,t,i,n,ue,s,r);else{var l=s?s(fe(e,i),o,i+"",e,t,r):void 0;void 0===l&&(l=o),ee(e,i,l)}},Le)}function de(e,t){return _e(function(e,t,n){return t=z(void 0===t?e.length-1:t,0),function(){for(var s=arguments,r=-1,o=z(s.length-t,0),i=Array(o);++r<o;)i[r]=s[t+r];r=-1;for(var a=Array(t+1);++r<t;)a[r]=s[r];return a[t]=n(i),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,a)}}(e,t,Ne),e+"")}var pe=H?function(e,t){return H(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Ne;function me(e,t){var n,s,r=e.__data__;return("string"==(s=typeof(n=t))||"number"==s||"symbol"==s||"boolean"==s?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function he(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return le(n)?n:void 0}function Ae(e,t){var n=typeof e;return!!(t=null==t?r:t)&&("number"==n||"symbol"!=n&&c.test(e))&&e>-1&&e%1==0&&e<t}function ge(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||C)}function fe(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var _e=function(e){var t=0,n=0;return function(){var s=W(),r=16-(s-n);if(n=s,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(pe);function Ee(e,t){return e===t||e!=e&&t!=t}var be=ae(function(){return arguments}())?ae:function(e){return Ie(e)&&w.call(e,"callee")&&!U.call(e,"callee")},ye=Array.isArray;function Te(e){return null!=e&&Ce(e.length)&&!ve(e)}var Se=Y||function(){return!1};function ve(e){if(!Re(e))return!1;var t=ie(e);return t==i||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ce(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Re(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ie(e){return null!=e&&"object"==typeof e}var we=E?function(e){return function(t){return e(t)}}(E):function(e){return Ie(e)&&Ce(e.length)&&!!u[ie(e)]};function Le(e){return Te(e)?J(e,!0):ce(e)}var Oe,Pe=(Oe=function(e,t,n){ue(e,t,n)},de(function(e,t){var n=-1,s=t.length,r=s>1?t[s-1]:void 0,o=s>2?t[2]:void 0;for(r=Oe.length>3&&"function"==typeof r?(s--,r):void 0,o&&function(e,t,n){if(!Re(n))return!1;var s=typeof t;return!!("number"==s?Te(n)&&Ae(t,n.length):"string"==s&&t in n)&&Ee(n[t],e)}(t[0],t[1],o)&&(r=s<3?void 0:r,s=1),e=Object(e);++n<s;){var i=t[n];i&&Oe(e,i,n,r)}return e}));function Ne(e){return e}e.exports=Pe},"../../node_modules/lodash.xor/index.js":(e,t,n)=>{var s="__lodash_hash_undefined__",r=9007199254740991,o=/^\[object .+?Constructor\]$/,i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,a="object"==typeof self&&self&&self.Object===Object&&self,l=i||a||Function("return this")();function c(e,t){return!!(e?e.length:0)&&function(e,t,n){if(t!=t)return function(e,t,n,s){var r=e.length,o=n+(s?1:-1);for(;s?o--:++o<r;)if(t(e[o],o,e))return o;return-1}(e,p,n);var s=n-1,r=e.length;for(;++s<r;)if(e[s]===t)return s;return-1}(e,t,0)>-1}function u(e,t,n){for(var s=-1,r=e?e.length:0;++s<r;)if(n(t,e[s]))return!0;return!1}function d(e,t){for(var n=-1,s=t.length,r=e.length;++n<s;)e[r+n]=t[n];return e}function p(e){return e!=e}function m(e,t){return e.has(t)}function h(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var A,g=Array.prototype,f=Function.prototype,_=Object.prototype,E=l["__core-js_shared__"],b=(A=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||""))?"Symbol(src)_1."+A:"",y=f.toString,T=_.hasOwnProperty,S=_.toString,v=RegExp("^"+y.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=g.splice,R=Math.max,I=G(l,"Map"),w=G(l,"Set"),L=G(Object,"create");function O(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}function N(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}function x(e){var t=-1,n=e?e.length:0;for(this.__data__=new N;++t<n;)this.add(e[t])}function M(e,t){for(var n=e.length;n--;)if(z(e[n][0],t))return n;return-1}function k(e,t,n,s){var r,o=-1,i=c,a=!0,l=e.length,d=[],p=t.length;if(!l)return d;n&&(t=function(e,t){for(var n=-1,s=e?e.length:0,r=Array(s);++n<s;)r[n]=t(e[n],n,e);return r}(t,(r=n,function(e){return r(e)}))),s?(i=u,a=!1):t.length>=200&&(i=m,a=!1,t=new x(t));e:for(;++o<l;){var h=e[o],A=n?n(h):h;if(h=s||0!==h?h:0,a&&A==A){for(var g=p;g--;)if(t[g]===A)continue e;d.push(h)}else i(t,A,s)||d.push(h)}return d}function D(e){if(!Z(e)||(t=e,b&&b in t))return!1;var t,n=X(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?v:o;return n.test(function(e){if(null!=e){try{return y.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function B(e,t,n){for(var s=-1,r=e.length;++s<r;)var o=o?d(k(o,e[s],t,n),k(e[s],o,t,n)):e[s];return o&&o.length?function(e,t,n){var s=-1,r=c,o=e.length,i=!0,a=[],l=a;if(n)i=!1,r=u;else if(o>=200){var d=t?null:j(e);if(d)return h(d);i=!1,r=m,l=new x}else l=t?[]:a;e:for(;++s<o;){var p=e[s],A=t?t(p):p;if(p=n||0!==p?p:0,i&&A==A){for(var g=l.length;g--;)if(l[g]===A)continue e;t&&l.push(A),a.push(p)}else r(l,A,n)||(l!==a&&l.push(A),a.push(p))}return a}(o,t,n):[]}O.prototype.clear=function(){this.__data__=L?L(null):{}},O.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},O.prototype.get=function(e){var t=this.__data__;if(L){var n=t[e];return n===s?void 0:n}return T.call(t,e)?t[e]:void 0},O.prototype.has=function(e){var t=this.__data__;return L?void 0!==t[e]:T.call(t,e)},O.prototype.set=function(e,t){return this.__data__[e]=L&&void 0===t?s:t,this},P.prototype.clear=function(){this.__data__=[]},P.prototype.delete=function(e){var t=this.__data__,n=M(t,e);return!(n<0)&&(n==t.length-1?t.pop():C.call(t,n,1),!0)},P.prototype.get=function(e){var t=this.__data__,n=M(t,e);return n<0?void 0:t[n][1]},P.prototype.has=function(e){return M(this.__data__,e)>-1},P.prototype.set=function(e,t){var n=this.__data__,s=M(n,e);return s<0?n.push([e,t]):n[s][1]=t,this},N.prototype.clear=function(){this.__data__={hash:new O,map:new(I||P),string:new O}},N.prototype.delete=function(e){return U(this,e).delete(e)},N.prototype.get=function(e){return U(this,e).get(e)},N.prototype.has=function(e){return U(this,e).has(e)},N.prototype.set=function(e,t){return U(this,e).set(e,t),this},x.prototype.add=x.prototype.push=function(e){return this.__data__.set(e,s),this},x.prototype.has=function(e){return this.__data__.has(e)};var j=w&&1/h(new w([,-0]))[1]==1/0?function(e){return new w(e)}:function(){};function U(e,t){var n,s,r=e.__data__;return("string"==(s=typeof(n=t))||"number"==s||"symbol"==s||"boolean"==s?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function G(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return D(n)?n:void 0}var F,H,Y=(F=function(e){return B(function(e,t){for(var n=-1,s=e?e.length:0,r=0,o=[];++n<s;){var i=e[n];t(i,n,e)&&(o[r++]=i)}return o}(e,V))},H=R(void 0===H?F.length-1:H,0),function(){for(var e=arguments,t=-1,n=R(e.length-H,0),s=Array(n);++t<n;)s[t]=e[H+t];t=-1;for(var r=Array(H+1);++t<H;)r[t]=e[t];return r[H]=s,function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(F,this,r)});function z(e,t){return e===t||e!=e&&t!=t}function W(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!X(e)}function V(e){return function(e){return!!e&&"object"==typeof e}(e)&&W(e)}function X(e){var t=Z(e)?S.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Z(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=Y},"../../node_modules/rrweb-player/dist/style.css":(e,t,n)=>{"use strict";var s=n("../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),r=n.n(s),o=n("../../node_modules/style-loader/dist/runtime/styleDomAPI.js"),i=n.n(o),a=n("../../node_modules/style-loader/dist/runtime/getTarget.js"),l=n.n(a),c=n("../../node_modules/style-loader/dist/runtime/insertStyleElement.js"),u=n.n(c),d=n("../../node_modules/css-loader/dist/cjs.js!../../node_modules/rrweb-player/dist/style.css"),p={styleTagTransform:function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}},setAttributes:function(e){var t=n.nc;t&&e.setAttribute("nonce",t)},insert:function(e){var t=l()("head");if(!t)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");t.appendChild(e)}};p.domAPI=i(),p.insertStyleElement=u();r()(d.default,p),d.default&&d.default.locals&&d.default.locals},"./src/index.scss":(e,t,n)=>{"use strict";var s=n("../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),r=n.n(s),o=n("../../node_modules/style-loader/dist/runtime/styleDomAPI.js"),i=n.n(o),a=n("../../node_modules/style-loader/dist/runtime/getTarget.js"),l=n.n(a),c=n("../../node_modules/style-loader/dist/runtime/insertStyleElement.js"),u=n.n(c),d=n("../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./src/index.scss"),p={styleTagTransform:function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}},setAttributes:function(e){var t=n.nc;t&&e.setAttribute("nonce",t)},insert:function(e){var t=l()("head");if(!t)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");t.appendChild(e)}};p.domAPI=i(),p.insertStyleElement=u();r()(d.default,p),d.default&&d.default.locals&&d.default.locals},"../../node_modules/style-loader/dist/runtime/getTarget.js":e=>{"use strict";var t={};e.exports=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}},"../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js":e=>{"use strict";var t=[];function n(e){for(var n=-1,s=0;s<t.length;s++)if(t[s].identifier===e){n=s;break}return n}function s(e,s){for(var o={},i=[],a=0;a<e.length;a++){var l=e[a],c=s.base?l[0]+s.base:l[0],u=o[c]||0,d="".concat(c," ").concat(u);o[c]=u+1;var p=n(d),m={css:l[1],media:l[2],sourceMap:l[3]};-1!==p?(t[p].references++,t[p].updater(m)):t.push({identifier:d,updater:r(m,s),references:1}),i.push(d)}return i}function r(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n.update(e=t)}else n.remove()}}e.exports=function(e,r){var o=s(e=e||[],r=r||{});return function(e){e=e||[];for(var i=0;i<o.length;i++){var a=n(o[i]);t[a].references--}for(var l=s(e,r),c=0;c<o.length;c++){var u=n(o[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}o=l}}},"../../node_modules/style-loader/dist/runtime/insertStyleElement.js":e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t),t}},"../../node_modules/style-loader/dist/runtime/styleDomAPI.js":e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var s=n.css,r=n.media,o=n.sourceMap;r?e.setAttribute("media",r):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(s+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(s,e)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},"../../node_modules/to-json-schema/lib/helpers.js":(e,t,n)=>{"use strict";var s=n("../../node_modules/lodash.isequal/index.js"),r=n("../../node_modules/lodash.xor/index.js"),o=n("../../node_modules/lodash.keys/index.js"),i=n("../../node_modules/to-json-schema/lib/jsonSchemaHelpers.js"),a=i.types,l=i.FORMAT_REGEXPS,c=i.isFormat,u={stringFormats:o(l),isFormat:c,typeNames:["integer","number","string","array","object","boolean","null","date"],getType:function(e){return u.typeNames.find(function(t){return a[t](e)})},mergeSchemaObjs:function(e,t){var n=o(e),i=o(t);if(!s(n,i)){if("array"===e.type&&"array"===t.type&&s(r(n,i),["items"])){var a=n.length>i.length?t:e,l=n.length>i.length?e:t;if(o(a).reduce(function(e,t){return s(a[t],l[t])&&e},!0))return a}if("object"!==e.type||"object"!==t.type)return null}for(var c={},d=0,p=n.length;d<p;d++){var m=n[d];if("object"===u.getType(e[m])){var h=u.mergeSchemaObjs(e[m],t[m]);if(h)c[m]=h;else{if("object"===e.type||"object"===t.type)return{type:"object"};if("items"!==m||"array"!==e.type||"array"!==t.type)return null}}else if("type"===m)if(e[m]!==t[m]){if(!("integer"===e[m]&&"number"===t[m]||"number"===e[m]&&"integer"===t[m]))return null;c[m]="number"}else c[m]=e[m];else{if(!s(e[m],t[m]))return null;c[m]=e[m]}}return c}};e.exports=u},"../../node_modules/to-json-schema/lib/index.js":(e,t,n)=>{"use strict";function s(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}var r=n("../../node_modules/lodash.merge/index.js"),o=n("../../node_modules/lodash.isequal/index.js"),i=n("../../node_modules/to-json-schema/lib/helpers.js"),a={required:!1,postProcessFnc:null,strings:{detectFormat:!0,preProcessFnc:null},arrays:{mode:"all"},objects:{preProcessFnc:null,postProcessFnc:null,additionalProperties:!0}},l=["hostname","host-name","alpha","alphanumeric","regex","regexp","pattern"],c=i.stringFormats.filter(function(e){return l.indexOf(e)<0});var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=r({},a,t),this.getObjectSchemaDefault=this.getObjectSchemaDefault.bind(this),this.getStringSchemaDefault=this.getStringSchemaDefault.bind(this),this.objectPostProcessDefault=this.objectPostProcessDefault.bind(this),this.commmonPostProcessDefault=this.commmonPostProcessDefault.bind(this),this.objectPostProcessDefault=this.objectPostProcessDefault.bind(this)}var t,n,l;return t=e,(n=[{key:"getCommonArrayItemSchema",value:function(e){var t=this,n=e.map(function(e){return t.getSchema(e)});return n.reduce(function(e,t){return i.mergeSchemaObjs(e,t)},n.pop())}},{key:"getObjectSchemaDefault",value:function(e){var t=this,n={type:"object"},s=Object.keys(e);return s.length>0&&(n.properties=s.reduce(function(n,s){return n[s]=t.getSchema(e[s]),n},{})),n}},{key:"getObjectSchema",value:function(e){return this.options.objects.preProcessFnc?this.options.objects.preProcessFnc(e,this.getObjectSchemaDefault):this.getObjectSchemaDefault(e)}},{key:"getArraySchemaMerging",value:function(e){var t={type:"array"},n=function(e){return function(e){for(var t,n=0,s=e.length;n<s;n++){var r=e[n];if(n>0&&("integer"===r&&"number"===t?r="number":"number"===r&&"integer"===t&&(t="number"),t!==r))return null;t=r}return t}(e.map(function(e){return i.getType(e)}))}(e);if(n)if(t.items={type:n},"integer"!==n&&"number"!==n){var s=this.getCommonArrayItemSchema(e);s&&(t.items=s)}else this.options.required&&(t.items.required=!0);return t}},{key:"getArraySchemaNoMerging",value:function(e){var t={type:"array"};return e.length>0&&(t.items=this.getSchema(e[0])),t}},{key:"getArraySchemaTuple",value:function(e){var t=this,n={type:"array"};return e.length>0&&(n.items=e.map(function(e){return t.getSchema(e)})),n}},{key:"getArraySchemaUniform",value:function(e){var t=this.getArraySchemaNoMerging(e);if(e.length>1)for(var n=1;n<e.length;n++)if(!o(t.items,this.getSchema(e[n])))throw new Error("Invalid schema, incompatible array items");return t}},{key:"getArraySchema",value:function(e){if(0===e.length)return{type:"array"};switch(this.options.arrays.mode){case"all":return this.getArraySchemaMerging(e);case"first":return this.getArraySchemaNoMerging(e);case"uniform":return this.getArraySchemaUniform(e);case"tuple":return this.getArraySchemaTuple(e);default:throw new Error("Unknown array mode option '".concat(this.options.arrays.mode,"'"))}}},{key:"getStringSchemaDefault",value:function(e){var t={type:"string"};if(!this.options.strings.detectFormat)return t;var n=c.findIndex(function(t){return i.isFormat(e,t)});return n>=0&&(t.format=c[n]),t}},{key:"getStringSchema",value:function(e){return this.options.strings.preProcessFnc?this.options.strings.preProcessFnc(e,this.getStringSchemaDefault):this.getStringSchemaDefault(e)}},{key:"commmonPostProcessDefault",value:function(e,t,n){return this.options.required?r({},t,{required:!0}):t}},{key:"objectPostProcessDefault",value:function(e,t){return!1===this.options.objects.additionalProperties&&Object.getOwnPropertyNames(t).length>0?r({},e,{additionalProperties:!1}):e}},{key:"getSchema",value:function(e){var t,n=i.getType(e);if(!n)throw new Error("Type of value couldn't be determined");switch(n){case"object":t=this.getObjectSchema(e);break;case"array":t=this.getArraySchema(e);break;case"string":t=this.getStringSchema(e);break;default:t={type:n}}return t=this.options.postProcessFnc?this.options.postProcessFnc(n,t,e,this.commmonPostProcessDefault):this.commmonPostProcessDefault(n,t,e),"object"===n&&(t=this.options.objects.postProcessFnc?this.options.objects.postProcessFnc(t,e,this.objectPostProcessDefault):this.objectPostProcessDefault(t,e)),t}}])&&s(t.prototype,n),l&&s(t,l),e}();e.exports=function(e,t){return new u(t).getSchema(e)}},"../../node_modules/to-json-schema/lib/jsonSchemaHelpers.js":e=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}var n={string:function(e){return"string"==typeof e},number:function(e){return"number"==typeof e&&isFinite(e)},integer:function(e){return"number"==typeof e&&e%1==0},boolean:function(e){return"boolean"==typeof e},array:function(e){return e instanceof Array},null:function(e){return null===e},date:function(e){return e instanceof Date},any:function(e){return!0},object:function(e){return e&&"object"===t(e)&&!(e instanceof Array)&&!(e instanceof Date)}},s={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,email:/^(?:[\w!#$%&'*+-/=?^`{|}~]+\.)*[\w!#$%&'*+-/=?^`{|}~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+-.]*:[^\s]*$/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/,"utc-millisec":function(e){return"string"==typeof e&&parseFloat(e)===parseInt(e,10)&&!isNaN(e)},regex:function(e){var t=!0;try{new RegExp(e)}catch(e){t=!1}return t},style:/\s*(.+?):\s*([^;]+);?/g,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/};s.regexp=s.regex,s.pattern=s.regex,s.ipv4=s["ip-address"];e.exports={types:n,isFormat:function(e,t){if("string"==typeof e&&void 0!==s[t]){if(s[t]instanceof RegExp)return s[t].test(e);if("function"==typeof s[t])return s[t](e)}return!0},FORMAT_REGEXPS:s}},"./src/config/constants.ts":(e,t,n)=>{"use strict";n.d(t,{CONTINUOUS_DEBUGGING_TIMEOUT:()=>f,DEBUG_SESSION_MAX_DURATION_SECONDS:()=>_,DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE:()=>A,OTEL_IGNORE_URLS:()=>b,OTEL_MP_SAMPLE_TRACE_RATIO:()=>s,PACKAGE_VERSION_EXPORT:()=>E,SESSION_ADD_EVENT:()=>h,SESSION_AUTO_CREATED:()=>m,SESSION_CONTINUOUS_DEBUGGING_PROP_NAME:()=>o,SESSION_ID_PROP_NAME:()=>r,SESSION_PROP_NAME:()=>l,SESSION_RESPONSE:()=>g,SESSION_STARTED_EVENT:()=>c,SESSION_STATE_PROP_NAME:()=>i,SESSION_STOPPED_EVENT:()=>u,SESSION_SUBSCRIBE_EVENT:()=>d,SESSION_TYPE_PROP_NAME:()=>a,SESSION_UNSUBSCRIBE_EVENT:()=>p});const s=.15,r="multiplayer-session-id",o="multiplayer-session-continuous-debugging",i="multiplayer-session-state",a="multiplayer-session-type",l="multiplayer-session-data",c="debug-session:started",u="debug-session:stopped",d="debug-session:subscribe",p="debug-session:unsubscribe",m="debug-session:auto-created",h="debug-session:rrweb:add-event",A=1e5,g="multiplayer-debug-session-response",f=6e4,_=630,E="1.1.0",b=[/.*\/v1\/traces/,/.*\/v0\/radar\/debug-sessions\/start$/,/.*\/v0\/radar\/debug-sessions\/[^/]+\/stop$/,/.*\/v0\/radar\/debug-sessions\/[^/]+\/cancel$/,/.*\/v0\/radar\/continuous-debug-sessions\/start$/,/.*\/v0\/radar\/continuous-debug-sessions\/[^/]+\/save$/,/.*\/v0\/radar\/continuous-debug-sessions\/[^/]+\/cancel$/,/.*\/v0\/radar\/remote-debug-session\/check$/]},"./src/config/defaults.ts":(e,t,n)=>{"use strict";n.d(t,{BASE_CONFIG:()=>d,DEFAULT_MASKING_CONFIG:()=>c,DEFAULT_WIDGET_TEXT_CONFIG:()=>u});var s=n("../session-recorder-common/dist/esm/index-browser.js"),r=n("./src/types/index.ts"),o=n("./src/config/constants.ts");const{mask:i,sensitiveFields:a,sensitiveHeaders:l}=s.SessionRecorderSdk,c={maskAllInputs:!0,isMaskingEnabled:!0,maskBody:i(a),maskHeaders:i(l),maskBodyFieldsList:a,maskHeadersList:l,headersToInclude:[],headersToExclude:[]},u={initialTitleWithContinuous:"Encountered an issue?",initialTitleWithoutContinuous:"Encountered an issue?",initialDescriptionWithContinuous:"Record your session so we can see the problem and fix it faster.",initialDescriptionWithoutContinuous:"Record your session so we can see the problem and fix it faster.",continuousRecordingLabel:"Continuous recording",startRecordingButtonText:"Start recording",finalTitle:"Done recording?",finalDescription:"You can also add a quick note with extra context, expectations, or questions. Thank you!",commentPlaceholder:"Add a message...",saveButtonText:"Submit recording",cancelButtonText:"Cancel recording",continuousOverlayTitle:"Save time, skip the reproductions",continuousOverlayDescription:"We keep a rolling record of your recent activity. If something doesn’t work as expected, just save the recording and continue working. No need to worry about exceptions and errors - we automatically save recordings for those!",saveLastSnapshotButtonText:"Save recording",submitDialogTitle:"Save recording",submitDialogSubtitle:"This full-stack session recording will be saved directly to your selected Multiplayer project. All data is automatically correlated end-to-end.",submitDialogCommentLabel:"You can also add context, comments, or notes.",submitDialogCommentPlaceholder:"Add a message...",submitDialogSubmitText:"Save",submitDialogCancelText:"Cancel"},d={apiKey:"",version:"",application:"",environment:"",showWidget:!0,showContinuousRecording:!0,widgetButtonPlacement:r.WidgetButtonPlacement.bottomRight,usePostMessageFallback:!1,apiBaseUrl:s.MULTIPLAYER_BASE_API_URL,exporterEndpoint:s.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL,recordCanvas:!1,schemifyDocSpanPayload:!0,ignoreUrls:[],propagateTraceHeaderCorsUrls:[],sampleTraceRatio:o.OTEL_MP_SAMPLE_TRACE_RATIO,maxCapturingHttpPayloadSize:o.DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE,captureBody:!0,captureHeaders:!0,masking:c,widgetTextOverrides:u}},"./src/config/index.ts":(e,t,n)=>{"use strict";n.d(t,{BASE_CONFIG:()=>r.BASE_CONFIG,CONTINUOUS_DEBUGGING_TIMEOUT:()=>s.CONTINUOUS_DEBUGGING_TIMEOUT,DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE:()=>s.DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE,DEFAULT_WIDGET_TEXT_CONFIG:()=>r.DEFAULT_WIDGET_TEXT_CONFIG,OTEL_IGNORE_URLS:()=>s.OTEL_IGNORE_URLS,SESSION_ADD_EVENT:()=>s.SESSION_ADD_EVENT,SESSION_AUTO_CREATED:()=>s.SESSION_AUTO_CREATED,SESSION_CONTINUOUS_DEBUGGING_PROP_NAME:()=>s.SESSION_CONTINUOUS_DEBUGGING_PROP_NAME,SESSION_ID_PROP_NAME:()=>s.SESSION_ID_PROP_NAME,SESSION_PROP_NAME:()=>s.SESSION_PROP_NAME,SESSION_RESPONSE:()=>s.SESSION_RESPONSE,SESSION_STARTED_EVENT:()=>s.SESSION_STARTED_EVENT,SESSION_STATE_PROP_NAME:()=>s.SESSION_STATE_PROP_NAME,SESSION_STOPPED_EVENT:()=>s.SESSION_STOPPED_EVENT,SESSION_SUBSCRIBE_EVENT:()=>s.SESSION_SUBSCRIBE_EVENT,SESSION_TYPE_PROP_NAME:()=>s.SESSION_TYPE_PROP_NAME,SESSION_UNSUBSCRIBE_EVENT:()=>s.SESSION_UNSUBSCRIBE_EVENT,getSessionRecorderConfig:()=>o.getSessionRecorderConfig});var s=n("./src/config/constants.ts"),r=n("./src/config/defaults.ts"),o=(n("./src/config/validators.ts"),n("./src/config/masking.ts"),n("./src/config/session-recorder.ts"))},"./src/config/masking.ts":(e,t,n)=>{"use strict";n.d(t,{getMaskingConfig:()=>c});var s=n("./src/config/defaults.ts"),r=n("./src/config/validators.ts"),o=n("../session-recorder-common/dist/esm/index-browser.js");const{mask:i,sensitiveFields:a,sensitiveHeaders:l}=o.SessionRecorderSdk,c=e=>{var t,n,o,c;const u=s.DEFAULT_MASKING_CONFIG;if("object"!=typeof e)return u;const d=(0,r.isValidArray)(e.maskHeadersList,l),p=(0,r.isValidArray)(e.maskBodyFieldsList,a);return{maskAllInputs:(0,r.isValidBoolean)(e.maskAllInputs,null===(t=u.maskAllInputs)||void 0===t||t),maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,maskInputOptions:e.maskInputOptions&&"object"==typeof e.maskInputOptions?e.maskInputOptions:void 0,maskInput:(0,r.isValidFunction)(e.maskInput,void 0),maskText:(0,r.isValidFunction)(e.maskText,void 0),maskConsoleEvent:(0,r.isValidFunction)(e.maskConsoleEvent,void 0),maskHeadersList:d,maskBodyFieldsList:p,headersToInclude:(0,r.isValidArray)(e.headersToInclude,null!==(n=u.headersToInclude)&&void 0!==n?n:[]),headersToExclude:(0,r.isValidArray)(e.headersToExclude,null!==(o=u.headersToExclude)&&void 0!==o?o:[]),isMaskingEnabled:(0,r.isValidBoolean)(e.isMaskingEnabled,null===(c=u.isMaskingEnabled)||void 0===c||c),maskBody:(0,r.isValidFunction)(e.maskBody,i(p)),maskHeaders:(0,r.isValidFunction)(e.maskHeaders,i(d))}}},"./src/config/session-recorder.ts":(e,t,n)=>{"use strict";n.d(t,{getSessionRecorderConfig:()=>a});var s=n("./src/types/index.ts"),r=n("./src/config/defaults.ts"),o=n("./src/config/masking.ts"),i=n("./src/config/validators.ts");const a=e=>{return e?{apiKey:(0,i.isValidString)(e.apiKey,r.BASE_CONFIG.apiKey),version:(0,i.isValidString)(e.version,r.BASE_CONFIG.version),application:(0,i.isValidString)(e.application,r.BASE_CONFIG.application),environment:(0,i.isValidString)(e.environment,r.BASE_CONFIG.environment),exporterEndpoint:(0,i.isValidString)(e.exporterEndpoint,r.BASE_CONFIG.exporterEndpoint),apiBaseUrl:(0,i.isValidString)(e.apiBaseUrl,r.BASE_CONFIG.apiBaseUrl),usePostMessageFallback:(0,i.isValidBoolean)(e.usePostMessageFallback,r.BASE_CONFIG.usePostMessageFallback),showWidget:(0,i.isValidBoolean)(e.showWidget,r.BASE_CONFIG.showWidget),showContinuousRecording:(0,i.isValidBoolean)(e.showContinuousRecording,r.BASE_CONFIG.showContinuousRecording),recordCanvas:(0,i.isValidBoolean)(e.recordCanvas,r.BASE_CONFIG.recordCanvas),widgetButtonPlacement:(0,i.isValidEnum)(e.widgetButtonPlacement,r.BASE_CONFIG.widgetButtonPlacement,Object.values(s.WidgetButtonPlacement)),ignoreUrls:(0,i.isValidArray)(e.ignoreUrls,r.BASE_CONFIG.ignoreUrls),sampleTraceRatio:(0,i.isValidNumber)(e.sampleTraceRatio,r.BASE_CONFIG.sampleTraceRatio),propagateTraceHeaderCorsUrls:e.propagateTraceHeaderCorsUrls||r.BASE_CONFIG.propagateTraceHeaderCorsUrls,schemifyDocSpanPayload:(0,i.isValidBoolean)(e.schemifyDocSpanPayload,r.BASE_CONFIG.schemifyDocSpanPayload),maxCapturingHttpPayloadSize:(0,i.isValidNumber)(e.maxCapturingHttpPayloadSize,r.BASE_CONFIG.maxCapturingHttpPayloadSize),captureBody:(0,i.isValidBoolean)(e.captureBody,r.BASE_CONFIG.captureBody),captureHeaders:(0,i.isValidBoolean)(e.captureHeaders,r.BASE_CONFIG.captureHeaders),masking:(0,o.getMaskingConfig)(e.masking),widgetTextOverrides:(t=e.widgetTextOverrides,n=r.BASE_CONFIG.widgetTextOverrides,t&&"object"==typeof t?{initialTitleWithContinuous:(0,i.isValidString)(t.initialTitleWithContinuous,n.initialTitleWithContinuous),initialTitleWithoutContinuous:(0,i.isValidString)(t.initialTitleWithoutContinuous,n.initialTitleWithoutContinuous),initialDescriptionWithContinuous:(0,i.isValidString)(t.initialDescriptionWithContinuous,n.initialDescriptionWithContinuous),initialDescriptionWithoutContinuous:(0,i.isValidString)(t.initialDescriptionWithoutContinuous,n.initialDescriptionWithoutContinuous),continuousRecordingLabel:(0,i.isValidString)(t.continuousRecordingLabel,n.continuousRecordingLabel),startRecordingButtonText:(0,i.isValidString)(t.startRecordingButtonText,n.startRecordingButtonText),finalTitle:(0,i.isValidString)(t.finalTitle,n.finalTitle),finalDescription:(0,i.isValidString)(t.finalDescription,n.finalDescription),commentPlaceholder:(0,i.isValidString)(t.commentPlaceholder,n.commentPlaceholder),saveButtonText:(0,i.isValidString)(t.saveButtonText,n.saveButtonText),cancelButtonText:(0,i.isValidString)(t.cancelButtonText,n.cancelButtonText),continuousOverlayTitle:(0,i.isValidString)(t.continuousOverlayTitle,n.continuousOverlayTitle),continuousOverlayDescription:(0,i.isValidString)(t.continuousOverlayDescription,n.continuousOverlayDescription),saveLastSnapshotButtonText:(0,i.isValidString)(t.saveLastSnapshotButtonText,n.saveLastSnapshotButtonText),submitDialogTitle:(0,i.isValidString)(t.submitDialogTitle,n.submitDialogTitle),submitDialogSubtitle:(0,i.isValidString)(t.submitDialogSubtitle,n.submitDialogSubtitle),submitDialogCommentLabel:(0,i.isValidString)(t.submitDialogCommentLabel,n.submitDialogCommentLabel),submitDialogCommentPlaceholder:(0,i.isValidString)(t.submitDialogCommentPlaceholder,n.submitDialogCommentPlaceholder),submitDialogSubmitText:(0,i.isValidString)(t.submitDialogSubmitText,n.submitDialogSubmitText),submitDialogCancelText:(0,i.isValidString)(t.submitDialogCancelText,n.submitDialogCancelText)}:n)}:r.BASE_CONFIG;var t,n}},"./src/config/validators.ts":(e,t,n)=>{"use strict";n.d(t,{isValidArray:()=>i,isValidBoolean:()=>o,isValidEnum:()=>a,isValidFunction:()=>l,isValidNumber:()=>r,isValidString:()=>s});const s=(e,t)=>"string"==typeof e?e.trim():t,r=(e,t)=>"number"==typeof e?e:t,o=(e,t)=>"boolean"==typeof e?e:t,i=(e,t)=>Array.isArray(e)?e:t,a=(e,t,n)=>n.includes(e)?e:t,l=(e,t)=>"function"==typeof e?e:t},"./src/eventBus.ts":(e,t,n)=>{"use strict";n.d(t,{recorderEventBus:()=>r});var s=n("../../node_modules/events/events.js");const r=new s.EventEmitter},"./src/listeners.ts":(e,t,n)=>{"use strict";n.d(t,{setupListeners:()=>o});var s=n("./src/services/messaging.service.ts"),r=n("../session-recorder-common/dist/esm/index-browser.js");function o(e){s.default.sendMessage("ready",{session:e.session,sessionState:e.sessionState}),s.default.on("init",t=>{e.init(t)}),s.default.on("start",t=>{e.start(r.SessionType.PLAIN,t)}),s.default.on("end",t=>{e.stop(t)}),s.default.on("pause",()=>{e.pause()}),s.default.on("resume",()=>{e.resume()}),s.default.on("cancel",()=>{e.cancel()}),s.default.on("toggle-continuous-debugging",t=>{t.enabled?e.start(r.SessionType.CONTINUOUS,t.session):e.stop()}),s.default.on("save-continuous-debug-session",()=>{e.save()})}},"./src/otel/helpers.ts":(e,t,n)=>{"use strict";n.d(t,{extractResponseBody:()=>a,getExporterEndpoint:()=>l,headersToObject:()=>i,processHttpPayload:()=>o});var s=n("../session-recorder-common/dist/esm/index-browser.js");const{schemify:r}=s.SessionRecorderSdk;function o(e,t,n){if(!function(e){return e.startsWith(s.MULTIPLAYER_TRACE_DOC_PREFIX)||e.startsWith(s.MULTIPLAYER_TRACE_DEBUG_PREFIX)||e.startsWith(s.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX)}(n.spanContext().traceId))return;const{requestBody:o,responseBody:i}=function(e,t,n){var o,i;const{captureBody:a,masking:l,schemifyDocSpanPayload:c}=t,u=n.spanContext().traceId;if(!a)return{};let{requestBody:d,responseBody:p}=e;return null!=d&&(d=JSON.parse(JSON.stringify(d))),null!=p&&(p=JSON.parse(JSON.stringify(p))),u.startsWith(s.MULTIPLAYER_TRACE_DOC_PREFIX)&&c&&(d=d&&r(d),p=p&&r(p)),(u.startsWith(s.MULTIPLAYER_TRACE_DEBUG_PREFIX)||u.startsWith(s.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX))&&l.isMaskingEnabled&&(d=d&&(null===(o=l.maskBody)||void 0===o?void 0:o.call(l,d,n)),p=p&&(null===(i=l.maskBody)||void 0===i?void 0:i.call(l,p,n))),"string"!=typeof d&&(d=JSON.stringify(d)),"string"!=typeof p&&(p=JSON.stringify(p)),{requestBody:(null==d?void 0:d.length)?d:void 0,responseBody:(null==p?void 0:p.length)?p:void 0}}(e,t,n),{requestHeaders:a,responseHeaders:l}=function(e,t,n){var s,r,o,i,a;const{captureHeaders:l,masking:c}=t;if(!l)return{};let{requestHeaders:u={},responseHeaders:d={}}=e;if((null===(s=c.headersToInclude)||void 0===s?void 0:s.length)||(null===(r=c.headersToExclude)||void 0===r?void 0:r.length)){if(c.headersToInclude){const e={},t={};for(const n of c.headersToInclude)u[n]&&(e[n]=u[n]),d[n]&&(t[n]=d[n]);u=e,d=t}if(null===(o=c.headersToExclude)||void 0===o?void 0:o.length)for(const e of c.headersToExclude)delete u[e],delete d[e]}else null!=u&&(u=JSON.parse(JSON.stringify(u))),null!=d&&(d=JSON.parse(JSON.stringify(d)));const p=(null===(i=c.maskHeaders)||void 0===i?void 0:i.call(c,u,n))||u,m=(null===(a=c.maskHeaders)||void 0===a?void 0:a.call(c,d,n))||d,h="string"==typeof p?p:JSON.stringify(p),A="string"==typeof m?m:JSON.stringify(m);return{requestHeaders:(null==h?void 0:h.length)?h:void 0,responseHeaders:(null==A?void 0:A.length)?A:void 0}}(e,t,n);o&&n.setAttribute(s.ATTR_MULTIPLAYER_HTTP_REQUEST_BODY,o),i&&n.setAttribute(s.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY,i),a&&n.setAttribute(s.ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS,a),l&&n.setAttribute(s.ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS,l)}function i(e){const t={};if(!e)return t;if(e instanceof Headers)e.forEach((e,n)=>{t[n]=e});else if(Array.isArray(e))for(const[n,s]of e)"string"==typeof n&&"string"==typeof s&&(t[n]=s);else if("object"==typeof e&&!Array.isArray(e))for(const[n,s]of Object.entries(e))"string"==typeof n&&"string"==typeof s&&(t[n]=s);return t}async function a(e){if(!e.body)return null;if(e.body instanceof ReadableStream){const t=e.clone();return await t.text()}return JSON.stringify(e.body)}const l=e=>{if(e&&(()=>{try{const t=new URL(e);return"/"!==t.pathname&&""!==t.pathname}catch(e){return!1}})())return e;return`${new URL(e).origin}/v1/traces`}},"./src/otel/index.ts":(e,t,n)=>{"use strict";n.d(t,{TracerBrowserSDK:()=>m});var s=n("../../node_modules/@opentelemetry/resources/build/esm/ResourceImpl.js"),r=n("../../node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js"),o=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/WebTracerProvider.js"),i=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/platform/browser/export/BatchSpanProcessor.js"),a=n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js"),l=n("../../node_modules/@opentelemetry/instrumentation/build/esm/autoLoader.js"),c=n("../../node_modules/@opentelemetry/auto-instrumentations-web/build/esm/index.js"),u=n("../session-recorder-common/dist/esm/index-browser.js"),d=n("./src/config/index.ts"),p=n("./src/otel/helpers.ts");class m{constructor(){this.allowedElements=new Set(["A","BUTTON"]),this.sessionId=""}setSessionId(e,t=u.SessionType.PLAIN){this.sessionId=e,this.idGenerator.setSessionId(e,t)}init(e){this.config=e;const{application:t,version:n,environment:m}=this.config;this.idGenerator=new u.SessionRecorderIdGenerator,this.exporter=new u.SessionRecorderBrowserTraceExporter({apiKey:e.apiKey,url:(0,p.getExporterEndpoint)(e.exporterEndpoint),usePostMessageFallback:e.usePostMessageFallback}),this.tracerProvider=new o.WebTracerProvider({resource:(0,s.resourceFromAttributes)({[a.SEMRESATTRS_SERVICE_NAME]:t,[a.SEMRESATTRS_SERVICE_VERSION]:n,[a.SEMRESATTRS_DEPLOYMENT_ENVIRONMENT]:m}),idGenerator:this.idGenerator,sampler:new u.SessionRecorderTraceIdRatioBasedSampler(this.config.sampleTraceRatio),spanProcessors:[this._getSpanSessionIdProcessor(),new i.BatchSpanProcessor(this.exporter)]}),this.tracerProvider.register({propagator:new r.W3CTraceContextPropagator}),(0,l.registerInstrumentations)({tracerProvider:this.tracerProvider,instrumentations:[(0,c.getWebAutoInstrumentations)({"@opentelemetry/instrumentation-xml-http-request":{clearTimingResources:!0,ignoreUrls:[...d.OTEL_IGNORE_URLS,...this.config.ignoreUrls||[]],propagateTraceHeaderCorsUrls:e.propagateTraceHeaderCorsUrls,applyCustomAttributesOnSpan:(e,t)=>{if(!this.config)return;const{captureBody:n,captureHeaders:s}=this.config;try{if(!n&&!s)return;const r=t.networkRequest.requestBody,o=t.networkRequest.responseBody,i=t.networkRequest.requestHeaders||{},a={requestBody:r,responseBody:o,requestHeaders:i,responseHeaders:t.networkRequest.responseHeaders||{}};(0,p.processHttpPayload)(a,this.config,e)}catch(e){console.error("[DEBUGGER_LIB] Failed to capture xml-http payload",e)}}},"@opentelemetry/instrumentation-fetch":{clearTimingResources:!0,ignoreUrls:[...d.OTEL_IGNORE_URLS,...this.config.ignoreUrls||[]],propagateTraceHeaderCorsUrls:e.propagateTraceHeaderCorsUrls,applyCustomAttributesOnSpan:async(e,t,n)=>{if(!this.config)return;const{captureBody:s,captureHeaders:r}=this.config;try{if(!s&&!r)return;const o=t.body,i=(0,p.headersToObject)(t.headers),a=(0,p.headersToObject)(n instanceof Response?n.headers:void 0);let l=null;n instanceof Response&&n.body&&(l=await(0,p.extractResponseBody)(n));const c={requestBody:o,responseBody:l,requestHeaders:i,responseHeaders:a};(0,p.processHttpPayload)(c,this.config,e)}catch(e){console.error("[DEBUGGER_LIB] Failed to capture fetch payload",e)}}},"@opentelemetry/instrumentation-user-interaction":{shouldPreventSpanCreation:(e,t,n)=>{if(n.parentSpanId)return!0;let s="";return this.allowedElements.has(t.tagName)&&(s=String(t.textContent||t.ariaLabel||"").trim()),n.setAttribute("target.innerText",s),!1}}})]})}start(e,t){if(!this.tracerProvider)throw new Error("Configuration not initialized. Call init() before start().");this.setSessionId(e,t)}stop(){if(!this.tracerProvider)throw new Error("Configuration not initialized. Call init() before start().");this.setSessionId("")}setApiKey(e){if(!this.exporter)throw new Error("Configuration not initialized. Call init() before setApiKey().");this.exporter.setApiKey(e)}_getSpanSessionIdProcessor(){return{forceFlush:()=>Promise.resolve(),onEnd:()=>{},shutdown:()=>Promise.resolve(),onStart:e=>{var t;(null===(t=this.sessionId)||void 0===t?void 0:t.length)&&e.setAttribute(u.ATTR_MULTIPLAYER_SESSION_ID,this.sessionId)}}}}},"./src/patch/index.ts":(e,t,n)=>{"use strict";n("./src/patch/xhr.ts")},"./src/patch/xhr.ts":(e,t,n)=>{"use strict";n.d(t,{setMaxCapturingHttpPayloadSize:()=>c,setShouldRecordHttpData:()=>u});var s=n("./src/utils/type-utils.ts"),r=n("./src/utils/request-utils.ts"),o=n("./src/config/index.ts");let i=!0,a=!0;let l=o.DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE;const c=e=>{l=e},u=(e,t)=>{i=t,a=t};function d({body:e,url:t}){if((0,s.isNullish)(e))return null;if((0,s.isString)(e))return e;if((0,s.isDocument)(e))return e.textContent;if((0,s.isFormData)(e))return(0,r.formDataToQuery)(e);if((0,s.isObject)(e))try{return JSON.stringify(e)}catch(e){return"[XHR] Failed to stringify response object"}return`[XHR] Cannot read body of type ${toString.call(e)}`}!function(e){const t=XMLHttpRequest.prototype.open;e.open=function(e,n,s=!0,r,o){const c=this,u={},p={},m=c.setRequestHeader.bind(c);c.setRequestHeader=(e,t)=>(p[e]=t,m(e,t)),i&&(u.requestHeaders=p);const h=c.send.bind(c);c.send=e=>{{const t=d({body:e,url:n});(null==t?void 0:t.length)&&new Blob([t]).size<=l&&(u.requestBody=t)}return h(e)},c.addEventListener("readystatechange",()=>{if(c.readyState!==c.DONE)return;const e={};c.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(t=>{const n=t.split(": "),s=n.shift(),r=n.join(": ");s&&(e[s]=r)}),a&&(u.responseHeaders=e);{const e=d({body:c.response,url:n});(null==e?void 0:e.length)&&new Blob([e]).size<=l&&(u.responseBody=e)}}),c.networkRequest=u,t.call(c,e,n,s,r,o)}}(XMLHttpRequest.prototype)},"./src/rrweb/exporter.ts":(e,t,n)=>{"use strict";n.d(t,{RrwebEventExporter:()=>a});var s=n("../../node_modules/socket.io-client/build/esm/index.js"),r=n("./src/eventBus.ts"),o=n("./src/services/messaging.service.ts"),i=n("./src/config/index.ts");class a{constructor(e){this.options=e,this.socket=null,this.queue=[],this.isConnecting=!1,this.isConnected=!1,this.usePostMessage=!1,this.attempts=0,this.sessionId=null}init(){this.isConnecting||this.isConnected||(this.attempts++,this.isConnecting=!0,this.usePostMessage=!1,this.socket=(0,s.default)(this.options.socketUrl,{path:"/v0/radar/ws",auth:{"x-api-key":this.options.apiKey},reconnectionAttempts:2,transports:["websocket"]}),this.socket.on("ready",()=>{this.isConnecting=!1,this.isConnected=!0,this.usePostMessage=!1,this.flushQueue()}),this.socket.on("disconnect",e=>{this.isConnecting=!1,this.isConnected=!1}),this.socket.on("connect_error",e=>{this.isConnecting=!1,this.isConnected=!1,this.checkReconnectionAttempts()}),this.socket.on(i.SESSION_STOPPED_EVENT,e=>{r.recorderEventBus.emit(i.SESSION_STOPPED_EVENT,e),this.unsubscribeFromSession()}),this.socket.on(i.SESSION_AUTO_CREATED,e=>{r.recorderEventBus.emit(i.SESSION_AUTO_CREATED,e)}))}checkReconnectionAttempts(){this.attempts>=2&&(this.usePostMessage=!!this.options.usePostMessageFallback,this.flushQueue())}sendViaPostMessage(e){o.default.sendMessage("rrweb-event",e)}flushQueue(){for(var e,t;this.queue.length>0&&(this.usePostMessage||(null===(e=this.socket)||void 0===e?void 0:e.connected));){const e=this.queue.shift();e&&(this.usePostMessage?this.sendViaPostMessage(e.data):(null===(t=this.socket)||void 0===t?void 0:t.connected)&&this.socket.emit(e.name,e.data))}}unsubscribeFromSession(){var e;const t={debugSessionId:this.sessionId};this.usePostMessage?o.default.sendMessage("socket-emit",{event:i.SESSION_UNSUBSCRIBE_EVENT,data:t}):(null===(e=this.socket)||void 0===e?void 0:e.connected)&&this.socket.emit(i.SESSION_UNSUBSCRIBE_EVENT,t)}send(e){var t;this.usePostMessage?this.sendViaPostMessage(e):(null===(t=this.socket)||void 0===t?void 0:t.connected)?this.socket.emit(i.SESSION_ADD_EVENT,e):(this.queue.push({data:e,name:i.SESSION_ADD_EVENT}),this.init())}subscribeToSession(e){var t;this.sessionId=e.shortId||e._id;const n={projectId:e.project,workspaceId:e.workspace,debugSessionId:this.sessionId,sessionType:e.creationType};this.usePostMessage?this.sendViaPostMessage({type:i.SESSION_SUBSCRIBE_EVENT,...n}):(null===(t=this.socket)||void 0===t?void 0:t.connected)?this.socket.emit(i.SESSION_SUBSCRIBE_EVENT,n):(this.queue.push({data:n,name:i.SESSION_SUBSCRIBE_EVENT}),this.init())}close(){var e;this.usePostMessage&&this.sendViaPostMessage({type:"close"}),(null===(e=this.socket)||void 0===e?void 0:e.connected)&&setTimeout(()=>{var e;this.unsubscribeFromSession(),this.attempts=0,this.isConnected=!1,this.isConnecting=!1,null===(e=this.socket)||void 0===e||e.disconnect(),this.socket=null},500)}}},"./src/rrweb/index.ts":(e,t,n)=>{"use strict";n.d(t,{RecorderBrowserSDK:()=>u});var s=n("../../node_modules/@rrweb/packer/dist/packer.js"),r=n("../../node_modules/rrweb/dist/rrweb.js"),o=n("../session-recorder-common/dist/esm/index-browser.js"),i=n("../../node_modules/@rrweb/rrweb-plugin-console-record/dist/rrweb-plugin-console-record.js"),a=n("./src/utils/index.ts"),l=n("./src/config/index.ts"),c=n("./src/rrweb/exporter.ts");class u{get startedAt(){return this._startedAt}set startedAt(e){this._startedAt=e}get stoppedAt(){return this._stoppedAt}set stoppedAt(e){this._stoppedAt=e}constructor(){this.restartTimeout=null,this._startedAt="",this._stoppedAt=""}init(e){this.config=e,this.exporter=new c.RrwebEventExporter({apiKey:e.apiKey,socketUrl:e.apiBaseUrl||"",usePostMessageFallback:Boolean(e.usePostMessageFallback)})}start(e,t){var n;if(!this.config)throw new Error("Configuration not initialized. Call init() before start().");const c=t===o.SessionType.CONTINUOUS?l.CONTINUOUS_DEBUGGING_TIMEOUT:0;this.startedAt=(new Date).toISOString();const u=this.config.masking||{},d={maskAllInputs:null===(n=u.maskAllInputs)||void 0===n||n,sampling:{canvas:5},recordCanvas:this.config.recordCanvas,dataURLOptions:{type:"image/webp",quality:.1},plugins:[(0,i.getRecordConsolePlugin)({level:["log","error"]})]};u.maskInputOptions&&(d.maskInputOptions=u.maskInputOptions),u.maskTextClass&&(d.maskTextClass=u.maskTextClass),u.maskTextSelector&&(d.maskTextSelector=u.maskTextSelector),"function"==typeof u.maskInput&&(d.maskInputFn=u.maskInput),"function"==typeof u.maskText&&(d.maskTextFn=u.maskText),this.stopFn=(0,r.record)({...d,emit:async n=>{if(this.exporter){if("function"==typeof u.maskConsoleEvent&&(0,a.isConsoleEvent)(n)){const{data:e}=n,t=u.maskConsoleEvent(e.payload);n.data={...e,payload:t}}const r=(0,s.pack)(n);this.stoppedAt=new Date(n.timestamp).toISOString(),this.exporter.send({event:r,eventType:n.type,timestamp:n.timestamp,debugSessionId:e,debugSessionType:t})}}}),r.record.takeFullSnapshot(),c>0&&(this.restartTimeout=setTimeout(()=>{r.record.takeFullSnapshot()},c))}async restart(e,t){var n;null===(n=this.stopFn)||void 0===n||n.call(this),this.start(e,t)}clearRestartTimeout(){this.restartTimeout&&(clearTimeout(this.restartTimeout),this.restartTimeout=null)}stop(){var e,t;null===(e=this.stopFn)||void 0===e||e.call(this),null===(t=this.exporter)||void 0===t||t.close(),this.clearRestartTimeout()}subscribeToSession(e){var t;null===(t=this.exporter)||void 0===t||t.subscribeToSession(e)}}},"./src/services/api.service.ts":(e,t,n)=>{"use strict";n.d(t,{ApiService:()=>r});var s=n("./src/services/messaging.service.ts");class r{constructor(){this.config={apiKey:"",apiBaseUrl:"",exporterEndpoint:""}}init(e){this.config={...this.config,...e}}updateConfigs(e){this.config={...this.config,...e}}async startSession(e,t){return this.makeRequest("/debug-sessions/start","POST",e,t)}async stopSession(e,t){return this.makeRequest(`/debug-sessions/${e}/stop`,"PATCH",t)}async cancelSession(e){return this.makeRequest(`/debug-sessions/${e}/cancel`,"DELETE")}async startContinuousDebugSession(e,t){return this.makeRequest("/continuous-debug-sessions/start","POST",e,t)}async saveContinuousDebugSession(e,t,n){return this.makeRequest(`/continuous-debug-sessions/${e}/save`,"POST",t,n)}async stopContinuousDebugSession(e){return this.makeRequest(`/continuous-debug-sessions/${e}/cancel`,"DELETE")}async checkRemoteSession(e,t){return this.makeRequest("/remote-debug-session/check","POST",e,t)}async makeRequest(e,t,n,s){const r=`${this.config.apiBaseUrl}/v0/radar${e}`,o={method:t,body:n?JSON.stringify(n):null,headers:{"Content-Type":"application/json",...this.config.apiKey&&{"X-Api-Key":this.config.apiKey}}};try{const e=await fetch(r,{...o,credentials:"include",signal:s});if(!e.ok)throw new Error("Network response was not ok: "+e.statusText);return 204===e.status?null:await e.json()}catch(e){if("AbortError"===(null==e?void 0:e.name))throw new Error("Request aborted");return this.handleRequestError(e,{url:r,params:o})}}async handleRequestError(e,t){if(!this.config.usePostMessageFallback)throw new Error("Error making request: "+e.message);try{return await s.default.sendMessagePromise("request",t)}catch(e){throw new Error("Error making request: "+e.message)}}}},"./src/services/messaging.service.ts":(e,t,n)=>{"use strict";n.d(t,{default:()=>s});const s=new class{constructor(){this.promiseIdCounter=0,this.promiseMap=new Map,this.messagingServices=new Map,this.isBrowser="undefined"!=typeof window,this.setupMessageListener()}generatePromiseId(){return"promise_"+ ++this.promiseIdCounter}sendMessage(e,t){if(!this.isBrowser)return;const n={type:"MULTIPLAYER_SESSION_DEBUGGER_LIB",action:e,payload:t};window.postMessage(n,"*")}sendMessagePromise(e,t){if(!this.isBrowser)return Promise.reject(new Error("Not in browser environment"));const n=this.generatePromiseId(),s=new Promise((e,t)=>{this.promiseMap.set(n,{resolve:e,reject:t})}),r={type:"MULTIPLAYER_SESSION_DEBUGGER_LIB",action:e,payload:t,promiseId:n};return window.postMessage(r,"*"),s}on(e,t){const n=this.messagingServices.get(e)||[];n.push(t),this.messagingServices.set(e,n)}off(e,t){if(!t)return void this.messagingServices.delete(e);const n=this.messagingServices.get(e);if(n){const s=n.indexOf(t);-1!==s&&(n.splice(s,1),0===n.length?this.messagingServices.delete(e):this.messagingServices.set(e,n))}}setupMessageListener(){this.isBrowser&&window.addEventListener("message",e=>{const{type:t,action:n,payload:s,promiseId:r}=e.data;if("MULTIPLAYER_SESSION_DEBUGGER_EXTENSION"!==t||!n)return;if(r&&this.promiseMap.has(r)){const{resolve:e,reject:t}=this.promiseMap.get(r),{error:n,response:o}=s;return n?t(n):e(o),void this.promiseMap.delete(r)}const o=this.messagingServices.get(n);o&&o.forEach(e=>e(s))})}}},"./src/sessionRecorder.ts":(e,t,n)=>{"use strict";n.d(t,{SessionRecorder:()=>A});var s=n("./src/otel/index.ts"),r=n("./src/rrweb/index.ts"),o=n("./src/utils/index.ts"),i=n("./src/types/index.ts"),a=n("./src/config/index.ts"),l=n("./src/patch/xhr.ts"),c=n("./src/eventBus.ts"),u=n("./src/sessionWidget/index.ts"),d=n("./src/services/messaging.service.ts"),p=n("./src/services/api.service.ts"),m=(n("./src/index.scss"),n("../session-recorder-common/dist/esm/index-browser.js")),h=n("./src/sessionWidget/buttonStateConfigs.ts");class A{get sessionId(){return this._sessionId}set sessionId(e){this._sessionId=e,(0,o.setStoredItem)(a.SESSION_ID_PROP_NAME,e)}get sessionType(){return this._sessionType}set sessionType(e){this._sessionType=e;const t=e===m.SessionType.CONTINUOUS;this._sessionWidget.updateContinuousRecordingState(t),d.default.sendMessage("continuous-debugging",t),(0,o.setStoredItem)(a.SESSION_TYPE_PROP_NAME,e)}get continuousRecording(){return this.sessionType===m.SessionType.CONTINUOUS}get sessionState(){return this._sessionState||i.SessionState.stopped}set sessionState(e){this._sessionState=e,this._sessionWidget.updateState(this._sessionState,this.continuousRecording),d.default.sendMessage("state-change",this._sessionState),(0,o.setStoredItem)(a.SESSION_STATE_PROP_NAME,e)}get session(){return this._session}set session(e){this._session=e,(0,o.setStoredItem)(a.SESSION_PROP_NAME,this._session)}get sessionAttributes(){return this._sessionAttributes||{}}set sessionAttributes(e){this._sessionAttributes=e}get error(){return this._sessionWidget.error}set error(e){this._sessionWidget.error=e}get sessionWidgetButtonElement(){return this._sessionWidget.recorderButton}constructor(){var e;this._isInitialized=!1,this._apiService=new p.ApiService,this._tracer=new s.TracerBrowserSDK,this._recorder=new r.RecorderBrowserSDK,this._sessionWidget=new u.SessionWidget,this._startRequestController=null,this._sessionId=null,this._sessionType=m.SessionType.PLAIN,this._sessionState=null,this._session=null,this._sessionAttributes=null;const t=(0,o.getStoredItem)(a.SESSION_PROP_NAME,!0),n=(0,o.getStoredItem)(a.SESSION_ID_PROP_NAME),i=(0,o.getStoredItem)(a.SESSION_STATE_PROP_NAME),l=(0,o.getStoredItem)(a.SESSION_TYPE_PROP_NAME),c=(0,o.getStoredItem)(a.SESSION_CONTINUOUS_DEBUGGING_PROP_NAME,!0);(0,o.isSessionActive)(t,c)?(this.session=t,this.sessionId=n,this.sessionType=l,this.sessionState=i):(this.session=null,this.sessionId=null,this.sessionState=null,this.sessionType=m.SessionType.PLAIN),this._configs={...a.BASE_CONFIG,apiKey:(null===(e=this.session)||void 0===e?void 0:e.tempApiKey)||""}}init(e){this._configs=(0,a.getSessionRecorderConfig)({...this._configs,...e}),this._isInitialized=!0,this._checkOperation("init"),(0,l.setMaxCapturingHttpPayloadSize)(this._configs.maxCapturingHttpPayloadSize||a.DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE),(0,l.setShouldRecordHttpData)(!this._configs.captureBody,this._configs.captureHeaders),this._tracer.init(this._configs),this._apiService.init(this._configs),this._sessionWidget.init(this._configs),this._configs.apiKey&&this._recorder.init(this._configs),!this.sessionId||this.sessionState!==i.SessionState.started&&this.sessionState!==i.SessionState.paused||this._start(),this._registerWidgetEvents(),this._registerSessionLimitReach(),this._registerSessionAutoCreation(),d.default.sendMessage("state-change",this.sessionState)}async save(){try{if(this._checkOperation("save"),!this.continuousRecording||!this._configs.showContinuousRecording)return;this._sessionWidget.updateSaveContinuousDebugSessionState(h.ContinuousRecordingSaveButtonState.SAVING);const e=await this._apiService.saveContinuousDebugSession(this.sessionId,{sessionAttributes:this.sessionAttributes,resourceAttributes:(0,o.getNavigatorInfo)(),stoppedAt:this._recorder.stoppedAt,name:this.sessionAttributes.userName?`${this.sessionAttributes.userName}'s session on ${(0,o.getFormattedDate)(Date.now(),{month:"short",day:"numeric"})}`:`Session on ${(0,o.getFormattedDate)(Date.now())}`});this._sessionWidget.updateSaveContinuousDebugSessionState(h.ContinuousRecordingSaveButtonState.SAVED);const t=null==e?void 0:e.url;return this._sessionWidget.showToast({type:"success",message:"Your session was saved",button:{text:"Open session",url:t}},5e3),e}catch(e){this.error=e.message,this._sessionWidget.updateSaveContinuousDebugSessionState(h.ContinuousRecordingSaveButtonState.ERROR)}finally{setTimeout(()=>{this._sessionWidget.updateSaveContinuousDebugSessionState(h.ContinuousRecordingSaveButtonState.IDLE)},3e3)}}start(e=m.SessionType.PLAIN,t){this._checkOperation("start"),e!==m.SessionType.CONTINUOUS||this._configs.showContinuousRecording||(e=m.SessionType.PLAIN),this.sessionType=e,this._startRequestController=new AbortController,t?this._setupSessionAndStart(t,!0):this._createSessionAndStart()}async stop(e){try{if(this._checkOperation("stop"),this._stop(),this.continuousRecording)await this._apiService.stopContinuousDebugSession(this.sessionId),this.sessionType=m.SessionType.PLAIN;else{const t={sessionAttributes:{comment:e},stoppedAt:this._recorder.stoppedAt},n=await this._apiService.stopSession(this.sessionId,t);c.recorderEventBus.emit(a.SESSION_RESPONSE,n)}this._clearSession()}catch(e){this.error=e.message}}async pause(){try{this._checkOperation("pause"),this._pause()}catch(e){this.error=e.message}}async resume(){try{this._checkOperation("resume"),this._resume()}catch(e){this.error=e.message}}async cancel(){try{this._checkOperation("cancel"),this._stop(),this.continuousRecording?(await this._apiService.stopContinuousDebugSession(this.sessionId),this.sessionType=m.SessionType.PLAIN):await this._apiService.cancelSession(this.sessionId),this._clearSession()}catch(e){this.error=e.message}}setSessionAttributes(e){this._sessionAttributes=e}set recordingButtonClickHandler(e){this._sessionWidget.buttonClickExternalHandler=e}async checkRemoteContinuousSession(e){if(this._checkOperation("autoStartRemoteContinuousSession"),!this._configs.showContinuousRecording)return;const t={sessionAttributes:{...this.sessionAttributes,...(null==e?void 0:e.sessionAttributes)||{}},resourceAttributes:{...(0,o.getNavigatorInfo)(),...(null==e?void 0:e.resourceAttributes)||{}}},{state:n}=await this._apiService.checkRemoteSession(t);"START"==n?this.sessionState!==i.SessionState.started&&await this.start(m.SessionType.CONTINUOUS):"STOP"==n&&this.sessionState!==i.SessionState.stopped&&await this.stop()}_registerWidgetEvents(){this._sessionWidget.on("toggle",(e,t)=>{this.error="",e?this.start(m.SessionType.PLAIN):this.stop(null==t?void 0:t.trim())}),this._sessionWidget.on("pause",()=>{this.error="",this.pause()}),this._sessionWidget.on("resume",()=>{this.error="",this.resume()}),this._sessionWidget.on("cancel",()=>{this.error="",this.cancel()}),this._sessionWidget.on("continuous-debugging",e=>{this.error="",e?this.start(m.SessionType.CONTINUOUS):this.stop()}),this._sessionWidget.on("save",()=>{this.error="",this.save()})}_registerSessionLimitReach(){c.recorderEventBus.on(a.SESSION_STOPPED_EVENT,()=>{this._stop(),this._clearSession(),this._sessionWidget.handleUIReseting()})}_registerSessionAutoCreation(){c.recorderEventBus.on(a.SESSION_AUTO_CREATED,e=>{var t;(null==e?void 0:e.data)&&this._sessionWidget.showToast({type:"success",message:"Your session was auto-saved due to an error",button:{text:"Open session",url:null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.url}},5e3)})}async _createSessionAndStart(){var e;const t=null===(e=this._startRequestController)||void 0===e?void 0:e.signal;try{const e={sessionAttributes:this.sessionAttributes,resourceAttributes:(0,o.getNavigatorInfo)(),name:this.sessionAttributes.userName?`${this.sessionAttributes.userName}'s session on ${(0,o.getFormattedDate)(Date.now(),{month:"short",day:"numeric"})}`:`Session on ${(0,o.getFormattedDate)(Date.now())}`},n=this.continuousRecording?{debugSessionData:e}:e,s=this.continuousRecording?await this._apiService.startContinuousDebugSession(n,t):await this._apiService.startSession(n,t);s&&(s.sessionType=this.continuousRecording?m.SessionType.CONTINUOUS:m.SessionType.PLAIN,this._setupSessionAndStart(s,!1))}catch(e){this.error=e.message,this.continuousRecording&&(this.sessionType=m.SessionType.PLAIN)}}_start(){var e;this.sessionState=i.SessionState.started,this._tracer.start(this.sessionId,this.sessionType),this._recorder.start(this.sessionId,this.sessionType),this.session&&(c.recorderEventBus.emit(a.SESSION_STARTED_EVENT,this.session),this._recorder.subscribeToSession(this.session),this._sessionWidget.seconds=(0,o.getTimeDifferenceInSeconds)(null===(e=this.session)||void 0===e?void 0:e.startedAt))}_stop(){this.sessionState=i.SessionState.stopped,this._tracer.stop(),this._recorder.stop()}_pause(){this._tracer.stop(),this._recorder.stop(),this.sessionState=i.SessionState.paused}_resume(){this._tracer.start(this.sessionId,this.sessionType),this._recorder.start(this.sessionId,this.sessionType),this.sessionState=i.SessionState.started}_setupSessionAndStart(e,t=!0){t&&e.tempApiKey&&(this._configs.apiKey=e.tempApiKey,this._recorder.init(this._configs),this._tracer.setApiKey(e.tempApiKey),this._apiService.updateConfigs({apiKey:this._configs.apiKey})),this._setSession(e),this._start()}_setSession(e){this.session={...e,startedAt:e.startedAt||(new Date).toISOString()},this.sessionId=(null==e?void 0:e.shortId)||(null==e?void 0:e._id)}_clearSession(){this.session=null,this.sessionId=null,this.sessionState=i.SessionState.stopped}_checkOperation(e,t){if(!this._isInitialized)throw new Error("Configuration not initialized. Call init() before performing any actions.");switch(e){case"start":if(this.sessionState===i.SessionState.started)throw new Error("Session is already started.");break;case"stop":if(this.sessionState!==i.SessionState.paused&&this.sessionState!==i.SessionState.started)throw new Error("Cannot stop. Session is not currently started.");break;case"cancel":if(this.sessionState===i.SessionState.stopped)throw new Error("Cannot cancel. Session has already been stopped.");break;case"pause":if(this.sessionState!==i.SessionState.started)throw new Error("Cannot pause. Session is not running.");break;case"resume":if(this.sessionState!==i.SessionState.paused)throw new Error("Cannot resume. Session is not paused.");break;case"save":if(!this.continuousRecording)throw new Error("Cannot save continuous recording session. Continuous recording is not enabled.");if(this.sessionState!==i.SessionState.started)throw new Error("Cannot save continuous recording session. Session is not started.");break;case"autoStartRemoteContinuousSession":if(this.sessionState!==i.SessionState.stopped)throw new Error("Cannot start remote continuous session. Session is not stopped.")}}}},"./src/sessionWidget/UIManager.ts":(e,t,n)=>{"use strict";n.d(t,{UIManager:()=>u});var s=n("./src/utils/index.ts"),r=n("./src/sessionWidget/templates/icons.ts"),o=n("./src/sessionWidget/templates/finalPopover.ts"),i=n("./src/sessionWidget/templates/initialPopover.ts"),a=n("./src/sessionWidget/templates/recordingOverlay.ts"),l=n("./src/sessionWidget/templates/submitSessionDialog.ts"),c=n("./src/sessionWidget/templates/toast.ts");class u{constructor(e,t,n,s,r,o,i,a){this.toastTimeout=null,this.recorderButton=e,this.initialPopover=t,this.finalPopover=n,this.recordingOverlay=s,this.submitSessionDialog=r,this.toast=o,this.widgetTextOverrides=i,this.showContinuousRecording=a}setRecorderButtonProps(){this.recorderButton.className="mp-session-debugger-button",this.recorderButton.dataset.tooltip="Record an issue",(0,s.insertTrustedHTML)(this.recorderButton,`${r.RecordIcon}`)}setOverlayProps(){this.recordingOverlay.className="mp-recording-overlay hidden",(0,s.insertTrustedHTML)(this.recordingOverlay,a.recordingOverlayTemplate)}setSubmitSessionDialogProps(){this.submitSessionDialog.id="mp-submission-dialog",this.submitSessionDialog.className="hidden",(0,s.insertTrustedHTML)(this.submitSessionDialog,(0,l.submitSessionDialogTemplate)(this.widgetTextOverrides))}setInitialPopoverProps(){this.initialPopover.className="mp-session-debugger-popover mp-initial-popover hidden",(0,s.insertTrustedHTML)(this.initialPopover,(0,i.initialPopoverTemplate)(this.widgetTextOverrides,this.showContinuousRecording))}setFinalPopoverProps(){this.finalPopover.className="mp-session-debugger-popover hidden",(0,s.insertTrustedHTML)(this.finalPopover,(0,o.finalPopoverTemplate)(this.widgetTextOverrides))}setPopoverLoadingState(e){const t=this.initialPopover.querySelector(".mp-session-debugger-popover-button");t&&(t.classList.toggle("disabled",e),t.textContent=e?"Starting to record...":"Start recording")}setTimerValue(e){const t=this.recordingOverlay.querySelector(".timer");t&&(0,s.insertTrustedHTML)(t,e)}setToastProps(){this.toast.className="mp-toast hidden"}showToast(e,t=1e4){var n;if((0,s.insertTrustedHTML)(this.toast,(0,c.toastTemplate)(e)),this.toast.className=`mp-toast mp-toast-${e.type}`,null===(n=e.button)||void 0===n?void 0:n.onClick){const t=this.toast.querySelector(".mp-toast-button");null==t||t.addEventListener("click",e.button.onClick)}this.toastTimeout&&clearTimeout(this.toastTimeout),this.toastTimeout=setTimeout(()=>{this.hideToast()},t)}hideToast(){this.toast.classList.add("hidden"),this.toastTimeout&&clearTimeout(this.toastTimeout)}}},"./src/sessionWidget/buttonStateConfigs.ts":(e,t,n)=>{"use strict";n.d(t,{ButtonState:()=>s,ContinuousRecordingSaveButtonState:()=>r,buttonStates:()=>i,continuousRecordingSaveButtonStates:()=>a});var s,r,o=n("./src/sessionWidget/templates/icons.ts");!function(e){e.IDLE="IDLE",e.RECORDING="RECORDING",e.CANCEL="CANCEL",e.SENT="SENT",e.LOADING="LOADING",e.CONTINUOUS_DEBUGGING="CONTINUOUS_DEBUGGING"}(s||(s={})),function(e){e.IDLE="IDLE",e.SAVING="SAVING",e.SAVED="SAVED",e.ERROR="ERROR"}(r||(r={}));const i={[s.IDLE]:{icon:o.RecordIcon,tooltip:"Record an issue",classes:[],excludeClasses:["animate-rotate","mp-button-blue"]},[s.RECORDING]:{icon:o.CapturingIcon,tooltip:"The session is recording. Click to end.",classes:[],excludeClasses:["mp-button-blue","animate-rotate"]},[s.CANCEL]:{icon:o.CloseIcon,tooltip:"Click to cancel",classes:[],excludeClasses:["animate-rotate","mp-button-blue"]},[s.SENT]:{icon:o.CheckmarkIcon,tooltip:"We've sent it over! Thanks!",classes:["mp-button-blue"],excludeClasses:["animate-rotate"]},[s.LOADING]:{icon:o.RecordIcon,tooltip:"Starting to record...",classes:[],excludeClasses:["animate-rotate","mp-button-blue"]},[s.CONTINUOUS_DEBUGGING]:{icon:o.CapturingIcon,tooltip:"You’re continuously recording.",classes:[],excludeClasses:["mp-button-blue","animate-rotate"]}},a={[r.IDLE]:{textContent:"Save recording",disabled:!1,classes:[]},[r.SAVING]:{disabled:!0,textContent:"Saving recording...",classes:[]},[r.SAVED]:{disabled:!0,textContent:"Saved",classes:[]},[r.ERROR]:{disabled:!0,textContent:"Error saving the recording",classes:[]}}},"./src/sessionWidget/constants.ts":(e,t,n)=>{"use strict";n.d(t,{NON_DRAGGABLE_OFFSET:()=>r,POPOVER_DISTANCE_FROM_BUTTON:()=>o,POPOVER_WIDTH:()=>s,POSITION_STATE_KEY:()=>i});const s=300,r=10,o=25,i="mp-recorder-button-position"},"./src/sessionWidget/dragManager.ts":(e,t,n)=>{"use strict";n.d(t,{DragManager:()=>r});var s=n("./src/sessionWidget/constants.ts");class r{constructor(e,t,n=()=>{},s=()=>{},r=()=>{}){this.isDragging=!1,this.dragStarted=!1,this.isOnLeftHalfOfScreen=!1,this.recorderButton=e,this.recorderPlacement=t,this.onDragEnd=n,this.updatePopoverPosition=s,this.onRecordingButtonClick=r}init(){this.loadStoredPosition(),this.setupDragListeners()}loadStoredPosition(){const e=localStorage.getItem(s.POSITION_STATE_KEY);if(!e)return;let{right:t,bottom:n}=JSON.parse(e);if(null==t||null==n)return;t>0&&t<=1&&n>0&&n<=1?(t*=window.innerWidth,n*=window.innerHeight):(t=t/100*window.innerWidth,n=n/100*window.innerHeight),t=Math.min(Math.max(t,0),window.innerWidth),n=Math.min(Math.max(n,0),window.innerHeight),requestAnimationFrame(()=>{this.recorderButton.classList.remove(this.recorderPlacement),this.recorderButton.style.right=`${t}px`,this.recorderButton.style.bottom=`${n}px`,this.isOnLeftHalfOfScreen=t>window.innerWidth/2,this.recorderButton.classList.toggle("button-leftside",this.isOnLeftHalfOfScreen),this.updatePopoverPosition()})}savePosition(e,t){const n=e/window.innerWidth*100,r=t/window.innerHeight*100;localStorage.setItem(s.POSITION_STATE_KEY,JSON.stringify({right:n,bottom:r}))}setupDragListeners(){this.recorderButton.addEventListener("mousedown",e=>{const t=()=>{const n=!this.recorderButton.classList.contains("no-draggable");if(this.isDragging||!n){if(this.recorderButton.classList.toggle("button-leftside",this.isOnLeftHalfOfScreen),this.isDragging=!1,document.body.style.userSelect="",n){const e=parseFloat(this.recorderButton.style.right),t=parseFloat(this.recorderButton.style.bottom);this.savePosition(e,t),document.removeEventListener("mousemove",a)}this.dragStarted||(this.updatePopoverPosition(),this.onRecordingButtonClick(e)),this.onDragEnd(this.isDragging,this.dragStarted,this.isOnLeftHalfOfScreen)}this.recorderButton.classList.remove("no-hover"),document.removeEventListener("mouseup",t)};if(this.recorderButton.classList.contains("no-draggable"))return this.isDragging=!1,this.dragStarted=!1,void document.addEventListener("mouseup",t);this.recorderButton.classList.add("no-hover"),this.isDragging=!0,this.dragStarted=!1;const n=e.clientX,s=e.clientY,r=this.recorderButton.getBoundingClientRect(),o=window.innerWidth,i=window.innerHeight,a=e=>{const t=e.clientX-n,a=e.clientY-s;if(Math.abs(t)>3||Math.abs(a)>3){this.dragStarted=!0,this.recorderButton.classList.remove(this.recorderPlacement);const e=Math.max(0,Math.min(o-r.width,r.left+t)),n=Math.max(0,Math.min(i-r.height,r.top+a)),s=o-e-r.width,l=i-n-r.height;this.isOnLeftHalfOfScreen=s>o/2,requestAnimationFrame(()=>{this.recorderButton.style.right=`${s}px`,this.recorderButton.style.bottom=`${l}px`})}};document.addEventListener("mousemove",a),document.addEventListener("mouseup",t),document.body.style.userSelect="none",e.preventDefault()})}}},"./src/sessionWidget/index.ts":(e,t,n)=>{"use strict";n.d(t,{SessionWidget:()=>d});n("../../node_modules/rrweb-player/dist/style.css");var s=n("../../node_modules/lib0/observable.js"),r=n("./src/utils/index.ts"),o=n("./src/types/index.ts"),i=n("./src/sessionWidget/dragManager.ts"),a=n("./src/sessionWidget/constants.ts"),l=n("./src/config/index.ts"),c=n("./src/sessionWidget/UIManager.ts"),u=n("./src/sessionWidget/buttonStateConfigs.ts");class d extends s.Observable{set buttonState(e){this._buttonState=e;const{icon:t,tooltip:n,classes:s,excludeClasses:r}=u.buttonStates[e];e===u.ButtonState.CANCEL?this.buttonDraggabilityObserver.observe(this.recorderButton,{attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}):this.buttonDraggabilityObserver.disconnect(),this.updateButton(t,n,r,s)}set initialPopoverVisible(e){var t;this._initialPopoverVisible=e,null===(t=this.initialPopover)||void 0===t||t.classList.toggle("hidden",!e)}set finalPopoverVisible(e){var t;this._finalPopoverVisible=e,null===(t=this.finalPopover)||void 0===t||t.classList.toggle("hidden",!e)}get error(){return this._error}set error(e){this._error=e,this._error&&this.showToast({type:"error",message:this._error,button:{text:"Close",onClick:()=>this.hideToast()}})}set isStarted(e){this._isStarted=e,this.showRecorderButton||!e||this._continuousRecording?this.overlay.classList.add("hidden"):(this.overlay.classList.remove("hidden"),this.makeOverlayDraggable(),this.seconds||this.startTimer()),this.recorderButton.classList.toggle("is-started",this._isStarted),this._isStarted?(this._continuousRecording?this.buttonState=u.ButtonState.CONTINUOUS_DEBUGGING:(this.initialPopoverVisible=!1,this.buttonState=u.ButtonState.RECORDING),this.uiManager.setPopoverLoadingState(!1)):this.buttonState=u.ButtonState.IDLE}set isPaused(e){this._isPaused=e,this._isInitialized&&!this.showRecorderButton&&e&&!this._continuousRecording&&(this.overlay.classList.add("hidden"),this.submitSessionDialog.classList.remove("hidden"),this.stopTimer())}constructor(){super(),this._isStarted=!1,this._isPaused=!1,this._isInitialized=!1,this._recorderPlacement="",this._error="",this._initialPopoverVisible=!1,this._finalPopoverVisible=!1,this._buttonState=u.ButtonState.IDLE,this._continuousRecording=!1,this._showContinuousRecording=!0,this._widgetTextOverrides=l.DEFAULT_WIDGET_TEXT_CONFIG,this.commentTextarea=null,this.dragManager=null,this.buttonClickExternalHandler=null,this.showRecorderButton=!1,this.seconds=0,this.handleClickOutside=e=>{var t;const n=e.target,s=this._initialPopoverVisible||this._finalPopoverVisible,r=this._initialPopoverVisible?this.initialPopover:this.finalPopover;s&&n&&!(null==r?void 0:r.contains(n))&&!(null===(t=this.recorderButton)||void 0===t?void 0:t.contains(n))&&n!==this.recorderButton&&n!==r&&(this._initialPopoverVisible?this.handleCloseInitialPopover():this.handleCloseFinalPopover())},this.recorderButton=document.createElement("button"),this.initialPopover=document.createElement("div"),this.finalPopover=document.createElement("div"),this.overlay=document.createElement("div"),this.toast=document.createElement("div"),this.submitSessionDialog=document.createElement("div"),this.uiManager=new c.UIManager(this.recorderButton,this.initialPopover,this.finalPopover,this.overlay,this.submitSessionDialog,this.toast,l.DEFAULT_WIDGET_TEXT_CONFIG,!0),this.uiManager.setRecorderButtonProps(),this.uiManager.setInitialPopoverProps(),this.uiManager.setFinalPopoverProps(),this.uiManager.setOverlayProps(),this.uiManager.setSubmitSessionDialogProps(),this.uiManager.setToastProps(),this.commentTextarea=this.finalPopover.querySelector(".mp-session-debugger-popover-textarea"),this.observeButtonDraggableMode()}updateState(e,t){switch(this._continuousRecording=t,e){case o.SessionState.started:this.isPaused=!1,this.isStarted=!0;break;case o.SessionState.stopped:this.isPaused=!1,this.isStarted=!1;break;case o.SessionState.paused:this.isPaused=!0,this.isStarted=!1;break;default:this.isPaused=!1,this.isStarted=!1}}updateContinuousRecordingState(e,t=!1){const n=this.initialPopover.querySelector("#mp-session-debugger-continuous-debugging-checkbox");n&&(n.checked=e,n.disabled=t)}updateSaveContinuousDebugSessionState(e){const t=this.initialPopover.querySelector("#mp-save-continuous-debug-session");if(t){const{textContent:n,disabled:s}=u.continuousRecordingSaveButtonStates[e];t.disabled=s,t.textContent=n}}showToast(e,t=1e4){this.uiManager.showToast(e,t)}hideToast(){this.uiManager.hideToast()}observeButtonDraggableMode(){this.buttonDraggabilityObserver=new MutationObserver(e=>{for(const t of e)if("attributes"===t.type&&"class"===t.attributeName){const e=t.oldValue,n=t.target.className;((null==e?void 0:e.includes("no-draggable"))&&!n.includes("no-draggable")||(null==n?void 0:n.includes("no-draggable"))&&!(null==e?void 0:e.includes("no-draggable")))&&(this.initialPopoverVisible=!1,this.finalPopoverVisible=!1)}})}init(e){if(this._isInitialized)return;this._isInitialized=!0,this.showRecorderButton=e.showWidget,this._showContinuousRecording=e.showContinuousRecording,this._widgetTextOverrides={...this._widgetTextOverrides,...e.widgetTextOverrides},this.uiManager=new c.UIManager(this.recorderButton,this.initialPopover,this.finalPopover,this.overlay,this.submitSessionDialog,this.toast,this._widgetTextOverrides,this._showContinuousRecording),this.uiManager.setRecorderButtonProps(),this.uiManager.setInitialPopoverProps(),this.uiManager.setFinalPopoverProps(),this.uiManager.setOverlayProps(),this.uiManager.setSubmitSessionDialogProps(),this.uiManager.setToastProps();const t=[this.toast];if(e.showWidget?t.push(this.recorderButton,this.initialPopover,this.finalPopover,this.submitSessionDialog):t.push(this.overlay,this.submitSessionDialog),this.appendElements(t),!this._showContinuousRecording){const e=this.initialPopover.querySelector(".mp-session-debugger-continuous-debugging");e&&e.classList.add("hidden");const t=this.initialPopover.querySelector(".mp-session-debugger-continuous-debugging-overlay");t&&t.classList.add("hidden")}e.showWidget&&e.widgetButtonPlacement&&(this.recorderButton.classList.add(e.widgetButtonPlacement),this._recorderPlacement=e.widgetButtonPlacement,this.addRecorderDragFunctionality()),this.addEventListeners()}appendElements(e){const t=document.createElement("mp-root");t.classList.add("mp-root-wrapper"),t.setAttribute("data-rr-ignore","true"),e.forEach(e=>t.appendChild(e)),document.body.appendChild(t)}addRecorderDragFunctionality(){this.dragManager=new i.DragManager(this.recorderButton,this._recorderPlacement,()=>{this._isPaused&&(this.finalPopoverVisible=!0)},()=>this.updatePopoverPosition(),e=>this.onRecordingButtonClick(e)),this.dragManager.init()}updatePopoverPosition(){const{top:e,right:t,bottom:n,left:s}=this.recorderButton.getBoundingClientRect(),r=!this.recorderButton.classList.contains("no-draggable"),o=this._isStarted?400:300,i=window.innerWidth,l=window.innerHeight;let c,u;c=l-e+a.POPOVER_DISTANCE_FROM_BUTTON+(r?0:a.NON_DRAGGABLE_OFFSET),u=i-t,c+o>l&&(c=l-n-o-a.POPOVER_DISTANCE_FROM_BUTTON-(r?0:a.NON_DRAGGABLE_OFFSET)),u+a.POPOVER_WIDTH>i&&(u=i-s-a.POPOVER_WIDTH);const d=10;c=Math.max(c,d),u=Math.max(u,d),u+a.POPOVER_WIDTH>i-d&&(u=i-a.POPOVER_WIDTH-d),c+o>l-d&&(c=l-o-d);const p=e=>{e.style.right=`${u}px`,e.style.bottom=`${c}px`,e.style.left="unset",e.style.top="unset"};requestAnimationFrame(()=>{this.initialPopover&&p(this.initialPopover),this.finalPopover&&p(this.finalPopover)})}addEventListeners(){const e=[];this.showRecorderButton?(e.push({target:this.initialPopover,selector:".mp-start-recording",handler:this.startRecording.bind(this)}),this._showContinuousRecording&&e.push({event:"change",target:this.initialPopover,selector:"#mp-session-debugger-continuous-debugging-checkbox",handler:this.handleContinuousRecordingChange.bind(this)},{target:this.initialPopover,selector:"#mp-save-continuous-debug-session",handler:this.handleSaveContinuousDebugSession.bind(this)}),e.push({target:this.initialPopover,selector:".mp-session-debugger-modal-close",handler:this.handleCloseInitialPopover.bind(this)},{target:this.finalPopover,selector:".mp-stop-recording",handler:this.handleStopRecording.bind(this)},{target:this.finalPopover,selector:".mp-session-debugger-dismiss-button",handler:this.handleDismissRecording.bind(this)},{target:this.finalPopover,selector:".mp-session-debugger-modal-close",handler:this.handleCloseFinalPopover.bind(this)})):e.push({target:this.overlay,selector:".mp-stop-btn",handler:this.onPause.bind(this)},{target:this.submitSessionDialog,selector:"#mp-submit-recording",handler:this.onStop.bind(this)},{target:this.submitSessionDialog,selector:"#mp-cancel-submission",handler:this.onCancel.bind(this)}),e.forEach(({target:e,selector:t,handler:n,event:s="click"})=>{this.addListener(e,t,n,s)})}handleStopRecording(){this.onStop(),this.handleUIReseting()}handleUIReseting(){this.finalPopoverVisible=!1,this.resetRecordingButton()}handleCloseInitialPopover(){this._buttonState===u.ButtonState.LOADING&&(this.onCancel(),this.uiManager.setPopoverLoadingState(!1)),this.initialPopoverVisible=!1,this.buttonState=this._continuousRecording?u.ButtonState.CONTINUOUS_DEBUGGING:u.ButtonState.IDLE,document.removeEventListener("click",this.handleClickOutside)}handleCloseFinalPopover(){this.onResume()}onRequestError(){this.initialPopoverVisible=!1,this.finalPopoverVisible=!1,this.buttonState=u.ButtonState.IDLE,document.removeEventListener("click",this.handleClickOutside)}handleDismissRecording(){this.onCancel(),this.finalPopoverVisible=!this._finalPopoverVisible,this.buttonState=u.ButtonState.IDLE,this.overlay.classList.add("hidden"),this.commentTextarea&&(this.commentTextarea.value="")}resetRecordingButton(){setTimeout(()=>{this.buttonState=u.ButtonState.IDLE},1500)}addListener(e,t,n,s="click"){var r;null===(r=null==e?void 0:e.querySelector(t))||void 0===r||r.addEventListener(s,n)}onRecordingButtonClick(e){if(this.buttonClickExternalHandler){if(!1===this.buttonClickExternalHandler())return void e.preventDefault()}this._initialPopoverVisible?this.handleCloseInitialPopover():this._isPaused?this.onResume():(this._isStarted?(this.buttonState=u.ButtonState.CANCEL,this._continuousRecording?this.initialPopoverVisible=!this.initialPopoverVisible:(this.finalPopoverVisible=!this._finalPopoverVisible,this.onPause())):(this.buttonState=this._initialPopoverVisible?u.ButtonState.IDLE:u.ButtonState.CANCEL,this.initialPopoverVisible=!this._initialPopoverVisible),this._initialPopoverVisible||this._finalPopoverVisible?document.addEventListener("click",this.handleClickOutside):document.removeEventListener("click",this.handleClickOutside))}updateButton(e,t,n,s){this.recorderButton&&((0,r.insertTrustedHTML)(this.recorderButton,`${e}`),this.recorderButton.dataset.tooltip=t,n&&this.recorderButton.classList.remove(...n),s&&this.recorderButton.classList.add(...s))}handleContinuousRecordingChange(e){if(!this._showContinuousRecording)return;const t=e.target;this.emit("continuous-debugging",[t.checked])}handleSaveContinuousDebugSession(){this.emit("save",[])}startRecording(){this.buttonState=u.ButtonState.LOADING,this.uiManager.setPopoverLoadingState(!0),this.onStart()}onStart(){this.recorderButton&&this.emit("toggle",[!0])}onStop(){if(this.showRecorderButton&&!this.recorderButton)return;this.submitSessionDialog.classList.add("hidden");const e=this.showRecorderButton?this.commentTextarea:this.submitSessionDialog.querySelector("#mp-recording-comment");if(e)return this.emit("toggle",[!1,e.value]),void(e.value="");this.emit("toggle",[!1,""])}onPause(){this.emit("pause",[])}onResume(){this.finalPopoverVisible=!1,this._continuousRecording?this.buttonState=u.ButtonState.CONTINUOUS_DEBUGGING:(this.buttonState=u.ButtonState.RECORDING,this.emit("resume",[]))}onCancel(){this.submitSessionDialog.classList.add("hidden"),this.emit("cancel",[])}enable(){this.recorderButton&&(this.recorderButton.disabled=!1,this.recorderButton.style.opacity="1")}disable(){this.recorderButton&&(this.recorderButton.disabled=!0,this.recorderButton.style.opacity="0.5")}destroy(){this.recorderButton&&(document.body.removeChild(this.recorderButton),document.removeEventListener("click",this.handleClickOutside))}startTimer(){this.timerInterval&&(clearInterval(this.timerInterval),this.timerInterval=null),this.uiManager.setTimerValue((0,r.formatTimeForSessionTimer)(this.seconds)),this.timerInterval=setInterval(()=>{this.seconds++,this.uiManager.setTimerValue((0,r.formatTimeForSessionTimer)(this.seconds))},1e3)}stopTimer(){this.timerInterval&&(clearInterval(this.timerInterval),this.timerInterval=null,this.seconds=0)}makeOverlayDraggable(){const e=this.overlay,t=e.querySelector(".mp-drag-handle");if(!t)return;let n=0,s=0;t.onmousedown=function(t){t.preventDefault(),n=t.clientX-e.offsetLeft,s=t.clientY-e.offsetTop,document.onmousemove=function(t){e.style.left=t.clientX-n+"px",e.style.top=t.clientY-s+"px",e.style.bottom="auto",e.style.transform="none"},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}}}}},"./src/sessionWidget/templates/finalPopover.ts":(e,t,n)=>{"use strict";n.d(t,{finalPopoverTemplate:()=>r});var s=n("./src/sessionWidget/templates/icons.ts");const r=e=>`\n<div class="mp-session-debugger-popover-content">\n <div class="mp-session-debugger-popover-header">\n <a href="https://www.multiplayer.app" target="_blank" rel="noopener noreferrer" title="Multiplayer">\n <div class="mp-session-debugger-popover-logo">${s.LogoSvg}</div>\n </a>\n <button class="mp-session-debugger-dismiss-button">${e.cancelButtonText}</button>\n <button class="mp-session-debugger-modal-close" aria-label="Close">${s.CloseXIcon}</button>\n </div>\n <div class="mp-session-debugger-popover-body">\n <h2>${e.finalTitle}</h2>\n <p>${e.finalDescription}</p>\n <textarea placeholder="${e.commentPlaceholder}" class="mp-session-debugger-popover-textarea"></textarea>\n <div class="mp-session-debugger-popover-footer">\n <button class="mp-session-debugger-popover-button mp-stop-recording">${e.saveButtonText}</button>\n </div>\n </div>\n</div>\n`},"./src/sessionWidget/templates/icons.ts":(e,t,n)=>{"use strict";n.d(t,{CapturingIcon:()=>c,CheckSuccessIcon:()=>p,CheckmarkIcon:()=>u,CloseIcon:()=>a,CloseXIcon:()=>l,DragHandleIcon:()=>d,ErrorIcon:()=>m,LogoSvg:()=>s,RecordIcon:()=>r,RecordIndicatorIcon:()=>o,StopIcon:()=>i});const s='<svg xmlns="http://www.w3.org/2000/svg" width="30" height="24" viewBox="0 0 30 24" fill="none">\n<path d="M28.8324 8.83643L23.5495 6.85854L21.4856 6.08553L23.6001 0.4375L15 3.65769L6.39963 0.4375L8.51441 6.08585L6.45046 6.85885L1.16757 8.83674L0.625 9.03974L9.10095 12.0981C10.0891 12.4548 10.9201 13.1265 11.4758 13.9952C11.6632 14.2883 11.8194 14.6036 11.9398 14.9369L15 23.4076L18.0602 14.9369C18.1806 14.6036 18.3368 14.288 18.5242 13.9952C19.0802 13.1265 19.9112 12.4545 20.8991 12.0981L29.375 9.03974L28.8324 8.83674V8.83643ZM19.779 10.6434C18.2872 11.1816 17.1126 12.3563 16.5744 13.848L15.014 18.173L11.5182 8.83643L10.7776 6.85854L10.2456 5.43757L9.57367 3.64272L12.3068 4.66612L18.1631 6.85885L20.8233 7.85481L23.4457 8.83674L24.104 9.08308L19.779 10.6438V10.6434Z" fill="#473CFB" style="fill:#473CFB;fill:color(display-p3 0.2784 0.2353 0.9843);fill-opacity:1;"/>\n</svg>',r='<svg xmlns="http://www.w3.org/2000/svg" width="19" height="19" viewBox="0 0 19 19" fill="none">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M6.68926 5.30356C6.56568 5.38721 6.39976 5.37561 6.29459 5.26937L3.58782 2.53477C3.46424 2.40992 3.47196 2.20492 3.60862 2.09483C5.2319 0.786982 7.28494 0 9.51866 0C11.7535 0 13.8066 0.787042 15.4308 2.09586C15.5674 2.20596 15.5752 2.41091 15.4516 2.53577L12.7468 5.26931C12.6416 5.37558 12.4757 5.38719 12.3521 5.30353C11.5393 4.75345 10.571 4.42281 9.52066 4.42281C8.47036 4.42281 7.50203 4.75346 6.68926 5.30356ZM16.4926 3.4303C16.6163 3.30527 16.8197 3.31303 16.9288 3.45121C18.2224 5.08933 19.0001 7.15932 19.0001 9.4116C19.0001 11.6671 18.2204 13.7392 16.9238 15.3785C16.8147 15.5165 16.6114 15.5242 16.4877 15.3992L13.7872 12.6701C13.682 12.5638 13.6708 12.3962 13.7538 12.2716C14.3006 11.451 14.6291 10.4727 14.6291 9.4116C14.6291 8.35454 14.3016 7.37925 13.756 6.56083C13.6728 6.43616 13.6841 6.26857 13.7893 6.16224L16.4926 3.4303ZM5.21676 12.6712C5.322 12.5649 5.3333 12.3974 5.2502 12.2727C4.70331 11.4522 4.374 10.4737 4.374 9.41184C4.374 8.35469 4.70232 7.37949 5.24808 6.56106C5.33123 6.43637 5.31996 6.26872 5.2147 6.16241L2.50855 3.4293C2.38482 3.30434 2.18146 3.31213 2.07236 3.45028C0.77864 5.08841 0 7.15845 0 9.41184C0 11.6684 0.78066 13.7406 2.07831 15.3799C2.18749 15.5178 2.39066 15.5255 2.51429 15.4006L5.21676 12.6712ZM12.3323 13.707C12.4559 13.6231 12.6221 13.6346 12.7273 13.741L15.4277 16.4691C15.5513 16.594 15.5435 16.7991 15.4068 16.9091C13.7837 18.215 11.7327 19 9.49998 19C7.2693 19 5.21837 18.2159 3.59619 16.9102C3.45943 16.8001 3.45169 16.595 3.57533 16.4702L6.27769 13.7409C6.38296 13.6346 6.54906 13.6231 6.67267 13.707C7.48459 14.2577 8.45278 14.5883 9.50198 14.5883C10.5522 14.5883 11.5204 14.2578 12.3323 13.707Z" fill="currentColor"/>\n</svg>',o='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g id="Timer Icon">\n<circle id="Ellipse 2" cx="12" cy="12" r="4" fill="#E53E3E" style="fill:#E53E3E;fill:color(display-p3 0.8980 0.2431 0.2431);fill-opacity:1;"/>\n<circle id="Ellipse 3" cx="12" cy="12" r="7.5" stroke="#E53E3E" style="stroke:#E53E3E;stroke:color(display-p3 0.8980 0.2431 0.2431);stroke-opacity:1;"/>\n<circle id="Ellipse 4" opacity="0.2" cx="12" cy="12" r="11.5" stroke="#E53E3E" style="stroke:#E53E3E;stroke:color(display-p3 0.8980 0.2431 0.2431);stroke-opacity:1;"/>\n</g>\n</svg>\n',i='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">\n<path id="stopIcon" fill-rule="evenodd" clip-rule="evenodd" d="M10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18ZM8 7C7.44772 7 7 7.44772 7 8L7 12C7 12.5523 7.44772 13 8 13H12C12.5523 13 13 12.5523 13 12V8C13 7.44772 12.5523 7 12 7L8 7Z" fill="white" style="fill:white;fill-opacity:1;"/>\n</svg>',a='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">\n<path d="M13 11L10 14M10 14L7 11M10 14L10 6M10 19C5.02944 19 1 14.9706 1 10C1 5.02944 5.02944 1 10 1C14.9706 1 19 5.02944 19 10C19 14.9706 14.9706 19 10 19Z" stroke="#718096" style="stroke:#718096;stroke:color(display-p3 0.4431 0.5020 0.5882);stroke-opacity:1;" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>',l='<svg width="12" height="13" viewBox="0 0 12 13" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M1 11.5L11 1.5M1 1.5L11 11.5" stroke="#4A5568" style="stroke:#4A5568;stroke:color(display-p3 0.2902 0.3333 0.4078);stroke-opacity:1;" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>',c='<svg xmlns="http://www.w3.org/2000/svg" class="animate-bounce" width="24" height="24" viewBox="0 0 24 24" fill="none">\n<circle cx="12" cy="12" r="4" fill="#E53E3E" style="fill:#E53E3E;fill:color(display-p3 0.8980 0.2431 0.2431);fill-opacity:1;"/>\n<circle cx="12" cy="12" r="7.5" stroke="#E53E3E" style="stroke:#E53E3E;stroke:color(display-p3 0.8980 0.2431 0.2431);stroke-opacity:1;"/>\n<circle opacity="0.2" cx="12" cy="12" r="11.5" stroke="#E53E3E" style="stroke:#E53E3E;stroke:color(display-p3 0.8980 0.2431 0.2431);stroke-opacity:1;"/>\n</svg>',u='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">\n<g id="Left Icon">\n<path id="Icon" fill-rule="evenodd" clip-rule="evenodd" d="M20.0481 6.35147C20.5168 6.8201 20.5168 7.5799 20.0481 8.04853L10.4481 17.6485C9.97951 18.1172 9.21971 18.1172 8.75108 17.6485L3.95108 12.8485C3.48245 12.3799 3.48245 11.6201 3.95108 11.1515C4.41971 10.6828 5.17951 10.6828 5.64814 11.1515L9.59961 15.1029L18.3511 6.35147C18.8197 5.88284 19.5795 5.88284 20.0481 6.35147Z" fill="white" style="fill:white;fill-opacity:1;"/>\n</g>\n</svg>',d='<svg width="10" height="20" viewBox="0 0 10 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path id="dragHandleIcon" d="M1.66699 5H8.33366M1.66699 10H8.33366M1.66699 15H8.33366" stroke="white" stroke-opacity="0.48" style="stroke:white;stroke-opacity:0.48;" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',p='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18ZM13.7071 8.70711C14.0976 8.31658 14.0976 7.68342 13.7071 7.29289C13.3166 6.90237 12.6834 6.90237 12.2929 7.29289L9 10.5858L7.70711 9.29289C7.31658 8.90237 6.68342 8.90237 6.29289 9.29289C5.90237 9.68342 5.90237 10.3166 6.29289 10.7071L8.29289 12.7071C8.68342 13.0976 9.31658 13.0976 9.70711 12.7071L13.7071 8.70711Z" fill="white" style="fill:white;fill-opacity:1;"/>\n</svg>',m='<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M6.99987 12.4856C10.0296 12.4856 12.4856 10.0296 12.4856 6.99987C12.4856 3.9702 10.0296 1.51416 6.99987 1.51416C3.9702 1.51416 1.51416 3.9702 1.51416 6.99987C1.51416 10.0296 3.9702 12.4856 6.99987 12.4856ZM6.11332 5.14357C5.84553 4.87578 5.41136 4.87578 5.14357 5.14357C4.87578 5.41136 4.87578 5.84553 5.14357 6.11332L6.03013 6.99987L5.14357 7.88643C4.87578 8.15422 4.87578 8.58839 5.14357 8.85618C5.41136 9.12396 5.84553 9.12396 6.11332 8.85618L6.99987 7.96962L7.88643 8.85618C8.15422 9.12396 8.58839 9.12396 8.85618 8.85618C9.12396 8.58839 9.12396 8.15422 8.85618 7.88643L7.96962 6.99987L8.85618 6.11332C9.12396 5.84553 9.12396 5.41136 8.85618 5.14357C8.58839 4.87578 8.15422 4.87578 7.88643 5.14357L6.99987 6.03013L6.11332 5.14357Z" fill="currentColor"/>\n</svg>\n'},"./src/sessionWidget/templates/initialPopover.ts":(e,t,n)=>{"use strict";n.d(t,{initialPopoverTemplate:()=>r});var s=n("./src/sessionWidget/templates/icons.ts");const r=(e,t)=>`\n<div class="mp-session-debugger-popover-content">\n <div class="mp-session-debugger-popover-header">\n <a href="https://www.multiplayer.app" target="_blank" rel="noopener noreferrer" title="Multiplayer">\n <div class="mp-session-debugger-popover-logo">${s.LogoSvg}</div>\n </a>\n <button class="mp-session-debugger-modal-close" aria-label="Close">${s.CloseXIcon}</button>\n </div>\n <div class="mp-session-debugger-popover-body">\n ${t?`\n <div class="mp-session-debugger-continuous-debugging">\n <div class="mp-session-debugger-continuous-debugging-label">\n ${e.continuousRecordingLabel}\n </div>\n <label class="mp-session-debugger-continuous-debugging-switch">\n <input type="checkbox" id="mp-session-debugger-continuous-debugging-checkbox">\n <span></span>\n </label>\n </div>\n `:""}\n <h2>${t?e.initialTitleWithContinuous:e.initialTitleWithoutContinuous}</h2>\n <p>${t?e.initialDescriptionWithContinuous:e.initialDescriptionWithoutContinuous}</p>\n <div class="mp-session-debugger-popover-footer">\n <button class="mp-session-debugger-popover-button mp-start-recording">${e.startRecordingButtonText}</button>\n </div>\n ${t?`\n <div class="mp-session-debugger-continuous-debugging-overlay">\n <div class="mp-session-debugger-continuous-debugging-overlay-content">\n <h3>${s.CapturingIcon} ${e.continuousOverlayTitle}</h3>\n <p>\n ${e.continuousOverlayDescription}\n </p>\n </div>\n <button class="mp-session-debugger-popover-button" id="mp-save-continuous-debug-session">${e.saveLastSnapshotButtonText}</button>\n </div>\n `:""}\n </div>\n</div>\n`},"./src/sessionWidget/templates/recordingOverlay.ts":(e,t,n)=>{"use strict";n.d(t,{recordingOverlayTemplate:()=>r});var s=n("./src/sessionWidget/templates/icons.ts");const r=`\n<div class="mp-recording-status">\n <div class="mp-recording-indicator">\n ${s.RecordIndicatorIcon}\n </div>\n <span class="timer">00:00</span>\n</div>\n<div class="mp-recording-controls">\n <button class="mp-recording-btn mp-stop-btn" title="Stop recording">${s.StopIcon}</button>\n</div>\n<div class="mp-drag-handle" style="cursor: move;">\n ${s.DragHandleIcon}\n</div>\n`},"./src/sessionWidget/templates/submitSessionDialog.ts":(e,t,n)=>{"use strict";n.d(t,{submitSessionDialogTemplate:()=>s});const s=e=>`\n<div class="mp-dialog-backdrop">\n <div class="mp-dialog-content">\n <h3>${e.submitDialogTitle}</h3>\n <div class="subtitle">${e.submitDialogSubtitle}</div>\n <div class="form-group">\n <label>${e.submitDialogCommentLabel}</label>\n <textarea id="mp-recording-comment" rows="3" placeholder="${e.submitDialogCommentPlaceholder}"></textarea>\n </div>\n <div class="mp-dialog-actions">\n <button id="mp-cancel-submission">${e.submitDialogCancelText}</button>\n <button id="mp-submit-recording">${e.submitDialogSubmitText}</button>\n </div>\n </div>\n</div>\n`},"./src/sessionWidget/templates/toast.ts":(e,t,n)=>{"use strict";n.d(t,{toastTemplate:()=>r});var s=n("./src/sessionWidget/templates/icons.ts");const r=e=>{const{type:t,message:n,button:r}=e,i=(e=>"success"===e?s.CheckSuccessIcon:s.ErrorIcon)(t);return`<div class="mp-toast-content">\n <div class="mp-toast-icon">${i}</div>\n <div class="mp-toast-message">${n}</div>\n ${o(r)}\n </div>\n `},o=e=>e?e.url?`<a href="${e.url}" target="_blank" rel="noopener noreferrer" class="mp-toast-button">${e.text}</a>`:e.onClick?`<button class="mp-toast-button">${e.text}</button>`:"":""},"./src/types/index.ts":(e,t,n)=>{"use strict";n.d(t,{SessionState:()=>s.SessionState,WidgetButtonPlacement:()=>s.WidgetButtonPlacement});n("./src/types/widget.ts"),n("./src/types/session.ts");var s=n("./src/types/sessionRecorder.ts")},"./src/types/session.ts":(e,t,n)=>{"use strict";var s;!function(e){e.OTLP_TRACES="OTLP_TRACES",e.OTLP_LOGS="OTLP_LOGS",e.RRWEB_EVENTS="RRWEB_EVENTS"}(s||(s={}))},"./src/types/sessionRecorder.ts":(e,t,n)=>{"use strict";var s,r;n.d(t,{SessionState:()=>r,WidgetButtonPlacement:()=>s}),function(e){e.topLeft="top-left",e.topRight="top-right",e.bottomLeft="bottom-left",e.bottomRight="bottom-right"}(s||(s={})),function(e){e.started="2",e.paused="1",e.stopped="0"}(r||(r={}))},"./src/types/widget.ts":()=>{},"./src/utils/array.ts":(e,t,n)=>{"use strict";n.d(t,{each:()=>i,isValidRegex:()=>a});var s=n("./src/utils/type-utils.ts"),r=n("./src/utils/globals.ts");const o={};function i(e,t,n){if(!(0,s.isNullish)(e)){if((0,s.isArray)(e))return function(e,t,n){if((0,s.isArray)(e))if(r.nativeForEach&&e.forEach===r.nativeForEach)e.forEach(t,n);else if("length"in e&&e.length===+e.length)for(let s=0,r=e.length;s<r;s++)if(s in e&&t.call(n,e[s],s)===o)return}(e,t,n);if((0,s.isFormData)(e)){for(const s of e.entries())if(t.call(n,s[1],s[0])===o)return}else for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&t.call(n,e[s],s)===o)return}}const a=function(e){try{new RegExp(e)}catch(e){return!1}return!0}},"./src/utils/dom.ts":(e,t,n)=>{"use strict";n.d(t,{insertTrustedHTML:()=>r});var s=n("../../node_modules/dompurify/dist/purify.es.mjs");function r(e,t){const n=s.default.sanitize(t,{RETURN_DOM:!0});e.replaceChildren(...Array.from(n.childNodes))}},"./src/utils/globals.ts":(e,t,n)=>{"use strict";n.d(t,{nativeForEach:()=>i});const s="undefined"!=typeof window?window:void 0,r="undefined"!=typeof globalThis?globalThis:s,o=Array.prototype,i=o.forEach,a=(o.indexOf,null==r?void 0:r.navigator);null==r||r.document,null==r||r.location,null==r||r.fetch,(null==r?void 0:r.XMLHttpRequest)&&"withCredentials"in new r.XMLHttpRequest&&r.XMLHttpRequest,null==r||r.AbortController,null==a||a.userAgent},"./src/utils/index.ts":(e,t,n)=>{"use strict";n.d(t,{each:()=>l.each,formatTimeForSessionTimer:()=>o.formatTimeForSessionTimer,getFormattedDate:()=>o.getFormattedDate,getNavigatorInfo:()=>s.getNavigatorInfo,getStoredItem:()=>r.getStoredItem,getTimeDifferenceInSeconds:()=>o.getTimeDifferenceInSeconds,insertTrustedHTML:()=>a.insertTrustedHTML,isConsoleEvent:()=>i.isConsoleEvent,isSessionActive:()=>i.isSessionActive,isValidRegex:()=>l.isValidRegex,setStoredItem:()=>r.setStoredItem});var s=n("./src/utils/navigator.ts"),r=n("./src/utils/storage.ts"),o=n("./src/utils/time.ts"),i=n("./src/utils/session.ts"),a=n("./src/utils/dom.ts"),l=n("./src/utils/array.ts");n("./src/utils/type-utils.ts"),n("./src/utils/globals.ts")},"./src/utils/navigator.ts":(e,t,n)=>{"use strict";n.d(t,{getNavigatorInfo:()=>r});var s=n("./src/config/constants.ts");const r=()=>{var e,t,n,r,o,i,a,l,c,u;let d="Unknown",p="Unknown",m="Unknown";if(navigator.userAgent){const s=navigator.userAgent;p=/Mobi|Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(s)?"Mobile":/Tablet|iPad/i.test(s)?"Tablet":"Desktop",d=s.includes("Firefox")?`Mozilla Firefox ${(null===(e=s.match(/Firefox\/(\d+\.\d+)/))||void 0===e?void 0:e[1])||""}`:s.includes("Chrome")&&!s.includes("Edg")?`Google Chrome ${(null===(t=s.match(/Chrome\/(\d+\.\d+)/))||void 0===t?void 0:t[1])||""}`:s.includes("Edg")?`Microsoft Edge ${(null===(n=s.match(/Edg\/(\d+\.\d+)/))||void 0===n?void 0:n[1])||""}`:s.includes("Safari")&&!s.includes("Chrome")?`Safari ${(null===(r=s.match(/Version\/(\d+\.\d+)/))||void 0===r?void 0:r[1])||""}`:s.includes("Opera")||s.includes("OPR")?`Opera ${(null===(o=s.match(/(Opera|OPR)\/(\d+\.\d+)/))||void 0===o?void 0:o[2])||""}`:s.includes("Trident")?`Internet Explorer ${(null===(i=s.match(/rv:(\d+\.\d+)/))||void 0===i?void 0:i[1])||""}`:"Unknown browser",m=s.includes("Win")?`Windows ${(null===(a=s.match(/Windows NT (\d+\.\d+)/))||void 0===a?void 0:a[1])||""}`:s.includes("Mac")?`MacOS ${(null===(l=s.match(/Mac OS X (\d+_\d+)/))||void 0===l?void 0:l[1].replace("_","."))||""}`:s.includes("Linux")?"Linux":s.includes("Android")?`Android ${(null===(c=s.match(/Android (\d+\.\d+)/))||void 0===c?void 0:c[1])||""}`:s.includes("iPhone")||s.includes("iPad")?`iOS ${(null===(u=s.match(/OS (\d+_\d+)/))||void 0===u?void 0:u[1].replace("_","."))||""}`:"Unknown OS"}const h=navigator.hardwareConcurrency||1,A=navigator.cookieEnabled?"Yes":"No",g=window.devicePixelRatio||1;return{osInfo:m,screenSize:`${window.screen.width}x${window.screen.height}`,pixelRatio:g,deviceInfo:p,browserInfo:d,cookiesEnabled:A,hardwareConcurrency:h,packageVersion:s.PACKAGE_VERSION_EXPORT}}},"./src/utils/request-utils.ts":(e,t,n)=>{"use strict";n.d(t,{formDataToQuery:()=>o});var s=n("./src/utils/index.ts"),r=n("./src/utils/type-utils.ts");const o=function(e,t="&"){let n,o;const i=[];return(0,s.each)(e,function(e,t){(0,r.isUndefined)(e)||(0,r.isUndefined)(t)||"undefined"===t||(n=encodeURIComponent((0,r.isFile)(e)?e.name:e.toString()),o=encodeURIComponent(t),i[i.length]=o+"="+n)}),i.join(t)}},"./src/utils/session.ts":(e,t,n)=>{"use strict";n.d(t,{isConsoleEvent:()=>i,isSessionActive:()=>o});var s=n("../../node_modules/rrweb/dist/rrweb.js"),r=n("./src/config/constants.ts");const o=(e,t)=>{if(!e)return!1;if(t)return!0;const n=new Date(e.startedAt);return(new Date).getTime()-n.getTime()<1e3*r.DEBUG_SESSION_MAX_DURATION_SECONDS},i=e=>{var t;return e.type===s.EventType.Plugin&&"rrweb/console@1"===(null===(t=e.data)||void 0===t?void 0:t.plugin)}},"./src/utils/storage.ts":(e,t,n)=>{"use strict";n.d(t,{getStoredItem:()=>s,setStoredItem:()=>r});const s=(e,t)=>{const n=null===localStorage||void 0===localStorage?void 0:localStorage.getItem(e);return t?n?JSON.parse(n):null:n},r=(e,t)=>{null==t?null===localStorage||void 0===localStorage||localStorage.removeItem(e):null===localStorage||void 0===localStorage||localStorage.setItem(e,"string"==typeof t?t:JSON.stringify(t))}},"./src/utils/time.ts":(e,t,n)=>{"use strict";n.d(t,{formatTimeForSessionTimer:()=>r,getFormattedDate:()=>s,getTimeDifferenceInSeconds:()=>o});const s=(e,t)=>new Date(e).toLocaleDateString("en-US",t||{month:"short",year:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"}),r=e=>{const t=e%60;return`${Math.floor(e/60).toString().padStart(2,"0")}:${t.toString().padStart(2,"0")}`},o=e=>e?Math.floor((Date.now()-new Date(e).getTime())/1e3):0},"./src/utils/type-utils.ts":(e,t,n)=>{"use strict";n.d(t,{isArray:()=>i,isDocument:()=>d,isFile:()=>m,isFormData:()=>p,isNullish:()=>u,isObject:()=>a,isString:()=>c,isUndefined:()=>l});const s=Array.isArray,r=Object.prototype,o=(r.hasOwnProperty,r.toString),i=s||function(e){return"[object Array]"===o.call(e)},a=function(e){return e===Object(e)&&!i(e)},l=function(e){return void 0===e},c=function(e){return"[object String]"==o.call(e)},u=function(e){return l(e)||function(e){return null===e}(e)},d=e=>e instanceof Document,p=e=>e instanceof FormData,m=e=>e instanceof File},"../session-recorder-common/dist/esm/SessionRecorderIdGenerator.js":(e,t,n)=>{"use strict";n.d(t,{SessionRecorderIdGenerator:()=>i});var s=n("../session-recorder-common/dist/esm/type/index.js"),r=n("../session-recorder-common/dist/esm/constants/constants.base.js"),o=n("../session-recorder-common/dist/esm/sdk/index.js"),i=function(){function e(){this.generateLongId=(0,o.getIdGenerator)(16),this.generateShortId=(0,o.getIdGenerator)(8),this.sessionShortId="",this.sessionType=s.SessionType.PLAIN}return e.prototype.generateTraceId=function(){var e=this.generateLongId();if(this.sessionShortId){var t="";if(this.sessionType===s.SessionType.CONTINUOUS)t=r.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX;else t=r.MULTIPLAYER_TRACE_DEBUG_PREFIX;var n="".concat(t).concat(this.sessionShortId);return"".concat(n).concat(e.substring(n.length,e.length))}return e},e.prototype.generateSpanId=function(){return this.generateShortId()},e.prototype.setSessionId=function(e,t){void 0===t&&(t=s.SessionType.PLAIN),this.sessionShortId=e,this.sessionType=t},e}()},"../session-recorder-common/dist/esm/SessionRecorderTraceIdRatioBasedSampler.js":(e,t,n)=>{"use strict";n.d(t,{SessionRecorderTraceIdRatioBasedSampler:()=>i});var s=n("../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"),r=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Sampler.js"),o=n("../session-recorder-common/dist/esm/constants/constants.base.js"),i=function(){function e(e){void 0===e&&(e=0),this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(4294967295*this._ratio)}return e.prototype.shouldSample=function(e,t){if(t.startsWith(o.MULTIPLAYER_TRACE_DEBUG_PREFIX)||t.startsWith(o.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX))return{decision:r.SamplingDecision.RECORD_AND_SAMPLED};var n=r.SamplingDecision.NOT_RECORD;return(0,s.isValidTraceId)(t)&&this._accumulate(t)<this._upperBound&&(n=r.SamplingDecision.RECORD_AND_SAMPLED),{decision:n}},e.prototype.toString=function(){return"SessionRecorderTraceIdRatioBasedSampler{".concat(this._ratio,"}")},e.prototype._normalize=function(e){return"number"!=typeof e||isNaN(e)?0:e>=1?1:e<=0?0:e},e.prototype._accumulate=function(e){for(var t=0,n=0;n<e.length/8;n++){var s=8*n;t=(t^parseInt(e.slice(s,s+8),16))>>>0}return t},e}()},"../session-recorder-common/dist/esm/constants/constants.base.js":(e,t,n)=>{"use strict";n.d(t,{ATTR_MULTIPLAYER_CLIENT_ID:()=>y,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE:()=>_,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON:()=>E,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE:()=>M,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING:()=>k,ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE:()=>D,ATTR_MULTIPLAYER_HTTP_PROXY:()=>v,ATTR_MULTIPLAYER_HTTP_PROXY_TYPE:()=>C,ATTR_MULTIPLAYER_HTTP_REQUEST_BODY:()=>R,ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS:()=>w,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY:()=>I,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING:()=>O,ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS:()=>L,ATTR_MULTIPLAYER_INTEGRATION_ID:()=>T,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY:()=>B,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING:()=>j,ATTR_MULTIPLAYER_PLATFORM_ID:()=>f,ATTR_MULTIPLAYER_PLATFORM_NAME:()=>b,ATTR_MULTIPLAYER_PROJECT_ID:()=>g,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE:()=>P,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING:()=>N,ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE:()=>x,ATTR_MULTIPLAYER_SESSION_ID:()=>S,ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION:()=>U,ATTR_MULTIPLAYER_WORKSPACE_ID:()=>A,MASK_PLACEHOLDER:()=>G,MULTIPLAYER_ATTRIBUTE_PREFIX:()=>h,MULTIPLAYER_BASE_API_URL:()=>m,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_GRPC_URL:()=>p,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_HTTP_URL:()=>u,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL:()=>l,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_GRPC_URL:()=>d,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL:()=>c,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL:()=>a,MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX:()=>o,MULTIPLAYER_TRACE_DEBUG_PREFIX:()=>r,MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH:()=>i,MULTIPLAYER_TRACE_DOC_PREFIX:()=>s});var s="d0cd0c",r="debdeb",o="cdbcdb",i=16,a="https://api.multiplayer.app/v1/traces",l="https://api.multiplayer.app/v1/logs",c="https://otlp.multiplayer.app/v1/traces",u="https://otlp.multiplayer.app/v1/logs",d="https://otlp.multiplayer.app:4317/v1/traces",p="https://otlp.multiplayer.app:4317/v1/logs",m="https://api.multiplayer.app",h="multiplayer.",A="multiplayer.workspace.id",g="multiplayer.project.id",f="multiplayer.platform.id",_="multiplayer.session.auto-save",E="multiplayer.session.auto-save.reason",b="multiplayer.platform.name",y="multiplayer.client.id",T="multiplayer.integration.id",S="multiplayer.session.id",v="multiplayer.http.proxy",C="multiplayer.http.proxy.type",R="multiplayer.http.request.body",I="multiplayer.http.response.body",w="multiplayer.http.request.headers",L="multiplayer.http.response.headers",O="multiplayer.http.response.body.encoding",P="multiplayer.rpc.request.message",N="multiplayer.rpc.request.message.encoding",x="multiplayer.rpc.response.message",M="multiplayer.rpc.grpc.request.message",k="multiplayer.rpc.request.message.encoding",D="multiplayer.rpc.grpc.response.message",B="multiplayer.messaging.message.body",j="multiplayer.messaging.message.body.encoding",U="multiplayer.session-recorder.version",G="***MASKED***"},"../session-recorder-common/dist/esm/constants/constants.browser.js":(e,t,n)=>{"use strict";n.d(t,{ATTR_MULTIPLAYER_CLIENT_ID:()=>s.ATTR_MULTIPLAYER_CLIENT_ID,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE:()=>s.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON:()=>s.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE:()=>s.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING:()=>s.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING,ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE:()=>s.ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE,ATTR_MULTIPLAYER_HTTP_PROXY:()=>s.ATTR_MULTIPLAYER_HTTP_PROXY,ATTR_MULTIPLAYER_HTTP_PROXY_TYPE:()=>s.ATTR_MULTIPLAYER_HTTP_PROXY_TYPE,ATTR_MULTIPLAYER_HTTP_REQUEST_BODY:()=>s.ATTR_MULTIPLAYER_HTTP_REQUEST_BODY,ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS:()=>s.ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY:()=>s.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING:()=>s.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING,ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS:()=>s.ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS,ATTR_MULTIPLAYER_INTEGRATION_ID:()=>s.ATTR_MULTIPLAYER_INTEGRATION_ID,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY:()=>s.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING:()=>s.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING,ATTR_MULTIPLAYER_PLATFORM_ID:()=>s.ATTR_MULTIPLAYER_PLATFORM_ID,ATTR_MULTIPLAYER_PLATFORM_NAME:()=>s.ATTR_MULTIPLAYER_PLATFORM_NAME,ATTR_MULTIPLAYER_PROJECT_ID:()=>s.ATTR_MULTIPLAYER_PROJECT_ID,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE:()=>s.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING:()=>s.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING,ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE:()=>s.ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE,ATTR_MULTIPLAYER_SESSION_ID:()=>s.ATTR_MULTIPLAYER_SESSION_ID,ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION:()=>s.ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION,ATTR_MULTIPLAYER_WORKSPACE_ID:()=>s.ATTR_MULTIPLAYER_WORKSPACE_ID,MASK_PLACEHOLDER:()=>s.MASK_PLACEHOLDER,MULTIPLAYER_ATTRIBUTE_PREFIX:()=>s.MULTIPLAYER_ATTRIBUTE_PREFIX,MULTIPLAYER_BASE_API_URL:()=>s.MULTIPLAYER_BASE_API_URL,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_GRPC_URL:()=>s.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_GRPC_URL,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_HTTP_URL:()=>s.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_HTTP_URL,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL:()=>s.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_GRPC_URL:()=>s.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_GRPC_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL:()=>s.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL:()=>s.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL,MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX:()=>s.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX,MULTIPLAYER_TRACE_DEBUG_PREFIX:()=>s.MULTIPLAYER_TRACE_DEBUG_PREFIX,MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH:()=>s.MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH,MULTIPLAYER_TRACE_DOC_PREFIX:()=>s.MULTIPLAYER_TRACE_DOC_PREFIX});var s=n("../session-recorder-common/dist/esm/constants/constants.base.js")},"../session-recorder-common/dist/esm/exporters/SessionRecorderBrowserTraceExporter.js":(e,t,n)=>{"use strict";n.d(t,{SessionRecorderBrowserTraceExporter:()=>i});var s=n("../../node_modules/@opentelemetry/exporter-trace-otlp-http/build/esm/platform/browser/OTLPTraceExporter.js"),r=n("../session-recorder-common/dist/esm/constants/constants.base.js"),o=function(){return o=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},i=function(){function e(e){this.usePostMessage=!1;var t=e.url,n=void 0===t?r.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL:t,s=e.apiKey,i=e.headers,a=void 0===i?{}:i,l=e.timeoutMillis,c=void 0===l?3e4:l,u=e.keepAlive,d=void 0===u||u,p=e.concurrencyLimit,m=void 0===p?20:p,h=e.postMessageType,A=void 0===h?"MULTIPLAYER_SESSION_DEBUGGER_LIB":h,g=e.postMessageTargetOrigin,f=void 0===g?"*":g;this.config=o(o({},e),{url:n,apiKey:s,headers:a,timeoutMillis:c,keepAlive:d,concurrencyLimit:m}),this.postMessageType=A,this.postMessageTargetOrigin=f,this.exporter=this._createExporter()}return e.prototype.export=function(e,t){var n=this,s=e.filter(function(e){var t=e.spanContext().traceId;return t.startsWith(r.MULTIPLAYER_TRACE_DEBUG_PREFIX)||t.startsWith(r.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX)});0!==s.length?this.usePostMessage?this.exportViaPostMessage(s,t):this.exporter.export(s,function(e){0===e.code?t(e):n.config.usePostMessageFallback?(n.usePostMessage=!0,n.exportViaPostMessage(s,t)):t(e)}):t({code:0})},e.prototype.shutdown=function(){return this.exporter.shutdown()},e.prototype.exportViaPostMessage=function(e,t){var n=this;if("undefined"!=typeof window)try{window.postMessage({action:"traces",type:this.postMessageType,payload:e.map(function(e){return n._serializeSpan(e)})},this.postMessageTargetOrigin),t({code:0})}catch(e){t({code:1})}else t({code:1})},e.prototype._serializeSpan=function(e){var t;return{_spanContext:e.spanContext(),name:e.name,kind:e.kind,links:e.links,ended:e.ended,events:e.events,status:e.status,endTime:e.endTime,startTime:e.startTime,duration:e.duration,attributes:e.attributes,parentSpanId:null===(t=e.parentSpanContext)||void 0===t?void 0:t.spanId,droppedAttributesCount:e.droppedAttributesCount,droppedEventsCount:e.droppedEventsCount,droppedLinksCount:e.droppedLinksCount,resource:{attributes:e.resource.attributes,asyncAttributesPending:e.resource.asyncAttributesPending}}},e.prototype._createExporter=function(){return new s.OTLPTraceExporter({url:this.config.url,headers:o({"Content-Type":"application/json","User-Agent":"@multiplayer-app/session-recorder-common/1.0.0",Authorization:this.config.apiKey},this.config.headers||{}),timeoutMillis:this.config.timeoutMillis,keepAlive:this.config.keepAlive,concurrencyLimit:this.config.concurrencyLimit})},e.prototype.setApiKey=function(e){this.config.apiKey=e,this.exporter=this._createExporter()},e}()},"../session-recorder-common/dist/esm/exporters/index-browser.js":(e,t,n)=>{"use strict";n.d(t,{SessionRecorderBrowserTraceExporter:()=>s.SessionRecorderBrowserTraceExporter});var s=n("../session-recorder-common/dist/esm/exporters/SessionRecorderBrowserTraceExporter.js")},"../session-recorder-common/dist/esm/index-browser.js":(e,t,n)=>{"use strict";n.d(t,{ATTR_MULTIPLAYER_CLIENT_ID:()=>s.ATTR_MULTIPLAYER_CLIENT_ID,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE:()=>s.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON:()=>s.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE:()=>s.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING:()=>s.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING,ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE:()=>s.ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE,ATTR_MULTIPLAYER_HTTP_PROXY:()=>s.ATTR_MULTIPLAYER_HTTP_PROXY,ATTR_MULTIPLAYER_HTTP_PROXY_TYPE:()=>s.ATTR_MULTIPLAYER_HTTP_PROXY_TYPE,ATTR_MULTIPLAYER_HTTP_REQUEST_BODY:()=>s.ATTR_MULTIPLAYER_HTTP_REQUEST_BODY,ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS:()=>s.ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY:()=>s.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING:()=>s.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING,ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS:()=>s.ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS,ATTR_MULTIPLAYER_INTEGRATION_ID:()=>s.ATTR_MULTIPLAYER_INTEGRATION_ID,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY:()=>s.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING:()=>s.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING,ATTR_MULTIPLAYER_PLATFORM_ID:()=>s.ATTR_MULTIPLAYER_PLATFORM_ID,ATTR_MULTIPLAYER_PLATFORM_NAME:()=>s.ATTR_MULTIPLAYER_PLATFORM_NAME,ATTR_MULTIPLAYER_PROJECT_ID:()=>s.ATTR_MULTIPLAYER_PROJECT_ID,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE:()=>s.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING:()=>s.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING,ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE:()=>s.ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE,ATTR_MULTIPLAYER_SESSION_ID:()=>s.ATTR_MULTIPLAYER_SESSION_ID,ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION:()=>s.ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION,ATTR_MULTIPLAYER_WORKSPACE_ID:()=>s.ATTR_MULTIPLAYER_WORKSPACE_ID,MASK_PLACEHOLDER:()=>s.MASK_PLACEHOLDER,MULTIPLAYER_ATTRIBUTE_PREFIX:()=>s.MULTIPLAYER_ATTRIBUTE_PREFIX,MULTIPLAYER_BASE_API_URL:()=>s.MULTIPLAYER_BASE_API_URL,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_GRPC_URL:()=>s.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_GRPC_URL,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_HTTP_URL:()=>s.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_HTTP_URL,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL:()=>s.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_GRPC_URL:()=>s.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_GRPC_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL:()=>s.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL:()=>s.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL,MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX:()=>s.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX,MULTIPLAYER_TRACE_DEBUG_PREFIX:()=>s.MULTIPLAYER_TRACE_DEBUG_PREFIX,MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH:()=>s.MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH,MULTIPLAYER_TRACE_DOC_PREFIX:()=>s.MULTIPLAYER_TRACE_DOC_PREFIX,SessionRecorderBrowserTraceExporter:()=>l.SessionRecorderBrowserTraceExporter,SessionRecorderIdGenerator:()=>r.SessionRecorderIdGenerator,SessionRecorderSdk:()=>i,SessionRecorderTraceIdRatioBasedSampler:()=>o.SessionRecorderTraceIdRatioBasedSampler,SessionType:()=>a.SessionType});var s=n("../session-recorder-common/dist/esm/constants/constants.browser.js"),r=n("../session-recorder-common/dist/esm/SessionRecorderIdGenerator.js"),o=n("../session-recorder-common/dist/esm/SessionRecorderTraceIdRatioBasedSampler.js"),i=n("../session-recorder-common/dist/esm/sdk/index.js"),a=n("../session-recorder-common/dist/esm/type/index.js"),l=n("../session-recorder-common/dist/esm/exporters/index-browser.js")},"../session-recorder-common/dist/esm/sdk/capture-exception.js":(e,t,n)=>{"use strict";n.d(t,{captureException:()=>i});var s=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace/status.js"),i=function(e){if(e){var t=s.trace.getSpan(r.context.active());t&&(t.recordException(e),t.setStatus({code:o.SpanStatusCode.ERROR,message:e.message}))}}},"../session-recorder-common/dist/esm/sdk/id-generator.js":(e,t,n)=>{"use strict";n.d(t,{getIdGenerator:()=>r});var s=Array(32),r=function(e){return function(){for(var t=0;t<2*e;t++)s[t]=Math.floor(16*Math.random())+48,s[t]>=58&&(s[t]+=39);return String.fromCharCode.apply(null,s.slice(0,2*e))}}},"../session-recorder-common/dist/esm/sdk/index.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{captureException:()=>a.captureException,getIdGenerator:()=>i.getIdGenerator,isGzip:()=>o.isGzip,mask:()=>s.default,saveContinuousSession:()=>c.saveContinuousSession,schemify:()=>r.default,sensitiveFields:()=>s.sensitiveFields,sensitiveHeaders:()=>s.sensitiveHeaders,setAttribute:()=>l.setAttribute,setGrpcRequestMessage:()=>l.setGrpcRequestMessage,setGrpcResponseMessage:()=>l.setGrpcResponseMessage,setHttpRequestBody:()=>l.setHttpRequestBody,setHttpRequestHeaders:()=>l.setHttpRequestHeaders,setHttpResponseBody:()=>l.setHttpResponseBody,setHttpResponseHeaders:()=>l.setHttpResponseHeaders,setMessageBody:()=>l.setMessageBody,setRpcRequestMessage:()=>l.setRpcRequestMessage,setRpcResponseMessage:()=>l.setRpcResponseMessage});var s=n("../session-recorder-common/dist/esm/sdk/mask.js"),r=n("../session-recorder-common/dist/esm/sdk/schemify.js"),o=n("../session-recorder-common/dist/esm/sdk/is-gzip.js"),i=n("../session-recorder-common/dist/esm/sdk/id-generator.js"),a=n("../session-recorder-common/dist/esm/sdk/capture-exception.js"),l=n("../session-recorder-common/dist/esm/sdk/set-attribute.js"),c=n("../session-recorder-common/dist/esm/sdk/save-continuous-deb-session.js")},"../session-recorder-common/dist/esm/sdk/is-gzip.js":(e,t,n)=>{"use strict";n.d(t,{isGzip:()=>s});var s=function(e){return!(!e||e.length<3)&&(31===e[0]&&139===e[1]&&8===e[2])}},"../session-recorder-common/dist/esm/sdk/mask.js":(e,t,n)=>{"use strict";n.d(t,{default:()=>l,sensitiveFields:()=>r,sensitiveHeaders:()=>o});var s=n("../session-recorder-common/dist/esm/constants/constants.base.js"),r=["password","pass","passwd","pwd","token","access_token","accessToken","refresh_token","refreshToken","secret","api_key","apiKey","authorization","auth_token","authToken","jwt","session_id","sessionId","sessionToken","client_secret","clientSecret","private_key","privateKey","public_key","publicKey","key","encryption_key","encryptionKey","credit_card","creditCard","card_number","cardNumber","cvv","cvc","ssn","sin","pin","security_code","securityCode","bank_account","bankAccount","iban","swift","bic","routing_number","routingNumber","license_key","licenseKey","otp","mfa_code","mfaCode","phone_number","phoneNumber","email","address","dob","tax_id","taxId","passport_number","passportNumber","driver_license","driverLicense","set-cookie","cookie","authorization","proxyAuthorization"],o=["set-cookie","cookie","authorization","proxyAuthorization"],i=function(e,t){void 0===t&&(t=0);var n=typeof e,r="object"===n,o=!1;if(Array.isArray(e)&&(o=!0),!(t>8&&(r||o))){if(o)return e.map(function(e){return i(e,t+1)},e);if(r){for(var a in e)e[a]=i(e[a],t+1);return e}return"string"===n?s.MASK_PLACEHOLDER:e}},a=function(e,t){var n=typeof e,r="object"===n,o=new Set(t);if(Array.isArray(e))return e.map(function(e){return a(e,t)},e);if(r){for(var i in e)o.has(i)?e[i]=s.MASK_PLACEHOLDER:e[i]=a(e[i],t);return e}return e};const l=function(e){return void 0===e&&(e=[]),function(t,n){var s,r;try{s=JSON.parse(t)}catch(e){s=t}return"string"!=typeof(r=e.length?a(s,e):i(s))&&(r=JSON.stringify(r)),r}}},"../session-recorder-common/dist/esm/sdk/save-continuous-deb-session.js":(e,t,n)=>{"use strict";n.d(t,{saveContinuousSession:()=>i});var s=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),o=n("../session-recorder-common/dist/esm/constants/constants.base.js"),i=function(e){var t=s.trace.getSpan(r.context.active());t&&(null==t||t.setAttribute(o.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE,!0),(null==e?void 0:e.length)&&(null==t||t.addEvent(o.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON,{reason:e})))}},"../session-recorder-common/dist/esm/sdk/schemify.js":(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var s=n("../../node_modules/to-json-schema/lib/index.js"),r=(null==s?void 0:n.n(s)())||s,o={strings:{preProcessFnc:function(e,t){return(null==e?void 0:e.length)>=30?t("some_string"):t(e)}},arrays:{mode:"first"}};const i=function(e,t,n){if(void 0===t&&(t=!0),void 0===n&&(n=o),!e)return"";var s;if("string"==typeof e)try{s=JSON.parse(e)}catch(t){return e}else{if("object"!=typeof e)return e;s=e}try{var i=r(s,n);return t?JSON.stringify(i):i}catch(e){return""}}},"../session-recorder-common/dist/esm/sdk/set-attribute.js":(e,t,n)=>{"use strict";n.d(t,{setAttribute:()=>a,setGrpcRequestMessage:()=>A,setGrpcResponseMessage:()=>g,setHttpRequestBody:()=>l,setHttpRequestHeaders:()=>c,setHttpResponseBody:()=>u,setHttpResponseHeaders:()=>d,setMessageBody:()=>p,setRpcRequestMessage:()=>m,setRpcResponseMessage:()=>h});var s=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),o=n("../session-recorder-common/dist/esm/constants/constants.base.js"),i=n("../session-recorder-common/dist/esm/sdk/mask.js"),a=function(e,t){var n=s.trace.getSpan(r.context.active());n&&n.setAttribute(e,t)},l=function(e,t){void 0===t&&(t={mask:!0});var n=s.trace.getSpan(r.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(o.ATTR_MULTIPLAYER_HTTP_REQUEST_BODY,e))},c=function(e,t){void 0===t&&(t={mask:!0});var n=s.trace.getSpan(r.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveHeaders)(e,n)),n.setAttribute(o.ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS,e))},u=function(e,t){void 0===t&&(t={mask:!0});var n=s.trace.getSpan(r.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(o.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY,e))},d=function(e,t){void 0===t&&(t={mask:!0});var n=s.trace.getSpan(r.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(o.ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS,e))},p=function(e,t){void 0===t&&(t={mask:!0});var n=s.trace.getSpan(r.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(o.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY,e))},m=function(e,t){void 0===t&&(t={mask:!0});var n=s.trace.getSpan(r.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(o.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE,e))},h=function(e,t){void 0===t&&(t={mask:!0});var n=s.trace.getSpan(r.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(o.ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE,e))},A=function(e,t){void 0===t&&(t={mask:!0});var n=s.trace.getSpan(r.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(o.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE,e))},g=function(e,t){void 0===t&&(t={mask:!0});var n=s.trace.getSpan(r.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(o.ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE,e))}},"../session-recorder-common/dist/esm/type/index.js":(e,t,n)=>{"use strict";n.d(t,{SessionType:()=>s.SessionType});var s=n("../session-recorder-common/dist/esm/type/session-type.enum.js")},"../session-recorder-common/dist/esm/type/session-type.enum.js":(e,t,n)=>{"use strict";var s;n.d(t,{SessionType:()=>s}),function(e){e.CONTINUOUS="CONTINUOUS",e.PLAIN="MANUAL"}(s||(s={}))},"data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzMwMHB4JyB3aWR0aD0nMzAwcHgnICBmaWxsPSIjMDAwMDAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGRhdGEtbmFtZT0iTGF5ZXIgMSIgdmlld0JveD0iMCAwIDUwIDUwIiB4PSIwcHgiIHk9IjBweCI+PHRpdGxlPkRlc2lnbl90bnA8L3RpdGxlPjxwYXRoIGQ9Ik00OC43MSw0Mi45MUwzNC4wOCwyOC4yOSw0NC4zMywxOEExLDEsMCwwLDAsNDQsMTYuMzlMMi4zNSwxLjA2QTEsMSwwLDAsMCwxLjA2LDIuMzVMMTYuMzksNDRhMSwxLDAsMCwwLDEuNjUuMzZMMjguMjksMzQuMDgsNDIuOTEsNDguNzFhMSwxLDAsMCwwLDEuNDEsMGw0LjM4LTQuMzhBMSwxLDAsMCwwLDQ4LjcxLDQyLjkxWm0tNS4wOSwzLjY3TDI5LDMyYTEsMSwwLDAsMC0xLjQxLDBsLTkuODUsOS44NUwzLjY5LDMuNjlsMzguMTIsMTRMMzIsMjcuNThBMSwxLDAsMCwwLDMyLDI5TDQ2LjU5LDQzLjYyWiI+PC9wYXRoPjwvc3ZnPg==":e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzMwMHB4JyB3aWR0aD0nMzAwcHgnICBmaWxsPSIjMDAwMDAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGRhdGEtbmFtZT0iTGF5ZXIgMSIgdmlld0JveD0iMCAwIDUwIDUwIiB4PSIwcHgiIHk9IjBweCI+PHRpdGxlPkRlc2lnbl90bnA8L3RpdGxlPjxwYXRoIGQ9Ik00OC43MSw0Mi45MUwzNC4wOCwyOC4yOSw0NC4zMywxOEExLDEsMCwwLDAsNDQsMTYuMzlMMi4zNSwxLjA2QTEsMSwwLDAsMCwxLjA2LDIuMzVMMTYuMzksNDRhMSwxLDAsMCwwLDEuNjUuMzZMMjguMjksMzQuMDgsNDIuOTEsNDguNzFhMSwxLDAsMCwwLDEuNDEsMGw0LjM4LTQuMzhBMSwxLDAsMCwwLDQ4LjcxLDQyLjkxWm0tNS4wOSwzLjY3TDI5LDMyYTEsMSwwLDAsMC0xLjQxLDBsLTkuODUsOS44NUwzLjY5LDMuNjlsMzguMTIsMTRMMzIsMjcuNThBMSwxLDAsMCwwLDMyLDI5TDQ2LjU5LDQzLjYyWiI+PC9wYXRoPjwvc3ZnPg=="},"../../node_modules/@rrweb/packer/dist/base-ZCOD62p-.js":(e,t,n)=>{"use strict";n.d(t,{M:()=>Q,a:()=>q,s:()=>K,u:()=>Z,z:()=>X});var s=Uint8Array,r=Uint16Array,o=Uint32Array,i=new s([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),a=new s([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),l=new s([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c=function(e,t){for(var n=new r(31),s=0;s<31;++s)n[s]=t+=1<<e[s-1];var i=new o(n[30]);for(s=1;s<30;++s)for(var a=n[s];a<n[s+1];++a)i[a]=a-n[s]<<5|s;return[n,i]},u=c(i,2),d=u[0],p=u[1];d[28]=258,p[258]=28;for(var m=c(a,0),h=m[0],A=m[1],g=new r(32768),f=0;f<32768;++f){var _=(43690&f)>>>1|(21845&f)<<1;_=(61680&(_=(52428&_)>>>2|(13107&_)<<2))>>>4|(3855&_)<<4,g[f]=((65280&_)>>>8|(255&_)<<8)>>>1}var E=function(e,t,n){for(var s=e.length,o=0,i=new r(t);o<s;++o)++i[e[o]-1];var a,l=new r(t);for(o=0;o<t;++o)l[o]=l[o-1]+i[o-1]<<1;if(n){a=new r(1<<t);var c=15-t;for(o=0;o<s;++o)if(e[o])for(var u=o<<4|e[o],d=t-e[o],p=l[e[o]-1]++<<d,m=p|(1<<d)-1;p<=m;++p)a[g[p]>>>c]=u}else for(a=new r(s),o=0;o<s;++o)a[o]=g[l[e[o]-1]++]>>>15-e[o];return a},b=new s(288);for(f=0;f<144;++f)b[f]=8;for(f=144;f<256;++f)b[f]=9;for(f=256;f<280;++f)b[f]=7;for(f=280;f<288;++f)b[f]=8;var y=new s(32);for(f=0;f<32;++f)y[f]=5;var T=E(b,9,0),S=E(b,9,1),v=E(y,5,0),C=E(y,5,1),R=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},I=function(e,t,n){var s=t/8|0;return(e[s]|e[s+1]<<8)>>>(7&t)&n},w=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>>(7&t)},L=function(e){return(e/8|0)+(7&e&&1)},O=function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var i=new(e instanceof r?r:e instanceof o?o:s)(n-t);return i.set(e.subarray(t,n)),i},P=function(e,t,n){var r=e.length,o=!t||n,c=!n||n.i;n||(n={}),t||(t=new s(3*r));var u=function(e){var n=t.length;if(e>n){var r=new s(Math.max(2*n,e));r.set(t),t=r}},p=n.f||0,m=n.p||0,A=n.b||0,g=n.l,f=n.d,_=n.m,b=n.n,y=8*r;do{if(!g){n.f=p=I(e,m,1);var T=I(e,m+1,3);if(m+=3,!T){var v=e[(F=L(m)+4)-4]|e[F-3]<<8,P=F+v;if(P>r){if(c)throw"unexpected EOF";break}o&&u(A+v),t.set(e.subarray(F,P),A),n.b=A+=v,n.p=m=8*P;continue}if(1==T)g=S,f=C,_=9,b=5;else{if(2!=T)throw"invalid block type";var N=I(e,m,31)+257,x=I(e,m+10,15)+4,M=N+I(e,m+5,31)+1;m+=14;for(var k=new s(M),D=new s(19),B=0;B<x;++B)D[l[B]]=I(e,m+3*B,7);m+=3*x;var j=R(D),U=(1<<j)-1;if(!c&&m+M*(j+7)>y)break;var G=E(D,j,1);for(B=0;B<M;){var F,H=G[I(e,m,U)];if(m+=15&H,(F=H>>>4)<16)k[B++]=F;else{var Y=0,z=0;for(16==F?(z=3+I(e,m,3),m+=2,Y=k[B-1]):17==F?(z=3+I(e,m,7),m+=3):18==F&&(z=11+I(e,m,127),m+=7);z--;)k[B++]=Y}}var W=k.subarray(0,N),V=k.subarray(N);_=R(W),b=R(V),g=E(W,_,1),f=E(V,b,1)}if(m>y)throw"unexpected EOF"}o&&u(A+131072);for(var X=(1<<_)-1,Z=(1<<b)-1,q=_+b+18;c||m+q<y;){var K=(Y=g[w(e,m)&X])>>>4;if((m+=15&Y)>y)throw"unexpected EOF";if(!Y)throw"invalid length/literal";if(K<256)t[A++]=K;else{if(256==K){g=null;break}var Q=K-254;if(K>264){var $=i[B=K-257];Q=I(e,m,(1<<$)-1)+d[B],m+=$}var J=f[w(e,m)&Z],ee=J>>>4;if(!J)throw"invalid distance";m+=15&J;V=h[ee];if(ee>3){$=a[ee];V+=w(e,m)&(1<<$)-1,m+=$}if(m>y)throw"unexpected EOF";o&&u(A+131072);for(var te=A+Q;A<te;A+=4)t[A]=t[A-V],t[A+1]=t[A+1-V],t[A+2]=t[A+2-V],t[A+3]=t[A+3-V];A=te}}n.l=g,n.p=m,n.b=A,g&&(p=1,n.m=_,n.d=f,n.n=b)}while(!p);return A==t.length?t:O(t,0,A)},N=function(e,t,n){n<<=7&t;var s=t/8|0;e[s]|=n,e[s+1]|=n>>>8},x=function(e,t,n){n<<=7&t;var s=t/8|0;e[s]|=n,e[s+1]|=n>>>8,e[s+2]|=n>>>16},M=function(e,t){for(var n=[],o=0;o<e.length;++o)e[o]&&n.push({s:o,f:e[o]});var i=n.length,a=n.slice();if(!i)return[new s(0),0];if(1==i){var l=new s(n[0].s+1);return l[n[0].s]=1,[l,1]}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var c=n[0],u=n[1],d=0,p=1,m=2;for(n[0]={s:-1,f:c.f+u.f,l:c,r:u};p!=i-1;)c=n[n[d].f<n[m].f?d++:m++],u=n[d!=p&&n[d].f<n[m].f?d++:m++],n[p++]={s:-1,f:c.f+u.f,l:c,r:u};var h=a[0].s;for(o=1;o<i;++o)a[o].s>h&&(h=a[o].s);var A=new r(h+1),g=k(n[p-1],A,0);if(g>t){o=0;var f=0,_=g-t,E=1<<_;for(a.sort(function(e,t){return A[t.s]-A[e.s]||e.f-t.f});o<i;++o){var b=a[o].s;if(!(A[b]>t))break;f+=E-(1<<g-A[b]),A[b]=t}for(f>>>=_;f>0;){var y=a[o].s;A[y]<t?f-=1<<t-A[y]++-1:++o}for(;o>=0&&f;--o){var T=a[o].s;A[T]==t&&(--A[T],++f)}g=t}return[new s(A),g]},k=function(e,t,n){return-1==e.s?Math.max(k(e.l,t,n+1),k(e.r,t,n+1)):t[e.s]=n},D=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new r(++t),s=0,o=e[0],i=1,a=function(e){n[s++]=e},l=1;l<=t;++l)if(e[l]==o&&l!=t)++i;else{if(!o&&i>2){for(;i>138;i-=138)a(32754);i>2&&(a(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(a(o),--i;i>6;i-=6)a(8304);i>2&&(a(i-3<<5|8208),i=0)}for(;i--;)a(o);i=1,o=e[l]}return[n.subarray(0,s),t]},B=function(e,t){for(var n=0,s=0;s<t.length;++s)n+=e[s]*t[s];return n},j=function(e,t,n){var s=n.length,r=L(t+2);e[r]=255&s,e[r+1]=s>>>8,e[r+2]=255^e[r],e[r+3]=255^e[r+1];for(var o=0;o<s;++o)e[r+o+4]=n[o];return 8*(r+4+s)},U=function(e,t,n,s,o,c,u,d,p,m,h){N(t,h++,n),++o[256];for(var A=M(o,15),g=A[0],f=A[1],_=M(c,15),S=_[0],C=_[1],R=D(g),I=R[0],w=R[1],L=D(S),O=L[0],P=L[1],k=new r(19),U=0;U<I.length;++U)k[31&I[U]]++;for(U=0;U<O.length;++U)k[31&O[U]]++;for(var G=M(k,7),F=G[0],H=G[1],Y=19;Y>4&&!F[l[Y-1]];--Y);var z,W,V,X,Z=m+5<<3,q=B(o,b)+B(c,y)+u,K=B(o,g)+B(c,S)+u+14+3*Y+B(k,F)+(2*k[16]+3*k[17]+7*k[18]);if(Z<=q&&Z<=K)return j(t,h,e.subarray(p,p+m));if(N(t,h,1+(K<q)),h+=2,K<q){z=E(g,f,0),W=g,V=E(S,C,0),X=S;var Q=E(F,H,0);N(t,h,w-257),N(t,h+5,P-1),N(t,h+10,Y-4),h+=14;for(U=0;U<Y;++U)N(t,h+3*U,F[l[U]]);h+=3*Y;for(var $=[I,O],J=0;J<2;++J){var ee=$[J];for(U=0;U<ee.length;++U){var te=31&ee[U];N(t,h,Q[te]),h+=F[te],te>15&&(N(t,h,ee[U]>>>5&127),h+=ee[U]>>>12)}}}else z=T,W=b,V=v,X=y;for(U=0;U<d;++U)if(s[U]>255){te=s[U]>>>18&31;x(t,h,z[te+257]),h+=W[te+257],te>7&&(N(t,h,s[U]>>>23&31),h+=i[te]);var ne=31&s[U];x(t,h,V[ne]),h+=X[ne],ne>3&&(x(t,h,s[U]>>>5&8191),h+=a[ne])}else x(t,h,z[s[U]]),h+=W[s[U]];return x(t,h,z[256]),h+W[256]},G=new o([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new s(0),H=function(){var e=1,t=0;return{p:function(n){for(var s=e,r=t,o=n.length,i=0;i!=o;){for(var a=Math.min(i+5552,o);i<a;++i)r+=s+=n[i];s%=65521,r%=65521}e=s,t=r},d:function(){return(e>>>8<<16|(255&t)<<8|t>>>8)+2*((255&e)<<23)}}},Y=function(e,t,n,l,c){return function(e,t,n,l,c,u){var d=e.length,m=new s(l+d+5*(1+Math.floor(d/7e3))+c),h=m.subarray(l,m.length-c),g=0;if(!t||d<8)for(var f=0;f<=d;f+=65535){var _=f+65535;_<d?g=j(h,g,e.subarray(f,_)):(h[f]=u,g=j(h,g,e.subarray(f,d)))}else{for(var E=G[t-1],b=E>>>13,y=8191&E,T=(1<<n)-1,S=new r(32768),v=new r(T+1),C=Math.ceil(n/3),R=2*C,I=function(t){return(e[t]^e[t+1]<<C^e[t+2]<<R)&T},w=new o(25e3),P=new r(288),N=new r(32),x=0,M=0,k=(f=0,0),D=0,B=0;f<d;++f){var H=I(f),Y=32767&f,z=v[H];if(S[Y]=z,v[H]=Y,D<=f){var W=d-f;if((x>7e3||k>24576)&&W>423){g=U(e,h,0,w,P,N,M,k,B,f-B,g),k=x=M=0,B=f;for(var V=0;V<286;++V)P[V]=0;for(V=0;V<30;++V)N[V]=0}var X=2,Z=0,q=y,K=Y-z&32767;if(W>2&&H==I(f-K))for(var Q=Math.min(b,W)-1,$=Math.min(32767,f),J=Math.min(258,W);K<=$&&--q&&Y!=z;){if(e[f+X]==e[f+X-K]){for(var ee=0;ee<J&&e[f+ee]==e[f+ee-K];++ee);if(ee>X){if(X=ee,Z=K,ee>Q)break;var te=Math.min(K,ee-2),ne=0;for(V=0;V<te;++V){var se=f-K+V+32768&32767,re=se-S[se]+32768&32767;re>ne&&(ne=re,z=se)}}}K+=(Y=z)-(z=S[Y])+32768&32767}if(Z){w[k++]=268435456|p[X]<<18|A[Z];var oe=31&p[X],ie=31&A[Z];M+=i[oe]+a[ie],++P[257+oe],++N[ie],D=f+X,++x}else w[k++]=e[f],++P[e[f]]}}g=U(e,h,u,w,P,N,M,k,B,f-B,g),u||(g=j(h,g,F))}return O(m,0,l+L(g)+c)}(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,l,!c)},z=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},W=function(e,t){var n=t.level,s=0==n?0:n<6?1:9==n?3:2;e[0]=120,e[1]=s<<6|(s?32-2*s:1)},V=function(e){if(8!=(15&e[0])||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(32&e[1])throw"invalid zlib data: preset dictionaries not supported"};function X(e,t){void 0===t&&(t={});var n=H();n.p(e);var s=Y(e,t,2,4);return W(s,t),z(s,s.length-4,n.d()),s}function Z(e,t){return P((V(e),e.subarray(2,-4)),t)}function q(e,t){var n=e.length;if(!t&&"undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var r=new s(e.length+(e.length>>>1)),o=0,i=function(e){r[o++]=e},a=0;a<n;++a){if(o+5>r.length){var l=new s(o+8+(n-a<<1));l.set(r),r=l}var c=e.charCodeAt(a);c<128||t?i(c):c<2048?(i(192|c>>>6),i(128|63&c)):c>55295&&c<57344?(i(240|(c=65536+(1047552&c)|1023&e.charCodeAt(++a))>>>18),i(128|c>>>12&63),i(128|c>>>6&63),i(128|63&c)):(i(224|c>>>12),i(128|c>>>6&63),i(128|63&c))}return O(r,0,o)}function K(e,t){var n="";if(!t&&"undefined"!=typeof TextDecoder)return(new TextDecoder).decode(e);for(var s=0;s<e.length;){var r=e[s++];r<128||t?n+=String.fromCharCode(r):r<224?n+=String.fromCharCode((31&r)<<6|63&e[s++]):r<240?n+=String.fromCharCode((15&r)<<12|(63&e[s++])<<6|63&e[s++]):(r=((15&r)<<18|(63&e[s++])<<12|(63&e[s++])<<6|63&e[s++])-65536,n+=String.fromCharCode(55296|r>>10,56320|1023&r))}return n}const Q="v1"},"../../node_modules/@rrweb/packer/dist/pack.js":(e,t,n)=>{"use strict";n.d(t,{pack:()=>r});var s=n("../../node_modules/@rrweb/packer/dist/base-ZCOD62p-.js");const r=e=>{const t={...e,v:s.M};return(0,s.s)((0,s.z)((0,s.a)(JSON.stringify(t))),!0)}},"../../node_modules/@rrweb/packer/dist/packer.js":(e,t,n)=>{"use strict";n.d(t,{pack:()=>s.pack});var s=n("../../node_modules/@rrweb/packer/dist/pack.js");n("../../node_modules/@rrweb/packer/dist/unpack.js")},"../../node_modules/@rrweb/packer/dist/unpack.js":(e,t,n)=>{"use strict";n("../../node_modules/@rrweb/packer/dist/base-ZCOD62p-.js")},"../../node_modules/@rrweb/rrweb-plugin-console-record/dist/rrweb-plugin-console-record.js":(e,t,n)=>{"use strict";n.d(t,{getRecordConsolePlugin:()=>B});var s,r=Object.defineProperty,o=(e,t,n)=>(((e,t,n)=>{t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),i=Object.defineProperty,a=(e,t,n)=>(((e,t,n)=>{t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),l=Object.defineProperty,c=(e,t,n)=>(((e,t,n)=>{t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class u{constructor(){c(this,"idNodeMap",new Map),c(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;return(null==(t=this.getMeta(e))?void 0:t.id)??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function d(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!n&&d(e.parentNode,t,n);for(let n=e.classList.length;n--;){const s=e.classList[n];if(t.test(s))return!0}return!!n&&d(e.parentNode,t,n)}const p="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let m={map:{},getId:()=>(console.error(p),-1),getNode:()=>(console.error(p),null),removeNodeFromMap(){console.error(p)},has:()=>(console.error(p),!1),reset(){console.error(p)}};"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(m=new Proxy(m,{get:(e,t,n)=>("map"===t&&console.error(p),Reflect.get(e,t,n))}));let h=Date.now;function A(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}/[1-9][0-9]{12}/.test(Date.now().toString())||(h=()=>(new Date).getTime());function g(e){var t,n;let s=null;return(null==(n=null==(t=e.getRootNode)?void 0:t.call(e))?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(s=e.getRootNode().host),s}function f(e){let t,n=e;for(;t=g(n);)n=t;return n}function _(e){const t=e.ownerDocument;if(!t)return!1;const n=f(e);return t.contains(n)}const E=Object.freeze(Object.defineProperty({__proto__:null,StyleSheetMirror:class{constructor(){a(this,"id",1),a(this,"styleIDMap",new WeakMap),a(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}},get _mirror(){return m},closestElementOfNode:A,getBaseDimension:function e(t,n){var s,r;const o=null==(r=null==(s=t.ownerDocument)?void 0:s.defaultView)?void 0:r.frameElement;if(!o||o===n)return{x:0,y:0,relativeScale:1,absoluteScale:1};const i=o.getBoundingClientRect(),a=e(o,n),l=i.height/o.clientHeight;return{x:i.x*a.relativeScale+a.x,y:i.y*a.relativeScale+a.y,relativeScale:l,absoluteScale:a.absoluteScale*l}},getNestedRule:function e(t,n){const s=t[n[0]];return 1===n.length?s:e(s.cssRules[n[1]].cssRules,n.slice(2))},getPositionsAndIndex:function(e){const t=[...e],n=t.pop();return{positions:t,index:n}},getRootShadowHost:f,getShadowHost:g,getWindowHeight:function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight},getWindowScroll:function(e){var t,n,s,r,o,i;const a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:(null==a?void 0:a.documentElement.scrollLeft)||(null==(n=null==(t=null==a?void 0:a.body)?void 0:t.parentElement)?void 0:n.scrollLeft)||(null==(s=null==a?void 0:a.body)?void 0:s.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==a?void 0:a.documentElement.scrollTop)||(null==(o=null==(r=null==a?void 0:a.body)?void 0:r.parentElement)?void 0:o.scrollTop)||(null==(i=null==a?void 0:a.body)?void 0:i.scrollTop)||0}},getWindowWidth:function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth},hasShadowRoot:function(e){return Boolean(null==e?void 0:e.shadowRoot)},hookSetter:function e(t,n,s,r,o=window){const i=o.Object.getOwnPropertyDescriptor(t,n);return o.Object.defineProperty(t,n,r?s:{set(e){setTimeout(()=>{s.set.call(this,e)},0),i&&i.set&&i.set.call(this,e)}}),()=>e(t,n,i||{},!0)},inDom:function(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||_(e))},isAncestorRemoved:function e(t,n){if(function(e){const t=null==e?void 0:e.host;return Boolean((null==t?void 0:t.shadowRoot)===e)}(t))return!1;const s=n.getId(t);return!n.has(s)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,n))},isBlocked:function(e,t,n,s){if(!e)return!1;const r=A(e);if(!r)return!1;try{if("string"==typeof t){if(r.classList.contains(t))return!0;if(s&&null!==r.closest("."+t))return!0}else if(d(r,t,s))return!0}catch(e){}if(n){if(r.matches(n))return!0;if(s&&null!==r.closest(n))return!0}return!1},isIgnored:function(e,t,n){return!("TITLE"!==e.tagName||!n.headTitleMutations)||-2===t.getId(e)},isSerialized:function(e,t){return-1!==t.getId(e)},isSerializedIframe:function(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))},isSerializedStylesheet:function(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))},iterateResolveTree:function e(t,n){n(t.value);for(let s=t.children.length-1;s>=0;s--)e(t.children[s],n)},legacy_isTouchEvent:function(e){return Boolean(e.changedTouches)},get nowTimestamp(){return h},on:function(e,t,n=document){const s={capture:!0,passive:!0};return n.addEventListener(e,t,s),()=>n.removeEventListener(e,t,s)},patch:function(e,t,n){try{if(!(t in e))return()=>{};const s=e[t],r=n(s);return"function"==typeof r&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:s}})),e[t]=r,()=>{e[t]=s}}catch{return()=>{}}},polyfill:function(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),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})},queueToResolveTrees:function(e){const t={},n=(e,n)=>{const s={value:e,parent:n,children:[]};return t[e.node.id]=s,s},s=[];for(const r of e){const{nextId:e,parentId:o}=r;if(e&&e in t){const o=t[e];if(o.parent){const e=o.parent.children.indexOf(o);o.parent.children.splice(e,0,n(r,o.parent))}else{const e=s.indexOf(o);s.splice(e,0,n(r,null))}continue}if(o in t){const e=t[o];e.children.push(n(r,e));continue}s.push(n(r,null))}return s},shadowHostInDom:_,throttle:function(e,t,n={}){let s=null,r=0;return function(...o){const i=Date.now();r||!1!==n.leading||(r=i);const a=t-(i-r),l=this;a<=0||a>t?(s&&(clearTimeout(s),s=null),r=i,e.apply(l,o)):s||!1===n.trailing||(s=setTimeout(()=>{r=!1===n.leading?0:Date.now(),s=null,e.apply(l,o)},a))}},uniqueTextMutations:function(e){const t=new Set,n=[];for(let s=e.length;s--;){const r=e[s];t.has(r.id)||(n.push(r),t.add(r.id))}return n}},Symbol.toStringTag,{value:"Module"}));for(var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y="undefined"==typeof Uint8Array?[]:new Uint8Array(256),T=0;T<64;T++)y[b.charCodeAt(T)]=T;var S,v,C;"undefined"!=typeof window&&window.Blob&&new Blob([(S="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpCiAgICAgICAgcmV0dXJuIHRyYW5zcGFyZW50QmxvYk1hcC5nZXQoaWQpOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIHRyYW5zcGFyZW50QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICAgIHJldHVybiBiYXNlNjQ7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gIiI7CiAgICB9CiAgfQogIGNvbnN0IHdvcmtlciA9IHNlbGY7CiAgd29ya2VyLm9ubWVzc2FnZSA9IGFzeW5jIGZ1bmN0aW9uKGUpIHsKICAgIGlmICgiT2Zmc2NyZWVuQ2FudmFzIiBpbiBnbG9iYWxUaGlzKSB7CiAgICAgIGNvbnN0IHsgaWQsIGJpdG1hcCwgd2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMgfSA9IGUuZGF0YTsKICAgICAgY29uc3QgdHJhbnNwYXJlbnRCYXNlNjQgPSBnZXRUcmFuc3BhcmVudEJsb2JGb3IoCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0LAogICAgICAgIGRhdGFVUkxPcHRpb25zCiAgICAgICk7CiAgICAgIGNvbnN0IG9mZnNjcmVlbiA9IG5ldyBPZmZzY3JlZW5DYW52YXMod2lkdGgsIGhlaWdodCk7CiAgICAgIGNvbnN0IGN0eCA9IG9mZnNjcmVlbi5nZXRDb250ZXh0KCIyZCIpOwogICAgICBjdHguZHJhd0ltYWdlKGJpdG1hcCwgMCwgMCk7CiAgICAgIGJpdG1hcC5jbG9zZSgpOwogICAgICBjb25zdCBibG9iID0gYXdhaXQgb2Zmc2NyZWVuLmNvbnZlcnRUb0Jsb2IoZGF0YVVSTE9wdGlvbnMpOwogICAgICBjb25zdCB0eXBlID0gYmxvYi50eXBlOwogICAgICBjb25zdCBhcnJheUJ1ZmZlciA9IGF3YWl0IGJsb2IuYXJyYXlCdWZmZXIoKTsKICAgICAgY29uc3QgYmFzZTY0ID0gZW5jb2RlKGFycmF5QnVmZmVyKTsKICAgICAgaWYgKCFsYXN0QmxvYk1hcC5oYXMoaWQpICYmIGF3YWl0IHRyYW5zcGFyZW50QmFzZTY0ID09PSBiYXNlNjQpIHsKICAgICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkIH0pOwogICAgICB9CiAgICAgIGlmIChsYXN0QmxvYk1hcC5nZXQoaWQpID09PSBiYXNlNjQpCiAgICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkIH0pOwogICAgICB3b3JrZXIucG9zdE1lc3NhZ2UoewogICAgICAgIGlkLAogICAgICAgIHR5cGUsCiAgICAgICAgYmFzZTY0LAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodAogICAgICB9KTsKICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkOiBlLmRhdGEuaWQgfSk7CiAgICB9CiAgfTsKfSkoKTsKLy8jIHNvdXJjZU1hcHBpbmdVUkw9aW1hZ2UtYml0bWFwLWRhdGEtdXJsLXdvcmtlci1CWjFyN1JKRC5qcy5tYXAK",Uint8Array.from(atob(S),e=>e.charCodeAt(0)))],{type:"text/javascript;charset=utf-8"});try{if(2!==Array.from([1],e=>2*e)[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=(null==(s=e.contentWindow)?void 0:s.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}new u,(C=v||(v={}))[C.NotStarted=0]="NotStarted",C[C.Running=1]="Running",C[C.Stopped=2]="Stopped";class R{constructor(e){o(this,"fileName"),o(this,"functionName"),o(this,"lineNumber"),o(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}toString(){const e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?`${this.functionName} (${this.fileName}:${e}:${t})`:`${this.fileName}:${e}:${t}`}}const I=/(^|@)\S+:\d+/,w=/^\s*at .*(\S+:\d+|\(native\))/m,L=/^(eval@)?(\[native code])?$/,O={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(w)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];const t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw new Error(`Cannot parse given url: ${e}`);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(w)},this).map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));let t=e.replace(/^\s+/,"").replace(/\(eval code/g,"(");const n=t.match(/ (\((.+):(\d+):(\d+)\)$)/);t=n?t.replace(n[0],""):t;const s=t.split(/\s+/).slice(1),r=this.extractLocation(n?n[1]:s.pop()),o=s.join(" ")||void 0,i=["eval","<anonymous>"].indexOf(r[0])>-1?void 0:r[0];return new R({functionName:o,fileName:i,lineNumber:r[1],columnNumber:r[2]})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(e){return!e.match(L)},this).map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new R({functionName:e});{const t=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=e.match(t),s=n&&n[1]?n[1]:void 0,r=this.extractLocation(e.replace(t,""));return new R({functionName:s,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})}},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){const t=/Line (\d+).*script (?:in )?(\S+)/i,n=e.message.split("\n"),s=[];for(let e=2,r=n.length;e<r;e+=2){const r=t.exec(n[e]);r&&s.push(new R({fileName:r[2],lineNumber:parseFloat(r[1])}))}return s},parseOpera10:function(e){const t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,n=e.stacktrace.split("\n"),s=[];for(let e=0,r=n.length;e<r;e+=2){const r=t.exec(n[e]);r&&s.push(new R({functionName:r[3]||void 0,fileName:r[2],lineNumber:parseFloat(r[1])}))}return s},parseOpera11:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(I)&&!e.match(/^Error created at/)},this).map(function(e){const t=e.split("@"),n=this.extractLocation(t.pop()),s=(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new R({functionName:s,fileName:n[0],lineNumber:n[1],columnNumber:n[2]})},this)}};function P(e){if(!e||!e.outerHTML)return"";let t="";for(;e.parentElement;){let n=e.localName;if(!n)break;n=n.toLowerCase();const s=e.parentElement,r=[];if(s.children&&s.children.length>0)for(let e=0;e<s.children.length;e++){const t=s.children[e];t.localName&&t.localName.toLowerCase&&t.localName.toLowerCase()===n&&r.push(t)}r.length>1&&(n+=`:eq(${r.indexOf(e)})`),t=n+(t?">"+t:""),e=s}return t}function N(e){return"[object Object]"===Object.prototype.toString.call(e)}function x(e,t){if(0===t)return!0;const n=Object.keys(e);for(const s of n)if(N(e[s])&&x(e[s],t-1))return!0;return!1}function M(e,t){const n={numOfKeysLimit:50,depthOfLimit:4};Object.assign(n,t);const s=[],r=[];return JSON.stringify(e,function(e,t){if(s.length>0){const n=s.indexOf(this);~n?s.splice(n+1):s.push(this),~n?r.splice(n,1/0,e):r.push(e),~s.indexOf(t)&&(t=s[0]===t?"[Circular ~]":"[Circular ~."+r.slice(0,s.indexOf(t)).join(".")+"]")}else s.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(function(e){if(N(e)&&Object.keys(e).length>n.numOfKeysLimit)return!0;if("function"==typeof e)return!0;if(N(e)&&x(e,n.depthOfLimit))return!0;return!1}(t))return function(e){let t=e.toString();n.stringLengthLimit&&t.length>n.stringLengthLimit&&(t=`${t.slice(0,n.stringLengthLimit)}...`);return t}(t);if("bigint"==typeof t)return t.toString()+"n";if(t instanceof Event){const e={};for(const n in t){const s=t[n];Array.isArray(s)?e[n]=P(s.length?s[0]:null):e[n]=s}return e}return t instanceof Node?t instanceof HTMLElement?t?t.outerHTML:"":t.nodeName:t instanceof Error?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t})}const k={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function D(e,t,n){const s=n?Object.assign({},k,n):k,r=s.logger;if(!r)return()=>{};let o;o="string"==typeof r?t[r]:r;let i=0,a=!1;const l=[];if(s.level.includes("error")){const n=t=>{const n=t.message,r=t.error,o=O.parse(r).map(e=>e.toString()),i=[M(n,s.stringifyOptions)];e({level:"error",trace:o,payload:i})};t.addEventListener("error",n),l.push(()=>{t.removeEventListener("error",n)});const r=t=>{let n,r;t.reason instanceof Error?(n=t.reason,r=[M(`Uncaught (in promise) ${n.name}: ${n.message}`,s.stringifyOptions)]):(n=new Error,r=[M("Uncaught (in promise)",s.stringifyOptions),M(t.reason,s.stringifyOptions)]);const o=O.parse(n).map(e=>e.toString());e({level:"error",trace:o,payload:r})};t.addEventListener("unhandledrejection",r),l.push(()=>{t.removeEventListener("unhandledrejection",r)})}for(const e of s.level)l.push(c(o,e));return()=>{l.forEach(e=>e())};function c(t,n){return t[n]?E.patch(t,n,t=>(...r)=>{if(t.apply(this,r),!a){a=!0;try{const t=O.parse(new Error).map(e=>e.toString()).splice(1),o=r.map(e=>M(e,s.stringifyOptions));i++,i<s.lengthThreshold?e({level:n,trace:t,payload:o}):i===s.lengthThreshold&&e({level:"warn",trace:[],payload:[M("The number of log records reached the threshold.")]})}catch(e){t("rrweb logger error:",e,...r)}finally{a=!1}}}):()=>{}}}const B=e=>({name:"rrweb/console@1",observer:D,options:e})},"../../node_modules/@socket.io/component-emitter/lib/esm/index.js":(e,t,n)=>{"use strict";function s(e){if(e)return function(e){for(var t in s.prototype)e[t]=s.prototype[t];return e}(e)}n.d(t,{Emitter:()=>s}),s.prototype.on=s.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},s.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},s.prototype.off=s.prototype.removeListener=s.prototype.removeAllListeners=s.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,s=this._callbacks["$"+e];if(!s)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var r=0;r<s.length;r++)if((n=s[r])===t||n.fn===t){s.splice(r,1);break}return 0===s.length&&delete this._callbacks["$"+e],this},s.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],s=1;s<arguments.length;s++)t[s-1]=arguments[s];if(n){s=0;for(var r=(n=n.slice(0)).length;s<r;++s)n[s].apply(this,t)}return this},s.prototype.emitReserved=s.prototype.emit,s.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},s.prototype.hasListeners=function(e){return!!this.listeners(e).length}},"../../node_modules/dompurify/dist/purify.es.mjs":(e,t,n)=>{"use strict";n.d(t,{default:()=>ae});const{entries:s,setPrototypeOf:r,isFrozen:o,getPrototypeOf:i,getOwnPropertyDescriptor:a}=Object;let{freeze:l,seal:c,create:u}=Object,{apply:d,construct:p}="undefined"!=typeof Reflect&&Reflect;l||(l=function(e){return e}),c||(c=function(e){return e}),d||(d=function(e,t,n){return e.apply(t,n)}),p||(p=function(e,t){return new e(...t)});const m=w(Array.prototype.forEach),h=w(Array.prototype.lastIndexOf),A=w(Array.prototype.pop),g=w(Array.prototype.push),f=w(Array.prototype.splice),_=w(String.prototype.toLowerCase),E=w(String.prototype.toString),b=w(String.prototype.match),y=w(String.prototype.replace),T=w(String.prototype.indexOf),S=w(String.prototype.trim),v=w(Object.prototype.hasOwnProperty),C=w(RegExp.prototype.test),R=(I=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return p(I,t)});var I;function w(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,s=new Array(n>1?n-1:0),r=1;r<n;r++)s[r-1]=arguments[r];return d(e,t,s)}}function L(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_;r&&r(e,null);let s=t.length;for(;s--;){let r=t[s];if("string"==typeof r){const e=n(r);e!==r&&(o(t)||(t[s]=e),r=e)}e[r]=!0}return e}function O(e){for(let t=0;t<e.length;t++){v(e,t)||(e[t]=null)}return e}function P(e){const t=u(null);for(const[n,r]of s(e)){v(e,n)&&(Array.isArray(r)?t[n]=O(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=P(r):t[n]=r)}return t}function N(e,t){for(;null!==e;){const n=a(e,t);if(n){if(n.get)return w(n.get);if("function"==typeof n.value)return w(n.value)}e=i(e)}return function(){return null}}const x=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),M=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),k=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=l(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),B=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),j=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),U=l(["#text"]),G=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),F=l(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),H=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Y=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),z=c(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=c(/<%[\w\W]*|[\w\W]*%>/gm),V=c(/\$\{[\w\W]*/gm),X=c(/^data-[\-\w.\u00B7-\uFFFF]+$/),Z=c(/^aria-[\-\w]+$/),q=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=c(/^(?:\w+script|data):/i),Q=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$=c(/^html$/i),J=c(/^[a-z][.\w]*(-[.\w]+)+$/i);var ee=Object.freeze({__proto__:null,ARIA_ATTR:Z,ATTR_WHITESPACE:Q,CUSTOM_ELEMENT:J,DATA_ATTR:X,DOCTYPE_NAME:$,ERB_EXPR:W,IS_ALLOWED_URI:q,IS_SCRIPT_OR_DATA:K,MUSTACHE_EXPR:z,TMPLIT_EXPR:V});const te=1,ne=3,se=7,re=8,oe=9,ie=function(){return"undefined"==typeof window?null:window};var ae=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ie();const n=t=>e(t);if(n.version="3.2.5",n.removed=[],!t||!t.document||t.document.nodeType!==oe||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const o=r,i=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:c,Node:d,Element:p,NodeFilter:I,NamedNodeMap:w=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:O,DOMParser:z,trustedTypes:W}=t,V=p.prototype,X=N(V,"cloneNode"),Z=N(V,"remove"),K=N(V,"nextSibling"),Q=N(V,"childNodes"),J=N(V,"parentNode");if("function"==typeof c){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ae,le="";const{implementation:ce,createNodeIterator:ue,createDocumentFragment:de,getElementsByTagName:pe}=r,{importNode:me}=o;let he={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof s&&"function"==typeof J&&ce&&void 0!==ce.createHTMLDocument;const{MUSTACHE_EXPR:Ae,ERB_EXPR:ge,TMPLIT_EXPR:fe,DATA_ATTR:_e,ARIA_ATTR:Ee,IS_SCRIPT_OR_DATA:be,ATTR_WHITESPACE:ye,CUSTOM_ELEMENT:Te}=ee;let{IS_ALLOWED_URI:Se}=ee,ve=null;const Ce=L({},[...x,...M,...k,...B,...U]);let Re=null;const Ie=L({},[...G,...F,...H,...Y]);let we=Object.seal(u(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Le=null,Oe=null,Pe=!0,Ne=!0,xe=!1,Me=!0,ke=!1,De=!0,Be=!1,je=!1,Ue=!1,Ge=!1,Fe=!1,He=!1,Ye=!0,ze=!1,We=!0,Ve=!1,Xe={},Ze=null;const qe=L({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ke=null;const Qe=L({},["audio","video","img","source","image","track"]);let $e=null;const Je=L({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml";let st=nt,rt=!1,ot=null;const it=L({},[et,tt,nt],E);let at=L({},["mi","mo","mn","ms","mtext"]),lt=L({},["annotation-xml"]);const ct=L({},["title","style","font","a","script"]);let ut=null;const dt=["application/xhtml+xml","text/html"];let pt=null,mt=null;const ht=r.createElement("form"),At=function(e){return e instanceof RegExp||e instanceof Function},gt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!mt||mt!==e){if(e&&"object"==typeof e||(e={}),e=P(e),ut=-1===dt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,pt="application/xhtml+xml"===ut?E:_,ve=v(e,"ALLOWED_TAGS")?L({},e.ALLOWED_TAGS,pt):Ce,Re=v(e,"ALLOWED_ATTR")?L({},e.ALLOWED_ATTR,pt):Ie,ot=v(e,"ALLOWED_NAMESPACES")?L({},e.ALLOWED_NAMESPACES,E):it,$e=v(e,"ADD_URI_SAFE_ATTR")?L(P(Je),e.ADD_URI_SAFE_ATTR,pt):Je,Ke=v(e,"ADD_DATA_URI_TAGS")?L(P(Qe),e.ADD_DATA_URI_TAGS,pt):Qe,Ze=v(e,"FORBID_CONTENTS")?L({},e.FORBID_CONTENTS,pt):qe,Le=v(e,"FORBID_TAGS")?L({},e.FORBID_TAGS,pt):{},Oe=v(e,"FORBID_ATTR")?L({},e.FORBID_ATTR,pt):{},Xe=!!v(e,"USE_PROFILES")&&e.USE_PROFILES,Pe=!1!==e.ALLOW_ARIA_ATTR,Ne=!1!==e.ALLOW_DATA_ATTR,xe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ke=e.SAFE_FOR_TEMPLATES||!1,De=!1!==e.SAFE_FOR_XML,Be=e.WHOLE_DOCUMENT||!1,Ge=e.RETURN_DOM||!1,Fe=e.RETURN_DOM_FRAGMENT||!1,He=e.RETURN_TRUSTED_TYPE||!1,Ue=e.FORCE_BODY||!1,Ye=!1!==e.SANITIZE_DOM,ze=e.SANITIZE_NAMED_PROPS||!1,We=!1!==e.KEEP_CONTENT,Ve=e.IN_PLACE||!1,Se=e.ALLOWED_URI_REGEXP||q,st=e.NAMESPACE||nt,at=e.MATHML_TEXT_INTEGRATION_POINTS||at,lt=e.HTML_INTEGRATION_POINTS||lt,we=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&At(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(we.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&At(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(we.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(we.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ke&&(Ne=!1),Fe&&(Ge=!0),Xe&&(ve=L({},U),Re=[],!0===Xe.html&&(L(ve,x),L(Re,G)),!0===Xe.svg&&(L(ve,M),L(Re,F),L(Re,Y)),!0===Xe.svgFilters&&(L(ve,k),L(Re,F),L(Re,Y)),!0===Xe.mathMl&&(L(ve,B),L(Re,H),L(Re,Y))),e.ADD_TAGS&&(ve===Ce&&(ve=P(ve)),L(ve,e.ADD_TAGS,pt)),e.ADD_ATTR&&(Re===Ie&&(Re=P(Re)),L(Re,e.ADD_ATTR,pt)),e.ADD_URI_SAFE_ATTR&&L($e,e.ADD_URI_SAFE_ATTR,pt),e.FORBID_CONTENTS&&(Ze===qe&&(Ze=P(Ze)),L(Ze,e.FORBID_CONTENTS,pt)),We&&(ve["#text"]=!0),Be&&L(ve,["html","head","body"]),ve.table&&(L(ve,["tbody"]),delete Le.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw R('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw R('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ae=e.TRUSTED_TYPES_POLICY,le=ae.createHTML("")}else void 0===ae&&(ae=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const s="data-tt-policy-suffix";t&&t.hasAttribute(s)&&(n=t.getAttribute(s));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(W,i)),null!==ae&&"string"==typeof le&&(le=ae.createHTML(""));l&&l(e),mt=e}},ft=L({},[...M,...k,...D]),_t=L({},[...B,...j]),Et=function(e){g(n.removed,{element:e});try{J(e).removeChild(e)}catch(t){Z(e)}},bt=function(e,t){try{g(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){g(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Ge||Fe)try{Et(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},yt=function(e){let t=null,n=null;if(Ue)e="<remove></remove>"+e;else{const t=b(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ut&&st===nt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const s=ae?ae.createHTML(e):e;if(st===nt)try{t=(new z).parseFromString(s,ut)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(st,"template",null);try{t.documentElement.innerHTML=rt?le:s}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(r.createTextNode(n),o.childNodes[0]||null),st===nt?pe.call(t,Be?"html":"body")[0]:Be?t.documentElement:o},Tt=function(e){return ue.call(e.ownerDocument||e,e,I.SHOW_ELEMENT|I.SHOW_COMMENT|I.SHOW_TEXT|I.SHOW_PROCESSING_INSTRUCTION|I.SHOW_CDATA_SECTION,null)},St=function(e){return e instanceof O&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof w)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},vt=function(e){return"function"==typeof d&&e instanceof d};function Ct(e,t,s){m(e,e=>{e.call(n,t,s,mt)})}const Rt=function(e){let t=null;if(Ct(he.beforeSanitizeElements,e,null),St(e))return Et(e),!0;const s=pt(e.nodeName);if(Ct(he.uponSanitizeElement,e,{tagName:s,allowedTags:ve}),e.hasChildNodes()&&!vt(e.firstElementChild)&&C(/<[/\w!]/g,e.innerHTML)&&C(/<[/\w!]/g,e.textContent))return Et(e),!0;if(e.nodeType===se)return Et(e),!0;if(De&&e.nodeType===re&&C(/<[/\w]/g,e.data))return Et(e),!0;if(!ve[s]||Le[s]){if(!Le[s]&&wt(s)){if(we.tagNameCheck instanceof RegExp&&C(we.tagNameCheck,s))return!1;if(we.tagNameCheck instanceof Function&&we.tagNameCheck(s))return!1}if(We&&!Ze[s]){const t=J(e)||e.parentNode,n=Q(e)||e.childNodes;if(n&&t){for(let s=n.length-1;s>=0;--s){const r=X(n[s],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,K(e))}}}return Et(e),!0}return e instanceof p&&!function(e){let t=J(e);t&&t.tagName||(t={namespaceURI:st,tagName:"template"});const n=_(e.tagName),s=_(t.tagName);return!!ot[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===s||at[s]):Boolean(ft[n]):e.namespaceURI===et?t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&<[s]:Boolean(_t[n]):e.namespaceURI===nt?!(t.namespaceURI===tt&&!lt[s])&&!(t.namespaceURI===et&&!at[s])&&!_t[n]&&(ct[n]||!ft[n]):!("application/xhtml+xml"!==ut||!ot[e.namespaceURI]))}(e)?(Et(e),!0):"noscript"!==s&&"noembed"!==s&&"noframes"!==s||!C(/<\/no(script|embed|frames)/i,e.innerHTML)?(ke&&e.nodeType===ne&&(t=e.textContent,m([Ae,ge,fe],e=>{t=y(t,e," ")}),e.textContent!==t&&(g(n.removed,{element:e.cloneNode()}),e.textContent=t)),Ct(he.afterSanitizeElements,e,null),!1):(Et(e),!0)},It=function(e,t,n){if(Ye&&("id"===t||"name"===t)&&(n in r||n in ht))return!1;if(Ne&&!Oe[t]&&C(_e,t));else if(Pe&&C(Ee,t));else if(!Re[t]||Oe[t]){if(!(wt(e)&&(we.tagNameCheck instanceof RegExp&&C(we.tagNameCheck,e)||we.tagNameCheck instanceof Function&&we.tagNameCheck(e))&&(we.attributeNameCheck instanceof RegExp&&C(we.attributeNameCheck,t)||we.attributeNameCheck instanceof Function&&we.attributeNameCheck(t))||"is"===t&&we.allowCustomizedBuiltInElements&&(we.tagNameCheck instanceof RegExp&&C(we.tagNameCheck,n)||we.tagNameCheck instanceof Function&&we.tagNameCheck(n))))return!1}else if($e[t]);else if(C(Se,y(n,ye,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==T(n,"data:")||!Ke[e]){if(xe&&!C(be,y(n,ye,"")));else if(n)return!1}else;return!0},wt=function(e){return"annotation-xml"!==e&&b(e,Te)},Lt=function(e){Ct(he.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||St(e))return;const s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Re,forceKeepAttr:void 0};let r=t.length;for(;r--;){const o=t[r],{name:i,namespaceURI:a,value:l}=o,c=pt(i);let u="value"===i?l:S(l);if(s.attrName=c,s.attrValue=u,s.keepAttr=!0,s.forceKeepAttr=void 0,Ct(he.uponSanitizeAttribute,e,s),u=s.attrValue,!ze||"id"!==c&&"name"!==c||(bt(i,e),u="user-content-"+u),De&&C(/((--!?|])>)|<\/(style|title)/i,u)){bt(i,e);continue}if(s.forceKeepAttr)continue;if(bt(i,e),!s.keepAttr)continue;if(!Me&&C(/\/>/i,u)){bt(i,e);continue}ke&&m([Ae,ge,fe],e=>{u=y(u,e," ")});const d=pt(e.nodeName);if(It(d,c,u)){if(ae&&"object"==typeof W&&"function"==typeof W.getAttributeType)if(a);else switch(W.getAttributeType(d,c)){case"TrustedHTML":u=ae.createHTML(u);break;case"TrustedScriptURL":u=ae.createScriptURL(u)}try{a?e.setAttributeNS(a,i,u):e.setAttribute(i,u),St(e)?Et(e):A(n.removed)}catch(e){}}}Ct(he.afterSanitizeAttributes,e,null)},Ot=function e(t){let n=null;const s=Tt(t);for(Ct(he.beforeSanitizeShadowDOM,t,null);n=s.nextNode();)Ct(he.uponSanitizeShadowNode,n,null),Rt(n),Lt(n),n.content instanceof a&&e(n.content);Ct(he.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=null,r=null,i=null,l=null;if(rt=!e,rt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!vt(e)){if("function"!=typeof e.toString)throw R("toString is not a function");if("string"!=typeof(e=e.toString()))throw R("dirty is not a string, aborting")}if(!n.isSupported)return e;if(je||gt(t),n.removed=[],"string"==typeof e&&(Ve=!1),Ve){if(e.nodeName){const t=pt(e.nodeName);if(!ve[t]||Le[t])throw R("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof d)s=yt("\x3c!----\x3e"),r=s.ownerDocument.importNode(e,!0),r.nodeType===te&&"BODY"===r.nodeName||"HTML"===r.nodeName?s=r:s.appendChild(r);else{if(!Ge&&!ke&&!Be&&-1===e.indexOf("<"))return ae&&He?ae.createHTML(e):e;if(s=yt(e),!s)return Ge?null:He?le:""}s&&Ue&&Et(s.firstChild);const c=Tt(Ve?e:s);for(;i=c.nextNode();)Rt(i),Lt(i),i.content instanceof a&&Ot(i.content);if(Ve)return e;if(Ge){if(Fe)for(l=de.call(s.ownerDocument);s.firstChild;)l.appendChild(s.firstChild);else l=s;return(Re.shadowroot||Re.shadowrootmode)&&(l=me.call(o,l,!0)),l}let u=Be?s.outerHTML:s.innerHTML;return Be&&ve["!doctype"]&&s.ownerDocument&&s.ownerDocument.doctype&&s.ownerDocument.doctype.name&&C($,s.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+s.ownerDocument.doctype.name+">\n"+u),ke&&m([Ae,ge,fe],e=>{u=y(u,e," ")}),ae&&He?ae.createHTML(u):u},n.setConfig=function(){gt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),je=!0},n.clearConfig=function(){mt=null,je=!1},n.isValidAttribute=function(e,t,n){mt||gt({});const s=pt(e),r=pt(t);return It(s,r,n)},n.addHook=function(e,t){"function"==typeof t&&g(he[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=h(he[e],t);return-1===n?void 0:f(he[e],n,1)[0]}return A(he[e])},n.removeHooks=function(e){he[e]=[]},n.removeAllHooks=function(){he={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}()},"../../node_modules/engine.io-client/build/esm/contrib/has-cors.js":(e,t,n)=>{"use strict";n.d(t,{hasCORS:()=>r});let s=!1;try{s="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}const r=s},"../../node_modules/engine.io-client/build/esm/contrib/parseqs.js":(e,t,n)=>{"use strict";function s(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function r(e){let t={},n=e.split("&");for(let e=0,s=n.length;e<s;e++){let s=n[e].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}n.d(t,{decode:()=>r,encode:()=>s})},"../../node_modules/engine.io-client/build/esm/contrib/parseuri.js":(e,t,n)=>{"use strict";n.d(t,{parse:()=>o});const s=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function o(e){if(e.length>2e3)throw"URI too long";const t=e,n=e.indexOf("["),o=e.indexOf("]");-1!=n&&-1!=o&&(e=e.substring(0,n)+e.substring(n,o).replace(/:/g,";")+e.substring(o,e.length));let i=s.exec(e||""),a={},l=14;for(;l--;)a[r[l]]=i[l]||"";return-1!=n&&-1!=o&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=function(e,t){const n=/\/{2,9}/g,s=t.replace(n,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||s.splice(0,1);"/"==t.slice(-1)&&s.splice(s.length-1,1);return s}(0,a.path),a.queryKey=function(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,s){t&&(n[t]=s)}),n}(0,a.query),a}},"../../node_modules/engine.io-client/build/esm/contrib/yeast.js":(e,t,n)=>{"use strict";n.d(t,{yeast:()=>u});const s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),r=64,o={};let i,a=0,l=0;function c(e){let t="";do{t=s[e%r]+t,e=Math.floor(e/r)}while(e>0);return t}function u(){const e=c(+new Date);return e!==i?(a=0,i=e):e+"."+c(a++)}for(;l<r;l++)o[s[l]]=l},"../../node_modules/engine.io-client/build/esm/globalThis.browser.js":(e,t,n)=>{"use strict";n.d(t,{globalThisShim:()=>s});const s="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},"../../node_modules/engine.io-client/build/esm/index.js":(e,t,n)=>{"use strict";n.d(t,{Socket:()=>s.Socket,installTimerFunctions:()=>r.installTimerFunctions,nextTick:()=>i.nextTick,parse:()=>o.parse});var s=n("../../node_modules/engine.io-client/build/esm/socket.js"),r=(n("../../node_modules/engine.io-client/build/esm/transport.js"),n("../../node_modules/engine.io-client/build/esm/transports/index.js"),n("../../node_modules/engine.io-client/build/esm/util.js")),o=n("../../node_modules/engine.io-client/build/esm/contrib/parseuri.js"),i=n("../../node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js");s.Socket.protocol},"../../node_modules/engine.io-client/build/esm/socket.js":(e,t,n)=>{"use strict";n.d(t,{Socket:()=>u});var s=n("../../node_modules/engine.io-client/build/esm/transports/index.js"),r=n("../../node_modules/engine.io-client/build/esm/util.js"),o=n("../../node_modules/engine.io-client/build/esm/contrib/parseqs.js"),i=n("../../node_modules/engine.io-client/build/esm/contrib/parseuri.js"),a=n("../../node_modules/@socket.io/component-emitter/lib/esm/index.js"),l=n("../../node_modules/engine.io-parser/build/esm/index.js"),c=n("../../node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js");class u extends a.Emitter{constructor(e,t={}){super(),this.binaryType=c.defaultBinaryType,this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=(0,i.parse)(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=(0,i.parse)(t.host).host),(0,r.installTimerFunctions)(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=(0,o.decode)(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=l.protocol,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new s.transports[e](n)}open(){let e;if(this.opts.rememberUpgrade&&u.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",e=>this.onClose("transport close",e))}probe(e){let t=this.createTransport(e),n=!1;u.priorWebsocketSuccess=!1;const s=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!n)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;u.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{n||"closed"!==this.readyState&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}}))};function r(){n||(n=!0,c(),t.close(),t=null)}const o=e=>{const n=new Error("probe error: "+e);n.transport=t.name,r(),this.emitReserved("upgradeError",n)};function i(){o("transport closed")}function a(){o("socket closed")}function l(e){t&&e.name!==t.name&&r()}const c=()=>{t.removeListener("open",s),t.removeListener("error",o),t.removeListener("close",i),this.off("close",a),this.off("upgrading",l)};t.once("open",s),t.once("error",o),t.once("close",i),this.once("close",a),this.once("upgrading",l),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{n||t.open()},200):t.open()}onOpen(){if(this.readyState="open",u.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){const n=this.writeBuffer[t].data;if(n&&(e+=(0,r.byteLength)(n)),t>0&&e>this.maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}write(e,t,n){return this.sendPacket("message",e,t,n),this}send(e,t,n){return this.sendPacket("message",e,t,n),this}sendPacket(e,t,n,s){if("function"==typeof t&&(s=t,t=void 0),"function"==typeof n&&(s=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const r={type:e,data:t,options:n};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),s&&this.once("flush",s),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}onError(e){u.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let n=0;const s=e.length;for(;n<s;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}u.protocol=l.protocol},"../../node_modules/engine.io-client/build/esm/transport.js":(e,t,n)=>{"use strict";n.d(t,{Transport:()=>l});var s=n("../../node_modules/engine.io-parser/build/esm/index.js"),r=n("../../node_modules/@socket.io/component-emitter/lib/esm/index.js"),o=n("../../node_modules/engine.io-client/build/esm/util.js"),i=n("../../node_modules/engine.io-client/build/esm/contrib/parseqs.js");class a extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class l extends r.Emitter{constructor(e){super(),this.writable=!1,(0,o.installTimerFunctions)(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,n){return super.emitReserved("error",new a(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=(0,s.decodePacket)(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=(0,i.encode)(e);return t.length?"?"+t:""}}},"../../node_modules/engine.io-client/build/esm/transports/index.js":(e,t,n)=>{"use strict";n.d(t,{transports:()=>i});var s=n("../../node_modules/engine.io-client/build/esm/transports/polling.js"),r=n("../../node_modules/engine.io-client/build/esm/transports/websocket.js"),o=n("../../node_modules/engine.io-client/build/esm/transports/webtransport.js");const i={websocket:r.WS,webtransport:o.WT,polling:s.Polling}},"../../node_modules/engine.io-client/build/esm/transports/polling.js":(e,t,n)=>{"use strict";n.d(t,{Polling:()=>p});var s=n("../../node_modules/engine.io-client/build/esm/transport.js"),r=n("../../node_modules/engine.io-client/build/esm/contrib/yeast.js"),o=n("../../node_modules/engine.io-parser/build/esm/index.js"),i=n("../../node_modules/engine.io-client/build/esm/transports/xmlhttprequest.browser.js"),a=n("../../node_modules/@socket.io/component-emitter/lib/esm/index.js"),l=n("../../node_modules/engine.io-client/build/esm/util.js"),c=n("../../node_modules/engine.io-client/build/esm/globalThis.browser.js");function u(){}const d=null!=new i.XHR({xdomain:!1}).responseType;class p extends s.Transport{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port}const t=e&&e.forceBase64;this.supportsBinary=d&&!t,this.opts.withCredentials&&(this.cookieJar=(0,i.createCookieJar)())}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){(0,o.decodePayload)(e,this.socket.binaryType).forEach(e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)}),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,(0,o.encodePayload)(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=(0,r.yeast)()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new m(this.uri(),e)}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}class m extends a.Emitter{constructor(e,t){super(),(0,l.installTimerFunctions)(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=void 0!==t.data?t.data:null,this.create()}create(){var e;const t=(0,l.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const n=this.xhr=new i.XHR(t);try{n.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let e in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&n.setRequestHeader(e,this.opts.extraHeaders[e])}}catch(e){}if("POST"===this.method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{n.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this.opts.cookieJar)||void 0===e||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{var e;3===n.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(n)),4===n.readyState&&(200===n.status||1223===n.status?this.onLoad():this.setTimeoutFn(()=>{this.onError("number"==typeof n.status?n.status:0)},0))},n.send(this.data)}catch(e){return void this.setTimeoutFn(()=>{this.onError(e)},0)}"undefined"!=typeof document&&(this.index=m.requestsCount++,m.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=u,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete m.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(m.requestsCount=0,m.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",h);else if("function"==typeof addEventListener){const e="onpagehide"in c.globalThisShim?"pagehide":"unload";addEventListener(e,h,!1)}function h(){for(let e in m.requests)m.requests.hasOwnProperty(e)&&m.requests[e].abort()}},"../../node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js":(e,t,n)=>{"use strict";n.d(t,{WebSocket:()=>o,defaultBinaryType:()=>a,nextTick:()=>r,usingBrowserWebSocket:()=>i});var s=n("../../node_modules/engine.io-client/build/esm/globalThis.browser.js");const r="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),o=s.globalThisShim.WebSocket||s.globalThisShim.MozWebSocket,i=!0,a="arraybuffer"},"../../node_modules/engine.io-client/build/esm/transports/websocket.js":(e,t,n)=>{"use strict";n.d(t,{WS:()=>c});var s=n("../../node_modules/engine.io-client/build/esm/transport.js"),r=n("../../node_modules/engine.io-client/build/esm/contrib/yeast.js"),o=n("../../node_modules/engine.io-client/build/esm/util.js"),i=n("../../node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js"),a=n("../../node_modules/engine.io-parser/build/esm/index.js");const l="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class c extends s.Transport{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,n=l?{}:(0,o.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=i.usingBrowserWebSocket&&!l?t?new i.WebSocket(e,t):new i.WebSocket(e):new i.WebSocket(e,t,n)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],s=t===e.length-1;(0,a.encodePacket)(n,this.supportsBinary,e=>{const t={};if(!i.usingBrowserWebSocket&&(n.options&&(t.compress=n.options.compress),this.opts.perMessageDeflate)){("string"==typeof e?Buffer.byteLength(e):e.length)<this.opts.perMessageDeflate.threshold&&(t.compress=!1)}try{i.usingBrowserWebSocket?this.ws.send(e):this.ws.send(e,t)}catch(e){}s&&(0,i.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=(0,r.yeast)()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!i.WebSocket}}},"../../node_modules/engine.io-client/build/esm/transports/webtransport.js":(e,t,n)=>{"use strict";n.d(t,{WT:()=>i});var s=n("../../node_modules/engine.io-client/build/esm/transport.js"),r=n("../../node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js"),o=n("../../node_modules/engine.io-parser/build/esm/index.js");class i extends s.Transport{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{const t=(0,o.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),s=(0,o.createPacketEncoderStream)();s.readable.pipeTo(e.writable),this.writer=s.writable.getWriter();const r=()=>{n.read().then(({done:e,value:t})=>{e||(this.onPacket(t),r())}).catch(e=>{})};r();const i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this.writer.write(i).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],s=t===e.length-1;this.writer.write(n).then(()=>{s&&(0,r.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}}},"../../node_modules/engine.io-client/build/esm/transports/xmlhttprequest.browser.js":(e,t,n)=>{"use strict";n.d(t,{XHR:()=>o,createCookieJar:()=>i});var s=n("../../node_modules/engine.io-client/build/esm/contrib/has-cors.js"),r=n("../../node_modules/engine.io-client/build/esm/globalThis.browser.js");function o(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||s.hasCORS))return new XMLHttpRequest}catch(e){}if(!t)try{return new(r.globalThisShim[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}function i(){}},"../../node_modules/engine.io-client/build/esm/util.js":(e,t,n)=>{"use strict";n.d(t,{byteLength:()=>c,installTimerFunctions:()=>a,pick:()=>r});var s=n("../../node_modules/engine.io-client/build/esm/globalThis.browser.js");function r(e,...t){return t.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{})}const o=s.globalThisShim.setTimeout,i=s.globalThisShim.clearTimeout;function a(e,t){t.useNativeTimers?(e.setTimeoutFn=o.bind(s.globalThisShim),e.clearTimeoutFn=i.bind(s.globalThisShim)):(e.setTimeoutFn=s.globalThisShim.setTimeout.bind(s.globalThisShim),e.clearTimeoutFn=s.globalThisShim.clearTimeout.bind(s.globalThisShim))}const l=1.33;function c(e){return"string"==typeof e?function(e){let t=0,n=0;for(let s=0,r=e.length;s<r;s++)t=e.charCodeAt(s),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(s++,n+=4);return n}(e):Math.ceil((e.byteLength||e.size)*l)}},"../../node_modules/engine.io-parser/build/esm/commons.js":(e,t,n)=>{"use strict";n.d(t,{ERROR_PACKET:()=>o,PACKET_TYPES:()=>s,PACKET_TYPES_REVERSE:()=>r});const s=Object.create(null);s.open="0",s.close="1",s.ping="2",s.pong="3",s.message="4",s.upgrade="5",s.noop="6";const r=Object.create(null);Object.keys(s).forEach(e=>{r[s[e]]=e});const o={type:"error",data:"parser error"}},"../../node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js":(e,t,n)=>{"use strict";n.d(t,{decode:()=>o});const s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<64;e++)r[s.charCodeAt(e)]=e;const o=e=>{let t,n,s,o,i,a=.75*e.length,l=e.length,c=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);const u=new ArrayBuffer(a),d=new Uint8Array(u);for(t=0;t<l;t+=4)n=r[e.charCodeAt(t)],s=r[e.charCodeAt(t+1)],o=r[e.charCodeAt(t+2)],i=r[e.charCodeAt(t+3)],d[c++]=n<<2|s>>4,d[c++]=(15&s)<<4|o>>2,d[c++]=(3&o)<<6|63&i;return u}},"../../node_modules/engine.io-parser/build/esm/decodePacket.browser.js":(e,t,n)=>{"use strict";n.d(t,{decodePacket:()=>i});var s=n("../../node_modules/engine.io-parser/build/esm/commons.js"),r=n("../../node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js");const o="function"==typeof ArrayBuffer,i=(e,t)=>{if("string"!=typeof e)return{type:"message",data:l(e,t)};const n=e.charAt(0);if("b"===n)return{type:"message",data:a(e.substring(1),t)};return s.PACKET_TYPES_REVERSE[n]?e.length>1?{type:s.PACKET_TYPES_REVERSE[n],data:e.substring(1)}:{type:s.PACKET_TYPES_REVERSE[n]}:s.ERROR_PACKET},a=(e,t)=>{if(o){const n=(0,r.decode)(e);return l(n,t)}return{base64:!0,data:e}},l=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer},"../../node_modules/engine.io-parser/build/esm/encodePacket.browser.js":(e,t,n)=>{"use strict";n.d(t,{encodePacket:()=>a,encodePacketToBinary:()=>d});var s=n("../../node_modules/engine.io-parser/build/esm/commons.js");const r="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),o="function"==typeof ArrayBuffer,i=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,a=({type:e,data:t},n,a)=>r&&t instanceof Blob?n?a(t):l(t,a):o&&(t instanceof ArrayBuffer||i(t))?n?a(t):l(new Blob([t]),a):a(s.PACKET_TYPES[e]+(t||"")),l=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function c(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let u;function d(e,t){return r&&e.data instanceof Blob?e.data.arrayBuffer().then(c).then(t):o&&(e.data instanceof ArrayBuffer||i(e.data))?t(c(e.data)):void a(e,!1,e=>{u||(u=new TextEncoder),t(u.encode(e))})}},"../../node_modules/engine.io-parser/build/esm/index.js":(e,t,n)=>{"use strict";n.d(t,{createPacketDecoderStream:()=>m,createPacketEncoderStream:()=>c,decodePacket:()=>r.decodePacket,decodePayload:()=>l,encodePacket:()=>s.encodePacket,encodePayload:()=>a,protocol:()=>h});var s=n("../../node_modules/engine.io-parser/build/esm/encodePacket.browser.js"),r=n("../../node_modules/engine.io-parser/build/esm/decodePacket.browser.js"),o=n("../../node_modules/engine.io-parser/build/esm/commons.js");const i=String.fromCharCode(30),a=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((e,a)=>{(0,s.encodePacket)(e,!1,e=>{r[a]=e,++o===n&&t(r.join(i))})})},l=(e,t)=>{const n=e.split(i),s=[];for(let e=0;e<n.length;e++){const o=(0,r.decodePacket)(n[e],t);if(s.push(o),"error"===o.type)break}return s};function c(){return new TransformStream({transform(e,t){(0,s.encodePacketToBinary)(e,n=>{const s=n.length;let r;if(s<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,s);else if(s<65536){r=new Uint8Array(3);const e=new DataView(r.buffer);e.setUint8(0,126),e.setUint16(1,s)}else{r=new Uint8Array(9);const e=new DataView(r.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(s))}e.data&&"string"!=typeof e.data&&(r[0]|=128),t.enqueue(r),t.enqueue(n)})}})}let u;function d(e){return e.reduce((e,t)=>e+t.length,0)}function p(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let s=0;for(let r=0;r<t;r++)n[r]=e[0][s++],s===e[0].length&&(e.shift(),s=0);return e.length&&s<e[0].length&&(e[0]=e[0].slice(s)),n}function m(e,t){u||(u=new TextDecoder);const n=[];let s=0,i=-1,a=!1;return new TransformStream({transform(l,c){for(n.push(l);;){if(0===s){if(d(n)<1)break;const e=p(n,1);a=!(128&~e[0]),i=127&e[0],s=i<126?3:126===i?1:2}else if(1===s){if(d(n)<2)break;const e=p(n,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),s=3}else if(2===s){if(d(n)<8)break;const e=p(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),r=t.getUint32(0);if(r>Math.pow(2,21)-1){c.enqueue(o.ERROR_PACKET);break}i=r*Math.pow(2,32)+t.getUint32(4),s=3}else{if(d(n)<i)break;const e=p(n,i);c.enqueue((0,r.decodePacket)(a?e:u.decode(e),t)),s=0}if(0===i||i>e){c.enqueue(o.ERROR_PACKET);break}}}})}const h=4},"../../node_modules/lib0/array.js":(e,t,n)=>{"use strict";n.d(t,{from:()=>s});n("../../node_modules/lib0/set.js");const s=Array.from;Array.isArray},"../../node_modules/lib0/map.js":(e,t,n)=>{"use strict";n.d(t,{create:()=>s,setIfUndefined:()=>r});const s=()=>new Map,r=(e,t,n)=>{let s=e.get(t);return void 0===s&&e.set(t,s=n()),s}},"../../node_modules/lib0/observable.js":(e,t,n)=>{"use strict";n.d(t,{Observable:()=>i});var s=n("../../node_modules/lib0/map.js"),r=n("../../node_modules/lib0/set.js"),o=n("../../node_modules/lib0/array.js");class i{constructor(){this._observers=s.create()}on(e,t){s.setIfUndefined(this._observers,e,r.create).add(t)}once(e,t){const n=(...s)=>{this.off(e,n),t(...s)};this.on(e,n)}off(e,t){const n=this._observers.get(e);void 0!==n&&(n.delete(t),0===n.size&&this._observers.delete(e))}emit(e,t){return o.from((this._observers.get(e)||s.create()).values()).forEach(e=>e(...t))}destroy(){this._observers=s.create()}}},"../../node_modules/lib0/set.js":(e,t,n)=>{"use strict";n.d(t,{create:()=>s,from:()=>r});const s=()=>new Set,r=e=>new Set(e)},"../../node_modules/rrweb/dist/rrweb.js":(e,t,n)=>{"use strict";n.d(t,{EventType:()=>ve,record:()=>vt});var s,r=Object.defineProperty,o=(e,t,n)=>(((e,t,n)=>{t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),i=Object.defineProperty,a=(e,t,n)=>(((e,t,n)=>{t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),l=(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))(l||{});function c(e){return e.nodeType===e.ELEMENT_NODE}function u(e){const t=null==e?void 0:e.host;return Boolean((null==t?void 0:t.shadowRoot)===e)}function d(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function p(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,m).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function m(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=p(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(e.cssText);return t||e.cssText}class h{constructor(){a(this,"idNodeMap",new Map),a(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;return(null==(t=this.getMeta(e))?void 0:t.id)??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function A(){return new h}function g({element:e,maskInputOptions:t,tagName:n,type:s,value:r,maskInputFn:o}){let i=r||"";const a=s&&f(s);return(t[n.toLowerCase()]||a&&t[a])&&(i=o?o(i,e):"*".repeat(i.length)),i}function f(e){return e.toLowerCase()}const _="__rrweb_original__";function E(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?f(t):null}function b(e,t){let n;try{n=new URL(e,t??window.location.href)}catch(e){return null}const s=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(null==s?void 0:s[1])??null}let y=1;const T=new RegExp("[^a-z0-9-_:]"),S=-2;function v(){return y++}let C,R;const I=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,w=/^(?:[a-z+]+:)?\/\//i,L=/^www\..*/i,O=/^(data:)([^,]*),(.*)/i;function P(e,t){return(e||"").replace(I,(e,n,s,r,o,i)=>{const a=s||o||i,l=n||r||"";if(!a)return e;if(w.test(a)||L.test(a))return`url(${l}${a}${l})`;if(O.test(a))return`url(${l}${a}${l})`;if("/"===a[0])return`url(${l}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${l})`;const c=t.split("/"),u=a.split("/");c.pop();for(const e of u)"."!==e&&(".."===e?c.pop():c.push(e));return`url(${l}${c.join("/")}${l})`})}const N=/^[^ \t\n\r\u000c]+/,x=/^[, \t\n\r\u000c]+/;const M=new WeakMap;function k(e,t){return t&&""!==t.trim()?B(e,t):t}function D(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function B(e,t){let n=M.get(e);if(n||(n=e.createElement("a"),M.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function j(e,t,n,s){return s?"src"===n||"href"===n&&("use"!==t||"#"!==s[0])||"xlink:href"===n&&"#"!==s[0]?k(e,s):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function s(e){let s;const r=e.exec(t.substring(n));return r?(s=r[0],n+=s.length,s):""}const r=[];for(;s(x),!(n>=t.length);){let o=s(N);if(","===o.slice(-1))o=k(e,o.substring(0,o.length-1)),r.push(o);else{let s="";o=k(e,o);let i=!1;for(;;){const e=t.charAt(n);if(""===e){r.push((o+s).trim());break}if(i)")"===e&&(i=!1);else{if(","===e){n+=1,r.push((o+s).trim());break}"("===e&&(i=!0)}s+=e,n+=1}}}return r.join(", ")}(e,s):"style"===n?P(s,B(e)):"object"===t&&"data"===n?k(e,s):s:k(e,s):s}function U(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function G(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!n&&G(e.parentNode,t,n);for(let n=e.classList.length;n--;){const s=e.classList[n];if(t.test(s))return!0}return!!n&&G(e.parentNode,t,n)}function F(e,t,n,s){try{const r=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===r)return!1;if("string"==typeof t){if(s){if(r.closest(`.${t}`))return!0}else if(r.classList.contains(t))return!0}else if(G(r,t,s))return!0;if(n)if(s){if(r.closest(n))return!0}else if(r.matches(n))return!0}catch(e){}return!1}function H(e,t){const{doc:n,mirror:s,blockClass:r,blockSelector:o,needsMask:i,inlineStylesheet:a,maskInputOptions:c={},maskTextFn:u,maskInputFn:d,dataURLOptions:m={},inlineImages:h,recordCanvas:A,keepIframeSrcFn:b,newlyAddedElement:y=!1}=t,S=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,s);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:l.Document,childNodes:[],compatMode:e.compatMode}:{type:l.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:l.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:S};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:s,blockSelector:r,inlineStylesheet:o,maskInputOptions:i={},maskInputFn:a,dataURLOptions:c={},inlineImages:u,recordCanvas:d,keepIframeSrcFn:m,newlyAddedElement:h=!1,rootId:A}=t,b=function(e,t,n){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const s=e.classList[n];if(t.test(s))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,s,r),y=function(e){if(e instanceof HTMLFormElement)return"form";const t=f(e.tagName);return T.test(t)?"div":t}(e);let S={};const v=e.attributes.length;for(let t=0;t<v;t++){const s=e.attributes[t];U(y,s.name,s.value)||(S[s.name]=j(n,y,f(s.name),s.value))}if("link"===y&&o){const t=Array.from(n.styleSheets).find(t=>t.href===e.href);let s=null;t&&(s=p(t)),s&&(delete S.rel,delete S.href,S._cssText=P(s,t.href))}if("style"===y&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=p(e.sheet);t&&(S._cssText=P(t,B(n)))}if("input"===y||"textarea"===y||"select"===y){const t=e.value,n=e.checked;"radio"!==S.type&&"checkbox"!==S.type&&"submit"!==S.type&&"button"!==S.type&&t?S.value=g({element:e,type:E(e),tagName:y,value:t,maskInputOptions:i,maskInputFn:a}):n&&(S.checked=n)}"option"===y&&(e.selected&&!i.select?S.selected=!0:delete S.selected);if("canvas"===y&&d)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let s=0;s<e.height;s+=50){const r=t.getImageData,o=_ in r?r[_]:r;if(new Uint32Array(o.call(t,n,s,Math.min(50,e.width-n),Math.min(50,e.height-s)).data.buffer).some(e=>0!==e))return!1}return!0})(e)||(S.rr_dataURL=e.toDataURL(c.type,c.quality));else if(!("__context"in e)){const t=e.toDataURL(c.type,c.quality),s=n.createElement("canvas");s.width=e.width,s.height=e.height;t!==s.toDataURL(c.type,c.quality)&&(S.rr_dataURL=t)}if("img"===y&&u){C||(C=n.createElement("canvas"),R=C.getContext("2d"));const t=e,s=t.currentSrc||t.getAttribute("src")||"<unknown-src>",r=t.crossOrigin,o=()=>{t.removeEventListener("load",o);try{C.width=t.naturalWidth,C.height=t.naturalHeight,R.drawImage(t,0,0),S.rr_dataURL=C.toDataURL(c.type,c.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o));console.warn(`Cannot inline img src=${s}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(r?S.crossOrigin=r:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o)}if("audio"===y||"video"===y){const t=S;t.rr_mediaState=e.paused?"paused":"played",t.rr_mediaCurrentTime=e.currentTime,t.rr_mediaPlaybackRate=e.playbackRate,t.rr_mediaMuted=e.muted,t.rr_mediaLoop=e.loop,t.rr_mediaVolume=e.volume}h||(e.scrollLeft&&(S.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(S.rr_scrollTop=e.scrollTop));if(b){const{width:t,height:n}=e.getBoundingClientRect();S={class:S.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==y||m(S.src)||(e.contentDocument||(S.rr_src=S.src),delete S.src);let I;try{customElements.get(y)&&(I=!0)}catch(e){}return{type:l.Element,tagName:y,attributes:S,childNodes:[],isSVG:D(e)||void 0,needBlock:b,rootId:A,isCustom:I}}(e,{doc:n,blockClass:r,blockSelector:o,inlineStylesheet:a,maskInputOptions:c,maskInputFn:d,dataURLOptions:m,inlineImages:h,recordCanvas:A,keepIframeSrcFn:b,newlyAddedElement:y,rootId:S});case e.TEXT_NODE:return function(e,t){var n;const{needsMask:s,maskTextFn:r,rootId:o}=t,i=e.parentNode&&e.parentNode.tagName;let a=e.textContent;const c="STYLE"===i||void 0,u="SCRIPT"===i||void 0;if(c&&a){try{e.nextSibling||e.previousSibling||(null==(n=e.parentNode.sheet)?void 0:n.cssRules)&&(a=p(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}a=P(a,B(t.doc))}u&&(a="SCRIPT_PLACEHOLDER");!c&&!u&&a&&s&&(a=r?r(a,e.parentElement):a.replace(/[\S]/g,"*"));return{type:l.Text,textContent:a||"",isStyle:c,rootId:o}}(e,{doc:n,needsMask:i,maskTextFn:u,rootId:S});case e.CDATA_SECTION_NODE:return{type:l.CDATA,textContent:"",rootId:S};case e.COMMENT_NODE:return{type:l.Comment,textContent:e.textContent||"",rootId:S};default:return!1}}function Y(e){return null==e?"":e.toLowerCase()}function z(e,t){const{doc:n,mirror:s,blockClass:r,blockSelector:o,maskTextClass:i,maskTextSelector:a,skipChild:p=!1,inlineStylesheet:m=!0,maskInputOptions:h={},maskTextFn:A,maskInputFn:g,slimDOMOptions:f,dataURLOptions:_={},inlineImages:E=!1,recordCanvas:y=!1,onSerialize:T,onIframeLoad:C,iframeLoadTimeout:R=5e3,onStylesheetLoad:I,stylesheetLoadTimeout:w=5e3,keepIframeSrcFn:L=()=>!1,newlyAddedElement:O=!1}=t;let{needsMask:P}=t,{preserveWhiteSpace:N=!0}=t;if(!P&&e.childNodes){P=F(e,i,a,void 0===P)}const x=H(e,{doc:n,mirror:s,blockClass:r,blockSelector:o,needsMask:P,inlineStylesheet:m,maskInputOptions:h,maskTextFn:A,maskInputFn:g,dataURLOptions:_,inlineImages:E,recordCanvas:y,keepIframeSrcFn:L,newlyAddedElement:O});if(!x)return console.warn(e,"not serialized"),null;let M;M=s.hasNode(e)?s.getId(e):!function(e,t){if(t.comment&&e.type===l.Comment)return!0;if(e.type===l.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===b(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Y(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Y(e.attributes.name)||"icon"===Y(e.attributes.rel)||"apple-touch-icon"===Y(e.attributes.rel)||"shortcut icon"===Y(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Y(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Y(e.attributes.property).match(/^(og|twitter|fb):/)||Y(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Y(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Y(e.attributes.name)||"googlebot"===Y(e.attributes.name)||"bingbot"===Y(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Y(e.attributes.name)||"generator"===Y(e.attributes.name)||"framework"===Y(e.attributes.name)||"publisher"===Y(e.attributes.name)||"progid"===Y(e.attributes.name)||Y(e.attributes.property).match(/^article:/)||Y(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Y(e.attributes.name)||"yandex-verification"===Y(e.attributes.name)||"csrf-token"===Y(e.attributes.name)||"p:domain_verify"===Y(e.attributes.name)||"verify-v1"===Y(e.attributes.name)||"verification"===Y(e.attributes.name)||"shopify-checkout-api-token"===Y(e.attributes.name)))return!0}}return!1}(x,f)&&(N||x.type!==l.Text||x.isStyle||x.textContent.replace(/^\s+|\s+$/gm,"").length)?v():S;const k=Object.assign(x,{id:M});if(s.add(e,k),M===S)return null;T&&T(e);let D=!p;if(k.type===l.Element){D=D&&!k.needBlock,delete k.needBlock;const t=e.shadowRoot;t&&d(t)&&(k.isShadowHost=!0)}if((k.type===l.Document||k.type===l.Element)&&D){f.headWhitespace&&k.type===l.Element&&"head"===k.tagName&&(N=!1);const t={doc:n,mirror:s,blockClass:r,blockSelector:o,needsMask:P,maskTextClass:i,maskTextSelector:a,skipChild:p,inlineStylesheet:m,maskInputOptions:h,maskTextFn:A,maskInputFn:g,slimDOMOptions:f,dataURLOptions:_,inlineImages:E,recordCanvas:y,preserveWhiteSpace:N,onSerialize:T,onIframeLoad:C,iframeLoadTimeout:R,onStylesheetLoad:I,stylesheetLoadTimeout:w,keepIframeSrcFn:L};if(k.type===l.Element&&"textarea"===k.tagName&&void 0!==k.attributes.value);else for(const n of Array.from(e.childNodes)){const e=z(n,t);e&&k.childNodes.push(e)}if(c(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const s=z(n,t);s&&(d(e.shadowRoot)&&(s.isShadow=!0),k.childNodes.push(s))}}return e.parentNode&&u(e.parentNode)&&d(e.parentNode)&&(k.isShadow=!0),k.type===l.Element&&"iframe"===k.tagName&&function(e,t,n){const s=e.contentWindow;if(!s)return;let r,o=!1;try{r=s.document.readyState}catch(e){return}if("complete"!==r){const s=setTimeout(()=>{o||(t(),o=!0)},n);return void e.addEventListener("load",()=>{clearTimeout(s),o=!0,t()})}const i="about:blank";if(s.location.href!==i||e.src===i||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{const t=e.contentDocument;if(t&&C){const n=z(t,{doc:t,mirror:s,blockClass:r,blockSelector:o,needsMask:P,maskTextClass:i,maskTextSelector:a,skipChild:!1,inlineStylesheet:m,maskInputOptions:h,maskTextFn:A,maskInputFn:g,slimDOMOptions:f,dataURLOptions:_,inlineImages:E,recordCanvas:y,preserveWhiteSpace:N,onSerialize:T,onIframeLoad:C,iframeLoadTimeout:R,onStylesheetLoad:I,stylesheetLoadTimeout:w,keepIframeSrcFn:L});n&&C(e,n)}},R),k.type===l.Element&&"link"===k.tagName&&"string"==typeof k.attributes.rel&&("stylesheet"===k.attributes.rel||"preload"===k.attributes.rel&&"string"==typeof k.attributes.href&&"css"===b(k.attributes.href))&&function(e,t,n){let s,r=!1;try{s=e.sheet}catch(e){return}if(s)return;const o=setTimeout(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{clearTimeout(o),r=!0,t()})}(e,()=>{if(I){const t=z(e,{doc:n,mirror:s,blockClass:r,blockSelector:o,needsMask:P,maskTextClass:i,maskTextSelector:a,skipChild:!1,inlineStylesheet:m,maskInputOptions:h,maskTextFn:A,maskInputFn:g,slimDOMOptions:f,dataURLOptions:_,inlineImages:E,recordCanvas:y,preserveWhiteSpace:N,onSerialize:T,onIframeLoad:C,iframeLoadTimeout:R,onStylesheetLoad:I,stylesheetLoadTimeout:w,keepIframeSrcFn:L});t&&I(e,t)}},w),k}const W=/(max|min)-device-(width|height)/,V=(new RegExp(W.source,"g"),/([^\\]):hover/);new RegExp(V.source,"g");function X(e,t,n=document){const s={capture:!0,passive:!0};return n.addEventListener(e,t,s),()=>n.removeEventListener(e,t,s)}const Z="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let q={map:{},getId:()=>(console.error(Z),-1),getNode:()=>(console.error(Z),null),removeNodeFromMap(){console.error(Z)},has:()=>(console.error(Z),!1),reset(){console.error(Z)}};function K(e,t,n={}){let s=null,r=0;return function(...o){const i=Date.now();r||!1!==n.leading||(r=i);const a=t-(i-r),l=this;a<=0||a>t?(s&&(clearTimeout(s),s=null),r=i,e.apply(l,o)):s||!1===n.trailing||(s=setTimeout(()=>{r=!1===n.leading?0:Date.now(),s=null,e.apply(l,o)},a))}}function Q(e,t,n,s,r=window){const o=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,s?n:{set(e){setTimeout(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>Q(e,t,o||{},!0)}function $(e,t,n){try{if(!(t in e))return()=>{};const s=e[t],r=n(s);return"function"==typeof r&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:s}})),e[t]=r,()=>{e[t]=s}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(q=new Proxy(q,{get:(e,t,n)=>("map"===t&&console.error(Z),Reflect.get(e,t,n))}));let J=Date.now;function ee(e){var t,n,s,r,o,i;const a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:(null==a?void 0:a.documentElement.scrollLeft)||(null==(n=null==(t=null==a?void 0:a.body)?void 0:t.parentElement)?void 0:n.scrollLeft)||(null==(s=null==a?void 0:a.body)?void 0:s.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==a?void 0:a.documentElement.scrollTop)||(null==(o=null==(r=null==a?void 0:a.body)?void 0:r.parentElement)?void 0:o.scrollTop)||(null==(i=null==a?void 0:a.body)?void 0:i.scrollTop)||0}}function te(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function ne(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function se(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}function re(e,t,n,s){if(!e)return!1;const r=se(e);if(!r)return!1;try{if("string"==typeof t){if(r.classList.contains(t))return!0;if(s&&null!==r.closest("."+t))return!0}else if(G(r,t,s))return!0}catch(e){}if(n){if(r.matches(n))return!0;if(s&&null!==r.closest(n))return!0}return!1}function oe(e,t){return-1!==t.getId(e)}function ie(e,t,n){return!("TITLE"!==e.tagName||!n.headTitleMutations)||t.getId(e)===S}function ae(e,t){if(u(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||ae(e.parentNode,t))}function le(e){return Boolean(e.changedTouches)}function ce(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),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}function ue(e){const t={},n=(e,n)=>{const s={value:e,parent:n,children:[]};return t[e.node.id]=s,s},s=[];for(const r of e){const{nextId:e,parentId:o}=r;if(e&&e in t){const o=t[e];if(o.parent){const e=o.parent.children.indexOf(o);o.parent.children.splice(e,0,n(r,o.parent))}else{const e=s.indexOf(o);s.splice(e,0,n(r,null))}continue}if(o in t){const e=t[o];e.children.push(n(r,e));continue}s.push(n(r,null))}return s}function de(e,t){t(e.value);for(let n=e.children.length-1;n>=0;n--)de(e.children[n],t)}function pe(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function me(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function he(e,t){var n,s;const r=null==(null==e.ownerDocument?void 0:n.defaultView)?void 0:s.frameElement;if(!r||r===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};const o=r.getBoundingClientRect(),i=he(r,t),a=o.height/r.clientHeight;return{x:o.x*i.relativeScale+i.x,y:o.y*i.relativeScale+i.y,relativeScale:a,absoluteScale:i.absoluteScale*a}}function Ae(e){return Boolean(null==e?void 0:e.shadowRoot)}function ge(e,t){const n=e[t[0]];return 1===t.length?n:ge(n.cssRules[t[1]].cssRules,t.slice(2))}function fe(e){const t=[...e],n=t.pop();return{positions:t,index:n}}function _e(e){const t=new Set,n=[];for(let s=e.length;s--;){const r=e[s];t.has(r.id)||(n.push(r),t.add(r.id))}return n}/[1-9][0-9]{12}/.test(Date.now().toString())||(J=()=>(new Date).getTime());class Ee{constructor(){o(this,"id",1),o(this,"styleIDMap",new WeakMap),o(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function be(e){var t,n;let s=null;return(null==(n=null==(t=e.getRootNode)?void 0:t.call(e))?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(s=e.getRootNode().host),s}function ye(e){let t,n=e;for(;t=be(n);)n=t;return n}function Te(e){const t=e.ownerDocument;if(!t)return!1;const n=ye(e);return t.contains(n)}function Se(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||Te(e))}Symbol.toStringTag;var ve=(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))(ve||{}),Ce=(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))(Ce||{}),Re=(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))(Re||{}),Ie=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Ie||{}),we=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(we||{}),Le=(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))(Le||{});function Oe(e){return"__ln"in e}class Pe{constructor(){o(this,"length",0),o(this,"head",null),o(this,"tail",null)}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=(null==t?void 0:t.next)||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Oe(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&Oe(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const Ne=(e,t)=>`${e}@${t}`;class xe{constructor(){o(this,"frozen",!1),o(this,"locked",!1),o(this,"texts",[]),o(this,"attributes",[]),o(this,"attributeMap",new WeakMap),o(this,"removes",[]),o(this,"mapRemoves",[]),o(this,"movedMap",{}),o(this,"addedSet",new Set),o(this,"movedSet",new Set),o(this,"droppedSet",new Set),o(this,"mutationCb"),o(this,"blockClass"),o(this,"blockSelector"),o(this,"maskTextClass"),o(this,"maskTextSelector"),o(this,"inlineStylesheet"),o(this,"maskInputOptions"),o(this,"maskTextFn"),o(this,"maskInputFn"),o(this,"keepIframeSrcFn"),o(this,"recordCanvas"),o(this,"inlineImages"),o(this,"slimDOMOptions"),o(this,"dataURLOptions"),o(this,"doc"),o(this,"mirror"),o(this,"iframeManager"),o(this,"stylesheetManager"),o(this,"shadowDomManager"),o(this,"canvasManager"),o(this,"processedNodeManager"),o(this,"unattachedDoc"),o(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),o(this,"emit",()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new Pe,s=e=>{let t=e,n=S;for(;n===S;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},r=r=>{if(!r.parentNode||!Se(r)||"TEXTAREA"===r.parentNode.tagName)return;const o=u(r.parentNode)?this.mirror.getId(be(r)):this.mirror.getId(r.parentNode),i=s(r);if(-1===o||-1===i)return n.addNode(r);const a=z(r,{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:e=>{pe(e,this.mirror)&&this.iframeManager.addIframe(e),me(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Ae(r)&&this.shadowDomManager.addShadowRoot(r.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});a&&(e.push({parentId:o,nextId:i,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)ke(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||r(e);for(const e of this.addedSet)De(this.droppedSet,e)||ke(this.removes,e,this.mirror)?De(this.movedSet,e)?r(e):this.droppedSet.add(e):r(e);let o=null;for(;n.length;){let e=null;if(o){const t=this.mirror.getId(o.value.parentNode),n=s(o.value);-1!==t&&-1!==n&&(e=o)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===s(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const s=t.parentNode.host;if(-1!==this.mirror.getId(s)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}o=e.previous,n.removeNode(e.value),r(e.value)}const i={texts:this.texts.map(e=>{const t=e.node;return t.parentNode&&"TEXTAREA"===t.parentNode.tagName&&this.genTextAreaValueMutation(t.parentNode),{id:this.mirror.getId(t),value:e.value}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),s=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+s).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(i.texts.length||i.attributes.length||i.removes.length||i.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.movedMap={},this.mutationCb(i))}),o(this,"genTextAreaValueMutation",e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t)),t.attributes.value=Array.from(e.childNodes,e=>e.textContent||"").join("")}),o(this,"processMutation",e=>{if(!ie(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":{const t=e.target.textContent;re(e.target,this.blockClass,this.blockSelector,!1)||t===e.oldValue||this.texts.push({value:F(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,se(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,s=e.target.getAttribute(n);if("value"===n){const e=E(t);s=g({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:e,value:s,maskInputFn:this.maskInputFn})}if(re(e.target,this.blockClass,this.blockSelector,!1)||s===e.oldValue)return;let r=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(s)){if(t.contentDocument)return;n="rr_src"}if(r||(r={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(e.target,r)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!U(t.tagName,n)&&(r.attributes[n]=j(this.doc,f(t.tagName),f(n),s),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const s=t.style.getPropertyValue(e),o=t.style.getPropertyPriority(e);s!==n.style.getPropertyValue(e)||o!==n.style.getPropertyPriority(e)?r.styleDiff[e]=""===o?s:[s,o]:r._unchangedStyles[e]=[s,o]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(r.styleDiff[e]=!1)}break}case"childList":if(re(e.target,this.blockClass,this.blockSelector,!0))return;if("TEXTAREA"===e.target.tagName)return void this.genTextAreaValueMutation(e.target);e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{const n=this.mirror.getId(t),s=u(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);re(e.target,this.blockClass,this.blockSelector,!1)||ie(t,this.mirror,this.slimDOMOptions)||!oe(t,this.mirror)||(this.addedSet.has(t)?(Me(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||ae(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Ne(n,s)]?Me(this.movedSet,t):this.removes.push({parentId:s,id:n,isShadow:!(!u(e.target)||!d(e.target))||void 0})),this.mapRemoves.push(t))})}}),o(this,"genAdds",(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(ie(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[Ne(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);re(e,this.blockClass,this.blockSelector,!1)||(e.childNodes.forEach(e=>this.genAdds(e)),Ae(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}})}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}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 Me(e,t){e.delete(t),t.childNodes.forEach(t=>Me(e,t))}function ke(e,t,n){return 0!==e.length&&function(e,t,n){let s=t.parentNode;for(;s;){const t=n.getId(s);if(e.some(e=>e.id===t))return!0;s=s.parentNode}return!1}(e,t,n)}function De(e,t){return 0!==e.size&&Be(e,t)}function Be(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||Be(e,n))}let je;const Ue=e=>{if(!je)return e;return(...t)=>{try{return e(...t)}catch(e){if(je&&!0===je(e))return;throw e}}},Ge=[];function Fe(e){try{if("composedPath"in e){const 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 He(e,t){var n,s;const r=new xe;Ge.push(r),r.init(e);let o=window.MutationObserver||window.__rrMutationObserver;const i=null==(s=null==(n=null==window?void 0:window.Zone)?void 0:n.__symbol__)?void 0:s.call(n,"MutationObserver");i&&window[i]&&(o=window[i]);const a=new o(Ue(r.processMutations.bind(r)));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function Ye({mouseInteractionCb:e,doc:t,mirror:n,blockClass:s,blockSelector:r,sampling:o}){if(!1===o.mouseInteraction)return()=>{};const i=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,a=[];let l=null;return Object.keys(Re).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==i[e]).forEach(o=>{let i=f(o);const c=(t=>o=>{const i=Fe(o);if(re(i,s,r,!0))return;let a=null,c=t;if("pointerType"in o){switch(o.pointerType){case"mouse":a=Ie.Mouse;break;case"touch":a=Ie.Touch;break;case"pen":a=Ie.Pen}a===Ie.Touch?Re[t]===Re.MouseDown?c="TouchStart":Re[t]===Re.MouseUp&&(c="TouchEnd"):Ie.Pen}else le(o)&&(a=Ie.Touch);null!==a?(l=a,(c.startsWith("Touch")&&a===Ie.Touch||c.startsWith("Mouse")&&a===Ie.Mouse)&&(a=null)):Re[t]===Re.Click&&(a=l,l=null);const u=le(o)?o.changedTouches[0]:o;if(!u)return;const d=n.getId(i),{clientX:p,clientY:m}=u;Ue(e)({type:Re[c],id:d,x:p,y:m,...null!==a&&{pointerType:a}})})(o);if(window.PointerEvent)switch(Re[o]){case Re.MouseDown:case Re.MouseUp:i=i.replace("mouse","pointer");break;case Re.TouchStart:case Re.TouchEnd:return}a.push(X(i,c,t))}),Ue(()=>{a.forEach(e=>e())})}function ze({scrollCb:e,doc:t,mirror:n,blockClass:s,blockSelector:r,sampling:o}){return X("scroll",Ue(K(Ue(o=>{const i=Fe(o);if(!i||re(i,s,r,!0))return;const a=n.getId(i);if(i===t&&t.defaultView){const n=ee(t.defaultView);e({id:a,x:n.left,y:n.top})}else e({id:a,x:i.scrollLeft,y:i.scrollTop})}),o.scroll||100)),t)}const We=["INPUT","TEXTAREA","SELECT"],Ve=new WeakMap;function Xe(e){return function(e,t){if(Qe("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Qe("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Qe("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Qe("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Ze(e,t,n){let s,r;return e?(e.ownerNode?s=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:s}):{}}function qe({mirror:e,stylesheetManager:t},n){var s,r,o;let i=null;i="#document"===n.nodeName?e.getId(n):e.getId(n.host);const a="#document"===n.nodeName?null==(s=n.defaultView)?void 0:s.Document:null==(o=null==(r=n.ownerDocument)?void 0:r.defaultView)?void 0:o.ShadowRoot,l=(null==a?void 0:a.prototype)?Object.getOwnPropertyDescriptor(null==a?void 0:a.prototype,"adoptedStyleSheets"):void 0;return null!==i&&-1!==i&&a&&l?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var e;return null==(e=l.get)?void 0:e.call(this)},set(e){var n;const s=null==(n=l.set)?void 0:n.call(this,e);if(null!==i&&-1!==i)try{t.adoptStyleSheets(e,i)}catch(e){}return s}}),Ue(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})})):()=>{}}function Ke(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let s;!function(e,t){const{mutationCb:n,mousemoveCb:s,mouseInteractionCb:r,scrollCb:o,viewportResizeCb:i,inputCb:a,mediaInteractionCb:l,styleSheetRuleCb:c,styleDeclarationCb:u,canvasMutationCb:d,fontCb:p,selectionCb:m,customElementCb:h}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),n(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),s(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),r(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),o(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),i(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),a(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),l(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),c(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),u(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),d(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),p(...e)},e.selectionCb=(...e)=>{t.selection&&t.selection(...e),m(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),h(...e)}}(e,t),e.recordDOM&&(s=He(e,e.doc));const r=function({mousemoveCb:e,sampling:t,doc:n,mirror:s}){if(!1===t.mousemove)return()=>{};const r="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let i,a=[];const l=K(Ue(t=>{const n=Date.now()-i;e(a.map(e=>(e.timeOffset-=n,e)),t),a=[],i=null}),o),c=Ue(K(Ue(e=>{const t=Fe(e),{clientX:n,clientY:r}=le(e)?e.changedTouches[0]:e;i||(i=J()),a.push({x:n,y:r,id:s.getId(t),timeOffset:J()-i}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?Ce.Drag:e instanceof MouseEvent?Ce.MouseMove:Ce.TouchMove)}),r,{trailing:!1})),u=[X("mousemove",c,n),X("touchmove",c,n),X("drag",c,n)];return Ue(()=>{u.forEach(e=>e())})}(e),o=Ye(e),i=ze(e),a=function({viewportResizeCb:e},{win:t}){let n=-1,s=-1;return X("resize",Ue(K(Ue(()=>{const t=te(),r=ne();n===t&&s===r||(e({width:Number(r),height:Number(t)}),n=t,s=r)}),200)),t)}(e,{win:n}),l=function({inputCb:e,doc:t,mirror:n,blockClass:s,blockSelector:r,ignoreClass:o,ignoreSelector:i,maskInputOptions:a,maskInputFn:l,sampling:c,userTriggeredOnInput:u}){function d(e){let n=Fe(e);const c=e.isTrusted,d=n&&n.tagName;if(n&&"OPTION"===d&&(n=n.parentElement),!n||!d||We.indexOf(d)<0||re(n,s,r,!0))return;if(n.classList.contains(o)||i&&n.matches(i))return;let m=n.value,h=!1;const A=E(n)||"";"radio"===A||"checkbox"===A?h=n.checked:(a[d.toLowerCase()]||a[A])&&(m=g({element:n,maskInputOptions:a,tagName:d,type:A,value:m,maskInputFn:l})),p(n,u?{text:m,isChecked:h,userTriggered:c}:{text:m,isChecked:h});const f=n.name;"radio"===A&&f&&h&&t.querySelectorAll(`input[type="radio"][name="${f}"]`).forEach(e=>{if(e!==n){const t=e.value;p(e,u?{text:t,isChecked:!h,userTriggered:!1}:{text:t,isChecked:!h})}})}function p(t,s){const r=Ve.get(t);if(!r||r.text!==s.text||r.isChecked!==s.isChecked){Ve.set(t,s);const r=n.getId(t);Ue(e)({...s,id:r})}}const m=("last"===c.input?["change"]:["input","change"]).map(e=>X(e,Ue(d),t)),h=t.defaultView;if(!h)return()=>{m.forEach(e=>e())};const A=h.Object.getOwnPropertyDescriptor(h.HTMLInputElement.prototype,"value"),f=[[h.HTMLInputElement.prototype,"value"],[h.HTMLInputElement.prototype,"checked"],[h.HTMLSelectElement.prototype,"value"],[h.HTMLTextAreaElement.prototype,"value"],[h.HTMLSelectElement.prototype,"selectedIndex"],[h.HTMLOptionElement.prototype,"selected"]];return A&&A.set&&m.push(...f.map(e=>Q(e[0],e[1],{set(){Ue(d)({target:this,isTrusted:!1})}},!1,h))),Ue(()=>{m.forEach(e=>e())})}(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,mirror:s,sampling:r,doc:o}){const i=Ue(o=>K(Ue(r=>{const i=Fe(r);if(!i||re(i,t,n,!0))return;const{currentTime:a,volume:l,muted:c,playbackRate:u,loop:d}=i;e({type:o,id:s.getId(i),currentTime:a,volume:l,muted:c,playbackRate:u,loop:d})}),r.media||500)),a=[X("play",i(Le.Play),o),X("pause",i(Le.Pause),o),X("seeked",i(Le.Seeked),o),X("volumechange",i(Le.VolumeChange),o),X("ratechange",i(Le.RateChange),o)];return Ue(()=>{a.forEach(e=>e())})}(e);let u=()=>{},d=()=>{},p=()=>{},m=()=>{};e.recordDOM&&(u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:s}){if(!s.CSSStyleSheet||!s.CSSStyleSheet.prototype)return()=>{};const r=s.CSSStyleSheet.prototype.insertRule;s.CSSStyleSheet.prototype.insertRule=new Proxy(r,{apply:Ue((s,r,o)=>{const[i,a]=o,{id:l,styleId:c}=Ze(r,t,n.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:i,index:a}]}),s.apply(r,o)})});const o=s.CSSStyleSheet.prototype.deleteRule;let i,a;s.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:Ue((s,r,o)=>{const[i]=o,{id:a,styleId:l}=Ze(r,t,n.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:i}]}),s.apply(r,o)})}),s.CSSStyleSheet.prototype.replace&&(i=s.CSSStyleSheet.prototype.replace,s.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:Ue((s,r,o)=>{const[i]=o,{id:a,styleId:l}=Ze(r,t,n.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replace:i}),s.apply(r,o)})})),s.CSSStyleSheet.prototype.replaceSync&&(a=s.CSSStyleSheet.prototype.replaceSync,s.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:Ue((s,r,o)=>{const[i]=o,{id:a,styleId:l}=Ze(r,t,n.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replaceSync:i}),s.apply(r,o)})}));const l={};$e("CSSGroupingRule")?l.CSSGroupingRule=s.CSSGroupingRule:($e("CSSMediaRule")&&(l.CSSMediaRule=s.CSSMediaRule),$e("CSSConditionRule")&&(l.CSSConditionRule=s.CSSConditionRule),$e("CSSSupportsRule")&&(l.CSSSupportsRule=s.CSSSupportsRule));const c={};return Object.entries(l).forEach(([s,r])=>{c[s]={insertRule:r.prototype.insertRule,deleteRule:r.prototype.deleteRule},r.prototype.insertRule=new Proxy(c[s].insertRule,{apply:Ue((s,r,o)=>{const[i,a]=o,{id:l,styleId:c}=Ze(r.parentStyleSheet,t,n.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:i,index:[...Xe(r),a||0]}]}),s.apply(r,o)})}),r.prototype.deleteRule=new Proxy(c[s].deleteRule,{apply:Ue((s,r,o)=>{const[i]=o,{id:a,styleId:l}=Ze(r.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:[...Xe(r),i]}]}),s.apply(r,o)})})}),Ue(()=>{s.CSSStyleSheet.prototype.insertRule=r,s.CSSStyleSheet.prototype.deleteRule=o,i&&(s.CSSStyleSheet.prototype.replace=i),a&&(s.CSSStyleSheet.prototype.replaceSync=a),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule})})}(e,{win:n}),d=qe(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:s},{win:r}){const o=r.CSSStyleDeclaration.prototype.setProperty;r.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:Ue((r,i,a)=>{var l;const[c,u,d]=a;if(n.has(c))return o.apply(i,[c,u,d]);const{id:p,styleId:m}=Ze(null==(l=i.parentRule)?void 0:l.parentStyleSheet,t,s.styleMirror);return(p&&-1!==p||m&&-1!==m)&&e({id:p,styleId:m,set:{property:c,value:u,priority:d},index:Xe(i.parentRule)}),r.apply(i,a)})});const i=r.CSSStyleDeclaration.prototype.removeProperty;return r.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:Ue((r,o,a)=>{var l;const[c]=a;if(n.has(c))return i.apply(o,[c]);const{id:u,styleId:d}=Ze(null==(l=o.parentRule)?void 0:l.parentStyleSheet,t,s.styleMirror);return(u&&-1!==u||d&&-1!==d)&&e({id:u,styleId:d,remove:{property:c},index:Xe(o.parentRule)}),r.apply(o,a)})}),Ue(()=>{r.CSSStyleDeclaration.prototype.setProperty=o,r.CSSStyleDeclaration.prototype.removeProperty=i})}(e,{win:n}),e.collectFonts&&(m=function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const s=[],r=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,n){const s=new o(e,t,n);return r.set(s,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),s};const i=$(t.fonts,"add",function(t){return function(n){return setTimeout(Ue(()=>{const t=r.get(n);t&&(e(t),r.delete(n))}),0),t.apply(this,[n])}});return s.push(()=>{n.FontFace=o}),s.push(i),Ue(()=>{s.forEach(e=>e())})}(e)));const h=function(e){const{doc:t,mirror:n,blockClass:s,blockSelector:r,selectionCb:o}=e;let i=!0;const a=Ue(()=>{const e=t.getSelection();if(!e||i&&(null==e?void 0:e.isCollapsed))return;i=e.isCollapsed||!1;const a=[],l=e.rangeCount||0;for(let t=0;t<l;t++){const o=e.getRangeAt(t),{startContainer:i,startOffset:l,endContainer:c,endOffset:u}=o;re(i,s,r,!0)||re(c,s,r,!0)||a.push({start:n.getId(i),startOffset:l,end:n.getId(c),endOffset:u})}o({ranges:a})});return a(),X("selectionchange",a)}(e),A=function({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?$(n.customElements,"define",function(e){return function(n,s,r){try{t({define:{name:n}})}catch(e){console.warn(`Custom element callback failed for ${n}`)}return e.apply(this,[n,s,r])}}):()=>{}}(e),f=[];for(const t of e.plugins)f.push(t.observer(t.callback,n,t.options));return Ue(()=>{Ge.forEach(e=>e.reset()),null==s||s.disconnect(),r(),o(),i(),a(),l(),c(),u(),d(),p(),m(),h(),A(),f.forEach(e=>e())})}function Qe(e){return void 0!==window[e]}function $e(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Je{constructor(e){o(this,"iframeIdToRemoteIdMap",new WeakMap),o(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,n,s){const r=n||this.getIdToRemoteIdMap(e),o=s||this.getRemoteIdToIdMap(e);let i=r.get(t);return i||(i=this.generateIdFn(),r.set(t,i),o.set(i,t)),i}getIds(e,t){const n=this.getIdToRemoteIdMap(e),s=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,s))}getRemoteId(e,t,n){const s=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const r=s.get(t);return r||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class et{constructor(e){o(this,"iframes",new WeakMap),o(this,"crossOriginIframeMap",new WeakMap),o(this,"crossOriginIframeMirror",new Je(v)),o(this,"crossOriginIframeStyleMirror"),o(this,"crossOriginIframeRootIdMap",new WeakMap),o(this,"mirror"),o(this,"mutationCb"),o(this,"wrappedEmit"),o(this,"loadListener"),o(this,"stylesheetManager"),o(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Je(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var n,s;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null==(n=e.contentWindow)||n.addEventListener("message",this.handleMessage.bind(this))),null==(s=this.loadListener)||s.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const s=this.transformCrossOriginEvent(n,t.data.event);s&&this.wrappedEmit(s,t.data.isCheckout)}transformCrossOriginEvent(e,t){var n;switch(t.type){case ve.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:ve.IncrementalSnapshot,data:{source:Ce.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case ve.Meta:case ve.Load:case ve.DomContentLoaded:return!1;case ve.Plugin:return t;case ve.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case ve.IncrementalSnapshot:switch(t.data.source){case Ce.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case Ce.Drag:case Ce.TouchMove:case Ce.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case Ce.ViewportResize:return!1;case Ce.MediaInteraction:case Ce.MouseInteraction:case Ce.Scroll:case Ce.CanvasMutation:case Ce.Input:return this.replaceIds(t.data,e,["id"]),t;case Ce.StyleSheetRule:case Ce.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Ce.Font:return t;case Ce.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case Ce.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(n=t.data.styles)||n.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,n,s){for(const r of s)(Array.isArray(t[r])||"number"==typeof t[r])&&(Array.isArray(t[r])?t[r]=e.getIds(n,t[r]):t[r]=e.getId(n,t[r]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===l.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class tt{constructor(e){o(this,"shadowDoms",new WeakSet),o(this,"mutationCb"),o(this,"scrollCb"),o(this,"bypassOptions"),o(this,"mirror"),o(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!d(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const n=He({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(ze({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(qe({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push($(e.prototype,"attachShadow",function(e){return function(s){const r=e.call(this,s);return this.shadowRoot&&Se(this)&&n.addShadowRoot(this.shadowRoot,t),r}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",st="undefined"==typeof Uint8Array?[]:new Uint8Array(256),rt=0;rt<64;rt++)st[nt.charCodeAt(rt)]=rt;const ot=new Map;const it=(e,t,n)=>{if(!e||!ct(e,t)&&"object"!=typeof e)return;const s=function(e,t){let n=ot.get(e);return n||(n=new Map,ot.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name);let r=s.indexOf(e);return-1===r&&(r=s.length,s.push(e)),r};function at(e,t,n){if(e instanceof Array)return e.map(e=>at(e,t,n));if(null===e)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){return{rr_type:e.constructor.name,base64:function(e){var t,n=new Uint8Array(e),s=n.length,r="";for(t=0;t<s;t+=3)r+=nt[n[t]>>2],r+=nt[(3&n[t])<<4|n[t+1]>>4],r+=nt[(15&n[t+1])<<2|n[t+2]>>6],r+=nt[63&n[t+2]];return s%3==2?r=r.substring(0,r.length-1)+"=":s%3==1&&(r=r.substring(0,r.length-2)+"=="),r}(e)}}if(e instanceof DataView){return{rr_type:e.constructor.name,args:[at(e.buffer,t,n),e.byteOffset,e.byteLength]}}if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:n}=e;return{rr_type:t,src:n}}if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}if(e instanceof ImageData){return{rr_type:e.constructor.name,args:[at(e.data,t,n),e.width,e.height]}}if(ct(e,t)||"object"==typeof e){return{rr_type:e.constructor.name,index:it(e,t,n)}}return e}const lt=(e,t,n)=>e.map(e=>at(e,t,n)),ct=(e,t)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]);return Boolean(n.find(n=>e instanceof t[n]))};function ut(e,t,n,s){const r=[];try{const o=$(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(r,...o){if(!re(this,t,n,!0)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(r);if("__context"in this||(this.__context=e),s&&["webgl","webgl2"].includes(e))if(o[0]&&"object"==typeof o[0]){const e=o[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else o.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[r,...o])}});r.push(o)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{r.forEach(e=>e())}}function dt(e,t,n,s,r,o,i){const a=[],l=Object.getOwnPropertyNames(e);for(const o of l)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(o))try{if("function"!=typeof e[o])continue;const l=$(e,o,function(e){return function(...a){const l=e.apply(this,a);if(it(l,i,this),"tagName"in this.canvas&&!re(this.canvas,s,r,!0)){const e=lt(a,i,this),s={type:t,property:o,args:e};n(this.canvas,s)}return l}});a.push(l)}catch{const s=Q(e,o,{set(e){n(this.canvas,{type:t,property:o,args:[e],setter:!0})}});a.push(s)}return a}const pt="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpCiAgICAgICAgcmV0dXJuIHRyYW5zcGFyZW50QmxvYk1hcC5nZXQoaWQpOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIHRyYW5zcGFyZW50QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICAgIHJldHVybiBiYXNlNjQ7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gIiI7CiAgICB9CiAgfQogIGNvbnN0IHdvcmtlciA9IHNlbGY7CiAgd29ya2VyLm9ubWVzc2FnZSA9IGFzeW5jIGZ1bmN0aW9uKGUpIHsKICAgIGlmICgiT2Zmc2NyZWVuQ2FudmFzIiBpbiBnbG9iYWxUaGlzKSB7CiAgICAgIGNvbnN0IHsgaWQsIGJpdG1hcCwgd2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMgfSA9IGUuZGF0YTsKICAgICAgY29uc3QgdHJhbnNwYXJlbnRCYXNlNjQgPSBnZXRUcmFuc3BhcmVudEJsb2JGb3IoCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0LAogICAgICAgIGRhdGFVUkxPcHRpb25zCiAgICAgICk7CiAgICAgIGNvbnN0IG9mZnNjcmVlbiA9IG5ldyBPZmZzY3JlZW5DYW52YXMod2lkdGgsIGhlaWdodCk7CiAgICAgIGNvbnN0IGN0eCA9IG9mZnNjcmVlbi5nZXRDb250ZXh0KCIyZCIpOwogICAgICBjdHguZHJhd0ltYWdlKGJpdG1hcCwgMCwgMCk7CiAgICAgIGJpdG1hcC5jbG9zZSgpOwogICAgICBjb25zdCBibG9iID0gYXdhaXQgb2Zmc2NyZWVuLmNvbnZlcnRUb0Jsb2IoZGF0YVVSTE9wdGlvbnMpOwogICAgICBjb25zdCB0eXBlID0gYmxvYi50eXBlOwogICAgICBjb25zdCBhcnJheUJ1ZmZlciA9IGF3YWl0IGJsb2IuYXJyYXlCdWZmZXIoKTsKICAgICAgY29uc3QgYmFzZTY0ID0gZW5jb2RlKGFycmF5QnVmZmVyKTsKICAgICAgaWYgKCFsYXN0QmxvYk1hcC5oYXMoaWQpICYmIGF3YWl0IHRyYW5zcGFyZW50QmFzZTY0ID09PSBiYXNlNjQpIHsKICAgICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkIH0pOwogICAgICB9CiAgICAgIGlmIChsYXN0QmxvYk1hcC5nZXQoaWQpID09PSBiYXNlNjQpCiAgICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkIH0pOwogICAgICB3b3JrZXIucG9zdE1lc3NhZ2UoewogICAgICAgIGlkLAogICAgICAgIHR5cGUsCiAgICAgICAgYmFzZTY0LAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodAogICAgICB9KTsKICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkOiBlLmRhdGEuaWQgfSk7CiAgICB9CiAgfTsKfSkoKTsKLy8jIHNvdXJjZU1hcHBpbmdVUkw9aW1hZ2UtYml0bWFwLWRhdGEtdXJsLXdvcmtlci1CWjFyN1JKRC5qcy5tYXAK",mt="undefined"!=typeof window&&window.Blob&&new Blob([(ht=pt,Uint8Array.from(atob(ht),e=>e.charCodeAt(0)))],{type:"text/javascript;charset=utf-8"});var ht;function At(e){let t;try{if(t=mt&&(window.URL||window.webkitURL).createObjectURL(mt),!t)throw"";const n=new Worker(t,{name:null==e?void 0:e.name});return n.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(t)}),n}catch(t){return new Worker("data:text/javascript;base64,"+pt,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}class gt{constructor(e){o(this,"pendingCanvasMutations",new Map),o(this,"rafStamps",{latestId:0,invokeId:null}),o(this,"mirror"),o(this,"mutationCb"),o(this,"resetObservers"),o(this,"frozen",!1),o(this,"locked",!1),o(this,"processMutation",(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)});const{sampling:t="all",win:n,blockClass:s,blockSelector:r,recordCanvas:i,dataURLOptions:a}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,i&&"all"===t&&this.initCanvasMutationObserver(n,s,r),i&&"number"==typeof t&&this.initCanvasFPSObserver(t,n,s,r,{dataURLOptions:a})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,t,n,s,r){const o=ut(t,n,s,!0),i=new Map,a=new At;a.onmessage=e=>{const{id:t}=e.data;if(i.set(t,!1),!("base64"in e.data))return;const{base64:n,type:s,width:r,height:o}=e.data;this.mutationCb({id:t,type:we["2D"],commands:[{property:"clearRect",args:[0,0,r,o]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:s}]},0,0]}]})};const l=1e3/e;let c,u=0;const d=e=>{u&&e-u<l||(u=e,(()=>{const e=[];return t.document.querySelectorAll("canvas").forEach(t=>{re(t,n,s,!0)||e.push(t)}),e})().forEach(async e=>{var t;const n=this.mirror.getId(e);if(i.get(n))return;if(0===e.width||0===e.height)return;if(i.set(n,!0),["webgl","webgl2"].includes(e.__context)){const n=e.getContext(e.__context);!1===(null==(t=null==n?void 0:n.getContextAttributes())?void 0:t.preserveDrawingBuffer)&&n.clear(n.COLOR_BUFFER_BIT)}const s=await createImageBitmap(e);a.postMessage({id:n,bitmap:s,width:e.width,height:e.height,dataURLOptions:r.dataURLOptions},[s])})),c=requestAnimationFrame(d)};c=requestAnimationFrame(d),this.resetObservers=()=>{o(),cancelAnimationFrame(c)}}initCanvasMutationObserver(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const s=ut(e,t,n,!1),r=function(e,t,n,s){const r=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const i of o)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[i])continue;const o=$(t.CanvasRenderingContext2D.prototype,i,function(r){return function(...o){return re(this.canvas,n,s,!0)||setTimeout(()=>{const n=lt(o,t,this);e(this.canvas,{type:we["2D"],property:i,args:n})},0),r.apply(this,o)}});r.push(o)}catch{const n=Q(t.CanvasRenderingContext2D.prototype,i,{set(t){e(this.canvas,{type:we["2D"],property:i,args:[t],setter:!0})}});r.push(n)}return()=>{r.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n),o=function(e,t,n,s){const r=[];return r.push(...dt(t.WebGLRenderingContext.prototype,we.WebGL,e,n,s,0,t)),void 0!==t.WebGL2RenderingContext&&r.push(...dt(t.WebGL2RenderingContext.prototype,we.WebGL2,e,n,s,0,t)),()=>{r.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n,this.mirror);this.resetObservers=()=>{s(),r(),o()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{const n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;const s=n.map(e=>{const{type:t,...n}=e;return n}),{type:r}=n[0];this.mutationCb({id:t,type:r,commands:s}),this.pendingCanvasMutations.delete(e)}}class ft{constructor(e){o(this,"trackedLinkElements",new WeakSet),o(this,"mutationCb"),o(this,"adoptedStyleSheetCb"),o(this,"styleMirror",new Ee),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},s=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),s.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:m(e),index:t}))})),n.styleIds.push(e)}s.length>0&&(n.styles=s),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class _t{constructor(){o(this,"nodeMap",new WeakMap),o(this,"active",!1)}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let Et,bt,yt,Tt=!1;try{if(2!==Array.from([1],e=>2*e)[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=(null==(s=e.contentWindow)?void 0:s.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const St=A();function vt(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:s,blockClass:r="rr-block",blockSelector:o=null,ignoreClass:i="rr-ignore",ignoreSelector:a=null,maskTextClass:l="rr-mask",maskTextSelector:c=null,inlineStylesheet:u=!0,maskAllInputs:d,maskInputOptions:p,slimDOMOptions:m,maskInputFn:A,maskTextFn:g,hooks:f,packFn:_,sampling:E={},dataURLOptions:b={},mousemoveWait:y,recordDOM:T=!0,recordCanvas:S=!1,recordCrossOriginIframes:v=!1,recordAfter:C=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:R=!1,collectFonts:I=!1,inlineImages:w=!1,plugins:L,keepIframeSrcFn:O=()=>!1,ignoreCSSAttributes:P=new Set([]),errorHandler:N}=e;je=N;const x=!v||window.parent===window;let M=!1;if(!x)try{window.parent.document&&(M=!1)}catch(e){M=!0}if(x&&!t)throw new Error("emit function is required");if(!x&&!M)return()=>{};void 0!==y&&void 0===E.mousemove&&(E.mousemove=y),St.reset();const k=!0===d?{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}:void 0!==p?p:{password:!0},D=!0===m||"all"===m?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===m,headMetaDescKeywords:"all"===m,headTitleMutations:"all"===m}:m||{};let B;ce();let j=0;const U=e=>{for(const t of L||[])t.eventProcessor&&(e=t.eventProcessor(e));return _&&!M&&(e=_(e)),e};Et=(e,r)=>{var o;const i=e;if(i.timestamp=J(),!(null==(o=Ge[0])?void 0:o.isFrozen())||i.type===ve.FullSnapshot||i.type===ve.IncrementalSnapshot&&i.data.source===Ce.Mutation||Ge.forEach(e=>e.unfreeze()),x)null==t||t(U(i),r);else if(M){const e={type:"rrweb",event:U(i),origin:window.location.origin,isCheckout:r};window.parent.postMessage(e,"*")}if(i.type===ve.FullSnapshot)B=i,j=0;else if(i.type===ve.IncrementalSnapshot){if(i.data.source===Ce.Mutation&&i.data.isAttachIframe)return;j++;const e=s&&j>=s,t=n&&i.timestamp-B.timestamp>n;(e||t)&&bt(!0)}};const G=e=>{Et({type:ve.IncrementalSnapshot,data:{source:Ce.Mutation,...e}})},F=e=>Et({type:ve.IncrementalSnapshot,data:{source:Ce.Scroll,...e}}),H=e=>Et({type:ve.IncrementalSnapshot,data:{source:Ce.CanvasMutation,...e}}),Y=new ft({mutationCb:G,adoptedStyleSheetCb:e=>Et({type:ve.IncrementalSnapshot,data:{source:Ce.AdoptedStyleSheet,...e}})}),W=new et({mirror:St,mutationCb:G,stylesheetManager:Y,recordCrossOriginIframes:v,wrappedEmit:Et});for(const e of L||[])e.getMirror&&e.getMirror({nodeMirror:St,crossOriginIframeMirror:W.crossOriginIframeMirror,crossOriginIframeStyleMirror:W.crossOriginIframeStyleMirror});const V=new _t;yt=new gt({recordCanvas:S,mutationCb:H,win:window,blockClass:r,blockSelector:o,mirror:St,sampling:E.canvas,dataURLOptions:b});const Z=new tt({mutationCb:G,scrollCb:F,bypassOptions:{blockClass:r,blockSelector:o,maskTextClass:l,maskTextSelector:c,inlineStylesheet:u,maskInputOptions:k,dataURLOptions:b,maskTextFn:g,maskInputFn:A,recordCanvas:S,inlineImages:w,sampling:E,slimDOMOptions:D,iframeManager:W,stylesheetManager:Y,canvasManager:yt,keepIframeSrcFn:O,processedNodeManager:V},mirror:St});bt=(e=!1)=>{if(!T)return;Et({type:ve.Meta,data:{href:window.location.href,width:ne(),height:te()}},e),Y.reset(),Z.init(),Ge.forEach(e=>e.lock());const t=function(e,t){const{mirror:n=new h,blockClass:s="rr-block",blockSelector:r=null,maskTextClass:o="rr-mask",maskTextSelector:i=null,inlineStylesheet:a=!0,inlineImages:l=!1,recordCanvas:c=!1,maskAllInputs:u=!1,maskTextFn:d,maskInputFn:p,slimDOM:m=!1,dataURLOptions:A,preserveWhiteSpace:g,onSerialize:f,onIframeLoad:_,iframeLoadTimeout:E,onStylesheetLoad:b,stylesheetLoadTimeout:y,keepIframeSrcFn:T=()=>!1}=t||{};return z(e,{doc:e,mirror:n,blockClass:s,blockSelector:r,maskTextClass:o,maskTextSelector:i,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===u?{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}:!1===u?{password:!0}:u,maskTextFn:d,maskInputFn:p,slimDOMOptions:!0===m||"all"===m?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===m,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===m?{}:m,dataURLOptions:A,inlineImages:l,recordCanvas:c,preserveWhiteSpace:g,onSerialize:f,onIframeLoad:_,iframeLoadTimeout:E,onStylesheetLoad:b,stylesheetLoadTimeout:y,keepIframeSrcFn:T,newlyAddedElement:!1})}(document,{mirror:St,blockClass:r,blockSelector:o,maskTextClass:l,maskTextSelector:c,inlineStylesheet:u,maskAllInputs:k,maskTextFn:g,slimDOM:D,dataURLOptions:b,recordCanvas:S,inlineImages:w,onSerialize:e=>{pe(e,St)&&W.addIframe(e),me(e,St)&&Y.trackLinkElement(e),Ae(e)&&Z.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{W.attachIframe(e,t),Z.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Y.attachLinkElement(e,t)},keepIframeSrcFn:O});if(!t)return console.warn("Failed to snapshot the document");Et({type:ve.FullSnapshot,data:{node:t,initialOffset:ee(window)}},e),Ge.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Y.adoptStyleSheets(document.adoptedStyleSheets,St.getId(document))};try{const e=[],t=e=>{var t;return Ue(Ke)({mutationCb:G,mousemoveCb:(e,t)=>Et({type:ve.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Et({type:ve.IncrementalSnapshot,data:{source:Ce.MouseInteraction,...e}}),scrollCb:F,viewportResizeCb:e=>Et({type:ve.IncrementalSnapshot,data:{source:Ce.ViewportResize,...e}}),inputCb:e=>Et({type:ve.IncrementalSnapshot,data:{source:Ce.Input,...e}}),mediaInteractionCb:e=>Et({type:ve.IncrementalSnapshot,data:{source:Ce.MediaInteraction,...e}}),styleSheetRuleCb:e=>Et({type:ve.IncrementalSnapshot,data:{source:Ce.StyleSheetRule,...e}}),styleDeclarationCb:e=>Et({type:ve.IncrementalSnapshot,data:{source:Ce.StyleDeclaration,...e}}),canvasMutationCb:H,fontCb:e=>Et({type:ve.IncrementalSnapshot,data:{source:Ce.Font,...e}}),selectionCb:e=>{Et({type:ve.IncrementalSnapshot,data:{source:Ce.Selection,...e}})},customElementCb:e=>{Et({type:ve.IncrementalSnapshot,data:{source:Ce.CustomElement,...e}})},blockClass:r,ignoreClass:i,ignoreSelector:a,maskTextClass:l,maskTextSelector:c,maskInputOptions:k,inlineStylesheet:u,sampling:E,recordDOM:T,recordCanvas:S,inlineImages:w,userTriggeredOnInput:R,collectFonts:I,doc:e,maskInputFn:A,maskTextFn:g,keepIframeSrcFn:O,blockSelector:o,slimDOMOptions:D,dataURLOptions:b,mirror:St,iframeManager:W,stylesheetManager:Y,shadowDomManager:Z,processedNodeManager:V,canvasManager:yt,ignoreCSSAttributes:P,plugins:(null==(t=null==L?void 0:L.filter(e=>e.observer))?void 0:t.map(e=>({observer:e.observer,options:e.options,callback:t=>Et({type:ve.Plugin,data:{plugin:e.name,payload:t}})})))||[]},f)};W.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});const n=()=>{bt(),e.push(t(document)),Tt=!0};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(X("DOMContentLoaded",()=>{Et({type:ve.DomContentLoaded,data:{}}),"DOMContentLoaded"===C&&n()})),e.push(X("load",()=>{Et({type:ve.Load,data:{}}),"load"===C&&n()},window))),()=>{e.forEach(e=>e()),V.destroy(),Tt=!1,je=void 0}}catch(e){console.warn(e)}}vt.addCustomEvent=(e,t)=>{if(!Tt)throw new Error("please add custom event after start recording");Et({type:ve.Custom,data:{tag:e,payload:t}})},vt.freezePage=()=>{Ge.forEach(e=>e.freeze())},vt.takeFullSnapshot=e=>{if(!Tt)throw new Error("please take full snapshot after start recording");bt(e)},vt.mirror=St;Object.defineProperty,Object.defineProperty;function Ct(e){return{all:e||new Map,on:function(t,n){var s=e.get(t);s?s.push(n):e.set(t,[n])},off:function(t,n){var s=e.get(t);s&&(n?s.splice(s.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var s=e.get(t);s&&s.slice().map(function(e){e(n)}),e.get("*")&&s.slice().map(function(e){e(t,n)})}}}Symbol.toStringTag;var Rt,It;(It=Rt||(Rt={}))[It.NotStarted=0]="NotStarted",It[It.Running=1]="Running",It[It.Stopped=2]="Stopped";const{addCustomEvent:wt}=vt,{freezePage:Lt}=vt},"../../node_modules/socket.io-client/build/esm/contrib/backo2.js":(e,t,n)=>{"use strict";function s(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}n.d(t,{Backoff:()=>s}),s.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=1&Math.floor(10*t)?e+n:e-n}return 0|Math.min(e,this.max)},s.prototype.reset=function(){this.attempts=0},s.prototype.setMin=function(e){this.ms=e},s.prototype.setMax=function(e){this.max=e},s.prototype.setJitter=function(e){this.jitter=e}},"../../node_modules/socket.io-client/build/esm/index.js":(e,t,n)=>{"use strict";n.d(t,{default:()=>a});var s=n("../../node_modules/socket.io-client/build/esm/url.js"),r=n("../../node_modules/socket.io-client/build/esm/manager.js"),o=n("../../node_modules/socket.io-client/build/esm/socket.js");n("../../node_modules/socket.io-parser/build/esm/index.js");const i={};function a(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const n=(0,s.url)(e,t.path||"/socket.io"),o=n.source,a=n.id,l=n.path,c=i[a]&&l in i[a].nsps;let u;return t.forceNew||t["force new connection"]||!1===t.multiplex||c?u=new r.Manager(o,t):(i[a]||(i[a]=new r.Manager(o,t)),u=i[a]),n.query&&!t.query&&(t.query=n.queryKey),u.socket(n.path,t)}Object.assign(a,{Manager:r.Manager,Socket:o.Socket,io:a,connect:a})},"../../node_modules/socket.io-client/build/esm/manager.js":(e,t,n)=>{"use strict";n.d(t,{Manager:()=>c});var s=n("../../node_modules/engine.io-client/build/esm/index.js"),r=n("../../node_modules/socket.io-client/build/esm/socket.js"),o=n("../../node_modules/socket.io-parser/build/esm/index.js"),i=n("../../node_modules/socket.io-client/build/esm/on.js"),a=n("../../node_modules/socket.io-client/build/esm/contrib/backo2.js"),l=n("../../node_modules/@socket.io/component-emitter/lib/esm/index.js");class c extends l.Emitter{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,(0,s.installTimerFunctions)(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=t.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new a.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const r=t.parser||o;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new s.Socket(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const r=(0,i.on)(t,"open",function(){n.onopen(),e&&e()}),o=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},a=(0,i.on)(t,"error",o);if(!1!==this._timeout){const e=this._timeout,n=this.setTimeoutFn(()=>{r(),o(new Error("timeout")),t.close()},e);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}return this.subs.push(r),this.subs.push(a),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push((0,i.on)(e,"ping",this.onping.bind(this)),(0,i.on)(e,"data",this.ondata.bind(this)),(0,i.on)(e,"error",this.onerror.bind(this)),(0,i.on)(e,"close",this.onclose.bind(this)),(0,i.on)(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){(0,s.nextTick)(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new r.Socket(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const e of t){if(this.nsps[e].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}},"../../node_modules/socket.io-client/build/esm/on.js":(e,t,n)=>{"use strict";function s(e,t,n){return e.on(t,n),function(){e.off(t,n)}}n.d(t,{on:()=>s})},"../../node_modules/socket.io-client/build/esm/socket.js":(e,t,n)=>{"use strict";n.d(t,{Socket:()=>a});var s=n("../../node_modules/socket.io-parser/build/esm/index.js"),r=n("../../node_modules/socket.io-client/build/esm/on.js"),o=n("../../node_modules/@socket.io/component-emitter/lib/esm/index.js");const i=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class a extends o.Emitter{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[(0,r.on)(e,"open",this.onopen.bind(this)),(0,r.on)(e,"packet",this.onpacket.bind(this)),(0,r.on)(e,"error",this.onerror.bind(this)),(0,r.on)(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(i.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const n={type:s.PacketType.EVENT,data:t,options:{}};if(n.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++,s=t.pop();this._registerAckCallback(e,s),n.id=e}const r=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!r||!this.connected)||(this.connected?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(e,t){var n;const s=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0===s)return void(this.acks[e]=t);const r=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,new Error("operation has timed out"))},s),o=(...e)=>{this.io.clearTimeoutFn(r),t.apply(this,e)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((n,s)=>{const r=(e,t)=>e?s(e):n(t);r.withError=!0,t.push(r),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...s)=>{if(n!==this._queue[0])return;return null!==e?n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...s)),n.pending=!1,this._drainQueue()}),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:s.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){const t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case s.PacketType.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case s.PacketType.EVENT:case s.PacketType.BINARY_EVENT:this.onevent(e);break;case s.PacketType.ACK:case s.PacketType.BINARY_ACK:this.onack(e);break;case s.PacketType.DISCONNECT:this.ondisconnect();break;case s.PacketType.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let n=!1;return function(...r){n||(n=!0,t.packet({type:s.PacketType.ACK,id:e,data:r}))}}onack(e){const t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:s.PacketType.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const n of t)n.apply(this,e.data)}}}},"../../node_modules/socket.io-client/build/esm/url.js":(e,t,n)=>{"use strict";n.d(t,{url:()=>r});var s=n("../../node_modules/engine.io-client/build/esm/index.js");function r(e,t="",n){let r=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==n?n.protocol+"//"+e:"https://"+e),r=(0,s.parse)(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}},"../../node_modules/socket.io-parser/build/esm/binary.js":(e,t,n)=>{"use strict";n.d(t,{deconstructPacket:()=>r,reconstructPacket:()=>i});var s=n("../../node_modules/socket.io-parser/build/esm/is-binary.js");function r(e){const t=[],n=e.data,s=e;return s.data=o(n,t),s.attachments=t.length,{packet:s,buffers:t}}function o(e,t){if(!e)return e;if((0,s.isBinary)(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){const n=new Array(e.length);for(let s=0;s<e.length;s++)n[s]=o(e[s],t);return n}if("object"==typeof e&&!(e instanceof Date)){const n={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=o(e[s],t));return n}return e}function i(e,t){return e.data=a(e.data,t),delete e.attachments,e}function a(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=a(e[n],t);else if("object"==typeof e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=a(e[n],t));return e}},"../../node_modules/socket.io-parser/build/esm/index.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{Decoder:()=>d,Encoder:()=>c,PacketType:()=>l,protocol:()=>a});var s=n("../../node_modules/@socket.io/component-emitter/lib/esm/index.js"),r=n("../../node_modules/socket.io-parser/build/esm/binary.js"),o=n("../../node_modules/socket.io-parser/build/esm/is-binary.js");const i=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],a=5;var l;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(l||(l={}));class c{constructor(e){this.replacer=e}encode(e){return e.type!==l.EVENT&&e.type!==l.ACK||!(0,o.hasBinary)(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===l.EVENT?l.BINARY_EVENT:l.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==l.BINARY_EVENT&&e.type!==l.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=(0,r.deconstructPacket)(e),n=this.encodeAsString(t.packet),s=t.buffers;return s.unshift(n),s}}function u(e){return"[object Object]"===Object.prototype.toString.call(e)}class d extends s.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const n=t.type===l.BINARY_EVENT;n||t.type===l.BINARY_ACK?(t.type=n?l.EVENT:l.ACK,this.reconstructor=new p(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!(0,o.isBinary)(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const n={type:Number(e.charAt(0))};if(void 0===l[n.type])throw new Error("unknown packet type "+n.type);if(n.type===l.BINARY_EVENT||n.type===l.BINARY_ACK){const s=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const r=e.substring(s,t);if(r!=Number(r)||"-"!==e.charAt(t))throw new Error("Illegal attachments");n.attachments=Number(r)}if("/"===e.charAt(t+1)){const s=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}n.nsp=e.substring(s,t)}else n.nsp="/";const s=e.charAt(t+1);if(""!==s&&Number(s)==s){const s=t+1;for(;++t;){const n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(s,t+1))}if(e.charAt(++t)){const s=this.tryParse(e.substr(t));if(!d.isPayloadValid(n.type,s))throw new Error("invalid payload");n.data=s}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case l.CONNECT:return u(t);case l.DISCONNECT:return void 0===t;case l.CONNECT_ERROR:return"string"==typeof t||u(t);case l.EVENT:case l.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===i.indexOf(t[0]));case l.ACK:case l.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class p{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=(0,r.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}},"../../node_modules/socket.io-parser/build/esm/is-binary.js":(e,t,n)=>{"use strict";n.d(t,{hasBinary:()=>c,isBinary:()=>l});const s="function"==typeof ArrayBuffer,r=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,o=Object.prototype.toString,i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===o.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===o.call(File);function l(e){return s&&(e instanceof ArrayBuffer||r(e))||i&&e instanceof Blob||a&&e instanceof File}function c(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(c(e[t]))return!0;return!1}if(l(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return c(e.toJSON(),!0);for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&c(e[t]))return!0;return!1}}},t={};function n(s){var r=t[s];if(void 0!==r)return r.exports;var o=t[s]={id:s,loaded:!1,exports:{}};return e[s](o,o.exports,n),o.loaded=!0,o.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.b=document.baseURI||self.location.href,n.nc=void 0;var s={};return(()=>{"use strict";n.r(s),n.d(s,{ATTR_MULTIPLAYER_CLIENT_ID:()=>o.ATTR_MULTIPLAYER_CLIENT_ID,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE:()=>o.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON:()=>o.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE:()=>o.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING:()=>o.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING,ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE:()=>o.ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE,ATTR_MULTIPLAYER_HTTP_PROXY:()=>o.ATTR_MULTIPLAYER_HTTP_PROXY,ATTR_MULTIPLAYER_HTTP_PROXY_TYPE:()=>o.ATTR_MULTIPLAYER_HTTP_PROXY_TYPE,ATTR_MULTIPLAYER_HTTP_REQUEST_BODY:()=>o.ATTR_MULTIPLAYER_HTTP_REQUEST_BODY,ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS:()=>o.ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY:()=>o.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING:()=>o.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING,ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS:()=>o.ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS,ATTR_MULTIPLAYER_INTEGRATION_ID:()=>o.ATTR_MULTIPLAYER_INTEGRATION_ID,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY:()=>o.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING:()=>o.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING,ATTR_MULTIPLAYER_PLATFORM_ID:()=>o.ATTR_MULTIPLAYER_PLATFORM_ID,ATTR_MULTIPLAYER_PLATFORM_NAME:()=>o.ATTR_MULTIPLAYER_PLATFORM_NAME,ATTR_MULTIPLAYER_PROJECT_ID:()=>o.ATTR_MULTIPLAYER_PROJECT_ID,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE:()=>o.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING:()=>o.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING,ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE:()=>o.ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE,ATTR_MULTIPLAYER_SESSION_ID:()=>o.ATTR_MULTIPLAYER_SESSION_ID,ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION:()=>o.ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION,ATTR_MULTIPLAYER_WORKSPACE_ID:()=>o.ATTR_MULTIPLAYER_WORKSPACE_ID,MASK_PLACEHOLDER:()=>o.MASK_PLACEHOLDER,MULTIPLAYER_ATTRIBUTE_PREFIX:()=>o.MULTIPLAYER_ATTRIBUTE_PREFIX,MULTIPLAYER_BASE_API_URL:()=>o.MULTIPLAYER_BASE_API_URL,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_GRPC_URL:()=>o.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_GRPC_URL,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_HTTP_URL:()=>o.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_HTTP_URL,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL:()=>o.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_GRPC_URL:()=>o.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_GRPC_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL:()=>o.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL:()=>o.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL,MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX:()=>o.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX,MULTIPLAYER_TRACE_DEBUG_PREFIX:()=>o.MULTIPLAYER_TRACE_DEBUG_PREFIX,MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH:()=>o.MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH,MULTIPLAYER_TRACE_DOC_PREFIX:()=>o.MULTIPLAYER_TRACE_DOC_PREFIX,SessionRecorderBrowserTraceExporter:()=>o.SessionRecorderBrowserTraceExporter,SessionRecorderIdGenerator:()=>o.SessionRecorderIdGenerator,SessionRecorderSdk:()=>o.SessionRecorderSdk,SessionRecorderTraceIdRatioBasedSampler:()=>o.SessionRecorderTraceIdRatioBasedSampler,SessionType:()=>o.SessionType,default:()=>a,recorderEventBus:()=>t.recorderEventBus});n("./src/patch/index.ts");var e=n("./src/listeners.ts"),t=n("./src/eventBus.ts"),r=n("./src/sessionRecorder.ts"),o=n("../session-recorder-common/dist/esm/index-browser.js");const i=new r.SessionRecorder;"undefined"!=typeof window&&(window.__SESSION_RECORDER_LOADED=!0,window.SessionRecorder=i,(0,e.setupListeners)(i));const a=i})(),s})());
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SessionRecorder=t():e.SessionRecorder=t()}(this,()=>(()=>{var e={"../../node_modules/@opentelemetry/api-logs/build/esm/NoopLogger.js":(e,t,n)=>{"use strict";n.d(t,{NOOP_LOGGER:()=>r,NoopLogger:()=>s});class s{emit(e){}}const r=new s},"../../node_modules/@opentelemetry/api-logs/build/esm/NoopLoggerProvider.js":(e,t,n)=>{"use strict";n.d(t,{NOOP_LOGGER_PROVIDER:()=>r});var s=n("../../node_modules/@opentelemetry/api-logs/build/esm/NoopLogger.js");const r=new class{getLogger(e,t,n){return new s.NoopLogger}}},"../../node_modules/@opentelemetry/api-logs/build/esm/ProxyLogger.js":(e,t,n)=>{"use strict";n.d(t,{ProxyLogger:()=>r});var s=n("../../node_modules/@opentelemetry/api-logs/build/esm/NoopLogger.js");class r{constructor(e,t,n,s){this._provider=e,this.name=t,this.version=n,this.options=s}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;const e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):s.NOOP_LOGGER}}},"../../node_modules/@opentelemetry/api-logs/build/esm/ProxyLoggerProvider.js":(e,t,n)=>{"use strict";n.d(t,{ProxyLoggerProvider:()=>o});var s=n("../../node_modules/@opentelemetry/api-logs/build/esm/NoopLoggerProvider.js"),r=n("../../node_modules/@opentelemetry/api-logs/build/esm/ProxyLogger.js");class o{getLogger(e,t,n){var s;return null!==(s=this.getDelegateLogger(e,t,n))&&void 0!==s?s:new r.ProxyLogger(this,e,t,n)}getDelegate(){var e;return null!==(e=this._delegate)&&void 0!==e?e:s.NOOP_LOGGER_PROVIDER}setDelegate(e){this._delegate=e}getDelegateLogger(e,t,n){var s;return null===(s=this._delegate)||void 0===s?void 0:s.getLogger(e,t,n)}}},"../../node_modules/@opentelemetry/api-logs/build/esm/api/logs.js":(e,t,n)=>{"use strict";n.d(t,{LogsAPI:()=>i});var s=n("../../node_modules/@opentelemetry/api-logs/build/esm/internal/global-utils.js"),r=n("../../node_modules/@opentelemetry/api-logs/build/esm/NoopLoggerProvider.js"),o=n("../../node_modules/@opentelemetry/api-logs/build/esm/ProxyLoggerProvider.js");class i{constructor(){this._proxyLoggerProvider=new o.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new i),this._instance}setGlobalLoggerProvider(e){return s._global[s.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(s._global[s.GLOBAL_LOGS_API_KEY]=(0,s.makeGetter)(s.API_BACKWARDS_COMPATIBILITY_VERSION,e,r.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,t;return null!==(t=null===(e=s._global[s.GLOBAL_LOGS_API_KEY])||void 0===e?void 0:e.call(s._global,s.API_BACKWARDS_COMPATIBILITY_VERSION))&&void 0!==t?t:this._proxyLoggerProvider}getLogger(e,t,n){return this.getLoggerProvider().getLogger(e,t,n)}disable(){delete s._global[s.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new o.ProxyLoggerProvider}}},"../../node_modules/@opentelemetry/api-logs/build/esm/index.js":(e,t,n)=>{"use strict";n.d(t,{logs:()=>s});const s=n("../../node_modules/@opentelemetry/api-logs/build/esm/api/logs.js").LogsAPI.getInstance()},"../../node_modules/@opentelemetry/api-logs/build/esm/internal/global-utils.js":(e,t,n)=>{"use strict";n.d(t,{API_BACKWARDS_COMPATIBILITY_VERSION:()=>a,GLOBAL_LOGS_API_KEY:()=>r,_global:()=>o,makeGetter:()=>i});var s=n("../../node_modules/@opentelemetry/api-logs/build/esm/platform/browser/globalThis.js");const r=Symbol.for("io.opentelemetry.js.api.logs"),o=s._globalThis;function i(e,t,n){return s=>s===e?t:n}const a=1},"../../node_modules/@opentelemetry/api-logs/build/esm/platform/browser/globalThis.js":(e,t,n)=>{"use strict";n.d(t,{_globalThis:()=>s});const s="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof n.g?n.g:{}},"../../node_modules/@opentelemetry/api/build/esm/api/context.js":(e,t,n)=>{"use strict";n.d(t,{ContextAPI:()=>u});var s=n("../../node_modules/@opentelemetry/api/build/esm/context/NoopContextManager.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/api/diag.js"),i=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var s,r,o=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(s=o.next()).done;)i.push(s.value)}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i},a=function(e,t,n){if(n||2===arguments.length)for(var s,r=0,o=t.length;r<o;r++)!s&&r in t||(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))},l="context",c=new s.NoopContextManager,u=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(e){return(0,r.registerGlobal)(l,e,o.DiagAPI.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(e,t,n){for(var s,r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];return(s=this._getContextManager()).with.apply(s,a([e,t,n],i(r),!1))},e.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},e.prototype._getContextManager=function(){return(0,r.getGlobal)(l)||c},e.prototype.disable=function(){this._getContextManager().disable(),(0,r.unregisterGlobal)(l,o.DiagAPI.instance())},e}()},"../../node_modules/@opentelemetry/api/build/esm/api/diag.js":(e,t,n)=>{"use strict";n.d(t,{DiagAPI:()=>c});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag/ComponentLogger.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/diag/internal/logLevelLogger.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/diag/types.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),a=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var s,r,o=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(s=o.next()).done;)i.push(s.value)}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i},l=function(e,t,n){if(n||2===arguments.length)for(var s,r=0,o=t.length;r<o;r++)!s&&r in t||(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))},c=function(){function e(){function e(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var s=(0,i.getGlobal)("diag");if(s)return s[e].apply(s,l([],a(t),!1))}}var t=this;t.setLogger=function(e,n){var s,a,l;if(void 0===n&&(n={logLevel:o.DiagLogLevel.INFO}),e===t){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!==(s=c.stack)&&void 0!==s?s:c.message),!1}"number"==typeof n&&(n={logLevel:n});var u=(0,i.getGlobal)("diag"),d=(0,r.createLogLevelDiagLogger)(null!==(a=n.logLevel)&&void 0!==a?a:o.DiagLogLevel.INFO,e);if(u&&!n.suppressOverrideMessage){var p=null!==(l=(new Error).stack)&&void 0!==l?l:"<failed to generate stacktrace>";u.warn("Current logger will be overwritten from "+p),d.warn("Current logger will overwrite one already registered from "+p)}return(0,i.registerGlobal)("diag",d,t,!0)},t.disable=function(){(0,i.unregisterGlobal)("diag",t)},t.createComponentLogger=function(e){return new s.DiagComponentLogger(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}()},"../../node_modules/@opentelemetry/api/build/esm/api/metrics.js":(e,t,n)=>{"use strict";n.d(t,{MetricsAPI:()=>a});var s=n("../../node_modules/@opentelemetry/api/build/esm/metrics/NoopMeterProvider.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/api/diag.js"),i="metrics",a=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(e){return(0,r.registerGlobal)(i,e,o.DiagAPI.instance())},e.prototype.getMeterProvider=function(){return(0,r.getGlobal)(i)||s.NOOP_METER_PROVIDER},e.prototype.getMeter=function(e,t,n){return this.getMeterProvider().getMeter(e,t,n)},e.prototype.disable=function(){(0,r.unregisterGlobal)(i,o.DiagAPI.instance())},e}()},"../../node_modules/@opentelemetry/api/build/esm/api/propagation.js":(e,t,n)=>{"use strict";n.d(t,{PropagationAPI:()=>d});var s=n("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/propagation/NoopTextMapPropagator.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/propagation/TextMapPropagator.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/baggage/context-helpers.js"),a=n("../../node_modules/@opentelemetry/api/build/esm/baggage/utils.js"),l=n("../../node_modules/@opentelemetry/api/build/esm/api/diag.js"),c="propagation",u=new r.NoopTextMapPropagator,d=function(){function e(){this.createBaggage=a.createBaggage,this.getBaggage=i.getBaggage,this.getActiveBaggage=i.getActiveBaggage,this.setBaggage=i.setBaggage,this.deleteBaggage=i.deleteBaggage}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(e){return(0,s.registerGlobal)(c,e,l.DiagAPI.instance())},e.prototype.inject=function(e,t,n){return void 0===n&&(n=o.defaultTextMapSetter),this._getGlobalPropagator().inject(e,t,n)},e.prototype.extract=function(e,t,n){return void 0===n&&(n=o.defaultTextMapGetter),this._getGlobalPropagator().extract(e,t,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){(0,s.unregisterGlobal)(c,l.DiagAPI.instance())},e.prototype._getGlobalPropagator=function(){return(0,s.getGlobal)(c)||u},e}()},"../../node_modules/@opentelemetry/api/build/esm/api/trace.js":(e,t,n)=>{"use strict";n.d(t,{TraceAPI:()=>c});var s=n("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/trace/ProxyTracerProvider.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/trace/context-utils.js"),a=n("../../node_modules/@opentelemetry/api/build/esm/api/diag.js"),l="trace",c=function(){function e(){this._proxyTracerProvider=new r.ProxyTracerProvider,this.wrapSpanContext=o.wrapSpanContext,this.isSpanContextValid=o.isSpanContextValid,this.deleteSpan=i.deleteSpan,this.getSpan=i.getSpan,this.getActiveSpan=i.getActiveSpan,this.getSpanContext=i.getSpanContext,this.setSpan=i.setSpan,this.setSpanContext=i.setSpanContext}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(e){var t=(0,s.registerGlobal)(l,this._proxyTracerProvider,a.DiagAPI.instance());return t&&this._proxyTracerProvider.setDelegate(e),t},e.prototype.getTracerProvider=function(){return(0,s.getGlobal)(l)||this._proxyTracerProvider},e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},e.prototype.disable=function(){(0,s.unregisterGlobal)(l,a.DiagAPI.instance()),this._proxyTracerProvider=new r.ProxyTracerProvider},e}()},"../../node_modules/@opentelemetry/api/build/esm/baggage/context-helpers.js":(e,t,n)=>{"use strict";n.d(t,{deleteBaggage:()=>l,getActiveBaggage:()=>i,getBaggage:()=>o,setBaggage:()=>a});var s=n("../../node_modules/@opentelemetry/api/build/esm/api/context.js"),r=(0,n("../../node_modules/@opentelemetry/api/build/esm/context/context.js").createContextKey)("OpenTelemetry Baggage Key");function o(e){return e.getValue(r)||void 0}function i(){return o(s.ContextAPI.getInstance().active())}function a(e,t){return e.setValue(r,t)}function l(e){return e.deleteValue(r)}},"../../node_modules/@opentelemetry/api/build/esm/baggage/internal/baggage-impl.js":(e,t,n)=>{"use strict";n.d(t,{BaggageImpl:()=>o});var s=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var s,r,o=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(s=o.next()).done;)i.push(s.value)}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i},r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],s=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&s>=e.length&&(e=void 0),{value:e&&e[s++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=function(){function e(e){this._entries=e?new Map(e):new Map}return e.prototype.getEntry=function(e){var t=this._entries.get(e);if(t)return Object.assign({},t)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var t=s(e,2);return[t[0],t[1]]})},e.prototype.setEntry=function(t,n){var s=new e(this._entries);return s._entries.set(t,n),s},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t,n,s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];var i=new e(this._entries);try{for(var a=r(s),l=a.next();!l.done;l=a.next()){var c=l.value;i._entries.delete(c)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i},e.prototype.clear=function(){return new e},e}()},"../../node_modules/@opentelemetry/api/build/esm/baggage/internal/symbol.js":(e,t,n)=>{"use strict";n.d(t,{baggageEntryMetadataSymbol:()=>s});var s=Symbol("BaggageEntryMetadata")},"../../node_modules/@opentelemetry/api/build/esm/baggage/utils.js":(e,t,n)=>{"use strict";n.d(t,{baggageEntryMetadataFromString:()=>l,createBaggage:()=>a});var s=n("../../node_modules/@opentelemetry/api/build/esm/api/diag.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/baggage/internal/baggage-impl.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/baggage/internal/symbol.js"),i=s.DiagAPI.instance();function a(e){return void 0===e&&(e={}),new r.BaggageImpl(new Map(Object.entries(e)))}function l(e){return"string"!=typeof e&&(i.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:o.baggageEntryMetadataSymbol,toString:function(){return e}}}},"../../node_modules/@opentelemetry/api/build/esm/context-api.js":(e,t,n)=>{"use strict";n.d(t,{context:()=>s});var s=n("../../node_modules/@opentelemetry/api/build/esm/api/context.js").ContextAPI.getInstance()},"../../node_modules/@opentelemetry/api/build/esm/context/NoopContextManager.js":(e,t,n)=>{"use strict";n.d(t,{NoopContextManager:()=>i});var s=n("../../node_modules/@opentelemetry/api/build/esm/context/context.js"),r=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var s,r,o=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(s=o.next()).done;)i.push(s.value)}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i},o=function(e,t,n){if(n||2===arguments.length)for(var s,r=0,o=t.length;r<o;r++)!s&&r in t||(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))},i=function(){function e(){}return e.prototype.active=function(){return s.ROOT_CONTEXT},e.prototype.with=function(e,t,n){for(var s=[],i=3;i<arguments.length;i++)s[i-3]=arguments[i];return t.call.apply(t,o([n],r(s),!1))},e.prototype.bind=function(e,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}()},"../../node_modules/@opentelemetry/api/build/esm/context/context.js":(e,t,n)=>{"use strict";function s(e){return Symbol.for(e)}n.d(t,{ROOT_CONTEXT:()=>r,createContextKey:()=>s});var r=new function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(e){return n._currentContext.get(e)},n.setValue=function(t,s){var r=new e(n._currentContext);return r._currentContext.set(t,s),r},n.deleteValue=function(t){var s=new e(n._currentContext);return s._currentContext.delete(t),s}}},"../../node_modules/@opentelemetry/api/build/esm/diag-api.js":(e,t,n)=>{"use strict";n.d(t,{diag:()=>s});var s=n("../../node_modules/@opentelemetry/api/build/esm/api/diag.js").DiagAPI.instance()},"../../node_modules/@opentelemetry/api/build/esm/diag/ComponentLogger.js":(e,t,n)=>{"use strict";n.d(t,{DiagComponentLogger:()=>i});var s=n("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),r=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var s,r,o=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(s=o.next()).done;)i.push(s.value)}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i},o=function(e,t,n){if(n||2===arguments.length)for(var s,r=0,o=t.length;r<o;r++)!s&&r in t||(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))},i=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a("debug",this._namespace,e)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a("error",this._namespace,e)},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a("info",this._namespace,e)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a("warn",this._namespace,e)},e.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a("verbose",this._namespace,e)},e}();function a(e,t,n){var i=(0,s.getGlobal)("diag");if(i)return n.unshift(t),i[e].apply(i,o([],r(n),!1))}},"../../node_modules/@opentelemetry/api/build/esm/diag/internal/logLevelLogger.js":(e,t,n)=>{"use strict";n.d(t,{createLogLevelDiagLogger:()=>r});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag/types.js");function r(e,t){function n(n,s){var r=t[n];return"function"==typeof r&&e>=s?r.bind(t):function(){}}return e<s.DiagLogLevel.NONE?e=s.DiagLogLevel.NONE:e>s.DiagLogLevel.ALL&&(e=s.DiagLogLevel.ALL),t=t||{},{error:n("error",s.DiagLogLevel.ERROR),warn:n("warn",s.DiagLogLevel.WARN),info:n("info",s.DiagLogLevel.INFO),debug:n("debug",s.DiagLogLevel.DEBUG),verbose:n("verbose",s.DiagLogLevel.VERBOSE)}}},"../../node_modules/@opentelemetry/api/build/esm/diag/types.js":(e,t,n)=>{"use strict";var s;n.d(t,{DiagLogLevel:()=>s}),function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"}(s||(s={}))},"../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js":(e,t,n)=>{"use strict";n.d(t,{getGlobal:()=>u,registerGlobal:()=>c,unregisterGlobal:()=>d});var s=n("../../node_modules/@opentelemetry/api/build/esm/platform/browser/globalThis.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/version.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/internal/semver.js"),i=r.VERSION.split(".")[0],a=Symbol.for("opentelemetry.js.api."+i),l=s._globalThis;function c(e,t,n,s){var o;void 0===s&&(s=!1);var i=l[a]=null!==(o=l[a])&&void 0!==o?o:{version:r.VERSION};if(!s&&i[e]){var c=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return n.error(c.stack||c.message),!1}if(i.version!==r.VERSION){c=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+e+" does not match previously registered API v"+r.VERSION);return n.error(c.stack||c.message),!1}return i[e]=t,n.debug("@opentelemetry/api: Registered a global for "+e+" v"+r.VERSION+"."),!0}function u(e){var t,n,s=null===(t=l[a])||void 0===t?void 0:t.version;if(s&&(0,o.isCompatible)(s))return null===(n=l[a])||void 0===n?void 0:n[e]}function d(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+r.VERSION+".");var n=l[a];n&&delete n[e]}},"../../node_modules/@opentelemetry/api/build/esm/internal/semver.js":(e,t,n)=>{"use strict";n.d(t,{isCompatible:()=>o});var s=n("../../node_modules/@opentelemetry/api/build/esm/version.js"),r=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;var o=function(e){var t=new Set([e]),n=new Set,s=e.match(r);if(!s)return function(){return!1};var o=+s[1],i=+s[2],a=+s[3];if(null!=s[4])return function(t){return t===e};function l(e){return n.add(e),!1}function c(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(n.has(e))return!1;var s=e.match(r);if(!s)return l(e);var u=+s[1],d=+s[2],p=+s[3];return null!=s[4]||o!==u?l(e):0===o?i===d&&a<=p?c(e):l(e):i<=d?c(e):l(e)}}(s.VERSION)},"../../node_modules/@opentelemetry/api/build/esm/metrics-api.js":(e,t,n)=>{"use strict";n.d(t,{metrics:()=>s});var s=n("../../node_modules/@opentelemetry/api/build/esm/api/metrics.js").MetricsAPI.getInstance()},"../../node_modules/@opentelemetry/api/build/esm/metrics/NoopMeter.js":(e,t,n)=>{"use strict";n.d(t,{NOOP_METER:()=>A});var s,r=(s=function(e,t){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},s(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=function(){function e(){}return e.prototype.createGauge=function(e,t){return f},e.prototype.createHistogram=function(e,t){return _},e.prototype.createCounter=function(e,t){return g},e.prototype.createUpDownCounter=function(e,t){return E},e.prototype.createObservableGauge=function(e,t){return y},e.prototype.createObservableCounter=function(e,t){return b},e.prototype.createObservableUpDownCounter=function(e,t){return T},e.prototype.addBatchObservableCallback=function(e,t){},e.prototype.removeBatchObservableCallback=function(e){},e}(),i=function(){},a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.add=function(e,t){},t}(i),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.add=function(e,t){},t}(i),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.record=function(e,t){},t}(i),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.record=function(e,t){},t}(i),d=function(){function e(){}return e.prototype.addCallback=function(e){},e.prototype.removeCallback=function(e){},e}(),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(d),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(d),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(d),A=new o,g=new a,f=new c,_=new u,E=new l,b=new p,y=new m,T=new h},"../../node_modules/@opentelemetry/api/build/esm/metrics/NoopMeterProvider.js":(e,t,n)=>{"use strict";n.d(t,{NOOP_METER_PROVIDER:()=>r});var s=n("../../node_modules/@opentelemetry/api/build/esm/metrics/NoopMeter.js"),r=new(function(){function e(){}return e.prototype.getMeter=function(e,t,n){return s.NOOP_METER},e}())},"../../node_modules/@opentelemetry/api/build/esm/platform/browser/globalThis.js":(e,t,n)=>{"use strict";n.d(t,{_globalThis:()=>s});var s="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof n.g?n.g:{}},"../../node_modules/@opentelemetry/api/build/esm/propagation-api.js":(e,t,n)=>{"use strict";n.d(t,{propagation:()=>s});var s=n("../../node_modules/@opentelemetry/api/build/esm/api/propagation.js").PropagationAPI.getInstance()},"../../node_modules/@opentelemetry/api/build/esm/propagation/NoopTextMapPropagator.js":(e,t,n)=>{"use strict";n.d(t,{NoopTextMapPropagator:()=>s});var s=function(){function e(){}return e.prototype.inject=function(e,t){},e.prototype.extract=function(e,t){return e},e.prototype.fields=function(){return[]},e}()},"../../node_modules/@opentelemetry/api/build/esm/propagation/TextMapPropagator.js":(e,t,n)=>{"use strict";n.d(t,{defaultTextMapGetter:()=>s,defaultTextMapSetter:()=>r});var s={get:function(e,t){if(null!=e)return e[t]},keys:function(e){return null==e?[]:Object.keys(e)}},r={set:function(e,t,n){null!=e&&(e[t]=n)}}},"../../node_modules/@opentelemetry/api/build/esm/trace-api.js":(e,t,n)=>{"use strict";n.d(t,{trace:()=>s});var s=n("../../node_modules/@opentelemetry/api/build/esm/api/trace.js").TraceAPI.getInstance()},"../../node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js":(e,t,n)=>{"use strict";n.d(t,{NonRecordingSpan:()=>r});var s=n("../../node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js"),r=function(){function e(e){void 0===e&&(e=s.INVALID_SPAN_CONTEXT),this._spanContext=e}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return this},e.prototype.setAttributes=function(e){return this},e.prototype.addEvent=function(e,t){return this},e.prototype.addLink=function(e){return this},e.prototype.addLinks=function(e){return this},e.prototype.setStatus=function(e){return this},e.prototype.updateName=function(e){return this},e.prototype.end=function(e){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(e,t){},e}()},"../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js":(e,t,n)=>{"use strict";n.d(t,{NoopTracer:()=>l});var s=n("../../node_modules/@opentelemetry/api/build/esm/api/context.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/trace/context-utils.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"),a=s.ContextAPI.getInstance(),l=function(){function e(){}return e.prototype.startSpan=function(e,t,n){if(void 0===n&&(n=a.active()),Boolean(null==t?void 0:t.root))return new o.NonRecordingSpan;var s,l=n&&(0,r.getSpanContext)(n);return"object"==typeof(s=l)&&"string"==typeof s.spanId&&"string"==typeof s.traceId&&"number"==typeof s.traceFlags&&(0,i.isSpanContextValid)(l)?new o.NonRecordingSpan(l):new o.NonRecordingSpan},e.prototype.startActiveSpan=function(e,t,n,s){var o,i,l;if(!(arguments.length<2)){2===arguments.length?l=t:3===arguments.length?(o=t,l=n):(o=t,i=n,l=s);var c=null!=i?i:a.active(),u=this.startSpan(e,o,c),d=(0,r.setSpan)(c,u);return a.with(d,l,void 0,u)}},e}()},"../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracerProvider.js":(e,t,n)=>{"use strict";n.d(t,{NoopTracerProvider:()=>r});var s=n("../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js"),r=function(){function e(){}return e.prototype.getTracer=function(e,t,n){return new s.NoopTracer},e}()},"../../node_modules/@opentelemetry/api/build/esm/trace/ProxyTracer.js":(e,t,n)=>{"use strict";n.d(t,{ProxyTracer:()=>r});var s=new(n("../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js").NoopTracer),r=function(){function e(e,t,n,s){this._provider=e,this.name=t,this.version=n,this.options=s}return e.prototype.startSpan=function(e,t,n){return this._getTracer().startSpan(e,t,n)},e.prototype.startActiveSpan=function(e,t,n,s){var r=this._getTracer();return Reflect.apply(r.startActiveSpan,r,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):s},e}()},"../../node_modules/@opentelemetry/api/build/esm/trace/ProxyTracerProvider.js":(e,t,n)=>{"use strict";n.d(t,{ProxyTracerProvider:()=>o});var s=n("../../node_modules/@opentelemetry/api/build/esm/trace/ProxyTracer.js"),r=new(n("../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracerProvider.js").NoopTracerProvider),o=function(){function e(){}return e.prototype.getTracer=function(e,t,n){var r;return null!==(r=this.getDelegateTracer(e,t,n))&&void 0!==r?r:new s.ProxyTracer(this,e,t,n)},e.prototype.getDelegate=function(){var e;return null!==(e=this._delegate)&&void 0!==e?e:r},e.prototype.setDelegate=function(e){this._delegate=e},e.prototype.getDelegateTracer=function(e,t,n){var s;return null===(s=this._delegate)||void 0===s?void 0:s.getTracer(e,t,n)},e}()},"../../node_modules/@opentelemetry/api/build/esm/trace/SamplingResult.js":(e,t,n)=>{"use strict";var s;n.d(t,{SamplingDecision:()=>s}),function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(s||(s={}))},"../../node_modules/@opentelemetry/api/build/esm/trace/context-utils.js":(e,t,n)=>{"use strict";n.d(t,{deleteSpan:()=>u,getActiveSpan:()=>l,getSpan:()=>a,getSpanContext:()=>p,setSpan:()=>c,setSpanContext:()=>d});var s=n("../../node_modules/@opentelemetry/api/build/esm/context/context.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/api/context.js"),i=(0,s.createContextKey)("OpenTelemetry Context Key SPAN");function a(e){return e.getValue(i)||void 0}function l(){return a(o.ContextAPI.getInstance().active())}function c(e,t){return e.setValue(i,t)}function u(e){return e.deleteValue(i)}function d(e,t){return c(e,new r.NonRecordingSpan(t))}function p(e){var t;return null===(t=a(e))||void 0===t?void 0:t.spanContext()}},"../../node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js":(e,t,n)=>{"use strict";n.d(t,{INVALID_SPANID:()=>r,INVALID_SPAN_CONTEXT:()=>i,INVALID_TRACEID:()=>o});var s=n("../../node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js"),r="0000000000000000",o="00000000000000000000000000000000",i={traceId:o,spanId:r,traceFlags:s.TraceFlags.NONE}},"../../node_modules/@opentelemetry/api/build/esm/trace/span_kind.js":(e,t,n)=>{"use strict";var s;n.d(t,{SpanKind:()=>s}),function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"}(s||(s={}))},"../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js":(e,t,n)=>{"use strict";n.d(t,{isSpanContextValid:()=>l,isValidTraceId:()=>a,wrapSpanContext:()=>c});var s=n("../../node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js"),o=/^([0-9a-f]{32})$/i,i=/^[0-9a-f]{16}$/i;function a(e){return o.test(e)&&e!==s.INVALID_TRACEID}function l(e){return a(e.traceId)&&(t=e.spanId,i.test(t)&&t!==s.INVALID_SPANID);var t}function c(e){return new r.NonRecordingSpan(e)}},"../../node_modules/@opentelemetry/api/build/esm/trace/status.js":(e,t,n)=>{"use strict";var s;n.d(t,{SpanStatusCode:()=>s}),function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"}(s||(s={}))},"../../node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js":(e,t,n)=>{"use strict";var s;n.d(t,{TraceFlags:()=>s}),function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"}(s||(s={}))},"../../node_modules/@opentelemetry/api/build/esm/version.js":(e,t,n)=>{"use strict";n.d(t,{VERSION:()=>s});var s="1.9.0"},"../../node_modules/@opentelemetry/auto-instrumentations-web/build/esm/index.js":(e,t,n)=>{"use strict";n.d(t,{getWebAutoInstrumentations:()=>s.getWebAutoInstrumentations});var s=n("../../node_modules/@opentelemetry/auto-instrumentations-web/build/esm/utils.js")},"../../node_modules/@opentelemetry/auto-instrumentations-web/build/esm/utils.js":(e,t,n)=>{"use strict";n.d(t,{getWebAutoInstrumentations:()=>c});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),r=n("../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/index.js"),o=n("../../node_modules/@opentelemetry/instrumentation-fetch/build/esm/fetch.js"),i=n("../../node_modules/@opentelemetry/instrumentation-user-interaction/build/esm/instrumentation.js"),a=n("../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/xhr.js");const l={"@opentelemetry/instrumentation-document-load":r.DocumentLoadInstrumentation,"@opentelemetry/instrumentation-fetch":o.FetchInstrumentation,"@opentelemetry/instrumentation-user-interaction":i.UserInteractionInstrumentation,"@opentelemetry/instrumentation-xml-http-request":a.XMLHttpRequestInstrumentation};function c(e={}){for(const t of Object.keys(e))Object.prototype.hasOwnProperty.call(l,t)||s.diag.error(`Provided instrumentation name "${t}" not found`);const t=[];for(const n of Object.keys(l)){const r=l[n],o=e[n]??{};if(!1!==o.enabled)try{s.diag.debug(`Loading instrumentation for ${n}`),t.push(new r(o))}catch(e){s.diag.error(e)}else s.diag.debug(`Disabling instrumentation for ${n}`)}return t}},"../../node_modules/@opentelemetry/core/build/esm/ExportResult.js":(e,t,n)=>{"use strict";var s;n.d(t,{ExportResultCode:()=>s}),function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"}(s||(s={}))},"../../node_modules/@opentelemetry/core/build/esm/baggage/constants.js":(e,t,n)=>{"use strict";n.d(t,{BAGGAGE_HEADER:()=>i,BAGGAGE_ITEMS_SEPARATOR:()=>o,BAGGAGE_KEY_PAIR_SEPARATOR:()=>s,BAGGAGE_MAX_NAME_VALUE_PAIRS:()=>a,BAGGAGE_MAX_PER_NAME_VALUE_PAIRS:()=>l,BAGGAGE_MAX_TOTAL_LENGTH:()=>c,BAGGAGE_PROPERTIES_SEPARATOR:()=>r});const s="=",r=";",o=",",i="baggage",a=180,l=4096,c=8192},"../../node_modules/@opentelemetry/core/build/esm/baggage/propagation/W3CBaggagePropagator.js":(e,t,n)=>{"use strict";n.d(t,{W3CBaggagePropagator:()=>a});var s=n("../../node_modules/@opentelemetry/api/build/esm/propagation-api.js"),r=n("../../node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js"),o=n("../../node_modules/@opentelemetry/core/build/esm/baggage/constants.js"),i=n("../../node_modules/@opentelemetry/core/build/esm/baggage/utils.js");class a{inject(e,t,n){const a=s.propagation.getBaggage(e);if(!a||(0,r.isTracingSuppressed)(e))return;const l=(0,i.getKeyPairs)(a).filter(e=>e.length<=o.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,o.BAGGAGE_MAX_NAME_VALUE_PAIRS),c=(0,i.serializeKeyPairs)(l);c.length>0&&n.set(t,o.BAGGAGE_HEADER,c)}extract(e,t,n){const r=n.get(t,o.BAGGAGE_HEADER),a=Array.isArray(r)?r.join(o.BAGGAGE_ITEMS_SEPARATOR):r;if(!a)return e;const l={};if(0===a.length)return e;return a.split(o.BAGGAGE_ITEMS_SEPARATOR).forEach(e=>{const t=(0,i.parsePairKeyValue)(e);if(t){const e={value:t.value};t.metadata&&(e.metadata=t.metadata),l[t.key]=e}}),0===Object.entries(l).length?e:s.propagation.setBaggage(e,s.propagation.createBaggage(l))}fields(){return[o.BAGGAGE_HEADER]}}},"../../node_modules/@opentelemetry/core/build/esm/baggage/utils.js":(e,t,n)=>{"use strict";n.d(t,{getKeyPairs:()=>i,parsePairKeyValue:()=>a,serializeKeyPairs:()=>o});var s=n("../../node_modules/@opentelemetry/api/build/esm/baggage/utils.js"),r=n("../../node_modules/@opentelemetry/core/build/esm/baggage/constants.js");function o(e){return e.reduce((e,t)=>{const n=`${e}${""!==e?r.BAGGAGE_ITEMS_SEPARATOR:""}${t}`;return n.length>r.BAGGAGE_MAX_TOTAL_LENGTH?e:n},"")}function i(e){return e.getAllEntries().map(([e,t])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(t.value)}`;return void 0!==t.metadata&&(n+=r.BAGGAGE_PROPERTIES_SEPARATOR+t.metadata.toString()),n})}function a(e){const t=e.split(r.BAGGAGE_PROPERTIES_SEPARATOR);if(t.length<=0)return;const n=t.shift();if(!n)return;const o=n.indexOf(r.BAGGAGE_KEY_PAIR_SEPARATOR);if(o<=0)return;const i=decodeURIComponent(n.substring(0,o).trim()),a=decodeURIComponent(n.substring(o+1).trim());let l;return t.length>0&&(l=(0,s.baggageEntryMetadataFromString)(t.join(r.BAGGAGE_PROPERTIES_SEPARATOR))),{key:i,value:a,metadata:l}}},"../../node_modules/@opentelemetry/core/build/esm/common/attributes.js":(e,t,n)=>{"use strict";n.d(t,{isAttributeValue:()=>i,sanitizeAttributes:()=>r});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js");function r(e){const t={};if("object"!=typeof e||null==e)return t;for(const[n,r]of Object.entries(e))o(n)?i(r)?Array.isArray(r)?t[n]=r.slice():t[n]=r:s.diag.warn(`Invalid attribute value set for key: ${n}`):s.diag.warn(`Invalid attribute key: ${n}`);return t}function o(e){return"string"==typeof e&&e.length>0}function i(e){return null==e||(Array.isArray(e)?function(e){let t;for(const n of e)if(null!=n){if(!t){if(a(n)){t=typeof n;continue}return!1}if(typeof n!==t)return!1}return!0}(e):a(e))}function a(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}},"../../node_modules/@opentelemetry/core/build/esm/common/global-error-handler.js":(e,t,n)=>{"use strict";n.d(t,{globalErrorHandler:()=>r});let s=(0,n("../../node_modules/@opentelemetry/core/build/esm/common/logging-error-handler.js").loggingErrorHandler)();function r(e){try{s(e)}catch{}}},"../../node_modules/@opentelemetry/core/build/esm/common/logging-error-handler.js":(e,t,n)=>{"use strict";n.d(t,{loggingErrorHandler:()=>r});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js");function r(){return e=>{s.diag.error(function(e){return"string"==typeof e?e:JSON.stringify(function(e){const t={};let n=e;for(;null!==n;)Object.getOwnPropertyNames(n).forEach(e=>{if(t[e])return;const s=n[e];s&&(t[e]=String(s))}),n=Object.getPrototypeOf(n);return t}(e))}(e))}}},"../../node_modules/@opentelemetry/core/build/esm/common/time.js":(e,t,n)=>{"use strict";n.d(t,{addHrTimes:()=>h,getTimeOrigin:()=>a,hrTime:()=>l,hrTimeDuration:()=>u,hrTimeToNanoseconds:()=>d,isTimeInput:()=>m,isTimeInputHrTime:()=>p,millisToHrTime:()=>i,timeInputToHrTime:()=>c});var s=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js");const r=Math.pow(10,6),o=Math.pow(10,9);function i(e){const t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*r)]}function a(){let e=s.otperformance.timeOrigin;if("number"!=typeof e){const t=s.otperformance;e=t.timing&&t.timing.fetchStart}return e}function l(e){return h(i(a()),i("number"==typeof e?e:s.otperformance.now()))}function c(e){if(p(e))return e;if("number"==typeof e)return e<a()?l(e):i(e);if(e instanceof Date)return i(e.getTime());throw TypeError("Invalid input type")}function u(e,t){let n=t[0]-e[0],s=t[1]-e[1];return s<0&&(n-=1,s+=o),[n,s]}function d(e){return e[0]*o+e[1]}function p(e){return Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}function m(e){return p(e)||"number"==typeof e||e instanceof Date}function h(e,t){const n=[e[0]+t[0],e[1]+t[1]];return n[1]>=o&&(n[1]-=o,n[0]+=1),n}},"../../node_modules/@opentelemetry/core/build/esm/internal/validators.js":(e,t,n)=>{"use strict";n.d(t,{validateKey:()=>a,validateValue:()=>l});const s="[_0-9a-z-*/]",r=new RegExp(`^(?:${`[a-z]${s}{0,255}`}|${`[a-z0-9]${s}{0,240}@[a-z]${s}{0,13}`})$`),o=/^[ -~]{0,255}[!-~]$/,i=/,|=/;function a(e){return r.test(e)}function l(e){return o.test(e)&&!i.test(e)}},"../../node_modules/@opentelemetry/core/build/esm/platform/browser/environment.js":(e,t,n)=>{"use strict";function s(e){}function r(e){}function o(e){}n.d(t,{getNumberFromEnv:()=>r,getStringFromEnv:()=>s,getStringListFromEnv:()=>o})},"../../node_modules/@opentelemetry/core/build/esm/platform/browser/globalThis.js":(e,t,n)=>{"use strict";n.d(t,{_globalThis:()=>s});const s="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof n.g?n.g:{}},"../../node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js":(e,t,n)=>{"use strict";n.d(t,{otperformance:()=>s});const s=performance},"../../node_modules/@opentelemetry/core/build/esm/platform/browser/sdk-info.js":(e,t,n)=>{"use strict";n.d(t,{SDK_INFO:()=>i});var s=n("../../node_modules/@opentelemetry/core/build/esm/version.js"),r=n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js"),o=n("../../node_modules/@opentelemetry/core/build/esm/semconv.js");const i={[r.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[o.ATTR_PROCESS_RUNTIME_NAME]:"browser",[r.ATTR_TELEMETRY_SDK_LANGUAGE]:r.TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS,[r.ATTR_TELEMETRY_SDK_VERSION]:s.VERSION}},"../../node_modules/@opentelemetry/core/build/esm/platform/browser/timer-util.js":(e,t,n)=>{"use strict";function s(e){}n.d(t,{unrefTimer:()=>s})},"../../node_modules/@opentelemetry/core/build/esm/propagation/composite.js":(e,t,n)=>{"use strict";n.d(t,{CompositePropagator:()=>r});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js");class r{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(e=>"function"==typeof e.fields?e.fields():[]).reduce((e,t)=>e.concat(t),[])))}inject(e,t,n){for(const r of this._propagators)try{r.inject(e,t,n)}catch(e){s.diag.warn(`Failed to inject with ${r.constructor.name}. Err: ${e.message}`)}}extract(e,t,n){return this._propagators.reduce((e,r)=>{try{return r.extract(e,t,n)}catch(e){s.diag.warn(`Failed to extract with ${r.constructor.name}. Err: ${e.message}`)}return e},e)}fields(){return this._fields.slice()}}},"../../node_modules/@opentelemetry/core/build/esm/semconv.js":(e,t,n)=>{"use strict";n.d(t,{ATTR_PROCESS_RUNTIME_NAME:()=>s});const s="process.runtime.name"},"../../node_modules/@opentelemetry/core/build/esm/trace/TraceState.js":(e,t,n)=>{"use strict";n.d(t,{TraceState:()=>r});var s=n("../../node_modules/@opentelemetry/core/build/esm/internal/validators.js");class r{_internalState=new Map;constructor(e){e&&this._parse(e)}set(e,t){const n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n}unset(e){const t=this._clone();return t._internalState.delete(e),t}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,t)=>(e.push(t+"="+this.get(t)),e),[]).join(",")}_parse(e){e.length>512||(this._internalState=e.split(",").reverse().reduce((e,t)=>{const n=t.trim(),r=n.indexOf("=");if(-1!==r){const o=n.slice(0,r),i=n.slice(r+1,t.length);(0,s.validateKey)(o)&&(0,s.validateValue)(i)&&e.set(o,i)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const e=new r;return e._internalState=new Map(this._internalState),e}}},"../../node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js":(e,t,n)=>{"use strict";n.d(t,{TRACE_PARENT_HEADER:()=>l,W3CTraceContextPropagator:()=>d});var s=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js"),i=n("../../node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js"),a=n("../../node_modules/@opentelemetry/core/build/esm/trace/TraceState.js");const l="traceparent",c="tracestate",u=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");class d{inject(e,t,n){const a=s.trace.getSpanContext(e);if(!a||(0,i.isTracingSuppressed)(e)||!(0,r.isSpanContextValid)(a))return;const u=`00-${a.traceId}-${a.spanId}-0${Number(a.traceFlags||o.TraceFlags.NONE).toString(16)}`;n.set(t,l,u),a.traceState&&n.set(t,c,a.traceState.serialize())}extract(e,t,n){const r=n.get(t,l);if(!r)return e;const o=Array.isArray(r)?r[0]:r;if("string"!=typeof o)return e;const i=function(e){const t=u.exec(e);return t?"00"===t[1]&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}:null}(o);if(!i)return e;i.isRemote=!0;const d=n.get(t,c);if(d){const e=Array.isArray(d)?d.join(","):d;i.traceState=new a.TraceState("string"==typeof e?e:void 0)}return s.trace.setSpanContext(e,i)}fields(){return[l,c]}}},"../../node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js":(e,t,n)=>{"use strict";n.d(t,{isTracingSuppressed:()=>o,suppressTracing:()=>r});const s=(0,n("../../node_modules/@opentelemetry/api/build/esm/context/context.js").createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function r(e){return e.setValue(s,!0)}function o(e){return!0===e.getValue(s)}},"../../node_modules/@opentelemetry/core/build/esm/utils/callback.js":(e,t,n)=>{"use strict";n.d(t,{BindOnceFuture:()=>r});var s=n("../../node_modules/@opentelemetry/core/build/esm/utils/promise.js");class r{_callback;_that;_isCalled=!1;_deferred=new s.Deferred;constructor(e,t){this._callback=e,this._that=t}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(e=>this._deferred.resolve(e),e=>this._deferred.reject(e))}catch(e){this._deferred.reject(e)}}return this._deferred.promise}}},"../../node_modules/@opentelemetry/core/build/esm/utils/lodash.merge.js":(e,t,n)=>{"use strict";n.d(t,{isPlainObject:()=>m});const s="[object Object]",r="[object Null]",o="[object Undefined]",i=Function.prototype.toString,a=i.call(Object),l=Object.getPrototypeOf,c=Object.prototype,u=c.hasOwnProperty,d=Symbol?Symbol.toStringTag:void 0,p=c.toString;function m(e){if(!function(e){return null!=e&&"object"==typeof e}(e)||function(e){if(null==e)return void 0===e?o:r;return d&&d in Object(e)?function(e){const t=u.call(e,d),n=e[d];let s=!1;try{e[d]=void 0,s=!0}catch(e){}const r=p.call(e);s&&(t?e[d]=n:delete e[d]);return r}(e):function(e){return p.call(e)}(e)}(e)!==s)return!1;const t=l(e);if(null===t)return!0;const n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&i.call(n)===a}},"../../node_modules/@opentelemetry/core/build/esm/utils/merge.js":(e,t,n)=>{"use strict";n.d(t,{merge:()=>o});var s=n("../../node_modules/@opentelemetry/core/build/esm/utils/lodash.merge.js");const r=20;function o(...e){let t=e.shift();const n=new WeakMap;for(;e.length>0;)t=a(t,e.shift(),0,n);return t}function i(e){return c(e)?e.slice():e}function a(e,t,n=0,o){let m;if(!(n>r)){if(n++,p(e)||p(t)||u(t))m=i(t);else if(c(e)){if(m=e.slice(),c(t))for(let e=0,n=t.length;e<n;e++)m.push(i(t[e]));else if(d(t)){const e=Object.keys(t);for(let n=0,s=e.length;n<s;n++){const s=e[n];m[s]=i(t[s])}}}else if(d(e))if(d(t)){if(!function(e,t){if(!(0,s.isPlainObject)(e)||!(0,s.isPlainObject)(t))return!1;return!0}(e,t))return t;m=Object.assign({},e);const r=Object.keys(t);for(let s=0,i=r.length;s<i;s++){const i=r[s],c=t[i];if(p(c))void 0===c?delete m[i]:m[i]=c;else{const s=m[i],r=c;if(l(e,i,o)||l(t,i,o))delete m[i];else{if(d(s)&&d(r)){const n=o.get(s)||[],a=o.get(r)||[];n.push({obj:e,key:i}),a.push({obj:t,key:i}),o.set(s,n),o.set(r,a)}m[i]=a(m[i],c,n,o)}}}}else m=t;return m}}function l(e,t,n){const s=n.get(e[t])||[];for(let n=0,r=s.length;n<r;n++){const r=s[n];if(r.key===t&&r.obj===e)return!0}return!1}function c(e){return Array.isArray(e)}function u(e){return"function"==typeof e}function d(e){return!p(e)&&!c(e)&&!u(e)&&"object"==typeof e}function p(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||void 0===e||e instanceof Date||e instanceof RegExp||null===e}},"../../node_modules/@opentelemetry/core/build/esm/utils/promise.js":(e,t,n)=>{"use strict";n.d(t,{Deferred:()=>s});class s{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}}},"../../node_modules/@opentelemetry/core/build/esm/utils/url.js":(e,t,n)=>{"use strict";function s(e,t){return"string"==typeof t?e===t:!!e.match(t)}function r(e,t){if(!t)return!1;for(const n of t)if(s(e,n))return!0;return!1}n.d(t,{isUrlIgnored:()=>r,urlMatches:()=>s})},"../../node_modules/@opentelemetry/core/build/esm/version.js":(e,t,n)=>{"use strict";n.d(t,{VERSION:()=>s});const s="2.0.1"},"../../node_modules/@opentelemetry/exporter-trace-otlp-http/build/esm/platform/browser/OTLPTraceExporter.js":(e,t,n)=>{"use strict";n.d(t,{OTLPTraceExporter:()=>i});var s=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/OTLPExporterBase.js"),r=n("../../node_modules/@opentelemetry/otlp-transformer/build/esm/trace/json/trace.js"),o=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/create-legacy-browser-delegate.js");class i extends s.OTLPExporterBase{constructor(e={}){super((0,o.createLegacyOtlpBrowserExportDelegate)(e,r.JsonTraceSerializer,"v1/traces",{"Content-Type":"application/json"}))}}},"../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/enums/AttributeNames.js":(e,t,n)=>{"use strict";var s;n.d(t,{AttributeNames:()=>s}),function(e){e.DOCUMENT_LOAD="documentLoad",e.DOCUMENT_FETCH="documentFetch",e.RESOURCE_FETCH="resourceFetch"}(s||(s={}))},"../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/enums/EventNames.js":(e,t,n)=>{"use strict";var s;n.d(t,{EventNames:()=>s}),function(e){e.FIRST_PAINT="firstPaint",e.FIRST_CONTENTFUL_PAINT="firstContentfulPaint"}(s||(s={}))},"../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/index.js":(e,t,n)=>{"use strict";n.d(t,{DocumentLoadInstrumentation:()=>s.DocumentLoadInstrumentation});var s=n("../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/instrumentation.js");n("../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/enums/AttributeNames.js")},"../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/instrumentation.js":(e,t,n)=>{"use strict";n.d(t,{DocumentLoadInstrumentation:()=>f});var s=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/propagation-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/context/context.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),a=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js"),l=n("../../node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js"),c=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/enums/PerformanceTimingNames.js"),u=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/utils.js"),d=n("../../node_modules/@opentelemetry/instrumentation/build/esm/platform/browser/instrumentation.js"),p=n("../../node_modules/@opentelemetry/instrumentation/build/esm/utils.js"),m=n("../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/enums/AttributeNames.js"),h=n("../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/version.js"),A=n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js"),g=n("../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/utils.js");class f extends d.InstrumentationBase{component="document-load";version="1";moduleName=this.component;constructor(e={}){super(h.PACKAGE_NAME,h.PACKAGE_VERSION,e)}init(){}_onDocumentLoaded(){window.setTimeout(()=>{this._collectPerformance()})}_addResourcesSpans(e){const t=a.otperformance.getEntriesByType?.("resource");t&&t.forEach(t=>{this._initResourceSpan(t,e)})}_collectPerformance(){const e=Array.from(document.getElementsByTagName("meta")).find(e=>e.getAttribute("name")===l.TRACE_PARENT_HEADER),t=(0,g.getPerformanceNavigationEntries)(),n=e&&e.content||"";s.context.with(r.propagation.extract(o.ROOT_CONTEXT,{traceparent:n}),()=>{const e=this._startSpan(m.AttributeNames.DOCUMENT_LOAD,c.PerformanceTimingNames.FETCH_START,t);e&&(s.context.with(i.trace.setSpan(s.context.active(),e),()=>{const e=this._startSpan(m.AttributeNames.DOCUMENT_FETCH,c.PerformanceTimingNames.FETCH_START,t);e&&(e.setAttribute(A.SEMATTRS_HTTP_URL,location.href),s.context.with(i.trace.setSpan(s.context.active(),e),()=>{(0,u.addSpanNetworkEvents)(e,t,this.getConfig().ignoreNetworkEvents),this._addCustomAttributesOnSpan(e,this.getConfig().applyCustomAttributesOnSpan?.documentFetch),this._endSpan(e,c.PerformanceTimingNames.RESPONSE_END,t)}))}),e.setAttribute(A.SEMATTRS_HTTP_URL,location.href),e.setAttribute(A.SEMATTRS_HTTP_USER_AGENT,navigator.userAgent),this._addResourcesSpans(e),this.getConfig().ignoreNetworkEvents||((0,u.addSpanNetworkEvent)(e,c.PerformanceTimingNames.FETCH_START,t),(0,u.addSpanNetworkEvent)(e,c.PerformanceTimingNames.UNLOAD_EVENT_START,t),(0,u.addSpanNetworkEvent)(e,c.PerformanceTimingNames.UNLOAD_EVENT_END,t),(0,u.addSpanNetworkEvent)(e,c.PerformanceTimingNames.DOM_INTERACTIVE,t),(0,u.addSpanNetworkEvent)(e,c.PerformanceTimingNames.DOM_CONTENT_LOADED_EVENT_START,t),(0,u.addSpanNetworkEvent)(e,c.PerformanceTimingNames.DOM_CONTENT_LOADED_EVENT_END,t),(0,u.addSpanNetworkEvent)(e,c.PerformanceTimingNames.DOM_COMPLETE,t),(0,u.addSpanNetworkEvent)(e,c.PerformanceTimingNames.LOAD_EVENT_START,t),(0,u.addSpanNetworkEvent)(e,c.PerformanceTimingNames.LOAD_EVENT_END,t)),this.getConfig().ignorePerformancePaintEvents||(0,g.addSpanPerformancePaintEvents)(e),this._addCustomAttributesOnSpan(e,this.getConfig().applyCustomAttributesOnSpan?.documentLoad),this._endSpan(e,c.PerformanceTimingNames.LOAD_EVENT_END,t))})}_endSpan(e,t,n){e&&((0,u.hasKey)(n,t)?e.end(n[t]):e.end())}_initResourceSpan(e,t){const n=this._startSpan(m.AttributeNames.RESOURCE_FETCH,c.PerformanceTimingNames.FETCH_START,e,t);n&&(n.setAttribute(A.SEMATTRS_HTTP_URL,e.name),(0,u.addSpanNetworkEvents)(n,e,this.getConfig().ignoreNetworkEvents),this._addCustomAttributesOnResourceSpan(n,e,this.getConfig().applyCustomAttributesOnSpan?.resourceFetch),this._endSpan(n,c.PerformanceTimingNames.RESPONSE_END,e))}_startSpan(e,t,n,r){if((0,u.hasKey)(n,t)&&"number"==typeof n[t]){return this.tracer.startSpan(e,{startTime:n[t]},r?i.trace.setSpan(s.context.active(),r):void 0)}}_waitForPageLoad(){"complete"===window.document.readyState?this._onDocumentLoaded():(this._onDocumentLoaded=this._onDocumentLoaded.bind(this),window.addEventListener("load",this._onDocumentLoaded))}_addCustomAttributesOnSpan(e,t){t&&(0,p.safeExecuteInTheMiddle)(()=>t(e),e=>{e&&this._diag.error("addCustomAttributesOnSpan",e)},!0)}_addCustomAttributesOnResourceSpan(e,t,n){n&&(0,p.safeExecuteInTheMiddle)(()=>n(e,t),e=>{e&&this._diag.error("addCustomAttributesOnResourceSpan",e)},!0)}enable(){window.removeEventListener("load",this._onDocumentLoaded),this._waitForPageLoad()}disable(){window.removeEventListener("load",this._onDocumentLoaded)}}},"../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/utils.js":(e,t,n)=>{"use strict";n.d(t,{addSpanPerformancePaintEvents:()=>c,getPerformanceNavigationEntries:()=>a});var s=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js"),r=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/enums/PerformanceTimingNames.js"),o=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/utils.js"),i=n("../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/enums/EventNames.js");const a=()=>{const e={},t=s.otperformance.getEntriesByType?.("navigation")[0];if(t){Object.values(r.PerformanceTimingNames).forEach(n=>{if((0,o.hasKey)(t,n)){const s=t[n];"number"==typeof s&&(e[n]=s)}})}else{const t=s.otperformance.timing;if(t){Object.values(r.PerformanceTimingNames).forEach(n=>{if((0,o.hasKey)(t,n)){const s=t[n];"number"==typeof s&&(e[n]=s)}})}}return e},l={"first-paint":i.EventNames.FIRST_PAINT,"first-contentful-paint":i.EventNames.FIRST_CONTENTFUL_PAINT},c=e=>{const t=s.otperformance.getEntriesByType?.("paint");t&&t.forEach(({name:t,startTime:n})=>{(0,o.hasKey)(l,t)&&e.addEvent(l[t],n)})}},"../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/version.js":(e,t,n)=>{"use strict";n.d(t,{PACKAGE_NAME:()=>r,PACKAGE_VERSION:()=>s});const s="0.48.0",r="@opentelemetry/instrumentation-document-load"},"../../node_modules/@opentelemetry/instrumentation-fetch/build/esm/enums/AttributeNames.js":(e,t,n)=>{"use strict";var s;n.d(t,{AttributeNames:()=>s}),function(e){e.COMPONENT="component",e.HTTP_STATUS_TEXT="http.status_text"}(s||(s={}))},"../../node_modules/@opentelemetry/instrumentation-fetch/build/esm/fetch.js":(e,t,n)=>{"use strict";n.d(t,{FetchInstrumentation:()=>T});var s=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/propagation-api.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/trace/span_kind.js"),a=n("../../node_modules/@opentelemetry/api/build/esm/trace/status.js"),l=n("../../node_modules/@opentelemetry/instrumentation/build/esm/platform/browser/instrumentation.js"),c=n("../../node_modules/@opentelemetry/instrumentation/build/esm/semconvStability.js"),u=n("../../node_modules/@opentelemetry/instrumentation/build/esm/utils.js"),d=n("../../node_modules/@opentelemetry/core/build/esm/utils/url.js"),p=n("../../node_modules/@opentelemetry/core/build/esm/common/time.js"),m=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/enums/PerformanceTimingNames.js"),h=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/utils.js"),A=n("../../node_modules/@opentelemetry/instrumentation-fetch/build/esm/enums/AttributeNames.js"),g=n("../../node_modules/@opentelemetry/instrumentation-fetch/build/src/semconv.js"),f=n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js"),_=n("../../node_modules/@opentelemetry/instrumentation-fetch/build/esm/utils.js"),E=n("../../node_modules/@opentelemetry/instrumentation-fetch/build/esm/version.js"),b=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/globalThis.js");const y="object"==typeof process&&"node"===process.release?.name;class T extends l.InstrumentationBase{component="fetch";version=E.VERSION;moduleName=this.component;_usedResources=new WeakSet;_tasksCount=0;_semconvStability;constructor(e={}){super("@opentelemetry/instrumentation-fetch",E.VERSION,e),this._semconvStability=(0,c.semconvStabilityFromStr)("http",e?.semconvStabilityOptIn)}init(){}_addChildSpan(e,t){const n=this.tracer.startSpan("CORS Preflight",{startTime:t[m.PerformanceTimingNames.FETCH_START]},s.trace.setSpan(r.context.active(),e)),o=!(this._semconvStability&c.SemconvStability.OLD);h.addSpanNetworkEvents(n,t,this.getConfig().ignoreNetworkEvents,void 0,o),n.end(t[m.PerformanceTimingNames.RESPONSE_END])}_addFinalSpanAttributes(e,t){const n=h.parseUrl(t.url);if(this._semconvStability&c.SemconvStability.OLD&&(e.setAttribute(g.ATTR_HTTP_STATUS_CODE,t.status),null!=t.statusText&&e.setAttribute(A.AttributeNames.HTTP_STATUS_TEXT,t.statusText),e.setAttribute(g.ATTR_HTTP_HOST,n.host),e.setAttribute(g.ATTR_HTTP_SCHEME,n.protocol.replace(":","")),"undefined"!=typeof navigator&&e.setAttribute(g.ATTR_HTTP_USER_AGENT,navigator.userAgent)),this._semconvStability&c.SemconvStability.STABLE){e.setAttribute(f.ATTR_HTTP_RESPONSE_STATUS_CODE,t.status),e.setAttribute(f.ATTR_SERVER_ADDRESS,n.hostname);const s=(0,_.serverPortFromUrl)(n);s&&e.setAttribute(f.ATTR_SERVER_PORT,s)}}_addHeaders(e,t){if(!h.shouldPropagateTraceHeaders(t,this.getConfig().propagateTraceHeaderCorsUrls)){const e={};return o.propagation.inject(r.context.active(),e),void(Object.keys(e).length>0&&this._diag.debug("headers inject skipped due to CORS policy"))}if(e instanceof Request)o.propagation.inject(r.context.active(),e.headers,{set:(e,t,n)=>e.set(t,"string"==typeof n?n:String(n))});else if(e.headers instanceof Headers)o.propagation.inject(r.context.active(),e.headers,{set:(e,t,n)=>e.set(t,"string"==typeof n?n:String(n))});else if(e.headers instanceof Map)o.propagation.inject(r.context.active(),e.headers,{set:(e,t,n)=>e.set(t,"string"==typeof n?n:String(n))});else{const t={};o.propagation.inject(r.context.active(),t),e.headers=Object.assign({},t,e.headers||{})}}_clearResources(){0===this._tasksCount&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)}_createSpan(e,t={}){if(d.isUrlIgnored(e,this.getConfig().ignoreUrls))return void this._diag.debug("ignoring span as url matches ignored url");let n="";const s={};if(this._semconvStability&c.SemconvStability.OLD){const r=(t.method||"GET").toUpperCase();n=`HTTP ${r}`,s[A.AttributeNames.COMPONENT]=this.moduleName,s[g.ATTR_HTTP_METHOD]=r,s[g.ATTR_HTTP_URL]=e}if(this._semconvStability&c.SemconvStability.STABLE){const r=t.method,o=(0,_.normalizeHttpRequestMethod)(t.method||"GET");n||(n=o),s[f.ATTR_HTTP_REQUEST_METHOD]=o,o!==r&&(s[f.ATTR_HTTP_REQUEST_METHOD_ORIGINAL]=r),s[f.ATTR_URL_FULL]=e}return this.tracer.startSpan(n,{kind:i.SpanKind.CLIENT,attributes:s})}_findResourceAndAddNetworkEvents(e,t,n){let s=t.entries;if(!s.length){if(!performance.getEntriesByType)return;s=performance.getEntriesByType("resource")}const r=h.getResource(t.spanUrl,t.startTime,n,s,this._usedResources,"fetch");if(r.mainRequest){const t=r.mainRequest;this._markResourceAsUsed(t);const n=r.corsPreFlightRequest;n&&(this._addChildSpan(e,n),this._markResourceAsUsed(n));const s=!(this._semconvStability&c.SemconvStability.OLD);h.addSpanNetworkEvents(e,t,this.getConfig().ignoreNetworkEvents,void 0,s)}}_markResourceAsUsed(e){this._usedResources.add(e)}_endSpan(e,t,n){const s=p.millisToHrTime(Date.now()),r=p.hrTime();this._addFinalSpanAttributes(e,n),this._semconvStability&c.SemconvStability.STABLE&&n.status>=400&&(e.setStatus({code:a.SpanStatusCode.ERROR}),e.setAttribute(f.ATTR_ERROR_TYPE,String(n.status))),setTimeout(()=>{t.observer?.disconnect(),this._findResourceAndAddNetworkEvents(e,t,r),this._tasksCount--,this._clearResources(),e.end(s)},300)}_patchConstructor(){return e=>{const t=this;return function(...n){const o=this,i=h.parseUrl(n[0]instanceof Request?n[0].url:String(n[0])).href,a=n[0]instanceof Request?n[0]:n[1]||{},l=t._createSpan(i,a);if(!l)return e.apply(this,n);const u=t._prepareSpanData(i);function d(e,n){t._applyAttributesAfterFetch(e,a,n),t._endSpan(e,u,{status:n.status||0,statusText:n.message,url:i})}function p(e,n){t._applyAttributesAfterFetch(e,a,n),n.status>=200&&n.status<400?t._endSpan(e,u,n):t._endSpan(e,u,{status:n.status,statusText:n.statusText,url:i})}function m(e,t,n){try{const t=n.clone().body;if(t){const s=t.getReader(),r=()=>{s.read().then(({done:t})=>{t?p(e,n):r()},t=>{d(e,t)})};r()}else p(e,n)}finally{t(n)}}function A(e,t,n){try{d(e,n)}finally{t(n)}}return t.getConfig().measureRequestSize&&(0,_.getFetchBodyLength)(...n).then(e=>{e&&(t._semconvStability&c.SemconvStability.OLD&&l.setAttribute(g.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED,e),t._semconvStability&c.SemconvStability.STABLE&&l.setAttribute(g.ATTR_HTTP_REQUEST_BODY_SIZE,e))}).catch(e=>{t._diag.warn("getFetchBodyLength",e)}),new Promise((n,c)=>r.context.with(s.trace.setSpan(r.context.active(),l),()=>(t._addHeaders(a,i),t._callRequestHook(l,a),t._tasksCount++,e.apply(o,a instanceof Request?[a]:[i,a]).then(m.bind(o,l,n),A.bind(o,l,c)))))}}}_applyAttributesAfterFetch(e,t,n){const s=this.getConfig().applyCustomAttributesOnSpan;s&&(0,u.safeExecuteInTheMiddle)(()=>s(e,t,n),e=>{e&&this._diag.error("applyCustomAttributesOnSpan",e)},!0)}_callRequestHook(e,t){const n=this.getConfig().requestHook;n&&(0,u.safeExecuteInTheMiddle)(()=>n(e,t),e=>{e&&this._diag.error("requestHook",e)},!0)}_prepareSpanData(e){const t=p.hrTime(),n=[];if("function"!=typeof PerformanceObserver)return{entries:n,startTime:t,spanUrl:e};const s=new PerformanceObserver(t=>{t.getEntries().forEach(t=>{"fetch"===t.initiatorType&&t.name===e&&n.push(t)})});return s.observe({entryTypes:["resource"]}),{entries:n,observer:s,startTime:t,spanUrl:e}}enable(){y?this._diag.warn("this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()"):((0,u.isWrapped)(fetch)&&(this._unwrap(b._globalThis,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(b._globalThis,"fetch",this._patchConstructor()))}disable(){y||(this._unwrap(b._globalThis,"fetch"),this._usedResources=new WeakSet)}}},"../../node_modules/@opentelemetry/instrumentation-fetch/build/esm/utils.js":(e,t,n)=>{"use strict";n.d(t,{getFetchBodyLength:()=>i,normalizeHttpRequestMethod:()=>c,serverPortFromUrl:()=>h});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),r=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/environment.js");const o=s.diag.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-fetch/utils"});function i(...e){if(e[0]instanceof URL||"string"==typeof e[0]){const t=e[1];if(!t?.body)return Promise.resolve();if(t.body instanceof ReadableStream){const{body:e,length:n}=function(e){if(!e.pipeThrough)return o.warn("Platform has ReadableStream but not pipeThrough!"),{body:e,length:Promise.resolve(void 0)};let t,n=0;const s=new Promise(e=>{t=e}),r=new TransformStream({start(){},async transform(e,t){const s=await e;n+=s.byteLength,t.enqueue(e)},flush(){t(n)}});return{body:e.pipeThrough(r),length:s}}(t.body);return t.body=e,n}return Promise.resolve(function(e){if(t=e,"undefined"!=typeof Document&&t instanceof Document)return(new XMLSerializer).serializeToString(document).length;var t;if("string"==typeof e)return l(e);if(e instanceof Blob)return e.size;if(e instanceof FormData)return function(e){let t=0;for(const[n,s]of e.entries())t+=n.length,s instanceof Blob?t+=s.size:t+=s.length;return t}(e);if(e instanceof URLSearchParams)return l(e.toString());if(void 0!==e.byteLength)return e.byteLength;return void o.warn("unknown body type")}(t.body))}{const t=e[0];return t?.body?t.clone().text().then(e=>l(e)):Promise.resolve()}}const a=new TextEncoder;function l(e){return a.encode(e).byteLength}function c(e){const t=p(),n=e.toUpperCase();return n in t?n:"_OTHER"}const u={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0};let d;function p(){if(void 0===d){const e=(0,r.getStringListFromEnv)("OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS");e&&e.length>0?(d={},e.forEach(e=>{d[e]=!0})):d=u}return d}const m={"https:":"443","http:":"80"};function h(e){const t=Number(e.port||m[e.protocol]);return t&&!isNaN(t)?t:void 0}},"../../node_modules/@opentelemetry/instrumentation-fetch/build/esm/version.js":(e,t,n)=>{"use strict";n.d(t,{VERSION:()=>s});const s="0.203.0"},"../../node_modules/@opentelemetry/instrumentation-fetch/build/src/semconv.js":(e,t)=>{"use strict";t.ATTR_HTTP_USER_AGENT=t.ATTR_HTTP_URL=t.ATTR_HTTP_STATUS_CODE=t.ATTR_HTTP_SCHEME=t.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED=t.ATTR_HTTP_REQUEST_BODY_SIZE=t.ATTR_HTTP_METHOD=t.ATTR_HTTP_HOST=void 0,t.ATTR_HTTP_HOST="http.host",t.ATTR_HTTP_METHOD="http.method",t.ATTR_HTTP_REQUEST_BODY_SIZE="http.request.body.size",t.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED="http.request_content_length_uncompressed",t.ATTR_HTTP_SCHEME="http.scheme",t.ATTR_HTTP_STATUS_CODE="http.status_code",t.ATTR_HTTP_URL="http.url",t.ATTR_HTTP_USER_AGENT="http.user_agent"},"../../node_modules/@opentelemetry/instrumentation-user-interaction/build/esm/enums/AttributeNames.js":(e,t,n)=>{"use strict";var s;n.d(t,{AttributeNames:()=>s}),function(e){e.EVENT_TYPE="event_type",e.TARGET_ELEMENT="target_element",e.TARGET_XPATH="target_xpath",e.HTTP_URL="http.url"}(s||(s={}))},"../../node_modules/@opentelemetry/instrumentation-user-interaction/build/esm/instrumentation.js":(e,t,n)=>{"use strict";n.d(t,{UserInteractionInstrumentation:()=>m});var s=n("../../node_modules/@opentelemetry/instrumentation/build/esm/platform/browser/instrumentation.js"),r=n("../../node_modules/@opentelemetry/instrumentation/build/esm/utils.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),a=n("../../node_modules/@opentelemetry/core/build/esm/common/time.js"),l=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/utils.js"),c=n("../../node_modules/@opentelemetry/instrumentation-user-interaction/build/esm/enums/AttributeNames.js"),u=n("../../node_modules/@opentelemetry/instrumentation-user-interaction/build/esm/version.js");const d=["click"];function p(){return!1}class m extends s.InstrumentationBase{version=u.PACKAGE_VERSION;moduleName="user-interaction";_spansData=new WeakMap;_wrappedListeners=new WeakMap;_eventsSpanMap=new WeakMap;_eventNames;_shouldPreventSpanCreation;constructor(e={}){super(u.PACKAGE_NAME,u.PACKAGE_VERSION,e),this._eventNames=new Set(e?.eventNames??d),this._shouldPreventSpanCreation="function"==typeof e?.shouldPreventSpanCreation?e.shouldPreventSpanCreation:p}init(){}_checkForTimeout(e,t){const n=this._spansData.get(t);n&&("setTimeout"===e.source?n.hrTimeLastTimeout=(0,a.hrTime)():"Promise.then"!==e.source&&"setTimeout"!==e.source&&(n.hrTimeLastTimeout=void 0))}_allowEventName(e){return this._eventNames.has(e)}_createSpan(e,t,n){if(!(e instanceof HTMLElement))return;if(!e.getAttribute)return;if(e.hasAttribute("disabled"))return;if(!this._allowEventName(t))return;const s=(0,l.getElementXPath)(e,!0);try{const r=this.tracer.startSpan(t,{attributes:{[c.AttributeNames.EVENT_TYPE]:t,[c.AttributeNames.TARGET_ELEMENT]:e.tagName,[c.AttributeNames.TARGET_XPATH]:s,[c.AttributeNames.HTTP_URL]:window.location.href}},n?o.trace.setSpan(i.context.active(),n):void 0);if(!0===this._shouldPreventSpanCreation(t,e,r))return;return this._spansData.set(r,{taskCount:0}),r}catch(e){this._diag.error("failed to start create new user interaction span",e)}}_decrementTask(e){const t=this._spansData.get(e);t&&(t.taskCount--,0===t.taskCount&&this._tryToEndSpan(e,t.hrTimeLastTimeout))}_getCurrentSpan(e){const t=e.get("OT_ZONE_CONTEXT");return t?o.trace.getSpan(t):t}_incrementTask(e){const t=this._spansData.get(e);t&&t.taskCount++}addPatchedListener(e,t,n,s){let r=this._wrappedListeners.get(n);r||(r=new Map,this._wrappedListeners.set(n,r));let o=r.get(t);return o||(o=new Map,r.set(t,o)),!o.has(e)&&(o.set(e,s),!0)}removePatchedListener(e,t,n){const s=this._wrappedListeners.get(n);if(!s)return;const r=s.get(t);if(!r)return;const o=r.get(e);return o&&(r.delete(e),0===r.size&&(s.delete(t),0===s.size&&this._wrappedListeners.delete(n))),o}_invokeListener(e,t,n){return"function"==typeof e?e.apply(t,n):e.handleEvent(n[0])}_patchAddEventListener(){const e=this;return t=>function(n,s,r){if(!s)return t.call(this,n,s,r);const a=r&&"object"==typeof r&&r.once,l=function(...t){let r;const l=t[0],c=l?.target;l&&(r=e._eventsSpanMap.get(l)),a&&e.removePatchedListener(this,n,s);const u=e._createSpan(c,n,r);return u?(l&&e._eventsSpanMap.set(l,u),i.context.with(o.trace.setSpan(i.context.active(),u),()=>{const n=e._invokeListener(s,this,t);return u.end(),n})):e._invokeListener(s,this,t)};return e.addPatchedListener(this,n,s,l)?t.call(this,n,l,r):void 0}}_patchRemoveEventListener(){const e=this;return t=>function(n,s,r){const o=e.removePatchedListener(this,n,s);return o?t.call(this,n,o,r):t.call(this,n,s,r)}}_getPatchableEventTargets(){return window.EventTarget?[EventTarget.prototype]:[Node.prototype,Window.prototype]}_patchHistoryApi(){this._unpatchHistoryApi(),this._wrap(history,"replaceState",this._patchHistoryMethod()),this._wrap(history,"pushState",this._patchHistoryMethod()),this._wrap(history,"back",this._patchHistoryMethod()),this._wrap(history,"forward",this._patchHistoryMethod()),this._wrap(history,"go",this._patchHistoryMethod())}_patchHistoryMethod(){const e=this;return t=>function(...n){const s=`${location.pathname}${location.hash}${location.search}`,r=t.apply(this,n),o=`${location.pathname}${location.hash}${location.search}`;return s!==o&&e._updateInteractionName(o),r}}_unpatchHistoryApi(){(0,r.isWrapped)(history.replaceState)&&this._unwrap(history,"replaceState"),(0,r.isWrapped)(history.pushState)&&this._unwrap(history,"pushState"),(0,r.isWrapped)(history.back)&&this._unwrap(history,"back"),(0,r.isWrapped)(history.forward)&&this._unwrap(history,"forward"),(0,r.isWrapped)(history.go)&&this._unwrap(history,"go")}_updateInteractionName(e){const t=o.trace.getSpan(i.context.active());t&&"function"==typeof t.updateName&&t.updateName(`Navigation: ${e}`)}_patchZoneCancelTask(){const e=this;return t=>function(n){const s=Zone.current,r=e._getCurrentSpan(s);return r&&e._shouldCountTask(n,s)&&e._decrementTask(r),t.call(this,n)}}_patchZoneScheduleTask(){const e=this;return t=>function(n){const s=Zone.current,r=e._getCurrentSpan(s);return r&&e._shouldCountTask(n,s)&&(e._incrementTask(r),e._checkForTimeout(n,r)),t.call(this,n)}}_patchZoneRunTask(){const e=this;return t=>function(n,s,r){const a=Array.isArray(r)&&r[0]instanceof Event?r[0]:void 0,l=a?.target;let c;const u=this;if(l){if(c=e._createSpan(l,n.eventName),c)return e._incrementTask(c),u.run(()=>{try{return i.context.with(o.trace.setSpan(i.context.active(),c),()=>{const e=Zone.current;return n._zone=e,t.call(e,n,s,r)})}finally{e._decrementTask(c)}})}else c=e._getCurrentSpan(u);try{return t.call(u,n,s,r)}finally{c&&e._shouldCountTask(n,u)&&e._decrementTask(c)}}}_shouldCountTask(e,t){if(e._zone&&(t=e._zone),!t||!e.data||e.data.isPeriodic)return!1;const n=this._getCurrentSpan(t);return!!n&&(!!this._spansData.get(n)&&("macroTask"===e.type||"microTask"===e.type))}_tryToEndSpan(e,t){if(e){this._spansData.get(e)&&(e.end(t),this._spansData.delete(e))}}enable(){const e=this._getZoneWithPrototype();if(this._diag.debug("applying patch to",this.moduleName,this.version,"zone:",!!e),e)(0,r.isWrapped)(e.prototype.runTask)&&(this._unwrap(e.prototype,"runTask"),this._diag.debug("removing previous patch from method runTask")),(0,r.isWrapped)(e.prototype.scheduleTask)&&(this._unwrap(e.prototype,"scheduleTask"),this._diag.debug("removing previous patch from method scheduleTask")),(0,r.isWrapped)(e.prototype.cancelTask)&&(this._unwrap(e.prototype,"cancelTask"),this._diag.debug("removing previous patch from method cancelTask")),this._zonePatched=!0,this._wrap(e.prototype,"runTask",this._patchZoneRunTask()),this._wrap(e.prototype,"scheduleTask",this._patchZoneScheduleTask()),this._wrap(e.prototype,"cancelTask",this._patchZoneCancelTask());else{this._zonePatched=!1;this._getPatchableEventTargets().forEach(e=>{(0,r.isWrapped)(e.addEventListener)&&(this._unwrap(e,"addEventListener"),this._diag.debug("removing previous patch from method addEventListener")),(0,r.isWrapped)(e.removeEventListener)&&(this._unwrap(e,"removeEventListener"),this._diag.debug("removing previous patch from method removeEventListener")),this._wrap(e,"addEventListener",this._patchAddEventListener()),this._wrap(e,"removeEventListener",this._patchRemoveEventListener())})}this._patchHistoryApi()}disable(){const e=this._getZoneWithPrototype();if(this._diag.debug("removing patch from",this.moduleName,this.version,"zone:",!!e),e&&this._zonePatched)(0,r.isWrapped)(e.prototype.runTask)&&this._unwrap(e.prototype,"runTask"),(0,r.isWrapped)(e.prototype.scheduleTask)&&this._unwrap(e.prototype,"scheduleTask"),(0,r.isWrapped)(e.prototype.cancelTask)&&this._unwrap(e.prototype,"cancelTask");else{this._getPatchableEventTargets().forEach(e=>{(0,r.isWrapped)(e.addEventListener)&&this._unwrap(e,"addEventListener"),(0,r.isWrapped)(e.removeEventListener)&&this._unwrap(e,"removeEventListener")})}this._unpatchHistoryApi()}_getZoneWithPrototype(){return window.Zone}}},"../../node_modules/@opentelemetry/instrumentation-user-interaction/build/esm/version.js":(e,t,n)=>{"use strict";n.d(t,{PACKAGE_NAME:()=>r,PACKAGE_VERSION:()=>s});const s="0.48.0",r="@opentelemetry/instrumentation-user-interaction"},"../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/enums/AttributeNames.js":(e,t,n)=>{"use strict";var s;n.d(t,{AttributeNames:()=>s}),function(e){e.HTTP_STATUS_TEXT="http.status_text"}(s||(s={}))},"../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/enums/EventNames.js":(e,t,n)=>{"use strict";var s;n.d(t,{EventNames:()=>s}),function(e){e.METHOD_OPEN="open",e.METHOD_SEND="send",e.EVENT_ABORT="abort",e.EVENT_ERROR="error",e.EVENT_LOAD="loaded",e.EVENT_TIMEOUT="timeout"}(s||(s={}))},"../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/semconv.js":(e,t,n)=>{"use strict";n.d(t,{ATTR_HTTP_HOST:()=>s,ATTR_HTTP_METHOD:()=>r,ATTR_HTTP_REQUEST_BODY_SIZE:()=>o,ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>i,ATTR_HTTP_SCHEME:()=>a,ATTR_HTTP_STATUS_CODE:()=>l,ATTR_HTTP_URL:()=>c,ATTR_HTTP_USER_AGENT:()=>u});const s="http.host",r="http.method",o="http.request.body.size",i="http.request_content_length_uncompressed",a="http.scheme",l="http.status_code",c="http.url",u="http.user_agent"},"../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/utils.js":(e,t,n)=>{"use strict";n.d(t,{getXHRBodyLength:()=>i,normalizeHttpRequestMethod:()=>c,serverPortFromUrl:()=>h});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),r=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/environment.js");const o=s.diag.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-xml-http-request/utils"});function i(e){return t=e,"undefined"!=typeof Document&&t instanceof Document?(new XMLSerializer).serializeToString(document).length:"string"==typeof e?l(e):e instanceof Blob?e.size:e instanceof FormData?function(e){let t=0;for(const[n,s]of e.entries())t+=n.length,s instanceof Blob?t+=s.size:t+=s.length;return t}(e):e instanceof URLSearchParams?l(e.toString()):void 0!==e.byteLength?e.byteLength:void o.warn("unknown body type");var t}const a=new TextEncoder;function l(e){return a.encode(e).byteLength}function c(e){const t=p(),n=e.toUpperCase();return n in t?n:"_OTHER"}const u={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0};let d;function p(){if(void 0===d){const e=(0,r.getStringListFromEnv)("OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS");e&&e.length>0?(d={},e.forEach(e=>{d[e]=!0})):d=u}return d}const m={"https:":"443","http:":"80"};function h(e){const t=Number(e.port||m[e.protocol]);return t&&!isNaN(t)?t:void 0}},"../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/version.js":(e,t,n)=>{"use strict";n.d(t,{VERSION:()=>s});const s="0.203.0"},"../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/xhr.js":(e,t,n)=>{"use strict";n.d(t,{XMLHttpRequestInstrumentation:()=>T});var s=n("../../node_modules/@opentelemetry/api/build/esm/propagation-api.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/trace/span_kind.js"),a=n("../../node_modules/@opentelemetry/api/build/esm/trace/status.js"),l=n("../../node_modules/@opentelemetry/instrumentation/build/esm/platform/browser/instrumentation.js"),c=n("../../node_modules/@opentelemetry/instrumentation/build/esm/semconvStability.js"),u=n("../../node_modules/@opentelemetry/instrumentation/build/esm/utils.js"),d=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js"),p=n("../../node_modules/@opentelemetry/core/build/esm/utils/url.js"),m=n("../../node_modules/@opentelemetry/core/build/esm/common/time.js"),h=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/utils.js"),A=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/enums/PerformanceTimingNames.js"),g=n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js"),f=n("../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/semconv.js"),_=n("../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/enums/EventNames.js"),E=n("../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/utils.js"),b=n("../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/version.js"),y=n("../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/enums/AttributeNames.js");class T extends l.InstrumentationBase{component="xml-http-request";version=b.VERSION;moduleName=this.component;_tasksCount=0;_xhrMem=new WeakMap;_usedResources=new WeakSet;_semconvStability;constructor(e={}){super("@opentelemetry/instrumentation-xml-http-request",b.VERSION,e),this._semconvStability=(0,c.semconvStabilityFromStr)("http",e?.semconvStabilityOptIn)}init(){}_addHeaders(e,t){const n=(0,h.parseUrl)(t).href;if(!(0,h.shouldPropagateTraceHeaders)(n,this.getConfig().propagateTraceHeaderCorsUrls)){const e={};return s.propagation.inject(r.context.active(),e),void(Object.keys(e).length>0&&this._diag.debug("headers inject skipped due to CORS policy"))}const o={};s.propagation.inject(r.context.active(),o),Object.keys(o).forEach(t=>{e.setRequestHeader(t,String(o[t]))})}_addChildSpan(e,t){r.context.with(o.trace.setSpan(r.context.active(),e),()=>{const e=this.tracer.startSpan("CORS Preflight",{startTime:t[A.PerformanceTimingNames.FETCH_START]}),n=!(this._semconvStability&c.SemconvStability.OLD);(0,h.addSpanNetworkEvents)(e,t,this.getConfig().ignoreNetworkEvents,void 0,n),e.end(t[A.PerformanceTimingNames.RESPONSE_END])})}_addFinalSpanAttributes(e,t,n){if(this._semconvStability&c.SemconvStability.OLD){if(void 0!==t.status&&e.setAttribute(f.ATTR_HTTP_STATUS_CODE,t.status),void 0!==t.statusText&&e.setAttribute(y.AttributeNames.HTTP_STATUS_TEXT,t.statusText),"string"==typeof n){const t=(0,h.parseUrl)(n);e.setAttribute(f.ATTR_HTTP_HOST,t.host),e.setAttribute(f.ATTR_HTTP_SCHEME,t.protocol.replace(":",""))}e.setAttribute(f.ATTR_HTTP_USER_AGENT,navigator.userAgent)}this._semconvStability&c.SemconvStability.STABLE&&t.status&&e.setAttribute(g.ATTR_HTTP_RESPONSE_STATUS_CODE,t.status)}_applyAttributesAfterXHR(e,t){const n=this.getConfig().applyCustomAttributesOnSpan;"function"==typeof n&&(0,u.safeExecuteInTheMiddle)(()=>n(e,t),e=>{e&&this._diag.error("applyCustomAttributesOnSpan",e)},!0)}_addResourceObserver(e,t){const n=this._xhrMem.get(e);n&&"function"==typeof PerformanceObserver&&"function"==typeof PerformanceResourceTiming&&(n.createdResources={observer:new PerformanceObserver(e=>{const s=e.getEntries(),r=(0,h.parseUrl)(t);s.forEach(e=>{"xmlhttprequest"===e.initiatorType&&e.name===r.href&&n.createdResources&&n.createdResources.entries.push(e)})}),entries:[]},n.createdResources.observer.observe({entryTypes:["resource"]}))}_clearResources(){0===this._tasksCount&&this.getConfig().clearTimingResources&&(d.otperformance.clearResourceTimings(),this._xhrMem=new WeakMap,this._usedResources=new WeakSet)}_findResourceAndAddNetworkEvents(e,t,n,s,r){if(!(n&&s&&r&&e.createdResources))return;let o=e.createdResources.entries;o&&o.length||(o=d.otperformance.getEntriesByType("resource"));const i=(0,h.getResource)((0,h.parseUrl)(n).href,s,r,o,this._usedResources);if(i.mainRequest){const e=i.mainRequest;this._markResourceAsUsed(e);const n=i.corsPreFlightRequest;n&&(this._addChildSpan(t,n),this._markResourceAsUsed(n));const s=!(this._semconvStability&c.SemconvStability.OLD);(0,h.addSpanNetworkEvents)(t,e,this.getConfig().ignoreNetworkEvents,void 0,s)}}_cleanPreviousSpanInformation(e){const t=this._xhrMem.get(e);if(t){const n=t.callbackToRemoveEvents;n&&n(),this._xhrMem.delete(e)}}_createSpan(e,t,n){if((0,p.isUrlIgnored)(t,this.getConfig().ignoreUrls))return void this._diag.debug("ignoring span as url matches ignored url");let s="";const r=(0,h.parseUrl)(t),o={};if(this._semconvStability&c.SemconvStability.OLD&&(s=n.toUpperCase(),o[f.ATTR_HTTP_METHOD]=n,o[f.ATTR_HTTP_URL]=r.toString()),this._semconvStability&c.SemconvStability.STABLE){const e=n,t=(0,E.normalizeHttpRequestMethod)(n);s||(s=t),o[g.ATTR_HTTP_REQUEST_METHOD]=t,t!==e&&(o[g.ATTR_HTTP_REQUEST_METHOD_ORIGINAL]=e),o[g.ATTR_URL_FULL]=r.toString(),o[g.ATTR_SERVER_ADDRESS]=r.hostname;const i=(0,E.serverPortFromUrl)(r);i&&(o[g.ATTR_SERVER_PORT]=i)}const a=this.tracer.startSpan(s,{kind:i.SpanKind.CLIENT,attributes:o});return a.addEvent(_.EventNames.METHOD_OPEN),this._cleanPreviousSpanInformation(e),this._xhrMem.set(e,{span:a,spanUrl:t}),a}_markResourceAsUsed(e){this._usedResources.add(e)}_patchOpen(){return e=>{const t=this;return function(...n){const s=n[0],r=n[1];return t._createSpan(this,r,s),e.apply(this,n)}}}_patchSend(){const e=this;function t(t,n,s,r){const o=e._xhrMem.get(n);if(!o)return;if(o.status=n.status,o.statusText=n.statusText,e._xhrMem.delete(n),o.span){const t=o.span;e._applyAttributesAfterXHR(t,n),e._semconvStability&c.SemconvStability.STABLE&&(s?r&&(t.setStatus({code:a.SpanStatusCode.ERROR,message:r}),t.setAttribute(g.ATTR_ERROR_TYPE,r)):o.status&&o.status>=400&&(t.setStatus({code:a.SpanStatusCode.ERROR}),t.setAttribute(g.ATTR_ERROR_TYPE,String(o.status))))}const i=(0,m.hrTime)(),l=Date.now();setTimeout(()=>{!function(t,n,s,r){const o=n.callbackToRemoveEvents;"function"==typeof o&&o();const{span:i,spanUrl:a,sendStartTime:l}=n;i&&(e._findResourceAndAddNetworkEvents(n,i,a,l,s),i.addEvent(t,r),e._addFinalSpanAttributes(i,n,a),i.end(r),e._tasksCount--),e._clearResources()}(t,o,i,l)},300)}function n(){t(_.EventNames.EVENT_ERROR,this,!0,"error")}function s(){t(_.EventNames.EVENT_ABORT,this,!1)}function i(){t(_.EventNames.EVENT_TIMEOUT,this,!0,"timeout")}function l(){this.status<299?t(_.EventNames.EVENT_LOAD,this,!1):t(_.EventNames.EVENT_ERROR,this,!1)}return t=>function(...a){const u=e._xhrMem.get(this);if(!u)return t.apply(this,a);const d=u.span,p=u.spanUrl;if(d&&p){if(e.getConfig().measureRequestSize&&a?.[0]){const t=a[0],n=(0,E.getXHRBodyLength)(t);void 0!==n&&(e._semconvStability&c.SemconvStability.OLD&&d.setAttribute(f.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED,n),e._semconvStability&c.SemconvStability.STABLE&&d.setAttribute(f.ATTR_HTTP_REQUEST_BODY_SIZE,n))}r.context.with(o.trace.setSpan(r.context.active(),d),()=>{e._tasksCount++,u.sendStartTime=(0,m.hrTime)(),d.addEvent(_.EventNames.METHOD_SEND),this.addEventListener("abort",s),this.addEventListener("error",n),this.addEventListener("load",l),this.addEventListener("timeout",i),u.callbackToRemoveEvents=()=>{!function(t){t.removeEventListener("abort",s),t.removeEventListener("error",n),t.removeEventListener("load",l),t.removeEventListener("timeout",i);const r=e._xhrMem.get(t);r&&(r.callbackToRemoveEvents=void 0)}(this),u.createdResources&&u.createdResources.observer.disconnect()},e._addHeaders(this,p),e._addResourceObserver(this,p)})}return t.apply(this,a)}}enable(){this._diag.debug("applying patch to",this.moduleName,this.version),(0,u.isWrapped)(XMLHttpRequest.prototype.open)&&(this._unwrap(XMLHttpRequest.prototype,"open"),this._diag.debug("removing previous patch from method open")),(0,u.isWrapped)(XMLHttpRequest.prototype.send)&&(this._unwrap(XMLHttpRequest.prototype,"send"),this._diag.debug("removing previous patch from method send")),this._wrap(XMLHttpRequest.prototype,"open",this._patchOpen()),this._wrap(XMLHttpRequest.prototype,"send",this._patchSend())}disable(){this._diag.debug("removing patch from",this.moduleName,this.version),this._unwrap(XMLHttpRequest.prototype,"open"),this._unwrap(XMLHttpRequest.prototype,"send"),this._tasksCount=0,this._xhrMem=new WeakMap,this._usedResources=new WeakSet}}},"../../node_modules/@opentelemetry/instrumentation/build/esm/autoLoader.js":(e,t,n)=>{"use strict";n.d(t,{registerInstrumentations:()=>a});var s=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/metrics-api.js"),o=n("../../node_modules/@opentelemetry/api-logs/build/esm/index.js"),i=n("../../node_modules/@opentelemetry/instrumentation/build/esm/autoLoaderUtils.js");function a(e){const t=e.tracerProvider||s.trace.getTracerProvider(),n=e.meterProvider||r.metrics.getMeterProvider(),a=e.loggerProvider||o.logs.getLoggerProvider(),l=e.instrumentations?.flat()??[];return(0,i.enableInstrumentations)(l,t,n,a),()=>{(0,i.disableInstrumentations)(l)}}},"../../node_modules/@opentelemetry/instrumentation/build/esm/autoLoaderUtils.js":(e,t,n)=>{"use strict";function s(e,t,n,s){for(let r=0,o=e.length;r<o;r++){const o=e[r];t&&o.setTracerProvider(t),n&&o.setMeterProvider(n),s&&o.setLoggerProvider&&o.setLoggerProvider(s),o.getConfig().enabled||o.enable()}}function r(e){e.forEach(e=>e.disable())}n.d(t,{disableInstrumentations:()=>r,enableInstrumentations:()=>s})},"../../node_modules/@opentelemetry/instrumentation/build/esm/instrumentation.js":(e,t,n)=>{"use strict";n.d(t,{InstrumentationAbstract:()=>l});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/metrics-api.js"),i=n("../../node_modules/@opentelemetry/api-logs/build/esm/index.js"),a=n("../../node_modules/@opentelemetry/instrumentation/build/esm/shimmer.js");class l{instrumentationName;instrumentationVersion;_config={};_tracer;_meter;_logger;_diag;constructor(e,t,n){this.instrumentationName=e,this.instrumentationVersion=t,this.setConfig(n),this._diag=s.diag.createComponentLogger({namespace:e}),this._tracer=r.trace.getTracer(e,t),this._meter=o.metrics.getMeter(e,t),this._logger=i.logs.getLogger(e,t),this._updateMetricInstruments()}_wrap=a.wrap;_unwrap=a.unwrap;_massWrap=a.massWrap;_massUnwrap=a.massUnwrap;get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){const e=this.init()??[];return Array.isArray(e)?e:[e]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config={enabled:!0,...e}}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,t,n,s){if(e)try{e(n,s)}catch(e){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:t},e)}}}},"../../node_modules/@opentelemetry/instrumentation/build/esm/platform/browser/instrumentation.js":(e,t,n)=>{"use strict";n.d(t,{InstrumentationBase:()=>r});var s=n("../../node_modules/@opentelemetry/instrumentation/build/esm/instrumentation.js");class r extends s.InstrumentationAbstract{constructor(e,t,n){super(e,t,n),this._config.enabled&&this.enable()}}},"../../node_modules/@opentelemetry/instrumentation/build/esm/semconvStability.js":(e,t,n)=>{"use strict";var s;function r(e,t){let n=s.OLD;const r=t?.split(",").map(e=>e.trim()).filter(e=>""!==e);for(const t of r??[]){if(t.toLowerCase()===e+"/dup"){n=s.DUPLICATE;break}t.toLowerCase()===e&&(n=s.STABLE)}return n}n.d(t,{SemconvStability:()=>s,semconvStabilityFromStr:()=>r}),function(e){e[e.STABLE=1]="STABLE",e[e.OLD=2]="OLD",e[e.DUPLICATE=3]="DUPLICATE"}(s||(s={}))},"../../node_modules/@opentelemetry/instrumentation/build/esm/shimmer.js":(e,t,n)=>{"use strict";n.d(t,{massUnwrap:()=>l,massWrap:()=>i,unwrap:()=>a,wrap:()=>o});let s=console.error.bind(console);function r(e,t,n){const s=!!e[t]&&Object.prototype.propertyIsEnumerable.call(e,t);Object.defineProperty(e,t,{configurable:!0,enumerable:s,writable:!0,value:n})}const o=(e,t,n)=>{if(!e||!e[t])return void s("no original function "+String(t)+" to wrap");if(!n)return s("no wrapper function"),void s((new Error).stack);const o=e[t];if("function"!=typeof o||"function"!=typeof n)return void s("original object and wrapper must be functions");const i=n(o,t);return r(i,"__original",o),r(i,"__unwrap",()=>{e[t]===i&&r(e,t,o)}),r(i,"__wrapped",!0),r(e,t,i),i},i=(e,t,n)=>{if(!e)return s("must provide one or more modules to patch"),void s((new Error).stack);Array.isArray(e)||(e=[e]),t&&Array.isArray(t)?e.forEach(e=>{t.forEach(t=>{o(e,t,n)})}):s("must provide one or more functions to wrap on modules")},a=(e,t)=>{if(!e||!e[t])return s("no function to unwrap."),void s((new Error).stack);const n=e[t];n.__unwrap?n.__unwrap():s("no original to unwrap to -- has "+String(t)+" already been unwrapped?")},l=(e,t)=>{if(!e)return s("must provide one or more modules to patch"),void s((new Error).stack);Array.isArray(e)||(e=[e]),t&&Array.isArray(t)?e.forEach(e=>{t.forEach(t=>{a(e,t)})}):s("must provide one or more functions to unwrap on modules")};function c(e){e&&e.logger&&("function"!=typeof e.logger?s("new logger isn't a function, not replacing"):s=e.logger)}c.wrap=o,c.massWrap=i,c.unwrap=a,c.massUnwrap=l},"../../node_modules/@opentelemetry/instrumentation/build/esm/utils.js":(e,t,n)=>{"use strict";function s(e,t,n){let s,r;try{r=e()}catch(e){s=e}finally{if(t(s,r),s&&!n)throw s;return r}}function r(e){return"function"==typeof e&&"function"==typeof e.__original&&"function"==typeof e.__unwrap&&!0===e.__wrapped}n.d(t,{isWrapped:()=>r,safeExecuteInTheMiddle:()=>s})},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/OTLPExporterBase.js":(e,t,n)=>{"use strict";n.d(t,{OTLPExporterBase:()=>s});class s{_delegate;constructor(e){this._delegate=e}export(e,t){this._delegate.export(e,t)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/bounded-queue-export-promise-handler.js":(e,t,n)=>{"use strict";n.d(t,{createBoundedQueueExportPromiseHandler:()=>r});class s{_concurrencyLimit;_sendingPromises=[];constructor(e){this._concurrencyLimit=e}pushPromise(e){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(e);const t=()=>{const t=this._sendingPromises.indexOf(e);this._sendingPromises.splice(t,1)};e.then(t,t)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function r(e){return new s(e.concurrencyLimit)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/convert-legacy-browser-http-options.js":(e,t,n)=>{"use strict";n.d(t,{convertLegacyBrowserHttpOptions:()=>o});var s=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/otlp-http-configuration.js"),r=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/shared-configuration.js");function o(e,t,n){return(0,s.mergeOtlpHttpConfigurationWithDefaults)({url:e.url,timeoutMillis:e.timeoutMillis,headers:(0,r.wrapStaticHeadersInFunction)(e.headers),concurrencyLimit:e.concurrencyLimit},{},(0,s.getHttpConfigurationDefaults)(n,t))}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/create-legacy-browser-delegate.js":(e,t,n)=>{"use strict";n.d(t,{createLegacyOtlpBrowserExportDelegate:()=>o});var s=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-browser-http-export-delegate.js"),r=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/convert-legacy-browser-http-options.js");function o(e,t,n,o){const i=!!e.headers||"function"!=typeof navigator.sendBeacon,a=(0,r.convertLegacyBrowserHttpOptions)(e,n,o);return i?(0,s.createOtlpXhrExportDelegate)(a,t):(0,s.createOtlpSendBeaconExportDelegate)(a,t)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/otlp-http-configuration.js":(e,t,n)=>{"use strict";n.d(t,{getHttpConfigurationDefaults:()=>l,mergeOtlpHttpConfigurationWithDefaults:()=>a});var s=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/shared-configuration.js"),r=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/util.js");function o(e,t,n){const s={...n()},r={};return()=>(null!=t&&Object.assign(r,t()),null!=e&&Object.assign(r,e()),Object.assign(r,s))}function i(e){if(null!=e)try{return new URL(e),e}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function a(e,t,n){return{...(0,s.mergeOtlpSharedConfigurationWithDefaults)(e,t,n),headers:o((0,r.validateAndNormalizeHeaders)(e.headers),t.headers,n.headers),url:i(e.url)??t.url??n.url,agentOptions:e.agentOptions??t.agentOptions??n.agentOptions}}function l(e,t){return{...(0,s.getSharedConfigurationDefaults)(),headers:()=>e,url:"http://localhost:4318/"+t,agentOptions:{keepAlive:!0}}}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/shared-configuration.js":(e,t,n)=>{"use strict";function s(e){if(Number.isFinite(e)&&e>0)return e;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function r(e){if(null!=e)return()=>e}function o(e,t,n){return{timeoutMillis:s(e.timeoutMillis??t.timeoutMillis??n.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??n.concurrencyLimit,compression:e.compression??t.compression??n.compression}}function i(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}n.d(t,{getSharedConfigurationDefaults:()=>i,mergeOtlpSharedConfigurationWithDefaults:()=>o,wrapStaticHeadersInFunction:()=>r})},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/is-export-retryable.js":(e,t,n)=>{"use strict";function s(e){return[429,502,503,504].includes(e)}function r(e){if(null==e)return;const t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?1e3*t:-1;const n=new Date(e).getTime()-Date.now();return n>=0?n:0}n.d(t,{isExportRetryable:()=>s,parseRetryAfterToMills:()=>r})},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/logging-response-handler.js":(e,t,n)=>{"use strict";n.d(t,{createLoggingPartialSuccessResponseHandler:()=>r});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js");function r(){return{handleResponse(e){null!=e&&function(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}(e)&&null!=e.partialSuccess&&0!==Object.keys(e.partialSuccess).length&&s.diag.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}}}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-browser-http-export-delegate.js":(e,t,n)=>{"use strict";n.d(t,{createOtlpSendBeaconExportDelegate:()=>l,createOtlpXhrExportDelegate:()=>a});var s=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/retrying-transport.js"),r=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/xhr-transport.js"),o=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/send-beacon-transport.js"),i=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-network-export-delegate.js");function a(e,t){return(0,i.createOtlpNetworkExportDelegate)(e,t,(0,s.createRetryingTransport)({transport:(0,r.createXhrTransport)(e)}))}function l(e,t){return(0,i.createOtlpNetworkExportDelegate)(e,t,(0,s.createRetryingTransport)({transport:(0,o.createSendBeaconTransport)({url:e.url,blobType:e.headers()["Content-Type"]})}))}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-export-delegate.js":(e,t,n)=>{"use strict";n.d(t,{createOtlpExportDelegate:()=>l});var s=n("../../node_modules/@opentelemetry/core/build/esm/ExportResult.js"),r=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/types.js"),o=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/logging-response-handler.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js");class a{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(e,t,n,s,r){this._transport=e,this._serializer=t,this._responseHandler=n,this._promiseQueue=s,this._timeout=r,this._diagLogger=i.diag.createComponentLogger({namespace:"OTLPExportDelegate"})}export(e,t){if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit())return void t({code:s.ExportResultCode.FAILED,error:new Error("Concurrent export limit reached")});const n=this._serializer.serializeRequest(e);null!=n?this._promiseQueue.pushPromise(this._transport.send(n,this._timeout).then(e=>{if("success"!==e.status)"failure"===e.status&&e.error?t({code:s.ExportResultCode.FAILED,error:e.error}):"retryable"===e.status?t({code:s.ExportResultCode.FAILED,error:new r.OTLPExporterError("Export failed with retryable status")}):t({code:s.ExportResultCode.FAILED,error:new r.OTLPExporterError("Export failed with unknown error")});else{if(null!=e.data)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(e.data))}catch(t){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",t,e.data)}t({code:s.ExportResultCode.SUCCESS})}},e=>t({code:s.ExportResultCode.FAILED,error:e}))):t({code:s.ExportResultCode.FAILED,error:new Error("Nothing to send")})}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function l(e,t){return new a(e.transport,e.serializer,(0,o.createLoggingPartialSuccessResponseHandler)(),e.promiseHandler,t.timeout)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-network-export-delegate.js":(e,t,n)=>{"use strict";n.d(t,{createOtlpNetworkExportDelegate:()=>o});var s=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/bounded-queue-export-promise-handler.js"),r=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-export-delegate.js");function o(e,t,n){return(0,r.createOtlpExportDelegate)({transport:n,serializer:t,promiseHandler:(0,s.createBoundedQueueExportPromiseHandler)(e)},{timeout:e.timeoutMillis})}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/retrying-transport.js":(e,t,n)=>{"use strict";n.d(t,{createRetryingTransport:()=>o});function s(){return.4*Math.random()-.2}class r{_transport;constructor(e){this._transport=e}retry(e,t,n){return new Promise((s,r)=>{setTimeout(()=>{this._transport.send(e,t).then(s,r)},n)})}async send(e,t){const n=Date.now()+t;let r=await this._transport.send(e,t),o=5,i=1e3;for(;"retryable"===r.status&&o>0;){o--;const t=Math.max(Math.min(i,5e3)+s(),0);i*=1.5;const a=r.retryInMillis??t,l=n-Date.now();if(a>l)return r;r=await this.retry(e,l,a)}return r}shutdown(){return this._transport.shutdown()}}function o(e){return new r(e.transport)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/send-beacon-transport.js":(e,t,n)=>{"use strict";n.d(t,{createSendBeaconTransport:()=>o});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js");class r{_params;constructor(e){this._params=e}send(e){return new Promise(t=>{navigator.sendBeacon(this._params.url,new Blob([e],{type:this._params.blobType}))?(s.diag.debug("SendBeacon success"),t({status:"success"})):t({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function o(e){return new r(e)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/xhr-transport.js":(e,t,n)=>{"use strict";n.d(t,{createXhrTransport:()=>i});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),r=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/is-export-retryable.js");class o{_parameters;constructor(e){this._parameters=e}send(e,t){return new Promise(n=>{const o=new XMLHttpRequest;o.timeout=t,o.open("POST",this._parameters.url);const i=this._parameters.headers();Object.entries(i).forEach(([e,t])=>{o.setRequestHeader(e,t)}),o.ontimeout=e=>{n({status:"failure",error:new Error("XHR request timed out")})},o.onreadystatechange=()=>{o.status>=200&&o.status<=299?(s.diag.debug("XHR success"),n({status:"success"})):o.status&&(0,r.isExportRetryable)(o.status)?n({status:"retryable",retryInMillis:(0,r.parseRetryAfterToMills)(o.getResponseHeader("Retry-After"))}):0!==o.status&&n({status:"failure",error:new Error("XHR request failed with non-retryable status")})},o.onabort=()=>{n({status:"failure",error:new Error("XHR request aborted")})},o.onerror=()=>{n({status:"failure",error:new Error("XHR request errored")})},o.send(e)})}shutdown(){}}function i(e){return new o(e)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/types.js":(e,t,n)=>{"use strict";n.d(t,{OTLPExporterError:()=>s});class s extends Error{code;name="OTLPExporterError";data;constructor(e,t,n){super(e),this.data=n,this.code=t}}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/util.js":(e,t,n)=>{"use strict";n.d(t,{validateAndNormalizeHeaders:()=>r});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js");function r(e){return()=>{const t={};return Object.entries(e?.()??{}).forEach(([e,n])=>{void 0!==n?t[e]=String(n):s.diag.warn(`Header "${e}" has invalid value (${n}) and will be ignored`)}),t}}},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/hex-to-binary.js":(e,t,n)=>{"use strict";function s(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function r(e){const t=new Uint8Array(e.length/2);let n=0;for(let r=0;r<e.length;r+=2){const o=s(e.charCodeAt(r)),i=s(e.charCodeAt(r+1));t[n++]=o<<4|i}return t}n.d(t,{hexToBinary:()=>r})},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/internal.js":(e,t,n)=>{"use strict";function s(e){return{attributes:o(e.attributes),droppedAttributesCount:0}}function r(e){return{name:e.name,version:e.version}}function o(e){return Object.keys(e).map(t=>i(t,e[t]))}function i(e,t){return{key:e,value:a(t)}}function a(e){const t=typeof e;return"string"===t?{stringValue:e}:"number"===t?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:"boolean"===t?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(a)}}:"object"===t&&null!=e?{kvlistValue:{values:Object.entries(e).map(([e,t])=>i(e,t))}}:{}}n.d(t,{createInstrumentationScope:()=>r,createResource:()=>s,toAttributes:()=>o})},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/utils.js":(e,t,n)=>{"use strict";n.d(t,{getOtlpEncoder:()=>d});var s=n("../../node_modules/@opentelemetry/core/build/esm/common/time.js"),r=n("../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/hex-to-binary.js");function o(e){const t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function i(e){const t=o(e);return n=t,{low:Number(BigInt.asUintN(32,n)),high:Number(BigInt.asUintN(32,n>>BigInt(32)))};var n}const a="undefined"!=typeof BigInt?function(e){return o(e).toString()}:s.hrTimeToNanoseconds;function l(e){return e}function c(e){if(void 0!==e)return(0,r.hexToBinary)(e)}const u={encodeHrTime:i,encodeSpanContext:r.hexToBinary,encodeOptionalSpanContext:c};function d(e){if(void 0===e)return u;const t=e.useLongBits??!0,n=e.useHex??!1;return{encodeHrTime:t?i:a,encodeSpanContext:n?l:r.hexToBinary,encodeOptionalSpanContext:n?l:c}}},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/trace/internal.js":(e,t,n)=>{"use strict";n.d(t,{createExportTraceServiceRequest:()=>i});var s=n("../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/internal.js"),r=n("../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/utils.js");function o(e,t){const n=e.spanContext(),r=e.status,o=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(n.traceId),spanId:t.encodeSpanContext(n.spanId),parentSpanId:o,traceState:n.traceState?.serialize(),name:e.name,kind:null==e.kind?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:(0,s.toAttributes)(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(e=>function(e,t){return{attributes:e.attributes?(0,s.toAttributes)(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}(e,t)),droppedEventsCount:e.droppedEventsCount,status:{code:r.code,message:r.message},links:e.links.map(e=>function(e,t){return{attributes:e.attributes?(0,s.toAttributes)(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}(e,t)),droppedLinksCount:e.droppedLinksCount}}function i(e,t){return{resourceSpans:a(e,(0,r.getOtlpEncoder)(t))}}function a(e,t){const n=function(e){const t=new Map;for(const n of e){let e=t.get(n.resource);e||(e=new Map,t.set(n.resource,e));const s=`${n.instrumentationScope.name}@${n.instrumentationScope.version||""}:${n.instrumentationScope.schemaUrl||""}`;let r=e.get(s);r||(r=[],e.set(s,r)),r.push(n)}return t}(e),r=[],i=n.entries();let a=i.next();for(;!a.done;){const[e,n]=a.value,l=[],c=n.values();let u=c.next();for(;!u.done;){const e=u.value;if(e.length>0){const n=e.map(e=>o(e,t));l.push({scope:(0,s.createInstrumentationScope)(e[0].instrumentationScope),spans:n,schemaUrl:e[0].instrumentationScope.schemaUrl})}u=c.next()}const d={resource:(0,s.createResource)(e),scopeSpans:l,schemaUrl:void 0};r.push(d),a=i.next()}return r}},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/trace/json/trace.js":(e,t,n)=>{"use strict";n.d(t,{JsonTraceSerializer:()=>r});var s=n("../../node_modules/@opentelemetry/otlp-transformer/build/esm/trace/internal.js");const r={serializeRequest:e=>{const t=(0,s.createExportTraceServiceRequest)(e,{useHex:!0,useLongBits:!1});return(new TextEncoder).encode(JSON.stringify(t))},deserializeResponse:e=>{if(0===e.length)return{};const t=new TextDecoder;return JSON.parse(t.decode(e))}}},"../../node_modules/@opentelemetry/resources/build/esm/ResourceImpl.js":(e,t,n)=>{"use strict";n.d(t,{defaultResource:()=>u,resourceFromAttributes:()=>c});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),r=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/sdk-info.js"),o=n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js"),i=n("../../node_modules/@opentelemetry/resources/build/esm/platform/browser/default-service-name.js"),a=n("../../node_modules/@opentelemetry/resources/build/esm/utils.js");class l{_rawAttributes;_asyncAttributesPending=!1;_memoizedAttributes;static FromAttributeList(e){const t=new l({});return t._rawAttributes=d(e),t._asyncAttributesPending=e.filter(([e,t])=>(0,a.isPromiseLike)(t)).length>0,t}constructor(e){const t=e.attributes??{};this._rawAttributes=Object.entries(t).map(([e,t])=>((0,a.isPromiseLike)(t)&&(this._asyncAttributesPending=!0),[e,t])),this._rawAttributes=d(this._rawAttributes)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){const[t,n]=this._rawAttributes[e];this._rawAttributes[e]=[t,(0,a.isPromiseLike)(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&s.diag.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const e={};for(const[t,n]of this._rawAttributes)(0,a.isPromiseLike)(n)?s.diag.debug(`Unsettled resource attribute ${t} skipped`):null!=n&&(e[t]??=n);return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}merge(e){return null==e?this:l.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()])}}function c(e){return l.FromAttributeList(Object.entries(e))}function u(){return c({[o.ATTR_SERVICE_NAME]:(0,i.defaultServiceName)(),[o.ATTR_TELEMETRY_SDK_LANGUAGE]:r.SDK_INFO[o.ATTR_TELEMETRY_SDK_LANGUAGE],[o.ATTR_TELEMETRY_SDK_NAME]:r.SDK_INFO[o.ATTR_TELEMETRY_SDK_NAME],[o.ATTR_TELEMETRY_SDK_VERSION]:r.SDK_INFO[o.ATTR_TELEMETRY_SDK_VERSION]})}function d(e){return e.map(([e,t])=>(0,a.isPromiseLike)(t)?[e,t.catch(t=>{s.diag.debug("promise rejection for resource attribute: %s - %s",e,t)})]:[e,t])}},"../../node_modules/@opentelemetry/resources/build/esm/platform/browser/default-service-name.js":(e,t,n)=>{"use strict";function s(){return"unknown_service"}n.d(t,{defaultServiceName:()=>s})},"../../node_modules/@opentelemetry/resources/build/esm/utils.js":(e,t,n)=>{"use strict";n.d(t,{isPromiseLike:()=>s});const s=e=>null!==e&&"object"==typeof e&&"function"==typeof e.then},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/BasicTracerProvider.js":(e,t,n)=>{"use strict";n.d(t,{BasicTracerProvider:()=>u});var s,r=n("../../node_modules/@opentelemetry/core/build/esm/utils/merge.js"),o=n("../../node_modules/@opentelemetry/resources/build/esm/ResourceImpl.js"),i=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Tracer.js"),a=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/config.js"),l=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/MultiSpanProcessor.js"),c=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/utility.js");!function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"}(s||(s={}));class u{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(e={}){const t=(0,r.merge)({},(0,a.loadDefaultConfig)(),(0,c.reconfigureLimits)(e));this._resource=t.resource??(0,o.defaultResource)(),this._config=Object.assign({},t,{resource:this._resource});const n=[];e.spanProcessors?.length&&n.push(...e.spanProcessors),this._activeSpanProcessor=new l.MultiSpanProcessor(n)}getTracer(e,t,n){const s=`${e}@${t||""}:${n?.schemaUrl||""}`;return this._tracers.has(s)||this._tracers.set(s,new i.Tracer({name:e,version:t,schemaUrl:n?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(s)}forceFlush(){const e=this._config.forceFlushTimeoutMillis,t=this._activeSpanProcessor._spanProcessors.map(t=>new Promise(n=>{let r;const o=setTimeout(()=>{n(new Error(`Span processor did not completed within timeout period of ${e} ms`)),r=s.timeout},e);t.forceFlush().then(()=>{clearTimeout(o),r!==s.timeout&&(r=s.resolved,n(r))}).catch(e=>{clearTimeout(o),r=s.error,n(e)})}));return new Promise((e,n)=>{Promise.all(t).then(t=>{const r=t.filter(e=>e!==s.resolved);r.length>0?n(r):e()}).catch(e=>n([e]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/MultiSpanProcessor.js":(e,t,n)=>{"use strict";n.d(t,{MultiSpanProcessor:()=>r});var s=n("../../node_modules/@opentelemetry/core/build/esm/common/global-error-handler.js");class r{_spanProcessors;constructor(e){this._spanProcessors=e}forceFlush(){const e=[];for(const t of this._spanProcessors)e.push(t.forceFlush());return new Promise(t=>{Promise.all(e).then(()=>{t()}).catch(e=>{(0,s.globalErrorHandler)(e||new Error("MultiSpanProcessor: forceFlush failed")),t()})})}onStart(e,t){for(const n of this._spanProcessors)n.onStart(e,t)}onEnd(e){for(const t of this._spanProcessors)t.onEnd(e)}shutdown(){const e=[];for(const t of this._spanProcessors)e.push(t.shutdown());return new Promise((t,n)=>{Promise.all(e).then(()=>{t()},n)})}}},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Sampler.js":(e,t,n)=>{"use strict";var s;n.d(t,{SamplingDecision:()=>s}),function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(s||(s={}))},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Span.js":(e,t,n)=>{"use strict";n.d(t,{SpanImpl:()=>u});var s=n("../../node_modules/@opentelemetry/api/build/esm/trace/status.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),o=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js"),i=n("../../node_modules/@opentelemetry/core/build/esm/common/time.js"),a=n("../../node_modules/@opentelemetry/core/build/esm/common/attributes.js"),l=n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js"),c=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/enums.js");class u{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:s.SpanStatusCode.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(e){const t=Date.now();this._spanContext=e.spanContext,this._performanceStartTime=o.otperformance.now(),this._performanceOffset=t-(this._performanceStartTime+(0,i.getTimeOrigin)()),this._startTimeProvided=null!=e.startTime,this._spanLimits=e.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=e.spanProcessor,this.name=e.name,this.parentSpanContext=e.parentSpanContext,this.kind=e.kind,this.links=e.links||[],this.startTime=this._getTime(e.startTime??t),this.resource=e.resource,this.instrumentationScope=e.scope,null!=e.attributes&&this.setAttributes(e.attributes),this._spanProcessor.onStart(this,e.context)}spanContext(){return this._spanContext}setAttribute(e,t){if(null==t||this._isSpanEnded())return this;if(0===e.length)return r.diag.warn(`Invalid attribute key: ${e}`),this;if(!(0,a.isAttributeValue)(t))return r.diag.warn(`Invalid attribute value set for key: ${e}`),this;const{attributeCountLimit:n}=this._spanLimits;return void 0!==n&&Object.keys(this.attributes).length>=n&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(t),this)}setAttributes(e){for(const[t,n]of Object.entries(e))this.setAttribute(t,n);return this}addEvent(e,t,n){if(this._isSpanEnded())return this;const{eventCountLimit:s}=this._spanLimits;if(0===s)return r.diag.warn("No events allowed."),this._droppedEventsCount++,this;void 0!==s&&this.events.length>=s&&(0===this._droppedEventsCount&&r.diag.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),(0,i.isTimeInput)(t)&&((0,i.isTimeInput)(n)||(n=t),t=void 0);const o=(0,a.sanitizeAttributes)(t);return this.events.push({name:e,attributes:o,time:this._getTime(n),droppedAttributesCount:0}),this}addLink(e){return this.links.push(e),this}addLinks(e){return this.links.push(...e),this}setStatus(e){return this._isSpanEnded()||(this.status={...e},null!=this.status.message&&"string"!=typeof e.message&&(r.diag.warn(`Dropping invalid status.message of type '${typeof e.message}', expected 'string'`),delete this.status.message)),this}updateName(e){return this._isSpanEnded()||(this.name=e),this}end(e){this._isSpanEnded()?r.diag.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`):(this._ended=!0,this.endTime=this._getTime(e),this._duration=(0,i.hrTimeDuration)(this.startTime,this.endTime),this._duration[0]<0&&(r.diag.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&r.diag.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this))}_getTime(e){if("number"==typeof e&&e<=o.otperformance.now())return(0,i.hrTime)(e+this._performanceOffset);if("number"==typeof e)return(0,i.millisToHrTime)(e);if(e instanceof Date)return(0,i.millisToHrTime)(e.getTime());if((0,i.isTimeInputHrTime)(e))return e;if(this._startTimeProvided)return(0,i.millisToHrTime)(Date.now());const t=o.otperformance.now()-this._performanceStartTime;return(0,i.addHrTimes)(this.startTime,(0,i.millisToHrTime)(t))}isRecording(){return!1===this._ended}recordException(e,t){const n={};"string"==typeof e?n[l.ATTR_EXCEPTION_MESSAGE]=e:e&&(e.code?n[l.ATTR_EXCEPTION_TYPE]=e.code.toString():e.name&&(n[l.ATTR_EXCEPTION_TYPE]=e.name),e.message&&(n[l.ATTR_EXCEPTION_MESSAGE]=e.message),e.stack&&(n[l.ATTR_EXCEPTION_STACKTRACE]=e.stack)),n[l.ATTR_EXCEPTION_TYPE]||n[l.ATTR_EXCEPTION_MESSAGE]?this.addEvent(c.ExceptionEventName,n,t):r.diag.warn(`Failed to record an exception ${e}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const e=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);r.diag.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,e)}return this._ended}_truncateToLimitUtil(e,t){return e.length<=t?e:e.substring(0,t)}_truncateToSize(e){const t=this._attributeValueLengthLimit;return t<=0?(r.diag.warn(`Attribute value limit must be positive, got ${t}`),e):"string"==typeof e?this._truncateToLimitUtil(e,t):Array.isArray(e)?e.map(e=>"string"==typeof e?this._truncateToLimitUtil(e,t):e):e}}},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Tracer.js":(e,t,n)=>{"use strict";n.d(t,{Tracer:()=>A});var s=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js"),a=n("../../node_modules/@opentelemetry/api/build/esm/trace/span_kind.js"),l=n("../../node_modules/@opentelemetry/api/build/esm/trace/SamplingResult.js"),c=n("../../node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js"),u=n("../../node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js"),d=n("../../node_modules/@opentelemetry/core/build/esm/common/attributes.js"),p=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Span.js"),m=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/utility.js"),h=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/platform/browser/RandomIdGenerator.js");class A{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(e,t,n,s){const r=(0,m.mergeConfig)(t);this._sampler=r.sampler,this._generalLimits=r.generalLimits,this._spanLimits=r.spanLimits,this._idGenerator=t.idGenerator||new h.RandomIdGenerator,this._resource=n,this._spanProcessor=s,this.instrumentationScope=e}startSpan(e,t={},n=s.context.active()){t.root&&(n=r.trace.deleteSpan(n));const m=r.trace.getSpan(n);if((0,u.isTracingSuppressed)(n)){o.diag.debug("Instrumentation suppressed, returning Noop Span");return r.trace.wrapSpanContext(i.INVALID_SPAN_CONTEXT)}const h=m?.spanContext(),A=this._idGenerator.generateSpanId();let g,f,_;h&&r.trace.isSpanContextValid(h)?(f=h.traceId,_=h.traceState,g=h):f=this._idGenerator.generateTraceId();const E=t.kind??a.SpanKind.INTERNAL,b=(t.links??[]).map(e=>({context:e.context,attributes:(0,d.sanitizeAttributes)(e.attributes)})),y=(0,d.sanitizeAttributes)(t.attributes),T=this._sampler.shouldSample(n,f,e,E,y,b);_=T.traceState??_;const S={traceId:f,spanId:A,traceFlags:T.decision===l.SamplingDecision.RECORD_AND_SAMPLED?c.TraceFlags.SAMPLED:c.TraceFlags.NONE,traceState:_};if(T.decision===l.SamplingDecision.NOT_RECORD){o.diag.debug("Recording is off, propagating context in a non-recording span");return r.trace.wrapSpanContext(S)}const v=(0,d.sanitizeAttributes)(Object.assign(y,T.attributes));return new p.SpanImpl({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:S,name:e,kind:E,links:b,parentSpanContext:g,attributes:v,startTime:t.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(e,t,n,o){let i,a,l;if(arguments.length<2)return;2===arguments.length?l=t:3===arguments.length?(i=t,l=n):(i=t,a=n,l=o);const c=a??s.context.active(),u=this.startSpan(e,i,c),d=r.trace.setSpan(c,u);return s.context.with(d,l,void 0,u)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/config.js":(e,t,n)=>{"use strict";n.d(t,{buildSamplerFromEnv:()=>d,loadDefaultConfig:()=>u});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),r=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/environment.js"),o=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/AlwaysOffSampler.js"),i=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/AlwaysOnSampler.js"),a=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/ParentBasedSampler.js"),l=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/TraceIdRatioBasedSampler.js");const c=1;function u(){return{sampler:d(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:(0,r.getNumberFromEnv)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,r.getNumberFromEnv)("OTEL_ATTRIBUTE_COUNT_LIMIT")??128},spanLimits:{attributeValueLengthLimit:(0,r.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,r.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??128,linkCountLimit:(0,r.getNumberFromEnv)("OTEL_SPAN_LINK_COUNT_LIMIT")??128,eventCountLimit:(0,r.getNumberFromEnv)("OTEL_SPAN_EVENT_COUNT_LIMIT")??128,attributePerEventCountLimit:(0,r.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT")??128,attributePerLinkCountLimit:(0,r.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT")??128}}}function d(){const e=(0,r.getStringFromEnv)("OTEL_TRACES_SAMPLER")??"parentbased_always_on";switch(e){case"always_on":return new i.AlwaysOnSampler;case"always_off":return new o.AlwaysOffSampler;case"parentbased_always_on":return new a.ParentBasedSampler({root:new i.AlwaysOnSampler});case"parentbased_always_off":return new a.ParentBasedSampler({root:new o.AlwaysOffSampler});case"traceidratio":return new l.TraceIdRatioBasedSampler(p());case"parentbased_traceidratio":return new a.ParentBasedSampler({root:new l.TraceIdRatioBasedSampler(p())});default:return s.diag.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "parentbased_always_on".`),new a.ParentBasedSampler({root:new i.AlwaysOnSampler})}}function p(){const e=(0,r.getNumberFromEnv)("OTEL_TRACES_SAMPLER_ARG");return null==e?(s.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${c}.`),c):e<0||e>1?(s.diag.error(`OTEL_TRACES_SAMPLER_ARG=${e} was given, but it is out of range ([0..1]), defaulting to ${c}.`),c):e}},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/enums.js":(e,t,n)=>{"use strict";n.d(t,{ExceptionEventName:()=>s});const s="exception"},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/export/BatchSpanProcessorBase.js":(e,t,n)=>{"use strict";n.d(t,{BatchSpanProcessorBase:()=>p});var s=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),i=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/environment.js"),a=n("../../node_modules/@opentelemetry/core/build/esm/utils/callback.js"),l=n("../../node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js"),c=n("../../node_modules/@opentelemetry/core/build/esm/ExportResult.js"),u=n("../../node_modules/@opentelemetry/core/build/esm/common/global-error-handler.js"),d=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/timer-util.js");class p{_exporter;_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(e,t){this._exporter=e,this._maxExportBatchSize="number"==typeof t?.maxExportBatchSize?t.maxExportBatchSize:(0,i.getNumberFromEnv)("OTEL_BSP_MAX_EXPORT_BATCH_SIZE")??512,this._maxQueueSize="number"==typeof t?.maxQueueSize?t.maxQueueSize:(0,i.getNumberFromEnv)("OTEL_BSP_MAX_QUEUE_SIZE")??2048,this._scheduledDelayMillis="number"==typeof t?.scheduledDelayMillis?t.scheduledDelayMillis:(0,i.getNumberFromEnv)("OTEL_BSP_SCHEDULE_DELAY")??5e3,this._exportTimeoutMillis="number"==typeof t?.exportTimeoutMillis?t.exportTimeoutMillis:(0,i.getNumberFromEnv)("OTEL_BSP_EXPORT_TIMEOUT")??3e4,this._shutdownOnce=new a.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(s.diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(e,t){}onEnd(e){this._shutdownOnce.isCalled||0!==(e.spanContext().traceFlags&r.TraceFlags.SAMPLED)&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(e){if(this._finishedSpans.length>=this._maxQueueSize)return 0===this._droppedSpansCount&&s.diag.debug("maxQueueSize reached, dropping spans"),void this._droppedSpansCount++;this._droppedSpansCount>0&&(s.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,t)=>{const n=[];for(let e=0,t=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);e<t;e++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{e()}).catch(t)})}_flushOneBatch(){return this._clearTimer(),0===this._finishedSpans.length?Promise.resolve():new Promise((e,t)=>{const n=setTimeout(()=>{t(new Error("Timeout"))},this._exportTimeoutMillis);o.context.with((0,l.suppressTracing)(o.context.active()),()=>{let s;this._finishedSpans.length<=this._maxExportBatchSize?(s=this._finishedSpans,this._finishedSpans=[]):s=this._finishedSpans.splice(0,this._maxExportBatchSize);const r=()=>this._exporter.export(s,s=>{clearTimeout(n),s.code===c.ExportResultCode.SUCCESS?e():t(s.error??new Error("BatchSpanProcessor: span export failed"))});let o=null;for(let e=0,t=s.length;e<t;e++){const t=s[e];t.resource.asyncAttributesPending&&t.resource.waitForAsyncAttributes&&(o??=[],o.push(t.resource.waitForAsyncAttributes()))}null===o?r():Promise.all(o).then(r,e=>{(0,u.globalErrorHandler)(e),t(e)})})})}_maybeStartTimer(){if(this._isExporting)return;const e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(e=>{this._isExporting=!1,(0,u.globalErrorHandler)(e)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();void 0===this._timer&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),(0,d.unrefTimer)(this._timer))}_clearTimer(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)}}},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/platform/browser/RandomIdGenerator.js":(e,t,n)=>{"use strict";n.d(t,{RandomIdGenerator:()=>s});class s{generateTraceId=o(16);generateSpanId=o(8)}const r=Array(32);function o(e){return function(){for(let t=0;t<2*e;t++)r[t]=Math.floor(16*Math.random())+48,r[t]>=58&&(r[t]+=39);return String.fromCharCode.apply(null,r.slice(0,2*e))}}},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/platform/browser/export/BatchSpanProcessor.js":(e,t,n)=>{"use strict";n.d(t,{BatchSpanProcessor:()=>o});var s=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/export/BatchSpanProcessorBase.js"),r=n("../../node_modules/@opentelemetry/core/build/esm/common/global-error-handler.js");class o extends s.BatchSpanProcessorBase{_visibilityChangeListener;_pageHideListener;constructor(e,t){super(e,t),this.onInit(t)}onInit(e){!0!==e?.disableAutoFlushOnDocumentHide&&"undefined"!=typeof document&&(this._visibilityChangeListener=()=>{"hidden"===document.visibilityState&&this.forceFlush().catch(e=>{(0,r.globalErrorHandler)(e)})},this._pageHideListener=()=>{this.forceFlush().catch(e=>{(0,r.globalErrorHandler)(e)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){"undefined"!=typeof document&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}}},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/AlwaysOffSampler.js":(e,t,n)=>{"use strict";n.d(t,{AlwaysOffSampler:()=>r});var s=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Sampler.js");class r{shouldSample(){return{decision:s.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/AlwaysOnSampler.js":(e,t,n)=>{"use strict";n.d(t,{AlwaysOnSampler:()=>r});var s=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Sampler.js");class r{shouldSample(){return{decision:s.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/ParentBasedSampler.js":(e,t,n)=>{"use strict";n.d(t,{ParentBasedSampler:()=>c});var s=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js"),i=n("../../node_modules/@opentelemetry/core/build/esm/common/global-error-handler.js"),a=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/AlwaysOffSampler.js"),l=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/AlwaysOnSampler.js");class c{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(e){this._root=e.root,this._root||((0,i.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new l.AlwaysOnSampler),this._remoteParentSampled=e.remoteParentSampled??new l.AlwaysOnSampler,this._remoteParentNotSampled=e.remoteParentNotSampled??new a.AlwaysOffSampler,this._localParentSampled=e.localParentSampled??new l.AlwaysOnSampler,this._localParentNotSampled=e.localParentNotSampled??new a.AlwaysOffSampler}shouldSample(e,t,n,i,a,l){const c=s.trace.getSpanContext(e);return c&&(0,r.isSpanContextValid)(c)?c.isRemote?c.traceFlags&o.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,t,n,i,a,l):this._remoteParentNotSampled.shouldSample(e,t,n,i,a,l):c.traceFlags&o.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(e,t,n,i,a,l):this._localParentNotSampled.shouldSample(e,t,n,i,a,l):this._root.shouldSample(e,t,n,i,a,l)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/TraceIdRatioBasedSampler.js":(e,t,n)=>{"use strict";n.d(t,{TraceIdRatioBasedSampler:()=>o});var s=n("../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"),r=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Sampler.js");class o{_ratio;_upperBound;constructor(e=0){this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(4294967295*this._ratio)}shouldSample(e,t){return{decision:(0,s.isValidTraceId)(t)&&this._accumulate(t)<this._upperBound?r.SamplingDecision.RECORD_AND_SAMPLED:r.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return"number"!=typeof e||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let t=0;for(let n=0;n<e.length/8;n++){const s=8*n;t=(t^parseInt(e.slice(s,s+8),16))>>>0}return t}}},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/utility.js":(e,t,n)=>{"use strict";n.d(t,{mergeConfig:()=>a,reconfigureLimits:()=>l});var s=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/config.js"),r=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/environment.js");const o=128,i=1/0;function a(e){const t={sampler:(0,s.buildSamplerFromEnv)()},n=(0,s.loadDefaultConfig)(),r=Object.assign({},n,t,e);return r.generalLimits=Object.assign({},n.generalLimits,e.generalLimits||{}),r.spanLimits=Object.assign({},n.spanLimits,e.spanLimits||{}),r}function l(e){const t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??(0,r.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??(0,r.getNumberFromEnv)("OTEL_ATTRIBUTE_COUNT_LIMIT")??o,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??(0,r.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??(0,r.getNumberFromEnv)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??i,Object.assign({},e,{spanLimits:t})}},"../../node_modules/@opentelemetry/sdk-trace-web/build/esm/StackContextManager.js":(e,t,n)=>{"use strict";n.d(t,{StackContextManager:()=>r});var s=n("../../node_modules/@opentelemetry/api/build/esm/context/context.js");class r{_enabled=!1;_currentContext=s.ROOT_CONTEXT;_bindFunction(e=s.ROOT_CONTEXT,t){const n=this,r=function(...s){return n.with(e,()=>t.apply(this,s))};return Object.defineProperty(r,"length",{enumerable:!1,configurable:!0,writable:!1,value:t.length}),r}active(){return this._currentContext}bind(e,t){return void 0===e&&(e=this.active()),"function"==typeof t?this._bindFunction(e,t):t}disable(){return this._currentContext=s.ROOT_CONTEXT,this._enabled=!1,this}enable(){return this._enabled||(this._enabled=!0,this._currentContext=s.ROOT_CONTEXT),this}with(e,t,n,...r){const o=this._currentContext;this._currentContext=e||s.ROOT_CONTEXT;try{return t.call(n,...r)}finally{this._currentContext=o}}}},"../../node_modules/@opentelemetry/sdk-trace-web/build/esm/WebTracerProvider.js":(e,t,n)=>{"use strict";n.d(t,{WebTracerProvider:()=>d});var s=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/BasicTracerProvider.js"),r=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/StackContextManager.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/propagation-api.js"),a=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),l=n("../../node_modules/@opentelemetry/core/build/esm/propagation/composite.js"),c=n("../../node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js"),u=n("../../node_modules/@opentelemetry/core/build/esm/baggage/propagation/W3CBaggagePropagator.js");class d extends s.BasicTracerProvider{constructor(e={}){super(e)}register(e={}){var t;a.trace.setGlobalTracerProvider(this),null!==(t=e.propagator)&&(void 0!==t?i.propagation.setGlobalPropagator(t):i.propagation.setGlobalPropagator(new l.CompositePropagator({propagators:[new c.W3CTraceContextPropagator,new u.W3CBaggagePropagator]}))),function(e){if(null!==e){if(void 0===e){const e=new r.StackContextManager;return e.enable(),void o.context.setGlobalContextManager(e)}e.enable(),o.context.setGlobalContextManager(e)}}(e.contextManager)}}},"../../node_modules/@opentelemetry/sdk-trace-web/build/esm/enums/PerformanceTimingNames.js":(e,t,n)=>{"use strict";var s;n.d(t,{PerformanceTimingNames:()=>s}),function(e){e.CONNECT_END="connectEnd",e.CONNECT_START="connectStart",e.DECODED_BODY_SIZE="decodedBodySize",e.DOM_COMPLETE="domComplete",e.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",e.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",e.DOM_INTERACTIVE="domInteractive",e.DOMAIN_LOOKUP_END="domainLookupEnd",e.DOMAIN_LOOKUP_START="domainLookupStart",e.ENCODED_BODY_SIZE="encodedBodySize",e.FETCH_START="fetchStart",e.LOAD_EVENT_END="loadEventEnd",e.LOAD_EVENT_START="loadEventStart",e.NAVIGATION_START="navigationStart",e.REDIRECT_END="redirectEnd",e.REDIRECT_START="redirectStart",e.REQUEST_START="requestStart",e.RESPONSE_END="responseEnd",e.RESPONSE_START="responseStart",e.SECURE_CONNECTION_START="secureConnectionStart",e.START_TIME="startTime",e.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"}(s||(s={}))},"../../node_modules/@opentelemetry/sdk-trace-web/build/esm/semconv.js":(e,t,n)=>{"use strict";n.d(t,{ATTR_HTTP_RESPONSE_CONTENT_LENGTH:()=>s,ATTR_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>r});const s="http.response_content_length",r="http.response_content_length_uncompressed"},"../../node_modules/@opentelemetry/sdk-trace-web/build/esm/utils.js":(e,t,n)=>{"use strict";n.d(t,{addSpanNetworkEvent:()=>c,addSpanNetworkEvents:()=>u,getElementXPath:()=>h,getResource:()=>p,hasKey:()=>l,parseUrl:()=>m,shouldPropagateTraceHeaders:()=>A});var s=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/enums/PerformanceTimingNames.js"),r=n("../../node_modules/@opentelemetry/core/build/esm/common/time.js"),o=n("../../node_modules/@opentelemetry/core/build/esm/utils/url.js"),i=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/semconv.js");let a;function l(e,t){return t in e}function c(e,t,n,s=!0){if(l(n,t)&&"number"==typeof n[t]&&(!s||0!==n[t]))return e.addEvent(t,n[t])}function u(e,t,n=!1,r,o){if(void 0===r&&(r=0!==t[s.PerformanceTimingNames.START_TIME]),n||(c(e,s.PerformanceTimingNames.FETCH_START,t,r),c(e,s.PerformanceTimingNames.DOMAIN_LOOKUP_START,t,r),c(e,s.PerformanceTimingNames.DOMAIN_LOOKUP_END,t,r),c(e,s.PerformanceTimingNames.CONNECT_START,t,r),c(e,s.PerformanceTimingNames.SECURE_CONNECTION_START,t,r),c(e,s.PerformanceTimingNames.CONNECT_END,t,r),c(e,s.PerformanceTimingNames.REQUEST_START,t,r),c(e,s.PerformanceTimingNames.RESPONSE_START,t,r),c(e,s.PerformanceTimingNames.RESPONSE_END,t,r)),!o){const n=t[s.PerformanceTimingNames.ENCODED_BODY_SIZE];void 0!==n&&e.setAttribute(i.ATTR_HTTP_RESPONSE_CONTENT_LENGTH,n);const r=t[s.PerformanceTimingNames.DECODED_BODY_SIZE];void 0!==r&&n!==r&&e.setAttribute(i.ATTR_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED,r)}}function d(){return"undefined"!=typeof location?location.origin:void 0}function p(e,t,n,o,i=new WeakSet,a){const l=m(e),c=function(e,t,n,o,i,a){const l=(0,r.hrTimeToNanoseconds)(t),c=(0,r.hrTimeToNanoseconds)(n);let u=o.filter(t=>{const n=(0,r.hrTimeToNanoseconds)((0,r.timeInputToHrTime)(t[s.PerformanceTimingNames.FETCH_START])),o=(0,r.hrTimeToNanoseconds)((0,r.timeInputToHrTime)(t[s.PerformanceTimingNames.RESPONSE_END]));return t.initiatorType.toLowerCase()===(a||"xmlhttprequest")&&t.name===e&&n>=l&&o<=c});u.length>0&&(u=u.filter(e=>!i.has(e)));return u}(e=l.toString(),t,n,o,i,a);if(0===c.length)return{mainRequest:void 0};if(1===c.length)return{mainRequest:c[0]};const u=function(e){return e.slice().sort((e,t)=>{const n=e[s.PerformanceTimingNames.FETCH_START],r=t[s.PerformanceTimingNames.FETCH_START];return n>r?1:n<r?-1:0})}(c);if(l.origin!==d()&&u.length>1){let e=u[0],t=function(e,t,n){const o=(0,r.hrTimeToNanoseconds)(n),i=(0,r.hrTimeToNanoseconds)((0,r.timeInputToHrTime)(t));let a,l=e[1];const c=e.length;for(let t=1;t<c;t++){const n=e[t],c=(0,r.hrTimeToNanoseconds)((0,r.timeInputToHrTime)(n[s.PerformanceTimingNames.FETCH_START])),u=o-(0,r.hrTimeToNanoseconds)((0,r.timeInputToHrTime)(n[s.PerformanceTimingNames.RESPONSE_END]));c>=i&&(!a||u<a)&&(a=u,l=n)}return l}(u,e[s.PerformanceTimingNames.RESPONSE_END],n);const o=e[s.PerformanceTimingNames.RESPONSE_END];return t[s.PerformanceTimingNames.FETCH_START]<o&&(t=e,e=void 0),{corsPreFlightRequest:e,mainRequest:t}}return{mainRequest:c[0]}}function m(e){if("function"==typeof URL)return new URL(e,"undefined"!=typeof document?document.baseURI:"undefined"!=typeof location?location.href:void 0);const t=(a||(a=document.createElement("a")),a);return t.href=e,t}function h(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return"/";const n=function(e,t){const n=e.nodeType,s=function(e){if(!e.parentNode)return 0;const t=[e.nodeType];e.nodeType===Node.CDATA_SECTION_NODE&&t.push(Node.TEXT_NODE);let n=Array.from(e.parentNode.childNodes);if(n=n.filter(n=>{const s=n.localName;return t.indexOf(n.nodeType)>=0&&s===e.localName}),n.length>=1)return n.indexOf(e)+1;return 0}(e);let r="";if(n===Node.ELEMENT_NODE){const n=e.getAttribute("id");if(t&&n)return`//*[@id="${n}"]`;r=e.localName}else if(n===Node.TEXT_NODE||n===Node.CDATA_SECTION_NODE)r="text()";else{if(n!==Node.COMMENT_NODE)return"";r="comment()"}if(r&&s>1)return`/${r}[${s}]`;return`/${r}`}(e,t);if(t&&n.indexOf("@id")>0)return n;let s="";return e.parentNode&&(s+=h(e.parentNode,!1)),s+=n,s}function A(e,t){let n=t||[];("string"==typeof n||n instanceof RegExp)&&(n=[n]);return m(e).origin===d()||n.some(t=>(0,o.urlMatches)(e,t))}},"../../node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js":(e,t,n)=>{"use strict";function s(e){let t={};const n=e.length;for(let s=0;s<n;s++){const n=e[s];n&&(t[String(n).toUpperCase().replace(/[-.]/g,"_")]=n)}return t}n.d(t,{createConstMap:()=>s})},"../../node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js":(e,t,n)=>{"use strict";n.d(t,{SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>i,SEMRESATTRS_SERVICE_NAME:()=>a,SEMRESATTRS_SERVICE_VERSION:()=>l});n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js");const s="deployment.environment",r="service.name",o="service.version",i=s,a=r,l=o},"../../node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js":(e,t,n)=>{"use strict";n.d(t,{ATTR_ERROR_TYPE:()=>s,ATTR_EXCEPTION_MESSAGE:()=>r,ATTR_EXCEPTION_STACKTRACE:()=>o,ATTR_EXCEPTION_TYPE:()=>i,ATTR_HTTP_REQUEST_METHOD:()=>a,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>l,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>c,ATTR_SERVER_ADDRESS:()=>u,ATTR_SERVER_PORT:()=>d,ATTR_SERVICE_NAME:()=>p,ATTR_TELEMETRY_SDK_LANGUAGE:()=>m,ATTR_TELEMETRY_SDK_NAME:()=>A,ATTR_TELEMETRY_SDK_VERSION:()=>g,ATTR_URL_FULL:()=>f,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>h});const s="error.type",r="exception.message",o="exception.stacktrace",i="exception.type",a="http.request.method",l="http.request.method_original",c="http.response.status_code",u="server.address",d="server.port",p="service.name",m="telemetry.sdk.language",h="webjs",A="telemetry.sdk.name",g="telemetry.sdk.version",f="url.full"},"../../node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js":(e,t,n)=>{"use strict";n.d(t,{SEMATTRS_HTTP_URL:()=>o,SEMATTRS_HTTP_USER_AGENT:()=>i});n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js");const s="http.url",r="http.user_agent",o=s,i=r},"../../node_modules/css-loader/dist/cjs.js!../../node_modules/rrweb-player/dist/style.css":(e,t,n)=>{"use strict";n.d(t,{default:()=>p});var s=n("../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js"),r=n.n(s),o=n("../../node_modules/css-loader/dist/runtime/api.js"),i=n.n(o),a=n("../../node_modules/css-loader/dist/runtime/getUrl.js"),l=n.n(a),c=new URL(n("data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzMwMHB4JyB3aWR0aD0nMzAwcHgnICBmaWxsPSIjMDAwMDAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGRhdGEtbmFtZT0iTGF5ZXIgMSIgdmlld0JveD0iMCAwIDUwIDUwIiB4PSIwcHgiIHk9IjBweCI+PHRpdGxlPkRlc2lnbl90bnA8L3RpdGxlPjxwYXRoIGQ9Ik00OC43MSw0Mi45MUwzNC4wOCwyOC4yOSw0NC4zMywxOEExLDEsMCwwLDAsNDQsMTYuMzlMMi4zNSwxLjA2QTEsMSwwLDAsMCwxLjA2LDIuMzVMMTYuMzksNDRhMSwxLDAsMCwwLDEuNjUuMzZMMjguMjksMzQuMDgsNDIuOTEsNDguNzFhMSwxLDAsMCwwLDEuNDEsMGw0LjM4LTQuMzhBMSwxLDAsMCwwLDQ4LjcxLDQyLjkxWm0tNS4wOSwzLjY3TDI5LDMyYTEsMSwwLDAsMC0xLjQxLDBsLTkuODUsOS44NUwzLjY5LDMuNjlsMzguMTIsMTRMMzIsMjcuNThBMSwxLDAsMCwwLDMyLDI5TDQ2LjU5LDQzLjYyWiI+PC9wYXRoPjwvc3ZnPg=="),n.b),u=i()(r()),d=l()(c);u.push([e.id,".switch.svelte-a6h7w7.svelte-a6h7w7.svelte-a6h7w7{height:1em;display:flex;align-items:center}.switch.disabled.svelte-a6h7w7.svelte-a6h7w7.svelte-a6h7w7{opacity:0.5}.label.svelte-a6h7w7.svelte-a6h7w7.svelte-a6h7w7{margin:0 8px}.switch.svelte-a6h7w7 input[type='checkbox'].svelte-a6h7w7.svelte-a6h7w7{position:absolute;opacity:0}.switch.svelte-a6h7w7 label.svelte-a6h7w7.svelte-a6h7w7{width:2em;height:1em;position:relative;cursor:pointer;display:block}.switch.disabled.svelte-a6h7w7 label.svelte-a6h7w7.svelte-a6h7w7{cursor:not-allowed}.switch.svelte-a6h7w7 label.svelte-a6h7w7.svelte-a6h7w7:before{content:'';position:absolute;width:2em;height:1em;left:0.1em;transition:background 0.1s ease;background:rgba(73, 80, 246, 0.5);border-radius:50px}.switch.svelte-a6h7w7 label.svelte-a6h7w7.svelte-a6h7w7:after{content:'';position:absolute;width:1em;height:1em;border-radius:50px;left:0;transition:all 0.2s ease;box-shadow:0px 2px 5px 0px rgba(0, 0, 0, 0.3);background:#fcfff4;animation:switch-off 0.2s ease-out;z-index:2}.switch.svelte-a6h7w7 input[type='checkbox'].svelte-a6h7w7:checked+label.svelte-a6h7w7:before{background:rgb(73, 80, 246)}.switch.svelte-a6h7w7 input[type='checkbox'].svelte-a6h7w7:checked+label.svelte-a6h7w7:after{animation:switch-on 0.2s ease-out;left:1.1em}.rr-controller.svelte-189zk2r.svelte-189zk2r{width:100%;height:80px;background:#fff;display:flex;flex-direction:column;justify-content:space-around;align-items:center;border-radius:0 0 5px 5px}.rr-timeline.svelte-189zk2r.svelte-189zk2r{width:80%;display:flex;align-items:center}.rr-timeline__time.svelte-189zk2r.svelte-189zk2r{display:inline-block;width:100px;text-align:center;color:#11103e}.rr-progress.svelte-189zk2r.svelte-189zk2r{flex:1;height:12px;background:#eee;position:relative;border-radius:3px;cursor:pointer;box-sizing:border-box;border-top:solid 4px #fff;border-bottom:solid 4px #fff}.rr-progress.disabled.svelte-189zk2r.svelte-189zk2r{cursor:not-allowed}.rr-progress__step.svelte-189zk2r.svelte-189zk2r{height:100%;position:absolute;left:0;top:0;background:#e0e1fe}.rr-progress__handler.svelte-189zk2r.svelte-189zk2r{width:20px;height:20px;border-radius:10px;position:absolute;top:2px;transform:translate(-50%, -50%);background:rgb(73, 80, 246)}.rr-controller__btns.svelte-189zk2r.svelte-189zk2r{display:flex;align-items:center;justify-content:center;font-size:13px}.rr-controller__btns.svelte-189zk2r button.svelte-189zk2r{width:32px;height:32px;display:flex;padding:0;align-items:center;justify-content:center;background:none;border:none;border-radius:50%;cursor:pointer}.rr-controller__btns.svelte-189zk2r button.svelte-189zk2r:active{background:#e0e1fe}.rr-controller__btns.svelte-189zk2r button.active.svelte-189zk2r{color:#fff;background:rgb(73, 80, 246)}.rr-controller__btns.svelte-189zk2r button.svelte-189zk2r:disabled{cursor:not-allowed}.replayer-wrapper {\n position: relative;\n}\n.replayer-mouse {\n position: absolute;\n width: 20px;\n height: 20px;\n transition: left 0.05s linear, top 0.05s linear;\n background-size: contain;\n background-position: center center;\n background-repeat: no-repeat;\n background-image: url("+d+");\n border-color: transparent; /* otherwise we transition from black when .touch-device class is added */\n}\n.replayer-mouse::after {\n content: '';\n display: inline-block;\n width: 20px;\n height: 20px;\n background: rgb(73, 80, 246);\n border-radius: 100%;\n transform: translate(-50%, -50%);\n opacity: 0.3;\n}\n.replayer-mouse.active::after {\n animation: click 0.2s ease-in-out 1;\n}\n.replayer-mouse.touch-device {\n background-image: none; /* there's no passive cursor on touch-only screens */\n width: 70px;\n height: 70px;\n border-width: 4px;\n border-style: solid;\n border-radius: 100%;\n margin-left: -37px;\n margin-top: -37px;\n border-color: rgba(73, 80, 246, 0);\n transition: left 0s linear, top 0s linear, border-color 0.2s ease-in-out;\n}\n.replayer-mouse.touch-device.touch-active {\n border-color: rgba(73, 80, 246, 1);\n transition: left 0.25s linear, top 0.25s linear, border-color 0.2s ease-in-out;\n}\n.replayer-mouse.touch-device::after {\n opacity: 0; /* there's no passive cursor on touch-only screens */\n}\n.replayer-mouse.touch-device.active::after {\n animation: touch-click 0.2s ease-in-out 1;\n}\n.replayer-mouse-tail {\n position: absolute;\n pointer-events: none;\n}\n@keyframes click {\n 0% {\n opacity: 0.3;\n width: 20px;\n height: 20px;\n }\n 50% {\n opacity: 0.5;\n width: 10px;\n height: 10px;\n }\n}\n@keyframes touch-click {\n 0% {\n opacity: 0;\n width: 20px;\n height: 20px;\n }\n 50% {\n opacity: 0.5;\n width: 10px;\n height: 10px;\n }\n}\n.rr-player{position:relative;background:white;float:left;border-radius:5px;box-shadow:0 24px 48px rgba(17, 16, 62, 0.12)}\n.rr-player__frame{overflow:hidden}\n.replayer-wrapper{float:left;clear:both;transform-origin:top left;left:50%;top:50%}\n.replayer-wrapper>iframe{border:none}","",{version:3,sources:["webpack://./../../node_modules/rrweb-player/dist/style.css"],names:[],mappings:"AAAA,kDAAkD,UAAU,CAAC,YAAY,CAAC,kBAAkB,CAAC,2DAA2D,WAAW,CAAC,iDAAiD,YAAY,CAAC,yEAAyE,iBAAiB,CAAC,SAAS,CAAC,wDAAwD,SAAS,CAAC,UAAU,CAAC,iBAAiB,CAAC,cAAc,CAAC,aAAa,CAAC,iEAAiE,kBAAkB,CAAC,+DAA+D,UAAU,CAAC,iBAAiB,CAAC,SAAS,CAAC,UAAU,CAAC,UAAU,CAAC,+BAA+B,CAAC,iCAAiC,CAAC,kBAAkB,CAAC,8DAA8D,UAAU,CAAC,iBAAiB,CAAC,SAAS,CAAC,UAAU,CAAC,kBAAkB,CAAC,MAAM,CAAC,wBAAwB,CAAC,6CAA6C,CAAC,kBAAkB,CAAC,kCAAkC,CAAC,SAAS,CAAC,8FAA8F,2BAA2B,CAAC,6FAA6F,iCAAiC,CAAC,UAAU,CAAC,6CAA6C,UAAU,CAAC,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,qBAAqB,CAAC,4BAA4B,CAAC,kBAAkB,CAAC,yBAAyB,CAAC,2CAA2C,SAAS,CAAC,YAAY,CAAC,kBAAkB,CAAC,iDAAiD,oBAAoB,CAAC,WAAW,CAAC,iBAAiB,CAAC,aAAa,CAAC,2CAA2C,MAAM,CAAC,WAAW,CAAC,eAAe,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,cAAc,CAAC,qBAAqB,CAAC,yBAAyB,CAAC,4BAA4B,CAAC,oDAAoD,kBAAkB,CAAC,iDAAiD,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAAC,oDAAoD,UAAU,CAAC,WAAW,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,OAAO,CAAC,+BAA+B,CAAC,2BAA2B,CAAC,mDAAmD,YAAY,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,cAAc,CAAC,0DAA0D,UAAU,CAAC,WAAW,CAAC,YAAY,CAAC,SAAS,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,eAAe,CAAC,WAAW,CAAC,iBAAiB,CAAC,cAAc,CAAC,iEAAiE,kBAAkB,CAAC,iEAAiE,UAAU,CAAC,2BAA2B,CAAC,mEAAmE,kBAAkB,CAAC;EACrxF,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,WAAW;EACX,YAAY;EACZ,+CAA+C;EAC/C,wBAAwB;EACxB,kCAAkC;EAClC,4BAA4B;EAC5B,yDAA+qB;EAC/qB,yBAAyB,GAAG,yEAAyE;AACvG;AACA;EACE,WAAW;EACX,qBAAqB;EACrB,WAAW;EACX,YAAY;EACZ,4BAA4B;EAC5B,mBAAmB;EACnB,gCAAgC;EAChC,YAAY;AACd;AACA;EACE,mCAAmC;AACrC;AACA;EACE,sBAAsB,GAAG,oDAAoD;EAC7E,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,mBAAmB;EACnB,mBAAmB;EACnB,kBAAkB;EAClB,iBAAiB;EACjB,kCAAkC;EAClC,wEAAwE;AAC1E;AACA;EACE,kCAAkC;EAClC,8EAA8E;AAChF;AACA;EACE,UAAU,GAAG,oDAAoD;AACnE;AACA;EACE,yCAAyC;AAC3C;AACA;EACE,kBAAkB;EAClB,oBAAoB;AACtB;AACA;EACE;IACE,YAAY;IACZ,WAAW;IACX,YAAY;EACd;EACA;IACE,YAAY;IACZ,WAAW;IACX,YAAY;EACd;AACF;AACA;EACE;IACE,UAAU;IACV,WAAW;IACX,YAAY;EACd;EACA;IACE,YAAY;IACZ,WAAW;IACX,YAAY;EACd;AACF;AACA,WAAW,iBAAiB,CAAC,gBAAgB,CAAC,UAAU,CAAC,iBAAiB,CAAC,6CAA6C;AACxH,kBAAkB,eAAe;AACjC,kBAAkB,UAAU,CAAC,UAAU,CAAC,yBAAyB,CAAC,QAAQ,CAAC,OAAO;AAClF,yBAAyB,WAAW",sourcesContent:[".switch.svelte-a6h7w7.svelte-a6h7w7.svelte-a6h7w7{height:1em;display:flex;align-items:center}.switch.disabled.svelte-a6h7w7.svelte-a6h7w7.svelte-a6h7w7{opacity:0.5}.label.svelte-a6h7w7.svelte-a6h7w7.svelte-a6h7w7{margin:0 8px}.switch.svelte-a6h7w7 input[type='checkbox'].svelte-a6h7w7.svelte-a6h7w7{position:absolute;opacity:0}.switch.svelte-a6h7w7 label.svelte-a6h7w7.svelte-a6h7w7{width:2em;height:1em;position:relative;cursor:pointer;display:block}.switch.disabled.svelte-a6h7w7 label.svelte-a6h7w7.svelte-a6h7w7{cursor:not-allowed}.switch.svelte-a6h7w7 label.svelte-a6h7w7.svelte-a6h7w7:before{content:'';position:absolute;width:2em;height:1em;left:0.1em;transition:background 0.1s ease;background:rgba(73, 80, 246, 0.5);border-radius:50px}.switch.svelte-a6h7w7 label.svelte-a6h7w7.svelte-a6h7w7:after{content:'';position:absolute;width:1em;height:1em;border-radius:50px;left:0;transition:all 0.2s ease;box-shadow:0px 2px 5px 0px rgba(0, 0, 0, 0.3);background:#fcfff4;animation:switch-off 0.2s ease-out;z-index:2}.switch.svelte-a6h7w7 input[type='checkbox'].svelte-a6h7w7:checked+label.svelte-a6h7w7:before{background:rgb(73, 80, 246)}.switch.svelte-a6h7w7 input[type='checkbox'].svelte-a6h7w7:checked+label.svelte-a6h7w7:after{animation:switch-on 0.2s ease-out;left:1.1em}.rr-controller.svelte-189zk2r.svelte-189zk2r{width:100%;height:80px;background:#fff;display:flex;flex-direction:column;justify-content:space-around;align-items:center;border-radius:0 0 5px 5px}.rr-timeline.svelte-189zk2r.svelte-189zk2r{width:80%;display:flex;align-items:center}.rr-timeline__time.svelte-189zk2r.svelte-189zk2r{display:inline-block;width:100px;text-align:center;color:#11103e}.rr-progress.svelte-189zk2r.svelte-189zk2r{flex:1;height:12px;background:#eee;position:relative;border-radius:3px;cursor:pointer;box-sizing:border-box;border-top:solid 4px #fff;border-bottom:solid 4px #fff}.rr-progress.disabled.svelte-189zk2r.svelte-189zk2r{cursor:not-allowed}.rr-progress__step.svelte-189zk2r.svelte-189zk2r{height:100%;position:absolute;left:0;top:0;background:#e0e1fe}.rr-progress__handler.svelte-189zk2r.svelte-189zk2r{width:20px;height:20px;border-radius:10px;position:absolute;top:2px;transform:translate(-50%, -50%);background:rgb(73, 80, 246)}.rr-controller__btns.svelte-189zk2r.svelte-189zk2r{display:flex;align-items:center;justify-content:center;font-size:13px}.rr-controller__btns.svelte-189zk2r button.svelte-189zk2r{width:32px;height:32px;display:flex;padding:0;align-items:center;justify-content:center;background:none;border:none;border-radius:50%;cursor:pointer}.rr-controller__btns.svelte-189zk2r button.svelte-189zk2r:active{background:#e0e1fe}.rr-controller__btns.svelte-189zk2r button.active.svelte-189zk2r{color:#fff;background:rgb(73, 80, 246)}.rr-controller__btns.svelte-189zk2r button.svelte-189zk2r:disabled{cursor:not-allowed}.replayer-wrapper {\n position: relative;\n}\n.replayer-mouse {\n position: absolute;\n width: 20px;\n height: 20px;\n transition: left 0.05s linear, top 0.05s linear;\n background-size: contain;\n background-position: center center;\n background-repeat: no-repeat;\n background-image: url('data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzMwMHB4JyB3aWR0aD0nMzAwcHgnICBmaWxsPSIjMDAwMDAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGRhdGEtbmFtZT0iTGF5ZXIgMSIgdmlld0JveD0iMCAwIDUwIDUwIiB4PSIwcHgiIHk9IjBweCI+PHRpdGxlPkRlc2lnbl90bnA8L3RpdGxlPjxwYXRoIGQ9Ik00OC43MSw0Mi45MUwzNC4wOCwyOC4yOSw0NC4zMywxOEExLDEsMCwwLDAsNDQsMTYuMzlMMi4zNSwxLjA2QTEsMSwwLDAsMCwxLjA2LDIuMzVMMTYuMzksNDRhMSwxLDAsMCwwLDEuNjUuMzZMMjguMjksMzQuMDgsNDIuOTEsNDguNzFhMSwxLDAsMCwwLDEuNDEsMGw0LjM4LTQuMzhBMSwxLDAsMCwwLDQ4LjcxLDQyLjkxWm0tNS4wOSwzLjY3TDI5LDMyYTEsMSwwLDAsMC0xLjQxLDBsLTkuODUsOS44NUwzLjY5LDMuNjlsMzguMTIsMTRMMzIsMjcuNThBMSwxLDAsMCwwLDMyLDI5TDQ2LjU5LDQzLjYyWiI+PC9wYXRoPjwvc3ZnPg==');\n border-color: transparent; /* otherwise we transition from black when .touch-device class is added */\n}\n.replayer-mouse::after {\n content: '';\n display: inline-block;\n width: 20px;\n height: 20px;\n background: rgb(73, 80, 246);\n border-radius: 100%;\n transform: translate(-50%, -50%);\n opacity: 0.3;\n}\n.replayer-mouse.active::after {\n animation: click 0.2s ease-in-out 1;\n}\n.replayer-mouse.touch-device {\n background-image: none; /* there's no passive cursor on touch-only screens */\n width: 70px;\n height: 70px;\n border-width: 4px;\n border-style: solid;\n border-radius: 100%;\n margin-left: -37px;\n margin-top: -37px;\n border-color: rgba(73, 80, 246, 0);\n transition: left 0s linear, top 0s linear, border-color 0.2s ease-in-out;\n}\n.replayer-mouse.touch-device.touch-active {\n border-color: rgba(73, 80, 246, 1);\n transition: left 0.25s linear, top 0.25s linear, border-color 0.2s ease-in-out;\n}\n.replayer-mouse.touch-device::after {\n opacity: 0; /* there's no passive cursor on touch-only screens */\n}\n.replayer-mouse.touch-device.active::after {\n animation: touch-click 0.2s ease-in-out 1;\n}\n.replayer-mouse-tail {\n position: absolute;\n pointer-events: none;\n}\n@keyframes click {\n 0% {\n opacity: 0.3;\n width: 20px;\n height: 20px;\n }\n 50% {\n opacity: 0.5;\n width: 10px;\n height: 10px;\n }\n}\n@keyframes touch-click {\n 0% {\n opacity: 0;\n width: 20px;\n height: 20px;\n }\n 50% {\n opacity: 0.5;\n width: 10px;\n height: 10px;\n }\n}\n.rr-player{position:relative;background:white;float:left;border-radius:5px;box-shadow:0 24px 48px rgba(17, 16, 62, 0.12)}\n.rr-player__frame{overflow:hidden}\n.replayer-wrapper{float:left;clear:both;transform-origin:top left;left:50%;top:50%}\n.replayer-wrapper>iframe{border:none}"],sourceRoot:""}]);const p=u},"../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./src/index.scss":(e,t,n)=>{"use strict";n.d(t,{default:()=>a});var s=n("../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js"),r=n.n(s),o=n("../../node_modules/css-loader/dist/runtime/api.js"),i=n.n(o)()(r());i.push([e.id,'.mp-root-wrapper * {\n font-family: "PP Neue Montreal", Montserrat, Roboto, Arial, sans-serif !important;\n box-sizing: border-box;\n}\n.mp-root-wrapper textarea {\n background: #ffffff;\n color: #2d3748;\n}\n\n.mp-session-debugger-button {\n cursor: pointer;\n border-radius: 12px;\n font-family: Inter, sans-serif;\n font-size: 14px;\n font-weight: 500;\n transition: all 0.2s;\n display: flex;\n align-items: center;\n justify-content: center;\n position: fixed;\n z-index: 2247483003;\n padding: 5px;\n background-color: #ffffff;\n border: solid 1px #bebfc1;\n border-radius: 36px;\n color: #718096;\n transition: background 0.3s;\n width: 42px;\n height: 42px;\n will-change: right, bottom;\n}\n.mp-session-debugger-button.is-started {\n color: #493bff;\n}\n.mp-session-debugger-button.top-left {\n top: 24px;\n left: 24px;\n}\n.mp-session-debugger-button.top-right {\n top: 24px;\n right: 24px;\n}\n.mp-session-debugger-button.bottom-left {\n bottom: 24px;\n left: 24px;\n}\n.mp-session-debugger-button.bottom-right {\n bottom: 24px;\n right: 24px;\n}\n.mp-session-debugger-button.no-draggable {\n position: static;\n}\n.mp-session-debugger-button.no-draggable::before {\n transform: translateY(-18px) !important;\n top: -10px !important;\n left: 10px !important;\n}\n.mp-session-debugger-button.no-draggable:hover::before {\n z-index: 1;\n transform: translateY(-18px);\n top: -10px;\n left: 10px;\n right: unset;\n}\n.mp-session-debugger-button.no-draggable.no-tooltip::before {\n display: none;\n}\n.mp-session-debugger-button.mp-button-blue {\n border: 1px rgba(0, 0, 0, 0.2);\n background: #493bff;\n}\n.mp-session-debugger-button.mp-button-blue::before {\n opacity: 1;\n transform: translateX(0);\n}\n.mp-session-debugger-button:not([data-tooltip=""]):before {\n content: attr(data-tooltip);\n position: absolute;\n pointer-events: none;\n height: 28px;\n top: 6px;\n padding: 6px 8px 6px 8px;\n border-radius: 8px;\n font-family: Inter, sans-serif;\n font-size: 12px;\n font-weight: 500;\n line-height: 16px;\n opacity: 0;\n transition: all 0.3s;\n background: #1a202c;\n color: white;\n white-space: nowrap;\n box-sizing: border-box;\n z-index: -1;\n transform: translateX(-8px);\n left: unset;\n right: 100%;\n}\n.mp-session-debugger-button:not([data-tooltip=""]).top-left:before, .mp-session-debugger-button:not([data-tooltip=""]).bottom-left:before, .mp-session-debugger-button:not([data-tooltip=""]).button-leftside:before {\n transform: translateX(8px);\n left: 100%;\n right: unset;\n}\n.mp-session-debugger-button:not(.no-hover):hover {\n color: #473cfb;\n box-shadow: 0 3px 3px -1.5px rgba(0, 0, 0, 0.06), 0 1px 1px -0.5px rgba(0, 0, 0, 0.06);\n}\n.mp-session-debugger-button:not(.no-hover):hover:before {\n opacity: 1;\n}\n.mp-session-debugger-button:not(.no-hover):hover:not(.no-draggable) .mp-drag-hint svg {\n opacity: 1;\n}\n.mp-session-debugger-button svg {\n transform: rotate(0deg);\n transition: transform 0.3s linear;\n}\n.mp-session-debugger-button.rotate-on-hover:hover svg {\n transform: rotate(-180deg);\n}\n.mp-session-debugger-button.animate-rotate svg {\n animation: _rotateAnimation 3s linear infinite;\n}\n\n.animate-bounce {\n animation: _bounceAnimation 1.6s infinite;\n animation-timing-function: cubic-bezier(0.87, 0, 0.13, 1);\n}\n\n.mp-drag-hint svg {\n position: absolute;\n width: 14px;\n height: 14px;\n top: -3px;\n right: -9px;\n opacity: 0;\n transform: unset !important;\n transition: opacity 0.1ms ease-in !important;\n cursor: grab;\n}\n\n.mp-session-debugger-popover-textarea {\n border: 1px solid #cbd5e0;\n box-shadow: 0 12px 12px -12px rgba(0, 0, 0, 0.0588235294), 0 6px 6px -3px rgba(0, 0, 0, 0.0588235294), 0 3px 3px -1.5px rgba(0, 0, 0, 0.0588235294), 0 1px 1px -0.5px rgba(0, 0, 0, 0.0588235294);\n padding: 10px 13px 10px 13px;\n border-radius: 12px;\n font-family: Inter, serif;\n font-size: 14px;\n font-weight: 400;\n color: #718096;\n margin-bottom: 32px;\n width: 100%;\n height: 80px;\n resize: none;\n}\n\n.mp-session-debugger-popover {\n position: fixed;\n bottom: 90px;\n right: 24px;\n width: 300px;\n background: #ffffff;\n border-radius: 24px;\n overflow: hidden;\n border: 1px solid rgb(245, 245, 245);\n box-shadow: 0 1px 1px -0.5px rgba(0, 0, 0, 0.06), 0 3px 3px -1.5px rgba(0, 0, 0, 0.06);\n z-index: 10000;\n}\n.mp-session-debugger-popover.hidden {\n display: none;\n}\n.mp-session-debugger-popover-content {\n position: relative;\n padding: 65px 16px 16px;\n}\n.mp-session-debugger-popover-header {\n position: absolute;\n top: 0;\n width: 100%;\n right: 0;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 16px;\n gap: 8px;\n background: linear-gradient(180deg, rgba(255, 255, 255, 0) 50%, rgb(255, 255, 255) 100%), linear-gradient(90deg, #d8f3fd 0%, #e3ecfd 100%);\n}\n.mp-session-debugger-popover-header a {\n color: inherit;\n margin-right: auto;\n text-decoration: none;\n}\n.mp-session-debugger-popover-body h2 {\n margin-bottom: 4px;\n font-size: 18px;\n font-weight: 600;\n color: #2d3748;\n font-family: "PP Neue Montreal", Montserrat, Roboto, Arial, sans-serif;\n}\n.mp-session-debugger-popover-body p {\n font-family: "PP Neue Montreal", Montserrat, Roboto, Arial, sans-serif;\n font-size: 14px;\n font-weight: 400;\n color: #718096;\n margin-bottom: 32px;\n}\n.mp-session-debugger-popover-body:has(#mp-session-debugger-continuous-debugging-checkbox:checked) .mp-session-debugger-continuous-debugging-overlay {\n display: flex;\n}\n.mp-session-debugger-popover-footer {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n}\n.mp-session-debugger-popover-button {\n cursor: pointer;\n border-radius: 12px;\n font-family: Inter, sans-serif;\n font-size: 14px;\n font-weight: 500;\n transition: all 0.2s;\n border: none;\n color: #ffffff;\n width: 100%;\n position: relative;\n padding: 12px 16px;\n border-radius: 12px;\n background: transparent;\n overflow: hidden;\n z-index: 1;\n}\n.mp-session-debugger-popover-button::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: linear-gradient(180deg, #493bff 0%, #382be4 100%);\n transition: opacity 0.3s linear;\n z-index: -1;\n}\n.mp-session-debugger-popover-button::after {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: linear-gradient(180deg, #160d9c 0%, #160d9c 100%);\n transition: opacity 0.3s linear;\n z-index: -1;\n opacity: 0;\n}\n.mp-session-debugger-popover-button:hover::after {\n opacity: 1;\n}\n.mp-session-debugger-popover-button:disabled, .mp-session-debugger-popover-button.disabled {\n pointer-events: none;\n opacity: 0.6;\n cursor: not-allowed;\n transition: opacity 0.2s ease;\n}\n.mp-session-debugger-popover-button:disabled:hover, .mp-session-debugger-popover-button:disabled:focus, .mp-session-debugger-popover-button.disabled:hover, .mp-session-debugger-popover-button.disabled:focus {\n background-color: inherit;\n box-shadow: none;\n}\n.mp-session-debugger-continuous-debugging {\n position: relative;\n z-index: 3;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n padding: 12px;\n border-radius: 12px;\n border: 1px solid #e1e8f1;\n box-shadow: 0 1px 1px -0.5px rgba(0, 0, 0, 0.06), 0 3px 3px -1.5px rgba(0, 0, 0, 0.06);\n margin-bottom: 20px;\n}\n.mp-session-debugger-continuous-debugging-overlay {\n position: absolute;\n inset: 65px 0 0 0;\n z-index: 2;\n display: none;\n border-radius: 12px;\n backdrop-filter: blur(10px);\n background: rgba(255, 255, 255, 0.5);\n flex-direction: column;\n justify-content: flex-end;\n padding: 12px;\n gap: 12px;\n}\n.mp-session-debugger-continuous-debugging-overlay-content {\n padding: 12px;\n background: #ffffff;\n border-radius: 12px;\n border: 1px solid #e1e8f1;\n box-shadow: 0 1px 1px -0.5px rgba(0, 0, 0, 0.06), 0 3px 3px -1.5px rgba(0, 0, 0, 0.06);\n}\n.mp-session-debugger-continuous-debugging-overlay-content h3 {\n display: flex;\n align-items: center;\n justify-content: center;\n justify-content: flex-start;\n margin: 0;\n gap: 8px;\n font-size: 14px;\n font-weight: 500;\n}\n.mp-session-debugger-continuous-debugging-overlay-content h3 svg {\n width: 20px;\n height: 20px;\n animation: _bounceAnimation 1.6s infinite;\n animation-timing-function: cubic-bezier(0.87, 0, 0.13, 1);\n}\n.mp-session-debugger-continuous-debugging-overlay-content p {\n margin: 0;\n}\n.mp-session-debugger-continuous-debugging-label {\n gap: 8px;\n display: flex;\n font-size: 14px;\n color: #2d3748;\n font-weight: 500;\n}\n.mp-session-debugger-continuous-debugging-switch {\n display: flex;\n align-items: center;\n width: 44px;\n height: 24px;\n padding: 2px;\n cursor: pointer;\n border-radius: 36px;\n background: #e2e8f0;\n}\n.mp-session-debugger-continuous-debugging-switch:has(input:checked) {\n background: #493bff;\n justify-content: flex-end;\n}\n.mp-session-debugger-continuous-debugging-switch input {\n display: none;\n}\n.mp-session-debugger-continuous-debugging-switch span {\n width: 20px;\n height: 20px;\n border-radius: 50%;\n background: #ffffff;\n transition: transform 0.2s;\n}\n\n.mp-recording-overlay {\n background: #5c5d5d;\n color: #ffffff;\n display: flex;\n z-index: 2147483007;\n left: 50%;\n bottom: 20px;\n position: fixed;\n transform: translate(-50%, 0);\n border: 0.5px solid #5c5d5d;\n border-radius: 24px;\n font-family: Arial, sans-serif;\n flex-direction: row;\n font-size: 14px;\n box-shadow: 0 1px 1px -0.5px rgba(0, 0, 0, 0.3);\n}\n.mp-recording-overlay.hidden {\n display: none;\n}\n.mp-recording-status {\n gap: 8px;\n display: flex;\n padding: 12px 12px;\n flex-direction: row;\n align-items: center;\n}\n.mp-recording-indicator {\n width: 24px;\n height: 24px;\n animation: pulse 1.5s infinite;\n}\n.mp-recording-controls {\n display: flex;\n}\n.mp-recording-btn {\n border: none;\n border-right: 0.5px solid #5c5d5d;\n background: #414141;\n padding: 6px 12px;\n font-weight: bold;\n cursor: pointer;\n color: #ffffff;\n gap: 8px;\n}\n\n.mp-session-debugger-modal.hidden {\n display: none;\n}\n\n.mp-session-debugger-popover-logo svg {\n width: 30px;\n}\n\n.mp-session-debugger-dismiss-button {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 6px 16px;\n background: white;\n border: 1px solid #e1e8f1;\n box-shadow: 0 3px 3px -1.5px rgba(0, 0, 0, 0.0588235294), 0 1px 1px -0.5px rgba(0, 0, 0, 0.0588235294);\n border-radius: 12px;\n font-size: 14px;\n color: #2d3748;\n font-weight: 500;\n}\n\n.mp-session-debugger-modal-backdrop {\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 10003;\n}\n\n/* Modal content */\n.mp-session-debugger-modal-content {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background: white;\n padding: 20px;\n border-radius: 8px;\n width: 80vw;\n min-height: 70vh;\n max-height: 90vh;\n z-index: 10004;\n display: flex;\n flex-direction: column;\n}\n\n/* Close button */\n.mp-session-debugger-modal-close {\n background: none;\n border: none;\n padding: 8px;\n cursor: pointer;\n color: grey;\n line-height: 1;\n}\n.mp-session-debugger-modal-close svg {\n vertical-align: top;\n}\n\n/* Modal body */\n.mp-session-debugger-modal-body {\n flex: 1;\n display: flex;\n flex-direction: column;\n padding: 20px 0;\n height: 100%;\n overflow: hidden;\n background: white;\n}\n.mp-session-debugger-modal-body .rr-player {\n border-radius: 4px;\n border: 1px solid #c1c5ca;\n box-shadow: unset;\n overflow: hidden;\n}\n\n.mp-session-debugger-player-frame {\n display: flex;\n flex: 1;\n overflow: hidden;\n}\n.mp-session-debugger-player-frame .replayer-wrapper {\n box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);\n}\n\n/* Modal footer */\n.mp-session-debugger-modal-footer {\n display: flex;\n justify-content: flex-end;\n gap: 10px;\n}\n\n/* Buttons */\n.mp-session-debugger-modal-button {\n width: auto;\n}\n\n.mp-dismiss-recording,\n.mp-dismiss-recording:before,\n.mp-dismiss-recording:after {\n background: white;\n border: 1px solid #e1e8f1;\n color: #2d3748;\n}\n\n@keyframes _rotateAnimation {\n 0% {\n transform: rotate(0);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes _bounceAnimation {\n 0%, 100% {\n padding: 3px;\n }\n 50% {\n padding: 0;\n }\n}\n#mp-submission-dialog {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 99999;\n display: flex;\n align-items: center;\n justify-content: center;\n font-family: -apple-system, BlinkMacSystemFont, sans-serif;\n}\n#mp-submission-dialog.hidden {\n display: none;\n}\n#mp-submission-dialog .mp-dialog-backdrop {\n background: rgba(0, 0, 0, 0.4);\n position: fixed;\n width: 100%;\n height: 100%;\n}\n#mp-submission-dialog .mp-dialog-content {\n top: 30%;\n left: 40%;\n position: absolute;\n background: #ffffff;\n border-radius: 24px;\n padding: 24px;\n width: 90%;\n max-width: 450px;\n z-index: 100000;\n animation: fadeIn 0.3s ease-out;\n box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);\n}\n#mp-submission-dialog .mp-dialog-actions {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n}\n#mp-submission-dialog h3 {\n margin-bottom: 16px;\n font-size: 20px;\n color: #2a374a;\n}\n#mp-submission-dialog .subtitle {\n font-size: 12px;\n color: #6d8198;\n margin-bottom: 16px;\n}\n#mp-submission-dialog .form-group {\n margin-bottom: 20px;\n}\n#mp-submission-dialog label {\n display: block;\n margin-bottom: 8px;\n color: #555;\n font-size: 14px;\n}\n#mp-submission-dialog textarea {\n width: 100%;\n padding: 12px;\n border: 1px solid #e0e0e0;\n border-radius: 8px;\n resize: vertical;\n min-height: 100px;\n max-height: 350px;\n font-family: inherit;\n font-size: 14px;\n transition: border 0.2s;\n}\n#mp-submission-dialog textarea:focus {\n outline: none;\n border-color: #382be4;\n box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);\n}\n#mp-submission-dialog textarea::placeholder {\n color: #6d8198;\n opacity: 1;\n}\n#mp-submission-dialog button {\n padding: 12px 16px;\n border-radius: 12px;\n cursor: pointer;\n font-size: 14px;\n font-weight: 500;\n transition: all 0.2s;\n}\n#mp-submission-dialog #mp-cancel-submission {\n background: #f5f5f5;\n border: 1px solid #e1e8f1;\n color: #2d3748;\n box-shadow: 0 1px 1px -0.5px rgba(0, 0, 0, 0.06), 0 3px 3px -1.5px rgba(0, 0, 0, 0.06);\n}\n#mp-submission-dialog #mp-submit-recording {\n background: linear-gradient(180deg, #493bff 0%, #382be4 100%);\n border: none;\n color: #ffffff;\n}\n#mp-submission-dialog #mp-submit-recording:hover {\n background: linear-gradient(180deg, #493bff 0%, #160d9c 100%);\n}\n\n#mp-confirmation-dialog {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n font-size: 14px;\n background: rgba(0, 0, 0, 0.4);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 9999;\n}\n#mp-confirmation-dialog .mp-dialog-content {\n padding: 20px;\n color: #2a374a;\n max-width: 410px;\n background: #ffffff;\n border-radius: 24px;\n}\n#mp-confirmation-dialog .mp-dialog-buttons {\n gap: 12px;\n display: flex;\n margin-top: 16px;\n justify-content: flex-end;\n}\n#mp-confirmation-dialog button {\n font-weight: 500;\n cursor: pointer;\n padding: 12px 16px;\n border-radius: 12px;\n transition: all 0.2s;\n}\n#mp-confirmation-dialog #mp-dialog-confirm {\n background: #dd524c;\n color: #ffffff;\n}\n#mp-confirmation-dialog #mp-dialog-confirm:hover {\n background: #c53030;\n}\n#mp-confirmation-dialog #mp-dialog-cancel {\n background: #f5f5f5;\n border: 1px solid #e1e8f1;\n color: #2d3748;\n box-shadow: 0 1px 1px -0.5px rgba(0, 0, 0, 0.06), 0 3px 3px -1.5px rgba(0, 0, 0, 0.06);\n}\n\n.mp-drag-handle {\n padding: 12px 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.mp-toast {\n left: 50%;\n bottom: 40px;\n position: fixed;\n transform: translateX(-50%);\n background: #535454;\n z-index: 10001;\n padding: 0;\n border: none;\n border-radius: 14px;\n box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);\n display: flex;\n font-size: 14px;\n font-weight: 500;\n animation: slideUpCenter 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n}\n.mp-toast-error .mp-toast-icon {\n color: #dd524c;\n}\n.mp-toast.hidden {\n display: none;\n}\n.mp-toast-content {\n padding: 0;\n gap: 12px;\n color: white;\n display: flex;\n align-items: center;\n width: 100%;\n height: 100%;\n white-space: nowrap;\n}\n.mp-toast-icon {\n margin-left: 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.mp-toast-icon svg {\n width: 20px;\n height: 20px;\n}\n.mp-toast-message {\n flex: 1;\n margin-right: 12px;\n font-weight: 500;\n}\n.mp-toast-button {\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-right-radius: 14px;\n border-bottom-right-radius: 14px;\n padding: 12px 16px !important;\n background: #414141 !important;\n font-weight: 500 !important;\n border: 0.5px solid #5C5D5D;\n cursor: pointer;\n text-decoration: none !important;\n transition: background 0.18s;\n}\n.mp-toast-button:hover, .mp-toast-button:focus {\n background: rgba(255, 255, 255, 0.18);\n}\n\n@keyframes slideUpCenter {\n from {\n transform: translateX(-50%) translateY(40px);\n opacity: 0;\n }\n to {\n transform: translateX(-50%) translateY(0);\n opacity: 1;\n }\n}',"",{version:3,sources:["webpack://./src/index.scss"],names:[],mappings:"AAsEE;EACE,iFAAA;EACA,sBAAA;AArEJ;AAwEE;EACE,mBAjEe;EAkEf,cArEiB;AADrB;;AA2EA;EAnCE,eAAA;EACA,mBAxBiB;EAyBjB,8BA/CkB;EAgDlB,eAAA;EACA,gBAAA;EACA,oBAAA;EAjBA,aAAA;EACA,mBAAA;EACA,uBAAA;EAgDA,eAAA;EACA,mBAAA;EACA,YAAA;EACA,yBA7EiB;EA8EjB,yBAAA;EACA,mBAhEmB;EAiEnB,cAlFqB;EAmFrB,2BAAA;EAEA,WAAA;EACA,YAAA;EACA,0BAAA;AAlEF;AAoEE;EACE,cA9FY;AA4BhB;AAsEE;EACE,SApFU;EAqFV,UArFU;AAiBd;AAuEE;EACE,SAzFU;EA0FV,WA1FU;AAqBd;AAwEE;EACE,YA9FU;EA+FV,UA/FU;AAyBd;AAyEE;EACE,YAnGU;EAoGV,WApGU;AA6Bd;AA0EE;EACE,gBAAA;AAxEJ;AAyEI;EACE,uCAAA;EACA,qBAAA;EACA,qBAAA;AAvEN;AAyEI;EACE,UAAA;EACA,4BAAA;EACA,UAAA;EACA,UAAA;EACA,YAAA;AAvEN;AAyEI;EACE,aAAA;AAvEN;AA0EE;EACE,8BAAA;EACA,mBAAA;AAxEJ;AAyEI;EACE,UAAA;EACA,wBAAA;AAvEN;AA2EI;EACE,2BAAA;EACA,kBAAA;EACA,oBAAA;EACA,YAAA;EACA,QAAA;EACA,wBAAA;EACA,kBAAA;EACA,8BAAA;EACA,eAAA;EACA,gBAAA;EACA,iBAAA;EACA,UAAA;EACA,oBAAA;EACA,mBAAA;EACA,YAAA;EACA,mBAAA;EACA,sBAAA;EACA,WAAA;EACA,2BAAA;EACA,WAAA;EACA,WAAA;AAzEN;AA2EI;EAGE,0BAAA;EACA,UAAA;EACA,YAAA;AA3EN;AA+EI;EACE,cAAA;EACA,sFAAA;AA7EN;AA+EM;EACE,UAAA;AA7ER;AAgFQ;EACE,UAAA;AA9EV;AAmFE;EACE,uBAAA;EACA,iCAAA;AAjFJ;AAqFM;EACE,0BAAA;AAnFR;AAuFE;EACE,8CAAA;AArFJ;;AAyFA;EACE,yCAAA;EACA,yDAAA;AAtFF;;AAyFA;EACE,kBAAA;EACA,WAAA;EACA,YAAA;EACA,SAAA;EACA,WAAA;EACA,UAAA;EACA,2BAAA;EACA,4CAAA;EACA,YAAA;AAtFF;;AAyFA;EACE,yBAAA;EACA,iMAAA;EAEA,4BAAA;EACA,mBAAA;EACA,yBAAA;EACA,eAAA;EACA,gBAAA;EACA,cAAA;EACA,mBAAA;EACA,WAAA;EACA,YAAA;EACA,YAAA;AAvFF;;AA2FE;EACE,eAAA;EACA,YAAA;EACA,WArOU;EAsOV,YAAA;EACA,mBAhPe;EAiPf,mBAnOe;EAoOf,gBAAA;EACA,oCAAA;EA9LF,sFAAA;EAgME,cAnOW;AA2If;AA0FI;EACE,aAAA;AAxFN;AA2FI;EACE,kBAAA;EACA,uBAAA;AAzFN;AA4FI;EACE,kBAAA;EACA,MAAA;EACA,WAAA;EACA,QAAA;EAtOJ,aAAA;EACA,mBAAA;EACA,8BAAA;EAsOI,aA/PO;EAgQP,QAlQO;EAmQP,0IAAA;AAxFN;AA+FM;EACE,cAAA;EACA,kBAAA;EACA,qBAAA;AA7FR;AAkGM;EACE,kBApRK;EAqRL,eAAA;EACA,gBAAA;EACA,cA9Ra;EA+Rb,sEAtSW;AAsMnB;AAmGM;EACE,sEA1SW;EA2SX,eAAA;EACA,gBAAA;EACA,cArSe;EAsSf,mBAAA;AAjGR;AAoGQ;EACE,aAAA;AAlGV;AAuGI;EA/QF,aAAA;EACA,mBAAA;EACA,8BAAA;EA+QI,QA1SO;AAuMb;AAsGI;EA9QF,eAAA;EACA,mBAxBiB;EAyBjB,8BA/CkB;EAgDlB,eAAA;EACA,gBAAA;EACA,oBAAA;EA2QI,YAAA;EACA,cArTa;EAsTb,WAAA;EACA,kBAAA;EACA,kBAAA;EACA,mBA5Sa;EA6Sb,uBAAA;EACA,gBAAA;EACA,UAAA;AA/FN;AAiGM;EACE,WAAA;EACA,kBAAA;EACA,MAAA;EACA,OAAA;EACA,QAAA;EACA,SAAA;EAvRN,6DAAA;EAyRM,+BAAA;EACA,WAAA;AA/FR;AAkGM;EACE,WAAA;EACA,kBAAA;EACA,MAAA;EACA,OAAA;EACA,QAAA;EACA,SAAA;EACA,6DAAA;EAKA,+BAAA;EACA,WAAA;EACA,UAAA;AApGR;AAuGM;EACE,UAAA;AArGR;AAwGM;EAEE,oBAAA;EACA,YAAA;EACA,mBAAA;EACA,6BAAA;AAvGR;AAyGQ;EAEE,yBAAA;EACA,gBAAA;AAxGV;AA8GE;EACE,kBAAA;EACA,UAAA;EAnVF,aAAA;EACA,mBAAA;EACA,8BAAA;EAmVE,QA9WS;EA+WT,aA9WS;EA+WT,mBAxWe;EAyWf,yBAAA;EAjUF,sFAAA;EAmUE,mBAhXS;AAsQb;AA4GI;EACE,kBAAA;EACA,iBAAA;EACA,UAAA;EACA,aAAA;EACA,mBAlXa;EAmXb,2BAAA;EACA,oCAAA;EACA,sBAAA;EACA,yBAAA;EACA,aA9XO;EA+XP,SA/XO;AAqRb;AA4GM;EACE,aAlYK;EAmYL,mBAzYW;EA0YX,mBA7XW;EA8XX,yBAAA;EAtVN,sFAAA;AA6OF;AA4GQ;EAtXN,aAAA;EACA,mBAAA;EACA,uBAAA;EAsXQ,2BAAA;EACA,SAAA;EACA,QA7YG;EA8YH,eAAA;EACA,gBAAA;AAxGV;AAyGU;EACE,WAAA;EACA,YAAA;EACA,yCAAA;EACA,yDAAA;AAvGZ;AA0GQ;EACE,SAAA;AAxGV;AA6GI;EACE,QA9ZO;EA+ZP,aAAA;EACA,eAAA;EACA,cAzae;EA0af,gBAAA;AA3GN;AA8GI;EACE,aAAA;EACA,mBAAA;EACA,WAAA;EACA,YAAA;EACA,YAAA;EACA,eAAA;EACA,mBAlae;EAmaf,mBAAA;AA5GN;AA8GM;EACE,mBA3bQ;EA4bR,yBAAA;AA5GR;AA+GM;EACE,aAAA;AA7GR;AAgHM;EACE,WAAA;EACA,YAAA;EACA,kBAAA;EACA,mBAjcW;EAkcX,0BAAA;AA9GR;;AAsHE;EACE,mBAAA;EACA,cA5ce;EA6cf,aAAA;EACA,mBAAA;EACA,SAAA;EACA,YAxcS;EAycT,eAAA;EACA,6BAAA;EACA,2BAAA;EACA,mBAtce;EAucf,8BAAA;EACA,mBAAA;EACA,eAAA;EACA,+CAAA;AAnHJ;AAqHI;EACE,aAAA;AAnHN;AAuHE;EACE,QA3dS;EA4dT,aAAA;EACA,kBAAA;EACA,mBAAA;EACA,mBAAA;AArHJ;AAwHE;EACE,WAAA;EACA,YAAA;EACA,8BAAA;AAtHJ;AAyHE;EACE,aAAA;AAvHJ;AA0HE;EACE,YAAA;EACA,iCAAA;EACA,mBAAA;EACA,iBAAA;EACA,iBAAA;EACA,eAAA;EACA,cAxfe;EAyff,QApfS;AA4Xb;;AA4HA;EACE,aAAA;AAzHF;;AA4HA;EACE,WAAA;AAzHF;;AA4HA;EACE,aAAA;EACA,uBAAA;EACA,mBAAA;EACA,iBAAA;EACA,iBAAA;EACA,yBAAA;EACA,sGAAA;EACA,mBAAA;EACA,eAAA;EACA,cAAA;EACA,gBAAA;AAzHF;;AA4HA;EACE,eAAA;EACA,MAAA;EACA,OAAA;EACA,YAAA;EACA,aAAA;EACA,oCAAA;EACA,cAAA;AAzHF;;AA4HA,kBAAA;AACA;EACE,eAAA;EACA,QAAA;EACA,SAAA;EACA,gCAAA;EACA,iBAAA;EACA,aAAA;EACA,kBAAA;EACA,WAAA;EACA,gBAAA;EACA,gBAAA;EACA,cAAA;EACA,aAAA;EACA,sBAAA;AAzHF;;AA4HA,iBAAA;AACA;EACE,gBAAA;EACA,YAAA;EACA,YA7iBW;EA8iBX,eAAA;EACA,WAAA;EACA,cAAA;AAzHF;AA0HE;EACC,mBAAA;AAxHH;;AA4HA,eAAA;AACA;EACE,OAAA;EACA,aAAA;EACA,sBAAA;EACA,eAAA;EACA,YAAA;EACA,gBAAA;EACA,iBAAA;AAzHF;AA0HE;EACE,kBAAA;EACA,yBAAA;EACA,iBAAA;EACA,gBAAA;AAxHJ;;AA6HA;EACE,aAAA;EACA,OAAA;EACA,gBAAA;AA1HF;AA2HE;EACE,iDAAA;AAzHJ;;AA6HA,iBAAA;AACA;EACE,aAAA;EACA,yBAAA;EACA,SAAA;AA1HF;;AA6HA,YAAA;AACA;EACE,WAAA;AA1HF;;AA6HA;;;EAGE,iBAAA;EACA,yBAAA;EACA,cAAA;AA1HF;;AA6HA;EACE;IACE,oBAAA;EA1HF;EA6HA;IACE,yBAAA;EA3HF;AACF;AA8HA;EACE;IAEE,YAAA;EA7HF;EA+HA;IACE,UAAA;EA7HF;AACF;AAiIA;EACE,eAAA;EACA,MAAA;EACA,OAAA;EACA,QAAA;EACA,SAAA;EACA,cAAA;EA7mBA,aAAA;EACA,mBAAA;EACA,uBAAA;EA6mBA,0DAAA;AA7HF;AA+HE;EACE,aAAA;AA7HJ;AAiII;EACE,8BAAA;EACA,eAAA;EACA,WAAA;EACA,YAAA;AA/HN;AAkII;EACE,QAAA;EACA,SAAA;EACA,kBAAA;EACA,mBAzpBa;EA0pBb,mBA5oBa;EA6oBb,aAlpBQ;EAmpBR,UAAA;EACA,gBAAA;EACA,eAAA;EACA,+BAAA;EACA,yCAAA;AAhIN;AAmII;EAroBF,aAAA;EACA,mBAAA;EACA,8BAAA;EAqoBI,SA/pBO;AAgiBb;AAmIE;EACE,mBAnqBS;EAoqBT,eAAA;EACA,cAAA;AAjIJ;AAoIE;EACE,eAAA;EACA,cAAA;EACA,mBA3qBS;AAyiBb;AAqIE;EACE,mBA9qBS;AA2iBb;AAsIE;EACE,cAAA;EACA,kBAtrBS;EAurBT,WAAA;EACA,eAAA;AApIJ;AAuIE;EACE,WAAA;EACA,aA5rBS;EA6rBT,yBAAA;EACA,kBAxrBe;EAyrBf,gBAAA;EACA,iBAAA;EACA,iBAAA;EACA,oBAAA;EACA,eAAA;EACA,uBAAA;AArIJ;AAuII;EACE,aAAA;EACA,qBAntBe;EAotBf,6CAAA;AArIN;AAwII;EACE,cAAA;EACA,UAAA;AAtIN;AA0IE;EACE,kBAAA;EACA,mBA7sBe;EA8sBf,eAAA;EACA,eAAA;EACA,gBAAA;EACA,oBAAA;AAxIJ;AA2IE;EACE,mBAAA;EACA,yBAAA;EACA,cAvuBiB;EAwDnB,sFAAA;AAuiBF;AA4IE;EA3rBA,6DAAA;EA6rBE,YAAA;EACA,cA3uBe;AAimBnB;AA4II;EACE,6DAAA;AA1IN;;AAmJA;EACE,eAAA;EACA,MAAA;EACA,OAAA;EACA,WAAA;EACA,YAAA;EACA,eAAA;EACA,8BAAA;EAtuBA,aAAA;EACA,mBAAA;EACA,uBAAA;EAsuBA,aAAA;AA9IF;AAiJI;EACE,aA5vBO;EA6vBP,cAAA;EACA,gBAAA;EACA,mBAvwBa;EAwwBb,mBA1vBa;AA2mBnB;AAkJI;EACE,SAtwBO;EAuwBP,aAAA;EACA,gBAvwBO;EAwwBP,yBAAA;AAhJN;AAoJE;EACE,gBAAA;EACA,eAAA;EACA,kBAAA;EACA,mBA1wBe;EA2wBf,oBAAA;AAlJJ;AAqJE;EACE,mBAAA;EACA,cA7xBe;AA0oBnB;AAqJI;EACE,mBAAA;AAnJN;AAuJE;EACE,mBAAA;EACA,yBAAA;EACA,cA1yBiB;EAwDnB,sFAAA;AA8lBF;;AA0JA;EACE,kBAAA;EAtxBA,aAAA;EACA,mBAAA;EACA,uBAAA;AAgoBF;;AA2JA;EACE,SAAA;EACA,YAAA;EACA,eAAA;EACA,2BAAA;EACA,mBAAA;EACA,cAAA;EACA,UAAA;EACA,YAAA;EACA,mBAAA;EACA,0CAAA;EACA,aAAA;EACA,eAAA;EACA,gBAAA;EACA,0DAAA;AAxJF;AA0JI;EACE,cAAA;AAxJN;AA2JE;EACE,aAAA;AAzJJ;AA4JE;EACE,UAAA;EACA,SAAA;EACA,YAAA;EACA,aAAA;EACA,mBAAA;EACA,WAAA;EACA,YAAA;EACA,mBAAA;AA1JJ;AA6JE;EACE,iBAAA;EACA,aAAA;EACA,mBAAA;EACA,uBAAA;AA3JJ;AA4JI;EACE,WAAA;EACA,YAAA;AA1JN;AA8JE;EACE,OAAA;EACA,kBAAA;EACA,gBAAA;AA5JJ;AA+JE;EACE,aAAA;EACA,mBAAA;EACA,uBAAA;EACA,6BAAA;EACA,gCAAA;EACA,6BAAA;EACA,8BAAA;EACA,2BAAA;EACA,2BAAA;EACA,eAAA;EACA,gCAAA;EACA,4BAAA;AA7JJ;AA+JE;EACE,qCAAA;AA7JJ;;AAiKA;EACE;IACE,4CAAA;IACA,UAAA;EA9JF;EAgKA;IACE,yCAAA;IACA,UAAA;EA9JF;AACF",sourceRoot:""}]);const a=i},"../../node_modules/css-loader/dist/runtime/api.js":e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n}).join("")},t.i=function(e,n,s){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(s)for(var o=0;o<this.length;o++){var i=this[o][0];null!=i&&(r[i]=!0)}for(var a=0;a<e.length;a++){var l=[].concat(e[a]);s&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},"../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js":e=>{"use strict";function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var s,r,o=[],i=!0,a=!1;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(o.push(s.value),!t||o.length!==t);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(a)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var s=Object.prototype.toString.call(e).slice(8,-1);"Object"===s&&e.constructor&&(s=e.constructor.name);if("Map"===s||"Set"===s)return Array.from(e);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return n(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}e.exports=function(e){var n=t(e,4),s=n[1],r=n[3];if(!r)return s;if("function"==typeof btoa){var o=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),a="/*# ".concat(i," */"),l=r.sources.map(function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")});return[s].concat(l).concat([a]).join("\n")}return[s].join("\n")}},"../../node_modules/css-loader/dist/runtime/getUrl.js":e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},"../../node_modules/events/events.js":e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,s=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var r=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(n,s){function r(n){e.removeListener(t,o),s(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",r),n([].slice.call(arguments))}A(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&A(e,"error",t,n)}(e,r,{once:!0})})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var i=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,s){var r,o,i,c;if(a(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),i=o[t]),void 0===i)i=o[t]=n,++e._eventsCount;else if("function"==typeof i?i=o[t]=s?[n,i]:[i,n]:s?i.unshift(n):i.push(n),(r=l(e))>0&&i.length>r&&!i.warned){i.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=i.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var s={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=u.bind(s);return r.listener=n,s.wrapFn=r,r}function p(e,t,n){var s=e._events;if(void 0===s)return[];var r=s[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(r):h(r,r.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),s=0;s<t;++s)n[s]=e[s];return n}function A(e,t,n,s){if("function"==typeof e.on)s.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function r(o){s.once&&e.removeEventListener(t,r),n(o)})}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");i=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)s(l,this,t);else{var c=l.length,u=h(l,c);for(n=0;n<c;++n)s(u[n],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,s,r,o,i;if(a(t),void 0===(s=this._events))return this;if(void 0===(n=s[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete s[e],s.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(r=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){i=n[o].listener,r=o;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,r),1===n.length&&(s[e]=n[0]),void 0!==s.removeListener&&this.emit("removeListener",e,i||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,s;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var r,o=Object.keys(n);for(s=0;s<o.length;++s)"removeListener"!==(r=o[s])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(s=t.length-1;s>=0;s--)this.removeListener(e,t[s]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},o.prototype.listenerCount=m,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},"../../node_modules/lodash.isequal/index.js":(e,t,n)=>{e=n.nmd(e);var s="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",d="[object Map]",p="[object Number]",m="[object Object]",h="[object Promise]",A="[object RegExp]",g="[object Set]",f="[object String]",_="[object Symbol]",E="[object WeakMap]",b="[object ArrayBuffer]",y="[object DataView]",T=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,v={};v["[object Float32Array]"]=v["[object Float64Array]"]=v["[object Int8Array]"]=v["[object Int16Array]"]=v["[object Int32Array]"]=v["[object Uint8Array]"]=v["[object Uint8ClampedArray]"]=v["[object Uint16Array]"]=v["[object Uint32Array]"]=!0,v[o]=v[i]=v[b]=v[a]=v[y]=v[l]=v[c]=v[u]=v[d]=v[p]=v[m]=v[A]=v[g]=v[f]=v[E]=!1;var C="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,R="object"==typeof self&&self&&self.Object===Object&&self,I=C||R||Function("return this")(),w=t&&!t.nodeType&&t,L=w&&e&&!e.nodeType&&e,O=L&&L.exports===w,P=O&&C.process,N=function(){try{return P&&P.binding&&P.binding("util")}catch(e){}}(),x=N&&N.isTypedArray;function M(e,t){for(var n=-1,s=null==e?0:e.length;++n<s;)if(t(e[n],n,e))return!0;return!1}function k(e){var t=-1,n=Array(e.size);return e.forEach(function(e,s){n[++t]=[s,e]}),n}function D(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var B,j,U,G=Array.prototype,F=Function.prototype,H=Object.prototype,Y=I["__core-js_shared__"],z=F.toString,W=H.hasOwnProperty,V=(B=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+B:"",X=H.toString,Z=RegExp("^"+z.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q=O?I.Buffer:void 0,K=I.Symbol,Q=I.Uint8Array,$=H.propertyIsEnumerable,J=G.splice,ee=K?K.toStringTag:void 0,te=Object.getOwnPropertySymbols,ne=q?q.isBuffer:void 0,se=(j=Object.keys,U=Object,function(e){return j(U(e))}),re=Ne(I,"DataView"),oe=Ne(I,"Map"),ie=Ne(I,"Promise"),ae=Ne(I,"Set"),le=Ne(I,"WeakMap"),ce=Ne(Object,"create"),ue=De(re),de=De(oe),pe=De(ie),me=De(ae),he=De(le),Ae=K?K.prototype:void 0,ge=Ae?Ae.valueOf:void 0;function fe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}function _e(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}function Ee(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}function be(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Ee;++t<n;)this.add(e[t])}function ye(e){var t=this.__data__=new _e(e);this.size=t.size}function Te(e,t){var n=Ue(e),s=!n&&je(e),r=!n&&!s&&Ge(e),o=!n&&!s&&!r&&We(e),i=n||s||r||o,a=i?function(e,t){for(var n=-1,s=Array(e);++n<e;)s[n]=t(n);return s}(e.length,String):[],l=a.length;for(var c in e)!t&&!W.call(e,c)||i&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ke(c,l))||a.push(c);return a}function Se(e,t){for(var n=e.length;n--;)if(Be(e[n][0],t))return n;return-1}function ve(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ee&&ee in Object(e)?function(e){var t=W.call(e,ee),n=e[ee];try{e[ee]=void 0;var s=!0}catch(e){}var r=X.call(e);s&&(t?e[ee]=n:delete e[ee]);return r}(e):function(e){return X.call(e)}(e)}function Ce(e){return ze(e)&&ve(e)==o}function Re(e,t,n,s,r){return e===t||(null==e||null==t||!ze(e)&&!ze(t)?e!=e&&t!=t:function(e,t,n,s,r,u){var h=Ue(e),E=Ue(t),T=h?i:Me(e),S=E?i:Me(t),v=(T=T==o?m:T)==m,C=(S=S==o?m:S)==m,R=T==S;if(R&&Ge(e)){if(!Ge(t))return!1;h=!0,v=!1}if(R&&!v)return u||(u=new ye),h||We(e)?Le(e,t,n,s,r,u):function(e,t,n,s,r,o,i){switch(n){case y:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case b:return!(e.byteLength!=t.byteLength||!o(new Q(e),new Q(t)));case a:case l:case p:return Be(+e,+t);case c:return e.name==t.name&&e.message==t.message;case A:case f:return e==t+"";case d:var u=k;case g:var m=1&s;if(u||(u=D),e.size!=t.size&&!m)return!1;var h=i.get(e);if(h)return h==t;s|=2,i.set(e,t);var E=Le(u(e),u(t),s,r,o,i);return i.delete(e),E;case _:if(ge)return ge.call(e)==ge.call(t)}return!1}(e,t,T,n,s,r,u);if(!(1&n)){var I=v&&W.call(e,"__wrapped__"),w=C&&W.call(t,"__wrapped__");if(I||w){var L=I?e.value():e,O=w?t.value():t;return u||(u=new ye),r(L,O,n,s,u)}}if(!R)return!1;return u||(u=new ye),function(e,t,n,s,r,o){var i=1&n,a=Oe(e),l=a.length,c=Oe(t),u=c.length;if(l!=u&&!i)return!1;var d=l;for(;d--;){var p=a[d];if(!(i?p in t:W.call(t,p)))return!1}var m=o.get(e);if(m&&o.get(t))return m==t;var h=!0;o.set(e,t),o.set(t,e);var A=i;for(;++d<l;){var g=e[p=a[d]],f=t[p];if(s)var _=i?s(f,g,p,t,e,o):s(g,f,p,e,t,o);if(!(void 0===_?g===f||r(g,f,n,s,o):_)){h=!1;break}A||(A="constructor"==p)}if(h&&!A){var E=e.constructor,b=t.constructor;E==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof E&&E instanceof E&&"function"==typeof b&&b instanceof b||(h=!1)}return o.delete(e),o.delete(t),h}(e,t,n,s,r,u)}(e,t,n,s,Re,r))}function Ie(e){return!(!Ye(e)||function(e){return!!V&&V in e}(e))&&(Fe(e)?Z:T).test(De(e))}function we(e){if(n=(t=e)&&t.constructor,s="function"==typeof n&&n.prototype||H,t!==s)return se(e);var t,n,s,r=[];for(var o in Object(e))W.call(e,o)&&"constructor"!=o&&r.push(o);return r}function Le(e,t,n,s,r,o){var i=1&n,a=e.length,l=t.length;if(a!=l&&!(i&&l>a))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var u=-1,d=!0,p=2&n?new be:void 0;for(o.set(e,t),o.set(t,e);++u<a;){var m=e[u],h=t[u];if(s)var A=i?s(h,m,u,t,e,o):s(m,h,u,e,t,o);if(void 0!==A){if(A)continue;d=!1;break}if(p){if(!M(t,function(e,t){if(i=t,!p.has(i)&&(m===e||r(m,e,n,s,o)))return p.push(t);var i})){d=!1;break}}else if(m!==h&&!r(m,h,n,s,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function Oe(e){return function(e,t,n){var s=t(e);return Ue(e)?s:function(e,t){for(var n=-1,s=t.length,r=e.length;++n<s;)e[r+n]=t[n];return e}(s,n(e))}(e,Ve,xe)}function Pe(e,t){var n,s,r=e.__data__;return("string"==(s=typeof(n=t))||"number"==s||"symbol"==s||"boolean"==s?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function Ne(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ie(n)?n:void 0}fe.prototype.clear=function(){this.__data__=ce?ce(null):{},this.size=0},fe.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},fe.prototype.get=function(e){var t=this.__data__;if(ce){var n=t[e];return n===s?void 0:n}return W.call(t,e)?t[e]:void 0},fe.prototype.has=function(e){var t=this.__data__;return ce?void 0!==t[e]:W.call(t,e)},fe.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ce&&void 0===t?s:t,this},_e.prototype.clear=function(){this.__data__=[],this.size=0},_e.prototype.delete=function(e){var t=this.__data__,n=Se(t,e);return!(n<0)&&(n==t.length-1?t.pop():J.call(t,n,1),--this.size,!0)},_e.prototype.get=function(e){var t=this.__data__,n=Se(t,e);return n<0?void 0:t[n][1]},_e.prototype.has=function(e){return Se(this.__data__,e)>-1},_e.prototype.set=function(e,t){var n=this.__data__,s=Se(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this},Ee.prototype.clear=function(){this.size=0,this.__data__={hash:new fe,map:new(oe||_e),string:new fe}},Ee.prototype.delete=function(e){var t=Pe(this,e).delete(e);return this.size-=t?1:0,t},Ee.prototype.get=function(e){return Pe(this,e).get(e)},Ee.prototype.has=function(e){return Pe(this,e).has(e)},Ee.prototype.set=function(e,t){var n=Pe(this,e),s=n.size;return n.set(e,t),this.size+=n.size==s?0:1,this},be.prototype.add=be.prototype.push=function(e){return this.__data__.set(e,s),this},be.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.clear=function(){this.__data__=new _e,this.size=0},ye.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ye.prototype.get=function(e){return this.__data__.get(e)},ye.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.set=function(e,t){var n=this.__data__;if(n instanceof _e){var s=n.__data__;if(!oe||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ee(s)}return n.set(e,t),this.size=n.size,this};var xe=te?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,s=null==e?0:e.length,r=0,o=[];++n<s;){var i=e[n];t(i,n,e)&&(o[r++]=i)}return o}(te(e),function(t){return $.call(e,t)}))}:function(){return[]},Me=ve;function ke(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||S.test(e))&&e>-1&&e%1==0&&e<t}function De(e){if(null!=e){try{return z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Be(e,t){return e===t||e!=e&&t!=t}(re&&Me(new re(new ArrayBuffer(1)))!=y||oe&&Me(new oe)!=d||ie&&Me(ie.resolve())!=h||ae&&Me(new ae)!=g||le&&Me(new le)!=E)&&(Me=function(e){var t=ve(e),n=t==m?e.constructor:void 0,s=n?De(n):"";if(s)switch(s){case ue:return y;case de:return d;case pe:return h;case me:return g;case he:return E}return t});var je=Ce(function(){return arguments}())?Ce:function(e){return ze(e)&&W.call(e,"callee")&&!$.call(e,"callee")},Ue=Array.isArray;var Ge=ne||function(){return!1};function Fe(e){if(!Ye(e))return!1;var t=ve(e);return t==u||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function He(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Ye(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ze(e){return null!=e&&"object"==typeof e}var We=x?function(e){return function(t){return e(t)}}(x):function(e){return ze(e)&&He(e.length)&&!!v[ve(e)]};function Ve(e){return null!=(t=e)&&He(t.length)&&!Fe(t)?Te(e):we(e);var t}e.exports=function(e,t){return Re(e,t)}},"../../node_modules/lodash.keys/index.js":e=>{var t=9007199254740991,n="[object Arguments]",s="[object Function]",r="[object GeneratorFunction]",o=/^(?:0|[1-9]\d*)$/;var i,a,l=Object.prototype,c=l.hasOwnProperty,u=l.toString,d=l.propertyIsEnumerable,p=(i=Object.keys,a=Object,function(e){return i(a(e))});function m(e,t){var s=g(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&f(e)}(e)&&c.call(e,"callee")&&(!d.call(e,"callee")||u.call(e)==n)}(e)?function(e,t){for(var n=-1,s=Array(e);++n<e;)s[n]=t(n);return s}(e.length,String):[],r=s.length,o=!!r;for(var i in e)!t&&!c.call(e,i)||o&&("length"==i||A(i,r))||s.push(i);return s}function h(e){if(n=(t=e)&&t.constructor,s="function"==typeof n&&n.prototype||l,t!==s)return p(e);var t,n,s,r=[];for(var o in Object(e))c.call(e,o)&&"constructor"!=o&&r.push(o);return r}function A(e,n){return!!(n=null==n?t:n)&&("number"==typeof e||o.test(e))&&e>-1&&e%1==0&&e<n}var g=Array.isArray;function f(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=t}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?u.call(e):"";return t==s||t==r}(e)}e.exports=function(e){return f(e)?m(e):h(e)}},"../../node_modules/lodash.merge/index.js":(e,t,n)=>{e=n.nmd(e);var s="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Function]",a="[object Object]",l=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u[o]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u[i]=u["[object Map]"]=u["[object Number]"]=u[a]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1;var d="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,p="object"==typeof self&&self&&self.Object===Object&&self,m=d||p||Function("return this")(),h=t&&!t.nodeType&&t,A=h&&e&&!e.nodeType&&e,g=A&&A.exports===h,f=g&&d.process,_=function(){try{var e=A&&A.require&&A.require("util").types;return e||f&&f.binding&&f.binding("util")}catch(e){}}(),E=_&&_.isTypedArray;var b,y,T,S=Array.prototype,v=Function.prototype,C=Object.prototype,R=m["__core-js_shared__"],I=v.toString,w=C.hasOwnProperty,L=(b=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||""))?"Symbol(src)_1."+b:"",O=C.toString,P=I.call(Object),N=RegExp("^"+I.call(w).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),x=g?m.Buffer:void 0,M=m.Symbol,k=m.Uint8Array,D=x?x.allocUnsafe:void 0,B=(y=Object.getPrototypeOf,T=Object,function(e){return y(T(e))}),j=Object.create,U=C.propertyIsEnumerable,G=S.splice,F=M?M.toStringTag:void 0,H=function(){try{var e=he(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Y=x?x.isBuffer:void 0,z=Math.max,W=Date.now,V=he(m,"Map"),X=he(Object,"create"),Z=function(){function e(){}return function(t){if(!Re(t))return{};if(j)return j(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}function K(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}function Q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}function $(e){var t=this.__data__=new K(e);this.size=t.size}function J(e,t){var n=ye(e),s=!n&&be(e),r=!n&&!s&&Se(e),o=!n&&!s&&!r&&we(e),i=n||s||r||o,a=i?function(e,t){for(var n=-1,s=Array(e);++n<e;)s[n]=t(n);return s}(e.length,String):[],l=a.length;for(var c in e)!t&&!w.call(e,c)||i&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ae(c,l))||a.push(c);return a}function ee(e,t,n){(void 0!==n&&!Ee(e[t],n)||void 0===n&&!(t in e))&&se(e,t,n)}function te(e,t,n){var s=e[t];w.call(e,t)&&Ee(s,n)&&(void 0!==n||t in e)||se(e,t,n)}function ne(e,t){for(var n=e.length;n--;)if(Ee(e[n][0],t))return n;return-1}function se(e,t,n){"__proto__"==t&&H?H(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}q.prototype.clear=function(){this.__data__=X?X(null):{},this.size=0},q.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},q.prototype.get=function(e){var t=this.__data__;if(X){var n=t[e];return n===s?void 0:n}return w.call(t,e)?t[e]:void 0},q.prototype.has=function(e){var t=this.__data__;return X?void 0!==t[e]:w.call(t,e)},q.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=X&&void 0===t?s:t,this},K.prototype.clear=function(){this.__data__=[],this.size=0},K.prototype.delete=function(e){var t=this.__data__,n=ne(t,e);return!(n<0)&&(n==t.length-1?t.pop():G.call(t,n,1),--this.size,!0)},K.prototype.get=function(e){var t=this.__data__,n=ne(t,e);return n<0?void 0:t[n][1]},K.prototype.has=function(e){return ne(this.__data__,e)>-1},K.prototype.set=function(e,t){var n=this.__data__,s=ne(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this},Q.prototype.clear=function(){this.size=0,this.__data__={hash:new q,map:new(V||K),string:new q}},Q.prototype.delete=function(e){var t=me(this,e).delete(e);return this.size-=t?1:0,t},Q.prototype.get=function(e){return me(this,e).get(e)},Q.prototype.has=function(e){return me(this,e).has(e)},Q.prototype.set=function(e,t){var n=me(this,e),s=n.size;return n.set(e,t),this.size+=n.size==s?0:1,this},$.prototype.clear=function(){this.__data__=new K,this.size=0},$.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},$.prototype.get=function(e){return this.__data__.get(e)},$.prototype.has=function(e){return this.__data__.has(e)},$.prototype.set=function(e,t){var n=this.__data__;if(n instanceof K){var s=n.__data__;if(!V||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new Q(s)}return n.set(e,t),this.size=n.size,this};var re,oe=function(e,t,n){for(var s=-1,r=Object(e),o=n(e),i=o.length;i--;){var a=o[re?i:++s];if(!1===t(r[a],a,r))break}return e};function ie(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":F&&F in Object(e)?function(e){var t=w.call(e,F),n=e[F];try{e[F]=void 0;var s=!0}catch(e){}var r=O.call(e);s&&(t?e[F]=n:delete e[F]);return r}(e):function(e){return O.call(e)}(e)}function ae(e){return Ie(e)&&ie(e)==o}function le(e){return!(!Re(e)||function(e){return!!L&&L in e}(e))&&(ve(e)?N:l).test(function(e){if(null!=e){try{return I.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function ce(e){if(!Re(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ge(e),n=[];for(var s in e)("constructor"!=s||!t&&w.call(e,s))&&n.push(s);return n}function ue(e,t,n,s,r){e!==t&&oe(t,function(o,i){if(r||(r=new $),Re(o))!function(e,t,n,s,r,o,i){var l=fe(e,n),c=fe(t,n),u=i.get(c);if(u)return void ee(e,n,u);var d=o?o(l,c,n+"",e,t,i):void 0,p=void 0===d;if(p){var m=ye(c),h=!m&&Se(c),A=!m&&!h&&we(c);d=c,m||h||A?ye(l)?d=l:Ie(b=l)&&Te(b)?d=function(e,t){var n=-1,s=e.length;t||(t=Array(s));for(;++n<s;)t[n]=e[n];return t}(l):h?(p=!1,d=function(e,t){if(t)return e.slice();var n=e.length,s=D?D(n):new e.constructor(n);return e.copy(s),s}(c,!0)):A?(p=!1,g=c,f=!0?(_=g.buffer,E=new _.constructor(_.byteLength),new k(E).set(new k(_)),E):g.buffer,d=new g.constructor(f,g.byteOffset,g.length)):d=[]:function(e){if(!Ie(e)||ie(e)!=a)return!1;var t=B(e);if(null===t)return!0;var n=w.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&I.call(n)==P}(c)||be(c)?(d=l,be(l)?d=function(e){return function(e,t,n,s){var r=!n;n||(n={});var o=-1,i=t.length;for(;++o<i;){var a=t[o],l=s?s(n[a],e[a],a,n,e):void 0;void 0===l&&(l=e[a]),r?se(n,a,l):te(n,a,l)}return n}(e,Le(e))}(l):Re(l)&&!ve(l)||(d=function(e){return"function"!=typeof e.constructor||ge(e)?{}:Z(B(e))}(c))):p=!1}var g,f,_,E;var b;p&&(i.set(c,d),r(d,c,s,o,i),i.delete(c));ee(e,n,d)}(e,t,i,n,ue,s,r);else{var l=s?s(fe(e,i),o,i+"",e,t,r):void 0;void 0===l&&(l=o),ee(e,i,l)}},Le)}function de(e,t){return _e(function(e,t,n){return t=z(void 0===t?e.length-1:t,0),function(){for(var s=arguments,r=-1,o=z(s.length-t,0),i=Array(o);++r<o;)i[r]=s[t+r];r=-1;for(var a=Array(t+1);++r<t;)a[r]=s[r];return a[t]=n(i),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,a)}}(e,t,Ne),e+"")}var pe=H?function(e,t){return H(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Ne;function me(e,t){var n,s,r=e.__data__;return("string"==(s=typeof(n=t))||"number"==s||"symbol"==s||"boolean"==s?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function he(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return le(n)?n:void 0}function Ae(e,t){var n=typeof e;return!!(t=null==t?r:t)&&("number"==n||"symbol"!=n&&c.test(e))&&e>-1&&e%1==0&&e<t}function ge(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||C)}function fe(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var _e=function(e){var t=0,n=0;return function(){var s=W(),r=16-(s-n);if(n=s,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(pe);function Ee(e,t){return e===t||e!=e&&t!=t}var be=ae(function(){return arguments}())?ae:function(e){return Ie(e)&&w.call(e,"callee")&&!U.call(e,"callee")},ye=Array.isArray;function Te(e){return null!=e&&Ce(e.length)&&!ve(e)}var Se=Y||function(){return!1};function ve(e){if(!Re(e))return!1;var t=ie(e);return t==i||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ce(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Re(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ie(e){return null!=e&&"object"==typeof e}var we=E?function(e){return function(t){return e(t)}}(E):function(e){return Ie(e)&&Ce(e.length)&&!!u[ie(e)]};function Le(e){return Te(e)?J(e,!0):ce(e)}var Oe,Pe=(Oe=function(e,t,n){ue(e,t,n)},de(function(e,t){var n=-1,s=t.length,r=s>1?t[s-1]:void 0,o=s>2?t[2]:void 0;for(r=Oe.length>3&&"function"==typeof r?(s--,r):void 0,o&&function(e,t,n){if(!Re(n))return!1;var s=typeof t;return!!("number"==s?Te(n)&&Ae(t,n.length):"string"==s&&t in n)&&Ee(n[t],e)}(t[0],t[1],o)&&(r=s<3?void 0:r,s=1),e=Object(e);++n<s;){var i=t[n];i&&Oe(e,i,n,r)}return e}));function Ne(e){return e}e.exports=Pe},"../../node_modules/lodash.xor/index.js":(e,t,n)=>{var s="__lodash_hash_undefined__",r=9007199254740991,o=/^\[object .+?Constructor\]$/,i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,a="object"==typeof self&&self&&self.Object===Object&&self,l=i||a||Function("return this")();function c(e,t){return!!(e?e.length:0)&&function(e,t,n){if(t!=t)return function(e,t,n,s){var r=e.length,o=n+(s?1:-1);for(;s?o--:++o<r;)if(t(e[o],o,e))return o;return-1}(e,p,n);var s=n-1,r=e.length;for(;++s<r;)if(e[s]===t)return s;return-1}(e,t,0)>-1}function u(e,t,n){for(var s=-1,r=e?e.length:0;++s<r;)if(n(t,e[s]))return!0;return!1}function d(e,t){for(var n=-1,s=t.length,r=e.length;++n<s;)e[r+n]=t[n];return e}function p(e){return e!=e}function m(e,t){return e.has(t)}function h(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var A,g=Array.prototype,f=Function.prototype,_=Object.prototype,E=l["__core-js_shared__"],b=(A=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||""))?"Symbol(src)_1."+A:"",y=f.toString,T=_.hasOwnProperty,S=_.toString,v=RegExp("^"+y.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=g.splice,R=Math.max,I=G(l,"Map"),w=G(l,"Set"),L=G(Object,"create");function O(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}function N(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}function x(e){var t=-1,n=e?e.length:0;for(this.__data__=new N;++t<n;)this.add(e[t])}function M(e,t){for(var n=e.length;n--;)if(z(e[n][0],t))return n;return-1}function k(e,t,n,s){var r,o=-1,i=c,a=!0,l=e.length,d=[],p=t.length;if(!l)return d;n&&(t=function(e,t){for(var n=-1,s=e?e.length:0,r=Array(s);++n<s;)r[n]=t(e[n],n,e);return r}(t,(r=n,function(e){return r(e)}))),s?(i=u,a=!1):t.length>=200&&(i=m,a=!1,t=new x(t));e:for(;++o<l;){var h=e[o],A=n?n(h):h;if(h=s||0!==h?h:0,a&&A==A){for(var g=p;g--;)if(t[g]===A)continue e;d.push(h)}else i(t,A,s)||d.push(h)}return d}function D(e){if(!Z(e)||(t=e,b&&b in t))return!1;var t,n=X(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?v:o;return n.test(function(e){if(null!=e){try{return y.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function B(e,t,n){for(var s=-1,r=e.length;++s<r;)var o=o?d(k(o,e[s],t,n),k(e[s],o,t,n)):e[s];return o&&o.length?function(e,t,n){var s=-1,r=c,o=e.length,i=!0,a=[],l=a;if(n)i=!1,r=u;else if(o>=200){var d=t?null:j(e);if(d)return h(d);i=!1,r=m,l=new x}else l=t?[]:a;e:for(;++s<o;){var p=e[s],A=t?t(p):p;if(p=n||0!==p?p:0,i&&A==A){for(var g=l.length;g--;)if(l[g]===A)continue e;t&&l.push(A),a.push(p)}else r(l,A,n)||(l!==a&&l.push(A),a.push(p))}return a}(o,t,n):[]}O.prototype.clear=function(){this.__data__=L?L(null):{}},O.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},O.prototype.get=function(e){var t=this.__data__;if(L){var n=t[e];return n===s?void 0:n}return T.call(t,e)?t[e]:void 0},O.prototype.has=function(e){var t=this.__data__;return L?void 0!==t[e]:T.call(t,e)},O.prototype.set=function(e,t){return this.__data__[e]=L&&void 0===t?s:t,this},P.prototype.clear=function(){this.__data__=[]},P.prototype.delete=function(e){var t=this.__data__,n=M(t,e);return!(n<0)&&(n==t.length-1?t.pop():C.call(t,n,1),!0)},P.prototype.get=function(e){var t=this.__data__,n=M(t,e);return n<0?void 0:t[n][1]},P.prototype.has=function(e){return M(this.__data__,e)>-1},P.prototype.set=function(e,t){var n=this.__data__,s=M(n,e);return s<0?n.push([e,t]):n[s][1]=t,this},N.prototype.clear=function(){this.__data__={hash:new O,map:new(I||P),string:new O}},N.prototype.delete=function(e){return U(this,e).delete(e)},N.prototype.get=function(e){return U(this,e).get(e)},N.prototype.has=function(e){return U(this,e).has(e)},N.prototype.set=function(e,t){return U(this,e).set(e,t),this},x.prototype.add=x.prototype.push=function(e){return this.__data__.set(e,s),this},x.prototype.has=function(e){return this.__data__.has(e)};var j=w&&1/h(new w([,-0]))[1]==1/0?function(e){return new w(e)}:function(){};function U(e,t){var n,s,r=e.__data__;return("string"==(s=typeof(n=t))||"number"==s||"symbol"==s||"boolean"==s?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function G(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return D(n)?n:void 0}var F,H,Y=(F=function(e){return B(function(e,t){for(var n=-1,s=e?e.length:0,r=0,o=[];++n<s;){var i=e[n];t(i,n,e)&&(o[r++]=i)}return o}(e,V))},H=R(void 0===H?F.length-1:H,0),function(){for(var e=arguments,t=-1,n=R(e.length-H,0),s=Array(n);++t<n;)s[t]=e[H+t];t=-1;for(var r=Array(H+1);++t<H;)r[t]=e[t];return r[H]=s,function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(F,this,r)});function z(e,t){return e===t||e!=e&&t!=t}function W(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!X(e)}function V(e){return function(e){return!!e&&"object"==typeof e}(e)&&W(e)}function X(e){var t=Z(e)?S.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Z(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=Y},"../../node_modules/rrweb-player/dist/style.css":(e,t,n)=>{"use strict";var s=n("../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),r=n.n(s),o=n("../../node_modules/style-loader/dist/runtime/styleDomAPI.js"),i=n.n(o),a=n("../../node_modules/style-loader/dist/runtime/getTarget.js"),l=n.n(a),c=n("../../node_modules/style-loader/dist/runtime/insertStyleElement.js"),u=n.n(c),d=n("../../node_modules/css-loader/dist/cjs.js!../../node_modules/rrweb-player/dist/style.css"),p={styleTagTransform:function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}},setAttributes:function(e){var t=n.nc;t&&e.setAttribute("nonce",t)},insert:function(e){var t=l()("head");if(!t)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");t.appendChild(e)}};p.domAPI=i(),p.insertStyleElement=u();r()(d.default,p),d.default&&d.default.locals&&d.default.locals},"./src/index.scss":(e,t,n)=>{"use strict";var s=n("../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),r=n.n(s),o=n("../../node_modules/style-loader/dist/runtime/styleDomAPI.js"),i=n.n(o),a=n("../../node_modules/style-loader/dist/runtime/getTarget.js"),l=n.n(a),c=n("../../node_modules/style-loader/dist/runtime/insertStyleElement.js"),u=n.n(c),d=n("../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./src/index.scss"),p={styleTagTransform:function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}},setAttributes:function(e){var t=n.nc;t&&e.setAttribute("nonce",t)},insert:function(e){var t=l()("head");if(!t)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");t.appendChild(e)}};p.domAPI=i(),p.insertStyleElement=u();r()(d.default,p),d.default&&d.default.locals&&d.default.locals},"../../node_modules/style-loader/dist/runtime/getTarget.js":e=>{"use strict";var t={};e.exports=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}},"../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js":e=>{"use strict";var t=[];function n(e){for(var n=-1,s=0;s<t.length;s++)if(t[s].identifier===e){n=s;break}return n}function s(e,s){for(var o={},i=[],a=0;a<e.length;a++){var l=e[a],c=s.base?l[0]+s.base:l[0],u=o[c]||0,d="".concat(c," ").concat(u);o[c]=u+1;var p=n(d),m={css:l[1],media:l[2],sourceMap:l[3]};-1!==p?(t[p].references++,t[p].updater(m)):t.push({identifier:d,updater:r(m,s),references:1}),i.push(d)}return i}function r(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n.update(e=t)}else n.remove()}}e.exports=function(e,r){var o=s(e=e||[],r=r||{});return function(e){e=e||[];for(var i=0;i<o.length;i++){var a=n(o[i]);t[a].references--}for(var l=s(e,r),c=0;c<o.length;c++){var u=n(o[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}o=l}}},"../../node_modules/style-loader/dist/runtime/insertStyleElement.js":e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t),t}},"../../node_modules/style-loader/dist/runtime/styleDomAPI.js":e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var s=n.css,r=n.media,o=n.sourceMap;r?e.setAttribute("media",r):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(s+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(s,e)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},"../../node_modules/to-json-schema/lib/helpers.js":(e,t,n)=>{"use strict";var s=n("../../node_modules/lodash.isequal/index.js"),r=n("../../node_modules/lodash.xor/index.js"),o=n("../../node_modules/lodash.keys/index.js"),i=n("../../node_modules/to-json-schema/lib/jsonSchemaHelpers.js"),a=i.types,l=i.FORMAT_REGEXPS,c=i.isFormat,u={stringFormats:o(l),isFormat:c,typeNames:["integer","number","string","array","object","boolean","null","date"],getType:function(e){return u.typeNames.find(function(t){return a[t](e)})},mergeSchemaObjs:function(e,t){var n=o(e),i=o(t);if(!s(n,i)){if("array"===e.type&&"array"===t.type&&s(r(n,i),["items"])){var a=n.length>i.length?t:e,l=n.length>i.length?e:t;if(o(a).reduce(function(e,t){return s(a[t],l[t])&&e},!0))return a}if("object"!==e.type||"object"!==t.type)return null}for(var c={},d=0,p=n.length;d<p;d++){var m=n[d];if("object"===u.getType(e[m])){var h=u.mergeSchemaObjs(e[m],t[m]);if(h)c[m]=h;else{if("object"===e.type||"object"===t.type)return{type:"object"};if("items"!==m||"array"!==e.type||"array"!==t.type)return null}}else if("type"===m)if(e[m]!==t[m]){if(!("integer"===e[m]&&"number"===t[m]||"number"===e[m]&&"integer"===t[m]))return null;c[m]="number"}else c[m]=e[m];else{if(!s(e[m],t[m]))return null;c[m]=e[m]}}return c}};e.exports=u},"../../node_modules/to-json-schema/lib/index.js":(e,t,n)=>{"use strict";function s(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}var r=n("../../node_modules/lodash.merge/index.js"),o=n("../../node_modules/lodash.isequal/index.js"),i=n("../../node_modules/to-json-schema/lib/helpers.js"),a={required:!1,postProcessFnc:null,strings:{detectFormat:!0,preProcessFnc:null},arrays:{mode:"all"},objects:{preProcessFnc:null,postProcessFnc:null,additionalProperties:!0}},l=["hostname","host-name","alpha","alphanumeric","regex","regexp","pattern"],c=i.stringFormats.filter(function(e){return l.indexOf(e)<0});var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=r({},a,t),this.getObjectSchemaDefault=this.getObjectSchemaDefault.bind(this),this.getStringSchemaDefault=this.getStringSchemaDefault.bind(this),this.objectPostProcessDefault=this.objectPostProcessDefault.bind(this),this.commmonPostProcessDefault=this.commmonPostProcessDefault.bind(this),this.objectPostProcessDefault=this.objectPostProcessDefault.bind(this)}var t,n,l;return t=e,(n=[{key:"getCommonArrayItemSchema",value:function(e){var t=this,n=e.map(function(e){return t.getSchema(e)});return n.reduce(function(e,t){return i.mergeSchemaObjs(e,t)},n.pop())}},{key:"getObjectSchemaDefault",value:function(e){var t=this,n={type:"object"},s=Object.keys(e);return s.length>0&&(n.properties=s.reduce(function(n,s){return n[s]=t.getSchema(e[s]),n},{})),n}},{key:"getObjectSchema",value:function(e){return this.options.objects.preProcessFnc?this.options.objects.preProcessFnc(e,this.getObjectSchemaDefault):this.getObjectSchemaDefault(e)}},{key:"getArraySchemaMerging",value:function(e){var t={type:"array"},n=function(e){return function(e){for(var t,n=0,s=e.length;n<s;n++){var r=e[n];if(n>0&&("integer"===r&&"number"===t?r="number":"number"===r&&"integer"===t&&(t="number"),t!==r))return null;t=r}return t}(e.map(function(e){return i.getType(e)}))}(e);if(n)if(t.items={type:n},"integer"!==n&&"number"!==n){var s=this.getCommonArrayItemSchema(e);s&&(t.items=s)}else this.options.required&&(t.items.required=!0);return t}},{key:"getArraySchemaNoMerging",value:function(e){var t={type:"array"};return e.length>0&&(t.items=this.getSchema(e[0])),t}},{key:"getArraySchemaTuple",value:function(e){var t=this,n={type:"array"};return e.length>0&&(n.items=e.map(function(e){return t.getSchema(e)})),n}},{key:"getArraySchemaUniform",value:function(e){var t=this.getArraySchemaNoMerging(e);if(e.length>1)for(var n=1;n<e.length;n++)if(!o(t.items,this.getSchema(e[n])))throw new Error("Invalid schema, incompatible array items");return t}},{key:"getArraySchema",value:function(e){if(0===e.length)return{type:"array"};switch(this.options.arrays.mode){case"all":return this.getArraySchemaMerging(e);case"first":return this.getArraySchemaNoMerging(e);case"uniform":return this.getArraySchemaUniform(e);case"tuple":return this.getArraySchemaTuple(e);default:throw new Error("Unknown array mode option '".concat(this.options.arrays.mode,"'"))}}},{key:"getStringSchemaDefault",value:function(e){var t={type:"string"};if(!this.options.strings.detectFormat)return t;var n=c.findIndex(function(t){return i.isFormat(e,t)});return n>=0&&(t.format=c[n]),t}},{key:"getStringSchema",value:function(e){return this.options.strings.preProcessFnc?this.options.strings.preProcessFnc(e,this.getStringSchemaDefault):this.getStringSchemaDefault(e)}},{key:"commmonPostProcessDefault",value:function(e,t,n){return this.options.required?r({},t,{required:!0}):t}},{key:"objectPostProcessDefault",value:function(e,t){return!1===this.options.objects.additionalProperties&&Object.getOwnPropertyNames(t).length>0?r({},e,{additionalProperties:!1}):e}},{key:"getSchema",value:function(e){var t,n=i.getType(e);if(!n)throw new Error("Type of value couldn't be determined");switch(n){case"object":t=this.getObjectSchema(e);break;case"array":t=this.getArraySchema(e);break;case"string":t=this.getStringSchema(e);break;default:t={type:n}}return t=this.options.postProcessFnc?this.options.postProcessFnc(n,t,e,this.commmonPostProcessDefault):this.commmonPostProcessDefault(n,t,e),"object"===n&&(t=this.options.objects.postProcessFnc?this.options.objects.postProcessFnc(t,e,this.objectPostProcessDefault):this.objectPostProcessDefault(t,e)),t}}])&&s(t.prototype,n),l&&s(t,l),e}();e.exports=function(e,t){return new u(t).getSchema(e)}},"../../node_modules/to-json-schema/lib/jsonSchemaHelpers.js":e=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}var n={string:function(e){return"string"==typeof e},number:function(e){return"number"==typeof e&&isFinite(e)},integer:function(e){return"number"==typeof e&&e%1==0},boolean:function(e){return"boolean"==typeof e},array:function(e){return e instanceof Array},null:function(e){return null===e},date:function(e){return e instanceof Date},any:function(e){return!0},object:function(e){return e&&"object"===t(e)&&!(e instanceof Array)&&!(e instanceof Date)}},s={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,email:/^(?:[\w!#$%&'*+-/=?^`{|}~]+\.)*[\w!#$%&'*+-/=?^`{|}~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+-.]*:[^\s]*$/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/,"utc-millisec":function(e){return"string"==typeof e&&parseFloat(e)===parseInt(e,10)&&!isNaN(e)},regex:function(e){var t=!0;try{new RegExp(e)}catch(e){t=!1}return t},style:/\s*(.+?):\s*([^;]+);?/g,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/};s.regexp=s.regex,s.pattern=s.regex,s.ipv4=s["ip-address"];e.exports={types:n,isFormat:function(e,t){if("string"==typeof e&&void 0!==s[t]){if(s[t]instanceof RegExp)return s[t].test(e);if("function"==typeof s[t])return s[t](e)}return!0},FORMAT_REGEXPS:s}},"./src/config/constants.ts":(e,t,n)=>{"use strict";n.d(t,{CONTINUOUS_DEBUGGING_TIMEOUT:()=>f,DEBUG_SESSION_MAX_DURATION_SECONDS:()=>_,DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE:()=>A,OTEL_IGNORE_URLS:()=>b,OTEL_MP_SAMPLE_TRACE_RATIO:()=>s,PACKAGE_VERSION_EXPORT:()=>E,SESSION_ADD_EVENT:()=>h,SESSION_AUTO_CREATED:()=>m,SESSION_CONTINUOUS_DEBUGGING_PROP_NAME:()=>o,SESSION_ID_PROP_NAME:()=>r,SESSION_PROP_NAME:()=>l,SESSION_RESPONSE:()=>g,SESSION_STARTED_EVENT:()=>c,SESSION_STATE_PROP_NAME:()=>i,SESSION_STOPPED_EVENT:()=>u,SESSION_SUBSCRIBE_EVENT:()=>d,SESSION_TYPE_PROP_NAME:()=>a,SESSION_UNSUBSCRIBE_EVENT:()=>p});const s=.15,r="multiplayer-session-id",o="multiplayer-session-continuous-debugging",i="multiplayer-session-state",a="multiplayer-session-type",l="multiplayer-session-data",c="debug-session:started",u="debug-session:stopped",d="debug-session:subscribe",p="debug-session:unsubscribe",m="debug-session:auto-created",h="debug-session:rrweb:add-event",A=1e5,g="multiplayer-debug-session-response",f=6e4,_=630,E="1.2.0",b=[/.*\/v1\/traces/,/.*\/v0\/radar\/debug-sessions\/start$/,/.*\/v0\/radar\/debug-sessions\/[^/]+\/stop$/,/.*\/v0\/radar\/debug-sessions\/[^/]+\/cancel$/,/.*\/v0\/radar\/continuous-debug-sessions\/start$/,/.*\/v0\/radar\/continuous-debug-sessions\/[^/]+\/save$/,/.*\/v0\/radar\/continuous-debug-sessions\/[^/]+\/cancel$/,/.*\/v0\/radar\/remote-debug-session\/check$/]},"./src/config/defaults.ts":(e,t,n)=>{"use strict";n.d(t,{BASE_CONFIG:()=>d,DEFAULT_MASKING_CONFIG:()=>c,DEFAULT_WIDGET_TEXT_CONFIG:()=>u});var s=n("../session-recorder-common/dist/esm/index-browser.js"),r=n("./src/types/index.ts"),o=n("./src/config/constants.ts");const{mask:i,sensitiveFields:a,sensitiveHeaders:l}=s.SessionRecorderSdk,c={maskAllInputs:!0,isMaskingEnabled:!0,maskBody:i(a),maskHeaders:i(l),maskBodyFieldsList:a,maskHeadersList:l,headersToInclude:[],headersToExclude:[]},u={initialTitleWithContinuous:"Encountered an issue?",initialTitleWithoutContinuous:"Encountered an issue?",initialDescriptionWithContinuous:"Record your session so we can see the problem and fix it faster.",initialDescriptionWithoutContinuous:"Record your session so we can see the problem and fix it faster.",continuousRecordingLabel:"Continuous recording",startRecordingButtonText:"Start recording",finalTitle:"Done recording?",finalDescription:"You can also add a quick note with extra context, expectations, or questions. Thank you!",commentPlaceholder:"Add a message...",saveButtonText:"Submit recording",cancelButtonText:"Cancel recording",continuousOverlayTitle:"Save time, skip the reproductions",continuousOverlayDescription:"We keep a rolling record of your recent activity. If something doesn’t work as expected, just save the recording and continue working. No need to worry about exceptions and errors - we automatically save recordings for those!",saveLastSnapshotButtonText:"Save recording",submitDialogTitle:"Save recording",submitDialogSubtitle:"This full-stack session recording will be saved directly to your selected Multiplayer project. All data is automatically correlated end-to-end.",submitDialogCommentLabel:"You can also add context, comments, or notes.",submitDialogCommentPlaceholder:"Add a message...",submitDialogSubmitText:"Save",submitDialogCancelText:"Cancel"},d={apiKey:"",version:"",application:"",environment:"",showWidget:!0,showContinuousRecording:!0,widgetButtonPlacement:r.WidgetButtonPlacement.bottomRight,usePostMessageFallback:!1,apiBaseUrl:s.MULTIPLAYER_BASE_API_URL,exporterEndpoint:s.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL,recordCanvas:!1,schemifyDocSpanPayload:!0,ignoreUrls:[],propagateTraceHeaderCorsUrls:[],sampleTraceRatio:o.OTEL_MP_SAMPLE_TRACE_RATIO,maxCapturingHttpPayloadSize:o.DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE,captureBody:!0,captureHeaders:!0,masking:c,widgetTextOverrides:u}},"./src/config/index.ts":(e,t,n)=>{"use strict";n.d(t,{BASE_CONFIG:()=>r.BASE_CONFIG,CONTINUOUS_DEBUGGING_TIMEOUT:()=>s.CONTINUOUS_DEBUGGING_TIMEOUT,DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE:()=>s.DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE,DEFAULT_WIDGET_TEXT_CONFIG:()=>r.DEFAULT_WIDGET_TEXT_CONFIG,OTEL_IGNORE_URLS:()=>s.OTEL_IGNORE_URLS,SESSION_ADD_EVENT:()=>s.SESSION_ADD_EVENT,SESSION_AUTO_CREATED:()=>s.SESSION_AUTO_CREATED,SESSION_CONTINUOUS_DEBUGGING_PROP_NAME:()=>s.SESSION_CONTINUOUS_DEBUGGING_PROP_NAME,SESSION_ID_PROP_NAME:()=>s.SESSION_ID_PROP_NAME,SESSION_PROP_NAME:()=>s.SESSION_PROP_NAME,SESSION_RESPONSE:()=>s.SESSION_RESPONSE,SESSION_STARTED_EVENT:()=>s.SESSION_STARTED_EVENT,SESSION_STATE_PROP_NAME:()=>s.SESSION_STATE_PROP_NAME,SESSION_STOPPED_EVENT:()=>s.SESSION_STOPPED_EVENT,SESSION_SUBSCRIBE_EVENT:()=>s.SESSION_SUBSCRIBE_EVENT,SESSION_TYPE_PROP_NAME:()=>s.SESSION_TYPE_PROP_NAME,SESSION_UNSUBSCRIBE_EVENT:()=>s.SESSION_UNSUBSCRIBE_EVENT,getSessionRecorderConfig:()=>o.getSessionRecorderConfig});var s=n("./src/config/constants.ts"),r=n("./src/config/defaults.ts"),o=(n("./src/config/validators.ts"),n("./src/config/masking.ts"),n("./src/config/session-recorder.ts"))},"./src/config/masking.ts":(e,t,n)=>{"use strict";n.d(t,{getMaskingConfig:()=>c});var s=n("./src/config/defaults.ts"),r=n("./src/config/validators.ts"),o=n("../session-recorder-common/dist/esm/index-browser.js");const{mask:i,sensitiveFields:a,sensitiveHeaders:l}=o.SessionRecorderSdk,c=e=>{var t,n,o,c;const u=s.DEFAULT_MASKING_CONFIG;if("object"!=typeof e)return u;const d=(0,r.isValidArray)(e.maskHeadersList,l),p=(0,r.isValidArray)(e.maskBodyFieldsList,a);return{maskAllInputs:(0,r.isValidBoolean)(e.maskAllInputs,null===(t=u.maskAllInputs)||void 0===t||t),maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,maskInputOptions:e.maskInputOptions&&"object"==typeof e.maskInputOptions?e.maskInputOptions:void 0,maskInput:(0,r.isValidFunction)(e.maskInput,void 0),maskText:(0,r.isValidFunction)(e.maskText,void 0),maskConsoleEvent:(0,r.isValidFunction)(e.maskConsoleEvent,void 0),maskHeadersList:d,maskBodyFieldsList:p,headersToInclude:(0,r.isValidArray)(e.headersToInclude,null!==(n=u.headersToInclude)&&void 0!==n?n:[]),headersToExclude:(0,r.isValidArray)(e.headersToExclude,null!==(o=u.headersToExclude)&&void 0!==o?o:[]),isMaskingEnabled:(0,r.isValidBoolean)(e.isMaskingEnabled,null===(c=u.isMaskingEnabled)||void 0===c||c),maskBody:(0,r.isValidFunction)(e.maskBody,i(p)),maskHeaders:(0,r.isValidFunction)(e.maskHeaders,i(d))}}},"./src/config/session-recorder.ts":(e,t,n)=>{"use strict";n.d(t,{getSessionRecorderConfig:()=>a});var s=n("./src/types/index.ts"),r=n("./src/config/defaults.ts"),o=n("./src/config/masking.ts"),i=n("./src/config/validators.ts");const a=e=>{return e?{apiKey:(0,i.isValidString)(e.apiKey,r.BASE_CONFIG.apiKey),version:(0,i.isValidString)(e.version,r.BASE_CONFIG.version),application:(0,i.isValidString)(e.application,r.BASE_CONFIG.application),environment:(0,i.isValidString)(e.environment,r.BASE_CONFIG.environment),exporterEndpoint:(0,i.isValidString)(e.exporterEndpoint,r.BASE_CONFIG.exporterEndpoint),apiBaseUrl:(0,i.isValidString)(e.apiBaseUrl,r.BASE_CONFIG.apiBaseUrl),usePostMessageFallback:(0,i.isValidBoolean)(e.usePostMessageFallback,r.BASE_CONFIG.usePostMessageFallback),showWidget:(0,i.isValidBoolean)(e.showWidget,r.BASE_CONFIG.showWidget),showContinuousRecording:(0,i.isValidBoolean)(e.showContinuousRecording,r.BASE_CONFIG.showContinuousRecording),recordCanvas:(0,i.isValidBoolean)(e.recordCanvas,r.BASE_CONFIG.recordCanvas),widgetButtonPlacement:(0,i.isValidEnum)(e.widgetButtonPlacement,r.BASE_CONFIG.widgetButtonPlacement,Object.values(s.WidgetButtonPlacement)),ignoreUrls:(0,i.isValidArray)(e.ignoreUrls,r.BASE_CONFIG.ignoreUrls),sampleTraceRatio:(0,i.isValidNumber)(e.sampleTraceRatio,r.BASE_CONFIG.sampleTraceRatio),propagateTraceHeaderCorsUrls:e.propagateTraceHeaderCorsUrls||r.BASE_CONFIG.propagateTraceHeaderCorsUrls,schemifyDocSpanPayload:(0,i.isValidBoolean)(e.schemifyDocSpanPayload,r.BASE_CONFIG.schemifyDocSpanPayload),maxCapturingHttpPayloadSize:(0,i.isValidNumber)(e.maxCapturingHttpPayloadSize,r.BASE_CONFIG.maxCapturingHttpPayloadSize),captureBody:(0,i.isValidBoolean)(e.captureBody,r.BASE_CONFIG.captureBody),captureHeaders:(0,i.isValidBoolean)(e.captureHeaders,r.BASE_CONFIG.captureHeaders),masking:(0,o.getMaskingConfig)(e.masking),widgetTextOverrides:(t=e.widgetTextOverrides,n=r.BASE_CONFIG.widgetTextOverrides,t&&"object"==typeof t?{initialTitleWithContinuous:(0,i.isValidString)(t.initialTitleWithContinuous,n.initialTitleWithContinuous),initialTitleWithoutContinuous:(0,i.isValidString)(t.initialTitleWithoutContinuous,n.initialTitleWithoutContinuous),initialDescriptionWithContinuous:(0,i.isValidString)(t.initialDescriptionWithContinuous,n.initialDescriptionWithContinuous),initialDescriptionWithoutContinuous:(0,i.isValidString)(t.initialDescriptionWithoutContinuous,n.initialDescriptionWithoutContinuous),continuousRecordingLabel:(0,i.isValidString)(t.continuousRecordingLabel,n.continuousRecordingLabel),startRecordingButtonText:(0,i.isValidString)(t.startRecordingButtonText,n.startRecordingButtonText),finalTitle:(0,i.isValidString)(t.finalTitle,n.finalTitle),finalDescription:(0,i.isValidString)(t.finalDescription,n.finalDescription),commentPlaceholder:(0,i.isValidString)(t.commentPlaceholder,n.commentPlaceholder),saveButtonText:(0,i.isValidString)(t.saveButtonText,n.saveButtonText),cancelButtonText:(0,i.isValidString)(t.cancelButtonText,n.cancelButtonText),continuousOverlayTitle:(0,i.isValidString)(t.continuousOverlayTitle,n.continuousOverlayTitle),continuousOverlayDescription:(0,i.isValidString)(t.continuousOverlayDescription,n.continuousOverlayDescription),saveLastSnapshotButtonText:(0,i.isValidString)(t.saveLastSnapshotButtonText,n.saveLastSnapshotButtonText),submitDialogTitle:(0,i.isValidString)(t.submitDialogTitle,n.submitDialogTitle),submitDialogSubtitle:(0,i.isValidString)(t.submitDialogSubtitle,n.submitDialogSubtitle),submitDialogCommentLabel:(0,i.isValidString)(t.submitDialogCommentLabel,n.submitDialogCommentLabel),submitDialogCommentPlaceholder:(0,i.isValidString)(t.submitDialogCommentPlaceholder,n.submitDialogCommentPlaceholder),submitDialogSubmitText:(0,i.isValidString)(t.submitDialogSubmitText,n.submitDialogSubmitText),submitDialogCancelText:(0,i.isValidString)(t.submitDialogCancelText,n.submitDialogCancelText)}:n)}:r.BASE_CONFIG;var t,n}},"./src/config/validators.ts":(e,t,n)=>{"use strict";n.d(t,{isValidArray:()=>i,isValidBoolean:()=>o,isValidEnum:()=>a,isValidFunction:()=>l,isValidNumber:()=>r,isValidString:()=>s});const s=(e,t)=>"string"==typeof e?e.trim():t,r=(e,t)=>"number"==typeof e?e:t,o=(e,t)=>"boolean"==typeof e?e:t,i=(e,t)=>Array.isArray(e)?e:t,a=(e,t,n)=>n.includes(e)?e:t,l=(e,t)=>"function"==typeof e?e:t},"./src/eventBus.ts":(e,t,n)=>{"use strict";n.d(t,{recorderEventBus:()=>r});var s=n("../../node_modules/events/events.js");const r=new s.EventEmitter},"./src/listeners.ts":(e,t,n)=>{"use strict";n.d(t,{setupListeners:()=>o});var s=n("./src/services/messaging.service.ts"),r=n("../session-recorder-common/dist/esm/index-browser.js");function o(e){s.default.sendMessage("ready",{session:e.session,sessionState:e.sessionState}),s.default.on("init",t=>{e.init(t)}),s.default.on("start",t=>{e.start(r.SessionType.PLAIN,t)}),s.default.on("end",t=>{e.stop(t)}),s.default.on("pause",()=>{e.pause()}),s.default.on("resume",()=>{e.resume()}),s.default.on("cancel",()=>{e.cancel()}),s.default.on("toggle-continuous-debugging",t=>{t.enabled?e.start(r.SessionType.CONTINUOUS,t.session):e.stop()}),s.default.on("save-continuous-debug-session",()=>{e.save()})}},"./src/otel/helpers.ts":(e,t,n)=>{"use strict";n.d(t,{extractResponseBody:()=>a,getExporterEndpoint:()=>l,headersToObject:()=>i,processHttpPayload:()=>o});var s=n("../session-recorder-common/dist/esm/index-browser.js");const{schemify:r}=s.SessionRecorderSdk;function o(e,t,n){if(!function(e){return e.startsWith(s.MULTIPLAYER_TRACE_DOC_PREFIX)||e.startsWith(s.MULTIPLAYER_TRACE_DEBUG_PREFIX)||e.startsWith(s.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX)}(n.spanContext().traceId))return;const{requestBody:o,responseBody:i}=function(e,t,n){var o,i;const{captureBody:a,masking:l,schemifyDocSpanPayload:c}=t,u=n.spanContext().traceId;if(!a)return{};let{requestBody:d,responseBody:p}=e;return null!=d&&(d=JSON.parse(JSON.stringify(d))),null!=p&&(p=JSON.parse(JSON.stringify(p))),u.startsWith(s.MULTIPLAYER_TRACE_DOC_PREFIX)&&c&&(d=d&&r(d),p=p&&r(p)),(u.startsWith(s.MULTIPLAYER_TRACE_DEBUG_PREFIX)||u.startsWith(s.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX))&&l.isMaskingEnabled&&(d=d&&(null===(o=l.maskBody)||void 0===o?void 0:o.call(l,d,n)),p=p&&(null===(i=l.maskBody)||void 0===i?void 0:i.call(l,p,n))),"string"!=typeof d&&(d=JSON.stringify(d)),"string"!=typeof p&&(p=JSON.stringify(p)),{requestBody:(null==d?void 0:d.length)?d:void 0,responseBody:(null==p?void 0:p.length)?p:void 0}}(e,t,n),{requestHeaders:a,responseHeaders:l}=function(e,t,n){var s,r,o,i,a;const{captureHeaders:l,masking:c}=t;if(!l)return{};let{requestHeaders:u={},responseHeaders:d={}}=e;if((null===(s=c.headersToInclude)||void 0===s?void 0:s.length)||(null===(r=c.headersToExclude)||void 0===r?void 0:r.length)){if(c.headersToInclude){const e={},t={};for(const n of c.headersToInclude)u[n]&&(e[n]=u[n]),d[n]&&(t[n]=d[n]);u=e,d=t}if(null===(o=c.headersToExclude)||void 0===o?void 0:o.length)for(const e of c.headersToExclude)delete u[e],delete d[e]}else null!=u&&(u=JSON.parse(JSON.stringify(u))),null!=d&&(d=JSON.parse(JSON.stringify(d)));const p=(null===(i=c.maskHeaders)||void 0===i?void 0:i.call(c,u,n))||u,m=(null===(a=c.maskHeaders)||void 0===a?void 0:a.call(c,d,n))||d,h="string"==typeof p?p:JSON.stringify(p),A="string"==typeof m?m:JSON.stringify(m);return{requestHeaders:(null==h?void 0:h.length)?h:void 0,responseHeaders:(null==A?void 0:A.length)?A:void 0}}(e,t,n);o&&n.setAttribute(s.ATTR_MULTIPLAYER_HTTP_REQUEST_BODY,o),i&&n.setAttribute(s.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY,i),a&&n.setAttribute(s.ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS,a),l&&n.setAttribute(s.ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS,l)}function i(e){const t={};if(!e)return t;if(e instanceof Headers)e.forEach((e,n)=>{t[n]=e});else if(Array.isArray(e))for(const[n,s]of e)"string"==typeof n&&"string"==typeof s&&(t[n]=s);else if("object"==typeof e&&!Array.isArray(e))for(const[n,s]of Object.entries(e))"string"==typeof n&&"string"==typeof s&&(t[n]=s);return t}async function a(e){if(!e.body)return null;try{if(e.body instanceof ReadableStream){if(e.bodyUsed)return null;return e.clone().text()}return JSON.stringify(e.body)}catch(e){return console.warn("[DEBUGGER_LIB] Failed to extract response body:",e),null}}const l=e=>{if(e&&(()=>{try{const t=new URL(e);return"/"!==t.pathname&&""!==t.pathname}catch(e){return!1}})())return e;return`${new URL(e).origin}/v1/traces`}},"./src/otel/index.ts":(e,t,n)=>{"use strict";n.d(t,{TracerBrowserSDK:()=>m});var s=n("../../node_modules/@opentelemetry/resources/build/esm/ResourceImpl.js"),r=n("../../node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js"),o=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/WebTracerProvider.js"),i=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/platform/browser/export/BatchSpanProcessor.js"),a=n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js"),l=n("../../node_modules/@opentelemetry/instrumentation/build/esm/autoLoader.js"),c=n("../../node_modules/@opentelemetry/auto-instrumentations-web/build/esm/index.js"),u=n("../session-recorder-common/dist/esm/index-browser.js"),d=n("./src/config/index.ts"),p=n("./src/otel/helpers.ts");class m{constructor(){this.allowedElements=new Set(["A","BUTTON"]),this.sessionId=""}setSessionId(e,t=u.SessionType.PLAIN){this.sessionId=e,this.idGenerator.setSessionId(e,t)}init(e){this.config=e;const{application:t,version:n,environment:m}=this.config;this.idGenerator=new u.SessionRecorderIdGenerator,this.exporter=new u.SessionRecorderBrowserTraceExporter({apiKey:e.apiKey,url:(0,p.getExporterEndpoint)(e.exporterEndpoint),usePostMessageFallback:e.usePostMessageFallback}),this.tracerProvider=new o.WebTracerProvider({resource:(0,s.resourceFromAttributes)({[a.SEMRESATTRS_SERVICE_NAME]:t,[a.SEMRESATTRS_SERVICE_VERSION]:n,[a.SEMRESATTRS_DEPLOYMENT_ENVIRONMENT]:m}),idGenerator:this.idGenerator,sampler:new u.SessionRecorderTraceIdRatioBasedSampler(this.config.sampleTraceRatio),spanProcessors:[this._getSpanSessionIdProcessor(),new i.BatchSpanProcessor(this.exporter)]}),this.tracerProvider.register({propagator:new r.W3CTraceContextPropagator}),(0,l.registerInstrumentations)({tracerProvider:this.tracerProvider,instrumentations:[(0,c.getWebAutoInstrumentations)({"@opentelemetry/instrumentation-xml-http-request":{clearTimingResources:!0,ignoreUrls:[...d.OTEL_IGNORE_URLS,...this.config.ignoreUrls||[]],propagateTraceHeaderCorsUrls:e.propagateTraceHeaderCorsUrls,applyCustomAttributesOnSpan:(e,t)=>{if(!this.config)return;const{captureBody:n,captureHeaders:s}=this.config;try{if(!n&&!s)return;const r=t.networkRequest.requestBody,o=t.networkRequest.responseBody,i=t.networkRequest.requestHeaders||{},a={requestBody:r,responseBody:o,requestHeaders:i,responseHeaders:t.networkRequest.responseHeaders||{}};(0,p.processHttpPayload)(a,this.config,e)}catch(e){console.error("[DEBUGGER_LIB] Failed to capture xml-http payload",e)}}},"@opentelemetry/instrumentation-fetch":{clearTimingResources:!0,ignoreUrls:[...d.OTEL_IGNORE_URLS,...this.config.ignoreUrls||[]],propagateTraceHeaderCorsUrls:e.propagateTraceHeaderCorsUrls,applyCustomAttributesOnSpan:async(e,t,n)=>{if(!this.config)return;const{captureBody:s,captureHeaders:r}=this.config;try{if(!s&&!r)return;const o=t.body,i=(0,p.headersToObject)(t.headers),a=(0,p.headersToObject)(n instanceof Response?n.headers:void 0);let l=null;n instanceof Response&&n.body&&(l=await(0,p.extractResponseBody)(n));const c={requestBody:o,responseBody:l,requestHeaders:i,responseHeaders:a};(0,p.processHttpPayload)(c,this.config,e)}catch(e){console.error("[DEBUGGER_LIB] Failed to capture fetch payload",e)}}},"@opentelemetry/instrumentation-user-interaction":{shouldPreventSpanCreation:(e,t,n)=>{if(n.parentSpanId)return!0;let s="";return this.allowedElements.has(t.tagName)&&(s=String(t.textContent||t.ariaLabel||"").trim()),n.setAttribute("target.innerText",s),!1}}})]})}start(e,t){if(!this.tracerProvider)throw new Error("Configuration not initialized. Call init() before start().");this.setSessionId(e,t)}stop(){if(!this.tracerProvider)throw new Error("Configuration not initialized. Call init() before start().");this.setSessionId("")}setApiKey(e){if(!this.exporter)throw new Error("Configuration not initialized. Call init() before setApiKey().");this.exporter.setApiKey(e)}_getSpanSessionIdProcessor(){return{forceFlush:()=>Promise.resolve(),onEnd:()=>{},shutdown:()=>Promise.resolve(),onStart:e=>{var t;(null===(t=this.sessionId)||void 0===t?void 0:t.length)&&e.setAttribute(u.ATTR_MULTIPLAYER_SESSION_ID,this.sessionId)}}}}},"./src/patch/index.ts":(e,t,n)=>{"use strict";n("./src/patch/xhr.ts")},"./src/patch/xhr.ts":(e,t,n)=>{"use strict";n.d(t,{setMaxCapturingHttpPayloadSize:()=>c,setShouldRecordHttpData:()=>u});var s=n("./src/utils/type-utils.ts"),r=n("./src/utils/request-utils.ts"),o=n("./src/config/index.ts");let i=!0,a=!0;let l=o.DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE;const c=e=>{l=e},u=(e,t)=>{i=t,a=t};function d({body:e,url:t}){if((0,s.isNullish)(e))return null;if((0,s.isString)(e))return e;if((0,s.isDocument)(e))return e.textContent;if((0,s.isFormData)(e))return(0,r.formDataToQuery)(e);if((0,s.isObject)(e))try{return JSON.stringify(e)}catch(e){return"[XHR] Failed to stringify response object"}return`[XHR] Cannot read body of type ${toString.call(e)}`}!function(e){const t=XMLHttpRequest.prototype.open;e.open=function(e,n,s=!0,r,o){const c=this,u={},p={},m=c.setRequestHeader.bind(c);c.setRequestHeader=(e,t)=>(p[e]=t,m(e,t)),i&&(u.requestHeaders=p);const h=c.send.bind(c);c.send=e=>{{const t=d({body:e,url:n});(null==t?void 0:t.length)&&new Blob([t]).size<=l&&(u.requestBody=t)}return h(e)},c.addEventListener("readystatechange",()=>{if(c.readyState!==c.DONE)return;const e={};c.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(t=>{const n=t.split(": "),s=n.shift(),r=n.join(": ");s&&(e[s]=r)}),a&&(u.responseHeaders=e);{const e=d({body:c.response,url:n});(null==e?void 0:e.length)&&new Blob([e]).size<=l&&(u.responseBody=e)}}),c.networkRequest=u,t.call(c,e,n,s,r,o)}}(XMLHttpRequest.prototype)},"./src/rrweb/exporter.ts":(e,t,n)=>{"use strict";n.d(t,{RrwebEventExporter:()=>a});var s=n("../../node_modules/socket.io-client/build/esm/index.js"),r=n("./src/eventBus.ts"),o=n("./src/services/messaging.service.ts"),i=n("./src/config/index.ts");class a{constructor(e){this.options=e,this.socket=null,this.queue=[],this.isConnecting=!1,this.isConnected=!1,this.usePostMessage=!1,this.attempts=0,this.sessionId=null}init(){this.isConnecting||this.isConnected||(this.attempts++,this.isConnecting=!0,this.usePostMessage=!1,this.socket=(0,s.default)(this.options.socketUrl,{path:"/v0/radar/ws",auth:{"x-api-key":this.options.apiKey},reconnectionAttempts:2,transports:["websocket"]}),this.socket.on("ready",()=>{this.isConnecting=!1,this.isConnected=!0,this.usePostMessage=!1,this.flushQueue()}),this.socket.on("disconnect",e=>{this.isConnecting=!1,this.isConnected=!1}),this.socket.on("connect_error",e=>{this.isConnecting=!1,this.isConnected=!1,this.checkReconnectionAttempts()}),this.socket.on(i.SESSION_STOPPED_EVENT,e=>{r.recorderEventBus.emit(i.SESSION_STOPPED_EVENT,e),this.unsubscribeFromSession()}),this.socket.on(i.SESSION_AUTO_CREATED,e=>{r.recorderEventBus.emit(i.SESSION_AUTO_CREATED,e)}))}checkReconnectionAttempts(){this.attempts>=2&&(this.usePostMessage=!!this.options.usePostMessageFallback,this.flushQueue())}sendViaPostMessage(e){o.default.sendMessage("rrweb-event",e)}flushQueue(){for(var e,t;this.queue.length>0&&(this.usePostMessage||(null===(e=this.socket)||void 0===e?void 0:e.connected));){const e=this.queue.shift();e&&(this.usePostMessage?this.sendViaPostMessage(e.data):(null===(t=this.socket)||void 0===t?void 0:t.connected)&&this.socket.emit(e.name,e.data))}}unsubscribeFromSession(){var e;const t={debugSessionId:this.sessionId};this.usePostMessage?o.default.sendMessage("socket-emit",{event:i.SESSION_UNSUBSCRIBE_EVENT,data:t}):(null===(e=this.socket)||void 0===e?void 0:e.connected)&&this.socket.emit(i.SESSION_UNSUBSCRIBE_EVENT,t)}send(e){var t;this.usePostMessage?this.sendViaPostMessage(e):(null===(t=this.socket)||void 0===t?void 0:t.connected)?this.socket.emit(i.SESSION_ADD_EVENT,e):(this.queue.push({data:e,name:i.SESSION_ADD_EVENT}),this.init())}subscribeToSession(e){var t;this.sessionId=e.shortId||e._id;const n={projectId:e.project,workspaceId:e.workspace,debugSessionId:this.sessionId,sessionType:e.creationType};this.usePostMessage?this.sendViaPostMessage({type:i.SESSION_SUBSCRIBE_EVENT,...n}):(null===(t=this.socket)||void 0===t?void 0:t.connected)?this.socket.emit(i.SESSION_SUBSCRIBE_EVENT,n):(this.queue.push({data:n,name:i.SESSION_SUBSCRIBE_EVENT}),this.init())}close(){var e;this.usePostMessage&&this.sendViaPostMessage({type:"close"}),(null===(e=this.socket)||void 0===e?void 0:e.connected)&&setTimeout(()=>{var e;this.unsubscribeFromSession(),this.attempts=0,this.isConnected=!1,this.isConnecting=!1,null===(e=this.socket)||void 0===e||e.disconnect(),this.socket=null},500)}}},"./src/rrweb/index.ts":(e,t,n)=>{"use strict";n.d(t,{RecorderBrowserSDK:()=>u});var s=n("../../node_modules/@rrweb/packer/dist/packer.js"),r=n("../../node_modules/rrweb/dist/rrweb.js"),o=n("../session-recorder-common/dist/esm/index-browser.js"),i=n("../../node_modules/@rrweb/rrweb-plugin-console-record/dist/rrweb-plugin-console-record.js"),a=n("./src/utils/index.ts"),l=n("./src/config/index.ts"),c=n("./src/rrweb/exporter.ts");class u{get startedAt(){return this._startedAt}set startedAt(e){this._startedAt=e}get stoppedAt(){return this._stoppedAt}set stoppedAt(e){this._stoppedAt=e}constructor(){this.restartTimeout=null,this._startedAt="",this._stoppedAt=""}init(e){this.config=e,this.exporter=new c.RrwebEventExporter({apiKey:e.apiKey,socketUrl:e.apiBaseUrl||"",usePostMessageFallback:Boolean(e.usePostMessageFallback)})}start(e,t){var n;if(!this.config)throw new Error("Configuration not initialized. Call init() before start().");const c=t===o.SessionType.CONTINUOUS?l.CONTINUOUS_DEBUGGING_TIMEOUT:0;this.startedAt=(new Date).toISOString();const u=this.config.masking||{},d={maskAllInputs:null===(n=u.maskAllInputs)||void 0===n||n,sampling:{canvas:5},recordCanvas:this.config.recordCanvas,dataURLOptions:{type:"image/webp",quality:.1},plugins:[(0,i.getRecordConsolePlugin)({level:["log","error"]})]};u.maskInputOptions&&(d.maskInputOptions=u.maskInputOptions),u.maskTextClass&&(d.maskTextClass=u.maskTextClass),u.maskTextSelector&&(d.maskTextSelector=u.maskTextSelector),"function"==typeof u.maskInput&&(d.maskInputFn=u.maskInput),"function"==typeof u.maskText&&(d.maskTextFn=u.maskText),this.stopFn=(0,r.record)({...d,emit:async n=>{if(this.exporter){if("function"==typeof u.maskConsoleEvent&&(0,a.isConsoleEvent)(n)){const{data:e}=n,t=u.maskConsoleEvent(e.payload);n.data={...e,payload:t}}const r=(0,s.pack)(n);this.stoppedAt=new Date(n.timestamp).toISOString(),this.exporter.send({event:r,eventType:n.type,timestamp:n.timestamp,debugSessionId:e,debugSessionType:t})}}}),r.record.takeFullSnapshot(),c>0&&(this.restartTimeout=setTimeout(()=>{r.record.takeFullSnapshot()},c))}async restart(e,t){var n;null===(n=this.stopFn)||void 0===n||n.call(this),this.start(e,t)}clearRestartTimeout(){this.restartTimeout&&(clearTimeout(this.restartTimeout),this.restartTimeout=null)}stop(){var e,t;null===(e=this.stopFn)||void 0===e||e.call(this),null===(t=this.exporter)||void 0===t||t.close(),this.clearRestartTimeout()}subscribeToSession(e){var t;null===(t=this.exporter)||void 0===t||t.subscribeToSession(e)}}},"./src/services/api.service.ts":(e,t,n)=>{"use strict";n.d(t,{ApiService:()=>r});var s=n("./src/services/messaging.service.ts");class r{constructor(){this.config={apiKey:"",apiBaseUrl:"",exporterEndpoint:""}}init(e){this.config={...this.config,...e}}updateConfigs(e){this.config={...this.config,...e}}async startSession(e,t){return this.makeRequest("/debug-sessions/start","POST",e,t)}async stopSession(e,t){return this.makeRequest(`/debug-sessions/${e}/stop`,"PATCH",t)}async cancelSession(e){return this.makeRequest(`/debug-sessions/${e}/cancel`,"DELETE")}async startContinuousDebugSession(e,t){return this.makeRequest("/continuous-debug-sessions/start","POST",e,t)}async saveContinuousDebugSession(e,t,n){return this.makeRequest(`/continuous-debug-sessions/${e}/save`,"POST",t,n)}async stopContinuousDebugSession(e){return this.makeRequest(`/continuous-debug-sessions/${e}/cancel`,"DELETE")}async checkRemoteSession(e,t){return this.makeRequest("/remote-debug-session/check","POST",e,t)}async makeRequest(e,t,n,s){const r=`${this.config.apiBaseUrl}/v0/radar${e}`,o={method:t,body:n?JSON.stringify(n):null,headers:{"Content-Type":"application/json",...this.config.apiKey&&{"X-Api-Key":this.config.apiKey}}};try{const e=await fetch(r,{...o,credentials:"include",signal:s});if(!e.ok)throw new Error("Network response was not ok: "+e.statusText);return 204===e.status?null:await e.json()}catch(e){if("AbortError"===(null==e?void 0:e.name))throw new Error("Request aborted");return this.handleRequestError(e,{url:r,params:o})}}async handleRequestError(e,t){if(!this.config.usePostMessageFallback)throw new Error("Error making request: "+e.message);try{return await s.default.sendMessagePromise("request",t)}catch(e){throw new Error("Error making request: "+e.message)}}}},"./src/services/messaging.service.ts":(e,t,n)=>{"use strict";n.d(t,{default:()=>s});const s=new class{constructor(){this.promiseIdCounter=0,this.promiseMap=new Map,this.messagingServices=new Map,this.isBrowser="undefined"!=typeof window,this.setupMessageListener()}generatePromiseId(){return"promise_"+ ++this.promiseIdCounter}sendMessage(e,t){if(!this.isBrowser)return;const n={type:"MULTIPLAYER_SESSION_DEBUGGER_LIB",action:e,payload:t};window.postMessage(n,"*")}sendMessagePromise(e,t){if(!this.isBrowser)return Promise.reject(new Error("Not in browser environment"));const n=this.generatePromiseId(),s=new Promise((e,t)=>{this.promiseMap.set(n,{resolve:e,reject:t})}),r={type:"MULTIPLAYER_SESSION_DEBUGGER_LIB",action:e,payload:t,promiseId:n};return window.postMessage(r,"*"),s}on(e,t){const n=this.messagingServices.get(e)||[];n.push(t),this.messagingServices.set(e,n)}off(e,t){if(!t)return void this.messagingServices.delete(e);const n=this.messagingServices.get(e);if(n){const s=n.indexOf(t);-1!==s&&(n.splice(s,1),0===n.length?this.messagingServices.delete(e):this.messagingServices.set(e,n))}}setupMessageListener(){this.isBrowser&&window.addEventListener("message",e=>{const{type:t,action:n,payload:s,promiseId:r}=e.data;if("MULTIPLAYER_SESSION_DEBUGGER_EXTENSION"!==t||!n)return;if(r&&this.promiseMap.has(r)){const{resolve:e,reject:t}=this.promiseMap.get(r),{error:n,response:o}=s;return n?t(n):e(o),void this.promiseMap.delete(r)}const o=this.messagingServices.get(n);o&&o.forEach(e=>e(s))})}}},"./src/sessionRecorder.ts":(e,t,n)=>{"use strict";n.d(t,{SessionRecorder:()=>A});var s=n("./src/otel/index.ts"),r=n("./src/rrweb/index.ts"),o=n("./src/utils/index.ts"),i=n("./src/types/index.ts"),a=n("./src/config/index.ts"),l=n("./src/patch/xhr.ts"),c=n("./src/eventBus.ts"),u=n("./src/sessionWidget/index.ts"),d=n("./src/services/messaging.service.ts"),p=n("./src/services/api.service.ts"),m=(n("./src/index.scss"),n("../session-recorder-common/dist/esm/index-browser.js")),h=n("./src/sessionWidget/buttonStateConfigs.ts");class A{get sessionId(){return this._sessionId}set sessionId(e){this._sessionId=e,(0,o.setStoredItem)(a.SESSION_ID_PROP_NAME,e)}get sessionType(){return this._sessionType}set sessionType(e){this._sessionType=e;const t=e===m.SessionType.CONTINUOUS;this._sessionWidget.updateContinuousRecordingState(t),d.default.sendMessage("continuous-debugging",t),(0,o.setStoredItem)(a.SESSION_TYPE_PROP_NAME,e)}get continuousRecording(){return this.sessionType===m.SessionType.CONTINUOUS}get sessionState(){return this._sessionState||i.SessionState.stopped}set sessionState(e){this._sessionState=e,this._sessionWidget.updateState(this._sessionState,this.continuousRecording),d.default.sendMessage("state-change",this._sessionState),(0,o.setStoredItem)(a.SESSION_STATE_PROP_NAME,e)}get session(){return this._session}set session(e){this._session=e,(0,o.setStoredItem)(a.SESSION_PROP_NAME,this._session)}get sessionAttributes(){return this._sessionAttributes||{}}set sessionAttributes(e){this._sessionAttributes=e}get error(){return this._sessionWidget.error}set error(e){this._sessionWidget.error=e}get sessionWidgetButtonElement(){return this._sessionWidget.recorderButton}constructor(){var e;this._isInitialized=!1,this._apiService=new p.ApiService,this._tracer=new s.TracerBrowserSDK,this._recorder=new r.RecorderBrowserSDK,this._sessionWidget=new u.SessionWidget,this._startRequestController=null,this._sessionId=null,this._sessionType=m.SessionType.PLAIN,this._sessionState=null,this._session=null,this._sessionAttributes=null;const t=(0,o.getStoredItem)(a.SESSION_PROP_NAME,!0),n=(0,o.getStoredItem)(a.SESSION_ID_PROP_NAME),i=(0,o.getStoredItem)(a.SESSION_STATE_PROP_NAME),l=(0,o.getStoredItem)(a.SESSION_TYPE_PROP_NAME),c=(0,o.getStoredItem)(a.SESSION_CONTINUOUS_DEBUGGING_PROP_NAME,!0);(0,o.isSessionActive)(t,c)?(this.session=t,this.sessionId=n,this.sessionType=l,this.sessionState=i):(this.session=null,this.sessionId=null,this.sessionState=null,this.sessionType=m.SessionType.PLAIN),this._configs={...a.BASE_CONFIG,apiKey:(null===(e=this.session)||void 0===e?void 0:e.tempApiKey)||""}}init(e){this._configs=(0,a.getSessionRecorderConfig)({...this._configs,...e}),this._isInitialized=!0,this._checkOperation("init"),(0,l.setMaxCapturingHttpPayloadSize)(this._configs.maxCapturingHttpPayloadSize||a.DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE),(0,l.setShouldRecordHttpData)(!this._configs.captureBody,this._configs.captureHeaders),this._tracer.init(this._configs),this._apiService.init(this._configs),this._sessionWidget.init(this._configs),this._configs.apiKey&&this._recorder.init(this._configs),!this.sessionId||this.sessionState!==i.SessionState.started&&this.sessionState!==i.SessionState.paused||this._start(),this._registerWidgetEvents(),this._registerSessionLimitReach(),this._registerSessionAutoCreation(),d.default.sendMessage("state-change",this.sessionState)}async save(){try{if(this._checkOperation("save"),!this.continuousRecording||!this._configs.showContinuousRecording)return;this._sessionWidget.updateSaveContinuousDebugSessionState(h.ContinuousRecordingSaveButtonState.SAVING);const e=await this._apiService.saveContinuousDebugSession(this.sessionId,{sessionAttributes:this.sessionAttributes,resourceAttributes:(0,o.getNavigatorInfo)(),stoppedAt:this._recorder.stoppedAt,name:this.sessionAttributes.userName?`${this.sessionAttributes.userName}'s session on ${(0,o.getFormattedDate)(Date.now(),{month:"short",day:"numeric"})}`:`Session on ${(0,o.getFormattedDate)(Date.now())}`});this._sessionWidget.updateSaveContinuousDebugSessionState(h.ContinuousRecordingSaveButtonState.SAVED);const t=null==e?void 0:e.url;return this._sessionWidget.showToast({type:"success",message:"Your session was saved",button:{text:"Open session",url:t}},5e3),e}catch(e){this.error=e.message,this._sessionWidget.updateSaveContinuousDebugSessionState(h.ContinuousRecordingSaveButtonState.ERROR)}finally{setTimeout(()=>{this._sessionWidget.updateSaveContinuousDebugSessionState(h.ContinuousRecordingSaveButtonState.IDLE)},3e3)}}start(e=m.SessionType.PLAIN,t){this._checkOperation("start"),e!==m.SessionType.CONTINUOUS||this._configs.showContinuousRecording||(e=m.SessionType.PLAIN),this.sessionType=e,this._startRequestController=new AbortController,t?this._setupSessionAndStart(t,!0):this._createSessionAndStart()}async stop(e){try{if(this._checkOperation("stop"),this._stop(),this.continuousRecording)await this._apiService.stopContinuousDebugSession(this.sessionId),this.sessionType=m.SessionType.PLAIN;else{const t={sessionAttributes:{comment:e},stoppedAt:this._recorder.stoppedAt},n=await this._apiService.stopSession(this.sessionId,t);c.recorderEventBus.emit(a.SESSION_RESPONSE,n)}this._clearSession()}catch(e){this.error=e.message}}async pause(){try{this._checkOperation("pause"),this._pause()}catch(e){this.error=e.message}}async resume(){try{this._checkOperation("resume"),this._resume()}catch(e){this.error=e.message}}async cancel(){try{this._checkOperation("cancel"),this._stop(),this.continuousRecording?(await this._apiService.stopContinuousDebugSession(this.sessionId),this.sessionType=m.SessionType.PLAIN):await this._apiService.cancelSession(this.sessionId),this._clearSession()}catch(e){this.error=e.message}}setSessionAttributes(e){this._sessionAttributes=e}set recordingButtonClickHandler(e){this._sessionWidget.buttonClickExternalHandler=e}async checkRemoteContinuousSession(e){if(this._checkOperation("autoStartRemoteContinuousSession"),!this._configs.showContinuousRecording)return;const t={sessionAttributes:{...this.sessionAttributes,...(null==e?void 0:e.sessionAttributes)||{}},resourceAttributes:{...(0,o.getNavigatorInfo)(),...(null==e?void 0:e.resourceAttributes)||{}}},{state:n}=await this._apiService.checkRemoteSession(t);"START"==n?this.sessionState!==i.SessionState.started&&await this.start(m.SessionType.CONTINUOUS):"STOP"==n&&this.sessionState!==i.SessionState.stopped&&await this.stop()}_registerWidgetEvents(){this._sessionWidget.on("toggle",(e,t)=>{this.error="",e?this.start(m.SessionType.PLAIN):this.stop(null==t?void 0:t.trim())}),this._sessionWidget.on("pause",()=>{this.error="",this.pause()}),this._sessionWidget.on("resume",()=>{this.error="",this.resume()}),this._sessionWidget.on("cancel",()=>{this.error="",this.cancel()}),this._sessionWidget.on("continuous-debugging",e=>{this.error="",e?this.start(m.SessionType.CONTINUOUS):this.stop()}),this._sessionWidget.on("save",()=>{this.error="",this.save()})}_registerSessionLimitReach(){c.recorderEventBus.on(a.SESSION_STOPPED_EVENT,()=>{this._stop(),this._clearSession(),this._sessionWidget.handleUIReseting()})}_registerSessionAutoCreation(){c.recorderEventBus.on(a.SESSION_AUTO_CREATED,e=>{var t;(null==e?void 0:e.data)&&this._sessionWidget.showToast({type:"success",message:"Your session was auto-saved due to an error",button:{text:"Open session",url:null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.url}},5e3)})}async _createSessionAndStart(){var e;const t=null===(e=this._startRequestController)||void 0===e?void 0:e.signal;try{const e={sessionAttributes:this.sessionAttributes,resourceAttributes:(0,o.getNavigatorInfo)(),name:this.sessionAttributes.userName?`${this.sessionAttributes.userName}'s session on ${(0,o.getFormattedDate)(Date.now(),{month:"short",day:"numeric"})}`:`Session on ${(0,o.getFormattedDate)(Date.now())}`},n=this.continuousRecording?{debugSessionData:e}:e,s=this.continuousRecording?await this._apiService.startContinuousDebugSession(n,t):await this._apiService.startSession(n,t);s&&(s.sessionType=this.continuousRecording?m.SessionType.CONTINUOUS:m.SessionType.PLAIN,this._setupSessionAndStart(s,!1))}catch(e){this.error=e.message,this.continuousRecording&&(this.sessionType=m.SessionType.PLAIN)}}_start(){var e;this.sessionState=i.SessionState.started,this._tracer.start(this.sessionId,this.sessionType),this._recorder.start(this.sessionId,this.sessionType),this.session&&(c.recorderEventBus.emit(a.SESSION_STARTED_EVENT,this.session),this._recorder.subscribeToSession(this.session),this._sessionWidget.seconds=(0,o.getTimeDifferenceInSeconds)(null===(e=this.session)||void 0===e?void 0:e.startedAt))}_stop(){this.sessionState=i.SessionState.stopped,this._tracer.stop(),this._recorder.stop()}_pause(){this._tracer.stop(),this._recorder.stop(),this.sessionState=i.SessionState.paused}_resume(){this._tracer.start(this.sessionId,this.sessionType),this._recorder.start(this.sessionId,this.sessionType),this.sessionState=i.SessionState.started}_setupSessionAndStart(e,t=!0){t&&e.tempApiKey&&(this._configs.apiKey=e.tempApiKey,this._recorder.init(this._configs),this._tracer.setApiKey(e.tempApiKey),this._apiService.updateConfigs({apiKey:this._configs.apiKey})),this._setSession(e),this._start()}_setSession(e){this.session={...e,startedAt:e.startedAt||(new Date).toISOString()},this.sessionId=(null==e?void 0:e.shortId)||(null==e?void 0:e._id)}_clearSession(){this.session=null,this.sessionId=null,this.sessionState=i.SessionState.stopped}_checkOperation(e,t){if(!this._isInitialized)throw new Error("Configuration not initialized. Call init() before performing any actions.");switch(e){case"start":if(this.sessionState===i.SessionState.started)throw new Error("Session is already started.");break;case"stop":if(this.sessionState!==i.SessionState.paused&&this.sessionState!==i.SessionState.started)throw new Error("Cannot stop. Session is not currently started.");break;case"cancel":if(this.sessionState===i.SessionState.stopped)throw new Error("Cannot cancel. Session has already been stopped.");break;case"pause":if(this.sessionState!==i.SessionState.started)throw new Error("Cannot pause. Session is not running.");break;case"resume":if(this.sessionState!==i.SessionState.paused)throw new Error("Cannot resume. Session is not paused.");break;case"save":if(!this.continuousRecording)throw new Error("Cannot save continuous recording session. Continuous recording is not enabled.");if(this.sessionState!==i.SessionState.started)throw new Error("Cannot save continuous recording session. Session is not started.");break;case"autoStartRemoteContinuousSession":if(this.sessionState!==i.SessionState.stopped)throw new Error("Cannot start remote continuous session. Session is not stopped.")}}}},"./src/sessionWidget/UIManager.ts":(e,t,n)=>{"use strict";n.d(t,{UIManager:()=>u});var s=n("./src/utils/index.ts"),r=n("./src/sessionWidget/templates/icons.ts"),o=n("./src/sessionWidget/templates/finalPopover.ts"),i=n("./src/sessionWidget/templates/initialPopover.ts"),a=n("./src/sessionWidget/templates/recordingOverlay.ts"),l=n("./src/sessionWidget/templates/submitSessionDialog.ts"),c=n("./src/sessionWidget/templates/toast.ts");class u{constructor(e,t,n,s,r,o,i,a){this.toastTimeout=null,this.recorderButton=e,this.initialPopover=t,this.finalPopover=n,this.recordingOverlay=s,this.submitSessionDialog=r,this.toast=o,this.widgetTextOverrides=i,this.showContinuousRecording=a}setRecorderButtonProps(){this.recorderButton.className="mp-session-debugger-button",this.recorderButton.dataset.tooltip="Record an issue",(0,s.insertTrustedHTML)(this.recorderButton,`${r.RecordIcon}`)}setOverlayProps(){this.recordingOverlay.className="mp-recording-overlay hidden",(0,s.insertTrustedHTML)(this.recordingOverlay,a.recordingOverlayTemplate)}setSubmitSessionDialogProps(){this.submitSessionDialog.id="mp-submission-dialog",this.submitSessionDialog.className="hidden",(0,s.insertTrustedHTML)(this.submitSessionDialog,(0,l.submitSessionDialogTemplate)(this.widgetTextOverrides))}setInitialPopoverProps(){this.initialPopover.className="mp-session-debugger-popover mp-initial-popover hidden",(0,s.insertTrustedHTML)(this.initialPopover,(0,i.initialPopoverTemplate)(this.widgetTextOverrides,this.showContinuousRecording))}setFinalPopoverProps(){this.finalPopover.className="mp-session-debugger-popover hidden",(0,s.insertTrustedHTML)(this.finalPopover,(0,o.finalPopoverTemplate)(this.widgetTextOverrides))}setPopoverLoadingState(e){const t=this.initialPopover.querySelector(".mp-session-debugger-popover-button");t&&(t.classList.toggle("disabled",e),t.textContent=e?"Starting to record...":"Start recording")}setTimerValue(e){const t=this.recordingOverlay.querySelector(".timer");t&&(0,s.insertTrustedHTML)(t,e)}setToastProps(){this.toast.className="mp-toast hidden"}showToast(e,t=1e4){var n;if((0,s.insertTrustedHTML)(this.toast,(0,c.toastTemplate)(e)),this.toast.className=`mp-toast mp-toast-${e.type}`,null===(n=e.button)||void 0===n?void 0:n.onClick){const t=this.toast.querySelector(".mp-toast-button");null==t||t.addEventListener("click",e.button.onClick)}this.toastTimeout&&clearTimeout(this.toastTimeout),this.toastTimeout=setTimeout(()=>{this.hideToast()},t)}hideToast(){this.toast.classList.add("hidden"),this.toastTimeout&&clearTimeout(this.toastTimeout)}}},"./src/sessionWidget/buttonStateConfigs.ts":(e,t,n)=>{"use strict";n.d(t,{ButtonState:()=>s,ContinuousRecordingSaveButtonState:()=>r,buttonStates:()=>i,continuousRecordingSaveButtonStates:()=>a});var s,r,o=n("./src/sessionWidget/templates/icons.ts");!function(e){e.IDLE="IDLE",e.RECORDING="RECORDING",e.CANCEL="CANCEL",e.SENT="SENT",e.LOADING="LOADING",e.CONTINUOUS_DEBUGGING="CONTINUOUS_DEBUGGING"}(s||(s={})),function(e){e.IDLE="IDLE",e.SAVING="SAVING",e.SAVED="SAVED",e.ERROR="ERROR"}(r||(r={}));const i={[s.IDLE]:{icon:o.RecordIcon,tooltip:"Record an issue",classes:[],excludeClasses:["animate-rotate","mp-button-blue"]},[s.RECORDING]:{icon:o.CapturingIcon,tooltip:"The session is recording. Click to end.",classes:[],excludeClasses:["mp-button-blue","animate-rotate"]},[s.CANCEL]:{icon:o.CloseIcon,tooltip:"Click to cancel",classes:[],excludeClasses:["animate-rotate","mp-button-blue"]},[s.SENT]:{icon:o.CheckmarkIcon,tooltip:"We've sent it over! Thanks!",classes:["mp-button-blue"],excludeClasses:["animate-rotate"]},[s.LOADING]:{icon:o.RecordIcon,tooltip:"Starting to record...",classes:[],excludeClasses:["animate-rotate","mp-button-blue"]},[s.CONTINUOUS_DEBUGGING]:{icon:o.CapturingIcon,tooltip:"You’re continuously recording.",classes:[],excludeClasses:["mp-button-blue","animate-rotate"]}},a={[r.IDLE]:{textContent:"Save recording",disabled:!1,classes:[]},[r.SAVING]:{disabled:!0,textContent:"Saving recording...",classes:[]},[r.SAVED]:{disabled:!0,textContent:"Saved",classes:[]},[r.ERROR]:{disabled:!0,textContent:"Error saving the recording",classes:[]}}},"./src/sessionWidget/constants.ts":(e,t,n)=>{"use strict";n.d(t,{NON_DRAGGABLE_OFFSET:()=>r,POPOVER_DISTANCE_FROM_BUTTON:()=>o,POPOVER_WIDTH:()=>s,POSITION_STATE_KEY:()=>i});const s=300,r=10,o=25,i="mp-recorder-button-position"},"./src/sessionWidget/dragManager.ts":(e,t,n)=>{"use strict";n.d(t,{DragManager:()=>r});var s=n("./src/sessionWidget/constants.ts");class r{constructor(e,t,n=()=>{},s=()=>{},r=()=>{}){this.isDragging=!1,this.dragStarted=!1,this.isOnLeftHalfOfScreen=!1,this.recorderButton=e,this.recorderPlacement=t,this.onDragEnd=n,this.updatePopoverPosition=s,this.onRecordingButtonClick=r}init(){this.loadStoredPosition(),this.setupDragListeners()}loadStoredPosition(){const e=localStorage.getItem(s.POSITION_STATE_KEY);if(!e)return;let{right:t,bottom:n}=JSON.parse(e);if(null==t||null==n)return;t>0&&t<=1&&n>0&&n<=1?(t*=window.innerWidth,n*=window.innerHeight):(t=t/100*window.innerWidth,n=n/100*window.innerHeight),t=Math.min(Math.max(t,0),window.innerWidth),n=Math.min(Math.max(n,0),window.innerHeight),requestAnimationFrame(()=>{this.recorderButton.classList.remove(this.recorderPlacement),this.recorderButton.style.right=`${t}px`,this.recorderButton.style.bottom=`${n}px`,this.isOnLeftHalfOfScreen=t>window.innerWidth/2,this.recorderButton.classList.toggle("button-leftside",this.isOnLeftHalfOfScreen),this.updatePopoverPosition()})}savePosition(e,t){const n=e/window.innerWidth*100,r=t/window.innerHeight*100;localStorage.setItem(s.POSITION_STATE_KEY,JSON.stringify({right:n,bottom:r}))}setupDragListeners(){this.recorderButton.addEventListener("mousedown",e=>{const t=()=>{const n=!this.recorderButton.classList.contains("no-draggable");if(this.isDragging||!n){if(this.recorderButton.classList.toggle("button-leftside",this.isOnLeftHalfOfScreen),this.isDragging=!1,document.body.style.userSelect="",n){const e=parseFloat(this.recorderButton.style.right),t=parseFloat(this.recorderButton.style.bottom);this.savePosition(e,t),document.removeEventListener("mousemove",a)}this.dragStarted||(this.updatePopoverPosition(),this.onRecordingButtonClick(e)),this.onDragEnd(this.isDragging,this.dragStarted,this.isOnLeftHalfOfScreen)}this.recorderButton.classList.remove("no-hover"),document.removeEventListener("mouseup",t)};if(this.recorderButton.classList.contains("no-draggable"))return this.isDragging=!1,this.dragStarted=!1,void document.addEventListener("mouseup",t);this.recorderButton.classList.add("no-hover"),this.isDragging=!0,this.dragStarted=!1;const n=e.clientX,s=e.clientY,r=this.recorderButton.getBoundingClientRect(),o=window.innerWidth,i=window.innerHeight,a=e=>{const t=e.clientX-n,a=e.clientY-s;if(Math.abs(t)>3||Math.abs(a)>3){this.dragStarted=!0,this.recorderButton.classList.remove(this.recorderPlacement);const e=Math.max(0,Math.min(o-r.width,r.left+t)),n=Math.max(0,Math.min(i-r.height,r.top+a)),s=o-e-r.width,l=i-n-r.height;this.isOnLeftHalfOfScreen=s>o/2,requestAnimationFrame(()=>{this.recorderButton.style.right=`${s}px`,this.recorderButton.style.bottom=`${l}px`})}};document.addEventListener("mousemove",a),document.addEventListener("mouseup",t),document.body.style.userSelect="none",e.preventDefault()})}}},"./src/sessionWidget/index.ts":(e,t,n)=>{"use strict";n.d(t,{SessionWidget:()=>d});n("../../node_modules/rrweb-player/dist/style.css");var s=n("../../node_modules/lib0/observable.js"),r=n("./src/utils/index.ts"),o=n("./src/types/index.ts"),i=n("./src/sessionWidget/dragManager.ts"),a=n("./src/sessionWidget/constants.ts"),l=n("./src/config/index.ts"),c=n("./src/sessionWidget/UIManager.ts"),u=n("./src/sessionWidget/buttonStateConfigs.ts");class d extends s.Observable{set buttonState(e){this._buttonState=e;const{icon:t,tooltip:n,classes:s,excludeClasses:r}=u.buttonStates[e];e===u.ButtonState.CANCEL?this.buttonDraggabilityObserver.observe(this.recorderButton,{attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}):this.buttonDraggabilityObserver.disconnect(),this.updateButton(t,n,r,s)}set initialPopoverVisible(e){var t;this._initialPopoverVisible=e,null===(t=this.initialPopover)||void 0===t||t.classList.toggle("hidden",!e)}set finalPopoverVisible(e){var t;this._finalPopoverVisible=e,null===(t=this.finalPopover)||void 0===t||t.classList.toggle("hidden",!e)}get error(){return this._error}set error(e){this._error=e,this._error&&this.showToast({type:"error",message:this._error,button:{text:"Close",onClick:()=>this.hideToast()}})}set isStarted(e){this._isStarted=e,this.showRecorderButton||!e||this._continuousRecording?this.overlay.classList.add("hidden"):(this.overlay.classList.remove("hidden"),this.makeOverlayDraggable(),this.seconds||this.startTimer()),this.recorderButton.classList.toggle("is-started",this._isStarted),this._isStarted?(this._continuousRecording?this.buttonState=u.ButtonState.CONTINUOUS_DEBUGGING:(this.initialPopoverVisible=!1,this.buttonState=u.ButtonState.RECORDING),this.uiManager.setPopoverLoadingState(!1)):this.buttonState=u.ButtonState.IDLE}set isPaused(e){this._isPaused=e,this._isInitialized&&!this.showRecorderButton&&e&&!this._continuousRecording&&(this.overlay.classList.add("hidden"),this.submitSessionDialog.classList.remove("hidden"),this.stopTimer())}constructor(){super(),this._isStarted=!1,this._isPaused=!1,this._isInitialized=!1,this._recorderPlacement="",this._error="",this._initialPopoverVisible=!1,this._finalPopoverVisible=!1,this._buttonState=u.ButtonState.IDLE,this._continuousRecording=!1,this._showContinuousRecording=!0,this._widgetTextOverrides=l.DEFAULT_WIDGET_TEXT_CONFIG,this.commentTextarea=null,this.dragManager=null,this.buttonClickExternalHandler=null,this.showRecorderButton=!1,this.seconds=0,this.handleClickOutside=e=>{var t;const n=e.target,s=this._initialPopoverVisible||this._finalPopoverVisible,r=this._initialPopoverVisible?this.initialPopover:this.finalPopover;s&&n&&!(null==r?void 0:r.contains(n))&&!(null===(t=this.recorderButton)||void 0===t?void 0:t.contains(n))&&n!==this.recorderButton&&n!==r&&(this._initialPopoverVisible?this.handleCloseInitialPopover():this.handleCloseFinalPopover())},this.recorderButton=document.createElement("button"),this.initialPopover=document.createElement("div"),this.finalPopover=document.createElement("div"),this.overlay=document.createElement("div"),this.toast=document.createElement("div"),this.submitSessionDialog=document.createElement("div"),this.uiManager=new c.UIManager(this.recorderButton,this.initialPopover,this.finalPopover,this.overlay,this.submitSessionDialog,this.toast,l.DEFAULT_WIDGET_TEXT_CONFIG,!0),this.uiManager.setRecorderButtonProps(),this.uiManager.setInitialPopoverProps(),this.uiManager.setFinalPopoverProps(),this.uiManager.setOverlayProps(),this.uiManager.setSubmitSessionDialogProps(),this.uiManager.setToastProps(),this.commentTextarea=this.finalPopover.querySelector(".mp-session-debugger-popover-textarea"),this.observeButtonDraggableMode()}updateState(e,t){switch(this._continuousRecording=t,e){case o.SessionState.started:this.isPaused=!1,this.isStarted=!0;break;case o.SessionState.stopped:this.isPaused=!1,this.isStarted=!1;break;case o.SessionState.paused:this.isPaused=!0,this.isStarted=!1;break;default:this.isPaused=!1,this.isStarted=!1}}updateContinuousRecordingState(e,t=!1){const n=this.initialPopover.querySelector("#mp-session-debugger-continuous-debugging-checkbox");n&&(n.checked=e,n.disabled=t)}updateSaveContinuousDebugSessionState(e){const t=this.initialPopover.querySelector("#mp-save-continuous-debug-session");if(t){const{textContent:n,disabled:s}=u.continuousRecordingSaveButtonStates[e];t.disabled=s,t.textContent=n}}showToast(e,t=1e4){this.uiManager.showToast(e,t)}hideToast(){this.uiManager.hideToast()}observeButtonDraggableMode(){this.buttonDraggabilityObserver=new MutationObserver(e=>{for(const t of e)if("attributes"===t.type&&"class"===t.attributeName){const e=t.oldValue,n=t.target.className;((null==e?void 0:e.includes("no-draggable"))&&!n.includes("no-draggable")||(null==n?void 0:n.includes("no-draggable"))&&!(null==e?void 0:e.includes("no-draggable")))&&(this.initialPopoverVisible=!1,this.finalPopoverVisible=!1)}})}init(e){if(this._isInitialized)return;this._isInitialized=!0,this.showRecorderButton=e.showWidget,this._showContinuousRecording=e.showContinuousRecording,this._widgetTextOverrides={...this._widgetTextOverrides,...e.widgetTextOverrides},this.uiManager=new c.UIManager(this.recorderButton,this.initialPopover,this.finalPopover,this.overlay,this.submitSessionDialog,this.toast,this._widgetTextOverrides,this._showContinuousRecording),this.uiManager.setRecorderButtonProps(),this.uiManager.setInitialPopoverProps(),this.uiManager.setFinalPopoverProps(),this.uiManager.setOverlayProps(),this.uiManager.setSubmitSessionDialogProps(),this.uiManager.setToastProps();const t=[this.toast];if(e.showWidget?t.push(this.recorderButton,this.initialPopover,this.finalPopover,this.submitSessionDialog):t.push(this.overlay,this.submitSessionDialog),this.appendElements(t),!this._showContinuousRecording){const e=this.initialPopover.querySelector(".mp-session-debugger-continuous-debugging");e&&e.classList.add("hidden");const t=this.initialPopover.querySelector(".mp-session-debugger-continuous-debugging-overlay");t&&t.classList.add("hidden")}e.showWidget&&e.widgetButtonPlacement&&(this.recorderButton.classList.add(e.widgetButtonPlacement),this._recorderPlacement=e.widgetButtonPlacement,this.addRecorderDragFunctionality()),this.addEventListeners()}appendElements(e){const t=document.createElement("mp-root");t.classList.add("mp-root-wrapper"),t.setAttribute("data-rr-ignore","true"),e.forEach(e=>t.appendChild(e)),document.body.appendChild(t)}addRecorderDragFunctionality(){this.dragManager=new i.DragManager(this.recorderButton,this._recorderPlacement,()=>{this._isPaused&&(this.finalPopoverVisible=!0)},()=>this.updatePopoverPosition(),e=>this.onRecordingButtonClick(e)),this.dragManager.init()}updatePopoverPosition(){const{top:e,right:t,bottom:n,left:s}=this.recorderButton.getBoundingClientRect(),r=!this.recorderButton.classList.contains("no-draggable"),o=this._isStarted?400:300,i=window.innerWidth,l=window.innerHeight;let c,u;c=l-e+a.POPOVER_DISTANCE_FROM_BUTTON+(r?0:a.NON_DRAGGABLE_OFFSET),u=i-t,c+o>l&&(c=l-n-o-a.POPOVER_DISTANCE_FROM_BUTTON-(r?0:a.NON_DRAGGABLE_OFFSET)),u+a.POPOVER_WIDTH>i&&(u=i-s-a.POPOVER_WIDTH);const d=10;c=Math.max(c,d),u=Math.max(u,d),u+a.POPOVER_WIDTH>i-d&&(u=i-a.POPOVER_WIDTH-d),c+o>l-d&&(c=l-o-d);const p=e=>{e.style.right=`${u}px`,e.style.bottom=`${c}px`,e.style.left="unset",e.style.top="unset"};requestAnimationFrame(()=>{this.initialPopover&&p(this.initialPopover),this.finalPopover&&p(this.finalPopover)})}addEventListeners(){const e=[];this.showRecorderButton?(e.push({target:this.initialPopover,selector:".mp-start-recording",handler:this.startRecording.bind(this)}),this._showContinuousRecording&&e.push({event:"change",target:this.initialPopover,selector:"#mp-session-debugger-continuous-debugging-checkbox",handler:this.handleContinuousRecordingChange.bind(this)},{target:this.initialPopover,selector:"#mp-save-continuous-debug-session",handler:this.handleSaveContinuousDebugSession.bind(this)}),e.push({target:this.initialPopover,selector:".mp-session-debugger-modal-close",handler:this.handleCloseInitialPopover.bind(this)},{target:this.finalPopover,selector:".mp-stop-recording",handler:this.handleStopRecording.bind(this)},{target:this.finalPopover,selector:".mp-session-debugger-dismiss-button",handler:this.handleDismissRecording.bind(this)},{target:this.finalPopover,selector:".mp-session-debugger-modal-close",handler:this.handleCloseFinalPopover.bind(this)})):e.push({target:this.overlay,selector:".mp-stop-btn",handler:this.onPause.bind(this)},{target:this.submitSessionDialog,selector:"#mp-submit-recording",handler:this.onStop.bind(this)},{target:this.submitSessionDialog,selector:"#mp-cancel-submission",handler:this.onCancel.bind(this)}),e.forEach(({target:e,selector:t,handler:n,event:s="click"})=>{this.addListener(e,t,n,s)})}handleStopRecording(){this.onStop(),this.handleUIReseting()}handleUIReseting(){this.finalPopoverVisible=!1,this.resetRecordingButton()}handleCloseInitialPopover(){this._buttonState===u.ButtonState.LOADING&&(this.onCancel(),this.uiManager.setPopoverLoadingState(!1)),this.initialPopoverVisible=!1,this.buttonState=this._continuousRecording?u.ButtonState.CONTINUOUS_DEBUGGING:u.ButtonState.IDLE,document.removeEventListener("click",this.handleClickOutside)}handleCloseFinalPopover(){this.onResume()}onRequestError(){this.initialPopoverVisible=!1,this.finalPopoverVisible=!1,this.buttonState=u.ButtonState.IDLE,document.removeEventListener("click",this.handleClickOutside)}handleDismissRecording(){this.onCancel(),this.finalPopoverVisible=!this._finalPopoverVisible,this.buttonState=u.ButtonState.IDLE,this.overlay.classList.add("hidden"),this.commentTextarea&&(this.commentTextarea.value="")}resetRecordingButton(){setTimeout(()=>{this.buttonState=u.ButtonState.IDLE},1500)}addListener(e,t,n,s="click"){var r;null===(r=null==e?void 0:e.querySelector(t))||void 0===r||r.addEventListener(s,n)}onRecordingButtonClick(e){if(this.buttonClickExternalHandler){if(!1===this.buttonClickExternalHandler())return void e.preventDefault()}this._initialPopoverVisible?this.handleCloseInitialPopover():this._isPaused?this.onResume():(this._isStarted?(this.buttonState=u.ButtonState.CANCEL,this._continuousRecording?this.initialPopoverVisible=!this.initialPopoverVisible:(this.finalPopoverVisible=!this._finalPopoverVisible,this.onPause())):(this.buttonState=this._initialPopoverVisible?u.ButtonState.IDLE:u.ButtonState.CANCEL,this.initialPopoverVisible=!this._initialPopoverVisible),this._initialPopoverVisible||this._finalPopoverVisible?document.addEventListener("click",this.handleClickOutside):document.removeEventListener("click",this.handleClickOutside))}updateButton(e,t,n,s){this.recorderButton&&((0,r.insertTrustedHTML)(this.recorderButton,`${e}`),this.recorderButton.dataset.tooltip=t,n&&this.recorderButton.classList.remove(...n),s&&this.recorderButton.classList.add(...s))}handleContinuousRecordingChange(e){if(!this._showContinuousRecording)return;const t=e.target;this.emit("continuous-debugging",[t.checked])}handleSaveContinuousDebugSession(){this.emit("save",[])}startRecording(){this.buttonState=u.ButtonState.LOADING,this.uiManager.setPopoverLoadingState(!0),this.onStart()}onStart(){this.recorderButton&&this.emit("toggle",[!0])}onStop(){if(this.showRecorderButton&&!this.recorderButton)return;this.submitSessionDialog.classList.add("hidden");const e=this.showRecorderButton?this.commentTextarea:this.submitSessionDialog.querySelector("#mp-recording-comment");if(e)return this.emit("toggle",[!1,e.value]),void(e.value="");this.emit("toggle",[!1,""])}onPause(){this.emit("pause",[])}onResume(){this.finalPopoverVisible=!1,this._continuousRecording?this.buttonState=u.ButtonState.CONTINUOUS_DEBUGGING:(this.buttonState=u.ButtonState.RECORDING,this.emit("resume",[]))}onCancel(){this.submitSessionDialog.classList.add("hidden"),this.emit("cancel",[])}enable(){this.recorderButton&&(this.recorderButton.disabled=!1,this.recorderButton.style.opacity="1")}disable(){this.recorderButton&&(this.recorderButton.disabled=!0,this.recorderButton.style.opacity="0.5")}destroy(){this.recorderButton&&(document.body.removeChild(this.recorderButton),document.removeEventListener("click",this.handleClickOutside))}startTimer(){this.timerInterval&&(clearInterval(this.timerInterval),this.timerInterval=null),this.uiManager.setTimerValue((0,r.formatTimeForSessionTimer)(this.seconds)),this.timerInterval=setInterval(()=>{this.seconds++,this.uiManager.setTimerValue((0,r.formatTimeForSessionTimer)(this.seconds))},1e3)}stopTimer(){this.timerInterval&&(clearInterval(this.timerInterval),this.timerInterval=null,this.seconds=0)}makeOverlayDraggable(){const e=this.overlay,t=e.querySelector(".mp-drag-handle");if(!t)return;let n=0,s=0;t.onmousedown=function(t){t.preventDefault(),n=t.clientX-e.offsetLeft,s=t.clientY-e.offsetTop,document.onmousemove=function(t){e.style.left=t.clientX-n+"px",e.style.top=t.clientY-s+"px",e.style.bottom="auto",e.style.transform="none"},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}}}}},"./src/sessionWidget/templates/finalPopover.ts":(e,t,n)=>{"use strict";n.d(t,{finalPopoverTemplate:()=>r});var s=n("./src/sessionWidget/templates/icons.ts");const r=e=>`\n<div class="mp-session-debugger-popover-content">\n <div class="mp-session-debugger-popover-header">\n <a href="https://www.multiplayer.app" target="_blank" rel="noopener noreferrer" title="Multiplayer">\n <div class="mp-session-debugger-popover-logo">${s.LogoSvg}</div>\n </a>\n <button class="mp-session-debugger-dismiss-button">${e.cancelButtonText}</button>\n <button class="mp-session-debugger-modal-close" aria-label="Close">${s.CloseXIcon}</button>\n </div>\n <div class="mp-session-debugger-popover-body">\n <h2>${e.finalTitle}</h2>\n <p>${e.finalDescription}</p>\n <textarea placeholder="${e.commentPlaceholder}" class="mp-session-debugger-popover-textarea"></textarea>\n <div class="mp-session-debugger-popover-footer">\n <button class="mp-session-debugger-popover-button mp-stop-recording">${e.saveButtonText}</button>\n </div>\n </div>\n</div>\n`},"./src/sessionWidget/templates/icons.ts":(e,t,n)=>{"use strict";n.d(t,{CapturingIcon:()=>c,CheckSuccessIcon:()=>p,CheckmarkIcon:()=>u,CloseIcon:()=>a,CloseXIcon:()=>l,DragHandleIcon:()=>d,ErrorIcon:()=>m,LogoSvg:()=>s,RecordIcon:()=>r,RecordIndicatorIcon:()=>o,StopIcon:()=>i});const s='<svg xmlns="http://www.w3.org/2000/svg" width="30" height="24" viewBox="0 0 30 24" fill="none">\n<path d="M28.8324 8.83643L23.5495 6.85854L21.4856 6.08553L23.6001 0.4375L15 3.65769L6.39963 0.4375L8.51441 6.08585L6.45046 6.85885L1.16757 8.83674L0.625 9.03974L9.10095 12.0981C10.0891 12.4548 10.9201 13.1265 11.4758 13.9952C11.6632 14.2883 11.8194 14.6036 11.9398 14.9369L15 23.4076L18.0602 14.9369C18.1806 14.6036 18.3368 14.288 18.5242 13.9952C19.0802 13.1265 19.9112 12.4545 20.8991 12.0981L29.375 9.03974L28.8324 8.83674V8.83643ZM19.779 10.6434C18.2872 11.1816 17.1126 12.3563 16.5744 13.848L15.014 18.173L11.5182 8.83643L10.7776 6.85854L10.2456 5.43757L9.57367 3.64272L12.3068 4.66612L18.1631 6.85885L20.8233 7.85481L23.4457 8.83674L24.104 9.08308L19.779 10.6438V10.6434Z" fill="#473CFB" style="fill:#473CFB;fill:color(display-p3 0.2784 0.2353 0.9843);fill-opacity:1;"/>\n</svg>',r='<svg xmlns="http://www.w3.org/2000/svg" width="19" height="19" viewBox="0 0 19 19" fill="none">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M6.68926 5.30356C6.56568 5.38721 6.39976 5.37561 6.29459 5.26937L3.58782 2.53477C3.46424 2.40992 3.47196 2.20492 3.60862 2.09483C5.2319 0.786982 7.28494 0 9.51866 0C11.7535 0 13.8066 0.787042 15.4308 2.09586C15.5674 2.20596 15.5752 2.41091 15.4516 2.53577L12.7468 5.26931C12.6416 5.37558 12.4757 5.38719 12.3521 5.30353C11.5393 4.75345 10.571 4.42281 9.52066 4.42281C8.47036 4.42281 7.50203 4.75346 6.68926 5.30356ZM16.4926 3.4303C16.6163 3.30527 16.8197 3.31303 16.9288 3.45121C18.2224 5.08933 19.0001 7.15932 19.0001 9.4116C19.0001 11.6671 18.2204 13.7392 16.9238 15.3785C16.8147 15.5165 16.6114 15.5242 16.4877 15.3992L13.7872 12.6701C13.682 12.5638 13.6708 12.3962 13.7538 12.2716C14.3006 11.451 14.6291 10.4727 14.6291 9.4116C14.6291 8.35454 14.3016 7.37925 13.756 6.56083C13.6728 6.43616 13.6841 6.26857 13.7893 6.16224L16.4926 3.4303ZM5.21676 12.6712C5.322 12.5649 5.3333 12.3974 5.2502 12.2727C4.70331 11.4522 4.374 10.4737 4.374 9.41184C4.374 8.35469 4.70232 7.37949 5.24808 6.56106C5.33123 6.43637 5.31996 6.26872 5.2147 6.16241L2.50855 3.4293C2.38482 3.30434 2.18146 3.31213 2.07236 3.45028C0.77864 5.08841 0 7.15845 0 9.41184C0 11.6684 0.78066 13.7406 2.07831 15.3799C2.18749 15.5178 2.39066 15.5255 2.51429 15.4006L5.21676 12.6712ZM12.3323 13.707C12.4559 13.6231 12.6221 13.6346 12.7273 13.741L15.4277 16.4691C15.5513 16.594 15.5435 16.7991 15.4068 16.9091C13.7837 18.215 11.7327 19 9.49998 19C7.2693 19 5.21837 18.2159 3.59619 16.9102C3.45943 16.8001 3.45169 16.595 3.57533 16.4702L6.27769 13.7409C6.38296 13.6346 6.54906 13.6231 6.67267 13.707C7.48459 14.2577 8.45278 14.5883 9.50198 14.5883C10.5522 14.5883 11.5204 14.2578 12.3323 13.707Z" fill="currentColor"/>\n</svg>',o='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g id="Timer Icon">\n<circle id="Ellipse 2" cx="12" cy="12" r="4" fill="#E53E3E" style="fill:#E53E3E;fill:color(display-p3 0.8980 0.2431 0.2431);fill-opacity:1;"/>\n<circle id="Ellipse 3" cx="12" cy="12" r="7.5" stroke="#E53E3E" style="stroke:#E53E3E;stroke:color(display-p3 0.8980 0.2431 0.2431);stroke-opacity:1;"/>\n<circle id="Ellipse 4" opacity="0.2" cx="12" cy="12" r="11.5" stroke="#E53E3E" style="stroke:#E53E3E;stroke:color(display-p3 0.8980 0.2431 0.2431);stroke-opacity:1;"/>\n</g>\n</svg>\n',i='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">\n<path id="stopIcon" fill-rule="evenodd" clip-rule="evenodd" d="M10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18ZM8 7C7.44772 7 7 7.44772 7 8L7 12C7 12.5523 7.44772 13 8 13H12C12.5523 13 13 12.5523 13 12V8C13 7.44772 12.5523 7 12 7L8 7Z" fill="white" style="fill:white;fill-opacity:1;"/>\n</svg>',a='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">\n<path d="M13 11L10 14M10 14L7 11M10 14L10 6M10 19C5.02944 19 1 14.9706 1 10C1 5.02944 5.02944 1 10 1C14.9706 1 19 5.02944 19 10C19 14.9706 14.9706 19 10 19Z" stroke="#718096" style="stroke:#718096;stroke:color(display-p3 0.4431 0.5020 0.5882);stroke-opacity:1;" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>',l='<svg width="12" height="13" viewBox="0 0 12 13" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M1 11.5L11 1.5M1 1.5L11 11.5" stroke="#4A5568" style="stroke:#4A5568;stroke:color(display-p3 0.2902 0.3333 0.4078);stroke-opacity:1;" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>',c='<svg xmlns="http://www.w3.org/2000/svg" class="animate-bounce" width="24" height="24" viewBox="0 0 24 24" fill="none">\n<circle cx="12" cy="12" r="4" fill="#E53E3E" style="fill:#E53E3E;fill:color(display-p3 0.8980 0.2431 0.2431);fill-opacity:1;"/>\n<circle cx="12" cy="12" r="7.5" stroke="#E53E3E" style="stroke:#E53E3E;stroke:color(display-p3 0.8980 0.2431 0.2431);stroke-opacity:1;"/>\n<circle opacity="0.2" cx="12" cy="12" r="11.5" stroke="#E53E3E" style="stroke:#E53E3E;stroke:color(display-p3 0.8980 0.2431 0.2431);stroke-opacity:1;"/>\n</svg>',u='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">\n<g id="Left Icon">\n<path id="Icon" fill-rule="evenodd" clip-rule="evenodd" d="M20.0481 6.35147C20.5168 6.8201 20.5168 7.5799 20.0481 8.04853L10.4481 17.6485C9.97951 18.1172 9.21971 18.1172 8.75108 17.6485L3.95108 12.8485C3.48245 12.3799 3.48245 11.6201 3.95108 11.1515C4.41971 10.6828 5.17951 10.6828 5.64814 11.1515L9.59961 15.1029L18.3511 6.35147C18.8197 5.88284 19.5795 5.88284 20.0481 6.35147Z" fill="white" style="fill:white;fill-opacity:1;"/>\n</g>\n</svg>',d='<svg width="10" height="20" viewBox="0 0 10 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path id="dragHandleIcon" d="M1.66699 5H8.33366M1.66699 10H8.33366M1.66699 15H8.33366" stroke="white" stroke-opacity="0.48" style="stroke:white;stroke-opacity:0.48;" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',p='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18ZM13.7071 8.70711C14.0976 8.31658 14.0976 7.68342 13.7071 7.29289C13.3166 6.90237 12.6834 6.90237 12.2929 7.29289L9 10.5858L7.70711 9.29289C7.31658 8.90237 6.68342 8.90237 6.29289 9.29289C5.90237 9.68342 5.90237 10.3166 6.29289 10.7071L8.29289 12.7071C8.68342 13.0976 9.31658 13.0976 9.70711 12.7071L13.7071 8.70711Z" fill="white" style="fill:white;fill-opacity:1;"/>\n</svg>',m='<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M6.99987 12.4856C10.0296 12.4856 12.4856 10.0296 12.4856 6.99987C12.4856 3.9702 10.0296 1.51416 6.99987 1.51416C3.9702 1.51416 1.51416 3.9702 1.51416 6.99987C1.51416 10.0296 3.9702 12.4856 6.99987 12.4856ZM6.11332 5.14357C5.84553 4.87578 5.41136 4.87578 5.14357 5.14357C4.87578 5.41136 4.87578 5.84553 5.14357 6.11332L6.03013 6.99987L5.14357 7.88643C4.87578 8.15422 4.87578 8.58839 5.14357 8.85618C5.41136 9.12396 5.84553 9.12396 6.11332 8.85618L6.99987 7.96962L7.88643 8.85618C8.15422 9.12396 8.58839 9.12396 8.85618 8.85618C9.12396 8.58839 9.12396 8.15422 8.85618 7.88643L7.96962 6.99987L8.85618 6.11332C9.12396 5.84553 9.12396 5.41136 8.85618 5.14357C8.58839 4.87578 8.15422 4.87578 7.88643 5.14357L6.99987 6.03013L6.11332 5.14357Z" fill="currentColor"/>\n</svg>\n'},"./src/sessionWidget/templates/initialPopover.ts":(e,t,n)=>{"use strict";n.d(t,{initialPopoverTemplate:()=>r});var s=n("./src/sessionWidget/templates/icons.ts");const r=(e,t)=>`\n<div class="mp-session-debugger-popover-content">\n <div class="mp-session-debugger-popover-header">\n <a href="https://www.multiplayer.app" target="_blank" rel="noopener noreferrer" title="Multiplayer">\n <div class="mp-session-debugger-popover-logo">${s.LogoSvg}</div>\n </a>\n <button class="mp-session-debugger-modal-close" aria-label="Close">${s.CloseXIcon}</button>\n </div>\n <div class="mp-session-debugger-popover-body">\n ${t?`\n <div class="mp-session-debugger-continuous-debugging">\n <div class="mp-session-debugger-continuous-debugging-label">\n ${e.continuousRecordingLabel}\n </div>\n <label class="mp-session-debugger-continuous-debugging-switch">\n <input type="checkbox" id="mp-session-debugger-continuous-debugging-checkbox">\n <span></span>\n </label>\n </div>\n `:""}\n <h2>${t?e.initialTitleWithContinuous:e.initialTitleWithoutContinuous}</h2>\n <p>${t?e.initialDescriptionWithContinuous:e.initialDescriptionWithoutContinuous}</p>\n <div class="mp-session-debugger-popover-footer">\n <button class="mp-session-debugger-popover-button mp-start-recording">${e.startRecordingButtonText}</button>\n </div>\n ${t?`\n <div class="mp-session-debugger-continuous-debugging-overlay">\n <div class="mp-session-debugger-continuous-debugging-overlay-content">\n <h3>${s.CapturingIcon} ${e.continuousOverlayTitle}</h3>\n <p>\n ${e.continuousOverlayDescription}\n </p>\n </div>\n <button class="mp-session-debugger-popover-button" id="mp-save-continuous-debug-session">${e.saveLastSnapshotButtonText}</button>\n </div>\n `:""}\n </div>\n</div>\n`},"./src/sessionWidget/templates/recordingOverlay.ts":(e,t,n)=>{"use strict";n.d(t,{recordingOverlayTemplate:()=>r});var s=n("./src/sessionWidget/templates/icons.ts");const r=`\n<div class="mp-recording-status">\n <div class="mp-recording-indicator">\n ${s.RecordIndicatorIcon}\n </div>\n <span class="timer">00:00</span>\n</div>\n<div class="mp-recording-controls">\n <button class="mp-recording-btn mp-stop-btn" title="Stop recording">${s.StopIcon}</button>\n</div>\n<div class="mp-drag-handle" style="cursor: move;">\n ${s.DragHandleIcon}\n</div>\n`},"./src/sessionWidget/templates/submitSessionDialog.ts":(e,t,n)=>{"use strict";n.d(t,{submitSessionDialogTemplate:()=>s});const s=e=>`\n<div class="mp-dialog-backdrop">\n <div class="mp-dialog-content">\n <h3>${e.submitDialogTitle}</h3>\n <div class="subtitle">${e.submitDialogSubtitle}</div>\n <div class="form-group">\n <label>${e.submitDialogCommentLabel}</label>\n <textarea id="mp-recording-comment" rows="3" placeholder="${e.submitDialogCommentPlaceholder}"></textarea>\n </div>\n <div class="mp-dialog-actions">\n <button id="mp-cancel-submission">${e.submitDialogCancelText}</button>\n <button id="mp-submit-recording">${e.submitDialogSubmitText}</button>\n </div>\n </div>\n</div>\n`},"./src/sessionWidget/templates/toast.ts":(e,t,n)=>{"use strict";n.d(t,{toastTemplate:()=>r});var s=n("./src/sessionWidget/templates/icons.ts");const r=e=>{const{type:t,message:n,button:r}=e,i=(e=>"success"===e?s.CheckSuccessIcon:s.ErrorIcon)(t);return`<div class="mp-toast-content">\n <div class="mp-toast-icon">${i}</div>\n <div class="mp-toast-message">${n}</div>\n ${o(r)}\n </div>\n `},o=e=>e?e.url?`<a href="${e.url}" target="_blank" rel="noopener noreferrer" class="mp-toast-button">${e.text}</a>`:e.onClick?`<button class="mp-toast-button">${e.text}</button>`:"":""},"./src/types/index.ts":(e,t,n)=>{"use strict";n.d(t,{SessionState:()=>s.SessionState,WidgetButtonPlacement:()=>s.WidgetButtonPlacement});n("./src/types/widget.ts"),n("./src/types/session.ts");var s=n("./src/types/sessionRecorder.ts")},"./src/types/session.ts":(e,t,n)=>{"use strict";var s;!function(e){e.OTLP_TRACES="OTLP_TRACES",e.OTLP_LOGS="OTLP_LOGS",e.RRWEB_EVENTS="RRWEB_EVENTS"}(s||(s={}))},"./src/types/sessionRecorder.ts":(e,t,n)=>{"use strict";var s,r;n.d(t,{SessionState:()=>r,WidgetButtonPlacement:()=>s}),function(e){e.topLeft="top-left",e.topRight="top-right",e.bottomLeft="bottom-left",e.bottomRight="bottom-right"}(s||(s={})),function(e){e.started="2",e.paused="1",e.stopped="0"}(r||(r={}))},"./src/types/widget.ts":()=>{},"./src/utils/array.ts":(e,t,n)=>{"use strict";n.d(t,{each:()=>i,isValidRegex:()=>a});var s=n("./src/utils/type-utils.ts"),r=n("./src/utils/globals.ts");const o={};function i(e,t,n){if(!(0,s.isNullish)(e)){if((0,s.isArray)(e))return function(e,t,n){if((0,s.isArray)(e))if(r.nativeForEach&&e.forEach===r.nativeForEach)e.forEach(t,n);else if("length"in e&&e.length===+e.length)for(let s=0,r=e.length;s<r;s++)if(s in e&&t.call(n,e[s],s)===o)return}(e,t,n);if((0,s.isFormData)(e)){for(const s of e.entries())if(t.call(n,s[1],s[0])===o)return}else for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&t.call(n,e[s],s)===o)return}}const a=function(e){try{new RegExp(e)}catch(e){return!1}return!0}},"./src/utils/dom.ts":(e,t,n)=>{"use strict";n.d(t,{insertTrustedHTML:()=>r});var s=n("../../node_modules/dompurify/dist/purify.es.mjs");function r(e,t){const n=s.default.sanitize(t,{RETURN_DOM:!0});e.replaceChildren(...Array.from(n.childNodes))}},"./src/utils/globals.ts":(e,t,n)=>{"use strict";n.d(t,{nativeForEach:()=>i});const s="undefined"!=typeof window?window:void 0,r="undefined"!=typeof globalThis?globalThis:s,o=Array.prototype,i=o.forEach,a=(o.indexOf,null==r?void 0:r.navigator);null==r||r.document,null==r||r.location,null==r||r.fetch,(null==r?void 0:r.XMLHttpRequest)&&"withCredentials"in new r.XMLHttpRequest&&r.XMLHttpRequest,null==r||r.AbortController,null==a||a.userAgent},"./src/utils/index.ts":(e,t,n)=>{"use strict";n.d(t,{each:()=>l.each,formatTimeForSessionTimer:()=>o.formatTimeForSessionTimer,getFormattedDate:()=>o.getFormattedDate,getNavigatorInfo:()=>s.getNavigatorInfo,getStoredItem:()=>r.getStoredItem,getTimeDifferenceInSeconds:()=>o.getTimeDifferenceInSeconds,insertTrustedHTML:()=>a.insertTrustedHTML,isConsoleEvent:()=>i.isConsoleEvent,isSessionActive:()=>i.isSessionActive,isValidRegex:()=>l.isValidRegex,setStoredItem:()=>r.setStoredItem});var s=n("./src/utils/navigator.ts"),r=n("./src/utils/storage.ts"),o=n("./src/utils/time.ts"),i=n("./src/utils/session.ts"),a=n("./src/utils/dom.ts"),l=n("./src/utils/array.ts");n("./src/utils/type-utils.ts"),n("./src/utils/globals.ts")},"./src/utils/navigator.ts":(e,t,n)=>{"use strict";n.d(t,{getNavigatorInfo:()=>r});var s=n("./src/config/constants.ts");const r=()=>{var e,t,n,r,o,i,a,l,c,u;let d="Unknown",p="Unknown",m="Unknown";if(navigator.userAgent){const s=navigator.userAgent;p=/Mobi|Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(s)?"Mobile":/Tablet|iPad/i.test(s)?"Tablet":"Desktop",d=s.includes("Firefox")?`Mozilla Firefox ${(null===(e=s.match(/Firefox\/(\d+\.\d+)/))||void 0===e?void 0:e[1])||""}`:s.includes("Chrome")&&!s.includes("Edg")?`Google Chrome ${(null===(t=s.match(/Chrome\/(\d+\.\d+)/))||void 0===t?void 0:t[1])||""}`:s.includes("Edg")?`Microsoft Edge ${(null===(n=s.match(/Edg\/(\d+\.\d+)/))||void 0===n?void 0:n[1])||""}`:s.includes("Safari")&&!s.includes("Chrome")?`Safari ${(null===(r=s.match(/Version\/(\d+\.\d+)/))||void 0===r?void 0:r[1])||""}`:s.includes("Opera")||s.includes("OPR")?`Opera ${(null===(o=s.match(/(Opera|OPR)\/(\d+\.\d+)/))||void 0===o?void 0:o[2])||""}`:s.includes("Trident")?`Internet Explorer ${(null===(i=s.match(/rv:(\d+\.\d+)/))||void 0===i?void 0:i[1])||""}`:"Unknown browser",m=s.includes("Win")?`Windows ${(null===(a=s.match(/Windows NT (\d+\.\d+)/))||void 0===a?void 0:a[1])||""}`:s.includes("Mac")?`MacOS ${(null===(l=s.match(/Mac OS X (\d+_\d+)/))||void 0===l?void 0:l[1].replace("_","."))||""}`:s.includes("Linux")?"Linux":s.includes("Android")?`Android ${(null===(c=s.match(/Android (\d+\.\d+)/))||void 0===c?void 0:c[1])||""}`:s.includes("iPhone")||s.includes("iPad")?`iOS ${(null===(u=s.match(/OS (\d+_\d+)/))||void 0===u?void 0:u[1].replace("_","."))||""}`:"Unknown OS"}const h=navigator.hardwareConcurrency||1,A=navigator.cookieEnabled?"Yes":"No",g=window.devicePixelRatio||1;return{osInfo:m,screenSize:`${window.screen.width}x${window.screen.height}`,pixelRatio:g,deviceInfo:p,browserInfo:d,cookiesEnabled:A,hardwareConcurrency:h,packageVersion:s.PACKAGE_VERSION_EXPORT}}},"./src/utils/request-utils.ts":(e,t,n)=>{"use strict";n.d(t,{formDataToQuery:()=>o});var s=n("./src/utils/index.ts"),r=n("./src/utils/type-utils.ts");const o=function(e,t="&"){let n,o;const i=[];return(0,s.each)(e,function(e,t){(0,r.isUndefined)(e)||(0,r.isUndefined)(t)||"undefined"===t||(n=encodeURIComponent((0,r.isFile)(e)?e.name:e.toString()),o=encodeURIComponent(t),i[i.length]=o+"="+n)}),i.join(t)}},"./src/utils/session.ts":(e,t,n)=>{"use strict";n.d(t,{isConsoleEvent:()=>i,isSessionActive:()=>o});var s=n("../../node_modules/rrweb/dist/rrweb.js"),r=n("./src/config/constants.ts");const o=(e,t)=>{if(!e)return!1;if(t)return!0;const n=new Date(e.startedAt);return(new Date).getTime()-n.getTime()<1e3*r.DEBUG_SESSION_MAX_DURATION_SECONDS},i=e=>{var t;return e.type===s.EventType.Plugin&&"rrweb/console@1"===(null===(t=e.data)||void 0===t?void 0:t.plugin)}},"./src/utils/storage.ts":(e,t,n)=>{"use strict";n.d(t,{getStoredItem:()=>s,setStoredItem:()=>r});const s=(e,t)=>{const n=null===localStorage||void 0===localStorage?void 0:localStorage.getItem(e);return t?n?JSON.parse(n):null:n},r=(e,t)=>{null==t?null===localStorage||void 0===localStorage||localStorage.removeItem(e):null===localStorage||void 0===localStorage||localStorage.setItem(e,"string"==typeof t?t:JSON.stringify(t))}},"./src/utils/time.ts":(e,t,n)=>{"use strict";n.d(t,{formatTimeForSessionTimer:()=>r,getFormattedDate:()=>s,getTimeDifferenceInSeconds:()=>o});const s=(e,t)=>new Date(e).toLocaleDateString("en-US",t||{month:"short",year:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"}),r=e=>{const t=e%60;return`${Math.floor(e/60).toString().padStart(2,"0")}:${t.toString().padStart(2,"0")}`},o=e=>e?Math.floor((Date.now()-new Date(e).getTime())/1e3):0},"./src/utils/type-utils.ts":(e,t,n)=>{"use strict";n.d(t,{isArray:()=>i,isDocument:()=>d,isFile:()=>m,isFormData:()=>p,isNullish:()=>u,isObject:()=>a,isString:()=>c,isUndefined:()=>l});const s=Array.isArray,r=Object.prototype,o=(r.hasOwnProperty,r.toString),i=s||function(e){return"[object Array]"===o.call(e)},a=function(e){return e===Object(e)&&!i(e)},l=function(e){return void 0===e},c=function(e){return"[object String]"==o.call(e)},u=function(e){return l(e)||function(e){return null===e}(e)},d=e=>e instanceof Document,p=e=>e instanceof FormData,m=e=>e instanceof File},"../session-recorder-common/dist/esm/SessionRecorderIdGenerator.js":(e,t,n)=>{"use strict";n.d(t,{SessionRecorderIdGenerator:()=>i});var s=n("../session-recorder-common/dist/esm/type/index.js"),r=n("../session-recorder-common/dist/esm/constants/constants.base.js"),o=n("../session-recorder-common/dist/esm/sdk/index.js"),i=function(){function e(){this.generateLongId=(0,o.getIdGenerator)(16),this.generateShortId=(0,o.getIdGenerator)(8),this.sessionShortId="",this.sessionType=s.SessionType.PLAIN}return e.prototype.generateTraceId=function(){var e=this.generateLongId();if(this.sessionShortId){var t="";if(this.sessionType===s.SessionType.CONTINUOUS)t=r.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX;else t=r.MULTIPLAYER_TRACE_DEBUG_PREFIX;var n="".concat(t).concat(this.sessionShortId);return"".concat(n).concat(e.substring(n.length,e.length))}return e},e.prototype.generateSpanId=function(){return this.generateShortId()},e.prototype.setSessionId=function(e,t){void 0===t&&(t=s.SessionType.PLAIN),this.sessionShortId=e,this.sessionType=t},e}()},"../session-recorder-common/dist/esm/SessionRecorderTraceIdRatioBasedSampler.js":(e,t,n)=>{"use strict";n.d(t,{SessionRecorderTraceIdRatioBasedSampler:()=>i});var s=n("../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"),r=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Sampler.js"),o=n("../session-recorder-common/dist/esm/constants/constants.base.js"),i=function(){function e(e){void 0===e&&(e=0),this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(4294967295*this._ratio)}return e.prototype.shouldSample=function(e,t){if(t.startsWith(o.MULTIPLAYER_TRACE_DEBUG_PREFIX)||t.startsWith(o.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX))return{decision:r.SamplingDecision.RECORD_AND_SAMPLED};var n=r.SamplingDecision.NOT_RECORD;return(0,s.isValidTraceId)(t)&&this._accumulate(t)<this._upperBound&&(n=r.SamplingDecision.RECORD_AND_SAMPLED),{decision:n}},e.prototype.toString=function(){return"SessionRecorderTraceIdRatioBasedSampler{".concat(this._ratio,"}")},e.prototype._normalize=function(e){return"number"!=typeof e||isNaN(e)?0:e>=1?1:e<=0?0:e},e.prototype._accumulate=function(e){for(var t=0,n=0;n<e.length/8;n++){var s=8*n;t=(t^parseInt(e.slice(s,s+8),16))>>>0}return t},e}()},"../session-recorder-common/dist/esm/constants/constants.base.js":(e,t,n)=>{"use strict";n.d(t,{ATTR_MULTIPLAYER_CLIENT_ID:()=>y,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE:()=>_,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON:()=>E,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE:()=>M,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING:()=>k,ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE:()=>D,ATTR_MULTIPLAYER_HTTP_PROXY:()=>v,ATTR_MULTIPLAYER_HTTP_PROXY_TYPE:()=>C,ATTR_MULTIPLAYER_HTTP_REQUEST_BODY:()=>R,ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS:()=>w,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY:()=>I,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING:()=>O,ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS:()=>L,ATTR_MULTIPLAYER_INTEGRATION_ID:()=>T,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY:()=>B,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING:()=>j,ATTR_MULTIPLAYER_PLATFORM_ID:()=>f,ATTR_MULTIPLAYER_PLATFORM_NAME:()=>b,ATTR_MULTIPLAYER_PROJECT_ID:()=>g,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE:()=>P,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING:()=>N,ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE:()=>x,ATTR_MULTIPLAYER_SESSION_ID:()=>S,ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION:()=>U,ATTR_MULTIPLAYER_WORKSPACE_ID:()=>A,MASK_PLACEHOLDER:()=>G,MULTIPLAYER_ATTRIBUTE_PREFIX:()=>h,MULTIPLAYER_BASE_API_URL:()=>m,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_GRPC_URL:()=>p,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_HTTP_URL:()=>u,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL:()=>l,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_GRPC_URL:()=>d,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL:()=>c,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL:()=>a,MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX:()=>o,MULTIPLAYER_TRACE_DEBUG_PREFIX:()=>r,MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH:()=>i,MULTIPLAYER_TRACE_DOC_PREFIX:()=>s});var s="d0cd0c",r="debdeb",o="cdbcdb",i=16,a="https://api.multiplayer.app/v1/traces",l="https://api.multiplayer.app/v1/logs",c="https://otlp.multiplayer.app/v1/traces",u="https://otlp.multiplayer.app/v1/logs",d="https://otlp.multiplayer.app:4317/v1/traces",p="https://otlp.multiplayer.app:4317/v1/logs",m="https://api.multiplayer.app",h="multiplayer.",A="multiplayer.workspace.id",g="multiplayer.project.id",f="multiplayer.platform.id",_="multiplayer.session.auto-save",E="multiplayer.session.auto-save.reason",b="multiplayer.platform.name",y="multiplayer.client.id",T="multiplayer.integration.id",S="multiplayer.session.id",v="multiplayer.http.proxy",C="multiplayer.http.proxy.type",R="multiplayer.http.request.body",I="multiplayer.http.response.body",w="multiplayer.http.request.headers",L="multiplayer.http.response.headers",O="multiplayer.http.response.body.encoding",P="multiplayer.rpc.request.message",N="multiplayer.rpc.request.message.encoding",x="multiplayer.rpc.response.message",M="multiplayer.rpc.grpc.request.message",k="multiplayer.rpc.request.message.encoding",D="multiplayer.rpc.grpc.response.message",B="multiplayer.messaging.message.body",j="multiplayer.messaging.message.body.encoding",U="multiplayer.session-recorder.version",G="***MASKED***"},"../session-recorder-common/dist/esm/constants/constants.browser.js":(e,t,n)=>{"use strict";n.d(t,{ATTR_MULTIPLAYER_CLIENT_ID:()=>s.ATTR_MULTIPLAYER_CLIENT_ID,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE:()=>s.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON:()=>s.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE:()=>s.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING:()=>s.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING,ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE:()=>s.ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE,ATTR_MULTIPLAYER_HTTP_PROXY:()=>s.ATTR_MULTIPLAYER_HTTP_PROXY,ATTR_MULTIPLAYER_HTTP_PROXY_TYPE:()=>s.ATTR_MULTIPLAYER_HTTP_PROXY_TYPE,ATTR_MULTIPLAYER_HTTP_REQUEST_BODY:()=>s.ATTR_MULTIPLAYER_HTTP_REQUEST_BODY,ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS:()=>s.ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY:()=>s.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING:()=>s.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING,ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS:()=>s.ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS,ATTR_MULTIPLAYER_INTEGRATION_ID:()=>s.ATTR_MULTIPLAYER_INTEGRATION_ID,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY:()=>s.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING:()=>s.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING,ATTR_MULTIPLAYER_PLATFORM_ID:()=>s.ATTR_MULTIPLAYER_PLATFORM_ID,ATTR_MULTIPLAYER_PLATFORM_NAME:()=>s.ATTR_MULTIPLAYER_PLATFORM_NAME,ATTR_MULTIPLAYER_PROJECT_ID:()=>s.ATTR_MULTIPLAYER_PROJECT_ID,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE:()=>s.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING:()=>s.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING,ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE:()=>s.ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE,ATTR_MULTIPLAYER_SESSION_ID:()=>s.ATTR_MULTIPLAYER_SESSION_ID,ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION:()=>s.ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION,ATTR_MULTIPLAYER_WORKSPACE_ID:()=>s.ATTR_MULTIPLAYER_WORKSPACE_ID,MASK_PLACEHOLDER:()=>s.MASK_PLACEHOLDER,MULTIPLAYER_ATTRIBUTE_PREFIX:()=>s.MULTIPLAYER_ATTRIBUTE_PREFIX,MULTIPLAYER_BASE_API_URL:()=>s.MULTIPLAYER_BASE_API_URL,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_GRPC_URL:()=>s.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_GRPC_URL,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_HTTP_URL:()=>s.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_HTTP_URL,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL:()=>s.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_GRPC_URL:()=>s.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_GRPC_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL:()=>s.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL:()=>s.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL,MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX:()=>s.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX,MULTIPLAYER_TRACE_DEBUG_PREFIX:()=>s.MULTIPLAYER_TRACE_DEBUG_PREFIX,MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH:()=>s.MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH,MULTIPLAYER_TRACE_DOC_PREFIX:()=>s.MULTIPLAYER_TRACE_DOC_PREFIX});var s=n("../session-recorder-common/dist/esm/constants/constants.base.js")},"../session-recorder-common/dist/esm/exporters/SessionRecorderBrowserTraceExporter.js":(e,t,n)=>{"use strict";n.d(t,{SessionRecorderBrowserTraceExporter:()=>i});var s=n("../../node_modules/@opentelemetry/exporter-trace-otlp-http/build/esm/platform/browser/OTLPTraceExporter.js"),r=n("../session-recorder-common/dist/esm/constants/constants.base.js"),o=function(){return o=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},i=function(){function e(e){void 0===e&&(e={}),this.usePostMessage=!1;var t=e.url,n=void 0===t?r.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL:t,s=e.apiKey,i=e.headers,a=void 0===i?{}:i,l=e.timeoutMillis,c=void 0===l?3e4:l,u=e.keepAlive,d=void 0===u||u,p=e.concurrencyLimit,m=void 0===p?20:p,h=e.postMessageType,A=void 0===h?"MULTIPLAYER_SESSION_DEBUGGER_LIB":h,g=e.postMessageTargetOrigin,f=void 0===g?"*":g;this.config=o(o({},e),{url:n,apiKey:s,headers:a,timeoutMillis:c,keepAlive:d,concurrencyLimit:m}),this.postMessageType=A,this.postMessageTargetOrigin=f,this.exporter=this._createExporter()}return e.prototype.export=function(e,t){var n=this,s=e.filter(function(e){var t=e.spanContext().traceId;return t.startsWith(r.MULTIPLAYER_TRACE_DEBUG_PREFIX)||t.startsWith(r.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX)});0!==s.length?this.usePostMessage?this.exportViaPostMessage(s,t):this.exporter.export(s,function(e){0===e.code?t(e):n.config.usePostMessageFallback?(n.usePostMessage=!0,n.exportViaPostMessage(s,t)):t(e)}):t({code:0})},e.prototype.shutdown=function(){return this.exporter.shutdown()},e.prototype.exportViaPostMessage=function(e,t){var n=this;if("undefined"!=typeof window)try{window.postMessage({action:"traces",type:this.postMessageType,payload:e.map(function(e){return n._serializeSpan(e)})},this.postMessageTargetOrigin),t({code:0})}catch(e){t({code:1})}else t({code:1})},e.prototype._serializeSpan=function(e){var t;return{_spanContext:e.spanContext(),name:e.name,kind:e.kind,links:e.links,ended:e.ended,events:e.events,status:e.status,endTime:e.endTime,startTime:e.startTime,duration:e.duration,attributes:e.attributes,parentSpanId:null===(t=e.parentSpanContext)||void 0===t?void 0:t.spanId,droppedAttributesCount:e.droppedAttributesCount,droppedEventsCount:e.droppedEventsCount,droppedLinksCount:e.droppedLinksCount,resource:{attributes:e.resource.attributes,asyncAttributesPending:e.resource.asyncAttributesPending}}},e.prototype._createExporter=function(){return new s.OTLPTraceExporter({url:this.config.url,headers:o(o({"Content-Type":"application/json"},this.config.apiKey?{Authorization:this.config.apiKey}:{}),this.config.headers||{}),timeoutMillis:this.config.timeoutMillis,keepAlive:this.config.keepAlive,concurrencyLimit:this.config.concurrencyLimit})},e.prototype.setApiKey=function(e){this.config.apiKey=e,this.exporter=this._createExporter()},e}()},"../session-recorder-common/dist/esm/exporters/index-browser.js":(e,t,n)=>{"use strict";n.d(t,{SessionRecorderBrowserTraceExporter:()=>s.SessionRecorderBrowserTraceExporter});var s=n("../session-recorder-common/dist/esm/exporters/SessionRecorderBrowserTraceExporter.js")},"../session-recorder-common/dist/esm/index-browser.js":(e,t,n)=>{"use strict";n.d(t,{ATTR_MULTIPLAYER_CLIENT_ID:()=>s.ATTR_MULTIPLAYER_CLIENT_ID,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE:()=>s.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON:()=>s.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE:()=>s.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING:()=>s.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING,ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE:()=>s.ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE,ATTR_MULTIPLAYER_HTTP_PROXY:()=>s.ATTR_MULTIPLAYER_HTTP_PROXY,ATTR_MULTIPLAYER_HTTP_PROXY_TYPE:()=>s.ATTR_MULTIPLAYER_HTTP_PROXY_TYPE,ATTR_MULTIPLAYER_HTTP_REQUEST_BODY:()=>s.ATTR_MULTIPLAYER_HTTP_REQUEST_BODY,ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS:()=>s.ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY:()=>s.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING:()=>s.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING,ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS:()=>s.ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS,ATTR_MULTIPLAYER_INTEGRATION_ID:()=>s.ATTR_MULTIPLAYER_INTEGRATION_ID,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY:()=>s.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING:()=>s.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING,ATTR_MULTIPLAYER_PLATFORM_ID:()=>s.ATTR_MULTIPLAYER_PLATFORM_ID,ATTR_MULTIPLAYER_PLATFORM_NAME:()=>s.ATTR_MULTIPLAYER_PLATFORM_NAME,ATTR_MULTIPLAYER_PROJECT_ID:()=>s.ATTR_MULTIPLAYER_PROJECT_ID,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE:()=>s.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING:()=>s.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING,ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE:()=>s.ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE,ATTR_MULTIPLAYER_SESSION_ID:()=>s.ATTR_MULTIPLAYER_SESSION_ID,ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION:()=>s.ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION,ATTR_MULTIPLAYER_WORKSPACE_ID:()=>s.ATTR_MULTIPLAYER_WORKSPACE_ID,MASK_PLACEHOLDER:()=>s.MASK_PLACEHOLDER,MULTIPLAYER_ATTRIBUTE_PREFIX:()=>s.MULTIPLAYER_ATTRIBUTE_PREFIX,MULTIPLAYER_BASE_API_URL:()=>s.MULTIPLAYER_BASE_API_URL,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_GRPC_URL:()=>s.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_GRPC_URL,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_HTTP_URL:()=>s.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_HTTP_URL,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL:()=>s.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_GRPC_URL:()=>s.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_GRPC_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL:()=>s.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL:()=>s.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL,MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX:()=>s.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX,MULTIPLAYER_TRACE_DEBUG_PREFIX:()=>s.MULTIPLAYER_TRACE_DEBUG_PREFIX,MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH:()=>s.MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH,MULTIPLAYER_TRACE_DOC_PREFIX:()=>s.MULTIPLAYER_TRACE_DOC_PREFIX,SessionRecorderBrowserTraceExporter:()=>l.SessionRecorderBrowserTraceExporter,SessionRecorderIdGenerator:()=>r.SessionRecorderIdGenerator,SessionRecorderSdk:()=>i,SessionRecorderTraceIdRatioBasedSampler:()=>o.SessionRecorderTraceIdRatioBasedSampler,SessionType:()=>a.SessionType});var s=n("../session-recorder-common/dist/esm/constants/constants.browser.js"),r=n("../session-recorder-common/dist/esm/SessionRecorderIdGenerator.js"),o=n("../session-recorder-common/dist/esm/SessionRecorderTraceIdRatioBasedSampler.js"),i=n("../session-recorder-common/dist/esm/sdk/index.js"),a=n("../session-recorder-common/dist/esm/type/index.js"),l=n("../session-recorder-common/dist/esm/exporters/index-browser.js")},"../session-recorder-common/dist/esm/sdk/capture-exception.js":(e,t,n)=>{"use strict";n.d(t,{captureException:()=>i});var s=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace/status.js"),i=function(e){if(e){var t=s.trace.getSpan(r.context.active());t&&(t.recordException(e),t.setStatus({code:o.SpanStatusCode.ERROR,message:e.message}))}}},"../session-recorder-common/dist/esm/sdk/id-generator.js":(e,t,n)=>{"use strict";n.d(t,{getIdGenerator:()=>r});var s=Array(32),r=function(e){return function(){for(var t=0;t<2*e;t++)s[t]=Math.floor(16*Math.random())+48,s[t]>=58&&(s[t]+=39);return String.fromCharCode.apply(null,s.slice(0,2*e))}}},"../session-recorder-common/dist/esm/sdk/index.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{captureException:()=>a.captureException,getIdGenerator:()=>i.getIdGenerator,isGzip:()=>o.isGzip,mask:()=>s.default,saveContinuousSession:()=>c.saveContinuousSession,schemify:()=>r.default,sensitiveFields:()=>s.sensitiveFields,sensitiveHeaders:()=>s.sensitiveHeaders,setAttribute:()=>l.setAttribute,setGrpcRequestMessage:()=>l.setGrpcRequestMessage,setGrpcResponseMessage:()=>l.setGrpcResponseMessage,setHttpRequestBody:()=>l.setHttpRequestBody,setHttpRequestHeaders:()=>l.setHttpRequestHeaders,setHttpResponseBody:()=>l.setHttpResponseBody,setHttpResponseHeaders:()=>l.setHttpResponseHeaders,setMessageBody:()=>l.setMessageBody,setRpcRequestMessage:()=>l.setRpcRequestMessage,setRpcResponseMessage:()=>l.setRpcResponseMessage});var s=n("../session-recorder-common/dist/esm/sdk/mask.js"),r=n("../session-recorder-common/dist/esm/sdk/schemify.js"),o=n("../session-recorder-common/dist/esm/sdk/is-gzip.js"),i=n("../session-recorder-common/dist/esm/sdk/id-generator.js"),a=n("../session-recorder-common/dist/esm/sdk/capture-exception.js"),l=n("../session-recorder-common/dist/esm/sdk/set-attribute.js"),c=n("../session-recorder-common/dist/esm/sdk/save-continuous-deb-session.js")},"../session-recorder-common/dist/esm/sdk/is-gzip.js":(e,t,n)=>{"use strict";n.d(t,{isGzip:()=>s});var s=function(e){return!(!e||e.length<3)&&(31===e[0]&&139===e[1]&&8===e[2])}},"../session-recorder-common/dist/esm/sdk/mask.js":(e,t,n)=>{"use strict";n.d(t,{default:()=>l,sensitiveFields:()=>r,sensitiveHeaders:()=>o});var s=n("../session-recorder-common/dist/esm/constants/constants.base.js"),r=["password","pass","passwd","pwd","token","access_token","accessToken","refresh_token","refreshToken","secret","api_key","apiKey","authorization","auth_token","authToken","jwt","session_id","sessionId","sessionToken","client_secret","clientSecret","private_key","privateKey","public_key","publicKey","key","encryption_key","encryptionKey","credit_card","creditCard","card_number","cardNumber","cvv","cvc","ssn","sin","pin","security_code","securityCode","bank_account","bankAccount","iban","swift","bic","routing_number","routingNumber","license_key","licenseKey","otp","mfa_code","mfaCode","phone_number","phoneNumber","email","address","dob","tax_id","taxId","passport_number","passportNumber","driver_license","driverLicense","set-cookie","cookie","authorization","proxyAuthorization"],o=["set-cookie","cookie","authorization","proxyAuthorization"],i=function(e,t){void 0===t&&(t=0);var n=typeof e,r="object"===n,o=!1;if(Array.isArray(e)&&(o=!0),!(t>8&&(r||o))){if(o)return e.map(function(e){return i(e,t+1)},e);if(r){for(var a in e)e[a]=i(e[a],t+1);return e}return"string"===n?s.MASK_PLACEHOLDER:e}},a=function(e,t){var n=typeof e,r="object"===n,o=new Set(t);if(Array.isArray(e))return e.map(function(e){return a(e,t)},e);if(r){for(var i in e)o.has(i)?e[i]=s.MASK_PLACEHOLDER:e[i]=a(e[i],t);return e}return e};const l=function(e){return void 0===e&&(e=[]),function(t,n){var s,r;try{s=JSON.parse(t)}catch(e){s=t}return"string"!=typeof(r=e.length?a(s,e):i(s))&&(r=JSON.stringify(r)),r}}},"../session-recorder-common/dist/esm/sdk/save-continuous-deb-session.js":(e,t,n)=>{"use strict";n.d(t,{saveContinuousSession:()=>i});var s=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),o=n("../session-recorder-common/dist/esm/constants/constants.base.js"),i=function(e){var t=s.trace.getSpan(r.context.active());t&&(null==t||t.setAttribute(o.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE,!0),(null==e?void 0:e.length)&&(null==t||t.addEvent(o.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON,{reason:e})))}},"../session-recorder-common/dist/esm/sdk/schemify.js":(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var s=n("../../node_modules/to-json-schema/lib/index.js"),r=(null==s?void 0:n.n(s)())||s,o={strings:{preProcessFnc:function(e,t){return(null==e?void 0:e.length)>=30?t("some_string"):t(e)}},arrays:{mode:"first"}};const i=function(e,t,n){if(void 0===t&&(t=!0),void 0===n&&(n=o),!e)return"";var s;if("string"==typeof e)try{s=JSON.parse(e)}catch(t){return e}else{if("object"!=typeof e)return e;s=e}try{var i=r(s,n);return t?JSON.stringify(i):i}catch(e){return""}}},"../session-recorder-common/dist/esm/sdk/set-attribute.js":(e,t,n)=>{"use strict";n.d(t,{setAttribute:()=>a,setGrpcRequestMessage:()=>A,setGrpcResponseMessage:()=>g,setHttpRequestBody:()=>l,setHttpRequestHeaders:()=>c,setHttpResponseBody:()=>u,setHttpResponseHeaders:()=>d,setMessageBody:()=>p,setRpcRequestMessage:()=>m,setRpcResponseMessage:()=>h});var s=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),r=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),o=n("../session-recorder-common/dist/esm/constants/constants.base.js"),i=n("../session-recorder-common/dist/esm/sdk/mask.js"),a=function(e,t){var n=s.trace.getSpan(r.context.active());n&&n.setAttribute(e,t)},l=function(e,t){void 0===t&&(t={mask:!0});var n=s.trace.getSpan(r.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(o.ATTR_MULTIPLAYER_HTTP_REQUEST_BODY,e))},c=function(e,t){void 0===t&&(t={mask:!0});var n=s.trace.getSpan(r.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveHeaders)(e,n)),n.setAttribute(o.ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS,e))},u=function(e,t){void 0===t&&(t={mask:!0});var n=s.trace.getSpan(r.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(o.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY,e))},d=function(e,t){void 0===t&&(t={mask:!0});var n=s.trace.getSpan(r.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(o.ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS,e))},p=function(e,t){void 0===t&&(t={mask:!0});var n=s.trace.getSpan(r.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(o.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY,e))},m=function(e,t){void 0===t&&(t={mask:!0});var n=s.trace.getSpan(r.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(o.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE,e))},h=function(e,t){void 0===t&&(t={mask:!0});var n=s.trace.getSpan(r.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(o.ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE,e))},A=function(e,t){void 0===t&&(t={mask:!0});var n=s.trace.getSpan(r.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(o.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE,e))},g=function(e,t){void 0===t&&(t={mask:!0});var n=s.trace.getSpan(r.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(o.ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE,e))}},"../session-recorder-common/dist/esm/type/index.js":(e,t,n)=>{"use strict";n.d(t,{SessionType:()=>s.SessionType});var s=n("../session-recorder-common/dist/esm/type/session-type.enum.js")},"../session-recorder-common/dist/esm/type/session-type.enum.js":(e,t,n)=>{"use strict";var s;n.d(t,{SessionType:()=>s}),function(e){e.CONTINUOUS="CONTINUOUS",e.PLAIN="MANUAL"}(s||(s={}))},"data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzMwMHB4JyB3aWR0aD0nMzAwcHgnICBmaWxsPSIjMDAwMDAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGRhdGEtbmFtZT0iTGF5ZXIgMSIgdmlld0JveD0iMCAwIDUwIDUwIiB4PSIwcHgiIHk9IjBweCI+PHRpdGxlPkRlc2lnbl90bnA8L3RpdGxlPjxwYXRoIGQ9Ik00OC43MSw0Mi45MUwzNC4wOCwyOC4yOSw0NC4zMywxOEExLDEsMCwwLDAsNDQsMTYuMzlMMi4zNSwxLjA2QTEsMSwwLDAsMCwxLjA2LDIuMzVMMTYuMzksNDRhMSwxLDAsMCwwLDEuNjUuMzZMMjguMjksMzQuMDgsNDIuOTEsNDguNzFhMSwxLDAsMCwwLDEuNDEsMGw0LjM4LTQuMzhBMSwxLDAsMCwwLDQ4LjcxLDQyLjkxWm0tNS4wOSwzLjY3TDI5LDMyYTEsMSwwLDAsMC0xLjQxLDBsLTkuODUsOS44NUwzLjY5LDMuNjlsMzguMTIsMTRMMzIsMjcuNThBMSwxLDAsMCwwLDMyLDI5TDQ2LjU5LDQzLjYyWiI+PC9wYXRoPjwvc3ZnPg==":e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzMwMHB4JyB3aWR0aD0nMzAwcHgnICBmaWxsPSIjMDAwMDAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGRhdGEtbmFtZT0iTGF5ZXIgMSIgdmlld0JveD0iMCAwIDUwIDUwIiB4PSIwcHgiIHk9IjBweCI+PHRpdGxlPkRlc2lnbl90bnA8L3RpdGxlPjxwYXRoIGQ9Ik00OC43MSw0Mi45MUwzNC4wOCwyOC4yOSw0NC4zMywxOEExLDEsMCwwLDAsNDQsMTYuMzlMMi4zNSwxLjA2QTEsMSwwLDAsMCwxLjA2LDIuMzVMMTYuMzksNDRhMSwxLDAsMCwwLDEuNjUuMzZMMjguMjksMzQuMDgsNDIuOTEsNDguNzFhMSwxLDAsMCwwLDEuNDEsMGw0LjM4LTQuMzhBMSwxLDAsMCwwLDQ4LjcxLDQyLjkxWm0tNS4wOSwzLjY3TDI5LDMyYTEsMSwwLDAsMC0xLjQxLDBsLTkuODUsOS44NUwzLjY5LDMuNjlsMzguMTIsMTRMMzIsMjcuNThBMSwxLDAsMCwwLDMyLDI5TDQ2LjU5LDQzLjYyWiI+PC9wYXRoPjwvc3ZnPg=="},"../../node_modules/@rrweb/packer/dist/base-ZCOD62p-.js":(e,t,n)=>{"use strict";n.d(t,{M:()=>Q,a:()=>q,s:()=>K,u:()=>Z,z:()=>X});var s=Uint8Array,r=Uint16Array,o=Uint32Array,i=new s([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),a=new s([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),l=new s([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c=function(e,t){for(var n=new r(31),s=0;s<31;++s)n[s]=t+=1<<e[s-1];var i=new o(n[30]);for(s=1;s<30;++s)for(var a=n[s];a<n[s+1];++a)i[a]=a-n[s]<<5|s;return[n,i]},u=c(i,2),d=u[0],p=u[1];d[28]=258,p[258]=28;for(var m=c(a,0),h=m[0],A=m[1],g=new r(32768),f=0;f<32768;++f){var _=(43690&f)>>>1|(21845&f)<<1;_=(61680&(_=(52428&_)>>>2|(13107&_)<<2))>>>4|(3855&_)<<4,g[f]=((65280&_)>>>8|(255&_)<<8)>>>1}var E=function(e,t,n){for(var s=e.length,o=0,i=new r(t);o<s;++o)++i[e[o]-1];var a,l=new r(t);for(o=0;o<t;++o)l[o]=l[o-1]+i[o-1]<<1;if(n){a=new r(1<<t);var c=15-t;for(o=0;o<s;++o)if(e[o])for(var u=o<<4|e[o],d=t-e[o],p=l[e[o]-1]++<<d,m=p|(1<<d)-1;p<=m;++p)a[g[p]>>>c]=u}else for(a=new r(s),o=0;o<s;++o)a[o]=g[l[e[o]-1]++]>>>15-e[o];return a},b=new s(288);for(f=0;f<144;++f)b[f]=8;for(f=144;f<256;++f)b[f]=9;for(f=256;f<280;++f)b[f]=7;for(f=280;f<288;++f)b[f]=8;var y=new s(32);for(f=0;f<32;++f)y[f]=5;var T=E(b,9,0),S=E(b,9,1),v=E(y,5,0),C=E(y,5,1),R=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},I=function(e,t,n){var s=t/8|0;return(e[s]|e[s+1]<<8)>>>(7&t)&n},w=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>>(7&t)},L=function(e){return(e/8|0)+(7&e&&1)},O=function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var i=new(e instanceof r?r:e instanceof o?o:s)(n-t);return i.set(e.subarray(t,n)),i},P=function(e,t,n){var r=e.length,o=!t||n,c=!n||n.i;n||(n={}),t||(t=new s(3*r));var u=function(e){var n=t.length;if(e>n){var r=new s(Math.max(2*n,e));r.set(t),t=r}},p=n.f||0,m=n.p||0,A=n.b||0,g=n.l,f=n.d,_=n.m,b=n.n,y=8*r;do{if(!g){n.f=p=I(e,m,1);var T=I(e,m+1,3);if(m+=3,!T){var v=e[(F=L(m)+4)-4]|e[F-3]<<8,P=F+v;if(P>r){if(c)throw"unexpected EOF";break}o&&u(A+v),t.set(e.subarray(F,P),A),n.b=A+=v,n.p=m=8*P;continue}if(1==T)g=S,f=C,_=9,b=5;else{if(2!=T)throw"invalid block type";var N=I(e,m,31)+257,x=I(e,m+10,15)+4,M=N+I(e,m+5,31)+1;m+=14;for(var k=new s(M),D=new s(19),B=0;B<x;++B)D[l[B]]=I(e,m+3*B,7);m+=3*x;var j=R(D),U=(1<<j)-1;if(!c&&m+M*(j+7)>y)break;var G=E(D,j,1);for(B=0;B<M;){var F,H=G[I(e,m,U)];if(m+=15&H,(F=H>>>4)<16)k[B++]=F;else{var Y=0,z=0;for(16==F?(z=3+I(e,m,3),m+=2,Y=k[B-1]):17==F?(z=3+I(e,m,7),m+=3):18==F&&(z=11+I(e,m,127),m+=7);z--;)k[B++]=Y}}var W=k.subarray(0,N),V=k.subarray(N);_=R(W),b=R(V),g=E(W,_,1),f=E(V,b,1)}if(m>y)throw"unexpected EOF"}o&&u(A+131072);for(var X=(1<<_)-1,Z=(1<<b)-1,q=_+b+18;c||m+q<y;){var K=(Y=g[w(e,m)&X])>>>4;if((m+=15&Y)>y)throw"unexpected EOF";if(!Y)throw"invalid length/literal";if(K<256)t[A++]=K;else{if(256==K){g=null;break}var Q=K-254;if(K>264){var $=i[B=K-257];Q=I(e,m,(1<<$)-1)+d[B],m+=$}var J=f[w(e,m)&Z],ee=J>>>4;if(!J)throw"invalid distance";m+=15&J;V=h[ee];if(ee>3){$=a[ee];V+=w(e,m)&(1<<$)-1,m+=$}if(m>y)throw"unexpected EOF";o&&u(A+131072);for(var te=A+Q;A<te;A+=4)t[A]=t[A-V],t[A+1]=t[A+1-V],t[A+2]=t[A+2-V],t[A+3]=t[A+3-V];A=te}}n.l=g,n.p=m,n.b=A,g&&(p=1,n.m=_,n.d=f,n.n=b)}while(!p);return A==t.length?t:O(t,0,A)},N=function(e,t,n){n<<=7&t;var s=t/8|0;e[s]|=n,e[s+1]|=n>>>8},x=function(e,t,n){n<<=7&t;var s=t/8|0;e[s]|=n,e[s+1]|=n>>>8,e[s+2]|=n>>>16},M=function(e,t){for(var n=[],o=0;o<e.length;++o)e[o]&&n.push({s:o,f:e[o]});var i=n.length,a=n.slice();if(!i)return[new s(0),0];if(1==i){var l=new s(n[0].s+1);return l[n[0].s]=1,[l,1]}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var c=n[0],u=n[1],d=0,p=1,m=2;for(n[0]={s:-1,f:c.f+u.f,l:c,r:u};p!=i-1;)c=n[n[d].f<n[m].f?d++:m++],u=n[d!=p&&n[d].f<n[m].f?d++:m++],n[p++]={s:-1,f:c.f+u.f,l:c,r:u};var h=a[0].s;for(o=1;o<i;++o)a[o].s>h&&(h=a[o].s);var A=new r(h+1),g=k(n[p-1],A,0);if(g>t){o=0;var f=0,_=g-t,E=1<<_;for(a.sort(function(e,t){return A[t.s]-A[e.s]||e.f-t.f});o<i;++o){var b=a[o].s;if(!(A[b]>t))break;f+=E-(1<<g-A[b]),A[b]=t}for(f>>>=_;f>0;){var y=a[o].s;A[y]<t?f-=1<<t-A[y]++-1:++o}for(;o>=0&&f;--o){var T=a[o].s;A[T]==t&&(--A[T],++f)}g=t}return[new s(A),g]},k=function(e,t,n){return-1==e.s?Math.max(k(e.l,t,n+1),k(e.r,t,n+1)):t[e.s]=n},D=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new r(++t),s=0,o=e[0],i=1,a=function(e){n[s++]=e},l=1;l<=t;++l)if(e[l]==o&&l!=t)++i;else{if(!o&&i>2){for(;i>138;i-=138)a(32754);i>2&&(a(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(a(o),--i;i>6;i-=6)a(8304);i>2&&(a(i-3<<5|8208),i=0)}for(;i--;)a(o);i=1,o=e[l]}return[n.subarray(0,s),t]},B=function(e,t){for(var n=0,s=0;s<t.length;++s)n+=e[s]*t[s];return n},j=function(e,t,n){var s=n.length,r=L(t+2);e[r]=255&s,e[r+1]=s>>>8,e[r+2]=255^e[r],e[r+3]=255^e[r+1];for(var o=0;o<s;++o)e[r+o+4]=n[o];return 8*(r+4+s)},U=function(e,t,n,s,o,c,u,d,p,m,h){N(t,h++,n),++o[256];for(var A=M(o,15),g=A[0],f=A[1],_=M(c,15),S=_[0],C=_[1],R=D(g),I=R[0],w=R[1],L=D(S),O=L[0],P=L[1],k=new r(19),U=0;U<I.length;++U)k[31&I[U]]++;for(U=0;U<O.length;++U)k[31&O[U]]++;for(var G=M(k,7),F=G[0],H=G[1],Y=19;Y>4&&!F[l[Y-1]];--Y);var z,W,V,X,Z=m+5<<3,q=B(o,b)+B(c,y)+u,K=B(o,g)+B(c,S)+u+14+3*Y+B(k,F)+(2*k[16]+3*k[17]+7*k[18]);if(Z<=q&&Z<=K)return j(t,h,e.subarray(p,p+m));if(N(t,h,1+(K<q)),h+=2,K<q){z=E(g,f,0),W=g,V=E(S,C,0),X=S;var Q=E(F,H,0);N(t,h,w-257),N(t,h+5,P-1),N(t,h+10,Y-4),h+=14;for(U=0;U<Y;++U)N(t,h+3*U,F[l[U]]);h+=3*Y;for(var $=[I,O],J=0;J<2;++J){var ee=$[J];for(U=0;U<ee.length;++U){var te=31&ee[U];N(t,h,Q[te]),h+=F[te],te>15&&(N(t,h,ee[U]>>>5&127),h+=ee[U]>>>12)}}}else z=T,W=b,V=v,X=y;for(U=0;U<d;++U)if(s[U]>255){te=s[U]>>>18&31;x(t,h,z[te+257]),h+=W[te+257],te>7&&(N(t,h,s[U]>>>23&31),h+=i[te]);var ne=31&s[U];x(t,h,V[ne]),h+=X[ne],ne>3&&(x(t,h,s[U]>>>5&8191),h+=a[ne])}else x(t,h,z[s[U]]),h+=W[s[U]];return x(t,h,z[256]),h+W[256]},G=new o([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new s(0),H=function(){var e=1,t=0;return{p:function(n){for(var s=e,r=t,o=n.length,i=0;i!=o;){for(var a=Math.min(i+5552,o);i<a;++i)r+=s+=n[i];s%=65521,r%=65521}e=s,t=r},d:function(){return(e>>>8<<16|(255&t)<<8|t>>>8)+2*((255&e)<<23)}}},Y=function(e,t,n,l,c){return function(e,t,n,l,c,u){var d=e.length,m=new s(l+d+5*(1+Math.floor(d/7e3))+c),h=m.subarray(l,m.length-c),g=0;if(!t||d<8)for(var f=0;f<=d;f+=65535){var _=f+65535;_<d?g=j(h,g,e.subarray(f,_)):(h[f]=u,g=j(h,g,e.subarray(f,d)))}else{for(var E=G[t-1],b=E>>>13,y=8191&E,T=(1<<n)-1,S=new r(32768),v=new r(T+1),C=Math.ceil(n/3),R=2*C,I=function(t){return(e[t]^e[t+1]<<C^e[t+2]<<R)&T},w=new o(25e3),P=new r(288),N=new r(32),x=0,M=0,k=(f=0,0),D=0,B=0;f<d;++f){var H=I(f),Y=32767&f,z=v[H];if(S[Y]=z,v[H]=Y,D<=f){var W=d-f;if((x>7e3||k>24576)&&W>423){g=U(e,h,0,w,P,N,M,k,B,f-B,g),k=x=M=0,B=f;for(var V=0;V<286;++V)P[V]=0;for(V=0;V<30;++V)N[V]=0}var X=2,Z=0,q=y,K=Y-z&32767;if(W>2&&H==I(f-K))for(var Q=Math.min(b,W)-1,$=Math.min(32767,f),J=Math.min(258,W);K<=$&&--q&&Y!=z;){if(e[f+X]==e[f+X-K]){for(var ee=0;ee<J&&e[f+ee]==e[f+ee-K];++ee);if(ee>X){if(X=ee,Z=K,ee>Q)break;var te=Math.min(K,ee-2),ne=0;for(V=0;V<te;++V){var se=f-K+V+32768&32767,re=se-S[se]+32768&32767;re>ne&&(ne=re,z=se)}}}K+=(Y=z)-(z=S[Y])+32768&32767}if(Z){w[k++]=268435456|p[X]<<18|A[Z];var oe=31&p[X],ie=31&A[Z];M+=i[oe]+a[ie],++P[257+oe],++N[ie],D=f+X,++x}else w[k++]=e[f],++P[e[f]]}}g=U(e,h,u,w,P,N,M,k,B,f-B,g),u||(g=j(h,g,F))}return O(m,0,l+L(g)+c)}(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,l,!c)},z=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},W=function(e,t){var n=t.level,s=0==n?0:n<6?1:9==n?3:2;e[0]=120,e[1]=s<<6|(s?32-2*s:1)},V=function(e){if(8!=(15&e[0])||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(32&e[1])throw"invalid zlib data: preset dictionaries not supported"};function X(e,t){void 0===t&&(t={});var n=H();n.p(e);var s=Y(e,t,2,4);return W(s,t),z(s,s.length-4,n.d()),s}function Z(e,t){return P((V(e),e.subarray(2,-4)),t)}function q(e,t){var n=e.length;if(!t&&"undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var r=new s(e.length+(e.length>>>1)),o=0,i=function(e){r[o++]=e},a=0;a<n;++a){if(o+5>r.length){var l=new s(o+8+(n-a<<1));l.set(r),r=l}var c=e.charCodeAt(a);c<128||t?i(c):c<2048?(i(192|c>>>6),i(128|63&c)):c>55295&&c<57344?(i(240|(c=65536+(1047552&c)|1023&e.charCodeAt(++a))>>>18),i(128|c>>>12&63),i(128|c>>>6&63),i(128|63&c)):(i(224|c>>>12),i(128|c>>>6&63),i(128|63&c))}return O(r,0,o)}function K(e,t){var n="";if(!t&&"undefined"!=typeof TextDecoder)return(new TextDecoder).decode(e);for(var s=0;s<e.length;){var r=e[s++];r<128||t?n+=String.fromCharCode(r):r<224?n+=String.fromCharCode((31&r)<<6|63&e[s++]):r<240?n+=String.fromCharCode((15&r)<<12|(63&e[s++])<<6|63&e[s++]):(r=((15&r)<<18|(63&e[s++])<<12|(63&e[s++])<<6|63&e[s++])-65536,n+=String.fromCharCode(55296|r>>10,56320|1023&r))}return n}const Q="v1"},"../../node_modules/@rrweb/packer/dist/pack.js":(e,t,n)=>{"use strict";n.d(t,{pack:()=>r});var s=n("../../node_modules/@rrweb/packer/dist/base-ZCOD62p-.js");const r=e=>{const t={...e,v:s.M};return(0,s.s)((0,s.z)((0,s.a)(JSON.stringify(t))),!0)}},"../../node_modules/@rrweb/packer/dist/packer.js":(e,t,n)=>{"use strict";n.d(t,{pack:()=>s.pack});var s=n("../../node_modules/@rrweb/packer/dist/pack.js");n("../../node_modules/@rrweb/packer/dist/unpack.js")},"../../node_modules/@rrweb/packer/dist/unpack.js":(e,t,n)=>{"use strict";n("../../node_modules/@rrweb/packer/dist/base-ZCOD62p-.js")},"../../node_modules/@rrweb/rrweb-plugin-console-record/dist/rrweb-plugin-console-record.js":(e,t,n)=>{"use strict";n.d(t,{getRecordConsolePlugin:()=>B});var s,r=Object.defineProperty,o=(e,t,n)=>(((e,t,n)=>{t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),i=Object.defineProperty,a=(e,t,n)=>(((e,t,n)=>{t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),l=Object.defineProperty,c=(e,t,n)=>(((e,t,n)=>{t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class u{constructor(){c(this,"idNodeMap",new Map),c(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;return(null==(t=this.getMeta(e))?void 0:t.id)??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function d(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!n&&d(e.parentNode,t,n);for(let n=e.classList.length;n--;){const s=e.classList[n];if(t.test(s))return!0}return!!n&&d(e.parentNode,t,n)}const p="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let m={map:{},getId:()=>(console.error(p),-1),getNode:()=>(console.error(p),null),removeNodeFromMap(){console.error(p)},has:()=>(console.error(p),!1),reset(){console.error(p)}};"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(m=new Proxy(m,{get:(e,t,n)=>("map"===t&&console.error(p),Reflect.get(e,t,n))}));let h=Date.now;function A(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}/[1-9][0-9]{12}/.test(Date.now().toString())||(h=()=>(new Date).getTime());function g(e){var t,n;let s=null;return(null==(n=null==(t=e.getRootNode)?void 0:t.call(e))?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(s=e.getRootNode().host),s}function f(e){let t,n=e;for(;t=g(n);)n=t;return n}function _(e){const t=e.ownerDocument;if(!t)return!1;const n=f(e);return t.contains(n)}const E=Object.freeze(Object.defineProperty({__proto__:null,StyleSheetMirror:class{constructor(){a(this,"id",1),a(this,"styleIDMap",new WeakMap),a(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}},get _mirror(){return m},closestElementOfNode:A,getBaseDimension:function e(t,n){var s,r;const o=null==(r=null==(s=t.ownerDocument)?void 0:s.defaultView)?void 0:r.frameElement;if(!o||o===n)return{x:0,y:0,relativeScale:1,absoluteScale:1};const i=o.getBoundingClientRect(),a=e(o,n),l=i.height/o.clientHeight;return{x:i.x*a.relativeScale+a.x,y:i.y*a.relativeScale+a.y,relativeScale:l,absoluteScale:a.absoluteScale*l}},getNestedRule:function e(t,n){const s=t[n[0]];return 1===n.length?s:e(s.cssRules[n[1]].cssRules,n.slice(2))},getPositionsAndIndex:function(e){const t=[...e],n=t.pop();return{positions:t,index:n}},getRootShadowHost:f,getShadowHost:g,getWindowHeight:function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight},getWindowScroll:function(e){var t,n,s,r,o,i;const a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:(null==a?void 0:a.documentElement.scrollLeft)||(null==(n=null==(t=null==a?void 0:a.body)?void 0:t.parentElement)?void 0:n.scrollLeft)||(null==(s=null==a?void 0:a.body)?void 0:s.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==a?void 0:a.documentElement.scrollTop)||(null==(o=null==(r=null==a?void 0:a.body)?void 0:r.parentElement)?void 0:o.scrollTop)||(null==(i=null==a?void 0:a.body)?void 0:i.scrollTop)||0}},getWindowWidth:function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth},hasShadowRoot:function(e){return Boolean(null==e?void 0:e.shadowRoot)},hookSetter:function e(t,n,s,r,o=window){const i=o.Object.getOwnPropertyDescriptor(t,n);return o.Object.defineProperty(t,n,r?s:{set(e){setTimeout(()=>{s.set.call(this,e)},0),i&&i.set&&i.set.call(this,e)}}),()=>e(t,n,i||{},!0)},inDom:function(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||_(e))},isAncestorRemoved:function e(t,n){if(function(e){const t=null==e?void 0:e.host;return Boolean((null==t?void 0:t.shadowRoot)===e)}(t))return!1;const s=n.getId(t);return!n.has(s)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,n))},isBlocked:function(e,t,n,s){if(!e)return!1;const r=A(e);if(!r)return!1;try{if("string"==typeof t){if(r.classList.contains(t))return!0;if(s&&null!==r.closest("."+t))return!0}else if(d(r,t,s))return!0}catch(e){}if(n){if(r.matches(n))return!0;if(s&&null!==r.closest(n))return!0}return!1},isIgnored:function(e,t,n){return!("TITLE"!==e.tagName||!n.headTitleMutations)||-2===t.getId(e)},isSerialized:function(e,t){return-1!==t.getId(e)},isSerializedIframe:function(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))},isSerializedStylesheet:function(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))},iterateResolveTree:function e(t,n){n(t.value);for(let s=t.children.length-1;s>=0;s--)e(t.children[s],n)},legacy_isTouchEvent:function(e){return Boolean(e.changedTouches)},get nowTimestamp(){return h},on:function(e,t,n=document){const s={capture:!0,passive:!0};return n.addEventListener(e,t,s),()=>n.removeEventListener(e,t,s)},patch:function(e,t,n){try{if(!(t in e))return()=>{};const s=e[t],r=n(s);return"function"==typeof r&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:s}})),e[t]=r,()=>{e[t]=s}}catch{return()=>{}}},polyfill:function(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),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})},queueToResolveTrees:function(e){const t={},n=(e,n)=>{const s={value:e,parent:n,children:[]};return t[e.node.id]=s,s},s=[];for(const r of e){const{nextId:e,parentId:o}=r;if(e&&e in t){const o=t[e];if(o.parent){const e=o.parent.children.indexOf(o);o.parent.children.splice(e,0,n(r,o.parent))}else{const e=s.indexOf(o);s.splice(e,0,n(r,null))}continue}if(o in t){const e=t[o];e.children.push(n(r,e));continue}s.push(n(r,null))}return s},shadowHostInDom:_,throttle:function(e,t,n={}){let s=null,r=0;return function(...o){const i=Date.now();r||!1!==n.leading||(r=i);const a=t-(i-r),l=this;a<=0||a>t?(s&&(clearTimeout(s),s=null),r=i,e.apply(l,o)):s||!1===n.trailing||(s=setTimeout(()=>{r=!1===n.leading?0:Date.now(),s=null,e.apply(l,o)},a))}},uniqueTextMutations:function(e){const t=new Set,n=[];for(let s=e.length;s--;){const r=e[s];t.has(r.id)||(n.push(r),t.add(r.id))}return n}},Symbol.toStringTag,{value:"Module"}));for(var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y="undefined"==typeof Uint8Array?[]:new Uint8Array(256),T=0;T<64;T++)y[b.charCodeAt(T)]=T;var S,v,C;"undefined"!=typeof window&&window.Blob&&new Blob([(S="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpCiAgICAgICAgcmV0dXJuIHRyYW5zcGFyZW50QmxvYk1hcC5nZXQoaWQpOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIHRyYW5zcGFyZW50QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICAgIHJldHVybiBiYXNlNjQ7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gIiI7CiAgICB9CiAgfQogIGNvbnN0IHdvcmtlciA9IHNlbGY7CiAgd29ya2VyLm9ubWVzc2FnZSA9IGFzeW5jIGZ1bmN0aW9uKGUpIHsKICAgIGlmICgiT2Zmc2NyZWVuQ2FudmFzIiBpbiBnbG9iYWxUaGlzKSB7CiAgICAgIGNvbnN0IHsgaWQsIGJpdG1hcCwgd2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMgfSA9IGUuZGF0YTsKICAgICAgY29uc3QgdHJhbnNwYXJlbnRCYXNlNjQgPSBnZXRUcmFuc3BhcmVudEJsb2JGb3IoCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0LAogICAgICAgIGRhdGFVUkxPcHRpb25zCiAgICAgICk7CiAgICAgIGNvbnN0IG9mZnNjcmVlbiA9IG5ldyBPZmZzY3JlZW5DYW52YXMod2lkdGgsIGhlaWdodCk7CiAgICAgIGNvbnN0IGN0eCA9IG9mZnNjcmVlbi5nZXRDb250ZXh0KCIyZCIpOwogICAgICBjdHguZHJhd0ltYWdlKGJpdG1hcCwgMCwgMCk7CiAgICAgIGJpdG1hcC5jbG9zZSgpOwogICAgICBjb25zdCBibG9iID0gYXdhaXQgb2Zmc2NyZWVuLmNvbnZlcnRUb0Jsb2IoZGF0YVVSTE9wdGlvbnMpOwogICAgICBjb25zdCB0eXBlID0gYmxvYi50eXBlOwogICAgICBjb25zdCBhcnJheUJ1ZmZlciA9IGF3YWl0IGJsb2IuYXJyYXlCdWZmZXIoKTsKICAgICAgY29uc3QgYmFzZTY0ID0gZW5jb2RlKGFycmF5QnVmZmVyKTsKICAgICAgaWYgKCFsYXN0QmxvYk1hcC5oYXMoaWQpICYmIGF3YWl0IHRyYW5zcGFyZW50QmFzZTY0ID09PSBiYXNlNjQpIHsKICAgICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkIH0pOwogICAgICB9CiAgICAgIGlmIChsYXN0QmxvYk1hcC5nZXQoaWQpID09PSBiYXNlNjQpCiAgICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkIH0pOwogICAgICB3b3JrZXIucG9zdE1lc3NhZ2UoewogICAgICAgIGlkLAogICAgICAgIHR5cGUsCiAgICAgICAgYmFzZTY0LAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodAogICAgICB9KTsKICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkOiBlLmRhdGEuaWQgfSk7CiAgICB9CiAgfTsKfSkoKTsKLy8jIHNvdXJjZU1hcHBpbmdVUkw9aW1hZ2UtYml0bWFwLWRhdGEtdXJsLXdvcmtlci1CWjFyN1JKRC5qcy5tYXAK",Uint8Array.from(atob(S),e=>e.charCodeAt(0)))],{type:"text/javascript;charset=utf-8"});try{if(2!==Array.from([1],e=>2*e)[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=(null==(s=e.contentWindow)?void 0:s.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}new u,(C=v||(v={}))[C.NotStarted=0]="NotStarted",C[C.Running=1]="Running",C[C.Stopped=2]="Stopped";class R{constructor(e){o(this,"fileName"),o(this,"functionName"),o(this,"lineNumber"),o(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}toString(){const e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?`${this.functionName} (${this.fileName}:${e}:${t})`:`${this.fileName}:${e}:${t}`}}const I=/(^|@)\S+:\d+/,w=/^\s*at .*(\S+:\d+|\(native\))/m,L=/^(eval@)?(\[native code])?$/,O={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(w)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];const t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw new Error(`Cannot parse given url: ${e}`);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(w)},this).map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));let t=e.replace(/^\s+/,"").replace(/\(eval code/g,"(");const n=t.match(/ (\((.+):(\d+):(\d+)\)$)/);t=n?t.replace(n[0],""):t;const s=t.split(/\s+/).slice(1),r=this.extractLocation(n?n[1]:s.pop()),o=s.join(" ")||void 0,i=["eval","<anonymous>"].indexOf(r[0])>-1?void 0:r[0];return new R({functionName:o,fileName:i,lineNumber:r[1],columnNumber:r[2]})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(e){return!e.match(L)},this).map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new R({functionName:e});{const t=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=e.match(t),s=n&&n[1]?n[1]:void 0,r=this.extractLocation(e.replace(t,""));return new R({functionName:s,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})}},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){const t=/Line (\d+).*script (?:in )?(\S+)/i,n=e.message.split("\n"),s=[];for(let e=2,r=n.length;e<r;e+=2){const r=t.exec(n[e]);r&&s.push(new R({fileName:r[2],lineNumber:parseFloat(r[1])}))}return s},parseOpera10:function(e){const t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,n=e.stacktrace.split("\n"),s=[];for(let e=0,r=n.length;e<r;e+=2){const r=t.exec(n[e]);r&&s.push(new R({functionName:r[3]||void 0,fileName:r[2],lineNumber:parseFloat(r[1])}))}return s},parseOpera11:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(I)&&!e.match(/^Error created at/)},this).map(function(e){const t=e.split("@"),n=this.extractLocation(t.pop()),s=(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new R({functionName:s,fileName:n[0],lineNumber:n[1],columnNumber:n[2]})},this)}};function P(e){if(!e||!e.outerHTML)return"";let t="";for(;e.parentElement;){let n=e.localName;if(!n)break;n=n.toLowerCase();const s=e.parentElement,r=[];if(s.children&&s.children.length>0)for(let e=0;e<s.children.length;e++){const t=s.children[e];t.localName&&t.localName.toLowerCase&&t.localName.toLowerCase()===n&&r.push(t)}r.length>1&&(n+=`:eq(${r.indexOf(e)})`),t=n+(t?">"+t:""),e=s}return t}function N(e){return"[object Object]"===Object.prototype.toString.call(e)}function x(e,t){if(0===t)return!0;const n=Object.keys(e);for(const s of n)if(N(e[s])&&x(e[s],t-1))return!0;return!1}function M(e,t){const n={numOfKeysLimit:50,depthOfLimit:4};Object.assign(n,t);const s=[],r=[];return JSON.stringify(e,function(e,t){if(s.length>0){const n=s.indexOf(this);~n?s.splice(n+1):s.push(this),~n?r.splice(n,1/0,e):r.push(e),~s.indexOf(t)&&(t=s[0]===t?"[Circular ~]":"[Circular ~."+r.slice(0,s.indexOf(t)).join(".")+"]")}else s.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(function(e){if(N(e)&&Object.keys(e).length>n.numOfKeysLimit)return!0;if("function"==typeof e)return!0;if(N(e)&&x(e,n.depthOfLimit))return!0;return!1}(t))return function(e){let t=e.toString();n.stringLengthLimit&&t.length>n.stringLengthLimit&&(t=`${t.slice(0,n.stringLengthLimit)}...`);return t}(t);if("bigint"==typeof t)return t.toString()+"n";if(t instanceof Event){const e={};for(const n in t){const s=t[n];Array.isArray(s)?e[n]=P(s.length?s[0]:null):e[n]=s}return e}return t instanceof Node?t instanceof HTMLElement?t?t.outerHTML:"":t.nodeName:t instanceof Error?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t})}const k={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function D(e,t,n){const s=n?Object.assign({},k,n):k,r=s.logger;if(!r)return()=>{};let o;o="string"==typeof r?t[r]:r;let i=0,a=!1;const l=[];if(s.level.includes("error")){const n=t=>{const n=t.message,r=t.error,o=O.parse(r).map(e=>e.toString()),i=[M(n,s.stringifyOptions)];e({level:"error",trace:o,payload:i})};t.addEventListener("error",n),l.push(()=>{t.removeEventListener("error",n)});const r=t=>{let n,r;t.reason instanceof Error?(n=t.reason,r=[M(`Uncaught (in promise) ${n.name}: ${n.message}`,s.stringifyOptions)]):(n=new Error,r=[M("Uncaught (in promise)",s.stringifyOptions),M(t.reason,s.stringifyOptions)]);const o=O.parse(n).map(e=>e.toString());e({level:"error",trace:o,payload:r})};t.addEventListener("unhandledrejection",r),l.push(()=>{t.removeEventListener("unhandledrejection",r)})}for(const e of s.level)l.push(c(o,e));return()=>{l.forEach(e=>e())};function c(t,n){return t[n]?E.patch(t,n,t=>(...r)=>{if(t.apply(this,r),!a){a=!0;try{const t=O.parse(new Error).map(e=>e.toString()).splice(1),o=r.map(e=>M(e,s.stringifyOptions));i++,i<s.lengthThreshold?e({level:n,trace:t,payload:o}):i===s.lengthThreshold&&e({level:"warn",trace:[],payload:[M("The number of log records reached the threshold.")]})}catch(e){t("rrweb logger error:",e,...r)}finally{a=!1}}}):()=>{}}}const B=e=>({name:"rrweb/console@1",observer:D,options:e})},"../../node_modules/@socket.io/component-emitter/lib/esm/index.js":(e,t,n)=>{"use strict";function s(e){if(e)return function(e){for(var t in s.prototype)e[t]=s.prototype[t];return e}(e)}n.d(t,{Emitter:()=>s}),s.prototype.on=s.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},s.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},s.prototype.off=s.prototype.removeListener=s.prototype.removeAllListeners=s.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,s=this._callbacks["$"+e];if(!s)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var r=0;r<s.length;r++)if((n=s[r])===t||n.fn===t){s.splice(r,1);break}return 0===s.length&&delete this._callbacks["$"+e],this},s.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],s=1;s<arguments.length;s++)t[s-1]=arguments[s];if(n){s=0;for(var r=(n=n.slice(0)).length;s<r;++s)n[s].apply(this,t)}return this},s.prototype.emitReserved=s.prototype.emit,s.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},s.prototype.hasListeners=function(e){return!!this.listeners(e).length}},"../../node_modules/dompurify/dist/purify.es.mjs":(e,t,n)=>{"use strict";n.d(t,{default:()=>ae});const{entries:s,setPrototypeOf:r,isFrozen:o,getPrototypeOf:i,getOwnPropertyDescriptor:a}=Object;let{freeze:l,seal:c,create:u}=Object,{apply:d,construct:p}="undefined"!=typeof Reflect&&Reflect;l||(l=function(e){return e}),c||(c=function(e){return e}),d||(d=function(e,t,n){return e.apply(t,n)}),p||(p=function(e,t){return new e(...t)});const m=w(Array.prototype.forEach),h=w(Array.prototype.lastIndexOf),A=w(Array.prototype.pop),g=w(Array.prototype.push),f=w(Array.prototype.splice),_=w(String.prototype.toLowerCase),E=w(String.prototype.toString),b=w(String.prototype.match),y=w(String.prototype.replace),T=w(String.prototype.indexOf),S=w(String.prototype.trim),v=w(Object.prototype.hasOwnProperty),C=w(RegExp.prototype.test),R=(I=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return p(I,t)});var I;function w(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,s=new Array(n>1?n-1:0),r=1;r<n;r++)s[r-1]=arguments[r];return d(e,t,s)}}function L(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_;r&&r(e,null);let s=t.length;for(;s--;){let r=t[s];if("string"==typeof r){const e=n(r);e!==r&&(o(t)||(t[s]=e),r=e)}e[r]=!0}return e}function O(e){for(let t=0;t<e.length;t++){v(e,t)||(e[t]=null)}return e}function P(e){const t=u(null);for(const[n,r]of s(e)){v(e,n)&&(Array.isArray(r)?t[n]=O(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=P(r):t[n]=r)}return t}function N(e,t){for(;null!==e;){const n=a(e,t);if(n){if(n.get)return w(n.get);if("function"==typeof n.value)return w(n.value)}e=i(e)}return function(){return null}}const x=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),M=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),k=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=l(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),B=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),j=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),U=l(["#text"]),G=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),F=l(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),H=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Y=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),z=c(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=c(/<%[\w\W]*|[\w\W]*%>/gm),V=c(/\$\{[\w\W]*/gm),X=c(/^data-[\-\w.\u00B7-\uFFFF]+$/),Z=c(/^aria-[\-\w]+$/),q=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=c(/^(?:\w+script|data):/i),Q=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$=c(/^html$/i),J=c(/^[a-z][.\w]*(-[.\w]+)+$/i);var ee=Object.freeze({__proto__:null,ARIA_ATTR:Z,ATTR_WHITESPACE:Q,CUSTOM_ELEMENT:J,DATA_ATTR:X,DOCTYPE_NAME:$,ERB_EXPR:W,IS_ALLOWED_URI:q,IS_SCRIPT_OR_DATA:K,MUSTACHE_EXPR:z,TMPLIT_EXPR:V});const te=1,ne=3,se=7,re=8,oe=9,ie=function(){return"undefined"==typeof window?null:window};var ae=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ie();const n=t=>e(t);if(n.version="3.2.5",n.removed=[],!t||!t.document||t.document.nodeType!==oe||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const o=r,i=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:c,Node:d,Element:p,NodeFilter:I,NamedNodeMap:w=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:O,DOMParser:z,trustedTypes:W}=t,V=p.prototype,X=N(V,"cloneNode"),Z=N(V,"remove"),K=N(V,"nextSibling"),Q=N(V,"childNodes"),J=N(V,"parentNode");if("function"==typeof c){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ae,le="";const{implementation:ce,createNodeIterator:ue,createDocumentFragment:de,getElementsByTagName:pe}=r,{importNode:me}=o;let he={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof s&&"function"==typeof J&&ce&&void 0!==ce.createHTMLDocument;const{MUSTACHE_EXPR:Ae,ERB_EXPR:ge,TMPLIT_EXPR:fe,DATA_ATTR:_e,ARIA_ATTR:Ee,IS_SCRIPT_OR_DATA:be,ATTR_WHITESPACE:ye,CUSTOM_ELEMENT:Te}=ee;let{IS_ALLOWED_URI:Se}=ee,ve=null;const Ce=L({},[...x,...M,...k,...B,...U]);let Re=null;const Ie=L({},[...G,...F,...H,...Y]);let we=Object.seal(u(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Le=null,Oe=null,Pe=!0,Ne=!0,xe=!1,Me=!0,ke=!1,De=!0,Be=!1,je=!1,Ue=!1,Ge=!1,Fe=!1,He=!1,Ye=!0,ze=!1,We=!0,Ve=!1,Xe={},Ze=null;const qe=L({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ke=null;const Qe=L({},["audio","video","img","source","image","track"]);let $e=null;const Je=L({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml";let st=nt,rt=!1,ot=null;const it=L({},[et,tt,nt],E);let at=L({},["mi","mo","mn","ms","mtext"]),lt=L({},["annotation-xml"]);const ct=L({},["title","style","font","a","script"]);let ut=null;const dt=["application/xhtml+xml","text/html"];let pt=null,mt=null;const ht=r.createElement("form"),At=function(e){return e instanceof RegExp||e instanceof Function},gt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!mt||mt!==e){if(e&&"object"==typeof e||(e={}),e=P(e),ut=-1===dt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,pt="application/xhtml+xml"===ut?E:_,ve=v(e,"ALLOWED_TAGS")?L({},e.ALLOWED_TAGS,pt):Ce,Re=v(e,"ALLOWED_ATTR")?L({},e.ALLOWED_ATTR,pt):Ie,ot=v(e,"ALLOWED_NAMESPACES")?L({},e.ALLOWED_NAMESPACES,E):it,$e=v(e,"ADD_URI_SAFE_ATTR")?L(P(Je),e.ADD_URI_SAFE_ATTR,pt):Je,Ke=v(e,"ADD_DATA_URI_TAGS")?L(P(Qe),e.ADD_DATA_URI_TAGS,pt):Qe,Ze=v(e,"FORBID_CONTENTS")?L({},e.FORBID_CONTENTS,pt):qe,Le=v(e,"FORBID_TAGS")?L({},e.FORBID_TAGS,pt):{},Oe=v(e,"FORBID_ATTR")?L({},e.FORBID_ATTR,pt):{},Xe=!!v(e,"USE_PROFILES")&&e.USE_PROFILES,Pe=!1!==e.ALLOW_ARIA_ATTR,Ne=!1!==e.ALLOW_DATA_ATTR,xe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ke=e.SAFE_FOR_TEMPLATES||!1,De=!1!==e.SAFE_FOR_XML,Be=e.WHOLE_DOCUMENT||!1,Ge=e.RETURN_DOM||!1,Fe=e.RETURN_DOM_FRAGMENT||!1,He=e.RETURN_TRUSTED_TYPE||!1,Ue=e.FORCE_BODY||!1,Ye=!1!==e.SANITIZE_DOM,ze=e.SANITIZE_NAMED_PROPS||!1,We=!1!==e.KEEP_CONTENT,Ve=e.IN_PLACE||!1,Se=e.ALLOWED_URI_REGEXP||q,st=e.NAMESPACE||nt,at=e.MATHML_TEXT_INTEGRATION_POINTS||at,lt=e.HTML_INTEGRATION_POINTS||lt,we=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&At(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(we.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&At(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(we.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(we.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ke&&(Ne=!1),Fe&&(Ge=!0),Xe&&(ve=L({},U),Re=[],!0===Xe.html&&(L(ve,x),L(Re,G)),!0===Xe.svg&&(L(ve,M),L(Re,F),L(Re,Y)),!0===Xe.svgFilters&&(L(ve,k),L(Re,F),L(Re,Y)),!0===Xe.mathMl&&(L(ve,B),L(Re,H),L(Re,Y))),e.ADD_TAGS&&(ve===Ce&&(ve=P(ve)),L(ve,e.ADD_TAGS,pt)),e.ADD_ATTR&&(Re===Ie&&(Re=P(Re)),L(Re,e.ADD_ATTR,pt)),e.ADD_URI_SAFE_ATTR&&L($e,e.ADD_URI_SAFE_ATTR,pt),e.FORBID_CONTENTS&&(Ze===qe&&(Ze=P(Ze)),L(Ze,e.FORBID_CONTENTS,pt)),We&&(ve["#text"]=!0),Be&&L(ve,["html","head","body"]),ve.table&&(L(ve,["tbody"]),delete Le.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw R('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw R('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ae=e.TRUSTED_TYPES_POLICY,le=ae.createHTML("")}else void 0===ae&&(ae=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const s="data-tt-policy-suffix";t&&t.hasAttribute(s)&&(n=t.getAttribute(s));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(W,i)),null!==ae&&"string"==typeof le&&(le=ae.createHTML(""));l&&l(e),mt=e}},ft=L({},[...M,...k,...D]),_t=L({},[...B,...j]),Et=function(e){g(n.removed,{element:e});try{J(e).removeChild(e)}catch(t){Z(e)}},bt=function(e,t){try{g(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){g(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Ge||Fe)try{Et(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},yt=function(e){let t=null,n=null;if(Ue)e="<remove></remove>"+e;else{const t=b(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ut&&st===nt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const s=ae?ae.createHTML(e):e;if(st===nt)try{t=(new z).parseFromString(s,ut)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(st,"template",null);try{t.documentElement.innerHTML=rt?le:s}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(r.createTextNode(n),o.childNodes[0]||null),st===nt?pe.call(t,Be?"html":"body")[0]:Be?t.documentElement:o},Tt=function(e){return ue.call(e.ownerDocument||e,e,I.SHOW_ELEMENT|I.SHOW_COMMENT|I.SHOW_TEXT|I.SHOW_PROCESSING_INSTRUCTION|I.SHOW_CDATA_SECTION,null)},St=function(e){return e instanceof O&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof w)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},vt=function(e){return"function"==typeof d&&e instanceof d};function Ct(e,t,s){m(e,e=>{e.call(n,t,s,mt)})}const Rt=function(e){let t=null;if(Ct(he.beforeSanitizeElements,e,null),St(e))return Et(e),!0;const s=pt(e.nodeName);if(Ct(he.uponSanitizeElement,e,{tagName:s,allowedTags:ve}),e.hasChildNodes()&&!vt(e.firstElementChild)&&C(/<[/\w!]/g,e.innerHTML)&&C(/<[/\w!]/g,e.textContent))return Et(e),!0;if(e.nodeType===se)return Et(e),!0;if(De&&e.nodeType===re&&C(/<[/\w]/g,e.data))return Et(e),!0;if(!ve[s]||Le[s]){if(!Le[s]&&wt(s)){if(we.tagNameCheck instanceof RegExp&&C(we.tagNameCheck,s))return!1;if(we.tagNameCheck instanceof Function&&we.tagNameCheck(s))return!1}if(We&&!Ze[s]){const t=J(e)||e.parentNode,n=Q(e)||e.childNodes;if(n&&t){for(let s=n.length-1;s>=0;--s){const r=X(n[s],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,K(e))}}}return Et(e),!0}return e instanceof p&&!function(e){let t=J(e);t&&t.tagName||(t={namespaceURI:st,tagName:"template"});const n=_(e.tagName),s=_(t.tagName);return!!ot[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===s||at[s]):Boolean(ft[n]):e.namespaceURI===et?t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&<[s]:Boolean(_t[n]):e.namespaceURI===nt?!(t.namespaceURI===tt&&!lt[s])&&!(t.namespaceURI===et&&!at[s])&&!_t[n]&&(ct[n]||!ft[n]):!("application/xhtml+xml"!==ut||!ot[e.namespaceURI]))}(e)?(Et(e),!0):"noscript"!==s&&"noembed"!==s&&"noframes"!==s||!C(/<\/no(script|embed|frames)/i,e.innerHTML)?(ke&&e.nodeType===ne&&(t=e.textContent,m([Ae,ge,fe],e=>{t=y(t,e," ")}),e.textContent!==t&&(g(n.removed,{element:e.cloneNode()}),e.textContent=t)),Ct(he.afterSanitizeElements,e,null),!1):(Et(e),!0)},It=function(e,t,n){if(Ye&&("id"===t||"name"===t)&&(n in r||n in ht))return!1;if(Ne&&!Oe[t]&&C(_e,t));else if(Pe&&C(Ee,t));else if(!Re[t]||Oe[t]){if(!(wt(e)&&(we.tagNameCheck instanceof RegExp&&C(we.tagNameCheck,e)||we.tagNameCheck instanceof Function&&we.tagNameCheck(e))&&(we.attributeNameCheck instanceof RegExp&&C(we.attributeNameCheck,t)||we.attributeNameCheck instanceof Function&&we.attributeNameCheck(t))||"is"===t&&we.allowCustomizedBuiltInElements&&(we.tagNameCheck instanceof RegExp&&C(we.tagNameCheck,n)||we.tagNameCheck instanceof Function&&we.tagNameCheck(n))))return!1}else if($e[t]);else if(C(Se,y(n,ye,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==T(n,"data:")||!Ke[e]){if(xe&&!C(be,y(n,ye,"")));else if(n)return!1}else;return!0},wt=function(e){return"annotation-xml"!==e&&b(e,Te)},Lt=function(e){Ct(he.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||St(e))return;const s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Re,forceKeepAttr:void 0};let r=t.length;for(;r--;){const o=t[r],{name:i,namespaceURI:a,value:l}=o,c=pt(i);let u="value"===i?l:S(l);if(s.attrName=c,s.attrValue=u,s.keepAttr=!0,s.forceKeepAttr=void 0,Ct(he.uponSanitizeAttribute,e,s),u=s.attrValue,!ze||"id"!==c&&"name"!==c||(bt(i,e),u="user-content-"+u),De&&C(/((--!?|])>)|<\/(style|title)/i,u)){bt(i,e);continue}if(s.forceKeepAttr)continue;if(bt(i,e),!s.keepAttr)continue;if(!Me&&C(/\/>/i,u)){bt(i,e);continue}ke&&m([Ae,ge,fe],e=>{u=y(u,e," ")});const d=pt(e.nodeName);if(It(d,c,u)){if(ae&&"object"==typeof W&&"function"==typeof W.getAttributeType)if(a);else switch(W.getAttributeType(d,c)){case"TrustedHTML":u=ae.createHTML(u);break;case"TrustedScriptURL":u=ae.createScriptURL(u)}try{a?e.setAttributeNS(a,i,u):e.setAttribute(i,u),St(e)?Et(e):A(n.removed)}catch(e){}}}Ct(he.afterSanitizeAttributes,e,null)},Ot=function e(t){let n=null;const s=Tt(t);for(Ct(he.beforeSanitizeShadowDOM,t,null);n=s.nextNode();)Ct(he.uponSanitizeShadowNode,n,null),Rt(n),Lt(n),n.content instanceof a&&e(n.content);Ct(he.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=null,r=null,i=null,l=null;if(rt=!e,rt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!vt(e)){if("function"!=typeof e.toString)throw R("toString is not a function");if("string"!=typeof(e=e.toString()))throw R("dirty is not a string, aborting")}if(!n.isSupported)return e;if(je||gt(t),n.removed=[],"string"==typeof e&&(Ve=!1),Ve){if(e.nodeName){const t=pt(e.nodeName);if(!ve[t]||Le[t])throw R("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof d)s=yt("\x3c!----\x3e"),r=s.ownerDocument.importNode(e,!0),r.nodeType===te&&"BODY"===r.nodeName||"HTML"===r.nodeName?s=r:s.appendChild(r);else{if(!Ge&&!ke&&!Be&&-1===e.indexOf("<"))return ae&&He?ae.createHTML(e):e;if(s=yt(e),!s)return Ge?null:He?le:""}s&&Ue&&Et(s.firstChild);const c=Tt(Ve?e:s);for(;i=c.nextNode();)Rt(i),Lt(i),i.content instanceof a&&Ot(i.content);if(Ve)return e;if(Ge){if(Fe)for(l=de.call(s.ownerDocument);s.firstChild;)l.appendChild(s.firstChild);else l=s;return(Re.shadowroot||Re.shadowrootmode)&&(l=me.call(o,l,!0)),l}let u=Be?s.outerHTML:s.innerHTML;return Be&&ve["!doctype"]&&s.ownerDocument&&s.ownerDocument.doctype&&s.ownerDocument.doctype.name&&C($,s.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+s.ownerDocument.doctype.name+">\n"+u),ke&&m([Ae,ge,fe],e=>{u=y(u,e," ")}),ae&&He?ae.createHTML(u):u},n.setConfig=function(){gt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),je=!0},n.clearConfig=function(){mt=null,je=!1},n.isValidAttribute=function(e,t,n){mt||gt({});const s=pt(e),r=pt(t);return It(s,r,n)},n.addHook=function(e,t){"function"==typeof t&&g(he[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=h(he[e],t);return-1===n?void 0:f(he[e],n,1)[0]}return A(he[e])},n.removeHooks=function(e){he[e]=[]},n.removeAllHooks=function(){he={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}()},"../../node_modules/engine.io-client/build/esm/contrib/has-cors.js":(e,t,n)=>{"use strict";n.d(t,{hasCORS:()=>r});let s=!1;try{s="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}const r=s},"../../node_modules/engine.io-client/build/esm/contrib/parseqs.js":(e,t,n)=>{"use strict";function s(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function r(e){let t={},n=e.split("&");for(let e=0,s=n.length;e<s;e++){let s=n[e].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}n.d(t,{decode:()=>r,encode:()=>s})},"../../node_modules/engine.io-client/build/esm/contrib/parseuri.js":(e,t,n)=>{"use strict";n.d(t,{parse:()=>o});const s=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function o(e){if(e.length>2e3)throw"URI too long";const t=e,n=e.indexOf("["),o=e.indexOf("]");-1!=n&&-1!=o&&(e=e.substring(0,n)+e.substring(n,o).replace(/:/g,";")+e.substring(o,e.length));let i=s.exec(e||""),a={},l=14;for(;l--;)a[r[l]]=i[l]||"";return-1!=n&&-1!=o&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=function(e,t){const n=/\/{2,9}/g,s=t.replace(n,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||s.splice(0,1);"/"==t.slice(-1)&&s.splice(s.length-1,1);return s}(0,a.path),a.queryKey=function(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,s){t&&(n[t]=s)}),n}(0,a.query),a}},"../../node_modules/engine.io-client/build/esm/contrib/yeast.js":(e,t,n)=>{"use strict";n.d(t,{yeast:()=>u});const s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),r=64,o={};let i,a=0,l=0;function c(e){let t="";do{t=s[e%r]+t,e=Math.floor(e/r)}while(e>0);return t}function u(){const e=c(+new Date);return e!==i?(a=0,i=e):e+"."+c(a++)}for(;l<r;l++)o[s[l]]=l},"../../node_modules/engine.io-client/build/esm/globalThis.browser.js":(e,t,n)=>{"use strict";n.d(t,{globalThisShim:()=>s});const s="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},"../../node_modules/engine.io-client/build/esm/index.js":(e,t,n)=>{"use strict";n.d(t,{Socket:()=>s.Socket,installTimerFunctions:()=>r.installTimerFunctions,nextTick:()=>i.nextTick,parse:()=>o.parse});var s=n("../../node_modules/engine.io-client/build/esm/socket.js"),r=(n("../../node_modules/engine.io-client/build/esm/transport.js"),n("../../node_modules/engine.io-client/build/esm/transports/index.js"),n("../../node_modules/engine.io-client/build/esm/util.js")),o=n("../../node_modules/engine.io-client/build/esm/contrib/parseuri.js"),i=n("../../node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js");s.Socket.protocol},"../../node_modules/engine.io-client/build/esm/socket.js":(e,t,n)=>{"use strict";n.d(t,{Socket:()=>u});var s=n("../../node_modules/engine.io-client/build/esm/transports/index.js"),r=n("../../node_modules/engine.io-client/build/esm/util.js"),o=n("../../node_modules/engine.io-client/build/esm/contrib/parseqs.js"),i=n("../../node_modules/engine.io-client/build/esm/contrib/parseuri.js"),a=n("../../node_modules/@socket.io/component-emitter/lib/esm/index.js"),l=n("../../node_modules/engine.io-parser/build/esm/index.js"),c=n("../../node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js");class u extends a.Emitter{constructor(e,t={}){super(),this.binaryType=c.defaultBinaryType,this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=(0,i.parse)(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=(0,i.parse)(t.host).host),(0,r.installTimerFunctions)(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=(0,o.decode)(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=l.protocol,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new s.transports[e](n)}open(){let e;if(this.opts.rememberUpgrade&&u.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",e=>this.onClose("transport close",e))}probe(e){let t=this.createTransport(e),n=!1;u.priorWebsocketSuccess=!1;const s=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!n)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;u.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{n||"closed"!==this.readyState&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}}))};function r(){n||(n=!0,c(),t.close(),t=null)}const o=e=>{const n=new Error("probe error: "+e);n.transport=t.name,r(),this.emitReserved("upgradeError",n)};function i(){o("transport closed")}function a(){o("socket closed")}function l(e){t&&e.name!==t.name&&r()}const c=()=>{t.removeListener("open",s),t.removeListener("error",o),t.removeListener("close",i),this.off("close",a),this.off("upgrading",l)};t.once("open",s),t.once("error",o),t.once("close",i),this.once("close",a),this.once("upgrading",l),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{n||t.open()},200):t.open()}onOpen(){if(this.readyState="open",u.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){const n=this.writeBuffer[t].data;if(n&&(e+=(0,r.byteLength)(n)),t>0&&e>this.maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}write(e,t,n){return this.sendPacket("message",e,t,n),this}send(e,t,n){return this.sendPacket("message",e,t,n),this}sendPacket(e,t,n,s){if("function"==typeof t&&(s=t,t=void 0),"function"==typeof n&&(s=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const r={type:e,data:t,options:n};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),s&&this.once("flush",s),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}onError(e){u.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let n=0;const s=e.length;for(;n<s;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}u.protocol=l.protocol},"../../node_modules/engine.io-client/build/esm/transport.js":(e,t,n)=>{"use strict";n.d(t,{Transport:()=>l});var s=n("../../node_modules/engine.io-parser/build/esm/index.js"),r=n("../../node_modules/@socket.io/component-emitter/lib/esm/index.js"),o=n("../../node_modules/engine.io-client/build/esm/util.js"),i=n("../../node_modules/engine.io-client/build/esm/contrib/parseqs.js");class a extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class l extends r.Emitter{constructor(e){super(),this.writable=!1,(0,o.installTimerFunctions)(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,n){return super.emitReserved("error",new a(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=(0,s.decodePacket)(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=(0,i.encode)(e);return t.length?"?"+t:""}}},"../../node_modules/engine.io-client/build/esm/transports/index.js":(e,t,n)=>{"use strict";n.d(t,{transports:()=>i});var s=n("../../node_modules/engine.io-client/build/esm/transports/polling.js"),r=n("../../node_modules/engine.io-client/build/esm/transports/websocket.js"),o=n("../../node_modules/engine.io-client/build/esm/transports/webtransport.js");const i={websocket:r.WS,webtransport:o.WT,polling:s.Polling}},"../../node_modules/engine.io-client/build/esm/transports/polling.js":(e,t,n)=>{"use strict";n.d(t,{Polling:()=>p});var s=n("../../node_modules/engine.io-client/build/esm/transport.js"),r=n("../../node_modules/engine.io-client/build/esm/contrib/yeast.js"),o=n("../../node_modules/engine.io-parser/build/esm/index.js"),i=n("../../node_modules/engine.io-client/build/esm/transports/xmlhttprequest.browser.js"),a=n("../../node_modules/@socket.io/component-emitter/lib/esm/index.js"),l=n("../../node_modules/engine.io-client/build/esm/util.js"),c=n("../../node_modules/engine.io-client/build/esm/globalThis.browser.js");function u(){}const d=null!=new i.XHR({xdomain:!1}).responseType;class p extends s.Transport{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port}const t=e&&e.forceBase64;this.supportsBinary=d&&!t,this.opts.withCredentials&&(this.cookieJar=(0,i.createCookieJar)())}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){(0,o.decodePayload)(e,this.socket.binaryType).forEach(e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)}),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,(0,o.encodePayload)(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=(0,r.yeast)()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new m(this.uri(),e)}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}class m extends a.Emitter{constructor(e,t){super(),(0,l.installTimerFunctions)(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=void 0!==t.data?t.data:null,this.create()}create(){var e;const t=(0,l.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const n=this.xhr=new i.XHR(t);try{n.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let e in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&n.setRequestHeader(e,this.opts.extraHeaders[e])}}catch(e){}if("POST"===this.method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{n.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this.opts.cookieJar)||void 0===e||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{var e;3===n.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(n)),4===n.readyState&&(200===n.status||1223===n.status?this.onLoad():this.setTimeoutFn(()=>{this.onError("number"==typeof n.status?n.status:0)},0))},n.send(this.data)}catch(e){return void this.setTimeoutFn(()=>{this.onError(e)},0)}"undefined"!=typeof document&&(this.index=m.requestsCount++,m.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=u,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete m.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(m.requestsCount=0,m.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",h);else if("function"==typeof addEventListener){const e="onpagehide"in c.globalThisShim?"pagehide":"unload";addEventListener(e,h,!1)}function h(){for(let e in m.requests)m.requests.hasOwnProperty(e)&&m.requests[e].abort()}},"../../node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js":(e,t,n)=>{"use strict";n.d(t,{WebSocket:()=>o,defaultBinaryType:()=>a,nextTick:()=>r,usingBrowserWebSocket:()=>i});var s=n("../../node_modules/engine.io-client/build/esm/globalThis.browser.js");const r="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),o=s.globalThisShim.WebSocket||s.globalThisShim.MozWebSocket,i=!0,a="arraybuffer"},"../../node_modules/engine.io-client/build/esm/transports/websocket.js":(e,t,n)=>{"use strict";n.d(t,{WS:()=>c});var s=n("../../node_modules/engine.io-client/build/esm/transport.js"),r=n("../../node_modules/engine.io-client/build/esm/contrib/yeast.js"),o=n("../../node_modules/engine.io-client/build/esm/util.js"),i=n("../../node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js"),a=n("../../node_modules/engine.io-parser/build/esm/index.js");const l="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class c extends s.Transport{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,n=l?{}:(0,o.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=i.usingBrowserWebSocket&&!l?t?new i.WebSocket(e,t):new i.WebSocket(e):new i.WebSocket(e,t,n)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],s=t===e.length-1;(0,a.encodePacket)(n,this.supportsBinary,e=>{const t={};if(!i.usingBrowserWebSocket&&(n.options&&(t.compress=n.options.compress),this.opts.perMessageDeflate)){("string"==typeof e?Buffer.byteLength(e):e.length)<this.opts.perMessageDeflate.threshold&&(t.compress=!1)}try{i.usingBrowserWebSocket?this.ws.send(e):this.ws.send(e,t)}catch(e){}s&&(0,i.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=(0,r.yeast)()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!i.WebSocket}}},"../../node_modules/engine.io-client/build/esm/transports/webtransport.js":(e,t,n)=>{"use strict";n.d(t,{WT:()=>i});var s=n("../../node_modules/engine.io-client/build/esm/transport.js"),r=n("../../node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js"),o=n("../../node_modules/engine.io-parser/build/esm/index.js");class i extends s.Transport{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{const t=(0,o.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),s=(0,o.createPacketEncoderStream)();s.readable.pipeTo(e.writable),this.writer=s.writable.getWriter();const r=()=>{n.read().then(({done:e,value:t})=>{e||(this.onPacket(t),r())}).catch(e=>{})};r();const i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this.writer.write(i).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],s=t===e.length-1;this.writer.write(n).then(()=>{s&&(0,r.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}}},"../../node_modules/engine.io-client/build/esm/transports/xmlhttprequest.browser.js":(e,t,n)=>{"use strict";n.d(t,{XHR:()=>o,createCookieJar:()=>i});var s=n("../../node_modules/engine.io-client/build/esm/contrib/has-cors.js"),r=n("../../node_modules/engine.io-client/build/esm/globalThis.browser.js");function o(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||s.hasCORS))return new XMLHttpRequest}catch(e){}if(!t)try{return new(r.globalThisShim[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}function i(){}},"../../node_modules/engine.io-client/build/esm/util.js":(e,t,n)=>{"use strict";n.d(t,{byteLength:()=>c,installTimerFunctions:()=>a,pick:()=>r});var s=n("../../node_modules/engine.io-client/build/esm/globalThis.browser.js");function r(e,...t){return t.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{})}const o=s.globalThisShim.setTimeout,i=s.globalThisShim.clearTimeout;function a(e,t){t.useNativeTimers?(e.setTimeoutFn=o.bind(s.globalThisShim),e.clearTimeoutFn=i.bind(s.globalThisShim)):(e.setTimeoutFn=s.globalThisShim.setTimeout.bind(s.globalThisShim),e.clearTimeoutFn=s.globalThisShim.clearTimeout.bind(s.globalThisShim))}const l=1.33;function c(e){return"string"==typeof e?function(e){let t=0,n=0;for(let s=0,r=e.length;s<r;s++)t=e.charCodeAt(s),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(s++,n+=4);return n}(e):Math.ceil((e.byteLength||e.size)*l)}},"../../node_modules/engine.io-parser/build/esm/commons.js":(e,t,n)=>{"use strict";n.d(t,{ERROR_PACKET:()=>o,PACKET_TYPES:()=>s,PACKET_TYPES_REVERSE:()=>r});const s=Object.create(null);s.open="0",s.close="1",s.ping="2",s.pong="3",s.message="4",s.upgrade="5",s.noop="6";const r=Object.create(null);Object.keys(s).forEach(e=>{r[s[e]]=e});const o={type:"error",data:"parser error"}},"../../node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js":(e,t,n)=>{"use strict";n.d(t,{decode:()=>o});const s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<64;e++)r[s.charCodeAt(e)]=e;const o=e=>{let t,n,s,o,i,a=.75*e.length,l=e.length,c=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);const u=new ArrayBuffer(a),d=new Uint8Array(u);for(t=0;t<l;t+=4)n=r[e.charCodeAt(t)],s=r[e.charCodeAt(t+1)],o=r[e.charCodeAt(t+2)],i=r[e.charCodeAt(t+3)],d[c++]=n<<2|s>>4,d[c++]=(15&s)<<4|o>>2,d[c++]=(3&o)<<6|63&i;return u}},"../../node_modules/engine.io-parser/build/esm/decodePacket.browser.js":(e,t,n)=>{"use strict";n.d(t,{decodePacket:()=>i});var s=n("../../node_modules/engine.io-parser/build/esm/commons.js"),r=n("../../node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js");const o="function"==typeof ArrayBuffer,i=(e,t)=>{if("string"!=typeof e)return{type:"message",data:l(e,t)};const n=e.charAt(0);if("b"===n)return{type:"message",data:a(e.substring(1),t)};return s.PACKET_TYPES_REVERSE[n]?e.length>1?{type:s.PACKET_TYPES_REVERSE[n],data:e.substring(1)}:{type:s.PACKET_TYPES_REVERSE[n]}:s.ERROR_PACKET},a=(e,t)=>{if(o){const n=(0,r.decode)(e);return l(n,t)}return{base64:!0,data:e}},l=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer},"../../node_modules/engine.io-parser/build/esm/encodePacket.browser.js":(e,t,n)=>{"use strict";n.d(t,{encodePacket:()=>a,encodePacketToBinary:()=>d});var s=n("../../node_modules/engine.io-parser/build/esm/commons.js");const r="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),o="function"==typeof ArrayBuffer,i=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,a=({type:e,data:t},n,a)=>r&&t instanceof Blob?n?a(t):l(t,a):o&&(t instanceof ArrayBuffer||i(t))?n?a(t):l(new Blob([t]),a):a(s.PACKET_TYPES[e]+(t||"")),l=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function c(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let u;function d(e,t){return r&&e.data instanceof Blob?e.data.arrayBuffer().then(c).then(t):o&&(e.data instanceof ArrayBuffer||i(e.data))?t(c(e.data)):void a(e,!1,e=>{u||(u=new TextEncoder),t(u.encode(e))})}},"../../node_modules/engine.io-parser/build/esm/index.js":(e,t,n)=>{"use strict";n.d(t,{createPacketDecoderStream:()=>m,createPacketEncoderStream:()=>c,decodePacket:()=>r.decodePacket,decodePayload:()=>l,encodePacket:()=>s.encodePacket,encodePayload:()=>a,protocol:()=>h});var s=n("../../node_modules/engine.io-parser/build/esm/encodePacket.browser.js"),r=n("../../node_modules/engine.io-parser/build/esm/decodePacket.browser.js"),o=n("../../node_modules/engine.io-parser/build/esm/commons.js");const i=String.fromCharCode(30),a=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((e,a)=>{(0,s.encodePacket)(e,!1,e=>{r[a]=e,++o===n&&t(r.join(i))})})},l=(e,t)=>{const n=e.split(i),s=[];for(let e=0;e<n.length;e++){const o=(0,r.decodePacket)(n[e],t);if(s.push(o),"error"===o.type)break}return s};function c(){return new TransformStream({transform(e,t){(0,s.encodePacketToBinary)(e,n=>{const s=n.length;let r;if(s<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,s);else if(s<65536){r=new Uint8Array(3);const e=new DataView(r.buffer);e.setUint8(0,126),e.setUint16(1,s)}else{r=new Uint8Array(9);const e=new DataView(r.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(s))}e.data&&"string"!=typeof e.data&&(r[0]|=128),t.enqueue(r),t.enqueue(n)})}})}let u;function d(e){return e.reduce((e,t)=>e+t.length,0)}function p(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let s=0;for(let r=0;r<t;r++)n[r]=e[0][s++],s===e[0].length&&(e.shift(),s=0);return e.length&&s<e[0].length&&(e[0]=e[0].slice(s)),n}function m(e,t){u||(u=new TextDecoder);const n=[];let s=0,i=-1,a=!1;return new TransformStream({transform(l,c){for(n.push(l);;){if(0===s){if(d(n)<1)break;const e=p(n,1);a=!(128&~e[0]),i=127&e[0],s=i<126?3:126===i?1:2}else if(1===s){if(d(n)<2)break;const e=p(n,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),s=3}else if(2===s){if(d(n)<8)break;const e=p(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),r=t.getUint32(0);if(r>Math.pow(2,21)-1){c.enqueue(o.ERROR_PACKET);break}i=r*Math.pow(2,32)+t.getUint32(4),s=3}else{if(d(n)<i)break;const e=p(n,i);c.enqueue((0,r.decodePacket)(a?e:u.decode(e),t)),s=0}if(0===i||i>e){c.enqueue(o.ERROR_PACKET);break}}}})}const h=4},"../../node_modules/lib0/array.js":(e,t,n)=>{"use strict";n.d(t,{from:()=>s});n("../../node_modules/lib0/set.js");const s=Array.from;Array.isArray},"../../node_modules/lib0/map.js":(e,t,n)=>{"use strict";n.d(t,{create:()=>s,setIfUndefined:()=>r});const s=()=>new Map,r=(e,t,n)=>{let s=e.get(t);return void 0===s&&e.set(t,s=n()),s}},"../../node_modules/lib0/observable.js":(e,t,n)=>{"use strict";n.d(t,{Observable:()=>i});var s=n("../../node_modules/lib0/map.js"),r=n("../../node_modules/lib0/set.js"),o=n("../../node_modules/lib0/array.js");class i{constructor(){this._observers=s.create()}on(e,t){s.setIfUndefined(this._observers,e,r.create).add(t)}once(e,t){const n=(...s)=>{this.off(e,n),t(...s)};this.on(e,n)}off(e,t){const n=this._observers.get(e);void 0!==n&&(n.delete(t),0===n.size&&this._observers.delete(e))}emit(e,t){return o.from((this._observers.get(e)||s.create()).values()).forEach(e=>e(...t))}destroy(){this._observers=s.create()}}},"../../node_modules/lib0/set.js":(e,t,n)=>{"use strict";n.d(t,{create:()=>s,from:()=>r});const s=()=>new Set,r=e=>new Set(e)},"../../node_modules/rrweb/dist/rrweb.js":(e,t,n)=>{"use strict";n.d(t,{EventType:()=>ve,record:()=>vt});var s,r=Object.defineProperty,o=(e,t,n)=>(((e,t,n)=>{t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),i=Object.defineProperty,a=(e,t,n)=>(((e,t,n)=>{t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),l=(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))(l||{});function c(e){return e.nodeType===e.ELEMENT_NODE}function u(e){const t=null==e?void 0:e.host;return Boolean((null==t?void 0:t.shadowRoot)===e)}function d(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function p(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,m).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function m(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=p(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(e.cssText);return t||e.cssText}class h{constructor(){a(this,"idNodeMap",new Map),a(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;return(null==(t=this.getMeta(e))?void 0:t.id)??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function A(){return new h}function g({element:e,maskInputOptions:t,tagName:n,type:s,value:r,maskInputFn:o}){let i=r||"";const a=s&&f(s);return(t[n.toLowerCase()]||a&&t[a])&&(i=o?o(i,e):"*".repeat(i.length)),i}function f(e){return e.toLowerCase()}const _="__rrweb_original__";function E(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?f(t):null}function b(e,t){let n;try{n=new URL(e,t??window.location.href)}catch(e){return null}const s=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(null==s?void 0:s[1])??null}let y=1;const T=new RegExp("[^a-z0-9-_:]"),S=-2;function v(){return y++}let C,R;const I=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,w=/^(?:[a-z+]+:)?\/\//i,L=/^www\..*/i,O=/^(data:)([^,]*),(.*)/i;function P(e,t){return(e||"").replace(I,(e,n,s,r,o,i)=>{const a=s||o||i,l=n||r||"";if(!a)return e;if(w.test(a)||L.test(a))return`url(${l}${a}${l})`;if(O.test(a))return`url(${l}${a}${l})`;if("/"===a[0])return`url(${l}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${l})`;const c=t.split("/"),u=a.split("/");c.pop();for(const e of u)"."!==e&&(".."===e?c.pop():c.push(e));return`url(${l}${c.join("/")}${l})`})}const N=/^[^ \t\n\r\u000c]+/,x=/^[, \t\n\r\u000c]+/;const M=new WeakMap;function k(e,t){return t&&""!==t.trim()?B(e,t):t}function D(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function B(e,t){let n=M.get(e);if(n||(n=e.createElement("a"),M.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function j(e,t,n,s){return s?"src"===n||"href"===n&&("use"!==t||"#"!==s[0])||"xlink:href"===n&&"#"!==s[0]?k(e,s):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function s(e){let s;const r=e.exec(t.substring(n));return r?(s=r[0],n+=s.length,s):""}const r=[];for(;s(x),!(n>=t.length);){let o=s(N);if(","===o.slice(-1))o=k(e,o.substring(0,o.length-1)),r.push(o);else{let s="";o=k(e,o);let i=!1;for(;;){const e=t.charAt(n);if(""===e){r.push((o+s).trim());break}if(i)")"===e&&(i=!1);else{if(","===e){n+=1,r.push((o+s).trim());break}"("===e&&(i=!0)}s+=e,n+=1}}}return r.join(", ")}(e,s):"style"===n?P(s,B(e)):"object"===t&&"data"===n?k(e,s):s:k(e,s):s}function U(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function G(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!n&&G(e.parentNode,t,n);for(let n=e.classList.length;n--;){const s=e.classList[n];if(t.test(s))return!0}return!!n&&G(e.parentNode,t,n)}function F(e,t,n,s){try{const r=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===r)return!1;if("string"==typeof t){if(s){if(r.closest(`.${t}`))return!0}else if(r.classList.contains(t))return!0}else if(G(r,t,s))return!0;if(n)if(s){if(r.closest(n))return!0}else if(r.matches(n))return!0}catch(e){}return!1}function H(e,t){const{doc:n,mirror:s,blockClass:r,blockSelector:o,needsMask:i,inlineStylesheet:a,maskInputOptions:c={},maskTextFn:u,maskInputFn:d,dataURLOptions:m={},inlineImages:h,recordCanvas:A,keepIframeSrcFn:b,newlyAddedElement:y=!1}=t,S=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,s);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:l.Document,childNodes:[],compatMode:e.compatMode}:{type:l.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:l.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:S};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:s,blockSelector:r,inlineStylesheet:o,maskInputOptions:i={},maskInputFn:a,dataURLOptions:c={},inlineImages:u,recordCanvas:d,keepIframeSrcFn:m,newlyAddedElement:h=!1,rootId:A}=t,b=function(e,t,n){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const s=e.classList[n];if(t.test(s))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,s,r),y=function(e){if(e instanceof HTMLFormElement)return"form";const t=f(e.tagName);return T.test(t)?"div":t}(e);let S={};const v=e.attributes.length;for(let t=0;t<v;t++){const s=e.attributes[t];U(y,s.name,s.value)||(S[s.name]=j(n,y,f(s.name),s.value))}if("link"===y&&o){const t=Array.from(n.styleSheets).find(t=>t.href===e.href);let s=null;t&&(s=p(t)),s&&(delete S.rel,delete S.href,S._cssText=P(s,t.href))}if("style"===y&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=p(e.sheet);t&&(S._cssText=P(t,B(n)))}if("input"===y||"textarea"===y||"select"===y){const t=e.value,n=e.checked;"radio"!==S.type&&"checkbox"!==S.type&&"submit"!==S.type&&"button"!==S.type&&t?S.value=g({element:e,type:E(e),tagName:y,value:t,maskInputOptions:i,maskInputFn:a}):n&&(S.checked=n)}"option"===y&&(e.selected&&!i.select?S.selected=!0:delete S.selected);if("canvas"===y&&d)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let s=0;s<e.height;s+=50){const r=t.getImageData,o=_ in r?r[_]:r;if(new Uint32Array(o.call(t,n,s,Math.min(50,e.width-n),Math.min(50,e.height-s)).data.buffer).some(e=>0!==e))return!1}return!0})(e)||(S.rr_dataURL=e.toDataURL(c.type,c.quality));else if(!("__context"in e)){const t=e.toDataURL(c.type,c.quality),s=n.createElement("canvas");s.width=e.width,s.height=e.height;t!==s.toDataURL(c.type,c.quality)&&(S.rr_dataURL=t)}if("img"===y&&u){C||(C=n.createElement("canvas"),R=C.getContext("2d"));const t=e,s=t.currentSrc||t.getAttribute("src")||"<unknown-src>",r=t.crossOrigin,o=()=>{t.removeEventListener("load",o);try{C.width=t.naturalWidth,C.height=t.naturalHeight,R.drawImage(t,0,0),S.rr_dataURL=C.toDataURL(c.type,c.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o));console.warn(`Cannot inline img src=${s}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(r?S.crossOrigin=r:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o)}if("audio"===y||"video"===y){const t=S;t.rr_mediaState=e.paused?"paused":"played",t.rr_mediaCurrentTime=e.currentTime,t.rr_mediaPlaybackRate=e.playbackRate,t.rr_mediaMuted=e.muted,t.rr_mediaLoop=e.loop,t.rr_mediaVolume=e.volume}h||(e.scrollLeft&&(S.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(S.rr_scrollTop=e.scrollTop));if(b){const{width:t,height:n}=e.getBoundingClientRect();S={class:S.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==y||m(S.src)||(e.contentDocument||(S.rr_src=S.src),delete S.src);let I;try{customElements.get(y)&&(I=!0)}catch(e){}return{type:l.Element,tagName:y,attributes:S,childNodes:[],isSVG:D(e)||void 0,needBlock:b,rootId:A,isCustom:I}}(e,{doc:n,blockClass:r,blockSelector:o,inlineStylesheet:a,maskInputOptions:c,maskInputFn:d,dataURLOptions:m,inlineImages:h,recordCanvas:A,keepIframeSrcFn:b,newlyAddedElement:y,rootId:S});case e.TEXT_NODE:return function(e,t){var n;const{needsMask:s,maskTextFn:r,rootId:o}=t,i=e.parentNode&&e.parentNode.tagName;let a=e.textContent;const c="STYLE"===i||void 0,u="SCRIPT"===i||void 0;if(c&&a){try{e.nextSibling||e.previousSibling||(null==(n=e.parentNode.sheet)?void 0:n.cssRules)&&(a=p(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}a=P(a,B(t.doc))}u&&(a="SCRIPT_PLACEHOLDER");!c&&!u&&a&&s&&(a=r?r(a,e.parentElement):a.replace(/[\S]/g,"*"));return{type:l.Text,textContent:a||"",isStyle:c,rootId:o}}(e,{doc:n,needsMask:i,maskTextFn:u,rootId:S});case e.CDATA_SECTION_NODE:return{type:l.CDATA,textContent:"",rootId:S};case e.COMMENT_NODE:return{type:l.Comment,textContent:e.textContent||"",rootId:S};default:return!1}}function Y(e){return null==e?"":e.toLowerCase()}function z(e,t){const{doc:n,mirror:s,blockClass:r,blockSelector:o,maskTextClass:i,maskTextSelector:a,skipChild:p=!1,inlineStylesheet:m=!0,maskInputOptions:h={},maskTextFn:A,maskInputFn:g,slimDOMOptions:f,dataURLOptions:_={},inlineImages:E=!1,recordCanvas:y=!1,onSerialize:T,onIframeLoad:C,iframeLoadTimeout:R=5e3,onStylesheetLoad:I,stylesheetLoadTimeout:w=5e3,keepIframeSrcFn:L=()=>!1,newlyAddedElement:O=!1}=t;let{needsMask:P}=t,{preserveWhiteSpace:N=!0}=t;if(!P&&e.childNodes){P=F(e,i,a,void 0===P)}const x=H(e,{doc:n,mirror:s,blockClass:r,blockSelector:o,needsMask:P,inlineStylesheet:m,maskInputOptions:h,maskTextFn:A,maskInputFn:g,dataURLOptions:_,inlineImages:E,recordCanvas:y,keepIframeSrcFn:L,newlyAddedElement:O});if(!x)return console.warn(e,"not serialized"),null;let M;M=s.hasNode(e)?s.getId(e):!function(e,t){if(t.comment&&e.type===l.Comment)return!0;if(e.type===l.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===b(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Y(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Y(e.attributes.name)||"icon"===Y(e.attributes.rel)||"apple-touch-icon"===Y(e.attributes.rel)||"shortcut icon"===Y(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Y(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Y(e.attributes.property).match(/^(og|twitter|fb):/)||Y(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Y(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Y(e.attributes.name)||"googlebot"===Y(e.attributes.name)||"bingbot"===Y(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Y(e.attributes.name)||"generator"===Y(e.attributes.name)||"framework"===Y(e.attributes.name)||"publisher"===Y(e.attributes.name)||"progid"===Y(e.attributes.name)||Y(e.attributes.property).match(/^article:/)||Y(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Y(e.attributes.name)||"yandex-verification"===Y(e.attributes.name)||"csrf-token"===Y(e.attributes.name)||"p:domain_verify"===Y(e.attributes.name)||"verify-v1"===Y(e.attributes.name)||"verification"===Y(e.attributes.name)||"shopify-checkout-api-token"===Y(e.attributes.name)))return!0}}return!1}(x,f)&&(N||x.type!==l.Text||x.isStyle||x.textContent.replace(/^\s+|\s+$/gm,"").length)?v():S;const k=Object.assign(x,{id:M});if(s.add(e,k),M===S)return null;T&&T(e);let D=!p;if(k.type===l.Element){D=D&&!k.needBlock,delete k.needBlock;const t=e.shadowRoot;t&&d(t)&&(k.isShadowHost=!0)}if((k.type===l.Document||k.type===l.Element)&&D){f.headWhitespace&&k.type===l.Element&&"head"===k.tagName&&(N=!1);const t={doc:n,mirror:s,blockClass:r,blockSelector:o,needsMask:P,maskTextClass:i,maskTextSelector:a,skipChild:p,inlineStylesheet:m,maskInputOptions:h,maskTextFn:A,maskInputFn:g,slimDOMOptions:f,dataURLOptions:_,inlineImages:E,recordCanvas:y,preserveWhiteSpace:N,onSerialize:T,onIframeLoad:C,iframeLoadTimeout:R,onStylesheetLoad:I,stylesheetLoadTimeout:w,keepIframeSrcFn:L};if(k.type===l.Element&&"textarea"===k.tagName&&void 0!==k.attributes.value);else for(const n of Array.from(e.childNodes)){const e=z(n,t);e&&k.childNodes.push(e)}if(c(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const s=z(n,t);s&&(d(e.shadowRoot)&&(s.isShadow=!0),k.childNodes.push(s))}}return e.parentNode&&u(e.parentNode)&&d(e.parentNode)&&(k.isShadow=!0),k.type===l.Element&&"iframe"===k.tagName&&function(e,t,n){const s=e.contentWindow;if(!s)return;let r,o=!1;try{r=s.document.readyState}catch(e){return}if("complete"!==r){const s=setTimeout(()=>{o||(t(),o=!0)},n);return void e.addEventListener("load",()=>{clearTimeout(s),o=!0,t()})}const i="about:blank";if(s.location.href!==i||e.src===i||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{const t=e.contentDocument;if(t&&C){const n=z(t,{doc:t,mirror:s,blockClass:r,blockSelector:o,needsMask:P,maskTextClass:i,maskTextSelector:a,skipChild:!1,inlineStylesheet:m,maskInputOptions:h,maskTextFn:A,maskInputFn:g,slimDOMOptions:f,dataURLOptions:_,inlineImages:E,recordCanvas:y,preserveWhiteSpace:N,onSerialize:T,onIframeLoad:C,iframeLoadTimeout:R,onStylesheetLoad:I,stylesheetLoadTimeout:w,keepIframeSrcFn:L});n&&C(e,n)}},R),k.type===l.Element&&"link"===k.tagName&&"string"==typeof k.attributes.rel&&("stylesheet"===k.attributes.rel||"preload"===k.attributes.rel&&"string"==typeof k.attributes.href&&"css"===b(k.attributes.href))&&function(e,t,n){let s,r=!1;try{s=e.sheet}catch(e){return}if(s)return;const o=setTimeout(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{clearTimeout(o),r=!0,t()})}(e,()=>{if(I){const t=z(e,{doc:n,mirror:s,blockClass:r,blockSelector:o,needsMask:P,maskTextClass:i,maskTextSelector:a,skipChild:!1,inlineStylesheet:m,maskInputOptions:h,maskTextFn:A,maskInputFn:g,slimDOMOptions:f,dataURLOptions:_,inlineImages:E,recordCanvas:y,preserveWhiteSpace:N,onSerialize:T,onIframeLoad:C,iframeLoadTimeout:R,onStylesheetLoad:I,stylesheetLoadTimeout:w,keepIframeSrcFn:L});t&&I(e,t)}},w),k}const W=/(max|min)-device-(width|height)/,V=(new RegExp(W.source,"g"),/([^\\]):hover/);new RegExp(V.source,"g");function X(e,t,n=document){const s={capture:!0,passive:!0};return n.addEventListener(e,t,s),()=>n.removeEventListener(e,t,s)}const Z="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let q={map:{},getId:()=>(console.error(Z),-1),getNode:()=>(console.error(Z),null),removeNodeFromMap(){console.error(Z)},has:()=>(console.error(Z),!1),reset(){console.error(Z)}};function K(e,t,n={}){let s=null,r=0;return function(...o){const i=Date.now();r||!1!==n.leading||(r=i);const a=t-(i-r),l=this;a<=0||a>t?(s&&(clearTimeout(s),s=null),r=i,e.apply(l,o)):s||!1===n.trailing||(s=setTimeout(()=>{r=!1===n.leading?0:Date.now(),s=null,e.apply(l,o)},a))}}function Q(e,t,n,s,r=window){const o=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,s?n:{set(e){setTimeout(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>Q(e,t,o||{},!0)}function $(e,t,n){try{if(!(t in e))return()=>{};const s=e[t],r=n(s);return"function"==typeof r&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:s}})),e[t]=r,()=>{e[t]=s}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(q=new Proxy(q,{get:(e,t,n)=>("map"===t&&console.error(Z),Reflect.get(e,t,n))}));let J=Date.now;function ee(e){var t,n,s,r,o,i;const a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:(null==a?void 0:a.documentElement.scrollLeft)||(null==(n=null==(t=null==a?void 0:a.body)?void 0:t.parentElement)?void 0:n.scrollLeft)||(null==(s=null==a?void 0:a.body)?void 0:s.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==a?void 0:a.documentElement.scrollTop)||(null==(o=null==(r=null==a?void 0:a.body)?void 0:r.parentElement)?void 0:o.scrollTop)||(null==(i=null==a?void 0:a.body)?void 0:i.scrollTop)||0}}function te(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function ne(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function se(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}function re(e,t,n,s){if(!e)return!1;const r=se(e);if(!r)return!1;try{if("string"==typeof t){if(r.classList.contains(t))return!0;if(s&&null!==r.closest("."+t))return!0}else if(G(r,t,s))return!0}catch(e){}if(n){if(r.matches(n))return!0;if(s&&null!==r.closest(n))return!0}return!1}function oe(e,t){return-1!==t.getId(e)}function ie(e,t,n){return!("TITLE"!==e.tagName||!n.headTitleMutations)||t.getId(e)===S}function ae(e,t){if(u(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||ae(e.parentNode,t))}function le(e){return Boolean(e.changedTouches)}function ce(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),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}function ue(e){const t={},n=(e,n)=>{const s={value:e,parent:n,children:[]};return t[e.node.id]=s,s},s=[];for(const r of e){const{nextId:e,parentId:o}=r;if(e&&e in t){const o=t[e];if(o.parent){const e=o.parent.children.indexOf(o);o.parent.children.splice(e,0,n(r,o.parent))}else{const e=s.indexOf(o);s.splice(e,0,n(r,null))}continue}if(o in t){const e=t[o];e.children.push(n(r,e));continue}s.push(n(r,null))}return s}function de(e,t){t(e.value);for(let n=e.children.length-1;n>=0;n--)de(e.children[n],t)}function pe(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function me(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function he(e,t){var n,s;const r=null==(null==e.ownerDocument?void 0:n.defaultView)?void 0:s.frameElement;if(!r||r===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};const o=r.getBoundingClientRect(),i=he(r,t),a=o.height/r.clientHeight;return{x:o.x*i.relativeScale+i.x,y:o.y*i.relativeScale+i.y,relativeScale:a,absoluteScale:i.absoluteScale*a}}function Ae(e){return Boolean(null==e?void 0:e.shadowRoot)}function ge(e,t){const n=e[t[0]];return 1===t.length?n:ge(n.cssRules[t[1]].cssRules,t.slice(2))}function fe(e){const t=[...e],n=t.pop();return{positions:t,index:n}}function _e(e){const t=new Set,n=[];for(let s=e.length;s--;){const r=e[s];t.has(r.id)||(n.push(r),t.add(r.id))}return n}/[1-9][0-9]{12}/.test(Date.now().toString())||(J=()=>(new Date).getTime());class Ee{constructor(){o(this,"id",1),o(this,"styleIDMap",new WeakMap),o(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function be(e){var t,n;let s=null;return(null==(n=null==(t=e.getRootNode)?void 0:t.call(e))?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(s=e.getRootNode().host),s}function ye(e){let t,n=e;for(;t=be(n);)n=t;return n}function Te(e){const t=e.ownerDocument;if(!t)return!1;const n=ye(e);return t.contains(n)}function Se(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||Te(e))}Symbol.toStringTag;var ve=(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))(ve||{}),Ce=(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))(Ce||{}),Re=(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))(Re||{}),Ie=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Ie||{}),we=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(we||{}),Le=(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))(Le||{});function Oe(e){return"__ln"in e}class Pe{constructor(){o(this,"length",0),o(this,"head",null),o(this,"tail",null)}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=(null==t?void 0:t.next)||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Oe(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&Oe(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const Ne=(e,t)=>`${e}@${t}`;class xe{constructor(){o(this,"frozen",!1),o(this,"locked",!1),o(this,"texts",[]),o(this,"attributes",[]),o(this,"attributeMap",new WeakMap),o(this,"removes",[]),o(this,"mapRemoves",[]),o(this,"movedMap",{}),o(this,"addedSet",new Set),o(this,"movedSet",new Set),o(this,"droppedSet",new Set),o(this,"mutationCb"),o(this,"blockClass"),o(this,"blockSelector"),o(this,"maskTextClass"),o(this,"maskTextSelector"),o(this,"inlineStylesheet"),o(this,"maskInputOptions"),o(this,"maskTextFn"),o(this,"maskInputFn"),o(this,"keepIframeSrcFn"),o(this,"recordCanvas"),o(this,"inlineImages"),o(this,"slimDOMOptions"),o(this,"dataURLOptions"),o(this,"doc"),o(this,"mirror"),o(this,"iframeManager"),o(this,"stylesheetManager"),o(this,"shadowDomManager"),o(this,"canvasManager"),o(this,"processedNodeManager"),o(this,"unattachedDoc"),o(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),o(this,"emit",()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new Pe,s=e=>{let t=e,n=S;for(;n===S;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},r=r=>{if(!r.parentNode||!Se(r)||"TEXTAREA"===r.parentNode.tagName)return;const o=u(r.parentNode)?this.mirror.getId(be(r)):this.mirror.getId(r.parentNode),i=s(r);if(-1===o||-1===i)return n.addNode(r);const a=z(r,{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:e=>{pe(e,this.mirror)&&this.iframeManager.addIframe(e),me(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Ae(r)&&this.shadowDomManager.addShadowRoot(r.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});a&&(e.push({parentId:o,nextId:i,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)ke(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||r(e);for(const e of this.addedSet)De(this.droppedSet,e)||ke(this.removes,e,this.mirror)?De(this.movedSet,e)?r(e):this.droppedSet.add(e):r(e);let o=null;for(;n.length;){let e=null;if(o){const t=this.mirror.getId(o.value.parentNode),n=s(o.value);-1!==t&&-1!==n&&(e=o)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===s(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const s=t.parentNode.host;if(-1!==this.mirror.getId(s)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}o=e.previous,n.removeNode(e.value),r(e.value)}const i={texts:this.texts.map(e=>{const t=e.node;return t.parentNode&&"TEXTAREA"===t.parentNode.tagName&&this.genTextAreaValueMutation(t.parentNode),{id:this.mirror.getId(t),value:e.value}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),s=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+s).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(i.texts.length||i.attributes.length||i.removes.length||i.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.movedMap={},this.mutationCb(i))}),o(this,"genTextAreaValueMutation",e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t)),t.attributes.value=Array.from(e.childNodes,e=>e.textContent||"").join("")}),o(this,"processMutation",e=>{if(!ie(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":{const t=e.target.textContent;re(e.target,this.blockClass,this.blockSelector,!1)||t===e.oldValue||this.texts.push({value:F(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,se(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,s=e.target.getAttribute(n);if("value"===n){const e=E(t);s=g({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:e,value:s,maskInputFn:this.maskInputFn})}if(re(e.target,this.blockClass,this.blockSelector,!1)||s===e.oldValue)return;let r=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(s)){if(t.contentDocument)return;n="rr_src"}if(r||(r={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(e.target,r)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!U(t.tagName,n)&&(r.attributes[n]=j(this.doc,f(t.tagName),f(n),s),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const s=t.style.getPropertyValue(e),o=t.style.getPropertyPriority(e);s!==n.style.getPropertyValue(e)||o!==n.style.getPropertyPriority(e)?r.styleDiff[e]=""===o?s:[s,o]:r._unchangedStyles[e]=[s,o]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(r.styleDiff[e]=!1)}break}case"childList":if(re(e.target,this.blockClass,this.blockSelector,!0))return;if("TEXTAREA"===e.target.tagName)return void this.genTextAreaValueMutation(e.target);e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{const n=this.mirror.getId(t),s=u(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);re(e.target,this.blockClass,this.blockSelector,!1)||ie(t,this.mirror,this.slimDOMOptions)||!oe(t,this.mirror)||(this.addedSet.has(t)?(Me(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||ae(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Ne(n,s)]?Me(this.movedSet,t):this.removes.push({parentId:s,id:n,isShadow:!(!u(e.target)||!d(e.target))||void 0})),this.mapRemoves.push(t))})}}),o(this,"genAdds",(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(ie(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[Ne(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);re(e,this.blockClass,this.blockSelector,!1)||(e.childNodes.forEach(e=>this.genAdds(e)),Ae(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}})}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}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 Me(e,t){e.delete(t),t.childNodes.forEach(t=>Me(e,t))}function ke(e,t,n){return 0!==e.length&&function(e,t,n){let s=t.parentNode;for(;s;){const t=n.getId(s);if(e.some(e=>e.id===t))return!0;s=s.parentNode}return!1}(e,t,n)}function De(e,t){return 0!==e.size&&Be(e,t)}function Be(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||Be(e,n))}let je;const Ue=e=>{if(!je)return e;return(...t)=>{try{return e(...t)}catch(e){if(je&&!0===je(e))return;throw e}}},Ge=[];function Fe(e){try{if("composedPath"in e){const 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 He(e,t){var n,s;const r=new xe;Ge.push(r),r.init(e);let o=window.MutationObserver||window.__rrMutationObserver;const i=null==(s=null==(n=null==window?void 0:window.Zone)?void 0:n.__symbol__)?void 0:s.call(n,"MutationObserver");i&&window[i]&&(o=window[i]);const a=new o(Ue(r.processMutations.bind(r)));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function Ye({mouseInteractionCb:e,doc:t,mirror:n,blockClass:s,blockSelector:r,sampling:o}){if(!1===o.mouseInteraction)return()=>{};const i=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,a=[];let l=null;return Object.keys(Re).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==i[e]).forEach(o=>{let i=f(o);const c=(t=>o=>{const i=Fe(o);if(re(i,s,r,!0))return;let a=null,c=t;if("pointerType"in o){switch(o.pointerType){case"mouse":a=Ie.Mouse;break;case"touch":a=Ie.Touch;break;case"pen":a=Ie.Pen}a===Ie.Touch?Re[t]===Re.MouseDown?c="TouchStart":Re[t]===Re.MouseUp&&(c="TouchEnd"):Ie.Pen}else le(o)&&(a=Ie.Touch);null!==a?(l=a,(c.startsWith("Touch")&&a===Ie.Touch||c.startsWith("Mouse")&&a===Ie.Mouse)&&(a=null)):Re[t]===Re.Click&&(a=l,l=null);const u=le(o)?o.changedTouches[0]:o;if(!u)return;const d=n.getId(i),{clientX:p,clientY:m}=u;Ue(e)({type:Re[c],id:d,x:p,y:m,...null!==a&&{pointerType:a}})})(o);if(window.PointerEvent)switch(Re[o]){case Re.MouseDown:case Re.MouseUp:i=i.replace("mouse","pointer");break;case Re.TouchStart:case Re.TouchEnd:return}a.push(X(i,c,t))}),Ue(()=>{a.forEach(e=>e())})}function ze({scrollCb:e,doc:t,mirror:n,blockClass:s,blockSelector:r,sampling:o}){return X("scroll",Ue(K(Ue(o=>{const i=Fe(o);if(!i||re(i,s,r,!0))return;const a=n.getId(i);if(i===t&&t.defaultView){const n=ee(t.defaultView);e({id:a,x:n.left,y:n.top})}else e({id:a,x:i.scrollLeft,y:i.scrollTop})}),o.scroll||100)),t)}const We=["INPUT","TEXTAREA","SELECT"],Ve=new WeakMap;function Xe(e){return function(e,t){if(Qe("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Qe("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Qe("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Qe("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Ze(e,t,n){let s,r;return e?(e.ownerNode?s=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:s}):{}}function qe({mirror:e,stylesheetManager:t},n){var s,r,o;let i=null;i="#document"===n.nodeName?e.getId(n):e.getId(n.host);const a="#document"===n.nodeName?null==(s=n.defaultView)?void 0:s.Document:null==(o=null==(r=n.ownerDocument)?void 0:r.defaultView)?void 0:o.ShadowRoot,l=(null==a?void 0:a.prototype)?Object.getOwnPropertyDescriptor(null==a?void 0:a.prototype,"adoptedStyleSheets"):void 0;return null!==i&&-1!==i&&a&&l?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var e;return null==(e=l.get)?void 0:e.call(this)},set(e){var n;const s=null==(n=l.set)?void 0:n.call(this,e);if(null!==i&&-1!==i)try{t.adoptStyleSheets(e,i)}catch(e){}return s}}),Ue(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})})):()=>{}}function Ke(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let s;!function(e,t){const{mutationCb:n,mousemoveCb:s,mouseInteractionCb:r,scrollCb:o,viewportResizeCb:i,inputCb:a,mediaInteractionCb:l,styleSheetRuleCb:c,styleDeclarationCb:u,canvasMutationCb:d,fontCb:p,selectionCb:m,customElementCb:h}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),n(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),s(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),r(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),o(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),i(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),a(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),l(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),c(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),u(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),d(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),p(...e)},e.selectionCb=(...e)=>{t.selection&&t.selection(...e),m(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),h(...e)}}(e,t),e.recordDOM&&(s=He(e,e.doc));const r=function({mousemoveCb:e,sampling:t,doc:n,mirror:s}){if(!1===t.mousemove)return()=>{};const r="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let i,a=[];const l=K(Ue(t=>{const n=Date.now()-i;e(a.map(e=>(e.timeOffset-=n,e)),t),a=[],i=null}),o),c=Ue(K(Ue(e=>{const t=Fe(e),{clientX:n,clientY:r}=le(e)?e.changedTouches[0]:e;i||(i=J()),a.push({x:n,y:r,id:s.getId(t),timeOffset:J()-i}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?Ce.Drag:e instanceof MouseEvent?Ce.MouseMove:Ce.TouchMove)}),r,{trailing:!1})),u=[X("mousemove",c,n),X("touchmove",c,n),X("drag",c,n)];return Ue(()=>{u.forEach(e=>e())})}(e),o=Ye(e),i=ze(e),a=function({viewportResizeCb:e},{win:t}){let n=-1,s=-1;return X("resize",Ue(K(Ue(()=>{const t=te(),r=ne();n===t&&s===r||(e({width:Number(r),height:Number(t)}),n=t,s=r)}),200)),t)}(e,{win:n}),l=function({inputCb:e,doc:t,mirror:n,blockClass:s,blockSelector:r,ignoreClass:o,ignoreSelector:i,maskInputOptions:a,maskInputFn:l,sampling:c,userTriggeredOnInput:u}){function d(e){let n=Fe(e);const c=e.isTrusted,d=n&&n.tagName;if(n&&"OPTION"===d&&(n=n.parentElement),!n||!d||We.indexOf(d)<0||re(n,s,r,!0))return;if(n.classList.contains(o)||i&&n.matches(i))return;let m=n.value,h=!1;const A=E(n)||"";"radio"===A||"checkbox"===A?h=n.checked:(a[d.toLowerCase()]||a[A])&&(m=g({element:n,maskInputOptions:a,tagName:d,type:A,value:m,maskInputFn:l})),p(n,u?{text:m,isChecked:h,userTriggered:c}:{text:m,isChecked:h});const f=n.name;"radio"===A&&f&&h&&t.querySelectorAll(`input[type="radio"][name="${f}"]`).forEach(e=>{if(e!==n){const t=e.value;p(e,u?{text:t,isChecked:!h,userTriggered:!1}:{text:t,isChecked:!h})}})}function p(t,s){const r=Ve.get(t);if(!r||r.text!==s.text||r.isChecked!==s.isChecked){Ve.set(t,s);const r=n.getId(t);Ue(e)({...s,id:r})}}const m=("last"===c.input?["change"]:["input","change"]).map(e=>X(e,Ue(d),t)),h=t.defaultView;if(!h)return()=>{m.forEach(e=>e())};const A=h.Object.getOwnPropertyDescriptor(h.HTMLInputElement.prototype,"value"),f=[[h.HTMLInputElement.prototype,"value"],[h.HTMLInputElement.prototype,"checked"],[h.HTMLSelectElement.prototype,"value"],[h.HTMLTextAreaElement.prototype,"value"],[h.HTMLSelectElement.prototype,"selectedIndex"],[h.HTMLOptionElement.prototype,"selected"]];return A&&A.set&&m.push(...f.map(e=>Q(e[0],e[1],{set(){Ue(d)({target:this,isTrusted:!1})}},!1,h))),Ue(()=>{m.forEach(e=>e())})}(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,mirror:s,sampling:r,doc:o}){const i=Ue(o=>K(Ue(r=>{const i=Fe(r);if(!i||re(i,t,n,!0))return;const{currentTime:a,volume:l,muted:c,playbackRate:u,loop:d}=i;e({type:o,id:s.getId(i),currentTime:a,volume:l,muted:c,playbackRate:u,loop:d})}),r.media||500)),a=[X("play",i(Le.Play),o),X("pause",i(Le.Pause),o),X("seeked",i(Le.Seeked),o),X("volumechange",i(Le.VolumeChange),o),X("ratechange",i(Le.RateChange),o)];return Ue(()=>{a.forEach(e=>e())})}(e);let u=()=>{},d=()=>{},p=()=>{},m=()=>{};e.recordDOM&&(u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:s}){if(!s.CSSStyleSheet||!s.CSSStyleSheet.prototype)return()=>{};const r=s.CSSStyleSheet.prototype.insertRule;s.CSSStyleSheet.prototype.insertRule=new Proxy(r,{apply:Ue((s,r,o)=>{const[i,a]=o,{id:l,styleId:c}=Ze(r,t,n.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:i,index:a}]}),s.apply(r,o)})});const o=s.CSSStyleSheet.prototype.deleteRule;let i,a;s.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:Ue((s,r,o)=>{const[i]=o,{id:a,styleId:l}=Ze(r,t,n.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:i}]}),s.apply(r,o)})}),s.CSSStyleSheet.prototype.replace&&(i=s.CSSStyleSheet.prototype.replace,s.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:Ue((s,r,o)=>{const[i]=o,{id:a,styleId:l}=Ze(r,t,n.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replace:i}),s.apply(r,o)})})),s.CSSStyleSheet.prototype.replaceSync&&(a=s.CSSStyleSheet.prototype.replaceSync,s.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:Ue((s,r,o)=>{const[i]=o,{id:a,styleId:l}=Ze(r,t,n.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replaceSync:i}),s.apply(r,o)})}));const l={};$e("CSSGroupingRule")?l.CSSGroupingRule=s.CSSGroupingRule:($e("CSSMediaRule")&&(l.CSSMediaRule=s.CSSMediaRule),$e("CSSConditionRule")&&(l.CSSConditionRule=s.CSSConditionRule),$e("CSSSupportsRule")&&(l.CSSSupportsRule=s.CSSSupportsRule));const c={};return Object.entries(l).forEach(([s,r])=>{c[s]={insertRule:r.prototype.insertRule,deleteRule:r.prototype.deleteRule},r.prototype.insertRule=new Proxy(c[s].insertRule,{apply:Ue((s,r,o)=>{const[i,a]=o,{id:l,styleId:c}=Ze(r.parentStyleSheet,t,n.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:i,index:[...Xe(r),a||0]}]}),s.apply(r,o)})}),r.prototype.deleteRule=new Proxy(c[s].deleteRule,{apply:Ue((s,r,o)=>{const[i]=o,{id:a,styleId:l}=Ze(r.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:[...Xe(r),i]}]}),s.apply(r,o)})})}),Ue(()=>{s.CSSStyleSheet.prototype.insertRule=r,s.CSSStyleSheet.prototype.deleteRule=o,i&&(s.CSSStyleSheet.prototype.replace=i),a&&(s.CSSStyleSheet.prototype.replaceSync=a),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule})})}(e,{win:n}),d=qe(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:s},{win:r}){const o=r.CSSStyleDeclaration.prototype.setProperty;r.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:Ue((r,i,a)=>{var l;const[c,u,d]=a;if(n.has(c))return o.apply(i,[c,u,d]);const{id:p,styleId:m}=Ze(null==(l=i.parentRule)?void 0:l.parentStyleSheet,t,s.styleMirror);return(p&&-1!==p||m&&-1!==m)&&e({id:p,styleId:m,set:{property:c,value:u,priority:d},index:Xe(i.parentRule)}),r.apply(i,a)})});const i=r.CSSStyleDeclaration.prototype.removeProperty;return r.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:Ue((r,o,a)=>{var l;const[c]=a;if(n.has(c))return i.apply(o,[c]);const{id:u,styleId:d}=Ze(null==(l=o.parentRule)?void 0:l.parentStyleSheet,t,s.styleMirror);return(u&&-1!==u||d&&-1!==d)&&e({id:u,styleId:d,remove:{property:c},index:Xe(o.parentRule)}),r.apply(o,a)})}),Ue(()=>{r.CSSStyleDeclaration.prototype.setProperty=o,r.CSSStyleDeclaration.prototype.removeProperty=i})}(e,{win:n}),e.collectFonts&&(m=function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const s=[],r=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,n){const s=new o(e,t,n);return r.set(s,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),s};const i=$(t.fonts,"add",function(t){return function(n){return setTimeout(Ue(()=>{const t=r.get(n);t&&(e(t),r.delete(n))}),0),t.apply(this,[n])}});return s.push(()=>{n.FontFace=o}),s.push(i),Ue(()=>{s.forEach(e=>e())})}(e)));const h=function(e){const{doc:t,mirror:n,blockClass:s,blockSelector:r,selectionCb:o}=e;let i=!0;const a=Ue(()=>{const e=t.getSelection();if(!e||i&&(null==e?void 0:e.isCollapsed))return;i=e.isCollapsed||!1;const a=[],l=e.rangeCount||0;for(let t=0;t<l;t++){const o=e.getRangeAt(t),{startContainer:i,startOffset:l,endContainer:c,endOffset:u}=o;re(i,s,r,!0)||re(c,s,r,!0)||a.push({start:n.getId(i),startOffset:l,end:n.getId(c),endOffset:u})}o({ranges:a})});return a(),X("selectionchange",a)}(e),A=function({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?$(n.customElements,"define",function(e){return function(n,s,r){try{t({define:{name:n}})}catch(e){console.warn(`Custom element callback failed for ${n}`)}return e.apply(this,[n,s,r])}}):()=>{}}(e),f=[];for(const t of e.plugins)f.push(t.observer(t.callback,n,t.options));return Ue(()=>{Ge.forEach(e=>e.reset()),null==s||s.disconnect(),r(),o(),i(),a(),l(),c(),u(),d(),p(),m(),h(),A(),f.forEach(e=>e())})}function Qe(e){return void 0!==window[e]}function $e(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Je{constructor(e){o(this,"iframeIdToRemoteIdMap",new WeakMap),o(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,n,s){const r=n||this.getIdToRemoteIdMap(e),o=s||this.getRemoteIdToIdMap(e);let i=r.get(t);return i||(i=this.generateIdFn(),r.set(t,i),o.set(i,t)),i}getIds(e,t){const n=this.getIdToRemoteIdMap(e),s=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,s))}getRemoteId(e,t,n){const s=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const r=s.get(t);return r||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class et{constructor(e){o(this,"iframes",new WeakMap),o(this,"crossOriginIframeMap",new WeakMap),o(this,"crossOriginIframeMirror",new Je(v)),o(this,"crossOriginIframeStyleMirror"),o(this,"crossOriginIframeRootIdMap",new WeakMap),o(this,"mirror"),o(this,"mutationCb"),o(this,"wrappedEmit"),o(this,"loadListener"),o(this,"stylesheetManager"),o(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Je(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var n,s;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null==(n=e.contentWindow)||n.addEventListener("message",this.handleMessage.bind(this))),null==(s=this.loadListener)||s.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const s=this.transformCrossOriginEvent(n,t.data.event);s&&this.wrappedEmit(s,t.data.isCheckout)}transformCrossOriginEvent(e,t){var n;switch(t.type){case ve.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:ve.IncrementalSnapshot,data:{source:Ce.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case ve.Meta:case ve.Load:case ve.DomContentLoaded:return!1;case ve.Plugin:return t;case ve.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case ve.IncrementalSnapshot:switch(t.data.source){case Ce.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case Ce.Drag:case Ce.TouchMove:case Ce.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case Ce.ViewportResize:return!1;case Ce.MediaInteraction:case Ce.MouseInteraction:case Ce.Scroll:case Ce.CanvasMutation:case Ce.Input:return this.replaceIds(t.data,e,["id"]),t;case Ce.StyleSheetRule:case Ce.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Ce.Font:return t;case Ce.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case Ce.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(n=t.data.styles)||n.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,n,s){for(const r of s)(Array.isArray(t[r])||"number"==typeof t[r])&&(Array.isArray(t[r])?t[r]=e.getIds(n,t[r]):t[r]=e.getId(n,t[r]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===l.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class tt{constructor(e){o(this,"shadowDoms",new WeakSet),o(this,"mutationCb"),o(this,"scrollCb"),o(this,"bypassOptions"),o(this,"mirror"),o(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!d(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const n=He({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(ze({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(qe({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push($(e.prototype,"attachShadow",function(e){return function(s){const r=e.call(this,s);return this.shadowRoot&&Se(this)&&n.addShadowRoot(this.shadowRoot,t),r}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",st="undefined"==typeof Uint8Array?[]:new Uint8Array(256),rt=0;rt<64;rt++)st[nt.charCodeAt(rt)]=rt;const ot=new Map;const it=(e,t,n)=>{if(!e||!ct(e,t)&&"object"!=typeof e)return;const s=function(e,t){let n=ot.get(e);return n||(n=new Map,ot.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name);let r=s.indexOf(e);return-1===r&&(r=s.length,s.push(e)),r};function at(e,t,n){if(e instanceof Array)return e.map(e=>at(e,t,n));if(null===e)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){return{rr_type:e.constructor.name,base64:function(e){var t,n=new Uint8Array(e),s=n.length,r="";for(t=0;t<s;t+=3)r+=nt[n[t]>>2],r+=nt[(3&n[t])<<4|n[t+1]>>4],r+=nt[(15&n[t+1])<<2|n[t+2]>>6],r+=nt[63&n[t+2]];return s%3==2?r=r.substring(0,r.length-1)+"=":s%3==1&&(r=r.substring(0,r.length-2)+"=="),r}(e)}}if(e instanceof DataView){return{rr_type:e.constructor.name,args:[at(e.buffer,t,n),e.byteOffset,e.byteLength]}}if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:n}=e;return{rr_type:t,src:n}}if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}if(e instanceof ImageData){return{rr_type:e.constructor.name,args:[at(e.data,t,n),e.width,e.height]}}if(ct(e,t)||"object"==typeof e){return{rr_type:e.constructor.name,index:it(e,t,n)}}return e}const lt=(e,t,n)=>e.map(e=>at(e,t,n)),ct=(e,t)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]);return Boolean(n.find(n=>e instanceof t[n]))};function ut(e,t,n,s){const r=[];try{const o=$(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(r,...o){if(!re(this,t,n,!0)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(r);if("__context"in this||(this.__context=e),s&&["webgl","webgl2"].includes(e))if(o[0]&&"object"==typeof o[0]){const e=o[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else o.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[r,...o])}});r.push(o)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{r.forEach(e=>e())}}function dt(e,t,n,s,r,o,i){const a=[],l=Object.getOwnPropertyNames(e);for(const o of l)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(o))try{if("function"!=typeof e[o])continue;const l=$(e,o,function(e){return function(...a){const l=e.apply(this,a);if(it(l,i,this),"tagName"in this.canvas&&!re(this.canvas,s,r,!0)){const e=lt(a,i,this),s={type:t,property:o,args:e};n(this.canvas,s)}return l}});a.push(l)}catch{const s=Q(e,o,{set(e){n(this.canvas,{type:t,property:o,args:[e],setter:!0})}});a.push(s)}return a}const pt="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpCiAgICAgICAgcmV0dXJuIHRyYW5zcGFyZW50QmxvYk1hcC5nZXQoaWQpOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIHRyYW5zcGFyZW50QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICAgIHJldHVybiBiYXNlNjQ7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gIiI7CiAgICB9CiAgfQogIGNvbnN0IHdvcmtlciA9IHNlbGY7CiAgd29ya2VyLm9ubWVzc2FnZSA9IGFzeW5jIGZ1bmN0aW9uKGUpIHsKICAgIGlmICgiT2Zmc2NyZWVuQ2FudmFzIiBpbiBnbG9iYWxUaGlzKSB7CiAgICAgIGNvbnN0IHsgaWQsIGJpdG1hcCwgd2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMgfSA9IGUuZGF0YTsKICAgICAgY29uc3QgdHJhbnNwYXJlbnRCYXNlNjQgPSBnZXRUcmFuc3BhcmVudEJsb2JGb3IoCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0LAogICAgICAgIGRhdGFVUkxPcHRpb25zCiAgICAgICk7CiAgICAgIGNvbnN0IG9mZnNjcmVlbiA9IG5ldyBPZmZzY3JlZW5DYW52YXMod2lkdGgsIGhlaWdodCk7CiAgICAgIGNvbnN0IGN0eCA9IG9mZnNjcmVlbi5nZXRDb250ZXh0KCIyZCIpOwogICAgICBjdHguZHJhd0ltYWdlKGJpdG1hcCwgMCwgMCk7CiAgICAgIGJpdG1hcC5jbG9zZSgpOwogICAgICBjb25zdCBibG9iID0gYXdhaXQgb2Zmc2NyZWVuLmNvbnZlcnRUb0Jsb2IoZGF0YVVSTE9wdGlvbnMpOwogICAgICBjb25zdCB0eXBlID0gYmxvYi50eXBlOwogICAgICBjb25zdCBhcnJheUJ1ZmZlciA9IGF3YWl0IGJsb2IuYXJyYXlCdWZmZXIoKTsKICAgICAgY29uc3QgYmFzZTY0ID0gZW5jb2RlKGFycmF5QnVmZmVyKTsKICAgICAgaWYgKCFsYXN0QmxvYk1hcC5oYXMoaWQpICYmIGF3YWl0IHRyYW5zcGFyZW50QmFzZTY0ID09PSBiYXNlNjQpIHsKICAgICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkIH0pOwogICAgICB9CiAgICAgIGlmIChsYXN0QmxvYk1hcC5nZXQoaWQpID09PSBiYXNlNjQpCiAgICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkIH0pOwogICAgICB3b3JrZXIucG9zdE1lc3NhZ2UoewogICAgICAgIGlkLAogICAgICAgIHR5cGUsCiAgICAgICAgYmFzZTY0LAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodAogICAgICB9KTsKICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkOiBlLmRhdGEuaWQgfSk7CiAgICB9CiAgfTsKfSkoKTsKLy8jIHNvdXJjZU1hcHBpbmdVUkw9aW1hZ2UtYml0bWFwLWRhdGEtdXJsLXdvcmtlci1CWjFyN1JKRC5qcy5tYXAK",mt="undefined"!=typeof window&&window.Blob&&new Blob([(ht=pt,Uint8Array.from(atob(ht),e=>e.charCodeAt(0)))],{type:"text/javascript;charset=utf-8"});var ht;function At(e){let t;try{if(t=mt&&(window.URL||window.webkitURL).createObjectURL(mt),!t)throw"";const n=new Worker(t,{name:null==e?void 0:e.name});return n.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(t)}),n}catch(t){return new Worker("data:text/javascript;base64,"+pt,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}class gt{constructor(e){o(this,"pendingCanvasMutations",new Map),o(this,"rafStamps",{latestId:0,invokeId:null}),o(this,"mirror"),o(this,"mutationCb"),o(this,"resetObservers"),o(this,"frozen",!1),o(this,"locked",!1),o(this,"processMutation",(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)});const{sampling:t="all",win:n,blockClass:s,blockSelector:r,recordCanvas:i,dataURLOptions:a}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,i&&"all"===t&&this.initCanvasMutationObserver(n,s,r),i&&"number"==typeof t&&this.initCanvasFPSObserver(t,n,s,r,{dataURLOptions:a})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,t,n,s,r){const o=ut(t,n,s,!0),i=new Map,a=new At;a.onmessage=e=>{const{id:t}=e.data;if(i.set(t,!1),!("base64"in e.data))return;const{base64:n,type:s,width:r,height:o}=e.data;this.mutationCb({id:t,type:we["2D"],commands:[{property:"clearRect",args:[0,0,r,o]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:s}]},0,0]}]})};const l=1e3/e;let c,u=0;const d=e=>{u&&e-u<l||(u=e,(()=>{const e=[];return t.document.querySelectorAll("canvas").forEach(t=>{re(t,n,s,!0)||e.push(t)}),e})().forEach(async e=>{var t;const n=this.mirror.getId(e);if(i.get(n))return;if(0===e.width||0===e.height)return;if(i.set(n,!0),["webgl","webgl2"].includes(e.__context)){const n=e.getContext(e.__context);!1===(null==(t=null==n?void 0:n.getContextAttributes())?void 0:t.preserveDrawingBuffer)&&n.clear(n.COLOR_BUFFER_BIT)}const s=await createImageBitmap(e);a.postMessage({id:n,bitmap:s,width:e.width,height:e.height,dataURLOptions:r.dataURLOptions},[s])})),c=requestAnimationFrame(d)};c=requestAnimationFrame(d),this.resetObservers=()=>{o(),cancelAnimationFrame(c)}}initCanvasMutationObserver(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const s=ut(e,t,n,!1),r=function(e,t,n,s){const r=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const i of o)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[i])continue;const o=$(t.CanvasRenderingContext2D.prototype,i,function(r){return function(...o){return re(this.canvas,n,s,!0)||setTimeout(()=>{const n=lt(o,t,this);e(this.canvas,{type:we["2D"],property:i,args:n})},0),r.apply(this,o)}});r.push(o)}catch{const n=Q(t.CanvasRenderingContext2D.prototype,i,{set(t){e(this.canvas,{type:we["2D"],property:i,args:[t],setter:!0})}});r.push(n)}return()=>{r.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n),o=function(e,t,n,s){const r=[];return r.push(...dt(t.WebGLRenderingContext.prototype,we.WebGL,e,n,s,0,t)),void 0!==t.WebGL2RenderingContext&&r.push(...dt(t.WebGL2RenderingContext.prototype,we.WebGL2,e,n,s,0,t)),()=>{r.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n,this.mirror);this.resetObservers=()=>{s(),r(),o()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{const n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;const s=n.map(e=>{const{type:t,...n}=e;return n}),{type:r}=n[0];this.mutationCb({id:t,type:r,commands:s}),this.pendingCanvasMutations.delete(e)}}class ft{constructor(e){o(this,"trackedLinkElements",new WeakSet),o(this,"mutationCb"),o(this,"adoptedStyleSheetCb"),o(this,"styleMirror",new Ee),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},s=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),s.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:m(e),index:t}))})),n.styleIds.push(e)}s.length>0&&(n.styles=s),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class _t{constructor(){o(this,"nodeMap",new WeakMap),o(this,"active",!1)}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let Et,bt,yt,Tt=!1;try{if(2!==Array.from([1],e=>2*e)[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=(null==(s=e.contentWindow)?void 0:s.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const St=A();function vt(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:s,blockClass:r="rr-block",blockSelector:o=null,ignoreClass:i="rr-ignore",ignoreSelector:a=null,maskTextClass:l="rr-mask",maskTextSelector:c=null,inlineStylesheet:u=!0,maskAllInputs:d,maskInputOptions:p,slimDOMOptions:m,maskInputFn:A,maskTextFn:g,hooks:f,packFn:_,sampling:E={},dataURLOptions:b={},mousemoveWait:y,recordDOM:T=!0,recordCanvas:S=!1,recordCrossOriginIframes:v=!1,recordAfter:C=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:R=!1,collectFonts:I=!1,inlineImages:w=!1,plugins:L,keepIframeSrcFn:O=()=>!1,ignoreCSSAttributes:P=new Set([]),errorHandler:N}=e;je=N;const x=!v||window.parent===window;let M=!1;if(!x)try{window.parent.document&&(M=!1)}catch(e){M=!0}if(x&&!t)throw new Error("emit function is required");if(!x&&!M)return()=>{};void 0!==y&&void 0===E.mousemove&&(E.mousemove=y),St.reset();const k=!0===d?{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}:void 0!==p?p:{password:!0},D=!0===m||"all"===m?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===m,headMetaDescKeywords:"all"===m,headTitleMutations:"all"===m}:m||{};let B;ce();let j=0;const U=e=>{for(const t of L||[])t.eventProcessor&&(e=t.eventProcessor(e));return _&&!M&&(e=_(e)),e};Et=(e,r)=>{var o;const i=e;if(i.timestamp=J(),!(null==(o=Ge[0])?void 0:o.isFrozen())||i.type===ve.FullSnapshot||i.type===ve.IncrementalSnapshot&&i.data.source===Ce.Mutation||Ge.forEach(e=>e.unfreeze()),x)null==t||t(U(i),r);else if(M){const e={type:"rrweb",event:U(i),origin:window.location.origin,isCheckout:r};window.parent.postMessage(e,"*")}if(i.type===ve.FullSnapshot)B=i,j=0;else if(i.type===ve.IncrementalSnapshot){if(i.data.source===Ce.Mutation&&i.data.isAttachIframe)return;j++;const e=s&&j>=s,t=n&&i.timestamp-B.timestamp>n;(e||t)&&bt(!0)}};const G=e=>{Et({type:ve.IncrementalSnapshot,data:{source:Ce.Mutation,...e}})},F=e=>Et({type:ve.IncrementalSnapshot,data:{source:Ce.Scroll,...e}}),H=e=>Et({type:ve.IncrementalSnapshot,data:{source:Ce.CanvasMutation,...e}}),Y=new ft({mutationCb:G,adoptedStyleSheetCb:e=>Et({type:ve.IncrementalSnapshot,data:{source:Ce.AdoptedStyleSheet,...e}})}),W=new et({mirror:St,mutationCb:G,stylesheetManager:Y,recordCrossOriginIframes:v,wrappedEmit:Et});for(const e of L||[])e.getMirror&&e.getMirror({nodeMirror:St,crossOriginIframeMirror:W.crossOriginIframeMirror,crossOriginIframeStyleMirror:W.crossOriginIframeStyleMirror});const V=new _t;yt=new gt({recordCanvas:S,mutationCb:H,win:window,blockClass:r,blockSelector:o,mirror:St,sampling:E.canvas,dataURLOptions:b});const Z=new tt({mutationCb:G,scrollCb:F,bypassOptions:{blockClass:r,blockSelector:o,maskTextClass:l,maskTextSelector:c,inlineStylesheet:u,maskInputOptions:k,dataURLOptions:b,maskTextFn:g,maskInputFn:A,recordCanvas:S,inlineImages:w,sampling:E,slimDOMOptions:D,iframeManager:W,stylesheetManager:Y,canvasManager:yt,keepIframeSrcFn:O,processedNodeManager:V},mirror:St});bt=(e=!1)=>{if(!T)return;Et({type:ve.Meta,data:{href:window.location.href,width:ne(),height:te()}},e),Y.reset(),Z.init(),Ge.forEach(e=>e.lock());const t=function(e,t){const{mirror:n=new h,blockClass:s="rr-block",blockSelector:r=null,maskTextClass:o="rr-mask",maskTextSelector:i=null,inlineStylesheet:a=!0,inlineImages:l=!1,recordCanvas:c=!1,maskAllInputs:u=!1,maskTextFn:d,maskInputFn:p,slimDOM:m=!1,dataURLOptions:A,preserveWhiteSpace:g,onSerialize:f,onIframeLoad:_,iframeLoadTimeout:E,onStylesheetLoad:b,stylesheetLoadTimeout:y,keepIframeSrcFn:T=()=>!1}=t||{};return z(e,{doc:e,mirror:n,blockClass:s,blockSelector:r,maskTextClass:o,maskTextSelector:i,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===u?{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}:!1===u?{password:!0}:u,maskTextFn:d,maskInputFn:p,slimDOMOptions:!0===m||"all"===m?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===m,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===m?{}:m,dataURLOptions:A,inlineImages:l,recordCanvas:c,preserveWhiteSpace:g,onSerialize:f,onIframeLoad:_,iframeLoadTimeout:E,onStylesheetLoad:b,stylesheetLoadTimeout:y,keepIframeSrcFn:T,newlyAddedElement:!1})}(document,{mirror:St,blockClass:r,blockSelector:o,maskTextClass:l,maskTextSelector:c,inlineStylesheet:u,maskAllInputs:k,maskTextFn:g,slimDOM:D,dataURLOptions:b,recordCanvas:S,inlineImages:w,onSerialize:e=>{pe(e,St)&&W.addIframe(e),me(e,St)&&Y.trackLinkElement(e),Ae(e)&&Z.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{W.attachIframe(e,t),Z.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Y.attachLinkElement(e,t)},keepIframeSrcFn:O});if(!t)return console.warn("Failed to snapshot the document");Et({type:ve.FullSnapshot,data:{node:t,initialOffset:ee(window)}},e),Ge.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Y.adoptStyleSheets(document.adoptedStyleSheets,St.getId(document))};try{const e=[],t=e=>{var t;return Ue(Ke)({mutationCb:G,mousemoveCb:(e,t)=>Et({type:ve.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Et({type:ve.IncrementalSnapshot,data:{source:Ce.MouseInteraction,...e}}),scrollCb:F,viewportResizeCb:e=>Et({type:ve.IncrementalSnapshot,data:{source:Ce.ViewportResize,...e}}),inputCb:e=>Et({type:ve.IncrementalSnapshot,data:{source:Ce.Input,...e}}),mediaInteractionCb:e=>Et({type:ve.IncrementalSnapshot,data:{source:Ce.MediaInteraction,...e}}),styleSheetRuleCb:e=>Et({type:ve.IncrementalSnapshot,data:{source:Ce.StyleSheetRule,...e}}),styleDeclarationCb:e=>Et({type:ve.IncrementalSnapshot,data:{source:Ce.StyleDeclaration,...e}}),canvasMutationCb:H,fontCb:e=>Et({type:ve.IncrementalSnapshot,data:{source:Ce.Font,...e}}),selectionCb:e=>{Et({type:ve.IncrementalSnapshot,data:{source:Ce.Selection,...e}})},customElementCb:e=>{Et({type:ve.IncrementalSnapshot,data:{source:Ce.CustomElement,...e}})},blockClass:r,ignoreClass:i,ignoreSelector:a,maskTextClass:l,maskTextSelector:c,maskInputOptions:k,inlineStylesheet:u,sampling:E,recordDOM:T,recordCanvas:S,inlineImages:w,userTriggeredOnInput:R,collectFonts:I,doc:e,maskInputFn:A,maskTextFn:g,keepIframeSrcFn:O,blockSelector:o,slimDOMOptions:D,dataURLOptions:b,mirror:St,iframeManager:W,stylesheetManager:Y,shadowDomManager:Z,processedNodeManager:V,canvasManager:yt,ignoreCSSAttributes:P,plugins:(null==(t=null==L?void 0:L.filter(e=>e.observer))?void 0:t.map(e=>({observer:e.observer,options:e.options,callback:t=>Et({type:ve.Plugin,data:{plugin:e.name,payload:t}})})))||[]},f)};W.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});const n=()=>{bt(),e.push(t(document)),Tt=!0};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(X("DOMContentLoaded",()=>{Et({type:ve.DomContentLoaded,data:{}}),"DOMContentLoaded"===C&&n()})),e.push(X("load",()=>{Et({type:ve.Load,data:{}}),"load"===C&&n()},window))),()=>{e.forEach(e=>e()),V.destroy(),Tt=!1,je=void 0}}catch(e){console.warn(e)}}vt.addCustomEvent=(e,t)=>{if(!Tt)throw new Error("please add custom event after start recording");Et({type:ve.Custom,data:{tag:e,payload:t}})},vt.freezePage=()=>{Ge.forEach(e=>e.freeze())},vt.takeFullSnapshot=e=>{if(!Tt)throw new Error("please take full snapshot after start recording");bt(e)},vt.mirror=St;Object.defineProperty,Object.defineProperty;function Ct(e){return{all:e||new Map,on:function(t,n){var s=e.get(t);s?s.push(n):e.set(t,[n])},off:function(t,n){var s=e.get(t);s&&(n?s.splice(s.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var s=e.get(t);s&&s.slice().map(function(e){e(n)}),e.get("*")&&s.slice().map(function(e){e(t,n)})}}}Symbol.toStringTag;var Rt,It;(It=Rt||(Rt={}))[It.NotStarted=0]="NotStarted",It[It.Running=1]="Running",It[It.Stopped=2]="Stopped";const{addCustomEvent:wt}=vt,{freezePage:Lt}=vt},"../../node_modules/socket.io-client/build/esm/contrib/backo2.js":(e,t,n)=>{"use strict";function s(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}n.d(t,{Backoff:()=>s}),s.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=1&Math.floor(10*t)?e+n:e-n}return 0|Math.min(e,this.max)},s.prototype.reset=function(){this.attempts=0},s.prototype.setMin=function(e){this.ms=e},s.prototype.setMax=function(e){this.max=e},s.prototype.setJitter=function(e){this.jitter=e}},"../../node_modules/socket.io-client/build/esm/index.js":(e,t,n)=>{"use strict";n.d(t,{default:()=>a});var s=n("../../node_modules/socket.io-client/build/esm/url.js"),r=n("../../node_modules/socket.io-client/build/esm/manager.js"),o=n("../../node_modules/socket.io-client/build/esm/socket.js");n("../../node_modules/socket.io-parser/build/esm/index.js");const i={};function a(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const n=(0,s.url)(e,t.path||"/socket.io"),o=n.source,a=n.id,l=n.path,c=i[a]&&l in i[a].nsps;let u;return t.forceNew||t["force new connection"]||!1===t.multiplex||c?u=new r.Manager(o,t):(i[a]||(i[a]=new r.Manager(o,t)),u=i[a]),n.query&&!t.query&&(t.query=n.queryKey),u.socket(n.path,t)}Object.assign(a,{Manager:r.Manager,Socket:o.Socket,io:a,connect:a})},"../../node_modules/socket.io-client/build/esm/manager.js":(e,t,n)=>{"use strict";n.d(t,{Manager:()=>c});var s=n("../../node_modules/engine.io-client/build/esm/index.js"),r=n("../../node_modules/socket.io-client/build/esm/socket.js"),o=n("../../node_modules/socket.io-parser/build/esm/index.js"),i=n("../../node_modules/socket.io-client/build/esm/on.js"),a=n("../../node_modules/socket.io-client/build/esm/contrib/backo2.js"),l=n("../../node_modules/@socket.io/component-emitter/lib/esm/index.js");class c extends l.Emitter{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,(0,s.installTimerFunctions)(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=t.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new a.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const r=t.parser||o;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new s.Socket(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const r=(0,i.on)(t,"open",function(){n.onopen(),e&&e()}),o=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},a=(0,i.on)(t,"error",o);if(!1!==this._timeout){const e=this._timeout,n=this.setTimeoutFn(()=>{r(),o(new Error("timeout")),t.close()},e);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}return this.subs.push(r),this.subs.push(a),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push((0,i.on)(e,"ping",this.onping.bind(this)),(0,i.on)(e,"data",this.ondata.bind(this)),(0,i.on)(e,"error",this.onerror.bind(this)),(0,i.on)(e,"close",this.onclose.bind(this)),(0,i.on)(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){(0,s.nextTick)(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new r.Socket(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const e of t){if(this.nsps[e].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}},"../../node_modules/socket.io-client/build/esm/on.js":(e,t,n)=>{"use strict";function s(e,t,n){return e.on(t,n),function(){e.off(t,n)}}n.d(t,{on:()=>s})},"../../node_modules/socket.io-client/build/esm/socket.js":(e,t,n)=>{"use strict";n.d(t,{Socket:()=>a});var s=n("../../node_modules/socket.io-parser/build/esm/index.js"),r=n("../../node_modules/socket.io-client/build/esm/on.js"),o=n("../../node_modules/@socket.io/component-emitter/lib/esm/index.js");const i=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class a extends o.Emitter{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[(0,r.on)(e,"open",this.onopen.bind(this)),(0,r.on)(e,"packet",this.onpacket.bind(this)),(0,r.on)(e,"error",this.onerror.bind(this)),(0,r.on)(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(i.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const n={type:s.PacketType.EVENT,data:t,options:{}};if(n.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++,s=t.pop();this._registerAckCallback(e,s),n.id=e}const r=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!r||!this.connected)||(this.connected?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(e,t){var n;const s=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0===s)return void(this.acks[e]=t);const r=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,new Error("operation has timed out"))},s),o=(...e)=>{this.io.clearTimeoutFn(r),t.apply(this,e)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((n,s)=>{const r=(e,t)=>e?s(e):n(t);r.withError=!0,t.push(r),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...s)=>{if(n!==this._queue[0])return;return null!==e?n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...s)),n.pending=!1,this._drainQueue()}),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:s.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){const t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case s.PacketType.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case s.PacketType.EVENT:case s.PacketType.BINARY_EVENT:this.onevent(e);break;case s.PacketType.ACK:case s.PacketType.BINARY_ACK:this.onack(e);break;case s.PacketType.DISCONNECT:this.ondisconnect();break;case s.PacketType.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let n=!1;return function(...r){n||(n=!0,t.packet({type:s.PacketType.ACK,id:e,data:r}))}}onack(e){const t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:s.PacketType.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const n of t)n.apply(this,e.data)}}}},"../../node_modules/socket.io-client/build/esm/url.js":(e,t,n)=>{"use strict";n.d(t,{url:()=>r});var s=n("../../node_modules/engine.io-client/build/esm/index.js");function r(e,t="",n){let r=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==n?n.protocol+"//"+e:"https://"+e),r=(0,s.parse)(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}},"../../node_modules/socket.io-parser/build/esm/binary.js":(e,t,n)=>{"use strict";n.d(t,{deconstructPacket:()=>r,reconstructPacket:()=>i});var s=n("../../node_modules/socket.io-parser/build/esm/is-binary.js");function r(e){const t=[],n=e.data,s=e;return s.data=o(n,t),s.attachments=t.length,{packet:s,buffers:t}}function o(e,t){if(!e)return e;if((0,s.isBinary)(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){const n=new Array(e.length);for(let s=0;s<e.length;s++)n[s]=o(e[s],t);return n}if("object"==typeof e&&!(e instanceof Date)){const n={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=o(e[s],t));return n}return e}function i(e,t){return e.data=a(e.data,t),delete e.attachments,e}function a(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=a(e[n],t);else if("object"==typeof e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=a(e[n],t));return e}},"../../node_modules/socket.io-parser/build/esm/index.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{Decoder:()=>d,Encoder:()=>c,PacketType:()=>l,protocol:()=>a});var s=n("../../node_modules/@socket.io/component-emitter/lib/esm/index.js"),r=n("../../node_modules/socket.io-parser/build/esm/binary.js"),o=n("../../node_modules/socket.io-parser/build/esm/is-binary.js");const i=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],a=5;var l;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(l||(l={}));class c{constructor(e){this.replacer=e}encode(e){return e.type!==l.EVENT&&e.type!==l.ACK||!(0,o.hasBinary)(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===l.EVENT?l.BINARY_EVENT:l.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==l.BINARY_EVENT&&e.type!==l.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=(0,r.deconstructPacket)(e),n=this.encodeAsString(t.packet),s=t.buffers;return s.unshift(n),s}}function u(e){return"[object Object]"===Object.prototype.toString.call(e)}class d extends s.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const n=t.type===l.BINARY_EVENT;n||t.type===l.BINARY_ACK?(t.type=n?l.EVENT:l.ACK,this.reconstructor=new p(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!(0,o.isBinary)(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const n={type:Number(e.charAt(0))};if(void 0===l[n.type])throw new Error("unknown packet type "+n.type);if(n.type===l.BINARY_EVENT||n.type===l.BINARY_ACK){const s=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const r=e.substring(s,t);if(r!=Number(r)||"-"!==e.charAt(t))throw new Error("Illegal attachments");n.attachments=Number(r)}if("/"===e.charAt(t+1)){const s=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}n.nsp=e.substring(s,t)}else n.nsp="/";const s=e.charAt(t+1);if(""!==s&&Number(s)==s){const s=t+1;for(;++t;){const n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(s,t+1))}if(e.charAt(++t)){const s=this.tryParse(e.substr(t));if(!d.isPayloadValid(n.type,s))throw new Error("invalid payload");n.data=s}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case l.CONNECT:return u(t);case l.DISCONNECT:return void 0===t;case l.CONNECT_ERROR:return"string"==typeof t||u(t);case l.EVENT:case l.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===i.indexOf(t[0]));case l.ACK:case l.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class p{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=(0,r.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}},"../../node_modules/socket.io-parser/build/esm/is-binary.js":(e,t,n)=>{"use strict";n.d(t,{hasBinary:()=>c,isBinary:()=>l});const s="function"==typeof ArrayBuffer,r=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,o=Object.prototype.toString,i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===o.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===o.call(File);function l(e){return s&&(e instanceof ArrayBuffer||r(e))||i&&e instanceof Blob||a&&e instanceof File}function c(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(c(e[t]))return!0;return!1}if(l(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return c(e.toJSON(),!0);for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&c(e[t]))return!0;return!1}}},t={};function n(s){var r=t[s];if(void 0!==r)return r.exports;var o=t[s]={id:s,loaded:!1,exports:{}};return e[s](o,o.exports,n),o.loaded=!0,o.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.b=document.baseURI||self.location.href,n.nc=void 0;var s={};return(()=>{"use strict";n.r(s),n.d(s,{ATTR_MULTIPLAYER_CLIENT_ID:()=>o.ATTR_MULTIPLAYER_CLIENT_ID,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE:()=>o.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON:()=>o.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE:()=>o.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING:()=>o.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING,ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE:()=>o.ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE,ATTR_MULTIPLAYER_HTTP_PROXY:()=>o.ATTR_MULTIPLAYER_HTTP_PROXY,ATTR_MULTIPLAYER_HTTP_PROXY_TYPE:()=>o.ATTR_MULTIPLAYER_HTTP_PROXY_TYPE,ATTR_MULTIPLAYER_HTTP_REQUEST_BODY:()=>o.ATTR_MULTIPLAYER_HTTP_REQUEST_BODY,ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS:()=>o.ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY:()=>o.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING:()=>o.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING,ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS:()=>o.ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS,ATTR_MULTIPLAYER_INTEGRATION_ID:()=>o.ATTR_MULTIPLAYER_INTEGRATION_ID,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY:()=>o.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING:()=>o.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING,ATTR_MULTIPLAYER_PLATFORM_ID:()=>o.ATTR_MULTIPLAYER_PLATFORM_ID,ATTR_MULTIPLAYER_PLATFORM_NAME:()=>o.ATTR_MULTIPLAYER_PLATFORM_NAME,ATTR_MULTIPLAYER_PROJECT_ID:()=>o.ATTR_MULTIPLAYER_PROJECT_ID,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE:()=>o.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING:()=>o.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING,ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE:()=>o.ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE,ATTR_MULTIPLAYER_SESSION_ID:()=>o.ATTR_MULTIPLAYER_SESSION_ID,ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION:()=>o.ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION,ATTR_MULTIPLAYER_WORKSPACE_ID:()=>o.ATTR_MULTIPLAYER_WORKSPACE_ID,MASK_PLACEHOLDER:()=>o.MASK_PLACEHOLDER,MULTIPLAYER_ATTRIBUTE_PREFIX:()=>o.MULTIPLAYER_ATTRIBUTE_PREFIX,MULTIPLAYER_BASE_API_URL:()=>o.MULTIPLAYER_BASE_API_URL,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_GRPC_URL:()=>o.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_GRPC_URL,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_HTTP_URL:()=>o.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_HTTP_URL,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL:()=>o.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_GRPC_URL:()=>o.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_GRPC_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL:()=>o.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL:()=>o.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL,MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX:()=>o.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX,MULTIPLAYER_TRACE_DEBUG_PREFIX:()=>o.MULTIPLAYER_TRACE_DEBUG_PREFIX,MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH:()=>o.MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH,MULTIPLAYER_TRACE_DOC_PREFIX:()=>o.MULTIPLAYER_TRACE_DOC_PREFIX,SessionRecorderBrowserTraceExporter:()=>o.SessionRecorderBrowserTraceExporter,SessionRecorderIdGenerator:()=>o.SessionRecorderIdGenerator,SessionRecorderSdk:()=>o.SessionRecorderSdk,SessionRecorderTraceIdRatioBasedSampler:()=>o.SessionRecorderTraceIdRatioBasedSampler,SessionType:()=>o.SessionType,default:()=>a,recorderEventBus:()=>t.recorderEventBus});n("./src/patch/index.ts");var e=n("./src/listeners.ts"),t=n("./src/eventBus.ts"),r=n("./src/sessionRecorder.ts"),o=n("../session-recorder-common/dist/esm/index-browser.js");const i=new r.SessionRecorder;"undefined"!=typeof window&&(window.__SESSION_RECORDER_LOADED=!0,window.SessionRecorder=i,(0,e.setupListeners)(i));const a=i})(),s})());
|
|
3
3
|
//# sourceMappingURL=index.js.map
|