@sprig-technologies/sprig-bundled 2.44.1 → 2.46.0

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.
@@ -38,20 +38,20 @@ var Id = Object.create, uo = Object.defineProperty, Cd = Object.getOwnPropertyDe
38
38
  }), Ad = fr((e, t) => {
39
39
  var r = Td(), s = Rd(), n = Ld(), i = Od();
40
40
  function a(c, u, d) {
41
- var h = c;
42
- return s(u) ? (d = u, typeof c == "string" && (h = { uri: c })) : h = i(u, { uri: c }), h.callback = d, h;
41
+ var p = c;
42
+ return s(u) ? (d = u, typeof c == "string" && (p = { uri: c })) : p = i(u, { uri: c }), p.callback = d, p;
43
43
  }
44
44
  function o(c, u, d) {
45
45
  return l(u = a(c, u, d));
46
46
  }
47
47
  function l(c) {
48
48
  if (c.callback === void 0) throw new Error("callback argument missing");
49
- var u = !1, d = function(T, R, S) {
50
- u || (u = !0, c.callback(T, R, S));
49
+ var u = !1, d = function(L, R, S) {
50
+ u || (u = !0, c.callback(L, R, S));
51
51
  };
52
- function h() {
53
- var T = void 0;
54
- if (T = p.response ? p.response : p.responseText || function(R) {
52
+ function p() {
53
+ var L = void 0;
54
+ if (L = h.response ? h.response : h.responseText || function(R) {
55
55
  try {
56
56
  if (R.responseType === "document") return R.responseXML;
57
57
  var S = R.responseXML && R.responseXML.documentElement.nodeName === "parsererror";
@@ -59,50 +59,50 @@ var Id = Object.create, uo = Object.defineProperty, Cd = Object.getOwnPropertyDe
59
59
  } catch {
60
60
  }
61
61
  return null;
62
- }(p), M) try {
63
- T = JSON.parse(T);
62
+ }(h), A) try {
63
+ L = JSON.parse(L);
64
64
  } catch {
65
65
  }
66
- return T;
66
+ return L;
67
67
  }
68
- function f(T) {
69
- return clearTimeout(g), T instanceof Error || (T = new Error("" + (T || "Unknown XMLHttpRequest Error"))), T.statusCode = 0, d(T, k);
68
+ function f(L) {
69
+ return clearTimeout(g), L instanceof Error || (L = new Error("" + (L || "Unknown XMLHttpRequest Error"))), L.statusCode = 0, d(L, k);
70
70
  }
71
71
  function w() {
72
72
  if (!m) {
73
- var T;
74
- clearTimeout(g), T = c.useXDR && p.status === void 0 ? 200 : p.status === 1223 ? 204 : p.status;
73
+ var L;
74
+ clearTimeout(g), L = c.useXDR && h.status === void 0 ? 200 : h.status === 1223 ? 204 : h.status;
75
75
  var R = k, S = null;
76
- return T !== 0 ? (R = { body: h(), statusCode: T, method: I, headers: {}, url: v, rawRequest: p }, p.getAllResponseHeaders && (R.headers = n(p.getAllResponseHeaders()))) : S = new Error("Internal XMLHttpRequest Error"), d(S, R, R.body);
76
+ return L !== 0 ? (R = { body: p(), statusCode: L, method: I, headers: {}, url: v, rawRequest: h }, h.getAllResponseHeaders && (R.headers = n(h.getAllResponseHeaders()))) : S = new Error("Internal XMLHttpRequest Error"), d(S, R, R.body);
77
77
  }
78
78
  }
79
- var p = c.xhr || null;
80
- p || (p = c.cors || c.useXDR ? new o.XDomainRequest() : new o.XMLHttpRequest());
81
- var C, m, g, v = p.url = c.uri || c.url, I = p.method = c.method || "GET", O = c.body || c.data, E = p.headers = c.headers || {}, A = !!c.sync, M = !1, k = { body: void 0, headers: {}, statusCode: 0, method: I, url: v, rawRequest: p };
82
- if ("json" in c && c.json !== !1 && (M = !0, E.accept || E.Accept || (E.Accept = "application/json"), I !== "GET" && I !== "HEAD" && (E["content-type"] || E["Content-Type"] || (E["Content-Type"] = "application/json"), O = JSON.stringify(c.json === !0 ? O : c.json))), p.onreadystatechange = function() {
83
- p.readyState === 4 && setTimeout(w, 0);
84
- }, p.onload = w, p.onerror = f, p.onprogress = function() {
85
- }, p.onabort = function() {
79
+ var h = c.xhr || null;
80
+ h || (h = c.cors || c.useXDR ? new o.XDomainRequest() : new o.XMLHttpRequest());
81
+ var C, m, g, v = h.url = c.uri || c.url, I = h.method = c.method || "GET", O = c.body || c.data, E = h.headers = c.headers || {}, U = !!c.sync, A = !1, k = { body: void 0, headers: {}, statusCode: 0, method: I, url: v, rawRequest: h };
82
+ if ("json" in c && c.json !== !1 && (A = !0, E.accept || E.Accept || (E.Accept = "application/json"), I !== "GET" && I !== "HEAD" && (E["content-type"] || E["Content-Type"] || (E["Content-Type"] = "application/json"), O = JSON.stringify(c.json === !0 ? O : c.json))), h.onreadystatechange = function() {
83
+ h.readyState === 4 && setTimeout(w, 0);
84
+ }, h.onload = w, h.onerror = f, h.onprogress = function() {
85
+ }, h.onabort = function() {
86
86
  m = !0;
87
- }, p.ontimeout = f, p.open(I, v, !A, c.username, c.password), A || (p.withCredentials = !!c.withCredentials), !A && c.timeout > 0 && (g = setTimeout(function() {
87
+ }, h.ontimeout = f, h.open(I, v, !U, c.username, c.password), U || (h.withCredentials = !!c.withCredentials), !U && c.timeout > 0 && (g = setTimeout(function() {
88
88
  if (!m) {
89
- m = !0, p.abort("timeout");
90
- var T = new Error("XMLHttpRequest timeout");
91
- T.code = "ETIMEDOUT", f(T);
89
+ m = !0, h.abort("timeout");
90
+ var L = new Error("XMLHttpRequest timeout");
91
+ L.code = "ETIMEDOUT", f(L);
92
92
  }
93
- }, c.timeout)), p.setRequestHeader) for (C in E) E.hasOwnProperty(C) && p.setRequestHeader(C, E[C]);
94
- else if (c.headers && !function(T) {
95
- for (var R in T) if (T.hasOwnProperty(R)) return !1;
93
+ }, c.timeout)), h.setRequestHeader) for (C in E) E.hasOwnProperty(C) && h.setRequestHeader(C, E[C]);
94
+ else if (c.headers && !function(L) {
95
+ for (var R in L) if (L.hasOwnProperty(R)) return !1;
96
96
  return !0;
97
97
  }(c.headers)) throw new Error("Headers cannot be set on an XDomainRequest object");
98
- return "responseType" in c && (p.responseType = c.responseType), "beforeSend" in c && typeof c.beforeSend == "function" && c.beforeSend(p), p.send(O || null), p;
98
+ return "responseType" in c && (h.responseType = c.responseType), "beforeSend" in c && typeof c.beforeSend == "function" && c.beforeSend(h), h.send(O || null), h;
99
99
  }
100
100
  t.exports = o, t.exports.default = o, o.XMLHttpRequest = r.XMLHttpRequest || function() {
101
101
  }, o.XDomainRequest = "withCredentials" in new o.XMLHttpRequest() ? o.XMLHttpRequest : r.XDomainRequest, function(c, u) {
102
102
  for (var d = 0; d < c.length; d++) u(c[d]);
103
103
  }(["get", "put", "post", "patch", "head", "delete"], function(c) {
104
- o[c === "delete" ? "del" : c] = function(u, d, h) {
105
- return (d = a(u, d, h)).method = c.toUpperCase(), l(d);
104
+ o[c === "delete" ? "del" : c] = function(u, d, p) {
105
+ return (d = a(u, d, p)).method = c.toUpperCase(), l(d);
106
106
  };
107
107
  });
108
108
  });
@@ -116,7 +116,7 @@ function hl(e, t) {
116
116
  function ml(e) {
117
117
  return typeof e != "object" || e === null ? String(e) : Object.prototype.toString.call(e);
118
118
  }
119
- var Me = typeof window < "u" ? window : typeof self < "u" ? self : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : void 0, dt = class {
119
+ var Me = typeof window < "u" ? window : typeof self < "u" ? self : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : void 0, ut = class {
120
120
  constructor(e, t) {
121
121
  this.code = e, this.message = t;
122
122
  }
@@ -129,7 +129,7 @@ var Me = typeof window < "u" ? window : typeof self < "u" ? self : typeof global
129
129
  } catch {
130
130
  }
131
131
  }
132
- }, Md = new dt("W01", "Unable to initialize event under dispatching."), Ud = new dt("W02", "Assigning any falsy value to 'cancelBubble' property has no effect."), Dd = new dt("W03", "Assigning any truthy value to 'returnValue' property has no effect."), Pd = new dt("W04", "Unable to preventDefault on non-cancelable events."), _d = new dt("W05", "Unable to preventDefault inside passive event listener invocation."), Nd = new dt("W06", "An event listener wasn't added because it has been added already: %o, %o"), Js = new dt("W07", "The %o option value was abandoned because the event listener wasn't added as duplicated."), po = new dt("W08", "The 'callback' argument must be a function or an object that has 'handleEvent' method: %o"), qe = class {
132
+ }, Md = new ut("W01", "Unable to initialize event under dispatching."), Ud = new ut("W02", "Assigning any falsy value to 'cancelBubble' property has no effect."), Dd = new ut("W03", "Assigning any truthy value to 'returnValue' property has no effect."), Pd = new ut("W04", "Unable to preventDefault on non-cancelable events."), _d = new ut("W05", "Unable to preventDefault inside passive event listener invocation."), Nd = new ut("W06", "An event listener wasn't added because it has been added already: %o, %o"), Js = new ut("W07", "The %o option value was abandoned because the event listener wasn't added as duplicated."), po = new ut("W08", "The 'callback' argument must be a function or an object that has 'handleEvent' method: %o"), qe = class {
133
133
  static get NONE() {
134
134
  return ho;
135
135
  }
@@ -256,7 +256,7 @@ var ms = class extends qe {
256
256
  }
257
257
  stopPropagation() {
258
258
  super.stopPropagation();
259
- let { original: e } = nt(this);
259
+ let { original: e } = st(this);
260
260
  "stopPropagation" in e && e.stopPropagation();
261
261
  }
262
262
  get cancelBubble() {
@@ -264,12 +264,12 @@ var ms = class extends qe {
264
264
  }
265
265
  set cancelBubble(e) {
266
266
  super.cancelBubble = e;
267
- let { original: t } = nt(this);
267
+ let { original: t } = st(this);
268
268
  "cancelBubble" in t && (t.cancelBubble = e);
269
269
  }
270
270
  stopImmediatePropagation() {
271
271
  super.stopImmediatePropagation();
272
- let { original: e } = nt(this);
272
+ let { original: e } = st(this);
273
273
  "stopImmediatePropagation" in e && e.stopImmediatePropagation();
274
274
  }
275
275
  get returnValue() {
@@ -277,20 +277,20 @@ var ms = class extends qe {
277
277
  }
278
278
  set returnValue(e) {
279
279
  super.returnValue = e;
280
- let { original: t } = nt(this);
280
+ let { original: t } = st(this);
281
281
  "returnValue" in t && (t.returnValue = e);
282
282
  }
283
283
  preventDefault() {
284
284
  super.preventDefault();
285
- let { original: e } = nt(this);
285
+ let { original: e } = st(this);
286
286
  "preventDefault" in e && e.preventDefault();
287
287
  }
288
288
  get timeStamp() {
289
- let { original: e } = nt(this);
289
+ let { original: e } = st(this);
290
290
  return "timeStamp" in e ? e.timeStamp : super.timeStamp;
291
291
  }
292
292
  }, fl = /* @__PURE__ */ new WeakMap();
293
- function nt(e) {
293
+ function st(e) {
294
294
  let t = fl.get(e);
295
295
  return Ai(t != null, "'this' is expected an Event object, but got", e), t;
296
296
  }
@@ -310,10 +310,10 @@ function gl(e) {
310
310
  function yl(e, t) {
311
311
  let r = Object.getOwnPropertyDescriptor(e, t);
312
312
  return { get() {
313
- let s = nt(this).original, n = s[t];
313
+ let s = st(this).original, n = s[t];
314
314
  return typeof n == "function" ? n.bind(s) : n;
315
315
  }, set(s) {
316
- nt(this).original[t] = s;
316
+ st(this).original[t] = s;
317
317
  }, configurable: r.configurable, enumerable: r.enumerable };
318
318
  }
319
319
  function wl(e) {
@@ -363,24 +363,24 @@ var Us = class {
363
363
  Il.set(this, /* @__PURE__ */ Object.create(null));
364
364
  }
365
365
  addEventListener(e, t, r) {
366
- let s = Zs(this), { callback: n, capture: i, once: a, passive: o, signal: l, type: c } = function(h, f, w) {
367
- var p;
368
- return Co(f), typeof w == "object" && w !== null ? { type: String(h), callback: f ?? void 0, capture: !!w.capture, passive: !!w.passive, once: !!w.once, signal: (p = w.signal) !== null && p !== void 0 ? p : void 0 } : { type: String(h), callback: f ?? void 0, capture: !!w, passive: !1, once: !1, signal: void 0 };
366
+ let s = Zs(this), { callback: n, capture: i, once: a, passive: o, signal: l, type: c } = function(p, f, w) {
367
+ var h;
368
+ return Co(f), typeof w == "object" && w !== null ? { type: String(p), callback: f ?? void 0, capture: !!w.capture, passive: !!w.passive, once: !!w.once, signal: (h = w.signal) !== null && h !== void 0 ? h : void 0 } : { type: String(p), callback: f ?? void 0, capture: !!w, passive: !1, once: !1, signal: void 0 };
369
369
  }(e, t, r);
370
370
  if (n == null || l != null && l.aborted) return;
371
- let u = function(h, f) {
371
+ let u = function(p, f) {
372
372
  var w;
373
- return (w = h[f]) !== null && w !== void 0 ? w : h[f] = { attrCallback: void 0, attrListener: void 0, cow: !1, listeners: [] };
373
+ return (w = p[f]) !== null && w !== void 0 ? w : p[f] = { attrCallback: void 0, attrListener: void 0, cow: !1, listeners: [] };
374
374
  }(s, c), d = bl(u, n, i);
375
- d === -1 ? function(h, f, w, p, C, m) {
375
+ d === -1 ? function(p, f, w, h, C, m) {
376
376
  let g;
377
- m && (g = Io.bind(null, h, f, w), m.addEventListener("abort", g));
378
- let v = function(I, O, E, A, M, k) {
379
- return { callback: I, flags: (O ? 1 : 0) | (E ? 2 : 0) | (A ? 4 : 0), signal: M, signalListener: k };
380
- }(f, w, p, C, m, g);
381
- h.cow ? (h.cow = !1, h.listeners = [...h.listeners, v]) : h.listeners.push(v);
382
- }(u, n, i, o, a, l) : function(h, f, w, p) {
383
- Nd.warn(wl(h) ? "capture" : "bubble", h.callback), vo(h) !== f && Js.warn("passive"), So(h) !== w && Js.warn("once"), h.signal !== p && Js.warn("signal");
377
+ m && (g = Io.bind(null, p, f, w), m.addEventListener("abort", g));
378
+ let v = function(I, O, E, U, A, k) {
379
+ return { callback: I, flags: (O ? 1 : 0) | (E ? 2 : 0) | (U ? 4 : 0), signal: A, signalListener: k };
380
+ }(f, w, h, C, m, g);
381
+ p.cow ? (p.cow = !1, p.listeners = [...p.listeners, v]) : p.listeners.push(v);
382
+ }(u, n, i, o, a, l) : function(p, f, w, h) {
383
+ Nd.warn(wl(p) ? "capture" : "bubble", p.callback), vo(p) !== f && Js.warn("passive"), So(p) !== w && Js.warn("once"), p.signal !== h && Js.warn("signal");
384
384
  }(u.listeners[d], o, a, l);
385
385
  }
386
386
  removeEventListener(e, t, r) {
@@ -633,7 +633,7 @@ function Mi(e) {
633
633
  }
634
634
  }
635
635
  const Qs = {};
636
- function et(e, t, r) {
636
+ function Qe(e, t, r) {
637
637
  var s;
638
638
  const n = `${e}.${String(r)}`;
639
639
  if (Qs[n]) return Qs[n].call(t);
@@ -648,27 +648,27 @@ function Ro(e, t, r) {
648
648
  return typeof n != "function" ? t[r] : (en[s] = n, n.bind(t));
649
649
  }
650
650
  const ye = { childNodes: function(e) {
651
- return et("Node", e, "childNodes");
651
+ return Qe("Node", e, "childNodes");
652
652
  }, parentNode: function(e) {
653
- return et("Node", e, "parentNode");
653
+ return Qe("Node", e, "parentNode");
654
654
  }, parentElement: function(e) {
655
- return et("Node", e, "parentElement");
655
+ return Qe("Node", e, "parentElement");
656
656
  }, textContent: function(e) {
657
- return et("Node", e, "textContent");
657
+ return Qe("Node", e, "textContent");
658
658
  }, contains: function(e, t) {
659
659
  return Ro("Node", e, "contains")(t);
660
660
  }, getRootNode: function(e) {
661
661
  return Ro("Node", e, "getRootNode")();
662
662
  }, host: function(e) {
663
- return e && "host" in e ? et("ShadowRoot", e, "host") : null;
663
+ return e && "host" in e ? Qe("ShadowRoot", e, "host") : null;
664
664
  }, styleSheets: function(e) {
665
665
  return e.styleSheets;
666
666
  }, shadowRoot: function(e) {
667
- return e && "shadowRoot" in e ? et("Element", e, "shadowRoot") : null;
667
+ return e && "shadowRoot" in e ? Qe("Element", e, "shadowRoot") : null;
668
668
  }, querySelector: function(e, t) {
669
- return et("Element", e, "querySelector")(t);
669
+ return Qe("Element", e, "querySelector")(t);
670
670
  }, querySelectorAll: function(e, t) {
671
- return et("Element", e, "querySelectorAll")(t);
671
+ return Qe("Element", e, "querySelectorAll")(t);
672
672
  }, mutationObserver: function() {
673
673
  return Mi("MutationObserver").constructor;
674
674
  } };
@@ -763,16 +763,16 @@ class Rl {
763
763
  }
764
764
  function Ui({ element: e, maskInputOptions: t, tagName: r, type: s, value: n, maskInputFn: i }) {
765
765
  let a = n || "";
766
- const o = s && ft(s);
766
+ const o = s && mt(s);
767
767
  return (t[r.toLowerCase()] || o && t[o]) && (a = i ? i(a, e) : "*".repeat(a.length)), a;
768
768
  }
769
- function ft(e) {
769
+ function mt(e) {
770
770
  return e.toLowerCase();
771
771
  }
772
772
  const Lo = "__rrweb_original__";
773
773
  function Di(e) {
774
774
  const t = e.type;
775
- return e.hasAttribute("data-rr-is-password") ? "password" : t ? ft(t) : null;
775
+ return e.hasAttribute("data-rr-is-password") ? "password" : t ? mt(t) : null;
776
776
  }
777
777
  function Oo(e, t) {
778
778
  let r;
@@ -791,13 +791,13 @@ function gs(e, t) {
791
791
  if (!l) return r;
792
792
  if (qd.test(l) || Jd.test(l)) return `url(${c}${l}${c})`;
793
793
  if (Kd.test(l)) return `url(${c}${l}${c})`;
794
- if (l[0] === "/") return `url(${c}${function(h) {
794
+ if (l[0] === "/") return `url(${c}${function(p) {
795
795
  let f = "";
796
- return f = h.indexOf("//") > -1 ? h.split("/").slice(0, 3).join("/") : h.split("/")[0], f = f.split("?")[0], f;
796
+ return f = p.indexOf("//") > -1 ? p.split("/").slice(0, 3).join("/") : p.split("/")[0], f = f.split("?")[0], f;
797
797
  }(t) + l}${c})`;
798
798
  const u = t.split("/"), d = l.split("/");
799
799
  u.pop();
800
- for (const h of d) h !== "." && (h === ".." ? u.pop() : u.push(h));
800
+ for (const p of d) p !== "." && (p === ".." ? u.pop() : u.push(p));
801
801
  return `url(${c}${u.join("/")}${c})`;
802
802
  });
803
803
  }
@@ -839,20 +839,20 @@ function Ol(e, t, r, s) {
839
839
  c = Ft(n, c);
840
840
  let d = !1;
841
841
  for (; ; ) {
842
- const h = i.charAt(a);
843
- if (h === "") {
842
+ const p = i.charAt(a);
843
+ if (p === "") {
844
844
  l.push((c + u).trim());
845
845
  break;
846
846
  }
847
- if (d) h === ")" && (d = !1);
847
+ if (d) p === ")" && (d = !1);
848
848
  else {
849
- if (h === ",") {
849
+ if (p === ",") {
850
850
  a += 1, l.push((c + u).trim());
851
851
  break;
852
852
  }
853
- h === "(" && (d = !0);
853
+ p === "(" && (d = !0);
854
854
  }
855
- u += h, a += 1;
855
+ u += p, a += 1;
856
856
  }
857
857
  }
858
858
  }
@@ -895,7 +895,7 @@ function Ml(e, t, r, s) {
895
895
  return !1;
896
896
  }
897
897
  function rp(e, t) {
898
- const { doc: r, mirror: s, blockClass: n, blockSelector: i, needsMask: a, inlineStylesheet: o, maskInputOptions: l = {}, maskTextFn: c, maskInputFn: u, dataURLOptions: d = {}, inlineImages: h, recordCanvas: f, keepIframeSrcFn: w, newlyAddedElement: p = !1 } = t, C = function(m, g) {
898
+ const { doc: r, mirror: s, blockClass: n, blockSelector: i, needsMask: a, inlineStylesheet: o, maskInputOptions: l = {}, maskTextFn: c, maskInputFn: u, dataURLOptions: d = {}, inlineImages: p, recordCanvas: f, keepIframeSrcFn: w, newlyAddedElement: h = !1 } = t, C = function(m, g) {
899
899
  if (!g.hasNode(m)) return;
900
900
  const v = g.getId(m);
901
901
  return v === 1 ? void 0 : v;
@@ -907,102 +907,102 @@ function rp(e, t) {
907
907
  return { type: fe.DocumentType, name: e.name, publicId: e.publicId, systemId: e.systemId, rootId: C };
908
908
  case e.ELEMENT_NODE:
909
909
  return function(m, g) {
910
- const { doc: v, blockClass: I, blockSelector: O, inlineStylesheet: E, maskInputOptions: A = {}, maskInputFn: M, dataURLOptions: k = {}, inlineImages: T, recordCanvas: R, keepIframeSrcFn: S, newlyAddedElement: P = !1, rootId: D } = g, b = function(L, _, ee) {
910
+ const { doc: v, blockClass: I, blockSelector: O, inlineStylesheet: E, maskInputOptions: U = {}, maskInputFn: A, dataURLOptions: k = {}, inlineImages: L, recordCanvas: R, keepIframeSrcFn: S, newlyAddedElement: P = !1, rootId: M } = g, b = function(T, N, Q) {
911
911
  try {
912
- if (typeof _ == "string") {
913
- if (L.classList.contains(_)) return !0;
914
- } else for (let q = L.classList.length; q--; ) {
915
- const me = L.classList[q];
916
- if (_.test(me)) return !0;
912
+ if (typeof N == "string") {
913
+ if (T.classList.contains(N)) return !0;
914
+ } else for (let Y = T.classList.length; Y--; ) {
915
+ const me = T.classList[Y];
916
+ if (N.test(me)) return !0;
917
917
  }
918
- if (ee) return L.matches(ee);
918
+ if (Q) return T.matches(Q);
919
919
  } catch {
920
920
  }
921
921
  return !1;
922
- }(m, I, O), y = function(L) {
923
- if (L instanceof HTMLFormElement) return "form";
924
- const _ = ft(L.tagName);
925
- return Xd.test(_) ? "div" : _;
922
+ }(m, I, O), y = function(T) {
923
+ if (T instanceof HTMLFormElement) return "form";
924
+ const N = mt(T.tagName);
925
+ return Xd.test(N) ? "div" : N;
926
926
  }(m);
927
- let U = {};
928
- const F = m.attributes.length;
929
- for (let L = 0; L < F; L++) {
930
- const _ = m.attributes[L];
931
- Al(y, _.name, _.value) || (U[_.name] = Ol(v, y, ft(_.name), _.value));
927
+ let D = {};
928
+ const _ = m.attributes.length;
929
+ for (let T = 0; T < _; T++) {
930
+ const N = m.attributes[T];
931
+ Al(y, N.name, N.value) || (D[N.name] = Ol(v, y, mt(N.name), N.value));
932
932
  }
933
933
  if (y === "link" && E) {
934
- const L = Array.from(v.styleSheets).find((ee) => ee.href === m.href);
935
- let _ = null;
936
- L && (_ = qr(L)), _ && (delete U.rel, delete U.href, U._cssText = _);
934
+ const T = Array.from(v.styleSheets).find((Q) => Q.href === m.href);
935
+ let N = null;
936
+ T && (N = qr(T)), N && (delete D.rel, delete D.href, D._cssText = N);
937
937
  }
938
938
  if (y === "style" && m.sheet && !(m.innerText || ye.textContent(m) || "").trim().length) {
939
- const L = qr(m.sheet);
940
- L && (U._cssText = L);
939
+ const T = qr(m.sheet);
940
+ T && (D._cssText = T);
941
941
  }
942
942
  if (y === "input" || y === "textarea" || y === "select") {
943
- const L = m.value, _ = m.checked;
944
- U.type !== "radio" && U.type !== "checkbox" && U.type !== "submit" && U.type !== "button" && L ? U.value = Ui({ element: m, type: Di(m), tagName: y, value: L, maskInputOptions: A, maskInputFn: M }) : _ && (U.checked = _);
943
+ const T = m.value, N = m.checked;
944
+ D.type !== "radio" && D.type !== "checkbox" && D.type !== "submit" && D.type !== "button" && T ? D.value = Ui({ element: m, type: Di(m), tagName: y, value: T, maskInputOptions: U, maskInputFn: A }) : N && (D.checked = N);
945
945
  }
946
- if (y === "option" && (m.selected && !A.select ? U.selected = !0 : delete U.selected), y === "dialog" && m.open && (U.rr_open_mode = m.matches("dialog:modal") ? "modal" : "non-modal"), y === "canvas" && R) {
947
- if (m.__context === "2d") (function(L) {
948
- const _ = L.getContext("2d");
949
- if (!_) return !0;
950
- for (let ee = 0; ee < L.width; ee += 50) for (let q = 0; q < L.height; q += 50) {
951
- const me = _.getImageData, _e = Lo in me ? me[Lo] : me;
952
- if (new Uint32Array(_e.call(_, ee, q, Math.min(50, L.width - ee), Math.min(50, L.height - q)).data.buffer).some((we) => we !== 0)) return !1;
946
+ if (y === "option" && (m.selected && !U.select ? D.selected = !0 : delete D.selected), y === "dialog" && m.open && (D.rr_open_mode = m.matches("dialog:modal") ? "modal" : "non-modal"), y === "canvas" && R) {
947
+ if (m.__context === "2d") (function(T) {
948
+ const N = T.getContext("2d");
949
+ if (!N) return !0;
950
+ for (let Q = 0; Q < T.width; Q += 50) for (let Y = 0; Y < T.height; Y += 50) {
951
+ const me = N.getImageData, _e = Lo in me ? me[Lo] : me;
952
+ if (new Uint32Array(_e.call(N, Q, Y, Math.min(50, T.width - Q), Math.min(50, T.height - Y)).data.buffer).some((we) => we !== 0)) return !1;
953
953
  }
954
954
  return !0;
955
- })(m) || (U.rr_dataURL = m.toDataURL(k.type, k.quality));
955
+ })(m) || (D.rr_dataURL = m.toDataURL(k.type, k.quality));
956
956
  else if (!("__context" in m)) {
957
- const L = m.toDataURL(k.type, k.quality), _ = v.createElement("canvas");
958
- _.width = m.width, _.height = m.height, L !== _.toDataURL(k.type, k.quality) && (U.rr_dataURL = L);
957
+ const T = m.toDataURL(k.type, k.quality), N = v.createElement("canvas");
958
+ N.width = m.width, N.height = m.height, T !== N.toDataURL(k.type, k.quality) && (D.rr_dataURL = T);
959
959
  }
960
960
  }
961
- if (y === "img" && T) {
961
+ if (y === "img" && L) {
962
962
  vt || (vt = v.createElement("canvas"), Ao = vt.getContext("2d"));
963
- const L = m, _ = L.currentSrc || L.getAttribute("src") || "<unknown-src>", ee = L.crossOrigin, q = () => {
964
- L.removeEventListener("load", q);
963
+ const T = m, N = T.currentSrc || T.getAttribute("src") || "<unknown-src>", Q = T.crossOrigin, Y = () => {
964
+ T.removeEventListener("load", Y);
965
965
  try {
966
- vt.width = L.naturalWidth, vt.height = L.naturalHeight, Ao.drawImage(L, 0, 0), U.rr_dataURL = vt.toDataURL(k.type, k.quality);
966
+ vt.width = T.naturalWidth, vt.height = T.naturalHeight, Ao.drawImage(T, 0, 0), D.rr_dataURL = vt.toDataURL(k.type, k.quality);
967
967
  } catch (me) {
968
- if (L.crossOrigin !== "anonymous") return L.crossOrigin = "anonymous", void (L.complete && L.naturalWidth !== 0 ? q() : L.addEventListener("load", q));
969
- console.warn(`Cannot inline img src=${_}! Error: ${me}`);
968
+ if (T.crossOrigin !== "anonymous") return T.crossOrigin = "anonymous", void (T.complete && T.naturalWidth !== 0 ? Y() : T.addEventListener("load", Y));
969
+ console.warn(`Cannot inline img src=${N}! Error: ${me}`);
970
970
  }
971
- L.crossOrigin === "anonymous" && (ee ? U.crossOrigin = ee : L.removeAttribute("crossorigin"));
971
+ T.crossOrigin === "anonymous" && (Q ? D.crossOrigin = Q : T.removeAttribute("crossorigin"));
972
972
  };
973
- L.complete && L.naturalWidth !== 0 ? q() : L.addEventListener("load", q);
973
+ T.complete && T.naturalWidth !== 0 ? Y() : T.addEventListener("load", Y);
974
974
  }
975
975
  if (y === "audio" || y === "video") {
976
- const L = U;
977
- L.rr_mediaState = m.paused ? "paused" : "played", L.rr_mediaCurrentTime = m.currentTime, L.rr_mediaPlaybackRate = m.playbackRate, L.rr_mediaMuted = m.muted, L.rr_mediaLoop = m.loop, L.rr_mediaVolume = m.volume;
976
+ const T = D;
977
+ T.rr_mediaState = m.paused ? "paused" : "played", T.rr_mediaCurrentTime = m.currentTime, T.rr_mediaPlaybackRate = m.playbackRate, T.rr_mediaMuted = m.muted, T.rr_mediaLoop = m.loop, T.rr_mediaVolume = m.volume;
978
978
  }
979
- if (P || (m.scrollLeft && (U.rr_scrollLeft = m.scrollLeft), m.scrollTop && (U.rr_scrollTop = m.scrollTop)), b) {
980
- const { width: L, height: _ } = m.getBoundingClientRect();
981
- U = { class: U.class, rr_width: `${L}px`, rr_height: `${_}px` };
979
+ if (P || (m.scrollLeft && (D.rr_scrollLeft = m.scrollLeft), m.scrollTop && (D.rr_scrollTop = m.scrollTop)), b) {
980
+ const { width: T, height: N } = m.getBoundingClientRect();
981
+ D = { class: D.class, rr_width: `${T}px`, rr_height: `${N}px` };
982
982
  }
983
- y !== "iframe" || S(U.src) || (m.contentDocument || (U.rr_src = U.src), delete U.src);
984
- let j;
983
+ y !== "iframe" || S(D.src) || (m.contentDocument || (D.rr_src = D.src), delete D.src);
984
+ let W;
985
985
  try {
986
- customElements.get(y) && (j = !0);
986
+ customElements.get(y) && (W = !0);
987
987
  } catch {
988
988
  }
989
- return { type: fe.Element, tagName: y, attributes: U, childNodes: [], isSVG: tp(m) || void 0, needBlock: b, rootId: D, isCustom: j };
990
- }(e, { doc: r, blockClass: n, blockSelector: i, inlineStylesheet: o, maskInputOptions: l, maskInputFn: u, dataURLOptions: d, inlineImages: h, recordCanvas: f, keepIframeSrcFn: w, newlyAddedElement: p, rootId: C });
989
+ return { type: fe.Element, tagName: y, attributes: D, childNodes: [], isSVG: tp(m) || void 0, needBlock: b, rootId: M, isCustom: W };
990
+ }(e, { doc: r, blockClass: n, blockSelector: i, inlineStylesheet: o, maskInputOptions: l, maskInputFn: u, dataURLOptions: d, inlineImages: p, recordCanvas: f, keepIframeSrcFn: w, newlyAddedElement: h, rootId: C });
991
991
  case e.TEXT_NODE:
992
992
  return function(m, g) {
993
993
  var v;
994
- const { needsMask: I, maskTextFn: O, rootId: E } = g, A = ye.parentNode(m), M = A && A.tagName;
994
+ const { needsMask: I, maskTextFn: O, rootId: E } = g, U = ye.parentNode(m), A = U && U.tagName;
995
995
  let k = ye.textContent(m);
996
- const T = M === "STYLE" || void 0, R = M === "SCRIPT" || void 0;
997
- if (T && k) {
996
+ const L = A === "STYLE" || void 0, R = A === "SCRIPT" || void 0;
997
+ if (L && k) {
998
998
  try {
999
- m.nextSibling || m.previousSibling || (v = A.sheet) != null && v.cssRules && (k = qr(A.sheet));
999
+ m.nextSibling || m.previousSibling || (v = U.sheet) != null && v.cssRules && (k = qr(U.sheet));
1000
1000
  } catch (S) {
1001
1001
  console.warn(`Cannot get CSS styles from text's parentNode. Error: ${S}`, m);
1002
1002
  }
1003
1003
  k = gs(k, Pi(g.doc));
1004
1004
  }
1005
- return R && (k = "SCRIPT_PLACEHOLDER"), !T && !R && k && I && (k = O ? O(k, ye.parentElement(m)) : k.replace(/[\S]/g, "*")), { type: fe.Text, textContent: k || "", isStyle: T, rootId: E };
1005
+ return R && (k = "SCRIPT_PLACEHOLDER"), !L && !R && k && I && (k = O ? O(k, ye.parentElement(m)) : k.replace(/[\S]/g, "*")), { type: fe.Text, textContent: k || "", isStyle: L, rootId: E };
1006
1006
  }(e, { doc: r, needsMask: a, maskTextFn: c, rootId: C });
1007
1007
  case e.CDATA_SECTION_NODE:
1008
1008
  return { type: fe.CDATA, textContent: "", rootId: C };
@@ -1012,20 +1012,20 @@ function rp(e, t) {
1012
1012
  return !1;
1013
1013
  }
1014
1014
  }
1015
- function te(e) {
1015
+ function se(e) {
1016
1016
  return e == null ? "" : e.toLowerCase();
1017
1017
  }
1018
1018
  function Et(e, t) {
1019
- const { doc: r, mirror: s, blockClass: n, blockSelector: i, maskTextClass: a, maskTextSelector: o, skipChild: l = !1, inlineStylesheet: c = !0, maskInputOptions: u = {}, maskTextFn: d, maskInputFn: h, slimDOMOptions: f, dataURLOptions: w = {}, inlineImages: p = !1, recordCanvas: C = !1, onSerialize: m, onIframeLoad: g, iframeLoadTimeout: v = 5e3, onStylesheetLoad: I, stylesheetLoadTimeout: O = 5e3, keepIframeSrcFn: E = () => !1, newlyAddedElement: A = !1 } = t;
1020
- let { needsMask: M } = t, { preserveWhiteSpace: k = !0 } = t;
1021
- M || (M = Ml(e, a, o, M === void 0));
1022
- const T = rp(e, { doc: r, mirror: s, blockClass: n, blockSelector: i, needsMask: M, inlineStylesheet: c, maskInputOptions: u, maskTextFn: d, maskInputFn: h, dataURLOptions: w, inlineImages: p, recordCanvas: C, keepIframeSrcFn: E, newlyAddedElement: A });
1023
- if (!T) return console.warn(e, "not serialized"), null;
1019
+ const { doc: r, mirror: s, blockClass: n, blockSelector: i, maskTextClass: a, maskTextSelector: o, skipChild: l = !1, inlineStylesheet: c = !0, maskInputOptions: u = {}, maskTextFn: d, maskInputFn: p, slimDOMOptions: f, dataURLOptions: w = {}, inlineImages: h = !1, recordCanvas: C = !1, onSerialize: m, onIframeLoad: g, iframeLoadTimeout: v = 5e3, onStylesheetLoad: I, stylesheetLoadTimeout: O = 5e3, keepIframeSrcFn: E = () => !1, newlyAddedElement: U = !1 } = t;
1020
+ let { needsMask: A } = t, { preserveWhiteSpace: k = !0 } = t;
1021
+ A || (A = Ml(e, a, o, A === void 0));
1022
+ const L = rp(e, { doc: r, mirror: s, blockClass: n, blockSelector: i, needsMask: A, inlineStylesheet: c, maskInputOptions: u, maskTextFn: d, maskInputFn: p, dataURLOptions: w, inlineImages: h, recordCanvas: C, keepIframeSrcFn: E, newlyAddedElement: U });
1023
+ if (!L) return console.warn(e, "not serialized"), null;
1024
1024
  let R;
1025
1025
  R = s.hasNode(e) ? s.getId(e) : !function(b, y) {
1026
- return !!(y.comment && b.type === fe.Comment || b.type === fe.Element && (y.script && (b.tagName === "script" || b.tagName === "link" && (b.attributes.rel === "preload" || b.attributes.rel === "modulepreload") && b.attributes.as === "script" || b.tagName === "link" && b.attributes.rel === "prefetch" && typeof b.attributes.href == "string" && Oo(b.attributes.href) === "js") || y.headFavicon && (b.tagName === "link" && b.attributes.rel === "shortcut icon" || b.tagName === "meta" && (te(b.attributes.name).match(/^msapplication-tile(image|color)$/) || te(b.attributes.name) === "application-name" || te(b.attributes.rel) === "icon" || te(b.attributes.rel) === "apple-touch-icon" || te(b.attributes.rel) === "shortcut icon")) || b.tagName === "meta" && (y.headMetaDescKeywords && te(b.attributes.name).match(/^description|keywords$/) || y.headMetaSocial && (te(b.attributes.property).match(/^(og|twitter|fb):/) || te(b.attributes.name).match(/^(og|twitter):/) || te(b.attributes.name) === "pinterest") || y.headMetaRobots && (te(b.attributes.name) === "robots" || te(b.attributes.name) === "googlebot" || te(b.attributes.name) === "bingbot") || y.headMetaHttpEquiv && b.attributes["http-equiv"] !== void 0 || y.headMetaAuthorship && (te(b.attributes.name) === "author" || te(b.attributes.name) === "generator" || te(b.attributes.name) === "framework" || te(b.attributes.name) === "publisher" || te(b.attributes.name) === "progid" || te(b.attributes.property).match(/^article:/) || te(b.attributes.property).match(/^product:/)) || y.headMetaVerification && (te(b.attributes.name) === "google-site-verification" || te(b.attributes.name) === "yandex-verification" || te(b.attributes.name) === "csrf-token" || te(b.attributes.name) === "p:domain_verify" || te(b.attributes.name) === "verify-v1" || te(b.attributes.name) === "verification" || te(b.attributes.name) === "shopify-checkout-api-token"))));
1027
- }(T, f) && (k || T.type !== fe.Text || T.isStyle || T.textContent.replace(/^\s+|\s+$/gm, "").length) ? Ll() : -2;
1028
- const S = Object.assign(T, { id: R });
1026
+ return !!(y.comment && b.type === fe.Comment || b.type === fe.Element && (y.script && (b.tagName === "script" || b.tagName === "link" && (b.attributes.rel === "preload" || b.attributes.rel === "modulepreload") && b.attributes.as === "script" || b.tagName === "link" && b.attributes.rel === "prefetch" && typeof b.attributes.href == "string" && Oo(b.attributes.href) === "js") || y.headFavicon && (b.tagName === "link" && b.attributes.rel === "shortcut icon" || b.tagName === "meta" && (se(b.attributes.name).match(/^msapplication-tile(image|color)$/) || se(b.attributes.name) === "application-name" || se(b.attributes.rel) === "icon" || se(b.attributes.rel) === "apple-touch-icon" || se(b.attributes.rel) === "shortcut icon")) || b.tagName === "meta" && (y.headMetaDescKeywords && se(b.attributes.name).match(/^description|keywords$/) || y.headMetaSocial && (se(b.attributes.property).match(/^(og|twitter|fb):/) || se(b.attributes.name).match(/^(og|twitter):/) || se(b.attributes.name) === "pinterest") || y.headMetaRobots && (se(b.attributes.name) === "robots" || se(b.attributes.name) === "googlebot" || se(b.attributes.name) === "bingbot") || y.headMetaHttpEquiv && b.attributes["http-equiv"] !== void 0 || y.headMetaAuthorship && (se(b.attributes.name) === "author" || se(b.attributes.name) === "generator" || se(b.attributes.name) === "framework" || se(b.attributes.name) === "publisher" || se(b.attributes.name) === "progid" || se(b.attributes.property).match(/^article:/) || se(b.attributes.property).match(/^product:/)) || y.headMetaVerification && (se(b.attributes.name) === "google-site-verification" || se(b.attributes.name) === "yandex-verification" || se(b.attributes.name) === "csrf-token" || se(b.attributes.name) === "p:domain_verify" || se(b.attributes.name) === "verify-v1" || se(b.attributes.name) === "verification" || se(b.attributes.name) === "shopify-checkout-api-token"))));
1027
+ }(L, f) && (k || L.type !== fe.Text || L.isStyle || L.textContent.replace(/^\s+|\s+$/gm, "").length) ? Ll() : -2;
1028
+ const S = Object.assign(L, { id: R });
1029
1029
  if (s.add(e, S), R === -2) return null;
1030
1030
  m && m(e);
1031
1031
  let P = !l;
@@ -1036,61 +1036,61 @@ function Et(e, t) {
1036
1036
  }
1037
1037
  if ((S.type === fe.Document || S.type === fe.Element) && P) {
1038
1038
  f.headWhitespace && S.type === fe.Element && S.tagName === "head" && (k = !1);
1039
- const b = { doc: r, mirror: s, blockClass: n, blockSelector: i, needsMask: M, maskTextClass: a, maskTextSelector: o, skipChild: l, inlineStylesheet: c, maskInputOptions: u, maskTextFn: d, maskInputFn: h, slimDOMOptions: f, dataURLOptions: w, inlineImages: p, recordCanvas: C, preserveWhiteSpace: k, onSerialize: m, onIframeLoad: g, iframeLoadTimeout: v, onStylesheetLoad: I, stylesheetLoadTimeout: O, keepIframeSrcFn: E };
1040
- if (!(S.type === fe.Element && S.tagName === "textarea" && S.attributes.value !== void 0)) for (const U of Array.from(ye.childNodes(e))) {
1041
- const F = Et(U, b);
1042
- F && S.childNodes.push(F);
1039
+ const b = { doc: r, mirror: s, blockClass: n, blockSelector: i, needsMask: A, maskTextClass: a, maskTextSelector: o, skipChild: l, inlineStylesheet: c, maskInputOptions: u, maskTextFn: d, maskInputFn: p, slimDOMOptions: f, dataURLOptions: w, inlineImages: h, recordCanvas: C, preserveWhiteSpace: k, onSerialize: m, onIframeLoad: g, iframeLoadTimeout: v, onStylesheetLoad: I, stylesheetLoadTimeout: O, keepIframeSrcFn: E };
1040
+ if (!(S.type === fe.Element && S.tagName === "textarea" && S.attributes.value !== void 0)) for (const D of Array.from(ye.childNodes(e))) {
1041
+ const _ = Et(D, b);
1042
+ _ && S.childNodes.push(_);
1043
1043
  }
1044
1044
  let y = null;
1045
- if (xl(e) && (y = ye.shadowRoot(e))) for (const U of Array.from(ye.childNodes(y))) {
1046
- const F = Et(U, b);
1047
- F && (Xt(y) && (F.isShadow = !0), S.childNodes.push(F));
1045
+ if (xl(e) && (y = ye.shadowRoot(e))) for (const D of Array.from(ye.childNodes(y))) {
1046
+ const _ = Et(D, b);
1047
+ _ && (Xt(y) && (_.isShadow = !0), S.childNodes.push(_));
1048
1048
  }
1049
1049
  }
1050
- const D = ye.parentNode(e);
1051
- return D && Zt(D) && Xt(D) && (S.isShadow = !0), S.type === fe.Element && S.tagName === "iframe" && function(b, y, U) {
1052
- const F = b.contentWindow;
1053
- if (!F) return;
1054
- let j, L = !1;
1050
+ const M = ye.parentNode(e);
1051
+ return M && Zt(M) && Xt(M) && (S.isShadow = !0), S.type === fe.Element && S.tagName === "iframe" && function(b, y, D) {
1052
+ const _ = b.contentWindow;
1053
+ if (!_) return;
1054
+ let W, T = !1;
1055
1055
  try {
1056
- j = F.document.readyState;
1056
+ W = _.document.readyState;
1057
1057
  } catch {
1058
1058
  return;
1059
1059
  }
1060
- if (j !== "complete") {
1061
- const ee = setTimeout(() => {
1062
- L || (y(), L = !0);
1063
- }, U);
1060
+ if (W !== "complete") {
1061
+ const Q = setTimeout(() => {
1062
+ T || (y(), T = !0);
1063
+ }, D);
1064
1064
  return void b.addEventListener("load", () => {
1065
- clearTimeout(ee), L = !0, y();
1065
+ clearTimeout(Q), T = !0, y();
1066
1066
  });
1067
1067
  }
1068
- const _ = "about:blank";
1069
- if (F.location.href !== _ || b.src === _ || b.src === "") return setTimeout(y, 0), b.addEventListener("load", y);
1068
+ const N = "about:blank";
1069
+ if (_.location.href !== N || b.src === N || b.src === "") return setTimeout(y, 0), b.addEventListener("load", y);
1070
1070
  b.addEventListener("load", y);
1071
1071
  }(e, () => {
1072
1072
  const b = e.contentDocument;
1073
1073
  if (b && g) {
1074
- const y = Et(b, { doc: b, mirror: s, blockClass: n, blockSelector: i, needsMask: M, maskTextClass: a, maskTextSelector: o, skipChild: !1, inlineStylesheet: c, maskInputOptions: u, maskTextFn: d, maskInputFn: h, slimDOMOptions: f, dataURLOptions: w, inlineImages: p, recordCanvas: C, preserveWhiteSpace: k, onSerialize: m, onIframeLoad: g, iframeLoadTimeout: v, onStylesheetLoad: I, stylesheetLoadTimeout: O, keepIframeSrcFn: E });
1074
+ const y = Et(b, { doc: b, mirror: s, blockClass: n, blockSelector: i, needsMask: A, maskTextClass: a, maskTextSelector: o, skipChild: !1, inlineStylesheet: c, maskInputOptions: u, maskTextFn: d, maskInputFn: p, slimDOMOptions: f, dataURLOptions: w, inlineImages: h, recordCanvas: C, preserveWhiteSpace: k, onSerialize: m, onIframeLoad: g, iframeLoadTimeout: v, onStylesheetLoad: I, stylesheetLoadTimeout: O, keepIframeSrcFn: E });
1075
1075
  y && g(e, y);
1076
1076
  }
1077
- }, v), S.type === fe.Element && S.tagName === "link" && typeof S.attributes.rel == "string" && (S.attributes.rel === "stylesheet" || S.attributes.rel === "preload" && typeof S.attributes.href == "string" && Oo(S.attributes.href) === "css") && function(b, y, U) {
1078
- let F, j = !1;
1077
+ }, v), S.type === fe.Element && S.tagName === "link" && typeof S.attributes.rel == "string" && (S.attributes.rel === "stylesheet" || S.attributes.rel === "preload" && typeof S.attributes.href == "string" && Oo(S.attributes.href) === "css") && function(b, y, D) {
1078
+ let _, W = !1;
1079
1079
  try {
1080
- F = b.sheet;
1080
+ _ = b.sheet;
1081
1081
  } catch {
1082
1082
  return;
1083
1083
  }
1084
- if (F) return;
1085
- const L = setTimeout(() => {
1086
- j || (y(), j = !0);
1087
- }, U);
1084
+ if (_) return;
1085
+ const T = setTimeout(() => {
1086
+ W || (y(), W = !0);
1087
+ }, D);
1088
1088
  b.addEventListener("load", () => {
1089
- clearTimeout(L), j = !0, y();
1089
+ clearTimeout(T), W = !0, y();
1090
1090
  });
1091
1091
  }(e, () => {
1092
1092
  if (I) {
1093
- const b = Et(e, { doc: r, mirror: s, blockClass: n, blockSelector: i, needsMask: M, maskTextClass: a, maskTextSelector: o, skipChild: !1, inlineStylesheet: c, maskInputOptions: u, maskTextFn: d, maskInputFn: h, slimDOMOptions: f, dataURLOptions: w, inlineImages: p, recordCanvas: C, preserveWhiteSpace: k, onSerialize: m, onIframeLoad: g, iframeLoadTimeout: v, onStylesheetLoad: I, stylesheetLoadTimeout: O, keepIframeSrcFn: E });
1093
+ const b = Et(e, { doc: r, mirror: s, blockClass: n, blockSelector: i, needsMask: A, maskTextClass: a, maskTextSelector: o, skipChild: !1, inlineStylesheet: c, maskInputOptions: u, maskTextFn: d, maskInputFn: p, slimDOMOptions: f, dataURLOptions: w, inlineImages: h, recordCanvas: C, preserveWhiteSpace: k, onSerialize: m, onIframeLoad: g, iframeLoadTimeout: v, onStylesheetLoad: I, stylesheetLoadTimeout: O, keepIframeSrcFn: E });
1094
1094
  b && I(e, b);
1095
1095
  }
1096
1096
  }, O), S;
@@ -1114,8 +1114,8 @@ function np(e) {
1114
1114
  } });
1115
1115
  }), r;
1116
1116
  }
1117
- var xn = { exports: {} }, ie = String, Uo = function() {
1118
- return { isColorSupported: !1, reset: ie, bold: ie, dim: ie, italic: ie, underline: ie, inverse: ie, hidden: ie, strikethrough: ie, black: ie, red: ie, green: ie, yellow: ie, blue: ie, magenta: ie, cyan: ie, white: ie, gray: ie, bgBlack: ie, bgRed: ie, bgGreen: ie, bgYellow: ie, bgBlue: ie, bgMagenta: ie, bgCyan: ie, bgWhite: ie };
1117
+ var xn = { exports: {} }, oe = String, Uo = function() {
1118
+ return { isColorSupported: !1, reset: oe, bold: oe, dim: oe, italic: oe, underline: oe, inverse: oe, hidden: oe, strikethrough: oe, black: oe, red: oe, green: oe, yellow: oe, blue: oe, magenta: oe, cyan: oe, white: oe, gray: oe, bgBlack: oe, bgRed: oe, bgGreen: oe, bgYellow: oe, bgBlue: oe, bgMagenta: oe, bgCyan: oe, bgWhite: oe };
1119
1119
  };
1120
1120
  xn.exports = Uo(), xn.exports.createColors = Uo;
1121
1121
  var ip = xn.exports;
@@ -1134,16 +1134,16 @@ let Do = ip, Po = De, Tn = class Ul extends Error {
1134
1134
  let s, n, i = r.split(/\r?\n/), a = Math.max(this.line - 3, 0), o = Math.min(this.line + 2, i.length), l = String(o).length;
1135
1135
  if (t) {
1136
1136
  let { bold: c, gray: u, red: d } = Do.createColors(!0);
1137
- s = (h) => c(d(h)), n = (h) => u(h);
1137
+ s = (p) => c(d(p)), n = (p) => u(p);
1138
1138
  } else s = n = (c) => c;
1139
1139
  return i.slice(a, o).map((c, u) => {
1140
- let d = a + 1 + u, h = " " + (" " + d).slice(-l) + " | ";
1140
+ let d = a + 1 + u, p = " " + (" " + d).slice(-l) + " | ";
1141
1141
  if (d === this.line) {
1142
- let f = n(h.replace(/\d/g, " ")) + c.slice(0, this.column - 1).replace(/[^\t]/g, " ");
1143
- return s(">") + n(h) + c + `
1142
+ let f = n(p.replace(/\d/g, " ")) + c.slice(0, this.column - 1).replace(/[^\t]/g, " ");
1143
+ return s(">") + n(p) + c + `
1144
1144
  ` + f + s("^");
1145
1145
  }
1146
- return " " + n(h) + c;
1146
+ return " " + n(p) + c;
1147
1147
  }).join(`
1148
1148
  `);
1149
1149
  }
@@ -1946,13 +1946,13 @@ Je.registerParse = (e) => {
1946
1946
  }, Je.registerRoot = (e) => {
1947
1947
  Wl = e;
1948
1948
  };
1949
- var yt = Je;
1949
+ var gt = Je;
1950
1950
  Je.default = Je, Je.rebuild = (e) => {
1951
1951
  e.type === "atrule" ? Object.setPrototypeOf(e, Fi.prototype) : e.type === "rule" ? Object.setPrototypeOf(e, Ni.prototype) : e.type === "decl" ? Object.setPrototypeOf(e, Gl.prototype) : e.type === "comment" ? Object.setPrototypeOf(e, $l.prototype) : e.type === "root" && Object.setPrototypeOf(e, Wl.prototype), e[Hl] = !0, e.nodes && e.nodes.forEach((t) => {
1952
1952
  Je.rebuild(t);
1953
1953
  });
1954
1954
  };
1955
- let Kl, Zl, xp = yt, or = class extends xp {
1955
+ let Kl, Zl, xp = gt, or = class extends xp {
1956
1956
  constructor(e) {
1957
1957
  super({ type: "document", ...e }), this.nodes || (this.nodes = []);
1958
1958
  }
@@ -2003,7 +2003,7 @@ let Tp = Xl, Fn = class {
2003
2003
  var zi = Fn;
2004
2004
  Fn.default = Fn;
2005
2005
  const nn = 39, Vo = 34, kr = 92, Ho = 47, Er = 10, Bt = 32, xr = 12, Tr = 9, Rr = 13, Rp = 91, Lp = 93, Op = 40, Ap = 41, Mp = 123, Up = 125, Dp = 59, Pp = 42, _p = 58, Np = 64, Lr = /[\t\n\f\r "#'()/;[\\\]{}]/g, Or = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, Fp = /.[\r\n"'(/\\]/, Go = /[\da-f]/i;
2006
- let Ql = yt, Xr = class extends Ql {
2006
+ let Ql = gt, Xr = class extends Ql {
2007
2007
  constructor(e) {
2008
2008
  super(e), this.type = "atrule";
2009
2009
  }
@@ -2016,7 +2016,7 @@ let Ql = yt, Xr = class extends Ql {
2016
2016
  };
2017
2017
  var ji = Xr;
2018
2018
  Xr.default = Xr, Ql.registerAtRule(Xr);
2019
- let ec, tc, rc = yt, Lt = class extends rc {
2019
+ let ec, tc, rc = gt, Lt = class extends rc {
2020
2020
  constructor(e) {
2021
2021
  super(e), this.type = "root", this.nodes || (this.nodes = []);
2022
2022
  }
@@ -2051,7 +2051,7 @@ let ar = { comma: (e) => ar.split(e, [","], !0), space: (e) => ar.split(e, [" ",
2051
2051
  } };
2052
2052
  var sc = ar;
2053
2053
  ar.default = ar;
2054
- let nc = yt, Bp = sc, Qr = class extends nc {
2054
+ let nc = gt, Bp = sc, Qr = class extends nc {
2055
2055
  constructor(e) {
2056
2056
  super(e), this.type = "rule", this.nodes || (this.nodes = []);
2057
2057
  }
@@ -2066,29 +2066,29 @@ let nc = yt, Bp = sc, Qr = class extends nc {
2066
2066
  var Wi = Qr;
2067
2067
  Qr.default = Qr, nc.registerRule(Qr);
2068
2068
  let zp = Fs, jp = function(e, t = {}) {
2069
- let r, s, n, i, a, o, l, c, u, d, h = e.css.valueOf(), f = t.ignoreErrors, w = h.length, p = 0, C = [], m = [];
2069
+ let r, s, n, i, a, o, l, c, u, d, p = e.css.valueOf(), f = t.ignoreErrors, w = p.length, h = 0, C = [], m = [];
2070
2070
  function g(v) {
2071
- throw e.error("Unclosed " + v, p);
2071
+ throw e.error("Unclosed " + v, h);
2072
2072
  }
2073
2073
  return { back: function(v) {
2074
2074
  m.push(v);
2075
2075
  }, endOfFile: function() {
2076
- return m.length === 0 && p >= w;
2076
+ return m.length === 0 && h >= w;
2077
2077
  }, nextToken: function(v) {
2078
2078
  if (m.length) return m.pop();
2079
- if (p >= w) return;
2079
+ if (h >= w) return;
2080
2080
  let I = !!v && v.ignoreUnclosed;
2081
- switch (r = h.charCodeAt(p), r) {
2081
+ switch (r = p.charCodeAt(h), r) {
2082
2082
  case Er:
2083
2083
  case Bt:
2084
2084
  case Tr:
2085
2085
  case Rr:
2086
2086
  case xr:
2087
- s = p;
2087
+ s = h;
2088
2088
  do
2089
- s += 1, r = h.charCodeAt(s);
2089
+ s += 1, r = p.charCodeAt(s);
2090
2090
  while (r === Bt || r === Er || r === Tr || r === Rr || r === xr);
2091
- d = ["space", h.slice(p, s)], p = s - 1;
2091
+ d = ["space", p.slice(h, s)], h = s - 1;
2092
2092
  break;
2093
2093
  case Rp:
2094
2094
  case Lp:
@@ -2098,57 +2098,57 @@ let zp = Fs, jp = function(e, t = {}) {
2098
2098
  case Dp:
2099
2099
  case Ap: {
2100
2100
  let O = String.fromCharCode(r);
2101
- d = [O, O, p];
2101
+ d = [O, O, h];
2102
2102
  break;
2103
2103
  }
2104
2104
  case Op:
2105
- if (c = C.length ? C.pop()[1] : "", u = h.charCodeAt(p + 1), c === "url" && u !== nn && u !== Vo && u !== Bt && u !== Er && u !== Tr && u !== xr && u !== Rr) {
2106
- s = p;
2105
+ if (c = C.length ? C.pop()[1] : "", u = p.charCodeAt(h + 1), c === "url" && u !== nn && u !== Vo && u !== Bt && u !== Er && u !== Tr && u !== xr && u !== Rr) {
2106
+ s = h;
2107
2107
  do {
2108
- if (o = !1, s = h.indexOf(")", s + 1), s === -1) {
2108
+ if (o = !1, s = p.indexOf(")", s + 1), s === -1) {
2109
2109
  if (f || I) {
2110
- s = p;
2110
+ s = h;
2111
2111
  break;
2112
2112
  }
2113
2113
  g("bracket");
2114
2114
  }
2115
- for (l = s; h.charCodeAt(l - 1) === kr; ) l -= 1, o = !o;
2115
+ for (l = s; p.charCodeAt(l - 1) === kr; ) l -= 1, o = !o;
2116
2116
  } while (o);
2117
- d = ["brackets", h.slice(p, s + 1), p, s], p = s;
2118
- } else s = h.indexOf(")", p + 1), i = h.slice(p, s + 1), s === -1 || Fp.test(i) ? d = ["(", "(", p] : (d = ["brackets", i, p, s], p = s);
2117
+ d = ["brackets", p.slice(h, s + 1), h, s], h = s;
2118
+ } else s = p.indexOf(")", h + 1), i = p.slice(h, s + 1), s === -1 || Fp.test(i) ? d = ["(", "(", h] : (d = ["brackets", i, h, s], h = s);
2119
2119
  break;
2120
2120
  case nn:
2121
2121
  case Vo:
2122
- n = r === nn ? "'" : '"', s = p;
2122
+ n = r === nn ? "'" : '"', s = h;
2123
2123
  do {
2124
- if (o = !1, s = h.indexOf(n, s + 1), s === -1) {
2124
+ if (o = !1, s = p.indexOf(n, s + 1), s === -1) {
2125
2125
  if (f || I) {
2126
- s = p + 1;
2126
+ s = h + 1;
2127
2127
  break;
2128
2128
  }
2129
2129
  g("string");
2130
2130
  }
2131
- for (l = s; h.charCodeAt(l - 1) === kr; ) l -= 1, o = !o;
2131
+ for (l = s; p.charCodeAt(l - 1) === kr; ) l -= 1, o = !o;
2132
2132
  } while (o);
2133
- d = ["string", h.slice(p, s + 1), p, s], p = s;
2133
+ d = ["string", p.slice(h, s + 1), h, s], h = s;
2134
2134
  break;
2135
2135
  case Np:
2136
- Lr.lastIndex = p + 1, Lr.test(h), s = Lr.lastIndex === 0 ? h.length - 1 : Lr.lastIndex - 2, d = ["at-word", h.slice(p, s + 1), p, s], p = s;
2136
+ Lr.lastIndex = h + 1, Lr.test(p), s = Lr.lastIndex === 0 ? p.length - 1 : Lr.lastIndex - 2, d = ["at-word", p.slice(h, s + 1), h, s], h = s;
2137
2137
  break;
2138
2138
  case kr:
2139
- for (s = p, a = !0; h.charCodeAt(s + 1) === kr; ) s += 1, a = !a;
2140
- if (r = h.charCodeAt(s + 1), a && r !== Ho && r !== Bt && r !== Er && r !== Tr && r !== Rr && r !== xr && (s += 1, Go.test(h.charAt(s)))) {
2141
- for (; Go.test(h.charAt(s + 1)); ) s += 1;
2142
- h.charCodeAt(s + 1) === Bt && (s += 1);
2139
+ for (s = h, a = !0; p.charCodeAt(s + 1) === kr; ) s += 1, a = !a;
2140
+ if (r = p.charCodeAt(s + 1), a && r !== Ho && r !== Bt && r !== Er && r !== Tr && r !== Rr && r !== xr && (s += 1, Go.test(p.charAt(s)))) {
2141
+ for (; Go.test(p.charAt(s + 1)); ) s += 1;
2142
+ p.charCodeAt(s + 1) === Bt && (s += 1);
2143
2143
  }
2144
- d = ["word", h.slice(p, s + 1), p, s], p = s;
2144
+ d = ["word", p.slice(h, s + 1), h, s], h = s;
2145
2145
  break;
2146
2146
  default:
2147
- r === Ho && h.charCodeAt(p + 1) === Pp ? (s = h.indexOf("*/", p + 2) + 1, s === 0 && (f || I ? s = h.length : g("comment")), d = ["comment", h.slice(p, s + 1), p, s], p = s) : (Or.lastIndex = p + 1, Or.test(h), s = Or.lastIndex === 0 ? h.length - 1 : Or.lastIndex - 2, d = ["word", h.slice(p, s + 1), p, s], C.push(d), p = s);
2147
+ r === Ho && p.charCodeAt(h + 1) === Pp ? (s = p.indexOf("*/", h + 2) + 1, s === 0 && (f || I ? s = p.length : g("comment")), d = ["comment", p.slice(h, s + 1), h, s], h = s) : (Or.lastIndex = h + 1, Or.test(p), s = Or.lastIndex === 0 ? p.length - 1 : Or.lastIndex - 2, d = ["word", p.slice(h, s + 1), h, s], C.push(d), h = s);
2148
2148
  }
2149
- return p++, d;
2149
+ return h++, d;
2150
2150
  }, position: function() {
2151
- return p;
2151
+ return h;
2152
2152
  } };
2153
2153
  }, Wp = zs, Vp = ji, Hp = gr, $o = Wi;
2154
2154
  const Yo = { empty: !0, space: !0 };
@@ -2349,7 +2349,7 @@ var Gp = class {
2349
2349
  let n, i, a, o, l = r.length, c = "", u = !0;
2350
2350
  for (let d = 0; d < l; d += 1) n = r[d], i = n[0], i !== "space" || d !== l - 1 || s ? i === "comment" ? (o = r[d - 1] ? r[d - 1][0] : "empty", a = r[d + 1] ? r[d + 1][0] : "empty", Yo[o] || Yo[a] || c.slice(-1) === "," ? u = !1 : c += n[1]) : c += n[1] : u = !1;
2351
2351
  if (!u) {
2352
- let d = r.reduce((h, f) => h + f[1], "");
2352
+ let d = r.reduce((p, f) => p + f[1], "");
2353
2353
  e.raws[t] = { raw: d, value: c };
2354
2354
  }
2355
2355
  e[t] = c;
@@ -2396,7 +2396,7 @@ var Gp = class {
2396
2396
  throw this.input.error("At-rule without name", { offset: t[2] }, { offset: t[2] + t[1].length });
2397
2397
  }
2398
2398
  };
2399
- let $p = yt, Yp = Gp, qp = Bs;
2399
+ let $p = gt, Yp = Gp, qp = Bs;
2400
2400
  function es(e, t) {
2401
2401
  let r = new qp(e, t), s = new Yp(r);
2402
2402
  try {
@@ -2408,7 +2408,7 @@ function es(e, t) {
2408
2408
  }
2409
2409
  var Vi = es;
2410
2410
  es.default = es, $p.registerParse(es);
2411
- let { isClean: Ne, my: Jp } = ir, Kp = zl, Zp = _s, Xp = yt, Qp = Bi, qo = zi, eh = Vi, th = gr;
2411
+ let { isClean: Ne, my: Jp } = ir, Kp = zl, Zp = _s, Xp = gt, Qp = Bi, qo = zi, eh = Vi, th = gr;
2412
2412
  const rh = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, sh = { AtRule: !0, AtRuleExit: !0, Comment: !0, CommentExit: !0, Declaration: !0, DeclarationExit: !0, Document: !0, DocumentExit: !0, Once: !0, OnceExit: !0, postcssPlugin: !0, prepare: !0, Root: !0, RootExit: !0, Rule: !0, RuleExit: !0 }, nh = { Once: !0, postcssPlugin: !0, prepare: !0 };
2413
2413
  function zt(e) {
2414
2414
  return typeof e == "object" && typeof e.then == "function";
@@ -2757,11 +2757,11 @@ function lr(e, t) {
2757
2757
  }
2758
2758
  var Ih = lr;
2759
2759
  lr.default = lr;
2760
- let Ch = _i, Ko = Fs, kh = ac, Eh = yt, Wn = mh, xh = _s, Th = Ih, Zo = Bi, Rh = Xl, Xo = zs, Qo = ji, Lh = zi, Oh = Bs, Ah = Vi, Mh = sc, ea = Wi, ta = gr, Uh = Ns;
2761
- function K(...e) {
2760
+ let Ch = _i, Ko = Fs, kh = ac, Eh = gt, Wn = mh, xh = _s, Th = Ih, Zo = Bi, Rh = Xl, Xo = zs, Qo = ji, Lh = zi, Oh = Bs, Ah = Vi, Mh = sc, ea = Wi, ta = gr, Uh = Ns;
2761
+ function Z(...e) {
2762
2762
  return e.length === 1 && Array.isArray(e[0]) && (e = e[0]), new Wn(e);
2763
2763
  }
2764
- K.plugin = function(e, t) {
2764
+ Z.plugin = function(e, t) {
2765
2765
  let r, s = !1;
2766
2766
  function n(...i) {
2767
2767
  console && console.warn && !s && (s = !0, console.warn(e + `: postcss.plugin was deprecated. Migration guide:
@@ -2771,14 +2771,14 @@ https://www.w3ctech.com/topic/2226`));
2771
2771
  return a.postcssPlugin = e, a.postcssVersion = new Wn().version, a;
2772
2772
  }
2773
2773
  return Object.defineProperty(n, "postcss", { get: () => (r || (r = n()), r) }), n.process = function(i, a, o) {
2774
- return K([n(o)]).process(i, a);
2774
+ return Z([n(o)]).process(i, a);
2775
2775
  }, n;
2776
- }, K.stringify = xh, K.parse = Ah, K.fromJSON = Th, K.list = Mh, K.comment = (e) => new Xo(e), K.atRule = (e) => new Qo(e), K.decl = (e) => new Ko(e), K.rule = (e) => new ea(e), K.root = (e) => new ta(e), K.document = (e) => new Zo(e), K.CssSyntaxError = Ch, K.Declaration = Ko, K.Container = Eh, K.Processor = Wn, K.Document = Zo, K.Comment = Xo, K.Warning = Rh, K.AtRule = Qo, K.Result = Lh, K.Input = Oh, K.Rule = ea, K.Root = ta, K.Node = Uh, kh.registerPostcss(K);
2777
- var Dh = K;
2778
- K.default = K;
2776
+ }, Z.stringify = xh, Z.parse = Ah, Z.fromJSON = Th, Z.list = Mh, Z.comment = (e) => new Xo(e), Z.atRule = (e) => new Qo(e), Z.decl = (e) => new Ko(e), Z.rule = (e) => new ea(e), Z.root = (e) => new ta(e), Z.document = (e) => new Zo(e), Z.CssSyntaxError = Ch, Z.Declaration = Ko, Z.Container = Eh, Z.Processor = Wn, Z.Document = Zo, Z.Comment = Xo, Z.Warning = Rh, Z.AtRule = Qo, Z.Result = Lh, Z.Input = Oh, Z.Rule = ea, Z.Root = ta, Z.Node = Uh, kh.registerPostcss(Z);
2777
+ var Dh = Z;
2778
+ Z.default = Z;
2779
2779
  const le = sp(Dh);
2780
2780
  le.stringify, le.fromJSON, le.plugin, le.parse, le.list, le.document, le.comment, le.atRule, le.rule, le.decl, le.root, le.CssSyntaxError, le.Declaration, le.Container, le.Processor, le.Document, le.Comment, le.Warning, le.AtRule, le.Result, le.Input, le.Rule, le.Root, le.Node;
2781
- var Ph = Object.defineProperty, Re = (e, t, r) => ((s, n, i) => n in s ? Ph(s, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[n] = i)(e, typeof t != "symbol" ? t + "" : t, r);
2781
+ var Ph = Object.defineProperty, Le = (e, t, r) => ((s, n, i) => n in s ? Ph(s, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[n] = i)(e, typeof t != "symbol" ? t + "" : t, r);
2782
2782
  function _h(e) {
2783
2783
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2784
2784
  }
@@ -2798,8 +2798,8 @@ function Nh(e) {
2798
2798
  } });
2799
2799
  }), r;
2800
2800
  }
2801
- var Vn = { exports: {} }, oe = String, ra = function() {
2802
- return { isColorSupported: !1, reset: oe, bold: oe, dim: oe, italic: oe, underline: oe, inverse: oe, hidden: oe, strikethrough: oe, black: oe, red: oe, green: oe, yellow: oe, blue: oe, magenta: oe, cyan: oe, white: oe, gray: oe, bgBlack: oe, bgRed: oe, bgGreen: oe, bgYellow: oe, bgBlue: oe, bgMagenta: oe, bgCyan: oe, bgWhite: oe };
2801
+ var Vn = { exports: {} }, ae = String, ra = function() {
2802
+ return { isColorSupported: !1, reset: ae, bold: ae, dim: ae, italic: ae, underline: ae, inverse: ae, hidden: ae, strikethrough: ae, black: ae, red: ae, green: ae, yellow: ae, blue: ae, magenta: ae, cyan: ae, white: ae, gray: ae, bgBlack: ae, bgRed: ae, bgGreen: ae, bgYellow: ae, bgBlue: ae, bgMagenta: ae, bgCyan: ae, bgWhite: ae };
2803
2803
  };
2804
2804
  Vn.exports = ra(), Vn.exports.createColors = ra;
2805
2805
  var Fh = Vn.exports;
@@ -2818,16 +2818,16 @@ let sa = Fh, na = Pe, Hn = class lc extends Error {
2818
2818
  let s, n, i = r.split(/\r?\n/), a = Math.max(this.line - 3, 0), o = Math.min(this.line + 2, i.length), l = String(o).length;
2819
2819
  if (t) {
2820
2820
  let { bold: c, gray: u, red: d } = sa.createColors(!0);
2821
- s = (h) => c(d(h)), n = (h) => u(h);
2821
+ s = (p) => c(d(p)), n = (p) => u(p);
2822
2822
  } else s = n = (c) => c;
2823
2823
  return i.slice(a, o).map((c, u) => {
2824
- let d = a + 1 + u, h = " " + (" " + d).slice(-l) + " | ";
2824
+ let d = a + 1 + u, p = " " + (" " + d).slice(-l) + " | ";
2825
2825
  if (d === this.line) {
2826
- let f = n(h.replace(/\d/g, " ")) + c.slice(0, this.column - 1).replace(/[^\t]/g, " ");
2827
- return s(">") + n(h) + c + `
2826
+ let f = n(p.replace(/\d/g, " ")) + c.slice(0, this.column - 1).replace(/[^\t]/g, " ");
2827
+ return s(">") + n(p) + c + `
2828
2828
  ` + f + s("^");
2829
2829
  }
2830
- return " " + n(h) + c;
2830
+ return " " + n(p) + c;
2831
2831
  }).join(`
2832
2832
  `);
2833
2833
  }
@@ -3630,13 +3630,13 @@ Ke.registerParse = (e) => {
3630
3630
  }, Ke.registerRoot = (e) => {
3631
3631
  yc = e;
3632
3632
  };
3633
- var wt = Ke;
3633
+ var yt = Ke;
3634
3634
  Ke.default = Ke, Ke.rebuild = (e) => {
3635
3635
  e.type === "atrule" ? Object.setPrototypeOf(e, $i.prototype) : e.type === "rule" ? Object.setPrototypeOf(e, Gi.prototype) : e.type === "decl" ? Object.setPrototypeOf(e, vc.prototype) : e.type === "comment" ? Object.setPrototypeOf(e, Sc.prototype) : e.type === "root" && Object.setPrototypeOf(e, yc.prototype), e[bc] = !0, e.nodes && e.nodes.forEach((t) => {
3636
3636
  Ke.rebuild(t);
3637
3637
  });
3638
3638
  };
3639
- let Ec, xc, im = wt, ur = class extends im {
3639
+ let Ec, xc, im = yt, ur = class extends im {
3640
3640
  constructor(e) {
3641
3641
  super({ type: "document", ...e }), this.nodes || (this.nodes = []);
3642
3642
  }
@@ -3687,7 +3687,7 @@ let om = Tc, ti = class {
3687
3687
  var qi = ti;
3688
3688
  ti.default = ti;
3689
3689
  const cn = 39, pa = 34, Ur = 92, ha = 47, Dr = 10, jt = 32, Pr = 12, _r = 9, Nr = 13, am = 91, lm = 93, cm = 40, um = 41, dm = 123, pm = 125, hm = 59, mm = 42, fm = 58, gm = 64, Fr = /[\t\n\f\r "#'()/;[\\\]{}]/g, Br = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, ym = /.[\r\n"'(/\\]/, ma = /[\da-f]/i;
3690
- let Rc = wt, ns = class extends Rc {
3690
+ let Rc = yt, ns = class extends Rc {
3691
3691
  constructor(e) {
3692
3692
  super(e), this.type = "atrule";
3693
3693
  }
@@ -3700,7 +3700,7 @@ let Rc = wt, ns = class extends Rc {
3700
3700
  };
3701
3701
  var Ji = ns;
3702
3702
  ns.default = ns, Rc.registerAtRule(ns);
3703
- let Lc, Oc, Ac = wt, Ot = class extends Ac {
3703
+ let Lc, Oc, Ac = yt, Ot = class extends Ac {
3704
3704
  constructor(e) {
3705
3705
  super(e), this.type = "root", this.nodes || (this.nodes = []);
3706
3706
  }
@@ -3735,7 +3735,7 @@ let dr = { comma: (e) => dr.split(e, [","], !0), space: (e) => dr.split(e, [" ",
3735
3735
  } };
3736
3736
  var Mc = dr;
3737
3737
  dr.default = dr;
3738
- let Uc = wt, wm = Mc, is = class extends Uc {
3738
+ let Uc = yt, wm = Mc, is = class extends Uc {
3739
3739
  constructor(e) {
3740
3740
  super(e), this.type = "rule", this.nodes || (this.nodes = []);
3741
3741
  }
@@ -3750,29 +3750,29 @@ let Uc = wt, wm = Mc, is = class extends Uc {
3750
3750
  var Ki = is;
3751
3751
  is.default = is, Uc.registerRule(is);
3752
3752
  let bm = Vs, vm = function(e, t = {}) {
3753
- let r, s, n, i, a, o, l, c, u, d, h = e.css.valueOf(), f = t.ignoreErrors, w = h.length, p = 0, C = [], m = [];
3753
+ let r, s, n, i, a, o, l, c, u, d, p = e.css.valueOf(), f = t.ignoreErrors, w = p.length, h = 0, C = [], m = [];
3754
3754
  function g(v) {
3755
- throw e.error("Unclosed " + v, p);
3755
+ throw e.error("Unclosed " + v, h);
3756
3756
  }
3757
3757
  return { back: function(v) {
3758
3758
  m.push(v);
3759
3759
  }, endOfFile: function() {
3760
- return m.length === 0 && p >= w;
3760
+ return m.length === 0 && h >= w;
3761
3761
  }, nextToken: function(v) {
3762
3762
  if (m.length) return m.pop();
3763
- if (p >= w) return;
3763
+ if (h >= w) return;
3764
3764
  let I = !!v && v.ignoreUnclosed;
3765
- switch (r = h.charCodeAt(p), r) {
3765
+ switch (r = p.charCodeAt(h), r) {
3766
3766
  case Dr:
3767
3767
  case jt:
3768
3768
  case _r:
3769
3769
  case Nr:
3770
3770
  case Pr:
3771
- s = p;
3771
+ s = h;
3772
3772
  do
3773
- s += 1, r = h.charCodeAt(s);
3773
+ s += 1, r = p.charCodeAt(s);
3774
3774
  while (r === jt || r === Dr || r === _r || r === Nr || r === Pr);
3775
- d = ["space", h.slice(p, s)], p = s - 1;
3775
+ d = ["space", p.slice(h, s)], h = s - 1;
3776
3776
  break;
3777
3777
  case am:
3778
3778
  case lm:
@@ -3782,57 +3782,57 @@ let bm = Vs, vm = function(e, t = {}) {
3782
3782
  case hm:
3783
3783
  case um: {
3784
3784
  let O = String.fromCharCode(r);
3785
- d = [O, O, p];
3785
+ d = [O, O, h];
3786
3786
  break;
3787
3787
  }
3788
3788
  case cm:
3789
- if (c = C.length ? C.pop()[1] : "", u = h.charCodeAt(p + 1), c === "url" && u !== cn && u !== pa && u !== jt && u !== Dr && u !== _r && u !== Pr && u !== Nr) {
3790
- s = p;
3789
+ if (c = C.length ? C.pop()[1] : "", u = p.charCodeAt(h + 1), c === "url" && u !== cn && u !== pa && u !== jt && u !== Dr && u !== _r && u !== Pr && u !== Nr) {
3790
+ s = h;
3791
3791
  do {
3792
- if (o = !1, s = h.indexOf(")", s + 1), s === -1) {
3792
+ if (o = !1, s = p.indexOf(")", s + 1), s === -1) {
3793
3793
  if (f || I) {
3794
- s = p;
3794
+ s = h;
3795
3795
  break;
3796
3796
  }
3797
3797
  g("bracket");
3798
3798
  }
3799
- for (l = s; h.charCodeAt(l - 1) === Ur; ) l -= 1, o = !o;
3799
+ for (l = s; p.charCodeAt(l - 1) === Ur; ) l -= 1, o = !o;
3800
3800
  } while (o);
3801
- d = ["brackets", h.slice(p, s + 1), p, s], p = s;
3802
- } else s = h.indexOf(")", p + 1), i = h.slice(p, s + 1), s === -1 || ym.test(i) ? d = ["(", "(", p] : (d = ["brackets", i, p, s], p = s);
3801
+ d = ["brackets", p.slice(h, s + 1), h, s], h = s;
3802
+ } else s = p.indexOf(")", h + 1), i = p.slice(h, s + 1), s === -1 || ym.test(i) ? d = ["(", "(", h] : (d = ["brackets", i, h, s], h = s);
3803
3803
  break;
3804
3804
  case cn:
3805
3805
  case pa:
3806
- n = r === cn ? "'" : '"', s = p;
3806
+ n = r === cn ? "'" : '"', s = h;
3807
3807
  do {
3808
- if (o = !1, s = h.indexOf(n, s + 1), s === -1) {
3808
+ if (o = !1, s = p.indexOf(n, s + 1), s === -1) {
3809
3809
  if (f || I) {
3810
- s = p + 1;
3810
+ s = h + 1;
3811
3811
  break;
3812
3812
  }
3813
3813
  g("string");
3814
3814
  }
3815
- for (l = s; h.charCodeAt(l - 1) === Ur; ) l -= 1, o = !o;
3815
+ for (l = s; p.charCodeAt(l - 1) === Ur; ) l -= 1, o = !o;
3816
3816
  } while (o);
3817
- d = ["string", h.slice(p, s + 1), p, s], p = s;
3817
+ d = ["string", p.slice(h, s + 1), h, s], h = s;
3818
3818
  break;
3819
3819
  case gm:
3820
- Fr.lastIndex = p + 1, Fr.test(h), s = Fr.lastIndex === 0 ? h.length - 1 : Fr.lastIndex - 2, d = ["at-word", h.slice(p, s + 1), p, s], p = s;
3820
+ Fr.lastIndex = h + 1, Fr.test(p), s = Fr.lastIndex === 0 ? p.length - 1 : Fr.lastIndex - 2, d = ["at-word", p.slice(h, s + 1), h, s], h = s;
3821
3821
  break;
3822
3822
  case Ur:
3823
- for (s = p, a = !0; h.charCodeAt(s + 1) === Ur; ) s += 1, a = !a;
3824
- if (r = h.charCodeAt(s + 1), a && r !== ha && r !== jt && r !== Dr && r !== _r && r !== Nr && r !== Pr && (s += 1, ma.test(h.charAt(s)))) {
3825
- for (; ma.test(h.charAt(s + 1)); ) s += 1;
3826
- h.charCodeAt(s + 1) === jt && (s += 1);
3823
+ for (s = h, a = !0; p.charCodeAt(s + 1) === Ur; ) s += 1, a = !a;
3824
+ if (r = p.charCodeAt(s + 1), a && r !== ha && r !== jt && r !== Dr && r !== _r && r !== Nr && r !== Pr && (s += 1, ma.test(p.charAt(s)))) {
3825
+ for (; ma.test(p.charAt(s + 1)); ) s += 1;
3826
+ p.charCodeAt(s + 1) === jt && (s += 1);
3827
3827
  }
3828
- d = ["word", h.slice(p, s + 1), p, s], p = s;
3828
+ d = ["word", p.slice(h, s + 1), h, s], h = s;
3829
3829
  break;
3830
3830
  default:
3831
- r === ha && h.charCodeAt(p + 1) === mm ? (s = h.indexOf("*/", p + 2) + 1, s === 0 && (f || I ? s = h.length : g("comment")), d = ["comment", h.slice(p, s + 1), p, s], p = s) : (Br.lastIndex = p + 1, Br.test(h), s = Br.lastIndex === 0 ? h.length - 1 : Br.lastIndex - 2, d = ["word", h.slice(p, s + 1), p, s], C.push(d), p = s);
3831
+ r === ha && p.charCodeAt(h + 1) === mm ? (s = p.indexOf("*/", h + 2) + 1, s === 0 && (f || I ? s = p.length : g("comment")), d = ["comment", p.slice(h, s + 1), h, s], h = s) : (Br.lastIndex = h + 1, Br.test(p), s = Br.lastIndex === 0 ? p.length - 1 : Br.lastIndex - 2, d = ["word", p.slice(h, s + 1), h, s], C.push(d), h = s);
3832
3832
  }
3833
- return p++, d;
3833
+ return h++, d;
3834
3834
  }, position: function() {
3835
- return p;
3835
+ return h;
3836
3836
  } };
3837
3837
  }, Sm = Gs, Im = Ji, Cm = yr, fa = Ki;
3838
3838
  const ga = { empty: !0, space: !0 };
@@ -4033,7 +4033,7 @@ var km = class {
4033
4033
  let n, i, a, o, l = r.length, c = "", u = !0;
4034
4034
  for (let d = 0; d < l; d += 1) n = r[d], i = n[0], i !== "space" || d !== l - 1 || s ? i === "comment" ? (o = r[d - 1] ? r[d - 1][0] : "empty", a = r[d + 1] ? r[d + 1][0] : "empty", ga[o] || ga[a] || c.slice(-1) === "," ? u = !1 : c += n[1]) : c += n[1] : u = !1;
4035
4035
  if (!u) {
4036
- let d = r.reduce((h, f) => h + f[1], "");
4036
+ let d = r.reduce((p, f) => p + f[1], "");
4037
4037
  e.raws[t] = { raw: d, value: c };
4038
4038
  }
4039
4039
  e[t] = c;
@@ -4080,7 +4080,7 @@ var km = class {
4080
4080
  throw this.input.error("At-rule without name", { offset: t[2] }, { offset: t[2] + t[1].length });
4081
4081
  }
4082
4082
  };
4083
- let Em = wt, xm = km, Tm = Hs;
4083
+ let Em = yt, xm = km, Tm = Hs;
4084
4084
  function os(e, t) {
4085
4085
  let r = new Tm(e, t), s = new xm(r);
4086
4086
  try {
@@ -4092,7 +4092,7 @@ function os(e, t) {
4092
4092
  }
4093
4093
  var Zi = os;
4094
4094
  os.default = os, Em.registerParse(os);
4095
- let { isClean: Fe, my: Rm } = cr, Lm = fc, Om = js, Am = wt, Mm = Yi, ya = qi, Um = Zi, Dm = yr;
4095
+ let { isClean: Fe, my: Rm } = cr, Lm = fc, Om = js, Am = yt, Mm = Yi, ya = qi, Um = Zi, Dm = yr;
4096
4096
  const Pm = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, _m = { AtRule: !0, AtRuleExit: !0, Comment: !0, CommentExit: !0, Declaration: !0, DeclarationExit: !0, Document: !0, DocumentExit: !0, Once: !0, OnceExit: !0, postcssPlugin: !0, prepare: !0, Root: !0, RootExit: !0, Rule: !0, RuleExit: !0 }, Nm = { Once: !0, postcssPlugin: !0, prepare: !0 };
4097
4097
  function Wt(e) {
4098
4098
  return typeof e == "object" && typeof e.then == "function";
@@ -4441,11 +4441,11 @@ function pr(e, t) {
4441
4441
  }
4442
4442
  var tf = pr;
4443
4443
  pr.default = pr;
4444
- let rf = Hi, ba = Vs, sf = _c, nf = wt, ii = Ym, of = js, af = tf, va = Yi, lf = Tc, Sa = Gs, Ia = Ji, cf = qi, uf = Hs, df = Zi, pf = Mc, Ca = Ki, ka = yr, hf = Ws;
4445
- function Z(...e) {
4444
+ let rf = Hi, ba = Vs, sf = _c, nf = yt, ii = Ym, of = js, af = tf, va = Yi, lf = Tc, Sa = Gs, Ia = Ji, cf = qi, uf = Hs, df = Zi, pf = Mc, Ca = Ki, ka = yr, hf = Ws;
4445
+ function X(...e) {
4446
4446
  return e.length === 1 && Array.isArray(e[0]) && (e = e[0]), new ii(e);
4447
4447
  }
4448
- Z.plugin = function(e, t) {
4448
+ X.plugin = function(e, t) {
4449
4449
  let r, s = !1;
4450
4450
  function n(...i) {
4451
4451
  console && console.warn && !s && (s = !0, console.warn(e + `: postcss.plugin was deprecated. Migration guide:
@@ -4455,16 +4455,16 @@ https://www.w3ctech.com/topic/2226`));
4455
4455
  return a.postcssPlugin = e, a.postcssVersion = new ii().version, a;
4456
4456
  }
4457
4457
  return Object.defineProperty(n, "postcss", { get: () => (r || (r = n()), r) }), n.process = function(i, a, o) {
4458
- return Z([n(o)]).process(i, a);
4458
+ return X([n(o)]).process(i, a);
4459
4459
  }, n;
4460
- }, Z.stringify = of, Z.parse = df, Z.fromJSON = af, Z.list = pf, Z.comment = (e) => new Sa(e), Z.atRule = (e) => new Ia(e), Z.decl = (e) => new ba(e), Z.rule = (e) => new Ca(e), Z.root = (e) => new ka(e), Z.document = (e) => new va(e), Z.CssSyntaxError = rf, Z.Declaration = ba, Z.Container = nf, Z.Processor = ii, Z.Document = va, Z.Comment = Sa, Z.Warning = lf, Z.AtRule = Ia, Z.Result = cf, Z.Input = uf, Z.Rule = Ca, Z.Root = ka, Z.Node = hf, sf.registerPostcss(Z);
4461
- var mf = Z;
4462
- Z.default = Z;
4460
+ }, X.stringify = of, X.parse = df, X.fromJSON = af, X.list = pf, X.comment = (e) => new Sa(e), X.atRule = (e) => new Ia(e), X.decl = (e) => new ba(e), X.rule = (e) => new Ca(e), X.root = (e) => new ka(e), X.document = (e) => new va(e), X.CssSyntaxError = rf, X.Declaration = ba, X.Container = nf, X.Processor = ii, X.Document = va, X.Comment = Sa, X.Warning = lf, X.AtRule = Ia, X.Result = cf, X.Input = uf, X.Rule = Ca, X.Root = ka, X.Node = hf, sf.registerPostcss(X);
4461
+ var mf = X;
4462
+ X.default = X;
4463
4463
  const ce = _h(mf);
4464
4464
  ce.stringify, ce.fromJSON, ce.plugin, ce.parse, ce.list, ce.document, ce.comment, ce.atRule, ce.rule, ce.decl, ce.root, ce.CssSyntaxError, ce.Declaration, ce.Container, ce.Processor, ce.Document, ce.Comment, ce.Warning, ce.AtRule, ce.Result, ce.Input, ce.Rule, ce.Root, ce.Node;
4465
4465
  class Xi {
4466
4466
  constructor(...t) {
4467
- Re(this, "parentElement", null), Re(this, "parentNode", null), Re(this, "ownerDocument"), Re(this, "firstChild", null), Re(this, "lastChild", null), Re(this, "previousSibling", null), Re(this, "nextSibling", null), Re(this, "ELEMENT_NODE", 1), Re(this, "TEXT_NODE", 3), Re(this, "nodeType"), Re(this, "nodeName"), Re(this, "RRNodeType");
4467
+ Le(this, "parentElement", null), Le(this, "parentNode", null), Le(this, "ownerDocument"), Le(this, "firstChild", null), Le(this, "lastChild", null), Le(this, "previousSibling", null), Le(this, "nextSibling", null), Le(this, "ELEMENT_NODE", 1), Le(this, "TEXT_NODE", 3), Le(this, "nodeType"), Le(this, "nodeName"), Le(this, "RRNodeType");
4468
4468
  }
4469
4469
  get childNodes() {
4470
4470
  const t = [];
@@ -4517,7 +4517,7 @@ function Qi(e) {
4517
4517
  }
4518
4518
  }
4519
4519
  const un = {};
4520
- function tt(e, t, r) {
4520
+ function et(e, t, r) {
4521
4521
  var s;
4522
4522
  const n = `${e}.${String(r)}`;
4523
4523
  if (un[n]) return un[n].call(t);
@@ -4535,29 +4535,29 @@ function Nc() {
4535
4535
  return Qi("MutationObserver").constructor;
4536
4536
  }
4537
4537
  const V = { childNodes: function(e) {
4538
- return tt("Node", e, "childNodes");
4538
+ return et("Node", e, "childNodes");
4539
4539
  }, parentNode: function(e) {
4540
- return tt("Node", e, "parentNode");
4540
+ return et("Node", e, "parentNode");
4541
4541
  }, parentElement: function(e) {
4542
- return tt("Node", e, "parentElement");
4542
+ return et("Node", e, "parentElement");
4543
4543
  }, textContent: function(e) {
4544
- return tt("Node", e, "textContent");
4544
+ return et("Node", e, "textContent");
4545
4545
  }, contains: function(e, t) {
4546
4546
  return Ta("Node", e, "contains")(t);
4547
4547
  }, getRootNode: function(e) {
4548
4548
  return Ta("Node", e, "getRootNode")();
4549
4549
  }, host: function(e) {
4550
- return e && "host" in e ? tt("ShadowRoot", e, "host") : null;
4550
+ return e && "host" in e ? et("ShadowRoot", e, "host") : null;
4551
4551
  }, styleSheets: function(e) {
4552
4552
  return e.styleSheets;
4553
4553
  }, shadowRoot: function(e) {
4554
- return e && "shadowRoot" in e ? tt("Element", e, "shadowRoot") : null;
4554
+ return e && "shadowRoot" in e ? et("Element", e, "shadowRoot") : null;
4555
4555
  }, querySelector: function(e, t) {
4556
- return tt("Element", e, "querySelector")(t);
4556
+ return et("Element", e, "querySelector")(t);
4557
4557
  }, querySelectorAll: function(e, t) {
4558
- return tt("Element", e, "querySelectorAll")(t);
4558
+ return et("Element", e, "querySelectorAll")(t);
4559
4559
  }, mutationObserver: Nc };
4560
- function ve(e, t, r = document) {
4560
+ function Se(e, t, r = document) {
4561
4561
  const s = { capture: !0, passive: !0 };
4562
4562
  return r.addEventListener(e, t, s), () => r.removeEventListener(e, t, s);
4563
4563
  }
@@ -4617,7 +4617,7 @@ function zc() {
4617
4617
  function jc(e) {
4618
4618
  return e ? e.nodeType === e.ELEMENT_NODE ? e : V.parentElement(e) : null;
4619
4619
  }
4620
- function Se(e, t, r, s) {
4620
+ function Ie(e, t, r, s) {
4621
4621
  if (!e) return !1;
4622
4622
  const n = jc(e);
4623
4623
  if (!n) return !1;
@@ -4696,7 +4696,7 @@ function $c(e) {
4696
4696
  const t = e.ownerDocument;
4697
4697
  return !!t && (V.contains(t, e) || gf(e));
4698
4698
  }
4699
- var Y = ((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))(Y || {}), G = ((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))(G || {}), Ce = ((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))(Ce || {}), Ge = ((e) => (e[e.Mouse = 0] = "Mouse", e[e.Pen = 1] = "Pen", e[e.Touch = 2] = "Touch", e))(Ge || {}), Ct = ((e) => (e[e["2D"] = 0] = "2D", e[e.WebGL = 1] = "WebGL", e[e.WebGL2 = 2] = "WebGL2", e))(Ct || {}), kt = ((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))(kt || {});
4699
+ var $ = ((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))($ || {}), H = ((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))(H || {}), Ce = ((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))(Ce || {}), Ge = ((e) => (e[e.Mouse = 0] = "Mouse", e[e.Pen = 1] = "Pen", e[e.Touch = 2] = "Touch", e))(Ge || {}), Ct = ((e) => (e[e["2D"] = 0] = "2D", e[e.WebGL = 1] = "WebGL", e[e.WebGL2 = 2] = "WebGL2", e))(Ct || {}), kt = ((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))(kt || {});
4700
4700
  function La(e) {
4701
4701
  return "__ln" in e;
4702
4702
  }
@@ -4742,14 +4742,14 @@ class wf {
4742
4742
  if (!c || !$c(l) || c.tagName === "TEXTAREA") return;
4743
4743
  const u = Zt(c) ? this.mirror.getId(Gc(l)) : this.mirror.getId(c), d = n(l);
4744
4744
  if (u === -1 || d === -1) return s.addNode(l);
4745
- const h = Et(l, { doc: this.doc, mirror: this.mirror, blockClass: this.blockClass, blockSelector: this.blockSelector, maskTextClass: this.maskTextClass, maskTextSelector: this.maskTextSelector, skipChild: !0, newlyAddedElement: !0, inlineStylesheet: this.inlineStylesheet, maskInputOptions: this.maskInputOptions, maskTextFn: this.maskTextFn, maskInputFn: this.maskInputFn, slimDOMOptions: this.slimDOMOptions, dataURLOptions: this.dataURLOptions, recordCanvas: this.recordCanvas, inlineImages: this.inlineImages, onSerialize: (f) => {
4745
+ const p = Et(l, { doc: this.doc, mirror: this.mirror, blockClass: this.blockClass, blockSelector: this.blockSelector, maskTextClass: this.maskTextClass, maskTextSelector: this.maskTextSelector, skipChild: !0, newlyAddedElement: !0, inlineStylesheet: this.inlineStylesheet, maskInputOptions: this.maskInputOptions, maskTextFn: this.maskTextFn, maskInputFn: this.maskInputFn, slimDOMOptions: this.slimDOMOptions, dataURLOptions: this.dataURLOptions, recordCanvas: this.recordCanvas, inlineImages: this.inlineImages, onSerialize: (f) => {
4746
4746
  Vc(f, this.mirror) && this.iframeManager.addIframe(f), Hc(f, this.mirror) && this.stylesheetManager.trackLinkElement(f), ai(l) && this.shadowDomManager.addShadowRoot(V.shadowRoot(l), this.doc);
4747
4747
  }, onIframeLoad: (f, w) => {
4748
4748
  this.iframeManager.attachIframe(f, w), this.shadowDomManager.observeAttachShadow(f);
4749
4749
  }, onStylesheetLoad: (f, w) => {
4750
4750
  this.stylesheetManager.attachLinkElement(f, w);
4751
4751
  } });
4752
- h && (t.push({ parentId: u, nextId: d, node: h }), r.add(h.id));
4752
+ p && (t.push({ parentId: u, nextId: d, node: p }), r.add(p.id));
4753
4753
  };
4754
4754
  for (; this.mapRemoves.length; ) this.mirror.removeNodeFromMap(this.mapRemoves.shift());
4755
4755
  for (const l of this.movedSet) Aa(this.removes, l, this.mirror) && !this.movedSet.has(V.parentNode(l)) || i(l);
@@ -4773,7 +4773,7 @@ class wf {
4773
4773
  break;
4774
4774
  }
4775
4775
  {
4776
- const h = u.value, f = V.parentNode(h);
4776
+ const p = u.value, f = V.parentNode(p);
4777
4777
  if (f && f.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
4778
4778
  const w = V.host(f);
4779
4779
  if (this.mirror.getId(w) !== -1) {
@@ -4810,7 +4810,7 @@ class wf {
4810
4810
  if (!pn(t.target, this.mirror, this.slimDOMOptions)) switch (t.type) {
4811
4811
  case "characterData": {
4812
4812
  const r = V.textContent(t.target);
4813
- Se(t.target, this.blockClass, this.blockSelector, !1) || r === t.oldValue || this.texts.push({ value: Ml(t.target, this.maskTextClass, this.maskTextSelector, !0) && r ? this.maskTextFn ? this.maskTextFn(r, jc(t.target)) : r.replace(/[\S]/g, "*") : r, node: t.target });
4813
+ Ie(t.target, this.blockClass, this.blockSelector, !1) || r === t.oldValue || this.texts.push({ value: Ml(t.target, this.maskTextClass, this.maskTextSelector, !0) && r ? this.maskTextFn ? this.maskTextFn(r, jc(t.target)) : r.replace(/[\S]/g, "*") : r, node: t.target });
4814
4814
  break;
4815
4815
  }
4816
4816
  case "attributes": {
@@ -4820,13 +4820,13 @@ class wf {
4820
4820
  const a = Di(r);
4821
4821
  n = Ui({ element: r, maskInputOptions: this.maskInputOptions, tagName: r.tagName, type: a, value: n, maskInputFn: this.maskInputFn });
4822
4822
  }
4823
- if (Se(t.target, this.blockClass, this.blockSelector, !1) || n === t.oldValue) return;
4823
+ if (Ie(t.target, this.blockClass, this.blockSelector, !1) || n === t.oldValue) return;
4824
4824
  let i = this.attributeMap.get(t.target);
4825
4825
  if (r.tagName === "IFRAME" && s === "src" && !this.keepIframeSrcFn(n)) {
4826
4826
  if (r.contentDocument) return;
4827
4827
  s = "rr_src";
4828
4828
  }
4829
- if (i || (i = { node: t.target, attributes: {}, styleDiff: {}, _unchangedStyles: {} }, this.attributes.push(i), this.attributeMap.set(t.target, i)), s === "type" && r.tagName === "INPUT" && (t.oldValue || "").toLowerCase() === "password" && r.setAttribute("data-rr-is-password", "true"), !Al(r.tagName, s)) if (i.attributes[s] = Ol(this.doc, ft(r.tagName), ft(s), n), s === "style") {
4829
+ if (i || (i = { node: t.target, attributes: {}, styleDiff: {}, _unchangedStyles: {} }, this.attributes.push(i), this.attributeMap.set(t.target, i)), s === "type" && r.tagName === "INPUT" && (t.oldValue || "").toLowerCase() === "password" && r.setAttribute("data-rr-is-password", "true"), !Al(r.tagName, s)) if (i.attributes[s] = Ol(this.doc, mt(r.tagName), mt(s), n), s === "style") {
4830
4830
  if (!this.unattachedDoc) try {
4831
4831
  this.unattachedDoc = document.implementation.createHTMLDocument();
4832
4832
  } catch {
@@ -4843,11 +4843,11 @@ class wf {
4843
4843
  break;
4844
4844
  }
4845
4845
  case "childList":
4846
- if (Se(t.target, this.blockClass, this.blockSelector, !0)) return;
4846
+ if (Ie(t.target, this.blockClass, this.blockSelector, !0)) return;
4847
4847
  if (t.target.tagName === "TEXTAREA") return void this.genTextAreaValueMutation(t.target);
4848
4848
  t.addedNodes.forEach((r) => this.genAdds(r, t.target)), t.removedNodes.forEach((r) => {
4849
4849
  const s = this.mirror.getId(r), n = Zt(t.target) ? this.mirror.getId(V.host(t.target)) : this.mirror.getId(t.target);
4850
- Se(t.target, this.blockClass, this.blockSelector, !1) || pn(r, this.mirror, this.slimDOMOptions) || !function(i, a) {
4850
+ Ie(t.target, this.blockClass, this.blockSelector, !1) || pn(r, this.mirror, this.slimDOMOptions) || !function(i, a) {
4851
4851
  return a.getId(i) !== -1;
4852
4852
  }(r, this.mirror) || (this.addedSet.has(r) ? (li(this.addedSet, r), this.droppedSet.add(r)) : this.addedSet.has(t.target) && s === -1 || Wc(t.target, this.mirror) || (this.movedSet.has(r) && this.movedMap[Oa(s, n)] ? li(this.movedSet, r) : this.removes.push({ parentId: n, id: s, isShadow: !(!Zt(t.target) || !Xt(t.target)) || void 0 })), this.mapRemoves.push(r));
4853
4853
  });
@@ -4860,7 +4860,7 @@ class wf {
4860
4860
  let s = null;
4861
4861
  r && this.mirror.hasNode(r) && (s = this.mirror.getId(r)), s && s !== -1 && (this.movedMap[Oa(this.mirror.getId(t), s)] = !0);
4862
4862
  } else this.addedSet.add(t), this.droppedSet.delete(t);
4863
- Se(t, this.blockClass, this.blockSelector, !1) || (V.childNodes(t).forEach((s) => this.genAdds(s)), ai(t) && V.childNodes(V.shadowRoot(t)).forEach((s) => {
4863
+ Ie(t, this.blockClass, this.blockSelector, !1) || (V.childNodes(t).forEach((s) => this.genAdds(s)), ai(t) && V.childNodes(V.shadowRoot(t)).forEach((s) => {
4864
4864
  this.processedNodeManager.add(s, this), this.genAdds(s, t);
4865
4865
  }));
4866
4866
  }
@@ -4912,14 +4912,14 @@ function Yc(e, t) {
4912
4912
  return !!r && (!!e.has(r) || Yc(e, r));
4913
4913
  }
4914
4914
  let Qt;
4915
- const $ = (e) => Qt ? (...t) => {
4915
+ const G = (e) => Qt ? (...t) => {
4916
4916
  try {
4917
4917
  return e(...t);
4918
4918
  } catch (r) {
4919
4919
  if (Qt && Qt(r) === !0) return;
4920
4920
  throw r;
4921
4921
  }
4922
- } : e, mt = [];
4922
+ } : e, ht = [];
4923
4923
  function er(e) {
4924
4924
  try {
4925
4925
  if ("composedPath" in e) {
@@ -4932,8 +4932,8 @@ function er(e) {
4932
4932
  }
4933
4933
  function qc(e, t) {
4934
4934
  const r = new wf();
4935
- mt.push(r), r.init(e);
4936
- const s = new (Nc())($(r.processMutations.bind(r)));
4935
+ ht.push(r), r.init(e);
4936
+ const s = new (Nc())(G(r.processMutations.bind(r)));
4937
4937
  return s.observe(t, { attributes: !0, attributeOldValue: !0, characterData: !0, characterDataOldValue: !0, childList: !0, subtree: !0 }), s;
4938
4938
  }
4939
4939
  function bf({ mouseInteractionCb: e, doc: t, mirror: r, blockClass: s, blockSelector: n, sampling: i }) {
@@ -4942,29 +4942,29 @@ function bf({ mouseInteractionCb: e, doc: t, mirror: r, blockClass: s, blockSele
4942
4942
  const a = i.mouseInteraction === !0 || i.mouseInteraction === void 0 ? {} : i.mouseInteraction, o = [];
4943
4943
  let l = null;
4944
4944
  return Object.keys(Ce).filter((c) => Number.isNaN(Number(c)) && !c.endsWith("_Departed") && a[c] !== !1).forEach((c) => {
4945
- let u = ft(c);
4946
- const d = /* @__PURE__ */ ((h) => (f) => {
4945
+ let u = mt(c);
4946
+ const d = /* @__PURE__ */ ((p) => (f) => {
4947
4947
  const w = er(f);
4948
- if (Se(w, s, n, !0)) return;
4949
- let p = null, C = h;
4948
+ if (Ie(w, s, n, !0)) return;
4949
+ let h = null, C = p;
4950
4950
  if ("pointerType" in f) {
4951
4951
  switch (f.pointerType) {
4952
4952
  case "mouse":
4953
- p = Ge.Mouse;
4953
+ h = Ge.Mouse;
4954
4954
  break;
4955
4955
  case "touch":
4956
- p = Ge.Touch;
4956
+ h = Ge.Touch;
4957
4957
  break;
4958
4958
  case "pen":
4959
- p = Ge.Pen;
4959
+ h = Ge.Pen;
4960
4960
  }
4961
- p === Ge.Touch ? Ce[h] === Ce.MouseDown ? C = "TouchStart" : Ce[h] === Ce.MouseUp && (C = "TouchEnd") : Ge.Pen;
4962
- } else oi(f) && (p = Ge.Touch);
4963
- p !== null ? (l = p, (C.startsWith("Touch") && p === Ge.Touch || C.startsWith("Mouse") && p === Ge.Mouse) && (p = null)) : Ce[h] === Ce.Click && (p = l, l = null);
4961
+ h === Ge.Touch ? Ce[p] === Ce.MouseDown ? C = "TouchStart" : Ce[p] === Ce.MouseUp && (C = "TouchEnd") : Ge.Pen;
4962
+ } else oi(f) && (h = Ge.Touch);
4963
+ h !== null ? (l = h, (C.startsWith("Touch") && h === Ge.Touch || C.startsWith("Mouse") && h === Ge.Mouse) && (h = null)) : Ce[p] === Ce.Click && (h = l, l = null);
4964
4964
  const m = oi(f) ? f.changedTouches[0] : f;
4965
4965
  if (!m) return;
4966
4966
  const g = r.getId(w), { clientX: v, clientY: I } = m;
4967
- $(e)({ type: Ce[C], id: g, x: v, y: I, ...p !== null && { pointerType: p } });
4967
+ G(e)({ type: Ce[C], id: g, x: v, y: I, ...h !== null && { pointerType: h } });
4968
4968
  })(c);
4969
4969
  if (window.PointerEvent) switch (Ce[c]) {
4970
4970
  case Ce.MouseDown:
@@ -4975,15 +4975,15 @@ function bf({ mouseInteractionCb: e, doc: t, mirror: r, blockClass: s, blockSele
4975
4975
  case Ce.TouchEnd:
4976
4976
  return;
4977
4977
  }
4978
- o.push(ve(u, d, t));
4979
- }), $(() => {
4978
+ o.push(Se(u, d, t));
4979
+ }), G(() => {
4980
4980
  o.forEach((c) => c());
4981
4981
  });
4982
4982
  }
4983
4983
  function Jc({ scrollCb: e, doc: t, mirror: r, blockClass: s, blockSelector: n, sampling: i }) {
4984
- return ve("scroll", $($t($((a) => {
4984
+ return Se("scroll", G($t(G((a) => {
4985
4985
  const o = er(a);
4986
- if (!o || Se(o, s, n, !0)) return;
4986
+ if (!o || Ie(o, s, n, !0)) return;
4987
4987
  const l = r.getId(o);
4988
4988
  if (o === t && t.defaultView) {
4989
4989
  const c = Fc(t.defaultView);
@@ -5004,7 +5004,7 @@ function jr(e) {
5004
5004
  return r;
5005
5005
  }(e, []);
5006
5006
  }
5007
- function rt(e, t, r) {
5007
+ function tt(e, t, r) {
5008
5008
  let s, n;
5009
5009
  return e ? (e.ownerNode ? s = t.getId(e.ownerNode) : n = r.getId(e), { styleId: n, id: s }) : {};
5010
5010
  }
@@ -5024,7 +5024,7 @@ function Kc({ mirror: e, stylesheetManager: t }, r) {
5024
5024
  } catch {
5025
5025
  }
5026
5026
  return d;
5027
- } }), $(() => {
5027
+ } }), G(() => {
5028
5028
  Object.defineProperty(r, "adoptedStyleSheets", { configurable: l.configurable, enumerable: l.enumerable, get: l.get, set: l.set });
5029
5029
  })) : () => {
5030
5030
  };
@@ -5035,7 +5035,7 @@ function Sf(e, t = {}) {
5035
5035
  };
5036
5036
  let s;
5037
5037
  (function(m, g) {
5038
- const { mutationCb: v, mousemoveCb: I, mouseInteractionCb: O, scrollCb: E, viewportResizeCb: A, inputCb: M, mediaInteractionCb: k, styleSheetRuleCb: T, styleDeclarationCb: R, canvasMutationCb: S, fontCb: P, selectionCb: D, customElementCb: b } = m;
5038
+ const { mutationCb: v, mousemoveCb: I, mouseInteractionCb: O, scrollCb: E, viewportResizeCb: U, inputCb: A, mediaInteractionCb: k, styleSheetRuleCb: L, styleDeclarationCb: R, canvasMutationCb: S, fontCb: P, selectionCb: M, customElementCb: b } = m;
5039
5039
  m.mutationCb = (...y) => {
5040
5040
  g.mutation && g.mutation(...y), v(...y);
5041
5041
  }, m.mousemoveCb = (...y) => {
@@ -5045,13 +5045,13 @@ function Sf(e, t = {}) {
5045
5045
  }, m.scrollCb = (...y) => {
5046
5046
  g.scroll && g.scroll(...y), E(...y);
5047
5047
  }, m.viewportResizeCb = (...y) => {
5048
- g.viewportResize && g.viewportResize(...y), A(...y);
5048
+ g.viewportResize && g.viewportResize(...y), U(...y);
5049
5049
  }, m.inputCb = (...y) => {
5050
- g.input && g.input(...y), M(...y);
5050
+ g.input && g.input(...y), A(...y);
5051
5051
  }, m.mediaInteractionCb = (...y) => {
5052
5052
  g.mediaInteaction && g.mediaInteaction(...y), k(...y);
5053
5053
  }, m.styleSheetRuleCb = (...y) => {
5054
- g.styleSheetRule && g.styleSheetRule(...y), T(...y);
5054
+ g.styleSheetRule && g.styleSheetRule(...y), L(...y);
5055
5055
  }, m.styleDeclarationCb = (...y) => {
5056
5056
  g.styleDeclaration && g.styleDeclaration(...y), R(...y);
5057
5057
  }, m.canvasMutationCb = (...y) => {
@@ -5059,7 +5059,7 @@ function Sf(e, t = {}) {
5059
5059
  }, m.fontCb = (...y) => {
5060
5060
  g.font && g.font(...y), P(...y);
5061
5061
  }, m.selectionCb = (...y) => {
5062
- g.selection && g.selection(...y), D(...y);
5062
+ g.selection && g.selection(...y), M(...y);
5063
5063
  }, m.customElementCb = (...y) => {
5064
5064
  g.customElement && g.customElement(...y), b(...y);
5065
5065
  };
@@ -5068,188 +5068,188 @@ function Sf(e, t = {}) {
5068
5068
  if (g.mousemove === !1) return () => {
5069
5069
  };
5070
5070
  const O = typeof g.mousemove == "number" ? g.mousemove : 50, E = typeof g.mousemoveCallback == "number" ? g.mousemoveCallback : 500;
5071
- let A, M = [];
5072
- const k = $t($((S) => {
5073
- const P = Date.now() - A;
5074
- m(M.map((D) => (D.timeOffset -= P, D)), S), M = [], A = null;
5075
- }), E), T = $($t($((S) => {
5076
- const P = er(S), { clientX: D, clientY: b } = oi(S) ? S.changedTouches[0] : S;
5077
- A || (A = ws()), M.push({ x: D, y: b, id: I.getId(P), timeOffset: ws() - A }), k(typeof DragEvent < "u" && S instanceof DragEvent ? G.Drag : S instanceof MouseEvent ? G.MouseMove : G.TouchMove);
5078
- }), O, { trailing: !1 })), R = [ve("mousemove", T, v), ve("touchmove", T, v), ve("drag", T, v)];
5079
- return $(() => {
5071
+ let U, A = [];
5072
+ const k = $t(G((S) => {
5073
+ const P = Date.now() - U;
5074
+ m(A.map((M) => (M.timeOffset -= P, M)), S), A = [], U = null;
5075
+ }), E), L = G($t(G((S) => {
5076
+ const P = er(S), { clientX: M, clientY: b } = oi(S) ? S.changedTouches[0] : S;
5077
+ U || (U = ws()), A.push({ x: M, y: b, id: I.getId(P), timeOffset: ws() - U }), k(typeof DragEvent < "u" && S instanceof DragEvent ? H.Drag : S instanceof MouseEvent ? H.MouseMove : H.TouchMove);
5078
+ }), O, { trailing: !1 })), R = [Se("mousemove", L, v), Se("touchmove", L, v), Se("drag", L, v)];
5079
+ return G(() => {
5080
5080
  R.forEach((S) => S());
5081
5081
  });
5082
5082
  }(e), i = bf(e), a = Jc(e), o = function({ viewportResizeCb: m }, { win: g }) {
5083
5083
  let v = -1, I = -1;
5084
- return ve("resize", $($t($(() => {
5084
+ return Se("resize", G($t(G(() => {
5085
5085
  const O = Bc(), E = zc();
5086
5086
  v === O && I === E || (m({ width: Number(E), height: Number(O) }), v = O, I = E);
5087
5087
  }), 200)), g);
5088
- }(e, { win: r }), l = function({ inputCb: m, doc: g, mirror: v, blockClass: I, blockSelector: O, ignoreClass: E, ignoreSelector: A, maskInputOptions: M, maskInputFn: k, sampling: T, userTriggeredOnInput: R }) {
5089
- function S(F) {
5090
- let j = er(F);
5091
- const L = F.isTrusted, _ = j && j.tagName;
5092
- if (j && _ === "OPTION" && (j = V.parentElement(j)), !j || !_ || vf.indexOf(_) < 0 || Se(j, I, O, !0) || j.classList.contains(E) || A && j.matches(A)) return;
5093
- let ee = j.value, q = !1;
5094
- const me = Di(j) || "";
5095
- me === "radio" || me === "checkbox" ? q = j.checked : (M[_.toLowerCase()] || M[me]) && (ee = Ui({ element: j, maskInputOptions: M, tagName: _, type: me, value: ee, maskInputFn: k })), P(j, R ? { text: ee, isChecked: q, userTriggered: L } : { text: ee, isChecked: q });
5096
- const _e = j.name;
5097
- me === "radio" && _e && q && g.querySelectorAll(`input[type="radio"][name="${_e}"]`).forEach((we) => {
5098
- if (we !== j) {
5099
- const H = we.value;
5100
- P(we, R ? { text: H, isChecked: !q, userTriggered: !1 } : { text: H, isChecked: !q });
5088
+ }(e, { win: r }), l = function({ inputCb: m, doc: g, mirror: v, blockClass: I, blockSelector: O, ignoreClass: E, ignoreSelector: U, maskInputOptions: A, maskInputFn: k, sampling: L, userTriggeredOnInput: R }) {
5089
+ function S(_) {
5090
+ let W = er(_);
5091
+ const T = _.isTrusted, N = W && W.tagName;
5092
+ if (W && N === "OPTION" && (W = V.parentElement(W)), !W || !N || vf.indexOf(N) < 0 || Ie(W, I, O, !0) || W.classList.contains(E) || U && W.matches(U)) return;
5093
+ let Q = W.value, Y = !1;
5094
+ const me = Di(W) || "";
5095
+ me === "radio" || me === "checkbox" ? Y = W.checked : (A[N.toLowerCase()] || A[me]) && (Q = Ui({ element: W, maskInputOptions: A, tagName: N, type: me, value: Q, maskInputFn: k })), P(W, R ? { text: Q, isChecked: Y, userTriggered: T } : { text: Q, isChecked: Y });
5096
+ const _e = W.name;
5097
+ me === "radio" && _e && Y && g.querySelectorAll(`input[type="radio"][name="${_e}"]`).forEach((we) => {
5098
+ if (we !== W) {
5099
+ const ke = we.value;
5100
+ P(we, R ? { text: ke, isChecked: !Y, userTriggered: !1 } : { text: ke, isChecked: !Y });
5101
5101
  }
5102
5102
  });
5103
5103
  }
5104
- function P(F, j) {
5105
- const L = Ua.get(F);
5106
- if (!L || L.text !== j.text || L.isChecked !== j.isChecked) {
5107
- Ua.set(F, j);
5108
- const _ = v.getId(F);
5109
- $(m)({ ...j, id: _ });
5104
+ function P(_, W) {
5105
+ const T = Ua.get(_);
5106
+ if (!T || T.text !== W.text || T.isChecked !== W.isChecked) {
5107
+ Ua.set(_, W);
5108
+ const N = v.getId(_);
5109
+ G(m)({ ...W, id: N });
5110
5110
  }
5111
5111
  }
5112
- const D = (T.input === "last" ? ["change"] : ["input", "change"]).map((F) => ve(F, $(S), g)), b = g.defaultView;
5112
+ const M = (L.input === "last" ? ["change"] : ["input", "change"]).map((_) => Se(_, G(S), g)), b = g.defaultView;
5113
5113
  if (!b) return () => {
5114
- D.forEach((F) => F());
5114
+ M.forEach((_) => _());
5115
5115
  };
5116
- const y = b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype, "value"), U = [[b.HTMLInputElement.prototype, "value"], [b.HTMLInputElement.prototype, "checked"], [b.HTMLSelectElement.prototype, "value"], [b.HTMLTextAreaElement.prototype, "value"], [b.HTMLSelectElement.prototype, "selectedIndex"], [b.HTMLOptionElement.prototype, "selected"]];
5117
- return y && y.set && D.push(...U.map((F) => $s(F[0], F[1], { set() {
5118
- $(S)({ target: this, isTrusted: !1 });
5119
- } }, !1, b))), $(() => {
5120
- D.forEach((F) => F());
5116
+ const y = b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype, "value"), D = [[b.HTMLInputElement.prototype, "value"], [b.HTMLInputElement.prototype, "checked"], [b.HTMLSelectElement.prototype, "value"], [b.HTMLTextAreaElement.prototype, "value"], [b.HTMLSelectElement.prototype, "selectedIndex"], [b.HTMLOptionElement.prototype, "selected"]];
5117
+ return y && y.set && M.push(...D.map((_) => $s(_[0], _[1], { set() {
5118
+ G(S)({ target: this, isTrusted: !1 });
5119
+ } }, !1, b))), G(() => {
5120
+ M.forEach((_) => _());
5121
5121
  });
5122
5122
  }(e), c = function({ mediaInteractionCb: m, blockClass: g, blockSelector: v, mirror: I, sampling: O, doc: E }) {
5123
- const A = $((k) => $t($((T) => {
5124
- const R = er(T);
5125
- if (!R || Se(R, g, v, !0)) return;
5126
- const { currentTime: S, volume: P, muted: D, playbackRate: b, loop: y } = R;
5127
- m({ type: k, id: I.getId(R), currentTime: S, volume: P, muted: D, playbackRate: b, loop: y });
5128
- }), O.media || 500)), M = [ve("play", A(kt.Play), E), ve("pause", A(kt.Pause), E), ve("seeked", A(kt.Seeked), E), ve("volumechange", A(kt.VolumeChange), E), ve("ratechange", A(kt.RateChange), E)];
5129
- return $(() => {
5130
- M.forEach((k) => k());
5123
+ const U = G((k) => $t(G((L) => {
5124
+ const R = er(L);
5125
+ if (!R || Ie(R, g, v, !0)) return;
5126
+ const { currentTime: S, volume: P, muted: M, playbackRate: b, loop: y } = R;
5127
+ m({ type: k, id: I.getId(R), currentTime: S, volume: P, muted: M, playbackRate: b, loop: y });
5128
+ }), O.media || 500)), A = [Se("play", U(kt.Play), E), Se("pause", U(kt.Pause), E), Se("seeked", U(kt.Seeked), E), Se("volumechange", U(kt.VolumeChange), E), Se("ratechange", U(kt.RateChange), E)];
5129
+ return G(() => {
5130
+ A.forEach((k) => k());
5131
5131
  });
5132
5132
  }(e);
5133
5133
  let u = () => {
5134
5134
  }, d = () => {
5135
- }, h = () => {
5135
+ }, p = () => {
5136
5136
  }, f = () => {
5137
5137
  };
5138
5138
  e.recordDOM && (u = function({ styleSheetRuleCb: m, mirror: g, stylesheetManager: v }, { win: I }) {
5139
5139
  if (!I.CSSStyleSheet || !I.CSSStyleSheet.prototype) return () => {
5140
5140
  };
5141
5141
  const O = I.CSSStyleSheet.prototype.insertRule;
5142
- I.CSSStyleSheet.prototype.insertRule = new Proxy(O, { apply: $((R, S, P) => {
5143
- const [D, b] = P, { id: y, styleId: U } = rt(S, g, v.styleMirror);
5144
- return (y && y !== -1 || U && U !== -1) && m({ id: y, styleId: U, adds: [{ rule: D, index: b }] }), R.apply(S, P);
5142
+ I.CSSStyleSheet.prototype.insertRule = new Proxy(O, { apply: G((R, S, P) => {
5143
+ const [M, b] = P, { id: y, styleId: D } = tt(S, g, v.styleMirror);
5144
+ return (y && y !== -1 || D && D !== -1) && m({ id: y, styleId: D, adds: [{ rule: M, index: b }] }), R.apply(S, P);
5145
5145
  }) }), I.CSSStyleSheet.prototype.addRule = function(R, S, P = this.cssRules.length) {
5146
- const D = `${R} { ${S} }`;
5147
- return I.CSSStyleSheet.prototype.insertRule.apply(this, [D, P]);
5146
+ const M = `${R} { ${S} }`;
5147
+ return I.CSSStyleSheet.prototype.insertRule.apply(this, [M, P]);
5148
5148
  };
5149
5149
  const E = I.CSSStyleSheet.prototype.deleteRule;
5150
- let A, M;
5151
- I.CSSStyleSheet.prototype.deleteRule = new Proxy(E, { apply: $((R, S, P) => {
5152
- const [D] = P, { id: b, styleId: y } = rt(S, g, v.styleMirror);
5153
- return (b && b !== -1 || y && y !== -1) && m({ id: b, styleId: y, removes: [{ index: D }] }), R.apply(S, P);
5150
+ let U, A;
5151
+ I.CSSStyleSheet.prototype.deleteRule = new Proxy(E, { apply: G((R, S, P) => {
5152
+ const [M] = P, { id: b, styleId: y } = tt(S, g, v.styleMirror);
5153
+ return (b && b !== -1 || y && y !== -1) && m({ id: b, styleId: y, removes: [{ index: M }] }), R.apply(S, P);
5154
5154
  }) }), I.CSSStyleSheet.prototype.removeRule = function(R) {
5155
5155
  return I.CSSStyleSheet.prototype.deleteRule.apply(this, [R]);
5156
- }, I.CSSStyleSheet.prototype.replace && (A = I.CSSStyleSheet.prototype.replace, I.CSSStyleSheet.prototype.replace = new Proxy(A, { apply: $((R, S, P) => {
5157
- const [D] = P, { id: b, styleId: y } = rt(S, g, v.styleMirror);
5158
- return (b && b !== -1 || y && y !== -1) && m({ id: b, styleId: y, replace: D }), R.apply(S, P);
5159
- }) })), I.CSSStyleSheet.prototype.replaceSync && (M = I.CSSStyleSheet.prototype.replaceSync, I.CSSStyleSheet.prototype.replaceSync = new Proxy(M, { apply: $((R, S, P) => {
5160
- const [D] = P, { id: b, styleId: y } = rt(S, g, v.styleMirror);
5161
- return (b && b !== -1 || y && y !== -1) && m({ id: b, styleId: y, replaceSync: D }), R.apply(S, P);
5156
+ }, I.CSSStyleSheet.prototype.replace && (U = I.CSSStyleSheet.prototype.replace, I.CSSStyleSheet.prototype.replace = new Proxy(U, { apply: G((R, S, P) => {
5157
+ const [M] = P, { id: b, styleId: y } = tt(S, g, v.styleMirror);
5158
+ return (b && b !== -1 || y && y !== -1) && m({ id: b, styleId: y, replace: M }), R.apply(S, P);
5159
+ }) })), I.CSSStyleSheet.prototype.replaceSync && (A = I.CSSStyleSheet.prototype.replaceSync, I.CSSStyleSheet.prototype.replaceSync = new Proxy(A, { apply: G((R, S, P) => {
5160
+ const [M] = P, { id: b, styleId: y } = tt(S, g, v.styleMirror);
5161
+ return (b && b !== -1 || y && y !== -1) && m({ id: b, styleId: y, replaceSync: M }), R.apply(S, P);
5162
5162
  }) }));
5163
5163
  const k = {};
5164
5164
  Vr("CSSGroupingRule") ? k.CSSGroupingRule = I.CSSGroupingRule : (Vr("CSSMediaRule") && (k.CSSMediaRule = I.CSSMediaRule), Vr("CSSConditionRule") && (k.CSSConditionRule = I.CSSConditionRule), Vr("CSSSupportsRule") && (k.CSSSupportsRule = I.CSSSupportsRule));
5165
- const T = {};
5165
+ const L = {};
5166
5166
  return Object.entries(k).forEach(([R, S]) => {
5167
- T[R] = { insertRule: S.prototype.insertRule, deleteRule: S.prototype.deleteRule }, S.prototype.insertRule = new Proxy(T[R].insertRule, { apply: $((P, D, b) => {
5168
- const [y, U] = b, { id: F, styleId: j } = rt(D.parentStyleSheet, g, v.styleMirror);
5169
- return (F && F !== -1 || j && j !== -1) && m({ id: F, styleId: j, adds: [{ rule: y, index: [...jr(D), U || 0] }] }), P.apply(D, b);
5170
- }) }), S.prototype.deleteRule = new Proxy(T[R].deleteRule, { apply: $((P, D, b) => {
5171
- const [y] = b, { id: U, styleId: F } = rt(D.parentStyleSheet, g, v.styleMirror);
5172
- return (U && U !== -1 || F && F !== -1) && m({ id: U, styleId: F, removes: [{ index: [...jr(D), y] }] }), P.apply(D, b);
5167
+ L[R] = { insertRule: S.prototype.insertRule, deleteRule: S.prototype.deleteRule }, S.prototype.insertRule = new Proxy(L[R].insertRule, { apply: G((P, M, b) => {
5168
+ const [y, D] = b, { id: _, styleId: W } = tt(M.parentStyleSheet, g, v.styleMirror);
5169
+ return (_ && _ !== -1 || W && W !== -1) && m({ id: _, styleId: W, adds: [{ rule: y, index: [...jr(M), D || 0] }] }), P.apply(M, b);
5170
+ }) }), S.prototype.deleteRule = new Proxy(L[R].deleteRule, { apply: G((P, M, b) => {
5171
+ const [y] = b, { id: D, styleId: _ } = tt(M.parentStyleSheet, g, v.styleMirror);
5172
+ return (D && D !== -1 || _ && _ !== -1) && m({ id: D, styleId: _, removes: [{ index: [...jr(M), y] }] }), P.apply(M, b);
5173
5173
  }) });
5174
- }), $(() => {
5175
- I.CSSStyleSheet.prototype.insertRule = O, I.CSSStyleSheet.prototype.deleteRule = E, A && (I.CSSStyleSheet.prototype.replace = A), M && (I.CSSStyleSheet.prototype.replaceSync = M), Object.entries(k).forEach(([R, S]) => {
5176
- S.prototype.insertRule = T[R].insertRule, S.prototype.deleteRule = T[R].deleteRule;
5174
+ }), G(() => {
5175
+ I.CSSStyleSheet.prototype.insertRule = O, I.CSSStyleSheet.prototype.deleteRule = E, U && (I.CSSStyleSheet.prototype.replace = U), A && (I.CSSStyleSheet.prototype.replaceSync = A), Object.entries(k).forEach(([R, S]) => {
5176
+ S.prototype.insertRule = L[R].insertRule, S.prototype.deleteRule = L[R].deleteRule;
5177
5177
  });
5178
5178
  });
5179
- }(e, { win: r }), d = Kc(e, e.doc), h = function({ styleDeclarationCb: m, mirror: g, ignoreCSSAttributes: v, stylesheetManager: I }, { win: O }) {
5179
+ }(e, { win: r }), d = Kc(e, e.doc), p = function({ styleDeclarationCb: m, mirror: g, ignoreCSSAttributes: v, stylesheetManager: I }, { win: O }) {
5180
5180
  const E = O.CSSStyleDeclaration.prototype.setProperty;
5181
- O.CSSStyleDeclaration.prototype.setProperty = new Proxy(E, { apply: $((M, k, T) => {
5181
+ O.CSSStyleDeclaration.prototype.setProperty = new Proxy(E, { apply: G((A, k, L) => {
5182
5182
  var R;
5183
- const [S, P, D] = T;
5184
- if (v.has(S)) return E.apply(k, [S, P, D]);
5185
- const { id: b, styleId: y } = rt((R = k.parentRule) == null ? void 0 : R.parentStyleSheet, g, I.styleMirror);
5186
- return (b && b !== -1 || y && y !== -1) && m({ id: b, styleId: y, set: { property: S, value: P, priority: D }, index: jr(k.parentRule) }), M.apply(k, T);
5183
+ const [S, P, M] = L;
5184
+ if (v.has(S)) return E.apply(k, [S, P, M]);
5185
+ const { id: b, styleId: y } = tt((R = k.parentRule) == null ? void 0 : R.parentStyleSheet, g, I.styleMirror);
5186
+ return (b && b !== -1 || y && y !== -1) && m({ id: b, styleId: y, set: { property: S, value: P, priority: M }, index: jr(k.parentRule) }), A.apply(k, L);
5187
5187
  }) });
5188
- const A = O.CSSStyleDeclaration.prototype.removeProperty;
5189
- return O.CSSStyleDeclaration.prototype.removeProperty = new Proxy(A, { apply: $((M, k, T) => {
5188
+ const U = O.CSSStyleDeclaration.prototype.removeProperty;
5189
+ return O.CSSStyleDeclaration.prototype.removeProperty = new Proxy(U, { apply: G((A, k, L) => {
5190
5190
  var R;
5191
- const [S] = T;
5192
- if (v.has(S)) return A.apply(k, [S]);
5193
- const { id: P, styleId: D } = rt((R = k.parentRule) == null ? void 0 : R.parentStyleSheet, g, I.styleMirror);
5194
- return (P && P !== -1 || D && D !== -1) && m({ id: P, styleId: D, remove: { property: S }, index: jr(k.parentRule) }), M.apply(k, T);
5195
- }) }), $(() => {
5196
- O.CSSStyleDeclaration.prototype.setProperty = E, O.CSSStyleDeclaration.prototype.removeProperty = A;
5191
+ const [S] = L;
5192
+ if (v.has(S)) return U.apply(k, [S]);
5193
+ const { id: P, styleId: M } = tt((R = k.parentRule) == null ? void 0 : R.parentStyleSheet, g, I.styleMirror);
5194
+ return (P && P !== -1 || M && M !== -1) && m({ id: P, styleId: M, remove: { property: S }, index: jr(k.parentRule) }), A.apply(k, L);
5195
+ }) }), G(() => {
5196
+ O.CSSStyleDeclaration.prototype.setProperty = E, O.CSSStyleDeclaration.prototype.removeProperty = U;
5197
5197
  });
5198
5198
  }(e, { win: r }), e.collectFonts && (f = function({ fontCb: m, doc: g }) {
5199
5199
  const v = g.defaultView;
5200
5200
  if (!v) return () => {
5201
5201
  };
5202
5202
  const I = [], O = /* @__PURE__ */ new WeakMap(), E = v.FontFace;
5203
- v.FontFace = function(M, k, T) {
5204
- const R = new E(M, k, T);
5205
- return O.set(R, { family: M, buffer: typeof k != "string", descriptors: T, fontSource: typeof k == "string" ? k : JSON.stringify(Array.from(new Uint8Array(k))) }), R;
5203
+ v.FontFace = function(A, k, L) {
5204
+ const R = new E(A, k, L);
5205
+ return O.set(R, { family: A, buffer: typeof k != "string", descriptors: L, fontSource: typeof k == "string" ? k : JSON.stringify(Array.from(new Uint8Array(k))) }), R;
5206
5206
  };
5207
- const A = At(g.fonts, "add", function(M) {
5207
+ const U = At(g.fonts, "add", function(A) {
5208
5208
  return function(k) {
5209
- return setTimeout($(() => {
5210
- const T = O.get(k);
5211
- T && (m(T), O.delete(k));
5212
- }), 0), M.apply(this, [k]);
5209
+ return setTimeout(G(() => {
5210
+ const L = O.get(k);
5211
+ L && (m(L), O.delete(k));
5212
+ }), 0), A.apply(this, [k]);
5213
5213
  };
5214
5214
  });
5215
5215
  return I.push(() => {
5216
5216
  v.FontFace = E;
5217
- }), I.push(A), $(() => {
5218
- I.forEach((M) => M());
5217
+ }), I.push(U), G(() => {
5218
+ I.forEach((A) => A());
5219
5219
  });
5220
5220
  }(e)));
5221
5221
  const w = function(m) {
5222
5222
  const { doc: g, mirror: v, blockClass: I, blockSelector: O, selectionCb: E } = m;
5223
- let A = !0;
5224
- const M = $(() => {
5223
+ let U = !0;
5224
+ const A = G(() => {
5225
5225
  const k = g.getSelection();
5226
- if (!k || A && (k != null && k.isCollapsed)) return;
5227
- A = k.isCollapsed || !1;
5228
- const T = [], R = k.rangeCount || 0;
5226
+ if (!k || U && (k != null && k.isCollapsed)) return;
5227
+ U = k.isCollapsed || !1;
5228
+ const L = [], R = k.rangeCount || 0;
5229
5229
  for (let S = 0; S < R; S++) {
5230
- const P = k.getRangeAt(S), { startContainer: D, startOffset: b, endContainer: y, endOffset: U } = P;
5231
- Se(D, I, O, !0) || Se(y, I, O, !0) || T.push({ start: v.getId(D), startOffset: b, end: v.getId(y), endOffset: U });
5230
+ const P = k.getRangeAt(S), { startContainer: M, startOffset: b, endContainer: y, endOffset: D } = P;
5231
+ Ie(M, I, O, !0) || Ie(y, I, O, !0) || L.push({ start: v.getId(M), startOffset: b, end: v.getId(y), endOffset: D });
5232
5232
  }
5233
- E({ ranges: T });
5233
+ E({ ranges: L });
5234
5234
  });
5235
- return M(), ve("selectionchange", M);
5236
- }(e), p = function({ doc: m, customElementCb: g }) {
5235
+ return A(), Se("selectionchange", A);
5236
+ }(e), h = function({ doc: m, customElementCb: g }) {
5237
5237
  const v = m.defaultView;
5238
5238
  return v && v.customElements ? At(v.customElements, "define", function(I) {
5239
- return function(O, E, A) {
5239
+ return function(O, E, U) {
5240
5240
  try {
5241
5241
  g({ define: { name: O } });
5242
5242
  } catch {
5243
5243
  console.warn(`Custom element callback failed for ${O}`);
5244
5244
  }
5245
- return I.apply(this, [O, E, A]);
5245
+ return I.apply(this, [O, E, U]);
5246
5246
  };
5247
5247
  }) : () => {
5248
5248
  };
5249
5249
  }(e), C = [];
5250
5250
  for (const m of e.plugins) C.push(m.observer(m.callback, r, m.options));
5251
- return $(() => {
5252
- mt.forEach((m) => m.reset()), s == null || s.disconnect(), n(), i(), a(), o(), l(), c(), u(), d(), h(), f(), w(), p(), C.forEach((m) => m());
5251
+ return G(() => {
5252
+ ht.forEach((m) => m.reset()), s == null || s.disconnect(), n(), i(), a(), o(), l(), c(), u(), d(), p(), f(), w(), h(), C.forEach((m) => m());
5253
5253
  });
5254
5254
  }
5255
5255
  function Wr(e) {
@@ -5317,22 +5317,22 @@ class If {
5317
5317
  transformCrossOriginEvent(t, r) {
5318
5318
  var s;
5319
5319
  switch (r.type) {
5320
- case Y.FullSnapshot: {
5320
+ case $.FullSnapshot: {
5321
5321
  this.crossOriginIframeMirror.reset(t), this.crossOriginIframeStyleMirror.reset(t), this.replaceIdOnNode(r.data.node, t);
5322
5322
  const n = r.data.node.id;
5323
- return this.crossOriginIframeRootIdMap.set(t, n), this.patchRootIdOnNode(r.data.node, n), { timestamp: r.timestamp, type: Y.IncrementalSnapshot, data: { source: G.Mutation, adds: [{ parentId: this.mirror.getId(t), nextId: null, node: r.data.node }], removes: [], texts: [], attributes: [], isAttachIframe: !0 } };
5323
+ return this.crossOriginIframeRootIdMap.set(t, n), this.patchRootIdOnNode(r.data.node, n), { timestamp: r.timestamp, type: $.IncrementalSnapshot, data: { source: H.Mutation, adds: [{ parentId: this.mirror.getId(t), nextId: null, node: r.data.node }], removes: [], texts: [], attributes: [], isAttachIframe: !0 } };
5324
5324
  }
5325
- case Y.Meta:
5326
- case Y.Load:
5327
- case Y.DomContentLoaded:
5325
+ case $.Meta:
5326
+ case $.Load:
5327
+ case $.DomContentLoaded:
5328
5328
  return !1;
5329
- case Y.Plugin:
5329
+ case $.Plugin:
5330
5330
  return r;
5331
- case Y.Custom:
5331
+ case $.Custom:
5332
5332
  return this.replaceIds(r.data.payload, t, ["id", "parentId", "previousId", "nextId"]), r;
5333
- case Y.IncrementalSnapshot:
5333
+ case $.IncrementalSnapshot:
5334
5334
  switch (r.data.source) {
5335
- case G.Mutation:
5335
+ case H.Mutation:
5336
5336
  return r.data.adds.forEach((n) => {
5337
5337
  this.replaceIds(n, t, ["parentId", "nextId", "previousId"]), this.replaceIdOnNode(n.node, t);
5338
5338
  const i = this.crossOriginIframeRootIdMap.get(t);
@@ -5344,30 +5344,30 @@ class If {
5344
5344
  }), r.data.texts.forEach((n) => {
5345
5345
  this.replaceIds(n, t, ["id"]);
5346
5346
  }), r;
5347
- case G.Drag:
5348
- case G.TouchMove:
5349
- case G.MouseMove:
5347
+ case H.Drag:
5348
+ case H.TouchMove:
5349
+ case H.MouseMove:
5350
5350
  return r.data.positions.forEach((n) => {
5351
5351
  this.replaceIds(n, t, ["id"]);
5352
5352
  }), r;
5353
- case G.ViewportResize:
5353
+ case H.ViewportResize:
5354
5354
  return !1;
5355
- case G.MediaInteraction:
5356
- case G.MouseInteraction:
5357
- case G.Scroll:
5358
- case G.CanvasMutation:
5359
- case G.Input:
5355
+ case H.MediaInteraction:
5356
+ case H.MouseInteraction:
5357
+ case H.Scroll:
5358
+ case H.CanvasMutation:
5359
+ case H.Input:
5360
5360
  return this.replaceIds(r.data, t, ["id"]), r;
5361
- case G.StyleSheetRule:
5362
- case G.StyleDeclaration:
5361
+ case H.StyleSheetRule:
5362
+ case H.StyleDeclaration:
5363
5363
  return this.replaceIds(r.data, t, ["id"]), this.replaceStyleIds(r.data, t, ["styleId"]), r;
5364
- case G.Font:
5364
+ case H.Font:
5365
5365
  return r;
5366
- case G.Selection:
5366
+ case H.Selection:
5367
5367
  return r.data.ranges.forEach((n) => {
5368
5368
  this.replaceIds(n, t, ["start", "end"]);
5369
5369
  }), r;
5370
- case G.AdoptedStyleSheet:
5370
+ case H.AdoptedStyleSheet:
5371
5371
  return this.replaceIds(r.data, t, ["id"]), this.replaceStyleIds(r.data, t, ["styleIds"]), (s = r.data.styles) == null || s.forEach((n) => {
5372
5372
  this.replaceStyleIds(n, t, ["styleId"]);
5373
5373
  }), r;
@@ -5467,7 +5467,7 @@ function _a(e, t, r, s) {
5467
5467
  try {
5468
5468
  const i = At(e.HTMLCanvasElement.prototype, "getContext", function(a) {
5469
5469
  return function(o, ...l) {
5470
- if (!Se(this, t, r, !0)) {
5470
+ if (!Ie(this, t, r, !0)) {
5471
5471
  const c = /* @__PURE__ */ function(u) {
5472
5472
  return u === "experimental-webgl" ? "webgl" : u;
5473
5473
  }(o);
@@ -5493,12 +5493,12 @@ function Na(e, t, r, s, n, i) {
5493
5493
  if (typeof e[l] != "function") continue;
5494
5494
  const c = At(e, l, function(u) {
5495
5495
  return function(...d) {
5496
- const h = u.apply(this, d);
5497
- if (Zc(h, i, this), "tagName" in this.canvas && !Se(this.canvas, s, n, !0)) {
5496
+ const p = u.apply(this, d);
5497
+ if (Zc(p, i, this), "tagName" in this.canvas && !Ie(this.canvas, s, n, !0)) {
5498
5498
  const f = Xc(d, i, this), w = { type: t, property: l, args: f };
5499
5499
  r(this.canvas, w);
5500
5500
  }
5501
- return h;
5501
+ return p;
5502
5502
  };
5503
5503
  });
5504
5504
  a.push(c);
@@ -5554,51 +5554,51 @@ class xf {
5554
5554
  l.onmessage = (f) => {
5555
5555
  const { id: w } = f.data;
5556
5556
  if (o.set(w, !1), !("base64" in f.data)) return;
5557
- const { base64: p, type: C, width: m, height: g } = f.data;
5558
- this.mutationCb({ id: w, type: Ct["2D"], commands: [{ property: "clearRect", args: [0, 0, m, g] }, { property: "drawImage", args: [{ rr_type: "ImageBitmap", args: [{ rr_type: "Blob", data: [{ rr_type: "ArrayBuffer", base64: p }], type: C }] }, 0, 0] }] });
5557
+ const { base64: h, type: C, width: m, height: g } = f.data;
5558
+ this.mutationCb({ id: w, type: Ct["2D"], commands: [{ property: "clearRect", args: [0, 0, m, g] }, { property: "drawImage", args: [{ rr_type: "ImageBitmap", args: [{ rr_type: "Blob", data: [{ rr_type: "ArrayBuffer", base64: h }], type: C }] }, 0, 0] }] });
5559
5559
  };
5560
5560
  const c = 1e3 / t;
5561
5561
  let u, d = 0;
5562
- const h = (f) => {
5562
+ const p = (f) => {
5563
5563
  d && f - d < c || (d = f, (() => {
5564
5564
  const w = [];
5565
- return r.document.querySelectorAll("canvas").forEach((p) => {
5566
- Se(p, s, n, !0) || w.push(p);
5565
+ return r.document.querySelectorAll("canvas").forEach((h) => {
5566
+ Ie(h, s, n, !0) || w.push(h);
5567
5567
  }), w;
5568
5568
  })().forEach(async (w) => {
5569
- var p;
5569
+ var h;
5570
5570
  const C = this.mirror.getId(w);
5571
5571
  if (o.get(C) || w.width === 0 || w.height === 0) return;
5572
5572
  if (o.set(C, !0), ["webgl", "webgl2"].includes(w.__context)) {
5573
5573
  const g = w.getContext(w.__context);
5574
- ((p = g == null ? void 0 : g.getContextAttributes()) == null ? void 0 : p.preserveDrawingBuffer) === !1 && g.clear(g.COLOR_BUFFER_BIT);
5574
+ ((h = g == null ? void 0 : g.getContextAttributes()) == null ? void 0 : h.preserveDrawingBuffer) === !1 && g.clear(g.COLOR_BUFFER_BIT);
5575
5575
  }
5576
5576
  const m = await createImageBitmap(w);
5577
5577
  l.postMessage({ id: C, bitmap: m, width: w.width, height: w.height, dataURLOptions: i.dataURLOptions }, [m]);
5578
- })), u = requestAnimationFrame(h);
5578
+ })), u = requestAnimationFrame(p);
5579
5579
  };
5580
- u = requestAnimationFrame(h), this.resetObservers = () => {
5580
+ u = requestAnimationFrame(p), this.resetObservers = () => {
5581
5581
  a(), cancelAnimationFrame(u);
5582
5582
  };
5583
5583
  }
5584
5584
  initCanvasMutationObserver(t, r, s) {
5585
5585
  this.startRAFTimestamping(), this.startPendingCanvasMutationFlusher();
5586
5586
  const n = _a(t, r, s, !1), i = function(o, l, c, u) {
5587
- const d = [], h = Object.getOwnPropertyNames(l.CanvasRenderingContext2D.prototype);
5588
- for (const f of h) try {
5587
+ const d = [], p = Object.getOwnPropertyNames(l.CanvasRenderingContext2D.prototype);
5588
+ for (const f of p) try {
5589
5589
  if (typeof l.CanvasRenderingContext2D.prototype[f] != "function") continue;
5590
- const w = At(l.CanvasRenderingContext2D.prototype, f, function(p) {
5590
+ const w = At(l.CanvasRenderingContext2D.prototype, f, function(h) {
5591
5591
  return function(...C) {
5592
- return Se(this.canvas, c, u, !0) || setTimeout(() => {
5592
+ return Ie(this.canvas, c, u, !0) || setTimeout(() => {
5593
5593
  const m = Xc(C, l, this);
5594
5594
  o(this.canvas, { type: Ct["2D"], property: f, args: m });
5595
- }, 0), p.apply(this, C);
5595
+ }, 0), h.apply(this, C);
5596
5596
  };
5597
5597
  });
5598
5598
  d.push(w);
5599
5599
  } catch {
5600
- const w = $s(l.CanvasRenderingContext2D.prototype, f, { set(p) {
5601
- o(this.canvas, { type: Ct["2D"], property: f, args: [p], setter: !0 });
5600
+ const w = $s(l.CanvasRenderingContext2D.prototype, f, { set(h) {
5601
+ o(this.canvas, { type: Ct["2D"], property: f, args: [h], setter: !0 });
5602
5602
  } });
5603
5603
  d.push(w);
5604
5604
  }
@@ -5608,7 +5608,7 @@ class xf {
5608
5608
  }(this.processMutation.bind(this), t, r, s), a = function(o, l, c, u) {
5609
5609
  const d = [];
5610
5610
  return d.push(...Na(l.WebGLRenderingContext.prototype, Ct.WebGL, o, c, u, l)), l.WebGL2RenderingContext !== void 0 && d.push(...Na(l.WebGL2RenderingContext.prototype, Ct.WebGL2, o, c, u, l)), () => {
5611
- d.forEach((h) => h());
5611
+ d.forEach((p) => p());
5612
5612
  };
5613
5613
  }(this.processMutation.bind(this), t, r, s);
5614
5614
  this.resetObservers = () => {
@@ -5693,104 +5693,104 @@ try {
5693
5693
  }
5694
5694
  const Oe = new Rl();
5695
5695
  function qt(e = {}) {
5696
- const { emit: t, checkoutEveryNms: r, checkoutEveryNth: s, blockClass: n = "rr-block", blockSelector: i = null, ignoreClass: a = "rr-ignore", ignoreSelector: o = null, maskTextClass: l = "rr-mask", maskTextSelector: c = null, inlineStylesheet: u = !0, maskAllInputs: d, maskInputOptions: h, slimDOMOptions: f, maskInputFn: w, maskTextFn: p, hooks: C, packFn: m, sampling: g = {}, dataURLOptions: v = {}, mousemoveWait: I, recordDOM: O = !0, recordCanvas: E = !1, recordCrossOriginIframes: A = !1, recordAfter: M = e.recordAfter === "DOMContentLoaded" ? e.recordAfter : "load", userTriggeredOnInput: k = !1, collectFonts: T = !1, inlineImages: R = !1, plugins: S, keepIframeSrcFn: P = () => !1, ignoreCSSAttributes: D = /* @__PURE__ */ new Set([]), errorHandler: b } = e;
5696
+ const { emit: t, checkoutEveryNms: r, checkoutEveryNth: s, blockClass: n = "rr-block", blockSelector: i = null, ignoreClass: a = "rr-ignore", ignoreSelector: o = null, maskTextClass: l = "rr-mask", maskTextSelector: c = null, inlineStylesheet: u = !0, maskAllInputs: d, maskInputOptions: p, slimDOMOptions: f, maskInputFn: w, maskTextFn: h, hooks: C, packFn: m, sampling: g = {}, dataURLOptions: v = {}, mousemoveWait: I, recordDOM: O = !0, recordCanvas: E = !1, recordCrossOriginIframes: U = !1, recordAfter: A = e.recordAfter === "DOMContentLoaded" ? e.recordAfter : "load", userTriggeredOnInput: k = !1, collectFonts: L = !1, inlineImages: R = !1, plugins: S, keepIframeSrcFn: P = () => !1, ignoreCSSAttributes: M = /* @__PURE__ */ new Set([]), errorHandler: b } = e;
5697
5697
  Qt = b;
5698
- const y = !A || window.parent === window;
5699
- let U = !1;
5698
+ const y = !U || window.parent === window;
5699
+ let D = !1;
5700
5700
  if (!y) try {
5701
- window.parent.document && (U = !1);
5701
+ window.parent.document && (D = !1);
5702
5702
  } catch {
5703
- U = !0;
5703
+ D = !0;
5704
5704
  }
5705
5705
  if (y && !t) throw new Error("emit function is required");
5706
- if (!y && !U) return () => {
5706
+ if (!y && !D) return () => {
5707
5707
  };
5708
5708
  I !== void 0 && g.mousemove === void 0 && (g.mousemove = I), Oe.reset();
5709
- const F = d === !0 ? { color: !0, date: !0, "datetime-local": !0, email: !0, month: !0, number: !0, range: !0, search: !0, tel: !0, text: !0, time: !0, url: !0, week: !0, textarea: !0, select: !0, password: !0 } : h !== void 0 ? h : { password: !0 }, j = f === !0 || f === "all" ? { script: !0, comment: !0, headFavicon: !0, headWhitespace: !0, headMetaSocial: !0, headMetaRobots: !0, headMetaHttpEquiv: !0, headMetaVerification: !0, headMetaAuthorship: f === "all", headMetaDescKeywords: f === "all", headTitleMutations: f === "all" } : f || {};
5710
- let L;
5711
- (function(W = window) {
5712
- "NodeList" in W && !W.NodeList.prototype.forEach && (W.NodeList.prototype.forEach = Array.prototype.forEach), "DOMTokenList" in W && !W.DOMTokenList.prototype.forEach && (W.DOMTokenList.prototype.forEach = Array.prototype.forEach);
5709
+ const _ = d === !0 ? { color: !0, date: !0, "datetime-local": !0, email: !0, month: !0, number: !0, range: !0, search: !0, tel: !0, text: !0, time: !0, url: !0, week: !0, textarea: !0, select: !0, password: !0 } : p !== void 0 ? p : { password: !0 }, W = f === !0 || f === "all" ? { script: !0, comment: !0, headFavicon: !0, headWhitespace: !0, headMetaSocial: !0, headMetaRobots: !0, headMetaHttpEquiv: !0, headMetaVerification: !0, headMetaAuthorship: f === "all", headMetaDescKeywords: f === "all", headTitleMutations: f === "all" } : f || {};
5710
+ let T;
5711
+ (function(z = window) {
5712
+ "NodeList" in z && !z.NodeList.prototype.forEach && (z.NodeList.prototype.forEach = Array.prototype.forEach), "DOMTokenList" in z && !z.DOMTokenList.prototype.forEach && (z.DOMTokenList.prototype.forEach = Array.prototype.forEach);
5713
5713
  })();
5714
- let _ = 0;
5715
- const ee = (W) => {
5716
- for (const Ie of S || []) Ie.eventProcessor && (W = Ie.eventProcessor(W));
5717
- return m && !U && (W = m(W)), W;
5714
+ let N = 0;
5715
+ const Q = (z) => {
5716
+ for (const ve of S || []) ve.eventProcessor && (z = ve.eventProcessor(z));
5717
+ return m && !D && (z = m(z)), z;
5718
5718
  };
5719
- ue = (W, Ie) => {
5720
- var ne;
5721
- const ae = W;
5722
- if (ae.timestamp = ws(), !((ne = mt[0]) != null && ne.isFrozen()) || ae.type === Y.FullSnapshot || ae.type === Y.IncrementalSnapshot && ae.data.source === G.Mutation || mt.forEach((Te) => Te.unfreeze()), y) t == null || t(ee(ae), Ie);
5723
- else if (U) {
5724
- const Te = { type: "rrweb", event: ee(ae), origin: window.location.origin, isCheckout: Ie };
5725
- window.parent.postMessage(Te, "*");
5726
- }
5727
- if (ae.type === Y.FullSnapshot) L = ae, _ = 0;
5728
- else if (ae.type === Y.IncrementalSnapshot) {
5729
- if (ae.data.source === G.Mutation && ae.data.isAttachIframe) return;
5730
- _++;
5731
- const Te = s && _ >= s, J = r && ae.timestamp - L.timestamp > r;
5732
- (Te || J) && ls(!0);
5719
+ ue = (z, ve) => {
5720
+ var J;
5721
+ const ee = z;
5722
+ if (ee.timestamp = ws(), !((J = ht[0]) != null && J.isFrozen()) || ee.type === $.FullSnapshot || ee.type === $.IncrementalSnapshot && ee.data.source === H.Mutation || ht.forEach((Re) => Re.unfreeze()), y) t == null || t(Q(ee), ve);
5723
+ else if (D) {
5724
+ const Re = { type: "rrweb", event: Q(ee), origin: window.location.origin, isCheckout: ve };
5725
+ window.parent.postMessage(Re, "*");
5726
+ }
5727
+ if (ee.type === $.FullSnapshot) T = ee, N = 0;
5728
+ else if (ee.type === $.IncrementalSnapshot) {
5729
+ if (ee.data.source === H.Mutation && ee.data.isAttachIframe) return;
5730
+ N++;
5731
+ const Re = s && N >= s, K = r && ee.timestamp - T.timestamp > r;
5732
+ (Re || K) && ls(!0);
5733
5733
  }
5734
5734
  };
5735
- const q = (W) => {
5736
- ue({ type: Y.IncrementalSnapshot, data: { source: G.Mutation, ...W } });
5737
- }, me = (W) => ue({ type: Y.IncrementalSnapshot, data: { source: G.Scroll, ...W } }), _e = (W) => ue({ type: Y.IncrementalSnapshot, data: { source: G.CanvasMutation, ...W } }), we = new Tf({ mutationCb: q, adoptedStyleSheetCb: (W) => ue({ type: Y.IncrementalSnapshot, data: { source: G.AdoptedStyleSheet, ...W } }) }), H = new If({ mirror: Oe, mutationCb: q, stylesheetManager: we, recordCrossOriginIframes: A, wrappedEmit: ue });
5738
- for (const W of S || []) W.getMirror && W.getMirror({ nodeMirror: Oe, crossOriginIframeMirror: H.crossOriginIframeMirror, crossOriginIframeStyleMirror: H.crossOriginIframeStyleMirror });
5739
- const Le = new Rf();
5735
+ const Y = (z) => {
5736
+ ue({ type: $.IncrementalSnapshot, data: { source: H.Mutation, ...z } });
5737
+ }, me = (z) => ue({ type: $.IncrementalSnapshot, data: { source: H.Scroll, ...z } }), _e = (z) => ue({ type: $.IncrementalSnapshot, data: { source: H.CanvasMutation, ...z } }), we = new Tf({ mutationCb: Y, adoptedStyleSheetCb: (z) => ue({ type: $.IncrementalSnapshot, data: { source: H.AdoptedStyleSheet, ...z } }) }), ke = new If({ mirror: Oe, mutationCb: Y, stylesheetManager: we, recordCrossOriginIframes: U, wrappedEmit: ue });
5738
+ for (const z of S || []) z.getMirror && z.getMirror({ nodeMirror: Oe, crossOriginIframeMirror: ke.crossOriginIframeMirror, crossOriginIframeStyleMirror: ke.crossOriginIframeStyleMirror });
5739
+ const wt = new Rf();
5740
5740
  hn = new xf({ recordCanvas: E, mutationCb: _e, win: window, blockClass: n, blockSelector: i, mirror: Oe, sampling: g.canvas, dataURLOptions: v });
5741
- const Qe = new Cf({ mutationCb: q, scrollCb: me, bypassOptions: { blockClass: n, blockSelector: i, maskTextClass: l, maskTextSelector: c, inlineStylesheet: u, maskInputOptions: F, dataURLOptions: v, maskTextFn: p, maskInputFn: w, recordCanvas: E, inlineImages: R, sampling: g, slimDOMOptions: j, iframeManager: H, stylesheetManager: we, canvasManager: hn, keepIframeSrcFn: P, processedNodeManager: Le }, mirror: Oe });
5742
- ls = (W = !1) => {
5741
+ const q = new Cf({ mutationCb: Y, scrollCb: me, bypassOptions: { blockClass: n, blockSelector: i, maskTextClass: l, maskTextSelector: c, inlineStylesheet: u, maskInputOptions: _, dataURLOptions: v, maskTextFn: h, maskInputFn: w, recordCanvas: E, inlineImages: R, sampling: g, slimDOMOptions: W, iframeManager: ke, stylesheetManager: we, canvasManager: hn, keepIframeSrcFn: P, processedNodeManager: wt }, mirror: Oe });
5742
+ ls = (z = !1) => {
5743
5743
  if (!O) return;
5744
- ue({ type: Y.Meta, data: { href: window.location.href, width: zc(), height: Bc() } }, W), we.reset(), Qe.init(), mt.forEach((ne) => ne.lock());
5745
- const Ie = function(ne, ae) {
5746
- const { mirror: Te = new Rl(), blockClass: J = "rr-block", blockSelector: _t = null, maskTextClass: id = "rr-mask", maskTextSelector: od = null, inlineStylesheet: ad = !0, inlineImages: ld = !1, recordCanvas: cd = !1, maskAllInputs: qs = !1, maskTextFn: ud, maskInputFn: dd, slimDOM: Nt = !1, dataURLOptions: pd, preserveWhiteSpace: hd, onSerialize: md, onIframeLoad: fd, iframeLoadTimeout: gd, onStylesheetLoad: yd, stylesheetLoadTimeout: wd, keepIframeSrcFn: bd = () => !1 } = ae || {};
5747
- return Et(ne, { doc: ne, mirror: Te, blockClass: J, blockSelector: _t, maskTextClass: id, maskTextSelector: od, skipChild: !1, inlineStylesheet: ad, maskInputOptions: qs === !0 ? { color: !0, date: !0, "datetime-local": !0, email: !0, month: !0, number: !0, range: !0, search: !0, tel: !0, text: !0, time: !0, url: !0, week: !0, textarea: !0, select: !0, password: !0 } : qs === !1 ? { password: !0 } : qs, maskTextFn: ud, maskInputFn: dd, slimDOMOptions: Nt === !0 || Nt === "all" ? { script: !0, comment: !0, headFavicon: !0, headWhitespace: !0, headMetaDescKeywords: Nt === "all", headMetaSocial: !0, headMetaRobots: !0, headMetaHttpEquiv: !0, headMetaAuthorship: !0, headMetaVerification: !0 } : Nt === !1 ? {} : Nt, dataURLOptions: pd, inlineImages: ld, recordCanvas: cd, preserveWhiteSpace: hd, onSerialize: md, onIframeLoad: fd, iframeLoadTimeout: gd, onStylesheetLoad: yd, stylesheetLoadTimeout: wd, keepIframeSrcFn: bd, newlyAddedElement: !1 });
5748
- }(document, { mirror: Oe, blockClass: n, blockSelector: i, maskTextClass: l, maskTextSelector: c, inlineStylesheet: u, maskAllInputs: F, maskTextFn: p, maskInputFn: w, slimDOM: j, dataURLOptions: v, recordCanvas: E, inlineImages: R, onSerialize: (ne) => {
5749
- Vc(ne, Oe) && H.addIframe(ne), Hc(ne, Oe) && we.trackLinkElement(ne), ai(ne) && Qe.addShadowRoot(V.shadowRoot(ne), document);
5750
- }, onIframeLoad: (ne, ae) => {
5751
- H.attachIframe(ne, ae), Qe.observeAttachShadow(ne);
5752
- }, onStylesheetLoad: (ne, ae) => {
5753
- we.attachLinkElement(ne, ae);
5744
+ ue({ type: $.Meta, data: { href: window.location.href, width: zc(), height: Bc() } }, z), we.reset(), q.init(), ht.forEach((J) => J.lock());
5745
+ const ve = function(J, ee) {
5746
+ const { mirror: Re = new Rl(), blockClass: K = "rr-block", blockSelector: _t = null, maskTextClass: id = "rr-mask", maskTextSelector: od = null, inlineStylesheet: ad = !0, inlineImages: ld = !1, recordCanvas: cd = !1, maskAllInputs: qs = !1, maskTextFn: ud, maskInputFn: dd, slimDOM: Nt = !1, dataURLOptions: pd, preserveWhiteSpace: hd, onSerialize: md, onIframeLoad: fd, iframeLoadTimeout: gd, onStylesheetLoad: yd, stylesheetLoadTimeout: wd, keepIframeSrcFn: bd = () => !1 } = ee || {};
5747
+ return Et(J, { doc: J, mirror: Re, blockClass: K, blockSelector: _t, maskTextClass: id, maskTextSelector: od, skipChild: !1, inlineStylesheet: ad, maskInputOptions: qs === !0 ? { color: !0, date: !0, "datetime-local": !0, email: !0, month: !0, number: !0, range: !0, search: !0, tel: !0, text: !0, time: !0, url: !0, week: !0, textarea: !0, select: !0, password: !0 } : qs === !1 ? { password: !0 } : qs, maskTextFn: ud, maskInputFn: dd, slimDOMOptions: Nt === !0 || Nt === "all" ? { script: !0, comment: !0, headFavicon: !0, headWhitespace: !0, headMetaDescKeywords: Nt === "all", headMetaSocial: !0, headMetaRobots: !0, headMetaHttpEquiv: !0, headMetaAuthorship: !0, headMetaVerification: !0 } : Nt === !1 ? {} : Nt, dataURLOptions: pd, inlineImages: ld, recordCanvas: cd, preserveWhiteSpace: hd, onSerialize: md, onIframeLoad: fd, iframeLoadTimeout: gd, onStylesheetLoad: yd, stylesheetLoadTimeout: wd, keepIframeSrcFn: bd, newlyAddedElement: !1 });
5748
+ }(document, { mirror: Oe, blockClass: n, blockSelector: i, maskTextClass: l, maskTextSelector: c, inlineStylesheet: u, maskAllInputs: _, maskTextFn: h, maskInputFn: w, slimDOM: W, dataURLOptions: v, recordCanvas: E, inlineImages: R, onSerialize: (J) => {
5749
+ Vc(J, Oe) && ke.addIframe(J), Hc(J, Oe) && we.trackLinkElement(J), ai(J) && q.addShadowRoot(V.shadowRoot(J), document);
5750
+ }, onIframeLoad: (J, ee) => {
5751
+ ke.attachIframe(J, ee), q.observeAttachShadow(J);
5752
+ }, onStylesheetLoad: (J, ee) => {
5753
+ we.attachLinkElement(J, ee);
5754
5754
  }, keepIframeSrcFn: P });
5755
- if (!Ie) return console.warn("Failed to snapshot the document");
5756
- ue({ type: Y.FullSnapshot, data: { node: Ie, initialOffset: Fc(window) } }, W), mt.forEach((ne) => ne.unlock()), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && we.adoptStyleSheets(document.adoptedStyleSheets, Oe.getId(document));
5755
+ if (!ve) return console.warn("Failed to snapshot the document");
5756
+ ue({ type: $.FullSnapshot, data: { node: ve, initialOffset: Fc(window) } }, z), ht.forEach((J) => J.unlock()), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && we.adoptStyleSheets(document.adoptedStyleSheets, Oe.getId(document));
5757
5757
  };
5758
5758
  try {
5759
- const W = [], Ie = (ae) => {
5760
- var Te;
5761
- return $(Sf)({ mutationCb: q, mousemoveCb: (J, _t) => ue({ type: Y.IncrementalSnapshot, data: { source: _t, positions: J } }), mouseInteractionCb: (J) => ue({ type: Y.IncrementalSnapshot, data: { source: G.MouseInteraction, ...J } }), scrollCb: me, viewportResizeCb: (J) => ue({ type: Y.IncrementalSnapshot, data: { source: G.ViewportResize, ...J } }), inputCb: (J) => ue({ type: Y.IncrementalSnapshot, data: { source: G.Input, ...J } }), mediaInteractionCb: (J) => ue({ type: Y.IncrementalSnapshot, data: { source: G.MediaInteraction, ...J } }), styleSheetRuleCb: (J) => ue({ type: Y.IncrementalSnapshot, data: { source: G.StyleSheetRule, ...J } }), styleDeclarationCb: (J) => ue({ type: Y.IncrementalSnapshot, data: { source: G.StyleDeclaration, ...J } }), canvasMutationCb: _e, fontCb: (J) => ue({ type: Y.IncrementalSnapshot, data: { source: G.Font, ...J } }), selectionCb: (J) => {
5762
- ue({ type: Y.IncrementalSnapshot, data: { source: G.Selection, ...J } });
5763
- }, customElementCb: (J) => {
5764
- ue({ type: Y.IncrementalSnapshot, data: { source: G.CustomElement, ...J } });
5765
- }, blockClass: n, ignoreClass: a, ignoreSelector: o, maskTextClass: l, maskTextSelector: c, maskInputOptions: F, inlineStylesheet: u, sampling: g, recordDOM: O, recordCanvas: E, inlineImages: R, userTriggeredOnInput: k, collectFonts: T, doc: ae, maskInputFn: w, maskTextFn: p, keepIframeSrcFn: P, blockSelector: i, slimDOMOptions: j, dataURLOptions: v, mirror: Oe, iframeManager: H, stylesheetManager: we, shadowDomManager: Qe, processedNodeManager: Le, canvasManager: hn, ignoreCSSAttributes: D, plugins: ((Te = S == null ? void 0 : S.filter((J) => J.observer)) == null ? void 0 : Te.map((J) => ({ observer: J.observer, options: J.options, callback: (_t) => ue({ type: Y.Plugin, data: { plugin: J.name, payload: _t } }) }))) || [] }, C);
5759
+ const z = [], ve = (ee) => {
5760
+ var Re;
5761
+ return G(Sf)({ mutationCb: Y, mousemoveCb: (K, _t) => ue({ type: $.IncrementalSnapshot, data: { source: _t, positions: K } }), mouseInteractionCb: (K) => ue({ type: $.IncrementalSnapshot, data: { source: H.MouseInteraction, ...K } }), scrollCb: me, viewportResizeCb: (K) => ue({ type: $.IncrementalSnapshot, data: { source: H.ViewportResize, ...K } }), inputCb: (K) => ue({ type: $.IncrementalSnapshot, data: { source: H.Input, ...K } }), mediaInteractionCb: (K) => ue({ type: $.IncrementalSnapshot, data: { source: H.MediaInteraction, ...K } }), styleSheetRuleCb: (K) => ue({ type: $.IncrementalSnapshot, data: { source: H.StyleSheetRule, ...K } }), styleDeclarationCb: (K) => ue({ type: $.IncrementalSnapshot, data: { source: H.StyleDeclaration, ...K } }), canvasMutationCb: _e, fontCb: (K) => ue({ type: $.IncrementalSnapshot, data: { source: H.Font, ...K } }), selectionCb: (K) => {
5762
+ ue({ type: $.IncrementalSnapshot, data: { source: H.Selection, ...K } });
5763
+ }, customElementCb: (K) => {
5764
+ ue({ type: $.IncrementalSnapshot, data: { source: H.CustomElement, ...K } });
5765
+ }, blockClass: n, ignoreClass: a, ignoreSelector: o, maskTextClass: l, maskTextSelector: c, maskInputOptions: _, inlineStylesheet: u, sampling: g, recordDOM: O, recordCanvas: E, inlineImages: R, userTriggeredOnInput: k, collectFonts: L, doc: ee, maskInputFn: w, maskTextFn: h, keepIframeSrcFn: P, blockSelector: i, slimDOMOptions: W, dataURLOptions: v, mirror: Oe, iframeManager: ke, stylesheetManager: we, shadowDomManager: q, processedNodeManager: wt, canvasManager: hn, ignoreCSSAttributes: M, plugins: ((Re = S == null ? void 0 : S.filter((K) => K.observer)) == null ? void 0 : Re.map((K) => ({ observer: K.observer, options: K.options, callback: (_t) => ue({ type: $.Plugin, data: { plugin: K.name, payload: _t } }) }))) || [] }, C);
5766
5766
  };
5767
- H.addLoadListener((ae) => {
5767
+ ke.addLoadListener((ee) => {
5768
5768
  try {
5769
- W.push(Ie(ae.contentDocument));
5770
- } catch (Te) {
5771
- console.warn(Te);
5769
+ z.push(ve(ee.contentDocument));
5770
+ } catch (Re) {
5771
+ console.warn(Re);
5772
5772
  }
5773
5773
  });
5774
- const ne = () => {
5775
- ls(), W.push(Ie(document)), bs = !0;
5774
+ const J = () => {
5775
+ ls(), z.push(ve(document)), bs = !0;
5776
5776
  };
5777
- return document.readyState === "interactive" || document.readyState === "complete" ? ne() : (W.push(ve("DOMContentLoaded", () => {
5778
- ue({ type: Y.DomContentLoaded, data: {} }), M === "DOMContentLoaded" && ne();
5779
- })), W.push(ve("load", () => {
5780
- ue({ type: Y.Load, data: {} }), M === "load" && ne();
5777
+ return document.readyState === "interactive" || document.readyState === "complete" ? J() : (z.push(Se("DOMContentLoaded", () => {
5778
+ ue({ type: $.DomContentLoaded, data: {} }), A === "DOMContentLoaded" && J();
5779
+ })), z.push(Se("load", () => {
5780
+ ue({ type: $.Load, data: {} }), A === "load" && J();
5781
5781
  }, window))), () => {
5782
- W.forEach((ae) => ae()), Le.destroy(), bs = !1, Qt = void 0;
5782
+ z.forEach((ee) => ee()), wt.destroy(), bs = !1, Qt = void 0;
5783
5783
  };
5784
- } catch (W) {
5785
- console.warn(W);
5784
+ } catch (z) {
5785
+ console.warn(z);
5786
5786
  }
5787
5787
  }
5788
5788
  var za, St;
5789
5789
  qt.addCustomEvent = (e, t) => {
5790
5790
  if (!bs) throw new Error("please add custom event after start recording");
5791
- ue({ type: Y.Custom, data: { tag: e, payload: t } });
5791
+ ue({ type: $.Custom, data: { tag: e, payload: t } });
5792
5792
  }, qt.freezePage = () => {
5793
- mt.forEach((e) => e.freeze());
5793
+ ht.forEach((e) => e.freeze());
5794
5794
  }, qt.takeFullSnapshot = (e) => {
5795
5795
  if (!bs) throw new Error("please take full snapshot after start recording");
5796
5796
  ls(e);
@@ -5813,7 +5813,7 @@ function Ut(e, t, r) {
5813
5813
  return ge[n[i + 0]] + ge[n[i + 1]] + ge[n[i + 2]] + ge[n[i + 3]] + "-" + ge[n[i + 4]] + ge[n[i + 5]] + "-" + ge[n[i + 6]] + ge[n[i + 7]] + "-" + ge[n[i + 8]] + ge[n[i + 9]] + "-" + ge[n[i + 10]] + ge[n[i + 11]] + ge[n[i + 12]] + ge[n[i + 13]] + ge[n[i + 14]] + ge[n[i + 15]];
5814
5814
  }(s);
5815
5815
  }
5816
- const Jg = 360, Kg = "ul-app", Zg = "#e6e6e6", Xg = "#bd282a", Qg = 1030, N = new class {
5816
+ const Jg = 360, Kg = "ul-app", Zg = "#e6e6e6", Xg = "#bd282a", Qg = 1030, F = new class {
5817
5817
  constructor() {
5818
5818
  de(this, "breadcrumbs", []);
5819
5819
  }
@@ -5947,7 +5947,7 @@ var Mf = class extends Error {
5947
5947
  }
5948
5948
  }, ru = tu;
5949
5949
  ru.defaultMaxListeners = 10;
5950
- const z = new ru(), vs = async (e) => {
5950
+ const j = new ru(), vs = async (e) => {
5951
5951
  await new Promise((t) => {
5952
5952
  setTimeout(t, e);
5953
5953
  });
@@ -6000,7 +6000,7 @@ class nu {
6000
6000
  const ey = (e, t) => {
6001
6001
  const r = [e[t]], s = e[t].groupId;
6002
6002
  return s ? e.slice(t).reduce((n, i) => (i.groupId === s && n.push(i), n), []) : r;
6003
- }, ty = (e) => e === "longFormSurvey", Q = new nu("sessionStorage"), ut = new nu("localStorage");
6003
+ }, ty = (e) => e === "longFormSurvey", re = new nu("sessionStorage"), ct = new nu("localStorage");
6004
6004
  class Uf {
6005
6005
  constructor(t) {
6006
6006
  de(this, "payload");
@@ -6017,9 +6017,9 @@ class Uf {
6017
6017
  this.resolve(t);
6018
6018
  }
6019
6019
  }
6020
- const re = { replay: null }, Df = () => {
6020
+ const ne = { replay: null }, Df = () => {
6021
6021
  const e = [];
6022
- return re.replay && e.push("replay"), e.join(",");
6022
+ return ne.replay && e.push("replay"), e.join(",");
6023
6023
  }, Pf = 10;
6024
6024
  let iu = !1, ou = "", $r = !1, au = !1, cs = [];
6025
6025
  const _f = (e) => e._config && e._config.installationMethod ? e._config.installationMethod : e._gtm ? "web-gtm" : e._segment ? "web-segment" : "web-snippet", Ha = (e) => {
@@ -6029,7 +6029,7 @@ const _f = (e) => e._config && e._config.installationMethod ? e._config.installa
6029
6029
  iu = !0, ou = e;
6030
6030
  };
6031
6031
  function Ue(e = {}) {
6032
- const t = { "Content-Type": "application/json", "userleap-platform": "web", "x-ul-sdk-version": "2.44.1", "x-ul-installation-method": _f(e), "sprig-modules": Df(), "x-ul-package-version": "2.44.1" };
6032
+ const t = { "Content-Type": "application/json", "userleap-platform": "web", "x-ul-sdk-version": "2.46.0", "x-ul-installation-method": _f(e), "sprig-modules": Df(), "x-ul-package-version": "2.46.0" };
6033
6033
  if (e.envId && (t["x-ul-environment-id"] = e.envId), e.token && (t.Authorization = "Bearer " + e.token), e.userId && (t["x-ul-user-id"] = e.userId), e.visitorId && (t["x-ul-visitor-id"] = e.visitorId), e.partnerAnonymousId && (t["x-ul-anonymous-id"] = e.partnerAnonymousId), e.mobileHeadersJSON) {
6034
6034
  const r = JSON.parse(e.mobileHeadersJSON);
6035
6035
  Object.assign(t, r);
@@ -6076,7 +6076,7 @@ const Ga = async ({ shouldDropOnRateLimit: e, ...t }) => {
6076
6076
  const c = r + 1;
6077
6077
  return c > 5 || au ? { ok: !1, reportError: !1, error: l } : (await vs(1e3 * Math.pow(2, r)), Xe(e, { ...i, retries: c }));
6078
6078
  }
6079
- }, $a = "ul-view-sdk-script", Nf = /* @__PURE__ */ new Set(["ios", "android"]), it = "visitors", ot = "environments";
6079
+ }, $a = "ul-view-sdk-script", Nf = /* @__PURE__ */ new Set(["ios", "android"]), nt = "visitors", it = "environments";
6080
6080
  async function ze(e, t) {
6081
6081
  var i, a, o;
6082
6082
  const { shouldDropOnRateLimit: r, ...s } = t;
@@ -6085,17 +6085,17 @@ async function ze(e, t) {
6085
6085
  if (n.ok) {
6086
6086
  const l = (i = n.headers) == null ? void 0 : i.get("Authorization"), c = l ? l.split(" ") : void 0, u = c && c.length === 2 ? c[1] : void 0, d = (a = n.headers) == null ? void 0 : a.get("x-ul-visitor-id");
6087
6087
  if (window.UserLeap.userId && d === window.UserLeap.visitorId) {
6088
- const h = ut.getItemObject("sprig.anon.env.vid.map");
6089
- h && h[window.UserLeap.envId] === d && (delete h[window.UserLeap.envId], ut.setItemObject("sprig.anon.env.vid.map", h));
6088
+ const p = ct.getItemObject("sprig.anon.env.vid.map");
6089
+ p && p[window.UserLeap.envId] === d && (delete p[window.UserLeap.envId], ct.setItemObject("sprig.anon.env.vid.map", p));
6090
6090
  }
6091
- u && d && (d !== window.UserLeap.visitorId || window.UserLeap.token !== u) && (ke("token", u), ke("vid", d), z.emit(B.VisitorIDUpdated, { visitorId: d }), window.UserLeap.token = u, window.UserLeap.visitorId = d);
6091
+ u && d && (d !== window.UserLeap.visitorId || window.UserLeap.token !== u) && (Ee("token", u), Ee("vid", d), j.emit(B.VisitorIDUpdated, { visitorId: d }), window.UserLeap.token = u, window.UserLeap.visitorId = d);
6092
6092
  }
6093
6093
  return (o = n.json) != null && o.logMessage && console.warn(`[Sprig] ${n.json.logMessage}`), n;
6094
6094
  }
6095
- function ke(e, t) {
6096
- const r = ut.getItemObject("userleap.ids");
6095
+ function Ee(e, t) {
6096
+ const r = ct.getItemObject("userleap.ids");
6097
6097
  let s = r[window.UserLeap.envId];
6098
- s ? s[e] = t : s = { [e]: t }, r[window.UserLeap.envId] = s, ut.setItemObject("userleap.ids", r);
6098
+ s ? s[e] = t : s = { [e]: t }, r[window.UserLeap.envId] = s, ct.setItemObject("userleap.ids", r);
6099
6099
  }
6100
6100
  function eo() {
6101
6101
  return window.previewMode ? "0" : window.UserLeap.visitorId ?? "";
@@ -6103,71 +6103,71 @@ function eo() {
6103
6103
  function Ae(e, t, r) {
6104
6104
  const s = [window.UserLeap._API_URL, "sdk", e];
6105
6105
  return t && t.forEach((n) => {
6106
- s.push(n), n === ot ? s.push(window.UserLeap.envId) : n === it && s.push(eo());
6106
+ s.push(n), n === it ? s.push(window.UserLeap.envId) : n === nt && s.push(eo());
6107
6107
  }), r && s.push(r), s.join("/");
6108
6108
  }
6109
6109
  const tr = async (e, t, r) => {
6110
- var q, me, _e, we;
6111
- const { context: s, delay: n, avatars: i, experimentFlags: a, forceBrandedLogo: o, endCard: l, isFeedback: c = !1, heatmap: u, locale: d, layout: h, previewMode: f, productConfig: w, questions: p, responseGroupUid: C, surveyId: m, uuid: g, vid: v, sessionReplay: I, studyType: O, surveyVisitorAttributes: E } = e, A = Ue(window.UserLeap), M = mr(A), k = Ys(A);
6112
- if (I) if (M) z.emit(B.ReplayCapture, { responseGroupUid: C, hasQuestions: !!(p != null && p.length), surveyId: m, uploadId: I.uploadId, replayType: I.replayDurationType ?? "before", seconds: I.replayDurationSeconds, generateVideoUploadUrlPayload: { mediaRecordingUid: Ut(), mediaType: "screen", questionId: 1, responseGroupUid: C, surveyId: m, updatedAt: (/* @__PURE__ */ new Date()).toISOString(), visitorId: window.UserLeap.visitorId, isReplay: !0 } });
6110
+ var _e, we, ke, wt;
6111
+ const { context: s, delay: n, avatars: i, experimentFlags: a, forceBrandedLogo: o, endCard: l, isFeedback: c = !1, heatmap: u, locale: d, layout: p, previewMode: f, productConfig: w, providerPersona: h, questions: C, responseGroupUid: m, surveyId: g, uuid: v, vid: I, sessionReplay: O, showProviderPersona: E, studyType: U, surveyVisitorAttributes: A } = e, k = Ue(window.UserLeap), L = mr(k), R = Ys(k);
6112
+ if (O) if (L) j.emit(B.ReplayCapture, { responseGroupUid: m, hasQuestions: !!(C != null && C.length), surveyId: g, uploadId: O.uploadId, replayType: O.replayDurationType ?? "before", seconds: O.replayDurationSeconds, generateVideoUploadUrlPayload: { mediaRecordingUid: Ut(), mediaType: "screen", questionId: 1, responseGroupUid: m, surveyId: g, updatedAt: (/* @__PURE__ */ new Date()).toISOString(), visitorId: window.UserLeap.visitorId, isReplay: !0 } });
6113
6113
  else {
6114
- if (!re.replay) return window.UserLeap.reportError("displayQuestions", new Error("Replay module not registered")), { success: !1, message: "Replay module not registered", surveyState: "no survey" };
6115
- re.replay.scheduleOrCaptureReplay({ responseGroupId: C, surveyId: m, visitorId: v, replayParams: I, completeUploadHeaders: A, apiUrl: window.UserLeap._API_URL, triggerTimestamp: Date.now(), isStandalone: p.length === 0 });
6114
+ if (!ne.replay) return window.UserLeap.reportError("displayQuestions", new Error("Replay module not registered")), { success: !1, message: "Replay module not registered", surveyState: "no survey" };
6115
+ ne.replay.scheduleOrCaptureReplay({ responseGroupId: m, surveyId: g, visitorId: I, replayParams: O, completeUploadHeaders: k, apiUrl: window.UserLeap._API_URL, triggerTimestamp: Date.now(), isStandalone: C.length === 0 });
6116
6116
  }
6117
6117
  if (u) {
6118
- if (!re.replay) return window.UserLeap.reportError("displayQuestions", new Error("Replay module not registered")), { success: !1, message: "Replay module not registered", surveyState: "no survey" };
6119
- const { eventId: H, replayParams: Le, responseGroupUid: Qe, surveyId: W } = u;
6120
- await re.replay.initializeReplay({ maxReplayDurationSeconds: 300, maxInflightRequests: window.UserLeap.maxInflightReplayRequests, teardownAfter: !0, apiUrl: window.UserLeap._API_URL, replaySettings: r }), re.replay.tryReplayAction(() => {
6121
- var Ie;
6122
- return (Ie = re.replay) == null ? void 0 : Ie.scheduleCapture({ apiUrl: window.UserLeap._API_URL, completeUploadHeaders: A, eventId: H, isHeatmap: !0, replayParams: Le, responseGroupId: Qe, surveyId: W, triggerTimestamp: Date.now(), visitorId: v });
6118
+ if (!ne.replay) return window.UserLeap.reportError("displayQuestions", new Error("Replay module not registered")), { success: !1, message: "Replay module not registered", surveyState: "no survey" };
6119
+ const { eventId: q, replayParams: z, responseGroupUid: ve, surveyId: J } = u;
6120
+ await ne.replay.initializeReplay({ maxReplayDurationSeconds: 300, maxInflightRequests: window.UserLeap.maxInflightReplayRequests, teardownAfter: !0, apiUrl: window.UserLeap._API_URL, replaySettings: r }), ne.replay.tryReplayAction(() => {
6121
+ var ee;
6122
+ return (ee = ne.replay) == null ? void 0 : ee.scheduleCapture({ apiUrl: window.UserLeap._API_URL, completeUploadHeaders: k, eventId: q, isHeatmap: !0, replayParams: z, responseGroupId: ve, surveyId: J, triggerTimestamp: Date.now(), visitorId: I });
6123
6123
  }, "Error in scheduling/capturing replay");
6124
6124
  }
6125
- if (v == null || !(p != null && p.length)) return N.info("CannotDisplaySurvey", { vid: v }), { success: !1, message: "[Sprig] no survey found", surveyState: window.UserLeap.container ? "previous survey ready" : "no survey" };
6126
- if (Ff(p)) return { success: !1, message: "[Sprig] bundled version does not support video voice", surveyState: "no survey" };
6125
+ if (I == null || !(C != null && C.length)) return F.info("CannotDisplaySurvey", { vid: I }), { success: !1, message: "[Sprig] no survey found", surveyState: window.UserLeap.container ? "previous survey ready" : "no survey" };
6126
+ if (Ff(C)) return { success: !1, message: "[Sprig] bundled version does not support video voice", surveyState: "no survey" };
6127
6127
  if (window.UserLeap.container) {
6128
- N.info("AlreadyDisplayingSurvey");
6129
- const H = "[Sprig] (ERR-409) Found an existing Survey container, aborting rendering of this survey";
6130
- return console.warn(H), { success: !1, message: H, surveyState: "previous survey ready" };
6131
- }
6132
- if (v !== window.UserLeap.visitorId && g !== window.UserLeap.visitorId && !window.previewMode) {
6133
- const H = "Attempted to display survey to a different visitor";
6134
- return window.UserLeap.reportError("DisplaySurvey", new Error(H)), { success: !1, message: H, surveyState: "no survey" };
6135
- }
6136
- N.info("ShowingSurvey", { surveyId: m }), (q = re.replay) == null || q.RecordSurveyShown({ id: m, userAgent: window.navigator.userAgent }), Af.disable(), z.emit(B.SurveyWillPresent, { name: B.SurveyWillPresent, "survey.id": m, layout: h });
6137
- let T, R, S, P, D = document.createElement("div");
6138
- const b = (H) => {
6139
- const { "view.version": Le } = H;
6140
- Le !== A["x-ul-sdk-version"] && cu(), z.removeListener("verify.view.version", b);
6128
+ F.info("AlreadyDisplayingSurvey");
6129
+ const q = "[Sprig] (ERR-409) Found an existing Survey container, aborting rendering of this survey";
6130
+ return console.warn(q), { success: !1, message: q, surveyState: "previous survey ready" };
6131
+ }
6132
+ if (I !== window.UserLeap.visitorId && v !== window.UserLeap.visitorId && !window.previewMode) {
6133
+ const q = "Attempted to display survey to a different visitor";
6134
+ return window.UserLeap.reportError("DisplaySurvey", new Error(q)), { success: !1, message: q, surveyState: "no survey" };
6135
+ }
6136
+ F.info("ShowingSurvey", { surveyId: g }), (_e = ne.replay) == null || _e.RecordSurveyShown({ id: g, userAgent: window.navigator.userAgent }), Af.disable(), j.emit(B.SurveyWillPresent, { name: B.SurveyWillPresent, "survey.id": g, layout: p });
6137
+ let S, P, M, b, y = document.createElement("div");
6138
+ const D = (q) => {
6139
+ const { "view.version": z } = q;
6140
+ z !== k["x-ul-sdk-version"] && cu(), j.removeListener("verify.view.version", D);
6141
6141
  };
6142
- z.on("verify.view.version", b), window.UserLeap.useMobileStyling = k, su(A) ? (T = "ul-direct-embeded-frame", R = document.head, S = window, P = !1, (() => {
6143
- const H = Ue(window.UserLeap), Le = mr(H), Qe = window.UserLeap.forceDirectEmbed, W = H["userleap-platform"] === "web";
6144
- return Le || Qe && W;
6145
- })() && (lu(m, c), D.id = T, window.UserLeap.container.appendChild(D), uu(), z.emit(B.SurveyLifeCycle, { state: "presented" }), z.emit(B.SurveyPresented, { name: B.SurveyPresented, "survey.id": m }))) : { frameId: T, contentWinDocHead: R, contentWindow: S, hasOverlay: P, iframe: D } = jf({ productConfig: w, useMobileStyling: k, surveyId: m, isFeedback: c, enableCspTrustedTypes: (me = window.UserLeap._config) == null ? void 0 : me.enableCspTrustedTypes }), window.UserLeap.frameId = T;
6146
- const y = { apiURL: window.UserLeap._API_URL, avatars: i, cards: p, configureExitOnOverlayClick: (H) => {
6147
- z.once(B.CloseSurveyOnOverlayClick, H);
6148
- }, context: s, endCard: l, envId: window.UserLeap.envId, eventEmitFn: z.emit.bind(z), experimentFlags: a, fontFamily: window.UserLeap.fontFamily, fontFamilyURL: window.UserLeap.fontFamilyURL, forceBrandedLogo: o, frame: D, headers: A, layout: h, locale: d, mobileSDKVersion: window.UserLeap.mobileSDKVersion, previewKey: Q.getItem("sprig.previewKey"), previewMode: f || !!window.previewMode, productConfig: { framePosition: w == null ? void 0 : w.framePosition, desktopDisplay: w == null ? void 0 : w.desktopDisplay, placement: w == null ? void 0 : w.placement }, responseGroupUid: C, startingQuestionIdx: (_e = window.UserLeap.config) == null ? void 0 : _e.startingQuestionIdx, studyType: O, styleNonce: window.UserLeap.styleNonce, surveyId: m, tabTitle: document.title, trackPageViewUrl: t, ulEvents: hr, upchunkLibraryURL: window.UserLeap.upchunkLibraryURL, useMobileStyling: k, userId: g, viewDocument: S == null ? void 0 : S.document, viewWindow: S, visitorAttributes: { externalUserId: window.UserLeap.userId, email: window.UserLeap.email }, surveyVisitorAttributes: E || {}, ...window.UserLeap._config };
6149
- (we = window.UserLeap._config) != null && we.startingQuestionIdx && (window.UserLeap._config = { ...window.UserLeap._config, startingQuestionIdx: null });
6150
- const U = (c ? window.UserLeap.feedbackCustomStyles : window.UserLeap.customStyles) ?? w.customStyles;
6151
- y.customStyles = U, S && (S.__cfg = y);
6152
- const F = window.UserLeap.viewSDKURL ? window.UserLeap.viewSDKURL : y.path, j = document.getElementById($a);
6153
- j && j.remove();
6154
- const L = function() {
6155
- const H = document.createElement("script");
6156
- return window.UserLeap.isMobileSDK || H.setAttribute("type", "module"), window.UserLeap.nonce && H.setAttribute("nonce", window.UserLeap.nonce), H.id = $a, H;
6157
- }(), _ = () => {
6142
+ j.on("verify.view.version", D), window.UserLeap.useMobileStyling = R, su(k) ? (S = "ul-direct-embeded-frame", P = document.head, M = window, b = !1, (() => {
6143
+ const q = Ue(window.UserLeap), z = mr(q), ve = window.UserLeap.forceDirectEmbed, J = q["userleap-platform"] === "web";
6144
+ return z || ve && J;
6145
+ })() && (lu(g, c), y.id = S, window.UserLeap.container.appendChild(y), uu(), j.emit(B.SurveyLifeCycle, { state: "presented" }), j.emit(B.SurveyPresented, { name: B.SurveyPresented, "survey.id": g }))) : { frameId: S, contentWinDocHead: P, contentWindow: M, hasOverlay: b, iframe: y } = jf({ productConfig: w, useMobileStyling: R, surveyId: g, isFeedback: c, enableCspTrustedTypes: (we = window.UserLeap._config) == null ? void 0 : we.enableCspTrustedTypes }), window.UserLeap.frameId = S;
6146
+ const _ = { apiURL: window.UserLeap._API_URL, avatars: i, cards: C, configureExitOnOverlayClick: (q) => {
6147
+ j.once(B.CloseSurveyOnOverlayClick, q);
6148
+ }, context: s, endCard: l, envId: window.UserLeap.envId, eventEmitFn: j.emit.bind(j), experimentFlags: a, fontFamily: window.UserLeap.fontFamily, fontFamilyURL: window.UserLeap.fontFamilyURL, forceBrandedLogo: o, frame: y, headers: k, layout: p, locale: d, mobileSDKVersion: window.UserLeap.mobileSDKVersion, previewKey: re.getItem("sprig.previewKey"), previewMode: f || !!window.previewMode, productConfig: { framePosition: w == null ? void 0 : w.framePosition, desktopDisplay: w == null ? void 0 : w.desktopDisplay, placement: w == null ? void 0 : w.placement }, providerPersona: h, responseGroupUid: m, showProviderPersona: E, startingQuestionIdx: (ke = window.UserLeap.config) == null ? void 0 : ke.startingQuestionIdx, studyType: U, styleNonce: window.UserLeap.styleNonce, surveyId: g, tabTitle: document.title, trackPageViewUrl: t, ulEvents: hr, upchunkLibraryURL: window.UserLeap.upchunkLibraryURL, useMobileStyling: R, userId: v, viewDocument: M == null ? void 0 : M.document, viewWindow: M, visitorAttributes: { externalUserId: window.UserLeap.userId, email: window.UserLeap.email }, surveyVisitorAttributes: A || {}, ...window.UserLeap._config };
6149
+ (wt = window.UserLeap._config) != null && wt.startingQuestionIdx && (window.UserLeap._config = { ...window.UserLeap._config, startingQuestionIdx: null });
6150
+ const W = (c ? window.UserLeap.feedbackCustomStyles : window.UserLeap.customStyles) ?? w.customStyles;
6151
+ _.customStyles = W, M && (M.__cfg = _);
6152
+ const T = window.UserLeap.viewSDKURL ? window.UserLeap.viewSDKURL : _.path, N = document.getElementById($a);
6153
+ N && N.remove();
6154
+ const Q = function() {
6155
+ const q = document.createElement("script");
6156
+ return window.UserLeap.isMobileSDK || q.setAttribute("type", "module"), window.UserLeap.nonce && q.setAttribute("nonce", window.UserLeap.nonce), q.id = $a, q;
6157
+ }(), Y = () => {
6158
6158
  window.UserLeap.container && Object.assign(window.UserLeap.container.style, { display: "flex" });
6159
6159
  };
6160
- if (y.installationMethod === "web-npm" || y.installationMethod === "web-npm-bundled") {
6161
- const { default: H } = await import("./view-Bu60Bbor.js").then((Le) => Le.B);
6162
- H.configure(y), P && window.UserLeap.container && _();
6163
- } else F && (L.src = `${F}${window.UserLeap.isMobileSDK ? "" : `?t=${Date.now()}`}`, P && L.addEventListener("load", () => {
6164
- window.UserLeap.container && _();
6165
- }), S == null || S.addEventListener("error", (H) => {
6166
- H.target instanceof HTMLScriptElement && H.target.src === F && window.UserLeap.reportError("loadFrameScript", new Error("Frame script failed to load"));
6160
+ if (_.installationMethod === "web-npm" || _.installationMethod === "web-npm-bundled") {
6161
+ const { default: q } = await import("./view-RRtNaAXH.js").then((z) => z.C);
6162
+ q.configure(_), b && window.UserLeap.container && Y();
6163
+ } else T && (Q.src = `${T}${window.UserLeap.isMobileSDK ? "" : `?t=${Date.now()}`}`, b && Q.addEventListener("load", () => {
6164
+ window.UserLeap.container && Y();
6165
+ }), M == null || M.addEventListener("error", (q) => {
6166
+ q.target instanceof HTMLScriptElement && q.target.src === T && window.UserLeap.reportError("loadFrameScript", new Error("Frame script failed to load"));
6167
6167
  }, { capture: !0, once: !0 }));
6168
- R == null || R.appendChild(L);
6169
- const ee = { success: !0, surveyState: "ready", surveyId: m, responseGroupUid: C };
6170
- return window.UserLeap.isMobileSDK && n && (ee.delay = n), ee;
6168
+ P == null || P.appendChild(Q);
6169
+ const me = { success: !0, surveyState: "ready", surveyId: g, responseGroupUid: m };
6170
+ return window.UserLeap.isMobileSDK && n && (me.delay = n), me;
6171
6171
  };
6172
6172
  function Ys(e) {
6173
6173
  var r;
@@ -6205,13 +6205,13 @@ const mn = "0px", lu = (e, t, r) => {
6205
6205
  Vf();
6206
6206
  const r = globalThis.UserLeap.container;
6207
6207
  if (r) try {
6208
- (s = r.parentNode) == null || s.removeChild(r), globalThis.UserLeap.container = null, ke("trackStartUrl", null), z.emit(B.SurveyLifeCycle, { state: "dismissed" }), z.emit(B.SurveyClosed, { name: B.SurveyClosed, initiator: e, "survey.id": parseInt(r.dataset.studyId), ...t && { studyType: t } });
6208
+ (s = r.parentNode) == null || s.removeChild(r), globalThis.UserLeap.container = null, Ee("trackStartUrl", null), j.emit(B.SurveyLifeCycle, { state: "dismissed" }), j.emit(B.SurveyClosed, { name: B.SurveyClosed, initiator: e, "survey.id": parseInt(r.dataset.studyId), ...t && { studyType: t } });
6209
6209
  } catch (n) {
6210
6210
  console.warn(`[Sprig] (ERR-412) Error removing UserLeap container by ${e} ` + r), n instanceof Error && globalThis.UserLeap.reportError("dismissActiveSurvey", n);
6211
6211
  }
6212
6212
  }, uu = () => {
6213
- z.once(B.SurveyWillClose, ({ initiator: e, studyType: t }) => {
6214
- z.removeAllListeners(B.CloseSurveyOnOverlayClick), cu(e, t);
6213
+ j.once(B.SurveyWillClose, ({ initiator: e, studyType: t }) => {
6214
+ j.removeAllListeners(B.CloseSurveyOnOverlayClick), cu(e, t);
6215
6215
  });
6216
6216
  }, zf = (e, t, r, s) => {
6217
6217
  var u, d;
@@ -6222,10 +6222,10 @@ const mn = "0px", lu = (e, t, r) => {
6222
6222
  if (r) (u = globalThis.UserLeap.windowDimensions) != null && u.width ? n.width = `${globalThis.UserLeap.windowDimensions.width}px` : n.width = "100%", (d = globalThis.UserLeap.windowDimensions) != null && d.height ? n.maxHeight = globalThis.UserLeap.windowDimensions.height - 20 + "px" : globalThis.UserLeap.maxHeight ? n.maxHeight = globalThis.UserLeap.maxHeight : n.maxHeight = document.body.clientHeight - 20 + "px", ["light", "dark"].includes(i.overlayStyleMobile) && (c = !0);
6223
6223
  else {
6224
6224
  n.width = "360px", n.maxHeight = globalThis.UserLeap.maxHeight || "66vh";
6225
- const h = () => {
6225
+ const p = () => {
6226
6226
  c = !0, l = { margin: "auto", position: "static" };
6227
6227
  };
6228
- if (s) o ? h() : l = { position: "relative", height: "300px" };
6228
+ if (s) o ? p() : l = { position: "relative", height: "300px" };
6229
6229
  else switch (i.framePosition) {
6230
6230
  case "bottomLeft":
6231
6231
  l = { left: mn };
@@ -6237,12 +6237,12 @@ const mn = "0px", lu = (e, t, r) => {
6237
6237
  l = { top: 0 };
6238
6238
  break;
6239
6239
  case "center":
6240
- h();
6240
+ p();
6241
6241
  }
6242
6242
  }
6243
- return c && ((h, f) => {
6244
- const w = { position: "fixed", overflow: "auto", top: "0px", left: "0px", display: "none", height: "100%", width: "100%", transition: "background-color 0.3s ease-out", zIndex: 2147483646 }, p = f ? h.overlayStyleMobile : h.overlayStyle;
6245
- w["background-color"] = p === "light" ? "rgba(255,255,255, 0.95)" : "rgba(0,0,0,0.9)", f || (w.margin = "auto"), globalThis.UserLeap.container && Object.assign(globalThis.UserLeap.container.style, w);
6243
+ return c && ((p, f) => {
6244
+ const w = { position: "fixed", overflow: "auto", top: "0px", left: "0px", display: "none", height: "100%", width: "100%", transition: "background-color 0.3s ease-out", zIndex: 2147483646 }, h = f ? p.overlayStyleMobile : p.overlayStyle;
6245
+ w["background-color"] = h === "light" ? "rgba(255,255,255, 0.95)" : "rgba(0,0,0,0.9)", f || (w.margin = "auto"), globalThis.UserLeap.container && Object.assign(globalThis.UserLeap.container.style, w);
6246
6246
  })(i, r), Object.assign(e.style, n, l), c;
6247
6247
  }, jf = ({ productConfig: e, useMobileStyling: t, surveyId: r, isFeedback: s, enableCspTrustedTypes: n }) => {
6248
6248
  var f, w;
@@ -6253,31 +6253,31 @@ const mn = "0px", lu = (e, t, r) => {
6253
6253
  const l = zf(o, e, t, s);
6254
6254
  uu();
6255
6255
  let c = !1;
6256
- o.setHeight = (p) => {
6257
- parseInt(o.style.height) == p && c || (c = !0, o.style.height = `${p}px`, z.emit(B.SurveyHeight, { name: B.SurveyHeight, contentFrameHeight: p, "survey.id": r }));
6256
+ o.setHeight = (h) => {
6257
+ parseInt(o.style.height) == h && c || (c = !0, o.style.height = `${h}px`, j.emit(B.SurveyHeight, { name: B.SurveyHeight, contentFrameHeight: h, "survey.id": r }));
6258
6258
  };
6259
6259
  let u = !1;
6260
- o.setWidth = (p) => {
6261
- parseInt(o.style.width) == p && u || (u = !0, o.style.width = `${p}px`, z.emit(B.SurveyWidth, { name: B.SurveyWidth, contentFrameWidth: p, "survey.id": r }));
6260
+ o.setWidth = (h) => {
6261
+ parseInt(o.style.width) == h && u || (u = !0, o.style.width = `${h}px`, j.emit(B.SurveyWidth, { name: B.SurveyWidth, contentFrameWidth: h, "survey.id": r }));
6262
6262
  }, (f = globalThis.UserLeap.container) == null || f.appendChild(o), e && (t ? e.exitOnOverlayClickMobile : e.exitOnOverlayClick) && globalThis.UserLeap.container && (globalThis.UserLeap.container.onclick = () => {
6263
- z.emit(B.CloseSurveyOnOverlayClick);
6264
- }), z.emit(B.SurveyLifeCycle, { state: "presented" }), z.emit(B.SurveyPresented, { name: B.SurveyPresented, "survey.id": r });
6263
+ j.emit(B.CloseSurveyOnOverlayClick);
6264
+ }), j.emit(B.SurveyLifeCycle, { state: "presented" }), j.emit(B.SurveyPresented, { name: B.SurveyPresented, "survey.id": r });
6265
6265
  const d = (w = o.contentWindow) == null ? void 0 : w.document;
6266
6266
  if (d && (d.open("text/html", "replace"), d.write(to("<!doctype html><head></head><body></body></html>", n, o.contentWindow)), d.close(), !t)) {
6267
- const p = d.body;
6268
- p.style.display = "flex", p.style.alignItems = "center";
6267
+ const h = d.body;
6268
+ h.style.display = "flex", h.style.alignItems = "center";
6269
6269
  }
6270
- const h = d == null ? void 0 : d.head;
6271
- return { frameId: i, contentWinDocHead: h, contentWindow: o.contentWindow, hasOverlay: l, iframe: o };
6270
+ const p = d == null ? void 0 : d.head;
6271
+ return { frameId: i, contentWinDocHead: p, contentWindow: o.contentWindow, hasOverlay: l, iframe: o };
6272
6272
  }, du = { [B.SurveyFadingOut]: () => {
6273
6273
  globalThis.UserLeap.container && Object.assign(globalThis.UserLeap.container.style, { "background-color": "rgba(0,0,0,0)" });
6274
6274
  } }, Wf = () => {
6275
6275
  Object.entries(du).forEach(([e, t]) => {
6276
- z.on(e, t);
6276
+ j.on(e, t);
6277
6277
  });
6278
6278
  }, Vf = () => {
6279
6279
  Object.entries(du).forEach(([e, t]) => {
6280
- z.off(e, t);
6280
+ j.off(e, t);
6281
6281
  });
6282
6282
  }, qa = Object.freeze({ contains: (e, t) => t.includes(e), notContains: (e, t) => !t.includes(e), exactly: (e, t) => t === e, notExactly: (e, t) => t !== e, startsWith: (e, t) => t.startsWith(e), endsWith: (e, t) => t.endsWith(e), regex: (e, t) => new RegExp(e).test(t), legacy: (e, t) => new RegExp(e, "i").test(t) });
6283
6283
  function so(e, t) {
@@ -6294,26 +6294,26 @@ function so(e, t) {
6294
6294
  const pu = (e) => {
6295
6295
  const { pageUrlEvents: t } = window.UserLeap._config, r = t == null ? void 0 : t.find((s) => s.id === e);
6296
6296
  return !!r && so(r, window.location.href);
6297
- }, st = (e) => !!e && e.nodeType === Node.ELEMENT_NODE, Ja = (e) => e instanceof HTMLElement || e instanceof SVGElement, Ss = ({ document: e, elementId: t, styleString: r, nonce: s }) => {
6297
+ }, rt = (e) => !!e && e.nodeType === Node.ELEMENT_NODE, Ja = (e) => e instanceof HTMLElement || e instanceof SVGElement, Ss = ({ document: e, elementId: t, styleString: r, nonce: s }) => {
6298
6298
  const n = e.getElementById(t);
6299
6299
  if (n) return void (n.textContent = r);
6300
6300
  const i = e.createElement("style");
6301
6301
  s && (i.nonce = s), i.textContent = r, i.id = t, e.head.appendChild(i);
6302
6302
  }, Ka = (e, t) => {
6303
6303
  const r = t.querySelector(e);
6304
- if (!st(r)) return 0;
6304
+ if (!rt(r)) return 0;
6305
6305
  const s = getComputedStyle(r);
6306
6306
  return parseFloat(s.paddingLeft) + parseFloat(s.paddingRight) + (parseFloat(s.marginLeft) + parseFloat(s.marginRight)) + (parseFloat(s.borderLeftWidth) + parseFloat(s.borderRightWidth));
6307
6307
  }, Hf = (e, t, r) => {
6308
6308
  const s = e.querySelector(".ul-card__container"), n = e.querySelector(".ul-app");
6309
6309
  let i = 600, a = 360;
6310
- if (st(s) && st(n)) {
6310
+ if (rt(s) && rt(n)) {
6311
6311
  const o = s.querySelector(".ul-card--matrix_grid"), l = !o && t && r;
6312
6312
  try {
6313
6313
  l && (n.style.width = "360px"), i = s.scrollHeight, i += ((d) => {
6314
- const h = d.querySelector(".sprig-question-body"), f = d.querySelector(".ul-card"), w = d.querySelector(".ul-card-main-content"), p = d.querySelector(".ul-footer"), C = d.querySelector(".sprig-container");
6314
+ const p = d.querySelector(".sprig-question-body"), f = d.querySelector(".ul-card"), w = d.querySelector(".ul-card-main-content"), h = d.querySelector(".ul-footer"), C = d.querySelector(".sprig-container");
6315
6315
  let m = 0;
6316
- return st(f) && (m += f.scrollHeight - f.clientHeight), st(w) && (m += w.scrollHeight - w.clientHeight), st(h) && (m += h.scrollHeight - h.clientHeight), st(p) && st(C) && C.clientHeight === 0 && (m += p.clientHeight), m;
6316
+ return rt(f) && (m += f.scrollHeight - f.clientHeight), rt(w) && (m += w.scrollHeight - w.clientHeight), rt(p) && (m += p.scrollHeight - p.clientHeight), rt(h) && rt(C) && C.clientHeight === 0 && (m += h.clientHeight), m;
6317
6317
  })(e);
6318
6318
  const c = getComputedStyle(s), u = parseFloat(c.marginTop) + parseFloat(c.marginBottom);
6319
6319
  i += u + (parseFloat(c.borderTopWidth) + parseFloat(c.borderBottomWidth)), o && (a = o.scrollWidth, a += Ka(".ul-card__container", e), a += Ka(".sprig-question-body", e));
@@ -6325,32 +6325,32 @@ const pu = (e) => {
6325
6325
  }, ry = (e) => {
6326
6326
  const t = e.querySelector(".ul-card__container");
6327
6327
  t && (t.scrollTop = 0);
6328
- }, hu = () => X, Rt = () => document.getElementById("sprig-feedback-container"), ui = () => document.getElementById("sprig-feedback-loading-animation"), mu = () => !!document.getElementById(ro);
6329
- let Za = !1, X = null, je = null, no = !1, rr = null, pt = null;
6328
+ }, hu = () => te, Rt = () => document.getElementById("sprig-feedback-container"), ui = () => document.getElementById("sprig-feedback-loading-animation"), mu = () => !!document.getElementById(ro);
6329
+ let Za = !1, te = null, je = null, no = !1, rr = null, dt = null;
6330
6330
  const Gf = ["bottom-left", "bottom-right", "center-left", "center-right"], Is = () => {
6331
6331
  var t;
6332
6332
  const e = window.UserLeap.container;
6333
6333
  return ((t = e == null ? void 0 : e.parentElement) == null ? void 0 : t.id) === "sprig-feedback-loading-container";
6334
6334
  }, fu = () => document.getElementById("sprig-feedback-error-container"), gu = () => {
6335
- if (!X) return 0;
6336
- const e = X == null ? void 0 : X.clientWidth, t = window.getComputedStyle(X);
6335
+ if (!te) return 0;
6336
+ const e = te == null ? void 0 : te.clientWidth, t = window.getComputedStyle(te);
6337
6337
  return e + parseInt(t.borderRightWidth || "0") + parseInt(t.borderLeftWidth || "0");
6338
6338
  }, Cs = (e) => {
6339
6339
  const t = Rt();
6340
- t && (pt != null && pt.endsWith("right") ? t.style.right = `${e}px` : pt != null && pt.endsWith("left") && (t.style.left = `${e}px`));
6340
+ t && (dt != null && dt.endsWith("right") ? t.style.right = `${e}px` : dt != null && dt.endsWith("left") && (t.style.left = `${e}px`));
6341
6341
  }, fn = () => {
6342
- if (X && (Is() || fu())) {
6343
- z.off(B.SurveyAppeared, Jt), di();
6342
+ if (te && (Is() || fu())) {
6343
+ j.off(B.SurveyAppeared, Jt), di();
6344
6344
  const e = gu();
6345
6345
  return Cs(-e), !0;
6346
6346
  }
6347
6347
  return !1;
6348
6348
  }, Jt = () => {
6349
- if (!X || !je) return;
6349
+ if (!te || !je) return;
6350
6350
  const e = ui();
6351
- e && e.remove(), X.style.height = "auto", X.style.width = "auto", je.disabled = !1, no = !1;
6351
+ e && e.remove(), te.style.height = "auto", te.style.width = "auto", je.disabled = !1, no = !1;
6352
6352
  }, di = () => {
6353
- if (X && !ui()) {
6353
+ if (te && !ui()) {
6354
6354
  const e = (() => {
6355
6355
  var r;
6356
6356
  if (ui()) return;
@@ -6364,56 +6364,56 @@ const Gf = ["bottom-left", "bottom-right", "center-left", "center-right"], Is =
6364
6364
  </div>
6365
6365
  `, (r = window.UserLeap._config) == null ? void 0 : r.enableCspTrustedTypes), t;
6366
6366
  })();
6367
- e && (X.style.height = "300px", X.style.width = "360px", X.appendChild(e));
6367
+ e && (te.style.height = "300px", te.style.width = "360px", te.appendChild(e));
6368
6368
  }
6369
6369
  }, Xa = () => {
6370
- X && je && (Cs(0), je.disabled = !0, no = !0);
6370
+ te && je && (Cs(0), je.disabled = !0, no = !0);
6371
6371
  }, yu = async (e, t, r) => {
6372
6372
  const { buttonTheme: s, customStyles: n, eventId: i, placement: a, desktopDisplay: o, feedbackLabel: l, surveyUuid: c, surveyId: u } = e;
6373
6373
  window.UserLeap.feedbackCustomStyles = void 0;
6374
6374
  let d = Rt();
6375
6375
  if (d) {
6376
6376
  if (!t && i === rr) return;
6377
- d.remove(), z.off(hr.SURVEY_FADING_OUT, fn);
6377
+ d.remove(), j.off(hr.SURVEY_FADING_OUT, fn);
6378
6378
  }
6379
- rr = i, Ss({ document, elementId: "sprig-feedback-style", styleString: '.ul-loading-spinner-container{font-size:1.8rem;flex-grow:1;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.ul-loading-spinner{display:inline-block;position:relative;width:6rem;height:6rem}.ul-loading-spinner div{box-sizing:border-box;display:block;position:absolute;width:80%;height:80%;margin:5px;border:5px solid #152e3e;border-radius:50%;animation:lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#152e3e transparent transparent transparent}.ul-loading-spinner .first{animation-delay:-.45s}.ul-loading-spinner .second{animation-delay:-.3s}.ul-loading-spinner .third{animation-delay:-.15s}@keyframes lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.fade-in-transition{animation:fadeIn .4s ease-in}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}#sprig-feedback-button{border-left:0;border-radius:0 8px 8px 0;display:grid;padding:8px;text-align:center;transition:all ease-in-out 1s;z-index:inherit}#sprig-feedback-button:hover{cursor:pointer}.sprig-feedback-button-label{writing-mode:vertical-lr;text-orientation:sideways}.sprig-feedback-button-right{transform:rotate(180deg)}.sprig-feedback-button-bottom{align-self:flex-end;margin-bottom:20px}.sprig-feedback-button-light{background:#efefee;color:#000;border:1px solid #e2e3e1}.sprig-feedback-button-dark{background:#000;color:#fff;border:1px solid #000000}#sprig-feedback-container{display:flex;align-items:center;position:fixed;transition:right .2s linear,left .2s linear;z-index:2147483646}.sprig-feedback-container-left{flex-flow:row-reverse}.sprig-feedback-container-center{top:50%;transform:translateY(-50%)}.sprig-feedback-container-bottom{bottom:0%;margin-bottom:15px}.sprig-feedback-loading-container{align-items:center;background-color:#fff;border:2px solid var(--feedback-border);display:flex;max-height:90vh;max-width:90vw;min-width:0px}.sprig-feedback-loading-container-left{border-left:none;border-radius:0 8px 8px 0}.sprig-feedback-loading-container-right{border-right:none;border-radius:8px 0 0 8px}#sprig-feedback-error-container{margin:auto;text-align:center;width:360px}.sprig-feedback-error-text{font-weight:400;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol}#sprig-feedback-loading-container .ul-container{position:relative;max-height:inherit}#sprig-feedback-loading-animation{position:absolute}.sprig-feedback-loading-container-previews iframe{max-height:inherit!important}', nonce: window.UserLeap.styleNonce }), Ss({ document, elementId: "ul-custom-style", styleString: n ?? "", nonce: window.UserLeap.styleNonce }), Za = o === "center-modal", pt = a;
6380
- const [h, f] = a.split("-");
6379
+ rr = i, Ss({ document, elementId: "sprig-feedback-style", styleString: '.ul-loading-spinner-container{font-size:1.8rem;flex-grow:1;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.ul-loading-spinner{display:inline-block;position:relative;width:6rem;height:6rem}.ul-loading-spinner div{box-sizing:border-box;display:block;position:absolute;width:80%;height:80%;margin:5px;border:5px solid #152e3e;border-radius:50%;animation:lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#152e3e transparent transparent transparent}.ul-loading-spinner .first{animation-delay:-.45s}.ul-loading-spinner .second{animation-delay:-.3s}.ul-loading-spinner .third{animation-delay:-.15s}@keyframes lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.fade-in-transition{animation:fadeIn .4s ease-in}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}#sprig-feedback-button{border-left:0;border-radius:0 8px 8px 0;display:grid;padding:8px;text-align:center;transition:all ease-in-out 1s;z-index:inherit}#sprig-feedback-button:hover{cursor:pointer}.sprig-feedback-button-label{writing-mode:vertical-lr;text-orientation:sideways}.sprig-feedback-button-right{transform:rotate(180deg)}.sprig-feedback-button-bottom{align-self:flex-end;margin-bottom:20px}.sprig-feedback-button-light{background:#efefee;color:#000;border:1px solid #e2e3e1}.sprig-feedback-button-dark{background:#000;color:#fff;border:1px solid #000000}#sprig-feedback-container{display:flex;align-items:center;position:fixed;transition:right .2s linear,left .2s linear;z-index:2147483646}.sprig-feedback-container-left{flex-flow:row-reverse}.sprig-feedback-container-center{top:50%;transform:translateY(-50%)}.sprig-feedback-container-bottom{bottom:0%;margin-bottom:15px}.sprig-feedback-loading-container{align-items:center;background-color:#fff;border:2px solid var(--feedback-border);display:flex;max-height:90vh;max-width:90vw;min-width:0px}.sprig-feedback-loading-container-left{border-left:none;border-radius:0 8px 8px 0}.sprig-feedback-loading-container-right{border-right:none;border-radius:8px 0 0 8px}#sprig-feedback-error-container{margin:auto;text-align:center;width:360px}.sprig-feedback-error-text{font-weight:400;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol}#sprig-feedback-loading-container .ul-container{position:relative;max-height:inherit}#sprig-feedback-loading-animation{position:absolute}.sprig-feedback-loading-container-previews iframe{max-height:inherit!important}', nonce: window.UserLeap.styleNonce }), Ss({ document, elementId: "ul-custom-style", styleString: n ?? "", nonce: window.UserLeap.styleNonce }), Za = o === "center-modal", dt = a;
6380
+ const [p, f] = a.split("-");
6381
6381
  ((m) => {
6382
6382
  if (Rt() || !Gf.includes(m)) return;
6383
6383
  const [g, v] = m.split("-"), I = document.createElement("div");
6384
6384
  I.id = "sprig-feedback-container", I.classList.add(`sprig-feedback-container-${v}`, `sprig-feedback-container-${g}`), document.body.appendChild(I);
6385
6385
  })(a), d = Rt(), je = document.createElement("button");
6386
6386
  const w = document.createElement("div");
6387
- w.className = "sprig-feedback-button-label", w.innerText = l, je.appendChild(w), je.id = "sprig-feedback-button", je.classList.add(`sprig-feedback-button-${f}`, `sprig-feedback-button-${h}`, `sprig-feedback-button-${s}`, "fade-in-transition"), z.on(hr.SURVEY_FADING_OUT, fn), je.addEventListener("click", async () => {
6387
+ w.className = "sprig-feedback-button-label", w.innerText = l, je.appendChild(w), je.id = "sprig-feedback-button", je.classList.add(`sprig-feedback-button-${f}`, `sprig-feedback-button-${p}`, `sprig-feedback-button-${s}`, "fade-in-transition"), j.on(hr.SURVEY_FADING_OUT, fn), je.addEventListener("click", async () => {
6388
6388
  const m = document.getElementById("sprig-feedback-error-container");
6389
6389
  if (mu() || fu()) {
6390
6390
  if (fn()) {
6391
- z.emit(B.SurveyCloseRequested, { name: B.SurveyCloseRequested, initiator: Be.FeedbackClosed, studyType: "feedbackButton", "survey.id": u }), z.emit(B.SurveyWillClose, { name: B.SurveyWillClose, initiator: Be.FeedbackClosed, studyType: "feedbackButton", "survey.id": u });
6391
+ j.emit(B.SurveyCloseRequested, { name: B.SurveyCloseRequested, initiator: Be.FeedbackClosed, studyType: "feedbackButton", "survey.id": u }), j.emit(B.SurveyWillClose, { name: B.SurveyWillClose, initiator: Be.FeedbackClosed, studyType: "feedbackButton", "survey.id": u });
6392
6392
  const v = Rt();
6393
- m && v && (v.remove(), rr = null, X = null);
6393
+ m && v && (v.remove(), rr = null, te = null);
6394
6394
  }
6395
6395
  return;
6396
6396
  }
6397
- if (Ys(Ue(window.UserLeap)) || no || Xa(), t) return X && X.classList.add("sprig-feedback-loading-container-previews"), await tr(t), void Jt();
6397
+ if (Ys(Ue(window.UserLeap)) || no || Xa(), t) return te && te.classList.add("sprig-feedback-loading-container-previews"), await tr(t), void Jt();
6398
6398
  const g = await (async (v) => {
6399
- const I = await ze(Ae("1", [it], "startFeedbackStudy"), { body: JSON.stringify({ surveyUuid: v }), method: "POST" });
6399
+ const I = await ze(Ae("1", [nt], "startFeedbackStudy"), { body: JSON.stringify({ surveyUuid: v }), method: "POST" });
6400
6400
  return I.ok ? I.json : null;
6401
6401
  })(c);
6402
- if (g) z.once(B.SurveyAppeared, Jt), tr({ ...g, studyType: "feedbackButton" }, r);
6403
- else if (X) {
6402
+ if (g) j.once(B.SurveyAppeared, Jt), tr({ ...g, studyType: "feedbackButton" }, r);
6403
+ else if (te) {
6404
6404
  const v = $f();
6405
- X.appendChild(v), Jt(), X.style.height = "300px", X.style.width = "360px";
6405
+ te.appendChild(v), Jt(), te.style.height = "300px", te.style.width = "360px";
6406
6406
  }
6407
- }), d == null || d.appendChild(je), z.emit(B.FeedbackButtonLoaded, { name: B.FeedbackButtonLoaded, "survey.id": u });
6408
- const { useMobileStyling: p, _config: { border: C } } = window.UserLeap;
6409
- if (Za || p) Cs(0);
6407
+ }), d == null || d.appendChild(je), j.emit(B.FeedbackButtonLoaded, { name: B.FeedbackButtonLoaded, "survey.id": u });
6408
+ const { useMobileStyling: h, _config: { border: C } } = window.UserLeap;
6409
+ if (Za || h) Cs(0);
6410
6410
  else {
6411
6411
  const m = document.createElement("div");
6412
- m.id = "sprig-feedback-loading-container", m.className = `sprig-feedback-loading-container sprig-feedback-loading-container-${f}`, m.style.setProperty("--feedback-border", C), X = m, di(), d == null || d.appendChild(m);
6412
+ m.id = "sprig-feedback-loading-container", m.className = `sprig-feedback-loading-container sprig-feedback-loading-container-${f}`, m.style.setProperty("--feedback-border", C), te = m, di(), d == null || d.appendChild(m);
6413
6413
  const g = gu();
6414
6414
  Cs(-g);
6415
6415
  }
6416
- window.UserLeap._config.isOnQuestionsTab && t && !Is() && X && (Xa(), di(), X && X.classList.add("sprig-feedback-loading-container-previews"), tr(t), Jt());
6416
+ window.UserLeap._config.isOnQuestionsTab && t && !Is() && te && (Xa(), di(), te && te.classList.add("sprig-feedback-loading-container-previews"), tr(t), Jt());
6417
6417
  }, $f = () => {
6418
6418
  var r;
6419
6419
  const e = document.createElement("div");
@@ -6576,7 +6576,7 @@ const wr = {}, Ve = (e) => {
6576
6576
  if (s.some((n) => n.values.length)) try {
6577
6577
  await r(JSON.stringify(s));
6578
6578
  } catch (n) {
6579
- n instanceof Error && N.error("MetricsErr", { error: { message: n.message, name: n.name } });
6579
+ n instanceof Error && F.error("MetricsErr", { error: { message: n.message, name: n.name } });
6580
6580
  }
6581
6581
  })(t);
6582
6582
  }, 1e3 * e) : wu = !1;
@@ -6595,10 +6595,10 @@ const fi = (e) => {
6595
6595
  t.report(s / 1e3), setTimeout(() => gi(e, t), e);
6596
6596
  }, 0);
6597
6597
  };
6598
- let ks, Es, xs, Ts, el, ht = {};
6598
+ let ks, Es, xs, Ts, el, pt = {};
6599
6599
  const Yr = (e, t = 1) => {
6600
6600
  const { name: r } = e;
6601
- ht[r] = (ht[r] || 0) + t;
6601
+ pt[r] = (pt[r] || 0) + t;
6602
6602
  }, Iu = (e) => {
6603
6603
  let t = 1;
6604
6604
  return e.childNodes.forEach((r) => {
@@ -6619,7 +6619,7 @@ const Yr = (e, t = 1) => {
6619
6619
  return void Yr(Ts);
6620
6620
  }
6621
6621
  }, Xf = (e) => e.forEach(Zf), Qf = () => {
6622
- ks.report(ht[ks.name] || 0), Es.report(ht[Es.name] || 0), xs.report(ht[xs.name] || 0), Ts.report(ht[Ts.name] || 0), ht = {};
6622
+ ks.report(pt[ks.name] || 0), Es.report(pt[Es.name] || 0), xs.report(pt[xs.name] || 0), Ts.report(pt[Ts.name] || 0), pt = {};
6623
6623
  }, eg = (e = 1e3) => {
6624
6624
  ks = Ve("sdk_mutations_nodes_added"), Es = Ve("sdk_mutations_nodes_removed"), xs = Ve("sdk_mutations_attributes_changed"), Ts = Ve("sdk_mutations_character_data"), el = new MutationObserver(Xf), el.observe(document, { attributes: !0, attributeOldValue: !0, characterData: !0, characterDataOldValue: !0, childList: !0, subtree: !0 }), setInterval(Qf, e);
6625
6625
  }, tg = ({ isWeb: e, reportingIntervalSeconds: t, thresholds: r, postMetrics: s }) => {
@@ -6630,9 +6630,9 @@ const Yr = (e, t = 1) => {
6630
6630
  }), mi = i;
6631
6631
  })(r, (n, i) => {
6632
6632
  var a, o;
6633
- if ((a = re.replay) != null && a.isReplayRecording()) {
6633
+ if ((a = ne.replay) != null && a.isReplayRecording()) {
6634
6634
  const l = `Value: ${n} on ${i.metric} violated threshold of ${i.type} ${i.value}`;
6635
- (o = re.replay) == null || o.disableRecording("Threshold violated", new Error(l), { reportError: !1 }), window.UserLeap.reportError("Sdk Performance Metric threshold violated", new Error("Sdk Performance Metric threshold violated"), { metricName: i.metric, type: i.type, value: i.value }, { metricName: i.metric }), hi = !0;
6635
+ (o = ne.replay) == null || o.disableRecording("Threshold violated", new Error(l), { reportError: !1 }), window.UserLeap.reportError("Sdk Performance Metric threshold violated", new Error("Sdk Performance Metric threshold violated"), { metricName: i.metric, type: i.type, value: i.value }, { metricName: i.metric }), hi = !0;
6636
6636
  }
6637
6637
  }), Kf({ reportingIntervalSeconds: t, postMetrics: s }), e && (((n = 1e3) => {
6638
6638
  const i = Ve("sdk_event_queue_latency_seconds");
@@ -6649,15 +6649,15 @@ function nr(e) {
6649
6649
  var o, l;
6650
6650
  const { pageUrlEvents: t, interactiveEvents: r, dismissOnPageChange: s, platform: n } = globalThis.UserLeap._config;
6651
6651
  if (n && n !== "web") return;
6652
- gn !== globalThis.location.href && N.navigation("LocationChange", { from: gn, to: globalThis.location.href }), gn = globalThis.location.href;
6652
+ gn !== globalThis.location.href && F.navigation("LocationChange", { from: gn, to: globalThis.location.href }), gn = globalThis.location.href;
6653
6653
  const i = xu().trackStartUrl, a = i ? String(i) : null;
6654
6654
  t && Ru(globalThis.location.href), r && (Eu(), ng()), hu() && (() => {
6655
6655
  if (Is()) return;
6656
6656
  const c = Rt();
6657
- c && (pu(rr) || (c.remove(), rr = null, X = null));
6658
- })(), Q.getItem("sprig.isCapturingHeatmap") && ((l = (o = re.replay) == null ? void 0 : o.checkPendingHeatmapsUrl()) == null || l.then((c) => {
6657
+ c && (pu(rr) || (c.remove(), rr = null, te = null));
6658
+ })(), re.getItem("sprig.isCapturingHeatmap") && ((l = (o = ne.replay) == null ? void 0 : o.checkPendingHeatmapsUrl()) == null || l.then((c) => {
6659
6659
  var u;
6660
- c && ((u = re.replay) == null || u.uploadReadyPendingCaptures(!0));
6660
+ c && ((u = ne.replay) == null || u.uploadReadyPendingCaptures(!0));
6661
6661
  })), !Is() && s && a && a !== globalThis.location.href && e && sg.includes(e.type) && globalThis.UserLeap("dismissActiveSurvey", Be.PageChange);
6662
6662
  }
6663
6663
  const ku = { capture: !0 }, ng = () => {
@@ -6676,21 +6676,21 @@ const ku = { capture: !0 }, ng = () => {
6676
6676
  globalThis.UserLeap._config.interactiveEventsHandler && globalThis.removeEventListener("click", globalThis.UserLeap._config.interactiveEventsHandler, ku), delete globalThis.UserLeap._config.interactiveEventsHandler;
6677
6677
  };
6678
6678
  function xu() {
6679
- const e = ut.getItemObject("userleap.ids");
6679
+ const e = ct.getItemObject("userleap.ids");
6680
6680
  return (e == null ? void 0 : e[globalThis.UserLeap.envId]) || {};
6681
6681
  }
6682
6682
  function Tu() {
6683
6683
  if (globalThis.previewMode) return;
6684
- const e = ut.getItemObject("sprig.anon.env.vid.map") || {}, t = e[globalThis.UserLeap.envId];
6685
- globalThis.UserLeap.visitorId = t || Ut(), N.info("NewVid", { vid: globalThis.UserLeap.visitorId }), ke("vid", globalThis.UserLeap.visitorId), t || (e[globalThis.UserLeap.envId] = globalThis.UserLeap.visitorId, ut.setItemObject("sprig.anon.env.vid.map", e)), z.emit(B.VisitorIDUpdated, { visitorId: globalThis.UserLeap.visitorId });
6684
+ const e = ct.getItemObject("sprig.anon.env.vid.map") || {}, t = e[globalThis.UserLeap.envId];
6685
+ globalThis.UserLeap.visitorId = t || Ut(), F.info("NewVid", { vid: globalThis.UserLeap.visitorId }), Ee("vid", globalThis.UserLeap.visitorId), t || (e[globalThis.UserLeap.envId] = globalThis.UserLeap.visitorId, ct.setItemObject("sprig.anon.env.vid.map", e)), j.emit(B.VisitorIDUpdated, { visitorId: globalThis.UserLeap.visitorId });
6686
6686
  }
6687
6687
  function Ru(e, t, r, s) {
6688
6688
  var n, i;
6689
6689
  try {
6690
6690
  if (e.endsWith("mock_snippet.html")) return;
6691
- N.info("PageView", { url: e });
6691
+ F.info("PageView", { url: e });
6692
6692
  const a = (n = document == null ? void 0 : document.querySelector('meta[name="description"]')) == null ? void 0 : n.getAttribute("content");
6693
- (i = re.replay) == null || i.RecordPageView({ ...a && { description: a }, url: e, referrer: document.referrer, pageTitle: document.title });
6693
+ (i = ne.replay) == null || i.RecordPageView({ ...a && { description: a }, url: e, referrer: document.referrer, pageTitle: document.title });
6694
6694
  const o = globalThis.UserLeap._config.pageUrlEvents;
6695
6695
  let l = !1;
6696
6696
  if (o && o.length) for (let u = 0; u < o.length && (l = so(o[u], e), !l); u++) ;
@@ -6717,7 +6717,7 @@ async function yn(e, t) {
6717
6717
  const r = eo();
6718
6718
  e && !t && (globalThis.UserLeap._config.mode = rg);
6719
6719
  const s = Ys(Ue(globalThis.UserLeap)), n = await ze(function(i) {
6720
- const a = new URL(Ae("1", [ot], "questions"));
6720
+ const a = new URL(Ae("1", [it], "questions"));
6721
6721
  return Object.entries(i || {}).forEach(([o, l]) => {
6722
6722
  l && a.searchParams.append(o, String(l));
6723
6723
  }), a.toString();
@@ -6750,7 +6750,7 @@ const ag = function(e) {
6750
6750
  const { userId: i, anonymousId: a, metadata: o = {}, properties: l, showSurveyCallback: c } = n;
6751
6751
  let { eventName: u } = n;
6752
6752
  if (globalThis.UserLeap.debugMode && u !== Cu && console.info("[DEBUG] Sprig track", n), e.mode === "test") return;
6753
- const d = Q.getItem("sprig.previewKey") ?? void 0;
6753
+ const d = re.getItem("sprig.previewKey") ?? void 0;
6754
6754
  if (e.requireUserIdForTracking && !globalThis.UserLeap.userId && !i) {
6755
6755
  const E = "[Sprig] - Skipping tracking without userId";
6756
6756
  return console.warn(E), { success: !1, message: E, surveyState: "no survey" };
@@ -6760,26 +6760,26 @@ const ag = function(e) {
6760
6760
  const E = "[Sprig] - Invalid event name " + u;
6761
6761
  return console.warn(E), { success: !1, message: E, surveyState: "no survey" };
6762
6762
  }
6763
- const h = sr ?? globalThis.location.href;
6764
- o.url || (o.url = h), ke("trackStartUrl", h), (g = (m = globalThis.UserLeap) == null ? void 0 : m._config) != null && g.optimizelyEnabled && (mr(Ue(globalThis.UserLeap)) || us.getAndSetWebOptimizelyExperiments(), o.optimizelyExperiments = Object.assign({}, us.getAllOptimizelyExperiments())), (I = (v = globalThis.UserLeap) == null ? void 0 : v._config) != null && I.launchDarklyEnabled && (o.launchDarklyFlags = pi.getAllLaunchDarklyVariations()), i && (globalThis.UserLeap.userId = i), a && (globalThis.UserLeap.partnerAnonymousId = a), l && (o.eventProperties = l), (O = re.replay) == null || O.RecordEvent({ name: u, url: o.url }), N.info("TrackEvent", { eventName: u });
6765
- const f = globalThis.UserLeap.delayingSurvey || mu() ? await ze(Ae("1", [it], "events/batch"), { body: JSON.stringify({ events: [{ event: u, metadata: o }], previewKey: d }), method: "POST", shouldDropOnRateLimit: !0 }) : await ze(Ae("1", [it], "events"), { body: JSON.stringify({ event: u, metadata: o, previewKey: d }), method: "POST", shouldDropOnRateLimit: !0 });
6763
+ const p = sr ?? globalThis.location.href;
6764
+ o.url || (o.url = p), Ee("trackStartUrl", p), (g = (m = globalThis.UserLeap) == null ? void 0 : m._config) != null && g.optimizelyEnabled && (mr(Ue(globalThis.UserLeap)) || us.getAndSetWebOptimizelyExperiments(), o.optimizelyExperiments = Object.assign({}, us.getAllOptimizelyExperiments())), (I = (v = globalThis.UserLeap) == null ? void 0 : v._config) != null && I.launchDarklyEnabled && (o.launchDarklyFlags = pi.getAllLaunchDarklyVariations()), i && (globalThis.UserLeap.userId = i), a && (globalThis.UserLeap.partnerAnonymousId = a), l && (o.eventProperties = l), (O = ne.replay) == null || O.RecordEvent({ name: u, url: o.url }), F.info("TrackEvent", { eventName: u });
6765
+ const f = globalThis.UserLeap.delayingSurvey || mu() ? await ze(Ae("1", [nt], "events/batch"), { body: JSON.stringify({ events: [{ event: u, metadata: o }], previewKey: d }), method: "POST", shouldDropOnRateLimit: !0 }) : await ze(Ae("1", [nt], "events"), { body: JSON.stringify({ event: u, metadata: o, previewKey: d }), method: "POST", shouldDropOnRateLimit: !0 });
6766
6766
  if (!f.ok) {
6767
6767
  const E = "[Sprig] (ERR-421) Failed to track event";
6768
6768
  return f.reportError && (console.warn(E, f.error), f.error && globalThis.UserLeap.reportError("track", f.error)), { success: !1, message: E, error: f.error, surveyState: "no survey" };
6769
6769
  }
6770
- i && ke("uid", i), a && ke("aid", a);
6770
+ i && Ee("uid", i), a && Ee("aid", a);
6771
6771
  const w = f.json;
6772
- w.invalidPreviewKey && Q.removeItem("sprig.previewKey");
6773
- const p = o.trackPageView ? o.url : void 0;
6774
- return w != null && w.feedbackButton && yu(w.feedbackButton, void 0, p), await async function(E, A) {
6775
- var k, T;
6776
- let M = !0;
6777
- return !(A && ((k = E == null ? void 0 : E.json) != null && k.surveyId) && (globalThis.UserLeap.delayingSurvey = !0, M = await A(E.json.surveyId), globalThis.UserLeap.delayingSurvey = !1, !M)) && ((T = E == null ? void 0 : E.json) != null && T.delay && !globalThis.UserLeap.isMobileSDK && (globalThis.UserLeap.delayingSurvey = !0, await vs(E.json.delay), globalThis.UserLeap.delayingSurvey = !1), M);
6772
+ w.invalidPreviewKey && re.removeItem("sprig.previewKey");
6773
+ const h = o.trackPageView ? o.url : void 0;
6774
+ return w != null && w.feedbackButton && yu(w.feedbackButton, void 0, h), await async function(E, U) {
6775
+ var k, L;
6776
+ let A = !0;
6777
+ return !(U && ((k = E == null ? void 0 : E.json) != null && k.surveyId) && (globalThis.UserLeap.delayingSurvey = !0, A = await U(E.json.surveyId), globalThis.UserLeap.delayingSurvey = !1, !A)) && ((L = E == null ? void 0 : E.json) != null && L.delay && !globalThis.UserLeap.isMobileSDK && (globalThis.UserLeap.delayingSurvey = !0, await vs(E.json.delay), globalThis.UserLeap.delayingSurvey = !1), A);
6778
6778
  }(f, c) ? function(E) {
6779
6779
  if (!globalThis.UserLeap._config.dismissOnPageChange) return !0;
6780
- const A = new URL(E), M = new URL(sr ?? globalThis.location.href);
6781
- return A.hostname === M.hostname && A.pathname === M.pathname;
6782
- }(h) ? tr(w, p, io) : { success: !1, message: "Study should not be displayed after page navigation", surveyState: "no survey" } : { success: !1, message: "[Sprig] Callback returned false, aborting rendering of survey", surveyState: "no survey" };
6780
+ const U = new URL(E), A = new URL(sr ?? globalThis.location.href);
6781
+ return U.hostname === A.hostname && U.pathname === A.pathname;
6782
+ }(p) ? tr(w, h, io) : { success: !1, message: "Study should not be displayed after page navigation", surveyState: "no survey" } : { success: !1, message: "[Sprig] Callback returned false, aborting rendering of survey", surveyState: "no survey" };
6783
6783
  }, r = (n, i) => {
6784
6784
  var o;
6785
6785
  const a = (o = n == null ? void 0 : n.querySelector(`[id="${ro}"]`)) == null ? void 0 : o.contentDocument;
@@ -6799,7 +6799,7 @@ const ag = function(e) {
6799
6799
  }, setVisitorToken() {
6800
6800
  console.warn("[Sprig] setVisitorToken is deprecated.");
6801
6801
  }, dismissActiveSurvey(n = Be.API) {
6802
- globalThis.UserLeap.container && (n === Be.Closed && globalThis.Sprig.trackHistory && globalThis.Sprig.trackHistory({ event: "closed" }), z.emit(B.SurveyCloseRequested, { name: B.SurveyCloseRequested, initiator: n, "survey.id": parseInt(globalThis.UserLeap.container.dataset.studyId) }), z.emit(B.SurveyWillClose, { name: B.SurveyWillClose, initiator: n, "survey.id": parseInt(globalThis.UserLeap.container.dataset.studyId) }));
6802
+ globalThis.UserLeap.container && (n === Be.Closed && globalThis.Sprig.trackHistory && globalThis.Sprig.trackHistory({ event: "closed" }), j.emit(B.SurveyCloseRequested, { name: B.SurveyCloseRequested, initiator: n, "survey.id": parseInt(globalThis.UserLeap.container.dataset.studyId) }), j.emit(B.SurveyWillClose, { name: B.SurveyWillClose, initiator: n, "survey.id": parseInt(globalThis.UserLeap.container.dataset.studyId) }));
6803
6803
  }, async setAttribute(n, i) {
6804
6804
  if (!n || !i && i !== 0 && i !== !1) {
6805
6805
  const a = "[Sprig] - Disregarding empty attribute / value provided";
@@ -6831,7 +6831,7 @@ const ag = function(e) {
6831
6831
  if (!(o && Object.keys(o).length !== 0 || i && globalThis.UserLeap.userId !== i || a && globalThis.UserLeap.partnerAnonymousId !== a)) return { success: !0 };
6832
6832
  const l = {};
6833
6833
  let c;
6834
- return i && (l.userId = globalThis.UserLeap.userId = i), a && (l.partnerAnonymousId = globalThis.UserLeap.partnerAnonymousId = a), o && Object.keys(o).length > 0 ? (c = await ze(Ae("1", [ot, it], "attributes"), { body: JSON.stringify(o), method: "PUT" }), c.ok ? Object.assign(Rs, o) : c.reportError && (console.warn("[Sprig] (ERR-432) identifyAndSetAttributes failed", c.error), c.error && globalThis.UserLeap.reportError("identifyAndSetAttributes", c.error))) : c = await ze(Ae("1", [ot, it]), { body: JSON.stringify(l), method: "PUT" }), o && o[Vt] && (globalThis.UserLeap.email = o[Vt]), c.ok && (i && ke("uid", i), a && ke("aid", a)), { success: !!c.ok };
6834
+ return i && (l.userId = globalThis.UserLeap.userId = i), a && (l.partnerAnonymousId = globalThis.UserLeap.partnerAnonymousId = a), o && Object.keys(o).length > 0 ? (c = await ze(Ae("1", [it, nt], "attributes"), { body: JSON.stringify(o), method: "PUT" }), c.ok ? Object.assign(Rs, o) : c.reportError && (console.warn("[Sprig] (ERR-432) identifyAndSetAttributes failed", c.error), c.error && globalThis.UserLeap.reportError("identifyAndSetAttributes", c.error))) : c = await ze(Ae("1", [it, nt]), { body: JSON.stringify(l), method: "PUT" }), o && o[Vt] && (globalThis.UserLeap.email = o[Vt]), c.ok && (i && Ee("uid", i), a && Ee("aid", a)), { success: !!c.ok };
6835
6835
  }, async removeAttributes(n) {
6836
6836
  if (globalThis.UserLeap.debugMode && console.info("[DEBUG] Sprig removeAttributes", n), e.mode === "test") return;
6837
6837
  if (n == null || n.length === 0) {
@@ -6842,20 +6842,20 @@ const ag = function(e) {
6842
6842
  const a = "[Sprig] - Skipping tracking without userId";
6843
6843
  return console.warn(a), { success: !1, message: a };
6844
6844
  }
6845
- const i = await ze(Ae("1", [ot, it], "attributes"), { body: JSON.stringify({ delete: n }), method: "DELETE" });
6845
+ const i = await ze(Ae("1", [it, nt], "attributes"), { body: JSON.stringify({ delete: n }), method: "DELETE" });
6846
6846
  return !i.ok && i.reportError && (console.warn("[Sprig] (ERR-433) Remove attributes failed", i.error), i.error && globalThis.UserLeap.reportError("removeAttributes", i.error)), { success: !!i.ok };
6847
6847
  }, async addSurveyListener(n) {
6848
- z.on(B.SurveyLifeCycle, n);
6848
+ j.on(B.SurveyLifeCycle, n);
6849
6849
  }, async removeSurveyListener(n) {
6850
- z.removeListener(B.SurveyLifeCycle, n);
6850
+ j.removeListener(B.SurveyLifeCycle, n);
6851
6851
  }, async addListener(n, i) {
6852
- z.on(n, i);
6852
+ j.on(n, i);
6853
6853
  }, async removeListener(n, i) {
6854
- z.removeListener(n, i);
6854
+ j.removeListener(n, i);
6855
6855
  }, async removeAllListeners() {
6856
- z.removeAllListeners();
6856
+ j.removeAllListeners();
6857
6857
  }, setPreviewKey(n) {
6858
- n && typeof n == "string" && Q.isStorageAvailable && n && Q.setItem("sprig.previewKey", n);
6858
+ n && typeof n == "string" && re.isStorageAvailable && n && re.setItem("sprig.previewKey", n);
6859
6859
  }, async setUserId(n) {
6860
6860
  var o;
6861
6861
  if (globalThis.UserLeap.debugMode && console.info("[DEBUG] Sprig setUserId", n), n == null) {
@@ -6864,14 +6864,14 @@ const ag = function(e) {
6864
6864
  }
6865
6865
  if (e.mode === "test" || n === globalThis.UserLeap.userId) return;
6866
6866
  globalThis.UserLeap.userId = n;
6867
- const i = globalThis.UserLeap.visitorId, a = await ze(Ae("1", [ot, it]), { body: JSON.stringify({ userId: n }), method: "PUT" });
6868
- a.ok ? (i !== globalThis.UserLeap.visitorId && ((o = re.replay) == null || o.clearUserReplayData()), ke("uid", n)) : a.reportError && (console.warn("[Sprig] (ERR-420) Failed to set user id", a.error), a.error && globalThis.UserLeap.reportError("setUserId", a.error));
6867
+ const i = globalThis.UserLeap.visitorId, a = await ze(Ae("1", [it, nt]), { body: JSON.stringify({ userId: n }), method: "PUT" });
6868
+ a.ok ? (i !== globalThis.UserLeap.visitorId && ((o = ne.replay) == null || o.clearUserReplayData()), Ee("uid", n)) : a.reportError && (console.warn("[Sprig] (ERR-420) Failed to set user id", a.error), a.error && globalThis.UserLeap.reportError("setUserId", a.error));
6869
6869
  }, async setPartnerAnonymousId(n) {
6870
6870
  if (globalThis.UserLeap.debugMode && console.info("[DEBUG] Sprig setPartnerAnonymousId", n), n == null) {
6871
6871
  const i = `[Sprig] - Invalid partnerAnonymousId ${n}`;
6872
6872
  return console.warn(i), { success: !1, message: i };
6873
6873
  }
6874
- return globalThis.UserLeap.partnerAnonymousId = n, ke("aid", n), { success: !0 };
6874
+ return globalThis.UserLeap.partnerAnonymousId = n, Ee("aid", n), { success: !0 };
6875
6875
  }, track: async (n, i, a = {}, o = void 0) => t({ eventName: n, properties: i, metadata: a, showSurveyCallback: o }), identifyAndTrack: async (n) => await t(n), trackPageView(n, i = void 0, a = void 0, o = !0) {
6876
6876
  sr = n, Ru(n, i, a, o);
6877
6877
  }, applyFeedbackStyles({ button: n = "", view: i = "" }) {
@@ -6879,16 +6879,16 @@ const ag = function(e) {
6879
6879
  }, applyStyles(n) {
6880
6880
  globalThis.UserLeap.customStyles = n, r(globalThis.UserLeap.container, n);
6881
6881
  }, setWindowDimensions(n, i) {
6882
- var h, f;
6882
+ var p, f;
6883
6883
  const a = typeof n == "string" ? parseInt(n, 10) : n, o = typeof i == "string" ? parseInt(i, 10) : i;
6884
6884
  isNaN(a) || isNaN(o) || (globalThis.UserLeap.windowDimensions = { width: a, height: o });
6885
6885
  const l = Ue(globalThis.UserLeap), c = Ys(l), u = l["userleap-platform"] === "web";
6886
6886
  if (!globalThis.UserLeap.frameId) return;
6887
6887
  const d = document.getElementById(globalThis.UserLeap.frameId);
6888
- d && (globalThis.UserLeap.useMobileStyling && ((h = globalThis.UserLeap.windowDimensions) != null && h.width && (d.style.width = `${globalThis.UserLeap.windowDimensions.width}px`), (f = globalThis.UserLeap.windowDimensions) != null && f.height && (d.style.maxHeight = globalThis.UserLeap.windowDimensions.height - 20 + "px"), d.contentDocument && (d.style.height = String(Hf(d.contentDocument, u && !c, su(l))[0]) + "px")), z.emit(B.SurveyDimensions, { name: B.SurveyDimensions, contentFrameWidth: d.clientWidth, contentFrameHeight: d.clientHeight, "survey.id": parseInt(globalThis.UserLeap.container.dataset.studyId) }));
6888
+ d && (globalThis.UserLeap.useMobileStyling && ((p = globalThis.UserLeap.windowDimensions) != null && p.width && (d.style.width = `${globalThis.UserLeap.windowDimensions.width}px`), (f = globalThis.UserLeap.windowDimensions) != null && f.height && (d.style.maxHeight = globalThis.UserLeap.windowDimensions.height - 20 + "px"), d.contentDocument && (d.style.height = String(Hf(d.contentDocument, u && !c, su(l))[0]) + "px")), j.emit(B.SurveyDimensions, { name: B.SurveyDimensions, contentFrameWidth: d.clientWidth, contentFrameHeight: d.clientHeight, "survey.id": parseInt(globalThis.UserLeap.container.dataset.studyId) }));
6889
6889
  }, logoutUser() {
6890
6890
  var n;
6891
- globalThis.UserLeap.debugMode && console.info("[DEBUG] Sprig logout"), N.info("LogOut", { vid: globalThis.UserLeap.visitorId, userId: globalThis.UserLeap.userId }), globalThis.UserLeap.visitorId = null, globalThis.UserLeap.userId = null, globalThis.UserLeap.partnerAnonymousId = null, globalThis.UserLeap.token = null, globalThis.UserLeap.email = null, ut.removeItem("userleap.ids"), globalThis.UserLeap._queue.isPaused() && globalThis.UserLeap._queue.empty(), Tu(), (n = re.replay) == null || n.clearUserReplayData(), globalThis.UserLeap._queue.unpause();
6891
+ globalThis.UserLeap.debugMode && console.info("[DEBUG] Sprig logout"), F.info("LogOut", { vid: globalThis.UserLeap.visitorId, userId: globalThis.UserLeap.userId }), globalThis.UserLeap.visitorId = null, globalThis.UserLeap.userId = null, globalThis.UserLeap.partnerAnonymousId = null, globalThis.UserLeap.token = null, globalThis.UserLeap.email = null, ct.removeItem("userleap.ids"), globalThis.UserLeap._queue.isPaused() && globalThis.UserLeap._queue.empty(), Tu(), (n = ne.replay) == null || n.clearUserReplayData(), globalThis.UserLeap._queue.unpause();
6892
6892
  }, teardown() {
6893
6893
  ["hashchange", "popstate"].forEach((n) => globalThis.removeEventListener(n, nr, !0)), globalThis.UserLeap._config.interactiveEvents && Eu(), globalThis.UserLeap("dismissActiveSurvey", Be.API), delete globalThis.UserLeap, delete globalThis.Sprig, delete globalThis._Sprig;
6894
6894
  }, integrateOptimizely(n, i = !0) {
@@ -6928,19 +6928,19 @@ const ag = function(e) {
6928
6928
  bu(n, i);
6929
6929
  }, _completeSessionReplay: async ({ surveyId: n, responseGroupUuid: i, eventDigest: a }) => {
6930
6930
  var o;
6931
- return re.replay ? (o = re.replay) == null ? void 0 : o._completeSessionReplay({ surveyId: n, responseGroupUuid: i, eventDigest: a, headers: Ue(globalThis.UserLeap) }) : (globalThis.UserLeap.reportError("_completeSessionReplay", new Error("Replay module not registered")), !1);
6931
+ return ne.replay ? (o = ne.replay) == null ? void 0 : o._completeSessionReplay({ surveyId: n, responseGroupUuid: i, eventDigest: a, headers: Ue(globalThis.UserLeap) }) : (globalThis.UserLeap.reportError("_completeSessionReplay", new Error("Replay module not registered")), !1);
6932
6932
  }, pauseReplayRecording() {
6933
6933
  var n, i, a, o;
6934
- (i = (n = re.replay) == null ? void 0 : n.isReplayPaused) != null && i.call(n) || ((o = (a = re.replay) == null ? void 0 : a.recordReplayPaused) == null || o.call(a));
6934
+ (i = (n = ne.replay) == null ? void 0 : n.isReplayPaused) != null && i.call(n) || ((o = (a = ne.replay) == null ? void 0 : a.recordReplayPaused) == null || o.call(a));
6935
6935
  }, resumeReplayRecording() {
6936
6936
  var n, i, a, o, l, c;
6937
- (i = (n = re.replay) == null ? void 0 : n.isReplayPaused) != null && i.call(n) && ((o = (a = re.replay) == null ? void 0 : a.recordReplayResumed) == null || o.call(a), (c = (l = re.replay) == null ? void 0 : l.recordFullSnapshot) == null || c.call(l));
6937
+ (i = (n = ne.replay) == null ? void 0 : n.isReplayPaused) != null && i.call(n) && ((o = (a = ne.replay) == null ? void 0 : a.recordReplayResumed) == null || o.call(a), (c = (l = ne.replay) == null ? void 0 : l.recordFullSnapshot) == null || c.call(l));
6938
6938
  } };
6939
6939
  Object.assign(globalThis.UserLeap, s);
6940
6940
  };
6941
6941
  async function lg(e, t, r = {}, s = {}) {
6942
6942
  var u;
6943
- const n = (u = globalThis.__cfg) == null ? void 0 : u.mode, i = eo(), a = globalThis.UserLeap.envId, o = globalThis.document.documentElement, l = { mode: n, screenWidth: globalThis.screen.width, screenHeight: globalThis.screen.height, clientWidth: o.clientWidth, clientHeight: o.clientHeight, location: sr ?? globalThis.location.href, language: globalThis.navigator.language, ...r }, c = { action: e, breadcrumbs: N.breadcrumbs, err: { message: `${t == null ? void 0 : t.name} - ${t == null ? void 0 : t.message}`, stack: t == null ? void 0 : t.stack }, meta: l, vid: i, envId: a, ...s };
6943
+ const n = (u = globalThis.__cfg) == null ? void 0 : u.mode, i = eo(), a = globalThis.UserLeap.envId, o = globalThis.document.documentElement, l = { mode: n, screenWidth: globalThis.screen.width, screenHeight: globalThis.screen.height, clientWidth: o.clientWidth, clientHeight: o.clientHeight, location: sr ?? globalThis.location.href, language: globalThis.navigator.language, ...r }, c = { action: e, breadcrumbs: F.breadcrumbs, err: { message: `${t == null ? void 0 : t.name} - ${t == null ? void 0 : t.message}`, stack: t == null ? void 0 : t.stack }, meta: l, vid: i, envId: a, ...s };
6944
6944
  (await ze(Ae("1", null, "errors"), { method: "POST", headers: { "x-ul-error": globalThis.btoa(`userleap-${Date.now()}-error`) }, body: JSON.stringify(c), shouldDropOnRateLimit: !0 })).ok || console.warn("[Sprig] (ERR-444) Failed to report error to API", t);
6945
6945
  }
6946
6946
  function cg(e = {}) {
@@ -6948,7 +6948,7 @@ function cg(e = {}) {
6948
6948
  (s = globalThis.SprigLoggerCallback) == null || s.call(globalThis, "Initializing Sprig");
6949
6949
  const t = new URLSearchParams(globalThis.location.search).get("sprigPreviewKey") ?? "";
6950
6950
  async function r() {
6951
- var d, h, f, w, p;
6951
+ var d, p, f, w, h;
6952
6952
  if (globalThis.UserLeap.loaded) return;
6953
6953
  if ((d = globalThis.SprigLoggerCallback) == null || d.call(globalThis, "Loading Sprig"), globalThis.UserLeap.reportError = lg, globalThis.UserLeap.loaded = !0, globalThis.UserLeap._config = Object.assign({}, e, globalThis.UserLeap.config), globalThis.UserLeap.delayingSurvey = !1, globalThis.UserLeap._config && typeof globalThis.UserLeap._config == "object") for (const C in globalThis.UserLeap._config) globalThis.UserLeap[C] = globalThis.UserLeap._config[C];
6954
6954
  if (globalThis.Sprig.outstandingTransactionLimit !== void 0 && (e.outstandingTransactionLimit = globalThis.Sprig.outstandingTransactionLimit), !globalThis.UserLeap.envId) {
@@ -6959,8 +6959,8 @@ function cg(e = {}) {
6959
6959
  const n = xu(), i = globalThis.UserLeap.sampleRate;
6960
6960
  let a = n.sampled;
6961
6961
  if (i) {
6962
- if (a === null && (a = Math.random() < i, ke("sampled", a)), !a) return;
6963
- } else a !== null && ke("sampled", null);
6962
+ if (a === null && (a = Math.random() < i, Ee("sampled", a)), !a) return;
6963
+ } else a !== null && Ee("sampled", null);
6964
6964
  globalThis.UserLeap._API_URL || (globalThis.UserLeap._API_URL = "https://api.sprig.com");
6965
6965
  const o = [...globalThis.UserLeap._queue];
6966
6966
  globalThis.UserLeap._queue = new Yf(globalThis.UserLeap, []), globalThis.UserLeap._queue.pause();
@@ -6968,24 +6968,24 @@ function cg(e = {}) {
6968
6968
  const l = n.token;
6969
6969
  l ? (globalThis.UserLeap.token = l, globalThis.UserLeap.visitorId = n.vid ?? null, globalThis.UserLeap.userId = n.uid ?? null, globalThis.UserLeap.partnerAnonymousId = n.aid ?? null) : Tu();
6970
6970
  const c = mr(Ue(globalThis.UserLeap));
6971
- (h = globalThis.SprigLoggerCallback) == null || h.call(globalThis, "Sprig fetching config");
6971
+ (p = globalThis.SprigLoggerCallback) == null || p.call(globalThis, "Sprig fetching config");
6972
6972
  const u = await async function(C) {
6973
6973
  var I, O;
6974
6974
  const m = Ue(globalThis.UserLeap);
6975
6975
  document.addEventListener("securitypolicyviolation", Ha);
6976
- const g = await Xe(Ae("1", [ot], "config"), { headers: m });
6976
+ const g = await Xe(Ae("1", [it], "config"), { headers: m });
6977
6977
  if (document.removeEventListener("securitypolicyviolation", Ha), !g.ok) return (I = globalThis.SprigLoggerCallback) == null || I.call(globalThis, "Sprig config fetch failed"), g.reportError && (console.warn("[Sprig] (ERR-422) Failed to load configuration", g.error), g.error && globalThis.UserLeap.reportError("applyRemoteConfig", g.error)), ci("Disabled: failed to fetch configuration"), C;
6978
6978
  const v = g.json;
6979
6979
  return v != null && v.disabled ? ((O = globalThis.SprigLoggerCallback) == null || O.call(globalThis, "Sprig config fetch disabled"), ci(`Disabled: ${v.disabled}`), { disabled: v.disabled }) : Object.assign({}, v, C);
6980
6980
  }(e);
6981
6981
  if ((f = globalThis.SprigLoggerCallback) == null || f.call(globalThis, "Sprig fetched config"), tg({ isWeb: !c, reportingIntervalSeconds: u.metricsReportingEnabled || u.mobileMetricsReportingEnabled ? u.metricsReportingIntervalSeconds : 0, thresholds: u.metricThresholds, postMetrics: async (C) => {
6982
6982
  var m;
6983
- await ze(Ae("1", [ot], "metrics"), { body: C, method: "POST", headers: { "x-ul-replay-enabled": `${!!((m = re.replay) != null && m.isReplayRecording())}` }, shouldDropOnRateLimit: !0 });
6983
+ await ze(Ae("1", [it], "metrics"), { body: C, method: "POST", headers: { "x-ul-replay-enabled": `${!!((m = ne.replay) != null && m.isReplayRecording())}` }, shouldDropOnRateLimit: !0 });
6984
6984
  } }), !c) {
6985
- const C = u.alwaysOnReplay ? { userAgent: globalThis.navigator.userAgent, surveyId: u.alwaysOnReplay.surveyId, responseGroupUuid: u.alwaysOnReplay.responseGroupUuid, sdkVersion: "2.44.1", maxDurationSeconds: u.alwaysOnReplay.maxDurationSeconds } : void 0;
6986
- await ((w = re.replay) == null ? void 0 : w.initializeReplay({ maxReplayDurationSeconds: u.maxReplayDurationSeconds, maxInflightRequests: globalThis.UserLeap.maxInflightReplayRequests ?? 2, replaySettings: u.replaySettings, apiUrl: globalThis.UserLeap._API_URL, alwaysOnConfig: C })), io = u.replaySettings;
6985
+ const C = u.alwaysOnReplay ? { userAgent: globalThis.navigator.userAgent, surveyId: u.alwaysOnReplay.surveyId, responseGroupUuid: u.alwaysOnReplay.responseGroupUuid, sdkVersion: "2.46.0", maxDurationSeconds: u.alwaysOnReplay.maxDurationSeconds } : void 0;
6986
+ await ((w = ne.replay) == null ? void 0 : w.initializeReplay({ maxReplayDurationSeconds: u.maxReplayDurationSeconds, maxInflightRequests: globalThis.UserLeap.maxInflightReplayRequests ?? 2, replaySettings: u.replaySettings, apiUrl: globalThis.UserLeap._API_URL, alwaysOnConfig: C })), io = u.replaySettings;
6987
6987
  }
6988
- ag(u), await og(u), globalThis.UserLeap._queue.unpause(), (p = globalThis.SprigLoggerCallback) == null || p.call(globalThis, "SdkReady"), z.emit(B.SDKReady, { mobileMetricsReportingEnabled: !!u.mobileMetricsReportingEnabled, metricsReportingInterval: u.metricsReportingIntervalSeconds || 0, metricsThresholds: u.metricThresholds || [], maxMobileReplayDurationSeconds: u.maxMobileReplayDurationSeconds, mobileReplaySettings: u.mobileReplaySettings }), z.emit(B.VisitorIDUpdated, { visitorId: globalThis.UserLeap.visitorId }), z.on(B.VisitorIDUpdated, () => {
6988
+ ag(u), await og(u), globalThis.UserLeap._queue.unpause(), (h = globalThis.SprigLoggerCallback) == null || h.call(globalThis, "SdkReady"), j.emit(B.SDKReady, { mobileMetricsReportingEnabled: !!u.mobileMetricsReportingEnabled, metricsReportingInterval: u.metricsReportingIntervalSeconds || 0, metricsThresholds: u.metricThresholds || [], maxMobileReplayDurationSeconds: u.maxMobileReplayDurationSeconds, mobileReplaySettings: u.mobileReplaySettings }), j.emit(B.VisitorIDUpdated, { visitorId: globalThis.UserLeap.visitorId }), j.on(B.VisitorIDUpdated, () => {
6989
6989
  for (const C in Rs) delete Rs[C];
6990
6990
  });
6991
6991
  }
@@ -7102,7 +7102,7 @@ const sy = { configure: (e) => {
7102
7102
  const t = globalThis.Sprig;
7103
7103
  return t.appId = e.envId, t._queue = [], globalThis.UserLeap = t, cg(e), globalThis.Sprig;
7104
7104
  } }, ny = new yi();
7105
- var at = ((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))(at || {}), $e = ((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))($e || {});
7105
+ var ot = ((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))(ot || {}), $e = ((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))($e || {});
7106
7106
  const wi = (e, t) => t.some((r) => e instanceof r);
7107
7107
  let rl, sl;
7108
7108
  const bi = /* @__PURE__ */ new WeakMap(), wn = /* @__PURE__ */ new WeakMap(), Ls = /* @__PURE__ */ new WeakMap();
@@ -7111,16 +7111,16 @@ let vi = { get(e, t, r) {
7111
7111
  if (t === "done") return bi.get(e);
7112
7112
  if (t === "store") return r.objectStoreNames[1] ? void 0 : r.objectStore(r.objectStoreNames[0]);
7113
7113
  }
7114
- return lt(e[t]);
7114
+ return at(e[t]);
7115
7115
  }, set: (e, t, r) => (e[t] = r, !0), has: (e, t) => e instanceof IDBTransaction && (t === "done" || t === "store") || t in e };
7116
7116
  function Lu(e) {
7117
7117
  vi = e(vi);
7118
7118
  }
7119
7119
  function ug(e) {
7120
7120
  return (sl || (sl = [IDBCursor.prototype.advance, IDBCursor.prototype.continue, IDBCursor.prototype.continuePrimaryKey])).includes(e) ? function(...t) {
7121
- return e.apply(Si(this), t), lt(this.request);
7121
+ return e.apply(Si(this), t), at(this.request);
7122
7122
  } : function(...t) {
7123
- return lt(e.apply(Si(this), t));
7123
+ return at(e.apply(Si(this), t));
7124
7124
  };
7125
7125
  }
7126
7126
  function dg(e) {
@@ -7137,11 +7137,11 @@ function dg(e) {
7137
7137
  bi.set(t, r);
7138
7138
  }(e), wi(e, rl || (rl = [IDBDatabase, IDBObjectStore, IDBIndex, IDBCursor, IDBTransaction])) ? new Proxy(e, vi) : e);
7139
7139
  }
7140
- function lt(e) {
7140
+ function at(e) {
7141
7141
  if (e instanceof IDBRequest) return function(r) {
7142
7142
  const s = new Promise((n, i) => {
7143
7143
  r.onsuccess = () => {
7144
- n(lt(r.result));
7144
+ n(at(r.result));
7145
7145
  }, r.onerror = () => {
7146
7146
  i(r.error);
7147
7147
  };
@@ -7155,7 +7155,7 @@ function lt(e) {
7155
7155
  const Si = (e) => Ls.get(e);
7156
7156
  function Ii(e, { blocked: t } = {}) {
7157
7157
  const r = indexedDB.deleteDatabase(e);
7158
- return t && (r.onblocked = (s) => t(s.oldVersion, s)), lt(r).then(() => {
7158
+ return t && (r.onblocked = (s) => t(s.oldVersion, s)), at(r).then(() => {
7159
7159
  });
7160
7160
  }
7161
7161
  const pg = ["get", "getKey", "getAll", "getAllKeys", "count"], hg = ["put", "add", "delete", "clear"], bn = /* @__PURE__ */ new Map();
@@ -7217,10 +7217,10 @@ const yg = "sprigReplayIframeLoaded", wg = "sprigReplayIframeSettings", bg = "sp
7217
7217
  }
7218
7218
  }(2), Mu = async ({ apiUrl: e, surveyId: t, uploadId: r, etags: s, headers: n, responseGroupUuid: i, replayDuration: a, eventDigest: o }, l = !1) => {
7219
7219
  var u;
7220
- if (!l && !r && !s) return void N.error("UploadErr", { isMobile: l, uploadId: r, etags: s });
7221
- N.info("MarkUploadComplete", { surveyId: t });
7220
+ if (!l && !r && !s) return void F.error("UploadErr", { isMobile: l, uploadId: r, etags: s });
7221
+ F.info("MarkUploadComplete", { surveyId: t });
7222
7222
  const c = await Xe(`${e}/sdk/1/completeSessionReplay`, { method: "POST", body: JSON.stringify({ etags: s, uploadId: r, responseGroupUuid: i, surveyId: t, replayDuration: a, eventDigest: o, userAgent: (u = window == null ? void 0 : window.navigator) == null ? void 0 : u.userAgent }), headers: n, shouldRetryRequest: !0 });
7223
- return N.info("MarkUploadDone", { surveyId: t }), c;
7223
+ return F.info("MarkUploadDone", { surveyId: t }), c;
7224
7224
  }, Sg = (e) => {
7225
7225
  if (e instanceof Attr) return null;
7226
7226
  let t = 1;
@@ -7257,7 +7257,7 @@ const yg = "sprigReplayIframeLoaded", wg = "sprigReplayIframeSettings", bg = "sp
7257
7257
  clearTimeout(r), r = window.setTimeout(() => e(s), t);
7258
7258
  };
7259
7259
  }, We = { capture: !0, passive: !0 }, Cg = ["a", "button", "input", "option", "li", "link"], kg = ["Escape", "Enter", "Backspace", "F5", "Tab"];
7260
- let Os = !1, xe = null, ds = null;
7260
+ let Os = !1, Te = null, ds = null;
7261
7261
  const al = (e) => {
7262
7262
  var r;
7263
7263
  if (((r = e.tagName) == null ? void 0 : r.toLowerCase()) === "html") return { element: "html" };
@@ -7280,16 +7280,16 @@ const al = (e) => {
7280
7280
  var n, i;
7281
7281
  let r = t.target;
7282
7282
  var s;
7283
- t.target === ((n = window.document) == null ? void 0 : n.body) && window.Sprig.pointerDownTarget && (r = window.Sprig.pointerDownTarget), s = { x: t.x, y: t.y, type: e, elementAttributes: Eg(r), windowHeight: window.innerHeight, windowWidth: window.innerWidth, ...r instanceof HTMLElement || r instanceof SVGElement || r instanceof MathMLElement ? { rect: r == null ? void 0 : r.getBoundingClientRect(), xPath: Uu(r) } : {} }, (i = s == null ? void 0 : s.elementAttributes) != null && i.text && (s.elementAttributes.text = ao(s.elementAttributes.text)), xe == null || xe("Sprig_Click", s);
7283
+ t.target === ((n = window.document) == null ? void 0 : n.body) && window.Sprig.pointerDownTarget && (r = window.Sprig.pointerDownTarget), s = { x: t.x, y: t.y, type: e, elementAttributes: Eg(r), windowHeight: window.innerHeight, windowWidth: window.innerWidth, ...r instanceof HTMLElement || r instanceof SVGElement || r instanceof MathMLElement ? { rect: r == null ? void 0 : r.getBoundingClientRect(), xPath: Uu(r) } : {} }, (i = s == null ? void 0 : s.elementAttributes) != null && i.text && (s.elementAttributes.text = ao(s.elementAttributes.text)), Te == null || Te("Sprig_Click", s);
7284
7284
  }, Pu = (e) => {
7285
7285
  var t;
7286
- kg.includes(e.key) && (t = { key: e.key }, xe == null || xe("Sprig_Keystroke", t));
7286
+ kg.includes(e.key) && (t = { key: e.key }, Te == null || Te("Sprig_Keystroke", t));
7287
7287
  }, xg = () => {
7288
7288
  var e;
7289
- window.performance.getEntriesByType("navigation").map((t) => t.type).includes("reload") && (e = { url: window.location.href, currentPageTitle: document.title }, xe == null || xe("Sprig_Refresh", e));
7289
+ window.performance.getEntriesByType("navigation").map((t) => t.type).includes("reload") && (e = { url: window.location.href, currentPageTitle: document.title }, Te == null || Te("Sprig_Refresh", e));
7290
7290
  }, Tg = () => {
7291
7291
  var e;
7292
- window.performance.getEntriesByType("navigation").map((t) => t.type).includes("back_forward") && ((e = { curUrl: window.location.href, fromUrl: document.referrer, currentPageTitle: document.title }).currentPageTitle && (e.currentPageTitle = ao(e.currentPageTitle)), xe == null || xe("Sprig_BackForward", e));
7292
+ window.performance.getEntriesByType("navigation").map((t) => t.type).includes("back_forward") && ((e = { curUrl: window.location.href, fromUrl: document.referrer, currentPageTitle: document.title }).currentPageTitle && (e.currentPageTitle = ao(e.currentPageTitle)), Te == null || Te("Sprig_BackForward", e));
7293
7293
  }, _u = Ig((e) => {
7294
7294
  if (!(e.target instanceof HTMLElement || e.target instanceof Document)) return;
7295
7295
  let t = e.target;
@@ -7302,16 +7302,16 @@ const Fu = (e) => {
7302
7302
  window.Sprig && (window.Sprig.pointerDownTarget = e.target);
7303
7303
  }, pe = { isRecording: !1, scrollEventUuids: {}, stopRecording: () => {
7304
7304
  } }, zu = () => globalThis.indexedDB && globalThis.IDBKeyRange && globalThis.CompressionStream, be = (() => {
7305
- const e = Q.getItem("sprig.sessionId");
7306
- if (e) return N.info("SessionIDFound", { savedSessionId: e }), Q.removeItem("sprig.sessionId"), e;
7305
+ const e = re.getItem("sprig.sessionId");
7306
+ if (e) return F.info("SessionIDFound", { savedSessionId: e }), re.removeItem("sprig.sessionId"), e;
7307
7307
  const t = Ut();
7308
- return N.info("GeneratedSessionID", { uuid: t }), t;
7308
+ return F.info("GeneratedSessionID", { uuid: t }), t;
7309
7309
  })(), ki = () => {
7310
- Q.setItem("sprig.disableReplayRecording", "disabled");
7311
- }, He = () => !!Q.getItem("sprig.disableReplayRecording"), As = () => !!Q.getItem("sprig.isReplayPaused");
7310
+ re.setItem("sprig.disableReplayRecording", "disabled");
7311
+ }, He = () => !!re.getItem("sprig.disableReplayRecording"), As = () => !!re.getItem("sprig.isReplayPaused");
7312
7312
  var dl;
7313
7313
  (dl = globalThis.addEventListener) == null || dl.call(globalThis, "beforeunload", () => {
7314
- N.info("BeforeUnload", { sessionId: be }), Q.setItem("sprig.sessionId", be);
7314
+ F.info("BeforeUnload", { sessionId: be }), re.setItem("sprig.sessionId", be);
7315
7315
  });
7316
7316
  const Ye = (e, t) => {
7317
7317
  var r, s;
@@ -7322,13 +7322,13 @@ const Ye = (e, t) => {
7322
7322
  }
7323
7323
  }, Rg = async (e) => {
7324
7324
  const { x: t, xPath: r, y: s } = e, n = pe.scrollEventUuids[r];
7325
- if (n) return Ee(async () => {
7325
+ if (n) return xe(async () => {
7326
7326
  var o, l, c, u;
7327
- const i = await se.openDB(), a = await i.get("events", n);
7327
+ const i = await ie.openDB(), a = await i.get("events", n);
7328
7328
  if (a != null && a.event) {
7329
- const d = JSON.parse(a.event), h = t > ((l = (o = d.data) == null ? void 0 : o.payload) == null ? void 0 : l.x), f = s > ((u = (c = d.data) == null ? void 0 : c.payload) == null ? void 0 : u.y);
7330
- if (!h && !f) return null;
7331
- h && (d.data.payload.x = t), f && (d.data.payload.y = s), d.data.payload.elementAttributes = e.elementAttributes, a.event = JSON.stringify(d), await i.put("events", a);
7329
+ const d = JSON.parse(a.event), p = t > ((l = (o = d.data) == null ? void 0 : o.payload) == null ? void 0 : l.x), f = s > ((u = (c = d.data) == null ? void 0 : c.payload) == null ? void 0 : u.y);
7330
+ if (!p && !f) return null;
7331
+ p && (d.data.payload.x = t), f && (d.data.payload.y = s), d.data.payload.elementAttributes = e.elementAttributes, a.event = JSON.stringify(d), await i.put("events", a);
7332
7332
  } else Ye("Sprig_Scroll", e);
7333
7333
  }, "Error updating scroll event");
7334
7334
  Ye("Sprig_Scroll", e);
@@ -7341,23 +7341,23 @@ const Ye = (e, t) => {
7341
7341
  });
7342
7342
  }, Lg = ["did not allow mutations", "called in an invalid security context"], Og = (e, t, { reportError: r = !0, extraInfo: s = {} }) => {
7343
7343
  if (!He() && t instanceof Error) {
7344
- if (ki(), t.name === "VersionError") return N.error("VersionErr", { message: e }), void se.deleteDB();
7344
+ if (ki(), t.name === "VersionError") return F.error("VersionErr", { message: e }), void ie.deleteDB();
7345
7345
  ((n) => {
7346
7346
  if (!n) return !0;
7347
7347
  for (const i of Lg) if (n.toLowerCase().includes(i)) return !1;
7348
7348
  return !0;
7349
- })(t == null ? void 0 : t.message) && (r && globalThis.UserLeap.reportError(e, t, s), se.clearAll());
7349
+ })(t == null ? void 0 : t.message) && (r && globalThis.UserLeap.reportError(e, t, s), ie.clearAll());
7350
7350
  }
7351
7351
  }, br = (e, t, { reportError: r } = { reportError: !0 }) => {
7352
- ju(), N.error("ReplayErr", { code: t.code, name: t.name }), Og(e, t, { reportError: r });
7353
- }, Ee = async (e, t) => {
7352
+ ju(), F.error("ReplayErr", { code: t.code, name: t.name }), Og(e, t, { reportError: r });
7353
+ }, xe = async (e, t) => {
7354
7354
  try {
7355
7355
  return await e();
7356
7356
  } catch (r) {
7357
7357
  br(t, r);
7358
7358
  }
7359
7359
  }, Ei = () => {
7360
- pe.isRecording && (Ee(() => {
7360
+ pe.isRecording && (xe(() => {
7361
7361
  var e, t;
7362
7362
  return (t = (e = globalThis.rrwebRecord) == null ? void 0 : e.takeFullSnapshot) == null ? void 0 : t.call(e, !0);
7363
7363
  }, "Error recording full snapshot"), oo.forEach((e) => {
@@ -7367,7 +7367,7 @@ const Ye = (e, t) => {
7367
7367
  };
7368
7368
  let vn = 0;
7369
7369
  (async () => zu() && Promise.allSettled([Ii("replayStorage"), Ii("sprig.replay")]))();
7370
- const se = new class {
7370
+ const ie = new class {
7371
7371
  constructor() {
7372
7372
  de(this, "wrapTransactionWithCounter", (e) => {
7373
7373
  var s, n;
@@ -7387,15 +7387,15 @@ const se = new class {
7387
7387
  }
7388
7388
  openDB() {
7389
7389
  return function(e, t, { blocked: r, upgrade: s, blocking: n, terminated: i } = {}) {
7390
- const a = indexedDB.open(e, t), o = lt(a);
7390
+ const a = indexedDB.open(e, t), o = at(a);
7391
7391
  return s && (a.onupgradeneeded = (l) => {
7392
- s(lt(a.result), l.oldVersion, l.newVersion, lt(a.transaction), l);
7392
+ s(at(a.result), l.oldVersion, l.newVersion, at(a.transaction), l);
7393
7393
  }), r && (a.onblocked = (l) => r(l.oldVersion, l.newVersion, l)), o.then((l) => {
7394
7394
  i && (l.onclose = () => i()), n && (l.onversionchange = (c) => n(c.oldVersion, c.newVersion, c));
7395
7395
  }).catch(() => {
7396
7396
  }), o;
7397
7397
  }("sprigReplay", 1, { upgrade: (e, t, r) => {
7398
- if (r === 0 && Q.setItem("sprig.pendingCount", "0"), !e.objectStoreNames.contains("events")) {
7398
+ if (r === 0 && re.setItem("sprig.pendingCount", "0"), !e.objectStoreNames.contains("events")) {
7399
7399
  const s = e.createObjectStore("events", { keyPath: "uuid" });
7400
7400
  s.createIndex("sessionId", "sessionId"), s.createIndex("timestamp", "timestamp"), s.createIndex("[sessionId+timestamp]", ["sessionId", "timestamp"]);
7401
7401
  }
@@ -7477,7 +7477,7 @@ const se = new class {
7477
7477
  await t.done;
7478
7478
  }
7479
7479
  async markPendingHeatmapsReady(e) {
7480
- if (parseInt(Q.getItem("sprig.pendingCount") ?? "0") === 0) return null;
7480
+ if (parseInt(re.getItem("sprig.pendingCount") ?? "0") === 0) return null;
7481
7481
  const t = Date.now(), r = await this.getTransaction("pendingCaptures"), s = r.store.index("sessionId");
7482
7482
  for await (const n of s.iterate(be)) {
7483
7483
  const i = n.value;
@@ -7486,31 +7486,31 @@ const se = new class {
7486
7486
  await r.done;
7487
7487
  }
7488
7488
  }(), Ze = [];
7489
- let vr, Wu, gt = [], Dt = !1, Mt = 0, ps = !1, Vu = !1;
7489
+ let vr, Wu, ft = [], Dt = !1, Mt = 0, ps = !1, Vu = !1;
7490
7490
  const lo = [];
7491
7491
  let Ms, Hu, hs, Gu, Sn = !1;
7492
7492
  const Pt = () => ps && !Dt && Date.now() <= Ms, Ag = ({ apiUrl: e, config: t, triggerSnapshot: r, forceInit: s = !1 }) => {
7493
- ps && !s || (Q.isStorageAvailable ? (gt = [], lo.splice(0), Ze.splice(0), Mt = 0, hs = r, Wu = e, vr = { responseGroupUuid: t.responseGroupUuid, surveyId: t.surveyId, userAgent: t.userAgent, sdkVersion: t.sdkVersion }, Hu = t.maxDurationSeconds, Pg(), ps || (Gu = globalThis.setInterval(Dg, 500)), ps = !0) : Dt = !0);
7494
- }, Mg = [$e.Drag, $e.Input, $e.MediaInteraction, $e.MouseInteraction, $e.MouseMove, $e.Scroll, $e.Selection, $e.TouchMove], Ug = (e) => e.type === at.Custom || e.type === at.IncrementalSnapshot && Mg.includes(e.data.source), co = (e) => e.some(Ug), Dg = async () => {
7493
+ ps && !s || (re.isStorageAvailable ? (ft = [], lo.splice(0), Ze.splice(0), Mt = 0, hs = r, Wu = e, vr = { responseGroupUuid: t.responseGroupUuid, surveyId: t.surveyId, userAgent: t.userAgent, sdkVersion: t.sdkVersion }, Hu = t.maxDurationSeconds, Pg(), ps || (Gu = globalThis.setInterval(Dg, 500)), ps = !0) : Dt = !0);
7494
+ }, Mg = [$e.Drag, $e.Input, $e.MediaInteraction, $e.MouseInteraction, $e.MouseMove, $e.Scroll, $e.Selection, $e.TouchMove], Ug = (e) => e.type === ot.Custom || e.type === ot.IncrementalSnapshot && Mg.includes(e.data.source), co = (e) => e.some(Ug), Dg = async () => {
7495
7495
  if (!Pt()) return void globalThis.clearInterval(Gu);
7496
7496
  if ($u(), !co(Ze)) return;
7497
7497
  const e = Ze[0].timestamp;
7498
7498
  Date.now() - e > 35e3 && (hs == null || hs());
7499
7499
  }, $u = async () => {
7500
- if (gt.length || Sn) return;
7500
+ if (ft.length || Sn) return;
7501
7501
  Sn = !0;
7502
7502
  const e = await Ng();
7503
7503
  if (!e) return void (Dt = !0);
7504
- lo.splice(0, e.length).forEach((t) => t(e.shift())), e.forEach((t) => gt.push(t)), Sn = !1;
7504
+ lo.splice(0, e.length).forEach((t) => t(e.shift())), e.forEach((t) => ft.push(t)), Sn = !1;
7505
7505
  }, Pg = () => {
7506
- const e = Q.getItem("sprig.alwayson.info");
7506
+ const e = re.getItem("sprig.alwayson.info");
7507
7507
  if (e) {
7508
- N.info("Read stored session state", e);
7508
+ F.info("Read stored session state", e);
7509
7509
  const t = JSON.parse(e);
7510
- Dt = t.disabled, vr = t.metadata, gt = t.uploadUrls, Mt = t.currentIndex, Ms = t.expirationTimestamp, t.pendingEventTimestamp && (N.info(`Uploading with pending timestamp: ${t.pendingEventTimestamp}`), _g(t.pendingEventTimestamp));
7510
+ Dt = t.disabled, vr = t.metadata, ft = t.uploadUrls, Mt = t.currentIndex, Ms = t.expirationTimestamp, t.pendingEventTimestamp && (F.info(`Uploading with pending timestamp: ${t.pendingEventTimestamp}`), _g(t.pendingEventTimestamp));
7511
7511
  } else Ms = 1e3 * Hu + Date.now();
7512
7512
  }, _g = async (e) => {
7513
- const t = Date.now(), r = (await se.getEventsBetween(e, t)).map((n) => JSON.parse(n.event));
7513
+ const t = Date.now(), r = (await ie.getEventsBetween(e, t)).map((n) => JSON.parse(n.event));
7514
7514
  if (!co(r)) return;
7515
7515
  Ku(r);
7516
7516
  const s = await Ju();
@@ -7529,17 +7529,17 @@ const Pt = () => ps && !Dt && Date.now() <= Ms, Ag = ({ apiUrl: e, config: t, tr
7529
7529
  const n = new TextEncoder(), i = new CompressionStream("gzip"), a = i.writable.getWriter(), o = n.encode(JSON.stringify(s));
7530
7530
  return a.write(o), a.close(), new Uint8Array(await new Response(i.readable).arrayBuffer());
7531
7531
  })(t);
7532
- N.info("Uploading always-on events with presigned url"), await Yu(() => Xe(e, { body: r, method: "PUT" }), "uploading always-on with presigned url");
7532
+ F.info("Uploading always-on events with presigned url"), await Yu(() => Xe(e, { body: r, method: "PUT" }), "uploading always-on with presigned url");
7533
7533
  }, Ng = async () => {
7534
7534
  if (!Pt()) return;
7535
7535
  const { surveyId: e, responseGroupUuid: t } = vr, r = { responseGroupUuid: t, surveyId: e, index: Mt + 1 };
7536
- N.info("Fetching always-on upload urls", r);
7536
+ F.info("Fetching always-on upload urls", r);
7537
7537
  const s = await Yu(() => Xe(`${Wu}/sdk/1/replayUrls`, { method: "POST", body: JSON.stringify(r), headers: Ue(globalThis.UserLeap) }), "fetching always-on signed urls");
7538
7538
  if (!s) return;
7539
7539
  const n = s.json.signedUrls;
7540
- return N.info("Fetched more always-on upload urls", { body: r, urls: n }), n;
7540
+ return F.info("Fetched more always-on upload urls", { body: r, urls: n }), n;
7541
7541
  }, Ju = async () => {
7542
- if (gt.length) return gt.shift();
7542
+ if (ft.length) return ft.shift();
7543
7543
  const e = new Promise((t) => {
7544
7544
  lo.push(t);
7545
7545
  });
@@ -7547,23 +7547,23 @@ const Pt = () => ps && !Dt && Date.now() <= Ms, Ag = ({ apiUrl: e, config: t, tr
7547
7547
  }, Ku = (e) => {
7548
7548
  var n, i, a;
7549
7549
  const t = e.length ? e[e.length - 1].timestamp : Date.now(), r = Mt, s = ((i = (n = globalThis.UserLeap) == null ? void 0 : n.config) == null ? void 0 : i.customMetadata) ?? ((a = globalThis.__cfg) == null ? void 0 : a.customMetadata);
7550
- Mt++, e.push({ timestamp: t, type: at.Custom, data: { tag: "Sprig_Meta", payload: { ...vr, index: r, visitorId: globalThis.UserLeap.visitorId ?? "", timestamp: t, customMetadata: s } } });
7550
+ Mt++, e.push({ timestamp: t, type: ot.Custom, data: { tag: "Sprig_Meta", payload: { ...vr, index: r, visitorId: globalThis.UserLeap.visitorId ?? "", timestamp: t, customMetadata: s } } });
7551
7551
  }, Fg = (e, t) => {
7552
7552
  Pt() && !Vu && (e || Ze.length) && (e && Ze.length && (async () => {
7553
7553
  const r = Ze.splice(0);
7554
7554
  if (!co(r)) return;
7555
- N.info("Capturing always-on event array to upload"), Ku(r);
7555
+ F.info("Capturing always-on event array to upload"), Ku(r);
7556
7556
  const s = await Ju();
7557
7557
  s && await qu(s, r);
7558
7558
  })(), Ze.push(t));
7559
7559
  };
7560
7560
  var pl;
7561
7561
  (pl = globalThis.addEventListener) == null || pl.call(globalThis, "beforeunload", async () => {
7562
- Vu = !0, Pt() && (N.info("Always On handle page unload"), (() => {
7562
+ Vu = !0, Pt() && (F.info("Always On handle page unload"), (() => {
7563
7563
  let e;
7564
7564
  Ze.length && (e = Ze[0].timestamp);
7565
- const t = { disabled: Dt, metadata: vr, uploadUrls: gt, currentIndex: Mt, pendingEventTimestamp: e, expirationTimestamp: Ms };
7566
- N.info("Storing session state on unload", t), Q.setItem("sprig.alwayson.info", JSON.stringify(t));
7565
+ const t = { disabled: Dt, metadata: vr, uploadUrls: ft, currentIndex: Mt, pendingEventTimestamp: e, expirationTimestamp: Ms };
7566
+ F.info("Storing session state on unload", t), re.setItem("sprig.alwayson.info", JSON.stringify(t));
7567
7567
  })());
7568
7568
  });
7569
7569
  const Zu = async (e, t) => {
@@ -7587,7 +7587,7 @@ const Zu = async (e, t) => {
7587
7587
  n || (n = Ve(t)), n.report(s / 1e3);
7588
7588
  }
7589
7589
  };
7590
- let Qu = 5e3, xi = 6e4, Ti = 0, ct, Ri = !1, Li = [];
7590
+ let Qu = 5e3, xi = 6e4, Ti = 0, lt, Ri = !1, Li = [];
7591
7591
  const Bg = (e) => {
7592
7592
  var t, r, s, n;
7593
7593
  if ((t = e.event) != null && t.includes("Sprig_Scroll")) {
@@ -7603,20 +7603,20 @@ const Bg = (e) => {
7603
7603
  Li = [], Ri = !1, Xu(async () => {
7604
7604
  await (async (t) => {
7605
7605
  const r = t.map((s) => ({ ...s, sessionId: s.sessionId ?? be }));
7606
- if (r.length !== 0) return Ee(() => se.bulkAdd("events", r), "Error storing replay events");
7606
+ if (r.length !== 0) return xe(() => ie.bulkAdd("events", r), "Error storing replay events");
7607
7607
  })(e);
7608
7608
  }, "sdk_replay_add_event_batch_seconds");
7609
7609
  }, 500);
7610
7610
  }, jg = (e, t, r) => {
7611
7611
  pe.cleanupInterval = window.setInterval(() => {
7612
7612
  const s = Date.now();
7613
- Zu(() => Ee(async () => {
7614
- He() || await Promise.all([se.deleteRowsBefore("events", s - 1e3 * e, (n) => n.expiredAt === void 0 || n.expiredAt < s - 1e3 * e), se.deleteRowsBefore("chunkUploads", s - 1e3 * t), se.deleteRowsBefore("pendingCaptures", s - 1e3 * r, (n) => !n.canUpload)]);
7615
- }, "Error deleting table rows"), "sdk_replay_cleanup_seconds"), N.debug("CleanupComplete");
7613
+ Zu(() => xe(async () => {
7614
+ He() || await Promise.all([ie.deleteRowsBefore("events", s - 1e3 * e, (n) => n.expiredAt === void 0 || n.expiredAt < s - 1e3 * e), ie.deleteRowsBefore("chunkUploads", s - 1e3 * t), ie.deleteRowsBefore("pendingCaptures", s - 1e3 * r, (n) => !n.canUpload)]);
7615
+ }, "Error deleting table rows"), "sdk_replay_cleanup_seconds"), F.debug("CleanupComplete");
7616
7616
  }, 3e4);
7617
7617
  }, Wg = () => {
7618
7618
  pe.pendingCheckInterval = window.setInterval(async () => {
7619
- Ee(async () => {
7619
+ xe(async () => {
7620
7620
  await Oi();
7621
7621
  }, "Error initiating pending captures");
7622
7622
  }, 5e3);
@@ -7625,47 +7625,47 @@ let In = !1;
7625
7625
  const Oi = async (e = !1) => {
7626
7626
  if (!In) try {
7627
7627
  In = !0;
7628
- const t = parseInt(ct ?? "0");
7628
+ const t = parseInt(lt ?? "0");
7629
7629
  if (t === 0) return;
7630
- const r = await se.getPendingCaptures({ beforePresent: !0, isBeforeType: e }), s = await se.openDB();
7631
- await Promise.all(r.map(async (n) => (await s.delete("pendingCaptures", n.uuid), rd(n.captureParams, n.canUpload)))), ct = (t - r.length).toString(), Q.setItem("sprig.pendingCount", ct);
7630
+ const r = await ie.getPendingCaptures({ beforePresent: !0, isBeforeType: e }), s = await ie.openDB();
7631
+ await Promise.all(r.map(async (n) => (await s.delete("pendingCaptures", n.uuid), rd(n.captureParams, n.canUpload)))), lt = (t - r.length).toString(), re.setItem("sprig.pendingCount", lt);
7632
7632
  } finally {
7633
7633
  In = !1;
7634
7634
  }
7635
7635
  }, Vg = async (e, t, r, s, n) => {
7636
- const i = Math.min(e + n, r), a = await Zu(() => se.getEventsBetween(e, i), "sdk_replay_get_events_between_seconds");
7637
- if (!(a != null && a.length)) return N.debug("NoEventsFound"), { validStartFound: s, events: [] };
7636
+ const i = Math.min(e + n, r), a = await Zu(() => ie.getEventsBetween(e, i), "sdk_replay_get_events_between_seconds");
7637
+ if (!(a != null && a.length)) return F.debug("NoEventsFound"), { validStartFound: s, events: [] };
7638
7638
  if (!s) {
7639
- N.debug("ValidStartSearch");
7639
+ F.debug("ValidStartSearch");
7640
7640
  let o = -1;
7641
7641
  return a == null || a.forEach((l, c) => {
7642
7642
  if (!l.isValidStart) return;
7643
7643
  const u = l.timestamp <= t;
7644
7644
  (o < 0 || u) && (o = c);
7645
- }), o < 0 ? (N.debug("ValidStartNotFound"), { validStartFound: s, events: [] }) : { validStartFound: !0, events: a == null ? void 0 : a.slice(o) };
7645
+ }), o < 0 ? (F.debug("ValidStartNotFound"), { validStartFound: s, events: [] }) : { validStartFound: !0, events: a == null ? void 0 : a.slice(o) };
7646
7646
  }
7647
7647
  return { validStartFound: s, events: a };
7648
7648
  }, ed = (e) => Promise.all(e.map(async (t) => {
7649
7649
  const r = await (async (s) => Au.execute(async () => {
7650
7650
  var a;
7651
- N.info("UploadChunkStart", { chunkIndex: s.chunkIndex, surveyId: s.surveyId });
7651
+ F.info("UploadChunkStart", { chunkIndex: s.chunkIndex, surveyId: s.surveyId });
7652
7652
  const n = await Xe(s.uploadUrl, { body: s.data, method: "PUT" });
7653
- N.http("UploadChunkEnd", { url: s.uploadUrl, method: "PUT", status_code: n.status, reason: n.statusText ?? "OK", chunkIndex: s.chunkIndex, surveyId: s.surveyId });
7653
+ F.http("UploadChunkEnd", { url: s.uploadUrl, method: "PUT", status_code: n.status, reason: n.statusText ?? "OK", chunkIndex: s.chunkIndex, surveyId: s.surveyId });
7654
7654
  const i = (a = n.headers) == null ? void 0 : a.get("ETag");
7655
7655
  if (!i) throw new Error(`Upload response did not include etag for upload ${s.uploadId}, part ${s.chunkIndex}`);
7656
7656
  return i;
7657
7657
  }))(t);
7658
- return await se.updatePartial("chunkUploads", t.uuid, { data: null, etag: r, status: "UploadComplete" }), t.uploadId;
7658
+ return await ie.updatePartial("chunkUploads", t.uuid, { data: null, etag: r, status: "UploadComplete" }), t.uploadId;
7659
7659
  })), td = async (e) => {
7660
- const t = await se.getChunkUploadsByStatus({ status: "UploadComplete", uploadId: e });
7661
- if (!(t != null && t.length)) return void N.info("NoChunksForUpload", { uploadId: e });
7660
+ const t = await ie.getChunkUploadsByStatus({ status: "UploadComplete", uploadId: e });
7661
+ if (!(t != null && t.length)) return void F.info("NoChunksForUpload", { uploadId: e });
7662
7662
  const r = t.reduce((i, a) => (i.find((o) => o.chunkIndex === a.chunkIndex) || i.push(a), i), []);
7663
7663
  r.sort((i, a) => i.chunkIndex - a.chunkIndex);
7664
7664
  const s = r.map((i) => ({ ETag: i.etag, PartNumber: i.chunkIndex })).filter((i) => i.ETag !== null), n = r[0];
7665
- await Mu({ apiUrl: n.apiUrl, surveyId: n.surveyId, uploadId: e, responseGroupUuid: n.responseGroupId, etags: s, headers: n.completeUploadHeaders, replayDuration: n.replayDuration }), await se.deleteChunkUploads("UploadComplete", e);
7665
+ await Mu({ apiUrl: n.apiUrl, surveyId: n.surveyId, uploadId: e, responseGroupUuid: n.responseGroupId, etags: s, headers: n.completeUploadHeaders, replayDuration: n.replayDuration }), await ie.deleteChunkUploads("UploadComplete", e);
7666
7666
  }, Hg = () => {
7667
- Ee(async () => {
7668
- const e = await se.getChunkUploadsByStatus({ sessionId: be, status: "ReadyForUpload" });
7667
+ xe(async () => {
7668
+ const e = await ie.getChunkUploadsByStatus({ sessionId: be, status: "ReadyForUpload" });
7669
7669
  if (!(e != null && e.length)) return;
7670
7670
  const t = await ed(e);
7671
7671
  t != null && t.length && await Promise.all(t.map((r) => {
@@ -7678,13 +7678,13 @@ const Oi = async (e = !1) => {
7678
7678
  const i = new TextEncoder();
7679
7679
  let a = null;
7680
7680
  const o = new CompressionStream("gzip"), l = o.writable.getWriter();
7681
- let c = !1, u = !1, [d, h] = [0, 0], f = [];
7682
- for (let p = s - 35e3; p < n; p += xi) {
7683
- if ({ validStartFound: u, events: f } = await Vg(p, s, n, u, xi), !(f != null && f.length)) {
7684
- N.debug("NoEventsFound");
7681
+ let c = !1, u = !1, [d, p] = [0, 0], f = [];
7682
+ for (let h = s - 35e3; h < n; h += xi) {
7683
+ if ({ validStartFound: u, events: f } = await Vg(h, s, n, u, xi), !(f != null && f.length)) {
7684
+ F.debug("NoEventsFound");
7685
7685
  continue;
7686
7686
  }
7687
- d === 0 && (d = f[0].timestamp), h = f[f.length - 1].timestamp;
7687
+ d === 0 && (d = f[0].timestamp), p = f[f.length - 1].timestamp;
7688
7688
  const C = f.map((v) => v.event);
7689
7689
  C.push(`{"timestamp":${n}}`);
7690
7690
  const m = `${c ? "," : "["}${C}`, g = i.encode(m);
@@ -7692,44 +7692,44 @@ const Oi = async (e = !1) => {
7692
7692
  l.write(g);
7693
7693
  }, "sdk_replay_compression_seconds"), c = !0;
7694
7694
  }
7695
- if (h - d < Qu) return N.debug("ReplayTooShort"), null;
7695
+ if (p - d < Qu) return F.debug("ReplayTooShort"), null;
7696
7696
  const w = i.encode("]");
7697
7697
  return l.write(w), l.close(), a = new Uint8Array(await new Response(o.readable).arrayBuffer()), a;
7698
7698
  })(r - e, r);
7699
7699
  }, cl = async (e) => {
7700
7700
  const { surveyId: t, responseGroupId: r, visitorId: s, apiUrl: n, completeUploadHeaders: i, replayParams: a, triggerTimestamp: o } = e, l = await Gg(1e3 * a.replayDurationSeconds, o);
7701
- if (!(l != null && l.length)) return void N.info("FileDataEmpty", { surveyId: t });
7702
- const c = ((d, h, f) => {
7703
- const w = d.length, p = 1024 * h * 1024, C = Math.ceil(w / f), m = Math.max(p, C), g = [];
7701
+ if (!(l != null && l.length)) return void F.info("FileDataEmpty", { surveyId: t });
7702
+ const c = ((d, p, f) => {
7703
+ const w = d.length, h = 1024 * p * 1024, C = Math.ceil(w / f), m = Math.max(h, C), g = [];
7704
7704
  let v = 0;
7705
7705
  for (; v < w; ) g.push(d.slice(v, v + m)), v += m;
7706
7706
  return g;
7707
- })(l, a.minimumChunkSizeMb, a.signedUrls.length), u = await Promise.all(c.map(async (d, h) => {
7708
- const f = Ut(), w = { apiUrl: n, chunkIndex: h + 1, completeUploadHeaders: i, etag: null, responseGroupId: r, status: "ReadyForUpload", surveyId: t, timestamp: o, totalChunks: c.length, data: d, uploadId: a.uploadId, uploadUrl: a.signedUrls[h].url, uuid: f, visitorId: s };
7709
- return await (await se.openDB()).add("chunkUploads", { ...w, sessionId: w.sessionId ?? be }), w;
7707
+ })(l, a.minimumChunkSizeMb, a.signedUrls.length), u = await Promise.all(c.map(async (d, p) => {
7708
+ const f = Ut(), w = { apiUrl: n, chunkIndex: p + 1, completeUploadHeaders: i, etag: null, responseGroupId: r, status: "ReadyForUpload", surveyId: t, timestamp: o, totalChunks: c.length, data: d, uploadId: a.uploadId, uploadUrl: a.signedUrls[p].url, uuid: f, visitorId: s };
7709
+ return await (await ie.openDB()).add("chunkUploads", { ...w, sessionId: w.sessionId ?? be }), w;
7710
7710
  }));
7711
- await (async (d, h) => {
7712
- await ed(h), await Promise.all(d.map((f) => td(f)));
7711
+ await (async (d, p) => {
7712
+ await ed(p), await Promise.all(d.map((f) => td(f)));
7713
7713
  })([a.uploadId], u);
7714
7714
  }, rd = async (e, t) => {
7715
- if (He()) return N.debug("ReplayDisabled-ScheduleOrCapture");
7715
+ if (He()) return F.debug("ReplayDisabled-ScheduleOrCapture");
7716
7716
  const { isHeatmap: r, isStandalone: s, replayParams: n, triggerTimestamp: i, responseGroupId: a } = e, o = async () => {
7717
- setTimeout(() => z.removeListener(B.QuestionAnswered, o), 0), Ee(async () => {
7718
- n.replayDurationType === "before" ? await cl(e) : await se.markPendingCaptureToCanUpload(a);
7717
+ setTimeout(() => j.removeListener(B.QuestionAnswered, o), 0), xe(async () => {
7718
+ n.replayDurationType === "before" ? await cl(e) : await ie.markPendingCaptureToCanUpload(a);
7719
7719
  }, "Error in schedule/capture callback");
7720
7720
  };
7721
- Ee(async () => {
7721
+ xe(async () => {
7722
7722
  if (n.replayDurationType === "after" || n.replayDurationType === "beforeAndAfter")
7723
- return !s && !r && z.on(B.QuestionAnswered, o), void await nd(e);
7723
+ return !s && !r && j.on(B.QuestionAnswered, o), void await nd(e);
7724
7724
  if (s || r || t) await cl(e), r && $g();
7725
7725
  else {
7726
7726
  const l = 35 + n.replayDurationSeconds, c = i - 1e3 * l, u = i;
7727
- await se.updateEventsExpiredAt(c, u, n.expirationTimeLimitMinutes), z.on(B.QuestionAnswered, o);
7727
+ await ie.updateEventsExpiredAt(c, u, n.expirationTimeLimitMinutes), j.on(B.QuestionAnswered, o);
7728
7728
  }
7729
7729
  }, "Error in scheduling/capturing replay");
7730
7730
  }, $g = async () => {
7731
- parseInt(ct ?? "0") || Q.removeItem("sprig.isCapturingHeatmap"), Q.getItem("sprig.teardownAfterCapture") && (ju(), sd(), Q.removeItem("sprig.teardownAfterCapture"));
7732
- }, sd = async () => He() ? N.debug("ReplayDisabled-ClearData") : Promise.all([se.deleteBySessionId("events", be), se.deleteBySessionId("pendingCaptures", be)]).catch((e) => {
7731
+ parseInt(lt ?? "0") || re.removeItem("sprig.isCapturingHeatmap"), re.getItem("sprig.teardownAfterCapture") && (ju(), sd(), re.removeItem("sprig.teardownAfterCapture"));
7732
+ }, sd = async () => He() ? F.debug("ReplayDisabled-ClearData") : Promise.all([ie.deleteBySessionId("events", be), ie.deleteBySessionId("pendingCaptures", be)]).catch((e) => {
7733
7733
  br("Error clearing user replay data", e);
7734
7734
  }), nd = async (e) => {
7735
7735
  if (He()) return;
@@ -7737,11 +7737,11 @@ const Oi = async (e = !1) => {
7737
7737
  e.replayParams.replayDurationType === "beforeAndAfter" && (s.replayParams.replayDurationSeconds *= 2), s.replayParams.replayDurationType = "before";
7738
7738
  const n = e.triggerTimestamp + 1e3 * e.replayParams.replayDurationSeconds;
7739
7739
  s.triggerTimestamp = n;
7740
- const i = { canUpload: !1, captureParams: s, sessionId: be, targetTimestamp: n, timestamp: Date.now(), uuid: Ut() }, { added: a } = await se.tryAddPendingCaptureForSurvey({ surveyId: r, record: i });
7741
- a ? (ct = (parseInt(ct ?? "0") + 1).toString(), Q.setItem("sprig.pendingCount", ct), t && (Ei(), Q.setItem("sprig.isCapturingHeatmap", "true"), Ti = Date.now(), pe.inactivityInterval || (pe.inactivityInterval = window.setInterval(() => {
7740
+ const i = { canUpload: !1, captureParams: s, sessionId: be, targetTimestamp: n, timestamp: Date.now(), uuid: Ut() }, { added: a } = await ie.tryAddPendingCaptureForSurvey({ surveyId: r, record: i });
7741
+ a ? (lt = (parseInt(lt ?? "0") + 1).toString(), re.setItem("sprig.pendingCount", lt), t && (Ei(), re.setItem("sprig.isCapturingHeatmap", "true"), Ti = Date.now(), pe.inactivityInterval || (pe.inactivityInterval = window.setInterval(() => {
7742
7742
  var o;
7743
- o = Ti, Date.now() - o >= 3e4 && Ee(() => se.markPendingHeatmapsReady(), "Error in heatmap inactivity");
7744
- }, 1e3)))) : N.info("PendingCaptureExists", { surveyId: r });
7743
+ o = Ti, Date.now() - o >= 3e4 && xe(() => ie.markPendingHeatmapsReady(), "Error in heatmap inactivity");
7744
+ }, 1e3)))) : F.info("PendingCaptureExists", { surveyId: r });
7745
7745
  }, Yg = Object.freeze(Object.defineProperty({ __proto__: null, RecordEvent: (e) => {
7746
7746
  Ye("Sprig_TrackEvent", e);
7747
7747
  }, RecordPageView: (e) => {
@@ -7752,70 +7752,70 @@ const Oi = async (e = !1) => {
7752
7752
  if (!e || !t) return !1;
7753
7753
  const n = globalThis.UserLeap._API_URL, i = await Mu({ surveyId: e, responseGroupUuid: t, eventDigest: r, apiUrl: n, headers: s }, !0);
7754
7754
  return !(i != null && i.error);
7755
- }, checkPendingHeatmapsUrl: () => He() ? N.debug("ReplayDisabled-PendingHeatmaps") : Ee(async () => {
7756
- const e = (await se.getPendingCaptures({ isHeatmap: !0 })).map((t) => ({ eventId: t.captureParams.eventId, uuid: t.uuid })).filter(({ eventId: t }) => !pu(t)).map(({ uuid: t }) => t);
7757
- return N.info("PendingHeatmapsToComplete", { count: e.length }), e.length && (await se.markPendingHeatmapsReady(e), N.info("MarkedPendingHeatmapsReady")), e.length;
7755
+ }, checkPendingHeatmapsUrl: () => He() ? F.debug("ReplayDisabled-PendingHeatmaps") : xe(async () => {
7756
+ const e = (await ie.getPendingCaptures({ isHeatmap: !0 })).map((t) => ({ eventId: t.captureParams.eventId, uuid: t.uuid })).filter(({ eventId: t }) => !pu(t)).map(({ uuid: t }) => t);
7757
+ return F.info("PendingHeatmapsToComplete", { count: e.length }), e.length && (await ie.markPendingHeatmapsReady(e), F.info("MarkedPendingHeatmapsReady")), e.length;
7758
7758
  }, "Error marking pending heatmaps ready"), clearUserReplayData: sd, disableRecording: br, initializeReplay: async ({ maxReplayDurationSeconds: e, maxInflightRequests: t = 2, replaySettings: r, teardownAfter: s = !1, apiUrl: n, alwaysOnConfig: i }) => {
7759
7759
  if (i && Ag({ apiUrl: n, config: i, triggerSnapshot: () => {
7760
7760
  Ei();
7761
- } }), ct = Q.getItem("sprig.pendingCount"), pe.isRecording) return;
7762
- if (s && Q.setItem("sprig.teardownAfterCapture", "true"), He()) return N.debug("ReplayDisabled");
7761
+ } }), lt = re.getItem("sprig.pendingCount"), pe.isRecording) return;
7762
+ if (s && re.setItem("sprig.teardownAfterCapture", "true"), He()) return F.debug("ReplayDisabled");
7763
7763
  if (await (async () => {
7764
7764
  var l;
7765
7765
  if (!zu()) return !0;
7766
7766
  if ((l = globalThis.navigator.storage) != null && l.estimate) try {
7767
7767
  const { quota: c = 0, usage: u = 0 } = await globalThis.navigator.storage.estimate(), d = (c - u) / 1024 ** 3;
7768
- return N.info("Storage", { availableGb: d }), d < 0.5;
7768
+ return F.info("Storage", { availableGb: d }), d < 0.5;
7769
7769
  } catch {
7770
7770
  return !0;
7771
7771
  }
7772
7772
  return !1;
7773
- })()) return N.debug("IDBNotSupported"), ki();
7773
+ })()) return F.debug("IDBNotSupported"), ki();
7774
7774
  try {
7775
- const l = await se.openDB();
7776
- N.info("DBVersion", { version: l.version });
7775
+ const l = await ie.openDB();
7776
+ F.info("DBVersion", { version: l.version });
7777
7777
  } catch (l) {
7778
- return N.error("ReplayOpenErr", { name: l.name }), l.name === "VersionError" && se.deleteDB(), ki();
7778
+ return F.error("ReplayOpenErr", { name: l.name }), l.name === "VersionError" && ie.deleteDB(), ki();
7779
7779
  }
7780
- Ee(async () => {
7780
+ xe(async () => {
7781
7781
  await Oi(!0);
7782
7782
  }, "Error uploading ready pending captures");
7783
7783
  const a = Pt() ? 30 : 0, o = Math.max(e ?? 0, a);
7784
- if (!o) return N.debug("MissingDuration");
7785
- N.debug("ReplayInit"), await Ee(async () => {
7784
+ if (!o) return F.debug("MissingDuration");
7785
+ F.debug("ReplayInit"), await xe(async () => {
7786
7786
  var l;
7787
7787
  r != null && r.minDuration && (Qu = r.minDuration), r != null && r.batchDuration && (xi = r.batchDuration), l = t, Au.setLimit(l), Hg(), jg(o + 35, 1800, o + 35), Wg();
7788
7788
  const c = window.UserLeap.replayLibraryURL ?? "https://cdn.sprig.com/dependencies/record.min.js", u = window.rrwebRecord;
7789
- if (!u) return N.error("RecordScriptFailed");
7790
- let d = !0, h = 0;
7789
+ if (!u) return F.error("RecordScriptFailed");
7790
+ let d = !0, p = 0;
7791
7791
  const f = { checkoutEveryNms: 3e4, sampling: { input: "last", scroll: 250, media: 800 }, ...r, mutationQueueEnabled: r == null ? void 0 : r.enableMutationQueue };
7792
- var w, p;
7792
+ var w, h;
7793
7793
  pe.stopRecording = u({ emit: (C, m) => {
7794
- if (C.type === at.Custom && (Ti = Date.now()), He() || As()) return;
7795
- if (m && C.type === at.Meta) h = performance.now();
7796
- else if (m && h && C.type === at.FullSnapshot) {
7797
- const v = performance.now() - h;
7794
+ if (C.type === ot.Custom && (Ti = Date.now()), He() || As()) return;
7795
+ if (m && C.type === ot.Meta) p = performance.now();
7796
+ else if (m && p && C.type === ot.FullSnapshot) {
7797
+ const v = performance.now() - p;
7798
7798
  bu("sdk_replay_snapshot_seconds", v / 1e3);
7799
7799
  }
7800
- const g = d || !!m && C.type === at.Meta;
7800
+ const g = d || !!m && C.type === ot.Meta;
7801
7801
  d = !1, Fg(g, C), Bg({ uuid: Ut(), event: JSON.stringify(C), isValidStart: g, timestamp: Date.now() });
7802
7802
  }, ...f }), pe.isRecording = !!pe.stopRecording, pe.isRecording && (((C, m) => {
7803
7803
  window.addEventListener("message", (g) => {
7804
7804
  var v;
7805
7805
  g.data.type === yg && (oo.push({ source: g.source, origin: g.origin }), (v = g.source) == null || v.postMessage({ type: wg, settings: C, replayLibraryUrl: m }, { targetOrigin: g.origin }));
7806
7806
  });
7807
- })(f, c), z.on("survey.complete", (C) => {
7807
+ })(f, c), j.on("survey.complete", (C) => {
7808
7808
  var m;
7809
7809
  m = { id: C, userAgent: window.navigator.userAgent }, Ye("Sprig_SubmitSurvey", m);
7810
- }), w = Ye, p = Rg, Os || (xe = w, ds = p, window.addEventListener("click", Nu, We), window.addEventListener("pointerdown", Bu, We), window.addEventListener("mousedown", Fu, We), window.addEventListener("keydown", Pu, We), window.addEventListener("scroll", _u, We), Os = !0, xg(), Tg()));
7810
+ }), w = Ye, h = Rg, Os || (Te = w, ds = h, window.addEventListener("click", Nu, We), window.addEventListener("pointerdown", Bu, We), window.addEventListener("mousedown", Fu, We), window.addEventListener("keydown", Pu, We), window.addEventListener("scroll", _u, We), Os = !0, xg(), Tg()));
7811
7811
  }, "Error initializing replay");
7812
7812
  }, isReplayPaused: As, isReplayRecording: () => pe.isRecording, recordFullSnapshot: Ei, recordReplayPaused: () => {
7813
- Ye("Sprig_ReplayPaused", { timestamp: Date.now() }), Q.setItem("sprig.isReplayPaused", "true");
7813
+ Ye("Sprig_ReplayPaused", { timestamp: Date.now() }), re.setItem("sprig.isReplayPaused", "true");
7814
7814
  }, recordReplayResumed: () => {
7815
- Q.removeItem("sprig.isReplayPaused"), Ye("Sprig_ReplayResumed", { timestamp: Date.now() });
7816
- }, scheduleCapture: nd, scheduleOrCaptureReplay: rd, tryReplayAction: Ee, uploadReadyPendingCaptures: Oi }, Symbol.toStringTag, { value: "Module" }));
7815
+ re.removeItem("sprig.isReplayPaused"), Ye("Sprig_ReplayResumed", { timestamp: Date.now() });
7816
+ }, scheduleCapture: nd, scheduleOrCaptureReplay: rd, tryReplayAction: xe, uploadReadyPendingCaptures: Oi }, Symbol.toStringTag, { value: "Module" }));
7817
7817
  ((e) => {
7818
- re.replay = e;
7818
+ ne.replay = e;
7819
7819
  })(Yg), window.UpChunk = { createUpload: Hd }, window.rrwebRecord = qt;
7820
7820
  export {
7821
7821
  Kg as A,
@@ -7824,16 +7824,16 @@ export {
7824
7824
  Xg as E,
7825
7825
  B as S,
7826
7826
  Xe as a,
7827
- N as b,
7827
+ F as b,
7828
7828
  Hf as c,
7829
7829
  Be as d,
7830
- z as e,
7830
+ j as e,
7831
7831
  Ss as f,
7832
7832
  ey as g,
7833
7833
  Zg as h,
7834
7834
  ty as i,
7835
7835
  to as j,
7836
- st as k,
7836
+ rt as k,
7837
7837
  Ig as l,
7838
7838
  Qg as m,
7839
7839
  ny as n,