https://apiems.betfair.es#inline
active
INLINE
checked 3 hours, 13 minutes ago
analysis:
not run (content not fetched)
secrets (17)
internal_url
OTEL_EXPORTER_ZIPKIN_ENDPOINT: "http://localhost:9411/api/v2/spans",
L1385
0.7
trufflehog
context around line 1385:
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: d.INFO,
OTEL_NO_PATCH_MODULES: [],
type: internal_url
value: OTEL_EXPORTER_ZIPKIN_ENDPOINT: "http://localhost:9411/api/v2/spans",
line: 1385
confidence: 0.7
detector: sens_url_87d940c2
discovered: 3 hours, 15 minutes ago
internal_url
OTEL_EXPORTER_ZIPKIN_ENDPOINT: "http://localhost:9411/api/v2/spans",
L7026
0.7
trufflehog
context around line 7026:
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: d.INFO,
OTEL_NO_PATCH_MODULES: [],
type: internal_url
value: OTEL_EXPORTER_ZIPKIN_ENDPOINT: "http://localhost:9411/api/v2/spans",
line: 7026
confidence: 0.7
detector: sens_url_87d940c2
discovered: 3 hours, 15 minutes ago
internal_url
OTEL_EXPORTER_ZIPKIN_ENDPOINT: "http://localhost:9411/api/v2/spans",
L7212
0.7
trufflehog
context around line 7212:
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: d.INFO,
OTEL_NO_PATCH_MODULES: [],
type: internal_url
value: OTEL_EXPORTER_ZIPKIN_ENDPOINT: "http://localhost:9411/api/v2/spans",
line: 7212
confidence: 0.7
detector: sens_url_87d940c2
discovered: 3 hours, 15 minutes ago
internal_url
Pl = "http://localhost:4318/" + Al;
L7938
0.7
trufflehog
context around line 7938:
}(),
Al = "v1/traces",
Pl = "http://localhost:4318/" + Al;
function Cl() {
type: internal_url
value: Pl = "http://localhost:4318/" + Al;
line: 7938
confidence: 0.7
detector: sens_url_731cd683
discovered: 3 hours, 15 minutes ago
extracted_domain
smd.betfair
L0
0.6
trufflehog
context around line 0:
Found in https://apiems.betfair.es#inline
type: extracted_domain
value: smd.betfair
line: 0
confidence: 0.6
detector: domain_cf3fe6b1
discovered: 3 hours, 15 minutes ago
extracted_domain
mcasino.betfair
L0
0.6
trufflehog
context around line 0:
Found in https://apiems.betfair.es#inline
type: extracted_domain
value: mcasino.betfair
line: 0
confidence: 0.6
detector: domain_9a116efc
discovered: 3 hours, 15 minutes ago
extracted_domain
wss.betfair.com
L0
0.6
trufflehog
context around line 0:
Found in https://apiems.betfair.es#inline
type: extracted_domain
value: wss.betfair.com
line: 0
confidence: 0.6
detector: domain_8b95714c
discovered: 3 hours, 15 minutes ago
extracted_domain
dcc.betfair.com
L0
0.6
trufflehog
context around line 0:
Found in https://apiems.betfair.es#inline
type: extracted_domain
value: dcc.betfair.com
line: 0
confidence: 0.6
detector: domain_9496e439
discovered: 3 hours, 15 minutes ago
extracted_domain
d1mj578wat5n4o.cloudfront.net
L0
0.6
trufflehog
context around line 0:
Found in https://apiems.betfair.es#inline
type: extracted_domain
value: d1mj578wat5n4o.cloudfront.net
line: 0
confidence: 0.6
detector: domain_4b43b21f
discovered: 3 hours, 15 minutes ago
extracted_domain
d35vb5cccm4xzp.cloudfront.net
L0
0.6
trufflehog
context around line 0:
Found in https://apiems.betfair.es#inline
type: extracted_domain
value: d35vb5cccm4xzp.cloudfront.net
line: 0
confidence: 0.6
detector: domain_ce71f83a
discovered: 3 hours, 15 minutes ago
extracted_domain
opentelemetry.js.api
L0
0.6
trufflehog
context around line 0:
Found in https://apiems.betfair.es#inline
type: extracted_domain
value: opentelemetry.js.api
line: 0
confidence: 0.6
detector: domain_1fa3d1e4
discovered: 3 hours, 15 minutes ago
extracted_domain
messaging.socket.io
L0
0.6
trufflehog
context around line 0:
Found in https://apiems.betfair.es#inline
type: extracted_domain
value: messaging.socket.io
line: 0
confidence: 0.6
detector: domain_d7c3ed0e
discovered: 3 hours, 15 minutes ago
extracted_domain
mcasino.betfair.com.au
L0
0.6
trufflehog
context around line 0:
Found in https://apiems.betfair.es#inline
type: extracted_domain
value: mcasino.betfair.com.au
line: 0
confidence: 0.6
detector: domain_b483c89d
discovered: 3 hours, 15 minutes ago
extracted_domain
messaging.betfair
L0
0.6
trufflehog
context around line 0:
Found in https://apiems.betfair.es#inline
type: extracted_domain
value: messaging.betfair
line: 0
confidence: 0.6
detector: domain_fb93f2d7
discovered: 3 hours, 15 minutes ago
extracted_domain
privacyportal-uk.onetrust.com
L0
0.6
trufflehog
context around line 0:
Found in https://apiems.betfair.es#inline
type: extracted_domain
value: privacyportal-uk.onetrust.com
line: 0
confidence: 0.6
detector: domain_291ec19e
discovered: 3 hours, 15 minutes ago
extracted_domain
api.boxever.com
L0
0.6
trufflehog
context around line 0:
Found in https://apiems.betfair.es#inline
type: extracted_domain
value: api.boxever.com
line: 0
confidence: 0.6
detector: domain_a061e929
discovered: 3 hours, 15 minutes ago
extracted_domain
io.opentelemetry.js.api
L0
0.6
trufflehog
context around line 0:
Found in https://apiems.betfair.es#inline
type: extracted_domain
value: io.opentelemetry.js.api
line: 0
confidence: 0.6
detector: domain_31f50d6b
discovered: 3 hours, 15 minutes ago
api endpoints (64)
| POST | https://dcc.betfair.com/consent | 0.8 | jsluice |
| GET | //movableink.betfair.com/p/js/1.js | 0.8 | jsluice |
| POST | https://dcc.betfair.com/gtm | 0.8 | jsluice |
| GET | //*[@id= | 0.8 | jsluice |
| GET | https://rum-ingest. | 0.8 | jsluice |
| GET | //ie2ems.cdnppb.net/resources/ems/ | 0.8 | jsluice |
| GET | /CustomerBehaviourService/v1.0/ | 0.8 | jsluice |
| GET | /api/ems/bet-recommendations/v2 | 0.8 | jsluice |
| GET | /api/ems/capi-content/v1 | 0.8 | jsluice |
| GET | /api/ems/cashout-quotes/v1 | 0.8 | jsluice |
| GET | /api/ems/competitions-events-sportsbook/v0 | 0.8 | jsluice |
| GET | /api/ems/competitions-events/v0 | 0.8 | jsluice |
| GET | /api/ems/country-events/v0 | 0.8 | jsluice |
| GET | /api/ems/coupon/v1 | 0.8 | jsluice |
| GET | /api/ems/homepage/v4 | 0.8 | jsluice |
| GET | /api/ems/inplay/v1 | 0.8 | jsluice |
| GET | /api/ems/market-data-aggregator/v0 | 0.8 | jsluice |
| GET | /api/ems/market-timeform/v1 | 0.8 | jsluice |
| GET | /api/ems/meeting-races/v0 | 0.8 | jsluice |
| GET | /api/ems/more-avb/v0 | 0.8 | jsluice |
| GET | /api/ems/more-from-betfair/v1 | 0.8 | jsluice |
| GET | /api/ems/more-racing/v2 | 0.8 | jsluice |
| GET | /api/ems/multi-market-page/v1 | 0.8 | jsluice |
| GET | /api/ems/next-race/v2 | 0.8 | jsluice |
| GET | /api/ems/popular-bets/v0 | 0.8 | jsluice |
| GET | /api/ems/racing-info/v1 | 0.8 | jsluice |
| GET | /api/ems/time-based-navigation/v1 | 0.8 | jsluice |
| GET | /api/ems/top-competitions/v1 | 0.8 | jsluice |
| GET | /api/ems/user-context/v2 | 0.8 | jsluice |
| GET | /api/ems/where-money/v1 | 0.8 | jsluice |
| GET | /api/ems/promotions/v3 | 0.8 | jsluice |
| GET | /api/ems/rewards/v1 | 0.8 | jsluice |
| GET | /fanout/ | 0.8 | jsluice |
| GET | /www/sports/exchange/transactional/v1.0 | 0.8 | jsluice |
| GET | /cashout-service/transactional/v1.0 | 0.8 | jsluice |
| GET | /www/sports/fixedodds/transactional/v1 | 0.8 | jsluice |
| GET | /usp-preferences/v1.0/ | 0.8 | jsluice |
| GET | /myaccountx/rest | 0.8 | jsluice |
| GET | /www/sports/navigation/v2 | 0.8 | jsluice |
| GET | /www/sports/exchange/readonly/v1.0 | 0.8 | jsluice |
| GET | /cashout-service/readonly/v1.0 | 0.8 | jsluice |
| GET | /www/sports/navigation/facet/v1.0 | 0.8 | jsluice |
| GET | /www/sb/sports/navigation/facet/v1.0 | 0.8 | jsluice |
| GET | /www/sports/exchange/reporting/live/v1.0 | 0.8 | jsluice |
| GET | /NotificationSubscription/v1 | 0.8 | jsluice |
| GET | /inplayservice/v1.1 | 0.8 | jsluice |
| GET | /Capi/v2/configuration | 0.8 | jsluice |
| GET | /wallet-service/v3.0 | 0.8 | jsluice |
| GET | /KHOJQ/v1.0/ | 0.8 | jsluice |
| GET | /rest/v2/ | 0.8 | jsluice |
| GET | /web/api/crossSellConfig/v2 | 0.8 | jsluice |
| GET | /cashout-exchange/v1.0 | 0.8 | jsluice |
| GET | /VideoQualificationAPI/v1.8/qualiState | 0.8 | jsluice |
| GET | /www/sports/fixedodds/readonly/v1 | 0.8 | jsluice |
| GET | /SeoMetadata/v1/ | 0.8 | jsluice |
| GET | https://messaging.betfair.*/** | 0.8 | jsluice |
| GET | https://mcasino.betfair.com.au/web/api/crossSellConfig/** | 0.8 | jsluice |
| GET | https://mcasino.betfair.*/web/api/crossSellConfig/** | 0.8 | jsluice |
| GET | https://d1mj578wat5n4o.cloudfront.net/boxever-1.4.8.min.js | 0.8 | jsluice |
| GET | https://api.boxever.com/v1.2 | 0.8 | jsluice |
| GET | https://d35vb5cccm4xzp.cloudfront.net | 0.8 | jsluice |
| GET | https://dcc.betfair.com/gtm | 0.8 | regex |
| GET | https://dcc.betfair.com/consent | 0.8 | regex |
| GET | https://privacyportal-uk.onetrust.com/request/v1/consentreceipts | 0.8 | regex |
change history (1)
2026-03-31 23:24
3 hours, 13 minutes ago
prev: 80efe05bfc8…
curr: b1a5cd85382…
var SplunkRum=function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n);if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==t(n)?n:n+""}function n(t,n,r){return(n=e(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}"undefined"==typeof NodeList||NodeList.prototype[Symbol.iterator]||(NodeList.prototype[Symbol.iterator]=[][Symbol.iterator]),"undefined"==typeof HTMLCollection||HTMLCollection.prototype[Symbol.iterator]||(HTMLCollection.prototype[Symbol.iterator]=[][Symbol.iterator]);var r="object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis:"object"===("undefined"==typeof self?"undefined":t(self))?self:"object"===("undefined"==typeof window?"undefined":t(window))?window:"object"===("undefined"==typeof global?"undefined":t(global))?global:{},o="1.9.0",i=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;var a=function(t){var e=new Set([t]),n=new Set,r=t.match(i);if(!r)return function(){return!1};var o=+r[1],a=+r[2],s=+r[3];if(null!=r[4])return function(e){return e===t};function u(t){return n.add(t),!1}function c(t){return e.add(t),!0}return function(t){if(e.has(t))return!0;if(n.has(t))return!1;var r=t.match(i);if(!r)return u(t);var l=+r[1],f=+r[2],p=+r[3];return null!=r[4]||o!==l?u(t):0===o?a===f&&s<=p?c(t):u(t):a<=f?c(t):u(t)}}(o),s=o.split(".")[0],u=Symbol.for("opentelemetry.js.api."+s),c=r;function l(t,e,n,r){var i;void 0===r&&(r=!1);var a=c[u]=null!==(i=c[u])&&void 0!==i?i:{version:o};if(!r&&a[t]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return n.error(s.stack||s.message),!1}if(a.version!==o){s=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+t+" does not match previously registered API v"+o);return n.error(s.stack||s.message),!1}return a[t]=e,n.debug("@opentelemetry/api: Registered a global for "+t+" v"+o+"."),!0}function f(t){var e,n,r=null===(e=c[u])||void 0===e?void 0:e.version;if(r&&a(r))return null===(n=c[u])||void 0===n?void 0:n[t]}function p(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+o+".");var n=c[u];n&&delete n[t]}var d,_=window&&window.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},h=window&&window.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},y=window&&window.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o=r?o.bind(e):function(){}}return td.ALL&&(t=d.ALL),e=e||{},{error:n("error",d.ERROR),warn:n("warn",d.WARN),info:n("info",d.INFO),debug:n("debug",d.DEBUG),verbose:n("verbose",d.VERBOSE)}}(null!==(o=n.logLevel)&&void 0!==o?o:d.INFO,t);if(s&&!n.suppressOverrideMessage){var c=null!==(i=(new Error).stack)&&void 0!==i?i:"";s.warn("Current logger will be overwritten from "+c),u.warn("Current logger will overwrite one already registered from "+c)}return l("diag",u,e,!0)},e.disable=function(){p("diag",e)},e.createComponentLogger=function(t){return new E(t)},e.verbose=t("verbose"),e.debug=t("debug"),e.info=t("info"),e.warn=t("warn"),e.error=t("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}(),g=window&&window.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},O=window&&window.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},S=function(){function t(t){this._entries=t?new Map(t):new Map}return t.prototype.getEntry=function(t){var e=this._entries.get(t);if(e)return Object.assign({},e)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map((function(t){var e=g(t,2);return[e[0],e[1]]}))},t.prototype.setEntry=function(e,n){var r=new t(this._entries);return r._entries.set(e,n),r},t.prototype.removeEntry=function(e){var n=new t(this._entries);return n._entries.delete(e),n},t.prototype.removeEntries=function(){for(var e,n,r=[],o=0;o0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},ot=window&&window.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},st=window&&window.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o512||(this._internalState=t.split(",").reverse().reduce((function(t,e){var n=e.trim(),r=n.indexOf("=");if(-1!==r){var o=n.slice(0,r),i=n.slice(r+1,e.length);(function(t){return Bt.test(t)})(o)&&function(t){return jt.test(t)&&!Xt.test(t)}(i)&&t.set(o,i)}return t}),new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}();var Gt=lt.getInstance(),Ft=m.instance(),Vt=new(function(){function t(){}return t.prototype.getMeter=function(t,e,n){return K},t}()),zt="metrics",Kt=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(t){return l(zt,t,m.instance())},t.prototype.getMeterProvider=function(){return f(zt)||Vt},t.prototype.getMeter=function(t,e,n){return this.getMeterProvider().getMeter(t,e,n)},t.prototype.disable=function(){p(zt,m.instance())},t}().getInstance(),qt=function(){function t(){}return t.prototype.inject=function(t,e){},t.prototype.extract=function(t,e){return t},t.prototype.fields=function(){return[]},t}(),Wt=A("OpenTelemetry Baggage Key");function Zt(t){return t.getValue(Wt)||void 0}function Yt(){return Zt(lt.getInstance().active())}function Jt(t,e){return t.setValue(Wt,e)}function Qt(t){return t.deleteValue(Wt)}var $t="propagation",te=new qt,ee=function(){function t(){this.createBaggage=R,this.getBaggage=Zt,this.getActiveBaggage=Yt,this.setBaggage=Jt,this.deleteBaggage=Qt}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(t){return l($t,t,m.instance())},t.prototype.inject=function(t,e,n){return void 0===n&&(n=nt),this._getGlobalPropagator().inject(t,e,n)},t.prototype.extract=function(t,e,n){return void 0===n&&(n=et),this._getGlobalPropagator().extract(t,e,n)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){p($t,m.instance())},t.prototype._getGlobalPropagator=function(){return f($t)||te},t}(),ne=ee.getInstance(),re="trace",oe=function(){function t(){this._proxyTracerProvider=new xt,this.wrapSpanContext=Lt,this.isSpanContextValid=Rt,this.deleteSpan=yt,this.getSpan=Et,this.getActiveSpan=vt,this.getSpanContext=gt,this.setSpan=Tt,this.setSpanContext=mt}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(t){var e=l(re,this._proxyTracerProvider,m.instance());return e&&this._proxyTracerProvider.setDelegate(t),e},t.prototype.getTracerProvider=function(){return f(re)||this._proxyTracerProvider},t.prototype.getTracer=function(t,e){return this.getTracerProvider().getTracer(t,e)},t.prototype.disable=function(){p(re,m.instance()),this._proxyTracerProvider=new xt},t}().getInstance(),ie={context:Gt,diag:Ft,metrics:Kt,propagation:ne,trace:oe},ae=Object.freeze({__proto__:null,DiagConsoleLogger:k,get DiagLogLevel(){return d},INVALID_SPANID:ft,INVALID_SPAN_CONTEXT:dt,INVALID_TRACEID:pt,ProxyTracer:kt,ProxyTracerProvider:xt,ROOT_CONTEXT:I,get SamplingDecision(){return Ct},get SpanKind(){return Nt},get SpanStatusCode(){return It},get TraceFlags(){return tt},get ValueType(){return C},baggageEntryMetadataFromString:L,context:Gt,createContextKey:A,createNoopMeter:function(){return K},createTraceState:function(t){return new Ht(t)},default:ie,defaultTextMapGetter:et,defaultTextMapSetter:nt,diag:Ft,isSpanContextValid:Rt,isValidSpanId:wt,isValidTraceId:bt,metrics:Kt,propagation:ne,trace:oe}),se=function(){function t(){}return t.prototype.emit=function(t){},t}(),ue=new(function(){function t(){}return t.prototype.getLogger=function(t,e,n){return new se},t}()),ce="object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis:"object"===("undefined"==typeof self?"undefined":t(self))?self:"object"===("undefined"==typeof window?"undefined":t(window))?window:"object"===("undefined"==typeof global?"undefined":t(global))?global:{},le=Symbol.for("io.opentelemetry.js.api.logs"),fe=ce;var pe=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalLoggerProvider=function(t){return fe[le]?this.getLoggerProvider():(fe[le]=(e=1,n=t,r=ue,function(t){return t===e?n:r}),t);var e,n,r},t.prototype.getLoggerProvider=function(){var t,e;return null!==(e=null===(t=fe[le])||void 0===t?void 0:t.call(fe,1))&&void 0!==e?e:ue},t.prototype.getLogger=function(t,e,n){return this.getLoggerProvider().getLogger(t,e,n)},t.prototype.disable=function(){delete fe[le]},t}(),de=pe.getInstance();function _e(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var n=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})})),n}function he(t){return"function"==typeof t}var Ee=console.error.bind(console);function ve(t,e,n){var r=!!t[e]&&t.propertyIsEnumerable(e);Object.defineProperty(t,e,{configurable:!0,enumerable:r,writable:!0,value:n})}function Te(t){t&&t.logger&&(he(t.logger)?Ee=t.logger:Ee("new logger isn't a function, not replacing"))}function ye(t,e,n){if(t&&t[e]){if(!n)return Ee("no wrapper function"),void Ee((new Error).stack);if(he(t[e])&&he(n)){var r=t[e],o=n(r,e);return ve(o,"__original",r),ve(o,"__unwrap",(function(){t[e]===o&&ve(t,e,r)})),ve(o,"__wrapped",!0),ve(t,e,o),o}Ee("original object and wrapper must be functions")}else Ee("no original function "+e+" to wrap")}function me(t,e){return t&&t[e]?t[e].__unwrap?t[e].__unwrap():void Ee("no original to unwrap to -- has "+e+" already been unwrapped?"):(Ee("no function to unwrap."),void Ee((new Error).stack))}Te.wrap=ye,Te.massWrap=function(t,e,n){if(!t)return Ee("must provide one or more modules to patch"),void Ee((new Error).stack);Array.isArray(t)||(t=[t]),e&&Array.isArray(e)?t.forEach((function(t){e.forEach((function(e){ye(t,e,n)}))})):Ee("must provide one or more functions to wrap on modules")},Te.unwrap=me,Te.massUnwrap=function(t,e){if(!t)return Ee("must provide one or more modules to patch"),void Ee((new Error).stack);Array.isArray(t)||(t=[t]),e&&Array.isArray(e)?t.forEach((function(t){e.forEach((function(e){me(t,e)}))})):Ee("must provide one or more functions to unwrap on modules")};var ge=Te,Oe=window&&window.__assign||function(){return Oe=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function ke(t){return t.reduce((function(t,e){var n=""+t+(""!==t?Ne:"")+e;return n.length>8192?t:n}),"")}function De(t){return t.getAllEntries().map((function(t){var e=Me(t,2),n=e[0],r=e[1],o=encodeURIComponent(n)+"="+encodeURIComponent(r.value);return void 0!==r.metadata&&(o+=";"+r.metadata.toString()),o}))}function xe(t){var e=t.split(";");if(!(e.length<=0)){var n=e.shift();if(n){var r=n.indexOf("=");if(!(r<=0)){var o,i=decodeURIComponent(n.substring(0,r).trim()),a=decodeURIComponent(n.substring(r+1).trim());return e.length>0&&(o=L(e.join(";"))),{key:i,value:a,metadata:o}}}}}var Ue=function(){function t(){}return t.prototype.inject=function(t,e,n){var r=ne.getBaggage(t);if(r&&!Ce(t)){var o=ke(De(r).filter((function(t){return t.length<=4096})).slice(0,180));o.length>0&&n.set(e,Ie,o)}},t.prototype.extract=function(t,e,n){var r=n.get(e,Ie),o=Array.isArray(r)?r.join(Ne):r;if(!o)return t;var i={};return 0===o.length?t:(o.split(Ne).forEach((function(t){var e=xe(t);if(e){var n={value:e.value};e.metadata&&(n.metadata=e.metadata),i[e.key]=n}})),0===Object.entries(i).length?t:ne.setBaggage(t,ne.createBaggage(i)))},t.prototype.fields=function(){return[Ie]},t}(),Be=function(){function t(t,e){this._monotonicClock=e,this._epochMillis=t.now(),this._performanceMillis=e.now()}return t.prototype.now=function(){var t=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+t},t}(),je=window&&window.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Xe=window&&window.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function He(e){var n,r,o={};if("object"!==t(e)||null==e)return o;try{for(var i=je(Object.entries(e)),a=i.next();!a.done;a=i.next()){var s=Xe(a.value,2),u=s[0],c=s[1];Ge(u)?Fe(c)?Array.isArray(c)?o[u]=c.slice():o[u]=c:Ft.warn("Invalid attribute value set for key: "+u):Ft.warn("Invalid attribute key: "+u)}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}function Ge(t){return"string"==typeof t&&t.length>0}function Fe(e){return null==e||(Array.isArray(e)?function(e){var n,r,o;try{for(var i=je(e),a=i.next();!a.done;a=i.next()){var s=a.value;if(null!=s){if(!o){if(Ve(s)){o=t(s);continue}return!1}if(t(s)!==o)return!1}}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}(e):Ve(e))}function Ve(e){switch(t(e)){case"number":case"boolean":case"string":return!0}return!1}function ze(){return function(t){Ft.error(function(t){return"string"==typeof t?t:JSON.stringify(function(t){var e={},n=t;for(;null!==n;)Object.getOwnPropertyNames(n).forEach((function(t){if(!e[t]){var r=n[t];r&&(e[t]=String(r))}})),n=Object.getPrototypeOf(n);return e}(t))}(t))}}var Ke,qe=ze();function We(t){try{qe(t)}catch(t){}}!function(t){t.AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio"}(Ke||(Ke={}));var Ze=["OTEL_SDK_DISABLED"];function Ye(t){return Ze.indexOf(t)>-1}var Je=["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 Qe(t){return Je.indexOf(t)>-1}var $e=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function tn(t){return $e.indexOf(t)>-1}var en=1/0,nn=128,rn={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:d.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:en,OTEL_ATTRIBUTE_COUNT_LIMIT:nn,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:en,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:nn,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:en,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:nn,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:Ke.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 on(t,e,n){if(void 0!==n[t]){var r=String(n[t]);e[t]="true"===r.toLowerCase()}}function an(t,e,n,r,o){if(void 0===r&&(r=-1/0),void 0===o&&(o=1/0),void 0!==n[t]){var i=Number(n[t]);isNaN(i)||(e[t]=io?o:i)}}function sn(t,e,n,r){void 0===r&&(r=",");var o=n[t];"string"==typeof o&&(e[t]=o.split(r).map((function(t){return t.trim()})))}var un={ALL:d.ALL,VERBOSE:d.VERBOSE,DEBUG:d.DEBUG,INFO:d.INFO,WARN:d.WARN,ERROR:d.ERROR,NONE:d.NONE};function cn(t,e,n){var r=n[t];if("string"==typeof r){var o=un[r.toUpperCase()];null!=o&&(e[t]=o)}}function ln(t){var e={};for(var n in rn){var r=n;if("OTEL_LOG_LEVEL"===r)cn(r,e,t);else if(Ye(r))on(r,e,t);else if(Qe(r))an(r,e,t);else if(tn(r))sn(r,e,t);else{var o=t[r];null!=o&&(e[r]=String(o))}}return e}var fn="object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis:"object"===("undefined"==typeof self?"undefined":t(self))?self:"object"===("undefined"==typeof window?"undefined":t(window))?window:"object"===("undefined"==typeof global?"undefined":t(global))?global:{};function pn(){var t=ln(fn);return Object.assign({},rn,t)}function dn(){return ln(fn)}function _n(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function hn(t){for(var e=new Uint8Array(t.length/2),n=0,r=0;r0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},vn=window&&window.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o=58&&(yn[e]+=39);return String.fromCharCode.apply(null,yn.slice(0,2*t))}}var gn,On=performance,Sn="1.30.1",bn=((gn={})["telemetry.sdk.name"]="opentelemetry",gn["process.runtime.name"]="browser",gn["telemetry.sdk.language"]="webjs",gn["telemetry.sdk.version"]=Sn,gn);function wn(t){}var Rn,Ln=Math.pow(10,6),An=Math.pow(10,9);function Pn(t){var e=t/1e3;return[Math.trunc(e),Math.round(t%1e3*Ln)]}function Cn(){var t=On.timeOrigin;if("number"!=typeof t){var e=On;t=e.timing&&e.timing.fetchStart}return t}function Nn(t){return xn(Pn(Cn()),Pn("number"==typeof t?t:On.now()))}function In(t,e){var n=e[0]-t[0],r=e[1]-t[1];return r<0&&(n-=1,r+=An),[n,r]}function Mn(t){return 1e6*t[0]+t[1]/1e3}function kn(t){return Array.isArray(t)&&2===t.length&&"number"==typeof t[0]&&"number"==typeof t[1]}function Dn(t){return kn(t)||"number"==typeof t||t instanceof Date}function xn(t,e){var n=[t[0]+e[0],t[1]+e[1]];return n[1]>=An&&(n[1]-=An,n[0]+=1),n}!function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"}(Rn||(Rn={}));var Un=window&&window.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Bn=function(){function t(t){var e;void 0===t&&(t={}),this._propagators=null!==(e=t.propagators)&&void 0!==e?e:[],this._fields=Array.from(new Set(this._propagators.map((function(t){return"function"==typeof t.fields?t.fields():[]})).reduce((function(t,e){return t.concat(e)}),[])))}return t.prototype.inject=function(t,e,n){var r,o;try{for(var i=Un(this._propagators),a=i.next();!a.done;a=i.next()){var s=a.value;try{s.inject(t,e,n)}catch(t){Ft.warn("Failed to inject with "+s.constructor.name+". Err: "+t.message)}}}catch(t){r={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}},t.prototype.extract=function(t,e,n){return this._propagators.reduce((function(t,r){try{return r.extract(t,e,n)}catch(t){Ft.warn("Failed to extract with "+r.constructor.name+". Err: "+t.message)}return t}),t)},t.prototype.fields=function(){return this._fields.slice()},t}(),jn="[_0-9a-z-*/]",Xn=new RegExp("^(?:"+("[a-z]"+jn+"{0,255}")+"|"+("[a-z0-9]"+jn+"{0,240}@[a-z]"+jn+"{0,13}")+")$"),Hn=/^[ -~]{0,255}[!-~]$/,Gn=/,|=/;var Fn=function(){function t(t){this._internalState=new Map,t&&this._parse(t)}return t.prototype.set=function(t,e){var n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,e),n},t.prototype.unset=function(t){var e=this._clone();return e._internalState.delete(t),e},t.prototype.get=function(t){return this._internalState.get(t)},t.prototype.serialize=function(){var t=this;return this._keys().reduce((function(e,n){return e.push(n+"="+t.get(n)),e}),[]).join(",")},t.prototype._parse=function(t){t.length>512||(this._internalState=t.split(",").reverse().reduce((function(t,e){var n=e.trim(),r=n.indexOf("=");if(-1!==r){var o=n.slice(0,r),i=n.slice(r+1,e.length);(function(t){return Xn.test(t)})(o)&&function(t){return Hn.test(t)&&!Gn.test(t)}(i)&&t.set(o,i)}return t}),new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}(),Vn="traceparent",zn="tracestate",Kn=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function qn(t){var e=Kn.exec(t);return e?"00"===e[1]&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}:null}var Wn,Zn=function(){function t(){}return t.prototype.inject=function(t,e,n){var r=oe.getSpanContext(t);if(r&&!Ce(t)&&Rt(r)){var o="00-"+r.traceId+"-"+r.spanId+"-0"+Number(r.traceFlags||tt.NONE).toString(16);n.set(e,Vn,o),r.traceState&&n.set(e,zn,r.traceState.serialize())}},t.prototype.extract=function(t,e,n){var r=n.get(e,Vn);if(!r)return t;var o=Array.isArray(r)?r[0]:r;if("string"!=typeof o)return t;var i=qn(o);if(!i)return t;i.isRemote=!0;var a=n.get(e,zn);if(a){var s=Array.isArray(a)?a.join(","):a;i.traceState=new Fn("string"==typeof s?s:void 0)}return oe.setSpanContext(t,i)},t.prototype.fields=function(){return[Vn,zn]},t}(),Yn=A("OpenTelemetry SDK Context Key RPC_METADATA");!function(t){t.HTTP="http"}(Wn||(Wn={}));var Jn=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:Ct.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}(),Qn=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:Ct.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}(),$n=function(){function t(t){var e,n,r,o;this._root=t.root,this._root||(We(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Qn),this._remoteParentSampled=null!==(e=t.remoteParentSampled)&&void 0!==e?e:new Qn,this._remoteParentNotSampled=null!==(n=t.remoteParentNotSampled)&&void 0!==n?n:new Jn,this._localParentSampled=null!==(r=t.localParentSampled)&&void 0!==r?r:new Qn,this._localParentNotSampled=null!==(o=t.localParentNotSampled)&&void 0!==o?o:new Jn}return t.prototype.shouldSample=function(t,e,n,r,o,i){var a=oe.getSpanContext(t);return a&&Rt(a)?a.isRemote?a.traceFlags&tt.SAMPLED?this._remoteParentSampled.shouldSample(t,e,n,r,o,i):this._remoteParentNotSampled.shouldSample(t,e,n,r,o,i):a.traceFlags&tt.SAMPLED?this._localParentSampled.shouldSample(t,e,n,r,o,i):this._localParentNotSampled.shouldSample(t,e,n,r,o,i):this._root.shouldSample(t,e,n,r,o,i)},t.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()+"}"},t}(),tr=function(){function t(t){void 0===t&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(4294967295*this._ratio)}return t.prototype.shouldSample=function(t,e){return{decision:bt(e)&&this._accumulate(e)=1?1:t<=0?0:t},t.prototype._accumulate=function(t){for(var e=0,n=0;n>>0}return e},t}(),er="[object Null]",nr="[object Undefined]",rr=Function.prototype.toString,or=rr.call(Object),ir=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object),ar=Object.prototype,sr=ar.hasOwnProperty,ur=Symbol?Symbol.toStringTag:void 0,cr=ar.toString;function lr(e){if(!function(e){return null!=e&&"object"==t(e)}(e)||"[object Object]"!==function(t){if(null==t)return void 0===t?nr:er;return ur&&ur in Object(t)?function(t){var e=sr.call(t,ur),n=t[ur],r=!1;try{t[ur]=void 0,r=!0}catch(t){}var o=cr.call(t);r&&(e?t[ur]=n:delete t[ur]);return o}(t):function(t){return cr.call(t)}(t)}(e))return!1;var n=ir(e);if(null===n)return!0;var r=sr.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&rr.call(r)===or}function fr(){for(var t=[],e=0;e0;)n=dr(n,t.shift(),0,r);return n}function pr(t){return hr(t)?t.slice():t}function dr(t,e,n,r){var o;if(void 0===n&&(n=0),!(n>20)){if(n++,Tr(t)||Tr(e)||Er(e))o=pr(e);else if(hr(t)){if(o=t.slice(),hr(e))for(var i=0,a=e.length;i=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function Or(t,e){return"string"==typeof e?t===e:!!t.match(e)}function Sr(t,e){var n,r;if(!e)return!1;try{for(var o=gr(e),i=o.next();!i.done;i=o.next()){if(Or(t,i.value))return!0}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1}var br=function(){function t(){var t=this;this._promise=new Promise((function(e,n){t._resolve=e,t._reject=n}))}return Object.defineProperty(t.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),t.prototype.resolve=function(t){this._resolve(t)},t.prototype.reject=function(t){this._reject(t)},t}(),wr=window&&window.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Rr=window&&window.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o0})).reduce((function(t,e){return t[e.key]=e.value,t}),{})},parsePairKeyValue:xe},Cr={_export:function(t,e){return new Promise((function(n){Gt.with(Pe(Gt.active()),(function(){t.export(e,(function(t){n(t)}))}))}))}},Nr=Object.freeze({__proto__:null,AlwaysOffSampler:Jn,AlwaysOnSampler:Qn,AnchoredClock:Be,BindOnceFuture:Lr,CompositePropagator:Bn,DEFAULT_ATTRIBUTE_COUNT_LIMIT:nn,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:en,DEFAULT_ENVIRONMENT:rn,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:128,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:128,get ExportResultCode(){return Rn},ParentBasedSampler:$n,get RPCType(){return Wn},RandomIdGenerator:Tn,SDK_INFO:bn,TRACE_PARENT_HEADER:Vn,TRACE_STATE_HEADER:zn,TimeoutError:mr,TraceIdRatioBasedSampler:tr,TraceState:Fn,get TracesSamplerValues(){return Ke},VERSION:Sn,W3CBaggagePropagator:Ue,W3CTraceContextPropagator:Zn,_globalThis:fn,addHrTimes:xn,baggageUtils:Pr,callWithTimeout:function(t,e){var n,r=new Promise((function(t,r){n=setTimeout((function(){r(new mr("Operation timed out."))}),e)}));return Promise.race([t,r]).then((function(t){return clearTimeout(n),t}),(function(t){throw clearTimeout(n),t}))},deleteRPCMetadata:function(t){return t.deleteValue(Yn)},getEnv:pn,getEnvWithoutDefaults:dn,getRPCMetadata:function(t){return t.getValue(Yn)},getTimeOrigin:Cn,globalErrorHandler:We,hexToBase64:function(t){return btoa(String.fromCharCode.apply(String,vn([],En(hn(t)),!1)))},hexToBinary:hn,hrTime:Nn,hrTimeDuration:In,hrTimeToMicroseconds:Mn,hrTimeToMilliseconds:function(t){return 1e3*t[0]+t[1]/1e6},hrTimeToNanoseconds:function(t){return t[0]*An+t[1]},hrTimeToTimeStamp:function(t){var e=""+"0".repeat(9)+t[1]+"Z",n=e.substring(e.length-9-1);return new Date(1e3*t[0]).toISOString().replace("000Z",n)},internal:Cr,isAttributeKey:Ge,isAttributeValue:Fe,isTimeInput:Dn,isTimeInputHrTime:kn,isTracingSuppressed:Ce,isUrlIgnored:Sr,isWrapped:function(t){return"function"==typeof t&&"function"==typeof t.__original&&"function"==typeof t.__unwrap&&!0===t.__wrapped},loggingErrorHandler:ze,merge:fr,millisToHrTime:Pn,otperformance:On,parseEnvironment:ln,parseTraceParent:qn,sanitizeAttributes:He,setGlobalErrorHandler:function(t){qe=t},setRPCMetadata:function(t,e){return t.setValue(Yn,e)},suppressTracing:Pe,timeInputToHrTime:function(t){if(kn(t))return t;if("number"==typeof t)return t=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},xr=window&&window.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Ur=window&&window.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(e),this):(Ft.warn("Invalid attribute value set for key: "+t),this)},e.prototype.setAttributes=function(t){var e,n;try{for(var r=Dr(Object.entries(t)),o=r.next();!o.done;o=r.next()){var i=xr(o.value,2),a=i[0],s=i[1];this.setAttribute(a,s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return this},e.prototype.addEvent=function(t,e,n){if(this._isSpanEnded())return this;if(0===this._spanLimits.eventCountLimit)return Ft.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(0===this._droppedEventsCount&&Ft.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),Dn(e)&&(Dn(n)||(n=e),e=void 0);var r=He(e);return this.events.push({name:t,attributes:r,time:this._getTime(n),droppedAttributesCount:0}),this},e.prototype.addLink=function(t){return this.links.push(t),this},e.prototype.addLinks=function(t){var e;return(e=this.links).push.apply(e,Ur([],xr(t),!1)),this},e.prototype.setStatus=function(e){return this._isSpanEnded()||(this.status=kr({},e),null!=this.status.message&&"string"!=typeof e.message&&(Ft.warn("Dropping invalid status.message of type '"+t(e.message)+"', expected 'string'"),delete this.status.message)),this},e.prototype.updateName=function(t){return this._isSpanEnded()||(this.name=t),this},e.prototype.end=function(t){this._isSpanEnded()?Ft.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(t),this._duration=In(this.startTime,this.endTime),this._duration[0]<0&&(Ft.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&&Ft.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this))},e.prototype._getTime=function(t){if("number"==typeof t&&t<=On.now())return Nn(t+this._performanceOffset);if("number"==typeof t)return Pn(t);if(t instanceof Date)return Pn(t.getTime());if(kn(t))return t;if(this._startTimeProvided)return Pn(Date.now());var e=On.now()-this._performanceStartTime;return xn(this.startTime,Pn(e))},e.prototype.isRecording=function(){return!1===this._ended},e.prototype.recordException=function(t,e){var n={};"string"==typeof t?n[Mr]=t:t&&(t.code?n[Ir]=t.code.toString():t.name&&(n[Ir]=t.name),t.message&&(n[Mr]=t.message),t.stack&&(n["exception.stacktrace"]=t.stack)),n[Ir]||n[Mr]?this.addEvent("exception",n,e):Ft.warn("Failed to record an exception "+t)},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&&Ft.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},e.prototype._truncateToLimitUtil=function(t,e){return t.length<=e?t:t.substring(0,e)},e.prototype._truncateToSize=function(t){var e=this,n=this._attributeValueLengthLimit;return n<=0?(Ft.warn("Attribute value limit must be positive, got "+n),t):"string"==typeof t?this._truncateToLimitUtil(t,n):Array.isArray(t)?t.map((function(t){return"string"==typeof t?e._truncateToLimitUtil(t,n):t})):t},e}();!function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(Ar||(Ar={}));var jr=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:Ar.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}(),Xr=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:Ar.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}(),Hr=function(){function t(t){var e,n,r,o;this._root=t.root,this._root||(We(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Xr),this._remoteParentSampled=null!==(e=t.remoteParentSampled)&&void 0!==e?e:new Xr,this._remoteParentNotSampled=null!==(n=t.remoteParentNotSampled)&&void 0!==n?n:new jr,this._localParentSampled=null!==(r=t.localParentSampled)&&void 0!==r?r:new Xr,this._localParentNotSampled=null!==(o=t.localParentNotSampled)&&void 0!==o?o:new jr}return t.prototype.shouldSample=function(t,e,n,r,o,i){var a=oe.getSpanContext(t);return a&&Rt(a)?a.isRemote?a.traceFlags&tt.SAMPLED?this._remoteParentSampled.shouldSample(t,e,n,r,o,i):this._remoteParentNotSampled.shouldSample(t,e,n,r,o,i):a.traceFlags&tt.SAMPLED?this._localParentSampled.shouldSample(t,e,n,r,o,i):this._localParentNotSampled.shouldSample(t,e,n,r,o,i):this._root.shouldSample(t,e,n,r,o,i)},t.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()+"}"},t}(),Gr=function(){function t(t){void 0===t&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(4294967295*this._ratio)}return t.prototype.shouldSample=function(t,e){return{decision:bt(e)&&this._accumulate(e)=1?1:t<=0?0:t},t.prototype._accumulate=function(t){for(var e=0,n=0;n>>0}return e},t}(),Fr=Ke.AlwaysOn;function Vr(){var t=pn();return{sampler:zr(t),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:t.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:t.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:t.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:t.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:t.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:t.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:t.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:t.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT},mergeResourceWithDefaults:!0}}function zr(t){switch(void 0===t&&(t=pn()),t.OTEL_TRACES_SAMPLER){case Ke.AlwaysOn:return new Xr;case Ke.AlwaysOff:return new jr;case Ke.ParentBasedAlwaysOn:return new Hr({root:new Xr});case Ke.ParentBasedAlwaysOff:return new Hr({root:new jr});case Ke.TraceIdRatio:return new Gr(Kr(t));case Ke.ParentBasedTraceIdRatio:return new Hr({root:new Gr(Kr(t))});default:return Ft.error('OTEL_TRACES_SAMPLER value "'+t.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+Fr+'".'),new Xr}}function Kr(t){if(void 0===t.OTEL_TRACES_SAMPLER_ARG||""===t.OTEL_TRACES_SAMPLER_ARG)return Ft.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to 1."),1;var e=Number(t.OTEL_TRACES_SAMPLER_ARG);return isNaN(e)?(Ft.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to 1."),1):e<0||e>1?(Ft.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to 1."),1):e}var qr=function(){function t(t,e){this._exporter=t,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var n=pn();this._maxExportBatchSize="number"==typeof(null==e?void 0:e.maxExportBatchSize)?e.maxExportBatchSize:n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize="number"==typeof(null==e?void 0:e.maxQueueSize)?e.maxQueueSize:n.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis="number"==typeof(null==e?void 0:e.scheduledDelayMillis)?e.scheduledDelayMillis:n.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis="number"==typeof(null==e?void 0:e.exportTimeoutMillis)?e.exportTimeoutMillis:n.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new Lr(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(Ft.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return t.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},t.prototype.onStart=function(t,e){},t.prototype.onEnd=function(t){this._shutdownOnce.isCalled||t.spanContext().traceFlags&tt.SAMPLED&&this._addToBuffer(t)},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype._shutdown=function(){var t=this;return Promise.resolve().then((function(){return t.onShutdown()})).then((function(){return t._flushAll()})).then((function(){return t._exporter.shutdown()}))},t.prototype._addToBuffer=function(t){if(this._finishedSpans.length>=this._maxQueueSize)return 0===this._droppedSpansCount&&Ft.debug("maxQueueSize reached, dropping spans"),void this._droppedSpansCount++;this._droppedSpansCount>0&&(Ft.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()},t.prototype._flushAll=function(){var t=this;return new Promise((function(e,n){for(var r=[],o=0,i=Math.ceil(t._finishedSpans.length/t._maxExportBatchSize);o0&&(t._clearTimer(),t._maybeStartTimer())})).catch((function(e){t._isExporting=!1,We(e)}))};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();void 0===this._timer&&(this._timer=setTimeout((function(){return e()}),this._scheduledDelayMillis),this._timer)}},t.prototype._clearTimer=function(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)},t}(),Wr=window&&window.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zr=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.onInit(n),r}return Wr(e,t),e.prototype.onInit=function(t){var e=this;!0!==(null==t?void 0:t.disableAutoFlushOnDocumentHide)&&"undefined"!=typeof document&&(this._visibilityChangeListener=function(){"hidden"===document.visibilityState&&e.forceFlush().catch((function(t){We(t)}))},this._pageHideListener=function(){e.forceFlush().catch((function(t){We(t)}))},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},e.prototype.onShutdown=function(){"undefined"!=typeof document&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},e}(qr),Yr=function(){this.generateTraceId=Qr(16),this.generateSpanId=Qr(8)},Jr=Array(32);function Qr(t){return function(){for(var e=0;e<2*t;e++)Jr[e]=Math.floor(16*Math.random())+48,Jr[e]>=58&&(Jr[e]+=39);return String.fromCharCode.apply(null,Jr.slice(0,2*t))}}var $r=function(){function t(t,e,n){this._tracerProvider=n;var r,o,i,a,s=(r=e,o={sampler:zr()},i=Vr(),(a=Object.assign({},i,o,r)).generalLimits=Object.assign({},i.generalLimits,r.generalLimits||{}),a.spanLimits=Object.assign({},i.spanLimits,r.spanLimits||{}),a);this._sampler=s.sampler,this._generalLimits=s.generalLimits,this._spanLimits=s.spanLimits,this._idGenerator=e.idGenerator||new Yr,this.resource=n.resource,this.instrumentationLibrary=t}return t.prototype.startSpan=function(t,e,n){var r,o,i;void 0===e&&(e={}),void 0===n&&(n=Gt.active()),e.root&&(n=oe.deleteSpan(n));var a=oe.getSpan(n);if(Ce(n))return Ft.debug("Instrumentation suppressed, returning Noop Span"),oe.wrapSpanContext(dt);var s,u,c,l=null==a?void 0:a.spanContext(),f=this._idGenerator.generateSpanId();l&&oe.isSpanContextValid(l)?(s=l.traceId,u=l.traceState,c=l.spanId):s=this._idGenerator.generateTraceId();var p=null!==(r=e.kind)&&void 0!==r?r:Nt.INTERNAL,d=(null!==(o=e.links)&&void 0!==o?o:[]).map((function(t){return{context:t.context,attributes:He(t.attributes)}})),_=He(e.attributes),h=this._sampler.shouldSample(n,s,t,p,_,d);u=null!==(i=h.traceState)&&void 0!==i?i:u;var E={traceId:s,spanId:f,traceFlags:h.decision===Ct.RECORD_AND_SAMPLED?tt.SAMPLED:tt.NONE,traceState:u};if(h.decision===Ct.NOT_RECORD)return Ft.debug("Recording is off, propagating context in a non-recording span"),oe.wrapSpanContext(E);var v=He(Object.assign(_,h.attributes));return new Br(this,n,t,E,p,c,d,e.startTime,void 0,v)},t.prototype.startActiveSpan=function(t,e,n,r){var o,i,a;if(!(arguments.length<2)){2===arguments.length?a=e:3===arguments.length?(o=e,a=n):(o=e,i=n,a=r);var s=null!=i?i:Gt.active(),u=this.startSpan(t,o,s),c=oe.setSpan(s,u);return Gt.with(c,a,void 0,u)}},t.prototype.getGeneralLimits=function(){return this._generalLimits},t.prototype.getSpanLimits=function(){return this._spanLimits},t.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},t}(),to="telemetry.sdk.name",eo="telemetry.sdk.language",no="telemetry.sdk.version";var ro,oo=window&&window.__assign||function(){return oo=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},uo=function(){function t(t,e){var n,r=this;this._attributes=t,this.asyncAttributesPending=null!=e,this._syncAttributes=null!==(n=this._attributes)&&void 0!==n?n:{},this._asyncAttributesPromise=null==e?void 0:e.then((function(t){return r._attributes=Object.assign({},r._attributes,t),r.asyncAttributesPending=!1,t}),(function(t){return Ft.debug("a resource's async attributes promise rejected: %s",t),r.asyncAttributesPending=!1,{}}))}return t.empty=function(){return t.EMPTY},t.default=function(){var e;return new t(((e={})["service.name"]="unknown_service",e[eo]=bn[eo],e[to]=bn[to],e[no]=bn[no],e))},Object.defineProperty(t.prototype,"attributes",{get:function(){var t;return this.asyncAttributesPending&&Ft.error("Accessing resource attributes before async attributes settled"),null!==(t=this._attributes)&&void 0!==t?t:{}},enumerable:!1,configurable:!0}),t.prototype.waitForAsyncAttributes=function(){return io(this,void 0,void 0,(function(){return ao(this,(function(t){switch(t.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},t.prototype.merge=function(e){var n,r=this;if(!e)return this;var o=oo(oo({},this._syncAttributes),null!==(n=e._syncAttributes)&&void 0!==n?n:e.attributes);if(!this._asyncAttributesPromise&&!e._asyncAttributesPromise)return new t(o);var i=Promise.all([this._asyncAttributesPromise,e._asyncAttributesPromise]).then((function(t){var n,o=so(t,2),i=o[0],a=o[1];return oo(oo(oo(oo({},r._syncAttributes),i),null!==(n=e._syncAttributes)&&void 0!==n?n:e.attributes),a)}));return new t(o,i)},t.EMPTY=new t({}),t}(),co=window&&window.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},lo=function(){function t(t){this._spanProcessors=t}return t.prototype.forceFlush=function(){var t,e,n=[];try{for(var r=co(this._spanProcessors),o=r.next();!o.done;o=r.next()){var i=o.value;n.push(i.forceFlush())}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return new Promise((function(t){Promise.all(n).then((function(){t()})).catch((function(e){We(e||new Error("MultiSpanProcessor: forceFlush failed")),t()}))}))},t.prototype.onStart=function(t,e){var n,r;try{for(var o=co(this._spanProcessors),i=o.next();!i.done;i=o.next()){i.value.onStart(t,e)}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},t.prototype.onEnd=function(t){var e,n;try{for(var r=co(this._spanProcessors),o=r.next();!o.done;o=r.next()){o.value.onEnd(t)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},t.prototype.shutdown=function(){var t,e,n=[];try{for(var r=co(this._spanProcessors),o=r.next();!o.done;o=r.next()){var i=o.value;n.push(i.shutdown())}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return new Promise((function(t,e){Promise.all(n).then((function(){t()}),e)}))},t}(),fo=function(){function t(){}return t.prototype.onStart=function(t,e){},t.prototype.onEnd=function(t){},t.prototype.shutdown=function(){return Promise.resolve()},t.prototype.forceFlush=function(){return Promise.resolve()},t}(),po=window&&window.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},_o=window&&window.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o0?n(r):t()})).catch((function(t){return n([t])}))}))},t.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},t.prototype._getPropagator=function(t){var e;return null===(e=this.constructor._registeredPropagators.get(t))||void 0===e?void 0:e()},t.prototype._getSpanExporter=function(t){var e;return null===(e=this.constructor._registeredExporters.get(t))||void 0===e?void 0:e()},t.prototype._buildPropagatorFromEnv=function(){var t=this,e=Array.from(new Set(pn().OTEL_PROPAGATORS)),n=e.map((function(e){var n=t._getPropagator(e);return n||Ft.warn('Propagator "'+e+'" requested through environment variable is unavailable.'),n})).reduce((function(t,e){return e&&t.push(e),t}),[]);return 0===n.length?void 0:1===e.length?n[0]:new Bn({propagators:n})},t.prototype._buildExporterFromEnv=function(){var t=pn().OTEL_TRACES_EXPORTER;if("none"!==t&&""!==t){var e=this._getSpanExporter(t);return e||Ft.error('Exporter "'+t+'" requested through environment variable is unavailable.'),e}},t._registeredPropagators=new Map([["tracecontext",function(){return new Zn}],["baggage",function(){return new Ue}]]),t._registeredExporters=new Map,t}(),Eo=window&&window.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},vo=function(){function t(){}return t.prototype.export=function(t,e){return this._sendSpans(t,e)},t.prototype.shutdown=function(){return this._sendSpans([]),this.forceFlush()},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype._exportInfo=function(t){var e;return{resource:{attributes:t.resource.attributes},instrumentationScope:t.instrumentationLibrary,traceId:t.spanContext().traceId,parentId:t.parentSpanId,traceState:null===(e=t.spanContext().traceState)||void 0===e?void 0:e.serialize(),name:t.name,id:t.spanContext().spanId,kind:t.kind,timestamp:Mn(t.startTime),duration:Mn(t.duration),attributes:t.attributes,status:t.status,events:t.events,links:t.links}},t.prototype._sendSpans=function(t,e){var n,r;try{for(var o=Eo(t),i=o.next();!i.done;i=o.next()){var a=i.value;console.dir(this._exportInfo(a),{depth:3})}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}if(e)return e({code:Rn.SUCCESS})},t}(),To=window&&window.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},yo=window&&window.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},No=window&&window.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o=i)return t.addEvent(e,o),t}function Bo(t,e,n){void 0===n&&(n=!1),n||(Uo(t,Po.FETCH_START,e),Uo(t,Po.DOMAIN_LOOKUP_START,e),Uo(t,Po.DOMAIN_LOOKUP_END,e),Uo(t,Po.CONNECT_START,e),xo(e,"name")&&e.name.startsWith("https:")&&Uo(t,Po.SECURE_CONNECTION_START,e),Uo(t,Po.CONNECT_END,e),Uo(t,Po.REQUEST_START,e),Uo(t,Po.RESPONSE_START,e),Uo(t,Po.RESPONSE_END,e));var r=e[Po.ENCODED_BODY_SIZE];void 0!==r&&t.setAttribute("http.response_content_length",r);var o=e[Po.DECODED_BODY_SIZE];void 0!==o&&r!==o&&t.setAttribute("http.response_content_length_uncompressed",o)}function jo(t,e){if(t.nodeType===Node.DOCUMENT_NODE)return"/";var n=function(t,e){var n=t.nodeType,r=function(t){if(!t.parentNode)return 0;var e=[t.nodeType];t.nodeType===Node.CDATA_SECTION_NODE&&e.push(Node.TEXT_NODE);var n=Array.from(t.parentNode.childNodes);if(n=n.filter((function(n){var r=n.localName;return e.indexOf(n.nodeType)>=0&&r===t.localName})),n.length>=1)return n.indexOf(t)+1;return 0}(t),o="";if(n===Node.ELEMENT_NODE){var i=t.getAttribute("id");if(e&&i)return'//*[@id="'+i+'"]';o=t.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}(t,e);if(e&&n.indexOf("@id")>0)return n;var r="";return t.parentNode&&(r+=jo(t.parentNode,!1)),r+=n}!function(t){t.DOCUMENT_LOAD="documentLoad",t.DOCUMENT_FETCH="documentFetch",t.RESOURCE_FETCH="resourceFetch"}(Do||(Do={}));function Xo(t){for(var e={},n=t.length,r=0;r=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function ti(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n0&&void 0!==arguments[0]?arguments[0]:{};So(this,e),t=function(t,e,n){return e=Ro(e),wo(t,ii()?Reflect.construct(e,n||[],Ro(t).constructor):e.apply(t,n))}(this,e,[n]);var r=t,o=r._endSpan.bind(t);return r._onDocumentLoaded=function(t){t&&!t.isTrusted||window.setTimeout((function(){r._collectPerformance()}))},r._endSpan=function(e,n,r){var i,a=e;if(e&&e.setAttribute("component",t.component),e&&a.name!==Do.DOCUMENT_LOAD){if(a.name===Do.DOCUMENT_FETCH&&performance.getEntriesByType){var s=performance.getEntriesByType("navigation");!r.serverTiming&&(null===(i=s[0])||void 0===i?void 0:i.serverTiming)&&(r.serverTiming=s[0].serverTiming),s[0]&&"number"==typeof s[0].responseStatus&&s[0].responseStatus>0&&e.setAttribute(Ko.HTTP_STATUS_CODE,s[0].responseStatus)}!function(t,e){if(t.serverTiming){var n,r=$o(t.serverTiming);try{for(r.s();!(n=r.n()).done;){var o=n.value;"traceparent"===o.name&&o.description&&ei(o.description.match(oi),e)}}catch(t){r.e(t)}finally{r.f()}}}(r,e),e.setAttribute(Ko.HTTP_METHOD,"GET")}return e&&a.name===Do.DOCUMENT_LOAD&&function(t){document.referrer&&""!==document.referrer&&t.setAttribute("document.referrer",document.referrer),window.screen&&t.setAttribute("screen.xy",window.screen.width+"x"+window.screen.height)}(e),o(e,n,r)},r._initResourceSpan=function(t,e){var o;if(-1===ai.indexOf(t.initiatorType)&&!Sr(t.name,n.ignoreUrls)){var i=r._startSpan(Do.RESOURCE_FETCH,Po.FETCH_START,t,e);i&&(i.setAttribute(Vo,t.name),r.getConfig().ignoreNetworkEvents||(Bo(i,t),"number"==typeof t.responseStatus&&t.responseStatus>0&&i.setAttribute(Ko.HTTP_STATUS_CODE,t.responseStatus)),r._addCustomAttributesOnResourceSpan(i,t,null===(o=r.getConfig().applyCustomAttributesOnSpan)||void 0===o?void 0:o.resourceFetch),r._endSpan(i,Po.RESPONSE_END,t))}},t}return Ao(e,t),Oo(e)}(Qo),ui=performance,ci=Math.pow(10,6),li=Math.pow(10,9);function fi(t){var e=t/1e3;return[Math.trunc(e),Math.round(t%1e3*ci)]}function pi(){var t=ui.timeOrigin;if("number"!=typeof t){var e=ui;t=e.timing&&e.timing.fetchStart}return t}function di(t){return function(t,e){var n=[t[0]+e[0],t[1]+e[1]];n[1]>=li&&(n[1]-=li,n[0]+=1);return n}(fi(pi()),fi("number"==typeof t?t:ui.now()))}function _i(t){if(e=t,Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1])return t;if("number"==typeof t)return t=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function mi(t,e){return"string"==typeof e?t===e:!!t.match(e)}function gi(t,e){return e in t}function Oi(t,e,n,r){var o=void 0,i=void 0;gi(n,e)&&"number"==typeof n[e]&&(o=n[e]);var a=Ei.FETCH_START;if(gi(n,a)&&"number"==typeof n[a]&&(i=n[a]),void 0!==o&&void 0!==i&&o>=i)return t.addEvent(e,o),t}function Si(t,e){Oi(t,Ei.FETCH_START,e),Oi(t,Ei.DOMAIN_LOOKUP_START,e),Oi(t,Ei.DOMAIN_LOOKUP_END,e),Oi(t,Ei.CONNECT_START,e),gi(e,"name")&&e.name.startsWith("https:")&&Oi(t,Ei.SECURE_CONNECTION_START,e),Oi(t,Ei.CONNECT_END,e),Oi(t,Ei.REQUEST_START,e),Oi(t,Ei.RESPONSE_START,e),Oi(t,Ei.RESPONSE_END,e);var n=e[Ei.ENCODED_BODY_SIZE];void 0!==n&&t.setAttribute("http.response_content_length",n);var r=e[Ei.DECODED_BODY_SIZE];void 0!==r&&n!==r&&t.setAttribute("http.response_content_length_uncompressed",r)}function bi(){return"undefined"!=typeof location?location.origin:void 0}function wi(t,e,n,r,o,i){void 0===o&&(o=new WeakSet);var a=Ri(t),s=function(t,e,n,r,o){var i=hi(e),a=hi(n),s=r.filter((function(e){var n=hi(_i(e[Ei.FETCH_START])),r=hi(_i(e[Ei.RESPONSE_END]));return"xmlhttprequest"===e.initiatorType.toLowerCase()&&e.name===t&&n>=i&&r<=a}));s.length>0&&(s=s.filter((function(t){return!o.has(t)})));return s}(t=a.toString(),e,n,r,o);if(0===s.length)return{mainRequest:void 0};if(1===s.length)return{mainRequest:s[0]};var u=function(t){return t.slice().sort((function(t,e){var n=t[Ei.FETCH_START],r=e[Ei.FETCH_START];return n>r?1:n1){var c=u[0],l=function(t,e,n){for(var r,o=hi(n),i=hi(_i(e)),a=t[1],s=t.length,u=1;u=i&&(!r||f0&&this._diag.debug("headers inject skipped due to CORS policy"))}var r={};ne.inject(Gt.active(),r),Object.keys(r).forEach((function(e){t.setRequestHeader(e,String(r[e]))}))},e.prototype._addChildSpan=function(t,e){var n=this;Gt.with(oe.setSpan(Gt.active(),t),(function(){var t=n.tracer.startSpan("CORS Preflight",{startTime:e[Ei.FETCH_START]});n.getConfig().ignoreNetworkEvents||Si(t,e),t.end(e[Ei.RESPONSE_END])}))},e.prototype._addFinalSpanAttributes=function(t,e,n){if("string"==typeof n){var r=Ri(n);void 0!==e.status&&t.setAttribute("http.status_code",e.status),void 0!==e.statusText&&t.setAttribute(Li.HTTP_STATUS_TEXT,e.statusText),t.setAttribute("http.host",r.host),t.setAttribute("http.scheme",r.protocol.replace(":","")),t.setAttribute("http.user_agent",navigator.userAgent)}},e.prototype._applyAttributesAfterXHR=function(t,e){var n=this,r=this.getConfig().applyCustomAttributesOnSpan;"function"==typeof r&&Re((function(){return r(t,e)}),(function(t){t&&n._diag.error("applyCustomAttributesOnSpan",t)}))},e.prototype._addResourceObserver=function(t,e){var n=this._xhrMem.get(t);n&&"function"==typeof PerformanceObserver&&"function"==typeof PerformanceResourceTiming&&(n.createdResources={observer:new PerformanceObserver((function(t){var r=t.getEntries(),o=Ri(e);r.forEach((function(t){"xmlhttprequest"===t.initiatorType&&t.name===o.href&&n.createdResources&&n.createdResources.entries.push(t)}))})),entries:[]},n.createdResources.observer.observe({entryTypes:["resource"]}))},e.prototype._clearResources=function(){0===this._tasksCount&&this.getConfig().clearTimingResources&&(ui.clearResourceTimings(),this._xhrMem=new WeakMap,this._usedResources=new WeakSet)},e.prototype._findResourceAndAddNetworkEvents=function(t,e,n,r,o){if(n&&r&&o&&t.createdResources){var i=t.createdResources.entries;i&&i.length||(i=ui.getEntriesByType("resource"));var a=wi(Ri(n).href,r,o,i,this._usedResources);if(a.mainRequest){var s=a.mainRequest;this._markResourceAsUsed(s);var u=a.corsPreFlightRequest;u&&(this._addChildSpan(e,u),this._markResourceAsUsed(u)),this.getConfig().ignoreNetworkEvents||Si(e,s)}}},e.prototype._cleanPreviousSpanInformation=function(t){var e=this._xhrMem.get(t);if(e){var n=e.callbackToRemoveEvents;n&&n(),this._xhrMem.delete(t)}},e.prototype._createSpan=function(t,e,n){var r;if(!function(t,e){var n,r;if(!e)return!1;try{for(var o=yi(e),i=o.next();!i.done;i=o.next())if(mi(t,i.value))return!0}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1}(e,this.getConfig().ignoreUrls)){var o=n.toUpperCase(),i=this.tracer.startSpan(o,{kind:Nt.CLIENT,attributes:(r={},r["http.method"]=n,r["http.url"]=Ri(e).toString(),r)});return i.addEvent(Ti.METHOD_OPEN),this._cleanPreviousSpanInformation(t),this._xhrMem.set(t,{span:i,spanUrl:e}),i}this._diag.debug("ignoring span as url matches ignored url")},e.prototype._markResourceAsUsed=function(t){this._usedResources.add(t)},e.prototype._patchOpen=function(){var t=this;return function(e){var n=t;return function(){for(var t=[],r=0;r0&&void 0!==arguments[0]?arguments[0]:{};So(this,e),t=function(t,e,n){return e=Ro(e),wo(t,Ni()?Reflect.construct(e,n||[],Ro(t).constructor):e.apply(t,n))}(this,e,[n]);var r=t._createSpan.bind(t);t._createSpan=function(e,n,o){var i=r(e,n,o);return i&&(e.addEventListener("readystatechange",(function(){if(e.readyState===e.HEADERS_RECEIVED&&-1!==e.getAllResponseHeaders().toLowerCase().indexOf("server-timing")){var t=e.getResponseHeader("server-timing");null!==t&&ri(t,i)}})),i.setAttribute("component",t.moduleName),i.updateName("HTTP ".concat(o.toUpperCase()))),i};var o=t._addResourceObserver.bind(t);return t._addResourceObserver=function(t,e){"function"==typeof PerformanceObserver&&"function"==typeof PerformanceResourceTiming&&o(t,e)},t}return Ao(e,t),Oo(e)}(Ci);function Mi(){return Mi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=Ro(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},Mi.apply(null,arguments)}var ki="object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis:"object"===("undefined"==typeof self?"undefined":t(self))?self:"object"===("undefined"==typeof window?"undefined":t(window))?window:"object"===("undefined"==typeof global?"undefined":t(global))?global:{},Di=performance,xi=Math.pow(10,6),Ui=Math.pow(10,9);function Bi(t){var e=t/1e3;return[Math.trunc(e),Math.round(t%1e3*xi)]}function ji(){var t=Di.timeOrigin;if("number"!=typeof t){var e=Di;t=e.timing&&e.timing.fetchStart}return t}function Xi(t){return function(t,e){var n=[t[0]+e[0],t[1]+e[1]];n[1]>=Ui&&(n[1]-=Ui,n[0]+=1);return n}(Bi(ji()),Bi("number"==typeof t?t:Di.now()))}function Hi(t){if(e=t,Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1])return t;if("number"==typeof t)return t=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function qi(t,e){return"string"==typeof e?t===e:!!t.match(e)}function Wi(t,e){return e in t}function Zi(t,e,n,r){var o=void 0,i=void 0;Wi(n,e)&&"number"==typeof n[e]&&(o=n[e]);var a=Fi.FETCH_START;if(Wi(n,a)&&"number"==typeof n[a]&&(i=n[a]),void 0!==o&&void 0!==i&&o>=i)return t.addEvent(e,o),t}function Yi(t,e){Zi(t,Fi.FETCH_START,e),Zi(t,Fi.DOMAIN_LOOKUP_START,e),Zi(t,Fi.DOMAIN_LOOKUP_END,e),Zi(t,Fi.CONNECT_START,e),Wi(e,"name")&&e.name.startsWith("https:")&&Zi(t,Fi.SECURE_CONNECTION_START,e),Zi(t,Fi.CONNECT_END,e),Zi(t,Fi.REQUEST_START,e),Zi(t,Fi.RESPONSE_START,e),Zi(t,Fi.RESPONSE_END,e);var n=e[Fi.ENCODED_BODY_SIZE];void 0!==n&&t.setAttribute("http.response_content_length",n);var r=e[Fi.DECODED_BODY_SIZE];void 0!==r&&n!==r&&t.setAttribute("http.response_content_length_uncompressed",r)}function Ji(){return"undefined"!=typeof location?location.origin:void 0}function Qi(t,e,n,r,o,i){void 0===o&&(o=new WeakSet);var a=$i(t),s=function(t,e,n,r,o,i){var a=Gi(e),s=Gi(n),u=r.filter((function(e){var n=Gi(Hi(e[Fi.FETCH_START])),r=Gi(Hi(e[Fi.RESPONSE_END]));return e.initiatorType.toLowerCase()===i&&e.name===t&&n>=a&&r<=s}));u.length>0&&(u=u.filter((function(t){return!o.has(t)})));return u}(t=a.toString(),e,n,r,o,i);if(0===s.length)return{mainRequest:void 0};if(1===s.length)return{mainRequest:s[0]};var u=function(t){return t.slice().sort((function(t,e){var n=t[Fi.FETCH_START],r=e[Fi.FETCH_START];return n>r?1:n1){var c=u[0],l=function(t,e,n){for(var r,o=Gi(n),i=Gi(Hi(e)),a=t[1],s=t.length,u=1;u=i&&(!r||f0&&this._diag.debug("headers inject skipped due to CORS policy"))}if(t instanceof Request)ne.inject(Gt.active(),t.headers,{set:function(t,e,n){return t.set(e,"string"==typeof n?n:String(n))}});else if(t.headers instanceof Headers)ne.inject(Gt.active(),t.headers,{set:function(t,e,n){return t.set(e,"string"==typeof n?n:String(n))}});else if(t.headers instanceof Map)ne.inject(Gt.active(),t.headers,{set:function(t,e,n){return t.set(e,"string"==typeof n?n:String(n))}});else{n={};ne.inject(Gt.active(),n),t.headers=Object.assign({},n,t.headers||{})}},e.prototype._clearResources=function(){0===this._tasksCount&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)},e.prototype._createSpan=function(t,e){var n;if(void 0===e&&(e={}),!function(t,e){var n,r;if(!e)return!1;try{for(var o=Ki(e),i=o.next();!i.done;i=o.next())if(qi(t,i.value))return!0}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1}(t,this.getConfig().ignoreUrls)){var r=(e.method||"GET").toUpperCase(),o="HTTP "+r;return this.tracer.startSpan(o,{kind:Nt.CLIENT,attributes:(n={},n[zi.COMPONENT]=this.moduleName,n["http.method"]=r,n["http.url"]=t,n)})}this._diag.debug("ignoring span as url matches ignored url")},e.prototype._findResourceAndAddNetworkEvents=function(t,e,n){var r=e.entries;if(!r.length){if(!performance.getEntriesByType)return;r=performance.getEntriesByType("resource")}var o=Qi(e.spanUrl,e.startTime,n,r,this._usedResources,"fetch");if(o.mainRequest){var i=o.mainRequest;this._markResourceAsUsed(i);var a=o.corsPreFlightRequest;a&&(this._addChildSpan(t,a),this._markResourceAsUsed(a)),this.getConfig().ignoreNetworkEvents||Yi(t,i)}},e.prototype._markResourceAsUsed=function(t){this._usedResources.add(t)},e.prototype._endSpan=function(t,e,n){var r=this,o=Bi(Date.now()),i=Xi();this._addFinalSpanAttributes(t,n),setTimeout((function(){var n;null===(n=e.observer)||void 0===n||n.disconnect(),r._findResourceAndAddNetworkEvents(t,e,i),r._tasksCount--,r._clearResources(),t.end(o)}),300)},e.prototype._patchConstructor=function(){var t=this;return function(e){var n=t;return function(){for(var t=[],r=0;r=200&&e.status<400?n._endSpan(t,u,e):n._endSpan(t,u,{status:e.status,statusText:e.statusText,url:i})}function f(t,e,n){try{var r=n.clone(),o=n.clone(),i=r.body;if(i){var a=i.getReader(),s=function(){a.read().then((function(e){e.done?l(t,o):s()}),(function(e){c(t,e)}))};s()}else l(t,n)}finally{e(n)}}function p(t,e,n){try{c(t,n)}finally{e(n)}}return new Promise((function(t,r){return Gt.with(oe.setSpan(Gt.active(),s),(function(){return n._addHeaders(a,i),n._tasksCount++,e.apply(o,a instanceof Request?[a]:[i,a]).then(f.bind(o,s,t),p.bind(o,s,r))}))}))}}},e.prototype._applyAttributesAfterFetch=function(t,e,n){var r=this,o=this.getConfig().applyCustomAttributesOnSpan;o&&Re((function(){return o(t,e,n)}),(function(t){t&&r._diag.error("applyCustomAttributesOnSpan",t)}))},e.prototype._prepareSpanData=function(t){var e=Xi(),n=[];if("function"!=typeof PerformanceObserver)return{entries:n,startTime:e,spanUrl:t};var r=new PerformanceObserver((function(e){e.getEntries().forEach((function(e){"fetch"===e.initiatorType&&e.name===t&&n.push(e)}))}));return r.observe({entryTypes:["resource"]}),{entries:n,observer:r,startTime:e,spanUrl:t}},e.prototype.enable=function(){ra?this._diag.warn("this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()"):(Le(fetch)&&(this._unwrap(ki,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(ki,"fetch",this._patchConstructor()))},e.prototype.disable=function(){ra||(this._unwrap(ki,"fetch"),this._usedResources=new WeakSet)},e}(we);function ia(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ia=function(){return!!t})()}var aa,sa=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};So(this,e);var r=n.applyCustomAttributesOnSpan;n.applyCustomAttributesOnSpan=function(t,e,n){if(t.updateName("HTTP ".concat((e.method||"GET").toUpperCase())),t.setAttribute("component","fetch"),t&&n instanceof Response&&n.headers){var o=n.headers.get("Server-Timing");o&&ri(o,t)}r&&r(t,e,n)},t=function(t,e,n){return e=Ro(e),wo(t,ia()?Reflect.construct(e,n||[],Ro(t).constructor):e.apply(t,n))}(this,e,[n]);var o=t._addHeaders.bind(t);return t._addHeaders=function(t,e){try{t.headers&&Array.isArray(t.headers)&&(t.headers=new Headers(t.headers))}catch(t){Ft.error("Error fixing headers",t)}return o(t,e)},t}return Ao(e,t),Oo(e,[{key:"enable",value:function(){window.fetch&&function(t,e,n){var r=Mi(Ro(t.prototype),e,n);return"function"==typeof r?function(t){return r.apply(n,t)}:r}(e,"enable",this)([])}}])}(oa);function ua(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n0&&void 0!==arguments[0]?arguments[0]:{};if(So(this,n),!r.eventNames){var o=Object.assign({},Ta,r.events),i=Object.entries(o).filter((function(t){return la(t,2)[1]})).map((function(t){return la(t,1)[0]}));r.eventNames=i}e=function(t,e,n){return e=Ro(e),wo(t,Ea()?Reflect.construct(e,n||[],Ro(t).constructor):e.apply(t,n))}(this,n,[r]),e._routingTracer=oe.getTracer(ma,"1");var a=e._createSpan.bind(e);e._createSpan=function(t,n,r){t===document&&(t=document.documentElement);var o=a(t,n,r);return o&&o.setAttribute("component",e.moduleName),o};var s=e._patchAddEventListener.bind(e);return e._patchAddEventListener=function(){var e=s();return function(n){var r=e(n);return function(e,o,i){return function(e){return e&&("function"==typeof e||"object"===t(e)&&"function"==typeof e.handleEvent)}(o)?(null===i&&(i=void 0),r.call(this,e,o,i)):n.call(this,e,o,i)}}},e}return Ao(n,e),Oo(n,[{key:"_patchHistoryMethod",value:function(){var t=this;return function(e){return function(){for(var n=location.href,r=arguments.length,o=new Array(r),i=0;ie?t.substring(0,e):t}function Ba(t,e,n){return!1===t?t:(void 0!==t||!n)&&Object.assign({},e,t)}function ja(t){return"function"==typeof t}function Xa(t,e,n){var r=t[e];ge.wrap(t,e,n),t[e].toString=r.toString.bind(r)}function Ha(t){for(;t.__original&&t.__original!==t;)t=t.__original;return t}function Ga(t){return t}function Fa(t,e,n){var r=new XMLHttpRequest;r.open("POST",t);Object.entries(Object.assign(Object.assign({},{Accept:"application/json","Content-Type":"application/json"}),n)).forEach((function(t){var e=la(t,2),n=e[0],o=e[1];r.setRequestHeader(n,o)})),r.send(e)}Sa._toZipkinTags=ka,Sa._toZipkinAnnotations=Da;var Va="undefined"!=typeof navigator&&navigator.sendBeacon?function(t,e,n){var r=n?new Blob([e],n):e;navigator.sendBeacon(t,r)}:void 0,za=function(){return Oo((function t(e){var n=e.url,r=e.onAttributesSerializing,o=void 0===r?Ga:r,i=e.xhrSender,a=void 0===i?Fa:i,s=e.beaconSender,u=void 0===s?Va:s;So(this,t),this.beaconUrl=n,this._onAttributesSerializing=o,this._xhrSender=a,this._beaconSender=u}),[{key:"export",value:function(t,e){var n=this,r=t.map((function(t){return n._mapToZipkinSpan(t)})),o=JSON.stringify(r);document.hidden&&this._beaconSender&&o.length<=64e3?this._beaconSender(this.beaconUrl,o):this._xhrSender(this.beaconUrl,o,{Accept:"*/*","Content-Type":"text/plain;charset=UTF-8"}),e({code:Rn.SUCCESS})}},{key:"shutdown",value:function(){return Promise.resolve()}},{key:"_mapToZipkinSpan",value:function(t){var e=this._preTranslateSpan(t),n=Ma(e,"browser",Na,Ia);return this._postTranslateSpan(n)}},{key:"_postTranslateSpan",value:function(t){delete t.localEndpoint,t.name=Ua(t.name,4096);for(var e=0,n=Object.entries(t.tags);ea&&t.annotations&&(t.annotations=t.annotations.filter((function(t){return t.timestamp>a}))),t}},{key:"_preTranslateSpan",value:function(t){return{name:t.name,kind:t.kind,spanContext:t.spanContext.bind(t),parentSpanId:t.parentSpanId,startTime:t.startTime,endTime:t.endTime,status:t.status,links:t.links,events:t.events,duration:t.duration,ended:t.ended,instrumentationLibrary:t.instrumentationLibrary,resource:t.resource,attributes:this._onAttributesSerializing?this._onAttributesSerializing(t.attributes,t):t.attributes,droppedAttributesCount:t.droppedAttributesCount,droppedEventsCount:t.droppedEventsCount,droppedLinksCount:t.droppedLinksCount}}}])}();function Ka(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ka=function(){return!!t})()}var qa=/([\w]+:\/\/[^\s/]+\/[^\s?:#]+)/g;function Wa(t){return t&&""!==t.trim()&&!t.startsWith("[object")&&"error"!==t}function Za(t){if(void 0===t)return"(undefined)";if(t.toString)return t.toString();try{return Object.prototype.toString.call(t)}catch(t){return"(unknown)"}}function Ya(t,e){if(e&&e.stack&&Wa(e.stack)){t.setAttribute("error.stack",Ua(e.stack.toString(),4096));var n=(r=e.stack,o={},(i=r.match(qa))&&i.forEach((function(t){var e=t.split(/:(?=\d+$)/)[0],n=window.sourceMapIds;n&&n[e]&&!o[e]&&(o[e]=n[e])})),JSON.stringify(o));n&&t.setAttribute("error.source_map_ids",n)}var r,o,i}var Ja="errors",Qa=function(t){function e(t){var n;return So(this,e),n=function(t,e,n){return e=Ro(e),wo(t,Ka()?Reflect.construct(e,n||[],Ro(t).constructor):e.apply(t,n))}(this,e,[Ja,"1",t]),n._consoleErrorHandler=function(t){return function(){for(var e=arguments.length,r=new Array(e),o=0;oe||e>t.startTime+144e5};function es(t){return function(t){if(Array.isArray(t))return ua(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||ca(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ns(t,e){var n,r=0,o=null,i=null,a=function(){r=performance.now();try{t.apply(void 0,arguments)}finally{n=void 0}},s=function(){i&&(document.removeEventListener("visibilitychange",i,{capture:!0}),i=null)},u=function(){for(var t=arguments.length,e=new Array(t),n=0;n=e||0===r?a.apply(void 0,o):(l.apply(void 0,o),u.apply(void 0,o))};return f.flush=function(){try{n&&a.apply(void 0,es(n))}finally{s(),c()}},f}var rs=function(){return Oo((function t(e){So(this,t),this.key=e,this.throttledSetRaw=ns((function(t){document.cookie=t}),1e3)}),[{key:"flush",value:function(){this.throttledSetRaw.flush()}},{key:"get",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).forceDiskRead,e=void 0!==t&&t;return null===this.cachedValue||e?(this.cachedValue=this._deserialize(this._getRaw(this.key)),this.cachedValue):this.cachedValue}},{key:"remove",value:function(t){var e=t?"domain=".concat(t,";"):"",n="".concat(this.key,"=;").concat(e,"path=/;expires=Thu, 01 Jan 1970 00:00:00 GMT");this.throttledSetRaw(n),this.flush()}},{key:"set",value:function(t,e){this.cachedValue=t,this.throttledSetRaw(this._serialize(t,e))}},{key:"_deserialize",value:function(t){if(t){var e;try{e=JSON.parse(t)}catch(t){return}return e}}},{key:"_getRaw",value:function(t){for(var e=document.cookie.split(";"),n=0;n0&&void 0!==arguments[0]?arguments[0]:{}).forceDiskRead,e=void 0!==t&&t;return(void 0===this.cachedValue||e)&&(this.cachedValue=JSON.parse(is(this.key))),this.cachedValue}},{key:"remove",value:function(){ss(this.key),this.cachedValue=void 0,this.flush()}},{key:"set",value:function(t){this.cachedValue=t,this.throttledSetRaw(JSON.stringify(t))}}])}(),is=function(t){var e=null;try{e=window.localStorage.getItem(t)}catch(t){}return e},as=function(t,e){try{return window.localStorage.setItem(t,e),!0}catch(t){return!1}},ss=function(t){try{window.localStorage.removeItem(t)}catch(t){}};var us="0.21.0",cs=Symbol.for("opentelemetry.js.api.1"),ls="splunk.rum",fs="".concat(ls,".version");var ps,ds,_s=!1;function hs(){_s=!0}function Es(t){return window.__splunkRumIntegrationTestSessionId?window.__splunkRumIntegrationTestSessionId:t||xa(128)}function vs(t){return{expiresAt:Date.now()+$a,id:Es(t),startTime:Date.now()}}var Ts=null;function ys(){if(Ts)return Ts;throw new Error("Session store was accessed but not initialized.")}function ms(){var t=gs({forceDiskRead:!1});return t||(t=Os({forceStore:!0,inactive:!0})),t}function gs(e){var n,r=e.forceDiskRead,o=void 0!==r&&r,i=ys().get({forceDiskRead:o});if("object"===t(n=i)&&null!==n&&"id"in n&&"string"==typeof n.id&&32===n.id.length&&"startTime"in n&&"number"==typeof n.startTime&&(!ts(i)&&!function(t){return void 0!==t.expiresAt&&Date.now()>t.expiresAt}(i)))return i}function Os(t){var e=t.forceStore,n=t.hadActivity,r=t.inactive,o=void 0===r?void 0:r,i=gs({forceDiskRead:e}),a=!1;return i||(i=gs({forceDiskRead:!0}))||(i=vs(),_s=!0,a=!0),i.inactive!==o&&(i.inactive=o,a=!0),null==ds||ds.emit("session-changed",{sessionId:i.id}),(_s||n)&&(i.expiresAt=Date.now()+$a,ts(i)||(Ts.set(i,ps),a&&Ts.flush())),_s=!1,i}function Ss(){return"undefined"!=typeof window&&window.SplunkRumNative&&window.SplunkRumNative.getNativeSessionId}var bs=function(){return Oo((function t(){So(this,t)}),[{key:"forceFlush",value:function(){return Promise.resolve()}},{key:"onEnd",value:function(){}},{key:"onStart",value:function(){Os({forceStore:!1,hadActivity:!0})}},{key:"shutdown",value:function(){return Promise.resolve()}}])}(),ws=["click","scroll","mousedown","keydown","touchend","visibilitychange"];function Rs(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(Ss()){var i=vs(window.SplunkRumNative.getNativeSessionId());return Ts={get:function(){return i},flush:function(){},set:function(){throw new Error("Cannot override native RUM session ID.")},remove:function(){throw new Error("Cannot clear native RUM session ID.")}},{deinit:function(){},clearSession:function(){},flush:function(){}}}Ts=function(t){if("localStorage"==t.type)return new os(t.key);if("cookie"==t.type)return new rs(t.key);throw new Error("Unknown store type")}({type:t,key:"_splunk_rum_sid"}),r&&(ps=r),_s=!0,ds=n,ws.forEach((function(t){return document.addEventListener(t,hs,{capture:!0,passive:!0})})),o&&e.addSpanProcessor(new bs),Os({forceStore:!0});var a=function(){var t;return null===(t=globalThis[cs])||void 0===t?void 0:t[ls]}();return a&&(a.store=Ts),{deinit:function(){ws.forEach((function(t){return document.removeEventListener(t,hs)})),ds=void 0},clearSession:function(){Ts.remove(),Ts.flush()},flush:function(){Ts.flush()}}}function Ls(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ls=function(){return!!t})()}function As(t){var e="function"==typeof Map?new Map:void 0;return As=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return function(t,e,n){if(Ls())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&Lo(o,n.prototype),o}(t,arguments,Ro(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Lo(n,t)},As(t)}function Ps(t,e,n){return e=Ro(e),wo(t,Cs()?Reflect.construct(e,n||[],Ro(t).constructor):e.apply(t,n))}function Cs(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Cs=function(){return!!t})()}function Ns(t){return t.byteLength||t.size||t.length||void 0}var Is,Ms,ks,Ds,xs,Us=function(t){function e(t){var n;return So(this,e),(n=Ps(this,e,["splunk-websocket",us,t])).listener2ws2patched=new WeakMap,n._config=t,n}return Ao(e,t),Oo(e,[{key:"disable",value:function(){ge.unwrap(window,"WebSocket")}},{key:"enable",value:function(){var t=this;ge.wrap(window,"WebSocket",(function(){return function(e){function n(e,r){var o;if(So(this,n),Sr(e,t._config.ignoreUrls))return wo(o=Ps(this,n,[e,r]));var i=t.tracer.startSpan("connect",{kind:Nt.CLIENT,attributes:{component:"websocket"}});e&&i.setAttribute("http.url",e),r&&("string"==typeof r?i.setAttribute("protocols",r):i.setAttribute("protocols",JSON.stringify(r)));try{o=Ps(this,n,[e,r])}catch(e){throw t.endSpanExceptionally(i,e),e}return o.addEventListener("open",(function(){i.end()})),o.addEventListener("error",(function(e){i.isRecording()?t.endSpanExceptionally(i,new Error(e.error||e.message||"Could not connect.")):t.startSpan(this,"error",Nt.CLIENT).end()})),t.patchSend(bo(o)),t.patchEventListener(bo(o)),bo(o)}return Ao(n,e),Oo(n)}(As(WebSocket))}))}},{key:"init",value:function(){}},{key:"addPatchedListener",value:function(t,e,n){var r=this.listener2ws2patched.get(e);return r||(r=new Map,this.listener2ws2patched.set(e,r)),!r.has(t)&&(r.set(t,n),!0)}},{key:"endSpanExceptionally",value:function(t,e){t.setAttribute("error",!0),t.setAttribute("error.message",e.message),t.setAttribute("error.object",e.name?e.name:e.constructor&&e.constructor.name?e.constructor.name:"Error"),t.end()}},{key:"patchEventListener",value:function(t){var e=this,n=t.addEventListener.bind(t);t.addEventListener=function(r,o,i){if("message"===r){var a="boolean"==typeof i||null==i?void 0:i.once,s=function(){for(var n=arguments.length,r=new Array(n),i=0;i0?Ns(i[0]):void 0;r.setAttribute("http.request_content_length",s);var u=void 0;try{u=n.apply(t,i)}catch(t){throw e.endSpanExceptionally(r,t),t}return!1===u&&e.endSpanExceptionally(r,new Error("Failed to send frame.")),r.end(),u}}},{key:"removePatchedListener",value:function(t,e){var n=this.listener2ws2patched.get(e);if(n){var r=n.get(t);return r&&(n.delete(t),0===n.size&&this.listener2ws2patched.delete(t)),r}}},{key:"startSpan",value:function(t,e,n){var r=this.tracer.startSpan(e,{kind:n});return r.setAttribute("component","websocket"),r.setAttribute("protocol",t.protocol),r.setAttribute("http.url",t.url),r}}])}(we),Bs=-1,js=function(t){addEventListener("pageshow",(function(e){e.persisted&&(Bs=e.timeStamp,t(e))}),!0)},Xs=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},Hs=function(){var t=Xs();return t&&t.activationStart||0},Gs=function(t,e){var n=Xs(),r="navigate";return Bs>=0?r="back-forward-cache":n&&(document.prerendering||Hs()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},Fs=function(t,e,n){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var r=new PerformanceObserver((function(t){Promise.resolve().then((function(){e(t.getEntries())}))}));return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch(t){}},Vs=function(t,e,n,r){var o,i;return function(a){e.value>=0&&(a||r)&&((i=e.value-(o||0))||void 0===o)&&(o=e.value,e.delta=i,e.rating=function(t,e){return t>e[1]?"poor":t>e[0]?"needs-improvement":"good"}(e.value,n),t(e))}},zs=function(t){requestAnimationFrame((function(){return requestAnimationFrame((function(){return t()}))}))},Ks=function(t){var e=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||t(e)};addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0)},qs=function(t){var e=!1;return function(n){e||(t(n),e=!0)}},Ws=-1,Zs=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},Ys=function(t){"hidden"===document.visibilityState&&Ws>-1&&(Ws="visibilitychange"===t.type?t.timeStamp:0,Qs())},Js=function(){addEventListener("visibilitychange",Ys,!0),addEventListener("prerenderingchange",Ys,!0)},Qs=function(){removeEventListener("visibilitychange",Ys,!0),removeEventListener("prerenderingchange",Ys,!0)},$s=function(){return Ws<0&&(Ws=Zs(),Js(),js((function(){setTimeout((function(){Ws=Zs(),Js()}),0)}))),{get firstHiddenTime(){return Ws}}},tu=function(t){document.prerendering?addEventListener("prerenderingchange",(function(){return t()}),!0):t()},eu=[1800,3e3],nu=[.1,.25],ru=function(t,e){e=e||{},function(t,e){e=e||{},tu((function(){var n,r=$s(),o=Gs("FCP"),i=Fs("paint",(function(t){t.forEach((function(t){"first-contentful-paint"===t.name&&(i.disconnect(),t.startTimer.value&&(r.value=o,r.entries=i,n())},s=Fs("layout-shift",a);s&&(n=Vs(t,r,nu,e.reportAllChanges),Ks((function(){a(s.takeRecords()),n(!0)})),js((function(){o=0,r=Gs("CLS",0),n=Vs(t,r,nu,e.reportAllChanges),zs((function(){return n()}))})),setTimeout(n,0))})))},ou={passive:!0,capture:!0},iu=new Date,au=function(t,e){Is||(Is=e,Ms=t,ks=new Date,cu(removeEventListener),su())},su=function(){if(Ms>=0&&Ms1e12?new Date:performance.now())-t.timeStamp;"pointerdown"==t.type?function(t,e){var n=function(){au(t,e),o()},r=function(){o()},o=function(){removeEventListener("pointerup",n,ou),removeEventListener("pointercancel",r,ou)};addEventListener("pointerup",n,ou),addEventListener("pointercancel",r,ou)}(e,t):au(e,t)}},cu=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach((function(e){return t(e,uu,ou)}))},lu=[100,300],fu=0,pu=1/0,du=0,_u=function(t){t.forEach((function(t){t.interactionId&&(pu=Math.min(pu,t.interactionId),du=Math.max(du,t.interactionId),fu=du?(du-pu)/7+1:0)}))},hu=function(){return xs?fu:performance.interactionCount||0},Eu=function(){"interactionCount"in performance||xs||(xs=Fs("event",_u,{type:"event",buffered:!0,durationThreshold:0}))},vu=[200,500],Tu=0,yu=function(){return hu()-Tu},mu=[],gu={},Ou=function(t){var e=mu[mu.length-1],n=gu[t.interactionId];if(n||mu.length<10||t.duration>e.latency){if(n)n.entries.push(t),n.latency=Math.max(n.latency,t.duration);else{var r={id:t.interactionId,latency:t.duration,entries:[t]};gu[r.id]=r,mu.push(r)}mu.sort((function(t,e){return e.latency-t.latency})),mu.splice(10).forEach((function(t){delete gu[t.id]}))}},Su=[2500,4e3],bu={},wu={};function Ru(t,e,n){if(!wu[e]){wu[e]=!0;var r=n.value,o=Date.now(),i=t.startSpan("webvitals",{startTime:o});i.setAttribute(e,r),i.end(o)}}function Lu(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.getTracer("webvitals");!1!==n.fid&&function(t,e){e=e||{},tu((function(){var n,r=$s(),o=Gs("FID"),i=function(t){t.startTime0&&(o.value=0,o.entries=[]),r(!0)})),js((function(){mu=[],Tu=hu(),o=Gs("INP"),r=Vs(t,o,vu,e.reportAllChanges)})))}))}((function(t){Ru(r,"inp",t)}),"object"===t(n.inp)?n.inp:void 0)}function Au(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Au=function(){return!!t})()}var Pu="longtask",Cu="splunk-longtask",Nu=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return So(this,e),t=function(t,e,n){return e=Ro(e),wo(t,Au()?Reflect.construct(e,n||[],Ro(t).constructor):e.apply(t,n))}(this,e,[Cu,us,Object.assign({},n)]),t.initOptions=r,t}return Ao(e,t),Oo(e,[{key:"disable",value:function(){this.isSupported()&&this._longtaskObserver.disconnect()}},{key:"enable",value:function(){var t=this;this.isSupported()&&(this._longtaskObserver=new PerformanceObserver((function(e){e.getEntries().forEach((function(e){return t._createSpanFromEntry(e)}))})),this._longtaskObserver.observe({type:Pu,buffered:!0}))}},{key:"init",value:function(){}},{key:"_createSpanFromEntry",value:function(t){var e=gs({forceDiskRead:!1}),n=!e||e.inactive;if(!this.initOptions._experimental_longtaskNoStartSession||!n){var r=this.tracer.startSpan(Pu,{startTime:t.startTime});r.setAttribute("component",Cu),r.setAttribute("longtask.name",t.name),r.setAttribute("longtask.entry_type",t.entryType),r.setAttribute("longtask.duration",t.duration);var o=t.attribution;Array.isArray(o)&&o.forEach((function(t,e){var n=t>1?"longtask.attribution[".concat(e,"]"):"longtask.attribution";r.setAttribute("".concat(n,".name"),t.name),r.setAttribute("".concat(n,".entry_type"),t.entryType),r.setAttribute("".concat(n,".start_time"),t.startTime),r.setAttribute("".concat(n,".duration"),t.duration),r.setAttribute("".concat(n,".container_type"),t.containerType),r.setAttribute("".concat(n,".container_src"),t.containerSrc),r.setAttribute("".concat(n,".container_id"),t.containerId),r.setAttribute("".concat(n,".container_name"),t.containerName)})),r.end(t.startTime+t.duration)}}},{key:"isSupported",value:function(){return(window.PerformanceObserver&&PerformanceObserver.supportedEntryTypes||[]).includes(Pu)}}])}(we);function Iu(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Iu=function(){return!!t})()}var Mu=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return So(this,e),t=function(t,e,n){return e=Ro(e),wo(t,Iu()?Reflect.construct(e,n||[],Ro(t).constructor):e.apply(t,n))}(this,e,["splunk-visibility",us,Object.assign({},n)]),t.unloading=!1,t}return Ao(e,t),Oo(e,[{key:"disable",value:function(){window.removeEventListener("beforeunload",this.unloadListener),window.removeEventListener("visibilitychange",this.visibilityListener)}},{key:"enable",value:function(){var t=this;document.hidden&&this._createSpan(document.hidden),this.unloadListener=function(){t.unloading=!0},this.visibilityListener=function(){t.unloading||t._createSpan(document.hidden)},window.addEventListener("beforeunload",this.unloadListener),window.addEventListener("visibilitychange",this.visibilityListener)}},{key:"init",value:function(){}},{key:"_createSpan",value:function(t){var e=Date.now(),n=this.tracer.startSpan("visibility",{startTime:e});n.setAttribute("hidden",t),n.end(e)}}])}(we);function ku(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ku=function(){return!!t})()}var Du=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return So(this,e),t=function(t,e,n){return e=Ro(e),wo(t,ku()?Reflect.construct(e,n||[],Ro(t).constructor):e.apply(t,n))}(this,e,["splunk-connectivity",us,Object.assign({},n)]),t.offlineStart=navigator.onLine?null:Date.now(),t}return Ao(e,t),Oo(e,[{key:"disable",value:function(){window.removeEventListener("offline",this.offlineListener),window.removeEventListener("online",this.onlineListener)}},{key:"enable",value:function(){var t=this;this.offlineListener=function(){t.offlineStart=Date.now()},this.onlineListener=function(){t.offlineStart&&(t._createSpan(!1,t.offlineStart),t._createSpan(!0,Date.now()))},window.addEventListener("offline",this.offlineListener),window.addEventListener("online",this.onlineListener)}},{key:"init",value:function(){}},{key:"_createSpan",value:function(t,e){var n=this.tracer.startSpan("connectivity",{startTime:e});n.setAttribute("online",t),n.end(e)}}])}(we);function xu(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(xu=function(){return!!t})()}var Uu="splunk-post-doc-load-resource",Bu=["img","script"],ju=function(t){return t instanceof HTMLScriptElement||t instanceof HTMLImageElement},Xu=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};So(this,e);var r=Object.assign({},{allowedInitiatorTypes:Bu},n);return t=function(t,e,n){return e=Ro(e),wo(t,xu()?Reflect.construct(e,n||[],Ro(t).constructor):e.apply(t,n))}(this,e,[Uu,us,r]),t.config=r,t.urlToContextMap={},t}return Ao(e,t),Oo(e,[{key:"disable",value:function(){this.performanceObserver&&this.performanceObserver.disconnect(),this.headMutationObserver&&this.headMutationObserver.disconnect()}},{key:"enable",value:function(){var t=this;window.PerformanceObserver&&("complete"===window.document.readyState?this._startPerformanceObserver():window.addEventListener("load",(function(e){t._startPerformanceObserver(e)}))),window.MutationObserver&&this._startHeadMutationObserver()}},{key:"init",value:function(){}},{key:"onBeforeContextChange",value:function(){this._processHeadMutationObserverRecords(this.headMutationObserver.takeRecords())}},{key:"_createSpan",value:function(t){if(!Sr(t.name,this.config.ignoreUrls)){var e=new URL(t.name,location.origin),n=this.tracer.startSpan("resourceFetch",{startTime:t.fetchStart},this.urlToContextMap[e.toString()]);n.setAttribute("component",Uu),n.setAttribute(Ko.HTTP_URL,t.name),n.setAttribute(Ko.HTTP_METHOD,"GET"),Bo(n,t);var r=t.responseEnd;r&&r>0?n.end(r):n.end()}}},{key:"_processHeadMutationObserverRecords",value:function(t){var e=this;Gt.active()!==I&&t.flatMap((function(t){return Array.from(t.addedNodes||[])})).filter(ju).forEach((function(t){var n=t.getAttribute("src");if(n){var r=new URL(n,location.origin);e.urlToContextMap[r.toString()]=Gt.active()}}))}},{key:"_startHeadMutationObserver",value:function(){this.headMutationObserver=new MutationObserver(this._processHeadMutationObserverRecords.bind(this)),this.headMutationObserver.observe(document.head,{childList:!0})}},{key:"_startPerformanceObserver",value:function(t){var e=this;t&&!t.isTrusted||this.performanceObserver||(this.performanceObserver=new PerformanceObserver((function(t){"complete"===window.document.readyState&&t.getEntries().forEach((function(t){e.config.allowedInitiatorTypes.includes(t.initiatorType)&&e._createSpan(t)}))})),this.performanceObserver.observe({entryTypes:["resource"]}))}}])}(we);function Hu(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Hu=function(){return!!t})()}var Gu=function(t){function e(){return So(this,e),function(t,e,n){return e=Ro(e),wo(t,Hu()?Reflect.construct(e,n||[],Ro(t).constructor):e.apply(t,n))}(this,e,arguments)}return Ao(e,t),Oo(e,[{key:"shutdown",value:function(){var t=this;return new Promise((function(t){ne.disable(),Gt.disable(),oe.disable(),t()})).then((function(){return function(t,e,n,r){var o=Mi(Ro(t.prototype),e,n);return 2&r&&"function"==typeof o?function(t){return o.apply(n,t)}:o}(e,"shutdown",t,3)([])}))}}])}(ko),Fu=function(){return Oo((function t(){So(this,t),this.events={}}),[{key:"addEventListener",value:function(t,e){this.events[t]||(this.events[t]=[]),this.events[t].push(e)}},{key:"emit",value:function(t,e){var n=this.events[t];n&&n.forEach((function(t){Promise.resolve({payload:e}).then(t)}))}},{key:"removeEventListener",value:function(t,e){if(this.events[t]){var n=this.events[t].indexOf(e);n>=0&&this.events[t].splice(n,1)}}}])}();function Vu(t,e,n){return e=Ro(e),wo(t,zu()?Reflect.construct(e,n||[],Ro(t).constructor):e.apply(t,n))}function zu(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(zu=function(){return!!t})()}var Ku="__splunk_context",qu=function(){return Oo((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};So(this,t),this._config=e,this._currentContext=I,this._contextResumingListeners=new WeakMap,this._enabled=!1,this._hashChangeContext=null,this._messagePorts=new WeakMap}),[{key:"active",value:function(){return this._currentContext}},{key:"bind",value:function(t,e){return ja(e)?this._bindFunction(e,t):e}},{key:"disable",value:function(){return this._enabled?(this._config.async&&(this._unpatchTimeouts(),this._unpatchPromise(),this._unpatchMutationObserver(),this._unpatchEvents(),this._unpatchMessageChannel()),this._currentContext=I,this._enabled=!1,this):this}},{key:"enable",value:function(){return this._enabled||(this._config.async&&(this._patchTimeouts(),this._patchPromise(),this._patchMutationObserver(),this._patchEvents(),this._patchMessageChannel()),this._enabled=!0,this._currentContext=I),this}},{key:"with",value:function(t,e,n){var r,o,i,a,s=this;try{null===(o=(r=this._config).onBeforeContextStart)||void 0===o||o.call(r)}catch(t){}var u=this._currentContext;this._currentContext=t||I;var c=location.hash;try{for(var l=arguments.length,f=new Array(l>3?l-3:0),p=3;p1&&void 0!==arguments[1]?arguments[1]:I,n=this,r=function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a0&&void 0!==arguments[0]?arguments[0]:{},n=e.ratio,r=void 0===n?1:n,o=e.sampled,i=void 0===o?new Xr:o,a=e.notSampled,s=void 0===a?new jr:a;So(this,t),this.ratio=this._normalize(r),this.upperBound=Math.floor(4294967295*this.ratio),this.sampled=i,this.notSampled=s}),[{key:"shouldSample",value:function(t,e,n,r,o,i){var a=ms().id;return this.currentSessionId!==a&&(this.currentSessionSampled=this._accumulate(a)>>0}return e}},{key:"_normalize",value:function(t){return"number"!=typeof t||isNaN(t)?0:t>=1?1:t<=0?0:t}}])}();function oc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(oc=function(){return!!t})()}var ic="messaging.socket.io.namespace",ac="messaging.socket.io.event_name";var sc,uc=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],cc=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return So(this,e),t=function(t,e,n){return e=Ro(e),wo(t,oc()?Reflect.construct(e,n||[],Ro(t).constructor):e.apply(t,n))}(this,e,["splunk-socket.io-client",us,Object.assign({target:"io"},n)]),t.listeners=new WeakMap,t}return Ao(e,t),Oo(e,[{key:"disable",value:function(){this._onDisable&&(this._onDisable(),this._onDisable=void 0)}},{key:"enable",value:function(){var t=this,e=this.getConfig();e.target&&("string"==typeof e.target?this._onDisable=function(t,e){if(window[t])return e(window[t]),function(){};var n=window[t],r=!1;return Object.defineProperty(window,t,{get:function(){return n},set:function(n){delete window[t],r=!0,window[t]=n,e(n)},configurable:!0,enumerable:!1}),function(){r||window[t]!==n||(delete window[t],void 0!==n&&(window[t]=n))}}(e.target,(function(e){return t.patchSocketIo(e)})):this.patchSocketIo(e.target))}},{key:"getConfig",value:function(){return this._config}},{key:"init",value:function(){}},{key:"patchSocketIo",value:function(t){var e=this;if(function(t){return"function"==typeof t&&"function"==typeof t.Socket}(t)){var r=this;this._wrap(t.Socket.prototype,"emit",(function(t){return function(e){for(var o=this,i=arguments.length,a=new Array(i>1?i-1:0),s=1;s0&&(o=L(e.join(";"))),{key:i,value:a,metadata:o}}}}}(t)})).filter((function(t){return void 0!==t&&t.value.length>0})).reduce((function(t,e){return t[e.key]=e.value,t}),{})}window&&window.__read,function(t){t.AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio"}(sc||(sc={}));var fc=["OTEL_SDK_DISABLED"];function pc(t){return fc.indexOf(t)>-1}var dc=["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 _c(t){return dc.indexOf(t)>-1}var hc=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function Ec(t){return hc.indexOf(t)>-1}var vc=1/0,Tc={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:d.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:vc,OTEL_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:vc,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:128,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:vc,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:128,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:sc.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"};function yc(t,e,n){if(void 0!==n[t]){var r=String(n[t]);e[t]="true"===r.toLowerCase()}}function mc(t,e,n,r,o){if(void 0===r&&(r=-1/0),void 0===o&&(o=1/0),void 0!==n[t]){var i=Number(n[t]);isNaN(i)||(e[t]=io?o:i)}}function gc(t,e,n,r){void 0===r&&(r=",");var o=n[t];"string"==typeof o&&(e[t]=o.split(r).map((function(t){return t.trim()})))}var Oc={ALL:d.ALL,VERBOSE:d.VERBOSE,DEBUG:d.DEBUG,INFO:d.INFO,WARN:d.WARN,ERROR:d.ERROR,NONE:d.NONE};function Sc(t,e,n){var r=n[t];if("string"==typeof r){var o=Oc[r.toUpperCase()];null!=o&&(e[t]=o)}}var bc="object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis:"object"===("undefined"==typeof self?"undefined":t(self))?self:"object"===("undefined"==typeof window?"undefined":t(window))?window:"object"===("undefined"==typeof global?"undefined":t(global))?global:{};function wc(){var t=function(t){var e={};for(var n in Tc){var r=n;if("OTEL_LOG_LEVEL"===r)Sc(r,e,t);else if(pc(r))yc(r,e,t);else if(_c(r))mc(r,e,t);else if(Ec(r))gc(r,e,t);else{var o=t[r];null!=o&&(e[r]=String(o))}}return e}(bc);return Object.assign({},Tc,t)}var Rc;function Lc(t){return"string"!=typeof t||0===t.length?{}:t.split(",").map((function(t){return function(t){var e=t.split(";");if(!(e.length<=0)){var n=e.shift();if(n){var r=n.indexOf("=");if(!(r<=0)){var o,i=decodeURIComponent(n.substring(0,r).trim()),a=decodeURIComponent(n.substring(r+1).trim());return e.length>0&&(o=L(e.join(";"))),{key:i,value:a,metadata:o}}}}}(t)})).filter((function(t){return void 0!==t&&t.value.length>0})).reduce((function(t,e){return t[e.key]=e.value,t}),{})}window&&window.__read,function(t){t.AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio"}(Rc||(Rc={}));var Ac=["OTEL_SDK_DISABLED"];function Pc(t){return Ac.indexOf(t)>-1}var Cc=["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 Nc(t){return Cc.indexOf(t)>-1}var Ic=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function Mc(t){return Ic.indexOf(t)>-1}var kc=1/0,Dc={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:d.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:kc,OTEL_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:kc,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:128,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:kc,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:128,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:Rc.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"};function xc(t,e,n){if(void 0!==n[t]){var r=String(n[t]);e[t]="true"===r.toLowerCase()}}function Uc(t,e,n,r,o){if(void 0===r&&(r=-1/0),void 0===o&&(o=1/0),void 0!==n[t]){var i=Number(n[t]);isNaN(i)||(e[t]=io?o:i)}}function Bc(t,e,n,r){void 0===r&&(r=",");var o=n[t];"string"==typeof o&&(e[t]=o.split(r).map((function(t){return t.trim()})))}var jc={ALL:d.ALL,VERBOSE:d.VERBOSE,DEBUG:d.DEBUG,INFO:d.INFO,WARN:d.WARN,ERROR:d.ERROR,NONE:d.NONE};function Xc(t,e,n){var r=n[t];if("string"==typeof r){var o=jc[r.toUpperCase()];null!=o&&(e[t]=o)}}var Hc,Gc="object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis:"object"===("undefined"==typeof self?"undefined":t(self))?self:"object"===("undefined"==typeof window?"undefined":t(window))?window:"object"===("undefined"==typeof global?"undefined":t(global))?global:{};function Fc(){var t=function(t){var e={};for(var n in Dc){var r=n;if("OTEL_LOG_LEVEL"===r)Xc(r,e,t);else if(Pc(r))xc(r,e,t);else if(Nc(r))Uc(r,e,t);else if(Mc(r))Bc(r,e,t);else{var o=t[r];null!=o&&(e[r]=String(o))}}return e}(Gc);return Object.assign({},Dc,t)}!function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"}(Hc||(Hc={}));var Vc=function(){function t(){var t=this;this._promise=new Promise((function(e,n){t._resolve=e,t._reject=n}))}return Object.defineProperty(t.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),t.prototype.resolve=function(t){this._resolve(t)},t.prototype.reject=function(t){this._reject(t)},t}(),zc=window&&window.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Kc=window&&window.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Zc=1e4;function Yc(t){return"number"==typeof t?t<=0?Jc(t,1e4):t:function(){var t,e=Number(null!==(t=Fc().OTEL_EXPORTER_OTLP_TRACES_TIMEOUT)&&void 0!==t?t:Fc().OTEL_EXPORTER_OTLP_TIMEOUT);return e<=0?Jc(e,Zc):e}()}function Jc(t,e){return Ft.warn("Timeout must be greater than 0",t),e}var Qc=function(){function t(t){void 0===t&&(t={}),this._sendingPromises=[],this.url=this.getDefaultUrl(t),"string"==typeof t.hostname&&(this.hostname=t.hostname),this.shutdown=this.shutdown.bind(this),this._shutdownOnce=new qc(this._shutdown,this),this._concurrencyLimit="number"==typeof t.concurrencyLimit?t.concurrencyLimit:30,this.timeoutMillis=Yc(t.timeoutMillis),this.onInit(t)}return t.prototype.export=function(t,e){this._shutdownOnce.isCalled?e({code:Hc.FAILED,error:new Error("Exporter has been shutdown")}):this._sendingPromises.length>=this._concurrencyLimit?e({code:Hc.FAILED,error:new Error("Concurrent export limit reached")}):this._export(t).then((function(){e({code:Hc.SUCCESS})})).catch((function(t){e({code:Hc.FAILED,error:t})}))},t.prototype._export=function(t){var e=this;return new Promise((function(n,r){try{Ft.debug("items to be sent",t),e.send(t,n,r)}catch(t){r(t)}}))},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype.forceFlush=function(){return Promise.all(this._sendingPromises).then((function(){}))},t.prototype._shutdown=function(){return Ft.debug("shutdown started"),this.onShutdown(),this.forceFlush()},t}(),$c=window&&window.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tl=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.name="OTLPExporterError",o.data=r,o.code=n,o}return $c(e,t),e}(Error),el=window&&window.__assign||function(){return el=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function rl(t,e,n,r,o,i){var a,s,u=!1,c=setTimeout((function(){if(clearTimeout(a),u=!0,s.readyState===XMLHttpRequest.DONE){var t=new tl("Request Timeout");i(t)}else s.abort()}),r),l=function(r,f){void 0===r&&(r=5),void 0===f&&(f=1e3),(s=new XMLHttpRequest).open("POST",e);Object.entries(el(el({},{Accept:"application/json","Content-Type":"application/json"}),n)).forEach((function(t){var e=nl(t,2),n=e[0],r=e[1];s.setRequestHeader(n,r)})),s.send(t),s.onreadystatechange=function(){if(s.readyState===XMLHttpRequest.DONE&&!1===u)if(s.status>=200&&s.status<=299)Ft.debug("xhr success",t),o(),clearTimeout(c),clearTimeout(a);else if(s.status&&(p=s.status,[429,502,503,504].includes(p))&&r>0){var e=void 0;f*=1.5,e=s.getResponseHeader("Retry-After")?function(t){if(null==t)return-1;var e=Number.parseInt(t,10);if(Number.isInteger(e))return e>0?1e3*e:-1;var n=new Date(t).getTime()-Date.now();return n>=0?n:0}(s.getResponseHeader("Retry-After")):Math.round(Math.random()*(5e3-f)+f),a=setTimeout((function(){l(r-1,f)}),e)}else{var n=new tl("Failed to export with XHR (status: "+s.status+")",s.status);i(n),clearTimeout(c),clearTimeout(a)}var p},s.onabort=function(){if(u){var t=new tl("Request Timeout");i(t)}clearTimeout(c),clearTimeout(a)},s.onerror=function(){if(u){var t=new tl("Request Timeout");i(t)}clearTimeout(c),clearTimeout(a)}};l()}var ol=window&&window.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),il=window&&window.__assign||function(){return il=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function ul(t){for(var e=new Uint8Array(t.length/2),n=0,r=0;r>BigInt(32)))}}var pl="undefined"!=typeof BigInt?function(t){return ll(t).toString()}:function(t){return t[0]*cl+t[1]};function dl(t){return t}function _l(t){if(void 0!==t)return ul(t)}var hl={encodeHrTime:fl,encodeSpanContext:ul,encodeOptionalSpanContext:_l};var El=window&&window.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function vl(t){return Object.keys(t).map((function(e){return Tl(e,t[e])}))}function Tl(t,e){return{key:t,value:yl(e)}}function yl(e){var n=t(e);return"string"===n?{stringValue:e}:"number"===n?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:"boolean"===n?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(yl)}}:"object"===n&&null!=e?{kvlistValue:{values:Object.entries(e).map((function(t){var e=El(t,2);return Tl(e[0],e[1])}))}}:{}}function ml(t,e){var n,r=t.spanContext(),o=t.status;return{traceId:e.encodeSpanContext(r.traceId),spanId:e.encodeSpanContext(r.spanId),parentSpanId:e.encodeOptionalSpanContext(t.parentSpanId),traceState:null===(n=r.traceState)||void 0===n?void 0:n.serialize(),name:t.name,kind:null==t.kind?0:t.kind+1,startTimeUnixNano:e.encodeHrTime(t.startTime),endTimeUnixNano:e.encodeHrTime(t.endTime),attributes:vl(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map((function(t){return function(t,e){return{attributes:t.attributes?vl(t.attributes):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}(t,e)})),droppedEventsCount:t.droppedEventsCount,status:{code:o.code,message:o.message},links:t.links.map((function(t){return function(t,e){var n;return{attributes:t.attributes?vl(t.attributes):[],spanId:e.encodeSpanContext(t.context.spanId),traceId:e.encodeSpanContext(t.context.traceId),traceState:null===(n=t.context.traceState)||void 0===n?void 0:n.serialize(),droppedAttributesCount:t.droppedAttributesCount||0}}(t,e)})),droppedLinksCount:t.droppedLinksCount}}function gl(t){return{attributes:vl(t.attributes),droppedAttributesCount:0}}var Ol=window&&window.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Sl=window&&window.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function bl(t,e){var n=function(t){var e,n;if(void 0===t)return hl;var r=null===(e=t.useLongBits)||void 0===e||e,o=null!==(n=t.useHex)&&void 0!==n&&n;return{encodeHrTime:r?fl:pl,encodeSpanContext:o?dl:ul,encodeOptionalSpanContext:o?dl:_l}}(e);return{resourceSpans:wl(t,n)}}function wl(t,e){for(var n,r=function(t){var e,n,r=new Map;try{for(var o=Ol(t),i=o.next();!i.done;i=o.next()){var a=i.value,s=r.get(a.resource);s||(s=new Map,r.set(a.resource,s));var u=a.instrumentationLibrary.name+"@"+(a.instrumentationLibrary.version||"")+":"+(a.instrumentationLibrary.schemaUrl||""),c=s.get(u);c||(c=[],s.set(u,c)),c.push(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}(t),o=[],i=r.entries(),a=i.next();!a.done;){for(var s=Sl(a.value,2),u=s[0],c=[],l=s[1].values(),f=l.next();!f.done;){var p=f.value;if(p.length>0){var d=p.map((function(t){return ml(t,e)}));c.push({scope:(n=p[0].instrumentationLibrary,{name:n.name,version:n.version}),spans:d,schemaUrl:p[0].instrumentationLibrary.schemaUrl})}f=l.next()}var _={resource:gl(u),scopeSpans:c,schemaUrl:void 0};o.push(_),a=i.next()}return o}var Rl={serializeRequest:function(t){var e=bl(t,{useHex:!0,useLongBits:!1});return(new TextEncoder).encode(JSON.stringify(e))},deserializeResponse:function(t){var e=new TextDecoder;return JSON.parse(e.decode(t))}},Ll=window&&window.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Al="v1/traces",Pl="http://localhost:4318/"+Al;function Cl(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Cl=function(){return!!t})()}var Nl=function(t){function e(t){var n;return So(this,e),n=function(t,e,n){return e=Ro(e),wo(t,Cl()?Reflect.construct(e,n||[],Ro(t).constructor):e.apply(t,n))}(this,e,[t]),n._beaconSender=Va,n._xhrSender=Fa,n._onAttributesSerializing=t.onAttributesSerializing||Ga,n}return Ao(e,t),Oo(e,[{key:"send",value:function(t,e){var n,r=this;if(this._shutdownOnce.isCalled)Ft.debug("Shutdown already started. Cannot send objects");else{t=t.map((function(t){return t.attributes=r._onAttributesSerializing?r._onAttributesSerializing(t.attributes,t):t.attributes,t}));var o=null!==(n=this._serializer.serializeRequest(t))&&void 0!==n?n:new Uint8Array;document.hidden&&this._beaconSender&&o.length<=64e3?this._beaconSender(this.url,o,{type:"application/json"}):this._xhrSender(this.url,o,Object.assign({Accept:"application/json","Content-Type":"application/json"},this.headers)),e()}}}])}(function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e,Rl,"application/json")||this;return n._headers=Object.assign(n._headers,lc(wc().OTEL_EXPORTER_OTLP_TRACES_HEADERS)),n}return Ll(e,t),e.prototype.getDefaultUrl=function(t){return"string"==typeof t.url?t.url:wc().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT.length>0?function(t){try{var e=new URL(t);return""===e.pathname&&(e.pathname=e.pathname+"/"),e.toString()}catch(e){return Ft.warn("Could not parse export URL: '"+t+"'"),t}}(wc().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT):wc().OTEL_EXPORTER_OTLP_ENDPOINT.length>0?(e=wc().OTEL_EXPORTER_OTLP_ENDPOINT,n=Al,e.endsWith("/")||(e+="/"),e+n):Pl;var e,n},e}(al)),Il="browser_instance_id",Ml=function(){return Oo((function t(){So(this,t)}),null,[{key:"id",get:function(){if(null!==this._id)return this._id;var t=function(t){try{return window.sessionStorage.getItem(t)}catch(t){return}}(Il);return t?this._id=t:null===t?(t=xa(64),this._id=t,function(t,e){try{return window.sessionStorage.setItem(t,e),!0}catch(t){return!1}}(Il,t)):this._id=void 0,this._id}}])}();Ml._id=null;var kl=function(){return Oo((function t(e){So(this,t),this.options=e}),[{key:"shouldSample",value:function(t,e,n,r,o,i){return ms(),this.options.decider.shouldSample(t,e,n,r,o,i)}},{key:"toString",value:function(){return"SplunkSampler{decider=".concat(this.options.decider.toString(),"}")}}])}(),Dl={disableBots:!1,disableAutomationFrameworks:!1,applicationName:"unknown-browser-app",beaconEndpoint:void 0,bufferTimeout:4e3,bufferSize:50,instrumentations:{},exporter:{factory:function(t){return t.otlp?new Nl(t):new za(t)}},persistence:"cookie",spanProcessor:{factory:function(t,e){return new Zr(t,e)}},rumAccessToken:void 0};function xl(t,e,n){!(e in t)||n in t&&t[n]!==Dl[n]||(t[n]=t[e])}var Ul=[{Instrument:si,confKey:"document",disable:!1},{Instrument:Ii,confKey:"xhr",disable:!1},{Instrument:Oa,confKey:"interactions",disable:!1},{Instrument:Xu,confKey:"postload",disable:!1},{Instrument:sa,confKey:"fetch",disable:!1},{Instrument:Us,confKey:"websocket",disable:!0},{Instrument:Nu,confKey:"longtask",disable:!1},{Instrument:Qa,confKey:Ja,disable:!1},{Instrument:Mu,confKey:"visibility",disable:!0},{Instrument:Du,confKey:"connectivity",disable:!0},{Instrument:cc,confKey:"socketio",disable:!0}];Ul.map((function(t){return t.confKey})).reduce((function(t,e){return t[e]=!1,t}),{webvitals:!1});var Bl,jl,Xl,Hl,Gl,Fl=!1,Vl="noTracking",zl={DEFAULT_AUTO_INSTRUMENTED_EVENTS:Ta,DEFAULT_AUTO_INSTRUMENTED_EVENT_NAMES:ya,AlwaysOnSampler:Xr,AlwaysOffSampler:jr,ParentBasedSampler:Hr,SessionBasedSampler:rc,_processedOptions:null,get inited(){return Fl},_internalInit:function(t){zl.init(Object.assign(Object.assign({},Dl),t))},init:function(e){var r,o,i,a,s=this;if(Vl=null!==(o=null===(r=e.user)||void 0===r?void 0:r.trackingMode)&&void 0!==o?o:"noTracking","object"!==("undefined"==typeof window?"undefined":t(window)))throw Error("SplunkRum Error: This library is intended to run in a browser environment. Please ensure the code is evaluated within a browser context.");if("OTEL_TRACES_EXPORTER"in fn||(fn.OTEL_TRACES_EXPORTER="none"),Fl)console.warn("SplunkRum already initialized.");else{Ft.setLogger(new k,(null==e?void 0:e.debug)?d.DEBUG:d.WARN);var u=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!globalThis[cs])return Ft.error("SplunkRum: Tried to access global before otel setup"),!1;var n=globalThis[cs];return n[fs]||(n[fs]=us),n[fs]!==us?(Ft.error("SplunkRum: Global: Multiple versions detected (".concat(us," already registered)")),!1):!e&&n[ls]?(Ft.error("SplunkRum: Attempted duplicate registration of otel API ".concat(ls)),!1):(n[ls]=t,!0)}(this);if(u)if("function"==typeof Symbol){if(e.disableBots&&function(t){try{var e=new RegExp(" daum[ /]| deusu/| yadirectfetcher|(?:^|[^g])news(?!sapphire)|(?0&&void 0!==arguments[0]&&arguments[0])&&(null==Bl||Bl(),Bl=void 0,null==jl||jl(),jl=void 0,null===(t=this.provider)||void 0===t||t.shutdown(),delete this.provider,Gl=void 0,Ft.disable(),function(){var t=globalThis[cs];t?(t[fs]&&t[fs]!==us&&Ft.warn("SplunkRum version in OTel API ref (".concat(t[fs],") didn't match our version (").concat(us,").")),delete t[ls],delete t[fs]):Ft.warn("OTel API ref was missing while trying to unregister ".concat(ls," or ").concat(fs))}(),Ju(),Fl=!1)},setGlobalAttributes:function(t){var e,n;null===(e=this.attributesProcessor)||void 0===e||e.setGlobalAttributes(t),null==Gl||Gl.emit("global-attributes-changed",{attributes:(null===(n=this.attributesProcessor)||void 0===n?void 0:n.getGlobalAttributes())||{}})},getGlobalAttributes:function(){var t;return(null===(t=this.attributesProcessor)||void 0===t?void 0:t.getGlobalAttributes())||{}},_experimental_getGlobalAttributes:function(){return this.getGlobalAttributes()},error:function(){if(Fl)if(Xl){for(var t=arguments.length,e=new Array(t),n=0;ncms-ribbonscoreboard-american-football":{"activeSports":["ALL_SPORTS"]},"feat-ssccms-ribbon":{"activeSports":["ALL_SPORTS"]},"perf-timeform-integration-meeting-races":{"activeSports":["ALL_SPORTS"]},"tmp_favourites_sandboxfeat-ssc":{"activeSports":["ALL_SPORTS"]},"feat-scoreboard-american-footballlay-animation":{"activeSports":["ALL_SPORTS"]},"feat-lay-animationtmp_favourites_sandbox":{"activeSports":["ALL_SPORTS"]},"regl_promotions_notificationtemp_us_races_and_url_silks":{"activeSports":["ALL_SPORTS"]},"regl-max-payfeat_cashout":{"activeSports":["ALL_SPORTS"]},"feat-bet-recommendtimeform-integrations":{"activeSports":["ALL_SPORTS"]},"feat-inline-betting-next-racesregl-max-payout":{"activeSports":["ALL_SPORTS"]},"feat-download-banner-androidregl_promotions_notifications":{"activeSports":["ALL_SPORTS"]},"feat-asian-total-goals":{"activeSports":["ALL_SPORTS"]},"feat-portrait-market-depth":{"activeSports":["ALL_SPORTS"]},"timeform-integrationfeat-scoreboard-ice-hockey":{"activeSports":["ALL_SPORTS"]},"feat_cashout-download-banner-android":{"activeSports":["ALL_SPORTS"]},"temp_us_races_and_url_silkfeat-inline-betting-next-races":{"activeSports":["ALL_SPORTS"]},"feat-scoreboard-ice-hockeybet-recommendations":{"activeSports":["ALL_SPORTS"]},"feat-scoreboard-basketball_inplay":{"activeSports":["ALL_SPORTS"]},"feat-where-is-the-moneyscoreboard-football":{"activeSports":["ALL_SPORTS"]},"mi-personalizationperf-delay-gtm":{"activeSports":["ALL_SPORTS"]},"feat-wrapper-iosregl-can-show-touch-idut":{"activeSports":["ALL_SPORTS"]},"regl-cashoutmatch_me_homepage_banner":{"activeSports":["ALL_SPORTS"]},"match_me_homepage_bannerfeat-scoreboard-basketball":{"activeSports":["ALL_SPORTS"]},"perf-delay-gtmfeat-avb-mmv":{"activeSports":["ALL_SPORTS"]},"feat-scoreboard-football_show_promotion":{"activeSports":["ALL_SPORTS"]},"feat_inplaytest-handicap-rotator":{"activeSports":["ALL_SPORTS"]},"nav-bar-gamesfeat-where-is-the-money":{"activeSports":["ALL_SPORTS"]},"feat-recommended-for-youmi-personalization":{"activeSports":["ALL_SPORTS"]},"feat-meetings-page-resultswrapper-ios-can-show-touch-id":{"activeSports":["ALL_SPORTS"]},"feat_show_promotion-recommended-for-you":{"activeSports":["ALL_SPORTS"]},"feat-avb-mmvmeetings-page-results":{"activeSports":["ALL_SPORTS"]},"test-handicap-rotatornav-bar-games":{"activeSports":["ALL_SPORTS"]},"feat-wrapper-ios-rate-my-apppnl-next-races":{"activeSports":["ALL_SPORTS"]},"feat-cookie-consent-functional-enabledribbon-personalization":{"activeSports":["ALL_SPORTS"]},"feat-download-banner-iossticky-video":{"activeSports":["ALL_SPORTS"]},"temp-new-homepage-bannerfeat-cookie-consent-functional-enabled":{"activeSports":["ALL_SPORTS"]},"feat-popular-sports-personalizationwrapper-ios-can-show-face-id":{"activeSports":["ALL_SPORTS"]},"feat-quick-links-shared-webformenable-ga4":{"activeSports":["ALL_SPORTS"]},"feat-ribbon-personalizationwrapper-ios-rate-my-app":{"activeSports":["ALL_SPORTS"]},"feat-sticky-videotemp-new-homepage-banner":{"activeSports":["ALL_SPORTS"]},"feat-scoreboard-handbalhomepage-carousel":{"activeSports":["ALL_SPORTS"]},"enable-ga4feat-download-banner-ios":{"activeSports":["ALL_SPORTS"]},"feat-homepage-carousescoreboard-handball":{"activeSports":["ALL_SPORTS"]},"feat-pnl-next-racesquick-links-shared-webform":{"activeSports":["ALL_SPORTS"]},"feat-wrapper-ios-can-show-face-idpopular-sports-personalization":{"activeSports":["ALL_SPORTS"]},"perf-hr-cashoutfeat-scoreboard-tennis":{"activeSports":["ALL_SPORTS"]},"feat-countdown-timer-todays-cardega-i2-ems":{"activeSports":["ALL_SPORTS"]},"regl_perm_seo_featuresnavigation-bar":{"activeSports":["ALL_SPORTS"]},"feat-inline-betting-couponweb-messaging":{"activeSports":["ALL_SPORTS"]},"ega-i2-emsfeat-countdown-timer-todays-card":{"activeSports":["ALL_SPORTS"]},"temp-languages-hu-fi-noregl_perm_seo_features":{"activeSports":["ALL_SPORTS"]},"feat-scoreboard-tenniswrapper-android-rate-my-app":{"activeSports":["ALL_SPORTS"]},"feat-web-messagingscoreboard-cricket":{"activeSports":["ALL_SPORTS"]},"feat-cricket-line-markets_display_bsp":{"activeSports":["ALL_SPORTS"]},"feat-quick-bet-deposiperf-hr-cashout":{"activeSports":["ALL_SPORTS"]},"temp_extra_meetings_day-facebook-meta-tag":{"activeSports":["ALL_SPORTS"]},"feat-scoreboard-criccricket-line-markets":{"activeSports":["ALL_SPORTS"]},"feat-wrapper-android-rate-my-appregl-live-stream":{"activeSports":["ALL_SPORTS"]},"regl-live-streamfeat-quick-bet-deposit":{"activeSports":["ALL_SPORTS"]},"navigation-bartemp_extra_meetings_day":{"activeSports":["ALL_SPORTS"]},"temp-facebook-meta-tagfeat-inline-betting-coupon":{"activeSports":["ALL_SPORTS"]},"feat-auto-cashout":{"activeSports":["ALL_SPORTS"]},"feat-live-stream-signposting":{"activeSports":["ALL_SPORTS"]},"homepage-quick-linkstemp-languages-hu-fi-no":{"activeSports":["ALL_SPORTS"]},"feat_display_bsphomepage-quick-links":{"activeSports":["ALL_SPORTS"]}},"bucketId":641,"timezoneOffset":120,"serverTime":"2026-03-31T23:22:25.554:18.731Z","experiments":[]}' };
window.BF_ENVIRONMENT =
{
"analytics": {
"default": "UA-43334570-2",
"spain": "UA-4334570-10",
"sweden": "UA-43334570-63",
"argentina_baprovince": "UA-43334570-70"
},
"facebookMetaTag": {
"default": "pryzew3q5tkz56dw5l6xaeir6vik2b",
"spain": "0ow739w7j42xwnrfkp8lnchpndds8r",
"italy": "mv6ozhqyv8svacchyr70ftbr89lf7y",
"romania": "st4oiz77cz477k5pw64x89s8xguzxt",
"sweden": "gtr1rt0w5g7pgrfwa1npl5q0hsq5bz"
},
"customerBehaviourService": {
"host": "https://cbs.{domain}",
"path": "/CustomerBehaviourService/v1.0/",
"channel": "Betfair Exchange Mobile"
},
"gtmAccountId": {
"web": "GTM-P32JX6"
},
"ga4AccountId": {
"web": "GTM-M2MWMLTZ",
"debugKeys": ""
},
"appKey": {
"br": {
"EMSWeb": "IqEgO6G0WpyGLT70",
"EMSiPadWrapper": "Yt6okLR0i0yERoqH",
"EMSiPhoneWrapper": "c7GrDb8nKEuW0ghL",
"EMSAndroidWrapper": "EhsiCRMvZKOUCC5k",
"BetfairWrapper (EMS; Android;": "EhsiCRMvZKOUCC5k",
"BetfairWrapper (EMS; iOS;": "c7GrDb8nKEuW0ghL",
"iPhone": "BFOV07NXfeKQt4Ux",
"Linux; Android": "BugjozEMzLQLr0lo",
},
"default": {
"EMSWeb": "ajhWsonjIgux55OJ",
"EMSiPadWrapper": "ocWuJCZBeyCRvf3o",
"EMSiPhoneWrapper": "aXos07U5QDC0S8pI",
"EMSAndroidWrapper": "gLuGqdlclGrBKImS",
"BetfairWrapper (EMS; Android;": "2Mnd5J7Uot3g76XM",
"BetfairWrapper (EMS; iOS;": "aXos07U5QDC0S8pI",
},
},
"applicationVersion": "2.0.0-8033",
"strandsPrefix": "apiems",
"myAccountHost": "myaccount",
"refreshIntervals": {
"loggedIn": {
"multiMarketPage": {
"common": 24000
},
"allRaces": {
"common": 24000
},
"cashoutPage": {
"common": 5000
},
"cashoutInplay": {
"common": 13000
},
"couponMarkets": {
"common": {
"inplay": 2000,
"notInplay": 5000
}
},
"couponScores": {
"common": {
"inplay": 5000,
"notInplay": 24000
}
},
"couponInplayPage": {
"common": 100000
},
"dynamicNotification": {
"common": 1000
},
"eventHeader": {
"common": {
"inplay": 5000,
"notInplay": 24000
}
},
"footballCompetitions": {
"common": 13000
},
"wallet": {
"common": 24000
},
"highlightsSideMenu": {
"common": {
"notInplay": 13000
}
},
"marketView": {
"common": {
"inplay": 2000,
"notInplay": 5000
},
"horse-racing": {
"inplay": 2000
}
},
"marketViewCashout": {
"common": {
"inplay": 2000,
"notInplay": 5000
},
'football': {
'inplay': 1000
}
},
"marketViewAutoCashout": {
"common": {
"inplay": 5000,
"notInplay": 5000
},
"horse-racing": {
"inplay": 1000,
"notInplay": 5000
}
},
"moreAvb": {
"common": {
"notInplay": 60000
}
},
"moreAvbScores": {
"common": {
"inplay": 5000
}
},
"moreRacing": {
"common": 24000
},
"mostPopularBets": {
"common": 13000
},
"multiplesCoupon": {
"common": 13000
},
"myBetsOpen": {
"common": 13000
},
"navigationCompetition": {
"common": 13000
},
"nextRaceMarket": {
"common": 13000
},
"openBets": {
"common": {
"inplay": 5000,
"notInplay": 13000
}
},
"racingNav": {
"common": 10000
},
"racingCard": {
"common": 13000
},
"racingTopMeetings": {
"common": 5000
},
"sbkBetslip": {
"common": 5000
},
"highlightHorseRacing": {
"common": 13000
},
"vqa": {
"common": 30000
}
},
"loggedOut": {
"multiMarketPage": {
"common": 48000
},
"allRaces": {
"common": 48000
},
"cashoutPage": {
"common": 10000
},
"cashoutInplay": {
"common": 26000
},
"couponMarkets": {
"common": {
"inplay": 10000,
"notInplay": 26000
}
},
"couponScores": {
"common": {
"inplay": 10000,
"notInplay": 48000
}
},
"couponInplayPage": {
"common": 200000
},
"eventHeader": {
"common": {
"inplay": 10000,
"notInplay": 48000
}
},
"footballCompetitions": {
"common": 26000
},
"wallet": {
"common": 48000
},
"highlightsSideMenu": {
"common": {
"notInplay": 26000
}
},
"marketView": {
"common": {
"inplay": 10000,
"notInplay": 26000
}
},
"marketViewCashout": {
"common": {
"inplay": 10000,
"notInplay": 26000
}
},
"moreAvb": {
"common": {
"notInplay": 120000
}
},
"moreAvbScores": {
"common": {
"inplay": 10000
}
},
"moreRacing": {
"common": 48000
},
"mostPopularBets": {
"common": 26000
},
"multiplesCoupon": {
"common": 26000
},
"myBetsOpen": {
"common": 26000
},
"navigationCompetition": {
"common": 26000
},
"nextRaceMarket": {
"common": 26000
},
"openBets": {
"common": {
"inplay": 10000,
"notInplay": 26000
}
},
"racingNav": {
"common": 10000
},
"racingCard": {
"common": 26000
},
"racingTopMeetings": {
"common": 10000
},
"sbkBetslip": {
"common": 10000
},
"highlightHorseRacing": {
"common": 26000
},
"vqa": {
"common": 30000
}
}
},
"ttl": {
"dynamicNotification": 120000
},
"endpoints": {
"fabric": {
"betRecommendations": {
"port": "",
"path": "/api/ems/bet-recommendations/v2",
"timeout": 6000
},
"capiContent": {
"port": "",
"path": "/api/ems/capi-content/v1",
"timeout": 16000
},
"cashoutQuotes": {
"port": "",
"path": "/api/ems/cashout-quotes/v1",
"timeout": 6000
},
"competitionsEventsSportsbook": {
"port": "",
"path": "/api/ems/competitions-events-sportsbook/v0",
"timeout": 6000
},
"competitionsEvents": {
"port": "",
"path": "/api/ems/competitions-events/v0",
"timeout": 6000
},
"countryEvents": {
"port": "",
"path": "/api/ems/country-events/v0",
"timeout": 6000
},
"coupon": {
"port": "",
"path": "/api/ems/coupon/v1",
"timeout": 6000
},
"homepage": {
"port": "",
"path": "/api/ems/homepage/v4",
"timeout": 6000
},
"inplay": {
"port": "",
"path": "/api/ems/inplay/v1",
"timeout": 6000
},
"marketDataAggregator": {
"port": "",
"path": "/api/ems/market-data-aggregator/v0",
"maxAge": 500,
"timeout": 6000
},
"marketTimeform": {
"port": "",
"path": "/api/ems/market-timeform/v1",
"maxAge": 500,
"timeout": 6000
},
"meetingRaces": {
"port": "",
"path": "/api/ems/meeting-races/v0",
"timeout": 6000
},
"moreAvb": {
"port": "",
"path": "/api/ems/more-avb/v0",
"timeout": 6000
},
"moreFromBetfair": {
"port": "",
"path": "/api/ems/more-from-betfair/v1",
"timeout": 6000
},
"moreRacing": {
"port": "",
"path": "/api/ems/more-racing/v2",
"timeout": 6000
},
"multiMarketPage": {
"port": "",
"path": "/api/ems/multi-market-page/v1",
"maxAge": 500,
"timeout": 6000
},
"nextRace": {
"port": "",
"path": "/api/ems/next-race/v2",
"timeout": 6000
},
"popularBets": {
"port": "",
"path": "/api/ems/popular-bets/v0",
"timeout": 6000
},
"racingInfo": {
"port": "",
"path": "/api/ems/racing-info/v1",
"timeout": 6000
},
"timeBasedNavigation": {
"port": "",
"path": "/api/ems/time-based-navigation/v1",
"timeout": 6000
},
"topCompetitions": {
"port": "",
"path": "/api/ems/top-competitions/v1",
"timeout": 6000
},
"userContext": {
"port": "",
"path": "/api/ems/user-context/v2",
"timeout": 16000
},
"whereMoney": {
"port": "",
"path": "/api/ems/where-money/v1",
"timeout": 6000
},
"promotions": {
"port": "",
"path": "/api/ems/promotions/v3",
"timeout": 6000
},
"rewards": {
"port": "",
"path": "/api/ems/rewards/v1",
"timeout": 6000
},
},
"webSocket": {
"wss": {
"host": "wss.betfair.com",
"port": "",
"path": "/fanout/",
"timeout": 10000
}
},
"transactional": {
"etx": {
"host": "etx",
"port": "",
"path": "/www/sports/exchange/transactional/v1.0",
"timeout": 20000
},
"cashout": {
"host": "cos",
"port": "",
"path": "/cashout-service/transactional/v1.0",
"timeout": 20000
},
"ftx": {
"host": "",
"port": "",
"path": "/www/sports/fixedodds/transactional/v1",
"timeout": 20000
},
"userSharedPreferences": {
"host": "usp",
"port": "",
"path": "/usp-preferences/v1.0/",
"legacy": true,
"maxAge": 500,
"timeout": 10000
},
"maxClient": {
"host": "myaccount",
"port": "",
"path": "/myaccountx/rest",
"timeout": 30000
}
},
"readonly": {
"sportsNav": {
"host": "",
"port": "",
"path": "/www/sports/navigation/v2",
"timeout": 10000
},
"ero": {
"host": "ero",
"port": "",
"path": "/www/sports/exchange/readonly/v1.0",
"ttl": 500,
"timeout": 10000
},
"cashout": {
"host": "cos",
"port": "",
"path": "/cashout-service/readonly/v1.0",
"timeout": 10000
},
"facet": {
"host": "scan-inbf",
"port": "",
"path": "/www/sports/navigation/facet/v1.0",
"timeout": 10000
},
"facetSB": {
"host": "",
"port": "",
"path": "/www/sb/sports/navigation/facet/v1.0",
"timeout": 10000
},
"lbr": {
"host": "lbr",
"port": "",
"path": "/www/sports/exchange/reporting/live/v1.0",
"timeout": 10000
},
"nss": {
"host": "push-subscription",
"port": "",
"path": "/NotificationSubscription/v1",
"legacy": true,
"timeout": 10000
},
"seas": {
"host": "ips",
"port": "",
"path": "/inplayservice/v1.1",
"timeout": 10000
},
"capi": {
"host": "",
"port": "",
"path": "/Capi/v2/configuration",
"timeout": 10000
},
"was": {
"host": "was",
"port": "",
"path": "/wallet-service/v3.0",
"legacy": true,
"timeout": 10000
},
"search": {
"host": "search",
"port": "",
"path": "/KHOJQ/v1.0/",
"timeout": 10000
},
"timeform": {
"host": "",
"port": "",
"path": "/rest/v2/",
"appKey": "jbKtqngwZdvZOFFU",
"timeout": 10000
},
"gamesWidget": {
"host": "mcasino",
"port": "",
"path": "/web/api/crossSellConfig/v2",
"timeout": 10000
},
"webMessaging": {
"host": "messaging",
"port": "",
"path": "/",
"timeout": 10000
},
"cashoutExchange": {
"host": "cashout-exchange",
"port": "",
"path": "/cashout-exchange/v1.0",
"legacy": true,
"timeout": 10000
},
"vqa": {
"host": "vqa",
"port": "",
"path": "/VideoQualificationAPI/v1.8/qualiState",
"legacy": true,
"timeout": 5000
},
"fro": {
"host": "",
"port": "",
"path": "/www/sports/fixedodds/readonly/v1",
"timeout": 5000
}
},
"smd": {
"host": "https://smd.betfair.{jurisdiction}",
"port": "",
"path": "/SeoMetadata/v1/",
"timeout": "5000"
}
},
"xsell": {
"tla": "exchangegaming"
},
"quickBetAndDeposit": {
"host": "myfunds",
"reducedDocumentDomain": "0"
},
"resourceUrlWhitelist": [
"https://messaging.betfair.*/**",
"https://mcasino.betfair.com.au/web/api/crossSellConfig/**",
"https://mcasino.betfair.*/web/api/crossSellConfig/**"
],
"identitySSO": {
"url": {
"default": "https://identitysso.{domain}/view/login?product={product}&url={url}&redirectMethod={redirectMethod}&locale={locale}®url={regurl}",
"dk": {
"android": "https://identitysso.{domain}/view/login?product={product}&url={url}&redirectMethod={redirectMethod}&locale={locale}®url={regurl}&device=Android&returnAppUrl={returnAppUrl}"
}
},
"registration": {
"default": "https://register.{domain}/{lang}/account/registration?returnURL={returnUrl}&promotionCode={promocode}",
"it": "https://register.{domain}/account/registration",
"dk": "https://promotions.{domain}/dk-mobile-sportsexc-web",
"uk": "https://promotions.{domain}/exchange-acq-uk-bau-free20-val225"
}
},
"silkCDN": {
"url": "https://content.{domain}/feeds_images/Horses/SilkColours/{imagePath}"
},
"ssc": {
"url": "https://ssc.{domain}"
},
"boxever": {
"boxeverJSLibEndpoint": "https://d1mj578wat5n4o.cloudfront.net/boxever-1.4.8.min.js",
"apiTarget": "https://api.boxever.com/v1.2",
"clientKey": "pPBFRdxAR61DXgGaYvvIPWQ7pAaq8QQJ",
"webFlowTarget": "https://d35vb5cccm4xzp.cloudfront.net",
"pointOfSale": "betfair",
"javascriptLibraryVersion": "1.4.8"
},
"movableInk": {
"miJSLibEndpoint": "//movableink.betfair.com/p/js/1.js",
}
};
(function () { var d = document; var c = d.createElement('script'); if (!('noModule' in c) && 'onbeforeload' in c) { var s = false; d.addEventListener('beforeload', function (e) { if (e.target === c) { s = true; } else if (!e.target.hasAttribute('nomodule') || !s) { return; } e.preventDefault(); }, true); c.type = 'module'; c.src = '.'; d.head.appendChild(c); c.remove(); } }());
function OptanonWrapper(){if(window.location!==window.parent.location)try{document.getElementById("onetrust-consent-sdk").style.display="none"}catch(a){}}window.dataLayer.push({event:"OneTrustGroupsUpdated"});
setTimeout(function(){console.log("check from old container (GTM-P32JX6) that new ga4 Betfair container (GTM-M2MWMLTZ) is loaded");try{var b=Array.from(document.getElementsByTagName("script")),c=b.filter(function(a){return a.src.indexOf("GTM-M2MWMLTZ")!==-1}),d=/^https?:\/\/www\.(betfair|paddypower)\.(com|es|it|ro|se)(\/|$)/i.test(window.location.href);c.length||d||(console.log("log missing new ga4 container GTM-M2MWMLTZ"),fetch("https://dcc.betfair.com/gtm",{method:"POST",body:JSON.stringify({url:window.location.href,
missingContainerId:"GTM-M2MWMLTZ"}),headers:{"Content-Type":"application/json"}}).then(function(a){a.ok||console.log("GTM script error: Server responded with status "+a.status)})["catch"](function(a){console.log("GTM script error: Error sending GTM data: ",a)}))}catch(a){}},1E4);
function getCookie(a){a+="\x3d";for(var d=document.cookie.split(";"),c=0;cfunction deleteCookie(c){var b=[".betfair.com"];b.forEach(function(a){document.cookie=c+"\x3d; expires\x3dThu, 01 Jan 1970 00:00:00 UTC; path\x3d/; domain\x3d"+a+";"})}function checkCookie(c){for(var b=document.cookie.split("; "),a=0;a
function deleteCookie(c){var b=[".betfair.com"];b.forEach(function(a){document.cookie=c+"\x3d; expires\x3dThu, 01 Jan 1970 00:00:00 UTC; path\x3d/; domain\x3d"+a+";"})}function checkCookie(c){for(var b=document.cookie.split("; "),a=0;afunction OptanonWrapper(){if(window.location!==window.parent.location)try{document.getElementById("onetrust-consent-sdk").style.display="none"}catch(a){}}window.dataLayer.push({event:"OneTrustGroupsUpdated"});
setTimeout(function(){console.log("check from old container (GTM-P32JX6) that new ga4 Betfair container (GTM-M2MWMLTZ) is loaded");try{var b=Array.from(document.getElementsByTagName("script")),c=b.filter(function(a){return a.src.indexOf("GTM-M2MWMLTZ")!==-1}),d=/^https?:\/\/www\.(betfair|paddypower)\.(com|es|it|ro|se)(\/|$)/i.test(window.location.href);c.length||d||(console.log("log missing new ga4 container GTM-M2MWMLTZ"),fetch("https://dcc.betfair.com/gtm",{method:"POST",body:JSON.stringify({url:window.location.href,
missingContainerId:"GTM-M2MWMLTZ"}),headers:{"Content-Type":"application/json"}}).then(function(a){a.ok||console.log("GTM script error: Server responded with status "+a.status)})["catch"](function(a){console.log("GTM script error: Error sending GTM data: ",a)}))}catch(a){}},1E4);
function getCookie(a){a+="\x3d";for(var d=document.cookie.split(";"),c=0;cfunction deleteCookie(c){var b=[".betfair.com"];b.forEach(function(a){document.cookie=c+"\x3d; expires\x3dThu, 01 Jan 1970 00:00:00 UTC; path\x3d/; domain\x3d"+a+";"})}function checkCookie(c){for(var b=document.cookie.split("; "),a=0;atry{var cookieConsentHandler=cookieConsentIdBuilder();setTimeout(cookieConsentHandler.updateConsentId,300)}catch(d){console.error("CookieConsent tagging with accId has encountered an error",d)};
function deleteCookie(c){var b=[".betfair.com"];b.forEach(function(a){document.cookie=c+"\x3d; expires\x3dThu, 01 Jan 1970 00:00:00 UTC; path\x3d/; domain\x3d"+a+";"})}function checkCookie(c){for(var b=document.cookie.split("; "),a=0;afunction deleteCookie(c){var b=[".betfair.com"];b.forEach(function(a){document.cookie=c+"\x3d; expires\x3dThu, 01 Jan 1970 00:00:00 UTC; path\x3d/; domain\x3d"+a+";"})}function checkCookie(c){for(var b=document.cookie.split("; "),a=0;a
versions (2)
| timestamp | hash | size | lines |
|---|---|---|---|
| 2026-03-31 23:24:55 | b1a5cd853821773… | 255.2 KB | 708 |
| 2026-03-31 23:23:04 | 80efe05bfc84998… | 255.2 KB | 708 |