@konnectio/core 4.0.63 → 4.0.65

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.
Files changed (76) hide show
  1. package/dist/{ActionField-3MggPKk9.js → ActionField-D5c9yQMq.js} +36 -28
  2. package/dist/ActionField-D5c9yQMq.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-BfyLbK2o.js +299 -0
  4. package/dist/AvailabilitySkeleton-BfyLbK2o.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CnYjbggZ.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CxZ-h3My.js} +934 -924
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CxZ-h3My.js.br +0 -0
  7. package/dist/{CheckoutWindow-DolJgk40.js → CheckoutWindow-B74NMuGr.js} +174 -166
  8. package/dist/CheckoutWindow-B74NMuGr.js.br +0 -0
  9. package/dist/{ErrorMessage-BksKCxAq.js → ErrorMessage-CWR5rjTx.js} +24 -16
  10. package/dist/ErrorMessage-CWR5rjTx.js.br +0 -0
  11. package/dist/EventAvailabilityForm-lFAnwVMX.js +125 -0
  12. package/dist/EventAvailabilityForm-lFAnwVMX.js.br +0 -0
  13. package/dist/Field-C4DyN4XC.js +58 -0
  14. package/dist/Field-C4DyN4XC.js.br +0 -0
  15. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-D7XjSTM3.js +18813 -0
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-D7XjSTM3.js.br +0 -0
  17. package/dist/TermsOfService-Bx4b2VxT.js +44 -0
  18. package/dist/TermsOfService-Bx4b2VxT.js.br +0 -0
  19. package/dist/_-DmU4JLX1.js +20 -0
  20. package/dist/_.vue_vue_type_style_index_0_lang-B2Kq55VX.js +77 -0
  21. package/dist/_.vue_vue_type_style_index_0_lang-B2Kq55VX.js.br +0 -0
  22. package/dist/_commonjsHelpers-BbdZelfp.js +25 -0
  23. package/dist/_commonjsHelpers-BbdZelfp.js.br +0 -0
  24. package/dist/{_sentry-release-injection-file-DEszgcWK.js → _sentry-release-injection-file-tJBg8sGS.js} +1643 -1635
  25. package/dist/_sentry-release-injection-file-tJBg8sGS.js.br +0 -0
  26. package/dist/availability.js +65 -55
  27. package/dist/availability.js.br +0 -0
  28. package/dist/deep-link.js +29 -21
  29. package/dist/deep-link.js.br +0 -0
  30. package/dist/event.js +260 -252
  31. package/dist/event.js.br +0 -0
  32. package/dist/gift-card-validation.js +64 -56
  33. package/dist/gift-card-validation.js.br +0 -0
  34. package/dist/gift-card.js +137 -129
  35. package/dist/gift-card.js.br +0 -0
  36. package/dist/giftCard-SDJGsDep.js +134 -0
  37. package/dist/giftCard-SDJGsDep.js.br +0 -0
  38. package/dist/hotel.js +939 -920
  39. package/dist/hotel.js.br +0 -0
  40. package/dist/{masonry.plugin-GGoTX7a7.js → masonry.plugin-BhK5XQta.js} +860 -852
  41. package/dist/masonry.plugin-BhK5XQta.js.br +0 -0
  42. package/dist/{mitt-DnPlcQNp.js → mitt-CGFh35r5.js} +505 -497
  43. package/dist/mitt-CGFh35r5.js.br +0 -0
  44. package/dist/polyfill.js +6471 -6259
  45. package/dist/polyfill.js.br +0 -0
  46. package/dist/{style-2RYcVxT9.js → style-BQlIFUN3.js} +418 -403
  47. package/dist/style-BQlIFUN3.js.br +0 -0
  48. package/dist/style.css +1 -1
  49. package/dist/style.css.br +0 -0
  50. package/dist/{_commonjsHelpers-DEK47QeC.js → tracing-B1Jp160Y.js} +597 -544
  51. package/dist/tracing-B1Jp160Y.js.br +0 -0
  52. package/package.json +16 -16
  53. package/dist/ActionField-3MggPKk9.js.br +0 -0
  54. package/dist/AvailabilitySkeleton-DSgC6hn3.js +0 -293
  55. package/dist/AvailabilitySkeleton-DSgC6hn3.js.br +0 -0
  56. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CnYjbggZ.js.br +0 -0
  57. package/dist/CheckoutWindow-DolJgk40.js.br +0 -0
  58. package/dist/ErrorMessage-BksKCxAq.js.br +0 -0
  59. package/dist/EventAvailabilityForm-DZljldrC.js +0 -117
  60. package/dist/EventAvailabilityForm-DZljldrC.js.br +0 -0
  61. package/dist/Field-DGi_AnA6.js +0 -50
  62. package/dist/Field-DGi_AnA6.js.br +0 -0
  63. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js +0 -18734
  64. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js.br +0 -0
  65. package/dist/TermsOfService-LDUTInOo.js +0 -36
  66. package/dist/TermsOfService-LDUTInOo.js.br +0 -0
  67. package/dist/_-CBEOFztf.js +0 -12
  68. package/dist/_.vue_vue_type_style_index_0_lang-DjuzMOwH.js +0 -69
  69. package/dist/_.vue_vue_type_style_index_0_lang-DjuzMOwH.js.br +0 -0
  70. package/dist/_commonjsHelpers-DEK47QeC.js.br +0 -0
  71. package/dist/_sentry-release-injection-file-DEszgcWK.js.br +0 -0
  72. package/dist/giftCard-DLrIdehA.js +0 -126
  73. package/dist/giftCard-DLrIdehA.js.br +0 -0
  74. package/dist/masonry.plugin-GGoTX7a7.js.br +0 -0
  75. package/dist/mitt-DnPlcQNp.js.br +0 -0
  76. package/dist/style-2RYcVxT9.js.br +0 -0
@@ -1,24 +1,31 @@
1
- import "./_sentry-release-injection-file-DEszgcWK.js";
2
1
  (function() {
3
2
  try {
4
3
  var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, e = new Error().stack;
5
- e && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[e] = "f40c230a-78da-483f-b571-a8ec8890deef", t._sentryDebugIdIdentifier = "sentry-dbid-f40c230a-78da-483f-b571-a8ec8890deef");
4
+ e && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[e] = "9af23780-a144-4878-8496-102860f3ae43", t._sentryDebugIdIdentifier = "sentry-dbid-9af23780-a144-4878-8496-102860f3ae43");
6
5
  } catch {
7
6
  }
8
7
  })();
