@getsupertab/supertab-js 3.62.0 → 3.62.1
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as Ya, T as Ka, P as Xa, a as Ja, V as Qa } from "./index-
|
|
2
|
-
const
|
|
1
|
+
import { r as Ya, T as Ka, P as Xa, a as Ja, V as Qa } from "./index-DUZ2AbyH.js";
|
|
2
|
+
const I = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, N = globalThis, Le = "10.44.0";
|
|
3
3
|
function Tt() {
|
|
4
4
|
return _n(N), N;
|
|
5
5
|
}
|
|
@@ -55,12 +55,12 @@ function ic(...e) {
|
|
|
55
55
|
Lr("error", ...e);
|
|
56
56
|
}
|
|
57
57
|
function Lr(e, ...t) {
|
|
58
|
-
|
|
58
|
+
I && Wi() && Fe(() => {
|
|
59
59
|
N.console[e](`${ec}[${e}]:`, ...t);
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
function Pr() {
|
|
63
|
-
return
|
|
63
|
+
return I ? it("loggerSettings", () => ({ enabled: !1 })) : { enabled: !1 };
|
|
64
64
|
}
|
|
65
65
|
const S = {
|
|
66
66
|
/** Enable logging. */
|
|
@@ -150,7 +150,7 @@ function Ue(e, t) {
|
|
|
150
150
|
try {
|
|
151
151
|
t();
|
|
152
152
|
} catch (n) {
|
|
153
|
-
|
|
153
|
+
I && S.error(`Error while instrumenting ${e}`, n);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
}
|
|
@@ -161,7 +161,7 @@ function fe(e, t) {
|
|
|
161
161
|
try {
|
|
162
162
|
r(t);
|
|
163
163
|
} catch (s) {
|
|
164
|
-
|
|
164
|
+
I && S.error(
|
|
165
165
|
`Error while triggering instrumentation handler.
|
|
166
166
|
Type: ${e}
|
|
167
167
|
Name: ${ve(r)}
|
|
@@ -214,7 +214,7 @@ function ot(e, t) {
|
|
|
214
214
|
function Vi(e) {
|
|
215
215
|
return ot(e, "ErrorEvent");
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function ws(e) {
|
|
218
218
|
return ot(e, "DOMError");
|
|
219
219
|
}
|
|
220
220
|
function fc(e) {
|
|
@@ -346,7 +346,7 @@ function ne(e, t, n) {
|
|
|
346
346
|
try {
|
|
347
347
|
e[t] = s;
|
|
348
348
|
} catch {
|
|
349
|
-
|
|
349
|
+
I && S.log(`Failed to replace method "${t}" in object`, e);
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
function Re(e, t, n) {
|
|
@@ -358,7 +358,7 @@ function Re(e, t, n) {
|
|
|
358
358
|
configurable: !0
|
|
359
359
|
});
|
|
360
360
|
} catch {
|
|
361
|
-
|
|
361
|
+
I && S.log(`Failed to add non-enumerable property "${t}" to object`, e);
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
function Xi(e, t) {
|
|
@@ -382,15 +382,15 @@ function Ji(e) {
|
|
|
382
382
|
if (En(e)) {
|
|
383
383
|
const t = {
|
|
384
384
|
type: e.type,
|
|
385
|
-
target:
|
|
386
|
-
currentTarget:
|
|
385
|
+
target: Is(e.target),
|
|
386
|
+
currentTarget: Is(e.currentTarget),
|
|
387
387
|
...ks(e)
|
|
388
388
|
};
|
|
389
389
|
return typeof CustomEvent < "u" && Ce(e, CustomEvent) && (t.detail = e.detail), t;
|
|
390
390
|
} else
|
|
391
391
|
return e;
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function Is(e) {
|
|
394
394
|
try {
|
|
395
395
|
return pc(e) ? bn(e) : Object.prototype.toString.call(e);
|
|
396
396
|
} catch {
|
|
@@ -511,7 +511,7 @@ const Zi = 1e3;
|
|
|
511
511
|
function Ot() {
|
|
512
512
|
return xt() / Zi;
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function wc() {
|
|
515
515
|
const { performance: e } = N;
|
|
516
516
|
if (!e?.now || !e.timeOrigin)
|
|
517
517
|
return Ot;
|
|
@@ -520,10 +520,10 @@ function Ic() {
|
|
|
520
520
|
}
|
|
521
521
|
let Rs;
|
|
522
522
|
function Ee() {
|
|
523
|
-
return (Rs ?? (Rs =
|
|
523
|
+
return (Rs ?? (Rs = wc()))();
|
|
524
524
|
}
|
|
525
525
|
let Vn = null;
|
|
526
|
-
function
|
|
526
|
+
function Ic() {
|
|
527
527
|
const { performance: e } = N;
|
|
528
528
|
if (!e?.now)
|
|
529
529
|
return;
|
|
@@ -534,7 +534,7 @@ function wc() {
|
|
|
534
534
|
return typeof i == "number" && Math.abs(i + n - r) < t ? i : r - n;
|
|
535
535
|
}
|
|
536
536
|
function kc() {
|
|
537
|
-
return Vn === null && (Vn =
|
|
537
|
+
return Vn === null && (Vn = Ic()), Vn;
|
|
538
538
|
}
|
|
539
539
|
function Tc(e) {
|
|
540
540
|
const t = Ee(), n = {
|
|
@@ -982,7 +982,7 @@ class ge {
|
|
|
982
982
|
captureException(t, n) {
|
|
983
983
|
const r = n?.event_id || se();
|
|
984
984
|
if (!this._client)
|
|
985
|
-
return
|
|
985
|
+
return I && S.warn("No client configured on scope - will not capture exception!"), r;
|
|
986
986
|
const s = new Error("Sentry syntheticException");
|
|
987
987
|
return this._client.captureException(
|
|
988
988
|
t,
|
|
@@ -1003,7 +1003,7 @@ class ge {
|
|
|
1003
1003
|
captureMessage(t, n, r) {
|
|
1004
1004
|
const s = r?.event_id || se();
|
|
1005
1005
|
if (!this._client)
|
|
1006
|
-
return
|
|
1006
|
+
return I && S.warn("No client configured on scope - will not capture message!"), s;
|
|
1007
1007
|
const i = r?.syntheticException ?? new Error(t);
|
|
1008
1008
|
return this._client.captureMessage(
|
|
1009
1009
|
t,
|
|
@@ -1024,7 +1024,7 @@ class ge {
|
|
|
1024
1024
|
*/
|
|
1025
1025
|
captureEvent(t, n) {
|
|
1026
1026
|
const r = t.event_id || n?.event_id || se();
|
|
1027
|
-
return this._client ? (this._client.captureEvent(t, { ...n, event_id: r }, this), r) : (
|
|
1027
|
+
return this._client ? (this._client.captureEvent(t, { ...n, event_id: r }, this), r) : (I && S.warn("No client configured on scope - will not capture event!"), r);
|
|
1028
1028
|
}
|
|
1029
1029
|
/**
|
|
1030
1030
|
* This will be called on every set call.
|
|
@@ -1131,23 +1131,23 @@ function Lc() {
|
|
|
1131
1131
|
getIsolationScope: () => et().getIsolationScope()
|
|
1132
1132
|
};
|
|
1133
1133
|
}
|
|
1134
|
-
function
|
|
1134
|
+
function wn(e) {
|
|
1135
1135
|
const t = _n(e);
|
|
1136
1136
|
return t.acs ? t.acs : Lc();
|
|
1137
1137
|
}
|
|
1138
1138
|
function oe() {
|
|
1139
1139
|
const e = Tt();
|
|
1140
|
-
return
|
|
1140
|
+
return wn(e).getCurrentScope();
|
|
1141
1141
|
}
|
|
1142
1142
|
function _e() {
|
|
1143
1143
|
const e = Tt();
|
|
1144
|
-
return
|
|
1144
|
+
return wn(e).getIsolationScope();
|
|
1145
1145
|
}
|
|
1146
1146
|
function Pc() {
|
|
1147
1147
|
return it("globalScope", () => new ge());
|
|
1148
1148
|
}
|
|
1149
1149
|
function Fc(...e) {
|
|
1150
|
-
const t = Tt(), n =
|
|
1150
|
+
const t = Tt(), n = wn(t);
|
|
1151
1151
|
if (e.length === 2) {
|
|
1152
1152
|
const [r, s] = e;
|
|
1153
1153
|
return r ? n.withSetScope(r, s) : n.withScope(s);
|
|
@@ -1259,7 +1259,7 @@ function io(e) {
|
|
|
1259
1259
|
};
|
|
1260
1260
|
}
|
|
1261
1261
|
function ru(e) {
|
|
1262
|
-
if (!
|
|
1262
|
+
if (!I)
|
|
1263
1263
|
return !0;
|
|
1264
1264
|
const { port: t, projectId: n, protocol: r } = e;
|
|
1265
1265
|
return ["protocol", "publicKey", "host", "projectId"].find((o) => e[o] ? !1 : (S.error(`Invalid Sentry Dsn: ${o} missing`), !0)) ? !1 : n.match(/^\d+$/) ? tu(r) ? t && isNaN(parseInt(t, 10)) ? (S.error(`Invalid Sentry Dsn: Invalid port ${t}`), !1) : !0 : (S.error(`Invalid Sentry Dsn: Invalid protocol ${r}`), !1) : (S.error(`Invalid Sentry Dsn: Invalid projectId ${n}`), !1);
|
|
@@ -1358,7 +1358,7 @@ function $r(e) {
|
|
|
1358
1358
|
return e[pu] || e;
|
|
1359
1359
|
}
|
|
1360
1360
|
function ao() {
|
|
1361
|
-
const e = Tt(), t =
|
|
1361
|
+
const e = Tt(), t = wn(e);
|
|
1362
1362
|
return t.getActiveSpan ? t.getActiveSpan() : lr(oe());
|
|
1363
1363
|
}
|
|
1364
1364
|
function Ps() {
|
|
@@ -1384,14 +1384,14 @@ function Bs(e, t) {
|
|
|
1384
1384
|
for (const n of t) {
|
|
1385
1385
|
if (gu(n)) {
|
|
1386
1386
|
if (Kt(e.description, n))
|
|
1387
|
-
return
|
|
1387
|
+
return I && Fs(e), !0;
|
|
1388
1388
|
continue;
|
|
1389
1389
|
}
|
|
1390
1390
|
if (!n.name && !n.op)
|
|
1391
1391
|
continue;
|
|
1392
1392
|
const r = n.name ? Kt(e.description, n.name) : !0, s = n.op ? e.op && Kt(e.op, n.op) : !0;
|
|
1393
1393
|
if (r && s)
|
|
1394
|
-
return
|
|
1394
|
+
return I && Fs(e), !0;
|
|
1395
1395
|
}
|
|
1396
1396
|
return !1;
|
|
1397
1397
|
}
|
|
@@ -1450,7 +1450,7 @@ function lo(e, t = 3, n = 100 * 1024) {
|
|
|
1450
1450
|
const r = de(e, t);
|
|
1451
1451
|
return vu(r) > n ? lo(e, t - 1, n) : r;
|
|
1452
1452
|
}
|
|
1453
|
-
function fr(e, t, n = 1 / 0, r = 1 / 0, s =
|
|
1453
|
+
function fr(e, t, n = 1 / 0, r = 1 / 0, s = wu()) {
|
|
1454
1454
|
const [i, o] = s;
|
|
1455
1455
|
if (t == null || // this matches null and undefined -> eqeq not eqeqeq
|
|
1456
1456
|
["boolean", "string"].includes(typeof t) || typeof t == "number" && Number.isFinite(t))
|
|
@@ -1527,7 +1527,7 @@ function bu(e) {
|
|
|
1527
1527
|
function vu(e) {
|
|
1528
1528
|
return bu(JSON.stringify(e));
|
|
1529
1529
|
}
|
|
1530
|
-
function
|
|
1530
|
+
function wu() {
|
|
1531
1531
|
const e = /* @__PURE__ */ new WeakSet();
|
|
1532
1532
|
function t(r) {
|
|
1533
1533
|
return e.has(r) ? !0 : (e.add(r), !1);
|
|
@@ -1540,7 +1540,7 @@ function Iu() {
|
|
|
1540
1540
|
function $e(e, t = []) {
|
|
1541
1541
|
return [e, t];
|
|
1542
1542
|
}
|
|
1543
|
-
function
|
|
1543
|
+
function Iu(e, t) {
|
|
1544
1544
|
const [n, r] = e;
|
|
1545
1545
|
return [n, [...r, t]];
|
|
1546
1546
|
}
|
|
@@ -1786,35 +1786,35 @@ function mr(e, t, n, r) {
|
|
|
1786
1786
|
if (!e || !s)
|
|
1787
1787
|
return e;
|
|
1788
1788
|
const i = s({ ...e }, t);
|
|
1789
|
-
return
|
|
1789
|
+
return I && i === null && S.log(`Event processor "${s.id || "?"}" dropped event`), Ct(i) ? i.then((o) => mr(o, t, n, r + 1)) : mr(i, t, n, r + 1);
|
|
1790
1790
|
}
|
|
1791
|
-
let Ae, Ws, zs,
|
|
1791
|
+
let Ae, Ws, zs, we;
|
|
1792
1792
|
function Du(e) {
|
|
1793
1793
|
const t = N._sentryDebugIds, n = N._debugIds;
|
|
1794
1794
|
if (!t && !n)
|
|
1795
1795
|
return {};
|
|
1796
1796
|
const r = t ? Object.keys(t) : [], s = n ? Object.keys(n) : [];
|
|
1797
|
-
if (
|
|
1798
|
-
return
|
|
1799
|
-
Ws = r.length, zs = s.length,
|
|
1797
|
+
if (we && r.length === Ws && s.length === zs)
|
|
1798
|
+
return we;
|
|
1799
|
+
Ws = r.length, zs = s.length, we = {}, Ae || (Ae = {});
|
|
1800
1800
|
const i = (o, c) => {
|
|
1801
1801
|
for (const a of o) {
|
|
1802
1802
|
const u = c[a], d = Ae?.[a];
|
|
1803
|
-
if (d &&
|
|
1804
|
-
|
|
1803
|
+
if (d && we && u)
|
|
1804
|
+
we[d[0]] = u, Ae && (Ae[a] = [d[0], u]);
|
|
1805
1805
|
else if (u) {
|
|
1806
1806
|
const l = e(a);
|
|
1807
1807
|
for (let f = l.length - 1; f >= 0; f--) {
|
|
1808
1808
|
const h = l[f]?.filename;
|
|
1809
|
-
if (h &&
|
|
1810
|
-
|
|
1809
|
+
if (h && we && Ae) {
|
|
1810
|
+
we[h] = u, Ae[a] = [h, u];
|
|
1811
1811
|
break;
|
|
1812
1812
|
}
|
|
1813
1813
|
}
|
|
1814
1814
|
}
|
|
1815
1815
|
}
|
|
1816
1816
|
};
|
|
1817
|
-
return t && i(r, t), n && i(s, n),
|
|
1817
|
+
return t && i(r, t), n && i(s, n), we;
|
|
1818
1818
|
}
|
|
1819
1819
|
function Lu(e, t) {
|
|
1820
1820
|
const { fingerprint: n, span: r, breadcrumbs: s, sdkProcessingMetadata: i } = t;
|
|
@@ -2073,7 +2073,7 @@ function Vs(e, t) {
|
|
|
2073
2073
|
}
|
|
2074
2074
|
function So(e, t, n) {
|
|
2075
2075
|
if (n[t.name]) {
|
|
2076
|
-
|
|
2076
|
+
I && S.log(`Integration skipped because it was already installed: ${t.name}`);
|
|
2077
2077
|
return;
|
|
2078
2078
|
}
|
|
2079
2079
|
if (n[t.name] = t, !Gs.includes(t.name) && typeof t.setupOnce == "function" && (t.setupOnce(), Gs.push(t.name)), t.setup && typeof t.setup == "function" && t.setup(e), typeof t.preprocessEvent == "function") {
|
|
@@ -2086,7 +2086,7 @@ function So(e, t, n) {
|
|
|
2086
2086
|
});
|
|
2087
2087
|
e.addEventProcessor(s);
|
|
2088
2088
|
}
|
|
2089
|
-
|
|
2089
|
+
I && S.log(`Integration installed: ${t.name}`);
|
|
2090
2090
|
}
|
|
2091
2091
|
function ol(e) {
|
|
2092
2092
|
return [
|
|
@@ -2152,7 +2152,7 @@ function dl(e) {
|
|
|
2152
2152
|
function vo() {
|
|
2153
2153
|
return it("clientToMetricBufferMap", () => /* @__PURE__ */ new WeakMap());
|
|
2154
2154
|
}
|
|
2155
|
-
function
|
|
2155
|
+
function wo(e) {
|
|
2156
2156
|
return typeof e == "object" && typeof e.unref == "function" && e.unref(), e;
|
|
2157
2157
|
}
|
|
2158
2158
|
const qr = /* @__PURE__ */ Symbol.for("SentryBufferFullError");
|
|
@@ -2181,7 +2181,7 @@ function Gr(e = 100) {
|
|
|
2181
2181
|
return c;
|
|
2182
2182
|
const a = [
|
|
2183
2183
|
c,
|
|
2184
|
-
new Promise((u) =>
|
|
2184
|
+
new Promise((u) => wo(setTimeout(() => u(!1), o)))
|
|
2185
2185
|
];
|
|
2186
2186
|
return Promise.race(a);
|
|
2187
2187
|
}
|
|
@@ -2204,7 +2204,7 @@ function pl(e, t = xt()) {
|
|
|
2204
2204
|
function hl(e, t) {
|
|
2205
2205
|
return e[t] || e.all || 0;
|
|
2206
2206
|
}
|
|
2207
|
-
function
|
|
2207
|
+
function Io(e, t, n = xt()) {
|
|
2208
2208
|
return hl(e, t) > n;
|
|
2209
2209
|
}
|
|
2210
2210
|
function ko(e, { statusCode: t, headers: n }, r = xt()) {
|
|
@@ -2233,30 +2233,30 @@ function ml(e, t, n = Gr(
|
|
|
2233
2233
|
const c = [];
|
|
2234
2234
|
if (pr(o, (l, f) => {
|
|
2235
2235
|
const p = Us(f);
|
|
2236
|
-
|
|
2236
|
+
Io(r, p) ? e.recordDroppedEvent("ratelimit_backoff", p) : c.push(l);
|
|
2237
2237
|
}), c.length === 0)
|
|
2238
2238
|
return Promise.resolve({});
|
|
2239
2239
|
const a = $e(o[0], c), u = (l) => {
|
|
2240
2240
|
if (ku(a, ["client_report"])) {
|
|
2241
|
-
|
|
2241
|
+
I && S.warn(`Dropping client report. Will not send outcomes (reason: ${l}).`);
|
|
2242
2242
|
return;
|
|
2243
2243
|
}
|
|
2244
2244
|
pr(a, (f, p) => {
|
|
2245
2245
|
e.recordDroppedEvent(l, Us(p));
|
|
2246
2246
|
});
|
|
2247
2247
|
}, d = () => t({ body: Tu(a) }).then(
|
|
2248
|
-
(l) => l.statusCode === 413 ? (
|
|
2248
|
+
(l) => l.statusCode === 413 ? (I && S.error(
|
|
2249
2249
|
"Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."
|
|
2250
|
-
), u("send_error"), l) : (
|
|
2250
|
+
), u("send_error"), l) : (I && l.statusCode !== void 0 && (l.statusCode < 200 || l.statusCode >= 300) && S.warn(`Sentry responded with status code ${l.statusCode} to sent event.`), r = ko(r, l), l),
|
|
2251
2251
|
(l) => {
|
|
2252
|
-
throw u("network_error"),
|
|
2252
|
+
throw u("network_error"), I && S.error("Encountered error running transport request:", l), l;
|
|
2253
2253
|
}
|
|
2254
2254
|
);
|
|
2255
2255
|
return n.add(d).then(
|
|
2256
2256
|
(l) => l,
|
|
2257
2257
|
(l) => {
|
|
2258
2258
|
if (l === qr)
|
|
2259
|
-
return
|
|
2259
|
+
return I && S.error("Skipped sending event because buffer is full."), u("queue_overflow"), Promise.resolve({});
|
|
2260
2260
|
throw l;
|
|
2261
2261
|
}
|
|
2262
2262
|
);
|
|
@@ -2353,7 +2353,7 @@ function Qs(e, t, n, r, s) {
|
|
|
2353
2353
|
e.on(n, () => {
|
|
2354
2354
|
i = 0, clearTimeout(o), c = !1;
|
|
2355
2355
|
}), e.on(t, (a) => {
|
|
2356
|
-
i += r(a), i >= 8e5 ? s(e) : c || (c = !0, o =
|
|
2356
|
+
i += r(a), i >= 8e5 ? s(e) : c || (c = !0, o = wo(
|
|
2357
2357
|
setTimeout(() => {
|
|
2358
2358
|
s(e);
|
|
2359
2359
|
}, Sl)
|
|
@@ -2375,7 +2375,7 @@ class El {
|
|
|
2375
2375
|
* @param options Options for the client.
|
|
2376
2376
|
*/
|
|
2377
2377
|
constructor(t) {
|
|
2378
|
-
if (this._options = t, this._integrations = {}, this._numProcessing = 0, this._outcomes = {}, this._hooks = {}, this._eventProcessors = [], this._promiseBuffer = Gr(t.transportOptions?.bufferSize ?? To), t.dsn ? this._dsn = ou(t.dsn) :
|
|
2378
|
+
if (this._options = t, this._integrations = {}, this._numProcessing = 0, this._outcomes = {}, this._hooks = {}, this._eventProcessors = [], this._promiseBuffer = Gr(t.transportOptions?.bufferSize ?? To), t.dsn ? this._dsn = ou(t.dsn) : I && S.warn("No DSN provided, client will not send events."), this._dsn) {
|
|
2379
2379
|
const r = nl(
|
|
2380
2380
|
this._dsn,
|
|
2381
2381
|
t.tunnel,
|
|
@@ -2388,11 +2388,11 @@ class El {
|
|
|
2388
2388
|
url: r
|
|
2389
2389
|
});
|
|
2390
2390
|
}
|
|
2391
|
-
this._options.enableLogs = this._options.enableLogs ?? this._options._experiments?.enableLogs, this._options.enableLogs && Qs(this, "afterCaptureLog", "flushLogs",
|
|
2391
|
+
this._options.enableLogs = this._options.enableLogs ?? this._options._experiments?.enableLogs, this._options.enableLogs && Qs(this, "afterCaptureLog", "flushLogs", Il, gr), (this._options.enableMetrics ?? this._options._experiments?.enableMetrics ?? !0) && Qs(
|
|
2392
2392
|
this,
|
|
2393
2393
|
"afterCaptureMetric",
|
|
2394
2394
|
"flushMetrics",
|
|
2395
|
-
|
|
2395
|
+
wl,
|
|
2396
2396
|
bo
|
|
2397
2397
|
);
|
|
2398
2398
|
}
|
|
@@ -2404,7 +2404,7 @@ class El {
|
|
|
2404
2404
|
captureException(t, n, r) {
|
|
2405
2405
|
const s = se();
|
|
2406
2406
|
if (Cs(t))
|
|
2407
|
-
return
|
|
2407
|
+
return I && S.log(Ys), s;
|
|
2408
2408
|
const i = {
|
|
2409
2409
|
event_id: s,
|
|
2410
2410
|
...n
|
|
@@ -2437,7 +2437,7 @@ class El {
|
|
|
2437
2437
|
captureEvent(t, n, r) {
|
|
2438
2438
|
const s = se();
|
|
2439
2439
|
if (n?.originalException && Cs(n.originalException))
|
|
2440
|
-
return
|
|
2440
|
+
return I && S.log(Ys), s;
|
|
2441
2441
|
const i = {
|
|
2442
2442
|
event_id: s,
|
|
2443
2443
|
...n
|
|
@@ -2569,7 +2569,7 @@ class El {
|
|
|
2569
2569
|
this.emit("beforeSendEvent", t, n);
|
|
2570
2570
|
let r = Au(t, this._dsn, this._options._metadata, this._options.tunnel);
|
|
2571
2571
|
for (const s of n.attachments || [])
|
|
2572
|
-
r =
|
|
2572
|
+
r = Iu(r, Ru(s));
|
|
2573
2573
|
this.sendEnvelope(r).then((s) => this.emit("afterSendEvent", t, s));
|
|
2574
2574
|
}
|
|
2575
2575
|
/**
|
|
@@ -2580,13 +2580,13 @@ class El {
|
|
|
2580
2580
|
if ("aggregates" in t) {
|
|
2581
2581
|
const i = t.attrs || {};
|
|
2582
2582
|
if (!i.release && !n) {
|
|
2583
|
-
|
|
2583
|
+
I && S.warn(Ks);
|
|
2584
2584
|
return;
|
|
2585
2585
|
}
|
|
2586
2586
|
i.release = i.release || n, i.environment = i.environment || r, t.attrs = i;
|
|
2587
2587
|
} else {
|
|
2588
2588
|
if (!t.release && !n) {
|
|
2589
|
-
|
|
2589
|
+
I && S.warn(Ks);
|
|
2590
2590
|
return;
|
|
2591
2591
|
}
|
|
2592
2592
|
t.release = t.release || n, t.environment = t.environment || r;
|
|
@@ -2601,7 +2601,7 @@ class El {
|
|
|
2601
2601
|
recordDroppedEvent(t, n, r = 1) {
|
|
2602
2602
|
if (this._options.sendClientReports) {
|
|
2603
2603
|
const s = `${t}:${n}`;
|
|
2604
|
-
|
|
2604
|
+
I && S.log(`Recording outcome: "${s}"${r > 1 ? ` (${r} times)` : ""}`), this._outcomes[s] = (this._outcomes[s] || 0) + r;
|
|
2605
2605
|
}
|
|
2606
2606
|
}
|
|
2607
2607
|
/* eslint-disable @typescript-eslint/unified-signatures */
|
|
@@ -2636,9 +2636,9 @@ class El {
|
|
|
2636
2636
|
try {
|
|
2637
2637
|
return await this._transport.send(t);
|
|
2638
2638
|
} catch (n) {
|
|
2639
|
-
return
|
|
2639
|
+
return I && S.error("Error while sending envelope:", n), {};
|
|
2640
2640
|
}
|
|
2641
|
-
return
|
|
2641
|
+
return I && S.error("Transport disabled"), {};
|
|
2642
2642
|
}
|
|
2643
2643
|
/**
|
|
2644
2644
|
* Disposes of the client and releases all resources.
|
|
@@ -2732,10 +2732,10 @@ class El {
|
|
|
2732
2732
|
* @param scope
|
|
2733
2733
|
*/
|
|
2734
2734
|
_captureEvent(t, n = {}, r = oe(), s = _e()) {
|
|
2735
|
-
return
|
|
2735
|
+
return I && _r(t) && S.log(`Captured error event \`${Co(t)[0] || "<unknown>"}\``), this._processEvent(t, n, r, s).then(
|
|
2736
2736
|
(i) => i.event_id,
|
|
2737
2737
|
(i) => {
|
|
2738
|
-
|
|
2738
|
+
I && (Js(i) ? S.log(i.message) : Xs(i) ? S.warn(i.message) : S.warn(i));
|
|
2739
2739
|
}
|
|
2740
2740
|
);
|
|
2741
2741
|
}
|
|
@@ -2833,17 +2833,17 @@ Reason: ${p}`
|
|
|
2833
2833
|
* Sends client reports as an envelope.
|
|
2834
2834
|
*/
|
|
2835
2835
|
_flushOutcomes() {
|
|
2836
|
-
|
|
2836
|
+
I && S.log("Flushing outcomes...");
|
|
2837
2837
|
const t = this._clearOutcomes();
|
|
2838
2838
|
if (t.length === 0) {
|
|
2839
|
-
|
|
2839
|
+
I && S.log("No outcomes to send");
|
|
2840
2840
|
return;
|
|
2841
2841
|
}
|
|
2842
2842
|
if (!this._dsn) {
|
|
2843
|
-
|
|
2843
|
+
I && S.log("No dsn provided, will not send outcomes");
|
|
2844
2844
|
return;
|
|
2845
2845
|
}
|
|
2846
|
-
|
|
2846
|
+
I && S.log("Sending outcomes:", t);
|
|
2847
2847
|
const n = gl(t, this._options.tunnel && Nt(this._dsn));
|
|
2848
2848
|
this.sendEnvelope(n);
|
|
2849
2849
|
}
|
|
@@ -2921,11 +2921,11 @@ function _r(e) {
|
|
|
2921
2921
|
function Mo(e) {
|
|
2922
2922
|
return e.type === "transaction";
|
|
2923
2923
|
}
|
|
2924
|
-
function
|
|
2924
|
+
function wl(e) {
|
|
2925
2925
|
let t = 0;
|
|
2926
2926
|
return e.name && (t += e.name.length * 2), t += 8, t + Oo(e.attributes);
|
|
2927
2927
|
}
|
|
2928
|
-
function
|
|
2928
|
+
function Il(e) {
|
|
2929
2929
|
let t = 0;
|
|
2930
2930
|
return e.message && (t += e.message.length * 2), t + Oo(e.attributes);
|
|
2931
2931
|
}
|
|
@@ -2947,7 +2947,7 @@ function ti(e) {
|
|
|
2947
2947
|
return kl(e) ? `${e.message} (${e.__sentry_fetch_url_host__})` : e.message;
|
|
2948
2948
|
}
|
|
2949
2949
|
function Tl(e, t) {
|
|
2950
|
-
t.debug === !0 && (
|
|
2950
|
+
t.debug === !0 && (I ? S.enable() : Fe(() => {
|
|
2951
2951
|
console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.");
|
|
2952
2952
|
})), oe().update(t.initialScope);
|
|
2953
2953
|
const r = new e(t);
|
|
@@ -3129,25 +3129,25 @@ function ii(e = {}, t = {}) {
|
|
|
3129
3129
|
function ql(e, t) {
|
|
3130
3130
|
if (e.type) {
|
|
3131
3131
|
if (e.type === "transaction" && Vl(e, t.ignoreTransactions))
|
|
3132
|
-
return
|
|
3132
|
+
return I && S.warn(
|
|
3133
3133
|
`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
3134
3134
|
Event: ${Ne(e)}`
|
|
3135
3135
|
), !0;
|
|
3136
3136
|
} else {
|
|
3137
3137
|
if (Gl(e, t.ignoreErrors))
|
|
3138
|
-
return
|
|
3138
|
+
return I && S.warn(
|
|
3139
3139
|
`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
3140
3140
|
Event: ${Ne(e)}`
|
|
3141
3141
|
), !0;
|
|
3142
3142
|
if (Jl(e))
|
|
3143
|
-
return
|
|
3143
|
+
return I && S.warn(
|
|
3144
3144
|
`Event dropped due to not having an error message, error type or stacktrace.
|
|
3145
3145
|
Event: ${Ne(
|
|
3146
3146
|
e
|
|
3147
3147
|
)}`
|
|
3148
3148
|
), !0;
|
|
3149
3149
|
if (Yl(e, t.denyUrls))
|
|
3150
|
-
return
|
|
3150
|
+
return I && S.warn(
|
|
3151
3151
|
`Event dropped due to being matched by \`denyUrls\` option.
|
|
3152
3152
|
Event: ${Ne(
|
|
3153
3153
|
e
|
|
@@ -3155,7 +3155,7 @@ Event: ${Ne(
|
|
|
3155
3155
|
Url: ${rn(e)}`
|
|
3156
3156
|
), !0;
|
|
3157
3157
|
if (!Kl(e, t.allowUrls))
|
|
3158
|
-
return
|
|
3158
|
+
return I && S.warn(
|
|
3159
3159
|
`Event dropped due to not being matched by \`allowUrls\` option.
|
|
3160
3160
|
Event: ${Ne(
|
|
3161
3161
|
e
|
|
@@ -3199,7 +3199,7 @@ function rn(e) {
|
|
|
3199
3199
|
const n = [...e.exception?.values ?? []].reverse().find((r) => r.mechanism?.parent_id === void 0 && r.stacktrace?.frames?.length)?.stacktrace?.frames;
|
|
3200
3200
|
return n ? Xl(n) : null;
|
|
3201
3201
|
} catch {
|
|
3202
|
-
return
|
|
3202
|
+
return I && S.error(`Cannot extract url for event ${Ne(e)}`), null;
|
|
3203
3203
|
}
|
|
3204
3204
|
}
|
|
3205
3205
|
function Jl(e) {
|
|
@@ -3306,7 +3306,7 @@ const td = "Dedupe", nd = (() => {
|
|
|
3306
3306
|
return t;
|
|
3307
3307
|
try {
|
|
3308
3308
|
if (sd(t, e))
|
|
3309
|
-
return
|
|
3309
|
+
return I && S.warn("Event dropped due to being a duplicate of previously captured event."), null;
|
|
3310
3310
|
} catch {
|
|
3311
3311
|
}
|
|
3312
3312
|
return e = t;
|
|
@@ -3396,7 +3396,7 @@ function fd() {
|
|
|
3396
3396
|
const n = t.createElement("iframe");
|
|
3397
3397
|
n.hidden = !0, t.head.appendChild(n), n.contentWindow?.fetch && (e = Sr(n.contentWindow.fetch)), t.head.removeChild(n);
|
|
3398
3398
|
} catch (n) {
|
|
3399
|
-
|
|
3399
|
+
I && S.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", n);
|
|
3400
3400
|
}
|
|
3401
3401
|
return e;
|
|
3402
3402
|
}
|
|
@@ -3566,7 +3566,7 @@ function Vr(e, t) {
|
|
|
3566
3566
|
};
|
|
3567
3567
|
return n.length && (r.stacktrace = { frames: n }), r.type === void 0 && r.value === "" && (r.value = "Unrecoverable error caught"), r;
|
|
3568
3568
|
}
|
|
3569
|
-
function
|
|
3569
|
+
function wd(e, t, n, r) {
|
|
3570
3570
|
const i = j()?.getOptions().normalizeDepth, o = Nd(t), c = {
|
|
3571
3571
|
__serialized__: lo(t, i)
|
|
3572
3572
|
};
|
|
@@ -3609,9 +3609,9 @@ function Yr(e, t) {
|
|
|
3609
3609
|
}
|
|
3610
3610
|
return [];
|
|
3611
3611
|
}
|
|
3612
|
-
const
|
|
3612
|
+
const Id = /Minified React error #\d+;/i;
|
|
3613
3613
|
function kd(e) {
|
|
3614
|
-
return e &&
|
|
3614
|
+
return e && Id.test(e.message) ? 1 : 0;
|
|
3615
3615
|
}
|
|
3616
3616
|
function Td(e) {
|
|
3617
3617
|
return typeof e.framesToPop == "number" ? e.framesToPop : 0;
|
|
@@ -3639,17 +3639,17 @@ function Kr(e, t, n, r, s) {
|
|
|
3639
3639
|
let i;
|
|
3640
3640
|
if (Vi(t) && t.error)
|
|
3641
3641
|
return Qn(e, t.error);
|
|
3642
|
-
if (
|
|
3642
|
+
if (ws(t) || fc(t)) {
|
|
3643
3643
|
const o = t;
|
|
3644
3644
|
if ("stack" in t)
|
|
3645
3645
|
i = Qn(e, t);
|
|
3646
3646
|
else {
|
|
3647
|
-
const c = o.name || (
|
|
3647
|
+
const c = o.name || (ws(o) ? "DOMError" : "DOMException"), a = o.message ? `${c}: ${o.message}` : c;
|
|
3648
3648
|
i = br(e, a, n, r), cr(i, a);
|
|
3649
3649
|
}
|
|
3650
3650
|
return "code" in o && (i.tags = { ...i.tags, "DOMException.code": `${o.code}` }), i;
|
|
3651
3651
|
}
|
|
3652
|
-
return yn(t) ? Qn(e, t) : _t(t) || En(t) ? (i =
|
|
3652
|
+
return yn(t) ? Qn(e, t) : _t(t) || En(t) ? (i = wd(e, t, n, s), Qe(i, {
|
|
3653
3653
|
synthetic: !0
|
|
3654
3654
|
}), i) : (i = br(e, t, n, r), cr(i, `${t}`), Qe(i, {
|
|
3655
3655
|
synthetic: !0
|
|
@@ -3744,7 +3744,7 @@ function Ld(e) {
|
|
|
3744
3744
|
...e
|
|
3745
3745
|
};
|
|
3746
3746
|
}
|
|
3747
|
-
const bt = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, L = N, Pd = (e, t) => e > t[1] ? "poor" : e > t[0] ? "needs-improvement" : "good",
|
|
3747
|
+
const bt = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, L = N, Pd = (e, t) => e > t[1] ? "poor" : e > t[0] ? "needs-improvement" : "good", In = (e, t, n, r) => {
|
|
3748
3748
|
let s, i;
|
|
3749
3749
|
return (o) => {
|
|
3750
3750
|
t.value >= 0 && (o || r) && (i = t.value - (s ?? 0), (i || s === void 0) && (s = t.value, t.delta = i, t.rating = Pd(t.value, n), e(t)));
|
|
@@ -3857,7 +3857,7 @@ const at = (e, t, n = {}) => {
|
|
|
3857
3857
|
for (const a of c)
|
|
3858
3858
|
a.name === "first-contentful-paint" && (o.disconnect(), a.startTime < n.firstHiddenTime && (r.value = Math.max(a.startTime - kn(), 0), r.entries.push(a), s(!0)));
|
|
3859
3859
|
});
|
|
3860
|
-
o && (s =
|
|
3860
|
+
o && (s = In(e, r, $d, t.reportAllChanges));
|
|
3861
3861
|
});
|
|
3862
3862
|
}, Wd = [0.1, 0.25], zd = (e, t = {}) => {
|
|
3863
3863
|
Hd(
|
|
@@ -3869,7 +3869,7 @@ const at = (e, t, n = {}) => {
|
|
|
3869
3869
|
i._processEntry(u);
|
|
3870
3870
|
i._sessionValue > n.value && (n.value = i._sessionValue, n.entries = i._sessionEntries, r());
|
|
3871
3871
|
}, c = at("layout-shift", o);
|
|
3872
|
-
c && (r =
|
|
3872
|
+
c && (r = In(e, n, Wd, t.reportAllChanges), s.onHidden(() => {
|
|
3873
3873
|
o(c.takeRecords()), r(!0);
|
|
3874
3874
|
}), L?.setTimeout?.(r));
|
|
3875
3875
|
})
|
|
@@ -3985,7 +3985,7 @@ const qo = (e) => {
|
|
|
3985
3985
|
// gained.
|
|
3986
3986
|
durationThreshold: t.durationThreshold ?? Yd
|
|
3987
3987
|
});
|
|
3988
|
-
s =
|
|
3988
|
+
s = In(e, r, Vd, t.reportAllChanges), c && (c.observe({ type: "first-input", buffered: !0 }), n.onHidden(() => {
|
|
3989
3989
|
o(c.takeRecords()), s(!0);
|
|
3990
3990
|
}));
|
|
3991
3991
|
});
|
|
@@ -4007,7 +4007,7 @@ const Jd = [2500, 4e3], Qd = (e, t = {}) => {
|
|
|
4007
4007
|
i._processEntry(u), u.startTime < n.firstHiddenTime && (r.value = Math.max(u.startTime - kn(), 0), r.entries = [u], s());
|
|
4008
4008
|
}, c = at("largest-contentful-paint", o);
|
|
4009
4009
|
if (c) {
|
|
4010
|
-
s =
|
|
4010
|
+
s = In(e, r, Jd, t.reportAllChanges);
|
|
4011
4011
|
const a = Jr(() => {
|
|
4012
4012
|
o(c.takeRecords()), c.disconnect(), s(!0);
|
|
4013
4013
|
}), u = (d) => {
|
|
@@ -4111,7 +4111,7 @@ function Xo(e, t, n) {
|
|
|
4111
4111
|
};
|
|
4112
4112
|
}
|
|
4113
4113
|
const cf = 1e3;
|
|
4114
|
-
let di,
|
|
4114
|
+
let di, wr, Ir;
|
|
4115
4115
|
function Jo(e) {
|
|
4116
4116
|
Be("dom", e), Ue("dom", uf);
|
|
4117
4117
|
}
|
|
@@ -4153,10 +4153,10 @@ function uf() {
|
|
|
4153
4153
|
});
|
|
4154
4154
|
}
|
|
4155
4155
|
function lf(e) {
|
|
4156
|
-
if (e.type !==
|
|
4156
|
+
if (e.type !== wr)
|
|
4157
4157
|
return !1;
|
|
4158
4158
|
try {
|
|
4159
|
-
if (!e.target || e.target._sentryId !==
|
|
4159
|
+
if (!e.target || e.target._sentryId !== Ir)
|
|
4160
4160
|
return !1;
|
|
4161
4161
|
} catch {
|
|
4162
4162
|
}
|
|
@@ -4174,8 +4174,8 @@ function fi(e, t = !1) {
|
|
|
4174
4174
|
return;
|
|
4175
4175
|
Re(n, "_sentryCaptured", !0), r && !r._sentryId && Re(r, "_sentryId", se());
|
|
4176
4176
|
const s = n.type === "keypress" ? "input" : n.type;
|
|
4177
|
-
lf(n) || (e({ event: n, name: s, global: t }),
|
|
4178
|
-
|
|
4177
|
+
lf(n) || (e({ event: n, name: s, global: t }), wr = n.type, Ir = r ? r._sentryId : void 0), clearTimeout(di), di = L.setTimeout(() => {
|
|
4178
|
+
Ir = void 0, wr = void 0;
|
|
4179
4179
|
}, cf);
|
|
4180
4180
|
};
|
|
4181
4181
|
}
|
|
@@ -4399,7 +4399,7 @@ function vf(e, t = Qo("fetch")) {
|
|
|
4399
4399
|
Gr(e.bufferSize || bf)
|
|
4400
4400
|
);
|
|
4401
4401
|
}
|
|
4402
|
-
const xn = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__,
|
|
4402
|
+
const xn = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, wf = 30, If = 50;
|
|
4403
4403
|
function kr(e, t, n, r) {
|
|
4404
4404
|
const s = {
|
|
4405
4405
|
filename: e,
|
|
@@ -4430,7 +4430,7 @@ const kf = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, Tf = /^\s*at (?:(.+?\)(?: \
|
|
|
4430
4430
|
const [i, o] = na(r[1] || Pe, r[2]);
|
|
4431
4431
|
return kr(o, i, r[3] ? +r[3] : void 0, r[4] ? +r[4] : void 0);
|
|
4432
4432
|
}
|
|
4433
|
-
}, Mf = [
|
|
4433
|
+
}, Mf = [wf, xf], Of = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i, Af = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, Nf = (e) => {
|
|
4434
4434
|
const t = Of.exec(e);
|
|
4435
4435
|
if (t) {
|
|
4436
4436
|
if (t[3] && t[3].indexOf(" > eval") > -1) {
|
|
@@ -4440,7 +4440,7 @@ const kf = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, Tf = /^\s*at (?:(.+?\)(?: \
|
|
|
4440
4440
|
let r = t[3], s = t[1] || Pe;
|
|
4441
4441
|
return [s, r] = na(s, r), kr(r, s, t[4] ? +t[4] : void 0, t[5] ? +t[5] : void 0);
|
|
4442
4442
|
}
|
|
4443
|
-
}, Df = [
|
|
4443
|
+
}, Df = [If, Nf], Lf = [Mf, Df], Pf = ji(...Lf), na = (e, t) => {
|
|
4444
4444
|
const n = e.indexOf("safari-extension") !== -1, r = e.indexOf("safari-web-extension") !== -1;
|
|
4445
4445
|
return n || r ? [
|
|
4446
4446
|
e.indexOf("@") !== -1 ? e.split("@")[0] : Pe,
|
|
@@ -4939,13 +4939,13 @@ const gp = () => ({
|
|
|
4939
4939
|
};
|
|
4940
4940
|
}), bp = Ep;
|
|
4941
4941
|
function vp() {
|
|
4942
|
-
return
|
|
4942
|
+
return wp() ? (xn && Fe(() => {
|
|
4943
4943
|
console.error(
|
|
4944
4944
|
"[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/"
|
|
4945
4945
|
);
|
|
4946
4946
|
}), !0) : !1;
|
|
4947
4947
|
}
|
|
4948
|
-
function
|
|
4948
|
+
function wp() {
|
|
4949
4949
|
if (typeof G.window > "u")
|
|
4950
4950
|
return !1;
|
|
4951
4951
|
const e = G;
|
|
@@ -4954,7 +4954,7 @@ function Ip() {
|
|
|
4954
4954
|
const n = vn(), r = ["chrome-extension", "moz-extension", "ms-browser-extension", "safari-web-extension"];
|
|
4955
4955
|
return !(G === G.top && r.some((i) => n.startsWith(`${i}://`)));
|
|
4956
4956
|
}
|
|
4957
|
-
function
|
|
4957
|
+
function Ip(e) {
|
|
4958
4958
|
return [
|
|
4959
4959
|
// TODO(v11): Replace with `eventFiltersIntegration` once we remove the deprecated `inboundFiltersIntegration`
|
|
4960
4960
|
// eslint-disable-next-line deprecation/deprecation
|
|
@@ -4973,7 +4973,7 @@ function wp(e) {
|
|
|
4973
4973
|
}
|
|
4974
4974
|
function kp(e = {}) {
|
|
4975
4975
|
const t = !e.skipBrowserExtensionCheck && vp();
|
|
4976
|
-
let n = e.defaultIntegrations == null ?
|
|
4976
|
+
let n = e.defaultIntegrations == null ? Ip() : e.defaultIntegrations;
|
|
4977
4977
|
const r = {
|
|
4978
4978
|
...e,
|
|
4979
4979
|
enabled: t ? !1 : e.enabled,
|
|
@@ -5201,7 +5201,7 @@ function ua(e) {
|
|
|
5201
5201
|
}
|
|
5202
5202
|
}
|
|
5203
5203
|
let Kp = 1;
|
|
5204
|
-
const Xp = new RegExp("[^a-z0-9-_:]"),
|
|
5204
|
+
const Xp = new RegExp("[^a-z0-9-_:]"), wt = -2;
|
|
5205
5205
|
function is() {
|
|
5206
5206
|
return Kp++;
|
|
5207
5207
|
}
|
|
@@ -5863,9 +5863,9 @@ function Ye(e, t) {
|
|
|
5863
5863
|
if (!Q)
|
|
5864
5864
|
return console.warn(e, "not serialized"), null;
|
|
5865
5865
|
let Z;
|
|
5866
|
-
r.hasNode(e) ? Z = r.getId(e) : gh(Q, k) || !ae && Q.type === K.Text && !Q.isStyle && !Q.textContent.replace(/^\s+|\s+$/gm, "").length ? Z =
|
|
5866
|
+
r.hasNode(e) ? Z = r.getId(e) : gh(Q, k) || !ae && Q.type === K.Text && !Q.isStyle && !Q.textContent.replace(/^\s+|\s+$/gm, "").length ? Z = wt : Z = is();
|
|
5867
5867
|
const C = Object.assign(Q, { id: Z });
|
|
5868
|
-
if (r.add(e, C), Z ===
|
|
5868
|
+
if (r.add(e, C), Z === wt)
|
|
5869
5869
|
return null;
|
|
5870
5870
|
x && x(e);
|
|
5871
5871
|
let ie = !f;
|
|
@@ -6138,13 +6138,13 @@ typeof window < "u" && window.Proxy && window.Reflect && (vi = new Proxy(vi, {
|
|
|
6138
6138
|
return t === "map" && console.error(ze), Reflect.get(e, t, n);
|
|
6139
6139
|
}
|
|
6140
6140
|
}));
|
|
6141
|
-
function
|
|
6141
|
+
function It(e, t, n = {}) {
|
|
6142
6142
|
let r = null, s = 0;
|
|
6143
6143
|
return function(...i) {
|
|
6144
6144
|
const o = Date.now();
|
|
6145
6145
|
!s && n.leading === !1 && (s = o);
|
|
6146
6146
|
const c = t - (o - s), a = this;
|
|
6147
|
-
c <= 0 || c > t ? (r && (
|
|
6147
|
+
c <= 0 || c > t ? (r && (Ih(r), r = null), s = o, e.apply(a, i)) : !r && n.trailing !== !1 && (r = An(() => {
|
|
6148
6148
|
s = n.leading === !1 ? 0 : Date.now(), r = null, e.apply(a, i);
|
|
6149
6149
|
}, c));
|
|
6150
6150
|
};
|
|
@@ -6228,7 +6228,7 @@ function yh(e, t) {
|
|
|
6228
6228
|
return t.getId(e) !== -1;
|
|
6229
6229
|
}
|
|
6230
6230
|
function nr(e, t) {
|
|
6231
|
-
return t.getId(e) ===
|
|
6231
|
+
return t.getId(e) === wt;
|
|
6232
6232
|
}
|
|
6233
6233
|
function _a(e, t) {
|
|
6234
6234
|
if (ht(e))
|
|
@@ -6308,9 +6308,9 @@ function ba(e) {
|
|
|
6308
6308
|
const t = e.ownerDocument;
|
|
6309
6309
|
return t ? t.contains(e) || vh(e) : !1;
|
|
6310
6310
|
}
|
|
6311
|
-
const
|
|
6311
|
+
const wi = {};
|
|
6312
6312
|
function as(e) {
|
|
6313
|
-
const t =
|
|
6313
|
+
const t = wi[e];
|
|
6314
6314
|
if (t)
|
|
6315
6315
|
return t;
|
|
6316
6316
|
const n = window.document;
|
|
@@ -6324,20 +6324,20 @@ function as(e) {
|
|
|
6324
6324
|
i[e]), n.head.removeChild(s);
|
|
6325
6325
|
} catch {
|
|
6326
6326
|
}
|
|
6327
|
-
return
|
|
6327
|
+
return wi[e] = r.bind(
|
|
6328
6328
|
window
|
|
6329
6329
|
);
|
|
6330
6330
|
}
|
|
6331
|
-
function
|
|
6331
|
+
function wh(...e) {
|
|
6332
6332
|
return as("requestAnimationFrame")(...e);
|
|
6333
6333
|
}
|
|
6334
6334
|
function An(...e) {
|
|
6335
6335
|
return as("setTimeout")(...e);
|
|
6336
6336
|
}
|
|
6337
|
-
function
|
|
6337
|
+
function Ih(...e) {
|
|
6338
6338
|
return as("clearTimeout")(...e);
|
|
6339
6339
|
}
|
|
6340
|
-
var R = /* @__PURE__ */ ((e) => (e[e.DomContentLoaded = 0] = "DomContentLoaded", e[e.Load = 1] = "Load", e[e.FullSnapshot = 2] = "FullSnapshot", e[e.IncrementalSnapshot = 3] = "IncrementalSnapshot", e[e.Meta = 4] = "Meta", e[e.Custom = 5] = "Custom", e[e.Plugin = 6] = "Plugin", e))(R || {}),
|
|
6340
|
+
var R = /* @__PURE__ */ ((e) => (e[e.DomContentLoaded = 0] = "DomContentLoaded", e[e.Load = 1] = "Load", e[e.FullSnapshot = 2] = "FullSnapshot", e[e.IncrementalSnapshot = 3] = "IncrementalSnapshot", e[e.Meta = 4] = "Meta", e[e.Custom = 5] = "Custom", e[e.Plugin = 6] = "Plugin", e))(R || {}), w = /* @__PURE__ */ ((e) => (e[e.Mutation = 0] = "Mutation", e[e.MouseMove = 1] = "MouseMove", e[e.MouseInteraction = 2] = "MouseInteraction", e[e.Scroll = 3] = "Scroll", e[e.ViewportResize = 4] = "ViewportResize", e[e.Input = 5] = "Input", e[e.TouchMove = 6] = "TouchMove", e[e.MediaInteraction = 7] = "MediaInteraction", e[e.StyleSheetRule = 8] = "StyleSheetRule", e[e.CanvasMutation = 9] = "CanvasMutation", e[e.Font = 10] = "Font", e[e.Log = 11] = "Log", e[e.Drag = 12] = "Drag", e[e.StyleDeclaration = 13] = "StyleDeclaration", e[e.Selection = 14] = "Selection", e[e.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", e[e.CustomElement = 16] = "CustomElement", e))(w || {}), ee = /* @__PURE__ */ ((e) => (e[e.MouseUp = 0] = "MouseUp", e[e.MouseDown = 1] = "MouseDown", e[e.Click = 2] = "Click", e[e.ContextMenu = 3] = "ContextMenu", e[e.DblClick = 4] = "DblClick", e[e.Focus = 5] = "Focus", e[e.Blur = 6] = "Blur", e[e.TouchStart = 7] = "TouchStart", e[e.TouchMove_Departed = 8] = "TouchMove_Departed", e[e.TouchEnd = 9] = "TouchEnd", e[e.TouchCancel = 10] = "TouchCancel", e))(ee || {}), ye = /* @__PURE__ */ ((e) => (e[e.Mouse = 0] = "Mouse", e[e.Pen = 1] = "Pen", e[e.Touch = 2] = "Touch", e))(ye || {}), je = /* @__PURE__ */ ((e) => (e[e.Play = 0] = "Play", e[e.Pause = 1] = "Pause", e[e.Seeked = 2] = "Seeked", e[e.VolumeChange = 3] = "VolumeChange", e[e.RateChange = 4] = "RateChange", e))(je || {});
|
|
6341
6341
|
function cs(e) {
|
|
6342
6342
|
try {
|
|
6343
6343
|
return e.contentDocument;
|
|
@@ -6350,7 +6350,7 @@ function kh(e) {
|
|
|
6350
6350
|
} catch {
|
|
6351
6351
|
}
|
|
6352
6352
|
}
|
|
6353
|
-
function
|
|
6353
|
+
function Ii(e) {
|
|
6354
6354
|
return "__ln" in e;
|
|
6355
6355
|
}
|
|
6356
6356
|
class Th {
|
|
@@ -6371,10 +6371,10 @@ class Th {
|
|
|
6371
6371
|
previous: null,
|
|
6372
6372
|
next: null
|
|
6373
6373
|
};
|
|
6374
|
-
if (t.__ln = n, t.previousSibling &&
|
|
6374
|
+
if (t.__ln = n, t.previousSibling && Ii(t.previousSibling)) {
|
|
6375
6375
|
const r = t.previousSibling.__ln.next;
|
|
6376
6376
|
n.next = r, n.previous = t.previousSibling.__ln, t.previousSibling.__ln.next = n, r && (r.previous = n);
|
|
6377
|
-
} else if (t.nextSibling &&
|
|
6377
|
+
} else if (t.nextSibling && Ii(t.nextSibling) && t.nextSibling.__ln.previous) {
|
|
6378
6378
|
const r = t.nextSibling.__ln.previous;
|
|
6379
6379
|
n.previous = r, n.next = t.nextSibling.__ln, t.nextSibling.__ln.previous = n, r && (r.next = n);
|
|
6380
6380
|
} else
|
|
@@ -6395,8 +6395,8 @@ class Ch {
|
|
|
6395
6395
|
if (this.frozen || this.locked)
|
|
6396
6396
|
return;
|
|
6397
6397
|
const t = [], n = /* @__PURE__ */ new Set(), r = new Th(), s = (a) => {
|
|
6398
|
-
let u = a, d =
|
|
6399
|
-
for (; d ===
|
|
6398
|
+
let u = a, d = wt;
|
|
6399
|
+
for (; d === wt; )
|
|
6400
6400
|
u = u && u.nextSibling, d = u && this.mirror.getId(u);
|
|
6401
6401
|
return d;
|
|
6402
6402
|
}, i = (a) => {
|
|
@@ -6786,7 +6786,7 @@ function Pt(e) {
|
|
|
6786
6786
|
}
|
|
6787
6787
|
return e && e.target;
|
|
6788
6788
|
}
|
|
6789
|
-
function
|
|
6789
|
+
function wa(e, t) {
|
|
6790
6790
|
const n = new Ch();
|
|
6791
6791
|
Ke.push(n), n.init(e);
|
|
6792
6792
|
let r = window.MutationObserver || /**
|
|
@@ -6825,7 +6825,7 @@ function Oh({
|
|
|
6825
6825
|
};
|
|
6826
6826
|
const s = typeof t.mousemove == "number" ? t.mousemove : 50, i = typeof t.mousemoveCallback == "number" ? t.mousemoveCallback : 500;
|
|
6827
6827
|
let o = [], c;
|
|
6828
|
-
const a =
|
|
6828
|
+
const a = It(
|
|
6829
6829
|
A(
|
|
6830
6830
|
(l) => {
|
|
6831
6831
|
const f = Date.now() - c;
|
|
@@ -6837,7 +6837,7 @@ function Oh({
|
|
|
6837
6837
|
),
|
|
6838
6838
|
i
|
|
6839
6839
|
), u = A(
|
|
6840
|
-
|
|
6840
|
+
It(
|
|
6841
6841
|
A((l) => {
|
|
6842
6842
|
const f = Pt(l), { clientX: p, clientY: h } = Rr(l) ? l.changedTouches[0] : l;
|
|
6843
6843
|
c || (c = fn()), o.push({
|
|
@@ -6846,7 +6846,7 @@ function Oh({
|
|
|
6846
6846
|
id: r.getId(f),
|
|
6847
6847
|
timeOffset: fn() - c
|
|
6848
6848
|
}), a(
|
|
6849
|
-
typeof DragEvent < "u" && l instanceof DragEvent ?
|
|
6849
|
+
typeof DragEvent < "u" && l instanceof DragEvent ? w.Drag : l instanceof MouseEvent ? w.MouseMove : w.TouchMove
|
|
6850
6850
|
);
|
|
6851
6851
|
}),
|
|
6852
6852
|
s,
|
|
@@ -6932,7 +6932,7 @@ function Ah({
|
|
|
6932
6932
|
a.forEach((l) => l());
|
|
6933
6933
|
});
|
|
6934
6934
|
}
|
|
6935
|
-
function
|
|
6935
|
+
function Ia({
|
|
6936
6936
|
scrollCb: e,
|
|
6937
6937
|
doc: t,
|
|
6938
6938
|
mirror: n,
|
|
@@ -6942,7 +6942,7 @@ function wa({
|
|
|
6942
6942
|
sampling: o
|
|
6943
6943
|
}) {
|
|
6944
6944
|
const c = A(
|
|
6945
|
-
|
|
6945
|
+
It(
|
|
6946
6946
|
A((a) => {
|
|
6947
6947
|
const u = Pt(a);
|
|
6948
6948
|
if (!u || re(
|
|
@@ -6976,7 +6976,7 @@ function wa({
|
|
|
6976
6976
|
function Nh({ viewportResizeCb: e }, { win: t }) {
|
|
6977
6977
|
let n = -1, r = -1;
|
|
6978
6978
|
const s = A(
|
|
6979
|
-
|
|
6979
|
+
It(
|
|
6980
6980
|
A(() => {
|
|
6981
6981
|
const i = ha(), o = ma();
|
|
6982
6982
|
(n !== i || r !== o) && (e({
|
|
@@ -7130,7 +7130,7 @@ function pn(e) {
|
|
|
7130
7130
|
}
|
|
7131
7131
|
return n(e, t);
|
|
7132
7132
|
}
|
|
7133
|
-
function
|
|
7133
|
+
function Ie(e, t, n) {
|
|
7134
7134
|
let r, s;
|
|
7135
7135
|
return e ? (e.ownerNode ? r = t.getId(e.ownerNode) : s = n.getId(e), {
|
|
7136
7136
|
styleId: s,
|
|
@@ -7145,7 +7145,7 @@ function Ph({ styleSheetRuleCb: e, mirror: t, stylesheetManager: n }, { win: r }
|
|
|
7145
7145
|
r.CSSStyleSheet.prototype.insertRule = new Proxy(s, {
|
|
7146
7146
|
apply: A(
|
|
7147
7147
|
(d, l, f) => {
|
|
7148
|
-
const [p, h] = f, { id: m, styleId: E } =
|
|
7148
|
+
const [p, h] = f, { id: m, styleId: E } = Ie(
|
|
7149
7149
|
l,
|
|
7150
7150
|
t,
|
|
7151
7151
|
n.styleMirror
|
|
@@ -7162,7 +7162,7 @@ function Ph({ styleSheetRuleCb: e, mirror: t, stylesheetManager: n }, { win: r }
|
|
|
7162
7162
|
r.CSSStyleSheet.prototype.deleteRule = new Proxy(i, {
|
|
7163
7163
|
apply: A(
|
|
7164
7164
|
(d, l, f) => {
|
|
7165
|
-
const [p] = f, { id: h, styleId: m } =
|
|
7165
|
+
const [p] = f, { id: h, styleId: m } = Ie(
|
|
7166
7166
|
l,
|
|
7167
7167
|
t,
|
|
7168
7168
|
n.styleMirror
|
|
@@ -7179,7 +7179,7 @@ function Ph({ styleSheetRuleCb: e, mirror: t, stylesheetManager: n }, { win: r }
|
|
|
7179
7179
|
r.CSSStyleSheet.prototype.replace && (o = r.CSSStyleSheet.prototype.replace, r.CSSStyleSheet.prototype.replace = new Proxy(o, {
|
|
7180
7180
|
apply: A(
|
|
7181
7181
|
(d, l, f) => {
|
|
7182
|
-
const [p] = f, { id: h, styleId: m } =
|
|
7182
|
+
const [p] = f, { id: h, styleId: m } = Ie(
|
|
7183
7183
|
l,
|
|
7184
7184
|
t,
|
|
7185
7185
|
n.styleMirror
|
|
@@ -7196,7 +7196,7 @@ function Ph({ styleSheetRuleCb: e, mirror: t, stylesheetManager: n }, { win: r }
|
|
|
7196
7196
|
r.CSSStyleSheet.prototype.replaceSync && (c = r.CSSStyleSheet.prototype.replaceSync, r.CSSStyleSheet.prototype.replaceSync = new Proxy(c, {
|
|
7197
7197
|
apply: A(
|
|
7198
7198
|
(d, l, f) => {
|
|
7199
|
-
const [p] = f, { id: h, styleId: m } =
|
|
7199
|
+
const [p] = f, { id: h, styleId: m } = Ie(
|
|
7200
7200
|
l,
|
|
7201
7201
|
t,
|
|
7202
7202
|
n.styleMirror
|
|
@@ -7223,7 +7223,7 @@ function Ph({ styleSheetRuleCb: e, mirror: t, stylesheetManager: n }, { win: r }
|
|
|
7223
7223
|
{
|
|
7224
7224
|
apply: A(
|
|
7225
7225
|
(f, p, h) => {
|
|
7226
|
-
const [m, E] = h, { id: _, styleId: k } =
|
|
7226
|
+
const [m, E] = h, { id: _, styleId: k } = Ie(
|
|
7227
7227
|
p.parentStyleSheet,
|
|
7228
7228
|
t,
|
|
7229
7229
|
n.styleMirror
|
|
@@ -7250,7 +7250,7 @@ function Ph({ styleSheetRuleCb: e, mirror: t, stylesheetManager: n }, { win: r }
|
|
|
7250
7250
|
{
|
|
7251
7251
|
apply: A(
|
|
7252
7252
|
(f, p, h) => {
|
|
7253
|
-
const [m] = h, { id: E, styleId: _ } =
|
|
7253
|
+
const [m] = h, { id: E, styleId: _ } = Ie(
|
|
7254
7254
|
p.parentStyleSheet,
|
|
7255
7255
|
t,
|
|
7256
7256
|
n.styleMirror
|
|
@@ -7322,7 +7322,7 @@ function Fh({
|
|
|
7322
7322
|
const [d, l, f] = u;
|
|
7323
7323
|
if (n.has(d))
|
|
7324
7324
|
return i.apply(a, [d, l, f]);
|
|
7325
|
-
const { id: p, styleId: h } =
|
|
7325
|
+
const { id: p, styleId: h } = Ie(
|
|
7326
7326
|
a.parentRule?.parentStyleSheet,
|
|
7327
7327
|
t,
|
|
7328
7328
|
r.styleMirror
|
|
@@ -7348,7 +7348,7 @@ function Fh({
|
|
|
7348
7348
|
const [d] = u;
|
|
7349
7349
|
if (n.has(d))
|
|
7350
7350
|
return o.apply(a, [d]);
|
|
7351
|
-
const { id: l, styleId: f } =
|
|
7351
|
+
const { id: l, styleId: f } = Ie(
|
|
7352
7352
|
a.parentRule?.parentStyleSheet,
|
|
7353
7353
|
t,
|
|
7354
7354
|
r.styleMirror
|
|
@@ -7378,7 +7378,7 @@ function Bh({
|
|
|
7378
7378
|
doc: o
|
|
7379
7379
|
}) {
|
|
7380
7380
|
const c = A(
|
|
7381
|
-
(u) =>
|
|
7381
|
+
(u) => It(
|
|
7382
7382
|
A((d) => {
|
|
7383
7383
|
const l = Pt(d);
|
|
7384
7384
|
if (!l || re(
|
|
@@ -7518,8 +7518,8 @@ function Wh(e, t = {}) {
|
|
|
7518
7518
|
return () => {
|
|
7519
7519
|
};
|
|
7520
7520
|
let r;
|
|
7521
|
-
e.recordDOM && (r =
|
|
7522
|
-
const s = Oh(e), i = Ah(e), o =
|
|
7521
|
+
e.recordDOM && (r = wa(e, e.doc));
|
|
7522
|
+
const s = Oh(e), i = Ah(e), o = Ia(e), c = Nh(e, {
|
|
7523
7523
|
win: n
|
|
7524
7524
|
}), a = Lh(e), u = Bh(e);
|
|
7525
7525
|
let d = () => {
|
|
@@ -7660,7 +7660,7 @@ class jh {
|
|
|
7660
7660
|
timestamp: n.timestamp,
|
|
7661
7661
|
type: R.IncrementalSnapshot,
|
|
7662
7662
|
data: {
|
|
7663
|
-
source:
|
|
7663
|
+
source: w.Mutation,
|
|
7664
7664
|
adds: [
|
|
7665
7665
|
{
|
|
7666
7666
|
parentId: this.mirror.getId(t),
|
|
@@ -7689,7 +7689,7 @@ class jh {
|
|
|
7689
7689
|
), n;
|
|
7690
7690
|
case R.IncrementalSnapshot:
|
|
7691
7691
|
switch (n.data.source) {
|
|
7692
|
-
case
|
|
7692
|
+
case w.Mutation:
|
|
7693
7693
|
return n.data.adds.forEach((r) => {
|
|
7694
7694
|
this.replaceIds(r, t, [
|
|
7695
7695
|
"parentId",
|
|
@@ -7705,30 +7705,30 @@ class jh {
|
|
|
7705
7705
|
}), n.data.texts.forEach((r) => {
|
|
7706
7706
|
this.replaceIds(r, t, ["id"]);
|
|
7707
7707
|
}), n;
|
|
7708
|
-
case
|
|
7709
|
-
case
|
|
7710
|
-
case
|
|
7708
|
+
case w.Drag:
|
|
7709
|
+
case w.TouchMove:
|
|
7710
|
+
case w.MouseMove:
|
|
7711
7711
|
return n.data.positions.forEach((r) => {
|
|
7712
7712
|
this.replaceIds(r, t, ["id"]);
|
|
7713
7713
|
}), n;
|
|
7714
|
-
case
|
|
7714
|
+
case w.ViewportResize:
|
|
7715
7715
|
return !1;
|
|
7716
|
-
case
|
|
7717
|
-
case
|
|
7718
|
-
case
|
|
7719
|
-
case
|
|
7720
|
-
case
|
|
7716
|
+
case w.MediaInteraction:
|
|
7717
|
+
case w.MouseInteraction:
|
|
7718
|
+
case w.Scroll:
|
|
7719
|
+
case w.CanvasMutation:
|
|
7720
|
+
case w.Input:
|
|
7721
7721
|
return this.replaceIds(n.data, t, ["id"]), n;
|
|
7722
|
-
case
|
|
7723
|
-
case
|
|
7722
|
+
case w.StyleSheetRule:
|
|
7723
|
+
case w.StyleDeclaration:
|
|
7724
7724
|
return this.replaceIds(n.data, t, ["id"]), this.replaceStyleIds(n.data, t, ["styleId"]), n;
|
|
7725
|
-
case
|
|
7725
|
+
case w.Font:
|
|
7726
7726
|
return n;
|
|
7727
|
-
case
|
|
7727
|
+
case w.Selection:
|
|
7728
7728
|
return n.data.ranges.forEach((r) => {
|
|
7729
7729
|
this.replaceIds(r, t, ["start", "end"]);
|
|
7730
7730
|
}), n;
|
|
7731
|
-
case
|
|
7731
|
+
case w.AdoptedStyleSheet:
|
|
7732
7732
|
return this.replaceIds(n.data, t, ["id"]), this.replaceStyleIds(n.data, t, ["styleIds"]), n.data.styles?.forEach((r) => {
|
|
7733
7733
|
this.replaceStyleIds(r, t, ["styleId"]);
|
|
7734
7734
|
}), n;
|
|
@@ -7781,7 +7781,7 @@ class Gh {
|
|
|
7781
7781
|
addShadowRoot(t, n) {
|
|
7782
7782
|
if (!mt(t) || this.shadowDoms.has(t)) return;
|
|
7783
7783
|
this.shadowDoms.add(t), this.bypassOptions.canvasManager.addShadowRoot(t);
|
|
7784
|
-
const r =
|
|
7784
|
+
const r = wa(
|
|
7785
7785
|
{
|
|
7786
7786
|
...this.bypassOptions,
|
|
7787
7787
|
doc: n,
|
|
@@ -7792,7 +7792,7 @@ class Gh {
|
|
|
7792
7792
|
t
|
|
7793
7793
|
);
|
|
7794
7794
|
this.restoreHandlers.push(() => r.disconnect()), this.restoreHandlers.push(
|
|
7795
|
-
|
|
7795
|
+
Ia({
|
|
7796
7796
|
...this.bypassOptions,
|
|
7797
7797
|
scrollCb: this.scrollCb,
|
|
7798
7798
|
// https://gist.github.com/praveenpuglia/0832da687ed5a5d7a0907046c9ef1813
|
|
@@ -7929,7 +7929,7 @@ class Kh {
|
|
|
7929
7929
|
return r && Array.from(r).some((s) => s !== n);
|
|
7930
7930
|
}
|
|
7931
7931
|
add(t, n) {
|
|
7932
|
-
this.active || (this.active = !0,
|
|
7932
|
+
this.active || (this.active = !0, wh(() => {
|
|
7933
7933
|
this.nodeMap = /* @__PURE__ */ new WeakMap(), this.active = !1;
|
|
7934
7934
|
})), this.nodeMap.set(t, (this.nodeMap.get(t) || /* @__PURE__ */ new Set()).add(n));
|
|
7935
7935
|
}
|
|
@@ -8044,7 +8044,7 @@ function be(e = {}) {
|
|
|
8044
8044
|
};
|
|
8045
8045
|
q = (P, ue) => {
|
|
8046
8046
|
const O = P;
|
|
8047
|
-
if (O.timestamp = fn(), Ke[0]?.isFrozen() && O.type !== R.FullSnapshot && !(O.type === R.IncrementalSnapshot && O.data.source ===
|
|
8047
|
+
if (O.timestamp = fn(), Ke[0]?.isFrozen() && O.type !== R.FullSnapshot && !(O.type === R.IncrementalSnapshot && O.data.source === w.Mutation) && Ke.forEach((J) => J.unfreeze()), ce)
|
|
8048
8048
|
t?.(_s(O), ue);
|
|
8049
8049
|
else if (ct) {
|
|
8050
8050
|
const J = {
|
|
@@ -8058,7 +8058,7 @@ function be(e = {}) {
|
|
|
8058
8058
|
if (O.type === R.FullSnapshot)
|
|
8059
8059
|
Bn = O, Un = 0;
|
|
8060
8060
|
else if (O.type === R.IncrementalSnapshot) {
|
|
8061
|
-
if (O.data.source ===
|
|
8061
|
+
if (O.data.source === w.Mutation && O.data.isAttachIframe)
|
|
8062
8062
|
return;
|
|
8063
8063
|
Un++;
|
|
8064
8064
|
const J = r && Un >= r, F = n && Bn && O.timestamp - Bn.timestamp > n;
|
|
@@ -8069,26 +8069,26 @@ function be(e = {}) {
|
|
|
8069
8069
|
q({
|
|
8070
8070
|
type: R.IncrementalSnapshot,
|
|
8071
8071
|
data: {
|
|
8072
|
-
source:
|
|
8072
|
+
source: w.Mutation,
|
|
8073
8073
|
...P
|
|
8074
8074
|
}
|
|
8075
8075
|
});
|
|
8076
8076
|
}, ys = (P) => q({
|
|
8077
8077
|
type: R.IncrementalSnapshot,
|
|
8078
8078
|
data: {
|
|
8079
|
-
source:
|
|
8079
|
+
source: w.Scroll,
|
|
8080
8080
|
...P
|
|
8081
8081
|
}
|
|
8082
8082
|
}), Ga = (P) => q({
|
|
8083
8083
|
type: R.IncrementalSnapshot,
|
|
8084
8084
|
data: {
|
|
8085
|
-
source:
|
|
8085
|
+
source: w.CanvasMutation,
|
|
8086
8086
|
...P
|
|
8087
8087
|
}
|
|
8088
8088
|
}), Va = (P) => q({
|
|
8089
8089
|
type: R.IncrementalSnapshot,
|
|
8090
8090
|
data: {
|
|
8091
|
-
source:
|
|
8091
|
+
source: w.AdoptedStyleSheet,
|
|
8092
8092
|
...P
|
|
8093
8093
|
}
|
|
8094
8094
|
}), Me = new Yh({
|
|
@@ -8115,7 +8115,7 @@ function be(e = {}) {
|
|
|
8115
8115
|
mutationCb: (P) => q({
|
|
8116
8116
|
type: R.IncrementalSnapshot,
|
|
8117
8117
|
data: {
|
|
8118
|
-
source:
|
|
8118
|
+
source: w.CanvasMutation,
|
|
8119
8119
|
...P
|
|
8120
8120
|
}
|
|
8121
8121
|
}),
|
|
@@ -8251,7 +8251,7 @@ function be(e = {}) {
|
|
|
8251
8251
|
mouseInteractionCb: (F) => q({
|
|
8252
8252
|
type: R.IncrementalSnapshot,
|
|
8253
8253
|
data: {
|
|
8254
|
-
source:
|
|
8254
|
+
source: w.MouseInteraction,
|
|
8255
8255
|
...F
|
|
8256
8256
|
}
|
|
8257
8257
|
}),
|
|
@@ -8259,35 +8259,35 @@ function be(e = {}) {
|
|
|
8259
8259
|
viewportResizeCb: (F) => q({
|
|
8260
8260
|
type: R.IncrementalSnapshot,
|
|
8261
8261
|
data: {
|
|
8262
|
-
source:
|
|
8262
|
+
source: w.ViewportResize,
|
|
8263
8263
|
...F
|
|
8264
8264
|
}
|
|
8265
8265
|
}),
|
|
8266
8266
|
inputCb: (F) => q({
|
|
8267
8267
|
type: R.IncrementalSnapshot,
|
|
8268
8268
|
data: {
|
|
8269
|
-
source:
|
|
8269
|
+
source: w.Input,
|
|
8270
8270
|
...F
|
|
8271
8271
|
}
|
|
8272
8272
|
}),
|
|
8273
8273
|
mediaInteractionCb: (F) => q({
|
|
8274
8274
|
type: R.IncrementalSnapshot,
|
|
8275
8275
|
data: {
|
|
8276
|
-
source:
|
|
8276
|
+
source: w.MediaInteraction,
|
|
8277
8277
|
...F
|
|
8278
8278
|
}
|
|
8279
8279
|
}),
|
|
8280
8280
|
styleSheetRuleCb: (F) => q({
|
|
8281
8281
|
type: R.IncrementalSnapshot,
|
|
8282
8282
|
data: {
|
|
8283
|
-
source:
|
|
8283
|
+
source: w.StyleSheetRule,
|
|
8284
8284
|
...F
|
|
8285
8285
|
}
|
|
8286
8286
|
}),
|
|
8287
8287
|
styleDeclarationCb: (F) => q({
|
|
8288
8288
|
type: R.IncrementalSnapshot,
|
|
8289
8289
|
data: {
|
|
8290
|
-
source:
|
|
8290
|
+
source: w.StyleDeclaration,
|
|
8291
8291
|
...F
|
|
8292
8292
|
}
|
|
8293
8293
|
}),
|
|
@@ -8295,7 +8295,7 @@ function be(e = {}) {
|
|
|
8295
8295
|
fontCb: (F) => q({
|
|
8296
8296
|
type: R.IncrementalSnapshot,
|
|
8297
8297
|
data: {
|
|
8298
|
-
source:
|
|
8298
|
+
source: w.Font,
|
|
8299
8299
|
...F
|
|
8300
8300
|
}
|
|
8301
8301
|
}),
|
|
@@ -8303,7 +8303,7 @@ function be(e = {}) {
|
|
|
8303
8303
|
q({
|
|
8304
8304
|
type: R.IncrementalSnapshot,
|
|
8305
8305
|
data: {
|
|
8306
|
-
source:
|
|
8306
|
+
source: w.Selection,
|
|
8307
8307
|
...F
|
|
8308
8308
|
}
|
|
8309
8309
|
});
|
|
@@ -8312,7 +8312,7 @@ function be(e = {}) {
|
|
|
8312
8312
|
q({
|
|
8313
8313
|
type: R.IncrementalSnapshot,
|
|
8314
8314
|
data: {
|
|
8315
|
-
source:
|
|
8315
|
+
source: w.CustomElement,
|
|
8316
8316
|
...F
|
|
8317
8317
|
}
|
|
8318
8318
|
});
|
|
@@ -8470,13 +8470,13 @@ function rm() {
|
|
|
8470
8470
|
});
|
|
8471
8471
|
}
|
|
8472
8472
|
const sm = /* @__PURE__ */ new Set([
|
|
8473
|
-
|
|
8474
|
-
|
|
8475
|
-
|
|
8476
|
-
|
|
8477
|
-
|
|
8478
|
-
|
|
8479
|
-
|
|
8473
|
+
w.Mutation,
|
|
8474
|
+
w.StyleSheetRule,
|
|
8475
|
+
w.StyleDeclaration,
|
|
8476
|
+
w.AdoptedStyleSheet,
|
|
8477
|
+
w.CanvasMutation,
|
|
8478
|
+
w.Selection,
|
|
8479
|
+
w.MediaInteraction
|
|
8480
8480
|
]);
|
|
8481
8481
|
function im(e, t, n) {
|
|
8482
8482
|
e.handleClick(t, n);
|
|
@@ -8607,7 +8607,7 @@ function lm(e, t) {
|
|
|
8607
8607
|
if (!dm(t))
|
|
8608
8608
|
return;
|
|
8609
8609
|
const { source: n } = t.data;
|
|
8610
|
-
if (sm.has(n) && e.registerMutation(t.timestamp), n ===
|
|
8610
|
+
if (sm.has(n) && e.registerMutation(t.timestamp), n === w.Scroll && e.registerScroll(t.timestamp), fm(t)) {
|
|
8611
8611
|
const { type: r, id: s } = t.data, i = be.mirror.getNode(s);
|
|
8612
8612
|
i instanceof HTMLElement && r === ee.Click && e.registerClick(i);
|
|
8613
8613
|
}
|
|
@@ -8618,7 +8618,7 @@ function dm(e) {
|
|
|
8618
8618
|
return e.type === Qh;
|
|
8619
8619
|
}
|
|
8620
8620
|
function fm(e) {
|
|
8621
|
-
return e.data.source ===
|
|
8621
|
+
return e.data.source === w.MouseInteraction;
|
|
8622
8622
|
}
|
|
8623
8623
|
function me(e) {
|
|
8624
8624
|
return {
|
|
@@ -8743,10 +8743,10 @@ function sr(e, t) {
|
|
|
8743
8743
|
t.replayPerformanceEntries.push(e(n));
|
|
8744
8744
|
};
|
|
8745
8745
|
}
|
|
8746
|
-
function Im(e) {
|
|
8747
|
-
return e.map(wm).filter(Boolean);
|
|
8748
|
-
}
|
|
8749
8746
|
function wm(e) {
|
|
8747
|
+
return e.map(Im).filter(Boolean);
|
|
8748
|
+
}
|
|
8749
|
+
function Im(e) {
|
|
8750
8750
|
const t = vm[e.entryType];
|
|
8751
8751
|
return t ? t(e) : null;
|
|
8752
8752
|
}
|
|
@@ -9772,11 +9772,11 @@ function Eg(e, {
|
|
|
9772
9772
|
}
|
|
9773
9773
|
}
|
|
9774
9774
|
async function bg(e) {
|
|
9775
|
-
const t =
|
|
9775
|
+
const t = wg(e);
|
|
9776
9776
|
if (!t)
|
|
9777
9777
|
return [void 0, "BODY_PARSE_ERROR"];
|
|
9778
9778
|
try {
|
|
9779
|
-
return [await
|
|
9779
|
+
return [await Ig(t)];
|
|
9780
9780
|
} catch (n) {
|
|
9781
9781
|
return n instanceof Error && n.message.indexOf("Timeout") > -1 ? (b && v.warn("Parsing text body from response timed out"), [void 0, "BODY_PARSE_TIMEOUT"]) : (b && v.exception(n, "Failed to get text body from response"), [void 0, "BODY_PARSE_ERROR"]);
|
|
9782
9782
|
}
|
|
@@ -9796,14 +9796,14 @@ function Pi(e, t) {
|
|
|
9796
9796
|
const n = e.headers;
|
|
9797
9797
|
return n ? n instanceof Headers ? Wa(n, t) : Array.isArray(n) ? {} : Dr(n, t) : {};
|
|
9798
9798
|
}
|
|
9799
|
-
function
|
|
9799
|
+
function wg(e) {
|
|
9800
9800
|
try {
|
|
9801
9801
|
return e.clone();
|
|
9802
9802
|
} catch (t) {
|
|
9803
9803
|
b && v.exception(t, "Failed to clone response body");
|
|
9804
9804
|
}
|
|
9805
9805
|
}
|
|
9806
|
-
function
|
|
9806
|
+
function Ig(e) {
|
|
9807
9807
|
return new Promise((t, n) => {
|
|
9808
9808
|
const r = Lt(() => n(new Error("Timeout while trying to read response body")), 500);
|
|
9809
9809
|
kg(e).then(
|
|
@@ -10163,7 +10163,7 @@ async function Xg({
|
|
|
10163
10163
|
throw W;
|
|
10164
10164
|
}
|
|
10165
10165
|
const B = ko({}, k);
|
|
10166
|
-
if (
|
|
10166
|
+
if (Io(B, "replay"))
|
|
10167
10167
|
throw new gs(B);
|
|
10168
10168
|
if (typeof k.statusCode == "number" && (k.statusCode < 200 || k.statusCode >= 300))
|
|
10169
10169
|
throw new za(k.statusCode);
|
|
@@ -10782,7 +10782,7 @@ class Zg {
|
|
|
10782
10782
|
* are included in the replay event before it is finished and sent to Sentry.
|
|
10783
10783
|
*/
|
|
10784
10784
|
_addPerformanceEntries() {
|
|
10785
|
-
let t =
|
|
10785
|
+
let t = wm(this.performanceEntries).concat(this.replayPerformanceEntries);
|
|
10786
10786
|
if (this.performanceEntries = [], this.replayPerformanceEntries = [], this._requiresManualStart) {
|
|
10787
10787
|
const n = this._context.initialTimestamp / 1e3;
|
|
10788
10788
|
t = t.filter((r) => r.start >= n);
|
|
@@ -11203,24 +11203,30 @@ const u_ = [
|
|
|
11203
11203
|
/monetization-provider\.js$/,
|
|
11204
11204
|
/googlefc\.js$/
|
|
11205
11205
|
];
|
|
11206
|
+
function l_(e) {
|
|
11207
|
+
return e.exception?.values?.some((n) => {
|
|
11208
|
+
const r = n.stacktrace?.frames;
|
|
11209
|
+
return r?.length ? ((n.mechanism?.type ?? "").startsWith(
|
|
11210
|
+
"auto.browser.browserapierrors"
|
|
11211
|
+
) ? r.slice(-1) : r.slice(-2)).some((c) => {
|
|
11212
|
+
const a = c.filename;
|
|
11213
|
+
return a && u_.some((u) => u.test(a));
|
|
11214
|
+
}) : !1;
|
|
11215
|
+
}) ? e : null;
|
|
11216
|
+
}
|
|
11206
11217
|
c_({
|
|
11207
11218
|
dsn: Qa,
|
|
11208
11219
|
release: `${Xa}@${Ja}`,
|
|
11209
11220
|
environment: Ka,
|
|
11210
11221
|
integrations: [i_()],
|
|
11211
|
-
beforeSend:
|
|
11212
|
-
const r = n.stacktrace?.frames;
|
|
11213
|
-
return r?.length ? r.slice(-2).some((i) => {
|
|
11214
|
-
const o = i.filename;
|
|
11215
|
-
return o && u_.some((c) => c.test(o));
|
|
11216
|
-
}) : !1;
|
|
11217
|
-
}) ? e : null,
|
|
11222
|
+
beforeSend: l_,
|
|
11218
11223
|
tracesSampleRate: 0,
|
|
11219
11224
|
profilesSampleRate: 0,
|
|
11220
11225
|
replaysSessionSampleRate: 0,
|
|
11221
11226
|
replaysOnErrorSampleRate: 1
|
|
11222
11227
|
});
|
|
11223
|
-
const
|
|
11228
|
+
const f_ = (e) => jr(e);
|
|
11224
11229
|
export {
|
|
11225
|
-
|
|
11230
|
+
f_ as captureException,
|
|
11231
|
+
l_ as filterSupertabErrors
|
|
11226
11232
|
};
|