@multiplayer-app/session-recorder-browser 0.0.11 → 0.0.12

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:()=>o,NoopLogger:()=>r});var r=function(){function e(){}return e.prototype.emit=function(e){},e}(),o=new r},"../../node_modules/@opentelemetry/api-logs/build/esm/NoopLoggerProvider.js":(e,t,n)=>{"use strict";n.d(t,{NOOP_LOGGER_PROVIDER:()=>o});var r=n("../../node_modules/@opentelemetry/api-logs/build/esm/NoopLogger.js"),o=new(function(){function e(){}return e.prototype.getLogger=function(e,t,n){return new r.NoopLogger},e}())},"../../node_modules/@opentelemetry/api-logs/build/esm/ProxyLogger.js":(e,t,n)=>{"use strict";n.d(t,{ProxyLogger:()=>o});var r=n("../../node_modules/@opentelemetry/api-logs/build/esm/NoopLogger.js"),o=function(){function e(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}return e.prototype.emit=function(e){this._getLogger().emit(e)},e.prototype._getLogger=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):r.NOOP_LOGGER},e}()},"../../node_modules/@opentelemetry/api-logs/build/esm/ProxyLoggerProvider.js":(e,t,n)=>{"use strict";n.d(t,{ProxyLoggerProvider:()=>s});var r=n("../../node_modules/@opentelemetry/api-logs/build/esm/NoopLoggerProvider.js"),o=n("../../node_modules/@opentelemetry/api-logs/build/esm/ProxyLogger.js"),s=function(){function e(){}return e.prototype.getLogger=function(e,t,n){var r;return null!==(r=this.getDelegateLogger(e,t,n))&&void 0!==r?r:new o.ProxyLogger(this,e,t,n)},e.prototype.getDelegate=function(){var e;return null!==(e=this._delegate)&&void 0!==e?e:r.NOOP_LOGGER_PROVIDER},e.prototype.setDelegate=function(e){this._delegate=e},e.prototype.getDelegateLogger=function(e,t,n){var r;return null===(r=this._delegate)||void 0===r?void 0:r.getLogger(e,t,n)},e}()},"../../node_modules/@opentelemetry/api-logs/build/esm/api/logs.js":(e,t,n)=>{"use strict";n.d(t,{LogsAPI:()=>i});var r=n("../../node_modules/@opentelemetry/api-logs/build/esm/internal/global-utils.js"),o=n("../../node_modules/@opentelemetry/api-logs/build/esm/NoopLoggerProvider.js"),s=n("../../node_modules/@opentelemetry/api-logs/build/esm/ProxyLoggerProvider.js"),i=function(){function e(){this._proxyLoggerProvider=new s.ProxyLoggerProvider}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalLoggerProvider=function(e){return r._global[r.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(r._global[r.GLOBAL_LOGS_API_KEY]=(0,r.makeGetter)(r.API_BACKWARDS_COMPATIBILITY_VERSION,e,o.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)},e.prototype.getLoggerProvider=function(){var e,t;return null!==(t=null===(e=r._global[r.GLOBAL_LOGS_API_KEY])||void 0===e?void 0:e.call(r._global,r.API_BACKWARDS_COMPATIBILITY_VERSION))&&void 0!==t?t:this._proxyLoggerProvider},e.prototype.getLogger=function(e,t,n){return this.getLoggerProvider().getLogger(e,t,n)},e.prototype.disable=function(){delete r._global[r.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new s.ProxyLoggerProvider},e}()},"../../node_modules/@opentelemetry/api-logs/build/esm/index.js":(e,t,n)=>{"use strict";n.d(t,{logs:()=>r});var r=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:()=>o,_global:()=>s,makeGetter:()=>i});var r=n("../../node_modules/@opentelemetry/api-logs/build/esm/platform/browser/globalThis.js"),o=Symbol.for("io.opentelemetry.js.api.logs"),s=r._globalThis;function i(e,t,n){return function(r){return r===e?t:n}}var a=1},"../../node_modules/@opentelemetry/api-logs/build/esm/platform/browser/globalThis.js":(e,t,n)=>{"use strict";n.d(t,{_globalThis:()=>r});var r="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:()=>c});var r=n("../../node_modules/@opentelemetry/api/build/esm/context/NoopContextManager.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),s=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 r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},a=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,s=t.length;o<s;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},l="context",u=new r.NoopContextManager,c=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(e){return(0,o.registerGlobal)(l,e,s.DiagAPI.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(e,t,n){for(var r,o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];return(r=this._getContextManager()).with.apply(r,a([e,t,n],i(o),!1))},e.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},e.prototype._getContextManager=function(){return(0,o.getGlobal)(l)||u},e.prototype.disable=function(){this._getContextManager().disable(),(0,o.unregisterGlobal)(l,s.DiagAPI.instance())},e}()},"../../node_modules/@opentelemetry/api/build/esm/api/diag.js":(e,t,n)=>{"use strict";n.d(t,{DiagAPI:()=>u});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag/ComponentLogger.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/diag/internal/logLevelLogger.js"),s=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 r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},l=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,s=t.length;o<s;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},u=function(){function e(){function e(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=(0,i.getGlobal)("diag");if(r)return r[e].apply(r,l([],a(t),!1))}}var t=this;t.setLogger=function(e,n){var r,a,l;if(void 0===n&&(n={logLevel:s.DiagLogLevel.INFO}),e===t){var u=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!==(r=u.stack)&&void 0!==r?r:u.message),!1}"number"==typeof n&&(n={logLevel:n});var c=(0,i.getGlobal)("diag"),d=(0,o.createLogLevelDiagLogger)(null!==(a=n.logLevel)&&void 0!==a?a:s.DiagLogLevel.INFO,e);if(c&&!n.suppressOverrideMessage){var p=null!==(l=(new Error).stack)&&void 0!==l?l:"<failed to generate stacktrace>";c.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 r.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 r=n("../../node_modules/@opentelemetry/api/build/esm/metrics/NoopMeterProvider.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),s=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,o.registerGlobal)(i,e,s.DiagAPI.instance())},e.prototype.getMeterProvider=function(){return(0,o.getGlobal)(i)||r.NOOP_METER_PROVIDER},e.prototype.getMeter=function(e,t,n){return this.getMeterProvider().getMeter(e,t,n)},e.prototype.disable=function(){(0,o.unregisterGlobal)(i,s.DiagAPI.instance())},e}()},"../../node_modules/@opentelemetry/api/build/esm/api/propagation.js":(e,t,n)=>{"use strict";n.d(t,{PropagationAPI:()=>d});var r=n("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/propagation/NoopTextMapPropagator.js"),s=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"),u="propagation",c=new o.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,r.registerGlobal)(u,e,l.DiagAPI.instance())},e.prototype.inject=function(e,t,n){return void 0===n&&(n=s.defaultTextMapSetter),this._getGlobalPropagator().inject(e,t,n)},e.prototype.extract=function(e,t,n){return void 0===n&&(n=s.defaultTextMapGetter),this._getGlobalPropagator().extract(e,t,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){(0,r.unregisterGlobal)(u,l.DiagAPI.instance())},e.prototype._getGlobalPropagator=function(){return(0,r.getGlobal)(u)||c},e}()},"../../node_modules/@opentelemetry/api/build/esm/api/trace.js":(e,t,n)=>{"use strict";n.d(t,{TraceAPI:()=>u});var r=n("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace/ProxyTracerProvider.js"),s=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",u=function(){function e(){this._proxyTracerProvider=new o.ProxyTracerProvider,this.wrapSpanContext=s.wrapSpanContext,this.isSpanContextValid=s.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,r.registerGlobal)(l,this._proxyTracerProvider,a.DiagAPI.instance());return t&&this._proxyTracerProvider.setDelegate(e),t},e.prototype.getTracerProvider=function(){return(0,r.getGlobal)(l)||this._proxyTracerProvider},e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},e.prototype.disable=function(){(0,r.unregisterGlobal)(l,a.DiagAPI.instance()),this._proxyTracerProvider=new o.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:()=>s,setBaggage:()=>a});var r=n("../../node_modules/@opentelemetry/api/build/esm/api/context.js"),o=(0,n("../../node_modules/@opentelemetry/api/build/esm/context/context.js").createContextKey)("OpenTelemetry Baggage Key");function s(e){return e.getValue(o)||void 0}function i(){return s(r.ContextAPI.getInstance().active())}function a(e,t){return e.setValue(o,t)}function l(e){return e.deleteValue(o)}},"../../node_modules/@opentelemetry/api/build/esm/baggage/internal/baggage-impl.js":(e,t,n)=>{"use strict";n.d(t,{BaggageImpl:()=>s});var r=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},o=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=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=r(e,2);return[t[0],t[1]]})},e.prototype.setEntry=function(t,n){var r=new e(this._entries);return r._entries.set(t,n),r},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,r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var i=new e(this._entries);try{for(var a=o(r),l=a.next();!l.done;l=a.next()){var u=l.value;i._entries.delete(u)}}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:()=>r});var r=Symbol("BaggageEntryMetadata")},"../../node_modules/@opentelemetry/api/build/esm/baggage/utils.js":(e,t,n)=>{"use strict";n.d(t,{baggageEntryMetadataFromString:()=>l,createBaggage:()=>a});var r=n("../../node_modules/@opentelemetry/api/build/esm/api/diag.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/baggage/internal/baggage-impl.js"),s=n("../../node_modules/@opentelemetry/api/build/esm/baggage/internal/symbol.js"),i=r.DiagAPI.instance();function a(e){return void 0===e&&(e={}),new o.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__:s.baggageEntryMetadataSymbol,toString:function(){return e}}}},"../../node_modules/@opentelemetry/api/build/esm/context-api.js":(e,t,n)=>{"use strict";n.d(t,{context:()=>r});var r=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 r=n("../../node_modules/@opentelemetry/api/build/esm/context/context.js"),o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},s=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,s=t.length;o<s;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},i=function(){function e(){}return e.prototype.active=function(){return r.ROOT_CONTEXT},e.prototype.with=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];return t.call.apply(t,s([n],o(r),!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 r(e){return Symbol.for(e)}n.d(t,{ROOT_CONTEXT:()=>o,createContextKey:()=>r});var o=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,r){var o=new e(n._currentContext);return o._currentContext.set(t,r),o},n.deleteValue=function(t){var r=new e(n._currentContext);return r._currentContext.delete(t),r}}},"../../node_modules/@opentelemetry/api/build/esm/diag-api.js":(e,t,n)=>{"use strict";n.d(t,{diag:()=>r});var r=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 r=n("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},s=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,s=t.length;o<s;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||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,r.getGlobal)("diag");if(i)return n.unshift(t),i[e].apply(i,s([],o(n),!1))}},"../../node_modules/@opentelemetry/api/build/esm/diag/internal/logLevelLogger.js":(e,t,n)=>{"use strict";n.d(t,{createLogLevelDiagLogger:()=>o});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag/types.js");function o(e,t){function n(n,r){var o=t[n];return"function"==typeof o&&e>=r?o.bind(t):function(){}}return e<r.DiagLogLevel.NONE?e=r.DiagLogLevel.NONE:e>r.DiagLogLevel.ALL&&(e=r.DiagLogLevel.ALL),t=t||{},{error:n("error",r.DiagLogLevel.ERROR),warn:n("warn",r.DiagLogLevel.WARN),info:n("info",r.DiagLogLevel.INFO),debug:n("debug",r.DiagLogLevel.DEBUG),verbose:n("verbose",r.DiagLogLevel.VERBOSE)}}},"../../node_modules/@opentelemetry/api/build/esm/diag/types.js":(e,t,n)=>{"use strict";var r;n.d(t,{DiagLogLevel:()=>r}),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"}(r||(r={}))},"../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js":(e,t,n)=>{"use strict";n.d(t,{getGlobal:()=>c,registerGlobal:()=>u,unregisterGlobal:()=>d});var r=n("../../node_modules/@opentelemetry/api/build/esm/platform/browser/globalThis.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/version.js"),s=n("../../node_modules/@opentelemetry/api/build/esm/internal/semver.js"),i=o.VERSION.split(".")[0],a=Symbol.for("opentelemetry.js.api."+i),l=r._globalThis;function u(e,t,n,r){var s;void 0===r&&(r=!1);var i=l[a]=null!==(s=l[a])&&void 0!==s?s:{version:o.VERSION};if(!r&&i[e]){var u=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return n.error(u.stack||u.message),!1}if(i.version!==o.VERSION){u=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+e+" does not match previously registered API v"+o.VERSION);return n.error(u.stack||u.message),!1}return i[e]=t,n.debug("@opentelemetry/api: Registered a global for "+e+" v"+o.VERSION+"."),!0}function c(e){var t,n,r=null===(t=l[a])||void 0===t?void 0:t.version;if(r&&(0,s.isCompatible)(r))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"+o.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:()=>s});var r=n("../../node_modules/@opentelemetry/api/build/esm/version.js"),o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;var s=function(e){var t=new Set([e]),n=new Set,r=e.match(o);if(!r)return function(){return!1};var s=+r[1],i=+r[2],a=+r[3];if(null!=r[4])return function(t){return t===e};function l(e){return n.add(e),!1}function u(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(n.has(e))return!1;var r=e.match(o);if(!r)return l(e);var c=+r[1],d=+r[2],p=+r[3];return null!=r[4]||s!==c?l(e):0===s?i===d&&a<=p?u(e):l(e):i<=d?u(e):l(e)}}(r.VERSION)},"../../node_modules/@opentelemetry/api/build/esm/metrics-api.js":(e,t,n)=>{"use strict";n.d(t,{metrics:()=>r});var r=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:()=>f});var r,o=(r=function(e,t){return r=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])},r(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(){function e(){}return e.prototype.createGauge=function(e,t){return g},e.prototype.createHistogram=function(e,t){return _},e.prototype.createCounter=function(e,t){return A},e.prototype.createUpDownCounter=function(e,t){return y},e.prototype.createObservableGauge=function(e,t){return b},e.prototype.createObservableCounter=function(e,t){return E},e.prototype.createObservableUpDownCounter=function(e,t){return v},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 o(t,e),t.prototype.add=function(e,t){},t}(i),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.add=function(e,t){},t}(i),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.record=function(e,t){},t}(i),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(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 o(t,e),t}(d),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(d),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(d),f=new s,A=new a,g=new u,_=new c,y=new l,E=new p,b=new m,v=new h},"../../node_modules/@opentelemetry/api/build/esm/metrics/NoopMeterProvider.js":(e,t,n)=>{"use strict";n.d(t,{NOOP_METER_PROVIDER:()=>o});var r=n("../../node_modules/@opentelemetry/api/build/esm/metrics/NoopMeter.js"),o=new(function(){function e(){}return e.prototype.getMeter=function(e,t,n){return r.NOOP_METER},e}())},"../../node_modules/@opentelemetry/api/build/esm/platform/browser/globalThis.js":(e,t,n)=>{"use strict";n.d(t,{_globalThis:()=>r});var r="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:()=>r});var r=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:()=>r});var r=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:()=>r,defaultTextMapSetter:()=>o});var r={get:function(e,t){if(null!=e)return e[t]},keys:function(e){return null==e?[]:Object.keys(e)}},o={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:()=>r});var r=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:()=>o});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js"),o=function(){function e(e){void 0===e&&(e=r.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 r=n("../../node_modules/@opentelemetry/api/build/esm/api/context.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace/context-utils.js"),s=n("../../node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"),a=r.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 s.NonRecordingSpan;var r,l=n&&(0,o.getSpanContext)(n);return"object"==typeof(r=l)&&"string"==typeof r.spanId&&"string"==typeof r.traceId&&"number"==typeof r.traceFlags&&(0,i.isSpanContextValid)(l)?new s.NonRecordingSpan(l):new s.NonRecordingSpan},e.prototype.startActiveSpan=function(e,t,n,r){var s,i,l;if(!(arguments.length<2)){2===arguments.length?l=t:3===arguments.length?(s=t,l=n):(s=t,i=n,l=r);var u=null!=i?i:a.active(),c=this.startSpan(e,s,u),d=(0,o.setSpan)(u,c);return a.with(d,l,void 0,c)}},e}()},"../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracerProvider.js":(e,t,n)=>{"use strict";n.d(t,{NoopTracerProvider:()=>o});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js"),o=function(){function e(){}return e.prototype.getTracer=function(e,t,n){return new r.NoopTracer},e}()},"../../node_modules/@opentelemetry/api/build/esm/trace/ProxyTracer.js":(e,t,n)=>{"use strict";n.d(t,{ProxyTracer:()=>o});var r=new(n("../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js").NoopTracer),o=function(){function e(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}return e.prototype.startSpan=function(e,t,n){return this._getTracer().startSpan(e,t,n)},e.prototype.startActiveSpan=function(e,t,n,r){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,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):r},e}()},"../../node_modules/@opentelemetry/api/build/esm/trace/ProxyTracerProvider.js":(e,t,n)=>{"use strict";n.d(t,{ProxyTracerProvider:()=>s});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace/ProxyTracer.js"),o=new(n("../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracerProvider.js").NoopTracerProvider),s=function(){function e(){}return e.prototype.getTracer=function(e,t,n){var o;return null!==(o=this.getDelegateTracer(e,t,n))&&void 0!==o?o:new r.ProxyTracer(this,e,t,n)},e.prototype.getDelegate=function(){var e;return null!==(e=this._delegate)&&void 0!==e?e:o},e.prototype.setDelegate=function(e){this._delegate=e},e.prototype.getDelegateTracer=function(e,t,n){var r;return null===(r=this._delegate)||void 0===r?void 0:r.getTracer(e,t,n)},e}()},"../../node_modules/@opentelemetry/api/build/esm/trace/SamplingResult.js":(e,t,n)=>{"use strict";var r;n.d(t,{SamplingDecision:()=>r}),function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(r||(r={}))},"../../node_modules/@opentelemetry/api/build/esm/trace/context-utils.js":(e,t,n)=>{"use strict";n.d(t,{deleteSpan:()=>c,getActiveSpan:()=>l,getSpan:()=>a,getSpanContext:()=>p,setSpan:()=>u,setSpanContext:()=>d});var r=n("../../node_modules/@opentelemetry/api/build/esm/context/context.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js"),s=n("../../node_modules/@opentelemetry/api/build/esm/api/context.js"),i=(0,r.createContextKey)("OpenTelemetry Context Key SPAN");function a(e){return e.getValue(i)||void 0}function l(){return a(s.ContextAPI.getInstance().active())}function u(e,t){return e.setValue(i,t)}function c(e){return e.deleteValue(i)}function d(e,t){return u(e,new o.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:()=>o,INVALID_SPAN_CONTEXT:()=>i,INVALID_TRACEID:()=>s});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js"),o="0000000000000000",s="00000000000000000000000000000000",i={traceId:s,spanId:o,traceFlags:r.TraceFlags.NONE}},"../../node_modules/@opentelemetry/api/build/esm/trace/span_kind.js":(e,t,n)=>{"use strict";var r;n.d(t,{SpanKind:()=>r}),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"}(r||(r={}))},"../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js":(e,t,n)=>{"use strict";n.d(t,{isSpanContextValid:()=>l,isValidTraceId:()=>a,wrapSpanContext:()=>u});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js"),s=/^([0-9a-f]{32})$/i,i=/^[0-9a-f]{16}$/i;function a(e){return s.test(e)&&e!==r.INVALID_TRACEID}function l(e){return a(e.traceId)&&(t=e.spanId,i.test(t)&&t!==r.INVALID_SPANID);var t}function u(e){return new o.NonRecordingSpan(e)}},"../../node_modules/@opentelemetry/api/build/esm/trace/status.js":(e,t,n)=>{"use strict";var r;n.d(t,{SpanStatusCode:()=>r}),function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"}(r||(r={}))},"../../node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js":(e,t,n)=>{"use strict";var r;n.d(t,{TraceFlags:()=>r}),function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"}(r||(r={}))},"../../node_modules/@opentelemetry/api/build/esm/version.js":(e,t,n)=>{"use strict";n.d(t,{VERSION:()=>r});var r="1.9.0"},"../../node_modules/@opentelemetry/auto-instrumentations-web/build/esm/index.js":(e,t,n)=>{"use strict";n.d(t,{getWebAutoInstrumentations:()=>r.getWebAutoInstrumentations});var r=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:()=>u});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),o=n("../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/index.js"),s=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"),l={"@opentelemetry/instrumentation-document-load":o.DocumentLoadInstrumentation,"@opentelemetry/instrumentation-fetch":s.FetchInstrumentation,"@opentelemetry/instrumentation-user-interaction":i.UserInteractionInstrumentation,"@opentelemetry/instrumentation-xml-http-request":a.XMLHttpRequestInstrumentation};function u(e){var t;void 0===e&&(e={});for(var n=0,o=Object.keys(e);n<o.length;n++){var s=o[n];Object.prototype.hasOwnProperty.call(l,s)||r.diag.error('Provided instrumentation name "'+s+'" not found')}for(var i=[],a=0,u=Object.keys(l);a<u.length;a++){var c=u[a],d=l[c],p=null!==(t=e[c])&&void 0!==t?t:{};if(!1!==p.enabled)try{r.diag.debug("Loading instrumentation for "+c),i.push(new d(p))}catch(e){r.diag.error(e)}else r.diag.debug("Disabling instrumentation for "+c)}return i}},"../../node_modules/@opentelemetry/core/build/esm/common/time.js":(e,t,n)=>{"use strict";n.d(t,{hrTime:()=>l});var r=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js"),o=Math.pow(10,6),s=Math.pow(10,9);function i(e){var t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*o)]}function a(){var e=r.otperformance.timeOrigin;if("number"!=typeof e){var t=r.otperformance;e=t.timing&&t.timing.fetchStart}return e}function l(e){return function(e,t){var n=[e[0]+t[0],e[1]+t[1]];n[1]>=s&&(n[1]-=s,n[0]+=1);return n}(i(a()),i("number"==typeof e?e:r.otperformance.now()))}},"../../node_modules/@opentelemetry/core/build/esm/internal/validators.js":(e,t,n)=>{"use strict";n.d(t,{validateKey:()=>a,validateValue:()=>l});var r="[_0-9a-z-*/]",o=new RegExp("^(?:"+("[a-z]"+r+"{0,255}")+"|"+("[a-z0-9]"+r+"{0,240}@[a-z]"+r+"{0,13}")+")$"),s=/^[ -~]{0,255}[!-~]$/,i=/,|=/;function a(e){return o.test(e)}function l(e){return s.test(e)&&!i.test(e)}},"../../node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js":(e,t,n)=>{"use strict";n.d(t,{otperformance:()=>r});var r=performance},"../../node_modules/@opentelemetry/core/build/esm/trace/TraceState.js":(e,t,n)=>{"use strict";n.d(t,{TraceState:()=>o});var r=n("../../node_modules/@opentelemetry/core/build/esm/internal/validators.js"),o=function(){function e(e){this._internalState=new Map,e&&this._parse(e)}return e.prototype.set=function(e,t){var n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n},e.prototype.unset=function(e){var t=this._clone();return t._internalState.delete(e),t},e.prototype.get=function(e){return this._internalState.get(e)},e.prototype.serialize=function(){var e=this;return this._keys().reduce(function(t,n){return t.push(n+"="+e.get(n)),t},[]).join(",")},e.prototype._parse=function(e){e.length>512||(this._internalState=e.split(",").reverse().reduce(function(e,t){var n=t.trim(),o=n.indexOf("=");if(-1!==o){var s=n.slice(0,o),i=n.slice(o+1,t.length);(0,r.validateKey)(s)&&(0,r.validateValue)(i)&&e.set(s,i)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}()},"../../node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js":(e,t,n)=>{"use strict";n.d(t,{TRACE_PARENT_HEADER:()=>l});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"),s=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"),l="traceparent",u="tracestate",c=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");!function(){function e(){}e.prototype.inject=function(e,t,n){var a=r.trace.getSpanContext(e);if(a&&!(0,i.isTracingSuppressed)(e)&&(0,o.isSpanContextValid)(a)){var c="00-"+a.traceId+"-"+a.spanId+"-0"+Number(a.traceFlags||s.TraceFlags.NONE).toString(16);n.set(t,l,c),a.traceState&&n.set(t,u,a.traceState.serialize())}},e.prototype.extract=function(e,t,n){var o=n.get(t,l);if(!o)return e;var s=Array.isArray(o)?o[0]:o;if("string"!=typeof s)return e;var i=function(e){var t=c.exec(e);return t?"00"===t[1]&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}:null}(s);if(!i)return e;i.isRemote=!0;var d=n.get(t,u);if(d){var p=Array.isArray(d)?d.join(","):d;i.traceState=new a.TraceState("string"==typeof p?p:void 0)}return r.trace.setSpanContext(e,i)},e.prototype.fields=function(){return[l,u]}}()},"../../node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js":(e,t,n)=>{"use strict";n.d(t,{isTracingSuppressed:()=>o});var r=(0,n("../../node_modules/@opentelemetry/api/build/esm/context/context.js").createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function o(e){return!0===e.getValue(r)}},"../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/enums/AttributeNames.js":(e,t,n)=>{"use strict";var r;n.d(t,{AttributeNames:()=>r}),function(e){e.DOCUMENT_LOAD="documentLoad",e.DOCUMENT_FETCH="documentFetch",e.RESOURCE_FETCH="resourceFetch"}(r||(r={}))},"../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/enums/EventNames.js":(e,t,n)=>{"use strict";var r;n.d(t,{EventNames:()=>r}),function(e){e.FIRST_PAINT="firstPaint",e.FIRST_CONTENTFUL_PAINT="firstContentfulPaint"}(r||(r={}))},"../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/index.js":(e,t,n)=>{"use strict";n.d(t,{DocumentLoadInstrumentation:()=>r.DocumentLoadInstrumentation});var r=n("../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/instrumentation.js");n("../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/enums/AttributeNames.js"),n("../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/types.js")},"../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/instrumentation.js":(e,t,n)=>{"use strict";n.d(t,{DocumentLoadInstrumentation:()=>y});var r,o=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),s=n("../../node_modules/@opentelemetry/api/build/esm/propagation-api.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/context/context.js"),a=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),l=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js"),u=n("../../node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js"),c=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/enums/PerformanceTimingNames.js"),d=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/utils.js"),p=n("../../node_modules/@opentelemetry/instrumentation/build/esm/utils.js"),m=n("../../node_modules/@opentelemetry/instrumentation/build/esm/platform/browser/instrumentation.js"),h=n("../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/enums/AttributeNames.js"),f=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"),_=(r=function(e,t){return r=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])},r(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,f.PACKAGE_NAME,f.PACKAGE_VERSION,t)||this;return n.component="document-load",n.version="1",n.moduleName=n.component,n}return _(t,e),t.prototype.init=function(){},t.prototype._onDocumentLoaded=function(){var e=this;window.setTimeout(function(){e._collectPerformance()})},t.prototype._addResourcesSpans=function(e){var t,n,r=this,o=null===(n=(t=l.otperformance).getEntriesByType)||void 0===n?void 0:n.call(t,"resource");o&&o.forEach(function(t){r._initResourceSpan(t,e)})},t.prototype._collectPerformance=function(){var e=this,t=Array.from(document.getElementsByTagName("meta")).find(function(e){return e.getAttribute("name")===u.TRACE_PARENT_HEADER}),n=(0,g.getPerformanceNavigationEntries)(),r=t&&t.content||"";o.context.with(s.propagation.extract(i.ROOT_CONTEXT,{traceparent:r}),function(){var t,r=e._startSpan(h.AttributeNames.DOCUMENT_LOAD,c.PerformanceTimingNames.FETCH_START,n);r&&(o.context.with(a.trace.setSpan(o.context.active(),r),function(){var t=e._startSpan(h.AttributeNames.DOCUMENT_FETCH,c.PerformanceTimingNames.FETCH_START,n);t&&(t.setAttribute(A.SEMATTRS_HTTP_URL,location.href),o.context.with(a.trace.setSpan(o.context.active(),t),function(){var r;e.getConfig().ignoreNetworkEvents||(0,d.addSpanNetworkEvents)(t,n),e._addCustomAttributesOnSpan(t,null===(r=e.getConfig().applyCustomAttributesOnSpan)||void 0===r?void 0:r.documentFetch),e._endSpan(t,c.PerformanceTimingNames.RESPONSE_END,n)}))}),r.setAttribute(A.SEMATTRS_HTTP_URL,location.href),r.setAttribute(A.SEMATTRS_HTTP_USER_AGENT,navigator.userAgent),e._addResourcesSpans(r),e.getConfig().ignoreNetworkEvents||((0,d.addSpanNetworkEvent)(r,c.PerformanceTimingNames.FETCH_START,n),(0,d.addSpanNetworkEvent)(r,c.PerformanceTimingNames.UNLOAD_EVENT_START,n),(0,d.addSpanNetworkEvent)(r,c.PerformanceTimingNames.UNLOAD_EVENT_END,n),(0,d.addSpanNetworkEvent)(r,c.PerformanceTimingNames.DOM_INTERACTIVE,n),(0,d.addSpanNetworkEvent)(r,c.PerformanceTimingNames.DOM_CONTENT_LOADED_EVENT_START,n),(0,d.addSpanNetworkEvent)(r,c.PerformanceTimingNames.DOM_CONTENT_LOADED_EVENT_END,n),(0,d.addSpanNetworkEvent)(r,c.PerformanceTimingNames.DOM_COMPLETE,n),(0,d.addSpanNetworkEvent)(r,c.PerformanceTimingNames.LOAD_EVENT_START,n),(0,d.addSpanNetworkEvent)(r,c.PerformanceTimingNames.LOAD_EVENT_END,n)),e.getConfig().ignorePerformancePaintEvents||(0,g.addSpanPerformancePaintEvents)(r),e._addCustomAttributesOnSpan(r,null===(t=e.getConfig().applyCustomAttributesOnSpan)||void 0===t?void 0:t.documentLoad),e._endSpan(r,c.PerformanceTimingNames.LOAD_EVENT_END,n))})},t.prototype._endSpan=function(e,t,n){e&&((0,d.hasKey)(n,t)?e.end(n[t]):e.end())},t.prototype._initResourceSpan=function(e,t){var n,r=this._startSpan(h.AttributeNames.RESOURCE_FETCH,c.PerformanceTimingNames.FETCH_START,e,t);r&&(r.setAttribute(A.SEMATTRS_HTTP_URL,e.name),this.getConfig().ignoreNetworkEvents||(0,d.addSpanNetworkEvents)(r,e),this._addCustomAttributesOnResourceSpan(r,e,null===(n=this.getConfig().applyCustomAttributesOnSpan)||void 0===n?void 0:n.resourceFetch),this._endSpan(r,c.PerformanceTimingNames.RESPONSE_END,e))},t.prototype._startSpan=function(e,t,n,r){if((0,d.hasKey)(n,t)&&"number"==typeof n[t])return this.tracer.startSpan(e,{startTime:n[t]},r?a.trace.setSpan(o.context.active(),r):void 0)},t.prototype._waitForPageLoad=function(){"complete"===window.document.readyState?this._onDocumentLoaded():(this._onDocumentLoaded=this._onDocumentLoaded.bind(this),window.addEventListener("load",this._onDocumentLoaded))},t.prototype._addCustomAttributesOnSpan=function(e,t){var n=this;t&&(0,p.safeExecuteInTheMiddle)(function(){return t(e)},function(e){e&&n._diag.error("addCustomAttributesOnSpan",e)},!0)},t.prototype._addCustomAttributesOnResourceSpan=function(e,t,n){var r=this;n&&(0,p.safeExecuteInTheMiddle)(function(){return n(e,t)},function(e){e&&r._diag.error("addCustomAttributesOnResourceSpan",e)},!0)},t.prototype.enable=function(){window.removeEventListener("load",this._onDocumentLoaded),this._waitForPageLoad()},t.prototype.disable=function(){window.removeEventListener("load",this._onDocumentLoaded)},t}(m.InstrumentationBase)},"../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/types.js":()=>{},"../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/utils.js":(e,t,n)=>{"use strict";n.d(t,{addSpanPerformancePaintEvents:()=>u,getPerformanceNavigationEntries:()=>a});var r=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js"),o=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/enums/PerformanceTimingNames.js"),s=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/utils.js"),i=n("../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/enums/EventNames.js"),a=function(){var e,t,n={},i=null===(t=(e=r.otperformance).getEntriesByType)||void 0===t?void 0:t.call(e,"navigation")[0];if(i){Object.values(o.PerformanceTimingNames).forEach(function(e){if((0,s.hasKey)(i,e)){var t=i[e];"number"==typeof t&&(n[e]=t)}})}else{var a=r.otperformance.timing;if(a)Object.values(o.PerformanceTimingNames).forEach(function(e){if((0,s.hasKey)(a,e)){var t=a[e];"number"==typeof t&&(n[e]=t)}})}return n},l={"first-paint":i.EventNames.FIRST_PAINT,"first-contentful-paint":i.EventNames.FIRST_CONTENTFUL_PAINT},u=function(e){var t,n,o=null===(n=(t=r.otperformance).getEntriesByType)||void 0===n?void 0:n.call(t,"paint");o&&o.forEach(function(t){var n=t.name,r=t.startTime;(0,s.hasKey)(l,n)&&e.addEvent(l[n],r)})}},"../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/version.js":(e,t,n)=>{"use strict";n.d(t,{PACKAGE_NAME:()=>o,PACKAGE_VERSION:()=>r});var r="0.43.0",o="@opentelemetry/instrumentation-document-load"},"../../node_modules/@opentelemetry/instrumentation-fetch/build/esm/enums/AttributeNames.js":(e,t,n)=>{"use strict";var r;n.d(t,{AttributeNames:()=>r}),function(e){e.COMPONENT="component",e.HTTP_ERROR_NAME="http.error_name",e.HTTP_STATUS_TEXT="http.status_text"}(r||(r={}))},"../../node_modules/@opentelemetry/instrumentation-fetch/build/esm/fetch.js":(e,t,n)=>{"use strict";n.d(t,{FetchInstrumentation:()=>S});var r,o,s=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/api/build/esm/propagation-api.js"),l=n("../../node_modules/@opentelemetry/api/build/esm/trace/span_kind.js"),u=n("../../node_modules/@opentelemetry/instrumentation/build/esm/utils.js"),c=n("../../node_modules/@opentelemetry/instrumentation/build/esm/platform/browser/instrumentation.js"),d=n("../../node_modules/@opentelemetry/instrumentation-fetch/node_modules/@opentelemetry/core/build/esm/utils/url.js"),p=n("../../node_modules/@opentelemetry/instrumentation-fetch/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"),f=n("../../node_modules/@opentelemetry/instrumentation-fetch/build/esm/enums/AttributeNames.js"),A=n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js"),g=n("../../node_modules/@opentelemetry/instrumentation-fetch/build/esm/utils.js"),_=n("../../node_modules/@opentelemetry/instrumentation-fetch/build/esm/version.js"),y=n("../../node_modules/@opentelemetry/instrumentation-fetch/node_modules/@opentelemetry/core/build/esm/platform/browser/globalThis.js"),E=(r=function(e,t){return r=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])},r(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),b=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},v=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,s=t.length;o<s;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},T="object"==typeof process&&"node"===(null===(o=process.release)||void 0===o?void 0:o.name),S=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,"@opentelemetry/instrumentation-fetch",_.VERSION,t)||this;return n.component="fetch",n.version=_.VERSION,n.moduleName=n.component,n._usedResources=new WeakSet,n._tasksCount=0,n}return E(t,e),t.prototype.init=function(){},t.prototype._addChildSpan=function(e,t){var n=this.tracer.startSpan("CORS Preflight",{startTime:t[m.PerformanceTimingNames.FETCH_START]},s.trace.setSpan(i.context.active(),e));this.getConfig().ignoreNetworkEvents||h.addSpanNetworkEvents(n,t),n.end(t[m.PerformanceTimingNames.RESPONSE_END])},t.prototype._addFinalSpanAttributes=function(e,t){var n=h.parseUrl(t.url);e.setAttribute(A.SEMATTRS_HTTP_STATUS_CODE,t.status),null!=t.statusText&&e.setAttribute(f.AttributeNames.HTTP_STATUS_TEXT,t.statusText),e.setAttribute(A.SEMATTRS_HTTP_HOST,n.host),e.setAttribute(A.SEMATTRS_HTTP_SCHEME,n.protocol.replace(":","")),"undefined"!=typeof navigator&&e.setAttribute(A.SEMATTRS_HTTP_USER_AGENT,navigator.userAgent)},t.prototype._addHeaders=function(e,t){if(!h.shouldPropagateTraceHeaders(t,this.getConfig().propagateTraceHeaderCorsUrls)){var n={};return a.propagation.inject(i.context.active(),n),void(Object.keys(n).length>0&&this._diag.debug("headers inject skipped due to CORS policy"))}if(e instanceof Request)a.propagation.inject(i.context.active(),e.headers,{set:function(e,t,n){return e.set(t,"string"==typeof n?n:String(n))}});else if(e.headers instanceof Headers)a.propagation.inject(i.context.active(),e.headers,{set:function(e,t,n){return e.set(t,"string"==typeof n?n:String(n))}});else if(e.headers instanceof Map)a.propagation.inject(i.context.active(),e.headers,{set:function(e,t,n){return e.set(t,"string"==typeof n?n:String(n))}});else{n={};a.propagation.inject(i.context.active(),n),e.headers=Object.assign({},n,e.headers||{})}},t.prototype._clearResources=function(){0===this._tasksCount&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)},t.prototype._createSpan=function(e,t){var n;if(void 0===t&&(t={}),!d.isUrlIgnored(e,this.getConfig().ignoreUrls)){var r=(t.method||"GET").toUpperCase(),o="HTTP "+r;return this.tracer.startSpan(o,{kind:l.SpanKind.CLIENT,attributes:(n={},n[f.AttributeNames.COMPONENT]=this.moduleName,n[A.SEMATTRS_HTTP_METHOD]=r,n[A.SEMATTRS_HTTP_URL]=e,n)})}this._diag.debug("ignoring span as url matches ignored url")},t.prototype._findResourceAndAddNetworkEvents=function(e,t,n){var r=t.entries;if(!r.length){if(!performance.getEntriesByType)return;r=performance.getEntriesByType("resource")}var o=h.getResource(t.spanUrl,t.startTime,n,r,this._usedResources,"fetch");if(o.mainRequest){var s=o.mainRequest;this._markResourceAsUsed(s);var i=o.corsPreFlightRequest;i&&(this._addChildSpan(e,i),this._markResourceAsUsed(i)),this.getConfig().ignoreNetworkEvents||h.addSpanNetworkEvents(e,s)}},t.prototype._markResourceAsUsed=function(e){this._usedResources.add(e)},t.prototype._endSpan=function(e,t,n){var r=this,o=p.millisToHrTime(Date.now()),s=p.hrTime();this._addFinalSpanAttributes(e,n),setTimeout(function(){var n;null===(n=t.observer)||void 0===n||n.disconnect(),r._findResourceAndAddNetworkEvents(e,t,s),r._tasksCount--,r._clearResources(),e.end(o)},300)},t.prototype._patchConstructor=function(){var e=this;return function(t){var n=e;return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=this,a=h.parseUrl(e[0]instanceof Request?e[0].url:String(e[0])).href,l=e[0]instanceof Request?e[0]:e[1]||{},u=n._createSpan(a,l);if(!u)return t.apply(this,e);var c=n._prepareSpanData(a);function d(e,t){n._applyAttributesAfterFetch(e,l,t),n._endSpan(e,c,{status:t.status||0,statusText:t.message,url:a})}function p(e,t){n._applyAttributesAfterFetch(e,l,t),t.status>=200&&t.status<400?n._endSpan(e,c,t):n._endSpan(e,c,{status:t.status,statusText:t.statusText,url:a})}function m(e,t,n){try{var r=n.clone(),o=n.clone(),s=r.body;if(s){var i=s.getReader(),a=function(){i.read().then(function(t){t.done?p(e,o):a()},function(t){d(e,t)})};a()}else p(e,n)}finally{t(n)}}function f(e,t,n){try{d(e,n)}finally{t(n)}}return n.getConfig().measureRequestSize&&g.getFetchBodyLength.apply(void 0,v([],b(e),!1)).then(function(e){e&&u.setAttribute(A.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED,e)}).catch(function(e){n._diag.warn("getFetchBodyLength",e)}),new Promise(function(e,r){return i.context.with(s.trace.setSpan(i.context.active(),u),function(){return n._addHeaders(l,a),n._tasksCount++,t.apply(o,l instanceof Request?[l]:[a,l]).then(m.bind(o,u,e),f.bind(o,u,r))})})}}},t.prototype._applyAttributesAfterFetch=function(e,t,n){var r=this,o=this.getConfig().applyCustomAttributesOnSpan;o&&(0,u.safeExecuteInTheMiddle)(function(){return o(e,t,n)},function(e){e&&r._diag.error("applyCustomAttributesOnSpan",e)},!0)},t.prototype._prepareSpanData=function(e){var t=p.hrTime(),n=[];if("function"!=typeof PerformanceObserver)return{entries:n,startTime:t,spanUrl:e};var r=new PerformanceObserver(function(t){t.getEntries().forEach(function(t){"fetch"===t.initiatorType&&t.name===e&&n.push(t)})});return r.observe({entryTypes:["resource"]}),{entries:n,observer:r,startTime:t,spanUrl:e}},t.prototype.enable=function(){T?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(y._globalThis,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(y._globalThis,"fetch",this._patchConstructor()))},t.prototype.disable=function(){T||(this._unwrap(y._globalThis,"fetch"),this._usedResources=new WeakSet)},t}(c.InstrumentationBase)},"../../node_modules/@opentelemetry/instrumentation-fetch/build/esm/utils.js":(e,t,n)=>{"use strict";n.d(t,{getFetchBodyLength:()=>u});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),o=function(e,t,n,r){return new(n||(n=Promise))(function(o,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function a(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,a)}l((r=r.apply(e,t||[])).next())})},s=function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}},i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},l=r.diag.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-fetch/utils"});function u(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e[0]instanceof URL||"string"==typeof e[0]){var n=e[1];if(!(null==n?void 0:n.body))return Promise.resolve();if(n.body instanceof ReadableStream){var r=function(e){if(!e.pipeThrough)return l.warn("Platform has ReadableStream but not pipeThrough!"),{body:e,length:Promise.resolve(void 0)};var t,n=0,r=new Promise(function(e){t=e}),i=new TransformStream({start:function(){},transform:function(e,t){return o(this,void 0,void 0,function(){var r;return s(this,function(o){switch(o.label){case 0:return[4,e];case 1:return r=o.sent(),n+=r.byteLength,t.enqueue(e),[2]}})})},flush:function(){t(n)}});return{body:e.pipeThrough(i),length:r}}(n.body),u=r.body,c=r.length;return n.body=u,c}return Promise.resolve(function(e){if("undefined"!=typeof Document&&e instanceof Document)return(new XMLSerializer).serializeToString(document).length;if(e instanceof Blob)return e.size;if(void 0!==e.byteLength)return e.byteLength;if(e instanceof FormData)return function(e){var t,n,r=0;try{for(var o=i(e.entries()),s=o.next();!s.done;s=o.next()){var l=a(s.value,2),u=l[0],c=l[1];r+=u.length,c instanceof Blob?r+=c.size:r+=c.length}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}(e);if(e instanceof URLSearchParams)return d(e.toString());if("string"==typeof e)return d(e);return void l.warn("unknown body type")}(n.body))}var p=e[0];return(null==p?void 0:p.body)?p.clone().text().then(function(e){return d(e)}):Promise.resolve()}var c=new TextEncoder;function d(e){return c.encode(e).byteLength}},"../../node_modules/@opentelemetry/instrumentation-fetch/build/esm/version.js":(e,t,n)=>{"use strict";n.d(t,{VERSION:()=>r});var r="0.56.0"},"../../node_modules/@opentelemetry/instrumentation-fetch/node_modules/@opentelemetry/core/build/esm/common/time.js":(e,t,n)=>{"use strict";n.d(t,{hrTime:()=>l,millisToHrTime:()=>i});var r=n("../../node_modules/@opentelemetry/instrumentation-fetch/node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js"),o=Math.pow(10,6),s=Math.pow(10,9);function i(e){var t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*o)]}function a(){var e=r.otperformance.timeOrigin;if("number"!=typeof e){var t=r.otperformance;e=t.timing&&t.timing.fetchStart}return e}function l(e){return function(e,t){var n=[e[0]+t[0],e[1]+t[1]];n[1]>=s&&(n[1]-=s,n[0]+=1);return n}(i(a()),i("number"==typeof e?e:r.otperformance.now()))}},"../../node_modules/@opentelemetry/instrumentation-fetch/node_modules/@opentelemetry/core/build/esm/platform/browser/globalThis.js":(e,t,n)=>{"use strict";n.d(t,{_globalThis:()=>r});var r="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof n.g?n.g:{}},"../../node_modules/@opentelemetry/instrumentation-fetch/node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js":(e,t,n)=>{"use strict";n.d(t,{otperformance:()=>r});var r=performance},"../../node_modules/@opentelemetry/instrumentation-fetch/node_modules/@opentelemetry/core/build/esm/utils/url.js":(e,t,n)=>{"use strict";n.d(t,{isUrlIgnored:()=>s});var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function o(e,t){return"string"==typeof t?e===t:!!e.match(t)}function s(e,t){var n,s;if(!t)return!1;try{for(var i=r(t),a=i.next();!a.done;a=i.next()){if(o(e,a.value))return!0}}catch(e){n={error:e}}finally{try{a&&!a.done&&(s=i.return)&&s.call(i)}finally{if(n)throw n.error}}return!1}},"../../node_modules/@opentelemetry/instrumentation-user-interaction/build/esm/enums/AttributeNames.js":(e,t,n)=>{"use strict";var r;n.d(t,{AttributeNames:()=>r}),function(e){e.EVENT_TYPE="event_type",e.TARGET_ELEMENT="target_element",e.TARGET_XPATH="target_xpath",e.HTTP_URL="http.url"}(r||(r={}))},"../../node_modules/@opentelemetry/instrumentation-user-interaction/build/esm/instrumentation.js":(e,t,n)=>{"use strict";n.d(t,{UserInteractionInstrumentation:()=>f});var r,o=n("../../node_modules/@opentelemetry/instrumentation/build/esm/utils.js"),s=n("../../node_modules/@opentelemetry/instrumentation/build/esm/platform/browser/instrumentation.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),a=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),l=n("../../node_modules/@opentelemetry/core/build/esm/common/time.js"),u=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/utils.js"),c=n("../../node_modules/@opentelemetry/instrumentation-user-interaction/build/esm/enums/AttributeNames.js"),d=n("../../node_modules/@opentelemetry/instrumentation-user-interaction/build/esm/version.js"),p=(r=function(e,t){return r=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])},r(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=["click"];function h(){return!1}var f=function(e){function t(t){var n;void 0===t&&(t={});var r=e.call(this,d.PACKAGE_NAME,d.PACKAGE_VERSION,t)||this;return r.version=d.PACKAGE_VERSION,r.moduleName="user-interaction",r._spansData=new WeakMap,r._wrappedListeners=new WeakMap,r._eventsSpanMap=new WeakMap,r._eventNames=new Set(null!==(n=null==t?void 0:t.eventNames)&&void 0!==n?n:m),r._shouldPreventSpanCreation="function"==typeof(null==t?void 0:t.shouldPreventSpanCreation)?t.shouldPreventSpanCreation:h,r}return p(t,e),t.prototype.init=function(){},t.prototype._checkForTimeout=function(e,t){var n=this._spansData.get(t);n&&("setTimeout"===e.source?n.hrTimeLastTimeout=(0,l.hrTime)():"Promise.then"!==e.source&&"setTimeout"!==e.source&&(n.hrTimeLastTimeout=void 0))},t.prototype._allowEventName=function(e){return this._eventNames.has(e)},t.prototype._createSpan=function(e,t,n){var r;if(e instanceof HTMLElement&&e.getAttribute&&!e.hasAttribute("disabled")&&this._allowEventName(t)){var o=(0,u.getElementXPath)(e,!0);try{var s=this.tracer.startSpan(t,{attributes:(r={},r[c.AttributeNames.EVENT_TYPE]=t,r[c.AttributeNames.TARGET_ELEMENT]=e.tagName,r[c.AttributeNames.TARGET_XPATH]=o,r[c.AttributeNames.HTTP_URL]=window.location.href,r)},n?i.trace.setSpan(a.context.active(),n):void 0);if(!0===this._shouldPreventSpanCreation(t,e,s))return;return this._spansData.set(s,{taskCount:0}),s}catch(e){this._diag.error("failed to start create new user interaction span",e)}}},t.prototype._decrementTask=function(e){var t=this._spansData.get(e);t&&(t.taskCount--,0===t.taskCount&&this._tryToEndSpan(e,t.hrTimeLastTimeout))},t.prototype._getCurrentSpan=function(e){var t=e.get("OT_ZONE_CONTEXT");return t?i.trace.getSpan(t):t},t.prototype._incrementTask=function(e){var t=this._spansData.get(e);t&&t.taskCount++},t.prototype.addPatchedListener=function(e,t,n,r){var o=this._wrappedListeners.get(n);o||(o=new Map,this._wrappedListeners.set(n,o));var s=o.get(t);return s||(s=new Map,o.set(t,s)),!s.has(e)&&(s.set(e,r),!0)},t.prototype.removePatchedListener=function(e,t,n){var r=this._wrappedListeners.get(n);if(r){var o=r.get(t);if(o){var s=o.get(e);return s&&(o.delete(e),0===o.size&&(r.delete(t),0===r.size&&this._wrappedListeners.delete(n))),s}}},t.prototype._invokeListener=function(e,t,n){return"function"==typeof e?e.apply(t,n):e.handleEvent(n[0])},t.prototype._patchAddEventListener=function(){var e=this;return function(t){return function(n,r,o){if(!r)return t.call(this,n,r,o);var s=o&&"object"==typeof o&&o.once,l=function(){for(var t,o=this,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];var c=l[0],d=null==c?void 0:c.target;c&&(t=e._eventsSpanMap.get(c)),s&&e.removePatchedListener(this,n,r);var p=e._createSpan(d,n,t);return p?(c&&e._eventsSpanMap.set(c,p),a.context.with(i.trace.setSpan(a.context.active(),p),function(){var t=e._invokeListener(r,o,l);return p.end(),t})):e._invokeListener(r,this,l)};return e.addPatchedListener(this,n,r,l)?t.call(this,n,l,o):void 0}}},t.prototype._patchRemoveEventListener=function(){var e=this;return function(t){return function(n,r,o){var s=e.removePatchedListener(this,n,r);return s?t.call(this,n,s,o):t.call(this,n,r,o)}}},t.prototype._getPatchableEventTargets=function(){return window.EventTarget?[EventTarget.prototype]:[Node.prototype,Window.prototype]},t.prototype._patchHistoryApi=function(){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())},t.prototype._patchHistoryMethod=function(){var e=this;return function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=""+location.pathname+location.hash+location.search,s=t.apply(this,n),i=""+location.pathname+location.hash+location.search;return o!==i&&e._updateInteractionName(i),s}}},t.prototype._unpatchHistoryApi=function(){(0,o.isWrapped)(history.replaceState)&&this._unwrap(history,"replaceState"),(0,o.isWrapped)(history.pushState)&&this._unwrap(history,"pushState"),(0,o.isWrapped)(history.back)&&this._unwrap(history,"back"),(0,o.isWrapped)(history.forward)&&this._unwrap(history,"forward"),(0,o.isWrapped)(history.go)&&this._unwrap(history,"go")},t.prototype._updateInteractionName=function(e){var t=i.trace.getSpan(a.context.active());t&&"function"==typeof t.updateName&&t.updateName("Navigation: "+e)},t.prototype._patchZoneCancelTask=function(){var e=this;return function(t){return function(n){var r=Zone.current,o=e._getCurrentSpan(r);return o&&e._shouldCountTask(n,r)&&e._decrementTask(o),t.call(this,n)}}},t.prototype._patchZoneScheduleTask=function(){var e=this;return function(t){return function(n){var r=Zone.current,o=e._getCurrentSpan(r);return o&&e._shouldCountTask(n,r)&&(e._incrementTask(o),e._checkForTimeout(n,o)),t.call(this,n)}}},t.prototype._patchZoneRunTask=function(){var e=this;return function(t){return function(n,r,o){var s,l=Array.isArray(o)&&o[0]instanceof Event?o[0]:void 0,u=null==l?void 0:l.target,c=this;if(u){if(s=e._createSpan(u,n.eventName))return e._incrementTask(s),c.run(function(){try{return a.context.with(i.trace.setSpan(a.context.active(),s),function(){var e=Zone.current;return n._zone=e,t.call(e,n,r,o)})}finally{e._decrementTask(s)}})}else s=e._getCurrentSpan(c);try{return t.call(c,n,r,o)}finally{s&&e._shouldCountTask(n,c)&&e._decrementTask(s)}}}},t.prototype._shouldCountTask=function(e,t){if(e._zone&&(t=e._zone),!t||!e.data||e.data.isPeriodic)return!1;var n=this._getCurrentSpan(t);return!!n&&(!!this._spansData.get(n)&&("macroTask"===e.type||"microTask"===e.type))},t.prototype._tryToEndSpan=function(e,t){e&&(this._spansData.get(e)&&(e.end(t),this._spansData.delete(e)))},t.prototype.enable=function(){var e=this,t=this.getZoneWithPrototype();(this._diag.debug("applying patch to",this.moduleName,this.version,"zone:",!!t),t)?((0,o.isWrapped)(t.prototype.runTask)&&(this._unwrap(t.prototype,"runTask"),this._diag.debug("removing previous patch from method runTask")),(0,o.isWrapped)(t.prototype.scheduleTask)&&(this._unwrap(t.prototype,"scheduleTask"),this._diag.debug("removing previous patch from method scheduleTask")),(0,o.isWrapped)(t.prototype.cancelTask)&&(this._unwrap(t.prototype,"cancelTask"),this._diag.debug("removing previous patch from method cancelTask")),this._zonePatched=!0,this._wrap(t.prototype,"runTask",this._patchZoneRunTask()),this._wrap(t.prototype,"scheduleTask",this._patchZoneScheduleTask()),this._wrap(t.prototype,"cancelTask",this._patchZoneCancelTask())):(this._zonePatched=!1,this._getPatchableEventTargets().forEach(function(t){(0,o.isWrapped)(t.addEventListener)&&(e._unwrap(t,"addEventListener"),e._diag.debug("removing previous patch from method addEventListener")),(0,o.isWrapped)(t.removeEventListener)&&(e._unwrap(t,"removeEventListener"),e._diag.debug("removing previous patch from method removeEventListener")),e._wrap(t,"addEventListener",e._patchAddEventListener()),e._wrap(t,"removeEventListener",e._patchRemoveEventListener())}));this._patchHistoryApi()},t.prototype.disable=function(){var e=this,t=this.getZoneWithPrototype();(this._diag.debug("removing patch from",this.moduleName,this.version,"zone:",!!t),t&&this._zonePatched)?((0,o.isWrapped)(t.prototype.runTask)&&this._unwrap(t.prototype,"runTask"),(0,o.isWrapped)(t.prototype.scheduleTask)&&this._unwrap(t.prototype,"scheduleTask"),(0,o.isWrapped)(t.prototype.cancelTask)&&this._unwrap(t.prototype,"cancelTask")):this._getPatchableEventTargets().forEach(function(t){(0,o.isWrapped)(t.addEventListener)&&e._unwrap(t,"addEventListener"),(0,o.isWrapped)(t.removeEventListener)&&e._unwrap(t,"removeEventListener")});this._unpatchHistoryApi()},t.prototype.getZoneWithPrototype=function(){return window.Zone},t}(s.InstrumentationBase)},"../../node_modules/@opentelemetry/instrumentation-user-interaction/build/esm/version.js":(e,t,n)=>{"use strict";n.d(t,{PACKAGE_NAME:()=>o,PACKAGE_VERSION:()=>r});var r="0.43.0",o="@opentelemetry/instrumentation-user-interaction"},"../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/enums/AttributeNames.js":(e,t,n)=>{"use strict";var r;n.d(t,{AttributeNames:()=>r}),function(e){e.HTTP_STATUS_TEXT="http.status_text"}(r||(r={}))},"../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/enums/EventNames.js":(e,t,n)=>{"use strict";var r;n.d(t,{EventNames:()=>r}),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"}(r||(r={}))},"../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/utils.js":(e,t,n)=>{"use strict";n.d(t,{getXHRBodyLength:()=>a});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),o=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},i=r.diag.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-xml-http-request/utils"});function a(e){return"undefined"!=typeof Document&&e instanceof Document?(new XMLSerializer).serializeToString(document).length:e instanceof Blob?e.size:void 0!==e.byteLength?e.byteLength:e instanceof FormData?function(e){var t,n,r=0;try{for(var i=o(e.entries()),a=i.next();!a.done;a=i.next()){var l=s(a.value,2),u=l[0],c=l[1];r+=u.length,c instanceof Blob?r+=c.size:r+=c.length}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}(e):e instanceof URLSearchParams?u(e.toString()):"string"==typeof e?u(e):void i.warn("unknown body type")}var l=new TextEncoder;function u(e){return l.encode(e).byteLength}},"../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/version.js":(e,t,n)=>{"use strict";n.d(t,{VERSION:()=>r});var r="0.56.0"},"../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/xhr.js":(e,t,n)=>{"use strict";n.d(t,{XMLHttpRequestInstrumentation:()=>b});var r,o=n("../../node_modules/@opentelemetry/api/build/esm/propagation-api.js"),s=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),a=n("../../node_modules/@opentelemetry/api/build/esm/trace/span_kind.js"),l=n("../../node_modules/@opentelemetry/instrumentation/build/esm/utils.js"),u=n("../../node_modules/@opentelemetry/instrumentation/build/esm/platform/browser/instrumentation.js"),c=n("../../node_modules/@opentelemetry/instrumentation-xml-http-request/node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js"),d=n("../../node_modules/@opentelemetry/instrumentation-xml-http-request/node_modules/@opentelemetry/core/build/esm/utils/url.js"),p=n("../../node_modules/@opentelemetry/instrumentation-xml-http-request/node_modules/@opentelemetry/core/build/esm/common/time.js"),m=n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js"),h=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/utils.js"),f=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/enums/PerformanceTimingNames.js"),A=n("../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/enums/EventNames.js"),g=n("../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/utils.js"),_=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"),E=(r=function(e,t){return r=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])},r(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),b=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,"@opentelemetry/instrumentation-xml-http-request",_.VERSION,t)||this;return n.component="xml-http-request",n.version=_.VERSION,n.moduleName=n.component,n._tasksCount=0,n._xhrMem=new WeakMap,n._usedResources=new WeakSet,n}return E(t,e),t.prototype.init=function(){},t.prototype._addHeaders=function(e,t){var n=(0,h.parseUrl)(t).href;if(!(0,h.shouldPropagateTraceHeaders)(n,this.getConfig().propagateTraceHeaderCorsUrls)){var r={};return o.propagation.inject(s.context.active(),r),void(Object.keys(r).length>0&&this._diag.debug("headers inject skipped due to CORS policy"))}var i={};o.propagation.inject(s.context.active(),i),Object.keys(i).forEach(function(t){e.setRequestHeader(t,String(i[t]))})},t.prototype._addChildSpan=function(e,t){var n=this;s.context.with(i.trace.setSpan(s.context.active(),e),function(){var e=n.tracer.startSpan("CORS Preflight",{startTime:t[f.PerformanceTimingNames.FETCH_START]});n.getConfig().ignoreNetworkEvents||(0,h.addSpanNetworkEvents)(e,t),e.end(t[f.PerformanceTimingNames.RESPONSE_END])})},t.prototype._addFinalSpanAttributes=function(e,t,n){if("string"==typeof n){var r=(0,h.parseUrl)(n);void 0!==t.status&&e.setAttribute(m.SEMATTRS_HTTP_STATUS_CODE,t.status),void 0!==t.statusText&&e.setAttribute(y.AttributeNames.HTTP_STATUS_TEXT,t.statusText),e.setAttribute(m.SEMATTRS_HTTP_HOST,r.host),e.setAttribute(m.SEMATTRS_HTTP_SCHEME,r.protocol.replace(":","")),e.setAttribute(m.SEMATTRS_HTTP_USER_AGENT,navigator.userAgent)}},t.prototype._applyAttributesAfterXHR=function(e,t){var n=this,r=this.getConfig().applyCustomAttributesOnSpan;"function"==typeof r&&(0,l.safeExecuteInTheMiddle)(function(){return r(e,t)},function(e){e&&n._diag.error("applyCustomAttributesOnSpan",e)},!0)},t.prototype._addResourceObserver=function(e,t){var n=this._xhrMem.get(e);n&&"function"==typeof PerformanceObserver&&"function"==typeof PerformanceResourceTiming&&(n.createdResources={observer:new PerformanceObserver(function(e){var r=e.getEntries(),o=(0,h.parseUrl)(t);r.forEach(function(e){"xmlhttprequest"===e.initiatorType&&e.name===o.href&&n.createdResources&&n.createdResources.entries.push(e)})}),entries:[]},n.createdResources.observer.observe({entryTypes:["resource"]}))},t.prototype._clearResources=function(){0===this._tasksCount&&this.getConfig().clearTimingResources&&(c.otperformance.clearResourceTimings(),this._xhrMem=new WeakMap,this._usedResources=new WeakSet)},t.prototype._findResourceAndAddNetworkEvents=function(e,t,n,r,o){if(n&&r&&o&&e.createdResources){var s=e.createdResources.entries;s&&s.length||(s=c.otperformance.getEntriesByType("resource"));var i=(0,h.getResource)((0,h.parseUrl)(n).href,r,o,s,this._usedResources);if(i.mainRequest){var a=i.mainRequest;this._markResourceAsUsed(a);var l=i.corsPreFlightRequest;l&&(this._addChildSpan(t,l),this._markResourceAsUsed(l)),this.getConfig().ignoreNetworkEvents||(0,h.addSpanNetworkEvents)(t,a)}}},t.prototype._cleanPreviousSpanInformation=function(e){var t=this._xhrMem.get(e);if(t){var n=t.callbackToRemoveEvents;n&&n(),this._xhrMem.delete(e)}},t.prototype._createSpan=function(e,t,n){var r;if(!(0,d.isUrlIgnored)(t,this.getConfig().ignoreUrls)){var o=n.toUpperCase(),s=this.tracer.startSpan(o,{kind:a.SpanKind.CLIENT,attributes:(r={},r[m.SEMATTRS_HTTP_METHOD]=n,r[m.SEMATTRS_HTTP_URL]=(0,h.parseUrl)(t).toString(),r)});return s.addEvent(A.EventNames.METHOD_OPEN),this._cleanPreviousSpanInformation(e),this._xhrMem.set(e,{span:s,spanUrl:t}),s}this._diag.debug("ignoring span as url matches ignored url")},t.prototype._markResourceAsUsed=function(e){this._usedResources.add(e)},t.prototype._patchOpen=function(){var e=this;return function(t){var n=e;return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=e[0],s=e[1];return n._createSpan(this,s,o),t.apply(this,e)}}},t.prototype._patchSend=function(){var e=this;function t(t,n){var r=e._xhrMem.get(n);if(r){r.status=n.status,r.statusText=n.statusText,e._xhrMem.delete(n),r.span&&e._applyAttributesAfterXHR(r.span,n);var o=(0,p.hrTime)(),s=Date.now();setTimeout(function(){!function(t,n,r,o){var s=n.callbackToRemoveEvents;"function"==typeof s&&s();var i=n.span,a=n.spanUrl,l=n.sendStartTime;i&&(e._findResourceAndAddNetworkEvents(n,i,a,l,r),i.addEvent(t,o),e._addFinalSpanAttributes(i,n,a),i.end(o),e._tasksCount--),e._clearResources()}(t,r,o,s)},300)}}function n(){t(A.EventNames.EVENT_ERROR,this)}function r(){t(A.EventNames.EVENT_ABORT,this)}function o(){t(A.EventNames.EVENT_TIMEOUT,this)}function a(){this.status<299?t(A.EventNames.EVENT_LOAD,this):t(A.EventNames.EVENT_ERROR,this)}return function(t){return function(){for(var l=this,u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];var d=e._xhrMem.get(this);if(!d)return t.apply(this,u);var h=d.span,f=d.spanUrl;if(h&&f){if(e.getConfig().measureRequestSize&&(null==u?void 0:u[0])){var _=u[0],y=(0,g.getXHRBodyLength)(_);void 0!==y&&h.setAttribute(m.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED,y)}s.context.with(i.trace.setSpan(s.context.active(),h),function(){e._tasksCount++,d.sendStartTime=(0,p.hrTime)(),h.addEvent(A.EventNames.METHOD_SEND),l.addEventListener("abort",r),l.addEventListener("error",n),l.addEventListener("load",a),l.addEventListener("timeout",o),d.callbackToRemoveEvents=function(){!function(t){t.removeEventListener("abort",r),t.removeEventListener("error",n),t.removeEventListener("load",a),t.removeEventListener("timeout",o);var s=e._xhrMem.get(t);s&&(s.callbackToRemoveEvents=void 0)}(l),d.createdResources&&d.createdResources.observer.disconnect()},e._addHeaders(l,f),e._addResourceObserver(l,f)})}return t.apply(this,u)}}},t.prototype.enable=function(){this._diag.debug("applying patch to",this.moduleName,this.version),(0,l.isWrapped)(XMLHttpRequest.prototype.open)&&(this._unwrap(XMLHttpRequest.prototype,"open"),this._diag.debug("removing previous patch from method open")),(0,l.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())},t.prototype.disable=function(){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},t}(u.InstrumentationBase)},"../../node_modules/@opentelemetry/instrumentation-xml-http-request/node_modules/@opentelemetry/core/build/esm/common/time.js":(e,t,n)=>{"use strict";n.d(t,{hrTime:()=>l});var r=n("../../node_modules/@opentelemetry/instrumentation-xml-http-request/node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js"),o=Math.pow(10,6),s=Math.pow(10,9);function i(e){var t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*o)]}function a(){var e=r.otperformance.timeOrigin;if("number"!=typeof e){var t=r.otperformance;e=t.timing&&t.timing.fetchStart}return e}function l(e){return function(e,t){var n=[e[0]+t[0],e[1]+t[1]];n[1]>=s&&(n[1]-=s,n[0]+=1);return n}(i(a()),i("number"==typeof e?e:r.otperformance.now()))}},"../../node_modules/@opentelemetry/instrumentation-xml-http-request/node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js":(e,t,n)=>{"use strict";n.d(t,{otperformance:()=>r});var r=performance},"../../node_modules/@opentelemetry/instrumentation-xml-http-request/node_modules/@opentelemetry/core/build/esm/utils/url.js":(e,t,n)=>{"use strict";n.d(t,{isUrlIgnored:()=>s});var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function o(e,t){return"string"==typeof t?e===t:!!e.match(t)}function s(e,t){var n,s;if(!t)return!1;try{for(var i=r(t),a=i.next();!a.done;a=i.next()){if(o(e,a.value))return!0}}catch(e){n={error:e}}finally{try{a&&!a.done&&(s=i.return)&&s.call(i)}finally{if(n)throw n.error}}return!1}},"../../node_modules/@opentelemetry/instrumentation/build/esm/autoLoader.js":(e,t,n)=>{"use strict";n.d(t,{registerInstrumentations:()=>a});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/metrics-api.js"),s=n("../../node_modules/@opentelemetry/api-logs/build/esm/index.js"),i=n("../../node_modules/@opentelemetry/instrumentation/build/esm/autoLoaderUtils.js");function a(e){var t,n,a=e.tracerProvider||r.trace.getTracerProvider(),l=e.meterProvider||o.metrics.getMeterProvider(),u=e.loggerProvider||s.logs.getLoggerProvider(),c=null!==(n=null===(t=e.instrumentations)||void 0===t?void 0:t.flat())&&void 0!==n?n:[];return(0,i.enableInstrumentations)(c,a,l,u),function(){(0,i.disableInstrumentations)(c)}}},"../../node_modules/@opentelemetry/instrumentation/build/esm/autoLoaderUtils.js":(e,t,n)=>{"use strict";function r(e,t,n,r){for(var o=0,s=e.length;o<s;o++){var i=e[o];t&&i.setTracerProvider(t),n&&i.setMeterProvider(n),r&&i.setLoggerProvider&&i.setLoggerProvider(r),i.getConfig().enabled||i.enable()}}function o(e){e.forEach(function(e){return e.disable()})}n.d(t,{disableInstrumentations:()=>o,enableInstrumentations:()=>r})},"../../node_modules/@opentelemetry/instrumentation/build/esm/instrumentation.js":(e,t,n)=>{"use strict";n.d(t,{InstrumentationAbstract:()=>u});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),s=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/shimmer/index.js"),l=function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)},u=function(){function e(e,t,n){this.instrumentationName=e,this.instrumentationVersion=t,this._config={},this._wrap=a.wrap,this._unwrap=a.unwrap,this._massWrap=a.massWrap,this._massUnwrap=a.massUnwrap,this.setConfig(n),this._diag=r.diag.createComponentLogger({namespace:e}),this._tracer=o.trace.getTracer(e,t),this._meter=s.metrics.getMeter(e,t),this._logger=i.logs.getLogger(e,t),this._updateMetricInstruments()}return Object.defineProperty(e.prototype,"meter",{get:function(){return this._meter},enumerable:!1,configurable:!0}),e.prototype.setMeterProvider=function(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()},Object.defineProperty(e.prototype,"logger",{get:function(){return this._logger},enumerable:!1,configurable:!0}),e.prototype.setLoggerProvider=function(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)},e.prototype.getModuleDefinitions=function(){var e,t=null!==(e=this.init())&&void 0!==e?e:[];return Array.isArray(t)?t:[t]},e.prototype._updateMetricInstruments=function(){},e.prototype.getConfig=function(){return this._config},e.prototype.setConfig=function(e){this._config=l({enabled:!0},e)},e.prototype.setTracerProvider=function(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)},Object.defineProperty(e.prototype,"tracer",{get:function(){return this._tracer},enumerable:!1,configurable:!0}),e.prototype._runSpanCustomizationHook=function(e,t,n,r){if(e)try{e(n,r)}catch(e){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:t},e)}},e}()},"../../node_modules/@opentelemetry/instrumentation/build/esm/platform/browser/instrumentation.js":(e,t,n)=>{"use strict";n.d(t,{InstrumentationBase:()=>i});var r,o=n("../../node_modules/@opentelemetry/instrumentation/build/esm/instrumentation.js"),s=(r=function(e,t){return r=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])},r(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o._config.enabled&&o.enable(),o}return s(t,e),t}(o.InstrumentationAbstract)},"../../node_modules/@opentelemetry/instrumentation/build/esm/utils.js":(e,t,n)=>{"use strict";n.d(t,{isWrapped:()=>o,safeExecuteInTheMiddle:()=>r});function r(e,t,n){var r,o;try{o=e()}catch(e){r=e}finally{if(t(r,o),r&&!n)throw r;return o}}function o(e){return"function"==typeof e&&"function"==typeof e.__original&&"function"==typeof e.__unwrap&&!0===e.__wrapped}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/OTLPExporterBase.js":(e,t,n)=>{"use strict";n.d(t,{OTLPExporterBase:()=>r});var r=function(){function e(e){this._delegate=e}return e.prototype.export=function(e,t){this._delegate.export(e,t)},e.prototype.forceFlush=function(){return this._delegate.forceFlush()},e.prototype.shutdown=function(){return this._delegate.shutdown()},e}()},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/bounded-queue-export-promise-handler.js":(e,t,n)=>{"use strict";n.d(t,{createBoundedQueueExportPromiseHandler:()=>i});var r=function(e,t,n,r){return new(n||(n=Promise))(function(o,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function a(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,a)}l((r=r.apply(e,t||[])).next())})},o=function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}},s=function(){function e(e){this._sendingPromises=[],this._concurrencyLimit=e}return e.prototype.pushPromise=function(e){var t=this;if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(e);var n=function(){var n=t._sendingPromises.indexOf(e);t._sendingPromises.splice(n,1)};e.then(n,n)},e.prototype.hasReachedLimit=function(){return this._sendingPromises.length>=this._concurrencyLimit},e.prototype.awaitAll=function(){return r(this,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return[4,Promise.all(this._sendingPromises)];case 1:return e.sent(),[2]}})})},e}();function i(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:()=>s});var r=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/otlp-http-configuration.js"),o=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/shared-configuration.js");function s(e,t,n){return(0,r.mergeOtlpHttpConfigurationWithDefaults)({url:e.url,timeoutMillis:e.timeoutMillis,headers:(0,o.wrapStaticHeadersInFunction)(e.headers),concurrencyLimit:e.concurrencyLimit},{},(0,r.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:()=>s});var r=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-browser-http-export-delegate.js"),o=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/convert-legacy-browser-http-options.js");function s(e,t,n,s){var i=!!e.headers||"function"!=typeof navigator.sendBeacon,a=(0,o.convertLegacyBrowserHttpOptions)(e,n,s);return i?(0,r.createOtlpXhrExportDelegate)(a,t):(0,r.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 r=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/shared-configuration.js"),o=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/util.js"),s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)};function i(e){if(null!=e)try{return new URL(e),e}catch(t){throw new Error("Configuration: Could not parse user-provided export URL: '"+e+"'")}}function a(e,t,n){var a,l,u,c,d,p,m,h,f;return s(s({},(0,r.mergeOtlpSharedConfigurationWithDefaults)(e,t,n)),{headers:(d=(0,o.validateAndNormalizeHeaders)(e.headers),p=t.headers,m=n.headers,h=s({},m()),f={},function(){return null!=p&&Object.assign(f,p()),null!=d&&Object.assign(f,d()),Object.assign(f,h)}),url:null!==(l=null!==(a=i(e.url))&&void 0!==a?a:t.url)&&void 0!==l?l:n.url,agentOptions:null!==(c=null!==(u=e.agentOptions)&&void 0!==u?u:t.agentOptions)&&void 0!==c?c:n.agentOptions})}function l(e,t){return s(s({},(0,r.getSharedConfigurationDefaults)()),{headers:function(){return 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 r(e){if(!Number.isNaN(e)&&Number.isFinite(e)&&e>0)return e;throw new Error("Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '"+e+"')")}function o(e){if(null!=e)return function(){return e}}function s(e,t,n){var o,s,i,a,l,u;return{timeoutMillis:r(null!==(s=null!==(o=e.timeoutMillis)&&void 0!==o?o:t.timeoutMillis)&&void 0!==s?s:n.timeoutMillis),concurrencyLimit:null!==(a=null!==(i=e.concurrencyLimit)&&void 0!==i?i:t.concurrencyLimit)&&void 0!==a?a:n.concurrencyLimit,compression:null!==(u=null!==(l=e.compression)&&void 0!==l?l:t.compression)&&void 0!==u?u:n.compression}}function i(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}n.d(t,{getSharedConfigurationDefaults:()=>i,mergeOtlpSharedConfigurationWithDefaults:()=>s,wrapStaticHeadersInFunction:()=>o})},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/is-export-retryable.js":(e,t,n)=>{"use strict";function r(e){return[429,502,503,504].includes(e)}function o(e){if(null!=e){var t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?1e3*t:-1;var n=new Date(e).getTime()-Date.now();return n>=0?n:0}}n.d(t,{isExportRetryable:()=>r,parseRetryAfterToMills:()=>o})},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/logging-response-handler.js":(e,t,n)=>{"use strict";n.d(t,{createLoggingPartialSuccessResponseHandler:()=>o});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js");function o(){return{handleResponse:function(e){null!=e&&function(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}(e)&&null!=e.partialSuccess&&0!==Object.keys(e.partialSuccess).length&&r.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 r=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/retrying-transport.js"),o=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/xhr-transport.js"),s=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,r.createRetryingTransport)({transport:(0,o.createXhrTransport)(e)}))}function l(e,t){return(0,i.createOtlpNetworkExportDelegate)(e,t,(0,r.createRetryingTransport)({transport:(0,s.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:()=>c});var r=n("../../node_modules/@opentelemetry/otlp-exporter-base/node_modules/@opentelemetry/core/build/esm/ExportResult.js"),o=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/types.js"),s=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/logging-response-handler.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),a=function(e,t,n,r){return new(n||(n=Promise))(function(o,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function a(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,a)}l((r=r.apply(e,t||[])).next())})},l=function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}},u=function(){function e(e,t,n,r,o){this._transport=e,this._serializer=t,this._responseHandler=n,this._promiseQueue=r,this._timeout=o,this._diagLogger=i.diag.createComponentLogger({namespace:"OTLPExportDelegate"})}return e.prototype.export=function(e,t){var n=this;if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit())t({code:r.ExportResultCode.FAILED,error:new Error("Concurrent export limit reached")});else{var s=this._serializer.serializeRequest(e);null!=s?this._promiseQueue.pushPromise(this._transport.send(s,this._timeout).then(function(e){if("success"!==e.status)"failure"===e.status&&e.error?t({code:r.ExportResultCode.FAILED,error:e.error}):"retryable"===e.status?t({code:r.ExportResultCode.FAILED,error:new o.OTLPExporterError("Export failed with retryable status")}):t({code:r.ExportResultCode.FAILED,error:new o.OTLPExporterError("Export failed with unknown error")});else{if(null!=e.data)try{n._responseHandler.handleResponse(n._serializer.deserializeResponse(e.data))}catch(t){n._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",t,e.data)}t({code:r.ExportResultCode.SUCCESS})}},function(e){return t({code:r.ExportResultCode.FAILED,error:e})})):t({code:r.ExportResultCode.FAILED,error:new Error("Nothing to send")})}},e.prototype.forceFlush=function(){return this._promiseQueue.awaitAll()},e.prototype.shutdown=function(){return a(this,void 0,void 0,function(){return l(this,function(e){switch(e.label){case 0:return this._diagLogger.debug("shutdown started"),[4,this.forceFlush()];case 1:return e.sent(),this._transport.shutdown(),[2]}})})},e}();function c(e,t){return new u(e.transport,e.serializer,(0,s.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:()=>s});var r=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/bounded-queue-export-promise-handler.js"),o=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-export-delegate.js");function s(e,t,n){return(0,o.createOtlpExportDelegate)({transport:n,serializer:t,promiseHandler:(0,r.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:()=>i});var r=function(e,t,n,r){return new(n||(n=Promise))(function(o,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function a(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,a)}l((r=r.apply(e,t||[])).next())})},o=function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};var s=function(){function e(e){this._transport=e}return e.prototype.retry=function(e,t,n){var r=this;return new Promise(function(o,s){setTimeout(function(){r._transport.send(e,t).then(o,s)},n)})},e.prototype.send=function(e,t){var n;return r(this,void 0,void 0,function(){var r,s,i,a,l,u,c;return o(this,function(o){switch(o.label){case 0:return r=Date.now()+t,[4,this._transport.send(e,t)];case 1:s=o.sent(),i=5,a=1e3,o.label=2;case 2:return"retryable"===s.status&&i>0?(i--,l=Math.max(Math.min(a,5e3)+(.4*Math.random()-.2),0),a*=1.5,u=null!==(n=s.retryInMillis)&&void 0!==n?n:l,c=r-Date.now(),u>c?[2,s]:[4,this.retry(e,c,u)]):[3,4];case 3:return s=o.sent(),[3,2];case 4:return[2,s]}})})},e.prototype.shutdown=function(){return this._transport.shutdown()},e}();function i(e){return new s(e.transport)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/send-beacon-transport.js":(e,t,n)=>{"use strict";n.d(t,{createSendBeaconTransport:()=>s});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),o=function(){function e(e){this._params=e}return e.prototype.send=function(e){var t=this;return new Promise(function(n){navigator.sendBeacon(t._params.url,new Blob([e],{type:t._params.blobType}))?(r.diag.debug("SendBeacon success"),n({status:"success"})):n({status:"failure",error:new Error("SendBeacon failed")})})},e.prototype.shutdown=function(){},e}();function s(e){return new o(e)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/xhr-transport.js":(e,t,n)=>{"use strict";n.d(t,{createXhrTransport:()=>a});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),o=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/is-export-retryable.js"),s=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},i=function(){function e(e){this._parameters=e}return e.prototype.send=function(e,t){var n=this;return new Promise(function(i){var a=new XMLHttpRequest;a.timeout=t,a.open("POST",n._parameters.url);var l=n._parameters.headers();Object.entries(l).forEach(function(e){var t=s(e,2),n=t[0],r=t[1];a.setRequestHeader(n,r)}),a.ontimeout=function(e){i({status:"failure",error:new Error("XHR request timed out")})},a.onreadystatechange=function(){a.status>=200&&a.status<=299?(r.diag.debug("XHR success"),i({status:"success"})):a.status&&(0,o.isExportRetryable)(a.status)?i({status:"retryable",retryInMillis:(0,o.parseRetryAfterToMills)(a.getResponseHeader("Retry-After"))}):0!==a.status&&i({status:"failure",error:new Error("XHR request failed with non-retryable status")})},a.onabort=function(){i({status:"failure",error:new Error("XHR request aborted")})},a.onerror=function(){i({status:"failure",error:new Error("XHR request errored")})},a.send(e)})},e.prototype.shutdown=function(){},e}();function a(e){return new i(e)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/types.js":(e,t,n)=>{"use strict";n.d(t,{OTLPExporterError:()=>s});var r,o=(r=function(e,t){return r=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])},r(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.name="OTLPExporterError",o.data=r,o.code=n,o}return o(t,e),t}(Error)},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/util.js":(e,t,n)=>{"use strict";n.d(t,{validateAndNormalizeHeaders:()=>s});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i};function s(e){return function(){var t,n={};return Object.entries(null!==(t=null==e?void 0:e())&&void 0!==t?t:{}).forEach(function(e){var t=o(e,2),s=t[0],i=t[1];void 0!==i?n[s]=String(i):r.diag.warn('Header "'+s+'" has invalid value ('+i+") and will be ignored")}),n}}},"../../node_modules/@opentelemetry/otlp-exporter-base/node_modules/@opentelemetry/core/build/esm/ExportResult.js":(e,t,n)=>{"use strict";var r;n.d(t,{ExportResultCode:()=>r}),function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"}(r||(r={}))},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/index.js":(e,t,n)=>{"use strict";n.d(t,{getOtlpEncoder:()=>d});var r=n("../../node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/core/build/esm/common/time.js"),o=n("../../node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/core/build/esm/common/hex-to-binary.js");function s(e){var t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function i(e){var t,n=s(e);return t=n,{low:Number(BigInt.asUintN(32,t)),high:Number(BigInt.asUintN(32,t>>BigInt(32)))}}var a="undefined"!=typeof BigInt?function(e){return s(e).toString()}:r.hrTimeToNanoseconds;function l(e){return e}function u(e){if(void 0!==e)return(0,o.hexToBinary)(e)}var c={encodeHrTime:i,encodeSpanContext:o.hexToBinary,encodeOptionalSpanContext:u};function d(e){var t,n;if(void 0===e)return c;var r=null===(t=e.useLongBits)||void 0===t||t,s=null!==(n=e.useHex)&&void 0!==n&&n;return{encodeHrTime:r?i:a,encodeSpanContext:s?l:o.hexToBinary,encodeOptionalSpanContext:s?l:u}}},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/internal.js":(e,t,n)=>{"use strict";n.d(t,{createInstrumentationScope:()=>o,toAttributes:()=>s});var r=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i};function o(e){return{name:e.name,version:e.version}}function s(e){return Object.keys(e).map(function(t){return i(t,e[t])})}function i(e,t){return{key:e,value:a(t)}}function a(e){var 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(function(e){var t=r(e,2);return i(t[0],t[1])})}}:{}}},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/resource/internal.js":(e,t,n)=>{"use strict";n.d(t,{createResource:()=>o});var r=n("../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/internal.js");function o(e){return{attributes:(0,r.toAttributes)(e.attributes),droppedAttributesCount:0}}},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/trace/index.js":(e,t,n)=>{"use strict";n.d(t,{createExportTraceServiceRequest:()=>u});var r=n("../../node_modules/@opentelemetry/otlp-transformer/build/esm/trace/internal.js"),o=n("../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/index.js"),s=n("../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/internal.js"),i=n("../../node_modules/@opentelemetry/otlp-transformer/build/esm/resource/internal.js"),a=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},l=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i};function u(e,t){return{resourceSpans:c(e,(0,o.getOtlpEncoder)(t))}}function c(e,t){for(var n=function(e){var t,n,r=new Map;try{for(var o=a(e),s=o.next();!s.done;s=o.next()){var i=s.value,l=r.get(i.resource);l||(l=new Map,r.set(i.resource,l));var u=i.instrumentationLibrary.name+"@"+(i.instrumentationLibrary.version||"")+":"+(i.instrumentationLibrary.schemaUrl||""),c=l.get(u);c||(c=[],l.set(u,c)),c.push(i)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}(e),o=[],u=n.entries(),c=u.next();!c.done;){for(var d=l(c.value,2),p=d[0],m=[],h=d[1].values(),f=h.next();!f.done;){var A=f.value;if(A.length>0){var g=A.map(function(e){return(0,r.sdkSpanToOtlpSpan)(e,t)});m.push({scope:(0,s.createInstrumentationScope)(A[0].instrumentationLibrary),spans:g,schemaUrl:A[0].instrumentationLibrary.schemaUrl})}f=h.next()}var _={resource:(0,i.createResource)(p),scopeSpans:m,schemaUrl:void 0};o.push(_),c=u.next()}return o}},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/trace/internal.js":(e,t,n)=>{"use strict";n.d(t,{sdkSpanToOtlpSpan:()=>o});var r=n("../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/internal.js");function o(e,t){var n,o=e.spanContext(),s=e.status;return{traceId:t.encodeSpanContext(o.traceId),spanId:t.encodeSpanContext(o.spanId),parentSpanId:t.encodeOptionalSpanContext(e.parentSpanId),traceState:null===(n=o.traceState)||void 0===n?void 0:n.serialize(),name:e.name,kind:null==e.kind?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:(0,r.toAttributes)(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(function(e){return function(e,t){return{attributes:e.attributes?(0,r.toAttributes)(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}(e,t)}),droppedEventsCount:e.droppedEventsCount,status:{code:s.code,message:s.message},links:e.links.map(function(e){return function(e,t){var n;return{attributes:e.attributes?(0,r.toAttributes)(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:null===(n=e.context.traceState)||void 0===n?void 0:n.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}(e,t)}),droppedLinksCount:e.droppedLinksCount}}},"../../node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/core/build/esm/common/hex-to-binary.js":(e,t,n)=>{"use strict";function r(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function o(e){for(var t=new Uint8Array(e.length/2),n=0,o=0;o<e.length;o+=2){var s=r(e.charCodeAt(o)),i=r(e.charCodeAt(o+1));t[n++]=s<<4|i}return t}n.d(t,{hexToBinary:()=>o})},"../../node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/core/build/esm/common/time.js":(e,t,n)=>{"use strict";n.d(t,{hrTimeToNanoseconds:()=>o});n("../../node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js"),Math.pow(10,6);var r=Math.pow(10,9);function o(e){return e[0]*r+e[1]}},"../../node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js":(e,t,n)=>{"use strict";n.d(t,{otperformance:()=>r});var r=performance},"../../node_modules/@opentelemetry/resources/build/esm/Resource.js":(e,t,n)=>{"use strict";n.d(t,{Resource:()=>d});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),o=n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js"),s=n("../../node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/esm/platform/browser/sdk-info.js"),i=n("../../node_modules/@opentelemetry/resources/build/esm/platform/browser/default-service-name.js"),a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)},l=function(e,t,n,r){return new(n||(n=Promise))(function(o,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function a(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,a)}l((r=r.apply(e,t||[])).next())})},u=function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}},c=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},d=function(){function e(e,t){var n,o=this;this._attributes=e,this.asyncAttributesPending=null!=t,this._syncAttributes=null!==(n=this._attributes)&&void 0!==n?n:{},this._asyncAttributesPromise=null==t?void 0:t.then(function(e){return o._attributes=Object.assign({},o._attributes,e),o.asyncAttributesPending=!1,e},function(e){return r.diag.debug("a resource's async attributes promise rejected: %s",e),o.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e(((t={})[o.SEMRESATTRS_SERVICE_NAME]=(0,i.defaultServiceName)(),t[o.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]=s.SDK_INFO[o.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE],t[o.SEMRESATTRS_TELEMETRY_SDK_NAME]=s.SDK_INFO[o.SEMRESATTRS_TELEMETRY_SDK_NAME],t[o.SEMRESATTRS_TELEMETRY_SDK_VERSION]=s.SDK_INFO[o.SEMRESATTRS_TELEMETRY_SDK_VERSION],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&r.diag.error("Accessing resource attributes before async attributes settled"),null!==(e=this._attributes)&&void 0!==e?e:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){return l(this,void 0,void 0,function(){return u(this,function(e){switch(e.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},e.prototype.merge=function(t){var n,r=this;if(!t)return this;var o=a(a({},this._syncAttributes),null!==(n=t._syncAttributes)&&void 0!==n?n:t.attributes);if(!this._asyncAttributesPromise&&!t._asyncAttributesPromise)return new e(o);var s=Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(e){var n,o=c(e,2),s=o[0],i=o[1];return a(a(a(a({},r._syncAttributes),s),null!==(n=t._syncAttributes)&&void 0!==n?n:t.attributes),i)});return new e(o,s)},e.EMPTY=new e({}),e}()},"../../node_modules/@opentelemetry/resources/build/esm/platform/browser/default-service-name.js":(e,t,n)=>{"use strict";function r(){return"unknown_service"}n.d(t,{defaultServiceName:()=>r})},"../../node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/esm/platform/browser/sdk-info.js":(e,t,n)=>{"use strict";n.d(t,{SDK_INFO:()=>i});var r,o=n("../../node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/esm/version.js"),s=n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js"),i=((r={})[s.SEMRESATTRS_TELEMETRY_SDK_NAME]="opentelemetry",r[s.SEMRESATTRS_PROCESS_RUNTIME_NAME]="browser",r[s.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]=s.TELEMETRYSDKLANGUAGEVALUES_WEBJS,r[s.SEMRESATTRS_TELEMETRY_SDK_VERSION]=o.VERSION,r)},"../../node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/esm/version.js":(e,t,n)=>{"use strict";n.d(t,{VERSION:()=>r});var r="1.29.0"},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/BasicTracerProvider.js":(e,t,n)=>{"use strict";n.d(t,{BasicTracerProvider:()=>v});var r,o=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),s=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/api/build/esm/propagation-api.js"),l=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/utils/merge.js"),u=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/platform/browser/environment.js"),c=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/propagation/composite.js"),d=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js"),p=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/baggage/propagation/W3CBaggagePropagator.js"),m=n("../../node_modules/@opentelemetry/resources/build/esm/Resource.js"),h=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Tracer.js"),f=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/config.js"),A=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/MultiSpanProcessor.js"),g=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/export/NoopSpanProcessor.js"),_=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/platform/browser/export/BatchSpanProcessor.js"),y=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/utility.js"),E=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},b=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,s=t.length;o<s;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};!function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"}(r||(r={}));var v=function(){function e(e){var t,n;void 0===e&&(e={}),this._registeredSpanProcessors=[],this._tracers=new Map;var r=(0,l.merge)({},(0,f.loadDefaultConfig)(),(0,y.reconfigureLimits)(e));if(this.resource=null!==(t=r.resource)&&void 0!==t?t:m.Resource.empty(),r.mergeResourceWithDefaults&&(this.resource=m.Resource.default().merge(this.resource)),this._config=Object.assign({},r,{resource:this.resource}),null===(n=e.spanProcessors)||void 0===n?void 0:n.length)this._registeredSpanProcessors=b([],E(e.spanProcessors),!1),this.activeSpanProcessor=new A.MultiSpanProcessor(this._registeredSpanProcessors);else{var o=this._buildExporterFromEnv();if(void 0!==o){var s=new _.BatchSpanProcessor(o);this.activeSpanProcessor=s}else this.activeSpanProcessor=new g.NoopSpanProcessor}}return e.prototype.getTracer=function(e,t,n){var r=e+"@"+(t||"")+":"+((null==n?void 0:n.schemaUrl)||"");return this._tracers.has(r)||this._tracers.set(r,new h.Tracer({name:e,version:t,schemaUrl:null==n?void 0:n.schemaUrl},this._config,this)),this._tracers.get(r)},e.prototype.addSpanProcessor=function(e){0===this._registeredSpanProcessors.length&&this.activeSpanProcessor.shutdown().catch(function(e){return o.diag.error("Error while trying to shutdown current span processor",e)}),this._registeredSpanProcessors.push(e),this.activeSpanProcessor=new A.MultiSpanProcessor(this._registeredSpanProcessors)},e.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},e.prototype.register=function(e){void 0===e&&(e={}),s.trace.setGlobalTracerProvider(this),void 0===e.propagator&&(e.propagator=this._buildPropagatorFromEnv()),e.contextManager&&i.context.setGlobalContextManager(e.contextManager),e.propagator&&a.propagation.setGlobalPropagator(e.propagator)},e.prototype.forceFlush=function(){var e=this._config.forceFlushTimeoutMillis,t=this._registeredSpanProcessors.map(function(t){return new Promise(function(n){var o,s=setTimeout(function(){n(new Error("Span processor did not completed within timeout period of "+e+" ms")),o=r.timeout},e);t.forceFlush().then(function(){clearTimeout(s),o!==r.timeout&&(o=r.resolved,n(o))}).catch(function(e){clearTimeout(s),o=r.error,n(e)})})});return new Promise(function(e,n){Promise.all(t).then(function(t){var o=t.filter(function(e){return e!==r.resolved});o.length>0?n(o):e()}).catch(function(e){return n([e])})})},e.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},e.prototype._getPropagator=function(e){var t;return null===(t=this.constructor._registeredPropagators.get(e))||void 0===t?void 0:t()},e.prototype._getSpanExporter=function(e){var t;return null===(t=this.constructor._registeredExporters.get(e))||void 0===t?void 0:t()},e.prototype._buildPropagatorFromEnv=function(){var e=this,t=Array.from(new Set((0,u.getEnv)().OTEL_PROPAGATORS)),n=t.map(function(t){var n=e._getPropagator(t);return n||o.diag.warn('Propagator "'+t+'" requested through environment variable is unavailable.'),n}).reduce(function(e,t){return t&&e.push(t),e},[]);return 0===n.length?void 0:1===t.length?n[0]:new c.CompositePropagator({propagators:n})},e.prototype._buildExporterFromEnv=function(){var e=(0,u.getEnv)().OTEL_TRACES_EXPORTER;if("none"!==e&&""!==e){var t=this._getSpanExporter(e);return t||o.diag.error('Exporter "'+e+'" requested through environment variable is unavailable.'),t}},e._registeredPropagators=new Map([["tracecontext",function(){return new d.W3CTraceContextPropagator}],["baggage",function(){return new p.W3CBaggagePropagator}]]),e._registeredExporters=new Map,e}()},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/MultiSpanProcessor.js":(e,t,n)=>{"use strict";n.d(t,{MultiSpanProcessor:()=>s});var r=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/common/global-error-handler.js"),o=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=function(){function e(e){this._spanProcessors=e}return e.prototype.forceFlush=function(){var e,t,n=[];try{for(var s=o(this._spanProcessors),i=s.next();!i.done;i=s.next()){var a=i.value;n.push(a.forceFlush())}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}return new Promise(function(e){Promise.all(n).then(function(){e()}).catch(function(t){(0,r.globalErrorHandler)(t||new Error("MultiSpanProcessor: forceFlush failed")),e()})})},e.prototype.onStart=function(e,t){var n,r;try{for(var s=o(this._spanProcessors),i=s.next();!i.done;i=s.next()){i.value.onStart(e,t)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}},e.prototype.onEnd=function(e){var t,n;try{for(var r=o(this._spanProcessors),s=r.next();!s.done;s=r.next()){s.value.onEnd(e)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.shutdown=function(){var e,t,n=[];try{for(var r=o(this._spanProcessors),s=r.next();!s.done;s=r.next()){var i=s.value;n.push(i.shutdown())}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return new Promise(function(e,t){Promise.all(n).then(function(){e()},t)})},e}()},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Sampler.js":(e,t,n)=>{"use strict";var r;n.d(t,{SamplingDecision:()=>r}),function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(r||(r={}))},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Span.js":(e,t,n)=>{"use strict";n.d(t,{Span:()=>h});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace/status.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),s=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js"),i=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/common/time.js"),a=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/common/attributes.js"),l=n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js"),u=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/enums.js"),c=function(){return c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},c.apply(this,arguments)},d=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},p=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},m=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,s=t.length;o<s;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},h=function(){function e(e,t,n,o,a,l,u,c,d,p){void 0===u&&(u=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:r.SpanStatusCode.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=n,this._spanContext=o,this.parentSpanId=l,this.kind=a,this.links=u;var m=Date.now();this._performanceStartTime=s.otperformance.now(),this._performanceOffset=m-(this._performanceStartTime+(0,i.getTimeOrigin)()),this._startTimeProvided=null!=c,this.startTime=this._getTime(null!=c?c:m),this.resource=e.resource,this.instrumentationLibrary=e.instrumentationLibrary,this._spanLimits=e.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,null!=p&&this.setAttributes(p),this._spanProcessor=e.getActiveSpanProcessor(),this._spanProcessor.onStart(this,t)}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return null==t||this._isSpanEnded()?this:0===e.length?(o.diag.warn("Invalid attribute key: "+e),this):(0,a.isAttributeValue)(t)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(t),this):(o.diag.warn("Invalid attribute value set for key: "+e),this)},e.prototype.setAttributes=function(e){var t,n;try{for(var r=d(Object.entries(e)),o=r.next();!o.done;o=r.next()){var s=p(o.value,2),i=s[0],a=s[1];this.setAttribute(i,a)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this},e.prototype.addEvent=function(e,t,n){if(this._isSpanEnded())return this;if(0===this._spanLimits.eventCountLimit)return o.diag.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(0===this._droppedEventsCount&&o.diag.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),(0,i.isTimeInput)(t)&&((0,i.isTimeInput)(n)||(n=t),t=void 0);var r=(0,a.sanitizeAttributes)(t);return this.events.push({name:e,attributes:r,time:this._getTime(n),droppedAttributesCount:0}),this},e.prototype.addLink=function(e){return this.links.push(e),this},e.prototype.addLinks=function(e){var t;return(t=this.links).push.apply(t,m([],p(e),!1)),this},e.prototype.setStatus=function(e){return this._isSpanEnded()||(this.status=c({},e),null!=this.status.message&&"string"!=typeof e.message&&(o.diag.warn("Dropping invalid status.message of type '"+typeof e.message+"', expected 'string'"),delete this.status.message)),this},e.prototype.updateName=function(e){return this._isSpanEnded()||(this.name=e),this},e.prototype.end=function(e){this._isSpanEnded()?o.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&&(o.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&&o.diag.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this))},e.prototype._getTime=function(e){if("number"==typeof e&&e<=s.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());var t=s.otperformance.now()-this._performanceStartTime;return(0,i.addHrTimes)(this.startTime,(0,i.millisToHrTime)(t))},e.prototype.isRecording=function(){return!1===this._ended},e.prototype.recordException=function(e,t){var n={};"string"==typeof e?n[l.SEMATTRS_EXCEPTION_MESSAGE]=e:e&&(e.code?n[l.SEMATTRS_EXCEPTION_TYPE]=e.code.toString():e.name&&(n[l.SEMATTRS_EXCEPTION_TYPE]=e.name),e.message&&(n[l.SEMATTRS_EXCEPTION_MESSAGE]=e.message),e.stack&&(n[l.SEMATTRS_EXCEPTION_STACKTRACE]=e.stack)),n[l.SEMATTRS_EXCEPTION_TYPE]||n[l.SEMATTRS_EXCEPTION_MESSAGE]?this.addEvent(u.ExceptionEventName,n,t):o.diag.warn("Failed to record an exception "+e)},Object.defineProperty(e.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),e.prototype._isSpanEnded=function(){return this._ended&&o.diag.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},e.prototype._truncateToLimitUtil=function(e,t){return e.length<=t?e:e.substring(0,t)},e.prototype._truncateToSize=function(e){var t=this,n=this._attributeValueLengthLimit;return n<=0?(o.diag.warn("Attribute value limit must be positive, got "+n),e):"string"==typeof e?this._truncateToLimitUtil(e,n):Array.isArray(e)?e.map(function(e){return"string"==typeof e?t._truncateToLimitUtil(e,n):e}):e},e}()},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Tracer.js":(e,t,n)=>{"use strict";n.d(t,{Tracer:()=>f});var r=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),s=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"),u=n("../../node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js"),c=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js"),d=n("../../node_modules/@opentelemetry/sdk-trace-base/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"),f=function(){function e(e,t,n){this._tracerProvider=n;var 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.resource,this.instrumentationLibrary=e}return e.prototype.startSpan=function(e,t,n){var m,h,f;void 0===t&&(t={}),void 0===n&&(n=r.context.active()),t.root&&(n=o.trace.deleteSpan(n));var A=o.trace.getSpan(n);if((0,c.isTracingSuppressed)(n))return s.diag.debug("Instrumentation suppressed, returning Noop Span"),o.trace.wrapSpanContext(i.INVALID_SPAN_CONTEXT);var g,_,y,E=null==A?void 0:A.spanContext(),b=this._idGenerator.generateSpanId();E&&o.trace.isSpanContextValid(E)?(g=E.traceId,_=E.traceState,y=E.spanId):g=this._idGenerator.generateTraceId();var v=null!==(m=t.kind)&&void 0!==m?m:a.SpanKind.INTERNAL,T=(null!==(h=t.links)&&void 0!==h?h:[]).map(function(e){return{context:e.context,attributes:(0,d.sanitizeAttributes)(e.attributes)}}),S=(0,d.sanitizeAttributes)(t.attributes),C=this._sampler.shouldSample(n,g,e,v,S,T);_=null!==(f=C.traceState)&&void 0!==f?f:_;var I={traceId:g,spanId:b,traceFlags:C.decision===l.SamplingDecision.RECORD_AND_SAMPLED?u.TraceFlags.SAMPLED:u.TraceFlags.NONE,traceState:_};if(C.decision===l.SamplingDecision.NOT_RECORD)return s.diag.debug("Recording is off, propagating context in a non-recording span"),o.trace.wrapSpanContext(I);var R=(0,d.sanitizeAttributes)(Object.assign(S,C.attributes));return new p.Span(this,n,e,I,v,y,T,t.startTime,void 0,R)},e.prototype.startActiveSpan=function(e,t,n,s){var i,a,l;if(!(arguments.length<2)){2===arguments.length?l=t:3===arguments.length?(i=t,l=n):(i=t,a=n,l=s);var u=null!=a?a:r.context.active(),c=this.startSpan(e,i,u),d=o.trace.setSpan(u,c);return r.context.with(d,l,void 0,c)}},e.prototype.getGeneralLimits=function(){return this._generalLimits},e.prototype.getSpanLimits=function(){return this._spanLimits},e.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},e}()},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/config.js":(e,t,n)=>{"use strict";n.d(t,{buildSamplerFromEnv:()=>h,loadDefaultConfig:()=>m});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),o=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/platform/browser/environment.js"),s=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/utils/sampling.js"),i=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/AlwaysOffSampler.js"),a=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/AlwaysOnSampler.js"),l=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/ParentBasedSampler.js"),u=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/TraceIdRatioBasedSampler.js"),c=(0,o.getEnv)(),d=s.TracesSamplerValues.AlwaysOn,p=1;function m(){var e=(0,o.getEnv)();return{sampler:h(c),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:e.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:e.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:e.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:e.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:e.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:e.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:e.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:e.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT},mergeResourceWithDefaults:!0}}function h(e){switch(void 0===e&&(e=(0,o.getEnv)()),e.OTEL_TRACES_SAMPLER){case s.TracesSamplerValues.AlwaysOn:return new a.AlwaysOnSampler;case s.TracesSamplerValues.AlwaysOff:return new i.AlwaysOffSampler;case s.TracesSamplerValues.ParentBasedAlwaysOn:return new l.ParentBasedSampler({root:new a.AlwaysOnSampler});case s.TracesSamplerValues.ParentBasedAlwaysOff:return new l.ParentBasedSampler({root:new i.AlwaysOffSampler});case s.TracesSamplerValues.TraceIdRatio:return new u.TraceIdRatioBasedSampler(f(e));case s.TracesSamplerValues.ParentBasedTraceIdRatio:return new l.ParentBasedSampler({root:new u.TraceIdRatioBasedSampler(f(e))});default:return r.diag.error('OTEL_TRACES_SAMPLER value "'+e.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+d+'".'),new a.AlwaysOnSampler}}function f(e){if(void 0===e.OTEL_TRACES_SAMPLER_ARG||""===e.OTEL_TRACES_SAMPLER_ARG)return r.diag.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+p+"."),p;var t=Number(e.OTEL_TRACES_SAMPLER_ARG);return isNaN(t)?(r.diag.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+p+"."),p):t<0||t>1?(r.diag.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+p+"."),p):t}},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/enums.js":(e,t,n)=>{"use strict";n.d(t,{ExceptionEventName:()=>r});var r="exception"},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/export/BatchSpanProcessorBase.js":(e,t,n)=>{"use strict";n.d(t,{BatchSpanProcessorBase:()=>p});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js"),s=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),i=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/platform/browser/environment.js"),a=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/utils/callback.js"),l=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js"),u=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/ExportResult.js"),c=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/common/global-error-handler.js"),d=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/platform/browser/timer-util.js"),p=function(){function e(e,t){this._exporter=e,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var n=(0,i.getEnv)();this._maxExportBatchSize="number"==typeof(null==t?void 0:t.maxExportBatchSize)?t.maxExportBatchSize:n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize="number"==typeof(null==t?void 0:t.maxQueueSize)?t.maxQueueSize:n.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis="number"==typeof(null==t?void 0:t.scheduledDelayMillis)?t.scheduledDelayMillis:n.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis="number"==typeof(null==t?void 0:t.exportTimeoutMillis)?t.exportTimeoutMillis:n.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new a.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(r.diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},e.prototype.onStart=function(e,t){},e.prototype.onEnd=function(e){this._shutdownOnce.isCalled||0!==(e.spanContext().traceFlags&o.TraceFlags.SAMPLED)&&this._addToBuffer(e)},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype._shutdown=function(){var e=this;return Promise.resolve().then(function(){return e.onShutdown()}).then(function(){return e._flushAll()}).then(function(){return e._exporter.shutdown()})},e.prototype._addToBuffer=function(e){if(this._finishedSpans.length>=this._maxQueueSize)return 0===this._droppedSpansCount&&r.diag.debug("maxQueueSize reached, dropping spans"),void this._droppedSpansCount++;this._droppedSpansCount>0&&(r.diag.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()},e.prototype._flushAll=function(){var e=this;return new Promise(function(t,n){for(var r=[],o=0,s=Math.ceil(e._finishedSpans.length/e._maxExportBatchSize);o<s;o++)r.push(e._flushOneBatch());Promise.all(r).then(function(){t()}).catch(n)})},e.prototype._flushOneBatch=function(){var e=this;return this._clearTimer(),0===this._finishedSpans.length?Promise.resolve():new Promise(function(t,n){var r=setTimeout(function(){n(new Error("Timeout"))},e._exportTimeoutMillis);s.context.with((0,l.suppressTracing)(s.context.active()),function(){var o;e._finishedSpans.length<=e._maxExportBatchSize?(o=e._finishedSpans,e._finishedSpans=[]):o=e._finishedSpans.splice(0,e._maxExportBatchSize);for(var s=function(){return e._exporter.export(o,function(e){var o;clearTimeout(r),e.code===u.ExportResultCode.SUCCESS?t():n(null!==(o=e.error)&&void 0!==o?o:new Error("BatchSpanProcessor: span export failed"))})},i=null,a=0,l=o.length;a<l;a++){var d=o[a];d.resource.asyncAttributesPending&&d.resource.waitForAsyncAttributes&&(null!=i||(i=[]),i.push(d.resource.waitForAsyncAttributes()))}null===i?s():Promise.all(i).then(s,function(e){(0,c.globalErrorHandler)(e),n(e)})})})},e.prototype._maybeStartTimer=function(){var e=this;if(!this._isExporting){var t=function(){e._isExporting=!0,e._flushOneBatch().finally(function(){e._isExporting=!1,e._finishedSpans.length>0&&(e._clearTimer(),e._maybeStartTimer())}).catch(function(t){e._isExporting=!1,(0,c.globalErrorHandler)(t)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return t();void 0===this._timer&&(this._timer=setTimeout(function(){return t()},this._scheduledDelayMillis),(0,d.unrefTimer)(this._timer))}},e.prototype._clearTimer=function(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)},e}()},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/export/NoopSpanProcessor.js":(e,t,n)=>{"use strict";n.d(t,{NoopSpanProcessor:()=>r});var r=function(){function e(){}return e.prototype.onStart=function(e,t){},e.prototype.onEnd=function(e){},e.prototype.shutdown=function(){return Promise.resolve()},e.prototype.forceFlush=function(){return Promise.resolve()},e}()},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/platform/browser/RandomIdGenerator.js":(e,t,n)=>{"use strict";n.d(t,{RandomIdGenerator:()=>r});var r=function(){this.generateTraceId=s(16),this.generateSpanId=s(8)},o=Array(32);function s(e){return function(){for(var t=0;t<2*e;t++)o[t]=Math.floor(16*Math.random())+48,o[t]>=58&&(o[t]+=39);return String.fromCharCode.apply(null,o.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:()=>a});var r,o=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/export/BatchSpanProcessorBase.js"),s=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/common/global-error-handler.js"),i=(r=function(e,t){return r=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])},r(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.onInit(n),r}return i(t,e),t.prototype.onInit=function(e){var t=this;!0!==(null==e?void 0:e.disableAutoFlushOnDocumentHide)&&"undefined"!=typeof document&&(this._visibilityChangeListener=function(){"hidden"===document.visibilityState&&t.forceFlush().catch(function(e){(0,s.globalErrorHandler)(e)})},this._pageHideListener=function(){t.forceFlush().catch(function(e){(0,s.globalErrorHandler)(e)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},t.prototype.onShutdown=function(){"undefined"!=typeof document&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},t}(o.BatchSpanProcessorBase)},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/AlwaysOffSampler.js":(e,t,n)=>{"use strict";n.d(t,{AlwaysOffSampler:()=>o});var r=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Sampler.js"),o=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:r.SamplingDecision.NOT_RECORD}},e.prototype.toString=function(){return"AlwaysOffSampler"},e}()},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/AlwaysOnSampler.js":(e,t,n)=>{"use strict";n.d(t,{AlwaysOnSampler:()=>o});var r=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Sampler.js"),o=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:r.SamplingDecision.RECORD_AND_SAMPLED}},e.prototype.toString=function(){return"AlwaysOnSampler"},e}()},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/ParentBasedSampler.js":(e,t,n)=>{"use strict";n.d(t,{ParentBasedSampler:()=>u});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"),s=n("../../node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js"),i=n("../../node_modules/@opentelemetry/sdk-trace-base/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"),u=function(){function e(e){var t,n,r,o;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=null!==(t=e.remoteParentSampled)&&void 0!==t?t:new l.AlwaysOnSampler,this._remoteParentNotSampled=null!==(n=e.remoteParentNotSampled)&&void 0!==n?n:new a.AlwaysOffSampler,this._localParentSampled=null!==(r=e.localParentSampled)&&void 0!==r?r:new l.AlwaysOnSampler,this._localParentNotSampled=null!==(o=e.localParentNotSampled)&&void 0!==o?o:new a.AlwaysOffSampler}return e.prototype.shouldSample=function(e,t,n,i,a,l){var u=r.trace.getSpanContext(e);return u&&(0,o.isSpanContextValid)(u)?u.isRemote?u.traceFlags&s.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,t,n,i,a,l):this._remoteParentNotSampled.shouldSample(e,t,n,i,a,l):u.traceFlags&s.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)},e.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},e}()},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/TraceIdRatioBasedSampler.js":(e,t,n)=>{"use strict";n.d(t,{TraceIdRatioBasedSampler:()=>s});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"),o=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Sampler.js"),s=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){return{decision:(0,r.isValidTraceId)(t)&&this._accumulate(t)<this._upperBound?o.SamplingDecision.RECORD_AND_SAMPLED:o.SamplingDecision.NOT_RECORD}},e.prototype.toString=function(){return"TraceIdRatioBased{"+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 r=8*n;t=(t^parseInt(e.slice(r,r+8),16))>>>0}return t},e}()},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/utility.js":(e,t,n)=>{"use strict";n.d(t,{mergeConfig:()=>i,reconfigureLimits:()=>a});var r=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/config.js"),o=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/platform/browser/environment.js"),s=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/utils/environment.js");function i(e){var t={sampler:(0,r.buildSamplerFromEnv)()},n=(0,r.loadDefaultConfig)(),o=Object.assign({},n,t,e);return o.generalLimits=Object.assign({},n.generalLimits,e.generalLimits||{}),o.spanLimits=Object.assign({},n.spanLimits,e.spanLimits||{}),o}function a(e){var t,n,r,i,a,l,u,c,d,p,m,h,f=Object.assign({},e.spanLimits),A=(0,o.getEnvWithoutDefaults)();return f.attributeCountLimit=null!==(l=null!==(a=null!==(i=null!==(n=null===(t=e.spanLimits)||void 0===t?void 0:t.attributeCountLimit)&&void 0!==n?n:null===(r=e.generalLimits)||void 0===r?void 0:r.attributeCountLimit)&&void 0!==i?i:A.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)&&void 0!==a?a:A.OTEL_ATTRIBUTE_COUNT_LIMIT)&&void 0!==l?l:s.DEFAULT_ATTRIBUTE_COUNT_LIMIT,f.attributeValueLengthLimit=null!==(h=null!==(m=null!==(p=null!==(c=null===(u=e.spanLimits)||void 0===u?void 0:u.attributeValueLengthLimit)&&void 0!==c?c:null===(d=e.generalLimits)||void 0===d?void 0:d.attributeValueLengthLimit)&&void 0!==p?p:A.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)&&void 0!==m?m:A.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)&&void 0!==h?h:s.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,Object.assign({},e,{spanLimits:f})}},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/ExportResult.js":(e,t,n)=>{"use strict";var r;n.d(t,{ExportResultCode:()=>r}),function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"}(r||(r={}))},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/baggage/constants.js":(e,t,n)=>{"use strict";n.d(t,{BAGGAGE_HEADER:()=>i,BAGGAGE_ITEMS_SEPARATOR:()=>s,BAGGAGE_KEY_PAIR_SEPARATOR:()=>r,BAGGAGE_MAX_NAME_VALUE_PAIRS:()=>a,BAGGAGE_MAX_PER_NAME_VALUE_PAIRS:()=>l,BAGGAGE_MAX_TOTAL_LENGTH:()=>u,BAGGAGE_PROPERTIES_SEPARATOR:()=>o});var r="=",o=";",s=",",i="baggage",a=180,l=4096,u=8192},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/baggage/propagation/W3CBaggagePropagator.js":(e,t,n)=>{"use strict";n.d(t,{W3CBaggagePropagator:()=>a});var r=n("../../node_modules/@opentelemetry/api/build/esm/propagation-api.js"),o=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js"),s=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/baggage/constants.js"),i=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/baggage/utils.js"),a=function(){function e(){}return e.prototype.inject=function(e,t,n){var a=r.propagation.getBaggage(e);if(a&&!(0,o.isTracingSuppressed)(e)){var l=(0,i.getKeyPairs)(a).filter(function(e){return e.length<=s.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS}).slice(0,s.BAGGAGE_MAX_NAME_VALUE_PAIRS),u=(0,i.serializeKeyPairs)(l);u.length>0&&n.set(t,s.BAGGAGE_HEADER,u)}},e.prototype.extract=function(e,t,n){var o=n.get(t,s.BAGGAGE_HEADER),a=Array.isArray(o)?o.join(s.BAGGAGE_ITEMS_SEPARATOR):o;if(!a)return e;var l={};return 0===a.length?e:(a.split(s.BAGGAGE_ITEMS_SEPARATOR).forEach(function(e){var t=(0,i.parsePairKeyValue)(e);if(t){var n={value:t.value};t.metadata&&(n.metadata=t.metadata),l[t.key]=n}}),0===Object.entries(l).length?e:r.propagation.setBaggage(e,r.propagation.createBaggage(l)))},e.prototype.fields=function(){return[s.BAGGAGE_HEADER]},e}()},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/baggage/utils.js":(e,t,n)=>{"use strict";n.d(t,{getKeyPairs:()=>a,parsePairKeyValue:()=>l,serializeKeyPairs:()=>i});var r=n("../../node_modules/@opentelemetry/api/build/esm/baggage/utils.js"),o=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/baggage/constants.js"),s=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i};function i(e){return e.reduce(function(e,t){var n=""+e+(""!==e?o.BAGGAGE_ITEMS_SEPARATOR:"")+t;return n.length>o.BAGGAGE_MAX_TOTAL_LENGTH?e:n},"")}function a(e){return e.getAllEntries().map(function(e){var t=s(e,2),n=t[0],r=t[1],i=encodeURIComponent(n)+"="+encodeURIComponent(r.value);return void 0!==r.metadata&&(i+=o.BAGGAGE_PROPERTIES_SEPARATOR+r.metadata.toString()),i})}function l(e){var t=e.split(o.BAGGAGE_PROPERTIES_SEPARATOR);if(!(t.length<=0)){var n=t.shift();if(n){var s=n.indexOf(o.BAGGAGE_KEY_PAIR_SEPARATOR);if(!(s<=0)){var i,a=decodeURIComponent(n.substring(0,s).trim()),l=decodeURIComponent(n.substring(s+1).trim());return t.length>0&&(i=(0,r.baggageEntryMetadataFromString)(t.join(o.BAGGAGE_PROPERTIES_SEPARATOR))),{key:a,value:l,metadata:i}}}}}},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/common/attributes.js":(e,t,n)=>{"use strict";n.d(t,{isAttributeValue:()=>l,sanitizeAttributes:()=>i});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),o=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i};function i(e){var t,n,i={};if("object"!=typeof e||null==e)return i;try{for(var u=o(Object.entries(e)),c=u.next();!c.done;c=u.next()){var d=s(c.value,2),p=d[0],m=d[1];a(p)?l(m)?Array.isArray(m)?i[p]=m.slice():i[p]=m:r.diag.warn("Invalid attribute value set for key: "+p):r.diag.warn("Invalid attribute key: "+p)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return i}function a(e){return"string"==typeof e&&e.length>0}function l(e){return null==e||(Array.isArray(e)?function(e){var t,n,r;try{for(var s=o(e),i=s.next();!i.done;i=s.next()){var a=i.value;if(null!=a){if(!r){if(u(a)){r=typeof a;continue}return!1}if(typeof a!==r)return!1}}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return!0}(e):u(e))}function u(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/common/global-error-handler.js":(e,t,n)=>{"use strict";n.d(t,{globalErrorHandler:()=>o});var r=(0,n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/common/logging-error-handler.js").loggingErrorHandler)();function o(e){try{r(e)}catch(e){}}},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/common/logging-error-handler.js":(e,t,n)=>{"use strict";n.d(t,{loggingErrorHandler:()=>o});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js");function o(){return function(e){r.diag.error(function(e){return"string"==typeof e?e:JSON.stringify(function(e){var t={},n=e;for(;null!==n;)Object.getOwnPropertyNames(n).forEach(function(e){if(!t[e]){var r=n[e];r&&(t[e]=String(r))}}),n=Object.getPrototypeOf(n);return t}(e))}(e))}}},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/common/time.js":(e,t,n)=>{"use strict";n.d(t,{addHrTimes:()=>p,getTimeOrigin:()=>a,hrTime:()=>l,hrTimeDuration:()=>u,isTimeInput:()=>d,isTimeInputHrTime:()=>c,millisToHrTime:()=>i});var r=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js"),o=Math.pow(10,6),s=Math.pow(10,9);function i(e){var t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*o)]}function a(){var e=r.otperformance.timeOrigin;if("number"!=typeof e){var t=r.otperformance;e=t.timing&&t.timing.fetchStart}return e}function l(e){return p(i(a()),i("number"==typeof e?e:r.otperformance.now()))}function u(e,t){var n=t[0]-e[0],r=t[1]-e[1];return r<0&&(n-=1,r+=s),[n,r]}function c(e){return Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}function d(e){return c(e)||"number"==typeof e||e instanceof Date}function p(e,t){var n=[e[0]+t[0],e[1]+t[1]];return n[1]>=s&&(n[1]-=s,n[0]+=1),n}},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/internal/validators.js":(e,t,n)=>{"use strict";n.d(t,{validateKey:()=>a,validateValue:()=>l});var r="[_0-9a-z-*/]",o=new RegExp("^(?:"+("[a-z]"+r+"{0,255}")+"|"+("[a-z0-9]"+r+"{0,240}@[a-z]"+r+"{0,13}")+")$"),s=/^[ -~]{0,255}[!-~]$/,i=/,|=/;function a(e){return o.test(e)}function l(e){return s.test(e)&&!i.test(e)}},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/platform/browser/environment.js":(e,t,n)=>{"use strict";n.d(t,{getEnv:()=>s,getEnvWithoutDefaults:()=>i});var r=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/utils/environment.js"),o=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/platform/browser/globalThis.js");function s(){var e=(0,r.parseEnvironment)(o._globalThis);return Object.assign({},r.DEFAULT_ENVIRONMENT,e)}function i(){return(0,r.parseEnvironment)(o._globalThis)}},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/platform/browser/globalThis.js":(e,t,n)=>{"use strict";n.d(t,{_globalThis:()=>r});var r="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof n.g?n.g:{}},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js":(e,t,n)=>{"use strict";n.d(t,{otperformance:()=>r});var r=performance},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/platform/browser/timer-util.js":(e,t,n)=>{"use strict";function r(e){}n.d(t,{unrefTimer:()=>r})},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/propagation/composite.js":(e,t,n)=>{"use strict";n.d(t,{CompositePropagator:()=>s});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),o=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=function(){function e(e){var t;void 0===e&&(e={}),this._propagators=null!==(t=e.propagators)&&void 0!==t?t:[],this._fields=Array.from(new Set(this._propagators.map(function(e){return"function"==typeof e.fields?e.fields():[]}).reduce(function(e,t){return e.concat(t)},[])))}return e.prototype.inject=function(e,t,n){var s,i;try{for(var a=o(this._propagators),l=a.next();!l.done;l=a.next()){var u=l.value;try{u.inject(e,t,n)}catch(e){r.diag.warn("Failed to inject with "+u.constructor.name+". Err: "+e.message)}}}catch(e){s={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(s)throw s.error}}},e.prototype.extract=function(e,t,n){return this._propagators.reduce(function(e,o){try{return o.extract(e,t,n)}catch(e){r.diag.warn("Failed to extract with "+o.constructor.name+". Err: "+e.message)}return e},e)},e.prototype.fields=function(){return this._fields.slice()},e}()},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/trace/TraceState.js":(e,t,n)=>{"use strict";n.d(t,{TraceState:()=>o});var r=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/internal/validators.js"),o=function(){function e(e){this._internalState=new Map,e&&this._parse(e)}return e.prototype.set=function(e,t){var n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n},e.prototype.unset=function(e){var t=this._clone();return t._internalState.delete(e),t},e.prototype.get=function(e){return this._internalState.get(e)},e.prototype.serialize=function(){var e=this;return this._keys().reduce(function(t,n){return t.push(n+"="+e.get(n)),t},[]).join(",")},e.prototype._parse=function(e){e.length>512||(this._internalState=e.split(",").reverse().reduce(function(e,t){var n=t.trim(),o=n.indexOf("=");if(-1!==o){var s=n.slice(0,o),i=n.slice(o+1,t.length);(0,r.validateKey)(s)&&(0,r.validateValue)(i)&&e.set(s,i)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}()},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js":(e,t,n)=>{"use strict";n.d(t,{W3CTraceContextPropagator:()=>d});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"),s=n("../../node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js"),i=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js"),a=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/trace/TraceState.js"),l="traceparent",u="tracestate",c=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");var d=function(){function e(){}return e.prototype.inject=function(e,t,n){var a=r.trace.getSpanContext(e);if(a&&!(0,i.isTracingSuppressed)(e)&&(0,o.isSpanContextValid)(a)){var c="00-"+a.traceId+"-"+a.spanId+"-0"+Number(a.traceFlags||s.TraceFlags.NONE).toString(16);n.set(t,l,c),a.traceState&&n.set(t,u,a.traceState.serialize())}},e.prototype.extract=function(e,t,n){var o=n.get(t,l);if(!o)return e;var s=Array.isArray(o)?o[0]:o;if("string"!=typeof s)return e;var i=function(e){var t=c.exec(e);return t?"00"===t[1]&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}:null}(s);if(!i)return e;i.isRemote=!0;var d=n.get(t,u);if(d){var p=Array.isArray(d)?d.join(","):d;i.traceState=new a.TraceState("string"==typeof p?p:void 0)}return r.trace.setSpanContext(e,i)},e.prototype.fields=function(){return[l,u]},e}()},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js":(e,t,n)=>{"use strict";n.d(t,{isTracingSuppressed:()=>s,suppressTracing:()=>o});var r=(0,n("../../node_modules/@opentelemetry/api/build/esm/context/context.js").createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function o(e){return e.setValue(r,!0)}function s(e){return!0===e.getValue(r)}},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/utils/callback.js":(e,t,n)=>{"use strict";n.d(t,{BindOnceFuture:()=>i});var r=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/utils/promise.js"),o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},s=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,s=t.length;o<s;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},i=function(){function e(e,t){this._callback=e,this._that=t,this._isCalled=!1,this._deferred=new r.Deferred}return Object.defineProperty(e.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),e.prototype.call=function(){for(var e,t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((e=this._callback).call.apply(e,s([this._that],o(n),!1))).then(function(e){return t._deferred.resolve(e)},function(e){return t._deferred.reject(e)})}catch(e){this._deferred.reject(e)}}return this._deferred.promise},e}()},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/utils/environment.js":(e,t,n)=>{"use strict";n.d(t,{DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>m,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>p,DEFAULT_ENVIRONMENT:()=>h,parseEnvironment:()=>E});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag/types.js"),o=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/utils/sampling.js"),s=",",i=["OTEL_SDK_DISABLED"];function a(e){return i.indexOf(e)>-1}var l=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function u(e){return l.indexOf(e)>-1}var c=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function d(e){return c.indexOf(e)>-1}var p=1/0,m=128,h={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:r.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:p,OTEL_ATTRIBUTE_COUNT_LIMIT:m,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:p,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:m,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:p,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:m,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:o.TracesSamplerValues.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function f(e,t,n){if(void 0!==n[e]){var r=String(n[e]);t[e]="true"===r.toLowerCase()}}function A(e,t,n,r,o){if(void 0===r&&(r=-1/0),void 0===o&&(o=1/0),void 0!==n[e]){var s=Number(n[e]);isNaN(s)||(t[e]=s<r?r:s>o?o:s)}}function g(e,t,n,r){void 0===r&&(r=s);var o=n[e];"string"==typeof o&&(t[e]=o.split(r).map(function(e){return e.trim()}))}var _={ALL:r.DiagLogLevel.ALL,VERBOSE:r.DiagLogLevel.VERBOSE,DEBUG:r.DiagLogLevel.DEBUG,INFO:r.DiagLogLevel.INFO,WARN:r.DiagLogLevel.WARN,ERROR:r.DiagLogLevel.ERROR,NONE:r.DiagLogLevel.NONE};function y(e,t,n){var r=n[e];if("string"==typeof r){var o=_[r.toUpperCase()];null!=o&&(t[e]=o)}}function E(e){var t={};for(var n in h){var r=n;if("OTEL_LOG_LEVEL"===r)y(r,t,e);else if(a(r))f(r,t,e);else if(u(r))A(r,t,e);else if(d(r))g(r,t,e);else{var o=e[r];null!=o&&(t[r]=String(o))}}return t}},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/utils/lodash.merge.js":(e,t,n)=>{"use strict";n.d(t,{isPlainObject:()=>f});var r,o,s="[object Object]",i="[object Null]",a="[object Undefined]",l=Function.prototype.toString,u=l.call(Object),c=(r=Object.getPrototypeOf,o=Object,function(e){return r(o(e))}),d=Object.prototype,p=d.hasOwnProperty,m=Symbol?Symbol.toStringTag:void 0,h=d.toString;function f(e){if(!function(e){return null!=e&&"object"==typeof e}(e)||function(e){if(null==e)return void 0===e?a:i;return m&&m in Object(e)?function(e){var t=p.call(e,m),n=e[m],r=!1;try{e[m]=void 0,r=!0}catch(e){}var o=h.call(e);r&&(t?e[m]=n:delete e[m]);return o}(e):function(e){return h.call(e)}(e)}(e)!==s)return!1;var t=c(e);if(null===t)return!0;var n=p.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)===u}},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/utils/merge.js":(e,t,n)=>{"use strict";n.d(t,{merge:()=>s});var r=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/utils/lodash.merge.js"),o=20;function s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e.shift(),r=new WeakMap;e.length>0;)n=a(n,e.shift(),0,r);return n}function i(e){return u(e)?e.slice():e}function a(e,t,n,s){var m;if(void 0===n&&(n=0),!(n>o)){if(n++,p(e)||p(t)||c(t))m=i(t);else if(u(e)){if(m=e.slice(),u(t))for(var h=0,f=t.length;h<f;h++)m.push(i(t[h]));else if(d(t))for(h=0,f=(A=Object.keys(t)).length;h<f;h++){m[g=A[h]]=i(t[g])}}else if(d(e))if(d(t)){if(!function(e,t){if(!(0,r.isPlainObject)(e)||!(0,r.isPlainObject)(t))return!1;return!0}(e,t))return t;m=Object.assign({},e);var A;for(h=0,f=(A=Object.keys(t)).length;h<f;h++){var g,_=t[g=A[h]];if(p(_))void 0===_?delete m[g]:m[g]=_;else{var y=m[g],E=_;if(l(e,g,s)||l(t,g,s))delete m[g];else{if(d(y)&&d(E)){var b=s.get(y)||[],v=s.get(E)||[];b.push({obj:e,key:g}),v.push({obj:t,key:g}),s.set(y,b),s.set(E,v)}m[g]=a(m[g],_,n,s)}}}}else m=t;return m}}function l(e,t,n){for(var r=n.get(e[t])||[],o=0,s=r.length;o<s;o++){var i=r[o];if(i.key===t&&i.obj===e)return!0}return!1}function u(e){return Array.isArray(e)}function c(e){return"function"==typeof e}function d(e){return!p(e)&&!u(e)&&!c(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/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/utils/promise.js":(e,t,n)=>{"use strict";n.d(t,{Deferred:()=>r});var r=function(){function e(){var e=this;this._promise=new Promise(function(t,n){e._resolve=t,e._reject=n})}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(e){this._resolve(e)},e.prototype.reject=function(e){this._reject(e)},e}()},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/utils/sampling.js":(e,t,n)=>{"use strict";var r;n.d(t,{TracesSamplerValues:()=>r}),function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"}(r||(r={}))},"../../node_modules/@opentelemetry/sdk-trace-web/build/esm/StackContextManager.js":(e,t,n)=>{"use strict";n.d(t,{StackContextManager:()=>i});var r=n("../../node_modules/@opentelemetry/api/build/esm/context/context.js"),o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},s=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,s=t.length;o<s;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},i=function(){function e(){this._enabled=!1,this._currentContext=r.ROOT_CONTEXT}return e.prototype._bindFunction=function(e,t){void 0===e&&(e=r.ROOT_CONTEXT);var n=this,o=function(){for(var r=this,o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return n.with(e,function(){return t.apply(r,o)})};return Object.defineProperty(o,"length",{enumerable:!1,configurable:!0,writable:!1,value:t.length}),o},e.prototype.active=function(){return this._currentContext},e.prototype.bind=function(e,t){return void 0===e&&(e=this.active()),"function"==typeof t?this._bindFunction(e,t):t},e.prototype.disable=function(){return this._currentContext=r.ROOT_CONTEXT,this._enabled=!1,this},e.prototype.enable=function(){return this._enabled||(this._enabled=!0,this._currentContext=r.ROOT_CONTEXT),this},e.prototype.with=function(e,t,n){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];var l=this._currentContext;this._currentContext=e||r.ROOT_CONTEXT;try{return t.call.apply(t,s([n],o(i),!1))}finally{this._currentContext=l}},e}()},"../../node_modules/@opentelemetry/sdk-trace-web/build/esm/WebTracerProvider.js":(e,t,n)=>{"use strict";n.d(t,{WebTracerProvider:()=>a});var r,o=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/BasicTracerProvider.js"),s=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/StackContextManager.js"),i=(r=function(e,t){return r=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])},r(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;if(t.contextManager)throw"contextManager should be defined in register method not in constructor";if(t.propagator)throw"propagator should be defined in register method not in constructor";return n}return i(t,e),t.prototype.register=function(t){void 0===t&&(t={}),void 0===t.contextManager&&(t.contextManager=new s.StackContextManager),t.contextManager&&t.contextManager.enable(),e.prototype.register.call(this,t)},t}(o.BasicTracerProvider)},"../../node_modules/@opentelemetry/sdk-trace-web/build/esm/enums/PerformanceTimingNames.js":(e,t,n)=>{"use strict";var r;n.d(t,{PerformanceTimingNames:()=>r}),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.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"}(r||(r={}))},"../../node_modules/@opentelemetry/sdk-trace-web/build/esm/utils.js":(e,t,n)=>{"use strict";n.d(t,{addSpanNetworkEvent:()=>u,addSpanNetworkEvents:()=>c,getElementXPath:()=>h,getResource:()=>p,hasKey:()=>l,parseUrl:()=>m,shouldPropagateTraceHeaders:()=>f});var r,o=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/enums/PerformanceTimingNames.js"),s=n("../../node_modules/@opentelemetry/sdk-trace-web/node_modules/@opentelemetry/core/build/esm/common/time.js"),i=n("../../node_modules/@opentelemetry/sdk-trace-web/node_modules/@opentelemetry/core/build/esm/utils/url.js"),a=n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js");function l(e,t){return t in e}function u(e,t,n,r){var s=void 0,i=void 0;l(n,t)&&"number"==typeof n[t]&&(s=n[t]);var a=r||o.PerformanceTimingNames.FETCH_START;if(l(n,a)&&"number"==typeof n[a]&&(i=n[a]),void 0!==s&&void 0!==i&&s>=i)return e.addEvent(t,s),e}function c(e,t){u(e,o.PerformanceTimingNames.FETCH_START,t),u(e,o.PerformanceTimingNames.DOMAIN_LOOKUP_START,t),u(e,o.PerformanceTimingNames.DOMAIN_LOOKUP_END,t),u(e,o.PerformanceTimingNames.CONNECT_START,t),l(t,"name")&&t.name.startsWith("https:")&&u(e,o.PerformanceTimingNames.SECURE_CONNECTION_START,t),u(e,o.PerformanceTimingNames.CONNECT_END,t),u(e,o.PerformanceTimingNames.REQUEST_START,t),u(e,o.PerformanceTimingNames.RESPONSE_START,t),u(e,o.PerformanceTimingNames.RESPONSE_END,t);var n=t[o.PerformanceTimingNames.ENCODED_BODY_SIZE];void 0!==n&&e.setAttribute(a.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH,n);var r=t[o.PerformanceTimingNames.DECODED_BODY_SIZE];void 0!==r&&n!==r&&e.setAttribute(a.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED,r)}function d(){return"undefined"!=typeof location?location.origin:void 0}function p(e,t,n,r,i,a){void 0===i&&(i=new WeakSet);var l=m(e),u=function(e,t,n,r,i,a){var l=(0,s.hrTimeToNanoseconds)(t),u=(0,s.hrTimeToNanoseconds)(n),c=r.filter(function(t){var n=(0,s.hrTimeToNanoseconds)((0,s.timeInputToHrTime)(t[o.PerformanceTimingNames.FETCH_START])),r=(0,s.hrTimeToNanoseconds)((0,s.timeInputToHrTime)(t[o.PerformanceTimingNames.RESPONSE_END]));return t.initiatorType.toLowerCase()===(a||"xmlhttprequest")&&t.name===e&&n>=l&&r<=u});c.length>0&&(c=c.filter(function(e){return!i.has(e)}));return c}(e=l.toString(),t,n,r,i,a);if(0===u.length)return{mainRequest:void 0};if(1===u.length)return{mainRequest:u[0]};var c=function(e){return e.slice().sort(function(e,t){var n=e[o.PerformanceTimingNames.FETCH_START],r=t[o.PerformanceTimingNames.FETCH_START];return n>r?1:n<r?-1:0})}(u);if(l.origin!==d()&&c.length>1){var p=c[0],h=function(e,t,n){for(var r,i=(0,s.hrTimeToNanoseconds)(n),a=(0,s.hrTimeToNanoseconds)((0,s.timeInputToHrTime)(t)),l=e[1],u=e.length,c=1;c<u;c++){var d=e[c],p=(0,s.hrTimeToNanoseconds)((0,s.timeInputToHrTime)(d[o.PerformanceTimingNames.FETCH_START])),m=i-(0,s.hrTimeToNanoseconds)((0,s.timeInputToHrTime)(d[o.PerformanceTimingNames.RESPONSE_END]));p>=a&&(!r||m<r)&&(r=m,l=d)}return l}(c,p[o.PerformanceTimingNames.RESPONSE_END],n),f=p[o.PerformanceTimingNames.RESPONSE_END];return h[o.PerformanceTimingNames.FETCH_START]<f&&(h=p,p=void 0),{corsPreFlightRequest:p,mainRequest:h}}return{mainRequest:u[0]}}function m(e){if("function"==typeof URL)return new URL(e,"undefined"!=typeof document?document.baseURI:"undefined"!=typeof location?location.href:void 0);var t=(r||(r=document.createElement("a")),r);return t.href=e,t}function h(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return"/";var n=function(e,t){var n=e.nodeType,r=function(e){if(!e.parentNode)return 0;var t=[e.nodeType];e.nodeType===Node.CDATA_SECTION_NODE&&t.push(Node.TEXT_NODE);var n=Array.from(e.parentNode.childNodes);if(n=n.filter(function(n){var r=n.localName;return t.indexOf(n.nodeType)>=0&&r===e.localName}),n.length>=1)return n.indexOf(e)+1;return 0}(e),o="";if(n===Node.ELEMENT_NODE){var s=e.getAttribute("id");if(t&&s)return'//*[@id="'+s+'"]';o=e.localName}else if(n===Node.TEXT_NODE||n===Node.CDATA_SECTION_NODE)o="text()";else{if(n!==Node.COMMENT_NODE)return"";o="comment()"}if(o&&r>1)return"/"+o+"["+r+"]";return"/"+o}(e,t);if(t&&n.indexOf("@id")>0)return n;var r="";return e.parentNode&&(r+=h(e.parentNode,!1)),r+=n}function f(e,t){var n=t||[];return("string"==typeof n||n instanceof RegExp)&&(n=[n]),m(e).origin===d()||n.some(function(t){return(0,i.urlMatches)(e,t)})}},"../../node_modules/@opentelemetry/sdk-trace-web/node_modules/@opentelemetry/core/build/esm/common/time.js":(e,t,n)=>{"use strict";n.d(t,{hrTimeToNanoseconds:()=>c,timeInputToHrTime:()=>u});var r=n("../../node_modules/@opentelemetry/sdk-trace-web/node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js"),o=Math.pow(10,6),s=Math.pow(10,9);function i(e){var t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*o)]}function a(){var e=r.otperformance.timeOrigin;if("number"!=typeof e){var t=r.otperformance;e=t.timing&&t.timing.fetchStart}return e}function l(e){return function(e,t){var n=[e[0]+t[0],e[1]+t[1]];n[1]>=s&&(n[1]-=s,n[0]+=1);return n}(i(a()),i("number"==typeof e?e:r.otperformance.now()))}function u(e){if(d(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 c(e){return e[0]*s+e[1]}function d(e){return Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}},"../../node_modules/@opentelemetry/sdk-trace-web/node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js":(e,t,n)=>{"use strict";n.d(t,{otperformance:()=>r});var r=performance},"../../node_modules/@opentelemetry/sdk-trace-web/node_modules/@opentelemetry/core/build/esm/utils/url.js":(e,t,n)=>{"use strict";n.d(t,{urlMatches:()=>r});function r(e,t){return"string"==typeof t?e===t:!!e.match(t)}},"../../node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js":(e,t,n)=>{"use strict";function r(e){for(var t={},n=e.length,r=0;r<n;r++){var o=e[r];o&&(t[String(o).toUpperCase().replace(/[-.]/g,"_")]=o)}return t}n.d(t,{createConstMap:()=>r})},"../../node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js":(e,t,n)=>{"use strict";n.d(t,{SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>c,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>d,SEMRESATTRS_SERVICE_NAME:()=>p,SEMRESATTRS_SERVICE_VERSION:()=>m,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>f,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>h,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>A,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>_});n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js");var r="deployment.environment",o="process.runtime.name",s="service.name",i="service.version",a="telemetry.sdk.name",l="telemetry.sdk.language",u="telemetry.sdk.version",c=r,d=o,p=s,m=i,h=a,f=l,A=u,g="webjs",_=g},"../../node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js":(e,t,n)=>{"use strict";n.d(t,{SEMATTRS_EXCEPTION_MESSAGE:()=>A,SEMATTRS_EXCEPTION_STACKTRACE:()=>g,SEMATTRS_EXCEPTION_TYPE:()=>f,SEMATTRS_HTTP_HOST:()=>E,SEMATTRS_HTTP_METHOD:()=>_,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>S,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>C,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>I,SEMATTRS_HTTP_SCHEME:()=>b,SEMATTRS_HTTP_STATUS_CODE:()=>v,SEMATTRS_HTTP_URL:()=>y,SEMATTRS_HTTP_USER_AGENT:()=>T});n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js");var r="exception.type",o="exception.message",s="exception.stacktrace",i="http.method",a="http.url",l="http.host",u="http.scheme",c="http.status_code",d="http.user_agent",p="http.request_content_length_uncompressed",m="http.response_content_length",h="http.response_content_length_uncompressed",f=r,A=o,g=s,_=i,y=a,E=l,b=u,v=c,T=d,S=p,C=m,I=h},"../../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 r=n("../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js"),o=n.n(r),s=n("../../node_modules/css-loader/dist/runtime/api.js"),i=n.n(s),a=n("../../node_modules/css-loader/dist/runtime/getUrl.js"),l=n.n(a),u=new URL(n("data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzMwMHB4JyB3aWR0aD0nMzAwcHgnICBmaWxsPSIjMDAwMDAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGRhdGEtbmFtZT0iTGF5ZXIgMSIgdmlld0JveD0iMCAwIDUwIDUwIiB4PSIwcHgiIHk9IjBweCI+PHRpdGxlPkRlc2lnbl90bnA8L3RpdGxlPjxwYXRoIGQ9Ik00OC43MSw0Mi45MUwzNC4wOCwyOC4yOSw0NC4zMywxOEExLDEsMCwwLDAsNDQsMTYuMzlMMi4zNSwxLjA2QTEsMSwwLDAsMCwxLjA2LDIuMzVMMTYuMzksNDRhMSwxLDAsMCwwLDEuNjUuMzZMMjguMjksMzQuMDgsNDIuOTEsNDguNzFhMSwxLDAsMCwwLDEuNDEsMGw0LjM4LTQuMzhBMSwxLDAsMCwwLDQ4LjcxLDQyLjkxWm0tNS4wOSwzLjY3TDI5LDMyYTEsMSwwLDAsMC0xLjQxLDBsLTkuODUsOS44NUwzLjY5LDMuNjlsMzguMTIsMTRMMzIsMjcuNThBMSwxLDAsMCwwLDMyLDI5TDQ2LjU5LDQzLjYyWiI+PC9wYXRoPjwvc3ZnPg=="),n.b),c=i()(o()),d=l()(u);c.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=c},"../../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 r=n("../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js"),o=n.n(r),s=n("../../node_modules/css-loader/dist/runtime/api.js"),i=n.n(s)()(o());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,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var s=0;s<this.length;s++){var i=this[s][0];null!=i&&(o[i]=!0)}for(var a=0;a<e.length;a++){var l=[].concat(e[a]);r&&o[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 r,o,s=[],i=!0,a=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(s.push(r.value),!t||s.length!==t);i=!0);}catch(e){a=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(a)throw o}}return s}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))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,r=new Array(t);n<t;n++)r[n]=e[n];return r}e.exports=function(e){var n=t(e,4),r=n[1],o=n[3];if(!o)return r;if("function"==typeof btoa){var s=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),a="/*# ".concat(i," */"),l=o.sources.map(function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")});return[r].concat(l).concat([a]).join("\n")}return[r].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,r=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 o=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise(function(n,r){function o(n){e.removeListener(t,s),r(n)}function s(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}f(e,t,s,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&f(e,"error",t,n)}(e,o,{once:!0})})},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.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?s.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var o,s,i,u;if(a(n),void 0===(s=e._events)?(s=e._events=Object.create(null),e._eventsCount=0):(void 0!==s.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),i=s[t]),void 0===i)i=s[t]=n,++e._eventsCount;else if("function"==typeof i?i=s[t]=r?[n,i]:[i,n]:r?i.unshift(n):i.push(n),(o=l(e))>0&&i.length>o&&!i.warned){i.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=i.length,u=c,console&&console.warn&&console.warn(u)}return e}function c(){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 r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=c.bind(r);return o.listener=n,r.wrapFn=o,o}function p(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]: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}(o):h(o,o.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),r=0;r<t;++r)n[r]=e[r];return n}function f(e,t,n,r){if("function"==typeof e.on)r.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 o(s){r.once&&e.removeEventListener(t,o),n(s)})}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");i=e}}),s.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},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(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},s.prototype.getMaxListeners=function(){return l(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,s=this._events;if(void 0!==s)o=o&&void 0===s.error;else if(!o)return!1;if(o){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=s[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var u=l.length,c=h(l,u);for(n=0;n<u;++n)r(c[n],this,t)}return!0},s.prototype.addListener=function(e,t){return u(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return u(this,e,t,!0)},s.prototype.once=function(e,t){return a(t),this.on(e,d(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,d(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,o,s,i;if(a(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,s=n.length-1;s>=0;s--)if(n[s]===t||n[s].listener===t){i=n[s].listener,o=s;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,i||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;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 o,s=Object.keys(n);for(r=0;r<s.length;++r)"removeListener"!==(o=s[r])&&this.removeAllListeners(o);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(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},"../../node_modules/lodash.isequal/index.js":(e,t,n)=>{e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,s="[object Arguments]",i="[object Array]",a="[object Boolean]",l="[object Date]",u="[object Error]",c="[object Function]",d="[object Map]",p="[object Number]",m="[object Object]",h="[object Promise]",f="[object RegExp]",A="[object Set]",g="[object String]",_="[object Symbol]",y="[object WeakMap]",E="[object ArrayBuffer]",b="[object DataView]",v=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,S={};S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S[s]=S[i]=S[E]=S[a]=S[b]=S[l]=S[u]=S[c]=S[d]=S[p]=S[m]=S[f]=S[A]=S[g]=S[y]=!1;var C="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,I="object"==typeof self&&self&&self.Object===Object&&self,R=C||I||Function("return this")(),w=t&&!t.nodeType&&t,O=w&&e&&!e.nodeType&&e,L=O&&O.exports===w,N=L&&C.process,P=function(){try{return N&&N.binding&&N.binding("util")}catch(e){}}(),x=P&&P.isTypedArray;function M(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)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,r){n[++t]=[r,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=R["__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,K=RegExp("^"+z.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Z=L?R.Buffer:void 0,q=R.Symbol,J=R.Uint8Array,Q=H.propertyIsEnumerable,$=G.splice,ee=q?q.toStringTag:void 0,te=Object.getOwnPropertySymbols,ne=Z?Z.isBuffer:void 0,re=(j=Object.keys,U=Object,function(e){return j(U(e))}),oe=Pe(R,"DataView"),se=Pe(R,"Map"),ie=Pe(R,"Promise"),ae=Pe(R,"Set"),le=Pe(R,"WeakMap"),ue=Pe(Object,"create"),ce=De(oe),de=De(se),pe=De(ie),me=De(ae),he=De(le),fe=q?q.prototype:void 0,Ae=fe?fe.valueOf:void 0;function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _e(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ye(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ee(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ye;++t<n;)this.add(e[t])}function be(e){var t=this.__data__=new _e(e);this.size=t.size}function ve(e,t){var n=Ue(e),r=!n&&je(e),o=!n&&!r&&Ge(e),s=!n&&!r&&!o&&We(e),i=n||r||o||s,a=i?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=a.length;for(var u in e)!t&&!W.call(e,u)||i&&("length"==u||o&&("offset"==u||"parent"==u)||s&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ke(u,l))||a.push(u);return a}function Te(e,t){for(var n=e.length;n--;)if(Be(e[n][0],t))return n;return-1}function Se(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 r=!0}catch(e){}var o=X.call(e);r&&(t?e[ee]=n:delete e[ee]);return o}(e):function(e){return X.call(e)}(e)}function Ce(e){return ze(e)&&Se(e)==s}function Ie(e,t,n,r,o){return e===t||(null==e||null==t||!ze(e)&&!ze(t)?e!=e&&t!=t:function(e,t,n,r,o,c){var h=Ue(e),y=Ue(t),v=h?i:Me(e),T=y?i:Me(t),S=(v=v==s?m:v)==m,C=(T=T==s?m:T)==m,I=v==T;if(I&&Ge(e)){if(!Ge(t))return!1;h=!0,S=!1}if(I&&!S)return c||(c=new be),h||We(e)?Oe(e,t,n,r,o,c):function(e,t,n,r,o,s,i){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!s(new J(e),new J(t)));case a:case l:case p:return Be(+e,+t);case u:return e.name==t.name&&e.message==t.message;case f:case g:return e==t+"";case d:var c=k;case A:var m=1&r;if(c||(c=D),e.size!=t.size&&!m)return!1;var h=i.get(e);if(h)return h==t;r|=2,i.set(e,t);var y=Oe(c(e),c(t),r,o,s,i);return i.delete(e),y;case _:if(Ae)return Ae.call(e)==Ae.call(t)}return!1}(e,t,v,n,r,o,c);if(!(1&n)){var R=S&&W.call(e,"__wrapped__"),w=C&&W.call(t,"__wrapped__");if(R||w){var O=R?e.value():e,L=w?t.value():t;return c||(c=new be),o(O,L,n,r,c)}}if(!I)return!1;return c||(c=new be),function(e,t,n,r,o,s){var i=1&n,a=Le(e),l=a.length,u=Le(t),c=u.length;if(l!=c&&!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=s.get(e);if(m&&s.get(t))return m==t;var h=!0;s.set(e,t),s.set(t,e);var f=i;for(;++d<l;){var A=e[p=a[d]],g=t[p];if(r)var _=i?r(g,A,p,t,e,s):r(A,g,p,e,t,s);if(!(void 0===_?A===g||o(A,g,n,r,s):_)){h=!1;break}f||(f="constructor"==p)}if(h&&!f){var y=e.constructor,E=t.constructor;y==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof E&&E instanceof E||(h=!1)}return s.delete(e),s.delete(t),h}(e,t,n,r,o,c)}(e,t,n,r,Ie,o))}function Re(e){return!(!Ye(e)||function(e){return!!V&&V in e}(e))&&(Fe(e)?K:v).test(De(e))}function we(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||H,t!==r)return re(e);var t,n,r,o=[];for(var s in Object(e))W.call(e,s)&&"constructor"!=s&&o.push(s);return o}function Oe(e,t,n,r,o,s){var i=1&n,a=e.length,l=t.length;if(a!=l&&!(i&&l>a))return!1;var u=s.get(e);if(u&&s.get(t))return u==t;var c=-1,d=!0,p=2&n?new Ee:void 0;for(s.set(e,t),s.set(t,e);++c<a;){var m=e[c],h=t[c];if(r)var f=i?r(h,m,c,t,e,s):r(m,h,c,e,t,s);if(void 0!==f){if(f)continue;d=!1;break}if(p){if(!M(t,function(e,t){if(i=t,!p.has(i)&&(m===e||o(m,e,n,r,s)))return p.push(t);var i})){d=!1;break}}else if(m!==h&&!o(m,h,n,r,s)){d=!1;break}}return s.delete(e),s.delete(t),d}function Le(e){return function(e,t,n){var r=t(e);return Ue(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Ve,xe)}function Ne(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Pe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Re(n)?n:void 0}ge.prototype.clear=function(){this.__data__=ue?ue(null):{},this.size=0},ge.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ge.prototype.get=function(e){var t=this.__data__;if(ue){var n=t[e];return n===r?void 0:n}return W.call(t,e)?t[e]:void 0},ge.prototype.has=function(e){var t=this.__data__;return ue?void 0!==t[e]:W.call(t,e)},ge.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ue&&void 0===t?r:t,this},_e.prototype.clear=function(){this.__data__=[],this.size=0},_e.prototype.delete=function(e){var t=this.__data__,n=Te(t,e);return!(n<0)&&(n==t.length-1?t.pop():$.call(t,n,1),--this.size,!0)},_e.prototype.get=function(e){var t=this.__data__,n=Te(t,e);return n<0?void 0:t[n][1]},_e.prototype.has=function(e){return Te(this.__data__,e)>-1},_e.prototype.set=function(e,t){var n=this.__data__,r=Te(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ye.prototype.clear=function(){this.size=0,this.__data__={hash:new ge,map:new(se||_e),string:new ge}},ye.prototype.delete=function(e){var t=Ne(this,e).delete(e);return this.size-=t?1:0,t},ye.prototype.get=function(e){return Ne(this,e).get(e)},ye.prototype.has=function(e){return Ne(this,e).has(e)},ye.prototype.set=function(e,t){var n=Ne(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Ee.prototype.add=Ee.prototype.push=function(e){return this.__data__.set(e,r),this},Ee.prototype.has=function(e){return this.__data__.has(e)},be.prototype.clear=function(){this.__data__=new _e,this.size=0},be.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},be.prototype.get=function(e){return this.__data__.get(e)},be.prototype.has=function(e){return this.__data__.has(e)},be.prototype.set=function(e,t){var n=this.__data__;if(n instanceof _e){var r=n.__data__;if(!se||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ye(r)}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,r=null==e?0:e.length,o=0,s=[];++n<r;){var i=e[n];t(i,n,e)&&(s[o++]=i)}return s}(te(e),function(t){return Q.call(e,t)}))}:function(){return[]},Me=Se;function ke(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||T.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}(oe&&Me(new oe(new ArrayBuffer(1)))!=b||se&&Me(new se)!=d||ie&&Me(ie.resolve())!=h||ae&&Me(new ae)!=A||le&&Me(new le)!=y)&&(Me=function(e){var t=Se(e),n=t==m?e.constructor:void 0,r=n?De(n):"";if(r)switch(r){case ce:return b;case de:return d;case pe:return h;case me:return A;case he:return y}return t});var je=Ce(function(){return arguments}())?Ce:function(e){return ze(e)&&W.call(e,"callee")&&!Q.call(e,"callee")},Ue=Array.isArray;var Ge=ne||function(){return!1};function Fe(e){if(!Ye(e))return!1;var t=Se(e);return t==c||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function He(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}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)&&!!S[Se(e)]};function Ve(e){return null!=(t=e)&&He(t.length)&&!Fe(t)?ve(e):we(e);var t}e.exports=function(e,t){return Ie(e,t)}},"../../node_modules/lodash.keys/index.js":e=>{var t=9007199254740991,n="[object Arguments]",r="[object Function]",o="[object GeneratorFunction]",s=/^(?:0|[1-9]\d*)$/;var i,a,l=Object.prototype,u=l.hasOwnProperty,c=l.toString,d=l.propertyIsEnumerable,p=(i=Object.keys,a=Object,function(e){return i(a(e))});function m(e,t){var r=A(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&g(e)}(e)&&u.call(e,"callee")&&(!d.call(e,"callee")||c.call(e)==n)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],o=r.length,s=!!o;for(var i in e)!t&&!u.call(e,i)||s&&("length"==i||f(i,o))||r.push(i);return r}function h(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||l,t!==r)return p(e);var t,n,r,o=[];for(var s in Object(e))u.call(e,s)&&"constructor"!=s&&o.push(s);return o}function f(e,n){return!!(n=null==n?t:n)&&("number"==typeof e||s.test(e))&&e>-1&&e%1==0&&e<n}var A=Array.isArray;function g(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)?c.call(e):"";return t==r||t==o}(e)}e.exports=function(e){return g(e)?m(e):h(e)}},"../../node_modules/lodash.merge/index.js":(e,t,n)=>{e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,s="[object Arguments]",i="[object Function]",a="[object Object]",l=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[s]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c[i]=c["[object Map]"]=c["[object Number]"]=c[a]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[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,f=h&&e&&!e.nodeType&&e,A=f&&f.exports===h,g=A&&d.process,_=function(){try{var e=f&&f.require&&f.require("util").types;return e||g&&g.binding&&g.binding("util")}catch(e){}}(),y=_&&_.isTypedArray;var E,b,v,T=Array.prototype,S=Function.prototype,C=Object.prototype,I=m["__core-js_shared__"],R=S.toString,w=C.hasOwnProperty,O=(E=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+E:"",L=C.toString,N=R.call(Object),P=RegExp("^"+R.call(w).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),x=A?m.Buffer:void 0,M=m.Symbol,k=m.Uint8Array,D=x?x.allocUnsafe:void 0,B=(b=Object.getPrototypeOf,v=Object,function(e){return b(v(e))}),j=Object.create,U=C.propertyIsEnumerable,G=T.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"),K=function(){function e(){}return function(t){if(!Ie(t))return{};if(j)return j(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Z(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function J(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Q(e){var t=this.__data__=new q(e);this.size=t.size}function $(e,t){var n=be(e),r=!n&&Ee(e),o=!n&&!r&&Te(e),s=!n&&!r&&!o&&we(e),i=n||r||o||s,a=i?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=a.length;for(var u in e)!t&&!w.call(e,u)||i&&("length"==u||o&&("offset"==u||"parent"==u)||s&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||fe(u,l))||a.push(u);return a}function ee(e,t,n){(void 0!==n&&!ye(e[t],n)||void 0===n&&!(t in e))&&re(e,t,n)}function te(e,t,n){var r=e[t];w.call(e,t)&&ye(r,n)&&(void 0!==n||t in e)||re(e,t,n)}function ne(e,t){for(var n=e.length;n--;)if(ye(e[n][0],t))return n;return-1}function re(e,t,n){"__proto__"==t&&H?H(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}Z.prototype.clear=function(){this.__data__=X?X(null):{},this.size=0},Z.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Z.prototype.get=function(e){var t=this.__data__;if(X){var n=t[e];return n===r?void 0:n}return w.call(t,e)?t[e]:void 0},Z.prototype.has=function(e){var t=this.__data__;return X?void 0!==t[e]:w.call(t,e)},Z.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=X&&void 0===t?r:t,this},q.prototype.clear=function(){this.__data__=[],this.size=0},q.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)},q.prototype.get=function(e){var t=this.__data__,n=ne(t,e);return n<0?void 0:t[n][1]},q.prototype.has=function(e){return ne(this.__data__,e)>-1},q.prototype.set=function(e,t){var n=this.__data__,r=ne(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},J.prototype.clear=function(){this.size=0,this.__data__={hash:new Z,map:new(V||q),string:new Z}},J.prototype.delete=function(e){var t=me(this,e).delete(e);return this.size-=t?1:0,t},J.prototype.get=function(e){return me(this,e).get(e)},J.prototype.has=function(e){return me(this,e).has(e)},J.prototype.set=function(e,t){var n=me(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Q.prototype.clear=function(){this.__data__=new q,this.size=0},Q.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Q.prototype.get=function(e){return this.__data__.get(e)},Q.prototype.has=function(e){return this.__data__.has(e)},Q.prototype.set=function(e,t){var n=this.__data__;if(n instanceof q){var r=n.__data__;if(!V||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new J(r)}return n.set(e,t),this.size=n.size,this};var oe,se=function(e,t,n){for(var r=-1,o=Object(e),s=n(e),i=s.length;i--;){var a=s[oe?i:++r];if(!1===t(o[a],a,o))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 r=!0}catch(e){}var o=L.call(e);r&&(t?e[F]=n:delete e[F]);return o}(e):function(e){return L.call(e)}(e)}function ae(e){return Re(e)&&ie(e)==s}function le(e){return!(!Ie(e)||function(e){return!!O&&O in e}(e))&&(Se(e)?P:l).test(function(e){if(null!=e){try{return R.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function ue(e){if(!Ie(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Ae(e),n=[];for(var r in e)("constructor"!=r||!t&&w.call(e,r))&&n.push(r);return n}function ce(e,t,n,r,o){e!==t&&se(t,function(s,i){if(o||(o=new Q),Ie(s))!function(e,t,n,r,o,s,i){var l=ge(e,n),u=ge(t,n),c=i.get(u);if(c)return void ee(e,n,c);var d=s?s(l,u,n+"",e,t,i):void 0,p=void 0===d;if(p){var m=be(u),h=!m&&Te(u),f=!m&&!h&&we(u);d=u,m||h||f?be(l)?d=l:Re(E=l)&&ve(E)?d=function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(l):h?(p=!1,d=function(e,t){if(t)return e.slice();var n=e.length,r=D?D(n):new e.constructor(n);return e.copy(r),r}(u,!0)):f?(p=!1,A=u,g=!0?(_=A.buffer,y=new _.constructor(_.byteLength),new k(y).set(new k(_)),y):A.buffer,d=new A.constructor(g,A.byteOffset,A.length)):d=[]:function(e){if(!Re(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&&R.call(n)==N}(u)||Ee(u)?(d=l,Ee(l)?d=function(e){return function(e,t,n,r){var o=!n;n||(n={});var s=-1,i=t.length;for(;++s<i;){var a=t[s],l=r?r(n[a],e[a],a,n,e):void 0;void 0===l&&(l=e[a]),o?re(n,a,l):te(n,a,l)}return n}(e,Oe(e))}(l):Ie(l)&&!Se(l)||(d=function(e){return"function"!=typeof e.constructor||Ae(e)?{}:K(B(e))}(u))):p=!1}var A,g,_,y;var E;p&&(i.set(u,d),o(d,u,r,s,i),i.delete(u));ee(e,n,d)}(e,t,i,n,ce,r,o);else{var l=r?r(ge(e,i),s,i+"",e,t,o):void 0;void 0===l&&(l=s),ee(e,i,l)}},Oe)}function de(e,t){return _e(function(e,t,n){return t=z(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,s=z(r.length-t,0),i=Array(s);++o<s;)i[o]=r[t+o];o=-1;for(var a=Array(t+1);++o<t;)a[o]=r[o];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,Pe),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}:Pe;function me(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.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 fe(e,t){var n=typeof e;return!!(t=null==t?o:t)&&("number"==n||"symbol"!=n&&u.test(e))&&e>-1&&e%1==0&&e<t}function Ae(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||C)}function ge(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 r=W(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(pe);function ye(e,t){return e===t||e!=e&&t!=t}var Ee=ae(function(){return arguments}())?ae:function(e){return Re(e)&&w.call(e,"callee")&&!U.call(e,"callee")},be=Array.isArray;function ve(e){return null!=e&&Ce(e.length)&&!Se(e)}var Te=Y||function(){return!1};function Se(e){if(!Ie(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<=o}function Ie(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Re(e){return null!=e&&"object"==typeof e}var we=y?function(e){return function(t){return e(t)}}(y):function(e){return Re(e)&&Ce(e.length)&&!!c[ie(e)]};function Oe(e){return ve(e)?$(e,!0):ue(e)}var Le,Ne=(Le=function(e,t,n){ce(e,t,n)},de(function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,s=r>2?t[2]:void 0;for(o=Le.length>3&&"function"==typeof o?(r--,o):void 0,s&&function(e,t,n){if(!Ie(n))return!1;var r=typeof t;return!!("number"==r?ve(n)&&fe(t,n.length):"string"==r&&t in n)&&ye(n[t],e)}(t[0],t[1],s)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var i=t[n];i&&Le(e,i,n,o)}return e}));function Pe(e){return e}e.exports=Ne},"../../node_modules/lodash.xor/index.js":(e,t,n)=>{var r="__lodash_hash_undefined__",o=9007199254740991,s=/^\[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 u(e,t){return!!(e?e.length:0)&&function(e,t,n){if(t!=t)return function(e,t,n,r){var o=e.length,s=n+(r?1:-1);for(;r?s--:++s<o;)if(t(e[s],s,e))return s;return-1}(e,p,n);var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,0)>-1}function c(e,t,n){for(var r=-1,o=e?e.length:0;++r<o;)if(n(t,e[r]))return!0;return!1}function d(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+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 f,A=Array.prototype,g=Function.prototype,_=Object.prototype,y=l["__core-js_shared__"],E=(f=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||""))?"Symbol(src)_1."+f:"",b=g.toString,v=_.hasOwnProperty,T=_.toString,S=RegExp("^"+b.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=A.splice,I=Math.max,R=G(l,"Map"),w=G(l,"Set"),O=G(Object,"create");function L(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function N(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function x(e){var t=-1,n=e?e.length:0;for(this.__data__=new P;++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,r){var o,s=-1,i=u,a=!0,l=e.length,d=[],p=t.length;if(!l)return d;n&&(t=function(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}(t,(o=n,function(e){return o(e)}))),r?(i=c,a=!1):t.length>=200&&(i=m,a=!1,t=new x(t));e:for(;++s<l;){var h=e[s],f=n?n(h):h;if(h=r||0!==h?h:0,a&&f==f){for(var A=p;A--;)if(t[A]===f)continue e;d.push(h)}else i(t,f,r)||d.push(h)}return d}function D(e){if(!K(e)||(t=e,E&&E 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)?S:s;return n.test(function(e){if(null!=e){try{return b.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function B(e,t,n){for(var r=-1,o=e.length;++r<o;)var s=s?d(k(s,e[r],t,n),k(e[r],s,t,n)):e[r];return s&&s.length?function(e,t,n){var r=-1,o=u,s=e.length,i=!0,a=[],l=a;if(n)i=!1,o=c;else if(s>=200){var d=t?null:j(e);if(d)return h(d);i=!1,o=m,l=new x}else l=t?[]:a;e:for(;++r<s;){var p=e[r],f=t?t(p):p;if(p=n||0!==p?p:0,i&&f==f){for(var A=l.length;A--;)if(l[A]===f)continue e;t&&l.push(f),a.push(p)}else o(l,f,n)||(l!==a&&l.push(f),a.push(p))}return a}(s,t,n):[]}L.prototype.clear=function(){this.__data__=O?O(null):{}},L.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},L.prototype.get=function(e){var t=this.__data__;if(O){var n=t[e];return n===r?void 0:n}return v.call(t,e)?t[e]:void 0},L.prototype.has=function(e){var t=this.__data__;return O?void 0!==t[e]:v.call(t,e)},L.prototype.set=function(e,t){return this.__data__[e]=O&&void 0===t?r:t,this},N.prototype.clear=function(){this.__data__=[]},N.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)},N.prototype.get=function(e){var t=this.__data__,n=M(t,e);return n<0?void 0:t[n][1]},N.prototype.has=function(e){return M(this.__data__,e)>-1},N.prototype.set=function(e,t){var n=this.__data__,r=M(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},P.prototype.clear=function(){this.__data__={hash:new L,map:new(R||N),string:new L}},P.prototype.delete=function(e){return U(this,e).delete(e)},P.prototype.get=function(e){return U(this,e).get(e)},P.prototype.has=function(e){return U(this,e).has(e)},P.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,r),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,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.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,r=e?e.length:0,o=0,s=[];++n<r;){var i=e[n];t(i,n,e)&&(s[o++]=i)}return s}(e,V))},H=I(void 0===H?F.length-1:H,0),function(){for(var e=arguments,t=-1,n=I(e.length-H,0),r=Array(n);++t<n;)r[t]=e[H+t];t=-1;for(var o=Array(H+1);++t<H;)o[t]=e[t];return o[H]=r,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,o)});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<=o}(e.length)&&!X(e)}function V(e){return function(e){return!!e&&"object"==typeof e}(e)&&W(e)}function X(e){var t=K(e)?T.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function K(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=Y},"../../node_modules/shimmer/index.js":e=>{"use strict";function t(e){return"function"==typeof e}var n=console.error.bind(console);function r(e,t,n){var r=!!e[t]&&e.propertyIsEnumerable(t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}function o(e){e&&e.logger&&(t(e.logger)?n=e.logger:n("new logger isn't a function, not replacing"))}function s(e,o,s){if(e&&e[o]){if(!s)return n("no wrapper function"),void n((new Error).stack);if(t(e[o])&&t(s)){var i=e[o],a=s(i,o);return r(a,"__original",i),r(a,"__unwrap",function(){e[o]===a&&r(e,o,i)}),r(a,"__wrapped",!0),r(e,o,a),a}n("original object and wrapper must be functions")}else n("no original function "+o+" to wrap")}function i(e,t){return e&&e[t]?e[t].__unwrap?e[t].__unwrap():void n("no original to unwrap to -- has "+t+" already been unwrapped?"):(n("no function to unwrap."),void n((new Error).stack))}o.wrap=s,o.massWrap=function(e,t,r){if(!e)return n("must provide one or more modules to patch"),void n((new Error).stack);Array.isArray(e)||(e=[e]),t&&Array.isArray(t)?e.forEach(function(e){t.forEach(function(t){s(e,t,r)})}):n("must provide one or more functions to wrap on modules")},o.unwrap=i,o.massUnwrap=function(e,t){if(!e)return n("must provide one or more modules to patch"),void n((new Error).stack);Array.isArray(e)||(e=[e]),t&&Array.isArray(t)?e.forEach(function(e){t.forEach(function(t){i(e,t)})}):n("must provide one or more functions to unwrap on modules")},e.exports=o},"../../node_modules/rrweb-player/dist/style.css":(e,t,n)=>{"use strict";var r=n("../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),o=n.n(r),s=n("../../node_modules/style-loader/dist/runtime/styleDomAPI.js"),i=n.n(s),a=n("../../node_modules/style-loader/dist/runtime/getTarget.js"),l=n.n(a),u=n("../../node_modules/style-loader/dist/runtime/insertStyleElement.js"),c=n.n(u),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=c();o()(d.default,p),d.default&&d.default.locals&&d.default.locals},"./src/index.scss":(e,t,n)=>{"use strict";var r=n("../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),o=n.n(r),s=n("../../node_modules/style-loader/dist/runtime/styleDomAPI.js"),i=n.n(s),a=n("../../node_modules/style-loader/dist/runtime/getTarget.js"),l=n.n(a),u=n("../../node_modules/style-loader/dist/runtime/insertStyleElement.js"),c=n.n(u),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=c();o()(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,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var s={},i=[],a=0;a<e.length;a++){var l=e[a],u=r.base?l[0]+r.base:l[0],c=s[u]||0,d="".concat(u," ").concat(c);s[u]=c+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:o(m,r),references:1}),i.push(d)}return i}function o(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,o){var s=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<s.length;i++){var a=n(s[i]);t[a].references--}for(var l=r(e,o),u=0;u<s.length;u++){var c=n(s[u]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}s=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 r=n.css,o=n.media,s=n.sourceMap;o?e.setAttribute("media",o):e.removeAttribute("media"),s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),t.styleTagTransform(r,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 r=n("../../node_modules/lodash.isequal/index.js"),o=n("../../node_modules/lodash.xor/index.js"),s=n("../../node_modules/lodash.keys/index.js"),i=n("../../node_modules/to-json-schema/lib/jsonSchemaHelpers.js"),a=i.types,l=i.FORMAT_REGEXPS,u=i.isFormat,c={stringFormats:s(l),isFormat:u,typeNames:["integer","number","string","array","object","boolean","null","date"],getType:function(e){return c.typeNames.find(function(t){return a[t](e)})},mergeSchemaObjs:function(e,t){var n=s(e),i=s(t);if(!r(n,i)){if("array"===e.type&&"array"===t.type&&r(o(n,i),["items"])){var a=n.length>i.length?t:e,l=n.length>i.length?e:t;if(s(a).reduce(function(e,t){return r(a[t],l[t])&&e},!0))return a}if("object"!==e.type||"object"!==t.type)return null}for(var u={},d=0,p=n.length;d<p;d++){var m=n[d];if("object"===c.getType(e[m])){var h=c.mergeSchemaObjs(e[m],t[m]);if(h)u[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;u[m]="number"}else u[m]=e[m];else{if(!r(e[m],t[m]))return null;u[m]=e[m]}}return u}};e.exports=c},"../../node_modules/to-json-schema/lib/index.js":(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=n("../../node_modules/lodash.merge/index.js"),s=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"],u=i.stringFormats.filter(function(e){return l.indexOf(e)<0});var c=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=o({},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"},r=Object.keys(e);return r.length>0&&(n.properties=r.reduce(function(n,r){return n[r]=t.getSchema(e[r]),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,r=e.length;n<r;n++){var o=e[n];if(n>0&&("integer"===o&&"number"===t?o="number":"number"===o&&"integer"===t&&(t="number"),t!==o))return null;t=o}return t}(e.map(function(e){return i.getType(e)}))}(e);if(n)if(t.items={type:n},"integer"!==n&&"number"!==n){var r=this.getCommonArrayItemSchema(e);r&&(t.items=r)}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(!s(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=u.findIndex(function(t){return i.isFormat(e,t)});return n>=0&&(t.format=u[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?o({},t,{required:!0}):t}},{key:"objectPostProcessDefault",value:function(e,t){return!1===this.options.objects.additionalProperties&&Object.getOwnPropertyNames(t).length>0?o({},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}}])&&r(t.prototype,n),l&&r(t,l),e}();e.exports=function(e,t){return new c(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)}},r={"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]$/};r.regexp=r.regex,r.pattern=r.regex,r.ipv4=r["ip-address"];e.exports={types:n,isFormat:function(e,t){if("string"==typeof e&&void 0!==r[t]){if(r[t]instanceof RegExp)return r[t].test(e);if("function"==typeof r[t])return r[t](e)}return!0},FORMAT_REGEXPS:r}},"./src/config/constants.ts":(e,t,n)=>{"use strict";n.d(t,{CONTINUOUS_DEBUGGING_TIMEOUT:()=>y,DEBUG_SESSION_MAX_DURATION_SECONDS:()=>E,DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE:()=>A,MULTIPLAYER_BASE_API_URL:()=>g,OTEL_IGNORE_URLS:()=>v,OTEL_MP_DOC_TRACE_RATIO:()=>r,OTEL_MP_SAMPLE_TRACE_RATIO:()=>o,PACKAGE_VERSION_EXPORT:()=>b,SESSION_ADD_EVENT:()=>f,SESSION_AUTO_CREATED:()=>h,SESSION_CONTINUOUS_DEBUGGING_PROP_NAME:()=>i,SESSION_ID_PROP_NAME:()=>s,SESSION_PROP_NAME:()=>u,SESSION_RESPONSE:()=>_,SESSION_STARTED_EVENT:()=>c,SESSION_STATE_PROP_NAME:()=>a,SESSION_STOPPED_EVENT:()=>d,SESSION_SUBSCRIBE_EVENT:()=>p,SESSION_TYPE_PROP_NAME:()=>l,SESSION_UNSUBSCRIBE_EVENT:()=>m});const r=.15,o=.15,s="multiplayer-session-id",i="multiplayer-session-continuous-debugging",a="multiplayer-session-state",l="multiplayer-session-type",u="multiplayer-session-data",c="debug-session:started",d="debug-session:stopped",p="debug-session:subscribe",m="debug-session:unsubscribe",h="debug-session:auto-created",f="debug-session:rrweb:add-event",A=1e5,g="https://api.multiplayer.app",_="multiplayer-debug-session-response",y=6e4,E=630,b="0.0.11",v=[/.*\/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:()=>c,DEFAULT_MASKING_CONFIG:()=>u});var r=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/index-browser.js"),o=n("./src/types/index.ts"),s=n("./src/config/constants.ts");const{mask:i,sensitiveFields:a,sensitiveHeaders:l}=r.SessionRecorderSdk,u={maskAllInputs:!0,isMaskingEnabled:!0,maskBody:i(a),maskHeaders:i(l),maskBodyFieldsList:a,maskHeadersList:l,headersToInclude:[],headersToExclude:[]},c={apiKey:"",version:"",application:"",environment:"",showWidget:!0,widgetButtonPlacement:o.WidgetButtonPlacement.bottomRight,usePostMessageFallback:!1,exporterApiBaseUrl:s.MULTIPLAYER_BASE_API_URL,recordCanvas:!1,schemifyDocSpanPayload:!0,ignoreUrls:[],propagateTraceHeaderCorsUrls:[],docTraceRatio:s.OTEL_MP_DOC_TRACE_RATIO,sampleTraceRatio:s.OTEL_MP_SAMPLE_TRACE_RATIO,maxCapturingHttpPayloadSize:s.DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE,captureBody:!0,captureHeaders:!0,masking:u}},"./src/config/index.ts":(e,t,n)=>{"use strict";n.d(t,{BASE_CONFIG:()=>o.BASE_CONFIG,CONTINUOUS_DEBUGGING_TIMEOUT:()=>r.CONTINUOUS_DEBUGGING_TIMEOUT,DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE:()=>r.DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE,OTEL_IGNORE_URLS:()=>r.OTEL_IGNORE_URLS,OTEL_MP_DOC_TRACE_RATIO:()=>r.OTEL_MP_DOC_TRACE_RATIO,SESSION_ADD_EVENT:()=>r.SESSION_ADD_EVENT,SESSION_AUTO_CREATED:()=>r.SESSION_AUTO_CREATED,SESSION_CONTINUOUS_DEBUGGING_PROP_NAME:()=>r.SESSION_CONTINUOUS_DEBUGGING_PROP_NAME,SESSION_ID_PROP_NAME:()=>r.SESSION_ID_PROP_NAME,SESSION_PROP_NAME:()=>r.SESSION_PROP_NAME,SESSION_RESPONSE:()=>r.SESSION_RESPONSE,SESSION_STARTED_EVENT:()=>r.SESSION_STARTED_EVENT,SESSION_STATE_PROP_NAME:()=>r.SESSION_STATE_PROP_NAME,SESSION_STOPPED_EVENT:()=>r.SESSION_STOPPED_EVENT,SESSION_SUBSCRIBE_EVENT:()=>r.SESSION_SUBSCRIBE_EVENT,SESSION_TYPE_PROP_NAME:()=>r.SESSION_TYPE_PROP_NAME,SESSION_UNSUBSCRIBE_EVENT:()=>r.SESSION_UNSUBSCRIBE_EVENT,getSessionRecorderConfig:()=>s.getSessionRecorderConfig});var r=n("./src/config/constants.ts"),o=n("./src/config/defaults.ts"),s=(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:()=>u});var r=n("./src/config/defaults.ts"),o=n("./src/config/validators.ts"),s=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/index-browser.js");const{mask:i,sensitiveFields:a,sensitiveHeaders:l}=s.SessionRecorderSdk,u=e=>{var t,n,s,u;const c=r.DEFAULT_MASKING_CONFIG;if("object"!=typeof e)return c;const d=(0,o.isValidArray)(e.maskHeadersList,l),p=(0,o.isValidArray)(e.maskBodyFieldsList,a);return{maskAllInputs:(0,o.isValidBoolean)(e.maskAllInputs,null===(t=c.maskAllInputs)||void 0===t||t),maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,maskInputOptions:e.maskInputOptions&&"object"==typeof e.maskInputOptions?e.maskInputOptions:void 0,maskInput:(0,o.isValidFunction)(e.maskInput,void 0),maskText:(0,o.isValidFunction)(e.maskText,void 0),maskConsoleEvent:(0,o.isValidFunction)(e.maskConsoleEvent,void 0),maskHeadersList:d,maskBodyFieldsList:p,headersToInclude:(0,o.isValidArray)(e.headersToInclude,null!==(n=c.headersToInclude)&&void 0!==n?n:[]),headersToExclude:(0,o.isValidArray)(e.headersToExclude,null!==(s=c.headersToExclude)&&void 0!==s?s:[]),isMaskingEnabled:(0,o.isValidBoolean)(e.isMaskingEnabled,null===(u=c.isMaskingEnabled)||void 0===u||u),maskBody:(0,o.isValidFunction)(e.maskBody,i(p)),maskHeaders:(0,o.isValidFunction)(e.maskHeaders,i(d))}}},"./src/config/session-recorder.ts":(e,t,n)=>{"use strict";n.d(t,{getSessionRecorderConfig:()=>a});var r=n("./src/types/index.ts"),o=n("./src/config/defaults.ts"),s=n("./src/config/masking.ts"),i=n("./src/config/validators.ts");const a=e=>e?{apiKey:(0,i.isValidString)(e.apiKey,o.BASE_CONFIG.apiKey),version:(0,i.isValidString)(e.version,o.BASE_CONFIG.version),application:(0,i.isValidString)(e.application,o.BASE_CONFIG.application),environment:(0,i.isValidString)(e.environment,o.BASE_CONFIG.environment),exporterApiBaseUrl:(0,i.isValidString)(e.exporterApiBaseUrl,o.BASE_CONFIG.exporterApiBaseUrl),usePostMessageFallback:(0,i.isValidBoolean)(e.usePostMessageFallback,o.BASE_CONFIG.usePostMessageFallback),showWidget:(0,i.isValidBoolean)(e.showWidget,o.BASE_CONFIG.showWidget),recordCanvas:(0,i.isValidBoolean)(e.recordCanvas,o.BASE_CONFIG.recordCanvas),widgetButtonPlacement:(0,i.isValidEnum)(e.widgetButtonPlacement,o.BASE_CONFIG.widgetButtonPlacement,Object.values(r.WidgetButtonPlacement)),ignoreUrls:(0,i.isValidArray)(e.ignoreUrls,o.BASE_CONFIG.ignoreUrls),docTraceRatio:(0,i.isValidNumber)(e.docTraceRatio,o.BASE_CONFIG.docTraceRatio),sampleTraceRatio:(0,i.isValidNumber)(e.sampleTraceRatio,o.BASE_CONFIG.sampleTraceRatio),propagateTraceHeaderCorsUrls:e.propagateTraceHeaderCorsUrls||o.BASE_CONFIG.propagateTraceHeaderCorsUrls,schemifyDocSpanPayload:(0,i.isValidBoolean)(e.schemifyDocSpanPayload,o.BASE_CONFIG.schemifyDocSpanPayload),maxCapturingHttpPayloadSize:(0,i.isValidNumber)(e.maxCapturingHttpPayloadSize,o.BASE_CONFIG.maxCapturingHttpPayloadSize),captureBody:(0,i.isValidBoolean)(e.captureBody,o.BASE_CONFIG.captureBody),captureHeaders:(0,i.isValidBoolean)(e.captureHeaders,o.BASE_CONFIG.captureHeaders),masking:(0,s.getMaskingConfig)(e.masking)}:o.BASE_CONFIG},"./src/config/validators.ts":(e,t,n)=>{"use strict";n.d(t,{isValidArray:()=>i,isValidBoolean:()=>s,isValidEnum:()=>a,isValidFunction:()=>l,isValidNumber:()=>o,isValidString:()=>r});const r=(e,t)=>"string"==typeof e?e.trim():t,o=(e,t)=>"number"==typeof e?e:t,s=(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:()=>o});var r=n("../../node_modules/events/events.js");const o=new r.EventEmitter},"./src/listeners.ts":(e,t,n)=>{"use strict";n.d(t,{setupListeners:()=>s});var r=n("./src/services/messaging.service.ts"),o=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/index-browser.js");function s(e){r.default.sendMessage("ready",{session:e.session,sessionState:e.sessionState}),r.default.on("init",t=>{e.init(t)}),r.default.on("start",t=>{e.start(o.SessionType.PLAIN,t)}),r.default.on("end",t=>{e.stop(t)}),r.default.on("pause",()=>{e.pause()}),r.default.on("resume",()=>{e.resume()}),r.default.on("cancel",()=>{e.cancel()}),r.default.on("toggle-continuous-debugging",t=>{t.enabled?e.start(o.SessionType.CONTINUOUS,t.session):e.stop()}),r.default.on("save-continuous-debug-session",()=>{e.save()})}},"./src/otel/helpers.ts":(e,t,n)=>{"use strict";n.d(t,{extractResponseBody:()=>a,headersToObject:()=>i,processHttpPayload:()=>s});var r=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/index-browser.js");const{schemify:o}=r.SessionRecorderSdk;function s(e,t,n){if(!function(e){return e.startsWith(r.MULTIPLAYER_TRACE_DOC_PREFIX)||e.startsWith(r.MULTIPLAYER_TRACE_DEBUG_PREFIX)||e.startsWith(r.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX)}(n.spanContext().traceId))return;const{requestBody:s,responseBody:i}=function(e,t,n){var s,i;const{captureBody:a,masking:l,schemifyDocSpanPayload:u}=t,c=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))),c.startsWith(r.MULTIPLAYER_TRACE_DOC_PREFIX)&&u&&(d=d&&o(d),p=p&&o(p)),(c.startsWith(r.MULTIPLAYER_TRACE_DEBUG_PREFIX)||c.startsWith(r.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX))&&l.isMaskingEnabled&&(d=d&&(null===(s=l.maskBody)||void 0===s?void 0:s.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 r,o,s,i,a;const{captureHeaders:l,masking:u}=t;if(!l)return{};let{requestHeaders:c={},responseHeaders:d={}}=e;if((null===(r=u.headersToInclude)||void 0===r?void 0:r.length)||(null===(o=u.headersToExclude)||void 0===o?void 0:o.length)){if(u.headersToInclude){const e={},t={};for(const n of u.headersToInclude)c[n]&&(e[n]=c[n]),d[n]&&(t[n]=d[n]);c=e,d=t}if(null===(s=u.headersToExclude)||void 0===s?void 0:s.length)for(const e of u.headersToExclude)delete c[e],delete d[e]}else null!=c&&(c=JSON.parse(JSON.stringify(c))),null!=d&&(d=JSON.parse(JSON.stringify(d)));const p=(null===(i=u.maskHeaders)||void 0===i?void 0:i.call(u,c,n))||c,m=(null===(a=u.maskHeaders)||void 0===a?void 0:a.call(u,d,n))||d,h="string"==typeof p?p:JSON.stringify(p),f="string"==typeof m?m:JSON.stringify(m);return{requestHeaders:(null==h?void 0:h.length)?h:void 0,responseHeaders:(null==f?void 0:f.length)?f:void 0}}(e,t,n);s&&n.setAttribute(r.ATTR_MULTIPLAYER_HTTP_REQUEST_BODY,s),i&&n.setAttribute(r.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY,i),a&&n.setAttribute(r.ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS,a),l&&n.setAttribute(r.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,r]of e)"string"==typeof n&&"string"==typeof r&&(t[n]=r);else if("object"==typeof e&&!Array.isArray(e))for(const[n,r]of Object.entries(e))"string"==typeof n&&"string"==typeof r&&(t[n]=r);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)}},"./src/otel/index.ts":(e,t,n)=>{"use strict";n.d(t,{TracerBrowserSDK:()=>m});var r=n("../../node_modules/@opentelemetry/resources/build/esm/Resource.js"),o=n("./node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js"),s=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"),u=n("../../node_modules/@opentelemetry/auto-instrumentations-web/build/esm/index.js"),c=n("./node_modules/@multiplayer-app/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=c.SessionType.PLAIN){this.sessionId=e,this.idGenerator.setSessionId(e,t)}init(e){this.config=e;const{application:t,version:n,environment:i}=this.config;this.idGenerator=new c.SessionRecorderIdGenerator({autoDocTracesRatio:e.docTraceRatio||d.OTEL_MP_DOC_TRACE_RATIO}),this.tracerProvider=new s.WebTracerProvider({resource:new r.Resource({[a.SEMRESATTRS_SERVICE_NAME]:t,[a.SEMRESATTRS_SERVICE_VERSION]:n,[a.SEMRESATTRS_DEPLOYMENT_ENVIRONMENT]:i}),idGenerator:this.idGenerator,sampler:new c.SessionRecorderTraceIdRatioBasedSampler(this.config.sampleTraceRatio),spanProcessors:[this._getSpanSessionIdProcessor()]}),this.config.apiKey&&this.addBatchSpanExporter(this.config.apiKey),this.tracerProvider.register({propagator:new o.W3CTraceContextPropagator}),(0,l.registerInstrumentations)({tracerProvider:this.tracerProvider,instrumentations:[(0,u.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:r}=this.config;try{if(!n&&!r)return;const o=t.networkRequest.requestBody,s=t.networkRequest.responseBody,i=t.networkRequest.requestHeaders||{},a={requestBody:o,responseBody:s,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:r,captureHeaders:o}=this.config;try{if(!r&&!o)return;const s=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 u={requestBody:s,responseBody:l,requestHeaders:i,responseHeaders:a};(0,p.processHttpPayload)(u,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 r="";return this.allowedElements.has(t.tagName)&&(r=String(t.textContent||t.ariaLabel||"").trim()),n.setAttribute("target.innerText",r),!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("")}addBatchSpanExporter(e){var t,n;if(!this.tracerProvider)throw new Error("Configuration not initialized. Call init() before start().");this.tracerProvider.addSpanProcessor(new i.BatchSpanProcessor(new c.SessionRecorderHttpTraceExporterBrowser({apiKey:e,url:`${null===(t=this.config)||void 0===t?void 0:t.exporterApiBaseUrl}/v1/traces`,usePostMessageFallback:null===(n=this.config)||void 0===n?void 0:n.usePostMessageFallback})))}_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(c.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:()=>u,setShouldRecordHttpData:()=>c});var r=n("./src/utils/type-utils.ts"),o=n("./src/utils/request-utils.ts"),s=n("./src/config/index.ts");let i=!0,a=!0,l=s.DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE;const u=e=>{l=e},c=(e,t)=>{i=t,a=t};function d({body:e,url:t}){if((0,r.isNullish)(e))return null;if((0,r.isString)(e))return e;if((0,r.isDocument)(e))return e.textContent;if((0,r.isFormData)(e))return(0,o.formDataToQuery)(e);if((0,r.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,r=!0,o,s){const u=this,c={},p={},m=u.setRequestHeader.bind(u);u.setRequestHeader=(e,t)=>(p[e]=t,m(e,t)),i&&(c.requestHeaders=p);const h=u.send.bind(u);u.send=e=>{{const t=d({body:e,url:n});(null==t?void 0:t.length)&&new Blob([t]).size<=l&&(c.requestBody=t)}return h(e)},u.addEventListener("readystatechange",()=>{if(u.readyState!==u.DONE)return;const e={};u.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(t=>{const n=t.split(": "),r=n.shift(),o=n.join(": ");r&&(e[r]=o)}),a&&(c.responseHeaders=e);{const e=d({body:u.response,url:n});(null==e?void 0:e.length)&&new Blob([e]).size<=l&&(c.responseBody=e)}}),u.networkRequest=c,t.call(u,e,n,r,o,s)}}(XMLHttpRequest.prototype)},"./src/rrweb/exporter.ts":(e,t,n)=>{"use strict";n.d(t,{RrwebEventExporter:()=>a});var r=n("../../node_modules/socket.io-client/build/esm/index.js"),o=n("./src/eventBus.ts"),s=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,r.default)(this.options.socketUrl,{path:"/v0/radar/ws",auth:{"x-api-key":this.options.apiKey},reconnectionAttempts:2,transports:["websocket"]}),this.socket.on("connect",()=>{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=>{o.recorderEventBus.emit(i.SESSION_STOPPED_EVENT,e),this.unsubscribeFromSession()}),this.socket.on(i.SESSION_AUTO_CREATED,e=>{o.recorderEventBus.emit(i.SESSION_AUTO_CREATED,e)}))}checkReconnectionAttempts(){this.attempts>=2&&(this.usePostMessage=!!this.options.usePostMessageFallback,this.flushQueue())}sendViaPostMessage(e){s.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?s.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:()=>c});var r=n("../../node_modules/@rrweb/packer/dist/packer.js"),o=n("../../node_modules/rrweb/dist/rrweb.js"),s=n("./node_modules/@multiplayer-app/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"),u=n("./src/rrweb/exporter.ts");class c{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 u.RrwebEventExporter({apiKey:e.apiKey,socketUrl:e.exporterApiBaseUrl||"",usePostMessageFallback:Boolean(e.usePostMessageFallback)})}start(e,t){var n;if(!this.config)throw new Error("Configuration not initialized. Call init() before start().");const u=t===s.SessionType.CONTINUOUS?l.CONTINUOUS_DEBUGGING_TIMEOUT:0;this.startedAt=(new Date).toISOString();const c=this.config.masking||{},d={maskAllInputs:null===(n=c.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"]})]};c.maskInputOptions&&(d.maskInputOptions=c.maskInputOptions),c.maskTextClass&&(d.maskTextClass=c.maskTextClass),c.maskTextSelector&&(d.maskTextSelector=c.maskTextSelector),"function"==typeof c.maskInput&&(d.maskInputFn=c.maskInput),"function"==typeof c.maskText&&(d.maskTextFn=c.maskText),this.stopFn=(0,o.record)({...d,emit:async n=>{if(this.exporter){if("function"==typeof c.maskConsoleEvent&&(0,a.isConsoleEvent)(n)){const{data:e}=n,t=c.maskConsoleEvent(e.payload);n.data={...e,payload:t}}const o=(0,r.pack)(n);this.stoppedAt=new Date(n.timestamp).toISOString(),this.exporter.send({event:o,eventType:n.type,timestamp:n.timestamp,debugSessionId:e,debugSessionType:t})}}}),u>0&&(this.restartTimeout=setTimeout(()=>{this.restart(e,t)},u))}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:()=>o});var r=n("./src/services/messaging.service.ts");class o{constructor(){this.config={apiKey:"",exporterApiBaseUrl:""}}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,r){const o=`${this.config.exporterApiBaseUrl}/v0/radar${e}`,s={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(o,{...s,credentials:"include",signal:r});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:o,params:s})}}async handleRequestError(e,t){if(!this.config.usePostMessageFallback)throw new Error("Error making request: "+e.message);try{return await r.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:()=>r});const r=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(),r=new Promise((e,t)=>{this.promiseMap.set(n,{resolve:e,reject:t})}),o={type:"MULTIPLAYER_SESSION_DEBUGGER_LIB",action:e,payload:t,promiseId:n};return window.postMessage(o,"*"),r}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 r=n.indexOf(t);-1!==r&&(n.splice(r,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:r,promiseId:o}=e.data;if("MULTIPLAYER_SESSION_DEBUGGER_EXTENSION"!==t||!n)return;if(o&&this.promiseMap.has(o)){const{resolve:e,reject:t}=this.promiseMap.get(o),{error:n,response:s}=r;return n?t(n):e(s),void this.promiseMap.delete(o)}const s=this.messagingServices.get(n);s&&s.forEach(e=>e(r))})}}},"./src/sessionRecorder.ts":(e,t,n)=>{"use strict";n.d(t,{SessionRecorder:()=>f});var r=n("./src/otel/index.ts"),o=n("./src/rrweb/index.ts"),s=n("./src/utils/index.ts"),i=n("./src/types/index.ts"),a=n("./src/config/index.ts"),l=n("./src/patch/xhr.ts"),u=n("./src/eventBus.ts"),c=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("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/index-browser.js")),h=n("./src/sessionWidget/buttonStateConfigs.ts");class f{get sessionId(){return this._sessionId}set sessionId(e){this._sessionId=e,(0,s.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.updateContinuousDebuggingState(t),d.default.sendMessage("continuous-debugging",t),(0,s.setStoredItem)(a.SESSION_TYPE_PROP_NAME,e)}get continuousDebugging(){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.continuousDebugging),d.default.sendMessage("state-change",this._sessionState),(0,s.setStoredItem)(a.SESSION_STATE_PROP_NAME,e)}get session(){return this._session}set session(e){this._session=e,(0,s.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 r.TracerBrowserSDK,this._recorder=new o.RecorderBrowserSDK,this._sessionWidget=new c.SessionWidget,this._startRequestController=null,this._sessionId=null,this._sessionType=m.SessionType.PLAIN,this._sessionState=null,this._session=null,this._sessionAttributes=null;const t=(0,s.getStoredItem)(a.SESSION_PROP_NAME,!0),n=(0,s.getStoredItem)(a.SESSION_ID_PROP_NAME),i=(0,s.getStoredItem)(a.SESSION_STATE_PROP_NAME),l=(0,s.getStoredItem)(a.SESSION_TYPE_PROP_NAME),u=(0,s.getStoredItem)(a.SESSION_CONTINUOUS_DEBUGGING_PROP_NAME,!0);(0,s.isSessionActive)(t,u)?(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.session&&this._recorder.subscribeToSession(this.session),this._start()),this._registerWidgetEvents(),this._registerSessionLimitReach(),this._registerSessionAutoCreation(),d.default.sendMessage("state-change",this.sessionState)}async save(){try{this._checkOperation("save"),this._sessionWidget.updateSaveContinuousDebugSessionState(h.ContinuousDebuggingSaveButtonState.SAVING);const e=await this._apiService.saveContinuousDebugSession(this.sessionId,{sessionAttributes:this.sessionAttributes,resourceAttributes:(0,s.getNavigatorInfo)(),stoppedAt:this._recorder.stoppedAt,name:this.sessionAttributes.userName?`${this.sessionAttributes.userName}'s session on ${(0,s.getFormattedDate)(Date.now(),{month:"short",day:"numeric"})}`:`Session on ${(0,s.getFormattedDate)(Date.now())}`});this._sessionWidget.updateSaveContinuousDebugSessionState(h.ContinuousDebuggingSaveButtonState.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.ContinuousDebuggingSaveButtonState.ERROR)}finally{setTimeout(()=>{this._sessionWidget.updateSaveContinuousDebugSessionState(h.ContinuousDebuggingSaveButtonState.IDLE)},3e3)}}start(e=m.SessionType.PLAIN,t){this._checkOperation("start"),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.continuousDebugging)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);u.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.continuousDebugging?(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){this._checkOperation("autoStartRemoteContinuousSession");const t={sessionAttributes:{...this.sessionAttributes,...(null==e?void 0:e.sessionAttributes)||{}},resourceAttributes:{...(0,s.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(){u.recorderEventBus.on(a.SESSION_STOPPED_EVENT,()=>{this._stop(),this._clearSession(),this._sessionWidget.handleUIReseting()})}_registerSessionAutoCreation(){u.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,s.getNavigatorInfo)(),name:this.sessionAttributes.userName?`${this.sessionAttributes.userName}'s session on ${(0,s.getFormattedDate)(Date.now(),{month:"short",day:"numeric"})}`:`Session on ${(0,s.getFormattedDate)(Date.now())}`},n=this.continuousDebugging?{debugSessionData:e}:e,r=this.continuousDebugging?await this._apiService.startContinuousDebugSession(n,t):await this._apiService.startSession(n,t);r&&(r.sessionType=this.continuousDebugging?m.SessionType.CONTINUOUS:m.SessionType.PLAIN,this._setupSessionAndStart(r,!1))}catch(e){this.error=e.message,this.continuousDebugging&&(this.sessionType=m.SessionType.PLAIN)}}_start(){var e;this._tracer.start(this.sessionId,this.sessionType),this._recorder.start(this.sessionId,this.sessionType),this.sessionState=i.SessionState.started,this.session&&(u.recorderEventBus.emit(a.SESSION_STARTED_EVENT,this.session),this._sessionWidget.seconds=(0,s.getTimeDifferenceInSeconds)(null===(e=this.session)||void 0===e?void 0:e.startedAt))}_stop(){this._tracer.stop(),this._recorder.stop(),this.sessionState=i.SessionState.stopped}_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.addBatchSpanExporter(e.tempApiKey),this._apiService.updateConfigs({apiKey:this._configs.apiKey})),this._recorder.subscribeToSession(e),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.continuousDebugging)throw new Error("Cannot save continuous debugging session. Continuous debugging is not enabled.");if(this.sessionState!==i.SessionState.started)throw new Error("Cannot save continuous debugging 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:()=>c});var r=n("./src/utils/index.ts"),o=n("./src/sessionWidget/templates/icons.ts"),s=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"),u=n("./src/sessionWidget/templates/toast.ts");class c{constructor(e,t,n,r,o,s){this.toastTimeout=null,this.recorderButton=e,this.initialPopover=t,this.finalPopover=n,this.recordingOverlay=r,this.submitSessionDialog=o,this.toast=s}setRecorderButtonProps(){this.recorderButton.className="mp-session-debugger-button",this.recorderButton.dataset.tooltip="Click to record a bug",(0,r.insertTrustedHTML)(this.recorderButton,`${o.RecordIcon}`)}setOverlayProps(){this.recordingOverlay.className="mp-recording-overlay hidden",(0,r.insertTrustedHTML)(this.recordingOverlay,a.recordingOverlayTemplate)}setSubmitSessionDialogProps(){this.submitSessionDialog.id="mp-submission-dialog",this.submitSessionDialog.className="hidden",(0,r.insertTrustedHTML)(this.submitSessionDialog,l.submitSessionDialogTemplate)}setInitialPopoverProps(){this.initialPopover.className="mp-session-debugger-popover mp-initial-popover hidden",(0,r.insertTrustedHTML)(this.initialPopover,i.initialPopoverTemplate)}setFinalPopoverProps(){this.finalPopover.className="mp-session-debugger-popover hidden",(0,r.insertTrustedHTML)(this.finalPopover,s.finalPopoverTemplate)}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 bug-hunting!")}setTimerValue(e){const t=this.recordingOverlay.querySelector(".timer");t&&(0,r.insertTrustedHTML)(t,e)}setToastProps(){this.toast.className="mp-toast hidden"}showToast(e,t=1e4){var n;if((0,r.insertTrustedHTML)(this.toast,(0,u.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:()=>r,ContinuousDebuggingSaveButtonState:()=>o,buttonStates:()=>i,continuousDebuggingSaveButtonStates:()=>a});var r,o,s=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"}(r||(r={})),function(e){e.IDLE="IDLE",e.SAVING="SAVING",e.SAVED="SAVED",e.ERROR="ERROR"}(o||(o={}));const i={[r.IDLE]:{icon:s.RecordIcon,tooltip:"Click to record",classes:[],excludeClasses:["animate-rotate","mp-button-blue"]},[r.RECORDING]:{icon:s.CapturingIcon,tooltip:"Click to stop your recording",classes:[],excludeClasses:["mp-button-blue","animate-rotate"]},[r.CANCEL]:{icon:s.CloseIcon,tooltip:"Click to cancel",classes:[],excludeClasses:["animate-rotate","mp-button-blue"]},[r.SENT]:{icon:s.CheckmarkIcon,tooltip:"We've sent it over! Thanks!",classes:["mp-button-blue"],excludeClasses:["animate-rotate"]},[r.LOADING]:{icon:s.RecordIcon,tooltip:"Starting to record...",classes:[],excludeClasses:["animate-rotate","mp-button-blue"]},[r.CONTINUOUS_DEBUGGING]:{icon:s.CapturingIcon,tooltip:"You’re continuously recording.",classes:[],excludeClasses:["mp-button-blue","animate-rotate"]}},a={[o.IDLE]:{textContent:"Save last snapshot",disabled:!1,classes:[]},[o.SAVING]:{disabled:!0,textContent:"Saving last snapshot...",classes:[]},[o.SAVED]:{disabled:!0,textContent:"Saved",classes:[]},[o.ERROR]:{disabled:!0,textContent:"Error saving last snapshot",classes:[]}}},"./src/sessionWidget/constants.ts":(e,t,n)=>{"use strict";n.d(t,{NON_DRAGGABLE_OFFSET:()=>o,POPOVER_DISTANCE_FROM_BUTTON:()=>s,POPOVER_WIDTH:()=>r,POSITION_STATE_KEY:()=>i});const r=300,o=10,s=25,i="mp-recorder-button-position"},"./src/sessionWidget/dragManager.ts":(e,t,n)=>{"use strict";n.d(t,{DragManager:()=>o});var r=n("./src/sessionWidget/constants.ts");class o{constructor(e,t,n=()=>{},r=()=>{},o=()=>{}){this.isDragging=!1,this.dragStarted=!1,this.isOnLeftHalfOfScreen=!1,this.recorderButton=e,this.recorderPlacement=t,this.onDragEnd=n,this.updatePopoverPosition=r,this.onRecordingButtonClick=o}init(){this.loadStoredPosition(),this.setupDragListeners()}loadStoredPosition(){const e=localStorage.getItem(r.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,o=t/window.innerHeight*100;localStorage.setItem(r.POSITION_STATE_KEY,JSON.stringify({right:n,bottom:o}))}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,r=e.clientY,o=this.recorderButton.getBoundingClientRect(),s=window.innerWidth,i=window.innerHeight,a=e=>{const t=e.clientX-n,a=e.clientY-r;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(s-o.width,o.left+t)),n=Math.max(0,Math.min(i-o.height,o.top+a)),r=s-e-o.width,l=i-n-o.height;this.isOnLeftHalfOfScreen=r>s/2,requestAnimationFrame(()=>{this.recorderButton.style.right=`${r}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:()=>c});n("../../node_modules/rrweb-player/dist/style.css");var r=n("../../node_modules/lib0/observable.js"),o=n("./src/utils/index.ts"),s=n("./src/types/index.ts"),i=n("./src/sessionWidget/dragManager.ts"),a=n("./src/sessionWidget/constants.ts"),l=n("./src/sessionWidget/UIManager.ts"),u=n("./src/sessionWidget/buttonStateConfigs.ts");class c extends r.Observable{set buttonState(e){this._buttonState=e;const{icon:t,tooltip:n,classes:r,excludeClasses:o}=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,o,r)}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._continuousDebugging?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._continuousDebugging?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._continuousDebugging&&(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._continuousDebugging=!1,this.commentTextarea=null,this.dragManager=null,this.buttonClickExternalHandler=null,this.showRecorderButton=!1,this.seconds=0,this.handleClickOutside=e=>{var t;const n=e.target,r=this._initialPopoverVisible||this._finalPopoverVisible,o=this._initialPopoverVisible?this.initialPopover:this.finalPopover;r&&n&&!(null==o?void 0:o.contains(n))&&!(null===(t=this.recorderButton)||void 0===t?void 0:t.contains(n))&&n!==this.recorderButton&&n!==o&&(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 l.UIManager(this.recorderButton,this.initialPopover,this.finalPopover,this.overlay,this.submitSessionDialog,this.toast),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._continuousDebugging=t,e){case s.SessionState.started:this.isPaused=!1,this.isStarted=!0;break;case s.SessionState.stopped:this.isPaused=!1,this.isStarted=!1;break;case s.SessionState.paused:this.isPaused=!0,this.isStarted=!1;break;default:this.isPaused=!1,this.isStarted=!1}}updateContinuousDebuggingState(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:r}=u.continuousDebuggingSaveButtonStates[e];t.disabled=r,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;const t=[this.toast];e.showWidget?t.push(this.recorderButton,this.initialPopover,this.finalPopover,this.submitSessionDialog):t.push(this.overlay,this.submitSessionDialog),this.appendElements(t),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:r}=this.recorderButton.getBoundingClientRect(),o=!this.recorderButton.classList.contains("no-draggable"),s=this._isStarted?400:300,i=window.innerWidth,l=window.innerHeight;let u,c;u=l-e+a.POPOVER_DISTANCE_FROM_BUTTON+(o?0:a.NON_DRAGGABLE_OFFSET),c=i-t,u+s>l&&(u=l-n-s-a.POPOVER_DISTANCE_FROM_BUTTON-(o?0:a.NON_DRAGGABLE_OFFSET)),c+a.POPOVER_WIDTH>i&&(c=i-r-a.POPOVER_WIDTH);const d=10;u=Math.max(u,d),c=Math.max(c,d),c+a.POPOVER_WIDTH>i-d&&(c=i-a.POPOVER_WIDTH-d),u+s>l-d&&(u=l-s-d);const p=e=>{e.style.right=`${c}px`,e.style.bottom=`${u}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)},{event:"change",target:this.initialPopover,selector:"#mp-session-debugger-continuous-debugging-checkbox",handler:this.handleContinuousDebuggingChange.bind(this)},{target:this.initialPopover,selector:"#mp-save-continuous-debug-session",handler:this.handleSaveContinuousDebugSession.bind(this)},{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:r="click"})=>{this.addListener(e,t,n,r)})}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._continuousDebugging?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,r="click"){var o;null===(o=null==e?void 0:e.querySelector(t))||void 0===o||o.addEventListener(r,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._continuousDebugging?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,r){this.recorderButton&&((0,o.insertTrustedHTML)(this.recorderButton,`${e}`),this.recorderButton.dataset.tooltip=t,n&&this.recorderButton.classList.remove(...n),r&&this.recorderButton.classList.add(...r))}handleContinuousDebuggingChange(e){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._continuousDebugging?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,o.formatTimeForSessionTimer)(this.seconds)),this.timerInterval=setInterval(()=>{this.seconds++,this.uiManager.setTimerValue((0,o.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,r=0;t.onmousedown=function(t){t.preventDefault(),n=t.clientX-e.offsetLeft,r=t.clientY-e.offsetTop,document.onmousemove=function(t){e.style.left=t.clientX-n+"px",e.style.top=t.clientY-r+"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:()=>o});var r=n("./src/sessionWidget/templates/icons.ts");const o=`\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">${r.LogoSvg}</div>\n </a>\n <button class="mp-session-debugger-dismiss-button">Dismiss report</button>\n <button class="mp-session-debugger-modal-close" aria-label="Close">${r.CloseXIcon}</button>\n </div>\n <div class="mp-session-debugger-popover-body">\n <h2>Done capturing?</h2>\n <p>Click the button below to save your report. Optionally, feel free to send a message to Multiplayer.</p>\n <textarea placeholder="Add a comment..." 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">Save</button>\n </div>\n </div>\n</div>\n`},"./src/sessionWidget/templates/icons.ts":(e,t,n)=>{"use strict";n.d(t,{CapturingIcon:()=>u,CheckSuccessIcon:()=>p,CheckmarkIcon:()=>c,CloseIcon:()=>a,CloseXIcon:()=>l,DragHandleIcon:()=>d,ErrorIcon:()=>m,LogoSvg:()=>r,RecordIcon:()=>o,RecordIndicatorIcon:()=>s,StopIcon:()=>i});const r='<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>',o='<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>',s='<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>',u='<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>',c='<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:()=>o});var r=n("./src/sessionWidget/templates/icons.ts");const o=`\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">${r.LogoSvg}</div>\n </a>\n <button class="mp-session-debugger-modal-close" aria-label="Close">${r.CloseXIcon}</button>\n </div>\n <div class="mp-session-debugger-popover-body">\n <div class="mp-session-debugger-continuous-debugging">\n <div class="mp-session-debugger-continuous-debugging-label">\n Continuous recording\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 <h2>Encountered an issue?</h2>\n <p>Help us improve by sharing what went wrong. We'll record your steps, so we can see exactly what happened.</p>\n <div class="mp-session-debugger-popover-footer">\n <button class="mp-session-debugger-popover-button mp-start-recording">Start Recording!</button>\n </div>\n <div class="mp-session-debugger-continuous-debugging-overlay">\n <div class="mp-session-debugger-continuous-debugging-overlay-content">\n <h3>${r.CapturingIcon} You’re continuously recording.</h3>\n <p>\n Press the save button to save your last snapshot. You can continue debugging after saving.\n </p>\n </div>\n <button class="mp-session-debugger-popover-button" id="mp-save-continuous-debug-session">Save last snapshot</button>\n </div>\n </div>\n</div>\n`},"./src/sessionWidget/templates/recordingOverlay.ts":(e,t,n)=>{"use strict";n.d(t,{recordingOverlayTemplate:()=>o});var r=n("./src/sessionWidget/templates/icons.ts");const o=`\n<div class="mp-recording-status">\n <div class="mp-recording-indicator">\n ${r.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">${r.StopIcon}</button>\n</div>\n<div class="mp-drag-handle" style="cursor: move;">\n ${r.DragHandleIcon}\n</div>\n`},"./src/sessionWidget/templates/submitSessionDialog.ts":(e,t,n)=>{"use strict";n.d(t,{submitSessionDialogTemplate:()=>r});const r='\n<div class="mp-dialog-backdrop">\n <div class="mp-dialog-content">\n <h3>Submit Recording</h3>\n <div class="subtitle">Report this issue with your debug logs and session replay. Optionally, enter some additional information below.</div>\n <div class="form-group">\n <label>Comment (optional)</label>\n <textarea id="mp-recording-comment" rows="3" placeholder="Add any notes about this recording..."></textarea>\n </div>\n <div class="mp-dialog-actions">\n <button id="mp-cancel-submission">Cancel</button>\n <button id="mp-submit-recording">Submit</button>\n </div>\n </div>\n</div>\n'},"./src/sessionWidget/templates/toast.ts":(e,t,n)=>{"use strict";n.d(t,{toastTemplate:()=>o});var r=n("./src/sessionWidget/templates/icons.ts");const o=e=>{const{type:t,message:n,button:o}=e,i=(e=>"success"===e?r.CheckSuccessIcon:r.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 ${s(o)}\n </div>\n `},s=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:()=>r.SessionState,WidgetButtonPlacement:()=>r.WidgetButtonPlacement});n("./src/types/widget.ts"),n("./src/types/session.ts");var r=n("./src/types/sessionRecorder.ts")},"./src/types/session.ts":(e,t,n)=>{"use strict";var r;!function(e){e.OTLP_TRACES="OTLP_TRACES",e.OTLP_LOGS="OTLP_LOGS",e.RRWEB_EVENTS="RRWEB_EVENTS"}(r||(r={}))},"./src/types/sessionRecorder.ts":(e,t,n)=>{"use strict";var r,o;n.d(t,{SessionState:()=>o,WidgetButtonPlacement:()=>r}),function(e){e.topLeft="top-left",e.topRight="top-right",e.bottomLeft="bottom-left",e.bottomRight="bottom-right"}(r||(r={})),function(e){e.started="2",e.paused="1",e.stopped="0"}(o||(o={}))},"./src/types/widget.ts":()=>{},"./src/utils/array.ts":(e,t,n)=>{"use strict";n.d(t,{each:()=>i,isValidRegex:()=>a});var r=n("./src/utils/type-utils.ts"),o=n("./src/utils/globals.ts");const s={};function i(e,t,n){if(!(0,r.isNullish)(e)){if((0,r.isArray)(e))return function(e,t,n){if((0,r.isArray)(e))if(o.nativeForEach&&e.forEach===o.nativeForEach)e.forEach(t,n);else if("length"in e&&e.length===+e.length)for(let r=0,o=e.length;r<o;r++)if(r in e&&t.call(n,e[r],r)===s)return}(e,t,n);if((0,r.isFormData)(e)){for(const r of e.entries())if(t.call(n,r[1],r[0])===s)return}else for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t.call(n,e[r],r)===s)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:()=>o});var r=n("../../node_modules/dompurify/dist/purify.es.mjs");function o(e,t){const n=r.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 r="undefined"!=typeof window?window:void 0,o="undefined"!=typeof globalThis?globalThis:r,s=Array.prototype,i=s.forEach,a=(s.indexOf,null==o?void 0:o.navigator);null==o||o.document,null==o||o.location,null==o||o.fetch,(null==o?void 0:o.XMLHttpRequest)&&"withCredentials"in new o.XMLHttpRequest&&o.XMLHttpRequest,null==o||o.AbortController,null==a||a.userAgent},"./src/utils/index.ts":(e,t,n)=>{"use strict";n.d(t,{each:()=>l.each,formatTimeForSessionTimer:()=>s.formatTimeForSessionTimer,getFormattedDate:()=>s.getFormattedDate,getNavigatorInfo:()=>r.getNavigatorInfo,getStoredItem:()=>o.getStoredItem,getTimeDifferenceInSeconds:()=>s.getTimeDifferenceInSeconds,insertTrustedHTML:()=>a.insertTrustedHTML,isConsoleEvent:()=>i.isConsoleEvent,isSessionActive:()=>i.isSessionActive,isValidRegex:()=>l.isValidRegex,setStoredItem:()=>o.setStoredItem});var r=n("./src/utils/navigator.ts"),o=n("./src/utils/storage.ts"),s=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:()=>o});var r=n("./src/config/constants.ts");const o=()=>{var e,t,n,o,s,i,a,l,u,c;let d="Unknown",p="Unknown",m="Unknown";if(navigator.userAgent){const r=navigator.userAgent;p=/Mobi|Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(r)?"Mobile":/Tablet|iPad/i.test(r)?"Tablet":"Desktop",d=r.includes("Firefox")?`Mozilla Firefox ${(null===(e=r.match(/Firefox\/(\d+\.\d+)/))||void 0===e?void 0:e[1])||""}`:r.includes("Chrome")&&!r.includes("Edg")?`Google Chrome ${(null===(t=r.match(/Chrome\/(\d+\.\d+)/))||void 0===t?void 0:t[1])||""}`:r.includes("Edg")?`Microsoft Edge ${(null===(n=r.match(/Edg\/(\d+\.\d+)/))||void 0===n?void 0:n[1])||""}`:r.includes("Safari")&&!r.includes("Chrome")?`Safari ${(null===(o=r.match(/Version\/(\d+\.\d+)/))||void 0===o?void 0:o[1])||""}`:r.includes("Opera")||r.includes("OPR")?`Opera ${(null===(s=r.match(/(Opera|OPR)\/(\d+\.\d+)/))||void 0===s?void 0:s[2])||""}`:r.includes("Trident")?`Internet Explorer ${(null===(i=r.match(/rv:(\d+\.\d+)/))||void 0===i?void 0:i[1])||""}`:"Unknown browser",m=r.includes("Win")?`Windows ${(null===(a=r.match(/Windows NT (\d+\.\d+)/))||void 0===a?void 0:a[1])||""}`:r.includes("Mac")?`MacOS ${(null===(l=r.match(/Mac OS X (\d+_\d+)/))||void 0===l?void 0:l[1].replace("_","."))||""}`:r.includes("Linux")?"Linux":r.includes("Android")?`Android ${(null===(u=r.match(/Android (\d+\.\d+)/))||void 0===u?void 0:u[1])||""}`:r.includes("iPhone")||r.includes("iPad")?`iOS ${(null===(c=r.match(/OS (\d+_\d+)/))||void 0===c?void 0:c[1].replace("_","."))||""}`:"Unknown OS"}const h=navigator.hardwareConcurrency||1,f=navigator.cookieEnabled?"Yes":"No",A=window.devicePixelRatio||1;return{osInfo:m,screenSize:`${window.screen.width}x${window.screen.height}`,pixelRatio:A,deviceInfo:p,browserInfo:d,cookiesEnabled:f,hardwareConcurrency:h,packageVersion:r.PACKAGE_VERSION_EXPORT}}},"./src/utils/request-utils.ts":(e,t,n)=>{"use strict";n.d(t,{formDataToQuery:()=>s});var r=n("./src/utils/index.ts"),o=n("./src/utils/type-utils.ts");const s=function(e,t="&"){let n,s;const i=[];return(0,r.each)(e,function(e,t){(0,o.isUndefined)(e)||(0,o.isUndefined)(t)||"undefined"===t||(n=encodeURIComponent((0,o.isFile)(e)?e.name:e.toString()),s=encodeURIComponent(t),i[i.length]=s+"="+n)}),i.join(t)}},"./src/utils/session.ts":(e,t,n)=>{"use strict";n.d(t,{isConsoleEvent:()=>i,isSessionActive:()=>s});var r=n("../../node_modules/rrweb/dist/rrweb.js"),o=n("./src/config/constants.ts");const s=(e,t)=>{if(!e)return!1;if(t)return!0;const n=new Date(e.startedAt);return(new Date).getTime()-n.getTime()<1e3*o.DEBUG_SESSION_MAX_DURATION_SECONDS},i=e=>{var t;return e.type===r.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:()=>r,setStoredItem:()=>o});const r=(e,t)=>{const n=null===localStorage||void 0===localStorage?void 0:localStorage.getItem(e);return t?n?JSON.parse(n):null:n},o=(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:()=>o,getFormattedDate:()=>r,getTimeDifferenceInSeconds:()=>s});const r=(e,t)=>new Date(e).toLocaleDateString("en-US",t||{month:"short",year:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"}),o=e=>{const t=e%60;return`${Math.floor(e/60).toString().padStart(2,"0")}:${t.toString().padStart(2,"0")}`},s=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:()=>c,isObject:()=>a,isString:()=>u,isUndefined:()=>l});const r=Array.isArray,o=Object.prototype,s=(o.hasOwnProperty,o.toString),i=r||function(e){return"[object Array]"===s.call(e)},a=function(e){return e===Object(e)&&!i(e)},l=function(e){return void 0===e},u=function(e){return"[object String]"==s.call(e)},c=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},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/SessionRecorderHttpTraceExporterBrowser.js":(e,t,n)=>{"use strict";n.d(t,{SessionRecorderHttpTraceExporterBrowser:()=>c});var r,o=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/OTLPExporterBase.js"),s=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/create-legacy-browser-delegate.js"),i=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/SessionRecorderJsonTraceSerializer.js"),a=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/constants.base.js"),l=(r=function(e,t){return r=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])},r(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(){return u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)},c=function(e){function t(t){void 0===t&&(t={});var n=this,r=u(u({},t),{url:t.url||a.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL,headers:u(u({},t.headers||{}),t.apiKey?{Authorization:t.apiKey}:{})});return(n=e.call(this,(0,s.createLegacyOtlpBrowserExportDelegate)(r,i.SessionRecorderJsonTraceSerializer,"v1/traces",{"Content-Type":"application/json"}))||this).usePostMessage=!1,n.config=t,n.postMessageType=t.postMessageType||"MULTIPLAYER_SESSION_DEBUGGER_LIB",n.postMessageTargetOrigin=t.postMessageTargetOrigin||"*",n}return l(t,e),t.prototype.export=function(t,n){var r=this;this.usePostMessage?this.exportViaPostMessage(t,n):e.prototype.export.call(this,t,function(e){0===e.code?n(e):r.config.usePostMessageFallback?(r.usePostMessage=!0,r.exportViaPostMessage(t,n)):n(e)})},t.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})},t.prototype._serializeSpan=function(e){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:e.parentSpanId,instrumentationLibrary:e.instrumentationLibrary,droppedAttributesCount:e.droppedAttributesCount,droppedEventsCount:e.droppedEventsCount,droppedLinksCount:e.droppedLinksCount,resource:{attributes:e.resource.attributes,asyncAttributesPending:e.resource.asyncAttributesPending}}},t.prototype.getDefaultUrl=function(e){return e.url||a.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL},t}(o.OTLPExporterBase)},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/SessionRecorderIdGenerator.js":(e,t,n)=>{"use strict";n.d(t,{SessionRecorderIdGenerator:()=>d});var r,o=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Sampler.js"),s=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/platform/browser/RandomIdGenerator.js"),i=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/type/index.js"),a=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/SessionRecorderTraceIdRatioBasedSampler.js"),l=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/constants.base.js"),u=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/index.js"),c=(r=function(e,t){return r=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])},r(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(t){var n=(void 0===t?{}:t).autoDocTracesRatio,r=void 0===n?0:n,o=e.call(this)||this;return o.docSpanSampler=new a.SessionRecorderTraceIdRatioBasedSampler(r),o.generateLongId=(0,u.getIdGenerator)(16),o.sessionShortId="",o.sessionType=i.SessionType.PLAIN,o.generateTraceId=function(){var e=o.generateLongId();if(o.sessionShortId){var t="";if(o.sessionType===i.SessionType.CONTINUOUS)t=l.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX;else t=l.MULTIPLAYER_TRACE_DEBUG_PREFIX;var n="".concat(t).concat(o.sessionShortId);return"".concat(n).concat(e.substring(n.length,e.length))}return o._isDocTrace(e)?"".concat(l.MULTIPLAYER_TRACE_DOC_PREFIX).concat(e.slice(l.MULTIPLAYER_TRACE_DOC_PREFIX.length,e.length)):e},o}return c(t,e),t.prototype.setSessionId=function(e,t){void 0===t&&(t=i.SessionType.PLAIN),this.sessionShortId=e,this.sessionType=t},t.prototype._isDocTrace=function(e){return this.docSpanSampler.shouldSample(void 0,e).decision===o.SamplingDecision.RECORD_AND_SAMPLED},t}(s.RandomIdGenerator)},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/SessionRecorderJsonTraceSerializer.js":(e,t,n)=>{"use strict";n.d(t,{SessionRecorderJsonTraceSerializer:()=>s});var r=n("../../node_modules/@opentelemetry/otlp-transformer/build/esm/trace/index.js"),o=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/constants.base.js"),s={serializeRequest:function(e){var t=e.filter(function(e){var t=e.spanContext().traceId;return!!(t.startsWith(o.MULTIPLAYER_TRACE_DEBUG_PREFIX)||t.startsWith(o.MULTIPLAYER_TRACE_DOC_PREFIX)||t.startsWith(o.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX))}),n=(0,r.createExportTraceServiceRequest)(t,{useHex:!0,useLongBits:!1});return(new TextEncoder).encode(JSON.stringify(n))},deserializeResponse:function(e){var t=new TextDecoder;return JSON.parse(t.decode(e))}}},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/SessionRecorderTraceIdRatioBasedSampler.js":(e,t,n)=>{"use strict";n.d(t,{SessionRecorderTraceIdRatioBasedSampler:()=>i});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"),o=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Sampler.js"),s=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/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(this._ratio>0&&t.startsWith(s.MULTIPLAYER_TRACE_DEBUG_PREFIX))return{decision:o.SamplingDecision.RECORD_AND_SAMPLED};var n=o.SamplingDecision.NOT_RECORD;return(0,r.isValidTraceId)(t)&&this._accumulate(t)<this._upperBound&&(n=o.SamplingDecision.RECORD_AND_SAMPLED),{decision:n}},e.prototype.toString=function(){return"MultiplayerTraceIdRatioBasedSampler{".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 r=8*n;t=(t^parseInt(e.slice(r,r+8),16))>>>0}return t},e}()},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/constants.base.js":(e,t,n)=>{"use strict";n.d(t,{ATTR_MULTIPLAYER_CLIENT_ID:()=>A,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE:()=>m,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON:()=>h,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE:()=>R,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING:()=>w,ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE:()=>O,ATTR_MULTIPLAYER_HTTP_REQUEST_BODY:()=>y,ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS:()=>b,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY:()=>E,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING:()=>T,ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS:()=>v,ATTR_MULTIPLAYER_INTEGRATION_ID:()=>g,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY:()=>L,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING:()=>N,ATTR_MULTIPLAYER_PLATFORM_ID:()=>p,ATTR_MULTIPLAYER_PLATFORM_NAME:()=>f,ATTR_MULTIPLAYER_PROJECT_ID:()=>d,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE:()=>S,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING:()=>C,ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE:()=>I,ATTR_MULTIPLAYER_SESSION_ID:()=>_,ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION:()=>P,ATTR_MULTIPLAYER_WORKSPACE_ID:()=>c,MASK_PLACEHOLDER:()=>x,MULTIPLAYER_ATTRIBUTE_PREFIX:()=>u,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL:()=>l,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL:()=>a,MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX:()=>s,MULTIPLAYER_TRACE_DEBUG_PREFIX:()=>o,MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH:()=>i,MULTIPLAYER_TRACE_DOC_PREFIX:()=>r});var r="d0cd0c",o="debdeb",s="cdbcdb",i=16,a="https://api.multiplayer.app/v1/traces",l="https://api.multiplayer.app/v1/logs",u="multiplayer.",c="multiplayer.workspace.id",d="multiplayer.project.id",p="multiplayer.platform.id",m="multiplayer.session.auto-save",h="multiplayer.session.auto-save.reason",f="multiplayer.platform.name",A="multiplayer.client.id",g="multiplayer.integration.id",_="multiplayer.session.id",y="multiplayer.http.request.body",E="multiplayer.http.response.body",b="multiplayer.http.request.headers",v="multiplayer.http.response.headers",T="multiplayer.http.response.body.encoding",S="multiplayer.rpc.request.message",C="multiplayer.rpc.request.message.encoding",I="multiplayer.rpc.response.message",R="multiplayer.rpc.grpc.request.message",w="multiplayer.rpc.request.message.encoding",O="multiplayer.rpc.grpc.response.message",L="multiplayer.messaging.message.body",N="multiplayer.messaging.message.body.encoding",P="multiplayer.session-recorder.version",x="***MASKED***"},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/constants.browser.js":(e,t,n)=>{"use strict";n.d(t,{ATTR_MULTIPLAYER_CLIENT_ID:()=>r.ATTR_MULTIPLAYER_CLIENT_ID,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE:()=>r.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON:()=>r.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE:()=>r.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING:()=>r.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING,ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE:()=>r.ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE,ATTR_MULTIPLAYER_HTTP_REQUEST_BODY:()=>r.ATTR_MULTIPLAYER_HTTP_REQUEST_BODY,ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS:()=>r.ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY:()=>r.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING:()=>r.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING,ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS:()=>r.ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS,ATTR_MULTIPLAYER_INTEGRATION_ID:()=>r.ATTR_MULTIPLAYER_INTEGRATION_ID,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY:()=>r.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING:()=>r.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING,ATTR_MULTIPLAYER_PLATFORM_ID:()=>r.ATTR_MULTIPLAYER_PLATFORM_ID,ATTR_MULTIPLAYER_PLATFORM_NAME:()=>r.ATTR_MULTIPLAYER_PLATFORM_NAME,ATTR_MULTIPLAYER_PROJECT_ID:()=>r.ATTR_MULTIPLAYER_PROJECT_ID,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE:()=>r.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING:()=>r.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING,ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE:()=>r.ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE,ATTR_MULTIPLAYER_SESSION_ID:()=>r.ATTR_MULTIPLAYER_SESSION_ID,ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION:()=>r.ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION,ATTR_MULTIPLAYER_WORKSPACE_ID:()=>r.ATTR_MULTIPLAYER_WORKSPACE_ID,MASK_PLACEHOLDER:()=>r.MASK_PLACEHOLDER,MULTIPLAYER_ATTRIBUTE_PREFIX:()=>r.MULTIPLAYER_ATTRIBUTE_PREFIX,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL:()=>r.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL:()=>r.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL,MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX:()=>r.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX,MULTIPLAYER_TRACE_DEBUG_PREFIX:()=>r.MULTIPLAYER_TRACE_DEBUG_PREFIX,MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH:()=>r.MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH,MULTIPLAYER_TRACE_DOC_PREFIX:()=>r.MULTIPLAYER_TRACE_DOC_PREFIX});var r=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/constants.base.js")},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/index-browser.js":(e,t,n)=>{"use strict";n.d(t,{ATTR_MULTIPLAYER_CLIENT_ID:()=>r.ATTR_MULTIPLAYER_CLIENT_ID,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE:()=>r.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON:()=>r.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE:()=>r.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING:()=>r.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING,ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE:()=>r.ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE,ATTR_MULTIPLAYER_HTTP_REQUEST_BODY:()=>r.ATTR_MULTIPLAYER_HTTP_REQUEST_BODY,ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS:()=>r.ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY:()=>r.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING:()=>r.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING,ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS:()=>r.ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS,ATTR_MULTIPLAYER_INTEGRATION_ID:()=>r.ATTR_MULTIPLAYER_INTEGRATION_ID,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY:()=>r.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING:()=>r.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING,ATTR_MULTIPLAYER_PLATFORM_ID:()=>r.ATTR_MULTIPLAYER_PLATFORM_ID,ATTR_MULTIPLAYER_PLATFORM_NAME:()=>r.ATTR_MULTIPLAYER_PLATFORM_NAME,ATTR_MULTIPLAYER_PROJECT_ID:()=>r.ATTR_MULTIPLAYER_PROJECT_ID,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE:()=>r.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING:()=>r.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING,ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE:()=>r.ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE,ATTR_MULTIPLAYER_SESSION_ID:()=>r.ATTR_MULTIPLAYER_SESSION_ID,ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION:()=>r.ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION,ATTR_MULTIPLAYER_WORKSPACE_ID:()=>r.ATTR_MULTIPLAYER_WORKSPACE_ID,MASK_PLACEHOLDER:()=>r.MASK_PLACEHOLDER,MULTIPLAYER_ATTRIBUTE_PREFIX:()=>r.MULTIPLAYER_ATTRIBUTE_PREFIX,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL:()=>r.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL:()=>r.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL,MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX:()=>r.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX,MULTIPLAYER_TRACE_DEBUG_PREFIX:()=>r.MULTIPLAYER_TRACE_DEBUG_PREFIX,MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH:()=>r.MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH,MULTIPLAYER_TRACE_DOC_PREFIX:()=>r.MULTIPLAYER_TRACE_DOC_PREFIX,SessionRecorderHttpTraceExporterBrowser:()=>o.SessionRecorderHttpTraceExporterBrowser,SessionRecorderIdGenerator:()=>s.SessionRecorderIdGenerator,SessionRecorderJsonTraceSerializer:()=>i.SessionRecorderJsonTraceSerializer,SessionRecorderSdk:()=>l,SessionRecorderTraceIdRatioBasedSampler:()=>a.SessionRecorderTraceIdRatioBasedSampler,SessionType:()=>u.SessionType});var r=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/constants.browser.js"),o=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/SessionRecorderHttpTraceExporterBrowser.js"),s=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/SessionRecorderIdGenerator.js"),i=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/SessionRecorderJsonTraceSerializer.js"),a=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/SessionRecorderTraceIdRatioBasedSampler.js"),l=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/index.js"),u=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/type/index.js")},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/capture-exception.js":(e,t,n)=>{"use strict";n.d(t,{captureException:()=>i});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),s=n("../../node_modules/@opentelemetry/api/build/esm/trace/status.js"),i=function(e){if(e){var t=r.trace.getSpan(o.context.active());t&&(t.recordException(e),t.setStatus({code:s.SpanStatusCode.ERROR,message:e.message}))}}},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/id-generator.js":(e,t,n)=>{"use strict";n.d(t,{getIdGenerator:()=>o});var r=Array(32),o=function(e){return function(){for(var 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/@multiplayer-app/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:()=>s.isGzip,mask:()=>r.default,saveContinuousSession:()=>u.saveContinuousSession,schemify:()=>o.default,sensitiveFields:()=>r.sensitiveFields,sensitiveHeaders:()=>r.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 r=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/mask.js"),o=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/schemify.js"),s=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/is-gzip.js"),i=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/id-generator.js"),a=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/capture-exception.js"),l=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/set-attribute.js"),u=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/save-continuous-deb-session.js")},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/is-gzip.js":(e,t,n)=>{"use strict";n.d(t,{isGzip:()=>r});var r=function(e){return!(!e||e.length<3)&&(31===e[0]&&139===e[1]&&8===e[2])}},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/mask.js":(e,t,n)=>{"use strict";n.d(t,{default:()=>l,sensitiveFields:()=>o,sensitiveHeaders:()=>s});var r=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/constants.base.js"),o=["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"],s=["set-cookie","cookie","authorization","proxyAuthorization"],i=function(e,t){void 0===t&&(t=0);var n=typeof e,o="object"===n,s=!1;if(Array.isArray(e)&&(s=!0),!(t>8&&(o||s))){if(s)return e.map(function(e){return i(e,t+1)},e);if(o){for(var a in e)e[a]=i(e[a],t+1);return e}return"string"===n?r.MASK_PLACEHOLDER:e}},a=function(e,t){var n=typeof e,o="object"===n,s=new Set(t);if(Array.isArray(e))return e.map(function(e){return a(e,t)},e);if(o){for(var i in e)s.has(i)?e[i]=r.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 r,o;try{r=JSON.parse(t)}catch(e){r=t}return"string"!=typeof(o=e.length?a(r,e):i(r))&&(o=JSON.stringify(o)),o}}},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/save-continuous-deb-session.js":(e,t,n)=>{"use strict";n.d(t,{saveContinuousSession:()=>i});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),s=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/constants.base.js"),i=function(e){var t=r.trace.getSpan(o.context.active());t&&(null==t||t.setAttribute(s.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE,!0),(null==e?void 0:e.length)&&(null==t||t.addEvent(s.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON,{reason:e})))}},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/schemify.js":(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var r=n("../../node_modules/to-json-schema/lib/index.js"),o=(null==r?void 0:n.n(r)())||r,s={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=s),!e)return"";var r;if("string"==typeof e)try{r=JSON.parse(e)}catch(t){return e}else{if("object"!=typeof e)return e;r=e}try{var i=o(r,n);return t?JSON.stringify(i):i}catch(e){return""}}},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/set-attribute.js":(e,t,n)=>{"use strict";n.d(t,{setAttribute:()=>a,setGrpcRequestMessage:()=>f,setGrpcResponseMessage:()=>A,setHttpRequestBody:()=>l,setHttpRequestHeaders:()=>u,setHttpResponseBody:()=>c,setHttpResponseHeaders:()=>d,setMessageBody:()=>p,setRpcRequestMessage:()=>m,setRpcResponseMessage:()=>h});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),s=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/constants.base.js"),i=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/mask.js"),a=function(e,t){var n=r.trace.getSpan(o.context.active());n&&n.setAttribute(e,t)},l=function(e,t){void 0===t&&(t={mask:!0});var n=r.trace.getSpan(o.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(s.ATTR_MULTIPLAYER_HTTP_REQUEST_BODY,e))},u=function(e,t){void 0===t&&(t={mask:!0});var n=r.trace.getSpan(o.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveHeaders)(e,n)),n.setAttribute(s.ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS,e))},c=function(e,t){void 0===t&&(t={mask:!0});var n=r.trace.getSpan(o.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(s.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY,e))},d=function(e,t){void 0===t&&(t={mask:!0});var n=r.trace.getSpan(o.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(s.ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS,e))},p=function(e,t){void 0===t&&(t={mask:!0});var n=r.trace.getSpan(o.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(s.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY,e))},m=function(e,t){void 0===t&&(t={mask:!0});var n=r.trace.getSpan(o.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(s.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE,e))},h=function(e,t){void 0===t&&(t={mask:!0});var n=r.trace.getSpan(o.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(s.ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE,e))},f=function(e,t){void 0===t&&(t={mask:!0});var n=r.trace.getSpan(o.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(s.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE,e))},A=function(e,t){void 0===t&&(t={mask:!0});var n=r.trace.getSpan(o.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(s.ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE,e))}},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/type/index.js":(e,t,n)=>{"use strict";n.d(t,{SessionType:()=>r.SessionType});var r=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/type/session-type.enum.js")},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/type/session-type.enum.js":(e,t,n)=>{"use strict";var r;n.d(t,{SessionType:()=>r}),function(e){e.CONTINUOUS="CONTINUOUS",e.PLAIN="MANUAL"}(r||(r={}))},"./node_modules/@opentelemetry/core/build/esm/internal/validators.js":(e,t,n)=>{"use strict";n.d(t,{validateKey:()=>a,validateValue:()=>l});var r="[_0-9a-z-*/]",o=new RegExp("^(?:"+("[a-z]"+r+"{0,255}")+"|"+("[a-z0-9]"+r+"{0,240}@[a-z]"+r+"{0,13}")+")$"),s=/^[ -~]{0,255}[!-~]$/,i=/,|=/;function a(e){return o.test(e)}function l(e){return s.test(e)&&!i.test(e)}},"./node_modules/@opentelemetry/core/build/esm/trace/TraceState.js":(e,t,n)=>{"use strict";n.d(t,{TraceState:()=>o});var r=n("./node_modules/@opentelemetry/core/build/esm/internal/validators.js"),o=function(){function e(e){this._internalState=new Map,e&&this._parse(e)}return e.prototype.set=function(e,t){var n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n},e.prototype.unset=function(e){var t=this._clone();return t._internalState.delete(e),t},e.prototype.get=function(e){return this._internalState.get(e)},e.prototype.serialize=function(){var e=this;return this._keys().reduce(function(t,n){return t.push(n+"="+e.get(n)),t},[]).join(",")},e.prototype._parse=function(e){e.length>512||(this._internalState=e.split(",").reverse().reduce(function(e,t){var n=t.trim(),o=n.indexOf("=");if(-1!==o){var s=n.slice(0,o),i=n.slice(o+1,t.length);(0,r.validateKey)(s)&&(0,r.validateValue)(i)&&e.set(s,i)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}()},"./node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js":(e,t,n)=>{"use strict";n.d(t,{W3CTraceContextPropagator:()=>d});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"),s=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"),l="traceparent",u="tracestate",c=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");var d=function(){function e(){}return e.prototype.inject=function(e,t,n){var a=r.trace.getSpanContext(e);if(a&&!(0,i.isTracingSuppressed)(e)&&(0,o.isSpanContextValid)(a)){var c="00-"+a.traceId+"-"+a.spanId+"-0"+Number(a.traceFlags||s.TraceFlags.NONE).toString(16);n.set(t,l,c),a.traceState&&n.set(t,u,a.traceState.serialize())}},e.prototype.extract=function(e,t,n){var o=n.get(t,l);if(!o)return e;var s=Array.isArray(o)?o[0]:o;if("string"!=typeof s)return e;var i=function(e){var t=c.exec(e);return t?"00"===t[1]&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}:null}(s);if(!i)return e;i.isRemote=!0;var d=n.get(t,u);if(d){var p=Array.isArray(d)?d.join(","):d;i.traceState=new a.TraceState("string"==typeof p?p:void 0)}return r.trace.setSpanContext(e,i)},e.prototype.fields=function(){return[l,u]},e}()},"./node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js":(e,t,n)=>{"use strict";n.d(t,{isTracingSuppressed:()=>o});var r=(0,n("../../node_modules/@opentelemetry/api/build/esm/context/context.js").createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function o(e){return!0===e.getValue(r)}},"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:()=>J,a:()=>Z,s:()=>q,u:()=>K,z:()=>X});var r=Uint8Array,o=Uint16Array,s=Uint32Array,i=new r([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 r([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 r([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),u=function(e,t){for(var n=new o(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new s(n[30]);for(r=1;r<30;++r)for(var a=n[r];a<n[r+1];++a)i[a]=a-n[r]<<5|r;return[n,i]},c=u(i,2),d=c[0],p=c[1];d[28]=258,p[258]=28;for(var m=u(a,0),h=m[0],f=m[1],A=new o(32768),g=0;g<32768;++g){var _=(43690&g)>>>1|(21845&g)<<1;_=(61680&(_=(52428&_)>>>2|(13107&_)<<2))>>>4|(3855&_)<<4,A[g]=((65280&_)>>>8|(255&_)<<8)>>>1}var y=function(e,t,n){for(var r=e.length,s=0,i=new o(t);s<r;++s)++i[e[s]-1];var a,l=new o(t);for(s=0;s<t;++s)l[s]=l[s-1]+i[s-1]<<1;if(n){a=new o(1<<t);var u=15-t;for(s=0;s<r;++s)if(e[s])for(var c=s<<4|e[s],d=t-e[s],p=l[e[s]-1]++<<d,m=p|(1<<d)-1;p<=m;++p)a[A[p]>>>u]=c}else for(a=new o(r),s=0;s<r;++s)a[s]=A[l[e[s]-1]++]>>>15-e[s];return a},E=new r(288);for(g=0;g<144;++g)E[g]=8;for(g=144;g<256;++g)E[g]=9;for(g=256;g<280;++g)E[g]=7;for(g=280;g<288;++g)E[g]=8;var b=new r(32);for(g=0;g<32;++g)b[g]=5;var v=y(E,9,0),T=y(E,9,1),S=y(b,5,0),C=y(b,5,1),I=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},R=function(e,t,n){var r=t/8|0;return(e[r]|e[r+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)},O=function(e){return(e/8|0)+(7&e&&1)},L=function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var i=new(e instanceof o?o:e instanceof s?s:r)(n-t);return i.set(e.subarray(t,n)),i},N=function(e,t,n){var o=e.length,s=!t||n,u=!n||n.i;n||(n={}),t||(t=new r(3*o));var c=function(e){var n=t.length;if(e>n){var o=new r(Math.max(2*n,e));o.set(t),t=o}},p=n.f||0,m=n.p||0,f=n.b||0,A=n.l,g=n.d,_=n.m,E=n.n,b=8*o;do{if(!A){n.f=p=R(e,m,1);var v=R(e,m+1,3);if(m+=3,!v){var S=e[(F=O(m)+4)-4]|e[F-3]<<8,N=F+S;if(N>o){if(u)throw"unexpected EOF";break}s&&c(f+S),t.set(e.subarray(F,N),f),n.b=f+=S,n.p=m=8*N;continue}if(1==v)A=T,g=C,_=9,E=5;else{if(2!=v)throw"invalid block type";var P=R(e,m,31)+257,x=R(e,m+10,15)+4,M=P+R(e,m+5,31)+1;m+=14;for(var k=new r(M),D=new r(19),B=0;B<x;++B)D[l[B]]=R(e,m+3*B,7);m+=3*x;var j=I(D),U=(1<<j)-1;if(!u&&m+M*(j+7)>b)break;var G=y(D,j,1);for(B=0;B<M;){var F,H=G[R(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+R(e,m,3),m+=2,Y=k[B-1]):17==F?(z=3+R(e,m,7),m+=3):18==F&&(z=11+R(e,m,127),m+=7);z--;)k[B++]=Y}}var W=k.subarray(0,P),V=k.subarray(P);_=I(W),E=I(V),A=y(W,_,1),g=y(V,E,1)}if(m>b)throw"unexpected EOF"}s&&c(f+131072);for(var X=(1<<_)-1,K=(1<<E)-1,Z=_+E+18;u||m+Z<b;){var q=(Y=A[w(e,m)&X])>>>4;if((m+=15&Y)>b)throw"unexpected EOF";if(!Y)throw"invalid length/literal";if(q<256)t[f++]=q;else{if(256==q){A=null;break}var J=q-254;if(q>264){var Q=i[B=q-257];J=R(e,m,(1<<Q)-1)+d[B],m+=Q}var $=g[w(e,m)&K],ee=$>>>4;if(!$)throw"invalid distance";m+=15&$;V=h[ee];if(ee>3){Q=a[ee];V+=w(e,m)&(1<<Q)-1,m+=Q}if(m>b)throw"unexpected EOF";s&&c(f+131072);for(var te=f+J;f<te;f+=4)t[f]=t[f-V],t[f+1]=t[f+1-V],t[f+2]=t[f+2-V],t[f+3]=t[f+3-V];f=te}}n.l=A,n.p=m,n.b=f,A&&(p=1,n.m=_,n.d=g,n.n=E)}while(!p);return f==t.length?t:L(t,0,f)},P=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8},x=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},M=function(e,t){for(var n=[],s=0;s<e.length;++s)e[s]&&n.push({s,f:e[s]});var i=n.length,a=n.slice();if(!i)return[new r(0),0];if(1==i){var l=new r(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 u=n[0],c=n[1],d=0,p=1,m=2;for(n[0]={s:-1,f:u.f+c.f,l:u,r:c};p!=i-1;)u=n[n[d].f<n[m].f?d++:m++],c=n[d!=p&&n[d].f<n[m].f?d++:m++],n[p++]={s:-1,f:u.f+c.f,l:u,r:c};var h=a[0].s;for(s=1;s<i;++s)a[s].s>h&&(h=a[s].s);var f=new o(h+1),A=k(n[p-1],f,0);if(A>t){s=0;var g=0,_=A-t,y=1<<_;for(a.sort(function(e,t){return f[t.s]-f[e.s]||e.f-t.f});s<i;++s){var E=a[s].s;if(!(f[E]>t))break;g+=y-(1<<A-f[E]),f[E]=t}for(g>>>=_;g>0;){var b=a[s].s;f[b]<t?g-=1<<t-f[b]++-1:++s}for(;s>=0&&g;--s){var v=a[s].s;f[v]==t&&(--f[v],++g)}A=t}return[new r(f),A]},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 o(++t),r=0,s=e[0],i=1,a=function(e){n[r++]=e},l=1;l<=t;++l)if(e[l]==s&&l!=t)++i;else{if(!s&&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(s),--i;i>6;i-=6)a(8304);i>2&&(a(i-3<<5|8208),i=0)}for(;i--;)a(s);i=1,s=e[l]}return[n.subarray(0,r),t]},B=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},j=function(e,t,n){var r=n.length,o=O(t+2);e[o]=255&r,e[o+1]=r>>>8,e[o+2]=255^e[o],e[o+3]=255^e[o+1];for(var s=0;s<r;++s)e[o+s+4]=n[s];return 8*(o+4+r)},U=function(e,t,n,r,s,u,c,d,p,m,h){P(t,h++,n),++s[256];for(var f=M(s,15),A=f[0],g=f[1],_=M(u,15),T=_[0],C=_[1],I=D(A),R=I[0],w=I[1],O=D(T),L=O[0],N=O[1],k=new o(19),U=0;U<R.length;++U)k[31&R[U]]++;for(U=0;U<L.length;++U)k[31&L[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,K=m+5<<3,Z=B(s,E)+B(u,b)+c,q=B(s,A)+B(u,T)+c+14+3*Y+B(k,F)+(2*k[16]+3*k[17]+7*k[18]);if(K<=Z&&K<=q)return j(t,h,e.subarray(p,p+m));if(P(t,h,1+(q<Z)),h+=2,q<Z){z=y(A,g,0),W=A,V=y(T,C,0),X=T;var J=y(F,H,0);P(t,h,w-257),P(t,h+5,N-1),P(t,h+10,Y-4),h+=14;for(U=0;U<Y;++U)P(t,h+3*U,F[l[U]]);h+=3*Y;for(var Q=[R,L],$=0;$<2;++$){var ee=Q[$];for(U=0;U<ee.length;++U){var te=31&ee[U];P(t,h,J[te]),h+=F[te],te>15&&(P(t,h,ee[U]>>>5&127),h+=ee[U]>>>12)}}}else z=v,W=E,V=S,X=b;for(U=0;U<d;++U)if(r[U]>255){te=r[U]>>>18&31;x(t,h,z[te+257]),h+=W[te+257],te>7&&(P(t,h,r[U]>>>23&31),h+=i[te]);var ne=31&r[U];x(t,h,V[ne]),h+=X[ne],ne>3&&(x(t,h,r[U]>>>5&8191),h+=a[ne])}else x(t,h,z[r[U]]),h+=W[r[U]];return x(t,h,z[256]),h+W[256]},G=new s([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new r(0),H=function(){var e=1,t=0;return{p:function(n){for(var r=e,o=t,s=n.length,i=0;i!=s;){for(var a=Math.min(i+5552,s);i<a;++i)o+=r+=n[i];r%=65521,o%=65521}e=r,t=o},d:function(){return(e>>>8<<16|(255&t)<<8|t>>>8)+2*((255&e)<<23)}}},Y=function(e,t,n,l,u){return function(e,t,n,l,u,c){var d=e.length,m=new r(l+d+5*(1+Math.floor(d/7e3))+u),h=m.subarray(l,m.length-u),A=0;if(!t||d<8)for(var g=0;g<=d;g+=65535){var _=g+65535;_<d?A=j(h,A,e.subarray(g,_)):(h[g]=c,A=j(h,A,e.subarray(g,d)))}else{for(var y=G[t-1],E=y>>>13,b=8191&y,v=(1<<n)-1,T=new o(32768),S=new o(v+1),C=Math.ceil(n/3),I=2*C,R=function(t){return(e[t]^e[t+1]<<C^e[t+2]<<I)&v},w=new s(25e3),N=new o(288),P=new o(32),x=0,M=0,k=(g=0,0),D=0,B=0;g<d;++g){var H=R(g),Y=32767&g,z=S[H];if(T[Y]=z,S[H]=Y,D<=g){var W=d-g;if((x>7e3||k>24576)&&W>423){A=U(e,h,0,w,N,P,M,k,B,g-B,A),k=x=M=0,B=g;for(var V=0;V<286;++V)N[V]=0;for(V=0;V<30;++V)P[V]=0}var X=2,K=0,Z=b,q=Y-z&32767;if(W>2&&H==R(g-q))for(var J=Math.min(E,W)-1,Q=Math.min(32767,g),$=Math.min(258,W);q<=Q&&--Z&&Y!=z;){if(e[g+X]==e[g+X-q]){for(var ee=0;ee<$&&e[g+ee]==e[g+ee-q];++ee);if(ee>X){if(X=ee,K=q,ee>J)break;var te=Math.min(q,ee-2),ne=0;for(V=0;V<te;++V){var re=g-q+V+32768&32767,oe=re-T[re]+32768&32767;oe>ne&&(ne=oe,z=re)}}}q+=(Y=z)-(z=T[Y])+32768&32767}if(K){w[k++]=268435456|p[X]<<18|f[K];var se=31&p[X],ie=31&f[K];M+=i[se]+a[ie],++N[257+se],++P[ie],D=g+X,++x}else w[k++]=e[g],++N[e[g]]}}A=U(e,h,c,w,N,P,M,k,B,g-B,A),c||(A=j(h,A,F))}return L(m,0,l+O(A)+u)}(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,!u)},z=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},W=function(e,t){var n=t.level,r=0==n?0:n<6?1:9==n?3:2;e[0]=120,e[1]=r<<6|(r?32-2*r: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 r=Y(e,t,2,4);return W(r,t),z(r,r.length-4,n.d()),r}function K(e,t){return N((V(e),e.subarray(2,-4)),t)}function Z(e,t){var n=e.length;if(!t&&"undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var o=new r(e.length+(e.length>>>1)),s=0,i=function(e){o[s++]=e},a=0;a<n;++a){if(s+5>o.length){var l=new r(s+8+(n-a<<1));l.set(o),o=l}var u=e.charCodeAt(a);u<128||t?i(u):u<2048?(i(192|u>>>6),i(128|63&u)):u>55295&&u<57344?(i(240|(u=65536+(1047552&u)|1023&e.charCodeAt(++a))>>>18),i(128|u>>>12&63),i(128|u>>>6&63),i(128|63&u)):(i(224|u>>>12),i(128|u>>>6&63),i(128|63&u))}return L(o,0,s)}function q(e,t){var n="";if(!t&&"undefined"!=typeof TextDecoder)return(new TextDecoder).decode(e);for(var r=0;r<e.length;){var o=e[r++];o<128||t?n+=String.fromCharCode(o):o<224?n+=String.fromCharCode((31&o)<<6|63&e[r++]):o<240?n+=String.fromCharCode((15&o)<<12|(63&e[r++])<<6|63&e[r++]):(o=((15&o)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536,n+=String.fromCharCode(55296|o>>10,56320|1023&o))}return n}const J="v1"},"../../node_modules/@rrweb/packer/dist/pack.js":(e,t,n)=>{"use strict";n.d(t,{pack:()=>o});var r=n("../../node_modules/@rrweb/packer/dist/base-ZCOD62p-.js");const o=e=>{const t={...e,v:r.M};return(0,r.s)((0,r.z)((0,r.a)(JSON.stringify(t))),!0)}},"../../node_modules/@rrweb/packer/dist/packer.js":(e,t,n)=>{"use strict";n.d(t,{pack:()=>r.pack});var r=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 r,o=Object.defineProperty,s=(e,t,n)=>(((e,t,n)=>{t in e?o(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,u=(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 c{constructor(){u(this,"idNodeMap",new Map),u(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 r=e.classList[n];if(t.test(r))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 f(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 A(e){var t,n;let r=null;return(null==(n=null==(t=e.getRootNode)?void 0:t.call(e))?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(r=e.getRootNode().host),r}function g(e){let t,n=e;for(;t=A(n);)n=t;return n}function _(e){const t=e.ownerDocument;if(!t)return!1;const n=g(e);return t.contains(n)}const y=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:f,getBaseDimension:function e(t,n){var r,o;const s=null==(o=null==(r=t.ownerDocument)?void 0:r.defaultView)?void 0:o.frameElement;if(!s||s===n)return{x:0,y:0,relativeScale:1,absoluteScale:1};const i=s.getBoundingClientRect(),a=e(s,n),l=i.height/s.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 r=t[n[0]];return 1===n.length?r:e(r.cssRules[n[1]].cssRules,n.slice(2))},getPositionsAndIndex:function(e){const t=[...e],n=t.pop();return{positions:t,index:n}},getRootShadowHost:g,getShadowHost:A,getWindowHeight:function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight},getWindowScroll:function(e){var t,n,r,o,s,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==(r=null==a?void 0:a.body)?void 0:r.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==a?void 0:a.documentElement.scrollTop)||(null==(s=null==(o=null==a?void 0:a.body)?void 0:o.parentElement)?void 0:s.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,r,o,s=window){const i=s.Object.getOwnPropertyDescriptor(t,n);return s.Object.defineProperty(t,n,o?r:{set(e){setTimeout(()=>{r.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 r=n.getId(t);return!n.has(r)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,n))},isBlocked:function(e,t,n,r){if(!e)return!1;const o=f(e);if(!o)return!1;try{if("string"==typeof t){if(o.classList.contains(t))return!0;if(r&&null!==o.closest("."+t))return!0}else if(d(o,t,r))return!0}catch(e){}if(n){if(o.matches(n))return!0;if(r&&null!==o.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 r=t.children.length-1;r>=0;r--)e(t.children[r],n)},legacy_isTouchEvent:function(e){return Boolean(e.changedTouches)},get nowTimestamp(){return h},on:function(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)},patch:function(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}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 r={value:e,parent:n,children:[]};return t[e.node.id]=r,r},r=[];for(const o of e){const{nextId:e,parentId:s}=o;if(e&&e in t){const s=t[e];if(s.parent){const e=s.parent.children.indexOf(s);s.parent.children.splice(e,0,n(o,s.parent))}else{const e=r.indexOf(s);r.splice(e,0,n(o,null))}continue}if(s in t){const e=t[s];e.children.push(n(o,e));continue}r.push(n(o,null))}return r},shadowHostInDom:_,throttle:function(e,t,n={}){let r=null,o=0;return function(...s){const i=Date.now();o||!1!==n.leading||(o=i);const a=t-(i-o),l=this;a<=0||a>t?(r&&(clearTimeout(r),r=null),o=i,e.apply(l,s)):r||!1===n.trailing||(r=setTimeout(()=>{o=!1===n.leading?0:Date.now(),r=null,e.apply(l,s)},a))}},uniqueTextMutations:function(e){const t=new Set,n=[];for(let r=e.length;r--;){const o=e[r];t.has(o.id)||(n.push(o),t.add(o.id))}return n}},Symbol.toStringTag,{value:"Module"}));for(var E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b="undefined"==typeof Uint8Array?[]:new Uint8Array(256),v=0;v<64;v++)b[E.charCodeAt(v)]=v;var T,S,C;"undefined"!=typeof window&&window.Blob&&new Blob([(T="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpCiAgICAgICAgcmV0dXJuIHRyYW5zcGFyZW50QmxvYk1hcC5nZXQoaWQpOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIHRyYW5zcGFyZW50QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICAgIHJldHVybiBiYXNlNjQ7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gIiI7CiAgICB9CiAgfQogIGNvbnN0IHdvcmtlciA9IHNlbGY7CiAgd29ya2VyLm9ubWVzc2FnZSA9IGFzeW5jIGZ1bmN0aW9uKGUpIHsKICAgIGlmICgiT2Zmc2NyZWVuQ2FudmFzIiBpbiBnbG9iYWxUaGlzKSB7CiAgICAgIGNvbnN0IHsgaWQsIGJpdG1hcCwgd2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMgfSA9IGUuZGF0YTsKICAgICAgY29uc3QgdHJhbnNwYXJlbnRCYXNlNjQgPSBnZXRUcmFuc3BhcmVudEJsb2JGb3IoCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0LAogICAgICAgIGRhdGFVUkxPcHRpb25zCiAgICAgICk7CiAgICAgIGNvbnN0IG9mZnNjcmVlbiA9IG5ldyBPZmZzY3JlZW5DYW52YXMod2lkdGgsIGhlaWdodCk7CiAgICAgIGNvbnN0IGN0eCA9IG9mZnNjcmVlbi5nZXRDb250ZXh0KCIyZCIpOwogICAgICBjdHguZHJhd0ltYWdlKGJpdG1hcCwgMCwgMCk7CiAgICAgIGJpdG1hcC5jbG9zZSgpOwogICAgICBjb25zdCBibG9iID0gYXdhaXQgb2Zmc2NyZWVuLmNvbnZlcnRUb0Jsb2IoZGF0YVVSTE9wdGlvbnMpOwogICAgICBjb25zdCB0eXBlID0gYmxvYi50eXBlOwogICAgICBjb25zdCBhcnJheUJ1ZmZlciA9IGF3YWl0IGJsb2IuYXJyYXlCdWZmZXIoKTsKICAgICAgY29uc3QgYmFzZTY0ID0gZW5jb2RlKGFycmF5QnVmZmVyKTsKICAgICAgaWYgKCFsYXN0QmxvYk1hcC5oYXMoaWQpICYmIGF3YWl0IHRyYW5zcGFyZW50QmFzZTY0ID09PSBiYXNlNjQpIHsKICAgICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkIH0pOwogICAgICB9CiAgICAgIGlmIChsYXN0QmxvYk1hcC5nZXQoaWQpID09PSBiYXNlNjQpCiAgICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkIH0pOwogICAgICB3b3JrZXIucG9zdE1lc3NhZ2UoewogICAgICAgIGlkLAogICAgICAgIHR5cGUsCiAgICAgICAgYmFzZTY0LAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodAogICAgICB9KTsKICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkOiBlLmRhdGEuaWQgfSk7CiAgICB9CiAgfTsKfSkoKTsKLy8jIHNvdXJjZU1hcHBpbmdVUkw9aW1hZ2UtYml0bWFwLWRhdGEtdXJsLXdvcmtlci1CWjFyN1JKRC5qcy5tYXAK",Uint8Array.from(atob(T),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==(r=e.contentWindow)?void 0:r.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}new c,(C=S||(S={}))[C.NotStarted=0]="NotStarted",C[C.Running=1]="Running",C[C.Stopped=2]="Stopped";class I{constructor(e){s(this,"fileName"),s(this,"functionName"),s(this,"lineNumber"),s(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 R=/(^|@)\S+:\d+/,w=/^\s*at .*(\S+:\d+|\(native\))/m,O=/^(eval@)?(\[native code])?$/,L={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 r=t.split(/\s+/).slice(1),o=this.extractLocation(n?n[1]:r.pop()),s=r.join(" ")||void 0,i=["eval","<anonymous>"].indexOf(o[0])>-1?void 0:o[0];return new I({functionName:s,fileName:i,lineNumber:o[1],columnNumber:o[2]})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(e){return!e.match(O)},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 I({functionName:e});{const t=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=e.match(t),r=n&&n[1]?n[1]:void 0,o=this.extractLocation(e.replace(t,""));return new I({functionName:r,fileName:o[0],lineNumber:o[1],columnNumber:o[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"),r=[];for(let e=2,o=n.length;e<o;e+=2){const o=t.exec(n[e]);o&&r.push(new I({fileName:o[2],lineNumber:parseFloat(o[1])}))}return r},parseOpera10:function(e){const t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,n=e.stacktrace.split("\n"),r=[];for(let e=0,o=n.length;e<o;e+=2){const o=t.exec(n[e]);o&&r.push(new I({functionName:o[3]||void 0,fileName:o[2],lineNumber:parseFloat(o[1])}))}return r},parseOpera11:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(R)&&!e.match(/^Error created at/)},this).map(function(e){const t=e.split("@"),n=this.extractLocation(t.pop()),r=(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new I({functionName:r,fileName:n[0],lineNumber:n[1],columnNumber:n[2]})},this)}};function N(e){if(!e||!e.outerHTML)return"";let t="";for(;e.parentElement;){let n=e.localName;if(!n)break;n=n.toLowerCase();const r=e.parentElement,o=[];if(r.children&&r.children.length>0)for(let e=0;e<r.children.length;e++){const t=r.children[e];t.localName&&t.localName.toLowerCase&&t.localName.toLowerCase()===n&&o.push(t)}o.length>1&&(n+=`:eq(${o.indexOf(e)})`),t=n+(t?">"+t:""),e=r}return t}function P(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 r of n)if(P(e[r])&&x(e[r],t-1))return!0;return!1}function M(e,t){const n={numOfKeysLimit:50,depthOfLimit:4};Object.assign(n,t);const r=[],o=[];return JSON.stringify(e,function(e,t){if(r.length>0){const n=r.indexOf(this);~n?r.splice(n+1):r.push(this),~n?o.splice(n,1/0,e):o.push(e),~r.indexOf(t)&&(t=r[0]===t?"[Circular ~]":"[Circular ~."+o.slice(0,r.indexOf(t)).join(".")+"]")}else r.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(function(e){if(P(e)&&Object.keys(e).length>n.numOfKeysLimit)return!0;if("function"==typeof e)return!0;if(P(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 r=t[n];Array.isArray(r)?e[n]=N(r.length?r[0]:null):e[n]=r}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 r=n?Object.assign({},k,n):k,o=r.logger;if(!o)return()=>{};let s;s="string"==typeof o?t[o]:o;let i=0,a=!1;const l=[];if(r.level.includes("error")){const n=t=>{const n=t.message,o=t.error,s=L.parse(o).map(e=>e.toString()),i=[M(n,r.stringifyOptions)];e({level:"error",trace:s,payload:i})};t.addEventListener("error",n),l.push(()=>{t.removeEventListener("error",n)});const o=t=>{let n,o;t.reason instanceof Error?(n=t.reason,o=[M(`Uncaught (in promise) ${n.name}: ${n.message}`,r.stringifyOptions)]):(n=new Error,o=[M("Uncaught (in promise)",r.stringifyOptions),M(t.reason,r.stringifyOptions)]);const s=L.parse(n).map(e=>e.toString());e({level:"error",trace:s,payload:o})};t.addEventListener("unhandledrejection",o),l.push(()=>{t.removeEventListener("unhandledrejection",o)})}for(const e of r.level)l.push(u(s,e));return()=>{l.forEach(e=>e())};function u(t,n){return t[n]?y.patch(t,n,t=>(...o)=>{if(t.apply(this,o),!a){a=!0;try{const t=L.parse(new Error).map(e=>e.toString()).splice(1),s=o.map(e=>M(e,r.stringifyOptions));i++,i<r.lengthThreshold?e({level:n,trace:t,payload:s}):i===r.lengthThreshold&&e({level:"warn",trace:[],payload:[M("The number of log records reached the threshold.")]})}catch(e){t("rrweb logger error:",e,...o)}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 r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}n.d(t,{Emitter:()=>r}),r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},r.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},r.prototype.emitReserved=r.prototype.emit,r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},r.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:r,setPrototypeOf:o,isFrozen:s,getPrototypeOf:i,getOwnPropertyDescriptor:a}=Object;let{freeze:l,seal:u,create:c}=Object,{apply:d,construct:p}="undefined"!=typeof Reflect&&Reflect;l||(l=function(e){return e}),u||(u=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),f=w(Array.prototype.pop),A=w(Array.prototype.push),g=w(Array.prototype.splice),_=w(String.prototype.toLowerCase),y=w(String.prototype.toString),E=w(String.prototype.match),b=w(String.prototype.replace),v=w(String.prototype.indexOf),T=w(String.prototype.trim),S=w(Object.prototype.hasOwnProperty),C=w(RegExp.prototype.test),I=(R=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return p(R,t)});var R;function w(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return d(e,t,r)}}function O(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_;o&&o(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(s(t)||(t[r]=e),o=e)}e[o]=!0}return e}function L(e){for(let t=0;t<e.length;t++){S(e,t)||(e[t]=null)}return e}function N(e){const t=c(null);for(const[n,o]of r(e)){S(e,n)&&(Array.isArray(o)?t[n]=L(o):o&&"object"==typeof o&&o.constructor===Object?t[n]=N(o):t[n]=o)}return t}function P(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=u(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=u(/<%[\w\W]*|[\w\W]*%>/gm),V=u(/\$\{[\w\W]*/gm),X=u(/^data-[\-\w.\u00B7-\uFFFF]+$/),K=u(/^aria-[\-\w]+$/),Z=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=u(/^(?:\w+script|data):/i),J=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=u(/^html$/i),$=u(/^[a-z][.\w]*(-[.\w]+)+$/i);var ee=Object.freeze({__proto__:null,ARIA_ATTR:K,ATTR_WHITESPACE:J,CUSTOM_ELEMENT:$,DATA_ATTR:X,DOCTYPE_NAME:Q,ERB_EXPR:W,IS_ALLOWED_URI:Z,IS_SCRIPT_OR_DATA:q,MUSTACHE_EXPR:z,TMPLIT_EXPR:V});const te=1,ne=3,re=7,oe=8,se=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!==se||!t.Element)return n.isSupported=!1,n;let{document:o}=t;const s=o,i=s.currentScript,{DocumentFragment:a,HTMLTemplateElement:u,Node:d,Element:p,NodeFilter:R,NamedNodeMap:w=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:L,DOMParser:z,trustedTypes:W}=t,V=p.prototype,X=P(V,"cloneNode"),K=P(V,"remove"),q=P(V,"nextSibling"),J=P(V,"childNodes"),$=P(V,"parentNode");if("function"==typeof u){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let ae,le="";const{implementation:ue,createNodeIterator:ce,createDocumentFragment:de,getElementsByTagName:pe}=o,{importNode:me}=s;let he={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof r&&"function"==typeof $&&ue&&void 0!==ue.createHTMLDocument;const{MUSTACHE_EXPR:fe,ERB_EXPR:Ae,TMPLIT_EXPR:ge,DATA_ATTR:_e,ARIA_ATTR:ye,IS_SCRIPT_OR_DATA:Ee,ATTR_WHITESPACE:be,CUSTOM_ELEMENT:ve}=ee;let{IS_ALLOWED_URI:Te}=ee,Se=null;const Ce=O({},[...x,...M,...k,...B,...U]);let Ie=null;const Re=O({},[...G,...F,...H,...Y]);let we=Object.seal(c(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}})),Oe=null,Le=null,Ne=!0,Pe=!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={},Ke=null;const Ze=O({},["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 qe=null;const Je=O({},["audio","video","img","source","image","track"]);let Qe=null;const $e=O({},["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 rt=nt,ot=!1,st=null;const it=O({},[et,tt,nt],y);let at=O({},["mi","mo","mn","ms","mtext"]),lt=O({},["annotation-xml"]);const ut=O({},["title","style","font","a","script"]);let ct=null;const dt=["application/xhtml+xml","text/html"];let pt=null,mt=null;const ht=o.createElement("form"),ft=function(e){return e instanceof RegExp||e instanceof Function},At=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!mt||mt!==e){if(e&&"object"==typeof e||(e={}),e=N(e),ct=-1===dt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,pt="application/xhtml+xml"===ct?y:_,Se=S(e,"ALLOWED_TAGS")?O({},e.ALLOWED_TAGS,pt):Ce,Ie=S(e,"ALLOWED_ATTR")?O({},e.ALLOWED_ATTR,pt):Re,st=S(e,"ALLOWED_NAMESPACES")?O({},e.ALLOWED_NAMESPACES,y):it,Qe=S(e,"ADD_URI_SAFE_ATTR")?O(N($e),e.ADD_URI_SAFE_ATTR,pt):$e,qe=S(e,"ADD_DATA_URI_TAGS")?O(N(Je),e.ADD_DATA_URI_TAGS,pt):Je,Ke=S(e,"FORBID_CONTENTS")?O({},e.FORBID_CONTENTS,pt):Ze,Oe=S(e,"FORBID_TAGS")?O({},e.FORBID_TAGS,pt):{},Le=S(e,"FORBID_ATTR")?O({},e.FORBID_ATTR,pt):{},Xe=!!S(e,"USE_PROFILES")&&e.USE_PROFILES,Ne=!1!==e.ALLOW_ARIA_ATTR,Pe=!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,Te=e.ALLOWED_URI_REGEXP||Z,rt=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&&ft(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(we.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ft(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&&(Pe=!1),Fe&&(Ge=!0),Xe&&(Se=O({},U),Ie=[],!0===Xe.html&&(O(Se,x),O(Ie,G)),!0===Xe.svg&&(O(Se,M),O(Ie,F),O(Ie,Y)),!0===Xe.svgFilters&&(O(Se,k),O(Ie,F),O(Ie,Y)),!0===Xe.mathMl&&(O(Se,B),O(Ie,H),O(Ie,Y))),e.ADD_TAGS&&(Se===Ce&&(Se=N(Se)),O(Se,e.ADD_TAGS,pt)),e.ADD_ATTR&&(Ie===Re&&(Ie=N(Ie)),O(Ie,e.ADD_ATTR,pt)),e.ADD_URI_SAFE_ATTR&&O(Qe,e.ADD_URI_SAFE_ATTR,pt),e.FORBID_CONTENTS&&(Ke===Ze&&(Ke=N(Ke)),O(Ke,e.FORBID_CONTENTS,pt)),We&&(Se["#text"]=!0),Be&&O(Se,["html","head","body"]),Se.table&&(O(Se,["tbody"]),delete Oe.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw I('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw I('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 r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(W,i)),null!==ae&&"string"==typeof le&&(le=ae.createHTML(""));l&&l(e),mt=e}},gt=O({},[...M,...k,...D]),_t=O({},[...B,...j]),yt=function(e){A(n.removed,{element:e});try{$(e).removeChild(e)}catch(t){K(e)}},Et=function(e,t){try{A(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){A(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Ge||Fe)try{yt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},bt=function(e){let t=null,n=null;if(Ue)e="<remove></remove>"+e;else{const t=E(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ct&&rt===nt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=ae?ae.createHTML(e):e;if(rt===nt)try{t=(new z).parseFromString(r,ct)}catch(e){}if(!t||!t.documentElement){t=ue.createDocument(rt,"template",null);try{t.documentElement.innerHTML=ot?le:r}catch(e){}}const s=t.body||t.documentElement;return e&&n&&s.insertBefore(o.createTextNode(n),s.childNodes[0]||null),rt===nt?pe.call(t,Be?"html":"body")[0]:Be?t.documentElement:s},vt=function(e){return ce.call(e.ownerDocument||e,e,R.SHOW_ELEMENT|R.SHOW_COMMENT|R.SHOW_TEXT|R.SHOW_PROCESSING_INSTRUCTION|R.SHOW_CDATA_SECTION,null)},Tt=function(e){return e instanceof L&&("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)},St=function(e){return"function"==typeof d&&e instanceof d};function Ct(e,t,r){m(e,e=>{e.call(n,t,r,mt)})}const It=function(e){let t=null;if(Ct(he.beforeSanitizeElements,e,null),Tt(e))return yt(e),!0;const r=pt(e.nodeName);if(Ct(he.uponSanitizeElement,e,{tagName:r,allowedTags:Se}),e.hasChildNodes()&&!St(e.firstElementChild)&&C(/<[/\w!]/g,e.innerHTML)&&C(/<[/\w!]/g,e.textContent))return yt(e),!0;if(e.nodeType===re)return yt(e),!0;if(De&&e.nodeType===oe&&C(/<[/\w]/g,e.data))return yt(e),!0;if(!Se[r]||Oe[r]){if(!Oe[r]&&wt(r)){if(we.tagNameCheck instanceof RegExp&&C(we.tagNameCheck,r))return!1;if(we.tagNameCheck instanceof Function&&we.tagNameCheck(r))return!1}if(We&&!Ke[r]){const t=$(e)||e.parentNode,n=J(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const o=X(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,q(e))}}}return yt(e),!0}return e instanceof p&&!function(e){let t=$(e);t&&t.tagName||(t={namespaceURI:rt,tagName:"template"});const n=_(e.tagName),r=_(t.tagName);return!!st[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===r||at[r]):Boolean(gt[n]):e.namespaceURI===et?t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&&lt[r]:Boolean(_t[n]):e.namespaceURI===nt?!(t.namespaceURI===tt&&!lt[r])&&!(t.namespaceURI===et&&!at[r])&&!_t[n]&&(ut[n]||!gt[n]):!("application/xhtml+xml"!==ct||!st[e.namespaceURI]))}(e)?(yt(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!C(/<\/no(script|embed|frames)/i,e.innerHTML)?(ke&&e.nodeType===ne&&(t=e.textContent,m([fe,Ae,ge],e=>{t=b(t,e," ")}),e.textContent!==t&&(A(n.removed,{element:e.cloneNode()}),e.textContent=t)),Ct(he.afterSanitizeElements,e,null),!1):(yt(e),!0)},Rt=function(e,t,n){if(Ye&&("id"===t||"name"===t)&&(n in o||n in ht))return!1;if(Pe&&!Le[t]&&C(_e,t));else if(Ne&&C(ye,t));else if(!Ie[t]||Le[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(Qe[t]);else if(C(Te,b(n,be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(n,"data:")||!qe[e]){if(xe&&!C(Ee,b(n,be,"")));else if(n)return!1}else;return!0},wt=function(e){return"annotation-xml"!==e&&E(e,ve)},Ot=function(e){Ct(he.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Tt(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ie,forceKeepAttr:void 0};let o=t.length;for(;o--;){const s=t[o],{name:i,namespaceURI:a,value:l}=s,u=pt(i);let c="value"===i?l:T(l);if(r.attrName=u,r.attrValue=c,r.keepAttr=!0,r.forceKeepAttr=void 0,Ct(he.uponSanitizeAttribute,e,r),c=r.attrValue,!ze||"id"!==u&&"name"!==u||(Et(i,e),c="user-content-"+c),De&&C(/((--!?|])>)|<\/(style|title)/i,c)){Et(i,e);continue}if(r.forceKeepAttr)continue;if(Et(i,e),!r.keepAttr)continue;if(!Me&&C(/\/>/i,c)){Et(i,e);continue}ke&&m([fe,Ae,ge],e=>{c=b(c,e," ")});const d=pt(e.nodeName);if(Rt(d,u,c)){if(ae&&"object"==typeof W&&"function"==typeof W.getAttributeType)if(a);else switch(W.getAttributeType(d,u)){case"TrustedHTML":c=ae.createHTML(c);break;case"TrustedScriptURL":c=ae.createScriptURL(c)}try{a?e.setAttributeNS(a,i,c):e.setAttribute(i,c),Tt(e)?yt(e):f(n.removed)}catch(e){}}}Ct(he.afterSanitizeAttributes,e,null)},Lt=function e(t){let n=null;const r=vt(t);for(Ct(he.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Ct(he.uponSanitizeShadowNode,n,null),It(n),Ot(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]:{},r=null,o=null,i=null,l=null;if(ot=!e,ot&&(e="\x3c!--\x3e"),"string"!=typeof e&&!St(e)){if("function"!=typeof e.toString)throw I("toString is not a function");if("string"!=typeof(e=e.toString()))throw I("dirty is not a string, aborting")}if(!n.isSupported)return e;if(je||At(t),n.removed=[],"string"==typeof e&&(Ve=!1),Ve){if(e.nodeName){const t=pt(e.nodeName);if(!Se[t]||Oe[t])throw I("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof d)r=bt("\x3c!----\x3e"),o=r.ownerDocument.importNode(e,!0),o.nodeType===te&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!Ge&&!ke&&!Be&&-1===e.indexOf("<"))return ae&&He?ae.createHTML(e):e;if(r=bt(e),!r)return Ge?null:He?le:""}r&&Ue&&yt(r.firstChild);const u=vt(Ve?e:r);for(;i=u.nextNode();)It(i),Ot(i),i.content instanceof a&&Lt(i.content);if(Ve)return e;if(Ge){if(Fe)for(l=de.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(Ie.shadowroot||Ie.shadowrootmode)&&(l=me.call(s,l,!0)),l}let c=Be?r.outerHTML:r.innerHTML;return Be&&Se["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&C(Q,r.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+c),ke&&m([fe,Ae,ge],e=>{c=b(c,e," ")}),ae&&He?ae.createHTML(c):c},n.setConfig=function(){At(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||At({});const r=pt(e),o=pt(t);return Rt(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&A(he[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=h(he[e],t);return-1===n?void 0:g(he[e],n,1)[0]}return f(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:()=>o});let r=!1;try{r="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}const o=r},"../../node_modules/engine.io-client/build/esm/contrib/parseqs.js":(e,t,n)=>{"use strict";function r(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function o(e){let t={},n=e.split("&");for(let e=0,r=n.length;e<r;e++){let r=n[e].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}n.d(t,{decode:()=>o,encode:()=>r})},"../../node_modules/engine.io-client/build/esm/contrib/parseuri.js":(e,t,n)=>{"use strict";n.d(t,{parse:()=>s});const r=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,o=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function s(e){if(e.length>2e3)throw"URI too long";const t=e,n=e.indexOf("["),s=e.indexOf("]");-1!=n&&-1!=s&&(e=e.substring(0,n)+e.substring(n,s).replace(/:/g,";")+e.substring(s,e.length));let i=r.exec(e||""),a={},l=14;for(;l--;)a[o[l]]=i[l]||"";return-1!=n&&-1!=s&&(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,r=t.replace(n,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||r.splice(0,1);"/"==t.slice(-1)&&r.splice(r.length-1,1);return r}(0,a.path),a.queryKey=function(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,r){t&&(n[t]=r)}),n}(0,a.query),a}},"../../node_modules/engine.io-client/build/esm/contrib/yeast.js":(e,t,n)=>{"use strict";n.d(t,{yeast:()=>c});const r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),o=64,s={};let i,a=0,l=0;function u(e){let t="";do{t=r[e%o]+t,e=Math.floor(e/o)}while(e>0);return t}function c(){const e=u(+new Date);return e!==i?(a=0,i=e):e+"."+u(a++)}for(;l<o;l++)s[r[l]]=l},"../../node_modules/engine.io-client/build/esm/globalThis.browser.js":(e,t,n)=>{"use strict";n.d(t,{globalThisShim:()=>r});const r="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:()=>r.Socket,installTimerFunctions:()=>o.installTimerFunctions,nextTick:()=>i.nextTick,parse:()=>s.parse});var r=n("../../node_modules/engine.io-client/build/esm/socket.js"),o=(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")),s=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");r.Socket.protocol},"../../node_modules/engine.io-client/build/esm/socket.js":(e,t,n)=>{"use strict";n.d(t,{Socket:()=>c});var r=n("../../node_modules/engine.io-client/build/esm/transports/index.js"),o=n("../../node_modules/engine.io-client/build/esm/util.js"),s=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"),u=n("../../node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js");class c extends a.Emitter{constructor(e,t={}){super(),this.binaryType=u.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,o.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,s.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 r.transports[e](n)}open(){let e;if(this.opts.rememberUpgrade&&c.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;c.priorWebsocketSuccess=!1;const r=()=>{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;c.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{n||"closed"!==this.readyState&&(u(),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 o(){n||(n=!0,u(),t.close(),t=null)}const s=e=>{const n=new Error("probe error: "+e);n.transport=t.name,o(),this.emitReserved("upgradeError",n)};function i(){s("transport closed")}function a(){s("socket closed")}function l(e){t&&e.name!==t.name&&o()}const u=()=>{t.removeListener("open",r),t.removeListener("error",s),t.removeListener("close",i),this.off("close",a),this.off("upgrading",l)};t.once("open",r),t.once("error",s),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",c.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,o.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,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const o={type:e,data:t,options:n};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),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){c.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 r=e.length;for(;n<r;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}c.protocol=l.protocol},"../../node_modules/engine.io-client/build/esm/transport.js":(e,t,n)=>{"use strict";n.d(t,{Transport:()=>l});var r=n("../../node_modules/engine.io-parser/build/esm/index.js"),o=n("../../node_modules/@socket.io/component-emitter/lib/esm/index.js"),s=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 o.Emitter{constructor(e){super(),this.writable=!1,(0,s.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,r.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 r=n("../../node_modules/engine.io-client/build/esm/transports/polling.js"),o=n("../../node_modules/engine.io-client/build/esm/transports/websocket.js"),s=n("../../node_modules/engine.io-client/build/esm/transports/webtransport.js");const i={websocket:o.WS,webtransport:s.WT,polling:r.Polling}},"../../node_modules/engine.io-client/build/esm/transports/polling.js":(e,t,n)=>{"use strict";n.d(t,{Polling:()=>p});var r=n("../../node_modules/engine.io-client/build/esm/transport.js"),o=n("../../node_modules/engine.io-client/build/esm/contrib/yeast.js"),s=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"),u=n("../../node_modules/engine.io-client/build/esm/globalThis.browser.js");function c(){}const d=null!=new i.XHR({xdomain:!1}).responseType;class p extends r.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,s.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,s.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,o.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=c,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 u.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:()=>s,defaultBinaryType:()=>a,nextTick:()=>o,usingBrowserWebSocket:()=>i});var r=n("../../node_modules/engine.io-client/build/esm/globalThis.browser.js");const o="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),s=r.globalThisShim.WebSocket||r.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:()=>u});var r=n("../../node_modules/engine.io-client/build/esm/transport.js"),o=n("../../node_modules/engine.io-client/build/esm/contrib/yeast.js"),s=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 u extends r.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,s.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],r=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){}r&&(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,o.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 r=n("../../node_modules/engine.io-client/build/esm/transport.js"),o=n("../../node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js"),s=n("../../node_modules/engine.io-parser/build/esm/index.js");class i extends r.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,s.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=(0,s.createPacketEncoderStream)();r.readable.pipeTo(e.writable),this.writer=r.writable.getWriter();const o=()=>{n.read().then(({done:e,value:t})=>{e||(this.onPacket(t),o())}).catch(e=>{})};o();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],r=t===e.length-1;this.writer.write(n).then(()=>{r&&(0,o.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:()=>s,createCookieJar:()=>i});var r=n("../../node_modules/engine.io-client/build/esm/contrib/has-cors.js"),o=n("../../node_modules/engine.io-client/build/esm/globalThis.browser.js");function s(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||r.hasCORS))return new XMLHttpRequest}catch(e){}if(!t)try{return new(o.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:()=>u,installTimerFunctions:()=>a,pick:()=>o});var r=n("../../node_modules/engine.io-client/build/esm/globalThis.browser.js");function o(e,...t){return t.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{})}const s=r.globalThisShim.setTimeout,i=r.globalThisShim.clearTimeout;function a(e,t){t.useNativeTimers?(e.setTimeoutFn=s.bind(r.globalThisShim),e.clearTimeoutFn=i.bind(r.globalThisShim)):(e.setTimeoutFn=r.globalThisShim.setTimeout.bind(r.globalThisShim),e.clearTimeoutFn=r.globalThisShim.clearTimeout.bind(r.globalThisShim))}const l=1.33;function u(e){return"string"==typeof e?function(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,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:()=>s,PACKET_TYPES:()=>r,PACKET_TYPES_REVERSE:()=>o});const r=Object.create(null);r.open="0",r.close="1",r.ping="2",r.pong="3",r.message="4",r.upgrade="5",r.noop="6";const o=Object.create(null);Object.keys(r).forEach(e=>{o[r[e]]=e});const s={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:()=>s});const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<64;e++)o[r.charCodeAt(e)]=e;const s=e=>{let t,n,r,s,i,a=.75*e.length,l=e.length,u=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);const c=new ArrayBuffer(a),d=new Uint8Array(c);for(t=0;t<l;t+=4)n=o[e.charCodeAt(t)],r=o[e.charCodeAt(t+1)],s=o[e.charCodeAt(t+2)],i=o[e.charCodeAt(t+3)],d[u++]=n<<2|r>>4,d[u++]=(15&r)<<4|s>>2,d[u++]=(3&s)<<6|63&i;return c}},"../../node_modules/engine.io-parser/build/esm/decodePacket.browser.js":(e,t,n)=>{"use strict";n.d(t,{decodePacket:()=>i});var r=n("../../node_modules/engine.io-parser/build/esm/commons.js"),o=n("../../node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js");const s="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 r.PACKET_TYPES_REVERSE[n]?e.length>1?{type:r.PACKET_TYPES_REVERSE[n],data:e.substring(1)}:{type:r.PACKET_TYPES_REVERSE[n]}:r.ERROR_PACKET},a=(e,t)=>{if(s){const n=(0,o.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 r=n("../../node_modules/engine.io-parser/build/esm/commons.js");const o="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),s="function"==typeof ArrayBuffer,i=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,a=({type:e,data:t},n,a)=>o&&t instanceof Blob?n?a(t):l(t,a):s&&(t instanceof ArrayBuffer||i(t))?n?a(t):l(new Blob([t]),a):a(r.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 u(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let c;function d(e,t){return o&&e.data instanceof Blob?e.data.arrayBuffer().then(u).then(t):s&&(e.data instanceof ArrayBuffer||i(e.data))?t(u(e.data)):void a(e,!1,e=>{c||(c=new TextEncoder),t(c.encode(e))})}},"../../node_modules/engine.io-parser/build/esm/index.js":(e,t,n)=>{"use strict";n.d(t,{createPacketDecoderStream:()=>m,createPacketEncoderStream:()=>u,decodePacket:()=>o.decodePacket,decodePayload:()=>l,encodePacket:()=>r.encodePacket,encodePayload:()=>a,protocol:()=>h});var r=n("../../node_modules/engine.io-parser/build/esm/encodePacket.browser.js"),o=n("../../node_modules/engine.io-parser/build/esm/decodePacket.browser.js"),s=n("../../node_modules/engine.io-parser/build/esm/commons.js");const i=String.fromCharCode(30),a=(e,t)=>{const n=e.length,o=new Array(n);let s=0;e.forEach((e,a)=>{(0,r.encodePacket)(e,!1,e=>{o[a]=e,++s===n&&t(o.join(i))})})},l=(e,t)=>{const n=e.split(i),r=[];for(let e=0;e<n.length;e++){const s=(0,o.decodePacket)(n[e],t);if(r.push(s),"error"===s.type)break}return r};function u(){return new TransformStream({transform(e,t){(0,r.encodePacketToBinary)(e,n=>{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const e=new DataView(o.buffer);e.setUint8(0,126),e.setUint16(1,r)}else{o=new Uint8Array(9);const e=new DataView(o.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(r))}e.data&&"string"!=typeof e.data&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let c;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 r=0;for(let o=0;o<t;o++)n[o]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function m(e,t){c||(c=new TextDecoder);const n=[];let r=0,i=-1,a=!1;return new TransformStream({transform(l,u){for(n.push(l);;){if(0===r){if(d(n)<1)break;const e=p(n,1);a=!(128&~e[0]),i=127&e[0],r=i<126?3:126===i?1:2}else if(1===r){if(d(n)<2)break;const e=p(n,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(2===r){if(d(n)<8)break;const e=p(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),o=t.getUint32(0);if(o>Math.pow(2,21)-1){u.enqueue(s.ERROR_PACKET);break}i=o*Math.pow(2,32)+t.getUint32(4),r=3}else{if(d(n)<i)break;const e=p(n,i);u.enqueue((0,o.decodePacket)(a?e:c.decode(e),t)),r=0}if(0===i||i>e){u.enqueue(s.ERROR_PACKET);break}}}})}const h=4},"../../node_modules/lib0/array.js":(e,t,n)=>{"use strict";n.d(t,{from:()=>r});n("../../node_modules/lib0/set.js");const r=Array.from;Array.isArray},"../../node_modules/lib0/map.js":(e,t,n)=>{"use strict";n.d(t,{create:()=>r,setIfUndefined:()=>o});const r=()=>new Map,o=(e,t,n)=>{let r=e.get(t);return void 0===r&&e.set(t,r=n()),r}},"../../node_modules/lib0/observable.js":(e,t,n)=>{"use strict";n.d(t,{Observable:()=>i});var r=n("../../node_modules/lib0/map.js"),o=n("../../node_modules/lib0/set.js"),s=n("../../node_modules/lib0/array.js");class i{constructor(){this._observers=r.create()}on(e,t){r.setIfUndefined(this._observers,e,o.create).add(t)}once(e,t){const n=(...r)=>{this.off(e,n),t(...r)};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 s.from((this._observers.get(e)||r.create()).values()).forEach(e=>e(...t))}destroy(){this._observers=r.create()}}},"../../node_modules/lib0/set.js":(e,t,n)=>{"use strict";n.d(t,{create:()=>r,from:()=>o});const r=()=>new Set,o=e=>new Set(e)},"../../node_modules/rrweb/dist/rrweb.js":(e,t,n)=>{"use strict";n.d(t,{EventType:()=>Se,record:()=>St});var r,o=Object.defineProperty,s=(e,t,n)=>(((e,t,n)=>{t in e?o(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 u(e){return e.nodeType===e.ELEMENT_NODE}function c(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 f(){return new h}function A({element:e,maskInputOptions:t,tagName:n,type:r,value:o,maskInputFn:s}){let i=o||"";const a=r&&g(r);return(t[n.toLowerCase()]||a&&t[a])&&(i=s?s(i,e):"*".repeat(i.length)),i}function g(e){return e.toLowerCase()}const _="__rrweb_original__";function y(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?g(t):null}function E(e,t){let n;try{n=new URL(e,t??window.location.href)}catch(e){return null}const r=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(null==r?void 0:r[1])??null}let b=1;const v=new RegExp("[^a-z0-9-_:]"),T=-2;function S(){return b++}let C,I;const R=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,w=/^(?:[a-z+]+:)?\/\//i,O=/^www\..*/i,L=/^(data:)([^,]*),(.*)/i;function N(e,t){return(e||"").replace(R,(e,n,r,o,s,i)=>{const a=r||s||i,l=n||o||"";if(!a)return e;if(w.test(a)||O.test(a))return`url(${l}${a}${l})`;if(L.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 u=t.split("/"),c=a.split("/");u.pop();for(const e of c)"."!==e&&(".."===e?u.pop():u.push(e));return`url(${l}${u.join("/")}${l})`})}const P=/^[^ \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,r){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?k(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const o=e.exec(t.substring(n));return o?(r=o[0],n+=r.length,r):""}const o=[];for(;r(x),!(n>=t.length);){let s=r(P);if(","===s.slice(-1))s=k(e,s.substring(0,s.length-1)),o.push(s);else{let r="";s=k(e,s);let i=!1;for(;;){const e=t.charAt(n);if(""===e){o.push((s+r).trim());break}if(i)")"===e&&(i=!1);else{if(","===e){n+=1,o.push((s+r).trim());break}"("===e&&(i=!0)}r+=e,n+=1}}}return o.join(", ")}(e,r):"style"===n?N(r,B(e)):"object"===t&&"data"===n?k(e,r):r:k(e,r):r}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 r=e.classList[n];if(t.test(r))return!0}return!!n&&G(e.parentNode,t,n)}function F(e,t,n,r){try{const o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("string"==typeof t){if(r){if(o.closest(`.${t}`))return!0}else if(o.classList.contains(t))return!0}else if(G(o,t,r))return!0;if(n)if(r){if(o.closest(n))return!0}else if(o.matches(n))return!0}catch(e){}return!1}function H(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:s,needsMask:i,inlineStylesheet:a,maskInputOptions:u={},maskTextFn:c,maskInputFn:d,dataURLOptions:m={},inlineImages:h,recordCanvas:f,keepIframeSrcFn:E,newlyAddedElement:b=!1}=t,T=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,r);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:T};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:r,blockSelector:o,inlineStylesheet:s,maskInputOptions:i={},maskInputFn:a,dataURLOptions:u={},inlineImages:c,recordCanvas:d,keepIframeSrcFn:m,newlyAddedElement:h=!1,rootId:f}=t,E=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 r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,r,o),b=function(e){if(e instanceof HTMLFormElement)return"form";const t=g(e.tagName);return v.test(t)?"div":t}(e);let T={};const S=e.attributes.length;for(let t=0;t<S;t++){const r=e.attributes[t];U(b,r.name,r.value)||(T[r.name]=j(n,b,g(r.name),r.value))}if("link"===b&&s){const t=Array.from(n.styleSheets).find(t=>t.href===e.href);let r=null;t&&(r=p(t)),r&&(delete T.rel,delete T.href,T._cssText=N(r,t.href))}if("style"===b&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=p(e.sheet);t&&(T._cssText=N(t,B(n)))}if("input"===b||"textarea"===b||"select"===b){const t=e.value,n=e.checked;"radio"!==T.type&&"checkbox"!==T.type&&"submit"!==T.type&&"button"!==T.type&&t?T.value=A({element:e,type:y(e),tagName:b,value:t,maskInputOptions:i,maskInputFn:a}):n&&(T.checked=n)}"option"===b&&(e.selected&&!i.select?T.selected=!0:delete T.selected);if("canvas"===b&&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 r=0;r<e.height;r+=50){const o=t.getImageData,s=_ in o?o[_]:o;if(new Uint32Array(s.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>0!==e))return!1}return!0})(e)||(T.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const t=e.toDataURL(u.type,u.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height;t!==r.toDataURL(u.type,u.quality)&&(T.rr_dataURL=t)}if("img"===b&&c){C||(C=n.createElement("canvas"),I=C.getContext("2d"));const t=e,r=t.currentSrc||t.getAttribute("src")||"<unknown-src>",o=t.crossOrigin,s=()=>{t.removeEventListener("load",s);try{C.width=t.naturalWidth,C.height=t.naturalHeight,I.drawImage(t,0,0),T.rr_dataURL=C.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?s():t.addEventListener("load",s));console.warn(`Cannot inline img src=${r}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(o?T.crossOrigin=o:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?s():t.addEventListener("load",s)}if("audio"===b||"video"===b){const t=T;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&&(T.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(T.rr_scrollTop=e.scrollTop));if(E){const{width:t,height:n}=e.getBoundingClientRect();T={class:T.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==b||m(T.src)||(e.contentDocument||(T.rr_src=T.src),delete T.src);let R;try{customElements.get(b)&&(R=!0)}catch(e){}return{type:l.Element,tagName:b,attributes:T,childNodes:[],isSVG:D(e)||void 0,needBlock:E,rootId:f,isCustom:R}}(e,{doc:n,blockClass:o,blockSelector:s,inlineStylesheet:a,maskInputOptions:u,maskInputFn:d,dataURLOptions:m,inlineImages:h,recordCanvas:f,keepIframeSrcFn:E,newlyAddedElement:b,rootId:T});case e.TEXT_NODE:return function(e,t){var n;const{needsMask:r,maskTextFn:o,rootId:s}=t,i=e.parentNode&&e.parentNode.tagName;let a=e.textContent;const u="STYLE"===i||void 0,c="SCRIPT"===i||void 0;if(u&&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=N(a,B(t.doc))}c&&(a="SCRIPT_PLACEHOLDER");!u&&!c&&a&&r&&(a=o?o(a,e.parentElement):a.replace(/[\S]/g,"*"));return{type:l.Text,textContent:a||"",isStyle:u,rootId:s}}(e,{doc:n,needsMask:i,maskTextFn:c,rootId:T});case e.CDATA_SECTION_NODE:return{type:l.CDATA,textContent:"",rootId:T};case e.COMMENT_NODE:return{type:l.Comment,textContent:e.textContent||"",rootId:T};default:return!1}}function Y(e){return null==e?"":e.toLowerCase()}function z(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:s,maskTextClass:i,maskTextSelector:a,skipChild:p=!1,inlineStylesheet:m=!0,maskInputOptions:h={},maskTextFn:f,maskInputFn:A,slimDOMOptions:g,dataURLOptions:_={},inlineImages:y=!1,recordCanvas:b=!1,onSerialize:v,onIframeLoad:C,iframeLoadTimeout:I=5e3,onStylesheetLoad:R,stylesheetLoadTimeout:w=5e3,keepIframeSrcFn:O=()=>!1,newlyAddedElement:L=!1}=t;let{needsMask:N}=t,{preserveWhiteSpace:P=!0}=t;if(!N&&e.childNodes){N=F(e,i,a,void 0===N)}const x=H(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,needsMask:N,inlineStylesheet:m,maskInputOptions:h,maskTextFn:f,maskInputFn:A,dataURLOptions:_,inlineImages:y,recordCanvas:b,keepIframeSrcFn:O,newlyAddedElement:L});if(!x)return console.warn(e,"not serialized"),null;let M;M=r.hasNode(e)?r.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"===E(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,g)&&(P||x.type!==l.Text||x.isStyle||x.textContent.replace(/^\s+|\s+$/gm,"").length)?S():T;const k=Object.assign(x,{id:M});if(r.add(e,k),M===T)return null;v&&v(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){g.headWhitespace&&k.type===l.Element&&"head"===k.tagName&&(P=!1);const t={doc:n,mirror:r,blockClass:o,blockSelector:s,needsMask:N,maskTextClass:i,maskTextSelector:a,skipChild:p,inlineStylesheet:m,maskInputOptions:h,maskTextFn:f,maskInputFn:A,slimDOMOptions:g,dataURLOptions:_,inlineImages:y,recordCanvas:b,preserveWhiteSpace:P,onSerialize:v,onIframeLoad:C,iframeLoadTimeout:I,onStylesheetLoad:R,stylesheetLoadTimeout:w,keepIframeSrcFn:O};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(u(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=z(n,t);r&&(d(e.shadowRoot)&&(r.isShadow=!0),k.childNodes.push(r))}}return e.parentNode&&c(e.parentNode)&&d(e.parentNode)&&(k.isShadow=!0),k.type===l.Element&&"iframe"===k.tagName&&function(e,t,n){const r=e.contentWindow;if(!r)return;let o,s=!1;try{o=r.document.readyState}catch(e){return}if("complete"!==o){const r=setTimeout(()=>{s||(t(),s=!0)},n);return void e.addEventListener("load",()=>{clearTimeout(r),s=!0,t()})}const i="about:blank";if(r.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:r,blockClass:o,blockSelector:s,needsMask:N,maskTextClass:i,maskTextSelector:a,skipChild:!1,inlineStylesheet:m,maskInputOptions:h,maskTextFn:f,maskInputFn:A,slimDOMOptions:g,dataURLOptions:_,inlineImages:y,recordCanvas:b,preserveWhiteSpace:P,onSerialize:v,onIframeLoad:C,iframeLoadTimeout:I,onStylesheetLoad:R,stylesheetLoadTimeout:w,keepIframeSrcFn:O});n&&C(e,n)}},I),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"===E(k.attributes.href))&&function(e,t,n){let r,o=!1;try{r=e.sheet}catch(e){return}if(r)return;const s=setTimeout(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{clearTimeout(s),o=!0,t()})}(e,()=>{if(R){const t=z(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,needsMask:N,maskTextClass:i,maskTextSelector:a,skipChild:!1,inlineStylesheet:m,maskInputOptions:h,maskTextFn:f,maskInputFn:A,slimDOMOptions:g,dataURLOptions:_,inlineImages:y,recordCanvas:b,preserveWhiteSpace:P,onSerialize:v,onIframeLoad:C,iframeLoadTimeout:I,onStylesheetLoad:R,stylesheetLoadTimeout:w,keepIframeSrcFn:O});t&&R(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 r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const K="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 Z={map:{},getId:()=>(console.error(K),-1),getNode:()=>(console.error(K),null),removeNodeFromMap(){console.error(K)},has:()=>(console.error(K),!1),reset(){console.error(K)}};function q(e,t,n={}){let r=null,o=0;return function(...s){const i=Date.now();o||!1!==n.leading||(o=i);const a=t-(i-o),l=this;a<=0||a>t?(r&&(clearTimeout(r),r=null),o=i,e.apply(l,s)):r||!1===n.trailing||(r=setTimeout(()=>{o=!1===n.leading?0:Date.now(),r=null,e.apply(l,s)},a))}}function J(e,t,n,r,o=window){const s=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){setTimeout(()=>{n.set.call(this,e)},0),s&&s.set&&s.set.call(this,e)}}),()=>J(e,t,s||{},!0)}function Q(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Z=new Proxy(Z,{get:(e,t,n)=>("map"===t&&console.error(K),Reflect.get(e,t,n))}));let $=Date.now;function ee(e){var t,n,r,o,s,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==(r=null==a?void 0:a.body)?void 0:r.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==a?void 0:a.documentElement.scrollTop)||(null==(s=null==(o=null==a?void 0:a.body)?void 0:o.parentElement)?void 0:s.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 re(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}function oe(e,t,n,r){if(!e)return!1;const o=re(e);if(!o)return!1;try{if("string"==typeof t){if(o.classList.contains(t))return!0;if(r&&null!==o.closest("."+t))return!0}else if(G(o,t,r))return!0}catch(e){}if(n){if(o.matches(n))return!0;if(r&&null!==o.closest(n))return!0}return!1}function se(e,t){return-1!==t.getId(e)}function ie(e,t,n){return!("TITLE"!==e.tagName||!n.headTitleMutations)||t.getId(e)===T}function ae(e,t){if(c(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 ue(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 ce(e){const t={},n=(e,n)=>{const r={value:e,parent:n,children:[]};return t[e.node.id]=r,r},r=[];for(const o of e){const{nextId:e,parentId:s}=o;if(e&&e in t){const s=t[e];if(s.parent){const e=s.parent.children.indexOf(s);s.parent.children.splice(e,0,n(o,s.parent))}else{const e=r.indexOf(s);r.splice(e,0,n(o,null))}continue}if(s in t){const e=t[s];e.children.push(n(o,e));continue}r.push(n(o,null))}return r}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,r;const o=null==(null==e.ownerDocument?void 0:n.defaultView)?void 0:r.frameElement;if(!o||o===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};const s=o.getBoundingClientRect(),i=he(o,t),a=s.height/o.clientHeight;return{x:s.x*i.relativeScale+i.x,y:s.y*i.relativeScale+i.y,relativeScale:a,absoluteScale:i.absoluteScale*a}}function fe(e){return Boolean(null==e?void 0:e.shadowRoot)}function Ae(e,t){const n=e[t[0]];return 1===t.length?n:Ae(n.cssRules[t[1]].cssRules,t.slice(2))}function ge(e){const t=[...e],n=t.pop();return{positions:t,index:n}}function _e(e){const t=new Set,n=[];for(let r=e.length;r--;){const o=e[r];t.has(o.id)||(n.push(o),t.add(o.id))}return n}/[1-9][0-9]{12}/.test(Date.now().toString())||($=()=>(new Date).getTime());class ye{constructor(){s(this,"id",1),s(this,"styleIDMap",new WeakMap),s(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 Ee(e){var t,n;let r=null;return(null==(n=null==(t=e.getRootNode)?void 0:t.call(e))?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(r=e.getRootNode().host),r}function be(e){let t,n=e;for(;t=Ee(n);)n=t;return n}function ve(e){const t=e.ownerDocument;if(!t)return!1;const n=be(e);return t.contains(n)}function Te(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||ve(e))}Symbol.toStringTag;var Se=(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))(Se||{}),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||{}),Ie=(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))(Ie||{}),Re=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Re||{}),we=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(we||{}),Oe=(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))(Oe||{});function Le(e){return"__ln"in e}class Ne{constructor(){s(this,"length",0),s(this,"head",null),s(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&&Le(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&&Le(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 Pe=(e,t)=>`${e}@${t}`;class xe{constructor(){s(this,"frozen",!1),s(this,"locked",!1),s(this,"texts",[]),s(this,"attributes",[]),s(this,"attributeMap",new WeakMap),s(this,"removes",[]),s(this,"mapRemoves",[]),s(this,"movedMap",{}),s(this,"addedSet",new Set),s(this,"movedSet",new Set),s(this,"droppedSet",new Set),s(this,"mutationCb"),s(this,"blockClass"),s(this,"blockSelector"),s(this,"maskTextClass"),s(this,"maskTextSelector"),s(this,"inlineStylesheet"),s(this,"maskInputOptions"),s(this,"maskTextFn"),s(this,"maskInputFn"),s(this,"keepIframeSrcFn"),s(this,"recordCanvas"),s(this,"inlineImages"),s(this,"slimDOMOptions"),s(this,"dataURLOptions"),s(this,"doc"),s(this,"mirror"),s(this,"iframeManager"),s(this,"stylesheetManager"),s(this,"shadowDomManager"),s(this,"canvasManager"),s(this,"processedNodeManager"),s(this,"unattachedDoc"),s(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),s(this,"emit",()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new Ne,r=e=>{let t=e,n=T;for(;n===T;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},o=o=>{if(!o.parentNode||!Te(o)||"TEXTAREA"===o.parentNode.tagName)return;const s=c(o.parentNode)?this.mirror.getId(Ee(o)):this.mirror.getId(o.parentNode),i=r(o);if(-1===s||-1===i)return n.addNode(o);const a=z(o,{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),fe(o)&&this.shadowDomManager.addShadowRoot(o.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:s,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)||o(e);for(const e of this.addedSet)De(this.droppedSet,e)||ke(this.removes,e,this.mirror)?De(this.movedSet,e)?o(e):this.droppedSet.add(e):o(e);let s=null;for(;n.length;){let e=null;if(s){const t=this.mirror.getId(s.value.parentNode),n=r(s.value);-1!==t&&-1!==n&&(e=s)}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===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}s=e.previous,n.removeNode(e.value),o(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),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).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))}),s(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("")}),s(this,"processMutation",e=>{if(!ie(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":{const t=e.target.textContent;oe(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,re(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){const e=y(t);r=A({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:e,value:r,maskInputFn:this.maskInputFn})}if(oe(e.target,this.blockClass,this.blockSelector,!1)||r===e.oldValue)return;let o=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(t.contentDocument)return;n="rr_src"}if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!U(t.tagName,n)&&(o.attributes[n]=j(this.doc,g(t.tagName),g(n),r),"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 r=t.style.getPropertyValue(e),s=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||s!==n.style.getPropertyPriority(e)?o.styleDiff[e]=""===s?r:[r,s]:o._unchangedStyles[e]=[r,s]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(o.styleDiff[e]=!1)}break}case"childList":if(oe(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),r=c(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);oe(e.target,this.blockClass,this.blockSelector,!1)||ie(t,this.mirror,this.slimDOMOptions)||!se(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[Pe(n,r)]?Me(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!c(e.target)||!d(e.target))||void 0})),this.mapRemoves.push(t))})}}),s(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[Pe(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);oe(e,this.blockClass,this.blockSelector,!1)||(e.childNodes.forEach(e=>this.genAdds(e)),fe(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 r=t.parentNode;for(;r;){const t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.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,r;const o=new xe;Ge.push(o),o.init(e);let s=window.MutationObserver||window.__rrMutationObserver;const i=null==(r=null==(n=null==window?void 0:window.Zone)?void 0:n.__symbol__)?void 0:r.call(n,"MutationObserver");i&&window[i]&&(s=window[i]);const a=new s(Ue(o.processMutations.bind(o)));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:r,blockSelector:o,sampling:s}){if(!1===s.mouseInteraction)return()=>{};const i=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,a=[];let l=null;return Object.keys(Ie).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==i[e]).forEach(s=>{let i=g(s);const u=(t=>s=>{const i=Fe(s);if(oe(i,r,o,!0))return;let a=null,u=t;if("pointerType"in s){switch(s.pointerType){case"mouse":a=Re.Mouse;break;case"touch":a=Re.Touch;break;case"pen":a=Re.Pen}a===Re.Touch?Ie[t]===Ie.MouseDown?u="TouchStart":Ie[t]===Ie.MouseUp&&(u="TouchEnd"):Re.Pen}else le(s)&&(a=Re.Touch);null!==a?(l=a,(u.startsWith("Touch")&&a===Re.Touch||u.startsWith("Mouse")&&a===Re.Mouse)&&(a=null)):Ie[t]===Ie.Click&&(a=l,l=null);const c=le(s)?s.changedTouches[0]:s;if(!c)return;const d=n.getId(i),{clientX:p,clientY:m}=c;Ue(e)({type:Ie[u],id:d,x:p,y:m,...null!==a&&{pointerType:a}})})(s);if(window.PointerEvent)switch(Ie[s]){case Ie.MouseDown:case Ie.MouseUp:i=i.replace("mouse","pointer");break;case Ie.TouchStart:case Ie.TouchEnd:return}a.push(X(i,u,t))}),Ue(()=>{a.forEach(e=>e())})}function ze({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,sampling:s}){return X("scroll",Ue(q(Ue(s=>{const i=Fe(s);if(!i||oe(i,r,o,!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})}),s.scroll||100)),t)}const We=["INPUT","TEXTAREA","SELECT"],Ve=new WeakMap;function Xe(e){return function(e,t){if(Je("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Je("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Je("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Je("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 Ke(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function Ze({mirror:e,stylesheetManager:t},n){var r,o,s;let i=null;i="#document"===n.nodeName?e.getId(n):e.getId(n.host);const a="#document"===n.nodeName?null==(r=n.defaultView)?void 0:r.Document:null==(s=null==(o=n.ownerDocument)?void 0:o.defaultView)?void 0:s.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 r=null==(n=l.set)?void 0:n.call(this,e);if(null!==i&&-1!==i)try{t.adoptStyleSheets(e,i)}catch(e){}return r}}),Ue(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})})):()=>{}}function qe(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;!function(e,t){const{mutationCb:n,mousemoveCb:r,mouseInteractionCb:o,scrollCb:s,viewportResizeCb:i,inputCb:a,mediaInteractionCb:l,styleSheetRuleCb:u,styleDeclarationCb:c,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),r(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),o(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),s(...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),u(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),c(...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&&(r=He(e,e.doc));const o=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const o="number"==typeof t.mousemove?t.mousemove:50,s="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let i,a=[];const l=q(Ue(t=>{const n=Date.now()-i;e(a.map(e=>(e.timeOffset-=n,e)),t),a=[],i=null}),s),u=Ue(q(Ue(e=>{const t=Fe(e),{clientX:n,clientY:o}=le(e)?e.changedTouches[0]:e;i||(i=$()),a.push({x:n,y:o,id:r.getId(t),timeOffset:$()-i}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?Ce.Drag:e instanceof MouseEvent?Ce.MouseMove:Ce.TouchMove)}),o,{trailing:!1})),c=[X("mousemove",u,n),X("touchmove",u,n),X("drag",u,n)];return Ue(()=>{c.forEach(e=>e())})}(e),s=Ye(e),i=ze(e),a=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return X("resize",Ue(q(Ue(()=>{const t=te(),o=ne();n===t&&r===o||(e({width:Number(o),height:Number(t)}),n=t,r=o)}),200)),t)}(e,{win:n}),l=function({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,ignoreClass:s,ignoreSelector:i,maskInputOptions:a,maskInputFn:l,sampling:u,userTriggeredOnInput:c}){function d(e){let n=Fe(e);const u=e.isTrusted,d=n&&n.tagName;if(n&&"OPTION"===d&&(n=n.parentElement),!n||!d||We.indexOf(d)<0||oe(n,r,o,!0))return;if(n.classList.contains(s)||i&&n.matches(i))return;let m=n.value,h=!1;const f=y(n)||"";"radio"===f||"checkbox"===f?h=n.checked:(a[d.toLowerCase()]||a[f])&&(m=A({element:n,maskInputOptions:a,tagName:d,type:f,value:m,maskInputFn:l})),p(n,c?{text:m,isChecked:h,userTriggered:u}:{text:m,isChecked:h});const g=n.name;"radio"===f&&g&&h&&t.querySelectorAll(`input[type="radio"][name="${g}"]`).forEach(e=>{if(e!==n){const t=e.value;p(e,c?{text:t,isChecked:!h,userTriggered:!1}:{text:t,isChecked:!h})}})}function p(t,r){const o=Ve.get(t);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){Ve.set(t,r);const o=n.getId(t);Ue(e)({...r,id:o})}}const m=("last"===u.input?["change"]:["input","change"]).map(e=>X(e,Ue(d),t)),h=t.defaultView;if(!h)return()=>{m.forEach(e=>e())};const f=h.Object.getOwnPropertyDescriptor(h.HTMLInputElement.prototype,"value"),g=[[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 f&&f.set&&m.push(...g.map(e=>J(e[0],e[1],{set(){Ue(d)({target:this,isTrusted:!1})}},!1,h))),Ue(()=>{m.forEach(e=>e())})}(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,mirror:r,sampling:o,doc:s}){const i=Ue(s=>q(Ue(o=>{const i=Fe(o);if(!i||oe(i,t,n,!0))return;const{currentTime:a,volume:l,muted:u,playbackRate:c,loop:d}=i;e({type:s,id:r.getId(i),currentTime:a,volume:l,muted:u,playbackRate:c,loop:d})}),o.media||500)),a=[X("play",i(Oe.Play),s),X("pause",i(Oe.Pause),s),X("seeked",i(Oe.Seeked),s),X("volumechange",i(Oe.VolumeChange),s),X("ratechange",i(Oe.RateChange),s)];return Ue(()=>{a.forEach(e=>e())})}(e);let c=()=>{},d=()=>{},p=()=>{},m=()=>{};e.recordDOM&&(c=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:Ue((r,o,s)=>{const[i,a]=s,{id:l,styleId:u}=Ke(o,t,n.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:i,index:a}]}),r.apply(o,s)})});const s=r.CSSStyleSheet.prototype.deleteRule;let i,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:Ue((r,o,s)=>{const[i]=s,{id:a,styleId:l}=Ke(o,t,n.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:i}]}),r.apply(o,s)})}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:Ue((r,o,s)=>{const[i]=s,{id:a,styleId:l}=Ke(o,t,n.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replace:i}),r.apply(o,s)})})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:Ue((r,o,s)=>{const[i]=s,{id:a,styleId:l}=Ke(o,t,n.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replaceSync:i}),r.apply(o,s)})}));const l={};Qe("CSSGroupingRule")?l.CSSGroupingRule=r.CSSGroupingRule:(Qe("CSSMediaRule")&&(l.CSSMediaRule=r.CSSMediaRule),Qe("CSSConditionRule")&&(l.CSSConditionRule=r.CSSConditionRule),Qe("CSSSupportsRule")&&(l.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(l).forEach(([r,o])=>{u[r]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(u[r].insertRule,{apply:Ue((r,o,s)=>{const[i,a]=s,{id:l,styleId:u}=Ke(o.parentStyleSheet,t,n.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:i,index:[...Xe(o),a||0]}]}),r.apply(o,s)})}),o.prototype.deleteRule=new Proxy(u[r].deleteRule,{apply:Ue((r,o,s)=>{const[i]=s,{id:a,styleId:l}=Ke(o.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:[...Xe(o),i]}]}),r.apply(o,s)})})}),Ue(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=s,i&&(r.CSSStyleSheet.prototype.replace=i),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule})})}(e,{win:n}),d=Ze(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const s=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:Ue((o,i,a)=>{var l;const[u,c,d]=a;if(n.has(u))return s.apply(i,[u,c,d]);const{id:p,styleId:m}=Ke(null==(l=i.parentRule)?void 0:l.parentStyleSheet,t,r.styleMirror);return(p&&-1!==p||m&&-1!==m)&&e({id:p,styleId:m,set:{property:u,value:c,priority:d},index:Xe(i.parentRule)}),o.apply(i,a)})});const i=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:Ue((o,s,a)=>{var l;const[u]=a;if(n.has(u))return i.apply(s,[u]);const{id:c,styleId:d}=Ke(null==(l=s.parentRule)?void 0:l.parentStyleSheet,t,r.styleMirror);return(c&&-1!==c||d&&-1!==d)&&e({id:c,styleId:d,remove:{property:u},index:Xe(s.parentRule)}),o.apply(s,a)})}),Ue(()=>{o.CSSStyleDeclaration.prototype.setProperty=s,o.CSSStyleDeclaration.prototype.removeProperty=i})}(e,{win:n}),e.collectFonts&&(m=function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,n){const r=new s(e,t,n);return o.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const i=Q(t.fonts,"add",function(t){return function(n){return setTimeout(Ue(()=>{const t=o.get(n);t&&(e(t),o.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=s}),r.push(i),Ue(()=>{r.forEach(e=>e())})}(e)));const h=function(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,selectionCb:s}=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 s=e.getRangeAt(t),{startContainer:i,startOffset:l,endContainer:u,endOffset:c}=s;oe(i,r,o,!0)||oe(u,r,o,!0)||a.push({start:n.getId(i),startOffset:l,end:n.getId(u),endOffset:c})}s({ranges:a})});return a(),X("selectionchange",a)}(e),f=function({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?Q(n.customElements,"define",function(e){return function(n,r,o){try{t({define:{name:n}})}catch(e){console.warn(`Custom element callback failed for ${n}`)}return e.apply(this,[n,r,o])}}):()=>{}}(e),g=[];for(const t of e.plugins)g.push(t.observer(t.callback,n,t.options));return Ue(()=>{Ge.forEach(e=>e.reset()),null==r||r.disconnect(),o(),s(),i(),a(),l(),u(),c(),d(),p(),m(),h(),f(),g.forEach(e=>e())})}function Je(e){return void 0!==window[e]}function Qe(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class $e{constructor(e){s(this,"iframeIdToRemoteIdMap",new WeakMap),s(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,n,r){const o=n||this.getIdToRemoteIdMap(e),s=r||this.getRemoteIdToIdMap(e);let i=o.get(t);return i||(i=this.generateIdFn(),o.set(t,i),s.set(i,t)),i}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const o=r.get(t);return o||-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){s(this,"iframes",new WeakMap),s(this,"crossOriginIframeMap",new WeakMap),s(this,"crossOriginIframeMirror",new $e(S)),s(this,"crossOriginIframeStyleMirror"),s(this,"crossOriginIframeRootIdMap",new WeakMap),s(this,"mirror"),s(this,"mutationCb"),s(this,"wrappedEmit"),s(this,"loadListener"),s(this,"stylesheetManager"),s(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new $e(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,r;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==(r=this.loadListener)||r.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 r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){var n;switch(t.type){case Se.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:Se.IncrementalSnapshot,data:{source:Ce.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Se.Meta:case Se.Load:case Se.DomContentLoaded:return!1;case Se.Plugin:return t;case Se.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Se.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,r){for(const o of r)(Array.isArray(t[o])||"number"==typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(n,t[o]):t[o]=e.getId(n,t[o]));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){s(this,"shadowDoms",new WeakSet),s(this,"mutationCb"),s(this,"scrollCb"),s(this,"bypassOptions"),s(this,"mirror"),s(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(Ze({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(Q(e.prototype,"attachShadow",function(e){return function(r){const o=e.call(this,r);return this.shadowRoot&&Te(this)&&n.addShadowRoot(this.shadowRoot,t),o}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rt="undefined"==typeof Uint8Array?[]:new Uint8Array(256),ot=0;ot<64;ot++)rt[nt.charCodeAt(ot)]=ot;const st=new Map;const it=(e,t,n)=>{if(!e||!ut(e,t)&&"object"!=typeof e)return;const r=function(e,t){let n=st.get(e);return n||(n=new Map,st.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name);let o=r.indexOf(e);return-1===o&&(o=r.length,r.push(e)),o};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),r=n.length,o="";for(t=0;t<r;t+=3)o+=nt[n[t]>>2],o+=nt[(3&n[t])<<4|n[t+1]>>4],o+=nt[(15&n[t+1])<<2|n[t+2]>>6],o+=nt[63&n[t+2]];return r%3==2?o=o.substring(0,o.length-1)+"=":r%3==1&&(o=o.substring(0,o.length-2)+"=="),o}(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(ut(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)),ut=(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 ct(e,t,n,r){const o=[];try{const s=Q(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(o,...s){if(!oe(this,t,n,!0)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(o);if("__context"in this||(this.__context=e),r&&["webgl","webgl2"].includes(e))if(s[0]&&"object"==typeof s[0]){const e=s[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[o,...s])}});o.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach(e=>e())}}function dt(e,t,n,r,o,s,i){const a=[],l=Object.getOwnPropertyNames(e);for(const s of l)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(s))try{if("function"!=typeof e[s])continue;const l=Q(e,s,function(e){return function(...a){const l=e.apply(this,a);if(it(l,i,this),"tagName"in this.canvas&&!oe(this.canvas,r,o,!0)){const e=lt(a,i,this),r={type:t,property:s,args:e};n(this.canvas,r)}return l}});a.push(l)}catch{const r=J(e,s,{set(e){n(this.canvas,{type:t,property:s,args:[e],setter:!0})}});a.push(r)}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 ft(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 At{constructor(e){s(this,"pendingCanvasMutations",new Map),s(this,"rafStamps",{latestId:0,invokeId:null}),s(this,"mirror"),s(this,"mutationCb"),s(this,"resetObservers"),s(this,"frozen",!1),s(this,"locked",!1),s(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:r,blockSelector:o,recordCanvas:i,dataURLOptions:a}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,i&&"all"===t&&this.initCanvasMutationObserver(n,r,o),i&&"number"==typeof t&&this.initCanvasFPSObserver(t,n,r,o,{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,r,o){const s=ct(t,n,r,!0),i=new Map,a=new ft;a.onmessage=e=>{const{id:t}=e.data;if(i.set(t,!1),!("base64"in e.data))return;const{base64:n,type:r,width:o,height:s}=e.data;this.mutationCb({id:t,type:we["2D"],commands:[{property:"clearRect",args:[0,0,o,s]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:r}]},0,0]}]})};const l=1e3/e;let u,c=0;const d=e=>{c&&e-c<l||(c=e,(()=>{const e=[];return t.document.querySelectorAll("canvas").forEach(t=>{oe(t,n,r,!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 r=await createImageBitmap(e);a.postMessage({id:n,bitmap:r,width:e.width,height:e.height,dataURLOptions:o.dataURLOptions},[r])})),u=requestAnimationFrame(d)};u=requestAnimationFrame(d),this.resetObservers=()=>{s(),cancelAnimationFrame(u)}}initCanvasMutationObserver(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const r=ct(e,t,n,!1),o=function(e,t,n,r){const o=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const i of s)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[i])continue;const s=Q(t.CanvasRenderingContext2D.prototype,i,function(o){return function(...s){return oe(this.canvas,n,r,!0)||setTimeout(()=>{const n=lt(s,t,this);e(this.canvas,{type:we["2D"],property:i,args:n})},0),o.apply(this,s)}});o.push(s)}catch{const n=J(t.CanvasRenderingContext2D.prototype,i,{set(t){e(this.canvas,{type:we["2D"],property:i,args:[t],setter:!0})}});o.push(n)}return()=>{o.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n),s=function(e,t,n,r){const o=[];return o.push(...dt(t.WebGLRenderingContext.prototype,we.WebGL,e,n,r,0,t)),void 0!==t.WebGL2RenderingContext&&o.push(...dt(t.WebGL2RenderingContext.prototype,we.WebGL2,e,n,r,0,t)),()=>{o.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n,this.mirror);this.resetObservers=()=>{r(),o(),s()}}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 r=n.map(e=>{const{type:t,...n}=e;return n}),{type:o}=n[0];this.mutationCb({id:t,type:o,commands:r}),this.pendingCanvasMutations.delete(e)}}class gt{constructor(e){s(this,"trackedLinkElements",new WeakSet),s(this,"mutationCb"),s(this,"adoptedStyleSheetCb"),s(this,"styleMirror",new ye),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:[]},r=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:m(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class _t{constructor(){s(this,"nodeMap",new WeakMap),s(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 yt,Et,bt,vt=!1;try{if(2!==Array.from([1],e=>2*e)[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=(null==(r=e.contentWindow)?void 0:r.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Tt=f();function St(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:s=null,ignoreClass:i="rr-ignore",ignoreSelector:a=null,maskTextClass:l="rr-mask",maskTextSelector:u=null,inlineStylesheet:c=!0,maskAllInputs:d,maskInputOptions:p,slimDOMOptions:m,maskInputFn:f,maskTextFn:A,hooks:g,packFn:_,sampling:y={},dataURLOptions:E={},mousemoveWait:b,recordDOM:v=!0,recordCanvas:T=!1,recordCrossOriginIframes:S=!1,recordAfter:C=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:I=!1,collectFonts:R=!1,inlineImages:w=!1,plugins:O,keepIframeSrcFn:L=()=>!1,ignoreCSSAttributes:N=new Set([]),errorHandler:P}=e;je=P;const x=!S||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!==b&&void 0===y.mousemove&&(y.mousemove=b),Tt.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;ue();let j=0;const U=e=>{for(const t of O||[])t.eventProcessor&&(e=t.eventProcessor(e));return _&&!M&&(e=_(e)),e};yt=(e,o)=>{var s;const i=e;if(i.timestamp=$(),!(null==(s=Ge[0])?void 0:s.isFrozen())||i.type===Se.FullSnapshot||i.type===Se.IncrementalSnapshot&&i.data.source===Ce.Mutation||Ge.forEach(e=>e.unfreeze()),x)null==t||t(U(i),o);else if(M){const e={type:"rrweb",event:U(i),origin:window.location.origin,isCheckout:o};window.parent.postMessage(e,"*")}if(i.type===Se.FullSnapshot)B=i,j=0;else if(i.type===Se.IncrementalSnapshot){if(i.data.source===Ce.Mutation&&i.data.isAttachIframe)return;j++;const e=r&&j>=r,t=n&&i.timestamp-B.timestamp>n;(e||t)&&Et(!0)}};const G=e=>{yt({type:Se.IncrementalSnapshot,data:{source:Ce.Mutation,...e}})},F=e=>yt({type:Se.IncrementalSnapshot,data:{source:Ce.Scroll,...e}}),H=e=>yt({type:Se.IncrementalSnapshot,data:{source:Ce.CanvasMutation,...e}}),Y=new gt({mutationCb:G,adoptedStyleSheetCb:e=>yt({type:Se.IncrementalSnapshot,data:{source:Ce.AdoptedStyleSheet,...e}})}),W=new et({mirror:Tt,mutationCb:G,stylesheetManager:Y,recordCrossOriginIframes:S,wrappedEmit:yt});for(const e of O||[])e.getMirror&&e.getMirror({nodeMirror:Tt,crossOriginIframeMirror:W.crossOriginIframeMirror,crossOriginIframeStyleMirror:W.crossOriginIframeStyleMirror});const V=new _t;bt=new At({recordCanvas:T,mutationCb:H,win:window,blockClass:o,blockSelector:s,mirror:Tt,sampling:y.canvas,dataURLOptions:E});const K=new tt({mutationCb:G,scrollCb:F,bypassOptions:{blockClass:o,blockSelector:s,maskTextClass:l,maskTextSelector:u,inlineStylesheet:c,maskInputOptions:k,dataURLOptions:E,maskTextFn:A,maskInputFn:f,recordCanvas:T,inlineImages:w,sampling:y,slimDOMOptions:D,iframeManager:W,stylesheetManager:Y,canvasManager:bt,keepIframeSrcFn:L,processedNodeManager:V},mirror:Tt});Et=(e=!1)=>{if(!v)return;yt({type:Se.Meta,data:{href:window.location.href,width:ne(),height:te()}},e),Y.reset(),K.init(),Ge.forEach(e=>e.lock());const t=function(e,t){const{mirror:n=new h,blockClass:r="rr-block",blockSelector:o=null,maskTextClass:s="rr-mask",maskTextSelector:i=null,inlineStylesheet:a=!0,inlineImages:l=!1,recordCanvas:u=!1,maskAllInputs:c=!1,maskTextFn:d,maskInputFn:p,slimDOM:m=!1,dataURLOptions:f,preserveWhiteSpace:A,onSerialize:g,onIframeLoad:_,iframeLoadTimeout:y,onStylesheetLoad:E,stylesheetLoadTimeout:b,keepIframeSrcFn:v=()=>!1}=t||{};return z(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,maskTextClass:s,maskTextSelector:i,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===c?{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===c?{password:!0}:c,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:f,inlineImages:l,recordCanvas:u,preserveWhiteSpace:A,onSerialize:g,onIframeLoad:_,iframeLoadTimeout:y,onStylesheetLoad:E,stylesheetLoadTimeout:b,keepIframeSrcFn:v,newlyAddedElement:!1})}(document,{mirror:Tt,blockClass:o,blockSelector:s,maskTextClass:l,maskTextSelector:u,inlineStylesheet:c,maskAllInputs:k,maskTextFn:A,slimDOM:D,dataURLOptions:E,recordCanvas:T,inlineImages:w,onSerialize:e=>{pe(e,Tt)&&W.addIframe(e),me(e,Tt)&&Y.trackLinkElement(e),fe(e)&&K.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{W.attachIframe(e,t),K.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Y.attachLinkElement(e,t)},keepIframeSrcFn:L});if(!t)return console.warn("Failed to snapshot the document");yt({type:Se.FullSnapshot,data:{node:t,initialOffset:ee(window)}},e),Ge.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Y.adoptStyleSheets(document.adoptedStyleSheets,Tt.getId(document))};try{const e=[],t=e=>{var t;return Ue(qe)({mutationCb:G,mousemoveCb:(e,t)=>yt({type:Se.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>yt({type:Se.IncrementalSnapshot,data:{source:Ce.MouseInteraction,...e}}),scrollCb:F,viewportResizeCb:e=>yt({type:Se.IncrementalSnapshot,data:{source:Ce.ViewportResize,...e}}),inputCb:e=>yt({type:Se.IncrementalSnapshot,data:{source:Ce.Input,...e}}),mediaInteractionCb:e=>yt({type:Se.IncrementalSnapshot,data:{source:Ce.MediaInteraction,...e}}),styleSheetRuleCb:e=>yt({type:Se.IncrementalSnapshot,data:{source:Ce.StyleSheetRule,...e}}),styleDeclarationCb:e=>yt({type:Se.IncrementalSnapshot,data:{source:Ce.StyleDeclaration,...e}}),canvasMutationCb:H,fontCb:e=>yt({type:Se.IncrementalSnapshot,data:{source:Ce.Font,...e}}),selectionCb:e=>{yt({type:Se.IncrementalSnapshot,data:{source:Ce.Selection,...e}})},customElementCb:e=>{yt({type:Se.IncrementalSnapshot,data:{source:Ce.CustomElement,...e}})},blockClass:o,ignoreClass:i,ignoreSelector:a,maskTextClass:l,maskTextSelector:u,maskInputOptions:k,inlineStylesheet:c,sampling:y,recordDOM:v,recordCanvas:T,inlineImages:w,userTriggeredOnInput:I,collectFonts:R,doc:e,maskInputFn:f,maskTextFn:A,keepIframeSrcFn:L,blockSelector:s,slimDOMOptions:D,dataURLOptions:E,mirror:Tt,iframeManager:W,stylesheetManager:Y,shadowDomManager:K,processedNodeManager:V,canvasManager:bt,ignoreCSSAttributes:N,plugins:(null==(t=null==O?void 0:O.filter(e=>e.observer))?void 0:t.map(e=>({observer:e.observer,options:e.options,callback:t=>yt({type:Se.Plugin,data:{plugin:e.name,payload:t}})})))||[]},g)};W.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});const n=()=>{Et(),e.push(t(document)),vt=!0};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(X("DOMContentLoaded",()=>{yt({type:Se.DomContentLoaded,data:{}}),"DOMContentLoaded"===C&&n()})),e.push(X("load",()=>{yt({type:Se.Load,data:{}}),"load"===C&&n()},window))),()=>{e.forEach(e=>e()),V.destroy(),vt=!1,je=void 0}}catch(e){console.warn(e)}}St.addCustomEvent=(e,t)=>{if(!vt)throw new Error("please add custom event after start recording");yt({type:Se.Custom,data:{tag:e,payload:t}})},St.freezePage=()=>{Ge.forEach(e=>e.freeze())},St.takeFullSnapshot=e=>{if(!vt)throw new Error("please take full snapshot after start recording");Et(e)},St.mirror=Tt;Object.defineProperty,Object.defineProperty;function Ct(e){return{all:e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(e){e(n)}),e.get("*")&&r.slice().map(function(e){e(t,n)})}}}Symbol.toStringTag;var It,Rt;(Rt=It||(It={}))[Rt.NotStarted=0]="NotStarted",Rt[Rt.Running=1]="Running",Rt[Rt.Stopped=2]="Stopped";const{addCustomEvent:wt}=St,{freezePage:Ot}=St},"../../node_modules/socket.io-client/build/esm/contrib/backo2.js":(e,t,n)=>{"use strict";function r(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:()=>r}),r.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)},r.prototype.reset=function(){this.attempts=0},r.prototype.setMin=function(e){this.ms=e},r.prototype.setMax=function(e){this.max=e},r.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 r=n("../../node_modules/socket.io-client/build/esm/url.js"),o=n("../../node_modules/socket.io-client/build/esm/manager.js"),s=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,r.url)(e,t.path||"/socket.io"),s=n.source,a=n.id,l=n.path,u=i[a]&&l in i[a].nsps;let c;return t.forceNew||t["force new connection"]||!1===t.multiplex||u?c=new o.Manager(s,t):(i[a]||(i[a]=new o.Manager(s,t)),c=i[a]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(a,{Manager:o.Manager,Socket:s.Socket,io:a,connect:a})},"../../node_modules/socket.io-client/build/esm/manager.js":(e,t,n)=>{"use strict";n.d(t,{Manager:()=>u});var r=n("../../node_modules/engine.io-client/build/esm/index.js"),o=n("../../node_modules/socket.io-client/build/esm/socket.js"),s=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 u 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,r.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 o=t.parser||s;this.encoder=new o.Encoder,this.decoder=new o.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 r.Socket(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const o=(0,i.on)(t,"open",function(){n.onopen(),e&&e()}),s=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},a=(0,i.on)(t,"error",s);if(!1!==this._timeout){const e=this._timeout,n=this.setTimeoutFn(()=>{o(),s(new Error("timeout")),t.close()},e);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}return this.subs.push(o),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,r.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 o.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 r(e,t,n){return e.on(t,n),function(){e.off(t,n)}}n.d(t,{on:()=>r})},"../../node_modules/socket.io-client/build/esm/socket.js":(e,t,n)=>{"use strict";n.d(t,{Socket:()=>a});var r=n("../../node_modules/socket.io-parser/build/esm/index.js"),o=n("../../node_modules/socket.io-client/build/esm/on.js"),s=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 s.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,o.on)(e,"open",this.onopen.bind(this)),(0,o.on)(e,"packet",this.onpacket.bind(this)),(0,o.on)(e,"error",this.onerror.bind(this)),(0,o.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:r.PacketType.EVENT,data:t,options:{}};if(n.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++,r=t.pop();this._registerAckCallback(e,r),n.id=e}const o=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!o||!this.connected)||(this.connected?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(e,t){var n;const r=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0===r)return void(this.acks[e]=t);const o=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"))},r),s=(...e)=>{this.io.clearTimeoutFn(o),t.apply(this,e)};s.withError=!0,this.acks[e]=s}emitWithAck(e,...t){return new Promise((n,r)=>{const o=(e,t)=>e?r(e):n(t);o.withError=!0,t.push(o),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,...r)=>{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,...r)),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:r.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 r.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 r.PacketType.EVENT:case r.PacketType.BINARY_EVENT:this.onevent(e);break;case r.PacketType.ACK:case r.PacketType.BINARY_ACK:this.onack(e);break;case r.PacketType.DISCONNECT:this.ondisconnect();break;case r.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(...o){n||(n=!0,t.packet({type:r.PacketType.ACK,id:e,data:o}))}}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:r.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:()=>o});var r=n("../../node_modules/engine.io-client/build/esm/index.js");function o(e,t="",n){let o=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),o=(0,r.parse)(e)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";const s=-1!==o.host.indexOf(":")?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+s+":"+o.port+t,o.href=o.protocol+"://"+s+(n&&n.port===o.port?"":":"+o.port),o}},"../../node_modules/socket.io-parser/build/esm/binary.js":(e,t,n)=>{"use strict";n.d(t,{deconstructPacket:()=>o,reconstructPacket:()=>i});var r=n("../../node_modules/socket.io-parser/build/esm/is-binary.js");function o(e){const t=[],n=e.data,r=e;return r.data=s(n,t),r.attachments=t.length,{packet:r,buffers:t}}function s(e,t){if(!e)return e;if((0,r.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 r=0;r<e.length;r++)n[r]=s(e[r],t);return n}if("object"==typeof e&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=s(e[r],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:()=>u,PacketType:()=>l,protocol:()=>a});var r=n("../../node_modules/@socket.io/component-emitter/lib/esm/index.js"),o=n("../../node_modules/socket.io-parser/build/esm/binary.js"),s=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 u{constructor(e){this.replacer=e}encode(e){return e.type!==l.EVENT&&e.type!==l.ACK||!(0,s.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,o.deconstructPacket)(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}}function c(e){return"[object Object]"===Object.prototype.toString.call(e)}class d extends r.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,s.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 r=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const o=e.substring(r,t);if(o!=Number(o)||"-"!==e.charAt(t))throw new Error("Illegal attachments");n.attachments=Number(o)}if("/"===e.charAt(t+1)){const r=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}n.nsp=e.substring(r,t)}else n.nsp="/";const r=e.charAt(t+1);if(""!==r&&Number(r)==r){const r=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(r,t+1))}if(e.charAt(++t)){const r=this.tryParse(e.substr(t));if(!d.isPayloadValid(n.type,r))throw new Error("invalid payload");n.data=r}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 c(t);case l.DISCONNECT:return void 0===t;case l.CONNECT_ERROR:return"string"==typeof t||c(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,o.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:()=>u,isBinary:()=>l});const r="function"==typeof ArrayBuffer,o=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,s=Object.prototype.toString,i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===s.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===s.call(File);function l(e){return r&&(e instanceof ArrayBuffer||o(e))||i&&e instanceof Blob||a&&e instanceof File}function u(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(u(e[t]))return!0;return!1}if(l(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return u(e.toJSON(),!0);for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&u(e[t]))return!0;return!1}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var s=t[r]={id:r,loaded:!1,exports:{}};return e[r](s,s.exports,n),s.loaded=!0,s.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 r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},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 r={};return(()=>{"use strict";n.r(r),n.d(r,{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_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_OTEL_DEFAULT_LOGS_EXPORTER_URL:()=>s.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_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,SessionRecorderHttpTraceExporterBrowser:()=>s.SessionRecorderHttpTraceExporterBrowser,SessionRecorderIdGenerator:()=>s.SessionRecorderIdGenerator,SessionRecorderJsonTraceSerializer:()=>s.SessionRecorderJsonTraceSerializer,SessionRecorderSdk:()=>s.SessionRecorderSdk,SessionRecorderTraceIdRatioBasedSampler:()=>s.SessionRecorderTraceIdRatioBasedSampler,SessionType:()=>s.SessionType,default:()=>a,recorderEventBus:()=>t.recorderEventBus});n("./src/patch/index.ts");var e=n("./src/listeners.ts"),t=n("./src/eventBus.ts"),o=n("./src/sessionRecorder.ts"),s=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/index-browser.js");const i=new o.SessionRecorder;"undefined"!=typeof window&&(window.__SESSION_RECORDER_LOADED=!0,window.SessionRecorder=i,(0,e.setupListeners)(i));const a=i})(),r})());
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:()=>o,NoopLogger:()=>r});var r=function(){function e(){}return e.prototype.emit=function(e){},e}(),o=new r},"../../node_modules/@opentelemetry/api-logs/build/esm/NoopLoggerProvider.js":(e,t,n)=>{"use strict";n.d(t,{NOOP_LOGGER_PROVIDER:()=>o});var r=n("../../node_modules/@opentelemetry/api-logs/build/esm/NoopLogger.js"),o=new(function(){function e(){}return e.prototype.getLogger=function(e,t,n){return new r.NoopLogger},e}())},"../../node_modules/@opentelemetry/api-logs/build/esm/ProxyLogger.js":(e,t,n)=>{"use strict";n.d(t,{ProxyLogger:()=>o});var r=n("../../node_modules/@opentelemetry/api-logs/build/esm/NoopLogger.js"),o=function(){function e(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}return e.prototype.emit=function(e){this._getLogger().emit(e)},e.prototype._getLogger=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):r.NOOP_LOGGER},e}()},"../../node_modules/@opentelemetry/api-logs/build/esm/ProxyLoggerProvider.js":(e,t,n)=>{"use strict";n.d(t,{ProxyLoggerProvider:()=>s});var r=n("../../node_modules/@opentelemetry/api-logs/build/esm/NoopLoggerProvider.js"),o=n("../../node_modules/@opentelemetry/api-logs/build/esm/ProxyLogger.js"),s=function(){function e(){}return e.prototype.getLogger=function(e,t,n){var r;return null!==(r=this.getDelegateLogger(e,t,n))&&void 0!==r?r:new o.ProxyLogger(this,e,t,n)},e.prototype.getDelegate=function(){var e;return null!==(e=this._delegate)&&void 0!==e?e:r.NOOP_LOGGER_PROVIDER},e.prototype.setDelegate=function(e){this._delegate=e},e.prototype.getDelegateLogger=function(e,t,n){var r;return null===(r=this._delegate)||void 0===r?void 0:r.getLogger(e,t,n)},e}()},"../../node_modules/@opentelemetry/api-logs/build/esm/api/logs.js":(e,t,n)=>{"use strict";n.d(t,{LogsAPI:()=>i});var r=n("../../node_modules/@opentelemetry/api-logs/build/esm/internal/global-utils.js"),o=n("../../node_modules/@opentelemetry/api-logs/build/esm/NoopLoggerProvider.js"),s=n("../../node_modules/@opentelemetry/api-logs/build/esm/ProxyLoggerProvider.js"),i=function(){function e(){this._proxyLoggerProvider=new s.ProxyLoggerProvider}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalLoggerProvider=function(e){return r._global[r.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(r._global[r.GLOBAL_LOGS_API_KEY]=(0,r.makeGetter)(r.API_BACKWARDS_COMPATIBILITY_VERSION,e,o.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)},e.prototype.getLoggerProvider=function(){var e,t;return null!==(t=null===(e=r._global[r.GLOBAL_LOGS_API_KEY])||void 0===e?void 0:e.call(r._global,r.API_BACKWARDS_COMPATIBILITY_VERSION))&&void 0!==t?t:this._proxyLoggerProvider},e.prototype.getLogger=function(e,t,n){return this.getLoggerProvider().getLogger(e,t,n)},e.prototype.disable=function(){delete r._global[r.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new s.ProxyLoggerProvider},e}()},"../../node_modules/@opentelemetry/api-logs/build/esm/index.js":(e,t,n)=>{"use strict";n.d(t,{logs:()=>r});var r=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:()=>o,_global:()=>s,makeGetter:()=>i});var r=n("../../node_modules/@opentelemetry/api-logs/build/esm/platform/browser/globalThis.js"),o=Symbol.for("io.opentelemetry.js.api.logs"),s=r._globalThis;function i(e,t,n){return function(r){return r===e?t:n}}var a=1},"../../node_modules/@opentelemetry/api-logs/build/esm/platform/browser/globalThis.js":(e,t,n)=>{"use strict";n.d(t,{_globalThis:()=>r});var r="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:()=>c});var r=n("../../node_modules/@opentelemetry/api/build/esm/context/NoopContextManager.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),s=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 r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},a=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,s=t.length;o<s;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},l="context",u=new r.NoopContextManager,c=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(e){return(0,o.registerGlobal)(l,e,s.DiagAPI.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(e,t,n){for(var r,o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];return(r=this._getContextManager()).with.apply(r,a([e,t,n],i(o),!1))},e.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},e.prototype._getContextManager=function(){return(0,o.getGlobal)(l)||u},e.prototype.disable=function(){this._getContextManager().disable(),(0,o.unregisterGlobal)(l,s.DiagAPI.instance())},e}()},"../../node_modules/@opentelemetry/api/build/esm/api/diag.js":(e,t,n)=>{"use strict";n.d(t,{DiagAPI:()=>u});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag/ComponentLogger.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/diag/internal/logLevelLogger.js"),s=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 r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},l=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,s=t.length;o<s;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},u=function(){function e(){function e(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=(0,i.getGlobal)("diag");if(r)return r[e].apply(r,l([],a(t),!1))}}var t=this;t.setLogger=function(e,n){var r,a,l;if(void 0===n&&(n={logLevel:s.DiagLogLevel.INFO}),e===t){var u=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!==(r=u.stack)&&void 0!==r?r:u.message),!1}"number"==typeof n&&(n={logLevel:n});var c=(0,i.getGlobal)("diag"),d=(0,o.createLogLevelDiagLogger)(null!==(a=n.logLevel)&&void 0!==a?a:s.DiagLogLevel.INFO,e);if(c&&!n.suppressOverrideMessage){var p=null!==(l=(new Error).stack)&&void 0!==l?l:"<failed to generate stacktrace>";c.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 r.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 r=n("../../node_modules/@opentelemetry/api/build/esm/metrics/NoopMeterProvider.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),s=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,o.registerGlobal)(i,e,s.DiagAPI.instance())},e.prototype.getMeterProvider=function(){return(0,o.getGlobal)(i)||r.NOOP_METER_PROVIDER},e.prototype.getMeter=function(e,t,n){return this.getMeterProvider().getMeter(e,t,n)},e.prototype.disable=function(){(0,o.unregisterGlobal)(i,s.DiagAPI.instance())},e}()},"../../node_modules/@opentelemetry/api/build/esm/api/propagation.js":(e,t,n)=>{"use strict";n.d(t,{PropagationAPI:()=>d});var r=n("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/propagation/NoopTextMapPropagator.js"),s=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"),u="propagation",c=new o.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,r.registerGlobal)(u,e,l.DiagAPI.instance())},e.prototype.inject=function(e,t,n){return void 0===n&&(n=s.defaultTextMapSetter),this._getGlobalPropagator().inject(e,t,n)},e.prototype.extract=function(e,t,n){return void 0===n&&(n=s.defaultTextMapGetter),this._getGlobalPropagator().extract(e,t,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){(0,r.unregisterGlobal)(u,l.DiagAPI.instance())},e.prototype._getGlobalPropagator=function(){return(0,r.getGlobal)(u)||c},e}()},"../../node_modules/@opentelemetry/api/build/esm/api/trace.js":(e,t,n)=>{"use strict";n.d(t,{TraceAPI:()=>u});var r=n("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace/ProxyTracerProvider.js"),s=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",u=function(){function e(){this._proxyTracerProvider=new o.ProxyTracerProvider,this.wrapSpanContext=s.wrapSpanContext,this.isSpanContextValid=s.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,r.registerGlobal)(l,this._proxyTracerProvider,a.DiagAPI.instance());return t&&this._proxyTracerProvider.setDelegate(e),t},e.prototype.getTracerProvider=function(){return(0,r.getGlobal)(l)||this._proxyTracerProvider},e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},e.prototype.disable=function(){(0,r.unregisterGlobal)(l,a.DiagAPI.instance()),this._proxyTracerProvider=new o.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:()=>s,setBaggage:()=>a});var r=n("../../node_modules/@opentelemetry/api/build/esm/api/context.js"),o=(0,n("../../node_modules/@opentelemetry/api/build/esm/context/context.js").createContextKey)("OpenTelemetry Baggage Key");function s(e){return e.getValue(o)||void 0}function i(){return s(r.ContextAPI.getInstance().active())}function a(e,t){return e.setValue(o,t)}function l(e){return e.deleteValue(o)}},"../../node_modules/@opentelemetry/api/build/esm/baggage/internal/baggage-impl.js":(e,t,n)=>{"use strict";n.d(t,{BaggageImpl:()=>s});var r=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},o=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=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=r(e,2);return[t[0],t[1]]})},e.prototype.setEntry=function(t,n){var r=new e(this._entries);return r._entries.set(t,n),r},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,r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var i=new e(this._entries);try{for(var a=o(r),l=a.next();!l.done;l=a.next()){var u=l.value;i._entries.delete(u)}}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:()=>r});var r=Symbol("BaggageEntryMetadata")},"../../node_modules/@opentelemetry/api/build/esm/baggage/utils.js":(e,t,n)=>{"use strict";n.d(t,{baggageEntryMetadataFromString:()=>l,createBaggage:()=>a});var r=n("../../node_modules/@opentelemetry/api/build/esm/api/diag.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/baggage/internal/baggage-impl.js"),s=n("../../node_modules/@opentelemetry/api/build/esm/baggage/internal/symbol.js"),i=r.DiagAPI.instance();function a(e){return void 0===e&&(e={}),new o.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__:s.baggageEntryMetadataSymbol,toString:function(){return e}}}},"../../node_modules/@opentelemetry/api/build/esm/context-api.js":(e,t,n)=>{"use strict";n.d(t,{context:()=>r});var r=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 r=n("../../node_modules/@opentelemetry/api/build/esm/context/context.js"),o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},s=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,s=t.length;o<s;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},i=function(){function e(){}return e.prototype.active=function(){return r.ROOT_CONTEXT},e.prototype.with=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];return t.call.apply(t,s([n],o(r),!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 r(e){return Symbol.for(e)}n.d(t,{ROOT_CONTEXT:()=>o,createContextKey:()=>r});var o=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,r){var o=new e(n._currentContext);return o._currentContext.set(t,r),o},n.deleteValue=function(t){var r=new e(n._currentContext);return r._currentContext.delete(t),r}}},"../../node_modules/@opentelemetry/api/build/esm/diag-api.js":(e,t,n)=>{"use strict";n.d(t,{diag:()=>r});var r=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 r=n("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},s=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,s=t.length;o<s;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||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,r.getGlobal)("diag");if(i)return n.unshift(t),i[e].apply(i,s([],o(n),!1))}},"../../node_modules/@opentelemetry/api/build/esm/diag/internal/logLevelLogger.js":(e,t,n)=>{"use strict";n.d(t,{createLogLevelDiagLogger:()=>o});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag/types.js");function o(e,t){function n(n,r){var o=t[n];return"function"==typeof o&&e>=r?o.bind(t):function(){}}return e<r.DiagLogLevel.NONE?e=r.DiagLogLevel.NONE:e>r.DiagLogLevel.ALL&&(e=r.DiagLogLevel.ALL),t=t||{},{error:n("error",r.DiagLogLevel.ERROR),warn:n("warn",r.DiagLogLevel.WARN),info:n("info",r.DiagLogLevel.INFO),debug:n("debug",r.DiagLogLevel.DEBUG),verbose:n("verbose",r.DiagLogLevel.VERBOSE)}}},"../../node_modules/@opentelemetry/api/build/esm/diag/types.js":(e,t,n)=>{"use strict";var r;n.d(t,{DiagLogLevel:()=>r}),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"}(r||(r={}))},"../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js":(e,t,n)=>{"use strict";n.d(t,{getGlobal:()=>c,registerGlobal:()=>u,unregisterGlobal:()=>d});var r=n("../../node_modules/@opentelemetry/api/build/esm/platform/browser/globalThis.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/version.js"),s=n("../../node_modules/@opentelemetry/api/build/esm/internal/semver.js"),i=o.VERSION.split(".")[0],a=Symbol.for("opentelemetry.js.api."+i),l=r._globalThis;function u(e,t,n,r){var s;void 0===r&&(r=!1);var i=l[a]=null!==(s=l[a])&&void 0!==s?s:{version:o.VERSION};if(!r&&i[e]){var u=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return n.error(u.stack||u.message),!1}if(i.version!==o.VERSION){u=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+e+" does not match previously registered API v"+o.VERSION);return n.error(u.stack||u.message),!1}return i[e]=t,n.debug("@opentelemetry/api: Registered a global for "+e+" v"+o.VERSION+"."),!0}function c(e){var t,n,r=null===(t=l[a])||void 0===t?void 0:t.version;if(r&&(0,s.isCompatible)(r))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"+o.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:()=>s});var r=n("../../node_modules/@opentelemetry/api/build/esm/version.js"),o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;var s=function(e){var t=new Set([e]),n=new Set,r=e.match(o);if(!r)return function(){return!1};var s=+r[1],i=+r[2],a=+r[3];if(null!=r[4])return function(t){return t===e};function l(e){return n.add(e),!1}function u(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(n.has(e))return!1;var r=e.match(o);if(!r)return l(e);var c=+r[1],d=+r[2],p=+r[3];return null!=r[4]||s!==c?l(e):0===s?i===d&&a<=p?u(e):l(e):i<=d?u(e):l(e)}}(r.VERSION)},"../../node_modules/@opentelemetry/api/build/esm/metrics-api.js":(e,t,n)=>{"use strict";n.d(t,{metrics:()=>r});var r=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:()=>f});var r,o=(r=function(e,t){return r=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])},r(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(){function e(){}return e.prototype.createGauge=function(e,t){return g},e.prototype.createHistogram=function(e,t){return _},e.prototype.createCounter=function(e,t){return A},e.prototype.createUpDownCounter=function(e,t){return y},e.prototype.createObservableGauge=function(e,t){return b},e.prototype.createObservableCounter=function(e,t){return E},e.prototype.createObservableUpDownCounter=function(e,t){return v},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 o(t,e),t.prototype.add=function(e,t){},t}(i),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.add=function(e,t){},t}(i),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.record=function(e,t){},t}(i),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(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 o(t,e),t}(d),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(d),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(d),f=new s,A=new a,g=new u,_=new c,y=new l,E=new p,b=new m,v=new h},"../../node_modules/@opentelemetry/api/build/esm/metrics/NoopMeterProvider.js":(e,t,n)=>{"use strict";n.d(t,{NOOP_METER_PROVIDER:()=>o});var r=n("../../node_modules/@opentelemetry/api/build/esm/metrics/NoopMeter.js"),o=new(function(){function e(){}return e.prototype.getMeter=function(e,t,n){return r.NOOP_METER},e}())},"../../node_modules/@opentelemetry/api/build/esm/platform/browser/globalThis.js":(e,t,n)=>{"use strict";n.d(t,{_globalThis:()=>r});var r="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:()=>r});var r=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:()=>r});var r=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:()=>r,defaultTextMapSetter:()=>o});var r={get:function(e,t){if(null!=e)return e[t]},keys:function(e){return null==e?[]:Object.keys(e)}},o={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:()=>r});var r=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:()=>o});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js"),o=function(){function e(e){void 0===e&&(e=r.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 r=n("../../node_modules/@opentelemetry/api/build/esm/api/context.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace/context-utils.js"),s=n("../../node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"),a=r.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 s.NonRecordingSpan;var r,l=n&&(0,o.getSpanContext)(n);return"object"==typeof(r=l)&&"string"==typeof r.spanId&&"string"==typeof r.traceId&&"number"==typeof r.traceFlags&&(0,i.isSpanContextValid)(l)?new s.NonRecordingSpan(l):new s.NonRecordingSpan},e.prototype.startActiveSpan=function(e,t,n,r){var s,i,l;if(!(arguments.length<2)){2===arguments.length?l=t:3===arguments.length?(s=t,l=n):(s=t,i=n,l=r);var u=null!=i?i:a.active(),c=this.startSpan(e,s,u),d=(0,o.setSpan)(u,c);return a.with(d,l,void 0,c)}},e}()},"../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracerProvider.js":(e,t,n)=>{"use strict";n.d(t,{NoopTracerProvider:()=>o});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js"),o=function(){function e(){}return e.prototype.getTracer=function(e,t,n){return new r.NoopTracer},e}()},"../../node_modules/@opentelemetry/api/build/esm/trace/ProxyTracer.js":(e,t,n)=>{"use strict";n.d(t,{ProxyTracer:()=>o});var r=new(n("../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js").NoopTracer),o=function(){function e(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}return e.prototype.startSpan=function(e,t,n){return this._getTracer().startSpan(e,t,n)},e.prototype.startActiveSpan=function(e,t,n,r){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,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):r},e}()},"../../node_modules/@opentelemetry/api/build/esm/trace/ProxyTracerProvider.js":(e,t,n)=>{"use strict";n.d(t,{ProxyTracerProvider:()=>s});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace/ProxyTracer.js"),o=new(n("../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracerProvider.js").NoopTracerProvider),s=function(){function e(){}return e.prototype.getTracer=function(e,t,n){var o;return null!==(o=this.getDelegateTracer(e,t,n))&&void 0!==o?o:new r.ProxyTracer(this,e,t,n)},e.prototype.getDelegate=function(){var e;return null!==(e=this._delegate)&&void 0!==e?e:o},e.prototype.setDelegate=function(e){this._delegate=e},e.prototype.getDelegateTracer=function(e,t,n){var r;return null===(r=this._delegate)||void 0===r?void 0:r.getTracer(e,t,n)},e}()},"../../node_modules/@opentelemetry/api/build/esm/trace/SamplingResult.js":(e,t,n)=>{"use strict";var r;n.d(t,{SamplingDecision:()=>r}),function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(r||(r={}))},"../../node_modules/@opentelemetry/api/build/esm/trace/context-utils.js":(e,t,n)=>{"use strict";n.d(t,{deleteSpan:()=>c,getActiveSpan:()=>l,getSpan:()=>a,getSpanContext:()=>p,setSpan:()=>u,setSpanContext:()=>d});var r=n("../../node_modules/@opentelemetry/api/build/esm/context/context.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js"),s=n("../../node_modules/@opentelemetry/api/build/esm/api/context.js"),i=(0,r.createContextKey)("OpenTelemetry Context Key SPAN");function a(e){return e.getValue(i)||void 0}function l(){return a(s.ContextAPI.getInstance().active())}function u(e,t){return e.setValue(i,t)}function c(e){return e.deleteValue(i)}function d(e,t){return u(e,new o.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:()=>o,INVALID_SPAN_CONTEXT:()=>i,INVALID_TRACEID:()=>s});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js"),o="0000000000000000",s="00000000000000000000000000000000",i={traceId:s,spanId:o,traceFlags:r.TraceFlags.NONE}},"../../node_modules/@opentelemetry/api/build/esm/trace/span_kind.js":(e,t,n)=>{"use strict";var r;n.d(t,{SpanKind:()=>r}),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"}(r||(r={}))},"../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js":(e,t,n)=>{"use strict";n.d(t,{isSpanContextValid:()=>l,isValidTraceId:()=>a,wrapSpanContext:()=>u});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js"),s=/^([0-9a-f]{32})$/i,i=/^[0-9a-f]{16}$/i;function a(e){return s.test(e)&&e!==r.INVALID_TRACEID}function l(e){return a(e.traceId)&&(t=e.spanId,i.test(t)&&t!==r.INVALID_SPANID);var t}function u(e){return new o.NonRecordingSpan(e)}},"../../node_modules/@opentelemetry/api/build/esm/trace/status.js":(e,t,n)=>{"use strict";var r;n.d(t,{SpanStatusCode:()=>r}),function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"}(r||(r={}))},"../../node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js":(e,t,n)=>{"use strict";var r;n.d(t,{TraceFlags:()=>r}),function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"}(r||(r={}))},"../../node_modules/@opentelemetry/api/build/esm/version.js":(e,t,n)=>{"use strict";n.d(t,{VERSION:()=>r});var r="1.9.0"},"../../node_modules/@opentelemetry/auto-instrumentations-web/build/esm/index.js":(e,t,n)=>{"use strict";n.d(t,{getWebAutoInstrumentations:()=>r.getWebAutoInstrumentations});var r=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:()=>u});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),o=n("../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/index.js"),s=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"),l={"@opentelemetry/instrumentation-document-load":o.DocumentLoadInstrumentation,"@opentelemetry/instrumentation-fetch":s.FetchInstrumentation,"@opentelemetry/instrumentation-user-interaction":i.UserInteractionInstrumentation,"@opentelemetry/instrumentation-xml-http-request":a.XMLHttpRequestInstrumentation};function u(e){var t;void 0===e&&(e={});for(var n=0,o=Object.keys(e);n<o.length;n++){var s=o[n];Object.prototype.hasOwnProperty.call(l,s)||r.diag.error('Provided instrumentation name "'+s+'" not found')}for(var i=[],a=0,u=Object.keys(l);a<u.length;a++){var c=u[a],d=l[c],p=null!==(t=e[c])&&void 0!==t?t:{};if(!1!==p.enabled)try{r.diag.debug("Loading instrumentation for "+c),i.push(new d(p))}catch(e){r.diag.error(e)}else r.diag.debug("Disabling instrumentation for "+c)}return i}},"../../node_modules/@opentelemetry/core/build/esm/common/time.js":(e,t,n)=>{"use strict";n.d(t,{hrTime:()=>l});var r=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js"),o=Math.pow(10,6),s=Math.pow(10,9);function i(e){var t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*o)]}function a(){var e=r.otperformance.timeOrigin;if("number"!=typeof e){var t=r.otperformance;e=t.timing&&t.timing.fetchStart}return e}function l(e){return function(e,t){var n=[e[0]+t[0],e[1]+t[1]];n[1]>=s&&(n[1]-=s,n[0]+=1);return n}(i(a()),i("number"==typeof e?e:r.otperformance.now()))}},"../../node_modules/@opentelemetry/core/build/esm/internal/validators.js":(e,t,n)=>{"use strict";n.d(t,{validateKey:()=>a,validateValue:()=>l});var r="[_0-9a-z-*/]",o=new RegExp("^(?:"+("[a-z]"+r+"{0,255}")+"|"+("[a-z0-9]"+r+"{0,240}@[a-z]"+r+"{0,13}")+")$"),s=/^[ -~]{0,255}[!-~]$/,i=/,|=/;function a(e){return o.test(e)}function l(e){return s.test(e)&&!i.test(e)}},"../../node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js":(e,t,n)=>{"use strict";n.d(t,{otperformance:()=>r});var r=performance},"../../node_modules/@opentelemetry/core/build/esm/trace/TraceState.js":(e,t,n)=>{"use strict";n.d(t,{TraceState:()=>o});var r=n("../../node_modules/@opentelemetry/core/build/esm/internal/validators.js"),o=function(){function e(e){this._internalState=new Map,e&&this._parse(e)}return e.prototype.set=function(e,t){var n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n},e.prototype.unset=function(e){var t=this._clone();return t._internalState.delete(e),t},e.prototype.get=function(e){return this._internalState.get(e)},e.prototype.serialize=function(){var e=this;return this._keys().reduce(function(t,n){return t.push(n+"="+e.get(n)),t},[]).join(",")},e.prototype._parse=function(e){e.length>512||(this._internalState=e.split(",").reverse().reduce(function(e,t){var n=t.trim(),o=n.indexOf("=");if(-1!==o){var s=n.slice(0,o),i=n.slice(o+1,t.length);(0,r.validateKey)(s)&&(0,r.validateValue)(i)&&e.set(s,i)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}()},"../../node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js":(e,t,n)=>{"use strict";n.d(t,{TRACE_PARENT_HEADER:()=>l});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"),s=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"),l="traceparent",u="tracestate",c=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");!function(){function e(){}e.prototype.inject=function(e,t,n){var a=r.trace.getSpanContext(e);if(a&&!(0,i.isTracingSuppressed)(e)&&(0,o.isSpanContextValid)(a)){var c="00-"+a.traceId+"-"+a.spanId+"-0"+Number(a.traceFlags||s.TraceFlags.NONE).toString(16);n.set(t,l,c),a.traceState&&n.set(t,u,a.traceState.serialize())}},e.prototype.extract=function(e,t,n){var o=n.get(t,l);if(!o)return e;var s=Array.isArray(o)?o[0]:o;if("string"!=typeof s)return e;var i=function(e){var t=c.exec(e);return t?"00"===t[1]&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}:null}(s);if(!i)return e;i.isRemote=!0;var d=n.get(t,u);if(d){var p=Array.isArray(d)?d.join(","):d;i.traceState=new a.TraceState("string"==typeof p?p:void 0)}return r.trace.setSpanContext(e,i)},e.prototype.fields=function(){return[l,u]}}()},"../../node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js":(e,t,n)=>{"use strict";n.d(t,{isTracingSuppressed:()=>o});var r=(0,n("../../node_modules/@opentelemetry/api/build/esm/context/context.js").createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function o(e){return!0===e.getValue(r)}},"../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/enums/AttributeNames.js":(e,t,n)=>{"use strict";var r;n.d(t,{AttributeNames:()=>r}),function(e){e.DOCUMENT_LOAD="documentLoad",e.DOCUMENT_FETCH="documentFetch",e.RESOURCE_FETCH="resourceFetch"}(r||(r={}))},"../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/enums/EventNames.js":(e,t,n)=>{"use strict";var r;n.d(t,{EventNames:()=>r}),function(e){e.FIRST_PAINT="firstPaint",e.FIRST_CONTENTFUL_PAINT="firstContentfulPaint"}(r||(r={}))},"../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/index.js":(e,t,n)=>{"use strict";n.d(t,{DocumentLoadInstrumentation:()=>r.DocumentLoadInstrumentation});var r=n("../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/instrumentation.js");n("../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/enums/AttributeNames.js"),n("../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/types.js")},"../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/instrumentation.js":(e,t,n)=>{"use strict";n.d(t,{DocumentLoadInstrumentation:()=>y});var r,o=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),s=n("../../node_modules/@opentelemetry/api/build/esm/propagation-api.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/context/context.js"),a=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),l=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js"),u=n("../../node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js"),c=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/enums/PerformanceTimingNames.js"),d=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/utils.js"),p=n("../../node_modules/@opentelemetry/instrumentation/build/esm/utils.js"),m=n("../../node_modules/@opentelemetry/instrumentation/build/esm/platform/browser/instrumentation.js"),h=n("../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/enums/AttributeNames.js"),f=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"),_=(r=function(e,t){return r=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])},r(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,f.PACKAGE_NAME,f.PACKAGE_VERSION,t)||this;return n.component="document-load",n.version="1",n.moduleName=n.component,n}return _(t,e),t.prototype.init=function(){},t.prototype._onDocumentLoaded=function(){var e=this;window.setTimeout(function(){e._collectPerformance()})},t.prototype._addResourcesSpans=function(e){var t,n,r=this,o=null===(n=(t=l.otperformance).getEntriesByType)||void 0===n?void 0:n.call(t,"resource");o&&o.forEach(function(t){r._initResourceSpan(t,e)})},t.prototype._collectPerformance=function(){var e=this,t=Array.from(document.getElementsByTagName("meta")).find(function(e){return e.getAttribute("name")===u.TRACE_PARENT_HEADER}),n=(0,g.getPerformanceNavigationEntries)(),r=t&&t.content||"";o.context.with(s.propagation.extract(i.ROOT_CONTEXT,{traceparent:r}),function(){var t,r=e._startSpan(h.AttributeNames.DOCUMENT_LOAD,c.PerformanceTimingNames.FETCH_START,n);r&&(o.context.with(a.trace.setSpan(o.context.active(),r),function(){var t=e._startSpan(h.AttributeNames.DOCUMENT_FETCH,c.PerformanceTimingNames.FETCH_START,n);t&&(t.setAttribute(A.SEMATTRS_HTTP_URL,location.href),o.context.with(a.trace.setSpan(o.context.active(),t),function(){var r;e.getConfig().ignoreNetworkEvents||(0,d.addSpanNetworkEvents)(t,n),e._addCustomAttributesOnSpan(t,null===(r=e.getConfig().applyCustomAttributesOnSpan)||void 0===r?void 0:r.documentFetch),e._endSpan(t,c.PerformanceTimingNames.RESPONSE_END,n)}))}),r.setAttribute(A.SEMATTRS_HTTP_URL,location.href),r.setAttribute(A.SEMATTRS_HTTP_USER_AGENT,navigator.userAgent),e._addResourcesSpans(r),e.getConfig().ignoreNetworkEvents||((0,d.addSpanNetworkEvent)(r,c.PerformanceTimingNames.FETCH_START,n),(0,d.addSpanNetworkEvent)(r,c.PerformanceTimingNames.UNLOAD_EVENT_START,n),(0,d.addSpanNetworkEvent)(r,c.PerformanceTimingNames.UNLOAD_EVENT_END,n),(0,d.addSpanNetworkEvent)(r,c.PerformanceTimingNames.DOM_INTERACTIVE,n),(0,d.addSpanNetworkEvent)(r,c.PerformanceTimingNames.DOM_CONTENT_LOADED_EVENT_START,n),(0,d.addSpanNetworkEvent)(r,c.PerformanceTimingNames.DOM_CONTENT_LOADED_EVENT_END,n),(0,d.addSpanNetworkEvent)(r,c.PerformanceTimingNames.DOM_COMPLETE,n),(0,d.addSpanNetworkEvent)(r,c.PerformanceTimingNames.LOAD_EVENT_START,n),(0,d.addSpanNetworkEvent)(r,c.PerformanceTimingNames.LOAD_EVENT_END,n)),e.getConfig().ignorePerformancePaintEvents||(0,g.addSpanPerformancePaintEvents)(r),e._addCustomAttributesOnSpan(r,null===(t=e.getConfig().applyCustomAttributesOnSpan)||void 0===t?void 0:t.documentLoad),e._endSpan(r,c.PerformanceTimingNames.LOAD_EVENT_END,n))})},t.prototype._endSpan=function(e,t,n){e&&((0,d.hasKey)(n,t)?e.end(n[t]):e.end())},t.prototype._initResourceSpan=function(e,t){var n,r=this._startSpan(h.AttributeNames.RESOURCE_FETCH,c.PerformanceTimingNames.FETCH_START,e,t);r&&(r.setAttribute(A.SEMATTRS_HTTP_URL,e.name),this.getConfig().ignoreNetworkEvents||(0,d.addSpanNetworkEvents)(r,e),this._addCustomAttributesOnResourceSpan(r,e,null===(n=this.getConfig().applyCustomAttributesOnSpan)||void 0===n?void 0:n.resourceFetch),this._endSpan(r,c.PerformanceTimingNames.RESPONSE_END,e))},t.prototype._startSpan=function(e,t,n,r){if((0,d.hasKey)(n,t)&&"number"==typeof n[t])return this.tracer.startSpan(e,{startTime:n[t]},r?a.trace.setSpan(o.context.active(),r):void 0)},t.prototype._waitForPageLoad=function(){"complete"===window.document.readyState?this._onDocumentLoaded():(this._onDocumentLoaded=this._onDocumentLoaded.bind(this),window.addEventListener("load",this._onDocumentLoaded))},t.prototype._addCustomAttributesOnSpan=function(e,t){var n=this;t&&(0,p.safeExecuteInTheMiddle)(function(){return t(e)},function(e){e&&n._diag.error("addCustomAttributesOnSpan",e)},!0)},t.prototype._addCustomAttributesOnResourceSpan=function(e,t,n){var r=this;n&&(0,p.safeExecuteInTheMiddle)(function(){return n(e,t)},function(e){e&&r._diag.error("addCustomAttributesOnResourceSpan",e)},!0)},t.prototype.enable=function(){window.removeEventListener("load",this._onDocumentLoaded),this._waitForPageLoad()},t.prototype.disable=function(){window.removeEventListener("load",this._onDocumentLoaded)},t}(m.InstrumentationBase)},"../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/types.js":()=>{},"../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/utils.js":(e,t,n)=>{"use strict";n.d(t,{addSpanPerformancePaintEvents:()=>u,getPerformanceNavigationEntries:()=>a});var r=n("../../node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js"),o=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/enums/PerformanceTimingNames.js"),s=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/utils.js"),i=n("../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/enums/EventNames.js"),a=function(){var e,t,n={},i=null===(t=(e=r.otperformance).getEntriesByType)||void 0===t?void 0:t.call(e,"navigation")[0];if(i){Object.values(o.PerformanceTimingNames).forEach(function(e){if((0,s.hasKey)(i,e)){var t=i[e];"number"==typeof t&&(n[e]=t)}})}else{var a=r.otperformance.timing;if(a)Object.values(o.PerformanceTimingNames).forEach(function(e){if((0,s.hasKey)(a,e)){var t=a[e];"number"==typeof t&&(n[e]=t)}})}return n},l={"first-paint":i.EventNames.FIRST_PAINT,"first-contentful-paint":i.EventNames.FIRST_CONTENTFUL_PAINT},u=function(e){var t,n,o=null===(n=(t=r.otperformance).getEntriesByType)||void 0===n?void 0:n.call(t,"paint");o&&o.forEach(function(t){var n=t.name,r=t.startTime;(0,s.hasKey)(l,n)&&e.addEvent(l[n],r)})}},"../../node_modules/@opentelemetry/instrumentation-document-load/build/esm/version.js":(e,t,n)=>{"use strict";n.d(t,{PACKAGE_NAME:()=>o,PACKAGE_VERSION:()=>r});var r="0.43.0",o="@opentelemetry/instrumentation-document-load"},"../../node_modules/@opentelemetry/instrumentation-fetch/build/esm/enums/AttributeNames.js":(e,t,n)=>{"use strict";var r;n.d(t,{AttributeNames:()=>r}),function(e){e.COMPONENT="component",e.HTTP_ERROR_NAME="http.error_name",e.HTTP_STATUS_TEXT="http.status_text"}(r||(r={}))},"../../node_modules/@opentelemetry/instrumentation-fetch/build/esm/fetch.js":(e,t,n)=>{"use strict";n.d(t,{FetchInstrumentation:()=>S});var r,o,s=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/api/build/esm/propagation-api.js"),l=n("../../node_modules/@opentelemetry/api/build/esm/trace/span_kind.js"),u=n("../../node_modules/@opentelemetry/instrumentation/build/esm/utils.js"),c=n("../../node_modules/@opentelemetry/instrumentation/build/esm/platform/browser/instrumentation.js"),d=n("../../node_modules/@opentelemetry/instrumentation-fetch/node_modules/@opentelemetry/core/build/esm/utils/url.js"),p=n("../../node_modules/@opentelemetry/instrumentation-fetch/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"),f=n("../../node_modules/@opentelemetry/instrumentation-fetch/build/esm/enums/AttributeNames.js"),A=n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js"),g=n("../../node_modules/@opentelemetry/instrumentation-fetch/build/esm/utils.js"),_=n("../../node_modules/@opentelemetry/instrumentation-fetch/build/esm/version.js"),y=n("../../node_modules/@opentelemetry/instrumentation-fetch/node_modules/@opentelemetry/core/build/esm/platform/browser/globalThis.js"),E=(r=function(e,t){return r=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])},r(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),b=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},v=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,s=t.length;o<s;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},T="object"==typeof process&&"node"===(null===(o=process.release)||void 0===o?void 0:o.name),S=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,"@opentelemetry/instrumentation-fetch",_.VERSION,t)||this;return n.component="fetch",n.version=_.VERSION,n.moduleName=n.component,n._usedResources=new WeakSet,n._tasksCount=0,n}return E(t,e),t.prototype.init=function(){},t.prototype._addChildSpan=function(e,t){var n=this.tracer.startSpan("CORS Preflight",{startTime:t[m.PerformanceTimingNames.FETCH_START]},s.trace.setSpan(i.context.active(),e));this.getConfig().ignoreNetworkEvents||h.addSpanNetworkEvents(n,t),n.end(t[m.PerformanceTimingNames.RESPONSE_END])},t.prototype._addFinalSpanAttributes=function(e,t){var n=h.parseUrl(t.url);e.setAttribute(A.SEMATTRS_HTTP_STATUS_CODE,t.status),null!=t.statusText&&e.setAttribute(f.AttributeNames.HTTP_STATUS_TEXT,t.statusText),e.setAttribute(A.SEMATTRS_HTTP_HOST,n.host),e.setAttribute(A.SEMATTRS_HTTP_SCHEME,n.protocol.replace(":","")),"undefined"!=typeof navigator&&e.setAttribute(A.SEMATTRS_HTTP_USER_AGENT,navigator.userAgent)},t.prototype._addHeaders=function(e,t){if(!h.shouldPropagateTraceHeaders(t,this.getConfig().propagateTraceHeaderCorsUrls)){var n={};return a.propagation.inject(i.context.active(),n),void(Object.keys(n).length>0&&this._diag.debug("headers inject skipped due to CORS policy"))}if(e instanceof Request)a.propagation.inject(i.context.active(),e.headers,{set:function(e,t,n){return e.set(t,"string"==typeof n?n:String(n))}});else if(e.headers instanceof Headers)a.propagation.inject(i.context.active(),e.headers,{set:function(e,t,n){return e.set(t,"string"==typeof n?n:String(n))}});else if(e.headers instanceof Map)a.propagation.inject(i.context.active(),e.headers,{set:function(e,t,n){return e.set(t,"string"==typeof n?n:String(n))}});else{n={};a.propagation.inject(i.context.active(),n),e.headers=Object.assign({},n,e.headers||{})}},t.prototype._clearResources=function(){0===this._tasksCount&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)},t.prototype._createSpan=function(e,t){var n;if(void 0===t&&(t={}),!d.isUrlIgnored(e,this.getConfig().ignoreUrls)){var r=(t.method||"GET").toUpperCase(),o="HTTP "+r;return this.tracer.startSpan(o,{kind:l.SpanKind.CLIENT,attributes:(n={},n[f.AttributeNames.COMPONENT]=this.moduleName,n[A.SEMATTRS_HTTP_METHOD]=r,n[A.SEMATTRS_HTTP_URL]=e,n)})}this._diag.debug("ignoring span as url matches ignored url")},t.prototype._findResourceAndAddNetworkEvents=function(e,t,n){var r=t.entries;if(!r.length){if(!performance.getEntriesByType)return;r=performance.getEntriesByType("resource")}var o=h.getResource(t.spanUrl,t.startTime,n,r,this._usedResources,"fetch");if(o.mainRequest){var s=o.mainRequest;this._markResourceAsUsed(s);var i=o.corsPreFlightRequest;i&&(this._addChildSpan(e,i),this._markResourceAsUsed(i)),this.getConfig().ignoreNetworkEvents||h.addSpanNetworkEvents(e,s)}},t.prototype._markResourceAsUsed=function(e){this._usedResources.add(e)},t.prototype._endSpan=function(e,t,n){var r=this,o=p.millisToHrTime(Date.now()),s=p.hrTime();this._addFinalSpanAttributes(e,n),setTimeout(function(){var n;null===(n=t.observer)||void 0===n||n.disconnect(),r._findResourceAndAddNetworkEvents(e,t,s),r._tasksCount--,r._clearResources(),e.end(o)},300)},t.prototype._patchConstructor=function(){var e=this;return function(t){var n=e;return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=this,a=h.parseUrl(e[0]instanceof Request?e[0].url:String(e[0])).href,l=e[0]instanceof Request?e[0]:e[1]||{},u=n._createSpan(a,l);if(!u)return t.apply(this,e);var c=n._prepareSpanData(a);function d(e,t){n._applyAttributesAfterFetch(e,l,t),n._endSpan(e,c,{status:t.status||0,statusText:t.message,url:a})}function p(e,t){n._applyAttributesAfterFetch(e,l,t),t.status>=200&&t.status<400?n._endSpan(e,c,t):n._endSpan(e,c,{status:t.status,statusText:t.statusText,url:a})}function m(e,t,n){try{var r=n.clone(),o=n.clone(),s=r.body;if(s){var i=s.getReader(),a=function(){i.read().then(function(t){t.done?p(e,o):a()},function(t){d(e,t)})};a()}else p(e,n)}finally{t(n)}}function f(e,t,n){try{d(e,n)}finally{t(n)}}return n.getConfig().measureRequestSize&&g.getFetchBodyLength.apply(void 0,v([],b(e),!1)).then(function(e){e&&u.setAttribute(A.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED,e)}).catch(function(e){n._diag.warn("getFetchBodyLength",e)}),new Promise(function(e,r){return i.context.with(s.trace.setSpan(i.context.active(),u),function(){return n._addHeaders(l,a),n._tasksCount++,t.apply(o,l instanceof Request?[l]:[a,l]).then(m.bind(o,u,e),f.bind(o,u,r))})})}}},t.prototype._applyAttributesAfterFetch=function(e,t,n){var r=this,o=this.getConfig().applyCustomAttributesOnSpan;o&&(0,u.safeExecuteInTheMiddle)(function(){return o(e,t,n)},function(e){e&&r._diag.error("applyCustomAttributesOnSpan",e)},!0)},t.prototype._prepareSpanData=function(e){var t=p.hrTime(),n=[];if("function"!=typeof PerformanceObserver)return{entries:n,startTime:t,spanUrl:e};var r=new PerformanceObserver(function(t){t.getEntries().forEach(function(t){"fetch"===t.initiatorType&&t.name===e&&n.push(t)})});return r.observe({entryTypes:["resource"]}),{entries:n,observer:r,startTime:t,spanUrl:e}},t.prototype.enable=function(){T?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(y._globalThis,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(y._globalThis,"fetch",this._patchConstructor()))},t.prototype.disable=function(){T||(this._unwrap(y._globalThis,"fetch"),this._usedResources=new WeakSet)},t}(c.InstrumentationBase)},"../../node_modules/@opentelemetry/instrumentation-fetch/build/esm/utils.js":(e,t,n)=>{"use strict";n.d(t,{getFetchBodyLength:()=>u});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),o=function(e,t,n,r){return new(n||(n=Promise))(function(o,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function a(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,a)}l((r=r.apply(e,t||[])).next())})},s=function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}},i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},l=r.diag.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-fetch/utils"});function u(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e[0]instanceof URL||"string"==typeof e[0]){var n=e[1];if(!(null==n?void 0:n.body))return Promise.resolve();if(n.body instanceof ReadableStream){var r=function(e){if(!e.pipeThrough)return l.warn("Platform has ReadableStream but not pipeThrough!"),{body:e,length:Promise.resolve(void 0)};var t,n=0,r=new Promise(function(e){t=e}),i=new TransformStream({start:function(){},transform:function(e,t){return o(this,void 0,void 0,function(){var r;return s(this,function(o){switch(o.label){case 0:return[4,e];case 1:return r=o.sent(),n+=r.byteLength,t.enqueue(e),[2]}})})},flush:function(){t(n)}});return{body:e.pipeThrough(i),length:r}}(n.body),u=r.body,c=r.length;return n.body=u,c}return Promise.resolve(function(e){if("undefined"!=typeof Document&&e instanceof Document)return(new XMLSerializer).serializeToString(document).length;if(e instanceof Blob)return e.size;if(void 0!==e.byteLength)return e.byteLength;if(e instanceof FormData)return function(e){var t,n,r=0;try{for(var o=i(e.entries()),s=o.next();!s.done;s=o.next()){var l=a(s.value,2),u=l[0],c=l[1];r+=u.length,c instanceof Blob?r+=c.size:r+=c.length}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}(e);if(e instanceof URLSearchParams)return d(e.toString());if("string"==typeof e)return d(e);return void l.warn("unknown body type")}(n.body))}var p=e[0];return(null==p?void 0:p.body)?p.clone().text().then(function(e){return d(e)}):Promise.resolve()}var c=new TextEncoder;function d(e){return c.encode(e).byteLength}},"../../node_modules/@opentelemetry/instrumentation-fetch/build/esm/version.js":(e,t,n)=>{"use strict";n.d(t,{VERSION:()=>r});var r="0.56.0"},"../../node_modules/@opentelemetry/instrumentation-fetch/node_modules/@opentelemetry/core/build/esm/common/time.js":(e,t,n)=>{"use strict";n.d(t,{hrTime:()=>l,millisToHrTime:()=>i});var r=n("../../node_modules/@opentelemetry/instrumentation-fetch/node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js"),o=Math.pow(10,6),s=Math.pow(10,9);function i(e){var t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*o)]}function a(){var e=r.otperformance.timeOrigin;if("number"!=typeof e){var t=r.otperformance;e=t.timing&&t.timing.fetchStart}return e}function l(e){return function(e,t){var n=[e[0]+t[0],e[1]+t[1]];n[1]>=s&&(n[1]-=s,n[0]+=1);return n}(i(a()),i("number"==typeof e?e:r.otperformance.now()))}},"../../node_modules/@opentelemetry/instrumentation-fetch/node_modules/@opentelemetry/core/build/esm/platform/browser/globalThis.js":(e,t,n)=>{"use strict";n.d(t,{_globalThis:()=>r});var r="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof n.g?n.g:{}},"../../node_modules/@opentelemetry/instrumentation-fetch/node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js":(e,t,n)=>{"use strict";n.d(t,{otperformance:()=>r});var r=performance},"../../node_modules/@opentelemetry/instrumentation-fetch/node_modules/@opentelemetry/core/build/esm/utils/url.js":(e,t,n)=>{"use strict";n.d(t,{isUrlIgnored:()=>s});var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function o(e,t){return"string"==typeof t?e===t:!!e.match(t)}function s(e,t){var n,s;if(!t)return!1;try{for(var i=r(t),a=i.next();!a.done;a=i.next()){if(o(e,a.value))return!0}}catch(e){n={error:e}}finally{try{a&&!a.done&&(s=i.return)&&s.call(i)}finally{if(n)throw n.error}}return!1}},"../../node_modules/@opentelemetry/instrumentation-user-interaction/build/esm/enums/AttributeNames.js":(e,t,n)=>{"use strict";var r;n.d(t,{AttributeNames:()=>r}),function(e){e.EVENT_TYPE="event_type",e.TARGET_ELEMENT="target_element",e.TARGET_XPATH="target_xpath",e.HTTP_URL="http.url"}(r||(r={}))},"../../node_modules/@opentelemetry/instrumentation-user-interaction/build/esm/instrumentation.js":(e,t,n)=>{"use strict";n.d(t,{UserInteractionInstrumentation:()=>f});var r,o=n("../../node_modules/@opentelemetry/instrumentation/build/esm/utils.js"),s=n("../../node_modules/@opentelemetry/instrumentation/build/esm/platform/browser/instrumentation.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),a=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),l=n("../../node_modules/@opentelemetry/core/build/esm/common/time.js"),u=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/utils.js"),c=n("../../node_modules/@opentelemetry/instrumentation-user-interaction/build/esm/enums/AttributeNames.js"),d=n("../../node_modules/@opentelemetry/instrumentation-user-interaction/build/esm/version.js"),p=(r=function(e,t){return r=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])},r(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=["click"];function h(){return!1}var f=function(e){function t(t){var n;void 0===t&&(t={});var r=e.call(this,d.PACKAGE_NAME,d.PACKAGE_VERSION,t)||this;return r.version=d.PACKAGE_VERSION,r.moduleName="user-interaction",r._spansData=new WeakMap,r._wrappedListeners=new WeakMap,r._eventsSpanMap=new WeakMap,r._eventNames=new Set(null!==(n=null==t?void 0:t.eventNames)&&void 0!==n?n:m),r._shouldPreventSpanCreation="function"==typeof(null==t?void 0:t.shouldPreventSpanCreation)?t.shouldPreventSpanCreation:h,r}return p(t,e),t.prototype.init=function(){},t.prototype._checkForTimeout=function(e,t){var n=this._spansData.get(t);n&&("setTimeout"===e.source?n.hrTimeLastTimeout=(0,l.hrTime)():"Promise.then"!==e.source&&"setTimeout"!==e.source&&(n.hrTimeLastTimeout=void 0))},t.prototype._allowEventName=function(e){return this._eventNames.has(e)},t.prototype._createSpan=function(e,t,n){var r;if(e instanceof HTMLElement&&e.getAttribute&&!e.hasAttribute("disabled")&&this._allowEventName(t)){var o=(0,u.getElementXPath)(e,!0);try{var s=this.tracer.startSpan(t,{attributes:(r={},r[c.AttributeNames.EVENT_TYPE]=t,r[c.AttributeNames.TARGET_ELEMENT]=e.tagName,r[c.AttributeNames.TARGET_XPATH]=o,r[c.AttributeNames.HTTP_URL]=window.location.href,r)},n?i.trace.setSpan(a.context.active(),n):void 0);if(!0===this._shouldPreventSpanCreation(t,e,s))return;return this._spansData.set(s,{taskCount:0}),s}catch(e){this._diag.error("failed to start create new user interaction span",e)}}},t.prototype._decrementTask=function(e){var t=this._spansData.get(e);t&&(t.taskCount--,0===t.taskCount&&this._tryToEndSpan(e,t.hrTimeLastTimeout))},t.prototype._getCurrentSpan=function(e){var t=e.get("OT_ZONE_CONTEXT");return t?i.trace.getSpan(t):t},t.prototype._incrementTask=function(e){var t=this._spansData.get(e);t&&t.taskCount++},t.prototype.addPatchedListener=function(e,t,n,r){var o=this._wrappedListeners.get(n);o||(o=new Map,this._wrappedListeners.set(n,o));var s=o.get(t);return s||(s=new Map,o.set(t,s)),!s.has(e)&&(s.set(e,r),!0)},t.prototype.removePatchedListener=function(e,t,n){var r=this._wrappedListeners.get(n);if(r){var o=r.get(t);if(o){var s=o.get(e);return s&&(o.delete(e),0===o.size&&(r.delete(t),0===r.size&&this._wrappedListeners.delete(n))),s}}},t.prototype._invokeListener=function(e,t,n){return"function"==typeof e?e.apply(t,n):e.handleEvent(n[0])},t.prototype._patchAddEventListener=function(){var e=this;return function(t){return function(n,r,o){if(!r)return t.call(this,n,r,o);var s=o&&"object"==typeof o&&o.once,l=function(){for(var t,o=this,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];var c=l[0],d=null==c?void 0:c.target;c&&(t=e._eventsSpanMap.get(c)),s&&e.removePatchedListener(this,n,r);var p=e._createSpan(d,n,t);return p?(c&&e._eventsSpanMap.set(c,p),a.context.with(i.trace.setSpan(a.context.active(),p),function(){var t=e._invokeListener(r,o,l);return p.end(),t})):e._invokeListener(r,this,l)};return e.addPatchedListener(this,n,r,l)?t.call(this,n,l,o):void 0}}},t.prototype._patchRemoveEventListener=function(){var e=this;return function(t){return function(n,r,o){var s=e.removePatchedListener(this,n,r);return s?t.call(this,n,s,o):t.call(this,n,r,o)}}},t.prototype._getPatchableEventTargets=function(){return window.EventTarget?[EventTarget.prototype]:[Node.prototype,Window.prototype]},t.prototype._patchHistoryApi=function(){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())},t.prototype._patchHistoryMethod=function(){var e=this;return function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=""+location.pathname+location.hash+location.search,s=t.apply(this,n),i=""+location.pathname+location.hash+location.search;return o!==i&&e._updateInteractionName(i),s}}},t.prototype._unpatchHistoryApi=function(){(0,o.isWrapped)(history.replaceState)&&this._unwrap(history,"replaceState"),(0,o.isWrapped)(history.pushState)&&this._unwrap(history,"pushState"),(0,o.isWrapped)(history.back)&&this._unwrap(history,"back"),(0,o.isWrapped)(history.forward)&&this._unwrap(history,"forward"),(0,o.isWrapped)(history.go)&&this._unwrap(history,"go")},t.prototype._updateInteractionName=function(e){var t=i.trace.getSpan(a.context.active());t&&"function"==typeof t.updateName&&t.updateName("Navigation: "+e)},t.prototype._patchZoneCancelTask=function(){var e=this;return function(t){return function(n){var r=Zone.current,o=e._getCurrentSpan(r);return o&&e._shouldCountTask(n,r)&&e._decrementTask(o),t.call(this,n)}}},t.prototype._patchZoneScheduleTask=function(){var e=this;return function(t){return function(n){var r=Zone.current,o=e._getCurrentSpan(r);return o&&e._shouldCountTask(n,r)&&(e._incrementTask(o),e._checkForTimeout(n,o)),t.call(this,n)}}},t.prototype._patchZoneRunTask=function(){var e=this;return function(t){return function(n,r,o){var s,l=Array.isArray(o)&&o[0]instanceof Event?o[0]:void 0,u=null==l?void 0:l.target,c=this;if(u){if(s=e._createSpan(u,n.eventName))return e._incrementTask(s),c.run(function(){try{return a.context.with(i.trace.setSpan(a.context.active(),s),function(){var e=Zone.current;return n._zone=e,t.call(e,n,r,o)})}finally{e._decrementTask(s)}})}else s=e._getCurrentSpan(c);try{return t.call(c,n,r,o)}finally{s&&e._shouldCountTask(n,c)&&e._decrementTask(s)}}}},t.prototype._shouldCountTask=function(e,t){if(e._zone&&(t=e._zone),!t||!e.data||e.data.isPeriodic)return!1;var n=this._getCurrentSpan(t);return!!n&&(!!this._spansData.get(n)&&("macroTask"===e.type||"microTask"===e.type))},t.prototype._tryToEndSpan=function(e,t){e&&(this._spansData.get(e)&&(e.end(t),this._spansData.delete(e)))},t.prototype.enable=function(){var e=this,t=this.getZoneWithPrototype();(this._diag.debug("applying patch to",this.moduleName,this.version,"zone:",!!t),t)?((0,o.isWrapped)(t.prototype.runTask)&&(this._unwrap(t.prototype,"runTask"),this._diag.debug("removing previous patch from method runTask")),(0,o.isWrapped)(t.prototype.scheduleTask)&&(this._unwrap(t.prototype,"scheduleTask"),this._diag.debug("removing previous patch from method scheduleTask")),(0,o.isWrapped)(t.prototype.cancelTask)&&(this._unwrap(t.prototype,"cancelTask"),this._diag.debug("removing previous patch from method cancelTask")),this._zonePatched=!0,this._wrap(t.prototype,"runTask",this._patchZoneRunTask()),this._wrap(t.prototype,"scheduleTask",this._patchZoneScheduleTask()),this._wrap(t.prototype,"cancelTask",this._patchZoneCancelTask())):(this._zonePatched=!1,this._getPatchableEventTargets().forEach(function(t){(0,o.isWrapped)(t.addEventListener)&&(e._unwrap(t,"addEventListener"),e._diag.debug("removing previous patch from method addEventListener")),(0,o.isWrapped)(t.removeEventListener)&&(e._unwrap(t,"removeEventListener"),e._diag.debug("removing previous patch from method removeEventListener")),e._wrap(t,"addEventListener",e._patchAddEventListener()),e._wrap(t,"removeEventListener",e._patchRemoveEventListener())}));this._patchHistoryApi()},t.prototype.disable=function(){var e=this,t=this.getZoneWithPrototype();(this._diag.debug("removing patch from",this.moduleName,this.version,"zone:",!!t),t&&this._zonePatched)?((0,o.isWrapped)(t.prototype.runTask)&&this._unwrap(t.prototype,"runTask"),(0,o.isWrapped)(t.prototype.scheduleTask)&&this._unwrap(t.prototype,"scheduleTask"),(0,o.isWrapped)(t.prototype.cancelTask)&&this._unwrap(t.prototype,"cancelTask")):this._getPatchableEventTargets().forEach(function(t){(0,o.isWrapped)(t.addEventListener)&&e._unwrap(t,"addEventListener"),(0,o.isWrapped)(t.removeEventListener)&&e._unwrap(t,"removeEventListener")});this._unpatchHistoryApi()},t.prototype.getZoneWithPrototype=function(){return window.Zone},t}(s.InstrumentationBase)},"../../node_modules/@opentelemetry/instrumentation-user-interaction/build/esm/version.js":(e,t,n)=>{"use strict";n.d(t,{PACKAGE_NAME:()=>o,PACKAGE_VERSION:()=>r});var r="0.43.0",o="@opentelemetry/instrumentation-user-interaction"},"../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/enums/AttributeNames.js":(e,t,n)=>{"use strict";var r;n.d(t,{AttributeNames:()=>r}),function(e){e.HTTP_STATUS_TEXT="http.status_text"}(r||(r={}))},"../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/enums/EventNames.js":(e,t,n)=>{"use strict";var r;n.d(t,{EventNames:()=>r}),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"}(r||(r={}))},"../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/utils.js":(e,t,n)=>{"use strict";n.d(t,{getXHRBodyLength:()=>a});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),o=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},i=r.diag.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-xml-http-request/utils"});function a(e){return"undefined"!=typeof Document&&e instanceof Document?(new XMLSerializer).serializeToString(document).length:e instanceof Blob?e.size:void 0!==e.byteLength?e.byteLength:e instanceof FormData?function(e){var t,n,r=0;try{for(var i=o(e.entries()),a=i.next();!a.done;a=i.next()){var l=s(a.value,2),u=l[0],c=l[1];r+=u.length,c instanceof Blob?r+=c.size:r+=c.length}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}(e):e instanceof URLSearchParams?u(e.toString()):"string"==typeof e?u(e):void i.warn("unknown body type")}var l=new TextEncoder;function u(e){return l.encode(e).byteLength}},"../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/version.js":(e,t,n)=>{"use strict";n.d(t,{VERSION:()=>r});var r="0.56.0"},"../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/xhr.js":(e,t,n)=>{"use strict";n.d(t,{XMLHttpRequestInstrumentation:()=>b});var r,o=n("../../node_modules/@opentelemetry/api/build/esm/propagation-api.js"),s=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),a=n("../../node_modules/@opentelemetry/api/build/esm/trace/span_kind.js"),l=n("../../node_modules/@opentelemetry/instrumentation/build/esm/utils.js"),u=n("../../node_modules/@opentelemetry/instrumentation/build/esm/platform/browser/instrumentation.js"),c=n("../../node_modules/@opentelemetry/instrumentation-xml-http-request/node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js"),d=n("../../node_modules/@opentelemetry/instrumentation-xml-http-request/node_modules/@opentelemetry/core/build/esm/utils/url.js"),p=n("../../node_modules/@opentelemetry/instrumentation-xml-http-request/node_modules/@opentelemetry/core/build/esm/common/time.js"),m=n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js"),h=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/utils.js"),f=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/enums/PerformanceTimingNames.js"),A=n("../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/enums/EventNames.js"),g=n("../../node_modules/@opentelemetry/instrumentation-xml-http-request/build/esm/utils.js"),_=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"),E=(r=function(e,t){return r=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])},r(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),b=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,"@opentelemetry/instrumentation-xml-http-request",_.VERSION,t)||this;return n.component="xml-http-request",n.version=_.VERSION,n.moduleName=n.component,n._tasksCount=0,n._xhrMem=new WeakMap,n._usedResources=new WeakSet,n}return E(t,e),t.prototype.init=function(){},t.prototype._addHeaders=function(e,t){var n=(0,h.parseUrl)(t).href;if(!(0,h.shouldPropagateTraceHeaders)(n,this.getConfig().propagateTraceHeaderCorsUrls)){var r={};return o.propagation.inject(s.context.active(),r),void(Object.keys(r).length>0&&this._diag.debug("headers inject skipped due to CORS policy"))}var i={};o.propagation.inject(s.context.active(),i),Object.keys(i).forEach(function(t){e.setRequestHeader(t,String(i[t]))})},t.prototype._addChildSpan=function(e,t){var n=this;s.context.with(i.trace.setSpan(s.context.active(),e),function(){var e=n.tracer.startSpan("CORS Preflight",{startTime:t[f.PerformanceTimingNames.FETCH_START]});n.getConfig().ignoreNetworkEvents||(0,h.addSpanNetworkEvents)(e,t),e.end(t[f.PerformanceTimingNames.RESPONSE_END])})},t.prototype._addFinalSpanAttributes=function(e,t,n){if("string"==typeof n){var r=(0,h.parseUrl)(n);void 0!==t.status&&e.setAttribute(m.SEMATTRS_HTTP_STATUS_CODE,t.status),void 0!==t.statusText&&e.setAttribute(y.AttributeNames.HTTP_STATUS_TEXT,t.statusText),e.setAttribute(m.SEMATTRS_HTTP_HOST,r.host),e.setAttribute(m.SEMATTRS_HTTP_SCHEME,r.protocol.replace(":","")),e.setAttribute(m.SEMATTRS_HTTP_USER_AGENT,navigator.userAgent)}},t.prototype._applyAttributesAfterXHR=function(e,t){var n=this,r=this.getConfig().applyCustomAttributesOnSpan;"function"==typeof r&&(0,l.safeExecuteInTheMiddle)(function(){return r(e,t)},function(e){e&&n._diag.error("applyCustomAttributesOnSpan",e)},!0)},t.prototype._addResourceObserver=function(e,t){var n=this._xhrMem.get(e);n&&"function"==typeof PerformanceObserver&&"function"==typeof PerformanceResourceTiming&&(n.createdResources={observer:new PerformanceObserver(function(e){var r=e.getEntries(),o=(0,h.parseUrl)(t);r.forEach(function(e){"xmlhttprequest"===e.initiatorType&&e.name===o.href&&n.createdResources&&n.createdResources.entries.push(e)})}),entries:[]},n.createdResources.observer.observe({entryTypes:["resource"]}))},t.prototype._clearResources=function(){0===this._tasksCount&&this.getConfig().clearTimingResources&&(c.otperformance.clearResourceTimings(),this._xhrMem=new WeakMap,this._usedResources=new WeakSet)},t.prototype._findResourceAndAddNetworkEvents=function(e,t,n,r,o){if(n&&r&&o&&e.createdResources){var s=e.createdResources.entries;s&&s.length||(s=c.otperformance.getEntriesByType("resource"));var i=(0,h.getResource)((0,h.parseUrl)(n).href,r,o,s,this._usedResources);if(i.mainRequest){var a=i.mainRequest;this._markResourceAsUsed(a);var l=i.corsPreFlightRequest;l&&(this._addChildSpan(t,l),this._markResourceAsUsed(l)),this.getConfig().ignoreNetworkEvents||(0,h.addSpanNetworkEvents)(t,a)}}},t.prototype._cleanPreviousSpanInformation=function(e){var t=this._xhrMem.get(e);if(t){var n=t.callbackToRemoveEvents;n&&n(),this._xhrMem.delete(e)}},t.prototype._createSpan=function(e,t,n){var r;if(!(0,d.isUrlIgnored)(t,this.getConfig().ignoreUrls)){var o=n.toUpperCase(),s=this.tracer.startSpan(o,{kind:a.SpanKind.CLIENT,attributes:(r={},r[m.SEMATTRS_HTTP_METHOD]=n,r[m.SEMATTRS_HTTP_URL]=(0,h.parseUrl)(t).toString(),r)});return s.addEvent(A.EventNames.METHOD_OPEN),this._cleanPreviousSpanInformation(e),this._xhrMem.set(e,{span:s,spanUrl:t}),s}this._diag.debug("ignoring span as url matches ignored url")},t.prototype._markResourceAsUsed=function(e){this._usedResources.add(e)},t.prototype._patchOpen=function(){var e=this;return function(t){var n=e;return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=e[0],s=e[1];return n._createSpan(this,s,o),t.apply(this,e)}}},t.prototype._patchSend=function(){var e=this;function t(t,n){var r=e._xhrMem.get(n);if(r){r.status=n.status,r.statusText=n.statusText,e._xhrMem.delete(n),r.span&&e._applyAttributesAfterXHR(r.span,n);var o=(0,p.hrTime)(),s=Date.now();setTimeout(function(){!function(t,n,r,o){var s=n.callbackToRemoveEvents;"function"==typeof s&&s();var i=n.span,a=n.spanUrl,l=n.sendStartTime;i&&(e._findResourceAndAddNetworkEvents(n,i,a,l,r),i.addEvent(t,o),e._addFinalSpanAttributes(i,n,a),i.end(o),e._tasksCount--),e._clearResources()}(t,r,o,s)},300)}}function n(){t(A.EventNames.EVENT_ERROR,this)}function r(){t(A.EventNames.EVENT_ABORT,this)}function o(){t(A.EventNames.EVENT_TIMEOUT,this)}function a(){this.status<299?t(A.EventNames.EVENT_LOAD,this):t(A.EventNames.EVENT_ERROR,this)}return function(t){return function(){for(var l=this,u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];var d=e._xhrMem.get(this);if(!d)return t.apply(this,u);var h=d.span,f=d.spanUrl;if(h&&f){if(e.getConfig().measureRequestSize&&(null==u?void 0:u[0])){var _=u[0],y=(0,g.getXHRBodyLength)(_);void 0!==y&&h.setAttribute(m.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED,y)}s.context.with(i.trace.setSpan(s.context.active(),h),function(){e._tasksCount++,d.sendStartTime=(0,p.hrTime)(),h.addEvent(A.EventNames.METHOD_SEND),l.addEventListener("abort",r),l.addEventListener("error",n),l.addEventListener("load",a),l.addEventListener("timeout",o),d.callbackToRemoveEvents=function(){!function(t){t.removeEventListener("abort",r),t.removeEventListener("error",n),t.removeEventListener("load",a),t.removeEventListener("timeout",o);var s=e._xhrMem.get(t);s&&(s.callbackToRemoveEvents=void 0)}(l),d.createdResources&&d.createdResources.observer.disconnect()},e._addHeaders(l,f),e._addResourceObserver(l,f)})}return t.apply(this,u)}}},t.prototype.enable=function(){this._diag.debug("applying patch to",this.moduleName,this.version),(0,l.isWrapped)(XMLHttpRequest.prototype.open)&&(this._unwrap(XMLHttpRequest.prototype,"open"),this._diag.debug("removing previous patch from method open")),(0,l.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())},t.prototype.disable=function(){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},t}(u.InstrumentationBase)},"../../node_modules/@opentelemetry/instrumentation-xml-http-request/node_modules/@opentelemetry/core/build/esm/common/time.js":(e,t,n)=>{"use strict";n.d(t,{hrTime:()=>l});var r=n("../../node_modules/@opentelemetry/instrumentation-xml-http-request/node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js"),o=Math.pow(10,6),s=Math.pow(10,9);function i(e){var t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*o)]}function a(){var e=r.otperformance.timeOrigin;if("number"!=typeof e){var t=r.otperformance;e=t.timing&&t.timing.fetchStart}return e}function l(e){return function(e,t){var n=[e[0]+t[0],e[1]+t[1]];n[1]>=s&&(n[1]-=s,n[0]+=1);return n}(i(a()),i("number"==typeof e?e:r.otperformance.now()))}},"../../node_modules/@opentelemetry/instrumentation-xml-http-request/node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js":(e,t,n)=>{"use strict";n.d(t,{otperformance:()=>r});var r=performance},"../../node_modules/@opentelemetry/instrumentation-xml-http-request/node_modules/@opentelemetry/core/build/esm/utils/url.js":(e,t,n)=>{"use strict";n.d(t,{isUrlIgnored:()=>s});var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function o(e,t){return"string"==typeof t?e===t:!!e.match(t)}function s(e,t){var n,s;if(!t)return!1;try{for(var i=r(t),a=i.next();!a.done;a=i.next()){if(o(e,a.value))return!0}}catch(e){n={error:e}}finally{try{a&&!a.done&&(s=i.return)&&s.call(i)}finally{if(n)throw n.error}}return!1}},"../../node_modules/@opentelemetry/instrumentation/build/esm/autoLoader.js":(e,t,n)=>{"use strict";n.d(t,{registerInstrumentations:()=>a});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/metrics-api.js"),s=n("../../node_modules/@opentelemetry/api-logs/build/esm/index.js"),i=n("../../node_modules/@opentelemetry/instrumentation/build/esm/autoLoaderUtils.js");function a(e){var t,n,a=e.tracerProvider||r.trace.getTracerProvider(),l=e.meterProvider||o.metrics.getMeterProvider(),u=e.loggerProvider||s.logs.getLoggerProvider(),c=null!==(n=null===(t=e.instrumentations)||void 0===t?void 0:t.flat())&&void 0!==n?n:[];return(0,i.enableInstrumentations)(c,a,l,u),function(){(0,i.disableInstrumentations)(c)}}},"../../node_modules/@opentelemetry/instrumentation/build/esm/autoLoaderUtils.js":(e,t,n)=>{"use strict";function r(e,t,n,r){for(var o=0,s=e.length;o<s;o++){var i=e[o];t&&i.setTracerProvider(t),n&&i.setMeterProvider(n),r&&i.setLoggerProvider&&i.setLoggerProvider(r),i.getConfig().enabled||i.enable()}}function o(e){e.forEach(function(e){return e.disable()})}n.d(t,{disableInstrumentations:()=>o,enableInstrumentations:()=>r})},"../../node_modules/@opentelemetry/instrumentation/build/esm/instrumentation.js":(e,t,n)=>{"use strict";n.d(t,{InstrumentationAbstract:()=>u});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),s=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/shimmer/index.js"),l=function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)},u=function(){function e(e,t,n){this.instrumentationName=e,this.instrumentationVersion=t,this._config={},this._wrap=a.wrap,this._unwrap=a.unwrap,this._massWrap=a.massWrap,this._massUnwrap=a.massUnwrap,this.setConfig(n),this._diag=r.diag.createComponentLogger({namespace:e}),this._tracer=o.trace.getTracer(e,t),this._meter=s.metrics.getMeter(e,t),this._logger=i.logs.getLogger(e,t),this._updateMetricInstruments()}return Object.defineProperty(e.prototype,"meter",{get:function(){return this._meter},enumerable:!1,configurable:!0}),e.prototype.setMeterProvider=function(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()},Object.defineProperty(e.prototype,"logger",{get:function(){return this._logger},enumerable:!1,configurable:!0}),e.prototype.setLoggerProvider=function(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)},e.prototype.getModuleDefinitions=function(){var e,t=null!==(e=this.init())&&void 0!==e?e:[];return Array.isArray(t)?t:[t]},e.prototype._updateMetricInstruments=function(){},e.prototype.getConfig=function(){return this._config},e.prototype.setConfig=function(e){this._config=l({enabled:!0},e)},e.prototype.setTracerProvider=function(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)},Object.defineProperty(e.prototype,"tracer",{get:function(){return this._tracer},enumerable:!1,configurable:!0}),e.prototype._runSpanCustomizationHook=function(e,t,n,r){if(e)try{e(n,r)}catch(e){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:t},e)}},e}()},"../../node_modules/@opentelemetry/instrumentation/build/esm/platform/browser/instrumentation.js":(e,t,n)=>{"use strict";n.d(t,{InstrumentationBase:()=>i});var r,o=n("../../node_modules/@opentelemetry/instrumentation/build/esm/instrumentation.js"),s=(r=function(e,t){return r=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])},r(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o._config.enabled&&o.enable(),o}return s(t,e),t}(o.InstrumentationAbstract)},"../../node_modules/@opentelemetry/instrumentation/build/esm/utils.js":(e,t,n)=>{"use strict";n.d(t,{isWrapped:()=>o,safeExecuteInTheMiddle:()=>r});function r(e,t,n){var r,o;try{o=e()}catch(e){r=e}finally{if(t(r,o),r&&!n)throw r;return o}}function o(e){return"function"==typeof e&&"function"==typeof e.__original&&"function"==typeof e.__unwrap&&!0===e.__wrapped}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/OTLPExporterBase.js":(e,t,n)=>{"use strict";n.d(t,{OTLPExporterBase:()=>r});var r=function(){function e(e){this._delegate=e}return e.prototype.export=function(e,t){this._delegate.export(e,t)},e.prototype.forceFlush=function(){return this._delegate.forceFlush()},e.prototype.shutdown=function(){return this._delegate.shutdown()},e}()},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/bounded-queue-export-promise-handler.js":(e,t,n)=>{"use strict";n.d(t,{createBoundedQueueExportPromiseHandler:()=>i});var r=function(e,t,n,r){return new(n||(n=Promise))(function(o,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function a(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,a)}l((r=r.apply(e,t||[])).next())})},o=function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}},s=function(){function e(e){this._sendingPromises=[],this._concurrencyLimit=e}return e.prototype.pushPromise=function(e){var t=this;if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(e);var n=function(){var n=t._sendingPromises.indexOf(e);t._sendingPromises.splice(n,1)};e.then(n,n)},e.prototype.hasReachedLimit=function(){return this._sendingPromises.length>=this._concurrencyLimit},e.prototype.awaitAll=function(){return r(this,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return[4,Promise.all(this._sendingPromises)];case 1:return e.sent(),[2]}})})},e}();function i(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:()=>s});var r=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/otlp-http-configuration.js"),o=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/shared-configuration.js");function s(e,t,n){return(0,r.mergeOtlpHttpConfigurationWithDefaults)({url:e.url,timeoutMillis:e.timeoutMillis,headers:(0,o.wrapStaticHeadersInFunction)(e.headers),concurrencyLimit:e.concurrencyLimit},{},(0,r.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:()=>s});var r=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-browser-http-export-delegate.js"),o=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/convert-legacy-browser-http-options.js");function s(e,t,n,s){var i=!!e.headers||"function"!=typeof navigator.sendBeacon,a=(0,o.convertLegacyBrowserHttpOptions)(e,n,s);return i?(0,r.createOtlpXhrExportDelegate)(a,t):(0,r.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 r=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/shared-configuration.js"),o=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/util.js"),s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)};function i(e){if(null!=e)try{return new URL(e),e}catch(t){throw new Error("Configuration: Could not parse user-provided export URL: '"+e+"'")}}function a(e,t,n){var a,l,u,c,d,p,m,h,f;return s(s({},(0,r.mergeOtlpSharedConfigurationWithDefaults)(e,t,n)),{headers:(d=(0,o.validateAndNormalizeHeaders)(e.headers),p=t.headers,m=n.headers,h=s({},m()),f={},function(){return null!=p&&Object.assign(f,p()),null!=d&&Object.assign(f,d()),Object.assign(f,h)}),url:null!==(l=null!==(a=i(e.url))&&void 0!==a?a:t.url)&&void 0!==l?l:n.url,agentOptions:null!==(c=null!==(u=e.agentOptions)&&void 0!==u?u:t.agentOptions)&&void 0!==c?c:n.agentOptions})}function l(e,t){return s(s({},(0,r.getSharedConfigurationDefaults)()),{headers:function(){return 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 r(e){if(!Number.isNaN(e)&&Number.isFinite(e)&&e>0)return e;throw new Error("Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '"+e+"')")}function o(e){if(null!=e)return function(){return e}}function s(e,t,n){var o,s,i,a,l,u;return{timeoutMillis:r(null!==(s=null!==(o=e.timeoutMillis)&&void 0!==o?o:t.timeoutMillis)&&void 0!==s?s:n.timeoutMillis),concurrencyLimit:null!==(a=null!==(i=e.concurrencyLimit)&&void 0!==i?i:t.concurrencyLimit)&&void 0!==a?a:n.concurrencyLimit,compression:null!==(u=null!==(l=e.compression)&&void 0!==l?l:t.compression)&&void 0!==u?u:n.compression}}function i(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}n.d(t,{getSharedConfigurationDefaults:()=>i,mergeOtlpSharedConfigurationWithDefaults:()=>s,wrapStaticHeadersInFunction:()=>o})},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/is-export-retryable.js":(e,t,n)=>{"use strict";function r(e){return[429,502,503,504].includes(e)}function o(e){if(null!=e){var t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?1e3*t:-1;var n=new Date(e).getTime()-Date.now();return n>=0?n:0}}n.d(t,{isExportRetryable:()=>r,parseRetryAfterToMills:()=>o})},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/logging-response-handler.js":(e,t,n)=>{"use strict";n.d(t,{createLoggingPartialSuccessResponseHandler:()=>o});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js");function o(){return{handleResponse:function(e){null!=e&&function(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}(e)&&null!=e.partialSuccess&&0!==Object.keys(e.partialSuccess).length&&r.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 r=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/retrying-transport.js"),o=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/xhr-transport.js"),s=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,r.createRetryingTransport)({transport:(0,o.createXhrTransport)(e)}))}function l(e,t){return(0,i.createOtlpNetworkExportDelegate)(e,t,(0,r.createRetryingTransport)({transport:(0,s.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:()=>c});var r=n("../../node_modules/@opentelemetry/otlp-exporter-base/node_modules/@opentelemetry/core/build/esm/ExportResult.js"),o=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/types.js"),s=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/logging-response-handler.js"),i=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),a=function(e,t,n,r){return new(n||(n=Promise))(function(o,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function a(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,a)}l((r=r.apply(e,t||[])).next())})},l=function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}},u=function(){function e(e,t,n,r,o){this._transport=e,this._serializer=t,this._responseHandler=n,this._promiseQueue=r,this._timeout=o,this._diagLogger=i.diag.createComponentLogger({namespace:"OTLPExportDelegate"})}return e.prototype.export=function(e,t){var n=this;if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit())t({code:r.ExportResultCode.FAILED,error:new Error("Concurrent export limit reached")});else{var s=this._serializer.serializeRequest(e);null!=s?this._promiseQueue.pushPromise(this._transport.send(s,this._timeout).then(function(e){if("success"!==e.status)"failure"===e.status&&e.error?t({code:r.ExportResultCode.FAILED,error:e.error}):"retryable"===e.status?t({code:r.ExportResultCode.FAILED,error:new o.OTLPExporterError("Export failed with retryable status")}):t({code:r.ExportResultCode.FAILED,error:new o.OTLPExporterError("Export failed with unknown error")});else{if(null!=e.data)try{n._responseHandler.handleResponse(n._serializer.deserializeResponse(e.data))}catch(t){n._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",t,e.data)}t({code:r.ExportResultCode.SUCCESS})}},function(e){return t({code:r.ExportResultCode.FAILED,error:e})})):t({code:r.ExportResultCode.FAILED,error:new Error("Nothing to send")})}},e.prototype.forceFlush=function(){return this._promiseQueue.awaitAll()},e.prototype.shutdown=function(){return a(this,void 0,void 0,function(){return l(this,function(e){switch(e.label){case 0:return this._diagLogger.debug("shutdown started"),[4,this.forceFlush()];case 1:return e.sent(),this._transport.shutdown(),[2]}})})},e}();function c(e,t){return new u(e.transport,e.serializer,(0,s.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:()=>s});var r=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/bounded-queue-export-promise-handler.js"),o=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-export-delegate.js");function s(e,t,n){return(0,o.createOtlpExportDelegate)({transport:n,serializer:t,promiseHandler:(0,r.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:()=>i});var r=function(e,t,n,r){return new(n||(n=Promise))(function(o,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function a(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,a)}l((r=r.apply(e,t||[])).next())})},o=function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};var s=function(){function e(e){this._transport=e}return e.prototype.retry=function(e,t,n){var r=this;return new Promise(function(o,s){setTimeout(function(){r._transport.send(e,t).then(o,s)},n)})},e.prototype.send=function(e,t){var n;return r(this,void 0,void 0,function(){var r,s,i,a,l,u,c;return o(this,function(o){switch(o.label){case 0:return r=Date.now()+t,[4,this._transport.send(e,t)];case 1:s=o.sent(),i=5,a=1e3,o.label=2;case 2:return"retryable"===s.status&&i>0?(i--,l=Math.max(Math.min(a,5e3)+(.4*Math.random()-.2),0),a*=1.5,u=null!==(n=s.retryInMillis)&&void 0!==n?n:l,c=r-Date.now(),u>c?[2,s]:[4,this.retry(e,c,u)]):[3,4];case 3:return s=o.sent(),[3,2];case 4:return[2,s]}})})},e.prototype.shutdown=function(){return this._transport.shutdown()},e}();function i(e){return new s(e.transport)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/send-beacon-transport.js":(e,t,n)=>{"use strict";n.d(t,{createSendBeaconTransport:()=>s});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),o=function(){function e(e){this._params=e}return e.prototype.send=function(e){var t=this;return new Promise(function(n){navigator.sendBeacon(t._params.url,new Blob([e],{type:t._params.blobType}))?(r.diag.debug("SendBeacon success"),n({status:"success"})):n({status:"failure",error:new Error("SendBeacon failed")})})},e.prototype.shutdown=function(){},e}();function s(e){return new o(e)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/xhr-transport.js":(e,t,n)=>{"use strict";n.d(t,{createXhrTransport:()=>a});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),o=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/is-export-retryable.js"),s=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},i=function(){function e(e){this._parameters=e}return e.prototype.send=function(e,t){var n=this;return new Promise(function(i){var a=new XMLHttpRequest;a.timeout=t,a.open("POST",n._parameters.url);var l=n._parameters.headers();Object.entries(l).forEach(function(e){var t=s(e,2),n=t[0],r=t[1];a.setRequestHeader(n,r)}),a.ontimeout=function(e){i({status:"failure",error:new Error("XHR request timed out")})},a.onreadystatechange=function(){a.status>=200&&a.status<=299?(r.diag.debug("XHR success"),i({status:"success"})):a.status&&(0,o.isExportRetryable)(a.status)?i({status:"retryable",retryInMillis:(0,o.parseRetryAfterToMills)(a.getResponseHeader("Retry-After"))}):0!==a.status&&i({status:"failure",error:new Error("XHR request failed with non-retryable status")})},a.onabort=function(){i({status:"failure",error:new Error("XHR request aborted")})},a.onerror=function(){i({status:"failure",error:new Error("XHR request errored")})},a.send(e)})},e.prototype.shutdown=function(){},e}();function a(e){return new i(e)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/types.js":(e,t,n)=>{"use strict";n.d(t,{OTLPExporterError:()=>s});var r,o=(r=function(e,t){return r=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])},r(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.name="OTLPExporterError",o.data=r,o.code=n,o}return o(t,e),t}(Error)},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/util.js":(e,t,n)=>{"use strict";n.d(t,{validateAndNormalizeHeaders:()=>s});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i};function s(e){return function(){var t,n={};return Object.entries(null!==(t=null==e?void 0:e())&&void 0!==t?t:{}).forEach(function(e){var t=o(e,2),s=t[0],i=t[1];void 0!==i?n[s]=String(i):r.diag.warn('Header "'+s+'" has invalid value ('+i+") and will be ignored")}),n}}},"../../node_modules/@opentelemetry/otlp-exporter-base/node_modules/@opentelemetry/core/build/esm/ExportResult.js":(e,t,n)=>{"use strict";var r;n.d(t,{ExportResultCode:()=>r}),function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"}(r||(r={}))},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/index.js":(e,t,n)=>{"use strict";n.d(t,{getOtlpEncoder:()=>d});var r=n("../../node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/core/build/esm/common/time.js"),o=n("../../node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/core/build/esm/common/hex-to-binary.js");function s(e){var t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function i(e){var t,n=s(e);return t=n,{low:Number(BigInt.asUintN(32,t)),high:Number(BigInt.asUintN(32,t>>BigInt(32)))}}var a="undefined"!=typeof BigInt?function(e){return s(e).toString()}:r.hrTimeToNanoseconds;function l(e){return e}function u(e){if(void 0!==e)return(0,o.hexToBinary)(e)}var c={encodeHrTime:i,encodeSpanContext:o.hexToBinary,encodeOptionalSpanContext:u};function d(e){var t,n;if(void 0===e)return c;var r=null===(t=e.useLongBits)||void 0===t||t,s=null!==(n=e.useHex)&&void 0!==n&&n;return{encodeHrTime:r?i:a,encodeSpanContext:s?l:o.hexToBinary,encodeOptionalSpanContext:s?l:u}}},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/internal.js":(e,t,n)=>{"use strict";n.d(t,{createInstrumentationScope:()=>o,toAttributes:()=>s});var r=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i};function o(e){return{name:e.name,version:e.version}}function s(e){return Object.keys(e).map(function(t){return i(t,e[t])})}function i(e,t){return{key:e,value:a(t)}}function a(e){var 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(function(e){var t=r(e,2);return i(t[0],t[1])})}}:{}}},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/resource/internal.js":(e,t,n)=>{"use strict";n.d(t,{createResource:()=>o});var r=n("../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/internal.js");function o(e){return{attributes:(0,r.toAttributes)(e.attributes),droppedAttributesCount:0}}},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/trace/index.js":(e,t,n)=>{"use strict";n.d(t,{createExportTraceServiceRequest:()=>u});var r=n("../../node_modules/@opentelemetry/otlp-transformer/build/esm/trace/internal.js"),o=n("../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/index.js"),s=n("../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/internal.js"),i=n("../../node_modules/@opentelemetry/otlp-transformer/build/esm/resource/internal.js"),a=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},l=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i};function u(e,t){return{resourceSpans:c(e,(0,o.getOtlpEncoder)(t))}}function c(e,t){for(var n=function(e){var t,n,r=new Map;try{for(var o=a(e),s=o.next();!s.done;s=o.next()){var i=s.value,l=r.get(i.resource);l||(l=new Map,r.set(i.resource,l));var u=i.instrumentationLibrary.name+"@"+(i.instrumentationLibrary.version||"")+":"+(i.instrumentationLibrary.schemaUrl||""),c=l.get(u);c||(c=[],l.set(u,c)),c.push(i)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}(e),o=[],u=n.entries(),c=u.next();!c.done;){for(var d=l(c.value,2),p=d[0],m=[],h=d[1].values(),f=h.next();!f.done;){var A=f.value;if(A.length>0){var g=A.map(function(e){return(0,r.sdkSpanToOtlpSpan)(e,t)});m.push({scope:(0,s.createInstrumentationScope)(A[0].instrumentationLibrary),spans:g,schemaUrl:A[0].instrumentationLibrary.schemaUrl})}f=h.next()}var _={resource:(0,i.createResource)(p),scopeSpans:m,schemaUrl:void 0};o.push(_),c=u.next()}return o}},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/trace/internal.js":(e,t,n)=>{"use strict";n.d(t,{sdkSpanToOtlpSpan:()=>o});var r=n("../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/internal.js");function o(e,t){var n,o=e.spanContext(),s=e.status;return{traceId:t.encodeSpanContext(o.traceId),spanId:t.encodeSpanContext(o.spanId),parentSpanId:t.encodeOptionalSpanContext(e.parentSpanId),traceState:null===(n=o.traceState)||void 0===n?void 0:n.serialize(),name:e.name,kind:null==e.kind?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:(0,r.toAttributes)(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(function(e){return function(e,t){return{attributes:e.attributes?(0,r.toAttributes)(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}(e,t)}),droppedEventsCount:e.droppedEventsCount,status:{code:s.code,message:s.message},links:e.links.map(function(e){return function(e,t){var n;return{attributes:e.attributes?(0,r.toAttributes)(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:null===(n=e.context.traceState)||void 0===n?void 0:n.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}(e,t)}),droppedLinksCount:e.droppedLinksCount}}},"../../node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/core/build/esm/common/hex-to-binary.js":(e,t,n)=>{"use strict";function r(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function o(e){for(var t=new Uint8Array(e.length/2),n=0,o=0;o<e.length;o+=2){var s=r(e.charCodeAt(o)),i=r(e.charCodeAt(o+1));t[n++]=s<<4|i}return t}n.d(t,{hexToBinary:()=>o})},"../../node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/core/build/esm/common/time.js":(e,t,n)=>{"use strict";n.d(t,{hrTimeToNanoseconds:()=>o});n("../../node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js"),Math.pow(10,6);var r=Math.pow(10,9);function o(e){return e[0]*r+e[1]}},"../../node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js":(e,t,n)=>{"use strict";n.d(t,{otperformance:()=>r});var r=performance},"../../node_modules/@opentelemetry/resources/build/esm/Resource.js":(e,t,n)=>{"use strict";n.d(t,{Resource:()=>d});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),o=n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js"),s=n("../../node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/esm/platform/browser/sdk-info.js"),i=n("../../node_modules/@opentelemetry/resources/build/esm/platform/browser/default-service-name.js"),a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)},l=function(e,t,n,r){return new(n||(n=Promise))(function(o,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function a(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,a)}l((r=r.apply(e,t||[])).next())})},u=function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}},c=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},d=function(){function e(e,t){var n,o=this;this._attributes=e,this.asyncAttributesPending=null!=t,this._syncAttributes=null!==(n=this._attributes)&&void 0!==n?n:{},this._asyncAttributesPromise=null==t?void 0:t.then(function(e){return o._attributes=Object.assign({},o._attributes,e),o.asyncAttributesPending=!1,e},function(e){return r.diag.debug("a resource's async attributes promise rejected: %s",e),o.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e(((t={})[o.SEMRESATTRS_SERVICE_NAME]=(0,i.defaultServiceName)(),t[o.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]=s.SDK_INFO[o.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE],t[o.SEMRESATTRS_TELEMETRY_SDK_NAME]=s.SDK_INFO[o.SEMRESATTRS_TELEMETRY_SDK_NAME],t[o.SEMRESATTRS_TELEMETRY_SDK_VERSION]=s.SDK_INFO[o.SEMRESATTRS_TELEMETRY_SDK_VERSION],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&r.diag.error("Accessing resource attributes before async attributes settled"),null!==(e=this._attributes)&&void 0!==e?e:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){return l(this,void 0,void 0,function(){return u(this,function(e){switch(e.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},e.prototype.merge=function(t){var n,r=this;if(!t)return this;var o=a(a({},this._syncAttributes),null!==(n=t._syncAttributes)&&void 0!==n?n:t.attributes);if(!this._asyncAttributesPromise&&!t._asyncAttributesPromise)return new e(o);var s=Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(e){var n,o=c(e,2),s=o[0],i=o[1];return a(a(a(a({},r._syncAttributes),s),null!==(n=t._syncAttributes)&&void 0!==n?n:t.attributes),i)});return new e(o,s)},e.EMPTY=new e({}),e}()},"../../node_modules/@opentelemetry/resources/build/esm/platform/browser/default-service-name.js":(e,t,n)=>{"use strict";function r(){return"unknown_service"}n.d(t,{defaultServiceName:()=>r})},"../../node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/esm/platform/browser/sdk-info.js":(e,t,n)=>{"use strict";n.d(t,{SDK_INFO:()=>i});var r,o=n("../../node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/esm/version.js"),s=n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js"),i=((r={})[s.SEMRESATTRS_TELEMETRY_SDK_NAME]="opentelemetry",r[s.SEMRESATTRS_PROCESS_RUNTIME_NAME]="browser",r[s.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]=s.TELEMETRYSDKLANGUAGEVALUES_WEBJS,r[s.SEMRESATTRS_TELEMETRY_SDK_VERSION]=o.VERSION,r)},"../../node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/esm/version.js":(e,t,n)=>{"use strict";n.d(t,{VERSION:()=>r});var r="1.29.0"},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/BasicTracerProvider.js":(e,t,n)=>{"use strict";n.d(t,{BasicTracerProvider:()=>v});var r,o=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),s=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/api/build/esm/propagation-api.js"),l=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/utils/merge.js"),u=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/platform/browser/environment.js"),c=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/propagation/composite.js"),d=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js"),p=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/baggage/propagation/W3CBaggagePropagator.js"),m=n("../../node_modules/@opentelemetry/resources/build/esm/Resource.js"),h=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Tracer.js"),f=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/config.js"),A=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/MultiSpanProcessor.js"),g=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/export/NoopSpanProcessor.js"),_=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/platform/browser/export/BatchSpanProcessor.js"),y=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/utility.js"),E=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},b=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,s=t.length;o<s;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};!function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"}(r||(r={}));var v=function(){function e(e){var t,n;void 0===e&&(e={}),this._registeredSpanProcessors=[],this._tracers=new Map;var r=(0,l.merge)({},(0,f.loadDefaultConfig)(),(0,y.reconfigureLimits)(e));if(this.resource=null!==(t=r.resource)&&void 0!==t?t:m.Resource.empty(),r.mergeResourceWithDefaults&&(this.resource=m.Resource.default().merge(this.resource)),this._config=Object.assign({},r,{resource:this.resource}),null===(n=e.spanProcessors)||void 0===n?void 0:n.length)this._registeredSpanProcessors=b([],E(e.spanProcessors),!1),this.activeSpanProcessor=new A.MultiSpanProcessor(this._registeredSpanProcessors);else{var o=this._buildExporterFromEnv();if(void 0!==o){var s=new _.BatchSpanProcessor(o);this.activeSpanProcessor=s}else this.activeSpanProcessor=new g.NoopSpanProcessor}}return e.prototype.getTracer=function(e,t,n){var r=e+"@"+(t||"")+":"+((null==n?void 0:n.schemaUrl)||"");return this._tracers.has(r)||this._tracers.set(r,new h.Tracer({name:e,version:t,schemaUrl:null==n?void 0:n.schemaUrl},this._config,this)),this._tracers.get(r)},e.prototype.addSpanProcessor=function(e){0===this._registeredSpanProcessors.length&&this.activeSpanProcessor.shutdown().catch(function(e){return o.diag.error("Error while trying to shutdown current span processor",e)}),this._registeredSpanProcessors.push(e),this.activeSpanProcessor=new A.MultiSpanProcessor(this._registeredSpanProcessors)},e.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},e.prototype.register=function(e){void 0===e&&(e={}),s.trace.setGlobalTracerProvider(this),void 0===e.propagator&&(e.propagator=this._buildPropagatorFromEnv()),e.contextManager&&i.context.setGlobalContextManager(e.contextManager),e.propagator&&a.propagation.setGlobalPropagator(e.propagator)},e.prototype.forceFlush=function(){var e=this._config.forceFlushTimeoutMillis,t=this._registeredSpanProcessors.map(function(t){return new Promise(function(n){var o,s=setTimeout(function(){n(new Error("Span processor did not completed within timeout period of "+e+" ms")),o=r.timeout},e);t.forceFlush().then(function(){clearTimeout(s),o!==r.timeout&&(o=r.resolved,n(o))}).catch(function(e){clearTimeout(s),o=r.error,n(e)})})});return new Promise(function(e,n){Promise.all(t).then(function(t){var o=t.filter(function(e){return e!==r.resolved});o.length>0?n(o):e()}).catch(function(e){return n([e])})})},e.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},e.prototype._getPropagator=function(e){var t;return null===(t=this.constructor._registeredPropagators.get(e))||void 0===t?void 0:t()},e.prototype._getSpanExporter=function(e){var t;return null===(t=this.constructor._registeredExporters.get(e))||void 0===t?void 0:t()},e.prototype._buildPropagatorFromEnv=function(){var e=this,t=Array.from(new Set((0,u.getEnv)().OTEL_PROPAGATORS)),n=t.map(function(t){var n=e._getPropagator(t);return n||o.diag.warn('Propagator "'+t+'" requested through environment variable is unavailable.'),n}).reduce(function(e,t){return t&&e.push(t),e},[]);return 0===n.length?void 0:1===t.length?n[0]:new c.CompositePropagator({propagators:n})},e.prototype._buildExporterFromEnv=function(){var e=(0,u.getEnv)().OTEL_TRACES_EXPORTER;if("none"!==e&&""!==e){var t=this._getSpanExporter(e);return t||o.diag.error('Exporter "'+e+'" requested through environment variable is unavailable.'),t}},e._registeredPropagators=new Map([["tracecontext",function(){return new d.W3CTraceContextPropagator}],["baggage",function(){return new p.W3CBaggagePropagator}]]),e._registeredExporters=new Map,e}()},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/MultiSpanProcessor.js":(e,t,n)=>{"use strict";n.d(t,{MultiSpanProcessor:()=>s});var r=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/common/global-error-handler.js"),o=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=function(){function e(e){this._spanProcessors=e}return e.prototype.forceFlush=function(){var e,t,n=[];try{for(var s=o(this._spanProcessors),i=s.next();!i.done;i=s.next()){var a=i.value;n.push(a.forceFlush())}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}return new Promise(function(e){Promise.all(n).then(function(){e()}).catch(function(t){(0,r.globalErrorHandler)(t||new Error("MultiSpanProcessor: forceFlush failed")),e()})})},e.prototype.onStart=function(e,t){var n,r;try{for(var s=o(this._spanProcessors),i=s.next();!i.done;i=s.next()){i.value.onStart(e,t)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}},e.prototype.onEnd=function(e){var t,n;try{for(var r=o(this._spanProcessors),s=r.next();!s.done;s=r.next()){s.value.onEnd(e)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.shutdown=function(){var e,t,n=[];try{for(var r=o(this._spanProcessors),s=r.next();!s.done;s=r.next()){var i=s.value;n.push(i.shutdown())}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return new Promise(function(e,t){Promise.all(n).then(function(){e()},t)})},e}()},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Sampler.js":(e,t,n)=>{"use strict";var r;n.d(t,{SamplingDecision:()=>r}),function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(r||(r={}))},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Span.js":(e,t,n)=>{"use strict";n.d(t,{Span:()=>h});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace/status.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),s=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js"),i=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/common/time.js"),a=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/common/attributes.js"),l=n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js"),u=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/enums.js"),c=function(){return c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},c.apply(this,arguments)},d=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},p=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},m=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,s=t.length;o<s;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},h=function(){function e(e,t,n,o,a,l,u,c,d,p){void 0===u&&(u=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:r.SpanStatusCode.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=n,this._spanContext=o,this.parentSpanId=l,this.kind=a,this.links=u;var m=Date.now();this._performanceStartTime=s.otperformance.now(),this._performanceOffset=m-(this._performanceStartTime+(0,i.getTimeOrigin)()),this._startTimeProvided=null!=c,this.startTime=this._getTime(null!=c?c:m),this.resource=e.resource,this.instrumentationLibrary=e.instrumentationLibrary,this._spanLimits=e.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,null!=p&&this.setAttributes(p),this._spanProcessor=e.getActiveSpanProcessor(),this._spanProcessor.onStart(this,t)}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return null==t||this._isSpanEnded()?this:0===e.length?(o.diag.warn("Invalid attribute key: "+e),this):(0,a.isAttributeValue)(t)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(t),this):(o.diag.warn("Invalid attribute value set for key: "+e),this)},e.prototype.setAttributes=function(e){var t,n;try{for(var r=d(Object.entries(e)),o=r.next();!o.done;o=r.next()){var s=p(o.value,2),i=s[0],a=s[1];this.setAttribute(i,a)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this},e.prototype.addEvent=function(e,t,n){if(this._isSpanEnded())return this;if(0===this._spanLimits.eventCountLimit)return o.diag.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(0===this._droppedEventsCount&&o.diag.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),(0,i.isTimeInput)(t)&&((0,i.isTimeInput)(n)||(n=t),t=void 0);var r=(0,a.sanitizeAttributes)(t);return this.events.push({name:e,attributes:r,time:this._getTime(n),droppedAttributesCount:0}),this},e.prototype.addLink=function(e){return this.links.push(e),this},e.prototype.addLinks=function(e){var t;return(t=this.links).push.apply(t,m([],p(e),!1)),this},e.prototype.setStatus=function(e){return this._isSpanEnded()||(this.status=c({},e),null!=this.status.message&&"string"!=typeof e.message&&(o.diag.warn("Dropping invalid status.message of type '"+typeof e.message+"', expected 'string'"),delete this.status.message)),this},e.prototype.updateName=function(e){return this._isSpanEnded()||(this.name=e),this},e.prototype.end=function(e){this._isSpanEnded()?o.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&&(o.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&&o.diag.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this))},e.prototype._getTime=function(e){if("number"==typeof e&&e<=s.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());var t=s.otperformance.now()-this._performanceStartTime;return(0,i.addHrTimes)(this.startTime,(0,i.millisToHrTime)(t))},e.prototype.isRecording=function(){return!1===this._ended},e.prototype.recordException=function(e,t){var n={};"string"==typeof e?n[l.SEMATTRS_EXCEPTION_MESSAGE]=e:e&&(e.code?n[l.SEMATTRS_EXCEPTION_TYPE]=e.code.toString():e.name&&(n[l.SEMATTRS_EXCEPTION_TYPE]=e.name),e.message&&(n[l.SEMATTRS_EXCEPTION_MESSAGE]=e.message),e.stack&&(n[l.SEMATTRS_EXCEPTION_STACKTRACE]=e.stack)),n[l.SEMATTRS_EXCEPTION_TYPE]||n[l.SEMATTRS_EXCEPTION_MESSAGE]?this.addEvent(u.ExceptionEventName,n,t):o.diag.warn("Failed to record an exception "+e)},Object.defineProperty(e.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),e.prototype._isSpanEnded=function(){return this._ended&&o.diag.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},e.prototype._truncateToLimitUtil=function(e,t){return e.length<=t?e:e.substring(0,t)},e.prototype._truncateToSize=function(e){var t=this,n=this._attributeValueLengthLimit;return n<=0?(o.diag.warn("Attribute value limit must be positive, got "+n),e):"string"==typeof e?this._truncateToLimitUtil(e,n):Array.isArray(e)?e.map(function(e){return"string"==typeof e?t._truncateToLimitUtil(e,n):e}):e},e}()},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Tracer.js":(e,t,n)=>{"use strict";n.d(t,{Tracer:()=>f});var r=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),s=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"),u=n("../../node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js"),c=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js"),d=n("../../node_modules/@opentelemetry/sdk-trace-base/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"),f=function(){function e(e,t,n){this._tracerProvider=n;var 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.resource,this.instrumentationLibrary=e}return e.prototype.startSpan=function(e,t,n){var m,h,f;void 0===t&&(t={}),void 0===n&&(n=r.context.active()),t.root&&(n=o.trace.deleteSpan(n));var A=o.trace.getSpan(n);if((0,c.isTracingSuppressed)(n))return s.diag.debug("Instrumentation suppressed, returning Noop Span"),o.trace.wrapSpanContext(i.INVALID_SPAN_CONTEXT);var g,_,y,E=null==A?void 0:A.spanContext(),b=this._idGenerator.generateSpanId();E&&o.trace.isSpanContextValid(E)?(g=E.traceId,_=E.traceState,y=E.spanId):g=this._idGenerator.generateTraceId();var v=null!==(m=t.kind)&&void 0!==m?m:a.SpanKind.INTERNAL,T=(null!==(h=t.links)&&void 0!==h?h:[]).map(function(e){return{context:e.context,attributes:(0,d.sanitizeAttributes)(e.attributes)}}),S=(0,d.sanitizeAttributes)(t.attributes),C=this._sampler.shouldSample(n,g,e,v,S,T);_=null!==(f=C.traceState)&&void 0!==f?f:_;var I={traceId:g,spanId:b,traceFlags:C.decision===l.SamplingDecision.RECORD_AND_SAMPLED?u.TraceFlags.SAMPLED:u.TraceFlags.NONE,traceState:_};if(C.decision===l.SamplingDecision.NOT_RECORD)return s.diag.debug("Recording is off, propagating context in a non-recording span"),o.trace.wrapSpanContext(I);var R=(0,d.sanitizeAttributes)(Object.assign(S,C.attributes));return new p.Span(this,n,e,I,v,y,T,t.startTime,void 0,R)},e.prototype.startActiveSpan=function(e,t,n,s){var i,a,l;if(!(arguments.length<2)){2===arguments.length?l=t:3===arguments.length?(i=t,l=n):(i=t,a=n,l=s);var u=null!=a?a:r.context.active(),c=this.startSpan(e,i,u),d=o.trace.setSpan(u,c);return r.context.with(d,l,void 0,c)}},e.prototype.getGeneralLimits=function(){return this._generalLimits},e.prototype.getSpanLimits=function(){return this._spanLimits},e.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},e}()},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/config.js":(e,t,n)=>{"use strict";n.d(t,{buildSamplerFromEnv:()=>h,loadDefaultConfig:()=>m});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),o=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/platform/browser/environment.js"),s=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/utils/sampling.js"),i=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/AlwaysOffSampler.js"),a=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/AlwaysOnSampler.js"),l=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/ParentBasedSampler.js"),u=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/TraceIdRatioBasedSampler.js"),c=(0,o.getEnv)(),d=s.TracesSamplerValues.AlwaysOn,p=1;function m(){var e=(0,o.getEnv)();return{sampler:h(c),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:e.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:e.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:e.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:e.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:e.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:e.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:e.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:e.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT},mergeResourceWithDefaults:!0}}function h(e){switch(void 0===e&&(e=(0,o.getEnv)()),e.OTEL_TRACES_SAMPLER){case s.TracesSamplerValues.AlwaysOn:return new a.AlwaysOnSampler;case s.TracesSamplerValues.AlwaysOff:return new i.AlwaysOffSampler;case s.TracesSamplerValues.ParentBasedAlwaysOn:return new l.ParentBasedSampler({root:new a.AlwaysOnSampler});case s.TracesSamplerValues.ParentBasedAlwaysOff:return new l.ParentBasedSampler({root:new i.AlwaysOffSampler});case s.TracesSamplerValues.TraceIdRatio:return new u.TraceIdRatioBasedSampler(f(e));case s.TracesSamplerValues.ParentBasedTraceIdRatio:return new l.ParentBasedSampler({root:new u.TraceIdRatioBasedSampler(f(e))});default:return r.diag.error('OTEL_TRACES_SAMPLER value "'+e.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+d+'".'),new a.AlwaysOnSampler}}function f(e){if(void 0===e.OTEL_TRACES_SAMPLER_ARG||""===e.OTEL_TRACES_SAMPLER_ARG)return r.diag.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+p+"."),p;var t=Number(e.OTEL_TRACES_SAMPLER_ARG);return isNaN(t)?(r.diag.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+p+"."),p):t<0||t>1?(r.diag.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+p+"."),p):t}},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/enums.js":(e,t,n)=>{"use strict";n.d(t,{ExceptionEventName:()=>r});var r="exception"},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/export/BatchSpanProcessorBase.js":(e,t,n)=>{"use strict";n.d(t,{BatchSpanProcessorBase:()=>p});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js"),s=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),i=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/platform/browser/environment.js"),a=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/utils/callback.js"),l=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js"),u=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/ExportResult.js"),c=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/common/global-error-handler.js"),d=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/platform/browser/timer-util.js"),p=function(){function e(e,t){this._exporter=e,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var n=(0,i.getEnv)();this._maxExportBatchSize="number"==typeof(null==t?void 0:t.maxExportBatchSize)?t.maxExportBatchSize:n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize="number"==typeof(null==t?void 0:t.maxQueueSize)?t.maxQueueSize:n.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis="number"==typeof(null==t?void 0:t.scheduledDelayMillis)?t.scheduledDelayMillis:n.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis="number"==typeof(null==t?void 0:t.exportTimeoutMillis)?t.exportTimeoutMillis:n.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new a.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(r.diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},e.prototype.onStart=function(e,t){},e.prototype.onEnd=function(e){this._shutdownOnce.isCalled||0!==(e.spanContext().traceFlags&o.TraceFlags.SAMPLED)&&this._addToBuffer(e)},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype._shutdown=function(){var e=this;return Promise.resolve().then(function(){return e.onShutdown()}).then(function(){return e._flushAll()}).then(function(){return e._exporter.shutdown()})},e.prototype._addToBuffer=function(e){if(this._finishedSpans.length>=this._maxQueueSize)return 0===this._droppedSpansCount&&r.diag.debug("maxQueueSize reached, dropping spans"),void this._droppedSpansCount++;this._droppedSpansCount>0&&(r.diag.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()},e.prototype._flushAll=function(){var e=this;return new Promise(function(t,n){for(var r=[],o=0,s=Math.ceil(e._finishedSpans.length/e._maxExportBatchSize);o<s;o++)r.push(e._flushOneBatch());Promise.all(r).then(function(){t()}).catch(n)})},e.prototype._flushOneBatch=function(){var e=this;return this._clearTimer(),0===this._finishedSpans.length?Promise.resolve():new Promise(function(t,n){var r=setTimeout(function(){n(new Error("Timeout"))},e._exportTimeoutMillis);s.context.with((0,l.suppressTracing)(s.context.active()),function(){var o;e._finishedSpans.length<=e._maxExportBatchSize?(o=e._finishedSpans,e._finishedSpans=[]):o=e._finishedSpans.splice(0,e._maxExportBatchSize);for(var s=function(){return e._exporter.export(o,function(e){var o;clearTimeout(r),e.code===u.ExportResultCode.SUCCESS?t():n(null!==(o=e.error)&&void 0!==o?o:new Error("BatchSpanProcessor: span export failed"))})},i=null,a=0,l=o.length;a<l;a++){var d=o[a];d.resource.asyncAttributesPending&&d.resource.waitForAsyncAttributes&&(null!=i||(i=[]),i.push(d.resource.waitForAsyncAttributes()))}null===i?s():Promise.all(i).then(s,function(e){(0,c.globalErrorHandler)(e),n(e)})})})},e.prototype._maybeStartTimer=function(){var e=this;if(!this._isExporting){var t=function(){e._isExporting=!0,e._flushOneBatch().finally(function(){e._isExporting=!1,e._finishedSpans.length>0&&(e._clearTimer(),e._maybeStartTimer())}).catch(function(t){e._isExporting=!1,(0,c.globalErrorHandler)(t)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return t();void 0===this._timer&&(this._timer=setTimeout(function(){return t()},this._scheduledDelayMillis),(0,d.unrefTimer)(this._timer))}},e.prototype._clearTimer=function(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)},e}()},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/export/NoopSpanProcessor.js":(e,t,n)=>{"use strict";n.d(t,{NoopSpanProcessor:()=>r});var r=function(){function e(){}return e.prototype.onStart=function(e,t){},e.prototype.onEnd=function(e){},e.prototype.shutdown=function(){return Promise.resolve()},e.prototype.forceFlush=function(){return Promise.resolve()},e}()},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/platform/browser/RandomIdGenerator.js":(e,t,n)=>{"use strict";n.d(t,{RandomIdGenerator:()=>r});var r=function(){this.generateTraceId=s(16),this.generateSpanId=s(8)},o=Array(32);function s(e){return function(){for(var t=0;t<2*e;t++)o[t]=Math.floor(16*Math.random())+48,o[t]>=58&&(o[t]+=39);return String.fromCharCode.apply(null,o.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:()=>a});var r,o=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/export/BatchSpanProcessorBase.js"),s=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/common/global-error-handler.js"),i=(r=function(e,t){return r=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])},r(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.onInit(n),r}return i(t,e),t.prototype.onInit=function(e){var t=this;!0!==(null==e?void 0:e.disableAutoFlushOnDocumentHide)&&"undefined"!=typeof document&&(this._visibilityChangeListener=function(){"hidden"===document.visibilityState&&t.forceFlush().catch(function(e){(0,s.globalErrorHandler)(e)})},this._pageHideListener=function(){t.forceFlush().catch(function(e){(0,s.globalErrorHandler)(e)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},t.prototype.onShutdown=function(){"undefined"!=typeof document&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},t}(o.BatchSpanProcessorBase)},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/AlwaysOffSampler.js":(e,t,n)=>{"use strict";n.d(t,{AlwaysOffSampler:()=>o});var r=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Sampler.js"),o=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:r.SamplingDecision.NOT_RECORD}},e.prototype.toString=function(){return"AlwaysOffSampler"},e}()},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/AlwaysOnSampler.js":(e,t,n)=>{"use strict";n.d(t,{AlwaysOnSampler:()=>o});var r=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Sampler.js"),o=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:r.SamplingDecision.RECORD_AND_SAMPLED}},e.prototype.toString=function(){return"AlwaysOnSampler"},e}()},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/ParentBasedSampler.js":(e,t,n)=>{"use strict";n.d(t,{ParentBasedSampler:()=>u});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"),s=n("../../node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js"),i=n("../../node_modules/@opentelemetry/sdk-trace-base/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"),u=function(){function e(e){var t,n,r,o;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=null!==(t=e.remoteParentSampled)&&void 0!==t?t:new l.AlwaysOnSampler,this._remoteParentNotSampled=null!==(n=e.remoteParentNotSampled)&&void 0!==n?n:new a.AlwaysOffSampler,this._localParentSampled=null!==(r=e.localParentSampled)&&void 0!==r?r:new l.AlwaysOnSampler,this._localParentNotSampled=null!==(o=e.localParentNotSampled)&&void 0!==o?o:new a.AlwaysOffSampler}return e.prototype.shouldSample=function(e,t,n,i,a,l){var u=r.trace.getSpanContext(e);return u&&(0,o.isSpanContextValid)(u)?u.isRemote?u.traceFlags&s.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,t,n,i,a,l):this._remoteParentNotSampled.shouldSample(e,t,n,i,a,l):u.traceFlags&s.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)},e.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},e}()},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/TraceIdRatioBasedSampler.js":(e,t,n)=>{"use strict";n.d(t,{TraceIdRatioBasedSampler:()=>s});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"),o=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Sampler.js"),s=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){return{decision:(0,r.isValidTraceId)(t)&&this._accumulate(t)<this._upperBound?o.SamplingDecision.RECORD_AND_SAMPLED:o.SamplingDecision.NOT_RECORD}},e.prototype.toString=function(){return"TraceIdRatioBased{"+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 r=8*n;t=(t^parseInt(e.slice(r,r+8),16))>>>0}return t},e}()},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/utility.js":(e,t,n)=>{"use strict";n.d(t,{mergeConfig:()=>i,reconfigureLimits:()=>a});var r=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/config.js"),o=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/platform/browser/environment.js"),s=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/utils/environment.js");function i(e){var t={sampler:(0,r.buildSamplerFromEnv)()},n=(0,r.loadDefaultConfig)(),o=Object.assign({},n,t,e);return o.generalLimits=Object.assign({},n.generalLimits,e.generalLimits||{}),o.spanLimits=Object.assign({},n.spanLimits,e.spanLimits||{}),o}function a(e){var t,n,r,i,a,l,u,c,d,p,m,h,f=Object.assign({},e.spanLimits),A=(0,o.getEnvWithoutDefaults)();return f.attributeCountLimit=null!==(l=null!==(a=null!==(i=null!==(n=null===(t=e.spanLimits)||void 0===t?void 0:t.attributeCountLimit)&&void 0!==n?n:null===(r=e.generalLimits)||void 0===r?void 0:r.attributeCountLimit)&&void 0!==i?i:A.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)&&void 0!==a?a:A.OTEL_ATTRIBUTE_COUNT_LIMIT)&&void 0!==l?l:s.DEFAULT_ATTRIBUTE_COUNT_LIMIT,f.attributeValueLengthLimit=null!==(h=null!==(m=null!==(p=null!==(c=null===(u=e.spanLimits)||void 0===u?void 0:u.attributeValueLengthLimit)&&void 0!==c?c:null===(d=e.generalLimits)||void 0===d?void 0:d.attributeValueLengthLimit)&&void 0!==p?p:A.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)&&void 0!==m?m:A.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)&&void 0!==h?h:s.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,Object.assign({},e,{spanLimits:f})}},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/ExportResult.js":(e,t,n)=>{"use strict";var r;n.d(t,{ExportResultCode:()=>r}),function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"}(r||(r={}))},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/baggage/constants.js":(e,t,n)=>{"use strict";n.d(t,{BAGGAGE_HEADER:()=>i,BAGGAGE_ITEMS_SEPARATOR:()=>s,BAGGAGE_KEY_PAIR_SEPARATOR:()=>r,BAGGAGE_MAX_NAME_VALUE_PAIRS:()=>a,BAGGAGE_MAX_PER_NAME_VALUE_PAIRS:()=>l,BAGGAGE_MAX_TOTAL_LENGTH:()=>u,BAGGAGE_PROPERTIES_SEPARATOR:()=>o});var r="=",o=";",s=",",i="baggage",a=180,l=4096,u=8192},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/baggage/propagation/W3CBaggagePropagator.js":(e,t,n)=>{"use strict";n.d(t,{W3CBaggagePropagator:()=>a});var r=n("../../node_modules/@opentelemetry/api/build/esm/propagation-api.js"),o=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js"),s=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/baggage/constants.js"),i=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/baggage/utils.js"),a=function(){function e(){}return e.prototype.inject=function(e,t,n){var a=r.propagation.getBaggage(e);if(a&&!(0,o.isTracingSuppressed)(e)){var l=(0,i.getKeyPairs)(a).filter(function(e){return e.length<=s.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS}).slice(0,s.BAGGAGE_MAX_NAME_VALUE_PAIRS),u=(0,i.serializeKeyPairs)(l);u.length>0&&n.set(t,s.BAGGAGE_HEADER,u)}},e.prototype.extract=function(e,t,n){var o=n.get(t,s.BAGGAGE_HEADER),a=Array.isArray(o)?o.join(s.BAGGAGE_ITEMS_SEPARATOR):o;if(!a)return e;var l={};return 0===a.length?e:(a.split(s.BAGGAGE_ITEMS_SEPARATOR).forEach(function(e){var t=(0,i.parsePairKeyValue)(e);if(t){var n={value:t.value};t.metadata&&(n.metadata=t.metadata),l[t.key]=n}}),0===Object.entries(l).length?e:r.propagation.setBaggage(e,r.propagation.createBaggage(l)))},e.prototype.fields=function(){return[s.BAGGAGE_HEADER]},e}()},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/baggage/utils.js":(e,t,n)=>{"use strict";n.d(t,{getKeyPairs:()=>a,parsePairKeyValue:()=>l,serializeKeyPairs:()=>i});var r=n("../../node_modules/@opentelemetry/api/build/esm/baggage/utils.js"),o=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/baggage/constants.js"),s=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i};function i(e){return e.reduce(function(e,t){var n=""+e+(""!==e?o.BAGGAGE_ITEMS_SEPARATOR:"")+t;return n.length>o.BAGGAGE_MAX_TOTAL_LENGTH?e:n},"")}function a(e){return e.getAllEntries().map(function(e){var t=s(e,2),n=t[0],r=t[1],i=encodeURIComponent(n)+"="+encodeURIComponent(r.value);return void 0!==r.metadata&&(i+=o.BAGGAGE_PROPERTIES_SEPARATOR+r.metadata.toString()),i})}function l(e){var t=e.split(o.BAGGAGE_PROPERTIES_SEPARATOR);if(!(t.length<=0)){var n=t.shift();if(n){var s=n.indexOf(o.BAGGAGE_KEY_PAIR_SEPARATOR);if(!(s<=0)){var i,a=decodeURIComponent(n.substring(0,s).trim()),l=decodeURIComponent(n.substring(s+1).trim());return t.length>0&&(i=(0,r.baggageEntryMetadataFromString)(t.join(o.BAGGAGE_PROPERTIES_SEPARATOR))),{key:a,value:l,metadata:i}}}}}},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/common/attributes.js":(e,t,n)=>{"use strict";n.d(t,{isAttributeValue:()=>l,sanitizeAttributes:()=>i});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),o=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i};function i(e){var t,n,i={};if("object"!=typeof e||null==e)return i;try{for(var u=o(Object.entries(e)),c=u.next();!c.done;c=u.next()){var d=s(c.value,2),p=d[0],m=d[1];a(p)?l(m)?Array.isArray(m)?i[p]=m.slice():i[p]=m:r.diag.warn("Invalid attribute value set for key: "+p):r.diag.warn("Invalid attribute key: "+p)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return i}function a(e){return"string"==typeof e&&e.length>0}function l(e){return null==e||(Array.isArray(e)?function(e){var t,n,r;try{for(var s=o(e),i=s.next();!i.done;i=s.next()){var a=i.value;if(null!=a){if(!r){if(u(a)){r=typeof a;continue}return!1}if(typeof a!==r)return!1}}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return!0}(e):u(e))}function u(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/common/global-error-handler.js":(e,t,n)=>{"use strict";n.d(t,{globalErrorHandler:()=>o});var r=(0,n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/common/logging-error-handler.js").loggingErrorHandler)();function o(e){try{r(e)}catch(e){}}},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/common/logging-error-handler.js":(e,t,n)=>{"use strict";n.d(t,{loggingErrorHandler:()=>o});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js");function o(){return function(e){r.diag.error(function(e){return"string"==typeof e?e:JSON.stringify(function(e){var t={},n=e;for(;null!==n;)Object.getOwnPropertyNames(n).forEach(function(e){if(!t[e]){var r=n[e];r&&(t[e]=String(r))}}),n=Object.getPrototypeOf(n);return t}(e))}(e))}}},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/common/time.js":(e,t,n)=>{"use strict";n.d(t,{addHrTimes:()=>p,getTimeOrigin:()=>a,hrTime:()=>l,hrTimeDuration:()=>u,isTimeInput:()=>d,isTimeInputHrTime:()=>c,millisToHrTime:()=>i});var r=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js"),o=Math.pow(10,6),s=Math.pow(10,9);function i(e){var t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*o)]}function a(){var e=r.otperformance.timeOrigin;if("number"!=typeof e){var t=r.otperformance;e=t.timing&&t.timing.fetchStart}return e}function l(e){return p(i(a()),i("number"==typeof e?e:r.otperformance.now()))}function u(e,t){var n=t[0]-e[0],r=t[1]-e[1];return r<0&&(n-=1,r+=s),[n,r]}function c(e){return Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}function d(e){return c(e)||"number"==typeof e||e instanceof Date}function p(e,t){var n=[e[0]+t[0],e[1]+t[1]];return n[1]>=s&&(n[1]-=s,n[0]+=1),n}},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/internal/validators.js":(e,t,n)=>{"use strict";n.d(t,{validateKey:()=>a,validateValue:()=>l});var r="[_0-9a-z-*/]",o=new RegExp("^(?:"+("[a-z]"+r+"{0,255}")+"|"+("[a-z0-9]"+r+"{0,240}@[a-z]"+r+"{0,13}")+")$"),s=/^[ -~]{0,255}[!-~]$/,i=/,|=/;function a(e){return o.test(e)}function l(e){return s.test(e)&&!i.test(e)}},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/platform/browser/environment.js":(e,t,n)=>{"use strict";n.d(t,{getEnv:()=>s,getEnvWithoutDefaults:()=>i});var r=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/utils/environment.js"),o=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/platform/browser/globalThis.js");function s(){var e=(0,r.parseEnvironment)(o._globalThis);return Object.assign({},r.DEFAULT_ENVIRONMENT,e)}function i(){return(0,r.parseEnvironment)(o._globalThis)}},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/platform/browser/globalThis.js":(e,t,n)=>{"use strict";n.d(t,{_globalThis:()=>r});var r="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof n.g?n.g:{}},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js":(e,t,n)=>{"use strict";n.d(t,{otperformance:()=>r});var r=performance},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/platform/browser/timer-util.js":(e,t,n)=>{"use strict";function r(e){}n.d(t,{unrefTimer:()=>r})},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/propagation/composite.js":(e,t,n)=>{"use strict";n.d(t,{CompositePropagator:()=>s});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),o=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=function(){function e(e){var t;void 0===e&&(e={}),this._propagators=null!==(t=e.propagators)&&void 0!==t?t:[],this._fields=Array.from(new Set(this._propagators.map(function(e){return"function"==typeof e.fields?e.fields():[]}).reduce(function(e,t){return e.concat(t)},[])))}return e.prototype.inject=function(e,t,n){var s,i;try{for(var a=o(this._propagators),l=a.next();!l.done;l=a.next()){var u=l.value;try{u.inject(e,t,n)}catch(e){r.diag.warn("Failed to inject with "+u.constructor.name+". Err: "+e.message)}}}catch(e){s={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(s)throw s.error}}},e.prototype.extract=function(e,t,n){return this._propagators.reduce(function(e,o){try{return o.extract(e,t,n)}catch(e){r.diag.warn("Failed to extract with "+o.constructor.name+". Err: "+e.message)}return e},e)},e.prototype.fields=function(){return this._fields.slice()},e}()},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/trace/TraceState.js":(e,t,n)=>{"use strict";n.d(t,{TraceState:()=>o});var r=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/internal/validators.js"),o=function(){function e(e){this._internalState=new Map,e&&this._parse(e)}return e.prototype.set=function(e,t){var n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n},e.prototype.unset=function(e){var t=this._clone();return t._internalState.delete(e),t},e.prototype.get=function(e){return this._internalState.get(e)},e.prototype.serialize=function(){var e=this;return this._keys().reduce(function(t,n){return t.push(n+"="+e.get(n)),t},[]).join(",")},e.prototype._parse=function(e){e.length>512||(this._internalState=e.split(",").reverse().reduce(function(e,t){var n=t.trim(),o=n.indexOf("=");if(-1!==o){var s=n.slice(0,o),i=n.slice(o+1,t.length);(0,r.validateKey)(s)&&(0,r.validateValue)(i)&&e.set(s,i)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}()},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js":(e,t,n)=>{"use strict";n.d(t,{W3CTraceContextPropagator:()=>d});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"),s=n("../../node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js"),i=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js"),a=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/trace/TraceState.js"),l="traceparent",u="tracestate",c=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");var d=function(){function e(){}return e.prototype.inject=function(e,t,n){var a=r.trace.getSpanContext(e);if(a&&!(0,i.isTracingSuppressed)(e)&&(0,o.isSpanContextValid)(a)){var c="00-"+a.traceId+"-"+a.spanId+"-0"+Number(a.traceFlags||s.TraceFlags.NONE).toString(16);n.set(t,l,c),a.traceState&&n.set(t,u,a.traceState.serialize())}},e.prototype.extract=function(e,t,n){var o=n.get(t,l);if(!o)return e;var s=Array.isArray(o)?o[0]:o;if("string"!=typeof s)return e;var i=function(e){var t=c.exec(e);return t?"00"===t[1]&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}:null}(s);if(!i)return e;i.isRemote=!0;var d=n.get(t,u);if(d){var p=Array.isArray(d)?d.join(","):d;i.traceState=new a.TraceState("string"==typeof p?p:void 0)}return r.trace.setSpanContext(e,i)},e.prototype.fields=function(){return[l,u]},e}()},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js":(e,t,n)=>{"use strict";n.d(t,{isTracingSuppressed:()=>s,suppressTracing:()=>o});var r=(0,n("../../node_modules/@opentelemetry/api/build/esm/context/context.js").createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function o(e){return e.setValue(r,!0)}function s(e){return!0===e.getValue(r)}},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/utils/callback.js":(e,t,n)=>{"use strict";n.d(t,{BindOnceFuture:()=>i});var r=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/utils/promise.js"),o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},s=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,s=t.length;o<s;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},i=function(){function e(e,t){this._callback=e,this._that=t,this._isCalled=!1,this._deferred=new r.Deferred}return Object.defineProperty(e.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),e.prototype.call=function(){for(var e,t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((e=this._callback).call.apply(e,s([this._that],o(n),!1))).then(function(e){return t._deferred.resolve(e)},function(e){return t._deferred.reject(e)})}catch(e){this._deferred.reject(e)}}return this._deferred.promise},e}()},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/utils/environment.js":(e,t,n)=>{"use strict";n.d(t,{DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>m,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>p,DEFAULT_ENVIRONMENT:()=>h,parseEnvironment:()=>E});var r=n("../../node_modules/@opentelemetry/api/build/esm/diag/types.js"),o=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/utils/sampling.js"),s=",",i=["OTEL_SDK_DISABLED"];function a(e){return i.indexOf(e)>-1}var l=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function u(e){return l.indexOf(e)>-1}var c=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function d(e){return c.indexOf(e)>-1}var p=1/0,m=128,h={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:r.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:p,OTEL_ATTRIBUTE_COUNT_LIMIT:m,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:p,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:m,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:p,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:m,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:o.TracesSamplerValues.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function f(e,t,n){if(void 0!==n[e]){var r=String(n[e]);t[e]="true"===r.toLowerCase()}}function A(e,t,n,r,o){if(void 0===r&&(r=-1/0),void 0===o&&(o=1/0),void 0!==n[e]){var s=Number(n[e]);isNaN(s)||(t[e]=s<r?r:s>o?o:s)}}function g(e,t,n,r){void 0===r&&(r=s);var o=n[e];"string"==typeof o&&(t[e]=o.split(r).map(function(e){return e.trim()}))}var _={ALL:r.DiagLogLevel.ALL,VERBOSE:r.DiagLogLevel.VERBOSE,DEBUG:r.DiagLogLevel.DEBUG,INFO:r.DiagLogLevel.INFO,WARN:r.DiagLogLevel.WARN,ERROR:r.DiagLogLevel.ERROR,NONE:r.DiagLogLevel.NONE};function y(e,t,n){var r=n[e];if("string"==typeof r){var o=_[r.toUpperCase()];null!=o&&(t[e]=o)}}function E(e){var t={};for(var n in h){var r=n;if("OTEL_LOG_LEVEL"===r)y(r,t,e);else if(a(r))f(r,t,e);else if(u(r))A(r,t,e);else if(d(r))g(r,t,e);else{var o=e[r];null!=o&&(t[r]=String(o))}}return t}},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/utils/lodash.merge.js":(e,t,n)=>{"use strict";n.d(t,{isPlainObject:()=>f});var r,o,s="[object Object]",i="[object Null]",a="[object Undefined]",l=Function.prototype.toString,u=l.call(Object),c=(r=Object.getPrototypeOf,o=Object,function(e){return r(o(e))}),d=Object.prototype,p=d.hasOwnProperty,m=Symbol?Symbol.toStringTag:void 0,h=d.toString;function f(e){if(!function(e){return null!=e&&"object"==typeof e}(e)||function(e){if(null==e)return void 0===e?a:i;return m&&m in Object(e)?function(e){var t=p.call(e,m),n=e[m],r=!1;try{e[m]=void 0,r=!0}catch(e){}var o=h.call(e);r&&(t?e[m]=n:delete e[m]);return o}(e):function(e){return h.call(e)}(e)}(e)!==s)return!1;var t=c(e);if(null===t)return!0;var n=p.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)===u}},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/utils/merge.js":(e,t,n)=>{"use strict";n.d(t,{merge:()=>s});var r=n("../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/utils/lodash.merge.js"),o=20;function s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e.shift(),r=new WeakMap;e.length>0;)n=a(n,e.shift(),0,r);return n}function i(e){return u(e)?e.slice():e}function a(e,t,n,s){var m;if(void 0===n&&(n=0),!(n>o)){if(n++,p(e)||p(t)||c(t))m=i(t);else if(u(e)){if(m=e.slice(),u(t))for(var h=0,f=t.length;h<f;h++)m.push(i(t[h]));else if(d(t))for(h=0,f=(A=Object.keys(t)).length;h<f;h++){m[g=A[h]]=i(t[g])}}else if(d(e))if(d(t)){if(!function(e,t){if(!(0,r.isPlainObject)(e)||!(0,r.isPlainObject)(t))return!1;return!0}(e,t))return t;m=Object.assign({},e);var A;for(h=0,f=(A=Object.keys(t)).length;h<f;h++){var g,_=t[g=A[h]];if(p(_))void 0===_?delete m[g]:m[g]=_;else{var y=m[g],E=_;if(l(e,g,s)||l(t,g,s))delete m[g];else{if(d(y)&&d(E)){var b=s.get(y)||[],v=s.get(E)||[];b.push({obj:e,key:g}),v.push({obj:t,key:g}),s.set(y,b),s.set(E,v)}m[g]=a(m[g],_,n,s)}}}}else m=t;return m}}function l(e,t,n){for(var r=n.get(e[t])||[],o=0,s=r.length;o<s;o++){var i=r[o];if(i.key===t&&i.obj===e)return!0}return!1}function u(e){return Array.isArray(e)}function c(e){return"function"==typeof e}function d(e){return!p(e)&&!u(e)&&!c(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/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/utils/promise.js":(e,t,n)=>{"use strict";n.d(t,{Deferred:()=>r});var r=function(){function e(){var e=this;this._promise=new Promise(function(t,n){e._resolve=t,e._reject=n})}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(e){this._resolve(e)},e.prototype.reject=function(e){this._reject(e)},e}()},"../../node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/utils/sampling.js":(e,t,n)=>{"use strict";var r;n.d(t,{TracesSamplerValues:()=>r}),function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"}(r||(r={}))},"../../node_modules/@opentelemetry/sdk-trace-web/build/esm/StackContextManager.js":(e,t,n)=>{"use strict";n.d(t,{StackContextManager:()=>i});var r=n("../../node_modules/@opentelemetry/api/build/esm/context/context.js"),o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},s=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,s=t.length;o<s;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},i=function(){function e(){this._enabled=!1,this._currentContext=r.ROOT_CONTEXT}return e.prototype._bindFunction=function(e,t){void 0===e&&(e=r.ROOT_CONTEXT);var n=this,o=function(){for(var r=this,o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return n.with(e,function(){return t.apply(r,o)})};return Object.defineProperty(o,"length",{enumerable:!1,configurable:!0,writable:!1,value:t.length}),o},e.prototype.active=function(){return this._currentContext},e.prototype.bind=function(e,t){return void 0===e&&(e=this.active()),"function"==typeof t?this._bindFunction(e,t):t},e.prototype.disable=function(){return this._currentContext=r.ROOT_CONTEXT,this._enabled=!1,this},e.prototype.enable=function(){return this._enabled||(this._enabled=!0,this._currentContext=r.ROOT_CONTEXT),this},e.prototype.with=function(e,t,n){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];var l=this._currentContext;this._currentContext=e||r.ROOT_CONTEXT;try{return t.call.apply(t,s([n],o(i),!1))}finally{this._currentContext=l}},e}()},"../../node_modules/@opentelemetry/sdk-trace-web/build/esm/WebTracerProvider.js":(e,t,n)=>{"use strict";n.d(t,{WebTracerProvider:()=>a});var r,o=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/BasicTracerProvider.js"),s=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/StackContextManager.js"),i=(r=function(e,t){return r=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])},r(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;if(t.contextManager)throw"contextManager should be defined in register method not in constructor";if(t.propagator)throw"propagator should be defined in register method not in constructor";return n}return i(t,e),t.prototype.register=function(t){void 0===t&&(t={}),void 0===t.contextManager&&(t.contextManager=new s.StackContextManager),t.contextManager&&t.contextManager.enable(),e.prototype.register.call(this,t)},t}(o.BasicTracerProvider)},"../../node_modules/@opentelemetry/sdk-trace-web/build/esm/enums/PerformanceTimingNames.js":(e,t,n)=>{"use strict";var r;n.d(t,{PerformanceTimingNames:()=>r}),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.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"}(r||(r={}))},"../../node_modules/@opentelemetry/sdk-trace-web/build/esm/utils.js":(e,t,n)=>{"use strict";n.d(t,{addSpanNetworkEvent:()=>u,addSpanNetworkEvents:()=>c,getElementXPath:()=>h,getResource:()=>p,hasKey:()=>l,parseUrl:()=>m,shouldPropagateTraceHeaders:()=>f});var r,o=n("../../node_modules/@opentelemetry/sdk-trace-web/build/esm/enums/PerformanceTimingNames.js"),s=n("../../node_modules/@opentelemetry/sdk-trace-web/node_modules/@opentelemetry/core/build/esm/common/time.js"),i=n("../../node_modules/@opentelemetry/sdk-trace-web/node_modules/@opentelemetry/core/build/esm/utils/url.js"),a=n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js");function l(e,t){return t in e}function u(e,t,n,r){var s=void 0,i=void 0;l(n,t)&&"number"==typeof n[t]&&(s=n[t]);var a=r||o.PerformanceTimingNames.FETCH_START;if(l(n,a)&&"number"==typeof n[a]&&(i=n[a]),void 0!==s&&void 0!==i&&s>=i)return e.addEvent(t,s),e}function c(e,t){u(e,o.PerformanceTimingNames.FETCH_START,t),u(e,o.PerformanceTimingNames.DOMAIN_LOOKUP_START,t),u(e,o.PerformanceTimingNames.DOMAIN_LOOKUP_END,t),u(e,o.PerformanceTimingNames.CONNECT_START,t),l(t,"name")&&t.name.startsWith("https:")&&u(e,o.PerformanceTimingNames.SECURE_CONNECTION_START,t),u(e,o.PerformanceTimingNames.CONNECT_END,t),u(e,o.PerformanceTimingNames.REQUEST_START,t),u(e,o.PerformanceTimingNames.RESPONSE_START,t),u(e,o.PerformanceTimingNames.RESPONSE_END,t);var n=t[o.PerformanceTimingNames.ENCODED_BODY_SIZE];void 0!==n&&e.setAttribute(a.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH,n);var r=t[o.PerformanceTimingNames.DECODED_BODY_SIZE];void 0!==r&&n!==r&&e.setAttribute(a.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED,r)}function d(){return"undefined"!=typeof location?location.origin:void 0}function p(e,t,n,r,i,a){void 0===i&&(i=new WeakSet);var l=m(e),u=function(e,t,n,r,i,a){var l=(0,s.hrTimeToNanoseconds)(t),u=(0,s.hrTimeToNanoseconds)(n),c=r.filter(function(t){var n=(0,s.hrTimeToNanoseconds)((0,s.timeInputToHrTime)(t[o.PerformanceTimingNames.FETCH_START])),r=(0,s.hrTimeToNanoseconds)((0,s.timeInputToHrTime)(t[o.PerformanceTimingNames.RESPONSE_END]));return t.initiatorType.toLowerCase()===(a||"xmlhttprequest")&&t.name===e&&n>=l&&r<=u});c.length>0&&(c=c.filter(function(e){return!i.has(e)}));return c}(e=l.toString(),t,n,r,i,a);if(0===u.length)return{mainRequest:void 0};if(1===u.length)return{mainRequest:u[0]};var c=function(e){return e.slice().sort(function(e,t){var n=e[o.PerformanceTimingNames.FETCH_START],r=t[o.PerformanceTimingNames.FETCH_START];return n>r?1:n<r?-1:0})}(u);if(l.origin!==d()&&c.length>1){var p=c[0],h=function(e,t,n){for(var r,i=(0,s.hrTimeToNanoseconds)(n),a=(0,s.hrTimeToNanoseconds)((0,s.timeInputToHrTime)(t)),l=e[1],u=e.length,c=1;c<u;c++){var d=e[c],p=(0,s.hrTimeToNanoseconds)((0,s.timeInputToHrTime)(d[o.PerformanceTimingNames.FETCH_START])),m=i-(0,s.hrTimeToNanoseconds)((0,s.timeInputToHrTime)(d[o.PerformanceTimingNames.RESPONSE_END]));p>=a&&(!r||m<r)&&(r=m,l=d)}return l}(c,p[o.PerformanceTimingNames.RESPONSE_END],n),f=p[o.PerformanceTimingNames.RESPONSE_END];return h[o.PerformanceTimingNames.FETCH_START]<f&&(h=p,p=void 0),{corsPreFlightRequest:p,mainRequest:h}}return{mainRequest:u[0]}}function m(e){if("function"==typeof URL)return new URL(e,"undefined"!=typeof document?document.baseURI:"undefined"!=typeof location?location.href:void 0);var t=(r||(r=document.createElement("a")),r);return t.href=e,t}function h(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return"/";var n=function(e,t){var n=e.nodeType,r=function(e){if(!e.parentNode)return 0;var t=[e.nodeType];e.nodeType===Node.CDATA_SECTION_NODE&&t.push(Node.TEXT_NODE);var n=Array.from(e.parentNode.childNodes);if(n=n.filter(function(n){var r=n.localName;return t.indexOf(n.nodeType)>=0&&r===e.localName}),n.length>=1)return n.indexOf(e)+1;return 0}(e),o="";if(n===Node.ELEMENT_NODE){var s=e.getAttribute("id");if(t&&s)return'//*[@id="'+s+'"]';o=e.localName}else if(n===Node.TEXT_NODE||n===Node.CDATA_SECTION_NODE)o="text()";else{if(n!==Node.COMMENT_NODE)return"";o="comment()"}if(o&&r>1)return"/"+o+"["+r+"]";return"/"+o}(e,t);if(t&&n.indexOf("@id")>0)return n;var r="";return e.parentNode&&(r+=h(e.parentNode,!1)),r+=n}function f(e,t){var n=t||[];return("string"==typeof n||n instanceof RegExp)&&(n=[n]),m(e).origin===d()||n.some(function(t){return(0,i.urlMatches)(e,t)})}},"../../node_modules/@opentelemetry/sdk-trace-web/node_modules/@opentelemetry/core/build/esm/common/time.js":(e,t,n)=>{"use strict";n.d(t,{hrTimeToNanoseconds:()=>c,timeInputToHrTime:()=>u});var r=n("../../node_modules/@opentelemetry/sdk-trace-web/node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js"),o=Math.pow(10,6),s=Math.pow(10,9);function i(e){var t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*o)]}function a(){var e=r.otperformance.timeOrigin;if("number"!=typeof e){var t=r.otperformance;e=t.timing&&t.timing.fetchStart}return e}function l(e){return function(e,t){var n=[e[0]+t[0],e[1]+t[1]];n[1]>=s&&(n[1]-=s,n[0]+=1);return n}(i(a()),i("number"==typeof e?e:r.otperformance.now()))}function u(e){if(d(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 c(e){return e[0]*s+e[1]}function d(e){return Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}},"../../node_modules/@opentelemetry/sdk-trace-web/node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js":(e,t,n)=>{"use strict";n.d(t,{otperformance:()=>r});var r=performance},"../../node_modules/@opentelemetry/sdk-trace-web/node_modules/@opentelemetry/core/build/esm/utils/url.js":(e,t,n)=>{"use strict";n.d(t,{urlMatches:()=>r});function r(e,t){return"string"==typeof t?e===t:!!e.match(t)}},"../../node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js":(e,t,n)=>{"use strict";function r(e){for(var t={},n=e.length,r=0;r<n;r++){var o=e[r];o&&(t[String(o).toUpperCase().replace(/[-.]/g,"_")]=o)}return t}n.d(t,{createConstMap:()=>r})},"../../node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js":(e,t,n)=>{"use strict";n.d(t,{SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>c,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>d,SEMRESATTRS_SERVICE_NAME:()=>p,SEMRESATTRS_SERVICE_VERSION:()=>m,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>f,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>h,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>A,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>_});n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js");var r="deployment.environment",o="process.runtime.name",s="service.name",i="service.version",a="telemetry.sdk.name",l="telemetry.sdk.language",u="telemetry.sdk.version",c=r,d=o,p=s,m=i,h=a,f=l,A=u,g="webjs",_=g},"../../node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js":(e,t,n)=>{"use strict";n.d(t,{SEMATTRS_EXCEPTION_MESSAGE:()=>A,SEMATTRS_EXCEPTION_STACKTRACE:()=>g,SEMATTRS_EXCEPTION_TYPE:()=>f,SEMATTRS_HTTP_HOST:()=>E,SEMATTRS_HTTP_METHOD:()=>_,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>S,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>C,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>I,SEMATTRS_HTTP_SCHEME:()=>b,SEMATTRS_HTTP_STATUS_CODE:()=>v,SEMATTRS_HTTP_URL:()=>y,SEMATTRS_HTTP_USER_AGENT:()=>T});n("../../node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js");var r="exception.type",o="exception.message",s="exception.stacktrace",i="http.method",a="http.url",l="http.host",u="http.scheme",c="http.status_code",d="http.user_agent",p="http.request_content_length_uncompressed",m="http.response_content_length",h="http.response_content_length_uncompressed",f=r,A=o,g=s,_=i,y=a,E=l,b=u,v=c,T=d,S=p,C=m,I=h},"../../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 r=n("../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js"),o=n.n(r),s=n("../../node_modules/css-loader/dist/runtime/api.js"),i=n.n(s),a=n("../../node_modules/css-loader/dist/runtime/getUrl.js"),l=n.n(a),u=new URL(n("data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzMwMHB4JyB3aWR0aD0nMzAwcHgnICBmaWxsPSIjMDAwMDAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGRhdGEtbmFtZT0iTGF5ZXIgMSIgdmlld0JveD0iMCAwIDUwIDUwIiB4PSIwcHgiIHk9IjBweCI+PHRpdGxlPkRlc2lnbl90bnA8L3RpdGxlPjxwYXRoIGQ9Ik00OC43MSw0Mi45MUwzNC4wOCwyOC4yOSw0NC4zMywxOEExLDEsMCwwLDAsNDQsMTYuMzlMMi4zNSwxLjA2QTEsMSwwLDAsMCwxLjA2LDIuMzVMMTYuMzksNDRhMSwxLDAsMCwwLDEuNjUuMzZMMjguMjksMzQuMDgsNDIuOTEsNDguNzFhMSwxLDAsMCwwLDEuNDEsMGw0LjM4LTQuMzhBMSwxLDAsMCwwLDQ4LjcxLDQyLjkxWm0tNS4wOSwzLjY3TDI5LDMyYTEsMSwwLDAsMC0xLjQxLDBsLTkuODUsOS44NUwzLjY5LDMuNjlsMzguMTIsMTRMMzIsMjcuNThBMSwxLDAsMCwwLDMyLDI5TDQ2LjU5LDQzLjYyWiI+PC9wYXRoPjwvc3ZnPg=="),n.b),c=i()(o()),d=l()(u);c.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=c},"../../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 r=n("../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js"),o=n.n(r),s=n("../../node_modules/css-loader/dist/runtime/api.js"),i=n.n(s)()(o());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,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var s=0;s<this.length;s++){var i=this[s][0];null!=i&&(o[i]=!0)}for(var a=0;a<e.length;a++){var l=[].concat(e[a]);r&&o[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 r,o,s=[],i=!0,a=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(s.push(r.value),!t||s.length!==t);i=!0);}catch(e){a=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(a)throw o}}return s}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))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,r=new Array(t);n<t;n++)r[n]=e[n];return r}e.exports=function(e){var n=t(e,4),r=n[1],o=n[3];if(!o)return r;if("function"==typeof btoa){var s=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),a="/*# ".concat(i," */"),l=o.sources.map(function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")});return[r].concat(l).concat([a]).join("\n")}return[r].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,r=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 o=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise(function(n,r){function o(n){e.removeListener(t,s),r(n)}function s(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}f(e,t,s,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&f(e,"error",t,n)}(e,o,{once:!0})})},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.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?s.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var o,s,i,u;if(a(n),void 0===(s=e._events)?(s=e._events=Object.create(null),e._eventsCount=0):(void 0!==s.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),i=s[t]),void 0===i)i=s[t]=n,++e._eventsCount;else if("function"==typeof i?i=s[t]=r?[n,i]:[i,n]:r?i.unshift(n):i.push(n),(o=l(e))>0&&i.length>o&&!i.warned){i.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=i.length,u=c,console&&console.warn&&console.warn(u)}return e}function c(){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 r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=c.bind(r);return o.listener=n,r.wrapFn=o,o}function p(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]: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}(o):h(o,o.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),r=0;r<t;++r)n[r]=e[r];return n}function f(e,t,n,r){if("function"==typeof e.on)r.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 o(s){r.once&&e.removeEventListener(t,o),n(s)})}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");i=e}}),s.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},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(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},s.prototype.getMaxListeners=function(){return l(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,s=this._events;if(void 0!==s)o=o&&void 0===s.error;else if(!o)return!1;if(o){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=s[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var u=l.length,c=h(l,u);for(n=0;n<u;++n)r(c[n],this,t)}return!0},s.prototype.addListener=function(e,t){return u(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return u(this,e,t,!0)},s.prototype.once=function(e,t){return a(t),this.on(e,d(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,d(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,o,s,i;if(a(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,s=n.length-1;s>=0;s--)if(n[s]===t||n[s].listener===t){i=n[s].listener,o=s;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,i||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;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 o,s=Object.keys(n);for(r=0;r<s.length;++r)"removeListener"!==(o=s[r])&&this.removeAllListeners(o);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(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},"../../node_modules/lodash.isequal/index.js":(e,t,n)=>{e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,s="[object Arguments]",i="[object Array]",a="[object Boolean]",l="[object Date]",u="[object Error]",c="[object Function]",d="[object Map]",p="[object Number]",m="[object Object]",h="[object Promise]",f="[object RegExp]",A="[object Set]",g="[object String]",_="[object Symbol]",y="[object WeakMap]",E="[object ArrayBuffer]",b="[object DataView]",v=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,S={};S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S[s]=S[i]=S[E]=S[a]=S[b]=S[l]=S[u]=S[c]=S[d]=S[p]=S[m]=S[f]=S[A]=S[g]=S[y]=!1;var C="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,I="object"==typeof self&&self&&self.Object===Object&&self,R=C||I||Function("return this")(),w=t&&!t.nodeType&&t,O=w&&e&&!e.nodeType&&e,L=O&&O.exports===w,N=L&&C.process,P=function(){try{return N&&N.binding&&N.binding("util")}catch(e){}}(),x=P&&P.isTypedArray;function M(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)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,r){n[++t]=[r,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=R["__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,K=RegExp("^"+z.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Z=L?R.Buffer:void 0,q=R.Symbol,J=R.Uint8Array,Q=H.propertyIsEnumerable,$=G.splice,ee=q?q.toStringTag:void 0,te=Object.getOwnPropertySymbols,ne=Z?Z.isBuffer:void 0,re=(j=Object.keys,U=Object,function(e){return j(U(e))}),oe=Pe(R,"DataView"),se=Pe(R,"Map"),ie=Pe(R,"Promise"),ae=Pe(R,"Set"),le=Pe(R,"WeakMap"),ue=Pe(Object,"create"),ce=De(oe),de=De(se),pe=De(ie),me=De(ae),he=De(le),fe=q?q.prototype:void 0,Ae=fe?fe.valueOf:void 0;function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _e(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ye(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ee(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ye;++t<n;)this.add(e[t])}function be(e){var t=this.__data__=new _e(e);this.size=t.size}function ve(e,t){var n=Ue(e),r=!n&&je(e),o=!n&&!r&&Ge(e),s=!n&&!r&&!o&&We(e),i=n||r||o||s,a=i?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=a.length;for(var u in e)!t&&!W.call(e,u)||i&&("length"==u||o&&("offset"==u||"parent"==u)||s&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ke(u,l))||a.push(u);return a}function Te(e,t){for(var n=e.length;n--;)if(Be(e[n][0],t))return n;return-1}function Se(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 r=!0}catch(e){}var o=X.call(e);r&&(t?e[ee]=n:delete e[ee]);return o}(e):function(e){return X.call(e)}(e)}function Ce(e){return ze(e)&&Se(e)==s}function Ie(e,t,n,r,o){return e===t||(null==e||null==t||!ze(e)&&!ze(t)?e!=e&&t!=t:function(e,t,n,r,o,c){var h=Ue(e),y=Ue(t),v=h?i:Me(e),T=y?i:Me(t),S=(v=v==s?m:v)==m,C=(T=T==s?m:T)==m,I=v==T;if(I&&Ge(e)){if(!Ge(t))return!1;h=!0,S=!1}if(I&&!S)return c||(c=new be),h||We(e)?Oe(e,t,n,r,o,c):function(e,t,n,r,o,s,i){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!s(new J(e),new J(t)));case a:case l:case p:return Be(+e,+t);case u:return e.name==t.name&&e.message==t.message;case f:case g:return e==t+"";case d:var c=k;case A:var m=1&r;if(c||(c=D),e.size!=t.size&&!m)return!1;var h=i.get(e);if(h)return h==t;r|=2,i.set(e,t);var y=Oe(c(e),c(t),r,o,s,i);return i.delete(e),y;case _:if(Ae)return Ae.call(e)==Ae.call(t)}return!1}(e,t,v,n,r,o,c);if(!(1&n)){var R=S&&W.call(e,"__wrapped__"),w=C&&W.call(t,"__wrapped__");if(R||w){var O=R?e.value():e,L=w?t.value():t;return c||(c=new be),o(O,L,n,r,c)}}if(!I)return!1;return c||(c=new be),function(e,t,n,r,o,s){var i=1&n,a=Le(e),l=a.length,u=Le(t),c=u.length;if(l!=c&&!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=s.get(e);if(m&&s.get(t))return m==t;var h=!0;s.set(e,t),s.set(t,e);var f=i;for(;++d<l;){var A=e[p=a[d]],g=t[p];if(r)var _=i?r(g,A,p,t,e,s):r(A,g,p,e,t,s);if(!(void 0===_?A===g||o(A,g,n,r,s):_)){h=!1;break}f||(f="constructor"==p)}if(h&&!f){var y=e.constructor,E=t.constructor;y==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof E&&E instanceof E||(h=!1)}return s.delete(e),s.delete(t),h}(e,t,n,r,o,c)}(e,t,n,r,Ie,o))}function Re(e){return!(!Ye(e)||function(e){return!!V&&V in e}(e))&&(Fe(e)?K:v).test(De(e))}function we(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||H,t!==r)return re(e);var t,n,r,o=[];for(var s in Object(e))W.call(e,s)&&"constructor"!=s&&o.push(s);return o}function Oe(e,t,n,r,o,s){var i=1&n,a=e.length,l=t.length;if(a!=l&&!(i&&l>a))return!1;var u=s.get(e);if(u&&s.get(t))return u==t;var c=-1,d=!0,p=2&n?new Ee:void 0;for(s.set(e,t),s.set(t,e);++c<a;){var m=e[c],h=t[c];if(r)var f=i?r(h,m,c,t,e,s):r(m,h,c,e,t,s);if(void 0!==f){if(f)continue;d=!1;break}if(p){if(!M(t,function(e,t){if(i=t,!p.has(i)&&(m===e||o(m,e,n,r,s)))return p.push(t);var i})){d=!1;break}}else if(m!==h&&!o(m,h,n,r,s)){d=!1;break}}return s.delete(e),s.delete(t),d}function Le(e){return function(e,t,n){var r=t(e);return Ue(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Ve,xe)}function Ne(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Pe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Re(n)?n:void 0}ge.prototype.clear=function(){this.__data__=ue?ue(null):{},this.size=0},ge.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ge.prototype.get=function(e){var t=this.__data__;if(ue){var n=t[e];return n===r?void 0:n}return W.call(t,e)?t[e]:void 0},ge.prototype.has=function(e){var t=this.__data__;return ue?void 0!==t[e]:W.call(t,e)},ge.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ue&&void 0===t?r:t,this},_e.prototype.clear=function(){this.__data__=[],this.size=0},_e.prototype.delete=function(e){var t=this.__data__,n=Te(t,e);return!(n<0)&&(n==t.length-1?t.pop():$.call(t,n,1),--this.size,!0)},_e.prototype.get=function(e){var t=this.__data__,n=Te(t,e);return n<0?void 0:t[n][1]},_e.prototype.has=function(e){return Te(this.__data__,e)>-1},_e.prototype.set=function(e,t){var n=this.__data__,r=Te(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ye.prototype.clear=function(){this.size=0,this.__data__={hash:new ge,map:new(se||_e),string:new ge}},ye.prototype.delete=function(e){var t=Ne(this,e).delete(e);return this.size-=t?1:0,t},ye.prototype.get=function(e){return Ne(this,e).get(e)},ye.prototype.has=function(e){return Ne(this,e).has(e)},ye.prototype.set=function(e,t){var n=Ne(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Ee.prototype.add=Ee.prototype.push=function(e){return this.__data__.set(e,r),this},Ee.prototype.has=function(e){return this.__data__.has(e)},be.prototype.clear=function(){this.__data__=new _e,this.size=0},be.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},be.prototype.get=function(e){return this.__data__.get(e)},be.prototype.has=function(e){return this.__data__.has(e)},be.prototype.set=function(e,t){var n=this.__data__;if(n instanceof _e){var r=n.__data__;if(!se||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ye(r)}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,r=null==e?0:e.length,o=0,s=[];++n<r;){var i=e[n];t(i,n,e)&&(s[o++]=i)}return s}(te(e),function(t){return Q.call(e,t)}))}:function(){return[]},Me=Se;function ke(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||T.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}(oe&&Me(new oe(new ArrayBuffer(1)))!=b||se&&Me(new se)!=d||ie&&Me(ie.resolve())!=h||ae&&Me(new ae)!=A||le&&Me(new le)!=y)&&(Me=function(e){var t=Se(e),n=t==m?e.constructor:void 0,r=n?De(n):"";if(r)switch(r){case ce:return b;case de:return d;case pe:return h;case me:return A;case he:return y}return t});var je=Ce(function(){return arguments}())?Ce:function(e){return ze(e)&&W.call(e,"callee")&&!Q.call(e,"callee")},Ue=Array.isArray;var Ge=ne||function(){return!1};function Fe(e){if(!Ye(e))return!1;var t=Se(e);return t==c||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function He(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}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)&&!!S[Se(e)]};function Ve(e){return null!=(t=e)&&He(t.length)&&!Fe(t)?ve(e):we(e);var t}e.exports=function(e,t){return Ie(e,t)}},"../../node_modules/lodash.keys/index.js":e=>{var t=9007199254740991,n="[object Arguments]",r="[object Function]",o="[object GeneratorFunction]",s=/^(?:0|[1-9]\d*)$/;var i,a,l=Object.prototype,u=l.hasOwnProperty,c=l.toString,d=l.propertyIsEnumerable,p=(i=Object.keys,a=Object,function(e){return i(a(e))});function m(e,t){var r=A(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&g(e)}(e)&&u.call(e,"callee")&&(!d.call(e,"callee")||c.call(e)==n)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],o=r.length,s=!!o;for(var i in e)!t&&!u.call(e,i)||s&&("length"==i||f(i,o))||r.push(i);return r}function h(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||l,t!==r)return p(e);var t,n,r,o=[];for(var s in Object(e))u.call(e,s)&&"constructor"!=s&&o.push(s);return o}function f(e,n){return!!(n=null==n?t:n)&&("number"==typeof e||s.test(e))&&e>-1&&e%1==0&&e<n}var A=Array.isArray;function g(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)?c.call(e):"";return t==r||t==o}(e)}e.exports=function(e){return g(e)?m(e):h(e)}},"../../node_modules/lodash.merge/index.js":(e,t,n)=>{e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,s="[object Arguments]",i="[object Function]",a="[object Object]",l=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[s]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c[i]=c["[object Map]"]=c["[object Number]"]=c[a]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[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,f=h&&e&&!e.nodeType&&e,A=f&&f.exports===h,g=A&&d.process,_=function(){try{var e=f&&f.require&&f.require("util").types;return e||g&&g.binding&&g.binding("util")}catch(e){}}(),y=_&&_.isTypedArray;var E,b,v,T=Array.prototype,S=Function.prototype,C=Object.prototype,I=m["__core-js_shared__"],R=S.toString,w=C.hasOwnProperty,O=(E=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+E:"",L=C.toString,N=R.call(Object),P=RegExp("^"+R.call(w).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),x=A?m.Buffer:void 0,M=m.Symbol,k=m.Uint8Array,D=x?x.allocUnsafe:void 0,B=(b=Object.getPrototypeOf,v=Object,function(e){return b(v(e))}),j=Object.create,U=C.propertyIsEnumerable,G=T.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"),K=function(){function e(){}return function(t){if(!Ie(t))return{};if(j)return j(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Z(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function J(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Q(e){var t=this.__data__=new q(e);this.size=t.size}function $(e,t){var n=be(e),r=!n&&Ee(e),o=!n&&!r&&Te(e),s=!n&&!r&&!o&&we(e),i=n||r||o||s,a=i?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=a.length;for(var u in e)!t&&!w.call(e,u)||i&&("length"==u||o&&("offset"==u||"parent"==u)||s&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||fe(u,l))||a.push(u);return a}function ee(e,t,n){(void 0!==n&&!ye(e[t],n)||void 0===n&&!(t in e))&&re(e,t,n)}function te(e,t,n){var r=e[t];w.call(e,t)&&ye(r,n)&&(void 0!==n||t in e)||re(e,t,n)}function ne(e,t){for(var n=e.length;n--;)if(ye(e[n][0],t))return n;return-1}function re(e,t,n){"__proto__"==t&&H?H(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}Z.prototype.clear=function(){this.__data__=X?X(null):{},this.size=0},Z.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Z.prototype.get=function(e){var t=this.__data__;if(X){var n=t[e];return n===r?void 0:n}return w.call(t,e)?t[e]:void 0},Z.prototype.has=function(e){var t=this.__data__;return X?void 0!==t[e]:w.call(t,e)},Z.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=X&&void 0===t?r:t,this},q.prototype.clear=function(){this.__data__=[],this.size=0},q.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)},q.prototype.get=function(e){var t=this.__data__,n=ne(t,e);return n<0?void 0:t[n][1]},q.prototype.has=function(e){return ne(this.__data__,e)>-1},q.prototype.set=function(e,t){var n=this.__data__,r=ne(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},J.prototype.clear=function(){this.size=0,this.__data__={hash:new Z,map:new(V||q),string:new Z}},J.prototype.delete=function(e){var t=me(this,e).delete(e);return this.size-=t?1:0,t},J.prototype.get=function(e){return me(this,e).get(e)},J.prototype.has=function(e){return me(this,e).has(e)},J.prototype.set=function(e,t){var n=me(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Q.prototype.clear=function(){this.__data__=new q,this.size=0},Q.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Q.prototype.get=function(e){return this.__data__.get(e)},Q.prototype.has=function(e){return this.__data__.has(e)},Q.prototype.set=function(e,t){var n=this.__data__;if(n instanceof q){var r=n.__data__;if(!V||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new J(r)}return n.set(e,t),this.size=n.size,this};var oe,se=function(e,t,n){for(var r=-1,o=Object(e),s=n(e),i=s.length;i--;){var a=s[oe?i:++r];if(!1===t(o[a],a,o))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 r=!0}catch(e){}var o=L.call(e);r&&(t?e[F]=n:delete e[F]);return o}(e):function(e){return L.call(e)}(e)}function ae(e){return Re(e)&&ie(e)==s}function le(e){return!(!Ie(e)||function(e){return!!O&&O in e}(e))&&(Se(e)?P:l).test(function(e){if(null!=e){try{return R.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function ue(e){if(!Ie(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Ae(e),n=[];for(var r in e)("constructor"!=r||!t&&w.call(e,r))&&n.push(r);return n}function ce(e,t,n,r,o){e!==t&&se(t,function(s,i){if(o||(o=new Q),Ie(s))!function(e,t,n,r,o,s,i){var l=ge(e,n),u=ge(t,n),c=i.get(u);if(c)return void ee(e,n,c);var d=s?s(l,u,n+"",e,t,i):void 0,p=void 0===d;if(p){var m=be(u),h=!m&&Te(u),f=!m&&!h&&we(u);d=u,m||h||f?be(l)?d=l:Re(E=l)&&ve(E)?d=function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(l):h?(p=!1,d=function(e,t){if(t)return e.slice();var n=e.length,r=D?D(n):new e.constructor(n);return e.copy(r),r}(u,!0)):f?(p=!1,A=u,g=!0?(_=A.buffer,y=new _.constructor(_.byteLength),new k(y).set(new k(_)),y):A.buffer,d=new A.constructor(g,A.byteOffset,A.length)):d=[]:function(e){if(!Re(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&&R.call(n)==N}(u)||Ee(u)?(d=l,Ee(l)?d=function(e){return function(e,t,n,r){var o=!n;n||(n={});var s=-1,i=t.length;for(;++s<i;){var a=t[s],l=r?r(n[a],e[a],a,n,e):void 0;void 0===l&&(l=e[a]),o?re(n,a,l):te(n,a,l)}return n}(e,Oe(e))}(l):Ie(l)&&!Se(l)||(d=function(e){return"function"!=typeof e.constructor||Ae(e)?{}:K(B(e))}(u))):p=!1}var A,g,_,y;var E;p&&(i.set(u,d),o(d,u,r,s,i),i.delete(u));ee(e,n,d)}(e,t,i,n,ce,r,o);else{var l=r?r(ge(e,i),s,i+"",e,t,o):void 0;void 0===l&&(l=s),ee(e,i,l)}},Oe)}function de(e,t){return _e(function(e,t,n){return t=z(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,s=z(r.length-t,0),i=Array(s);++o<s;)i[o]=r[t+o];o=-1;for(var a=Array(t+1);++o<t;)a[o]=r[o];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,Pe),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}:Pe;function me(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.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 fe(e,t){var n=typeof e;return!!(t=null==t?o:t)&&("number"==n||"symbol"!=n&&u.test(e))&&e>-1&&e%1==0&&e<t}function Ae(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||C)}function ge(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 r=W(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(pe);function ye(e,t){return e===t||e!=e&&t!=t}var Ee=ae(function(){return arguments}())?ae:function(e){return Re(e)&&w.call(e,"callee")&&!U.call(e,"callee")},be=Array.isArray;function ve(e){return null!=e&&Ce(e.length)&&!Se(e)}var Te=Y||function(){return!1};function Se(e){if(!Ie(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<=o}function Ie(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Re(e){return null!=e&&"object"==typeof e}var we=y?function(e){return function(t){return e(t)}}(y):function(e){return Re(e)&&Ce(e.length)&&!!c[ie(e)]};function Oe(e){return ve(e)?$(e,!0):ue(e)}var Le,Ne=(Le=function(e,t,n){ce(e,t,n)},de(function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,s=r>2?t[2]:void 0;for(o=Le.length>3&&"function"==typeof o?(r--,o):void 0,s&&function(e,t,n){if(!Ie(n))return!1;var r=typeof t;return!!("number"==r?ve(n)&&fe(t,n.length):"string"==r&&t in n)&&ye(n[t],e)}(t[0],t[1],s)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var i=t[n];i&&Le(e,i,n,o)}return e}));function Pe(e){return e}e.exports=Ne},"../../node_modules/lodash.xor/index.js":(e,t,n)=>{var r="__lodash_hash_undefined__",o=9007199254740991,s=/^\[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 u(e,t){return!!(e?e.length:0)&&function(e,t,n){if(t!=t)return function(e,t,n,r){var o=e.length,s=n+(r?1:-1);for(;r?s--:++s<o;)if(t(e[s],s,e))return s;return-1}(e,p,n);var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,0)>-1}function c(e,t,n){for(var r=-1,o=e?e.length:0;++r<o;)if(n(t,e[r]))return!0;return!1}function d(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+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 f,A=Array.prototype,g=Function.prototype,_=Object.prototype,y=l["__core-js_shared__"],E=(f=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||""))?"Symbol(src)_1."+f:"",b=g.toString,v=_.hasOwnProperty,T=_.toString,S=RegExp("^"+b.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=A.splice,I=Math.max,R=G(l,"Map"),w=G(l,"Set"),O=G(Object,"create");function L(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function N(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function x(e){var t=-1,n=e?e.length:0;for(this.__data__=new P;++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,r){var o,s=-1,i=u,a=!0,l=e.length,d=[],p=t.length;if(!l)return d;n&&(t=function(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}(t,(o=n,function(e){return o(e)}))),r?(i=c,a=!1):t.length>=200&&(i=m,a=!1,t=new x(t));e:for(;++s<l;){var h=e[s],f=n?n(h):h;if(h=r||0!==h?h:0,a&&f==f){for(var A=p;A--;)if(t[A]===f)continue e;d.push(h)}else i(t,f,r)||d.push(h)}return d}function D(e){if(!K(e)||(t=e,E&&E 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)?S:s;return n.test(function(e){if(null!=e){try{return b.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function B(e,t,n){for(var r=-1,o=e.length;++r<o;)var s=s?d(k(s,e[r],t,n),k(e[r],s,t,n)):e[r];return s&&s.length?function(e,t,n){var r=-1,o=u,s=e.length,i=!0,a=[],l=a;if(n)i=!1,o=c;else if(s>=200){var d=t?null:j(e);if(d)return h(d);i=!1,o=m,l=new x}else l=t?[]:a;e:for(;++r<s;){var p=e[r],f=t?t(p):p;if(p=n||0!==p?p:0,i&&f==f){for(var A=l.length;A--;)if(l[A]===f)continue e;t&&l.push(f),a.push(p)}else o(l,f,n)||(l!==a&&l.push(f),a.push(p))}return a}(s,t,n):[]}L.prototype.clear=function(){this.__data__=O?O(null):{}},L.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},L.prototype.get=function(e){var t=this.__data__;if(O){var n=t[e];return n===r?void 0:n}return v.call(t,e)?t[e]:void 0},L.prototype.has=function(e){var t=this.__data__;return O?void 0!==t[e]:v.call(t,e)},L.prototype.set=function(e,t){return this.__data__[e]=O&&void 0===t?r:t,this},N.prototype.clear=function(){this.__data__=[]},N.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)},N.prototype.get=function(e){var t=this.__data__,n=M(t,e);return n<0?void 0:t[n][1]},N.prototype.has=function(e){return M(this.__data__,e)>-1},N.prototype.set=function(e,t){var n=this.__data__,r=M(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},P.prototype.clear=function(){this.__data__={hash:new L,map:new(R||N),string:new L}},P.prototype.delete=function(e){return U(this,e).delete(e)},P.prototype.get=function(e){return U(this,e).get(e)},P.prototype.has=function(e){return U(this,e).has(e)},P.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,r),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,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.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,r=e?e.length:0,o=0,s=[];++n<r;){var i=e[n];t(i,n,e)&&(s[o++]=i)}return s}(e,V))},H=I(void 0===H?F.length-1:H,0),function(){for(var e=arguments,t=-1,n=I(e.length-H,0),r=Array(n);++t<n;)r[t]=e[H+t];t=-1;for(var o=Array(H+1);++t<H;)o[t]=e[t];return o[H]=r,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,o)});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<=o}(e.length)&&!X(e)}function V(e){return function(e){return!!e&&"object"==typeof e}(e)&&W(e)}function X(e){var t=K(e)?T.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function K(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=Y},"../../node_modules/shimmer/index.js":e=>{"use strict";function t(e){return"function"==typeof e}var n=console.error.bind(console);function r(e,t,n){var r=!!e[t]&&e.propertyIsEnumerable(t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}function o(e){e&&e.logger&&(t(e.logger)?n=e.logger:n("new logger isn't a function, not replacing"))}function s(e,o,s){if(e&&e[o]){if(!s)return n("no wrapper function"),void n((new Error).stack);if(t(e[o])&&t(s)){var i=e[o],a=s(i,o);return r(a,"__original",i),r(a,"__unwrap",function(){e[o]===a&&r(e,o,i)}),r(a,"__wrapped",!0),r(e,o,a),a}n("original object and wrapper must be functions")}else n("no original function "+o+" to wrap")}function i(e,t){return e&&e[t]?e[t].__unwrap?e[t].__unwrap():void n("no original to unwrap to -- has "+t+" already been unwrapped?"):(n("no function to unwrap."),void n((new Error).stack))}o.wrap=s,o.massWrap=function(e,t,r){if(!e)return n("must provide one or more modules to patch"),void n((new Error).stack);Array.isArray(e)||(e=[e]),t&&Array.isArray(t)?e.forEach(function(e){t.forEach(function(t){s(e,t,r)})}):n("must provide one or more functions to wrap on modules")},o.unwrap=i,o.massUnwrap=function(e,t){if(!e)return n("must provide one or more modules to patch"),void n((new Error).stack);Array.isArray(e)||(e=[e]),t&&Array.isArray(t)?e.forEach(function(e){t.forEach(function(t){i(e,t)})}):n("must provide one or more functions to unwrap on modules")},e.exports=o},"../../node_modules/rrweb-player/dist/style.css":(e,t,n)=>{"use strict";var r=n("../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),o=n.n(r),s=n("../../node_modules/style-loader/dist/runtime/styleDomAPI.js"),i=n.n(s),a=n("../../node_modules/style-loader/dist/runtime/getTarget.js"),l=n.n(a),u=n("../../node_modules/style-loader/dist/runtime/insertStyleElement.js"),c=n.n(u),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=c();o()(d.default,p),d.default&&d.default.locals&&d.default.locals},"./src/index.scss":(e,t,n)=>{"use strict";var r=n("../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),o=n.n(r),s=n("../../node_modules/style-loader/dist/runtime/styleDomAPI.js"),i=n.n(s),a=n("../../node_modules/style-loader/dist/runtime/getTarget.js"),l=n.n(a),u=n("../../node_modules/style-loader/dist/runtime/insertStyleElement.js"),c=n.n(u),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=c();o()(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,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var s={},i=[],a=0;a<e.length;a++){var l=e[a],u=r.base?l[0]+r.base:l[0],c=s[u]||0,d="".concat(u," ").concat(c);s[u]=c+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:o(m,r),references:1}),i.push(d)}return i}function o(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,o){var s=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<s.length;i++){var a=n(s[i]);t[a].references--}for(var l=r(e,o),u=0;u<s.length;u++){var c=n(s[u]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}s=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 r=n.css,o=n.media,s=n.sourceMap;o?e.setAttribute("media",o):e.removeAttribute("media"),s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),t.styleTagTransform(r,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 r=n("../../node_modules/lodash.isequal/index.js"),o=n("../../node_modules/lodash.xor/index.js"),s=n("../../node_modules/lodash.keys/index.js"),i=n("../../node_modules/to-json-schema/lib/jsonSchemaHelpers.js"),a=i.types,l=i.FORMAT_REGEXPS,u=i.isFormat,c={stringFormats:s(l),isFormat:u,typeNames:["integer","number","string","array","object","boolean","null","date"],getType:function(e){return c.typeNames.find(function(t){return a[t](e)})},mergeSchemaObjs:function(e,t){var n=s(e),i=s(t);if(!r(n,i)){if("array"===e.type&&"array"===t.type&&r(o(n,i),["items"])){var a=n.length>i.length?t:e,l=n.length>i.length?e:t;if(s(a).reduce(function(e,t){return r(a[t],l[t])&&e},!0))return a}if("object"!==e.type||"object"!==t.type)return null}for(var u={},d=0,p=n.length;d<p;d++){var m=n[d];if("object"===c.getType(e[m])){var h=c.mergeSchemaObjs(e[m],t[m]);if(h)u[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;u[m]="number"}else u[m]=e[m];else{if(!r(e[m],t[m]))return null;u[m]=e[m]}}return u}};e.exports=c},"../../node_modules/to-json-schema/lib/index.js":(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=n("../../node_modules/lodash.merge/index.js"),s=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"],u=i.stringFormats.filter(function(e){return l.indexOf(e)<0});var c=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=o({},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"},r=Object.keys(e);return r.length>0&&(n.properties=r.reduce(function(n,r){return n[r]=t.getSchema(e[r]),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,r=e.length;n<r;n++){var o=e[n];if(n>0&&("integer"===o&&"number"===t?o="number":"number"===o&&"integer"===t&&(t="number"),t!==o))return null;t=o}return t}(e.map(function(e){return i.getType(e)}))}(e);if(n)if(t.items={type:n},"integer"!==n&&"number"!==n){var r=this.getCommonArrayItemSchema(e);r&&(t.items=r)}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(!s(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=u.findIndex(function(t){return i.isFormat(e,t)});return n>=0&&(t.format=u[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?o({},t,{required:!0}):t}},{key:"objectPostProcessDefault",value:function(e,t){return!1===this.options.objects.additionalProperties&&Object.getOwnPropertyNames(t).length>0?o({},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}}])&&r(t.prototype,n),l&&r(t,l),e}();e.exports=function(e,t){return new c(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)}},r={"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]$/};r.regexp=r.regex,r.pattern=r.regex,r.ipv4=r["ip-address"];e.exports={types:n,isFormat:function(e,t){if("string"==typeof e&&void 0!==r[t]){if(r[t]instanceof RegExp)return r[t].test(e);if("function"==typeof r[t])return r[t](e)}return!0},FORMAT_REGEXPS:r}},"./src/config/constants.ts":(e,t,n)=>{"use strict";n.d(t,{CONTINUOUS_DEBUGGING_TIMEOUT:()=>y,DEBUG_SESSION_MAX_DURATION_SECONDS:()=>E,DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE:()=>A,MULTIPLAYER_BASE_API_URL:()=>g,OTEL_IGNORE_URLS:()=>v,OTEL_MP_DOC_TRACE_RATIO:()=>r,OTEL_MP_SAMPLE_TRACE_RATIO:()=>o,PACKAGE_VERSION_EXPORT:()=>b,SESSION_ADD_EVENT:()=>f,SESSION_AUTO_CREATED:()=>h,SESSION_CONTINUOUS_DEBUGGING_PROP_NAME:()=>i,SESSION_ID_PROP_NAME:()=>s,SESSION_PROP_NAME:()=>u,SESSION_RESPONSE:()=>_,SESSION_STARTED_EVENT:()=>c,SESSION_STATE_PROP_NAME:()=>a,SESSION_STOPPED_EVENT:()=>d,SESSION_SUBSCRIBE_EVENT:()=>p,SESSION_TYPE_PROP_NAME:()=>l,SESSION_UNSUBSCRIBE_EVENT:()=>m});const r=.15,o=.15,s="multiplayer-session-id",i="multiplayer-session-continuous-debugging",a="multiplayer-session-state",l="multiplayer-session-type",u="multiplayer-session-data",c="debug-session:started",d="debug-session:stopped",p="debug-session:subscribe",m="debug-session:unsubscribe",h="debug-session:auto-created",f="debug-session:rrweb:add-event",A=1e5,g="https://api.multiplayer.app",_="multiplayer-debug-session-response",y=6e4,E=630,b="0.0.12",v=[/.*\/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:()=>c,DEFAULT_MASKING_CONFIG:()=>u});var r=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/index-browser.js"),o=n("./src/types/index.ts"),s=n("./src/config/constants.ts");const{mask:i,sensitiveFields:a,sensitiveHeaders:l}=r.SessionRecorderSdk,u={maskAllInputs:!0,isMaskingEnabled:!0,maskBody:i(a),maskHeaders:i(l),maskBodyFieldsList:a,maskHeadersList:l,headersToInclude:[],headersToExclude:[]},c={apiKey:"",version:"",application:"",environment:"",showWidget:!0,widgetButtonPlacement:o.WidgetButtonPlacement.bottomRight,usePostMessageFallback:!1,exporterApiBaseUrl:s.MULTIPLAYER_BASE_API_URL,recordCanvas:!1,schemifyDocSpanPayload:!0,ignoreUrls:[],propagateTraceHeaderCorsUrls:[],docTraceRatio:s.OTEL_MP_DOC_TRACE_RATIO,sampleTraceRatio:s.OTEL_MP_SAMPLE_TRACE_RATIO,maxCapturingHttpPayloadSize:s.DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE,captureBody:!0,captureHeaders:!0,masking:u}},"./src/config/index.ts":(e,t,n)=>{"use strict";n.d(t,{BASE_CONFIG:()=>o.BASE_CONFIG,CONTINUOUS_DEBUGGING_TIMEOUT:()=>r.CONTINUOUS_DEBUGGING_TIMEOUT,DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE:()=>r.DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE,OTEL_IGNORE_URLS:()=>r.OTEL_IGNORE_URLS,OTEL_MP_DOC_TRACE_RATIO:()=>r.OTEL_MP_DOC_TRACE_RATIO,SESSION_ADD_EVENT:()=>r.SESSION_ADD_EVENT,SESSION_AUTO_CREATED:()=>r.SESSION_AUTO_CREATED,SESSION_CONTINUOUS_DEBUGGING_PROP_NAME:()=>r.SESSION_CONTINUOUS_DEBUGGING_PROP_NAME,SESSION_ID_PROP_NAME:()=>r.SESSION_ID_PROP_NAME,SESSION_PROP_NAME:()=>r.SESSION_PROP_NAME,SESSION_RESPONSE:()=>r.SESSION_RESPONSE,SESSION_STARTED_EVENT:()=>r.SESSION_STARTED_EVENT,SESSION_STATE_PROP_NAME:()=>r.SESSION_STATE_PROP_NAME,SESSION_STOPPED_EVENT:()=>r.SESSION_STOPPED_EVENT,SESSION_SUBSCRIBE_EVENT:()=>r.SESSION_SUBSCRIBE_EVENT,SESSION_TYPE_PROP_NAME:()=>r.SESSION_TYPE_PROP_NAME,SESSION_UNSUBSCRIBE_EVENT:()=>r.SESSION_UNSUBSCRIBE_EVENT,getSessionRecorderConfig:()=>s.getSessionRecorderConfig});var r=n("./src/config/constants.ts"),o=n("./src/config/defaults.ts"),s=(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:()=>u});var r=n("./src/config/defaults.ts"),o=n("./src/config/validators.ts"),s=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/index-browser.js");const{mask:i,sensitiveFields:a,sensitiveHeaders:l}=s.SessionRecorderSdk,u=e=>{var t,n,s,u;const c=r.DEFAULT_MASKING_CONFIG;if("object"!=typeof e)return c;const d=(0,o.isValidArray)(e.maskHeadersList,l),p=(0,o.isValidArray)(e.maskBodyFieldsList,a);return{maskAllInputs:(0,o.isValidBoolean)(e.maskAllInputs,null===(t=c.maskAllInputs)||void 0===t||t),maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,maskInputOptions:e.maskInputOptions&&"object"==typeof e.maskInputOptions?e.maskInputOptions:void 0,maskInput:(0,o.isValidFunction)(e.maskInput,void 0),maskText:(0,o.isValidFunction)(e.maskText,void 0),maskConsoleEvent:(0,o.isValidFunction)(e.maskConsoleEvent,void 0),maskHeadersList:d,maskBodyFieldsList:p,headersToInclude:(0,o.isValidArray)(e.headersToInclude,null!==(n=c.headersToInclude)&&void 0!==n?n:[]),headersToExclude:(0,o.isValidArray)(e.headersToExclude,null!==(s=c.headersToExclude)&&void 0!==s?s:[]),isMaskingEnabled:(0,o.isValidBoolean)(e.isMaskingEnabled,null===(u=c.isMaskingEnabled)||void 0===u||u),maskBody:(0,o.isValidFunction)(e.maskBody,i(p)),maskHeaders:(0,o.isValidFunction)(e.maskHeaders,i(d))}}},"./src/config/session-recorder.ts":(e,t,n)=>{"use strict";n.d(t,{getSessionRecorderConfig:()=>a});var r=n("./src/types/index.ts"),o=n("./src/config/defaults.ts"),s=n("./src/config/masking.ts"),i=n("./src/config/validators.ts");const a=e=>e?{apiKey:(0,i.isValidString)(e.apiKey,o.BASE_CONFIG.apiKey),version:(0,i.isValidString)(e.version,o.BASE_CONFIG.version),application:(0,i.isValidString)(e.application,o.BASE_CONFIG.application),environment:(0,i.isValidString)(e.environment,o.BASE_CONFIG.environment),exporterApiBaseUrl:(0,i.isValidString)(e.exporterApiBaseUrl,o.BASE_CONFIG.exporterApiBaseUrl),usePostMessageFallback:(0,i.isValidBoolean)(e.usePostMessageFallback,o.BASE_CONFIG.usePostMessageFallback),showWidget:(0,i.isValidBoolean)(e.showWidget,o.BASE_CONFIG.showWidget),recordCanvas:(0,i.isValidBoolean)(e.recordCanvas,o.BASE_CONFIG.recordCanvas),widgetButtonPlacement:(0,i.isValidEnum)(e.widgetButtonPlacement,o.BASE_CONFIG.widgetButtonPlacement,Object.values(r.WidgetButtonPlacement)),ignoreUrls:(0,i.isValidArray)(e.ignoreUrls,o.BASE_CONFIG.ignoreUrls),docTraceRatio:(0,i.isValidNumber)(e.docTraceRatio,o.BASE_CONFIG.docTraceRatio),sampleTraceRatio:(0,i.isValidNumber)(e.sampleTraceRatio,o.BASE_CONFIG.sampleTraceRatio),propagateTraceHeaderCorsUrls:e.propagateTraceHeaderCorsUrls||o.BASE_CONFIG.propagateTraceHeaderCorsUrls,schemifyDocSpanPayload:(0,i.isValidBoolean)(e.schemifyDocSpanPayload,o.BASE_CONFIG.schemifyDocSpanPayload),maxCapturingHttpPayloadSize:(0,i.isValidNumber)(e.maxCapturingHttpPayloadSize,o.BASE_CONFIG.maxCapturingHttpPayloadSize),captureBody:(0,i.isValidBoolean)(e.captureBody,o.BASE_CONFIG.captureBody),captureHeaders:(0,i.isValidBoolean)(e.captureHeaders,o.BASE_CONFIG.captureHeaders),masking:(0,s.getMaskingConfig)(e.masking)}:o.BASE_CONFIG},"./src/config/validators.ts":(e,t,n)=>{"use strict";n.d(t,{isValidArray:()=>i,isValidBoolean:()=>s,isValidEnum:()=>a,isValidFunction:()=>l,isValidNumber:()=>o,isValidString:()=>r});const r=(e,t)=>"string"==typeof e?e.trim():t,o=(e,t)=>"number"==typeof e?e:t,s=(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:()=>o});var r=n("../../node_modules/events/events.js");const o=new r.EventEmitter},"./src/listeners.ts":(e,t,n)=>{"use strict";n.d(t,{setupListeners:()=>s});var r=n("./src/services/messaging.service.ts"),o=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/index-browser.js");function s(e){r.default.sendMessage("ready",{session:e.session,sessionState:e.sessionState}),r.default.on("init",t=>{e.init(t)}),r.default.on("start",t=>{e.start(o.SessionType.PLAIN,t)}),r.default.on("end",t=>{e.stop(t)}),r.default.on("pause",()=>{e.pause()}),r.default.on("resume",()=>{e.resume()}),r.default.on("cancel",()=>{e.cancel()}),r.default.on("toggle-continuous-debugging",t=>{t.enabled?e.start(o.SessionType.CONTINUOUS,t.session):e.stop()}),r.default.on("save-continuous-debug-session",()=>{e.save()})}},"./src/otel/helpers.ts":(e,t,n)=>{"use strict";n.d(t,{extractResponseBody:()=>a,headersToObject:()=>i,processHttpPayload:()=>s});var r=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/index-browser.js");const{schemify:o}=r.SessionRecorderSdk;function s(e,t,n){if(!function(e){return e.startsWith(r.MULTIPLAYER_TRACE_DOC_PREFIX)||e.startsWith(r.MULTIPLAYER_TRACE_DEBUG_PREFIX)||e.startsWith(r.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX)}(n.spanContext().traceId))return;const{requestBody:s,responseBody:i}=function(e,t,n){var s,i;const{captureBody:a,masking:l,schemifyDocSpanPayload:u}=t,c=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))),c.startsWith(r.MULTIPLAYER_TRACE_DOC_PREFIX)&&u&&(d=d&&o(d),p=p&&o(p)),(c.startsWith(r.MULTIPLAYER_TRACE_DEBUG_PREFIX)||c.startsWith(r.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX))&&l.isMaskingEnabled&&(d=d&&(null===(s=l.maskBody)||void 0===s?void 0:s.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 r,o,s,i,a;const{captureHeaders:l,masking:u}=t;if(!l)return{};let{requestHeaders:c={},responseHeaders:d={}}=e;if((null===(r=u.headersToInclude)||void 0===r?void 0:r.length)||(null===(o=u.headersToExclude)||void 0===o?void 0:o.length)){if(u.headersToInclude){const e={},t={};for(const n of u.headersToInclude)c[n]&&(e[n]=c[n]),d[n]&&(t[n]=d[n]);c=e,d=t}if(null===(s=u.headersToExclude)||void 0===s?void 0:s.length)for(const e of u.headersToExclude)delete c[e],delete d[e]}else null!=c&&(c=JSON.parse(JSON.stringify(c))),null!=d&&(d=JSON.parse(JSON.stringify(d)));const p=(null===(i=u.maskHeaders)||void 0===i?void 0:i.call(u,c,n))||c,m=(null===(a=u.maskHeaders)||void 0===a?void 0:a.call(u,d,n))||d,h="string"==typeof p?p:JSON.stringify(p),f="string"==typeof m?m:JSON.stringify(m);return{requestHeaders:(null==h?void 0:h.length)?h:void 0,responseHeaders:(null==f?void 0:f.length)?f:void 0}}(e,t,n);s&&n.setAttribute(r.ATTR_MULTIPLAYER_HTTP_REQUEST_BODY,s),i&&n.setAttribute(r.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY,i),a&&n.setAttribute(r.ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS,a),l&&n.setAttribute(r.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,r]of e)"string"==typeof n&&"string"==typeof r&&(t[n]=r);else if("object"==typeof e&&!Array.isArray(e))for(const[n,r]of Object.entries(e))"string"==typeof n&&"string"==typeof r&&(t[n]=r);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)}},"./src/otel/index.ts":(e,t,n)=>{"use strict";n.d(t,{TracerBrowserSDK:()=>m});var r=n("../../node_modules/@opentelemetry/resources/build/esm/Resource.js"),o=n("./node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js"),s=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"),u=n("../../node_modules/@opentelemetry/auto-instrumentations-web/build/esm/index.js"),c=n("./node_modules/@multiplayer-app/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=c.SessionType.PLAIN){this.sessionId=e,this.idGenerator.setSessionId(e,t)}init(e){this.config=e;const{application:t,version:n,environment:i}=this.config;this.idGenerator=new c.SessionRecorderIdGenerator({autoDocTracesRatio:e.docTraceRatio||d.OTEL_MP_DOC_TRACE_RATIO}),this.tracerProvider=new s.WebTracerProvider({resource:new r.Resource({[a.SEMRESATTRS_SERVICE_NAME]:t,[a.SEMRESATTRS_SERVICE_VERSION]:n,[a.SEMRESATTRS_DEPLOYMENT_ENVIRONMENT]:i}),idGenerator:this.idGenerator,sampler:new c.SessionRecorderTraceIdRatioBasedSampler(this.config.sampleTraceRatio),spanProcessors:[this._getSpanSessionIdProcessor()]}),this.config.apiKey&&this.addBatchSpanExporter(this.config.apiKey),this.tracerProvider.register({propagator:new o.W3CTraceContextPropagator}),(0,l.registerInstrumentations)({tracerProvider:this.tracerProvider,instrumentations:[(0,u.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:r}=this.config;try{if(!n&&!r)return;const o=t.networkRequest.requestBody,s=t.networkRequest.responseBody,i=t.networkRequest.requestHeaders||{},a={requestBody:o,responseBody:s,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:r,captureHeaders:o}=this.config;try{if(!r&&!o)return;const s=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 u={requestBody:s,responseBody:l,requestHeaders:i,responseHeaders:a};(0,p.processHttpPayload)(u,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 r="";return this.allowedElements.has(t.tagName)&&(r=String(t.textContent||t.ariaLabel||"").trim()),n.setAttribute("target.innerText",r),!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("")}addBatchSpanExporter(e){var t,n;if(!this.tracerProvider)throw new Error("Configuration not initialized. Call init() before start().");this.tracerProvider.addSpanProcessor(new i.BatchSpanProcessor(new c.SessionRecorderHttpTraceExporterBrowser({apiKey:e,url:`${null===(t=this.config)||void 0===t?void 0:t.exporterApiBaseUrl}/v1/traces`,usePostMessageFallback:null===(n=this.config)||void 0===n?void 0:n.usePostMessageFallback})))}_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(c.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:()=>u,setShouldRecordHttpData:()=>c});var r=n("./src/utils/type-utils.ts"),o=n("./src/utils/request-utils.ts"),s=n("./src/config/index.ts");let i=!0,a=!0,l=s.DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE;const u=e=>{l=e},c=(e,t)=>{i=t,a=t};function d({body:e,url:t}){if((0,r.isNullish)(e))return null;if((0,r.isString)(e))return e;if((0,r.isDocument)(e))return e.textContent;if((0,r.isFormData)(e))return(0,o.formDataToQuery)(e);if((0,r.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,r=!0,o,s){const u=this,c={},p={},m=u.setRequestHeader.bind(u);u.setRequestHeader=(e,t)=>(p[e]=t,m(e,t)),i&&(c.requestHeaders=p);const h=u.send.bind(u);u.send=e=>{{const t=d({body:e,url:n});(null==t?void 0:t.length)&&new Blob([t]).size<=l&&(c.requestBody=t)}return h(e)},u.addEventListener("readystatechange",()=>{if(u.readyState!==u.DONE)return;const e={};u.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(t=>{const n=t.split(": "),r=n.shift(),o=n.join(": ");r&&(e[r]=o)}),a&&(c.responseHeaders=e);{const e=d({body:u.response,url:n});(null==e?void 0:e.length)&&new Blob([e]).size<=l&&(c.responseBody=e)}}),u.networkRequest=c,t.call(u,e,n,r,o,s)}}(XMLHttpRequest.prototype)},"./src/rrweb/exporter.ts":(e,t,n)=>{"use strict";n.d(t,{RrwebEventExporter:()=>a});var r=n("../../node_modules/socket.io-client/build/esm/index.js"),o=n("./src/eventBus.ts"),s=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,r.default)(this.options.socketUrl,{path:"/v0/radar/ws",auth:{"x-api-key":this.options.apiKey},reconnectionAttempts:2,transports:["websocket"]}),this.socket.on("connect",()=>{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=>{o.recorderEventBus.emit(i.SESSION_STOPPED_EVENT,e),this.unsubscribeFromSession()}),this.socket.on(i.SESSION_AUTO_CREATED,e=>{o.recorderEventBus.emit(i.SESSION_AUTO_CREATED,e)}))}checkReconnectionAttempts(){this.attempts>=2&&(this.usePostMessage=!!this.options.usePostMessageFallback,this.flushQueue())}sendViaPostMessage(e){s.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?s.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:()=>c});var r=n("../../node_modules/@rrweb/packer/dist/packer.js"),o=n("../../node_modules/rrweb/dist/rrweb.js"),s=n("./node_modules/@multiplayer-app/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"),u=n("./src/rrweb/exporter.ts");class c{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 u.RrwebEventExporter({apiKey:e.apiKey,socketUrl:e.exporterApiBaseUrl||"",usePostMessageFallback:Boolean(e.usePostMessageFallback)})}start(e,t){var n;if(!this.config)throw new Error("Configuration not initialized. Call init() before start().");const u=t===s.SessionType.CONTINUOUS?l.CONTINUOUS_DEBUGGING_TIMEOUT:0;this.startedAt=(new Date).toISOString();const c=this.config.masking||{},d={maskAllInputs:null===(n=c.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"]})]};c.maskInputOptions&&(d.maskInputOptions=c.maskInputOptions),c.maskTextClass&&(d.maskTextClass=c.maskTextClass),c.maskTextSelector&&(d.maskTextSelector=c.maskTextSelector),"function"==typeof c.maskInput&&(d.maskInputFn=c.maskInput),"function"==typeof c.maskText&&(d.maskTextFn=c.maskText),this.stopFn=(0,o.record)({...d,emit:async n=>{if(this.exporter){if("function"==typeof c.maskConsoleEvent&&(0,a.isConsoleEvent)(n)){const{data:e}=n,t=c.maskConsoleEvent(e.payload);n.data={...e,payload:t}}const o=(0,r.pack)(n);this.stoppedAt=new Date(n.timestamp).toISOString(),this.exporter.send({event:o,eventType:n.type,timestamp:n.timestamp,debugSessionId:e,debugSessionType:t})}}}),o.record.takeFullSnapshot(),u>0&&(this.restartTimeout=setTimeout(()=>{o.record.takeFullSnapshot()},u))}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:()=>o});var r=n("./src/services/messaging.service.ts");class o{constructor(){this.config={apiKey:"",exporterApiBaseUrl:""}}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,r){const o=`${this.config.exporterApiBaseUrl}/v0/radar${e}`,s={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(o,{...s,credentials:"include",signal:r});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:o,params:s})}}async handleRequestError(e,t){if(!this.config.usePostMessageFallback)throw new Error("Error making request: "+e.message);try{return await r.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:()=>r});const r=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(),r=new Promise((e,t)=>{this.promiseMap.set(n,{resolve:e,reject:t})}),o={type:"MULTIPLAYER_SESSION_DEBUGGER_LIB",action:e,payload:t,promiseId:n};return window.postMessage(o,"*"),r}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 r=n.indexOf(t);-1!==r&&(n.splice(r,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:r,promiseId:o}=e.data;if("MULTIPLAYER_SESSION_DEBUGGER_EXTENSION"!==t||!n)return;if(o&&this.promiseMap.has(o)){const{resolve:e,reject:t}=this.promiseMap.get(o),{error:n,response:s}=r;return n?t(n):e(s),void this.promiseMap.delete(o)}const s=this.messagingServices.get(n);s&&s.forEach(e=>e(r))})}}},"./src/sessionRecorder.ts":(e,t,n)=>{"use strict";n.d(t,{SessionRecorder:()=>f});var r=n("./src/otel/index.ts"),o=n("./src/rrweb/index.ts"),s=n("./src/utils/index.ts"),i=n("./src/types/index.ts"),a=n("./src/config/index.ts"),l=n("./src/patch/xhr.ts"),u=n("./src/eventBus.ts"),c=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("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/index-browser.js")),h=n("./src/sessionWidget/buttonStateConfigs.ts");class f{get sessionId(){return this._sessionId}set sessionId(e){this._sessionId=e,(0,s.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.updateContinuousDebuggingState(t),d.default.sendMessage("continuous-debugging",t),(0,s.setStoredItem)(a.SESSION_TYPE_PROP_NAME,e)}get continuousDebugging(){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.continuousDebugging),d.default.sendMessage("state-change",this._sessionState),(0,s.setStoredItem)(a.SESSION_STATE_PROP_NAME,e)}get session(){return this._session}set session(e){this._session=e,(0,s.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 r.TracerBrowserSDK,this._recorder=new o.RecorderBrowserSDK,this._sessionWidget=new c.SessionWidget,this._startRequestController=null,this._sessionId=null,this._sessionType=m.SessionType.PLAIN,this._sessionState=null,this._session=null,this._sessionAttributes=null;const t=(0,s.getStoredItem)(a.SESSION_PROP_NAME,!0),n=(0,s.getStoredItem)(a.SESSION_ID_PROP_NAME),i=(0,s.getStoredItem)(a.SESSION_STATE_PROP_NAME),l=(0,s.getStoredItem)(a.SESSION_TYPE_PROP_NAME),u=(0,s.getStoredItem)(a.SESSION_CONTINUOUS_DEBUGGING_PROP_NAME,!0);(0,s.isSessionActive)(t,u)?(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{this._checkOperation("save"),this._sessionWidget.updateSaveContinuousDebugSessionState(h.ContinuousDebuggingSaveButtonState.SAVING);const e=await this._apiService.saveContinuousDebugSession(this.sessionId,{sessionAttributes:this.sessionAttributes,resourceAttributes:(0,s.getNavigatorInfo)(),stoppedAt:this._recorder.stoppedAt,name:this.sessionAttributes.userName?`${this.sessionAttributes.userName}'s session on ${(0,s.getFormattedDate)(Date.now(),{month:"short",day:"numeric"})}`:`Session on ${(0,s.getFormattedDate)(Date.now())}`});this._sessionWidget.updateSaveContinuousDebugSessionState(h.ContinuousDebuggingSaveButtonState.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.ContinuousDebuggingSaveButtonState.ERROR)}finally{setTimeout(()=>{this._sessionWidget.updateSaveContinuousDebugSessionState(h.ContinuousDebuggingSaveButtonState.IDLE)},3e3)}}start(e=m.SessionType.PLAIN,t){this._checkOperation("start"),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.continuousDebugging)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);u.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.continuousDebugging?(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){this._checkOperation("autoStartRemoteContinuousSession");const t={sessionAttributes:{...this.sessionAttributes,...(null==e?void 0:e.sessionAttributes)||{}},resourceAttributes:{...(0,s.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(){u.recorderEventBus.on(a.SESSION_STOPPED_EVENT,()=>{this._stop(),this._clearSession(),this._sessionWidget.handleUIReseting()})}_registerSessionAutoCreation(){u.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,s.getNavigatorInfo)(),name:this.sessionAttributes.userName?`${this.sessionAttributes.userName}'s session on ${(0,s.getFormattedDate)(Date.now(),{month:"short",day:"numeric"})}`:`Session on ${(0,s.getFormattedDate)(Date.now())}`},n=this.continuousDebugging?{debugSessionData:e}:e,r=this.continuousDebugging?await this._apiService.startContinuousDebugSession(n,t):await this._apiService.startSession(n,t);r&&(r.sessionType=this.continuousDebugging?m.SessionType.CONTINUOUS:m.SessionType.PLAIN,this._setupSessionAndStart(r,!1))}catch(e){this.error=e.message,this.continuousDebugging&&(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&&(u.recorderEventBus.emit(a.SESSION_STARTED_EVENT,this.session),this._recorder.subscribeToSession(this.session),this._sessionWidget.seconds=(0,s.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.addBatchSpanExporter(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.continuousDebugging)throw new Error("Cannot save continuous debugging session. Continuous debugging is not enabled.");if(this.sessionState!==i.SessionState.started)throw new Error("Cannot save continuous debugging 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:()=>c});var r=n("./src/utils/index.ts"),o=n("./src/sessionWidget/templates/icons.ts"),s=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"),u=n("./src/sessionWidget/templates/toast.ts");class c{constructor(e,t,n,r,o,s){this.toastTimeout=null,this.recorderButton=e,this.initialPopover=t,this.finalPopover=n,this.recordingOverlay=r,this.submitSessionDialog=o,this.toast=s}setRecorderButtonProps(){this.recorderButton.className="mp-session-debugger-button",this.recorderButton.dataset.tooltip="Click to record a bug",(0,r.insertTrustedHTML)(this.recorderButton,`${o.RecordIcon}`)}setOverlayProps(){this.recordingOverlay.className="mp-recording-overlay hidden",(0,r.insertTrustedHTML)(this.recordingOverlay,a.recordingOverlayTemplate)}setSubmitSessionDialogProps(){this.submitSessionDialog.id="mp-submission-dialog",this.submitSessionDialog.className="hidden",(0,r.insertTrustedHTML)(this.submitSessionDialog,l.submitSessionDialogTemplate)}setInitialPopoverProps(){this.initialPopover.className="mp-session-debugger-popover mp-initial-popover hidden",(0,r.insertTrustedHTML)(this.initialPopover,i.initialPopoverTemplate)}setFinalPopoverProps(){this.finalPopover.className="mp-session-debugger-popover hidden",(0,r.insertTrustedHTML)(this.finalPopover,s.finalPopoverTemplate)}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 bug-hunting!")}setTimerValue(e){const t=this.recordingOverlay.querySelector(".timer");t&&(0,r.insertTrustedHTML)(t,e)}setToastProps(){this.toast.className="mp-toast hidden"}showToast(e,t=1e4){var n;if((0,r.insertTrustedHTML)(this.toast,(0,u.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:()=>r,ContinuousDebuggingSaveButtonState:()=>o,buttonStates:()=>i,continuousDebuggingSaveButtonStates:()=>a});var r,o,s=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"}(r||(r={})),function(e){e.IDLE="IDLE",e.SAVING="SAVING",e.SAVED="SAVED",e.ERROR="ERROR"}(o||(o={}));const i={[r.IDLE]:{icon:s.RecordIcon,tooltip:"Click to record",classes:[],excludeClasses:["animate-rotate","mp-button-blue"]},[r.RECORDING]:{icon:s.CapturingIcon,tooltip:"Click to stop your recording",classes:[],excludeClasses:["mp-button-blue","animate-rotate"]},[r.CANCEL]:{icon:s.CloseIcon,tooltip:"Click to cancel",classes:[],excludeClasses:["animate-rotate","mp-button-blue"]},[r.SENT]:{icon:s.CheckmarkIcon,tooltip:"We've sent it over! Thanks!",classes:["mp-button-blue"],excludeClasses:["animate-rotate"]},[r.LOADING]:{icon:s.RecordIcon,tooltip:"Starting to record...",classes:[],excludeClasses:["animate-rotate","mp-button-blue"]},[r.CONTINUOUS_DEBUGGING]:{icon:s.CapturingIcon,tooltip:"You’re continuously recording.",classes:[],excludeClasses:["mp-button-blue","animate-rotate"]}},a={[o.IDLE]:{textContent:"Save last snapshot",disabled:!1,classes:[]},[o.SAVING]:{disabled:!0,textContent:"Saving last snapshot...",classes:[]},[o.SAVED]:{disabled:!0,textContent:"Saved",classes:[]},[o.ERROR]:{disabled:!0,textContent:"Error saving last snapshot",classes:[]}}},"./src/sessionWidget/constants.ts":(e,t,n)=>{"use strict";n.d(t,{NON_DRAGGABLE_OFFSET:()=>o,POPOVER_DISTANCE_FROM_BUTTON:()=>s,POPOVER_WIDTH:()=>r,POSITION_STATE_KEY:()=>i});const r=300,o=10,s=25,i="mp-recorder-button-position"},"./src/sessionWidget/dragManager.ts":(e,t,n)=>{"use strict";n.d(t,{DragManager:()=>o});var r=n("./src/sessionWidget/constants.ts");class o{constructor(e,t,n=()=>{},r=()=>{},o=()=>{}){this.isDragging=!1,this.dragStarted=!1,this.isOnLeftHalfOfScreen=!1,this.recorderButton=e,this.recorderPlacement=t,this.onDragEnd=n,this.updatePopoverPosition=r,this.onRecordingButtonClick=o}init(){this.loadStoredPosition(),this.setupDragListeners()}loadStoredPosition(){const e=localStorage.getItem(r.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,o=t/window.innerHeight*100;localStorage.setItem(r.POSITION_STATE_KEY,JSON.stringify({right:n,bottom:o}))}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,r=e.clientY,o=this.recorderButton.getBoundingClientRect(),s=window.innerWidth,i=window.innerHeight,a=e=>{const t=e.clientX-n,a=e.clientY-r;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(s-o.width,o.left+t)),n=Math.max(0,Math.min(i-o.height,o.top+a)),r=s-e-o.width,l=i-n-o.height;this.isOnLeftHalfOfScreen=r>s/2,requestAnimationFrame(()=>{this.recorderButton.style.right=`${r}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:()=>c});n("../../node_modules/rrweb-player/dist/style.css");var r=n("../../node_modules/lib0/observable.js"),o=n("./src/utils/index.ts"),s=n("./src/types/index.ts"),i=n("./src/sessionWidget/dragManager.ts"),a=n("./src/sessionWidget/constants.ts"),l=n("./src/sessionWidget/UIManager.ts"),u=n("./src/sessionWidget/buttonStateConfigs.ts");class c extends r.Observable{set buttonState(e){this._buttonState=e;const{icon:t,tooltip:n,classes:r,excludeClasses:o}=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,o,r)}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._continuousDebugging?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._continuousDebugging?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._continuousDebugging&&(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._continuousDebugging=!1,this.commentTextarea=null,this.dragManager=null,this.buttonClickExternalHandler=null,this.showRecorderButton=!1,this.seconds=0,this.handleClickOutside=e=>{var t;const n=e.target,r=this._initialPopoverVisible||this._finalPopoverVisible,o=this._initialPopoverVisible?this.initialPopover:this.finalPopover;r&&n&&!(null==o?void 0:o.contains(n))&&!(null===(t=this.recorderButton)||void 0===t?void 0:t.contains(n))&&n!==this.recorderButton&&n!==o&&(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 l.UIManager(this.recorderButton,this.initialPopover,this.finalPopover,this.overlay,this.submitSessionDialog,this.toast),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._continuousDebugging=t,e){case s.SessionState.started:this.isPaused=!1,this.isStarted=!0;break;case s.SessionState.stopped:this.isPaused=!1,this.isStarted=!1;break;case s.SessionState.paused:this.isPaused=!0,this.isStarted=!1;break;default:this.isPaused=!1,this.isStarted=!1}}updateContinuousDebuggingState(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:r}=u.continuousDebuggingSaveButtonStates[e];t.disabled=r,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;const t=[this.toast];e.showWidget?t.push(this.recorderButton,this.initialPopover,this.finalPopover,this.submitSessionDialog):t.push(this.overlay,this.submitSessionDialog),this.appendElements(t),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:r}=this.recorderButton.getBoundingClientRect(),o=!this.recorderButton.classList.contains("no-draggable"),s=this._isStarted?400:300,i=window.innerWidth,l=window.innerHeight;let u,c;u=l-e+a.POPOVER_DISTANCE_FROM_BUTTON+(o?0:a.NON_DRAGGABLE_OFFSET),c=i-t,u+s>l&&(u=l-n-s-a.POPOVER_DISTANCE_FROM_BUTTON-(o?0:a.NON_DRAGGABLE_OFFSET)),c+a.POPOVER_WIDTH>i&&(c=i-r-a.POPOVER_WIDTH);const d=10;u=Math.max(u,d),c=Math.max(c,d),c+a.POPOVER_WIDTH>i-d&&(c=i-a.POPOVER_WIDTH-d),u+s>l-d&&(u=l-s-d);const p=e=>{e.style.right=`${c}px`,e.style.bottom=`${u}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)},{event:"change",target:this.initialPopover,selector:"#mp-session-debugger-continuous-debugging-checkbox",handler:this.handleContinuousDebuggingChange.bind(this)},{target:this.initialPopover,selector:"#mp-save-continuous-debug-session",handler:this.handleSaveContinuousDebugSession.bind(this)},{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:r="click"})=>{this.addListener(e,t,n,r)})}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._continuousDebugging?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,r="click"){var o;null===(o=null==e?void 0:e.querySelector(t))||void 0===o||o.addEventListener(r,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._continuousDebugging?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,r){this.recorderButton&&((0,o.insertTrustedHTML)(this.recorderButton,`${e}`),this.recorderButton.dataset.tooltip=t,n&&this.recorderButton.classList.remove(...n),r&&this.recorderButton.classList.add(...r))}handleContinuousDebuggingChange(e){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._continuousDebugging?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,o.formatTimeForSessionTimer)(this.seconds)),this.timerInterval=setInterval(()=>{this.seconds++,this.uiManager.setTimerValue((0,o.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,r=0;t.onmousedown=function(t){t.preventDefault(),n=t.clientX-e.offsetLeft,r=t.clientY-e.offsetTop,document.onmousemove=function(t){e.style.left=t.clientX-n+"px",e.style.top=t.clientY-r+"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:()=>o});var r=n("./src/sessionWidget/templates/icons.ts");const o=`\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">${r.LogoSvg}</div>\n </a>\n <button class="mp-session-debugger-dismiss-button">Dismiss report</button>\n <button class="mp-session-debugger-modal-close" aria-label="Close">${r.CloseXIcon}</button>\n </div>\n <div class="mp-session-debugger-popover-body">\n <h2>Done capturing?</h2>\n <p>Click the button below to save your report. Optionally, feel free to send a message to Multiplayer.</p>\n <textarea placeholder="Add a comment..." 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">Save</button>\n </div>\n </div>\n</div>\n`},"./src/sessionWidget/templates/icons.ts":(e,t,n)=>{"use strict";n.d(t,{CapturingIcon:()=>u,CheckSuccessIcon:()=>p,CheckmarkIcon:()=>c,CloseIcon:()=>a,CloseXIcon:()=>l,DragHandleIcon:()=>d,ErrorIcon:()=>m,LogoSvg:()=>r,RecordIcon:()=>o,RecordIndicatorIcon:()=>s,StopIcon:()=>i});const r='<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>',o='<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>',s='<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>',u='<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>',c='<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:()=>o});var r=n("./src/sessionWidget/templates/icons.ts");const o=`\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">${r.LogoSvg}</div>\n </a>\n <button class="mp-session-debugger-modal-close" aria-label="Close">${r.CloseXIcon}</button>\n </div>\n <div class="mp-session-debugger-popover-body">\n <div class="mp-session-debugger-continuous-debugging">\n <div class="mp-session-debugger-continuous-debugging-label">\n Continuous recording\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 <h2>Encountered an issue?</h2>\n <p>Help us improve by sharing what went wrong. We'll record your steps, so we can see exactly what happened.</p>\n <div class="mp-session-debugger-popover-footer">\n <button class="mp-session-debugger-popover-button mp-start-recording">Start Recording!</button>\n </div>\n <div class="mp-session-debugger-continuous-debugging-overlay">\n <div class="mp-session-debugger-continuous-debugging-overlay-content">\n <h3>${r.CapturingIcon} You’re continuously recording.</h3>\n <p>\n Press the save button to save your last snapshot. You can continue debugging after saving.\n </p>\n </div>\n <button class="mp-session-debugger-popover-button" id="mp-save-continuous-debug-session">Save last snapshot</button>\n </div>\n </div>\n</div>\n`},"./src/sessionWidget/templates/recordingOverlay.ts":(e,t,n)=>{"use strict";n.d(t,{recordingOverlayTemplate:()=>o});var r=n("./src/sessionWidget/templates/icons.ts");const o=`\n<div class="mp-recording-status">\n <div class="mp-recording-indicator">\n ${r.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">${r.StopIcon}</button>\n</div>\n<div class="mp-drag-handle" style="cursor: move;">\n ${r.DragHandleIcon}\n</div>\n`},"./src/sessionWidget/templates/submitSessionDialog.ts":(e,t,n)=>{"use strict";n.d(t,{submitSessionDialogTemplate:()=>r});const r='\n<div class="mp-dialog-backdrop">\n <div class="mp-dialog-content">\n <h3>Submit Recording</h3>\n <div class="subtitle">Report this issue with your debug logs and session replay. Optionally, enter some additional information below.</div>\n <div class="form-group">\n <label>Comment (optional)</label>\n <textarea id="mp-recording-comment" rows="3" placeholder="Add any notes about this recording..."></textarea>\n </div>\n <div class="mp-dialog-actions">\n <button id="mp-cancel-submission">Cancel</button>\n <button id="mp-submit-recording">Submit</button>\n </div>\n </div>\n</div>\n'},"./src/sessionWidget/templates/toast.ts":(e,t,n)=>{"use strict";n.d(t,{toastTemplate:()=>o});var r=n("./src/sessionWidget/templates/icons.ts");const o=e=>{const{type:t,message:n,button:o}=e,i=(e=>"success"===e?r.CheckSuccessIcon:r.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 ${s(o)}\n </div>\n `},s=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:()=>r.SessionState,WidgetButtonPlacement:()=>r.WidgetButtonPlacement});n("./src/types/widget.ts"),n("./src/types/session.ts");var r=n("./src/types/sessionRecorder.ts")},"./src/types/session.ts":(e,t,n)=>{"use strict";var r;!function(e){e.OTLP_TRACES="OTLP_TRACES",e.OTLP_LOGS="OTLP_LOGS",e.RRWEB_EVENTS="RRWEB_EVENTS"}(r||(r={}))},"./src/types/sessionRecorder.ts":(e,t,n)=>{"use strict";var r,o;n.d(t,{SessionState:()=>o,WidgetButtonPlacement:()=>r}),function(e){e.topLeft="top-left",e.topRight="top-right",e.bottomLeft="bottom-left",e.bottomRight="bottom-right"}(r||(r={})),function(e){e.started="2",e.paused="1",e.stopped="0"}(o||(o={}))},"./src/types/widget.ts":()=>{},"./src/utils/array.ts":(e,t,n)=>{"use strict";n.d(t,{each:()=>i,isValidRegex:()=>a});var r=n("./src/utils/type-utils.ts"),o=n("./src/utils/globals.ts");const s={};function i(e,t,n){if(!(0,r.isNullish)(e)){if((0,r.isArray)(e))return function(e,t,n){if((0,r.isArray)(e))if(o.nativeForEach&&e.forEach===o.nativeForEach)e.forEach(t,n);else if("length"in e&&e.length===+e.length)for(let r=0,o=e.length;r<o;r++)if(r in e&&t.call(n,e[r],r)===s)return}(e,t,n);if((0,r.isFormData)(e)){for(const r of e.entries())if(t.call(n,r[1],r[0])===s)return}else for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t.call(n,e[r],r)===s)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:()=>o});var r=n("../../node_modules/dompurify/dist/purify.es.mjs");function o(e,t){const n=r.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 r="undefined"!=typeof window?window:void 0,o="undefined"!=typeof globalThis?globalThis:r,s=Array.prototype,i=s.forEach,a=(s.indexOf,null==o?void 0:o.navigator);null==o||o.document,null==o||o.location,null==o||o.fetch,(null==o?void 0:o.XMLHttpRequest)&&"withCredentials"in new o.XMLHttpRequest&&o.XMLHttpRequest,null==o||o.AbortController,null==a||a.userAgent},"./src/utils/index.ts":(e,t,n)=>{"use strict";n.d(t,{each:()=>l.each,formatTimeForSessionTimer:()=>s.formatTimeForSessionTimer,getFormattedDate:()=>s.getFormattedDate,getNavigatorInfo:()=>r.getNavigatorInfo,getStoredItem:()=>o.getStoredItem,getTimeDifferenceInSeconds:()=>s.getTimeDifferenceInSeconds,insertTrustedHTML:()=>a.insertTrustedHTML,isConsoleEvent:()=>i.isConsoleEvent,isSessionActive:()=>i.isSessionActive,isValidRegex:()=>l.isValidRegex,setStoredItem:()=>o.setStoredItem});var r=n("./src/utils/navigator.ts"),o=n("./src/utils/storage.ts"),s=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:()=>o});var r=n("./src/config/constants.ts");const o=()=>{var e,t,n,o,s,i,a,l,u,c;let d="Unknown",p="Unknown",m="Unknown";if(navigator.userAgent){const r=navigator.userAgent;p=/Mobi|Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(r)?"Mobile":/Tablet|iPad/i.test(r)?"Tablet":"Desktop",d=r.includes("Firefox")?`Mozilla Firefox ${(null===(e=r.match(/Firefox\/(\d+\.\d+)/))||void 0===e?void 0:e[1])||""}`:r.includes("Chrome")&&!r.includes("Edg")?`Google Chrome ${(null===(t=r.match(/Chrome\/(\d+\.\d+)/))||void 0===t?void 0:t[1])||""}`:r.includes("Edg")?`Microsoft Edge ${(null===(n=r.match(/Edg\/(\d+\.\d+)/))||void 0===n?void 0:n[1])||""}`:r.includes("Safari")&&!r.includes("Chrome")?`Safari ${(null===(o=r.match(/Version\/(\d+\.\d+)/))||void 0===o?void 0:o[1])||""}`:r.includes("Opera")||r.includes("OPR")?`Opera ${(null===(s=r.match(/(Opera|OPR)\/(\d+\.\d+)/))||void 0===s?void 0:s[2])||""}`:r.includes("Trident")?`Internet Explorer ${(null===(i=r.match(/rv:(\d+\.\d+)/))||void 0===i?void 0:i[1])||""}`:"Unknown browser",m=r.includes("Win")?`Windows ${(null===(a=r.match(/Windows NT (\d+\.\d+)/))||void 0===a?void 0:a[1])||""}`:r.includes("Mac")?`MacOS ${(null===(l=r.match(/Mac OS X (\d+_\d+)/))||void 0===l?void 0:l[1].replace("_","."))||""}`:r.includes("Linux")?"Linux":r.includes("Android")?`Android ${(null===(u=r.match(/Android (\d+\.\d+)/))||void 0===u?void 0:u[1])||""}`:r.includes("iPhone")||r.includes("iPad")?`iOS ${(null===(c=r.match(/OS (\d+_\d+)/))||void 0===c?void 0:c[1].replace("_","."))||""}`:"Unknown OS"}const h=navigator.hardwareConcurrency||1,f=navigator.cookieEnabled?"Yes":"No",A=window.devicePixelRatio||1;return{osInfo:m,screenSize:`${window.screen.width}x${window.screen.height}`,pixelRatio:A,deviceInfo:p,browserInfo:d,cookiesEnabled:f,hardwareConcurrency:h,packageVersion:r.PACKAGE_VERSION_EXPORT}}},"./src/utils/request-utils.ts":(e,t,n)=>{"use strict";n.d(t,{formDataToQuery:()=>s});var r=n("./src/utils/index.ts"),o=n("./src/utils/type-utils.ts");const s=function(e,t="&"){let n,s;const i=[];return(0,r.each)(e,function(e,t){(0,o.isUndefined)(e)||(0,o.isUndefined)(t)||"undefined"===t||(n=encodeURIComponent((0,o.isFile)(e)?e.name:e.toString()),s=encodeURIComponent(t),i[i.length]=s+"="+n)}),i.join(t)}},"./src/utils/session.ts":(e,t,n)=>{"use strict";n.d(t,{isConsoleEvent:()=>i,isSessionActive:()=>s});var r=n("../../node_modules/rrweb/dist/rrweb.js"),o=n("./src/config/constants.ts");const s=(e,t)=>{if(!e)return!1;if(t)return!0;const n=new Date(e.startedAt);return(new Date).getTime()-n.getTime()<1e3*o.DEBUG_SESSION_MAX_DURATION_SECONDS},i=e=>{var t;return e.type===r.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:()=>r,setStoredItem:()=>o});const r=(e,t)=>{const n=null===localStorage||void 0===localStorage?void 0:localStorage.getItem(e);return t?n?JSON.parse(n):null:n},o=(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:()=>o,getFormattedDate:()=>r,getTimeDifferenceInSeconds:()=>s});const r=(e,t)=>new Date(e).toLocaleDateString("en-US",t||{month:"short",year:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"}),o=e=>{const t=e%60;return`${Math.floor(e/60).toString().padStart(2,"0")}:${t.toString().padStart(2,"0")}`},s=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:()=>c,isObject:()=>a,isString:()=>u,isUndefined:()=>l});const r=Array.isArray,o=Object.prototype,s=(o.hasOwnProperty,o.toString),i=r||function(e){return"[object Array]"===s.call(e)},a=function(e){return e===Object(e)&&!i(e)},l=function(e){return void 0===e},u=function(e){return"[object String]"==s.call(e)},c=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},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/SessionRecorderHttpTraceExporterBrowser.js":(e,t,n)=>{"use strict";n.d(t,{SessionRecorderHttpTraceExporterBrowser:()=>c});var r,o=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/OTLPExporterBase.js"),s=n("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/create-legacy-browser-delegate.js"),i=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/SessionRecorderJsonTraceSerializer.js"),a=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/constants.base.js"),l=(r=function(e,t){return r=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])},r(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(){return u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)},c=function(e){function t(t){void 0===t&&(t={});var n=this,r=u(u({},t),{url:t.url||a.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL,headers:u(u({},t.headers||{}),t.apiKey?{Authorization:t.apiKey}:{})});return(n=e.call(this,(0,s.createLegacyOtlpBrowserExportDelegate)(r,i.SessionRecorderJsonTraceSerializer,"v1/traces",{"Content-Type":"application/json"}))||this).usePostMessage=!1,n.config=t,n.postMessageType=t.postMessageType||"MULTIPLAYER_SESSION_DEBUGGER_LIB",n.postMessageTargetOrigin=t.postMessageTargetOrigin||"*",n}return l(t,e),t.prototype.export=function(t,n){var r=this;this.usePostMessage?this.exportViaPostMessage(t,n):e.prototype.export.call(this,t,function(e){0===e.code?n(e):r.config.usePostMessageFallback?(r.usePostMessage=!0,r.exportViaPostMessage(t,n)):n(e)})},t.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})},t.prototype._serializeSpan=function(e){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:e.parentSpanId,instrumentationLibrary:e.instrumentationLibrary,droppedAttributesCount:e.droppedAttributesCount,droppedEventsCount:e.droppedEventsCount,droppedLinksCount:e.droppedLinksCount,resource:{attributes:e.resource.attributes,asyncAttributesPending:e.resource.asyncAttributesPending}}},t.prototype.getDefaultUrl=function(e){return e.url||a.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL},t}(o.OTLPExporterBase)},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/SessionRecorderIdGenerator.js":(e,t,n)=>{"use strict";n.d(t,{SessionRecorderIdGenerator:()=>d});var r,o=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Sampler.js"),s=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/platform/browser/RandomIdGenerator.js"),i=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/type/index.js"),a=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/SessionRecorderTraceIdRatioBasedSampler.js"),l=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/constants.base.js"),u=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/index.js"),c=(r=function(e,t){return r=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])},r(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(t){var n=(void 0===t?{}:t).autoDocTracesRatio,r=void 0===n?0:n,o=e.call(this)||this;return o.docSpanSampler=new a.SessionRecorderTraceIdRatioBasedSampler(r),o.generateLongId=(0,u.getIdGenerator)(16),o.sessionShortId="",o.sessionType=i.SessionType.PLAIN,o.generateTraceId=function(){var e=o.generateLongId();if(o.sessionShortId){var t="";if(o.sessionType===i.SessionType.CONTINUOUS)t=l.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX;else t=l.MULTIPLAYER_TRACE_DEBUG_PREFIX;var n="".concat(t).concat(o.sessionShortId);return"".concat(n).concat(e.substring(n.length,e.length))}return o._isDocTrace(e)?"".concat(l.MULTIPLAYER_TRACE_DOC_PREFIX).concat(e.slice(l.MULTIPLAYER_TRACE_DOC_PREFIX.length,e.length)):e},o}return c(t,e),t.prototype.setSessionId=function(e,t){void 0===t&&(t=i.SessionType.PLAIN),this.sessionShortId=e,this.sessionType=t},t.prototype._isDocTrace=function(e){return this.docSpanSampler.shouldSample(void 0,e).decision===o.SamplingDecision.RECORD_AND_SAMPLED},t}(s.RandomIdGenerator)},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/SessionRecorderJsonTraceSerializer.js":(e,t,n)=>{"use strict";n.d(t,{SessionRecorderJsonTraceSerializer:()=>s});var r=n("../../node_modules/@opentelemetry/otlp-transformer/build/esm/trace/index.js"),o=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/constants.base.js"),s={serializeRequest:function(e){var t=e.filter(function(e){var t=e.spanContext().traceId;return!!(t.startsWith(o.MULTIPLAYER_TRACE_DEBUG_PREFIX)||t.startsWith(o.MULTIPLAYER_TRACE_DOC_PREFIX)||t.startsWith(o.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX))}),n=(0,r.createExportTraceServiceRequest)(t,{useHex:!0,useLongBits:!1});return(new TextEncoder).encode(JSON.stringify(n))},deserializeResponse:function(e){var t=new TextDecoder;return JSON.parse(t.decode(e))}}},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/SessionRecorderTraceIdRatioBasedSampler.js":(e,t,n)=>{"use strict";n.d(t,{SessionRecorderTraceIdRatioBasedSampler:()=>i});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"),o=n("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Sampler.js"),s=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/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(this._ratio>0&&t.startsWith(s.MULTIPLAYER_TRACE_DEBUG_PREFIX))return{decision:o.SamplingDecision.RECORD_AND_SAMPLED};var n=o.SamplingDecision.NOT_RECORD;return(0,r.isValidTraceId)(t)&&this._accumulate(t)<this._upperBound&&(n=o.SamplingDecision.RECORD_AND_SAMPLED),{decision:n}},e.prototype.toString=function(){return"MultiplayerTraceIdRatioBasedSampler{".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 r=8*n;t=(t^parseInt(e.slice(r,r+8),16))>>>0}return t},e}()},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/constants.base.js":(e,t,n)=>{"use strict";n.d(t,{ATTR_MULTIPLAYER_CLIENT_ID:()=>A,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE:()=>m,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON:()=>h,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE:()=>R,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING:()=>w,ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE:()=>O,ATTR_MULTIPLAYER_HTTP_REQUEST_BODY:()=>y,ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS:()=>b,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY:()=>E,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING:()=>T,ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS:()=>v,ATTR_MULTIPLAYER_INTEGRATION_ID:()=>g,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY:()=>L,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING:()=>N,ATTR_MULTIPLAYER_PLATFORM_ID:()=>p,ATTR_MULTIPLAYER_PLATFORM_NAME:()=>f,ATTR_MULTIPLAYER_PROJECT_ID:()=>d,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE:()=>S,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING:()=>C,ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE:()=>I,ATTR_MULTIPLAYER_SESSION_ID:()=>_,ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION:()=>P,ATTR_MULTIPLAYER_WORKSPACE_ID:()=>c,MASK_PLACEHOLDER:()=>x,MULTIPLAYER_ATTRIBUTE_PREFIX:()=>u,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL:()=>l,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL:()=>a,MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX:()=>s,MULTIPLAYER_TRACE_DEBUG_PREFIX:()=>o,MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH:()=>i,MULTIPLAYER_TRACE_DOC_PREFIX:()=>r});var r="d0cd0c",o="debdeb",s="cdbcdb",i=16,a="https://api.multiplayer.app/v1/traces",l="https://api.multiplayer.app/v1/logs",u="multiplayer.",c="multiplayer.workspace.id",d="multiplayer.project.id",p="multiplayer.platform.id",m="multiplayer.session.auto-save",h="multiplayer.session.auto-save.reason",f="multiplayer.platform.name",A="multiplayer.client.id",g="multiplayer.integration.id",_="multiplayer.session.id",y="multiplayer.http.request.body",E="multiplayer.http.response.body",b="multiplayer.http.request.headers",v="multiplayer.http.response.headers",T="multiplayer.http.response.body.encoding",S="multiplayer.rpc.request.message",C="multiplayer.rpc.request.message.encoding",I="multiplayer.rpc.response.message",R="multiplayer.rpc.grpc.request.message",w="multiplayer.rpc.request.message.encoding",O="multiplayer.rpc.grpc.response.message",L="multiplayer.messaging.message.body",N="multiplayer.messaging.message.body.encoding",P="multiplayer.session-recorder.version",x="***MASKED***"},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/constants.browser.js":(e,t,n)=>{"use strict";n.d(t,{ATTR_MULTIPLAYER_CLIENT_ID:()=>r.ATTR_MULTIPLAYER_CLIENT_ID,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE:()=>r.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON:()=>r.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE:()=>r.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING:()=>r.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING,ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE:()=>r.ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE,ATTR_MULTIPLAYER_HTTP_REQUEST_BODY:()=>r.ATTR_MULTIPLAYER_HTTP_REQUEST_BODY,ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS:()=>r.ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY:()=>r.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING:()=>r.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING,ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS:()=>r.ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS,ATTR_MULTIPLAYER_INTEGRATION_ID:()=>r.ATTR_MULTIPLAYER_INTEGRATION_ID,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY:()=>r.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING:()=>r.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING,ATTR_MULTIPLAYER_PLATFORM_ID:()=>r.ATTR_MULTIPLAYER_PLATFORM_ID,ATTR_MULTIPLAYER_PLATFORM_NAME:()=>r.ATTR_MULTIPLAYER_PLATFORM_NAME,ATTR_MULTIPLAYER_PROJECT_ID:()=>r.ATTR_MULTIPLAYER_PROJECT_ID,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE:()=>r.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING:()=>r.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING,ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE:()=>r.ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE,ATTR_MULTIPLAYER_SESSION_ID:()=>r.ATTR_MULTIPLAYER_SESSION_ID,ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION:()=>r.ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION,ATTR_MULTIPLAYER_WORKSPACE_ID:()=>r.ATTR_MULTIPLAYER_WORKSPACE_ID,MASK_PLACEHOLDER:()=>r.MASK_PLACEHOLDER,MULTIPLAYER_ATTRIBUTE_PREFIX:()=>r.MULTIPLAYER_ATTRIBUTE_PREFIX,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL:()=>r.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL:()=>r.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL,MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX:()=>r.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX,MULTIPLAYER_TRACE_DEBUG_PREFIX:()=>r.MULTIPLAYER_TRACE_DEBUG_PREFIX,MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH:()=>r.MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH,MULTIPLAYER_TRACE_DOC_PREFIX:()=>r.MULTIPLAYER_TRACE_DOC_PREFIX});var r=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/constants.base.js")},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/index-browser.js":(e,t,n)=>{"use strict";n.d(t,{ATTR_MULTIPLAYER_CLIENT_ID:()=>r.ATTR_MULTIPLAYER_CLIENT_ID,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE:()=>r.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON:()=>r.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE:()=>r.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING:()=>r.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING,ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE:()=>r.ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE,ATTR_MULTIPLAYER_HTTP_REQUEST_BODY:()=>r.ATTR_MULTIPLAYER_HTTP_REQUEST_BODY,ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS:()=>r.ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY:()=>r.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING:()=>r.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING,ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS:()=>r.ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS,ATTR_MULTIPLAYER_INTEGRATION_ID:()=>r.ATTR_MULTIPLAYER_INTEGRATION_ID,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY:()=>r.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING:()=>r.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING,ATTR_MULTIPLAYER_PLATFORM_ID:()=>r.ATTR_MULTIPLAYER_PLATFORM_ID,ATTR_MULTIPLAYER_PLATFORM_NAME:()=>r.ATTR_MULTIPLAYER_PLATFORM_NAME,ATTR_MULTIPLAYER_PROJECT_ID:()=>r.ATTR_MULTIPLAYER_PROJECT_ID,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE:()=>r.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING:()=>r.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING,ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE:()=>r.ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE,ATTR_MULTIPLAYER_SESSION_ID:()=>r.ATTR_MULTIPLAYER_SESSION_ID,ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION:()=>r.ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION,ATTR_MULTIPLAYER_WORKSPACE_ID:()=>r.ATTR_MULTIPLAYER_WORKSPACE_ID,MASK_PLACEHOLDER:()=>r.MASK_PLACEHOLDER,MULTIPLAYER_ATTRIBUTE_PREFIX:()=>r.MULTIPLAYER_ATTRIBUTE_PREFIX,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL:()=>r.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL:()=>r.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL,MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX:()=>r.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX,MULTIPLAYER_TRACE_DEBUG_PREFIX:()=>r.MULTIPLAYER_TRACE_DEBUG_PREFIX,MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH:()=>r.MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH,MULTIPLAYER_TRACE_DOC_PREFIX:()=>r.MULTIPLAYER_TRACE_DOC_PREFIX,SessionRecorderHttpTraceExporterBrowser:()=>o.SessionRecorderHttpTraceExporterBrowser,SessionRecorderIdGenerator:()=>s.SessionRecorderIdGenerator,SessionRecorderJsonTraceSerializer:()=>i.SessionRecorderJsonTraceSerializer,SessionRecorderSdk:()=>l,SessionRecorderTraceIdRatioBasedSampler:()=>a.SessionRecorderTraceIdRatioBasedSampler,SessionType:()=>u.SessionType});var r=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/constants.browser.js"),o=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/SessionRecorderHttpTraceExporterBrowser.js"),s=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/SessionRecorderIdGenerator.js"),i=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/SessionRecorderJsonTraceSerializer.js"),a=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/SessionRecorderTraceIdRatioBasedSampler.js"),l=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/index.js"),u=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/type/index.js")},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/capture-exception.js":(e,t,n)=>{"use strict";n.d(t,{captureException:()=>i});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),s=n("../../node_modules/@opentelemetry/api/build/esm/trace/status.js"),i=function(e){if(e){var t=r.trace.getSpan(o.context.active());t&&(t.recordException(e),t.setStatus({code:s.SpanStatusCode.ERROR,message:e.message}))}}},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/id-generator.js":(e,t,n)=>{"use strict";n.d(t,{getIdGenerator:()=>o});var r=Array(32),o=function(e){return function(){for(var 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/@multiplayer-app/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:()=>s.isGzip,mask:()=>r.default,saveContinuousSession:()=>u.saveContinuousSession,schemify:()=>o.default,sensitiveFields:()=>r.sensitiveFields,sensitiveHeaders:()=>r.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 r=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/mask.js"),o=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/schemify.js"),s=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/is-gzip.js"),i=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/id-generator.js"),a=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/capture-exception.js"),l=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/set-attribute.js"),u=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/save-continuous-deb-session.js")},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/is-gzip.js":(e,t,n)=>{"use strict";n.d(t,{isGzip:()=>r});var r=function(e){return!(!e||e.length<3)&&(31===e[0]&&139===e[1]&&8===e[2])}},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/mask.js":(e,t,n)=>{"use strict";n.d(t,{default:()=>l,sensitiveFields:()=>o,sensitiveHeaders:()=>s});var r=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/constants.base.js"),o=["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"],s=["set-cookie","cookie","authorization","proxyAuthorization"],i=function(e,t){void 0===t&&(t=0);var n=typeof e,o="object"===n,s=!1;if(Array.isArray(e)&&(s=!0),!(t>8&&(o||s))){if(s)return e.map(function(e){return i(e,t+1)},e);if(o){for(var a in e)e[a]=i(e[a],t+1);return e}return"string"===n?r.MASK_PLACEHOLDER:e}},a=function(e,t){var n=typeof e,o="object"===n,s=new Set(t);if(Array.isArray(e))return e.map(function(e){return a(e,t)},e);if(o){for(var i in e)s.has(i)?e[i]=r.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 r,o;try{r=JSON.parse(t)}catch(e){r=t}return"string"!=typeof(o=e.length?a(r,e):i(r))&&(o=JSON.stringify(o)),o}}},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/save-continuous-deb-session.js":(e,t,n)=>{"use strict";n.d(t,{saveContinuousSession:()=>i});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),s=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/constants.base.js"),i=function(e){var t=r.trace.getSpan(o.context.active());t&&(null==t||t.setAttribute(s.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE,!0),(null==e?void 0:e.length)&&(null==t||t.addEvent(s.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON,{reason:e})))}},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/schemify.js":(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var r=n("../../node_modules/to-json-schema/lib/index.js"),o=(null==r?void 0:n.n(r)())||r,s={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=s),!e)return"";var r;if("string"==typeof e)try{r=JSON.parse(e)}catch(t){return e}else{if("object"!=typeof e)return e;r=e}try{var i=o(r,n);return t?JSON.stringify(i):i}catch(e){return""}}},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/set-attribute.js":(e,t,n)=>{"use strict";n.d(t,{setAttribute:()=>a,setGrpcRequestMessage:()=>f,setGrpcResponseMessage:()=>A,setHttpRequestBody:()=>l,setHttpRequestHeaders:()=>u,setHttpResponseBody:()=>c,setHttpResponseHeaders:()=>d,setMessageBody:()=>p,setRpcRequestMessage:()=>m,setRpcResponseMessage:()=>h});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),s=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/constants.base.js"),i=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/sdk/mask.js"),a=function(e,t){var n=r.trace.getSpan(o.context.active());n&&n.setAttribute(e,t)},l=function(e,t){void 0===t&&(t={mask:!0});var n=r.trace.getSpan(o.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(s.ATTR_MULTIPLAYER_HTTP_REQUEST_BODY,e))},u=function(e,t){void 0===t&&(t={mask:!0});var n=r.trace.getSpan(o.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveHeaders)(e,n)),n.setAttribute(s.ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS,e))},c=function(e,t){void 0===t&&(t={mask:!0});var n=r.trace.getSpan(o.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(s.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY,e))},d=function(e,t){void 0===t&&(t={mask:!0});var n=r.trace.getSpan(o.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(s.ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS,e))},p=function(e,t){void 0===t&&(t={mask:!0});var n=r.trace.getSpan(o.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(s.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY,e))},m=function(e,t){void 0===t&&(t={mask:!0});var n=r.trace.getSpan(o.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(s.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE,e))},h=function(e,t){void 0===t&&(t={mask:!0});var n=r.trace.getSpan(o.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(s.ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE,e))},f=function(e,t){void 0===t&&(t={mask:!0});var n=r.trace.getSpan(o.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(s.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE,e))},A=function(e,t){void 0===t&&(t={mask:!0});var n=r.trace.getSpan(o.context.active());n&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,n)),n.setAttribute(s.ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE,e))}},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/type/index.js":(e,t,n)=>{"use strict";n.d(t,{SessionType:()=>r.SessionType});var r=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/type/session-type.enum.js")},"./node_modules/@multiplayer-app/session-recorder-common/dist/esm/type/session-type.enum.js":(e,t,n)=>{"use strict";var r;n.d(t,{SessionType:()=>r}),function(e){e.CONTINUOUS="CONTINUOUS",e.PLAIN="MANUAL"}(r||(r={}))},"./node_modules/@opentelemetry/core/build/esm/internal/validators.js":(e,t,n)=>{"use strict";n.d(t,{validateKey:()=>a,validateValue:()=>l});var r="[_0-9a-z-*/]",o=new RegExp("^(?:"+("[a-z]"+r+"{0,255}")+"|"+("[a-z0-9]"+r+"{0,240}@[a-z]"+r+"{0,13}")+")$"),s=/^[ -~]{0,255}[!-~]$/,i=/,|=/;function a(e){return o.test(e)}function l(e){return s.test(e)&&!i.test(e)}},"./node_modules/@opentelemetry/core/build/esm/trace/TraceState.js":(e,t,n)=>{"use strict";n.d(t,{TraceState:()=>o});var r=n("./node_modules/@opentelemetry/core/build/esm/internal/validators.js"),o=function(){function e(e){this._internalState=new Map,e&&this._parse(e)}return e.prototype.set=function(e,t){var n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n},e.prototype.unset=function(e){var t=this._clone();return t._internalState.delete(e),t},e.prototype.get=function(e){return this._internalState.get(e)},e.prototype.serialize=function(){var e=this;return this._keys().reduce(function(t,n){return t.push(n+"="+e.get(n)),t},[]).join(",")},e.prototype._parse=function(e){e.length>512||(this._internalState=e.split(",").reverse().reduce(function(e,t){var n=t.trim(),o=n.indexOf("=");if(-1!==o){var s=n.slice(0,o),i=n.slice(o+1,t.length);(0,r.validateKey)(s)&&(0,r.validateValue)(i)&&e.set(s,i)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}()},"./node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js":(e,t,n)=>{"use strict";n.d(t,{W3CTraceContextPropagator:()=>d});var r=n("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),o=n("../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"),s=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"),l="traceparent",u="tracestate",c=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");var d=function(){function e(){}return e.prototype.inject=function(e,t,n){var a=r.trace.getSpanContext(e);if(a&&!(0,i.isTracingSuppressed)(e)&&(0,o.isSpanContextValid)(a)){var c="00-"+a.traceId+"-"+a.spanId+"-0"+Number(a.traceFlags||s.TraceFlags.NONE).toString(16);n.set(t,l,c),a.traceState&&n.set(t,u,a.traceState.serialize())}},e.prototype.extract=function(e,t,n){var o=n.get(t,l);if(!o)return e;var s=Array.isArray(o)?o[0]:o;if("string"!=typeof s)return e;var i=function(e){var t=c.exec(e);return t?"00"===t[1]&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}:null}(s);if(!i)return e;i.isRemote=!0;var d=n.get(t,u);if(d){var p=Array.isArray(d)?d.join(","):d;i.traceState=new a.TraceState("string"==typeof p?p:void 0)}return r.trace.setSpanContext(e,i)},e.prototype.fields=function(){return[l,u]},e}()},"./node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js":(e,t,n)=>{"use strict";n.d(t,{isTracingSuppressed:()=>o});var r=(0,n("../../node_modules/@opentelemetry/api/build/esm/context/context.js").createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function o(e){return!0===e.getValue(r)}},"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:()=>J,a:()=>Z,s:()=>q,u:()=>K,z:()=>X});var r=Uint8Array,o=Uint16Array,s=Uint32Array,i=new r([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 r([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 r([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),u=function(e,t){for(var n=new o(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new s(n[30]);for(r=1;r<30;++r)for(var a=n[r];a<n[r+1];++a)i[a]=a-n[r]<<5|r;return[n,i]},c=u(i,2),d=c[0],p=c[1];d[28]=258,p[258]=28;for(var m=u(a,0),h=m[0],f=m[1],A=new o(32768),g=0;g<32768;++g){var _=(43690&g)>>>1|(21845&g)<<1;_=(61680&(_=(52428&_)>>>2|(13107&_)<<2))>>>4|(3855&_)<<4,A[g]=((65280&_)>>>8|(255&_)<<8)>>>1}var y=function(e,t,n){for(var r=e.length,s=0,i=new o(t);s<r;++s)++i[e[s]-1];var a,l=new o(t);for(s=0;s<t;++s)l[s]=l[s-1]+i[s-1]<<1;if(n){a=new o(1<<t);var u=15-t;for(s=0;s<r;++s)if(e[s])for(var c=s<<4|e[s],d=t-e[s],p=l[e[s]-1]++<<d,m=p|(1<<d)-1;p<=m;++p)a[A[p]>>>u]=c}else for(a=new o(r),s=0;s<r;++s)a[s]=A[l[e[s]-1]++]>>>15-e[s];return a},E=new r(288);for(g=0;g<144;++g)E[g]=8;for(g=144;g<256;++g)E[g]=9;for(g=256;g<280;++g)E[g]=7;for(g=280;g<288;++g)E[g]=8;var b=new r(32);for(g=0;g<32;++g)b[g]=5;var v=y(E,9,0),T=y(E,9,1),S=y(b,5,0),C=y(b,5,1),I=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},R=function(e,t,n){var r=t/8|0;return(e[r]|e[r+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)},O=function(e){return(e/8|0)+(7&e&&1)},L=function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var i=new(e instanceof o?o:e instanceof s?s:r)(n-t);return i.set(e.subarray(t,n)),i},N=function(e,t,n){var o=e.length,s=!t||n,u=!n||n.i;n||(n={}),t||(t=new r(3*o));var c=function(e){var n=t.length;if(e>n){var o=new r(Math.max(2*n,e));o.set(t),t=o}},p=n.f||0,m=n.p||0,f=n.b||0,A=n.l,g=n.d,_=n.m,E=n.n,b=8*o;do{if(!A){n.f=p=R(e,m,1);var v=R(e,m+1,3);if(m+=3,!v){var S=e[(F=O(m)+4)-4]|e[F-3]<<8,N=F+S;if(N>o){if(u)throw"unexpected EOF";break}s&&c(f+S),t.set(e.subarray(F,N),f),n.b=f+=S,n.p=m=8*N;continue}if(1==v)A=T,g=C,_=9,E=5;else{if(2!=v)throw"invalid block type";var P=R(e,m,31)+257,x=R(e,m+10,15)+4,M=P+R(e,m+5,31)+1;m+=14;for(var k=new r(M),D=new r(19),B=0;B<x;++B)D[l[B]]=R(e,m+3*B,7);m+=3*x;var j=I(D),U=(1<<j)-1;if(!u&&m+M*(j+7)>b)break;var G=y(D,j,1);for(B=0;B<M;){var F,H=G[R(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+R(e,m,3),m+=2,Y=k[B-1]):17==F?(z=3+R(e,m,7),m+=3):18==F&&(z=11+R(e,m,127),m+=7);z--;)k[B++]=Y}}var W=k.subarray(0,P),V=k.subarray(P);_=I(W),E=I(V),A=y(W,_,1),g=y(V,E,1)}if(m>b)throw"unexpected EOF"}s&&c(f+131072);for(var X=(1<<_)-1,K=(1<<E)-1,Z=_+E+18;u||m+Z<b;){var q=(Y=A[w(e,m)&X])>>>4;if((m+=15&Y)>b)throw"unexpected EOF";if(!Y)throw"invalid length/literal";if(q<256)t[f++]=q;else{if(256==q){A=null;break}var J=q-254;if(q>264){var Q=i[B=q-257];J=R(e,m,(1<<Q)-1)+d[B],m+=Q}var $=g[w(e,m)&K],ee=$>>>4;if(!$)throw"invalid distance";m+=15&$;V=h[ee];if(ee>3){Q=a[ee];V+=w(e,m)&(1<<Q)-1,m+=Q}if(m>b)throw"unexpected EOF";s&&c(f+131072);for(var te=f+J;f<te;f+=4)t[f]=t[f-V],t[f+1]=t[f+1-V],t[f+2]=t[f+2-V],t[f+3]=t[f+3-V];f=te}}n.l=A,n.p=m,n.b=f,A&&(p=1,n.m=_,n.d=g,n.n=E)}while(!p);return f==t.length?t:L(t,0,f)},P=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8},x=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},M=function(e,t){for(var n=[],s=0;s<e.length;++s)e[s]&&n.push({s,f:e[s]});var i=n.length,a=n.slice();if(!i)return[new r(0),0];if(1==i){var l=new r(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 u=n[0],c=n[1],d=0,p=1,m=2;for(n[0]={s:-1,f:u.f+c.f,l:u,r:c};p!=i-1;)u=n[n[d].f<n[m].f?d++:m++],c=n[d!=p&&n[d].f<n[m].f?d++:m++],n[p++]={s:-1,f:u.f+c.f,l:u,r:c};var h=a[0].s;for(s=1;s<i;++s)a[s].s>h&&(h=a[s].s);var f=new o(h+1),A=k(n[p-1],f,0);if(A>t){s=0;var g=0,_=A-t,y=1<<_;for(a.sort(function(e,t){return f[t.s]-f[e.s]||e.f-t.f});s<i;++s){var E=a[s].s;if(!(f[E]>t))break;g+=y-(1<<A-f[E]),f[E]=t}for(g>>>=_;g>0;){var b=a[s].s;f[b]<t?g-=1<<t-f[b]++-1:++s}for(;s>=0&&g;--s){var v=a[s].s;f[v]==t&&(--f[v],++g)}A=t}return[new r(f),A]},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 o(++t),r=0,s=e[0],i=1,a=function(e){n[r++]=e},l=1;l<=t;++l)if(e[l]==s&&l!=t)++i;else{if(!s&&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(s),--i;i>6;i-=6)a(8304);i>2&&(a(i-3<<5|8208),i=0)}for(;i--;)a(s);i=1,s=e[l]}return[n.subarray(0,r),t]},B=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},j=function(e,t,n){var r=n.length,o=O(t+2);e[o]=255&r,e[o+1]=r>>>8,e[o+2]=255^e[o],e[o+3]=255^e[o+1];for(var s=0;s<r;++s)e[o+s+4]=n[s];return 8*(o+4+r)},U=function(e,t,n,r,s,u,c,d,p,m,h){P(t,h++,n),++s[256];for(var f=M(s,15),A=f[0],g=f[1],_=M(u,15),T=_[0],C=_[1],I=D(A),R=I[0],w=I[1],O=D(T),L=O[0],N=O[1],k=new o(19),U=0;U<R.length;++U)k[31&R[U]]++;for(U=0;U<L.length;++U)k[31&L[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,K=m+5<<3,Z=B(s,E)+B(u,b)+c,q=B(s,A)+B(u,T)+c+14+3*Y+B(k,F)+(2*k[16]+3*k[17]+7*k[18]);if(K<=Z&&K<=q)return j(t,h,e.subarray(p,p+m));if(P(t,h,1+(q<Z)),h+=2,q<Z){z=y(A,g,0),W=A,V=y(T,C,0),X=T;var J=y(F,H,0);P(t,h,w-257),P(t,h+5,N-1),P(t,h+10,Y-4),h+=14;for(U=0;U<Y;++U)P(t,h+3*U,F[l[U]]);h+=3*Y;for(var Q=[R,L],$=0;$<2;++$){var ee=Q[$];for(U=0;U<ee.length;++U){var te=31&ee[U];P(t,h,J[te]),h+=F[te],te>15&&(P(t,h,ee[U]>>>5&127),h+=ee[U]>>>12)}}}else z=v,W=E,V=S,X=b;for(U=0;U<d;++U)if(r[U]>255){te=r[U]>>>18&31;x(t,h,z[te+257]),h+=W[te+257],te>7&&(P(t,h,r[U]>>>23&31),h+=i[te]);var ne=31&r[U];x(t,h,V[ne]),h+=X[ne],ne>3&&(x(t,h,r[U]>>>5&8191),h+=a[ne])}else x(t,h,z[r[U]]),h+=W[r[U]];return x(t,h,z[256]),h+W[256]},G=new s([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new r(0),H=function(){var e=1,t=0;return{p:function(n){for(var r=e,o=t,s=n.length,i=0;i!=s;){for(var a=Math.min(i+5552,s);i<a;++i)o+=r+=n[i];r%=65521,o%=65521}e=r,t=o},d:function(){return(e>>>8<<16|(255&t)<<8|t>>>8)+2*((255&e)<<23)}}},Y=function(e,t,n,l,u){return function(e,t,n,l,u,c){var d=e.length,m=new r(l+d+5*(1+Math.floor(d/7e3))+u),h=m.subarray(l,m.length-u),A=0;if(!t||d<8)for(var g=0;g<=d;g+=65535){var _=g+65535;_<d?A=j(h,A,e.subarray(g,_)):(h[g]=c,A=j(h,A,e.subarray(g,d)))}else{for(var y=G[t-1],E=y>>>13,b=8191&y,v=(1<<n)-1,T=new o(32768),S=new o(v+1),C=Math.ceil(n/3),I=2*C,R=function(t){return(e[t]^e[t+1]<<C^e[t+2]<<I)&v},w=new s(25e3),N=new o(288),P=new o(32),x=0,M=0,k=(g=0,0),D=0,B=0;g<d;++g){var H=R(g),Y=32767&g,z=S[H];if(T[Y]=z,S[H]=Y,D<=g){var W=d-g;if((x>7e3||k>24576)&&W>423){A=U(e,h,0,w,N,P,M,k,B,g-B,A),k=x=M=0,B=g;for(var V=0;V<286;++V)N[V]=0;for(V=0;V<30;++V)P[V]=0}var X=2,K=0,Z=b,q=Y-z&32767;if(W>2&&H==R(g-q))for(var J=Math.min(E,W)-1,Q=Math.min(32767,g),$=Math.min(258,W);q<=Q&&--Z&&Y!=z;){if(e[g+X]==e[g+X-q]){for(var ee=0;ee<$&&e[g+ee]==e[g+ee-q];++ee);if(ee>X){if(X=ee,K=q,ee>J)break;var te=Math.min(q,ee-2),ne=0;for(V=0;V<te;++V){var re=g-q+V+32768&32767,oe=re-T[re]+32768&32767;oe>ne&&(ne=oe,z=re)}}}q+=(Y=z)-(z=T[Y])+32768&32767}if(K){w[k++]=268435456|p[X]<<18|f[K];var se=31&p[X],ie=31&f[K];M+=i[se]+a[ie],++N[257+se],++P[ie],D=g+X,++x}else w[k++]=e[g],++N[e[g]]}}A=U(e,h,c,w,N,P,M,k,B,g-B,A),c||(A=j(h,A,F))}return L(m,0,l+O(A)+u)}(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,!u)},z=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},W=function(e,t){var n=t.level,r=0==n?0:n<6?1:9==n?3:2;e[0]=120,e[1]=r<<6|(r?32-2*r: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 r=Y(e,t,2,4);return W(r,t),z(r,r.length-4,n.d()),r}function K(e,t){return N((V(e),e.subarray(2,-4)),t)}function Z(e,t){var n=e.length;if(!t&&"undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var o=new r(e.length+(e.length>>>1)),s=0,i=function(e){o[s++]=e},a=0;a<n;++a){if(s+5>o.length){var l=new r(s+8+(n-a<<1));l.set(o),o=l}var u=e.charCodeAt(a);u<128||t?i(u):u<2048?(i(192|u>>>6),i(128|63&u)):u>55295&&u<57344?(i(240|(u=65536+(1047552&u)|1023&e.charCodeAt(++a))>>>18),i(128|u>>>12&63),i(128|u>>>6&63),i(128|63&u)):(i(224|u>>>12),i(128|u>>>6&63),i(128|63&u))}return L(o,0,s)}function q(e,t){var n="";if(!t&&"undefined"!=typeof TextDecoder)return(new TextDecoder).decode(e);for(var r=0;r<e.length;){var o=e[r++];o<128||t?n+=String.fromCharCode(o):o<224?n+=String.fromCharCode((31&o)<<6|63&e[r++]):o<240?n+=String.fromCharCode((15&o)<<12|(63&e[r++])<<6|63&e[r++]):(o=((15&o)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536,n+=String.fromCharCode(55296|o>>10,56320|1023&o))}return n}const J="v1"},"../../node_modules/@rrweb/packer/dist/pack.js":(e,t,n)=>{"use strict";n.d(t,{pack:()=>o});var r=n("../../node_modules/@rrweb/packer/dist/base-ZCOD62p-.js");const o=e=>{const t={...e,v:r.M};return(0,r.s)((0,r.z)((0,r.a)(JSON.stringify(t))),!0)}},"../../node_modules/@rrweb/packer/dist/packer.js":(e,t,n)=>{"use strict";n.d(t,{pack:()=>r.pack});var r=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 r,o=Object.defineProperty,s=(e,t,n)=>(((e,t,n)=>{t in e?o(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,u=(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 c{constructor(){u(this,"idNodeMap",new Map),u(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 r=e.classList[n];if(t.test(r))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 f(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 A(e){var t,n;let r=null;return(null==(n=null==(t=e.getRootNode)?void 0:t.call(e))?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(r=e.getRootNode().host),r}function g(e){let t,n=e;for(;t=A(n);)n=t;return n}function _(e){const t=e.ownerDocument;if(!t)return!1;const n=g(e);return t.contains(n)}const y=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:f,getBaseDimension:function e(t,n){var r,o;const s=null==(o=null==(r=t.ownerDocument)?void 0:r.defaultView)?void 0:o.frameElement;if(!s||s===n)return{x:0,y:0,relativeScale:1,absoluteScale:1};const i=s.getBoundingClientRect(),a=e(s,n),l=i.height/s.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 r=t[n[0]];return 1===n.length?r:e(r.cssRules[n[1]].cssRules,n.slice(2))},getPositionsAndIndex:function(e){const t=[...e],n=t.pop();return{positions:t,index:n}},getRootShadowHost:g,getShadowHost:A,getWindowHeight:function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight},getWindowScroll:function(e){var t,n,r,o,s,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==(r=null==a?void 0:a.body)?void 0:r.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==a?void 0:a.documentElement.scrollTop)||(null==(s=null==(o=null==a?void 0:a.body)?void 0:o.parentElement)?void 0:s.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,r,o,s=window){const i=s.Object.getOwnPropertyDescriptor(t,n);return s.Object.defineProperty(t,n,o?r:{set(e){setTimeout(()=>{r.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 r=n.getId(t);return!n.has(r)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,n))},isBlocked:function(e,t,n,r){if(!e)return!1;const o=f(e);if(!o)return!1;try{if("string"==typeof t){if(o.classList.contains(t))return!0;if(r&&null!==o.closest("."+t))return!0}else if(d(o,t,r))return!0}catch(e){}if(n){if(o.matches(n))return!0;if(r&&null!==o.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 r=t.children.length-1;r>=0;r--)e(t.children[r],n)},legacy_isTouchEvent:function(e){return Boolean(e.changedTouches)},get nowTimestamp(){return h},on:function(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)},patch:function(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}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 r={value:e,parent:n,children:[]};return t[e.node.id]=r,r},r=[];for(const o of e){const{nextId:e,parentId:s}=o;if(e&&e in t){const s=t[e];if(s.parent){const e=s.parent.children.indexOf(s);s.parent.children.splice(e,0,n(o,s.parent))}else{const e=r.indexOf(s);r.splice(e,0,n(o,null))}continue}if(s in t){const e=t[s];e.children.push(n(o,e));continue}r.push(n(o,null))}return r},shadowHostInDom:_,throttle:function(e,t,n={}){let r=null,o=0;return function(...s){const i=Date.now();o||!1!==n.leading||(o=i);const a=t-(i-o),l=this;a<=0||a>t?(r&&(clearTimeout(r),r=null),o=i,e.apply(l,s)):r||!1===n.trailing||(r=setTimeout(()=>{o=!1===n.leading?0:Date.now(),r=null,e.apply(l,s)},a))}},uniqueTextMutations:function(e){const t=new Set,n=[];for(let r=e.length;r--;){const o=e[r];t.has(o.id)||(n.push(o),t.add(o.id))}return n}},Symbol.toStringTag,{value:"Module"}));for(var E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b="undefined"==typeof Uint8Array?[]:new Uint8Array(256),v=0;v<64;v++)b[E.charCodeAt(v)]=v;var T,S,C;"undefined"!=typeof window&&window.Blob&&new Blob([(T="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpCiAgICAgICAgcmV0dXJuIHRyYW5zcGFyZW50QmxvYk1hcC5nZXQoaWQpOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIHRyYW5zcGFyZW50QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICAgIHJldHVybiBiYXNlNjQ7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gIiI7CiAgICB9CiAgfQogIGNvbnN0IHdvcmtlciA9IHNlbGY7CiAgd29ya2VyLm9ubWVzc2FnZSA9IGFzeW5jIGZ1bmN0aW9uKGUpIHsKICAgIGlmICgiT2Zmc2NyZWVuQ2FudmFzIiBpbiBnbG9iYWxUaGlzKSB7CiAgICAgIGNvbnN0IHsgaWQsIGJpdG1hcCwgd2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMgfSA9IGUuZGF0YTsKICAgICAgY29uc3QgdHJhbnNwYXJlbnRCYXNlNjQgPSBnZXRUcmFuc3BhcmVudEJsb2JGb3IoCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0LAogICAgICAgIGRhdGFVUkxPcHRpb25zCiAgICAgICk7CiAgICAgIGNvbnN0IG9mZnNjcmVlbiA9IG5ldyBPZmZzY3JlZW5DYW52YXMod2lkdGgsIGhlaWdodCk7CiAgICAgIGNvbnN0IGN0eCA9IG9mZnNjcmVlbi5nZXRDb250ZXh0KCIyZCIpOwogICAgICBjdHguZHJhd0ltYWdlKGJpdG1hcCwgMCwgMCk7CiAgICAgIGJpdG1hcC5jbG9zZSgpOwogICAgICBjb25zdCBibG9iID0gYXdhaXQgb2Zmc2NyZWVuLmNvbnZlcnRUb0Jsb2IoZGF0YVVSTE9wdGlvbnMpOwogICAgICBjb25zdCB0eXBlID0gYmxvYi50eXBlOwogICAgICBjb25zdCBhcnJheUJ1ZmZlciA9IGF3YWl0IGJsb2IuYXJyYXlCdWZmZXIoKTsKICAgICAgY29uc3QgYmFzZTY0ID0gZW5jb2RlKGFycmF5QnVmZmVyKTsKICAgICAgaWYgKCFsYXN0QmxvYk1hcC5oYXMoaWQpICYmIGF3YWl0IHRyYW5zcGFyZW50QmFzZTY0ID09PSBiYXNlNjQpIHsKICAgICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkIH0pOwogICAgICB9CiAgICAgIGlmIChsYXN0QmxvYk1hcC5nZXQoaWQpID09PSBiYXNlNjQpCiAgICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkIH0pOwogICAgICB3b3JrZXIucG9zdE1lc3NhZ2UoewogICAgICAgIGlkLAogICAgICAgIHR5cGUsCiAgICAgICAgYmFzZTY0LAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodAogICAgICB9KTsKICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkOiBlLmRhdGEuaWQgfSk7CiAgICB9CiAgfTsKfSkoKTsKLy8jIHNvdXJjZU1hcHBpbmdVUkw9aW1hZ2UtYml0bWFwLWRhdGEtdXJsLXdvcmtlci1CWjFyN1JKRC5qcy5tYXAK",Uint8Array.from(atob(T),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==(r=e.contentWindow)?void 0:r.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}new c,(C=S||(S={}))[C.NotStarted=0]="NotStarted",C[C.Running=1]="Running",C[C.Stopped=2]="Stopped";class I{constructor(e){s(this,"fileName"),s(this,"functionName"),s(this,"lineNumber"),s(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 R=/(^|@)\S+:\d+/,w=/^\s*at .*(\S+:\d+|\(native\))/m,O=/^(eval@)?(\[native code])?$/,L={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 r=t.split(/\s+/).slice(1),o=this.extractLocation(n?n[1]:r.pop()),s=r.join(" ")||void 0,i=["eval","<anonymous>"].indexOf(o[0])>-1?void 0:o[0];return new I({functionName:s,fileName:i,lineNumber:o[1],columnNumber:o[2]})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(e){return!e.match(O)},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 I({functionName:e});{const t=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=e.match(t),r=n&&n[1]?n[1]:void 0,o=this.extractLocation(e.replace(t,""));return new I({functionName:r,fileName:o[0],lineNumber:o[1],columnNumber:o[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"),r=[];for(let e=2,o=n.length;e<o;e+=2){const o=t.exec(n[e]);o&&r.push(new I({fileName:o[2],lineNumber:parseFloat(o[1])}))}return r},parseOpera10:function(e){const t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,n=e.stacktrace.split("\n"),r=[];for(let e=0,o=n.length;e<o;e+=2){const o=t.exec(n[e]);o&&r.push(new I({functionName:o[3]||void 0,fileName:o[2],lineNumber:parseFloat(o[1])}))}return r},parseOpera11:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(R)&&!e.match(/^Error created at/)},this).map(function(e){const t=e.split("@"),n=this.extractLocation(t.pop()),r=(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new I({functionName:r,fileName:n[0],lineNumber:n[1],columnNumber:n[2]})},this)}};function N(e){if(!e||!e.outerHTML)return"";let t="";for(;e.parentElement;){let n=e.localName;if(!n)break;n=n.toLowerCase();const r=e.parentElement,o=[];if(r.children&&r.children.length>0)for(let e=0;e<r.children.length;e++){const t=r.children[e];t.localName&&t.localName.toLowerCase&&t.localName.toLowerCase()===n&&o.push(t)}o.length>1&&(n+=`:eq(${o.indexOf(e)})`),t=n+(t?">"+t:""),e=r}return t}function P(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 r of n)if(P(e[r])&&x(e[r],t-1))return!0;return!1}function M(e,t){const n={numOfKeysLimit:50,depthOfLimit:4};Object.assign(n,t);const r=[],o=[];return JSON.stringify(e,function(e,t){if(r.length>0){const n=r.indexOf(this);~n?r.splice(n+1):r.push(this),~n?o.splice(n,1/0,e):o.push(e),~r.indexOf(t)&&(t=r[0]===t?"[Circular ~]":"[Circular ~."+o.slice(0,r.indexOf(t)).join(".")+"]")}else r.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(function(e){if(P(e)&&Object.keys(e).length>n.numOfKeysLimit)return!0;if("function"==typeof e)return!0;if(P(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 r=t[n];Array.isArray(r)?e[n]=N(r.length?r[0]:null):e[n]=r}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 r=n?Object.assign({},k,n):k,o=r.logger;if(!o)return()=>{};let s;s="string"==typeof o?t[o]:o;let i=0,a=!1;const l=[];if(r.level.includes("error")){const n=t=>{const n=t.message,o=t.error,s=L.parse(o).map(e=>e.toString()),i=[M(n,r.stringifyOptions)];e({level:"error",trace:s,payload:i})};t.addEventListener("error",n),l.push(()=>{t.removeEventListener("error",n)});const o=t=>{let n,o;t.reason instanceof Error?(n=t.reason,o=[M(`Uncaught (in promise) ${n.name}: ${n.message}`,r.stringifyOptions)]):(n=new Error,o=[M("Uncaught (in promise)",r.stringifyOptions),M(t.reason,r.stringifyOptions)]);const s=L.parse(n).map(e=>e.toString());e({level:"error",trace:s,payload:o})};t.addEventListener("unhandledrejection",o),l.push(()=>{t.removeEventListener("unhandledrejection",o)})}for(const e of r.level)l.push(u(s,e));return()=>{l.forEach(e=>e())};function u(t,n){return t[n]?y.patch(t,n,t=>(...o)=>{if(t.apply(this,o),!a){a=!0;try{const t=L.parse(new Error).map(e=>e.toString()).splice(1),s=o.map(e=>M(e,r.stringifyOptions));i++,i<r.lengthThreshold?e({level:n,trace:t,payload:s}):i===r.lengthThreshold&&e({level:"warn",trace:[],payload:[M("The number of log records reached the threshold.")]})}catch(e){t("rrweb logger error:",e,...o)}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 r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}n.d(t,{Emitter:()=>r}),r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},r.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},r.prototype.emitReserved=r.prototype.emit,r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},r.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:r,setPrototypeOf:o,isFrozen:s,getPrototypeOf:i,getOwnPropertyDescriptor:a}=Object;let{freeze:l,seal:u,create:c}=Object,{apply:d,construct:p}="undefined"!=typeof Reflect&&Reflect;l||(l=function(e){return e}),u||(u=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),f=w(Array.prototype.pop),A=w(Array.prototype.push),g=w(Array.prototype.splice),_=w(String.prototype.toLowerCase),y=w(String.prototype.toString),E=w(String.prototype.match),b=w(String.prototype.replace),v=w(String.prototype.indexOf),T=w(String.prototype.trim),S=w(Object.prototype.hasOwnProperty),C=w(RegExp.prototype.test),I=(R=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return p(R,t)});var R;function w(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return d(e,t,r)}}function O(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_;o&&o(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(s(t)||(t[r]=e),o=e)}e[o]=!0}return e}function L(e){for(let t=0;t<e.length;t++){S(e,t)||(e[t]=null)}return e}function N(e){const t=c(null);for(const[n,o]of r(e)){S(e,n)&&(Array.isArray(o)?t[n]=L(o):o&&"object"==typeof o&&o.constructor===Object?t[n]=N(o):t[n]=o)}return t}function P(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=u(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=u(/<%[\w\W]*|[\w\W]*%>/gm),V=u(/\$\{[\w\W]*/gm),X=u(/^data-[\-\w.\u00B7-\uFFFF]+$/),K=u(/^aria-[\-\w]+$/),Z=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=u(/^(?:\w+script|data):/i),J=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=u(/^html$/i),$=u(/^[a-z][.\w]*(-[.\w]+)+$/i);var ee=Object.freeze({__proto__:null,ARIA_ATTR:K,ATTR_WHITESPACE:J,CUSTOM_ELEMENT:$,DATA_ATTR:X,DOCTYPE_NAME:Q,ERB_EXPR:W,IS_ALLOWED_URI:Z,IS_SCRIPT_OR_DATA:q,MUSTACHE_EXPR:z,TMPLIT_EXPR:V});const te=1,ne=3,re=7,oe=8,se=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!==se||!t.Element)return n.isSupported=!1,n;let{document:o}=t;const s=o,i=s.currentScript,{DocumentFragment:a,HTMLTemplateElement:u,Node:d,Element:p,NodeFilter:R,NamedNodeMap:w=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:L,DOMParser:z,trustedTypes:W}=t,V=p.prototype,X=P(V,"cloneNode"),K=P(V,"remove"),q=P(V,"nextSibling"),J=P(V,"childNodes"),$=P(V,"parentNode");if("function"==typeof u){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let ae,le="";const{implementation:ue,createNodeIterator:ce,createDocumentFragment:de,getElementsByTagName:pe}=o,{importNode:me}=s;let he={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof r&&"function"==typeof $&&ue&&void 0!==ue.createHTMLDocument;const{MUSTACHE_EXPR:fe,ERB_EXPR:Ae,TMPLIT_EXPR:ge,DATA_ATTR:_e,ARIA_ATTR:ye,IS_SCRIPT_OR_DATA:Ee,ATTR_WHITESPACE:be,CUSTOM_ELEMENT:ve}=ee;let{IS_ALLOWED_URI:Te}=ee,Se=null;const Ce=O({},[...x,...M,...k,...B,...U]);let Ie=null;const Re=O({},[...G,...F,...H,...Y]);let we=Object.seal(c(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}})),Oe=null,Le=null,Ne=!0,Pe=!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={},Ke=null;const Ze=O({},["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 qe=null;const Je=O({},["audio","video","img","source","image","track"]);let Qe=null;const $e=O({},["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 rt=nt,ot=!1,st=null;const it=O({},[et,tt,nt],y);let at=O({},["mi","mo","mn","ms","mtext"]),lt=O({},["annotation-xml"]);const ut=O({},["title","style","font","a","script"]);let ct=null;const dt=["application/xhtml+xml","text/html"];let pt=null,mt=null;const ht=o.createElement("form"),ft=function(e){return e instanceof RegExp||e instanceof Function},At=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!mt||mt!==e){if(e&&"object"==typeof e||(e={}),e=N(e),ct=-1===dt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,pt="application/xhtml+xml"===ct?y:_,Se=S(e,"ALLOWED_TAGS")?O({},e.ALLOWED_TAGS,pt):Ce,Ie=S(e,"ALLOWED_ATTR")?O({},e.ALLOWED_ATTR,pt):Re,st=S(e,"ALLOWED_NAMESPACES")?O({},e.ALLOWED_NAMESPACES,y):it,Qe=S(e,"ADD_URI_SAFE_ATTR")?O(N($e),e.ADD_URI_SAFE_ATTR,pt):$e,qe=S(e,"ADD_DATA_URI_TAGS")?O(N(Je),e.ADD_DATA_URI_TAGS,pt):Je,Ke=S(e,"FORBID_CONTENTS")?O({},e.FORBID_CONTENTS,pt):Ze,Oe=S(e,"FORBID_TAGS")?O({},e.FORBID_TAGS,pt):{},Le=S(e,"FORBID_ATTR")?O({},e.FORBID_ATTR,pt):{},Xe=!!S(e,"USE_PROFILES")&&e.USE_PROFILES,Ne=!1!==e.ALLOW_ARIA_ATTR,Pe=!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,Te=e.ALLOWED_URI_REGEXP||Z,rt=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&&ft(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(we.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ft(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&&(Pe=!1),Fe&&(Ge=!0),Xe&&(Se=O({},U),Ie=[],!0===Xe.html&&(O(Se,x),O(Ie,G)),!0===Xe.svg&&(O(Se,M),O(Ie,F),O(Ie,Y)),!0===Xe.svgFilters&&(O(Se,k),O(Ie,F),O(Ie,Y)),!0===Xe.mathMl&&(O(Se,B),O(Ie,H),O(Ie,Y))),e.ADD_TAGS&&(Se===Ce&&(Se=N(Se)),O(Se,e.ADD_TAGS,pt)),e.ADD_ATTR&&(Ie===Re&&(Ie=N(Ie)),O(Ie,e.ADD_ATTR,pt)),e.ADD_URI_SAFE_ATTR&&O(Qe,e.ADD_URI_SAFE_ATTR,pt),e.FORBID_CONTENTS&&(Ke===Ze&&(Ke=N(Ke)),O(Ke,e.FORBID_CONTENTS,pt)),We&&(Se["#text"]=!0),Be&&O(Se,["html","head","body"]),Se.table&&(O(Se,["tbody"]),delete Oe.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw I('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw I('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 r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(W,i)),null!==ae&&"string"==typeof le&&(le=ae.createHTML(""));l&&l(e),mt=e}},gt=O({},[...M,...k,...D]),_t=O({},[...B,...j]),yt=function(e){A(n.removed,{element:e});try{$(e).removeChild(e)}catch(t){K(e)}},Et=function(e,t){try{A(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){A(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Ge||Fe)try{yt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},bt=function(e){let t=null,n=null;if(Ue)e="<remove></remove>"+e;else{const t=E(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ct&&rt===nt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=ae?ae.createHTML(e):e;if(rt===nt)try{t=(new z).parseFromString(r,ct)}catch(e){}if(!t||!t.documentElement){t=ue.createDocument(rt,"template",null);try{t.documentElement.innerHTML=ot?le:r}catch(e){}}const s=t.body||t.documentElement;return e&&n&&s.insertBefore(o.createTextNode(n),s.childNodes[0]||null),rt===nt?pe.call(t,Be?"html":"body")[0]:Be?t.documentElement:s},vt=function(e){return ce.call(e.ownerDocument||e,e,R.SHOW_ELEMENT|R.SHOW_COMMENT|R.SHOW_TEXT|R.SHOW_PROCESSING_INSTRUCTION|R.SHOW_CDATA_SECTION,null)},Tt=function(e){return e instanceof L&&("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)},St=function(e){return"function"==typeof d&&e instanceof d};function Ct(e,t,r){m(e,e=>{e.call(n,t,r,mt)})}const It=function(e){let t=null;if(Ct(he.beforeSanitizeElements,e,null),Tt(e))return yt(e),!0;const r=pt(e.nodeName);if(Ct(he.uponSanitizeElement,e,{tagName:r,allowedTags:Se}),e.hasChildNodes()&&!St(e.firstElementChild)&&C(/<[/\w!]/g,e.innerHTML)&&C(/<[/\w!]/g,e.textContent))return yt(e),!0;if(e.nodeType===re)return yt(e),!0;if(De&&e.nodeType===oe&&C(/<[/\w]/g,e.data))return yt(e),!0;if(!Se[r]||Oe[r]){if(!Oe[r]&&wt(r)){if(we.tagNameCheck instanceof RegExp&&C(we.tagNameCheck,r))return!1;if(we.tagNameCheck instanceof Function&&we.tagNameCheck(r))return!1}if(We&&!Ke[r]){const t=$(e)||e.parentNode,n=J(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const o=X(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,q(e))}}}return yt(e),!0}return e instanceof p&&!function(e){let t=$(e);t&&t.tagName||(t={namespaceURI:rt,tagName:"template"});const n=_(e.tagName),r=_(t.tagName);return!!st[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===r||at[r]):Boolean(gt[n]):e.namespaceURI===et?t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&&lt[r]:Boolean(_t[n]):e.namespaceURI===nt?!(t.namespaceURI===tt&&!lt[r])&&!(t.namespaceURI===et&&!at[r])&&!_t[n]&&(ut[n]||!gt[n]):!("application/xhtml+xml"!==ct||!st[e.namespaceURI]))}(e)?(yt(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!C(/<\/no(script|embed|frames)/i,e.innerHTML)?(ke&&e.nodeType===ne&&(t=e.textContent,m([fe,Ae,ge],e=>{t=b(t,e," ")}),e.textContent!==t&&(A(n.removed,{element:e.cloneNode()}),e.textContent=t)),Ct(he.afterSanitizeElements,e,null),!1):(yt(e),!0)},Rt=function(e,t,n){if(Ye&&("id"===t||"name"===t)&&(n in o||n in ht))return!1;if(Pe&&!Le[t]&&C(_e,t));else if(Ne&&C(ye,t));else if(!Ie[t]||Le[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(Qe[t]);else if(C(Te,b(n,be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(n,"data:")||!qe[e]){if(xe&&!C(Ee,b(n,be,"")));else if(n)return!1}else;return!0},wt=function(e){return"annotation-xml"!==e&&E(e,ve)},Ot=function(e){Ct(he.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Tt(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ie,forceKeepAttr:void 0};let o=t.length;for(;o--;){const s=t[o],{name:i,namespaceURI:a,value:l}=s,u=pt(i);let c="value"===i?l:T(l);if(r.attrName=u,r.attrValue=c,r.keepAttr=!0,r.forceKeepAttr=void 0,Ct(he.uponSanitizeAttribute,e,r),c=r.attrValue,!ze||"id"!==u&&"name"!==u||(Et(i,e),c="user-content-"+c),De&&C(/((--!?|])>)|<\/(style|title)/i,c)){Et(i,e);continue}if(r.forceKeepAttr)continue;if(Et(i,e),!r.keepAttr)continue;if(!Me&&C(/\/>/i,c)){Et(i,e);continue}ke&&m([fe,Ae,ge],e=>{c=b(c,e," ")});const d=pt(e.nodeName);if(Rt(d,u,c)){if(ae&&"object"==typeof W&&"function"==typeof W.getAttributeType)if(a);else switch(W.getAttributeType(d,u)){case"TrustedHTML":c=ae.createHTML(c);break;case"TrustedScriptURL":c=ae.createScriptURL(c)}try{a?e.setAttributeNS(a,i,c):e.setAttribute(i,c),Tt(e)?yt(e):f(n.removed)}catch(e){}}}Ct(he.afterSanitizeAttributes,e,null)},Lt=function e(t){let n=null;const r=vt(t);for(Ct(he.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Ct(he.uponSanitizeShadowNode,n,null),It(n),Ot(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]:{},r=null,o=null,i=null,l=null;if(ot=!e,ot&&(e="\x3c!--\x3e"),"string"!=typeof e&&!St(e)){if("function"!=typeof e.toString)throw I("toString is not a function");if("string"!=typeof(e=e.toString()))throw I("dirty is not a string, aborting")}if(!n.isSupported)return e;if(je||At(t),n.removed=[],"string"==typeof e&&(Ve=!1),Ve){if(e.nodeName){const t=pt(e.nodeName);if(!Se[t]||Oe[t])throw I("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof d)r=bt("\x3c!----\x3e"),o=r.ownerDocument.importNode(e,!0),o.nodeType===te&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!Ge&&!ke&&!Be&&-1===e.indexOf("<"))return ae&&He?ae.createHTML(e):e;if(r=bt(e),!r)return Ge?null:He?le:""}r&&Ue&&yt(r.firstChild);const u=vt(Ve?e:r);for(;i=u.nextNode();)It(i),Ot(i),i.content instanceof a&&Lt(i.content);if(Ve)return e;if(Ge){if(Fe)for(l=de.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(Ie.shadowroot||Ie.shadowrootmode)&&(l=me.call(s,l,!0)),l}let c=Be?r.outerHTML:r.innerHTML;return Be&&Se["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&C(Q,r.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+c),ke&&m([fe,Ae,ge],e=>{c=b(c,e," ")}),ae&&He?ae.createHTML(c):c},n.setConfig=function(){At(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||At({});const r=pt(e),o=pt(t);return Rt(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&A(he[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=h(he[e],t);return-1===n?void 0:g(he[e],n,1)[0]}return f(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:()=>o});let r=!1;try{r="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}const o=r},"../../node_modules/engine.io-client/build/esm/contrib/parseqs.js":(e,t,n)=>{"use strict";function r(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function o(e){let t={},n=e.split("&");for(let e=0,r=n.length;e<r;e++){let r=n[e].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}n.d(t,{decode:()=>o,encode:()=>r})},"../../node_modules/engine.io-client/build/esm/contrib/parseuri.js":(e,t,n)=>{"use strict";n.d(t,{parse:()=>s});const r=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,o=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function s(e){if(e.length>2e3)throw"URI too long";const t=e,n=e.indexOf("["),s=e.indexOf("]");-1!=n&&-1!=s&&(e=e.substring(0,n)+e.substring(n,s).replace(/:/g,";")+e.substring(s,e.length));let i=r.exec(e||""),a={},l=14;for(;l--;)a[o[l]]=i[l]||"";return-1!=n&&-1!=s&&(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,r=t.replace(n,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||r.splice(0,1);"/"==t.slice(-1)&&r.splice(r.length-1,1);return r}(0,a.path),a.queryKey=function(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,r){t&&(n[t]=r)}),n}(0,a.query),a}},"../../node_modules/engine.io-client/build/esm/contrib/yeast.js":(e,t,n)=>{"use strict";n.d(t,{yeast:()=>c});const r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),o=64,s={};let i,a=0,l=0;function u(e){let t="";do{t=r[e%o]+t,e=Math.floor(e/o)}while(e>0);return t}function c(){const e=u(+new Date);return e!==i?(a=0,i=e):e+"."+u(a++)}for(;l<o;l++)s[r[l]]=l},"../../node_modules/engine.io-client/build/esm/globalThis.browser.js":(e,t,n)=>{"use strict";n.d(t,{globalThisShim:()=>r});const r="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:()=>r.Socket,installTimerFunctions:()=>o.installTimerFunctions,nextTick:()=>i.nextTick,parse:()=>s.parse});var r=n("../../node_modules/engine.io-client/build/esm/socket.js"),o=(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")),s=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");r.Socket.protocol},"../../node_modules/engine.io-client/build/esm/socket.js":(e,t,n)=>{"use strict";n.d(t,{Socket:()=>c});var r=n("../../node_modules/engine.io-client/build/esm/transports/index.js"),o=n("../../node_modules/engine.io-client/build/esm/util.js"),s=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"),u=n("../../node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js");class c extends a.Emitter{constructor(e,t={}){super(),this.binaryType=u.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,o.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,s.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 r.transports[e](n)}open(){let e;if(this.opts.rememberUpgrade&&c.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;c.priorWebsocketSuccess=!1;const r=()=>{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;c.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{n||"closed"!==this.readyState&&(u(),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 o(){n||(n=!0,u(),t.close(),t=null)}const s=e=>{const n=new Error("probe error: "+e);n.transport=t.name,o(),this.emitReserved("upgradeError",n)};function i(){s("transport closed")}function a(){s("socket closed")}function l(e){t&&e.name!==t.name&&o()}const u=()=>{t.removeListener("open",r),t.removeListener("error",s),t.removeListener("close",i),this.off("close",a),this.off("upgrading",l)};t.once("open",r),t.once("error",s),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",c.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,o.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,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const o={type:e,data:t,options:n};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),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){c.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 r=e.length;for(;n<r;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}c.protocol=l.protocol},"../../node_modules/engine.io-client/build/esm/transport.js":(e,t,n)=>{"use strict";n.d(t,{Transport:()=>l});var r=n("../../node_modules/engine.io-parser/build/esm/index.js"),o=n("../../node_modules/@socket.io/component-emitter/lib/esm/index.js"),s=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 o.Emitter{constructor(e){super(),this.writable=!1,(0,s.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,r.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 r=n("../../node_modules/engine.io-client/build/esm/transports/polling.js"),o=n("../../node_modules/engine.io-client/build/esm/transports/websocket.js"),s=n("../../node_modules/engine.io-client/build/esm/transports/webtransport.js");const i={websocket:o.WS,webtransport:s.WT,polling:r.Polling}},"../../node_modules/engine.io-client/build/esm/transports/polling.js":(e,t,n)=>{"use strict";n.d(t,{Polling:()=>p});var r=n("../../node_modules/engine.io-client/build/esm/transport.js"),o=n("../../node_modules/engine.io-client/build/esm/contrib/yeast.js"),s=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"),u=n("../../node_modules/engine.io-client/build/esm/globalThis.browser.js");function c(){}const d=null!=new i.XHR({xdomain:!1}).responseType;class p extends r.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,s.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,s.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,o.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=c,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 u.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:()=>s,defaultBinaryType:()=>a,nextTick:()=>o,usingBrowserWebSocket:()=>i});var r=n("../../node_modules/engine.io-client/build/esm/globalThis.browser.js");const o="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),s=r.globalThisShim.WebSocket||r.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:()=>u});var r=n("../../node_modules/engine.io-client/build/esm/transport.js"),o=n("../../node_modules/engine.io-client/build/esm/contrib/yeast.js"),s=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 u extends r.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,s.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],r=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){}r&&(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,o.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 r=n("../../node_modules/engine.io-client/build/esm/transport.js"),o=n("../../node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js"),s=n("../../node_modules/engine.io-parser/build/esm/index.js");class i extends r.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,s.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=(0,s.createPacketEncoderStream)();r.readable.pipeTo(e.writable),this.writer=r.writable.getWriter();const o=()=>{n.read().then(({done:e,value:t})=>{e||(this.onPacket(t),o())}).catch(e=>{})};o();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],r=t===e.length-1;this.writer.write(n).then(()=>{r&&(0,o.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:()=>s,createCookieJar:()=>i});var r=n("../../node_modules/engine.io-client/build/esm/contrib/has-cors.js"),o=n("../../node_modules/engine.io-client/build/esm/globalThis.browser.js");function s(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||r.hasCORS))return new XMLHttpRequest}catch(e){}if(!t)try{return new(o.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:()=>u,installTimerFunctions:()=>a,pick:()=>o});var r=n("../../node_modules/engine.io-client/build/esm/globalThis.browser.js");function o(e,...t){return t.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{})}const s=r.globalThisShim.setTimeout,i=r.globalThisShim.clearTimeout;function a(e,t){t.useNativeTimers?(e.setTimeoutFn=s.bind(r.globalThisShim),e.clearTimeoutFn=i.bind(r.globalThisShim)):(e.setTimeoutFn=r.globalThisShim.setTimeout.bind(r.globalThisShim),e.clearTimeoutFn=r.globalThisShim.clearTimeout.bind(r.globalThisShim))}const l=1.33;function u(e){return"string"==typeof e?function(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,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:()=>s,PACKET_TYPES:()=>r,PACKET_TYPES_REVERSE:()=>o});const r=Object.create(null);r.open="0",r.close="1",r.ping="2",r.pong="3",r.message="4",r.upgrade="5",r.noop="6";const o=Object.create(null);Object.keys(r).forEach(e=>{o[r[e]]=e});const s={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:()=>s});const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<64;e++)o[r.charCodeAt(e)]=e;const s=e=>{let t,n,r,s,i,a=.75*e.length,l=e.length,u=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);const c=new ArrayBuffer(a),d=new Uint8Array(c);for(t=0;t<l;t+=4)n=o[e.charCodeAt(t)],r=o[e.charCodeAt(t+1)],s=o[e.charCodeAt(t+2)],i=o[e.charCodeAt(t+3)],d[u++]=n<<2|r>>4,d[u++]=(15&r)<<4|s>>2,d[u++]=(3&s)<<6|63&i;return c}},"../../node_modules/engine.io-parser/build/esm/decodePacket.browser.js":(e,t,n)=>{"use strict";n.d(t,{decodePacket:()=>i});var r=n("../../node_modules/engine.io-parser/build/esm/commons.js"),o=n("../../node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js");const s="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 r.PACKET_TYPES_REVERSE[n]?e.length>1?{type:r.PACKET_TYPES_REVERSE[n],data:e.substring(1)}:{type:r.PACKET_TYPES_REVERSE[n]}:r.ERROR_PACKET},a=(e,t)=>{if(s){const n=(0,o.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 r=n("../../node_modules/engine.io-parser/build/esm/commons.js");const o="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),s="function"==typeof ArrayBuffer,i=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,a=({type:e,data:t},n,a)=>o&&t instanceof Blob?n?a(t):l(t,a):s&&(t instanceof ArrayBuffer||i(t))?n?a(t):l(new Blob([t]),a):a(r.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 u(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let c;function d(e,t){return o&&e.data instanceof Blob?e.data.arrayBuffer().then(u).then(t):s&&(e.data instanceof ArrayBuffer||i(e.data))?t(u(e.data)):void a(e,!1,e=>{c||(c=new TextEncoder),t(c.encode(e))})}},"../../node_modules/engine.io-parser/build/esm/index.js":(e,t,n)=>{"use strict";n.d(t,{createPacketDecoderStream:()=>m,createPacketEncoderStream:()=>u,decodePacket:()=>o.decodePacket,decodePayload:()=>l,encodePacket:()=>r.encodePacket,encodePayload:()=>a,protocol:()=>h});var r=n("../../node_modules/engine.io-parser/build/esm/encodePacket.browser.js"),o=n("../../node_modules/engine.io-parser/build/esm/decodePacket.browser.js"),s=n("../../node_modules/engine.io-parser/build/esm/commons.js");const i=String.fromCharCode(30),a=(e,t)=>{const n=e.length,o=new Array(n);let s=0;e.forEach((e,a)=>{(0,r.encodePacket)(e,!1,e=>{o[a]=e,++s===n&&t(o.join(i))})})},l=(e,t)=>{const n=e.split(i),r=[];for(let e=0;e<n.length;e++){const s=(0,o.decodePacket)(n[e],t);if(r.push(s),"error"===s.type)break}return r};function u(){return new TransformStream({transform(e,t){(0,r.encodePacketToBinary)(e,n=>{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const e=new DataView(o.buffer);e.setUint8(0,126),e.setUint16(1,r)}else{o=new Uint8Array(9);const e=new DataView(o.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(r))}e.data&&"string"!=typeof e.data&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let c;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 r=0;for(let o=0;o<t;o++)n[o]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function m(e,t){c||(c=new TextDecoder);const n=[];let r=0,i=-1,a=!1;return new TransformStream({transform(l,u){for(n.push(l);;){if(0===r){if(d(n)<1)break;const e=p(n,1);a=!(128&~e[0]),i=127&e[0],r=i<126?3:126===i?1:2}else if(1===r){if(d(n)<2)break;const e=p(n,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(2===r){if(d(n)<8)break;const e=p(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),o=t.getUint32(0);if(o>Math.pow(2,21)-1){u.enqueue(s.ERROR_PACKET);break}i=o*Math.pow(2,32)+t.getUint32(4),r=3}else{if(d(n)<i)break;const e=p(n,i);u.enqueue((0,o.decodePacket)(a?e:c.decode(e),t)),r=0}if(0===i||i>e){u.enqueue(s.ERROR_PACKET);break}}}})}const h=4},"../../node_modules/lib0/array.js":(e,t,n)=>{"use strict";n.d(t,{from:()=>r});n("../../node_modules/lib0/set.js");const r=Array.from;Array.isArray},"../../node_modules/lib0/map.js":(e,t,n)=>{"use strict";n.d(t,{create:()=>r,setIfUndefined:()=>o});const r=()=>new Map,o=(e,t,n)=>{let r=e.get(t);return void 0===r&&e.set(t,r=n()),r}},"../../node_modules/lib0/observable.js":(e,t,n)=>{"use strict";n.d(t,{Observable:()=>i});var r=n("../../node_modules/lib0/map.js"),o=n("../../node_modules/lib0/set.js"),s=n("../../node_modules/lib0/array.js");class i{constructor(){this._observers=r.create()}on(e,t){r.setIfUndefined(this._observers,e,o.create).add(t)}once(e,t){const n=(...r)=>{this.off(e,n),t(...r)};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 s.from((this._observers.get(e)||r.create()).values()).forEach(e=>e(...t))}destroy(){this._observers=r.create()}}},"../../node_modules/lib0/set.js":(e,t,n)=>{"use strict";n.d(t,{create:()=>r,from:()=>o});const r=()=>new Set,o=e=>new Set(e)},"../../node_modules/rrweb/dist/rrweb.js":(e,t,n)=>{"use strict";n.d(t,{EventType:()=>Se,record:()=>St});var r,o=Object.defineProperty,s=(e,t,n)=>(((e,t,n)=>{t in e?o(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 u(e){return e.nodeType===e.ELEMENT_NODE}function c(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 f(){return new h}function A({element:e,maskInputOptions:t,tagName:n,type:r,value:o,maskInputFn:s}){let i=o||"";const a=r&&g(r);return(t[n.toLowerCase()]||a&&t[a])&&(i=s?s(i,e):"*".repeat(i.length)),i}function g(e){return e.toLowerCase()}const _="__rrweb_original__";function y(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?g(t):null}function E(e,t){let n;try{n=new URL(e,t??window.location.href)}catch(e){return null}const r=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(null==r?void 0:r[1])??null}let b=1;const v=new RegExp("[^a-z0-9-_:]"),T=-2;function S(){return b++}let C,I;const R=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,w=/^(?:[a-z+]+:)?\/\//i,O=/^www\..*/i,L=/^(data:)([^,]*),(.*)/i;function N(e,t){return(e||"").replace(R,(e,n,r,o,s,i)=>{const a=r||s||i,l=n||o||"";if(!a)return e;if(w.test(a)||O.test(a))return`url(${l}${a}${l})`;if(L.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 u=t.split("/"),c=a.split("/");u.pop();for(const e of c)"."!==e&&(".."===e?u.pop():u.push(e));return`url(${l}${u.join("/")}${l})`})}const P=/^[^ \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,r){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?k(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const o=e.exec(t.substring(n));return o?(r=o[0],n+=r.length,r):""}const o=[];for(;r(x),!(n>=t.length);){let s=r(P);if(","===s.slice(-1))s=k(e,s.substring(0,s.length-1)),o.push(s);else{let r="";s=k(e,s);let i=!1;for(;;){const e=t.charAt(n);if(""===e){o.push((s+r).trim());break}if(i)")"===e&&(i=!1);else{if(","===e){n+=1,o.push((s+r).trim());break}"("===e&&(i=!0)}r+=e,n+=1}}}return o.join(", ")}(e,r):"style"===n?N(r,B(e)):"object"===t&&"data"===n?k(e,r):r:k(e,r):r}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 r=e.classList[n];if(t.test(r))return!0}return!!n&&G(e.parentNode,t,n)}function F(e,t,n,r){try{const o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("string"==typeof t){if(r){if(o.closest(`.${t}`))return!0}else if(o.classList.contains(t))return!0}else if(G(o,t,r))return!0;if(n)if(r){if(o.closest(n))return!0}else if(o.matches(n))return!0}catch(e){}return!1}function H(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:s,needsMask:i,inlineStylesheet:a,maskInputOptions:u={},maskTextFn:c,maskInputFn:d,dataURLOptions:m={},inlineImages:h,recordCanvas:f,keepIframeSrcFn:E,newlyAddedElement:b=!1}=t,T=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,r);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:T};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:r,blockSelector:o,inlineStylesheet:s,maskInputOptions:i={},maskInputFn:a,dataURLOptions:u={},inlineImages:c,recordCanvas:d,keepIframeSrcFn:m,newlyAddedElement:h=!1,rootId:f}=t,E=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 r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,r,o),b=function(e){if(e instanceof HTMLFormElement)return"form";const t=g(e.tagName);return v.test(t)?"div":t}(e);let T={};const S=e.attributes.length;for(let t=0;t<S;t++){const r=e.attributes[t];U(b,r.name,r.value)||(T[r.name]=j(n,b,g(r.name),r.value))}if("link"===b&&s){const t=Array.from(n.styleSheets).find(t=>t.href===e.href);let r=null;t&&(r=p(t)),r&&(delete T.rel,delete T.href,T._cssText=N(r,t.href))}if("style"===b&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=p(e.sheet);t&&(T._cssText=N(t,B(n)))}if("input"===b||"textarea"===b||"select"===b){const t=e.value,n=e.checked;"radio"!==T.type&&"checkbox"!==T.type&&"submit"!==T.type&&"button"!==T.type&&t?T.value=A({element:e,type:y(e),tagName:b,value:t,maskInputOptions:i,maskInputFn:a}):n&&(T.checked=n)}"option"===b&&(e.selected&&!i.select?T.selected=!0:delete T.selected);if("canvas"===b&&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 r=0;r<e.height;r+=50){const o=t.getImageData,s=_ in o?o[_]:o;if(new Uint32Array(s.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>0!==e))return!1}return!0})(e)||(T.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const t=e.toDataURL(u.type,u.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height;t!==r.toDataURL(u.type,u.quality)&&(T.rr_dataURL=t)}if("img"===b&&c){C||(C=n.createElement("canvas"),I=C.getContext("2d"));const t=e,r=t.currentSrc||t.getAttribute("src")||"<unknown-src>",o=t.crossOrigin,s=()=>{t.removeEventListener("load",s);try{C.width=t.naturalWidth,C.height=t.naturalHeight,I.drawImage(t,0,0),T.rr_dataURL=C.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?s():t.addEventListener("load",s));console.warn(`Cannot inline img src=${r}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(o?T.crossOrigin=o:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?s():t.addEventListener("load",s)}if("audio"===b||"video"===b){const t=T;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&&(T.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(T.rr_scrollTop=e.scrollTop));if(E){const{width:t,height:n}=e.getBoundingClientRect();T={class:T.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==b||m(T.src)||(e.contentDocument||(T.rr_src=T.src),delete T.src);let R;try{customElements.get(b)&&(R=!0)}catch(e){}return{type:l.Element,tagName:b,attributes:T,childNodes:[],isSVG:D(e)||void 0,needBlock:E,rootId:f,isCustom:R}}(e,{doc:n,blockClass:o,blockSelector:s,inlineStylesheet:a,maskInputOptions:u,maskInputFn:d,dataURLOptions:m,inlineImages:h,recordCanvas:f,keepIframeSrcFn:E,newlyAddedElement:b,rootId:T});case e.TEXT_NODE:return function(e,t){var n;const{needsMask:r,maskTextFn:o,rootId:s}=t,i=e.parentNode&&e.parentNode.tagName;let a=e.textContent;const u="STYLE"===i||void 0,c="SCRIPT"===i||void 0;if(u&&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=N(a,B(t.doc))}c&&(a="SCRIPT_PLACEHOLDER");!u&&!c&&a&&r&&(a=o?o(a,e.parentElement):a.replace(/[\S]/g,"*"));return{type:l.Text,textContent:a||"",isStyle:u,rootId:s}}(e,{doc:n,needsMask:i,maskTextFn:c,rootId:T});case e.CDATA_SECTION_NODE:return{type:l.CDATA,textContent:"",rootId:T};case e.COMMENT_NODE:return{type:l.Comment,textContent:e.textContent||"",rootId:T};default:return!1}}function Y(e){return null==e?"":e.toLowerCase()}function z(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:s,maskTextClass:i,maskTextSelector:a,skipChild:p=!1,inlineStylesheet:m=!0,maskInputOptions:h={},maskTextFn:f,maskInputFn:A,slimDOMOptions:g,dataURLOptions:_={},inlineImages:y=!1,recordCanvas:b=!1,onSerialize:v,onIframeLoad:C,iframeLoadTimeout:I=5e3,onStylesheetLoad:R,stylesheetLoadTimeout:w=5e3,keepIframeSrcFn:O=()=>!1,newlyAddedElement:L=!1}=t;let{needsMask:N}=t,{preserveWhiteSpace:P=!0}=t;if(!N&&e.childNodes){N=F(e,i,a,void 0===N)}const x=H(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,needsMask:N,inlineStylesheet:m,maskInputOptions:h,maskTextFn:f,maskInputFn:A,dataURLOptions:_,inlineImages:y,recordCanvas:b,keepIframeSrcFn:O,newlyAddedElement:L});if(!x)return console.warn(e,"not serialized"),null;let M;M=r.hasNode(e)?r.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"===E(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,g)&&(P||x.type!==l.Text||x.isStyle||x.textContent.replace(/^\s+|\s+$/gm,"").length)?S():T;const k=Object.assign(x,{id:M});if(r.add(e,k),M===T)return null;v&&v(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){g.headWhitespace&&k.type===l.Element&&"head"===k.tagName&&(P=!1);const t={doc:n,mirror:r,blockClass:o,blockSelector:s,needsMask:N,maskTextClass:i,maskTextSelector:a,skipChild:p,inlineStylesheet:m,maskInputOptions:h,maskTextFn:f,maskInputFn:A,slimDOMOptions:g,dataURLOptions:_,inlineImages:y,recordCanvas:b,preserveWhiteSpace:P,onSerialize:v,onIframeLoad:C,iframeLoadTimeout:I,onStylesheetLoad:R,stylesheetLoadTimeout:w,keepIframeSrcFn:O};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(u(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=z(n,t);r&&(d(e.shadowRoot)&&(r.isShadow=!0),k.childNodes.push(r))}}return e.parentNode&&c(e.parentNode)&&d(e.parentNode)&&(k.isShadow=!0),k.type===l.Element&&"iframe"===k.tagName&&function(e,t,n){const r=e.contentWindow;if(!r)return;let o,s=!1;try{o=r.document.readyState}catch(e){return}if("complete"!==o){const r=setTimeout(()=>{s||(t(),s=!0)},n);return void e.addEventListener("load",()=>{clearTimeout(r),s=!0,t()})}const i="about:blank";if(r.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:r,blockClass:o,blockSelector:s,needsMask:N,maskTextClass:i,maskTextSelector:a,skipChild:!1,inlineStylesheet:m,maskInputOptions:h,maskTextFn:f,maskInputFn:A,slimDOMOptions:g,dataURLOptions:_,inlineImages:y,recordCanvas:b,preserveWhiteSpace:P,onSerialize:v,onIframeLoad:C,iframeLoadTimeout:I,onStylesheetLoad:R,stylesheetLoadTimeout:w,keepIframeSrcFn:O});n&&C(e,n)}},I),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"===E(k.attributes.href))&&function(e,t,n){let r,o=!1;try{r=e.sheet}catch(e){return}if(r)return;const s=setTimeout(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{clearTimeout(s),o=!0,t()})}(e,()=>{if(R){const t=z(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,needsMask:N,maskTextClass:i,maskTextSelector:a,skipChild:!1,inlineStylesheet:m,maskInputOptions:h,maskTextFn:f,maskInputFn:A,slimDOMOptions:g,dataURLOptions:_,inlineImages:y,recordCanvas:b,preserveWhiteSpace:P,onSerialize:v,onIframeLoad:C,iframeLoadTimeout:I,onStylesheetLoad:R,stylesheetLoadTimeout:w,keepIframeSrcFn:O});t&&R(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 r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const K="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 Z={map:{},getId:()=>(console.error(K),-1),getNode:()=>(console.error(K),null),removeNodeFromMap(){console.error(K)},has:()=>(console.error(K),!1),reset(){console.error(K)}};function q(e,t,n={}){let r=null,o=0;return function(...s){const i=Date.now();o||!1!==n.leading||(o=i);const a=t-(i-o),l=this;a<=0||a>t?(r&&(clearTimeout(r),r=null),o=i,e.apply(l,s)):r||!1===n.trailing||(r=setTimeout(()=>{o=!1===n.leading?0:Date.now(),r=null,e.apply(l,s)},a))}}function J(e,t,n,r,o=window){const s=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){setTimeout(()=>{n.set.call(this,e)},0),s&&s.set&&s.set.call(this,e)}}),()=>J(e,t,s||{},!0)}function Q(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Z=new Proxy(Z,{get:(e,t,n)=>("map"===t&&console.error(K),Reflect.get(e,t,n))}));let $=Date.now;function ee(e){var t,n,r,o,s,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==(r=null==a?void 0:a.body)?void 0:r.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==a?void 0:a.documentElement.scrollTop)||(null==(s=null==(o=null==a?void 0:a.body)?void 0:o.parentElement)?void 0:s.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 re(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}function oe(e,t,n,r){if(!e)return!1;const o=re(e);if(!o)return!1;try{if("string"==typeof t){if(o.classList.contains(t))return!0;if(r&&null!==o.closest("."+t))return!0}else if(G(o,t,r))return!0}catch(e){}if(n){if(o.matches(n))return!0;if(r&&null!==o.closest(n))return!0}return!1}function se(e,t){return-1!==t.getId(e)}function ie(e,t,n){return!("TITLE"!==e.tagName||!n.headTitleMutations)||t.getId(e)===T}function ae(e,t){if(c(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 ue(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 ce(e){const t={},n=(e,n)=>{const r={value:e,parent:n,children:[]};return t[e.node.id]=r,r},r=[];for(const o of e){const{nextId:e,parentId:s}=o;if(e&&e in t){const s=t[e];if(s.parent){const e=s.parent.children.indexOf(s);s.parent.children.splice(e,0,n(o,s.parent))}else{const e=r.indexOf(s);r.splice(e,0,n(o,null))}continue}if(s in t){const e=t[s];e.children.push(n(o,e));continue}r.push(n(o,null))}return r}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,r;const o=null==(null==e.ownerDocument?void 0:n.defaultView)?void 0:r.frameElement;if(!o||o===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};const s=o.getBoundingClientRect(),i=he(o,t),a=s.height/o.clientHeight;return{x:s.x*i.relativeScale+i.x,y:s.y*i.relativeScale+i.y,relativeScale:a,absoluteScale:i.absoluteScale*a}}function fe(e){return Boolean(null==e?void 0:e.shadowRoot)}function Ae(e,t){const n=e[t[0]];return 1===t.length?n:Ae(n.cssRules[t[1]].cssRules,t.slice(2))}function ge(e){const t=[...e],n=t.pop();return{positions:t,index:n}}function _e(e){const t=new Set,n=[];for(let r=e.length;r--;){const o=e[r];t.has(o.id)||(n.push(o),t.add(o.id))}return n}/[1-9][0-9]{12}/.test(Date.now().toString())||($=()=>(new Date).getTime());class ye{constructor(){s(this,"id",1),s(this,"styleIDMap",new WeakMap),s(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 Ee(e){var t,n;let r=null;return(null==(n=null==(t=e.getRootNode)?void 0:t.call(e))?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(r=e.getRootNode().host),r}function be(e){let t,n=e;for(;t=Ee(n);)n=t;return n}function ve(e){const t=e.ownerDocument;if(!t)return!1;const n=be(e);return t.contains(n)}function Te(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||ve(e))}Symbol.toStringTag;var Se=(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))(Se||{}),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||{}),Ie=(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))(Ie||{}),Re=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Re||{}),we=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(we||{}),Oe=(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))(Oe||{});function Le(e){return"__ln"in e}class Ne{constructor(){s(this,"length",0),s(this,"head",null),s(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&&Le(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&&Le(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 Pe=(e,t)=>`${e}@${t}`;class xe{constructor(){s(this,"frozen",!1),s(this,"locked",!1),s(this,"texts",[]),s(this,"attributes",[]),s(this,"attributeMap",new WeakMap),s(this,"removes",[]),s(this,"mapRemoves",[]),s(this,"movedMap",{}),s(this,"addedSet",new Set),s(this,"movedSet",new Set),s(this,"droppedSet",new Set),s(this,"mutationCb"),s(this,"blockClass"),s(this,"blockSelector"),s(this,"maskTextClass"),s(this,"maskTextSelector"),s(this,"inlineStylesheet"),s(this,"maskInputOptions"),s(this,"maskTextFn"),s(this,"maskInputFn"),s(this,"keepIframeSrcFn"),s(this,"recordCanvas"),s(this,"inlineImages"),s(this,"slimDOMOptions"),s(this,"dataURLOptions"),s(this,"doc"),s(this,"mirror"),s(this,"iframeManager"),s(this,"stylesheetManager"),s(this,"shadowDomManager"),s(this,"canvasManager"),s(this,"processedNodeManager"),s(this,"unattachedDoc"),s(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),s(this,"emit",()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new Ne,r=e=>{let t=e,n=T;for(;n===T;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},o=o=>{if(!o.parentNode||!Te(o)||"TEXTAREA"===o.parentNode.tagName)return;const s=c(o.parentNode)?this.mirror.getId(Ee(o)):this.mirror.getId(o.parentNode),i=r(o);if(-1===s||-1===i)return n.addNode(o);const a=z(o,{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),fe(o)&&this.shadowDomManager.addShadowRoot(o.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:s,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)||o(e);for(const e of this.addedSet)De(this.droppedSet,e)||ke(this.removes,e,this.mirror)?De(this.movedSet,e)?o(e):this.droppedSet.add(e):o(e);let s=null;for(;n.length;){let e=null;if(s){const t=this.mirror.getId(s.value.parentNode),n=r(s.value);-1!==t&&-1!==n&&(e=s)}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===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}s=e.previous,n.removeNode(e.value),o(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),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).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))}),s(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("")}),s(this,"processMutation",e=>{if(!ie(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":{const t=e.target.textContent;oe(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,re(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){const e=y(t);r=A({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:e,value:r,maskInputFn:this.maskInputFn})}if(oe(e.target,this.blockClass,this.blockSelector,!1)||r===e.oldValue)return;let o=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(t.contentDocument)return;n="rr_src"}if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!U(t.tagName,n)&&(o.attributes[n]=j(this.doc,g(t.tagName),g(n),r),"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 r=t.style.getPropertyValue(e),s=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||s!==n.style.getPropertyPriority(e)?o.styleDiff[e]=""===s?r:[r,s]:o._unchangedStyles[e]=[r,s]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(o.styleDiff[e]=!1)}break}case"childList":if(oe(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),r=c(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);oe(e.target,this.blockClass,this.blockSelector,!1)||ie(t,this.mirror,this.slimDOMOptions)||!se(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[Pe(n,r)]?Me(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!c(e.target)||!d(e.target))||void 0})),this.mapRemoves.push(t))})}}),s(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[Pe(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);oe(e,this.blockClass,this.blockSelector,!1)||(e.childNodes.forEach(e=>this.genAdds(e)),fe(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 r=t.parentNode;for(;r;){const t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.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,r;const o=new xe;Ge.push(o),o.init(e);let s=window.MutationObserver||window.__rrMutationObserver;const i=null==(r=null==(n=null==window?void 0:window.Zone)?void 0:n.__symbol__)?void 0:r.call(n,"MutationObserver");i&&window[i]&&(s=window[i]);const a=new s(Ue(o.processMutations.bind(o)));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:r,blockSelector:o,sampling:s}){if(!1===s.mouseInteraction)return()=>{};const i=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,a=[];let l=null;return Object.keys(Ie).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==i[e]).forEach(s=>{let i=g(s);const u=(t=>s=>{const i=Fe(s);if(oe(i,r,o,!0))return;let a=null,u=t;if("pointerType"in s){switch(s.pointerType){case"mouse":a=Re.Mouse;break;case"touch":a=Re.Touch;break;case"pen":a=Re.Pen}a===Re.Touch?Ie[t]===Ie.MouseDown?u="TouchStart":Ie[t]===Ie.MouseUp&&(u="TouchEnd"):Re.Pen}else le(s)&&(a=Re.Touch);null!==a?(l=a,(u.startsWith("Touch")&&a===Re.Touch||u.startsWith("Mouse")&&a===Re.Mouse)&&(a=null)):Ie[t]===Ie.Click&&(a=l,l=null);const c=le(s)?s.changedTouches[0]:s;if(!c)return;const d=n.getId(i),{clientX:p,clientY:m}=c;Ue(e)({type:Ie[u],id:d,x:p,y:m,...null!==a&&{pointerType:a}})})(s);if(window.PointerEvent)switch(Ie[s]){case Ie.MouseDown:case Ie.MouseUp:i=i.replace("mouse","pointer");break;case Ie.TouchStart:case Ie.TouchEnd:return}a.push(X(i,u,t))}),Ue(()=>{a.forEach(e=>e())})}function ze({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,sampling:s}){return X("scroll",Ue(q(Ue(s=>{const i=Fe(s);if(!i||oe(i,r,o,!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})}),s.scroll||100)),t)}const We=["INPUT","TEXTAREA","SELECT"],Ve=new WeakMap;function Xe(e){return function(e,t){if(Je("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Je("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Je("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Je("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 Ke(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function Ze({mirror:e,stylesheetManager:t},n){var r,o,s;let i=null;i="#document"===n.nodeName?e.getId(n):e.getId(n.host);const a="#document"===n.nodeName?null==(r=n.defaultView)?void 0:r.Document:null==(s=null==(o=n.ownerDocument)?void 0:o.defaultView)?void 0:s.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 r=null==(n=l.set)?void 0:n.call(this,e);if(null!==i&&-1!==i)try{t.adoptStyleSheets(e,i)}catch(e){}return r}}),Ue(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})})):()=>{}}function qe(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;!function(e,t){const{mutationCb:n,mousemoveCb:r,mouseInteractionCb:o,scrollCb:s,viewportResizeCb:i,inputCb:a,mediaInteractionCb:l,styleSheetRuleCb:u,styleDeclarationCb:c,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),r(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),o(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),s(...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),u(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),c(...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&&(r=He(e,e.doc));const o=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const o="number"==typeof t.mousemove?t.mousemove:50,s="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let i,a=[];const l=q(Ue(t=>{const n=Date.now()-i;e(a.map(e=>(e.timeOffset-=n,e)),t),a=[],i=null}),s),u=Ue(q(Ue(e=>{const t=Fe(e),{clientX:n,clientY:o}=le(e)?e.changedTouches[0]:e;i||(i=$()),a.push({x:n,y:o,id:r.getId(t),timeOffset:$()-i}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?Ce.Drag:e instanceof MouseEvent?Ce.MouseMove:Ce.TouchMove)}),o,{trailing:!1})),c=[X("mousemove",u,n),X("touchmove",u,n),X("drag",u,n)];return Ue(()=>{c.forEach(e=>e())})}(e),s=Ye(e),i=ze(e),a=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return X("resize",Ue(q(Ue(()=>{const t=te(),o=ne();n===t&&r===o||(e({width:Number(o),height:Number(t)}),n=t,r=o)}),200)),t)}(e,{win:n}),l=function({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,ignoreClass:s,ignoreSelector:i,maskInputOptions:a,maskInputFn:l,sampling:u,userTriggeredOnInput:c}){function d(e){let n=Fe(e);const u=e.isTrusted,d=n&&n.tagName;if(n&&"OPTION"===d&&(n=n.parentElement),!n||!d||We.indexOf(d)<0||oe(n,r,o,!0))return;if(n.classList.contains(s)||i&&n.matches(i))return;let m=n.value,h=!1;const f=y(n)||"";"radio"===f||"checkbox"===f?h=n.checked:(a[d.toLowerCase()]||a[f])&&(m=A({element:n,maskInputOptions:a,tagName:d,type:f,value:m,maskInputFn:l})),p(n,c?{text:m,isChecked:h,userTriggered:u}:{text:m,isChecked:h});const g=n.name;"radio"===f&&g&&h&&t.querySelectorAll(`input[type="radio"][name="${g}"]`).forEach(e=>{if(e!==n){const t=e.value;p(e,c?{text:t,isChecked:!h,userTriggered:!1}:{text:t,isChecked:!h})}})}function p(t,r){const o=Ve.get(t);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){Ve.set(t,r);const o=n.getId(t);Ue(e)({...r,id:o})}}const m=("last"===u.input?["change"]:["input","change"]).map(e=>X(e,Ue(d),t)),h=t.defaultView;if(!h)return()=>{m.forEach(e=>e())};const f=h.Object.getOwnPropertyDescriptor(h.HTMLInputElement.prototype,"value"),g=[[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 f&&f.set&&m.push(...g.map(e=>J(e[0],e[1],{set(){Ue(d)({target:this,isTrusted:!1})}},!1,h))),Ue(()=>{m.forEach(e=>e())})}(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,mirror:r,sampling:o,doc:s}){const i=Ue(s=>q(Ue(o=>{const i=Fe(o);if(!i||oe(i,t,n,!0))return;const{currentTime:a,volume:l,muted:u,playbackRate:c,loop:d}=i;e({type:s,id:r.getId(i),currentTime:a,volume:l,muted:u,playbackRate:c,loop:d})}),o.media||500)),a=[X("play",i(Oe.Play),s),X("pause",i(Oe.Pause),s),X("seeked",i(Oe.Seeked),s),X("volumechange",i(Oe.VolumeChange),s),X("ratechange",i(Oe.RateChange),s)];return Ue(()=>{a.forEach(e=>e())})}(e);let c=()=>{},d=()=>{},p=()=>{},m=()=>{};e.recordDOM&&(c=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:Ue((r,o,s)=>{const[i,a]=s,{id:l,styleId:u}=Ke(o,t,n.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:i,index:a}]}),r.apply(o,s)})});const s=r.CSSStyleSheet.prototype.deleteRule;let i,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:Ue((r,o,s)=>{const[i]=s,{id:a,styleId:l}=Ke(o,t,n.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:i}]}),r.apply(o,s)})}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:Ue((r,o,s)=>{const[i]=s,{id:a,styleId:l}=Ke(o,t,n.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replace:i}),r.apply(o,s)})})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:Ue((r,o,s)=>{const[i]=s,{id:a,styleId:l}=Ke(o,t,n.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replaceSync:i}),r.apply(o,s)})}));const l={};Qe("CSSGroupingRule")?l.CSSGroupingRule=r.CSSGroupingRule:(Qe("CSSMediaRule")&&(l.CSSMediaRule=r.CSSMediaRule),Qe("CSSConditionRule")&&(l.CSSConditionRule=r.CSSConditionRule),Qe("CSSSupportsRule")&&(l.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(l).forEach(([r,o])=>{u[r]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(u[r].insertRule,{apply:Ue((r,o,s)=>{const[i,a]=s,{id:l,styleId:u}=Ke(o.parentStyleSheet,t,n.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:i,index:[...Xe(o),a||0]}]}),r.apply(o,s)})}),o.prototype.deleteRule=new Proxy(u[r].deleteRule,{apply:Ue((r,o,s)=>{const[i]=s,{id:a,styleId:l}=Ke(o.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:[...Xe(o),i]}]}),r.apply(o,s)})})}),Ue(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=s,i&&(r.CSSStyleSheet.prototype.replace=i),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule})})}(e,{win:n}),d=Ze(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const s=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:Ue((o,i,a)=>{var l;const[u,c,d]=a;if(n.has(u))return s.apply(i,[u,c,d]);const{id:p,styleId:m}=Ke(null==(l=i.parentRule)?void 0:l.parentStyleSheet,t,r.styleMirror);return(p&&-1!==p||m&&-1!==m)&&e({id:p,styleId:m,set:{property:u,value:c,priority:d},index:Xe(i.parentRule)}),o.apply(i,a)})});const i=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:Ue((o,s,a)=>{var l;const[u]=a;if(n.has(u))return i.apply(s,[u]);const{id:c,styleId:d}=Ke(null==(l=s.parentRule)?void 0:l.parentStyleSheet,t,r.styleMirror);return(c&&-1!==c||d&&-1!==d)&&e({id:c,styleId:d,remove:{property:u},index:Xe(s.parentRule)}),o.apply(s,a)})}),Ue(()=>{o.CSSStyleDeclaration.prototype.setProperty=s,o.CSSStyleDeclaration.prototype.removeProperty=i})}(e,{win:n}),e.collectFonts&&(m=function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,n){const r=new s(e,t,n);return o.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const i=Q(t.fonts,"add",function(t){return function(n){return setTimeout(Ue(()=>{const t=o.get(n);t&&(e(t),o.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=s}),r.push(i),Ue(()=>{r.forEach(e=>e())})}(e)));const h=function(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,selectionCb:s}=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 s=e.getRangeAt(t),{startContainer:i,startOffset:l,endContainer:u,endOffset:c}=s;oe(i,r,o,!0)||oe(u,r,o,!0)||a.push({start:n.getId(i),startOffset:l,end:n.getId(u),endOffset:c})}s({ranges:a})});return a(),X("selectionchange",a)}(e),f=function({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?Q(n.customElements,"define",function(e){return function(n,r,o){try{t({define:{name:n}})}catch(e){console.warn(`Custom element callback failed for ${n}`)}return e.apply(this,[n,r,o])}}):()=>{}}(e),g=[];for(const t of e.plugins)g.push(t.observer(t.callback,n,t.options));return Ue(()=>{Ge.forEach(e=>e.reset()),null==r||r.disconnect(),o(),s(),i(),a(),l(),u(),c(),d(),p(),m(),h(),f(),g.forEach(e=>e())})}function Je(e){return void 0!==window[e]}function Qe(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class $e{constructor(e){s(this,"iframeIdToRemoteIdMap",new WeakMap),s(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,n,r){const o=n||this.getIdToRemoteIdMap(e),s=r||this.getRemoteIdToIdMap(e);let i=o.get(t);return i||(i=this.generateIdFn(),o.set(t,i),s.set(i,t)),i}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const o=r.get(t);return o||-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){s(this,"iframes",new WeakMap),s(this,"crossOriginIframeMap",new WeakMap),s(this,"crossOriginIframeMirror",new $e(S)),s(this,"crossOriginIframeStyleMirror"),s(this,"crossOriginIframeRootIdMap",new WeakMap),s(this,"mirror"),s(this,"mutationCb"),s(this,"wrappedEmit"),s(this,"loadListener"),s(this,"stylesheetManager"),s(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new $e(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,r;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==(r=this.loadListener)||r.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 r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){var n;switch(t.type){case Se.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:Se.IncrementalSnapshot,data:{source:Ce.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Se.Meta:case Se.Load:case Se.DomContentLoaded:return!1;case Se.Plugin:return t;case Se.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Se.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,r){for(const o of r)(Array.isArray(t[o])||"number"==typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(n,t[o]):t[o]=e.getId(n,t[o]));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){s(this,"shadowDoms",new WeakSet),s(this,"mutationCb"),s(this,"scrollCb"),s(this,"bypassOptions"),s(this,"mirror"),s(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(Ze({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(Q(e.prototype,"attachShadow",function(e){return function(r){const o=e.call(this,r);return this.shadowRoot&&Te(this)&&n.addShadowRoot(this.shadowRoot,t),o}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rt="undefined"==typeof Uint8Array?[]:new Uint8Array(256),ot=0;ot<64;ot++)rt[nt.charCodeAt(ot)]=ot;const st=new Map;const it=(e,t,n)=>{if(!e||!ut(e,t)&&"object"!=typeof e)return;const r=function(e,t){let n=st.get(e);return n||(n=new Map,st.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name);let o=r.indexOf(e);return-1===o&&(o=r.length,r.push(e)),o};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),r=n.length,o="";for(t=0;t<r;t+=3)o+=nt[n[t]>>2],o+=nt[(3&n[t])<<4|n[t+1]>>4],o+=nt[(15&n[t+1])<<2|n[t+2]>>6],o+=nt[63&n[t+2]];return r%3==2?o=o.substring(0,o.length-1)+"=":r%3==1&&(o=o.substring(0,o.length-2)+"=="),o}(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(ut(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)),ut=(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 ct(e,t,n,r){const o=[];try{const s=Q(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(o,...s){if(!oe(this,t,n,!0)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(o);if("__context"in this||(this.__context=e),r&&["webgl","webgl2"].includes(e))if(s[0]&&"object"==typeof s[0]){const e=s[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[o,...s])}});o.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach(e=>e())}}function dt(e,t,n,r,o,s,i){const a=[],l=Object.getOwnPropertyNames(e);for(const s of l)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(s))try{if("function"!=typeof e[s])continue;const l=Q(e,s,function(e){return function(...a){const l=e.apply(this,a);if(it(l,i,this),"tagName"in this.canvas&&!oe(this.canvas,r,o,!0)){const e=lt(a,i,this),r={type:t,property:s,args:e};n(this.canvas,r)}return l}});a.push(l)}catch{const r=J(e,s,{set(e){n(this.canvas,{type:t,property:s,args:[e],setter:!0})}});a.push(r)}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 ft(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 At{constructor(e){s(this,"pendingCanvasMutations",new Map),s(this,"rafStamps",{latestId:0,invokeId:null}),s(this,"mirror"),s(this,"mutationCb"),s(this,"resetObservers"),s(this,"frozen",!1),s(this,"locked",!1),s(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:r,blockSelector:o,recordCanvas:i,dataURLOptions:a}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,i&&"all"===t&&this.initCanvasMutationObserver(n,r,o),i&&"number"==typeof t&&this.initCanvasFPSObserver(t,n,r,o,{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,r,o){const s=ct(t,n,r,!0),i=new Map,a=new ft;a.onmessage=e=>{const{id:t}=e.data;if(i.set(t,!1),!("base64"in e.data))return;const{base64:n,type:r,width:o,height:s}=e.data;this.mutationCb({id:t,type:we["2D"],commands:[{property:"clearRect",args:[0,0,o,s]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:r}]},0,0]}]})};const l=1e3/e;let u,c=0;const d=e=>{c&&e-c<l||(c=e,(()=>{const e=[];return t.document.querySelectorAll("canvas").forEach(t=>{oe(t,n,r,!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 r=await createImageBitmap(e);a.postMessage({id:n,bitmap:r,width:e.width,height:e.height,dataURLOptions:o.dataURLOptions},[r])})),u=requestAnimationFrame(d)};u=requestAnimationFrame(d),this.resetObservers=()=>{s(),cancelAnimationFrame(u)}}initCanvasMutationObserver(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const r=ct(e,t,n,!1),o=function(e,t,n,r){const o=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const i of s)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[i])continue;const s=Q(t.CanvasRenderingContext2D.prototype,i,function(o){return function(...s){return oe(this.canvas,n,r,!0)||setTimeout(()=>{const n=lt(s,t,this);e(this.canvas,{type:we["2D"],property:i,args:n})},0),o.apply(this,s)}});o.push(s)}catch{const n=J(t.CanvasRenderingContext2D.prototype,i,{set(t){e(this.canvas,{type:we["2D"],property:i,args:[t],setter:!0})}});o.push(n)}return()=>{o.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n),s=function(e,t,n,r){const o=[];return o.push(...dt(t.WebGLRenderingContext.prototype,we.WebGL,e,n,r,0,t)),void 0!==t.WebGL2RenderingContext&&o.push(...dt(t.WebGL2RenderingContext.prototype,we.WebGL2,e,n,r,0,t)),()=>{o.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n,this.mirror);this.resetObservers=()=>{r(),o(),s()}}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 r=n.map(e=>{const{type:t,...n}=e;return n}),{type:o}=n[0];this.mutationCb({id:t,type:o,commands:r}),this.pendingCanvasMutations.delete(e)}}class gt{constructor(e){s(this,"trackedLinkElements",new WeakSet),s(this,"mutationCb"),s(this,"adoptedStyleSheetCb"),s(this,"styleMirror",new ye),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:[]},r=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:m(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class _t{constructor(){s(this,"nodeMap",new WeakMap),s(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 yt,Et,bt,vt=!1;try{if(2!==Array.from([1],e=>2*e)[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=(null==(r=e.contentWindow)?void 0:r.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Tt=f();function St(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:s=null,ignoreClass:i="rr-ignore",ignoreSelector:a=null,maskTextClass:l="rr-mask",maskTextSelector:u=null,inlineStylesheet:c=!0,maskAllInputs:d,maskInputOptions:p,slimDOMOptions:m,maskInputFn:f,maskTextFn:A,hooks:g,packFn:_,sampling:y={},dataURLOptions:E={},mousemoveWait:b,recordDOM:v=!0,recordCanvas:T=!1,recordCrossOriginIframes:S=!1,recordAfter:C=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:I=!1,collectFonts:R=!1,inlineImages:w=!1,plugins:O,keepIframeSrcFn:L=()=>!1,ignoreCSSAttributes:N=new Set([]),errorHandler:P}=e;je=P;const x=!S||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!==b&&void 0===y.mousemove&&(y.mousemove=b),Tt.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;ue();let j=0;const U=e=>{for(const t of O||[])t.eventProcessor&&(e=t.eventProcessor(e));return _&&!M&&(e=_(e)),e};yt=(e,o)=>{var s;const i=e;if(i.timestamp=$(),!(null==(s=Ge[0])?void 0:s.isFrozen())||i.type===Se.FullSnapshot||i.type===Se.IncrementalSnapshot&&i.data.source===Ce.Mutation||Ge.forEach(e=>e.unfreeze()),x)null==t||t(U(i),o);else if(M){const e={type:"rrweb",event:U(i),origin:window.location.origin,isCheckout:o};window.parent.postMessage(e,"*")}if(i.type===Se.FullSnapshot)B=i,j=0;else if(i.type===Se.IncrementalSnapshot){if(i.data.source===Ce.Mutation&&i.data.isAttachIframe)return;j++;const e=r&&j>=r,t=n&&i.timestamp-B.timestamp>n;(e||t)&&Et(!0)}};const G=e=>{yt({type:Se.IncrementalSnapshot,data:{source:Ce.Mutation,...e}})},F=e=>yt({type:Se.IncrementalSnapshot,data:{source:Ce.Scroll,...e}}),H=e=>yt({type:Se.IncrementalSnapshot,data:{source:Ce.CanvasMutation,...e}}),Y=new gt({mutationCb:G,adoptedStyleSheetCb:e=>yt({type:Se.IncrementalSnapshot,data:{source:Ce.AdoptedStyleSheet,...e}})}),W=new et({mirror:Tt,mutationCb:G,stylesheetManager:Y,recordCrossOriginIframes:S,wrappedEmit:yt});for(const e of O||[])e.getMirror&&e.getMirror({nodeMirror:Tt,crossOriginIframeMirror:W.crossOriginIframeMirror,crossOriginIframeStyleMirror:W.crossOriginIframeStyleMirror});const V=new _t;bt=new At({recordCanvas:T,mutationCb:H,win:window,blockClass:o,blockSelector:s,mirror:Tt,sampling:y.canvas,dataURLOptions:E});const K=new tt({mutationCb:G,scrollCb:F,bypassOptions:{blockClass:o,blockSelector:s,maskTextClass:l,maskTextSelector:u,inlineStylesheet:c,maskInputOptions:k,dataURLOptions:E,maskTextFn:A,maskInputFn:f,recordCanvas:T,inlineImages:w,sampling:y,slimDOMOptions:D,iframeManager:W,stylesheetManager:Y,canvasManager:bt,keepIframeSrcFn:L,processedNodeManager:V},mirror:Tt});Et=(e=!1)=>{if(!v)return;yt({type:Se.Meta,data:{href:window.location.href,width:ne(),height:te()}},e),Y.reset(),K.init(),Ge.forEach(e=>e.lock());const t=function(e,t){const{mirror:n=new h,blockClass:r="rr-block",blockSelector:o=null,maskTextClass:s="rr-mask",maskTextSelector:i=null,inlineStylesheet:a=!0,inlineImages:l=!1,recordCanvas:u=!1,maskAllInputs:c=!1,maskTextFn:d,maskInputFn:p,slimDOM:m=!1,dataURLOptions:f,preserveWhiteSpace:A,onSerialize:g,onIframeLoad:_,iframeLoadTimeout:y,onStylesheetLoad:E,stylesheetLoadTimeout:b,keepIframeSrcFn:v=()=>!1}=t||{};return z(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,maskTextClass:s,maskTextSelector:i,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===c?{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===c?{password:!0}:c,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:f,inlineImages:l,recordCanvas:u,preserveWhiteSpace:A,onSerialize:g,onIframeLoad:_,iframeLoadTimeout:y,onStylesheetLoad:E,stylesheetLoadTimeout:b,keepIframeSrcFn:v,newlyAddedElement:!1})}(document,{mirror:Tt,blockClass:o,blockSelector:s,maskTextClass:l,maskTextSelector:u,inlineStylesheet:c,maskAllInputs:k,maskTextFn:A,slimDOM:D,dataURLOptions:E,recordCanvas:T,inlineImages:w,onSerialize:e=>{pe(e,Tt)&&W.addIframe(e),me(e,Tt)&&Y.trackLinkElement(e),fe(e)&&K.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{W.attachIframe(e,t),K.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Y.attachLinkElement(e,t)},keepIframeSrcFn:L});if(!t)return console.warn("Failed to snapshot the document");yt({type:Se.FullSnapshot,data:{node:t,initialOffset:ee(window)}},e),Ge.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Y.adoptStyleSheets(document.adoptedStyleSheets,Tt.getId(document))};try{const e=[],t=e=>{var t;return Ue(qe)({mutationCb:G,mousemoveCb:(e,t)=>yt({type:Se.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>yt({type:Se.IncrementalSnapshot,data:{source:Ce.MouseInteraction,...e}}),scrollCb:F,viewportResizeCb:e=>yt({type:Se.IncrementalSnapshot,data:{source:Ce.ViewportResize,...e}}),inputCb:e=>yt({type:Se.IncrementalSnapshot,data:{source:Ce.Input,...e}}),mediaInteractionCb:e=>yt({type:Se.IncrementalSnapshot,data:{source:Ce.MediaInteraction,...e}}),styleSheetRuleCb:e=>yt({type:Se.IncrementalSnapshot,data:{source:Ce.StyleSheetRule,...e}}),styleDeclarationCb:e=>yt({type:Se.IncrementalSnapshot,data:{source:Ce.StyleDeclaration,...e}}),canvasMutationCb:H,fontCb:e=>yt({type:Se.IncrementalSnapshot,data:{source:Ce.Font,...e}}),selectionCb:e=>{yt({type:Se.IncrementalSnapshot,data:{source:Ce.Selection,...e}})},customElementCb:e=>{yt({type:Se.IncrementalSnapshot,data:{source:Ce.CustomElement,...e}})},blockClass:o,ignoreClass:i,ignoreSelector:a,maskTextClass:l,maskTextSelector:u,maskInputOptions:k,inlineStylesheet:c,sampling:y,recordDOM:v,recordCanvas:T,inlineImages:w,userTriggeredOnInput:I,collectFonts:R,doc:e,maskInputFn:f,maskTextFn:A,keepIframeSrcFn:L,blockSelector:s,slimDOMOptions:D,dataURLOptions:E,mirror:Tt,iframeManager:W,stylesheetManager:Y,shadowDomManager:K,processedNodeManager:V,canvasManager:bt,ignoreCSSAttributes:N,plugins:(null==(t=null==O?void 0:O.filter(e=>e.observer))?void 0:t.map(e=>({observer:e.observer,options:e.options,callback:t=>yt({type:Se.Plugin,data:{plugin:e.name,payload:t}})})))||[]},g)};W.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});const n=()=>{Et(),e.push(t(document)),vt=!0};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(X("DOMContentLoaded",()=>{yt({type:Se.DomContentLoaded,data:{}}),"DOMContentLoaded"===C&&n()})),e.push(X("load",()=>{yt({type:Se.Load,data:{}}),"load"===C&&n()},window))),()=>{e.forEach(e=>e()),V.destroy(),vt=!1,je=void 0}}catch(e){console.warn(e)}}St.addCustomEvent=(e,t)=>{if(!vt)throw new Error("please add custom event after start recording");yt({type:Se.Custom,data:{tag:e,payload:t}})},St.freezePage=()=>{Ge.forEach(e=>e.freeze())},St.takeFullSnapshot=e=>{if(!vt)throw new Error("please take full snapshot after start recording");Et(e)},St.mirror=Tt;Object.defineProperty,Object.defineProperty;function Ct(e){return{all:e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(e){e(n)}),e.get("*")&&r.slice().map(function(e){e(t,n)})}}}Symbol.toStringTag;var It,Rt;(Rt=It||(It={}))[Rt.NotStarted=0]="NotStarted",Rt[Rt.Running=1]="Running",Rt[Rt.Stopped=2]="Stopped";const{addCustomEvent:wt}=St,{freezePage:Ot}=St},"../../node_modules/socket.io-client/build/esm/contrib/backo2.js":(e,t,n)=>{"use strict";function r(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:()=>r}),r.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)},r.prototype.reset=function(){this.attempts=0},r.prototype.setMin=function(e){this.ms=e},r.prototype.setMax=function(e){this.max=e},r.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 r=n("../../node_modules/socket.io-client/build/esm/url.js"),o=n("../../node_modules/socket.io-client/build/esm/manager.js"),s=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,r.url)(e,t.path||"/socket.io"),s=n.source,a=n.id,l=n.path,u=i[a]&&l in i[a].nsps;let c;return t.forceNew||t["force new connection"]||!1===t.multiplex||u?c=new o.Manager(s,t):(i[a]||(i[a]=new o.Manager(s,t)),c=i[a]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(a,{Manager:o.Manager,Socket:s.Socket,io:a,connect:a})},"../../node_modules/socket.io-client/build/esm/manager.js":(e,t,n)=>{"use strict";n.d(t,{Manager:()=>u});var r=n("../../node_modules/engine.io-client/build/esm/index.js"),o=n("../../node_modules/socket.io-client/build/esm/socket.js"),s=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 u 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,r.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 o=t.parser||s;this.encoder=new o.Encoder,this.decoder=new o.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 r.Socket(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const o=(0,i.on)(t,"open",function(){n.onopen(),e&&e()}),s=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},a=(0,i.on)(t,"error",s);if(!1!==this._timeout){const e=this._timeout,n=this.setTimeoutFn(()=>{o(),s(new Error("timeout")),t.close()},e);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}return this.subs.push(o),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,r.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 o.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 r(e,t,n){return e.on(t,n),function(){e.off(t,n)}}n.d(t,{on:()=>r})},"../../node_modules/socket.io-client/build/esm/socket.js":(e,t,n)=>{"use strict";n.d(t,{Socket:()=>a});var r=n("../../node_modules/socket.io-parser/build/esm/index.js"),o=n("../../node_modules/socket.io-client/build/esm/on.js"),s=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 s.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,o.on)(e,"open",this.onopen.bind(this)),(0,o.on)(e,"packet",this.onpacket.bind(this)),(0,o.on)(e,"error",this.onerror.bind(this)),(0,o.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:r.PacketType.EVENT,data:t,options:{}};if(n.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++,r=t.pop();this._registerAckCallback(e,r),n.id=e}const o=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!o||!this.connected)||(this.connected?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(e,t){var n;const r=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0===r)return void(this.acks[e]=t);const o=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"))},r),s=(...e)=>{this.io.clearTimeoutFn(o),t.apply(this,e)};s.withError=!0,this.acks[e]=s}emitWithAck(e,...t){return new Promise((n,r)=>{const o=(e,t)=>e?r(e):n(t);o.withError=!0,t.push(o),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,...r)=>{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,...r)),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:r.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 r.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 r.PacketType.EVENT:case r.PacketType.BINARY_EVENT:this.onevent(e);break;case r.PacketType.ACK:case r.PacketType.BINARY_ACK:this.onack(e);break;case r.PacketType.DISCONNECT:this.ondisconnect();break;case r.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(...o){n||(n=!0,t.packet({type:r.PacketType.ACK,id:e,data:o}))}}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:r.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:()=>o});var r=n("../../node_modules/engine.io-client/build/esm/index.js");function o(e,t="",n){let o=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),o=(0,r.parse)(e)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";const s=-1!==o.host.indexOf(":")?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+s+":"+o.port+t,o.href=o.protocol+"://"+s+(n&&n.port===o.port?"":":"+o.port),o}},"../../node_modules/socket.io-parser/build/esm/binary.js":(e,t,n)=>{"use strict";n.d(t,{deconstructPacket:()=>o,reconstructPacket:()=>i});var r=n("../../node_modules/socket.io-parser/build/esm/is-binary.js");function o(e){const t=[],n=e.data,r=e;return r.data=s(n,t),r.attachments=t.length,{packet:r,buffers:t}}function s(e,t){if(!e)return e;if((0,r.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 r=0;r<e.length;r++)n[r]=s(e[r],t);return n}if("object"==typeof e&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=s(e[r],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:()=>u,PacketType:()=>l,protocol:()=>a});var r=n("../../node_modules/@socket.io/component-emitter/lib/esm/index.js"),o=n("../../node_modules/socket.io-parser/build/esm/binary.js"),s=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 u{constructor(e){this.replacer=e}encode(e){return e.type!==l.EVENT&&e.type!==l.ACK||!(0,s.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,o.deconstructPacket)(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}}function c(e){return"[object Object]"===Object.prototype.toString.call(e)}class d extends r.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,s.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 r=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const o=e.substring(r,t);if(o!=Number(o)||"-"!==e.charAt(t))throw new Error("Illegal attachments");n.attachments=Number(o)}if("/"===e.charAt(t+1)){const r=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}n.nsp=e.substring(r,t)}else n.nsp="/";const r=e.charAt(t+1);if(""!==r&&Number(r)==r){const r=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(r,t+1))}if(e.charAt(++t)){const r=this.tryParse(e.substr(t));if(!d.isPayloadValid(n.type,r))throw new Error("invalid payload");n.data=r}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 c(t);case l.DISCONNECT:return void 0===t;case l.CONNECT_ERROR:return"string"==typeof t||c(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,o.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:()=>u,isBinary:()=>l});const r="function"==typeof ArrayBuffer,o=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,s=Object.prototype.toString,i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===s.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===s.call(File);function l(e){return r&&(e instanceof ArrayBuffer||o(e))||i&&e instanceof Blob||a&&e instanceof File}function u(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(u(e[t]))return!0;return!1}if(l(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return u(e.toJSON(),!0);for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&u(e[t]))return!0;return!1}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var s=t[r]={id:r,loaded:!1,exports:{}};return e[r](s,s.exports,n),s.loaded=!0,s.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 r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},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 r={};return(()=>{"use strict";n.r(r),n.d(r,{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_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_OTEL_DEFAULT_LOGS_EXPORTER_URL:()=>s.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_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,SessionRecorderHttpTraceExporterBrowser:()=>s.SessionRecorderHttpTraceExporterBrowser,SessionRecorderIdGenerator:()=>s.SessionRecorderIdGenerator,SessionRecorderJsonTraceSerializer:()=>s.SessionRecorderJsonTraceSerializer,SessionRecorderSdk:()=>s.SessionRecorderSdk,SessionRecorderTraceIdRatioBasedSampler:()=>s.SessionRecorderTraceIdRatioBasedSampler,SessionType:()=>s.SessionType,default:()=>a,recorderEventBus:()=>t.recorderEventBus});n("./src/patch/index.ts");var e=n("./src/listeners.ts"),t=n("./src/eventBus.ts"),o=n("./src/sessionRecorder.ts"),s=n("./node_modules/@multiplayer-app/session-recorder-common/dist/esm/index-browser.js");const i=new o.SessionRecorder;"undefined"!=typeof window&&(window.__SESSION_RECORDER_LOADED=!0,window.SessionRecorder=i,(0,e.setupListeners)(i));const a=i})(),r})());
3
3
  //# sourceMappingURL=index.js.map