@cloudflare/vite-plugin 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/asset-workers/asset-worker.js +548 -546
- package/dist/asset-workers/router-worker.js +249 -237
- package/dist/index.js +3 -1
- package/package.json +5 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// ../workers-shared/dist/router-worker.mjs
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var fe = (t, e, n) => (
|
|
2
|
+
var Pn = Object.defineProperty;
|
|
3
|
+
var Mn = (t, e, n) => e in t ? Pn(t, e, { enumerable: true, configurable: true, writable: true, value: n }) : t[e] = n;
|
|
4
|
+
var fe = (t, e, n) => (Mn(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
5
5
|
var bt = (t, e, n) => {
|
|
6
6
|
if (!e.has(t)) throw TypeError("Cannot " + n);
|
|
7
7
|
};
|
|
@@ -10,7 +10,7 @@ var Rt = (t, e, n) => {
|
|
|
10
10
|
if (e.has(t)) throw TypeError("Cannot add the same private member more than once");
|
|
11
11
|
e instanceof WeakSet ? e.add(t) : e.set(t, n);
|
|
12
12
|
};
|
|
13
|
-
var
|
|
13
|
+
var It = (t, e, n, r) => (bt(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
|
|
14
14
|
var pe = class {
|
|
15
15
|
constructor(e) {
|
|
16
16
|
this.performanceTimer = e;
|
|
@@ -19,9 +19,9 @@ var pe = class {
|
|
|
19
19
|
return this.performanceTimer ? this.performanceTimer.timeOrigin + this.performanceTimer.now() : Date.now();
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
|
-
var
|
|
22
|
+
var xt = Object.prototype.toString;
|
|
23
23
|
function U(t) {
|
|
24
|
-
switch (
|
|
24
|
+
switch (xt.call(t)) {
|
|
25
25
|
case "[object Error]":
|
|
26
26
|
case "[object Exception]":
|
|
27
27
|
case "[object DOMException]":
|
|
@@ -30,17 +30,17 @@ function U(t) {
|
|
|
30
30
|
return O(t, Error);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
return
|
|
33
|
+
function Nt(t, e) {
|
|
34
|
+
return xt.call(t) === `[object ${e}]`;
|
|
35
35
|
}
|
|
36
36
|
function j(t) {
|
|
37
|
-
return
|
|
37
|
+
return Nt(t, "String");
|
|
38
38
|
}
|
|
39
39
|
function le(t) {
|
|
40
40
|
return t === null || typeof t != "object" && typeof t != "function";
|
|
41
41
|
}
|
|
42
42
|
function R(t) {
|
|
43
|
-
return
|
|
43
|
+
return Nt(t, "Object");
|
|
44
44
|
}
|
|
45
45
|
function $e(t) {
|
|
46
46
|
return typeof Event < "u" && O(t, Event);
|
|
@@ -76,26 +76,26 @@ function me(t) {
|
|
|
76
76
|
var m = typeof globalThis == "object" && me(globalThis) || typeof window == "object" && me(window) || typeof self == "object" && me(self) || typeof global == "object" && me(global) || /* @__PURE__ */ function() {
|
|
77
77
|
return this;
|
|
78
78
|
}() || {};
|
|
79
|
-
function
|
|
79
|
+
function x() {
|
|
80
80
|
return m;
|
|
81
81
|
}
|
|
82
82
|
function Q(t, e, n) {
|
|
83
83
|
let r = n || m, s = r.__SENTRY__ = r.__SENTRY__ || {};
|
|
84
84
|
return s[t] || (s[t] = e());
|
|
85
85
|
}
|
|
86
|
-
var
|
|
87
|
-
var
|
|
88
|
-
function
|
|
86
|
+
var fs = x();
|
|
87
|
+
var Un = 80;
|
|
88
|
+
function Dt(t, e = {}) {
|
|
89
89
|
if (!t) return "<unknown>";
|
|
90
90
|
try {
|
|
91
|
-
let n = t, r = 5, s = [], i = 0, o = 0, a = " > ", c = a.length, u, f = Array.isArray(e) ? e : e.keyAttrs, d = !Array.isArray(e) && e.maxStringLength ||
|
|
92
|
-
for (; n && i++ < r && (u =
|
|
91
|
+
let n = t, r = 5, s = [], i = 0, o = 0, a = " > ", c = a.length, u, f = Array.isArray(e) ? e : e.keyAttrs, d = !Array.isArray(e) && e.maxStringLength || Un;
|
|
92
|
+
for (; n && i++ < r && (u = Gn(n, f), !(u === "html" || i > 1 && o + s.length * c + u.length >= d)); ) s.push(u), o += u.length, n = n.parentNode;
|
|
93
93
|
return s.reverse().join(a);
|
|
94
94
|
} catch {
|
|
95
95
|
return "<unknown>";
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Gn(t, e) {
|
|
99
99
|
let n = t, r = [], s, i, o, a, c;
|
|
100
100
|
if (!n || !n.tagName) return "";
|
|
101
101
|
r.push(n.tagName.toLowerCase());
|
|
@@ -108,7 +108,7 @@ function Un(t, e) {
|
|
|
108
108
|
for (c = 0; c < f.length; c++) o = f[c], a = n.getAttribute(o), a && r.push(`[${o}="${a}"]`);
|
|
109
109
|
return r.join("");
|
|
110
110
|
}
|
|
111
|
-
var
|
|
111
|
+
var Fn = "Sentry Logger ";
|
|
112
112
|
var ee = ["debug", "info", "warn", "error", "log", "assert", "trace"];
|
|
113
113
|
var H = {};
|
|
114
114
|
function _e(t) {
|
|
@@ -126,7 +126,7 @@ function _e(t) {
|
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function Bn() {
|
|
130
130
|
let t = false, e = { enable: () => {
|
|
131
131
|
t = true;
|
|
132
132
|
}, disable: () => {
|
|
@@ -135,7 +135,7 @@ function Fn() {
|
|
|
135
135
|
return typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__ ? ee.forEach((n) => {
|
|
136
136
|
e[n] = (...r) => {
|
|
137
137
|
t && _e(() => {
|
|
138
|
-
m.console[n](`${
|
|
138
|
+
m.console[n](`${Fn}[${n}]:`, ...r);
|
|
139
139
|
});
|
|
140
140
|
};
|
|
141
141
|
}) : ee.forEach((n) => {
|
|
@@ -143,9 +143,9 @@ function Fn() {
|
|
|
143
143
|
};
|
|
144
144
|
}), e;
|
|
145
145
|
}
|
|
146
|
-
var p =
|
|
147
|
-
var
|
|
148
|
-
function
|
|
146
|
+
var p = Bn();
|
|
147
|
+
var Ln = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;
|
|
148
|
+
function Yn(t) {
|
|
149
149
|
return t === "http" || t === "https";
|
|
150
150
|
}
|
|
151
151
|
function C(t, e = false) {
|
|
@@ -153,7 +153,7 @@ function C(t, e = false) {
|
|
|
153
153
|
return `${a}://${c}${e && s ? `:${s}` : ""}@${n}${i ? `:${i}` : ""}/${r && `${r}/`}${o}`;
|
|
154
154
|
}
|
|
155
155
|
function kt(t) {
|
|
156
|
-
let e =
|
|
156
|
+
let e = Ln.exec(t);
|
|
157
157
|
if (!e) {
|
|
158
158
|
console.error(`Invalid Sentry Dsn: ${t}`);
|
|
159
159
|
return;
|
|
@@ -168,21 +168,21 @@ function kt(t) {
|
|
|
168
168
|
function Ot(t) {
|
|
169
169
|
return { protocol: t.protocol, publicKey: t.publicKey || "", pass: t.pass || "", host: t.host, port: t.port || "", path: t.path || "", projectId: t.projectId };
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function $n(t) {
|
|
172
172
|
if (!(typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__)) return true;
|
|
173
173
|
let { port: e, projectId: n, protocol: r } = t;
|
|
174
|
-
return ["protocol", "publicKey", "host", "projectId"].find((o) => t[o] ? false : (p.error(`Invalid Sentry Dsn: ${o} missing`), true)) ? false : n.match(/^\d+$/) ?
|
|
174
|
+
return ["protocol", "publicKey", "host", "projectId"].find((o) => t[o] ? false : (p.error(`Invalid Sentry Dsn: ${o} missing`), true)) ? false : n.match(/^\d+$/) ? Yn(r) ? e && isNaN(parseInt(e, 10)) ? (p.error(`Invalid Sentry Dsn: Invalid port ${e}`), false) : true : (p.error(`Invalid Sentry Dsn: Invalid protocol ${r}`), false) : (p.error(`Invalid Sentry Dsn: Invalid projectId ${n}`), false);
|
|
175
175
|
}
|
|
176
176
|
function he(t) {
|
|
177
177
|
let e = typeof t == "string" ? kt(t) : Ot(t);
|
|
178
|
-
if (!(!e ||
|
|
178
|
+
if (!(!e || !$n(e))) return e;
|
|
179
179
|
}
|
|
180
180
|
var y = class extends Error {
|
|
181
181
|
constructor(e, n = "warn") {
|
|
182
182
|
super(e), this.message = e, this.name = new.target.prototype.constructor.name, Object.setPrototypeOf(this, new.target.prototype), this.logLevel = n;
|
|
183
183
|
}
|
|
184
184
|
};
|
|
185
|
-
function
|
|
185
|
+
function I(t, e, n) {
|
|
186
186
|
if (!(e in t)) return;
|
|
187
187
|
let r = t[e], s = n(r);
|
|
188
188
|
typeof s == "function" && vt(s, r), t[e] = s;
|
|
@@ -201,7 +201,7 @@ function vt(t, e) {
|
|
|
201
201
|
} catch {
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function ze(t) {
|
|
205
205
|
return Object.keys(t).map((e) => `${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&");
|
|
206
206
|
}
|
|
207
207
|
function ge(t) {
|
|
@@ -213,7 +213,7 @@ function ge(t) {
|
|
|
213
213
|
}
|
|
214
214
|
function At(t) {
|
|
215
215
|
try {
|
|
216
|
-
return je(t) ?
|
|
216
|
+
return je(t) ? Dt(t) : Object.prototype.toString.call(t);
|
|
217
217
|
} catch {
|
|
218
218
|
return "<unknown>";
|
|
219
219
|
}
|
|
@@ -236,15 +236,15 @@ function te(t, e = 40) {
|
|
|
236
236
|
return "";
|
|
237
237
|
}
|
|
238
238
|
function g(t) {
|
|
239
|
-
return
|
|
239
|
+
return We(t, /* @__PURE__ */ new Map());
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function We(t, e) {
|
|
242
242
|
if (R(t)) {
|
|
243
243
|
let n = e.get(t);
|
|
244
244
|
if (n !== void 0) return n;
|
|
245
245
|
let r = {};
|
|
246
246
|
e.set(t, r);
|
|
247
|
-
for (let s of Object.keys(t)) typeof t[s] < "u" && (r[s] =
|
|
247
|
+
for (let s of Object.keys(t)) typeof t[s] < "u" && (r[s] = We(t[s], e));
|
|
248
248
|
return r;
|
|
249
249
|
}
|
|
250
250
|
if (Array.isArray(t)) {
|
|
@@ -252,12 +252,12 @@ function ze(t, e) {
|
|
|
252
252
|
if (n !== void 0) return n;
|
|
253
253
|
let r = [];
|
|
254
254
|
return e.set(t, r), t.forEach((s) => {
|
|
255
|
-
r.push(
|
|
255
|
+
r.push(We(s, e));
|
|
256
256
|
}), r;
|
|
257
257
|
}
|
|
258
258
|
return t;
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function jn(t, e = false) {
|
|
261
261
|
return !(e || t && !t.startsWith("/") && !t.includes(":\\") && !t.startsWith(".") && !t.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//)) && t !== void 0 && !t.includes("node_modules/");
|
|
262
262
|
}
|
|
263
263
|
function Ct(t) {
|
|
@@ -278,7 +278,7 @@ function Ct(t) {
|
|
|
278
278
|
}
|
|
279
279
|
o && (c = i, u = o), o === "<anonymous>" && (u = void 0, a = void 0), a === void 0 && (u = u || "<anonymous>", a = c ? `${c}.${u}` : u);
|
|
280
280
|
let f = s[2] && s[2].startsWith("file://") ? s[2].slice(7) : s[2], d = s[5] === "native";
|
|
281
|
-
return !f && s[5] && !d && (f = s[5]), { filename: f, module: t ? t(f) : void 0, function: a, lineno: parseInt(s[3], 10) || void 0, colno: parseInt(s[4], 10) || void 0, in_app:
|
|
281
|
+
return !f && s[5] && !d && (f = s[5]), { filename: f, module: t ? t(f) : void 0, function: a, lineno: parseInt(s[3], 10) || void 0, colno: parseInt(s[4], 10) || void 0, in_app: jn(f, d) };
|
|
282
282
|
}
|
|
283
283
|
if (r.match(e)) return { filename: r };
|
|
284
284
|
};
|
|
@@ -309,7 +309,7 @@ function Ee(...t) {
|
|
|
309
309
|
return Gt(s);
|
|
310
310
|
};
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function Ve(t) {
|
|
313
313
|
return Array.isArray(t) ? Ee(...t) : t;
|
|
314
314
|
}
|
|
315
315
|
function Gt(t) {
|
|
@@ -317,19 +317,19 @@ function Gt(t) {
|
|
|
317
317
|
let e = Array.from(t);
|
|
318
318
|
return /sentryWrapped/.test(e[e.length - 1].function || "") && e.pop(), e.reverse(), Mt.test(e[e.length - 1].function || "") && (e.pop(), Mt.test(e[e.length - 1].function || "") && e.pop()), e.slice(0, Ut).map((n) => ({ ...n, filename: n.filename || e[e.length - 1].filename, function: n.function || "?" }));
|
|
319
319
|
}
|
|
320
|
-
var
|
|
320
|
+
var Ke = "<anonymous>";
|
|
321
321
|
function ne(t) {
|
|
322
322
|
try {
|
|
323
|
-
return !t || typeof t != "function" ?
|
|
323
|
+
return !t || typeof t != "function" ? Ke : t.name || Ke;
|
|
324
324
|
} catch {
|
|
325
|
-
return
|
|
325
|
+
return Ke;
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
function Je(t) {
|
|
329
329
|
return [90, Ct(t)];
|
|
330
330
|
}
|
|
331
|
-
var Xe =
|
|
332
|
-
function
|
|
331
|
+
var Xe = x();
|
|
332
|
+
function Hn() {
|
|
333
333
|
if (!("fetch" in Xe)) return false;
|
|
334
334
|
try {
|
|
335
335
|
return new Headers(), new Request("http://www.example.com"), new Response(), true;
|
|
@@ -341,7 +341,7 @@ function Ft(t) {
|
|
|
341
341
|
return t && /^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString());
|
|
342
342
|
}
|
|
343
343
|
function Bt() {
|
|
344
|
-
if (!
|
|
344
|
+
if (!Hn()) return false;
|
|
345
345
|
if (Ft(Xe.fetch)) return true;
|
|
346
346
|
let t = false, e = Xe.document;
|
|
347
347
|
if (e && typeof e.createElement == "function") try {
|
|
@@ -352,47 +352,47 @@ function Bt() {
|
|
|
352
352
|
}
|
|
353
353
|
return t;
|
|
354
354
|
}
|
|
355
|
-
var Se =
|
|
355
|
+
var Se = x();
|
|
356
356
|
function Lt() {
|
|
357
357
|
let t = Se.chrome, e = t && t.app && t.app.runtime, n = "history" in Se && !!Se.history.pushState && !!Se.history.replaceState;
|
|
358
358
|
return !e && n;
|
|
359
359
|
}
|
|
360
|
-
var E =
|
|
360
|
+
var E = x();
|
|
361
361
|
var re = "__sentry_xhr_v2__";
|
|
362
362
|
var se = {};
|
|
363
363
|
var Yt = {};
|
|
364
|
-
function
|
|
364
|
+
function qn(t) {
|
|
365
365
|
if (!Yt[t]) switch (Yt[t] = true, t) {
|
|
366
366
|
case "console":
|
|
367
|
-
|
|
367
|
+
Wn();
|
|
368
368
|
break;
|
|
369
369
|
case "dom":
|
|
370
|
-
|
|
370
|
+
zt();
|
|
371
371
|
break;
|
|
372
372
|
case "xhr":
|
|
373
|
-
|
|
373
|
+
Wt();
|
|
374
374
|
break;
|
|
375
375
|
case "fetch":
|
|
376
376
|
zn();
|
|
377
377
|
break;
|
|
378
378
|
case "history":
|
|
379
|
-
|
|
379
|
+
Kn();
|
|
380
380
|
break;
|
|
381
381
|
case "error":
|
|
382
|
-
|
|
382
|
+
Zn();
|
|
383
383
|
break;
|
|
384
384
|
case "unhandledrejection":
|
|
385
|
-
|
|
385
|
+
Qn();
|
|
386
386
|
break;
|
|
387
387
|
default:
|
|
388
388
|
(typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__) && p.warn("unknown instrumentation type:", t);
|
|
389
389
|
return;
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
function
|
|
393
|
-
se[t] = se[t] || [], se[t].push(e),
|
|
392
|
+
function Ie(t, e) {
|
|
393
|
+
se[t] = se[t] || [], se[t].push(e), qn(t);
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function N(t, e) {
|
|
396
396
|
if (!(!t || !se[t])) for (let n of se[t] || []) try {
|
|
397
397
|
n(e);
|
|
398
398
|
} catch (r) {
|
|
@@ -402,11 +402,11 @@ Name: ${ne(n)}
|
|
|
402
402
|
Error:`, r);
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function Wn() {
|
|
406
406
|
"console" in m && ee.forEach(function(t) {
|
|
407
|
-
t in m.console &&
|
|
407
|
+
t in m.console && I(m.console, t, function(e) {
|
|
408
408
|
return H[t] = e, function(...n) {
|
|
409
|
-
|
|
409
|
+
N("console", { args: n, level: t });
|
|
410
410
|
let r = H[t];
|
|
411
411
|
r && r.apply(m.console, n);
|
|
412
412
|
};
|
|
@@ -414,11 +414,11 @@ function qn() {
|
|
|
414
414
|
});
|
|
415
415
|
}
|
|
416
416
|
function zn() {
|
|
417
|
-
Bt() &&
|
|
417
|
+
Bt() && I(m, "fetch", function(t) {
|
|
418
418
|
return function(...e) {
|
|
419
419
|
let { method: n, url: r } = qt(e), s = { args: e, fetchData: { method: n, url: r }, startTimestamp: Date.now() };
|
|
420
|
-
return
|
|
421
|
-
throw
|
|
420
|
+
return N("fetch", { ...s }), t.apply(m, e).then((i) => (N("fetch", { ...s, endTimestamp: Date.now(), response: i }), i), (i) => {
|
|
421
|
+
throw N("fetch", { ...s, endTimestamp: Date.now(), error: i }), i;
|
|
422
422
|
});
|
|
423
423
|
};
|
|
424
424
|
});
|
|
@@ -438,10 +438,10 @@ function qt(t) {
|
|
|
438
438
|
let e = t[0];
|
|
439
439
|
return { url: $t(e), method: Ze(e, "method") ? String(e.method).toUpperCase() : "GET" };
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function Wt() {
|
|
442
442
|
if (!E.XMLHttpRequest) return;
|
|
443
443
|
let t = XMLHttpRequest.prototype;
|
|
444
|
-
|
|
444
|
+
I(t, "open", function(e) {
|
|
445
445
|
return function(...n) {
|
|
446
446
|
let r = Date.now(), s = n[1], i = this[re] = { method: j(n[0]) ? n[0].toUpperCase() : n[0], url: n[1], request_headers: {} };
|
|
447
447
|
j(s) && i.method === "POST" && s.match(/sentry_key/) && (this.__sentry_own_request__ = true);
|
|
@@ -452,34 +452,34 @@ function zt() {
|
|
|
452
452
|
a.status_code = this.status;
|
|
453
453
|
} catch {
|
|
454
454
|
}
|
|
455
|
-
|
|
455
|
+
N("xhr", { args: n, endTimestamp: Date.now(), startTimestamp: r, xhr: this });
|
|
456
456
|
}
|
|
457
457
|
};
|
|
458
|
-
return "onreadystatechange" in this && typeof this.onreadystatechange == "function" ?
|
|
458
|
+
return "onreadystatechange" in this && typeof this.onreadystatechange == "function" ? I(this, "onreadystatechange", function(a) {
|
|
459
459
|
return function(...c) {
|
|
460
460
|
return o(), a.apply(this, c);
|
|
461
461
|
};
|
|
462
|
-
}) : this.addEventListener("readystatechange", o),
|
|
462
|
+
}) : this.addEventListener("readystatechange", o), I(this, "setRequestHeader", function(a) {
|
|
463
463
|
return function(...c) {
|
|
464
464
|
let [u, f] = c, d = this[re];
|
|
465
465
|
return d && (d.request_headers[u.toLowerCase()] = f), a.apply(this, c);
|
|
466
466
|
};
|
|
467
467
|
}), e.apply(this, n);
|
|
468
468
|
};
|
|
469
|
-
}),
|
|
469
|
+
}), I(t, "send", function(e) {
|
|
470
470
|
return function(...n) {
|
|
471
471
|
let r = this[re];
|
|
472
|
-
return r && n[0] !== void 0 && (r.body = n[0]),
|
|
472
|
+
return r && n[0] !== void 0 && (r.body = n[0]), N("xhr", { args: n, startTimestamp: Date.now(), xhr: this }), e.apply(this, n);
|
|
473
473
|
};
|
|
474
474
|
});
|
|
475
475
|
}
|
|
476
476
|
var ye;
|
|
477
|
-
function
|
|
477
|
+
function Kn() {
|
|
478
478
|
if (!Lt()) return;
|
|
479
479
|
let t = E.onpopstate;
|
|
480
480
|
E.onpopstate = function(...n) {
|
|
481
481
|
let r = E.location.href, s = ye;
|
|
482
|
-
if (ye = r,
|
|
482
|
+
if (ye = r, N("history", { from: s, to: r }), t) try {
|
|
483
483
|
return t.apply(this, n);
|
|
484
484
|
} catch {
|
|
485
485
|
}
|
|
@@ -489,17 +489,17 @@ function Wn() {
|
|
|
489
489
|
let s = r.length > 2 ? r[2] : void 0;
|
|
490
490
|
if (s) {
|
|
491
491
|
let i = ye, o = String(s);
|
|
492
|
-
ye = o,
|
|
492
|
+
ye = o, N("history", { from: i, to: o });
|
|
493
493
|
}
|
|
494
494
|
return n.apply(this, r);
|
|
495
495
|
};
|
|
496
496
|
}
|
|
497
|
-
|
|
497
|
+
I(E.history, "pushState", e), I(E.history, "replaceState", e);
|
|
498
498
|
}
|
|
499
499
|
var Vn = 1e3;
|
|
500
500
|
var jt;
|
|
501
501
|
var Te;
|
|
502
|
-
function
|
|
502
|
+
function Jn(t, e) {
|
|
503
503
|
if (t.type !== e.type) return false;
|
|
504
504
|
try {
|
|
505
505
|
if (t.target !== e.target) return false;
|
|
@@ -507,7 +507,7 @@ function Kn(t, e) {
|
|
|
507
507
|
}
|
|
508
508
|
return true;
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function Xn(t) {
|
|
511
511
|
if (t.type !== "keypress") return false;
|
|
512
512
|
try {
|
|
513
513
|
let e = t.target;
|
|
@@ -519,20 +519,20 @@ function Jn(t) {
|
|
|
519
519
|
}
|
|
520
520
|
function Ht(t, e = false) {
|
|
521
521
|
return (n) => {
|
|
522
|
-
if (!n || n._sentryCaptured ||
|
|
522
|
+
if (!n || n._sentryCaptured || Xn(n)) return;
|
|
523
523
|
q(n, "_sentryCaptured", true);
|
|
524
524
|
let r = n.type === "keypress" ? "input" : n.type;
|
|
525
|
-
(Te === void 0 || !
|
|
525
|
+
(Te === void 0 || !Jn(Te, n)) && (t({ event: n, name: r, global: e }), Te = n), clearTimeout(jt), jt = E.setTimeout(() => {
|
|
526
526
|
Te = void 0;
|
|
527
527
|
}, Vn);
|
|
528
528
|
};
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function zt() {
|
|
531
531
|
if (!E.document) return;
|
|
532
|
-
let t =
|
|
532
|
+
let t = N.bind(null, "dom"), e = Ht(t, true);
|
|
533
533
|
E.document.addEventListener("click", e, false), E.document.addEventListener("keypress", e, false), ["EventTarget", "Node"].forEach((n) => {
|
|
534
534
|
let r = E[n] && E[n].prototype;
|
|
535
|
-
!r || !r.hasOwnProperty || !r.hasOwnProperty("addEventListener") || (
|
|
535
|
+
!r || !r.hasOwnProperty || !r.hasOwnProperty("addEventListener") || (I(r, "addEventListener", function(s) {
|
|
536
536
|
return function(i, o, a) {
|
|
537
537
|
if (i === "click" || i == "keypress") try {
|
|
538
538
|
let c = this, u = c.__sentry_instrumentation_handlers__ = c.__sentry_instrumentation_handlers__ || {}, f = u[i] = u[i] || { refCount: 0 };
|
|
@@ -545,7 +545,7 @@ function Wt() {
|
|
|
545
545
|
}
|
|
546
546
|
return s.call(this, i, o, a);
|
|
547
547
|
};
|
|
548
|
-
}),
|
|
548
|
+
}), I(r, "removeEventListener", function(s) {
|
|
549
549
|
return function(i, o, a) {
|
|
550
550
|
if (i === "click" || i == "keypress") try {
|
|
551
551
|
let c = this, u = c.__sentry_instrumentation_handlers__ || {}, f = u[i];
|
|
@@ -558,22 +558,22 @@ function Wt() {
|
|
|
558
558
|
});
|
|
559
559
|
}
|
|
560
560
|
var be = null;
|
|
561
|
-
function
|
|
561
|
+
function Zn() {
|
|
562
562
|
be = E.onerror, E.onerror = function(t, e, n, r, s) {
|
|
563
|
-
return
|
|
563
|
+
return N("error", { column: r, error: s, line: n, msg: t, url: e }), be && !be.__SENTRY_LOADER__ ? be.apply(this, arguments) : false;
|
|
564
564
|
}, E.onerror.__SENTRY_INSTRUMENTED__ = true;
|
|
565
565
|
}
|
|
566
566
|
var Re = null;
|
|
567
|
-
function
|
|
567
|
+
function Qn() {
|
|
568
568
|
Re = E.onunhandledrejection, E.onunhandledrejection = function(t) {
|
|
569
|
-
return
|
|
569
|
+
return N("unhandledrejection", t), Re && !Re.__SENTRY_LOADER__ ? Re.apply(this, arguments) : true;
|
|
570
570
|
}, E.onunhandledrejection.__SENTRY_INSTRUMENTED__ = true;
|
|
571
571
|
}
|
|
572
|
-
function
|
|
572
|
+
function Kt() {
|
|
573
573
|
return typeof __SENTRY_BROWSER_BUNDLE__ < "u" && !!__SENTRY_BROWSER_BUNDLE__;
|
|
574
574
|
}
|
|
575
|
-
function
|
|
576
|
-
return !
|
|
575
|
+
function Vt() {
|
|
576
|
+
return !Kt() && Object.prototype.toString.call(typeof process < "u" ? process : 0) === "[object process]";
|
|
577
577
|
}
|
|
578
578
|
function Jt(t, e) {
|
|
579
579
|
return t.require(e);
|
|
@@ -603,7 +603,7 @@ function h() {
|
|
|
603
603
|
}
|
|
604
604
|
return ("10000000100040008000" + 1e11).replace(/[018]/g, (r) => (r ^ (n() & 15) >> r / 4).toString(16));
|
|
605
605
|
}
|
|
606
|
-
function
|
|
606
|
+
function er(t) {
|
|
607
607
|
return t.exception && t.exception.values ? t.exception.values[0] : void 0;
|
|
608
608
|
}
|
|
609
609
|
function ie(t, e, n) {
|
|
@@ -611,7 +611,7 @@ function ie(t, e, n) {
|
|
|
611
611
|
i.value || (i.value = e || ""), i.type || (i.type = n || "Error");
|
|
612
612
|
}
|
|
613
613
|
function oe(t, e) {
|
|
614
|
-
let n =
|
|
614
|
+
let n = er(t);
|
|
615
615
|
if (!n) return;
|
|
616
616
|
let r = { type: "generic", handled: true }, s = n.mechanism;
|
|
617
617
|
if (n.mechanism = { ...r, ...s, ...e }, e && "data" in e) {
|
|
@@ -619,7 +619,7 @@ function oe(t, e) {
|
|
|
619
619
|
n.mechanism.data = i;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function xe(t) {
|
|
623
623
|
if (t && t.__sentry_captured__) return true;
|
|
624
624
|
try {
|
|
625
625
|
q(t, "__sentry_captured__", true);
|
|
@@ -630,21 +630,21 @@ function Ie(t) {
|
|
|
630
630
|
function ae(t) {
|
|
631
631
|
return Array.isArray(t) ? t : [t];
|
|
632
632
|
}
|
|
633
|
-
function
|
|
633
|
+
function D(t, e = 100, n = 1 / 0) {
|
|
634
634
|
try {
|
|
635
|
-
return
|
|
635
|
+
return Ne("", t, e, n);
|
|
636
636
|
} catch (r) {
|
|
637
637
|
return { ERROR: `**non-serializable** (${r})` };
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
|
-
function
|
|
641
|
-
let r =
|
|
642
|
-
return
|
|
640
|
+
function W(t, e = 3, n = 100 * 1024) {
|
|
641
|
+
let r = D(t, e);
|
|
642
|
+
return sr(r) > n ? W(t, e - 1, n) : r;
|
|
643
643
|
}
|
|
644
|
-
function
|
|
644
|
+
function Ne(t, e, n = 1 / 0, r = 1 / 0, s = Xt()) {
|
|
645
645
|
let [i, o] = s;
|
|
646
646
|
if (e == null || ["number", "boolean", "string"].includes(typeof e) && !Z(e)) return e;
|
|
647
|
-
let a =
|
|
647
|
+
let a = tr(t, e);
|
|
648
648
|
if (!a.startsWith("[object ")) return a;
|
|
649
649
|
if (e.__sentry_skip_normalization__) return e;
|
|
650
650
|
let c = typeof e.__sentry_override_normalization_depth__ == "number" ? e.__sentry_override_normalization_depth__ : n;
|
|
@@ -653,7 +653,7 @@ function De(t, e, n = 1 / 0, r = 1 / 0, s = Xt()) {
|
|
|
653
653
|
let u = e;
|
|
654
654
|
if (u && typeof u.toJSON == "function") try {
|
|
655
655
|
let _ = u.toJSON();
|
|
656
|
-
return
|
|
656
|
+
return Ne("", _, c - 1, r, s);
|
|
657
657
|
} catch {
|
|
658
658
|
}
|
|
659
659
|
let f = Array.isArray(e) ? [] : {}, d = 0, l = ge(e);
|
|
@@ -664,11 +664,11 @@ function De(t, e, n = 1 / 0, r = 1 / 0, s = Xt()) {
|
|
|
664
664
|
break;
|
|
665
665
|
}
|
|
666
666
|
let M = l[_];
|
|
667
|
-
f[_] =
|
|
667
|
+
f[_] = Ne(_, M, c - 1, r, s), d++;
|
|
668
668
|
}
|
|
669
669
|
return o(e), f;
|
|
670
670
|
}
|
|
671
|
-
function
|
|
671
|
+
function tr(t, e) {
|
|
672
672
|
try {
|
|
673
673
|
if (t === "domain" && e && typeof e == "object" && e._events) return "[Domain]";
|
|
674
674
|
if (t === "domainEmitter") return "[DomainEmitter]";
|
|
@@ -681,29 +681,29 @@ function er(t, e) {
|
|
|
681
681
|
if (typeof e == "function") return `[Function: ${ne(e)}]`;
|
|
682
682
|
if (typeof e == "symbol") return `[${String(e)}]`;
|
|
683
683
|
if (typeof e == "bigint") return `[BigInt: ${String(e)}]`;
|
|
684
|
-
let n =
|
|
684
|
+
let n = nr(e);
|
|
685
685
|
return /^HTML(\w*)Element$/.test(n) ? `[HTMLElement: ${n}]` : `[object ${n}]`;
|
|
686
686
|
} catch (n) {
|
|
687
687
|
return `**non-serializable** (${n})`;
|
|
688
688
|
}
|
|
689
689
|
}
|
|
690
|
-
function
|
|
690
|
+
function nr(t) {
|
|
691
691
|
let e = Object.getPrototypeOf(t);
|
|
692
692
|
return e ? e.constructor.name : "null prototype";
|
|
693
693
|
}
|
|
694
|
-
function
|
|
694
|
+
function rr(t) {
|
|
695
695
|
return ~-encodeURI(t).split(/%..|./).length;
|
|
696
696
|
}
|
|
697
|
-
function
|
|
698
|
-
return
|
|
697
|
+
function sr(t) {
|
|
698
|
+
return rr(JSON.stringify(t));
|
|
699
699
|
}
|
|
700
|
-
var
|
|
701
|
-
function
|
|
702
|
-
let e = t.length > 1024 ? `<truncated>${t.slice(-1024)}` : t, n =
|
|
700
|
+
var ir = /^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;
|
|
701
|
+
function or(t) {
|
|
702
|
+
let e = t.length > 1024 ? `<truncated>${t.slice(-1024)}` : t, n = ir.exec(e);
|
|
703
703
|
return n ? n.slice(1) : [];
|
|
704
704
|
}
|
|
705
705
|
function Qe(t, e) {
|
|
706
|
-
let n =
|
|
706
|
+
let n = or(t)[2];
|
|
707
707
|
return e && n.slice(e.length * -1) === e && (n = n.slice(0, n.length - e.length)), n;
|
|
708
708
|
}
|
|
709
709
|
var A;
|
|
@@ -832,27 +832,27 @@ function et(t) {
|
|
|
832
832
|
}
|
|
833
833
|
return { $: e, add: s, drain: i };
|
|
834
834
|
}
|
|
835
|
-
var Qt =
|
|
835
|
+
var Qt = x();
|
|
836
836
|
var nt = { nowSeconds: () => Date.now() / 1e3 };
|
|
837
|
-
function
|
|
837
|
+
function ar() {
|
|
838
838
|
let { performance: t } = Qt;
|
|
839
839
|
if (!t || !t.now) return;
|
|
840
840
|
let e = Date.now() - t.now();
|
|
841
841
|
return { now: () => t.now(), timeOrigin: e };
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function cr() {
|
|
844
844
|
try {
|
|
845
845
|
return Jt(module, "perf_hooks").performance;
|
|
846
846
|
} catch {
|
|
847
847
|
return;
|
|
848
848
|
}
|
|
849
849
|
}
|
|
850
|
-
var tt =
|
|
850
|
+
var tt = Vt() ? cr() : ar();
|
|
851
851
|
var Zt = tt === void 0 ? nt : { nowSeconds: () => (tt.timeOrigin + tt.now()) / 1e3 };
|
|
852
852
|
var B = nt.nowSeconds.bind(nt);
|
|
853
853
|
var L = Zt.nowSeconds.bind(Zt);
|
|
854
854
|
var ce;
|
|
855
|
-
var
|
|
855
|
+
var ur = (() => {
|
|
856
856
|
let { performance: t } = Qt;
|
|
857
857
|
if (!t || !t.now) {
|
|
858
858
|
ce = "none";
|
|
@@ -861,7 +861,7 @@ var cr = (() => {
|
|
|
861
861
|
let 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, c = typeof o == "number" ? Math.abs(o + n - r) : e, u = c < e;
|
|
862
862
|
return i || u ? s <= c ? (ce = "timeOrigin", t.timeOrigin) : (ce = "navigationStart", o) : (ce = "dateNow", r);
|
|
863
863
|
})();
|
|
864
|
-
var
|
|
864
|
+
var dr = new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");
|
|
865
865
|
function rt(t = h(), e = h().substring(16), n) {
|
|
866
866
|
let r = "";
|
|
867
867
|
return n !== void 0 && (r = n ? "-1" : "-0"), `${t}-${e}${r}`;
|
|
@@ -873,7 +873,7 @@ function it(t, e) {
|
|
|
873
873
|
let [n, r] = t;
|
|
874
874
|
return [n, [...r, e]];
|
|
875
875
|
}
|
|
876
|
-
function
|
|
876
|
+
function De(t, e) {
|
|
877
877
|
let n = t[1];
|
|
878
878
|
for (let r of n) {
|
|
879
879
|
let s = r[0].type;
|
|
@@ -899,14 +899,14 @@ ${JSON.stringify(a)}
|
|
|
899
899
|
try {
|
|
900
900
|
u = JSON.stringify(c);
|
|
901
901
|
} catch {
|
|
902
|
-
u = JSON.stringify(
|
|
902
|
+
u = JSON.stringify(D(c));
|
|
903
903
|
}
|
|
904
904
|
i(u);
|
|
905
905
|
}
|
|
906
906
|
}
|
|
907
|
-
return typeof s == "string" ? s :
|
|
907
|
+
return typeof s == "string" ? s : fr(s);
|
|
908
908
|
}
|
|
909
|
-
function
|
|
909
|
+
function fr(t) {
|
|
910
910
|
let e = t.reduce((s, i) => s + i.length, 0), n = new Uint8Array(e), r = 0;
|
|
911
911
|
for (let s of t) n.set(s, r), r += s.length;
|
|
912
912
|
return n;
|
|
@@ -915,9 +915,9 @@ function at(t, e) {
|
|
|
915
915
|
let n = typeof t.data == "string" ? st(t.data, e) : t.data;
|
|
916
916
|
return [g({ type: "attachment", length: n.length, filename: t.filename, content_type: t.contentType, attachment_type: t.attachmentType }), n];
|
|
917
917
|
}
|
|
918
|
-
var
|
|
918
|
+
var pr = { session: "session", sessions: "session", attachment: "attachment", transaction: "transaction", event: "error", client_report: "internal", user_report: "default", profile: "profile", replay_event: "replay", replay_recording: "replay", check_in: "monitor", statsd: "unknown" };
|
|
919
919
|
function ke(t) {
|
|
920
|
-
return
|
|
920
|
+
return pr[t];
|
|
921
921
|
}
|
|
922
922
|
function Oe(t) {
|
|
923
923
|
if (!t || !t.sdk) return;
|
|
@@ -957,7 +957,7 @@ function nn(t, e) {
|
|
|
957
957
|
let n = { type: e.name || e.constructor.name, value: e.message }, r = ft(t, e);
|
|
958
958
|
return r.length && (n.stacktrace = { frames: r }), n;
|
|
959
959
|
}
|
|
960
|
-
function
|
|
960
|
+
function lr(t) {
|
|
961
961
|
if ("name" in t && typeof t.name == "string") {
|
|
962
962
|
let e = `'${t.name}' captured as exception`;
|
|
963
963
|
return "message" in t && typeof t.message == "string" && (e += ` with message '${t.message}'`), e;
|
|
@@ -969,9 +969,9 @@ function pt(t, e, n, r) {
|
|
|
969
969
|
if (R(n)) {
|
|
970
970
|
let c = t(), u = c.getClient(), f = u && u.getOptions().normalizeDepth;
|
|
971
971
|
c.configureScope((l) => {
|
|
972
|
-
l.setExtra("__serialized__",
|
|
972
|
+
l.setExtra("__serialized__", W(n, f));
|
|
973
973
|
});
|
|
974
|
-
let d =
|
|
974
|
+
let d = lr(n);
|
|
975
975
|
s = r && r.syntheticException || new Error(d), s.message = d;
|
|
976
976
|
} else s = r && r.syntheticException || new Error(n), s.message = n;
|
|
977
977
|
o.synthetic = true;
|
|
@@ -987,25 +987,25 @@ function lt(t, e, n = "info", r, s) {
|
|
|
987
987
|
}
|
|
988
988
|
return i;
|
|
989
989
|
}
|
|
990
|
-
var
|
|
990
|
+
var z = "production";
|
|
991
991
|
function ue() {
|
|
992
992
|
return Q("globalEventProcessors", () => []);
|
|
993
993
|
}
|
|
994
994
|
function rn(t) {
|
|
995
995
|
ue().push(t);
|
|
996
996
|
}
|
|
997
|
-
function
|
|
997
|
+
function K(t, e, n, r = 0) {
|
|
998
998
|
return new S((s, i) => {
|
|
999
999
|
let o = t[r];
|
|
1000
1000
|
if (e === null || typeof o != "function") s(e);
|
|
1001
1001
|
else {
|
|
1002
1002
|
let a = o({ ...e }, n);
|
|
1003
|
-
(typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__) && o.id && a === null && p.log(`Event processor "${o.id}" dropped event`), G(a) ? a.then((c) =>
|
|
1003
|
+
(typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__) && o.id && a === null && p.log(`Event processor "${o.id}" dropped event`), G(a) ? a.then((c) => K(t, c, n, r + 1).then(s)).then(null, i) : K(t, a, n, r + 1).then(s).then(null, i);
|
|
1004
1004
|
}
|
|
1005
1005
|
});
|
|
1006
1006
|
}
|
|
1007
1007
|
function sn(t) {
|
|
1008
|
-
let e = L(), n = { sid: h(), init: true, timestamp: e, started: e, duration: 0, status: "ok", errors: 0, ignoreDuration: false, toJSON: () =>
|
|
1008
|
+
let e = L(), n = { sid: h(), init: true, timestamp: e, started: e, duration: 0, status: "ok", errors: 0, ignoreDuration: false, toJSON: () => mr(n) };
|
|
1009
1009
|
return t && w(n, t), n;
|
|
1010
1010
|
}
|
|
1011
1011
|
function w(t, e = {}) {
|
|
@@ -1021,10 +1021,10 @@ function on(t, e) {
|
|
|
1021
1021
|
let n = {};
|
|
1022
1022
|
e ? n = { status: e } : t.status === "ok" && (n = { status: "exited" }), w(t, n);
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1024
|
+
function mr(t) {
|
|
1025
1025
|
return g({ sid: `${t.sid}`, init: t.init, started: new Date(t.started * 1e3).toISOString(), timestamp: new Date(t.timestamp * 1e3).toISOString(), status: t.status, errors: t.errors, did: typeof t.did == "number" || typeof t.did == "string" ? `${t.did}` : void 0, duration: t.duration, abnormal_mechanism: t.abnormal_mechanism, attrs: { release: t.release, environment: t.environment, ip_address: t.ipAddress, user_agent: t.userAgent } });
|
|
1026
1026
|
}
|
|
1027
|
-
var
|
|
1027
|
+
var _r = 100;
|
|
1028
1028
|
var k = class {
|
|
1029
1029
|
constructor() {
|
|
1030
1030
|
this._notifyingListeners = false, this._scopeListeners = [], this._eventProcessors = [], this._breadcrumbs = [], this._attachments = [], this._user = {}, this._tags = {}, this._extra = {}, this._contexts = {}, this._sdkProcessingMetadata = {}, this._propagationContext = an();
|
|
@@ -1103,7 +1103,7 @@ var k = class {
|
|
|
1103
1103
|
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._span = void 0, this._session = void 0, this._notifyScopeListeners(), this._attachments = [], this._propagationContext = an(), this;
|
|
1104
1104
|
}
|
|
1105
1105
|
addBreadcrumb(e, n) {
|
|
1106
|
-
let r = typeof n == "number" ? n :
|
|
1106
|
+
let r = typeof n == "number" ? n : _r;
|
|
1107
1107
|
if (r <= 0) return this;
|
|
1108
1108
|
let s = { timestamp: B(), ...e }, i = this._breadcrumbs;
|
|
1109
1109
|
return i.push(s), this._breadcrumbs = i.length > r ? i.slice(-r) : i, this._notifyScopeListeners(), this;
|
|
@@ -1135,7 +1135,7 @@ var k = class {
|
|
|
1135
1135
|
}
|
|
1136
1136
|
this._applyFingerprint(e);
|
|
1137
1137
|
let s = this._getBreadcrumbs(), i = [...e.breadcrumbs || [], ...s];
|
|
1138
|
-
return e.breadcrumbs = i.length > 0 ? i : void 0, e.sdkProcessingMetadata = { ...e.sdkProcessingMetadata, ...this._sdkProcessingMetadata, propagationContext: this._propagationContext },
|
|
1138
|
+
return e.breadcrumbs = i.length > 0 ? i : void 0, e.sdkProcessingMetadata = { ...e.sdkProcessingMetadata, ...this._sdkProcessingMetadata, propagationContext: this._propagationContext }, K([...r || [], ...ue(), ...this._eventProcessors], e, n);
|
|
1139
1139
|
}
|
|
1140
1140
|
setSDKProcessingMetadata(e) {
|
|
1141
1141
|
return this._sdkProcessingMetadata = { ...this._sdkProcessingMetadata, ...e }, this;
|
|
@@ -1162,7 +1162,7 @@ function an() {
|
|
|
1162
1162
|
return { traceId: h(), spanId: h().substring(16) };
|
|
1163
1163
|
}
|
|
1164
1164
|
var cn = 4;
|
|
1165
|
-
var
|
|
1165
|
+
var hr = 100;
|
|
1166
1166
|
var Y = class {
|
|
1167
1167
|
constructor(e, n = new k(), r = cn) {
|
|
1168
1168
|
this._version = r, this._stack = [{ scope: n }], e && this.bindClient(e);
|
|
@@ -1225,7 +1225,7 @@ var Y = class {
|
|
|
1225
1225
|
addBreadcrumb(e, n) {
|
|
1226
1226
|
let { scope: r, client: s } = this.getStackTop();
|
|
1227
1227
|
if (!s) return;
|
|
1228
|
-
let { beforeBreadcrumb: i = null, maxBreadcrumbs: o =
|
|
1228
|
+
let { beforeBreadcrumb: i = null, maxBreadcrumbs: o = hr } = s.getOptions && s.getOptions() || {};
|
|
1229
1229
|
if (o <= 0) return;
|
|
1230
1230
|
let c = { timestamp: B(), ...e }, u = i ? _e(() => i(c, n)) : c;
|
|
1231
1231
|
u !== null && (s.emit && s.emit("beforeAddBreadcrumb", u, n), r.addBreadcrumb(u, o));
|
|
@@ -1292,7 +1292,7 @@ Sentry.init({...});
|
|
|
1292
1292
|
r && on(r), this._sendSessionUpdate(), n.setSession();
|
|
1293
1293
|
}
|
|
1294
1294
|
startSession(e) {
|
|
1295
|
-
let { scope: n, client: r } = this.getStackTop(), { release: s, environment: i =
|
|
1295
|
+
let { scope: n, client: r } = this.getStackTop(), { release: s, environment: i = z } = r && r.getOptions() || {}, { userAgent: o } = m.navigator || {}, a = sn({ release: s, environment: i, user: n.getUser(), ...o && { userAgent: o }, ...e }), c = n.getSession && n.getSession();
|
|
1296
1296
|
return c && c.status === "ok" && w(c, { status: "exited" }), this.endSession(), n.setSession(a), a;
|
|
1297
1297
|
}
|
|
1298
1298
|
shouldSendDefaultPii() {
|
|
@@ -1326,12 +1326,12 @@ function b() {
|
|
|
1326
1326
|
let e = t.__SENTRY__.acs.getCurrentHub();
|
|
1327
1327
|
if (e) return e;
|
|
1328
1328
|
}
|
|
1329
|
-
return
|
|
1329
|
+
return gr(t);
|
|
1330
1330
|
}
|
|
1331
|
-
function
|
|
1332
|
-
return (!
|
|
1331
|
+
function gr(t = $()) {
|
|
1332
|
+
return (!Er(t) || Ae(t).isOlderThan(cn)) && _t(t, new Y()), Ae(t);
|
|
1333
1333
|
}
|
|
1334
|
-
function
|
|
1334
|
+
function Er(t) {
|
|
1335
1335
|
return !!(t && t.__SENTRY__ && t.__SENTRY__.hub);
|
|
1336
1336
|
}
|
|
1337
1337
|
function Ae(t) {
|
|
@@ -1347,7 +1347,7 @@ function un(t) {
|
|
|
1347
1347
|
}
|
|
1348
1348
|
var dn = false;
|
|
1349
1349
|
function fn() {
|
|
1350
|
-
dn || (dn = true,
|
|
1350
|
+
dn || (dn = true, Ie("error", ht), Ie("unhandledrejection", ht));
|
|
1351
1351
|
}
|
|
1352
1352
|
function ht() {
|
|
1353
1353
|
let t = un();
|
|
@@ -1365,7 +1365,7 @@ var we = class {
|
|
|
1365
1365
|
this.spans.length > this._maxlen ? e.spanRecorder = void 0 : this.spans.push(e);
|
|
1366
1366
|
}
|
|
1367
1367
|
};
|
|
1368
|
-
var
|
|
1368
|
+
var V = class {
|
|
1369
1369
|
constructor(e = {}) {
|
|
1370
1370
|
this.traceId = e.traceId || h(), this.spanId = e.spanId || h().substring(16), this.startTimestamp = e.startTimestamp || L(), this.tags = e.tags || {}, this.data = e.data || {}, this.instrumenter = e.instrumenter || "sentry", this.origin = e.origin || "manual", e.parentSpanId && (this.parentSpanId = e.parentSpanId), "sampled" in e && (this.sampled = e.sampled), e.op && (this.op = e.op), e.description && (this.description = e.description), e.name && (this.description = e.name), e.status && (this.status = e.status), e.endTimestamp && (this.endTimestamp = e.endTimestamp);
|
|
1371
1371
|
}
|
|
@@ -1376,7 +1376,7 @@ var K = class {
|
|
|
1376
1376
|
this.setName(e);
|
|
1377
1377
|
}
|
|
1378
1378
|
startChild(e) {
|
|
1379
|
-
let n = new
|
|
1379
|
+
let n = new V({ ...e, parentSpanId: this.spanId, sampled: this.sampled, traceId: this.traceId });
|
|
1380
1380
|
if (n.spanRecorder = this.spanRecorder, n.spanRecorder && n.spanRecorder.add(n), n.transaction = this.transaction, (typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__) && n.transaction) {
|
|
1381
1381
|
let r = e && e.op || "< unknown op >", s = n.transaction.name || "< unknown name >", i = n.transaction.spanId, o = `[Tracing] Starting '${r}' span on transaction '${s}' (${i}).`;
|
|
1382
1382
|
n.transaction.metadata.spanMetadata[n.spanId] = { logMessage: o }, p.log(o);
|
|
@@ -1394,7 +1394,7 @@ var K = class {
|
|
|
1394
1394
|
}
|
|
1395
1395
|
setHttpStatus(e) {
|
|
1396
1396
|
this.setTag("http.status_code", String(e)), this.setData("http.response.status_code", e);
|
|
1397
|
-
let n =
|
|
1397
|
+
let n = Sr(e);
|
|
1398
1398
|
return n !== "unknown_error" && this.setStatus(n), this;
|
|
1399
1399
|
}
|
|
1400
1400
|
setName(e) {
|
|
@@ -1426,7 +1426,7 @@ var K = class {
|
|
|
1426
1426
|
return g({ data: Object.keys(this.data).length > 0 ? this.data : void 0, description: this.description, op: this.op, parent_span_id: this.parentSpanId, span_id: this.spanId, start_timestamp: this.startTimestamp, status: this.status, tags: Object.keys(this.tags).length > 0 ? this.tags : void 0, timestamp: this.endTimestamp, trace_id: this.traceId, origin: this.origin });
|
|
1427
1427
|
}
|
|
1428
1428
|
};
|
|
1429
|
-
function
|
|
1429
|
+
function Sr(t) {
|
|
1430
1430
|
if (t < 400 && t >= 100) return "ok";
|
|
1431
1431
|
if (t >= 400 && t < 500) switch (t) {
|
|
1432
1432
|
case 401:
|
|
@@ -1457,10 +1457,10 @@ function Er(t) {
|
|
|
1457
1457
|
return "unknown_error";
|
|
1458
1458
|
}
|
|
1459
1459
|
function J(t, e, n) {
|
|
1460
|
-
let r = e.getOptions(), { publicKey: s } = e.getDsn() || {}, { segment: i } = n && n.getUser() || {}, o = g({ environment: r.environment ||
|
|
1460
|
+
let r = e.getOptions(), { publicKey: s } = e.getDsn() || {}, { segment: i } = n && n.getUser() || {}, o = g({ environment: r.environment || z, release: r.release, user_segment: i, public_key: s, trace_id: t });
|
|
1461
1461
|
return e.emit && e.emit("createDsc", o), o;
|
|
1462
1462
|
}
|
|
1463
|
-
var ve = class extends
|
|
1463
|
+
var ve = class extends V {
|
|
1464
1464
|
constructor(e, n) {
|
|
1465
1465
|
super(e), delete this.description, this._measurements = {}, this._contexts = {}, this._hub = n || b(), this._name = e.name || "", this.metadata = { source: "custom", ...e.metadata, spanMetadata: {} }, this._trimEnd = e.trimEnd, this.transaction = this;
|
|
1466
1466
|
let r = this.metadata.dynamicSamplingContext;
|
|
@@ -1533,16 +1533,16 @@ function ln(t, e, n) {
|
|
|
1533
1533
|
if (!pn(e)) return t.sampled = false, t;
|
|
1534
1534
|
if (t.sampled !== void 0) return t.setMetadata({ sampleRate: Number(t.sampled) }), t;
|
|
1535
1535
|
let r;
|
|
1536
|
-
return typeof e.tracesSampler == "function" ? (r = e.tracesSampler(n), t.setMetadata({ sampleRate: Number(r) })) : n.parentSampled !== void 0 ? r = n.parentSampled : typeof e.tracesSampleRate < "u" ? (r = e.tracesSampleRate, t.setMetadata({ sampleRate: Number(r) })) : (r = 1, t.setMetadata({ sampleRate: r })),
|
|
1536
|
+
return typeof e.tracesSampler == "function" ? (r = e.tracesSampler(n), t.setMetadata({ sampleRate: Number(r) })) : n.parentSampled !== void 0 ? r = n.parentSampled : typeof e.tracesSampleRate < "u" ? (r = e.tracesSampleRate, t.setMetadata({ sampleRate: Number(r) })) : (r = 1, t.setMetadata({ sampleRate: r })), yr(r) ? r ? (t.sampled = Math.random() < r, t.sampled ? ((typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__) && p.log(`[Tracing] starting ${t.op} transaction - ${t.name}`), t) : ((typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__) && p.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`), t)) : ((typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__) && p.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler == "function" ? "tracesSampler returned 0 or false" : "a negative sampling decision was inherited or tracesSampleRate is set to 0"}`), t.sampled = false, t) : ((typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__) && p.warn("[Tracing] Discarding transaction because of invalid sample rate."), t.sampled = false, t);
|
|
1537
1537
|
}
|
|
1538
|
-
function
|
|
1538
|
+
function yr(t) {
|
|
1539
1539
|
return Z(t) || !(typeof t == "number" || typeof t == "boolean") ? ((typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__) && p.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`), false) : t < 0 || t > 1 ? ((typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__) && p.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${t}.`), false) : true;
|
|
1540
1540
|
}
|
|
1541
|
-
function
|
|
1541
|
+
function Tr() {
|
|
1542
1542
|
let e = this.getScope().getSpan();
|
|
1543
1543
|
return e ? { "sentry-trace": e.toTraceparent() } : {};
|
|
1544
1544
|
}
|
|
1545
|
-
function
|
|
1545
|
+
function br(t, e) {
|
|
1546
1546
|
let n = this.getClient(), r = n && n.getOptions() || {}, s = r.instrumenter || "sentry", i = t.instrumenter || "sentry";
|
|
1547
1547
|
s !== i && ((typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__) && p.error(`A transaction was started with instrumenter=\`${i}\`, but the SDK is configured with the \`${s}\` instrumenter.
|
|
1548
1548
|
The transaction will not be sampled. Please use the ${s} instrumentation to start transactions.`), t.sampled = false);
|
|
@@ -1551,7 +1551,7 @@ The transaction will not be sampled. Please use the ${s} instrumentation to star
|
|
|
1551
1551
|
}
|
|
1552
1552
|
function mn() {
|
|
1553
1553
|
let t = $();
|
|
1554
|
-
t.__SENTRY__ && (t.__SENTRY__.extensions = t.__SENTRY__.extensions || {}, t.__SENTRY__.extensions.startTransaction || (t.__SENTRY__.extensions.startTransaction =
|
|
1554
|
+
t.__SENTRY__ && (t.__SENTRY__.extensions = t.__SENTRY__.extensions || {}, t.__SENTRY__.extensions.startTransaction || (t.__SENTRY__.extensions.startTransaction = br), t.__SENTRY__.extensions.traceHeaders || (t.__SENTRY__.extensions.traceHeaders = Tr), fn());
|
|
1555
1555
|
}
|
|
1556
1556
|
var Ce = class {
|
|
1557
1557
|
constructor(e, n) {
|
|
@@ -1587,20 +1587,20 @@ var Ce = class {
|
|
|
1587
1587
|
}
|
|
1588
1588
|
}
|
|
1589
1589
|
};
|
|
1590
|
-
var
|
|
1591
|
-
function
|
|
1590
|
+
var Rr = "7";
|
|
1591
|
+
function Ir(t) {
|
|
1592
1592
|
let e = t.protocol ? `${t.protocol}:` : "", n = t.port ? `:${t.port}` : "";
|
|
1593
1593
|
return `${e}//${t.host}${n}${t.path ? `/${t.path}` : ""}/api/`;
|
|
1594
1594
|
}
|
|
1595
1595
|
function xr(t) {
|
|
1596
|
-
return `${
|
|
1596
|
+
return `${Ir(t)}${t.projectId}/envelope/`;
|
|
1597
1597
|
}
|
|
1598
|
-
function
|
|
1599
|
-
return
|
|
1598
|
+
function Nr(t, e) {
|
|
1599
|
+
return ze({ sentry_key: t.publicKey, sentry_version: Rr, ...e && { sentry_client: `${e.name}/${e.version}` } });
|
|
1600
1600
|
}
|
|
1601
1601
|
function _n(t, e = {}) {
|
|
1602
1602
|
let n = typeof e == "string" ? e : e.tunnel, r = typeof e == "string" || !e._metadata ? void 0 : e._metadata.sdk;
|
|
1603
|
-
return n || `${xr(t)}?${
|
|
1603
|
+
return n || `${xr(t)}?${Nr(t, r)}`;
|
|
1604
1604
|
}
|
|
1605
1605
|
function Dr(t, e) {
|
|
1606
1606
|
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;
|
|
@@ -1616,7 +1616,7 @@ function gn(t, e, n, r) {
|
|
|
1616
1616
|
return delete t.sdkProcessingMetadata, P(o, [[{ type: i }, t]]);
|
|
1617
1617
|
}
|
|
1618
1618
|
var En = [];
|
|
1619
|
-
function
|
|
1619
|
+
function kr(t) {
|
|
1620
1620
|
let e = {};
|
|
1621
1621
|
return t.forEach((n) => {
|
|
1622
1622
|
let { name: r } = n, s = e[r];
|
|
@@ -1630,7 +1630,7 @@ function gt(t) {
|
|
|
1630
1630
|
});
|
|
1631
1631
|
let r;
|
|
1632
1632
|
Array.isArray(n) ? r = [...e, ...n] : typeof n == "function" ? r = ae(n(e)) : r = e;
|
|
1633
|
-
let s =
|
|
1633
|
+
let s = kr(r), i = Or(s, (o) => o.name === "Debug");
|
|
1634
1634
|
if (i !== -1) {
|
|
1635
1635
|
let [o] = s.splice(i, 1);
|
|
1636
1636
|
s.push(o);
|
|
@@ -1654,13 +1654,13 @@ function Et(t, e, n) {
|
|
|
1654
1654
|
}
|
|
1655
1655
|
(typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__) && p.log(`Integration installed: ${e.name}`);
|
|
1656
1656
|
}
|
|
1657
|
-
function
|
|
1657
|
+
function Or(t, e) {
|
|
1658
1658
|
for (let n = 0; n < t.length; n++) if (e(t[n]) === true) return n;
|
|
1659
1659
|
return -1;
|
|
1660
1660
|
}
|
|
1661
1661
|
function Tn(t, e, n, r, s) {
|
|
1662
1662
|
let { normalizeDepth: i = 3, normalizeMaxBreadth: o = 1e3 } = t, a = { ...e, event_id: e.event_id || n.event_id || h(), timestamp: e.timestamp || B() }, c = n.integrations || t.integrations.map((l) => l.name);
|
|
1663
|
-
|
|
1663
|
+
Ar(a, t), Cr(a, c), e.type === void 0 && wr(a, t.stackParser);
|
|
1664
1664
|
let u = r;
|
|
1665
1665
|
n.captureContext && (u = k.clone(u).update(n.captureContext));
|
|
1666
1666
|
let f = T(a), d = s && s.getEventProcessors ? s.getEventProcessors() : [];
|
|
@@ -1670,19 +1670,19 @@ function Tn(t, e, n, r, s) {
|
|
|
1670
1670
|
l.length && (n.attachments = l);
|
|
1671
1671
|
}
|
|
1672
1672
|
f = u.applyToEvent(a, n, d);
|
|
1673
|
-
} else f =
|
|
1674
|
-
return f.then((l) => (l &&
|
|
1673
|
+
} else f = K([...d, ...ue()], a, n);
|
|
1674
|
+
return f.then((l) => (l && vr(l), typeof i == "number" && i > 0 ? Pr(l, i, o) : l));
|
|
1675
1675
|
}
|
|
1676
|
-
function
|
|
1676
|
+
function Ar(t, e) {
|
|
1677
1677
|
let { environment: n, release: r, dist: s, maxValueLength: i = 250 } = e;
|
|
1678
|
-
"environment" in t || (t.environment = "environment" in e ? n :
|
|
1678
|
+
"environment" in t || (t.environment = "environment" in e ? n : z), t.release === void 0 && r !== void 0 && (t.release = r), t.dist === void 0 && s !== void 0 && (t.dist = s), t.message && (t.message = v(t.message, i));
|
|
1679
1679
|
let o = t.exception && t.exception.values && t.exception.values[0];
|
|
1680
1680
|
o && o.value && (o.value = v(o.value, i));
|
|
1681
1681
|
let a = t.request;
|
|
1682
1682
|
a && a.url && (a.url = v(a.url, i));
|
|
1683
1683
|
}
|
|
1684
1684
|
var yn = /* @__PURE__ */ new WeakMap();
|
|
1685
|
-
function
|
|
1685
|
+
function wr(t, e) {
|
|
1686
1686
|
let n = m._sentryDebugIds;
|
|
1687
1687
|
if (!n) return;
|
|
1688
1688
|
let r, s = yn.get(e);
|
|
@@ -1708,7 +1708,7 @@ function Ar(t, e) {
|
|
|
1708
1708
|
} catch {
|
|
1709
1709
|
}
|
|
1710
1710
|
}
|
|
1711
|
-
function
|
|
1711
|
+
function vr(t) {
|
|
1712
1712
|
let e = {};
|
|
1713
1713
|
try {
|
|
1714
1714
|
t.exception.values.forEach((r) => {
|
|
@@ -1725,13 +1725,13 @@ function wr(t) {
|
|
|
1725
1725
|
n.push({ type: "sourcemap", code_file: r, debug_id: e[r] });
|
|
1726
1726
|
});
|
|
1727
1727
|
}
|
|
1728
|
-
function
|
|
1728
|
+
function Cr(t, e) {
|
|
1729
1729
|
e.length > 0 && (t.sdk = t.sdk || {}, t.sdk.integrations = [...t.sdk.integrations || [], ...e]);
|
|
1730
1730
|
}
|
|
1731
|
-
function
|
|
1731
|
+
function Pr(t, e, n) {
|
|
1732
1732
|
if (!t) return null;
|
|
1733
|
-
let r = { ...t, ...t.breadcrumbs && { breadcrumbs: t.breadcrumbs.map((s) => ({ ...s, ...s.data && { data:
|
|
1734
|
-
return t.contexts && t.contexts.trace && r.contexts && (r.contexts.trace = t.contexts.trace, t.contexts.trace.data && (r.contexts.trace.data =
|
|
1733
|
+
let r = { ...t, ...t.breadcrumbs && { breadcrumbs: t.breadcrumbs.map((s) => ({ ...s, ...s.data && { data: D(s.data, e, n) } })) }, ...t.user && { user: D(t.user, e, n) }, ...t.contexts && { contexts: D(t.contexts, e, n) }, ...t.extra && { extra: D(t.extra, e, n) } };
|
|
1734
|
+
return t.contexts && t.contexts.trace && r.contexts && (r.contexts.trace = t.contexts.trace, t.contexts.trace.data && (r.contexts.trace.data = D(t.contexts.trace.data, e, n))), t.spans && (r.spans = t.spans.map((s) => (s.data && (s.data = D(s.data, e, n)), s))), r;
|
|
1735
1735
|
}
|
|
1736
1736
|
var bn = "Not capturing exception because it's already been captured.";
|
|
1737
1737
|
var Pe = class {
|
|
@@ -1742,7 +1742,7 @@ var Pe = class {
|
|
|
1742
1742
|
}
|
|
1743
1743
|
}
|
|
1744
1744
|
captureException(e, n, r) {
|
|
1745
|
-
if (
|
|
1745
|
+
if (xe(e)) {
|
|
1746
1746
|
(typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__) && p.log(bn);
|
|
1747
1747
|
return;
|
|
1748
1748
|
}
|
|
@@ -1758,7 +1758,7 @@ var Pe = class {
|
|
|
1758
1758
|
})), i;
|
|
1759
1759
|
}
|
|
1760
1760
|
captureEvent(e, n, r) {
|
|
1761
|
-
if (n && n.originalException &&
|
|
1761
|
+
if (n && n.originalException && xe(n.originalException)) {
|
|
1762
1762
|
(typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__) && p.log(bn);
|
|
1763
1763
|
return;
|
|
1764
1764
|
}
|
|
@@ -1882,14 +1882,14 @@ var Pe = class {
|
|
|
1882
1882
|
});
|
|
1883
1883
|
}
|
|
1884
1884
|
_processEvent(e, n, r) {
|
|
1885
|
-
let s = this.getOptions(), { sampleRate: i } = s, o =
|
|
1885
|
+
let s = this.getOptions(), { sampleRate: i } = s, o = In(e), a = Rn(e), c = e.type || "error", u = `before send for type \`${c}\``;
|
|
1886
1886
|
if (a && typeof i == "number" && Math.random() > i) return this.recordDroppedEvent("sample_rate", "error", e), F(new y(`Discarding event because it's not included in the random sample (sampling rate = ${i})`, "log"));
|
|
1887
1887
|
let f = c === "replay_event" ? "replay" : c;
|
|
1888
1888
|
return this._prepareEvent(e, n, r).then((d) => {
|
|
1889
1889
|
if (d === null) throw this.recordDroppedEvent("event_processor", f, e), new y("An event processor returned `null`, will not send event.", "log");
|
|
1890
1890
|
if (n.data && n.data.__sentry__ === true) return d;
|
|
1891
|
-
let _ =
|
|
1892
|
-
return
|
|
1891
|
+
let _ = Ur(s, d, n);
|
|
1892
|
+
return Mr(_, u);
|
|
1893
1893
|
}).then((d) => {
|
|
1894
1894
|
if (d === null) throw this.recordDroppedEvent("before_send", f, e), new y(`${u} returned \`null\`, will not send event.`, "log");
|
|
1895
1895
|
let l = r && r.getSession();
|
|
@@ -1922,7 +1922,7 @@ Reason: ${d}`));
|
|
|
1922
1922
|
});
|
|
1923
1923
|
}
|
|
1924
1924
|
};
|
|
1925
|
-
function
|
|
1925
|
+
function Mr(t, e) {
|
|
1926
1926
|
let n = `${e} must return \`null\` or a valid event.`;
|
|
1927
1927
|
if (G(t)) return t.then((r) => {
|
|
1928
1928
|
if (!R(r) && r !== null) throw new y(n);
|
|
@@ -1933,23 +1933,23 @@ function Pr(t, e) {
|
|
|
1933
1933
|
if (!R(t) && t !== null) throw new y(n);
|
|
1934
1934
|
return t;
|
|
1935
1935
|
}
|
|
1936
|
-
function
|
|
1936
|
+
function Ur(t, e, n) {
|
|
1937
1937
|
let { beforeSend: r, beforeSendTransaction: s } = t;
|
|
1938
|
-
return Rn(e) && r ? r(e, n) :
|
|
1938
|
+
return Rn(e) && r ? r(e, n) : In(e) && s ? s(e, n) : e;
|
|
1939
1939
|
}
|
|
1940
1940
|
function Rn(t) {
|
|
1941
1941
|
return t.type === void 0;
|
|
1942
1942
|
}
|
|
1943
|
-
function
|
|
1943
|
+
function In(t) {
|
|
1944
1944
|
return t.type === "transaction";
|
|
1945
1945
|
}
|
|
1946
|
-
function
|
|
1946
|
+
function xn(t, e, n, r, s) {
|
|
1947
1947
|
let i = { sent_at: (/* @__PURE__ */ new Date()).toISOString() };
|
|
1948
1948
|
n && n.sdk && (i.sdk = { name: n.sdk.name, version: n.sdk.version }), r && s && (i.dsn = C(s)), e && (i.trace = g(e));
|
|
1949
|
-
let o =
|
|
1949
|
+
let o = Gr(t);
|
|
1950
1950
|
return P(i, [o]);
|
|
1951
1951
|
}
|
|
1952
|
-
function
|
|
1952
|
+
function Gr(t) {
|
|
1953
1953
|
return [{ type: "check_in" }, t];
|
|
1954
1954
|
}
|
|
1955
1955
|
var de = class extends Pe {
|
|
@@ -1990,7 +1990,7 @@ var de = class extends Pe {
|
|
|
1990
1990
|
e.status !== "in_progress" && (u.duration = e.duration), n && (u.monitor_config = { schedule: n.schedule, checkin_margin: n.checkinMargin, max_runtime: n.maxRuntime, timezone: n.timezone });
|
|
1991
1991
|
let [f, d] = this._getTraceInfoFromScope(r);
|
|
1992
1992
|
d && (u.contexts = { trace: d });
|
|
1993
|
-
let l =
|
|
1993
|
+
let l = xn(u, f, this.getSdkMetadata(), c, this.getDsn());
|
|
1994
1994
|
return (typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__) && p.info("Sending checkin:", e.monitorSlug, e.status), this._sendEnvelope(l), s;
|
|
1995
1995
|
}
|
|
1996
1996
|
_captureRequestSession() {
|
|
@@ -2007,21 +2007,21 @@ var de = class extends Pe {
|
|
|
2007
2007
|
return o ? [o, a] : [J(r, this, e), a];
|
|
2008
2008
|
}
|
|
2009
2009
|
};
|
|
2010
|
-
var
|
|
2011
|
-
function St(t, e, n = et(t.bufferSize ||
|
|
2010
|
+
var Fr = 30;
|
|
2011
|
+
function St(t, e, n = et(t.bufferSize || Fr)) {
|
|
2012
2012
|
let r = {}, s = (o) => n.drain(o);
|
|
2013
2013
|
function i(o) {
|
|
2014
2014
|
let a = [];
|
|
2015
|
-
if (
|
|
2015
|
+
if (De(o, (d, l) => {
|
|
2016
2016
|
let _ = ke(l);
|
|
2017
2017
|
if (ut(r, _)) {
|
|
2018
|
-
let M =
|
|
2018
|
+
let M = Nn(d, l);
|
|
2019
2019
|
t.recordDroppedEvent("ratelimit_backoff", _, M);
|
|
2020
2020
|
} else a.push(d);
|
|
2021
2021
|
}), a.length === 0) return T();
|
|
2022
2022
|
let c = P(o[0], a), u = (d) => {
|
|
2023
|
-
|
|
2024
|
-
let M =
|
|
2023
|
+
De(c, (l, _) => {
|
|
2024
|
+
let M = Nn(l, _);
|
|
2025
2025
|
t.recordDroppedEvent(d, ke(_), M);
|
|
2026
2026
|
});
|
|
2027
2027
|
}, f = () => e({ body: ot(c, t.textEncoder) }).then((d) => (d.statusCode !== void 0 && (d.statusCode < 200 || d.statusCode >= 300) && (typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__) && p.warn(`Sentry responded with status code ${d.statusCode} to sent event.`), r = dt(r, d), d), (d) => {
|
|
@@ -2034,43 +2034,43 @@ function St(t, e, n = et(t.bufferSize || Gr)) {
|
|
|
2034
2034
|
}
|
|
2035
2035
|
return i.__sentry__baseTransport__ = true, { send: i, flush: s };
|
|
2036
2036
|
}
|
|
2037
|
-
function
|
|
2037
|
+
function Nn(t, e) {
|
|
2038
2038
|
if (!(e !== "event" && e !== "transaction")) return Array.isArray(t) ? t[1] : void 0;
|
|
2039
2039
|
}
|
|
2040
2040
|
function kn(t) {
|
|
2041
2041
|
return typeof t == "object" && t !== null;
|
|
2042
2042
|
}
|
|
2043
|
-
function
|
|
2043
|
+
function Br(t) {
|
|
2044
2044
|
return kn(t) && "handled" in t && typeof t.handled == "boolean" && "type" in t && typeof t.type == "string";
|
|
2045
2045
|
}
|
|
2046
|
-
function
|
|
2047
|
-
return kn(t) && "mechanism" in t &&
|
|
2046
|
+
function Lr(t) {
|
|
2047
|
+
return kn(t) && "mechanism" in t && Br(t.mechanism);
|
|
2048
2048
|
}
|
|
2049
|
-
function
|
|
2049
|
+
function Yr() {
|
|
2050
2050
|
if (m.SENTRY_RELEASE && m.SENTRY_RELEASE.id) return m.SENTRY_RELEASE.id;
|
|
2051
2051
|
}
|
|
2052
|
-
function
|
|
2052
|
+
function Dn(t, e) {
|
|
2053
2053
|
return t !== void 0 ? (t[e[0]] = e[1], t) : { [e[0]]: e[1] };
|
|
2054
2054
|
}
|
|
2055
2055
|
function On(t, e) {
|
|
2056
2056
|
return t(e.stack || "", 1);
|
|
2057
2057
|
}
|
|
2058
|
-
function
|
|
2058
|
+
function $r(t) {
|
|
2059
2059
|
let e = t && t.message;
|
|
2060
2060
|
return e ? e.error && typeof e.error.message == "string" ? e.error.message : e : "No error message";
|
|
2061
2061
|
}
|
|
2062
2062
|
function An(t, e) {
|
|
2063
|
-
let n = { type: e.name || e.constructor.name, value:
|
|
2063
|
+
let n = { type: e.name || e.constructor.name, value: $r(e) }, r = On(t, e);
|
|
2064
2064
|
return r.length && (n.stacktrace = { frames: r }), n.type === void 0 && n.value === "" && (n.value = "Unrecoverable error caught"), n;
|
|
2065
2065
|
}
|
|
2066
|
-
function
|
|
2067
|
-
let s, o = (r && r.data &&
|
|
2066
|
+
function jr(t, e, n, r) {
|
|
2067
|
+
let s, o = (r && r.data && Lr(r.data) ? r.data.mechanism : void 0) ?? { handled: true, type: "generic" };
|
|
2068
2068
|
if (U(n)) s = n;
|
|
2069
2069
|
else {
|
|
2070
2070
|
if (R(n)) {
|
|
2071
2071
|
let c = `Non-Error exception captured with keys: ${te(n)}`, u = t?.getClient(), f = u && u.getOptions().normalizeDepth;
|
|
2072
2072
|
t?.configureScope((d) => {
|
|
2073
|
-
d.setExtra("__serialized__",
|
|
2073
|
+
d.setExtra("__serialized__", W(n, f));
|
|
2074
2074
|
}), s = r && r.syntheticException || new Error(c), s.message = c;
|
|
2075
2075
|
} else s = r && r.syntheticException || new Error(n), s.message = n;
|
|
2076
2076
|
o.synthetic = true;
|
|
@@ -2078,7 +2078,7 @@ function $r(t, e, n, r) {
|
|
|
2078
2078
|
let a = { exception: { values: [An(e, s)] } };
|
|
2079
2079
|
return ie(a, void 0, void 0), oe(a, o), { ...a, event_id: r && r.event_id };
|
|
2080
2080
|
}
|
|
2081
|
-
function
|
|
2081
|
+
function Hr(t, e, n = "info", r, s) {
|
|
2082
2082
|
let i = { event_id: r && r.event_id, level: n, message: e };
|
|
2083
2083
|
if (s && r && r.syntheticException) {
|
|
2084
2084
|
let o = On(t, r.syntheticException);
|
|
@@ -2086,24 +2086,24 @@ function jr(t, e, n = "info", r, s) {
|
|
|
2086
2086
|
}
|
|
2087
2087
|
return i;
|
|
2088
2088
|
}
|
|
2089
|
-
var
|
|
2089
|
+
var qr = 5;
|
|
2090
2090
|
var Fe = class {
|
|
2091
2091
|
name = Fe.id;
|
|
2092
2092
|
limit;
|
|
2093
2093
|
constructor(e = {}) {
|
|
2094
|
-
this.limit = e.limit ||
|
|
2094
|
+
this.limit = e.limit || qr;
|
|
2095
2095
|
}
|
|
2096
2096
|
setupOnce(e, n) {
|
|
2097
2097
|
let r = n().getClient();
|
|
2098
2098
|
r && e((s, i) => {
|
|
2099
2099
|
let o = n().getIntegration(Fe);
|
|
2100
|
-
return o ?
|
|
2100
|
+
return o ? Wr(r.getOptions().stackParser, o.limit, s, i) : s;
|
|
2101
2101
|
});
|
|
2102
2102
|
}
|
|
2103
2103
|
};
|
|
2104
2104
|
var Me = Fe;
|
|
2105
2105
|
fe(Me, "id", "LinkedErrors");
|
|
2106
|
-
function
|
|
2106
|
+
function Wr(t, e, n, r) {
|
|
2107
2107
|
if (!n.exception || !n.exception.values || !r || !O(r.originalException, Error)) return n;
|
|
2108
2108
|
let s = wn(t, e, r.originalException);
|
|
2109
2109
|
return n.exception.values = [...s, ...n.exception.values], n;
|
|
@@ -2119,25 +2119,25 @@ var Be = class {
|
|
|
2119
2119
|
constructor(e = {}) {
|
|
2120
2120
|
fe(this, "name", Be.id);
|
|
2121
2121
|
Rt(this, X, void 0);
|
|
2122
|
-
|
|
2122
|
+
It(this, X, { ...zr, ...e });
|
|
2123
2123
|
}
|
|
2124
2124
|
setupOnce(e, n) {
|
|
2125
2125
|
n().getClient() && e((s) => {
|
|
2126
2126
|
let { sdkProcessingMetadata: i } = s;
|
|
2127
|
-
return !n().getIntegration(Be) || !i || ("request" in i && i.request instanceof Request && (s.request = Vr(i.request, Ye(this, X)), s.user =
|
|
2127
|
+
return !n().getIntegration(Be) || !i || ("request" in i && i.request instanceof Request && (s.request = Vr(i.request, Ye(this, X)), s.user = Kr(s.user ?? {}, i.request, Ye(this, X))), "requestData" in i && (s.request ? s.request.data = i.requestData : s.request = { data: i.requestData })), s;
|
|
2128
2128
|
});
|
|
2129
2129
|
}
|
|
2130
2130
|
};
|
|
2131
2131
|
var Ue = Be;
|
|
2132
2132
|
X = /* @__PURE__ */ new WeakMap(), fe(Ue, "id", "RequestData");
|
|
2133
|
-
function
|
|
2133
|
+
function Kr(t, e, n) {
|
|
2134
2134
|
let r = e.headers.get("CF-Connecting-IP"), { allowedIps: s } = n, i = { ...t };
|
|
2135
|
-
return !("ip_address" in t) && r && s !== void 0 &&
|
|
2135
|
+
return !("ip_address" in t) && r && s !== void 0 && Jr(r, s) && (i.ip_address = r), Object.keys(i).length > 0 ? i : void 0;
|
|
2136
2136
|
}
|
|
2137
2137
|
function Vr(t, e) {
|
|
2138
2138
|
let n = t.headers.get("cookie"), r;
|
|
2139
2139
|
if (n) try {
|
|
2140
|
-
r =
|
|
2140
|
+
r = Xr(n);
|
|
2141
2141
|
} catch {
|
|
2142
2142
|
}
|
|
2143
2143
|
let s = {};
|
|
@@ -2159,7 +2159,7 @@ function Vr(t, e) {
|
|
|
2159
2159
|
} else delete i.query_string;
|
|
2160
2160
|
return i;
|
|
2161
2161
|
}
|
|
2162
|
-
function
|
|
2162
|
+
function Jr(t, e) {
|
|
2163
2163
|
return typeof e == "boolean" ? e : e instanceof RegExp ? e.test(t) : Array.isArray(e) ? e.map((r) => r.toLowerCase()).includes(t) : false;
|
|
2164
2164
|
}
|
|
2165
2165
|
function yt(t, e) {
|
|
@@ -2172,7 +2172,7 @@ function yt(t, e) {
|
|
|
2172
2172
|
} else return {};
|
|
2173
2173
|
return Object.keys(t).filter(n).reduce((r, s) => (r[s] = t[s], r), {});
|
|
2174
2174
|
}
|
|
2175
|
-
function
|
|
2175
|
+
function Xr(t) {
|
|
2176
2176
|
if (typeof t != "string") return {};
|
|
2177
2177
|
try {
|
|
2178
2178
|
return t.split(";").map((e) => e.split("=")).reduce((e, [n, r]) => (e[decodeURIComponent(n.trim())] = decodeURIComponent(r.trim()), e), {});
|
|
@@ -2180,7 +2180,7 @@ function Jr(t) {
|
|
|
2180
2180
|
return {};
|
|
2181
2181
|
}
|
|
2182
2182
|
}
|
|
2183
|
-
function
|
|
2183
|
+
function Zr(t, e) {
|
|
2184
2184
|
let n = {};
|
|
2185
2185
|
return t.forEach((r) => {
|
|
2186
2186
|
n[r.name] = r, r.setupOnce((s) => {
|
|
@@ -2194,16 +2194,16 @@ var Tt = class extends de {
|
|
|
2194
2194
|
e._metadata = e._metadata || {}, e._metadata.sdk = e._metadata.sdk || { name: "toucan-js", packages: [{ name: "npm:toucan-js", version: "3.3.1" }], version: "3.3.1" }, super(e);
|
|
2195
2195
|
}
|
|
2196
2196
|
setupIntegrations() {
|
|
2197
|
-
this._isEnabled() && !this._integrationsInitialized && this.#e && (this._integrations =
|
|
2197
|
+
this._isEnabled() && !this._integrationsInitialized && this.#e && (this._integrations = Zr(this._options.integrations, this.#e), this._integrationsInitialized = true);
|
|
2198
2198
|
}
|
|
2199
2199
|
eventFromException(e, n) {
|
|
2200
|
-
return T(
|
|
2200
|
+
return T(jr(this.#e, this._options.stackParser, e, n));
|
|
2201
2201
|
}
|
|
2202
2202
|
eventFromMessage(e, n = "info", r) {
|
|
2203
|
-
return T(
|
|
2203
|
+
return T(Hr(this._options.stackParser, e, n, r, this._options.attachStacktrace));
|
|
2204
2204
|
}
|
|
2205
2205
|
_prepareEvent(e, n, r) {
|
|
2206
|
-
return e.platform = e.platform || "javascript", this.getOptions().request && (e.sdkProcessingMetadata =
|
|
2206
|
+
return e.platform = e.platform || "javascript", this.getOptions().request && (e.sdkProcessingMetadata = Dn(e.sdkProcessingMetadata, ["request", this.getOptions().request])), this.getOptions().requestData && (e.sdkProcessingMetadata = Dn(e.sdkProcessingMetadata, ["requestData", this.getOptions().requestData])), super._prepareEvent(e, n, r);
|
|
2207
2207
|
}
|
|
2208
2208
|
getSdk() {
|
|
2209
2209
|
return this.#e;
|
|
@@ -2218,7 +2218,7 @@ var Tt = class extends de {
|
|
|
2218
2218
|
this.getOptions().enabled = e;
|
|
2219
2219
|
}
|
|
2220
2220
|
};
|
|
2221
|
-
function
|
|
2221
|
+
function Qr(t) {
|
|
2222
2222
|
let [e, n] = Je(t);
|
|
2223
2223
|
return [e, (s) => {
|
|
2224
2224
|
let i = n(s);
|
|
@@ -2229,11 +2229,11 @@ function Zr(t) {
|
|
|
2229
2229
|
return i;
|
|
2230
2230
|
}];
|
|
2231
2231
|
}
|
|
2232
|
-
function
|
|
2232
|
+
function es(t) {
|
|
2233
2233
|
if (t) return Qe(t, ".js");
|
|
2234
2234
|
}
|
|
2235
|
-
var
|
|
2236
|
-
function
|
|
2235
|
+
var ts = Ee(Qr(es));
|
|
2236
|
+
function ns(t) {
|
|
2237
2237
|
function e({ body: n }) {
|
|
2238
2238
|
try {
|
|
2239
2239
|
let s = (t.fetcher ?? fetch)(t.url, { method: "POST", headers: t.headers, body: n }).then((i) => ({ statusCode: i.status, headers: { "retry-after": i.headers.get("Retry-After"), "x-sentry-rate-limits": i.headers.get("X-Sentry-Rate-Limits") } }));
|
|
@@ -2247,10 +2247,10 @@ function ts(t) {
|
|
|
2247
2247
|
var Ge = class extends Y {
|
|
2248
2248
|
constructor(e) {
|
|
2249
2249
|
if (e.defaultIntegrations = e.defaultIntegrations === false ? [] : [...Array.isArray(e.defaultIntegrations) ? e.defaultIntegrations : [new Ue(e.requestDataOptions), new Me()]], e.release === void 0) {
|
|
2250
|
-
let r =
|
|
2250
|
+
let r = Yr();
|
|
2251
2251
|
r !== void 0 && (e.release = r);
|
|
2252
2252
|
}
|
|
2253
|
-
let n = new Tt({ ...e, transport:
|
|
2253
|
+
let n = new Tt({ ...e, transport: ns, integrations: gt(e), stackParser: Ve(e.stackParser || ts), transportOptions: { ...e.transportOptions, context: e.context } });
|
|
2254
2254
|
super(n), n.setSdk(this), n.setupIntegrations();
|
|
2255
2255
|
}
|
|
2256
2256
|
setRequestBody(e) {
|
|
@@ -2268,9 +2268,19 @@ function vn(t, e, n, r, s, i, o, a) {
|
|
|
2268
2268
|
let c = new Ge({ dsn: n, request: t, context: e, sampleRate: 1, requestDataOptions: { allowedHeaders: ["user-agent", "cf-challenge", "accept-encoding", "accept-language", "cf-ray", "content-length", "content-type", "host"], allowedSearchParams: /(.*)/ }, transportOptions: { headers: { "CF-Access-Client-ID": r, "CF-Access-Client-Secret": s } } });
|
|
2269
2269
|
return i && (c.setTag("colo", i.coloId), c.setTag("metal", i.metalId)), o && a && (c.setTag("accountId", o), c.setTag("scriptId", a)), c.setUser({ id: o?.toString() }), c;
|
|
2270
2270
|
}
|
|
2271
|
+
function rs() {
|
|
2272
|
+
return { addLogs: () => {
|
|
2273
|
+
}, setTags: () => {
|
|
2274
|
+
}, end: () => {
|
|
2275
|
+
}, isRecording: true };
|
|
2276
|
+
}
|
|
2277
|
+
function Cn() {
|
|
2278
|
+
return { enterSpan: (t, e, ...n) => e(rs(), ...n), getSpanContext: () => ({ traceId: "test-trace", spanId: "test-span", parentSpanId: "test-parent-span", traceFlags: 0 }), runWithSpanContext: (t, e, ...n) => e(...n), traceId: "test-trace", spanId: "test-span", parentSpanId: "test-parent-span", cfTraceIdHeader: "test-trace:test-span:0" };
|
|
2279
|
+
}
|
|
2271
2280
|
var Le = class {
|
|
2272
2281
|
constructor(e) {
|
|
2273
2282
|
this.data = {};
|
|
2283
|
+
this.hasWritten = false;
|
|
2274
2284
|
this.readyAnalytics = e;
|
|
2275
2285
|
}
|
|
2276
2286
|
setData(e) {
|
|
@@ -2280,30 +2290,32 @@ var Le = class {
|
|
|
2280
2290
|
return this.data[e];
|
|
2281
2291
|
}
|
|
2282
2292
|
write() {
|
|
2283
|
-
this.readyAnalytics && this.readyAnalytics.logEvent({ version: 1, accountId: this.data.accountId, indexId: this.data.scriptId?.toString(), doubles: [this.data.requestTime ?? -1, this.data.coloId ?? -1, this.data.metalId ?? -1, this.data.coloTier ?? -1, this.data.userWorkerAhead === void 0 ? -1 : Number(this.data.userWorkerAhead)], blobs: [this.data.hostname?.substring(0, 256), this.data.dispatchtype, this.data.error?.substring(0, 256), this.data.version, this.data.coloRegion] });
|
|
2293
|
+
this.hasWritten || this.readyAnalytics && (this.hasWritten = true, this.readyAnalytics.logEvent({ version: 1, accountId: this.data.accountId, indexId: this.data.scriptId?.toString(), doubles: [this.data.requestTime ?? -1, this.data.coloId ?? -1, this.data.metalId ?? -1, this.data.coloTier ?? -1, this.data.userWorkerAhead === void 0 ? -1 : Number(this.data.userWorkerAhead)], blobs: [this.data.hostname?.substring(0, 256), this.data.dispatchtype, this.data.error?.substring(0, 256), this.data.version, this.data.coloRegion] }));
|
|
2284
2294
|
}
|
|
2285
2295
|
};
|
|
2286
|
-
var
|
|
2287
|
-
let r, s = new Le(e.ANALYTICS),
|
|
2296
|
+
var nc = { async fetch(t, e, n) {
|
|
2297
|
+
let r, s = false, i = new Le(e.ANALYTICS), o = new pe(e.UNSAFE_PERFORMANCE), a = o.now();
|
|
2288
2298
|
try {
|
|
2289
|
-
r = vn(t, n, e.SENTRY_DSN, e.SENTRY_ACCESS_CLIENT_ID, e.SENTRY_ACCESS_CLIENT_SECRET, e.COLO_METADATA, e.CONFIG?.account_id, e.CONFIG?.script_id);
|
|
2290
|
-
let
|
|
2291
|
-
e.COLO_METADATA && e.VERSION_METADATA && e.CONFIG &&
|
|
2292
|
-
let
|
|
2299
|
+
e.JAEGER || (e.JAEGER = Cn()), r = vn(t, n, e.SENTRY_DSN, e.SENTRY_ACCESS_CLIENT_ID, e.SENTRY_ACCESS_CLIENT_SECRET, e.COLO_METADATA, e.CONFIG?.account_id, e.CONFIG?.script_id);
|
|
2300
|
+
let c = new URL(t.url);
|
|
2301
|
+
e.COLO_METADATA && e.VERSION_METADATA && e.CONFIG && i.setData({ accountId: e.CONFIG.account_id, scriptId: e.CONFIG.script_id, coloId: e.COLO_METADATA.coloId, metalId: e.COLO_METADATA.metalId, coloTier: e.COLO_METADATA.coloTier, coloRegion: e.COLO_METADATA.coloRegion, hostname: c.hostname, version: e.VERSION_METADATA.id, userWorkerAhead: e.CONFIG.invoke_user_worker_ahead_of_assets });
|
|
2302
|
+
let u = t.clone();
|
|
2293
2303
|
if (e.CONFIG.invoke_user_worker_ahead_of_assets) {
|
|
2294
2304
|
if (!e.CONFIG.has_user_worker) throw new Error("Fetch for user worker without having a user worker binding");
|
|
2295
|
-
return e.USER_WORKER.fetch(
|
|
2305
|
+
return i.setData({ dispatchtype: "worker" }), await e.JAEGER.enterSpan("dispatch_worker", async (d) => (d.setTags({ hasUserWorker: true, asset: "ignored", dispatchType: "worker" }), s = true, e.USER_WORKER.fetch(u)));
|
|
2296
2306
|
}
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2307
|
+
let f = await e.ASSET_WORKER.unstable_canFetch(t);
|
|
2308
|
+
return e.CONFIG.has_user_worker && !f ? (i.setData({ dispatchtype: "worker" }), await e.JAEGER.enterSpan("dispatch_worker", async (d) => (d.setTags({ hasUserWorker: e.CONFIG.has_user_worker || false, asset: f, dispatchType: "worker" }), s = true, e.USER_WORKER.fetch(u)))) : (i.setData({ dispatchtype: "asset" }), await e.JAEGER.enterSpan("dispatch_assets", async (d) => (d.setTags({ hasUserWorker: e.CONFIG.has_user_worker || false, asset: f, dispatchType: "asset" }), e.ASSET_WORKER.fetch(u))));
|
|
2309
|
+
} catch (c) {
|
|
2310
|
+
if (s) return;
|
|
2311
|
+
throw c instanceof Error && i.setData({ error: c.message }), r && r.captureException(c), c;
|
|
2300
2312
|
} finally {
|
|
2301
|
-
|
|
2313
|
+
i.setData({ requestTime: o.now() - a }), i.write();
|
|
2302
2314
|
}
|
|
2303
2315
|
} };
|
|
2304
2316
|
|
|
2305
2317
|
// src/asset-workers/router-worker.ts
|
|
2306
|
-
var router_worker_default =
|
|
2318
|
+
var router_worker_default = nc;
|
|
2307
2319
|
export {
|
|
2308
2320
|
router_worker_default as default
|
|
2309
2321
|
};
|