@blueking/open-telemetry 0.0.33 → 0.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { resourceFromAttributes as c } from "@opentelemetry/resources";
6
6
  import { BatchSpanProcessor as l, SamplingDecision as u, SimpleSpanProcessor as d } from "@opentelemetry/sdk-trace-base";
7
7
  import { WebTracerProvider as f } from "@opentelemetry/sdk-trace-web";
8
8
  //#region package.json
9
- var p = "0.0.33", m = (e) => {
9
+ var p = "0.0.34", m = (e) => {
10
10
  let t = 5381;
11
11
  for (let n = 0; n < e.length; n++) t = t * 33 ^ e.charCodeAt(n);
12
12
  return (t >>> 0).toString(36);
@@ -27,6 +27,24 @@ var p = "0.0.33", m = (e) => {
27
27
  networkStatus: "network.status",
28
28
  nextHopProtocol: "resource.protocol",
29
29
  outcomeType: "outcome.type",
30
+ resourceTimingConnectEnd: "resource.timing.connect_end",
31
+ resourceTimingConnectStart: "resource.timing.connect_start",
32
+ resourceTimingDomainLookupEnd: "resource.timing.domain_lookup_end",
33
+ resourceTimingDomainLookupStart: "resource.timing.domain_lookup_start",
34
+ resourceTimingFetchStart: "resource.timing.fetch_start",
35
+ resourceTimingFinalResponseHeadersStart: "resource.timing.final_response_headers_start",
36
+ resourceTimingRedirectEnd: "resource.timing.redirect_end",
37
+ resourceTimingRedirectStart: "resource.timing.redirect_start",
38
+ resourceTimingRequestStart: "resource.timing.request_start",
39
+ resourceTimingResponseEnd: "resource.timing.response_end",
40
+ resourceTimingResponseStart: "resource.timing.response_start",
41
+ resourceTimingSecureConnectionStart: "resource.timing.secure_connection_start",
42
+ resourceTimingStartTime: "resource.timing.start_time",
43
+ resourceTimingWorkerCacheLookupStart: "resource.timing.worker_cache_lookup_start",
44
+ resourceTimingWorkerFinalRouterSource: "resource.timing.worker_final_router_source",
45
+ resourceTimingWorkerMatchedRouterSource: "resource.timing.worker_matched_router_source",
46
+ resourceTimingWorkerRouterEvaluationStart: "resource.timing.worker_router_evaluation_start",
47
+ resourceTimingWorkerStart: "resource.timing.worker_start",
30
48
  serviceName: "service.name",
31
49
  serviceVersion: "service.version",
32
50
  sessionHasReplay: "session.has_replay",
@@ -1233,15 +1251,41 @@ var Ne = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
1233
1251
  e.responseEnd
1234
1252
  ];
1235
1253
  return !n.every(Number.isFinite) || !nn(...n) ? t : (G(t, "first_byte", e.startTime, e.requestStart, e.responseStart), G(t, "download", e.startTime, e.responseStart, e.responseEnd), e.workerStart > 0 && e.workerStart < e.fetchStart && G(t, "worker", e.startTime, e.workerStart, e.fetchStart), e.fetchStart < e.domainLookupEnd && G(t, "dns", e.startTime, e.domainLookupStart, e.domainLookupEnd), e.fetchStart < e.connectEnd && (G(t, "connect", e.startTime, e.connectStart, e.connectEnd), e.connectStart <= e.secureConnectionStart && e.secureConnectionStart <= e.connectEnd && G(t, "ssl", e.startTime, e.secureConnectionStart, e.connectEnd)), e.redirectEnd > e.startTime && nn(e.startTime, e.redirectStart, e.redirectEnd, e.fetchStart) && G(t, "redirect", e.startTime, e.redirectStart, e.redirectEnd), t);
1236
- }, an = (e) => e.duration === 0 && e.responseEnd > e.startTime ? e.responseEnd - e.startTime : e.duration, on = (e) => {
1254
+ }, an = [
1255
+ ["startTime", g.resourceTimingStartTime],
1256
+ ["redirectStart", g.resourceTimingRedirectStart],
1257
+ ["redirectEnd", g.resourceTimingRedirectEnd],
1258
+ ["fetchStart", g.resourceTimingFetchStart],
1259
+ ["workerStart", g.resourceTimingWorkerStart],
1260
+ ["workerRouterEvaluationStart", g.resourceTimingWorkerRouterEvaluationStart],
1261
+ ["workerCacheLookupStart", g.resourceTimingWorkerCacheLookupStart],
1262
+ ["domainLookupStart", g.resourceTimingDomainLookupStart],
1263
+ ["domainLookupEnd", g.resourceTimingDomainLookupEnd],
1264
+ ["connectStart", g.resourceTimingConnectStart],
1265
+ ["secureConnectionStart", g.resourceTimingSecureConnectionStart],
1266
+ ["connectEnd", g.resourceTimingConnectEnd],
1267
+ ["requestStart", g.resourceTimingRequestStart],
1268
+ ["responseStart", g.resourceTimingResponseStart],
1269
+ ["finalResponseHeadersStart", g.resourceTimingFinalResponseHeadersStart],
1270
+ ["responseEnd", g.resourceTimingResponseEnd],
1271
+ ["workerMatchedRouterSource", g.resourceTimingWorkerMatchedRouterSource],
1272
+ ["workerFinalRouterSource", g.resourceTimingWorkerFinalRouterSource]
1273
+ ], on = (e) => {
1274
+ let t = {};
1275
+ for (let [n, r] of an) {
1276
+ let i = e[n];
1277
+ (typeof i == "number" && Number.isFinite(i) || typeof i == "string" && i !== "") && (t[r] = i);
1278
+ }
1279
+ return t;
1280
+ }, sn = (e) => e.duration === 0 && e.responseEnd > e.startTime ? e.responseEnd - e.startTime : e.duration, cn = (e) => {
1237
1281
  let t = tn(e), n = typeof e.deliveryType == "string" && e.deliveryType ? e.deliveryType : void 0;
1238
- return S(S(S(S(S({ [g.cacheHit]: en(e) }, e.nextHopProtocol ? { [g.nextHopProtocol]: e.nextHopProtocol } : {}), rn(e)), n ? { "resource.delivery_type": n } : {}), e.renderBlockingStatus ? { "resource.render_blocking_status": e.renderBlockingStatus } : {}), t ? {} : {
1282
+ return S(S(S(S(S(S({ [g.cacheHit]: en(e) }, e.nextHopProtocol ? { [g.nextHopProtocol]: e.nextHopProtocol } : {}), rn(e)), on(e)), n ? { "resource.delivery_type": n } : {}), e.renderBlockingStatus ? { "resource.render_blocking_status": e.renderBlockingStatus } : {}), t ? {} : {
1239
1283
  "resource.size": e.decodedBodySize,
1240
1284
  "resource.encoded_body_size": e.encodedBodySize,
1241
1285
  "resource.decoded_body_size": e.decodedBodySize,
1242
1286
  "resource.transfer_size": e.transferSize
1243
1287
  });
1244
- }, sn = (t = !0) => {
1288
+ }, ln = (t = !0) => {
1245
1289
  let n;
1246
1290
  return {
1247
1291
  name: "resource",
@@ -1255,7 +1299,7 @@ var Ne = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
1255
1299
  return;
1256
1300
  }
1257
1301
  if (n.duration < 0) return;
1258
- let i = r.config.hooks.redactUrl(n.name), a = an(n), o = performance.timeOrigin + n.startTime, s = o + a;
1302
+ let i = r.config.hooks.redactUrl(n.name), a = sn(n), o = performance.timeOrigin + n.startTime, s = o + a;
1259
1303
  if (t && r.isSampled()) {
1260
1304
  let t = S(S(S({}, r.config.hooks.getPageAttributes()), ze({
1261
1305
  initiatorType: n.initiatorType || "other",
@@ -1268,7 +1312,7 @@ var Ne = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
1268
1312
  })), {}, {
1269
1313
  "url.full": i,
1270
1314
  "url.template": r.config.hooks.getRequestUrlTemplate(i)
1271
- }, on(n));
1315
+ }, cn(n));
1272
1316
  r.startSpan(N({
1273
1317
  attributes: t,
1274
1318
  spanType: j.resource
@@ -1300,31 +1344,31 @@ var Ne = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
1300
1344
  n == null || n.disconnect(), n = void 0;
1301
1345
  }
1302
1346
  };
1303
- }, cn = (e) => typeof e.config.tracking.request == "object" ? e.config.tracking.request : void 0, ln = (e) => {
1347
+ }, un = (e) => typeof e.config.tracking.request == "object" ? e.config.tracking.request : void 0, dn = (e) => {
1304
1348
  var t;
1305
- let n = (t = cn(e)) == null ? void 0 : t.allowedTracingUrls;
1349
+ let n = (t = un(e)) == null ? void 0 : t.allowedTracingUrls;
1306
1350
  return Array.isArray(n) ? n.length > 0 : n !== void 0;
1307
- }, un = (e) => typeof e == "object" && e && "name" in e && typeof e.name == "string" ? e.name : "", dn = (e, t) => {
1351
+ }, fn = (e) => typeof e == "object" && e && "name" in e && typeof e.name == "string" ? e.name : "", pn = (e, t) => {
1308
1352
  let n = e.signal;
1309
- return un(n == null ? void 0 : n.reason) === "TimeoutError" || un(t) === "TimeoutError" ? {
1353
+ return fn(n == null ? void 0 : n.reason) === "TimeoutError" || fn(t) === "TimeoutError" ? {
1310
1354
  error: t,
1311
1355
  type: "timeout"
1312
- } : n != null && n.aborted || un(t) === "AbortError" ? { type: "abort" } : {
1356
+ } : n != null && n.aborted || fn(t) === "AbortError" ? { type: "abort" } : {
1313
1357
  error: t,
1314
1358
  type: "network_error"
1315
1359
  };
1316
- }, fn = (e, t) => e === "abort" ? { type: "abort" } : e === "timeout" ? { type: "timeout" } : e === "error" || t.status === 0 ? { type: "network_error" } : {
1360
+ }, mn = (e, t) => e === "abort" ? { type: "abort" } : e === "timeout" ? { type: "timeout" } : e === "error" || t.status === 0 ? { type: "network_error" } : {
1317
1361
  statusCode: t.status,
1318
1362
  type: "response"
1319
- }, pn = (e) => e.type === "network_error" || e.type === "timeout" || e.type === "response" && typeof e.statusCode == "number" && e.statusCode >= 400, mn = (e) => typeof e == "string" || e instanceof URL ? E(String(e)) : E(e.url), hn = (e, t) => {
1363
+ }, hn = (e) => e.type === "network_error" || e.type === "timeout" || e.type === "response" && typeof e.statusCode == "number" && e.statusCode >= 400, gn = (e) => typeof e == "string" || e instanceof URL ? E(String(e)) : E(e.url), _n = (e, t) => {
1320
1364
  var n;
1321
1365
  return ((n = t == null ? void 0 : t.method) == null ? typeof Request < "u" && e instanceof Request ? e.method : "GET" : n).toUpperCase();
1322
- }, gn = (e, t) => typeof Request < "u" && e instanceof Request ? e : t == null ? {} : t, _n = (e, t) => {
1366
+ }, vn = (e, t) => typeof Request < "u" && e instanceof Request ? e : t == null ? {} : t, yn = (e, t) => {
1323
1367
  var n;
1324
1368
  let r = typeof Request < "u" && e instanceof Request ? e.headers : void 0;
1325
1369
  return new Headers((n = t == null ? void 0 : t.headers) == null ? r : n);
1326
- }, vn = (e, t, n) => n.traceparent ? (t.set(z, n.traceparent), S(S({}, e), {}, { headers: t })) : e, yn = (e) => (t) => e == null ? void 0 : e[t.toLowerCase()], bn = (e, t) => D(e.config, t) || O(e.config.view.excludedActivityUrls, t), xn = (e, t) => {
1327
- if (bn(e, t)) return () => {};
1370
+ }, bn = (e, t, n) => n.traceparent ? (t.set(z, n.traceparent), S(S({}, e), {}, { headers: t })) : e, xn = (e) => (t) => e == null ? void 0 : e[t.toLowerCase()], Sn = (e, t) => D(e.config, t) || O(e.config.view.excludedActivityUrls, t), Cn = (e, t) => {
1371
+ if (Sn(e, t)) return () => {};
1328
1372
  let n = h("request");
1329
1373
  e.notifyActivity({
1330
1374
  id: n,
@@ -1340,12 +1384,12 @@ var Ne = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
1340
1384
  type: "request_end"
1341
1385
  }));
1342
1386
  };
1343
- }, Sn = (e, t) => e.isSampled() ? Rt(t) : {
1387
+ }, wn = (e, t) => e.isSampled() ? Rt(t) : {
1344
1388
  cancel() {},
1345
1389
  complete(e) {
1346
1390
  e();
1347
1391
  }
1348
- }, Cn = (t, n, r, i) => {
1392
+ }, Tn = (t, n, r, i) => {
1349
1393
  var a, o;
1350
1394
  let s = (a = r.startedAt) == null ? Date.now() : a, c = S(S(S({}, t.config.hooks.getPageAttributes()), ze({
1351
1395
  initiatorType: n,
@@ -1363,7 +1407,7 @@ var Ne = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
1363
1407
  rumSpanType: j.resource,
1364
1408
  startTime: s
1365
1409
  }, i ? { links: i.links } : {}));
1366
- }, wn = (e, n, r, i, a, o = {}) => {
1410
+ }, En = (e, n, r, i, a, o = {}) => {
1367
1411
  let s = o.url, c = s ? e.config.hooks.redactUrl(s) : void 0, l = o.method, u = {
1368
1412
  attributes: S(S(S(S({}, e.config.hooks.getPageAttributes()), ze({
1369
1413
  initiatorType: r,
@@ -1381,7 +1425,7 @@ var Ne = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
1381
1425
  }, d = !0;
1382
1426
  try {
1383
1427
  var f, p;
1384
- d = (f = cn(e)) == null || (p = f.beforeSend) == null ? void 0 : p.call(f, u, i);
1428
+ d = (f = un(e)) == null || (p = f.beforeSend) == null ? void 0 : p.call(f, u, i);
1385
1429
  } catch (t) {
1386
1430
  var m;
1387
1431
  e.config.debug && ((m = globalThis.console) == null || m.warn("[bk-ot] request.beforeSend failed:", t));
@@ -1394,8 +1438,8 @@ var Ne = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
1394
1438
  He(n);
1395
1439
  return;
1396
1440
  }
1397
- pn(a) && n.setStatus({ code: t.ERROR });
1398
- }, Tn = (e) => {
1441
+ hn(a) && n.setStatus({ code: t.ERROR });
1442
+ }, Dn = (e) => {
1399
1443
  let t = [], n = /* @__PURE__ */ new Set();
1400
1444
  return {
1401
1445
  name: "request",
@@ -1405,19 +1449,19 @@ var Ne = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
1405
1449
  if (typeof window.fetch == "function") {
1406
1450
  let r = window.fetch, i = /* @__PURE__ */ function() {
1407
1451
  var t = k(function* (t, i) {
1408
- let a = mn(t);
1452
+ let a = gn(t);
1409
1453
  if (!e.isSampled() || _e(e.config, a)) return r.call(this, t, i);
1410
1454
  let o = {
1411
- method: hn(t, i),
1455
+ method: _n(t, i),
1412
1456
  startedAt: Date.now(),
1413
1457
  url: a
1414
- }, s = ve(e.config, a) ? _n(t, i) : void 0, c = s ? $t((e) => {
1458
+ }, s = ve(e.config, a) ? yn(t, i) : void 0, c = s ? $t((e) => {
1415
1459
  var t;
1416
1460
  return (t = s.get(e)) == null ? void 0 : t;
1417
- }) : void 0, l = Cn(e, "fetch", o, c), u = Sn(e, a), d = xn(e, a), f = gn(t, i), p = s && c ? vn(i, s, c) : i, m = !1, h = (t, r = Date.now()) => {
1461
+ }) : void 0, l = Tn(e, "fetch", o, c), u = wn(e, a), d = Cn(e, a), f = vn(t, i), p = s && c ? bn(i, s, c) : i, m = !1, h = (t, r = Date.now()) => {
1418
1462
  if (!m) {
1419
1463
  if (m = !0, n.delete(g), t) {
1420
- l.setAttributes(e.applyRedact(on(t))), l.end(performance.timeOrigin + t.startTime + an(t));
1464
+ l.setAttributes(e.applyRedact(cn(t))), l.end(performance.timeOrigin + t.startTime + sn(t));
1421
1465
  return;
1422
1466
  }
1423
1467
  l.end(r);
@@ -1428,7 +1472,7 @@ var Ne = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
1428
1472
  n.add(g);
1429
1473
  try {
1430
1474
  let n = yield r.call(this, t, p), i = S(S({}, n.status > 0 ? { statusCode: n.status } : {}), {}, { type: "response" });
1431
- wn(e, l, "fetch", {
1475
+ En(e, l, "fetch", {
1432
1476
  request: f,
1433
1477
  response: n,
1434
1478
  type: "fetch"
@@ -1436,8 +1480,8 @@ var Ne = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
1436
1480
  let a = Date.now();
1437
1481
  return u.complete((e) => h(e, a)), n;
1438
1482
  } catch (t) {
1439
- let n = dn(f, t);
1440
- wn(e, l, "fetch", {
1483
+ let n = pn(f, t);
1484
+ En(e, l, "fetch", {
1441
1485
  error: t,
1442
1486
  request: f,
1443
1487
  type: "fetch"
@@ -1467,7 +1511,7 @@ var Ne = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
1467
1511
  let s = (a = r.get(this)) == null ? {} : a;
1468
1512
  if (!e.isSampled() || !s.url || _e(e.config, s.url)) return o.call(this, t);
1469
1513
  s.startedAt = Date.now();
1470
- let c = ve(e.config, s.url) ? $t(yn(i.get(this))) : void 0, l = Cn(e, "xhr", s, c), u = Sn(e, s.url), d = xn(e, s.url);
1514
+ let c = ve(e.config, s.url) ? $t(xn(i.get(this))) : void 0, l = Tn(e, "xhr", s, c), u = wn(e, s.url), d = Cn(e, s.url);
1471
1515
  c != null && c.traceparent && this.setRequestHeader(z, c.traceparent);
1472
1516
  let f = !1, p = !1, m = () => {}, h = () => {
1473
1517
  m(), u.cancel(), !p && (p = !0, n.delete(h), d(), l.end());
@@ -1476,8 +1520,8 @@ var Ne = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
1476
1520
  let g = (t) => {
1477
1521
  if (f || p) return;
1478
1522
  f = !0, m();
1479
- let r = fn(t, this);
1480
- wn(e, l, "xhr", {
1523
+ let r = mn(t, this);
1524
+ En(e, l, "xhr", {
1481
1525
  type: "xhr",
1482
1526
  xhr: this
1483
1527
  }, r, s), d();
@@ -1485,7 +1529,7 @@ var Ne = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
1485
1529
  u.complete((t) => {
1486
1530
  if (!p) {
1487
1531
  if (p = !0, n.delete(h), t) {
1488
- l.setAttributes(e.applyRedact(on(t))), l.end(performance.timeOrigin + t.startTime + an(t));
1532
+ l.setAttributes(e.applyRedact(cn(t))), l.end(performance.timeOrigin + t.startTime + sn(t));
1489
1533
  return;
1490
1534
  }
1491
1535
  l.end(i);
@@ -1503,7 +1547,7 @@ var Ne = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
1503
1547
  };
1504
1548
  if (XMLHttpRequest.prototype.open = s, XMLHttpRequest.prototype.send = c, t.push(() => {
1505
1549
  XMLHttpRequest.prototype.open === s && (XMLHttpRequest.prototype.open = a), XMLHttpRequest.prototype.send === c && (XMLHttpRequest.prototype.send = o);
1506
- }), ln(e) && typeof XMLHttpRequest.prototype.setRequestHeader == "function") {
1550
+ }), dn(e) && typeof XMLHttpRequest.prototype.setRequestHeader == "function") {
1507
1551
  let e = XMLHttpRequest.prototype.setRequestHeader, n = function(t, n) {
1508
1552
  var r;
1509
1553
  let a = t.toLowerCase(), o = (r = i.get(this)) == null ? {} : r;
@@ -1522,9 +1566,9 @@ var Ne = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
1522
1566
  for (; t.length;) (e = t.pop()) == null || e();
1523
1567
  }
1524
1568
  };
1525
- }, En = /^https?:|^\/\//i, Dn = (e, t) => {
1526
- if (t) return En.test(t) ? e(t) : t;
1527
- }, On = () => {
1569
+ }, On = /^https?:|^\/\//i, kn = (e, t) => {
1570
+ if (t) return On.test(t) ? e(t) : t;
1571
+ }, An = () => {
1528
1572
  let e;
1529
1573
  return {
1530
1574
  name: "csp-violation",
@@ -1532,7 +1576,7 @@ var Ne = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
1532
1576
  if (typeof window > "u" || typeof document > "u") return;
1533
1577
  let n = (e) => {
1534
1578
  if (!t.isSampled()) return;
1535
- let n = Date.now(), r = Dn(t.config.hooks.redactUrl, e.blockedURI), i = e.sourceFile ? t.config.hooks.redactUrl(e.sourceFile) : void 0, a = S(S(S({}, t.config.hooks.getPageAttributes()), P({
1579
+ let n = Date.now(), r = kn(t.config.hooks.redactUrl, e.blockedURI), i = e.sourceFile ? t.config.hooks.redactUrl(e.sourceFile) : void 0, a = S(S(S({}, t.config.hooks.getPageAttributes()), P({
1536
1580
  outcome: A.error,
1537
1581
  spanType: j.error
1538
1582
  })), {}, {
@@ -1558,7 +1602,7 @@ var Ne = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
1558
1602
  e == null || e(), e = void 0;
1559
1603
  }
1560
1604
  };
1561
- }, kn = (e) => {
1605
+ }, jn = (e) => {
1562
1606
  if (e instanceof Error) return e.message;
1563
1607
  if (typeof e == "string") return e;
1564
1608
  try {
@@ -1566,9 +1610,9 @@ var Ne = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
1566
1610
  } catch (t) {
1567
1611
  return String(e);
1568
1612
  }
1569
- }, An = ({ context: e, error: n, exceptionType: r, extra: i = {}, source: a }) => {
1613
+ }, Mn = ({ context: e, error: n, exceptionType: r, extra: i = {}, source: a }) => {
1570
1614
  if (!e.isSampled()) return;
1571
- let o = Date.now(), s = kn(n);
1615
+ let o = Date.now(), s = jn(n);
1572
1616
  e.notifyActivity({
1573
1617
  time: o,
1574
1618
  type: "error"
@@ -1592,7 +1636,7 @@ var Ne = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
1592
1636
  code: t.ERROR,
1593
1637
  message: s
1594
1638
  }), d.end();
1595
- }, jn = () => {
1639
+ }, Nn = () => {
1596
1640
  let e = [];
1597
1641
  return {
1598
1642
  name: "error",
@@ -1600,7 +1644,7 @@ var Ne = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
1600
1644
  if (typeof window > "u") return;
1601
1645
  let n = (e) => {
1602
1646
  var n;
1603
- An({
1647
+ Mn({
1604
1648
  context: t,
1605
1649
  source: "window.error",
1606
1650
  error: (n = e.error) == null ? e.message : n,
@@ -1611,7 +1655,7 @@ var Ne = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
1611
1655
  }
1612
1656
  });
1613
1657
  }, r = (e) => {
1614
- An({
1658
+ Mn({
1615
1659
  context: t,
1616
1660
  source: "unhandledrejection",
1617
1661
  error: e.reason,
@@ -1622,7 +1666,7 @@ var Ne = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
1622
1666
  let n = e.target;
1623
1667
  if (!(n instanceof Element)) return;
1624
1668
  let r = n, i = r.src || r.href || n.currentSrc || "";
1625
- An({
1669
+ Mn({
1626
1670
  context: t,
1627
1671
  source: "resource",
1628
1672
  error: /* @__PURE__ */ Error(`Resource load failed: ${n.tagName.toLowerCase()} ${i}`),
@@ -1639,7 +1683,7 @@ var Ne = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
1639
1683
  }
1640
1684
  }
1641
1685
  };
1642
- }, Mn = 50, Nn = (e, t) => typeof e == "number" && Number.isFinite(e) && e >= 0 ? e : t, Pn = (e) => Number.isFinite(e) ? e : void 0, Fn = (e, t) => S(S(S(S(S({}, e.containerId ? { "long_task.attribution.container_id": e.containerId } : {}), e.containerName ? { "long_task.attribution.container_name": e.containerName } : {}), e.containerSrc ? { "long_task.attribution.container_src": t(e.containerSrc) } : {}), e.containerType ? { "long_task.attribution.container_type": e.containerType } : {}), e.name ? { "long_task.attribution.name": e.name } : {}), In = (e, t) => ({
1686
+ }, Pn = 50, Fn = (e, t) => typeof e == "number" && Number.isFinite(e) && e >= 0 ? e : t, In = (e) => Number.isFinite(e) ? e : void 0, Ln = (e, t) => S(S(S(S(S({}, e.containerId ? { "long_task.attribution.container_id": e.containerId } : {}), e.containerName ? { "long_task.attribution.container_name": e.containerName } : {}), e.containerSrc ? { "long_task.attribution.container_src": t(e.containerSrc) } : {}), e.containerType ? { "long_task.attribution.container_type": e.containerType } : {}), e.name ? { "long_task.attribution.name": e.name } : {}), Rn = (e, t) => ({
1643
1687
  "long_task.script.duration": e.duration,
1644
1688
  "long_task.script.execution_start": e.executionStart,
1645
1689
  "long_task.script.forced_style_and_layout_duration": e.forcedStyleAndLayoutDuration,
@@ -1651,8 +1695,8 @@ var Ne = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
1651
1695
  "long_task.script.source_url": e.sourceURL ? t(e.sourceURL) : "",
1652
1696
  "long_task.script.start_time": e.startTime,
1653
1697
  "long_task.script.window_attribution": e.windowAttribution
1654
- }), Ln = (e = {}) => {
1655
- let t = Nn(e.threshold, Mn), n, r, i = [];
1698
+ }), zn = (e = {}) => {
1699
+ let t = Fn(e.threshold, Pn), n, r, i = [];
1656
1700
  return {
1657
1701
  name: "long-task",
1658
1702
  init(e) {
@@ -1663,18 +1707,18 @@ var Ne = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
1663
1707
  let c = (n) => {
1664
1708
  var r, i;
1665
1709
  if (!e.isSampled() || !Number.isFinite(n.duration) || n.duration < t) return;
1666
- let a = n.entryType === "long-animation-frame", o = a ? n : void 0, s = (r = o == null ? void 0 : o.scripts) == null ? [] : r, c = h("long-task"), l = performance.timeOrigin + n.startTime, u = l + n.duration, d = a ? "long-animation-frame" : "long-task", f = a || (i = n.attribution) == null ? [] : i, p = S(S(S(S(S(S({}, e.config.hooks.getPageAttributes()), P({ spanType: j.longTask })), Pn(o == null ? void 0 : o.blockingDuration) === void 0 ? {} : { [g.longTaskBlockingDuration]: o.blockingDuration }), {}, {
1710
+ let a = n.entryType === "long-animation-frame", o = a ? n : void 0, s = (r = o == null ? void 0 : o.scripts) == null ? [] : r, c = h("long-task"), l = performance.timeOrigin + n.startTime, u = l + n.duration, d = a ? "long-animation-frame" : "long-task", f = a || (i = n.attribution) == null ? [] : i, p = S(S(S(S(S(S({}, e.config.hooks.getPageAttributes()), P({ spanType: j.longTask })), In(o == null ? void 0 : o.blockingDuration) === void 0 ? {} : { [g.longTaskBlockingDuration]: o.blockingDuration }), {}, {
1667
1711
  [g.longTaskEntryType]: d,
1668
1712
  [g.longTaskId]: c,
1669
1713
  "long_task.name": n.name
1670
- }, Pn(o == null ? void 0 : o.firstUIEventTimestamp) === void 0 ? {} : { "long_task.first_ui_event_timestamp": o.firstUIEventTimestamp }), Pn(o == null ? void 0 : o.renderStart) === void 0 ? {} : { "long_task.render_start": o.renderStart }), Pn(o == null ? void 0 : o.styleAndLayoutStart) === void 0 ? {} : { "long_task.style_and_layout_start": o.styleAndLayoutStart }), m = e.startSpan(N({
1714
+ }, In(o == null ? void 0 : o.firstUIEventTimestamp) === void 0 ? {} : { "long_task.first_ui_event_timestamp": o.firstUIEventTimestamp }), In(o == null ? void 0 : o.renderStart) === void 0 ? {} : { "long_task.render_start": o.renderStart }), In(o == null ? void 0 : o.styleAndLayoutStart) === void 0 ? {} : { "long_task.style_and_layout_start": o.styleAndLayoutStart }), m = e.startSpan(N({
1671
1715
  attributes: p,
1672
1716
  spanType: j.longTask
1673
1717
  }), p, { startTime: l });
1674
1718
  s.forEach((t) => {
1675
- m.addEvent("long_task.script", e.applyRedact(In(t, e.config.hooks.redactUrl)), performance.timeOrigin + t.startTime);
1719
+ m.addEvent("long_task.script", e.applyRedact(Rn(t, e.config.hooks.redactUrl)), performance.timeOrigin + t.startTime);
1676
1720
  }), f.forEach((t, n) => {
1677
- m.addEvent("long_task.attribution", e.applyRedact(S({ "long_task.attribution.index": n }, Fn(t, e.config.hooks.redactUrl))), l);
1721
+ m.addEvent("long_task.attribution", e.applyRedact(S({ "long_task.attribution.index": n }, Ln(t, e.config.hooks.redactUrl))), l);
1678
1722
  }), m.end(u), e.notifyActivity({
1679
1723
  endTime: u,
1680
1724
  startTime: l,
@@ -1701,7 +1745,7 @@ var Ne = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
1701
1745
  n == null || n.disconnect(), n = void 0, clearTimeout(r), r = void 0, i = [];
1702
1746
  }
1703
1747
  };
1704
- }, Rn = /* @__PURE__ */ new Set(), K = "", q, J, zn = !1, Y = () => typeof location > "u" ? "" : location.href, Bn = (e, t) => {
1748
+ }, Bn = /* @__PURE__ */ new Set(), K = "", q, J, Vn = !1, Y = () => typeof location > "u" ? "" : location.href, Hn = (e, t) => {
1705
1749
  let n = Y();
1706
1750
  K = n;
1707
1751
  let r = {
@@ -1709,35 +1753,35 @@ var Ne = (e, t) => typeof e.enabled == "function" ? e.enabled(t) : e.enabled !==
1709
1753
  source: e,
1710
1754
  toUrl: n
1711
1755
  };
1712
- for (let e of Array.from(Rn)) e(r);
1713
- }, Vn = () => {
1714
- Bn("popstate", K || Y());
1715
- }, Hn = () => {
1716
- Bn("hashchange", K || Y());
1756
+ for (let e of Array.from(Bn)) e(r);
1717
1757
  }, Un = () => {
1718
- zn || typeof window > "u" || typeof history > "u" || (zn = !0, K = Y(), q = history.pushState, J = history.replaceState, history.pushState = function(e, t, n) {
1758
+ Hn("popstate", K || Y());
1759
+ }, Wn = () => {
1760
+ Hn("hashchange", K || Y());
1761
+ }, Gn = () => {
1762
+ Vn || typeof window > "u" || typeof history > "u" || (Vn = !0, K = Y(), q = history.pushState, J = history.replaceState, history.pushState = function(e, t, n) {
1719
1763
  let r = K || Y(), i = q == null ? void 0 : q.apply(this, [
1720
1764
  e,
1721
1765
  t,
1722
1766
  n
1723
1767
  ]);
1724
- return Bn("pushState", r), i;
1768
+ return Hn("pushState", r), i;
1725
1769
  }, history.replaceState = function(e, t, n) {
1726
1770
  let r = K || Y(), i = J == null ? void 0 : J.apply(this, [
1727
1771
  e,
1728
1772
  t,
1729
1773
  n
1730
1774
  ]);
1731
- return Bn("replaceState", r), i;
1732
- }, window.addEventListener("popstate", Vn), window.addEventListener("hashchange", Hn));
1733
- }, Wn = () => {
1734
- !zn || typeof window > "u" || typeof history > "u" || (q && (history.pushState = q), J && (history.replaceState = J), window.removeEventListener("popstate", Vn), window.removeEventListener("hashchange", Hn), q = void 0, J = void 0, zn = !1, K = "");
1735
- }, Gn = (e) => typeof window > "u" || typeof history > "u" ? () => {} : (Un(), Rn.add(e), () => {
1736
- Rn.delete(e), Rn.size === 0 && Wn();
1775
+ return Hn("replaceState", r), i;
1776
+ }, window.addEventListener("popstate", Un), window.addEventListener("hashchange", Wn));
1777
+ }, Kn = () => {
1778
+ !Vn || typeof window > "u" || typeof history > "u" || (q && (history.pushState = q), J && (history.replaceState = J), window.removeEventListener("popstate", Un), window.removeEventListener("hashchange", Wn), q = void 0, J = void 0, Vn = !1, K = "");
1779
+ }, qn = (e) => typeof window > "u" || typeof history > "u" ? () => {} : (Gn(), Bn.add(e), () => {
1780
+ Bn.delete(e), Bn.size === 0 && Kn();
1737
1781
  });
1738
1782
  //#endregion
1739
1783
  //#region \0@oxc-project+runtime@0.128.0/helpers/objectWithoutPropertiesLoose.js
1740
- function Kn(e, t) {
1784
+ function Jn(e, t) {
1741
1785
  if (e == null) return {};
1742
1786
  var n = {};
1743
1787
  for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -1748,9 +1792,9 @@ function Kn(e, t) {
1748
1792
  }
1749
1793
  //#endregion
1750
1794
  //#region \0@oxc-project+runtime@0.128.0/helpers/objectWithoutProperties.js
1751
- function qn(e, t) {
1795
+ function Yn(e, t) {
1752
1796
  if (e == null) return {};
1753
- var n, r, i = Kn(e, t);
1797
+ var n, r, i = Jn(e, t);
1754
1798
  if (Object.getOwnPropertySymbols) {
1755
1799
  var a = Object.getOwnPropertySymbols(e);
1756
1800
  for (r = 0; r < a.length; r++) n = a[r], t.includes(n) || {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
@@ -1759,7 +1803,7 @@ function qn(e, t) {
1759
1803
  }
1760
1804
  //#endregion
1761
1805
  //#region src/plugins/page-view.ts
1762
- var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof location > "u" ? "" : location.href, Zn = () => {
1806
+ var Xn = ["stopLoadingTime"], Zn = new Set(Object.values(g)), Qn = () => typeof location > "u" ? "" : location.href, $n = () => {
1763
1807
  if (typeof performance > "u") return {};
1764
1808
  let e = performance.getEntriesByType("navigation")[0];
1765
1809
  if (!e) return {};
@@ -1767,10 +1811,10 @@ var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof
1767
1811
  Number.isFinite(n) && n > 0 && (t[e] = n);
1768
1812
  };
1769
1813
  return n(g.viewFirstByte, e.responseStart), n(g.viewDomInteractive, e.domInteractive), n(g.viewDomContentLoaded, e.domContentLoadedEventEnd), n(g.viewDomComplete, e.domComplete), n(g.viewLoadEvent, e.loadEventEnd), t;
1770
- }, Qn = (e) => {
1814
+ }, er = (e) => {
1771
1815
  let t = e.indexOf("?");
1772
1816
  return t < 0 ? e : e.slice(0, t);
1773
- }, $n = (e) => {
1817
+ }, tr = (e) => {
1774
1818
  let t = e.slice(1);
1775
1819
  if (!t || typeof document > "u" || typeof document.getElementById != "function") return !1;
1776
1820
  try {
@@ -1778,14 +1822,14 @@ var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof
1778
1822
  } catch (e) {
1779
1823
  return !!document.getElementById(t);
1780
1824
  }
1781
- }, er = (e, t) => {
1825
+ }, nr = (e, t) => {
1782
1826
  try {
1783
1827
  let n = typeof location > "u" ? "http://localhost" : location.href, r = new URL(e, n), i = new URL(t, n);
1784
- return r.pathname !== i.pathname || !$n(i.hash) && Qn(r.hash) !== Qn(i.hash);
1828
+ return r.pathname !== i.pathname || !tr(i.hash) && er(r.hash) !== er(i.hash);
1785
1829
  } catch (n) {
1786
1830
  return e !== t;
1787
1831
  }
1788
- }, tr = () => {
1832
+ }, rr = () => {
1789
1833
  let e = [];
1790
1834
  return {
1791
1835
  name: "page-view",
@@ -1818,10 +1862,10 @@ var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof
1818
1862
  let s = S({}, n);
1819
1863
  (i = n.stopLoadingTime) == null || i.call(n), o(n, "end", r, e), n = void 0, t && a(r);
1820
1864
  let { stopLoadingTime: c } = s;
1821
- return qn(s, Jn);
1865
+ return Yn(s, Xn);
1822
1866
  }, c = (e, t, r) => {
1823
1867
  if (n !== e || !Number.isFinite(t) || t < 0) return;
1824
- let i = S(S({}, e.loadingType === "initial_load" ? Zn() : {}), {}, {
1868
+ let i = S(S({}, e.loadingType === "initial_load" ? $n() : {}), {}, {
1825
1869
  [g.viewLoadingTime]: t,
1826
1870
  [g.viewLoadingTimeSource]: r
1827
1871
  });
@@ -1857,13 +1901,13 @@ var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof
1857
1901
  }, d();
1858
1902
  }, u = (e) => {
1859
1903
  let n = t.applyRedact(e == null ? {} : e);
1860
- return Object.fromEntries(Object.entries(n).filter(([e, t]) => t !== void 0 && !Yn.has(e)));
1904
+ return Object.fromEntries(Object.entries(n).filter(([e, t]) => t !== void 0 && !Zn.has(e)));
1861
1905
  }, d = (e, r, i, a = ((e) => (e = n == null ? void 0 : n.rawUrl) == null ? "" : e)()) => {
1862
1906
  var c, d;
1863
1907
  if (!t.isSessionActive()) return;
1864
- let f = (c = e.url) == null ? Xn() : c, p = t.config.hooks.getViewUrlTemplate(f), m = a ? t.config.hooks.getViewUrlTemplate(a) : "", _ = (d = e.name) == null ? p : d, v = u(e.attributes);
1908
+ let f = (c = e.url) == null ? Qn() : c, p = t.config.hooks.getViewUrlTemplate(f), m = a ? t.config.hooks.getViewUrlTemplate(a) : "", _ = (d = e.name) == null ? p : d, v = u(e.attributes);
1865
1909
  s(r, !1);
1866
- let y = h("view"), b = t.config.hooks.redactUrl(f), x = t.config.hooks.redactUrl(a), C = i === "initial_load", w = C && typeof performance < "u" ? performance.timeOrigin : Date.now(), T = C ? Zn() : {};
1910
+ let y = h("view"), b = t.config.hooks.redactUrl(f), x = t.config.hooks.redactUrl(a), C = i === "initial_load", w = C && typeof performance < "u" ? performance.timeOrigin : Date.now(), T = C ? $n() : {};
1867
1911
  t.setView({
1868
1912
  attributes: v,
1869
1913
  id: y,
@@ -1912,8 +1956,8 @@ var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof
1912
1956
  }), o(n, "update"));
1913
1957
  }
1914
1958
  }), p = () => {};
1915
- t.config.view.tracking === "auto" && (n || d({}, "load", "initial_load"), p = Gn((e) => {
1916
- er(e.fromUrl, e.toUrl) && d({}, e.source, "route_change", e.fromUrl);
1959
+ t.config.view.tracking === "auto" && (n || d({}, "load", "initial_load"), p = qn((e) => {
1960
+ nr(e.fromUrl, e.toUrl) && d({}, e.source, "route_change", e.fromUrl);
1917
1961
  }));
1918
1962
  let m = (e) => {
1919
1963
  if (e.persisted) {
@@ -1955,7 +1999,7 @@ var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof
1955
1999
  }
1956
2000
  }
1957
2001
  };
1958
- }, nr = 5e3, rr = (e) => typeof e == "number" && Number.isFinite(e) && e > 0, ir = (e, t, n, r) => ({
2002
+ }, ir = 5e3, ar = (e) => typeof e == "number" && Number.isFinite(e) && e > 0, or = (e, t, n, r) => ({
1959
2003
  expiresAt: Math.min(t + n, t + r),
1960
2004
  id: e,
1961
2005
  startedAt: t,
@@ -1963,19 +2007,19 @@ var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof
1963
2007
  }), X = (e, t, n) => {
1964
2008
  if (t >= e.startedAt + n) return "maxLifetime";
1965
2009
  if (t >= e.expiresAt) return "inactivity";
1966
- }, ar = (e, t, n, r) => S(S({}, e), {}, { expiresAt: Math.min(t + n, e.startedAt + r) }), or = (e, t, n) => {
2010
+ }, sr = (e, t, n, r) => S(S({}, e), {}, { expiresAt: Math.min(t + n, e.startedAt + r) }), cr = (e, t, n) => {
1967
2011
  if (!e) return null;
1968
2012
  try {
1969
2013
  let r = JSON.parse(e);
1970
- if (r.status === "active" && typeof r.id == "string" && r.id.length > 0 && rr(r.startedAt) && r.startedAt <= t + nr && rr(r.expiresAt) && r.expiresAt >= r.startedAt && r.expiresAt <= r.startedAt + n || r.status === "expired" && typeof r.previousId == "string" && r.previousId.length > 0 && (r.reason === "inactivity" || r.reason === "maxLifetime") && rr(r.expiredAt) && r.expiredAt <= t + nr) return r;
2014
+ if (r.status === "active" && typeof r.id == "string" && r.id.length > 0 && ar(r.startedAt) && r.startedAt <= t + ir && ar(r.expiresAt) && r.expiresAt >= r.startedAt && r.expiresAt <= r.startedAt + n || r.status === "expired" && typeof r.previousId == "string" && r.previousId.length > 0 && (r.reason === "inactivity" || r.reason === "maxLifetime") && ar(r.expiredAt) && r.expiredAt <= t + ir) return r;
1971
2015
  } catch (e) {}
1972
2016
  return null;
1973
- }, sr = 900 * 1e3, Z = 14400 * 1e3, cr = 1e3, lr = 6e4, ur = [
2017
+ }, lr = 900 * 1e3, Z = 14400 * 1e3, ur = 1e3, dr = 6e4, fr = [
1974
2018
  "click",
1975
2019
  "keydown",
1976
2020
  "scroll",
1977
2021
  "touchstart"
1978
- ], dr = /* @__PURE__ */ new Map(), fr = (e) => {
2022
+ ], pr = /* @__PURE__ */ new Map(), mr = (e) => {
1979
2023
  let t = typeof window < "u", n = () => {
1980
2024
  var n;
1981
2025
  if (t) try {
@@ -1983,21 +2027,21 @@ var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof
1983
2027
  } catch (e) {
1984
2028
  t = !1;
1985
2029
  }
1986
- return (n = dr.get(e)) == null ? null : n;
2030
+ return (n = pr.get(e)) == null ? null : n;
1987
2031
  };
1988
2032
  return n(), {
1989
2033
  isLocalStorage: () => t,
1990
2034
  read: n,
1991
2035
  write: (n) => {
1992
2036
  let r = JSON.stringify(n);
1993
- if (dr.set(e, r), t) try {
2037
+ if (pr.set(e, r), t) try {
1994
2038
  window.localStorage.setItem(e, r);
1995
2039
  } catch (e) {
1996
2040
  t = !1;
1997
2041
  }
1998
2042
  }
1999
2043
  };
2000
- }, pr = (e, t) => {
2044
+ }, hr = (e, t) => {
2001
2045
  let n = "";
2002
2046
  try {
2003
2047
  n = new URL(e).host;
@@ -2005,7 +2049,7 @@ var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof
2005
2049
  n = e;
2006
2050
  }
2007
2051
  return `bk_ot_session__${m(`${t}\0${n || "default"}`)}`;
2008
- }, mr = (e, t, n, r) => {
2052
+ }, gr = (e, t, n, r) => {
2009
2053
  let i = S(S(S({}, e.config.hooks.getPageAttributes()), P({ spanType: j.session })), {}, {
2010
2054
  [g.sessionPhase]: t,
2011
2055
  [g.sessionHasReplay]: !1,
@@ -2019,7 +2063,7 @@ var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof
2019
2063
  contextTime: r,
2020
2064
  startTime: r
2021
2065
  }).end(r);
2022
- }, hr = (e = {}) => {
2066
+ }, _r = (e = {}) => {
2023
2067
  let t = [];
2024
2068
  return {
2025
2069
  name: "session",
@@ -2034,7 +2078,7 @@ var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof
2034
2078
  }, e);
2035
2079
  return;
2036
2080
  }
2037
- let i = (r = e.storageKey) == null ? pr(n.config.transport.endpoint, n.config.application.name) : r, a = fr(i), o = typeof performance < "u" && Number.isFinite(performance.timeOrigin) ? performance.timeOrigin : Date.now(), s, c, l = (e = Date.now()) => or(a.read(), e, Z), u = () => {
2081
+ let i = (r = e.storageKey) == null ? hr(n.config.transport.endpoint, n.config.application.name) : r, a = mr(i), o = typeof performance < "u" && Number.isFinite(performance.timeOrigin) ? performance.timeOrigin : Date.now(), s, c, l = (e = Date.now()) => cr(a.read(), e, Z), u = () => {
2038
2082
  c !== void 0 && (clearTimeout(c), c = void 0);
2039
2083
  }, d = (e, t = Date.now()) => {
2040
2084
  let r = s;
@@ -2043,7 +2087,7 @@ var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof
2043
2087
  id: r,
2044
2088
  reason: e,
2045
2089
  type: "expired"
2046
- }), mr(n, "end", r, t), u(), s = void 0, n.setRuntimeAttributes({
2090
+ }), gr(n, "end", r, t), u(), s = void 0, n.setRuntimeAttributes({
2047
2091
  [g.sessionHasReplay]: void 0,
2048
2092
  [g.sessionId]: void 0,
2049
2093
  [g.sessionType]: void 0
@@ -2094,15 +2138,15 @@ var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof
2094
2138
  }, _ = (e = !1) => {
2095
2139
  let t = Date.now(), r = l(t);
2096
2140
  if ((r == null ? void 0 : r.status) === "active" && !X(r, t, Z)) {
2097
- let e = ar(r, t, sr, Z);
2141
+ let e = sr(r, t, lr, Z);
2098
2142
  a.write(e), m(e, s ? void 0 : { reason: "shared" });
2099
2143
  return;
2100
2144
  }
2101
- let i = (r == null ? void 0 : r.status) === "expired" ? r.previousId : r == null ? void 0 : r.id, o = (r == null ? void 0 : r.status) === "expired" ? r.reason : r ? X(r, t, Z) : e ? "init" : void 0, c = ir(h("session"), t, sr, Z);
2145
+ let i = (r == null ? void 0 : r.status) === "expired" ? r.previousId : r == null ? void 0 : r.id, o = (r == null ? void 0 : r.status) === "expired" ? r.reason : r ? X(r, t, Z) : e ? "init" : void 0, c = or(h("session"), t, lr, Z);
2102
2146
  a.write(c), m(c, {
2103
2147
  previousId: i,
2104
2148
  reason: o == null ? "init" : o
2105
- }), mr(n, (o == null ? "init" : o) === "init" ? "start" : "rotate", c.id, c.startedAt);
2149
+ }), gr(n, (o == null ? "init" : o) === "init" ? "start" : "rotate", c.id, c.startedAt);
2106
2150
  }, v = () => {
2107
2151
  if (!s) return;
2108
2152
  let e = Date.now(), t = l(e);
@@ -2110,31 +2154,31 @@ var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof
2110
2154
  f();
2111
2155
  return;
2112
2156
  }
2113
- let n = ar(t, e, sr, Z);
2157
+ let n = sr(t, e, lr, Z);
2114
2158
  a.write(n), m(n);
2115
2159
  };
2116
2160
  _(!0);
2117
2161
  let y = 0, b = () => {
2118
2162
  let e = Date.now();
2119
- e - y < cr || (y = e, _());
2163
+ e - y < ur || (y = e, _());
2120
2164
  }, x = {
2121
2165
  capture: !0,
2122
2166
  passive: !0
2123
2167
  };
2124
- ur.forEach((e) => window.addEventListener(e, b, x)), t.push(() => {
2125
- ur.forEach((e) => window.removeEventListener(e, b, x));
2168
+ fr.forEach((e) => window.addEventListener(e, b, x)), t.push(() => {
2169
+ fr.forEach((e) => window.removeEventListener(e, b, x));
2126
2170
  });
2127
2171
  let S = () => {
2128
2172
  document.visibilityState === "visible" && v();
2129
2173
  };
2130
2174
  document.addEventListener("visibilitychange", S);
2131
- let C = window.setInterval(S, lr);
2175
+ let C = window.setInterval(S, dr);
2132
2176
  t.push(() => {
2133
2177
  document.removeEventListener("visibilitychange", S), window.clearInterval(C);
2134
2178
  });
2135
2179
  let w = (e) => {
2136
2180
  if (!a.isLocalStorage() || e.storageArea !== window.localStorage || e.key !== i) return;
2137
- let t = Date.now(), n = or(e.newValue, t, Z);
2181
+ let t = Date.now(), n = cr(e.newValue, t, Z);
2138
2182
  if ((n == null ? void 0 : n.status) === "active" && n.id === s && !X(n, t, Z)) {
2139
2183
  p(n);
2140
2184
  return;
@@ -2147,38 +2191,38 @@ var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof
2147
2191
  for (var e; t.length;) (e = t.pop()) == null || e();
2148
2192
  }
2149
2193
  };
2150
- }, gr = 10, _r = 6e4, vr = 5e3, yr = 1e3, br = (e, t) => !!t && e === t, xr = (e, t) => {
2194
+ }, vr = 10, yr = 6e4, br = 5e3, xr = 1e3, Sr = (e, t) => !!t && e === t, Cr = (e, t) => {
2151
2195
  let [n, r] = e === "CLS" ? [.1, .25] : [200, 500];
2152
2196
  return t <= n ? "good" : t <= r ? "needs-improvement" : "poor";
2153
- }, Sr = (e) => {
2197
+ }, wr = (e) => {
2154
2198
  var t, n, r;
2155
2199
  if (!(typeof Element > "u" || !(e instanceof Element))) return (t = (n = (r = e.getAttribute("data-bk-action-name")) == null ? e.getAttribute("aria-label") : r) == null ? e.getAttribute("name") : n) == null ? e.tagName.toLowerCase() : t;
2156
- }, Cr = () => {
2200
+ }, Tr = () => {
2157
2201
  if (typeof performance > "u") return;
2158
2202
  let e = performance.interactionCount;
2159
2203
  return typeof e == "number" && Number.isFinite(e) ? e : void 0;
2160
- }, wr = (e, t) => {
2204
+ }, Er = (e, t) => {
2161
2205
  var n, r;
2162
2206
  let i = (n = t.value) == null ? 0 : n;
2163
- t.hadRecentInput || !Number.isFinite(i) || (e.clsWindowStart === void 0 || t.startTime - ((r = e.clsWindowEnd) == null ? t.startTime : r) >= yr || t.startTime - e.clsWindowStart >= vr ? (e.clsWindowStart = t.startTime, e.clsWindowValue = i) : e.clsWindowValue += i, e.clsWindowEnd = t.startTime, e.clsWindowValue > e.cls && (e.cls = Math.round(e.clsWindowValue * 1e4) / 1e4));
2164
- }, Tr = (e, t) => {
2207
+ t.hadRecentInput || !Number.isFinite(i) || (e.clsWindowStart === void 0 || t.startTime - ((r = e.clsWindowEnd) == null ? t.startTime : r) >= xr || t.startTime - e.clsWindowStart >= br ? (e.clsWindowStart = t.startTime, e.clsWindowValue = i) : e.clsWindowValue += i, e.clsWindowEnd = t.startTime, e.clsWindowValue > e.cls && (e.cls = Math.round(e.clsWindowValue * 1e4) / 1e4));
2208
+ }, Dr = (e, t) => {
2165
2209
  var n, r;
2166
2210
  if (!t.interactionId || !Number.isFinite(t.duration)) return;
2167
2211
  e.interactionIdMin = Math.min(e.interactionIdMin, t.interactionId), e.interactionIdMax = Math.max(e.interactionIdMax, t.interactionId);
2168
2212
  let i = (n = t.processingStart) == null ? t.startTime : n, a = (r = t.processingEnd) == null ? i : r, o = {
2169
- duration: Math.min(t.duration, _r),
2213
+ duration: Math.min(t.duration, yr),
2170
2214
  inputDelay: Math.max(0, i - t.startTime),
2171
2215
  interactionId: t.interactionId,
2172
- interactionTarget: Sr(t.target),
2216
+ interactionTarget: wr(t.target),
2173
2217
  interactionType: t.name,
2174
2218
  presentationDelay: Math.max(0, t.startTime + t.duration - a),
2175
2219
  processingDuration: Math.max(0, a - i)
2176
2220
  }, s = e.inpCandidates.findIndex((e) => e.interactionId === t.interactionId);
2177
- s >= 0 ? o.duration > e.inpCandidates[s].duration && (e.inpCandidates[s] = o) : e.inpCandidates.push(o), e.inpCandidates.sort((e, t) => t.duration - e.duration).splice(gr);
2178
- }, Er = (e) => {
2179
- let t = Cr(), n = t !== void 0 && e.interactionCountAtStart !== void 0 ? Math.max(0, t - e.interactionCountAtStart) : e.interactionIdMin === Infinity ? 0 : (e.interactionIdMax - e.interactionIdMin) / 7 + 1;
2221
+ s >= 0 ? o.duration > e.inpCandidates[s].duration && (e.inpCandidates[s] = o) : e.inpCandidates.push(o), e.inpCandidates.sort((e, t) => t.duration - e.duration).splice(vr);
2222
+ }, Or = (e) => {
2223
+ let t = Tr(), n = t !== void 0 && e.interactionCountAtStart !== void 0 ? Math.max(0, t - e.interactionCountAtStart) : e.interactionIdMin === Infinity ? 0 : (e.interactionIdMax - e.interactionIdMin) / 7 + 1;
2180
2224
  if (e.inpCandidates.length) return e.inpCandidates[Math.min(e.inpCandidates.length - 1, Math.floor(n / 50))];
2181
- }, Dr = (e, t) => {
2225
+ }, kr = (e, t) => {
2182
2226
  var n;
2183
2227
  let r = (n = e.attribution) == null ? {} : n, i = {}, a = (e) => r[e], o = (e, t, n) => {
2184
2228
  t != null && (typeof t == "string" || typeof t == "number" || typeof t == "boolean") && (i[e] = typeof t == "string" && n ? n(t) : t);
@@ -2199,7 +2243,7 @@ var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof
2199
2243
  default: break;
2200
2244
  }
2201
2245
  return i;
2202
- }, Or = () => {
2246
+ }, Ar = () => {
2203
2247
  let e, t = !1;
2204
2248
  return {
2205
2249
  name: "web-vitals",
@@ -2226,7 +2270,7 @@ var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof
2226
2270
  [g.vitalMetric]: a,
2227
2271
  [g.vitalValue]: e.value,
2228
2272
  "vital.id": e.id
2229
- }, Dr(e, n.config.hooks.redactUrl));
2273
+ }, kr(e, n.config.hooks.redactUrl));
2230
2274
  n.startSpan(N({
2231
2275
  attributes: o,
2232
2276
  spanType: j.vital
@@ -2248,10 +2292,10 @@ var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof
2248
2292
  entries: [],
2249
2293
  id: h("vital"),
2250
2294
  name: "CLS",
2251
- rating: xr("CLS", e.cls),
2295
+ rating: Cr("CLS", e.cls),
2252
2296
  value: e.cls
2253
2297
  }, e.runtimeAttributes, e.startedAt);
2254
- let t = Er(e);
2298
+ let t = Or(e);
2255
2299
  t && p({
2256
2300
  attribution: {
2257
2301
  inputDelay: t.inputDelay,
@@ -2263,13 +2307,13 @@ var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof
2263
2307
  entries: [],
2264
2308
  id: h("vital"),
2265
2309
  name: "INP",
2266
- rating: xr("INP", t.duration),
2310
+ rating: Cr("INP", t.duration),
2267
2311
  value: t.duration
2268
2312
  }, e.runtimeAttributes, e.startedAt);
2269
2313
  }, _ = n.onViewChange((e) => {
2270
2314
  var t;
2271
2315
  let r = u;
2272
- if (r && br(r.id, e.id)) {
2316
+ if (r && Sr(r.id, e.id)) {
2273
2317
  r.runtimeAttributes = S(S(S({}, r.runtimeAttributes), {}, { [g.viewId]: e.id }, e.name ? { [g.viewName]: e.name } : {}), {}, {
2274
2318
  [g.viewUrl]: e.url,
2275
2319
  [g.viewUrlTemplate]: e.urlTemplate
@@ -2279,7 +2323,7 @@ var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof
2279
2323
  m(), u = e.id ? {
2280
2324
  cls: 0,
2281
2325
  clsWindowValue: 0,
2282
- interactionCountAtStart: Cr(),
2326
+ interactionCountAtStart: Tr(),
2283
2327
  interactionIdMax: 0,
2284
2328
  interactionIdMin: Infinity,
2285
2329
  inpCandidates: [],
@@ -2291,12 +2335,12 @@ var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof
2291
2335
  if (typeof PerformanceObserver < "u") {
2292
2336
  var v, y;
2293
2337
  (v = PerformanceObserver.supportedEntryTypes) != null && v.includes("layout-shift") && (f = new PerformanceObserver((e) => {
2294
- if (u) for (let t of e.getEntries()) performance.timeOrigin + t.startTime < u.startedAt || wr(u, t);
2338
+ if (u) for (let t of e.getEntries()) performance.timeOrigin + t.startTime < u.startedAt || Er(u, t);
2295
2339
  }), f.observe({
2296
2340
  buffered: !0,
2297
2341
  type: "layout-shift"
2298
2342
  })), (y = PerformanceObserver.supportedEntryTypes) != null && y.includes("event") && (d = new PerformanceObserver((e) => {
2299
- if (u) for (let t of e.getEntries()) performance.timeOrigin + t.startTime < u.startedAt || !t.interactionId || !Number.isFinite(t.duration) || Tr(u, t);
2343
+ if (u) for (let t of e.getEntries()) performance.timeOrigin + t.startTime < u.startedAt || !t.interactionId || !Number.isFinite(t.duration) || Dr(u, t);
2300
2344
  }), d.observe({
2301
2345
  buffered: !0,
2302
2346
  durationThreshold: 40,
@@ -2312,7 +2356,7 @@ var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof
2312
2356
  t = !0, e == null || e(), e = void 0;
2313
2357
  }
2314
2358
  };
2315
- }, kr = (e, t) => {
2359
+ }, jr = (e, t) => {
2316
2360
  let n = {
2317
2361
  "network.protocol.name": "websocket",
2318
2362
  "url.full": t(e)
@@ -2322,8 +2366,8 @@ var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof
2322
2366
  n["server.address"] = t.hostname, t.port && (n["server.port"] = Number(t.port)), n["url.scheme"] = t.protocol.replace(":", "");
2323
2367
  } catch (e) {}
2324
2368
  return n;
2325
- }, Ar = (t, n, r, i) => {
2326
- let a = h("websocket"), o = kr(r, n.config.hooks.redactUrl), s = !1, c = (t, r, s = {}) => {
2369
+ }, Mr = (t, n, r, i) => {
2370
+ let a = h("websocket"), o = jr(r, n.config.hooks.redactUrl), s = !1, c = (t, r, s = {}) => {
2327
2371
  if (i() || !n.isSampled()) return;
2328
2372
  let c = t === "error", l = S(S(S({}, o), P({
2329
2373
  outcome: c ? A.error : A.success,
@@ -2351,7 +2395,7 @@ var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof
2351
2395
  "websocket.close.was_clean": e.wasClean
2352
2396
  });
2353
2397
  });
2354
- }, jr = () => {
2398
+ }, Nr = () => {
2355
2399
  let e, t, n = !1;
2356
2400
  return {
2357
2401
  name: "websocket",
@@ -2362,29 +2406,29 @@ var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof
2362
2406
  let a = Reflect.construct(e, t, i);
2363
2407
  if (n || !r.isSampled()) return a;
2364
2408
  let o = t[0] == null ? "" : String(t[0]);
2365
- return o && !D(r.config, o) && Ar(a, r, o, () => n), a;
2409
+ return o && !D(r.config, o) && Mr(a, r, o, () => n), a;
2366
2410
  } }), window.WebSocket = t;
2367
2411
  },
2368
2412
  shutdown() {
2369
2413
  n = !0, typeof window < "u" && e && window.WebSocket === t && (window.WebSocket = e), t = void 0, e = void 0;
2370
2414
  }
2371
2415
  };
2372
- }, Mr = class {
2416
+ }, Pr = class {
2373
2417
  constructor() {
2374
2418
  b(this, "listeners", /* @__PURE__ */ new Set()), b(this, "notify", (e) => {
2375
2419
  this.listeners.forEach((t) => t(e));
2376
2420
  }), b(this, "subscribe", (e) => (this.listeners.add(e), () => this.listeners.delete(e)));
2377
2421
  }
2378
- }, Nr = (e) => {
2422
+ }, Fr = (e) => {
2379
2423
  let t = 2166136261;
2380
2424
  for (let n = 0; n < e.length; n += 1) t = Math.imul(t ^ e.charCodeAt(n), 16777619);
2381
2425
  return t += t << 13, t ^= t >>> 7, t += t << 3, t ^= t >>> 17, t += t << 5, (t >>> 0) / 4294967296;
2382
- }, Pr = ({ application: e, session: t }, n) => t.sampleRate <= 0 ? !1 : t.sampleRate >= 1 ? !0 : Nr(`${e.name}\0${n}`) < t.sampleRate, Fr = (e) => ({
2426
+ }, Ir = ({ application: e, session: t }, n) => t.sampleRate <= 0 ? !1 : t.sampleRate >= 1 ? !0 : Fr(`${e.name}\0${n}`) < t.sampleRate, Lr = (e) => ({
2383
2427
  url: e.endpoint,
2384
2428
  headers: e.headers,
2385
2429
  concurrencyLimit: e.concurrencyLimit,
2386
2430
  timeoutMillis: e.timeoutMillis
2387
- }), Ir = "bk-rum", Lr = class {
2431
+ }), Rr = "bk-rum", zr = class {
2388
2432
  constructor(e) {
2389
2433
  this.isSampled = e;
2390
2434
  }
@@ -2394,7 +2438,7 @@ var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof
2394
2438
  toString() {
2395
2439
  return "RumSessionSampler";
2396
2440
  }
2397
- }, Q, Rr = () => {
2441
+ }, Q, Br = () => {
2398
2442
  if (Q) Q.users += 1;
2399
2443
  else {
2400
2444
  let e = new a().enable(), t = r.setGlobalContextManager(e);
@@ -2409,28 +2453,28 @@ var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof
2409
2453
  return () => {
2410
2454
  e || !Q || (e = !0, --Q.users, !(Q.users > 0) && (Q.ownsContext && r.disable(), Q.ownsPropagator && i.disable(), Q = void 0));
2411
2455
  };
2412
- }, zr = (e, t) => t ? new Proxy(e, { get(e, t, n) {
2456
+ }, Vr = (e, t) => t ? new Proxy(e, { get(e, t, n) {
2413
2457
  if (t === "export") return (t, n) => {
2414
2458
  var r;
2415
2459
  return (r = globalThis.console) == null || r.log("[bk-ot][rum]", t), e.export(t, n);
2416
2460
  };
2417
2461
  let r = Reflect.get(e, t, n);
2418
2462
  return typeof r == "function" ? r.bind(e) : r;
2419
- } }) : e, Br = (e) => [Tn(e.tracking.request)], Vr = (e) => [
2420
- hr(e.session),
2463
+ } }) : e, Hr = (e) => [Dn(e.tracking.request)], Ur = (e) => [
2464
+ _r(e.session),
2421
2465
  ...$(e.tracking.device, !0, ce),
2422
2466
  _t(),
2423
- tr(),
2424
- sn(Hr(e.tracking.resource, !0))
2425
- ], Hr = (e, t) => e === void 0 ? t : e !== !1, Ur = (e) => typeof e == "object" && e ? e : void 0, $ = (e, t, n) => Hr(e, t) ? [n(Ur(e))] : [], Wr = (e) => [
2426
- ...$(e.error, !0, jn),
2427
- ...$(e.webVitals, !0, Or),
2467
+ rr(),
2468
+ ln(Wr(e.tracking.resource, !0))
2469
+ ], Wr = (e, t) => e === void 0 ? t : e !== !1, Gr = (e) => typeof e == "object" && e ? e : void 0, $ = (e, t, n) => Wr(e, t) ? [n(Gr(e))] : [], Kr = (e) => [
2470
+ ...$(e.error, !0, Nn),
2471
+ ...$(e.webVitals, !0, Ar),
2428
2472
  ...$(e.blankScreen, !0, Mt),
2429
2473
  ...$(e.action, !0, mt),
2430
- ...$(e.websocket, !1, jr),
2431
- ...$(e.longTask, !1, Ln),
2432
- ...$(e.cspViolation, !1, On)
2433
- ], Gr = class {
2474
+ ...$(e.websocket, !1, Nr),
2475
+ ...$(e.longTask, !1, zn),
2476
+ ...$(e.cspViolation, !1, An)
2477
+ ], qr = class {
2434
2478
  assertBeforeStart(e) {
2435
2479
  if (this.phase !== "idle") throw Error(`[bk-ot] ${e}() must be called before start(); set autoStart: false before registration.`);
2436
2480
  }
@@ -2461,19 +2505,19 @@ var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof
2461
2505
  createPluginManager() {
2462
2506
  var e;
2463
2507
  return new Fe([
2464
- ...Vr(this.config),
2465
- ...Br(this.config),
2466
- ...Wr(this.config.tracking),
2508
+ ...Ur(this.config),
2509
+ ...Hr(this.config),
2510
+ ...Kr(this.config.tracking),
2467
2511
  ...(e = this.config.extensions.plugins) == null ? [] : e
2468
2512
  ]);
2469
2513
  }
2470
2514
  constructor(n) {
2471
2515
  var r = this;
2472
- b(this, "activityObserver", new Mr()), b(this, "flushProviders", k(function* () {
2516
+ b(this, "activityObserver", new Pr()), b(this, "flushProviders", k(function* () {
2473
2517
  yield r.tracerProvider.forceFlush();
2474
2518
  })), b(this, "phase", "idle"), b(this, "pluginManager", void 0), b(this, "registeredInstrumentations", void 0), b(this, "releaseOtelGlobals", void 0), b(this, "runtimeContext", void 0), b(this, "sampled", !1), b(this, "startCollection", k(function* () {
2475
2519
  if (r.pluginManager || !r.config.enabled || r.config.trackingConsent !== "granted") return;
2476
- r.releaseOtelGlobals = Rr();
2520
+ r.releaseOtelGlobals = Br();
2477
2521
  let e = r.createPluginManager();
2478
2522
  r.pluginManager = e;
2479
2523
  try {
@@ -2546,7 +2590,7 @@ var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof
2546
2590
  let n = S({}, e), r = t == null ? Date.now() : t;
2547
2591
  if (g.sessionId in e) {
2548
2592
  let t = e[g.sessionId];
2549
- this.sampled = this.config.enabled && typeof t == "string" && t.length > 0 ? Pr(this.config, t) : !1, this.runtimeContext.setSessionSampled(this.sampled, r);
2593
+ this.sampled = this.config.enabled && typeof t == "string" && t.length > 0 ? Ir(this.config, t) : !1, this.runtimeContext.setSessionSampled(this.sampled, r);
2550
2594
  }
2551
2595
  this.runtimeContext.setAttributes(n, r);
2552
2596
  }), b(this, "setTrackingConsent", function() {
@@ -2629,18 +2673,18 @@ var Jn = ["stopLoadingTime"], Yn = new Set(Object.values(g)), Xn = () => typeof
2629
2673
  return this.assertBeforeStart("useInstrumentation"), this.config.enabled && ((t = this.config.extensions.instrumentations) == null || t.push(e)), this;
2630
2674
  }), this.config = je(n), this.runtimeContext = new Ze({}, this.config.user);
2631
2675
  let i = c(this.config.resourceAttributes), a = (() => {
2632
- let e = zr(new s(Fr(this.config.transport)), this.config.debug);
2676
+ let e = Vr(new s(Lr(this.config.transport)), this.config.debug);
2633
2677
  return [new Je(this.config.spanProcessor === "simple" ? new d(e) : new l(e, this.config.spanBatch), this.config, () => this.applyRedact(S(S({}, this.runtimeContext.getAttributes()), this.config.hooks.getPageAttributes())))];
2634
2678
  })();
2635
2679
  this.tracerProvider = new f({
2636
2680
  resource: i,
2637
- sampler: new Lr(this.isSampled),
2681
+ sampler: new zr(this.isSampled),
2638
2682
  spanProcessors: a
2639
- }), this.tracer = this.tracerProvider.getTracer(Ir), this.registeredInstrumentations = [], this.config.autoStart && this.start().catch((e) => {
2683
+ }), this.tracer = this.tracerProvider.getTracer(Rr), this.registeredInstrumentations = [], this.config.autoStart && this.start().catch((e) => {
2640
2684
  var t;
2641
2685
  (t = globalThis.console) == null || t.warn("[bk-ot] auto start failed:", e);
2642
2686
  });
2643
2687
  }
2644
2688
  };
2645
2689
  //#endregion
2646
- export { Gr as BkOpenTelemetry, ht as EXCLUDED_ACTIVITY_MUTATIONS_ATTRIBUTE, Je as FilteringSpanProcessor, g as RUM_ATTRIBUTES, A as RUM_SPAN_OUTCOME, j as RUM_SPAN_TYPE, Ze as RumRuntimeContext, P as buildRumSpanAttributes, mt as createActionPlugin, Mt as createBlankScreenPlugin, Tn as createCommonInstrumentationsPlugin, On as createCspViolationPlugin, ce as createDevicePlugin, jn as createErrorPlugin, Ln as createLongTaskPlugin, Pe as createPlugin, sn as createResourcePlugin, hr as createSessionPlugin, jr as createWebSocketPlugin, Or as createWebVitalsPlugin, je as resolveConfig };
2690
+ export { qr as BkOpenTelemetry, ht as EXCLUDED_ACTIVITY_MUTATIONS_ATTRIBUTE, Je as FilteringSpanProcessor, g as RUM_ATTRIBUTES, A as RUM_SPAN_OUTCOME, j as RUM_SPAN_TYPE, Ze as RumRuntimeContext, P as buildRumSpanAttributes, mt as createActionPlugin, Mt as createBlankScreenPlugin, Dn as createCommonInstrumentationsPlugin, An as createCspViolationPlugin, ce as createDevicePlugin, Nn as createErrorPlugin, zn as createLongTaskPlugin, Pe as createPlugin, ln as createResourcePlugin, _r as createSessionPlugin, Nr as createWebSocketPlugin, Ar as createWebVitalsPlugin, je as resolveConfig };