@spectosh/browser 0.2.4 → 0.2.5
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/react.cjs +1 -1
- package/dist/react.js +1 -1
- package/dist/specto-browser.cjs +1 -1
- package/dist/specto-browser.js +1 -1
- package/dist/{src-CWM5vchW.js → src-D-1ogCCr.js} +188 -179
- package/dist/{src-By9NWWVq.cjs → src-DyiwhKUe.cjs} +5 -5
- package/package.json +1 -1
- package/src/recorder.js +6 -4
|
@@ -89,19 +89,19 @@ function C(e) {
|
|
|
89
89
|
function w(e) {
|
|
90
90
|
return m("Node", e, "nextSibling");
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function ee(e) {
|
|
93
93
|
return m("Node", e, "previousSibling");
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function T(e, t) {
|
|
96
96
|
return g("Node", e, "contains")(t);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function E(e) {
|
|
99
99
|
return g("Node", e, "getRootNode")();
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function D(e) {
|
|
102
102
|
return !e || !("host" in e) ? null : m("ShadowRoot", e, "host");
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function O(e) {
|
|
105
105
|
return e.styleSheets;
|
|
106
106
|
}
|
|
107
107
|
function k(e) {
|
|
@@ -110,15 +110,15 @@ function k(e) {
|
|
|
110
110
|
function te(e, t) {
|
|
111
111
|
return m("Element", e, "querySelector")(t);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function ne(e, t) {
|
|
114
114
|
return m("Element", e, "querySelectorAll")(t);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function A() {
|
|
117
117
|
return [f("MutationObserver").constructor, u.MutationObserver ?? (() => {})];
|
|
118
118
|
}
|
|
119
|
-
var
|
|
120
|
-
/* @__PURE__ */ /[1-9][0-9]{12}/.test(Date.now().toString()) || (
|
|
121
|
-
function
|
|
119
|
+
var re = Date.now;
|
|
120
|
+
/* @__PURE__ */ /[1-9][0-9]{12}/.test(Date.now().toString()) || (re = () => (/* @__PURE__ */ new Date()).getTime());
|
|
121
|
+
function ie(e, t, n) {
|
|
122
122
|
try {
|
|
123
123
|
if (!(t in e)) return () => {};
|
|
124
124
|
let r = e[t], i = n(r);
|
|
@@ -132,7 +132,7 @@ function re(e, t, n) {
|
|
|
132
132
|
return () => {};
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
-
var
|
|
135
|
+
var j = {
|
|
136
136
|
ownerDocument: _,
|
|
137
137
|
childNodes: v,
|
|
138
138
|
parentNode: y,
|
|
@@ -141,24 +141,24 @@ var M = {
|
|
|
141
141
|
firstChild: S,
|
|
142
142
|
lastChild: C,
|
|
143
143
|
nextSibling: w,
|
|
144
|
-
previousSibling:
|
|
145
|
-
contains:
|
|
146
|
-
getRootNode:
|
|
147
|
-
host:
|
|
148
|
-
styleSheets:
|
|
144
|
+
previousSibling: ee,
|
|
145
|
+
contains: T,
|
|
146
|
+
getRootNode: E,
|
|
147
|
+
host: D,
|
|
148
|
+
styleSheets: O,
|
|
149
149
|
shadowRoot: k,
|
|
150
150
|
querySelector: te,
|
|
151
|
-
querySelectorAll:
|
|
152
|
-
nowTimestamp:
|
|
153
|
-
mutationObserverCtor:
|
|
154
|
-
patch:
|
|
151
|
+
querySelectorAll: ne,
|
|
152
|
+
nowTimestamp: re,
|
|
153
|
+
mutationObserverCtor: A,
|
|
154
|
+
patch: ie
|
|
155
155
|
};
|
|
156
|
-
function
|
|
156
|
+
function M(e) {
|
|
157
157
|
return e.nodeType === e.ELEMENT_NODE;
|
|
158
158
|
}
|
|
159
159
|
function ae(e) {
|
|
160
|
-
let t = e && "host" in e && "mode" in e &&
|
|
161
|
-
return !!(t && "shadowRoot" in t &&
|
|
160
|
+
let t = e && "host" in e && "mode" in e && j.host(e) || null;
|
|
161
|
+
return !!(t && "shadowRoot" in t && j.shadowRoot(t) === e);
|
|
162
162
|
}
|
|
163
163
|
function N(e) {
|
|
164
164
|
return Object.prototype.toString.call(e) === "[object ShadowRoot]";
|
|
@@ -428,19 +428,19 @@ function We(e, t, n) {
|
|
|
428
428
|
}
|
|
429
429
|
function Ge(e, t, n) {
|
|
430
430
|
if (!e) return !1;
|
|
431
|
-
if (e.nodeType !== e.ELEMENT_NODE) return n ? Ge(
|
|
431
|
+
if (e.nodeType !== e.ELEMENT_NODE) return n ? Ge(j.parentNode(e), t, n) : !1;
|
|
432
432
|
for (let n = e.classList.length; n--;) {
|
|
433
433
|
let r = e.classList[n];
|
|
434
434
|
if (t.test(r)) return !0;
|
|
435
435
|
}
|
|
436
|
-
return n ? Ge(
|
|
436
|
+
return n ? Ge(j.parentNode(e), t, n) : !1;
|
|
437
437
|
}
|
|
438
438
|
function Ke(e, t, n, r) {
|
|
439
439
|
let i;
|
|
440
|
-
if (
|
|
441
|
-
if (i = e, !
|
|
442
|
-
} else if (
|
|
443
|
-
else i =
|
|
440
|
+
if (M(e)) {
|
|
441
|
+
if (i = e, !j.childNodes(i).length) return !1;
|
|
442
|
+
} else if (j.parentElement(e) === null) return !1;
|
|
443
|
+
else i = j.parentElement(e);
|
|
444
444
|
try {
|
|
445
445
|
if (typeof t == "string") {
|
|
446
446
|
if (r) {
|
|
@@ -538,7 +538,7 @@ function Ye(e, t) {
|
|
|
538
538
|
};
|
|
539
539
|
case e.COMMENT_NODE: return {
|
|
540
540
|
type: o.Comment,
|
|
541
|
-
textContent:
|
|
541
|
+
textContent: j.textContent(e) || "",
|
|
542
542
|
rootId: v
|
|
543
543
|
};
|
|
544
544
|
default: return !1;
|
|
@@ -550,8 +550,8 @@ function Xe(e, t) {
|
|
|
550
550
|
return n === 1 ? void 0 : n;
|
|
551
551
|
}
|
|
552
552
|
function Ze(e, t) {
|
|
553
|
-
let { needsMask: n, maskTextFn: r, rootId: i, cssCaptured: a } = t, s =
|
|
554
|
-
return d ? l = "SCRIPT_PLACEHOLDER" : a || (l =
|
|
553
|
+
let { needsMask: n, maskTextFn: r, rootId: i, cssCaptured: a } = t, s = j.parentNode(e), c = s && s.tagName, l = "", u = c === "STYLE" || void 0, d = c === "SCRIPT" || void 0;
|
|
554
|
+
return d ? l = "SCRIPT_PLACEHOLDER" : a || (l = j.textContent(e), u && l && (l = we(l, Ve(t.doc)))), !u && !d && l && n && (l = r ? r(l, j.parentElement(e)) : l.replace(/[\S]/g, "*")), {
|
|
555
555
|
type: o.Text,
|
|
556
556
|
textContent: l || "",
|
|
557
557
|
rootId: i
|
|
@@ -660,14 +660,14 @@ function et(e, t) {
|
|
|
660
660
|
return !!(t.comment && e.type === o.Comment || e.type === o.Element && (t.script && (e.tagName === "script" || e.tagName === "link" && (e.attributes.rel === "preload" && e.attributes.as === "script" || e.attributes.rel === "modulepreload") || e.tagName === "link" && e.attributes.rel === "prefetch" && typeof e.attributes.href == "string" && ve(e.attributes.href) === "js") || t.headFavicon && (e.tagName === "link" && e.attributes.rel === "shortcut icon" || e.tagName === "meta" && (I(e.attributes.name).match(/^msapplication-tile(image|color)$/) || I(e.attributes.name) === "application-name" || I(e.attributes.rel) === "icon" || I(e.attributes.rel) === "apple-touch-icon" || I(e.attributes.rel) === "shortcut icon")) || e.tagName === "meta" && (t.headMetaDescKeywords && I(e.attributes.name).match(/^description|keywords$/) || t.headMetaSocial && (I(e.attributes.property).match(/^(og|twitter|fb):/) || I(e.attributes.name).match(/^(og|twitter):/) || I(e.attributes.name) === "pinterest") || t.headMetaRobots && (I(e.attributes.name) === "robots" || I(e.attributes.name) === "googlebot" || I(e.attributes.name) === "bingbot") || t.headMetaHttpEquiv && e.attributes["http-equiv"] !== void 0 || t.headMetaAuthorship && (I(e.attributes.name) === "author" || I(e.attributes.name) === "generator" || I(e.attributes.name) === "framework" || I(e.attributes.name) === "publisher" || I(e.attributes.name) === "progid" || I(e.attributes.property).match(/^article:/) || I(e.attributes.property).match(/^product:/)) || t.headMetaVerification && (I(e.attributes.name) === "google-site-verification" || I(e.attributes.name) === "yandex-verification" || I(e.attributes.name) === "csrf-token" || I(e.attributes.name) === "p:domain_verify" || I(e.attributes.name) === "verify-v1" || I(e.attributes.name) === "verification" || I(e.attributes.name) === "shopify-checkout-api-token"))));
|
|
661
661
|
}
|
|
662
662
|
function tt(e, t) {
|
|
663
|
-
let { doc: n, mirror: r, blockClass: i, blockSelector: a, maskTextClass: s, maskTextSelector: c, skipChild: l = !1, inlineStylesheet: u = !0, maskInputOptions: d = {}, maskTextFn: f, maskInputFn: p, slimDOMOptions: m, dataURLOptions: h = {}, inlineImages: g = !1, recordCanvas: _ = !1, onSerialize: v, onIframeLoad: y, iframeLoadTimeout: b = 5e3, onStylesheetLoad: x, stylesheetLoadTimeout: S = 5e3, keepIframeSrcFn: C = () => !1, newlyAddedElement: w = !1, cssCaptured:
|
|
664
|
-
|
|
665
|
-
let
|
|
663
|
+
let { doc: n, mirror: r, blockClass: i, blockSelector: a, maskTextClass: s, maskTextSelector: c, skipChild: l = !1, inlineStylesheet: u = !0, maskInputOptions: d = {}, maskTextFn: f, maskInputFn: p, slimDOMOptions: m, dataURLOptions: h = {}, inlineImages: g = !1, recordCanvas: _ = !1, onSerialize: v, onIframeLoad: y, iframeLoadTimeout: b = 5e3, onStylesheetLoad: x, stylesheetLoadTimeout: S = 5e3, keepIframeSrcFn: C = () => !1, newlyAddedElement: w = !1, cssCaptured: ee = !1 } = t, { needsMask: T } = t, { preserveWhiteSpace: E = !0 } = t;
|
|
664
|
+
T ||= Ke(e, s, c, T === void 0);
|
|
665
|
+
let D = Ye(e, {
|
|
666
666
|
doc: n,
|
|
667
667
|
mirror: r,
|
|
668
668
|
blockClass: i,
|
|
669
669
|
blockSelector: a,
|
|
670
|
-
needsMask:
|
|
670
|
+
needsMask: T,
|
|
671
671
|
inlineStylesheet: u,
|
|
672
672
|
maskInputOptions: d,
|
|
673
673
|
maskTextFn: f,
|
|
@@ -677,28 +677,28 @@ function tt(e, t) {
|
|
|
677
677
|
recordCanvas: _,
|
|
678
678
|
keepIframeSrcFn: C,
|
|
679
679
|
newlyAddedElement: w,
|
|
680
|
-
cssCaptured:
|
|
680
|
+
cssCaptured: ee
|
|
681
681
|
});
|
|
682
|
-
if (!
|
|
683
|
-
let
|
|
684
|
-
|
|
685
|
-
let k = Object.assign(
|
|
686
|
-
if (r.add(e, k),
|
|
682
|
+
if (!D) return console.warn(e, "not serialized"), null;
|
|
683
|
+
let O;
|
|
684
|
+
O = r.hasNode(e) ? r.getId(e) : et(D, m) || !E && D.type === o.Text && !D.textContent.replace(/^\s+|\s+$/gm, "").length ? Ae : je();
|
|
685
|
+
let k = Object.assign(D, { id: O });
|
|
686
|
+
if (r.add(e, k), O === Ae) return null;
|
|
687
687
|
v && v(e);
|
|
688
688
|
let te = !l;
|
|
689
689
|
if (k.type === o.Element) {
|
|
690
690
|
te &&= !k.needBlock, delete k.needBlock;
|
|
691
|
-
let t =
|
|
691
|
+
let t = j.shadowRoot(e);
|
|
692
692
|
t && N(t) && (k.isShadowHost = !0);
|
|
693
693
|
}
|
|
694
694
|
if ((k.type === o.Document || k.type === o.Element) && te) {
|
|
695
|
-
m.headWhitespace && k.type === o.Element && k.tagName === "head" && (
|
|
695
|
+
m.headWhitespace && k.type === o.Element && k.tagName === "head" && (E = !1);
|
|
696
696
|
let t = {
|
|
697
697
|
doc: n,
|
|
698
698
|
mirror: r,
|
|
699
699
|
blockClass: i,
|
|
700
700
|
blockSelector: a,
|
|
701
|
-
needsMask:
|
|
701
|
+
needsMask: T,
|
|
702
702
|
maskTextClass: s,
|
|
703
703
|
maskTextSelector: c,
|
|
704
704
|
skipChild: l,
|
|
@@ -710,7 +710,7 @@ function tt(e, t) {
|
|
|
710
710
|
dataURLOptions: h,
|
|
711
711
|
inlineImages: g,
|
|
712
712
|
recordCanvas: _,
|
|
713
|
-
preserveWhiteSpace:
|
|
713
|
+
preserveWhiteSpace: E,
|
|
714
714
|
onSerialize: v,
|
|
715
715
|
onIframeLoad: y,
|
|
716
716
|
iframeLoadTimeout: b,
|
|
@@ -721,19 +721,19 @@ function tt(e, t) {
|
|
|
721
721
|
};
|
|
722
722
|
if (k.type !== o.Element || k.tagName !== "textarea" || k.attributes.value === void 0) {
|
|
723
723
|
k.type === o.Element && k.attributes._cssText !== void 0 && typeof k.attributes._cssText == "string" && (t.cssCaptured = !0);
|
|
724
|
-
for (let n of Array.from(
|
|
724
|
+
for (let n of Array.from(j.childNodes(e))) {
|
|
725
725
|
let e = tt(n, t);
|
|
726
726
|
e && k.childNodes.push(e);
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
729
|
let w = null;
|
|
730
|
-
if (
|
|
730
|
+
if (M(e) && (w = j.shadowRoot(e))) for (let e of Array.from(j.childNodes(w))) {
|
|
731
731
|
let n = tt(e, t);
|
|
732
732
|
n && (N(w) && (n.isShadow = !0), k.childNodes.push(n));
|
|
733
733
|
}
|
|
734
734
|
}
|
|
735
|
-
let
|
|
736
|
-
return
|
|
735
|
+
let ne = j.parentNode(e);
|
|
736
|
+
return ne && ae(ne) && N(ne) && (k.isShadow = !0), k.type === o.Element && k.tagName === "iframe" && qe(e, () => {
|
|
737
737
|
let t = e.contentDocument;
|
|
738
738
|
if (t && y) {
|
|
739
739
|
let n = tt(t, {
|
|
@@ -741,7 +741,7 @@ function tt(e, t) {
|
|
|
741
741
|
mirror: r,
|
|
742
742
|
blockClass: i,
|
|
743
743
|
blockSelector: a,
|
|
744
|
-
needsMask:
|
|
744
|
+
needsMask: T,
|
|
745
745
|
maskTextClass: s,
|
|
746
746
|
maskTextSelector: c,
|
|
747
747
|
skipChild: !1,
|
|
@@ -753,7 +753,7 @@ function tt(e, t) {
|
|
|
753
753
|
dataURLOptions: h,
|
|
754
754
|
inlineImages: g,
|
|
755
755
|
recordCanvas: _,
|
|
756
|
-
preserveWhiteSpace:
|
|
756
|
+
preserveWhiteSpace: E,
|
|
757
757
|
onSerialize: v,
|
|
758
758
|
onIframeLoad: y,
|
|
759
759
|
iframeLoadTimeout: b,
|
|
@@ -770,7 +770,7 @@ function tt(e, t) {
|
|
|
770
770
|
mirror: r,
|
|
771
771
|
blockClass: i,
|
|
772
772
|
blockSelector: a,
|
|
773
|
-
needsMask:
|
|
773
|
+
needsMask: T,
|
|
774
774
|
maskTextClass: s,
|
|
775
775
|
maskTextSelector: c,
|
|
776
776
|
skipChild: !1,
|
|
@@ -782,7 +782,7 @@ function tt(e, t) {
|
|
|
782
782
|
dataURLOptions: h,
|
|
783
783
|
inlineImages: g,
|
|
784
784
|
recordCanvas: _,
|
|
785
|
-
preserveWhiteSpace:
|
|
785
|
+
preserveWhiteSpace: E,
|
|
786
786
|
onSerialize: v,
|
|
787
787
|
onIframeLoad: y,
|
|
788
788
|
iframeLoadTimeout: b,
|
|
@@ -1998,7 +1998,7 @@ function an() {
|
|
|
1998
1998
|
function w() {
|
|
1999
1999
|
return x.length === 0 && y >= v;
|
|
2000
2000
|
}
|
|
2001
|
-
function
|
|
2001
|
+
function ee(i) {
|
|
2002
2002
|
if (x.length) return x.pop();
|
|
2003
2003
|
if (y >= v) return;
|
|
2004
2004
|
let a = i ? i.ignoreUnclosed : !1;
|
|
@@ -2114,13 +2114,13 @@ function an() {
|
|
|
2114
2114
|
}
|
|
2115
2115
|
return y++, _;
|
|
2116
2116
|
}
|
|
2117
|
-
function
|
|
2117
|
+
function T(e) {
|
|
2118
2118
|
x.push(e);
|
|
2119
2119
|
}
|
|
2120
2120
|
return {
|
|
2121
|
-
back:
|
|
2121
|
+
back: T,
|
|
2122
2122
|
endOfFile: w,
|
|
2123
|
-
nextToken:
|
|
2123
|
+
nextToken: ee,
|
|
2124
2124
|
position: S
|
|
2125
2125
|
};
|
|
2126
2126
|
}, nn;
|
|
@@ -4157,7 +4157,7 @@ function Hr() {
|
|
|
4157
4157
|
function w() {
|
|
4158
4158
|
return x.length === 0 && y >= v;
|
|
4159
4159
|
}
|
|
4160
|
-
function
|
|
4160
|
+
function ee(i) {
|
|
4161
4161
|
if (x.length) return x.pop();
|
|
4162
4162
|
if (y >= v) return;
|
|
4163
4163
|
let a = i ? i.ignoreUnclosed : !1;
|
|
@@ -4273,13 +4273,13 @@ function Hr() {
|
|
|
4273
4273
|
}
|
|
4274
4274
|
return y++, _;
|
|
4275
4275
|
}
|
|
4276
|
-
function
|
|
4276
|
+
function T(e) {
|
|
4277
4277
|
x.push(e);
|
|
4278
4278
|
}
|
|
4279
4279
|
return {
|
|
4280
|
-
back:
|
|
4280
|
+
back: T,
|
|
4281
4281
|
endOfFile: w,
|
|
4282
|
-
nextToken:
|
|
4282
|
+
nextToken: ee,
|
|
4283
4283
|
position: S
|
|
4284
4284
|
};
|
|
4285
4285
|
}, Br;
|
|
@@ -6842,18 +6842,18 @@ try {
|
|
|
6842
6842
|
}
|
|
6843
6843
|
var Z = fe();
|
|
6844
6844
|
function Oo(e = {}) {
|
|
6845
|
-
let { emit: t, checkoutEveryNms: n, checkoutEveryNth: r, blockClass: i = "rr-block", blockSelector: a = null, ignoreClass: o = "rr-ignore", ignoreSelector: s = null, maskTextClass: c = "rr-mask", maskTextSelector: l = null, inlineStylesheet: u = !0, maskAllInputs: d, maskInputOptions: f, slimDOMOptions: p, maskInputFn: m, maskTextFn: h, hooks: g, packFn: _, sampling: v = {}, dataURLOptions: y = {}, mousemoveWait: b, recordDOM: x = !0, recordCanvas: S = !1, recordCrossOriginIframes: C = !1, recordAfter: w = e.recordAfter === "DOMContentLoaded" ? e.recordAfter : "load", userTriggeredOnInput:
|
|
6845
|
+
let { emit: t, checkoutEveryNms: n, checkoutEveryNth: r, blockClass: i = "rr-block", blockSelector: a = null, ignoreClass: o = "rr-ignore", ignoreSelector: s = null, maskTextClass: c = "rr-mask", maskTextSelector: l = null, inlineStylesheet: u = !0, maskAllInputs: d, maskInputOptions: f, slimDOMOptions: p, maskInputFn: m, maskTextFn: h, hooks: g, packFn: _, sampling: v = {}, dataURLOptions: y = {}, mousemoveWait: b, recordDOM: x = !0, recordCanvas: S = !1, recordCrossOriginIframes: C = !1, recordAfter: w = e.recordAfter === "DOMContentLoaded" ? e.recordAfter : "load", userTriggeredOnInput: ee = !1, collectFonts: T = !1, inlineImages: E = !1, plugins: D, keepIframeSrcFn: O = () => !1, ignoreCSSAttributes: k = /* @__PURE__ */ new Set([]), errorHandler: te } = e;
|
|
6846
6846
|
ka(te);
|
|
6847
|
-
let
|
|
6848
|
-
if (!
|
|
6849
|
-
window.parent.document && (
|
|
6847
|
+
let ne = !C || window.parent === window, A = !1;
|
|
6848
|
+
if (!ne) try {
|
|
6849
|
+
window.parent.document && (A = !1);
|
|
6850
6850
|
} catch {
|
|
6851
|
-
|
|
6851
|
+
A = !0;
|
|
6852
6852
|
}
|
|
6853
|
-
if (
|
|
6854
|
-
if (!
|
|
6853
|
+
if (ne && !t) throw Error("emit function is required");
|
|
6854
|
+
if (!ne && !A) return () => {};
|
|
6855
6855
|
b !== void 0 && v.mousemove === void 0 && (v.mousemove = b), Z.reset();
|
|
6856
|
-
let
|
|
6856
|
+
let re = d === !0 ? {
|
|
6857
6857
|
color: !0,
|
|
6858
6858
|
date: !0,
|
|
6859
6859
|
"datetime-local": !0,
|
|
@@ -6870,16 +6870,16 @@ function Oo(e = {}) {
|
|
|
6870
6870
|
textarea: !0,
|
|
6871
6871
|
select: !0,
|
|
6872
6872
|
password: !0
|
|
6873
|
-
} : f === void 0 ? { password: !0 } : f,
|
|
6873
|
+
} : f === void 0 ? { password: !0 } : f, ie = $e(p);
|
|
6874
6874
|
la();
|
|
6875
|
-
let
|
|
6876
|
-
for (let t of
|
|
6877
|
-
return _ && !
|
|
6875
|
+
let j, M = 0, ae = (e) => {
|
|
6876
|
+
for (let t of D || []) t.eventProcessor && (e = t.eventProcessor(e));
|
|
6877
|
+
return _ && !A && (e = _(e)), e;
|
|
6878
6878
|
};
|
|
6879
6879
|
X = (e, i) => {
|
|
6880
6880
|
let a = e;
|
|
6881
|
-
if (a.timestamp = Yi(), ja[0]?.isFrozen() && a.type !== K.FullSnapshot && (a.type !== K.IncrementalSnapshot || a.data.source !== q.Mutation) && ja.forEach((e) => e.unfreeze()),
|
|
6882
|
-
else if (
|
|
6881
|
+
if (a.timestamp = Yi(), ja[0]?.isFrozen() && a.type !== K.FullSnapshot && (a.type !== K.IncrementalSnapshot || a.data.source !== q.Mutation) && ja.forEach((e) => e.unfreeze()), ne) t?.(ae(a), i);
|
|
6882
|
+
else if (A) {
|
|
6883
6883
|
let e = {
|
|
6884
6884
|
type: "rrweb",
|
|
6885
6885
|
event: ae(a),
|
|
@@ -6888,11 +6888,11 @@ function Oo(e = {}) {
|
|
|
6888
6888
|
};
|
|
6889
6889
|
window.parent.postMessage(e, "*");
|
|
6890
6890
|
}
|
|
6891
|
-
if (a.type === K.FullSnapshot)
|
|
6891
|
+
if (a.type === K.FullSnapshot) j = a, M = 0;
|
|
6892
6892
|
else if (a.type === K.IncrementalSnapshot) {
|
|
6893
6893
|
if (a.data.source === q.Mutation && a.data.isAttachIframe) return;
|
|
6894
|
-
|
|
6895
|
-
let e = r &&
|
|
6894
|
+
M++;
|
|
6895
|
+
let e = r && M >= r, t = n && a.timestamp - j.timestamp > n;
|
|
6896
6896
|
(e || t) && To(!0);
|
|
6897
6897
|
}
|
|
6898
6898
|
};
|
|
@@ -6932,7 +6932,7 @@ function Oo(e = {}) {
|
|
|
6932
6932
|
recordCrossOriginIframes: C,
|
|
6933
6933
|
wrappedEmit: X
|
|
6934
6934
|
});
|
|
6935
|
-
for (let e of
|
|
6935
|
+
for (let e of D || []) e.getMirror && e.getMirror({
|
|
6936
6936
|
nodeMirror: Z,
|
|
6937
6937
|
crossOriginIframeMirror: F.crossOriginIframeMirror,
|
|
6938
6938
|
crossOriginIframeStyleMirror: F.crossOriginIframeStyleMirror
|
|
@@ -6957,18 +6957,18 @@ function Oo(e = {}) {
|
|
|
6957
6957
|
maskTextClass: c,
|
|
6958
6958
|
maskTextSelector: l,
|
|
6959
6959
|
inlineStylesheet: u,
|
|
6960
|
-
maskInputOptions:
|
|
6960
|
+
maskInputOptions: re,
|
|
6961
6961
|
dataURLOptions: y,
|
|
6962
6962
|
maskTextFn: h,
|
|
6963
6963
|
maskInputFn: m,
|
|
6964
6964
|
recordCanvas: S,
|
|
6965
|
-
inlineImages:
|
|
6965
|
+
inlineImages: E,
|
|
6966
6966
|
sampling: v,
|
|
6967
|
-
slimDOMOptions:
|
|
6967
|
+
slimDOMOptions: ie,
|
|
6968
6968
|
iframeManager: F,
|
|
6969
6969
|
stylesheetManager: P,
|
|
6970
6970
|
canvasManager: Eo,
|
|
6971
|
-
keepIframeSrcFn:
|
|
6971
|
+
keepIframeSrcFn: O,
|
|
6972
6972
|
processedNodeManager: ce
|
|
6973
6973
|
},
|
|
6974
6974
|
mirror: Z
|
|
@@ -6990,13 +6990,13 @@ function Oo(e = {}) {
|
|
|
6990
6990
|
maskTextClass: c,
|
|
6991
6991
|
maskTextSelector: l,
|
|
6992
6992
|
inlineStylesheet: u,
|
|
6993
|
-
maskAllInputs:
|
|
6993
|
+
maskAllInputs: re,
|
|
6994
6994
|
maskTextFn: h,
|
|
6995
6995
|
maskInputFn: m,
|
|
6996
|
-
slimDOM:
|
|
6996
|
+
slimDOM: ie,
|
|
6997
6997
|
dataURLOptions: y,
|
|
6998
6998
|
recordCanvas: S,
|
|
6999
|
-
inlineImages:
|
|
6999
|
+
inlineImages: E,
|
|
7000
7000
|
onSerialize: (e) => {
|
|
7001
7001
|
ua(e, Z) && F.addIframe(e), da(e, Z) && P.trackLinkElement(e), fa(e) && le.addShadowRoot(U.shadowRoot(e), document);
|
|
7002
7002
|
},
|
|
@@ -7006,7 +7006,7 @@ function Oo(e = {}) {
|
|
|
7006
7006
|
onStylesheetLoad: (e, t) => {
|
|
7007
7007
|
P.attachLinkElement(e, t);
|
|
7008
7008
|
},
|
|
7009
|
-
keepIframeSrcFn:
|
|
7009
|
+
keepIframeSrcFn: O
|
|
7010
7010
|
});
|
|
7011
7011
|
if (!t) return console.warn("Failed to snapshot the document");
|
|
7012
7012
|
X({
|
|
@@ -7101,20 +7101,20 @@ function Oo(e = {}) {
|
|
|
7101
7101
|
ignoreSelector: s,
|
|
7102
7102
|
maskTextClass: c,
|
|
7103
7103
|
maskTextSelector: l,
|
|
7104
|
-
maskInputOptions:
|
|
7104
|
+
maskInputOptions: re,
|
|
7105
7105
|
inlineStylesheet: u,
|
|
7106
7106
|
sampling: v,
|
|
7107
7107
|
recordDOM: x,
|
|
7108
7108
|
recordCanvas: S,
|
|
7109
|
-
inlineImages:
|
|
7110
|
-
userTriggeredOnInput:
|
|
7111
|
-
collectFonts:
|
|
7109
|
+
inlineImages: E,
|
|
7110
|
+
userTriggeredOnInput: ee,
|
|
7111
|
+
collectFonts: T,
|
|
7112
7112
|
doc: e,
|
|
7113
7113
|
maskInputFn: m,
|
|
7114
7114
|
maskTextFn: h,
|
|
7115
|
-
keepIframeSrcFn:
|
|
7115
|
+
keepIframeSrcFn: O,
|
|
7116
7116
|
blockSelector: a,
|
|
7117
|
-
slimDOMOptions:
|
|
7117
|
+
slimDOMOptions: ie,
|
|
7118
7118
|
dataURLOptions: y,
|
|
7119
7119
|
mirror: Z,
|
|
7120
7120
|
iframeManager: F,
|
|
@@ -7123,7 +7123,7 @@ function Oo(e = {}) {
|
|
|
7123
7123
|
processedNodeManager: ce,
|
|
7124
7124
|
canvasManager: Eo,
|
|
7125
7125
|
ignoreCSSAttributes: k,
|
|
7126
|
-
plugins: (
|
|
7126
|
+
plugins: (D?.filter((e) => e.observer))?.map((e) => ({
|
|
7127
7127
|
observer: e.observer,
|
|
7128
7128
|
options: e.options,
|
|
7129
7129
|
callback: (t) => X({
|
|
@@ -7327,7 +7327,7 @@ function Ho(e = {}, { fallback: t = null, guessed: n = !1 } = {}) {
|
|
|
7327
7327
|
}
|
|
7328
7328
|
//#endregion
|
|
7329
7329
|
//#region src/recorder.js
|
|
7330
|
-
var Uo = "0.2.
|
|
7330
|
+
var Uo = "0.2.5", Wo = (e) => (e = e.toLowerCase(), e.startsWith("data-") || e === "title" || e === "alt" || e === "placeholder" || e === "aria-label" || e === "value");
|
|
7331
7331
|
function Go(e) {
|
|
7332
7332
|
if (e && typeof e == "object") for (let t of Object.keys(e)) Wo(t) && typeof e[t] == "string" && e[t] && (e[t] = "***");
|
|
7333
7333
|
}
|
|
@@ -7540,14 +7540,20 @@ function bs(e, t) {
|
|
|
7540
7540
|
strict: e.privacy === "strict",
|
|
7541
7541
|
console: e.console !== !1,
|
|
7542
7542
|
networkDetails: e.networkDetails !== !1
|
|
7543
|
-
}, h = null, g = () => h || m, _ = () => {
|
|
7543
|
+
}, h = null, g = () => h || m, _ = () => {
|
|
7544
|
+
try {
|
|
7545
|
+
return $(location.pathname, g().strict).slice(0, 300);
|
|
7546
|
+
} catch {
|
|
7547
|
+
return;
|
|
7548
|
+
}
|
|
7549
|
+
}, v = () => {}, y = typeof WeakSet < "u" ? /* @__PURE__ */ new WeakSet() : null, b = null, x = !1, S = [], C = null, w = Date.now(), ee = [], T = {}, E = !1, D = (t, n) => {
|
|
7544
7550
|
if (!s) {
|
|
7545
7551
|
if (!o) {
|
|
7546
7552
|
if ((T[t] = (T[t] || 0) + 1) > (ys[t] ?? 100)) {
|
|
7547
7553
|
t === "dom" && (E = !0);
|
|
7548
7554
|
return;
|
|
7549
7555
|
}
|
|
7550
|
-
|
|
7556
|
+
ee.push([t, n]);
|
|
7551
7557
|
return;
|
|
7552
7558
|
}
|
|
7553
7559
|
i.push({
|
|
@@ -7559,7 +7565,7 @@ function bs(e, t) {
|
|
|
7559
7565
|
});
|
|
7560
7566
|
}
|
|
7561
7567
|
}, O = () => ss.set("sessionStorage", f, p);
|
|
7562
|
-
function
|
|
7568
|
+
function k(e) {
|
|
7563
7569
|
let t = Date.now(), n = e ? null : ss.get("sessionStorage", f), r = !!(n && typeof n.id == "string" && t - n.active < ps && t - n.started < ms);
|
|
7564
7570
|
if (r) p = n;
|
|
7565
7571
|
else {
|
|
@@ -7575,13 +7581,13 @@ function bs(e, t) {
|
|
|
7575
7581
|
}
|
|
7576
7582
|
return p.active = t, O(), r;
|
|
7577
7583
|
}
|
|
7578
|
-
function
|
|
7579
|
-
if (
|
|
7584
|
+
function te() {
|
|
7585
|
+
if (re(), k(!0), !p.sampled) return M.stop("not-sampled");
|
|
7580
7586
|
try {
|
|
7581
7587
|
Oo.takeFullSnapshot(!0);
|
|
7582
7588
|
} catch {}
|
|
7583
7589
|
}
|
|
7584
|
-
function
|
|
7590
|
+
function ne(e) {
|
|
7585
7591
|
if (!e.length || !p?.sampled) return;
|
|
7586
7592
|
let t = {
|
|
7587
7593
|
b: p.b++,
|
|
@@ -7599,32 +7605,32 @@ function bs(e, t) {
|
|
|
7599
7605
|
events: e
|
|
7600
7606
|
})
|
|
7601
7607
|
};
|
|
7602
|
-
p.active = Math.max(p.active,
|
|
7608
|
+
p.active = Math.max(p.active, w), O(), b ? (b.postMessage({
|
|
7603
7609
|
t: "upload",
|
|
7604
7610
|
item: t
|
|
7605
|
-
}),
|
|
7611
|
+
}), x || S.push(t)) : C.push(t);
|
|
7606
7612
|
}
|
|
7607
7613
|
function A() {
|
|
7608
|
-
if (!
|
|
7614
|
+
if (!C) {
|
|
7609
7615
|
try {
|
|
7610
|
-
|
|
7616
|
+
b?.terminate();
|
|
7611
7617
|
} catch {}
|
|
7612
|
-
|
|
7618
|
+
b = null, C = Lo({
|
|
7613
7619
|
endpoint: r,
|
|
7614
|
-
onEvent:
|
|
7620
|
+
onEvent: ie
|
|
7615
7621
|
});
|
|
7616
|
-
for (let e of
|
|
7622
|
+
for (let e of S.splice(0)) C.push(e);
|
|
7617
7623
|
}
|
|
7618
7624
|
}
|
|
7619
|
-
function
|
|
7625
|
+
function re() {
|
|
7620
7626
|
if (!i.length) return;
|
|
7621
7627
|
let e = i;
|
|
7622
|
-
i = [],
|
|
7628
|
+
i = [], ne(e);
|
|
7623
7629
|
}
|
|
7624
|
-
function
|
|
7625
|
-
t.t === "stop" ? M.stop(t.code) : t.t === "rotate" &&
|
|
7630
|
+
function ie(t) {
|
|
7631
|
+
t.t === "stop" ? M.stop(t.code) : t.t === "rotate" && te(), e.onDelivery?.(t);
|
|
7626
7632
|
}
|
|
7627
|
-
function
|
|
7633
|
+
function j() {
|
|
7628
7634
|
if (!i.length || !navigator.sendBeacon || !p?.sampled) return;
|
|
7629
7635
|
let e = i;
|
|
7630
7636
|
i = [];
|
|
@@ -7656,7 +7662,7 @@ function bs(e, t) {
|
|
|
7656
7662
|
return p?.id || null;
|
|
7657
7663
|
},
|
|
7658
7664
|
count: () => a,
|
|
7659
|
-
flushNow: () =>
|
|
7665
|
+
flushNow: () => re(),
|
|
7660
7666
|
identify(e, t) {
|
|
7661
7667
|
e != null && e !== "" && D("identify", {
|
|
7662
7668
|
id: String(e).slice(0, 256),
|
|
@@ -7672,15 +7678,16 @@ function bs(e, t) {
|
|
|
7672
7678
|
});
|
|
7673
7679
|
},
|
|
7674
7680
|
captureError(e, t) {
|
|
7675
|
-
if (e && typeof e == "object" &&
|
|
7676
|
-
if (
|
|
7677
|
-
|
|
7681
|
+
if (e && typeof e == "object" && y) {
|
|
7682
|
+
if (y.has(e)) return;
|
|
7683
|
+
y.add(e);
|
|
7678
7684
|
}
|
|
7679
7685
|
let n = Q(String(e && e.message || e || "error")).slice(0, 500), r = xs(e?.stack), i = t?.componentStack ? Q(String(t.componentStack)).split("\n").map((e) => e.trim()).filter(Boolean).slice(0, 8).join("\n").slice(0, 800) : void 0;
|
|
7680
7686
|
D("event", {
|
|
7681
7687
|
t: d(),
|
|
7682
7688
|
type: "error",
|
|
7683
7689
|
message: n,
|
|
7690
|
+
path: _(),
|
|
7684
7691
|
...r ? { stack: r } : {},
|
|
7685
7692
|
...i ? { component: i } : {},
|
|
7686
7693
|
...t?.source ? { source: String(t.source).slice(0, 40) } : {}
|
|
@@ -7702,8 +7709,8 @@ function bs(e, t) {
|
|
|
7702
7709
|
for (let e of l.splice(0)) try {
|
|
7703
7710
|
e();
|
|
7704
7711
|
} catch {}
|
|
7705
|
-
|
|
7706
|
-
let t =
|
|
7712
|
+
re(), b && !x && S.length && A();
|
|
7713
|
+
let t = b;
|
|
7707
7714
|
t && setTimeout(() => t.terminate(), 2e3), window.__spectoRec === M && delete window.__spectoRec;
|
|
7708
7715
|
},
|
|
7709
7716
|
_begin(i) {
|
|
@@ -7718,52 +7725,52 @@ function bs(e, t) {
|
|
|
7718
7725
|
networkDetails: e.networkDetails !== !1 && a.captureNetworkDetails !== !1,
|
|
7719
7726
|
sampleRate: Math.min(e.sampleRate ?? 1, typeof a.sampleRate == "number" ? a.sampleRate : 1)
|
|
7720
7727
|
};
|
|
7721
|
-
let d =
|
|
7728
|
+
let d = k(!1);
|
|
7722
7729
|
if (!p.sampled) return M.stop("not-sampled");
|
|
7723
7730
|
let f = h.strict && !m.strict, g = f || E;
|
|
7724
7731
|
o = !0;
|
|
7725
|
-
for (let [e, t] of
|
|
7726
|
-
let n =
|
|
7732
|
+
for (let [e, t] of ee.splice(0)) {
|
|
7733
|
+
let n = N(e, t, f, g);
|
|
7727
7734
|
n && D(e, n);
|
|
7728
7735
|
}
|
|
7729
7736
|
if (g) {
|
|
7730
7737
|
try {
|
|
7731
7738
|
c?.();
|
|
7732
7739
|
} catch {}
|
|
7733
|
-
c =
|
|
7740
|
+
c = ae();
|
|
7734
7741
|
}
|
|
7735
7742
|
try {
|
|
7736
|
-
if (
|
|
7737
|
-
|
|
7743
|
+
if (b = e.createWorker ? e.createWorker() : null, b) {
|
|
7744
|
+
b.onmessage = (e) => {
|
|
7738
7745
|
let t = e.data || {};
|
|
7739
7746
|
if (t.t === "ready") {
|
|
7740
|
-
|
|
7747
|
+
x = !0, S = [];
|
|
7741
7748
|
return;
|
|
7742
7749
|
}
|
|
7743
|
-
|
|
7744
|
-
},
|
|
7745
|
-
|
|
7746
|
-
},
|
|
7750
|
+
ie(t);
|
|
7751
|
+
}, b.onerror = () => {
|
|
7752
|
+
x || A();
|
|
7753
|
+
}, b.postMessage({
|
|
7747
7754
|
t: "init",
|
|
7748
7755
|
endpoint: r
|
|
7749
7756
|
});
|
|
7750
7757
|
let e = setTimeout(() => {
|
|
7751
|
-
|
|
7758
|
+
x || A();
|
|
7752
7759
|
}, hs);
|
|
7753
7760
|
l.push(() => clearTimeout(e));
|
|
7754
7761
|
}
|
|
7755
7762
|
} catch {
|
|
7756
|
-
|
|
7763
|
+
b = null;
|
|
7757
7764
|
}
|
|
7758
|
-
|
|
7765
|
+
b || (C = Lo({
|
|
7759
7766
|
endpoint: r,
|
|
7760
|
-
onEvent:
|
|
7761
|
-
})),
|
|
7762
|
-
let _ = setInterval(
|
|
7767
|
+
onEvent: ie
|
|
7768
|
+
})), P(d);
|
|
7769
|
+
let _ = setInterval(re, 2e3);
|
|
7763
7770
|
l.push(() => clearInterval(_));
|
|
7764
7771
|
}
|
|
7765
7772
|
};
|
|
7766
|
-
function
|
|
7773
|
+
function ae() {
|
|
7767
7774
|
let e = g().strict;
|
|
7768
7775
|
return Oo({
|
|
7769
7776
|
emit: (e) => D("dom", qo(e, g().strict)),
|
|
@@ -7787,7 +7794,7 @@ function bs(e, t) {
|
|
|
7787
7794
|
}
|
|
7788
7795
|
});
|
|
7789
7796
|
}
|
|
7790
|
-
function
|
|
7797
|
+
function N(e, t, n, r) {
|
|
7791
7798
|
if (e === "dom") return r ? null : t;
|
|
7792
7799
|
if (!t || typeof t != "object") return t;
|
|
7793
7800
|
if (e === "console") {
|
|
@@ -7796,8 +7803,8 @@ function bs(e, t) {
|
|
|
7796
7803
|
} else e === "network" ? (n && t.url && (t.url = $(t.url, !0)), h.networkDetails || delete t.detail) : e === "event" && t.type === "nav" && n && t.path && (t.path = $(t.path, !0).slice(0, 300));
|
|
7797
7804
|
return t;
|
|
7798
7805
|
}
|
|
7799
|
-
function
|
|
7800
|
-
if (c =
|
|
7806
|
+
function oe() {
|
|
7807
|
+
if (c = ae(), m.console) for (let e of [
|
|
7801
7808
|
"log",
|
|
7802
7809
|
"info",
|
|
7803
7810
|
"warn",
|
|
@@ -7907,27 +7914,27 @@ function bs(e, t) {
|
|
|
7907
7914
|
}, l.push(() => {
|
|
7908
7915
|
window.fetch = i;
|
|
7909
7916
|
});
|
|
7910
|
-
let
|
|
7911
|
-
|
|
7917
|
+
let b = window.XMLHttpRequest, x = b.prototype.open, S = b.prototype.send, C = b.prototype.setRequestHeader;
|
|
7918
|
+
b.prototype.open = function(e, t) {
|
|
7912
7919
|
return this.__specto = {
|
|
7913
7920
|
method: String(e).toUpperCase(),
|
|
7914
7921
|
url: $(t, g().strict),
|
|
7915
7922
|
rawUrl: $o(t),
|
|
7916
7923
|
started: 0,
|
|
7917
7924
|
trace: p(t)
|
|
7918
|
-
},
|
|
7919
|
-
},
|
|
7925
|
+
}, x.apply(this, arguments);
|
|
7926
|
+
}, b.prototype.setRequestHeader = function(e, t) {
|
|
7920
7927
|
let n = String(e).toLowerCase();
|
|
7921
7928
|
if (this.__specto && n === "content-type" && (this.__specto.reqType = String(t).split(";")[0].slice(0, 80)), this.__specto && n === "traceparent") {
|
|
7922
7929
|
let e = Cs.exec(String(t));
|
|
7923
7930
|
e && (this.__specto.traceId = e[1].toLowerCase()), this.__specto.trace = !1;
|
|
7924
7931
|
}
|
|
7925
|
-
return
|
|
7926
|
-
},
|
|
7932
|
+
return C.apply(this, arguments);
|
|
7933
|
+
}, b.prototype.send = function(e) {
|
|
7927
7934
|
if (this.__specto) {
|
|
7928
7935
|
if (this.__specto.trace) try {
|
|
7929
7936
|
let e = Ss(16);
|
|
7930
|
-
|
|
7937
|
+
C.call(this, "traceparent", `00-${e}-${Ss(8)}-01`), this.__specto.traceId = e;
|
|
7931
7938
|
} catch {}
|
|
7932
7939
|
this.__specto.started = performance.now(), n() && (this.__specto.reqSize = rs(e)), this.addEventListener("loadend", () => {
|
|
7933
7940
|
let e = this.__specto, t = e.traceId;
|
|
@@ -7957,62 +7964,63 @@ function bs(e, t) {
|
|
|
7957
7964
|
D("network", r);
|
|
7958
7965
|
});
|
|
7959
7966
|
}
|
|
7960
|
-
return
|
|
7967
|
+
return S.apply(this, arguments);
|
|
7961
7968
|
}, l.push(() => {
|
|
7962
|
-
|
|
7969
|
+
b.prototype.open = x, b.prototype.send = S, b.prototype.setRequestHeader = C;
|
|
7963
7970
|
});
|
|
7964
|
-
let
|
|
7971
|
+
let w = (e) => {
|
|
7965
7972
|
let t = e.error || e.reason, n = xs(t?.stack), r = {
|
|
7966
7973
|
t: d(),
|
|
7967
7974
|
type: "error",
|
|
7968
7975
|
message: Q(String(e.message || t?.message || e.reason || "error")).slice(0, 500),
|
|
7976
|
+
path: _(),
|
|
7969
7977
|
...n ? { stack: n } : {}
|
|
7970
7978
|
};
|
|
7971
7979
|
setTimeout(() => {
|
|
7972
|
-
if (t && typeof t == "object" &&
|
|
7973
|
-
if (
|
|
7974
|
-
|
|
7980
|
+
if (t && typeof t == "object" && y) {
|
|
7981
|
+
if (y.has(t)) return;
|
|
7982
|
+
y.add(t);
|
|
7975
7983
|
}
|
|
7976
7984
|
D("event", r);
|
|
7977
7985
|
}, 0);
|
|
7978
7986
|
};
|
|
7979
|
-
window.addEventListener("error",
|
|
7980
|
-
window.removeEventListener("error",
|
|
7981
|
-
}),
|
|
7982
|
-
|
|
7987
|
+
window.addEventListener("error", w), window.addEventListener("unhandledrejection", w), l.push(() => {
|
|
7988
|
+
window.removeEventListener("error", w), window.removeEventListener("unhandledrejection", w);
|
|
7989
|
+
}), se = () => {
|
|
7990
|
+
v(), D("event", {
|
|
7983
7991
|
t: d(),
|
|
7984
7992
|
type: "nav",
|
|
7985
7993
|
path: $(location.pathname + location.search + location.hash, g().strict).slice(0, 300)
|
|
7986
7994
|
});
|
|
7987
7995
|
};
|
|
7988
|
-
let
|
|
7996
|
+
let ee = history.pushState, T = history.replaceState;
|
|
7989
7997
|
history.pushState = function(...e) {
|
|
7990
|
-
let t =
|
|
7998
|
+
let t = ee.apply(this, e);
|
|
7991
7999
|
try {
|
|
7992
|
-
|
|
8000
|
+
se();
|
|
7993
8001
|
} catch {}
|
|
7994
8002
|
return t;
|
|
7995
8003
|
}, history.replaceState = function(...e) {
|
|
7996
8004
|
let t = T.apply(this, e);
|
|
7997
8005
|
try {
|
|
7998
|
-
|
|
8006
|
+
se();
|
|
7999
8007
|
} catch {}
|
|
8000
8008
|
return t;
|
|
8001
8009
|
};
|
|
8002
|
-
let E = () =>
|
|
8010
|
+
let E = () => se();
|
|
8003
8011
|
window.addEventListener("popstate", E), window.addEventListener("hashchange", E), l.push(() => {
|
|
8004
|
-
history.pushState =
|
|
8012
|
+
history.pushState = ee, history.replaceState = T, window.removeEventListener("popstate", E), window.removeEventListener("hashchange", E);
|
|
8005
8013
|
});
|
|
8006
8014
|
}
|
|
8007
|
-
let
|
|
8008
|
-
function
|
|
8015
|
+
let se = () => {};
|
|
8016
|
+
function P(e) {
|
|
8009
8017
|
let t = () => {
|
|
8010
8018
|
let e = Date.now();
|
|
8011
|
-
if (e -
|
|
8012
|
-
|
|
8019
|
+
if (e - w > ps) {
|
|
8020
|
+
w = e, te();
|
|
8013
8021
|
return;
|
|
8014
8022
|
}
|
|
8015
|
-
|
|
8023
|
+
w = e;
|
|
8016
8024
|
};
|
|
8017
8025
|
for (let e of [
|
|
8018
8026
|
"click",
|
|
@@ -8024,7 +8032,7 @@ function bs(e, t) {
|
|
|
8024
8032
|
passive: !0
|
|
8025
8033
|
}), l.push(() => window.removeEventListener(e, t, { capture: !0 }));
|
|
8026
8034
|
if (e || location.hash.length > 1) try {
|
|
8027
|
-
|
|
8035
|
+
se();
|
|
8028
8036
|
} catch {}
|
|
8029
8037
|
let n = [], r = (e) => {
|
|
8030
8038
|
let t = performance.now();
|
|
@@ -8038,7 +8046,8 @@ function bs(e, t) {
|
|
|
8038
8046
|
t: d(),
|
|
8039
8047
|
type: "rage",
|
|
8040
8048
|
target: t.slice(0, 80),
|
|
8041
|
-
count: n.length
|
|
8049
|
+
count: n.length,
|
|
8050
|
+
path: _()
|
|
8042
8051
|
}), n = [];
|
|
8043
8052
|
}
|
|
8044
8053
|
};
|
|
@@ -8064,7 +8073,7 @@ function bs(e, t) {
|
|
|
8064
8073
|
dh: i()
|
|
8065
8074
|
});
|
|
8066
8075
|
};
|
|
8067
|
-
s(),
|
|
8076
|
+
s(), v = () => {
|
|
8068
8077
|
$(location.pathname, g().strict).slice(0, 300) !== a?.path && (c(), s());
|
|
8069
8078
|
};
|
|
8070
8079
|
let u = !1, f = () => {
|
|
@@ -8091,17 +8100,17 @@ function bs(e, t) {
|
|
|
8091
8100
|
window.removeEventListener("scroll", f, { capture: !0 }), window.removeEventListener("click", p, !0);
|
|
8092
8101
|
});
|
|
8093
8102
|
let m = () => {
|
|
8094
|
-
c(),
|
|
8103
|
+
c(), j();
|
|
8095
8104
|
}, h = () => {
|
|
8096
|
-
document.visibilityState === "hidden" && (c(),
|
|
8097
|
-
},
|
|
8098
|
-
|
|
8105
|
+
document.visibilityState === "hidden" && (c(), j());
|
|
8106
|
+
}, y = () => {
|
|
8107
|
+
b ? b.postMessage({ t: "nudge" }) : C?.nudge();
|
|
8099
8108
|
};
|
|
8100
|
-
window.addEventListener("pagehide", m), document.addEventListener("visibilitychange", h), window.addEventListener("online",
|
|
8101
|
-
window.removeEventListener("pagehide", m), document.removeEventListener("visibilitychange", h), window.removeEventListener("online",
|
|
8109
|
+
window.addEventListener("pagehide", m), document.addEventListener("visibilitychange", h), window.addEventListener("online", y), l.push(() => {
|
|
8110
|
+
window.removeEventListener("pagehide", m), document.removeEventListener("visibilitychange", h), window.removeEventListener("online", y);
|
|
8102
8111
|
});
|
|
8103
8112
|
}
|
|
8104
|
-
return
|
|
8113
|
+
return oe(), M;
|
|
8105
8114
|
}
|
|
8106
8115
|
function xs(e) {
|
|
8107
8116
|
if (e) return Q(String(e)).split("\n").slice(0, 6).map((e) => e.replace(/\?[^\s:)]*/g, "").slice(0, 300)).join("\n");
|