@beyondwords/player 0.0.0-beta22 → 0.0.0-beta24
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/es.js +178 -163
- package/dist/es.js.map +1 -1
- package/dist/umd.js +16 -16
- package/dist/umd.js.map +1 -1
- package/package.json +1 -1
package/dist/es.js
CHANGED
|
@@ -550,7 +550,7 @@ class it {
|
|
|
550
550
|
this.$$set && !A0(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
const q0 = "@beyondwords/player", eu = "0.0.0-
|
|
553
|
+
const q0 = "@beyondwords/player", eu = "0.0.0-beta24", er = (t, e) => {
|
|
554
554
|
t = [t].flat().join(`
|
|
555
555
|
`);
|
|
556
556
|
let i = `${q0}:
|
|
@@ -1101,7 +1101,7 @@ var nf = { exports: {} };
|
|
|
1101
1101
|
"error"
|
|
1102
1102
|
);
|
|
1103
1103
|
try {
|
|
1104
|
-
Ie.log('Debug logs enabled for "' + c + '" in hls.js version 1.4.
|
|
1104
|
+
Ie.log('Debug logs enabled for "' + c + '" in hls.js version 1.4.5');
|
|
1105
1105
|
} catch (u) {
|
|
1106
1106
|
Ie = we;
|
|
1107
1107
|
}
|
|
@@ -2897,7 +2897,7 @@ var nf = { exports: {} };
|
|
|
2897
2897
|
for (var w = 0; w < S.length; w++) {
|
|
2898
2898
|
var O = S[w];
|
|
2899
2899
|
if (!Ot(O)) {
|
|
2900
|
-
this.updateId3CueEnds(E);
|
|
2900
|
+
this.updateId3CueEnds(E, b);
|
|
2901
2901
|
var M = new m(E, A, "");
|
|
2902
2902
|
M.value = O, b && (M.type = b), this.id3Track.addCue(M);
|
|
2903
2903
|
}
|
|
@@ -2907,12 +2907,12 @@ var nf = { exports: {} };
|
|
|
2907
2907
|
}
|
|
2908
2908
|
}
|
|
2909
2909
|
}
|
|
2910
|
-
}, c.updateId3CueEnds = function(n) {
|
|
2911
|
-
var
|
|
2912
|
-
if (
|
|
2913
|
-
for (var
|
|
2914
|
-
var
|
|
2915
|
-
|
|
2910
|
+
}, c.updateId3CueEnds = function(n, s) {
|
|
2911
|
+
var o, f = (o = this.id3Track) == null ? void 0 : o.cues;
|
|
2912
|
+
if (f)
|
|
2913
|
+
for (var h = f.length; h--; ) {
|
|
2914
|
+
var v = f[h];
|
|
2915
|
+
v.type === s && v.startTime < n && v.endTime === cr && (v.endTime = n);
|
|
2916
2916
|
}
|
|
2917
2917
|
}, c.onBufferFlushing = function(n, s) {
|
|
2918
2918
|
var o = s.startOffset, f = s.endOffset, h = s.type, v = this.id3Track, m = this.hls;
|
|
@@ -8750,6 +8750,9 @@ var nf = { exports: {} };
|
|
|
8750
8750
|
break;
|
|
8751
8751
|
this.state = Be.IDLE;
|
|
8752
8752
|
break;
|
|
8753
|
+
} else if (this.hls.nextLoadLevel !== this.level) {
|
|
8754
|
+
this.state = Be.IDLE;
|
|
8755
|
+
break;
|
|
8753
8756
|
}
|
|
8754
8757
|
break;
|
|
8755
8758
|
}
|
|
@@ -10947,7 +10950,7 @@ var nf = { exports: {} };
|
|
|
10947
10950
|
* Get the video-dev/hls.js package version.
|
|
10948
10951
|
*/
|
|
10949
10952
|
function() {
|
|
10950
|
-
return "1.4.
|
|
10953
|
+
return "1.4.5";
|
|
10951
10954
|
}
|
|
10952
10955
|
)
|
|
10953
10956
|
}, {
|
|
@@ -24061,7 +24064,7 @@ function zk(t, e, i) {
|
|
|
24061
24064
|
8 && i(1, V = a && (we == null ? void 0 : we.iconColor) || Ke), t.$$.dirty[0] & /*background, foreground, fallbackSvgs*/
|
|
24062
24065
|
7 && i(16, ve = L.map((Le, Ye) => V0().then(() => te[Ye]))), t.$$.dirty[0] & /*activeAdvert, persistentAdvert, contentItem*/
|
|
24063
24066
|
134217920 | t.$$.dirty[1] & /*isAdvert, isStopped*/
|
|
24064
|
-
12 && i(32, z = a && we.imageUrl || !r && (Ie == null ? void 0 : Ie.imageUrl) || g.imageUrl), t.$$.dirty[0] & /*failedUrls*/
|
|
24067
|
+
12 && i(32, z = a && we.imageUrl || !r && (Ie == null ? void 0 : Ie.imageUrl) || (g == null ? void 0 : g.imageUrl)), t.$$.dirty[0] & /*failedUrls*/
|
|
24065
24068
|
32768 | t.$$.dirty[1] & /*imageUrl_*/
|
|
24066
24069
|
2 && i(28, H = Fe.has(z) ? null : z), t.$$.dirty[0] & /*imageUrl*/
|
|
24067
24070
|
268435456 && i(31, oe = H ? L.map((Le) => Ok(H, Le, Le)) : []), t.$$.dirty[0] & /*imageUrl*/
|
|
@@ -26671,7 +26674,7 @@ const Ml = (t) => typeof t != "object" || t === null ? t : Array.isArray(t) ? t.
|
|
|
26671
26674
|
return {
|
|
26672
26675
|
id: g.id,
|
|
26673
26676
|
title: g.title,
|
|
26674
|
-
imageUrl: a && (((p = e.playlist) == null ? void 0 : p.image_url) ||
|
|
26677
|
+
imageUrl: a && (((p = e.playlist) == null ? void 0 : p.image_url) || e.settings.image_url || g.image_url),
|
|
26675
26678
|
sourceId: g.source_id,
|
|
26676
26679
|
sourceUrl: g.source_url,
|
|
26677
26680
|
adsEnabled: g.ads_enabled,
|
|
@@ -29664,7 +29667,7 @@ function Nd(t, e) {
|
|
|
29664
29667
|
if (!(e !== "event" && e !== "transaction"))
|
|
29665
29668
|
return Array.isArray(t) ? t[1] : void 0;
|
|
29666
29669
|
}
|
|
29667
|
-
const vo = "7.
|
|
29670
|
+
const vo = "7.54.0";
|
|
29668
29671
|
let Fd;
|
|
29669
29672
|
class ca {
|
|
29670
29673
|
constructor() {
|
|
@@ -29697,7 +29700,15 @@ class ca {
|
|
|
29697
29700
|
}
|
|
29698
29701
|
}
|
|
29699
29702
|
ca.__initStatic();
|
|
29700
|
-
const NE = [/^Script error\.?$/, /^Javascript error: Script error\.? on line 0$/]
|
|
29703
|
+
const NE = [/^Script error\.?$/, /^Javascript error: Script error\.? on line 0$/], FE = [
|
|
29704
|
+
/^.*healthcheck.*$/,
|
|
29705
|
+
/^.*healthy.*$/,
|
|
29706
|
+
/^.*live.*$/,
|
|
29707
|
+
/^.*ready.*$/,
|
|
29708
|
+
/^.*heartbeat.*$/,
|
|
29709
|
+
/^.*\/health$/,
|
|
29710
|
+
/^.*\/healthz$/
|
|
29711
|
+
];
|
|
29701
29712
|
class Ls {
|
|
29702
29713
|
/**
|
|
29703
29714
|
* @inheritDoc
|
|
@@ -29723,8 +29734,8 @@ class Ls {
|
|
|
29723
29734
|
if (l) {
|
|
29724
29735
|
const g = l.getIntegration(Ls);
|
|
29725
29736
|
if (g) {
|
|
29726
|
-
const p = l.getClient(), _ = p ? p.getOptions() : {}, T =
|
|
29727
|
-
return
|
|
29737
|
+
const p = l.getClient(), _ = p ? p.getOptions() : {}, T = UE(g._options, _);
|
|
29738
|
+
return VE(a, T) ? null : a;
|
|
29728
29739
|
}
|
|
29729
29740
|
}
|
|
29730
29741
|
return a;
|
|
@@ -29733,34 +29744,38 @@ class Ls {
|
|
|
29733
29744
|
}
|
|
29734
29745
|
}
|
|
29735
29746
|
Ls.__initStatic();
|
|
29736
|
-
function
|
|
29747
|
+
function UE(t = {}, e = {}) {
|
|
29737
29748
|
return {
|
|
29738
29749
|
allowUrls: [...t.allowUrls || [], ...e.allowUrls || []],
|
|
29739
29750
|
denyUrls: [...t.denyUrls || [], ...e.denyUrls || []],
|
|
29740
29751
|
ignoreErrors: [
|
|
29741
29752
|
...t.ignoreErrors || [],
|
|
29742
29753
|
...e.ignoreErrors || [],
|
|
29743
|
-
...NE
|
|
29754
|
+
...t.disableErrorDefaults ? [] : NE
|
|
29755
|
+
],
|
|
29756
|
+
ignoreTransactions: [
|
|
29757
|
+
...t.ignoreTransactions || [],
|
|
29758
|
+
...e.ignoreTransactions || [],
|
|
29759
|
+
...t.disableTransactionDefaults ? [] : FE
|
|
29744
29760
|
],
|
|
29745
|
-
ignoreTransactions: [...t.ignoreTransactions || [], ...e.ignoreTransactions || []],
|
|
29746
29761
|
ignoreInternal: t.ignoreInternal !== void 0 ? t.ignoreInternal : !0
|
|
29747
29762
|
};
|
|
29748
29763
|
}
|
|
29749
|
-
function
|
|
29750
|
-
return e.ignoreInternal &&
|
|
29751
|
-
Event: ${Bn(t)}`), !0) :
|
|
29764
|
+
function VE(t, e) {
|
|
29765
|
+
return e.ignoreInternal && KE(t) ? ((typeof __SENTRY_DEBUG__ == "undefined" || __SENTRY_DEBUG__) && dt.warn(`Event dropped due to being internal Sentry Error.
|
|
29766
|
+
Event: ${Bn(t)}`), !0) : WE(t, e.ignoreErrors) ? ((typeof __SENTRY_DEBUG__ == "undefined" || __SENTRY_DEBUG__) && dt.warn(
|
|
29752
29767
|
`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
29753
29768
|
Event: ${Bn(t)}`
|
|
29754
|
-
), !0) :
|
|
29769
|
+
), !0) : jE(t, e.ignoreTransactions) ? ((typeof __SENTRY_DEBUG__ == "undefined" || __SENTRY_DEBUG__) && dt.warn(
|
|
29755
29770
|
`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
29756
29771
|
Event: ${Bn(t)}`
|
|
29757
|
-
), !0) :
|
|
29772
|
+
), !0) : GE(t, e.denyUrls) ? ((typeof __SENTRY_DEBUG__ == "undefined" || __SENTRY_DEBUG__) && dt.warn(
|
|
29758
29773
|
`Event dropped due to being matched by \`denyUrls\` option.
|
|
29759
29774
|
Event: ${Bn(
|
|
29760
29775
|
t
|
|
29761
29776
|
)}.
|
|
29762
29777
|
Url: ${mo(t)}`
|
|
29763
|
-
), !0) :
|
|
29778
|
+
), !0) : zE(t, e.allowUrls) ? !1 : ((typeof __SENTRY_DEBUG__ == "undefined" || __SENTRY_DEBUG__) && dt.warn(
|
|
29764
29779
|
`Event dropped due to not being matched by \`allowUrls\` option.
|
|
29765
29780
|
Event: ${Bn(
|
|
29766
29781
|
t
|
|
@@ -29768,28 +29783,28 @@ Event: ${Bn(
|
|
|
29768
29783
|
Url: ${mo(t)}`
|
|
29769
29784
|
), !0);
|
|
29770
29785
|
}
|
|
29771
|
-
function VE(t, e) {
|
|
29772
|
-
return t.type || !e || !e.length ? !1 : zE(t).some((i) => Uo(i, e));
|
|
29773
|
-
}
|
|
29774
29786
|
function WE(t, e) {
|
|
29787
|
+
return t.type || !e || !e.length ? !1 : HE(t).some((i) => Uo(i, e));
|
|
29788
|
+
}
|
|
29789
|
+
function jE(t, e) {
|
|
29775
29790
|
if (t.type !== "transaction" || !e || !e.length)
|
|
29776
29791
|
return !1;
|
|
29777
29792
|
const i = t.transaction;
|
|
29778
29793
|
return i ? Uo(i, e) : !1;
|
|
29779
29794
|
}
|
|
29780
|
-
function
|
|
29795
|
+
function GE(t, e) {
|
|
29781
29796
|
if (!e || !e.length)
|
|
29782
29797
|
return !1;
|
|
29783
29798
|
const i = mo(t);
|
|
29784
29799
|
return i ? Uo(i, e) : !1;
|
|
29785
29800
|
}
|
|
29786
|
-
function
|
|
29801
|
+
function zE(t, e) {
|
|
29787
29802
|
if (!e || !e.length)
|
|
29788
29803
|
return !0;
|
|
29789
29804
|
const i = mo(t);
|
|
29790
29805
|
return i ? Uo(i, e) : !0;
|
|
29791
29806
|
}
|
|
29792
|
-
function
|
|
29807
|
+
function HE(t) {
|
|
29793
29808
|
if (t.message)
|
|
29794
29809
|
return [t.message];
|
|
29795
29810
|
if (t.exception) {
|
|
@@ -29803,14 +29818,14 @@ function zE(t) {
|
|
|
29803
29818
|
}
|
|
29804
29819
|
return [];
|
|
29805
29820
|
}
|
|
29806
|
-
function
|
|
29821
|
+
function KE(t) {
|
|
29807
29822
|
try {
|
|
29808
29823
|
return t.exception.values[0].type === "SentryError";
|
|
29809
29824
|
} catch (e) {
|
|
29810
29825
|
}
|
|
29811
29826
|
return !1;
|
|
29812
29827
|
}
|
|
29813
|
-
function
|
|
29828
|
+
function YE(t = []) {
|
|
29814
29829
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
29815
29830
|
const i = t[e];
|
|
29816
29831
|
if (i && i.filename !== "<anonymous>" && i.filename !== "[native code]")
|
|
@@ -29825,7 +29840,7 @@ function mo(t) {
|
|
|
29825
29840
|
e = t.exception.values[0].stacktrace.frames;
|
|
29826
29841
|
} catch (i) {
|
|
29827
29842
|
}
|
|
29828
|
-
return e ?
|
|
29843
|
+
return e ? YE(e) : null;
|
|
29829
29844
|
} catch (e) {
|
|
29830
29845
|
return (typeof __SENTRY_DEBUG__ == "undefined" || __SENTRY_DEBUG__) && dt.error(`Cannot extract url for event ${Bn(t)}`), null;
|
|
29831
29846
|
}
|
|
@@ -29835,7 +29850,7 @@ let Jl = 0;
|
|
|
29835
29850
|
function dh() {
|
|
29836
29851
|
return Jl > 0;
|
|
29837
29852
|
}
|
|
29838
|
-
function
|
|
29853
|
+
function qE() {
|
|
29839
29854
|
Jl++, setTimeout(() => {
|
|
29840
29855
|
Jl--;
|
|
29841
29856
|
});
|
|
@@ -29859,7 +29874,7 @@ function Ms(t, e = {}, i) {
|
|
|
29859
29874
|
const l = a.map((g) => Ms(g, e));
|
|
29860
29875
|
return t.apply(this, l);
|
|
29861
29876
|
} catch (l) {
|
|
29862
|
-
throw
|
|
29877
|
+
throw qE(), vE((g) => {
|
|
29863
29878
|
g.addEventProcessor((p) => (e.mechanism && (Kl(p, void 0, void 0), ua(p, e.mechanism)), p.extra = Qt(de({}, p.extra), {
|
|
29864
29879
|
arguments: a
|
|
29865
29880
|
}), p)), ah(l);
|
|
@@ -29885,11 +29900,11 @@ function Ms(t, e = {}, i) {
|
|
|
29885
29900
|
function fh(t, e) {
|
|
29886
29901
|
const i = gu(t, e), r = {
|
|
29887
29902
|
type: e && e.name,
|
|
29888
|
-
value:
|
|
29903
|
+
value: QE(e)
|
|
29889
29904
|
};
|
|
29890
29905
|
return i.length && (r.stacktrace = { frames: i }), r.type === void 0 && r.value === "" && (r.value = "Unrecoverable error caught"), r;
|
|
29891
29906
|
}
|
|
29892
|
-
function
|
|
29907
|
+
function XE(t, e, i, r) {
|
|
29893
29908
|
const l = Ii().getClient(), g = l && l.getOptions().normalizeDepth, p = {
|
|
29894
29909
|
exception: {
|
|
29895
29910
|
values: [
|
|
@@ -29917,32 +29932,32 @@ function xl(t, e) {
|
|
|
29917
29932
|
};
|
|
29918
29933
|
}
|
|
29919
29934
|
function gu(t, e) {
|
|
29920
|
-
const i = e.stacktrace || e.stack || "", r =
|
|
29935
|
+
const i = e.stacktrace || e.stack || "", r = JE(e);
|
|
29921
29936
|
try {
|
|
29922
29937
|
return t(i, r);
|
|
29923
29938
|
} catch (a) {
|
|
29924
29939
|
}
|
|
29925
29940
|
return [];
|
|
29926
29941
|
}
|
|
29927
|
-
const
|
|
29928
|
-
function
|
|
29942
|
+
const ZE = /Minified React error #\d+;/i;
|
|
29943
|
+
function JE(t) {
|
|
29929
29944
|
if (t) {
|
|
29930
29945
|
if (typeof t.framesToPop == "number")
|
|
29931
29946
|
return t.framesToPop;
|
|
29932
|
-
if (
|
|
29947
|
+
if (ZE.test(t.message))
|
|
29933
29948
|
return 1;
|
|
29934
29949
|
}
|
|
29935
29950
|
return 0;
|
|
29936
29951
|
}
|
|
29937
|
-
function
|
|
29952
|
+
function QE(t) {
|
|
29938
29953
|
const e = t && t.message;
|
|
29939
29954
|
return e ? e.error && typeof e.error.message == "string" ? e.error.message : e : "No error message";
|
|
29940
29955
|
}
|
|
29941
|
-
function
|
|
29956
|
+
function $E(t, e, i, r) {
|
|
29942
29957
|
const a = i && i.syntheticException || void 0, l = vu(t, e, a, r);
|
|
29943
29958
|
return ua(l), l.level = "error", i && i.event_id && (l.event_id = i.event_id), ss(l);
|
|
29944
29959
|
}
|
|
29945
|
-
function
|
|
29960
|
+
function eA(t, e, i = "info", r, a) {
|
|
29946
29961
|
const l = r && r.syntheticException || void 0, g = Ql(t, e, l, a);
|
|
29947
29962
|
return g.level = i, r && r.event_id && (g.event_id = r.event_id), ss(g);
|
|
29948
29963
|
}
|
|
@@ -29960,7 +29975,7 @@ function vu(t, e, i, r, a) {
|
|
|
29960
29975
|
}
|
|
29961
29976
|
return "code" in g && (l.tags = Qt(de({}, l.tags), { "DOMException.code": `${g.code}` })), l;
|
|
29962
29977
|
}
|
|
29963
|
-
return Uf(e) ? xl(t, e) : Os(e) || lu(e) ? (l =
|
|
29978
|
+
return Uf(e) ? xl(t, e) : Os(e) || lu(e) ? (l = XE(t, e, i, a), ua(l, {
|
|
29964
29979
|
synthetic: !0
|
|
29965
29980
|
}), l) : (l = Ql(t, e, i, r), Kl(l, `${e}`, void 0), ua(l, {
|
|
29966
29981
|
synthetic: !0
|
|
@@ -30018,7 +30033,7 @@ class da {
|
|
|
30018
30033
|
* - History API
|
|
30019
30034
|
*/
|
|
30020
30035
|
setupOnce() {
|
|
30021
|
-
this.options.console && On("console",
|
|
30036
|
+
this.options.console && On("console", iA), this.options.dom && On("dom", tA(this.options.dom)), this.options.xhr && On("xhr", rA), this.options.fetch && On("fetch", nA), this.options.history && On("history", sA);
|
|
30022
30037
|
}
|
|
30023
30038
|
/**
|
|
30024
30039
|
* Adds a breadcrumb for Sentry events or transactions if this option is enabled.
|
|
@@ -30038,7 +30053,7 @@ class da {
|
|
|
30038
30053
|
}
|
|
30039
30054
|
}
|
|
30040
30055
|
da.__initStatic();
|
|
30041
|
-
function
|
|
30056
|
+
function tA(t) {
|
|
30042
30057
|
function e(i) {
|
|
30043
30058
|
let r, a = typeof t == "object" ? t.serializeAttribute : void 0, l = typeof t == "object" && typeof t.maxStringLength == "number" ? t.maxStringLength : void 0;
|
|
30044
30059
|
l && l > io && ((typeof __SENTRY_DEBUG__ == "undefined" || __SENTRY_DEBUG__) && dt.warn(
|
|
@@ -30046,7 +30061,7 @@ function eA(t) {
|
|
|
30046
30061
|
), l = io), typeof a == "string" && (a = [a]);
|
|
30047
30062
|
try {
|
|
30048
30063
|
const g = i.event;
|
|
30049
|
-
r =
|
|
30064
|
+
r = aA(g) ? Wl(g.target, { keyAttrs: a, maxStringLength: l }) : Wl(g, { keyAttrs: a, maxStringLength: l });
|
|
30050
30065
|
} catch (g) {
|
|
30051
30066
|
r = "<unknown>";
|
|
30052
30067
|
}
|
|
@@ -30064,7 +30079,7 @@ function eA(t) {
|
|
|
30064
30079
|
}
|
|
30065
30080
|
return e;
|
|
30066
30081
|
}
|
|
30067
|
-
function
|
|
30082
|
+
function iA(t) {
|
|
30068
30083
|
for (let i = 0; i < t.args.length; i++)
|
|
30069
30084
|
if (t.args[i] === "ref=Ref<") {
|
|
30070
30085
|
t.args[i + 1] = "viewRef";
|
|
@@ -30089,7 +30104,7 @@ function tA(t) {
|
|
|
30089
30104
|
level: t.level
|
|
30090
30105
|
});
|
|
30091
30106
|
}
|
|
30092
|
-
function
|
|
30107
|
+
function rA(t) {
|
|
30093
30108
|
const { startTimestamp: e, endTimestamp: i } = t, r = t.xhr[$s];
|
|
30094
30109
|
if (!e || !i || !r)
|
|
30095
30110
|
return;
|
|
@@ -30112,7 +30127,7 @@ function iA(t) {
|
|
|
30112
30127
|
T
|
|
30113
30128
|
);
|
|
30114
30129
|
}
|
|
30115
|
-
function
|
|
30130
|
+
function nA(t) {
|
|
30116
30131
|
const { startTimestamp: e, endTimestamp: i } = t;
|
|
30117
30132
|
if (i && !(t.fetchData.url.match(/sentry_key/) && t.fetchData.method === "POST"))
|
|
30118
30133
|
if (t.error) {
|
|
@@ -30150,7 +30165,7 @@ function rA(t) {
|
|
|
30150
30165
|
);
|
|
30151
30166
|
}
|
|
30152
30167
|
}
|
|
30153
|
-
function
|
|
30168
|
+
function sA(t) {
|
|
30154
30169
|
let e = t.from, i = t.to;
|
|
30155
30170
|
const r = El(Yt.location.href);
|
|
30156
30171
|
let a = El(e);
|
|
@@ -30163,10 +30178,10 @@ function nA(t) {
|
|
|
30163
30178
|
}
|
|
30164
30179
|
});
|
|
30165
30180
|
}
|
|
30166
|
-
function
|
|
30181
|
+
function aA(t) {
|
|
30167
30182
|
return t && !!t.target;
|
|
30168
30183
|
}
|
|
30169
|
-
function
|
|
30184
|
+
function oA(t, {
|
|
30170
30185
|
metadata: e,
|
|
30171
30186
|
tunnel: i,
|
|
30172
30187
|
dsn: r
|
|
@@ -30179,15 +30194,15 @@ function aA(t, {
|
|
|
30179
30194
|
name: e.sdk.name,
|
|
30180
30195
|
version: e.sdk.version
|
|
30181
30196
|
}
|
|
30182
|
-
}), !!i && !!r && { dsn: Fo(r) }), l =
|
|
30197
|
+
}), !!i && !!r && { dsn: Fo(r) }), l = lA(t);
|
|
30183
30198
|
return Ta(a, [l]);
|
|
30184
30199
|
}
|
|
30185
|
-
function
|
|
30200
|
+
function lA(t) {
|
|
30186
30201
|
return [{
|
|
30187
30202
|
type: "user_report"
|
|
30188
30203
|
}, t];
|
|
30189
30204
|
}
|
|
30190
|
-
class
|
|
30205
|
+
class uA extends $n {
|
|
30191
30206
|
/**
|
|
30192
30207
|
* Creates a new Browser SDK instance.
|
|
30193
30208
|
*
|
|
@@ -30212,13 +30227,13 @@ class lA extends $n {
|
|
|
30212
30227
|
* @inheritDoc
|
|
30213
30228
|
*/
|
|
30214
30229
|
eventFromException(e, i) {
|
|
30215
|
-
return
|
|
30230
|
+
return $E(this._options.stackParser, e, i, this._options.attachStacktrace);
|
|
30216
30231
|
}
|
|
30217
30232
|
/**
|
|
30218
30233
|
* @inheritDoc
|
|
30219
30234
|
*/
|
|
30220
30235
|
eventFromMessage(e, i = "info", r) {
|
|
30221
|
-
return
|
|
30236
|
+
return eA(this._options.stackParser, e, i, r, this._options.attachStacktrace);
|
|
30222
30237
|
}
|
|
30223
30238
|
/**
|
|
30224
30239
|
* @inheritDoc
|
|
@@ -30235,7 +30250,7 @@ class lA extends $n {
|
|
|
30235
30250
|
(typeof __SENTRY_DEBUG__ == "undefined" || __SENTRY_DEBUG__) && dt.warn("SDK not enabled, will not capture user feedback.");
|
|
30236
30251
|
return;
|
|
30237
30252
|
}
|
|
30238
|
-
const i =
|
|
30253
|
+
const i = oA(e, {
|
|
30239
30254
|
metadata: this.getSdkMetadata(),
|
|
30240
30255
|
dsn: this.getDsn(),
|
|
30241
30256
|
tunnel: this.getOptions().tunnel
|
|
@@ -30267,7 +30282,7 @@ class lA extends $n {
|
|
|
30267
30282
|
}
|
|
30268
30283
|
}
|
|
30269
30284
|
let ea;
|
|
30270
|
-
function
|
|
30285
|
+
function cA() {
|
|
30271
30286
|
if (ea)
|
|
30272
30287
|
return ea;
|
|
30273
30288
|
if (zl(Yt.fetch))
|
|
@@ -30285,10 +30300,10 @@ function uA() {
|
|
|
30285
30300
|
}
|
|
30286
30301
|
return ea = e.bind(Yt);
|
|
30287
30302
|
}
|
|
30288
|
-
function
|
|
30303
|
+
function dA() {
|
|
30289
30304
|
ea = void 0;
|
|
30290
30305
|
}
|
|
30291
|
-
function
|
|
30306
|
+
function fA(t, e = cA()) {
|
|
30292
30307
|
let i = 0, r = 0;
|
|
30293
30308
|
function a(l) {
|
|
30294
30309
|
const g = l.body.length;
|
|
@@ -30320,18 +30335,18 @@ function dA(t, e = uA()) {
|
|
|
30320
30335
|
}
|
|
30321
30336
|
}));
|
|
30322
30337
|
} catch (_) {
|
|
30323
|
-
return
|
|
30338
|
+
return dA(), i -= g, r--, go(_);
|
|
30324
30339
|
}
|
|
30325
30340
|
}
|
|
30326
30341
|
return ch(t, a);
|
|
30327
30342
|
}
|
|
30328
|
-
const
|
|
30329
|
-
function
|
|
30343
|
+
const hA = 4;
|
|
30344
|
+
function gA(t) {
|
|
30330
30345
|
function e(i) {
|
|
30331
30346
|
return new $i((r, a) => {
|
|
30332
30347
|
const l = new XMLHttpRequest();
|
|
30333
30348
|
l.onerror = a, l.onreadystatechange = () => {
|
|
30334
|
-
l.readyState ===
|
|
30349
|
+
l.readyState === hA && r({
|
|
30335
30350
|
statusCode: l.status,
|
|
30336
30351
|
headers: {
|
|
30337
30352
|
"x-sentry-rate-limits": l.getResponseHeader("X-Sentry-Rate-Limits"),
|
|
@@ -30346,7 +30361,7 @@ function hA(t) {
|
|
|
30346
30361
|
}
|
|
30347
30362
|
return ch(t, e);
|
|
30348
30363
|
}
|
|
30349
|
-
const Go = "?",
|
|
30364
|
+
const Go = "?", vA = 30, mA = 40, pA = 50;
|
|
30350
30365
|
function mu(t, e, i, r) {
|
|
30351
30366
|
const a = {
|
|
30352
30367
|
filename: t,
|
|
@@ -30356,30 +30371,30 @@ function mu(t, e, i, r) {
|
|
|
30356
30371
|
};
|
|
30357
30372
|
return i !== void 0 && (a.lineno = i), r !== void 0 && (a.colno = r), a;
|
|
30358
30373
|
}
|
|
30359
|
-
const
|
|
30360
|
-
const e =
|
|
30374
|
+
const _A = /^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, yA = /\((\S*)(?::(\d+))(?::(\d+))\)/, bA = (t) => {
|
|
30375
|
+
const e = _A.exec(t);
|
|
30361
30376
|
if (e) {
|
|
30362
30377
|
if (e[2] && e[2].indexOf("eval") === 0) {
|
|
30363
|
-
const l =
|
|
30378
|
+
const l = yA.exec(e[2]);
|
|
30364
30379
|
l && (e[2] = l[1], e[3] = l[2], e[4] = l[3]);
|
|
30365
30380
|
}
|
|
30366
30381
|
const [r, a] = gh(e[1] || Go, e[2]);
|
|
30367
30382
|
return mu(a, r, e[3] ? +e[3] : void 0, e[4] ? +e[4] : void 0);
|
|
30368
30383
|
}
|
|
30369
|
-
},
|
|
30370
|
-
const e =
|
|
30384
|
+
}, SA = [vA, bA], TA = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i, kA = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, EA = (t) => {
|
|
30385
|
+
const e = TA.exec(t);
|
|
30371
30386
|
if (e) {
|
|
30372
30387
|
if (e[3] && e[3].indexOf(" > eval") > -1) {
|
|
30373
|
-
const l =
|
|
30388
|
+
const l = kA.exec(e[3]);
|
|
30374
30389
|
l && (e[1] = e[1] || "eval", e[3] = l[1], e[4] = l[2], e[5] = "");
|
|
30375
30390
|
}
|
|
30376
30391
|
let r = e[3], a = e[1] || Go;
|
|
30377
30392
|
return [a, r] = gh(a, r), mu(r, a, e[4] ? +e[4] : void 0, e[5] ? +e[5] : void 0);
|
|
30378
30393
|
}
|
|
30379
|
-
},
|
|
30380
|
-
const e =
|
|
30394
|
+
}, AA = [pA, EA], xA = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i, PA = (t) => {
|
|
30395
|
+
const e = xA.exec(t);
|
|
30381
30396
|
return e ? mu(e[2], e[1] || Go, +e[3], e[4] ? +e[4] : void 0) : void 0;
|
|
30382
|
-
},
|
|
30397
|
+
}, wA = [mA, PA], CA = [SA, AA, wA], LA = Yf(...CA), gh = (t, e) => {
|
|
30383
30398
|
const i = t.indexOf("safari-extension") !== -1, r = t.indexOf("safari-web-extension") !== -1;
|
|
30384
30399
|
return i || r ? [
|
|
30385
30400
|
t.indexOf("@") !== -1 ? t.split("@")[0] : Go,
|
|
@@ -30406,8 +30421,8 @@ class Fn {
|
|
|
30406
30421
|
*/
|
|
30407
30422
|
__init2() {
|
|
30408
30423
|
this._installFunc = {
|
|
30409
|
-
onerror:
|
|
30410
|
-
onunhandledrejection:
|
|
30424
|
+
onerror: IA,
|
|
30425
|
+
onunhandledrejection: RA
|
|
30411
30426
|
};
|
|
30412
30427
|
}
|
|
30413
30428
|
/** JSDoc */
|
|
@@ -30425,12 +30440,12 @@ class Fn {
|
|
|
30425
30440
|
const e = this._options;
|
|
30426
30441
|
for (const i in e) {
|
|
30427
30442
|
const r = this._installFunc[i];
|
|
30428
|
-
r && e[i] && (
|
|
30443
|
+
r && e[i] && (BA(i), r(), this._installFunc[i] = void 0);
|
|
30429
30444
|
}
|
|
30430
30445
|
}
|
|
30431
30446
|
}
|
|
30432
30447
|
Fn.__initStatic();
|
|
30433
|
-
function
|
|
30448
|
+
function IA() {
|
|
30434
30449
|
On(
|
|
30435
30450
|
"error",
|
|
30436
30451
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -30441,7 +30456,7 @@ function LA() {
|
|
|
30441
30456
|
const { msg: a, url: l, line: g, column: p, error: _ } = t;
|
|
30442
30457
|
if (dh() || _ && _.__sentry_own_request__)
|
|
30443
30458
|
return;
|
|
30444
|
-
const T = _ === void 0 && ns(a) ?
|
|
30459
|
+
const T = _ === void 0 && ns(a) ? OA(a, l, g, p) : vh(
|
|
30445
30460
|
vu(i, _ || a, void 0, r, !1),
|
|
30446
30461
|
l,
|
|
30447
30462
|
g,
|
|
@@ -30451,7 +30466,7 @@ function LA() {
|
|
|
30451
30466
|
}
|
|
30452
30467
|
);
|
|
30453
30468
|
}
|
|
30454
|
-
function
|
|
30469
|
+
function RA() {
|
|
30455
30470
|
On(
|
|
30456
30471
|
"unhandledrejection",
|
|
30457
30472
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -30466,12 +30481,12 @@ function IA() {
|
|
|
30466
30481
|
}
|
|
30467
30482
|
if (dh() || a && a.__sentry_own_request__)
|
|
30468
30483
|
return !0;
|
|
30469
|
-
const l = Wf(a) ?
|
|
30484
|
+
const l = Wf(a) ? DA(a) : vu(i, a, void 0, r, !0);
|
|
30470
30485
|
l.level = "error", mh(e, a, l, "onunhandledrejection");
|
|
30471
30486
|
}
|
|
30472
30487
|
);
|
|
30473
30488
|
}
|
|
30474
|
-
function
|
|
30489
|
+
function DA(t) {
|
|
30475
30490
|
return {
|
|
30476
30491
|
exception: {
|
|
30477
30492
|
values: [
|
|
@@ -30484,7 +30499,7 @@ function RA(t) {
|
|
|
30484
30499
|
}
|
|
30485
30500
|
};
|
|
30486
30501
|
}
|
|
30487
|
-
function
|
|
30502
|
+
function OA(t, e, i, r) {
|
|
30488
30503
|
const a = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;
|
|
30489
30504
|
let l = Vf(t) ? t.message : t, g = "Error";
|
|
30490
30505
|
const p = l.match(a);
|
|
@@ -30509,7 +30524,7 @@ function vh(t, e, i, r) {
|
|
|
30509
30524
|
lineno: k
|
|
30510
30525
|
}), t;
|
|
30511
30526
|
}
|
|
30512
|
-
function
|
|
30527
|
+
function BA(t) {
|
|
30513
30528
|
(typeof __SENTRY_DEBUG__ == "undefined" || __SENTRY_DEBUG__) && dt.log(`Global Handler attached: ${t}`);
|
|
30514
30529
|
}
|
|
30515
30530
|
function mh(t, e, i, r) {
|
|
@@ -30527,7 +30542,7 @@ function ph() {
|
|
|
30527
30542
|
};
|
|
30528
30543
|
return [t, i.stackParser, i.attachStacktrace];
|
|
30529
30544
|
}
|
|
30530
|
-
const
|
|
30545
|
+
const MA = [
|
|
30531
30546
|
"EventTarget",
|
|
30532
30547
|
"Window",
|
|
30533
30548
|
"Node",
|
|
@@ -30589,9 +30604,9 @@ class fa {
|
|
|
30589
30604
|
* and provide better metadata.
|
|
30590
30605
|
*/
|
|
30591
30606
|
setupOnce() {
|
|
30592
|
-
this._options.setTimeout && Hi(Yt, "setTimeout", Ud), this._options.setInterval && Hi(Yt, "setInterval", Ud), this._options.requestAnimationFrame && Hi(Yt, "requestAnimationFrame",
|
|
30607
|
+
this._options.setTimeout && Hi(Yt, "setTimeout", Ud), this._options.setInterval && Hi(Yt, "setInterval", Ud), this._options.requestAnimationFrame && Hi(Yt, "requestAnimationFrame", NA), this._options.XMLHttpRequest && "XMLHttpRequest" in Yt && Hi(XMLHttpRequest.prototype, "send", FA);
|
|
30593
30608
|
const e = this._options.eventTarget;
|
|
30594
|
-
e && (Array.isArray(e) ? e :
|
|
30609
|
+
e && (Array.isArray(e) ? e : MA).forEach(UA);
|
|
30595
30610
|
}
|
|
30596
30611
|
}
|
|
30597
30612
|
fa.__initStatic();
|
|
@@ -30607,7 +30622,7 @@ function Ud(t) {
|
|
|
30607
30622
|
}), t.apply(this, e);
|
|
30608
30623
|
};
|
|
30609
30624
|
}
|
|
30610
|
-
function
|
|
30625
|
+
function NA(t) {
|
|
30611
30626
|
return function(e) {
|
|
30612
30627
|
return t.apply(this, [
|
|
30613
30628
|
Ms(e, {
|
|
@@ -30623,7 +30638,7 @@ function MA(t) {
|
|
|
30623
30638
|
]);
|
|
30624
30639
|
};
|
|
30625
30640
|
}
|
|
30626
|
-
function
|
|
30641
|
+
function FA(t) {
|
|
30627
30642
|
return function(...e) {
|
|
30628
30643
|
const i = this;
|
|
30629
30644
|
return ["onload", "onerror", "onprogress", "onreadystatechange"].forEach((a) => {
|
|
@@ -30643,7 +30658,7 @@ function NA(t) {
|
|
|
30643
30658
|
}), t.apply(this, e);
|
|
30644
30659
|
};
|
|
30645
30660
|
}
|
|
30646
|
-
function
|
|
30661
|
+
function UA(t) {
|
|
30647
30662
|
const e = Yt, i = e[t] && e[t].prototype;
|
|
30648
30663
|
!i || !i.hasOwnProperty || !i.hasOwnProperty("addEventListener") || (Hi(i, "addEventListener", function(r) {
|
|
30649
30664
|
return function(a, l, g) {
|
|
@@ -30694,7 +30709,7 @@ function FA(t) {
|
|
|
30694
30709
|
}
|
|
30695
30710
|
));
|
|
30696
30711
|
}
|
|
30697
|
-
const
|
|
30712
|
+
const VA = "cause", WA = 5;
|
|
30698
30713
|
class Is {
|
|
30699
30714
|
/**
|
|
30700
30715
|
* @inheritDoc
|
|
@@ -30718,7 +30733,7 @@ class Is {
|
|
|
30718
30733
|
* @inheritDoc
|
|
30719
30734
|
*/
|
|
30720
30735
|
constructor(e = {}) {
|
|
30721
|
-
Is.prototype.__init.call(this), this._key = e.key ||
|
|
30736
|
+
Is.prototype.__init.call(this), this._key = e.key || VA, this._limit = e.limit || WA;
|
|
30722
30737
|
}
|
|
30723
30738
|
/**
|
|
30724
30739
|
* @inheritDoc
|
|
@@ -30727,12 +30742,12 @@ class Is {
|
|
|
30727
30742
|
const e = Ii().getClient();
|
|
30728
30743
|
e && Wo((i, r) => {
|
|
30729
30744
|
const a = Ii().getIntegration(Is);
|
|
30730
|
-
return a ?
|
|
30745
|
+
return a ? jA(e.getOptions().stackParser, a._key, a._limit, i, r) : i;
|
|
30731
30746
|
});
|
|
30732
30747
|
}
|
|
30733
30748
|
}
|
|
30734
30749
|
Is.__initStatic();
|
|
30735
|
-
function
|
|
30750
|
+
function jA(t, e, i, r, a) {
|
|
30736
30751
|
if (!r.exception || !r.exception.values || !a || !Gs(a.originalException, Error))
|
|
30737
30752
|
return r;
|
|
30738
30753
|
const l = _h(t, i, a.originalException, e);
|
|
@@ -30805,7 +30820,7 @@ class Ds {
|
|
|
30805
30820
|
const l = i().getIntegration(Ds);
|
|
30806
30821
|
if (l) {
|
|
30807
30822
|
try {
|
|
30808
|
-
if (
|
|
30823
|
+
if (GA(a, l._previousEvent))
|
|
30809
30824
|
return (typeof __SENTRY_DEBUG__ == "undefined" || __SENTRY_DEBUG__) && dt.warn("Event dropped due to being a duplicate of previously captured event."), null;
|
|
30810
30825
|
} catch (g) {
|
|
30811
30826
|
return l._previousEvent = a;
|
|
@@ -30818,14 +30833,14 @@ class Ds {
|
|
|
30818
30833
|
}
|
|
30819
30834
|
}
|
|
30820
30835
|
Ds.__initStatic();
|
|
30821
|
-
function jA(t, e) {
|
|
30822
|
-
return e ? !!(GA(t, e) || zA(t, e)) : !1;
|
|
30823
|
-
}
|
|
30824
30836
|
function GA(t, e) {
|
|
30837
|
+
return e ? !!(zA(t, e) || HA(t, e)) : !1;
|
|
30838
|
+
}
|
|
30839
|
+
function zA(t, e) {
|
|
30825
30840
|
const i = t.message, r = e.message;
|
|
30826
30841
|
return !(!i && !r || i && !r || !i && r || i !== r || !bh(t, e) || !yh(t, e));
|
|
30827
30842
|
}
|
|
30828
|
-
function
|
|
30843
|
+
function HA(t, e) {
|
|
30829
30844
|
const i = Vd(e), r = Vd(t);
|
|
30830
30845
|
return !(!i || !r || i.type !== r.type || i.value !== r.value || !bh(t, e) || !yh(t, e));
|
|
30831
30846
|
}
|
|
@@ -30867,7 +30882,7 @@ function Wd(t) {
|
|
|
30867
30882
|
return;
|
|
30868
30883
|
}
|
|
30869
30884
|
}
|
|
30870
|
-
const
|
|
30885
|
+
const KA = [
|
|
30871
30886
|
new Ls(),
|
|
30872
30887
|
new ca(),
|
|
30873
30888
|
new fa(),
|
|
@@ -30877,19 +30892,19 @@ const HA = [
|
|
|
30877
30892
|
new Ds(),
|
|
30878
30893
|
new Rs()
|
|
30879
30894
|
];
|
|
30880
|
-
function
|
|
30881
|
-
t.defaultIntegrations === void 0 && (t.defaultIntegrations =
|
|
30895
|
+
function YA(t = {}) {
|
|
30896
|
+
t.defaultIntegrations === void 0 && (t.defaultIntegrations = KA), t.release === void 0 && (typeof __SENTRY_RELEASE__ == "string" && (t.release = __SENTRY_RELEASE__), Yt.SENTRY_RELEASE && Yt.SENTRY_RELEASE.id && (t.release = Yt.SENTRY_RELEASE.id)), t.autoSessionTracking === void 0 && (t.autoSessionTracking = !0), t.sendClientReports === void 0 && (t.sendClientReports = !0);
|
|
30882
30897
|
const e = Qt(de({}, t), {
|
|
30883
|
-
stackParser: b3(t.stackParser ||
|
|
30898
|
+
stackParser: b3(t.stackParser || LA),
|
|
30884
30899
|
integrations: AE(t),
|
|
30885
|
-
transport: t.transport || (qf() ?
|
|
30900
|
+
transport: t.transport || (qf() ? fA : gA)
|
|
30886
30901
|
});
|
|
30887
|
-
BE(
|
|
30902
|
+
BE(uA, e), t.autoSessionTracking && qA();
|
|
30888
30903
|
}
|
|
30889
30904
|
function jd(t) {
|
|
30890
30905
|
t.startSession({ ignoreDuration: !0 }), t.captureSession();
|
|
30891
30906
|
}
|
|
30892
|
-
function
|
|
30907
|
+
function qA() {
|
|
30893
30908
|
if (typeof Yt.document == "undefined") {
|
|
30894
30909
|
(typeof __SENTRY_DEBUG__ == "undefined" || __SENTRY_DEBUG__) && dt.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");
|
|
30895
30910
|
return;
|
|
@@ -30899,7 +30914,7 @@ function YA() {
|
|
|
30899
30914
|
e === void 0 || e === i || jd(Ii());
|
|
30900
30915
|
}));
|
|
30901
30916
|
}
|
|
30902
|
-
function
|
|
30917
|
+
function XA(t) {
|
|
30903
30918
|
t._metadata = t._metadata || {}, t._metadata.sdk = t._metadata.sdk || {
|
|
30904
30919
|
name: "sentry.javascript.svelte",
|
|
30905
30920
|
packages: [
|
|
@@ -30909,33 +30924,33 @@ function qA(t) {
|
|
|
30909
30924
|
}
|
|
30910
30925
|
],
|
|
30911
30926
|
version: vo
|
|
30912
|
-
},
|
|
30927
|
+
}, YA(t), ZA();
|
|
30913
30928
|
}
|
|
30914
|
-
function
|
|
30929
|
+
function ZA() {
|
|
30915
30930
|
let t;
|
|
30916
|
-
const e = (i) => (t === void 0 && (t =
|
|
30931
|
+
const e = (i) => (t === void 0 && (t = JA()), t && (i.modules = de({
|
|
30917
30932
|
svelteKit: "latest"
|
|
30918
30933
|
}, i.modules)), i);
|
|
30919
30934
|
e.id = "svelteKitProcessor", Wo(e);
|
|
30920
30935
|
}
|
|
30921
|
-
function
|
|
30936
|
+
function JA() {
|
|
30922
30937
|
return c3("div#svelte-announcer") !== null;
|
|
30923
30938
|
}
|
|
30924
30939
|
var ka = "<unknown>";
|
|
30925
|
-
function
|
|
30940
|
+
function QA(t) {
|
|
30926
30941
|
var e = t.split(`
|
|
30927
30942
|
`);
|
|
30928
30943
|
return e.reduce(function(i, r) {
|
|
30929
|
-
var a =
|
|
30944
|
+
var a = t6(r) || r6(r) || a6(r) || c6(r) || l6(r);
|
|
30930
30945
|
return a && i.push(a), i;
|
|
30931
30946
|
}, []);
|
|
30932
30947
|
}
|
|
30933
|
-
var
|
|
30934
|
-
function
|
|
30935
|
-
var e =
|
|
30948
|
+
var $A = /^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, e6 = /\((\S*)(?::(\d+))(?::(\d+))\)/;
|
|
30949
|
+
function t6(t) {
|
|
30950
|
+
var e = $A.exec(t);
|
|
30936
30951
|
if (!e)
|
|
30937
30952
|
return null;
|
|
30938
|
-
var i = e[2] && e[2].indexOf("native") === 0, r = e[2] && e[2].indexOf("eval") === 0, a =
|
|
30953
|
+
var i = e[2] && e[2].indexOf("native") === 0, r = e[2] && e[2].indexOf("eval") === 0, a = e6.exec(e[2]);
|
|
30939
30954
|
return r && a != null && (e[2] = a[1], e[3] = a[2], e[4] = a[3]), {
|
|
30940
30955
|
file: i ? null : e[2],
|
|
30941
30956
|
methodName: e[1] || ka,
|
|
@@ -30944,9 +30959,9 @@ function e6(t) {
|
|
|
30944
30959
|
column: e[4] ? +e[4] : null
|
|
30945
30960
|
};
|
|
30946
30961
|
}
|
|
30947
|
-
var
|
|
30948
|
-
function
|
|
30949
|
-
var e =
|
|
30962
|
+
var i6 = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
|
|
30963
|
+
function r6(t) {
|
|
30964
|
+
var e = i6.exec(t);
|
|
30950
30965
|
return e ? {
|
|
30951
30966
|
file: e[2],
|
|
30952
30967
|
methodName: e[1] || ka,
|
|
@@ -30955,12 +30970,12 @@ function i6(t) {
|
|
|
30955
30970
|
column: e[4] ? +e[4] : null
|
|
30956
30971
|
} : null;
|
|
30957
30972
|
}
|
|
30958
|
-
var
|
|
30959
|
-
function
|
|
30960
|
-
var e =
|
|
30973
|
+
var n6 = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i, s6 = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i;
|
|
30974
|
+
function a6(t) {
|
|
30975
|
+
var e = n6.exec(t);
|
|
30961
30976
|
if (!e)
|
|
30962
30977
|
return null;
|
|
30963
|
-
var i = e[3] && e[3].indexOf(" > eval") > -1, r =
|
|
30978
|
+
var i = e[3] && e[3].indexOf(" > eval") > -1, r = s6.exec(e[3]);
|
|
30964
30979
|
return i && r != null && (e[3] = r[1], e[4] = r[2], e[5] = null), {
|
|
30965
30980
|
file: e[3],
|
|
30966
30981
|
methodName: e[1] || ka,
|
|
@@ -30969,9 +30984,9 @@ function s6(t) {
|
|
|
30969
30984
|
column: e[5] ? +e[5] : null
|
|
30970
30985
|
};
|
|
30971
30986
|
}
|
|
30972
|
-
var
|
|
30973
|
-
function
|
|
30974
|
-
var e =
|
|
30987
|
+
var o6 = /^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;
|
|
30988
|
+
function l6(t) {
|
|
30989
|
+
var e = o6.exec(t);
|
|
30975
30990
|
return e ? {
|
|
30976
30991
|
file: e[3],
|
|
30977
30992
|
methodName: e[1] || ka,
|
|
@@ -30980,9 +30995,9 @@ function o6(t) {
|
|
|
30980
30995
|
column: e[5] ? +e[5] : null
|
|
30981
30996
|
} : null;
|
|
30982
30997
|
}
|
|
30983
|
-
var
|
|
30984
|
-
function
|
|
30985
|
-
var e =
|
|
30998
|
+
var u6 = /^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;
|
|
30999
|
+
function c6(t) {
|
|
31000
|
+
var e = u6.exec(t);
|
|
30986
31001
|
return e ? {
|
|
30987
31002
|
file: e[2],
|
|
30988
31003
|
methodName: e[1] || ka,
|
|
@@ -30992,12 +31007,12 @@ function u6(t) {
|
|
|
30992
31007
|
} : null;
|
|
30993
31008
|
}
|
|
30994
31009
|
let Gd = !1;
|
|
30995
|
-
const
|
|
31010
|
+
const d6 = ({ captureErrors: t }) => {
|
|
30996
31011
|
if (!(t !== !1) || Gd)
|
|
30997
31012
|
return;
|
|
30998
31013
|
Gd = !0;
|
|
30999
31014
|
const i = zd(new Error()), r = i == null ? void 0 : i.match(/initializeSentry/);
|
|
31000
|
-
|
|
31015
|
+
XA(Qt(de({}, i ? {} : { defaultIntegrations: !1 }), {
|
|
31001
31016
|
// See the message below.
|
|
31002
31017
|
dsn: "https://ea2f0f2a070b4934994dc8543b8d16e1@o271781.ingest.sentry.io/4504853792882688",
|
|
31003
31018
|
environment: r ? "development" : "production",
|
|
@@ -31006,7 +31021,7 @@ const c6 = ({ captureErrors: t }) => {
|
|
|
31006
31021
|
var C;
|
|
31007
31022
|
const _ = zd(g) === i, T = (C = g == null ? void 0 : g.message) == null ? void 0 : C.match(/request was interrupted/);
|
|
31008
31023
|
if (r || _ || T)
|
|
31009
|
-
return
|
|
31024
|
+
return f6(l);
|
|
31010
31025
|
}
|
|
31011
31026
|
})), !i && ah(new Error([
|
|
31012
31027
|
"Unable to determine the filename of the BeyondWords player script.",
|
|
@@ -31016,8 +31031,8 @@ const c6 = ({ captureErrors: t }) => {
|
|
|
31016
31031
|
`)));
|
|
31017
31032
|
}, zd = (t) => {
|
|
31018
31033
|
var e;
|
|
31019
|
-
return (e =
|
|
31020
|
-
},
|
|
31034
|
+
return (e = QA((t == null ? void 0 : t.stack) || "")[0]) == null ? void 0 : e.file;
|
|
31035
|
+
}, f6 = (t) => {
|
|
31021
31036
|
var i, r;
|
|
31022
31037
|
const e = ((r = (i = window.BeyondWords) == null ? void 0 : i.Player) == null ? void 0 : r.instances()) || [];
|
|
31023
31038
|
for (const [a, l] of e.entries()) {
|
|
@@ -31027,13 +31042,13 @@ const c6 = ({ captureErrors: t }) => {
|
|
|
31027
31042
|
return t;
|
|
31028
31043
|
};
|
|
31029
31044
|
let Hd = !1;
|
|
31030
|
-
const
|
|
31031
|
-
Hd || (Hd = !0, addEventListener("mousedown",
|
|
31032
|
-
}, h6 = (t) => {
|
|
31033
|
-
kh = t.pageX, Eh = t.pageY;
|
|
31045
|
+
const h6 = () => {
|
|
31046
|
+
Hd || (Hd = !0, addEventListener("mousedown", g6), addEventListener("click", v6), addEventListener("mousemove", m6));
|
|
31034
31047
|
}, g6 = (t) => {
|
|
31048
|
+
kh = t.pageX, Eh = t.pageY;
|
|
31049
|
+
}, v6 = (t) => {
|
|
31035
31050
|
var i;
|
|
31036
|
-
if (t.defaultPrevented ||
|
|
31051
|
+
if (t.defaultPrevented || p6(t) || t.button !== 0)
|
|
31037
31052
|
return;
|
|
31038
31053
|
const e = (i = Sh(t.target)) == null ? void 0 : i.getAttribute(Un);
|
|
31039
31054
|
if (e)
|
|
@@ -31049,12 +31064,12 @@ const f6 = () => {
|
|
|
31049
31064
|
segmentIndex: g
|
|
31050
31065
|
}));
|
|
31051
31066
|
}
|
|
31052
|
-
},
|
|
31067
|
+
}, m6 = (t) => {
|
|
31053
31068
|
var r;
|
|
31054
31069
|
const e = document.elementFromPoint(t.clientX, t.clientY), i = (r = Sh(e)) == null ? void 0 : r.getAttribute(Un);
|
|
31055
31070
|
for (const [a, l] of BeyondWords.Player.instances().entries()) {
|
|
31056
31071
|
const { segment: g, contentIndex: p, segmentIndex: _ } = Th(l, i);
|
|
31057
|
-
|
|
31072
|
+
_6(a, p, _) && l.onEvent(rt({
|
|
31058
31073
|
type: "HoveredSegmentUpdated",
|
|
31059
31074
|
description: "The user hovered over a different segment in the article.",
|
|
31060
31075
|
initiatedBy: "user",
|
|
@@ -31086,10 +31101,10 @@ const f6 = () => {
|
|
|
31086
31101
|
return i;
|
|
31087
31102
|
};
|
|
31088
31103
|
let kh, Eh;
|
|
31089
|
-
const
|
|
31104
|
+
const p6 = (t) => {
|
|
31090
31105
|
const e = t.pageX - kh, i = t.pageY - Eh;
|
|
31091
31106
|
return Math.sqrt(e * e + i * i) > 5;
|
|
31092
|
-
}, ro = {},
|
|
31107
|
+
}, ro = {}, _6 = (t, e, i) => {
|
|
31093
31108
|
ro[t] || (ro[t] = {});
|
|
31094
31109
|
const r = ro[t];
|
|
31095
31110
|
return r.contentIndex === e && r.segmentIndex === i ? !1 : (r.contentIndex = e, r.segmentIndex = i, !0);
|
|
@@ -31105,22 +31120,22 @@ class Pl {
|
|
|
31105
31120
|
window.gtag("event", e, Qt(de({}, i), { send_to: this.analyticsSink }));
|
|
31106
31121
|
}
|
|
31107
31122
|
}
|
|
31108
|
-
const
|
|
31109
|
-
const i =
|
|
31123
|
+
const y6 = (t, e) => {
|
|
31124
|
+
const i = b6(t, e.type);
|
|
31110
31125
|
if (!i)
|
|
31111
31126
|
return;
|
|
31112
|
-
const r =
|
|
31113
|
-
ov(r), t.analyticsUrl && t.analyticsConsent !== "none" && new Pl(t.analyticsUrl).sendToCustomAnalytics(r), t.analyticsCustomUrl && t.analyticsConsent !== "none" && new Pl(t.analyticsCustomUrl).sendToCustomAnalytics(r), t.analyticsTag && new Pl(t.analyticsTag).sendToGoogleAnalytics(
|
|
31114
|
-
},
|
|
31127
|
+
const r = S6(t, i);
|
|
31128
|
+
ov(r), t.analyticsUrl && t.analyticsConsent !== "none" && new Pl(t.analyticsUrl).sendToCustomAnalytics(r), t.analyticsCustomUrl && t.analyticsConsent !== "none" && new Pl(t.analyticsCustomUrl).sendToCustomAnalytics(r), t.analyticsTag && new Pl(t.analyticsTag).sendToGoogleAnalytics(T6(r), r);
|
|
31129
|
+
}, b6 = (t, e) => {
|
|
31115
31130
|
if (!t.listenSessionId && t.duration)
|
|
31116
31131
|
return "load";
|
|
31117
31132
|
if (e === "PlaybackPlaying" && (t.emitPlayEvent = "CurrentTimeUpdated"), e === t.emitPlayEvent)
|
|
31118
31133
|
return t.emitPlayEvent = null, "play";
|
|
31119
|
-
if (e === "CurrentTimeUpdated" &&
|
|
31134
|
+
if (e === "CurrentTimeUpdated" && k6(t))
|
|
31120
31135
|
return "play_progress";
|
|
31121
31136
|
if (e.startsWith("PressedAdvert"))
|
|
31122
31137
|
return "ad_link_click";
|
|
31123
|
-
},
|
|
31138
|
+
}, S6 = (t, e) => {
|
|
31124
31139
|
var g, p, _;
|
|
31125
31140
|
t.listenSessionId || (t.listenSessionId = lo()), t.sessionCreatedAt || (t.sessionCreatedAt = Date.now());
|
|
31126
31141
|
const i = t.analyticsConsent === "without-local-storage";
|
|
@@ -31128,7 +31143,7 @@ const _6 = (t, e) => {
|
|
|
31128
31143
|
const r = t.adverts[t.advertIndex], a = t.content[t.contentIndex], l = t.currentTime / t.duration * 100;
|
|
31129
31144
|
return {
|
|
31130
31145
|
event_type: e,
|
|
31131
|
-
device_type:
|
|
31146
|
+
device_type: E6(),
|
|
31132
31147
|
media_type: r ? "ad" : "content",
|
|
31133
31148
|
project_id: t.projectId,
|
|
31134
31149
|
content_id: a == null ? void 0 : a.id,
|
|
@@ -31148,7 +31163,7 @@ const _6 = (t, e) => {
|
|
|
31148
31163
|
player_version: "1",
|
|
31149
31164
|
player_npm_version: eu
|
|
31150
31165
|
};
|
|
31151
|
-
},
|
|
31166
|
+
}, T6 = ({ event_type: t, listen_length_percent: e }) => {
|
|
31152
31167
|
const i = Math.floor(e / 10) * 10;
|
|
31153
31168
|
if (t === "load")
|
|
31154
31169
|
return "Load";
|
|
@@ -31160,20 +31175,20 @@ const _6 = (t, e) => {
|
|
|
31160
31175
|
return `${i}% listened`;
|
|
31161
31176
|
if (t === "ad_link_click")
|
|
31162
31177
|
return "Advert Click";
|
|
31163
|
-
},
|
|
31178
|
+
}, k6 = (t) => {
|
|
31164
31179
|
const e = t.prevPercentage + 10;
|
|
31165
31180
|
if (t.currentTime / t.duration * 100 >= e)
|
|
31166
31181
|
return t.prevPercentage = e, !0;
|
|
31167
|
-
},
|
|
31182
|
+
}, E6 = () => Kd(499) ? "phone" : Kd(999) ? "tablet" : "desktop", Kd = (t) => window.matchMedia && window.matchMedia(`only screen and (max-device-width: ${t}px)`).matches;
|
|
31168
31183
|
var Mn;
|
|
31169
31184
|
const Dn = class extends b2 {
|
|
31170
31185
|
constructor(r) {
|
|
31171
31186
|
var a = r, { target: e } = a, i = hl(a, ["target"]);
|
|
31172
|
-
t3(),
|
|
31187
|
+
t3(), d6(i), h6();
|
|
31173
31188
|
const { newTarget: l, showUserInterface: g } = d2(e);
|
|
31174
31189
|
l.classList.add("beyondwords-player", "bwp");
|
|
31175
31190
|
const p = new e3(null, Dn);
|
|
31176
|
-
p.addEventListener("<any>", (T) =>
|
|
31191
|
+
p.addEventListener("<any>", (T) => y6(this, T));
|
|
31177
31192
|
const _ = de({ showUserInterface: g }, i);
|
|
31178
31193
|
super({ target: l, props: Qt(de({ controller: p }, _), { initialProps: _ }) }), p.player = this, Ir(Dn, Mn).push(this);
|
|
31179
31194
|
}
|
|
@@ -31206,8 +31221,8 @@ let sa = Dn;
|
|
|
31206
31221
|
Mn = new WeakMap(), ht(sa, Mn, []);
|
|
31207
31222
|
var Yd;
|
|
31208
31223
|
typeof window != "undefined" && (window.BeyondWords || (window.BeyondWords = {}), (Yd = window.BeyondWords).Player || (Yd.Player = sa));
|
|
31209
|
-
const
|
|
31224
|
+
const w6 = { Player: sa };
|
|
31210
31225
|
export {
|
|
31211
|
-
|
|
31226
|
+
w6 as default
|
|
31212
31227
|
};
|
|
31213
31228
|
//# sourceMappingURL=es.js.map
|