9
- const Jt = Object.prototype.toString;
10
- function Se(t) {
11
- switch (Jt.call(t)) {
8
+ {
9
+ var K = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
10
+ K._sentryModuleMetadata = K._sentryModuleMetadata || {}, K._sentryModuleMetadata[new Error().stack] = Object.assign(
11
+ {},
12
+ K._sentryModuleMetadata[new Error().stack],
13
+ { "_sentryBundlerPluginAppKey:konnectio-frontend-core": !0 }
14
+ );
15
+ }
16
+ const Kt = Object.prototype.toString;
17
+ function ye(t) {
18
+ switch (Kt.call(t)) {
12
19
  case "[object Error]":
13
20
  case "[object Exception]":
14
21
  case "[object DOMException]":
15
22
  return !0;
16
23
  default:
17
- return V(t, Error);
24
+ return W(t, Error);
18
25
  }
19
26
  }
20
27
  function L(t, e) {
21
- return Jt.call(t) === `[object ${e}]`;
28
+ return Kt.call(t) === `[object ${e}]`;
22
29
  }
23
30
  function Sr(t) {
24
31
  return L(t, "ErrorEvent");
@@ -29,41 +36,41 @@ function yr(t) {
29
36
  function Er(t) {
30
37
  return L(t, "DOMException");
31
38
  }
32
- function z(t) {
39
+ function q(t) {
33
40
  return L(t, "String");
34
41
  }
35
- function ye(t) {
42
+ function Ee(t) {
36
43
  return typeof t == "object" && t !== null && "__sentry_template_string__" in t && "__sentry_template_values__" in t;
37
44
  }
38
45
  function br(t) {
39
- return t === null || ye(t) || typeof t != "object" && typeof t != "function";
46
+ return t === null || Ee(t) || typeof t != "object" && typeof t != "function";
40
47
  }
41
- function dt(t) {
48
+ function pt(t) {
42
49
  return L(t, "Object");
43
50
  }
44
- function Ee(t) {
45
- return typeof Event < "u" && V(t, Event);
46
- }
47
51
  function be(t) {
48
- return typeof Element < "u" && V(t, Element);
52
+ return typeof Event < "u" && W(t, Event);
49
53
  }
50
54
  function Te(t) {
55
+ return typeof Element < "u" && W(t, Element);
56
+ }
57
+ function Ie(t) {
51
58
  return L(t, "RegExp");
52
59
  }
53
- function pt(t) {
60
+ function lt(t) {
54
61
  return !!(t && t.then && typeof t.then == "function");
55
62
  }
56
- function Ie(t) {
57
- return dt(t) && "nativeEvent" in t && "preventDefault" in t && "stopPropagation" in t;
63
+ function Ne(t) {
64
+ return pt(t) && "nativeEvent" in t && "preventDefault" in t && "stopPropagation" in t;
58
65
  }
59
- function V(t, e) {
66
+ function W(t, e) {
60
67
  try {
61
68
  return t instanceof e;
62
69
  } catch {
63
70
  return !1;
64
71
  }
65
72
  }
66
- function Kt(t) {
73
+ function zt(t) {
67
74
  return !!(typeof t == "object" && t !== null && (t.__isVue || t._isVue));
68
75
  }
69
76
  function G(t, e = 0) {
@@ -76,26 +83,26 @@ function Tr(t, e) {
76
83
  for (let r = 0; r < t.length; r++) {
77
84
  const s = t[r];
78
85
  try {
79
- Kt(s) ? n.push("[VueViewModel]") : n.push(String(s));
86
+ zt(s) ? n.push("[VueViewModel]") : n.push(String(s));
80
87
  } catch {
81
88
  n.push("[value cannot be serialized]");
82
89
  }
83
90
  }
84
91
  return n.join(e);
85
92
  }
86
- function Ne(t, e, n = !1) {
87
- return z(t) ? Te(e) ? e.test(t) : z(e) ? n ? t === e : t.includes(e) : !1 : !1;
93
+ function Ae(t, e, n = !1) {
94
+ return q(t) ? Ie(e) ? e.test(t) : q(e) ? n ? t === e : t.includes(e) : !1 : !1;
88
95
  }
89
96
  function Ir(t, e = [], n = !1) {
90
- return e.some((r) => Ne(t, r, n));
97
+ return e.some((r) => Ae(t, r, n));
91
98
  }
92
- const B = "8.14.0", h = globalThis;
93
- function lt(t, e, n) {
99
+ const B = "8.19.0", h = globalThis;
100
+ function _t(t, e, n) {
94
101
  const r = n || h, s = r.__SENTRY__ = r.__SENTRY__ || {}, i = s[B] = s[B] || {};
95
102
  return i[t] || (i[t] = e());
96
103
  }
97
- const w = h, Ae = 80;
98
- function Oe(t, e = {}) {
104
+ const w = h, Oe = 80;
105
+ function Re(t, e = {}) {
99
106
  if (!t)
100
107
  return "<unknown>";
101
108
  try {
@@ -104,15 +111,15 @@ function Oe(t, e = {}) {
104
111
  let i = 0, o = 0;
105
112
  const a = " > ", u = a.length;
106
113
  let c;
107
- const f = Array.isArray(e) ? e : e.keyAttrs, d = !Array.isArray(e) && e.maxStringLength || Ae;
108
- for (; n && i++ < r && (c = Re(n, f), !(c === "html" || i > 1 && o + s.length * u + c.length >= d)); )
114
+ const f = Array.isArray(e) ? e : e.keyAttrs, d = !Array.isArray(e) && e.maxStringLength || Oe;
115
+ for (; n && i++ < r && (c = De(n, f), !(c === "html" || i > 1 && o + s.length * u + c.length >= d)); )
109
116
  s.push(c), o += c.length, n = n.parentNode;
110
117
  return s.reverse().join(a);
111
118
  } catch {
112
119
  return "<unknown>";
113
120
  }
114
121
  }
115
- function Re(t, e) {
122
+ function De(t, e) {
116
123
  const n = t, r = [];
117
124
  if (!n || !n.tagName)
118
125
  return "";
@@ -131,7 +138,7 @@ function Re(t, e) {
131
138
  else {
132
139
  n.id && r.push(`#${n.id}`);
133
140
  const o = n.className;
134
- if (o && z(o)) {
141
+ if (o && q(o)) {
135
142
  const a = o.split(/\s+/);
136
143
  for (const u of a)
137
144
  r.push(`.${u}`);
@@ -172,7 +179,7 @@ function Or(t) {
172
179
  }
173
180
  return null;
174
181
  }
175
- const W = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, De = "Sentry Logger ", Nt = [
182
+ const X = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, Ce = "Sentry Logger ", At = [
176
183
  "debug",
177
184
  "info",
178
185
  "warn",
@@ -180,13 +187,13 @@ const W = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, De = "Sentry Logger
180
187
  "log",
181
188
  "assert",
182
189
  "trace"
183
- ], At = {};
184
- function _t(t) {
190
+ ], Ot = {};
191
+ function ht(t) {
185
192
  if (!("console" in h))
186
193
  return t();
187
- const e = h.console, n = {}, r = Object.keys(At);
194
+ const e = h.console, n = {}, r = Object.keys(Ot);
188
195
  r.forEach((s) => {
189
- const i = At[s];
196
+ const i = Ot[s];
190
197
  n[s] = e[s], e[s] = i;
191
198
  });
192
199
  try {
@@ -197,7 +204,7 @@ function _t(t) {
197
204
  });
198
205
  }
199
206
  }
200
- function Ce() {
207
+ function ke() {
201
208
  let t = !1;
202
209
  const e = {
203
210
  enable: () => {
@@ -208,29 +215,29 @@ function Ce() {
208
215
  },
209
216
  isEnabled: () => t
210
217
  };
211
- return W ? Nt.forEach((n) => {
218
+ return X ? At.forEach((n) => {
212
219
  e[n] = (...r) => {
213
- t && _t(() => {
214
- h.console[n](`${De}[${n}]:`, ...r);
220
+ t && ht(() => {
221
+ h.console[n](`${Ce}[${n}]:`, ...r);
215
222
  });
216
223
  };
217
- }) : Nt.forEach((n) => {
224
+ }) : At.forEach((n) => {
218
225
  e[n] = () => {
219
226
  };
220
227
  }), e;
221
228
  }
222
- const p = Ce(), ke = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;
223
- function $e(t) {
229
+ const p = ke(), $e = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;
230
+ function we(t) {
224
231
  return t === "http" || t === "https";
225
232
  }
226
- function ht(t, e = !1) {
233
+ function gt(t, e = !1) {
227
234
  const { host: n, path: r, pass: s, port: i, projectId: o, protocol: a, publicKey: u } = t;
228
235
  return `${a}://${u}${e && s ? `:${s}` : ""}@${n}${i ? `:${i}` : ""}/${r && `${r}/`}${o}`;
229
236
  }
230
- function we(t) {
231
- const e = ke.exec(t);
237
+ function xe(t) {
238
+ const e = $e.exec(t);
232
239
  if (!e) {
233
- _t(() => {
240
+ ht(() => {
234
241
  console.error(`Invalid Sentry Dsn: ${t}`);
235
242
  });
236
243
  return;
@@ -242,9 +249,9 @@ function we(t) {
242
249
  const d = c.match(/^\d+/);
243
250
  d && (c = d[0]);
244
251
  }
245
- return zt({ host: i, pass: s, path: u, projectId: c, port: o, protocol: n, publicKey: r });
252
+ return qt({ host: i, pass: s, path: u, projectId: c, port: o, protocol: n, publicKey: r });
246
253
  }
247
- function zt(t) {
254
+ function qt(t) {
248
255
  return {
249
256
  protocol: t.protocol,
250
257
  publicKey: t.publicKey || "",
@@ -256,13 +263,13 @@ function zt(t) {
256
263
  };
257
264
  }
258
265
  function Pe(t) {
259
- if (!W)
266
+ if (!X)
260
267
  return !0;
261
268
  const { port: e, projectId: n, protocol: r } = t;
262
- return ["protocol", "publicKey", "host", "projectId"].find((o) => t[o] ? !1 : (p.error(`Invalid Sentry Dsn: ${o} missing`), !0)) ? !1 : n.match(/^\d+$/) ? $e(r) ? e && isNaN(parseInt(e, 10)) ? (p.error(`Invalid Sentry Dsn: Invalid port ${e}`), !1) : !0 : (p.error(`Invalid Sentry Dsn: Invalid protocol ${r}`), !1) : (p.error(`Invalid Sentry Dsn: Invalid projectId ${n}`), !1);
269
+ return ["protocol", "publicKey", "host", "projectId"].find((o) => t[o] ? !1 : (p.error(`Invalid Sentry Dsn: ${o} missing`), !0)) ? !1 : n.match(/^\d+$/) ? we(r) ? e && isNaN(parseInt(e, 10)) ? (p.error(`Invalid Sentry Dsn: Invalid port ${e}`), !1) : !0 : (p.error(`Invalid Sentry Dsn: Invalid protocol ${r}`), !1) : (p.error(`Invalid Sentry Dsn: Invalid projectId ${n}`), !1);
263
270
  }
264
271
  function Rr(t) {
265
- const e = typeof t == "string" ? we(t) : zt(t);
272
+ const e = typeof t == "string" ? xe(t) : qt(t);
266
273
  if (!(!e || !Pe(e)))
267
274
  return e;
268
275
  }
@@ -270,7 +277,7 @@ function Dr(t, e, n) {
270
277
  if (!(e in t))
271
278
  return;
272
279
  const r = t[e], s = n(r);
273
- typeof s == "function" && xe(s, r), t[e] = s;
280
+ typeof s == "function" && Me(s, r), t[e] = s;
274
281
  }
275
282
  function D(t, e, n) {
276
283
  try {
@@ -281,10 +288,10 @@ function D(t, e, n) {
281
288
  configurable: !0
282
289
  });
283
290
  } catch {
284
- W && p.log(`Failed to add non-enumerable property "${e}" to object`, t);
291
+ X && p.log(`Failed to add non-enumerable property "${e}" to object`, t);
285
292
  }
286
293
  }
287
- function xe(t, e) {
294
+ function Me(t, e) {
288
295
  try {
289
296
  const n = e.prototype || {};
290
297
  t.prototype = e.prototype = n, D(t, "__sentry_original__", e);
@@ -297,33 +304,33 @@ function Cr(t) {
297
304
  function kr(t) {
298
305
  return Object.keys(t).map((e) => `${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&");
299
306
  }
300
- function qt(t) {
301
- if (Se(t))
307
+ function Vt(t) {
308
+ if (ye(t))
302
309
  return {
303
310
  message: t.message,
304
311
  name: t.name,
305
312
  stack: t.stack,
306
- ...Rt(t)
313
+ ...Dt(t)
307
314
  };
308
- if (Ee(t)) {
315
+ if (be(t)) {
309
316
  const e = {
310
317
  type: t.type,
311
- target: Ot(t.target),
312
- currentTarget: Ot(t.currentTarget),
313
- ...Rt(t)
318
+ target: Rt(t.target),
319
+ currentTarget: Rt(t.currentTarget),
320
+ ...Dt(t)
314
321
  };
315
- return typeof CustomEvent < "u" && V(t, CustomEvent) && (e.detail = t.detail), e;
322
+ return typeof CustomEvent < "u" && W(t, CustomEvent) && (e.detail = t.detail), e;
316
323
  } else
317
324
  return t;
318
325
  }
319
- function Ot(t) {
326
+ function Rt(t) {
320
327
  try {
321
- return be(t) ? Oe(t) : Object.prototype.toString.call(t);
328
+ return Te(t) ? Re(t) : Object.prototype.toString.call(t);
322
329
  } catch {
323
330
  return "<unknown>";
324
331
  }
325
332
  }
326
- function Rt(t) {
333
+ function Dt(t) {
327
334
  if (typeof t == "object" && t !== null) {
328
335
  const e = {};
329
336
  for (const n in t)
@@ -333,7 +340,7 @@ function Rt(t) {
333
340
  return {};
334
341
  }
335
342
  function $r(t, e = 40) {
336
- const n = Object.keys(qt(t));
343
+ const n = Object.keys(Vt(t));
337
344
  n.sort();
338
345
  const r = n[0];
339
346
  if (!r)
@@ -348,17 +355,17 @@ function $r(t, e = 40) {
348
355
  return "";
349
356
  }
350
357
  function m(t) {
351
- return et(t, /* @__PURE__ */ new Map());
358
+ return nt(t, /* @__PURE__ */ new Map());
352
359
  }
353
- function et(t, e) {
354
- if (Me(t)) {
360
+ function nt(t, e) {
361
+ if (Le(t)) {
355
362
  const n = e.get(t);
356
363
  if (n !== void 0)
357
364
  return n;
358
365
  const r = {};
359
366
  e.set(t, r);
360
367
  for (const s of Object.keys(t))
361
- typeof t[s] < "u" && (r[s] = et(t[s], e));
368
+ typeof t[s] < "u" && (r[s] = nt(t[s], e));
362
369
  return r;
363
370
  }
364
371
  if (Array.isArray(t)) {
@@ -367,13 +374,13 @@ function et(t, e) {
367
374
  return n;
368
375
  const r = [];
369
376
  return e.set(t, r), t.forEach((s) => {
370
- r.push(et(s, e));
377
+ r.push(nt(s, e));
371
378
  }), r;
372
379
  }
373
380
  return t;
374
381
  }
375
- function Me(t) {
376
- if (!dt(t))
382
+ function Le(t) {
383
+ if (!pt(t))
377
384
  return !1;
378
385
  try {
379
386
  const e = Object.getPrototypeOf(t).constructor.name;
@@ -382,8 +389,8 @@ function Me(t) {
382
389
  return !0;
383
390
  }
384
391
  }
385
- const Vt = 50, Le = "?", Dt = /\(error: (.*)\)/, Ct = /captureMessage|captureException/;
386
- function Ue(...t) {
392
+ const Wt = 50, Ue = "?", Ct = /\(error: (.*)\)/, kt = /captureMessage|captureException/;
393
+ function ve(...t) {
387
394
  const e = t.sort((n, r) => n[0] - r[0]).map((n) => n[1]);
388
395
  return (n, r = 0, s = 0) => {
389
396
  const i = [], o = n.split(`
@@ -392,7 +399,7 @@ function Ue(...t) {
392
399
  const u = o[a];
393
400
  if (u.length > 1024)
394
401
  continue;
395
- const c = Dt.test(u) ? u.replace(Dt, "$1") : u;
402
+ const c = Ct.test(u) ? u.replace(Ct, "$1") : u;
396
403
  if (!c.match(/\S*Error: /)) {
397
404
  for (const f of e) {
398
405
  const d = f(c);
@@ -401,7 +408,7 @@ function Ue(...t) {
401
408
  break;
402
409
  }
403
410
  }
404
- if (i.length >= Vt + s)
411
+ if (i.length >= Wt + s)
405
412
  break;
406
413
  }
407
414
  }
@@ -409,30 +416,30 @@ function Ue(...t) {
409
416
  };
410
417
  }
411
418
  function wr(t) {
412
- return Array.isArray(t) ? Ue(...t) : t;
419
+ return Array.isArray(t) ? ve(...t) : t;
413
420
  }
414
421
  function je(t) {
415
422
  if (!t.length)
416
423
  return [];
417
424
  const e = Array.from(t);
418
- return /sentryWrapped/.test(K(e).function || "") && e.pop(), e.reverse(), Ct.test(K(e).function || "") && (e.pop(), Ct.test(K(e).function || "") && e.pop()), e.slice(0, Vt).map((n) => ({
425
+ return /sentryWrapped/.test(z(e).function || "") && e.pop(), e.reverse(), kt.test(z(e).function || "") && (e.pop(), kt.test(z(e).function || "") && e.pop()), e.slice(0, Wt).map((n) => ({
419
426
  ...n,
420
- filename: n.filename || K(e).filename,
421
- function: n.function || Le
427
+ filename: n.filename || z(e).filename,
428
+ function: n.function || Ue
422
429
  }));
423
430
  }
424
- function K(t) {
431
+ function z(t) {
425
432
  return t[t.length - 1] || {};
426
433
  }
427
- const Z = "<anonymous>";
428
- function ve(t) {
434
+ const tt = "<anonymous>";
435
+ function Fe(t) {
429
436
  try {
430
- return !t || typeof t != "function" ? Z : t.name || Z;
437
+ return !t || typeof t != "function" ? tt : t.name || tt;
431
438
  } catch {
432
- return Z;
439
+ return tt;
433
440
  }
434
441
  }
435
- function Pr(t) {
442
+ function xr(t) {
436
443
  const e = t.exception;
437
444
  if (e) {
438
445
  const n = [];
@@ -445,25 +452,25 @@ function Pr(t) {
445
452
  }
446
453
  }
447
454
  }
448
- const Wt = 1e3;
449
- function gt() {
450
- return Date.now() / Wt;
455
+ const Xt = 1e3;
456
+ function mt() {
457
+ return Date.now() / Xt;
451
458
  }
452
- function Fe() {
459
+ function Ge() {
453
460
  const { performance: t } = h;
454
461
  if (!t || !t.now)
455
- return gt;
462
+ return mt;
456
463
  const e = Date.now() - t.now(), n = t.timeOrigin == null ? e : t.timeOrigin;
457
- return () => (n + t.now()) / Wt;
464
+ return () => (n + t.now()) / Xt;
458
465
  }
459
- const x = Fe(), xr = (() => {
466
+ const P = Ge(), Pr = (() => {
460
467
  const { performance: t } = h;
461
468
  if (!t || !t.now)
462
469
  return;
463
470
  const e = 3600 * 1e3, n = t.now(), r = Date.now(), s = t.timeOrigin ? Math.abs(t.timeOrigin + n - r) : e, i = s < e, o = t.timing && t.timing.navigationStart, u = typeof o == "number" ? Math.abs(o + n - r) : e, c = u < e;
464
471
  return i || c ? s <= u ? t.timeOrigin : o : r;
465
472
  })();
466
- function Ge() {
473
+ function Be() {
467
474
  const t = typeof WeakSet == "function", e = t ? /* @__PURE__ */ new WeakSet() : [];
468
475
  function n(s) {
469
476
  if (t)
@@ -505,22 +512,22 @@ function _() {
505
512
  )
506
513
  );
507
514
  }
508
- function Xt(t) {
515
+ function Qt(t) {
509
516
  return t.exception && t.exception.values ? t.exception.values[0] : void 0;
510
517
  }
511
518
  function Mr(t) {
512
519
  const { message: e, event_id: n } = t;
513
520
  if (e)
514
521
  return e;
515
- const r = Xt(t);
522
+ const r = Qt(t);
516
523
  return r ? r.type && r.value ? `${r.type}: ${r.value}` : r.type || r.value || n || "<unknown>" : n || "<unknown>";
517
524
  }
518
525
  function Lr(t, e, n) {
519
526
  const r = t.exception = t.exception || {}, s = r.values = r.values || [], i = s[0] = s[0] || {};
520
527
  i.value || (i.value = e || ""), i.type || (i.type = n || "Error");
521
528
  }
522
- function Be(t, e) {
523
- const n = Xt(t);
529
+ function He(t, e) {
530
+ const n = Qt(t);
524
531
  if (!n)
525
532
  return;
526
533
  const r = { type: "generic", handled: !0 }, s = n.mechanism;
@@ -538,26 +545,26 @@ function Ur(t) {
538
545
  }
539
546
  return !1;
540
547
  }
541
- function He(t) {
548
+ function Ye(t) {
542
549
  return Array.isArray(t) ? t : [t];
543
550
  }
544
551
  function R(t, e = 100, n = 1 / 0) {
545
552
  try {
546
- return nt("", t, e, n);
553
+ return rt("", t, e, n);
547
554
  } catch (r) {
548
555
  return { ERROR: `**non-serializable** (${r})` };
549
556
  }
550
557
  }
551
- function Ye(t, e = 3, n = 100 * 1024) {
558
+ function Je(t, e = 3, n = 100 * 1024) {
552
559
  const r = R(t, e);
553
- return qe(r) > n ? Ye(t, e - 1, n) : r;
560
+ return Ve(r) > n ? Je(t, e - 1, n) : r;
554
561
  }
555
- function nt(t, e, n = 1 / 0, r = 1 / 0, s = Ge()) {
562
+ function rt(t, e, n = 1 / 0, r = 1 / 0, s = Be()) {
556
563
  const [i, o] = s;
557
564
  if (e == null || // this matches null and undefined -> eqeq not eqeqeq
558
565
  ["number", "boolean", "string"].includes(typeof e) && !Number.isNaN(e))
559
566
  return e;
560
- const a = Je(t, e);
567
+ const a = Ke(t, e);
561
568
  if (!a.startsWith("[object "))
562
569
  return a;
563
570
  if (e.__sentry_skip_normalization__)
@@ -571,12 +578,12 @@ function nt(t, e, n = 1 / 0, r = 1 / 0, s = Ge()) {
571
578
  if (c && typeof c.toJSON == "function")
572
579
  try {
573
580
  const g = c.toJSON();
574
- return nt("", g, u - 1, r, s);
581
+ return rt("", g, u - 1, r, s);
575
582
  } catch {
576
583
  }
577
584
  const f = Array.isArray(e) ? [] : {};
578
585
  let d = 0;
579
- const l = qt(e);
586
+ const l = Vt(e);
580
587
  for (const g in l) {
581
588
  if (!Object.prototype.hasOwnProperty.call(l, g))
582
589
  continue;
@@ -585,11 +592,11 @@ function nt(t, e, n = 1 / 0, r = 1 / 0, s = Ge()) {
585
592
  break;
586
593
  }
587
594
  const $ = l[g];
588
- f[g] = nt(g, $, u - 1, r, s), d++;
595
+ f[g] = rt(g, $, u - 1, r, s), d++;
589
596
  }
590
597
  return o(e), f;
591
598
  }
592
- function Je(t, e) {
599
+ function Ke(t, e) {
593
600
  try {
594
601
  if (t === "domain" && e && typeof e == "object" && e._events)
595
602
  return "[Domain]";
@@ -601,33 +608,33 @@ function Je(t, e) {
601
608
  return "[Window]";
602
609
  if (typeof document < "u" && e === document)
603
610
  return "[Document]";
604
- if (Kt(e))
611
+ if (zt(e))
605
612
  return "[VueViewModel]";
606
- if (Ie(e))
613
+ if (Ne(e))
607
614
  return "[SyntheticEvent]";
608
615
  if (typeof e == "number" && e !== e)
609
616
  return "[NaN]";
610
617
  if (typeof e == "function")
611
- return `[Function: ${ve(e)}]`;
618
+ return `[Function: ${Fe(e)}]`;
612
619
  if (typeof e == "symbol")
613
620
  return `[${String(e)}]`;
614
621
  if (typeof e == "bigint")
615
622
  return `[BigInt: ${String(e)}]`;
616
- const n = Ke(e);
623
+ const n = ze(e);
617
624
  return /^HTML(\w*)Element$/.test(n) ? `[HTMLElement: ${n}]` : `[object ${n}]`;
618
625
  } catch (n) {
619
626
  return `**non-serializable** (${n})`;
620
627
  }
621
628
  }
622
- function Ke(t) {
629
+ function ze(t) {
623
630
  const e = Object.getPrototypeOf(t);
624
631
  return e ? e.constructor.name : "null prototype";
625
632
  }
626
- function ze(t) {
633
+ function qe(t) {
627
634
  return ~-encodeURI(t).split(/%..|./).length;
628
635
  }
629
- function qe(t) {
630
- return ze(JSON.stringify(t));
636
+ function Ve(t) {
637
+ return qe(JSON.stringify(t));
631
638
  }
632
639
  var A;
633
640
  (function(t) {
@@ -637,12 +644,12 @@ var A;
637
644
  const r = 2;
638
645
  t[t.REJECTED = r] = "REJECTED";
639
646
  })(A || (A = {}));
640
- function jr(t) {
647
+ function vr(t) {
641
648
  return new T((e) => {
642
649
  e(t);
643
650
  });
644
651
  }
645
- function vr(t) {
652
+ function jr(t) {
646
653
  return new T((e, n) => {
647
654
  n(t);
648
655
  });
@@ -724,7 +731,7 @@ class T {
724
731
  __init3() {
725
732
  this._setResult = (e, n) => {
726
733
  if (this._state === A.PENDING) {
727
- if (pt(n)) {
734
+ if (lt(n)) {
728
735
  n.then(this._resolve, this._reject);
729
736
  return;
730
737
  }
@@ -744,14 +751,14 @@ class T {
744
751
  };
745
752
  }
746
753
  }
747
- const Fr = "baggage", Qt = "sentry-", Ve = /^sentry-/, We = 8192;
748
- function Zt(t) {
749
- const e = Xe(t);
754
+ const Fr = "baggage", Zt = "sentry-", We = /^sentry-/, Xe = 8192;
755
+ function te(t) {
756
+ const e = Qe(t);
750
757
  if (!e)
751
758
  return;
752
759
  const n = Object.entries(e).reduce((r, [s, i]) => {
753
- if (s.match(Ve)) {
754
- const o = s.slice(Qt.length);
760
+ if (s.match(We)) {
761
+ const o = s.slice(Zt.length);
755
762
  r[o] = i;
756
763
  }
757
764
  return r;
@@ -763,40 +770,40 @@ function Gr(t) {
763
770
  if (!t)
764
771
  return;
765
772
  const e = Object.entries(t).reduce(
766
- (n, [r, s]) => (s && (n[`${Qt}${r}`] = s), n),
773
+ (n, [r, s]) => (s && (n[`${Zt}${r}`] = s), n),
767
774
  {}
768
775
  );
769
- return Qe(e);
776
+ return Ze(e);
770
777
  }
771
- function Xe(t) {
772
- if (!(!t || !z(t) && !Array.isArray(t)))
778
+ function Qe(t) {
779
+ if (!(!t || !q(t) && !Array.isArray(t)))
773
780
  return Array.isArray(t) ? t.reduce((e, n) => {
774
- const r = kt(n);
781
+ const r = $t(n);
775
782
  return Object.entries(r).forEach(([s, i]) => {
776
783
  e[s] = i;
777
784
  }), e;
778
- }, {}) : kt(t);
785
+ }, {}) : $t(t);
779
786
  }
780
- function kt(t) {
787
+ function $t(t) {
781
788
  return t.split(",").map((e) => e.split("=").map((n) => decodeURIComponent(n.trim()))).reduce((e, [n, r]) => (n && r && (e[n] = r), e), {});
782
789
  }
783
- function Qe(t) {
790
+ function Ze(t) {
784
791
  if (Object.keys(t).length !== 0)
785
792
  return Object.entries(t).reduce((e, [n, r], s) => {
786
793
  const i = `${encodeURIComponent(n)}=${encodeURIComponent(r)}`, o = s === 0 ? i : `${e},${i}`;
787
- return o.length > We ? (W && p.warn(
794
+ return o.length > Xe ? (X && p.warn(
788
795
  `Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`
789
796
  ), e) : o;
790
797
  }, "");
791
798
  }
792
- const Ze = new RegExp(
799
+ const tn = new RegExp(
793
800
  "^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$"
794
801
  // whitespace
795
802
  );
796
- function tn(t) {
803
+ function en(t) {
797
804
  if (!t)
798
805
  return;
799
- const e = t.match(Ze);
806
+ const e = t.match(tn);
800
807
  if (!e)
801
808
  return;
802
809
  let n;
@@ -807,7 +814,7 @@ function tn(t) {
807
814
  };
808
815
  }
809
816
  function Br(t, e) {
810
- const n = tn(t), r = Zt(e), { traceId: s, parentSpanId: i, parentSampled: o } = n || {};
817
+ const n = en(t), r = te(e), { traceId: s, parentSpanId: i, parentSampled: o } = n || {};
811
818
  return n ? {
812
819
  traceId: s || _(),
813
820
  parentSpanId: i || _().substring(16),
@@ -820,11 +827,11 @@ function Br(t, e) {
820
827
  spanId: _().substring(16)
821
828
  };
822
829
  }
823
- function en(t = _(), e = _().substring(16), n) {
830
+ function nn(t = _(), e = _().substring(16), n) {
824
831
  let r = "";
825
832
  return n !== void 0 && (r = n ? "-1" : "-0"), `${t}-${e}${r}`;
826
833
  }
827
- function mt(t, e = []) {
834
+ function St(t, e = []) {
828
835
  return [t, e];
829
836
  }
830
837
  function Hr(t, e) {
@@ -840,14 +847,14 @@ function Yr(t, e) {
840
847
  }
841
848
  return !1;
842
849
  }
843
- function rt(t) {
850
+ function st(t) {
844
851
  return h.__SENTRY__ && h.__SENTRY__.encodePolyfill ? h.__SENTRY__.encodePolyfill(t) : new TextEncoder().encode(t);
845
852
  }
846
853
  function Jr(t) {
847
854
  const [e, n] = t;
848
855
  let r = JSON.stringify(e);
849
856
  function s(i) {
850
- typeof r == "string" ? r = typeof i == "string" ? r + i : [rt(r), i] : r.push(typeof i == "string" ? rt(i) : i);
857
+ typeof r == "string" ? r = typeof i == "string" ? r + i : [st(r), i] : r.push(typeof i == "string" ? st(i) : i);
851
858
  }
852
859
  for (const i of n) {
853
860
  const [o, a] = i;
@@ -865,22 +872,22 @@ ${JSON.stringify(o)}
865
872
  s(u);
866
873
  }
867
874
  }
868
- return typeof r == "string" ? r : nn(r);
875
+ return typeof r == "string" ? r : rn(r);
869
876
  }
870
- function nn(t) {
877
+ function rn(t) {
871
878
  const e = t.reduce((s, i) => s + i.length, 0), n = new Uint8Array(e);
872
879
  let r = 0;
873
880
  for (const s of t)
874
881
  n.set(s, r), r += s.length;
875
882
  return n;
876
883
  }
877
- function rn(t) {
884
+ function sn(t) {
878
885
  return [{
879
886
  type: "span"
880
887
  }, t];
881
888
  }
882
889
  function Kr(t) {
883
- const e = typeof t.data == "string" ? rt(t.data) : t.data;
890
+ const e = typeof t.data == "string" ? st(t.data) : t.data;
884
891
  return [
885
892
  m({
886
893
  type: "attachment",
@@ -892,7 +899,7 @@ function Kr(t) {
892
899
  e
893
900
  ];
894
901
  }
895
- const sn = {
902
+ const on = {
896
903
  session: "session",
897
904
  sessions: "session",
898
905
  attachment: "attachment",
@@ -910,27 +917,27 @@ const sn = {
910
917
  statsd: "metric_bucket"
911
918
  };
912
919
  function zr(t) {
913
- return sn[t];
920
+ return on[t];
914
921
  }
915
- function te(t) {
922
+ function ee(t) {
916
923
  if (!t || !t.sdk)
917
924
  return;
918
925
  const { name: e, version: n } = t.sdk;
919
926
  return { name: e, version: n };
920
927
  }
921
- function on(t, e, n, r) {
928
+ function an(t, e, n, r) {
922
929
  const s = t.sdkProcessingMetadata && t.sdkProcessingMetadata.dynamicSamplingContext;
923
930
  return {
924
931
  event_id: t.event_id,
925
932
  sent_at: (/* @__PURE__ */ new Date()).toISOString(),
926
933
  ...e && { sdk: e },
927
- ...!!n && r && { dsn: ht(r) },
934
+ ...!!n && r && { dsn: gt(r) },
928
935
  ...s && {
929
936
  trace: m({ ...s })
930
937
  }
931
938
  };
932
939
  }
933
- function $t() {
940
+ function wt() {
934
941
  return {
935
942
  traceId: _(),
936
943
  spanId: _().substring(16)
@@ -938,14 +945,14 @@ function $t() {
938
945
  }
939
946
  const y = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__;
940
947
  function U() {
941
- return St(h), h;
948
+ return yt(h), h;
942
949
  }
943
- function St(t) {
950
+ function yt(t) {
944
951
  const e = t.__SENTRY__ = t.__SENTRY__ || {};
945
952
  return e.version = e.version || B, e[B] = e[B] || {};
946
953
  }
947
- function an(t) {
948
- const e = x(), n = {
954
+ function cn(t) {
955
+ const e = P(), n = {
949
956
  sid: _(),
950
957
  init: !0,
951
958
  timestamp: e,
@@ -954,12 +961,12 @@ function an(t) {
954
961
  status: "ok",
955
962
  errors: 0,
956
963
  ignoreDuration: !1,
957
- toJSON: () => un(n)
964
+ toJSON: () => fn(n)
958
965
  };
959
- return t && X(n, t), n;
966
+ return t && Q(n, t), n;
960
967
  }
961
- function X(t, e = {}) {
962
- if (e.user && (!t.ipAddress && e.user.ip_address && (t.ipAddress = e.user.ip_address), !t.did && !e.did && (t.did = e.user.id || e.user.email || e.user.username)), t.timestamp = e.timestamp || x(), e.abnormal_mechanism && (t.abnormal_mechanism = e.abnormal_mechanism), e.ignoreDuration && (t.ignoreDuration = e.ignoreDuration), e.sid && (t.sid = e.sid.length === 32 ? e.sid : _()), e.init !== void 0 && (t.init = e.init), !t.did && e.did && (t.did = `${e.did}`), typeof e.started == "number" && (t.started = e.started), t.ignoreDuration)
968
+ function Q(t, e = {}) {
969
+ if (e.user && (!t.ipAddress && e.user.ip_address && (t.ipAddress = e.user.ip_address), !t.did && !e.did && (t.did = e.user.id || e.user.email || e.user.username)), t.timestamp = e.timestamp || P(), e.abnormal_mechanism && (t.abnormal_mechanism = e.abnormal_mechanism), e.ignoreDuration && (t.ignoreDuration = e.ignoreDuration), e.sid && (t.sid = e.sid.length === 32 ? e.sid : _()), e.init !== void 0 && (t.init = e.init), !t.did && e.did && (t.did = `${e.did}`), typeof e.started == "number" && (t.started = e.started), t.ignoreDuration)
963
970
  t.duration = void 0;
964
971
  else if (typeof e.duration == "number")
965
972
  t.duration = e.duration;
@@ -969,11 +976,11 @@ function X(t, e = {}) {
969
976
  }
970
977
  e.release && (t.release = e.release), e.environment && (t.environment = e.environment), !t.ipAddress && e.ipAddress && (t.ipAddress = e.ipAddress), !t.userAgent && e.userAgent && (t.userAgent = e.userAgent), typeof e.errors == "number" && (t.errors = e.errors), e.status && (t.status = e.status);
971
978
  }
972
- function cn(t, e) {
979
+ function un(t, e) {
973
980
  let n = {};
974
- e ? n = { status: e } : t.status === "ok" && (n = { status: "exited" }), X(t, n);
981
+ e ? n = { status: e } : t.status === "ok" && (n = { status: "exited" }), Q(t, n);
975
982
  }
976
- function un(t) {
983
+ function fn(t) {
977
984
  return m({
978
985
  sid: `${t.sid}`,
979
986
  init: t.init,
@@ -993,15 +1000,15 @@ function un(t) {
993
1000
  }
994
1001
  });
995
1002
  }
996
- const st = "_sentrySpan";
997
- function it(t, e) {
998
- e ? D(t, st, e) : delete t[st];
1003
+ const it = "_sentrySpan";
1004
+ function ot(t, e) {
1005
+ e ? D(t, it, e) : delete t[it];
999
1006
  }
1000
- function q(t) {
1001
- return t[st];
1007
+ function V(t) {
1008
+ return t[it];
1002
1009
  }
1003
- const fn = 100;
1004
- class yt {
1010
+ const dn = 100;
1011
+ class Et {
1005
1012
  /** Flag if notifying is happening. */
1006
1013
  /** Callback for client to receive scope changes. */
1007
1014
  /** Callback list that will be called during event processing. */
@@ -1030,14 +1037,14 @@ class yt {
1030
1037
  /** Contains the last event id of a captured event. */
1031
1038
  // NOTE: Any field which gets added here should get added not only to the constructor but also to the `clone` method.
1032
1039
  constructor() {
1033
- this._notifyingListeners = !1, this._scopeListeners = [], this._eventProcessors = [], this._breadcrumbs = [], this._attachments = [], this._user = {}, this._tags = {}, this._extra = {}, this._contexts = {}, this._sdkProcessingMetadata = {}, this._propagationContext = $t();
1040
+ this._notifyingListeners = !1, this._scopeListeners = [], this._eventProcessors = [], this._breadcrumbs = [], this._attachments = [], this._user = {}, this._tags = {}, this._extra = {}, this._contexts = {}, this._sdkProcessingMetadata = {}, this._propagationContext = wt();
1034
1041
  }
1035
1042
  /**
1036
1043
  * @inheritDoc
1037
1044
  */
1038
1045
  clone() {
1039
- const e = new yt();
1040
- return e._breadcrumbs = [...this._breadcrumbs], e._tags = { ...this._tags }, e._extra = { ...this._extra }, e._contexts = { ...this._contexts }, e._user = this._user, e._level = this._level, e._session = this._session, e._transactionName = this._transactionName, e._fingerprint = this._fingerprint, e._eventProcessors = [...this._eventProcessors], e._requestSession = this._requestSession, e._attachments = [...this._attachments], e._sdkProcessingMetadata = { ...this._sdkProcessingMetadata }, e._propagationContext = { ...this._propagationContext }, e._client = this._client, e._lastEventId = this._lastEventId, it(e, q(this)), e;
1046
+ const e = new Et();
1047
+ return e._breadcrumbs = [...this._breadcrumbs], e._tags = { ...this._tags }, e._extra = { ...this._extra }, e._contexts = { ...this._contexts }, e._user = this._user, e._level = this._level, e._session = this._session, e._transactionName = this._transactionName, e._fingerprint = this._fingerprint, e._eventProcessors = [...this._eventProcessors], e._requestSession = this._requestSession, e._attachments = [...this._attachments], e._sdkProcessingMetadata = { ...this._sdkProcessingMetadata }, e._propagationContext = { ...this._propagationContext }, e._client = this._client, e._lastEventId = this._lastEventId, ot(e, V(this)), e;
1041
1048
  }
1042
1049
  /**
1043
1050
  * @inheritDoc
@@ -1084,7 +1091,7 @@ class yt {
1084
1091
  id: void 0,
1085
1092
  ip_address: void 0,
1086
1093
  username: void 0
1087
- }, this._session && X(this._session, { user: e }), this._notifyScopeListeners(), this;
1094
+ }, this._session && Q(this._session, { user: e }), this._notifyScopeListeners(), this;
1088
1095
  }
1089
1096
  /**
1090
1097
  * @inheritDoc
@@ -1176,24 +1183,24 @@ class yt {
1176
1183
  update(e) {
1177
1184
  if (!e)
1178
1185
  return this;
1179
- const n = typeof e == "function" ? e(this) : e, [r, s] = n instanceof C ? [n.getScopeData(), n.getRequestSession()] : dt(n) ? [e, e.requestSession] : [], { tags: i, extra: o, user: a, contexts: u, level: c, fingerprint: f = [], propagationContext: d } = r || {};
1186
+ const n = typeof e == "function" ? e(this) : e, [r, s] = n instanceof C ? [n.getScopeData(), n.getRequestSession()] : pt(n) ? [e, e.requestSession] : [], { tags: i, extra: o, user: a, contexts: u, level: c, fingerprint: f = [], propagationContext: d } = r || {};
1180
1187
  return this._tags = { ...this._tags, ...i }, this._extra = { ...this._extra, ...o }, this._contexts = { ...this._contexts, ...u }, a && Object.keys(a).length && (this._user = a), c && (this._level = c), f.length && (this._fingerprint = f), d && (this._propagationContext = d), s && (this._requestSession = s), this;
1181
1188
  }
1182
1189
  /**
1183
1190
  * @inheritDoc
1184
1191
  */
1185
1192
  clear() {
1186
- return this._breadcrumbs = [], this._tags = {}, this._extra = {}, this._user = {}, this._contexts = {}, this._level = void 0, this._transactionName = void 0, this._fingerprint = void 0, this._requestSession = void 0, this._session = void 0, it(this, void 0), this._attachments = [], this._propagationContext = $t(), this._notifyScopeListeners(), this;
1193
+ return this._breadcrumbs = [], this._tags = {}, this._extra = {}, this._user = {}, this._contexts = {}, this._level = void 0, this._transactionName = void 0, this._fingerprint = void 0, this._requestSession = void 0, this._session = void 0, ot(this, void 0), this._attachments = [], this._propagationContext = wt(), this._notifyScopeListeners(), this;
1187
1194
  }
1188
1195
  /**
1189
1196
  * @inheritDoc
1190
1197
  */
1191
1198
  addBreadcrumb(e, n) {
1192
- const r = typeof n == "number" ? n : fn;
1199
+ const r = typeof n == "number" ? n : dn;
1193
1200
  if (r <= 0)
1194
1201
  return this;
1195
1202
  const s = {
1196
- timestamp: gt(),
1203
+ timestamp: mt(),
1197
1204
  ...e
1198
1205
  }, i = this._breadcrumbs;
1199
1206
  return i.push(s), this._breadcrumbs = i.length > r ? i.slice(-r) : i, this._notifyScopeListeners(), this;
@@ -1237,7 +1244,7 @@ class yt {
1237
1244
  propagationContext: this._propagationContext,
1238
1245
  sdkProcessingMetadata: this._sdkProcessingMetadata,
1239
1246
  transactionName: this._transactionName,
1240
- span: q(this)
1247
+ span: V(this)
1241
1248
  };
1242
1249
  }
1243
1250
  /**
@@ -1313,14 +1320,14 @@ class yt {
1313
1320
  }), this._notifyingListeners = !1);
1314
1321
  }
1315
1322
  }
1316
- const C = yt;
1317
- function dn() {
1318
- return lt("defaultCurrentScope", () => new C());
1319
- }
1323
+ const C = Et;
1320
1324
  function pn() {
1321
- return lt("defaultIsolationScope", () => new C());
1325
+ return _t("defaultCurrentScope", () => new C());
1322
1326
  }
1323
- class ln {
1327
+ function ln() {
1328
+ return _t("defaultIsolationScope", () => new C());
1329
+ }
1330
+ class _n {
1324
1331
  constructor(e, n) {
1325
1332
  let r;
1326
1333
  e ? r = e : r = new C();
@@ -1338,7 +1345,7 @@ class ln {
1338
1345
  } catch (s) {
1339
1346
  throw this._popScope(), s;
1340
1347
  }
1341
- return pt(r) ? r.then(
1348
+ return lt(r) ? r.then(
1342
1349
  (s) => (this._popScope(), s),
1343
1350
  (s) => {
1344
1351
  throw this._popScope(), s;
@@ -1363,12 +1370,6 @@ class ln {
1363
1370
  getIsolationScope() {
1364
1371
  return this._isolationScope;
1365
1372
  }
1366
- /**
1367
- * Returns the scope stack for domains or the process.
1368
- */
1369
- getStack() {
1370
- return this._stack;
1371
- }
1372
1373
  /**
1373
1374
  * Returns the topmost scope layer in the order domain > local > process.
1374
1375
  */
@@ -1380,7 +1381,7 @@ class ln {
1380
1381
  */
1381
1382
  _pushScope() {
1382
1383
  const e = this.getScope().clone();
1383
- return this.getStack().push({
1384
+ return this._stack.push({
1384
1385
  client: this.getClient(),
1385
1386
  scope: e
1386
1387
  }), e;
@@ -1389,49 +1390,49 @@ class ln {
1389
1390
  * Pop a scope from the stack.
1390
1391
  */
1391
1392
  _popScope() {
1392
- return this.getStack().length <= 1 ? !1 : !!this.getStack().pop();
1393
+ return this._stack.length <= 1 ? !1 : !!this._stack.pop();
1393
1394
  }
1394
1395
  }
1395
1396
  function M() {
1396
- const t = U(), e = St(t);
1397
- return e.stack = e.stack || new ln(dn(), pn());
1397
+ const t = U(), e = yt(t);
1398
+ return e.stack = e.stack || new _n(pn(), ln());
1398
1399
  }
1399
- function _n(t) {
1400
+ function hn(t) {
1400
1401
  return M().withScope(t);
1401
1402
  }
1402
- function hn(t, e) {
1403
+ function gn(t, e) {
1403
1404
  const n = M();
1404
1405
  return n.withScope(() => (n.getStackTop().scope = t, e(t)));
1405
1406
  }
1406
- function wt(t) {
1407
+ function xt(t) {
1407
1408
  return M().withScope(() => t(M().getIsolationScope()));
1408
1409
  }
1409
- function gn() {
1410
+ function mn() {
1410
1411
  return {
1411
- withIsolationScope: wt,
1412
- withScope: _n,
1413
- withSetScope: hn,
1414
- withSetIsolationScope: (t, e) => wt(e),
1412
+ withIsolationScope: xt,
1413
+ withScope: hn,
1414
+ withSetScope: gn,
1415
+ withSetIsolationScope: (t, e) => xt(e),
1415
1416
  getCurrentScope: () => M().getScope(),
1416
1417
  getIsolationScope: () => M().getIsolationScope()
1417
1418
  };
1418
1419
  }
1419
1420
  function J(t) {
1420
- const e = St(t);
1421
- return e.acs ? e.acs : gn();
1421
+ const e = yt(t);
1422
+ return e.acs ? e.acs : mn();
1422
1423
  }
1423
1424
  function I() {
1424
1425
  const t = U();
1425
1426
  return J(t).getCurrentScope();
1426
1427
  }
1427
- function j() {
1428
+ function v() {
1428
1429
  const t = U();
1429
1430
  return J(t).getIsolationScope();
1430
1431
  }
1431
- function mn() {
1432
- return lt("globalScope", () => new C());
1432
+ function Sn() {
1433
+ return _t("globalScope", () => new C());
1433
1434
  }
1434
- function ee(...t) {
1435
+ function ne(...t) {
1435
1436
  const e = U(), n = J(e);
1436
1437
  if (t.length === 2) {
1437
1438
  const [r, s] = t;
@@ -1442,9 +1443,9 @@ function ee(...t) {
1442
1443
  function N() {
1443
1444
  return I().getClient();
1444
1445
  }
1445
- const Sn = "_sentryMetrics";
1446
- function ot(t) {
1447
- const e = t[Sn];
1446
+ const yn = "_sentryMetrics";
1447
+ function at(t) {
1448
+ const e = t[yn];
1448
1449
  if (!e)
1449
1450
  return;
1450
1451
  const n = {};
@@ -1452,10 +1453,10 @@ function ot(t) {
1452
1453
  (n[r] || (n[r] = [])).push(m(s));
1453
1454
  return n;
1454
1455
  }
1455
- const Et = "sentry.source", ne = "sentry.sample_rate", at = "sentry.op", Y = "sentry.origin", qr = "sentry.idle_span_finish_reason", re = "sentry.measurement_unit", se = "sentry.measurement_value", yn = "sentry.profile_id", En = "sentry.exclusive_time", bn = 0, ie = 1, S = 2;
1456
- function Tn(t) {
1456
+ const bt = "sentry.source", re = "sentry.sample_rate", ct = "sentry.op", Y = "sentry.origin", qr = "sentry.idle_span_finish_reason", se = "sentry.measurement_unit", ie = "sentry.measurement_value", En = "sentry.profile_id", bn = "sentry.exclusive_time", Tn = 0, oe = 1, S = 2;
1457
+ function In(t) {
1457
1458
  if (t < 400 && t >= 100)
1458
- return { code: ie };
1459
+ return { code: oe };
1459
1460
  if (t >= 400 && t < 500)
1460
1461
  switch (t) {
1461
1462
  case 401:
@@ -1490,11 +1491,11 @@ function Tn(t) {
1490
1491
  }
1491
1492
  function Vr(t, e) {
1492
1493
  t.setAttribute("http.response.status_code", e);
1493
- const n = Tn(e);
1494
+ const n = In(e);
1494
1495
  n.message !== "unknown_error" && t.setStatus(n);
1495
1496
  }
1496
- const oe = 0, ae = 1;
1497
- function In(t) {
1497
+ const ae = 0, ce = 1;
1498
+ function Nn(t) {
1498
1499
  const { spanId: e, traceId: n } = t.spanContext(), { data: r, op: s, parent_span_id: i, status: o, origin: a } = E(t);
1499
1500
  return m({
1500
1501
  parent_span_id: i,
@@ -1506,26 +1507,26 @@ function In(t) {
1506
1507
  origin: a
1507
1508
  });
1508
1509
  }
1509
- function Nn(t) {
1510
+ function An(t) {
1510
1511
  const { spanId: e, traceId: n } = t.spanContext(), { parent_span_id: r } = E(t);
1511
1512
  return m({ parent_span_id: r, span_id: e, trace_id: n });
1512
1513
  }
1513
1514
  function Wr(t) {
1514
- const { traceId: e, spanId: n } = t.spanContext(), r = v(t);
1515
- return en(e, n, r);
1515
+ const { traceId: e, spanId: n } = t.spanContext(), r = j(t);
1516
+ return nn(e, n, r);
1516
1517
  }
1517
- function P(t) {
1518
- return typeof t == "number" ? Pt(t) : Array.isArray(t) ? t[0] + t[1] / 1e9 : t instanceof Date ? Pt(t.getTime()) : x();
1518
+ function x(t) {
1519
+ return typeof t == "number" ? Pt(t) : Array.isArray(t) ? t[0] + t[1] / 1e9 : t instanceof Date ? Pt(t.getTime()) : P();
1519
1520
  }
1520
1521
  function Pt(t) {
1521
1522
  return t > 9999999999 ? t / 1e3 : t;
1522
1523
  }
1523
1524
  function E(t) {
1524
- if (On(t))
1525
+ if (Rn(t))
1525
1526
  return t.getSpanJSON();
1526
1527
  try {
1527
1528
  const { spanId: e, traceId: n } = t.spanContext();
1528
- if (An(t)) {
1529
+ if (On(t)) {
1529
1530
  const { attributes: r, startTime: s, name: i, endTime: o, parentSpanId: a, status: u } = t;
1530
1531
  return m({
1531
1532
  span_id: e,
@@ -1533,13 +1534,13 @@ function E(t) {
1533
1534
  data: r,
1534
1535
  description: i,
1535
1536
  parent_span_id: a,
1536
- start_timestamp: P(s),
1537
+ start_timestamp: x(s),
1537
1538
  // This is [0,0] by default in OTEL, in which case we want to interpret this as no end time
1538
- timestamp: P(o) || void 0,
1539
- status: ce(u),
1540
- op: r[at],
1539
+ timestamp: x(o) || void 0,
1540
+ status: ue(u),
1541
+ op: r[ct],
1541
1542
  origin: r[Y],
1542
- _metrics_summary: ot(t)
1543
+ _metrics_summary: at(t)
1543
1544
  });
1544
1545
  }
1545
1546
  return {
@@ -1550,33 +1551,33 @@ function E(t) {
1550
1551
  return {};
1551
1552
  }
1552
1553
  }
1553
- function An(t) {
1554
+ function On(t) {
1554
1555
  const e = t;
1555
1556
  return !!e.attributes && !!e.startTime && !!e.name && !!e.endTime && !!e.status;
1556
1557
  }
1557
- function On(t) {
1558
+ function Rn(t) {
1558
1559
  return typeof t.getSpanJSON == "function";
1559
1560
  }
1560
- function v(t) {
1561
+ function j(t) {
1561
1562
  const { traceFlags: e } = t.spanContext();
1562
- return e === ae;
1563
+ return e === ce;
1563
1564
  }
1564
- function ce(t) {
1565
- if (!(!t || t.code === bn))
1566
- return t.code === ie ? "ok" : t.message || "unknown_error";
1565
+ function ue(t) {
1566
+ if (!(!t || t.code === Tn))
1567
+ return t.code === oe ? "ok" : t.message || "unknown_error";
1567
1568
  }
1568
- const k = "_sentryChildSpans", ct = "_sentryRootSpan";
1569
- function ue(t, e) {
1570
- const n = t[ct] || t;
1571
- D(e, ct, n), t[k] ? t[k].add(e) : D(t, k, /* @__PURE__ */ new Set([e]));
1569
+ const k = "_sentryChildSpans", ut = "_sentryRootSpan";
1570
+ function fe(t, e) {
1571
+ const n = t[ut] || t;
1572
+ D(e, ut, n), t[k] ? t[k].add(e) : D(t, k, /* @__PURE__ */ new Set([e]));
1572
1573
  }
1573
1574
  function Xr(t, e) {
1574
1575
  t[k] && t[k].delete(e);
1575
1576
  }
1576
- function Rn(t) {
1577
+ function Dn(t) {
1577
1578
  const e = /* @__PURE__ */ new Set();
1578
1579
  function n(r) {
1579
- if (!e.has(r) && v(r)) {
1580
+ if (!e.has(r) && j(r)) {
1580
1581
  e.add(r);
1581
1582
  const s = r[k] ? Array.from(r[k]) : [];
1582
1583
  for (const i of s)
@@ -1586,33 +1587,33 @@ function Rn(t) {
1586
1587
  return n(t), Array.from(e);
1587
1588
  }
1588
1589
  function O(t) {
1589
- return t[ct] || t;
1590
+ return t[ut] || t;
1590
1591
  }
1591
- function ut() {
1592
+ function ft() {
1592
1593
  const t = U(), e = J(t);
1593
- return e.getActiveSpan ? e.getActiveSpan() : q(I());
1594
+ return e.getActiveSpan ? e.getActiveSpan() : V(I());
1594
1595
  }
1595
- const fe = "_sentryScope", de = "_sentryIsolationScope";
1596
- function Dn(t, e, n) {
1597
- t && (D(t, de, n), D(t, fe, e));
1596
+ const de = "_sentryScope", pe = "_sentryIsolationScope";
1597
+ function Cn(t, e, n) {
1598
+ t && (D(t, pe, n), D(t, de, e));
1598
1599
  }
1599
- function xt(t) {
1600
+ function Mt(t) {
1600
1601
  return {
1601
- scope: t[fe],
1602
- isolationScope: t[de]
1602
+ scope: t[de],
1603
+ isolationScope: t[pe]
1603
1604
  };
1604
1605
  }
1605
- function pe(t) {
1606
+ function le(t) {
1606
1607
  if (typeof __SENTRY_TRACING__ == "boolean" && !__SENTRY_TRACING__)
1607
1608
  return !1;
1608
- const e = t || Cn();
1609
+ const e = t || kn();
1609
1610
  return !!e && (e.enableTracing || "tracesSampleRate" in e || "tracesSampler" in e);
1610
1611
  }
1611
- function Cn() {
1612
+ function kn() {
1612
1613
  const t = N();
1613
1614
  return t && t.getOptions();
1614
1615
  }
1615
- class bt {
1616
+ class Tt {
1616
1617
  constructor(e = {}) {
1617
1618
  this._traceId = e.traceId || _(), this._spanId = e.spanId || _().substring(16);
1618
1619
  }
@@ -1621,7 +1622,7 @@ class bt {
1621
1622
  return {
1622
1623
  spanId: this._spanId,
1623
1624
  traceId: this._traceId,
1624
- traceFlags: oe
1625
+ traceFlags: ae
1625
1626
  };
1626
1627
  }
1627
1628
  /** @inheritdoc */
@@ -1652,38 +1653,67 @@ class bt {
1652
1653
  addEvent(e, n, r) {
1653
1654
  return this;
1654
1655
  }
1656
+ /**
1657
+ * This should generally not be used,
1658
+ * but we need it for being comliant with the OTEL Span interface.
1659
+ *
1660
+ * @hidden
1661
+ * @internal
1662
+ */
1663
+ addLink(e) {
1664
+ return this;
1665
+ }
1666
+ /**
1667
+ * This should generally not be used,
1668
+ * but we need it for being comliant with the OTEL Span interface.
1669
+ *
1670
+ * @hidden
1671
+ * @internal
1672
+ */
1673
+ addLinks(e) {
1674
+ return this;
1675
+ }
1676
+ /**
1677
+ * This should generally not be used,
1678
+ * but we need it for being comliant with the OTEL Span interface.
1679
+ *
1680
+ * @hidden
1681
+ * @internal
1682
+ */
1683
+ recordException(e, n) {
1684
+ }
1655
1685
  }
1656
- const Tt = "production", le = "_frozenDsc";
1657
- function Mt(t, e) {
1658
- D(t, le, e);
1686
+ const It = "production", _e = "_frozenDsc";
1687
+ function Lt(t, e) {
1688
+ D(t, _e, e);
1659
1689
  }
1660
- function kn(t, e) {
1690
+ function $n(t, e) {
1661
1691
  const n = e.getOptions(), { publicKey: r } = e.getDsn() || {}, s = m({
1662
- environment: n.environment || Tt,
1692
+ environment: n.environment || It,
1663
1693
  release: n.release,
1664
1694
  public_key: r,
1665
1695
  trace_id: t
1666
1696
  });
1667
1697
  return e.emit("createDsc", s), s;
1668
1698
  }
1669
- function Q(t) {
1699
+ function Z(t) {
1670
1700
  const e = N();
1671
1701
  if (!e)
1672
1702
  return {};
1673
- const n = kn(E(t).trace_id || "", e), r = O(t), s = r[le];
1703
+ const n = $n(E(t).trace_id || "", e), r = O(t), s = r[_e];
1674
1704
  if (s)
1675
1705
  return s;
1676
- const i = r.spanContext().traceState, o = i && i.get("sentry.dsc"), a = o && Zt(o);
1706
+ const i = r.spanContext().traceState, o = i && i.get("sentry.dsc"), a = o && te(o);
1677
1707
  if (a)
1678
1708
  return a;
1679
- const u = E(r), c = u.data || {}, f = c[ne];
1709
+ const u = E(r), c = u.data || {}, f = c[re];
1680
1710
  f != null && (n.sample_rate = `${f}`);
1681
- const d = c[Et], l = u.description;
1682
- return d !== "url" && l && (n.transaction = l), n.sampled = String(v(r)), e.emit("createDsc", n, r), n;
1711
+ const d = c[bt], l = u.description;
1712
+ return d !== "url" && l && (n.transaction = l), n.sampled = String(j(r)), e.emit("createDsc", n, r), n;
1683
1713
  }
1684
- function $n(t) {
1714
+ function wn(t) {
1685
1715
  if (!y) return;
1686
- const { description: e = "< unknown name >", op: n = "< unknown op >", parent_span_id: r } = E(t), { spanId: s } = t.spanContext(), i = v(t), o = O(t), a = o === t, u = `[Tracing] Starting ${i ? "sampled" : "unsampled"} ${a ? "root " : ""}span`, c = [`op: ${n}`, `name: ${e}`, `ID: ${s}`];
1716
+ const { description: e = "< unknown name >", op: n = "< unknown op >", parent_span_id: r } = E(t), { spanId: s } = t.spanContext(), i = j(t), o = O(t), a = o === t, u = `[Tracing] Starting ${i ? "sampled" : "unsampled"} ${a ? "root " : ""}span`, c = [`op: ${n}`, `name: ${e}`, `ID: ${s}`];
1687
1717
  if (r && c.push(`parent ID: ${r}`), !a) {
1688
1718
  const { op: f, description: d } = E(o);
1689
1719
  c.push(`root ID: ${o.spanContext().spanId}`), f && c.push(`root op: ${f}`), d && c.push(`root description: ${d}`);
@@ -1692,7 +1722,7 @@ function $n(t) {
1692
1722
  ${c.join(`
1693
1723
  `)}`);
1694
1724
  }
1695
- function wn(t) {
1725
+ function xn(t) {
1696
1726
  if (!y) return;
1697
1727
  const { description: e = "< unknown name >", op: n = "< unknown op >" } = E(t), { spanId: r } = t.spanContext(), i = O(t) === t, o = `[Tracing] Finishing "${n}" ${i ? "root " : ""}span "${e}" with ID ${r}`;
1698
1728
  p.log(o);
@@ -1711,8 +1741,8 @@ function Pn(t) {
1711
1741
  }
1712
1742
  return e;
1713
1743
  }
1714
- function xn(t, e) {
1715
- if (!pe(t))
1744
+ function Mn(t, e) {
1745
+ if (!le(t))
1716
1746
  return [!1];
1717
1747
  let n;
1718
1748
  typeof t.tracesSampler == "function" ? n = t.tracesSampler(e) : e.parentSampled !== void 0 ? n = e.parentSampled : typeof t.tracesSampleRate < "u" ? n = t.tracesSampleRate : n = 1;
@@ -1725,56 +1755,56 @@ function xn(t, e) {
1725
1755
  `[Tracing] Discarding transaction because ${typeof t.tracesSampler == "function" ? "tracesSampler returned 0 or false" : "a negative sampling decision was inherited or tracesSampleRate is set to 0"}`
1726
1756
  ), [!1, r]);
1727
1757
  }
1728
- function Mn(t, e) {
1758
+ function Ln(t, e) {
1729
1759
  return e && (t.sdk = t.sdk || {}, t.sdk.name = t.sdk.name || e.name, t.sdk.version = t.sdk.version || e.version, t.sdk.integrations = [...t.sdk.integrations || [], ...e.integrations || []], t.sdk.packages = [...t.sdk.packages || [], ...e.packages || []]), t;
1730
1760
  }
1731
1761
  function Qr(t, e, n, r) {
1732
- const s = te(n), i = {
1762
+ const s = ee(n), i = {
1733
1763
  sent_at: (/* @__PURE__ */ new Date()).toISOString(),
1734
1764
  ...s && { sdk: s },
1735
- ...!!r && e && { dsn: ht(e) }
1765
+ ...!!r && e && { dsn: gt(e) }
1736
1766
  }, o = "aggregates" in t ? [{ type: "sessions" }, t] : [{ type: "session" }, t.toJSON()];
1737
- return mt(i, [o]);
1767
+ return St(i, [o]);
1738
1768
  }
1739
1769
  function Zr(t, e, n, r) {
1740
- const s = te(n), i = t.type && t.type !== "replay_event" ? t.type : "event";
1741
- Mn(t, n && n.sdk);
1742
- const o = on(t, s, r, e);
1743
- return delete t.sdkProcessingMetadata, mt(o, [[{ type: i }, t]]);
1770
+ const s = ee(n), i = t.type && t.type !== "replay_event" ? t.type : "event";
1771
+ Ln(t, n && n.sdk);
1772
+ const o = an(t, s, r, e);
1773
+ return delete t.sdkProcessingMetadata, St(o, [[{ type: i }, t]]);
1744
1774
  }
1745
- function Ln(t, e) {
1775
+ function Un(t, e) {
1746
1776
  function n(f) {
1747
1777
  return !!f.trace_id && !!f.public_key;
1748
1778
  }
1749
- const r = Q(t[0]), s = e && e.getDsn(), i = e && e.getOptions().tunnel, o = {
1779
+ const r = Z(t[0]), s = e && e.getDsn(), i = e && e.getOptions().tunnel, o = {
1750
1780
  sent_at: (/* @__PURE__ */ new Date()).toISOString(),
1751
1781
  ...n(r) && { trace: r },
1752
- ...!!i && s && { dsn: ht(s) }
1782
+ ...!!i && s && { dsn: gt(s) }
1753
1783
  }, a = e && e.getOptions().beforeSendSpan, u = a ? (f) => a(E(f)) : (f) => E(f), c = [];
1754
1784
  for (const f of t) {
1755
1785
  const d = u(f);
1756
- d && c.push(rn(d));
1786
+ d && c.push(sn(d));
1757
1787
  }
1758
- return mt(o, c);
1788
+ return St(o, c);
1759
1789
  }
1760
1790
  function ts(t, e, n) {
1761
- const r = ut(), s = r && O(r);
1791
+ const r = ft(), s = r && O(r);
1762
1792
  s && s.addEvent(t, {
1763
- [se]: e,
1764
- [re]: n
1793
+ [ie]: e,
1794
+ [se]: n
1765
1795
  });
1766
1796
  }
1767
- function Lt(t) {
1797
+ function Ut(t) {
1768
1798
  if (!t || t.length === 0)
1769
1799
  return;
1770
1800
  const e = {};
1771
1801
  return t.forEach((n) => {
1772
- const r = n.attributes || {}, s = r[re], i = r[se];
1802
+ const r = n.attributes || {}, s = r[se], i = r[ie];
1773
1803
  typeof s == "string" && typeof i == "number" && (e[n.name] = { value: i, unit: s });
1774
1804
  }), e;
1775
1805
  }
1776
- const Ut = 1e3;
1777
- class It {
1806
+ const vt = 1e3;
1807
+ class Nt {
1778
1808
  /** Epoch timestamp in seconds when the span started. */
1779
1809
  /** Epoch timestamp in seconds when the span ended. */
1780
1810
  /** Internal keeper of the status */
@@ -1788,28 +1818,57 @@ class It {
1788
1818
  * @hidden
1789
1819
  */
1790
1820
  constructor(e = {}) {
1791
- this._traceId = e.traceId || _(), this._spanId = e.spanId || _().substring(16), this._startTime = e.startTimestamp || x(), this._attributes = {}, this.setAttributes({
1821
+ this._traceId = e.traceId || _(), this._spanId = e.spanId || _().substring(16), this._startTime = e.startTimestamp || P(), this._attributes = {}, this.setAttributes({
1792
1822
  [Y]: "manual",
1793
- [at]: e.op,
1823
+ [ct]: e.op,
1794
1824
  ...e.attributes
1795
1825
  }), this._name = e.name, e.parentSpanId && (this._parentSpanId = e.parentSpanId), "sampled" in e && (this._sampled = e.sampled), e.endTimestamp && (this._endTime = e.endTimestamp), this._events = [], this._isStandaloneSpan = e.isStandalone, this._endTime && this._onSpanEnded();
1796
1826
  }
1827
+ /**
1828
+ * This should generally not be used,
1829
+ * but it is needed for being compliant with the OTEL Span interface.
1830
+ *
1831
+ * @hidden
1832
+ * @internal
1833
+ */
1834
+ addLink(e) {
1835
+ return this;
1836
+ }
1837
+ /**
1838
+ * This should generally not be used,
1839
+ * but it is needed for being compliant with the OTEL Span interface.
1840
+ *
1841
+ * @hidden
1842
+ * @internal
1843
+ */
1844
+ addLinks(e) {
1845
+ return this;
1846
+ }
1847
+ /**
1848
+ * This should generally not be used,
1849
+ * but it is needed for being compliant with the OTEL Span interface.
1850
+ *
1851
+ * @hidden
1852
+ * @internal
1853
+ */
1854
+ recordException(e, n) {
1855
+ }
1797
1856
  /** @inheritdoc */
1798
1857
  spanContext() {
1799
1858
  const { _spanId: e, _traceId: n, _sampled: r } = this;
1800
1859
  return {
1801
1860
  spanId: e,
1802
1861
  traceId: n,
1803
- traceFlags: r ? ae : oe
1862
+ traceFlags: r ? ce : ae
1804
1863
  };
1805
1864
  }
1806
1865
  /** @inheritdoc */
1807
1866
  setAttribute(e, n) {
1808
- n === void 0 ? delete this._attributes[e] : this._attributes[e] = n;
1867
+ return n === void 0 ? delete this._attributes[e] : this._attributes[e] = n, this;
1809
1868
  }
1810
1869
  /** @inheritdoc */
1811
1870
  setAttributes(e) {
1812
- Object.keys(e).forEach((n) => this.setAttribute(n, e[n]));
1871
+ return Object.keys(e).forEach((n) => this.setAttribute(n, e[n])), this;
1813
1872
  }
1814
1873
  /**
1815
1874
  * This should generally not be used,
@@ -1820,7 +1879,7 @@ class It {
1820
1879
  * @internal
1821
1880
  */
1822
1881
  updateStartTime(e) {
1823
- this._startTime = P(e);
1882
+ this._startTime = x(e);
1824
1883
  }
1825
1884
  /**
1826
1885
  * @inheritDoc
@@ -1836,7 +1895,7 @@ class It {
1836
1895
  }
1837
1896
  /** @inheritdoc */
1838
1897
  end(e) {
1839
- this._endTime || (this._endTime = P(e), wn(this), this._onSpanEnded());
1898
+ this._endTime || (this._endTime = x(e), xn(this), this._onSpanEnded());
1840
1899
  }
1841
1900
  /**
1842
1901
  * Get JSON representation of this span.
@@ -1850,18 +1909,18 @@ class It {
1850
1909
  return m({
1851
1910
  data: this._attributes,
1852
1911
  description: this._name,
1853
- op: this._attributes[at],
1912
+ op: this._attributes[ct],
1854
1913
  parent_span_id: this._parentSpanId,
1855
1914
  span_id: this._spanId,
1856
1915
  start_timestamp: this._startTime,
1857
- status: ce(this._status),
1916
+ status: ue(this._status),
1858
1917
  timestamp: this._endTime,
1859
1918
  trace_id: this._traceId,
1860
1919
  origin: this._attributes[Y],
1861
- _metrics_summary: ot(this),
1862
- profile_id: this._attributes[yn],
1863
- exclusive_time: this._attributes[En],
1864
- measurements: Lt(this._events),
1920
+ _metrics_summary: at(this),
1921
+ profile_id: this._attributes[En],
1922
+ exclusive_time: this._attributes[bn],
1923
+ measurements: Ut(this._events),
1865
1924
  is_segment: this._isStandaloneSpan && O(this) === this || void 0,
1866
1925
  segment_id: this._isStandaloneSpan ? O(this).spanContext().spanId : void 0
1867
1926
  });
@@ -1875,9 +1934,9 @@ class It {
1875
1934
  */
1876
1935
  addEvent(e, n, r) {
1877
1936
  y && p.log("[Tracing] Adding an event to span:", e);
1878
- const s = jt(n) ? n : r || x(), i = jt(n) ? {} : n || {}, o = {
1937
+ const s = jt(n) ? n : r || P(), i = jt(n) ? {} : n || {}, o = {
1879
1938
  name: e,
1880
- time: P(s),
1939
+ time: x(s),
1881
1940
  attributes: i
1882
1941
  };
1883
1942
  return this._events.push(o), this;
@@ -1899,32 +1958,32 @@ class It {
1899
1958
  if (e && e.emit("spanEnd", this), !(this._isStandaloneSpan || this === O(this)))
1900
1959
  return;
1901
1960
  if (this._isStandaloneSpan) {
1902
- this._sampled ? jn(Ln([this], e)) : (y && p.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."), e && e.recordDroppedEvent("sample_rate", "span"));
1961
+ this._sampled ? jn(Un([this], e)) : (y && p.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."), e && e.recordDroppedEvent("sample_rate", "span"));
1903
1962
  return;
1904
1963
  }
1905
1964
  const r = this._convertSpanToTransaction();
1906
- r && (xt(this).scope || I()).captureEvent(r);
1965
+ r && (Mt(this).scope || I()).captureEvent(r);
1907
1966
  }
1908
1967
  /**
1909
1968
  * Finish the transaction & prepare the event to send to Sentry.
1910
1969
  */
1911
1970
  _convertSpanToTransaction() {
1912
- if (!vt(E(this)))
1971
+ if (!Ft(E(this)))
1913
1972
  return;
1914
1973
  this._name || (y && p.warn("Transaction has no name, falling back to `<unlabeled transaction>`."), this._name = "<unlabeled transaction>");
1915
- const { scope: e, isolationScope: n } = xt(this), s = (e || I()).getClient() || N();
1974
+ const { scope: e, isolationScope: n } = Mt(this), s = (e || I()).getClient() || N();
1916
1975
  if (this._sampled !== !0) {
1917
1976
  y && p.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."), s && s.recordDroppedEvent("sample_rate", "transaction");
1918
1977
  return;
1919
1978
  }
1920
- const o = Rn(this).filter((d) => d !== this && !Un(d)).map((d) => E(d)).filter(vt), a = this._attributes[Et], u = {
1979
+ const o = Dn(this).filter((d) => d !== this && !vn(d)).map((d) => E(d)).filter(Ft), a = this._attributes[bt], u = {
1921
1980
  contexts: {
1922
- trace: In(this)
1981
+ trace: Nn(this)
1923
1982
  },
1924
1983
  spans: (
1925
1984
  // spans.sort() mutates the array, but `spans` is already a copy so we can safely do this here
1926
1985
  // we do not use spans anymore after this point
1927
- o.length > Ut ? o.sort((d, l) => d.start_timestamp - l.start_timestamp).slice(0, Ut) : o
1986
+ o.length > vt ? o.sort((d, l) => d.start_timestamp - l.start_timestamp).slice(0, vt) : o
1928
1987
  ),
1929
1988
  start_timestamp: this._startTime,
1930
1989
  timestamp: this._endTime,
@@ -1934,16 +1993,16 @@ class It {
1934
1993
  capturedSpanScope: e,
1935
1994
  capturedSpanIsolationScope: n,
1936
1995
  ...m({
1937
- dynamicSamplingContext: Q(this)
1996
+ dynamicSamplingContext: Z(this)
1938
1997
  })
1939
1998
  },
1940
- _metrics_summary: ot(this),
1999
+ _metrics_summary: at(this),
1941
2000
  ...a && {
1942
2001
  transaction_info: {
1943
2002
  source: a
1944
2003
  }
1945
2004
  }
1946
- }, c = Lt(this._events);
2005
+ }, c = Ut(this._events);
1947
2006
  return c && Object.keys(c).length && (y && p.log(
1948
2007
  "[Measurements] Adding measurements to transaction event",
1949
2008
  JSON.stringify(c, void 0, 2)
@@ -1953,11 +2012,11 @@ class It {
1953
2012
  function jt(t) {
1954
2013
  return t && typeof t == "number" || t instanceof Date || Array.isArray(t);
1955
2014
  }
1956
- function vt(t) {
2015
+ function Ft(t) {
1957
2016
  return !!t.start_timestamp && !!t.timestamp && !!t.span_id && !!t.trace_id;
1958
2017
  }
1959
- function Un(t) {
1960
- return t instanceof It && t.isStandaloneSpan();
2018
+ function vn(t) {
2019
+ return t instanceof Nt && t.isStandaloneSpan();
1961
2020
  }
1962
2021
  function jn(t) {
1963
2022
  const e = N();
@@ -1973,15 +2032,15 @@ function jn(t) {
1973
2032
  y && p.error("Error while sending span:", s);
1974
2033
  });
1975
2034
  }
1976
- const _e = "__SENTRY_SUPPRESS_TRACING__";
1977
- function Ft(t) {
1978
- const e = he();
2035
+ const he = "__SENTRY_SUPPRESS_TRACING__";
2036
+ function Gt(t) {
2037
+ const e = ge();
1979
2038
  if (e.startInactiveSpan)
1980
2039
  return e.startInactiveSpan(t);
1981
- const n = Gn(t), { forceTransaction: r, parentSpan: s } = t;
1982
- return (t.scope ? (o) => ee(t.scope, o) : s ? (o) => vn(s, o) : (o) => o())(() => {
1983
- const o = I(), a = Hn(o);
1984
- return t.onlyIfParent && !a ? new bt() : Fn({
2040
+ const n = Bn(t), { forceTransaction: r, parentSpan: s } = t;
2041
+ return (t.scope ? (o) => ne(t.scope, o) : s !== void 0 ? (o) => Fn(s, o) : (o) => o())(() => {
2042
+ const o = I(), a = Yn(o);
2043
+ return t.onlyIfParent && !a ? new Tt() : Gn({
1985
2044
  parentSpan: a,
1986
2045
  spanArguments: n,
1987
2046
  forceTransaction: r,
@@ -1989,25 +2048,25 @@ function Ft(t) {
1989
2048
  });
1990
2049
  });
1991
2050
  }
1992
- function vn(t, e) {
1993
- const n = he();
1994
- return n.withActiveSpan ? n.withActiveSpan(t, e) : ee((r) => (it(r, t || void 0), e(r)));
2051
+ function Fn(t, e) {
2052
+ const n = ge();
2053
+ return n.withActiveSpan ? n.withActiveSpan(t, e) : ne((r) => (ot(r, t || void 0), e(r)));
1995
2054
  }
1996
- function Fn({
2055
+ function Gn({
1997
2056
  parentSpan: t,
1998
2057
  spanArguments: e,
1999
2058
  forceTransaction: n,
2000
2059
  scope: r
2001
2060
  }) {
2002
- if (!pe())
2003
- return new bt();
2004
- const s = j();
2061
+ if (!le())
2062
+ return new Tt();
2063
+ const s = v();
2005
2064
  let i;
2006
2065
  if (t && !n)
2007
- i = Bn(t, r, e), ue(t, i);
2066
+ i = Hn(t, r, e), fe(t, i);
2008
2067
  else if (t) {
2009
- const o = Q(t), { traceId: a, spanId: u } = t.spanContext(), c = v(t);
2010
- i = Gt(
2068
+ const o = Z(t), { traceId: a, spanId: u } = t.spanContext(), c = j(t);
2069
+ i = Bt(
2011
2070
  {
2012
2071
  traceId: a,
2013
2072
  parentSpanId: u,
@@ -2015,7 +2074,7 @@ function Fn({
2015
2074
  },
2016
2075
  r,
2017
2076
  c
2018
- ), Mt(i, o);
2077
+ ), Lt(i, o);
2019
2078
  } else {
2020
2079
  const {
2021
2080
  traceId: o,
@@ -2026,7 +2085,7 @@ function Fn({
2026
2085
  ...s.getPropagationContext(),
2027
2086
  ...r.getPropagationContext()
2028
2087
  };
2029
- i = Gt(
2088
+ i = Bt(
2030
2089
  {
2031
2090
  traceId: o,
2032
2091
  parentSpanId: u,
@@ -2034,27 +2093,27 @@ function Fn({
2034
2093
  },
2035
2094
  r,
2036
2095
  c
2037
- ), a && Mt(i, a);
2096
+ ), a && Lt(i, a);
2038
2097
  }
2039
- return $n(i), Dn(i, r, s), i;
2098
+ return wn(i), Cn(i, r, s), i;
2040
2099
  }
2041
- function Gn(t) {
2100
+ function Bn(t) {
2042
2101
  const n = {
2043
2102
  isStandalone: (t.experimental || {}).standalone,
2044
2103
  ...t
2045
2104
  };
2046
2105
  if (t.startTime) {
2047
2106
  const r = { ...n };
2048
- return r.startTimestamp = P(t.startTime), delete r.startTime, r;
2107
+ return r.startTimestamp = x(t.startTime), delete r.startTime, r;
2049
2108
  }
2050
2109
  return n;
2051
2110
  }
2052
- function he() {
2111
+ function ge() {
2053
2112
  const t = U();
2054
2113
  return J(t);
2055
2114
  }
2056
- function Gt(t, e, n) {
2057
- const r = N(), s = r && r.getOptions() || {}, { name: i = "", attributes: o } = t, [a, u] = e.getScopeData().sdkProcessingMetadata[_e] ? [!1] : xn(s, {
2115
+ function Bt(t, e, n) {
2116
+ const r = N(), s = r && r.getOptions() || {}, { name: i = "", attributes: o } = t, [a, u] = e.getScopeData().sdkProcessingMetadata[he] ? [!1] : Mn(s, {
2058
2117
  name: i,
2059
2118
  parentSampled: n,
2060
2119
  attributes: o,
@@ -2062,50 +2121,50 @@ function Gt(t, e, n) {
2062
2121
  name: i,
2063
2122
  parentSampled: n
2064
2123
  }
2065
- }), c = new It({
2124
+ }), c = new Nt({
2066
2125
  ...t,
2067
2126
  attributes: {
2068
- [Et]: "custom",
2127
+ [bt]: "custom",
2069
2128
  ...t.attributes
2070
2129
  },
2071
2130
  sampled: a
2072
2131
  });
2073
- return u !== void 0 && c.setAttribute(ne, u), r && r.emit("spanStart", c), c;
2132
+ return u !== void 0 && c.setAttribute(re, u), r && r.emit("spanStart", c), c;
2074
2133
  }
2075
- function Bn(t, e, n) {
2076
- const { spanId: r, traceId: s } = t.spanContext(), i = e.getScopeData().sdkProcessingMetadata[_e] ? !1 : v(t), o = i ? new It({
2134
+ function Hn(t, e, n) {
2135
+ const { spanId: r, traceId: s } = t.spanContext(), i = e.getScopeData().sdkProcessingMetadata[he] ? !1 : j(t), o = i ? new Nt({
2077
2136
  ...n,
2078
2137
  parentSpanId: r,
2079
2138
  traceId: s,
2080
2139
  sampled: i
2081
- }) : new bt({ traceId: s });
2082
- ue(t, o);
2140
+ }) : new Tt({ traceId: s });
2141
+ fe(t, o);
2083
2142
  const a = N();
2084
2143
  return a && (a.emit("spanStart", o), n.endTimestamp && a.emit("spanEnd", o)), o;
2085
2144
  }
2086
- function Hn(t) {
2087
- const e = q(t);
2145
+ function Yn(t) {
2146
+ const e = V(t);
2088
2147
  if (!e)
2089
2148
  return;
2090
2149
  const n = N();
2091
2150
  return (n ? n.getOptions() : {}).parentSpanIsAlwaysRootSpan ? O(e) : e;
2092
2151
  }
2093
- function ft(t, e, n, r = 0) {
2152
+ function dt(t, e, n, r = 0) {
2094
2153
  return new T((s, i) => {
2095
2154
  const o = t[r];
2096
2155
  if (e === null || typeof o != "function")
2097
2156
  s(e);
2098
2157
  else {
2099
2158
  const a = o({ ...e }, n);
2100
- y && o.id && a === null && p.log(`Event processor "${o.id}" dropped event`), pt(a) ? a.then((u) => ft(t, u, n, r + 1).then(s)).then(null, i) : ft(t, a, n, r + 1).then(s).then(null, i);
2159
+ y && o.id && a === null && p.log(`Event processor "${o.id}" dropped event`), lt(a) ? a.then((u) => dt(t, u, n, r + 1).then(s)).then(null, i) : dt(t, a, n, r + 1).then(s).then(null, i);
2101
2160
  }
2102
2161
  });
2103
2162
  }
2104
- function Yn(t, e) {
2163
+ function Jn(t, e) {
2105
2164
  const { fingerprint: n, span: r, breadcrumbs: s, sdkProcessingMetadata: i } = e;
2106
- Jn(t, e), r && qn(t, r), Vn(t, n), Kn(t, s), zn(t, i);
2165
+ Kn(t, e), r && Vn(t, r), Wn(t, n), zn(t, s), qn(t, i);
2107
2166
  }
2108
- function Bt(t, e) {
2167
+ function Ht(t, e) {
2109
2168
  const {
2110
2169
  extra: n,
2111
2170
  tags: r,
@@ -2130,7 +2189,7 @@ function F(t, e, n) {
2130
2189
  Object.prototype.hasOwnProperty.call(n, r) && (t[e][r] = n[r]);
2131
2190
  }
2132
2191
  }
2133
- function Jn(t, e) {
2192
+ function Kn(t, e) {
2134
2193
  const { extra: n, tags: r, user: s, contexts: i, level: o, transactionName: a } = e, u = m(n);
2135
2194
  u && Object.keys(u).length && (t.extra = { ...u, ...t.extra });
2136
2195
  const c = m(r);
@@ -2140,73 +2199,73 @@ function Jn(t, e) {
2140
2199
  const d = m(i);
2141
2200
  d && Object.keys(d).length && (t.contexts = { ...d, ...t.contexts }), o && (t.level = o), a && t.type !== "transaction" && (t.transaction = a);
2142
2201
  }
2143
- function Kn(t, e) {
2202
+ function zn(t, e) {
2144
2203
  const n = [...t.breadcrumbs || [], ...e];
2145
2204
  t.breadcrumbs = n.length ? n : void 0;
2146
2205
  }
2147
- function zn(t, e) {
2206
+ function qn(t, e) {
2148
2207
  t.sdkProcessingMetadata = {
2149
2208
  ...t.sdkProcessingMetadata,
2150
2209
  ...e
2151
2210
  };
2152
2211
  }
2153
- function qn(t, e) {
2212
+ function Vn(t, e) {
2154
2213
  t.contexts = {
2155
- trace: Nn(e),
2214
+ trace: An(e),
2156
2215
  ...t.contexts
2157
2216
  }, t.sdkProcessingMetadata = {
2158
- dynamicSamplingContext: Q(e),
2217
+ dynamicSamplingContext: Z(e),
2159
2218
  ...t.sdkProcessingMetadata
2160
2219
  };
2161
2220
  const n = O(e), r = E(n).description;
2162
2221
  r && !t.transaction && t.type === "transaction" && (t.transaction = r);
2163
2222
  }
2164
- function Vn(t, e) {
2165
- t.fingerprint = t.fingerprint ? He(t.fingerprint) : [], e && (t.fingerprint = t.fingerprint.concat(e)), t.fingerprint && !t.fingerprint.length && delete t.fingerprint;
2223
+ function Wn(t, e) {
2224
+ t.fingerprint = t.fingerprint ? Ye(t.fingerprint) : [], e && (t.fingerprint = t.fingerprint.concat(e)), t.fingerprint && !t.fingerprint.length && delete t.fingerprint;
2166
2225
  }
2167
2226
  function es(t, e, n, r, s, i) {
2168
2227
  const { normalizeDepth: o = 3, normalizeMaxBreadth: a = 1e3 } = t, u = {
2169
2228
  ...e,
2170
2229
  event_id: e.event_id || n.event_id || _(),
2171
- timestamp: e.timestamp || gt()
2230
+ timestamp: e.timestamp || mt()
2172
2231
  }, c = n.integrations || t.integrations.map((b) => b.name);
2173
- Wn(u, t), Zn(u, c), e.type === void 0 && Xn(u, t.stackParser);
2174
- const f = er(r, n.captureContext);
2175
- n.mechanism && Be(u, n.mechanism);
2176
- const d = s ? s.getEventProcessors() : [], l = mn().getScopeData();
2232
+ Xn(u, t), tr(u, c), s && s.emit("applyFrameMetadata", e), e.type === void 0 && Qn(u, t.stackParser);
2233
+ const f = nr(r, n.captureContext);
2234
+ n.mechanism && He(u, n.mechanism);
2235
+ const d = s ? s.getEventProcessors() : [], l = Sn().getScopeData();
2177
2236
  if (i) {
2178
2237
  const b = i.getScopeData();
2179
- Bt(l, b);
2238
+ Ht(l, b);
2180
2239
  }
2181
2240
  if (f) {
2182
2241
  const b = f.getScopeData();
2183
- Bt(l, b);
2242
+ Ht(l, b);
2184
2243
  }
2185
2244
  const g = [...n.attachments || [], ...l.attachments];
2186
- g.length && (n.attachments = g), Yn(u, l);
2245
+ g.length && (n.attachments = g), Jn(u, l);
2187
2246
  const $ = [
2188
2247
  ...d,
2189
2248
  // Run scope event processors _after_ all other processors
2190
2249
  ...l.eventProcessors
2191
2250
  ];
2192
- return ft($, u, n).then((b) => (b && Qn(b), typeof o == "number" && o > 0 ? tr(b, o, a) : b));
2251
+ return dt($, u, n).then((b) => (b && Zn(b), typeof o == "number" && o > 0 ? er(b, o, a) : b));
2193
2252
  }
2194
- function Wn(t, e) {
2253
+ function Xn(t, e) {
2195
2254
  const { environment: n, release: r, dist: s, maxValueLength: i = 250 } = e;
2196
- "environment" in t || (t.environment = "environment" in e ? n : Tt), t.release === void 0 && r !== void 0 && (t.release = r), t.dist === void 0 && s !== void 0 && (t.dist = s), t.message && (t.message = G(t.message, i));
2255
+ "environment" in t || (t.environment = "environment" in e ? n : It), t.release === void 0 && r !== void 0 && (t.release = r), t.dist === void 0 && s !== void 0 && (t.dist = s), t.message && (t.message = G(t.message, i));
2197
2256
  const o = t.exception && t.exception.values && t.exception.values[0];
2198
2257
  o && o.value && (o.value = G(o.value, i));
2199
2258
  const a = t.request;
2200
2259
  a && a.url && (a.url = G(a.url, i));
2201
2260
  }
2202
- const Ht = /* @__PURE__ */ new WeakMap();
2203
- function Xn(t, e) {
2261
+ const Yt = /* @__PURE__ */ new WeakMap();
2262
+ function Qn(t, e) {
2204
2263
  const n = h._sentryDebugIds;
2205
2264
  if (!n)
2206
2265
  return;
2207
2266
  let r;
2208
- const s = Ht.get(e);
2209
- s ? r = s : (r = /* @__PURE__ */ new Map(), Ht.set(e, r));
2267
+ const s = Yt.get(e);
2268
+ s ? r = s : (r = /* @__PURE__ */ new Map(), Yt.set(e, r));
2210
2269
  const i = Object.entries(n).reduce(
2211
2270
  (o, [a, u]) => {
2212
2271
  let c;
@@ -2232,7 +2291,7 @@ function Xn(t, e) {
2232
2291
  } catch {
2233
2292
  }
2234
2293
  }
2235
- function Qn(t) {
2294
+ function Zn(t) {
2236
2295
  const e = {};
2237
2296
  try {
2238
2297
  t.exception.values.forEach((r) => {
@@ -2254,10 +2313,10 @@ function Qn(t) {
2254
2313
  });
2255
2314
  });
2256
2315
  }
2257
- function Zn(t, e) {
2316
+ function tr(t, e) {
2258
2317
  e.length > 0 && (t.sdk = t.sdk || {}, t.sdk.integrations = [...t.sdk.integrations || [], ...e]);
2259
2318
  }
2260
- function tr(t, e, n) {
2319
+ function er(t, e, n) {
2261
2320
  if (!t)
2262
2321
  return null;
2263
2322
  const r = {
@@ -2287,22 +2346,22 @@ function tr(t, e, n) {
2287
2346
  }
2288
2347
  }))), r;
2289
2348
  }
2290
- function er(t, e) {
2349
+ function nr(t, e) {
2291
2350
  if (!e)
2292
2351
  return t;
2293
2352
  const n = t ? t.clone() : new C();
2294
2353
  return n.update(e), n;
2295
2354
  }
2296
- function nr(t) {
2355
+ function rr(t) {
2297
2356
  if (t)
2298
- return rr(t) ? { captureContext: t } : ir(t) ? {
2357
+ return sr(t) ? { captureContext: t } : or(t) ? {
2299
2358
  captureContext: t
2300
2359
  } : t;
2301
2360
  }
2302
- function rr(t) {
2361
+ function sr(t) {
2303
2362
  return t instanceof C || typeof t == "function";
2304
2363
  }
2305
- const sr = [
2364
+ const ir = [
2306
2365
  "user",
2307
2366
  "level",
2308
2367
  "extra",
@@ -2312,53 +2371,53 @@ const sr = [
2312
2371
  "requestSession",
2313
2372
  "propagationContext"
2314
2373
  ];
2315
- function ir(t) {
2316
- return Object.keys(t).some((e) => sr.includes(e));
2374
+ function or(t) {
2375
+ return Object.keys(t).some((e) => ir.includes(e));
2317
2376
  }
2318
- function or(t, e) {
2319
- return I().captureException(t, nr(e));
2377
+ function ar(t, e) {
2378
+ return I().captureException(t, rr(e));
2320
2379
  }
2321
2380
  function ns(t, e) {
2322
2381
  return I().captureEvent(t, e);
2323
2382
  }
2324
2383
  function rs(t, e) {
2325
- j().setContext(t, e);
2384
+ v().setContext(t, e);
2326
2385
  }
2327
2386
  function ss(t) {
2328
- j().addEventProcessor(t);
2387
+ v().addEventProcessor(t);
2329
2388
  }
2330
2389
  function is(t) {
2331
- const e = N(), n = j(), r = I(), { release: s, environment: i = Tt } = e && e.getOptions() || {}, { userAgent: o } = h.navigator || {}, a = an({
2390
+ const e = N(), n = v(), r = I(), { release: s, environment: i = It } = e && e.getOptions() || {}, { userAgent: o } = h.navigator || {}, a = cn({
2332
2391
  release: s,
2333
2392
  environment: i,
2334
2393
  user: r.getUser() || n.getUser(),
2335
2394
  ...o && { userAgent: o },
2336
2395
  ...t
2337
2396
  }), u = n.getSession();
2338
- return u && u.status === "ok" && X(u, { status: "exited" }), ge(), n.setSession(a), r.setSession(a), a;
2339
- }
2340
- function ge() {
2341
- const t = j(), e = I(), n = e.getSession() || t.getSession();
2342
- n && cn(n), me(), t.setSession(), e.setSession();
2397
+ return u && u.status === "ok" && Q(u, { status: "exited" }), me(), n.setSession(a), r.setSession(a), a;
2343
2398
  }
2344
2399
  function me() {
2345
- const t = j(), e = I(), n = N(), r = e.getSession() || t.getSession();
2400
+ const t = v(), e = I(), n = e.getSession() || t.getSession();
2401
+ n && un(n), Se(), t.setSession(), e.setSession();
2402
+ }
2403
+ function Se() {
2404
+ const t = v(), e = I(), n = N(), r = e.getSession() || t.getSession();
2346
2405
  r && n && n.captureSession(r);
2347
2406
  }
2348
2407
  function os(t = !1) {
2349
2408
  if (t) {
2350
- ge();
2409
+ me();
2351
2410
  return;
2352
2411
  }
2353
- me();
2412
+ Se();
2354
2413
  }
2355
- const ar = ["activate", "mount", "update"], cr = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, ur = /(?:^|[-_])(\w)/g, fr = (t) => t.replace(ur, (e) => e.toUpperCase()).replace(/[-_]/g, ""), dr = "<Root>", tt = "<Anonymous>", pr = (t, e) => t.repeat(e), H = (t, e) => {
2414
+ const cr = ["activate", "mount", "update"], ur = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, fr = /(?:^|[-_])(\w)/g, dr = (t) => t.replace(fr, (e) => e.toUpperCase()).replace(/[-_]/g, ""), pr = "<Root>", et = "<Anonymous>", lr = (t, e) => t.repeat(e), H = (t, e) => {
2356
2415
  if (!t)
2357
- return tt;
2416
+ return et;
2358
2417
  if (t.$root === t)
2359
- return dr;
2418
+ return pr;
2360
2419
  if (!t.$options)
2361
- return tt;
2420
+ return et;
2362
2421
  const n = t.$options;
2363
2422
  let r = n.name || n._componentTag;
2364
2423
  const s = n.__file;
@@ -2366,8 +2425,8 @@ const ar = ["activate", "mount", "update"], cr = typeof __SENTRY_DEBUG__ > "u" |
2366
2425
  const i = s.match(/([^/\\]+)\.vue$/);
2367
2426
  i && (r = i[1]);
2368
2427
  }
2369
- return (r ? `<${fr(r)}>` : tt) + (s && e !== !1 ? ` at ${s}` : "");
2370
- }, lr = (t) => {
2428
+ return (r ? `<${dr(r)}>` : et) + (s && e !== !1 ? ` at ${s}` : "");
2429
+ }, _r = (t) => {
2371
2430
  if (t && (t._isVue || t.__isVue) && t.$parent) {
2372
2431
  const e = [];
2373
2432
  let n = 0;
@@ -2386,7 +2445,7 @@ const ar = ["activate", "mount", "update"], cr = typeof __SENTRY_DEBUG__ > "u" |
2386
2445
  found in
2387
2446
 
2388
2447
  ${e.map(
2389
- (s, i) => `${(i === 0 ? "---> " : pr(" ", 5 + i * 2)) + (Array.isArray(s) ? `${H(s[0])}... (${s[1]} recursive calls)` : H(s))}`
2448
+ (s, i) => `${(i === 0 ? "---> " : lr(" ", 5 + i * 2)) + (Array.isArray(s) ? `${H(s[0])}... (${s[1]} recursive calls)` : H(s))}`
2390
2449
  ).join(`
2391
2450
  `)}`;
2392
2451
  }
@@ -2396,24 +2455,24 @@ ${e.map(
2396
2455
  }, as = (t, e) => {
2397
2456
  const { errorHandler: n, warnHandler: r, silent: s } = t.config;
2398
2457
  t.config.errorHandler = (i, o, a) => {
2399
- const u = H(o, !1), c = o ? lr(o) : "", f = {
2458
+ const u = H(o, !1), c = o ? _r(o) : "", f = {
2400
2459
  componentName: u,
2401
2460
  lifecycleHook: a,
2402
2461
  trace: c
2403
2462
  };
2404
2463
  if (e.attachProps && o && (o.$options && o.$options.propsData ? f.propsData = o.$options.propsData : o.$props && (f.propsData = o.$props)), setTimeout(() => {
2405
- or(i, {
2464
+ ar(i, {
2406
2465
  captureContext: { contexts: { vue: f } },
2407
2466
  mechanism: { handled: !1 }
2408
2467
  });
2409
2468
  }), typeof n == "function" && n.call(t, i, o, a), e.logErrors) {
2410
2469
  const d = typeof console < "u", l = `Error in ${a}: "${i && i.toString()}"`;
2411
- r ? r.call(null, l, o, c) : d && !s && _t(() => {
2470
+ r ? r.call(null, l, o, c) : d && !s && ht(() => {
2412
2471
  console.error(`[Vue warn]: ${l}${c}`);
2413
2472
  });
2414
2473
  }
2415
2474
  };
2416
- }, Yt = "ui.vue", _r = {
2475
+ }, Jt = "ui.vue", hr = {
2417
2476
  activate: ["activated", "deactivated"],
2418
2477
  create: ["beforeCreate", "created"],
2419
2478
  // Vue 3
@@ -2423,25 +2482,25 @@ ${e.map(
2423
2482
  mount: ["beforeMount", "mounted"],
2424
2483
  update: ["beforeUpdate", "updated"]
2425
2484
  };
2426
- function hr(t, e, n) {
2485
+ function gr(t, e, n) {
2427
2486
  t.$_sentryRootSpanTimer && clearTimeout(t.$_sentryRootSpanTimer), t.$_sentryRootSpanTimer = setTimeout(() => {
2428
2487
  t.$root && t.$root.$_sentryRootSpan && (t.$root.$_sentryRootSpan.end(e), t.$root.$_sentryRootSpan = void 0);
2429
2488
  }, n);
2430
2489
  }
2431
2490
  const cs = (t) => {
2432
- const e = (t.hooks || []).concat(ar).filter((r, s, i) => i.indexOf(r) === s), n = {};
2491
+ const e = (t.hooks || []).concat(cr).filter((r, s, i) => i.indexOf(r) === s), n = {};
2433
2492
  for (const r of e) {
2434
- const s = _r[r];
2493
+ const s = hr[r];
2435
2494
  if (!s) {
2436
- cr && p.warn(`Unknown hook: ${r}`);
2495
+ ur && p.warn(`Unknown hook: ${r}`);
2437
2496
  continue;
2438
2497
  }
2439
2498
  for (const i of s)
2440
2499
  n[i] = function() {
2441
2500
  const o = this.$root === this;
2442
- o && ut() && (this.$_sentryRootSpan = this.$_sentryRootSpan || Ft({
2501
+ o && ft() && (this.$_sentryRootSpan = this.$_sentryRootSpan || Gt({
2443
2502
  name: "Application Render",
2444
- op: `${Yt}.render`,
2503
+ op: `${Jt}.render`,
2445
2504
  attributes: {
2446
2505
  [Y]: "auto.ui.vue"
2447
2506
  }
@@ -2449,11 +2508,11 @@ const cs = (t) => {
2449
2508
  const a = H(this, !1), u = Array.isArray(t.trackComponents) ? t.trackComponents.indexOf(a) > -1 : t.trackComponents;
2450
2509
  if (!(!o && !u))
2451
2510
  if (this.$_sentrySpans = this.$_sentrySpans || {}, i == s[0]) {
2452
- if (this.$root && this.$root.$_sentryRootSpan || ut()) {
2511
+ if (this.$root && this.$root.$_sentryRootSpan || ft()) {
2453
2512
  const f = this.$_sentrySpans[r];
2454
- f && f.end(), this.$_sentrySpans[r] = Ft({
2513
+ f && f.end(), this.$_sentrySpans[r] = Gt({
2455
2514
  name: `Vue <${a}>`,
2456
- op: `${Yt}.${r}`,
2515
+ op: `${Jt}.${r}`,
2457
2516
  attributes: {
2458
2517
  [Y]: "auto.ui.vue"
2459
2518
  }
@@ -2462,129 +2521,123 @@ const cs = (t) => {
2462
2521
  } else {
2463
2522
  const c = this.$_sentrySpans[r];
2464
2523
  if (!c) return;
2465
- c.end(), hr(this, x(), t.timeout);
2524
+ c.end(), gr(this, P(), t.timeout);
2466
2525
  }
2467
2526
  };
2468
2527
  }
2469
2528
  return n;
2470
2529
  };
2471
- var us = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2472
- function fs(t) {
2473
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
2474
- }
2475
2530
  export {
2476
- dt as $,
2477
- Rn as A,
2478
- E as B,
2479
- Nt as C,
2480
- W as D,
2481
- qr as E,
2482
- Xr as F,
2531
+ ht as $,
2532
+ qr as A,
2533
+ Xr as B,
2534
+ At as C,
2535
+ X as D,
2536
+ Gt as E,
2537
+ kr as F,
2483
2538
  h as G,
2484
- Ft as H,
2485
- kr as I,
2486
- He as J,
2487
- Rr as K,
2488
- _ as L,
2489
- Ur as M,
2490
- br as N,
2491
- X as O,
2492
- Zr as P,
2493
- Hr as Q,
2494
- Kr as R,
2539
+ Ye as H,
2540
+ Rr as I,
2541
+ _ as J,
2542
+ Ur as K,
2543
+ br as L,
2544
+ Q as M,
2545
+ Zr as N,
2546
+ Hr as O,
2547
+ Kr as P,
2548
+ Qr as Q,
2549
+ es as R,
2495
2550
  T as S,
2496
- Qr as T,
2497
- es as U,
2498
- m as V,
2499
- kn as W,
2500
- j as X,
2501
- Pn as Y,
2502
- pt as Z,
2503
- it as _,
2504
- cs as a,
2505
- ye as a0,
2506
- _t as a1,
2507
- Yr as a2,
2508
- zr as a3,
2509
- Jr as a4,
2510
- B as a5,
2511
- Cr as a6,
2512
- Mr as a7,
2513
- Ir as a8,
2514
- Pr as a9,
2515
- En as aA,
2516
- re as aB,
2517
- se as aC,
2518
- Ue as aD,
2519
- Le as aE,
2520
- Tr as aF,
2521
- ns as aG,
2522
- Nr as aH,
2523
- wr as aI,
2524
- is as aJ,
2525
- os as aK,
2526
- Et as aL,
2527
- ss as aM,
2528
- rs as aN,
2529
- R as aO,
2530
- on as aP,
2531
- te as aQ,
2532
- Br as aR,
2533
- v as aS,
2534
- Ar as aT,
2535
- $t as aU,
2536
- cr as aV,
2537
- ar as aW,
2538
- Y as aa,
2539
- at as ab,
2540
- Wr as ac,
2541
- en as ad,
2542
- Gr as ae,
2543
- Q as af,
2544
- Fr as ag,
2545
- Vr as ah,
2546
- xe as ai,
2547
- ee as aj,
2548
- Lr as ak,
2549
- Be as al,
2550
- or as am,
2551
- Sr as an,
2552
- yr as ao,
2553
- Er as ap,
2554
- Ee as aq,
2555
- Ye as ar,
2556
- $r as as,
2557
- ht as at,
2558
- vn as au,
2559
- xr as av,
2560
- Oe as aw,
2561
- Or as ax,
2562
- ts as ay,
2563
- z as az,
2564
- as as b,
2565
- us as c,
2566
- ve as d,
2567
- x as e,
2551
+ m as T,
2552
+ $n as U,
2553
+ v as V,
2554
+ Pn as W,
2555
+ lt as X,
2556
+ pt as Y,
2557
+ Ee as Z,
2558
+ ot as _,
2559
+ as as a,
2560
+ Yr as a0,
2561
+ zr as a1,
2562
+ Jr as a2,
2563
+ B as a3,
2564
+ Cr as a4,
2565
+ Mr as a5,
2566
+ Ir as a6,
2567
+ xr as a7,
2568
+ Y as a8,
2569
+ ct as a9,
2570
+ ie as aA,
2571
+ ve as aB,
2572
+ Ue as aC,
2573
+ Tr as aD,
2574
+ ns as aE,
2575
+ Nr as aF,
2576
+ wr as aG,
2577
+ is as aH,
2578
+ os as aI,
2579
+ bt as aJ,
2580
+ ss as aK,
2581
+ rs as aL,
2582
+ R as aM,
2583
+ an as aN,
2584
+ ee as aO,
2585
+ Br as aP,
2586
+ j as aQ,
2587
+ Ar as aR,
2588
+ wt as aS,
2589
+ ur as aT,
2590
+ cr as aU,
2591
+ Wr as aa,
2592
+ nn as ab,
2593
+ Gr as ac,
2594
+ Z as ad,
2595
+ Fr as ae,
2596
+ Vr as af,
2597
+ Me as ag,
2598
+ ne as ah,
2599
+ Lr as ai,
2600
+ He as aj,
2601
+ ar as ak,
2602
+ Sr as al,
2603
+ yr as am,
2604
+ Er as an,
2605
+ be as ao,
2606
+ Je as ap,
2607
+ $r as aq,
2608
+ gt as ar,
2609
+ Fn as as,
2610
+ Pr as at,
2611
+ Re as au,
2612
+ Or as av,
2613
+ ts as aw,
2614
+ q as ax,
2615
+ bn as ay,
2616
+ se as az,
2617
+ P as b,
2618
+ cs as c,
2619
+ ye as d,
2620
+ D as e,
2568
2621
  Dr as f,
2569
- fs as g,
2570
- Se as h,
2571
- V as i,
2572
- D as j,
2573
- jr as k,
2622
+ Fe as g,
2623
+ vr as h,
2624
+ W as i,
2625
+ St as j,
2626
+ mt as k,
2574
2627
  p as l,
2575
- mt as m,
2576
- gt as n,
2577
- At as o,
2578
- ut as p,
2579
- O as q,
2580
- vr as r,
2581
- y as s,
2628
+ ft as m,
2629
+ O as n,
2630
+ Ot as o,
2631
+ y as p,
2632
+ S as q,
2633
+ jr as r,
2634
+ N as s,
2582
2635
  G as t,
2583
- S as u,
2584
- N as v,
2585
- pe as w,
2586
- bt as x,
2587
- I as y,
2588
- P as z
2636
+ le as u,
2637
+ Tt as v,
2638
+ I as w,
2639
+ x,
2640
+ Dn as y,
2641
+ E as z
2589
2642
  };
2590
- //# sourceMappingURL=_commonjsHelpers-DEK47QeC.js.map
2643
+ //# sourceMappingURL=tracing-B1Jp160Y.js.map