@konnectio/core 4.0.68 → 4.0.70

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 (70) hide show
  1. package/dist/{ActionField-_CEmKSlf.js → ActionField-B2nkVHpm.js} +4 -4
  2. package/dist/ActionField-B2nkVHpm.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-CHDZOB_s.js → AvailabilitySkeleton-B861c-E-.js} +7 -7
  4. package/dist/AvailabilitySkeleton-B861c-E-.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DjFIhQhI.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-C7LESH9d.js} +725 -727
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-C7LESH9d.js.br +0 -0
  7. package/dist/{CheckoutWindow-BzoYJ5v5.js → CheckoutWindow-DM8NiuXR.js} +5 -5
  8. package/dist/CheckoutWindow-DM8NiuXR.js.br +0 -0
  9. package/dist/{ErrorMessage-Cc8QanBP.js → ErrorMessage-DHi8BQ6u.js} +4 -4
  10. package/dist/ErrorMessage-DHi8BQ6u.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-CdmiDieo.js → EventAvailabilityForm-DPn-Gce_.js} +25 -25
  12. package/dist/EventAvailabilityForm-DPn-Gce_.js.br +0 -0
  13. package/dist/{Field-DMMbo6LE.js → Field-DxsuquwZ.js} +9 -9
  14. package/dist/Field-DxsuquwZ.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DKrodyae.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CvsS3MPq.js} +6 -6
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CvsS3MPq.js.br +0 -0
  17. package/dist/{TermsOfService-YxQsHH5-.js → TermsOfService-D_Jn5Zg_.js} +13 -13
  18. package/dist/TermsOfService-D_Jn5Zg_.js.br +0 -0
  19. package/dist/{_-DZrN6t_6.js → _-DvTtY1Ya.js} +3 -3
  20. package/dist/{_.vue_vue_type_style_index_0_lang-C4mV4F7L.js → _.vue_vue_type_style_index_0_lang-B9P9xmGD.js} +4 -4
  21. package/dist/_.vue_vue_type_style_index_0_lang-B9P9xmGD.js.br +0 -0
  22. package/dist/{_commonjsHelpers-BqFuLgLz.js → _commonjsHelpers-zI2TZkyo.js} +2 -2
  23. package/dist/_commonjsHelpers-zI2TZkyo.js.br +0 -0
  24. package/dist/{_sentry-release-injection-file-Bgn3HK9h.js → _sentry-release-injection-file-DvEZJp-B.js} +3 -3
  25. package/dist/_sentry-release-injection-file-DvEZJp-B.js.br +0 -0
  26. package/dist/availability.js +39 -40
  27. package/dist/availability.js.br +0 -0
  28. package/dist/deep-link.js +27 -21
  29. package/dist/deep-link.js.br +0 -0
  30. package/dist/event.js +19 -20
  31. package/dist/event.js.br +0 -0
  32. package/dist/gift-card-validation.js +18 -19
  33. package/dist/gift-card-validation.js.br +0 -0
  34. package/dist/gift-card.js +63 -64
  35. package/dist/gift-card.js.br +0 -0
  36. package/dist/{giftCard-D-wdGVBh.js → giftCard-awGtNaxi.js} +15 -15
  37. package/dist/giftCard-awGtNaxi.js.br +0 -0
  38. package/dist/hotel.js +708 -715
  39. package/dist/hotel.js.br +0 -0
  40. package/dist/{masonry.plugin-D3cbfEtC.js → masonry.plugin-BrevVGLo.js} +10 -10
  41. package/dist/masonry.plugin-BrevVGLo.js.br +0 -0
  42. package/dist/{mitt-BWKhoTz3.js → mitt-CHkQwqe3.js} +2 -2
  43. package/dist/mitt-CHkQwqe3.js.br +0 -0
  44. package/dist/polyfill.js +13681 -4661
  45. package/dist/polyfill.js.br +0 -0
  46. package/dist/{style-B8UHQIzP.js → style-CTJOBGnG.js} +195 -188
  47. package/dist/style-CTJOBGnG.js.br +0 -0
  48. package/dist/style.css +1 -1
  49. package/dist/style.css.br +0 -0
  50. package/dist/tracing-1TgukAt0.js +2643 -0
  51. package/dist/tracing-1TgukAt0.js.br +0 -0
  52. package/package.json +5 -5
  53. package/dist/ActionField-_CEmKSlf.js.br +0 -0
  54. package/dist/AvailabilitySkeleton-CHDZOB_s.js.br +0 -0
  55. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DjFIhQhI.js.br +0 -0
  56. package/dist/CheckoutWindow-BzoYJ5v5.js.br +0 -0
  57. package/dist/ErrorMessage-Cc8QanBP.js.br +0 -0
  58. package/dist/EventAvailabilityForm-CdmiDieo.js.br +0 -0
  59. package/dist/Field-DMMbo6LE.js.br +0 -0
  60. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DKrodyae.js.br +0 -0
  61. package/dist/TermsOfService-YxQsHH5-.js.br +0 -0
  62. package/dist/_.vue_vue_type_style_index_0_lang-C4mV4F7L.js.br +0 -0
  63. package/dist/_commonjsHelpers-BqFuLgLz.js.br +0 -0
  64. package/dist/_sentry-release-injection-file-Bgn3HK9h.js.br +0 -0
  65. package/dist/giftCard-D-wdGVBh.js.br +0 -0
  66. package/dist/masonry.plugin-D3cbfEtC.js.br +0 -0
  67. package/dist/mitt-BWKhoTz3.js.br +0 -0
  68. package/dist/sentry-D-KvzqAy.js +0 -1452
  69. package/dist/sentry-D-KvzqAy.js.br +0 -0
  70. package/dist/style-B8UHQIzP.js.br +0 -0
@@ -0,0 +1,2643 @@
1
+ (function() {
2
+ try {
3
+ var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, e = new Error().stack;
4
+ e && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[e] = "f1b4c3d8-39ed-4055-aa2b-d14c8aea5cca", t._sentryDebugIdIdentifier = "sentry-dbid-f1b4c3d8-39ed-4055-aa2b-d14c8aea5cca");
5
+ } catch {
6
+ }
7
+ })();
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)) {
19
+ case "[object Error]":
20
+ case "[object Exception]":
21
+ case "[object DOMException]":
22
+ return !0;
23
+ default:
24
+ return W(t, Error);
25
+ }
26
+ }
27
+ function L(t, e) {
28
+ return Kt.call(t) === `[object ${e}]`;
29
+ }
30
+ function Sr(t) {
31
+ return L(t, "ErrorEvent");
32
+ }
33
+ function yr(t) {
34
+ return L(t, "DOMError");
35
+ }
36
+ function Er(t) {
37
+ return L(t, "DOMException");
38
+ }
39
+ function q(t) {
40
+ return L(t, "String");
41
+ }
42
+ function Ee(t) {
43
+ return typeof t == "object" && t !== null && "__sentry_template_string__" in t && "__sentry_template_values__" in t;
44
+ }
45
+ function br(t) {
46
+ return t === null || Ee(t) || typeof t != "object" && typeof t != "function";
47
+ }
48
+ function pt(t) {
49
+ return L(t, "Object");
50
+ }
51
+ function be(t) {
52
+ return typeof Event < "u" && W(t, Event);
53
+ }
54
+ function Te(t) {
55
+ return typeof Element < "u" && W(t, Element);
56
+ }
57
+ function Ie(t) {
58
+ return L(t, "RegExp");
59
+ }
60
+ function lt(t) {
61
+ return !!(t && t.then && typeof t.then == "function");
62
+ }
63
+ function Ne(t) {
64
+ return pt(t) && "nativeEvent" in t && "preventDefault" in t && "stopPropagation" in t;
65
+ }
66
+ function W(t, e) {
67
+ try {
68
+ return t instanceof e;
69
+ } catch {
70
+ return !1;
71
+ }
72
+ }
73
+ function zt(t) {
74
+ return !!(typeof t == "object" && t !== null && (t.__isVue || t._isVue));
75
+ }
76
+ function G(t, e = 0) {
77
+ return typeof t != "string" || e === 0 || t.length <= e ? t : `${t.slice(0, e)}...`;
78
+ }
79
+ function Tr(t, e) {
80
+ if (!Array.isArray(t))
81
+ return "";
82
+ const n = [];
83
+ for (let r = 0; r < t.length; r++) {
84
+ const s = t[r];
85
+ try {
86
+ zt(s) ? n.push("[VueViewModel]") : n.push(String(s));
87
+ } catch {
88
+ n.push("[value cannot be serialized]");
89
+ }
90
+ }
91
+ return n.join(e);
92
+ }
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;
95
+ }
96
+ function Ir(t, e = [], n = !1) {
97
+ return e.some((r) => Ae(t, r, n));
98
+ }
99
+ const B = "8.20.0", h = globalThis;
100
+ function _t(t, e, n) {
101
+ const r = n || h, s = r.__SENTRY__ = r.__SENTRY__ || {}, i = s[B] = s[B] || {};
102
+ return i[t] || (i[t] = e());
103
+ }
104
+ const w = h, Oe = 80;
105
+ function Re(t, e = {}) {
106
+ if (!t)
107
+ return "<unknown>";
108
+ try {
109
+ let n = t;
110
+ const r = 5, s = [];
111
+ let i = 0, o = 0;
112
+ const a = " > ", u = a.length;
113
+ let c;
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)); )
116
+ s.push(c), o += c.length, n = n.parentNode;
117
+ return s.reverse().join(a);
118
+ } catch {
119
+ return "<unknown>";
120
+ }
121
+ }
122
+ function De(t, e) {
123
+ const n = t, r = [];
124
+ if (!n || !n.tagName)
125
+ return "";
126
+ if (w.HTMLElement && n instanceof HTMLElement && n.dataset) {
127
+ if (n.dataset.sentryComponent)
128
+ return n.dataset.sentryComponent;
129
+ if (n.dataset.sentryElement)
130
+ return n.dataset.sentryElement;
131
+ }
132
+ r.push(n.tagName.toLowerCase());
133
+ const s = e && e.length ? e.filter((o) => n.getAttribute(o)).map((o) => [o, n.getAttribute(o)]) : null;
134
+ if (s && s.length)
135
+ s.forEach((o) => {
136
+ r.push(`[${o[0]}="${o[1]}"]`);
137
+ });
138
+ else {
139
+ n.id && r.push(`#${n.id}`);
140
+ const o = n.className;
141
+ if (o && q(o)) {
142
+ const a = o.split(/\s+/);
143
+ for (const u of a)
144
+ r.push(`.${u}`);
145
+ }
146
+ }
147
+ const i = ["aria-label", "type", "name", "title", "alt"];
148
+ for (const o of i) {
149
+ const a = n.getAttribute(o);
150
+ a && r.push(`[${o}="${a}"]`);
151
+ }
152
+ return r.join("");
153
+ }
154
+ function Nr() {
155
+ try {
156
+ return w.document.location.href;
157
+ } catch {
158
+ return "";
159
+ }
160
+ }
161
+ function Ar(t) {
162
+ return w.document && w.document.querySelector ? w.document.querySelector(t) : null;
163
+ }
164
+ function Or(t) {
165
+ if (!w.HTMLElement)
166
+ return null;
167
+ let e = t;
168
+ const n = 5;
169
+ for (let r = 0; r < n; r++) {
170
+ if (!e)
171
+ return null;
172
+ if (e instanceof HTMLElement) {
173
+ if (e.dataset.sentryComponent)
174
+ return e.dataset.sentryComponent;
175
+ if (e.dataset.sentryElement)
176
+ return e.dataset.sentryElement;
177
+ }
178
+ e = e.parentNode;
179
+ }
180
+ return null;
181
+ }
182
+ const X = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, Ce = "Sentry Logger ", At = [
183
+ "debug",
184
+ "info",
185
+ "warn",
186
+ "error",
187
+ "log",
188
+ "assert",
189
+ "trace"
190
+ ], Ot = {};
191
+ function ht(t) {
192
+ if (!("console" in h))
193
+ return t();
194
+ const e = h.console, n = {}, r = Object.keys(Ot);
195
+ r.forEach((s) => {
196
+ const i = Ot[s];
197
+ n[s] = e[s], e[s] = i;
198
+ });
199
+ try {
200
+ return t();
201
+ } finally {
202
+ r.forEach((s) => {
203
+ e[s] = n[s];
204
+ });
205
+ }
206
+ }
207
+ function ke() {
208
+ let t = !1;
209
+ const e = {
210
+ enable: () => {
211
+ t = !0;
212
+ },
213
+ disable: () => {
214
+ t = !1;
215
+ },
216
+ isEnabled: () => t
217
+ };
218
+ return X ? At.forEach((n) => {
219
+ e[n] = (...r) => {
220
+ t && ht(() => {
221
+ h.console[n](`${Ce}[${n}]:`, ...r);
222
+ });
223
+ };
224
+ }) : At.forEach((n) => {
225
+ e[n] = () => {
226
+ };
227
+ }), e;
228
+ }
229
+ const p = ke(), $e = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;
230
+ function we(t) {
231
+ return t === "http" || t === "https";
232
+ }
233
+ function gt(t, e = !1) {
234
+ const { host: n, path: r, pass: s, port: i, projectId: o, protocol: a, publicKey: u } = t;
235
+ return `${a}://${u}${e && s ? `:${s}` : ""}@${n}${i ? `:${i}` : ""}/${r && `${r}/`}${o}`;
236
+ }
237
+ function xe(t) {
238
+ const e = $e.exec(t);
239
+ if (!e) {
240
+ ht(() => {
241
+ console.error(`Invalid Sentry Dsn: ${t}`);
242
+ });
243
+ return;
244
+ }
245
+ const [n, r, s = "", i = "", o = "", a = ""] = e.slice(1);
246
+ let u = "", c = a;
247
+ const f = c.split("/");
248
+ if (f.length > 1 && (u = f.slice(0, -1).join("/"), c = f.pop()), c) {
249
+ const d = c.match(/^\d+/);
250
+ d && (c = d[0]);
251
+ }
252
+ return qt({ host: i, pass: s, path: u, projectId: c, port: o, protocol: n, publicKey: r });
253
+ }
254
+ function qt(t) {
255
+ return {
256
+ protocol: t.protocol,
257
+ publicKey: t.publicKey || "",
258
+ pass: t.pass || "",
259
+ host: t.host,
260
+ port: t.port || "",
261
+ path: t.path || "",
262
+ projectId: t.projectId
263
+ };
264
+ }
265
+ function Pe(t) {
266
+ if (!X)
267
+ return !0;
268
+ const { port: e, projectId: n, protocol: r } = t;
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);
270
+ }
271
+ function Rr(t) {
272
+ const e = typeof t == "string" ? xe(t) : qt(t);
273
+ if (!(!e || !Pe(e)))
274
+ return e;
275
+ }
276
+ function Dr(t, e, n) {
277
+ if (!(e in t))
278
+ return;
279
+ const r = t[e], s = n(r);
280
+ typeof s == "function" && Me(s, r), t[e] = s;
281
+ }
282
+ function D(t, e, n) {
283
+ try {
284
+ Object.defineProperty(t, e, {
285
+ // enumerable: false, // the default, so we can save on bundle size by not explicitly setting it
286
+ value: n,
287
+ writable: !0,
288
+ configurable: !0
289
+ });
290
+ } catch {
291
+ X && p.log(`Failed to add non-enumerable property "${e}" to object`, t);
292
+ }
293
+ }
294
+ function Me(t, e) {
295
+ try {
296
+ const n = e.prototype || {};
297
+ t.prototype = e.prototype = n, D(t, "__sentry_original__", e);
298
+ } catch {
299
+ }
300
+ }
301
+ function Cr(t) {
302
+ return t.__sentry_original__;
303
+ }
304
+ function kr(t) {
305
+ return Object.keys(t).map((e) => `${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&");
306
+ }
307
+ function Vt(t) {
308
+ if (ye(t))
309
+ return {
310
+ message: t.message,
311
+ name: t.name,
312
+ stack: t.stack,
313
+ ...Dt(t)
314
+ };
315
+ if (be(t)) {
316
+ const e = {
317
+ type: t.type,
318
+ target: Rt(t.target),
319
+ currentTarget: Rt(t.currentTarget),
320
+ ...Dt(t)
321
+ };
322
+ return typeof CustomEvent < "u" && W(t, CustomEvent) && (e.detail = t.detail), e;
323
+ } else
324
+ return t;
325
+ }
326
+ function Rt(t) {
327
+ try {
328
+ return Te(t) ? Re(t) : Object.prototype.toString.call(t);
329
+ } catch {
330
+ return "<unknown>";
331
+ }
332
+ }
333
+ function Dt(t) {
334
+ if (typeof t == "object" && t !== null) {
335
+ const e = {};
336
+ for (const n in t)
337
+ Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
338
+ return e;
339
+ } else
340
+ return {};
341
+ }
342
+ function $r(t, e = 40) {
343
+ const n = Object.keys(Vt(t));
344
+ n.sort();
345
+ const r = n[0];
346
+ if (!r)
347
+ return "[object has no keys]";
348
+ if (r.length >= e)
349
+ return G(r, e);
350
+ for (let s = n.length; s > 0; s--) {
351
+ const i = n.slice(0, s).join(", ");
352
+ if (!(i.length > e))
353
+ return s === n.length ? i : G(i, e);
354
+ }
355
+ return "";
356
+ }
357
+ function m(t) {
358
+ return nt(t, /* @__PURE__ */ new Map());
359
+ }
360
+ function nt(t, e) {
361
+ if (Le(t)) {
362
+ const n = e.get(t);
363
+ if (n !== void 0)
364
+ return n;
365
+ const r = {};
366
+ e.set(t, r);
367
+ for (const s of Object.keys(t))
368
+ typeof t[s] < "u" && (r[s] = nt(t[s], e));
369
+ return r;
370
+ }
371
+ if (Array.isArray(t)) {
372
+ const n = e.get(t);
373
+ if (n !== void 0)
374
+ return n;
375
+ const r = [];
376
+ return e.set(t, r), t.forEach((s) => {
377
+ r.push(nt(s, e));
378
+ }), r;
379
+ }
380
+ return t;
381
+ }
382
+ function Le(t) {
383
+ if (!pt(t))
384
+ return !1;
385
+ try {
386
+ const e = Object.getPrototypeOf(t).constructor.name;
387
+ return !e || e === "Object";
388
+ } catch {
389
+ return !0;
390
+ }
391
+ }
392
+ const Wt = 50, Ue = "?", Ct = /\(error: (.*)\)/, kt = /captureMessage|captureException/;
393
+ function ve(...t) {
394
+ const e = t.sort((n, r) => n[0] - r[0]).map((n) => n[1]);
395
+ return (n, r = 0, s = 0) => {
396
+ const i = [], o = n.split(`
397
+ `);
398
+ for (let a = r; a < o.length; a++) {
399
+ const u = o[a];
400
+ if (u.length > 1024)
401
+ continue;
402
+ const c = Ct.test(u) ? u.replace(Ct, "$1") : u;
403
+ if (!c.match(/\S*Error: /)) {
404
+ for (const f of e) {
405
+ const d = f(c);
406
+ if (d) {
407
+ i.push(d);
408
+ break;
409
+ }
410
+ }
411
+ if (i.length >= Wt + s)
412
+ break;
413
+ }
414
+ }
415
+ return je(i.slice(s));
416
+ };
417
+ }
418
+ function wr(t) {
419
+ return Array.isArray(t) ? ve(...t) : t;
420
+ }
421
+ function je(t) {
422
+ if (!t.length)
423
+ return [];
424
+ const e = Array.from(t);
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) => ({
426
+ ...n,
427
+ filename: n.filename || z(e).filename,
428
+ function: n.function || Ue
429
+ }));
430
+ }
431
+ function z(t) {
432
+ return t[t.length - 1] || {};
433
+ }
434
+ const tt = "<anonymous>";
435
+ function Fe(t) {
436
+ try {
437
+ return !t || typeof t != "function" ? tt : t.name || tt;
438
+ } catch {
439
+ return tt;
440
+ }
441
+ }
442
+ function xr(t) {
443
+ const e = t.exception;
444
+ if (e) {
445
+ const n = [];
446
+ try {
447
+ return e.values.forEach((r) => {
448
+ r.stacktrace.frames && n.push(...r.stacktrace.frames);
449
+ }), n;
450
+ } catch {
451
+ return;
452
+ }
453
+ }
454
+ }
455
+ const Xt = 1e3;
456
+ function mt() {
457
+ return Date.now() / Xt;
458
+ }
459
+ function Ge() {
460
+ const { performance: t } = h;
461
+ if (!t || !t.now)
462
+ return mt;
463
+ const e = Date.now() - t.now(), n = t.timeOrigin == null ? e : t.timeOrigin;
464
+ return () => (n + t.now()) / Xt;
465
+ }
466
+ const P = Ge(), Pr = (() => {
467
+ const { performance: t } = h;
468
+ if (!t || !t.now)
469
+ return;
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;
471
+ return i || c ? s <= u ? t.timeOrigin : o : r;
472
+ })();
473
+ function Be() {
474
+ const t = typeof WeakSet == "function", e = t ? /* @__PURE__ */ new WeakSet() : [];
475
+ function n(s) {
476
+ if (t)
477
+ return e.has(s) ? !0 : (e.add(s), !1);
478
+ for (let i = 0; i < e.length; i++)
479
+ if (e[i] === s)
480
+ return !0;
481
+ return e.push(s), !1;
482
+ }
483
+ function r(s) {
484
+ if (t)
485
+ e.delete(s);
486
+ else
487
+ for (let i = 0; i < e.length; i++)
488
+ if (e[i] === s) {
489
+ e.splice(i, 1);
490
+ break;
491
+ }
492
+ }
493
+ return [n, r];
494
+ }
495
+ function _() {
496
+ const t = h, e = t.crypto || t.msCrypto;
497
+ let n = () => Math.random() * 16;
498
+ try {
499
+ if (e && e.randomUUID)
500
+ return e.randomUUID().replace(/-/g, "");
501
+ e && e.getRandomValues && (n = () => {
502
+ const r = new Uint8Array(1);
503
+ return e.getRandomValues(r), r[0];
504
+ });
505
+ } catch {
506
+ }
507
+ return ("10000000100040008000" + 1e11).replace(
508
+ /[018]/g,
509
+ (r) => (
510
+ // eslint-disable-next-line no-bitwise
511
+ (r ^ (n() & 15) >> r / 4).toString(16)
512
+ )
513
+ );
514
+ }
515
+ function Qt(t) {
516
+ return t.exception && t.exception.values ? t.exception.values[0] : void 0;
517
+ }
518
+ function Mr(t) {
519
+ const { message: e, event_id: n } = t;
520
+ if (e)
521
+ return e;
522
+ const r = Qt(t);
523
+ return r ? r.type && r.value ? `${r.type}: ${r.value}` : r.type || r.value || n || "<unknown>" : n || "<unknown>";
524
+ }
525
+ function Lr(t, e, n) {
526
+ const r = t.exception = t.exception || {}, s = r.values = r.values || [], i = s[0] = s[0] || {};
527
+ i.value || (i.value = e || ""), i.type || (i.type = n || "Error");
528
+ }
529
+ function He(t, e) {
530
+ const n = Qt(t);
531
+ if (!n)
532
+ return;
533
+ const r = { type: "generic", handled: !0 }, s = n.mechanism;
534
+ if (n.mechanism = { ...r, ...s, ...e }, e && "data" in e) {
535
+ const i = { ...s && s.data, ...e.data };
536
+ n.mechanism.data = i;
537
+ }
538
+ }
539
+ function Ur(t) {
540
+ if (t && t.__sentry_captured__)
541
+ return !0;
542
+ try {
543
+ D(t, "__sentry_captured__", !0);
544
+ } catch {
545
+ }
546
+ return !1;
547
+ }
548
+ function Ye(t) {
549
+ return Array.isArray(t) ? t : [t];
550
+ }
551
+ function R(t, e = 100, n = 1 / 0) {
552
+ try {
553
+ return rt("", t, e, n);
554
+ } catch (r) {
555
+ return { ERROR: `**non-serializable** (${r})` };
556
+ }
557
+ }
558
+ function Je(t, e = 3, n = 100 * 1024) {
559
+ const r = R(t, e);
560
+ return Ve(r) > n ? Je(t, e - 1, n) : r;
561
+ }
562
+ function rt(t, e, n = 1 / 0, r = 1 / 0, s = Be()) {
563
+ const [i, o] = s;
564
+ if (e == null || // this matches null and undefined -> eqeq not eqeqeq
565
+ ["number", "boolean", "string"].includes(typeof e) && !Number.isNaN(e))
566
+ return e;
567
+ const a = Ke(t, e);
568
+ if (!a.startsWith("[object "))
569
+ return a;
570
+ if (e.__sentry_skip_normalization__)
571
+ return e;
572
+ const u = typeof e.__sentry_override_normalization_depth__ == "number" ? e.__sentry_override_normalization_depth__ : n;
573
+ if (u === 0)
574
+ return a.replace("object ", "");
575
+ if (i(e))
576
+ return "[Circular ~]";
577
+ const c = e;
578
+ if (c && typeof c.toJSON == "function")
579
+ try {
580
+ const g = c.toJSON();
581
+ return rt("", g, u - 1, r, s);
582
+ } catch {
583
+ }
584
+ const f = Array.isArray(e) ? [] : {};
585
+ let d = 0;
586
+ const l = Vt(e);
587
+ for (const g in l) {
588
+ if (!Object.prototype.hasOwnProperty.call(l, g))
589
+ continue;
590
+ if (d >= r) {
591
+ f[g] = "[MaxProperties ~]";
592
+ break;
593
+ }
594
+ const $ = l[g];
595
+ f[g] = rt(g, $, u - 1, r, s), d++;
596
+ }
597
+ return o(e), f;
598
+ }
599
+ function Ke(t, e) {
600
+ try {
601
+ if (t === "domain" && e && typeof e == "object" && e._events)
602
+ return "[Domain]";
603
+ if (t === "domainEmitter")
604
+ return "[DomainEmitter]";
605
+ if (typeof global < "u" && e === global)
606
+ return "[Global]";
607
+ if (typeof window < "u" && e === window)
608
+ return "[Window]";
609
+ if (typeof document < "u" && e === document)
610
+ return "[Document]";
611
+ if (zt(e))
612
+ return "[VueViewModel]";
613
+ if (Ne(e))
614
+ return "[SyntheticEvent]";
615
+ if (typeof e == "number" && e !== e)
616
+ return "[NaN]";
617
+ if (typeof e == "function")
618
+ return `[Function: ${Fe(e)}]`;
619
+ if (typeof e == "symbol")
620
+ return `[${String(e)}]`;
621
+ if (typeof e == "bigint")
622
+ return `[BigInt: ${String(e)}]`;
623
+ const n = ze(e);
624
+ return /^HTML(\w*)Element$/.test(n) ? `[HTMLElement: ${n}]` : `[object ${n}]`;
625
+ } catch (n) {
626
+ return `**non-serializable** (${n})`;
627
+ }
628
+ }
629
+ function ze(t) {
630
+ const e = Object.getPrototypeOf(t);
631
+ return e ? e.constructor.name : "null prototype";
632
+ }
633
+ function qe(t) {
634
+ return ~-encodeURI(t).split(/%..|./).length;
635
+ }
636
+ function Ve(t) {
637
+ return qe(JSON.stringify(t));
638
+ }
639
+ var A;
640
+ (function(t) {
641
+ t[t.PENDING = 0] = "PENDING";
642
+ const n = 1;
643
+ t[t.RESOLVED = n] = "RESOLVED";
644
+ const r = 2;
645
+ t[t.REJECTED = r] = "REJECTED";
646
+ })(A || (A = {}));
647
+ function vr(t) {
648
+ return new T((e) => {
649
+ e(t);
650
+ });
651
+ }
652
+ function jr(t) {
653
+ return new T((e, n) => {
654
+ n(t);
655
+ });
656
+ }
657
+ class T {
658
+ constructor(e) {
659
+ T.prototype.__init.call(this), T.prototype.__init2.call(this), T.prototype.__init3.call(this), T.prototype.__init4.call(this), this._state = A.PENDING, this._handlers = [];
660
+ try {
661
+ e(this._resolve, this._reject);
662
+ } catch (n) {
663
+ this._reject(n);
664
+ }
665
+ }
666
+ /** JSDoc */
667
+ then(e, n) {
668
+ return new T((r, s) => {
669
+ this._handlers.push([
670
+ !1,
671
+ (i) => {
672
+ if (!e)
673
+ r(i);
674
+ else
675
+ try {
676
+ r(e(i));
677
+ } catch (o) {
678
+ s(o);
679
+ }
680
+ },
681
+ (i) => {
682
+ if (!n)
683
+ s(i);
684
+ else
685
+ try {
686
+ r(n(i));
687
+ } catch (o) {
688
+ s(o);
689
+ }
690
+ }
691
+ ]), this._executeHandlers();
692
+ });
693
+ }
694
+ /** JSDoc */
695
+ catch(e) {
696
+ return this.then((n) => n, e);
697
+ }
698
+ /** JSDoc */
699
+ finally(e) {
700
+ return new T((n, r) => {
701
+ let s, i;
702
+ return this.then(
703
+ (o) => {
704
+ i = !1, s = o, e && e();
705
+ },
706
+ (o) => {
707
+ i = !0, s = o, e && e();
708
+ }
709
+ ).then(() => {
710
+ if (i) {
711
+ r(s);
712
+ return;
713
+ }
714
+ n(s);
715
+ });
716
+ });
717
+ }
718
+ /** JSDoc */
719
+ __init() {
720
+ this._resolve = (e) => {
721
+ this._setResult(A.RESOLVED, e);
722
+ };
723
+ }
724
+ /** JSDoc */
725
+ __init2() {
726
+ this._reject = (e) => {
727
+ this._setResult(A.REJECTED, e);
728
+ };
729
+ }
730
+ /** JSDoc */
731
+ __init3() {
732
+ this._setResult = (e, n) => {
733
+ if (this._state === A.PENDING) {
734
+ if (lt(n)) {
735
+ n.then(this._resolve, this._reject);
736
+ return;
737
+ }
738
+ this._state = e, this._value = n, this._executeHandlers();
739
+ }
740
+ };
741
+ }
742
+ /** JSDoc */
743
+ __init4() {
744
+ this._executeHandlers = () => {
745
+ if (this._state === A.PENDING)
746
+ return;
747
+ const e = this._handlers.slice();
748
+ this._handlers = [], e.forEach((n) => {
749
+ n[0] || (this._state === A.RESOLVED && n[1](this._value), this._state === A.REJECTED && n[2](this._value), n[0] = !0);
750
+ });
751
+ };
752
+ }
753
+ }
754
+ const Fr = "baggage", Zt = "sentry-", We = /^sentry-/, Xe = 8192;
755
+ function te(t) {
756
+ const e = Qe(t);
757
+ if (!e)
758
+ return;
759
+ const n = Object.entries(e).reduce((r, [s, i]) => {
760
+ if (s.match(We)) {
761
+ const o = s.slice(Zt.length);
762
+ r[o] = i;
763
+ }
764
+ return r;
765
+ }, {});
766
+ if (Object.keys(n).length > 0)
767
+ return n;
768
+ }
769
+ function Gr(t) {
770
+ if (!t)
771
+ return;
772
+ const e = Object.entries(t).reduce(
773
+ (n, [r, s]) => (s && (n[`${Zt}${r}`] = s), n),
774
+ {}
775
+ );
776
+ return Ze(e);
777
+ }
778
+ function Qe(t) {
779
+ if (!(!t || !q(t) && !Array.isArray(t)))
780
+ return Array.isArray(t) ? t.reduce((e, n) => {
781
+ const r = $t(n);
782
+ return Object.entries(r).forEach(([s, i]) => {
783
+ e[s] = i;
784
+ }), e;
785
+ }, {}) : $t(t);
786
+ }
787
+ function $t(t) {
788
+ return t.split(",").map((e) => e.split("=").map((n) => decodeURIComponent(n.trim()))).reduce((e, [n, r]) => (n && r && (e[n] = r), e), {});
789
+ }
790
+ function Ze(t) {
791
+ if (Object.keys(t).length !== 0)
792
+ return Object.entries(t).reduce((e, [n, r], s) => {
793
+ const i = `${encodeURIComponent(n)}=${encodeURIComponent(r)}`, o = s === 0 ? i : `${e},${i}`;
794
+ return o.length > Xe ? (X && p.warn(
795
+ `Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`
796
+ ), e) : o;
797
+ }, "");
798
+ }
799
+ const tn = new RegExp(
800
+ "^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$"
801
+ // whitespace
802
+ );
803
+ function en(t) {
804
+ if (!t)
805
+ return;
806
+ const e = t.match(tn);
807
+ if (!e)
808
+ return;
809
+ let n;
810
+ return e[3] === "1" ? n = !0 : e[3] === "0" && (n = !1), {
811
+ traceId: e[1],
812
+ parentSampled: n,
813
+ parentSpanId: e[2]
814
+ };
815
+ }
816
+ function Br(t, e) {
817
+ const n = en(t), r = te(e), { traceId: s, parentSpanId: i, parentSampled: o } = n || {};
818
+ return n ? {
819
+ traceId: s || _(),
820
+ parentSpanId: i || _().substring(16),
821
+ spanId: _().substring(16),
822
+ sampled: o,
823
+ dsc: r || {}
824
+ // If we have traceparent data but no DSC it means we are not head of trace and we must freeze it
825
+ } : {
826
+ traceId: s || _(),
827
+ spanId: _().substring(16)
828
+ };
829
+ }
830
+ function nn(t = _(), e = _().substring(16), n) {
831
+ let r = "";
832
+ return n !== void 0 && (r = n ? "-1" : "-0"), `${t}-${e}${r}`;
833
+ }
834
+ function St(t, e = []) {
835
+ return [t, e];
836
+ }
837
+ function Hr(t, e) {
838
+ const [n, r] = t;
839
+ return [n, [...r, e]];
840
+ }
841
+ function Yr(t, e) {
842
+ const n = t[1];
843
+ for (const r of n) {
844
+ const s = r[0].type;
845
+ if (e(r, s))
846
+ return !0;
847
+ }
848
+ return !1;
849
+ }
850
+ function st(t) {
851
+ return h.__SENTRY__ && h.__SENTRY__.encodePolyfill ? h.__SENTRY__.encodePolyfill(t) : new TextEncoder().encode(t);
852
+ }
853
+ function Jr(t) {
854
+ const [e, n] = t;
855
+ let r = JSON.stringify(e);
856
+ function s(i) {
857
+ typeof r == "string" ? r = typeof i == "string" ? r + i : [st(r), i] : r.push(typeof i == "string" ? st(i) : i);
858
+ }
859
+ for (const i of n) {
860
+ const [o, a] = i;
861
+ if (s(`
862
+ ${JSON.stringify(o)}
863
+ `), typeof a == "string" || a instanceof Uint8Array)
864
+ s(a);
865
+ else {
866
+ let u;
867
+ try {
868
+ u = JSON.stringify(a);
869
+ } catch {
870
+ u = JSON.stringify(R(a));
871
+ }
872
+ s(u);
873
+ }
874
+ }
875
+ return typeof r == "string" ? r : rn(r);
876
+ }
877
+ function rn(t) {
878
+ const e = t.reduce((s, i) => s + i.length, 0), n = new Uint8Array(e);
879
+ let r = 0;
880
+ for (const s of t)
881
+ n.set(s, r), r += s.length;
882
+ return n;
883
+ }
884
+ function sn(t) {
885
+ return [{
886
+ type: "span"
887
+ }, t];
888
+ }
889
+ function Kr(t) {
890
+ const e = typeof t.data == "string" ? st(t.data) : t.data;
891
+ return [
892
+ m({
893
+ type: "attachment",
894
+ length: e.length,
895
+ filename: t.filename,
896
+ content_type: t.contentType,
897
+ attachment_type: t.attachmentType
898
+ }),
899
+ e
900
+ ];
901
+ }
902
+ const on = {
903
+ session: "session",
904
+ sessions: "session",
905
+ attachment: "attachment",
906
+ transaction: "transaction",
907
+ event: "error",
908
+ client_report: "internal",
909
+ user_report: "default",
910
+ profile: "profile",
911
+ profile_chunk: "profile",
912
+ replay_event: "replay",
913
+ replay_recording: "replay",
914
+ check_in: "monitor",
915
+ feedback: "feedback",
916
+ span: "span",
917
+ statsd: "metric_bucket"
918
+ };
919
+ function zr(t) {
920
+ return on[t];
921
+ }
922
+ function ee(t) {
923
+ if (!t || !t.sdk)
924
+ return;
925
+ const { name: e, version: n } = t.sdk;
926
+ return { name: e, version: n };
927
+ }
928
+ function an(t, e, n, r) {
929
+ const s = t.sdkProcessingMetadata && t.sdkProcessingMetadata.dynamicSamplingContext;
930
+ return {
931
+ event_id: t.event_id,
932
+ sent_at: (/* @__PURE__ */ new Date()).toISOString(),
933
+ ...e && { sdk: e },
934
+ ...!!n && r && { dsn: gt(r) },
935
+ ...s && {
936
+ trace: m({ ...s })
937
+ }
938
+ };
939
+ }
940
+ function wt() {
941
+ return {
942
+ traceId: _(),
943
+ spanId: _().substring(16)
944
+ };
945
+ }
946
+ const y = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__;
947
+ function U() {
948
+ return yt(h), h;
949
+ }
950
+ function yt(t) {
951
+ const e = t.__SENTRY__ = t.__SENTRY__ || {};
952
+ return e.version = e.version || B, e[B] = e[B] || {};
953
+ }
954
+ function cn(t) {
955
+ const e = P(), n = {
956
+ sid: _(),
957
+ init: !0,
958
+ timestamp: e,
959
+ started: e,
960
+ duration: 0,
961
+ status: "ok",
962
+ errors: 0,
963
+ ignoreDuration: !1,
964
+ toJSON: () => fn(n)
965
+ };
966
+ return t && Q(n, t), n;
967
+ }
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)
970
+ t.duration = void 0;
971
+ else if (typeof e.duration == "number")
972
+ t.duration = e.duration;
973
+ else {
974
+ const n = t.timestamp - t.started;
975
+ t.duration = n >= 0 ? n : 0;
976
+ }
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);
978
+ }
979
+ function un(t, e) {
980
+ let n = {};
981
+ e ? n = { status: e } : t.status === "ok" && (n = { status: "exited" }), Q(t, n);
982
+ }
983
+ function fn(t) {
984
+ return m({
985
+ sid: `${t.sid}`,
986
+ init: t.init,
987
+ // Make sure that sec is converted to ms for date constructor
988
+ started: new Date(t.started * 1e3).toISOString(),
989
+ timestamp: new Date(t.timestamp * 1e3).toISOString(),
990
+ status: t.status,
991
+ errors: t.errors,
992
+ did: typeof t.did == "number" || typeof t.did == "string" ? `${t.did}` : void 0,
993
+ duration: t.duration,
994
+ abnormal_mechanism: t.abnormal_mechanism,
995
+ attrs: {
996
+ release: t.release,
997
+ environment: t.environment,
998
+ ip_address: t.ipAddress,
999
+ user_agent: t.userAgent
1000
+ }
1001
+ });
1002
+ }
1003
+ const it = "_sentrySpan";
1004
+ function ot(t, e) {
1005
+ e ? D(t, it, e) : delete t[it];
1006
+ }
1007
+ function V(t) {
1008
+ return t[it];
1009
+ }
1010
+ const dn = 100;
1011
+ class Et {
1012
+ /** Flag if notifying is happening. */
1013
+ /** Callback for client to receive scope changes. */
1014
+ /** Callback list that will be called during event processing. */
1015
+ /** Array of breadcrumbs. */
1016
+ /** User */
1017
+ /** Tags */
1018
+ /** Extra */
1019
+ /** Contexts */
1020
+ /** Attachments */
1021
+ /** Propagation Context for distributed tracing */
1022
+ /**
1023
+ * A place to stash data which is needed at some point in the SDK's event processing pipeline but which shouldn't get
1024
+ * sent to Sentry
1025
+ */
1026
+ /** Fingerprint */
1027
+ /** Severity */
1028
+ /**
1029
+ * Transaction Name
1030
+ *
1031
+ * IMPORTANT: The transaction name on the scope has nothing to do with root spans/transaction objects.
1032
+ * It's purpose is to assign a transaction to the scope that's added to non-transaction events.
1033
+ */
1034
+ /** Session */
1035
+ /** Request Mode Session Status */
1036
+ /** The client on this scope */
1037
+ /** Contains the last event id of a captured event. */
1038
+ // NOTE: Any field which gets added here should get added not only to the constructor but also to the `clone` method.
1039
+ constructor() {
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();
1041
+ }
1042
+ /**
1043
+ * @inheritDoc
1044
+ */
1045
+ clone() {
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;
1048
+ }
1049
+ /**
1050
+ * @inheritDoc
1051
+ */
1052
+ setClient(e) {
1053
+ this._client = e;
1054
+ }
1055
+ /**
1056
+ * @inheritDoc
1057
+ */
1058
+ setLastEventId(e) {
1059
+ this._lastEventId = e;
1060
+ }
1061
+ /**
1062
+ * @inheritDoc
1063
+ */
1064
+ getClient() {
1065
+ return this._client;
1066
+ }
1067
+ /**
1068
+ * @inheritDoc
1069
+ */
1070
+ lastEventId() {
1071
+ return this._lastEventId;
1072
+ }
1073
+ /**
1074
+ * @inheritDoc
1075
+ */
1076
+ addScopeListener(e) {
1077
+ this._scopeListeners.push(e);
1078
+ }
1079
+ /**
1080
+ * @inheritDoc
1081
+ */
1082
+ addEventProcessor(e) {
1083
+ return this._eventProcessors.push(e), this;
1084
+ }
1085
+ /**
1086
+ * @inheritDoc
1087
+ */
1088
+ setUser(e) {
1089
+ return this._user = e || {
1090
+ email: void 0,
1091
+ id: void 0,
1092
+ ip_address: void 0,
1093
+ username: void 0
1094
+ }, this._session && Q(this._session, { user: e }), this._notifyScopeListeners(), this;
1095
+ }
1096
+ /**
1097
+ * @inheritDoc
1098
+ */
1099
+ getUser() {
1100
+ return this._user;
1101
+ }
1102
+ /**
1103
+ * @inheritDoc
1104
+ */
1105
+ getRequestSession() {
1106
+ return this._requestSession;
1107
+ }
1108
+ /**
1109
+ * @inheritDoc
1110
+ */
1111
+ setRequestSession(e) {
1112
+ return this._requestSession = e, this;
1113
+ }
1114
+ /**
1115
+ * @inheritDoc
1116
+ */
1117
+ setTags(e) {
1118
+ return this._tags = {
1119
+ ...this._tags,
1120
+ ...e
1121
+ }, this._notifyScopeListeners(), this;
1122
+ }
1123
+ /**
1124
+ * @inheritDoc
1125
+ */
1126
+ setTag(e, n) {
1127
+ return this._tags = { ...this._tags, [e]: n }, this._notifyScopeListeners(), this;
1128
+ }
1129
+ /**
1130
+ * @inheritDoc
1131
+ */
1132
+ setExtras(e) {
1133
+ return this._extra = {
1134
+ ...this._extra,
1135
+ ...e
1136
+ }, this._notifyScopeListeners(), this;
1137
+ }
1138
+ /**
1139
+ * @inheritDoc
1140
+ */
1141
+ setExtra(e, n) {
1142
+ return this._extra = { ...this._extra, [e]: n }, this._notifyScopeListeners(), this;
1143
+ }
1144
+ /**
1145
+ * @inheritDoc
1146
+ */
1147
+ setFingerprint(e) {
1148
+ return this._fingerprint = e, this._notifyScopeListeners(), this;
1149
+ }
1150
+ /**
1151
+ * @inheritDoc
1152
+ */
1153
+ setLevel(e) {
1154
+ return this._level = e, this._notifyScopeListeners(), this;
1155
+ }
1156
+ /**
1157
+ * @inheritDoc
1158
+ */
1159
+ setTransactionName(e) {
1160
+ return this._transactionName = e, this._notifyScopeListeners(), this;
1161
+ }
1162
+ /**
1163
+ * @inheritDoc
1164
+ */
1165
+ setContext(e, n) {
1166
+ return n === null ? delete this._contexts[e] : this._contexts[e] = n, this._notifyScopeListeners(), this;
1167
+ }
1168
+ /**
1169
+ * @inheritDoc
1170
+ */
1171
+ setSession(e) {
1172
+ return e ? this._session = e : delete this._session, this._notifyScopeListeners(), this;
1173
+ }
1174
+ /**
1175
+ * @inheritDoc
1176
+ */
1177
+ getSession() {
1178
+ return this._session;
1179
+ }
1180
+ /**
1181
+ * @inheritDoc
1182
+ */
1183
+ update(e) {
1184
+ if (!e)
1185
+ return this;
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 || {};
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;
1188
+ }
1189
+ /**
1190
+ * @inheritDoc
1191
+ */
1192
+ clear() {
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;
1194
+ }
1195
+ /**
1196
+ * @inheritDoc
1197
+ */
1198
+ addBreadcrumb(e, n) {
1199
+ const r = typeof n == "number" ? n : dn;
1200
+ if (r <= 0)
1201
+ return this;
1202
+ const s = {
1203
+ timestamp: mt(),
1204
+ ...e
1205
+ }, i = this._breadcrumbs;
1206
+ return i.push(s), this._breadcrumbs = i.length > r ? i.slice(-r) : i, this._notifyScopeListeners(), this;
1207
+ }
1208
+ /**
1209
+ * @inheritDoc
1210
+ */
1211
+ getLastBreadcrumb() {
1212
+ return this._breadcrumbs[this._breadcrumbs.length - 1];
1213
+ }
1214
+ /**
1215
+ * @inheritDoc
1216
+ */
1217
+ clearBreadcrumbs() {
1218
+ return this._breadcrumbs = [], this._notifyScopeListeners(), this;
1219
+ }
1220
+ /**
1221
+ * @inheritDoc
1222
+ */
1223
+ addAttachment(e) {
1224
+ return this._attachments.push(e), this;
1225
+ }
1226
+ /**
1227
+ * @inheritDoc
1228
+ */
1229
+ clearAttachments() {
1230
+ return this._attachments = [], this;
1231
+ }
1232
+ /** @inheritDoc */
1233
+ getScopeData() {
1234
+ return {
1235
+ breadcrumbs: this._breadcrumbs,
1236
+ attachments: this._attachments,
1237
+ contexts: this._contexts,
1238
+ tags: this._tags,
1239
+ extra: this._extra,
1240
+ user: this._user,
1241
+ level: this._level,
1242
+ fingerprint: this._fingerprint || [],
1243
+ eventProcessors: this._eventProcessors,
1244
+ propagationContext: this._propagationContext,
1245
+ sdkProcessingMetadata: this._sdkProcessingMetadata,
1246
+ transactionName: this._transactionName,
1247
+ span: V(this)
1248
+ };
1249
+ }
1250
+ /**
1251
+ * @inheritDoc
1252
+ */
1253
+ setSDKProcessingMetadata(e) {
1254
+ return this._sdkProcessingMetadata = { ...this._sdkProcessingMetadata, ...e }, this;
1255
+ }
1256
+ /**
1257
+ * @inheritDoc
1258
+ */
1259
+ setPropagationContext(e) {
1260
+ return this._propagationContext = e, this;
1261
+ }
1262
+ /**
1263
+ * @inheritDoc
1264
+ */
1265
+ getPropagationContext() {
1266
+ return this._propagationContext;
1267
+ }
1268
+ /**
1269
+ * @inheritDoc
1270
+ */
1271
+ captureException(e, n) {
1272
+ const r = n && n.event_id ? n.event_id : _();
1273
+ if (!this._client)
1274
+ return p.warn("No client configured on scope - will not capture exception!"), r;
1275
+ const s = new Error("Sentry syntheticException");
1276
+ return this._client.captureException(
1277
+ e,
1278
+ {
1279
+ originalException: e,
1280
+ syntheticException: s,
1281
+ ...n,
1282
+ event_id: r
1283
+ },
1284
+ this
1285
+ ), r;
1286
+ }
1287
+ /**
1288
+ * @inheritDoc
1289
+ */
1290
+ captureMessage(e, n, r) {
1291
+ const s = r && r.event_id ? r.event_id : _();
1292
+ if (!this._client)
1293
+ return p.warn("No client configured on scope - will not capture message!"), s;
1294
+ const i = new Error(e);
1295
+ return this._client.captureMessage(
1296
+ e,
1297
+ n,
1298
+ {
1299
+ originalException: e,
1300
+ syntheticException: i,
1301
+ ...r,
1302
+ event_id: s
1303
+ },
1304
+ this
1305
+ ), s;
1306
+ }
1307
+ /**
1308
+ * @inheritDoc
1309
+ */
1310
+ captureEvent(e, n) {
1311
+ const r = n && n.event_id ? n.event_id : _();
1312
+ return this._client ? (this._client.captureEvent(e, { ...n, event_id: r }, this), r) : (p.warn("No client configured on scope - will not capture event!"), r);
1313
+ }
1314
+ /**
1315
+ * This will be called on every set call.
1316
+ */
1317
+ _notifyScopeListeners() {
1318
+ this._notifyingListeners || (this._notifyingListeners = !0, this._scopeListeners.forEach((e) => {
1319
+ e(this);
1320
+ }), this._notifyingListeners = !1);
1321
+ }
1322
+ }
1323
+ const C = Et;
1324
+ function pn() {
1325
+ return _t("defaultCurrentScope", () => new C());
1326
+ }
1327
+ function ln() {
1328
+ return _t("defaultIsolationScope", () => new C());
1329
+ }
1330
+ class _n {
1331
+ constructor(e, n) {
1332
+ let r;
1333
+ e ? r = e : r = new C();
1334
+ let s;
1335
+ n ? s = n : s = new C(), this._stack = [{ scope: r }], this._isolationScope = s;
1336
+ }
1337
+ /**
1338
+ * Fork a scope for the stack.
1339
+ */
1340
+ withScope(e) {
1341
+ const n = this._pushScope();
1342
+ let r;
1343
+ try {
1344
+ r = e(n);
1345
+ } catch (s) {
1346
+ throw this._popScope(), s;
1347
+ }
1348
+ return lt(r) ? r.then(
1349
+ (s) => (this._popScope(), s),
1350
+ (s) => {
1351
+ throw this._popScope(), s;
1352
+ }
1353
+ ) : (this._popScope(), r);
1354
+ }
1355
+ /**
1356
+ * Get the client of the stack.
1357
+ */
1358
+ getClient() {
1359
+ return this.getStackTop().client;
1360
+ }
1361
+ /**
1362
+ * Returns the scope of the top stack.
1363
+ */
1364
+ getScope() {
1365
+ return this.getStackTop().scope;
1366
+ }
1367
+ /**
1368
+ * Get the isolation scope for the stack.
1369
+ */
1370
+ getIsolationScope() {
1371
+ return this._isolationScope;
1372
+ }
1373
+ /**
1374
+ * Returns the topmost scope layer in the order domain > local > process.
1375
+ */
1376
+ getStackTop() {
1377
+ return this._stack[this._stack.length - 1];
1378
+ }
1379
+ /**
1380
+ * Push a scope to the stack.
1381
+ */
1382
+ _pushScope() {
1383
+ const e = this.getScope().clone();
1384
+ return this._stack.push({
1385
+ client: this.getClient(),
1386
+ scope: e
1387
+ }), e;
1388
+ }
1389
+ /**
1390
+ * Pop a scope from the stack.
1391
+ */
1392
+ _popScope() {
1393
+ return this._stack.length <= 1 ? !1 : !!this._stack.pop();
1394
+ }
1395
+ }
1396
+ function M() {
1397
+ const t = U(), e = yt(t);
1398
+ return e.stack = e.stack || new _n(pn(), ln());
1399
+ }
1400
+ function hn(t) {
1401
+ return M().withScope(t);
1402
+ }
1403
+ function gn(t, e) {
1404
+ const n = M();
1405
+ return n.withScope(() => (n.getStackTop().scope = t, e(t)));
1406
+ }
1407
+ function xt(t) {
1408
+ return M().withScope(() => t(M().getIsolationScope()));
1409
+ }
1410
+ function mn() {
1411
+ return {
1412
+ withIsolationScope: xt,
1413
+ withScope: hn,
1414
+ withSetScope: gn,
1415
+ withSetIsolationScope: (t, e) => xt(e),
1416
+ getCurrentScope: () => M().getScope(),
1417
+ getIsolationScope: () => M().getIsolationScope()
1418
+ };
1419
+ }
1420
+ function J(t) {
1421
+ const e = yt(t);
1422
+ return e.acs ? e.acs : mn();
1423
+ }
1424
+ function I() {
1425
+ const t = U();
1426
+ return J(t).getCurrentScope();
1427
+ }
1428
+ function v() {
1429
+ const t = U();
1430
+ return J(t).getIsolationScope();
1431
+ }
1432
+ function Sn() {
1433
+ return _t("globalScope", () => new C());
1434
+ }
1435
+ function ne(...t) {
1436
+ const e = U(), n = J(e);
1437
+ if (t.length === 2) {
1438
+ const [r, s] = t;
1439
+ return r ? n.withSetScope(r, s) : n.withScope(s);
1440
+ }
1441
+ return n.withScope(t[0]);
1442
+ }
1443
+ function N() {
1444
+ return I().getClient();
1445
+ }
1446
+ const yn = "_sentryMetrics";
1447
+ function at(t) {
1448
+ const e = t[yn];
1449
+ if (!e)
1450
+ return;
1451
+ const n = {};
1452
+ for (const [, [r, s]] of e)
1453
+ (n[r] || (n[r] = [])).push(m(s));
1454
+ return n;
1455
+ }
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) {
1458
+ if (t < 400 && t >= 100)
1459
+ return { code: oe };
1460
+ if (t >= 400 && t < 500)
1461
+ switch (t) {
1462
+ case 401:
1463
+ return { code: S, message: "unauthenticated" };
1464
+ case 403:
1465
+ return { code: S, message: "permission_denied" };
1466
+ case 404:
1467
+ return { code: S, message: "not_found" };
1468
+ case 409:
1469
+ return { code: S, message: "already_exists" };
1470
+ case 413:
1471
+ return { code: S, message: "failed_precondition" };
1472
+ case 429:
1473
+ return { code: S, message: "resource_exhausted" };
1474
+ case 499:
1475
+ return { code: S, message: "cancelled" };
1476
+ default:
1477
+ return { code: S, message: "invalid_argument" };
1478
+ }
1479
+ if (t >= 500 && t < 600)
1480
+ switch (t) {
1481
+ case 501:
1482
+ return { code: S, message: "unimplemented" };
1483
+ case 503:
1484
+ return { code: S, message: "unavailable" };
1485
+ case 504:
1486
+ return { code: S, message: "deadline_exceeded" };
1487
+ default:
1488
+ return { code: S, message: "internal_error" };
1489
+ }
1490
+ return { code: S, message: "unknown_error" };
1491
+ }
1492
+ function Vr(t, e) {
1493
+ t.setAttribute("http.response.status_code", e);
1494
+ const n = In(e);
1495
+ n.message !== "unknown_error" && t.setStatus(n);
1496
+ }
1497
+ const ae = 0, ce = 1;
1498
+ function Nn(t) {
1499
+ const { spanId: e, traceId: n } = t.spanContext(), { data: r, op: s, parent_span_id: i, status: o, origin: a } = E(t);
1500
+ return m({
1501
+ parent_span_id: i,
1502
+ span_id: e,
1503
+ trace_id: n,
1504
+ data: r,
1505
+ op: s,
1506
+ status: o,
1507
+ origin: a
1508
+ });
1509
+ }
1510
+ function An(t) {
1511
+ const { spanId: e, traceId: n } = t.spanContext(), { parent_span_id: r } = E(t);
1512
+ return m({ parent_span_id: r, span_id: e, trace_id: n });
1513
+ }
1514
+ function Wr(t) {
1515
+ const { traceId: e, spanId: n } = t.spanContext(), r = j(t);
1516
+ return nn(e, n, r);
1517
+ }
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();
1520
+ }
1521
+ function Pt(t) {
1522
+ return t > 9999999999 ? t / 1e3 : t;
1523
+ }
1524
+ function E(t) {
1525
+ if (Rn(t))
1526
+ return t.getSpanJSON();
1527
+ try {
1528
+ const { spanId: e, traceId: n } = t.spanContext();
1529
+ if (On(t)) {
1530
+ const { attributes: r, startTime: s, name: i, endTime: o, parentSpanId: a, status: u } = t;
1531
+ return m({
1532
+ span_id: e,
1533
+ trace_id: n,
1534
+ data: r,
1535
+ description: i,
1536
+ parent_span_id: a,
1537
+ start_timestamp: x(s),
1538
+ // This is [0,0] by default in OTEL, in which case we want to interpret this as no end time
1539
+ timestamp: x(o) || void 0,
1540
+ status: ue(u),
1541
+ op: r[ct],
1542
+ origin: r[Y],
1543
+ _metrics_summary: at(t)
1544
+ });
1545
+ }
1546
+ return {
1547
+ span_id: e,
1548
+ trace_id: n
1549
+ };
1550
+ } catch {
1551
+ return {};
1552
+ }
1553
+ }
1554
+ function On(t) {
1555
+ const e = t;
1556
+ return !!e.attributes && !!e.startTime && !!e.name && !!e.endTime && !!e.status;
1557
+ }
1558
+ function Rn(t) {
1559
+ return typeof t.getSpanJSON == "function";
1560
+ }
1561
+ function j(t) {
1562
+ const { traceFlags: e } = t.spanContext();
1563
+ return e === ce;
1564
+ }
1565
+ function ue(t) {
1566
+ if (!(!t || t.code === Tn))
1567
+ return t.code === oe ? "ok" : t.message || "unknown_error";
1568
+ }
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]));
1573
+ }
1574
+ function Xr(t, e) {
1575
+ t[k] && t[k].delete(e);
1576
+ }
1577
+ function Dn(t) {
1578
+ const e = /* @__PURE__ */ new Set();
1579
+ function n(r) {
1580
+ if (!e.has(r) && j(r)) {
1581
+ e.add(r);
1582
+ const s = r[k] ? Array.from(r[k]) : [];
1583
+ for (const i of s)
1584
+ n(i);
1585
+ }
1586
+ }
1587
+ return n(t), Array.from(e);
1588
+ }
1589
+ function O(t) {
1590
+ return t[ut] || t;
1591
+ }
1592
+ function ft() {
1593
+ const t = U(), e = J(t);
1594
+ return e.getActiveSpan ? e.getActiveSpan() : V(I());
1595
+ }
1596
+ const de = "_sentryScope", pe = "_sentryIsolationScope";
1597
+ function Cn(t, e, n) {
1598
+ t && (D(t, pe, n), D(t, de, e));
1599
+ }
1600
+ function Mt(t) {
1601
+ return {
1602
+ scope: t[de],
1603
+ isolationScope: t[pe]
1604
+ };
1605
+ }
1606
+ function le(t) {
1607
+ if (typeof __SENTRY_TRACING__ == "boolean" && !__SENTRY_TRACING__)
1608
+ return !1;
1609
+ const e = t || kn();
1610
+ return !!e && (e.enableTracing || "tracesSampleRate" in e || "tracesSampler" in e);
1611
+ }
1612
+ function kn() {
1613
+ const t = N();
1614
+ return t && t.getOptions();
1615
+ }
1616
+ class Tt {
1617
+ constructor(e = {}) {
1618
+ this._traceId = e.traceId || _(), this._spanId = e.spanId || _().substring(16);
1619
+ }
1620
+ /** @inheritdoc */
1621
+ spanContext() {
1622
+ return {
1623
+ spanId: this._spanId,
1624
+ traceId: this._traceId,
1625
+ traceFlags: ae
1626
+ };
1627
+ }
1628
+ /** @inheritdoc */
1629
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
1630
+ end(e) {
1631
+ }
1632
+ /** @inheritdoc */
1633
+ setAttribute(e, n) {
1634
+ return this;
1635
+ }
1636
+ /** @inheritdoc */
1637
+ setAttributes(e) {
1638
+ return this;
1639
+ }
1640
+ /** @inheritdoc */
1641
+ setStatus(e) {
1642
+ return this;
1643
+ }
1644
+ /** @inheritdoc */
1645
+ updateName(e) {
1646
+ return this;
1647
+ }
1648
+ /** @inheritdoc */
1649
+ isRecording() {
1650
+ return !1;
1651
+ }
1652
+ /** @inheritdoc */
1653
+ addEvent(e, n, r) {
1654
+ return this;
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
+ }
1685
+ }
1686
+ const It = "production", _e = "_frozenDsc";
1687
+ function Lt(t, e) {
1688
+ D(t, _e, e);
1689
+ }
1690
+ function $n(t, e) {
1691
+ const n = e.getOptions(), { publicKey: r } = e.getDsn() || {}, s = m({
1692
+ environment: n.environment || It,
1693
+ release: n.release,
1694
+ public_key: r,
1695
+ trace_id: t
1696
+ });
1697
+ return e.emit("createDsc", s), s;
1698
+ }
1699
+ function Z(t) {
1700
+ const e = N();
1701
+ if (!e)
1702
+ return {};
1703
+ const n = $n(E(t).trace_id || "", e), r = O(t), s = r[_e];
1704
+ if (s)
1705
+ return s;
1706
+ const i = r.spanContext().traceState, o = i && i.get("sentry.dsc"), a = o && te(o);
1707
+ if (a)
1708
+ return a;
1709
+ const u = E(r), c = u.data || {}, f = c[re];
1710
+ f != null && (n.sample_rate = `${f}`);
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;
1713
+ }
1714
+ function wn(t) {
1715
+ if (!y) return;
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}`];
1717
+ if (r && c.push(`parent ID: ${r}`), !a) {
1718
+ const { op: f, description: d } = E(o);
1719
+ c.push(`root ID: ${o.spanContext().spanId}`), f && c.push(`root op: ${f}`), d && c.push(`root description: ${d}`);
1720
+ }
1721
+ p.log(`${u}
1722
+ ${c.join(`
1723
+ `)}`);
1724
+ }
1725
+ function xn(t) {
1726
+ if (!y) return;
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}`;
1728
+ p.log(o);
1729
+ }
1730
+ function Pn(t) {
1731
+ if (typeof t == "boolean")
1732
+ return Number(t);
1733
+ const e = typeof t == "string" ? parseFloat(t) : t;
1734
+ if (typeof e != "number" || isNaN(e) || e < 0 || e > 1) {
1735
+ y && p.warn(
1736
+ `[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(
1737
+ t
1738
+ )} of type ${JSON.stringify(typeof t)}.`
1739
+ );
1740
+ return;
1741
+ }
1742
+ return e;
1743
+ }
1744
+ function Mn(t, e) {
1745
+ if (!le(t))
1746
+ return [!1];
1747
+ let n;
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;
1749
+ const r = Pn(n);
1750
+ return r === void 0 ? (y && p.warn("[Tracing] Discarding transaction because of invalid sample rate."), [!1]) : r ? Math.random() < r ? [!0, r] : (y && p.log(
1751
+ `[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(
1752
+ n
1753
+ )})`
1754
+ ), [!1, r]) : (y && p.log(
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"}`
1756
+ ), [!1, r]);
1757
+ }
1758
+ function Ln(t, e) {
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;
1760
+ }
1761
+ function Qr(t, e, n, r) {
1762
+ const s = ee(n), i = {
1763
+ sent_at: (/* @__PURE__ */ new Date()).toISOString(),
1764
+ ...s && { sdk: s },
1765
+ ...!!r && e && { dsn: gt(e) }
1766
+ }, o = "aggregates" in t ? [{ type: "sessions" }, t] : [{ type: "session" }, t.toJSON()];
1767
+ return St(i, [o]);
1768
+ }
1769
+ function Zr(t, e, n, r) {
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]]);
1774
+ }
1775
+ function Un(t, e) {
1776
+ function n(f) {
1777
+ return !!f.trace_id && !!f.public_key;
1778
+ }
1779
+ const r = Z(t[0]), s = e && e.getDsn(), i = e && e.getOptions().tunnel, o = {
1780
+ sent_at: (/* @__PURE__ */ new Date()).toISOString(),
1781
+ ...n(r) && { trace: r },
1782
+ ...!!i && s && { dsn: gt(s) }
1783
+ }, a = e && e.getOptions().beforeSendSpan, u = a ? (f) => a(E(f)) : (f) => E(f), c = [];
1784
+ for (const f of t) {
1785
+ const d = u(f);
1786
+ d && c.push(sn(d));
1787
+ }
1788
+ return St(o, c);
1789
+ }
1790
+ function ts(t, e, n) {
1791
+ const r = ft(), s = r && O(r);
1792
+ s && s.addEvent(t, {
1793
+ [ie]: e,
1794
+ [se]: n
1795
+ });
1796
+ }
1797
+ function Ut(t) {
1798
+ if (!t || t.length === 0)
1799
+ return;
1800
+ const e = {};
1801
+ return t.forEach((n) => {
1802
+ const r = n.attributes || {}, s = r[se], i = r[ie];
1803
+ typeof s == "string" && typeof i == "number" && (e[n.name] = { value: i, unit: s });
1804
+ }), e;
1805
+ }
1806
+ const vt = 1e3;
1807
+ class Nt {
1808
+ /** Epoch timestamp in seconds when the span started. */
1809
+ /** Epoch timestamp in seconds when the span ended. */
1810
+ /** Internal keeper of the status */
1811
+ /** The timed events added to this span. */
1812
+ /** if true, treat span as a standalone span (not part of a transaction) */
1813
+ /**
1814
+ * You should never call the constructor manually, always use `Sentry.startSpan()`
1815
+ * or other span methods.
1816
+ * @internal
1817
+ * @hideconstructor
1818
+ * @hidden
1819
+ */
1820
+ constructor(e = {}) {
1821
+ this._traceId = e.traceId || _(), this._spanId = e.spanId || _().substring(16), this._startTime = e.startTimestamp || P(), this._attributes = {}, this.setAttributes({
1822
+ [Y]: "manual",
1823
+ [ct]: e.op,
1824
+ ...e.attributes
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();
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
+ }
1856
+ /** @inheritdoc */
1857
+ spanContext() {
1858
+ const { _spanId: e, _traceId: n, _sampled: r } = this;
1859
+ return {
1860
+ spanId: e,
1861
+ traceId: n,
1862
+ traceFlags: r ? ce : ae
1863
+ };
1864
+ }
1865
+ /** @inheritdoc */
1866
+ setAttribute(e, n) {
1867
+ return n === void 0 ? delete this._attributes[e] : this._attributes[e] = n, this;
1868
+ }
1869
+ /** @inheritdoc */
1870
+ setAttributes(e) {
1871
+ return Object.keys(e).forEach((n) => this.setAttribute(n, e[n])), this;
1872
+ }
1873
+ /**
1874
+ * This should generally not be used,
1875
+ * but we need it for browser tracing where we want to adjust the start time afterwards.
1876
+ * USE THIS WITH CAUTION!
1877
+ *
1878
+ * @hidden
1879
+ * @internal
1880
+ */
1881
+ updateStartTime(e) {
1882
+ this._startTime = x(e);
1883
+ }
1884
+ /**
1885
+ * @inheritDoc
1886
+ */
1887
+ setStatus(e) {
1888
+ return this._status = e, this;
1889
+ }
1890
+ /**
1891
+ * @inheritDoc
1892
+ */
1893
+ updateName(e) {
1894
+ return this._name = e, this;
1895
+ }
1896
+ /** @inheritdoc */
1897
+ end(e) {
1898
+ this._endTime || (this._endTime = x(e), xn(this), this._onSpanEnded());
1899
+ }
1900
+ /**
1901
+ * Get JSON representation of this span.
1902
+ *
1903
+ * @hidden
1904
+ * @internal This method is purely for internal purposes and should not be used outside
1905
+ * of SDK code. If you need to get a JSON representation of a span,
1906
+ * use `spanToJSON(span)` instead.
1907
+ */
1908
+ getSpanJSON() {
1909
+ return m({
1910
+ data: this._attributes,
1911
+ description: this._name,
1912
+ op: this._attributes[ct],
1913
+ parent_span_id: this._parentSpanId,
1914
+ span_id: this._spanId,
1915
+ start_timestamp: this._startTime,
1916
+ status: ue(this._status),
1917
+ timestamp: this._endTime,
1918
+ trace_id: this._traceId,
1919
+ origin: this._attributes[Y],
1920
+ _metrics_summary: at(this),
1921
+ profile_id: this._attributes[En],
1922
+ exclusive_time: this._attributes[bn],
1923
+ measurements: Ut(this._events),
1924
+ is_segment: this._isStandaloneSpan && O(this) === this || void 0,
1925
+ segment_id: this._isStandaloneSpan ? O(this).spanContext().spanId : void 0
1926
+ });
1927
+ }
1928
+ /** @inheritdoc */
1929
+ isRecording() {
1930
+ return !this._endTime && !!this._sampled;
1931
+ }
1932
+ /**
1933
+ * @inheritdoc
1934
+ */
1935
+ addEvent(e, n, r) {
1936
+ y && p.log("[Tracing] Adding an event to span:", e);
1937
+ const s = jt(n) ? n : r || P(), i = jt(n) ? {} : n || {}, o = {
1938
+ name: e,
1939
+ time: x(s),
1940
+ attributes: i
1941
+ };
1942
+ return this._events.push(o), this;
1943
+ }
1944
+ /**
1945
+ * This method should generally not be used,
1946
+ * but for now we need a way to publicly check if the `_isStandaloneSpan` flag is set.
1947
+ * USE THIS WITH CAUTION!
1948
+ * @internal
1949
+ * @hidden
1950
+ * @experimental
1951
+ */
1952
+ isStandaloneSpan() {
1953
+ return !!this._isStandaloneSpan;
1954
+ }
1955
+ /** Emit `spanEnd` when the span is ended. */
1956
+ _onSpanEnded() {
1957
+ const e = N();
1958
+ if (e && e.emit("spanEnd", this), !(this._isStandaloneSpan || this === O(this)))
1959
+ return;
1960
+ if (this._isStandaloneSpan) {
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"));
1962
+ return;
1963
+ }
1964
+ const r = this._convertSpanToTransaction();
1965
+ r && (Mt(this).scope || I()).captureEvent(r);
1966
+ }
1967
+ /**
1968
+ * Finish the transaction & prepare the event to send to Sentry.
1969
+ */
1970
+ _convertSpanToTransaction() {
1971
+ if (!Ft(E(this)))
1972
+ return;
1973
+ this._name || (y && p.warn("Transaction has no name, falling back to `<unlabeled transaction>`."), this._name = "<unlabeled transaction>");
1974
+ const { scope: e, isolationScope: n } = Mt(this), s = (e || I()).getClient() || N();
1975
+ if (this._sampled !== !0) {
1976
+ y && p.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."), s && s.recordDroppedEvent("sample_rate", "transaction");
1977
+ return;
1978
+ }
1979
+ const o = Dn(this).filter((d) => d !== this && !vn(d)).map((d) => E(d)).filter(Ft), a = this._attributes[bt], u = {
1980
+ contexts: {
1981
+ trace: Nn(this)
1982
+ },
1983
+ spans: (
1984
+ // spans.sort() mutates the array, but `spans` is already a copy so we can safely do this here
1985
+ // we do not use spans anymore after this point
1986
+ o.length > vt ? o.sort((d, l) => d.start_timestamp - l.start_timestamp).slice(0, vt) : o
1987
+ ),
1988
+ start_timestamp: this._startTime,
1989
+ timestamp: this._endTime,
1990
+ transaction: this._name,
1991
+ type: "transaction",
1992
+ sdkProcessingMetadata: {
1993
+ capturedSpanScope: e,
1994
+ capturedSpanIsolationScope: n,
1995
+ ...m({
1996
+ dynamicSamplingContext: Z(this)
1997
+ })
1998
+ },
1999
+ _metrics_summary: at(this),
2000
+ ...a && {
2001
+ transaction_info: {
2002
+ source: a
2003
+ }
2004
+ }
2005
+ }, c = Ut(this._events);
2006
+ return c && Object.keys(c).length && (y && p.log(
2007
+ "[Measurements] Adding measurements to transaction event",
2008
+ JSON.stringify(c, void 0, 2)
2009
+ ), u.measurements = c), u;
2010
+ }
2011
+ }
2012
+ function jt(t) {
2013
+ return t && typeof t == "number" || t instanceof Date || Array.isArray(t);
2014
+ }
2015
+ function Ft(t) {
2016
+ return !!t.start_timestamp && !!t.timestamp && !!t.span_id && !!t.trace_id;
2017
+ }
2018
+ function vn(t) {
2019
+ return t instanceof Nt && t.isStandaloneSpan();
2020
+ }
2021
+ function jn(t) {
2022
+ const e = N();
2023
+ if (!e)
2024
+ return;
2025
+ const n = t[1];
2026
+ if (!n || n.length === 0) {
2027
+ e.recordDroppedEvent("before_send", "span");
2028
+ return;
2029
+ }
2030
+ const r = e.getTransport();
2031
+ r && r.send(t).then(null, (s) => {
2032
+ y && p.error("Error while sending span:", s);
2033
+ });
2034
+ }
2035
+ const he = "__SENTRY_SUPPRESS_TRACING__";
2036
+ function Gt(t) {
2037
+ const e = ge();
2038
+ if (e.startInactiveSpan)
2039
+ return e.startInactiveSpan(t);
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({
2044
+ parentSpan: a,
2045
+ spanArguments: n,
2046
+ forceTransaction: r,
2047
+ scope: o
2048
+ });
2049
+ });
2050
+ }
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)));
2054
+ }
2055
+ function Gn({
2056
+ parentSpan: t,
2057
+ spanArguments: e,
2058
+ forceTransaction: n,
2059
+ scope: r
2060
+ }) {
2061
+ if (!le())
2062
+ return new Tt();
2063
+ const s = v();
2064
+ let i;
2065
+ if (t && !n)
2066
+ i = Hn(t, r, e), fe(t, i);
2067
+ else if (t) {
2068
+ const o = Z(t), { traceId: a, spanId: u } = t.spanContext(), c = j(t);
2069
+ i = Bt(
2070
+ {
2071
+ traceId: a,
2072
+ parentSpanId: u,
2073
+ ...e
2074
+ },
2075
+ r,
2076
+ c
2077
+ ), Lt(i, o);
2078
+ } else {
2079
+ const {
2080
+ traceId: o,
2081
+ dsc: a,
2082
+ parentSpanId: u,
2083
+ sampled: c
2084
+ } = {
2085
+ ...s.getPropagationContext(),
2086
+ ...r.getPropagationContext()
2087
+ };
2088
+ i = Bt(
2089
+ {
2090
+ traceId: o,
2091
+ parentSpanId: u,
2092
+ ...e
2093
+ },
2094
+ r,
2095
+ c
2096
+ ), a && Lt(i, a);
2097
+ }
2098
+ return wn(i), Cn(i, r, s), i;
2099
+ }
2100
+ function Bn(t) {
2101
+ const n = {
2102
+ isStandalone: (t.experimental || {}).standalone,
2103
+ ...t
2104
+ };
2105
+ if (t.startTime) {
2106
+ const r = { ...n };
2107
+ return r.startTimestamp = x(t.startTime), delete r.startTime, r;
2108
+ }
2109
+ return n;
2110
+ }
2111
+ function ge() {
2112
+ const t = U();
2113
+ return J(t);
2114
+ }
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, {
2117
+ name: i,
2118
+ parentSampled: n,
2119
+ attributes: o,
2120
+ transactionContext: {
2121
+ name: i,
2122
+ parentSampled: n
2123
+ }
2124
+ }), c = new Nt({
2125
+ ...t,
2126
+ attributes: {
2127
+ [bt]: "custom",
2128
+ ...t.attributes
2129
+ },
2130
+ sampled: a
2131
+ });
2132
+ return u !== void 0 && c.setAttribute(re, u), r && r.emit("spanStart", c), c;
2133
+ }
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({
2136
+ ...n,
2137
+ parentSpanId: r,
2138
+ traceId: s,
2139
+ sampled: i
2140
+ }) : new Tt({ traceId: s });
2141
+ fe(t, o);
2142
+ const a = N();
2143
+ return a && (a.emit("spanStart", o), n.endTimestamp && a.emit("spanEnd", o)), o;
2144
+ }
2145
+ function Yn(t) {
2146
+ const e = V(t);
2147
+ if (!e)
2148
+ return;
2149
+ const n = N();
2150
+ return (n ? n.getOptions() : {}).parentSpanIsAlwaysRootSpan ? O(e) : e;
2151
+ }
2152
+ function dt(t, e, n, r = 0) {
2153
+ return new T((s, i) => {
2154
+ const o = t[r];
2155
+ if (e === null || typeof o != "function")
2156
+ s(e);
2157
+ else {
2158
+ const a = o({ ...e }, n);
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);
2160
+ }
2161
+ });
2162
+ }
2163
+ function Jn(t, e) {
2164
+ const { fingerprint: n, span: r, breadcrumbs: s, sdkProcessingMetadata: i } = e;
2165
+ Kn(t, e), r && Vn(t, r), Wn(t, n), zn(t, s), qn(t, i);
2166
+ }
2167
+ function Ht(t, e) {
2168
+ const {
2169
+ extra: n,
2170
+ tags: r,
2171
+ user: s,
2172
+ contexts: i,
2173
+ level: o,
2174
+ sdkProcessingMetadata: a,
2175
+ breadcrumbs: u,
2176
+ fingerprint: c,
2177
+ eventProcessors: f,
2178
+ attachments: d,
2179
+ propagationContext: l,
2180
+ transactionName: g,
2181
+ span: $
2182
+ } = e;
2183
+ F(t, "extra", n), F(t, "tags", r), F(t, "user", s), F(t, "contexts", i), F(t, "sdkProcessingMetadata", a), o && (t.level = o), g && (t.transactionName = g), $ && (t.span = $), u.length && (t.breadcrumbs = [...t.breadcrumbs, ...u]), c.length && (t.fingerprint = [...t.fingerprint, ...c]), f.length && (t.eventProcessors = [...t.eventProcessors, ...f]), d.length && (t.attachments = [...t.attachments, ...d]), t.propagationContext = { ...t.propagationContext, ...l };
2184
+ }
2185
+ function F(t, e, n) {
2186
+ if (n && Object.keys(n).length) {
2187
+ t[e] = { ...t[e] };
2188
+ for (const r in n)
2189
+ Object.prototype.hasOwnProperty.call(n, r) && (t[e][r] = n[r]);
2190
+ }
2191
+ }
2192
+ function Kn(t, e) {
2193
+ const { extra: n, tags: r, user: s, contexts: i, level: o, transactionName: a } = e, u = m(n);
2194
+ u && Object.keys(u).length && (t.extra = { ...u, ...t.extra });
2195
+ const c = m(r);
2196
+ c && Object.keys(c).length && (t.tags = { ...c, ...t.tags });
2197
+ const f = m(s);
2198
+ f && Object.keys(f).length && (t.user = { ...f, ...t.user });
2199
+ const d = m(i);
2200
+ d && Object.keys(d).length && (t.contexts = { ...d, ...t.contexts }), o && (t.level = o), a && t.type !== "transaction" && (t.transaction = a);
2201
+ }
2202
+ function zn(t, e) {
2203
+ const n = [...t.breadcrumbs || [], ...e];
2204
+ t.breadcrumbs = n.length ? n : void 0;
2205
+ }
2206
+ function qn(t, e) {
2207
+ t.sdkProcessingMetadata = {
2208
+ ...t.sdkProcessingMetadata,
2209
+ ...e
2210
+ };
2211
+ }
2212
+ function Vn(t, e) {
2213
+ t.contexts = {
2214
+ trace: An(e),
2215
+ ...t.contexts
2216
+ }, t.sdkProcessingMetadata = {
2217
+ dynamicSamplingContext: Z(e),
2218
+ ...t.sdkProcessingMetadata
2219
+ };
2220
+ const n = O(e), r = E(n).description;
2221
+ r && !t.transaction && t.type === "transaction" && (t.transaction = r);
2222
+ }
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;
2225
+ }
2226
+ function es(t, e, n, r, s, i) {
2227
+ const { normalizeDepth: o = 3, normalizeMaxBreadth: a = 1e3 } = t, u = {
2228
+ ...e,
2229
+ event_id: e.event_id || n.event_id || _(),
2230
+ timestamp: e.timestamp || mt()
2231
+ }, c = n.integrations || t.integrations.map((b) => b.name);
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();
2236
+ if (i) {
2237
+ const b = i.getScopeData();
2238
+ Ht(l, b);
2239
+ }
2240
+ if (f) {
2241
+ const b = f.getScopeData();
2242
+ Ht(l, b);
2243
+ }
2244
+ const g = [...n.attachments || [], ...l.attachments];
2245
+ g.length && (n.attachments = g), Jn(u, l);
2246
+ const $ = [
2247
+ ...d,
2248
+ // Run scope event processors _after_ all other processors
2249
+ ...l.eventProcessors
2250
+ ];
2251
+ return dt($, u, n).then((b) => (b && Zn(b), typeof o == "number" && o > 0 ? er(b, o, a) : b));
2252
+ }
2253
+ function Xn(t, e) {
2254
+ const { environment: n, release: r, dist: s, maxValueLength: i = 250 } = e;
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));
2256
+ const o = t.exception && t.exception.values && t.exception.values[0];
2257
+ o && o.value && (o.value = G(o.value, i));
2258
+ const a = t.request;
2259
+ a && a.url && (a.url = G(a.url, i));
2260
+ }
2261
+ const Yt = /* @__PURE__ */ new WeakMap();
2262
+ function Qn(t, e) {
2263
+ const n = h._sentryDebugIds;
2264
+ if (!n)
2265
+ return;
2266
+ let r;
2267
+ const s = Yt.get(e);
2268
+ s ? r = s : (r = /* @__PURE__ */ new Map(), Yt.set(e, r));
2269
+ const i = Object.entries(n).reduce(
2270
+ (o, [a, u]) => {
2271
+ let c;
2272
+ const f = r.get(a);
2273
+ f ? c = f : (c = e(a), r.set(a, c));
2274
+ for (let d = c.length - 1; d >= 0; d--) {
2275
+ const l = c[d];
2276
+ if (l.filename) {
2277
+ o[l.filename] = u;
2278
+ break;
2279
+ }
2280
+ }
2281
+ return o;
2282
+ },
2283
+ {}
2284
+ );
2285
+ try {
2286
+ t.exception.values.forEach((o) => {
2287
+ o.stacktrace.frames.forEach((a) => {
2288
+ a.filename && (a.debug_id = i[a.filename]);
2289
+ });
2290
+ });
2291
+ } catch {
2292
+ }
2293
+ }
2294
+ function Zn(t) {
2295
+ const e = {};
2296
+ try {
2297
+ t.exception.values.forEach((r) => {
2298
+ r.stacktrace.frames.forEach((s) => {
2299
+ s.debug_id && (s.abs_path ? e[s.abs_path] = s.debug_id : s.filename && (e[s.filename] = s.debug_id), delete s.debug_id);
2300
+ });
2301
+ });
2302
+ } catch {
2303
+ }
2304
+ if (Object.keys(e).length === 0)
2305
+ return;
2306
+ t.debug_meta = t.debug_meta || {}, t.debug_meta.images = t.debug_meta.images || [];
2307
+ const n = t.debug_meta.images;
2308
+ Object.entries(e).forEach(([r, s]) => {
2309
+ n.push({
2310
+ type: "sourcemap",
2311
+ code_file: r,
2312
+ debug_id: s
2313
+ });
2314
+ });
2315
+ }
2316
+ function tr(t, e) {
2317
+ e.length > 0 && (t.sdk = t.sdk || {}, t.sdk.integrations = [...t.sdk.integrations || [], ...e]);
2318
+ }
2319
+ function er(t, e, n) {
2320
+ if (!t)
2321
+ return null;
2322
+ const r = {
2323
+ ...t,
2324
+ ...t.breadcrumbs && {
2325
+ breadcrumbs: t.breadcrumbs.map((s) => ({
2326
+ ...s,
2327
+ ...s.data && {
2328
+ data: R(s.data, e, n)
2329
+ }
2330
+ }))
2331
+ },
2332
+ ...t.user && {
2333
+ user: R(t.user, e, n)
2334
+ },
2335
+ ...t.contexts && {
2336
+ contexts: R(t.contexts, e, n)
2337
+ },
2338
+ ...t.extra && {
2339
+ extra: R(t.extra, e, n)
2340
+ }
2341
+ };
2342
+ return t.contexts && t.contexts.trace && r.contexts && (r.contexts.trace = t.contexts.trace, t.contexts.trace.data && (r.contexts.trace.data = R(t.contexts.trace.data, e, n))), t.spans && (r.spans = t.spans.map((s) => ({
2343
+ ...s,
2344
+ ...s.data && {
2345
+ data: R(s.data, e, n)
2346
+ }
2347
+ }))), r;
2348
+ }
2349
+ function nr(t, e) {
2350
+ if (!e)
2351
+ return t;
2352
+ const n = t ? t.clone() : new C();
2353
+ return n.update(e), n;
2354
+ }
2355
+ function rr(t) {
2356
+ if (t)
2357
+ return sr(t) ? { captureContext: t } : or(t) ? {
2358
+ captureContext: t
2359
+ } : t;
2360
+ }
2361
+ function sr(t) {
2362
+ return t instanceof C || typeof t == "function";
2363
+ }
2364
+ const ir = [
2365
+ "user",
2366
+ "level",
2367
+ "extra",
2368
+ "contexts",
2369
+ "tags",
2370
+ "fingerprint",
2371
+ "requestSession",
2372
+ "propagationContext"
2373
+ ];
2374
+ function or(t) {
2375
+ return Object.keys(t).some((e) => ir.includes(e));
2376
+ }
2377
+ function ar(t, e) {
2378
+ return I().captureException(t, rr(e));
2379
+ }
2380
+ function ns(t, e) {
2381
+ return I().captureEvent(t, e);
2382
+ }
2383
+ function rs(t, e) {
2384
+ v().setContext(t, e);
2385
+ }
2386
+ function ss(t) {
2387
+ v().addEventProcessor(t);
2388
+ }
2389
+ function is(t) {
2390
+ const e = N(), n = v(), r = I(), { release: s, environment: i = It } = e && e.getOptions() || {}, { userAgent: o } = h.navigator || {}, a = cn({
2391
+ release: s,
2392
+ environment: i,
2393
+ user: r.getUser() || n.getUser(),
2394
+ ...o && { userAgent: o },
2395
+ ...t
2396
+ }), u = n.getSession();
2397
+ return u && u.status === "ok" && Q(u, { status: "exited" }), me(), n.setSession(a), r.setSession(a), a;
2398
+ }
2399
+ function me() {
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();
2405
+ r && n && n.captureSession(r);
2406
+ }
2407
+ function os(t = !1) {
2408
+ if (t) {
2409
+ me();
2410
+ return;
2411
+ }
2412
+ Se();
2413
+ }
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) => {
2415
+ if (!t)
2416
+ return et;
2417
+ if (t.$root === t)
2418
+ return pr;
2419
+ if (!t.$options)
2420
+ return et;
2421
+ const n = t.$options;
2422
+ let r = n.name || n._componentTag;
2423
+ const s = n.__file;
2424
+ if (!r && s) {
2425
+ const i = s.match(/([^/\\]+)\.vue$/);
2426
+ i && (r = i[1]);
2427
+ }
2428
+ return (r ? `<${dr(r)}>` : et) + (s && e !== !1 ? ` at ${s}` : "");
2429
+ }, _r = (t) => {
2430
+ if (t && (t._isVue || t.__isVue) && t.$parent) {
2431
+ const e = [];
2432
+ let n = 0;
2433
+ for (; t; ) {
2434
+ if (e.length > 0) {
2435
+ const s = e[e.length - 1];
2436
+ if (s.constructor === t.constructor) {
2437
+ n++, t = t.$parent;
2438
+ continue;
2439
+ } else n > 0 && (e[e.length - 1] = [s, n], n = 0);
2440
+ }
2441
+ e.push(t), t = t.$parent;
2442
+ }
2443
+ return `
2444
+
2445
+ found in
2446
+
2447
+ ${e.map(
2448
+ (s, i) => `${(i === 0 ? "---> " : lr(" ", 5 + i * 2)) + (Array.isArray(s) ? `${H(s[0])}... (${s[1]} recursive calls)` : H(s))}`
2449
+ ).join(`
2450
+ `)}`;
2451
+ }
2452
+ return `
2453
+
2454
+ (found in ${H(t)})`;
2455
+ }, as = (t, e) => {
2456
+ const { errorHandler: n, warnHandler: r, silent: s } = t.config;
2457
+ t.config.errorHandler = (i, o, a) => {
2458
+ const u = H(o, !1), c = o ? _r(o) : "", f = {
2459
+ componentName: u,
2460
+ lifecycleHook: a,
2461
+ trace: c
2462
+ };
2463
+ if (e.attachProps && o && (o.$options && o.$options.propsData ? f.propsData = o.$options.propsData : o.$props && (f.propsData = o.$props)), setTimeout(() => {
2464
+ ar(i, {
2465
+ captureContext: { contexts: { vue: f } },
2466
+ mechanism: { handled: !1 }
2467
+ });
2468
+ }), typeof n == "function" && n.call(t, i, o, a), e.logErrors) {
2469
+ const d = typeof console < "u", l = `Error in ${a}: "${i && i.toString()}"`;
2470
+ r ? r.call(null, l, o, c) : d && !s && ht(() => {
2471
+ console.error(`[Vue warn]: ${l}${c}`);
2472
+ });
2473
+ }
2474
+ };
2475
+ }, Jt = "ui.vue", hr = {
2476
+ activate: ["activated", "deactivated"],
2477
+ create: ["beforeCreate", "created"],
2478
+ // Vue 3
2479
+ unmount: ["beforeUnmount", "unmounted"],
2480
+ // Vue 2
2481
+ destroy: ["beforeDestroy", "destroyed"],
2482
+ mount: ["beforeMount", "mounted"],
2483
+ update: ["beforeUpdate", "updated"]
2484
+ };
2485
+ function gr(t, e, n) {
2486
+ t.$_sentryRootSpanTimer && clearTimeout(t.$_sentryRootSpanTimer), t.$_sentryRootSpanTimer = setTimeout(() => {
2487
+ t.$root && t.$root.$_sentryRootSpan && (t.$root.$_sentryRootSpan.end(e), t.$root.$_sentryRootSpan = void 0);
2488
+ }, n);
2489
+ }
2490
+ const cs = (t) => {
2491
+ const e = (t.hooks || []).concat(cr).filter((r, s, i) => i.indexOf(r) === s), n = {};
2492
+ for (const r of e) {
2493
+ const s = hr[r];
2494
+ if (!s) {
2495
+ ur && p.warn(`Unknown hook: ${r}`);
2496
+ continue;
2497
+ }
2498
+ for (const i of s)
2499
+ n[i] = function() {
2500
+ const o = this.$root === this;
2501
+ o && ft() && (this.$_sentryRootSpan = this.$_sentryRootSpan || Gt({
2502
+ name: "Application Render",
2503
+ op: `${Jt}.render`,
2504
+ attributes: {
2505
+ [Y]: "auto.ui.vue"
2506
+ }
2507
+ }));
2508
+ const a = H(this, !1), u = Array.isArray(t.trackComponents) ? t.trackComponents.indexOf(a) > -1 : t.trackComponents;
2509
+ if (!(!o && !u))
2510
+ if (this.$_sentrySpans = this.$_sentrySpans || {}, i == s[0]) {
2511
+ if (this.$root && this.$root.$_sentryRootSpan || ft()) {
2512
+ const f = this.$_sentrySpans[r];
2513
+ f && f.end(), this.$_sentrySpans[r] = Gt({
2514
+ name: `Vue <${a}>`,
2515
+ op: `${Jt}.${r}`,
2516
+ attributes: {
2517
+ [Y]: "auto.ui.vue"
2518
+ }
2519
+ });
2520
+ }
2521
+ } else {
2522
+ const c = this.$_sentrySpans[r];
2523
+ if (!c) return;
2524
+ c.end(), gr(this, P(), t.timeout);
2525
+ }
2526
+ };
2527
+ }
2528
+ return n;
2529
+ };
2530
+ export {
2531
+ Ee 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,
2538
+ h as G,
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,
2550
+ T as S,
2551
+ m as T,
2552
+ $n as U,
2553
+ v as V,
2554
+ Pn as W,
2555
+ gt as X,
2556
+ lt as Y,
2557
+ pt as Z,
2558
+ ot as _,
2559
+ as as a,
2560
+ ht as a0,
2561
+ Yr as a1,
2562
+ zr as a2,
2563
+ Jr as a3,
2564
+ B as a4,
2565
+ Cr as a5,
2566
+ Mr as a6,
2567
+ Ir as a7,
2568
+ xr as a8,
2569
+ Y 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
+ ct as aa,
2592
+ Wr as ab,
2593
+ nn as ac,
2594
+ Gr as ad,
2595
+ Z as ae,
2596
+ Fr as af,
2597
+ Vr as ag,
2598
+ Me as ah,
2599
+ ne as ai,
2600
+ Lr as aj,
2601
+ He as ak,
2602
+ ar as al,
2603
+ Sr as am,
2604
+ yr as an,
2605
+ Er as ao,
2606
+ be as ap,
2607
+ Je as aq,
2608
+ $r 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,
2621
+ Dr as f,
2622
+ Fe as g,
2623
+ vr as h,
2624
+ W as i,
2625
+ St as j,
2626
+ mt as k,
2627
+ p as l,
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,
2635
+ G as t,
2636
+ le as u,
2637
+ Tt as v,
2638
+ I as w,
2639
+ x,
2640
+ Dn as y,
2641
+ E as z
2642
+ };
2643
+ //# sourceMappingURL=tracing-1TgukAt0.js.map